"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = (module)=>{
        var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    renderQueryErrorIcon: ()=>renderQueryErrorIcon
});
const external_lit_namespaceObject = require("lit");
const cannot_access_cjs_namespaceObject = require("../../../images/cannot-access.cjs");
var cannot_access_cjs_default = /*#__PURE__*/ __webpack_require__.n(cannot_access_cjs_namespaceObject);
const indexing_cjs_namespaceObject = require("../../../images/indexing.cjs");
var indexing_cjs_default = /*#__PURE__*/ __webpack_require__.n(indexing_cjs_namespaceObject);
const no_connection_cjs_namespaceObject = require("../../../images/no-connection.cjs");
var no_connection_cjs_default = /*#__PURE__*/ __webpack_require__.n(no_connection_cjs_namespaceObject);
const search_inactive_cjs_namespaceObject = require("../../../images/search-inactive.cjs");
var search_inactive_cjs_default = /*#__PURE__*/ __webpack_require__.n(search_inactive_cjs_namespaceObject);
const something_wrong_cjs_namespaceObject = require("../../../images/something-wrong.cjs");
var something_wrong_cjs_default = /*#__PURE__*/ __webpack_require__.n(something_wrong_cjs_namespaceObject);
require("../atomic-icon/atomic-icon.cjs");
const renderQueryErrorIcon = ({ props })=>{
    const getIconFromErrorType = ()=>{
        switch(props.errorType){
            case 'Disconnected':
                return no_connection_cjs_default();
            case 'NoEndpointsException':
                return indexing_cjs_default();
            case 'InvalidTokenException':
                return cannot_access_cjs_default();
            case 'OrganizationIsPausedException':
                return search_inactive_cjs_default();
            default:
                return something_wrong_cjs_default();
        }
    };
    return (0, external_lit_namespaceObject.html)`<atomic-icon
    part="icon"
    icon=${getIconFromErrorType()}
    class="w-1/2 max-w-lg"
  ></atomic-icon>`;
};
exports.renderQueryErrorIcon = __webpack_exports__.renderQueryErrorIcon;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderQueryErrorIcon"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
