(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3196],{5402:function(e,s,t){Promise.resolve().then(t.t.bind(t,1749,23)),Promise.resolve().then(t.t.bind(t,5250,23)),Promise.resolve().then(t.t.bind(t,2346,23)),Promise.resolve().then(t.t.bind(t,7042,23)),Promise.resolve().then(t.bind(t,9125)),Promise.resolve().then(t.bind(t,3924)),Promise.resolve().then(t.bind(t,7752)),Promise.resolve().then(t.bind(t,9598)),Promise.resolve().then(t.bind(t,4361)),Promise.resolve().then(t.bind(t,6339)),Promise.resolve().then(t.bind(t,8011)),Promise.resolve().then(t.bind(t,2844))},2559:function(e,s,t){"use strict";function a(e,s){return s||(s=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(s)}}))}t.d(s,{Z:function(){return E}});var l=t(444),n=t(2110),i=t(2265),r=t(3167),c=t(4174),o=t(4686),d=t(5135),u=t(3207),h=t(5976),m=t(6761),x=t(533);function v(e){return(0,x.ZP)("MuiCircularProgress",e)}(0,m.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var j=t(7437);function p(){let e=a(["\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n"]);return p=function(){return e},e}function f(){let e=a(["\n  0% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: 0;\n  }\n\n  50% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -15px;\n  }\n\n  100% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -125px;\n  }\n"]);return f=function(){return e},e}function g(){let e=a(["\n      animation: "," 1.4s linear infinite;\n    "]);return g=function(){return e},e}function N(){let e=a(["\n      animation: "," 1.4s ease-in-out infinite;\n    "]);return N=function(){return e},e}let b=["className","color","disableShrink","size","style","thickness","value","variant"],y=e=>e,w,_,C,S,k=(0,o.F4)(w||(w=y(p()))),L=(0,o.F4)(_||(_=y(f()))),q=e=>{let{classes:s,variant:t,color:a,disableShrink:l}=e,n={root:["root",t,"color".concat((0,d.Z)(a))],svg:["svg"],circle:["circle","circle".concat((0,d.Z)(t)),l&&"circleDisableShrink"]};return(0,c.Z)(n,v,s)},R=(0,h.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,s)=>{let{ownerState:t}=e;return[s.root,s[t.variant],s["color".concat((0,d.Z)(t.color))]]}})(e=>{let{ownerState:s,theme:t}=e;return(0,n.Z)({display:"inline-block"},"determinate"===s.variant&&{transition:t.transitions.create("transform")},"inherit"!==s.color&&{color:(t.vars||t).palette[s.color].main})},e=>{let{ownerState:s}=e;return"indeterminate"===s.variant&&(0,o.iv)(C||(C=y(g(),0)),k)}),P=(0,h.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,s)=>s.svg})({display:"block"}),A=(0,h.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,s)=>{let{ownerState:t}=e;return[s.circle,s["circle".concat((0,d.Z)(t.variant))],t.disableShrink&&s.circleDisableShrink]}})(e=>{let{ownerState:s,theme:t}=e;return(0,n.Z)({stroke:"currentColor"},"determinate"===s.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===s.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},e=>{let{ownerState:s}=e;return"indeterminate"===s.variant&&!s.disableShrink&&(0,o.iv)(S||(S=y(N(),0)),L)});var E=i.forwardRef(function(e,s){let t=(0,u.i)({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:c=!1,size:o=40,style:d,thickness:h=3.6,value:m=0,variant:x="indeterminate"}=t,v=(0,l.Z)(t,b),p=(0,n.Z)({},t,{color:i,disableShrink:c,size:o,thickness:h,value:m,variant:x}),f=q(p),g={},N={},y={};if("determinate"===x){let e=2*Math.PI*((44-h)/2);g.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(m),g.strokeDashoffset="".concat(((100-m)/100*e).toFixed(3),"px"),N.transform="rotate(-90deg)"}return(0,j.jsx)(R,(0,n.Z)({className:(0,r.Z)(f.root,a),style:(0,n.Z)({width:o,height:o},N,d),ownerState:p,ref:s,role:"progressbar"},y,v,{children:(0,j.jsx)(P,{className:f.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,j.jsx)(A,{className:f.circle,style:g,ownerState:p,cx:44,cy:44,r:(44-h)/2,fill:"none",strokeWidth:h})})}))})},5135:function(e,s,t){"use strict";var a=t(2550);s.Z=a.Z},8792:function(e,s,t){"use strict";t.d(s,{default:function(){return l.a}});var a=t(5250),l=t.n(a)},7907:function(e,s,t){"use strict";var a=t(5313);t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})},8559:function(e,s,t){"use strict";t.d(s,{Po:function(){return l},eb:function(){return i},t_:function(){return n}});var a=t(3989);async function l(e){let s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n="";return""!=l&&(n="&couponId=".concat(l)),s=1==t||5==t?await (0,a._)("".concat("https://couponego.com/api","/get-best-coupons/").concat(e,"?limit=").concat(t).concat(n),{next:{tags:["latestCoupon"]}}):await (0,a._)("".concat("https://couponego.com/api","/get-best-coupons/").concat(e,"?limit=").concat(t).concat(n,"&client=true"),{next:{tags:["latestCoupon"]}}),(0,a.t)(s)}async function n(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n="".concat("https://couponego.com/api","/review-list/").concat(e);(1!==s||""!==t||""!==l)&&(n+="?page=".concat(s,"&sort=").concat(t,"&rate=").concat(l,"&client=true"));let i=await fetch(n,{next:{tags:["ReviewList"]},headers:{Origin:"".concat("tenereteam.com")}});return(0,a.t)(i)}async function i(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l="".concat("https://couponego.com/api","/question/").concat(e);(1!==s||""!==t)&&(l+="?page=".concat(s,"&sort=").concat(t,"&client=true"));let n=await fetch(l,{next:{tags:["Question"]},headers:{Origin:"".concat("tenereteam.com")}});return(0,a.t)(n)}},9125:function(e,s,t){"use strict";t.r(s);var a=t(7437),l=t(7907),n=t(1357),i=t(2265);s.default=e=>{let{page:s}=e,t=(0,l.usePathname)(),[r,c]=(0,i.useState)(""),o=()=>{window.innerWidth>991&&window.scrollY>0?c("sticked"):c("")};return(0,i.useEffect)(()=>(document.addEventListener("scroll",o),()=>{document.removeEventListener("scroll",o)}),[]),(0,a.jsx)("header",{className:"header ".concat(r," ").concat("/faq-page"===t?"header-project header-faq":"header-page"),children:(0,a.jsx)(n.default,{page:s})})}},3924:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return h}});var a=t(7437),l=t(2265),n=t(8344),i=t(8481);t(6931),t(4442);var r=t(7907),c=t(6055),o=t(2093),d=e=>{var s;let{coupon:t,className:n}=e,i=(0,r.useRouter)(),[d,u]=(0,l.useState)(null),[h,m]=(0,l.useState)(null==t?void 0:null===(s=t.store)||void 0===s?void 0:s.disable_coupons_page),x=async()=>{var e,s;let a=(0,c.fl)(),l=(null===(e=t.coupon_code)||void 0===e?void 0:e.length)>0,n=(0,c.Zd)(a),r=(null==t?void 0:null===(s=t.property)||void 0===s?void 0:s.foreign_key_right)||"",o="";o=a?l?"".concat(n,"/").concat(null==t?void 0:t.store.alias,"?c=").concat(r):"".concat(n,"/").concat(null==t?void 0:t.store.alias,"?d=").concat(r):l?"".concat(n,"?c=").concat(r):"".concat(n,"?d=").concat(r),"true"!==d?h?i.push((0,c.Rw)(r,"go",null==t?void 0:t.store.alias)):(i.push((0,c.Rw)(r,"go",null==t?void 0:t.store.alias)),window.open(o,"_blank")):i.push(o)};return(0,a.jsxs)("div",{className:"coupon ".concat(n),children:[(0,a.jsxs)("div",{className:"coupon__left",children:[(0,a.jsx)("h3",{className:"coupon__name",title:t.title,dangerouslySetInnerHTML:{__html:t.title}}),(0,a.jsxs)("div",{className:"coupon__info",children:[(0,a.jsx)("span",{children:t.verify_ago}),(0,a.jsxs)("span",{children:[t.used," Uses"]})]})]}),(0,a.jsxs)("div",{className:"coupon__right",children:[(0,a.jsx)("span",{className:"coupon__offer",children:(0,a.jsx)(o.Z,{coupon:t})}),(0,a.jsxs)("button",{onClick:()=>x(),className:"get-btn get-code",children:[t.coupon_code?"Get Code":"Get Deal"," ",(0,a.jsx)("span",{className:"corner"})]})]})]})},u=t(8792),h=e=>{let{alias:s,review:t,coupons:l}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"box-coupons box",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between mb-30px",children:[(0,a.jsxs)("h2",{className:"title-box",children:[t.name," Coupon & Discount Codes"]}),(0,a.jsx)(u.default,{href:(0,c.iZ)(t.alias),children:(0,a.jsxs)("button",{className:"btn p-0 color-main d-inline-flex align-items-center fw-700 fs-16",children:["Get more codes",(0,a.jsx)("i",{className:"fas fa-angle-right ml-10px"})]})})]}),(0,a.jsx)(n.tq,{modules:[i.W_,i.pt],spaceBetween:18,slidesPerView:2,navigation:!0,autoplay:{delay:3e3,disableOnInteraction:!0},children:l&&l.map((e,s)=>(0,a.jsx)(n.o5,{children:(0,a.jsx)(d,{coupon:e})},s))})]})})}},7752:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return i}});var a=t(7437),l=t(703),n=e=>{let{title:s,answer:t,className:l}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:l,dangerouslySetInnerHTML:{__html:s}}),(0,a.jsx)("div",{className:"mt-20px mb-30px",dangerouslySetInnerHTML:{__html:t}})]})},i=e=>{var s,t,i,r,c,o,d,u,h;let{review:m,faqList:x}=e;return(0,a.jsx)("div",{className:"box-question-answer box",children:x.keyFeature||x.pricing||x.payment||x.other?(0,a.jsxs)(a.Fragment,{children:[(null===(s=x.keyFeature)||void 0===s?void 0:s.answer)&&(0,a.jsx)(n,{className:"title-box",title:null===(t=x.keyFeature)||void 0===t?void 0:t.question,answer:null===(i=x.keyFeature)||void 0===i?void 0:i.answer}),(null===(r=x.pricing)||void 0===r?void 0:r.answer)&&(0,a.jsx)(n,{className:"title-box",title:null===(c=x.pricing)||void 0===c?void 0:c.question,answer:null===(o=x.pricing)||void 0===o?void 0:o.answer}),(null===(d=x.payment)||void 0===d?void 0:d.answer)&&(0,a.jsx)(n,{className:"title-box",title:null===(u=x.payment)||void 0===u?void 0:u.question,answer:null===(h=x.payment)||void 0===h?void 0:h.answer}),x&&x.other&&Object.values(x.other).length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h2",{className:"title-box",children:[m.name," FAQs"]}),Object.values(x.other).map((e,s)=>(0,a.jsxs)("div",{className:"question",children:[(0,a.jsx)(l.default,{src:"/images/q.svg",width:26,height:26,alt:"FAQ"}),(0,a.jsxs)("div",{className:"question__right",children:[(0,a.jsx)("h3",{className:"question__title",dangerouslySetInnerHTML:{__html:e.question}}),(0,a.jsx)("div",{className:"question__content",dangerouslySetInnerHTML:{__html:e.answer}})]})]},s))]}):null]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"p-[16px] md:px-7 md:pb-7 md:pt-4 text-center",children:[(0,a.jsx)(l.default,{className:"mx-auto",src:"/images/no-comment.svg",width:487,height:211,alt:"no-comment"}),(0,a.jsx)("div",{className:"mt-15px fs-16 md:fs-20 fw-600",children:"No FAQ yet"})]})})})}},9598:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return o}});var a=t(7437),l=t(2265),n=t(703),i=t(2559),r=t(8559),c=e=>{let{item:s,size:t=50}=e,l=s.user;return(0,a.jsx)(a.Fragment,{children:l.avatar?(0,a.jsx)(n.default,{src:l.avatar,width:50,height:50,alt:"user-name"}):(0,a.jsx)("div",{style:{backgroundColor:l.colorName},className:"".concat(50==t?"w-[50px] h-[50px] flex-[0_0_50px]":"w-[30px] h-[30px] flex-[0_0_30px]"," flex items-center justify-center rounded-full text-black font-medium"),children:l.shortName})})},o=e=>{let{alias:s,review:t,questionList:o}=e,[d,u]=(0,l.useState)(""),[h,m]=(0,l.useState)("desktop"),[x,v]=(0,l.useState)(o.data),[j,p]=(0,l.useState)(!(o.paginate.total_items<=10)),[f,g]=(0,l.useState)(!1),[N,b]=(0,l.useState)(!0),[y,w]=(0,l.useState)(2),_=async e=>{let t=e.target.value;u(t),""!=t&&v((await (0,r.eb)(s,1,t)).data)},C=async()=>{g(!0);try{let e=await (0,r.eb)(s,y,d);e.paginate.hasMorePages||b(!1),(e=e.data).length<10&&p(!1),v([...x,...e]),w(y+1)}catch(e){console.error("Error fetching data:",e)}g(!1)};return(0,l.useEffect)(()=>{window&&window.innerWidth<768&&m("mobile")},[]),(0,a.jsxs)("div",{className:"box-question-answer box",children:[(0,a.jsxs)("h2",{className:"title-box",children:[t.name," Customer’s Q&A"]}),o.paginate.total_items>1&&(0,a.jsxs)("div",{className:"total-question flex items-center justify-between md:justify-start",children:[(0,a.jsxs)("span",{children:[o.paginate.total_items>1?o.paginate.total_items+" Questions":o.paginate.total_items+" Question"," "]}),(0,a.jsxs)("div",{className:"inline-flex",children:[(0,a.jsx)(n.default,{className:"ml-[10px] md:ml-7",src:"/images/bar.svg",width:24,height:18,alt:"bar"}),(0,a.jsxs)("select",{name:"",id:"js_question",onChange:_,value:d,"aria-label":"Sort",children:[(0,a.jsx)("option",{value:"",children:"Sort by"}),(0,a.jsx)("option",{value:"DESC",children:"Latest"}),(0,a.jsx)("option",{value:"ASC",children:"Oldest"})]})]})]}),(0,a.jsxs)("div",{className:"ask-a-question",children:[(0,a.jsx)(n.default,{src:"/images/default-31.svg",width:50,height:50,alt:"user-name"}),(0,a.jsx)("input",{type:"text",placeholder:"Ask a question ".concat("mobile"===h?"":"and get answers from others now!")})]}),x.length>0?(0,a.jsxs)(a.Fragment,{children:[x.map((e,s)=>(0,a.jsxs)("div",{className:"question",children:[(0,a.jsx)(c,{item:e}),(0,a.jsxs)("div",{className:"question__right",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"name font-medium",children:e.user.fullname?e.user.fullname:e.user.username}),(0,a.jsx)("div",{className:"ml-5 text-base",children:e.created_at})]}),(0,a.jsx)("h3",{className:"question__title",children:e.title}),(0,a.jsxs)("div",{className:"like mt-2",children:[(0,a.jsx)("span",{children:(0,a.jsx)(n.default,{src:"/images/thumbUp.svg",width:24,height:24,alt:"thumb-up"})}),(0,a.jsx)("span",{children:(0,a.jsx)(n.default,{src:"/images/thumbDown.svg",width:24,height:24,alt:"thumb-down"})}),(0,a.jsxs)("span",{children:[(0,a.jsx)(n.default,{src:"/images/comment.svg",width:24,height:24,alt:"comment"}),e.reply_list.length>0?e.reply_list.length:""]})]}),e.reply_list.length>0&&(0,a.jsxs)("div",{className:"fs-15 fw-700 color-main flex items-center mt-2",children:[(0,a.jsx)(n.default,{className:"mr-1",src:"/images/caretUp.svg",width:13,height:8,alt:"caret-up"}),e.reply_list.length," Reply"]}),e.reply_list.length>0?e.reply_list.map((e,s)=>(0,a.jsxs)("div",{className:"reply mt-2",children:[(0,a.jsx)(c,{item:e}),(0,a.jsxs)("div",{className:"reply__right",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"name font-medium",children:e.user.fullname?e.user.fullname:e.user.username}),(0,a.jsx)("div",{className:"ml-5 text-base",children:e.created_at})]}),(0,a.jsx)("p",{className:"reply__content",children:e.content}),(0,a.jsxs)("div",{className:"like",children:[(0,a.jsx)("span",{children:(0,a.jsx)(n.default,{src:"/images/thumbUp.svg",width:24,height:24,alt:"thumb-up"})}),(0,a.jsx)("span",{children:(0,a.jsx)(n.default,{src:"/images/thumbDown.svg",width:24,height:24,alt:"thumb-down"})})]}),(0,a.jsxs)("div",{className:"reply__typing",children:[(0,a.jsx)(n.default,{src:"/images/default-31.svg",width:30,height:30,alt:"user-name"}),(0,a.jsx)("input",{type:"text",placeholder:"Reply..."})]}),(0,a.jsxs)("div",{className:"submit",children:[(0,a.jsx)("button",{className:"btn btn-cancel",children:"Cancel"}),(0,a.jsx)("button",{className:"btn btn-submit",children:"Submit"})]})]})]},s)):""]})]},s)),j&&!f&&N&&(0,a.jsx)("div",{onClick:C,className:"text-center mt-30px",children:(0,a.jsx)("button",{className:"btn btn-load-more btn-hover",children:"Load More"})}),f&&(0,a.jsx)("div",{className:"text-center my-4",children:(0,a.jsx)(i.Z,{})})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"p-[16px] md:px-7 md:pb-7 md:pt-4 text-center",children:[(0,a.jsx)(n.default,{className:"mx-auto",src:"/images/no-comment.svg",width:487,height:211,alt:"no-comment"}),(0,a.jsx)("div",{className:"mt-15px fs-16 md:fs-20 fw-600",children:"No question yet"})]})})]})}},4361:function(e,s,t){"use strict";t.r(s);var a=t(7437),l=t(8559),n=t(3528),i=t(2559),r=t(703),c=t(2265);s.default=e=>{let{alias:s,review:t,rates:o,reviewList:d}=e,[u,h]=(0,c.useState)(d.data),[m,x]=(0,c.useState)(2),[v,j]=(0,c.useState)(!(d.paginate.total_items<=10)),[p,f]=(0,c.useState)(!1),[g,N]=(0,c.useState)(!0),[b,y]=(0,c.useState)("DESC"),[w,_]=(0,c.useState)(""),C=async e=>{let t=e.target;t.closest(".js-filter").querySelector(".js-value").textContent="Sort by: "+t.textContent;let a=t.closest(".js-filter").querySelector("select");a.querySelectorAll("option").forEach(e=>{e.removeAttribute("selected")});let n=Array.from(t.parentElement.querySelectorAll("li")).indexOf(t),i=a.querySelector("option:nth-child(".concat(n+1,")"));y(i.value),j(!0),N(!0),x(2);let r=await (0,l.t_)(s,1,i.value,w);h(r.data),r.data.length<10&&j(!1),i&&i.setAttribute("selected","selected");let c=new Event("change");a.dispatchEvent(c)},S=async e=>{let t=e.target;t.closest(".js-filter").querySelector(".js-value").textContent="Rating: "+t.textContent;let a=t.closest(".js-filter").querySelector("select");a.querySelectorAll("option").forEach(e=>{e.removeAttribute("selected")});let n=Array.from(t.parentElement.querySelectorAll("li")).indexOf(t),i=a.querySelector("option:nth-child(".concat(n+1,")"));_(i.value),j(!0),N(!0),x(2);let r=await (0,l.t_)(s,1,b,i.value);h(r.data),r.data.length<10&&j(!1),i&&i.setAttribute("selected","selected");let c=new Event("change");a.dispatchEvent(c)},k=async()=>{f(!0);try{let e=await (0,l.t_)(s,m,b,w);e.paginate.hasMorePages||N(!1),(e=e.data).length<10&&j(!1),h([...u,...e]),x(m+1)}catch(e){console.error("Error fetching data:",e)}f(!1)};return(0,a.jsxs)("div",{className:"box-reviews box",id:"box-reviews",children:[(0,a.jsxs)("h2",{className:"title-box",children:[t.name," Customer Reviews (",d.paginate.total_items,")"]}),(0,a.jsxs)("div",{className:"wrap-write-review my-30px",children:[(0,a.jsxs)("div",{className:"rating","data-vote":"0",children:[(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate1","data-value":"1"}),(0,a.jsx)("span",{className:"half rate0-5","data-value":"0.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate2","data-value":"2"}),(0,a.jsx)("span",{className:"half rate1-5","data-value":"1.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate3","data-value":"3"}),(0,a.jsx)("span",{className:"half rate2-5","data-value":"2.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate4","data-value":"4"}),(0,a.jsx)("span",{className:"half rate3-5","data-value":"3.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate5","data-value":"5"}),(0,a.jsx)("span",{className:"half rate4-5","data-value":"4.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"score",children:[(0,a.jsx)("span",{className:"score-rating js-score",children:"0"}),(0,a.jsx)("span",{children:"/"}),(0,a.jsx)("span",{className:"total",children:"5"})]})]}),(0,a.jsx)("a",{href:"#",children:(0,a.jsxs)("button",{className:"btn color-main d-inline-flex align-items-center ml-10px fw-700 fs-16",children:["Write a review ",(0,a.jsx)("i",{className:"fas fa-angle-right ml-15px"})]})})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"filter-nav",children:[(0,a.jsxs)("div",{className:"js-filter filter-item min-w-[210px]",children:[(0,a.jsxs)("select",{className:"js_sort",children:[(0,a.jsx)("option",{value:"DESC",children:"Sort by: Most recent"}),(0,a.jsx)("option",{value:"ASC",children:"Sort by: Oldest"})]}),(0,a.jsx)("div",{className:"js-value filter-value",children:"Sort by: Most recent"}),(0,a.jsxs)("ul",{className:"cover-sortBy",children:[(0,a.jsx)("li",{onClick:C,children:"Most recent"}),(0,a.jsx)("li",{onClick:C,children:"Oldest"})]})]}),(0,a.jsxs)("div",{className:"js-filter filter-item",children:[(0,a.jsxs)("select",{className:"js_rate",children:[(0,a.jsx)("option",{value:"",children:"Rating: All"}),(0,a.jsx)("option",{value:"5",children:"Rating: 5 stars"}),(0,a.jsx)("option",{value:"4",children:"Rating: 4 stars"}),(0,a.jsx)("option",{value:"3",children:"Rating: 3 stars"}),(0,a.jsx)("option",{value:"2",children:"Rating: 2 stars"}),(0,a.jsx)("option",{value:"1",children:"Rating: 1 star"})]}),(0,a.jsx)("div",{className:"js-value filter-value",children:"Rating: All"}),(0,a.jsxs)("ul",{className:"cover-rating",children:[(0,a.jsx)("li",{onClick:S,children:"All"}),(0,a.jsx)("li",{onClick:S,children:"5 stars"}),(0,a.jsx)("li",{onClick:S,children:"4 stars"}),(0,a.jsx)("li",{onClick:S,children:"3 stars"}),(0,a.jsx)("li",{onClick:S,children:"2 stars"}),(0,a.jsx)("li",{onClick:S,children:"1 star"})]})]})]}),(0,a.jsx)("div",{className:"line my-30px"}),u.map((e,s,t)=>(0,a.jsxs)("div",{className:"review ".concat(s===t.length-1?"border-0":""),children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"review__buyer",style:{overflow:"hidden",textOverflow:"ellipsis"},children:[e.user.fullname?e.user.fullname:e.user.username,(0,a.jsx)("div",{className:"tooltip",children:e.user.fullname?e.user.fullname:e.user.username})]}),(0,a.jsxs)("div",{className:"review__verify flex items-center",children:[(0,a.jsx)(r.default,{className:"mr-1",src:"/images/verify.svg",width:20,height:20,alt:"verify"}),"Verified Buyer"]}),(0,a.jsx)(n.Z,{rate:e.avg_star,className:""})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"review__title",children:e.title}),(0,a.jsx)("p",{className:"review__content mt-15px mb-0",children:e.content})]}),(0,a.jsx)("div",{className:"review__date",children:e.created_at}),(0,a.jsxs)("div",{className:"like",children:[(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbUp.svg",width:24,height:24,alt:"thumb-up"})}),(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbDown.svg",width:24,height:24,alt:"thumb-down"})}),(0,a.jsxs)("span",{children:[(0,a.jsx)(r.default,{src:"/images/comment.svg",width:24,height:24,alt:"comment"}),e.reply_list.length>0?e.reply_list.length:""]})]}),(0,a.jsx)("div",{}),e.reply_list.length>0&&(0,a.jsxs)("div",{className:"reply",children:[(0,a.jsxs)("div",{className:"fs-15 fw-700 color-main flex items-center",children:[(0,a.jsx)(r.default,{className:"mr-1",src:"/images/caretUp.svg",width:13,height:8,alt:"caret-up"}),e.reply_list.length>0?e.reply_list.length:""," Reply"]}),e.reply_list.map((e,s)=>(0,a.jsxs)("div",{className:"pl-24px",children:[(0,a.jsx)("div",{className:"reply__name",children:e.user.username}),(0,a.jsx)("p",{className:"mb-10px text-3-line",children:e.content}),(0,a.jsxs)("div",{className:"like",children:[(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbUp.svg",width:24,height:24,alt:"thumb-up"})}),(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbDown.svg",width:24,height:24,alt:"thumb-down"})})]}),(0,a.jsxs)("div",{className:"reply__typing",children:[(0,a.jsx)(r.default,{src:"/images/default-31.svg",width:30,height:30,alt:"user-name"}),(0,a.jsx)("input",{type:"text",placeholder:"Reply..."})]}),(0,a.jsxs)("div",{className:"submit",children:[(0,a.jsx)("button",{className:"btn btn-cancel",children:"Cancel"}),(0,a.jsx)("button",{className:"btn btn-submit",children:"Submit"})]})]},s))]})]},s)),v&&!p&&g&&(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("button",{onClick:k,className:"btn btn-load-more btn-hover",children:"Load More Reviews"})}),p&&(0,a.jsx)("div",{className:"text-center my-4",children:(0,a.jsx)(i.Z,{})})]}),(0,a.jsx)("style",{children:".tooltip {\n            position: absolute;\n            background-color: #333;\n            color: #fff;\n            padding: 5px;\n            border-radius: 3px;\n            visibility: hidden;\n            opacity: 0;\n            transition: opacity 0.3s ease-in-out;\n            z-index: 9999;\n        }\n\n                        .review__buyer:hover .tooltip {\n            visibility: visible;\n            opacity: 1;\n        }"})]})}},6339:function(e,s,t){"use strict";t.r(s);var a=t(7437),l=t(8559),n=t(3528),i=t(2559),r=t(703),c=t(2265);s.default=e=>{let{alias:s,review:t,rates:o,reviewList:d}=e,[u,h]=(0,c.useState)(d.data),[m,x]=(0,c.useState)(2),[v,j]=(0,c.useState)(!(d.paginate.total_items<=10)),[p,f]=(0,c.useState)(!1),[g,N]=(0,c.useState)(!0),[b,y]=(0,c.useState)("DESC"),[w,_]=(0,c.useState)(""),C=async e=>{let t=e.target;t.closest(".js-filter").querySelector(".js-value").textContent=t.textContent;let a=t.closest(".js-filter").querySelector("select");a.querySelectorAll("option").forEach(e=>{e.removeAttribute("selected")});let n=Array.from(t.parentElement.querySelectorAll("li")).indexOf(t),i=a.querySelector("option:nth-child(".concat(n+1,")"));y(i.value),j(!0),N(!0),x(2);let r=await (0,l.t_)(s,1,i.value,w);h(r.data),r.data.length<10&&j(!1),i&&i.setAttribute("selected","selected");let c=new Event("change");a.dispatchEvent(c)},S=async e=>{let t=e.target;t.closest(".js-filter").querySelector(".js-value").textContent=t.textContent;let a=t.closest(".js-filter").querySelector("select");a.querySelectorAll("option").forEach(e=>{e.removeAttribute("selected")});let n=Array.from(t.parentElement.querySelectorAll("li")).indexOf(t),i=a.querySelector("option:nth-child(".concat(n+1,")"));_(i.value),j(!0),N(!0),x(2);let r=await (0,l.t_)(s,1,b,i.value);h(r.data),r.data.length<10&&j(!1),i&&i.setAttribute("selected","selected");let c=new Event("change");a.dispatchEvent(c)},k=async()=>{f(!0);try{let e=await (0,l.t_)(s,m,b,w);e.paginate.hasMorePages||N(!1),(e=e.data).length<10&&j(!1),h([...u,...e]),x(m+1)}catch(e){console.error("Error fetching data:",e)}f(!1)};return(0,a.jsxs)("div",{className:"box-reviews box",id:"box-reviews",children:[(0,a.jsxs)("h2",{className:"title-box",children:[t.name," Customer Reviews (",d.paginate.total_items,")"]}),(0,a.jsxs)("div",{className:"wrap-write-review my-20px",children:[(0,a.jsxs)("div",{className:"rating","data-vote":"0",children:[(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate1","data-value":"1"}),(0,a.jsx)("span",{className:"half rate0-5","data-value":"0.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate2","data-value":"2"}),(0,a.jsx)("span",{className:"half rate1-5","data-value":"1.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate3","data-value":"3"}),(0,a.jsx)("span",{className:"half rate2-5","data-value":"2.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate4","data-value":"4"}),(0,a.jsx)("span",{className:"half rate3-5","data-value":"3.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"star",children:[(0,a.jsx)("span",{className:"full rate5","data-value":"5"}),(0,a.jsx)("span",{className:"half rate4-5","data-value":"4.5"}),(0,a.jsx)("span",{className:"selected"})]}),(0,a.jsxs)("div",{className:"score",children:[(0,a.jsx)("span",{className:"score-rating js-score",children:"0"}),(0,a.jsx)("span",{children:"/"}),(0,a.jsx)("span",{className:"total",children:"5"})]})]}),(0,a.jsx)("a",{href:"#",children:(0,a.jsxs)("button",{className:"btn color-main d-inline-flex align-items-center p-0 mt-10px ml-10px fw-700 fs-16",children:["Write a review ",(0,a.jsx)("i",{className:"fas fa-angle-right ml-15px"})]})})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"filter-nav",children:[(0,a.jsx)("div",{children:"Sort by:"}),(0,a.jsx)("div",{children:"Rating:"}),(0,a.jsxs)("div",{className:"js-filter filter-item",children:[(0,a.jsxs)("select",{className:"js_sort",children:[(0,a.jsx)("option",{value:"DESC",children:"Sort by: Most recent"}),(0,a.jsx)("option",{value:"ASC",children:"Sort by: Oldest"})]}),(0,a.jsx)("div",{className:"js-value filter-value",children:"Most recent"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{onClick:C,children:"Most recent"}),(0,a.jsx)("li",{onClick:C,children:"Oldest"})]})]}),(0,a.jsxs)("div",{className:"js-filter filter-item",children:[(0,a.jsxs)("select",{className:"js_rate",children:[(0,a.jsx)("option",{value:"",children:"Rating: All"}),(0,a.jsx)("option",{value:"5",children:"Rating: 5 stars"}),(0,a.jsx)("option",{value:"4",children:"Rating: 4 stars"}),(0,a.jsx)("option",{value:"3",children:"Rating: 3 stars"}),(0,a.jsx)("option",{value:"2",children:"Rating: 2 stars"}),(0,a.jsx)("option",{value:"1",children:"Rating: 1 star"})]}),(0,a.jsx)("div",{className:"js-value filter-value",children:"All"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{onClick:S,children:"All"}),(0,a.jsx)("li",{onClick:S,children:"5 stars"}),(0,a.jsx)("li",{onClick:S,children:"4 stars"}),(0,a.jsx)("li",{onClick:S,children:"3 stars"}),(0,a.jsx)("li",{onClick:S,children:"2 stars"}),(0,a.jsx)("li",{onClick:S,children:"1 star"})]})]})]}),(0,a.jsx)("div",{className:"line my-20px"}),u.map((e,s)=>(0,a.jsxs)("div",{className:"review",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"review__buyer",style:{overflow:"hidden",textOverflow:"ellipsis"},children:[e.user.fullname?e.user.fullname:e.user.username,(0,a.jsx)("div",{className:"tooltip",children:e.user.fullname?e.user.fullname:e.user.username})]}),(0,a.jsxs)("div",{className:"review__verify",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,a.jsx)("path",{d:"M10.0085 1.67595C10.6567 1.67599 11.2826 1.91209 11.7693 2.34012L11.8977 2.46095L12.4793 3.04262C12.639 3.20121 12.8474 3.30133 13.071 3.32678L13.1835 3.33345H14.0168C14.6979 3.33341 15.3531 3.59392 15.8482 4.06157C16.3432 4.52921 16.6406 5.16854 16.6793 5.84845L16.6835 6.00012V6.83345C16.6835 7.05845 16.7602 7.27762 16.8985 7.45262L16.9735 7.53595L17.5543 8.11762C18.0358 8.59632 18.3165 9.24063 18.3393 9.91917C18.362 10.5977 18.1251 11.2594 17.6768 11.7693L17.556 11.8976L16.9743 12.4793C16.8158 12.6389 16.7156 12.8474 16.6902 13.071L16.6835 13.1834V14.0168C16.6836 14.6978 16.423 15.353 15.9554 15.8481C15.4878 16.3432 14.8484 16.6406 14.1685 16.6793L14.0168 16.6835H13.1835C12.9588 16.6835 12.7407 16.7593 12.5643 16.8984L12.481 16.9734L11.8993 17.5543C11.4206 18.0357 10.7763 18.3164 10.0978 18.3392C9.41925 18.362 8.75758 18.1251 8.24768 17.6768L8.11935 17.5559L7.53768 16.9743C7.37805 16.8157 7.16959 16.7156 6.94601 16.6901L6.83351 16.6835H6.00018C5.31917 16.6835 4.66394 16.423 4.16887 15.9553C3.67381 15.4877 3.37641 14.8484 3.33768 14.1685L3.33351 14.0168V13.1834C3.33344 12.9588 3.2577 12.7407 3.11851 12.5643L3.04351 12.481L2.46268 11.8993C1.98125 11.4206 1.70053 10.7763 1.67777 10.0977C1.65501 9.41918 1.89191 8.75751 2.34018 8.24762L2.46101 8.11928L3.04268 7.53762C3.20127 7.37798 3.30139 7.16953 3.32685 6.94595L3.33351 6.83345V6.00012L3.33768 5.84845C3.37489 5.19465 3.65137 4.57741 4.11442 4.11436C4.57747 3.6513 5.19472 3.37483 5.84851 3.33762L6.00018 3.33345H6.83351C7.0582 3.33338 7.27631 3.25764 7.45268 3.11845L7.53601 3.04345L8.11768 2.46262C8.36546 2.21336 8.66007 2.01554 8.98457 1.88053C9.30907 1.74553 9.65705 1.676 10.0085 1.67595ZM13.0893 7.74428C12.9331 7.58806 12.7212 7.50029 12.5002 7.50029C12.2792 7.50029 12.0673 7.58806 11.911 7.74428L9.16685 10.4876L8.08935 9.41095L8.01101 9.34178C7.84352 9.21227 7.63301 9.15137 7.42224 9.17145C7.21147 9.19153 7.01625 9.29108 6.87622 9.44988C6.73619 9.60869 6.66186 9.81484 6.66832 10.0265C6.67479 10.2381 6.76156 10.4393 6.91101 10.5893L8.57768 12.2559L8.65601 12.3251C8.81635 12.4495 9.01656 12.5111 9.21908 12.4984C9.4216 12.4856 9.61252 12.3994 9.75601 12.2559L13.0893 8.92262L13.1585 8.84428C13.2829 8.68395 13.3445 8.48374 13.3318 8.28122C13.319 8.07869 13.2328 7.88778 13.0893 7.74428Z",fill:"#57AC1D"})}),"Verified Buyer"]}),(0,a.jsx)(n.Z,{rate:e.avg_star})]}),(0,a.jsx)("div",{className:"review__date",children:e.created_at}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"review__title",children:e.title}),(0,a.jsx)("p",{className:"review__content mt-15px mb-0",children:e.content})]}),(0,a.jsxs)("div",{className:"like",children:[(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbUp.svg",width:24,height:24,alt:"thumb-up"})}),(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbDown.svg",width:24,height:24,alt:"thumb-down"})}),(0,a.jsxs)("span",{children:[(0,a.jsx)(r.default,{src:"/images/comment.svg",width:24,height:24,alt:"comment"}),e.reply_list.length>0?e.reply_list.length:""]})]}),e.reply_list.length>0&&(0,a.jsxs)("div",{className:"reply",children:[(0,a.jsxs)("div",{className:"fs-15 fw-700 color-main flex items-center",children:[(0,a.jsx)(r.default,{className:"mr-1",src:"/images/caretUp.svg",width:13,height:8,alt:"caret-up"}),e.reply_list.length>0?e.reply_list.length:""," Reply"]}),e.reply_list.map((e,s)=>(0,a.jsxs)("div",{className:"pl-24px",children:[(0,a.jsx)("div",{className:"reply__name",children:e.user.username}),(0,a.jsx)("p",{className:"mb-10px text-3-line",children:e.content}),(0,a.jsxs)("div",{className:"like",children:[(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbUp.svg",width:24,height:24,alt:"thumb-up"})}),(0,a.jsx)("span",{children:(0,a.jsx)(r.default,{src:"/images/thumbDown.svg",width:24,height:24,alt:"thumb-down"})})]}),(0,a.jsxs)("div",{className:"reply__typing",children:[(0,a.jsx)(r.default,{src:"/images/default-31.svg",width:30,height:30,alt:"user-name"}),(0,a.jsx)("input",{type:"text",placeholder:"Reply..."})]}),(0,a.jsxs)("div",{className:"submit",children:[(0,a.jsx)("button",{className:"btn btn-cancel",children:"Cancel"}),(0,a.jsx)("button",{className:"btn btn-submit",children:"Submit"})]})]},s))]})]},s)),v&&!p&&g&&(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("button",{onClick:k,className:"btn btn-load-more btn-hover",children:"Load More Reviews"})}),p&&(0,a.jsx)("div",{className:"text-center my-4",children:(0,a.jsx)(i.Z,{})})]}),(0,a.jsx)("style",{children:".tooltip {\n            position: absolute;\n            background-color: #333;\n            color: #fff;\n            padding: 5px;\n            border-radius: 3px;\n            visibility: hidden;\n            opacity: 0;\n            transition: opacity 0.3s ease-in-out;\n            z-index: 9999;\n        }\n\n                        .review__buyer:hover .tooltip {\n            visibility: visible;\n            opacity: 1;\n        }"})]})}},8011:function(e,s,t){"use strict";t.r(s);var a=t(7437),l=t(2265),n=t(8559),i=t(2559),r=t(2844);s.default=e=>{let{alias:s,couponFirst:t}=e,[c,o]=(0,l.useState)([]),[d,u]=(0,l.useState)(!0),[h,m]=(0,l.useState)(!1),x=async()=>{m(!0);try{let e=await await (0,n.Po)(s,4,t.id);e=e.data,u(!1),o([...c,...e])}catch(e){console.error("Error fetching data:",e)}m(!1)};return(0,a.jsxs)(a.Fragment,{children:[c.map((e,s)=>(0,a.jsx)(r.default,{coupon:e,className:"mt-2"},s)),d&&!h&&(0,a.jsx)("div",{className:"text-center mt-30px",children:(0,a.jsx)("button",{onClick:x,className:"btn btn-get-more btn-hover",children:"Get More Coupons"})}),h&&(0,a.jsx)("div",{className:"text-center my-4",children:(0,a.jsx)(i.Z,{})})]})}},2844:function(e,s,t){"use strict";t.r(s);var a=t(7437),l=t(7907),n=t(2093),i=t(6055);s.default=e=>{let{coupon:s,className:t}=e,r=(0,l.useRouter)(),c=async()=>{var e,t,a,l;window.open("".concat((0,i.Rw)(null==s?void 0:null===(e=s.property)||void 0===e?void 0:e.foreign_key_right,"offer",null==s?void 0:null===(t=s.store)||void 0===t?void 0:t.alias)),"_blank"),r.push("".concat((0,i.Rw)(null==s?void 0:null===(a=s.property)||void 0===a?void 0:a.foreign_key_right,"go",null==s?void 0:null===(l=s.store)||void 0===l?void 0:l.alias)))};return(0,a.jsxs)("div",{className:"coupon ".concat(t),children:[(0,a.jsxs)("div",{className:"coupon__left",children:[(0,a.jsx)("h3",{className:"coupon__name",title:s.title,dangerouslySetInnerHTML:{__html:s.title}}),(0,a.jsxs)("div",{className:"coupon__info",children:[(0,a.jsx)("span",{children:s.verify_ago}),(0,a.jsxs)("span",{children:[s.used," Uses"]})]})]}),(0,a.jsxs)("div",{className:"coupon__right",children:[(0,a.jsx)("span",{className:"coupon__offer",children:(0,a.jsx)(n.Z,{coupon:s})}),(0,a.jsxs)("button",{onClick:()=>c(),className:"get-btn get-code",children:[s.coupon_code?"Get Code":"Get Deal"," ",(0,a.jsx)("span",{className:"corner"})]})]})]})}},3528:function(e,s,t){"use strict";t.d(s,{Z:function(){return r}});var a=t(7437),l=t(2265),n=e=>{let{width:s}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,fill:"#000",version:"1.1",viewBox:"0 0 47.94 47.94",xmlSpace:"preserve",children:(0,a.jsx)("path",{fill:"#f9c803",d:"M26.285 2.486l5.407 10.956a2.58 2.58 0 001.944 1.412l12.091 1.757c2.118.308 2.963 2.91 1.431 4.403l-8.749 8.528a2.582 2.582 0 00-.742 2.285l2.065 12.042c.362 2.109-1.852 3.717-3.746 2.722l-10.814-5.685a2.585 2.585 0 00-2.403 0l-10.814 5.685c-1.894.996-4.108-.613-3.746-2.722l2.065-12.042a2.582 2.582 0 00-.742-2.285L.783 21.014c-1.532-1.494-.687-4.096 1.431-4.403l12.091-1.757a2.58 2.58 0 001.944-1.412l5.407-10.956c.946-1.919 3.682-1.919 4.629 0z"})})})},i=e=>{let{width:s}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,fill:"#000",version:"1.1",viewBox:"0 0 47.94 47.94",xmlSpace:"preserve",children:(0,a.jsx)("path",{fill:"#e5e7eb",d:"M26.285 2.486l5.407 10.956a2.58 2.58 0 001.944 1.412l12.091 1.757c2.118.308 2.963 2.91 1.431 4.403l-8.749 8.528a2.582 2.582 0 00-.742 2.285l2.065 12.042c.362 2.109-1.852 3.717-3.746 2.722l-10.814-5.685a2.585 2.585 0 00-2.403 0l-10.814 5.685c-1.894.996-4.108-.613-3.746-2.722l2.065-12.042a2.582 2.582 0 00-.742-2.285L.783 21.014c-1.532-1.494-.687-4.096 1.431-4.403l12.091-1.757a2.58 2.58 0 001.944-1.412l5.407-10.956c.946-1.919 3.682-1.919 4.629 0z"})})})},r=e=>{let{rate:s=0,className:t,iconWidth:r=20}=e;return s=Math.round(s),(0,a.jsx)("div",{className:"stars ".concat(t),children:(()=>{let e=[];for(let t=1;t<=5;t++){let c=t<=s;e.push((0,a.jsx)(l.Fragment,{children:c?(0,a.jsx)(n,{width:r}):(0,a.jsx)(i,{width:r})},t))}return e})()})}},2093:function(e,s,t){"use strict";var a=t(7437);s.Z=e=>{let{coupon:s}=e;return(null==s?void 0:s.coupon_type)==="Great Offer"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{children:"GREAT"}),"OFFER"]}):(null==s?void 0:s.coupon_type)==="Deal Type"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{children:"SALE"}),"SPECIAL"]}):(null==s?void 0:s.coupon_type)==="Free Shipping"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{children:"FREE"}),"SHIPPING"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{children:(null==s?void 0:s.discount_value)!=null&&(null==s?void 0:s.discount_value)&&(null==s?void 0:s.discount_value)!="0"?(null==s?void 0:s.currency)==null?null==s?void 0:s.discount_value:"".concat((null==s?void 0:s.currency)==="%"?"".concat(null==s?void 0:s.discount_value).concat(null==s?void 0:s.currency):"".concat(null==s?void 0:s.currency).concat(null==s?void 0:s.discount_value)," "):"Sale"}),"OFF"]})}},7042:function(){},2346:function(){}},function(e){e.O(0,[1749,5250,9453,3543,8481,1357,2971,8069,1744],function(){return e(e.s=5402)}),_N_E=e.O()}]);