1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[891],{81466:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 2 * @license lucide-react v0.303.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let s=(0,a(84297).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"}]])},23217:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 7 * @license lucide-react v0.303.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let s=(0,a(84297).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},96895:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 12 * @license lucide-react v0.303.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let s=(0,a(84297).Z)("PenSquare",[["path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1qinfi"}],["path",{d:"M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",key:"w2jsv5"}]])},31012:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 17 * @license lucide-react v0.303.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let s=(0,a(84297).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},87764:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 22 * @license lucide-react v0.303.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let s=(0,a(84297).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},35162:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 27 * @license lucide-react v0.303.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let s=(0,a(84297).Z)("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]])},13718:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});/** 32 * @license lucide-react v0.303.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let s=(0,a(84297).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},19493:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/website/menus",function(){return a(66682)}])},11990:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var s=a(72253),r=a(14932),n=a(47702),i=a(85893),l=a(90512),c=a(23217);function u(e){var t=e.variant,a=e.size,u=e.isLoading,d=void 0!==u&&u,o=e.children,h=e.className,m=e.disabled,x=(0,n._)(e,["variant","size","isLoading","children","className","disabled"]);return(0,i.jsxs)("button",(0,r._)((0,s._)({className:(0,l.Z)("inline-flex items-center justify-center font-medium rounded-lg transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",{primary:"bg-primary-600 text-white hover:bg-primary-700 focus:ring-primary-500",secondary:"bg-gray-100 text-gray-700 hover:bg-gray-200 focus:ring-gray-500",outline:"border border-gray-300 text-gray-700 hover:bg-gray-50 focus:ring-primary-500",danger:"bg-red-600 text-white hover:bg-red-700 focus:ring-red-500",white:"bg-white text-slate-900 hover:bg-gray-100 focus:ring-white"}[void 0===t?"primary":t],{sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"}[void 0===a?"md":a],h),disabled:m||d},x),{children:[d&&(0,i.jsx)(c.Z,{className:"w-4 h-4 mr-2 animate-spin"}),o]}))}},76753:function(e,t,a){"use strict";var s=a(72253),r=a(47702),n=a(85893),i=a(90512),l=(0,a(67294).forwardRef)(function(e,t){var a=e.label,l=e.error,c=e.className,u=e.id,d=(0,r._)(e,["label","error","className","id"]),o=u||d.name;return(0,n.jsxs)("div",{className:"space-y-1",children:[a&&(0,n.jsx)("label",{htmlFor:o,className:"block text-sm font-medium text-gray-700",children:a}),(0,n.jsx)("input",(0,s._)({ref:t,id:o,className:(0,i.Z)("block w-full px-3 py-2 border rounded-lg shadow-sm placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-offset-0 sm:text-sm",l?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 focus:ring-primary-500 focus:border-primary-500",c)},d)),l&&(0,n.jsx)("p",{className:"text-sm text-red-600",children:l})]})});l.displayName="Input",t.Z=l},67162:function(e,t,a){"use strict";var s=a(72253),r=a(14932),n=a(47702),i=a(85893),l=a(90512),c=(0,a(67294).forwardRef)(function(e,t){var a=e.label,c=e.error,u=e.options,d=e.className,o=e.id,h=(0,n._)(e,["label","error","options","className","id"]),m=o||h.name;return(0,i.jsxs)("div",{className:"space-y-1",children:[a&&(0,i.jsx)("label",{htmlFor:m,className:"block text-sm font-medium text-gray-700",children:a}),(0,i.jsxs)("select",(0,r._)((0,s._)({ref:t,id:m,className:(0,l.Z)("block w-full px-3 py-2 border rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-0 sm:text-sm",c?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 focus:ring-primary-500 focus:border-primary-500",d)},h),{children:[(0,i.jsx)("option",{value:"",children:"Select an option"}),u.map(function(e){return(0,i.jsx)("option",{value:e.value,children:e.label},e.value)})]})),c&&(0,i.jsx)("p",{className:"text-sm text-red-600",children:c})]})});c.displayName="Select",t.Z=c},66682:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return A}});var s=a(11010),r=a(75766),n=a(72253),i=a(14932),l=a(24043),c=a(248),u=a(97582),d=a(85893),o=a(67294),h=a(81500),m=a(20034),x=a(52798),p=a(31012),g=a(87764),y=a(77232),f=a(81466),b=a(35162),v=a(96895),j=a(13718),N=a(41352),_=a(11990),w=a(76753),Z=a(67162),k=a(90512),S={active:"bg-green-100 text-green-800",inactive:"bg-gray-100 text-gray-800"},C={primary:"bg-blue-100 text-blue-800",sub:"bg-primary-100 text-purple-800"},M=[{value:"default",label:"Default"},{value:"gradient",label:"Gradient Button"},{value:"outline",label:"Outline Button"},{value:"solid",label:"Solid Button"}
36];function A(){var e,t,a,A,L,z=(0,l._)((0,o.useState)([]),2),P=z[0],T=z[1],E=(0,l._)((0,o.useState)([]),2),q=E[0],F=E[1],O=(0,l._)((0,o.useState)([]),2),H=O[0],I=O[1],J=(0,l._)((0,o.useState)(!0),2),D=J[0],R=J[1],U=(0,l._)((0,o.useState)(!1),2),B=U[0],V=U[1],G=(0,l._)((0,o.useState)(null),2),X=G[0],W=G[1],K=(0,l._)((0,o.useState)(!1),2),Q=K[0],Y=K[1],$=(0,l._)((0,o.useState)(""),2),ee=$[0],et=$[1],ea=(0,l._)((0,o.useState)(""),2),es=ea[0],er=ea[1],en=(0,l._)((0,o.useState)(""),2),ei=en[0],el=en[1],ec=(0,l._)((0,o.useState)(""),2),eu=ec[0],ed=ec[1],eo=(0,l._)((0,o.useState)({page:1,limit:50,total:0,pages:0}),2),eh=eo[0],em=eo[1],ex=(0,l._)((0,o.useState)({name:"",url:"",type:"primary",parent_id:"",category_id:"",is_highlighted:!1,highlight_style:"default",icon:"",target:"_self",sort_order:0,status:"active"}),2),ep=ex[0],eg=ex[1];(0,o.useEffect)(function(){ef(),ey()},[]);var ey=(e=(0,s._)(function(){var e;return(0,u.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,x.h.getServiceCategories()];case 1:return(e=t.sent()).success&&e.data&&I(e.data),[3,3];case 2:return t.sent(),[3,3];case 3:return[2]}})}),function(){return e.apply(this,arguments)}),ef=(t=(0,s._)(function(){var e,t,a,s,r,n=arguments;return(0,u.Jh)(this,function(i){switch(i.label){case 0:e=n.length>0&&void 0!==n[0]?n[0]:1,t=n.length>1&&void 0!==n[1]?n[1]:ei,a=n.length>2&&void 0!==n[2]?n[2]:eu,s=n.length>3&&void 0!==n[3]?n[3]:es,R(!0),i.label=1;case 1:return i.trys.push([1,,3,4]),[4,x.h.getAdminMenus({page:e,status:t,type:a,search:s})];case 2:return(r=i.sent()).success&&r.data&&(T(r.data.menus),F(r.data.primary_menus||[]),em(r.data.pagination)),[3,4];case 3:return R(!1),[7];case 4:return[2]}})}),function(){return t.apply(this,arguments)}),eb=(a=(0,s._)(function(e){var t,a,s;return(0,u.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,x.h.getAdminMenu(e)];case 1:return(t=r.sent()).success&&t.data&&(W(a=t.data),eg({name:a.name,url:a.url,type:a.type,parent_id:a.parent_id||"",category_id:a.category_id||"",is_highlighted:1==a.is_highlighted||!0===a.is_highlighted,highlight_style:a.highlight_style||"default",icon:a.icon||"",target:a.target||"_self",sort_order:a.sort_order||0,status:a.status}),V(!0)),[3,3];case 2:return s=r.sent(),alert(s.message||"Failed to load menu"),[3,3];case 3:return[2]}})}),function(e){return a.apply(this,arguments)}),ev=function(){W(null),eg({name:"",url:"",type:"primary",parent_id:"",category_id:"",is_highlighted:!1,highlight_style:"default",icon:"",target:"_self",sort_order:P.length+1,status:"active"}),V(!0)},ej=(A=(0,s._)(function(e){var t;return(0,u.Jh)(this,function(a){switch(a.label){case 0:if(!confirm("Are you sure you want to delete this menu? Sub menus will also be deleted."))return[2];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,x.h.deleteMenu(e)];case 2:return a.sent(),ef(eh.page),[3,4];case 3:return t=a.sent(),alert(t.message||"Failed to delete menu"),[3,4];case 4:return[2]}})}),function(e){return A.apply(this,arguments)}),eN=(L=(0,s._)(function(e){var t;return(0,u.Jh)(this,function(a){switch(a.label){case 0:e.preventDefault(),et(""),Y(!0),a.label=1;case 1:if(a.trys.push([1,6,7,8]),t=(0,i._)((0,n._)({},ep),{parent_id:""===ep.parent_id?null:Number(ep.parent_id),category_id:""===ep.category_id?null:Number(ep.category_id),is_highlighted:!!ep.is_highlighted}),!X)return[3,3];return[4,x.h.updateMenu((0,n._)({id:X.id},t))];case 2:return a.sent(),[3,5];case 3:return[4,x.h.createMenu(t)];case 4:a.sent(),a.label=5;case 5:return V(!1),ef(eh.page),[3,8];case 6:return et(a.sent().message||"Failed to save menu"),[3,8];case 7:return Y(!1),[7];case 8:return[2]}})}),function(e){return L.apply(this,arguments)}),e_=function(e){var t=e.target,a=t.name,s=t.value,l=t.type,c=e.target.checked;eg(function(e){return(0,i._)((0,n._)({},e),(0,r._)({},a,"checkbox"===l?c:s))})};return(0,d.jsx)(h.Z,{requireAdmin:!0,children:(0,d.jsxs)(m.Z,{children:[(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Menu Management"}),(0,d.jsx)("p",{className:"text-gray-600",children:"Manage header navigation menus"})]}),(0,d.jsxs)(_.Z,{onClick:ev,children:[(0,d.jsx)(p.Z,{className:"w-4 h-4 mr-2"}),"Add Menu"]})]}),(0,d.jsxs)("form",{onSubmit:function(e){e.preventDefault(),ef(1,ei,eu,es)},className:"flex flex-wrap gap-4 items-end",children:[(0,d.jsx)("div",{className:"w-full sm:w-36",children:(0,d.jsx)(Z.Z,{label:"Status",name:"status",value:ei,onChange:function(e){return el(e.target.value)},options:[{value:"",label:"All Status"},{value:"active",label:"Active"},{value:"inactive",label:"Inactive"}]})}),(0,d.jsx)("div",{className:"w-full sm:w-36",children:(0,d.jsx)(Z.Z,{label:"Type",name:"type",value:eu,onChange:function(e){return ed(e.target.value)},options:[{value:"",label:"All Types"},{value:"primary",label:"Primary"},{value:"sub",label:"Sub Menu"}]})}),(0,d.jsx)("div",{className:"flex-1 min-w-0 sm:min-w-48",children:(0,d.jsx)(w.Z,{name:"search",value:es,onChange:function(e){return er(e.target.value)},placeholder:"Search menus..."})}),(0,d.jsxs)(_.Z,{type:"submit",variant:"outline",children:[(0,d.jsx)(g.Z,{className:"w-4 h-4 mr-2"}),"Search"]})]}),(0,d.jsxs)("div",{className:"card overflow-hidden p-0",children:[D?(0,d.jsx)("div",{className:"flex justify-center py-12",children:(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary-600"})}):0===P.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center py-12",children:[(0,d.jsx)(y.Z,{className:"w-12 h-12 text-gray-400 mb-4"}),(0,d.jsx)("p",{className:"text-gray-500",children:"No menus found"}),(0,d.jsxs)(_.Z,{onClick:ev,className:"mt-4",variant:"outline",children:[(0,d.jsx)(p.Z,{className:"w-4 h-4 mr-2"}),"Create your first menu"]})]}):(0,d.jsx)("div",{className:"overflow-x-auto",children:(0,d.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,d.jsx)("thead",{className:"bg-gray-50",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Order"}),(0,d.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Name"}),(0,d.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"URL"}),(0,d.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Type"}),(0,d.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Parent"}),(0,d.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Highlight"}),(0,d.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Status"}),(0,d.jsx)("th",{className:"px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase",children:"Actions"})]})}),(0,d.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:P.map(function(e){return(0,d.jsxs)("tr",{className:"hover:bg-gray-50",children:[(0,d.jsx)("td",{className:"px-6 py-4",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 text-gray-400",children:[(0,d.jsx)(f.Z,{className:"w-4 h-4"}),(0,d.jsx)("span",{className:"text-sm",children:e.sort_order})]})}),(0,d.jsx)("td",{className:"px-6 py-4",children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"font-medium text-gray-900",children:e.name}),(1==e.is_highlighted||!0===e.is_highlighted)&&(0,d.jsx)(b.Z,{className:"w-4 h-4 text-amber-500"})]})}),(0,d.jsx)("td",{className:"px-6 py-4",children:(0,d.jsx)("code",{className:"text-sm bg-gray-100 px-2 py-1 rounded",children:e.url})}),(0,d.jsx)("td",{className:"px-6 py-4",children:(0,d.jsx)("span",{className:(0,k.Z)("px-2 py-1 text-xs font-medium rounded-full capitalize",C[e.type]||"bg-gray-100 text-gray-600"),children:e.type})}),(0,d.jsx)("td",{className:"px-6 py-4 text-sm text-gray-500",children:e.parent_name||"-"}),(0,d.jsx)("td",{className:"px-6 py-4",children:1==e.is_highlighted||!0===e.is_highlighted?(0,d.jsx)("span",{className:"px-2 py-1 text-xs font-medium rounded-full bg-amber-100 text-amber-800 capitalize",children:e.highlight_style}):(0,d.jsx)("span",{className:"text-gray-400 text-sm",children:"-"})}),(0,d.jsx)("td",{className:"px-6 py-4",children:(0,d.jsx)("span",{className:(0,k.Z)("px-2 py-1 text-xs font-medium rounded-full capitalize",S[e.status]||"bg-gray-100 text-gray-600"),children:e.status})}),(0,d.jsx)("td",{className:"px-6 py-4 text-right",children:(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)("button",{onClick:function(){return eb(e.id)},className:"p-2 text-gray-400 hover:text-primary-600 transition-colors",title:"Edit",children:(0,d.jsx)(v.Z,{className:"w-4 h-4"})}),(0,d.jsx)("button",{onClick:function(){return ej(e.id)},className:"p-2 text-gray-400 hover:text-red-600 transition-colors",title:"Delete",children:(0,d.jsx)(j.Z,{className:"w-4 h-4"})})]})})]},e.id)})})]})}),eh.pages>1&&(0,d.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-t border-gray-200",children:[(0,d.jsxs)("p",{className:"text-sm text-gray-500",children:["Showing ",(eh.page-1)*eh.limit+1," to ",Math.min(eh.page*eh.limit,eh.total)," of ",eh.total," menus"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(_.Z,{variant:"outline",size:"sm",onClick:function(){return ef(eh.page-1)},disabled:1===eh.page,children:"Previous"}),(0,d.jsx)(_.Z,{variant:"outline",size:"sm",onClick:function(){return ef(eh.page+1)},disabled:eh.page===eh.pages,children:"Next"})]})]})]})]}),B&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:(0,d.jsxs)("div",{className:"flex min-h-full items-center justify-center p-4",children:[(0,d.jsx)("div",{className:"fixed inset-0 bg-black/50",onClick:function(){return V(!1)}}),(0,d.jsxs)("div",{className:"relative bg-white rounded-xl shadow-xl w-full max-w-lg max-h-[90vh] overflow-y-auto",children:[(0,d.jsxs)("div",{className:"sticky top-0 bg-white flex items-center justify-between p-6 border-b border-gray-200",children:[(0,d.jsx)("h2",{className:"text-xl font-bold text-gray-900",children:X?"Edit Menu":"Create Menu"}),(0,d.jsx)("button",{onClick:function(){return V(!1)},className:"p-2 text-gray-400 hover:text-gray-600",children:(0,d.jsx)(N.Z,{className:"w-5 h-5"})})]}),(0,d.jsxs)("form",{onSubmit:eN,className:"p-6 space-y-4",children:[ee&&(0,d.jsx)("div",{className:"p-4 bg-red-50 border border-red-200 text-red-600 rounded-lg text-sm",children:ee}),(0,d.jsx)(w.Z,{label:"Menu Name",name:"name",value:ep.name,onChange:e_,placeholder:"e.g., About Us",required:!0}),(0,d.jsx)(w.Z,{label:"URL",name:"url",value:ep.url,onChange:e_,placeholder:"e.g., /about or #about or https://...",required:!0}),(0,d.jsx)(Z.Z,{label:"Link to Product Category (optional)",name:"category_id",value:ep.category_id,onChange:e_,options:[{value:"",label:"None"}].concat((0,c._)(H.map(function(e){return{value:e.id.toString(),label:e.name}})))}),(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,d.jsx)(Z.Z,{label:"Type",name:"type",value:ep.type,onCh
36ange:e_,options:[{value:"primary",label:"Primary Menu"},{value:"sub",label:"Sub Menu"}]}),(0,d.jsx)(Z.Z,{label:"Parent Menu",name:"parent_id",value:ep.parent_id,onChange:e_,disabled:"primary"===ep.type,options:[{value:"",label:"None"}].concat((0,c._)(q.filter(function(e){return!X||e.id!==X.id}).map(function(e){return{value:e.id.toString(),label:e.name}})))})]}),(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,d.jsx)(Z.Z,{label:"Open In",name:"target",value:ep.target,onChange:e_,options:[{value:"_self",label:"Same Window"},{value:"_blank",label:"New Tab"}]}),(0,d.jsx)(w.Z,{label:"Sort Order",name:"sort_order",type:"number",value:ep.sort_order,onChange:e_,min:0})]}),(0,d.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 space-y-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("input",{type:"checkbox",id:"is_highlighted",name:"is_highlighted",checked:ep.is_highlighted,onChange:e_,className:"w-4 h-4 text-primary-600 border-gray-300 rounded focus:ring-primary-500"}),(0,d.jsx)("label",{htmlFor:"is_highlighted",className:"text-sm font-medium text-gray-700",children:"Highlight this menu item (CTA style)"})]}),ep.is_highlighted&&(0,d.jsx)(Z.Z,{label:"Highlight Style",name:"highlight_style",value:ep.highlight_style,onChange:e_,options:M})]}),(0,d.jsx)(w.Z,{label:"Icon (optional)",name:"icon",value:ep.icon,onChange:e_,placeholder:"e.g., home, settings, star"}),(0,d.jsx)(Z.Z,{label:"Status",name:"status",value:ep.status,onChange:e_,options:[{value:"active",label:"Active"},{value:"inactive",label:"Inactive"}]}),(0,d.jsxs)("div",{className:"flex justify-end gap-3 pt-4 border-t border-gray-200",children:[(0,d.jsx)(_.Z,{type:"button",variant:"outline",onClick:function(){return V(!1)},children:"Cancel"}),(0,d.jsx)(_.Z,{type:"submit",isLoading:Q,children:X?"Update Menu":"Create Menu"})]})]})]})]})})]})})}}},function(e){e.O(0,[1664,8173,7045,9774,2888,179],function(){return e(e.s=19493)}),_N_E=e.O()}]);
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.