(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["demo"],{"017e":function(t,e,o){"use strict";o("16e6")},"02f0":function(t,e,o){},"05b7":function(t,e,o){"use strict";var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.hide?o("div",{staticClass:"text-right w-100 pr-2"},[t._v(" "+t._s(t.placeholder)+" ")]):o("div",{staticClass:"product-details"},[o("v-img",{staticClass:"rounded flex-grow-0 product-details__image elevation-1",attrs:{width:30,height:30,"aspect-ratio":"1/1",cover:"",src:t.imageUrl}}),o("div",{staticClass:"product-details__title text-truncate",attrs:{title:t.title}},[t._v(" "+t._s(t.title)+" ")]),o("div",{staticClass:"product-details__subtitle text-truncate text-uppercase font-weight-light",attrs:{title:t.subTitle}},[t._v(" "+t._s(t.subTitle)+" ")])],1)},i=[],n=o("adda"),a={data:function(){return{src:null,imageUrl:null,title:null,subTitle:null,hide:!1,placeholder:null}},beforeMount:function(){var t=this.params.rendererData,e=t.imageUrl,o=t.title,r=t.subTitle,i=t.placeholder;e||o||(this.hide=!0,this.placeholder=i||""),this.imageUrl=e,this.title=o,this.subTitle=r},components:{VImg:n["a"]}},s=a,l=(o("9757"),o("2877")),c=o("6544"),u=o.n(c),d=Object(l["a"])(s,r,i,!1,null,"6b8b33fe",null);e["a"]=d.exports;u()(d,{VImg:n["a"]})},"0798":function(t,e,o){"use strict";o("caad");var r=o("5530"),i=o("ade3"),n=(o("0c18"),o("10d2")),a=o("afdd"),s=o("9d26"),l=o("f2e7"),c=o("7560"),u=o("f40d"),d=o("58df"),p=o("d9bd");e["a"]=Object(d["a"])(n["a"],l["a"],u["a"]).extend({name:"v-alert",props:{border:{type:String,validator:function(t){return["top","right","bottom","left"].includes(t)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator:function(t){return"string"===typeof t||!1===t}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator:function(t){return["info","error","success","warning"].includes(t)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder:function(){if(!this.border)return null;var t={staticClass:"v-alert__border",class:Object(i["a"])({},"v-alert__border--".concat(this.border),!0)};return this.coloredBorder&&(t=this.setBackgroundColor(this.computedColor,t),t.class["v-alert__border--has-color"]=!0),this.$createElement("div",t)},__cachedDismissible:function(){var t=this;if(!this.dismissible)return null;var e=this.iconColor;return this.$createElement(a["a"],{staticClass:"v-alert__dismissible",props:{color:e,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(){return t.isActive=!1}}},[this.$createElement(s["a"],{props:{color:e}},this.closeIcon)])},__cachedIcon:function(){return this.computedIcon?this.$createElement(s["a"],{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes:function(){var t=Object(r["a"])(Object(r["a"])({},n["a"].options.computed.classes.call(this)),{},{"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text});return this.border&&(t["v-alert--border-".concat(this.border)]=!0),t},computedColor:function(){return this.color||this.type},computedIcon:function(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$".concat(this.type))},hasColoredIcon:function(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText:function(){return this.text||this.outlined},iconColor:function(){return this.hasColoredIcon?this.computedColor:void 0},isDark:function(){return!(!this.type||this.coloredBorder||this.outlined)||c["a"].options.computed.isDark.call(this)}},created:function(){this.$attrs.hasOwnProperty("outline")&&Object(p["a"])("outline","outlined",this)},methods:{genWrapper:function(){var t=[this.$slots.prepend||this.__cachedIcon,this.genContent(),this.__cachedBorder,this.$slots.append,this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,t)},genContent:function(){return this.$createElement("div",{staticClass:"v-alert__content"},this.$slots.default)},genAlert:function(){var t={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){var e=this.hasText?this.setTextColor:this.setBackgroundColor;t=e(this.computedColor,t)}return this.$createElement("div",t,[this.genWrapper()])},toggle:function(){this.isActive=!this.isActive}},render:function(t){var e=this.genAlert();return this.transition?t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}})},"082c":function(t,e,o){},"08b0":function(t,e,o){"use strict";o("7a47")},"0ad8":function(t,e,o){},"0c18":function(t,e,o){},"0c24":function(t,e,o){},"0c81":function(t){t.exports=JSON.parse('{"name":"@vue-stripe/vue-stripe","version":"4.2.8","description":"Stripe Checkout & Elements for Vue.js","author":"jofftiquez@gmail.com","scripts":{"build":"rollup -c","lint":"vue-cli-service lint --fix","prebuild":"rimraf dist","test":"jest"},"main":"dist/index.js","module":"dist","dependencies":{"@stripe/stripe-js":"^1.13.2","vue-coerce-props":"^1.0.0"},"devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/plugin-proposal-export-default-from":"^7.7.4","@babel/plugin-proposal-optional-chaining":"^7.10.4","@babel/plugin-transform-runtime":"^7.7.5","@babel/preset-env":"^7.7.5","@babel/preset-es2015":"^7.0.0-beta.53","@babel/runtime":"^7.7.5","@rollup/plugin-node-resolve":"^6.0.0","@vue/cli-plugin-eslint":"~4.5.0","@vue/cli-service":"^4.5.10","@vue/eslint-config-standard":"^5.1.2","babel-eslint":"^10.1.0","babel-minify":"^0.5.1","cross-env":"^6.0.3","eslint":"^6.8.0","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","jest":"^24.9.0","lint-staged":"^9.5.0","rimraf":"^3.0.0","rollup":"^1.27.9","rollup-plugin-babel":"^4.3.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-postcss":"^2.0.3","rollup-plugin-terser":"^5.1.3","rollup-plugin-uglify":"^6.0.3","rollup-plugin-vue":"^5.1.4","vue-template-compiler":"^2.6.11"},"bugs":{"url":"https://github.com/vue-stripe/vue-stripe/issues"},"gitHooks":{"pre-commit":"lint-staged"},"homepage":"https://github.com/vue-stripe/vue-stripe#readme","keywords":["vue","vuejs","stripe","checkout","payment"],"license":"MIT","lint-staged":{"*.{js,jsx,vue}":["vue-cli-service lint","git add"]},"repository":{"type":"git","url":"git@github.com:vue-stripe/vue-stripe.git"},"typings":"typings/index.d.ts"}')},"0ccb":function(t,e,o){var r=o("50c4"),i=o("1148"),n=o("1d80"),a=Math.ceil,s=function(t){return function(e,o,s){var l,c,u=String(n(e)),d=u.length,p=void 0===s?" ":String(s),h=r(o);return h<=d||""==p?u:(l=h-d,c=i.call(p,a(l/p.length)),c.length>l&&(c=c.slice(0,l)),t?u+c:c+u)}};t.exports={start:s(!1),end:s(!0)}},"0cfa":function(t,e,o){"use strict";o("bd4b")},"0de5":function(t,e,o){"use strict";o("d81d"),o("fb6a"),o("a9e3"),o("96a9");var r=o("24b2"),i=o("53ca");function n(t,e,o){var r=e.modifiers||{},n=r.self,a=void 0!==n&&n,s=e.value,l="object"===Object(i["a"])(s)&&s.options||{passive:!0},c="function"===typeof s||"handleEvent"in s?s:s.handler,u=a?t:e.arg?document.querySelector(e.arg):window;u&&(u.addEventListener("scroll",c,l),t._onScroll=Object(t._onScroll),t._onScroll[o.context._uid]={handler:c,options:l,target:a?void 0:u})}function a(t,e,o){var r;if(null!=(r=t._onScroll)&&r[o.context._uid]){var i=t._onScroll[o.context._uid],n=i.handler,a=i.options,s=i.target,l=void 0===s?t:s;l.removeEventListener("scroll",n,a),delete t._onScroll[o.context._uid]}}var s={inserted:n,unbind:a},l=s,c=o("80d2");e["a"]=r["a"].extend({name:"v-virtual-scroll",directives:{Scroll:l},props:{bench:{type:[Number,String],default:0},itemHeight:{type:[Number,String],required:!0},items:{type:Array,default:function(){return[]}}},data:function(){return{first:0,last:0,scrollTop:0}},computed:{__bench:function(){return parseInt(this.bench,10)},__itemHeight:function(){return parseInt(this.itemHeight,10)},firstToRender:function(){return Math.max(0,this.first-this.__bench)},lastToRender:function(){return Math.min(this.items.length,this.last+this.__bench)}},watch:{height:"onScroll",itemHeight:"onScroll"},mounted:function(){this.last=this.getLast(0)},methods:{getChildren:function(){return this.items.slice(this.firstToRender,this.lastToRender).map(this.genChild)},genChild:function(t,e){e+=this.firstToRender;var o=Object(c["g"])(e*this.__itemHeight);return this.$createElement("div",{staticClass:"v-virtual-scroll__item",style:{top:o},key:e},Object(c["p"])(this,"default",{index:e,item:t}))},getFirst:function(){return Math.floor(this.scrollTop/this.__itemHeight)},getLast:function(t){var e=parseInt(this.height||0,10)||this.$el.clientHeight;return t+Math.ceil(e/this.__itemHeight)},onScroll:function(){this.scrollTop=this.$el.scrollTop,this.first=this.getFirst(),this.last=this.getLast(this.first)}},render:function(t){var e=t("div",{staticClass:"v-virtual-scroll__container",style:{height:Object(c["g"])(this.items.length*this.__itemHeight)}},this.getChildren());return t("div",{staticClass:"v-virtual-scroll",style:this.measurableStyles,directives:[{name:"scroll",modifiers:{self:!0},value:this.onScroll}],on:this.$listeners},[e])}})},"0e6d":function(t,e,o){},"0ed6":function(t,e,o){"use strict";var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("span",{staticClass:"content",style:t.computedStyles},[t._v(" "+t._s(t.content.text)+" ")])},i=[],n=(o("caad"),o("2532"),{name:"Rajdhani",props:["content","config"],data:function(){return{allowed_weights:["Light","Regular","Medium","SemiBold","Bold"],"font-family":"Rajdhani-Regular","font-size":"1em","line-height":"1em","text-transform":"none","letter-spacing":"0em","text-align":"unset",color:"var(--main-dark-color)"}},created:function(){this.setConfigData()},methods:{setConfigData:function(){this.config&&(this.config.weight&&this.allowed_weights.includes(this.config.weight)&&(this["font-family"]="Rajdhani-"+this.config.weight),this["font-size"]=this.config["font-size"]?this.config["font-size"]:this["font-size"],this["line-height"]=this.config["line-height"]?this.config["line-height"]:this["line-height"],this["text-transform"]=this.config["text-transform"]?this.config["text-transform"]:this["text-transform"],this["letter-spacing"]=this.config["letter-spacing"]?this.config["letter-spacing"]:this["letter-spacing"],this["text-align"]=this.config["text-align"]?this.config["text-align"]:this["text-align"],this.color=this.config.color?this.config.color:this.color)}},computed:{computedStyles:function(){return[{"font-family":this["font-family"],"font-size":this["font-size"],"line-height":this["line-height"],"text-transform":this["text-transform"],"letter-spacing":this["letter-spacing"],"text-align":this["text-align"],color:this.color}]}}}),a=n,s=(o("1f50"),o("2877")),l=Object(s["a"])(a,r,i,!1,null,"4d5c680e",null);e["a"]=l.exports},"0fb7":function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ProfitCalculator")},i=[],n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"pt-4 h-100"},[o("router-link",{staticClass:"ml-4 mt-3",attrs:{to:"/dashboard"}},[o("v-btn",{attrs:{color:"white",type:"button"}},[o("v-icon",{attrs:{left:"",color:"primary"}},[t._v(" mdi-arrow-left ")]),t._v(" Back to dashboard ")],1)],1),o("div",{staticClass:"flex-row align-center my-3 mx-4"},[o("h2",{staticClass:"page-title text-uppercase"},[t._v("Profit Calculator")]),o("v-tooltip",{attrs:{bottom:"",right:"","max-width":"400"},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,i=e.attrs;return[o("v-icon",t._g(t._b({staticClass:"ml-3",attrs:{color:"primary"}},"v-icon",i,!1),r),[t._v("mdi-information-outline")])]}}])},[o("div",[o("p",[t._v(" This calculator is designed to help you understand your profit per unit sold, including all Amazon costs associated with each sale. ")]),o("p",[t._v(" You can edit the columns that have "),o("v-icon",{staticClass:"mx-1",attrs:{small:"",color:"primary"}},[t._v("mdi-pencil")]),t._v(" icon to estimate how certain changes in metrics might affect your profit per unit. For example: pricing changes, marketing strategy planning using TACoS, etc. ")],1),o("p",[t._v(" This calculator uses Amazon’s real-time data for selling price, FBA fees, and referral fees. ")]),o("p",[t._v(" Refunds, TACoS and storage costs are calculated based on each product’s last 30 days of data. ")])])])],1),o("div",{staticClass:"d-flex align-center mx-4 mb-6 mt-3"},[o("v-text-field",{staticClass:"app-search-input",attrs:{solo:"",outlined:"",dense:"",clearable:"",label:"Search by product name / sku / asin","hide-details":"auto","prepend-inner-icon":"mdi-magnify"},on:{input:function(e){return t.phraseChange()}},model:{value:t.phrase,callback:function(e){t.phrase=e},expression:"phrase"}}),o("v-btn",{staticClass:"elevation-1 ml-5",attrs:{color:"white",depressed:""},on:{click:function(e){return t.exportToCsv()}}},[t._v(" Export to CSV "),o("v-icon",{staticClass:"ml-3",attrs:{color:"primary",size:"20"}},[t._v(" mdi-cloud-download ")])],1),o("p",{staticClass:"text--secondary mb-0 ml-5"},[t._v(" Storage, refunds, and TACOS are based on the last 30 days’ data. ")])],1),t.loading?o("div",{staticClass:"app-grid d-flex align-center justify-center"},[o("v-progress-circular",{staticClass:"ma-auto",attrs:{indeterminate:"",color:"primary"}})],1):t._e(),t.loading?t._e():o("ag-grid-vue",{staticClass:"app-grid ag-theme-mrp ag-theme-material",attrs:{columnDefs:t.columnDefs,rowData:t.rowData,defaultColDef:t.defaultColDef,stopEditingWhenCellsLoseFocus:!0,suppressClickEdit:!1,readOnlyEdit:!0,cacheQuickFilter:!0,getRowId:t.getRowId,rowHeight:t.rowHeight,suppressDragLeaveHidesColumns:!0,scrollbarWidth:0},on:{"grid-ready":t.onGridReady,"cell-edit-request":t.onCellEditRequest,rowDataUpdated:t.onRowDataUpdated,gridSizeChanged:t.onGridSizeChanged}})],1)},a=[],s=(o("4160"),o("4fad"),o("159b"),o("3835")),l=o("2909"),c=(o("96cf"),o("1da1")),u=o("401b"),d=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"d-flex align-center"},[t._v(" "+t._s(this.value)+" "),o("v-tooltip",{attrs:{right:""},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,i=e.attrs;return[o("v-btn",t._g(t._b({staticClass:"ml-2",attrs:{"x-small":"",icon:"",color:"grey lighten-2"},on:{click:t.edit}},"v-btn",i,!1),r),[o("v-icon",[t._v("mdi-pencil")])],1)]}}])},[o("span",[t._v("Edit")])])],1)},p=[],h={data:function(){return{value:""}},mounted:function(){var t;this.value=(null===(t=this.params)||void 0===t?void 0:t.valueFormatted)||this.params.value},methods:{edit:function(){this.params.api.startEditingCell({rowIndex:this.params.rowIndex,colKey:this.params.column.colId})}}},f=h,g=o("2877"),v=o("6544"),m=o.n(v),y=o("8336"),C=o("132d"),w=o("3a2f"),b=Object(g["a"])(f,d,p,!1,null,"31088071",null),S=b.exports;m()(b,{VBtn:y["a"],VIcon:C["a"],VTooltip:w["a"]});var E=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"d-inline-block"},[o("v-img",{staticClass:"rounded flex-grow-0",attrs:{width:30,height:30,"aspect-ratio":"1/1",cover:"",src:t.src}})],1)},_=[],O=o("adda"),R={data:function(){return{src:null}},beforeMount:function(){this.src=this.params.value},components:{VImg:O["a"]}},T=R,P=Object(g["a"])(T,E,_,!1,null,null,null);P.exports;m()(P,{VImg:O["a"]});var x=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"position-relative"},[o("v-text-field",{ref:"input",staticClass:"hide-controls",attrs:{autofocus:"",outlined:"",dense:"","hide-details":"auto",type:"number","append-icon":t.value!==t.initialValue?"mdi-refresh":null},on:{keydown:function(e){return t.onKeyDown(e)},"click:append":t.clearSearch,focus:function(t){return t.target.select()}},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1)},D=[],A=(o("c975"),o("5259")),M="Backspace",I="F2",V="Enter",F="Tab",L="Period",N="Comma",k={data:function(){return{value:null,initialValue:null,cancelBeforeStart:!0,highlightAllOnFocus:!0}},methods:{clearSearch:function(){this.value=Object(A["b"])(this.initialValue),this.$refs.input.blur()},getValue:function(){return this.value},isCancelBeforeStart:function(){return this.cancelBeforeStart},setInitialState:function(t){var e,o=!0;t.eventKey===M?e="":t.charPress?(e=t.charPress,o=!1):(e=t.value,t.eventKey===I&&(o=!1)),this.value=Object(A["b"])(e),this.highlightAllOnFocus=o},isCancelAfterEnd:function(){},onKeyDown:function(t){this.isLeftOrRight(t)||this.isBackspace(t)?t.stopPropagation():this.finishedEditingPressed(t)||this.isKeyPressedNumeric(t)||this.isPeriod(t)||this.isComma(t)||t.preventDefault&&t.preventDefault()},isCharNumeric:function(t){return/\d/.test(t)},isKeyPressedNumeric:function(t){var e=t.key;return this.isCharNumeric(e)},finishedEditingPressed:function(t){var e=t.key;return e===V||e===F},isBackspace:function(t){return t.key===M},isLeftOrRight:function(t){return["ArrowLeft","ArrowRight"].indexOf(t.key)>-1},isPeriod:function(t){return t.code===L},isComma:function(t){return t.code===N}},created:function(){this.setInitialState(this.params),this.initialValue=this.params.getInitialValue(),this.cancelBeforeStart=this.params.charPress&&"1234567890".indexOf(this.params.charPress)<0},mounted:function(){var t=this;this.$nextTick((function(){t.$refs.input&&t.$refs.input.focus()}))}},G=k,j=(o("6a29"),o("8654")),H=Object(g["a"])(G,x,D,!1,null,null,null),B=H.exports;m()(H,{VTextField:j["a"]});var W=o("05b7"),z=(o("a9e3"),o("ade3")),U=o("5530");o("a15b");function $(t){var e=t.salePrice,o=t.referralPercent;return e*o}function Y(t){var e=t.salePrice,o=t.fbaFee,r=t.referralFee,i=t.storageFee,n=t.refundRate,a=t.cogs;return 0===e?0:e-(o+r+i+n/100*e+a)}function q(t){var e=t.profitBeforeAds,o=t.salePrice;return 0===e?0:e/o*100}function K(t){var e=t.profitBeforeAds,o=t.cogs;return 0===e||0===o?0:e/o*100}function Z(t){var e=t.profitBeforeAds,o=t.tacos,r=t.salePrice;return 0===e?0:e-o/100*r}function X(t){var e=t.netProfit,o=t.salePrice;return 0===o?0:e/o*100}function Q(t){var e=t.netProfit,o=t.cogs;return 0===o?0:e/o*100}function J(t){var e=t.salePrice,o=t.profitBeforeAds;return 0===o?0:e/o}function tt(t){var e=t.data,o=e.imageUrl,r=e.title,i=e.parentAsin,n=e.asin,a=e.sku,s=[];return a&&s.push("SKU: ".concat(a)),n&&s.push("ASIN: ".concat(n)),parent&&s.push("PARENT: ".concat(i)),{rendererData:{imageUrl:o,title:r,subTitle:s.join(" / ").toUpperCase()}}}function et(t,e,o){var r=Object(U["a"])(Object(U["a"])({},t),{},Object(z["a"])({},o,Number(e))),i=r.salePrice,n=r.fbaFee,a=r.storageFee,s=r.refundRate,l=r.cogs,c=r.tacos,u=r.referralPercent,d=$({salePrice:i,referralPercent:u}),p=Y({salePrice:i,fbaFee:n,referralFee:d,storageFee:a,refundRate:s,cogs:l}),h=q({profitBeforeAds:p,salePrice:i}),f=K({profitBeforeAds:p,cogs:l}),g=Z({profitBeforeAds:p,salePrice:i,tacos:c}),v=X({salePrice:i,netProfit:g}),m=Q({cogs:l,netProfit:g}),y=h,C=J({salePrice:i,profitBeforeAds:p});return Object(U["a"])(Object(U["a"])({},t),{},Object(z["a"])({referralFee:Object(A["b"])(d),profitBeforeAds:Object(A["b"])(p),marginBeforeAds:Object(A["b"])(h),roiBeforeAds:Object(A["b"])(f),netProfit:Object(A["b"])(g),netMargin:Object(A["b"])(v),netRoi:Object(A["b"])(m),beAcos:Object(A["b"])(y),beRoas:Object(A["b"])(C)},o,Object(A["b"])(Number(e))))}o("07ac"),o("7db0");function ot(t){var e=t.rowDataInitial;return{getInitialValue:function(){var t=this.column.colId,o=this.node.id,r=e.find((function(t){var e=t.sku;return e===o})),i=r[t];return i||0}}}var rt={resizable:!0,enableCellChangeFlash:!0,minWidth:100,sortable:!0,wrapHeaderText:!0,autoHeaderHeight:!0,suppressMovable:!0};function it(t){var e=t.rowDataInitial;return[{field:"title",headerName:"Product",cellRenderer:"ProductDetailsCellRenderer",cellRendererParams:function(t){return tt(t)},minWidth:250,pinned:"left",getQuickFilterText:function(t){var e=t.data,o=e.parentAsin,r=e.title,i=e.asin,n=e.sku;return Object.values({parentAsin:o,title:r,asin:i,sku:n}).join()}},{field:"sku",headerName:"SKU",hide:!0},{field:"asin",headerName:"ASIN",hide:!0},{field:"salePrice",headerName:"Sale price",cellRenderer:"EditableRenderer",editable:!0,cellEditor:"NumericCellEditor",cellEditorParams:ot({rowDataInitial:e}),valueFormatter:function(t){var e=t.value;return Object(A["a"])(e)},minWidth:120,pinned:"left"},{headerName:"Unit Economics",headerClass:"unit-economics-header",cellStyle:{color:"red","background-color":"#DB9C9C"},children:[{field:"fbaFee",headerName:"FBA fee",valueFormatter:function(t){var e=t.value;return Object(A["a"])(e)}},{field:"referralFee",headerName:"Referral fee",minWidth:120,valueFormatter:function(t){var e=t.value;return Object(A["a"])(e)}},{field:"cogs",headerName:"COGS",minWidth:110,cellRenderer:"EditableRenderer",editable:!0,cellEditor:"NumericCellEditor",cellEditorParams:ot({rowDataInitial:e}),valueFormatter:function(t){var e=t.value;return Object(A["a"])(e)}},{field:"storageFee",headerName:"Storage fee",minWidth:130,cellRenderer:"EditableRenderer",editable:!0,cellEditor:"NumericCellEditor",cellEditorParams:ot({rowDataInitial:e}),valueFormatter:function(t){var e=t.value;return Object(A["a"])(e)}},{field:"refundRate",headerName:"Refund rate",minWidth:125,cellRenderer:"EditableRenderer",editable:!0,cellEditor:"NumericCellEditor",cellEditorParams:ot({rowDataInitial:e}),valueFormatter:function(t){var e=t.value;return Object(A["e"])(e)}},{field:"tacos",headerName:"TACoS",headerClass:"border-right",minWidth:115,cellRenderer:"EditableRenderer",editable:!0,cellEditor:"NumericCellEditor",cellEditorParams:ot({rowDataInitial:e}),valueFormatter:function(t){var e=t.value;return Object(A["e"])(e)},cellStyle:{"border-right":"1px solid #e2e2e2"}}]},{headerName:"Metrics Before Ads",headerClass:"before-ads-header",children:[{field:"profitBeforeAds",headerName:"Profit",valueFormatter:function(t){var e=t.value;return Object(A["a"])(e)}},{field:"marginBeforeAds",headerName:"Margin %",minWidth:115,valueFormatter:function(t){var e=t.value;return Object(A["e"])(e)}},{field:"roiBeforeAds",headerName:"ROI",headerClass:"border-right",valueFormatter:function(t){var e=t.value;return Object(A["e"])(e)},cellStyle:{"border-right":"1px solid #e2e2e2"}}]},{headerName:"Net Metrics Including Ads",headerClass:"net-metrics-header",children:[{field:"netProfit",headerName:"profit",valueFormatter:function(t){var e=t.value;return Object(A["a"])(e)}},{field:"netMargin",headerName:"Margin %",minWidth:115,valueFormatter:function(t){var e=t.value;return Object(A["e"])(e)}},{field:"netRoi",headerName:"ROI",headerClass:"border-right",valueFormatter:function(t){var e=t.value;return Object(A["e"])(e)},headerStyle:{"border-right":"1px solid #e2e2e2"},cellStyle:{"border-right":"1px solid #e2e2e2"}}]},{headerName:"Break-Even Points",headerClass:"break-even-points-header",children:[{field:"beAcos",headerName:"BE ACoS",valueFormatter:function(t){var e=t.value;return Object(A["e"])(e)}},{field:"beRoas",headerName:"BE ROAS",valueFormatter:function(t){var e=t.value;return Object(A["c"])(e)}}]}]}var nt=o("56d7"),at={get:function(t){var e=t.sellerId,o=t.marketplaceId,r={sellerId:e,marketplaceId:o};return nt["$api"].make_get("profit-calculator","profit_calculator",{params:r})}},st={data:function(){return{columnDefs:null,defaultColDef:rt,gridApi:null,phrase:"",rowHeight:75,loading:!0,rowData:null}},components:{AgGridVue:u["AgGridVue"],ProductDetailsCellRenderer:W["a"],NumericCellEditor:B,EditableRenderer:S},mounted:function(){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,at.get({sellerId:t.currentSellerId,marketplaceId:t.marketplaceId}).then((function(e){t.rowData=e.data,t.columnDefs=it({rowDataInitial:Object(l["a"])(e.data)}),t.loading=!1}));case 2:case"end":return e.stop()}}),e)})))()},computed:{currentSellerId:function(){return this.$store.getters.currentSellerId},marketplaceId:function(){return this.$store.getters.currentMarketplaceId}},methods:{getRowId:function(t){return t.data.sku},onGridReady:function(t){var e=t.api;this.gridApi=e,this.gridApi.sizeColumnsToFit()},onRowDataUpdated:function(){this.gridApi&&this.gridApi.sizeColumnsToFit()},onGridSizeChanged:function(){this.gridApi.sizeColumnsToFit()},onCellEditRequest:function(t){var e=et(t.node.data,t.newValue,t.column.colId),o=[];Object.entries(e).forEach((function(e){var r=Object(s["a"])(e,2),i=r[0],n=r[1];t.node.data[i]!==n&&i!==t.column.colId&&o.push(i)})),t.node.setData(e),this.gridApi.flashCells({rowNodes:[t.node],columns:o})},phraseChange:function(){this.gridApi.setQuickFilter(this.phrase)},exportToCsv:function(){var t=["title","sku","asin","salePrice","fbaFee","referralFee","cogs","storageFee","refundRate","tacos","profitBeforeAds","marginBeforeAds","roiBeforeAds","netProfit","netMargin","netRoi","beAcos","beRoas"];this.gridApi.exportDataAsCsv({skipColumnGroupHeaders:!0,columnKeys:t,fileName:"mrp_profit_calculator.csv"})}}},lt=st,ct=(o("4ba9"),o("490a")),ut=Object(g["a"])(lt,n,a,!1,null,"9604e6fe",null),dt=ut.exports;m()(ut,{VBtn:y["a"],VIcon:C["a"],VProgressCircular:ct["a"],VTextField:j["a"],VTooltip:w["a"]});var pt={components:{ProfitCalculator:dt}},ht=pt,ft=Object(g["a"])(ht,r,i,!1,null,null,null);e["default"]=ft.exports},"0fd9":function(t,e,o){"use strict";o("99af"),o("4160"),o("caad"),o("13d5"),o("4ec9"),o("b64b"),o("d3b7"),o("ac1f"),o("2532"),o("3ca3"),o("5319"),o("159b"),o("ddb0");var r=o("ade3"),i=o("5530"),n=(o("4b85"),o("a026")),a=o("d9f7"),s=o("80d2"),l=["sm","md","lg","xl"],c=["start","end","center"];function u(t,e){return l.reduce((function(o,r){return o[t+Object(s["A"])(r)]=e(),o}),{})}var d=function(t){return[].concat(c,["baseline","stretch"]).includes(t)},p=u("align",(function(){return{type:String,default:null,validator:d}})),h=function(t){return[].concat(c,["space-between","space-around"]).includes(t)},f=u("justify",(function(){return{type:String,default:null,validator:h}})),g=function(t){return[].concat(c,["space-between","space-around","stretch"]).includes(t)},v=u("alignContent",(function(){return{type:String,default:null,validator:g}})),m={align:Object.keys(p),justify:Object.keys(f),alignContent:Object.keys(v)},y={align:"align",justify:"justify",alignContent:"align-content"};function C(t,e,o){var r=y[t];if(null!=o){if(e){var i=e.replace(t,"");r+="-".concat(i)}return r+="-".concat(o),r.toLowerCase()}}var w=new Map;e["a"]=n["default"].extend({name:"v-row",functional:!0,props:Object(i["a"])(Object(i["a"])(Object(i["a"])({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:d}},p),{},{justify:{type:String,default:null,validator:h}},f),{},{alignContent:{type:String,default:null,validator:g}},v),render:function(t,e){var o=e.props,i=e.data,n=e.children,s="";for(var l in o)s+=String(o[l]);var c=w.get(s);return c||function(){var t,e;for(e in c=[],m)m[e].forEach((function(t){var r=o[t],i=C(e,t,r);i&&c.push(i)}));c.push((t={"no-gutters":o.noGutters,"row--dense":o.dense},Object(r["a"])(t,"align-".concat(o.align),o.align),Object(r["a"])(t,"justify-".concat(o.justify),o.justify),Object(r["a"])(t,"align-content-".concat(o.alignContent),o.alignContent),t)),w.set(s,c)}(),t(o.tag,Object(a["a"])(i,{staticClass:"row",class:c}),n)}})},"10fc":function(t,e,o){},1122:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var r=o("cc72"),i=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.calculateDateTimeNiceInterval=function(t,e,o,r,i){void 0===i&&(i=!0);var n,a=864e5,s=new Date(o),l=new Date(r),c=Math.abs((s.getTime()-l.getTime())/a);t.actualIntervalType=t.intervalType;var u=t.intervalType;switch(u){case"Years":n=this.calculateNumericNiceInterval(t,c/365,e);break;case"Quarter":n=this.calculateNumericNiceInterval(t,c/365*4,e);break;case"Months":n=this.calculateNumericNiceInterval(t,c/30,e);break;case"Weeks":n=this.calculateNumericNiceInterval(t,c/7,e);break;case"Days":n=this.calculateNumericNiceInterval(t,c,e);break;case"Hours":n=this.calculateNumericNiceInterval(t,24*c,e);break;case"Minutes":n=this.calculateNumericNiceInterval(t,24*c*60,e);break;case"Seconds":n=this.calculateNumericNiceInterval(t,24*c*60*60,e);break;case"Auto":return n=this.calculateNumericNiceInterval(t,c/365,e),n>=1?(t.actualIntervalType="Years",n):(n=this.calculateNumericNiceInterval(t,c/365*4,e),n>=1&&!i?(t.actualIntervalType="Quarter",n):(n=this.calculateNumericNiceInterval(t,c/30,e),n>=1?(t.actualIntervalType="Months",n):(n=this.calculateNumericNiceInterval(t,c/7,e),n>=1&&!i?(t.actualIntervalType="Weeks",n):(n=this.calculateNumericNiceInterval(t,c,e),n>=1?(t.actualIntervalType="Days",n):(n=this.calculateNumericNiceInterval(t,24*c,e),n>=1?(t.actualIntervalType="Hours",n):(n=this.calculateNumericNiceInterval(t,24*c*60,e),n>=1?(t.actualIntervalType="Minutes",n):(n=this.calculateNumericNiceInterval(t,24*c*60*60,e),t.actualIntervalType="Seconds",n)))))))}return n},e.prototype.getSkeleton=function(t,e,o,r){var i,n=t.actualIntervalType;return t.skeleton?t.skeleton:("Years"===n?i=r?t.isChart?(t.valueType,"y"):"y":t.isChart?"DateTime"===t.valueType&&t.isIntervalInDecimal?"y":"yMMM":"y":"Quarter"===n?i=r?"y":"yMMM":"Months"===n?r?(t.isChart,i="m"):i=t.isChart?"MMMd":"MMM":i="Weeks"===n?r?"m":"MEd":"Days"===n?r?"d":t.isChart?this.getDayFormat(t,e,o):"MMMd":"Hours"===n?r?"t":t.isChart?"DateTime"===t.valueType?"Hm":"EHm":"h":"Minutes"===n?r?"T":t.isChart?"Hms":"hm":r?"T":t.isChart?"Hms":"hms",i)},e.prototype.getMonthFormat=function(t,e,o){return new Date(e).getFullYear()===new Date(o).getFullYear()?t.isIntervalInDecimal?"MMM":"MMM d":"y MMM"},e.prototype.getDayFormat=function(t,e,o){return"DateTime"===t.valueType?new Date(e).getMonth()!==new Date(o).getMonth()?"MMMd":t.isIntervalInDecimal?"d":"Ehm":"yMd"},e.prototype.findCustomFormats=function(t,e,o){var r=t.labelFormat?t.labelFormat:"";return!t.isChart||t.skeleton||"Months"!==t.actualIntervalType||r||(r="DateTime"===t.valueType?this.getMonthFormat(t,e,o):"yMMM"),r},e}(r["a"])},1184:function(t,e,o){"use strict";o("6eef")},"119d":function(t,e,o){t.exports=o.p+"img/powered_by_stripe_blurple.47cc6a78.svg"},1283:function(t,e,o){"use strict";o.r(e),o.d(e,"AgGridVue",(function(){return B}));var r=o("a026"); /** * vue-class-component v7.2.6 * (c) 2015-present Evan You * @license MIT */function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function a(t){return s(t)||l(t)||c()}function s(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var o=t.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(y.indexOf(t)>-1)e[t]=o[t];else{var r=Object.getOwnPropertyDescriptor(o,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return n({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return m(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),s=a instanceof r["default"]?a.constructor:r["default"],l=s.extend(e);return b(l,t,s),u()&&d(l,t),l}var w={prototype:!0,arguments:!0,callee:!0,caller:!0};function b(t,e,o){Object.getOwnPropertyNames(e).forEach((function(r){if(!w[r]){var i=Object.getOwnPropertyDescriptor(t,r);if(!i||i.configurable){var n=Object.getOwnPropertyDescriptor(e,r);if(!f){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(o,r);if(!v(n.value)&&a&&a.value===n.value)return}0,Object.defineProperty(t,r,n)}}}))}function S(t){return"function"===typeof t?C(t):function(e){return C(e,t)}}S.registerHooks=function(t){y.push.apply(y,a(t))};var E=S;var _="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function O(t,e,o){if(_&&!Array.isArray(t)&&"function"!==typeof t&&"undefined"===typeof t.type){var r=Reflect.getMetadata("design:type",e,o);r!==Object&&(t.type=r)}}function R(t){return void 0===t&&(t={}),function(e,o){O(t,e,o),g((function(e,o){(e.props||(e.props={}))[o]=t}))(e,o)}}var T=o("2c53"),P=function(){function t(){}return t.getComponentType=function(t,e){if("string"===typeof e){var o=this.searchForComponentInstance(t,e);return o?r["default"].extend(o):(console.error("Could not find component with name of "+e+". Is it in Vue.components?"),null)}return e},t.createAndMountComponent=function(t,e,o){var r={data:{params:Object.freeze(t)},parent:o};o.componentDependencies&&o.componentDependencies.forEach((function(t){return r[t]=o[t]}));var i=new e(r);return i.$mount(),i},t.searchForComponentInstance=function(t,e,o,r){void 0===o&&(o=10),void 0===r&&(r=!1);var i=null,n=t.$parent,a=0;while(!i&&n&&n.$options&&++a=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},A=function(t){function e(e){var o=t.call(this)||this;return o.parent=e,o}return x(e,t),e.prototype.createWrapper=function(t){var e=this,o=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return x(i,o),i.prototype.init=function(t){o.prototype.init.call(this,t)},i.prototype.hasMethod=function(t){return null!=r.getFrameworkComponentInstance()[t]},i.prototype.callMethod=function(t,e){var o=this.getFrameworkComponentInstance(),i=r.getFrameworkComponentInstance();return i[t].apply(o,e)},i.prototype.addMethod=function(t,e){r[t]=e},i.prototype.overrideProcessing=function(t){return e.parent.autoParamsRefresh&&"refresh"===t},i.prototype.processMethod=function(t,e){return"refresh"===t&&(this.getFrameworkComponentInstance().params=e[0]),this.hasMethod(t)?this.callMethod(t,e):"refresh"===t},i.prototype.createComponent=function(o){return e.createComponent(t,o)},i}(M),r=new o;return r},e.prototype.createComponent=function(t,e){var o=P.getComponentType(this.parent,t);if(o)return P.createAndMountComponent(e,o,this.parent)},e.prototype.createMethodProxy=function(t,e,o){return function(){return t.overrideProcessing(e)?t.processMethod(e,arguments):t.hasMethod(e)?t.callMethod(e,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},e.prototype.destroy=function(){this.parent=null},e=D([Object(T["b"])("frameworkComponentWrapper")],e),e}(T["a"]),M=function(){function t(){}return t.prototype.getGui=function(){return this.component.$el},t.prototype.destroy=function(){this.getFrameworkComponentInstance()&&"function"===typeof this.getFrameworkComponentInstance().destroy&&this.getFrameworkComponentInstance().destroy(),this.component.$destroy()},t.prototype.getFrameworkComponentInstance=function(){return this.component},t.prototype.init=function(t){this.component=this.createComponent(t)},t}(),I=function(){var t={gridOptions:{default:function(){return{}}},rowDataModel:void 0},e={rowDataModel:function(t,e){this.processChanges("rowData",t,e)}};T["c"].ALL_PROPERTIES.forEach((function(o){t[o]={},e[o]=function(t,e){this.processChanges(o,t,e)}}));var o={prop:"rowDataModel",event:"data-model-changed"};return[t,e,o]},V=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),F=function(t){function e(e){var o=t.call(this)||this;return o.parent=e,o}return V(e,t),e.prototype.frameworkComponent=function(t,e){var o=!!P.searchForComponentInstance(this.parent,t,10,!0),r=o?t:null;if(!r&&e&&e[t]){var i=e[t];o=!!P.searchForComponentInstance(this.parent,i,10,!0),r=o?i:null}return r},e.prototype.isFrameworkComponent=function(t){return"object"===typeof t},e}(T["e"]),L=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),N=function(t,e,o,r){var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},k=I(),G=k[0],j=k[1],H=k[2],B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridCreated=!1,e.isDestroyed=!1,e.gridReadyFired=!1,e.emitRowModel=null,e}var o;return L(e,t),o=e,e.kebabProperty=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},e.prototype.render=function(t){return t("div")},e.prototype.globalEventListener=function(t,e){if(!this.isDestroyed){"gridReady"===t&&(this.gridReadyFired=!0),this.updateModelIfUsed(t);var r=o.kebabProperty(t);this.$listeners[r]?this.$emit(r,e):this.$listeners[t]&&this.$emit(t,e)}},e.prototype.processChanges=function(t,e,o){if(this.gridCreated){if(this.skipChange(t,e,o))return;var r={};r[t]={currentValue:e,previousValue:o},T["c"].processOnChange(r,this.gridOptions.api)}},e.prototype.mounted=function(){var t=this;this.emitRowModel=this.debounce((function(){t.$emit("data-model-changed",Object.freeze(t.getRowData()))}),20);var e=new A(this),o=T["c"].copyAttributesToGridOptions(this.gridOptions,this,!0);this.checkForBindingConflicts(),o.rowData=this.getRowDataBasedOnBindings();var r={globalEventListener:this.globalEventListener.bind(this),frameworkOverrides:new F(this),providedBeanInstances:{frameworkComponentWrapper:e},modules:this.modules};new T["d"](this.$el,o,r),this.gridCreated=!0},e.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},e.prototype.checkForBindingConflicts=function(){var t=this;(t.rowData||this.gridOptions.rowData)&&t.rowDataModel&&console.warn("AG Grid: Using both rowData and rowDataModel. rowData will be ignored.")},e.prototype.getRowData=function(){var t=[];return this.gridOptions.api.forEachNode((function(e){t.push(e.data)})),t},e.prototype.updateModelIfUsed=function(t){this.gridReadyFired&&this.$listeners["data-model-changed"]&&-1!==o.ROW_DATA_EVENTS.indexOf(t)&&this.emitRowModel&&this.emitRowModel()},e.prototype.getRowDataBasedOnBindings=function(){var t=this,e=t.rowDataModel;return e||(t.rowData?t.rowData:t.gridOptions.rowData)},e.prototype.skipChange=function(t,e,o){if(this.gridReadyFired&&"rowData"===t&&this.$listeners["data-model-changed"]){if(e===o)return!0;if(e&&o){var r=e,i=o;if(r.length===i.length){for(var n=0;nc?0:c,p=s[0]&&s[0].y>u?0:u,h=0,f=0,g=0,v=s;g=c||Math.abs(p-f)>=u)&&(o.push(m),d=h,p=f)}for(var y=0;y=t.delay&&(i.style.visibility="visible",o=Math.abs(Math.round((t.timeStamp-t.delay)*s/t.duration)),i.setAttribute("stroke-dasharray",o+","+s))},end:function(){i.setAttribute("stroke-dasharray",a),t.chart.trigger("animationComplete",{series:t.chart.isBlazor?{}:t})}})},t.prototype.storePointLocation=function(t,e,o,r){var n=e.marker&&e.marker.width?e.marker.width:0,a=e.marker&&e.marker.height?e.marker.height:0;t.symbolLocations.push(r(t.xValue,t.yValue,e.xAxis,e.yAxis,o,e)),t.regions.push(new i["c"](t.symbolLocations[0].x-n,t.symbolLocations[0].y-a,2*n,2*a))},t.prototype.withinYRange=function(t,e){return t.yValue>=e.visibleRange.min&&t.yValue<=e.visibleRange.max},t.prototype.getFirstLastVisiblePoint=function(t){for(var e=null,o=null,r=0,i=t;r3&&!this.chart.stackingAreaSeriesModule&&!this.chart.stackingStepAreaSeriesModule?e.splice(e.length-4,3):(this.chart.stackingAreaSeriesModule||this.chart.stackingStepAreaSeriesModule)&&(e.splice(e.length/2+1,e.length/2+1),"L"===e[e.length-1]&&e.splice(e.length-1,1)),e.join(" ")},t.prototype.removeEmptyPointsBorder=function(t){var e,o=0,r=t.split(" ");do{e=r.indexOf("M",o),e>-1&&(r.splice(e+1,3),o=e+1,e-6>0&&(r.splice(e-6,6),o-=6))}while(-1!==e);return r.join(" ")},t.prototype.doLinearAnimation=function(t,e){var o,i=t.clipRectElement.childNodes[0].childNodes[0],a=t.chart.animated?t.chart.duration:e.duration,s=Object(r["A"])("Linear"),l=+i.getAttribute("height"),c=+i.getAttribute("width"),u=+i.getAttribute("x"),d=t.chart.requireInvertedAxis?+i.getAttribute("height")+ +i.getAttribute("y"):+i.getAttribute("y");i.style.visibility="hidden",new n["b"]({}).animate(i,{duration:a,delay:e.delay,progress:function(e){e.timeStamp>=e.delay&&(i.style.visibility="visible",t.chart.requireInvertedAxis?(o=s(e.timeStamp-e.delay,0,l,e.duration),i.setAttribute("transform","translate("+u+" "+d+") scale(1,"+o/l+") translate("+-u+" "+-d+")")):(o=s(e.timeStamp-e.delay,0,c,e.duration),i.setAttribute("transform","translate("+u+" "+d+") scale("+o/c+", 1) translate("+-u+" "+-d+")")))},end:function(){i.setAttribute("transform","translate(0,0)"),t.chart.trigger("animationComplete",{series:t.chart.isBlazor?{}:t})}})},t}()},"169a":function(t,e,o){"use strict";o("7db0"),o("caad"),o("45fc"),o("a9e3"),o("2532"),o("498a");var r=o("5530"),i=o("2909"),n=o("ade3"),a=(o("368e"),o("480e")),s=o("4ad4"),l=o("b848"),c=o("75eb"),u=(o("3c93"),o("a9ad")),d=o("7560"),p=o("f2e7"),h=o("58df"),f=Object(h["a"])(u["a"],d["a"],p["a"]).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim:function(){var t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes:function(){return Object(r["a"])({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity:function(){return Number(this.isActive?this.opacity:0)},styles:function(){return{zIndex:this.zIndex}}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-overlay__content"},this.$slots.default)}},render:function(t){var e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}}),g=f,v=o("80d2"),m=o("a026"),y=m["default"].extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data:function(){return{animationFrame:0,overlay:null}},watch:{hideOverlay:function(t){this.isActive&&(t?this.removeOverlay():this.genOverlay())}},beforeDestroy:function(){this.removeOverlay()},methods:{createOverlay:function(){var t=new g({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});t.$mount();var e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(t.$el,e.firstChild),this.overlay=t},genOverlay:function(){var t=this;if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame((function(){t.overlay&&(void 0!==t.activeZIndex?t.overlay.zIndex=String(t.activeZIndex-1):t.$el&&(t.overlay.zIndex=Object(v["r"])(t.$el)),t.overlay.value=!0)})),!0},removeOverlay:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.overlay&&(Object(v["a"])(this.overlay.$el,"transitionend",(function(){t.overlay&&t.overlay.$el&&t.overlay.$el.parentNode&&!t.overlay.value&&!t.isActive&&(t.overlay.$el.parentNode.removeChild(t.overlay.$el),t.overlay.$destroy(),t.overlay=null)})),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),e&&this.showScroll()},scrollListener:function(t){if("keydown"===t.type){if(["INPUT","TEXTAREA","SELECT"].includes(t.target.tagName)||t.target.isContentEditable)return;var e=[v["u"].up,v["u"].pageup],o=[v["u"].down,v["u"].pagedown];if(e.includes(t.keyCode))t.deltaY=-1;else{if(!o.includes(t.keyCode))return;t.deltaY=1}}(t.target===this.overlay||"keydown"!==t.type&&t.target===document.body||this.checkPath(t))&&t.preventDefault()},hasScrollbar:function(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t);return(["auto","scroll"].includes(e.overflowY)||"SELECT"===t.tagName)&&t.scrollHeight>t.clientHeight||["auto","scroll"].includes(e.overflowX)&&t.scrollWidth>t.clientWidth},shouldScroll:function(t,e){if(t.hasAttribute("data-app"))return!1;var o,r,i=e.shiftKey||e.deltaX?"x":"y",n="y"===i?e.deltaY:e.deltaX||e.deltaY;"y"===i?(o=0===t.scrollTop,r=t.scrollTop+t.clientHeight===t.scrollHeight):(o=0===t.scrollLeft,r=t.scrollLeft+t.clientWidth===t.scrollWidth);var a=n<0,s=n>0;return!(o||!a)||(!(r||!s)||!(!o&&!r)&&this.shouldScroll(t.parentNode,e))},isInside:function(t,e){return t===e||null!==t&&t!==document.body&&this.isInside(t.parentNode,e)},checkPath:function(t){var e=Object(v["f"])(t);if("keydown"===t.type&&e[0]===document.body){var o=this.$refs.dialog,r=window.getSelection().anchorNode;return!(o&&this.hasScrollbar(o)&&this.isInside(r,o))||!this.shouldScroll(o,t)}for(var i=0;i=this.getMaxZIndex()},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):y.options.methods.hideScroll.call(this)},show:function(){var t=this;!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick((function(){t.$nextTick((function(){t.$refs.content.contains(document.activeElement)||(t.previousActiveElement=document.activeElement,t.$refs.content.focus()),t.bind()}))}))},bind:function(){window.addEventListener("focusin",this.onFocusin)},unbind:function(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside:function(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown:function(t){if(t.keyCode===v["u"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var e=this.getActivator();this.$nextTick((function(){return e&&e.focus()}))}this.$emit("keydown",t)},onFocusin:function(t){if(t&&this.retainFocus){var e=t.target;if(e&&![document,this.$refs.content].includes(e)&&!this.$refs.content.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some((function(t){return t.contains(e)}))){var o=this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=Object(i["a"])(o).find((function(t){return!t.hasAttribute("disabled")}));r&&r.focus()}}},genContent:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement(a["a"],{props:{root:!0,light:t.light,dark:t.dark}},[t.$createElement("div",{class:t.contentClasses,attrs:Object(r["a"])({role:"dialog",tabindex:t.isActive?0:void 0,"aria-modal":t.hideOverlay?void 0:"true"},t.getScopeIdAttrs()),on:{keydown:t.onKeydown},style:{zIndex:t.activeZIndex},ref:"content"},[t.genTransition()])])]}))},genTransition:function(){var t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent:function(){var t={class:this.classes,ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style=Object(r["a"])(Object(r["a"])({},t.style),{},{maxWidth:Object(v["g"])(this.maxWidth),width:Object(v["g"])(this.width)})),this.$createElement("div",t,this.getContentSlot())}},render:function(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}})},"16e6":function(t,e,o){},"1b85":function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var r=o("d978"),i=o("5510"),n=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(t){t.isRectSeries=!0;for(var e,o,i=this.getSideBySideInfo(t),n=t.stackedValues,a=Object(r["N"])(t),s=0,l=a;s${point.x}":"${series.name}":this.control.tooltip.header,this.formattedText=[];var e=document.getElementById(this.chart.element.id+"_tooltip"),o=this.chart.element.id.indexOf("stockChart")>-1;return!t&&!e||o?this.createElement():null},e.prototype.createElement=function(){var t=document.createElement("div");return t.id=this.element.id+"_tooltip",t.className="ejSVGTooltip",t.style.pointerEvents="none",t.style.position="absolute",t.style.zIndex="1",t},e.prototype.pushData=function(t,e,o,r){return!!t.series.enableTooltip&&(this.currentPoints.push(t),this.stopAnimation(),o&&!document.getElementById(o.id)&&(this.chart.stockChart?document.getElementById(this.chart.stockChart.element.id+"_Secondary_Element").appendChild(o):document.getElementById(this.element.id+"_Secondary_Element").appendChild(o)),!0)},e.prototype.removeHighlight=function(){for(var t,e=0,o=this.previousPoints.length;e0);i&&(!a||a&&i.getAttribute("class")&&-1===i.getAttribute("class").indexOf("_ej2_chart_selection_series_")?""===this.chart.highlightColor||Object(r["w"])(this.chart.highlightColor)?i.setAttribute("opacity",(o&&"transparent"!==this.chart.highlightColor?t.opacity/2:t.opacity).toString()):i.setAttribute("fill",o&&"transparent"!==this.chart.highlightColor?this.chart.highlightColor:""!==t.pointColorMapping?t.points[0].color:t.points[e].color||t.interior):i.setAttribute("opacity",t.opacity.toString()))},e.prototype.highlightPoints=function(){for(var t=0,e=this.currentPoints;t1||this.chart.stockChart?0:7,availableSize:t.availableSize,duration:this.chart.tooltip.duration,isCanvas:this.chart.enableCanvas,isTextWrap:t.tooltip.enableTextWrap&&"chart"===t.getModuleName(),blazorTemplate:{name:"Template",parent:this.chart.tooltip},controlInstance:this.chart,enableRTL:t.enableRtl,controlName:"Chart",tooltipRender:function(){g.removeHighlight(),g.highlightPoints(),g.updatePreviousPoint(d)},animationComplete:function(t){t.tooltip.fadeOuted&&g.fadeOut(g.previousPoints)}},"#"+this.element.id+"_tooltip"):this.svgTooltip&&(this.svgTooltip.location=o,this.svgTooltip.content=this.text,this.svgTooltip.header=this.headerText,this.svgTooltip.offset=l,this.svgTooltip.palette=this.findPalette(),this.svgTooltip.shapes=s,this.svgTooltip.data=p,this.svgTooltip.template=this.template,this.svgTooltip.controlName="Chart",this.svgTooltip.crosshair=u,this.svgTooltip.textStyle=t.tooltip.textStyle,this.svgTooltip.isNegative=f.isRectSeries&&"Waterfall"!==f.type&&a&&a.y<0,this.svgTooltip.clipBounds="PolarRadar"===this.chart.chartAreaType?new i["a"](0,0):r,this.svgTooltip.arrowPadding=this.text.length>1||this.chart.stockChart?0:7,this.svgTooltip.dataBind()),this.chart.isReact&&this.chart.renderReactTemplates())},e.prototype.findPalette=function(){for(var t=[],e=0,o=this.currentPoints;e0;o||(this.valueX=null,this.valueY=null,this.currentPoints=[],this.removeHighlight(),this.removeHighlightedMarker(t,!0),this.svgTooltip=null,this.control.trigger("animationComplete",{}))},e.prototype.removeHighlightedMarker=function(t,e){if(this.chart.markerRender)for(var o=0,r=t;o0)while(t.lastChild&&1!==t.childNodes.length)t.removeChild(t.lastChild)},e.prototype.stopAnimation=function(){Object(i["db"])(this.toolTipInterval)},e.prototype.removeTooltip=function(t){var e=this,o=this.getElement(this.element.id+"_tooltip"),r=o?this.getElement(o.id+"parent_template"):null;r&&r.innerHTML;this.stopAnimation(),o&&this.previousPoints.length>0&&(this.toolTipInterval=+setTimeout((function(){e.svgTooltip&&e.svgTooltip.fadeOut()}),t))},e}(a["a"]),c=o("63fe"),u=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),d=function(t){function e(e){var o=t.call(this,e)||this;return o.commonXvalues=[],o.addEventListener(),o}return u(e,t),e.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var t=r["c"].isPointer?"pointerleave":"mouseleave";this.chart.on(t,this.mouseLeaveHandler,this),this.chart.on("tapHold",this.longPress,this),this.chart.on(r["c"].touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(r["c"].touchEndEvent,this.mouseUpHandler,this)}},e.prototype.mouseUpHandler=function(){var t=this.control,e=this.getData();e.lierIndex=this.lierIndex,t.isTouch&&!this.isSelected(t)&&(Object(i["qb"])(t.mouseX,t.mouseY,t.chartAxisLayoutPanel.seriesClipRect)&&t.tooltip.shared||!t.tooltip.shared)?t.crosshair.enable?t.startMove&&"Move"===t.tooltip.fadeOutMode&&this.removeTooltip(2e3):(this.tooltip(),"Move"===t.tooltip.fadeOutMode&&this.removeTooltip(t.tooltip.fadeOutDuration)):this.findData(e,this.previousPoints[0])||"Click"!==t.tooltip.fadeOutMode||this.removeTooltip(0)},e.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.chart.tooltip.fadeOutDuration)},e.prototype.mouseMoveHandler=function(){var t=this.chart;t.mouseX=t.mouseX/t.scaleX,t.mouseY=t.mouseY/t.scaleY,t.disableTrackTooltip||this.isSelected(t)||(t.tooltip.shared||t.isTouch&&!t.startMove||this.tooltip(),Object(i["qb"])(t.mouseX,t.mouseY,t.chartAxisLayoutPanel.seriesClipRect)?!t.tooltip.shared||t.isTouch&&!t.startMove||this.tooltip():t.tooltip.shared&&"Move"===t.tooltip.fadeOutMode&&this.removeTooltip(this.chart.tooltip.fadeOutDuration))},e.prototype.longPress=function(){var t=this.chart;return t.crosshair.enable&&Object(i["qb"])(t.mouseX,t.mouseY,t.chartAxisLayoutPanel.seriesClipRect)&&this.tooltip(),!1},e.prototype.tooltip=function(){if(this.chart.stockChart&&this.chart.stockChart.onPanning)return this.removeTooltip(1e3),null;var t=this.chart.enableCanvas?this.element.id+"_tooltip_group":this.element.id+"_tooltip_svg",e=this.getElement(t),o=this.chart.stockChart&&e&&e.firstChild.childNodes.length>1,r=e&&parseInt(e.getAttribute("opacity"),10)>0&&!o,i=this.getTooltipElement(r);this.chart.enableCanvas&&i&&(document.getElementById(this.chart.element.id+"_Secondary_Element").appendChild(i),i.appendChild(document.getElementById(this.chart.element.id+"_tooltip_svg"))),this.chart.tooltip.shared?this.renderGroupedTooltip(this.chart,!r,i):this.renderSeriesTooltip(this.chart,!r,i)},e.prototype.findHeader=function(t){return""===this.header?"":(this.header=this.parseTemplate(t.point,t.series,this.header,t.series.xAxis,t.series.yAxis),""!==this.header.replace(//g,"").replace(/<\/b>/g,"").trim()?this.header:"")},e.prototype.findShapes=function(){if(!this.chart.tooltip.enableMarker)return[];for(var t=[],e=0,o=this.currentPoints;e3&&e.lierIndex!==this.lierIndex||e.point===t.point)},e.prototype.getSymbolLocation=function(t){var e;if("BoxAndWhisker"!==t.series.type){if(!t.point.symbolLocations[0])return null;e=new i["a"](t.point.symbolLocations[0].x,t.point.symbolLocations[0].y)}switch(t.series.type){case"BoxAndWhisker":return this.getBoxLocation(t);case"Waterfall":return this.getWaterfallRegion(t,e);case"RangeArea":case"SplineRangeArea":case"RangeColumn":return this.getRangeArea(t,e);default:return e}},e.prototype.getRangeArea=function(t,e){return t.point.regions[0]&&(this.inverted?e.x=t.point.regions[0].x+t.point.regions[0].width/2:e.y=t.point.regions[0].y+t.point.regions[0].height/2),e},e.prototype.getWaterfallRegion=function(t,e){return this.inverted?e.x=t.point.y<0?e.x+t.point.regions[0].width:e.x:e.y=t.point.y<0?e.y-t.point.regions[0].height:e.y,e},e.prototype.getTooltipText=function(t){var e=t.series;return this.parseTemplate(t.point,e,this.getFormat(this.chart,e),e.xAxis,e.yAxis)},e.prototype.getTemplateText=function(t){if(this.template&&this.chart.tooltip.shared){var e=Object(r["r"])({},t[0].point);e.x=this.formatPointValue(t[0].point,t[0].series.xAxis,"x",!0,!1);for(var o=0;o0&&this.currentPoints.length>0?this.triggerSharedTooltip(d,a,u,t,e,s):this.getElement(this.element.id+"_tooltip_path")&&this.getElement(this.element.id+"_tooltip_path").setAttribute("d","")},e.prototype.triggerSharedTooltip=function(t,e,o,r,i,a){var s,l=this,u={cancel:!1,name:c["z"],text:t.text,headerText:t.headerText,textStyle:t.textStyle,template:s,point:t.point,series:t.series,data:t.data},d=this.chart.border.width,p=3,h=[],f=function(t){if(t.cancel)o.push(e);else{"BoxAndWhisker"===e.series.type&&(l.removeText(),i=!0);for(var s=0;s1?new i["a"](this.valueX,this.valueY):this.getSymbolLocation(this.currentPoints[0])},e.prototype.getBoxLocation=function(t){var e=this.lierIndex>3?t.point.symbolLocations[this.lierIndex-4]:{x:t.point.regions[0].x+t.point.regions[0].width/2,y:t.point.regions[0].y+t.point.regions[0].height/2};return e},e.prototype.parseTemplate=function(t,e,o,r,i){for(var n,a,s=0,l=Object.keys(t);s${point.y} Size : ${point.size}":"${point.y}");case"HighLow":return r+"
High : ${point.high}
Low : ${point.low}";case"HighLowOpenClose":return r+"
High : ${point.high}
Low : ${point.low}
Open : ${point.open}
Close : ${point.close}";case"BoxPlot":return r+"
"+(this.lierIndex>3?"Outliers : ${point.outliers}":"Maximum : ${point.maximum}
Q3 : ${point.upperQuartile}
Median : ${point.median}
Q1 : ${point.lowerQuartile}
Minimum : ${point.minimum}");default:return""}},e.prototype.getIndicatorTooltipFormat=function(t,e,o){var r;return r="XY"===t.seriesType?t.name+" : ${point.y}":o,r},e.prototype.removeHighlightedMarker=function(t,e){for(var o=0,r=t;o0},isLabelActive:function(){return this.isDirty},text:function(){var t=this;return this.isDirty||!this.persistentPlaceholder&&!this.isFocused&&this.hasLabel?this.internalArrayValue.map((function(e){var o=e.name,r=void 0===o?"":o,i=e.size,n=void 0===i?0:i,a=t.truncateText(r);return t.showSize?"".concat(a," (").concat(Object(l["s"])(n,1024===t.base),")"):a})):[this.placeholder]},base:function(){return"boolean"!==typeof this.showSize?this.showSize:void 0},hasChips:function(){return this.chips||this.smallChips}},watch:{readonly:{handler:function(t){!0===t&&Object(c["b"])("readonly is not supported on ",this)},immediate:!0},value:function(t){var e=this.multiple?t:t?[t]:[];Object(l["j"])(e,this.$refs.input.files)||(this.$refs.input.value="")}},methods:{clearableCallback:function(){this.internalValue=this.multiple?[]:null,this.$refs.input.value=""},genChips:function(){var t=this;return this.isDirty?this.text.map((function(e,o){return t.$createElement(s["a"],{props:{small:t.smallChips},on:{"click:close":function(){var e=t.internalValue;e.splice(o,1),t.internalValue=e}}},[e])})):[]},genControl:function(){var t=a["a"].options.methods.genControl.call(this);return this.hideInput&&(t.data.style=Object(u["c"])(t.data.style,{display:"none"})),t},genInput:function(){var t=a["a"].options.methods.genInput.call(this);return t.data.attrs.multiple=this.multiple,delete t.data.domProps.value,delete t.data.on.input,t.data.on.change=this.onInput,[this.genSelections(),t]},genPrependSlot:function(){var t=this;if(!this.prependIcon)return null;var e=this.genIcon("prepend",(function(){t.$refs.input.click()}));return this.genSlot("prepend","outer",[e])},genSelectionText:function(){var t=this.text.length;return t<2?this.text:this.showSize&&!this.counter?[this.computedCounterValue]:[this.$vuetify.lang.t(this.counterString,t)]},genSelections:function(){var t=this,e=[];return this.isDirty&&this.$scopedSlots.selection?this.internalArrayValue.forEach((function(o,r){t.$scopedSlots.selection&&e.push(t.$scopedSlots.selection({text:t.text[r],file:o,index:r}))})):e.push(this.hasChips&&this.isDirty?this.genChips():this.genSelectionText()),this.$createElement("div",{staticClass:"v-file-input__text",class:{"v-file-input__text--placeholder":this.placeholder&&!this.isDirty,"v-file-input__text--chips":this.hasChips&&!this.$scopedSlots.selection}},e)},genTextFieldSlot:function(){var t=this,e=a["a"].options.methods.genTextFieldSlot.call(this);return e.data.on=Object(i["a"])(Object(i["a"])({},e.data.on||{}),{},{click:function(){return t.$refs.input.click()}}),e},onInput:function(t){var e=Object(r["a"])(t.target.files||[]);this.internalValue=this.multiple?e:e[0],this.initialValue=this.internalValue},onKeyDown:function(t){this.$emit("keydown",t)},truncateText:function(t){if(t.lengthe?1:t=0)){var i=o[t],n=I(i)&&i.constructor===Object;r[t]=n?w(i):i}})),r}}function b(t,e){return t[e]}function S(t,e,o){t[e]=o}function E(t,e){for(var o=[],r=2;r1)if(i=i[r.shift()],null==i)return o;var n=i[r[0]];return null!=n?n:o}function D(t,e,o){if(null!=t){var r=e.split("."),i=t;r.forEach((function(t,e){i[t]||(i[t]={}),e0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),e)}function z(t,e){var o;return function(){for(var r=[],i=0;io;(t()||s)&&(e(),a=!0,null!=n&&(window.clearInterval(n),n=null),s&&r&&console.warn(r))};s(),a||(n=window.setInterval(s,10))}function Y(){for(var t=[],e=0;e0)&&!(r=n.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n["return"])&&o.call(n)}finally{if(i)throw i.error}}return a},Q=function(){for(var t=[],e=0;e> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return f(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},t.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),i(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),m(this.beanWrappers,(function(e,o){var r;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var i=t.getBeansForParameters(r,o.bean.name),n=new(o.bean.bind.apply(o.bean,Q([null],i)));o.beanInstance=n}));var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},t.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var o=void 0;return o=t.prototype.constructor?N(t.prototype.constructor):""+t,void console.error("Context item "+o+" is not a bean")}var r={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=r},t.prototype.autoWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,r){var i=o.agClassAttributes;i&&i.forEach((function(o){var i=e.lookupBeanInstance(r,o.beanName,o.optional);t[o.attributeName]=i}))}))}))},t.prototype.methodWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,r){m(o.autowireMethods,(function(o,i){if("agConstructor"!==o){var n=e.getBeansForParameters(i,r);t[o].apply(t,n)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,e){var o=Object.getPrototypeOf(t);while(null!=o){var r=o.constructor;if(r.hasOwnProperty("__agBeanMetaData")){var i=r.__agBeanMetaData,n=this.getBeanName(r);e(i,n)}o=Object.getPrototypeOf(o)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),o=e.substring(9,e.indexOf("("));return o},t.prototype.getBeansForParameters=function(t,e){var o=this,r=[];return t&&m(t,(function(t,i){var n=o.lookupBeanInstance(e,i);r[Number(t)]=n})),r},t.prototype.lookupBeanInstance=function(t,e,o){if(void 0===o&&(o=!1),"context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var r=this.beanWrappers[e];return r?r.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,e){var o=this;t.forEach((function(t){return o.callLifeCycleMethodsOnBean(t,e)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,e,o){var r={};this.forEachMetaDataInHierarchy(t,(function(t){var i=t[e];i&&i.forEach((function(t){t!=o&&(r[t]=!0)}))}));var i=Object.keys(r);i.forEach((function(e){return t[e]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},t.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach((function(t){e.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy");var o=t;"function"===typeof o.destroy&&o.destroy()})),[]):[]},t}();function tt(t,e,o){var r=lt(t.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(e)}function et(t,e,o){var r=lt(t.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(e)}function ot(t,e,o){var r=lt(t.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(e)}function rt(t){return function(e){var o=lt(e);o.beanName=t}}function it(t){return function(e,o,r){at(e,t,!1,e,o,null)}}function nt(t){return function(e,o,r){at(e,t,!0,e,o,null)}}function at(t,e,o,r,i,n){if(null!==e)if("number"!==typeof n){var a=lt(t.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:i,beanName:e,optional:o})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function st(t){return function(e,o,r){var i,n="function"==typeof e?e:e.constructor;if("number"===typeof r){var a=void 0;o?(i=lt(n),a=o):(i=lt(n),a="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[a]||(i.autowireMethods[a]={}),i.autowireMethods[a][r]=t}}}function lt(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData} /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.1.0 * @link https://www.ag-grid.com/ * @license MIT */var ct,ut=function(t,e,o,r){var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},dt=function(t,e){return function(o,r){e(o,r,t)}},pt=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(t,e,o,r){if(void 0===r&&(r=null),this.frameworkOverrides=o,this.gridOptionsService=e,r){var i=e.useAsyncEvents();this.addGlobalListener(r,i)}},t.prototype.getListeners=function(t,e,o){var r=e?this.allAsyncListeners:this.allSyncListeners,i=r.get(t);return!i&&o&&(i=new Set,r.set(t,i)),i},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(t,e,o){void 0===o&&(o=!1),this.getListeners(t,o,!0).add(e)},t.prototype.removeEventListener=function(t,e,o){void 0===o&&(o=!1);var r=this.getListeners(t,o,!1);if(r&&(r.delete(e),0===r.size)){var i=o?this.allAsyncListeners:this.allSyncListeners;i.delete(t)}},t.prototype.addGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var e=t;if(this.gridOptionsService){var o=this.gridOptionsService,r=o.api,i=o.columnApi,n=o.context;e.api=r,e.columnApi=i,e.context=n}this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,e){var o=this,r=t.type;if(e&&"event"in t){var i=t.event;i instanceof Event&&(t.eventPath=i.composedPath())}var n=function(r){return r.forEach((function(r){e?o.dispatchAsync((function(){return r(t)})):r(t)}))},a=this.getListeners(r,e,!1);a&&n(a);var s=e?this.globalAsyncListeners:this.globalSyncListeners;s.forEach((function(i){e?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(r,(function(){return i(r,t)}),!0)})):o.frameworkOverrides.dispatchEvent(r,(function(){return i(r,t)}),!0)}))},t.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach((function(t){return t()}))},ut([dt(0,st("loggerFactory")),dt(1,st("gridOptionsService")),dt(2,st("frameworkOverrides")),dt(3,st("globalEventListener"))],t.prototype,"setBeans",null),t=ut([rt("eventService")],t),t}();(function(t){t["CommunityCoreModule"]="@ag-grid-community/core",t["CommunityAllModules"]="@ag-grid-community/all",t["InfiniteRowModelModule"]="@ag-grid-community/infinite-row-model",t["ClientSideRowModelModule"]="@ag-grid-community/client-side-row-model",t["CsvExportModule"]="@ag-grid-community/csv-export",t["EnterpriseCoreModule"]="@ag-grid-enterprise/core",t["EnterpriseAllModules"]="@ag-grid-enterprise/all",t["RowGroupingModule"]="@ag-grid-enterprise/row-grouping",t["ColumnToolPanelModule"]="@ag-grid-enterprise/column-tool-panel",t["FiltersToolPanelModule"]="@ag-grid-enterprise/filter-tool-panel",t["MenuModule"]="@ag-grid-enterprise/menu",t["SetFilterModule"]="@ag-grid-enterprise/set-filter",t["MultiFilterModule"]="@ag-grid-enterprise/multi-filter",t["StatusBarModule"]="@ag-grid-enterprise/status-bar",t["SideBarModule"]="@ag-grid-enterprise/side-bar",t["RangeSelectionModule"]="@ag-grid-enterprise/range-selection",t["MasterDetailModule"]="@ag-grid-enterprise/master-detail",t["RichSelectModule"]="@ag-grid-enterprise/rich-select",t["GridChartsModule"]="@ag-grid-enterprise/charts",t["ViewportRowModelModule"]="@ag-grid-enterprise/viewport-row-model",t["ServerSideRowModelModule"]="@ag-grid-enterprise/server-side-row-model",t["ExcelExportModule"]="@ag-grid-enterprise/excel-export",t["ClipboardModule"]="@ag-grid-enterprise/clipboard",t["SparklinesModule"]="@ag-grid-enterprise/sparklines",t["AngularModule"]="@ag-grid-community/angular",t["ReactModule"]="@ag-grid-community/react",t["VueModule"]="@ag-grid-community/vue",t["PolymerModule"]="@ag-grid-community/polymer"})(ct||(ct={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.1.0 * @link https://www.ag-grid.com/ * @license MIT */ var ht=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,i,n=o.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=n.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n["return"])&&o.call(n)}finally{if(i)throw i.error}}return a},ft=function(){function t(){}return t.register=function(e,o){void 0===o&&(o=!0),t.runVersionChecks(e),t.modulesMap[e.moduleName]=e,t.setModuleBased(o)},t.runVersionChecks=function(e){if(t.currentModuleVersion||(t.currentModuleVersion=e.version),e.version?e.version!==t.currentModuleVersion&&console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is version "+e.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is incompatible. Please update all modules to the same version."),e.validate){var o=e.validate();if(!o.isValid){var r=o;console.error("AG Grid: "+r.message)}}},t.setModuleBased=function(e){void 0===t.moduleBased?t.moduleBased=e:t.moduleBased!==e&&L((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},t.setIsBundled=function(){t.isBundled=!0},t.registerModules=function(e,o){void 0===o&&(o=!0),t.setModuleBased(o),e&&e.forEach((function(e){return t.register(e,o)}))},t.assertRegistered=function(e,o){var r;if(this.isRegistered(e))return!0;var i,n=o+e;if(t.isBundled)i="AG Grid: unable to use "+o+" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n