!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7ab9e180-eda6-4ae9-b276-c3664c056c1d",e._sentryDebugIdIdentifier="sentry-dbid-7ab9e180-eda6-4ae9-b276-c3664c056c1d")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"5b47a54e31e1a28f9f2fff68985f092dad659478"},(self.webpackChunkneodash=self.webpackChunkneodash||[]).push([[633],{61633:(e,n,l)=>{l.r(n),l.d(n,{NeoUpgradeOldDashboardModal:()=>f,default:()=>b});var a=l(89526),o=l(61943),t=l(15948),d=l(6511),r=l(66699),c=l.n(r),i=l(82369),s=l.n(i),u=l(78750);function m(){var e="/home/runner/work/neodash/neodash/src/modal/UpgradeOldDashboardModal.tsx",n=new Function("return this")(),l="__coverage__",a=n[l]||(n[l]={});a[e]&&"959baade2b966ddaa73cf2c4e786d4cf8020f7b3"===a[e].hash||(a[e]={path:"/home/runner/work/neodash/neodash/src/modal/UpgradeOldDashboardModal.tsx",statementMap:{0:{start:{line:7,column:43},end:{line:57,column:1}},1:{start:{line:8,column:2},end:{line:56,column:4}},2:{start:{line:20,column:16},end:{line:20,column:61}},3:{start:{line:21,column:16},end:{line:21,column:36}},4:{start:{line:32,column:16},end:{line:32,column:61}},5:{start:{line:33,column:16},end:{line:33,column:50}},6:{start:{line:34,column:16},end:{line:34,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:43},end:{line:7,column:44}},loc:{start:{line:7,column:97},end:{line:57,column:1}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:19,column:23},end:{line:19,column:24}},loc:{start:{line:19,column:29},end:{line:22,column:15}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:31,column:23},end:{line:31,column:24}},loc:{start:{line:31,column:29},end:{line:35,column:15}},line:31},3:{name:"(anonymous_3)",decl:{start:{line:48,column:22},end:{line:48,column:23}},loc:{start:{line:48,column:28},end:{line:48,column:30}},line:48}},branchMap:{0:{loc:{start:{line:49,column:19},end:{line:49,column:35}},type:"cond-expr",locations:[{start:{line:49,column:26},end:{line:49,column:30}},{start:{line:49,column:33},end:{line:49,column:35}}],line:49}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"959baade2b966ddaa73cf2c4e786d4cf8020f7b3"});var o=a[e];return m=function(){return o},o}m(),m().s[0]++;var f=function(e){var n=e.open,l=e.text,r=e.clearOldDashboard,i=e.loadDashboard;return m().f[0]++,m().s[1]++,a.createElement("div",null,a.createElement(t.V,{size:"large",open:n,"aria-labelledby":"form-dialog-title"},a.createElement(t.V.Header,{id:"form-dialog-title"},"Old Dashboard Found"),a.createElement(t.V.Content,null,"We've found a dashboard built with an old version of NeoDash. Would you like to attempt an upgrade, or start from scratch?",a.createElement("br",null),a.createElement("b",null,"Make sure you back up this dashboard first!"),a.createElement("div",{style:{marginTop:"20px",marginBottom:"20px"}},a.createElement(d.z,{onClick:function(){m().f[1]++,m().s[2]++,localStorage.removeItem("neodash-dashboard"),m().s[3]++,r()},style:{marginRight:"20px"},color:"danger",floating:!0},"Delete old dashboard",a.createElement(c(),{className:"btn-icon-base-r"})),a.createElement(d.z,{onClick:function(){m().f[2]++,m().s[4]++,localStorage.removeItem("neodash-dashboard"),m().s[5]++,i((0,u.L)(),l),m().s[6]++,r()},style:{marginRight:"6px"},color:"success",size:"large",floating:!0},"Upgrade",a.createElement(s(),{className:"btn-icon-base-r"}))),a.createElement(o.u,{style:{minHeight:"200px",width:"100%",border:"1px solid lightgray"},className:"textinput-linenumbers",onChange:function(){m().f[3]++},value:l?(m().b[0][0]++,l):(m().b[0][1]++,""),"aria-label":"",placeholder:""}))))};const b=f}}]);
//# sourceMappingURL=633.bundle.js.map