1import{R as l,r as c,j as r}from"./main-react-CZ43MNZ9.js";import{L as d}from"./index-XdM5tw8C.js";import{C as f}from"./index-Cbzbe5fe.js";import{a as p}from"./index-DwFGaSi4.js";import{FormContext as x}from"./index-DKeoKDPR.js";import"./preload-helper-Cdv6RdwI.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./try-parse-json-PNnY1j55.js";import"./index-DdlCi1f1.js";import"./Skeleton-Co9sTPZd.js";import"./index-mLFX9G4A.js";import"./api-fetcher-D7q-2H74.js";import"./index-BGcNTHHu.js";const w=l.forwardRef(({error:a,errorMessage:t,name:s,onCheckedChange:i,mandatory:o,...m},n)=>{const{formConsent:e}=c.useContext(x);return r.jsxs("div",{className:"form-field form-field__data-consent",children:[r.jsx("div",{className:"form-field__data-consent-wrapper",children:r.jsx(d,{children:r.jsxs("div",{className:"form-field__data-consent-inner-wrapper",children:[r.jsx(f,{ref:n,name:s,...m,onCheckedChange:i,checked:m.value,mandatory:o,value:s,className:"form-field__checkbox"}),r.jsxs("span",{children:[o&&"* ",e.termsText," ",e.termsLink&&r.jsx("a",{href:e.termsLink.url,...e.termsLink.target&&{target:e.termsLink.target},className:"link-default",children:e.termsLink.name})]})]})})}),a&&t&&r.jsx(p,{children:t})]})});export{w as FormConsent,w as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.