PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/admin/blog-e1513f7da8e4ad60.js

js samugiken.com collected 2026-10-07 01:50:29 UTC 20,572 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7394,9810],{86280:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/blog",function(){return t(35e3)}])},4180:function(e,n){"use strict";n.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,n,t){"use strict";var r=t(52676),i=t(98807),l=t(78051),s=t(92966),o=t(63309);n.Z=e=>{let{children:n,className:t,...a}=e;return(0,r.jsx)(i.Z,{trigger:["click"],rootClassName:(0,o.cn)("!min-w-[100px]",t),...a,children:n||(0,r.jsx)(l.ZP,{className:"!px-2",children:(0,r.jsx)(s.Z,{})})})}},98131:function(e,n,t){"use strict";var r=t(52676),i=t(79406),l=t(78051);n.Z=e=>{let{visible:n,onOk:t,onCancel:s,title:o,content:a,danger:d=!1,okButtonText:c,cancelButtonText:u,loading:h,disabled:x}=e;return(0,r.jsxs)(i.Z,{open:n,title:o,footer:null,closeIcon:null,centered:!0,onCancel:()=>{x||null==s||s()},children:[a,(0,r.jsxs)("div",{className:"flex gap-5 mt-5",children:[(0,r.jsx)(l.ZP,{size:"large",onClick:s,block:!0,disabled:x,children:u||"Cancel"}),(0,r.jsx)(l.ZP,{size:"large",type:"primary",danger:d,onClick:t,block:!0,loading:h,disabled:x,children:c||"Ok"})]})]})}},49810:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});var r=t(52676),i=t(75271),l=t(46035),s=t(33022),o=t(40150),a=t(28994),d=t(85304),c=t(4180),u=t(16624),h=t(27026),x=t.n(h),m=t(78051),g=t(98807),f=t(15036),p=t(32623),v=t.n(p);let b=e=>{let{isMobile:n,isDrawerOpen:t,setIsDrawerOpen:i,collapsed:l,setCollapsed:s,fullName:o}=e,{logout:a}=(0,d.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)(m.ZP,{onClick:()=>{n?i(!t):s(!l)},"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"})})}),!n&&(0,r.jsx)(x(),{href:"/",className:"h-full",children:(0,r.jsx)(v(),{src:c.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)(g.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)(x(),{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)(m.ZP,{type:"primary",danger:!0,onClick:a,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:o})}),(0,r.jsx)(u.ZP,{name:o,round:!0,maxInitials:1,size:"35",textSizeRatio:2,fgColor:"white",color:"black"})]})})})})]})};var A=t(73640),y=t(62581),N=t(26134),j=t(1952),E=t(7144),Z=t(42439),C=t(88483),w=t(42720),R=t(43146),D=t(57221),I=t(84176),S=t(54216),O=t(12285),k=t(20188),P=t(19254);let T=e=>{var n,t,l,s,o,a,c,u,h,m,g;let{activeMenu:f,activeDropdown:p}=e,[v,b]=(0,i.useState)(f),{user:T}=(0,d.a)(),_=null==T?void 0:T.role.accessRights,U=e=>{b([e])},B=[{key:"dashboard",label:(0,r.jsx)(x(),{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===(n=_.PRODUCT)||void 0===n?void 0:n.READ,[{key:"product",label:(0,r.jsx)(x(),{href:y.Z.PRODUCT,children:"Product"}),icon:(0,r.jsx)(E.Z,{width:16,height:16}),onClick:()=>U("product")}]),...(0,N.f)(null==_?void 0:null===(t=_.REVIEW)||void 0===t?void 0:t.READ,[{key:"review",label:(0,r.jsx)(x(),{href:y.Z.REVIEW,children:"Reviews"}),icon:(0,r.jsx)(Z.Z,{width:16,height:16}),onClick:()=>U("review")}]),...(0,N.f)(null==_?void 0:null===(l=_.WARRANTY)||void 0===l?void 0:l.READ,[{key:"warranty",label:"Warranty",icon:(0,r.jsx)(P.Z,{width:16,height:16}),children:[{key:"warranty-register",label:(0,r.jsx)(x(),{href:y.Z.WARRANTY_REGISTER,children:"Warranty Register"}),onClick:()=>U("warranty-register")},{key:"warranty-claim",label:(0,r.jsx)(x(),{href:y.Z.WARRANTY_CLAIM,children:"Warranty Claim"}),onClick:()=>U("warranty-claim")}]}]),...(0,N.f)(null==_?void 0:null===(s=_.COUPON)||void 0===s?void 0:s.READ,[{key:"c
1oupon",label:(0,r.jsx)(x(),{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===(o=_.ORDER)||void 0===o?void 0:o.READ,[{key:"order",label:(0,r.jsx)(x(),{href:y.Z.ORDER,children:"Orders"}),icon:(0,r.jsx)(P.Z,{width:16,height:16}),onClick:()=>U("order")},{key:"abandonment",label:(0,r.jsx)(x(),{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===(a=_.BLOG)||void 0===a?void 0:a.READ,[{key:"blog",label:(0,r.jsx)(x(),{href:y.Z.BLOG,children:"Blog"}),icon:(0,r.jsx)(R.Z,{width:16,height:16}),onClick:()=>U("blog")}]),...(0,N.f)(null==_?void 0:null===(c=_.OUR_PARTNERS)||void 0===c?void 0:c.READ,[{key:"our-partners",label:(0,r.jsx)(x(),{href:y.Z.OUR_PARTNERS,children:"Our Partners"}),icon:(0,r.jsx)(D.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)(I.Z,{width:16,height:16}),children:[{key:"content-banners",label:(0,r.jsx)(x(),{href:y.Z.CONTENT_BANNER,children:"Banners"}),onClick:()=>U("content-banners")},{key:"content-reviews",label:(0,r.jsx)(x(),{href:y.Z.CONTENT_REVIEW,children:"Customer Reviews"}),onClick:()=>U("content-reviews")},{key:"content-videos",label:(0,r.jsx)(x(),{href:y.Z.CONTENT_VIDEO,children:"Product Videos"}),onClick:()=>U("content-videos")},{key:"content-popups",label:(0,r.jsx)(x(),{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)(x(),{href:y.Z.USER,children:"User"}),icon:(0,r.jsx)(S.Z,{width:16,height:16}),onClick:()=>U("user")}]),...(0,N.f)(null==_?void 0:null===(m=_.ROLE)||void 0===m?void 0:m.READ,[{key:"role",label:(0,r.jsx)(x(),{href:y.Z.ROLE,children:"Role"}),icon:(0,r.jsx)(O.Z,{width:16,height:16}),onClick:()=>U("role")}]),...(0,N.f)(null==_?void 0:null===(g=_["SYSTEM_CONFIG/CATEGORY"])||void 0===g?void 0:g.READ,[{key:"system-config",label:(0,r.jsx)(x(),{href:y.Z.SYSTEM_CONFIG,children:"System Config"}),icon:(0,r.jsx)(k.Z,{width:16,height:16}),onClick:()=>U("category")}])];return(0,r.jsx)(A.Z,{theme:"light",mode:"inline",defaultOpenKeys:p||[],defaultSelectedKeys:v,items:B,className:"h-full font-medium"})};var _=t(63309);let{Sider:U,Content:B}=s.default;var L=e=>{let{children:n,user:t,activeMenu:u=[],activeDropdown:h=[],seoConfig:x,withPadding:m=!0,card:g=!0,contentClassName:f}=e,p=(0,a.ac)("(max-width: 768px)"),[A,y]=(0,i.useState)(!1),[N,j]=(0,i.useState)(!1);return(0,r.jsx)(d.H,{user:t,children:(0,r.jsxs)(s.default,{className:"!min-h-screen",children:[(0,r.jsx)(l.PB,{...x}),(0,r.jsx)(b,{isMobile:p,isDrawerOpen:N,setIsDrawerOpen:j,collapsed:A,setCollapsed:y,fullName:(null==t?void 0:t.firstName)+" "+(null==t?void 0:t.lastName)||""}),(0,r.jsx)("div",{className:"mt-[64px]"}),(0,r.jsxs)(s.default,{hasSider:!0,style:{minHeight:"100%"},children:[p?(0,r.jsx)(o.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:c.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:A?"duration-200 ml-[80px]":"duration-200 ml-[250px]"}),(0,r.jsx)(U,{trigger:null,collapsible:!0,collapsed:A,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)(B,{className:(0,_.cn)("min-h-full",m&&"px-3 py-5 md:p-9"),children:(0,r.jsx)("div",{className:(0,_.cn)(g&&"rounded-lg bg-white p-8 shadow-sm",f),children:n})})]})]})})}},5409:function(e,n,t){"use strict";t.d(n,{J:function(){return o}});var r=t(15989),i=t(39771),l=t(91340);let s=r.Z.create({baseURL:i.T5+"/api",headers:{"Content-Type":"application/json"},withCredentials:!0});s.interceptors.request.use(e=>{if((0,l.rD)()){let n=(0,l.Zd)();n&&(e.headers=e.headers||{},e.headers["x-session-id"]=n)}else e.headers&&e.headers["x-session-id"]&&delete e.headers["x-session-id"];return e});let o=r.Z.create({baseURL:i.T5+"/api",headers:{"Content-Type":"multipart/form-data"},maxContentLength:1/0,maxBodyLength:1/0,withCredentials:!0});n.Z=s},95809:function(e,n,t){"use strict";var r=t(75271);n.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[n,t]=(0,r.useState)(e);return{visible:n,open:()=>{t(!0)},close:()=>{t(!1)},toggle:()=>{t(e=>!e)}}}},56346:function(e,n,t){"use strict";var r=t(75271),i=t(94170);n.Z=e=>{let[n,t]=(0,r.useState)({page:1,pageSize:10,total:0,sortOrder:i.As.DESC,sortField:"createdAt",...e});return[n,t,(e,n,r)=>{t(n=>{var t;return{...n,page:e.current||1,pageSize:e.pageSize||10,sortField:null!==(t=null==r?void 0:r.field)&&void 0!==t?t:null==n?void 0:n.sortField,sortOrder:"ascend"==r.order?i.As.ASC:r.order?i.As.DESC:n.sortOrder}})}]}},85304:function(e,n,t){"use strict";t.d(n,{H:function(){return x},a:function(){return m}});var r=t(52676),i=t(75271),l=t(76517),s=t(73414),o=t(71030),a=t(83214),d=t(62581),c=t(69504),u=t(91340);let h=(0,i.createContext)(null),x=e=>{let{children:n,user:t}=e,x=(0,s.useRouter)(),{mutate:m}=(0,o.D)({mutationFn:c.kS,onError:e=>l.Am.error((0,a._g)(e)),onSuccess:()=>{x.push(d.Z.LOGIN)}});return(0,i.useEffect)(()=>{t?(0,u.hv)():(0,u.wN)()},[t]),(0,r.jsx)(h.Provider,{value:{user:t,logout:m},children:n})},m=()=>{let e=(0,i.useContext)(h);if(!e)throw Error("useAuth must be used within a AuthProvider");return e}},42689:function(e,n,t){"use strict";var r,i;t.d(n,{s:function(){return r}}),(i=r||(r={})).PUBLISHED="PUBLISHED",i.UNPUBLISHED="UNPUBLISHED"},35e3:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return F},default:function(){return z}});var r=t(52676),i=t(21844),l=t(78051),s=t(98774),o=t(87927),a=t(69947),d=t(49810),c=t(95809),u=t
1(26134),h=t(75271),x=t(73414),m=t(27026),g=t.n(m),f=t(69834),p=t(4475),v=t(71030),b=t(57722),A=t(77894),y=t(2194),N=t(34769),j=t(1705),E=t(76517),Z=t(39577),C=t(98131),w=t(56346),R=t(83214),D=t(85304),I=t(33782),S=t(42689),O=e=>{let{search:n}=e,t=(0,x.useRouter)(),{user:i}=(0,D.a)(),[l,s,o]=(0,w.Z)(),[a,d]=(0,h.useState)(null),m=(0,c.Z)(),O=(0,c.Z)(),k=(0,f.a)({queryKey:["blog","pagination",l,n],queryFn:async()=>{let e=await (0,I.De)({page:l.page,pageSize:l.pageSize,sortField:l.sortField,sortOrder:l.sortOrder,search:n});return s(n=>({...n,page:e.data.page,total:e.data.total})),e},placeholderData:p.Wk,select:e=>e.data.rows}),P=(0,v.D)({mutationFn:e=>(0,I.YO)(e),onSuccess:()=>{O.close(),k.refetch()}}),T=(0,v.D)({mutationFn:e=>(0,I.X4)(e),onSuccess:()=>{m.close(),k.refetch()}}),_=e=>{E.Am.promise(P.mutateAsync(e),{pending:"Updating blog status...",success:"Blog status updated successfully",error:{render(e){let{data:n}=e;return"Error updating blog status: ".concat((0,R._g)(n))}}})},U=e=>{E.Am.promise(T.mutateAsync({id:e}),{pending:"Deleting blog...",success:"Blog deleted successfully",error:{render(e){let{data:n}=e;return"Error deleting blog: ".concat((0,R._g)(n))}}})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.Z,{columns:[{title:"Name",dataIndex:"title",render:(e,n)=>(0,r.jsx)(g(),{href:"/admin/blog/".concat(n.refId),className:"font-bold",children:e})},{title:"Author name",dataIndex:"author",render:e=>e?e.name?e.name:[e.firstName,e.lastName].filter(Boolean).join(" ")||"-":"-"},{title:"Status",dataIndex:"status",render:e=>e===S.s.PUBLISHED?(0,r.jsx)(b.Z,{color:"green",children:"Published"}):e===S.s.UNPUBLISHED?(0,r.jsx)(b.Z,{color:"red",children:"Unpublished"}):(0,r.jsx)(b.Z,{children:"Draft"})},{title:"Published at",dataIndex:"publishedAt",render:e=>(0,R.i$)(e,"-")},{title:"Created at",dataIndex:"createdAt",render:e=>(0,R.i$)(e,"-")},{dataIndex:"refId",width:50,render:(e,n)=>{var l,s;return(0,r.jsx)(Z.Z,{menu:{items:[{key:"view",label:"View",icon:(0,r.jsx)(y.Z,{}),onClick:()=>{t.push("/admin/blog/".concat(e))}},...(0,u.f)(null===(l=i.role.accessRights.BLOG)||void 0===l?void 0:l.UPDATE,[...(0,u.f)(n.status===S.s.PUBLISHED,[{key:"unpublish",label:"Unpublish",icon:(0,r.jsx)(N.Z,{}),onClick:()=>{d(n),O.open()}}],[{key:"publish",label:"Publish",icon:(0,r.jsx)(N.Z,{}),onClick:()=>{d(n),O.open()}}])]),{type:"divider"},...(0,u.f)(null===(s=i.role.accessRights.BLOG)||void 0===s?void 0:s.DELETE,[{key:"delete",label:"Delete",danger:!0,icon:(0,r.jsx)(j.Z,{}),onClick:()=>{d(n),m.open()}}])]}})}}],dataSource:k.data,onChange:o,loading:k.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,n)=>"Pagination: ".concat(n[0],"-").concat(n[1]," of ").concat(e," items"),total:l.total}}),(0,r.jsx)(C.Z,{visible:m.visible,title:(null==a?void 0:a.title)||"",content:"Are you sure you want to delete this blog?",okButtonText:"Delete",onCancel:()=>{m.close(),d(null)},onOk:()=>{a&&U(a.refId)},danger:!0,loading:T.isPending,disabled:T.isPending}),(0,r.jsx)(C.Z,{visible:O.visible,title:(null==a?void 0:a.title)||"",content:(null==a?void 0:a.status)===S.s.PUBLISHED?"Are you sure you want to unpublish this blog?":"Are you sure you want to publish this blog?",okButtonText:(null==a?void 0:a.status)===S.s.PUBLISHED?"Unpublish":"Publish",onCancel:()=>{O.close(),d(null)},onOk:()=>{a&&_({id:a.refId,status:a.status===S.s.PUBLISHED?S.s.UNPUBLISHED:S.s.PUBLISHED})},loading:P.isPending,disabled:P.isPending})]})},k=t(18060),P=t(79406),T=t(97589),_=t.n(T),U=t(33561),B=e=>{let{form:n,onCreateBlog:t,onCancel:s,loading:o,disabled:a}=e;return(0,r.jsxs)(k.Z,{form:n,onFinish:t,layout:"vertical",children:[(0,r.jsx)(k.Z.Item,{name:"title",label:"Title",rules:[{required:!0}],children:(0,r.jsx)(i.default,{autoFocus:!0})}),(0,r.jsxs)("div",{className:"flex gap-5",children:[(0,r.jsx)(l.ZP,{block:!0,size:"large",htmlType:"button",onClick:s,disabled:a,children:"Cancel"}),(0,r.jsx)(l.ZP,{block:!0,size:"large",type:"primary",htmlType:"submit",loading:o,disabled:a,children:"Create"})]})]})},L=e=>{let{open:n,onSuccess:t,onClose:i}=e,l=(0,U.useRouter)(),[s]=k.Z.useForm(),o=(0,v.D)({mutationFn:I.Vh,onSuccess:e=>{s.resetFields(),null==t||t(),null==i||i(),l.push("/admin/blog/".concat(e.data.refId))}}),a=()=>{s.resetFields(),null==i||i()};return(0,r.jsx)(P.Z,{open:n,onCancel:a,footer:null,title:"Create Blog",closeIcon:null,centered:!0,children:(0,r.jsx)(B,{form:s,onCreateBlog:e=>{var n;
1let t=null===(n=e.title)||void 0===n?void 0:n.trim(),r=_()(t||"",{lower:!0});E.Am.promise(o.mutateAsync({title:t,slug:r}),{pending:"Creating blog...",success:"Blog created successfully",error:{render(e){let{data:n}=e;return"Failed to create blog: "+(0,R._g)(n)}}})},onCancel:a,loading:o.isPending,disabled:o.isPending})})},F=!0,z=e=>{var n,t;let{user:h}=e,x=(0,a.NL)(),[m,g]=(0,o.v1)("search",o.Oi.withDefault("")),{visible:f,open:p,close:v}=(0,c.Z)();return(0,r.jsxs)(d.Z,{user:h,activeMenu:["blog"],children:[...(0,u.f)(null===(t=h.role.accessRights)||void 0===t?void 0:null===(n=t.BLOG)||void 0===n?void 0:n.CREATE,[(0,r.jsxs)("div",{className:"flex gap-5 justify-between mb-5",children:[(0,r.jsx)(i.default.Search,{className:"max-w-[400px]",allowClear:!0,onSearch:e=>g(e)}),(0,r.jsxs)(l.ZP,{type:"primary",onClick:p,children:[(0,r.jsx)(s.Z,{}),"New"]})]},"new-blog-button")]),(0,r.jsx)(O,{search:m}),(0,r.jsx)(L,{open:f,onClose:v,onSuccess:()=>{x.invalidateQueries({queryKey:["blog","pagination"]})}})]})}},69504:function(e,n,t){"use strict";t.d(n,{A9:function(){return d},IU:function(){return l},c0:function(){return a},kS:function(){return s},o9:function(){return o},x4:function(){return i}});var r=t(5409);let i=async e=>r.Z.post("/auth/login",e),l=async e=>r.Z.post("/auth/signup",e),s=async()=>r.Z.post("/auth/logout"),o=async e=>r.Z.post("/auth/forget-password",e),a=async e=>r.Z.post("/auth/password-reset/confirm",e),d=async e=>r.Z.post("/auth/verify-user",e)},33782:function(e,n,t){"use strict";t.d(n,{De:function(){return i},F8:function(){return u},Vh:function(){return s},X4:function(){return d},YO:function(){return a},sd:function(){return c},zZ:function(){return o},zv:function(){return l}});var r=t(5409);let i=e=>r.Z.get("/admin/blog",{params:e}),l=e=>r.Z.get("/admin/blog/".concat(e.id)),s=e=>r.Z.post("/admin/blog",e),o=e=>r.Z.put("/admin/blog/".concat(e.id),e),a=e=>r.Z.put("/admin/blog/".concat(e.id,"/status"),e),d=e=>r.Z.delete("/admin/blog/".concat(e.id)),c=e=>r.Z.get("/public/blog",{params:e}),u=async e=>{let n=new FormData;return n.append("file",e),r.J.post("/admin/blog/blog-featured-image",n)}},62581:function(e,n,t){"use strict";var r,i;t.d(n,{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,n,t){"use strict";var r,i,l,s,o,a,d,c,u,h;t.d(n,{As:function(){return l},fH:function(){return s},hY:function(){return i}}),(a=r||(r={})).EN="en",a.ZH_HK="zh-HK",(d=i||(i={})).LOGIN="login",d.FORGET_PASSWORD="forget_password",d.SIGNUP="signup",(c=l||(l={})).ASC="asc",c.DESC="desc",(u=s||(s={})).VERIFIED="VERIFIED",u.PENDING_FOR_VERIFICATION="PENDING_FOR_VERIFICATION",u.VERIFICATION_EXPIRED="VERIFICATION_EXPIRED",(h=o||(o={})).ADMIN="Admin",h.CUSTOMER="Customer"},26134:function(e,n,t){"use strict";t.d(n,{f:function(){return r}});let r=(e,n,t)=>void 0===n?void 0!==t?t:Array.isArray(n)?[]:{}:e?n:void 0!==t?t:Array.isArray(n)?[]:{}},83214:function(e,n,t){"use strict";t.d(n,{_g:function(){return l},i$:function(){return s}});var r=t(52043),i=t.n(r);let l=e=>{if("response"in e){var n,t;return null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.message}return e.message},s=(e,n)=>{let t=i()(e);return e&&t.isValid()?i()(e).format("DD MMM YYYY, hh:mm a"):n||null}},91340:function(e,n,t){"use strict";t.d(n,{Zd:function(){return l},hv:function(){return o},rD:function(){return a},wN:function(){return s}});let r="session_id",i="session_header_enabled";function l(){try{let e=localStorage.getItem(r);if(e&&e.length>0)return e;let n="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():d();return localStorage.setItem(r,n),n}catch(e){return d()}}function s(){try{localStorage.setItem(i,"1")}catch(e){}}function o(){try{localStorage.setItem(i,"0"),localStorage.removeItem(r)}catch(e){}}function a(){try{return"1"===localStorage.getItem(i)}catch(e){return!1}}function d(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let n=16*Math.random()|0;return("x"===e?n:3&n|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,6325,2888,9774,179],function(){return e(e.s=86280)}),_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.