"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__, {
    CheckboxInput: ()=>CheckboxInput,
    NumberInput: ()=>NumberInput,
    FieldError: ()=>FieldError,
    SectionTitle: ()=>SectionTitle,
    TextArea: ()=>TextArea,
    CheckboxHelpText: ()=>CheckboxHelpText,
    SelectInput: ()=>SelectInput,
    FieldContainer: ()=>FieldContainer,
    CheckboxContainer: ()=>CheckboxContainer,
    FieldHelpText: ()=>FieldHelpText,
    ConfigSection: ()=>ConfigSection,
    TextInput: ()=>TextInput,
    FieldLabel: ()=>FieldLabel,
    InputWrapper: ()=>InputWrapper,
    InputSuffix: ()=>InputSuffix,
    CheckboxLabel: ()=>CheckboxLabel
});
const styled_namespaceObject = require("@emotion/styled");
var styled_default = /*#__PURE__*/ __webpack_require__.n(styled_namespaceObject);
const ConfigSection = styled_default().div`
  padding: 16px;
  border-bottom: 1px solid var(--canvas-border-de-emp);

  &:last-child {
    border-bottom: none;
  }
`;
const SectionTitle = styled_default().div`
  font-weight: 500;
  font-size: 14px;
  color: var(--canvas-foreground);
  margin-bottom: 8px;
`;
const FieldContainer = styled_default().div`
  margin-bottom: 8px;

  &:last-child {
    margin-bottom: 0;
  }
`;
const FieldLabel = styled_default().label`
  font-size: 14px;
  color: var(--canvas-foreground-de-emp);
  display: block;
  margin-bottom: 4px;
`;
const FieldHelpText = styled_default().span`
  font-size: 12px;
  color: var(--canvas-foreground-de-emp);
  display: block;
  margin-top: 4px;
`;
const FieldError = styled_default().span`
  font-size: 12px;
  color: var(--canvas-error);
  display: block;
  margin-top: 4px;
`;
const TextInput = styled_default().input`
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid
    ${(props)=>props.hasError ? 'var(--canvas-error)' : 'var(--canvas-border)'};
  border-radius: 4px;
  background-color: var(--canvas-background);
  color: var(--canvas-foreground);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;

  &:focus {
    border-color: var(--canvas-primary);
    box-shadow: 0 0 0 2px var(--canvas-primary-alpha-20);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
`;
const TextArea = styled_default().textarea`
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid
    ${(props)=>props.hasError ? 'var(--canvas-error)' : 'var(--canvas-border)'};
  border-radius: 4px;
  background-color: var(--canvas-background);
  color: var(--canvas-foreground);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  resize: vertical;

  &:focus {
    border-color: var(--canvas-primary);
    box-shadow: 0 0 0 2px var(--canvas-primary-alpha-20);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
`;
const SelectInput = styled_default().select`
  width: 100%;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid
    ${(props)=>props.hasError ? 'var(--canvas-error)' : 'var(--canvas-border)'};
  border-radius: 4px;
  background-color: var(--canvas-background);
  color: var(--canvas-foreground);
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;

  &:focus {
    border-color: var(--canvas-primary);
    box-shadow: 0 0 0 2px var(--canvas-primary-alpha-20);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
`;
const NumberInput = styled_default().input`
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid
    ${(props)=>props.hasError ? 'var(--canvas-error)' : 'var(--canvas-border)'};
  border-radius: 4px;
  background-color: var(--canvas-background);
  color: var(--canvas-foreground);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;

  &:focus {
    border-color: var(--canvas-primary);
    box-shadow: 0 0 0 2px var(--canvas-primary-alpha-20);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Hide spinner buttons in some browsers */
  &::-webkit-inner-spin-button,
  &::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
`;
const CheckboxContainer = styled_default().div`
  padding: 8px 0;
  border-radius: 4px;
  transition: background-color 0.2s;

  &:hover {
    background-color: var(--canvas-background-hover);
  }
`;
const CheckboxLabel = styled_default().label`
  font-size: 14px;
  color: var(--canvas-foreground);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
`;
const CheckboxInput = styled_default().input`
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: var(--canvas-primary);
`;
const CheckboxHelpText = styled_default().span`
  font-size: 12px;
  color: var(--canvas-foreground-de-emp);
  margin-left: 26px;
  display: block;
`;
const InputWrapper = styled_default().div`
  display: flex;
  align-items: center;
  gap: 8px;
`;
const InputSuffix = styled_default().span`
  color: var(--canvas-foreground-de-emp);
  font-size: 14px;
  white-space: nowrap;
`;
exports.CheckboxContainer = __webpack_exports__.CheckboxContainer;
exports.CheckboxHelpText = __webpack_exports__.CheckboxHelpText;
exports.CheckboxInput = __webpack_exports__.CheckboxInput;
exports.CheckboxLabel = __webpack_exports__.CheckboxLabel;
exports.ConfigSection = __webpack_exports__.ConfigSection;
exports.FieldContainer = __webpack_exports__.FieldContainer;
exports.FieldError = __webpack_exports__.FieldError;
exports.FieldHelpText = __webpack_exports__.FieldHelpText;
exports.FieldLabel = __webpack_exports__.FieldLabel;
exports.InputSuffix = __webpack_exports__.InputSuffix;
exports.InputWrapper = __webpack_exports__.InputWrapper;
exports.NumberInput = __webpack_exports__.NumberInput;
exports.SectionTitle = __webpack_exports__.SectionTitle;
exports.SelectInput = __webpack_exports__.SelectInput;
exports.TextArea = __webpack_exports__.TextArea;
exports.TextInput = __webpack_exports__.TextInput;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "CheckboxContainer",
    "CheckboxHelpText",
    "CheckboxInput",
    "CheckboxLabel",
    "ConfigSection",
    "FieldContainer",
    "FieldError",
    "FieldHelpText",
    "FieldLabel",
    "InputSuffix",
    "InputWrapper",
    "NumberInput",
    "SectionTitle",
    "SelectInput",
    "TextArea",
    "TextInput"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
