1import{a as p}from"/build/_shared/chunk-6OQMVP6N.js";import{a as u}from"/build/_shared/chunk-MIWVPMPS.js";import{e as c}from"/build/_shared/chunk-6XX3ATVP.js";import{T as m,a as d,b as l}from"/build/_shared/chunk-TQS5E2SK.js";import{a as T}from"/build/_shared/chunk-JUM7J4TY.js";import{a as i}from"/build/_shared/chunk-RW7BUM27.js";import{e as n}from"/build/_shared/chunk-ADMCF34Z.js";var r=n(T());var e=n(i());function w({groupOneItems:f,groupOneText:g,groupTwoItems:y,groupTwoText:P,modalOpenFn:M,isOpen:a=!1,onSubmit:b,onSaveAll:s,modalHeader:k,modalFooterNote:v}){let t=(0,r.useRef)(),[x,B]=(0,r.useState)({disabled:!1});return(0,r.useEffect)(()=>{a&&c({event:"login",event_category:"gar",event_action:"seen_gar_pop_up",event_label:"gar_interaction"})},[a]),(0,e.jsx)(m,{title:"Preferences",isModalOpen:a,setIsModalOpen:M,modalBodyClassName:"w-[90vw] md:!w-auto",footer:()=>(0,e.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,e.jsx)(l,{disabled:x.disabled,className:"!border-marketingPrefModalSecondaryButtonBorder !text-marketingPrefModalSecondaryButtonText",size:"medium",label:"Save",type:"secondary",onClick:()=>{var o;t!=null&&t.current&&((o=t.current)==null||o.click())}}),(0,e.jsx)(l,{className:"!border-marketingPrefModalPrimaryButtonBorder !bg-marketingPrefModalPrimaryButtonBackground !text-marketingPrefModalPrimaryButtonText",size:"medium",label:"Subscribe to All",type:"primary",onClick:()=>{s&&s()}})]}),shouldCloseOnOverlayClick:!1,shouldCloseOnESC:!1,childrenClassName:"px-6 py-4 mobile-landscape:h-52",children:(0,e.jsxs)("div",{className:"min-w-64 md:w-[432px]",children:[k,(0,e.jsx)(p,{onSubmit:b,submitButtonRef:t,disabled:o=>{B(S=>({...S,disabled:o}))},children:(0,e.jsx)(u,{groupOneItems:f,groupOneText:g,groupTwoItems:y,groupTwoText:P,children:(0,e.jsxs)("div",{className:"text-sm flex items-center gap-x-4 px-4 pb-4",children:[(0,e.jsx)(d,{svgSource:"/images/info-icon.svg"}),(0,e.jsx)("div",{children:v})]})})})]})})}export{w 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.