"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__, {
    renderFeedbackButton: ()=>renderFeedbackButton
});
const external_lit_namespaceObject = require("lit");
const multi_class_map_cjs_namespaceObject = require("../../../directives/multi-class-map.cjs");
const thumbs_cjs_namespaceObject = require("../../../images/thumbs.cjs");
var thumbs_cjs_default = /*#__PURE__*/ __webpack_require__.n(thumbs_cjs_namespaceObject);
const external_button_style_cjs_namespaceObject = require("../button-style.cjs");
require("../atomic-icon/atomic-icon.cjs");
const ripple_utils_cjs_namespaceObject = require("../../../utils/ripple-utils.cjs");
const renderFeedbackButton = ({ props })=>{
    const buttonStyle = 'text-transparent';
    const rippleColor = (0, external_button_style_cjs_namespaceObject.getRippleColorForButtonStyle)(buttonStyle);
    const baseClassName = (0, external_button_style_cjs_namespaceObject.getClassNameForButtonStyle)(buttonStyle);
    const classNames = (0, multi_class_map_cjs_namespaceObject.multiClassMap)((0, multi_class_map_cjs_namespaceObject.tw)({
        [baseClassName]: true,
        'feedback-button rounded-md p-2': true,
        'text-neutral-dark': !props.active,
        [props.variant]: true,
        active: props.active,
        'hover:text-success': 'like' === props.variant,
        'hover:text-error': 'dislike' === props.variant,
        'text-success': props.active && 'like' === props.variant,
        'text-error': props.active && 'dislike' === props.variant
    }));
    const iconClassNames = (0, multi_class_map_cjs_namespaceObject.multiClassMap)((0, multi_class_map_cjs_namespaceObject.tw)({
        'w-5': true,
        'rotate-180': 'dislike' === props.variant
    }));
    return (0, external_lit_namespaceObject.html)`<button
    type="button"
    title=${props.title}
    part="feedback-button"
    class=${classNames}
    aria-pressed=${props.active ? 'true' : 'false'}
    @mousedown=${(e)=>(0, ripple_utils_cjs_namespaceObject.createRipple)(e, {
            color: rippleColor
        })}
    @click=${props.onClick}
  >
    <atomic-icon class=${iconClassNames} .icon=${thumbs_cjs_default()}></atomic-icon>
  </button>`;
};
exports.renderFeedbackButton = __webpack_exports__.renderFeedbackButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderFeedbackButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
