Your IP : 216.73.216.187


Current Path : /home/exhehbu/wp/wp-content/plugins/complianz-gdpr/settings/build/
Upload File :
Current File : /home/exhehbu/wp/wp-content/plugins/complianz-gdpr/settings/build/4208.3b36169e9ee748438ea6.js

"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[4208],{76860:(e,n,t)=>{t.d(n,{s:()=>u});var r=t(51280),o=t(81034),a=t(40304),c=t(84904);const u=e=>{const{present:n,children:t}=e,u=function(e){const[n,t]=(0,r.useState)(),a=(0,r.useRef)({}),u=(0,r.useRef)(e),i=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[l,f]=function(e,n){return(0,r.useReducer)(((e,t)=>{const r=n[e][t];return null!=r?r:e}),e)}(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,r.useEffect)((()=>{const e=s(a.current);i.current="mounted"===l?e:"none"}),[l]),(0,c.w)((()=>{const n=a.current,t=u.current;if(t!==e){const r=i.current,o=s(n);e?f("MOUNT"):"none"===o||"none"===(null==n?void 0:n.display)?f("UNMOUNT"):f(t&&r!==o?"ANIMATION_OUT":"UNMOUNT"),u.current=e}}),[e,f]),(0,c.w)((()=>{if(n){const e=e=>{const t=s(a.current).includes(e.animationName);e.target===n&&t&&(0,o.flushSync)((()=>f("ANIMATION_END")))},t=e=>{e.target===n&&(i.current=s(a.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[n,f]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,r.useCallback)((e=>{e&&(a.current=getComputedStyle(e)),t(e)}),[])}}(n),i="function"==typeof t?t({present:u.isPresent}):r.Children.only(t),d=(0,a.q)(u.ref,i.ref);return"function"==typeof t||u.isPresent?(0,r.cloneElement)(i,{ref:d}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},1828:(e,n,t)=>{t.d(n,{wH:()=>$,iY:()=>Z,Ss:()=>Q});var r=t(45072),o=t(51280),a=t(3608),c=t(40304),u=t(59016),s=t(61480),i=t(35480),d=t(71340),l=t(82600),f=t(84664),p=t(44072);const m="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[E,w,h]=(0,i.o)(b),[R,g]=(0,u._)(b,[h]),[k,I]=R(b),y=(0,o.forwardRef)(((e,n)=>(0,o.createElement)(E.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(E.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(T,(0,r.c)({},e,{ref:n})))))),T=(0,o.forwardRef)(((e,n)=>{const{__scopeRovingFocusGroup:t,orientation:u,loop:i=!1,dir:d,currentTabStopId:b,defaultCurrentTabStopId:E,onCurrentTabStopIdChange:h,onEntryFocus:R,...g}=e,I=(0,o.useRef)(null),y=(0,c.q)(n,I),T=(0,p.cz)(d),[A=null,_]=(0,f.W)({prop:b,defaultProp:E,onChange:h}),[N,F]=(0,o.useState)(!1),S=(0,l.Y)(R),D=w(t),K=(0,o.useRef)(!1),[L,M]=(0,o.useState)(0);return(0,o.useEffect)((()=>{const e=I.current;if(e)return e.addEventListener(m,S),()=>e.removeEventListener(m,S)}),[S]),(0,o.createElement)(k,{scope:t,orientation:u,dir:T,loop:i,currentTabStopId:A,onItemFocus:(0,o.useCallback)((e=>_(e)),[_]),onItemShiftTab:(0,o.useCallback)((()=>F(!0)),[]),onFocusableItemAdd:(0,o.useCallback)((()=>M((e=>e+1))),[]),onFocusableItemRemove:(0,o.useCallback)((()=>M((e=>e-1))),[])},(0,o.createElement)(s.K0.div,(0,r.c)({tabIndex:N||0===L?-1:0,"data-orientation":u},g,{ref:y,style:{outline:"none",...e.style},onMouseDown:(0,a.K)(e.onMouseDown,(()=>{K.current=!0})),onFocus:(0,a.K)(e.onFocus,(e=>{const n=!K.current;if(e.target===e.currentTarget&&n&&!N){const n=new CustomEvent(m,v);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){const e=D().filter((e=>e.focusable));C([e.find((e=>e.active)),e.find((e=>e.id===A)),...e].filter(Boolean).map((e=>e.ref.current)))}}K.current=!1})),onBlur:(0,a.K)(e.onBlur,(()=>F(!1)))})))})),A=(0,o.forwardRef)(((e,n)=>{const{__scopeRovingFocusGroup:t,focusable:c=!0,active:u=!1,tabStopId:i,...l}=e,f=(0,d.I)(),p=i||f,m=I("RovingFocusGroupItem",t),v=m.currentTabStopId===p,b=w(t),{onFocusableItemAdd:h,onFocusableItemRemove:R}=m;return(0,o.useEffect)((()=>{if(c)return h(),()=>R()}),[c,h,R]),(0,o.createElement)(E.ItemSlot,{scope:t,id:p,focusable:c,active:u},(0,o.createElement)(s.K0.span,(0,r.c)({tabIndex:v?0:-1,"data-orientation":m.orientation},l,{ref:n,onMouseDown:(0,a.K)(e.onMouseDown,(e=>{c?m.onItemFocus(p):e.preventDefault()})),onFocus:(0,a.K)(e.onFocus,(()=>m.onItemFocus(p))),onKeyDown:(0,a.K)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;const n=function(e,n,t){const r=function(e,n){return"rtl"!==n?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,t);return"vertical"===n&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===n&&["ArrowUp","ArrowDown"].includes(r)?void 0:_[r]}(e,m.orientation,m.dir);if(void 0!==n){e.preventDefault();let o=b().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===n)o.reverse();else if("prev"===n||"next"===n){"prev"===n&&o.reverse();const a=o.indexOf(e.currentTarget);o=m.loop?(r=a+1,(t=o).map(((e,n)=>t[(r+n)%t.length]))):o.slice(a+1)}setTimeout((()=>C(o)))}var t,r}))})))})),_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}const N=y,F=A;var S=t(15920),D=t(37408),K=t(76860);const L="Radio",[M,O]=(0,u._)(L),[U,P]=M(L),G=(0,o.forwardRef)(((e,n)=>{const{__scopeRadio:t,name:u,checked:i=!1,required:d,disabled:l,value:f="on",onCheck:p,...m}=e,[v,b]=(0,o.useState)(null),E=(0,c.q)(n,(e=>b(e))),w=(0,o.useRef)(!1),h=!v||Boolean(v.closest("form"));return(0,o.createElement)(U,{scope:t,checked:i,disabled:l},(0,o.createElement)(s.K0.button,(0,r.c)({type:"button",role:"radio","aria-checked":i,"data-state":z(i),"data-disabled":l?"":void 0,disabled:l,value:f},m,{ref:E,onClick:(0,a.K)(e.onClick,(e=>{i||null==p||p(),h&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())}))})),h&&(0,o.createElement)(x,{control:v,bubbles:!w.current,name:u,value:f,checked:i,required:d,disabled:l,style:{transform:"translateX(-100%)"}}))})),q=(0,o.forwardRef)(((e,n)=>{const{__scopeRadio:t,forceMount:a,...c}=e,u=P("RadioIndicator",t);return(0,o.createElement)(K.s,{present:a||u.checked},(0,o.createElement)(s.K0.span,(0,r.c)({"data-state":z(u.checked),"data-disabled":u.disabled?"":void 0},c,{ref:n})))})),x=e=>{const{control:n,checked:t,bubbles:a=!0,...c}=e,u=(0,o.useRef)(null),s=(0,D.i)(t),i=(0,S.k)(n);return(0,o.useEffect)((()=>{const e=u.current,n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,"checked").set;if(s!==t&&r){const n=new Event("click",{bubbles:a});r.call(e,t),e.dispatchEvent(n)}}),[s,t,a]),(0,o.createElement)("input",(0,r.c)({type:"radio","aria-hidden":!0,defaultChecked:t},c,{tabIndex:-1,ref:u,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function z(e){return e?"checked":"unchecked"}const B=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],V="RadioGroup",[H,W]=(0,u._)(V,[g,O]),Y=g(),j=O(),[X,J]=H(V),Q=(0,o.forwardRef)(((e,n)=>{const{__scopeRadioGroup:t,name:a,defaultValue:c,value:u,required:i=!1,disabled:d=!1,orientation:l,dir:m,loop:v=!0,onValueChange:b,...E}=e,w=Y(t),h=(0,p.cz)(m),[R,g]=(0,f.W)({prop:u,defaultProp:c,onChange:b});return(0,o.createElement)(X,{scope:t,name:a,required:i,disabled:d,value:R,onValueChange:g},(0,o.createElement)(N,(0,r.c)({asChild:!0},w,{orientation:l,dir:h,loop:v}),(0,o.createElement)(s.K0.div,(0,r.c)({role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":d?"":void 0,dir:h},E,{ref:n}))))})),Z=(0,o.forwardRef)(((e,n)=>{const{__scopeRadioGroup:t,disabled:u,...s}=e,i=J("RadioGroupItem",t),d=i.disabled||u,l=Y(t),f=j(t),p=(0,o.useRef)(null),m=(0,c.q)(n,p),v=i.value===s.value,b=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{const e=e=>{B.includes(e.key)&&(b.current=!0)},n=()=>b.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",n),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",n)}}),[]),(0,o.createElement)(F,(0,r.c)({asChild:!0},l,{focusable:!d,active:v}),(0,o.createElement)(G,(0,r.c)({disabled:d,required:i.required,checked:v},f,s,{name:i.name,ref:m,onCheck:()=>i.onValueChange(s.value),onKeyDown:(0,a.K)((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:(0,a.K)(s.onFocus,(()=>{var e;b.current&&(null===(e=p.current)||void 0===e||e.click())}))})))})),$=(0,o.forwardRef)(((e,n)=>{const{__scopeRadioGroup:t,...a}=e,c=j(t);return(0,o.createElement)(q,(0,r.c)({},c,a,{ref:n}))}))}}]);