mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
2 lines
172 KiB
JavaScript
2 lines
172 KiB
JavaScript
(function(e){function t(t){for(var n,r,o=t[0],c=t[1],l=t[2],u=0,M=[];u<o.length;u++)r=o[u],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&M.push(a[r][0]),a[r]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);d&&d(t);while(M.length)M.shift()();return s.push.apply(s,l||[]),i()}function i(){for(var e,t=0;t<s.length;t++){for(var i=s[t],n=!0,r=1;r<i.length;r++){var c=i[r];0!==a[c]&&(n=!1)}n&&(s.splice(t--,1),e=o(o.s=i[0]))}return e}var n={},a={app:0},s=[];function r(e){return o.p+"js/"+({}[e]||e)+"."+{"chunk-2d22998c":"869ca7da"}[e]+".js"}function o(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.e=function(e){var t=[],i=a[e];if(0!==i)if(i)t.push(i[2]);else{var n=new Promise((function(t,n){i=a[e]=[t,n]}));t.push(i[2]=n);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.src=r(e);var l=new Error;s=function(t){c.onerror=c.onload=null,clearTimeout(u);var i=a[e];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+n+": "+s+")",l.name="ChunkLoadError",l.type=n,l.request=s,i[1](l)}a[e]=void 0}};var u=setTimeout((function(){s({type:"timeout",target:c})}),12e4);c.onerror=c.onload=s,document.head.appendChild(c)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var d=l;s.push([0,"chunk-vendors"]),i()})({0:function(e,t,i){e.exports=i("56d7")},"017d":function(e,t,i){},"0315":function(e,t,i){"use strict";i("75ee")},"034f":function(e,t,i){"use strict";i("85ec")},"03c4":function(e,t,i){},"03d9":function(e,t,i){"use strict";i("df25")},"0582":function(e,t,i){"use strict";i("7a18")},"0bf4":function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjQ5OTggMTYuNjY2N0M2LjgyNDg0IDE2LjY2NjcgMy44MzMxNyAxMy42NzUgMy44MzMxNyAxMEMzLjgzMzE3IDYuMzI1MDIgNi44MjQ4NCAzLjMzMzM1IDEwLjQ5OTggMy4zMzMzNUMxNC4xNzQ4IDMuMzMzMzUgMTcuMTY2NSA2LjMyNTAyIDE3LjE2NjUgMTBDMTcuMTY2NSAxMy42NzUgMTQuMTc0OCAxNi42NjY3IDEwLjQ5OTggMTYuNjY2N1pNMTAuNDk5OCAxLjY2NjY5QzkuNDA1NDkgMS42NjY2OSA4LjMyMTg2IDEuODgyMjQgNy4zMTA4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,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNCIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNCA5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNCAwLjk4MDU2VjQuNUw0LjAwMDA0IDcuNzE0MjhMNCA5TDEuMTA2OTRlLTA3IDQuNUw0IDBWMC45ODA1NloiIGZpbGw9IiM1MDY3ODQiLz4KPC9zdmc+Cg=="},"0cce":function(e,t,i){},"0d20":function(e,t,i){},"0f34":function(e,t,i){"use strict";i("1ec9")},1:function(e,t){},"105f":function(e,t,i){"use strict";i("4203")},1345:function(e,t,i){"use strict";i("ec62")},1505:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI2LjgzMTEgMzQuNjU1NEMyNS40Njc1IDMzLjgxNzggMjQuMTc3IDMyLjg2NTUgMjIuOTczNSAzMS44MDg2VjE0LjM2MTZIMzAuNTcyOFYzNi43NTNDMjkuMzE0NiAzNi4wOTgyIDI4LjA2NzMgMzUuMzk5IDI2LjgzMTEgMzQuNjU1NFpNNDEuNDY2OSAyNS44NDg2SDMzLjg2NzVWMzguMTUxNEMzNi4zNDc3IDM5LjMwNTUgMzguODg0IDQwLjMzMzQgNDEuNDY2OSA0MS4yMzEzVjI1Ljg0ODZaTTIyLjk3MzUgMzUuMzA0NkwyMi40NzY4IDM0LjkwNTFDMjEuNzE1MiAzNC4yNzI1IDIxLjAwMzMgMzMuNjIzMiAyMC4zMjQ1IDMyLjk3MzlMMi4yOTQ3IDMwLjg3NjNMNS42MDU5NiAzNy4zMDI0TDI4Ljc4NDggMzkuMjAwMkMyNi43NTExIDM4LjA1Mzcg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A5Nkg3NEM3MS43NDE2IDYyLjEwODUgNTcuNSAyNCA0MiA0WiIgZmlsbD0iI0M4RDRFMyIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazApIj4KPHBhdGggZD0iTTMyLjAwMDEgNjAuNUMzOC41MDAxIDczIDYzLjUwMDEgNzYuNDk5OSA3My40OTk5IDczQzczLjQ5OTkgNzMgNzUuNzk5MiA2MC43OTk0IDc1LjUgNjAuNTAwMkM2OS43MzM5IDU0LjczMzggNDMuMDAwMyA1Ny45OTk4IDMyLjAwMDEgNjAuNVoiIGZpbGw9IiNBMkIxQzYiLz4KPC9nPgo8L3N2Zz4K"},"16a3":function(e,t,i){"use strict";i("3b6a")},"19bd":function(e,t,i){"use strict";i("1d64")},"19be":function(e,t,i){},"1d64":function(e,t,i){},"1ec9":function(e,t,i){},"231b":function(e,t,i){},2335:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA2IiBoZWlnaHQ9IjU2IiB2aWV3Qm94PSIwIDAgMTA2IDU2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTA0LjI1MiAxLjQwODU1QzEwMC4yNjIgLTIuMDQ5NCA5My43NzczIDEuNDA4NTQgOTEuMjgzMiA1Ljg1NDI2TDEwMC4yNjIgMTQuMzkzOUMxMDQuNzUxIDEwLjc5NDEgMTA4LjI0MyA0Ljg2NjQ2IDEwNC4yNTIgMS40MDg1NVoiIGZpbGw9IiNGM0M2QkYiLz4KPHBhdGggZD0iTTkxLjAxMjMgNC4zNzIwN0M3Mi40NTY4IDI1LjE3MDQgMzAuNDI3OSAyMi45MjYzIDE5Ljk1MjcgNC4zNzIwN0wwIDQ0LjY2MTVDMzguNDA5IDY5Ljg1NDcgODYuNzk0NCA1MC4wOTU0IDEwMi4yNTggMTQuNTI4Nkw5MS4wMTIzIDQuMzcyMDdaIiBmaWxsPSIjQzhENEUzIi8+Cjwvc3ZnPgo="},"28b7":function(e,t,i){"use strict";function n(e,t,i){var n=new CustomEvent("sqliteviz-app-event",{detail:{name:e,value:t,labels:i}});window.dispatchEvent(n)}i.d(t,"a",(function(){return n}))},"28f9":function(e,t,i){"use strict";i("b288")},"33da":function(e,t,i){},"345a":function(e,t,i){},3742:function(e,t,i){"use strict";i("381e")},"381e":function(e,t,i){},"3a01":function(e,t,i){},"3a016":function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDUwIiBoZWlnaHQ9IjE3NSIgdmlld0JveD0iMCAwIDQ1MCAxNzUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxtYXNrIGlkPSJtYXNrMCIgbWFzay10eXBlPSJhbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSIxNzUiPgo8cmVjdCB3aWR0aD0iNDUwIiBoZWlnaHQ9IjE3NSIgZmlsbD0iI0M0QzRDNCIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazApIj4KPHBhdGggZD0iTTEyOC4yMDcgMS45OTI3MkM3MC4xOTcyIC05Ljg0ODk3IDE4Ljc0NSAzMC44ODk1IDQuMzE5ODUgOTIuNjY3OEMtMTAuMTA1NCAxNTQuNDQ2IDE0LjMzMzcgMTg2LjMzMiAzNy4zMjE4IDIyNi4xODlDNzIuMzc4NCAyODYuOTcxIDE4MS41NTEgMzQxLjIzNyAyNjUuMDgzIDMzNy43ODlDMzM3LjUxNyAzMzQuOCAzODkuMDI4IDMxNi41MTQgNDI1LjkzNiAyNDguMTExQzQ4OS4zNzggMTMwLjUzMiA0MTcuNDQ0IDUzLjkwNjUgMzI1LjUyNyA2OC4yNTUxQzIxNC41NzEgODUuNTc2IDIxMy42MjkgMTkuNDMwMiAxMjguMjA3IDEuOTkyNzJaIiBmaWxsPSIjRE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bHRlciBpZD0iZmlsdGVyMF9kIiB4PSIwLjYyNSIgeT0iMy4xOTI1IiB3aWR0aD0iMTcuMTI1IiBoZWlnaHQ9IjE0LjA1NzUiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiLz4KPGZlT2Zmc2V0IGR5PSIxIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMC4xNjQ3MDYgMCAwIDAgMCAwLjI0NzA1OSAwIDAgMCAwIDAuMzcyNTQ5IDAgMCAwIDAuMiAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93IiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="},"3f7a":function(e,t,i){},4203:function(e,t,i){},"430a":function(e,t,i){"use strict";i("64d2")},4378:function(e,t,i){"use strict";i("70d6")},"4a8d":function(e,t,i){},"4ca1":function(e,t,i){},5207:function(e,t,i){"use strict";i("665c")},"523c":function(e,t,i){"use strict";i("3f7a")},5264:function(e,t,i){"use strict";i("0d20")},5369:function(e,t,i){},"547f":function(e,t,i){},"56d7":function(e,t,i){"use strict";i.r(t);i("e260"),i("e6cf"),i("cca6"),i("a79d"),i("caad"),i("d3b7"),i("3ca3"),i("ddb0");var n=i("2b0e"),a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"app"}},[e.showBanner?i("div",{staticClass:"warning",attrs:{id:"banner"}},[i("close-icon",{on:{click:function(t){e.showBanner=!1}}}),e._v(" Sqliteviz has got own space on the web, "),i("a",{attrs:{href:"https://sqliteviz.com/",target:"_blank"}},[e._v("sqliteviz.com")]),e._v("! New builds will be published there, so we recommend you to switch to the "),i("a",{attrs:{href:"https://sqliteviz.com/app/#",target:"_blank"}},[e._v(" new link")]),e._v(" to not miss new features. This "),i("a",{attrs:{href:"https://sqliteviz.com/docs/how-to-migrate-to-sqliteviz-dot-com/",target:"_blank"}},[e._v("migration guide")]),e._v(" will help if you're not sure how to migrate. ")],1):e._e(),i("router-view")],1)},s=[],r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{class:["icon",{disabled:e.disabled}],attrs:{width:e.size,height:e.size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(t){return t.stopPropagation(),e.$emit("click")}}},[i("path",{attrs:{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14\n 12.59L8.41 7L14 1.41Z",fill:"#A2B1C6"}})])},o=[],c=(i("a9e3"),{name:"CloseIcon",props:{size:{type:Number,required:!1,default:14},disabled:{type:Boolean,required:!1,default:!1}}}),l=c,u=(i("8368"),i("2877")),d=Object(u["a"])(l,r,o,!1,null,"ec8935c0",null),M=d.exports,p={components:{CloseIcon:M},data:function(){return{showBanner:!0}}},g=p,h=(i("034f"),Object(u["a"])(g,a,s,!1,null,null,null)),I=h.exports,m=i("c7eb"),N=i("1da1"),v=i("8c4f"),f=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("splitpanes",{staticClass:"schema-tabs-splitter",attrs:{before:{size:20,max:30},after:{size:80,max:100}},scopedSlots:e._u([{key:"left-pane",fn:function(){return[i("schema")]},proxy:!0},{key:"right-pane",fn:function(){return[i("tabs")]},proxy:!0}])})],1)},j=[],D=(i("a15b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",class:["splitpanes","splitpanes-"+(e.horizontal?"horizontal":"vertical"),{"splitpanes-dragging":e.dragging}]},[n("div",{ref:"movableSplitter",staticClass:"movable-splitter",style:e.movableSplitterStyle}),n("div",{ref:"left",staticClass:"splitpanes-pane",style:e.styles.before,attrs:{size:e.paneBefore.size,"max-size":"30"}},[e._t("left-pane")],2),n("div",{staticClass:"splitpanes-splitter",on:{mousedown:e.bindEvents,touchstart:e.bindEvents}},[n("div",{class:["toggle-btns",{both:100===e.after.max&&100===e.before.max&&e.paneAfter.size>0&&e.paneBefore.size>0}]},[100===e.after.max&&e.paneAfter.size>0?n("div",{staticClass:"toggle-btn",on:{click:function(t){return e.togglePane(e.paneBefore)}}},[n("img",{staticClass:"direction-icon",style:e.directionBeforeIconStyle,attrs:{src:i("0ca3")}})]):e._e(),100===e.before.max&&e.paneBefore.size>0?n("div",{staticClass:"toggle-btn",on:{click:function(t){return e.togglePane(e.paneAfter)}}},[n("img",{staticClass:"direction-icon",style:e.directionAfterIconStyle,attrs:{src:i("0ca3")}})]):e._e()])]),n("div",{ref:"right",staticClass:"splitpanes-pane",style:e.styles.after},[e._t("right-pane")],2)])}),C=[],b=i("5530"),y=i("ade3"),w={getCurrentMouseDrag:function(e,t){var i=t.getBoundingClientRect(),n="ontouchstart"in window&&e.touches?e.touches[0]:e,a=n.clientX,s=n.clientY;return{x:a-i.left,y:s-i.top}},getCurrentDragPercentage:function(e,t,i){var n=this.getCurrentMouseDrag(e,t);n=n[i?"y":"x"];var a=t[i?"clientHeight":"clientWidth"];return 100*n/a},calculateOffset:function(e,t){var i=t.container,n=t.isHorisontal,a=t.paneBeforeMax,s=t.paneAfterMax,r=this.getCurrentDragPercentage(e,i,n),o=a<100&&r>=a,c=s<100&&r<=100-s;return o||c?o?a:Math.max(100-s,0):Math.min(Math.max(r,0),a)}},z={name:"Splitpanes",props:{horizontal:{type:Boolean,default:!1},before:{type:Object},after:{type:Object}},data:function(){return{container:null,paneBefore:this.before,paneAfter:this.after,beforeMinimising:{before:this.before.size,after:this.after.size},dragging:!1,movableSplitter:{top:0,left:0,visibility:"hidden"}}},computed:{styles:function(){return{before:Object(y["a"])({},this.horizontal?"height":"width","".concat(this.paneBefore.size,"%")),after:Object(y["a"])({},this.horizontal?"height":"width","".concat(this.paneAfter.size,"%"))}},movableSplitterStyle:function(){var e=Object(b["a"])({},this.movableSplitter);return e.top+="%",e.left+="%",e},directionBeforeIconStyle:function(){var e=0!==this.paneBefore.size,t="translate(-50%, -50%) ",i="";return i=this.horizontal?e?"rotate(90deg)":"rotate(-90deg)":e?"rotate(0deg)":"rotate(180deg)",{transform:t+i}},directionAfterIconStyle:function(){var e=0!==this.paneAfter.size,t="translate(-50%, -50%)",i="";return i=this.horizontal?e?"rotate(-90deg)":"rotate(90deg)":e?"rotate(180deg)":"rotate(0deg)",{transform:t+i}}},methods:{bindEvents:function(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents:function(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseMove:function(e){e.preventDefault(),this.dragging=!0,this.movableSplitter.visibility="visible",this.moveSplitter(e)},onMouseUp:function(){if(this.dragging){var e=this.horizontal?this.movableSplitter.top:this.movableSplitter.left;this.paneBefore.size=e,this.paneAfter.size=100-e,this.movableSplitter={top:0,left:0,visibility:"hidden"},this.dragging=!1}this.unbindEvents()},moveSplitter:function(e){var t={container:this.container,paneBeforeMax:this.paneBefore.max,paneAfterMax:this.paneAfter.max,isHorisontal:this.horizontal},i=w.calculateOffset(e,t),n=this.horizontal?"top":"left";this.movableSplitter[n]=i},togglePane:function(e){if(e.size>0){this.beforeMinimising.before=this.paneBefore.size,this.beforeMinimising.after=this.paneAfter.size,e.size=0;var t=e===this.paneBefore?this.paneAfter:this.paneBefore;t.size=100-e.size}else this.paneBefore.size=this.beforeMinimising.before,this.paneAfter.size=this.beforeMinimising.after}},mounted:function(){this.container=this.$refs.container}},T=z,O=(i("a1f0"),Object(u["a"])(T,D,C,!1,null,null,null)),x=O.exports,A=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"schema-container"}},[i("div",{attrs:{id:"schema-filter"}},[i("text-field",{attrs:{placeholder:"Search table",width:"100%"},model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}})],1),i("div",{attrs:{id:"db"}},[i("div",{staticClass:"db-name",on:{click:function(t){e.schemaVisible=!e.schemaVisible}}},[i("tree-chevron",{directives:[{name:"show",rawName:"v-show",value:e.schema.length>0,expression:"schema.length > 0"}],attrs:{expanded:e.schemaVisible}}),e._v(" "+e._s(e.dbName)+" ")],1),i("db-uploader",{attrs:{id:"db-edit",type:"small"}}),i("export-icon",{attrs:{tooltip:"Export database"},on:{click:e.exportToFile}}),i("add-table-icon",{on:{click:e.addCsv}})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.schemaVisible,expression:"schemaVisible"}],staticClass:"schema"},e._l(e.schema,(function(e){return i("table-description",{key:e.name,attrs:{name:e.name,columns:e.columns}})})),1),i("csv-import",{ref:"addCsv",attrs:{file:e.file,db:e.$store.state.db,"dialog-name":"addCsv"}})],1)},L=[],k=(i("4de4"),i("b0c0"),i("ac1f"),i("00b4"),i("5319"),i("2b3d"),i("9861"),i("d9e2"),{isDatabase:function(e){var t=["application/vnd.sqlite3","application/x-sqlite3"];return e.type?t.includes(e.type):/\.(db|sqlite(3)?)+$/.test(e.name)},getFileName:function(e){return e.name.replace(/\.[^.]+$/,"")},downloadFromUrl:function(e,t){var i=document.createElement("a");i.href=e,i.download=t,i.click(),URL.revokeObjectURL(e)},exportToFile:function(e,t){var i=arguments,n=this;return Object(N["a"])(Object(m["a"])().mark((function a(){var s,r,o;return Object(m["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=i.length>2&&void 0!==i[2]?i[2]:"octet/stream",r=new Blob([e],{type:s}),o=URL.createObjectURL(r),n.downloadFromUrl(o,t);case 4:case"end":return a.stop()}}),a)})))()},getFileFromUser:function(e){return new Promise((function(t){var i=document.createElement("input");i.type="file",i.accept=e,i.addEventListener("change",(function(){var e=i.files[0];t(e)})),i.click()}))},importFile:function(){var e=new FileReader;return this.getFileFromUser(".json").then((function(t){return new Promise((function(i,n){e.onload=function(e){i(e.target.result)},e.readAsText(t)}))}))},readFile:function(e){return fetch(e)},readAsArrayBuffer:function(e){var t=new FileReader;return new Promise((function(i,n){t.onerror=function(){t.abort(),n(new Error("Problem parsing input file."))},t.onload=function(){i(t.result)},t.readAsArrayBuffer(e)}))}}),S=i("28b7"),E=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"table-name",on:{click:function(t){e.colVisible=!e.colVisible}}},[i("tree-chevron",{attrs:{expanded:e.colVisible}}),e._v(" "+e._s(e.name)+" ")],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.colVisible,expression:"colVisible"}],staticClass:"columns"},e._l(e.columns,(function(t,n){return i("div",{key:n,staticClass:"column"},[e._v(" "+e._s(t.name)+" "),i("span",{staticClass:"column-type"},[e._v(e._s(t.type))])])})),0)])},Q=[],U=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{staticClass:"chevron-icon",style:{transform:e.expanded?"rotate(90deg)":"rotate(0)"},attrs:{width:"9",height:"9",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[i("path",{attrs:{d:"M0.721924 9.93097L4.85292 5.79997L0.721924 1.66897L1.99992 0.399973L7.39992\n 5.79997L1.99992 11.2L0.721924 9.93097Z",fill:e.expanded?"#506784":"rgba(80, 103, 132, 0.5)"}})])},Y=[],_={name:"treeChevron",props:{expanded:{type:Boolean,required:!0}}},Z=_,V=(i("5e1a"),Object(u["a"])(Z,U,Y,!1,null,"5879c436",null)),P=V.exports,q={name:"TableDescription",components:{TreeChevron:P},props:["name","columns"],data:function(){return{colVisible:!1}}},H=q,B=(i("dfd4"),Object(u["a"])(H,E,Q,!1,null,"060be7fb",null)),$=B.exports,G=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.label?i("div",{class:["text-field-label",{error:e.errorMsg},{disabled:e.disabled}]},[e._v(" "+e._s(e.label)+" "),e.hint?i("hint-icon",{staticClass:"hint",attrs:{hint:e.hint,"max-width":e.maxHintWidth||"149px"}}):e._e()],1):e._e(),i("input",{class:{error:e.errorMsg},style:{width:e.width},attrs:{type:"text",placeholder:e.placeholder,disabled:e.disabled},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t.target.value)}}}),i("div",{directives:[{name:"show",rawName:"v-show",value:e.errorMsg,expression:"errorMsg"}],staticClass:"text-field-error"},[e._v(e._s(e.errorMsg))])])},R=[],W=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("svg",{staticClass:"hint-icon",attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)},mouseenter:e.showTooltip,mouseleave:e.hideTooltip}},[i("path",{attrs:{d:"M8.75 14.1666H10.4167V12.5H8.75V14.1666ZM9.58333 16.25C5.90833 16.25 2.91667 13.2583\n 2.91667 9.58333C2.91667 5.90833 5.90833 2.91667 9.58333 2.91667C13.2583 2.91667 16.25\n 5.90833 16.25 9.58333C16.25 13.2583 13.2583 16.25 9.58333 16.25ZM9.58333 1.25C8.48898\n 1.25 7.40535 1.46555 6.3943 1.88434C5.38326 2.30313 4.4646 2.91696 3.69078\n 3.69078C2.12797 5.25358 1.25 7.3732 1.25 9.58333C1.25 11.7935 2.12797 13.9131 3.69078\n 15.4759C4.4646 16.2497 5.38326 16.8635 6.3943 17.2823C7.40535 17.7011 8.48898 17.9167\n 9.58333 17.9167C11.7935 17.9167 13.9131 17.0387 15.4759 15.4759C17.0387 13.9131 17.9167\n 11.7935 17.9167 9.58333C17.9167 8.48898 17.7011 7.40535 17.2823 6.3943C16.8635 5.38326\n 16.2497 4.4646 15.4759 3.69078C14.7021 2.91696 13.7834 2.30313 12.7724 1.88434C11.7613\n 1.46555 10.6777 1.25 9.58333 1.25Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M9.91601 4.51787C8.98167 4.42606 8.05144 4.69097 7.36309 5.24472C6.68735 5.78828\n 6.2998 6.56661 6.2998 7.38012H7.92488C7.92488 6.97463 8.11059 6.60187 8.44779\n 6.33061C8.79784 6.049 9.25647 5.92005 9.73896 5.96755C10.4832 6.04076 11.0828 6.57277\n 11.1647 7.23265C11.2306 7.764 10.9661 8.28194 10.4744 8.58426C9.38676 9.25303 8.73742\n 10.343 8.73742 11.5H10.3625C10.3625 10.8243 10.7477 10.184 11.3929 9.78733C12.3808\n 9.17985 12.9122 8.13913 12.7798 7.07124C12.6144 5.73863 11.41 4.66476 9.91601 4.51787Z",fill:"#A2B1C6"}})]),i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:Object.assign({},e.tooltipStyle,{maxWidth:e.maxWidth})},[e._v(" "+e._s(e.hint)+" ")])])},F=[],J=(i("1276"),{data:function(){return{tooltipStyle:{visibility:"hidden"}}},computed:{tooltipElement:function(){return this.$refs.tooltip}},methods:{showTooltip:function(e,t){var i=t?t.split("-"):["top","right"],n=12;"top"===i[0]?this.tooltipStyle.top=e.clientY-n+"px":this.tooltipStyle.top=e.clientY+n+"px","right"===i[1]?this.tooltipStyle.left=e.clientX+n+"px":this.tooltipStyle.left=e.clientX-n-this.tooltipElement.offsetWidth+"px",this.tooltipStyle.visibility="visible"},hideTooltip:function(){this.tooltipStyle.visibility="hidden"}}}),X={name:"HintIcon",props:["hint","maxWidth"],mixins:[J],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},K=X,ee=(i("9ceb"),Object(u["a"])(K,W,F,!1,null,"7209667d",null)),te=ee.exports,ie={name:"textField",props:["placeholder","label","errorMsg","value","width","hint","maxHintWidth","disabled"],components:{HintIcon:te}},ne=ie,ae=(i("daef"),Object(u["a"])(ne,G,R,!1,null,"59fd41a8",null)),se=ae.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"db-uploader-container",style:{width:e.width}},["small"===e.type?n("change-db-icon",{on:{click:e.browse}}):e._e(),"illustrated"===e.type?n("div",{staticClass:"drop-area-container"},[n("div",{staticClass:"drop-area",on:{dragover:function(t){t.preventDefault(),e.state="dragover"},dragleave:function(t){t.preventDefault(),e.state=""},drop:function(t){return t.preventDefault(),e.drop.apply(null,arguments)},click:e.browse}},[n("div",{staticClass:"text"},[e._v(" Drop the database or CSV file here or click to choose a file from your computer. ")])])]):e._e(),"illustrated"===e.type?n("div",{attrs:{id:"img-container"}},[n("img",{attrs:{id:"drop-file-top-img",src:i("3a016")}}),n("img",{class:{swing:"dragover"===e.state},attrs:{id:"left-arm-img",src:i("9bf4")}}),n("img",{ref:"fileImg",class:{swing:"dragover"===e.state,fly:"dropping"===e.state,hidden:"dropped"===e.state},attrs:{id:"file-img",src:i("87d4")}}),n("img",{attrs:{id:"drop-file-bottom-img",src:i("6a0b")}}),n("img",{attrs:{id:"body-img",src:i("1678")}}),n("img",{class:{swing:"dragover"===e.state},attrs:{id:"right-arm-img",src:i("2335")}})]):e._e(),n("div",{staticClass:"error",attrs:{id:"error"}}),n("csv-import",{ref:"addCsv",attrs:{file:e.file,db:e.newDb,"dialog-name":"importFromCsv"},on:{cancel:e.cancelCsvImport,finish:e.finish}})],1)},oe=[],ce=(i("2ca0"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("svg",{staticClass:"db-edit-icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)},mouseenter:e.showTooltip,mouseleave:e.hideTooltip}},[i("path",{attrs:{d:"M3 10.5V12.75C3 14.25 5.2875 15.54 8.25 15.75V13.5825L8.3475 13.5C5.34 13.32 3 12.045 3\n 10.5ZM9 9.75C5.685 9.75 3 8.4075 3 6.75V9C3 10.6575 5.685 12 9 12C9.2925 12 9.5775 12\n 9.87 12L12.75 9.09C11.55 9.54 10.2825 9.75 9 9.75ZM9 2.25C5.685 2.25 3 3.5925 3 5.25C3\n 6.9075 5.685 8.25 9 8.25C12.315 8.25 15 6.9075 15 5.25C15 3.5925 12.315 2.25 9 2.25ZM15.75\n 8.3475C15.6375 8.3475 15.5325 8.3925 15.4575 8.475L14.7075 9.225L16.245 10.725L16.995\n 9.975C17.1525 9.825 17.16 9.57 16.995 9.3975L16.065 8.475C15.99 8.3925 15.885 8.3475 15.78\n 8.3475H15.75ZM14.28 9.66L9.75 14.205V15.75H11.295L15.84 11.1975L14.28 9.66Z",fill:"#A2B1C6"}})]),i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" Load another database or CSV ")])])}),le=[],ue={name:"changeDbIcon",mixins:[J],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},de=ue,Me=(i("03d9"),Object(u["a"])(de,ce,le,!1,null,"c1beafb4",null)),pe=Me.exports,ge=i("d4ec"),he=i("bee2");function Ie(){return new Worker(i.p+"js/_worker.6822ecb4.worker.js")}var me=i("ebb0"),Ne=i.n(me);function ve(){var e=new Ie;return new De(e)}var fe={getNewDatabase:ve},je=0,De=function(){function e(t){var i=this;Object(ge["a"])(this,e),this.dbName=null,this.schema=null,this.worker=t,this.pw=new Ne.a(t),this.importProgresses={},t.addEventListener("message",(function(e){var t=e.data.progress;if(void 0!==t){var n=e.data.id;i.importProgresses[n].dispatchEvent(new CustomEvent("progress",{detail:t}))}}))}return Object(he["a"])(e,[{key:"shutDown",value:function(){this.worker.terminate()}},{key:"createProgressCounter",value:function(e){var t=je++;return this.importProgresses[t]=new EventTarget,this.importProgresses[t].addEventListener("progress",(function(t){e(t.detail)})),t}},{key:"deleteProgressCounter",value:function(e){delete this.importProgresses[e]}},{key:"addTableFromCsv",value:function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(t,i,n){var a;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.pw.postMessage({action:"import",data:i,progressCounterId:n,tabName:t});case 2:if(a=e.sent,!a.error){e.next=5;break}throw new Error(a.error);case 5:this.dbName=this.dbName||"database",this.refreshSchema();case 7:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}()},{key:"loadDb",value:function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(t){var i,n;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=6;break}return e.next=3,k.readAsArrayBuffer(t);case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0=null;case 7:return i=e.t0,e.next=10,this.pw.postMessage({action:"open",buffer:i});case 10:if(n=e.sent,!n.error){e.next=13;break}throw new Error(n.error);case 13:this.dbName=t?k.getFileName(t):"database",this.refreshSchema(),Object(S["a"])("database.import",t?t.size:0,{from:t?"sqlite":"none",new_db:!0});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshSchema",value:function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(){var t,i;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t="\n WITH columns as (\n SELECT\n a.tbl_name,\n json_group_array(\n json_object('name', b.name,'type', IIF(b.type = '', 'N/A', b.type))\n ) as column_json\n FROM sqlite_master a, pragma_table_info(a.name) b\n WHERE a.type in ('table','view') AND a.name NOT LIKE 'sqlite_%' group by tbl_name\n )\n SELECT json_group_array(json_object('name',tbl_name, 'columns', json(column_json))) objects\n FROM columns;\n ",e.next=3,this.execute(t);case 3:i=e.sent,this.schema=JSON.parse(i.values.objects[0]);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"execute",value:function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(t){var i;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.pw.postMessage({action:"reopen"});case 2:return e.next=4,this.pw.postMessage({action:"exec",sql:t});case 4:if(i=e.sent,!i.error){e.next=7;break}throw new Error(i.error);case 7:return e.abrupt("return",i[i.length-1]);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"export",value:function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(t){var i;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.pw.postMessage({action:"export"});case 2:if(i=e.sent,!i.error){e.next=5;break}throw new Error(i.error);case 5:k.exportToFile(i,t),Object(S["a"])("database.export",i.byteLength,{to:"sqlite"});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"validateTableName",value:function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(t){return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.startsWith("sqlite_")){e.next=2;break}throw new Error("Table name can't start with sqlite_");case 2:if(!/[^\w]/.test(t)){e.next=4;break}throw new Error("Table name can contain only letters, digits and underscores");case 4:if(!/^(\d)/.test(t)){e.next=6;break}throw new Error("Table name can't start with a digit");case 6:return e.next=8,this.execute('BEGIN; CREATE TABLE "'.concat(t,'"(id); ROLLBACK;'));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"sanitizeTableName",value:function(e){return e.replace(/[^\w]/g,"_").replace(/^(\d)/,"_$1").replace(/_{2,}/g,"_")}}]),e}(),Ce=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("modal",{attrs:{name:e.dialogName,classes:"dialog",height:"auto",width:"80%",scrollable:"",clickToClose:!1}},[i("div",{staticClass:"dialog-header"},[e._v(" CSV import "),i("close-icon",{attrs:{disabled:e.disableDialog},on:{click:e.cancelCsvImport}})],1),i("div",{staticClass:"dialog-body"},[i("text-field",{attrs:{label:"Table name",width:"484px",disabled:e.disableDialog,"error-msg":e.tableNameError,id:"csv-table-name"},model:{value:e.tableName,callback:function(t){e.tableName=t},expression:"tableName"}}),i("div",{staticClass:"chars"},[i("delimiter-selector",{staticClass:"char-input",attrs:{width:"210px",disabled:e.disableDialog},on:{input:e.previewCsv},model:{value:e.delimiter,callback:function(t){e.delimiter=t},expression:"delimiter"}}),i("text-field",{staticClass:"char-input",attrs:{label:"Quote char",hint:"The character used to quote fields.",width:"93px",disabled:e.disableDialog,id:"quote-char"},model:{value:e.quoteChar,callback:function(t){e.quoteChar=t},expression:"quoteChar"}}),i("text-field",{staticClass:"char-input",attrs:{label:"Escape char",hint:'\n The character used to escape the quote character within a field\n (e.g. "column with ""quotes"" in text").\n ',"max-hint-width":"242px",width:"93px",disabled:e.disableDialog,id:"escape-char"},model:{value:e.escapeChar,callback:function(t){e.escapeChar=t},expression:"escapeChar"}})],1),i("check-box",{attrs:{init:!0,label:"Use first row as column headers",disabled:e.disableDialog},on:{click:function(t){e.header=t}}}),e.previewData&&(e.previewData.rowCount>0||Object.keys(e.previewData).length>0)?i("sql-table",{staticClass:"preview-table",attrs:{"data-set":e.previewData,preview:!0}}):i("div",{staticClass:"no-data"},[e._v("No data")]),i("logs",{staticClass:"import-csv-errors",attrs:{messages:e.importCsvMessages}})],1),i("div",{staticClass:"dialog-buttons-container"},[i("button",{staticClass:"secondary",attrs:{disabled:e.disableDialog,id:"csv-cancel"},on:{click:e.cancelCsvImport}},[e._v(" Cancel ")]),i("button",{directives:[{name:"show",rawName:"v-show",value:!e.importCsvCompleted,expression:"!importCsvCompleted"}],staticClass:"primary",attrs:{disabled:e.disableDialog,id:"csv-import"},on:{click:function(t){return e.loadFromCsv(e.file)}}},[e._v(" Import ")]),i("button",{directives:[{name:"show",rawName:"v-show",value:e.importCsvCompleted,expression:"importCsvCompleted"}],staticClass:"primary",attrs:{disabled:e.disableDialog,id:"csv-finish"},on:{click:e.finish}},[e._v(" Finish ")])])])},be=[],ye=(i("99af"),i("159b"),i("498a"),i("d81d"),i("369b")),we=i.n(ye),ze={MissingQuotes:"Edit your CSV so that the field has a closing quote char.",TooFewFields:"Add fields or try another delimiter.",TooManyFields:"Edit your CSV or try another delimiter."},Te={getResult:function(e){var t={columns:[]},i={};if(e.meta.fields)e.meta.fields.forEach((function(n){var a=n.trim();t.columns.push(a),i[a]=e.data.map((function(e){var t=e[n];return t instanceof Date&&(t=t.toISOString()),t}))}));else for(var n=function(n){var a="col".concat(n+1);t.columns.push(a),i[a]=e.data.map((function(e){var t=e[n];return t instanceof Date&&(t=t.toISOString()),t}))},a=0;a<=e.data[0].length-1;a++)n(a);return t.values=i,t},prepareForExport:function(e){for(var t=e.columns,i=e.values[t[0]].length,n={fields:t,data:[]},a=function(i){n.data.push(t.map((function(t){return e.values[t][i]})))},s=0;s<i;s++)a(s);return n},parse:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,a){var s={delimiter:"",newline:"",quoteChar:'"',escapeChar:'"',header:!1,transformHeader:void 0,dynamicTyping:!0,preview:0,encoding:"UTF-8",worker:!0,comments:!1,step:void 0,complete:function(e){var i={data:t.getResult(e),delimiter:e.meta.delimiter,hasErrors:!1,rowCount:e.data.length};i.messages=e.errors.map((function(e){return e.type="UndetectableDelimiter"===e.code?"info":"error","error"===e.type&&(i.hasErrors=!0),e.hint=ze[e.code],e})),n(i)},error:function(e,t){a(e)},download:!1,downloadRequestHeaders:void 0,downloadRequestBody:void 0,skipEmptyLines:"greedy",chunk:void 0,chunkSize:void 0,fastMode:void 0,beforeFirstChunk:void 0,withCredentials:void 0,transform:void 0,delimitersToGuess:[",","\t","|",";",we.a.RECORD_SEP,we.a.UNIT_SEP]};we.a.parse(e,Object(b["a"])(Object(b["a"])({},s),i))}))},serialize:function(e){return we.a.unparse(this.prepareForExport(e),{delimiter:"\t"})}},Oe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:{disabled:e.disabled}},[i("div",{staticClass:"text-field-label"},[e._v("Delimiter")]),i("div",{staticClass:"delimiter-selector-container",style:{width:e.width},on:{click:e.onContainerClick}},[i("div",{staticClass:"value"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"delimiterInput",class:{filled:e.filled},attrs:{type:"text",maxlength:"1",disabled:e.disabled},domProps:{value:e.inputValue},on:{click:function(e){e.stopPropagation()},input:function(t){t.target.composing||(e.inputValue=t.target.value)}}}),i("div",{staticClass:"name"},[e._v(e._s(e.getSymbolName(e.value)))])]),i("div",{staticClass:"controls",on:{click:function(e){e.stopPropagation()}}},[i("clear-icon",{attrs:{disabled:e.disabled},nativeOn:{click:function(t){return e.clear.apply(null,arguments)}}}),i("drop-down-chevron",{attrs:{disabled:e.disabled},nativeOn:{click:function(t){!e.disabled&&(e.showOptions=!e.showOptions)}}})],1)]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showOptions,expression:"showOptions"}],staticClass:"options",style:{width:e.width}},e._l(e.options,(function(t,n){return i("div",{key:n,staticClass:"option",on:{click:function(i){return e.chooseOption(t)}}},[i("pre",[e._v(e._s(t))]),i("div",[e._v(e._s(e.getSymbolName(t)))])])})),0)])},xe=[],Ae=(i("25f0"),{0:{name:"null character"},1:{name:"start of header"},2:{name:"start of text"},3:{name:"end of text"},4:{name:"end of transmission"},5:{name:"enquiry"},6:{name:"acknowledge"},7:{name:"bell (ring)"},8:{name:"backspace"},9:{name:"horizontal tab"},10:{name:"line feed"},11:{name:"vertical tab"},12:{name:"form feed"},13:{name:"carriage return"},14:{name:"shift out"},15:{name:"shift in"},16:{name:"data link escape"},17:{name:"device control 1"},18:{name:"device control 2"},19:{name:"device control 3"},20:{name:"device control 4"},21:{name:"negative acknowledge"},22:{name:"synchronize"},23:{name:"end transmission block"},24:{name:"cancel"},25:{name:"end of medium"},26:{name:"substitute"},27:{name:"escape"},28:{name:"file separator"},29:{name:"group separator"},30:{name:"record separator"},31:{name:"unit separator"},32:{name:"space"},33:{name:"exclamation mark"},34:{name:"quotation mark"},35:{name:"number sign"},36:{name:"dollar sign"},37:{name:"percent sign"},38:{name:"ampersand"},39:{name:"apostrophe"},40:{name:"left parenthesis"},41:{name:"right parenthesis"},42:{name:"asterisk"},43:{name:"plus sign"},44:{name:"comma"},45:{name:"hyphen"},46:{name:"period"},47:{name:"slash"},48:{name:"digit 0"},49:{name:"digit 1"},50:{name:"digit 2"},51:{name:"digit 3"},52:{name:"digit 4"},53:{name:"digit 5"},54:{name:"digit 6"},55:{name:"digit 7"},56:{name:"digit 8"},57:{name:"digit 9"},58:{name:"colon"},59:{name:"semicolon"},60:{name:"less-than"},61:{name:"equals-to"},62:{name:"greater-than"},63:{name:"question mark"},64:{name:"at sign"},65:{name:"uppercase A"},66:{name:"uppercase B"},67:{name:"uppercase C"},68:{name:"uppercase D"},69:{name:"uppercase E"},70:{name:"uppercase F"},71:{name:"uppercase G"},72:{name:"uppercase H"},73:{name:"uppercase I"},74:{name:"uppercase J"},75:{name:"uppercase K"},76:{name:"uppercase L"},77:{name:"uppercase M"},78:{name:"uppercase N"},79:{name:"uppercase O"},80:{name:"uppercase P"},81:{name:"uppercase Q"},82:{name:"uppercase R"},83:{name:"uppercase S"},84:{name:"uppercase T"},85:{name:"uppercase U"},86:{name:"uppercase V"},87:{name:"uppercase W"},88:{name:"uppercase X"},89:{name:"uppercase Y"},90:{name:"uppercase Z"},91:{name:"left square bracket"},92:{name:"backslash"},93:{name:"right square bracket"},94:{name:"caret"},95:{name:"underscore"},96:{name:"grave accent"},97:{name:"lowercase a"},98:{name:"lowercase b"},99:{name:"lowercase c"},100:{name:"lowercase d"},101:{name:"lowercase e"},102:{name:"lowercase f"},103:{name:"lowercase g"},104:{name:"lowercase h"},105:{name:"lowercase i"},106:{name:"lowercase j"},107:{name:"lowercase k"},108:{name:"lowercase l"},109:{name:"lowercase m"},110:{name:"lowercase n"},111:{name:"lowercase o"},112:{name:"lowercase p"},113:{name:"lowercase q"},114:{name:"lowercase r"},115:{name:"lowercase s"},116:{name:"lowercase t"},117:{name:"lowercase u"},118:{name:"lowercase v"},119:{name:"lowercase w"},120:{name:"lowercase x"},121:{name:"lowercase y"},122:{name:"lowercase z"},123:{name:"left curly brace"},124:{name:"vertical bar"},125:{name:"right curly brace"},126:{name:"tilde"},127:{name:"delete (rubout)"}}),Le=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{class:["chevron-icon",{disabled:e.disabled}],attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[i("path",{attrs:{d:"M6.175 7.15002L10 10.975L13.825 7.15002L15 8.33336L10 13.3334L5 8.33336L6.175 7.15002Z",fill:"#C8D4E3"}})])},ke=[],Se={name:"DropDownChevron",props:["disabled"]},Ee=Se,Qe=(i("3742"),Object(u["a"])(Ee,Le,ke,!1,null,"07476bf6",null)),Ue=Qe.exports,Ye=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{class:["clear-icon",{disabled:e.disabled}],attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[i("path",{attrs:{d:"M14.3481 14.849C13.8791 15.318 13.1191 15.318 12.6511 14.849L10.0001 11.819L7.34907\n 14.848C6.88007 15.317 6.12007 15.317 5.65207 14.848C5.18307 14.379 5.18307 13.619\n 5.65207 13.151L8.41007 10.001L5.65107 6.84898C5.18207 6.37998 5.18207 5.62098 5.65107\n 5.15198C6.12007 4.68298 6.87907 4.68298 7.34807 5.15198L10.0001 8.18298L12.6511\n 5.15198C13.1201 4.68298 13.8791 4.68298 14.3481 5.15198C14.8171 5.62098 14.8171 6.38098\n 14.3481 6.84898L11.5901 10.001L14.3481 13.151C14.8171 13.62 14.8171 14.38 14.3481\n 14.849V14.849Z",fill:"#C8D4E3"}})])},_e=[],Ze={name:"ClearIcon",props:["disabled"]},Ve=Ze,Pe=(i("523c"),Object(u["a"])(Ve,Ye,_e,!1,null,"208c41ca",null)),qe=Pe.exports,He={name:"DelimiterSelector",props:["value","width","disabled"],components:{DropDownChevron:Ue,ClearIcon:qe},data:function(){return{showOptions:!1,options:[",","\t"," ","|",";","",""],filled:!1,inputValue:""}},watch:{inputValue:function(){this.inputValue?(this.filled=!0,this.inputValue!==this.value&&this.$emit("input",this.inputValue)):this.filled=!1}},created:function(){this.inputValue=this.value},methods:{getSymbolName:function(e){return e?Ae[e.charCodeAt(0).toString()].name:""},chooseOption:function(e){this.inputValue=e,this.showOptions=!1},onContainerClick:function(e){this.$refs.delimiterInput.focus()},clear:function(){this.disabled||(this.inputValue="",this.$refs.delimiterInput.focus())}}},Be=He,$e=(i("28f9"),Object(u["a"])(Be,Oe,xe,!1,null,"44b0b048",null)),Ge=$e.exports,Re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["checkbox-container",{checked:e.checked},{disabled:e.disabled}],on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.checked,expression:"!checked"}],staticClass:"unchecked"}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.checked&&!e.disabled,expression:"checked && !disabled"}],attrs:{src:"light"===e.theme?i("69e6"):i("93dd")}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.checked&&e.disabled,expression:"checked && disabled"}],attrs:{src:i("3d10")}}),e.label?n("span",{staticClass:"label"},[e._v(e._s(e.label))]):e._e()])},We=[],Fe={name:"CheckBox",props:{theme:{type:String,required:!1,default:"accent",validator:function(e){return["accent","light"].includes(e)}},init:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{checked:this.init}},methods:{onClick:function(){this.disabled||(this.checked=!this.checked,this.$emit("click",this.checked))}}},Je=Fe,Xe=(i("a96d"),Object(u["a"])(Je,Re,We,!1,null,"0dd86013",null)),Ke=Xe.exports,et=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"rounded-bg"},[i("div",{ref:"header-container",staticClass:"header-container"},[i("div",e._l(e.header,(function(t,n){return i("div",{key:n,staticClass:"fixed-header",style:{width:t.width+"px"}},[e._v(" "+e._s(t.name)+" ")])})),0)]),i("div",{ref:"table-container",staticClass:"table-container",on:{scroll:e.onScrollTable}},[i("table",{ref:"table",staticClass:"sqliteviz-table"},[i("thead",[i("tr",e._l(e.columns,(function(t,n){return i("th",{key:n,ref:"th",refInFor:!0},[i("div",{staticClass:"cell-data",style:e.cellStyle},[e._v(e._s(t))])])})),0)]),i("tbody",e._l(e.currentPageData.count,(function(t){return i("tr",{key:t},e._l(e.columns,(function(n,a){return i("td",{key:a},[i("div",{staticClass:"cell-data",style:e.cellStyle},[e._v(" "+e._s(e.dataSet.values[n][t-1+e.currentPageData.start])+" ")])])})),0)})),0)])])]),i("div",{staticClass:"table-footer"},[i("div",{staticClass:"table-footer-count"},[e._v(" "+e._s(e.rowCount)+" "+e._s(1===e.rowCount?"row":"rows")+" retrieved "),e.preview?i("span",[e._v("for preview")]):e._e(),e.time?i("span",[e._v("in "+e._s(e.time))]):e._e()]),i("pager",{directives:[{name:"show",rawName:"v-show",value:e.pageCount>1,expression:"pageCount > 1"}],attrs:{"page-count":e.pageCount},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1)])},tt=[],it=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("paginate",{attrs:{"page-count":e.pageCount,"page-range":5,"margin-pages":1,"prev-text":e.chevron,"next-text":e.chevron,"no-li-surround":!0,"container-class":"paginator-continer","page-link-class":"paginator-page-link","active-class":"paginator-active-page","break-view-link-class":"paginator-break","next-link-class":"paginator-next","prev-link-class":"paginator-prev","disabled-class":"paginator-disabled"},model:{value:e.page,callback:function(t){e.page=t},expression:"page"}})},nt=[],at=i("8832"),st=i.n(at),rt={name:"Pager",components:{Paginate:st.a},props:["pageCount","value"],data:function(){return{page:this.value,chevron:'\n <svg width="9" height="9" viewBox="0 0 8 12" fill="none">\n <path\n d="M0.721924 9.93097L4.85292 5.79997L0.721924 1.66897L1.99992 0.399973L7.39992\n 5.79997L1.99992 11.2L0.721924 9.93097Z" fill="#506784"\n />\n </svg>\n '}},watch:{page:function(){this.$emit("input",this.page)},value:function(){this.page=this.value}}},ot=rt,ct=(i("4378"),Object(u["a"])(ot,it,nt,!1,null,"36acc975",null)),lt=ct.exports,ut={name:"SqlTable",components:{Pager:lt},props:{dataSet:Object,time:String,pageSize:{type:Number,default:20},preview:Boolean},data:function(){return{header:null,tableWidth:null,currentPage:1,resizeObserver:null}},computed:{columns:function(){return this.dataSet.columns},rowCount:function(){return this.dataSet.values[this.columns[0]].length},cellStyle:function(){var e=this.tableWidth/this.columns.length;return{maxWidth:"".concat(Math.max(e,100),"px")}},pageCount:function(){return Math.ceil(this.rowCount/this.pageSize)},currentPageData:function(){var e=(this.currentPage-1)*this.pageSize,t=e+this.pageSize;return t>this.rowCount-1&&(t=this.rowCount-1),{start:e,end:t,count:t-e+1}}},methods:{calculateHeadersWidth:function(){var e=this;this.tableWidth=this.$refs["table-container"].offsetWidth,this.$nextTick((function(){e.header=e.$refs.th.map((function(e){return{name:e.innerText,width:e.getBoundingClientRect().width}}))}))},onScrollTable:function(){this.$refs["header-container"].scrollLeft=this.$refs["table-container"].scrollLeft}},mounted:function(){this.resizeObserver=new ResizeObserver(this.calculateHeadersWidth),this.resizeObserver.observe(this.$refs.table),this.calculateHeadersWidth()},beforeDestroy:function(){this.resizeObserver.unobserve(this.$refs.table)},watch:{currentPageData:"calculateHeadersWidth",dataSet:function(){this.currentPage=1}}},dt=ut,Mt=Object(u["a"])(dt,et,tt,!1,null,"79f99032",null),pt=Mt.exports,gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"logsContainer",staticClass:"logs-container"},e._l(e.messages,(function(t,a){return n("div",{key:a,staticClass:"msg"},["error"===t.type?n("img",{attrs:{src:i("7314")}}):e._e(),"info"===t.type?n("img",{attrs:{src:i("db39"),width:"20px"}}):e._e(),"success"===t.type?n("img",{attrs:{src:i("0bf4")}}):e._e(),"loading"===t.type?n("loading-indicator",{attrs:{progress:t.progress}}):e._e(),n("span",{staticClass:"msg-text"},[e._v(e._s(e.serializeMessage(t)))])],1)})),0)},ht=[],It=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{class:e.animationClass,attrs:{height:e.size,width:e.size,viewBox:"0 0 "+e.size+" "+e.size}},[i("circle",{staticClass:"loader-svg bg",style:{strokeWidth:e.strokeWidth},attrs:{cx:e.size/2,cy:e.size/2,r:e.radius}}),i("circle",{staticClass:"loader-svg front",style:{strokeDasharray:e.circleProgress,strokeDashoffset:e.offset,strokeWidth:e.strokeWidth},attrs:{cx:e.size/2,cy:e.size/2,r:e.radius}})])},mt=[],Nt={name:"LoadingIndicator",props:{progress:{type:Number,required:!1},size:{type:Number,required:!1,default:20}},computed:{circleProgress:function(){var e=3.14*this.radius*2,t=this.progress?e*this.progress/100:1*e/3,i=e-t;return"".concat(t,"px, ").concat(i,"px")},animationClass:function(){return void 0===this.progress?"loading":"progress"},radius:function(){return this.size/2-this.strokeWidth},offset:function(){return 3.14*this.radius/2},strokeWidth:function(){return this.size/10}}},vt=Nt,ft=(i("d9ad"),Object(u["a"])(vt,It,mt,!1,null,"62096452",null)),jt=ft.exports,Dt={name:"logs",props:["messages"],components:{LoadingIndicator:jt},watch:{"messages.length":"scrollToBottom"},mounted:function(){this.scrollToBottom()},methods:{scrollToBottom:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.$refs.logsContainer,!i){t.next=5;break}return t.next=4,e.$nextTick();case 4:i.scrollTop=i.scrollHeight;case 5:case"end":return t.stop()}}),t)})))()},serializeMessage:function(e){var t="";return null!==e.row&&void 0!==e.row&&("error"===e.type?t+="Error in row ".concat(e.row,". "):t+="Information about row ".concat(e.row,". ")),t+=e.message,/(\.|!|\?)$/.test(t)||(t+="."),e.hint&&(t+=" ".concat(e.hint)),t}}},Ct=Dt,bt=(i("0582"),Object(u["a"])(Ct,gt,ht,!1,null,"1c9f27dc",null)),yt=bt.exports,wt=(i("b680"),{getPeriod:function(e,t){var i=t.getTime()-e.getTime(),n=i/1e3;return n.toFixed(3)+"s"},debounce:function(e,t){var i;return function(){var n=arguments,a=this;clearTimeout(i),i=setTimeout((function(){return e.apply(a,n)}),t)}},sleep:function(e){return new Promise((function(t){setTimeout((function(){t()}),e)}))}}),zt={name:"CsvImport",components:{CloseIcon:M,TextField:se,DelimiterSelector:Ge,CheckBox:Ke,SqlTable:pt,Logs:yt},props:["file","db","dialogName"],data:function(){return{disableDialog:!1,tableName:"",delimiter:"",quoteChar:'"',escapeChar:'"',header:!0,importCsvCompleted:!1,importCsvMessages:[],previewData:null,addedTable:null,tableNameError:""}},watch:{quoteChar:function(){this.previewCsv()},escapeChar:function(){this.previewCsv()},header:function(){this.previewCsv()},tableName:wt.debounce((function(){var e=this;this.tableNameError="",this.tableName&&this.db.validateTableName(this.tableName).catch((function(t){e.tableNameError=t.message+". Try another table name."}))}),400)},methods:{cancelCsvImport:function(){this.disableDialog||(this.addedTable&&(this.db.execute('DROP TABLE "'.concat(this.addedTable,'"')),this.db.refreshSchema()),this.$modal.hide(this.dialogName),this.$emit("cancel"))},reset:function(){this.header=!0,this.quoteChar='"',this.escapeChar='"',this.delimiter="",this.tableName="",this.disableDialog=!1,this.importCsvCompleted=!1,this.importCsvMessages=[],this.previewData=null,this.addedTable=null,this.tableNameError=""},open:function(){this.tableName=this.db.sanitizeTableName(k.getFileName(this.file)),this.$modal.show(this.dialogName)},previewCsv:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i,n,a,s;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.importCsvCompleted=!1,i={preview:3,quoteChar:e.quoteChar||'"',escapeChar:e.escapeChar,header:e.header,delimiter:e.delimiter},t.prev=2,n=new Date,t.next=6,Te.parse(e.file,i);case 6:a=t.sent,s=new Date,e.previewData=a.data,e.delimiter=a.delimiter,e.importCsvMessages=a.messages||[],a.hasErrors||e.importCsvMessages.push({message:"Preview parsing is completed in ".concat(wt.getPeriod(n,s),"."),type:"success"}),t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](2),e.importCsvMessages=[{message:t.t0,type:"error"}];case 17:case"end":return t.stop()}}),t,null,[[2,14]])})))()},loadFromCsv:function(e){var t=this;return Object(N["a"])(Object(m["a"])().mark((function e(){var i,n,a,s,r,o,c,l,u,d,M,p;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.tableName){e.next=3;break}return t.tableNameError="Table name can't be empty",e.abrupt("return");case 3:return t.disableDialog=!0,i={quoteChar:t.quoteChar||'"',escapeChar:t.escapeChar,header:t.header,delimiter:t.delimiter},n={message:"Parsing CSV...",type:"info"},t.importCsvMessages.push(n),a=setTimeout((function(){n.type="loading"}),1e3),s={message:"Importing CSV into a SQLite database...",type:"info"},r=null,o=function(e){t.$set(s,"progress",e)},c=t.db.createProgressCounter(o),e.prev=12,l=new Date,e.next=16,Te.parse(t.file,i);case 16:if(u=e.sent,d=new Date,u.hasErrors){e.next=38;break}return M=u.rowCount,p=wt.getPeriod(l,d),n.type="success",u.messages.length>0?(t.importCsvMessages=t.importCsvMessages.concat(u.messages),n.message="".concat(M," rows are parsed in ").concat(p,".")):n.message="".concat(M," rows are parsed successfully in ").concat(p,"."),clearTimeout(a),t.importCsvMessages.push(s),r=setTimeout((function(){s.type="loading"}),1e3),l=new Date,e.next=29,t.db.addTableFromCsv(t.tableName,u.data,c);case 29:d=new Date,t.addedTable=t.tableName,p=wt.getPeriod(l,d),s.message="Importing CSV into a SQLite database is completed in ".concat(p,"."),s.type="success",clearTimeout(r),t.importCsvCompleted=!0,e.next=41;break;case 38:n.message="Parsing ended with errors.",n.type="info",t.importCsvMessages=t.importCsvMessages.concat(u.messages);case 41:e.next=48;break;case 43:e.prev=43,e.t0=e["catch"](12),"loading"===n.type&&(n.type="info"),"loading"===s.type&&(s.type="info"),t.importCsvMessages.push({message:e.t0,type:"error"});case 48:clearTimeout(a),clearTimeout(r),t.db.deleteProgressCounter(c),t.disableDialog=!1;case 52:case"end":return e.stop()}}),e,null,[[12,43]])})))()},finish:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i,n;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$modal.hide(e.dialogName),i=["/*"," * Your CSV file has been imported into ".concat(e.addedTable," table.")," * You can run this SQL query to make all CSV records available for charting."," */",'SELECT * FROM "'.concat(e.addedTable,'"')].join("\n"),t.next=4,e.$store.dispatch("addTab",{query:i});case 4:n=t.sent,e.$store.commit("setCurrentTabId",n),e.importCsvCompleted=!1,e.$emit("finish"),Object(S["a"])("inquiry.create",void 0,{auto:!0});case 9:case"end":return t.stop()}}),t)})))()}}},Tt=zt,Ot=(i("0315"),Object(u["a"])(Tt,Ce,be,!1,null,"4345e898",null)),xt=Ot.exports,At={name:"DbUploader",props:{type:{type:String,required:!1,default:"small",validator:function(e){return["illustrated","small"].includes(e)}},width:{type:String,required:!1,default:"unset"}},components:{ChangeDbIcon:pe,CsvImport:xt},data:function(){return{state:"",animationPromise:Promise.resolve(),file:null,newDb:null}},mounted:function(){var e=this;"illustrated"===this.type&&(this.animationPromise=new Promise((function(t){e.$refs.fileImg.addEventListener("animationend",(function(i){i.animationName.startsWith("fly")&&(e.state="dropped",t())}))})))},methods:{cancelCsvImport:function(){this.newDb&&(this.newDb.shutDown(),this.newDb=null)},finish:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$store.commit("setDb",e.newDb),"/workspace"!==e.$route.path&&e.$router.push("/workspace");case 2:case"end":return t.stop()}}),t)})))()},loadDb:function(e){return Promise.all([this.newDb.loadDb(e),this.animationPromise]).then(this.finish)},checkFile:function(e){var t=this;return Object(N["a"])(Object(m["a"])().mark((function i(){var n;return Object(m["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t.state="dropping",t.newDb=fe.getNewDatabase(),!k.isDatabase(e)){i.next=6;break}t.loadDb(e),i.next=13;break;case 6:return Object(S["a"])("database.import",e.size,{from:"csv",new_db:!0}),t.file=e,i.next=10,t.$nextTick();case 10:return n=t.$refs.addCsv,n.reset(),i.abrupt("return",Promise.all([n.previewCsv(),t.animationPromise]).then(n.open));case 13:case"end":return i.stop()}}),i)})))()},browse:function(){k.getFileFromUser(".db,.sqlite,.sqlite3,.csv").then(this.checkFile)},drop:function(e){this.checkFile(e.dataTransfer.files[0])}}},Lt=At,kt=(i("e252"),Object(u["a"])(Lt,re,oe,!1,null,"0db4c886",null)),St=kt.exports,Et=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)},mouseenter:function(t){return e.showTooltip(t,e.tooltipPosition)},mouseleave:e.hideTooltip}},[i("path",{attrs:{d:"M10.5 1.5H4.5C3.675 1.5 3 2.175 3 3V15C3 15.825 3.675 16.5 4.5 16.5H13.5C14.325 16.5\n 15 15.825 15 15V6L10.5 1.5ZM13.5 15H4.5V3H9.75V6.75H13.5V15ZM12 8.25V13.575L10.425\n 12L8.325 14.1L6.225 12L8.325 9.9L6.675 8.25H12Z",fill:"#A2B1C6"}})]),i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" "+e._s(e.tooltip)+" ")])])},Qt=[],Ut={name:"ExportIcon",mixins:[J],props:["tooltip","tooltipPosition"],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},Yt=Ut,_t=(i("d353"),Object(u["a"])(Yt,Et,Qt,!1,null,"ca7c0840",null)),Zt=_t.exports,Vt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)},mouseenter:e.showTooltip,mouseleave:e.hideTooltip}},[i("g",{attrs:{"clip-path":"url(#clip0)"}},[i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6573 1.5H2.59985C1.77485 1.5 1.09985 2.175 1.09985 3V13.6649C1.09985 14.4899\n 1.77485 15.1649 2.59985\n 15.1649H9.84V13.6649H8.87866V9.08244H13.6573V9.83777H15.1573V3C15.1573\n 2.17 14.4873 1.5 13.6573 1.5ZM13.6573\n 7.58244V3H8.87866V7.58244H13.6573ZM7.37866 3H2.59985V7.58244H7.37866V3ZM2.59985\n 9.08244V13.6649H7.37866V9.08244H2.59985ZM13.1702\n 10.8434H15.6702V13.1717H18.0001V15.6717H15.6702V18H13.1702V15.6717H10.8401V13.1717H13.1702V10.8434Z",fill:"#A2B1C6"}})]),i("defs",[i("clipPath",{attrs:{id:"clip0"}},[i("rect",{attrs:{width:"18",height:"18",fill:"white"}})])])]),i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" Add new table from CSV ")])])},Pt=[],qt={name:"AddTableIcon",mixins:[J],props:["tooltip"],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},Ht=qt,Bt=(i("1345"),Object(u["a"])(Ht,Vt,Pt,!1,null,"0ba70d33",null)),$t=Bt.exports,Gt={name:"Schema",components:{TableDescription:$,TextField:se,TreeChevron:P,DbUploader:St,ExportIcon:Zt,AddTableIcon:$t,CsvImport:xt},data:function(){return{schemaVisible:!0,filter:null,file:null}},computed:{schema:function(){var e=this;return this.$store.state.db.schema?this.filter?this.$store.state.db.schema.filter((function(t){return-1!==t.name.toUpperCase().indexOf(e.filter.toUpperCase())})):this.$store.state.db.schema:[]},dbName:function(){return this.$store.state.db.dbName}},methods:{exportToFile:function(){this.$store.state.db.export("".concat(this.dbName,".sqlite"))},addCsv:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,k.getFileFromUser(".csv");case 2:return e.file=t.sent,t.next=5,e.$nextTick();case 5:return i=e.$refs.addCsv,i.reset(),t.next=9,i.previewCsv();case 9:i.open(),Object(S["a"])("database.import",e.file.size,{from:"csv",new_db:!1});case 11:case"end":return t.stop()}}),t)})))()}}},Rt=Gt,Wt=(i("eaae"),Object(u["a"])(Rt,A,L,!1,null,"4b15dca0",null)),Ft=Wt.exports,Jt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"tabs"}},[e.tabs.length>0?i("div",{attrs:{id:"tabs-header"}},e._l(e.tabs,(function(t,n){return i("div",{key:n,class:[{"tab-selected":t.id===e.selectedIndex},"tab"],on:{click:function(i){return e.selectTab(t.id)}}},[i("div",{staticClass:"tab-name"},[i("span",{directives:[{name:"show",rawName:"v-show",value:!t.isSaved,expression:"!tab.isSaved"}],staticClass:"star"},[e._v("*")]),t.name?i("span",[e._v(e._s(t.name))]):i("span",{staticClass:"tab-untitled"},[e._v(e._s(t.tempName))])]),i("div",[i("close-icon",{staticClass:"close-icon",attrs:{size:10},on:{click:function(t){return e.beforeCloseTab(n)}}})],1)])})),0):e._e(),e._l(e.tabs,(function(e,t){return i("tab",{key:e.id,attrs:{id:e.id,"init-name":e.name,"init-query":e.query,"init-view-options":e.viewOptions,"init-view-type":e.viewType,"is-predefined":e.isPredefined,"tab-index":t}})})),i("div",{directives:[{name:"show",rawName:"v-show",value:0===e.tabs.length,expression:"tabs.length === 0"}],attrs:{id:"start-guide"}},[i("span",{staticClass:"link",on:{click:function(t){return e.$root.$emit("createNewInquiry")}}},[e._v("Create")]),e._v(" new inquiry from scratch or open one from "),i("router-link",{staticClass:"link",attrs:{to:"/inquiries"}},[e._v("Inquiries")])],1),i("modal",{attrs:{name:"close-warn",classes:"dialog",height:"auto"}},[i("div",{staticClass:"dialog-header"},[e._v(" Close tab "+e._s(null!==e.closingTabIndex?e.tabs[e.closingTabIndex].name||"["+e.tabs[e.closingTabIndex].tempName+"]":"")+" "),i("close-icon",{on:{click:function(t){return e.$modal.hide("close-warn")}}})],1),i("div",{staticClass:"dialog-body"},[e._v(" You have unsaved changes. Save changes in "+e._s(null!==e.closingTabIndex?e.tabs[e.closingTabIndex].name||"["+e.tabs[e.closingTabIndex].tempName+"]":"")+" before closing? ")]),i("div",{staticClass:"dialog-buttons-container"},[i("button",{staticClass:"secondary",on:{click:function(t){return e.closeTab(e.closingTabIndex)}}},[e._v(" Close without saving ")]),i("button",{staticClass:"secondary",on:{click:function(t){return e.$modal.hide("close-warn")}}},[e._v("Cancel")]),i("button",{staticClass:"primary",on:{click:function(t){return e.saveAndClose(e.closingTabIndex)}}},[e._v("Save and close")])])])],2)},Xt=[],Kt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"tab-content-container"},[i("splitpanes",{staticClass:"query-results-splitter",attrs:{horizontal:"",before:{size:50,max:100},after:{size:50,max:100}},scopedSlots:e._u([{key:"left-pane",fn:function(){return[i("div",{staticClass:"above",attrs:{id:"above-"+e.tabIndex}})]},proxy:!0},{key:"right-pane",fn:function(){return[i("div",{ref:"bottomPane",staticClass:"bottomPane",attrs:{id:"bottom-"+e.tabIndex}})]},proxy:!0}])}),i("div",{staticClass:"hidden-part",attrs:{id:"hidden-"+e.tabIndex}}),i("teleport",{attrs:{to:"#"+e.layout.sqlEditor+"-"+e.tabIndex}},[i("sql-editor",{ref:"sqlEditor",attrs:{"is-getting-results":e.isGettingResults},on:{switchTo:function(t){return e.onSwitchView("sqlEditor",t)},run:e.execute},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}})],1),i("teleport",{attrs:{to:"#"+e.layout.table+"-"+e.tabIndex}},[i("run-result",{attrs:{result:e.result,"is-getting-results":e.isGettingResults,error:e.error,time:e.time},on:{switchTo:function(t){return e.onSwitchView("table",t)}}})],1),i("teleport",{attrs:{to:"#"+e.layout.dataView+"-"+e.tabIndex}},[i("data-view",{ref:"dataView",attrs:{"data-source":e.result&&e.result.values||null,"init-options":e.initViewOptions,"init-mode":e.initViewType},on:{switchTo:function(t){return e.onSwitchView("dataView",t)},update:e.onDataViewUpdate}})],1)],1)},ei=[],ti=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sql-editor-panel"},[i("div",{staticClass:"codemirror-container"},[i("codemirror",{ref:"cm",attrs:{options:e.cmOptions},on:{changes:e.onChange},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}})],1),i("side-tool-bar",{attrs:{panel:"sqlEditor"},on:{switchTo:function(t){return e.$emit("switchTo",t)}}},[i("icon-button",{attrs:{disabled:e.runDisabled,loading:e.isGettingResults,tooltip:"Run SQL query","tooltip-position":"top-left"},on:{click:function(t){return e.$emit("run")}}},[i("run-icon",{attrs:{disabled:e.runDisabled}})],1)],1)],1)},ii=[],ni=(i("fb6a"),i("56b3")),ai=i.n(ni),si=(i("9b74"),i("991c"),i("2f62")),ri={tabs:[],currentTab:null,currentTabId:null,untitledLastIndex:0,predefinedInquiries:[],db:null},oi=(i("a434"),{setDb:function(e,t){e.db&&e.db.shutDown(),e.db=t},updateTab:function(e,t){var i=t.index,a=t.name,s=t.id,r=t.query,o=t.viewType,c=t.viewOptions,l=t.isSaved,u=e.tabs[i],d=u.id;s&&e.currentTabId===d&&(e.currentTabId=s),s&&(u.id=s),a&&(u.name=a),r&&(u.query=r),o&&(u.viewType=o),c&&(u.viewOptions=c),void 0!==l&&(u.isSaved=l),l&&delete u.isPredefined,n["default"].set(e.tabs,i,u)},deleteTab:function(e,t){e.tabs[t].id===e.currentTabId&&(t<e.tabs.length-1?e.currentTabId=e.tabs[t+1].id:t>0?e.currentTabId=e.tabs[t-1].id:(e.currentTabId=null,e.currentTab=null,e.untitledLastIndex=0)),e.tabs.splice(t,1)},setCurrentTabId:function(e,t){e.currentTabId=t},setCurrentTab:function(e,t){e.currentTab=t},updatePredefinedInquiries:function(e,t){e.predefinedInquiries=Array.isArray(t)?t:[t]}}),ci=(i("e9c4"),i("e1bd")),li={addTab:function(e,t){return Object(N["a"])(Object(m["a"])().mark((function i(){var n,a;return Object(m["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=e.state,a=t?JSON.parse(JSON.stringify(t)):{},t&&t.id?a.isSaved=!0:(a.id=Object(ci["a"])(),a.name=null,a.tempName=n.untitledLastIndex?"Untitled ".concat(n.untitledLastIndex):"Untitled",a.viewType="chart",a.viewOptions=void 0,a.isSaved=!1),n.tabs.some((function(e){return e.id===a.id}))||(n.tabs.push(a),a.name||(n.untitledLastIndex+=1)),i.abrupt("return",a.id);case 5:case"end":return i.stop()}}),i)})))()}};n["default"].use(si["a"]);var ui=new si["a"].Store({state:ri,mutations:oi,actions:li});function di(e,t){var i=e.getTokenAt(e.getCursor()).string.toUpperCase(),n=ai.a.hint.sql(e,t);return 1===n.list.length&&n.list[0].text.toUpperCase()===i&&(n.list=[]),n}var Mi={get tables(){var e={};return ui.state.db.schema&&ui.state.db.schema.forEach((function(t){e[t.name]=t.columns.map((function(e){return e.name}))})),e},get defaultTable(){var e=ui.state.db.schema;return e&&1===e.length?e[0].name:null},completeSingle:!1,completeOnSingleClick:!0,alignWithWord:!1};function pi(e){ai.a.showHint(e,di,Mi)}function gi(e){var t=e.getTokenAt(e.getCursor()),i=t.string.slice(-1),n=t.type;"string"!==n&&i&&" "!==i&&";"!==i&&ai.a.showHint(e,di,Mi)}var hi=i("8f94"),Ii=(i("a7be"),i("ffda"),i("d5db"),i("f6b6"),i("f4ba"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"side-tool-bar"},[i("icon-button",{attrs:{active:"sqlEditor"===e.panel,tooltip:"Switch panel to SQL editor","tooltip-position":"top-left"},nativeOn:{click:function(t){return e.$emit("switchTo","sqlEditor")}}},[i("sql-editor-icon")],1),i("icon-button",{attrs:{active:"table"===e.panel,tooltip:"Switch panel to result set","tooltip-position":"top-left"},nativeOn:{click:function(t){return e.$emit("switchTo","table")}}},[i("table-icon")],1),i("icon-button",{attrs:{active:"dataView"===e.panel,tooltip:"Switch panel to data view","tooltip-position":"top-left"},nativeOn:{click:function(t){return e.$emit("switchTo","dataView")}}},[i("data-view-icon")],1),e.$slots.default?i("div",{staticClass:"side-tool-bar-divider"}):e._e(),e._t("default")],2)}),mi=[],Ni=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["icon-btn",{active:e.active},{disabled:e.disabled}],on:{click:e.onClick,mouseenter:function(t){return e.showTooltip(t,e.tooltipPosition)},mouseleave:e.hideTooltip}},[i("div",{staticClass:"icon"},[e._t("default")],2),i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"icon-in-progress"},[i("loading-indicator")],1),e.tooltip?i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" "+e._s(e.tooltip)+" ")]):e._e()])},vi=[],fi={name:"SideBarButton",props:["active","disabled","tooltip","tooltipPosition","loading"],components:{LoadingIndicator:jt},mixins:[J],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},ji=fi,Di=(i("dd9c"),Object(u["a"])(ji,Ni,vi,!1,null,"0c2b486e",null)),Ci=Di.exports,bi=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"}},[i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 2.16512L3.5 2.16999C2.675 2.16999 2 2.84499 2 3.66999V14.3349C2 15.1599 2.675\n 15.8349 3.5 15.8349L14.5 15.83C15.3327 15.83 16 15.1551 16 14.33V3.66512C16 2.83511 15.33\n 2.16512 14.5 2.16512ZM14.5014 3.66512L3.49878 3.66999V14.33L14.5014 14.3251V3.66512Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.27319 14.7069L6.27319 3.32135L7.77319 3.32135L7.77319 14.7069L6.27319 14.7069Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2639 14.6932L10.2639 3.30772L11.7639 3.30772L11.7639 14.6932L10.2639 14.6932Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5108 7.48325H2.4895V5.98325H15.5108V7.48325Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5108 11.6056H2.4895V10.1056H15.5108V11.6056Z",fill:"#A2B1C6"}})])},yi=[],wi={name:"TableIcon"},zi=wi,Ti=Object(u["a"])(zi,bi,yi,!1,null,null,null),Oi=Ti.exports,xi=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none"}},[i("g",{attrs:{"clip-path":"url(#clip0)"}},[i("path",{attrs:{d:"M4.5 1.51343H10.5L15 6.01343V8.45284H13.5V6.76343H9.75V3.01343H4.5V8.45284H3V3.01343C3\n 2.18843 3.675 1.51343 4.5 1.51343Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M4.28369 14.8127C4.28369 14.5872 4.20312 14.4114 4.04199 14.2854C3.88379 14.1594\n 3.604 14.0291 3.20264 13.8943C2.80127 13.7595 2.47314 13.6292 2.21826 13.5032C1.38916\n 13.0959 0.974609 12.5364 0.974609 11.8245C0.974609 11.47 1.07715 11.158 1.28223\n 10.8884C1.49023 10.616 1.7832 10.405 2.16113 10.2556C2.53906 10.1033 2.96387 10.0271\n 3.43555 10.0271C3.89551 10.0271 4.30713 10.1091 4.67041 10.2732C5.03662 10.4373 5.3208\n 10.6716 5.52295 10.9763C5.7251 11.2781 5.82617 11.6238 5.82617 12.0134H4.28809C4.28809\n 11.7527 4.20752 11.5505 4.04639 11.407C3.88818 11.2634 3.67285 11.1917 3.40039\n 11.1917C3.125 11.1917 2.90674 11.2532 2.74561 11.3762C2.5874 11.4963 2.5083\n 11.6501 2.5083 11.8376C2.5083 12.0017 2.59619 12.1511 2.77197 12.2859C2.94775 12.4177\n 3.25684 12.5554 3.69922 12.699C4.1416 12.8396 4.50488 12.9919 4.78906 13.156C5.48047\n 13.5544 5.82617 14.1038 5.82617 14.804C5.82617 15.3635 5.61523 15.803 5.19336\n 16.1223C4.77148 16.4417 4.19287 16.6013 3.45752 16.6013C2.93896 16.6013 2.46875 16.509\n 2.04688 16.3245C1.62793 16.137 1.31152 15.8821 1.09766 15.5598C0.886719 15.2346\n 0.78125 14.8611 0.78125 14.4392H2.32812C2.32812 14.782 2.41602 15.0354 2.5918\n 15.1995C2.77051 15.3606 3.05908 15.4412 3.45752 15.4412C3.7124 15.4412 3.91309\n 15.387 4.05957 15.2786C4.20898 15.1672 4.28369 15.012 4.28369 14.8127ZM12.0444\n 13.446C12.0444 14.0378 11.9463 14.5549 11.75 14.9973C11.5537 15.4368 11.2827 15.7898\n 10.937 16.0564L11.9697 16.8738L11.0161 17.6824L9.64062 16.575C9.51172 16.5925 9.38281\n 16.6013 9.25391 16.6013C8.70898 16.6013 8.22559 16.4753 7.80371 16.2234C7.38184 15.9714\n 7.05225 15.6111 6.81494 15.1423C6.58057 14.6736 6.45898 14.1345 6.4502\n 13.5251V13.1868C6.4502 12.5569 6.56445 12.0032 6.79297 11.5256C7.02441 11.0481 7.35254\n 10.679 7.77734 10.4182C8.20508 10.1575 8.69434 10.0271 9.24512 10.0271C9.78711 10.0271\n 10.2705 10.156 10.6953 10.4138C11.1201 10.6716 11.4497 11.0393 11.6841 11.5168C11.9214\n 11.9915 12.0415 12.5364 12.0444 13.1516V13.446ZM10.4756 13.178C10.4756 12.5422 10.3687\n 12.0603 10.1548 11.7322C9.94385 11.4011 9.64062 11.2356 9.24512 11.2356C8.83789 11.2356\n 8.53174 11.3982 8.32666 11.7234C8.12158 12.0486 8.01758 12.5247 8.01465\n 13.1516V13.446C8.01465 14.0759 8.11865 14.5593 8.32666 14.8962C8.53467 15.2302 8.84375\n 15.3972 9.25391 15.3972C9.64648 15.3972 9.94678 15.2317 10.1548 14.9006C10.3657\n 14.5696 10.4727 14.0935 10.4756 13.4724V13.178ZM14.3735\n 15.3269H17.0586V16.5134H12.8311V10.115H14.3735V15.3269Z",fill:"#A2B1C6"}})]),i("defs",[i("clipPath",{attrs:{id:"clip0"}},[i("rect",{attrs:{width:"18",height:"18",fill:"white",transform:"translate(0 0.0134277)"}})])])])},Ai=[],Li={name:"SqlEditorIcon"},ki=Li,Si=Object(u["a"])(ki,xi,Ai,!1,null,null,null),Ei=Si.exports,Qi=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"}},[i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5552 6.91522C13.7584 6.91357 13.9535 6.99442 14.096 7.13926L17.2582 10.3541C17.5486\n 10.6494 17.5447 11.1242 17.2494 11.4147C16.9541 11.7051 16.4793 11.7012 16.1888\n 11.4059L13.57 8.74357L9.29577 13.2318C9.01977 13.5216 8.56484 13.5436 8.2621\n 13.2819L5.35435 10.7677L2.03285 13.7321C1.72382 14.0079 1.24971 13.981 0.973901\n 13.6719C0.69809 13.3629 0.725022 12.8888 1.03406 12.613L4.8471 9.20986C5.12827 8.95892\n 5.55198 8.95559 5.83705 9.20208L8.70249 11.6797L13.0182 7.14796C13.1583 7.00084 13.3521\n 6.91686 13.5552 6.91522Z",fill:"#A2B1C6"}}),i("circle",{attrs:{cx:"5.50049",cy:"6.00339",r:"1.5",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.036 1.21788L1.96546 1.213C1.14046 1.213 0.465462 1.888 0.465462 2.713L0.464111\n 15.2821C0.464111 16.1071 1.13911 16.7821 1.96411 16.7821L16.0347 16.787C16.8674 16.787\n 17.5347 16.1121 17.5347 15.287L17.536 2.71788C17.536 1.88787 16.866 1.21788 16.036\n 1.21788ZM16.0374 2.71788L1.96424 2.713L1.96289 15.2773L16.036 15.2821L16.0374 2.71788Z",fill:"#A2B1C6"}})])},Ui=[],Yi={name:"DataViewIcon"},_i=Yi,Zi=Object(u["a"])(_i,Qi,Ui,!1,null,null,null),Vi=Zi.exports,Pi={name:"SideToolBar",props:["panel"],components:{IconButton:Ci,SqlEditorIcon:Ei,DataViewIcon:Vi,TableIcon:Oi}},qi=Pi,Hi=(i("f4e5"),Object(u["a"])(qi,Ii,mi,!1,null,"3b6366bb",null)),Bi=Hi.exports,$i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"}},[i("path",{attrs:{d:"M11.1624 6.94358L0.770043 12.9436L0.770043 0.943573L11.1624 6.94358Z",fill:"#A2B1C6"}})])},Gi=[],Ri={name:"RunIcon"},Wi=Ri,Fi=Object(u["a"])(Wi,$i,Gi,!1,null,null,null),Ji=Fi.exports,Xi={name:"SqlEditor",props:["value","isGettingResults"],components:{codemirror:hi["codemirror"],SideToolBar:Bi,IconButton:Ci,RunIcon:Ji},data:function(){return{query:this.value,cmOptions:{tabSize:4,mode:"text/x-mysql",theme:"neo",lineNumbers:!0,line:!0,autoRefresh:!0,extraKeys:{"Ctrl-Space":pi}}}},computed:{runDisabled:function(){return!this.$store.state.db||!this.query||this.isGettingResults}},watch:{query:function(){this.$emit("input",this.query)}},methods:{onChange:wt.debounce(gi,400),focus:function(){this.$refs.cm.codemirror.focus()}}},Ki=Xi,en=(i("16a3"),Object(u["a"])(Ki,ti,ii,!1,null,"c84dd870",null)),tn=en.exports,nn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"data-view-panel"},[i("div",{staticClass:"data-view-panel-content"},[i(e.mode,{ref:"viewComponent",tag:"component",attrs:{"init-options":e.mode===e.initMode?e.initOptions:void 0,"data-sources":e.dataSource,"import-to-png-enabled":e.importToPngEnabled,"import-to-svg-enabled":e.importToSvgEnabled},on:{"update:importToPngEnabled":function(t){e.importToPngEnabled=t},"update:import-to-png-enabled":function(t){e.importToPngEnabled=t},"update:importToSvgEnabled":function(t){e.importToSvgEnabled=t},"update:import-to-svg-enabled":function(t){e.importToSvgEnabled=t},loadingImageCompleted:function(t){e.loadingImage=!1},update:function(t){return e.$emit("update")}}})],1),i("side-tool-bar",{attrs:{panel:"dataView"},on:{switchTo:function(t){return e.$emit("switchTo",t)}}},[i("icon-button",{attrs:{active:"chart"===e.mode,tooltip:"Switch to chart","tooltip-position":"top-left"},on:{click:function(t){e.mode="chart"}}},[i("chart-icon")],1),i("icon-button",{attrs:{active:"pivot"===e.mode,tooltip:"Switch to pivot","tooltip-position":"top-left"},on:{click:function(t){e.mode="pivot"}}},[i("pivot-icon")],1),i("div",{staticClass:"side-tool-bar-divider"}),i("icon-button",{attrs:{disabled:!e.importToPngEnabled||e.loadingImage,loading:e.loadingImage,tooltip:"Save as PNG image","tooltip-position":"top-left"},on:{click:e.saveAsPng}},[i("png-icon")],1),i("icon-button",{attrs:{disabled:!e.importToSvgEnabled,tooltip:"Save as SVG","tooltip-position":"top-left"},on:{click:e.saveAsSvg}},[i("export-to-svg-icon")],1),i("icon-button",{attrs:{tooltip:"Save as HTML","tooltip-position":"top-left"},on:{click:e.saveAsHtml}},[i("HtmlIcon")],1),i("icon-button",{attrs:{loading:e.copyingImage,tooltip:"Copy visualisation to clipboard","tooltip-position":"top-left"},on:{click:e.prepareCopy}},[i("clipboard-icon")],1)],1),i("loading-dialog",{attrs:{loadingMsg:"Rendering the visualisation...",successMsg:"Image is ready",actionBtnName:"Copy",name:"prepareCopy",title:"Copy to clipboard",loading:e.preparingCopy},on:{action:e.copyToClipboard,cancel:e.cancelCopy}})],1)},an=[],sn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"chartContainer",staticClass:"chart-container"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.dataSources&&e.visible,expression:"!dataSources && visible"}],staticClass:"warning chart-warning"},[e._v(" There is no data to build a chart. Run your SQL query and make sure the result is not empty. ")]),i("PlotlyEditor",{ref:"plotlyEditor",staticClass:"chart",style:{height:e.dataSources?"100%":"calc(100% - 40px)"},attrs:{data:e.state.data,layout:e.state.layout,frames:e.state.frames,config:{editable:!0,displaylogo:!1,modeBarButtonsToRemove:["toImage"]},dataSources:e.dataSources,dataSourceOptions:e.dataSourceOptions,plotly:e.plotly,useResizeHandler:!0,debug:!0,advancedTraceTypeSelector:!0},on:{onUpdate:e.update,onRender:e.onRender}})],1)},rn=[],on=i("030a"),cn=i.n(on),ln=(i("0848"),i("b1c6")),un=i.n(ln),dn=(i("b64b"),i("662f")),Mn=i.n(dn);function pn(e){return e?Object.keys(e).map((function(e){return{value:e,label:e}})):[]}function gn(e,t){var i=JSON.parse(JSON.stringify(e)),n={};for(var a in t)n[a]=[];return Mn()(i.data,n),i}function hn(e,t){return In.apply(this,arguments)}function In(){return In=Object(N["a"])(Object(m["a"])().mark((function e(t,i){var n;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.querySelector(".js-plotly-plot"),e.next=3,cn.a.toImage(n,{format:i,width:null,height:null});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),In.apply(this,arguments)}function mn(e){var t=e.querySelector(".js-plotly-plot");return{data:t.data,layout:t.layout}}function Nn(e){var t=Object(ci["a"])();return'\n <script src="https://cdn.plot.ly/plotly-latest.js" charset="UTF-8"><\/script>\n <div id="'.concat(t,'"></div>\n <script>\n const el = document.getElementById("').concat(t,'")\n \n let timeout\n function debounceResize() {\n clearTimeout(timeout)\n timeout = setTimeout(() => {\n var r = el.getBoundingClientRect()\n Plotly.relayout(el, {width: r.width, height: r.height})\n }, 200)\n }\n \n const resizeObserver = new ResizeObserver(debounceResize)\n resizeObserver.observe(el)\n \n Plotly.newPlot(el, ').concat(JSON.stringify(e.data),", ").concat(JSON.stringify(e.layout),")\n <\/script>\n ")}var vn={getOptionsFromDataSources:pn,getOptionsForSave:gn,getImageDataUrl:hn,getHtml:Nn,getChartData:mn},fn={name:"Chart",props:["dataSources","initOptions","importToPngEnabled","importToSvgEnabled","forPivot"],components:{PlotlyEditor:un.a},data:function(){return{plotly:cn.a,state:this.initOptions||{data:[],layout:{},frames:[]},visible:!0,resizeObserver:null}},computed:{dataSourceOptions:function(){return vn.getOptionsFromDataSources(this.dataSources)}},created:function(){var e=this;cn.a.setPlotConfig({notifyOnLogging:1}),this.$watch((function(){return JSON.stringify(e.state.data.map((function(e){return"".concat(e.type,"-").concat(e.mode)})))}),(function(t){Object(S["a"])("viz_plotly.render",void 0,{type:t,pivot:!!e.forPivot})}),{deep:!0})},mounted:function(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.$refs.chartContainer)},beforeDestroy:function(){this.resizeObserver.unobserve(this.$refs.chartContainer)},watch:{dataSources:function(){this.dataSources&&Mn()(this.state.data,this.dataSources)}},methods:{handleResize:function(){var e=this;this.visible=!1,this.$nextTick((function(){e.visible=!0}))},onRender:function(e,t,i){},update:function(e,t,i){this.state={data:e,layout:t,frames:i},this.$emit("update")},getOptionsForSave:function(){return vn.getOptionsForSave(this.state,this.dataSources)},saveAsPng:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.prepareCopy();case 2:i=t.sent,e.$emit("loadingImageCompleted"),k.downloadFromUrl(i,"chart");case 5:case"end":return t.stop()}}),t)})))()},saveAsSvg:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.prepareCopy("svg");case 2:i=t.sent,k.downloadFromUrl(i,"chart");case 4:case"end":return t.stop()}}),t)})))()},saveAsHtml:function(){k.exportToFile(vn.getHtml(this.state),"chart.html","text/html")},prepareCopy:function(){var e=arguments,t=this;return Object(N["a"])(Object(m["a"])().mark((function i(){var n;return Object(m["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:"png",i.next=3,vn.getImageDataUrl(t.$refs.plotlyEditor.$el,n);case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i)})))()}}},jn=fn,Dn=(i("d395"),Object(u["a"])(jn,sn,rn,!1,null,"122d3608",null)),Cn=Dn.exports,bn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pivot-container"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.dataSources,expression:"!dataSources"}],staticClass:"warning pivot-warning"},[e._v(" There is no data to build a pivot. Run your SQL query and make sure the result is not empty. ")]),i("pivot-ui",{attrs:{"key-names":e.columns},on:{update:function(t){return e.$emit("update")},loadingCustomChartImageCompleted:function(t){return e.$emit("loadingImageCompleted")}},model:{value:e.pivotOptions,callback:function(t){e.pivotOptions=t},expression:"pivotOptions"}}),i("div",{ref:"pivotOutput",staticClass:"pivot-output"})],1)},yn=[],wn=i("1157"),zn=i.n(wn),Tn=(i("9751"),i("ccb1"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pivot-ui"},[i("div",{class:{collapsed:e.collapsed}},[i("div",{staticClass:"row"},[i("label",[e._v("Columns")]),i("multiselect",{staticClass:"sqliteviz-select cols",attrs:{options:e.colsToSelect,disabled:0===e.colsToSelect.length,multiple:!0,hideSelected:!0,"close-on-select":!0,"show-labels":!1,max:e.colsToSelect.length,"open-direction":"bottom",placeholder:""},model:{value:e.cols,callback:function(t){e.cols=t},expression:"cols"}},[i("template",{slot:"maxElements"},[i("span",{staticClass:"no-results"},[e._v("No Results")])]),i("template",{slot:"placeholder"},[e._v("Choose columns")]),i("template",{slot:"noResult"},[i("span",{staticClass:"no-results"},[e._v("No Results")])])],2),i("pivot-sort-btn",{staticClass:"sort-btn",attrs:{direction:"col"},model:{value:e.colOrder,callback:function(t){e.colOrder=t},expression:"colOrder"}})],1),i("div",{staticClass:"row"},[i("label",[e._v("Rows")]),i("multiselect",{staticClass:"sqliteviz-select rows",attrs:{options:e.rowsToSelect,disabled:0===e.rowsToSelect.length,multiple:!0,hideSelected:!0,"close-on-select":!0,"show-labels":!1,max:e.rowsToSelect.length,"option-height":29,"open-direction":"bottom",placeholder:""},model:{value:e.rows,callback:function(t){e.rows=t},expression:"rows"}},[i("template",{slot:"maxElements"},[i("span",{staticClass:"no-results"},[e._v("No Results")])]),i("template",{slot:"placeholder"},[e._v("Choose rows")]),i("template",{slot:"noResult"},[i("span",{staticClass:"no-results"},[e._v("No Results")])])],2),i("pivot-sort-btn",{staticClass:"sort-btn",attrs:{direction:"row"},model:{value:e.rowOrder,callback:function(t){e.rowOrder=t},expression:"rowOrder"}})],1),i("div",{staticClass:"row aggregator"},[i("label",[e._v("Aggregator")]),i("multiselect",{staticClass:"sqliteviz-select short aggregator",attrs:{options:e.aggregators,label:"name","track-by":"name","close-on-select":!0,"show-labels":!1,hideSelected:!0,"option-height":29,"open-direction":"bottom",placeholder:"Choose a function"},model:{value:e.aggregator,callback:function(t){e.aggregator=t},expression:"aggregator"}},[i("template",{slot:"noResult"},[i("span",{staticClass:"no-results"},[e._v("No Results")])])],2),i("multiselect",{directives:[{name:"show",rawName:"v-show",value:e.valCount>0,expression:"valCount > 0"}],staticClass:"sqliteviz-select aggr-arg",attrs:{options:e.keyNames,disabled:0===e.keyNames.length,"close-on-select":!0,"show-labels":!1,hideSelected:!0,"option-height":29,"open-direction":"bottom",placeholder:"Choose an argument"},model:{value:e.val1,callback:function(t){e.val1=t},expression:"val1"}}),i("multiselect",{directives:[{name:"show",rawName:"v-show",value:e.valCount>1,expression:"valCount > 1"}],staticClass:"sqliteviz-select aggr-arg",attrs:{options:e.keyNames,disabled:0===e.keyNames.length,"close-on-select":!0,"show-labels":!1,hideSelected:!0,"option-height":29,"open-direction":"bottom",placeholder:"Choose a second argument"},model:{value:e.val2,callback:function(t){e.val2=t},expression:"val2"}})],1),i("div",{staticClass:"row"},[i("label",[e._v("View")]),i("multiselect",{staticClass:"sqliteviz-select short renderer",attrs:{options:e.renderers,label:"name","track-by":"name","close-on-select":!0,"allow-empty":!1,"show-labels":!1,hideSelected:!0,"option-height":29,"open-direction":"bottom",placeholder:"Choose a view"},model:{value:e.renderer,callback:function(t){e.renderer=t},expression:"renderer"}},[i("template",{slot:"noResult"},[i("span",{staticClass:"no-results"},[e._v("No Results")])])],2)],1)]),i("span",{staticClass:"switcher",on:{click:function(t){e.collapsed=!e.collapsed}}},[e._v(" "+e._s(e.collapsed?"Show pivot settings":"Hide pivot settings")+" ")])])}),On=[],xn=(i("2532"),i("8e5f")),An=i.n(xn),Ln=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["pivot-sort-btn",e.direction],on:{click:e.changeSorting}},[e._v(" "+e._s(e.value.includes("key")?"key":"value")+" "),i("sort-icon",{staticClass:"sort-icon",attrs:{horizontal:"col"===e.direction,asc:e.value.includes("a_to_z")}})],1)},kn=[],Sn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{class:["sort-icon",{horizontal:e.horizontal},{asc:e.asc}],attrs:{width:"6",height:"12",viewBox:"0 0 6 12",fill:"none"}},[i("path",{attrs:{d:"M2.99932 -3.63032e-05C2.75092 -3.63032e-05 2.54932 0.201563 2.54932 0.449964L2.54932\n 11.55C2.54932 11.7984 2.75092 12 2.99932 12C3.24772 12 3.44932 11.7984 3.44932\n 11.55L3.44932 0.449964C3.44932 0.201563 3.24772 -3.63032e-05 2.99932 -3.63032e-05Z",fill:"#506784"}}),i("path",{attrs:{d:"M2.99915 1.80492e-05C2.8839 1.80492e-05 2.76865 0.0438534 2.68109 0.132073L0.581055\n 2.232C0.405273 2.40789 0.405273 2.69287 0.581055 2.86865C0.756946 3.04443 1.04193 3.04443\n 1.21771 2.86865L2.99969 1.08667L4.78168 2.86865C4.95746 3.04443 5.24255 3.04443 5.41833\n 2.86865C5.59412 2.69287 5.59412 2.40789 5.41833 2.232L3.3183 0.132073C3.22953 0.0438534\n 3.11428 1.80492e-05 2.99915 1.80492e-05V1.80492e-05Z",fill:"#506784"}})])},En=[],Qn={name:"SortIcon",props:{horizontal:{type:Boolean,required:!1,default:!1},asc:{type:Boolean,required:!1,default:!0}}},Un=Qn,Yn=(i("a6ab"),Object(u["a"])(Un,Sn,En,!1,null,"80fbe500",null)),_n=Yn.exports,Zn={name:"PivotSortBtn",props:["direction","value"],components:{SortIcon:_n},methods:{changeSorting:function(){"key_a_to_z"===this.value?this.$emit("input","value_a_to_z"):"value_a_to_z"===this.value?this.$emit("input","value_z_to_a"):this.$emit("input","key_a_to_z")}}},Vn=Zn,Pn=(i("0f34"),Object(u["a"])(Vn,Ln,kn,!1,null,"e3801f08",null)),qn=Pn.exports,Hn=(i("8e51"),i("3c3e"),i("c0e9")),Bn=i.n(Hn),$n=["Count","Count as Fraction of Total","Count as Fraction of Rows","Count as Fraction of Columns"],Gn=["Sum over Sum","80% Upper Bound","80% Lower Bound"];function Rn(e){var t=e.getRowKeys(),i=e.getColKeys(),n={"Column keys":i.map((function(e){return e.join("-")})),"Row keys":t.map((function(e){return e.join("-")}))},a={},s={},r=e.rowAttrs.join("-"),o=e.colAttrs.join("-");return i.forEach((function(i){var n=o+":"+i.join("-");s[n]=[],t.forEach((function(t){var o=e.getAggregator(t,i).value();s[n].push(o);var c=r+":"+t.join("-");a[c]||(a[c]=[]),a[c].push(o)}))})),Object.assign(n,s,a)}function Wn(e,t){return t.customChartComponent.dataSources=Rn(e),t.customChartComponent.forPivot=!0,t.customChartComponent.$mount(),zn()(t.customChartComponent.$el)}zn.a.extend(zn.a.pivotUtilities.renderers,zn.a.pivotUtilities.export_renderers,zn.a.pivotUtilities.plotly_renderers,{"Custom chart":Wn});var Fn=Object.keys(zn.a.pivotUtilities.renderers).map((function(e){return{name:e,fun:zn.a.pivotUtilities.renderers[e]}})),Jn=Object.keys(zn.a.pivotUtilities.aggregators).map((function(e){return{name:e,fun:zn.a.pivotUtilities.aggregators[e]}}));function Xn(e){return Kn.apply(this,arguments)}function Kn(){return Kn=Object(N["a"])(Object(m["a"])().mark((function e(t){var i;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.querySelector(".pvtTable"),e.next=3,Bn()(i,{logging:!1});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),Kn.apply(this,arguments)}function ea(e){return"\n <style>\n table.pvtTable {\n font-family: Arial, sans-serif;\n font-size: 12px;\n text-align: left;\n border-collapse: collapse;\n min-width: 100%;\n }\n table.pvtTable .pvtColLabel {\n text-align: center;\n }\n table.pvtTable .pvtTotalLabel {\n text-align: right;\n }\n table.pvtTable tbody tr td {\n color: #506784;\n border: 1px solid #DFE8F3;\n text-align: right;\n }\n table.pvtTable thead tr th,\n table.pvtTable tbody tr th {\n background-color: #506784;\n color: #fff;\n border: 1px solid #DFE8F3;\n }\n </style>\n ".concat(e.outerHTML,"\n ")}var ta={getPivotCanvas:Xn,getPivotHtml:ea},ia=n["default"].extend(Cn),na={name:"pivotUi",props:["keyNames","value"],components:{Multiselect:An.a,PivotSortBtn:qn},data:function(){var e=this.value&&this.value.aggregatorName||"Count",t=this.value&&this.value.rendererName||"Table";return{collapsed:!1,renderer:{name:t,fun:zn.a.pivotUtilities.renderers[t]},aggregator:{name:e,fun:zn.a.pivotUtilities.aggregators[e]},rows:this.value&&this.value.rows||[],cols:this.value&&this.value.cols||[],val1:this.value&&this.value.vals&&this.value.vals[0]||"",val2:this.value&&this.value.vals&&this.value.vals[1]||"",colOrder:this.value&&this.value.colOrder||"key_a_to_z",rowOrder:this.value&&this.value.rowOrder||"key_a_to_z",customChartComponent:this.value&&this.value.rendererOptions&&this.value.rendererOptions.customChartComponent||new ia}},computed:{valCount:function(){return $n.includes(this.aggregator.name)?0:Gn.includes(this.aggregator.name)?2:1},renderers:function(){return Fn},aggregators:function(){return Jn},rowsToSelect:function(){var e=this;return this.keyNames.filter((function(t){return!e.cols.includes(t)}))},colsToSelect:function(){var e=this;return this.keyNames.filter((function(t){return!e.rows.includes(t)}))}},watch:{renderer:function(){this.returnValue()},aggregator:function(){this.returnValue()},rows:function(){this.returnValue()},cols:function(){this.returnValue()},val1:function(){this.returnValue()},val2:function(){this.returnValue()},colOrder:function(){this.returnValue()},rowOrder:function(){this.returnValue()}},created:function(){var e=this;this.customChartComponent.$on("update",(function(){e.$emit("update")})),this.customChartComponent.$on("loadingImageCompleted",(function(t){e.$emit("loadingCustomChartImageCompleted")}))},methods:{returnValue:function(){for(var e=[],t=1;t<=this.valCount;t++)e.push(this["val".concat(t)]);this.$emit("update"),this.$emit("input",{rows:this.rows,cols:this.cols,colOrder:this.colOrder,rowOrder:this.rowOrder,aggregator:this.aggregator.fun(e),aggregatorName:this.aggregator.name,renderer:this.renderer.fun,rendererName:this.renderer.name,rendererOptions:"Custom chart"!==this.renderer.name?void 0:{customChartComponent:this.customChartComponent},vals:e})}}},aa=na,sa=(i("5207"),Object(u["a"])(aa,Tn,On,!1,null,"5ff01b28",null)),ra=sa.exports,oa=n["default"].extend(Cn),ca={name:"pivot",props:["dataSources","initOptions","importToPngEnabled","importToSvgEnabled"],components:{PivotUi:ra},data:function(){return{resizeObserver:null,pivotOptions:this.initOptions?{rows:this.initOptions.rows,cols:this.initOptions.cols,colOrder:this.initOptions.colOrder,rowOrder:this.initOptions.rowOrder,aggregatorName:this.initOptions.aggregatorName,aggregator:zn.a.pivotUtilities.aggregators[this.initOptions.aggregatorName](this.initOptions.vals),vals:this.initOptions.vals,rendererName:this.initOptions.rendererName,renderer:zn.a.pivotUtilities.renderers[this.initOptions.rendererName],rendererOptions:this.initOptions.rendererOptions?{customChartComponent:new oa({propsData:{initOptions:this.initOptions.rendererOptions.customChartOptions}})}:void 0}:{rows:[],cols:[],colOrder:"key_a_to_z",rowOrder:"key_a_to_z",aggregatorName:"Count",aggregator:zn.a.pivotUtilities.aggregators.Count(),vals:[],rendererName:"Table",renderer:zn.a.pivotUtilities.renderers.Table,rendererOptions:void 0}}},computed:{columns:function(){return Object.keys(this.dataSources||{})},viewStandartChart:function(){return this.pivotOptions.rendererName in zn.a.pivotUtilities.plotly_renderers},viewCustomChart:function(){return"Custom chart"===this.pivotOptions.rendererName}},watch:{dataSources:function(){this.show()},"pivotOptions.rendererName":{immediate:!0,handler:function(){this.$emit("update:importToPngEnabled","TSV Export"!==this.pivotOptions.rendererName),this.$emit("update:importToSvgEnabled",this.viewStandartChart||this.viewCustomChart),Object(S["a"])("viz_pivot.render",void 0,{type:this.pivotOptions.rendererName})}},pivotOptions:function(){this.show()}},mounted:function(){this.show(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.$refs.pivotOutput)},beforeDestroy:function(){this.resizeObserver.unobserve(this.$refs.pivotOutput)},methods:{handleResize:function(){this.viewStandartChart&&window.dispatchEvent(new Event("resize"))},show:function(){var e=Object(b["a"])({},this.pivotOptions);this.viewStandartChart&&(e.rendererOptions={plotly:{autosize:!0,width:null,height:null},plotlyConfig:{displaylogo:!1,responsive:!0,modeBarButtonsToRemove:["toImage"]}}),zn()(this.$refs.pivotOutput).pivot(function(e){for(var t=this,i=this.dataSources?this.dataSources[this.columns[0]].length:0,n=function(i){var n={};t.columns.forEach((function(e){n[e]=t.dataSources[e][i-1]})),e(n)},a=1;a<=i;a++)n(a)}.bind(this),e),this.viewStandartChart&&window.dispatchEvent(new Event("resize"))},getOptionsForSave:function(){var e=Object(b["a"])({},this.pivotOptions);if(e.rendererOptions){var t=this.pivotOptions.rendererOptions.customChartComponent;e.rendererOptions={customChartOptions:t.getOptionsForSave()}}return e},saveAsPng:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.viewCustomChart){t.next=4;break}e.pivotOptions.rendererOptions.customChartComponent.saveAsPng(),t.next=16;break;case 4:if(!e.viewStandartChart){t.next=10;break}return t.next=7,vn.getImageDataUrl(e.$refs.pivotOutput,"png");case 7:t.t0=t.sent,t.next=13;break;case 10:return t.next=12,ta.getPivotCanvas(e.$refs.pivotOutput);case 12:t.t0=t.sent.toDataURL("image/png");case 13:i=t.t0,e.$emit("loadingImageCompleted"),k.downloadFromUrl(i,"pivot");case 16:case"end":return t.stop()}}),t)})))()},prepareCopy:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.viewCustomChart){t.next=4;break}return t.next=3,e.pivotOptions.rendererOptions.customChartComponent.prepareCopy();case 3:return t.abrupt("return",t.sent);case 4:if(!e.viewStandartChart){t.next=8;break}return t.next=7,vn.getImageDataUrl(e.$refs.pivotOutput,"png");case 7:return t.abrupt("return",t.sent);case 8:return t.next=10,ta.getPivotCanvas(e.$refs.pivotOutput);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t)})))()},saveAsSvg:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.viewCustomChart){t.next=4;break}e.pivotOptions.rendererOptions.customChartComponent.saveAsSvg(),t.next=9;break;case 4:if(!e.viewStandartChart){t.next=9;break}return t.next=7,vn.getImageDataUrl(e.$refs.pivotOutput,"svg");case 7:i=t.sent,k.downloadFromUrl(i,"pivot");case 9:case"end":return t.stop()}}),t)})))()},saveAsHtml:function(){if(this.viewCustomChart)this.pivotOptions.rendererOptions.customChartComponent.saveAsHtml();else if(this.viewStandartChart){var e=vn.getChartData(this.$refs.pivotOutput);k.exportToFile(vn.getHtml(e),"chart.html","text/html")}else k.exportToFile(ta.getPivotHtml(this.$refs.pivotOutput),"pivot.html","text/html")}}},la=ca,ua=(i("b9f1"),Object(u["a"])(la,bn,yn,!1,null,"6d14a30e",null)),da=ua.exports,Ma=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"}},[i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.41943 16V10H10.4194V16H8.41943Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.41943 16L2.41943 10H4.41943V16H2.41943Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4194 16V7H13.4194V16H11.4194Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4194 16V8H16.4194V16H14.4194Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.41943 12V16H5.41943V12H7.41943Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4332 1.80676L16.6265 6.00001L15.9194 6.70712L12.4055 3.19326L5.93169 9.1691L1.71436\n 5.55424L2.36515 4.79499L5.90707 7.83092L12.4332 1.80676Z",fill:"#A2B1C6"}})])},pa=[],ga={name:"ChartIcon"},ha=ga,Ia=Object(u["a"])(ha,Ma,pa,!1,null,null,null),ma=Ia.exports,Na=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"}},[i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7661 5.13901L18.3407 9.43008H16.5161V12.8467C16.5161 13.7957 16.2783 14.6451 15.6714\n 15.2521C15.0645 15.859 14.215 16.0967 13.2661 16.0967H9.84942V17.9214L5.55835\n 15.3467L9.84942 12.7721V14.5967H13.2661C13.9838 14.5967 14.3844 14.4178 14.6108\n 14.1914C14.8372 13.965 15.0161 13.5645 15.0161 12.8467V9.43008H13.1914L15.7661 5.13901Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M6.41943 0H18.4194V4H6.41943V0Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M0.419434 6H4.41943V18H0.419434V6Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M0.419434 0H4.41943V4H0.419434V0Z",fill:"#A2B1C6"}})])},va=[],fa={name:"PivotIcon"},ja=fa,Da=Object(u["a"])(ja,Na,va,!1,null,null,null),Ca=Da.exports,ba=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[i("path",{attrs:{d:"M5.1626 10.0745L7.56641 10.8831V12.2322L3.68164 10.6501V9.4812L7.56641\n 7.89917V9.2439L5.1626 10.0745ZM8.99023 13.3H7.93994L10.124 6.35229H11.1787L8.99023\n 13.3ZM14.1099 10.0613L11.7192 9.24829V7.90356L15.582 9.4856V10.6545L11.7192\n 12.2366V10.8918L14.1099 10.0613Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M2.17041 0.0637207H16.2185V1.56372H2.17041V9.30354H0.67041V1.56372C0.67041 0.73872\n 1.34541 0.0637207 2.17041 0.0637207Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M17.1704 0.0637207H15.3052V1.56372H17.1704V9.84163H18.6704V1.56372C18.6704 0.73872\n 17.9954 0.0637207 17.1704 0.0637207Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M2.17041 17.1098H15.8754V15.6098H2.17041V8.78486H0.67041V15.6098C0.67041 16.4348\n 1.34541 17.1098 2.17041 17.1098Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M17.1704 17.1098H15.3052V15.6098H17.1704V8.55939H18.6704V15.6098C18.6704 16.4348\n 17.9954 17.1098 17.1704 17.1098Z",fill:"#A2B1C6"}}),i("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.1197 4.13787H1.76172V3.03787H18.1197V4.13787Z",fill:"#A2B1C6"}})])},ya=[],wa={name:"HtmlIcon"},za=wa,Ta=Object(u["a"])(za,ba,ya,!1,null,null,null),Oa=Ta.exports,xa=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none"}},[i("path",{attrs:{d:"M4.28369 13.9966C4.28369 13.7711 4.20312 13.5953 4.04199 13.4693C3.88379 13.3433 3.604\n 13.213 3.20264 13.0782C2.80127 12.9434 2.47314 12.813 2.21826 12.6871C1.38916 12.2798\n 0.974609 11.7203 0.974609 11.0084C0.974609 10.6539 1.07715 10.3419 1.28223\n 10.0723C1.49023 9.79987 1.7832 9.58893 2.16113 9.43951C2.53906 9.28717 2.96387 9.211\n 3.43555 9.211C3.89551 9.211 4.30713 9.29303 4.67041 9.45709C5.03662 9.62115 5.3208\n 9.85553 5.52295 10.1602C5.7251 10.462 5.82617 10.8077 5.82617 11.1973H4.28809C4.28809\n 10.9366 4.20752 10.7344 4.04639 10.5909C3.88818 10.4473 3.67285 10.3755 3.40039\n 10.3755C3.125 10.3755 2.90674 10.4371 2.74561 10.5601C2.5874 10.6802 2.5083 10.834\n 2.5083 11.0215C2.5083 11.1856 2.59619 11.335 2.77197 11.4698C2.94775 11.6016 3.25684\n 11.7393 3.69922 11.8829C4.1416 12.0235 4.50488 12.1758 4.78906 12.3399C5.48047 12.7383\n 5.82617 13.2877 5.82617 13.9879C5.82617 14.5474 5.61523 14.9869 5.19336 15.3062C4.77148\n 15.6255 4.19287 15.7852 3.45752 15.7852C2.93896 15.7852 2.46875 15.6929 2.04688\n 15.5084C1.62793 15.3209 1.31152 15.066 1.09766 14.7437C0.886719 14.4185 0.78125 14.045\n 0.78125 13.6231H2.32812C2.32812 13.9659 2.41602 14.2193 2.5918 14.3834C2.77051 14.5445\n 3.05908 14.6251 3.45752 14.6251C3.7124 14.6251 3.91309 14.5709 4.05957 14.4625C4.20898\n 14.3511 4.28369 14.1959 4.28369 13.9966ZM9.1001 13.9571L10.3745 9.29889H12.0972L9.94385\n 15.6973H8.25635L6.12061 9.29889H7.83008L9.1001 13.9571ZM17.7441 14.9063C17.5068 15.17\n 17.1597 15.3824 16.7026 15.5435C16.2456 15.7047 15.7446 15.7852 15.1997 15.7852C14.3618\n 15.7852 13.6924 15.5289 13.1914 15.0162C12.6904 14.5035 12.4224 13.7901 12.3872\n 12.876L12.3828 12.3223C12.3828 11.6924 12.4941 11.1431 12.7168 10.6744C12.9395 10.2027\n 13.2573 9.84088 13.6704 9.58893C14.0864 9.33405 14.5669 9.2066 15.1118 9.2066C15.9087\n 9.2066 16.5269 9.38971 16.9663 9.75592C17.4087 10.1192 17.6665 10.6627 17.7397\n 11.3863H16.2544C16.2017 11.0289 16.0874 10.774 15.9116 10.6216C15.7358 10.4693 15.4868\n 10.3931 15.1646 10.3931C14.7778 10.3931 14.479 10.5572 14.2681 10.8853C14.0571 11.2134\n 13.9502 11.6822 13.9473 12.2916V12.6783C13.9473 13.317 14.0557 13.7974 14.2725\n 14.1197C14.4922 14.439 14.8364 14.5987 15.3052 14.5987C15.7065 14.5987 16.0054 14.5093\n 16.2017 14.3306V13.3375H15.1294V12.2784H17.7441V14.9063Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M2.86768 0.991333H4.73292V2.49133H2.86768V7.93074H1.36768V2.49133C1.36768 1.66633\n 2.04268 0.991333 2.86768 0.991333Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M15.7512 0.991333H13.886V2.49133H15.7512V7.93074H17.2512V2.49133C17.2512 1.66633 16.5762\n 0.991333 15.7512 0.991333Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M9.36466 -1.76931e-05L13.0541 3.83972L10.8272 3.79527L10.7679 6.76452L7.79865\n 6.70526L7.85791 3.736L5.52492 3.68944L9.36466 -1.76931e-05Z",fill:"#A2B1C6"}})])},Aa=[],La={name:"ExportToSvgIcon"},ka=La,Sa=Object(u["a"])(ka,xa,Aa,!1,null,null,null),Ea=Sa.exports,Qa=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"}},[i("path",{attrs:{d:"M9 5.51953C6.57686 5.51953 4.60547 7.49092 4.60547 9.91406C4.60547 12.3372 6.57686\n 14.3086 9 14.3086C11.4231 14.3086 13.3945 12.3372 13.3945 9.91406C13.3945 7.49092 11.4231\n 5.51953 9 5.51953ZM9 12.9023C7.35226 12.9023 6.01172 11.5618 6.01172 9.91406C6.01172\n 8.26632 7.35226 6.92578 9 6.92578C10.6477 6.92578 11.9883 8.26632 11.9883\n 9.91406C11.9883 11.5618 10.6477 12.9023 9 12.9023Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M15.8906 3.41016H13.304C13.2221 3.41016 13.1483 3.36547 13.1104 3.29319L12.3948\n 1.78945C12.3928 1.78534 12.3908 1.78126 12.3887 1.77718C12.1117 1.22312 11.5548 0.878906\n 10.9353 0.878906H7.11478C6.49529 0.878906 5.93835 1.22312 5.66135 1.77722C5.65928 1.7813\n 5.65731 1.78538 5.65534 1.78949L4.9397 3.2933C4.90173 3.36547 4.82797 3.41016 4.74609\n 3.41016H2.10938C0.946266 3.41016 0 4.35642 0 5.51953V15.0117C0 16.1748 0.946266 17.1211\n 2.10938 17.1211H15.8906C17.0537 17.1211 18 16.1748 18 15.0117V5.51953C18 4.35642 17.0537\n 3.41016 15.8906 3.41016ZM16.5938 15.0117C16.5938 15.3994 16.2783 15.7148 15.8906\n 15.7148H2.10938C1.72167 15.7148 1.40625 15.3994 1.40625 15.0117V5.51953C1.40625 5.13183\n 1.72167 4.81641 2.10938 4.81641H4.74609C5.36555 4.81641 5.92249 4.47223 6.19952\n 3.91816C6.2016 3.91409 6.20357 3.90997 6.20557 3.90586L6.92121 2.40205C6.95914 2.32984\n 7.0329 2.28516 7.11478 2.28516H10.9353C11.0172 2.28516 11.091 2.32984 11.1289\n 2.40202L11.8445 3.90582C11.8465 3.90994 11.8485 3.91405 11.8506 3.91813C12.1276 4.47219\n 12.6846 4.81637 13.304 4.81637H15.8906C16.2783 4.81637 16.5938 5.13179 16.5938\n 5.5195V15.0117Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M15.1875 6.22266H13.7812V7.62891H15.1875V6.22266Z",fill:"#A2B1C6"}})])},Ua=[],Ya={name:"PngIcon"},_a=Ya,Za=Object(u["a"])(_a,Qa,Ua,!1,null,null,null),Va=Za.exports,Pa=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"}},[i("path",{attrs:{d:"M14.1917 1.3851H12.4806V0.703125C12.4806 0.314758 12.1658 0 11.7775 0H6.246C5.85764 0\n 5.54288 0.314758 5.54288 0.703125V1.3851H3.83203C2.86276 1.3851 2.07422 2.17365 2.07422\n 3.14291V16.2422C2.07422 17.2115 2.86276 18 3.83203 18H14.1917C15.161 18 15.9495 17.2115\n 15.9495 16.2422V3.14291C15.9495 2.17365 15.1609 1.3851 14.1917 1.3851V1.3851ZM11.0744\n 1.40625V2.77034H6.94899C6.94899 2.30301 6.94899 1.91698 6.94899 1.40625H11.0744ZM14.5433\n 16.2422C14.5433 16.4361 14.3855 16.5938 14.1917 16.5938H3.83203C3.63812 16.5938 3.48047\n 16.4361 3.48047 16.2422V3.14291C3.48047 2.94914 3.63812 2.79135 3.83203\n 2.79135H5.54274V3.47346C5.54274 3.86183 5.85764 4.17659 6.24586 4.17659H11.7775C12.1657\n 4.17659 12.4806 3.86183 12.4806 3.47346V2.79135H14.1917C14.3855 2.79135 14.5433 2.94914\n 14.5433 3.14291V16.2422ZM12.2745 8.20967C12.5491 8.48433 12.5491 8.92955 12.2745\n 9.20407L8.5795 12.899C8.30498 13.1737 7.85976 13.1737 7.5851 12.899L5.74887\n 11.0628C5.47435 10.7883 5.47435 10.3431 5.74887 10.0684C6.02353 9.7939 6.46861 9.7939\n 6.74327 10.0684L8.08237 11.4075L11.2801 8.20981C11.5547 7.93515 11.9998 7.93515 12.2745\n 8.20967V8.20967Z",fill:"#A2B1C6"}})])},qa=[],Ha={name:"ClipboardIcon"},Ba=Ha,$a=Object(u["a"])(Ba,Pa,qa,!1,null,null,null),Ga=$a.exports,Ra=i("fc26"),Wa=i.n(Ra),Fa=i("9377"),Ja=i.n(Fa),Xa={copyCsv:function(e){return Object(N["a"])(Object(m["a"])().mark((function t(){return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,navigator.clipboard.writeText(e);case 2:Wa.a.notifier("CSV copied to clipboard successfully","long");case 3:case"end":return t.stop()}}),t)})))()},copyImage:function(e){var t=this;return Object(N["a"])(Object(m["a"])().mark((function i(){return Object(m["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!(e instanceof HTMLCanvasElement)){i.next=4;break}return i.abrupt("return",t._copyCanvas(e));case 4:return i.abrupt("return",t._copyFromDataUrl(e));case 5:case"end":return i.stop()}}),i)})))()},_copyBlob:function(e){return Object(N["a"])(Object(m["a"])().mark((function t(){return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,navigator.clipboard.write([new ClipboardItem(Object(y["a"])({},e.type,e))]);case 2:case"end":return t.stop()}}),t)})))()},_copyFromDataUrl:function(e){var t=this;return Object(N["a"])(Object(m["a"])().mark((function i(){var n;return Object(m["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=Ja()(e),i.next=3,t._copyBlob(n);case 3:Wa.a.notifier("Image copied to clipboard successfully","long");case 4:case"end":return i.stop()}}),i)})))()},_copyCanvas:function(e){var t=this;return Object(N["a"])(Object(m["a"])().mark((function i(){return Object(m["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:e.toBlob(function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(i){return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t._copyBlob(i);case 2:Wa.a.notifier("Image copied to clipboard successfully","long");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),"image/png",1);case 1:case"end":return i.stop()}}),i)})))()}},Ka=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal",{attrs:{name:e.name,classes:"dialog",height:"auto",clickToClose:!1}},[n("div",{staticClass:"dialog-header"},[e._v(" "+e._s(e.title)+" "),n("close-icon",{attrs:{disabled:e.loading},on:{click:function(t){return e.$emit("cancel")}}})],1),n("div",{staticClass:"dialog-body"},[e.loading?n("div",{staticClass:"loading-dialog-body"},[n("loading-indicator",{staticClass:"state-icon",attrs:{size:30}}),e._v(" "+e._s(e.loadingMsg)+" ")],1):n("div",{staticClass:"loading-dialog-body"},[n("img",{staticClass:"success-icon state-icon",attrs:{src:i("0bf4")}}),e._v(" "+e._s(e.successMsg)+" ")])]),n("div",{staticClass:"dialog-buttons-container"},[n("button",{staticClass:"secondary",attrs:{disabled:e.loading},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("button",{staticClass:"primary",attrs:{disabled:e.loading},on:{click:function(t){return e.$emit("action")}}},[e._v(" "+e._s(e.actionBtnName)+" ")])])])},es=[],ts={name:"loadingDialog",props:{loadingMsg:String,successMsg:String,actionBtnName:String,name:String,title:String,loading:Boolean},watch:{loading:function(){this.loading&&this.$modal.show(this.name)}},components:{LoadingIndicator:jt,CloseIcon:M},methods:{cancel:function(){this.$emit("cancel")}}},is=ts,ns=(i("19bd"),Object(u["a"])(is,Ka,es,!1,null,"48ab6576",null)),as=ns.exports,ss={name:"DataView",props:["dataSource","initOptions","initMode"],components:{Chart:Cn,Pivot:da,SideToolBar:Bi,IconButton:Ci,ChartIcon:ma,PivotIcon:Ca,ExportToSvgIcon:Ea,PngIcon:Va,HtmlIcon:Oa,ClipboardIcon:Ga,loadingDialog:as},data:function(){return{mode:this.initMode||"chart",importToPngEnabled:!0,importToSvgEnabled:!0,loadingImage:!1,copyingImage:!1,preparingCopy:!1,dataToCopy:null}},computed:{plotlyInPivot:function(){return"pivot"===this.mode&&this.$refs.viewComponent.viewCustomChart}},watch:{mode:function(){this.$emit("update"),this.importToPngEnabled=!0}},methods:{saveAsPng:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loadingImage=!0,t.next=3,wt.sleep(0);case 3:e.$refs.viewComponent.saveAsPng(),e.exportSignal("png");case 5:case"end":return t.stop()}}),t)})))()},getOptionsForSave:function(){return this.$refs.viewComponent.getOptionsForSave()},prepareCopy:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i,n;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!("ClipboardItem"in window)){t.next=13;break}return e.preparingCopy=!0,e.$modal.show("prepareCopy"),i=performance.now(),t.next=6,wt.sleep(0);case 6:return t.next=8,e.$refs.viewComponent.prepareCopy();case 8:e.dataToCopy=t.sent,n=performance.now(),n-i<950?(e.$modal.hide("prepareCopy"),e.copyToClipboard()):e.preparingCopy=!1,t.next=14;break;case 13:alert("Your browser doesn't support copying images into the clipboard. If you use Firefox you can enable it by setting dom.events.asyncClipboard.clipboardItem to true.");case 14:case"end":return t.stop()}}),t)})))()},copyToClipboard:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Xa.copyImage(e.dataToCopy),e.$modal.hide("prepareCopy"),e.exportSignal("clipboard");case 3:case"end":return t.stop()}}),t)})))()},cancelCopy:function(){this.dataToCopy=null,this.$modal.hide("prepareCopy")},saveAsSvg:function(){this.$refs.viewComponent.saveAsSvg(),this.exportSignal("svg")},saveAsHtml:function(){this.$refs.viewComponent.saveAsHtml(),this.exportSignal("html")},exportSignal:function(e){var t={type:e};("chart"===this.mode||this.plotlyInPivot)&&(t.pivot=this.plotlyInPivot),Object(S["a"])("chart"===this.mode||this.plotlyInPivot?"viz_plotly.export":"viz_pivot.export",void 0,t)}}},rs=ss,os=(i("a62e"),Object(u["a"])(rs,nn,an,!1,null,"efe05e80",null)),cs=os.exports,ls=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"runResultPanel",staticClass:"run-result-panel"},[i("div",{staticClass:"run-result-panel-content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:null===e.result&&!e.isGettingResults&&!e.error,expression:"result === null && !isGettingResults && !error"}],staticClass:"table-preview result-before"},[e._v(" Run your query and get results here ")]),e.isGettingResults?i("div",{staticClass:"table-preview result-in-progress"},[i("loading-indicator",{attrs:{size:30}}),e._v(" Fetching results... ")],1):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:void 0===e.result&&!e.isGettingResults&&!e.error,expression:"result === undefined && !isGettingResults && !error"}],staticClass:"table-preview result-empty"},[e._v(" No rows retrieved according to your query ")]),e.error?i("logs",{attrs:{messages:[e.error]}}):e._e(),e.result?i("sql-table",{staticClass:"straight",attrs:{"data-set":e.result,time:e.time,pageSize:e.pageSize}}):e._e()],1),i("side-tool-bar",{attrs:{panel:"table"},on:{switchTo:function(t){return e.$emit("switchTo",t)}}},[i("icon-button",{attrs:{disabled:!e.result,tooltip:"Export result set to CSV file","tooltip-position":"top-left"},on:{click:e.exportToCsv}},[i("export-to-csv-icon")],1),i("icon-button",{attrs:{disabled:!e.result,tooltip:"Copy result set to clipboard","tooltip-position":"top-left"},on:{click:e.prepareCopy}},[i("clipboard-icon")],1)],1),i("loading-dialog",{attrs:{loadingMsg:"Building CSV...",successMsg:"CSV is ready",actionBtnName:"Copy",name:"prepareCSVCopy",title:"Copy to clipboard",loading:e.preparingCopy},on:{action:e.copyToClipboard,cancel:e.cancelCopy}})],1)},us=[],ds=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none"}},[i("path",{attrs:{d:"M6.07959 13.5756C6.05908 14.0209 5.93896 14.415 5.71924 14.7578C5.49951 15.0976 5.19043\n 15.3613 4.79199 15.5488C4.39648 15.7363 3.94385 15.83 3.43408 15.83C2.59326 15.83\n 1.93115 15.5561 1.44775 15.0082C0.964355 14.4604 0.722656 13.687 0.722656\n 12.6879V12.3715C0.722656 11.7446 0.831055 11.1967 1.04785 10.728C1.26758 10.2563 1.58252\n 9.89301 1.99268 9.63812C2.40283 9.38031 2.87744 9.2514 3.4165 9.2514C4.19287 9.2514\n 4.81689 9.45648 5.28857 9.86664C5.76025 10.2739 6.02832 10.8364 6.09277\n 11.5541H4.55469C4.54297 11.1645 4.44482 10.8847 4.26025 10.7148C4.07568 10.5449 3.79443\n 10.4599 3.4165 10.4599C3.03271 10.4599 2.75146 10.6035 2.57275 10.8906C2.39404 11.1777\n 2.30029 11.6362 2.2915 12.2661V12.7187C2.2915 13.4013 2.37646 13.8891 2.54639\n 14.1821C2.71924 14.475 3.01514 14.6215 3.43408 14.6215C3.78857 14.6215 4.05957 14.538\n 4.24707 14.371C4.43457 14.204 4.53418 13.9389 4.5459 13.5756H6.07959ZM10.1094\n 14.0414C10.1094 13.8159 10.0288 13.6401 9.86768 13.5141C9.70947 13.3881 9.42969 13.2578\n 9.02832 13.123C8.62695 12.9882 8.29883 12.8578 8.04395 12.7319C7.21484 12.3246 6.80029\n 11.7651 6.80029 11.0532C6.80029 10.6987 6.90283 10.3867 7.10791 10.1171C7.31592 9.84467\n 7.60889 9.63373 7.98682 9.48431C8.36475 9.33197 8.78955 9.2558 9.26123 9.2558C9.72119\n 9.2558 10.1328 9.33783 10.4961 9.50189C10.8623 9.66595 11.1465 9.90033 11.3486\n 10.205C11.5508 10.5068 11.6519 10.8525 11.6519 11.2421H10.1138C10.1138 10.9814 10.0332\n 10.7792 9.87207 10.6357C9.71387 10.4921 9.49854 10.4203 9.22607 10.4203C8.95068 10.4203\n 8.73242 10.4819 8.57129 10.6049C8.41309 10.725 8.33398 10.8788 8.33398 11.0663C8.33398\n 11.2304 8.42188 11.3798 8.59766 11.5146C8.77344 11.6464 9.08252 11.7841 9.5249\n 11.9277C9.96729 12.0683 10.3306 12.2206 10.6147 12.3847C11.3062 12.7831 11.6519 13.3325\n 11.6519 14.0327C11.6519 14.5922 11.4409 15.0317 11.019 15.351C10.5972 15.6703 10.0186\n 15.83 9.2832 15.83C8.76465 15.83 8.29443 15.7377 7.87256 15.5532C7.45361 15.3657 7.13721\n 15.1108 6.92334 14.7885C6.7124 14.4633 6.60693 14.0898 6.60693 13.6679H8.15381C8.15381\n 14.0107 8.2417 14.2641 8.41748 14.4282C8.59619 14.5893 8.88477 14.6699 9.2832\n 14.6699C9.53809 14.6699 9.73877 14.6157 9.88525 14.5073C10.0347 14.3959 10.1094 14.2407\n 10.1094 14.0414ZM14.9258 14.0019L16.2002 9.34369H17.9229L15.7695 15.7421H14.082L11.9463\n 9.34369H13.6558L14.9258 14.0019Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M3.03345 0.991333H4.89869V2.49133H3.03345V7.93074H1.53345V2.49133C1.53345 1.66633\n 2.20845 0.991333 3.03345 0.991333Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M15.917 0.991333H14.0517V2.49133H15.917V7.93074H17.417V2.49133C17.417 1.66633 16.742\n 0.991333 15.917 0.991333Z",fill:"#A2B1C6"}}),i("path",{attrs:{d:"M9.53043 1.28245e-05L13.2199 3.83975L10.9929 3.7953L10.9337 6.76455L7.96442\n 6.70529L8.02368 3.73603L5.6907 3.68947L9.53043 1.28245e-05Z",fill:"#A2B1C6"}})])},Ms=[],ps={name:"ExportToCsvIcon"},gs=ps,hs=Object(u["a"])(gs,ds,Ms,!1,null,null,null),Is=hs.exports,ms={name:"RunResult",props:["result","isGettingResults","error","time"],data:function(){return{resizeObserver:null,pageSize:20,preparingCopy:!1,dataToCopy:null}},components:{SqlTable:pt,LoadingIndicator:jt,Logs:yt,SideToolBar:Bi,ExportToCsvIcon:Is,IconButton:Ci,ClipboardIcon:Ga,loadingDialog:as},mounted:function(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.$refs.runResultPanel),this.calculatePageSize()},beforeDestroy:function(){this.resizeObserver.unobserve(this.$refs.runResultPanel)},methods:{handleResize:function(){this.calculatePageSize()},calculatePageSize:function(){var e=this.$refs.runResultPanel,t=e.offsetHeight-27-5-35;this.pageSize=Math.max(Math.floor(t/35),20)},exportToCsv:function(){this.result&&this.result.values&&Object(S["a"])("resultset.export",this.result.values[this.result.columns[0]].length,{to:"csv"}),k.exportToFile(Te.serialize(this.result),"result_set.csv","text/csv")},prepareCopy:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i,n;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.result&&e.result.values&&Object(S["a"])("resultset.export",e.result.values[e.result.columns[0]].length,{to:"clipboard"}),!("ClipboardItem"in window)){t.next=12;break}return e.preparingCopy=!0,e.$modal.show("prepareCSVCopy"),i=performance.now(),t.next=7,wt.sleep(0);case 7:e.dataToCopy=Te.serialize(e.result),n=performance.now(),n-i<950?(e.$modal.hide("prepareCSVCopy"),e.copyToClipboard()):e.preparingCopy=!1,t.next=13;break;case 12:alert("Your browser doesn't support copying into the clipboard. If you use Firefox you can enable it by setting dom.events.asyncClipboard.clipboardItem to true.");case 13:case"end":return t.stop()}}),t)})))()},copyToClipboard:function(){Xa.copyCsv(this.dataToCopy),this.$modal.hide("prepareCSVCopy")},cancelCopy:function(){this.dataToCopy=null,this.$modal.hide("prepareCSVCopy")}}},Ns=ms,vs=(i("acb4"),Object(u["a"])(Ns,ls,us,!1,null,"7d2faa80",null)),fs=vs.exports,js=i("b0cc"),Ds={name:"Tab",props:["id","initName","initQuery","initViewOptions","tabIndex","isPredefined","initViewType"],components:{SqlEditor:tn,DataView:cs,RunResult:fs,Splitpanes:x,Teleport:js["a"]},data:function(){return{query:this.initQuery,result:null,isGettingResults:!1,error:null,time:0,layout:{sqlEditor:"above",table:"bottom",dataView:"hidden"}}},computed:{isActive:function(){return this.id===this.$store.state.currentTabId}},watch:{isActive:{immediate:!0,handler:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isActive){t.next=5;break}return e.$store.commit("setCurrentTab",e),t.next=4,e.$nextTick();case 4:e.$refs.sqlEditor.focus();case 5:case"end":return t.stop()}}),t)})))()}},query:function(){this.$store.commit("updateTab",{index:this.tabIndex,isSaved:!1})}},methods:{onSwitchView:function(e,t){var i=this.layout[e];this.layout[e]=this.layout[t],this.layout[t]=i,Object(S["a"])("inquiry.panel",void 0,{panel:t})},onDataViewUpdate:function(){this.$store.commit("updateTab",{index:this.tabIndex,isSaved:!1})},execute:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i,n;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isGettingResults=!0,e.result=null,e.error=null,i=e.$store.state,t.prev=4,n=new Date,t.next=8,i.db.execute(e.query+";");case 8:e.result=t.sent,e.time=wt.getPeriod(n,new Date),e.result&&e.result.values&&Object(S["a"])("resultset.create",e.result.values[e.result.columns[0]].length),Object(S["a"])("query.run",parseFloat(e.time),{status:"success"}),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](4),e.error={type:"error",message:t.t0},Object(S["a"])("query.run",0,{status:"error"});case 18:i.db.refreshSchema(),e.isGettingResults=!1;case 20:case"end":return t.stop()}}),t,null,[[4,14]])})))()}}},Cs=Ds,bs=(i("5264"),Object(u["a"])(Cs,Kt,ei,!1,null,"af320aa4",null)),ys=bs.exports,ws={components:{Tab:ys,CloseIcon:M},data:function(){return{closingTabIndex:null}},computed:{tabs:function(){return this.$store.state.tabs},selectedIndex:function(){return this.$store.state.currentTabId}},created:function(){window.addEventListener("beforeunload",this.leavingSqliteviz)},methods:{leavingSqliteviz:function(e){this.tabs.some((function(e){return!e.isSaved}))&&(e.preventDefault(),e.returnValue="")},selectTab:function(e){this.$store.commit("setCurrentTabId",e)},beforeCloseTab:function(e){this.closingTabIndex=e,this.tabs[e].isSaved?this.closeTab(e):this.$modal.show("close-warn")},closeTab:function(e){this.$modal.hide("close-warn"),this.closingTabIndex=null,this.$store.commit("deleteTab",e)},saveAndClose:function(e){var t=this;this.$root.$on("inquirySaved",(function(){t.closeTab(e),t.$root.$off("inquirySaved")})),this.selectTab(this.tabs[e].id),this.$modal.hide("close-warn"),this.$nextTick((function(){t.$root.$emit("saveInquiry")}))}}},zs=ws,Ts=(i("64b6"),Object(u["a"])(zs,Jt,Xt,!1,null,null,null)),Os=Ts.exports,xs={name:"Workspace",components:{Schema:Ft,Splitpanes:x,Tabs:Os},beforeCreate:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i,n,a;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.$store.state.db.schema,i&&0!==i.length){t.next=8;break}return n=["/*"," * Your database is empty. In order to start building charts"," * you should create a table and insert data into it."," */","CREATE TABLE house","("," name TEXT,"," points INTEGER",");","INSERT INTO house VALUES","('Gryffindor', 100),","('Hufflepuff', 90),","('Ravenclaw', 95),","('Slytherin', 80);"].join("\n"),t.next=5,e.$store.dispatch("addTab",{query:n});case 5:a=t.sent,e.$store.commit("setCurrentTabId",a),Object(S["a"])("inquiry.create",void 0,{auto:!0});case 8:case"end":return t.stop()}}),t)})))()}},As=xs,Ls=(i("430a"),Object(u["a"])(As,f,j,!1,null,"c758e82e",null)),ks=Ls.exports,Ss=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[0===e.allInquiries.length?n("div",{attrs:{id:"start-guide"}},[e._v(" You don't have saved inquiries so far. "),n("span",{staticClass:"link",on:{click:function(t){return e.$root.$emit("createNewInquiry")}}},[e._v("Create")]),e._v(" the one from scratch or "),n("span",{staticClass:"link",on:{click:e.importInquiries}},[e._v("import")]),e._v(" from a file. ")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.allInquiries.length>0,expression:"allInquiries.length > 0"}],ref:"my-inquiries-content",attrs:{id:"my-inquiries-content"}},[n("div",{attrs:{id:"my-inquiries-toolbar"}},[n("div",{attrs:{id:"toolbar-buttons"}},[n("button",{staticClass:"toolbar",attrs:{id:"toolbar-btns-import"},on:{click:e.importInquiries}},[e._v(" Import ")]),n("button",{directives:[{name:"show",rawName:"v-show",value:e.selectedInquiriesCount>0,expression:"selectedInquiriesCount > 0"}],staticClass:"toolbar",attrs:{id:"toolbar-btns-export"},on:{click:function(t){return e.exportSelectedInquiries()}}},[e._v(" Export ")]),n("button",{directives:[{name:"show",rawName:"v-show",value:e.selectedNotPredefinedCount>0,expression:"selectedNotPredefinedCount > 0"}],staticClass:"toolbar",attrs:{id:"toolbar-btns-delete"},on:{click:function(t){return e.showDeleteDialog(e.selectedInquiriesIds)}}},[e._v(" Delete ")])]),n("div",{attrs:{id:"toolbar-search"}},[n("text-field",{attrs:{placeholder:"Search inquiry by name",width:"300px"},model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}})],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.showedInquiries.length,expression:"showedInquiries.length === 0"}],attrs:{id:"inquiries-not-found"}},[e._v(" No inquiries found ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showedInquiries.length>0,expression:"showedInquiries.length > 0"}],staticClass:"rounded-bg"},[n("div",{staticClass:"header-container"},[n("div",[n("div",{ref:"name-th",staticClass:"fixed-header"},[n("check-box",{ref:"mainCheckBox",attrs:{theme:"light"},on:{click:e.toggleSelectAll}}),n("div",{staticClass:"name-th"},[e._v("Name")])],1),n("div",{staticClass:"fixed-header"},[e._v(" Created at ")])])]),n("div",{staticClass:"table-container",style:{"max-height":e.maxTableHeight+"px"}},[n("table",{ref:"table",staticClass:"sqliteviz-table"},[n("tbody",e._l(e.showedInquiries,(function(t,i){return n("tr",{key:t.id,on:{click:function(t){return e.openInquiry(i)}}},[n("td",{ref:"name-td",refInFor:!0},[n("div",{staticClass:"cell-data"},[n("check-box",{ref:"rowCheckBox",refInFor:!0,attrs:{init:e.selectAll||e.selectedInquiriesIds.has(t.id)},on:{click:function(i){return e.toggleRow(i,t.id)}}}),n("div",{staticClass:"name"},[e._v(e._s(t.name))]),t.isPredefined?n("div",{staticClass:"badge",on:{mouseenter:e.showTooltip,mouseleave:e.hideTooltip}},[e._v(" Predefined "),n("span",{ref:"tooltip",refInFor:!0,staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" Predefined inquiries come from the server. These inquiries can’t be deleted or renamed. ")])]):e._e()],1)]),n("td",[n("div",{staticClass:"second-column"},[n("div",{staticClass:"date-container"},[e._v(e._s(e._f("date")(t.createdAt)))]),n("div",{staticClass:"icons-container"},[t.isPredefined?e._e():n("rename-icon",{on:{click:function(i){return e.showRenameDialog(t.id)}}}),n("copy-icon",{on:{click:function(t){return e.duplicateInquiry(i)}}}),n("export-icon",{attrs:{tooltip:"Export inquiry to file","tooltip-position":"top-left"},on:{click:function(i){return e.exportToFile([t],t.name+".json")}}}),t.isPredefined?e._e():n("delete-icon",{on:{click:function(i){e.showDeleteDialog((new Set).add(t.id))}}})],1)])])])})),0)])])])]),n("modal",{attrs:{name:"rename",classes:"dialog",height:"auto"}},[n("div",{staticClass:"dialog-header"},[e._v(" Rename inquiry "),n("close-icon",{on:{click:function(t){return e.$modal.hide("rename")}}})],1),n("div",{staticClass:"dialog-body"},[n("text-field",{attrs:{label:"New inquiry name","error-msg":e.errorMsg,width:"100%"},model:{value:e.newName,callback:function(t){e.newName=t},expression:"newName"}})],1),n("div",{staticClass:"dialog-buttons-container"},[n("button",{staticClass:"secondary",on:{click:function(t){return e.$modal.hide("rename")}}},[e._v("Cancel")]),n("button",{staticClass:"primary",on:{click:e.renameInquiry}},[e._v("Rename")])])]),n("modal",{attrs:{name:"delete",classes:"dialog",height:"auto"}},[n("div",{staticClass:"dialog-header"},[e._v(" Delete "+e._s(e.deleteGroup?"inquiries":"inquiry")+" "),n("close-icon",{on:{click:function(t){return e.$modal.hide("delete")}}})],1),n("div",{staticClass:"dialog-body"},[e._v(" "+e._s(e.deleteDialogMsg)+" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedInquiriesCount>e.selectedNotPredefinedCount,expression:"selectedInquiriesCount > selectedNotPredefinedCount"}],attrs:{id:"note"}},[n("img",{attrs:{src:i("db39")}}),e._v(" Note: Predefined inquiries you've selected won't be deleted ")])]),n("div",{staticClass:"dialog-buttons-container"},[n("button",{staticClass:"secondary",on:{click:function(t){return e.$modal.hide("delete")}}},[e._v("Cancel")]),n("button",{staticClass:"primary",on:{click:e.deleteInquiry}},[e._v("Delete")])])])],1)},Es=[],Qs=i("2909"),Us=(i("6062"),i("c740"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)},mouseenter:e.showTooltip,mouseleave:e.hideTooltip}},[i("path",{attrs:{d:"M10.545 6.75L11.25 7.455L4.44 14.25H3.75V13.56L10.545 6.75ZM13.245 2.25C13.0575 2.25\n 12.8625 2.325 12.72 2.4675L11.3475 3.84L14.16 6.6525L15.5325 5.28C15.825 4.9875 15.825\n 4.5 15.5325 4.2225L13.7775 2.4675C13.6275 2.3175 13.44 2.25 13.245 2.25ZM10.545\n 4.6425L2.25 12.9375V15.75H5.0625L13.3575 7.455L10.545 4.6425Z",fill:"#A2B1C6"}})]),i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" Rename inquiry ")])])}),Ys=[],_s={name:"RenameIcon",mixins:[J],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},Zs=_s,Vs=(i("56ed"),Object(u["a"])(Zs,Us,Ys,!1,null,"3add66aa",null)),Ps=Vs.exports,qs=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)},mouseenter:e.showTooltip,mouseleave:e.hideTooltip}},[i("path",{attrs:{d:"M14.25 15.75H6V5.25H14.25V15.75ZM14.25 3.75H6C5.60218 3.75 5.22064 3.90804 4.93934\n 4.18934C4.65804 4.47064 4.5 4.85218 4.5 5.25V15.75C4.5 16.1478 4.65804 16.5294 4.93934\n 16.8107C5.22064 17.092 5.60218 17.25 6 17.25H14.25C14.6478 17.25 15.0294 17.092 15.3107\n 16.8107C15.592 16.5294 15.75 16.1478 15.75 15.75V5.25C15.75 4.85218 15.592 4.47064\n 15.3107 4.18934C15.0294 3.90804 14.6478 3.75 14.25 3.75ZM12 0.75H3C2.60218 0.75 2.22064\n 0.908035 1.93934 1.18934C1.65804 1.47064 1.5 1.85218 1.5 2.25V12.75H3V2.25H12V0.75Z",fill:"#A2B1C6"}})]),i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" Duplicate inquiry ")])])},Hs=[],Bs={name:"CopyIcon",mixins:[J],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},$s=Bs,Gs=(i("a9b1"),Object(u["a"])($s,qs,Hs,!1,null,"b9c23446",null)),Rs=Gs.exports,Ws=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("svg",{staticClass:"icon",attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)},mouseenter:function(t){return e.showTooltip(t,"top-left")},mouseleave:e.hideTooltip}},[i("path",{attrs:{d:"M6.75 2.25V3H3V4.5H3.75V14.25C3.75 14.6478 3.90804 15.0294 4.18934 15.3107C4.47064\n 15.592 4.85218 15.75 5.25 15.75H12.75C13.1478 15.75 13.5294 15.592 13.8107\n 15.3107C14.092 15.0294 14.25 14.6478 14.25 14.25V4.5H15V3H11.25V2.25H6.75ZM5.25\n 4.5H12.75V14.25H5.25V4.5ZM6.75 6V12.75H8.25V6H6.75ZM9.75 6V12.75H11.25V6H9.75Z",fill:"#A2B1C6"}})]),i("span",{ref:"tooltip",staticClass:"icon-tooltip",style:e.tooltipStyle},[e._v(" Delete inquiry ")])])},Fs=[],Js={name:"DeleteIcon",mixins:[J],methods:{onClick:function(){this.hideTooltip(),this.$emit("click")}}},Xs=Js,Ks=(i("70b3"),Object(u["a"])(Xs,Ws,Fs,!1,null,"7580ebaf",null)),er=Ks.exports,tr={_migrate:function(e,t){if(1===e)return t.forEach((function(e){e.viewType="chart",e.viewOptions=e.chart,delete e.chart})),t}},ir=tr._migrate,nr={version:2,getStoredInquiries:function(){var e=JSON.parse(localStorage.getItem("myInquiries"));if(!e){var t=localStorage.getItem("myQueries");return t?(e=ir(1,JSON.parse(t)),this.updateStorage(e),e):[]}return e&&e.inquiries||[]},duplicateInquiry:function(e){var t=JSON.parse(JSON.stringify(e));return t.name=t.name+" Copy",t.id=Object(ci["a"])(),t.createdAt=new Date,delete t.isPredefined,t},isTabNeedName:function(e){var t=!e.initName;return e.isPredefined||t},save:function(e,t){var i={id:e.isPredefined?Object(ci["a"])():e.id,query:e.query,viewType:e.$refs.dataView.mode,viewOptions:e.$refs.dataView.getOptionsForSave(),name:t||e.initName},n=this.getStoredInquiries();if(t)i.createdAt=new Date;else{var a=n.findIndex((function(t){return t.id===e.id}));i.createdAt=n[a].createdAt}return t?n.push(i):n[a]=i,this.updateStorage(n),i},updateStorage:function(e){localStorage.setItem("myInquiries",JSON.stringify({version:this.version,inquiries:e}))},serialiseInquiries:function(e){var t=JSON.parse(JSON.stringify(e));return t.forEach((function(e){return delete e.isPredefined})),JSON.stringify({version:this.version,inquiries:t},null,4)},deserialiseInquiries:function(e){var t=this,i=JSON.parse(e),n=[];return i.version?n=i.inquiries||[]:(n=Array.isArray(i)?i:[i],n=ir(1,n)),n.forEach((function(e){var i=t.getStoredInquiries().map((function(e){return e.id}));i.includes(e.id)&&(e.id=Object(ci["a"])())})),n},importInquiries:function(){var e=this;return k.importFile().then((function(t){var i=e.deserialiseInquiries(t);return Object(S["a"])("inquiry.import",i.length),i}))},export:function(e,t){var i=this.serialiseInquiries(e);k.exportToFile(i,t),Object(S["a"])("inquiry.export",e.length)},readPredefinedInquiries:function(){return Object(N["a"])(Object(m["a"])().mark((function e(){var t,i;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,k.readFile("./inquiries.json");case 2:return t=e.sent,e.next=5,t.json();case 5:if(i=e.sent,i.version){e.next=10;break}return e.abrupt("return",i.length>0?ir(1,i):[]);case 10:return e.abrupt("return",i.inquiries);case 11:case"end":return e.stop()}}),e)})))()}},ar={name:"Inquiries",components:{RenameIcon:Ps,CopyIcon:Rs,ExportIcon:Zt,DeleteIcon:er,CloseIcon:M,TextField:se,CheckBox:Ke},mixins:[J],data:function(){return{inquiries:[],filter:null,newName:null,processedInquiryId:null,errorMsg:null,selectedInquiriesIds:new Set,selectedInquiriesCount:0,selectedNotPredefinedCount:0,selectAll:!1,deleteGroup:!1,resizeObserver:null,maxTableHeight:0}},computed:{predefinedInquiries:function(){return this.$store.state.predefinedInquiries.map((function(e){return e.isPredefined=!0,e}))},predefinedInquiriesIds:function(){return new Set(this.predefinedInquiries.map((function(e){return e.id})))},showedInquiries:function(){var e=this,t=this.allInquiries;return this.filter&&(t=t.filter((function(t){return t.name.toUpperCase().indexOf(e.filter.toUpperCase())>=0}))),t},allInquiries:function(){return this.predefinedInquiries.concat(this.inquiries)},processedInquiryIndex:function(){var e=this;return this.inquiries.findIndex((function(t){return t.id===e.processedInquiryId}))},deleteDialogMsg:function(){if(!this.deleteGroup&&(null===this.processedInquiryIndex||this.processedInquiryIndex<0||this.processedInquiryIndex>this.inquiries.length))return"";var e=this.deleteGroup?"".concat(this.selectedNotPredefinedCount," ").concat(this.selectedNotPredefinedCount>1?"inquiries":"inquiry"):'"'.concat(this.inquiries[this.processedInquiryIndex].name,'"');return"Are you sure you want to delete ".concat(e,"?")}},watch:{showedInquiries:function(){var e=this;this.selectedInquiriesIds=new Set(this.showedInquiries.filter((function(t){return e.selectedInquiriesIds.has(t.id)})).map((function(e){return e.id}))),this.selectedInquiriesCount=this.selectedInquiriesIds.size,this.selectedNotPredefinedCount=Object(Qs["a"])(this.selectedInquiriesIds).filter((function(t){return!e.predefinedInquiriesIds.has(t)})).length,this.selectedInquiriesIds.size<this.showedInquiries.length&&(this.$refs.mainCheckBox.checked=!1,this.selectAll=!1)}},created:function(){var e=this;nr.readPredefinedInquiries().then((function(t){e.$store.commit("updatePredefinedInquiries",t)})).catch(console.error).finally((function(){e.inquiries=nr.getStoredInquiries()}))},mounted:function(){this.resizeObserver=new ResizeObserver(this.calcMaxTableHeight),this.resizeObserver.observe(this.$refs["my-inquiries-content"]),this.tableResizeObserver=new ResizeObserver(this.calcNameWidth),this.tableResizeObserver.observe(this.$refs.table),this.calcNameWidth(),this.calcMaxTableHeight()},beforeDestroy:function(){this.resizeObserver.unobserve(this.$refs["my-inquiries-content"]),this.tableResizeObserver.unobserve(this.$refs.table)},filters:{date:function(e){if(!e)return"";var t={year:"numeric",month:"long",day:"numeric"},i={hour12:!1,hour:"2-digit",minute:"2-digit"};return new Date(e).toLocaleDateString("en-GB",t)+" "+new Date(e).toLocaleTimeString("en-GB",i)}},methods:{calcNameWidth:function(){var e=this.$refs["name-td"]&&this.$refs["name-td"][0]?this.$refs["name-td"][0].getBoundingClientRect().width:0;this.$refs["name-th"].style="width: ".concat(e,"px")},calcMaxTableHeight:function(){var e=this.$refs["my-inquiries-content"].offsetHeight-200;this.maxTableHeight=e-e%40+1},openInquiry:function(e){var t=this,i=this.showedInquiries[e];this.$store.dispatch("addTab",i).then((function(e){t.$store.commit("setCurrentTabId",e),t.$router.push("/workspace")}))},showRenameDialog:function(e){this.errorMsg=null,this.processedInquiryId=e,this.newName=this.inquiries[this.processedInquiryIndex].name,this.$modal.show("rename")},renameInquiry:function(){if(this.newName){var e=this.inquiries[this.processedInquiryIndex];e.name=this.newName,this.$set(this.inquiries,this.processedInquiryIndex,e),nr.updateStorage(this.inquiries);var t=this.findTabIndex(e.id);t>=0&&this.$store.commit("updateTab",{index:t,name:this.newName,id:e.id}),this.$modal.hide("rename")}else this.errorMsg="Inquiry name can't be empty"},duplicateInquiry:function(e){var t=nr.duplicateInquiry(this.showedInquiries[e]);this.inquiries.push(t),nr.updateStorage(this.inquiries)},showDeleteDialog:function(e){this.deleteGroup=e.size>1,this.deleteGroup||(this.processedInquiryId=e.values().next().value),this.$modal.show("delete")},deleteInquiry:function(){var e=this;if(this.$modal.hide("delete"),this.deleteGroup){this.inquiries=this.inquiries.filter((function(t){return!e.selectedInquiriesIds.has(t.id)}));for(var t=this.$store.state.tabs,i=t.length-1;i>=0;i--)this.selectedInquiriesIds.has(t[i].id)&&this.$store.commit("deleteTab",i);this.selectedInquiriesIds.clear()}else{this.inquiries.splice(this.processedInquiryIndex,1);var n=this.findTabIndex(this.processedInquiryId);n>=0&&this.$store.commit("deleteTab",n),this.selectedInquiriesIds.has(this.processedInquiryId)&&this.selectedInquiriesIds.delete(this.processedInquiryId)}this.selectedInquiriesCount=this.selectedInquiriesIds.size,nr.updateStorage(this.inquiries)},findTabIndex:function(e){return this.$store.state.tabs.findIndex((function(t){return t.id===e}))},exportToFile:function(e,t){nr.export(e,t)},exportSelectedInquiries:function(){var e=this,t=this.allInquiries.filter((function(t){return e.selectedInquiriesIds.has(t.id)}));this.exportToFile(t,"My sqliteviz inquiries.json")},importInquiries:function(){var e=this;nr.importInquiries().then((function(t){e.inquiries=e.inquiries.concat(t),nr.updateStorage(e.inquiries)}))},toggleSelectAll:function(e){var t=this;this.selectAll=e,this.$refs.rowCheckBox.forEach((function(t){t.checked=e})),this.selectedInquiriesIds=e?new Set(this.showedInquiries.map((function(e){return e.id}))):new Set,this.selectedInquiriesCount=this.selectedInquiriesIds.size,this.selectedNotPredefinedCount=e?Object(Qs["a"])(this.selectedInquiriesIds).filter((function(e){return!t.predefinedInquiriesIds.has(e)})).length:0},toggleRow:function(e,t){var i=this.predefinedInquiriesIds.has(t);e?(this.selectedInquiriesIds.add(t),i||(this.selectedNotPredefinedCount+=1)):(this.selectedInquiriesIds.size===this.showedInquiries.length&&(this.$refs.mainCheckBox.checked=!1,this.selectAll=!1),this.selectedInquiriesIds.delete(t),i||(this.selectedNotPredefinedCount-=1)),this.selectedInquiriesCount=this.selectedInquiriesIds.size}}},sr=ar,rr=(i("90db"),Object(u["a"])(sr,Ss,Es,!1,null,"6958ac92",null)),or=rr.exports,cr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"dbloader-container"}},[i("db-uploader",{attrs:{type:"illustrated"}}),i("div",{attrs:{id:"note"}},[e._v(" Sqliteviz is fully client-side. Your database never leaves your computer. ")]),i("button",{staticClass:"secondary",attrs:{id:"skip"},on:{click:function(t){return e.$router.push("/workspace")}}},[e._v(" Create empty database ")])],1)},lr=[],ur={name:"Welcome",components:{DbUploader:St}},dr=ur,Mr=(i("f2b5"),Object(u["a"])(dr,cr,lr,!1,null,"0da5ae79",null)),pr=Mr.exports,gr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("main-menu"),i("keep-alive",{attrs:{include:"Workspace"}},[i("router-view",{attrs:{id:"main-view"}})],1)],1)},hr=[],Ir=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",[n("div",{attrs:{id:"nav-links"}},[n("a",{attrs:{href:"https://sqliteviz.com"}},[n("img",{attrs:{src:i("1505")}})]),n("router-link",{attrs:{to:"/workspace"}},[e._v("Workspace")]),n("router-link",{attrs:{to:"/inquiries"}},[e._v("Inquiries")]),n("a",{attrs:{href:"https://sqliteviz.com/docs",target:"_blank"}},[e._v("Help")])],1),n("div",{attrs:{id:"nav-buttons"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:e.currentInquiry&&"/workspace"===e.$route.path,expression:"currentInquiry && $route.path === '/workspace'"}],staticClass:"primary",attrs:{id:"save-btn",disabled:e.isSaved},on:{click:e.checkInquiryBeforeSave}},[e._v(" Save ")]),n("button",{staticClass:"primary",attrs:{id:"create-btn"},on:{click:e.createNewInquiry}},[e._v(" Create ")]),n("app-diagnostic-info")],1),n("modal",{attrs:{name:"save",classes:"dialog",height:"auto"}},[n("div",{staticClass:"dialog-header"},[e._v(" Save inquiry "),n("close-icon",{on:{click:e.cancelSave}})],1),n("div",{staticClass:"dialog-body"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isPredefined,expression:"isPredefined"}],attrs:{id:"save-note"}},[n("img",{attrs:{src:i("db39")}}),e._v(" Note: Predefined inquiries can't be edited. That's why your modifications will be saved as a new inquiry. Enter the name for it. ")]),n("text-field",{attrs:{label:"Inquiry name","error-msg":e.errorMsg,width:"100%"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),n("div",{staticClass:"dialog-buttons-container"},[n("button",{staticClass:"secondary",on:{click:e.cancelSave}},[e._v("Cancel")]),n("button",{staticClass:"primary",on:{click:e.saveInquiry}},[e._v("Save")])])])],1)},mr=[],Nr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app-info-container"}},[n("img",{attrs:{id:"app-info-icon",src:i("db39")},on:{click:function(t){return e.$modal.show("app-info")}}}),n("modal",{attrs:{name:"app-info",classes:"dialog",height:"auto",width:"400px"}},[n("div",{staticClass:"dialog-header"},[e._v(" App info "),n("close-icon",{on:{click:function(t){return e.$modal.hide("app-info")}}})],1),n("div",{staticClass:"dialog-body"},e._l(e.info,(function(t,i){return n("div",{key:i,staticClass:"info-item"},[e._v(" "+e._s(t.name)+" "),n("div",{staticClass:"divider"}),n("div",{staticClass:"options"},e._l(t.info,(function(t,i){return n("div",{key:i},[e._v(" "+e._s(t)+" ")])})),0)])})),0)])],1)},vr=[],fr={name:"AppDiagnosticInfo",components:{CloseIcon:M},data:function(){return{info:[{name:"sqliteviz version",info:[i("9224").version]}]}},created:function(){var e=this;return Object(N["a"])(Object(m["a"])().mark((function t(){var i,n;return Object(m["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.$store.state,t.next=3,i.db.execute("select sqlite_version()");case 3:return n=t.sent.values,e.info.push({name:"SQLite version",info:n["sqlite_version()"]}),t.next=7,i.db.execute("PRAGMA compile_options");case 7:n=t.sent.values,e.info.push({name:"SQLite compile options",info:n.compile_options});case 9:case"end":return t.stop()}}),t)})))()}},jr=fr,Dr=(i("5e40"),Object(u["a"])(jr,Nr,vr,!1,null,"1f065ff6",null)),Cr=Dr.exports,br={name:"MainMenu",components:{TextField:se,CloseIcon:M,AppDiagnosticInfo:Cr},data:function(){return{name:"",errorMsg:null}},computed:{currentInquiry:function(){return this.$store.state.currentTab},isSaved:function(){if(!this.currentInquiry)return!1;var e=this.currentInquiry.tabIndex,t=this.$store.state.tabs[e];return t&&t.isSaved},isPredefined:function(){return!!this.currentInquiry&&this.currentInquiry.isPredefined},runDisabled:function(){return this.currentInquiry&&(!this.$store.state.db||!this.currentInquiry.query)}},created:function(){this.$root.$on("createNewInquiry",this.createNewInquiry),this.$root.$on("saveInquiry",this.checkInquiryBeforeSave),document.addEventListener("keydown",this._keyListener)},beforeDestroy:function(){document.removeEventListener("keydown",this._keyListener)},methods:{createNewInquiry:function(){var e=this;this.$store.dispatch("addTab").then((function(t){e.$store.commit("setCurrentTabId",t),"/workspace"!==e.$route.path&&e.$router.push("/workspace")})),Object(S["a"])("inquiry.create",void 0,{auto:!1})},cancelSave:function(){this.$modal.hide("save"),this.$root.$off("inquirySaved")},checkInquiryBeforeSave:function(){this.errorMsg=null,this.name="",nr.isTabNeedName(this.currentInquiry)?this.$modal.show("save"):this.saveInquiry()},saveInquiry:function(){var e=this,t=nr.isTabNeedName(this.currentInquiry);if(!t||this.name){var i=this.currentInquiry.result,n=this.currentInquiry.view,a=nr.save(this.currentInquiry,this.name);this.$store.commit("updateTab",{index:this.currentInquiry.tabIndex,name:a.name,id:a.id,query:a.query,viewType:a.viewType,viewOptions:a.viewOptions,isSaved:!0}),this.$nextTick((function(){e.currentInquiry.result=i,e.currentInquiry.view=n})),this.$modal.hide("save"),this.$root.$emit("inquirySaved"),Object(S["a"])("inquiry.save")}else this.errorMsg="Inquiry name can't be empty"},_keyListener:function(e){if("/workspace"===this.$route.path){if(("r"===e.key||"Enter"===e.key)&&(e.ctrlKey||e.metaKey))return e.preventDefault(),void(this.runDisabled||this.currentInquiry.execute());if("s"===e.key&&(e.ctrlKey||e.metaKey))return e.preventDefault(),void(this.isSaved||this.checkInquiryBeforeSave())}"b"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),this.createNewInquiry())}}},yr=br,wr=(i("105f"),Object(u["a"])(yr,Ir,mr,!1,null,"2e51e7e0",null)),zr=wr.exports,Tr=(i("e506"),{name:"Main",components:{MainMenu:zr}}),Or=Tr,xr=(i("d2db"),Object(u["a"])(Or,gr,hr,!1,null,"25aa04f9",null)),Ar=xr.exports;n["default"].use(v["a"]);var Lr=[{path:"/",name:"Welcome",component:pr},{path:"/",name:"Main",component:Ar,children:[{path:"/workspace",name:"Workspace",component:ks},{path:"/inquiries",name:"Inquiries",component:or}]}],kr=new v["a"]({routes:Lr});kr.beforeEach(function(){var e=Object(N["a"])(Object(m["a"])().mark((function e(t,i,n){var a;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(ui.state.db){e.next=5;break}return a=fe.getNewDatabase(),e.next=4,a.loadDb();case 4:ui.commit("setDb",a);case 5:n();case 6:case"end":return e.stop()}}),e)})));return function(t,i,n){return e.apply(this,arguments)}}());var Sr=kr,Er=i("b8ae"),Qr=i("1881"),Ur=i.n(Qr);i("017d"),i("33da"),i("6d26"),i("bebf"),i("7432"),i("4a8d"),i("e607"),i("feae");["localhost","127.0.0.1"].includes(location.hostname)||i.e("chunk-2d22998c").then(i.bind(null,"ddb8")),n["default"].use(Er["VuePlugin"]),n["default"].use(Ur.a),n["default"].config.productionTip=!1,new n["default"]({router:Sr,store:ui,render:function(e){return e(I)}}).$mount("#app")},"56ed":function(e,t,i){"use strict";i("fc31")},"5ca7":function(e,t,i){},"5e1a":function(e,t,i){"use strict";i("03c4")},"5e40":function(e,t,i){"use strict";i("19be")},"64b6":function(e,t,i){"use strict";i("231b")},"64d2":function(e,t,i){},"665c":function(e,t,i){},"69e6":function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC41IiB5PSIwLjUiIHdpZHRoPSIxNyIgaGVpZ2h0PSIxNyIgcng9IjIuNSIgZmlsbD0iI0YzRjZGQSIgc3Ryb2tlPSIjQzhENEUzIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2QpIj4KPHBhdGggZD0iTTE1Ljc1IDUuMjQ5ODhMNi43NSAxNC4yNDk5TDIuNjI1IDEwLjEyNDlMMy42ODI1IDkuMDY3MzhMNi43NSAxMi4xMjc0TDE0LjY5MjUgNC4xOTIzOEwxNS43NSA1LjI0OTg4WiIgZmlsbD0iIzExOURGRiIvPgo8L2c+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2QiIHg9IjAuNjI1IiB5PSIzLjE5MjM4IiB3aWR0aD0iMTcuMTI1IiBoZWlnaHQ9IjE0LjA1NzUiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3Jv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gxMDAuNzY0QzEwMC43NjQgMTQxLjIxNiA5NC43NzAxIDEwMS4yNTIgOTIuMjcyMyA4Mi43NjlDOTAuOTY3OSA3My4xMTYgNTcuMDE5NyA0Ny4zNDQ1IDU0LjMwNjcgNDIuMzA1OVoiIGZpbGw9IiMxMTlERkYiLz4KPHBhdGggZD0iTTEwMy4yNjIgMTQ0LjQyNkgxMTMuMjUzQzExMy4yNTMgMTQ0LjQyNiAxMTkuODQ5IDE0Ni4wMjcgMTIzLjc0NCAxNDkuOTIxQzEyNS4yNDIgMTUxLjQyIDEyMy43NDQgMTUzLjQxOCAxMjMuNzQ0IDE1My40MThIMTAzLjI2MlYxNDQuNDI2WiIgZmlsbD0iIzUwNjc4NCIvPgo8L2c+Cjwvc3ZnPgo="},"6ac5":function(e,t,i){},"6d26":function(e,t,i){},"6fa4":function(e,t,i){},"70b3":function(e,t,i){"use strict";i("b252")},"70d6":function(e,t,i){},7314:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuOTk5ODQgMTYuNjY2N0M2LjMyNDg0IDE2LjY2NjcgMy4zMzMxNyAxMy42NzUgMy4zMzMxNyAxMEMzLjMzMzE3IDYuMzI1MDIgNi4zMjQ4NCAzLjMzMzM1IDkuOTk5ODQgMy4zMzMzNUMxMy42NzQ4IDMuMzMzMzUgMTYuNjY2NSA2LjMyNTAyIDE2LjY2NjUgMTBDMTYuNjY2NSAxMy42NzUgMTMuNjc0OCAxNi42NjY3IDkuOTk5ODQgMTYuNjY2N1pNOS45OTk4NCAxLjY2NjY5QzguOTA1NDkgMS42NjY2OSA3LjgyMTg2IDEuODgyMjQgNi44MTA4MSAyLjMwMTAyQzUuNzk5NzYgMi43MTk4MSA0Ljg4MTEgMy4zMzM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"7a18":function(e,t,i){},"7ccd":function(e,t,i){},8368:function(e,t,i){"use strict";i("ae4c")},8517:function(e,t,i){},"85ec":function(e,t,i){},"87d4":function(e,t,i){e.exports=i.p+"img/file.f5540c43.png"},"8d7b":function(e,t,i){},9080:function(e,t,i){},"90db":function(e,t,i){"use strict";i("6fa4")},9224:function(e){e.exports=JSON.parse('{"name":"sqliteviz","version":"0.19.0","license":"Apache-2.0","private":true,"scripts":{"serve":"vue-cli-service serve","build":"NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build","test":"vue-cli-service karma","lint":"vue-cli-service lint"},"dependencies":{"codemirror":"^5.57.0","core-js":"^3.6.5","dataurl-to-blob":"^0.0.1","html2canvas":"^1.1.4","jquery":"^3.6.0","nanoid":"^3.1.12","papaparse":"^5.3.1","pivottable":"^2.23.0","plotly.js":"^1.58.4","promise-worker":"^2.0.1","react":"^16.13.1","react-chart-editor":"^0.45.0","react-dom":"^16.13.1","sql.js":"file:./lib/sql-js","vue":"^2.6.11","vue-codemirror":"^4.0.6","vue-js-modal":"^2.0.0-rc.6","vue-multiselect":"^2.1.6","vue-router":"^3.2.0","vue2-teleport":"^1.0.1","vuejs-paginate":"^2.1.0","vuera":"^0.2.7","vuex":"^3.4.0"},"devDependencies":{"@vue/cli-plugin-babel":"^4.4.0","@vue/cli-plugin-eslint":"^4.4.0","@vue/cli-plugin-router":"^4.4.0","@vue/cli-plugin-vuex":"^4.4.0","@vue/cli-service":"^4.4.0","@vue/eslint-config-standard":"^5.1.2","@vue/test-utils":"^1.1.2","babel-eslint":"^10.1.0","chai":"^4.1.2","chai-as-promised":"^7.1.1","eslint":"^6.7.2","eslint-plugin-import":"^2.20.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","eslint-plugin-vue":"^6.2.2","karma":"^3.1.4","karma-firefox-launcher":"^2.1.0","karma-webpack":"^4.0.2","vue-cli-plugin-ui-karma":"^0.2.5","vue-template-compiler":"^2.6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IwIDAgMCAwIDAuMTY0NzA2IDAgMCAwIDAgMC4yNDcwNTkgMCAwIDAgMCAwLjM3MjU0OSAwIDAgMCAwLjcgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvdyIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvdyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K"},"993b":function(e,t,i){},"9bf4":function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE0IiBoZWlnaHQ9IjkwIiB2aWV3Qm94PSIwIDAgMTE0IDkwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNOTYuMzgyOCAxLjkzODk1QzkxLjQyNDQgMC4wOTI4MTQgODYuNjAyMiA1LjYyNTA1IDg1Ljg1OCAxMC42ODE2TDk3LjI4NTEgMTUuNTQ5QzEwMC4xOTQgMTAuNTg1NiAxMDEuMzQxIDMuNzg1MDggOTYuMzgyOCAxLjkzODk1WiIgZmlsbD0iI0YzQzZCRiIvPgo8cGF0aCBkPSJNODQuOTc3NSA5LjEyNDEzQzc1LjA2NTMgMzUuMjAzNSAzMC43MTc5IDQ2LjczNTkgMjEuNDEwNiAzNy43MjY1TDE0LjUzNTkgNzkuNDg1N0M2Ny43NjA3IDg2LjQ5MTIgOTEuOTI2NCA1NS40MTExIDk5LjA5NzMgMTQuNzEzOEw4NC45Nzc1IDkuMTI0MTNaIiBmaWxsPSIjQTJCMUM2Ii8+Cjwvc3ZnPgo="},"9ceb":function(e,t,i){"use strict";i("b325")},a1f0:function(e,t,i){"use strict";i("5ca7")},a303:function(e,t,i){},a62e:function(e,t,i){"use strict";i("993b")},a6ab:function(e,t,i){"use strict";i("3c43")},a96d:function(e,t,i){"use strict";i("3a01")},a9b1:function(e,t,i){"use strict";i("8d7b")},acb4:function(e,t,i){"use strict";i("5369")},ae4c:function(e,t,i){},b252:function(e,t,i){},b288:function(e,t,i){},b325:function(e,t,i){},b51c:function(e,t,i){},b9f1:function(e,t,i){"use strict";i("7ccd")},bebf:function(e,t,i){},d2db:function(e,t,i){"use strict";i("9080")},d353:function(e,t,i){"use strict";i("8517")},d395:function(e,t,i){"use strict";i("772cc")},d9ad:function(e,t,i){"use strict";i("a303")},daef:function(e,t,i){"use strict";i("547f")},db39:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDlIMTNWN0gxMVY5Wk0xMiAyMEM3LjU5IDIwIDQgMTYuNDEgNCAxMkM0IDcuNTkgNy41OSA0IDEyIDRDMTYuNDEgNCAyMCA3LjU5IDIwIDEyQzIwIDE2LjQxIDE2LjQxIDIwIDEyIDIwWk0xMiAyQzEwLjY4NjggMiA5LjM4NjQyIDIuMjU4NjYgOC4xNzMxNyAyLjc2MTJDNi45NTk5MSAzLjI2Mzc1IDUuODU3NTIgNC4wMDAzNSA0LjkyODkzIDQuOTI4OTNDMy4wNTM1NyA2LjgwNDMgMiA5LjM0Nzg0IDIgMTJDMiAxNC42NTIyIDMuMDUzNTcgMTcuMTk1NyA0LjkyODkzIDE5LjA3MTFDNS44NTc1MiAxOS45OTk3IDYuOTU5OTEgMjAuNzM2MiA4LjE3MzE3IDIxLjIzODhDOS4zODY0MiAyMS43NDEzIDEwLjY4NjggMjIgMTIgMjJDMTQuNjUyMiAyMiAxNy4xOTU3IDIwLjk0NjQgMTkuMDcxMSAxOS4wNzExQzIwLjk0NjQgMTcuMTk1NyAyMiAxNC42NTIyIDIyIDEyQzIyIDEwLjY4NjggMjEuNzQxMyA5LjM4NjQyIDIxLjIzODggOC4xNzMxN0MyMC43MzYyIDYuOTU5OTEgMTkuOTk5NyA1Ljg1NzUyIDE5LjA3MTEgNC45Mjg5M0MxOC4xNDI1IDQuMDAwMzUgMTcuMDQwMSAzLjI2Mzc1IDE1LjgyNjggMi43NjEyQzE0LjYxMzYgMi4yNTg2NiAxMy4zMTMyIDIgMTIgMlYyWk0xMSAxN0gxM1YxMUgxMVYxN1oiIGZpbGw9IiNBMkIxQzYiLz4KPC9zdmc+Cg=="},dd9c:function(e,t,i){"use strict";i("345a")},df25:function(e,t,i){},dfd4:function(e,t,i){"use strict";i("7974")},e252:function(e,t,i){"use strict";i("6ac5")},e506:function(e,t,i){},eaae:function(e,t,i){"use strict";i("4ca1")},ec62:function(e,t,i){},f2b5:function(e,t,i){"use strict";i("0cce")},f4e5:function(e,t,i){"use strict";i("b51c")},fc31:function(e,t,i){},feae:function(e,t,i){}});
|
||
//# sourceMappingURL=app.925bc521.js.map
|