import{t as b}from"./chunk-NTECMJTK.js";import{$a as g,Gc as p,Hc as d,Ic as z,Ob as v,Sb as h,Sc as l,Ub as a,Vb as O,Za as f,ed as P,nd as M,qd as k,sb as C,tb as r,uc as s,wc as x,zc as _}from"./chunk-NRAZ4AKM.js";var y=(()=>{let o=class o{constructor(i){this.elementRef=i,this.oroClickOutside=new r}onClick(i){this.elementRef.nativeElement.contains(i)||this.oroClickOutside.emit()}};o.\u0275fac=function(e){return new(e||o)(O(C))},o.\u0275dir=g({type:o,selectors:[["","oroClickOutside",""]],hostBindings:function(e,n){e&1&&l("click",function(c){return n.onClick(c.target)},!1,h)},outputs:{oroClickOutside:"oroClickOutside"},standalone:!0});let t=o;return t})();var T=(t,o)=>({"height.px":t,"width.px":o}),m=function(t){return t.LEFT="left",t.RIGHT="right",t.ABOVE="above",t.UNDER="under",t}(m||{}),G=(()=>{let o=class o{constructor(){this.position=m.RIGHT,this.description="Pre\u021Bul t\u0103iat este cel mai mic pre\u021B din ultimele 30 de zile, de la \xEEnceputul campaniei",this.size=16,this.indicatorSize=10,this.onClickAction=new r,this.TooltipPosition=m}ngOnInit(){document.documentElement.style.setProperty("--oro-tooltip-indicator-size",`${this.indicatorSize}px`),document.documentElement.style.setProperty("--oro-tooltip-box-size",`${this.size}px`)}toggleShowTooltip(i){i.stopPropagation(),this.showTooltip=!this.showTooltip,this.onClickAction.emit()}clickedOutside(){this.showTooltip&&(this.showTooltip=!1)}};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=f({type:o,selectors:[["oro-product-small-price-tooltip"]],inputs:{position:"position",description:"description",size:"size",indicatorSize:"indicatorSize"},outputs:{onClickAction:"onClickAction"},standalone:!0,features:[M],decls:4,vars:10,consts:[[1,"oro-tooltip",3,"oroClickOutside","click"],[1,"oro-tooltip-content",3,"ngStyle"],[3,"innerHTML"]],template:function(e,n){e&1&&(p(0,"div",0),l("oroClickOutside",function(){return n.clickedOutside()})("click",function(c){return n.toggleShowTooltip(c)}),p(1,"span",1),P(2,"i"),d(),z(3,"span",2),d()),e&2&&(x("oro-tooltip-active",n.showTooltip),a(),s("ngStyle",k(7,T,n.size,n.size)),a(2),_("oro-tooltip-text tooltip-",n.position,""),s("innerHTML",n.description,v))},dependencies:[b,y],styles:['[_ngcontent-%COMP%]:root{--oro-tooltip-box-size: 16px;--oro-tooltip-indicator-size: 8px}.oro-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block}.oro-tooltip-content[_ngcontent-%COMP%]{font-size:1rem;font-weight:400!important;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#666;color:#fff;cursor:pointer;width:var(--oro-tooltip-box-size);height:var(--oro-tooltip-box-size)}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:max-content;min-width:160px;max-width:260px;background-color:#000;color:#fff;text-align:left;border-radius:2px;padding:5px 5px 5px 10px;position:absolute;font-size:12px;z-index:1}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text[_ngcontent-%COMP%]:after{content:"";position:absolute;display:inline-block;margin-top:0;border-width:calc(var(--oro-tooltip-indicator-size) / 2);border-style:solid;border-color:black transparent transparent transparent}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-right[_ngcontent-%COMP%]{transform:translate(calc(var(--oro-tooltip-box-size) + var(--oro-tooltip-indicator-size))) translateY(calc(-50% - var(--oro-tooltip-box-size) / 2))}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-right[_ngcontent-%COMP%]:after{top:calc(50% - var(--oro-tooltip-indicator-size) / 2);transform:rotate(90deg);left:calc(var(--oro-tooltip-indicator-size) * -1)}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-above[_ngcontent-%COMP%]{transform:translateY(calc(-100% - var(--oro-tooltip-box-size) - var(--oro-tooltip-indicator-size))) translate(calc(-50% + var(--oro-tooltip-box-size) / 2))}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-above[_ngcontent-%COMP%]:after{left:calc(50% - var(--oro-tooltip-indicator-size) / 2);bottom:calc(var(--oro-tooltip-indicator-size) * -1)}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-left[_ngcontent-%COMP%]{transform:translateY(calc(-50% - var(--oro-tooltip-box-size) / 2)) translate(calc(-100% - var(--oro-tooltip-indicator-size)))}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-left[_ngcontent-%COMP%]:after{right:calc(var(--oro-tooltip-indicator-size) * -1);transform:rotate(-90deg);top:calc(50% - var(--oro-tooltip-indicator-size) / 2)}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-under[_ngcontent-%COMP%]{transform:translate(calc(-50% + var(--oro-tooltip-box-size) / 2)) translateY(var(--oro-tooltip-indicator-size))}.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text.tooltip-under[_ngcontent-%COMP%]:after{top:calc(var(--oro-tooltip-indicator-size) * -1);transform:rotate(180deg);left:calc(50% - var(--oro-tooltip-indicator-size) / 2)}.oro-tooltip-active[_ngcontent-%COMP%] .oro-tooltip-text[_ngcontent-%COMP%]{visibility:visible;opacity:1;transition:opacity .2s ease-in-out}.hidden[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 768px){.oro-tooltip[_ngcontent-%COMP%] .oro-tooltip-text[_ngcontent-%COMP%]{min-width:128px;max-width:208px;font-size:10.8px}}@keyframes _ngcontent-%COMP%_tooltipFadeIn{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion: reduce){.oro-tooltip-active[_ngcontent-%COMP%] .oro-tooltip-text[_ngcontent-%COMP%]{transition:none}}@media print{.oro-tooltip[_ngcontent-%COMP%]{display:none}}']});let t=o;return t})();export{m as a,G as b};