PageSourceSearch

https://shopaz.com/_next/static/chunks/955-d48dd222a4ac22c2.js

js shopaz.com collected 2026-10-02 01:44:21 UTC 22,504 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955],{14340:(e,t,l)=>{l.d(t,{I:()=>m,SQ:()=>x,_2:()=>f,hO:()=>p,mB:()=>g,rI:()=>c,ty:()=>u});var s=l(95155),a=l(36358),r=l(2642),n=l(87212),i=l(25352),o=l(93126),d=l(12115);let c=r.bL,u=r.l9,m=r.YJ;r.ZL,r.Pb,r.z6,d.forwardRef((e,t)=>{let{className:l,inset:i,children:o,...d}=e;return(0,s.jsxs)(r.ZP,{ref:t,className:(0,a.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",i&&"pl-8",l),...d,children:[o,(0,s.jsx)(n.A,{className:"ml-auto h-4 w-4"})]})}).displayName=r.ZP.displayName,d.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,s.jsx)(r.G5,{ref:t,className:(0,a.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",l),...n})}).displayName=r.G5.displayName;let x=d.forwardRef((e,t)=>{let{className:l,sideOffset:n=4,...i}=e;return(0,s.jsx)(r.ZL,{children:(0,s.jsx)(r.UC,{ref:t,sideOffset:n,className:(0,a.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",l),...i})})});x.displayName=r.UC.displayName;let f=d.forwardRef((e,t)=>{let{className:l,inset:n,...i}=e;return(0,s.jsx)(r.q7,{ref:t,className:(0,a.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:bg-black-black05",n&&"pl-8",l),...i})});f.displayName=r.q7.displayName;let p=d.forwardRef((e,t)=>{let{className:l,children:n,checked:o,...d}=e;return(0,s.jsxs)(r.H_,{ref:t,className:(0,a.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),checked:o,...d,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(r.VF,{children:(0,s.jsx)(i.A,{className:"h-4 w-4"})})}),n]})});p.displayName=r.H_.displayName,d.forwardRef((e,t)=>{let{className:l,children:n,...i}=e;return(0,s.jsxs)(r.hN,{ref:t,className:(0,a.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),...i,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(r.VF,{children:(0,s.jsx)(o.A,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=r.hN.displayName,d.forwardRef((e,t)=>{let{className:l,inset:n,...i}=e;return(0,s.jsx)(r.JU,{ref:t,className:(0,a.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",l),...i})}).displayName=r.JU.displayName;let g=d.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,s.jsx)(r.wv,{ref:t,className:(0,a.cn)("-mx-1 my-1 h-px bg-muted",l),...n})});g.displayName=r.wv.displayName},22334:(e,t,l)=>{l.d(t,{A:()=>D});var s=l(95155),a=l(12115),r=l(14340),n=l(79945),i=l(57552),o=l(96350),d=l(25159),c=l(95517),u=l(36358),m=l(88443);function x(e){let{reviewerName:t,text:l,rating:a,reviewDateTime:r}=e,n=r?(0,m.GP)(new Date(r),"dd.MM.yyyy"):"";return(0,s.jsxs)("article",{className:"flex flex-col items-start gap-2 w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center w-full h-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(c.A,{rating:a,size:"sm"}),(0,s.jsx)("span",{className:"text-sm font-semibold leading-[14px] tracking-[-0.01em] text-[#414344]",children:a.toFixed(1)})]}),n&&(0,s.jsx)("time",{dateTime:r,className:"text-sm font-semibold leading-5 tracking-[-0.01em] text-[#414344] shrink-0",children:n})]}),t&&(0,s.jsx)("p",{className:"text-sm font-semibold leading-5 tracking-[-0.01em] text-[#414344]",children:(0,u.UQ)(t)}),(0,s.jsx)("p",{className:"text-sm font-normal leading-5 tracking-[-0.01em] text-[#414344] w-full",children:l})]})}var f=l(46394),p=l(97003),g=l(70699),h=l(52619),v=l.n(h);let w="w-full md:w-[88px] lg:w-full h-10 shrink-0 rounded-[30px] border border-[#DADBDC] bg-white text-sm font-normal leading-5 tracking-[-0.01em] text-[#010101] hover:bg-[#FAFAFA] px-5 shadow-none";function A(e){var t,l,r,n,o,u,m,h,A,b,j;let{lang:N,product:y,locale:C,skuId:R}=e,k=null!=(j=y.Id)?j:y.id,{average:L,totalCount:E}=(0,i.c0)(k||"",R),F=(0,g.A)(e=>e.user),[D,S]=(0,a.useState)([]),[I,P]=(0,a.useState)(0),[Q,M]=(0,a.useState)(1),[B,T]=(0,a.useState)(4),[z,U]=(0,a.useState)(!1),[_,G]=(0,a.useState)(!1),Z=(0,a.useRef)([]),$=(0,a.useCallback)(e=>{var t,l,s;P(null!=(l=null==e||null==(t=e.range)?void 0:t.total)?l:0),S([...null!=(s=null==e?void 0:e.data)?s:[]]),U(!1)},[]),O=(0,a.useCallback)(async()=>{let e=await (0,i.gF)([k,R],1,B,"desc");return $(e),e},[k,R,B,$]),K=(0,a.useCallback)(async()=>{M(1),T(4);let e=async()=>{let e=await (0,i.gF)([k,R],1,4,"desc");return $(e),e};for(let t of[0,1500,4e3])await new Promise(e=>{let l=setTimeout(e,t);Z.current.push(l)}),await e()},[k,R,$]);(0,a.useEffect)(()=>()=>{Z.current.forEach(clearTimeout),Z.current=[]},[]),(0,a.useEffect)(()=>{T(4*Q)},[Q]),(0,a.useEffect)(()=>{M(1),T(4)},[k]),(0,a.useEffect)(()=>{k&&O()},[k,O]),(0,a.useEffect)(()=>{let e=()=>{K()};return window.addEventListener(f.K,e),()=>{window.removeEventListener(f.K,e)}},[K]);let Y=(0,i.F3)(D,I,B),W=D.length,q=W<Y,H=Q>
11,V=Y>4&&q,X=1===E?null==N||null==(t=N.productReviews)?void 0:t.reviewsCountLabelSingular:null==N||null==(l=N.productReviews)?void 0:l.reviewsCountLabelPlural;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row items-start gap-6 w-full",children:[(0,s.jsxs)("aside",{className:"flex flex-col items-stretch gap-4 w-full lg:w-[227px] shrink-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-4 w-full min-w-0 lg:flex-col lg:items-start lg:gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-4 lg:gap-2 shrink-0 h-6 lg:w-full",children:[(0,s.jsx)(c.A,{rating:L,size:"lg"}),(0,s.jsxs)("p",{className:"whitespace-nowrap text-lg font-semibold leading-[14px] tracking-[-0.01em] text-[#414344]",children:[L.toFixed(1)," ",null==N||null==(r=N.productReviews)?void 0:r.outOfFive]})]}),(0,s.jsxs)("p",{className:"flex-1 lg:flex-none min-w-0 lg:w-full whitespace-nowrap text-xs lg:text-sm font-semibold leading-5 tracking-[-0.01em] text-[#414344]",children:[E," ",X]})]}),(0,s.jsx)("div",{className:"w-full border-t border-[#F2F3F3]"}),F?(0,s.jsxs)("div",{className:"flex flex-col gap-4 w-full md:flex-row md:justify-between md:items-center lg:flex-col lg:items-start lg:gap-4",children:[(0,s.jsx)("p",{className:"text-lg font-bold leading-5 tracking-[-0.01em] text-[#414344] w-full",children:null==N||null==(n=N.productReviews)?void 0:n.rateProduct}),(0,s.jsx)(p.$,{type:"button",variant:"outline",className:w,onClick:()=>{F&&G(!0)},children:null==N||null==(o=N.order)?void 0:o.rate})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-4 w-full",children:[(0,s.jsx)("p",{className:"text-sm font-normal leading-5 tracking-[-0.01em] text-[#414344]",children:null==N||null==(u=N.productReviews)?void 0:u.logInToReview}),(0,s.jsx)(v(),{href:"/".concat(C,"/signin"),className:"w-full",children:(0,s.jsx)(p.$,{variant:"outline",className:w,children:null==N||null==(m=N.auth)?void 0:m.signIn})})]})]}),(0,s.jsx)("div",{className:"flex w-full flex-col items-start gap-4 flex-1 min-w-0 lg:mt-1",children:D.length>0?(0,s.jsxs)(s.Fragment,{children:[D.map((e,t)=>{var l,r;return(0,s.jsxs)(a.Fragment,{children:[t>0&&(0,s.jsx)("div",{className:"w-full border-t border-[#F2F3F3]"}),(0,s.jsx)(x,{reviewerName:e.reviewerName,text:e.text,rating:e.rating,reviewDateTime:e.reviewDateTime})]},"review-".concat(null!=(l=e.reviewDateTime)?l:t,"-").concat(null!=(r=e.reviewerName)?r:t))}),(V||H&&!q&&W>4)&&(0,s.jsx)(p.$,{type:"button",onClick:()=>{if(U(!0),q)return void M(e=>e+1);H&&M(1)},loading:z,variant:"outline",className:"self-center rounded-[30px] border border-[#DADBDC] text-sm font-normal leading-5 text-[#010101] hover:bg-[#FAFAFA] px-5 h-10 mt-2",children:V?null==N||null==(h=N.productReviews)?void 0:h.seeMore:null==N||null==(A=N.productReviews)?void 0:A.seeLess})]}):(0,s.jsx)("p",{className:"text-sm font-normal leading-5 tracking-[-0.01em] text-[#414344]",children:null==N||null==(b=N.productReviews)?void 0:b.noReviewsYet})})]}),(0,s.jsx)(d.A,{lang:N,productId:R||k||"",product:y,sellerName:null==y?void 0:y.seller,open:_,onOpenChange:G,onSuccess:()=>{K()}})]})}var b=l(17947);function j(e){let{ratingNumber:t,disabled:l,width:r=17,starColor:n="#D1404A",setRaiting:i,isMyOrdersPage:o}=e,[d,c]=(0,a.useState)(Math.round(t-1));return(0,a.useEffect)(()=>{c(Math.round(t-1))},[t]),(0,s.jsx)("div",{className:"flex",children:[0,1,2,3,4].map(e=>(0,s.jsxs)("svg",{onClick:()=>{!l&&(i&&i(e+1),c(e))},className:"".concat(!l&&"cursor-pointer"),width:r,height:r,viewBox:"0 0 ".concat(o?30:Math.max(r,17)," ").concat(o?20:Math.max(r,17)),fill:"none",children:[r<20&&(0,s.jsx)("path",{d:"M8.55935 12.9261L13.5292 16.0836L12.2103 10.1326L16.6011 6.12868L10.8191 5.60385L8.55935 0L6.29961 5.60385L0.517578 6.12868L4.90035 10.1326L3.58954 16.0836L8.55935 12.9261Z",fill:d>=e?n:o?"white":"#414344",...o?{stroke:n,strokeWidth:1}:{}}),r>=20&&(0,s.jsx)("path",{d:"M12 18.4847L19.416 23L17.448 14.49L24 8.76421L15.372 8.01368L12 0L8.628 8.01368L0 8.76421L6.54 14.49L4.584 23L12 18.4847Z",fill:d>=e?n:o?"white":"#777E90",...o?{stroke:n,strokeWidth:1}:{}})]},e))})}let N={src:"/_next/static/media/Default_avatar_profile.064a9b4b.jpg",height:600,width:600,blurDataURL:"data:image/jpeg;
1base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACqg//EAB0QAAECBwAAAAAAAAAAAAAAABIAEwMEERQVIpL/2gAIAQEAAT8Aen8uDcS3Cphr0v/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Af//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Af//Z",blurWidth:8,blurHeight:8};var y=l(63911),C=l(65138),R=l(20369),k=l(84205);function L(e){let{reviewerName:t,text:l,image:a,rating:r,reviewDateTime:n,locale:i}=e;return(0,s.jsxs)("div",{className:"flex align-top my-2 gap-2 w-full border-b-2 border-gray-shadow pb-4",children:[(0,s.jsx)("div",{children:(0,s.jsx)(y.A,{className:"bg-gray rounded-full",width:"48",height:"48",alt:"user-image",src:a||N})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)(b.A,{className:"font-medium",type:"p",children:(0,u.UQ)(t)}),(0,s.jsx)(j,{ratingNumber:r,disabled:!0})]}),(0,s.jsx)(b.A,{type:"p",className:"w-[80%] break-words",children:l}),(0,s.jsx)("div",{className:"flex gap-1 items-center ",children:n&&(0,s.jsx)(b.A,{type:"span",className:"text-gray-mid_shadow",children:(0,C.B)(new Date(n),new Date,{addSuffix:!0,locale:"al"===i?R.sq:k.c})})})]})]})}var E=l(67001),F=l(78415);function D(e){var t;let{lang:l,product:d,locale:c,showWithComments:m=!0,isMyOrdersPage:x=!1,skuId:f}=e,h=[{value:"asc",text:l.productReviews.Oldest},{value:"desc",text:l.productReviews.Newest}],[w,N]=(0,a.useState)(""),[C,R]=(0,a.useState)(0),[k,D]=(0,a.useState)(0),[S,I]=(0,a.useState)(1),[P,Q]=(0,a.useState)(4),[M,B]=(0,a.useState)(h[1]),T=(0,g.A)(e=>e.user),[z,U]=(0,a.useState)(),[_,G]=(0,a.useState)([]),{mutate:Z}=(0,i.gg)((null!=(t=d.Id)?t:d.id)||""),[$,O]=(0,a.useState)(!1),[K,Y]=(0,a.useState)(!1);(0,a.useEffect)(()=>()=>{clearTimeout(z)},[z]),(0,a.useEffect)(()=>{Q(3*S)},[S]);let W=async()=>{var e,t,l;let s=await (0,i.Gs)(null!=(t=d.Id)?t:d.id,1,P,M.value);R(null!=(l=null==s||null==(e=s.range)?void 0:e.total)?l:0),G([...s.data]),O(!1)};if((0,a.useEffect)(()=>{x&&M&&P&&W()},[x,M,P]),!x)return(0,s.jsx)(A,{lang:l,product:d,locale:c,skuId:f});let q=async()=>{var e;let t=null!=(e=null==_?void 0:_.length)?e:0;Y(!0);try{t<C?I(e=>e+1):I(1)}catch(e){console.error("Error loading comments:",e)}finally{Y(!1)}};return(0,s.jsxs)("div",{className:"flex flex-col px-1 pb-2 gap-2 ".concat(x&&"w-full lg:w-2/3"," self-start"),children:[T?(0,s.jsxs)("div",{className:"flex flex-col gap-2 w-full pb-2",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,s.jsxs)(b.A,{className:"text-[18px] font-bold text-black",children:[l.order.rate," ",l.shoppingCart.item]}),(0,s.jsx)(b.A,{className:"text-gray-mid_shadow !text-[14px]",children:l.productReviews.leaveReviewMyOrders})]}),(0,s.jsx)(E.T,{placeholder:l.productReviews.ShareYourThoughts,value:w,onChange:e=>{N(e.target.value)},className:"w-full border border-gray-200 rounded-lg p-3 min-h-[80px] resize-none focus:ring-0 focus:border-gray-300 text-sm",rows:3}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center items-start gap-3 mt-1",children:[(0,s.jsx)(j,{ratingNumber:k,setRaiting:D,width:20,isMyOrdersPage:!0,starColor:"#D1404A"}),(0,s.jsx)(p.$,{className:"px-6 rounded-full bg-[#E31B23] hover:bg-[#c4151c] text-white h-8 text-sm w-full sm:w-auto",onClick:()=>(O(!0),void(N(""),D(0),Z({rating:k,title:w,text:w,approved:!1},{onSuccess:()=>{var e,t;O(!1),(0,u.P0)(null==l||null==(e=l.productReviews)?void 0:e.successfullyPostReview,n.g0,"success");let s=(null==d?void 0:d.seller)||(null==d||null==(t=d.additionalInfo)?void 0:t.sellerName)||"",a=(null==w?void 0:w.length)||0;(0,F.W6)("Review Submitted",{Rating:k,"Store Name":s,"Comment Length":a}),U(setTimeout(()=>{W(),clearTimeout(z)},1500))},onError:e=>{var t;O(!1),(0,u.P0)((null==e?void 0:e.message)||(null==l||null==(t=l.productReviews)?void 0:t.errorPostingReview),n.pj,"error")}}))),loading:$,disabled:0===k||""===w,children:l.order.rate})]})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1 mb-4",children:[(0,s.jsx)(b.A,{className:"text-gray-mid_shadow !text-[16
1px]",children:l.productReviews.logInToReview}),(0,s.jsx)(v(),{href:"/signin",children:(0,s.jsx)(p.$,{children:l.auth.signIn})})]}),m&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsxs)(b.A,{type:"h3",className:"font-semibold",children:[C," ",C>1?l.productReviews.Comments:l.productReviews.Comment]}),C>0&&(0,s.jsxs)(r.rI,{children:[(0,s.jsxs)(r.ty,{className:"border-2 border-gray-shadow rounded-md px-2 py-1 flex items-center gap-3",children:[(0,s.jsx)(b.A,{type:"span",children:M.text}),(0,s.jsx)("span",{className:"rounded-full border-2 border-gray-shadow flex items-center justify-center w-[24px] h-[24px]",children:(0,s.jsx)(y.A,{className:"",width:"9",height:"6",alt:"down-icon",src:o.A})})]}),(0,s.jsx)(r.SQ,{className:"border-2 border-gray-shadow",children:h.map(e=>(0,s.jsx)(r._2,{className:"cursor-pointer",onClick:()=>{B(e)},children:e.text},"".concat(e.value)))})]})]}),(0,s.jsx)("div",{className:"flex flex-col",children:null==_?void 0:_.map((e,t)=>(0,a.createElement)(L,{lang:l,...e,key:"product_comment"+t,locale:c}))}),(null==_?void 0:_.length)>0&&(null==_?void 0:_.length)<=C&&(0,s.jsx)("div",{className:"w-full flex justify-center",children:(0,s.jsx)(p.$,{onClick:q,loading:K,className:"border-2",variant:"outline",children:(null==_?void 0:_.length)<C?"".concat(l.productReviews.seeMore):"".concat(l.productReviews.seeLess)})})]})]})}},25159:(e,t,l)=>{l.d(t,{A:()=>f});var s=l(95155),a=l(79945),r=l(95517),n=l(57552),i=l(97003),o=l(54679),d=l(33789),c=l(67001),u=l(78415),m=l(36358),x=l(12115);function f(e){var t,l,f,p,g,h;let{lang:v,productId:w,product:A,sellerName:b,open:j,onOpenChange:N,onSuccess:y}=e,[C,R]=(0,x.useState)(""),[k,L]=(0,x.useState)(""),[E,F]=(0,x.useState)(0),[D,S]=(0,x.useState)(!1),{mutate:I}=(0,n.gg)(w),P=()=>{R(""),L(""),F(0)};return(0,s.jsx)(o.lG,{open:j,onOpenChange:e=>{N(e),e||P()},children:(0,s.jsxs)(o.Cf,{className:"max-w-md rounded-lg border-[#F2F3F3] p-6",children:[(0,s.jsx)(o.c7,{className:"static bg-transparent p-0 mb-1 shadow-none",children:(0,s.jsx)(o.L3,{className:"text-left text-lg font-bold leading-5 tracking-[-0.01em] text-[#414344]",children:null==v||null==(t=v.productReviews)?void 0:t.yourRating})}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 pt-2",children:[(0,s.jsx)(r.A,{rating:E,size:"lg",interactive:!0,onChange:F}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("label",{htmlFor:"review-title",className:"text-sm font-semibold leading-5 tracking-[-0.01em] text-[#414344]",children:null==v||null==(l=v.productReviews)?void 0:l.reviewTitleLabel}),(0,s.jsx)(d.p,{id:"review-title",placeholder:null==v||null==(f=v.productReviews)?void 0:f.reviewTitlePlaceholder,value:C,onChange:e=>R(e.target.value),className:"h-10 w-full rounded-lg border border-[#DADBDC] bg-white px-3 text-sm font-normal leading-5 tracking-[-0.01em] text-[#414344] placeholder:text-[#9CA3AF] focus-visible:ring-0 focus-visible:border-[#414344]"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("label",{htmlFor:"review-description",className:"text-sm font-semibold leading-5 tracking-[-0.01em] text-[#414344]",children:null==v||null==(p=v.productReviews)?void 0:p.reviewDescriptionLabel}),(0,s.jsx)(c.T,{id:"review-description",placeholder:null==v||null==(g=v.productReviews)?void 0:g.reviewDescriptionPlaceholder,value:k,onChange:e=>L(e.target.value),className:"w-full min-h-[120px] resize-none rounded-lg border border-[#DADBDC] bg-white p-3 text-sm font-normal leading-5 tracking-[-0.01em] text-[#414344] placeholder:text-[#9CA3AF] focus-visible:ring-0 focus-visible:border-[#414344]",rows:4})]}),(0,s.jsx)(i.$,{type:"button",className:"h-12 w-full rounded-full bg-[#E42D45] hover:bg-[#c4151c] text-white text-sm font-semibold shadow-none",onClick:()=>{S(!0);let e=k.length;I({rating:E,title:C,text:k,approved:!0},{onSuccess:()=>{var t;S(!1),P(),N(!1),(0,m.P0)(null==v||null==(t=v.productReviews)?void 0:t.successfullyPostReview,a.g0,"success"),(0,u.W6)("Review Submitted",{Rating:E,"Store Name":b||(null==A?void 0:A.seller)||"","Comment Length":e}),null==y||y()},onError:e=>{var t;S(!1),(0,m.P0)((null==e?void 0:e.message)||(null==v||null==(t=v.productReviews)?void 0:t.errorPostingReview),a.pj,"error")}})},loading:D,disabled:0===E||""===C.trim()||""===k.trim(),children:null==v||null==(h=v.order)?void 0:h.rate})]})]})})}},33789:(e,t,l)=>{l.d(t,{p:()=>n});var s=l(95155),a=l(12115),r=l(36358);let n=a.forwardRef((e,t)=>
1{let{className:l,type:a,...n}=e;return(0,s.jsx)("input",{type:a,className:(0,r.cn)("flex h-12 w-auto self-center rounded-md border text-base border-input bg-input px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-input-foreground disabled:cursor-not-allowed disabled:opacity-50",l),ref:t,...n})});n.displayName="Input"},46394:(e,t,l)=>{l.d(t,{K:()=>s,s:()=>a});let s="refetch-product-reviews";function a(){window.dispatchEvent(new CustomEvent(s))}},63916:(e,t,l)=>{l.d(t,{m:()=>i});var s=l(95155),a=l(79945),r=l(97003),n=l(36358);function i(e){let{limit:t,quantity:l,setQuantity:i,lang:o}=e;return(0,s.jsxs)("div",{className:"flex items-center border border-gray-300 rounded-full overflow-hidden w-fit bg-white",children:[(0,s.jsx)(r.$,{type:"button",variant:"ghost",disabled:1===l,className:"px-2.5 py-1 hover:bg-gray-100 rounded-none h-7 min-w-[28px]",onClick:()=>i(l>1?l-1:1),children:"-"}),(0,s.jsx)("span",{className:"px-3 w-[40px] text-center text-xs font-medium",children:l}),(0,s.jsx)(r.$,{type:"button",variant:"ghost",disabled:l===t,className:"px-2.5 py-1 hover:bg-gray-100 rounded-none h-7 min-w-[28px]",onClick:()=>{l<t?i(l+1):(0,n.P0)(o.products.ReachedLimit,a.Vl,"info")},children:"+"})]})}l(12115)},67001:(e,t,l)=>{l.d(t,{T:()=>n});var s=l(95155),a=l(12115),r=l(36358);let n=a.forwardRef((e,t)=>{let{className:l,...a}=e;return(0,s.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",l),ref:t,...a})});n.displayName="Textarea"},95517:(e,t,l)=>{l.d(t,{A:()=>o});var s=l(95155);let a="M12 18.4847L19.416 23L17.448 14.49L24 8.76421L15.372 8.01368L12 0L8.628 8.01368L0 8.76421L6.54 14.49L4.584 23L12 18.4847Z",r={sm:16,lg:24};function n(e){let{fillPercent:t,size:l,filledColor:r,emptyColor:n}=e;return(0,s.jsxs)("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"none",className:"block shrink-0","aria-hidden":!0,children:[(0,s.jsx)("path",{d:a,fill:n}),t>0&&(0,s.jsx)("path",{d:a,fill:r,style:{clipPath:"inset(0 ".concat(100-t,"% 0 0)")}})]})}function i(e){let{starIndex:t,fillPercent:l,size:a,filledColor:r,emptyColor:i,interactive:o,onClick:d}=e;return o?(0,s.jsx)("button",{type:"button",onClick:d,className:"relative shrink-0 leading-none cursor-pointer",style:{width:a,height:a},"aria-label":"Rate ".concat(t," star").concat(t>1?"s":""),children:(0,s.jsx)(n,{fillPercent:l,size:a,filledColor:r,emptyColor:i})}):(0,s.jsx)("span",{className:"inline-flex leading-none",style:{width:a,height:a},children:(0,s.jsx)(n,{fillPercent:l,size:a,filledColor:r,emptyColor:i})})}function o(e){let{rating:t,size:l="sm",filledColor:a="#E31E24",emptyColor:n="#E5E7EB",interactive:o=!1,onChange:d}=e,c=r[l];return(0,s.jsx)("div",{className:"flex items-center gap-0.5",children:[1,2,3,4,5].map(e=>{let l=100*Math.min(Math.max(t-(e-1),0),1);return(0,s.jsx)(i,{starIndex:e,fillPercent:l,size:c,filledColor:a,emptyColor:n,interactive:o,onClick:o&&d?()=>d(e):void 0},e)})})}},96350:(e,t,l)=>{l.d(t,{A:()=>s});let s={src:"/_next/static/media/arrow-icon.76fdac9a.svg",height:6,width:10,blurWidth:0,blurHeight:0}}}]);

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.