PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/my-warranty/[refId]-50c6090817e32baa.js

js samugiken.com collected 2026-10-07 01:51:23 UTC 23,875 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7028],{84386:function(e,r,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-warranty/[refId]",function(){return a(5952)}])},98131:function(e,r,a){"use strict";var t=a(52676),s=a(79406),l=a(78051);r.Z=e=>{let{visible:r,onOk:a,onCancel:n,title:i,content:d,danger:c=!1,okButtonText:u,cancelButtonText:o,loading:m,disabled:x}=e;return(0,t.jsxs)(s.Z,{open:r,title:i,footer:null,closeIcon:null,centered:!0,onCancel:()=>{x||null==n||n()},children:[d,(0,t.jsxs)("div",{className:"flex gap-5 mt-5",children:[(0,t.jsx)(l.ZP,{size:"large",onClick:n,block:!0,disabled:x,children:o||"Cancel"}),(0,t.jsx)(l.ZP,{size:"large",type:"primary",danger:c,onClick:a,block:!0,loading:m,disabled:x,children:u||"Ok"})]})]})}},46976:function(e,r,a){"use strict";var t=a(52676),s=a(75271),l=a(9059),n=a(96516),i=a(4948),d=a(89120),c=a.n(d);r.Z=e=>{let{fetchOptions:r,debounceTimeout:a=500,...d}=e,[u,o]=(0,s.useState)(!1),[m,x]=(0,s.useState)([]),[h,p]=(0,s.useState)(""),f=(0,s.useRef)(0),y=(0,s.useMemo)(()=>c()(e=>{f.current+=1;let a=f.current;r(e).then(e=>{a===f.current&&(x(e),o(!1))})},a),[r,a]),g=u?(0,t.jsx)("div",{className:"py-2 flex justify-center",children:(0,t.jsx)(l.Z,{size:"small"})}):(0,t.jsx)(n.Z,{});return(0,t.jsx)(i.default,{labelInValue:!0,filterOption:!1,onSearch:e=>{x([]),p(e),void 0!==e&&(o(!0),y(e))},onFocus:()=>{x([]),o(!0),y("")},notFoundContent:g,...d,options:m,showSearch:!0,loading:u,searchValue:h})}},99195:function(e,r,a){"use strict";var t=a(52676);a(32195);var s=a(79884),l=a(42148),n=a(6474),i=a(82948);let d=(0,s.M)({features:l.bV});r.Z=e=>{let{src:r,className:a}=e;return(0,t.jsx)("div",{className:a,style:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},children:(0,t.jsx)("div",{style:{position:"absolute",inset:0},children:(0,t.jsx)(d.Provider,{children:(0,t.jsx)(n.U,{children:(0,t.jsx)(i.n,{src:r,playsInline:!0,crossOrigin:"anonymous"})})})})})}},95809:function(e,r,a){"use strict";var t=a(75271);r.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[r,a]=(0,t.useState)(e);return{visible:r,open:()=>{a(!0)},close:()=>{a(!1)},toggle:()=>{a(e=>!e)}}}},83471:function(e,r,a){"use strict";a.d(r,{$:function(){return n},c:function(){return l}});var t=a(5409),s=a(22903);let l=async(e,r,a)=>{let l=new FormData;l.append("file",r.file);try{let n=await t.J.post(null!=a?a:"/file/upload/".concat(e),l),i=(0,s.I)(n.data.key),d={uid:n.data.refId,name:n.data.name,url:i,status:"done",type:r.file.type,originFileObj:r.file};r.onSuccess(d)}catch(e){r.onError(e)}},n=async(e,r,a)=>{let l=new FormData;l.append("video",r.file);try{let n=await t.J.post(null!=a?a:"/video/upload/".concat(e),l),i=(0,s.I)(n.data.key),d={uid:n.data.refId,name:n.data.name,url:i,status:"done",type:r.file.type,originFileObj:r.file};return r.onSuccess(d),{success:!0,fileObject:d}}catch(e){return r.onError(e),{success:!1,error:e.response.data.message}}}},88290:function(e,r,a){"use strict";var t,s,l,n;a.d(r,{T:function(){return t},Z:function(){return s}}),(l=t||(t={})).PRODUCT_IMAGE="product-image",l.BLOG_IMAGE="blog-image",l.WARRANTY_CLAIM="warranty-claim",l.REVIEW="review",l.CONTENT_IMAGE="content-image",(n=s||(s={})).warranty_claim="warranty-claim",n.description="product-description",n.review="review"},64453:function(e,r,a){"use strict";a.d(r,{Z:function(){return T}});var t=a(52676),s=a(71030),l=a(18060),n=a(79406),i=a(76517),d=a(83214),c=a(3716),u=a(15036),o=a(21844),m=a(88463),x=a(4948),h=a(87517),p=a(78051),f=a(43532),y=a(74563),g=a.n(y);a(41877);var j=a(72626),b=a(57418),N=a(52043),v=a.n(N),w=a(83471),I=a(88290),Z=a(46976),E=a(29607),P=a(22047),A=a(69834),O=a(75271),C=a(22903),S=a(63309),_=a(99195);let L=Object.values(b.Cw),R=Object.values(b.TT);var F=e=>{var r,a;let{isUserClaim:s=!0,fetchOptions:n,fileList:d,setFileList:y,videoFileList:N,setVideoFileList:F,selectedWarranty:T,selectedWarrantyClaim:D,selectedWarrantyId:k,setSelectedWarrantyId:M,onFinish:W,form:U,loading:Y,disabled:q,onCancel:H,readOnlyFieldsAsInfo:G=!1}=e,V={warrantyRefId:D?(null==D?void 0:D.refId)||null:(null==T?void 0:T.refId)||null,fullName:D?(null==D?void 0:D.fullName)||"":(null==T?void 0:T.fullName)||"",phoneNumber:D?(null==D?void 0:D.phoneNumber)||"":(null==T?void 0:T.phoneNumber)||"",emailAddress:D?(null==D?void 0:D.emailAddress)||"":(null==T?void 0:T.emailAddress)||"",dateOfPurchase:D?v()(D.dateOfPurchase):(null==T?void 0:T.dateOfPurchase)?v()(T.dateOfPurchase):null,placeOfPurchase:D?(null==D?void 0:D.placeOfPurchase)||null:(null==T?void 0:T.placeOfPurchase)||null,orderNumber:D?(null==D?void 0:D.orderNumber)||"":(null==T?void 0:T.orderNumber)||"",product:D&&(null==D?void 0:D.product)?{label:D.product.name||"",value:D.product.refId||""}:void 0,productId:D&&(null==D?void 0:null===(r=D.product)||void 0===r?void 0:r.refId)||"",reason:(null==D?void 0:D.reason)||"",images:[],video:null},[K,B]=(0,O.useState)(D?null:T||null),$=l.Z.useWatch("productType",U),z=l.Z.useWatch("productId",U),X=!!(K||T||k),J=(null==K?void 0:K.products)||(null==T?void 0:T.products)||[],Q=!!(q||D||s||X),ee=!!(G&&Q),er=e=>{let{name:r,label:a,formatter:s}=e;return(0,t.jsx)(l.Z.Item,{shouldUpdate:!0,label:a,children:()=>{let e=U.getFieldValue(r),a=s?s(e):e;return(0,t.jsx)("div",{className:"px-3 py-2 text-gray-700 border border-gray-200 rounded-md bg-gray-50",children:a||"-"})}})},ea=async e=>{if(!$)return[];let{data:r}=await (0,j.vd)($,e);return r.map(e=>({label:e.label,value:e.value}))},et=(0,t.jsxs)("button",{style:{border:0,background:"none"},type:"button",children:[(0,t.jsx)(E.Z,{}),(0,t.jsx)("div",{style:{marginTop:8},children:"Upload"})]}),es=e=>{U.setFieldsValue({warrantyRefId:e.refId||"",fullName:e.fullName||"",phoneNumber:e.phoneNumber||"",emailAddress:e.emailAddress||"",dateOfPurchase:e.dateOfPurchase?v()(e.dateOfPurchase):null,placeOfPurchase:e.placeOfPurchase||null,orderNumber:e.orderNumber||"",product:void 0,productId:"",reason:"",images:[]})};return(0,O.useEffect)(()=>{!D&&T&&(B(T),es(T))},[T,D,U]),(0,O.useEffect)(()=>{T||k||B(null)},[T,k]),(0,A.a)({queryKey:["product-warranty","warranty",k],queryFn:async()=>{let e=s?await (0,c.hH)({id:k}):await (0,c.li)({id:k});return e.data&&(B(e.data),es(e.data)),e},select:e=>e.data,enabled:!!k}),(0,t.jsxs)(l.Z,{form:U,onFinish:W,layout:"vertical",initialValues:{...V},children:[n&&M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z.Item,{label:"Warranty",name:"warrantyId",children:(0,t.jsx)(Z.Z,{fetchOptions:n,placeholder:"Start typing to search",onChange:e=>{e?(B(null),M(e.value)):(M(null),B(null),U.resetFields())},allowClear:!0})}),(0,t.jsx)(u.Z,{})]}),(0,t.jsx)(l.Z.Item,{name:"warrantyRefId",noStyle:!0}),(0,t.jsx)(l.Z.Item,{name:"fullName",label:"Full Name",rules:[{required:!0}],hidden:ee,children:(0,t.jsx)(o.default,{placeholder:"Enter your full name",disabled:Q})}),ee&&(0,t.jsx)(er,{name:"fullName",label:"Full Name"}),(0,t.jsx)(l.Z.Item,{name:"phoneNumber",label:"Phone Number",rules:[{required:!0}],hidden:ee,children:(0,t.jsx)(g(),{inputProps:{required:!0},country:"my",inputClass:"form-control",inputStyle:{width:"100%",borderRadius:"6px"},buttonStyle:{borderRadius:"6px 0px 0px 6px",backgroundColor:"#FFFFFF"},placeholder:"00-000 0000",disabled:Q})}),ee&&(0,t.jsx)(er,{name:"phoneNumber",label:"Phone Number"}),(0,t.jsx)(l.Z.Item,{name:"emailAddress",label:"Email Address",rules:[{required:!0,type:"email"}],hidden:ee,children:(0,t.jsx)(o.default,{type:"email",placeholder:"Enter your email address",disabled:Q})}),ee&&(0,t.jsx)(er,{name:"emailAddress",label:"Email Address"}),(0,t.jsx)(l.Z.Item,{name:"dateOfPurchase",label:"Date of Purchase",rules:[{required:!0,type:"date"}],hidden:ee,children:(0,t.jsx)(m.default,{className:"w-full",disabled:Q})}),ee&&(0,t.jsx)(er,{name:"dateOfPurchase",label:"Date of Purchase",formatter:e=>e?v()(e).format("YYYY-MM-DD"):"-"}),(0,t.jsx)(l.Z.Item,{name:"placeOfPurchase",label:"Place of Purchase",rules:[{required:!0}
1],hidden:ee,children:(0,t.jsx)(x.default,{options:[{label:"Choose place",value:null,disabled:!0},...R.map(e=>({label:(0,P.U$)(e),value:e}))],disabled:Q})}),ee&&(0,t.jsx)(er,{name:"placeOfPurchase",label:"Place of Purchase",formatter:e=>e?e===b.TT.EXPO_FAIR_WH_SALES?"Expo / Fair / Warehouse Sales":(0,P.U$)(e):"-"}),(0,t.jsx)(l.Z.Item,{name:"orderNumber",label:"Order Number / Invoice Number",rules:[{required:!0}],hidden:ee,children:(0,t.jsx)(o.default,{placeholder:"Enter the number",disabled:Q})}),ee&&(0,t.jsx)(er,{name:"orderNumber",label:"Order Number / Invoice Number"}),X?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(l.Z.Item,{name:"productId",label:"Registered Products",rules:[{required:!0}],children:(0,t.jsx)(h.ZP.Group,{className:"w-full",value:z,onChange:e=>{let r=e.target.value,a=J.find(e=>e.productId===r);U.setFieldValue("productId",r),a&&U.setFieldValue("product",{label:a.sku?"".concat(a.name," (").concat(a.sku,")"):a.name,value:r})},disabled:!!(q||D),children:(0,t.jsx)("div",{className:"flex flex-col w-full gap-2",children:J.map(e=>(0,t.jsxs)("label",{className:(0,S.cn)("flex cursor-pointer items-center justify-between gap-3 rounded-md border p-2 transition",z===e.productId?"border-blue-500 bg-blue-50":"border-gray-200 hover:bg-gray-50"),children:[(0,t.jsxs)("div",{className:"flex items-center flex-1 min-w-0 gap-3",children:[(0,t.jsx)("div",{className:"flex items-center justify-center flex-none w-12 h-12 overflow-hidden bg-white border border-gray-200 rounded-md",children:e.imageKey?(0,t.jsx)("img",{src:(0,C.I)(e.imageKey),alt:e.name,className:"object-contain w-full h-full"}):(0,t.jsx)("span",{className:"text-gray-400 text-[10px]",children:"No Image"})}),(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("div",{className:"text-sm font-medium leading-tight text-gray-900 break-words",children:e.name||"Unnamed product"})})]}),(0,t.jsx)("div",{className:"flex-none",children:(0,t.jsx)(h.ZP,{value:e.productId})})]},e.productId))})})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z.Item,{name:"productType",label:"Product Type",rules:[{required:!0}],children:(0,t.jsx)(x.default,{options:[{label:"Choose product type",value:null,disabled:!0},...L.map(e=>({label:(0,P.U$)(e),value:e}))],disabled:!!(q||D)})}),$&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z.Item,{name:"product",label:"".concat((0,P.U$)($)," Products"),rules:[{required:!0}],children:(0,t.jsx)(Z.Z,{fetchOptions:ea,placeholder:"Start typing to search",onChange:e=>U.setFieldValue("productId",e.value),disabled:!!(q||D)})}),(0,t.jsx)(l.Z.Item,{name:"productId",noStyle:!0})]})]}),(0,t.jsx)(l.Z.Item,{name:"reason",label:"Reason",rules:[{required:!0}],children:(0,t.jsx)(o.default.TextArea,{rows:5,placeholder:"Enter your reason"})}),(0,t.jsx)(l.Z.Item,{name:"video",label:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-red-500",children:"*"}),"Upload Video (Max: 1)"]}),extra:"Video duration only up to 1 minute 30 seconds.",children:N.length>0&&(null===(a=N[0].response)||void 0===a?void 0:a.url)?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex justify-center pb-3",children:(0,t.jsx)(_.Z,{src:N[0].response.url,className:"w-full h-64"})}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(p.ZP,{danger:!0,size:"large",onClick:()=>{F([])},children:"Remove"})})]}):(0,t.jsx)(f.default,{customRequest:async e=>{let r=await (0,w.$)(I.Z.warranty_claim,e,"/warranty/warranty-claim-video");r.success||i.Am.error(r.error)},fileList:N,onChange:e=>{let{fileList:r}=e;F(r)},listType:"picture-card",accept:"video/*",maxCount:1,children:N.length>=1?null:et})}),(0,t.jsx)(l.Z.Item,{name:"images",label:"Upload Photo (Max: 3)",children:(0,t.jsx)(f.default,{multiple:!0,customRequest:e=>(0,w.c)(I.T.WARRANTY_CLAIM,e,"/warranty/warranty-claim"),fileList:d,onChange:e=>{let{fileList:r}=e;y(r)},listType:"picture-card",accept:"image/*",maxCount:3,children:d.length>=3?null:et})}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(p.ZP,{block:!0,size:"large",type:"default",onClick:H,disabled:q,children:"Cancel"}),(0,t.jsx)(p.ZP,{block:!0,size:"large",type:"primary",htmlType:"submit",loading:Y,disabled:q,children:"Submit Claim"})]})]})},T=e=>{let{isUserClaim:r=!0,open:a,onSuccess:u,onClose:o,fetchOptions:m,setSelectedUserId:x,fileList:h,setFileList:p,videoFileList:f,setVideoFileList:y,selectedWarranty:g,selectedWarrantyClaim:j,selectedWarrantyId:b,setSelectedWarrantyId:N}=e,[v]=l.Z.useForm(),w=(0,s.D)({mutationFn:e=>(0,c.R8)(e),onSuccess:()=>{v.resetFields(),null==o||o(),u()}}),I=()=>{v.resetFields(),null==o||o(),null==x||x(null),null==N||N(null),y([]),p([])};return(0,t.jsx)(n.Z,{open:a,onCancel:I,footer:null,title:"Claim Warranty",closeIcon:null,centered:!0,children:(0,t.jsx)(F,{isUserClaim:r,readOnlyFieldsAsInfo:r,fetchOptions:m,fileList:h,setFileList:p,videoFileList:f,setVideoFileList:y,selectedWarrantyClaim:j,form:v,onFinish:e=>{var r;if(0===f.length){v.setFields([{name:"video",errors:["At least one video is required"]}]);return}let a=(h||[]).map(e=>e.response?e.response.uid:e.uid),t=(null===(r=f[0].response)||void 0===r?void 0:r.uid)||f[0].uid,{product:s,...l}=e,n={...l,images:a,video:t};i.Am.promise(w.mutateAsync(n),{pending:"Submitting warranty claim...",success:"Warranty claim submitted successfully",error:{render(e){let{data:r}=e;return"Error claiming warranty: ".concat((0,d._g)(r))}}})},selectedWarranty:g,selectedWarrantyId:b,setSelectedWarrantyId:N,loading:w.isPending,disabled:w.isPending,onCancel:I})})}},57418:function(e,r,a){"use strict";var t,s,l,n,i,d,c,u,o,m;a.d(r,{Cw:function(){return t},RL:function(){return i},TT:function(){return s},bR:function(){return n},e_:function(){return l}}),(d=t||(t={})).BABY_AND_MUMMY="BABY_AND_MUMMY",d.KITCHEN_APPLIANCES="KITCHEN_APPLIANCES",d.HOME_APPLIANCES="HOME_APPLIANCES",d.BEAUTY_AND_HEALTH="BEAUTY_AND_HEALTH",(c=s||(s={})).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",(u=l||(l={})).COMMENT="COMMENT",u.STATUS_CHANGE="STATUS_CHANGE",(o=n||(n={})).USER="USER",o.ADMIN="ADMIN",(m=i||(i={})).PENDING="PENDING",m.IN_PROCESSING="IN_PROCESSING",m.RESOLVED="RESOLVED",m.CLOSED="CLOSED"},22047:function(e,r,a){"use strict";a.d(r,{U$:function(){return n},rp:function(){return s},z2:function(){return l}});var t=a(57418);let s=e=>({[t.RL.PENDING]:"Pending",[t.RL.IN_PROCESSING]:"In Processing",[t.RL.RESOLVED]:"Resolved",[t.RL.CLOSED]:"Closed"})[e],l=e=>({[t.RL.PENDING]:"orange",[t.RL.IN_PROCESSING]:"blue",[t.RL.RESOLVED]:"green",[t.RL.CLOSED]:"default"})[e],n=e=>e.toLowerCase().replace(/[_-]/g," ").replace(/\b\w/g,e=>e.toUpperCase()).replace(/ And /g," & ")},5952:function(e,r,a){"use strict";a.r(r),a.d(r,{__N_SSP:function(){return A}});var t=a(52676),s=a(46980),l=a(33561),n=a(69834),i=a(3716),d=a(83214),c=a(78051),u=a(15036),o=a(34769),m=a(58612),x=a(25918),h=a(17332),p=a(1056),f=a(19676),y=a(19544),g=a(29656),j=a(27026),b=a.n(j),N=a(75271),v=a(95809),w=a(98131),I=a(64453),Z=a(32623),E=a.n(Z),P=a(22903),A=!0;r.default=e=>{let{user:r}=e,a=(0,l.useRouter)(),{refId:j}=a.query,[Z,A]=(0,N.useState)([]),[O,C]=(0,N.useState)([]),{visible:S,open:_,close:L}=(0,v.Z)(),{visible:R,open:F,close:T}=(0,v.Z)(),{data:D,isLoading:k,error:M}=(0,n.a)({queryKey:["warranty",j],enabled:!!j,queryFn:async()=>(await (0,i.hH)({id:j})).data});return k?(0,t.jsx)(s.Z,{user:r,children:(0,t.jsx)("div",{className:"flex justify-center items-center min-h-[60vh]",children:(0,t.jsx)("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-primary"})})}):M||!D?(0,t.jsx)(s.Z,{user:r,children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[60vh] gap-4",children:[(0,t.jsx)(o.Z,{className:"w-16 h-16 text-gray-300"}),(0,t.jsx)("p",{className:"text-gray-500 text-lg",children:"Warranty not found"}),(0,t.jsx)(b(),{href:"/my-profile?tab=warranties",children:(0,t.jsx)(c.ZP,{type:"primary",children:"Back to Warranties"})})]})}):(0,t.jsxs)(s.Z,{user:r,children:[(0,t.jsx)("div",{className:"min-h-screen bg-gray-50/50 pb-20",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 pt-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,t.jsxs)(b(),{href:"/my-profile?tab=warranties",className:"group flex items-center text-sm font-medium text-gray-500 hover:text-gray-900 transition-colors",children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-full bg-white border border-gray-200 flex items-center justify-center mr-3 group-hover:border-gray-300 transition-colors shadow-sm",children:(0,t.jsx)(m.Z,{className:"w-4 h-4"})}),"Back to Warranties"]}),(0,t.jsxs)("div",{className:"text-sm text-gray-400",children:["Warranty ID: ",(0,t.jsx)("span",{className:"font-mono text-gray-600",children:D.warrantyId})]})]}),(0,t.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden",children:[(0,t.jsx)("div",{className:"p-6 sm:p-8 border-b border-gray-100 bg-white",children:(0,t.jsx)("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-gray-900 mb-1",children:"Warranty Details"}),(0,t.jsxs)("p",{className:"text-gray-500 text-sm",children:["Registered on ",(0,d.i$)(D.dateOfPurchase,"MMMM DD, YYYY")]})]})})}),(0,t.jsxs)("div",{className:"p-6 sm:p-8 space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h2",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2",children:[(0,t.jsx)(o.Z,{className:"w-5 h-5 text-primary"}),"Registered Products"]}),(0,t.jsx)("div",{className:"bg-gray-50 rounded-xl p-4 border border-gray-100",children:D.products&&D.products.length>0?(0,t.jsx)("ul",{className:"space-y-4",children:D.products.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-start gap-4 text-sm text-gray-700",children:[(0,t.jsx)("div",{className:"relative flex-shrink-0 w-16 h-16 bg-white rounded-lg border border-gray-200 overflow-hidden",children:e.imageKey?(0,t.jsx)(E(),{src:(0,P.I)(e.imageKey),alt:e.name,fill:!0,className:"object-cover"}):(0,t.jsx)("div",{className:"flex items-center justify-center w-full h-full bg-gray-100",children:(0,t.jsx)(x.Z,{className:"w-6 h-6 text-gray-300"})})}),(0,t.jsxs)("div",{className:"flex-1 pt-1",children:[(0,t.jsx)("span",{className:"font-medium block text-gray-900",children:e.name}),e.sku&&(0,t.jsxs)("span",{className:"text-xs text-gray-500 block mt-1",children:["SKU: ",e.sku]})]})]},r))}):(0,t.jsx)("p",{className:"text-gray-500 text-sm italic",children:"No products listed"})})]}),(0,t.jsx)(u.Z,{}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h2",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2",children:[(0,t.jsx)(x.Z,{className:"w-5 h-5 text-gray-400"}),"Purchase Details"]}
1),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-1",children:"Order Number"}),(0,t.jsx)("p",{className:"text-gray-900 font-mono",children:D.orderNumber})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-1",children:"Place of Purchase"}),(0,t.jsx)("p",{className:"text-gray-900",children:D.placeOfPurchase?D.placeOfPurchase.replace(/_/g," "):"-"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-1",children:"Date of Purchase"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-gray-900",children:[(0,t.jsx)(h.Z,{className:"w-4 h-4 text-gray-400"}),(0,d.i$)(D.dateOfPurchase,"YYYY-MM-DD")]})]})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h2",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center gap-2",children:[(0,t.jsx)(p.Z,{className:"w-5 h-5 text-gray-400"}),"Customer Details"]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-1",children:"Full Name"}),(0,t.jsx)("p",{className:"text-gray-900",children:D.fullName})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-1",children:"Phone Number"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-gray-900",children:[(0,t.jsx)(f.Z,{className:"w-4 h-4 text-gray-400"}),D.phoneNumber]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-1",children:"Email Address"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-gray-900",children:[(0,t.jsx)(y.Z,{className:"w-4 h-4 text-gray-400"}),D.emailAddress]})]})]})]})]}),(0,t.jsx)(u.Z,{}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center pt-4 pb-2",children:[(0,t.jsxs)("div",{className:"bg-amber-50 rounded-lg p-4 mb-6 flex gap-3 max-w-lg w-full",children:[(0,t.jsx)(g.Z,{className:"w-5 h-5 text-amber-600 flex-shrink-0"}),(0,t.jsxs)("div",{className:"text-sm text-amber-900",children:[(0,t.jsx)("p",{className:"font-semibold mb-1",children:"Having issues with your product?"}),(0,t.jsx)("p",{children:"You can submit a warranty claim directly from here. Our team will review your request shortly."})]})]}),(0,t.jsx)(c.ZP,{type:"primary",size:"large",onClick:_,className:"w-full sm:w-auto min-w-[200px] h-12 text-base font-medium shadow-lg shadow-primary/20",children:"Claim Warranty"})]})]})]})]})}),(0,t.jsx)(w.Z,{visible:S,title:"Warranty Claim Confirmation",content:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm text-gray-700",children:"Are you experiencing product defects or other issues necessitating a warranty claim?"}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Please note: All warranty claims are logged in our database to prevent fraudulent or unsubstantiated requests."})]}),okButtonText:"Yes, I need to file a warranty claim",cancelButtonText:"No",onCancel:L,onOk:()=>{L(),F()}}),(0,t.jsx)(I.Z,{isUserClaim:!0,open:R,onClose:T,onSuccess:()=>{T(),a.push("/my-profile?tab=warranties")},fileList:Z,setFileList:A,videoFileList:O,setVideoFileList:C,selectedWarranty:D})]})}},3716:function(e,r,a){"use strict";a.d(r,{DQ:function(){return s},E0:function(){return g},Gt:function(){return o},JU:function(){return f},M1:function(){return j},ND:function(){return y},OR:function(){return x},R8:function(){return m},Y3:function(){return b},YE:function(){return n},YJ:function(){return u},e_:function(){return l},g5:function(){return p},hH:function(){return d},li:function(){return i},nf:function(){return h},wf:function(){return c}});var t=a(5409);let s=()=>t.Z.get("warranty"),l=()=>t.Z.get("warranty/claims"),n=e=>t.Z.get("admin/warranty",{params:e}),i=e=>t.Z.get("/admin/warranty/".concat(e.id)),d=e=>t.Z.get("/warranty/".concat(e.id)),c=e=>t.Z.post("warranty/register-warranty",e),u=(e,r)=>t.Z.post("admin/warranty/register",{...e,userId:r}),o=e=>t.Z.put("admin/warranty/".concat(e.warrantyId),e),m=e=>t.Z.post("warranty/claim-warranty",e),x=e=>t.Z.put("admin/claim/".concat(e.warrantyClaimId),e),h=(e,r)=>t.Z.put("admin/claim/".concat(e,"/status"),{status:r}),p=(e,r)=>t.Z.put("admin/claim/".concat(e,"/comment"),r),f=e=>t.Z.delete("/admin/warranty/".concat(e.id)),y=e=>t.Z.get("admin/claim",{params:e}),g=e=>t.Z.delete("/admin/claim/".concat(e.id)),j=e=>t.Z.get("/admin/claim/".concat(e.id)),b=e=>t.Z.get("/warranty/claims/".concat(e.id))}},function(e){e.O(0,[5989,4237,7610,8174,9834,8051,9513,4298,4190,6631,6220,9575,7444,9406,1887,8060,9
1059,9830,8463,3532,7476,7005,8510,6980,2888,9774,179],function(){return e(e.s=84386)}),_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.