(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7416],{82259:function(e,t,n){Promise.resolve().then(n.bind(n,47482))},71925:function(e,t,n){"use strict";n.d(t,{Oq:function(){return u},dO:function(){return i},jn:function(){return a},iz:function(){return h},Dz:function(){return r},cv:function(){return c},oc:function(){return d}});var r=function(e){var t=e.top,n=e.right,r=e.bottom,a=e.left;return{top:t,right:n,bottom:r,left:a,width:n-a,height:r-t,x:a,y:t,center:{x:(n+a)/2,y:(r+t)/2}}},a=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},l=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},i=function(e){var t=e.borderBox,n=e.margin,i=void 0===n?s:n,o=e.border,c=void 0===o?s:o,d=e.padding,u=void 0===d?s:d,h=r(a(t,i)),g=r(l(t,c)),x=r(l(g,u));return{marginBox:h,borderBox:r(t),paddingBox:g,contentBox:x,margin:i,border:c,padding:u}},o=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){if(!e)throw Error("Invariant failed")}(!1),n},c=function(e,t){var n=e.borderBox,r=e.border,a=e.margin,l=e.padding;return i({borderBox:{top:n.top+t.y,left:n.left+t.x,bottom:n.bottom+t.y,right:n.right+t.x},border:r,margin:a,padding:l})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),c(e,t)},u=function(e,t){return i({borderBox:e,margin:{top:o(t.marginTop),right:o(t.marginRight),bottom:o(t.marginBottom),left:o(t.marginLeft)},padding:{top:o(t.paddingTop),right:o(t.paddingRight),bottom:o(t.paddingBottom),left:o(t.paddingLeft)},border:{top:o(t.borderTopWidth),right:o(t.borderRightWidth),bottom:o(t.borderBottomWidth),left:o(t.borderLeftWidth)}})},h=function(e){return u(e.getBoundingClientRect(),window.getComputedStyle(e))}},87461:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(64090),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),s=(e,t)=>{let n=(0,r.forwardRef)((n,s)=>{let{color:i="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:u="",children:h,...g}=n;return(0,r.createElement)("svg",{ref:s,...a,width:o,height:o,stroke:i,strokeWidth:d?24*Number(c)/Number(o):c,className:["lucide","lucide-".concat(l(e)),u].join(" "),...g},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(h)?h:[h]])});return n.displayName="".concat(e),n}},46578:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},23441:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},37805:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},81708:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},64067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},18994:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},70699:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]])},92270:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]])},70655:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(87461).Z)("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]])},11713:function(e,t){"use strict";t.Z=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];t=a,n||(n=requestAnimationFrame(function(){n=null,e.apply(void 0,t)}))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r}},47482:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var r=n(3827),a=n(89966),l=n(71774),s=n(18994),i=n(64090),o=n(84717),c=n(81708),d=n(46578),u=n(70699),h=n(64067),g=n(70655),x=n(92270),b=n(23441),m=n(37805);function p(e){let{labelEn:t,labelAr:n,valueEn:a,valueAr:l,onChangeEn:s,onChangeAr:i,multiline:o}=e,c=o?"textarea":"input";return(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-xs text-gray-500 mb-1",children:[t," (EN)"]}),(0,r.jsx)(c,{value:a,onChange:e=>s(e.target.value),className:"w-full bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-indigo-500/50 resize-none",...o?{rows:2}:{}})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"block text-xs text-gray-500 mb-1",children:[n," (AR)"]}),(0,r.jsx)(c,{value:l,onChange:e=>i(e.target.value),dir:"rtl",className:"w-full bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-indigo-500/50 resize-none text-right",...o?{rows:2}:{}})]})]})}function f(e){let{label:t,value:n,onChange:a,placeholder:l}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-gray-500 mb-1",children:t}),(0,r.jsx)("input",{value:n,onChange:e=>a(e.target.value),placeholder:l,className:"w-full bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-indigo-500/50"})]})}function v(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsx)(p,{labelEn:"Highlight",labelAr:"التمييز",valueEn:t.highlightEn,valueAr:t.highlightAr,onChangeEn:e=>a({highlightEn:e}),onChangeAr:e=>a({highlightAr:e})}),(0,r.jsx)(p,{labelEn:"Subtitle",labelAr:"العنوان الفرعي",valueEn:t.subtitleEn,valueAr:t.subtitleAr,onChangeEn:e=>a({subtitleEn:e}),onChangeAr:e=>a({subtitleAr:e}),multiline:!0}),(0,r.jsx)(p,{labelEn:"CTA Text",labelAr:"نص الزر",valueEn:t.ctaTextEn,valueAr:t.ctaTextAr,onChangeEn:e=>a({ctaTextEn:e}),onChangeAr:e=>a({ctaTextAr:e})}),(0,r.jsx)(f,{label:"CTA Link",value:t.ctaLink,onChange:e=>a({ctaLink:e})}),(0,r.jsx)(p,{labelEn:"Secondary CTA Text",labelAr:"نص الزر الثانوي",valueEn:t.secondaryCtaTextEn,valueAr:t.secondaryCtaTextAr,onChangeEn:e=>a({secondaryCtaTextEn:e}),onChangeAr:e=>a({secondaryCtaTextAr:e})}),(0,r.jsx)(f,{label:"Secondary CTA Link",value:t.secondaryCtaLink,onChange:e=>a({secondaryCtaLink:e})}),(0,r.jsx)(f,{label:"Screenshot URL",value:t.screenshotUrl,onChange:e=>a({screenshotUrl:e})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"Stats (4)"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:t.stats.map((e,n)=>(0,r.jsxs)("div",{className:"p-3 bg-white/[0.02] rounded-lg border border-white/[0.04] space-y-2",children:[(0,r.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:["Stat ",n+1]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-gray-500 mb-1",children:"Value (EN)"}),(0,r.jsx)("input",{value:e.valueEn,onChange:e=>{let r=[...t.stats];r[n]={...r[n],valueEn:e.target.value},a({stats:r})},className:"w-full bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-indigo-500/50"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-gray-500 mb-1",children:"Value (AR)"}),(0,r.jsx)("input",{value:e.valueAr,onChange:e=>{let r=[...t.stats];r[n]={...r[n],valueAr:e.target.value},a({stats:r})},dir:"rtl",className:"w-full bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-indigo-500/50 text-right"})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-gray-500 mb-1",children:"Label (EN)"}),(0,r.jsx)("input",{value:e.labelEn,onChange:e=>{let r=[...t.stats];r[n]={...r[n],labelEn:e.target.value},a({stats:r})},className:"w-full bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-indigo-500/50"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-gray-500 mb-1",children:"Label (AR)"}),(0,r.jsx)("input",{value:e.labelAr,onChange:e=>{let r=[...t.stats];r[n]={...r[n],labelAr:e.target.value},a({stats:r})},dir:"rtl",className:"w-full bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-indigo-500/50 text-right"})]})]})]},n))})]})]})}function A(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"Companies (6)"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:t.companies.map((e,n)=>(0,r.jsx)(f,{label:"Company ".concat(n+1),value:e,onChange:e=>{let r=[...t.companies];r[n]=e,a({companies:r})}},n))})]})]})}function E(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"Before Items (4)"}),(0,r.jsx)("div",{className:"space-y-3",children:t.beforeItems.map((e,n)=>(0,r.jsx)("div",{className:"p-3 bg-white/[0.02] rounded-lg border border-white/[0.04]",children:(0,r.jsx)(p,{labelEn:"Before Item ".concat(n+1),labelAr:"قبل ".concat(n+1),valueEn:e.en,valueAr:e.ar,onChangeEn:e=>{let r=[...t.beforeItems];r[n]={...r[n],en:e},a({beforeItems:r})},onChangeAr:e=>{let r=[...t.beforeItems];r[n]={...r[n],ar:e},a({beforeItems:r})}})},n))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"After Items (4)"}),(0,r.jsx)("div",{className:"space-y-3",children:t.afterItems.map((e,n)=>(0,r.jsx)("div",{className:"p-3 bg-white/[0.02] rounded-lg border border-white/[0.04]",children:(0,r.jsx)(p,{labelEn:"After Item ".concat(n+1),labelAr:"بعد ".concat(n+1),valueEn:e.en,valueAr:e.ar,onChangeEn:e=>{let r=[...t.afterItems];r[n]={...r[n],en:e},a({afterItems:r})},onChangeAr:e=>{let r=[...t.afterItems];r[n]={...r[n],ar:e},a({afterItems:r})}})},n))})]})]})}function y(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsx)(p,{labelEn:"Subtitle",labelAr:"العنوان الفرعي",valueEn:t.subtitleEn,valueAr:t.subtitleAr,onChangeEn:e=>a({subtitleEn:e}),onChangeAr:e=>a({subtitleAr:e}),multiline:!0}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"Steps (3)"}),(0,r.jsx)("div",{className:"space-y-3",children:t.steps.map((e,n)=>(0,r.jsxs)("div",{className:"p-3 bg-white/[0.02] rounded-lg border border-white/[0.04] space-y-3",children:[(0,r.jsxs)("div",{className:"text-xs text-gray-500",children:["Step ",n+1]}),(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:e.titleEn,valueAr:e.titleAr,onChangeEn:e=>{let r=[...t.steps];r[n]={...r[n],titleEn:e},a({steps:r})},onChangeAr:e=>{let r=[...t.steps];r[n]={...r[n],titleAr:e},a({steps:r})}}),(0,r.jsx)(p,{labelEn:"Description",labelAr:"الوصف",valueEn:e.descEn,valueAr:e.descAr,onChangeEn:e=>{let r=[...t.steps];r[n]={...r[n],descEn:e},a({steps:r})},onChangeAr:e=>{let r=[...t.steps];r[n]={...r[n],descAr:e},a({steps:r})},multiline:!0}),(0,r.jsx)(f,{label:"Screenshot URL",value:e.screenshotUrl,onChange:e=>{let r=[...t.steps];r[n]={...r[n],screenshotUrl:e},a({steps:r})}})]},n))})]})]})}function j(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsx)(p,{labelEn:"Subtitle",labelAr:"العنوان الفرعي",valueEn:t.subtitleEn,valueAr:t.subtitleAr,onChangeEn:e=>a({subtitleEn:e}),onChangeAr:e=>a({subtitleAr:e}),multiline:!0}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"Demos (3)"}),(0,r.jsx)("div",{className:"space-y-3",children:t.demos.map((e,n)=>(0,r.jsxs)("div",{className:"p-3 bg-white/[0.02] rounded-lg border border-white/[0.04] space-y-3",children:[(0,r.jsxs)("div",{className:"text-xs text-gray-500",children:["Demo ",n+1]}),(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:e.titleEn,valueAr:e.titleAr,onChangeEn:e=>{let r=[...t.demos];r[n]={...r[n],titleEn:e},a({demos:r})},onChangeAr:e=>{let r=[...t.demos];r[n]={...r[n],titleAr:e},a({demos:r})}}),(0,r.jsx)(f,{label:"URL",value:e.url,onChange:e=>{let r=[...t.demos];r[n]={...r[n],url:e},a({demos:r})}}),(0,r.jsx)(f,{label:"Screenshot URL",value:e.screenshotUrl,onChange:e=>{let r=[...t.demos];r[n]={...r[n],screenshotUrl:e},a({demos:r})}})]},n))})]})]})}function w(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Section Title",labelAr:"عنوان القسم",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"Features (6)"}),(0,r.jsx)("div",{className:"space-y-3",children:t.features.map((e,n)=>(0,r.jsxs)("div",{className:"p-3 bg-white/[0.02] rounded-lg border border-white/[0.04] space-y-3",children:[(0,r.jsxs)("div",{className:"text-xs text-gray-500",children:["Feature ",n+1]}),(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:e.titleEn,valueAr:e.titleAr,onChangeEn:e=>{let r=[...t.features];r[n]={...r[n],titleEn:e},a({features:r})},onChangeAr:e=>{let r=[...t.features];r[n]={...r[n],titleAr:e},a({features:r})}}),(0,r.jsx)(p,{labelEn:"Description",labelAr:"الوصف",valueEn:e.descEn,valueAr:e.descAr,onChangeEn:e=>{let r=[...t.features];r[n]={...r[n],descEn:e},a({features:r})},onChangeAr:e=>{let r=[...t.features];r[n]={...r[n],descAr:e},a({features:r})},multiline:!0})]},n))})]})]})}function C(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Section Title",labelAr:"عنوان القسم",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm text-gray-400 mb-2",children:"Testimonials (3)"}),(0,r.jsx)("div",{className:"space-y-3",children:t.testimonials.map((e,n)=>(0,r.jsxs)("div",{className:"p-3 bg-white/[0.02] rounded-lg border border-white/[0.04] space-y-3",children:[(0,r.jsxs)("div",{className:"text-xs text-gray-500",children:["Testimonial ",n+1]}),(0,r.jsx)(f,{label:"Name",value:e.name,onChange:e=>{let r=[...t.testimonials];r[n]={...r[n],name:e},a({testimonials:r})}}),(0,r.jsx)(f,{label:"Role",value:e.role,onChange:e=>{let r=[...t.testimonials];r[n]={...r[n],role:e},a({testimonials:r})}}),(0,r.jsx)(p,{labelEn:"Quote",labelAr:"الاقتباس",valueEn:e.quoteEn,valueAr:e.quoteAr,onChangeEn:e=>{let r=[...t.testimonials];r[n]={...r[n],quoteEn:e},a({testimonials:r})},onChangeAr:e=>{let r=[...t.testimonials];r[n]={...r[n],quoteAr:e},a({testimonials:r})},multiline:!0}),(0,r.jsx)(f,{label:"Initials",value:e.initials,onChange:e=>{let r=[...t.testimonials];r[n]={...r[n],initials:e},a({testimonials:r})}})]},n))})]})]})}function N(e){let{section:t,onChange:n}=e,a=e=>n({...t,...e});return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p,{labelEn:"Title",labelAr:"العنوان",valueEn:t.titleEn,valueAr:t.titleAr,onChangeEn:e=>a({titleEn:e}),onChangeAr:e=>a({titleAr:e})}),(0,r.jsx)(p,{labelEn:"Description",labelAr:"الوصف",valueEn:t.descEn,valueAr:t.descAr,onChangeEn:e=>a({descEn:e}),onChangeAr:e=>a({descAr:e}),multiline:!0}),(0,r.jsx)(p,{labelEn:"CTA Text",labelAr:"نص الزر",valueEn:t.ctaTextEn,valueAr:t.ctaTextAr,onChangeEn:e=>a({ctaTextEn:e}),onChangeAr:e=>a({ctaTextAr:e})}),(0,r.jsx)(f,{label:"CTA Link",value:t.ctaLink,onChange:e=>a({ctaLink:e})}),(0,r.jsx)(p,{labelEn:"Trust Line",labelAr:"خط الثقة",valueEn:t.trustLineEn,valueAr:t.trustLineAr,onChangeEn:e=>a({trustLineEn:e}),onChangeAr:e=>a({trustLineAr:e})})]})}function k(){return(0,r.jsx)("div",{className:"p-4 bg-white/[0.02] rounded-lg border border-white/[0.04] text-center text-gray-400",children:"Footer content is managed via Branding settings."})}function T(e){let{section:t,onChange:n}=e;switch(t.type){case"hero":return(0,r.jsx)(v,{section:t,onChange:n});case"trusted-by":return(0,r.jsx)(A,{section:t,onChange:n});case"before-after":return(0,r.jsx)(E,{section:t,onChange:n});case"how-it-works":return(0,r.jsx)(y,{section:t,onChange:n});case"live-demo":return(0,r.jsx)(j,{section:t,onChange:n});case"features":return(0,r.jsx)(w,{section:t,onChange:n});case"testimonials":return(0,r.jsx)(C,{section:t,onChange:n});case"final-cta":return(0,r.jsx)(N,{section:t,onChange:n});case"footer":return(0,r.jsx)(k,{});default:return(0,r.jsx)("div",{className:"text-gray-500",children:"Unknown section type"})}}let S={hero:{en:"Hero Section",ar:"قسم الهيرو",icon:"\uD83D\uDE80"},"trusted-by":{en:"Trusted By",ar:"الشركاء الموثوقين",icon:"\uD83C\uDFE2"},"before-after":{en:"Before / After",ar:"قبل وبعد",icon:"⚡"},"how-it-works":{en:"How It Works",ar:"كيف يعمل",icon:"\uD83D\uDCCB"},"live-demo":{en:"Live Demo",ar:"عرض حي",icon:"\uD83D\uDDA5️"},features:{en:"Features",ar:"المميزات",icon:"✨"},testimonials:{en:"Testimonials",ar:"التقييمات",icon:"⭐"},"final-cta":{en:"Final CTA",ar:"دعوة للعمل النهائية",icon:"\uD83D\uDCE2"},footer:{en:"Footer",ar:"الفوتر",icon:"\uD83D\uDD17"}};function L(e){let{initialContent:t,onSave:n}=e,{lang:a}=(0,l.Z)(),p="ar"===a,[f,v]=(0,i.useState)(t.sections),[A,E]=(0,i.useState)(null),[y,j]=(0,i.useState)(!1),[w,C]=(0,i.useState)(!1),N=JSON.stringify(f)!==JSON.stringify(t.sections),k=async()=>{j(!0),C(!1);try{await n({sections:f}),C(!0),setTimeout(()=>C(!1),2e3)}catch(e){console.error("Failed to save:",e),alert("Failed to save changes. Please try again.")}finally{j(!1)}},L=e=>{E(A===e?null:e)},I=e=>{v(t=>t.map(t=>t.id===e?{...t,enabled:!t.enabled}:t))},D=(e,t)=>{v(n=>n.map(n=>n.id===e?t:n))};return(0,r.jsxs)("div",{className:"max-w-5xl mx-auto p-6 space-y-6",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-white mb-2",children:p?"تحرير الصفحة الرئيسية":"Homepage Editor"}),(0,r.jsx)("p",{className:"text-gray-400",children:p?"قم بتخصيص أقسام الصفحة الرئيسية وإعادة ترتيبها":"Customize and reorder homepage sections"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-lg border border-white/[0.06] bg-white/[0.03] text-gray-300 hover:bg-white/[0.06] hover:text-white transition-colors",children:[(0,r.jsx)(c.Z,{className:"h-4 w-4"}),p?"معاينة":"Preview"]}),(0,r.jsx)("button",{onClick:k,disabled:!N||y||w,className:"\n              flex items-center gap-2 px-6 py-2 rounded-lg font-medium transition-all\n              ".concat(w?"bg-green-600 text-white":N?"bg-gradient-to-r from-indigo-500 to-purple-600 text-white hover:from-indigo-600 hover:to-purple-700 shadow-lg shadow-indigo-500/25":"bg-gray-700 text-gray-400 cursor-not-allowed","\n            "),children:y?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{className:"h-4 w-4 animate-spin"}),p?"جاري الحفظ...":"Saving..."]}):w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{className:"h-4 w-4"}),p?"تم الحفظ!":"Saved!"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.Z,{className:"h-4 w-4"}),p?"حفظ الكل":"Save All"]})})]})]}),(0,r.jsx)(o.Z5,{onDragEnd:e=>{if(!e.destination)return;let t=Array.from(f),[n]=t.splice(e.source.index,1);t.splice(e.destination.index,0,n),v(t.map((e,t)=>({...e,order:t})))},children:(0,r.jsx)(o.bK,{droppableId:"sections",children:e=>(0,r.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"space-y-4",children:[f.map((e,t)=>{let n=S[e.id]||{en:e.id,ar:e.id,icon:"\uD83D\uDCC4"},a=A===e.id;return(0,r.jsx)(o._l,{draggableId:e.id,index:t,children:(t,l)=>(0,r.jsxs)("div",{ref:t.innerRef,...t.draggableProps,className:"\n                          rounded-xl border transition-all\n                          ".concat(e.enabled?"border-white/[0.06] bg-white/[0.03]":"border-white/[0.04] bg-white/[0.01] opacity-60","\n                          ").concat(l.isDragging?"border-indigo-500/50 bg-[#12121f] shadow-2xl":"","\n                        "),children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,r.jsx)("div",{...t.dragHandleProps,className:"cursor-grab active:cursor-grabbing text-gray-500 hover:text-gray-300 transition-colors",children:(0,r.jsx)(h.Z,{className:"h-5 w-5"})}),(0,r.jsxs)("button",{onClick:()=>L(e.id),className:"flex items-center gap-3 flex-1 text-left",children:[(0,r.jsx)("span",{className:"text-2xl",children:n.icon}),(0,r.jsx)("span",{className:"text-lg font-semibold text-white",children:p?n.ar:n.en})]}),(0,r.jsx)("button",{onClick:()=>I(e.id),className:"\n                              flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors\n                              ".concat(e.enabled?"bg-green-500/10 text-green-400 hover:bg-green-500/20":"bg-gray-700/50 text-gray-400 hover:bg-gray-700","\n                            "),children:e.enabled?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{className:"h-4 w-4"}),p?"مفعّل":"Enabled"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.Z,{className:"h-4 w-4"}),p?"معطّل":"Disabled"]})}),(0,r.jsx)("button",{onClick:()=>L(e.id),className:"text-gray-400 hover:text-white transition-colors",children:a?(0,r.jsx)(b.Z,{className:"h-5 w-5"}):(0,r.jsx)(m.Z,{className:"h-5 w-5"})})]}),a&&(0,r.jsx)("div",{className:"border-t border-white/[0.06] p-6",children:(0,r.jsx)(T,{section:e,onChange:t=>D(e.id,t)})})]})},e.id)}),e.placeholder]})})})]})}var I=n(69637);let D=e=>fetch(e).then(e=>e.json());function Z(){let{lang:e}=(0,l.Z)(),{data:t,isLoading:n,mutate:i}=(0,a.ZP)("/api/admin/settings",D),o=(null==t?void 0:t.homepage_content)?{...I.B,...t.homepage_content,sections:t.homepage_content.sections||I.B.sections}:I.B,c=async e=>{let t=await fetch("/api/admin/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:"homepage_content",value:e})});if(!t.ok)throw Error((await t.json()).error||"Failed to save");i()};return n?(0,r.jsx)("div",{className:"flex justify-center py-12",children:(0,r.jsx)(s.Z,{className:"h-8 w-8 animate-spin text-gray-500"})}):(0,r.jsx)(L,{initialContent:o,onSave:c})}},69637:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});let r={sections:[{id:"hero",type:"hero",enabled:!0,order:0,titleEn:"Create Stunning Landing Pages",titleAr:"أنشئ صفحات هبوط مذهلة",highlightEn:"in Minutes",highlightAr:"في دقائق",subtitleEn:"Answer a few questions about your business and let AI generate a professional, conversion-optimized landing page.",subtitleAr:"أجب عن بضعة أسئلة حول عملك ودع الذكاء الاصطناعي يولد صفحة هبوط احترافية محسّنة للتحويل.",ctaTextEn:"Start Building Free",ctaTextAr:"ابدأ البناء مجاناً",ctaLink:"/register",secondaryCtaTextEn:"See How It Works",secondaryCtaTextAr:"شاهد كيف يعمل",secondaryCtaLink:"#how-it-works",screenshotUrl:"/screenshots/editor.svg",stats:[{valueEn:"10K+",valueAr:"+10 آلاف",labelEn:"Pages Created",labelAr:"صفحة تم إنشاؤها"},{valueEn:"4.9",valueAr:"4.9",labelEn:"User Rating",labelAr:"تقييم المستخدمين"},{valueEn:"500+",valueAr:"+500",labelEn:"Happy Users",labelAr:"مستخدم سعيد"},{valueEn:"2 min",valueAr:"2 دقيقة",labelEn:"Avg. Build Time",labelAr:"متوسط وقت البناء"}]},{id:"trusted-by",type:"trusted-by",enabled:!0,order:1,titleEn:"Trusted by",titleAr:"موثوق من قبل",companies:["TechFlow","Starter.io","LaunchPad","DigitalFirst","GrowthBase","CloudScale"]},{id:"before-after",type:"before-after",enabled:!0,order:2,titleEn:"Why PageCraft AI?",titleAr:"لماذا PageCraft AI؟",beforeItems:[{en:"Spend hours writing copy",ar:"قضاء ساعات في كتابة المحتوى"},{en:"Hire expensive designers",ar:"توظيف مصممين مكلفين"},{en:"Struggle with code",ar:"المعاناة مع البرمجة"},{en:"Wait days for results",ar:"الانتظار أياماً للنتائج"}],afterItems:[{en:"AI generates perfect copy",ar:"الذكاء الاصطناعي يولد محتوى مثالي"},{en:"Professional designs included",ar:"تصاميم احترافية متضمنة"},{en:"One-click publish",ar:"نشر بنقرة واحدة"},{en:"Live in 2 minutes",ar:"جاهز في دقيقتين"}]},{id:"how-it-works",type:"how-it-works",enabled:!0,order:3,titleEn:"How It Works",titleAr:"كيف يعمل",subtitleEn:"Three simple steps to go from idea to live landing page.",subtitleAr:"ثلاث خطوات بسيطة للانتقال من الفكرة إلى صفحة هبوط حية.",steps:[{titleEn:"Answer Questions",titleAr:"أجب عن الأسئلة",descEn:"Our smart questionnaire asks about your business, target audience, and goals.",descAr:"يسألك استبياننا الذكي عن عملك والجمهور المستهدف وأهدافك.",screenshotUrl:"/screenshots/wizard.svg"},{titleEn:"AI Generates",titleAr:"الذكاء الاصطناعي يولد",descEn:"Our AI creates compelling copy, selects the perfect design, and structures your page for conversions.",descAr:"يقوم الذكاء الاصطناعي بإنشاء محتوى مقنع واختيار التصميم المثالي وتنظيم صفحتك للتحويلات.",screenshotUrl:"/screenshots/editor.svg"},{titleEn:"Review & Publish",titleAr:"راجع وانشر",descEn:"Preview your page, make any tweaks in our visual editor, and publish with one click.",descAr:"معاينة صفحتك وإجراء أي تعديلات في محررنا المرئي والنشر بنقرة واحدة.",screenshotUrl:"/screenshots/landing-saas.svg"}]},{id:"live-demo",type:"live-demo",enabled:!0,order:4,titleEn:"See It In Action",titleAr:"شاهده أثناء العمل",subtitleEn:"Explore landing pages built with PageCraft AI",subtitleAr:"استكشف صفحات الهبوط المبنية بواسطة PageCraft AI",demos:[{titleEn:"SaaS Landing",titleAr:"هبوط SaaS",url:"/demo/saas",screenshotUrl:"/screenshots/landing-saas.svg"},{titleEn:"E-commerce",titleAr:"التجارة الإلكترونية",url:"/demo/ecommerce",screenshotUrl:"/screenshots/landing-ecommerce.svg"},{titleEn:"Agency Dashboard",titleAr:"لوحة الوكالة",url:"/demo/agency",screenshotUrl:"/screenshots/dashboard.svg"}]},{id:"features",type:"features",enabled:!0,order:5,titleEn:"Everything You Need",titleAr:"كل ما تحتاجه",features:[{icon:"Zap",titleEn:"AI-Powered Copy",titleAr:"محتوى مدعوم بالذكاء الاصطناعي",descEn:"Generate compelling headlines, benefit statements, and calls-to-action that convert.",descAr:"توليد عناوين مقنعة وبيانات الفوائد ودعوات للعمل تحقق التحويلات.",color:"yellow"},{icon:"Palette",titleEn:"Beautiful Themes",titleAr:"مظاهر جميلة",descEn:"Choose from professionally designed themes or let AI pick the perfect style for your brand.",descAr:"اختر من مظاهر مصممة بشكل احترافي أو دع الذكاء الاصطناعي يختار النمط المثالي لعلامتك التجارية.",color:"pink"},{icon:"Globe",titleEn:"Instant Publishing",titleAr:"نشر فوري",descEn:"Get a live URL instantly. No hosting setup, no deployment headaches.",descAr:"احصل على رابط مباشر فوراً. لا إعداد استضافة ولا مشاكل نشر.",color:"blue"},{icon:"CheckCircle2",titleEn:"SEO Optimized",titleAr:"محسّن لمحركات البحث",descEn:"Every page includes proper meta tags, semantic HTML, and performance optimization.",descAr:"كل صفحة تتضمن علامات وصفية صحيحة وHTML دلالي وتحسين الأداء.",color:"green"},{icon:"Sparkles",titleEn:"Section Editor",titleAr:"محرر الأقسام",descEn:"Drag, drop, and customize sections. Change colors, text, and images with ease.",descAr:"اسحب وأفلت وخصص الأقسام. غيّر الألوان والنصوص والصور بسهولة.",color:"purple"},{icon:"Wand2",titleEn:"Smart Questionnaire",titleAr:"استبيان ذكي",descEn:"Answer targeted questions that help AI understand your exact needs.",descAr:"أجب عن أسئلة مستهدفة تساعد الذكاء الاصطناعي على فهم احتياجاتك بالضبط.",color:"orange"}]},{id:"testimonials",type:"testimonials",enabled:!0,order:6,titleEn:"What Our Users Say",titleAr:"ماذا يقول مستخدمونا",testimonials:[{name:"Sarah Johnson",role:"Startup Founder",quoteEn:"I had a landing page live in under 5 minutes. The AI-generated copy was better than what I would have written myself!",quoteAr:"كانت لدي صفحة هبوط مباشرة في أقل من 5 دقائق. كان المحتوى الذي ولده الذكاء الاصطناعي أفضل مما كنت سأكتبه بنفسي!",rating:5,initials:"SJ",color:"blue"},{name:"Ahmed Rashed",role:"Marketing Manager",quoteEn:"PageCraft AI has transformed how we launch campaigns. We've created 20+ landing pages in the last month alone.",quoteAr:"لقد غير PageCraft AI طريقة إطلاق حملاتنا. لقد أنشأنا أكثر من 20 صفحة هبوط في الشهر الماضي وحده.",rating:5,initials:"AR",color:"purple"},{name:"Maria Chen",role:"Freelance Designer",quoteEn:"As a designer, I was skeptical about AI tools. But the quality and flexibility here is impressive. It's now part of my workflow.",quoteAr:"كمصممة، كنت متشككة بشأن أدوات الذكاء الاصطناعي. لكن الجودة والمرونة هنا مثيرة للإعجاب. أصبح الآن جزءاً من سير عملي.",rating:5,initials:"MC",color:"green"}]},{id:"final-cta",type:"final-cta",enabled:!0,order:7,titleEn:"Ready to Build Your Landing Page?",titleAr:"مستعد لبناء صفحة الهبوط الخاصة بك؟",descEn:"Join thousands of creators who are building high-converting landing pages with AI.",descAr:"انضم إلى آلاف المبدعين الذين يبنون صفحات هبوط عالية التحويل بالذكاء الاصطناعي.",ctaTextEn:"Get Started — It's Free",ctaTextAr:"ابدأ الآن — مجاناً",ctaLink:"/register",trustLineEn:"No credit card required. Free plan available.",trustLineAr:"لا حاجة لبطاقة ائتمان. خطة مجانية متاحة."},{id:"footer",type:"footer",enabled:!0,order:8}]}},14749:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})}},function(e){e.O(0,[3338,9966,6767,1774,2971,8069,1744],function(){return e(e.s=82259)}),_N_E=e.O()}]);