1"use strict";(globalThis.webpackChunkfeedorabeta_frontend=globalThis.webpackChunkfeedorabeta_frontend||[]).push([[481],{80481(e,s,t){t.r(s),t.d(s,{default:()=>K});var l=t(9950),a=t(79012),r=t(45462),o=t(25675),n=t(7838),i=t(67637),d=t(59807),c=t(68708),x=t(78968),u=t(34700),m=t(52607),h=t(52439),p=t(19900),y=t(84814),g=t(94119),f=t(96479),b=t(52828),v=t(45833),j=t(12550),N=t(6365),w=(t(41111),t(90557)),C=t(59545),k=t(13696),S=t(63009),F=t(83167),z=t(11455),A=t(70309),B=t(96022),J=t(73659),L=(t(58944),t(44414));const K=()=>{var e,s,t,K,E,R,H,T,$,V,q,P,M,O,D,U,W,I,_,G,Y,Z;const Q=(0,A.default)(e=>e.brandKit),X=(0,A.default)(e=>e.updateBrandKit),[ee,se]=(0,l.useState)(()=>{var e,s,t,l,a,r,o,n,i;return{name:"",...B.J,...Q,buttons:{backgroundColor:(null===Q||void 0===Q||null===(e=Q.buttons)||void 0===e?void 0:e.backgroundColor)||(null===Q||void 0===Q||null===(s=Q.colors)||void 0===s?void 0:s.primary)||"#2563EB",textColor:(null===Q||void 0===Q||null===(t=Q.buttons)||void 0===t?void 0:t.textColor)||"#FFFFFF",borderRadius:(null===Q||void 0===Q||null===(l=Q.buttons)||void 0===l?void 0:l.borderRadius)||6,style:(null===Q||void 0===Q||null===(a=Q.buttons)||void 0===a?void 0:a.style)||"filled",shape:(null===Q||void 0===Q||null===(r=Q.buttons)||void 0===r?void 0:r.shape)||"default",...null===Q||void 0===Q?void 0:Q.buttons},links:{color:(null===Q||void 0===Q||null===(o=Q.links)||void 0===o?void 0:o.color)||(null===Q||void 0===Q||null===(n=Q.colors)||void 0===n?void 0:n.primary)||"#2563EB",underline:!1!==(null===Q||void 0===Q||null===(i=Q.links)||void 0===i?void 0:i.underline),...null===Q||void 0===Q?void 0:Q.links}}}),[te,le]=(0,l.useState)(null),[ae,re]=(0,l.useState)(!1),[oe,ne]=(0,l.useState)(!1),[ie,de]=(0,l.useState)(null),[ce,xe]=(0,l.useState)(!0),[ue,me]=(0,l.useState)(null),[he,pe]=(0,l.useState)({show:!1,type:"",message:""}),ye=(e,s)=>{pe({show:!0,type:e,message:s}),setTimeout(()=>pe({show:!1,type:"",message:""}),4e3)},[ge,fe]=((0,l.useRef)(null),(0,l.useState)(!1)),{userBrandKits:be=[],fetchBrandKits:ve}=(0,A.default)();l.useEffect(()=>{ve&&ve().catch(e=>{})},[ve]),l.useEffect(()=>{ce||fe(!0)},[ee,ce]),l.useEffect(()=>{ce&&fe(!1)},[ce]);const je=(e,s)=>{se(t=>{var l,a,r,o,n,i,d,c;const x={...t.colors,[e]:s};if("primary"===e){var u,m,h,p;const e=t.colors.primary;t.colors.h1Color!==e&&t.colors.h1Color||(x.h1Color=s),(null===(u=t.buttons)||void 0===u?void 0:u.backgroundColor)===e||null===(m=t.buttons)||void 0===m||m.backgroundColor,(null===(h=t.links)||void 0===h?void 0:h.color)===e||null===(p=t.links)||void 0===p||p.color}else if("h1Color"===e){var y,g;t.colors.h1Color;null===(y=t.buttons)||void 0===y||y.backgroundColor,null===(g=t.links)||void 0===g||g.color}return{...t,colors:x,buttons:{...t.buttons,backgroundColor:"primary"!==e&&"h1Color"!==e||(null===(l=t.buttons)||void 0===l?void 0:l.backgroundColor)!==t.colors.primary&&(null===(a=t.buttons)||void 0===a?void 0:a.backgroundColor)!==t.colors.h1Color&&null!==(r=t.buttons)&&void 0!==r&&r.backgroundColor?null===(o=t.buttons)||void 0===o?void 0:o.backgroundColor:s},links:{...t.links,color:"primary"!==e&&"h1Color"!==e||(null===(n=t.links)||void 0===n?void 0:n.color)!==t.colors.primary&&(null===(i=t.links)||void 0===i?void 0:i.color)!==t.colors.h1Color&&null!==(d=t.links)&&void 0!==d&&d.color?null===(c=t.links)||void 0===c?void 0:c.color:s}}})},Ne=(e,s)=>{let t=s;e.includes("Size")&&"string"===typeof s&&s.endsWith("px")&&(t=parseInt(s.replace("px",""))),se(s=>({...s,typography:{...s.typography,[e]:t}}))},we=(e,s)=>{se(t=>({...t,buttons:{...t.buttons,[e]:s}}))},Ce=(e,s)=>{se(t=>({...t,links:{...t.links,[e]:s}}))};return(0,L.jsxs)("div",{className:"min-h-screen bg-white",children:[he.show&&(0,L.jsx)("div",{className:"fixed top-4 right-4 z-50 animate-in slide-in-from-top-2",children:(0,L.jsxs)("div",{className:"flex items-center p-4 rounded-xl shadow-lg max-w-sm "+("success"===he.type?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"),children:["success"===he.type?(0,L.jsx)(v.A,{className:"h-5 w-5 text-green-600 mr-3"}):(0,L.jsx)(b.A,{className:"h-5 w-5 text-red-600 mr-3"}),(0,L.jsx)("p",{className:"text-sm font-medium "+("success"===he.type?"text-green-800":"text-red-800"),children:he.message}),(0,L.jsx)("button",{onClick:()=>pe({show:!1,type:"",message:""}),className:"ml-3 "+("success"===he.type?"text-green-600":"text-red-600"),children:(0,L.jsx)(f.A,{className:"h-4 w-4"})})]})}),(0,L.jsx)("main",{className:"flex-1 w-full max-w-[1400px] mx-auto p-6 md:p-12 lg:p-16 flex flex-col gap-12",children:ce?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("section",{className:"space-y-6",children:(0,L.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6",children:[(0,L.jsxs)("div",{className:"space-y-2",children:[(0,L.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-neutral-900",children:"Brand Kit Library"}),(0,L.jsx)("p",{className:"text-neutral-600 text-sm leading-relaxed max-w-2xl",children:"Choose a starting point: Select a preset or create a custom brand kit from scratch."})]}),(0,L.jsxs)("button",{onClick:()=>{xe(!1),de(null),se({name:"",...B.J})},className:"flex items-center justify-center gap-2 px-5 h-[38px] rounded-lg bg-black text-white hover:bg-neutral-800 font-semibold text-sm transition-all",children:[(0,L.jsx)(m.A,{className:"w-4 h-4"}),"Create New"]})]})}),(0,L.jsxs)("section",{children:[(0,L.jsx)("div",{className:"flex items-center justify-between mb-6",children:(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900 flex items-center gap-2",children:["System Presets",(0,L.jsx)("span",{className:"px-2 py-0.5 text-[10px] font-bold bg-gray-100 border border-gray-300 rounded uppercase",children:"Standard"})]})}),(0,L.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:B.x.map(e=>{var s,t,l,a,r,o,n;(e=>{var s,t;null===Q||void 0===Q||null===(s=Q.colors)||void 0===s||s.primary,null===(t=e.colors)||void 0===t||t.primary})(e);return(0,L.jsxs)("div",{className:"group border border-gray-300 rounded-2xl bg-white p-6 hover:border-black transition-all flex flex-col",children:[(0,L.jsxs)("div",{className:"flex-1",children:[(0,L.jsx)("h4",{className:"text-lg font-bold mb-4",children:e.name}),(0,L.jsxs)("div",{className:"space-y-4 mb-6",children:[(0,L.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-lg border border-gray-300 bg-gray-50/50",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{className:"text-[10px] font-bold text-gray-600 uppercase tracking-wider mb-1",children:"Fonts"}),(0,L.jsxs)("p",{className:"text-sm font-semibold",style:{fontFamily:null===(s=e.typography)||void 0===s?void 0:s.headingFont},children:[null===(t=e.typography)||void 0===t?void 0:t.headingFont," / ",null===(l=e.typography)||void 0===l?void 0:l.bodyFont]})]}),(0,L.jsx)(g.A,{className:"text-gray-600 text-[18px]"})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("p",{className:"text-[10px] font-bold text-gray-600 uppercase tracking-wider mb-2",children:"Color Swatch"}),(0,L.jsxs)("div",{className:"flex gap-2",children:[(0,L.jsx)("div",{className:"size-8 rounded-full ring-1 ring-gray-300",style:{backgroundColor:null===(a=e.colors)||void 0===a?void 0:a.primary}}),(0,L.jsx)("div",{className:"size-8 rounded-full ring-1 ring-gray-300",style:{backgroundColor:null===(r=e.colors)||void 0===r?void 0:r.secondary}}),(0,L.jsx)("div",{className:"size-8 rounded-full ring-1 ring-gray-300",style:{backgroundColor:null===(o=e.colors)||void 0===o?void 0:o.accent}}),(0,L.jsx)("div",{className:"size-8 rounded-full ring-1 ring-gray-300",style:{backgroundColor:(null===(n=e.colors)||void 0===n?void 0:n.background)||"#ffffff"}})]})]})]})]}),(0,L.jsx)("button",{onClick:s=>{s.preventDefault(),s.stopPropagation(),(e=>{xe(!1),de(e);const s={name:`${e.name} (Copy)`,colors:{...B.J.colors,...e.colors},typography:{...B.J.typography,...e.typography},spacing:{...B.J.spacing,...e.spacing},buttons:{...B.J.buttons,...e.buttons||{}},links:{...B.J.links,...e.links||{}}};se(s)})(e)},className:"w-full py-2.5 rounded-lg border border-black font-bold text-xs hover:bg-black hover:text-white transition-all",children:"Edit as New Brand Kit"})]},e.id)})})]}),be&&be.length>0&&(0,L.jsxs)("section",{children:[(0,L.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900",children:["Your Brand Kits (",be.length,")"]}),(0,L.jsxs)("div",{className:"flex gap-2",children:[(0,L.jsx)("button",{className:"size-9 flex items-center justify-center border border-gray-300 rounded-lg text-gray-600 hover:text-black",children:(0,L.jsx)(j.A,{className:"w-5 h-5"})}),(0,L.jsx)("button",{className:"size-9 flex items-center justify-center border border-gray-300 rounded-lg text-gray-600 hover:text-black",children:(0,L.jsx)(c.A,{className:"w-5 h-5"})})]})]}),(0,L.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:be.map(e=>{var s,t,l,a,r;return(0,L.jsxs)("div",{className:"group bg-white border border-gray-300 rounded-2xl p-6 hover:border-black transition-all flex flex-col justify-between",children:[(0,L.jsxs)("div",{children:[(0,L.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,L.jsx)("h4",{className:"text-lg font-bold",children:e.name}),e.isDefault&&(0,L.jsx)("span",{className:"text-[10px] font-bold text-gray-600 bg-gray-100 px-2 py-0.5 rounded uppercase",children:"Default"})]}),(0,L.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,L.jsxs)("div",{className:"flex -sp
1ace-x-2",children:[(0,L.jsx)("div",{className:"size-10 rounded border border-gray-300 bg-white flex items-center justify-center font-bold text-sm shadow-sm",style:{fontFamily:null===(s=e.typography)||void 0===s?void 0:s.headingFont},children:"Aa"}),(0,L.jsx)("div",{className:"size-10 rounded border border-gray-300 bg-gray-50 flex items-center justify-center text-sm shadow-sm",style:{fontFamily:null===(t=e.typography)||void 0===t?void 0:t.bodyFont},children:"Aa"})]}),(0,L.jsxs)("div",{className:"flex gap-1.5",children:[(0,L.jsx)("div",{className:"size-5 rounded-full",style:{backgroundColor:null===(l=e.colors)||void 0===l?void 0:l.primary}}),(0,L.jsx)("div",{className:"size-5 rounded-full",style:{backgroundColor:null===(a=e.colors)||void 0===a?void 0:a.secondary}}),(0,L.jsx)("div",{className:"size-5 rounded-full",style:{backgroundColor:null===(r=e.colors)||void 0===r?void 0:r.accent}})]})]})]}),(0,L.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-300",children:[(0,L.jsxs)("span",{className:"text-xs text-gray-600",children:["Modified ",e.lastModified||"2d ago"]}),(0,L.jsxs)("div",{className:"flex gap-2",children:[(0,L.jsx)("button",{onClick:s=>{s.stopPropagation(),(e=>{xe(!1),de(e),se(e)})(e)},className:"px-4 py-1.5 rounded-lg bg-gray-50 border border-gray-300 hover:border-black font-bold text-xs transition-colors",children:"Edit"}),(0,L.jsx)("button",{onClick:s=>{s.stopPropagation(),(async e=>{me(e)})(e.id)},className:"px-2 py-1.5 rounded-lg bg-gray-50 border border-gray-300 hover:border-red-300 text-red-600 hover:text-red-700 transition-colors",children:(0,L.jsx)(y.A,{className:"w-3 h-3"})})]})]})]},e.id)})})]})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("section",{className:"space-y-6",children:[(0,L.jsxs)("div",{className:"flex items-center justify-between",children:[(0,L.jsxs)("button",{onClick:()=>{xe(!0),de(null)},className:"flex items-center gap-2 text-neutral-600 hover:text-neutral-900 font-medium transition-colors",children:[(0,L.jsx)(r.A,{className:"w-4 h-4"}),"Back to Brand Kit Library"]}),(0,L.jsxs)("button",{onClick:async()=>{try{if(!ee.name)return void ye("error","Please enter a name for your brand kit");if(await X(ee),ee.id)ye("success",`Brand kit "${ee.name}" updated successfully!`);else try{const{saveBrandKitAsPreset:e}=A.default.getState(),s=await e(ee.name);se(e=>({...e,id:s.id||`local_${Date.now()}`})),ye("success",`Brand kit "${ee.name}" saved successfully!`)}catch(e){const{userBrandKits:s}=A.default.getState(),t={id:`local_${Date.now()}`,name:ee.name,colors:{...ee.colors},typography:{...ee.typography},spacing:{...ee.spacing},isLocal:!0,created_at:(new Date).toISOString()};A.default.setState(e=>({userBrandKits:[...e.userBrandKits||[],t]})),se(e=>
1({...e,id:t.id})),ye("success",`Brand kit "${ee.name}" saved locally!`)}ne(!0),setTimeout(()=>ne(!1),2e3)}catch(s){ye("error","Failed to save brand kit. Please try again.")}},className:"flex items-center gap-2 px-5 h-[38px] rounded-lg bg-black text-white hover:bg-neutral-800 font-semibold text-sm transition-all",children:[(0,L.jsx)(a.A,{className:"w-4 h-4"}),"Save Brand Kit"]})]}),(0,L.jsxs)("div",{className:"space-y-2",children:[(0,L.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-neutral-900",children:ee.id&&"new"!==ee.id?`Edit Brand Kit: ${ee.name}`:"Create New Brand Kit"}),(0,L.jsx)("p",{className:"text-neutral-600 text-sm leading-relaxed",children:"Customize colors, typography, and styling options for your newsletters."})]})]}),(0,L.jsxs)("div",{className:"space-y-12",children:[(0,L.jsxs)("section",{className:"bg-white border border-neutral-200 rounded-xl p-6",children:[(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900 mb-4 flex items-center gap-2",children:[(0,L.jsx)(i.A,{className:"w-5 h-5 text-neutral-600"}),"Brand Kit Name"]}),(0,L.jsx)("input",{type:"text",value:ee.name,onChange:e=>se(s=>({...s,name:e.target.value})),placeholder:"Enter brand kit name...",className:"w-full px-4 py-3 border border-neutral-200 rounded-lg focus:ring-2 focus:ring-black focus:border-transparent outline-none"})]}),(0,L.jsxs)("section",{className:"bg-white border border-neutral-200 rounded-xl p-6",children:[(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900 mb-6 flex items-center gap-2",children:[(0,L.jsx)(u.A,{className:"w-5 h-5 text-neutral-600"}),"Brand Colors"]}),(0,L.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-6",children:[(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Primary Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.primary,onColorSelect:e=>je("primary",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Buttons, CTAs, highlights"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Secondary Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.secondary,onColorSelect:e=>je("secondary",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Accents, supporting elements"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Text Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.text,onColorSelect:e=>je("text",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"All text content"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Backgroun
1d Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.background,onColorSelect:e=>je("background",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Container backgrounds"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Accent Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.accent,onColorSelect:e=>je("accent",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Special highlights"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Border Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.border,onColorSelect:e=>je("border",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Borders, dividers"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"H1 Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.h1Color||ee.colors.primary,onColorSelect:e=>je("h1Color",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Main headings"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"H2 Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.h2Color||ee.colors.text,onColorSelect:e=>je("h2Color",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Section headings"})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"H3 Color"}),(0,L.jsx)(C.s,{selectedColor:ee.colors.h3Color||"#666666",onColorSelect:e=>je("h3Color",e)}),(0,L.jsx)("p",{className:"text-xs text-neutral-500",children:"Sub-headings"})]})]})]}),(0,L.jsxs)("section",{className:"bg-white border border-neutral-200 rounded-xl p-6",children:[(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900 mb-6 flex items-center gap-2",children:[(0,L.jsx)(g.A,{className:"w-5 h-5 text-neutral-600"}),"Typography"]}),(0,L.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Heading Font"}),(0,L.jsx)(k.A,{value:ee.typography.headingFont,onValueChange:e=>Ne("headingFont",e)})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Body Font"}),(0,L.jsx)(k.A,{value:ee.typography.bodyFont,onValueChange:e=>Ne("bodyFont",e)})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Button Font"}),(0,L.jsx)(k.A,{value:ee.typography.buttonFont,onValueChange:e=>Ne("buttonFont",e)})]})]}),(0,L.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-6 mt-6",children:[(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"H1 Size"}),(0,L.jsxs)(z.l6,{value:ee.typography.h1Size?`${ee.typography.h1Size}px`:"32px",onValueChange:e=>Ne("h1Size",e),children:[(0,L.jsx)(z.bq,{children:(0,L.jsx)(z.yv,{placeholder:"32px"})}),(0,L.jsxs)(z.gC,{children:[(0,L.jsx)(z.eb,{value:"28px",children:"28px"}),(0,L.jsx)(z.eb,{value:"30px",children:"30px"}),(0,L.jsx)(z.eb,{value:"32px",children:"32px"}),(0,L.jsx)(z.eb,{value:"36px",children:"36px"}),(0,L.jsx)(z.eb,{value:"40px",children:"40px"}),(0,L.jsx)(z.eb,{value:"44px",children:"44px"})]})]})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"H2 Size"}),(0,L.jsxs)(z.l6,{value:ee.typography.h2Size?`${ee.typography.h2Size}px`:"28px",onValueChange:e=>Ne("h2Size",e),children:[(0,L.jsx)(z.bq,{children:(0,L.jsx)(z.yv,{placeholder:"28px"})}),(0,L.jsxs)(z.gC,{children:[(0,L.jsx)(z.eb,{value:"24px",children:"24px"}),(0,L.jsx)(z.eb,{value:"26px",children:"26px"}),(0,L.jsx)(z.eb,{value:"28px",children:"28px"}),(0,L.jsx)(z.eb,{value:"30px",children:"30px"}),(0,L.jsx)(z.eb,{value:"32px",children:"32px"}),(0,L.jsx)(z.eb,{value:"36px",children:"36px"})]})]})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"H3 Size"}),(0,L.jsxs)(z.l6,{value:ee.typography.h3Size?`${ee.typography.h3Size}px`:"24px",onValueChange:e=>Ne("h3Size",e),children:[(0,L.jsx)(z.bq,{children:(0,L.jsx)(z.yv,{placeholder:"24px"})}),(0,L.jsxs)(z.gC,{children:[(0,L.jsx)(z.eb,{value:"20px",children:"20px"}),(0,L.jsx)(z.eb,{value:"22",children:"22"}),(0,L.jsx)(z.eb,{value:"24px",children:"24px"}),(0,L.jsx)(z.eb,{value:"26px",children:"26px"}),(0,L.jsx)(z.eb,{value:"28px",children:"28px"}),(0,L.jsx)(z.eb,{value:"30px",children:"30px"})]})]})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Body Size"}),(0,L.jsxs)(z.l6,{value:ee.typography.bodySize?`${ee.typography.bodySize}px`:"16px",onValueChange:e=>Ne("bodySize",e),children:[(0,L.jsx)(z.bq,{children:(0,L.jsx)(z.yv,{placeholder:"16px"})}),(0,L.jsxs)(z.gC,{children:[(0,L.jsx)(z.eb,{value:"14px",children:"14px"}),(0,L.jsx)(z.eb,{value:"15px",children:"15px"}),(0,L.jsx)(z.eb,{value:"16px",children:"16px"}),(0,L.jsx)(z.eb,{value:"18px",children:"18px"}),(0,L.jsx)(z.eb,{value:"20px",children:"20px"})]})]})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Button Size"}),(0,L.jsxs)(z.l6,{value:ee.typography.buttonSize?`${ee.typography.buttonSize}px`:"16px",onValueChange:e=>Ne("buttonSize",e),children:[(0,L.jsx)(z.bq,{children:(0,L.jsx)(z.yv,{placeholder:"14px"})}),(0,L.jsxs)(z.gC,{children:[(0,L.jsx)(z.eb,{value:"12px",children:"12px"}),(0,L.jsx)(z.eb,{value:"14px",children:"14px"}),(0,L.jsx)(z.eb,{value:"16px",children:"16px"}),(0,L.jsx)(z.eb,{value:"18px",children:"18px"})]})]})]})]})]}),(0,L.jsxs)("section",{className:"bg-white border border-neutral-200 rounded-xl p-6",children:[(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900 mb
1-6 flex items-center gap-2",children:[(0,L.jsx)(x.A,{className:"w-5 h-5 text-neutral-600"}),"Button Styles"]}),(0,L.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Button Style"}),(0,L.jsxs)(S.O,{type:"single",value:(null===(e=ee.buttons)||void 0===e?void 0:e.style)||"filled",onValueChange:e=>{e&&we("style",e)},className:"justify-start",children:[(0,L.jsxs)(S.d,{value:"filled",className:"flex-1",children:[(0,L.jsx)(N.oCP,{className:"w-4 h-4 mr-2"}),"Filled"]}),(0,L.jsxs)(S.d,{value:"outline",className:"flex-1",children:[(0,L.jsx)(N.PO7,{className:"w-4 h-4 mr-2"}),"Outline"]})]})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Button Shape"}),(0,L.jsxs)(S.O,{type:"single",value:(null===(s=ee.buttons)||void 0===s?void 0:s.shape)||"default",onValueChange:e=>{e&&we("shape",e)},className:"justify-start",children:[(0,L.jsx)(S.d,{value:"default",className:"flex-1",children:(0,L.jsx)(h.A,{className:"w-4 h-4"})}),(0,L.jsx)(S.d,{value:"round",className:"flex-1",children:(0,L.jsx)(o.A,{className:"w-4 h-4"})}),(0,L.jsx)(S.d,{value:"square",className:"flex-1",children:(0,L.jsx)(p.A,{className:"w-4 h-4"})})]})]})]}),(0,L.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-6",children:[(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"outline"===(null===(t=ee.buttons)||void 0===t?void 0:t.style)?"Outline Color":"Button Background Color"}),(0,L.jsx)(C.s,{selectedColor:(null===(K=ee.buttons)||void 0===K?void 0:K.backgroundColor)||ee.colors.primary,onColorSelect:e=>we("backgroundColor",e)})]}),"default"===(null===(E=ee.buttons)||void 0===E?void 0:E.shape)&&(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Button Border Radius"}),(0,L.jsxs)(z.l6,{value:(null===(R=ee.buttons)||void 0===R||null===(H=R.borderRadius)||void 0===H?void 0:H.toString())||"6",onValueChange:e=>we("borderRadius",parseInt(e)),children:[(0,L.jsx)(z.bq,{children:(0,L.jsx)(z.yv,{})}),(0,L.jsxs)(z.gC,{children:[(0,L.jsx)(z.eb,{value:"0",children:"0px (Square)"}),(0,L.jsx)(z.eb,{value:"4",children:"4px"}),(0,L.jsx)(z.eb,{value:"6",children:"6px"}),(0,L.jsx)(z.eb,{value:"8",children:"8px"}),(0,L.jsx)(z.eb,{value:"12",children:"12px"}),(0,L.jsx)(z.eb,{value:"16",children:"16px"})]})]})]})]})]}),(0,L.jsxs)("section",{className:"bg-white border border-neutral-200 rounded-xl p-6",children:[(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900 mb-6 flex items-center gap-2",children:[(0,L.jsx)(d.A,{className:"w-5 h-5 text-neutral-600"}),"Link Styles"]}),(0,L.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Link Color"}),(0,L.jsx)(C.s,{selectedColor:(null===(T=ee.links)||void 0===T?void 0:T.color)||(null===($=ee.colors)||void 0===$?void 0:$.primary),onColorSelect:e=>Ce("color",e)})]}),(0,L.jsxs)("div",{className:"space-y-3",children:[(0,L.jsx)(w.J,{className:"text-sm font-medium text-neutral-700",children:"Link Underline"}),(0,L.jsxs)("div",{className:"flex items-center space-x-2 pt-2",children:[(0,L.jsx)(F.d,{checked:!1!==(null===(V=ee.links)||void 0===V?void 0:V.underline),onCheckedChange:e=>Ce("underline",e)}),(0,L.jsx)(w.J,{className:"text-sm text-gray-600",children:!1!==(null===(q=ee.links)||void 0===q?void 0:q.underline)?"Underlined":"No underline"})]})]})]})]}),(0,L.jsxs)("section",{className:"bg-white border border-neutral-200 rounded-xl p-6",children:[(0,L.jsxs)("h3",{className:"text-base font-bold text-neutral-900 mb-6 flex items-center gap-2",children:[(0,L.jsx)(n.A,{className:"w-5 h-5 text-neutral-600"}),"Preview"]}),(0,L.jsxs)("div",{className:"space-y-6 p-6 border border-neutral-200 rounded-lg bg-gray-50",style:{backgroundColor:ee.colors.background},children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("h1",{style:{fontFamily:ee.typography.headingFont,fontSize:ee.typography.h1Size||"32px",fontWeight:"bold",color:ee.colors.h1Color||ee.colors.primary,margin:0,lineHeight:1.2},children:"Main Newsletter Heading (H1)"}),(0,L.jsxs)("span",{className:"text-xs text-neutral-400",children:[ee.typography.h1Size||"32px"," \u2022 ",ee.typography.headingFont]})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h2",{style:{fontFamily:ee.typography.headingFont,fontSize:ee.typography.h2Size||"28px",fontWeight:"600",color:ee.colors.h2Color||ee.colors.text,margin:0,lineHeight:1.3},children:"Section Heading (H2)"}),(0,L.jsxs)("span",{className:"text-xs text-neutral-400",children:[ee.typography.h2Size||"28px"," \u2022 ",ee.typography.headingFont]})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{style:{fontFamily:ee.typography.headingFont,fontSize:ee.typography.h3Size||"24px",fontWeight:"500",color:ee.colors.h3Color||"#666666",margin:0,lineHeight:1.4},children:"Sub-heading (H3)"}),(0,L.jsxs)("span",{className:"text-xs text-neutral-400",children:[ee.typography.h3Size||"24px"," \u2022 ",ee.typography.headingFont]})]}),(0,L.jsxs)("div",{children:[(0,L.jsxs)("p",{style:{fontFamily:ee.typography.body
1Font,fontSize:ee.typography.bodySize||"15px",fontWeight:"normal",color:ee.colors.text,margin:0,lineHeight:1.6},children:["This is sample body text showing how your content will look. It includes ",(0,L.jsx)("a",{href:"#",style:{color:(null===(P=ee.links)||void 0===P?void 0:P.color)||ee.colors.primary,textDecoration:!1!==(null===(M=ee.links)||void 0===M?void 0:M.underline)?"underline":"none"},children:"a sample link"})," to demonstrate link styling."]}),(0,L.jsxs)("span",{className:"text-xs text-neutral-400",children:[ee.typography.bodySize||"16px"," \u2022 ",ee.typography.bodyFont]})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("button",{style:{fontFamily:ee.typography.buttonFont,fontSize:ee.typography.buttonSize||"14px",fontWeight:"medium",backgroundColor:"outline"===(null===(O=ee.buttons)||void 0===O?void 0:O.style)?"transparent":(null===(D=ee.buttons)||void 0===D?void 0:D.backgroundColor)||ee.colors.primary,color:"outline"===(null===(U=ee.buttons)||void 0===U?void 0:U.style)?(null===(W=ee.buttons)||void 0===W?void 0:W.backgroundColor)||ee.colors.primary:"#ffffff",border:"outline"===(null===(I=ee.buttons)||void 0===I?void 0:I.style)?`2px solid ${(null===(_=ee.buttons)||void 0===_?void 0:_.backgroundColor)||ee.colors.primary}`:"none",padding:"12px 24px",borderRadius:"round"===(null===(G=ee.buttons)||void 0===G?void 0:G.shape)?"9999px":"square"===(null===(Y=ee.buttons)||void 0===Y?void 0:Y.shape)?"0px":`${(null===(Z=ee.buttons)||void 0===Z?void 0:Z.borderRadius)||6}
1px`,cursor:"pointer"},children:"Sample Button"}),(0,L.jsx)("br",{}),(0,L.jsxs)("span",{className:"text-xs text-neutral-400",children:[ee.typography.buttonSize||"14px"," \u2022 ",ee.typography.buttonFont]})]})]})]})]})]})}),ue&&(0,L.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:(0,L.jsxs)("div",{className:"bg-white rounded-xl p-6 w-full max-w-md",children:[(0,L.jsx)("h3",{className:"text-lg font-bold text-red-600 mb-4",children:"Delete Brand Kit"}),(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3 text-red-600",children:[(0,L.jsx)(y.A,{className:"w-5 h-5"}),(0,L.jsx)("span",{className:"font-medium",children:"Are you sure?"})]}),(0,L.jsx)("p",{className:"text-gray-600",children:"Are you sure you want to delete this brand kit? This action cannot be undone."}),(0,L.jsxs)("div",{className:"flex justify-end gap-3 pt-4",children:[(0,L.jsx)("button",{onClick:()=>me(null),className:"px-4 py-2 rounded-lg border border-gray-300 hover:bg-gray-50 font-medium transition-colors",children:"Cancel"}),(0,L.jsxs)("button",{onClick:async()=>{if(ue)try{const{deleteBrandKit:e}=A.default.getState();e&&await e(ue);const s=(A.default.getState().userBrandKits||[]).filter(e=>e.id!==ue);A.default.setState({userBrandKits:s}),J.p.setUserBrandKits(s)}catch(e){alert("Failed to delete brand kit. Please try again.")}finally{me(null)}},className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-red-600 hover:bg-red-700 text-white font-medium transition-colors",children:[(0,L.jsx)(y.A,{className:"w-4 h-4"}),"Delete"]})]})]})]})})]})}},13696(e,s,t){t.d(s,{A:()=>u});var l=t(9950),a=t(27453),r=t(13147),o=t(42989),n=t(31468),i=t(83657),d=t(44414);const c=l.forwardRef((e,s)=>{var t,o;let{className:c,value:u,onValueChange:m,usedFonts:h=[],getUsedFonts:p,...y}=e;const[g,f]=l.useState(!1),[b,v]=l.useState(""),[j,N]=l.useState([]),[w,C]=l.useState(""),[k,S]=l.useState([]),F=l.useRef(null),{isAllLoaded:z,triggerAllFontsLoading:A,getCurrentFonts:B}=(0,i.yj)(),J=B(),L=l.useCallback(()=>{const e=(0,i.zF)(u);if(!e)return null;const s=(J||[]).find(s=>s.family===e.family);return{...e,category:e.isSystem?e.category:(null===s||void 0===s?void 0:s.category)||"google",isCurrent:!0}},[J,u])(),K=l.useCallback((e,s)=>!(!e||!s)&&((e.isSystem||s.isSystem)&&e.stack===s.stack||e.family===s.family),[]),E=l.useMemo(()=>{const e=new Set,s=[],t=t=>{const l="string"===typeof t?(0,i.zF)(t):(0,i.zF)((null===t||void 0===t?void 0:t.value)||(null===t||void 0===t?void 0:t.fontFamily)||(null===t||void 0===t?void 0:t.family)||(null===t||void 0===t?void 0:t.stack));if(!l)return;const a=l.isSystem?l.stack:l.family.toLowerCase();if(e.has(a))return;const r=(J||[]).find(e=>e.family===l.family);e.add(a),s.push({...l,category:l.isSystem?l.category:(null===r||void 0===r?void 0:r.category)||l.category||"google",isCurrent:!!L&&K(l,L)})};return t(L),(k||[]).forEach(t),s.slice(0,5)},[J,L,K,k]);l.useEffect(()=>{const e=e=>{F.current&&!F.current.contains(e.target)&&(f(!1),v(""))};return g&&(document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[g]);const R=l.useCallback(()=>{const e=!g;if(e){const e="function"===typeof p?p():h;S(Array.isArray(e)?e:[])}else v("");f(e)},[p,g,h]),H=l.useCallback(e=>{try{const s=(e||"").toLowerCase().trim();if(s&&!z&&A(),!s){const e=[...(i.Mo||[]).map(e=>({family:e.name,stack:e.stack,category:e.type||"sans-serif",isSystem:!0})),...(J||[]).map(e=>({family:e.family,category:e.category||"sans-serif",isSystem:!1}))];return E.length?e.filter(e=>!E.some(s=>K(e,s))):e}const t=[...(i.Mo||[]).filter(e=>e.name.toLowerCase().includes(s)).map(e=>({family:e.name,stack:e.stack,category:e.type||"sans-serif",isSystem:!0})),...(J||[]).filter(e=>e.family.toLowerCase().includes(s)).map(e=>({family:e.family,category:e.category||"sans-serif",isSystem:!1}))];return E.length?t.filter(e=>!E.some(s=>K(e,s))):t}catch(s){return console.error("Error in searchFonts:",s),[]}},[J,z,K,E,A]);l.useEffect(()=>{const e=setTimeout(()=>{const e=H(b);N(e)},300);return()=>clearTimeout(e)},[b,H]);const T=async e=>{C(e.family);try{e.isSystem||await(0,i.r4)(e.family),null===m||void 0===m||m(e.isSystem?e.stack:e.family),f(!1),v("")}catch(s){console.error("Error loading font:",s)}finally{C("")}};return(0,d.jsxs)("div",{ref:s,className:(0,n.cn)("relative w-full",c),...y,children:[(0,d.jsxs)("button",{type:"button",onClick:R,className:(0,n.cn)("w-full h-9 px-3 bg-white border border-gray-200 rounded-md","flex items-center justify-between gap-2","text-sm text-gray-700","transition-colors","hover:border-gray-300","focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500",g&&"rounded-b-none border-gray-300","disabled:cursor-not-allowed disabled:opacity-50"),children:[(0,d.jsx)("span",{style:{fontFamily:(0,i.pA)(u)?null===(t=i.Mo.find(e=>e.name===u||e.stack===u))||void 0===t?void 0:t.stack:u},className:"truncate min-w-0 flex-1 text-left",children:(0,i.pA)(u)?null===(o=i.Mo.find(e=>e.name===u||e.stack===u))||void 0===o?void 0:o.name:u}),(0,d.jsx)(a.A,{className:(0,n.cn)("w-4 h-4 flex-shrink-0 text-gray-500 transition-transform duration-200",g&&"rotate-180")}
1)]}),g&&(0,d.jsxs)("div",{className:"absolute z-50 w-full bg-white border border-gray-300 rounded-b-md shadow-lg mt-0",ref:F,children:[(0,d.jsx)("div",{className:"p-2 border-b",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(r.A,{className:"absolute left-2 top-1/2 -translate-y-1/2 text-gray-400 w-4 h-4"}),(0,d.jsx)("input",{type:"text",placeholder:"Search fonts...",value:b,onChange:e=>v(e.target.value),className:"w-full pl-8 pr-3 py-1 text-sm border rounded"})]})}),(0,d.jsxs)("div",{className:"max-h-64 overflow-y-auto",children:[E.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"px-2 py-1 text-xs font-medium text-gray-500",children:k.length>0?"Used in this newsletter":"Current Font"}),E.map(e=>(0,d.jsx)(x,{font:e,isSelected:!!L&&K(e,L),isLoading:w===e.family,onSelect:T},`${e.isSystem?e.stack:e.family}-pinned`)),(0,d.jsx)("div",{className:"border-t my-1"})]}),j.some(e=>e.isSystem)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"px-2 py-1 text-xs font-medium text-gray-500",children:"System Fonts (Recommended for Email)"}),j.filter(e=>e.isSystem).map(e=>(0,d.jsx)(x,{font:e,isSelected:u===(e.isSystem?e.stack:e.family),isLoading:w===e.family,onSelect:T},e.family))]}),j.some(e=>!e.isSystem)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"px-2 py-1 text-xs font-medium text-gray-500 mt-2 border-t pt-2",children:["Google Fonts",(0,d.jsx)("span",{className:"block text-[10px] text-amber-600 mt-0.5",children:"Limited support in email clients"})]}),j.filter(e=>!e.isSystem).map(e=>(0,d.jsx)(x,{font:e,isSelected:u===e.family,isLoading:w===e.family,onSelect:T},e.family))]}),0===j.length&&(0,d.jsx)("div",{className:"px-2 py-4 text-sm text-center text-gray-500",children:"No fonts found"})]})]})]})}),x=e=>{let{font:s,isSelected:t,isLoading:a,onSelect:r}=e;const[c,x]=l.useState(s.isSystem);return l.useEffect(()=>{s.isSystem||c||(0,i.Vm)(s.family).then(()=>{x(!0)}).catch(()=>{x(!0)})},[s,c]),(0,d.jsx)("button",{className:(0,n.cn)("w-full px-3 py-2 text-left transition-colors","hover:bg-gray-50",t&&"bg-gray-100"),onClick:()=>r(s),disabled:a,children:(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)("span",{style:{fontFamily:s.isSystem?s.stack:s.family,opacity:c?1:.6},className:"text-sm flex-1 min-w-0 truncate",children:s.family}),(0,d.jsx)("span",{className:"text-xs text-gray-400 flex-shrink-0",children:s.category}),a&&(0,d.jsx)(o.A,{className:"w-4 h-4 flex-shrink-0 animate-spin"})]})})};c.displayName="FontSelect";const u=c},90557(e,s,t){t.d(s,{J:()=>o});var l=t(9950),a=t(31468),r=t(44414);const o=l.forwardRef((e,s)=>{let{className:t,...l}=e;return(0,r.jsx)("label",{className:(0,a.cn)("text-sm font-medium leading-none text-gray-700 mb-3.5 block","peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t),ref:s,...l})});o.displayName="Label"},58944(e,s,t){t.d(s,{A:()=>o});t(9950);var l=t(96479),a=t(31468),r=t(44414);const o=e=>{let{children:s,title:t,onClose:o,isOpen:n=!1,className:i,overlayClassName:d,contentClassName:c,titleClassName:x,showCloseButton:u=!0,size:m="md",darkOverlay:h=!0,allowOverflow:p=!0}=e;if(!n)return null;return(0,r.jsx)("div",{className:(0,a.cn)("fixed inset-0 z-50 flex items-center justify-center p-4",h?"bg-black bg-opacity-50":"bg-transparent",d),onClick:e=>{e.target===e.currentTarget&&o()},children:(0,r.jsxs)("div",{className:(0,a.cn)("bg-white rounded-xl shadow-2xl w-full border border-gray-100 flex flex-col",{sm:"max-w-sm max-h-[90vh]",md:"max-w-md max-h-[90vh]",lg:"max-w-lg max-h-[90vh]",xl:"max-w-xl max-h-[90vh]","2xl":"max-w-2xl max-h-[90vh]","3xl":"max-w-3xl max-h-[90vh]","4xl":"max-w-4xl max-h-[90vh]","5xl":"max-w-5xl max-h-[90vh]","6xl":"max-w-6xl max-h-[90vh]","7xl":"max-w-7xl max-h-[90vh]","16:9":"w-[90vw] h-[50.625vw] max-w-[1600px] max-h-[900px]",full:"w-[95vw] h-[95vh]"}[m],p?"overflow-hidden":"",i),children:[(t||u)&&(0,r.jsxs)("div",{className:"flex items-center justify-between px-8 pt-8 pb-2 flex-shrink-0",children:[t&&(0,r.jsx)("h3",{className:(0,a.cn)("text-lg font-semibold text-gray-800",x),children:t}),u&&(0,r.jsx)("button",{onClick:o,className:"p-1.5 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-gray-500",children:(0,r.jsx)(l.A,{className:"w-5 h-5 text-gray-600"})})]}),(0,r.jsx)("div",{className:(0,a.cn)("flex-1",p?"overflow-y-auto":"",c||"px-8 py-6 sm:py-8"),children:s})]})})}},11455(e,s,t){t.d(s,{bq:()=>x,eb:()=>m,gC:()=>u,l6:()=>d,yv:()=>c});
1var l=t(9950),a=t(58390),r=t(86311),o=t(27453),n=t(31468),i=t(44414);const d=a.bL,c=(a.YJ,a.WT),x=l.forwardRef((e,s)=>{let{className:t,children:l,...r}=e;return(0,i.jsxs)(a.l9,{ref:s,className:(0,n.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...r,children:[l,(0,i.jsx)(a.In,{asChild:!0,children:(0,i.jsx)(o.A,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=a.l9.displayName;const u=l.forwardRef((e,s)=>{let{className:t,children:l,position:r="popper",...o}=e;return(0,i.jsx)(a.ZL,{children:(0,i.jsx)(a.UC,{ref:s,className:(0,n.cn)("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...o,children:(0,i.jsx)(a.LM,{className:(0,n.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l})})})});u.displayName=a.UC.displayName;l.forwardRef((e,s)=>{let{className:t,...l}=e;return(0,i.jsx)(a.JU,{ref:s,className:(0,n.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...l})}).displayName=a.JU.displayName;const m=l.forwardRef((e,s)=>{let{className:t,children:l,...o}=e;return(0,i.jsxs)(a.q7,{ref:s,className:(0,n.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(a.VF,{children:(0,i.jsx)(r.A,{className:"h-4 w-4"})})}),(0,i.jsx)(a.p4,{children:l})]})});m.displayName=a.q7.displayName;l.forwardRef((e,s)=>{let{className:t,...l}=e;return(0,i.jsx)(a.wv,{ref:s,className:(0,n.cn)("-mx-1 my-1 h-px bg-muted",t),...l})}).displayName=a.wv.displayName},63009(e,s,t){t.d(s,{O:()=>n,d:()=>i});var l=t(9950),a=t(45699),r=t(31468),o=t(44414);const n=l.forwardRef((e,s)=>{const{className:t,variant:l="default",...n}=e;return(0,o.jsx)(a.bL,{ref:s,className:(0,r.cn)("dark"===l?"inline-flex rounded-md border border-white/10 bg-slate-950 p-1 gap-1":"inline-flex bg-white rounded-md border border-gray-200 p-1 gap-1",t),...n})}),i=l.forwardRef((e,s)=>{const{className:t,children:l,variant:n="default",...i}=e;return(0,o.jsx)(a.q7,{ref:s,className:(0,r.cn)("dark"===n?"inline-flex items-center justify-center whitespace-nowrap rounded-[4px] px-3 py-1.5 text-sm font-medium ring-offset-slate-950 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-slate-300 hover:bg-white/10 hover:text-white data-[state=on]:bg-white data-[state=on]:text-slate-950":"inline-flex items-center justify-center whitespace-nowrap rounded-[4px] px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-400 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-gray-600 hover:bg-gray-100 hover:text-gray-900 data-[state=on]:bg-blue-50 data-[state=on]:text-blue-600",t),...i,children:l})});n.displayName="ToggleGroup",i.displayName="ToggleGroupItem"}}]);
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.