PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/admin/warranty-claim/[warrantyClaimId]-32246a896171386f.js

js samugiken.com collected 2026-10-07 01:51:05 UTC 43,392 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1060,9810],{78835:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/warranty-claim/[warrantyClaimId]",function(){return n(18554)}])},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}},91709:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var a=n(75271),r=n(72128),i=n(97256),o=n(1923),l=n(86214),s=n(16248),c=n(82187),d=n.n(c),u=n(62803),m=n(71305),p=n(42684),h=n(95959),x=n(88859),f=n(84759),v=n(42446),g=n(38841);let y=(e,t,n,a,r)=>({background:e,border:"".concat((0,f.unit)(a.lineWidth)," ").concat(a.lineType," ").concat(t),["".concat(r,"-icon")]:{color:n}}),N=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:a,marginSM:r,fontSize:i,fontSizeLG:o,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:m,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:s,["&".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-content")]:{flex:1,minWidth:0},["".concat(t,"-icon")]:{marginInlineEnd:a,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:m},["&".concat(t,"-motion-leave")]:{overflow:"hidden",opacity:1,transition:"max-height ".concat(n," ").concat(c,", opacity ").concat(n," ").concat(c,",\n        padding-top ").concat(n," ").concat(c,", padding-bottom ").concat(n," ").concat(c,",\n        margin-bottom ").concat(n," ").concat(c)},["&".concat(t,"-motion-leave-active")]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),["".concat(t,"-with-description")]:{alignItems:"flex-start",padding:p,["".concat(t,"-icon")]:{marginInlineEnd:r,fontSize:d,lineHeight:0},["".concat(t,"-message")]:{display:"block",marginBottom:a,color:m,fontSize:o},["".concat(t,"-description")]:{display:"block",color:u}},["".concat(t,"-banner")]:{marginBottom:0,border:"0 !important",borderRadius:0}}},j=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:a,colorSuccessBg:r,colorWarning:i,colorWarningBorder:o,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:d,colorInfo:u,colorInfoBorder:m,colorInfoBg:p}=e;return{[t]:{"&-success":y(r,a,n,e,t),"&-info":y(p,m,u,e,t),"&-warning":y(l,o,i,e,t),"&-error":Object.assign(Object.assign({},y(d,c,s,e,t)),{["".concat(t,"-description > pre")]:{margin:0,padding:0}})}}},b=e=>{let{componentCls:t,iconCls:n,motionDurationMid:a,marginXS:r,fontSizeIcon:i,colorIcon:o,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},["".concat(t,"-close-icon")]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,f.unit)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",["".concat(n,"-close")]:{color:o,transition:"color ".concat(a),"&:hover":{color:l}}},"&-close-text":{color:o,transition:"color ".concat(a),"&:hover":{color:l}}}}};var E=(0,g.I$)("Alert",e=>[N(e),j(e),b(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:"".concat(e.paddingContentVerticalSM,"px ").concat(12,"px"),withDescriptionPadding:"".concat(e.paddingMD,"px ").concat(e.paddingContentHorizontalLG,"px")})),Z=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};let w={success:r.Z,info:s.Z,error:i.Z,warning:l.Z},A=e=>{let{icon:t,prefixCls:n,type:r}=e,i=w[r]||null;return t?(0,h.wm)(t,a.createElement("span",{className:"".concat(n,"-icon")},t),()=>({className:d()("".concat(n,"-icon"),t.props.className)})):a.createElement(i,{className:"".concat(n,"-icon")})},C=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:l}=e,s=!0===r||void 0===r?a.createElement(o.Z,null):r;return t?a.createElement("button",Object.assign({type:"button",onClick:i,className:"".concat(n,"-close-icon"),tabIndex:0},l),s):null},O=a.forwardRef((e,t)=>
1{let{description:n,prefixCls:r,message:i,banner:o,className:l,rootClassName:s,style:c,onMouseEnter:h,onMouseLeave:f,onClick:v,afterClose:g,showIcon:y,closable:N,closeText:j,closeIcon:b,action:w,id:O}=e,I=Z(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[R,S]=a.useState(!1),k=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:k.current}));let{getPrefixCls:_,direction:D,closable:M,closeIcon:P,className:L,style:T}=(0,x.dj)("alert"),z=_("alert",r),[H,U,G]=E(z),B=t=>{var n;S(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},W=a.useMemo(()=>void 0!==e.type?e.type:o?"warning":"info",[e.type,o]),Y=a.useMemo(()=>"object"==typeof N&&!!N.closeIcon||!!j||("boolean"==typeof N?N:!1!==b&&null!=b||!!M),[j,b,N,M]),F=!!o&&void 0===y||y,V=d()(z,"".concat(z,"-").concat(W),{["".concat(z,"-with-description")]:!!n,["".concat(z,"-no-icon")]:!F,["".concat(z,"-banner")]:!!o,["".concat(z,"-rtl")]:"rtl"===D},L,l,s,G,U),J=(0,m.Z)(I,{aria:!0,data:!0}),q=a.useMemo(()=>"object"==typeof N&&N.closeIcon?N.closeIcon:j||(void 0!==b?b:"object"==typeof M&&M.closeIcon?M.closeIcon:P),[b,N,M,j,P]),K=a.useMemo(()=>{let e=null!=N?N:M;if("object"==typeof e){let{closeIcon:t}=e;return Z(e,["closeIcon"])}return{}},[N,M]);return H(a.createElement(u.default,{visible:!R,motionName:"".concat(z,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:g},(t,r)=>{let{className:o,style:l}=t;return a.createElement("div",Object.assign({id:O,ref:(0,p.sQ)(k,r),"data-show":!R,className:d()(V,o),style:Object.assign(Object.assign(Object.assign({},T),c),l),onMouseEnter:h,onMouseLeave:f,onClick:v,role:"alert"},J),F?a.createElement(A,{description:n,icon:e.icon,prefixCls:z,type:W}):null,a.createElement("div",{className:"".concat(z,"-content")},i?a.createElement("div",{className:"".concat(z,"-message")},i):null,n?a.createElement("div",{className:"".concat(z,"-description")},n):null),w?a.createElement("div",{className:"".concat(z,"-action")},w):null,a.createElement(C,{isClosable:Y,prefixCls:z,closeIcon:q,handleClose:B,ariaProps:K}))}))});var I=n(30917),R=n(87660),S=n(58957),k=n(75470);let _=function(e){function t(){var e;return(0,I.Z)(this,t),e=(0,S.Z)(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,k.Z)(t,e),(0,R.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:n,children:r}=this.props,{error:i,info:o}=this.state,l=(null==o?void 0:o.componentStack)||null,s=void 0===e?(i||"").toString():e;return i?a.createElement(O,{id:n,type:"error",message:s,description:a.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?l:t)}):r}}])}(a.Component);O.ErrorBoundary=_;var D=O},4948:function(e,t,n){"use strict";var a=n(75271),r=n(82187),i=n.n(r),o=n(86169),l=n(18051),s=n(80661),c=n(57636),d=n(35582),u=n(12971),m=n(88859),p=n(22499),h=n(8154),x=n(52695),f=n(79038),v=n(56727),g=n(95519),y=n(94295),N=n(6180),j=n(52339),b=n(21383),E=n(67858),Z=n(48872),w=n(93053),A=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};let C="SECRET_COMBOBOX_MODE_DO_NOT_USE",O=a.forwardRef((e,t)=>{var n,r,d,O,I;let R;let{prefixCls:S,bordered:k,className:_,rootClassName:D,getPopupContainer:M,popupClassName:P,dropdownClassName:L,listHeight:T=256,placement:z,listItemHeight:H,size:U,disabled:G,notFoundContent:B,status:W,builtinPlacements:Y,dropdownMatchSelectWidth:F,popupMatchSelectWidth:V,direction:J,style:q,allowClear:K,variant:X,dropdownStyle:Q,transitionName:$,tagRender:ee,maxCount:et,prefix:en,dropdownRender:ea,popupRender:er,onDropdownVisibleChange:ei,onOpenChange:eo,styles:el,classNames:es}=e,ec=A(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:ed,getPrefixCls:eu,renderEmpty:em,direction:ep,virtual:eh,popupMatchSelectWidth:ex,popupOverflow:ef}=a.useContext(m.E_),{showSearch:ev,style:eg,styles:ey,className:eN,classNames:ej}=(0,m.dj)("select"),[,eb]=(0,N.ZP)(),eE=null!=H?H:null==eb?void 0:eb.controlHeight,eZ=eu("select",S),ew=eu(),eA=null!=J?J:ep,{compactSize:eC,compactItemClassnames:eO}=(0,y.ri)(eZ,eA),[eI,eR]=(0,g.Z)("select",X,k),eS=(0,x.Z)(eZ),[ek,e_,eD]=(0,b.Z)(eZ,eS),eM=a.useMemo(()=>{let{mode:t}=e;return"combobox"===t?void 0:t===C?"combobox":t},[e.mode]),eP="multiple"===eM||"tags"===eM,eL=(0,w.Z)(e.suffixIcon,e.showArrow),eT=null!==(n=null!=V?V:F)&&void 0!==n?n:ex,ez=(null===(r=null==el?void 0:el.popup)||void 0===r?void 0:r.root)||(null===(d=ey.popup)||void 0===d?void 0:d.root)||Q,eH=(0,Z.Z)(er||ea),{status:eU,hasFeedback:eG,isFormItemInput:eB,feedbackIcon:eW}=a.useContext(v.aM),eY=(0,u.F)(eU,W);R=void 0!==B?B:"combobox"===eM?null:(null==em?void 0:em("Select"))||a.createElement(p.Z,{componentName:"Select"});let{suffixIcon:eF,itemIcon:eV,removeIcon:eJ,clearIcon:eq}=(0,E.Z)(Object.assign(Object.assign({},ec),{multiple:eP,hasFeedback:eG,feedbackIcon:eW,showSuffixIcon:eL,prefixCls:eZ,componentName:"Select"})),eK=(0,l.Z)(ec,["suffixIcon","itemIcon"]),eX=i()((null===(O=null==es?void 0:es.popup)||void 0===O?void 0:O.root)||(null===(I=null==ej?void 0:ej.popup)||void 0===I?void 0:I.root)||P||L,{["".concat(eZ,"
1-dropdown-").concat(eA)]:"rtl"===eA},D,ej.root,null==es?void 0:es.root,eD,eS,e_),eQ=(0,f.Z)(e=>{var t;return null!==(t=null!=U?U:eC)&&void 0!==t?t:e}),e$=a.useContext(h.Z),e0=i()({["".concat(eZ,"-lg")]:"large"===eQ,["".concat(eZ,"-sm")]:"small"===eQ,["".concat(eZ,"-rtl")]:"rtl"===eA,["".concat(eZ,"-").concat(eI)]:eR,["".concat(eZ,"-in-form-item")]:eB},(0,u.Z)(eZ,eY,eG),eO,eN,_,ej.root,null==es?void 0:es.root,D,eD,eS,e_),e1=a.useMemo(()=>void 0!==z?z:"rtl"===eA?"bottomRight":"bottomLeft",[z,eA]),[e2]=(0,s.Cn)("SelectLike",null==ez?void 0:ez.zIndex);return ek(a.createElement(o.ZP,Object.assign({ref:t,virtual:eh,showSearch:ev},eK,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ey.root),null==el?void 0:el.root),eg),q),dropdownMatchSelectWidth:eT,transitionName:(0,c.m)(ew,"slide-up",$),builtinPlacements:(0,j.Z)(Y,ef),listHeight:T,listItemHeight:eE,mode:eM,prefixCls:eZ,placement:e1,direction:eA,prefix:en,suffixIcon:eF,menuItemSelectedIcon:eV,removeIcon:eJ,allowClear:!0===K?{clearIcon:eq}:K,notFoundContent:R,className:e0,getPopupContainer:M||ed,dropdownClassName:eX,disabled:null!=G?G:e$,dropdownStyle:Object.assign(Object.assign({},ez),{zIndex:e2}),maxCount:eP?et:void 0,tagRender:eP?ee:void 0,dropdownRender:eH,onDropdownVisibleChange:eo||ei})))}),I=(0,d.Z)(O,"dropdownAlign");O.SECRET_COMBOBOX_MODE_DO_NOT_USE=C,O.Option=o.Wx,O.OptGroup=o.Xo,O._InternalPanelDoNotUseOrYouWillBeFired=I,t.default=O},29080:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});let a=(0,n(35082).Z)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},27151:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});let a=(0,n(35082).Z)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},54144:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});let a=(0,n(35082).Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},78390:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});let a=(0,n(35082).Z)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},25770:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});let a=(0,n(35082).Z)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},25918:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});let a=(0,n(35082).Z)("shopping-bag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]])},1056:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});let a=(0,n(35082).Z)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},99195:function(e,t,n){"use strict";var a=n(52676);n(32195);var r=n(79884),i=n(42148),o=n(6474),l=n(82948);let s=(0,r.M)({features:i.bV});t.Z=e=>{let{src:t,className:n}=e;return(0,a.jsx)("div",{className:n,style:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},children:(0,a.jsx)("div",{style:{position:"absolute",inset:0},children:(0,a.jsx)(s.Provider,{children:(0,a.jsx)(o.U,{children:(0,a.jsx)(l.n,{src:t,playsInline:!0,crossOrigin:"anonymous"})})})})})}},49810:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var a=n(52676),r=n(75271),i=n(46035),o=n(33022),l=n(40150),s=n(28994),c=n(85304),d=n(4180),u=n(16624),m=n(27026),p=n.n(m),h=n(78051),x=n(98807),f=n(15036),v=n(32623),g=n.n(v);let y=e=>{let{isMobile:t,isDrawerOpen:n,setIsDrawerOpen:r,collapsed:i,setCollapsed:o,fullName:l}=e,{logout:s}=(0,c.a)();return(0,a.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,a.jsxs)("div",{className:"flex items-center h-full gap-2",children:[(0,a.jsx)(h.ZP,{onClick:()=>{t?r(!n):o(!i)},"aria-controls":"sidebar",className:"flex items-center justify-center w-8 px-1 py-0",icon:(0,a.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,a.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,a.jsx)(p(),{href:"/",className:"h-full",children:(0,a.jsx)(g(),{src:d.Z,alt:"Samugiken",className:"w-[100%] h-[60px]"})})]}),(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"flex items-center justify-center col-row",children:(0,a.jsx)(x.Z,{arrow:!0,placement:"bottomRight",overlayClassName:"shadow-[rgba(0,0,0,0.35)_0_5px_15px] rounded-xl top-10",trigger:["click"],dropdownRender:()=>(0,a.jsxs)("div",{className:"flex flex-col p-3 bg-white rounded-md shadow-md gap-y-1",children:[(0,a.jsx)(p(),{href:"/my-profile",className:"font-medium leading-[normal] text-primary hover:text-primary",children:(0,a.jsx)("div",{className:"cursor-pointer rounded-[4px]  p-3 duration-100 hover:bg-primary/10",children:"My Profile"})}),(0,a.jsx)(f.Z,{className:"!my-2"}),(0,a.jsx)(h.ZP,{type:"primary",danger:!0,onClick:s,children:"Logout"})]}),children:(0,a.jsxs)("div",{className:"flex items-center cursor-pointer gap-x-3",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 ml-2",children:(0,a.jsx)("span",{className:"font-semibold",children:l})}),(0,a.jsx)(u.ZP,{name:l,round:!0,maxInitials:1,size:"35",textSizeRatio:2,fgColor:"white",color:"black"})]})})})})]})};var N=n(73640),j=n(62581),b=n(26134),E=n(1952),Z=n(7144),w=n(42439),A=n(88483),C=n(42720),O=n(43146),I=n(57221),R=n(84176),S=n(54216),k=n(12285),_=n(20188),D=n(19254);let M=e=>{var t,n,i,o,l,s,d,u,m,h,x;let{activeMenu:f,activeDropdown:v}=e,[g,y]=(0,r.useState)(f),{user:M}=(0,c.a)(),P=null==M?void 0:M.role.accessRights,L=e=>{y([e])},T=[{key:"dashboard",label:(0,a.jsx)(p(),{href:j.Z.ADMIN_DASHBOARD,children:"Dashboard"}),icon:(0,a.jsx)(E.Z,{width:16,height:16}),onClick:()=>L("dashboard")},...(0,b.f)(null==P?void 0:null===(t=P.PRODUCT)||void 0===t?void 0:t.READ,[{key:"product",label:(0,a.jsx)(p(),{href:j.Z.PRODUCT,children:"Product"}),icon:(0,a.jsx)(Z.Z,{width:16,height:16}),onClick:()=>L("product")}]),...(0,b.f)(null==P?void 0:null===(n=P.REVIEW)||void 0===n?void 0:n.READ,[{key:"review",label:(0,a.jsx)(p(),{href:j.Z.REVIEW,children:"Reviews"}),icon:(0,a.jsx)(w.Z,{width:16,height:16}),onClick:()=>L("review")}]),...(0,b.f)(null==P?void 0:null===(i=P.WARRANTY)||void 0===i?void 0:i.READ,[{key:"warranty",label:"Warranty",icon:(0,a.jsx)(D.Z,{width:16,height:16}),children:[{key:"warranty-register",label:(0,a.jsx)(p(),{href:j.Z.WARRANTY_REGISTER,children:"Warranty Register"}),onClick:()=>L("warranty-register")},{key:"warranty-claim",label:(0,a.jsx)(p(),{href:j.Z.WARRANTY_CLAIM,children:"Warranty Claim"}),onClick:()=>L("warranty-claim")}]}]),...(0,b.f)(null==P?void 0:null===(o=P.COUPON)||void 0===o?void 0:o.READ,[{key:"c
1oupon",label:(0,a.jsx)(p(),{href:j.Z.COUPON,children:"Coupon"}),icon:(0,a.jsx)(A.Z,{width:16,height:16}),onClick:()=>L("coupon")}]),...(0,b.f)(null==P?void 0:null===(l=P.ORDER)||void 0===l?void 0:l.READ,[{key:"order",label:(0,a.jsx)(p(),{href:j.Z.ORDER,children:"Orders"}),icon:(0,a.jsx)(D.Z,{width:16,height:16}),onClick:()=>L("order")},{key:"abandonment",label:(0,a.jsx)(p(),{href:j.Z.ABANDONMENT,children:"Abandonment"}),icon:(0,a.jsx)(C.Z,{width:16,height:16}),onClick:()=>L("abandonment")}]),...(0,b.f)(null==P?void 0:null===(s=P.BLOG)||void 0===s?void 0:s.READ,[{key:"blog",label:(0,a.jsx)(p(),{href:j.Z.BLOG,children:"Blog"}),icon:(0,a.jsx)(O.Z,{width:16,height:16}),onClick:()=>L("blog")}]),...(0,b.f)(null==P?void 0:null===(d=P.OUR_PARTNERS)||void 0===d?void 0:d.READ,[{key:"our-partners",label:(0,a.jsx)(p(),{href:j.Z.OUR_PARTNERS,children:"Our Partners"}),icon:(0,a.jsx)(I.Z,{width:16,height:16}),onClick:()=>L("our-partners")}]),...(0,b.f)(null==P?void 0:null===(u=P.CONTENT_MANAGEMENT)||void 0===u?void 0:u.READ,[{key:"content",label:"Content Management",icon:(0,a.jsx)(R.Z,{width:16,height:16}),children:[{key:"content-banners",label:(0,a.jsx)(p(),{href:j.Z.CONTENT_BANNER,children:"Banners"}),onClick:()=>L("content-banners")},{key:"content-reviews",label:(0,a.jsx)(p(),{href:j.Z.CONTENT_REVIEW,children:"Customer Reviews"}),onClick:()=>L("content-reviews")},{key:"content-videos",label:(0,a.jsx)(p(),{href:j.Z.CONTENT_VIDEO,children:"Product Videos"}),onClick:()=>L("content-videos")},{key:"content-popups",label:(0,a.jsx)(p(),{href:j.Z.CONTENT_POPUP,children:"Popups"}),onClick:()=>L("content-popups")}]}]),...(0,b.f)(null==P?void 0:null===(m=P.USER)||void 0===m?void 0:m.READ,[{key:"user",label:(0,a.jsx)(p(),{href:j.Z.USER,children:"User"}),icon:(0,a.jsx)(S.Z,{width:16,height:16}),onClick:()=>L("user")}]),...(0,b.f)(null==P?void 0:null===(h=P.ROLE)||void 0===h?void 0:h.READ,[{key:"role",label:(0,a.jsx)(p(),{href:j.Z.ROLE,children:"Role"}),icon:(0,a.jsx)(k.Z,{width:16,height:16}),onClick:()=>L("role")}]),...(0,b.f)(null==P?void 0:null===(x=P["SYSTEM_CONFIG/CATEGORY"])||void 0===x?void 0:x.READ,[{key:"system-config",label:(0,a.jsx)(p(),{href:j.Z.SYSTEM_CONFIG,children:"System Config"}),icon:(0,a.jsx)(_.Z,{width:16,height:16}),onClick:()=>L("category")}])];return(0,a.jsx)(N.Z,{theme:"light",mode:"inline",defaultOpenKeys:v||[],defaultSelectedKeys:g,items:T,className:"h-full font-medium"})};var P=n(63309);let{Sider:L,Content:T}=o.default;var z=e=>{let{children:t,user:n,activeMenu:u=[],activeDropdown:m=[],seoConfig:p,withPadding:h=!0,card:x=!0,contentClassName:f}=e,v=(0,s.ac)("(max-width: 768px)"),[N,j]=(0,r.useState)(!1),[b,E]=(0,r.useState)(!1);return(0,a.jsx)(c.H,{user:n,children:(0,a.jsxs)(o.default,{className:"!min-h-screen",children:[(0,a.jsx)(i.PB,{...p}),(0,a.jsx)(y,{isMobile:v,isDrawerOpen:b,setIsDrawerOpen:E,collapsed:N,setCollapsed:j,fullName:(null==n?void 0:n.firstName)+" "+(null==n?void 0:n.lastName)||""}),(0,a.jsx)("div",{className:"mt-[64px]"}),(0,a.jsxs)(o.default,{hasSider:!0,style:{minHeight:"100%"},children:[v?(0,a.jsx)(l.Z,{placement:"left",open:b,onClose:()=>E(!1),width:"250px",styles:{body:{padding:0}},closable:!1,children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"py-2",children:(0,a.jsx)(g(),{src:d.Z,alt:"Samugiken",className:"w-[100%] h-[70px]"})}),(0,a.jsx)(M,{activeMenu:u,activeDropdown:m})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:N?"duration-200 ml-[80px]":"duration-200 ml-[250px]"}),(0,a.jsx)(L,{trigger:null,collapsible:!0,collapsed:N,theme:"light",width:250,className:"hide-scrollbar",style:{overflow:"scroll",position:"fixed",marginTop:"64px",left:0,top:0,bottom:0,zIndex:100},children:(0,a.jsx)(M,{activeMenu:u,activeDropdown:m})})]}),(0,a.jsx)(T,{className:(0,P.cn)("min-h-full",h&&"px-3 py-5 md:p-9"),children:(0,a.jsx)("div",{className:(0,P.cn)(x&&"rounded-lg bg-white p-8 shadow-sm",f),children:t})})]})]})})}},5409:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var a=n(15989),r=n(39771),i=n(91340);let o=a.Z.create({baseURL:r.T5+"/api",headers:{"Content-Type":"application/json"},withCredentials:!0});o.interceptors.request.use(e=>{if((0,i.rD)()){let t=(0,i.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 l=a.Z.create({baseURL:r.T5+"/api",headers:{"Content-Type":"multipart/form-data"},maxContentLength:1/0,maxBodyLength:1/0,withCredentials:!0});t.Z=o}
1,95809:function(e,t,n){"use strict";var a=n(75271);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,n]=(0,a.useState)(e);return{visible:t,open:()=>{n(!0)},close:()=>{n(!1)},toggle:()=>{n(e=>!e)}}}},85304:function(e,t,n){"use strict";n.d(t,{H:function(){return p},a:function(){return h}});var a=n(52676),r=n(75271),i=n(76517),o=n(73414),l=n(71030),s=n(83214),c=n(62581),d=n(69504),u=n(91340);let m=(0,r.createContext)(null),p=e=>{let{children:t,user:n}=e,p=(0,o.useRouter)(),{mutate:h}=(0,l.D)({mutationFn:d.kS,onError:e=>i.Am.error((0,s._g)(e)),onSuccess:()=>{p.push(c.Z.LOGIN)}});return(0,r.useEffect)(()=>{n?(0,u.hv)():(0,u.wN)()},[n]),(0,a.jsx)(m.Provider,{value:{user:n,logout:h},children:t})},h=()=>{let e=(0,r.useContext)(m);if(!e)throw Error("useAuth must be used within a AuthProvider");return e}},83471:function(e,t,n){"use strict";n.d(t,{$:function(){return o},c:function(){return i}});var a=n(5409),r=n(22903);let i=async(e,t,n)=>{let i=new FormData;i.append("file",t.file);try{let o=await a.J.post(null!=n?n:"/file/upload/".concat(e),i),l=(0,r.I)(o.data.key),s={uid:o.data.refId,name:o.data.name,url:l,status:"done",type:t.file.type,originFileObj:t.file};t.onSuccess(s)}catch(e){t.onError(e)}},o=async(e,t,n)=>{let i=new FormData;
1i.append("video",t.file);try{let o=await a.J.post(null!=n?n:"/video/upload/".concat(e),i),l=(0,r.I)(o.data.key),s={uid:o.data.refId,name:o.data.name,url:l,status:"done",type:t.file.type,originFileObj:t.file};return t.onSuccess(s),{success:!0,fileObject:s}}catch(e){return t.onError(e),{success:!1,error:e.response.data.message}}}},88290:function(e,t,n){"use strict";var a,r,i,o;n.d(t,{T:function(){return a},Z:function(){return r}}),(i=a||(a={})).PRODUCT_IMAGE="product-image",i.BLOG_IMAGE="blog-image",i.WARRANTY_CLAIM="warranty-claim",i.REVIEW="review",i.CONTENT_IMAGE="content-image",(o=r||(r={})).warranty_claim="warranty-claim",o.description="product-description",o.review="review"},57418:function(e,t,n){"use strict";var a,r,i,o,l,s,c,d,u,m;n.d(t,{Cw:function(){return a},RL:function(){return l},TT:function(){return r},bR:function(){return o},e_:function(){return i}}),(s=a||(a={})).BABY_AND_MUMMY="BABY_AND_MUMMY",s.KITCHEN_APPLIANCES="KITCHEN_APPLIANCES",s.HOME_APPLIANCES="HOME_APPLIANCES",s.BEAUTY_AND_HEALTH="BEAUTY_AND_HEALTH",(c=r||(r={})).LAZADA="LAZADA",c.SHOPEE="SHOPEE",c.WOW_SHOP="WOW_SHOP",c.WEBSITE="WEBSITE",c.TIK_TOK="TIK_TOK",c.PG_MALL="PG_MALL",c.ZALORA="ZALORA",c.OFFLINE_DEALER="OFFLINE_DEALER",c.EXPO_FAIR_WH_SALES="EXPO_FAIR_WH_SALES",c.WALK_IN="WALK_IN",(d=i||(i={})).COMMENT="COMMENT",d.STATUS_CHANGE="STATUS_CHANGE",(u=o||(o={})).USER="USER",u.ADMIN="ADMIN",(m=l||(l={})).PENDING="PENDING",m.IN_PROCESSING="IN_PROCESSING",m.RESOLVED="RESOLVED",m.CLOSED="CLOSED"},22047:function(e,t,n){"use strict";n.d(t,{U$:function(){return o},rp:function(){return r},z2:function(){return i}});var a=n(57418);let r=e=>({[a.RL.PENDING]:"Pending",[a.RL.IN_PROCESSING]:"In Processing",[a.RL.RESOLVED]:"Resolved",[a.RL.CLOSED]:"Closed"})[e],i=e=>({[a.RL.PENDING]:"orange",[a.RL.IN_PROCESSING]:"blue",[a.RL.RESOLVED]:"green",[a.RL.CLOSED]:"default"})[e],o=e=>e.toLowerCase().replace(/[_-]/g," ").replace(/\b\w/g,e=>e.toUpperCase()).replace(/ And /g," & ")},18554:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return er},default:function(){return ei}});var a=n(52676),r=n(49810),i=n(95809),o=n(83471),l=n(88290),s=n(75271),c=n(79406),d=n(91709),u=n(57722),m=n(35082);let p=(0,m.Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var h=n(57418),x=n(22047),f=e=>{let{visible:t,currentStatus:n,newStatus:r,onConfirm:i,onCancel:o,loading:l=!1}=e;return(0,a.jsx)(c.Z,{title:"Confirm Status Change",open:t,onOk:i,onCancel:o,okText:"Confirm Change",cancelText:"Cancel",confirmLoading:l,children:(0,a.jsx)(d.Z,{message:"Status Change Confirmation",description:(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsx)("p",{children:"You are about to change the claim status:"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 my-3",children:[(0,a.jsx)(u.Z,{color:(0,x.z2)(n),children:(0,x.rp)(n)}),(0,a.jsx)(p,{size:16}),(0,a.jsx)(u.Z,{color:(0,x.z2)(r),children:(0,x.rp)(r)})]}),(0,a.jsxs)("p",{className:"text-gray-600",children:["This action will be logged in the activity history.",r===h.RL.CLOSED&&" Note: This case will be closed."]})]}),type:"warning",showIcon:!0})})},v=n(3716),g=n(83214),y=n(22903),N=n(69834),j=n(71030),b=n(56220),E=n(4948),Z=n(21844),w=n(18060),A=n(29350),C=n(77471),O=n(3833),I=n(8478),R=n(97897),S=n(43532),k=n(78051),_=n(29289),D=n(52043),M=n.n(D),P=n(1056),L=n(25918),T=n(7144);let z=(0,m.Z)("file-image",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]),H=(0,m.Z)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),U=(0,m.Z)("upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var G=n(25770);let B=(0,m.Z)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
1-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),W=(0,m.Z)("paperclip",[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]]);var Y=n(54144),F=n(20188),V=n(29080),J=n(27151);let q=(0,m.Z)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var K=n(78390),X=n(33561),Q=n(76517),$=n(99195);let{Text:ee,Title:et}=b.default,{Option:en}=E.default,{TextArea:ea}=Z.default;var er=!0,ei=e=>{var t,n,c,d,m,b,Z,D,er,ei,eo,el,es,ec,ed,eu,em,ep,eh,ex,ef,ev,eg,ey,eN,ej,eb,eE,eZ,ew;let{user:eA}=e,{warrantyClaimId:eC}=(0,X.useRouter)().query,eO=(0,N.a)({queryKey:["warranty-claim",eC],queryFn:async()=>await (0,v.M1)({id:eC}),select:e=>e.data}),[eI]=w.Z.useForm(),{visible:eR,open:eS,close:ek}=(0,i.Z)(),e_=(null===(t=eO.data)||void 0===t?void 0:t.status)||h.RL.PENDING,[eD,eM]=(0,s.useState)(null),[eP,eL]=(0,s.useState)([]),[eT,ez]=(0,s.useState)(!1),[eH,eU]=(0,s.useState)(!1),eG=(0,j.D)({mutationFn:()=>(0,v.nf)(eC,eD),onSuccess:()=>{eO.refetch(),ez(!1),ek(),eM(null)}}),eB=(0,j.D)({mutationFn:()=>(0,v.g5)(eC,{...eI.getFieldsValue(),files:eP.map(e=>e.response.uid)}),onSuccess:()=>{eO.refetch(),eL([]),eI.resetFields(),eU(!1)}});return(0,a.jsxs)(r.Z,{user:eA,activeMenu:["warranty","warranty-claim"],activeDropdown:["warranty"],card:!1,children:[(0,a.jsx)("div",{className:"mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)(et,{level:2,className:"mb-2",children:["Warranty Claim #",null===(n=eO.data)||void 0===n?void 0:n.warrantyClaimId]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.Z,{color:(0,x.z2)((null===(c=eO.data)||void 0===c?void 0:c.status)||h.RL.PENDING),children:(0,x.rp)((null===(d=eO.data)||void 0===d?void 0:d.status)||h.RL.PENDING)}),(0,a.jsxs)(ee,{type:"secondary",className:"text-sm",children:["Created"," ",M()(null===(m=eO.data)||void 0===m?void 0:m.createdAt).format("MMM DD, YYYY")]})]})]})}),(0,a.jsxs)(A.Z,{gutter:[24,24],children:[(0,a.jsxs)(C.Z,{xs:24,lg:16,children:[(0,a.jsx)(O.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(P.Z,{size:16}),"Customer Information"]}),className:"!mb-6",children:(0,a.jsxs)(I.Z,{column:1,bordered:!0,children:[(0,a.jsx)(I.Z.Item,{label:"Full Name",children:null===(b=eO.data)||void 0===b?void 0:b.fullName}),(0,a.jsx)(I.Z.Item,{label:"Phone",children:null===(Z=eO.data)||void 0===Z?void 0:Z.phoneNumber}),(0,a.jsx)(I.Z.Item,{label:"Email",children:(0,a.jsx)("a",{href:"mailto:".concat(null===(D=eO.data)||void 0===D?void 0:D.emailAddress),children:null===(er=eO.data)||void 0===er?void 0:er.emailAddress})})]})}),(0,a.jsx)(O.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(L.Z,{size:16}),"Purchase Information"]}),className:"!mb-6",children:(0,a.jsxs)(I.Z,{column:1,bordered:!0,children:[(0,a.jsx)(I.Z.Item,{label:"Date of Purchase",children:M()(null===(ei=eO.data)||void 0===ei?void 0:ei.dateOfPurchase).format("MMM DD, YYYY")}),(0,a.jsx)(I.Z.Item,{label:"Place of Purchase",children:(null===(eo=eO.data)||void 0===eo?void 0:eo.placeOfPurchase)===h.TT.EXPO_FAIR_WH_SALES?"Expo / Fair / Warehouse Sales":(0,x.U$)((null===(el=eO.data)||void 0===el?void 0:el.placeOfPurchase)||"")}),(0,a.jsx)(I.Z.Item,{label:"Order Number",children:null===(es=eO.data)||void 0===es?void 0:es.orderNumber})]})}),(0,a.jsx)(O.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(T.Z,{size:16}),"Product Information"]}),className:"!mb-6",children:(0,a.jsxs)(I.Z,{column:1,bordered:!0,children:[(0,a.jsx)(I.Z.Item,{label:"Product Name",children:(null===(ed=eO.data)||void 0===ed?void 0:null===(ec=ed.product)||void 0===ec?void 0:ec.name)||"-"}),(0,a.jsx)(I.Z.Item,{label:"Product SKU",children:(null===(em=eO.data)||void 0===em?void 0:null===(eu=em.product)||void 0===eu?void 0:eu.sku)||"-"})]})}),(0,a.jsxs)(O.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(z,{size:16}),"Claim Details"]}
1),className:"!mb-6",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)(ee,{strong:!0,className:"block mb-2",children:"Reason"}),(0,a.jsx)("div",{className:"text-sm text-gray-700",children:(null===(ep=eO.data)||void 0===ep?void 0:ep.reason)||"-"})]}),((null===(eh=eO.data)||void 0===eh?void 0:eh.images)||[]).length>0&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)(ee,{strong:!0,className:"block mb-2",children:["Images (",((null===(ex=eO.data)||void 0===ex?void 0:ex.images)||[]).length,")"]}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-4",children:(0,a.jsx)(R.Z.PreviewGroup,{children:((null===(ef=eO.data)||void 0===ef?void 0:ef.images)||[]).map(e=>(0,a.jsx)(R.Z,{src:(0,y.I)(e.key||""),alt:e.name||"",className:"rounded-lg object-cover",style:{height:"150px"}},e.refId))})})]}),(null===(ev=eO.data)||void 0===ev?void 0:ev.video)&&(0,a.jsxs)("div",{children:[(0,a.jsx)(ee,{strong:!0,className:"block mb-2",children:"Video"}),(0,a.jsx)($.Z,{src:(0,y.B)((null===(eg=eO.data)||void 0===eg?void 0:eg.video.key)||""),className:"w-full rounded-lg"})]})]}),(0,a.jsx)(O.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(H,{size:16}),"Add Comment"]}),className:"!mb-6",children:(0,a.jsxs)(w.Z,{form:eI,onFinish:()=>{Q.Am.promise(eB.mutateAsync(),{pending:"Commenting warranty claim...",success:"Warranty claim commented successfully",error:{render(e){let{data:t}=e;return"Error commenting warranty claim: ".concat((0,g._g)(t))}}})},autoComplete:"off",children:[(0,a.jsx)(w.Z.Item,{name:"text",rules:[{required:!0,message:"Please enter a comment"},{min:10,message:"Comment must be at least 10 characters"}],children:(0,a.jsx)(ea,{rows:4,placeholder:"Enter your comment here...",showCount:!0,maxLength:1e3})}),(0,a.jsxs)(w.Z.Item,{label:"Attach Files (Optional)",children:[(0,a.jsx)(S.default,{multiple:!0,customRequest:e=>(0,o.c)(l.T.WARRANTY_CLAIM,e,"/admin/claim/comment-file"),beforeUpload:e=>!(e.size/1024/1024>5)||(Q.Am.error("File too large"),S.default.LIST_IGNORE),fileList:eP,onChange:e=>{let{fileList:t}=e;eL(t)},onRemove:e=>{eL(eP.filter(t=>t.uid!==e.uid))},maxCount:5,accept:".pdf,.doc,.docx,.jpg,.jpeg,.png",children:(0,a.jsx)(k.ZP,{icon:(0,a.jsx)(U,{size:16}),children:"Select Files"})}),(0,a.jsx)(ee,{type:"secondary",className:"block mt-2 text-xs",children:"Maximum file size: 5MB per file. Accepted: PDF, DOC, DOCX, JPG, PNG"})]}),(0,a.jsx)(w.Z.Item,{children:(0,a.jsx)(k.ZP,{type:"primary",htmlType:"submit",icon:(0,a.jsx)(G.Z,{size:16}),loading:eH,children:"Post Comment"})})]})}),(0,a.jsx)(O.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(B,{size:16}),"Activity History"]}),className:"!mb-6",children:(0,a.jsx)(_.Z,{children:((null===(ey=eO.data)||void 0===ey?void 0:ey.activities)||[]).map(e=>(0,a.jsxs)(_.Z.Item,{color:e.type===h.e_.STATUS_CHANGE?"blue":"green",children:[(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,a.jsx)(ee,{strong:!0,children:e.userType===h.bR.ADMIN?"Admin":"User"}),(0,a.jsxs)(ee,{type:"secondary",className:"text-xs",children:["•"," ",M()(e.createdAt).format("MMM DD, YYYY HH:mm")]})]}),(0,a.jsx)(ee,{type:"secondary",children:e.description})]}),e.type===h.e_.STATUS_CHANGE&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.Z,{color:(0,x.z2)(JSON.parse(e.data).from||h.RL.PENDING),children:JSON.parse(e.data).from?(0,x.rp)(JSON.parse(e.data).from):"N/A"}),(0,a.jsx)(p,{size:14}),(0,a.jsx)(u.Z,{color:(0,x.z2)(JSON.parse(e.data).to),children:(0,x.rp)(JSON.parse(e.data).to)})]}),e.type===h.e_.COMMENT&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"bg-gray-50 p-3 rounded-lg mb-2",children:(0,a.jsx)(ee,{children:JSON.parse(e.data).text})}),JSON.parse(e.data).files.length>0&&(0,a.jsx)("div",{className:"space-y-1",children:JSON.parse(e.data).files.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(W,{size:14}),(0,a.jsx)("a",{href:(0,y.I)(e.key),className:"text-blue-600 text-sm",children:e.name})]},e.refId))})]})]},e.refId))})})]}),(0,a.jsxs)(C.Z,{xs:24,lg:8,children:[(0,a.jsxs)(O.Z,{title:"Status Management",className:"!mb-6",children:[(0,a.jsx)(w.Z.Item,{label:"Current Status",className:"!mb-0",children:(0,a.jsxs)(E.default,{value:null===(eN=eO.data)||void 0===eN?void 0:eN.status,onChange:e=>{e!==e_&&(eM(e),eS())},children:[(0,a.jsx)(en,{value:h.RL.PENDING,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Y.Z,{size:16}),(0,a.jsx)("div",{children:"Pending"})]})}),(0,a.jsx)(en,{value:h.RL.IN_PROCESSING,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(F.Z,{size:16}),(0,a.jsx)("div",{children:"In Processing"})]})}),(0,a.jsx)(en,{value:h.RL.RESOLVED,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(V.Z,{size:16}),(0,a.jsx)("div",{children:"Resolved"})]})}),(0,a.jsx)(en,{value:h.RL.CLOSED,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(J.Z,{size:16}),(0,a.jsx)("div",{children:"Closed"})]})})]})}),(null===(ej=eO.data)||void 0===ej?void 0:ej.status)===h.RL.RESOLVED&&(0,a.jsx)(k.ZP,{type:"primary",ghost:!0,icon:(0,a.jsx)(q,{size:16}),onClick:()=>{eM(h.RL.IN_PROCESSING),eS()}
1,className:"w-full mt-6",children:"Reopen Claim"})]}),(0,a.jsx)(O.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(K.Z,{size:16}),"Claim Details"]}),className:"!mb-6",children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(ee,{type:"secondary",className:"block text-xs",children:"Claim ID"}),(0,a.jsx)(ee,{strong:!0,children:null===(eb=eO.data)||void 0===eb?void 0:eb.warrantyClaimId})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(ee,{type:"secondary",className:"block text-xs",children:"Created At"}),(0,a.jsx)(ee,{children:M()(null===(eE=eO.data)||void 0===eE?void 0:eE.createdAt).format("MMM DD, YYYY HH:mm")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(ee,{type:"secondary",className:"block text-xs",children:"Current Status"}),(0,a.jsx)(u.Z,{color:(0,x.z2)(e_),children:(0,x.rp)(e_)})]})]})})]})]}),(0,a.jsx)(f,{visible:eR,currentStatus:(null===(eZ=eO.data)||void 0===eZ?void 0:eZ.status)||h.RL.PENDING,newStatus:eD||(null===(ew=eO.data)||void 0===ew?void 0:ew.status)||h.RL.PENDING,onConfirm:()=>{Q.Am.promise(eG.mutateAsync(),{pending:"Updating warranty claim status...",success:"Warranty claim status updated successfully",error:{render(e){let{data:t}=e;return"Error updating warranty claim status: ".concat((0,g._g)(t))}}})},onCancel:()=>{ek(),eM(null)},loading:eT})]})}},69504:function(e,t,n){"use strict";n.d(t,{A9:function(){return c},IU:function(){return i},c0:function(){return s},kS:function(){return o},o9:function(){return l},x4:function(){return r}});var a=n(5409);let r=async e=>a.Z.post("/auth/login",e),i=async e=>a.Z.post("/auth/signup",e),o=async()=>a.Z.post("/auth/logout"),l=async e=>a.Z.post("/auth/forget-password",e),s=async e=>a.Z.post("/auth/password-reset/confirm",e),c=async e=>a.Z.post("/auth/verify-user",e)},3716:function(e,t,n){"use strict";n.d(t,{DQ:function(){return r},E0:function(){return g},Gt:function(){return u},JU:function(){return f},M1:function(){return y},ND:function(){return v},OR:function(){return p},R8:function(){return m},Y3:function(){return N},YE:function(){return o},YJ:function(){return d},e_:function(){return i},g5:function(){return x},hH:function(){return s},li:function(){return l},nf:function(){return h},wf:function(){return c}});var a=n(5409);let r=()=>a.Z.get("warranty"),i=()=>a.Z.get("warranty/claims"),o=e=>a.Z.get("admin/warranty",{params:e}),l=e=>a.Z.get("/admin/warranty/".concat(e.id)),s=e=>a.Z.get("/warranty/".concat(e.id)),c=e=>a.Z.post("warranty/register-warranty",e),d=(e,t)=>a.Z.post("admin/warranty/register",{...e,userId:t}),u=e=>a.Z.put("admin/warranty/".concat(e.warrantyId),e),m=e=>a.Z.post("warranty/claim-warranty",e),p=e=>a.Z.put("admin/claim/".concat(e.warrantyClaimId),e),h=(e,t)=>a.Z.put("admin/claim/".concat(e,"/status"),{status:t}),x=(e,t)=>a.Z.put("admin/claim/".concat(e,"/comment"),t),f=e=>a.Z.delete("/admin/warranty/".concat(e.id)),v=e=>a.Z.get("admin/claim",{params:e}),g=e=>a.Z.delete("/admin/claim/".concat(e.id)),y=e=>a.Z.get("/admin/claim/".concat(e.id)),N=e=>a.Z.get("/warranty/claims/".concat(e.id))},62581:function(e,t,n){"use strict";var a,r;n.d(t,{Z:function(){return a}}),(r=a||(a={})).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,t,n){"use strict";n.d(t,{f:function(){return a}});let a=(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 i},i$:function(){return o}});var a=n(52043),r=n.n(a);let i=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},o=(e,t)=>{let n=r()(e);return e&&n.isValid()?r()(e).format("DD MMM YYYY, hh:mm a"):t||null}},22903:function(e,t,n){"use strict";n.d(t,{B:function(){return r},I:function(){return a}});let a=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,t,n){"use strict";n.d(t,{Zd:function(){return i},hv:function(){return l},rD:function(){return s},wN:function(){return o}});let a="session_id",r="session_header_enabled";function i(){try{let e=localStorage.getItem(a);if(e&&e.length>0)return e;let t="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():c();return localStorage.setItem(a,t),t}catch(e){return c()}}function o(){try{localStorage.setItem(r,"1")}catch(e){}}function l(){try{localStorage.setItem(r,"0"),localStorage.removeItem(a)}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 t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},40595:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});
1var a=n(18415),r=function(e){if((0,a.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},i=function(e,t){if(!r(e))return!1;var n=document.createElement("div"),a=n.style[e];return n.style[e]=t,n.style[e]!==a};function o(e,t){return Array.isArray(e)||void 0===t?r(e):i(e,t)}},58957:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(45386),r=n(75526),i=n(22843);function o(e,t,n){return t=(0,a.Z)(t),(0,i.Z)(e,(0,r.Z)()?Reflect.construct(t,n||[],(0,a.Z)(e).constructor):t.apply(e,n))}}},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,7645,3532,7476,7206,7897,7165,2888,9774,179],function(){return e(e.s=78835)}),_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.