PageSourceSearch

https://premiuminrupees.com/_next/static/chunks/pages/admin/menue-25c11dce39969945.js

js premiuminrupees.com collected 2026-10-08 11:49:22 UTC 20,101 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4346],{48922:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/menue",function(){return a(94318)}])},56688:function(e,l,a){"use strict";var d=a(85893);a(67294);var n=a(72153),t=a(15173);l.Z=e=>{let{className:l,handleChange:a,menuItemArray:i,value:s,handleClick:o,selectFieldRootCls:u,btn:r,needId:c,needtitle:m,name:v,disabled:x}=e;return(0,d.jsxs)("div",{className:"group flex gap-2 ".concat(l),children:[(0,d.jsx)(n.Z,{name:v,needId:c,needtitle:m,selectFieldRootCls:"w-40 border border-solid border-[#0000003b] rounded-[4px] ".concat(u),handleChange:e=>a?a(e):null,menuItemArray:i,value:s,disabled:!!x&&x}),r?null:(0,d.jsx)(t.Z,{buttonCls:"",buttonTxt:"Apply",handleClick:()=>o?o():null,disabled:!!x&&x})]})}},15173:function(e,l,a){"use strict";var d=a(85893),n=a(69417);a(67294),l.Z=e=>{let{handleClick:l,buttonTxt:a,buttonCls:t,disabled:i}=e;return(0,d.jsx)(n.Z,{variant:"outlined",className:"px-4 !py-0.5 normal-case ".concat(t),onClick:()=>l(),disabled:!!i&&i,children:a})}},9853:function(e,l,a){"use strict";var d=a(85893),n=a(67294);l.Z=e=>{let{variant:l,name:a,icon:t,handleClick:i,pinkPawsButtonExtraCls:s,style:o,disabled:u,title:r}
1=e,[c,m]=(0,n.useState)("solid");return(0,n.useEffect)(()=>{l&&m(l)},[c]),(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{title:r,style:o,className:"".concat(s," pinkPawsButtonCls boxShadow_1 cursor-pointer w-fit ").concat(u?"disablePinkPawsButton":"solid"==c?"solidButton":"outlined"==c&&"outlineButton"),onClick:()=>u?console.log(r):i?i():null,children:[t,a&&(0,d.jsx)("span",{children:a})]})})}},75107:function(e,l,a){"use strict";var d=a(85893),n=a(96664),t=a(5616);a(67294);var i=a(73772);let s={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",border:"0px solid #000",boxShadow:24};l.Z=e=>{let{modalStat:l,handleClose:a,children:o,heading:u,cw:r,widthClss:c}=e;return(0,d.jsx)("div",{children:(0,d.jsx)(n.Z,{open:l,onClose:()=>a(),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,d.jsx)(t.Z,{sx:s,children:(0,d.jsxs)("div",{className:" ".concat(r||"lg:w-[60vw] w-[90vw]"," bg-white flex flex-col relative overflow-auto max-h-[80vh] h-fit"),children:[(0,d.jsxs)("div",{className:"sticky top-0 z-50",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 text-black bg-white shadow-md",children:[(0,d.jsx)("p",{className:"text-xl font-medium",children:u}),(0,d.jsx)("div",{onClick:()=>a(),className:"cursor-pointer",children:(0,d.jsx)(i.Z,{})})]}),(0,d.jsx)("hr",{})]}),(0,d.jsx)("div",{children:o})]})})})})}},72153:function(e,l,a){"use strict";var d=a(85893),n=a(45684),t=a(55819);a(67294),l.Z=e=>{let{handleChange:l,value:a,menuItemArray:i,lable:s,selectFieldRootCls:o,name:u,lableCls:r,checkedIds:c,needId:m,needtitle:v,placeholder:x,disabled:h,selectFieldCls:f}=e;console.log(i,c,"checkedIds_menuItemArray");let p=e=>{let l=!1;return(null==c?void 0:c.length)&&(l=null==c?void 0:c.filter(l=>+(null==l?void 0:l.att_id)===e).map(l=>+(null==l?void 0:l.att_id)===e&&+(null==l?void 0:l.att_id))),l[0]};return console.log(a,"____value"),console.log(p([{id:2}]),"disabledTag"),(0,d.jsxs)("div",{className:"".concat(o),children:[(0,d.jsx)("label",{className:"".concat(r),children:s}),(0,d.jsxs)(n.Z,{value:a||"pl",onChange:e=>l(e),fullWidth:!0,className:"".concat(f," !text-sm !px-4 !py-1.5 selectFieldCls"),name:u,placeholder:"aisgdik",disabled:!!h&&h,children:[x?(0,d.jsx)(t.Z,{value:"pl",disabled:!0,children:x}):null,(null==i?void 0:i.length)?i.map((e,l)=>(0,d.jsx)(t.Z,{className:"bg-white hover:bg-white",disabled:p(+(null==e?void 0:e.id)),value:m?null==e?void 0:e.id:(null==e?void 0:e.value)?null==e?void 0:e.value:null==e?void 0:e.name,children:v?null==e?void 0:e.title:null==e?void 0:e.name},l)):null]})]})}},21445:function(e,l,a){"use strict";var d=a(85893);a(67294),l.Z=e=>{let{heading:l,children:a,headingClassName:n,childrenClassName:t,className:i}=e;return(0,d.jsxs)("div",{className:"border border-solid bg-white border-gray-400 ".concat(i),children:[(0,d.jsx)("div",{className:"".concat(n," px-3 py-2 bg-gray-300"),children:l}),(0,d.jsx)("hr",{className:"border-gray-400"}),a&&(0,d.jsx)("div",{className:"".concat(t," p-3"),children:a})]})}},19298:function(e,l,a){"use strict";var d=a(85893),n=a(33841),t=a(56815);a(67294),l.Z=e=>{let{label:l,className:a,style:i,name:s,id:o,value:u,handelState:r,blur:c,placeholder:m,helperText:v,onKeyDown:x,disabled:h,type:f,textFieldRoot:p,autoFocus:g,min:j,lableCls:y,clb:_}=e;return(0,d.jsxs)("div",{className:"flex flex-col items-start ".concat(p),children:[l&&!_?(0,d.jsx)(n.Z,{className:"text-sm font-medium text-black capitalize",children:l}):null,_&&(0,d.jsx)("label",{className:"".concat(y),children:l}),(0,d.jsx)("input",{className:"TextAreaFieldCls ".concat(a),style:i,id:o,name:s,value:u,onBlur:c,autoFocus:g,onChange:e=>r?r(e):null,placeholder:m,onKeyDown:e=>{if("number"===f){let l=e.key;/^[0-9]*$/.test(l)||"Backspace"===l||"Delete"===l||e.preventDefault()}x&&x(e)},disabled:h,type:f||"text",min:j||""}),v?(0,d.jsx)(t.Z,{className:v?"text-red-500":"",children:v}):null]})}},94318:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return w}});var d=a(85893),n=a(67294),t=a(21445),i=a(56688),s=a(69368),o=a(50657),u=a(6514),r=a(9853),c=a(9763),m=a(1692),v=a(19298),x=a(50890),h=a(75107),f=a(96463),p=a(41733),g=a(63550),j=()=>
1{let[e,l]=(0,n.useState)(""),a={name:"",code:void 0},j="border border-solid border-gray-400 rounded",[y,_]=(0,n.useState)(""),[b,w]=(0,n.useState)(""),[N,C]=(0,n.useState)([]),[k,Z]=(0,n.useState)({}),[S,E]=(0,n.useState)(!1),[D,M]=(0,n.useState)(""),[I,P]=(0,n.useState)(),[T,B]=(0,n.useState)(),[F,A]=(0,n.useState)({dropdown:!0}),[R,X]=(0,n.useState)({all:!0,options:{id:!0,name:!0}});console.log(N,"dg4d65data");let[K,O]=(0,n.useState)({code:[1]}),[G,q]=(0,n.useState)(""),[L,Q]=(0,n.useState)(""),[U,z]=(0,n.useState)({link:"",name:""}),[V,W]=(0,n.useState)(""),[$,H]=(0,n.useState)({menu_item_id:1,menu_item_type:"customMenu",menu_type:{connect:{id:1}}}),[J,Y]=(0,n.useState)(""),[ee,el]=(0,n.useState)({menu_type_id:0,menu_item_id:0}),[ea,ed]=(0,n.useState)(!1),[en,et]=(0,n.useState)(a),[ei,es]=(0,n.useState)(""),[eo,eu]=(0,n.useState)(""),{get_product_category:er}=(0,m.Z)("products_categories"),{get_all_pages:ec}=(0,m.Z)("pages"),{get_all_menu_types:em,get_menu_items:ev,custom_menu_create:ex,add_menu_item:eh,menu_item_delete:ef,add_menu_type:ep,delete_menu_type:eg,remove_menu_item:ej,update_menu_type:ey,get_custom_menu_type:e_}=(0,m.Z)("menus"),{sendData:eb}=(0,c.Xy)({selectMethod:"put",url:er,callData:F}),{sendData:ew}=(0,c.Xy)({selectMethod:"put",url:ec,callData:R});console.log(ew,"pages__");let{sendData:eN}=(0,c.Xy)({selectMethod:"get",url:em});(0,n.useEffect)(()=>{if(null==eN?void 0:eN.length){var e,l;_(null===(e=eN[0])||void 0===e?void 0:e.value);let a=null===(l=eN[0])||void 0===l?void 0:l.value.split("#");w(eN.filter(e=>{var l;return e.value==(null===(l=eN[0])||void 0===l?void 0:l.value)})[0].name),eR(+a[1]),P(+a[1]),B(+a[0])}},[null==eN?void 0:eN.length]);let{sendData:eC}=(0,c.Xy)({selectMethod:"put",url:G,callData:K});console.log(eC,N,"dffft3d523");let{sendData:ek}=(0,c.RO)({url:L,callData:U}),{sendData:eZ}=(0,c.RO)({url:V,callData:$}),[eS,eE]=(0,n.useState)(""),{sendData:eD,error:eM}=(0,c.RO)({url:eS,callData:en}),{sendData:eI}=(0,c.R2)({selectMethod:"post",url:J,callData:ee}),eP=e=>{let{dataSet:l,data:a}=e;l.push(a)};(0,n.useEffect)(()=>{if(eC&&!(0,x.Qr)(eC)&&G){console.log("menuItems, entry",N);let e=eC[String(I)]?eC[String(I)].menus:null;if(e&&e.length){let l=[];for(let a=0;a<e.length;a++){let d=e[a].id,n=e[a].menu_item_id.id,t=e[a].menu_item_type,i="pages"==e[a].menu_item_type?e[a].menu_item_id.meta_title:e[a].menu_item_id.name;"pages"==t?l.push({name:i,id:"P"+n,from:"page",menuId:d}):"productCategory"==t?l.push({name:i,id:"C"+n,from:"category",menuId:d}):"customMenu"==t&&l.push({name:i,id:"CS"+n,from:"custom",menuId:n}),console.log(l,e,d,"6s5fd6df35132")}C(l),q("")}else C([])}if(ek&&(null==ek?void 0:ek.id)&&(null==k?void 0:k.name)&&(null==k?void 0:k.url)&&(C([...N,{name:null==ek?void 0:ek.name,url:null==ek?void 0:ek.link,id:"CS"+(null==ek?void 0:ek.id),from:"custom"}]),H({menu_item_id:+(null==ek?void 0:ek.id),menu_item_type:"customMenu",menu_type:{connect:{id:T}}}),W(eh),Q("")),eZ&&(null==eZ?void 0:eZ.id)&&W(""),eD&&(null==eD?void 0:eD.id)&&!eM)eE(""),eG(),eP({dataSet:eN,data:{name:null==eD?void 0:eD.name,value:"".concat(null==eD?void 0:eD.id,"#").concat(null==eD?void 0:eD.code)}}),(0,g.KG)("New menu type created");else if(eM){var e,l,a,d,n,t,i,s,o,u,r;eE(""),console.log("setMenuTypeUrl",eM),eM&&(null==eM?void 0:eM.response)&&(null==eM?void 0:null===(e=eM.response)||void 0===e?void 0:e.data)&&(null==eM?void 0:null===(a=eM.response)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.massage)&&((null==eM?void 0:null===(n=eM.response)||void 0===n?void 0:null===(d=n.data)||void 0===d?void 0:d.code)===2&&es(null==eM?void 0:null===(i=eM.response)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.massage),(null==eM?void 0:null===(o=eM.response)||void 0===o?void 0:null===(s=o.data)||void 0===s?void 0:s.code)===1&&eu(null==eM?void 0:null===(r=eM.response)||void 0===r?void 0:null===(u=r.data)||void 0===u?void 0:u.massage)),eM=null}},[eC,ek,eZ,eD,eM]),(0,n.useEffect)(()=>{eI&&Y("")},[eI]);let eT=async()=>{try{await (0,f.SQ)(ev,K)}catch(e){console.log(e)}},eB=async(e,l)=>{if(console.log(e,l,"35f5g6h56gf"),!0===l){C([...N,{name:null==e?void 0:e.name,id:"P"+(null==e?void 0:e.id),from:"page"}]),H({menu_item_id:+(null==e?void 0:e.id),menu_item_type:"pages",menu_type:{connect:{id:T}}});let l={menu_item_id:+(null==e?void 0:e.id),menu_item_type:"pages",menu_type:{connect:{id:T}}},t=await (0,f.d8)(eh,l);if(null==t?void 0:t.status){var a,d,n;console.log(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.data,N,"d5f4g56fd1"),C([...N,{name:null==e?void 0:e.name,id:"P"+(null==e?void 0:e.id),from:"page",menuId:null==t?void 0:null===(n=t.data)||void 0===n?void 0:null===(d=n.data)||void 0===d?void 0:d.id}]),eT()}}else C(N.filter(l=>(null==l?void 0:l.id)!=="P"+(null==e?void 0:e.id))),Y(ef),el({menu_type_id:T,menu_item_id:+(null==e?void 0:e.id),menu_item_type:"pages"})},eF=async(e,l)=>{if(!0===l){C([...N,{name:null==e?void 0:e.name,id:"C"+(null==e?void 0:e.id),from:"category"}]),H({menu_item_id:+(null==e?void 0:e.id),menu_item_type:"productCategory",menu_type:{connect:{id:T}}});let l={menu_item_id:+(null==e?void 0:e.id),menu_item_type:"productCategory",menu_type:{connect:{id:T}}},t=await (0,f.d8)(eh,l);if(null==t?void 0:t.status){var a,d,n;console.log(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.data,N,"d5f4g56fd1"),C([...N,{name:null==e?void 0:e.name,id:"C"+(null==e?void 0:e.id),from:"category",menuId:null==t?void 0:null===(n=t.data)||void 0===n?void 0:null===(d=n.data)||void 0===d?void 0:d.id}]),eT()}}else C(N.filter(l=>(null==l?void 0:l.id)!=="C"+(null==e?void 0:e.id))),Y(ef),el({menu_type_id:T,menu_item_id:+(null==e?void 0:e.id),menu_item_type:"productCategory"})},eA=()=>{_(""),w(""),eR(),P(void 0),B(void 0)},eR=e=>{q(ev),O(l=>({...l,code:[e||I]}))},eX=(e,l)=>N.filter(a=>(null==a?void 0:a.id)==l+(null==e?void 0:e.id)).length,eK=()=>{Q(ex),z({link:null==k?void 0:k.url,name:null==k?void 0:k.name})},eO=async()=>{try{let l={id:D,link:null==k?void 0:k.url,name:null==k?void 0:k.name},a=await (0,f.d8)(ey,l);
1if(a&&(null==a?void 0:a.status)){var e;(0,g.KG)((null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.massage)||"Custom item updated successfully."),Z(e=>({...e,url:"",name:""})),E(!1),q(ev)}}catch(e){console.error("Errormenu",e)}},eG=()=>{ed(!ea),et(a)},eq=e=>{let l=e.target.name,a="code"==l?e.target.value&&+e.target.value:e.target.value;et(e=>({...e,[l]:a})),"code"!==l?eu(""):es("")};(0,n.useEffect)(()=>{Z({})},[N]);let eL=e=>{let{dynArr:l}=e;return(0,d.jsx)("div",{className:"flex flex-col",children:l&&(null==l?void 0:l.length)?null==l?void 0:l.map((e,l)=>(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[(0,d.jsx)(s.Z,{className:"p-0",checked:eX(e,"C"),disabled:!y,onClick:l=>eF(e,l.target.checked)}),(0,d.jsx)("div",{className:"",children:null==e?void 0:e.name})]}),(0,d.jsx)("div",{className:"pl-4",children:(0,d.jsx)(eL,{dynArr:null==e?void 0:e.sub_categories})})]},l)):null})},eQ=e=>{let l=e.id;l=l.replace("CS",""),C(N.filter(l=>(null==l?void 0:l.id)!==e.id)),Y(ef),el({menu_type_id:T,menu_item_id:+l,menu_item_type:"customMenu"})},eU=async e=>{try{var l;let a=await (0,f.SQ)(e_,{id:+(null==e?void 0:e.menuId)});console.log(e,null==a?void 0:a.data,"updateCustomMenu21");let{link:d,name:n}=(null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.data)||{};Z(e=>({...e,url:d||"",name:n||""})),E(!0),M(null==e?void 0:e.menuId)}catch(e){console.log(e),E(!1)}},ez=async e=>{try{let s=await (0,f.d8)(ej,{menu_id:+(null==e?void 0:e.menuId)});if((null==s?void 0:s.status)&&(null==s?void 0:s.data)){var l,a,d,n,t,i;console.log(s,null==s?void 0:s.data,"5df6gf3"),(0,g.KG)("Menu type deleted successfully!");let o=N.filter(l=>(null==l?void 0:l.menuId)!==e.menuId);C(o),el({menu_type_id:null==s?void 0:null===(a=s.data)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.menu_item_id,menu_item_id:+(null==s?void 0:null===(n=s.data)||void 0===n?void 0:null===(d=n.data)||void 0===d?void 0:d.id),menu_item_type:null==s?void 0:null===(i=s.data)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.menu_item_type})}}catch(e){console.error(e,"s56d4tg65sf1")}},eV=async e=>{console.log("id",e);try{let{data:e}=await (0,f.d8)(eg,{id:T});(null==e?void 0:e.success)&&(null==e?void 0:e.data)&&(l(""),(0,g.KG)("Menu type deleted successfully!"),eA())}catch(e){console.error(e)}};return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)("div",{className:"w-full flex items-center gap-1 p-4 border border-solid border-gray-300 bg-white shadow-md",children:[(0,d.jsx)("span",{children:"Select a menu to edit:"}),(0,d.jsx)(i.Z,{selectFieldRootCls:"w-80",handleChange:e=>{console.log(e.target),_(e.target.value);let l=e.target.value.split("#");w(eN.filter(l=>l.value==e.target.value)[0].name),eR(+l[1]),P(+l[1]),B(+l[0])},menuItemArray:eN,value:y,btn:!0}),(0,d.jsx)("div",{className:"flex flex-1 justify-end",children:(0,d.jsx)(r.Z,{variant:"solid",name:"Create Menu Types",icon:"",handleClick:eG,pinkPawsButtonExtraCls:"",style:{},disabled:!1,title:""})})]}),(0,d.jsxs)("div",{className:"flex w-full gap-4 ",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 tabView:w-[30%] w-2/4",children:[(0,d.jsx)(t.Z,{className:"h-fit",childrenClassName:"flex flex-col items-end justify-between",heading:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"Pages"}),(0,d.jsx)("div",{})]}),children:(0,d.jsx)("div",{className:"w-full flex flex-col gap-2 h-60 overflow-y-auto",children:ew.map((e,l)=>(console.log(ew,e,"5gf4h6fg"),(0,d.jsxs)("div",{className:"flex items-center justify-start gap-2",id:null==e?void 0:e.id,children:[(0,d.jsx)(s.Z,{className:"p-0",checked:eX(e,"P"),disabled:!y,onClick:l=>eB(e,l.target.checked)}),(0,d.jsx)("div",{className:"",children:e.name})]},l)))})}),(0,d.jsx)(t.Z,{className:"h-fit",childrenClassName:"flex flex-col items-end justify-between",heading:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"Product categories"}),(0,d.jsx)("div",{})]}),children:(0,d.jsx)("div",{className:"w-full h-60 overflow-y-auto",children:(0,d.jsx)(eL,{dynArr:eb})})}),(0,d.jsx)(t.Z,{className:"h-fit",childrenClassName:"flex flex-col items-end justify-between",heading:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"Custom Links"}),(0,d.jsx)("div",{})]}),children:(0,d.jsxs)("div",{className:"w-full flex flex-col items-end gap-2",children:[(0,d.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,d.jsx)(v.Z,{name:"url",label:"URL",placeholder:"https://",className:"w-full py-2 px-4 border border-solid border-slate-600",value:k.url||"",handelState:e=>Z(l=>({...l,url:e.target.value})),disabled:!y}),(0,d.jsx)(v.Z,{name:"linktext",label:"Link text",placeholder:"Enter link Text",className:"w-full py-2 px-4 border border-solid border-slate-600",value:k.name||"",handelState:e=>Z(l=>({...l,name:e.target.value})),disabled:!y})]}),(0,d.jsx)(r.Z,{name:"".concat(S?"Update menu":"Add to menu"),pinkPawsButtonExtraCls:"mt-2",handleClick:()=>{S?eO():eK()}})]})})]}),(0,d.jsx)(t.Z,{className:"tabView:w-[70%] w-2/4",childrenClassName:"flex justify-between",heading:(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:"flex items-center justify-between cursor-pointer",children:[(0,d.jsxs)("span",{children:["Menu Name: ",b]}),(0,d.jsx)("div",{className:"cursor-pointer",children:y?(0,d.jsx)(p.Z,{className:"w-6 h-6 text-red-500 cursor-pointer",onClick:()=>{l(1)}}):null})]})}),children:(0,d.jsx)("div",{id:"right",className:"w-full flex flex-col gap-4  max-h-full min-h-96",children:(null==N?void 0:N.length)?N.map((e,l)=>(0,d.jsxs)("div",{className:"flex items-center justify-between w-full bg-slate-300 rounded p-2",id:null==e?void 0:e.id,children:[(0,d.jsxs)("div",{className:"w-full",children:[null==e?void 0:e.name,"custom"==e.from?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"cursor-pointer text-red-500 ml-2",onClick:()=>eQ(e),children:"[Remove]"}),(0,d.jsx)("span",{className:"cursor-pointer text-blue-800 ml-2",onClick:()=>eU(e),children:"[Edit]"})]}):(0,d.jsx)("span",{className:"cursor-pointer text-red-500 ml-2",onClick:()=>ez(e),children:"[Remove]"})]}),(0,d.jsx)("div",{className:"text-sm",children:null==e?void 0:e.from})]},l)):null})})]}),(0,d.jsx)(h.Z,{widthClss:"w-[90%] sm:w-[60%] md:w-[40%] lg:w-[15vw]",modalStat:ea,handleClose:eG,heading:"Add New Menu Type",children:(0,d.jsxs)("div",{className:"flex flex-col gap-6 p-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-4 roun
1ded-md bg-white shadow-sm border border-gray-200 p-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)("label",{className:"font-semibold text-sm text-gray-700",children:"Name"}),(0,d.jsx)(v.Z,{className:"w-full p-2 border ".concat(j," rounded-md focus:outline-none focus:ring-2 focus:ring-primary"),placeholder:"Enter Menu Type Name",name:"name",handelState:eq,value:null==en?void 0:en.name,helperText:eo})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)("label",{className:"font-semibold text-sm text-gray-700",children:"Code"}),(0,d.jsx)(v.Z,{type:"number",className:"w-full p-2 border ".concat(j," rounded-md focus:outline-none focus:ring-2 focus:ring-primary"),placeholder:"Enter Menu Code",name:"code",handelState:eq,value:null==en?void 0:en.code,helperText:ei})]})]}),(0,d.jsx)("div",{className:"flex justify-end",children:(0,d.jsx)(r.Z,{variant:"solid",name:"Add New Menu Type",icon:"",handleClick:()=>{let e=!0;""===en.name&&(eu("This field is required!"),e=!1),void 0===en.code&&(es("This field is required!"),e=!1),e&&eE(ep)},pinkPawsButtonExtraCls:"rounded-md px-6 py-2 bg-blue-500 text-white hover:bg-blue-600 transition-all",style:{},disabled:!1,title:""})})]})}),(0,d.jsx)(o.Z,{open:""!==e,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:(0,d.jsx)(u.Z,{className:"w-80 h-40 p-4",children:(0,d.jsxs)("div",{className:"bg-white flex flex-col justify-between h-full",children:[(0,d.jsx)("p",{className:"flex flex-col items-center justify-center",children:(0,d.jsx)("span",{children:"Do you want to delete this recode?"})}),(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsx)(r.Z,{name:"Confirm",pinkPawsButtonExtraCls:"w-full",handleClick:()=>{eV(e)}}),(0,d.jsx)(r.Z,{variant:"outlined",name:"Cancel",pinkPawsButtonExtraCls:"w-full",handleClick:()=>{l("")}})]})]})})})]})},y=a(99737),_=a(45007),b=a(92763),w=(0,y.Z)(()=>((0,_.I0)()((0,b.qy)({key:"menu"})),(0,d.jsx)("div",{children:(0,d.jsx)(j,{})})))}},function(e){e.O(0,[7910,7013,2888,9774,179],function(){return e(e.s=48922)}),_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.