1import{j as e,A as h,C as n,ab as j,ac as v,ad as b,ae as N,af as y,ag as w,u as _,s as R,B as C}from"./index-2ed27e87.js";import{r as l,u as S}from"./utils-40ed1a82.js";const x=({setAllRowsValidation:a,preferredContact:s,type:d,index:t,size:r,alreadyChecked:o})=>{const[p,f]=l.useState(o||!1);l.useState(!1),l.useState(!1);const i=()=>{f(g=>!g)};return e.jsx("label",{className:"flex cursor-pointer select-none items-center ",children:e.jsxs("div",{className:"relative ",children:[e.jsx("input",{type:"checkbox",className:"sr-only"}),e.jsx("div",{onClick:i,className:`block h-8 ${r=="small"?"w-[70px] ":" w-[75px]"} rounded-full ${s?"bg-transparent border-2 border-secondary":" bg-secondary"} `}),e.jsx("div",{onClick:i,className:`dot absolute ${r=="small"?"h-7 w-7 top-[2px] left-[2px]":`top-[4px] ${p?"left-[46px]":"left-1"} h-6 w-6`} rounded-full ${s?"bg-secondary":" bg-white"} transition-all duration-300 `})]})})},c=[{text:"Random text",can_invite:!0,can_suggest:!1},{text:"Random text",can_invite:!1,can_suggest:!0},{text:"Random text",can_invite:!1,can_suggest:!0},{text:"Random text",can_invite:!0,can_suggest:!1},{text:"Random text",can_invite:!0,can_suggest:!1},{text:"Random text",can_invite:!1,can_suggest:!0},{text:"Random text",can_invite:!1,can_suggest:!0},{text:"Random text",can_invite:!0,can_suggest:!0},{text:"Random text",can_invite:!0,can_suggest:!1},{text:"Random text",can_invite:!0,can_suggest:!0},{text:"Random text",can_invite:!1,can_suggest:!0},{text:"Random text",can_invite:!1,can_suggest:!0},{text:"Random text",can_invite:!1,can_suggest:!1},{text:"Random text",can_invite:!0,can_suggest:!1},{text:"Random text",can_invite:!1,can_suggest:!1}],E=()=>{const{dynamicScrollbar:a}=h();return a(),e.jsxs("div",{children:[e.jsxs("div",{className:"flex relative",children:[e.jsxs("div",{className:"basis-[100%] ",children:[e.jsx("p",{className:"text-secondary text-6xl font-PlayfairRegular",children:"User Settings"}),e.jsxs("div",{className:"mt-[30px] scrollable h-[316px] overflow-y-scroll noScrollbar",children:[e.jsx("div",{className:"absolute w-[16%] h-full -left-[11.5%] top-0 flex justify-center",children:e.jsx("div",{id:"scrollContainer",className:" h-[165px] relative rounded-full bg-primary overflow-hidden w-[18px] mt-24 border-[4px] border-secondary",children:e.jsx("div",{id:"scrollHandle",className:" absolute w-full rounded-full bg-secondary "})})}),c.map(()=>e.jsx("div",{className:"flex gap-x-2.5 mb-5 last:mb-0 font-EBGaramondRegular",children:[1,2,3,4].map(()=>e.jsx("input",{placeholder:"First",className:"w-full bg-primary text-secondary placeholder:text-secondary outline-none px-2 py-1.5 rounded-lg text-2xl border-2 border-secondary"}))}))]})]}),e.jsxs("div",{className:"flex gap-x-5 flex-grow font-EBGaramondRegular ",children:[e.jsxs("div",{className:"flex flex-col items-center ",children:[e.jsx("div",{className:"px-3 py-2 self-start rounded-xl text-center text-secondary text-xl border-[3px] border-secondary",children:"Allow Contributor to Invite Others"}),e.jsx("div",{className:" mt-[27px] h-[296px] overflow-scroll noScrollbar scrollable ",children:c.map(s=>e.jsx("div",{className:"mb-[34px] last:mb-0",children:e.jsx(x,{alreadyChecked:s.can_invite})}))})]}),e.jsxs("div",{className:"flex flex-col items-center ",children:[e.jsx("div",{className:"px-3 py-2 self-start rounded-xl text-center text-secondary text-xl border-[3px] border-secondary",children:"Allow Contributor to Invite Others"}),e.jsx("div",{className:" mt-[27px] h-[296px] overflow-scroll noScrollbar scrollable ",children:c.map(s=>e.jsx("div",{className:"mb-[34px] last:mb-0",children:e.jsx(x,{alreadyChecked:s.can_suggest})}))})]})]})]}),e.jsx("div",{className:"flex justify-end mt-8",children:e.jsx("div",{className:"px-6 py-2 rounded-lg cursor-pointer text-xl font-EBGaramondRegular bg-secondary text-primary ",children:"Update"})})]})},m=()=>e.jsxs("div",{className:"pt-0 xl:pt-12 space-y-10 ",children:[e.jsxs("div",{className:"flex text-secondary flex-col xl:flex-row gap-8 items-center font-EBGaramondRegular",children:[e.jsx("p",{className:"text-4xl",children:"Final PDF Approval"}),e.jsx("div",{className:"px-14 py-1 text-2xl font-EBGaramondSemibold rounded-2xl border-4 border-secondary ",children:"View"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"w-full xl:w-[650px] rounded-lg h-2 bg-[#E7E3C9]",children:e.jsx("div",{className:"w-2/6 bg-secondary h-full rounded-lg"})}),e.jsx("p",{className:"font-EBGaramondSemibold text-secondary text-2xl",children:"January 11th, 2026"})]})]}),k=({setInnerParentComponent:a,activeComponent:s})=>e.jsxs("div",{className:" px-0 xl:pl-14",children:[e.jsx("div",{children:e.jsx("div",{onClick:()=>{a(!1)},className:"cursor-pointer size-6 bg-cover bg-center rotate-90 bg-no-repeat",style:{backgroundImage:`url(${n})`}})}),e.jsx("div",{className:"pt-6",children:s}),e.jsx(m,{})]}),P=()=>{const a=l.useRef(null);return e.jsxs("div",{children:[e.jsxs("p",{className:"text-secondary leading-[4.5rem] text-6xl font-PlayfairRegular",children:["Flagged ",e.jsx("br",{})," Contributions"]}),e.jsx("div",{className:"border-4 font-EBGaramondRegular text-3xl border-secondary pt-6 pb-3 px-8 text-secondary mt-4 rounded-[3.7rem]",children:e.jsx(j,{hasTrack:!1,ref:a,options:{arrows:!1,pagination:!1},children:e.jsx(v,{children:[1,2,3,4,5,6,7,8].map(()=>e.jsxs(b,{className:"space-y-2",children:[e.jsx("p",{children:"[insert user name]"}),e.jsx("p",{className:"h-[140px] ",children:"[Insert flagged contribution]"}),e.jsxs("div",{className:"flex justify-between items-end",children:[e.jsx("div",{className:"size-6 cursor-pointer",onClick:()=>{a.current.go("-${i}")},children:e.jsx("div",{className:"w-full h-full rotate-90 bg-cover bg-center bg-no-repeat ",style:{backgroundImage:`url(${n})`}})}),e.jsxs("div",{className:"flex gap-x-7",children:[e.jsx("div",{className:"min-w-[48px] h-[48px] curs
1or-pointer rounded-full border-[4px] border-secondary flex justify-center items-center",children:e.jsx(N,{size:32,className:"mt-1"})}),e.jsx("div",{className:"min-w-[48px] h-[48px] cursor-pointer rounded-full border-[4px] text-[#E4C491] border-[#E4C491] flex justify-center items-center",children:e.jsx(y,{size:40,className:"mt-0.5"})})]}),e.jsx("div",{className:"size-6 cursor-pointer ",onClick:()=>{a.current.go("+${i}")},children:e.jsx("div",{className:"w-full h-full -rotate-90 bg-cover bg-center bg-no-repeat ",style:{backgroundImage:`url(${n})`}})})]})]}))})})})]})},u=()=>e.jsxs("div",{className:"border-4 self-start space-y-7 flex-grow rounded-2xl xl:rounded-[3.5rem] text-secondary border-secondary px-7 py-5 ",children:[e.jsxs("p",{className:"text-4xl font-PlayfairRegular",children:["Your ",e.jsx("br",{})," Groupâs Progress"]}),e.jsxs("div",{className:"px-0 xl:px-8 space-y-5 text-center text-2xl font-EBGaramondSemibold",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{children:"64 Photos Uploaded"}),e.jsx("div",{className:"w-full h-7 border-4 border-secondary rounded-[3.5rem]",children:e.jsx("div",{className:"w-[82%] bg-secondary -ml-1 h-full rounded-xl "})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{children:"22,253 Words Written"}),e.jsx("div",{className:"w-full h-7 border-4 border-secondary rounded-[3.5rem]",children:e.jsx("div",{className:"w-[96%] bg-secondary -ml-1 h-full rounded-xl "})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{children:"19 Books Ordered"}),e.jsx("div",{className:"w-full h-7 border-4 border-secondary rounded-[3.5rem]",children:e.jsx("div",{className:"w-[76%] bg-secondary -ml-1 h-full rounded-xl "})})]})]}),e.jsxs("div",{className:"flex justify-between pt-8 items-center",children:[e.jsx("div",{className:"border-4 border-secondary px-9 py-1 text-2xl font-EBGaramondSemibold rounded-2xl",children:"Share"}),e.jsx("div",{className:"w-16 h-16 rounded-full bg-[length:320px] bg-[47%_39%] bg-no-repeat",style:{backgroundImage:`url(${w})`},children:" "})]})]}),B=()=>e.jsxs("div",{className:"flex ",children:[e.jsxs("div",{className:"w-1/2",children:[e.jsxs("p",{className:"text-secondary leading-[4.5rem] text-6xl font-PlayfairRegular",children:["Send Users a ",e.jsx("br",{})," Nudge"]}),e.jsxs("div",{className:"mt-10 mb-20 space-y-16 text-4xl text-secondary font-PlayfairRegular children:underline children:cursor-pointer",children:[e.jsx("p",{children:"General Nudge Email"}),e.jsx("p",{children:"Photo Nudge Email"}),e.jsx("p",{children:"Content Nudge Email"})]})]}),e.jsx("div",{className:"ml-auto w-[400px]",children:e.jsx(u,{})})]}),I=()=>{const a=S(),[s,d]=l.useState({activeComponent:null,text:""}),{details:t}=_(R);if(l.useEffect(()=>{if(!t.is_lead){a(C);return}},[t.is_lead]),!!t.is_lead)return s.activeComponent?e.jsx(k,{activeComponent:s.activeComponent,setInnerParentComponent:d}):e.jsxs("div",{className:"flex flex-col xl:flex-row gap-12",children:[e.jsxs("div",{className:"px-0 xl:pl-14 text-secondary space-y-8 font-PlayfairRegular",children:[e.jsxs("div",{className:"text-6xl leading-[4.2rem]",children:["Admin ",e.jsx("br",{}),"Dashboard"]}),e.jsx("div",{className:"space-y-7 pr-16",children:[{text:"Send users a Nudge",component:e.jsx(B,{})},{text:"Flagged Contributions",component:e.jsx(P,{})},{text:"User Settings",component:e.jsx(E,{})}].map(r=>e.jsxs("div",{onClick:()=>{d({activeComponent:r.component})},className:"cursor-pointer font-PlayfairRegular text-3xl flex gap-3 items-center",children:[e.jsx("p",{children:r.text}),e.jsx("div",{className:"size-6 ",children:e.jsx("div",{className:"w-full h-full bg-cover bg-center bg-no-repeat -rotate-90 ",style:{backgroundImage:`url(${n})`}})})]},r.text))}),e.jsx(m,{})]}),e.jsx(u,{})]})};export{I 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.