1import{Fb as p,Ka as c,La as a,Nc as d,Pc as h,Qc as m,Vc as v,Wa as l,Wc as _,ac as s,cd as g,jd as w,kd as C,vd as n,wd as y}from"./chunk-WTJPMYBX.js";import{a as f,b as r}from"./chunk-P2LFKVMR.js";function P(e,u){if(e&1){let t=g();v(0,"span",1)(1,"span",2),w("animationend",function(){c(t);let i=C();return a(i.onParticleAnimationEnd())}),_()()}if(e&2){let t=u.$implicit;n("--fv-confetti-left",t.left,"px")("--fv-confetti-top",t.top,"px")("--fv-confetti-from-x",t.fromX,"px")("--fv-confetti-delay",t.delay,"ms"),p(),n("--fv-confetti-color",t.color)("--fv-confetti-width",t.width,"px")("--fv-confetti-height",t.height,"px")("--fv-confetti-rotation",t.rotation,"deg")("--fv-confetti-from-y",t.fromY,"px")("--fv-confetti-fall",t.fallDistance,"px")}}var E=192,S=28,I=[{color:"#fa3d3d",height:3,left:-7,rotation:-25,top:2,width:8},{color:"#ffc200",height:3,left:25,rotation:40,top:52,width:6},{color:"#2e87fa",height:3,left:60,rotation:-60,top:4,width:7},{color:"#33c759",height:5,left:100,rotation:-15,top:46,width:5},{color:"#fa59c7",height:3,left:131,rotation:30,top:2,width:8},{color:"#942efa",height:4,left:172,rotation:-50,top:36,width:6},{color:"#ff8c2e",height:3,left:197,rotation:60,top:16,width:7},{color:"#fa3d3d",height:5,left:234,rotation:-20,top:56,width:5},{color:"#ffc200",height:3,left:267,rotation:15,top:7,width:8},{color:"#2e87fa",height:4,left:301,rotation:-45,top:46,width:6},{color:"#33c759",height:3,left:327,rotation:35,top:21,width:7},{color:"#fa59c7",height:3,left:363,rotation:-70,top:48,width:6},{color:"#942efa",height:4,left:388,rotation:50,top:13,width:5},{color:"#ff8c2e",height:3,left:10,rotation:-35,top:31,width:7},{color:"#fa3d3d",height:3,left:159,rotation:55,top:61,width:6},{color:"#ffc200",height:3,left:262,rotation:-40,top:25,width:8},{color:"#2e87fa",height:5,left:384,rotation:20,top:43,width:5},{color:"#33c759",height:3,left:83,rotation:-65,top:23,width:6}],T=30,b=20,x=8,D=4,N=(()=>{class e{constructor(){this.particles=I.map((t,o)=>r(f({},t),{delay:o*T,fallDistance:b+o%D*x,fromX:E-t.left,fromY:S-t.top})),this.isDone=l(!1),this.#t=0}#t;onParticleAnimationEnd(){this.#t+=1,this.#t>=this.particles.length&&this.isDone.set(!0)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=s({type:e,selectors:[["app-wpf-cdl-promotion-confetti"]],hostVars:4,hostBindings:function(o,i){o&2&&y("fv-wpf-cdl-promotion-confetti--done",i.isDone())("fv-wpf-cdl-promotion-confetti",!0)},decls:2,vars:0,consts:[[1,"fv-wpf-cdl-promotion-confetti__particle",3,"--fv-confetti-left","--fv-confetti-top","--fv-confetti-from-x","--fv-confetti-delay"],[1,"fv-wpf-cdl-promotion-confetti__particle"],[1,"fv-wpf-cdl-promotion-confetti__piece",3,"animationend"]],template:function(o,i){o&1&&h(0,P,2,20,"span",0,d),o&2&&m(i.particles)},styles:[`[_nghost-%COMP%]{position:absolute;inset:0;z-index:1;display:block;overflow:hidden;pointer-events:none}@media(prefers-reduced-motion:reduce){[_nghost-%COMP%]{display:none}}.fv-wpf-cdl-promotion-confetti--done[_nghost-%COMP%]{display:none}.fv-wpf-cdl-promotion-confetti__particle[_ngcontent-%COMP%]{position:absolute;top:var(--fv-confetti-top);left:var(--fv-confetti-left);animation:_ngcontent-%COMP%_fv-confetti-drift .7s cubic-bezier(.1,.7,.3,1) var(--fv-confetti-delay) 2 both}.fv-wpf-cdl-promotion-confetti__piece[_ngcontent-%COMP%]{display:block;width:var(--fv-confetti-width);height:var(--fv-confetti-height);background-color:var(--fv-confetti-color);border-radius:.0625rem;opacity:0;animation:_ngcontent-%COMP%_fv-confetti-fall .7s linear var(--fv-confetti-delay) 2 both}@keyframes _ngcontent-%COMP%_fv-confetti-drift{0%{transform:translate(var(--fv-confetti-from-x))}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_fv-confetti-fall{0%{opacity:0;transform:translateY(var(--fv-confetti-from-y)) rotate(0) scale(.4);animation-timing-function:cubic-bezier(.2,.8,.4,1)}8%{opacity:1}50%{opacity:1;transform:translateY(0) rotate(var(--fv-confetti-rotation)) scale(1);animation-timing-function:cubic-bezier(.6,.05,.85,.5)}85%{opacity:1}to{opacity:0;transform:translateY(var(--fv-confetti-fall)) rotate(calc(var(--fv-confetti-rotation) + 80deg)) scale(1)}}
2/*# sourceMappingURL=wpf-cdl-promotion-confetti.component-3S7MZZF6.css.map */`],changeDetection:0})}}return e})();export{N as WpfCdlPromotionConfettiComponent}; 3//# sourceMappingURL=chunk-WEBDKU64.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.