1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[8399],{58241:(e,t,n)=>{n.d(t,{Eq:()=>u});var r=new WeakMap,o=new WeakMap,a={},c=0,i=function(e){return e&&(e.host||i(e.parentNode))},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var u=Array.from(Array.isArray(e)?e:[e]),l=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return l?(u.push.apply(u,Array.from(l.querySelectorAll("[aria-live]"))),function(e,t,n,u){var l=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=i(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);a[n]||(a[n]=new WeakMap);var s=a[n],f=[],d=new Set,p=new Set(l),h=function(e){e&&!d.has(e)&&(d.add(e),h(e.parentNode))};l.forEach(h);var v=function(e){e&&!p.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(d.has(e))v(e);else try{var t=e.getAttribute(u),a=null!==t&&"false"!==t,c=(r.get(e)||0)+1,i=(s.get(e)||0)+1;r.set(e,c),s.set(e,i),f.push(e),1===c&&a&&o.set(e,!0),1===i&&e.setAttribute(n,"true"),a||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return v(t),d.clear(),c++,function(){f.forEach((function(e){var t=r.get(e)-1,a=s.get(e)-1;r.set(e,t),s.set(e,a),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),a||e.removeAttribute(n)})),--c||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}}(u,l,n,"aria-hidden")):function(){return null}}},74099:(e,t,n)=>{n.d(t,{A:()=>q});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var a=n(51609),c="right-scroll-bar-position",i="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var l="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,s=new WeakMap;function f(e){return e}var d=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=f);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=r({async:!0,ssr:!1},e),t}(),p=function(){},h=a.forwardRef((function(e,t){var n=a.useRef(null),c=a.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),i=c[0],f=c[1],h=e.forwardProps,v=e.children,m=e.className,g=e.removeScrollBar,y=e.enabled,w=e.shards,b=e.sideCar,E=e.noIsolation,S=e.inert,k=e.allowPinchZoom,C=e.as,A=void 0===C?"div":C,x=o(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),R=b,M=function(e,t){var n,r,o,c=(n=t||null,r=function(t){return e.forEach((function(e){return u(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return l((function(){var t=s.get(c);if(t){var n=new Set(t),r=new Set(e),o=c.current;n.forEach((function(e){r.has(e)||u(e,null)})),r.forEach((function(e){n.has(e)||u(e,o)}))}s.set(c,e)}),[e]),c}([n,t]),P=r(r({},x),i);return a.createElement(a.Fragment,null,y&&a.createElement(R,{sideCar:d,removeScrollBar:g,shards:w,noIsolation:E,inert:S,setCallbacks:f,allowPinchZoom:!!k,lockRef:n}),h?a.cloneElement(a.Children.only(v),r(r({},P),{ref:M})):a.createElement(A,r({},P,{className:m,ref:M}),v))}));h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:i,zeroRight:c};var v=function(e){var t=e.sideCar,n=o(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var c=t.read();if(!c)throw new Error("Sidecar medium not found");return a.createElement(c,r({},n))};v.isSideCarExport=!0;var m=function(){var e=0,t=null;return{add:function(r){var o,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(a=r,(o=t).styleSheet?o.styleSheet.cssText=a:o.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g=function(){var e,t=(e=m(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},y={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},b=g(),E="data-scroll-locked",S=function(e,t,n,r){var o=e.left,a=e.top,u=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(E,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(u,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(c," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(i," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(c," .").concat(c," {\n right: 0 ").concat(r,";\n }\n \n .").concat(i," .").concat(i," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(E,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},k=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},C=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(E,(k()+1).toString()),function(){var e=k()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}}),[]);var c=a.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return y;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)}),[o]);return a.createElement(b,{styles:S(c,!t,o,n?"":"!important")})},A=!1;if("undefined"!=typeof window)try{var x=Object.defineProperty({},"passive",{get:function(){return A=!0,!0}});window.addEventListener("test",x,x),window.removeEventListener("test",x,x)}catch(e){A=!1}var R=!!A&&{passive:!1},M=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),T(e,n)){var r=O(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},T=function(e,t){return"v"===e?function(e){return M(e,"overflowY")}(t):function(e){return M(e,"overflowX")}(t)},O=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},N=function(e){return[e.deltaX,e.deltaY]},j=function(e){return e&&"current"in e?e.current:e},W=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},B=0,I=[];const D=(X=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(B++)[0],c=a.useState((function(){return g()}))[0],i=a.useRef(e);a.useEffect((function(){i.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(j),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=L(e),c=n.current,u="deltaX"in e?e.deltaX:c[0]-a[0],l="deltaY"in e?e.deltaY:c[1]-a[1],s=e.target,f=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=P(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=P(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),c=a*r,i=n.target,u=t.contains(i),l=!1,s=c>0,f=0,d=0;do{var p=O(e,i),h=p[0],v=p[1]-p[2]-a*h;(h||v)&&T(e,i)&&(f+=v,d+=h),i=i.parentNode}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(s&&(0===f||!1)||!s&&(0===d||!1))&&(l=!0),l}(p,t,e,"h"===p?u:l)}),[]),l=a.useCallback((function(e){var n=e;if(I.length&&I[I.length-1]===c){var r="deltaY"in n?N(n):L(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(i.current.shards||[]).map(j).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?u(n,a[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=a.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=a.useCallback((function(e){n.current=L(e),r.current=void 0}),[]),d=a.useCallback((function(t){s(t.type,N(t),t.target,u(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){s(t.type,L(t),t.target,u(t,e.lockRef.current))}),[]);a.useEffect((function(){return I.push(c),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,R),document.addEventListener("touchmove",l,R),document.addEventListener("touchstart",f,R),function(){I=I.filter((function(e){return e!==c})),document.removeEventListener("wheel",l,R),document.removeEventListener("touchmove",l,R),document.removeEventListener("touchstart",f,R)}}),[]);var h=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?a.createElement(c,{styles:W(o)}):null,h?a.createElement(C,{gapMode:"margin"}):null)},d.useMedium(X),v);var X,Y=a.forwardRef((function(e,t){return a.createElement(h,r({},e,{ref:t,sideCar:D}))}));Y.classNames=h.classNames;const q=Y},34743:(e,t,n)=>{n.d(t,{UE:()=>c,we:()=>d});var r=n(52425),o=n(51609),a=n(75795);const c=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{};var a}});var i="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function u(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!u(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||u(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){const n=l(e);return Math.round(t*n)/n}function f(e){const t=o.useRef(e);return i((()=>{t.current=e})),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:c=[],platform:d,elements:{reference:p,floating:h}={},transform:v=!0,whileElementsMounted:m,open:g}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,E]=o.useState(c);u(b,c)||E(c);const[S,k]=o.useState(null),[C,A]=o.useState(null),x=o.useCallback((e=>{e!==T.current&&(T.current=e,k(e))}),[]),R=o.useCallback((e=>{e!==O.current&&(O.current=e,A(e))}),[]),M=p||S,P=h||C,T=o.useRef(null),O=o.useRef(null),L=o.useRef(y),N=null!=m,j=f(m),W=f(d),B=o.useCallback((()=>{if(!T.current||!O.current)return;const e={placement:t,strategy:n,middleware:b};W.current&&(e.platform=W.current),(0,r.rD)(T.current,O.current,e).then((e=>{const t={...e,isPositioned:!0};I.current&&!u(L.current,t)&&(L.current=t,a.flushSync((()=>{w(t)})))}))}),[b,t,n,W]);i((()=>{!1===g&&L.current.isPositioned&&(L.current.isPositioned=!1,w((e=>({...e,isPositioned:!1}))))}),[g]);const I=o.useRef(!1);i((()=>(I.current=!0,()=>{I.current=!1})),[]),i((()=>{if(M&&(T.current=M),P&&(O.current=P),M&&P){if(j.current)return j.current(M,P,B);B()}}),[M,P,B,j,N]);const D=o.useMemo((()=>({reference:T,floating:O,setReference:x,setFloating:R})),[x,R]),X=o.useMemo((()=>({reference:M,floating:P})),[M,P]),Y=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!X.floating)return e;const t=s(X.floating,y.x),r=s(X.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...l(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,v,X.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:B,refs:D,elements:X,floatingStyles:Y})),[y,B,D,X,Y])}},48771:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(58168),o=n(51609),a=n(12579);const c=(0,o.forwardRef)(((e,t)=>{const{children:n,width:c=10,height:i=5,...u}=e;return(0,o.createElement)(a.sG.svg,(0,r.A)({},u,{ref:t,width:c,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,o.createElement)("polygon",{points:"0,0 30,0 15,10"}))}))},61463:(e,t,n)=>{n.d(t,{Oh:()=>a});var r=n(51609);let o=0;function a(){(0,r.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:c()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:c()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),o--}}),[])}function c(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},18723:(e,t,n)=>{var r;n.d(t,{B:()=>u});var o=n(51609),a=n(88200);const c=(r||(r=n.t(o,2)))["useId".toString()]||(()=>{});let i=0;function u(e){const[t,n]=o.useState(c());return(0,a.N)((()=>{e||n((e=>null!=e?e:String(i++)))}),[e]),e||(t?`radix-${t}`:"")}},92129:(e,t,n)=>{n.d(t,{U:()=>a});var r=n(51609),o=n(10263);function a(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,o.c)(e);(0,r.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}}}]); |