"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[1406],{31405:(e,t,s)=>{s.d(t,{n:()=>n}),s(67294);var r=s(11965);const n=()=>(0,r.tZ)(r.xB,{styles:e=>r.iv`
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      strong,
      th {
        font-weight: ${e.typography.weights.bold};
      }
    `})},25422:(e,t,s)=>{s.d(t,{Z:()=>R});var r=s(5872),n=s.n(r),a=s(67294),l=s(61988),i=s(58552),u=s(91178),o=s(11965);const R=function({error:e,source:t="dashboard",subtitle:s}){const{extra:r,level:R,message:g}=e,c=["dashboard","explore"].includes(t),_=r&&(0,o.tZ)(a.Fragment,null,(0,o.tZ)("p",null,(0,l.t)("This may be triggered by:"),(0,o.tZ)("br",null),r.issue_codes.map((e=>(0,o.tZ)(i.Z,n()({},e,{key:e.code})))).reduce(((e,t)=>[e,(0,o.tZ)("br",null),t]))),c&&r.owners&&(0,o.tZ)(a.Fragment,null,(0,o.tZ)("br",null),(0,o.tZ)("p",null,(0,l.tn)("Please reach out to the Chart Owner for assistance.","Please reach out to the Chart Owners for assistance.",r.owners.length)),(0,o.tZ)("p",null,(0,l.tn)("Chart Owner: %s","Chart Owners: %s",r.owners.length,r.owners.join(", "))))),E=r&&r.issue_codes?(0,l.t)("%(message)s\nThis may be triggered by: \n%(issues)s",{message:g,issues:r.issue_codes.map((e=>e.message)).join("\n")}):g;return(0,o.tZ)(u.Z,{title:(0,l.t)("%s Error",r&&r.engine_name||(0,l.t)("DB engine")),subtitle:s,level:R,source:t,copyText:E,body:_})}},41189:(e,t,s)=>{s.d(t,{Z:()=>l}),s(67294);var r=s(61988),n=s(91178),a=s(11965);const l=function({error:e,source:t="dashboard",subtitle:s}){const{level:l,message:i}=e;return(0,a.tZ)(n.Z,{title:(0,r.t)("Missing dataset"),subtitle:s,level:l,source:t,copyText:i,body:null})}},58552:(e,t,s)=>{s.d(t,{Z:()=>a});var r=s(67294),n=s(11965);function a({code:e,message:t}){return(0,n.tZ)(r.Fragment,null,t," ",(0,n.tZ)("a",{href:`https://superset.apache.org/docs/miscellaneous/issue-codes#issue-${e}`,rel:"noopener noreferrer",target:"_blank"},(0,n.tZ)("i",{className:"fa fa-external-link"})))}},15161:(e,t,s)=>{s.d(t,{Z:()=>R});var r=s(67294),n=s(61988),a=s(39991),l=s.n(a),i=s(58552),u=s(91178),o=s(11965);const R=function({error:e,source:t="sqllab",subtitle:s}){const{extra:a={issue_codes:[]},level:R,message:g}=e,c=(0,n.tn)("This was triggered by:","This may be triggered by:",a.issue_codes.length),_=((e,t)=>{const s={};return e.forEach((e=>{t.forEach((t=>{l()(e,t)<=2&&(s[e]||(s[e]=[]),s[e].push(`"${t}"`))}))})),s})(a.undefined_parameters||[],Object.keys(a.template_parameters||{})),E=(0,o.tZ)(r.Fragment,null,(0,o.tZ)("p",null,Object.keys(_).length>0&&(0,o.tZ)(r.Fragment,null,(0,o.tZ)("p",null,(0,n.t)("Did you mean:")),(0,o.tZ)("ul",null,Object.entries(_).map((([e,t])=>(0,o.tZ)("li",null,(0,n.tn)('%(suggestion)s instead of "%(undefinedParameter)s?"','%(firstSuggestions)s or %(lastSuggestion)s instead of "%(undefinedParameter)s"?',t.length,{suggestion:t.join(", "),firstSuggestions:t.slice(0,-1).join(", "),lastSuggestion:t[t.length-1],undefinedParameter:e}))))),(0,o.tZ)("br",null)),c,(0,o.tZ)("br",null),a.issue_codes.length>0&&a.issue_codes.map((e=>(0,o.tZ)(i.Z,e))).reduce(((e,t)=>[e,(0,o.tZ)("br",null),t])))),O=`${g}\n${c}\n${a.issue_codes.map((e=>e.message)).join("\n")}`;return(0,o.tZ)(u.Z,{title:(0,n.t)("Parameter error"),subtitle:s,level:R,source:t,copyText:O,body:E})}},18951:(e,t,s)=>{s.d(t,{Z:()=>u});var r=s(67294),n=s(61988),a=s(58552),l=s(91178),i=s(11965);const u=function({error:e,source:t}){const{extra:s,level:u}=e,o=["dashboard","explore"].includes(t),R=o?(0,n.tn)("We’re having trouble loading this visualization. Queries are set to timeout after %s second.","We’re having trouble loading this visualization. Queries are set to timeout after %s seconds.",s.timeout,s.timeout):(0,n.tn)("We’re having trouble loading these results. Queries are set to timeout after %s second.","We’re having trouble loading these results. Queries are set to timeout after %s seconds.",s.timeout,s.timeout),g=(0,i.tZ)(r.Fragment,null,(0,i.tZ)("p",null,(0,n.t)("This may be triggered by:"),(0,i.tZ)("br",null),s.issue_codes.map((e=>(0,i.tZ)(a.Z,e))).reduce(((e,t)=>[e,(0,i.tZ)("br",null),t]))),o&&s.owners&&(0,i.tZ)(r.Fragment,null,(0,i.tZ)("br",null),(0,i.tZ)("p",null,(0,n.tn)("Please reach out to the Chart Owner for assistance.","Please reach out to the Chart Owners for assistance.",s.owners.length)),(0,i.tZ)("p",null,(0,n.tn)("Chart Owner: %s","Chart Owners: %s",s.owners.length,s.owners.join(", "))))),c=(0,n.t)("%(subtitle)s\nThis may be triggered by:\n %(issue)s",{subtitle:R,issue:s.issue_codes.map((e=>e.message)).join("\n")});return(0,i.tZ)(l.Z,{title:(0,n.t)("Timeout error"),subtitle:R,level:u,source:t,copyText:c,body:g})}},65286:(e,t,s)=>{s.d(t,{Z:()=>u});var r=s(19755),n=s.n(r),a=s(31069),l=s(98286),i=s(78496);function u(){n()(document).ready((function(){n()(":checkbox[data-checkbox-api-prefix]").change((function(){const e=n()(this);var t,s;t=e.data("checkbox-api-prefix"),s=`#${e.attr("id")}`,a.Z.get({endpoint:t+n()(s)[0].checked}).then((()=>{})).catch((e=>(0,l.O)(e).then((e=>{e&&e.message&&function(e){const t=e.severity||"info";n()('<div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button> </div>').addClass(`alert-${t}`).append(e.message||"").appendTo(n()("#alert-container"))}(e)}))))})),n()("#language-picker a").click((function(e){e.preventDefault(),a.Z.get({url:e.currentTarget.href,parseMethod:null}).then((()=>{window.location.reload()}))}))})),window.$=n(),window.jQuery=n(),s(57915),(0,i.Z)()}},78496:(e,t,s)=>{s.d(t,{Z:()=>R});var r=s(92869),n=s(67663),a=s(18951),l=s(25422),i=s(15161),u=s(41189),o=s(84412);function R(){const e=(0,r.Z)();e.registerValue(n.C.FRONTEND_TIMEOUT_ERROR,a.Z),e.registerValue(n.C.BACKEND_TIMEOUT_ERROR,a.Z),e.registerValue(n.C.DATABASE_NOT_FOUND_ERROR,l.Z),e.registerValue(n.C.GENERIC_DB_ENGINE_ERROR,l.Z),e.registerValue(n.C.GENERIC_BACKEND_ERROR,l.Z),e.registerValue(n.C.COLUMN_DOES_NOT_EXIST_ERROR,l.Z),e.registerValue(n.C.TABLE_DOES_NOT_EXIST_ERROR,l.Z),e.registerValue(n.C.MISSING_TEMPLATE_PARAMS_ERROR,i.Z),e.registerValue(n.C.INVALID_TEMPLATE_PARAMS_ERROR,i.Z),e.registerValue(n.C.RESULTS_BACKEND_NOT_CONFIGURED_ERROR,l.Z),e.registerValue(n.C.DML_NOT_ALLOWED_ERROR,l.Z),e.registerValue(n.C.INVALID_CTAS_QUERY_ERROR,l.Z),e.registerValue(n.C.INVALID_CVAS_QUERY_ERROR,l.Z),e.registerValue(n.C.QUERY_SECURITY_ACCESS_ERROR,l.Z),e.registerValue(n.C.CONNECTION_INVALID_HOSTNAME_ERROR,l.Z),e.registerValue(n.C.RESULTS_BACKEND_ERROR,l.Z),e.registerValue(n.C.ASYNC_WORKERS_ERROR,l.Z),e.registerValue(n.C.SQLLAB_TIMEOUT_ERROR,l.Z),e.registerValue(n.C.CONNECTION_PORT_CLOSED_ERROR,l.Z),e.registerValue(n.C.CONNECTION_HOST_DOWN_ERROR,l.Z),e.registerValue(n.C.CONNECTION_INVALID_USERNAME_ERROR,l.Z),e.registerValue(n.C.CONNECTION_INVALID_PASSWORD_ERROR,l.Z),e.registerValue(n.C.CONNECTION_ACCESS_DENIED_ERROR,l.Z),e.registerValue(n.C.CONNECTION_UNKNOWN_DATABASE_ERROR,l.Z),e.registerValue(n.C.SCHEMA_DOES_NOT_EXIST_ERROR,l.Z),e.registerValue(n.C.OBJECT_DOES_NOT_EXIST_ERROR,l.Z),e.registerValue(n.C.SYNTAX_ERROR,l.Z),e.registerValue(n.C.CONNECTION_DATABASE_PERMISSIONS_ERROR,l.Z),e.registerValue(n.C.FAILED_FETCHING_DATASOURCE_INFO_ERROR,u.Z),(0,o.Z)()}},84412:(e,t,s)=>{function r(){}s.d(t,{Z:()=>r})}}]);