Files
WEBtomaste/Atomaste Reference/public_html/wp-content/plugins/complianz-gdpr/settings/build/2848.e25ea6fb88ed375a70cf.js

1 line
8.3 KiB
JavaScript

"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[2848],{7971:(e,n,t)=>{t.d(n,{C:()=>c});var r=t(51609),o=t(75795),a=t(91071),u=t(88200);const c=e=>{const{present:n,children:t}=e,c=function(e){const[n,t]=(0,r.useState)(),a=(0,r.useRef)({}),c=(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,u.N)((()=>{const n=a.current,t=c.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"),c.current=e}}),[e,f]),(0,u.N)((()=>{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:c.isPresent}):r.Children.only(t),d=(0,a.s)(c.ref,i.ref);return"function"==typeof t||c.isPresent?(0,r.cloneElement)(i,{ref:d}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}c.displayName="Presence"},62848:(e,n,t)=>{t.d(n,{C1:()=>$,q7:()=>Y,bL:()=>W});var r=t(58168),o=t(51609),a=t(9957),u=t(91071),c=t(62133),s=t(12579),i=t(16214),d=t(18723),l=t(10263),f=t(81351),m=t(71427);const p="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[E,w,h]=(0,i.N)(b),[A,R]=(0,c.A)(b,[h]),[g,k]=A(b),I=(0,o.forwardRef)(((e,n)=>(0,o.createElement)(E.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(E.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(y,(0,r.A)({},e,{ref:n})))))),y=(0,o.forwardRef)(((e,n)=>{const{__scopeRovingFocusGroup:t,orientation:c,loop:i=!1,dir:d,currentTabStopId:b,defaultCurrentTabStopId:E,onCurrentTabStopIdChange:h,onEntryFocus:A,...R}=e,k=(0,o.useRef)(null),I=(0,u.s)(n,k),y=(0,m.jH)(d),[T=null,C]=(0,f.i)({prop:b,defaultProp:E,onChange:h}),[_,F]=(0,o.useState)(!1),S=(0,l.c)(A),L=w(t),D=(0,o.useRef)(!1),[G,M]=(0,o.useState)(0);return(0,o.useEffect)((()=>{const e=k.current;if(e)return e.addEventListener(p,S),()=>e.removeEventListener(p,S)}),[S]),(0,o.createElement)(g,{scope:t,orientation:c,dir:y,loop:i,currentTabStopId:T,onItemFocus:(0,o.useCallback)((e=>C(e)),[C]),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.sG.div,(0,r.A)({tabIndex:_||0===G?-1:0,"data-orientation":c},R,{ref:I,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,(()=>{D.current=!0})),onFocus:(0,a.m)(e.onFocus,(e=>{const n=!D.current;if(e.target===e.currentTarget&&n&&!_){const n=new CustomEvent(p,v);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){const e=L().filter((e=>e.focusable));N([e.find((e=>e.active)),e.find((e=>e.id===T)),...e].filter(Boolean).map((e=>e.ref.current)))}}D.current=!1})),onBlur:(0,a.m)(e.onBlur,(()=>F(!1)))})))})),T=(0,o.forwardRef)(((e,n)=>{const{__scopeRovingFocusGroup:t,focusable:u=!0,active:c=!1,tabStopId:i,...l}=e,f=(0,d.B)(),m=i||f,p=k("RovingFocusGroupItem",t),v=p.currentTabStopId===m,b=w(t),{onFocusableItemAdd:h,onFocusableItemRemove:A}=p;return(0,o.useEffect)((()=>{if(u)return h(),()=>A()}),[u,h,A]),(0,o.createElement)(E.ItemSlot,{scope:t,id:m,focusable:u,active:c},(0,o.createElement)(s.sG.span,(0,r.A)({tabIndex:v?0:-1,"data-orientation":p.orientation},l,{ref:n,onMouseDown:(0,a.m)(e.onMouseDown,(e=>{u?p.onItemFocus(m):e.preventDefault()})),onFocus:(0,a.m)(e.onFocus,(()=>p.onItemFocus(m))),onKeyDown:(0,a.m)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void p.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:C[r]}(e,p.orientation,p.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=p.loop?(r=a+1,(t=o).map(((e,n)=>t[(r+n)%t.length]))):o.slice(a+1)}setTimeout((()=>N(o)))}var t,r}))})))})),C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}const _=I,F=T;var S=t(31769),L=t(85357),D=t(7971);const G="Radio",[M,O]=(0,c.A)(G),[U,P]=M(G),q=(0,o.forwardRef)(((e,n)=>{const{__scopeRadio:t,name:c,checked:i=!1,required:d,disabled:l,value:f="on",onCheck:m,...p}=e,[v,b]=(0,o.useState)(null),E=(0,u.s)(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.sG.button,(0,r.A)({type:"button",role:"radio","aria-checked":i,"data-state":H(i),"data-disabled":l?"":void 0,disabled:l,value:f},p,{ref:E,onClick:(0,a.m)(e.onClick,(e=>{i||null==m||m(),h&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())}))})),h&&(0,o.createElement)(B,{control:v,bubbles:!w.current,name:c,value:f,checked:i,required:d,disabled:l,style:{transform:"translateX(-100%)"}}))})),x=(0,o.forwardRef)(((e,n)=>{const{__scopeRadio:t,forceMount:a,...u}=e,c=P("RadioIndicator",t);return(0,o.createElement)(D.C,{present:a||c.checked},(0,o.createElement)(s.sG.span,(0,r.A)({"data-state":H(c.checked),"data-disabled":c.disabled?"":void 0},u,{ref:n})))})),B=e=>{const{control:n,checked:t,bubbles:a=!0,...u}=e,c=(0,o.useRef)(null),s=(0,L.Z)(t),i=(0,S.X)(n);return(0,o.useEffect)((()=>{const e=c.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.A)({type:"radio","aria-hidden":!0,defaultChecked:t},u,{tabIndex:-1,ref:c,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function H(e){return e?"checked":"unchecked"}const K=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],V="RadioGroup",[j,z]=(0,c.A)(V,[R,O]),X=R(),Z=O(),[J,Q]=j(V),W=(0,o.forwardRef)(((e,n)=>{const{__scopeRadioGroup:t,name:a,defaultValue:u,value:c,required:i=!1,disabled:d=!1,orientation:l,dir:p,loop:v=!0,onValueChange:b,...E}=e,w=X(t),h=(0,m.jH)(p),[A,R]=(0,f.i)({prop:c,defaultProp:u,onChange:b});return(0,o.createElement)(J,{scope:t,name:a,required:i,disabled:d,value:A,onValueChange:R},(0,o.createElement)(_,(0,r.A)({asChild:!0},w,{orientation:l,dir:h,loop:v}),(0,o.createElement)(s.sG.div,(0,r.A)({role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":d?"":void 0,dir:h},E,{ref:n}))))})),Y=(0,o.forwardRef)(((e,n)=>{const{__scopeRadioGroup:t,disabled:c,...s}=e,i=Q("RadioGroupItem",t),d=i.disabled||c,l=X(t),f=Z(t),m=(0,o.useRef)(null),p=(0,u.s)(n,m),v=i.value===s.value,b=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{const e=e=>{K.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.A)({asChild:!0},l,{focusable:!d,active:v}),(0,o.createElement)(q,(0,r.A)({disabled:d,required:i.required,checked:v},f,s,{name:i.name,ref:p,onCheck:()=>i.onValueChange(s.value),onKeyDown:(0,a.m)((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:(0,a.m)(s.onFocus,(()=>{var e;b.current&&(null===(e=m.current)||void 0===e||e.click())}))})))})),$=(0,o.forwardRef)(((e,n)=>{const{__scopeRadioGroup:t,...a}=e,u=Z(t);return(0,o.createElement)(x,(0,r.A)({},u,a,{ref:n}))}))}}]);