@c15t/react 2.0.0-rc.7 → 2.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/components/consent-banner/consent-banner.cjs +1 -1
- package/dist/components/consent-banner/consent-banner.js +1 -1
- package/dist/components/consent-banner/index.cjs +1 -1
- package/dist/components/consent-banner/index.js +1 -1
- package/dist/components/consent-banner/policy-actions.cjs +1 -0
- package/dist/components/consent-banner/policy-actions.js +1 -0
- package/dist/components/consent-dialog/atoms/card.cjs +1 -1
- package/dist/components/consent-dialog/atoms/card.js +1 -1
- package/dist/components/consent-dialog-trigger/atoms/icon.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/icon.js +1 -1
- package/dist/components/consent-widget/atoms/footer.cjs +1 -1
- package/dist/components/consent-widget/atoms/footer.js +1 -1
- package/dist/components/consent-widget/consent-widget.cjs +1 -1
- package/dist/components/consent-widget/consent-widget.js +1 -1
- package/dist/components/consent-widget/index.cjs +1 -1
- package/dist/components/consent-widget/index.js +1 -1
- package/dist/components/consent-widget/policy-actions.cjs +1 -0
- package/dist/components/consent-widget/policy-actions.js +1 -0
- package/dist/components/iab-consent-banner/iab-consent-banner.cjs +1 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.js +1 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.cjs +1 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.js +1 -1
- package/dist/components/shared/policy-actions.cjs +1 -0
- package/dist/components/shared/policy-actions.js +1 -0
- package/dist/components/shared/ui/branding.cjs +1 -0
- package/dist/components/shared/ui/branding.js +1 -0
- package/dist/components/shared/ui/logo.cjs +1 -1
- package/dist/components/shared/ui/logo.js +1 -1
- package/dist/components/shared/ui/switch/index.cjs +1 -1
- package/dist/components/shared/ui/switch/index.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/use-consent-manager.cjs +1 -1
- package/dist/hooks/use-consent-manager.js +1 -1
- package/dist/hooks/use-headless-consent-ui.cjs +1 -1
- package/dist/hooks/use-headless-consent-ui.js +1 -1
- package/dist/iab/styles.css +11 -1
- package/dist/iab/styles.tw3.css +14 -1
- package/dist/providers/consent-manager-provider.cjs +1 -1
- package/dist/providers/consent-manager-provider.js +1 -1
- package/dist/server/fetch-ssr-data.cjs +1 -1
- package/dist/server/fetch-ssr-data.js +1 -1
- package/dist/styles.css +10 -1
- package/dist/styles.tw3.css +13 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist-types/components/consent-banner/atoms/root.d.ts +1 -1
- package/dist-types/components/consent-banner/consent-banner.d.ts +7 -2
- package/dist-types/components/consent-banner/index.d.ts +3 -0
- package/dist-types/components/consent-banner/policy-actions.d.ts +11 -0
- package/dist-types/components/consent-dialog/atoms/card.d.ts +7 -2
- package/dist-types/components/consent-dialog/atoms/root.d.ts +1 -1
- package/dist-types/components/consent-dialog/consent-dialog.d.ts +1 -1
- package/dist-types/components/consent-dialog-trigger/atoms/icon.d.ts +1 -1
- package/dist-types/components/consent-dialog-trigger/types.d.ts +1 -1
- package/dist-types/components/consent-widget/index.d.ts +3 -0
- package/dist-types/components/consent-widget/policy-actions.d.ts +11 -0
- package/dist-types/components/frame/atoms.d.ts +1 -1
- package/dist-types/components/frame/types.d.ts +1 -1
- package/dist-types/components/iab-consent-banner/atoms/root.d.ts +1 -1
- package/dist-types/components/iab-consent-banner/iab-consent-banner.d.ts +1 -1
- package/dist-types/components/iab-consent-dialog/atoms/root.d.ts +1 -1
- package/dist-types/components/iab-consent-dialog/atoms/vendor-list.d.ts +1 -1
- package/dist-types/components/iab-consent-dialog/iab-consent-dialog.d.ts +1 -1
- package/dist-types/components/shared/policy-actions.d.ts +29 -0
- package/dist-types/components/shared/primitives/button.d.ts +1 -1
- package/dist-types/components/shared/primitives/button.types.d.ts +1 -1
- package/dist-types/components/shared/primitives/legal-links/index.d.ts +1 -1
- package/dist-types/components/shared/ui/accordion/accordion.d.ts +2 -2
- package/dist-types/components/shared/ui/accordion/accordion.types.d.ts +1 -1
- package/dist-types/components/shared/ui/branding.d.ts +23 -0
- package/dist-types/components/shared/ui/button/button.d.ts +1 -1
- package/dist-types/components/shared/ui/logo.d.ts +8 -0
- package/dist-types/components/shared/ui/preference-item/preference-item.d.ts +1 -1
- package/dist-types/components/shared/ui/switch/index.d.ts +1 -1
- package/dist-types/components/shared/ui/switch/switch.d.ts +1 -1
- package/dist-types/components/shared/ui/switch/switch.types.d.ts +1 -1
- package/dist-types/components/shared/ui/tabs/tabs.d.ts +1 -1
- package/dist-types/context/consent-manager-context.d.ts +1 -1
- package/dist-types/headless.d.ts +1 -1
- package/dist-types/hooks/use-component-config.d.ts +1 -1
- package/dist-types/hooks/use-consent-manager.d.ts +1 -1
- package/dist-types/hooks/use-headless-consent-ui.d.ts +1 -1
- package/dist-types/hooks/use-ssr-status.d.ts +2 -1
- package/dist-types/hooks/use-translations.d.ts +1 -1
- package/dist-types/index.d.ts +2 -2
- package/dist-types/server/fetch-ssr-data.d.ts +1 -1
- package/dist-types/server/init-cache-key.d.ts +1 -1
- package/dist-types/server/types.d.ts +1 -1
- package/dist-types/types/consent-manager.d.ts +1 -1
- package/dist-types/types/theme/style-keys.d.ts +1 -1
- package/dist-types/types/theme/style-types.d.ts +2 -2
- package/dist-types/utils/cn.d.ts +1 -1
- package/dist-types/utils/theme-utils.d.ts +1 -1
- package/dist-types/version.d.ts +1 -1
- package/docs/building-headless-components.md +40 -22
- package/docs/callbacks.md +76 -9
- package/docs/components/consent-banner.md +83 -9
- package/docs/components/consent-dialog.md +12 -2
- package/docs/components/consent-manager-provider.md +3 -1
- package/docs/components/consent-widget.md +61 -8
- package/docs/concepts/client-modes.md +16 -4
- package/docs/concepts/initialization-flow.md +9 -2
- package/docs/concepts/policy-packs.md +2 -2
- package/docs/hooks/use-consent-manager/overview.md +17 -3
- package/docs/hooks/use-ssr-status.md +1 -1
- package/docs/hooks/use-translations.md +1 -0
- package/docs/iab/consent-banner.md +2 -5
- package/docs/iab/consent-dialog.md +3 -6
- package/docs/iab/overview.md +11 -5
- package/docs/integrations/building-integrations.md +405 -0
- package/docs/integrations/databuddy.md +22 -5
- package/docs/integrations/google-tag-manager.md +2 -2
- package/docs/integrations/google-tag.md +2 -29
- package/docs/integrations/linkedin-insights.md +1 -1
- package/docs/integrations/meta-pixel.md +1 -1
- package/docs/integrations/microsoft-uet.md +1 -1
- package/docs/integrations/overview.md +18 -2
- package/docs/integrations/posthog.md +39 -17
- package/docs/integrations/tiktok-pixel.md +1 -1
- package/docs/integrations/x-pixel.md +1 -1
- package/docs/optimization.md +2 -6
- package/docs/policy-packs.md +7 -7
- package/docs/quickstart.md +11 -5
- package/docs/script-loader.md +22 -1
- package/docs/styling/tailwind.md +23 -17
- package/iab/styles.css +1 -0
- package/package.json +13 -11
- package/readme.json +6 -0
- package/src/iab/styles.css +11 -0
- package/src/iab/styles.tw3.css +8 -4
- package/src/styles.css +10 -0
- package/src/styles.tw3.css +7 -4
- package/styles.css +1 -0
- package/dist/components/shared/libs/policy-actions.cjs +0 -1
- package/dist/components/shared/libs/policy-actions.js +0 -1
- package/dist-types/components/shared/libs/policy-actions.d.ts +0 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as e,jsx as s,jsxs as t}from"react/jsx-runtime";import r from"@c15t/ui/styles/components/iab-consent-dialog.module.js";import{useCallback as n,useEffect as o,useLayoutEffect as i,useMemo as l,useRef as a,useState as d}from"react";import{createPortal as c}from"react-dom";import{Branding as u}from"../consent-dialog/atoms/card.js";import{ConsentDialogTrigger as p}from"../consent-dialog-trigger/index.js";import{ConsentTrackingContext as m}from"../../context/consent-tracking-context.js";import{useComponentConfig as g}from"../../hooks/use-component-config.js";import{useConsentManager as h}from"../../hooks/use-consent-manager.js";import{useFocusTrap as v}from"../../hooks/use-focus-trap.js";import{useHeadlessIABConsentUI as f}from"../../hooks/use-headless-iab-consent-ui.js";import{useScrollLock as b}from"../../hooks/use-scroll-lock.js";import{useTextDirection as C}from"../../hooks/use-text-direction.js";import{useTranslations as k}from"../../hooks/use-translations.js";import{IABConsentDialogOverlay as N}from"./atoms/overlay.js";import{PurposeItem as I}from"./atoms/purpose-item.js";import{StackItem as y}from"./atoms/stack-item.js";import{VendorList as L}from"./atoms/vendor-list.js";import{useIABTranslations as x}from"./use-iab-translations.js";import*as P from"../shared/ui/button/index.js";import*as j from"../shared/ui/tabs/index.js";let T=({open:T,noStyle:V,disableAnimation:S,scrollLock:A,trapFocus:F=!0,hideBranding:B,showTrigger:w=!1,models:M=["iab"],uiSource:O})=>{let $=x(),{common:R}=k(),{iab:U,activeUI:z,policyDialog:D,translationConfig:E,model:H}=h(),{closeUI:W,openDialog:q,performDialogAction:G}=f(),_=A??D.scrollLock??!0,J=C(E.defaultLanguage),K=a(null),Q=a(null),X=a(null),[Y,Z]=d(U?.preferenceCenterTab??"purposes"),[ee,es]=d(null),[et,er]=d(!1),[en,eo]=d(!1),[ei,el]=d(!1),ea=T??("dialog"===z&&M.includes(H)),ed=g({noStyle:V,disableAnimation:S,scrollLock:_,trapFocus:F}),{purposes:ec,specialPurposes:eu,specialFeatures:ep,features:em,stacks:eg,standalonePurposes:eh}=l(()=>{if(!U?.gvl)return{purposes:[],specialPurposes:[],specialFeatures:[],features:[],stacks:[],standalonePurposes:[]};let e=U.gvl,s=U.nonIABVendors||[],t=(e,s,t)=>({id:Number(e),name:s.name,policyUrl:s.policyUrl??"",usesNonCookieAccess:s.usesNonCookieAccess,deviceStorageDisclosureUrl:s.deviceStorageDisclosureUrl??null,usesCookies:s.usesCookies,cookieMaxAgeSeconds:s.cookieMaxAgeSeconds,cookieRefresh:s.cookieRefresh,legitimateInterestUrl:s.urls?.find(e=>e.legIntClaim)?.legIntClaim??null,specialPurposes:s.specialPurposes||[],specialFeatures:s.specialFeatures||[],features:s.features||[],purposes:s.purposes||[],legIntPurposes:s.legIntPurposes||[],usesLegitimateInterest:!!t&&(s.legIntPurposes?.includes(t)??!1),dataRetention:s.dataRetention,isCustom:!1}),r=Object.entries(e.purposes).map(([r,n])=>{let o=Object.entries(e.vendors).filter(([,e])=>e.purposes?.includes(Number(r))||e.legIntPurposes?.includes(Number(r))).map(([e,s])=>t(e,s,Number(r))),i=s.filter(e=>e.purposes?.includes(Number(r))||e.legIntPurposes?.includes(Number(r))).map(e=>{let s;return s=Number(r),{id:e.id,name:e.name,policyUrl:e.privacyPolicyUrl,usesNonCookieAccess:e.usesNonCookieAccess??!1,deviceStorageDisclosureUrl:null,usesCookies:e.usesCookies??!1,cookieMaxAgeSeconds:e.cookieMaxAgeSeconds??null,cookieRefresh:void 0,legitimateInterestUrl:null,specialPurposes:[],specialFeatures:e.specialFeatures||[],features:e.features||[],purposes:e.purposes||[],legIntPurposes:e.legIntPurposes||[],usesLegitimateInterest:!!s&&(e.legIntPurposes?.includes(s)??!1),dataRetention:void 0,isCustom:!0}});return{id:Number(r),name:n.name,description:n.description,descriptionLegal:n.descriptionLegal,illustrations:n.illustrations||[],vendors:[...o,...i]}}).filter(e=>e.vendors.length>0),n=Object.entries(e.specialPurposes||{}).map(([s,r])=>{let n=Object.entries(e.vendors).filter(([,e])=>e.specialPurposes?.includes(Number(s))).map(([e,s])=>t(e,s));return{id:Number(s),name:r.name,description:r.description,descriptionLegal:r.descriptionLegal,illustrations:r.illustrations||[],vendors:n,isSpecialPurpose:!0}}).filter(e=>e.vendors.length>0),o=Object.entries(e.specialFeatures||{}).map(([s,r])=>{let n=Object.entries(e.vendors).filter(([,e])=>e.specialFeatures?.includes(Number(s))).map(([e,s])=>t(e,s));return{id:Number(s),name:r.name,description:r.description,descriptionLegal:r.descriptionLegal,illustrations:r.illustrations||[],vendors:n}}).filter(e=>e.vendors.length>0),i=Object.entries(e.features||{}).map(([s,r])=>{let n=Object.entries(e.vendors).filter(([,e])=>e.features?.includes(Number(s))).map(([e,s])=>t(e,s));return{id:Number(s),name:r.name,description:r.description,descriptionLegal:r.descriptionLegal,illustrations:r.illustrations||[],vendors:n}}).filter(e=>e.vendors.length>0),l=r.find(e=>1===e.id),a=r.filter(e=>1!==e.id),d=new Set(a.map(e=>e.id)),c=e.stacks||{},u=[];for(let[e,s]of Object.entries(c)){let t=Number(e),r=s.purposes.filter(e=>d.has(e));r.length>=2&&u.push({stackId:t,stack:s,coveredPurposeIds:r,score:r.length})}u.sort((e,s)=>s.score-e.score);let p=[],m=new Set;for(let{stackId:e,stack:s,coveredPurposeIds:t}of u){let r=t.filter(e=>!m.has(e));if(r.length>=2){let t=a.filter(e=>r.includes(e.id));for(let n of(p.push({id:e,name:s.name,description:s.description,purposes:t}),r))m.add(n)}}let g=a.filter(e=>!m.has(e.id));return{purposes:r,specialPurposes:n,specialFeatures:o,features:i,stacks:p,standalonePurposes:l?[l,...g]:g}},[U?.gvl,U?.nonIABVendors]),ev=l(()=>U?.gvl?Object.keys(U.gvl.vendors).length+(U.nonIABVendors?.length??0):0,[U?.gvl,U?.nonIABVendors]),ef=n((e,s)=>{U?.setPurposeConsent(e,s)},[U]),eb=n((e,s)=>{U?.setSpecialFeatureOptIn(e,s)},[U]),eC=n((e,s)=>{U?.setVendorConsent(e,s)},[U]),ek=n((e,s)=>{U?.setVendorLegitimateInterest(e,s)},[U]),eN=n((e,s)=>{U?.setPurposeLegitimateInterest(e,s)},[U]),eI=e=>{es(e),Z("vendors"),q({tab:"vendors"})};v(!!(ea&&ed.trapFocus),K),b(!!(ea&&ed.scrollLock)),o(()=>{eo(!0)},[]),o(()=>{if(ea)el(!0);else if(ed.disableAnimation)el(!1);else{let e=setTimeout(()=>{el(!1)},150);return()=>clearTimeout(e)}},[ea,ed.disableAnimation]),o(()=>{ea&&U?.preferenceCenterTab&&Z(U.preferenceCenterTab)},[ea,U?.preferenceCenterTab]),i(()=>{let e,s,t=Q.current;if(!t||null===X.current)return;let r=X.current;if(X.current=null,!window.matchMedia("(prefers-reduced-motion: reduce)").matches)return t.style.height=`${r}px`,t.style.overflow="hidden",t.style.transition="none",e=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{if(!t)return;t.style.height="auto";let e=t.getBoundingClientRect().height;if(t.style.height=`${r}px`,1>Math.abs(r-e)){t.style.height="",t.style.overflow="",t.style.transition="";return}t.offsetHeight,t.style.transition="height 180ms cubic-bezier(0.33, 1, 0.68, 1)",t.style.height=`${e}px`,t.addEventListener("transitionend",e=>{"height"===e.propertyName&&(t.style.height="",t.style.overflow="",t.style.transition="")},{once:!0})})}),()=>{cancelAnimationFrame(e),cancelAnimationFrame(s)}},[Y]);let ey=n(e=>{Q.current&&(X.current=Q.current.offsetHeight),Z(e),q({tab:e})},[q]);if(!en||!U?.config.enabled)return null;let eL=U.isLoadingGVL||!U.gvl,ex=t(m.Provider,{value:{uiSource:O??"iab_dialog"},children:[s(N,{isOpen:ea}),s("div",{className:`${r.root} ${ei?r.dialogVisible:r.dialogHidden}`,"data-testid":"iab-consent-dialog-root",dir:J,children:t("div",{ref:K,className:`${r.card} ${ei?r.contentVisible:r.contentHidden}`,role:"dialog","aria-modal":ed.trapFocus?"true":void 0,"aria-label":$.preferenceCenter.title,tabIndex:0,"data-testid":"iab-consent-dialog-card",children:[t("div",{className:r.header,children:[t("div",{className:r.headerContent,children:[s("h2",{className:r.title,children:$.preferenceCenter.title}),s("p",{className:r.description,children:$.preferenceCenter.description})]}),s("button",{type:"button",onClick:()=>{W()},className:r.closeButton,"aria-label":R.close,children:t("svg",{style:{width:"1rem",height:"1rem"},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),t(j.Root,{className:r.body,noStyle:!0,onValueChange:e=>ey(e),value:Y,children:[s("div",{className:r.tabsContainer,children:t(j.List,{className:r.tabsList,noStyle:!0,children:[t(j.Trigger,{className:r.tabButton,noStyle:!0,value:"purposes",children:[$.preferenceCenter.tabs.purposes,!eL&&` (${ec.length+eu.length+ep.length+em.length})`]}),t(j.Trigger,{className:r.tabButton,noStyle:!0,value:"vendors",children:[$.preferenceCenter.tabs.vendors,!eL&&` (${ev})`]}),s("div",{"aria-hidden":"true",className:r.tabIndicator,"data-active-tab":Y})]})}),s("div",{ref:Q,className:r.content,children:eL?t("div",{className:r.loadingContainer,children:[s("div",{className:r.loadingSpinner}),s("p",{className:r.loadingText,children:$.common.loading})]}):t(e,{children:[t(j.Content,{className:r.tabPanel,forceMount:!0,noStyle:!0,value:"purposes",children:[eh.map(e=>s(I,{purpose:e,isEnabled:U.purposeConsents[e.id]??!1,onToggle:s=>ef(e.id,s),vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek,purposeLegitimateInterests:U.purposeLegitimateInterests,onPurposeLegitimateInterestToggle:eN},e.id)),eg.map(e=>s(y,{stack:e,consents:U.purposeConsents,onToggle:ef,vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek,purposeLegitimateInterests:U.purposeLegitimateInterests,onPurposeLegitimateInterestToggle:eN},e.id)),ep.map(e=>s(I,{purpose:{id:e.id,name:e.name,description:e.description,illustrations:e.illustrations,vendors:e.vendors},isEnabled:U.specialFeatureOptIns[e.id]??!1,onToggle:s=>eb(e.id,s),vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek},`feature-${e.id}`)),(eu.length>0||em.length>0)&&t("div",{className:r.specialPurposesSection,children:[t("div",{className:r.specialPurposesHeader,children:[t("button",{type:"button",onClick:()=>er(!et),className:r.purposeTrigger,children:[s("svg",{className:r.purposeArrow,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:et?s("path",{d:"M19 9l-7 7-7-7"}):s("path",{d:"M9 5l7 7-7 7"})}),t("div",{className:r.purposeInfo,children:[t("h3",{className:r.specialPurposesTitle,children:[$.preferenceCenter.specialPurposes.title,t("svg",{className:r.lockIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),s("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})]}),t("p",{className:r.purposeMeta,children:[new Set([...eu.flatMap(e=>e.vendors.map(e=>e.id)),...em.flatMap(e=>e.vendors.map(e=>e.id))]).size," ","partners"]})]})]}),s("div",{style:{position:"relative"},children:t("svg",{className:r.infoIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-label":$.preferenceCenter.specialPurposes.tooltip,children:[s("circle",{cx:"12",cy:"12",r:"10"}),s("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),s("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})})]}),et&&t("div",{style:{padding:"0.75rem"},children:[eu.map(e=>s(I,{purpose:e,isEnabled:!0,onToggle:()=>{},vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,isLocked:!0},`special-${e.id}`)),em.map(e=>s(I,{purpose:{id:e.id,name:e.name,description:e.description,illustrations:e.illustrations,vendors:e.vendors},isEnabled:!0,onToggle:()=>{},vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,isLocked:!0},`feature-${e.id}`))]})]}),s("div",{className:r.consentNotice,children:s("p",{className:r.consentNoticeText,children:$.preferenceCenter.footer.consentStorage})})]}),s(j.Content,{className:r.tabPanel,forceMount:!0,noStyle:!0,value:"vendors",children:s(L,{vendorData:U.gvl,purposes:ec,vendorConsents:U.vendorConsents,onVendorToggle:eC,selectedVendorId:ee,onClearSelection:()=>es(null),customVendors:U.nonIABVendors,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek})})]})})]}),t("div",{className:r.footer,children:[t("div",{className:r.footerButtons,children:[s(P.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{G("reject")},disabled:eL,children:$.common.rejectAll}),s(P.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{G("accept")},disabled:eL,children:$.common.acceptAll})]}),s("div",{className:r.footerSpacer}),s(P.Root,{variant:"primary",mode:"filled",size:"small",onClick:()=>{G("customize")},disabled:eL,children:$.common.saveSettings})]}),!B&&s("div",{className:r.branding,children:s(u,{hideBranding:B??!1})})]})})]}),eP=!0===w?{}:!1===w?null:w,ej=eP?s(p,{...eP}):null;return ea||ei?t(e,{children:[ej,c(ex,document.body)]}):ej};export{T as IABConsentDialog};
|
|
1
|
+
import{Fragment as e,jsx as s,jsxs as t}from"react/jsx-runtime";import n from"@c15t/ui/styles/components/iab-consent-dialog.module.js";import{useCallback as o,useEffect as r,useLayoutEffect as i,useMemo as l,useRef as a,useState as d}from"react";import{createPortal as c}from"react-dom";import{Branding as u}from"../consent-dialog/atoms/card.js";import{ConsentDialogTrigger as p}from"../consent-dialog-trigger/index.js";import{ConsentTrackingContext as m}from"../../context/consent-tracking-context.js";import{useComponentConfig as g}from"../../hooks/use-component-config.js";import{useConsentManager as h}from"../../hooks/use-consent-manager.js";import{useFocusTrap as v}from"../../hooks/use-focus-trap.js";import{useHeadlessIABConsentUI as f}from"../../hooks/use-headless-iab-consent-ui.js";import{useScrollLock as b}from"../../hooks/use-scroll-lock.js";import{useTextDirection as C}from"../../hooks/use-text-direction.js";import{useTranslations as k}from"../../hooks/use-translations.js";import{IABConsentDialogOverlay as N}from"./atoms/overlay.js";import{PurposeItem as I}from"./atoms/purpose-item.js";import{StackItem as y}from"./atoms/stack-item.js";import{VendorList as L}from"./atoms/vendor-list.js";import{useIABTranslations as x}from"./use-iab-translations.js";import*as P from"../shared/ui/button/index.js";import*as j from"../shared/ui/tabs/index.js";let T=({open:T,noStyle:V,disableAnimation:S,scrollLock:A,trapFocus:F=!0,hideBranding:B,showTrigger:w=!1,models:M=["iab"],uiSource:O})=>{let $=x(),{common:R}=k(),{iab:U,activeUI:z,policyDialog:D,translationConfig:E,model:H}=h(),{closeUI:W,openDialog:q,performDialogAction:G}=f(),_=A??D.scrollLock??!0,J=C(E.defaultLanguage),K=a(null),Q=a(null),X=a(null),[Y,Z]=d(U?.preferenceCenterTab??"purposes"),[ee,es]=d(null),[et,en]=d(!1),[eo,er]=d(!1),[ei,el]=d(!1),ea=T??("dialog"===z&&M.includes(H)),ed=g({noStyle:V,disableAnimation:S,scrollLock:_,trapFocus:F}),{purposes:ec,specialPurposes:eu,specialFeatures:ep,features:em,stacks:eg,standalonePurposes:eh}=l(()=>{if(!U?.gvl)return{purposes:[],specialPurposes:[],specialFeatures:[],features:[],stacks:[],standalonePurposes:[]};let e=U.gvl,s=U.nonIABVendors||[],t=(e,s,t)=>({id:Number(e),name:s.name,policyUrl:s.policyUrl??"",usesNonCookieAccess:s.usesNonCookieAccess,deviceStorageDisclosureUrl:s.deviceStorageDisclosureUrl??null,usesCookies:s.usesCookies,cookieMaxAgeSeconds:s.cookieMaxAgeSeconds,cookieRefresh:s.cookieRefresh,legitimateInterestUrl:s.urls?.find(e=>e.legIntClaim)?.legIntClaim??null,specialPurposes:s.specialPurposes||[],specialFeatures:s.specialFeatures||[],features:s.features||[],purposes:s.purposes||[],legIntPurposes:s.legIntPurposes||[],usesLegitimateInterest:!!t&&(s.legIntPurposes?.includes(t)??!1),dataRetention:s.dataRetention,isCustom:!1}),n=Object.entries(e.purposes).map(([n,o])=>{let r=Object.entries(e.vendors).filter(([,e])=>e.purposes?.includes(Number(n))||e.legIntPurposes?.includes(Number(n))).map(([e,s])=>t(e,s,Number(n))),i=s.filter(e=>e.purposes?.includes(Number(n))||e.legIntPurposes?.includes(Number(n))).map(e=>{let s;return s=Number(n),{id:e.id,name:e.name,policyUrl:e.privacyPolicyUrl,usesNonCookieAccess:e.usesNonCookieAccess??!1,deviceStorageDisclosureUrl:null,usesCookies:e.usesCookies??!1,cookieMaxAgeSeconds:e.cookieMaxAgeSeconds??null,cookieRefresh:void 0,legitimateInterestUrl:null,specialPurposes:[],specialFeatures:e.specialFeatures||[],features:e.features||[],purposes:e.purposes||[],legIntPurposes:e.legIntPurposes||[],usesLegitimateInterest:!!s&&(e.legIntPurposes?.includes(s)??!1),dataRetention:void 0,isCustom:!0}});return{id:Number(n),name:o.name,description:o.description,descriptionLegal:o.descriptionLegal,illustrations:o.illustrations||[],vendors:[...r,...i]}}).filter(e=>e.vendors.length>0),o=Object.entries(e.specialPurposes||{}).map(([s,n])=>{let o=Object.entries(e.vendors).filter(([,e])=>e.specialPurposes?.includes(Number(s))).map(([e,s])=>t(e,s));return{id:Number(s),name:n.name,description:n.description,descriptionLegal:n.descriptionLegal,illustrations:n.illustrations||[],vendors:o,isSpecialPurpose:!0}}).filter(e=>e.vendors.length>0),r=Object.entries(e.specialFeatures||{}).map(([s,n])=>{let o=Object.entries(e.vendors).filter(([,e])=>e.specialFeatures?.includes(Number(s))).map(([e,s])=>t(e,s));return{id:Number(s),name:n.name,description:n.description,descriptionLegal:n.descriptionLegal,illustrations:n.illustrations||[],vendors:o}}).filter(e=>e.vendors.length>0),i=Object.entries(e.features||{}).map(([s,n])=>{let o=Object.entries(e.vendors).filter(([,e])=>e.features?.includes(Number(s))).map(([e,s])=>t(e,s));return{id:Number(s),name:n.name,description:n.description,descriptionLegal:n.descriptionLegal,illustrations:n.illustrations||[],vendors:o}}).filter(e=>e.vendors.length>0),l=n.find(e=>1===e.id),a=n.filter(e=>1!==e.id),d=new Set(a.map(e=>e.id)),c=e.stacks||{},u=[];for(let[e,s]of Object.entries(c)){let t=Number(e),n=s.purposes.filter(e=>d.has(e));n.length>=2&&u.push({stackId:t,stack:s,coveredPurposeIds:n,score:n.length})}u.sort((e,s)=>s.score-e.score);let p=[],m=new Set;for(let{stackId:e,stack:s,coveredPurposeIds:t}of u){let n=t.filter(e=>!m.has(e));if(n.length>=2){let t=a.filter(e=>n.includes(e.id));for(let o of(p.push({id:e,name:s.name,description:s.description,purposes:t}),n))m.add(o)}}let g=a.filter(e=>!m.has(e.id));return{purposes:n,specialPurposes:o,specialFeatures:r,features:i,stacks:p,standalonePurposes:l?[l,...g]:g}},[U?.gvl,U?.nonIABVendors]),ev=l(()=>U?.gvl?Object.keys(U.gvl.vendors).length+(U.nonIABVendors?.length??0):0,[U?.gvl,U?.nonIABVendors]),ef=o((e,s)=>{U?.setPurposeConsent(e,s)},[U]),eb=o((e,s)=>{U?.setSpecialFeatureOptIn(e,s)},[U]),eC=o((e,s)=>{U?.setVendorConsent(e,s)},[U]),ek=o((e,s)=>{U?.setVendorLegitimateInterest(e,s)},[U]),eN=o((e,s)=>{U?.setPurposeLegitimateInterest(e,s)},[U]),eI=e=>{es(e),Z("vendors"),q({tab:"vendors"})};v(!!(ea&&ed.trapFocus),K),b(!!(ea&&ed.scrollLock)),r(()=>{er(!0)},[]),r(()=>{if(ea)el(!0);else if(ed.disableAnimation)el(!1);else{let e=setTimeout(()=>{el(!1)},150);return()=>clearTimeout(e)}},[ea,ed.disableAnimation]),r(()=>{ea&&U?.preferenceCenterTab&&Z(U.preferenceCenterTab)},[ea,U?.preferenceCenterTab]),i(()=>{let e,s,t=Q.current;if(!t||null===X.current)return;let n=X.current;if(X.current=null,!window.matchMedia("(prefers-reduced-motion: reduce)").matches)return t.style.height=`${n}px`,t.style.overflow="hidden",t.style.transition="none",e=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{if(!t)return;t.style.height="auto";let e=t.getBoundingClientRect().height;if(t.style.height=`${n}px`,1>Math.abs(n-e)){t.style.height="",t.style.overflow="",t.style.transition="";return}t.offsetHeight,t.style.transition="height 180ms cubic-bezier(0.33, 1, 0.68, 1)",t.style.height=`${e}px`,t.addEventListener("transitionend",e=>{"height"===e.propertyName&&(t.style.height="",t.style.overflow="",t.style.transition="")},{once:!0})})}),()=>{cancelAnimationFrame(e),cancelAnimationFrame(s)}},[Y]);let ey=o(e=>{Q.current&&(X.current=Q.current.offsetHeight),Z(e),q({tab:e})},[q]);if(!eo||!U?.config.enabled)return null;let eL=U.isLoadingGVL||!U.gvl,ex=t(m.Provider,{value:{uiSource:O??"iab_dialog"},children:[s(N,{isOpen:ea}),s("div",{className:`${n.root} ${ei?n.dialogVisible:n.dialogHidden}`,"data-testid":"iab-consent-dialog-root",dir:J,children:t("div",{ref:K,className:`${n.card} ${ei?n.contentVisible:n.contentHidden}`,role:"dialog","aria-modal":ed.trapFocus?"true":void 0,"aria-label":$.preferenceCenter.title,tabIndex:0,"data-testid":"iab-consent-dialog-card",children:[t("div",{className:n.header,children:[t("div",{className:n.headerContent,children:[s("h2",{className:n.title,children:$.preferenceCenter.title}),s("p",{className:n.description,children:$.preferenceCenter.description})]}),s("button",{type:"button",onClick:()=>{W()},className:n.closeButton,"aria-label":R.close,children:t("svg",{style:{width:"1rem",height:"1rem"},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),t(j.Root,{className:n.body,noStyle:!0,onValueChange:e=>ey(e),value:Y,children:[s("div",{className:n.tabsContainer,children:t(j.List,{className:n.tabsList,noStyle:!0,children:[t(j.Trigger,{className:n.tabButton,noStyle:!0,value:"purposes",children:[$.preferenceCenter.tabs.purposes,!eL&&` (${ec.length+eu.length+ep.length+em.length})`]}),t(j.Trigger,{className:n.tabButton,noStyle:!0,value:"vendors",children:[$.preferenceCenter.tabs.vendors,!eL&&` (${ev})`]}),s("div",{"aria-hidden":"true",className:n.tabIndicator,"data-active-tab":Y})]})}),s("div",{ref:Q,className:n.content,children:eL?t("div",{className:n.loadingContainer,children:[s("div",{className:n.loadingSpinner}),s("p",{className:n.loadingText,children:$.common.loading})]}):t(e,{children:[t(j.Content,{className:n.tabPanel,forceMount:!0,noStyle:!0,value:"purposes",children:[eh.map(e=>s(I,{purpose:e,isEnabled:U.purposeConsents[e.id]??!1,onToggle:s=>ef(e.id,s),vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek,purposeLegitimateInterests:U.purposeLegitimateInterests,onPurposeLegitimateInterestToggle:eN},e.id)),eg.map(e=>s(y,{stack:e,consents:U.purposeConsents,onToggle:ef,vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek,purposeLegitimateInterests:U.purposeLegitimateInterests,onPurposeLegitimateInterestToggle:eN},e.id)),ep.map(e=>s(I,{purpose:{id:e.id,name:e.name,description:e.description,illustrations:e.illustrations,vendors:e.vendors},isEnabled:U.specialFeatureOptIns[e.id]??!1,onToggle:s=>eb(e.id,s),vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek},`feature-${e.id}`)),(eu.length>0||em.length>0)&&t("div",{className:n.specialPurposesSection,children:[t("div",{className:n.specialPurposesHeader,children:[t("button",{type:"button",onClick:()=>en(!et),className:n.purposeTrigger,children:[s("svg",{className:n.purposeArrow,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:et?s("path",{d:"M19 9l-7 7-7-7"}):s("path",{d:"M9 5l7 7-7 7"})}),t("div",{className:n.purposeInfo,children:[t("h3",{className:n.specialPurposesTitle,children:[$.preferenceCenter.specialPurposes.title,t("svg",{className:n.lockIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),s("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})]}),t("p",{className:n.purposeMeta,children:[new Set([...eu.flatMap(e=>e.vendors.map(e=>e.id)),...em.flatMap(e=>e.vendors.map(e=>e.id))]).size," ","partners"]})]})]}),s("div",{style:{position:"relative"},children:t("svg",{className:n.infoIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-label":$.preferenceCenter.specialPurposes.tooltip,children:[s("circle",{cx:"12",cy:"12",r:"10"}),s("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),s("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})})]}),et&&t("div",{style:{padding:"0.75rem"},children:[eu.map(e=>s(I,{purpose:e,isEnabled:!0,onToggle:()=>{},vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,isLocked:!0},`special-${e.id}`)),em.map(e=>s(I,{purpose:{id:e.id,name:e.name,description:e.description,illustrations:e.illustrations,vendors:e.vendors},isEnabled:!0,onToggle:()=>{},vendorConsents:U.vendorConsents,onVendorToggle:eC,onVendorClick:eI,isLocked:!0},`feature-${e.id}`))]})]}),s("div",{className:n.consentNotice,children:s("p",{className:n.consentNoticeText,children:$.preferenceCenter.footer.consentStorage})})]}),s(j.Content,{className:n.tabPanel,forceMount:!0,noStyle:!0,value:"vendors",children:s(L,{vendorData:U.gvl,purposes:ec,vendorConsents:U.vendorConsents,onVendorToggle:eC,selectedVendorId:ee,onClearSelection:()=>es(null),customVendors:U.nonIABVendors,vendorLegitimateInterests:U.vendorLegitimateInterests,onVendorLegitimateInterestToggle:ek})})]})})]}),t("div",{className:n.footer,children:[t("div",{className:n.footerButtons,children:[s(P.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{G("reject")},disabled:eL,children:$.common.rejectAll}),s(P.Root,{variant:"neutral",mode:"stroke",size:"small",onClick:()=>{G("accept")},disabled:eL,children:$.common.acceptAll})]}),s("div",{className:n.footerSpacer}),s(P.Root,{variant:"primary",mode:"filled",size:"small",onClick:()=>{G("customize")},disabled:eL,children:$.common.saveSettings})]}),s(u,{hideBranding:B??!1,variant:"dialog-tag","data-testid":"iab-consent-dialog-branding"})]})})]}),eP=!0===w?{}:!1===w?null:w,ej=eP?s(p,{...eP}):null;return ea||ei?t(e,{children:[ej,c(ex,document.body)]}):ej};export{T as IABConsentDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{PolicyActionsRenderer:()=>PolicyActionsRenderer});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react"),cn_cjs_namespaceObject=require("../../utils/cn.cjs");function PolicyActionsRenderer({state:e,Footer:r,FooterSubGroup:_,classNames:c,renderDefaultAction:t,renderAction:n}){let o=e.shouldFillActions,i="column"===e.direction,a=o?{width:"100%",flex:1}:void 0;return(0,jsx_runtime_namespaceObject.jsx)(r,{className:(0,cn_cjs_namespaceObject.cnExt)(o&&c.footerFill,i&&c.footerColumn),children:e.actionGroups.map((r,s)=>(0,jsx_runtime_namespaceObject.jsx)(_,{className:(0,cn_cjs_namespaceObject.cnExt)(o&&c.footerSubGroupFill,i&&c.footerSubGroupColumn),children:r.map(r=>{let _=`action-${r}`,c={key:_,consentAction:r,isPrimary:e.primaryActions.includes(r),style:a};return(0,jsx_runtime_namespaceObject.jsx)(external_react_namespaceObject.Fragment,{children:n?.(r,c)??t(r,c)},_)})},`group-${r.join("-")||s}`))})}for(var __rspack_i in exports.PolicyActionsRenderer=__webpack_exports__.PolicyActionsRenderer,__webpack_exports__)-1===["PolicyActionsRenderer"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{Fragment as r}from"react";import{cnExt as i}from"../../utils/cn.js";function t({state:e,Footer:n,FooterSubGroup:l,classNames:c,renderDefaultAction:m,renderAction:s}){let u=e.shouldFillActions,a="column"===e.direction,p=u?{width:"100%",flex:1}:void 0;return o(n,{className:i(u&&c.footerFill,a&&c.footerColumn),children:e.actionGroups.map((t,n)=>o(l,{className:i(u&&c.footerSubGroupFill,a&&c.footerSubGroupColumn),children:t.map(i=>{let t=`action-${i}`,n={key:t,consentAction:i,isPrimary:e.primaryActions.includes(i),style:p};return o(r,{children:s?.(i,n)??m(i,n)},t)})},`group-${t.join("-")||n}`))})}export{t as PolicyActionsRenderer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(n,{a:n}),n},__webpack_require__.d=(e,n)=>{for(var a in n)__webpack_require__.o(n,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{getBrandingHref:()=>getBrandingHref,BrandingFullLogo:()=>BrandingFullLogo,resolveBranding:()=>resolveBranding,BrandingCompactLogo:()=>BrandingCompactLogo,BrandingLink:()=>BrandingLink});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),consent_dialog_module_js_namespaceObject=require("@c15t/ui/styles/components/consent-dialog.module.js");var consent_dialog_module_js_default=__webpack_require__.n(consent_dialog_module_js_namespaceObject);const use_consent_manager_cjs_namespaceObject=require("../../../hooks/use-consent-manager.cjs"),use_translations_cjs_namespaceObject=require("../../../hooks/use-translations.cjs"),cn_cjs_namespaceObject=require("../../../utils/cn.cjs"),external_logo_cjs_namespaceObject=require("./logo.cjs");function resolveBranding(e){return"none"===e?"none":"inth"===e||"consent"===e?"inth":"c15t"}function getBrandingHref(e,n=""){return"inth"===resolveBranding(e)?`https://inth.com${n}`:`https://c15t.com${n}`}function BrandingFullLogo({branding:e,className:n}){return"inth"===resolveBranding(e)?(0,jsx_runtime_namespaceObject.jsx)(external_logo_cjs_namespaceObject.InthLogo,{className:n}):(0,jsx_runtime_namespaceObject.jsxs)("span",{dir:"ltr",className:(0,cn_cjs_namespaceObject.cnExt)(consent_dialog_module_js_default().brandingWordmark,n),children:[(0,jsx_runtime_namespaceObject.jsx)(external_logo_cjs_namespaceObject.C15TIconOnly,{className:consent_dialog_module_js_default().brandingC15TMark,"aria-hidden":"true"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:consent_dialog_module_js_default().brandingWordmarkLabel,children:"c15t"})]})}function BrandingCompactLogo({branding:e,...n}){let a="inth"===resolveBranding(e)?external_logo_cjs_namespaceObject.InthIconOnly:external_logo_cjs_namespaceObject.C15TIconOnly;return(0,jsx_runtime_namespaceObject.jsx)(a,{...n})}function BrandingLink({hideBranding:e,variant:n="footer",className:a,"data-testid":_}){let{branding:r}=(0,use_consent_manager_cjs_namespaceObject.useConsentManager)(),{common:t}=(0,use_translations_cjs_namespaceObject.useTranslations)(),o=resolveBranding(r);if("none"===o||e)return null;let s="u">typeof window?`?ref=${window.location.hostname}`:"";return(0,jsx_runtime_namespaceObject.jsxs)("a",{className:(0,cn_cjs_namespaceObject.cnExt)(consent_dialog_module_js_default().branding,"footer"!==n&&consent_dialog_module_js_default().brandingTag,"dialog-tag"===n&&consent_dialog_module_js_default().brandingTagDialog,"banner-tag"===n&&consent_dialog_module_js_default().brandingTagBanner,a),href:getBrandingHref(r,s),"data-branding":o,"data-variant":n,"data-testid":_,children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:consent_dialog_module_js_default().brandingCopy,children:(0,jsx_runtime_namespaceObject.jsx)("span",{className:consent_dialog_module_js_default().brandingText,children:t.securedBy})}),(0,jsx_runtime_namespaceObject.jsx)(BrandingFullLogo,{branding:r,className:"inth"===o?consent_dialog_module_js_default().brandingInth:consent_dialog_module_js_default().brandingC15T})]})}for(var __rspack_i in exports.BrandingCompactLogo=__webpack_exports__.BrandingCompactLogo,exports.BrandingFullLogo=__webpack_exports__.BrandingFullLogo,exports.BrandingLink=__webpack_exports__.BrandingLink,exports.getBrandingHref=__webpack_exports__.getBrandingHref,exports.resolveBranding=__webpack_exports__.resolveBranding,__webpack_exports__)-1===["BrandingCompactLogo","BrandingFullLogo","BrandingLink","getBrandingHref","resolveBranding"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as n,jsxs as a}from"react/jsx-runtime";import r from"@c15t/ui/styles/components/consent-dialog.module.js";import{useConsentManager as t}from"../../../hooks/use-consent-manager.js";import{useTranslations as i}from"../../../hooks/use-translations.js";import{cnExt as o}from"../../../utils/cn.js";import{C15TIconOnly as e,InthIconOnly as s,InthLogo as d}from"./logo.js";function c(n){return"none"===n?"none":"inth"===n||"consent"===n?"inth":"c15t"}function g(n,a=""){return"inth"===c(n)?`https://inth.com${a}`:`https://c15t.com${a}`}function l({branding:t,className:i}){return"inth"===c(t)?n(d,{className:i}):a("span",{dir:"ltr",className:o(r.brandingWordmark,i),children:[n(e,{className:r.brandingC15TMark,"aria-hidden":"true"}),n("span",{className:r.brandingWordmarkLabel,children:"c15t"})]})}function m({branding:a,...r}){return n("inth"===c(a)?s:e,{...r})}function u({hideBranding:e,variant:s="footer",className:d,"data-testid":m}){let{branding:h}=t(),{common:f}=i(),p=c(h);if("none"===p||e)return null;let b="u">typeof window?`?ref=${window.location.hostname}`:"";return a("a",{className:o(r.branding,"footer"!==s&&r.brandingTag,"dialog-tag"===s&&r.brandingTagDialog,"banner-tag"===s&&r.brandingTagBanner,d),href:g(h,b),"data-branding":p,"data-variant":s,"data-testid":m,children:[n("span",{className:r.brandingCopy,children:n("span",{className:r.brandingText,children:f.securedBy})}),n(l,{branding:h,className:"inth"===p?r.brandingInth:r.brandingC15T})]})}export{m as BrandingCompactLogo,l as BrandingFullLogo,u as BrandingLink,g as getBrandingHref,c as resolveBranding};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,c)=>{for(var n in c)__webpack_require__.o(c,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:c[n]})},__webpack_require__.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{C15TIconOnly:()=>C15TIconOnly,SettingsIcon:()=>SettingsIcon,C15TIcon:()=>C15TIcon,ConsentLogo:()=>ConsentLogo,FingerprintIcon:()=>FingerprintIcon,ConsentIconOnly:()=>ConsentIconOnly});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),C15TIconOnly=({title:e="c15t",titleId:c="c15t-icon",...n})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 446 445","aria-labelledby":c,...n,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:c,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M223.178.313c39.064 0 70.732 31.668 70.732 70.732-.001 39.064-31.668 70.731-70.732 70.731-12.181 0-23.642-3.079-33.649-8.502l-55.689 55.689a70.267 70.267 0 0 1 5.574 13.441h167.531c8.695-29.217 35.762-50.523 67.804-50.523 39.064 0 70.731 31.668 70.731 70.732s-31.668 70.732-70.731 70.732c-32.042 0-59.108-21.306-67.803-50.523H139.413a70.417 70.417 0 0 1-7.888 17.396l54.046 54.046c10.893-6.851 23.786-10.815 37.605-10.815 39.064 0 70.732 31.669 70.732 70.733 0 39.064-31.668 70.731-70.732 70.731s-70.732-31.667-70.732-70.731c0-10.518 2.296-20.499 6.414-29.471l-57.78-57.78c-8.972 4.117-18.952 6.414-29.47 6.414-39.063 0-70.731-31.668-70.732-70.732 0-39.064 31.669-70.732 70.733-70.732 12.18 0 23.642 3.079 33.649 8.502l55.688-55.688c-5.423-10.007-8.502-21.469-8.502-33.65 0-39.064 31.668-70.733 70.732-70.733Zm0 343.555c-16.742 0-30.314 13.572-30.314 30.314 0 16.741 13.572 30.313 30.314 30.313s30.314-13.572 30.314-30.313c0-16.742-13.572-30.314-30.314-30.314ZM71.611 192.299c-16.742 0-30.315 13.572-30.315 30.314s13.573 30.314 30.315 30.314c16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314Zm303.138 0c-16.729 0-30.294 13.551-30.315 30.275l.001.039-.001.038c.021 16.725 13.586 30.276 30.315 30.276 16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314ZM223.178 40.73c-16.742 0-30.314 13.573-30.314 30.315s13.573 30.313 30.314 30.313c16.742 0 30.313-13.572 30.314-30.313 0-16.742-13.572-30.314-30.314-30.315Z"})]}),C15TIcon=({title:e="c15t",titleId:c="c15t",...n})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 408 149","aria-labelledby":c,...n,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:c,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M74.133 14.042c-5.58 0-10.105 4.524-10.105 10.104 0 5.581 4.524 10.105 10.105 10.105 5.58 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104ZM50.556 24.146C50.556 11.125 61.112.57 74.133.57 87.154.57 97.71 11.125 97.71 24.146c0 13.022-10.556 23.578-23.577 23.578-4.06 0-7.88-1.027-11.216-2.834L44.354 63.453a23.424 23.424 0 0 1 1.858 4.48h55.843c2.899-9.74 11.921-16.841 22.601-16.841 13.022 0 23.578 10.556 23.578 23.577 0 13.022-10.556 23.578-23.578 23.578-10.68 0-19.702-7.102-22.601-16.841H46.211a23.455 23.455 0 0 1-2.628 5.798l18.015 18.015a23.473 23.473 0 0 1 12.535-3.604c13.021 0 23.577 10.556 23.577 23.577 0 13.022-10.556 23.577-23.577 23.577-13.021 0-23.577-10.555-23.577-23.577 0-3.506.765-6.833 2.138-9.824l-19.26-19.26a23.49 23.49 0 0 1-9.823 2.139C10.588 98.247.032 87.69.032 74.669c0-13.021 10.556-23.577 23.577-23.577 4.061 0 7.882 1.026 11.217 2.834L53.39 35.364a23.473 23.473 0 0 1-2.834-11.218Zm63.996 50.523v.023c.012 5.57 4.531 10.082 10.104 10.082 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104-5.573 0-10.092 4.511-10.104 10.082v.022ZM23.61 64.565c-5.58 0-10.104 4.524-10.104 10.104 0 5.58 4.524 10.105 10.104 10.105 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104Zm40.418 60.627c0-5.581 4.524-10.104 10.105-10.104 5.58 0 10.105 4.523 10.105 10.104 0 5.581-4.524 10.105-10.105 10.105-5.58 0-10.105-4.524-10.105-10.105Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M213.869 86.31c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.959 18.6 18.959 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Zm70.372-39.72h-11.88V33.03h26.88v83.639h-15v-70.08Zm23.468 54.599 12.24-6.96c2.88 6.12 9.24 10.2 16.44 10.2 10.2 0 17.04-6.36 17.04-15.84s-6.48-15.84-16.2-15.84c-4.68 0-9.48 1.44-12.48 4.32l-10.8-2.88 7.8-41.16h40.56v13.56h-29.28l-3 15.12c2.52-1.08 5.52-1.56 8.76-1.56 17.76 0 29.52 11.28 29.52 28.32 0 17.76-12.72 29.64-31.92 29.64-12.6 0-23.52-6.84-28.68-16.92Zm72.386-31.92h-7.8V56.19h7.8V33.03h14.4v23.16h13.08v13.08h-13.08v47.4h-14.4v-47.4Z"})]}),ConsentLogo=({title:e="Consent",titleId:c="consent-logo",...n})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 595 97","aria-labelledby":c,className:"consent-logo",...n,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:c,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.679 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.868 23.868 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.118 74.716a68.462 68.462 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H1.118Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M566.424 36.6h-7.8V23.52h7.8V.36h14.4v23.16h13.08V36.6h-13.08V84h-14.4V36.6ZM497.535 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM429.265 53.76c0-19.44 13.56-31.92 31.68-31.92 18 0 29.88 13.56 29.88 30.48 0 0 0 2.64-.24 5.04h-47.04c.48 9.6 7.56 15.84 18.24 15.84 7.32 0 11.76-2.4 16.32-6.96l8.64 8.4c-7.8 8.28-16.32 10.8-25.44 10.8-18.96 0-32.04-12.24-32.04-31.2v-.48Zm46.92-6.48c0-7.2-6.84-13.2-15.24-13.2-9 0-16.44 5.88-17.04 13.2h32.28ZM385.367 65.52c2.52 4.08 8.159 7.56 15.959 7.56 8.28 0 10.8-3.48 10.8-6.6 0-5.04-7.2-6.24-16.56-9.6-8.88-3.24-14.88-7.8-14.88-17.04 0-11.64 9.84-18.12 21.36-18.12 10.08 0 16.8 3.84 21 9.12l-8.039 8.52c-2.521-3-6.6-5.28-13.2-5.28-4.56 0-7.321 2.16-7.321 5.4 0 4.56 5.041 5.16 15.241 8.88 11.16 3.96 16.199 9.24 16.199 18 0 10.44-7.559 19.2-24.839 19.2-12.6 0-21.241-5.04-24.961-12.24l9.241-7.8ZM315.997 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM242.806 53.76c0-18.12 14.64-32.04 33-32.04 18.24 0 33 13.92 33 32.04 0 18.12-14.76 32.04-33 32.04-18.36 0-33-13.92-33-32.04Zm14.28 0c0 10.68 8.04 18.96 18.72 18.96 10.56 0 18.72-8.28 18.72-18.96 0-10.68-8.16-18.96-18.72-18.96-10.68 0-18.72 8.28-18.72 18.96ZM183.387 53.64c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.96 18.6 18.96 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Z"})]}),ConsentIconOnly=({title:e="Consent",titleId:c="consent-icon",...n})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 140 97",fill:"none","aria-labelledby":c,...n,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:c,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.179 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.87 23.87 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M.618 74.716a68.453 68.453 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H.618Z",clipRule:"evenodd"})]}),FingerprintIcon=({title:e="Privacy",titleId:c="fingerprint-icon",...n})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":c,...n,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:c,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M2 12a10 10 0 0 1 18-6"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M2 16h.01"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]}),SettingsIcon=({title:e="Settings",titleId:c="settings-icon",...n})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":c,...n,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:c,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,jsx_runtime_namespaceObject.jsx)("circle",{cx:"12",cy:"12",r:"3"})]});for(var __rspack_i in exports.C15TIcon=__webpack_exports__.C15TIcon,exports.C15TIconOnly=__webpack_exports__.C15TIconOnly,exports.ConsentIconOnly=__webpack_exports__.ConsentIconOnly,exports.ConsentLogo=__webpack_exports__.ConsentLogo,exports.FingerprintIcon=__webpack_exports__.FingerprintIcon,exports.SettingsIcon=__webpack_exports__.SettingsIcon,__webpack_exports__)-1===["C15TIcon","C15TIconOnly","ConsentIconOnly","ConsentLogo","FingerprintIcon","SettingsIcon"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,n)=>{for(var t in n)__webpack_require__.o(n,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{C15TIcon:()=>C15TIcon,FingerprintIcon:()=>FingerprintIcon,ConsentIconOnly:()=>ConsentIconOnly,C15TIconOnly:()=>C15TIconOnly,InthLogo:()=>InthLogo,ConsentLogo:()=>ConsentLogo,InthIconOnly:()=>InthIconOnly,SettingsIcon:()=>SettingsIcon});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),C15TIconOnly=({title:e="c15t",titleId:n="c15t-icon",...t})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 446 445","aria-labelledby":n,...t,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:n,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M223.178.313c39.064 0 70.732 31.668 70.732 70.732-.001 39.064-31.668 70.731-70.732 70.731-12.181 0-23.642-3.079-33.649-8.502l-55.689 55.689a70.267 70.267 0 0 1 5.574 13.441h167.531c8.695-29.217 35.762-50.523 67.804-50.523 39.064 0 70.731 31.668 70.731 70.732s-31.668 70.732-70.731 70.732c-32.042 0-59.108-21.306-67.803-50.523H139.413a70.417 70.417 0 0 1-7.888 17.396l54.046 54.046c10.893-6.851 23.786-10.815 37.605-10.815 39.064 0 70.732 31.669 70.732 70.733 0 39.064-31.668 70.731-70.732 70.731s-70.732-31.667-70.732-70.731c0-10.518 2.296-20.499 6.414-29.471l-57.78-57.78c-8.972 4.117-18.952 6.414-29.47 6.414-39.063 0-70.731-31.668-70.732-70.732 0-39.064 31.669-70.732 70.733-70.732 12.18 0 23.642 3.079 33.649 8.502l55.688-55.688c-5.423-10.007-8.502-21.469-8.502-33.65 0-39.064 31.668-70.733 70.732-70.733Zm0 343.555c-16.742 0-30.314 13.572-30.314 30.314 0 16.741 13.572 30.313 30.314 30.313s30.314-13.572 30.314-30.313c0-16.742-13.572-30.314-30.314-30.314ZM71.611 192.299c-16.742 0-30.315 13.572-30.315 30.314s13.573 30.314 30.315 30.314c16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314Zm303.138 0c-16.729 0-30.294 13.551-30.315 30.275l.001.039-.001.038c.021 16.725 13.586 30.276 30.315 30.276 16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314ZM223.178 40.73c-16.742 0-30.314 13.573-30.314 30.315s13.573 30.313 30.314 30.313c16.742 0 30.313-13.572 30.314-30.313 0-16.742-13.572-30.314-30.314-30.315Z"})]}),C15TIcon=({title:e="c15t",titleId:n="c15t",...t})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 408 149","aria-labelledby":n,...t,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:n,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M74.133 14.042c-5.58 0-10.105 4.524-10.105 10.104 0 5.581 4.524 10.105 10.105 10.105 5.58 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104ZM50.556 24.146C50.556 11.125 61.112.57 74.133.57 87.154.57 97.71 11.125 97.71 24.146c0 13.022-10.556 23.578-23.577 23.578-4.06 0-7.88-1.027-11.216-2.834L44.354 63.453a23.424 23.424 0 0 1 1.858 4.48h55.843c2.899-9.74 11.921-16.841 22.601-16.841 13.022 0 23.578 10.556 23.578 23.577 0 13.022-10.556 23.578-23.578 23.578-10.68 0-19.702-7.102-22.601-16.841H46.211a23.455 23.455 0 0 1-2.628 5.798l18.015 18.015a23.473 23.473 0 0 1 12.535-3.604c13.021 0 23.577 10.556 23.577 23.577 0 13.022-10.556 23.577-23.577 23.577-13.021 0-23.577-10.555-23.577-23.577 0-3.506.765-6.833 2.138-9.824l-19.26-19.26a23.49 23.49 0 0 1-9.823 2.139C10.588 98.247.032 87.69.032 74.669c0-13.021 10.556-23.577 23.577-23.577 4.061 0 7.882 1.026 11.217 2.834L53.39 35.364a23.473 23.473 0 0 1-2.834-11.218Zm63.996 50.523v.023c.012 5.57 4.531 10.082 10.104 10.082 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104-5.573 0-10.092 4.511-10.104 10.082v.022ZM23.61 64.565c-5.58 0-10.104 4.524-10.104 10.104 0 5.58 4.524 10.105 10.104 10.105 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104Zm40.418 60.627c0-5.581 4.524-10.104 10.105-10.104 5.58 0 10.105 4.523 10.105 10.104 0 5.581-4.524 10.105-10.105 10.105-5.58 0-10.105-4.524-10.105-10.105Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M213.869 86.31c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.959 18.6 18.959 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Zm70.372-39.72h-11.88V33.03h26.88v83.639h-15v-70.08Zm23.468 54.599 12.24-6.96c2.88 6.12 9.24 10.2 16.44 10.2 10.2 0 17.04-6.36 17.04-15.84s-6.48-15.84-16.2-15.84c-4.68 0-9.48 1.44-12.48 4.32l-10.8-2.88 7.8-41.16h40.56v13.56h-29.28l-3 15.12c2.52-1.08 5.52-1.56 8.76-1.56 17.76 0 29.52 11.28 29.52 28.32 0 17.76-12.72 29.64-31.92 29.64-12.6 0-23.52-6.84-28.68-16.92Zm72.386-31.92h-7.8V56.19h7.8V33.03h14.4v23.16h13.08v13.08h-13.08v47.4h-14.4v-47.4Z"})]}),InthMark=({title:e="INTH",titleId:n="inth-logo",...t})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88 90",fill:"none","aria-labelledby":n,...t,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:n,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M40.9164 0V8.26444H27.6933V26.7966H40.9164V35.0608H6.15594V26.7966H19.3788V8.26444H6.15594V0H40.9164Z"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M72.1149 20.1264V0H80.0343V35.0608H74.2747L54.9798 14.8193V35.0608H47.0604V0H52.964L72.1149 20.1264Z"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M71.36 41.6H88V89.6H0V41.6H61.12V31.04L71.36 41.6ZM6.15594 48.0891V56.4034H19.1784V83.2H27.4428V56.4034H40.5656V48.0891H6.15594ZM47.0603 48.1391V83.2H55.3247V70.2441H71.7531V83.2H80.0675V48.1391H71.7531V61.9797H55.3247V48.1391H47.0603Z"})]}),InthLogo=e=>(0,jsx_runtime_namespaceObject.jsx)(InthMark,{titleId:"inth-full-logo",...e}),InthIconOnly=e=>(0,jsx_runtime_namespaceObject.jsx)(InthMark,{titleId:"inth-icon",...e}),ConsentLogo=({title:e="Consent",titleId:n="consent-logo",...t})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 595 97","aria-labelledby":n,className:"consent-logo",...t,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:n,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.679 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.868 23.868 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.118 74.716a68.462 68.462 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H1.118Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",d:"M566.424 36.6h-7.8V23.52h7.8V.36h14.4v23.16h13.08V36.6h-13.08V84h-14.4V36.6ZM497.535 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM429.265 53.76c0-19.44 13.56-31.92 31.68-31.92 18 0 29.88 13.56 29.88 30.48 0 0 0 2.64-.24 5.04h-47.04c.48 9.6 7.56 15.84 18.24 15.84 7.32 0 11.76-2.4 16.32-6.96l8.64 8.4c-7.8 8.28-16.32 10.8-25.44 10.8-18.96 0-32.04-12.24-32.04-31.2v-.48Zm46.92-6.48c0-7.2-6.84-13.2-15.24-13.2-9 0-16.44 5.88-17.04 13.2h32.28ZM385.367 65.52c2.52 4.08 8.159 7.56 15.959 7.56 8.28 0 10.8-3.48 10.8-6.6 0-5.04-7.2-6.24-16.56-9.6-8.88-3.24-14.88-7.8-14.88-17.04 0-11.64 9.84-18.12 21.36-18.12 10.08 0 16.8 3.84 21 9.12l-8.039 8.52c-2.521-3-6.6-5.28-13.2-5.28-4.56 0-7.321 2.16-7.321 5.4 0 4.56 5.041 5.16 15.241 8.88 11.16 3.96 16.199 9.24 16.199 18 0 10.44-7.559 19.2-24.839 19.2-12.6 0-21.241-5.04-24.961-12.24l9.241-7.8ZM315.997 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM242.806 53.76c0-18.12 14.64-32.04 33-32.04 18.24 0 33 13.92 33 32.04 0 18.12-14.76 32.04-33 32.04-18.36 0-33-13.92-33-32.04Zm14.28 0c0 10.68 8.04 18.96 18.72 18.96 10.56 0 18.72-8.28 18.72-18.96 0-10.68-8.16-18.96-18.72-18.96-10.68 0-18.72 8.28-18.72 18.96ZM183.387 53.64c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.96 18.6 18.96 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Z"})]}),ConsentIconOnly=({title:e="Consent",titleId:n="consent-icon",...t})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 140 97",fill:"none","aria-labelledby":n,...t,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:n,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.179 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.87 23.87 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M.618 74.716a68.453 68.453 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H.618Z",clipRule:"evenodd"})]}),FingerprintIcon=({title:e="Privacy",titleId:n="fingerprint-icon",...t})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":n,...t,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:n,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M2 12a10 10 0 0 1 18-6"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M2 16h.01"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]}),SettingsIcon=({title:e="Settings",titleId:n="settings-icon",...t})=>(0,jsx_runtime_namespaceObject.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":n,...t,children:[(0,jsx_runtime_namespaceObject.jsx)("title",{id:n,children:e}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,jsx_runtime_namespaceObject.jsx)("circle",{cx:"12",cy:"12",r:"3"})]});for(var __rspack_i in exports.C15TIcon=__webpack_exports__.C15TIcon,exports.C15TIconOnly=__webpack_exports__.C15TIconOnly,exports.ConsentIconOnly=__webpack_exports__.ConsentIconOnly,exports.ConsentLogo=__webpack_exports__.ConsentLogo,exports.FingerprintIcon=__webpack_exports__.FingerprintIcon,exports.InthIconOnly=__webpack_exports__.InthIconOnly,exports.InthLogo=__webpack_exports__.InthLogo,exports.SettingsIcon=__webpack_exports__.SettingsIcon,__webpack_exports__)-1===["C15TIcon","C15TIconOnly","ConsentIconOnly","ConsentLogo","FingerprintIcon","InthIconOnly","InthLogo","SettingsIcon"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l,jsxs as c}from"react/jsx-runtime";let e=({title:e="c15t",titleId:n="c15t-icon",...t})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 446 445","aria-labelledby":n,...t,children:[l("title",{id:n,children:e}),l("path",{fill:"currentColor",d:"M223.178.313c39.064 0 70.732 31.668 70.732 70.732-.001 39.064-31.668 70.731-70.732 70.731-12.181 0-23.642-3.079-33.649-8.502l-55.689 55.689a70.267 70.267 0 0 1 5.574 13.441h167.531c8.695-29.217 35.762-50.523 67.804-50.523 39.064 0 70.731 31.668 70.731 70.732s-31.668 70.732-70.731 70.732c-32.042 0-59.108-21.306-67.803-50.523H139.413a70.417 70.417 0 0 1-7.888 17.396l54.046 54.046c10.893-6.851 23.786-10.815 37.605-10.815 39.064 0 70.732 31.669 70.732 70.733 0 39.064-31.668 70.731-70.732 70.731s-70.732-31.667-70.732-70.731c0-10.518 2.296-20.499 6.414-29.471l-57.78-57.78c-8.972 4.117-18.952 6.414-29.47 6.414-39.063 0-70.731-31.668-70.732-70.732 0-39.064 31.669-70.732 70.733-70.732 12.18 0 23.642 3.079 33.649 8.502l55.688-55.688c-5.423-10.007-8.502-21.469-8.502-33.65 0-39.064 31.668-70.733 70.732-70.733Zm0 343.555c-16.742 0-30.314 13.572-30.314 30.314 0 16.741 13.572 30.313 30.314 30.313s30.314-13.572 30.314-30.313c0-16.742-13.572-30.314-30.314-30.314ZM71.611 192.299c-16.742 0-30.315 13.572-30.315 30.314s13.573 30.314 30.315 30.314c16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314Zm303.138 0c-16.729 0-30.294 13.551-30.315 30.275l.001.039-.001.038c.021 16.725 13.586 30.276 30.315 30.276 16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314ZM223.178 40.73c-16.742 0-30.314 13.573-30.314 30.315s13.573 30.313 30.314 30.313c16.742 0 30.313-13.572 30.314-30.313 0-16.742-13.572-30.314-30.314-30.315Z"})]}),n=({title:e="c15t",titleId:n="c15t",...t})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 408 149","aria-labelledby":n,...t,children:[l("title",{id:n,children:e}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M74.133 14.042c-5.58 0-10.105 4.524-10.105 10.104 0 5.581 4.524 10.105 10.105 10.105 5.58 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104ZM50.556 24.146C50.556 11.125 61.112.57 74.133.57 87.154.57 97.71 11.125 97.71 24.146c0 13.022-10.556 23.578-23.577 23.578-4.06 0-7.88-1.027-11.216-2.834L44.354 63.453a23.424 23.424 0 0 1 1.858 4.48h55.843c2.899-9.74 11.921-16.841 22.601-16.841 13.022 0 23.578 10.556 23.578 23.577 0 13.022-10.556 23.578-23.578 23.578-10.68 0-19.702-7.102-22.601-16.841H46.211a23.455 23.455 0 0 1-2.628 5.798l18.015 18.015a23.473 23.473 0 0 1 12.535-3.604c13.021 0 23.577 10.556 23.577 23.577 0 13.022-10.556 23.577-23.577 23.577-13.021 0-23.577-10.555-23.577-23.577 0-3.506.765-6.833 2.138-9.824l-19.26-19.26a23.49 23.49 0 0 1-9.823 2.139C10.588 98.247.032 87.69.032 74.669c0-13.021 10.556-23.577 23.577-23.577 4.061 0 7.882 1.026 11.217 2.834L53.39 35.364a23.473 23.473 0 0 1-2.834-11.218Zm63.996 50.523v.023c.012 5.57 4.531 10.082 10.104 10.082 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104-5.573 0-10.092 4.511-10.104 10.082v.022ZM23.61 64.565c-5.58 0-10.104 4.524-10.104 10.104 0 5.58 4.524 10.105 10.104 10.105 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104Zm40.418 60.627c0-5.581 4.524-10.104 10.105-10.104 5.58 0 10.105 4.523 10.105 10.104 0 5.581-4.524 10.105-10.105 10.105-5.58 0-10.105-4.524-10.105-10.105Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",d:"M213.869 86.31c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.959 18.6 18.959 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Zm70.372-39.72h-11.88V33.03h26.88v83.639h-15v-70.08Zm23.468 54.599 12.24-6.96c2.88 6.12 9.24 10.2 16.44 10.2 10.2 0 17.04-6.36 17.04-15.84s-6.48-15.84-16.2-15.84c-4.68 0-9.48 1.44-12.48 4.32l-10.8-2.88 7.8-41.16h40.56v13.56h-29.28l-3 15.12c2.52-1.08 5.52-1.56 8.76-1.56 17.76 0 29.52 11.28 29.52 28.32 0 17.76-12.72 29.64-31.92 29.64-12.6 0-23.52-6.84-28.68-16.92Zm72.386-31.92h-7.8V56.19h7.8V33.03h14.4v23.16h13.08v13.08h-13.08v47.4h-14.4v-47.4Z"})]}),t=({title:e="Consent",titleId:n="consent-logo",...t})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 595 97","aria-labelledby":n,className:"consent-logo",...t,children:[l("title",{id:n,children:e}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.679 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.868 23.868 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.118 74.716a68.462 68.462 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H1.118Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",d:"M566.424 36.6h-7.8V23.52h7.8V.36h14.4v23.16h13.08V36.6h-13.08V84h-14.4V36.6ZM497.535 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM429.265 53.76c0-19.44 13.56-31.92 31.68-31.92 18 0 29.88 13.56 29.88 30.48 0 0 0 2.64-.24 5.04h-47.04c.48 9.6 7.56 15.84 18.24 15.84 7.32 0 11.76-2.4 16.32-6.96l8.64 8.4c-7.8 8.28-16.32 10.8-25.44 10.8-18.96 0-32.04-12.24-32.04-31.2v-.48Zm46.92-6.48c0-7.2-6.84-13.2-15.24-13.2-9 0-16.44 5.88-17.04 13.2h32.28ZM385.367 65.52c2.52 4.08 8.159 7.56 15.959 7.56 8.28 0 10.8-3.48 10.8-6.6 0-5.04-7.2-6.24-16.56-9.6-8.88-3.24-14.88-7.8-14.88-17.04 0-11.64 9.84-18.12 21.36-18.12 10.08 0 16.8 3.84 21 9.12l-8.039 8.52c-2.521-3-6.6-5.28-13.2-5.28-4.56 0-7.321 2.16-7.321 5.4 0 4.56 5.041 5.16 15.241 8.88 11.16 3.96 16.199 9.24 16.199 18 0 10.44-7.559 19.2-24.839 19.2-12.6 0-21.241-5.04-24.961-12.24l9.241-7.8ZM315.997 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM242.806 53.76c0-18.12 14.64-32.04 33-32.04 18.24 0 33 13.92 33 32.04 0 18.12-14.76 32.04-33 32.04-18.36 0-33-13.92-33-32.04Zm14.28 0c0 10.68 8.04 18.96 18.72 18.96 10.56 0 18.72-8.28 18.72-18.96 0-10.68-8.16-18.96-18.72-18.96-10.68 0-18.72 8.28-18.72 18.96ZM183.387 53.64c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.96 18.6 18.96 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Z"})]}),o=({title:e="Consent",titleId:n="consent-icon",...t})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 140 97",fill:"none","aria-labelledby":n,...t,children:[l("title",{id:n,children:e}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.179 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.87 23.87 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M.618 74.716a68.453 68.453 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H.618Z",clipRule:"evenodd"})]}),a=({title:e="Privacy",titleId:n="fingerprint-icon",...t})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":n,...t,children:[l("title",{id:n,children:e}),l("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),l("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),l("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),l("path",{d:"M2 12a10 10 0 0 1 18-6"}),l("path",{d:"M2 16h.01"}),l("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),l("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),l("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),l("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]}),i=({title:e="Settings",titleId:n="settings-icon",...t})=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":n,...t,children:[l("title",{id:n,children:e}),l("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),l("circle",{cx:"12",cy:"12",r:"3"})]});export{n as C15TIcon,e as C15TIconOnly,o as ConsentIconOnly,t as ConsentLogo,a as FingerprintIcon,i as SettingsIcon};
|
|
1
|
+
import{jsx as l,jsxs as e}from"react/jsx-runtime";let c=({title:c="c15t",titleId:n="c15t-icon",...t})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 446 445","aria-labelledby":n,...t,children:[l("title",{id:n,children:c}),l("path",{fill:"currentColor",d:"M223.178.313c39.064 0 70.732 31.668 70.732 70.732-.001 39.064-31.668 70.731-70.732 70.731-12.181 0-23.642-3.079-33.649-8.502l-55.689 55.689a70.267 70.267 0 0 1 5.574 13.441h167.531c8.695-29.217 35.762-50.523 67.804-50.523 39.064 0 70.731 31.668 70.731 70.732s-31.668 70.732-70.731 70.732c-32.042 0-59.108-21.306-67.803-50.523H139.413a70.417 70.417 0 0 1-7.888 17.396l54.046 54.046c10.893-6.851 23.786-10.815 37.605-10.815 39.064 0 70.732 31.669 70.732 70.733 0 39.064-31.668 70.731-70.732 70.731s-70.732-31.667-70.732-70.731c0-10.518 2.296-20.499 6.414-29.471l-57.78-57.78c-8.972 4.117-18.952 6.414-29.47 6.414-39.063 0-70.731-31.668-70.732-70.732 0-39.064 31.669-70.732 70.733-70.732 12.18 0 23.642 3.079 33.649 8.502l55.688-55.688c-5.423-10.007-8.502-21.469-8.502-33.65 0-39.064 31.668-70.733 70.732-70.733Zm0 343.555c-16.742 0-30.314 13.572-30.314 30.314 0 16.741 13.572 30.313 30.314 30.313s30.314-13.572 30.314-30.313c0-16.742-13.572-30.314-30.314-30.314ZM71.611 192.299c-16.742 0-30.315 13.572-30.315 30.314s13.573 30.314 30.315 30.314c16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314Zm303.138 0c-16.729 0-30.294 13.551-30.315 30.275l.001.039-.001.038c.021 16.725 13.586 30.276 30.315 30.276 16.741 0 30.313-13.572 30.313-30.314 0-16.741-13.572-30.314-30.313-30.314ZM223.178 40.73c-16.742 0-30.314 13.573-30.314 30.315s13.573 30.313 30.314 30.313c16.742 0 30.313-13.572 30.314-30.313 0-16.742-13.572-30.314-30.314-30.315Z"})]}),n=({title:c="c15t",titleId:n="c15t",...t})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 408 149","aria-labelledby":n,...t,children:[l("title",{id:n,children:c}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M74.133 14.042c-5.58 0-10.105 4.524-10.105 10.104 0 5.581 4.524 10.105 10.105 10.105 5.58 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104ZM50.556 24.146C50.556 11.125 61.112.57 74.133.57 87.154.57 97.71 11.125 97.71 24.146c0 13.022-10.556 23.578-23.577 23.578-4.06 0-7.88-1.027-11.216-2.834L44.354 63.453a23.424 23.424 0 0 1 1.858 4.48h55.843c2.899-9.74 11.921-16.841 22.601-16.841 13.022 0 23.578 10.556 23.578 23.577 0 13.022-10.556 23.578-23.578 23.578-10.68 0-19.702-7.102-22.601-16.841H46.211a23.455 23.455 0 0 1-2.628 5.798l18.015 18.015a23.473 23.473 0 0 1 12.535-3.604c13.021 0 23.577 10.556 23.577 23.577 0 13.022-10.556 23.577-23.577 23.577-13.021 0-23.577-10.555-23.577-23.577 0-3.506.765-6.833 2.138-9.824l-19.26-19.26a23.49 23.49 0 0 1-9.823 2.139C10.588 98.247.032 87.69.032 74.669c0-13.021 10.556-23.577 23.577-23.577 4.061 0 7.882 1.026 11.217 2.834L53.39 35.364a23.473 23.473 0 0 1-2.834-11.218Zm63.996 50.523v.023c.012 5.57 4.531 10.082 10.104 10.082 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104-5.573 0-10.092 4.511-10.104 10.082v.022ZM23.61 64.565c-5.58 0-10.104 4.524-10.104 10.104 0 5.58 4.524 10.105 10.104 10.105 5.581 0 10.105-4.524 10.105-10.105 0-5.58-4.524-10.104-10.105-10.104Zm40.418 60.627c0-5.581 4.524-10.104 10.105-10.104 5.58 0 10.105 4.523 10.105 10.104 0 5.581-4.524 10.105-10.105 10.105-5.58 0-10.105-4.524-10.105-10.105Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",d:"M213.869 86.31c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.959 18.6 18.959 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Zm70.372-39.72h-11.88V33.03h26.88v83.639h-15v-70.08Zm23.468 54.599 12.24-6.96c2.88 6.12 9.24 10.2 16.44 10.2 10.2 0 17.04-6.36 17.04-15.84s-6.48-15.84-16.2-15.84c-4.68 0-9.48 1.44-12.48 4.32l-10.8-2.88 7.8-41.16h40.56v13.56h-29.28l-3 15.12c2.52-1.08 5.52-1.56 8.76-1.56 17.76 0 29.52 11.28 29.52 28.32 0 17.76-12.72 29.64-31.92 29.64-12.6 0-23.52-6.84-28.68-16.92Zm72.386-31.92h-7.8V56.19h7.8V33.03h14.4v23.16h13.08v13.08h-13.08v47.4h-14.4v-47.4Z"})]}),t=({title:c="INTH",titleId:n="inth-logo",...t})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88 90",fill:"none","aria-labelledby":n,...t,children:[l("title",{id:n,children:c}),l("path",{fill:"currentColor",d:"M40.9164 0V8.26444H27.6933V26.7966H40.9164V35.0608H6.15594V26.7966H19.3788V8.26444H6.15594V0H40.9164Z"}),l("path",{fill:"currentColor",d:"M72.1149 20.1264V0H80.0343V35.0608H74.2747L54.9798 14.8193V35.0608H47.0604V0H52.964L72.1149 20.1264Z"}),l("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M71.36 41.6H88V89.6H0V41.6H61.12V31.04L71.36 41.6ZM6.15594 48.0891V56.4034H19.1784V83.2H27.4428V56.4034H40.5656V48.0891H6.15594ZM47.0603 48.1391V83.2H55.3247V70.2441H71.7531V83.2H80.0675V48.1391H71.7531V61.9797H55.3247V48.1391H47.0603Z"})]}),o=e=>l(t,{titleId:"inth-full-logo",...e}),i=e=>l(t,{titleId:"inth-icon",...e}),r=({title:c="Consent",titleId:n="consent-logo",...t})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 595 97","aria-labelledby":n,className:"consent-logo",...t,children:[l("title",{id:n,children:c}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.679 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.868 23.868 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.118 74.716a68.462 68.462 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H1.118Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",d:"M566.424 36.6h-7.8V23.52h7.8V.36h14.4v23.16h13.08V36.6h-13.08V84h-14.4V36.6ZM497.535 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM429.265 53.76c0-19.44 13.56-31.92 31.68-31.92 18 0 29.88 13.56 29.88 30.48 0 0 0 2.64-.24 5.04h-47.04c.48 9.6 7.56 15.84 18.24 15.84 7.32 0 11.76-2.4 16.32-6.96l8.64 8.4c-7.8 8.28-16.32 10.8-25.44 10.8-18.96 0-32.04-12.24-32.04-31.2v-.48Zm46.92-6.48c0-7.2-6.84-13.2-15.24-13.2-9 0-16.44 5.88-17.04 13.2h32.28ZM385.367 65.52c2.52 4.08 8.159 7.56 15.959 7.56 8.28 0 10.8-3.48 10.8-6.6 0-5.04-7.2-6.24-16.56-9.6-8.88-3.24-14.88-7.8-14.88-17.04 0-11.64 9.84-18.12 21.36-18.12 10.08 0 16.8 3.84 21 9.12l-8.039 8.52c-2.521-3-6.6-5.28-13.2-5.28-4.56 0-7.321 2.16-7.321 5.4 0 4.56 5.041 5.16 15.241 8.88 11.16 3.96 16.199 9.24 16.199 18 0 10.44-7.559 19.2-24.839 19.2-12.6 0-21.241-5.04-24.961-12.24l9.241-7.8ZM315.997 23.52h14.28v8.64c2.76-5.76 9.6-9.84 18.36-9.84 14.52 0 22.92 9.36 22.92 24.24V84h-14.4V48.6c0-8.16-4.68-13.44-12.84-13.44s-14.04 5.76-14.04 14.04V84h-14.28V23.52ZM242.806 53.76c0-18.12 14.64-32.04 33-32.04 18.24 0 33 13.92 33 32.04 0 18.12-14.76 32.04-33 32.04-18.36 0-33-13.92-33-32.04Zm14.28 0c0 10.68 8.04 18.96 18.72 18.96 10.56 0 18.72-8.28 18.72-18.96 0-10.68-8.16-18.96-18.72-18.96-10.68 0-18.72 8.28-18.72 18.96ZM183.387 53.64c0-18.48 14.64-32.04 32.88-32.04 9 0 17.28 3 24.24 10.44l-8.88 9.24c-4.08-4.2-8.88-6.6-15.36-6.6-10.56 0-18.6 8.04-18.6 18.96 0 10.92 8.04 18.96 18.6 18.96 6.48 0 11.28-2.4 15.36-6.6l8.88 9.24c-6.96 7.44-15.24 10.44-24.24 10.44-18.24 0-32.88-13.56-32.88-32.04Z"})]}),a=({title:c="Consent",titleId:n="consent-icon",...t})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 140 97",fill:"none","aria-labelledby":n,...t,children:[l("title",{id:n,children:c}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M53.179 70.787c6.17 0 11.172-5.002 11.172-11.172 0-4.009-2.111-7.524-5.283-9.495a23.87 23.87 0 0 1 8.817-1.677c13.217 0 23.93 10.714 23.93 23.93s-10.713 23.93-23.93 23.93c-13.216 0-23.93-10.714-23.93-23.93 0-1.924.227-3.795.656-5.588a11.148 11.148 0 0 0 8.568 4.002Z",clipRule:"evenodd"}),l("path",{fill:"currentColor",fillRule:"evenodd",d:"M.618 74.716a68.453 68.453 0 0 1-.098-3.654c0-37.205 30.16-67.365 67.365-67.365s67.365 30.16 67.365 67.365c0 1.226-.032 2.444-.097 3.654h-21.927c.041-.776.061-1.557.061-2.343 0-24.531-19.887-44.418-44.418-44.418-24.532 0-44.418 19.887-44.418 44.418 0 .786.02 1.567.06 2.343H.618Z",clipRule:"evenodd"})]}),d=({title:c="Privacy",titleId:n="fingerprint-icon",...t})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":n,...t,children:[l("title",{id:n,children:c}),l("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),l("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),l("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),l("path",{d:"M2 12a10 10 0 0 1 18-6"}),l("path",{d:"M2 16h.01"}),l("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),l("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),l("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),l("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]}),h=({title:c="Settings",titleId:n="settings-icon",...t})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-labelledby":n,...t,children:[l("title",{id:n,children:c}),l("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),l("circle",{cx:"12",cy:"12",r:"3"})]});export{n as C15TIcon,c as C15TIconOnly,a as ConsentIconOnly,r as ConsentLogo,d as FingerprintIcon,i as InthIconOnly,o as InthLogo,h as SettingsIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./switch"(_){_.exports=require("./switch.cjs")}
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./switch"(_){_.exports=require("./switch.cjs")}},__webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=_=>{var e=_&&_.__esModule?()=>_.default:()=>_;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(_,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r)&&Object.defineProperty(_,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e),__webpack_require__.r=_=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var __webpack_exports__={};for(var __rspack_i in(()=>{__webpack_require__.r(__webpack_exports__);var _=__webpack_require__("./switch"),e={};for(let r in _)"default"!==r&&(e[r]=()=>_[r]);__webpack_require__.d(__webpack_exports__,e)})(),__webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./switch.js";
|
|
1
|
+
export*from"./switch.js";
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./use-component-config"(e){e.exports=require("./use-component-config.cjs")},"./use-consent-dialog-trigger"(e){e.exports=require("./use-consent-dialog-trigger.cjs")},"./use-consent-manager"(e){e.exports=require("./use-consent-manager.cjs")},"./use-focus-trap"(e){e.exports=require("./use-focus-trap.cjs")},"./use-headless-consent-ui"(e){e.exports=require("./use-headless-consent-ui.cjs")},"./use-headless-iab-consent-ui"(e){e.exports=require("./use-headless-iab-consent-ui.cjs")},"./use-reduced-motion"(e){e.exports=require("./use-reduced-motion.cjs")},"./use-ssr-status"(e){e.exports=require("./use-ssr-status.cjs")},"./use-text-direction"(e){e.exports=require("./use-text-direction.cjs")},"
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./use-component-config"(e){e.exports=require("./use-component-config.cjs")},"./use-consent-dialog-trigger"(e){e.exports=require("./use-consent-dialog-trigger.cjs")},"./use-consent-manager"(e){e.exports=require("./use-consent-manager.cjs")},"./use-focus-trap"(e){e.exports=require("./use-focus-trap.cjs")},"./use-headless-consent-ui"(e){e.exports=require("./use-headless-consent-ui.cjs")},"./use-headless-iab-consent-ui"(e){e.exports=require("./use-headless-iab-consent-ui.cjs")},"./use-reduced-motion"(e){e.exports=require("./use-reduced-motion.cjs")},"./use-ssr-status"(e){e.exports=require("./use-ssr-status.cjs")},"./use-text-direction"(e){e.exports=require("./use-text-direction.cjs")},"./use-theme"(e){e.exports=require("./use-theme.cjs")},"./use-translations"(e){e.exports=require("./use-translations.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __rspack_i in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./use-component-config"),_={};for(let r in e)"default"!==r&&(_[r]=()=>e[r]);__webpack_require__.d(__webpack_exports__,_);var r=__webpack_require__("./use-consent-dialog-trigger"),_={};for(let e in r)"default"!==e&&(_[e]=()=>r[e]);__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./use-consent-manager"),_={};for(let e in t)"default"!==e&&(_[e]=()=>t[e]);__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("./use-focus-trap"),_={};for(let e in s)"default"!==e&&(_[e]=()=>s[e]);__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("./use-headless-consent-ui"),_={};for(let e in a)"default"!==e&&(_[e]=()=>a[e]);__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("./use-headless-iab-consent-ui"),_={};for(let e in u)"default"!==e&&(_[e]=()=>u[e]);__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./use-reduced-motion"),_={};for(let e in c)"default"!==e&&(_[e]=()=>c[e]);__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./use-ssr-status"),_={};for(let e in o)"default"!==e&&(_[e]=()=>o[e]);__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./use-text-direction"),_={};for(let e in i)"default"!==e&&(_[e]=()=>i[e]);__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("./use-theme"),_={};for(let e in p)"default"!==e&&(_[e]=()=>p[e]);__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("./use-translations"),_={};for(let e in n)"default"!==e&&(_[e]=()=>n[e]);__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{useConsentManager:()=>useConsentManager});const external_c15t_namespaceObject=require("c15t"),external_react_namespaceObject=require("react"),consent_manager_context_cjs_namespaceObject=require("../context/consent-manager-context.cjs");function useConsentManager(){let e=(0,external_react_namespaceObject.useContext)(consent_manager_context_cjs_namespaceObject.ConsentStateContext);if(void 0===e)throw Error("useConsentManager must be used within a ConsentManagerProvider");let{consents:_,consentInfo:r,consentCategories:t,consentTypes:a,policyCategories:n,policyScopeMode:c}=e.state,s=(0,external_react_namespaceObject.useCallback)(e=>(0,external_c15t_namespaceObject.has)(e,_,{policyCategories:n,policyScopeMode:c}),[_,n,c]),
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{useConsentManager:()=>useConsentManager});const external_c15t_namespaceObject=require("c15t"),external_react_namespaceObject=require("react"),consent_manager_context_cjs_namespaceObject=require("../context/consent-manager-context.cjs");function useConsentManager(){let e=(0,external_react_namespaceObject.useContext)(consent_manager_context_cjs_namespaceObject.ConsentStateContext);if(void 0===e)throw Error("useConsentManager must be used within a ConsentManagerProvider");let{consents:_,consentInfo:r,consentCategories:t,consentTypes:a,policyCategories:n,policyScopeMode:c}=e.state,s=(0,external_react_namespaceObject.useRef)(e.store);s.current=e.store;let o=(0,external_react_namespaceObject.useCallback)(e=>(0,external_c15t_namespaceObject.has)(e,_,{policyCategories:n,policyScopeMode:c}),[_,n,c]),u=(0,external_react_namespaceObject.useCallback)(()=>null!=r,[r]),p=(0,external_react_namespaceObject.useCallback)(()=>a.filter(e=>t.includes(e.name)),[a,t]),b=(0,external_react_namespaceObject.useCallback)(e=>s.current.getState().subscribeToConsentChanges(e),[]);return{...e.state,has:o,hasConsented:u,getDisplayedConsents:p,subscribeToConsentChanges:b,manager:e.manager}}for(var __rspack_i in exports.useConsentManager=__webpack_exports__.useConsentManager,__webpack_exports__)-1===["useConsentManager"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{has as e}from"c15t";import{useCallback as t,useContext as n}from"react";import{ConsentStateContext as
|
|
1
|
+
import{has as e}from"c15t";import{useCallback as t,useContext as r,useRef as n}from"react";import{ConsentStateContext as o}from"../context/consent-manager-context.js";function a(){let a=r(o);if(void 0===a)throw Error("useConsentManager must be used within a ConsentManagerProvider");let{consents:s,consentInfo:i,consentCategories:m,consentTypes:u,policyCategories:c,policyScopeMode:g}=a.state,l=n(a.store);l.current=a.store;let f=t(t=>e(t,s,{policyCategories:c,policyScopeMode:g}),[s,c,g]),C=t(()=>null!=i,[i]),d=t(()=>u.filter(e=>m.includes(e.name)),[u,m]),h=t(e=>l.current.getState().subscribeToConsentChanges(e),[]);return{...a.state,has:f,hasConsented:C,getDisplayedConsents:d,subscribeToConsentChanges:h,manager:a.manager}}export{a as useConsentManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var c in a)__webpack_require__.o(a,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{useHeadlessConsentUI:()=>useHeadlessConsentUI});const utils_namespaceObject=require("@c15t/ui/utils"),external_react_namespaceObject=require("react"),external_use_consent_manager_cjs_namespaceObject=require("./use-consent-manager.cjs"),DEFAULT_UI_SOURCE_BY_SURFACE={banner:"banner",dialog:"dialog"};function useHeadlessConsentUI(){let{activeUI:e,policyBanner:{allowedActions:a,primaryActions:c,layout:r,direction:t,uiProfile:s,scrollLock:o},policyDialog:{allowedActions:l,primaryActions:i,layout:_,direction:n,uiProfile:u,scrollLock:p},saveConsents:b,setActiveUI:m}=(0,external_use_consent_manager_cjs_namespaceObject.useConsentManager)(),y=(0,external_react_namespaceObject.useMemo)(()=>({allowedActions:a,primaryActions:c,layout:r,direction:t,uiProfile:s,scrollLock:o}),[a,t,r,c,s,o]),d=(0,external_react_namespaceObject.useMemo)(()=>({allowedActions:l,primaryActions:i,layout:_,direction:n,uiProfile:u,scrollLock:p}),[l,n,_,i,u,p]),O=(0,external_react_namespaceObject.useMemo)(()=>{let l=(0,utils_namespaceObject.resolvePolicyAllowedActions)({allowedActions:a}),i=(0,utils_namespaceObject.resolvePolicyActionGroups)({allowedActions:l,layout:r}),_=(0,utils_namespaceObject.resolvePolicyOrderedActions)({allowedActions:l,layout:r}),n=(0,utils_namespaceObject.resolvePolicyDirection)(t);return{allowedActions:l,orderedActions:_,actionGroups:i,primaryActions:(0,utils_namespaceObject.resolvePolicyPrimaryActions)({orderedActions:_,primaryActions:c}),layout:r,direction:n,uiProfile:s,scrollLock:o,hasPolicyHints:(0,utils_namespaceObject.hasPolicyHints)(y),shouldFillActions:(0,utils_namespaceObject.shouldFillPolicyActions)({uiProfile:s,actionGroups:i,direction:n}),isVisible:"banner"===e}},[e,a,t,r,c,s,o,y]),j=(0,external_react_namespaceObject.useMemo)(()=>{let a=(0,utils_namespaceObject.resolvePolicyAllowedActions)({allowedActions:l}),c=(0,utils_namespaceObject.resolvePolicyActionGroups)({allowedActions:a,layout:_}),r=(0,utils_namespaceObject.resolvePolicyOrderedActions)({allowedActions:a,layout:_}),t=(0,utils_namespaceObject.resolvePolicyDirection)(n);return{allowedActions:a,orderedActions:r,actionGroups:c,primaryActions:(0,utils_namespaceObject.resolvePolicyPrimaryActions)({orderedActions:r,primaryActions:i}),layout:_,direction:t,uiProfile:u,scrollLock:p,hasPolicyHints:(0,utils_namespaceObject.hasPolicyHints)(d),shouldFillActions:(0,utils_namespaceObject.shouldFillPolicyActions)({uiProfile:u,actionGroups:c,direction:t}),isVisible:"dialog"===e}},[e,l,n,_,i,u,p,d]),A=(0,external_react_namespaceObject.useCallback)(async(e,a)=>{let c=a.uiSource??DEFAULT_UI_SOURCE_BY_SURFACE[a.surface];switch(e){case"accept":await b("all",{uiSource:c});return;case"reject":await b("necessary",{uiSource:c});return}},[b]),k=(0,external_react_namespaceObject.useCallback)((e,a)=>A(e,{surface:"banner",uiSource:a?.uiSource}),[A]),P=(0,external_react_namespaceObject.useCallback)((e,a)=>A(e,{surface:"dialog",uiSource:a?.uiSource}),[A]),w=(0,external_react_namespaceObject.useCallback)(async e=>{await b("custom",{uiSource:e?.uiSource??DEFAULT_UI_SOURCE_BY_SURFACE.dialog})},[b]),f=(0,external_react_namespaceObject.useCallback)(e=>{m("banner",e)},[m]);return{activeUI:e,banner:O,dialog:j,openBanner:f,openDialog:(0,external_react_namespaceObject.useCallback)(()=>{m("dialog")},[m]),closeUI:(0,external_react_namespaceObject.useCallback)(()=>{m("none")},[m]),performAction:A,performBannerAction:k,performDialogAction:P,saveCustomPreferences:w}}for(var __rspack_i in exports.useHeadlessConsentUI=__webpack_exports__.useHeadlessConsentUI,__webpack_exports__)-1===["useHeadlessConsentUI"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{hasPolicyHints as o,resolvePolicyActionGroups as i,resolvePolicyAllowedActions as l,resolvePolicyDirection as r,resolvePolicyOrderedActions as e,resolvePolicyPrimaryActions as c,shouldFillPolicyActions as a}from"@c15t/ui/utils";import{useCallback as t,useMemo as n}from"react";import{useConsentManager as s}from"./use-consent-manager.js";let u={banner:"banner",dialog:"dialog"};function y(){let{activeUI:y,policyBanner:{allowedActions:d,primaryActions:m,layout:p,direction:A,uiProfile:f,scrollLock:w},policyDialog:{allowedActions:P,primaryActions:g,layout:b,direction:S,uiProfile:k,scrollLock:L},saveConsents:h,setActiveUI:H}=s(),j=n(()=>({allowedActions:d,primaryActions:m,layout:p,direction:A,uiProfile:f,scrollLock:w}),[d,A,p,m,f,w]),D=n(()=>({allowedActions:P,primaryActions:g,layout:b,direction:S,uiProfile:k,scrollLock:L}),[P,S,b,g,k,L]),F=n(()=>{let t=l({allowedActions:d}),n=i({allowedActions:t,layout:p}),s=e({allowedActions:t,layout:p}),u=r(A);return{allowedActions:t,orderedActions:s,actionGroups:n,primaryActions:c({orderedActions:s,primaryActions:m}),layout:p,direction:u,uiProfile:f,scrollLock:w,hasPolicyHints:o(j),shouldFillActions:a({uiProfile:f,actionGroups:n,direction:u}),isVisible:"banner"===y}},[y,d,A,p,m,f,w,j]),I=n(()=>{let t=l({allowedActions:P}),n=i({allowedActions:t,layout:b}),s=e({allowedActions:t,layout:b}),u=r(S);return{allowedActions:t,orderedActions:s,actionGroups:n,primaryActions:c({orderedActions:s,primaryActions:g}),layout:b,direction:u,uiProfile:k,scrollLock:L,hasPolicyHints:o(D),shouldFillActions:a({uiProfile:k,actionGroups:n,direction:u}),isVisible:"dialog"===y}},[y,P,S,b,g,k,L,D]),U=t(async(o,i)=>{let l=i.uiSource??u[i.surface];switch(o){case"accept":await h("all",{uiSource:l});return;case"reject":await h("necessary",{uiSource:l});return}},[h]),V=t((o,i)=>U(o,{surface:"banner",uiSource:i?.uiSource}),[U]),x=t((o,i)=>U(o,{surface:"dialog",uiSource:i?.uiSource}),[U]),B=t(async o=>{await h("custom",{uiSource:o?.uiSource??u.dialog})},[h]),C=t(o=>{H("banner",o)},[H]);return{activeUI:y,banner:F,dialog:I,openBanner:C,openDialog:t(()=>{H("dialog")},[H]),closeUI:t(()=>{H("none")},[H]),performAction:U,performBannerAction:V,performDialogAction:x,saveCustomPreferences:B}}export{y as useHeadlessConsentUI};
|
package/dist/iab/styles.css
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @c15t/react — IAB TCF component styles.
|
|
3
|
+
*
|
|
4
|
+
* Add this stylesheet to the same global CSS entrypoint as your base c15t styles
|
|
5
|
+
* when using IAB consent components. Do not import either stylesheet from JS/TSX.
|
|
6
|
+
*
|
|
7
|
+
* Usage (src/index.css):
|
|
8
|
+
* @import "@c15t/react/styles.css";
|
|
9
|
+
* @import "@c15t/react/iab/styles.css";
|
|
10
|
+
*/
|
|
11
|
+
@import "@c15t/ui/iab/styles.css";
|
package/dist/iab/styles.tw3.css
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @c15t/react/iab — Tailwind 3-compatible IAB component styles.
|
|
3
|
+
*
|
|
4
|
+
* Add this stylesheet to the same global CSS entrypoint as your base c15t styles.
|
|
5
|
+
* Do not import either stylesheet from JS/TSX files.
|
|
6
|
+
*
|
|
7
|
+
* Usage (src/index.css):
|
|
8
|
+
* @tailwind base;
|
|
9
|
+
* @tailwind components;
|
|
10
|
+
* @import "@c15t/react/styles.tw3.css";
|
|
11
|
+
* @import "@c15t/react/iab/styles.tw3.css";
|
|
12
|
+
* @tailwind utilities;
|
|
13
|
+
*/
|
|
14
|
+
@import "@c15t/ui/iab/styles.tw3.css";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{clearConsentRuntimeCache:()=>clearConsentRuntimeCache,ConsentManagerProvider:()=>ConsentManagerProvider});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),theme_namespaceObject=require("@c15t/ui/theme"),utils_namespaceObject=require("@c15t/ui/utils"),external_c15t_namespaceObject=require("c15t"),external_react_namespaceObject=require("react"),consent_manager_context_cjs_namespaceObject=require("../context/consent-manager-context.cjs"),theme_context_cjs_namespaceObject=require("../context/theme-context.cjs"),use_color_scheme_cjs_namespaceObject=require("../hooks/use-color-scheme.cjs"),theme_utils_cjs_namespaceObject=require("../utils/theme-utils.cjs"),external_version_cjs_namespaceObject=require("../version.cjs");function clearConsentRuntimeCache(){(0,external_c15t_namespaceObject.clearConsentRuntimeCache)()}function ConsentManagerProvider({children:e,options:t}){let{consentManager:r,consentStore:
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{clearConsentRuntimeCache:()=>clearConsentRuntimeCache,ConsentManagerProvider:()=>ConsentManagerProvider});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),theme_namespaceObject=require("@c15t/ui/theme"),utils_namespaceObject=require("@c15t/ui/utils"),external_c15t_namespaceObject=require("c15t"),external_react_namespaceObject=require("react"),consent_manager_context_cjs_namespaceObject=require("../context/consent-manager-context.cjs"),theme_context_cjs_namespaceObject=require("../context/theme-context.cjs"),use_color_scheme_cjs_namespaceObject=require("../hooks/use-color-scheme.cjs"),theme_utils_cjs_namespaceObject=require("../utils/theme-utils.cjs"),external_version_cjs_namespaceObject=require("../version.cjs");function clearConsentRuntimeCache(){(0,external_c15t_namespaceObject.clearConsentRuntimeCache)()}const CALLBACK_KEYS=["onBannerFetched","onConsentSet","onConsentChanged","onError","onBeforeConsentRevocationReload"];function pickCallbackProps(e){return{onBannerFetched:e?.onBannerFetched,onConsentSet:e?.onConsentSet,onConsentChanged:e?.onConsentChanged,onError:e?.onError,onBeforeConsentRevocationReload:e?.onBeforeConsentRevocationReload}}function ConsentManagerProvider({children:e,options:t}){let{consentManager:r,consentStore:n}=(0,external_react_namespaceObject.useMemo)(()=>(0,external_c15t_namespaceObject.getOrCreateConsentRuntime)(t,{pkg:"@c15t/react",version:external_version_cjs_namespaceObject.version}),[t]),[a,c]=(0,external_react_namespaceObject.useState)(()=>n?n.getState():{}),o=(0,external_react_namespaceObject.useRef)(!1),_=(0,external_react_namespaceObject.useRef)(pickCallbackProps(t.callbacks));(0,external_react_namespaceObject.useEffect)(()=>{if(!n)return;let e=n.subscribe(c);if(!o.current){let e=n.getState();(0,external_react_namespaceObject.startTransition)(()=>{c(t=>t!==e?(o.current=!0,e):(o.current=!0,t))})}return e},[n]),(0,external_react_namespaceObject.useEffect)(()=>{if(!n)return;let e=n.getState().overrides??{},r=t.overrides??{};(e.country!==r.country||e.region!==r.region||e.language!==r.language||e.gpc!==r.gpc)&&n.getState().setOverrides({country:r.country,region:r.region,language:r.language,gpc:r.gpc})},[n,t.overrides?.country,t.overrides?.region,t.overrides?.language,t.overrides?.gpc]),(0,external_react_namespaceObject.useEffect)(()=>{if(!n)return;let e=pickCallbackProps(t.callbacks),r=_.current;CALLBACK_KEYS.some(t=>r[t]!==e[t])&&(n.setState(t=>({callbacks:{...t.callbacks,...e}})),_.current=e)},[n,t.callbacks?.onBannerFetched,t.callbacks?.onConsentSet,t.callbacks?.onConsentChanged,t.callbacks?.onError,t.callbacks?.onBeforeConsentRevocationReload]);let s=(0,external_react_namespaceObject.useMemo)(()=>{let{theme:e={},noStyle:r,disableAnimation:n,trapFocus:a=!0,colorScheme:c}=t;return{theme:(0,utils_namespaceObject.deepMerge)(theme_utils_cjs_namespaceObject.defaultTheme,e),noStyle:r,disableAnimation:n,trapFocus:a,colorScheme:c}},[t]),i=(0,external_react_namespaceObject.useMemo)(()=>(0,theme_namespaceObject.generateThemeCSS)(s.theme),[s.theme]);(0,use_color_scheme_cjs_namespaceObject.useColorScheme)(t.colorScheme);let l=(0,external_react_namespaceObject.useMemo)(()=>{if(!n)throw Error("Consent store must be initialized before creating context value");return{state:a,store:n,manager:r}},[a,n,r]);return(0,jsx_runtime_namespaceObject.jsx)(consent_manager_context_cjs_namespaceObject.ConsentStateContext.Provider,{value:l,children:(0,jsx_runtime_namespaceObject.jsxs)(theme_context_cjs_namespaceObject.GlobalThemeContext.Provider,{value:s,children:[i?(0,jsx_runtime_namespaceObject.jsx)("style",{id:"c15t-theme",dangerouslySetInnerHTML:{__html:i}}):null,e]})})}for(var __rspack_i in exports.ConsentManagerProvider=__webpack_exports__.ConsentManagerProvider,exports.clearConsentRuntimeCache=__webpack_exports__.clearConsentRuntimeCache,__webpack_exports__)-1===["ConsentManagerProvider","clearConsentRuntimeCache"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{generateThemeCSS as t}from"@c15t/ui/theme";import{deepMerge as r}from"@c15t/ui/utils";import{clearConsentRuntimeCache as o,getOrCreateConsentRuntime as a}from"c15t";import{startTransition as c,useEffect as s,useMemo as i,useRef as l,useState as u}from"react";import{ConsentStateContext as m}from"../context/consent-manager-context.js";import{GlobalThemeContext as g}from"../context/theme-context.js";import{useColorScheme as d}from"../hooks/use-color-scheme.js";import{defaultTheme as h}from"../utils/theme-utils.js";import{version as f}from"../version.js";function C(){o()}let v=["onBannerFetched","onConsentSet","onConsentChanged","onError","onBeforeConsentRevocationReload"];function p(e){return{onBannerFetched:e?.onBannerFetched,onConsentSet:e?.onConsentSet,onConsentChanged:e?.onConsentChanged,onError:e?.onError,onBeforeConsentRevocationReload:e?.onBeforeConsentRevocationReload}}function b({children:o,options:C}){let{consentManager:k,consentStore:S}=i(()=>a(C,{pkg:"@c15t/react",version:f}),[C]),[R,B]=u(()=>S?S.getState():{}),x=l(!1),y=l(p(C.callbacks));s(()=>{if(!S)return;let e=S.subscribe(B);if(!x.current){let e=S.getState();c(()=>{B(n=>n!==e?(x.current=!0,e):(x.current=!0,n))})}return e},[S]),s(()=>{if(!S)return;let e=S.getState().overrides??{},n=C.overrides??{};(e.country!==n.country||e.region!==n.region||e.language!==n.language||e.gpc!==n.gpc)&&S.getState().setOverrides({country:n.country,region:n.region,language:n.language,gpc:n.gpc})},[S,C.overrides?.country,C.overrides?.region,C.overrides?.language,C.overrides?.gpc]),s(()=>{if(!S)return;let e=p(C.callbacks),n=y.current;v.some(t=>n[t]!==e[t])&&(S.setState(n=>({callbacks:{...n.callbacks,...e}})),y.current=e)},[S,C.callbacks?.onBannerFetched,C.callbacks?.onConsentSet,C.callbacks?.onConsentChanged,C.callbacks?.onError,C.callbacks?.onBeforeConsentRevocationReload]);let j=i(()=>{let{theme:e={},noStyle:n,disableAnimation:t,trapFocus:o=!0,colorScheme:a}=C;return{theme:r(h,e),noStyle:n,disableAnimation:t,trapFocus:o,colorScheme:a}},[C]),E=i(()=>t(j.theme),[j.theme]);d(C.colorScheme);let _=i(()=>{if(!S)throw Error("Consent store must be initialized before creating context value");return{state:R,store:S,manager:k}},[R,S,k]);return e(m.Provider,{value:_,children:n(g.Provider,{value:j,children:[E?e("style",{id:"c15t-theme",dangerouslySetInnerHTML:{__html:E}}):null,o]})})}export{b as ConsentManagerProvider,C as clearConsentRuntimeCache};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{fetchSSRData:()=>fetchSSRData});const external_headers_cjs_namespaceObject=require("./headers.cjs"),external_normalize_url_cjs_namespaceObject=require("./normalize-url.cjs");function performInitFetch(e,t,r){let
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{fetchSSRData:()=>fetchSSRData});const external_headers_cjs_namespaceObject=require("./headers.cjs"),external_normalize_url_cjs_namespaceObject=require("./normalize-url.cjs");function buildRequestContext(e){return{backendURL:e.backendURL,country:e.overrides?.country??e.headers["x-c15t-country"]??null,region:e.overrides?.region??e.headers["x-c15t-region"]??null,language:e.overrides?.language??e.headers["accept-language"]??null,gpc:"1"===e.headers["sec-gpc"]}}function performInitFetch(e,t,r,c){let a=getNowMs();return fetch(`${e}/init`,{method:"GET",headers:t}).then(e=>{let t=Math.max(0,Math.round(getNowMs()-a)),o=inspectCacheHeaders(e.headers),n={requestContext:r,requestDurationMs:t,cache:o};return e.ok?e.json().then(e=>({init:e,metadata:n})):(c&&(console.log(`[c15t/server] SSR fetch failed with status: ${e.status}`),o.detail&&console.log(`[c15t/server] SSR cache status: ${o.detail}`)),{metadata:n})}).then(e=>(c&&e.init&&(console.log(`[c15t/server] SSR fetch succeeded in ${e.metadata?.requestDurationMs??0}ms`),e.metadata?.cache?.detail&&console.log(`[c15t/server] SSR cache status: ${e.metadata.cache.detail}`)),e)).catch(e=>{if(c){let t=e instanceof Error?e.message:"Unknown error";console.log(`[c15t/server] SSR fetch error: ${t}`)}return{}})}function getNowMs(){return"u">typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function inspectCacheHeaders(e){let t=null,r=!1;for(let c of["x-vercel-cache","cf-cache-status","x-cache","cache-status"]){let a=e.get(c);if(a){t=`${c}=${a}`,r=/\b(hit|stale|revalidated|updating)\b/i.test(a);break}}let c=e.get("age"),a=c?Number.parseInt(c,10):NaN,o=Number.isFinite(a)&&a>0,n=o?`age=${a}`:null;return{isHit:r||o,detail:t&&n?`${t}, ${n}`:t??n}}async function fetchSSRData(e){let{backendURL:t,headers:r,overrides:c,debug:a}=e;a&&console.log("[c15t/server] SSR fetch starting...");let o=(0,external_headers_cjs_namespaceObject.extractRelevantHeaders)(r);if(a){let e=Object.keys(o);console.log(`[c15t/server] Detected headers: [${e.join(", ")}]`);let t=o["cf-ipcountry"],r=o["x-vercel-ip-country"];t?console.log(`[c15t/server] Country from cf-ipcountry: ${t}`):r&&console.log(`[c15t/server] Country from x-vercel-ip-country: ${r}`)}if(0===Object.keys(o).length){a&&console.log("[c15t/server] No relevant headers found, skipping SSR fetch");return}let n=(0,external_normalize_url_cjs_namespaceObject.normalizeBackendURL)(t,r);if(!n){a&&console.log("[c15t/server] Failed to normalize URL, skipping SSR fetch");return}a&&console.log(`[c15t/server] Fetching from: ${n}/init`);let s={...o};c?.country&&(s["x-c15t-country"]=c.country,a&&console.log(`[c15t/server] Country override: ${c.country}`)),c?.region&&(s["x-c15t-region"]=c.region,a&&console.log(`[c15t/server] Region override: ${c.region}`)),c?.language&&(s["accept-language"]=c.language,a&&console.log(`[c15t/server] Language override: ${c.language}`));let l=await performInitFetch(n,s,buildRequestContext({backendURL:n,headers:s,overrides:c}),a),i=l.init;if(!i){a&&console.log("[c15t/server] SSR fetch returned no data");return}return{init:i,gvl:i.gvl,metadata:l.metadata}}for(var __rspack_i in exports.fetchSSRData=__webpack_exports__.fetchSSRData,__webpack_exports__)-1===["fetchSSRData"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{extractRelevantHeaders as e}from"./headers.js";import{normalizeBackendURL as t}from"./normalize-url.js";function r(){return"u">typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}async function o(o){
|
|
1
|
+
import{extractRelevantHeaders as e}from"./headers.js";import{normalizeBackendURL as t}from"./normalize-url.js";function r(){return"u">typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}async function o(o){var n,c;let a,{backendURL:l,headers:s,overrides:i,debug:u}=o;u&&console.log("[c15t/server] SSR fetch starting...");let g=e(s);if(u){let e=Object.keys(g);console.log(`[c15t/server] Detected headers: [${e.join(", ")}]`);let t=g["cf-ipcountry"],r=g["x-vercel-ip-country"];t?console.log(`[c15t/server] Country from cf-ipcountry: ${t}`):r&&console.log(`[c15t/server] Country from x-vercel-ip-country: ${r}`)}if(0===Object.keys(g).length){u&&console.log("[c15t/server] No relevant headers found, skipping SSR fetch");return}let d=t(l,s);if(!d){u&&console.log("[c15t/server] Failed to normalize URL, skipping SSR fetch");return}u&&console.log(`[c15t/server] Fetching from: ${d}/init`);let h={...g};i?.country&&(h["x-c15t-country"]=i.country,u&&console.log(`[c15t/server] Country override: ${i.country}`)),i?.region&&(h["x-c15t-region"]=i.region,u&&console.log(`[c15t/server] Region override: ${i.region}`)),i?.language&&(h["accept-language"]=i.language,u&&console.log(`[c15t/server] Language override: ${i.language}`));let f=await (c={backendURL:(n={backendURL:d,headers:h,overrides:i}).backendURL,country:n.overrides?.country??n.headers["x-c15t-country"]??null,region:n.overrides?.region??n.headers["x-c15t-region"]??null,language:n.overrides?.language??n.headers["accept-language"]??null,gpc:"1"===n.headers["sec-gpc"]},a=r(),fetch(`${d}/init`,{method:"GET",headers:h}).then(e=>{let t=Math.max(0,Math.round(r()-a)),o=function(e){let t=null,r=!1;for(let o of["x-vercel-cache","cf-cache-status","x-cache","cache-status"]){let n=e.get(o);if(n){t=`${o}=${n}`,r=/\b(hit|stale|revalidated|updating)\b/i.test(n);break}}let o=e.get("age"),n=o?Number.parseInt(o,10):NaN,c=Number.isFinite(n)&&n>0,a=c?`age=${n}`:null;return{isHit:r||c,detail:t&&a?`${t}, ${a}`:t??a}}(e.headers),n={requestContext:c,requestDurationMs:t,cache:o};return e.ok?e.json().then(e=>({init:e,metadata:n})):(u&&(console.log(`[c15t/server] SSR fetch failed with status: ${e.status}`),o.detail&&console.log(`[c15t/server] SSR cache status: ${o.detail}`)),{metadata:n})}).then(e=>(u&&e.init&&(console.log(`[c15t/server] SSR fetch succeeded in ${e.metadata?.requestDurationMs??0}ms`),e.metadata?.cache?.detail&&console.log(`[c15t/server] SSR cache status: ${e.metadata.cache.detail}`)),e)).catch(e=>{if(u){let t=e instanceof Error?e.message:"Unknown error";console.log(`[c15t/server] SSR fetch error: ${t}`)}return{}})),v=f.init;if(!v){u&&console.log("[c15t/server] SSR fetch returned no data");return}return{init:v,gvl:v.gvl,metadata:f.metadata}}export{o as fetchSSRData};
|
package/dist/styles.css
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @c15t/react — Non-IAB prebuilt component styles.
|
|
3
|
+
*
|
|
4
|
+
* Import this stylesheet once from your app-level CSS entrypoint
|
|
5
|
+
* when using prebuilt (styled) consent components.
|
|
6
|
+
*
|
|
7
|
+
* Usage (src/index.css):
|
|
8
|
+
* @import "@c15t/react/styles.css";
|
|
9
|
+
*/
|
|
10
|
+
@import "@c15t/ui/styles.css";
|
package/dist/styles.tw3.css
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @c15t/react — Tailwind 3-compatible prebuilt component styles.
|
|
3
|
+
*
|
|
4
|
+
* Import this stylesheet in the same global CSS entrypoint as Tailwind 3,
|
|
5
|
+
* after `@tailwind components;` and before `@tailwind utilities;`.
|
|
6
|
+
*
|
|
7
|
+
* Usage (src/index.css):
|
|
8
|
+
* @tailwind base;
|
|
9
|
+
* @tailwind components;
|
|
10
|
+
* @import "@c15t/react/styles.tw3.css";
|
|
11
|
+
* @tailwind utilities;
|
|
12
|
+
*/
|
|
13
|
+
@import "@c15t/ui/styles.tw3.css";
|
package/dist/version.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{version:()=>version});const version="2.0.0-rc.
|
|
1
|
+
"use strict";const __rslib_import_meta_url__="u"<typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{version:()=>version});const version="2.0.0-rc.8";for(var __rspack_i in exports.version=__webpack_exports__.version,__webpack_exports__)-1===["version"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let e="2.0.0-rc.
|
|
1
|
+
let e="2.0.0-rc.8";export{e as version};
|
|
@@ -46,7 +46,7 @@ interface ConsentBannerRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
46
46
|
* Which consent models this banner responds to.
|
|
47
47
|
* @default ['opt-in', 'opt-out']
|
|
48
48
|
*/
|
|
49
|
-
models?: import('
|
|
49
|
+
models?: import('c15t').Model[];
|
|
50
50
|
/**
|
|
51
51
|
* Override the UI source identifier sent with consent API calls.
|
|
52
52
|
* @default 'banner'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type PolicyUiActionDirection } from '@c15t/ui/utils';
|
|
1
2
|
import { type FC, type ReactNode } from 'react';
|
|
2
|
-
import { type PolicyUiActionDirection } from '../shared/libs/policy-actions';
|
|
3
3
|
import type { InlineLegalLinksProps } from '../shared/primitives/legal-links';
|
|
4
4
|
/**
|
|
5
5
|
* Identifiers for the available buttons in the consent banner.
|
|
@@ -101,6 +101,11 @@ export interface ConsentBannerProps {
|
|
|
101
101
|
* You must set the legal links in the ConsentManagerProvider options.
|
|
102
102
|
*/
|
|
103
103
|
legalLinks?: InlineLegalLinksProps['links'];
|
|
104
|
+
/**
|
|
105
|
+
* When true, hides the branding tag on the banner.
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
hideBranding?: boolean;
|
|
104
109
|
/**
|
|
105
110
|
* Defines the layout of buttons in the footer.
|
|
106
111
|
* Allows reordering and grouping of buttons.
|
|
@@ -124,7 +129,7 @@ export interface ConsentBannerProps {
|
|
|
124
129
|
* Which consent models this banner responds to.
|
|
125
130
|
* @default ['opt-in']
|
|
126
131
|
*/
|
|
127
|
-
models?: import('
|
|
132
|
+
models?: import('c15t').Model[];
|
|
128
133
|
/**
|
|
129
134
|
* Override the UI source identifier sent with consent API calls.
|
|
130
135
|
* @default 'banner'
|
|
@@ -12,6 +12,7 @@ import { Overlay } from './atoms/overlay';
|
|
|
12
12
|
import { Root } from './atoms/root';
|
|
13
13
|
import { AcceptButton, Card, CustomizeButton, Description, Footer, FooterSubGroup, Header, RejectButton, Title } from './components';
|
|
14
14
|
import { type ConsentBannerButton, type ConsentBannerLayout, type ConsentBannerProps } from './consent-banner';
|
|
15
|
+
import { PolicyActions } from './policy-actions';
|
|
15
16
|
/**
|
|
16
17
|
* This interface extends the base ConsentBanner component with additional sub-components
|
|
17
18
|
* that can be used to compose the banner's structure.
|
|
@@ -22,6 +23,7 @@ export interface ConsentBannerCompoundComponent extends FC<ConsentBannerProps> {
|
|
|
22
23
|
Header: typeof Header;
|
|
23
24
|
Title: typeof Title;
|
|
24
25
|
Description: typeof Description;
|
|
26
|
+
PolicyActions: typeof PolicyActions;
|
|
25
27
|
Footer: typeof Footer;
|
|
26
28
|
FooterSubGroup: typeof FooterSubGroup;
|
|
27
29
|
RejectButton: typeof RejectButton;
|
|
@@ -109,4 +111,5 @@ export default ConsentBanner;
|
|
|
109
111
|
export { ConsentBannerOverlay, Overlay } from './atoms/overlay';
|
|
110
112
|
export { ConsentBannerRoot, Root } from './atoms/root';
|
|
111
113
|
export { AcceptButton, Card, ConsentBannerAcceptButton, ConsentBannerCard, ConsentBannerCustomizeButton, ConsentBannerDescription, ConsentBannerFooter, ConsentBannerFooterSubGroup, ConsentBannerHeader, ConsentBannerRejectButton, ConsentBannerTitle, CustomizeButton, Description, Footer, FooterSubGroup, Header, RejectButton, Title, } from './components';
|
|
114
|
+
export { type ConsentBannerPolicyActionRenderProps, ConsentBannerPolicyActions, type ConsentBannerPolicyActionsProps, PolicyActions, } from './policy-actions';
|
|
112
115
|
export { ConsentBanner, type ConsentBannerButton, type ConsentBannerLayout, type ConsentBannerProps, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type HeadlessConsentBannerAction } from '../../hooks/use-headless-consent-ui';
|
|
3
|
+
import { type PolicyActionRenderProps } from '../shared/policy-actions';
|
|
4
|
+
export interface ConsentBannerPolicyActionRenderProps extends PolicyActionRenderProps<HeadlessConsentBannerAction> {
|
|
5
|
+
}
|
|
6
|
+
export interface ConsentBannerPolicyActionsProps {
|
|
7
|
+
renderAction?: (action: HeadlessConsentBannerAction, props: ConsentBannerPolicyActionRenderProps) => ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function ConsentBannerPolicyActions({ renderAction, }: ConsentBannerPolicyActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const PolicyActions: typeof ConsentBannerPolicyActions;
|
|
11
|
+
export { PolicyActions };
|