1import{T as c,b as a}from"/build/_shared/chunk-TQS5E2SK.js";import{a as g}from"/build/_shared/chunk-JUM7J4TY.js";import{a as s}from"/build/_shared/chunk-RW7BUM27.js";import{e as o}from"/build/_shared/chunk-ADMCF34Z.js";var i=o(g());var e=o(s()),C=({optOutModalHeader:u,optOutModalMainText:d,setIsModalOpen:l,isModalOpen:p,declineText:m,acceptText:b,fnAccept:n,addConfirmaton:t=!1})=>{let[O,r]=(0,i.useState)(t);return(0,e.jsxs)(c,{title:u,isModalOpen:p,setIsModalOpen:l,modalClassName:"max-w-[480px]",closeSvgSource:"/images/close-icon.svg",footer:()=>(0,e.jsxs)("div",{className:"flex items-center justify-end w-full gap-4",children:[(0,e.jsx)(a,{size:"medium",type:"secondary",onClick:()=>{l(!1)},label:m,className:"bg-optOutDeclineButtonBackgroundColour border-optOutDeclineButtonBorderColour text-optOutDeclineButtonTextColour"}),(0,e.jsx)(a,{disabled:O&&t,size:"medium",type:"primary",onClick:()=>{n&&n()},label:b,className:"bg-optOutButtonBackgroundColour border border-optOutButtonBackgroundColour text-optOutButtonTextColour"})]}),close:()=>{r(!0)},children:[(0,e.jsx)("p",{className:"mb-2",children:d}),t&&(0,e.jsxs)("label",{htmlFor:"acceptCb",className:"flex items-center",children:[(0,e.jsx)("input",{id:"acceptCb",type:"checkbox",className:"mr-2 h-fit",onChange:f=>{r(!f.target.checked)}}),(0,e.jsx)("div",{className:"inline text-marketingPreferencesSelectAllBackgroundColor",children:"I understand that once I cancel, there will be no way to recover this, or any amount lost."})]})]})},k=C;export{k as a};
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.