PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/admin/product-7307385dd5631e8c.js

js samugiken.com collected 2026-10-07 01:50:49 UTC 21,463 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3630,9810],{32238:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/product",function(){return n(16269)}])},4180:function(e,t){"use strict";t.Z={src:"/_next/static/media/samu-giken.1bf2ec60.webp",height:549,width:1920,blurDataURL:"data:image/webp;base64,UklGRmQAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAGjk6MjtENBAZNi4qQzcvCgBWUDggLAAAAJABAJ0BKggAAgACQDgloAJ0ugADmAD+6ez/dAAp+z/+0s/+pZ/9Sz/NAAAA",blurWidth:8,blurHeight:2}},39577:function(e,t,n){"use strict";var r=n(52676),i=n(98807),s=n(78051),l=n(92966),a=n(63309);t.Z=e=>{let{children:t,className:n,...o}=e;return(0,r.jsx)(i.Z,{trigger:["click"],rootClassName:(0,a.cn)("!min-w-[100px]",n),...o,children:t||(0,r.jsx)(s.ZP,{className:"!px-2",children:(0,r.jsx)(l.Z,{})})})}},98131:function(e,t,n){"use strict";var r=n(52676),i=n(79406),s=n(78051);t.Z=e=>{let{visible:t,onOk:n,onCancel:l,title:a,content:o,danger:c=!1,okButtonText:d,cancelButtonText:u,loading:h,disabled:p}=e;return(0,r.jsxs)(i.Z,{open:t,title:a,footer:null,closeIcon:null,centered:!0,onCancel:()=>{p||null==l||l()},children:[o,(0,r.jsxs)("div",{className:"flex gap-5 mt-5",children:[(0,r.jsx)(s.ZP,{size:"large",onClick:l,block:!0,disabled:p,children:u||"Cancel"}),(0,r.jsx)(s.ZP,{size:"large",type:"primary",danger:c,onClick:n,block:!0,loading:h,disabled:p,children:d||"Ok"})]})]})}},49810:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(52676),i=n(75271),s=n(46035),l=n(33022),a=n(40150),o=n(28994),c=n(85304),d=n(4180),u=n(16624),h=n(27026),p=n.n(h),x=n(78051),m=n(98807),f=n(15036),g=n(32623),v=n.n(g);let A=e=>{let{isMobile:t,isDrawerOpen:n,setIsDrawerOpen:i,collapsed:s,setCollapsed:l,fullName:a}=e,{logout:o}=(0,c.a)();return(0,r.jsxs)("div",{style:{borderBottom:"1px solid #e8e8e8",position:"fixed",width:"100%",zIndex:100},className:"flex items-center justify-between h-16 px-6 bg-white",children:[(0,r.jsxs)("div",{className:"flex items-center h-full gap-2",children:[(0,r.jsx)(x.ZP,{onClick:()=>{t?i(!n):l(!s)},"aria-controls":"sidebar",className:"flex items-center justify-center w-8 px-1 py-0",icon:(0,r.jsx)("svg",{className:"w-5 h-5 text-gray-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}),!t&&(0,r.jsx)(p(),{href:"/",className:"h-full",children:(0,r.jsx)(v(),{src:d.Z,alt:"Samugiken",className:"w-[100%] h-[60px]"})})]}),(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)("div",{className:"flex items-center justify-center col-row",children:(0,r.jsx)(m.Z,{arrow:!0,placement:"bottomRight",overlayClassName:"shadow-[rgba(0,0,0,0.35)_0_5px_15px] rounded-xl top-10",trigger:["click"],dropdownRender:()=>(0,r.jsxs)("div",{className:"flex flex-col p-3 bg-white rounded-md shadow-md gap-y-1",children:[(0,r.jsx)(p(),{href:"/my-profile",className:"font-medium leading-[normal] text-primary hover:text-primary",children:(0,r.jsx)("div",{className:"cursor-pointer rounded-[4px]  p-3 duration-100 hover:bg-primary/10",children:"My Profile"})}),(0,r.jsx)(f.Z,{className:"!my-2"}),(0,r.jsx)(x.ZP,{type:"primary",danger:!0,onClick:o,children:"Logout"})]}),children:(0,r.jsxs)("div",{className:"flex items-center cursor-pointer gap-x-3",children:[(0,r.jsx)("div",{className:"flex items-center gap-2 ml-2",children:(0,r.jsx)("span",{className:"font-semibold",children:a})}),(0,r.jsx)(u.ZP,{name:a,round:!0,maxInitials:1,size:"35",textSizeRatio:2,fgColor:"white",color:"black"})]})})})})]})};var E=n(73640),y=n(62581),N=n(26134),j=n(1952),Z=n(7144),R=n(42439),C=n(88483),w=n(42720),b=n(43146),I=n(57221),S=n(84176),O=n(54216),P=n(12285),D=n(20188),k=n(19254);let T=e=>{var t,n,s,l,a,o,d,u,h,x,m;let{activeMenu:f,activeDropdown:g}=e,[v,A]=(0,i.useState)(f),{user:T}=(0,c.a)(),_=null==T?void 0:T.role.accessRights,U=e=>{A([e])},L=[{key:"dashboard",label:(0,r.jsx)(p(),{href:y.Z.ADMIN_DASHBOARD,children:"Dashboard"}),icon:(0,r.jsx)(j.Z,{width:16,height:16}),onClick:()=>U("dashboard")},...(0,N.f)(null==_?void 0:null===(t=_.PRODUCT)||void 0===t?void 0:t.READ,[{key:"product",label:(0,r.jsx)(p(),{href:y.Z.PRODUCT,children:"Product"}),icon:(0,r.jsx)(Z.Z,{width:16,height:16}),onClick:()=>U("product")}]),...(0,N.f)(null==_?void 0:null===(n=_.REVIEW)||void 0===n?void 0:n.READ,[{key:"review",label:(0,r.jsx)(p(),{href:y.Z.REVIEW,children:"Reviews"}),icon:(0,r.jsx)(R.Z,{width:16,height:16}),onClick:()=>U("review")}]),...(0,N.f)(null==_?void 0:null===(s=_.WARRANTY)||void 0===s?void 0:s.READ,[{key:"warranty",label:"Warranty",icon:(0,r.jsx)(k.Z,{width:16,height:16}),children:[{key:"warranty-register",label:(0,r.jsx)(p(),{href:y.Z.WARRANTY_REGISTER,children:"Warranty Register"}),onClick:()=>U("warranty-register")},{key:"warranty-claim",label:(0,r.jsx)(p(),{href:y.Z.WARRANTY_CLAIM,children:"Warranty Claim"}),onClick:()=>U("warranty-claim")}]}]),...(0,N.f)(null==_?void 0:null===(l=_.COUPON)||void 0===l?void 0:l.READ,[{key:"c
1oupon",label:(0,r.jsx)(p(),{href:y.Z.COUPON,children:"Coupon"}),icon:(0,r.jsx)(C.Z,{width:16,height:16}),onClick:()=>U("coupon")}]),...(0,N.f)(null==_?void 0:null===(a=_.ORDER)||void 0===a?void 0:a.READ,[{key:"order",label:(0,r.jsx)(p(),{href:y.Z.ORDER,children:"Orders"}),icon:(0,r.jsx)(k.Z,{width:16,height:16}),onClick:()=>U("order")},{key:"abandonment",label:(0,r.jsx)(p(),{href:y.Z.ABANDONMENT,children:"Abandonment"}),icon:(0,r.jsx)(w.Z,{width:16,height:16}),onClick:()=>U("abandonment")}]),...(0,N.f)(null==_?void 0:null===(o=_.BLOG)||void 0===o?void 0:o.READ,[{key:"blog",label:(0,r.jsx)(p(),{href:y.Z.BLOG,children:"Blog"}),icon:(0,r.jsx)(b.Z,{width:16,height:16}),onClick:()=>U("blog")}]),...(0,N.f)(null==_?void 0:null===(d=_.OUR_PARTNERS)||void 0===d?void 0:d.READ,[{key:"our-partners",label:(0,r.jsx)(p(),{href:y.Z.OUR_PARTNERS,children:"Our Partners"}),icon:(0,r.jsx)(I.Z,{width:16,height:16}),onClick:()=>U("our-partners")}]),...(0,N.f)(null==_?void 0:null===(u=_.CONTENT_MANAGEMENT)||void 0===u?void 0:u.READ,[{key:"content",label:"Content Management",icon:(0,r.jsx)(S.Z,{width:16,height:16}),children:[{key:"content-banners",label:(0,r.jsx)(p(),{href:y.Z.CONTENT_BANNER,children:"Banners"}),onClick:()=>U("content-banners")},{key:"content-reviews",label:(0,r.jsx)(p(),{href:y.Z.CONTENT_REVIEW,children:"Customer Reviews"}),onClick:()=>U("content-reviews")},{key:"content-videos",label:(0,r.jsx)(p(),{href:y.Z.CONTENT_VIDEO,children:"Product Videos"}),onClick:()=>U("content-videos")},{key:"content-popups",label:(0,r.jsx)(p(),{href:y.Z.CONTENT_POPUP,children:"Popups"}),onClick:()=>U("content-popups")}]}]),...(0,N.f)(null==_?void 0:null===(h=_.USER)||void 0===h?void 0:h.READ,[{key:"user",label:(0,r.jsx)(p(),{href:y.Z.USER,children:"User"}),icon:(0,r.jsx)(O.Z,{width:16,height:16}),onClick:()=>U("user")}]),...(0,N.f)(null==_?void 0:null===(x=_.ROLE)||void 0===x?void 0:x.READ,[{key:"role",label:(0,r.jsx)(p(),{href:y.Z.ROLE,children:"Role"}),icon:(0,r.jsx)(P.Z,{width:16,height:16}),onClick:()=>U("role")}]),...(0,N.f)(null==_?void 0:null===(m=_["SYSTEM_CONFIG/CATEGORY"])||void 0===m?void 0:m.READ,[{key:"system-config",label:(0,r.jsx)(p(),{href:y.Z.SYSTEM_CONFIG,children:"System Config"}),icon:(0,r.jsx)(D.Z,{width:16,height:16}),onClick:()=>U("category")}])];return(0,r.jsx)(E.Z,{theme:"light",mode:"inline",defaultOpenKeys:g||[],defaultSelectedKeys:v,items:L,className:"h-full font-medium"})};var _=n(63309);let{Sider:U,Content:L}=l.default;var B=e=>{let{children:t,user:n,activeMenu:u=[],activeDropdown:h=[],seoConfig:p,withPadding:x=!0,card:m=!0,contentClassName:f}=e,g=(0,o.ac)("(max-width: 768px)"),[E,y]=(0,i.useState)(!1),[N,j]=(0,i.useState)(!1);return(0,r.jsx)(c.H,{user:n,children:(0,r.jsxs)(l.default,{className:"!min-h-screen",children:[(0,r.jsx)(s.PB,{...p}),(0,r.jsx)(A,{isMobile:g,isDrawerOpen:N,setIsDrawerOpen:j,collapsed:E,setCollapsed:y,fullName:(null==n?void 0:n.firstName)+" "+(null==n?void 0:n.lastName)||""}),(0,r.jsx)("div",{className:"mt-[64px]"}),(0,r.jsxs)(l.default,{hasSider:!0,style:{minHeight:"100%"},children:[g?(0,r.jsx)(a.Z,{placement:"left",open:N,onClose:()=>j(!1),width:"250px",styles:{body:{padding:0}},closable:!1,children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("div",{className:"py-2",children:(0,r.jsx)(v(),{src:d.Z,alt:"Samugiken",className:"w-[100%] h-[70px]"})}),(0,r.jsx)(T,{activeMenu:u,activeDropdown:h})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:E?"duration-200 ml-[80px]":"duration-200 ml-[250px]"}),(0,r.jsx)(U,{trigger:null,collapsible:!0,collapsed:E,theme:"light",width:250,className:"hide-scrollbar",style:{overflow:"scroll",position:"fixed",marginTop:"64px",left:0,top:0,bottom:0,zIndex:100},children:(0,r.jsx)(T,{activeMenu:u,activeDropdown:h})})]}),(0,r.jsx)(L,{className:(0,_.cn)("min-h-full",x&&"px-3 py-5 md:p-9"),children:(0,r.jsx)("div",{className:(0,_.cn)(m&&"rounded-lg bg-white p-8 shadow-sm",f),children:t})})]})]})})}},5409:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r=n(15989),i=n(39771),s=n(91340);let l=r.Z.create({baseURL:i.T5+"/api",headers:{"Content-Type":"application/json"},withCredentials:!0});l.interceptors.request.use(e=>{if((0,s.rD)()){let t=(0,s.Zd)();t&&(e.headers=e.headers||{},e.headers["x-session-id"]=t)}else e.headers&&e.headers["x-session-id"]&&delete e.headers["x-session-id"];return e});let a=r.Z.create({baseURL:i.T5+"/api",headers:{"Content-Type":"multipart/form-data"},maxContentLength:1/0,maxBodyLength:1/0,withCredentials:!0});t.Z=l},95809:function(e,t,n){"use strict";var r=n(75271);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,n]=(0,r.useState)(e);return{visible:t,open:()=>{n(!0)},close:()=>{n(!1)},toggle:()=>{n(e=>!e)}}}},56346:function(e,t,n){"use strict";var r=n(75271),i=n(94170);t.Z=e=>{let[t,n]=(0,r.useState)({page:1,pageSize:10,total:0,sortOrder:i.As.DESC,sortField:"createdAt",...e});return[t,n,(e,t,r)=>{n(t=>{var n;return{...t,page:e.current||1,pageSize:e.pageSize||10,sortField:null!==(n=null==r?void 0:r.field)&&void 0!==n?n:null==t?void 0:t.sortField,sortOrder:"ascend"==r.order?i.As.ASC:r.order?i.As.DESC:t.sortOrder}})}]}},85304:function(e,t,n){"use strict";n.d(t,{H:function(){return p},a:function(){return x}});var r=n(52676),i=n(75271),s=n(76517),l=n(73414),a=n(71030),o=n(83214),c=n(62581),d=n(69504),u=n(91340);let h=(0,i.createContext)(null),p=e=>{let{children:t,user:n}=e,p=(0,l.useRouter)(),{mutate:x}=(0,a.D)({mutationFn:d.kS,onError:e=>s.Am.error((0,o._g)(e)),onSuccess:()=>{p.push(c.Z.LOGIN)}});return(0,i.useEffect)(()=>{n?(0,u.hv)():(0,u.wN)()},[n]),(0,r.jsx)(h.Provider,{value:{user:n,logout:x},children:t})},x=()=>{let e=(0,i.useContext)(h);if(!e)throw Error("useAuth must be used within a AuthProvider");return e}},99764:function(e,t,n){"use strict";var r,i,s,l,a,o,c,d;n.d(t,{Pt:function(){return r},kv:function(){return i},uN:function(){return l},xw:function(){return s}}),(a=r||(r={})).PUBLISHED="PUBLISHED",a.UNPUBLISHED="UNPUBLISHED",(o=i||(i={})).SIMPLE="SIMPLE",o.VARIABLE="VARIABLE",(c=s||(s={})).BEST_SELLER="BEST_SELLER",c.NEW_ARRIVAL="NEW_ARRIVAL",(d=l||(l={})).YOUTUBE="YOUTUBE",d.INSTAGRAM="INSTAGRAM",d.TIKTOK="TIKTOK"},16269:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return z},default:function(){return H}});var r=n(52676),i=n(49810),s=n(26134),l=n(21844),a=n(78051),o=n(98774),c=n(95809),d=n(87927),u=n(69834),h=n(71030),p=n(18060),x=n(79406),m=n(68734),f=n(15036),g=n(97589),v=n.n(g),A=e=>{let{form:t,onCreateProduct:n,onCancel:i,loading:s,disabled:o,categoryOptions:c}=e;return(0,r.jsxs)(p.Z,{form:t,onFinish:n,layout:"vertical",children:[(0,r.jsx)(p.Z.Item,{name:"name",label:"Name",rules:[{required:!0}],children:(0,r.jsx)(l.default,{onBlur:e=>{t.setFieldValue("slug",v()(e.target.value||"",{lower:!0}))}})}),(0,r.jsx)(p.Z.Item,{name:"slug",label:"Slug",rules:[{required:!0}],children:(0,r.jsx)(l.default,{disabled:!0})}),(0,r.jsx)(p.Z.Item,{name:"categoryIds",label:"Categories",rules:[{required:!0}],children:(0,r.jsx)(m.Z,{showSearch:!0,treeNodeFilterProp:"label",treeData:c||[],treeLine:!0,treeDefaultExpandAll:!0,multiple:!0,treeCheckable:!0,showCheckedStrategy:m.Z.SHOW_CHILD,allowClear:!0})}),(0,r.jsx)(f.Z,{}),(0,r.jsxs)("div",{className:"flex gap-5",children:[(0,r.jsx)(a.ZP,{block:!0,size:"large",htmlType:"button",onClick:i,disabled:o,children:"Cancel"}),(0,r.jsx)(a.ZP,{block:!0,size:"large",type:"primary",htmlType:"submit",loading:s,disabled:o,children:"Create"})]})]})},E=n(39936),y=n(76517),N=n(83214),j=n(72626),Z=e=>{let{open:t,onSuccess:n,onClose:i}=e,[s]=p.Z.useForm(),l=(0,u.a)({queryKey:["category","options"],queryFn:j.PA,select:e=>e.data}),a=(0,h.D)({mutationFn:E.ry,onSuccess:()=>{s.resetFields(),null==n||n(),null==i||i()}}),o=()=>{s.resetFields(),null==i||i()};return(0,r.jsx)(x.Z,{open:t,onCancel:o,footer:null,title:"Create Product",closeIcon:null,centered:!0,children:(0,r.jsx)(A,{form:s,onCreateProduct:e=>{y.Am.promise(a.mutateAsync(e),{pending:"Creating product...",success:"Product created successfully",error:{render(e){let{data:t}=e;return"Failed to create product: "+(0,N._g)(t)}}})},onCancel:o,loading:a.isPending,disabled:a.isPending,categoryOptions:l.data})})},R=n(69947),C=n(75271),w=n(73414),b=n(27026),I=n.n(b),S=n(2194),O=n(34769),P=n(1705),D=n(4475),k=n(57722),T=n(77894),_=n(39577),U=n(98131),L=n(56346),B=n(85304),F=n(99764),M=e=>{let{search:t}=e,n=(0,w.useRouter)(),{user:i}=(0,B.a)(),[l,a,o]=(0,L.Z)(),[d,p]=(0,C.useState)(null),x=(0,c.Z)(),m=(0,c.Z)(),f=(0,u.a)({queryKey:["product","pagination",l,t],queryFn:async()=>{let e=await (0,E.jw)({page:l.page,pageSize:l.pageSize,sortField:l.sortField,sortOrder:l.sortOrder,search:t});return a(t=>({...t,page:e.data.page,total:e.data.total})),e},placeholderData:D.Wk,select:e=>e.data.rows}),g=(0,h.D)({mutationFn:e=>(0,E.Lv)(e),onSuccess:()=>{m.close(),f.refetch()}}),v=(0,h.D)({mutationFn:e=>(0,E.Ir)(e),onSuccess:()=>{x.close(),f.refetch()}}),A=e=>{y.Am.promise(g.mutateAsync(e),{pending:"Updating product status...",success:"Product status updated successfully",error:{render(e){let{data:t}=e;return"Error updating user status: ".concat((0,N._g)(t))}}})},j=e=>{y.Am.promise(v.mutateAsync({id:e}),{pending:"Deleting product...",success:"Product deleted successfully",error:{render(e){let{data:t}=e;return"Error deleting product: ".concat((0,N._g)(t))}}})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.Z,{columns:[{title:"Name",dataIndex:"name",render:(e,t)=>(0,r.jsx)(I(),{href:"/admin/product/".concat(t.refId),className:"font-bold",children:e})},{title:"Categories",dataIndex:"categories",render:e=>(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map(e=>(0,r.jsx)(k.Z,{children:e.name},e.refId))})},{title:"Status",dataIndex:"status",render:e=>e===F.Pt.PUBLISHED?(0,r.jsx)(k.Z,{color:"green",children:"Published"}):e===F.Pt.UNPUBLISHED?(0,r.jsx)(k.Z,{color:"red",children:"Unpublished"}):null},{title:"Created at",dataIndex:"createdAt",render:e=>(0,N.i$)(e,"-")},{dataIndex:"refId",width:50,render:(e,t)=>(0,r.jsx)(_.Z,{menu:{items:[{key:"view",label:"View",icon:(0,r.jsx)(S.Z,{}),onClick:()=>{n.push("/admin/product/".concat(e))}},...(0,s.f)(i.role.accessRights.PRODUCT.UPDATE,[...(0,s.f)(t.status===F.Pt.PUBLISHED,[{key:"unpublish",label:"Unpublish",icon:(0,r.jsx)(O.Z,{}),onClick:()=>{p(t),m.open()}}],[{key:"publish",label:"Publish",icon:(0,r.jsx)(O.Z,{}),onClick:()=>{p(t),m.open()}}])]),{type:"divider"}
1,...(0,s.f)(i.role.accessRights.PRODUCT.DELETE,[{key:"delete",label:"Delete",danger:!0,className:"",icon:(0,r.jsx)(P.Z,{}),onClick:()=>{p(t),x.open()}}])]}})}],dataSource:f.data,onChange:o,loading:f.isFetching,rowKey:e=>e.refId,scroll:{x:1e3},pagination:{current:l.page,pageSize:l.pageSize,defaultPageSize:1,showSizeChanger:!0,pageSizeOptions:[10,25,50,100],showTotal:(e,t)=>"Pagination: ".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),total:l.total}}),(0,r.jsx)(U.Z,{visible:x.visible,title:(null==d?void 0:d.name)||"",content:"Are you sure you want to delete this product?",okButtonText:"Delete",onCancel:()=>{x.close(),p(null)},onOk:()=>{d&&j(d.refId)},danger:!0,loading:v.isPending,disabled:v.isPending}),(0,r.jsx)(U.Z,{visible:m.visible,title:(null==d?void 0:d.name)||"",content:"Are you sure you want to update the product status?",okButtonText:"Update",onCancel:()=>{m.close(),p(null)},onOk:()=>{d&&A({id:d.refId,status:d.status===F.Pt.PUBLISHED?F.Pt.UNPUBLISHED:F.Pt.PUBLISHED})},loading:g.isPending,disabled:g.isPending})]})},z=!0,H=e=>{var t;let{user:n}=e,u=(0,R.NL)(),[h,p]=(0,d.v1)("search",d.Oi.withDefault("")),{visible:x,open:m,close:f}=(0,c.Z)();return(0,r.jsxs)(i.Z,{user:n,activeMenu:["product"],children:[...(0,s.f)(null===(t=n.role.accessRights)||void 0===t?void 0:t.USER.CREATE,[(0,r.jsxs)("div",{className:"flex gap-5 justify-between mb-5",children:[(0,r.jsx)(l.default.Search,{className:"max-w-[400px]",allowClear:!0,onSearch:e=>p(e)}),(0,r.jsxs)(a.ZP,{type:"primary",onClick:m,children:[(0,r.jsx)(o.Z,{}),"New"]})]},"new-user-button")]),(0,r.jsx)(M,{search:h}),(0,r.jsx)(Z,{open:x,onClose:()=>{f()},onSuccess:()=>{u.invalidateQueries({queryKey:["product","pagination"]})}})]})}},69504:function(e,t,n){"use strict";n.d(t,{A9:function(){return c},IU:function(){return s},c0:function(){return o},kS:function(){return l},o9:function(){return a},x4:function(){return i}});var r=n(5409);let i=async e=>r.Z.post("/auth/login",e),s=async e=>r.Z.post("/auth/signup",e),l=async()=>r.Z.post("/auth/logout"),a=async e=>r.Z.post("/auth/forget-password",e),o=async e=>r.Z.post("/auth/password-reset/confirm",e),c=async e=>r.Z.post("/auth/verify-user",e)},72626:function(e,t,n){"use strict";n.d(t,{PA:function(){return i},Yc:function(){return s},lq:function(){return l},vd:function(){return a}});var r=n(5409);let i=()=>r.Z.get("admin/option/category"),s=()=>r.Z.get("option/categories/tree"),l=e=>r.Z.get("option/categories/children",{params:e?{parentId:e}:void 0}),a=(e,t)=>r.Z.get("option/products",{params:{productType:e,search:t}})},39936:function(e,t,n){"use strict";n.d(t,{Bz:function(){return i},Ir:function(){return u},Lv:function(){return d},gk:function(){return a},iT:function(){return l},jw:function(){return s},nM:function(){return c},ry:function(){return o}});var r=n(5409);let i=e=>r.Z.get("/products",{params:e}),s=e=>r.Z.get("/admin/product",{params:e}),l=e=>{let{refId:t,isPublished:n}=e;return r.Z.get("/products/".concat(t),{params:{isPublished:n}})},a=e=>r.Z.get("/admin/product/".concat(e.id)),o=e=>r.Z.post("/admin/product",e),c=e=>r.Z.put("/admin/product/".concat(e.id),e),d=e=>r.Z.put("/admin/product/".concat(e.id,"/status"),e),u=e=>r.Z.delete("/admin/product/".concat(e.id))},62581:function(e,t,n){"use strict";var r,i;n.d(t,{Z:function(){return r}}),(i=r||(r={})).LOGIN="/login",i.ADMIN_DASHBOARD="/admin/dashboard",i.HOME="/",i.USER="/admin/user",i.ROLE="/admin/role",i.NEW_ROLE="/admin/role/new",i.SYSTEM_CONFIG="/admin/system-config",i.PRODUCT="/admin/product",i.BLOG="/admin/blog",i.ORDER="/admin/order",i.ABANDONMENT="/admin/abandonment",i.WARRANTY_REGISTER="/admin/warranty-register",i.WARRANTY_CLAIM="/admin/warranty-claim",i.COUPON="/admin/coupon",i.OUR_PARTNERS="/admin/our-partners",i.REVIEW="/admin/review",i.CONTENT_BANNER="/admin/content/banners",i.CONTENT_REVIEW="/admin/content/reviews",i.CONTENT_VIDEO="/admin/content/videos",i.CONTENT_POPUP="/admin/content/popups"},94170:function(e,t,n){"use strict";var r,i,s,l,a,o,c,d,u,h;n.d(t,{As:function(){return s},fH:function(){return l},hY:function(){return i}}),(o=r||(r={})).EN="en",o.ZH_HK="zh-HK",(c=i||(i={})).LOGIN="login",c.FORGET_PASSWORD="forget_password",c.SIGNUP="signup",(d=s||(s={})).ASC="asc",d.DESC="desc",(u=l||(l={})).VERIFIED="VERIFIED",u.PENDING_FOR_VERIFICATION="PENDING_FOR_VERIFICATION",u.VERIFICATION_EXPIRED="VERIFICATION_EXPIRED",(h=a||(a={})).ADMIN="Admin",h.CUSTOMER="Customer"},26134:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});let r=(e,t,n)=>void 0===t?void 0!==n?n:Array.isArray(t)?[]:{}:e?t:void 0!==n?n:Array.isArray(t)?[]:{}},83214:function(e,t,n){"use strict";n.d(t,{_g:function(){return s},i$:function(){return l}});var r=n(52043),i=n.n(r);let s=e=>{if("response"in e){var t,n;return null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.message}return e.message},l=(e,t)=>
1{let n=i()(e);return e&&n.isValid()?i()(e).format("DD MMM YYYY, hh:mm a"):t||null}},91340:function(e,t,n){"use strict";n.d(t,{Zd:function(){return s},hv:function(){return a},rD:function(){return o},wN:function(){return l}});let r="session_id",i="session_header_enabled";function s(){try{let e=localStorage.getItem(r);if(e&&e.length>0)return e;let t="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():c();return localStorage.setItem(r,t),t}catch(e){return c()}}function l(){try{localStorage.setItem(i,"1")}catch(e){}}function a(){try{localStorage.setItem(i,"0"),localStorage.removeItem(r)}catch(e){}}function o(){try{return"1"===localStorage.getItem(i)}catch(e){return!1}}function c(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}},function(e){e.O(0,[5989,4237,7610,8174,9834,8051,9513,4540,928,4298,4190,6631,6220,9575,7444,9406,150,1887,5934,8060,9059,8672,1795,8374,7894,8734,8619,2888,9774,179],function(){return e(e.s=32238)}),_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.