1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7830,9789],{32170:(e,t,a)=>{a.r(t),a.d(t,{RichTextDisplay:()=>r,RichTextEditor:()=>n});var l=a(95155),s=a(67909),i=a(25016);let n=(0,s.default)(()=>Promise.all([a.e(5004),a.e(277),a.e(1616),a.e(9726),a.e(1168),a.e(8429),a.e(8683),a.e(4845),a.e(7374)]).then(a.bind(a,64993)),{loadableGenerated:{webpack:()=>[64993]},ssr:!1,loading:()=>(0,l.jsx)("div",{className:"h-[120px] rounded-md border border-dashed flex items-center justify-center text-sm text-muted-foreground bg-muted/20",children:"Loading editor..."})});function r(e){let{html:t,className:a}=e;return t&&"<p></p>"!==t?(0,l.jsx)("div",{className:(0,i.cn)("prose prose-sm max-w-none dark:prose-invert prose-img:rounded-lg prose-img:max-w-full",a),dangerouslySetInnerHTML:{__html:t}}):null}},47507:(e,t,a)=>{a.d(t,{bq:()=>x,eb:()=>g,gC:()=>h,l6:()=>d,yv:()=>u});var l=a(95155),s=a(12115),i=a(53281),n=a(24033),r=a(12108),o=a(5917),c=a(25016);let d=i.bL;i.YJ;let u=i.WT,x=s.forwardRef((e,t)=>{let{className:a,children:s,...r}=e;return(0,l.jsxs)(i.l9,{ref:t,className:(0,c.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-white px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...r,children:[s,(0,l.jsx)(i.In,{asChild:!0,children:(0,l.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=i.l9.displayName;let p=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.PP,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,l.jsx)(r.A,{className:"h-4 w-4"})})});p.displayName=i.PP.displayName;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.wn,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,l.jsx)(n.A,{className:"h-4 w-4"})})});m.displayName=i.wn.displayName;let h=s.forwardRef((e,t)=>{let{className:a,children:s,position:n="popper",...r}=e;return(0,l.jsx)(i.ZL,{children:(0,l.jsxs)(i.UC,{ref:t,className:(0,c.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-white text-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 origin-[--radix-select-content-transform-origin]","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...r,children:[(0,l.jsx)(p,{}),(0,l.jsx)(i.LM,{className:(0,c.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,l.jsx)(m,{})]})})});h.displayName=i.UC.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.JU,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",a),...s})}).displayName=i.JU.displayName;let g=s.forwardRef((e,t)=>{let{className:a,children:s,...n}=e;return(0,l.jsxs)(i.q7,{ref:t,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,l.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(i.VF,{children:(0,l.jsx)(o.A,{className:"h-4 w-4"})})}),(0,l.jsx)(i.p4,{children:s})]})});g.displayName=i.q7.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.wv,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=i.wv.displayName},52793:(e,t,a)=>{a.d(t,{e:()=>u});var l=a(95155),s=a(12115),i=a(65229),n=a(919),r=a(42196),o=a(21786),c=a(97003),d=a(18720);function u(e){let{value:t,onChange:a,label:u="Image",accept:x="image/*"}
1=e,[p,m]=(0,s.useState)(!1),h=(0,s.useRef)(null);async function g(e){var t;let l=null==(t=e.target.files)?void 0:t[0];if(!l||!l.type.startsWith("image/"))return void d.oR.error("Please select an image file");m(!0);try{let e=new FormData;e.append("file",l);let t=await fetch("/api/cms/upload",{method:"POST",body:e});if(!t.ok){let e=await t.json();throw Error(e.message||"Upload failed")}let s=await t.json();a(s.url),d.oR.success("Image uploaded")}catch(e){d.oR.error(e instanceof Error?e.message:"Upload failed")}finally{m(!1),e.target.value=""}}return(0,l.jsxs)("div",{className:"space-y-2",children:[u&&(0,l.jsx)("p",{className:"text-sm font-medium",children:u}),(0,l.jsxs)("div",{className:"flex items-start gap-4",children:[t?(0,l.jsxs)("div",{className:"relative rounded-lg border overflow-hidden bg-muted w-48 h-32",children:[(0,l.jsx)("img",{src:t,alt:"Uploaded",className:"w-full h-full object-cover"}),(0,l.jsx)(c.$,{type:"button",variant:"destructive",size:"icon",className:"absolute top-1 right-1 h-6 w-6",onClick:()=>a(""),children:(0,l.jsx)(i.A,{className:"h-3 w-3"})})]}):(0,l.jsx)("div",{className:"flex flex-col items-center justify-center rounded-lg border-2 border-dashed w-48 h-32 bg-muted/50 cursor-pointer hover:bg-muted transition-colors",onClick:()=>{var e;return null==(e=h.current)?void 0:e.click()},children:p?(0,l.jsx)(n.A,{className:"h-8 w-8 animate-spin text-muted-foreground"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.A,{className:"h-8 w-8 text-muted-foreground mb-1"}),(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:"Upload"})]})}),!t&&(0,l.jsxs)(c.$,{type:"button",variant:"outline",size:"sm",disabled:p,onClick:()=>{var e;return null==(e=h.current)?void 0:e.click()},children:[p?(0,l.jsx)(n.A,{className:"h-4 w-4 animate-spin"}):(0,l.jsx)(o.A,{className:"h-4 w-4 mr-2"}),"Choose file"]})]}),(0,l.jsx)("input",{ref:h,type:"file",accept:x,className:"hidden",onChange:g}),(0,l.jsx)("p",{className:"text-xs text-muted-foreground",children:"Images are stored on the server (S3 or local)."})]})}},57830:(e,t,a)=>{a.r(t),a.d(t,{PageBuilder:()=>eg});var l=a(95155),s=a(12115),i=a(54152);let n={hero:{title:"Your headline goes here",subtitle:"A short description supporting the headline.",ctaLabel:"Get Started",ctaHref:"#",secondaryCtaLabel:"Learn More",secondaryCtaHref:"#",align:"center",bgColor:"#ffffff",textColor:"#0a0a0a",bgImage:"",badge:""},text:{content:"<p>Add your content here.</p>",align:"left",maxWidth:"md",textColor:"#0a0a0a",bgColor:"#ffffff"},image:{src:"",alt:"Image",caption:"",layout:"contained",splitText:"Add your text alongside the image here.",rounded:!0},cta:{headline:"Ready to get started?",subtext:"Join thousands of teams already using our platform.",buttonLabel:"Get Started",buttonHref:"#",buttonStyle:"filled",align:"center",bgColor:"#0a0a0a",textColor:"#ffffff",bgImage:""},features:{title:"Why choose us",subtitle:"Everything you need.",items:[],columns:3,bgColor:"#f9f9f9",textColor:"#0a0a0a"},faq:{title:"Frequently Asked Questions",subtitle:"Everything you need to know.",items:[],bgColor:"#ffffff"},spacer:{size:"md"},columns:{columns:[{content:"<p>Column 1</p>"},{content:"<p>Column 2</p>"}],count:2,gap:"md",bgColor:"#ffffff"},frame:{},section:{},stack:{},grid:{columns:2,gap:"md"},divider:{},heading:{title:"Heading",tag:"h2",align:"left"},paragraph:{content:"Paragraph text",align:"left"},"rich-text":{content:"<p>Rich text block</p>"},video:{src:"https://www.youtube.com/embed/dQw4w9WgXcQ"},icon:{icon:"Star",size:24,color:"#000000"},"code-block":{content:"console.log('Hello world');",language:"javascript"},button:{label:"Click Me",href:"#",variant:"default"},link:{label:"Link",href:"#"},input:{placeholder:"Enter text...",type:"text"},textarea:{placeholder:"Enter long text..."},select:{placeholder:"Select an option",items:[{label:"Option 1",value:"1"}]},navbar:{items:[{label:"Home",href:"/"}]},sidebar:{},breadcrumb:{},footer:{},card:{title:"Card Title",content:"Card content",image:""},"feature-card":{title:"Feature",content:"Description",icon:"Award"},"pricing-card":{title:"Pro Plan",price:"$99",features:["Feature 1","Feature 2"],buttonLabel:"Buy Now",buttonHref:"#"},testimonial:{quote:"Great!",author:"John Doe",role:"CEO",avatar:""},"collection-list":{},repeater:{},"dynamic-text":{},"dynamic-image":{},blogs:{title:"Latest Blogs",subtitle:"Read our latest articles.",categories:[],limit:3},"team-card":{title:"Meet Our Team",subtitle:"The people behind our success.",members:[]},gallery:{items:[{src:"https://placehold.co/600x400",alt:"Image 1"},{src:"https://placehold.co/600x400",alt:"Image 2"}]},carousel:{items:[{src:"https://placehold.co/800x400",alt:"Slide 1"}]},"masonry-grid":{items:[]},modal:{title:"Modal Title",content:"Modal content",buttonLabel:"Open Modal"},tooltip:{content:"Tooltip text",label:"Hover me"},tabs:{items:[{label:"Tab 1",content:"Content 1"},{label:"Tab 2",content:"Content 2"}]},accordion:{items:[{title:"Item 1",content:"Content 1"},{title:"Item 2",content:"Content 2"}]},"scroll-animation":{animationType:"fade-up",duration:"1000",delay:"0"},"hover-animation":{animationType:"scale",scale:1.05},newsletter:{title:"Subscribe to our newsletter",subtitle:"Get the latest updates",placeholder:"Enter your email",buttonLabel:"Subscribe"}
1,"pricing-table":{title:"Pricing Plans",subtitle:"Choose the best plan for you",items:[{title:"Basic",price:"$10/mo",features:["Feature 1","Feature 2"],buttonLabel:"Start Basic",recommended:!1},{title:"Pro",price:"$29/mo",features:["Feature 1","Feature 2","Feature 3"],buttonLabel:"Start Pro",recommended:!0}]},"kalp-hero":{announcementText:"Gram App is now Live",announcementHref:"/gram",announcementIcon:"Smartphone",titleStatic:"Built in India.",titleTyping:" Designed for the Future.",description:'Kalp operates into innovative products and expert services, with 2 key products " Gram, SniffUrl " and 1 core service "Rapydlaunch".',primaryCtaLabel:"Explore Products",primaryCtaTargetId:"product",secondaryCtaLabel:"Book a Call",secondaryCtaHref:"https://cal.com/amansharma",trustedText:"Trusted by 100+ clients"},"kalp-products":{title:"Our Products",subtitle:"Thoughtfully designed tools that help teams move faster and smarter.",items:[{name:"Gram",description:"Your everyday food companion. Discover healthy meal subscriptions, order fresh food from trusted kitchens, and enjoy fast, reliable delivery all in one app.",image:"/gram_logo.svg",learnMore:"https://gramapp.co",beta:!1,learnMoreText:"Learn more",category:"Product"},{name:"SniffUrl",description:"The modern URL platform for marketers and businesses. Create short links, generate QR codes, track clicks in real time, and gain actionable insights with powerful analytics.",image:"/sniff_logo.svg",learnMore:"https://sniffurl.com",beta:!1,learnMoreText:"Learn more",category:"Product"}]},"kalp-services":{badge:"Our Service",title:"Rapydlaunch \xb7 launch anything in 45 days",subtitle:"A focused launch program for B2B SaaS and AI products, from idea and prototype to a production-ready launch in weeks, not months.",bullets:[{icon:"Rocket",title:"0 to 1 in production",description:"Design, build, and ship a real, usable product, not just a prototype or slide deck."},{icon:"CalendarCheck2",title:"45-day launch window",description:"Opinionated, time-boxed process that forces clarity on scope, priorities, and must-have features."},{icon:"Workflow",title:"Strategy + build, not just dev",description:"We shape the product, architecture, and go-to-market together so you are ready to sell on day one."}],cardBadge:"Rapydlaunch",cardTitle:"Launch your next product with a proven playbook.",cardDescription:"Join founders who have shipped SaaS, AI tools, and platforms with us. We bring the same launch rigor that powers the dedicated Rapydlaunch offering.",cardTimeline:"<= 45 days",cardLaunches:"20+ products",exploreLabel:"Explore",exploreHref:"/rapydlaunch",launchLabel:"Launch",launchHref:"https://cal.com/amansharma"},"kalp-testimonials":{title:"What Our Clients Are Saying",subtitle:"Trusted by founders and teams worldwide.",items:[{quote:"Donation platform is seamless and easy to use. Our donors love it!",name:"Matt Elston",role:"Donor Money",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=Matt",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=DM"},{quote:"Medicine delivered in minutes. Medone has truly transformed our service.",name:"Ankit Bist",role:"Medone",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=Ankit",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=MO"},{quote:"VVD made learning engaging and fun. Students love the platform!",name:"Rishabh Shrivastav",role:"VVD",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=Rishabh",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=VV"},{quote:"Our video showcase website looks professional and works flawlessly.",name:"Momita Jaisi",role:"Pinkfrogfilms",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=Momita",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=PF"},{quote:"DMCA DENT simplifies managing digital content. Very user-friendly.",name:"William",role:"DMCA DENT",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=William",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=DD"},{quote:"Couture Click allows our customers to book tailor services effortlessly.",name:"Anurag",role:"Couture Click",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=Anurag",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=CC"},{quote:"Our sensor monitoring system is accurate and reliable, thanks to Duton.",name:"Rohith",role:"Duton",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=Rohith",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=DU"},{quote:"Florosense website is clean, fast, and beautifully designed.",name:"Adarsh",role:"Florosense",avatar:"https://api.dicebear.com/7.x/notionists/svg?seed=Adarsh",companyLogo:"https://api.dicebear.com/7.x/initials/svg?seed=FS"}]},"kalp-faq":{},"kalp-about":{title:"We empower startups to scale smarter and faster",subtitle:"We are a team of designers and engineers driven by one goal ~ helping ambitious startups build products that grow.",ratingText:"Rated 5.0 by founders worldwide",mission:{title:"Our Mission",description:"Empower teams and founders with tools that reduce friction, simplify workflows, and enable sustainable growth."}
1,stats:[{value:"250+",label:"Projects Supported"},{value:"85%",label:"Client Retention Rate"},{value:"98%",label:"Client Satisfaction"},{value:"30+",label:"Integrations Supported"}],teamSectionTitle:"Our Founders & Team",teamSectionSubtitle:"Our team combines deep industry knowledge with hands-on experience to help startups grow smarter and faster.",founders:[{name:"Aman Sharma",role:"Founder & CEO",image:"/team/aman.png",linkedin:"https://www.linkedin.com/in/amnshrma/",email:"mailto:[email protected]",calendly:"https://cal.com/amansharma"},{name:"Muskan Sharma",role:"Co-Founder & CFO",image:"/team/muskan.png",linkedin:"https://www.linkedin.com/in/muskan07/"}],teamMembers:[{name:"Honey Pathkar",role:"Full Stack Developer",image:"/team/honey.png",linkedin:"https://www.linkedin.com/in/honey-pathkar/"}],timeline:[],culture:{title:"Our Culture at Cycle",subtitle:"A culture shaped by trust, humility, and a shared mission to elevate software teams.",cards:[{icon:"ShieldCheck",title:"Strength & Integrity",description:"True impact starts with strong execution and honest action ~ we lead with."},{icon:"TrendingUp",title:"Continuous Growth",description:"We grow through feedback, failure, and progress ~ always learning, always evolving."},{icon:"Award",title:"Trust",description:"We build trust by handling every idea and interaction with care."},{icon:"Link",title:"Resilience in Adversity",description:"We face challenges with calm and clarity, knowing ease always follows."},{icon:"RefreshCw",title:"Change Starts With Us",description:"Change starts within ~ we improve for ourselves before improving for others."},{icon:"Layers",title:"Collaboration Over Ego",description:"We build together, valuing teamwork over ego ~ the mission comes first."}]},hiring:[],clientLogos:["/clients/dm.svg","/clients/as.svg","/clients/medone.svg","/clients/zuari.svg","/clients/dmca.svg","/clients/flp.svg","/clients/smep.svg","/clients/floro.svg","/clients/serrisvg.svg","/clients/pmc.png"]},"kalp-gram":{},"kalp-sniffurl":{},"kalp-rapydlaunch":{},"kalp-founders":{title:"Our Founders & Team",subtitle:"Our team combines deep industry knowledge with hands-on experience to help startups grow smarter and faster.",buttonLabel:"Learn more",buttonHref:"#",member1Id:"",member2Id:""},"kalp-gram-hero":{badge:"Live in 10 cities",titleLine1:"Home Food, Grocery",titleLine2:"& Monthly Meals",description:"Home food, oil-free options & groceries in 30 min. No platform fee. No hidden charges. Just honest delivery."},"kalp-gram-features":{cat1Title:"Home Food",cat1Desc:"Home-style, hygienic, oil-free meals delivered to your door.",cat2Title:"Grocery & Anything",cat2Desc:"Groceries, medicines, essentials ~ anything delivered in 30 minutes."},"kalp-gram-promise":{title:"Why people trust Gram"},"kalp-gram-cta":{title:"Download Gram Today",description:"Your first delivery is on us. Available on iOS & Android."},"kalp-sniffurl-hero":{titleLine1:"The Fastest Way to Check",titleLine2:"Links & Scan Codes",description:"Instantly preview any link, check for malware, and scan QR codes securely without leaving your current app."},"kalp-sniffurl-stats":{stats:[{value:"10K+",label:"Links Checked"},{value:"5K+",label:"Safe Previews"},{value:"100%",label:"Secure"}]},"kalp-sniffurl-clients":{},"kalp-sniffurl-pricing":{},"kalp-sniffurl-features":{title:"Powerful Features"},"kalp-sniffurl-dashboard":{},"kalp-sniffurl-sdk":{},"kalp-sniffurl-testimonials":{},"kalp-sniffurl-faq":{},"kalp-sniffurl-cta":{title:"Ready to get started?"},"kalp-rapydlaunch-hero":{badge:"Powered by Rapydlaunch",title:"Your Full-Service Digital Partner",subtitle:"Video, design, development, marketing, AI, social media, influencer management, and everything in between - one team, one goal.",description:"Launch Anything in 45 Days",ratingText:"4.9/5 ⢠20+ reviews",trustedText:"Trusted by 50+ founders & businesses worldwide",deliveredText:"100+ projects delivered",ctaLabel:"Get Started",secondaryCtaLabel:"Book a Call",secondaryCtaHref:"https://cal.com/amansharma"},"kalp-rapydlaunch-process":{title:"How We Work",subtitle:"A streamlined process designed for speed, quality, and transparency."}},r=[{type:"frame",label:"Frame",description:"Container for elements",icon:"Box",category:"Layout"},{type:"section",label:"Section",description:"Full width section wrapper",icon:"LayoutTemplate",category:"Layout"},{type:"stack",label:"Stack",description:"Vertical or horizontal stack",icon:"Layers",category:"Layout"},{type:"grid",label:"Grid",description:"CSS Grid container",icon:"LayoutGrid",category:"Layout"},{type:"columns",label:"Columns",description:"2 or 3 column layout",icon:"Columns2",category:"Layout"},{type:"spacer",label:"Spacer",description:"Add vertical spacing",icon:"ArrowUpDown",category:"Layout"},{type:"divider",label:"Divider",description:"Horizontal line",icon:"Minus",category:"Layout"},{type:"text",label:"Text Block",description:"Basic text",icon:"Type",category:"Basic"},{type:"heading",label:"Heading",description:"H1-H6 element",icon:"Heading",category:"Basic"},{type:"paragraph",label:"Paragraph",description:"Paragraph element",icon:"Pilcrow",category:"Basic"},{type:"rich-text",label:"Rich Text",description:"Formatted text",icon:"AlignLeft",category:"Basic"},{type:"image",label:"Image",description:"Image element",icon:"ImageIcon",category:"Basic"},{type:"video",label:"Video",description:"Video player",icon:"Video",category:"Basic"},{type:"icon",label:"Icon",description:"SVG Icon",icon:"Star",category:"Basic"},{type:"code-block",label:"Code Block",description:"Display source code",icon:"Code",category:"Basic"},{type:"button",label:"Button",description:"Clickable button",icon:"MousePointer2",category:"Forms"},{type:"link",label:"Link",description:"Hyperlink",icon:"Link2",category:"Forms"},{type:"input",label:"Input",description:"Text input field",icon:"TextCursorInput",category:"Forms"},{type:"textarea",label:"Textarea",description:"Multiline input",icon:"FormInput",category:"Forms"},{type:"select",label:"Select",description:"Dropdown select",icon:"ListFilter",category:"Forms"},{type:"navbar",label:"Navbar",description:"Top navigation",icon:"Menu",category:"Navigation"},{type:"sidebar",label:"Sidebar",description:"Side navigation",icon:"Sidebar",category:"Navigation"},{type:"breadcrumb",label:"Breadcrumb",description:"Navigation path",icon:"MoreHorizontal",category:"Navigation"},{type:"footer",label:"Footer",description:"Page footer",icon:"PanelBottom",category:"Navigation"},{type:"card",label:"Card",description:"Basic card",icon:"SquareSquare",category:"Cards"},{type:"feature-card",label:"Feature Card",description:"Card for features",icon:"Award",category:"Cards"},{type:"pricing-card",label:"Pricing Card",description:"Card for pricing",icon:"DollarSign",category:"Cards"},{type:"testimonial",label:"Testimonial",description:"User review",icon:"MessageSquareQuote",category:"Cards"},{type:"collection-list",label:"Collection List",description:"List of CMS items",icon:"Database",category:"CMS"},{type:"repeater",label:"Repeater",description:"Repeat elements",icon:"Repeat",category:"CMS"},{type:"dynamic-text",label:"Dynamic Text",description:"CMS text field",icon:"TextSelect",category:"CMS"},{type:"dynamic-image",label:"Dynamic Image",description:"CMS image field",icon:"ImagePlus",category:"CMS"},{type:"blogs",label:"Blogs",description:"List of blog posts",icon:"BookOpen",category:"CMS"},{type:"team-card",label:"Team",description:"Team members grid",
1icon:"Users",category:"CMS"},{type:"gallery",label:"Gallery",description:"Image gallery",icon:"Images",category:"Media"},{type:"carousel",label:"Carousel",description:"Image slider",icon:"GalleryHorizontal",category:"Media"},{type:"masonry-grid",label:"Masonry",description:"Masonry layout",icon:"LayoutDashboard",category:"Media"},{type:"modal",label:"Modal",description:"Popup modal",icon:"AppWindow",category:"Interactive"},{type:"tooltip",label:"Tooltip",description:"Hover info",icon:"MessageCircle",category:"Interactive"},{type:"tabs",label:"Tabs",description:"Tabbed content",icon:"FolderDown",category:"Interactive"},{type:"accordion",label:"Accordion",description:"Collapsible panels",icon:"ListCollapse",category:"Interactive"},{type:"scroll-animation",label:"Scroll Anim",description:"Animate on scroll",icon:"Mouse",category:"Animation"},{type:"hover-animation",label:"Hover Anim",description:"Animate on hover",icon:"Pointer",category:"Animation"},{type:"hero",label:"Hero",description:"Large headline section",icon:"Sparkles",category:"Marketing"},{type:"cta",label:"Call to Action",description:"Conversion banner",icon:"MousePointerClick",category:"Marketing"},{type:"newsletter",label:"Newsletter",description:"Email signup",icon:"Mail",category:"Marketing"},{type:"pricing-table",label:"Pricing Table",description:"Compare plans",icon:"Table",category:"Marketing"},{type:"faq",label:"FAQ List",description:"Q&A list",icon:"MessageCircleQuestion",category:"Marketing"},{type:"kalp-hero",label:"Kalp Hero",description:"Homepage hero with typing animation",icon:"Zap",category:"Kalp"},{type:"kalp-products",label:"Kalp Products",description:"Gram & SniffUrl product cards",icon:"Package",category:"Kalp"},{type:"kalp-services",label:"Kalp Services",description:"Rapydlaunch service section",icon:"Rocket",category:"Kalp"},{type:"kalp-testimonials",label:"Kalp Testimonials",description:"Scrolling testimonials marquee",icon:"MessageSquare",category:"Kalp"},{type:"kalp-faq",label:"Kalp FAQ",description:"Animated FAQ accordion",icon:"HelpCircle",category:"Kalp"},{type:"kalp-about",label:"Kalp About",description:"Team & mission section",icon:"Users",category:"Kalp"},{type:"kalp-founders",label:"Kalp Founders",description:"Left content, right team profiles",icon:"Users",category:"Kalp"},{type:"kalp-gram",label:"Kalp Gram",description:"Full hyperlocal delivery product page",icon:"ShoppingBag",category:"Kalp"},{type:"kalp-sniffurl",label:"Kalp SniffUrl",description:"Full URL shortener and tracker product page",icon:"Link2",category:"Kalp"},{type:"kalp-rapydlaunch",label:"Kalp RapydLaunch",description:"Full digital agency service page",icon:"Rocket",category:"Kalp"}];var o=a(57378),c=a(59e3);let d=["Layout","Basic","Forms","Navigation","Cards","CMS","Media","Interactive","Animation","Marketing","Kalp"];function u(e){let{onAdd:t}=e;return(0,l.jsxs)("aside",{className:"w-64 shrink-0 bg-white border-r border-zinc-150 h-full flex flex-col overflow-y-auto",children:[(0,l.jsxs)("div",{className:"p-4 border-b border-zinc-100",children:[(0,l.jsx)("h2",{className:"text-xs font-bold uppercase tracking-widest text-zinc-400",children:"Sections"}),(0,l.jsx)("p",{className:"text-[11px] text-zinc-400 mt-0.5",children:"Click to add to canvas"})]}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto p-3 space-y-5",children:d.map(e=>{let a=r.filter(t=>t.category===e);return a.length?(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-widest text-zinc-400 px-1 mb-2",children:e}),(0,l.jsx)("div",{className:"space-y-1",children:a.map(e=>(0,l.jsx)(x,{meta:e,onAdd:t},e.type))})]},e):null})})]})}function x(e){let{meta:t,onAdd:a}=e,s=o[t.icon]||c.A;return(0,l.jsxs)("button",{onClick:()=>a(t.type),className:"w-full flex items-center gap-3 p-3 rounded-xl text-left hover:bg-zinc-50 active:bg-zinc-100 transition-colors group",children:[(0,l.jsx)("div",{className:"w-8 h-8 rounded-lg bg-zinc-100 group-hover:bg-zinc-200 flex items-center justify-center shrink-0 transition-colors",children:(0,l.jsx)(s,{className:"w-4 h-4 text-zinc-700"})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm font-semibold text-zinc-900 leading-none",children:t.label}),(0,l.jsx)("p",{className:"text-[11px] text-zinc-500 mt-0.5 leading-snug truncate",children:t.description})]})]})}
1var p=a(17787),m=a(49027),h=a(49968),g=a(64459),b=a(6191),v=a(49476),f=a(75426),j=a(71360);function y(e){let{sections:t,selectedId:a,onSelect:s,onReorder:i,onDelete:n,onDuplicate:r,onAddAfter:o,onAddChild:c}=e,d=(0,p.FR)((0,p.MS)(p.AN,{activationConstraint:{distance:6}}),(0,p.MS)(p.uN,{coordinateGetter:m.JR}));return 0===t.length?(0,l.jsx)("div",{className:"flex-1 flex items-center justify-center text-center p-12",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-zinc-100 flex items-center justify-center mx-auto mb-4",children:(0,l.jsx)(b.A,{className:"w-7 h-7 text-zinc-400"})}),(0,l.jsx)("p",{className:"text-sm font-semibold text-zinc-600",children:"Canvas is empty"}),(0,l.jsx)("p",{className:"text-xs text-zinc-400 mt-1",children:"Add sections from the left panel to get started"})]})}):(0,l.jsx)(p.Mp,{sensors:d,collisionDetection:p.fp,onDragEnd:function(e){let{active:a,over:l}=e;if(!l||a.id===l.id)return;let s=t.findIndex(e=>e.id===a.id),n=t.findIndex(e=>e.id===l.id);i((0,m.be)(t,s,n))},children:(0,l.jsx)(m.gB,{items:t.map(e=>e.id),strategy:m._G,children:(0,l.jsx)("div",{className:"flex-1 overflow-y-auto bg-zinc-50 p-6",children:(0,l.jsx)("div",{className:"max-w-4xl mx-auto space-y-3",children:t.map(e=>(0,l.jsx)(N,{section:e,isSelected:a===e.id,onSelect:s,onDelete:n,onDuplicate:r,onAddAfter:o,onAddChild:c},e.id))})})})})}function N(e){var t;let{section:a,isSelected:s,onSelect:i,onDelete:n,onDuplicate:r,onAddAfter:o,onAddChild:c}=e,{attributes:d,listeners:u,setNodeRef:x,transform:p,transition:y,isDragging:N}=(0,m.gl)({id:a.id}),w={transform:h.Ks.Transform.toString(p),transition:y,opacity:N?.4:1,zIndex:N?50:"auto"};return(0,l.jsx)("div",{ref:x,style:w,className:"group relative",children:(0,l.jsxs)("div",{onClick:()=>i(a.id),className:"relative rounded-xl overflow-hidden border-2 cursor-pointer transition-all duration-150 ".concat(s?"border-blue-500 shadow-[0_0_0_3px_rgba(59,130,246,0.15)]":"border-transparent hover:border-zinc-300"),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-3 py-1.5 ".concat(s?"bg-blue-50":"bg-zinc-100"," border-b border-zinc-150"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{...d,...u,className:"touch-none cursor-grab active:cursor-grabbing text-zinc-400 hover:text-zinc-600",children:(0,l.jsx)(v.A,{className:"w-3.5 h-3.5"})}),(0,l.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-500 select-none",children:a.type})]}),(0,l.jsxs)("div",{className:"flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[("grid"===a.type||"columns"===a.type)&&(0,l.jsx)(C,{title:"Add section inside",onClick:()=>c(a.id,"text"),children:(0,l.jsx)(b.A,{className:"w-3 h-3"})}),(0,l.jsx)(C,{title:"Duplicate",onClick:()=>r(a.id),children:(0,l.jsx)(f.A,{className:"w-3 h-3"})}),(0,l.jsx)(C,{title:"Add section below",onClick:()=>o(a.id),children:(0,l.jsx)(b.A,{className:"w-3 h-3"})}),(0,l.jsx)(C,{title:"Delete",onClick:()=>n(a.id),destructive:!0,children:(0,l.jsx)(j.A,{className:"w-3 h-3"})})]})]}),(0,l.jsx)("div",{className:"bg-white pointer-events-none select-none overflow-hidden rounded-b-xl border-t border-zinc-100",children:(0,l.jsx)(g.SectionRenderer,{section:a})}),("grid"===a.type||"columns"===a.type)&&(0,l.jsxs)("div",{className:"bg-zinc-50 border-t border-zinc-200 p-3 flex flex-col gap-2 rounded-b-xl",children:[(0,l.jsx)("div",{className:"text-[10px] font-bold uppercase tracking-wider text-zinc-400 mb-1",children:"Nested Sections"}),null==(t=a.children)?void 0:t.map(e=>(0,l.jsxs)("div",{onClick:t=>{t.stopPropagation(),i(e.id)},className:"flex items-center justify-between p-2 rounded border bg-white cursor-pointer transition-colors ".concat(s?"border-blue-300":"border-zinc-200 hover:border-zinc-300"),children:[(0,l.jsx)("div",{className:"flex items-center gap-2",children:(0,l.jsx)("span",{className:"text-xs font-semibold text-zinc-700",children:e.type})}),(0,l.jsx)("div",{className:"flex gap-1",children:(0,l.jsx)(C,{title:"Delete",onClick:()=>n(e.id),destructive:!0,children:(0,l.jsx)(j.A,{className:"w-3 h-3"})})})]},e.id)),(0,l.jsxs)("button",{onClick:e=>{e.stopPropagation(),c(a.id,"text")},className:"flex items-center justify-center gap-1.5 p-2 rounded border border-dashed border-zinc-300 text-xs text-zinc-500 hover:text-zinc-700 hover:bg-zinc-100 transition-colors mt-1",children:[(0,l.jsx)(b.A,{className:"w-3 h-3"}),"Add Child Section"]})]})]})})}function C(e){let{children:t,title:a,onClick:s,destructive:i}=e;return(0,l.jsx)("button",{title:a,onClick:e=>{e.stopPropagation(),s()},className:"p-1.5 rounded-md transition-colors ".concat(i?"hover:bg-red-50 hover:text-red-600 text-zinc-400":"hover:bg-zinc-200 text-zinc-500 hover:text-zinc-800"),children:t})}var w=a(33789),k=a(84916),S=a(67001),z=a(90235),A=a(47507),T=a(97003),L=a(23327),M=a(32170),F=a(90923),R=a(52793);let P="__none__";function I(e){let{type:t,props:a,update:s}=e,i=n[t]||{},r=Object.keys(i);return 0===r.length?(0,l.jsx)(Y,{name:t,description:"This section has no editable properties."}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{name:t,description:"Edit the properties below to customize this section."}),r.map(e=>{var t;let n=null!=(t=a[e])?t:i[e],r=Array.isArray(n),o="boolean"==typeof n;return r?(0,l.jsx)(B,{label:e,children:(0,l.jsx)(S.T,{className:"text-xs min-h-[60
1px]",value:JSON.stringify(n,null,2),onChange:t=>{try{s({[e]:JSON.parse(t.target.value)})}catch(e){}},placeholder:"Must be valid JSON array"})},e):o?(0,l.jsxs)("div",{className:"flex items-center space-x-2 py-2",children:[(0,l.jsx)(k.S,{id:e,checked:n,onCheckedChange:t=>s({[e]:!!t})}),(0,l.jsx)("label",{htmlFor:e,className:"text-xs font-medium leading-none cursor-pointer",children:e})]},e):(0,l.jsx)(B,{label:e,children:(0,l.jsx)(S.T,{className:"text-xs min-h-[40px]",value:n||"",onChange:t=>s({[e]:t.target.value})})},e)})]})}function D(e){let{section:t,onChange:a}=e,s=e=>a(t.id,e);return(0,l.jsxs)("aside",{className:"w-80 shrink-0 bg-white border-l border-zinc-150 flex flex-col overflow-y-auto",children:[(0,l.jsxs)("div",{className:"p-4 border-b border-zinc-100",children:[(0,l.jsx)("h2",{className:"text-xs font-bold uppercase tracking-widest text-zinc-400",children:"Properties"}),(0,l.jsxs)("p",{className:"text-sm font-semibold text-zinc-900 mt-0.5 capitalize",children:[t.type.replace("-"," ")," Section"]})]}),(0,l.jsxs)(F.tU,{defaultValue:"props",className:"flex-1 flex flex-col min-h-0",children:[(0,l.jsx)("div",{className:"px-4 pt-2",children:(0,l.jsxs)(F.j7,{className:"grid w-full grid-cols-2",children:[(0,l.jsx)(F.Xi,{value:"props",className:"text-xs",children:"Props"}),(0,l.jsx)(F.Xi,{value:"styles",className:"text-xs",children:"Styles"})]})}),(0,l.jsxs)("div",{className:"flex-1 overflow-y-auto p-4",children:[(0,l.jsx)(F.av,{value:"props",className:"space-y-5 m-0",children:"hero"===t.type?(0,l.jsx)(q,{props:t.props,update:s}):"text"===t.type?(0,l.jsx)(J,{props:t.props,update:s}):"image"===t.type?(0,l.jsx)(E,{props:t.props,update:s}):"cta"===t.type?(0,l.jsx)(G,{props:t.props,update:s}):"features"===t.type?(0,l.jsx)(W,{props:t.props,update:s}):"faq"===t.type?(0,l.jsx)(K,{props:t.props,update:s}):"spacer"===t.type?(0,l.jsx)(_,{props:t.props,update:s}):"columns"===t.type?(0,l.jsx)(Q,{props:t.props,update:s}):"blogs"===t.type?(0,l.jsx)(V,{props:t.props,update:s}):"team-card"===t.type?(0,l.jsx)($,{props:t.props,update:s}):"kalp-hero"===t.type?(0,l.jsx)(X,{props:t.props,update:s}):"kalp-products"===t.type?(0,l.jsx)(Z,{props:t.props,update:s}):"kalp-faq"===t.type?(0,l.jsx)(ee,{props:t.props,update:s}):"kalp-about"===t.type?(0,l.jsx)(et,{props:t.props,update:s}):(t.type.startsWith("kalp-"),(0,l.jsx)(I,{type:t.type,props:t.props,update:s}))}),(0,l.jsx)(F.av,{value:"styles",className:"m-0",children:(0,l.jsx)(U,{styles:t.styles,update:s})})]})]})]})}function B(e){let{label:t,children:a}=e;return(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400",children:t}),a]})}function H(e){let{label:t,value:a,onChange:s}=e;return(0,l.jsx)(B,{label:t,children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{type:"color",value:a||"#ffffff",onChange:e=>s(e.target.value),className:"w-8 h-8 rounded-md border border-zinc-200 cursor-pointer p-0.5"}),(0,l.jsx)(w.p,{value:a||"",onChange:e=>s(e.target.value),placeholder:"#ffffff",className:"flex-1 text-xs h-8"})]})})}function O(e){let{label:t,value:a,options:s,onChange:i}=e,n=s.map(e=>({...e,value:""===e.value?P:e.value}));return(0,l.jsx)(B,{label:t,children:(0,l.jsxs)(A.l6,{value:a||P,onValueChange:e=>i(e===P?"":e),children:[(0,l.jsx)(A.bq,{className:"h-8 text-xs",children:(0,l.jsx)(A.yv,{placeholder:"Default"})}),(0,l.jsx)(A.gC,{children:n.map(e=>(0,l.jsx)(A.eb,{value:e.value,className:"text-xs",children:e.label},e.value))})]})})}function U(e){let{styles:t,update:a}=e,s=t||{},i=(e,t)=>{a({styles:{...s,[e]:t}})};return(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)(B,{label:"Width",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:s.width||"",onChange:e=>i("width",e.target.value),placeholder:"e.g. 100%, 500px"})}),(0,l.jsx)(B,{label:"Height",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:s.height||"",onChange:e=>i("height",e.target.value),placeholder:"e.g. auto, 100vh"})}),(0,l.jsx)(B,{label:"Padding",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:s.padding||"",onChange:e=>i("padding",e.target.value),placeholder:"e.g. 1rem 2rem"})}),(0,l.jsx)(B,{label:"Margin",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:s.margin||"",onChange:e=>i("margin",e.target.value),placeholder:"e.g. 0 auto"})}),(0,l.jsx)(O,{label:"Display",value:s.display||"",options:[{value:"",label:"Default"},{value:"block",label:"Block"},{value:"flex",label:"Flex"},{value:"grid",label:"Grid"},{value:"none",label:"None"}],onChange:e=>i("display",e)}),"flex"===s.display&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O,{label:"Flex Direction",value:s.flexDirection||"",options:[{value:"",label:"Default"},{value:"row",label:"Row"},{value:"column",label:"Column"}],onChange:e=>i("flexDirection",e)}),(0,l.jsx)(B,{label:"Gap",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:s.gap||"",onChange:e=>i("gap",e.target.value),placeholder:"e.g. 1rem"})})]}),(0,l.jsx)(B,{label:"Border Radius",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:s.borderRadius||"",onChange:e=>i("borderRadius",e.target.value),placeholder:"e.g. 8px"})}
1),(0,l.jsx)(H,{label:"Background Color",value:s.backgroundColor||"",onChange:e=>i("backgroundColor",e)}),(0,l.jsx)(O,{label:"Background Gradient",value:s.backgroundImage||"",options:[{value:"",label:"None"},{value:"linear-gradient(to right, #ff7e5f, #feb47b)",label:"Sunset"},{value:"linear-gradient(to right, #00c6ff, #0072ff)",label:"Ocean"},{value:"linear-gradient(to right, #8e2de2, #4a00e0)",label:"Purple Dream"},{value:"linear-gradient(135deg, #f6d365 0%, #fda085 100%)",label:"Warm Flame"},{value:"linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%)",label:"Fresh Grass"},{value:"radial-gradient(circle, #ff9a9e 0%, #fecfef 99%, #fecfef 100%)",label:"Pink Glow (Radial)"},{value:"conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #a853ba 180deg, #e92a67 360deg)",label:"Aurora (Conic)"}],onChange:e=>i("backgroundImage",e)}),(0,l.jsx)(H,{label:"Text Color",value:s.color||"",onChange:e=>i("color",e)}),(0,l.jsx)(B,{label:"Font Size",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:s.fontSize||"",onChange:e=>i("fontSize",e.target.value),placeholder:"e.g. 1.25rem"})}),(0,l.jsx)(O,{label:"Text Align",value:s.textAlign||"",options:[{value:"",label:"Default"},{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],onChange:e=>i("textAlign",e)})]})}function q(e){let{props:t,update:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Badge text",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.badge||"",onChange:e=>a({badge:e.target.value}),placeholder:"Optional badge..."})}),(0,l.jsx)(B,{label:"Title",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[60px]",value:t.title,onChange:e=>a({title:e.target.value})})}),(0,l.jsx)(B,{label:"Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[60px]",value:t.subtitle,onChange:e=>a({subtitle:e.target.value})})}),(0,l.jsx)(B,{label:"Primary CTA Label",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.ctaLabel,onChange:e=>a({ctaLabel:e.target.value})})}),(0,l.jsx)(B,{label:"Primary CTA URL",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.ctaHref,onChange:e=>a({ctaHref:e.target.value})})}),(0,l.jsx)(B,{label:"Secondary CTA Label",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.secondaryCtaLabel,onChange:e=>a({secondaryCtaLabel:e.target.value})})}),(0,l.jsx)(B,{label:"Secondary CTA URL",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.secondaryCtaHref,onChange:e=>a({secondaryCtaHref:e.target.value})})}),(0,l.jsx)(O,{label:"Alignment",value:t.align,options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],onChange:e=>a({align:e})}),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})}),(0,l.jsx)(H,{label:"Text Color",value:t.textColor,onChange:e=>a({textColor:e})}),(0,l.jsx)(B,{label:"Background Image",children:(0,l.jsx)(R.e,{label:"",value:t.bgImage||"",onChange:e=>a({bgImage:e})})})]})}function J(e){let{props:t,update:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Content",children:(0,l.jsx)(M.RichTextEditor,{value:t.content||"",onChange:e=>a({content:e})})}),(0,l.jsx)(O,{label:"Alignment",value:t.align,options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],onChange:e=>a({align:e})}),(0,l.jsx)(O,{label:"Max Width",value:t.maxWidth,options:[{value:"sm",label:"Small (480px)"},{value:"md",label:"Medium (672px)"},{value:"lg",label:"Large (896px)"},{value:"full",label:"Full Width"}],onChange:e=>a({maxWidth:e})}),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})}),(0,l.jsx)(H,{label:"Text Color",value:t.textColor,onChange:e=>a({textColor:e})})]})}function E(e){let{props:t,update:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Image",children:(0,l.jsx)(R.e,{label:"",value:t.src||"",onChange:e=>a({src:e})})}),(0,l.jsx)(B,{label:"Alt Text",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.alt||"",onChange:e=>a({alt:e.target.value})})}),(0,l.jsx)(B,{label:"Caption",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.caption||"",onChange:e=>a({caption:e.target.value})})}),(0,l.jsx)(O,{label:"Layout",value:t.layout,options:[{value:"contained",label:"Contained"},{value:"full",label:"Full Width"},{value:"split-left",label:"Split ~ Image Left"},{value:"split-right",label:"Split ~ Image Right"}],onChange:e=>a({layout:e})}),("split-left"===t.layout||"split-right"===t.layout)&&(0,l.jsx)(B,{label:"Split Text",children:(0,l.jsx)(S.T,{className:"text-xs",value:t.splitText||"",onChange:e=>a({splitText:e.target.value})})})]})}function G(e){let{props:t,update:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Headline",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.headline,onChange:e=>a({headline:e.target.value})})}),(0,l.jsx)(B,{label:"Subtext",children:(0,l.jsx)(S.T,{className:"text-xs",value:t.subtext,onChange:e=>a({subtext:e.target.value})})}),(0,l.jsx)(B,{label:"Button Label",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.buttonLabel,onChange:e=>a({buttonLabel:e.target.value})})}),(0,l.jsx)(B,{label:"Button URL",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.buttonHref,onCh
1ange:e=>a({buttonHref:e.target.value})})}),(0,l.jsx)(O,{label:"Button Style",value:t.buttonStyle,options:[{value:"filled",label:"Filled"},{value:"outline",label:"Outline"},{value:"ghost",label:"Ghost / Link"}],onChange:e=>a({buttonStyle:e})}),(0,l.jsx)(O,{label:"Alignment",value:t.align,options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],onChange:e=>a({align:e})}),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})}),(0,l.jsx)(H,{label:"Text Color",value:t.textColor,onChange:e=>a({textColor:e})}),(0,l.jsx)(B,{label:"Background Image",children:(0,l.jsx)(R.e,{label:"",value:t.bgImage||"",onChange:e=>a({bgImage:e})})})]})}function W(e){let{props:t,update:a}=e,s=(e,l,s)=>{let i=[...t.items];i[e]={...i[e],[l]:s},a({items:i})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.title,onChange:e=>a({title:e.target.value})})}),(0,l.jsx)(B,{label:"Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs",value:t.subtitle,onChange:e=>a({subtitle:e.target.value})})}),(0,l.jsx)(O,{label:"Columns",value:String(t.columns),options:[{value:"2",label:"2 Columns"},{value:"3",label:"3 Columns"},{value:"4",label:"4 Columns"}],onChange:e=>a({columns:Number(e)})}),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400",children:"Feature Items"}),t.items.map((e,i)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-3 space-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-xs font-semibold text-zinc-600",children:["Item ",i+1]}),(0,l.jsx)("button",{onClick:()=>a({items:t.items.filter((e,t)=>t!==i)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(w.p,{className:"text-xs h-7",placeholder:"Icon name (e.g. Zap)",value:e.icon,onChange:e=>s(i,"icon",e.target.value)}),(0,l.jsx)(w.p,{className:"text-xs h-7",placeholder:"Title",value:e.title,onChange:e=>s(i,"title",e.target.value)}),(0,l.jsx)(S.T,{className:"text-xs min-h-[50px]",placeholder:"Description",value:e.description,onChange:e=>s(i,"description",e.target.value)})]},i)),(0,l.jsxs)(T.$,{variant:"outline",size:"sm",onClick:()=>a({items:[...t.items,{icon:"Star",title:"New feature",description:"Description here."}]}),className:"w-full text-xs",children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1.5"}),"Add Item"]})]})]})}function K(e){let{props:t,update:a}=e,s=(e,l,s)=>{let i=[...t.items];i[e]={...i[e],[l]:s},a({items:i})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.title,onChange:e=>a({title:e.target.value})})}),(0,l.jsx)(B,{label:"Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs",value:t.subtitle,onChange:e=>a({subtitle:e.target.value})})}),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400",children:"Questions"}),t.items.map((e,i)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-3 space-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-xs font-semibold text-zinc-600",children:["Q",i+1]}),(0,l.jsx)("button",{onClick:()=>a({items:t.items.filter((e,t)=>t!==i)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(w.p,{className:"text-xs h-7",placeholder:"Question",value:e.question,onChange:e=>s(i,"question",e.target.value)}),(0,l.jsx)(S.T,{className:"text-xs min-h-[60px]",placeholder:"Answer",value:e.answer,onChange:e=>s(i,"answer",e.target.value)})]},i)),(0,l.jsxs)(T.$,{variant:"outline",size:"sm",onClick:()=>a({items:[...t.items,{question:"New question?",answer:"Answer here."}]}),className:"w-full text-xs",children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1.5"}),"Add Question"]})]})]})}function _(e){let{props:t,update:a}=e;return(0,l.jsx)(O,{label:"Spacer Height",value:t.size,options:[{value:"xs",label:"Extra Small (32px)"},{value:"sm",label:"Small (64px)"},{value:"md",label:"Medium (96px)"},{value:"lg",label:"Large (128px)"},{value:"xl",label:"Extra Large (192px)"}],onChange:e=>a({size:e})})}function Q(e){let{props:t,update:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O,{label:"Columns",value:String(t.count),options:[{value:"2",label:"2 Columns"},{value:"3",label:"3 Columns"}],onChange:e=>a({count:Number(e)})}),(0,l.jsx)(O,{label:"Gap",value:t.gap,options:[{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"}],onChange:e=>a({gap:e})}
1),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})}),t.columns.map((e,s)=>(0,l.jsx)(B,{label:"Column ".concat(s+1),children:(0,l.jsx)(M.RichTextEditor,{value:e.content||"",onChange:e=>((e,l)=>{let s=[...t.columns];s[e]={...s[e],content:l},a({columns:s})})(s,e)})},s))]})}function V(e){let{props:t,update:a}=e,[i,n]=(0,s.useState)([]);return(0,s.useEffect)(()=>{fetch("/api/cms/categories").then(e=>e.json()).then(e=>n(e.categories||[])).catch(console.error)},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.title||"",onChange:e=>a({title:e.target.value})})}),(0,l.jsx)(B,{label:"Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs",value:t.subtitle||"",onChange:e=>a({subtitle:e.target.value})})}),(0,l.jsx)(B,{label:"Limit (Number of posts)",children:(0,l.jsx)(w.p,{type:"number",className:"text-xs h-8",value:t.limit||3,onChange:e=>a({limit:parseInt(e.target.value)||3})})}),(0,l.jsx)(B,{label:"Filter by Categories",children:(0,l.jsxs)("div",{className:"space-y-2 mt-2 max-h-40 overflow-y-auto border border-zinc-200 rounded-md p-2",children:[i.map(e=>(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(k.S,{id:"cat-".concat(e._id||e.id),checked:(t.categories||[]).includes(e._id||e.id),onCheckedChange:()=>(e=>{let l=t.categories||[];l.includes(e)?a({categories:l.filter(t=>t!==e)}):a({categories:[...l,e]})})(e._id||e.id)}),(0,l.jsx)("label",{htmlFor:"cat-".concat(e._id||e.id),className:"text-xs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:e.name})]},e._id||e.id)),0===i.length&&(0,l.jsx)("p",{className:"text-xs text-zinc-500",children:"No categories found."})]})}),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})})]})}function $(e){let{props:t,update:a}=e,[i,n]=(0,s.useState)([]);return(0,s.useEffect)(()=>{fetch("/api/employees").then(e=>e.json()).then(e=>n(e.employees||e||[])).catch(console.error)},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(B,{label:"Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.title||"",onChange:e=>a({title:e.target.value})})}),(0,l.jsx)(B,{label:"Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs",value:t.subtitle||"",onChange:e=>a({subtitle:e.target.value})})}),(0,l.jsx)(B,{label:"Select Team Members",children:(0,l.jsxs)("div",{className:"space-y-2 mt-2 max-h-60 overflow-y-auto border border-zinc-200 rounded-md p-2",children:[Array.isArray(i)&&i.map(e=>(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(k.S,{id:"member-".concat(e.id||e._id),checked:(t.members||[]).includes(e.id||e._id),onCheckedChange:()=>(e=>{let l=t.members||[];l.includes(e)?a({members:l.filter(t=>t!==e)}):a({members:[...l,e]})})(e.id||e._id)}),(0,l.jsxs)("label",{htmlFor:"member-".concat(e.id||e._id),className:"text-xs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:[e.name," ",e.lastName?e.lastName:""]})]},e.id||e._id)),(!Array.isArray(i)||0===i.length)&&(0,l.jsx)("p",{className:"text-xs text-zinc-500",children:"No members found."})]})}),(0,l.jsx)(H,{label:"Background Color",value:t.bgColor,onChange:e=>a({bgColor:e})})]})}function Y(e){let{name:t,description:a}=e;return(0,l.jsxs)("div",{className:"rounded-lg border border-violet-100 bg-violet-50 p-3 flex gap-2",children:[(0,l.jsx)(L.A,{className:"w-4 h-4 text-violet-500 shrink-0 mt-0.5"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-xs font-bold text-violet-700",children:t}),(0,l.jsx)("p",{className:"text-[11px] text-violet-600 mt-0.5 leading-snug",children:a})]})]})}function X(e){let{props:t,update:a}=e,s=t.clientLogos||[];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{name:"Kalp Hero",description:"Uses the homepage hero with typing animation. Heading, paragraph, button text, and logos are fully editable."}),(0,l.jsx)(B,{label:"Static Heading (Title Static)",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.titleStatic||"",onChange:e=>a({titleStatic:e.target.value}),placeholder:"e.g. Built in India."})}),(0,l.jsx)(B,{label:"Typing Heading (Title Typing)",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.titleTyping||"",onChange:e=>a({titleTyping:e.target.value}),placeholder:"e.g. Designed for the Future."})}),(0,l.jsx)(B,{label:"Paragraph (Description)",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[60
1px]",value:t.description||"",onChange:e=>a({description:e.target.value}),placeholder:"Main description paragraph text..."})}),(0,l.jsx)(B,{label:"Button Text (Primary CTA Label)",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.primaryCtaLabel||"",onChange:e=>a({primaryCtaLabel:e.target.value}),placeholder:"e.g. Explore Products"})}),(0,l.jsx)(B,{label:"Button Target Anchor ID",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.primaryCtaTargetId||"",onChange:e=>a({primaryCtaTargetId:e.target.value}),placeholder:"e.g. product (scroll target)"})}),(0,l.jsx)(B,{label:"Secondary Button Text",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.secondaryCtaLabel||"",onChange:e=>a({secondaryCtaLabel:e.target.value}),placeholder:"e.g. Book a Call"})}),(0,l.jsx)(B,{label:"Secondary Button Link",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.secondaryCtaHref||"",onChange:e=>a({secondaryCtaHref:e.target.value}),placeholder:"e.g. https://cal.com/..."})}),(0,l.jsx)(B,{label:"Logos Heading (Trusted Text)",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.trustedText||"",onChange:e=>a({trustedText:e.target.value}),placeholder:"e.g. Trusted by 100+ clients"})}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Client Logos"}),(0,l.jsx)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>a({clientLogos:[...s,""]}),children:"Add Logo"})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[s.map((e,t)=>(0,l.jsxs)("div",{className:"flex gap-2 items-center bg-zinc-50 border p-2 rounded-lg",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(R.e,{label:"",value:e,onChange:e=>((e,t)=>{let l=[...s];l[e]=t,a({clientLogos:l})})(t,e)})}),(0,l.jsx)(T.$,{size:"icon",variant:"ghost",className:"h-8 w-8 text-red-500 hover:text-red-600 shrink-0",onClick:()=>a({clientLogos:s.filter((e,a)=>a!==t)}),children:(0,l.jsx)(j.A,{className:"h-4 w-4"})})]},t)),0===s.length&&(0,l.jsx)("p",{className:"text-xs text-muted-foreground text-center py-2 bg-muted/20 rounded-md border border-dashed",children:"No custom logos. Defaults will show."})]})]}),(0,l.jsx)(B,{label:"Announcement Badge Text",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.announcementText||"",onChange:e=>a({announcementText:e.target.value}),placeholder:"e.g. Gram App is Live"})}),(0,l.jsx)(B,{label:"Announcement Badge URL",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.announcementHref||"",onChange:e=>a({announcementHref:e.target.value}),placeholder:"e.g. /gram"})})]})}function Z(e){var t,a;let{props:s,update:i}=e,n=s.items||[],r=(e,t,a)=>{let l=[...n];l[e]={...l[e],[t]:a},i({items:l})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{name:"Kalp Products",description:"Renders the custom product showcase cards. You can edit each product's details below."}),(0,l.jsx)(B,{label:"Section Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:null!=(t=s.title)?t:"",onChange:e=>i({title:e.target.value}),placeholder:"e.g. Our Products"})}),(0,l.jsx)(B,{label:"Section Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[50px]",value:null!=(a=s.subtitle)?a:"",onChange:e=>i({subtitle:e.target.value}),placeholder:"e.g. Tools that help teams move faster."})}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Product Items"}),n.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-3 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-xs font-semibold text-zinc-600",children:["Product ",t+1]}),(0,l.jsx)("button",{onClick:()=>i({items:n.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(B,{label:"Product Name",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.name||"",onChange:e=>r(t,"name",e.target.value)})}),(0,l.jsx)(B,{label:"Description",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[50px]",value:e.description||"",onChange:e=>
1r(t,"description",e.target.value)})}),(0,l.jsx)(B,{label:"Image Path",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.image||"",onChange:e=>r(t,"image",e.target.value)})}),(0,l.jsx)(B,{label:"Learn More Link",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.learnMore||"",onChange:e=>r(t,"learnMore",e.target.value)})}),(0,l.jsx)(B,{label:"Learn More Label",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.learnMoreText||"",onChange:e=>r(t,"learnMoreText",e.target.value),placeholder:"e.g. Learn more"})}),(0,l.jsx)(B,{label:"Product Subtext/Label",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.category||"",onChange:e=>r(t,"category",e.target.value),placeholder:"e.g. Product"})}),(0,l.jsxs)("div",{className:"flex items-center space-x-2 pt-1",children:[(0,l.jsx)(k.S,{id:"beta-".concat(t),checked:!!e.beta,onCheckedChange:e=>r(t,"beta",!!e)}),(0,l.jsx)("label",{htmlFor:"beta-".concat(t),className:"text-xs font-medium leading-none cursor-pointer",children:"Beta Testing Mode"})]})]},t)),(0,l.jsxs)(T.$,{variant:"outline",size:"sm",onClick:()=>i({items:[...n,{name:"New Product",description:"Product description...",image:"/gram_logo.svg",learnMore:"#",beta:!1,learnMoreText:"Learn more",category:"Product"}]}),className:"w-full text-xs",children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1.5"}),"Add Product"]})]})]})}function ee(e){let{props:t,update:a}=e,s=t.items||[],i=(e,t,l)=>{let i=[...s];i[e]={...i[e],[t]:l},a({items:i})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{name:"Kalp FAQ",description:"Animated FAQ accordion. Add/remove custom Q&A items or leave empty to use the homepage defaults."}),(0,l.jsx)(B,{label:"Override Section Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.title||"",onChange:e=>a({title:e.target.value}),placeholder:"Leave blank to use default"})}),(0,l.jsx)(B,{label:"Override Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[50px]",value:t.subtitle||"",onChange:e=>a({subtitle:e.target.value}),placeholder:"Leave blank to use default"})}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400",children:"Custom FAQ Items"}),s.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-3 space-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-xs font-semibold text-zinc-600",children:["Q",t+1]}),(0,l.jsx)("button",{onClick:()=>a({items:s.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(w.p,{className:"text-xs h-7",placeholder:"Question",value:e.question,onChange:e=>i(t,"question",e.target.value)}),(0,l.jsx)(S.T,{className:"text-xs min-h-[60px]",placeholder:"Answer",value:e.answer,onChange:e=>i(t,"answer",e.target.value)})]},t)),(0,l.jsxs)(T.$,{variant:"outline",size:"sm",onClick:()=>a({items:[...s,{question:"New question?",answer:"Answer here."}]}),className:"w-full text-xs",children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1.5"}),"Add Question"]})]})]})}function et(e){let{props:t,update:a}=e,[i,n]=(0,s.useState)("hero"),r=void 0!==t.title?t.title:"",o=void 0!==t.subtitle?t.subtitle:"",c=void 0!==t.ratingText?t.ratingText:"",d=t.mission||{title:"",description:""},u=t.stats||[],x=t.founders||[],p=t.teamMembers||[],m=t.timeline||[],h=t.culture||{title:"",subtitle:"",cards:[]},g=h.cards||[],v=t.hiring||[],f=t.clientLogos||[],y=(e,t)=>{a({mission:{...d,[e]:t}})},N=(e,t,l)=>{let s=[...u];s[e]={...s[e],[t]:l},a({stats:s})},C=(e,t,l)=>{let s=[...x];s[e]={...s[e],[t]:l},a({founders:s})},k=(e,t,l)=>{let s=[...p];s[e]={...s[e],[t]:l},a({teamMembers:s})},A=(e,t,l)=>{let s=[...m];s[e]={...s[e],[t]:l},a({timeline:s})},L=(e,t)=>{a({culture:{...h,[e]:t}})},M=(e,t,l)=>{let s=[...g];s[e]={...s[e],[t]:l},a({culture:{...h,cards:s}})},P=(e,t,l)=>{let s=[...v];s[e]={...s[e],[t]:l},a({hiring:s})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{name:"Kalp About",description:"Renders the About Us section with team, mission, and stats. You can edit each small detail below."}
1),(0,l.jsxs)(F.tU,{value:i,onValueChange:n,className:"w-full space-y-4",children:[(0,l.jsxs)(F.j7,{className:"flex flex-wrap h-auto gap-1 bg-zinc-100 p-1",children:[(0,l.jsx)(F.Xi,{value:"hero",className:"flex-auto text-[10px] py-1",children:"Hero/Mission"}),(0,l.jsx)(F.Xi,{value:"stats",className:"flex-auto text-[10px] py-1",children:"Stats/Timeline"}),(0,l.jsx)(F.Xi,{value:"team",className:"flex-auto text-[10px] py-1",children:"Team"}),(0,l.jsx)(F.Xi,{value:"culture",className:"flex-auto text-[10px] py-1",children:"Culture"}),(0,l.jsx)(F.Xi,{value:"logos",className:"flex-auto text-[10px] py-1",children:"Logos"})]}),(0,l.jsxs)(F.av,{value:"hero",className:"space-y-4 mt-2",children:[(0,l.jsx)(B,{label:"Hero Title",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[50px]",value:r,onChange:e=>a({title:e.target.value}),placeholder:"e.g. We empower startups to scale smarter"})}),(0,l.jsx)(B,{label:"Hero Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[60px]",value:o,onChange:e=>a({subtitle:e.target.value}),placeholder:"e.g. We are a team of designers..."})}),(0,l.jsx)(B,{label:"Hero Rating Text",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:c,onChange:e=>a({ratingText:e.target.value}),placeholder:"e.g. Rated 5.0 by founders"})}),(0,l.jsxs)("div",{className:"border-t pt-3 mt-3 space-y-3",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Mission Statement"}),(0,l.jsx)(B,{label:"Mission Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:d.title||"",onChange:e=>y("title",e.target.value),placeholder:"e.g. Our Mission"})}),(0,l.jsx)(B,{label:"Mission Description",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[60px]",value:d.description||"",onChange:e=>y("description",e.target.value),placeholder:"Empower teams and founders..."})})]})]}),(0,l.jsxs)(F.av,{value:"stats",className:"space-y-4 mt-2",children:[(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Stats (Value + Label)"}),(0,l.jsxs)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>a({stats:[...u,{value:"0+",label:"New Stat"}]}),children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1"})," Add"]})]}),(0,l.jsx)("div",{className:"space-y-3",children:u.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-2.5 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-[10px] font-semibold text-zinc-500",children:["Stat ",t+1]}),(0,l.jsx)("button",{onClick:()=>a({stats:u.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsx)(B,{label:"Value",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.value||"",onChange:e=>N(t,"value",e.target.value),placeholder:"e.g. 250+"})}),(0,l.jsx)(B,{label:"Label",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.label||"",onChange:e=>N(t,"label",e.target.value),placeholder:"e.g. Projects"})})]})]},t))})]}),(0,l.jsxs)("div",{className:"border-t pt-3 mt-3 space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Timeline / Our Journey"}),(0,l.jsxs)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>a({timeline:[...m,{year:"2026",title:"Milestone",description:"Milestone details..."}]}),children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1"})," Add"]})]}),(0,l.jsx)("div",{className:"space-y-3",children:m.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-2.5 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-[10px] font-semibold text-zinc-500",children:["Event ",t+1]}),(0,l.jsx)("button",{onClick:()=>a({timeline:m.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,l.jsx)("div",{className:"col-span-1",children:(0,l.jsx)(B,{label:"Year",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.year||"",onChange:e=>A(t,"year",e.target.value),placeholder:"e.g. 2026"})})}),(0,l.jsx)("div",{className:"col-span-2",children:(0,l.jsx)(B,{label:"Title",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.title||"",onChange:e=>A(t,"title",e.target.value),placeholder:"Milestone"})})})]}),(0,l.jsx)(B,{label:"Description",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[40px]",value:e.description||"",onChange:e=>A(t,"description",e.target.value),placeholder:"Details..."})})]},t))})]})]}
1),(0,l.jsxs)(F.av,{value:"team",className:"space-y-4 mt-2",children:[(0,l.jsx)(B,{label:"Team Section Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:t.teamSectionTitle||"",onChange:e=>a({teamSectionTitle:e.target.value}),placeholder:"e.g. Our Founders & Team"})}),(0,l.jsx)(B,{label:"Team Section Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[50px]",value:t.teamSectionSubtitle||"",onChange:e=>a({teamSectionSubtitle:e.target.value}),placeholder:"e.g. Our team combines deep industry knowledge..."})}),(0,l.jsxs)("div",{className:"border-t pt-3 mt-3 space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Founders"}),(0,l.jsxs)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>a({founders:[...x,{name:"New Founder",role:"Co-Founder",image:"/team/aman.png",linkedin:"",email:"",calendly:""}]}),children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1"})," Add"]})]}),(0,l.jsx)("div",{className:"space-y-3",children:x.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-2.5 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-[10px] font-semibold text-zinc-500",children:["Founder ",t+1]}),(0,l.jsx)("button",{onClick:()=>a({founders:x.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(B,{label:"Name",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.name||"",onChange:e=>C(t,"name",e.target.value)})}),(0,l.jsx)(B,{label:"Role",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.role||"",onChange:e=>C(t,"role",e.target.value)})}),(0,l.jsx)(B,{label:"Image",children:(0,l.jsx)(R.e,{label:"",value:e.image||"",onChange:e=>C(t,"image",e)})}),(0,l.jsx)(B,{label:"LinkedIn URL",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.linkedin||"",onChange:e=>C(t,"linkedin",e.target.value),placeholder:"https://linkedin.com/in/..."})}),(0,l.jsx)(B,{label:"Email",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.email||"",onChange:e=>C(t,"email",e.target.value),placeholder:"mailto:example@..."})}),(0,l.jsx)(B,{label:"Calendly Link",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.calendly||"",onChange:e=>C(t,"calendly",e.target.value),placeholder:"https://cal.com/..."})})]},t))})]}),(0,l.jsxs)("div",{className:"border-t pt-3 mt-3 space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Team Members"}),(0,l.jsxs)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>a({teamMembers:[...p,{name:"New Team Member",role:"Developer",image:"/team/honey.png",linkedin:""}]}),children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1"})," Add"]})]}),(0,l.jsx)("div",{className:"space-y-3",children:p.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-2.5 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-[10px] font-semibold text-zinc-500",children:["Member ",t+1]}),(0,l.jsx)("button",{onClick:()=>a({teamMembers:p.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(B,{label:"Name",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.name||"",onChange:e=>k(t,"name",e.target.value)})}),(0,l.jsx)(B,{label:"Role",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.role||"",onChange:e=>k(t,"role",e.target.value)})}),(0,l.jsx)(B,{label:"Image",children:(0,l.jsx)(R.e,{label:"",value:e.image||"",onChange:e=>k(t,"image",e)})}),(0,l.jsx)(B,{label:"LinkedIn URL",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.linkedin||"",onChange:e=>k(t,"linkedin",e.target.value),placeholder:"https://linkedin.com/in/..."})})]},t))})]})]}
1),(0,l.jsxs)(F.av,{value:"culture",className:"space-y-4 mt-2",children:[(0,l.jsx)(B,{label:"Culture Title",children:(0,l.jsx)(w.p,{className:"text-xs h-8",value:h.title||"",onChange:e=>L("title",e.target.value),placeholder:"Our Culture at Cycle"})}),(0,l.jsx)(B,{label:"Culture Subtitle",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[50px]",value:h.subtitle||"",onChange:e=>L("subtitle",e.target.value),placeholder:"A culture shaped by trust..."})}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Culture Cards"}),(0,l.jsxs)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>{let e=[...g,{icon:"Star",title:"New Value",description:"Description..."}];a({culture:{...h,cards:e}})},children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1"})," Add"]})]}),(0,l.jsx)("div",{className:"space-y-3",children:g.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-2.5 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-[10px] font-semibold text-zinc-500",children:["Card ",t+1]}),(0,l.jsx)("button",{onClick:()=>(e=>{let t=g.filter((t,a)=>a!==e);a({culture:{...h,cards:t}})})(t),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(O,{label:"Icon",value:e.icon||"Star",options:[{value:"ShieldCheck",label:"ShieldCheck"},{value:"TrendingUp",label:"TrendingUp"},{value:"Award",label:"Award"},{value:"Link",label:"Link"},{value:"RefreshCw",label:"RefreshCw"},{value:"Layers",label:"Layers"},{value:"Star",label:"Star"}],onChange:e=>M(t,"icon",e)}),(0,l.jsx)(B,{label:"Title",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.title||"",onChange:e=>M(t,"title",e.target.value)})}),(0,l.jsx)(B,{label:"Description",children:(0,l.jsx)(S.T,{className:"text-xs min-h-[40px]",value:e.description||"",onChange:e=>M(t,"description",e.target.value)})})]},t))})]}),(0,l.jsxs)("div",{className:"border-t pt-3 mt-3 space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Hiring Roles / Positions"}),(0,l.jsxs)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>a({hiring:[...v,{title:"Open Position",location:"Remote",type:"Full-time",link:"#"}]}),children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1"})," Add"]})]}),(0,l.jsx)("div",{className:"space-y-3",children:v.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-2.5 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-[10px] font-semibold text-zinc-500",children:["Position ",t+1]}),(0,l.jsx)("button",{onClick:()=>a({hiring:v.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(B,{label:"Job Title",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.title||"",onChange:e=>P(t,"title",e.target.value)})}),(0,l.jsx)(B,{label:"Location",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.location||"",onChange:e=>P(t,"location",e.target.value)})}),(0,l.jsx)(B,{label:"Type",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.type||"",onChange:e=>P(t,"type",e.target.value),placeholder:"e.g. Full-time"})}),(0,l.jsx)(B,{label:"Link / URL",children:(0,l.jsx)(w.p,{className:"text-xs h-7",value:e.link||"",onChange:e=>P(t,"link",e.target.value)})})]},t))})]})]}),(0,l.jsx)(F.av,{value:"logos",className:"space-y-4 mt-2",children:(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(z.J,{className:"text-[11px] font-bold uppercase tracking-wider text-zinc-400 font-sans",children:"Client Logos"}),(0,l.jsxs)(T.$,{size:"sm",variant:"outline",className:"h-6 text-[10px] rounded-md px-2",onClick:()=>a({clientLogos:[...f,""]}),children:[(0,l.jsx)(b.A,{className:"w-3.5 h-3.5 mr-1"})," Add"]})]}),(0,l.jsx)("div",{className:"space-y-3",children:f.map((e,t)=>(0,l.jsxs)("div",{className:"border border-zinc-150 rounded-lg p-2.5 space-y-2 bg-zinc-50/50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("span",{className:"text-[10px] font-semibold text-zinc-500",children:["Logo ",t+1]}),(0,l.jsx)("button",{onClick:()=>a({clientLogos:f.filter((e,a)=>a!==t)}),className:"text-zinc-400 hover:text-red-500",children:(0,l.jsx)(j.A,{className:"w-3.5 h-3.5"})})]}),(0,l.jsx)(B,{label:"Image URL",children:(0,l.jsx)(R.e,{label:"",value:e,onCh
1ange:e=>((e,t)=>{let l=[...f];l[e]=t,a({clientLogos:l})})(t,e)})})]},t))})]})})]})]})}var ea=a(18720),el=a(79397),es=a(60425),ei=a(57828),en=a(79451),er=a(90627),eo=a(52508),ec=a(93499),ed=a(15870),eu=a(919),ex=a(46046),ep=a(31856),em=a(25016),eh=a(80415);function eg(e){let t,{pageId:a,pageSlug:r="",initialTitle:o="",initialStatus:c="published",initialLayout:d="full-width",initialOgImage:x="",initialMetaTitle:p="",initialMetaDescription:m="",initialSections:h=[],onSave:b}=e,[v,f]=(0,s.useState)(h),[j,N]=(0,s.useState)(null),[C,k]=(0,s.useState)("builder"),[L,M]=(0,s.useState)("desktop"),[F,P]=(0,s.useState)(!1),[I,B]=(0,s.useState)(!1),{setOpen:H}=(0,eh.cL)();(0,s.useEffect)(()=>{H(!1)},[H]);let[O,U]=(0,s.useState)(o),[q,J]=(0,s.useState)(c),[E,G]=(0,s.useState)(r),[W,K]=(0,s.useState)(d),[_,Q]=(0,s.useState)(x),[V,$]=(0,s.useState)(p),[Y,X]=(0,s.useState)(m),[Z,ee]=(0,s.useState)(!!r),[et,eg]=(0,s.useState)(!1),eb=()=>B(!0);(0,s.useEffect)(()=>{!Z&&O&&G((0,em.Y)(O))},[O,Z]);let ev=(0,s.useCallback)((e,t)=>{let a={id:(0,i.Ak)(8),type:e,props:{...n[e]}};f(e=>t?function e(l){let s=[];for(let i of l)i.id===t?(s.push(i),s.push(a)):s.push(i.children?{...i,children:e(i.children)}:i);return s}(e):[...e,a]),N(a.id),eb()},[]),ef=(0,s.useCallback)((e,t)=>{let a={id:(0,i.Ak)(8),type:t,props:{...n[t]}};f(t=>(function t(l){return l.map(l=>l.id===e?{...l,children:[...l.children||[],a]}:l.children?{...l,children:t(l.children)}:l)})(t)),N(a.id),eb()},[]),ej=(0,s.useCallback)(e=>{f(t=>(function t(a){return a.filter(t=>t.id!==e).map(e=>e.children?{...e,children:t(e.children)}:e)})(t)),N(null),eb()},[]),ey=(0,s.useCallback)(e=>{f(t=>(function t(a){let l=[];for(let s of a)s.id===e?(l.push(s),l.push({...JSON.parse(JSON.stringify(s)),id:(0,i.Ak)(8)})):l.push(s.children?{...s,children:t(s.children)}:s);return l})(t)),eb()},[]),eN=(0,s.useCallback)((e,t)=>{f(a=>(function a(l){return l.map(l=>l.id===e?t.styles?{...l,props:{...l.props,...t},styles:t.styles}:{...l,props:{...l.props,...t}}:l.children?{...l,children:a(l.children)}:l)})(a)),eb()},[]),eC=async()=>{if(!O.trim()){ea.oR.error("Please enter a page title in Page Settings before saving."),eg(!0);return}let e=E.trim()||(0,em.Y)(O);if(!e){ea.oR.error("Please enter a page slug in Page Settings before saving."),eg(!0);return}P(!0);try{await b(v,{title:O.trim(),status:q,slug:e,layout:W,ogImage:_,metaTitle:V.trim(),metaDescription:Y.trim()}),B(!1),ea.oR.success("Page saved successfully")}catch(e){console.error(e),ea.oR.error(e.message||"Failed to save page")}finally{P(!1)}},ew=(t=null,!function e(a){for(let l of a)l.id===j&&(t=l),!t&&l.children&&e(l.children)}(v),t);return(0,l.jsxs)("div",{className:"flex flex-col h-full bg-zinc-50",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-4 py-2.5 bg-white border-b border-zinc-150 shrink-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(el.A,{className:"w-4 h-4 text-zinc-500"}),(0,l.jsx)("span",{className:"text-sm font-semibold text-zinc-900",children:"Page Builder"}),I&&(0,l.jsx)("span",{className:"text-[10px] font-bold px-2 py-0.5 bg-amber-50 text-amber-700 rounded-full border border-amber-200",children:"Unsaved"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center bg-zinc-100 rounded-lg p-0.5 mr-1",children:[(0,l.jsxs)("button",{onClick:()=>k("builder"),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-semibold transition-all ".concat("builder"===C?"bg-white shadow-sm text-zinc-900":"text-zinc-500 hover:text-zinc-700"),children:[(0,l.jsx)(es.A,{className:"w-3.5 h-3.5"}),"Build"]}),(0,l.jsxs)("button",{onClick:()=>k("preview"),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-semibold transition-all ".concat("preview"===C?"bg-white shadow-sm text-zinc-900":"text-zinc-500 hover:text-zinc-700"),children:[(0,l.jsx)(ei.A,{className:"w-3.5 h-3.5"}),"Preview"]})]}),"preview"===C&&(0,l.jsx)("div",{className:"flex items-center gap-0.5 mr-2",children:["desktop","tablet","mobile"].map(e=>{let t="desktop"===e?en.A:"tablet"===e?er.A:eo.A;return(0,l.jsx)("button",{onClick:()=>M(e),className:"p-1.5 rounded-md transition-colors ".concat(L===e?"bg-zinc-200 text-zinc-900":"text-zinc-400 hover:text-zinc-600"),children:(0,l.jsx)(t,{className:"w-4 h-4"})},e)})}),(0,l.jsxs)("a",{href:"/page/".concat(r),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-zinc-500 hover:text-zinc-800 transition-colors",children:[(0,l.jsx)(ec.A,{className:"w-3.5 h-3.5"}),"Live"]}),(0,l.jsxs)(T.$,{variant:"outline",size:"sm",onClick:()=>eg(!0),className:"h-8 text-xs font-semibold",children:[(0,l.jsx)(ed.A,{className:"w-3.5 h-3.5 mr-1.5"}),"Page Settings"]}),(0,l.jsxs)(T.$,{size:"sm",onClick:eC,disabled:F,className:"h-8 text-xs font-semibold",children:[F?(0,l.jsx)(eu.A,{className:"w-3.5 h-3.5 animate-spin mr-1.5"}):(0,l.jsx)(ex.A,{className:"w-3.5 h-3.5 mr-1.5"}),F?"Saving...":"Save"]})]})]}),"builder"===C?(0,l.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,l.jsx)(u,{onAdd:e=>ev(e)}),(0,l.jsx)(y,{sections:v,selectedId:j,onSelect:N,onReorder:f,onDelete:ej,onDuplicate:ey,onAddAfter:e=>{ev("text",e)},onAddChild:ef}),ew?(0,l.jsx)(D,{section:ew,onChange:eN}):(0,l.jsxs)("aside",{className:"w-72 shrink-0 bg-white border-l border-zinc-150 flex flex-col",children:[(0,l.jsx)("div",{className:"p-4 border-b border-zinc-100",children:(0,l.jsx)("h2",{className:"text-xs font-bold uppercase tracking-widest text-zinc-400",children:"Properties"})}),(0,l.jsx)("div",{className:"flex-1 flex items-center justify-center text-center p-6",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-semibold text-zinc-500",children:"No section selected"}),(0,l.jsx)("p",{className:"text-xs text-zinc-400 mt-1",children:"Click a section in the canvas to edit its properties"})]})})]})]}):(0,l.jsx)("div",{className:"flex-1 overflow-y-auto bg-zinc-200 p-8",children:(0,l.jsx)("div",{className:"".concat({desktop:"w-full",tablet:"w-[768px] mx-auto",mobile:"w-[375px] mx-auto"}[L]," bg-white shadow-xl rounded-xl overflow-hidden transition-all duration-300"),children:0===v.length?(0,l.jsx)("div",{className:"py-32 text-center text-zinc-400",children:(0,l.jsx)("p",{className:"text-sm",children:"No sections added yet"})}):v.map(e=>(0,l.jsx)(g.SectionRenderer,{section:e},e.id))})}),(0,l.jsx)(ep.cj,{open:et,onOpenChange:eg,children:(0,l.jsxs)(ep.h,{className:"w-full sm:max-w-md overflow-y-auto h-full flex flex-col gap-0 p-0",children:[(0,l.jsxs)(ep.Fm,{className:"p-6 border-b bg-zinc-50/50",children:[(0,l.jsx)(ep.qp,{className:"text-lg font-bold text-zinc-900",children:"Page Settings"}),(0,l.jsx)(ep.Qs,{className:"text-xs text-zinc-500 mt-1",children:"Configure page metadata, SEO settings, and visibility."})]}),(0,l.jsxs)("div",{className:"flex-1 overflow-y-auto p-6 space-y-6",children:[(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(z.J,{htmlFor:"page-title",className:"text-xs font-semibold text-zinc-700",children:"Page Title"}),(0,l.jsx)(w.p,{id:"page-title",value:O,onChange:e=>{U(e.target.value),eb()},placeholder:"e.g. About Us",className:"mt-1.5"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(z.J,{htmlFor:"page-status",className:"text-xs font-semibold text-zinc-700",children:"Status"}),(0,l.jsxs)(A.l6,{value:q,onValueChange:e=>{J(e),eb()},children:[(0,l.jsx)(A.bq,{id:"page-status",className:"mt-1.5 w-full",children:(0,l.jsx)(A.yv,{})}),(0,l.jsxs)(A.gC,{children:[(0,l.jsx)(A.eb,{value:"draft",children:"Draft"}),(0,l.jsx)(A.eb,{value:"published",children:"Published"})]})]})]})]}),(0,l.jsx)("hr",{className:"border-zinc-100"}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400",children:"Details"}),(0,l.jsxs)("div",{children:[(0,l.jsx)(z.J,{htmlFor:"page-slug",className:"text-xs font-semibold text-zinc-700",children:"Slug (optional â auto from title)"}),(0,l.jsx)(w.p,{id:"page-slug",value:E,onChange:e=>{G(e.target.value),ee(!0),eb()},placeholder:"about-us",className:"mt-1.5"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(z.J,{htmlFor:"page-layout",className:"text-xs font-semibold text-zinc-700",children:"Layout"}),(0,l.jsxs)(A.l6,{value:W,onValueChange:e=>{K(e),eb()},children:[(0,l.jsx)(A.bq,{id:"page-layout",className:"mt-1.5 w-full",children:(0,l.jsx)(A.yv,{})}),(0,l.jsxs)(A.gC,{children:[(0,l.jsx)(A.eb,{value:"default",children:"Default (centered, 800px)"}),(0,l.jsx)(A.eb,{value:"narrow",children:"Narrow (600px)"}),(0,l.jsx)(A.eb,{value:"full-width",children:"Full width"})]})]})]})]}),(0,l.jsx)("hr",{className:"border-zinc-100"}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400",children:"SEO & Media"}),(0,l.jsx)("div",{children:(0,l.jsx)(R.e,{label:"Featured / OG Image",value:_,onCh
1ange:e=>{Q(e),eb()}})}),(0,l.jsxs)("div",{children:[(0,l.jsx)(z.J,{htmlFor:"meta-title",className:"text-xs font-semibold text-zinc-700",children:"Meta Title (optional)"}),(0,l.jsx)(w.p,{id:"meta-title",value:V,onChange:e=>{$(e.target.value),eb()},placeholder:O?"".concat(O," | Your Company"):"About Us | Your Company",className:"mt-1.5"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(z.J,{htmlFor:"meta-description",className:"text-xs font-semibold text-zinc-700",children:"Meta Description"}),(0,l.jsx)(S.T,{id:"meta-description",value:Y,onChange:e=>{X(e.target.value),eb()},placeholder:"Brief description for search engines",rows:4,className:"mt-1.5 resize-none"})]})]})]}),(0,l.jsxs)("div",{className:"p-4 border-t bg-zinc-50/50 flex justify-end gap-2 shrink-0",children:[(0,l.jsx)(T.$,{variant:"outline",size:"sm",onClick:()=>eg(!1),children:"Close"}),(0,l.jsx)(T.$,{size:"sm",onClick:()=>eg(!1),children:"Apply Settings"})]})]})})]})}},67001:(e,t,a)=>{a.d(t,{T:()=>n});var l=a(95155),s=a(12115),i=a(25016);let n=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)("textarea",{className:(0,i.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:t,...s})});n.displayName="Textarea"},84916:(e,t,a)=>{a.d(t,{S:()=>o});var l=a(95155),s=a(12115),i=a(86602),n=a(5917),r=a(25016);let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.bL,{ref:t,className:(0,r.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...s,children:(0,l.jsx)(i.C1,{className:(0,r.cn)("flex items-center justify-center text-current"),children:(0,l.jsx)(n.A,{className:"h-4 w-4"})})})});o.displayName=i.bL.displayName},90235:(e,t,a)=>{a.d(t,{J:()=>c});var l=a(95155),s=a(12115),i=a(10489),n=a(83101),r=a(25016);let o=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.b,{ref:t,className:(0,r.cn)(o(),a),...s})});c.displayName=i.b.displayName},90923:(e,t,a)=>{a.d(t,{Xi:()=>c,av:()=>d,j7:()=>o,tU:()=>r});var l=a(95155),s=a(12115),i=a(31109),n=a(25016);let r=i.bL,o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.B8,{ref:t,className:(0,n.cn)("inline-flex h-9 items-center justify-start rounded-lg bg-muted p-1 text-muted-foreground",a),...s})});o.displayName=i.B8.displayName;let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.l9,{ref:t,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...s})});c.displayName=i.l9.displayName;let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,l.jsx)(i.UC,{ref:t,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...s})});d.displayName=i.UC.displayName}}]);
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.