"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[5416],{45072:(e,n,t)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},r.apply(this,arguments)}t.d(n,{c:()=>r})},3608:(e,n,t)=>{function r(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(null==e||e(r),!1===t||!r.defaultPrevented)return null==n?void 0:n(r)}}t.d(n,{K:()=>r})},40304:(e,n,t)=>{t.d(n,{c:()=>o,q:()=>c});var r=t(51280);function o(...e){return n=>e.forEach((e=>function(e,n){"function"==typeof e?e(n):null!=e&&(e.current=n)}(e,n)))}function c(...e){return(0,r.useCallback)(o(...e),e)}},59016:(e,n,t)=>{t.d(n,{_:()=>o});var r=t(51280);function o(e,n=[]){let t=[];const o=()=>{const n=t.map((e=>(0,r.createContext)(e)));return function(t){const o=(null==t?void 0:t[e])||n;return(0,r.useMemo)((()=>({[`__scope${e}`]:{...t,[e]:o}})),[t,o])}};return o.scopeName=e,[function(n,o){const c=(0,r.createContext)(o),i=t.length;function l(n){const{scope:t,children:o,...l}=n,u=(null==t?void 0:t[e][i])||c,s=(0,r.useMemo)((()=>l),Object.values(l));return(0,r.createElement)(u.Provider,{value:s},o)}return t=[...t,o],l.displayName=n+"Provider",[l,function(t,l){const u=(null==l?void 0:l[e][i])||c,s=(0,r.useContext)(u);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},c(o,...n)]}function c(...e){const n=e[0];if(1===e.length)return n;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=t.reduce(((n,{useScope:t,scopeName:r})=>({...n,...t(e)[`__scope${r}`]})),{});return(0,r.useMemo)((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return t.scopeName=n.scopeName,t}},61480:(e,n,t)=>{t.d(n,{G2:()=>u,K0:()=>l});var r=t(45072),o=t(51280),c=t(81034),i=t(22896);const l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const t=(0,o.forwardRef)(((e,t)=>{const{asChild:c,...l}=e,u=c?i.k$:n;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(u,(0,r.c)({},l,{ref:t}))}));return t.displayName=`Primitive.${n}`,{...e,[n]:t}}),{});function u(e,n){e&&(0,c.flushSync)((()=>e.dispatchEvent(n)))}},22896:(e,n,t)=>{t.d(n,{k$:()=>i});var r=t(45072),o=t(51280),c=t(40304);const i=(0,o.forwardRef)(((e,n)=>{const{children:t,...c}=e,i=o.Children.toArray(t),u=i.find(s);if(u){const e=u.props.children,t=i.map((n=>n===u?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:n));return(0,o.createElement)(l,(0,r.c)({},c,{ref:n}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,t):null)}return(0,o.createElement)(l,(0,r.c)({},c,{ref:n}),t)}));i.displayName="Slot";const l=(0,o.forwardRef)(((e,n)=>{const{children:t,...r}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,{...a(r,t.props),ref:n?(0,c.c)(n,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null}));l.displayName="SlotClone";const u=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function s(e){return(0,o.isValidElement)(e)&&e.type===u}function a(e,n){const t={...n};for(const r in n){const o=e[r],c=n[r];/^on[A-Z]/.test(r)?o&&c?t[r]=(...e)=>{c(...e),o(...e)}:o&&(t[r]=o):"style"===r?t[r]={...o,...c}:"className"===r&&(t[r]=[o,c].filter(Boolean).join(" "))}return{...e,...t}}},82600:(e,n,t)=>{t.d(n,{Y:()=>o});var r=t(51280);function o(e){const n=(0,r.useRef)(e);return(0,r.useEffect)((()=>{n.current=e})),(0,r.useMemo)((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}},84664:(e,n,t)=>{t.d(n,{W:()=>c});var r=t(51280),o=t(82600);function c({prop:e,defaultProp:n,onChange:t=(()=>{})}){const[c,i]=function({defaultProp:e,onChange:n}){const t=(0,r.useState)(e),[c]=t,i=(0,r.useRef)(c),l=(0,o.Y)(n);return(0,r.useEffect)((()=>{i.current!==c&&(l(c),i.current=c)}),[c,i,l]),t}({defaultProp:n,onChange:t}),l=void 0!==e,u=l?e:c,s=(0,o.Y)(t);return[u,(0,r.useCallback)((n=>{if(l){const t="function"==typeof n?n(e):n;t!==e&&s(t)}else i(n)}),[l,e,i,s])]}},84904:(e,n,t)=>{t.d(n,{w:()=>o});var r=t(51280);const o=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},15920:(e,n,t)=>{t.d(n,{k:()=>c});var r=t(51280),o=t(84904);function c(e){const[n,t]=(0,r.useState)(void 0);return(0,o.w)((()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver((n=>{if(!Array.isArray(n))return;if(!n.length)return;const r=n[0];let o,c;if("borderBoxSize"in r){const e=r.borderBoxSize,n=Array.isArray(e)?e[0]:e;o=n.inlineSize,c=n.blockSize}else o=e.offsetWidth,c=e.offsetHeight;t({width:o,height:c})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}t(void 0)}),[e]),n}}}]);