1"use strict";(self.webpackChunkpn229_emploistoreusager_angular=self.webpackChunkpn229_emploistoreusager_angular||[]).push([[451],{451:(u,i,r)=>{r.r(i),r.d(i,{Pea11yRating:()=>n});var s=r(1874);class n{constructor(){this.max=5,this.readonly=!1,this.classSelected="fas fa-star",this.classHover="fas fa-star",this.classEmpty="far fa-star",this.resultText=null,this.showText=!0}setValue(e){this.value=e,this.onPea11yRatingChange.emit(e)}setHoveredValue(e){this.hoveredValue=e,this.onPea11yRatingHover.emit(e)}componentWillLoad(){if(this.elementId=this.generateId("pea11y-rating"),this.textValues&&"string"==typeof this.textValues)this.textValues=this.textValues.split(",");else{let e=[];for(let t=0;t<=this.max;t++)e.push(t.toString());this.textValues=e}this.value?this.onPea11yRatingChange.emit(this.value):this.setValue(0),this.setHoveredValue(0)}onMouseOverElement(e){e.preventDefault(),this.setHoveredValue(parseInt(e.currentTarget.firstChild.value))}onClickOverElement(e){e.preventDefault(),this.setValue(parseInt(e.currentTarget.firstChild.value))}onMouseLeave(e){e.preventDefault(),this.setHoveredValue(0),this.onPea11yRatingLeave.emit(this.value)}renderElement(e){let t;return t=this.hoveredValue&&e<this.hoveredValue?this.classHover:this.value&&e<this.value?this.classSelected:this.classEmpty,t+=" pea11y-rating-checkmark",this.readonly?(0,s.h)("span",{class:t,"aria-hidden":"true"}):(0,s.h)("label",{htmlFor:this.elementId+"-"+e,onMouseOver:l=>this.onMouseOverElement(l),onClick:l=>this.onClickOverElement(l)},(0,s.h)("input",{type:"radio",id:this.elementId+"-"+e,name:this.elementId,value:e+1,checked:e+1===this.value}),(0,s.h)("span",{class:t,"aria-hidden":"true"}),(0,s.h)("span",{class:"sr-only"}," ",this.textValues[e+1]," "))}render(){if(this.label||this.labelledby){for(var e=[],t=0;t<this.max;t++)e.push(this.renderElement(t));if(this.readonly){let a=[];return this.label&&a.push((0,s.h)("span",{class:"sr-only"},this.label,":\xa0")),a.push(this.resultText?(0,s.h)("span",null,this.resultText,"\xa0",this.textValues[this.value]):(0,s.h)("span",this.showText?null:{class:"sr-only"},this.textValues[this.value])),a.push((0,s.h)("span",{class:"sr-only"},"\xa0(",this.value,"/",this.max,")")),[(0,s.h)("div",null,e),(0,s.h)("p",{class:"pea11y-rating-selection"},a)]}{let a=[];if(this.showText){let l=this.hoveredValue?this.hoveredValue:this.value;a.push(this.resultText?(0,s.h)("span",null,this.resultText,"\xa0",this.textValues[l]):(0,s.h)("span",null,this.textValues[l])),a.push((0,s.h)("span",{class:"sr-only"},"\xa0s\xe9lectionn\xe9"))}return[(0,s.h)("div",{id:this.elementId,role:"group",onMouseLeave:l=>this.onMouseLeave(l),"aria-label":this.label,"aria-labelledby":this.labelledby},e),(0,s.h)("p",{class:"pea11y-rating-selection"},a)]}}console.error("pea11y-rating: You need to specify either property 'label' or 'labelledby' to comply with accessibility standards.")}generateId(e){for(var t=0;document.getElementById(e+"-"+t);)t=Math.floor(Math.random()*Math.floor(1e4));return e+"-"+t}static get is(){return"pea11y-rating"}static get properties(){return{classEmpty:{type:String,attr:"class-empty"},classHover:{type:String,attr:"class-hover"},classSelected:{type:String,attr:"class-selected"},hoveredValue:{state:!0},label:{type:String,attr:"label"},labelledby:{type:String,attr:"labelledby"},max:{type:Number,attr:"max"},ratingElem:{elementRef:!0},readonly:{type:Boolean,attr:"readonly"},resultText:{type:String,attr:"result-text"},setValue:{method:!0},showText:{type:Boolean,attr:"show-text"},textValues:{type:"Any",attr:"text-values",mutable:!0},value:{type:Number,attr:"value",reflectToAttr:!0,mutable:!0}}}static get events(){return[{name:"onPea11yRatingChange",method:"onPea11yRatingChange",bubbles:!0,cancelable:!0,composed:!0},{name:"onPea11yRatingHover",method:"onPea11yRatingHover",bubbles:!0,cancelable:!0,composed:!0},{name:"onPea11yRatingLeave",method:"onPea11yRatingLeave",bubbles:!0,cancelable:!0,composed:!0}]}static get style(){return"pea11y-rating .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}pea11y-rating label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}pea11y-rating input[type=radio]{position:fixed;opacity:0;height:0;width:0}pea11y-rating .pea11y-rating-input,pea11y-rating div{display:inline}pea11y-rating input:focus~.pea11y-rating-checkmark{outline:2px solid #4d90fe;outline:5px auto -webkit-focus-ring-color}"}}}}]);
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.