1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3042,9810],{57675:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/content/popups",function(){return t(52600)}])},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}},49810:function(e,n,t){"use strict";t.d(n,{Z:function(){return G}});var i=t(52676),r=t(75271),a=t(46035),o=t(33022),l=t(40150),s=t(28994),c=t(85304),d=t(4180),u=t(16624),m=t(27026),p=t.n(m),h=t(78051),f=t(98807),x=t(15036),g=t(32623),v=t.n(g);let N=e=>{let{isMobile:n,isDrawerOpen:t,setIsDrawerOpen:r,collapsed:a,setCollapsed:o,fullName:l}=e,{logout:s}=(0,c.a)();return(0,i.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,i.jsxs)("div",{className:"flex items-center h-full gap-2",children:[(0,i.jsx)(h.ZP,{onClick:()=>{n?r(!t):o(!a)},"aria-controls":"sidebar",className:"flex items-center justify-center w-8 px-1 py-0",icon:(0,i.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,i.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,i.jsx)(p(),{href:"/",className:"h-full",children:(0,i.jsx)(v(),{src:d.Z,alt:"Samugiken",className:"w-[100%] h-[60px]"})})]}),(0,i.jsx)("div",{className:"flex items-center justify-center",children:(0,i.jsx)("div",{className:"flex items-center justify-center col-row",children:(0,i.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,i.jsxs)("div",{className:"flex flex-col p-3 bg-white rounded-md shadow-md gap-y-1",children:[(0,i.jsx)(p(),{href:"/my-profile",className:"font-medium leading-[normal] text-primary hover:text-primary",children:(0,i.jsx)("div",{className:"cursor-pointer rounded-[4px] p-3 duration-100 hover:bg-primary/10",children:"My Profile"})}),(0,i.jsx)(x.Z,{className:"!my-2"}),(0,i.jsx)(h.ZP,{type:"primary",danger:!0,onClick:s,children:"Logout"})]}),children:(0,i.jsxs)("div",{className:"flex items-center cursor-pointer gap-x-3",children:[(0,i.jsx)("div",{className:"flex items-center gap-2 ml-2",children:(0,i.jsx)("span",{className:"font-semibold",children:l})}),(0,i.jsx)(u.ZP,{name:l,round:!0,maxInitials:1,size:"35",textSizeRatio:2,fgColor:"white",color:"black"})]})})})})]})};var A=t(73640),j=t(62581),E=t(26134),R=t(1952),y=t(7144),b=t(42439),Z=t(88483),w=t(42720),C=t(43146),T=t(57221),O=t(84176),I=t(54216),k=t(12285),S=t(20188),_=t(19254);let D=e=>{var n,t,a,o,l,s,d,u,m,h,f;let{activeMenu:x,activeDropdown:g}=e,[v,N]=(0,r.useState)(x),{user:D}=(0,c.a)(),P=null==D?void 0:D.role.accessRights,M=e=>{N([e])},U=[{key:"dashboard",label:(0,i.jsx)(p(),{href:j.Z.ADMIN_DASHBOARD,children:"Dashboard"}),icon:(0,i.jsx)(R.Z,{width:16,height:16}),onClick:()=>M("dashboard")},...(0,E.f)(null==P?void 0:null===(n=P.PRODUCT)||void 0===n?void 0:n.READ,[{key:"product",label:(0,i.jsx)(p(),{href:j.Z.PRODUCT,children:"Product"}),icon:(0,i.jsx)(y.Z,{width:16,height:16}),onClick:()=>M("product")}]),...(0,E.f)(null==P?void 0:null===(t=P.REVIEW)||void 0===t?void 0:t.READ,[{key:"review",label:(0,i.jsx)(p(),{href:j.Z.REVIEW,children:"Reviews"}),icon:(0,i.jsx)(b.Z,{width:16,height:16}),onClick:()=>M("review")}]),...(0,E.f)(null==P?void 0:null===(a=P.WARRANTY)||void 0===a?void 0:a.READ,[{key:"warranty",label:"Warranty",icon:(0,i.jsx)(_.Z,{width:16,height:16}),children:[{key:"warranty-register",label:(0,i.jsx)(p(),{href:j.Z.WARRANTY_REGISTER,children:"Warranty Register"}),onClick:()=>M("warranty-register")},{key:"warranty-claim",label:(0,i.jsx)(p(),{href:j.Z.WARRANTY_CLAIM,children:"Warranty Claim"}),onClick:()=>M("warranty-claim")}]}]),...(0,E.f)(null==P?void 0:null===(o=P.COUPON)||void 0===o?void 0:o.READ,[{key:"c
1oupon",label:(0,i.jsx)(p(),{href:j.Z.COUPON,children:"Coupon"}),icon:(0,i.jsx)(Z.Z,{width:16,height:16}),onClick:()=>M("coupon")}]),...(0,E.f)(null==P?void 0:null===(l=P.ORDER)||void 0===l?void 0:l.READ,[{key:"order",label:(0,i.jsx)(p(),{href:j.Z.ORDER,children:"Orders"}),icon:(0,i.jsx)(_.Z,{width:16,height:16}),onClick:()=>M("order")},{key:"abandonment",label:(0,i.jsx)(p(),{href:j.Z.ABANDONMENT,children:"Abandonment"}),icon:(0,i.jsx)(w.Z,{width:16,height:16}),onClick:()=>M("abandonment")}]),...(0,E.f)(null==P?void 0:null===(s=P.BLOG)||void 0===s?void 0:s.READ,[{key:"blog",label:(0,i.jsx)(p(),{href:j.Z.BLOG,children:"Blog"}),icon:(0,i.jsx)(C.Z,{width:16,height:16}),onClick:()=>M("blog")}]),...(0,E.f)(null==P?void 0:null===(d=P.OUR_PARTNERS)||void 0===d?void 0:d.READ,[{key:"our-partners",label:(0,i.jsx)(p(),{href:j.Z.OUR_PARTNERS,children:"Our Partners"}),icon:(0,i.jsx)(T.Z,{width:16,height:16}),onClick:()=>M("our-partners")}]),...(0,E.f)(null==P?void 0:null===(u=P.CONTENT_MANAGEMENT)||void 0===u?void 0:u.READ,[{key:"content",label:"Content Management",icon:(0,i.jsx)(O.Z,{width:16,height:16}),children:[{key:"content-banners",label:(0,i.jsx)(p(),{href:j.Z.CONTENT_BANNER,children:"Banners"}),onClick:()=>M("content-banners")},{key:"content-reviews",label:(0,i.jsx)(p(),{href:j.Z.CONTENT_REVIEW,children:"Customer Reviews"}),onClick:()=>M("content-reviews")},{key:"content-videos",label:(0,i.jsx)(p(),{href:j.Z.CONTENT_VIDEO,children:"Product Videos"}),onClick:()=>M("content-videos")},{key:"content-popups",label:(0,i.jsx)(p(),{href:j.Z.CONTENT_POPUP,children:"Popups"}),onClick:()=>M("content-popups")}]}]),...(0,E.f)(null==P?void 0:null===(m=P.USER)||void 0===m?void 0:m.READ,[{key:"user",label:(0,i.jsx)(p(),{href:j.Z.USER,children:"User"}),icon:(0,i.jsx)(I.Z,{width:16,height:16}),onClick:()=>M("user")}]),...(0,E.f)(null==P?void 0:null===(h=P.ROLE)||void 0===h?void 0:h.READ,[{key:"role",label:(0,i.jsx)(p(),{href:j.Z.ROLE,children:"Role"}),icon:(0,i.jsx)(k.Z,{width:16,height:16}),onClick:()=>M("role")}]),...(0,E.f)(null==P?void 0:null===(f=P["SYSTEM_CONFIG/CATEGORY"])||void 0===f?void 0:f.READ,[{key:"system-config",label:(0,i.jsx)(p(),{href:j.Z.SYSTEM_CONFIG,children:"System Config"}),icon:(0,i.jsx)(S.Z,{width:16,height:16}),onClick:()=>M("category")}])];return(0,i.jsx)(A.Z,{theme:"light",mode:"inline",defaultOpenKeys:g||[],defaultSelectedKeys:v,items:U,className:"h-full font-medium"})};var P=t(63309);let{Sider:M,Content:U}=o.default;var G=e=>{let{children:n,user:t,activeMenu:u=[],activeDropdown:m=[],seoConfig:p,withPadding:h=!0,card:f=!0,contentClassName:x}=e,g=(0,s.ac)("(max-width: 768px)"),[A,j]=(0,r.useState)(!1),[E,R]=(0,r.useState)(!1);return(0,i.jsx)(c.H,{user:t,children:(0,i.jsxs)(o.default,{className:"!min-h-screen",children:[(0,i.jsx)(a.PB,{...p}),(0,i.jsx)(N,{isMobile:g,isDrawerOpen:E,setIsDrawerOpen:R,collapsed:A,setCollapsed:j,fullName:(null==t?void 0:t.firstName)+" "+(null==t?void 0:t.lastName)||""}),(0,i.jsx)("div",{className:"mt-[64px]"}),(0,i.jsxs)(o.default,{hasSider:!0,style:{minHeight:"100%"},children:[g?(0,i.jsx)(l.Z,{placement:"left",open:E,onClose:()=>R(!1),width:"250px",styles:{body:{padding:0}},closable:!1,children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)("div",{className:"py-2",children:(0,i.jsx)(v(),{src:d.Z,alt:"Samugiken",className:"w-[100%] h-[70px]"})}),(0,i.jsx)(D,{activeMenu:u,activeDropdown:m})]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:A?"duration-200 ml-[80px]":"duration-200 ml-[250px]"}),(0,i.jsx)(M,{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,i.jsx)(D,{activeMenu:u,activeDropdown:m})})]}),(0,i.jsx)(U,{className:(0,P.cn)("min-h-full",h&&"px-3 py-5 md:p-9"),children:(0,i.jsx)("div",{className:(0,P.cn)(f&&"rounded-lg bg-white p-8 shadow-sm",x),children:n})})]})]})})}},5409:function(e,n,t){"use strict";t.d(n,{J:function(){return l}});var i=t(15989),r=t(39771),a=t(91340);let o=i.Z.create({baseURL:r.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 l=i.Z.create({baseURL:r.T5+"/api",headers:{"Content-Type":"multipart/form-data"},maxContentLength:1/0,maxBodyLength:1/0,withCredentials:!0});n.Z=o},85304:function(e,n,t){"use strict";t.d(n,{H:function(){return p},a:function(){return h}});
1var i=t(52676),r=t(75271),a=t(76517),o=t(73414),l=t(71030),s=t(83214),c=t(62581),d=t(69504),u=t(91340);let m=(0,r.createContext)(null),p=e=>{let{children:n,user:t}=e,p=(0,o.useRouter)(),{mutate:h}=(0,l.D)({mutationFn:d.kS,onError:e=>a.Am.error((0,s._g)(e)),onSuccess:()=>{p.push(c.Z.LOGIN)}});return(0,r.useEffect)(()=>{t?(0,u.hv)():(0,u.wN)()},[t]),(0,i.jsx)(m.Provider,{value:{user:t,logout:h},children:n})},h=()=>{let e=(0,r.useContext)(m);if(!e)throw Error("useAuth must be used within a AuthProvider");return e}},86516:function(e,n,t){"use strict";var i=t(52676),r=t(43532),a=t(78051),o=t(57786),l=t(57065),s=t(29607),c=t(76517),d=t(39771),u=t(83471),m=t(88290);let{Dragger:p}=r.default;n.Z=e=>{let{value:n,onChange:t,disabled:h,aspect:f}=e;if(n)return(0,i.jsxs)("div",{className:"relative w-full h-32",children:[(0,i.jsx)("img",{src:n.url,alt:n.name,className:"object-contain w-full h-full rounded-lg border border-gray-200 bg-neutral-50"}),(0,i.jsx)("div",{className:"absolute top-2 right-2",children:(0,i.jsx)(a.ZP,{danger:!0,size:"small",icon:(0,i.jsx)(l.Z,{size:12}),onClick:()=>t(null),disabled:h})})]});let x=(0,i.jsxs)(p,{disabled:h,customRequest:e=>(0,u.c)(m.T.CONTENT_IMAGE,e),showUploadList:!1,onChange:e=>{"done"===e.file.status&&t(e.file.response)},beforeUpload:e=>!(e.size/1024/1024>d.Pg)||(c.Am.error("File too large (max ".concat(d.Pg,"MB)")),r.default.LIST_IGNORE),children:[(0,i.jsx)(s.Z,{size:40,className:"mx-auto"}),(0,i.jsx)("p",{children:"Click or drag image to upload"})]});return(0,i.jsx)("div",{className:"h-32 [&_.ant-upload-wrapper]:!h-full [&_.ant-upload-drag]:!h-full",children:f?(0,i.jsx)(o.Z,{aspect:f,children:x}):x})}},3023:function(e,n,t){"use strict";var i,r,a,o;t.d(n,{Bi:function(){return i},ZF:function(){return r},yD:function(){return l}}),(a=i||(i={})).HOME="HOME",a.COLLECTION="COLLECTION",(o=r||(r={})).HOME="HOME",o.WARRANTY_REGISTER="WARRANTY_REGISTER";let l={HOME:"Home Page",WARRANTY_REGISTER:"Warranty Register Success"}},83471:function(e,n,t){"use strict";t.d(n,{$:function(){return o},c:function(){return a}});var i=t(5409),r=t(22903);let a=async(e,n,t)=>{let a=new FormData;a.append("file",n.file);try{let o=await i.J.post(null!=t?t:"/file/upload/".concat(e),a),l=(0,r.I)(o.data.key),s={uid:o.data.refId,name:o.data.name,url:l,status:"done",type:n.file.type,originFileObj:n.file};n.onSuccess(s)}catch(e){n.onError(e)}},o=async(e,n,t)=>{let a=new FormData;a.append("video",n.file);try{let o=await i.J.post(null!=t?t:"/video/upload/".concat(e),a),l=(0,r.I)(o.data.key),s={uid:o.data.refId,name:o.data.name,url:l,status:"done",type:n.file.type,originFileObj:n.file};return n.onSuccess(s),{success:!0,fileObject:s}}catch(e){return n.onError(e),{success:!1,error:e.response.data.message}}}},88290:function(e,n,t){"use strict";var i,r,a,o;t.d(n,{T:function(){return i},Z:function(){return r}}),(a=i||(i={})).PRODUCT_IMAGE="product-image",a.BLOG_IMAGE="blog-image",a.WARRANTY_CLAIM="warranty-claim",a.REVIEW="review",a.CONTENT_IMAGE="content-image",(o=r||(r={})).warranty_claim="warranty-claim",o.description="product-description",o.review="review"},52600:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return Z},default:function(){return w}});var i=t(52676),r=t(69834),a=t(9059),o=t(49810),l=t(3023),s=t(32218),c=t(75271),d=t(69947),u=t(71030),m=t(3833),p=t(4948),h=t(21844),f=t(39649),x=t(15036),g=t(78051),v=t(76517),N=t(83214),A=t(22903),j=t(9482),E=t(86516);let R=["content","popups"],y=e=>({uid:e.refId,name:e.name,url:(0,A.I)(e.key),status:"done"});var b=e=>{var n;let{page:t,title:a,popup:o,canEdit:A}=e,b=(0,d.NL)(),[Z,w]=(0,c.useState)(null),[C,T]=(0,c.useState)(null),[O,I]=(0,c.useState)(""),[k,S]=(0,c.useState)(null),[_,D]=(0,c.useState)(""),[P,M]=(0,c.useState)(!0),U=t===l.ZF.WARRANTY_REGISTER,G=(0,r.a)({queryKey:["coupon","options"],queryFn:()=>(0,j.KV)({page:1,pageSize:100,status:!0}),select:e=>e.data.rows,enabled:U});(0,c.useEffect)(()=>{var e,n,t,i,r;w(o?y(o.desktopImage):null),T(o?y(o.mobileImage):null),I(null!==(n=null==o?void 0:o.link)&&void 0!==n?n:""),S(null!==(t=null==o?void 0:null===(e=o.coupon)||void 0===e?void 0:e.refId)&&void 0!==t?t:null),D(null!==(i=null==o?void 0:o.ctaText)&&void 0!==i?i:""),M(null===(r=null==o?void 0:o.active)||void 0===r||r)},[o]);let L=(0,u.D)({mutationFn:()=>(0,s.rR)({page:t,desktopImageId:Z.uid,mobileImageId:C.uid,link:U?null:O.trim()?O.trim():null,couponRefId:U?k:null,ctaText:_.trim()?_.trim():null,active:P}),onSuccess:()=>{b.invalidateQueries({queryKey:R})}});return(0,i.jsxs)(m.Z,{title:a,className:"mb-6",children:[(0,i.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("p",{className:"mb-1 text-sm",children:[(0,i.jsx)("span",{className:"text-red-500",children:"*"})," Desktop Image"]}),(0,i.jsx)(E.Z,{value:Z,onChange:w,disabled:!A||L.isPending})]}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("p",{className:"mb-1 text-sm",children:[(0,i.jsx)("span",{className:"text-red-500",children:"*"})," Mobile Image"]}),(0,i.jsx)(E.Z,{value:C,onChange:T,disabled:!A||L.isPending})]})]}),U?(0,i.jsxs)("div",{className:"mt-3",children:[(0,i.jsx)("p",{className:"mb-1 text-sm",children:"Voucher (optional)"}),(0,i.jsx)(p.default,{className:"w-full",allowClear:!0,showSearch:!0,optionFilterProp:"label",placeholder:"Select a voucher to grant on claim",value:k,onChange:e=>S(null!=e?e:null),loading:G.isLoading,disabled:!A||L.isPending,options:(null!==(n=G.data)&&void 0!==n?n:[]).map(e=>({label:e.title||e.refId,value:e.refId}))})]}):(0,i.jsxs)("div",{className:"mt-3",children:[(0,i.jsx)("p",{className:"mb-1 text-sm",children:"Link (optional)"}),(0,i.jsx)(h.default,{value:O,placeholder:"https://⦠(where the popup / button redirects)",onChange:e=>I(e.target.value),disabled:!A||L.isPending})]}),(0,i.jsxs)("div",{className:"mt-3",children:[(0,i.jsx)("p",{className:"mb-1 text-sm",children:"CTA button text (optional)"}),(0,i.jsx)(h.default,{value:_,placeholder:"e.g. Sign Up (leave blank to hide the button)",onChange:e=>D(e.target.value),disabled:!A||L.isPending})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 mt-3",children:[(0,i.jsx)(f.Z,{checked:P,onChange:M,disabled:!A||L.isPending}),(0,i.jsx)("span",{className:"text-sm",children:"Active"})]}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.Z,{}),(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsxs)(g.ZP,{type:"primary",onClick:()=>
1{if(!Z||!C){v.Am.error("Popup needs both a desktop and a mobile image");return}v.Am.promise(L.mutateAsync(),{pending:"Saving popup...",success:"Popup saved successfully",error:{render(e){let{data:n}=e;return"Failed to save popup: ".concat((0,N._g)(n))}}})},loading:L.isPending,disabled:L.isPending,children:["Save ",a]})})]})]})},Z=!0,w=e=>{var n,t,c,d,u;let{user:m}=e,p=!!(null===(n=m.role.accessRights)||void 0===n?void 0:n.CONTENT_MANAGEMENT.UPDATE)||!!(null===(t=m.role.accessRights)||void 0===t?void 0:t.CONTENT_MANAGEMENT.CREATE),h=(0,r.a)({queryKey:R,queryFn:()=>(0,s.ty)(),select:e=>e.data}),f=null!==(c=h.data)&&void 0!==c?c:[],x=null!==(d=f.find(e=>e.page===l.ZF.HOME))&&void 0!==d?d:null,g=null!==(u=f.find(e=>e.page===l.ZF.WARRANTY_REGISTER))&&void 0!==u?u:null;return(0,i.jsx)(o.Z,{user:m,activeMenu:["content-popups"],activeDropdown:["content"],children:h.isLoading?(0,i.jsx)("div",{className:"flex justify-center py-10",children:(0,i.jsx)(a.Z,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{page:l.ZF.HOME,title:"".concat(l.yD[l.ZF.HOME]," Popup"),popup:x,canEdit:p}),(0,i.jsx)(b,{page:l.ZF.WARRANTY_REGISTER,title:"".concat(l.yD[l.ZF.WARRANTY_REGISTER]," Popup"),popup:g,canEdit:p})]})})}},69504:function(e,n,t){"use strict";t.d(n,{A9:function(){return c},IU:function(){return a},c0:function(){return s},kS:function(){return o},o9:function(){return l},x4:function(){return r}});var i=t(5409);let r=async e=>i.Z.post("/auth/login",e),a=async e=>i.Z.post("/auth/signup",e),o=async()=>i.Z.post("/auth/logout"),l=async e=>i.Z.post("/auth/forget-password",e),s=async e=>i.Z.post("/auth/password-reset/confirm",e),c=async e=>i.Z.post("/auth/verify-user",e)},32218:function(e,n,t){"use strict";t.d(n,{IF:function(){return u},Ld:function(){return E},Up:function(){return f},Vj:function(){return A},WG:function(){return N},WK:function(){return x},ZS:function(){return h},du:function(){return a},fN:function(){return d},i6:function(){return c},it:function(){return s},n5:function(){return v},nA:function(){return r},o:function(){return m},r$:function(){return g},rR:function(){return l},ty:function(){return o},wl:function(){return p},xE:function(){return j}});var i=t(5409);let r=e=>i.Z.get("/admin/content/banners",{params:e?{page:e}:{}}),a=e=>i.Z.put("/admin/content/banners",e),o=()=>i.Z.get("/admin/content/popups"),l=e=>i.Z.put("/admin/content/popups",e),s=()=>i.Z.get("/admin/content/testimonials"),c=e=>i.Z.post("/admin/content/testimonials",e),d=(e,n)=>i.Z.put("/admin/content/testimonials/".concat(e),n),u=e=>i.Z.delete("/admin/content/testimonials/".concat(e)),m=e=>i.Z.put("/admin/content/testimonials/reorder",{refIds:e}),p=()=>i.Z.get("/admin/content/videos"),h=e=>i.Z.post("/admin/content/videos",e),f=(e,n)=>i.Z.put("/admin/content/videos/".concat(e),n),x=e=>i.Z.delete("/admin/content/videos/".concat(e)),g=e=>i.Z.put("/admin/content/videos/reorder",{refIds:e}),v=e=>i.Z.get("/public/content/banners",{params:{page:e}}),N=()=>i.Z.get("/public/content/testimonials"),A=()=>i.Z.get("/public/content/videos"),j=e=>i.Z.get("/public/content/popup",{params:{page:e}}),E=e=>i.Z.post("/public/content/popup/".concat(e,"/claim-voucher"))},9482:function(e,n,t){"use strict";t.d(n,{$T:function(){return c},CG:function(){return l},DE:function(){return a},KV:function(){return r},S8:function(){return d},VW:function(){return s},lk:function(){return o}});var i=t(5409);let r=e=>i.Z.get("/admin/coupon",{params:e}),a=e=>i.Z.get("/admin/coupon/".concat(e)),o=e=>i.Z.post("/admin/coupon",e),l=(e,n)=>i.Z.put("/admin/coupon/".concat(e),n),s=e=>i.Z.delete("/admin/coupon/".concat(e)),c=(e,n)=>i.Z.put("/admin/coupon/".concat(e,"/status"),n),d=e=>i.Z.get("/admin/coupon/redemptions",{params:e})},62581:function(e,n,t){"use strict";var i,r;t.d(n,{Z:function(){return i}}),(r=i||(i={})).LOGIN="/login",r.ADMIN_DASHBOARD="/admin/dashboard",r.HOME="/",r.USER="/admin/user",r.ROLE="/admin/role",r.NEW_ROLE="/admin/role/new",r.SYSTEM_CONFIG="/admin/system-config",r.PRODUCT="/admin/product",r.BLOG="/admin/blog",r.ORDER="/admin/order",r.ABANDONMENT="/admin/abandonment",r.WARRANTY_REGISTER="/admin/warranty-register",r.WARRANTY_CLAIM="/admin/warranty-claim",r.COUPON="/admin/coupon",r.OUR_PARTNERS="/admin/our-partners",r.REVIEW="/admin/review",r.CONTENT_BANNER="/admin/content/banners",r.CONTENT_REVIEW="/admin/content/reviews",r.CONTENT_VIDEO="/admin/content/videos",r.CONTENT_POPUP="/admin/content/popups"},26134:function(e,n,t){"use strict";t.d(n,{f:function(){return i}});let i=(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 a},i$:function(){return o}});var i=t(52043),r=t.n(i);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=r()(e);return e&&t.isValid()?r()(e).format("DD MMM YYYY, hh:mm a"):n||null}},22903:function(e,n,t){"use strict";t.d(n,{B:function(){return r},I:function(){return i}});let i=e=>"".concat("https://cdn.samugiken.com","/").concat("production","/").concat(encodeURIComponent(e)),r=e=>"".concat("https://cdn.samugiken.com","/").concat("production","/").concat(encodeURIComponent(e))},91340:function(e,n,t){"use strict";t.d(n,{Zd:function(){return a}
1,hv:function(){return l},rD:function(){return s},wN:function(){return o}});let i="session_id",r="session_header_enabled";function a(){try{let e=localStorage.getItem(i);if(e&&e.length>0)return e;let n="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():c();return localStorage.setItem(i,n),n}catch(e){return c()}}function o(){try{localStorage.setItem(r,"1")}catch(e){}}function l(){try{localStorage.setItem(r,"0"),localStorage.removeItem(i)}catch(e){}}function s(){try{return"1"===localStorage.getItem(r)}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)})}}},function(e){e.O(0,[5989,4237,7610,8174,9834,8051,9513,4540,928,4298,4190,6631,6220,9575,7444,9406,150,5934,9059,7645,3532,6138,9649,2329,2888,9774,179],function(){return e(e.s=57675)}),_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.