1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8269,9810],{4180:function(e,n){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}},46976:function(e,n,t){var r=t(52676),i=t(75271),a=t(9059),o=t(96516),s=t(4948),l=t(89120),c=t.n(l);n.Z=e=>{let{fetchOptions:n,debounceTimeout:t=500,...l}=e,[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)([]),[p,f]=(0,i.useState)(""),x=(0,i.useRef)(0),v=(0,i.useMemo)(()=>c()(e=>{x.current+=1;let t=x.current;n(e).then(e=>{t===x.current&&(h(e),u(!1))})},t),[n,t]),g=d?(0,r.jsx)("div",{className:"py-2 flex justify-center",children:(0,r.jsx)(a.Z,{size:"small"})}):(0,r.jsx)(o.Z,{});return(0,r.jsx)(s.default,{labelInValue:!0,filterOption:!1,onSearch:e=>{h([]),f(e),void 0!==e&&(u(!0),v(e))},onFocus:()=>{h([]),u(!0),v("")},notFoundContent:g,...l,options:m,showSearch:!0,loading:d,searchValue:p})}},99195:function(e,n,t){var r=t(52676);t(32195);var i=t(79884),a=t(42148),o=t(6474),s=t(82948);let l=(0,i.M)({features:a.bV});n.Z=e=>{let{src:n,className:t}=e;return(0,r.jsx)("div",{className:t,style:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},children:(0,r.jsx)("div",{style:{position:"absolute",inset:0},children:(0,r.jsx)(l.Provider,{children:(0,r.jsx)(o.U,{children:(0,r.jsx)(s.n,{src:n,playsInline:!0,crossOrigin:"anonymous"})})})})})}},49810:function(e,n,t){t.d(n,{Z:function(){return F}});var r=t(52676),i=t(75271),a=t(46035),o=t(33022),s=t(40150),l=t(28994),c=t(85304),d=t(4180),u=t(16624),m=t(27026),h=t.n(m),p=t(78051),f=t(98807),x=t(15036),v=t(32623),g=t.n(v);let y=e=>{let{isMobile:n,isDrawerOpen:t,setIsDrawerOpen:i,collapsed:a,setCollapsed:o,fullName:s}=e,{logout:l}=(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)(p.ZP,{onClick:()=>{n?i(!t):o(!a)},"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)(h(),{href:"/",className:"h-full",children:(0,r.jsx)(g(),{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)(f.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)(h(),{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)(x.Z,{className:"!my-2"}),(0,r.jsx)(p.ZP,{type:"primary",danger:!0,onClick:l,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:s})}),(0,r.jsx)(u.ZP,{name:s,round:!0,maxInitials:1,size:"35",textSizeRatio:2,fgColor:"white",color:"black"})]})})})})]})};var j=t(73640),A=t(62581),w=t(26134),Z=t(1952),N=t(7144),E=t(42439),R=t(88483),b=t(42720),C=t(43146),I=t(57221),O=t(84176),k=t(54216),T=t(12285),D=t(20188),S=t(19254);let _=e=>{var n,t,a,o,s,l,d,u,m,p,f;let{activeMenu:x,activeDropdown:v}=e,[g,y]=(0,i.useState)(x),{user:_}=(0,c.a)(),P=null==_?void 0:_.role.accessRights,M=e=>{y([e])},U=[{key:"dashboard",label:(0,r.jsx)(h(),{href:A.Z.ADMIN_DASHBOARD,children:"Dashboard"}),icon:(0,r.jsx)(Z.Z,{width:16,height:16}),onClick:()=>M("dashboard")},...(0,w.f)(null==P?void 0:null===(n=P.PRODUCT)||void 0===n?void 0:n.READ,[{key:"product",label:(0,r.jsx)(h(),{href:A.Z.PRODUCT,children:"Product"}),icon:(0,r.jsx)(N.Z,{width:16,height:16}),onClick:()=>M("product")}]),...(0,w.f)(null==P?void 0:null===(t=P.REVIEW)||void 0===t?void 0:t.READ,[{key:"review",label:(0,r.jsx)(h(),{href:A.Z.REVIEW,children:"Reviews"}),icon:(0,r.jsx)(E.Z,{width:16,height:16}),onClick:()=>M("review")}]),...(0,w.f)(null==P?void 0:null===(a=P.WARRANTY)||void 0===a?void 0:a.READ,[{key:"warranty",label:"Warranty",icon:(0,r.jsx)(S.Z,{width:16,height:16}),children:[{key:"warranty-register",label:(0,r.jsx)(h(),{href:A.Z.WARRANTY_REGISTER,children:"Warranty Register"}),onClick:()=>M("warranty-register")},{key:"warranty-claim",label:(0,r.jsx)(h(),{href:A.Z.WARRANTY_CLAIM,children:"Warranty Claim"}),onClick:()=>M("warranty-claim")}]}]),...(0,w.f)(null==P?void 0:null===(o=P.COUPON)||void 0===o?void 0:o.READ,[{key:"c
1oupon",label:(0,r.jsx)(h(),{href:A.Z.COUPON,children:"Coupon"}),icon:(0,r.jsx)(R.Z,{width:16,height:16}),onClick:()=>M("coupon")}]),...(0,w.f)(null==P?void 0:null===(s=P.ORDER)||void 0===s?void 0:s.READ,[{key:"order",label:(0,r.jsx)(h(),{href:A.Z.ORDER,children:"Orders"}),icon:(0,r.jsx)(S.Z,{width:16,height:16}),onClick:()=>M("order")},{key:"abandonment",label:(0,r.jsx)(h(),{href:A.Z.ABANDONMENT,children:"Abandonment"}),icon:(0,r.jsx)(b.Z,{width:16,height:16}),onClick:()=>M("abandonment")}]),...(0,w.f)(null==P?void 0:null===(l=P.BLOG)||void 0===l?void 0:l.READ,[{key:"blog",label:(0,r.jsx)(h(),{href:A.Z.BLOG,children:"Blog"}),icon:(0,r.jsx)(C.Z,{width:16,height:16}),onClick:()=>M("blog")}]),...(0,w.f)(null==P?void 0:null===(d=P.OUR_PARTNERS)||void 0===d?void 0:d.READ,[{key:"our-partners",label:(0,r.jsx)(h(),{href:A.Z.OUR_PARTNERS,children:"Our Partners"}),icon:(0,r.jsx)(I.Z,{width:16,height:16}),onClick:()=>M("our-partners")}]),...(0,w.f)(null==P?void 0:null===(u=P.CONTENT_MANAGEMENT)||void 0===u?void 0:u.READ,[{key:"content",label:"Content Management",icon:(0,r.jsx)(O.Z,{width:16,height:16}),children:[{key:"content-banners",label:(0,r.jsx)(h(),{href:A.Z.CONTENT_BANNER,children:"Banners"}),onClick:()=>M("content-banners")},{key:"content-reviews",label:(0,r.jsx)(h(),{href:A.Z.CONTENT_REVIEW,children:"Customer Reviews"}),onClick:()=>M("content-reviews")},{key:"content-videos",label:(0,r.jsx)(h(),{href:A.Z.CONTENT_VIDEO,children:"Product Videos"}),onClick:()=>M("content-videos")},{key:"content-popups",label:(0,r.jsx)(h(),{href:A.Z.CONTENT_POPUP,children:"Popups"}),onClick:()=>M("content-popups")}]}]),...(0,w.f)(null==P?void 0:null===(m=P.USER)||void 0===m?void 0:m.READ,[{key:"user",label:(0,r.jsx)(h(),{href:A.Z.USER,children:"User"}),icon:(0,r.jsx)(k.Z,{width:16,height:16}),onClick:()=>M("user")}]),...(0,w.f)(null==P?void 0:null===(p=P.ROLE)||void 0===p?void 0:p.READ,[{key:"role",label:(0,r.jsx)(h(),{href:A.Z.ROLE,children:"Role"}),icon:(0,r.jsx)(T.Z,{width:16,height:16}),onClick:()=>M("role")}]),...(0,w.f)(null==P?void 0:null===(f=P["SYSTEM_CONFIG/CATEGORY"])||void 0===f?void 0:f.READ,[{key:"system-config",label:(0,r.jsx)(h(),{href:A.Z.SYSTEM_CONFIG,children:"System Config"}),icon:(0,r.jsx)(D.Z,{width:16,height:16}),onClick:()=>M("category")}])];return(0,r.jsx)(j.Z,{theme:"light",mode:"inline",defaultOpenKeys:v||[],defaultSelectedKeys:g,items:U,className:"h-full font-medium"})};var P=t(63309);let{Sider:M,Content:U}=o.default;var F=e=>{let{children:n,user:t,activeMenu:u=[],activeDropdown:m=[],seoConfig:h,withPadding:p=!0,card:f=!0,contentClassName:x}=e,v=(0,l.ac)("(max-width: 768px)"),[j,A]=(0,i.useState)(!1),[w,Z]=(0,i.useState)(!1);return(0,r.jsx)(c.H,{user:t,children:(0,r.jsxs)(o.default,{className:"!min-h-screen",children:[(0,r.jsx)(a.PB,{...h}),(0,r.jsx)(y,{isMobile:v,isDrawerOpen:w,setIsDrawerOpen:Z,collapsed:j,setCollapsed:A,fullName:(null==t?void 0:t.firstName)+" "+(null==t?void 0:t.lastName)||""}),(0,r.jsx)("div",{className:"mt-[64px]"}),(0,r.jsxs)(o.default,{hasSider:!0,style:{minHeight:"100%"},children:[v?(0,r.jsx)(s.Z,{placement:"left",open:w,onClose:()=>Z(!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)(g(),{src:d.Z,alt:"Samugiken",className:"w-[100%] h-[70px]"})}),(0,r.jsx)(_,{activeMenu:u,activeDropdown:m})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:j?"duration-200 ml-[80px]":"duration-200 ml-[250px]"}),(0,r.jsx)(M,{trigger:null,collapsible:!0,collapsed:j,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)(_,{activeMenu:u,activeDropdown:m})})]}),(0,r.jsx)(U,{className:(0,P.cn)("min-h-full",p&&"px-3 py-5 md:p-9"),children:(0,r.jsx)("div",{className:(0,P.cn)(f&&"rounded-lg bg-white p-8 shadow-sm",x),children:n})})]})]})})}},5409:function(e,n,t){t.d(n,{J:function(){return s}});var r=t(15989),i=t(39771),a=t(91340);let o=r.Z.create({baseURL:i.T5+"/api",headers:{"Content-Type":"application/json"},withCredentials:!0});o.interceptors.request.use(e=>{if((0,a.rD)()){let n=(0,a.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 s=r.Z.create({baseURL:i.T5+"/api",headers:{"Content-Type":"multipart/form-data"},maxContentLength:1/0,maxBodyLength:1/0,withCredentials:!0});n.Z=o},85304:function(e,n,t){t.d(n,{H:function(){return h},a:function(){return p}});var r=t(52676),i=t(75271),a=t(76517),o=t(73414),s=t(71030),l=t(83214),
1c=t(62581),d=t(69504),u=t(91340);let m=(0,i.createContext)(null),h=e=>{let{children:n,user:t}=e,h=(0,o.useRouter)(),{mutate:p}=(0,s.D)({mutationFn:d.kS,onError:e=>a.Am.error((0,l._g)(e)),onSuccess:()=>{h.push(c.Z.LOGIN)}});return(0,i.useEffect)(()=>{t?(0,u.hv)():(0,u.wN)()},[t]),(0,r.jsx)(m.Provider,{value:{user:t,logout:p},children:n})},p=()=>{let e=(0,i.useContext)(m);if(!e)throw Error("useAuth must be used within a AuthProvider");return e}},83471:function(e,n,t){t.d(n,{$:function(){return o},c:function(){return a}});var r=t(5409),i=t(22903);let a=async(e,n,t)=>{let a=new FormData;a.append("file",n.file);try{let o=await r.J.post(null!=t?t:"/file/upload/".concat(e),a),s=(0,i.I)(o.data.key),l={uid:o.data.refId,name:o.data.name,url:s,status:"done",type:n.file.type,originFileObj:n.file};n.onSuccess(l)}catch(e){n.onError(e)}},o=async(e,n,t)=>{let a=new FormData;a.append("video",n.file);try{let o=await r.J.post(null!=t?t:"/video/upload/".concat(e),a),s=(0,i.I)(o.data.key),l={uid:o.data.refId,name:o.data.name,url:s,status:"done",type:n.file.type,originFileObj:n.file};return n.onSuccess(l),{success:!0,fileObject:l}}catch(e){return n.onError(e),{success:!1,error:e.response.data.message}}}},88290:function(e,n,t){var r,i,a,o;t.d(n,{T:function(){return r},Z:function(){return i}}),(a=r||(r={})).PRODUCT_IMAGE="product-image",a.BLOG_IMAGE="blog-image",a.WARRANTY_CLAIM="warranty-claim",a.REVIEW="review",a.CONTENT_IMAGE="content-image",(o=i||(i={})).warranty_claim="warranty-claim",o.description="product-description",o.review="review"},27062:function(e,n,t){var r=t(52676),i=t(75271),a=t(18060),o=t(87517),s=t(21844),l=t(84020),c=t(43532),d=t(29607),u=t(76517),m=t(46976),h=t(99195),p=t(83471),f=t(88290),x=t(39936),v=t(53970),g=t(94170);let y=(0,r.jsxs)("button",{style:{border:0,background:"none"},type:"button",children:[(0,r.jsx)(d.Z,{}),(0,r.jsx)("div",{style:{marginTop:8},children:"Upload"})]});n.Z=function(e){var n,t,d,j;let{form:A,imageList:w,setImageList:Z,videoList:N,setVideoList:E}=e,R=a.Z.useWatch("isExistingCustomer",A),b=(0,i.useCallback)(async e=>{try{return((await (0,v.lE)({page:1,pageSize:10,search:e,sortField:"createdAt",sortOrder:g.As.DESC})).data.rows||[]).map(e=>{let n="".concat(e.firstName||""," ").concat(e.lastName||"").trim();return{label:"".concat(n||"Unnamed").concat(e.email?" (".concat(e.email,")"):""),value:e.refId,key:e.refId}})}catch(e){return console.error("Failed to load customers",e),[]}},[]),C=(0,i.useCallback)(async e=>{try{return((await (0,x.jw)({page:1,pageSize:10,search:e,sortField:"createdAt",sortOrder:g.As.DESC})).data.rows||[]).map(e=>({label:e.name,value:e.refId,key:e.refId}))}catch(e){return console.error("Failed to load products",e),[]}},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z.Item,{name:"isExistingCustomer",label:"Customer Type",rules:[{required:!0}],children:(0,r.jsxs)(o.ZP.Group,{children:[(0,r.jsx)(o.ZP,{value:!0,children:"Existing Customer"}),(0,r.jsx)(o.ZP,{value:!1,children:"Manual Entry"})]})}),R?(0,r.jsx)(a.Z.Item,{name:"customer",label:"Name",rules:[{required:!0,message:"Please select a customer"}],children:(0,r.jsx)(m.Z,{placeholder:"Search customer by name",fetchOptions:b,allowClear:!0})}):(0,r.jsx)(a.Z.Item,{name:"name",label:"Name",rules:[{required:!0,message:"Please enter a name"}],children:(0,r.jsx)(s.default,{placeholder:"Enter reviewer name"})}),(0,r.jsx)(a.Z.Item,{name:"product",label:"Product",rules:[{required:!0,message:"Please select a product"}],children:(0,r.jsx)(m.Z,{placeholder:"Search product by name",fetchOptions:C,allowClear:!0})}),(0,r.jsx)(a.Z.Item,{name:"rating",label:"Rating",rules:[{required:!0,message:"Please give a rating"},{validator:(e,n)=>n&&n>=.5?Promise.resolve():Promise.reject(Error("Rating must be at least 0.5"))}],children:(0,r.jsx)(l.Z,{allowHalf:!0})}),(0,r.jsx)(a.Z.Item,{name:"description",label:"Description",children:(0,r.jsx)(s.default.TextArea,{rows:4,maxLength:2e3,showCount:!0,placeholder:"Review description"})}),(0,r.jsx)(a.Z.Item,{label:"Images (Max: 3)",children:(0,r.jsx)(c.default,{multiple:!0,customRequest:e=>(0,p.c)(f.T.REVIEW,e,"/admin/review/upload/image"),fileList:w,onChange:e=>{let{fileList:n}=e;Z(n)},listType:"picture-card",accept:"image/*",maxCount:3,children:y})}),(0,r.jsx)(a.Z.Item,{label:"Video (Max: 1)",extra:"Optional. Up to 1 minute 30 seconds.",children:N.length>0&&((null===(n=N[0].response)||void 0===n?void 0:n.url)||(null===(t=N[0])||void 0===t?void 0:t.url))?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"flex justify-center pb-3",children:(0,r.jsx)(h.Z,{src:(null===(d=N[0].response)||void 0===d?void 0:d.url)||(null===(j=N[0])||void 0===j?void 0:j.url)||"",className:"w-full h-64"})}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("button",{type:"button",className:"px-4 py-2 text-sm text-white bg-red-500 rounded",onClick:()=>E([]),children:"Remove"})})]}):(0,r.jsx)(c.default,{customRequest:async e=>{let n=await (0,p.$)(f.Z.review,e,"/review/product-review-video");n.success||u.Am.error(n.error)},fileList:N,onChange:e=>{let{fileList:n}=e;E(n)},listType:"picture-card",accept:"video/*",maxCount:1,children:N.length>=1?null:y})})]})}},69504:function(e,n,t){t.d(n,{A9:function(){return c},IU:function(){return a},c0:function(){return l},kS:function(){return o},o9:function(){return s},x4:function(){return i}});var r=t(5409);let i=async e=>r.Z.post("/auth/login",e),a=async e=>r.Z.post("/auth/signup",e),o=async()=>r.Z.post("/auth/logout"),s=async e=>r.Z.post("/auth/forget-password",e),l=async e=>r.Z.post("/auth/password-reset/confirm",e),c=async e=>r.Z.post("/auth/verify-user",e)},39936:function(e,n,t){t.d(n,{Bz:function(){return i},Ir:function(){return u},Lv:function(){return d},gk:function(){return s},iT:function(){return o},jw:function(){return a},nM:function(){return c},ry:function(){return l}});var r=t(5409);let i=e=>r.Z.get("/products",{params:e}),a=e=>r.Z.get("/admin/product",{params:e}),o=e=>{let{refId:n,isPublished:t}=e;return r.Z.get("/products/".concat(n),{params:{isPublished:t}})},s=e=>r.Z.get("/admin/product/".concat(e.id)),l=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))},15831:function(e,n,t){t.d(n,{Tn:function(){return a},XU:function(){return o},g8:function(){return s},i0:function(){return c},kn:function(){return l},mk:function(){return d},t_:function(){return i}});var r=t(5409);let i=e=>r.Z.get("/admin/review",{params:e}),a=e=>r.Z.get("/admin/review/".concat(e)),o=e=>r.Z.post("/admin/review",e),s=(e,n)=>r.Z.put("/admin/review/".concat(e),n),l=(e,n)=>r.Z.put("/admin/review/".concat(e,"/status"),n),c=e=>r.Z.delete("/admin/review/".concat(e)),d=e=>r.Z.get("/review/product",{params:e})},53970:function(e,n,t){t.d(n,{$X:function(){return u},Fx:function(){return x},GA:function(){return s},Lj:function(){return p},Ny:function(){return i},OL:function(){return h},Oe:function(){return m},PF:function(){return l},Zy:function(){return g},cJ:function(){return v},gJ:function(){return c},gn:function(){return d},h8:function(){return f},lE:function(){return a},pe:function(){return o}});var r=t(5409);let i=e=>r.Z.post("/admin/user",e),a=e=>r.Z.get("/admin/user",{params:e}),o=()=>r.Z.get("/admin/user/export",{responseType:"blob"}),s=e=>r.Z.get("/admin/user/".concat(e.id)),l=e=>r.Z.get("/admin/user/".concat(e.id,"/address")),c=e=>r.Z.get("/admin/user/address/".concat(e.addressId)),d=e=>r.Z.post("/admin/user/".concat(e.id,"/address"),e.address),u=e=>r.Z.put("/admin/user/address/".concat(e.addressId),e.address),m=e=>r.Z.delete("/admin/user/address/".concat(e.addressId)),h=e=>r.Z.put("/admin/user/".concat(e.id,"/status"),e),p=e=>r.Z.put("/admin/user/".concat(e.id,"/profile"),e),f=e=>r.Z.delete("/admin/user/".concat(e.id)),x=e=>r.Z.put("/admin/user/".concat(e.id,"/resend-email-verification"),e),v=e=>r.Z.put("/admin/user/".concat(e.id,"/email"),e),g=e=>r.Z.put("/admin/user/".concat(e.id,"/password"),e)},62581:function(e,n,t){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){var r,i,a,o,s,l,c,d,u,m;t.d(n,{As:function(){return a},fH:function(){return o},hY:function(){return i}}),(l=r||(r={})).EN="en",l.ZH_HK="zh-HK",(c=i||(i={})).LOGIN="login",c.FORGET_PASSWORD="forget_password",c.SIGNUP="signup",(d=a||(a={})).ASC="asc",d.DESC="desc",(u=o||(o={})).VERIFIED="VERIFIED",u.PENDING_FOR_VERIFICATION="PENDING_FOR_VERIFICATION",u.VERIFICATION_EXPIRED="VERIFICATION_EXPIRED",(m=s||(s={})).ADMIN="Admin",m.CUSTOMER="Customer"},26134:function(e,n,t){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){t.d(n,{_g:function(){return a},i$:function(){return o}});var r=t(52043),i=t.n(r);let a=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},o=(e,n)=>{let t=i()(e);return e&&t.isValid()?i()(e).format("DD MMM YYYY, hh:mm a"):n||null}},22903:function(e,n,t){t.d(n,{B:function(){return i},I:function(){return r}});let r=e=>"".concat("https://cdn.samugiken.com","/").concat("production","/").concat(encodeURIComponent(e)),i=e=>"".concat("https://cdn.samugiken.com","/").concat("production","/").concat(encodeURIComponent(e))},91340:function(e,n,t){t.d(n,{Zd:function(){return a}
1,hv:function(){return s},rD:function(){return l},wN:function(){return o}});let r="session_id",i="session_header_enabled";function a(){try{let e=localStorage.getItem(r);if(e&&e.length>0)return e;let n="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():c();return localStorage.setItem(r,n),n}catch(e){return c()}}function o(){try{localStorage.setItem(i,"1")}catch(e){}}function s(){try{localStorage.setItem(i,"0"),localStorage.removeItem(r)}catch(e){}}function l(){try{return"1"===localStorage.getItem(i)}catch(e){return!1}}function c(){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)})}}}]);
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.