"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./emoji-row-constants.cjs"),s=require("../../localization/index.cjs"),a=require("../../common/emoji/index.cjs"),c=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),m=require("../emoji-text-wrapper/emoji-text-wrapper.cjs"),l=require("../emoji/emoji.cjs"),_=require("../button/button.cjs"),d=require("../tooltip/tooltip.cjs"),p={name:"DtRecipeEmojiRow",components:{DtTooltip:d.default,DtButton:_.default,DtEmoji:l.default,DtEmojiTextWrapper:m.default},props:{reactions:{type:Array,default:()=>[],validator:i=>{for(const e of i)if(!n.REACTIONS_ATTRIBUTES.every(o=>e[o]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],data(){return{i18n:new s.DialtoneLocalization}},methods:{emojiClicked(i){this.$emit("emoji-clicked",i.emojiUnicodeOrShortname)},emojiHovered(i,e){this.$emit("emoji-hovered",{reaction:i.emojiUnicodeOrShortname,state:e})},reactionLabel(i){return this.i18n.$t("DIALTONE_EMOJI_ROW_REACTION_LABEL",{reaction:a.getEmojiShortCode(i.emojiUnicodeOrShortname),personCount:i.num})}}};var u=function(){var e=this,t=e._self._c;return t("span",{staticClass:"d-recipe-emoji-row"},[e._l(e.reactions,function(o){return t("span",{key:o.unicodeOutput},[t("dt-tooltip",{staticClass:"d-recipe-emoji-row__tooltip",attrs:{"content-class":"d-recipe-emoji-row__tooltip-content","fallback-placements":["top","bottom"],sticky:"popper"},on:{shown:r=>e.emojiHovered(o,r)},scopedSlots:e._u([{key:"anchor",fn:function({attrs:r}){return[t("dt-button",{class:["d-recipe-emoji-row__reaction",o.isSelected?"d-recipe-emoji-row__reaction--selected":""],attrs:{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button","aria-label":e.reactionLabel(o),attrs:r},on:{click:function(v){return e.emojiClicked(o)}}},[t("span",{staticClass:"d-recipe-emoji-row__emoji"},[t("dt-emoji",{staticClass:"d-recipe-emoji-row__emoji",attrs:{size:"200","img-class":"d-recipe-emoji-row__emoji-img",code:o.emojiUnicodeOrShortname}})],1),t("span",{staticClass:"d-recipe-emoji-row__reaction-number"},[e._v(" "+e._s(o.num)+" ")])])]}}],null,!0)},[t("span",{attrs:{"aria-hidden":"true"}},[t("dt-emoji-text-wrapper",{attrs:{size:"800"}},[t("p",{staticClass:"d-recipe-emoji-row__tooltip-emoji"},[e._v(" "+e._s(o.emojiUnicodeOrShortname)+" ")]),t("br"),t("p",{staticClass:"d-recipe-emoji-row__tooltip-names"},[e._v(" "+e._s(o.names)+" "),t("span",{staticClass:"d-recipe-emoji-row__tooltip-label",domProps:{textContent:e._s(e.reactionLabel(o))}})])])],1)])],1)}),e._t("picker")],2)},j=[],f=c.n(p,u,j);const b=f.exports;exports.default=b;
//# sourceMappingURL=emoji-row.cjs.map
