1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["default-node_modules_primeng___ivy_ngcc___fesm2015_primeng-colorpicker_js-node_modules_primen-f372b7"],{95029:(w,b,h)=>{h.d(b,{e4:()=>B,zH:()=>y});var t=h(94650),p=h(37340),f=h(36895),g=h(98606),k=h(24006);const l=["colorSelector"],v=["colorHandle"],r=["hue"],_=["hueHandle"],C=["container"],m=["input"],x=function(s){return{"p-disabled":s}};function H(s,a){if(1&s){const e=t.EpF();t.TgZ(0,"input",4,5),t.NdJ("focus",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.onInputFocus())})("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.onInputClick())})("keydown",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onInputKeydown(o))}),t.qZA()}if(2&s){const e=t.oxw();t.Udp("background-color",e.inputBgColor),t.Q6J("ngClass",t.VKq(6,x,e.disabled))("disabled",e.disabled),t.uIk("id",e.inputId)("tabindex",e.tabindex)}}const T=function(s,a){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":s,"p-disabled":a}},E=function(s,a){return{showTransitionParams:s,hideTransitionParams:a}},D=function(s){return{value:"visible",params:s}};function S(s,a){if(1&s){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.onPanelClick())})("@overlayAnimation.start",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onOverlayAnimationEnd(o))}),t.TgZ(1,"div",7)(2,"div",8,9),t.NdJ("touchstart",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onColorTouchStart(o))})("touchmove",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onMove(o))})("touchend",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.onDragEnd())})("mousedown",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onColorMousedown(o))}),t.TgZ(4,"div",10),t._UZ(5,"div",11,12),t.qZA()(),t.TgZ(7,"div",13,14),t.NdJ("mousedown",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onHueMousedown(o))})("touchstart",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onHueTouchStart(o))})("touchmove",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.onMove(o))})("touchend",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.onDragEnd())}),t._UZ(9,"div",15,16),t.qZA()()()}if(2&s){const e=t.oxw();t.Q6J("ngClass",t.WLB(3,T,!e.inline,e.disabled))("@overlayAnimation",t.VKq(9,D,t.WLB(6,E,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline)}}const L=function(s,a){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":s,"p-colorpicker-dragging":a}},P={provide:k.JU,useExisting:(0,t.Gpc)(()=>y),multi:!0};let y=(()=>{class s{constructor(e,i,o){this.el=e,this.renderer=i,this.cd=o,this.format="hex",this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onChange=new t.vpe,this.onShow=new t.vpe,this.onHide=new t.vpe,this.value={h:0,s:100,b:100},this.defaultColor="ff0000",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueTouchStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e))}onColorTouchStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e))}pickHue(e){let i=this.hueViewChild.nativeElement.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-i)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onMove(e){this.colorDragging&&(this.pickColor(e),e.preventDefault()),this.hueDragging&&(this.pickHue(e),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e){let i=this.colorSelectorViewChild.nativeElement.getBoundingClientRect(),o=i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),n=i.left+document.body.scrollLeft,c=Math.floor(100*Math.max(0,Math.min(150,(e.pageX||e.changedTouches[0].pageX)-n))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-o)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inl
1ine||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&(this.overlay.style.zIndex=String(this.baseZIndex+ ++g.p.zindex)),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):g.p.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.appendTo?g.p.absolutePosition(this.overlay,this.inputViewChild.nativeElement):g.p.relativePosition(this.overlay,this.inputViewChild.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.which){case 32:this.togglePanel(),e.preventDefault();break;case 27:case 9:this.hide()}}onPanelClick(){this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",i=>{this.colorDragging&&this.pickColor(i),this.hueDragging&&this.pickHue(i)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new g.V(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var i=6-e.length;if(i>0){for(var o=[],n=0;n<i;n++)o.push("0");o.push(e),e=o.join("")}return e}HEXtoRGB(e){let i=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:i>>16,g:(65280&i)>>8,b:255&i}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),n=Math.max(e.r,e.g,e.b),c=n-o;return i.b=n,i.s=0!=n?255*c/n:0,i.h=0!=i.s?e.r==n?(e.g-e.b)/c:e.g==n?2+(e.b-e.r)/c:4+(e.r-e.g)/c:-1,i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i}HSBtoRGB(e){var i={r:null,g:null,b:null};let o=e.h,n=255*e.s/100,c=255*e.b/100;if(0==n)i={r:c,g:c,b:c};else{let u=c,d=(255-n)*c/255,M=o%60*(u-d)/60;360==o&&(o=0),o<60?(i.r=u,i.b=d,i.g=d+M):o<120?(i.g=u,i.b=d,i.r=u-M):o<180?(i.g=u,i.r=d,i.b=d+M):o<240?(i.b=u,i.r=d,i.g=u-M):o<300?(i.b=u,i.g=d,i.r=d+M):o<360?(i.r=u,i.g=d,i.b=u-M):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}}RGBtoHEX(e){var i=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var o in i)1==i[o].length&&(i[o]="0"+i[o]);return i.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.restoreOverlayAppend(),this.onOverlayHide()}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO))},s.\u0275cmp=t.Xpm({type:s,selectors:[["p-colorPicker"]],viewQuery:function(e,i){if(1&e&&(t.Gf(l,5),t.Gf(v,5),t.Gf(r,5),t.Gf(_,5),t.Gf(C,5),t.Gf(m,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.colorSelector=o.first),t.iGM(o=t.CRH())&&(i.colorHandle=o.first),t.iGM(o=t.CRH())&&(i.hue=o.first),t.iGM(o=t.CRH())&&(i.hueHandle=o.first),t.iGM(o=t.CRH())&&(i.containerViewChild=o.first),t.iGM(o=t.CRH())&&(i.inputVie
1wChild=o.first)}},inputs:{format:"format",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",disabled:"disabled",style:"style",styleClass:"styleClass",inline:"inline",appendTo:"appendTo",tabindex:"tabindex",inputId:"inputId"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[t._Bn([P])],decls:4,vars:9,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","focus","click","keydown",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","focus","click","keydown"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0,1),t.YNc(2,H,2,8,"input",2),t.YNc(3,S,11,11,"div",3),t.qZA()),2&e&&(t.Tol(i.styleClass),t.Q6J("ngStyle",i.style)("ngClass",t.WLB(6,L,!i.inline,i.colorDragging||i.hueDragging)),t.xp6(2),t.Q6J("ngIf",!i.inline),t.xp6(1),t.Q6J("ngIf",i.inline||i.overlayVisible))},dependencies:[f.mk,f.O5,f.PC],styles:[".p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{height:166px;position:relative;width:193px}.p-colorpicker-overlay-panel{position:absolute}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{height:150px;left:8px;position:absolute;top:8px;width:150px}.p-colorpicker-panel .p-colorpicker-color{height:150px;width:150px}.p-colorpicker-panel .p-colorpicker-color-handle{border-radius:100%;border-style:solid;border-width:1px;cursor:pointer;height:10px;left:150px;margin:-5px 0 0 -5px;opacity:.85;position:absolute;top:0;width:10px}.p-colorpicker-panel .p-colorpicker-hue{height:150px;left:167px;opacity:.85;position:absolute;top:8px;width:17px}.p-colorpicker-panel .p-colorpicker-hue-handle{border-style:solid;border-width:2px;cursor:pointer;height:10px;left:0;margin-left:-2px;margin-top:-5px;opacity:.85;position:absolute;top:150px;width:21px}"],encapsulation:2,data:{animation:[(0,p.X$)("overlayAnimation",[(0,p.eR)(":enter",[(0,p.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,p.jt)("{{showTransitionParams}}")]),(0,p.eR)(":leave",[(0,p.jt)("{{hideTransitionParams}}",(0,p.oB)({opacity:0}))])])]},changeDetection:0}),s})(),B=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[f.ez]}),s})()},74146:(w,b,h)=>{h.d(b,{A:()=>k,g:()=>g});var t=h(94650),p=h(36895),f=h(24006);let g=(()=>{class l{constructor(r,_,C,m){this.el=r,this.ngModel=_,this.control=C,this.cd=m,this.onResize=new t.vpe}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(r){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}onFocus(r){this.autoResize&&this.resize(r)}onBlur(r){this.autoResize&&this.resize(r)}resize(r){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(r||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return l.\u0275fac=function(r){return new(r||l)(t.Y36(t.SBq),t.Y36(f.On,8),t.Y36(f.a5,8),t.Y36(t.sBO))},l.\u0275dir=t.lG2({type:l,selectors:[["","pInputTextarea",""]],hostVars:10,hostBindings:function(r,_){1&r&&t.NdJ("input",function(m){return _.onInput(m)})("focus",function(m){return _.onFocus(m)})("blur",function(m){return _.onBlur(m)}),2&r&&t.ekj("p-inputtextarea",!0)("p-inputtext",!0)("p-component",!0)("p-filled",_.filled)("p-inputtextarea-resizable",_.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),l})(),k=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[p.ez]}),l})()}}]);
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.