PageSourceSearch

https://basalam.com/charsou-assets/unified/_next/static/chunks/pag…/reviews-e90413991e5857af.js

js basalam.com collected 2026-10-02 02:43:44 UTC 35,606 bytes, 1 lines download raw bytes

1function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,s=[],a=!0,o=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(s.push(n.value),!t||s.length!==t);a=!0);}catch(e){o=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(o)throw i}}return s}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}!function(){try{var e="u">("undefined"==typeof window?"undefined":_type_of(window))?window:"u">("undefined"==typeof global?"undefined":_type_of(global))?global:"u">("undefined"==typeof globalThis?"undefined":_type_of(globalThis))?globalThis:"u">("undefined"==typeof self?"undefined":_type_of(self))?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="95dc64b2-b9d2-40f2-8c24-e4814a56c0f9",e._sentryDebugIdIdentifier="sentry-dbid-95dc64b2-b9d2-40f2-8c24-e4814a56c0f9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16451,24878,49522,72709],{6110:function(e,t,r){e=r.nmd(e);var n=r(80815),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i&&n.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o},10353:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(52594);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(i).default}})},13227:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},14701:function(e,t,r){var n=r(74687),i=r(36886),s=r(84745),a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=o.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},16008:function(e,t,r){"use strict";var n=function(e){var t=e.buttonProps,r=e.targetUserId,n=e.eventData,_=void 0===n?null:n,g=e.targetUserHashId,b=(0,h.Z2)(["isLoggedIn","currentUser"]),y=b.isLoggedIn,x=b.currentUser,A=(0,o._)((0,d.useState)(!1),2),j=A[0],O=A[1],N=(0,f.jE)(),C=(0,w.V)().authForm.toggleModal,I=(0,m.Y)(r,{enabled:y&&!!r}),P=I.data,E=I.isLoading,R=(0,m.s)({enabled:!!g,targetUserHashid:g,action:j?"unfollow":"follow"},{onSuccess:function(){_&&"object"===(void 0===_?"undefined":(0,u._)(_))&&(0,v.publishEvent)("followClicked",{name:_.n
1ame,isUnfollow:!j,vendorId:_.vendorId,vendorName:_.vendorName,targetUserId:_.targetUserId,followSource:_.followSource,vendorIdentifier:_.vendorIdentifier}),O(function(e){return!e}),N.invalidateQueries({exact:!0,queryKey:["user-following-status",r]}),N.invalidateQueries({queryKey:["follow-stats"]}),N.invalidateQueries({queryKey:["latest-followings"]}),N.invalidateQueries({queryKey:["followings",null==x?void 0:x.id]})}}),T=R.mutate,S=R.isPending,k=(E||S)&&y,M="function"==typeof t?t({isFollowing:j}):t;return(0,d.useEffect)(function(){O(null==P?void 0:P.hasFollowed)},[null==P?void 0:P.hasFollowed]),(0,l.jsx)(p(),(0,a._)((0,s._)({loading:k,color:j?"secondary":"primary",variant:j?"outline":"fill",label:j?"دنبال کرده‌اید":"دنبال کنید"},M),{onClick:function(e){return(0,i._)(function(){return(0,c._)(this,function(t){switch(t.label){case 0:return e.stopPropagation(),[4,window.scheduler.yield()];case 1:return t.sent(),y?T():C(),[2]}})})()}}))};r.d(t,{A:function(){return n}});var i=r(3050),s=r(57803),a=r(44258),o=r(3808),u=r(852),c=r(65699),l=r(31827),d=r(99195),v=r(39876),f=r(11074),_=r(90327),p=r.n(_),h=r(9953),w=r(83118),m=r(17890)},17149:function(e,t,r){"use strict";r.d(t,{A:function(){return _}});var n=r(31827),i=r(86043),s=r(33469),a=r.n(s),o=r(80105),u=r(46312),c=r.n(u),l=r(95542),d=r.n(l),v=r(54268),f=r.n(v),_=function(){var e=(0,o.U)().ua;return(0,n.jsxs)("div",{className:a()["reviews-metadata"],children:[(0,n.jsx)("div",{className:a()["reviews-metadata__title"],children:(0,n.jsx)(f(),{width:e.isPc?180:150,height:e.isPc?24:21})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:a()["reviews-metadata__rating"],children:(0,n.jsx)(f(),{width:e.isPc?150:120,height:e.isPc?60:36})}),(0,n.jsx)(f(),{className:a()["reviews-metadata__count"],width:e.isPc?150:120,height:e.isPc?24:15}),(0,n.jsx)(d(),{className:a()["reviews-metadata__stars"],readOnly:!0,color:"black",value:0,size:e.isPc?"md":"sm"})]}),(0,n.jsx)("div",{className:a()["reviews-metadata__progress"],children:(0,i.y1)(0,5).map(function(t){return(0,n.jsx)(c(),{mb:e.isPc?12:4,children:(0,n.jsx)(f(),{width:e.isPc?250:180,height:e.isPc?20:14})},t)})})]})}},17890:function(e,t,r){"use strict";r.d(t,{Y:function(){return a},s:function(){return o}});var n=r(57803),i=r(11074),s=r(38559),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.IT)(["user-following-status",e],function(){return(0,s.JZ)(e)},(0,n._)({},t))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.n_)(function(){return(0,s.pz)(e)},t)}},20736:function(e,t,r){"use strict";r.d(t,{x:function(){return i},X:function(){return n}});var n={src:"/charsou-assets/unified/_next/static/media/default-image.aa5c295a.webp",height:500,width:500,blurDataURL:"data:image/webp;base64,UklGRiwAAABXRUJQVlA4ICAAAAAwAQCdASoIAAgAAkA4JaQAA3AA/vpUDm/IJayGCiAAAA==",blurWidth:8,blurHeight:8},i={src:"/charsou-assets/unified/_next/static/media/default-avatar.6647bbbb.webp",height:100,width:100,blurDataURL:"data:image/webp;base64,UklGRm4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSBIAAAABD3Dk/4iIIBBIVs99iIj+hwZWUDggNgAAAPABAJ0BKggACAACQDglpAAPgBCR9DNVAAD+/Pcih+6N6tuNTHR1rB+Mul7iZyljFb5laUAAAA==",blurWidth:8,blurHeight:8}},24878:function(e,t,r){"use strict";var n=function(e,t){var r,n;return(null==e?void 0:e.id)&&(null==e||null==(r=e.vendor)?void 0:r.identifier)?"".concat((0,s.u)(null==(n=e.vendor)?void 0:n.identifier),"/product/").concat(e.id).concat((0,i.stringifyQuery)(t)):"/"};r.d(t,{j:function(){return n}});var i=r(44481),s=r(72709)},33469:function(e){e.exports={"reviews-metadata":"_4gQMnF","reviews-metadata__title":"m4131p","reviews-metadata__sub-title":"_QM3TB","reviews-metadata__rating":"QI6VY6","reviews-metadata__rating-rate":"MH5_Ae","reviews-metadata__rating-rate-suffix":"W_3oAm","reviews-metadata__count":"_4GCfG8","reviews-metadata__stars":"gB35nz","reviews-metadata__progress":"_8onUFw","reviews-metadata__progress__item":"iQ1Lm1","reviews-metadata__progress__title":"T88J6P","reviews-metadata__progress__bar":"pVeupM","reviews-metadata__progress__bar-fill":"Hy4lFT","reviews-metadata__progress__suffix":"q_vUrP"}},36886:function(e){e.exports=function(e){var t=void 0===e?"undefined":_type_of(e);return null!=e&&("object"==t||"function"==t)}},38559:function(e,t,r){"use strict";var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q.AO.get("/web/v1/story/story_data/".concat(e),t)},i=function(e){return Q.AO.get("/web/v1/story/stories/".concat(e))},s=function(e){var t=e.data;return Q.AO.post("/web/v1/story/stories/add",t)},a=function(e){return Q.AO.get("/web/v1/story/my-stories",(0,G._)({},e))},o=function(e){return Q.AO.post("/web/v1/story/stories",(0,H.kG)({userIds:e}))},u=function(e){return Q.AO.get("/web/v1/story/hashtag",(0,G._)({},e))},c=function(e){var t=e.vendors,r=e.count;return Q.AO.post("/web/v1/story/user-feed",{count:r,vendors:t})},l=function(e){var t=e.count,r=e.identifier,n=e.lastRank,i=e.timeout,s=(0,H.kG)({count:t,lastRank:n,identifier:r});return Q.AO.get("/web/v1/story/highlight/read-user-highlights",(0,G._)({params:s},i?{timeout:i}:{}))},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q.AO.post("/web/v1/story/stories/".concat(e,"/seen"),t)},v=function(e){return Q.AO.post("/web/v1/story/stories/".concat(e,"/like"))},f=function(e){return Q.AO.delete("/web/v1/story/stories/".concat(e,"/like"))},_=function(e){return Q.AO.delete("/web/v1/story/stories/".concat(e))},p=function(e){return Q.AO.get("/web/v1/story/follow-service/has-followed-v2/".concat(e))},h=function(e){return Q.AO.post("/web/v1/story/follow-service/follow",(0,H.kG)(e))},w=function(e){return Q.AO.post("/web/v1/story/follow-service/followers-list",(0,H.kG)(e))},m=function(e){return Q.AO.post("/web/v1/story/follow-service/followings-list",(0,H.kG)(e))},g=function(e){return Q.AO.post("/web/v1/story/follow-service/follow-stats/bulk",(0,H.kG)(e))},b=function(e){return Q.AO.post("/web/v1/story/blocked-users",{target_user_id:e})},y=function(e){return Q.AO.delete("/web/v1/story/blocked-users/".concat(e))},x=function(e,t,r){var n=r.signal;return Q.AO.get("/web/v1/story/hashtag/autocomplete",{signal:n,params:{substring:e,count:t}})},A=function(e){var t=e.data;return Q.AO.post("/web/v1/story/reels/",t)},j=function(e,t){var r=e.params;return Q.AO.get("/web/v1/story/reels/".concat(t?"user/".concat(t):"my-reels"),{params:(0,H.kG)(r)}
1)},O=function(e){return Q.AO.get("/web/v1/story/hashtag/reels",(0,G._)({},e))},N=function(e){var t=e.productId,r=e.params,n=e.config;return Q.AO.get("/web/v1/story/reels/product/".concat(t),(0,G._)({params:(0,H.kG)(r)},void 0===n?{}:n))},C=function(e){return Q.AO.post("/web/v1/story/reels/product/has-reel",(0,H.kG)(e))},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q.AO.get("/web/v1/story/reels/data/".concat(e),(0,G._)({},t))},P=function(e){var t=e.params;return Q.AO.get("/web/v1/story/reels/search-check",{params:(0,H.kG)(t)})},E=function(e){var t=e.reelId,r=e.like;return Q.AO.post("/web/v1/story/reels/".concat(t,"/like"),{like:r})},R=function(e){return Q.AO.post("/web/v1/story/reels/".concat(e,"/seen"))},T=function(e){return Q.AO.delete("/web/v1/story/reels/".concat(e))},S=function(e){var t=e.query,r=e.limit,n=e.offset;return Q.AO.get("/web/v1/story/reels/search",{params:{query:t,limit:r,offset:n}})},k=function(e){return Q.AO.post("/web/v1/story/add-story/reel/".concat(e))},M=function(e){return Q.AO.post("/web/v1/story/reels/same/".concat(e))},L=function(){return Q.AO.get("/web/v1/story/reels/can_create")},D=function(e){return Q.AO.post("/web/v1/story/reels/component",(0,H.kG)(e))},U=function(e){var t=e.reelId,r=e.data;return Q.AO.put("/web/v1/story/reels/".concat(t),(0,H.kG)(r))},B=function(e){return Q.AO.post("/web/v1/story/reels/products",(0,H.kG)(e))};r.d(t,{$f:function(){return K},F5:function(){return g},H7:function(){return I},IF:function(){return T},In:function(){return O},JE:function(){return m},JG:function(){return _},JZ:function(){return p},M1:function(){return S},O6:function(){return B},QH:function(){return a},Qd:function(){return u},Qp:function(){return R},Qu:function(){return y},Rb:function(){return i},TA:function(){return l},UJ:function(){return L},Vf:function(){return P},Wl:function(){return A},X2:function(){return s},XB:function(){return v},ak:function(){return C},cK:function(){return c},e8:function(){return E},fI:function(){return x},fP:function(){return d},h$:function(){return b},k2:function(){return j},od:function(){return k},pD:function(){return M},pM:function(){return N},pz:function(){return h},s_:function(){return n},uk:function(){return f},wO:function(){return U},xA:function(){return D},y4:function(){return w},ym:function(){return o}});var G=r(57803),H=r(86043),Q=r(78124),K=function(){return Q.AO.get("/web/v1/story/categories")}},49522:function(e,t,r){"use strict";r.d(t,{Kn:function(){return s},Zn:function(){return u},_B:function(){return i},c4:function(){return a},i4:function(){return n},o2:function(){return o},wV:function(){return c}});var n={pdp:"pdp",pgp:"pgp",home:"home",share:"share",vendor:"vendor",hashtag:"hashtag"},i={default:"default",compactGrid:"compact-grid"},s={top_reels:"top-reels",mlt_reels:"mlt-reels",user_reels:"user-reels",owner_reels:"owner-reels",single_reels:"single-reels",search_reels:"search-reels",hashtag_reels:"hashtag-reels",product_reels:"product-reels",related_reels:"related-reels",can_create_reels:"can_create_reels",mixed_discovery:"mixed-page-discovery",products_has_reels:"products-has-reels",search_score_reels:"search-score-reels"},a=[{id:"review",icon:"bi-box",title:"معرفی محصول",requiresProducts:!0,description:"اگه داری توی ویدئوت مستقیم محصولاتت رو معرفی می‌کنی، این دسته رو انتخاب کن."},{id:"business",icon:"bi-vendor",title:"معرفی غرفه",requiresProducts:!1,description:"ویدئوهای مربوط به معرفی غرفه، محل کار و مراحل تولید محصولت توی این دسته قرار می‌گیرن."},{id:"tutorial",title:"آموزشی",icon:"bi-lamp-shine",requiresProducts:!1,description:"برای ویدئوهای آموزشی این دسته رو انتخاب کن. مثلاً اگه قراره نحوه استفاده از محصولت رو به خریدار یاد بدی."}],o={id:"other",title:"سایر",icon:"bi-video-circle",requiresProducts:!1,description:"برای ویدئوهای انگیزشی، مناسبتی و ویدئوهایی که مربوط به محصول و غرفه‌ت نیست، این دسته مناسبه."},u={create_no_products:{message:"در دسته معرفی محصول، باید حداقل یک محصول به ویدئو اضافه کرده باشی."},edit_current_review_no_products:{message:"در دسته معرفی محصول، باید حداقل یک محصول به ویدئو اضافه کرده باشی."},edit_cant_to_other:{message:"فعلا امکان تغییر به نوع سایر Ù
1†Ø¯Ø§Ø±Ù‡. برای داشتن ویدئو در این نوع، یه ویدئوی جدید ثبت کن."},edit_cant_to_tutorial:{message:"فعلا امکان تغییر به نوع آموزشی وجود نداره. برای داشتن ویدئو در این نوع، یه ویدئوی جدید ثبت کن."},edit_cant_to_review:{message:"فعلا امکان تغییر به نوع معرفی محصول وجود نداره. برای داشتن ویدئو در این نوع، یه ویدئوی جدید ثبت کن."},edit_cant_to_business:{message:"فعلا امکان تغییر به نوع معرفی غرفه وجود نداره. برای داشتن ویدئو در این نوع، یه ویدئوی جدید ثبت کن."}},c={message:"فعلاً امکان تغییر نوع ویدئو به معرفی محصول یا معرفی غرفه وجود نداره. برای داشتن ویدئو در این نوع‌ها، یه ویدئوی جدید ثبت کن."}},49874:function(e){e.exports={vrp__wrapper:"BdryPh",vrp__metadata:"LLLzLX",vrp__sort:"fOeTgu",vrp__items:"dQEIxe","vrp__items-card":"LECp4g","vrp__empty-state":"sjOGAv","vrp__empty-state-img":"y6ZGX3","vrp__empty-state-title":"AxYtzD","vrp__empty-state-subtitle":"_7V2RmG"}},52594:function(e,t,r){"use strict";var n,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),i=0;i<r.length;i++)"default"!==r[i]&&s(t,e,r[i]);return a(t,e),t}),u=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var c=o(r(99195));t.default=function(e){var t=e.children,r=e.element,n=e.hasMore,s=void 0!==n&&n,a=e.initialLoad,o=void 0===a||a,l=e.isReverse,d=void 0!==l&&l,v=e.loader,f=void 0===v?null:v,_=e.loadMore,p=e.pageStart,h=void 0===p?0:p,w=e.getScrollParent,m=void 0===w?null:w,g=e.threshold,b=void 0===g?250:g,y=e.useCapture,x=void 0!==y&&y,A=e.useWindow,j=void 0===A||A,O=u(e,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","getScrollParent","threshold","useCapture","useWindow"]),N=(0,c.useRef)(null),C=(0,c.useRef)(h),I=(0,c.useRef)(0),P=(0,c.useRef)(0),E=(0,c.useRef)(!1),R=(0,c.useCallback)(function(){var e;return m?m():(null==(e=N.current)?void 0:e.parentElement)||null},[m]),T=(0,c.useCallback)(function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",function(){},t),window.removeEventListener("test",function(){},t)}catch(e){}return e},[]),S=(0,c.useCallback)(function(){return T()?{useCapture:x,passive:!0}:{passive:!1}},[T,x]),k=(0,c.useCallback)(function(){var e=window;j||(e=R()),e&&(e.removeEventListener("scroll",L,S()),e.removeEventListener("resize",L,S()),e.removeEventListener("mousewheel",M,S()))},[j,R,S]),M=(0,c.useCallback)(function(e){1!==e.deltaY||T()||e.preventDefault()},[T]),L=(0,c.useCallback)(function(){var e,t=N.current,r=R();if(t&&r){if(j){var n=document.documentElement||document.body.parentNode||document.body,i=void 0!==window.pageYOffset?window.pageYOffset:n.scrollTop;e=d?i:t?function e(t){return t?t.offsetTop+e(t.offsetParent):0}(t)+(t.offsetHeight-i-window.innerHeight):0}else e=d?r.scrollTop:t.scrollHeight-r.scrollTop-r.clientHeight;e<Number(b)&&null!==t.offsetParent&&(k(),I.current=r.scrollHeight,P.current=r.scrollTop,"function"==typeof _&&(_(++C.current),E.current=!0))}},[j,d,b,k,R,_]),D=(0,c.useCallback)(function(){var e=R();if(s&&e){var t=window;j||(t=e),t.addEventListener("scroll",L,S()),t.addEventListener("resize",L,S()),t.addEventListener("mousewheel",M,S()),o&&L()}},[s,j,R,L,S,M,o]);(0,c.useEffect)(function(){return C.current=h,D(),function(){k()}},[D,k,h]);var U=c.default.Children.toArray(t);return s&&null!=f&&(d?U.unshift(f):U.push(f)),c.default.createElement(void 0===r?"div":r,i({ref:function(e){N.current=e}},O),U)}},54338:function(e,t,r){"use strict";r.d(t,{A:function(){return f}});var n=r(76653),i=r(31827),s=r(34458),a=r(61899),o=r.n(a),u=r(80105),c=r(95542),l=r.n(c),d=r(54268),v=r.n(d),f=function(e){var t,r=e.isSlide,a=e.isModal,c=e.noBorder,d=e.isShowAction,f=e.className,_=(e.isShowUser,e.isShowProductItem),p=(0,u.U)().ua.isPc,h=(0,s.default)(void 0===f?"":f,o()["review-card"],(t={},(0,n._)(t,o()["review-card--is-pc"],p),(0,n._)(t,o()["review-card--is-modal"],a),(0,n._)(t,o()["review-card--is-slide"],r),(0,n._)(t,o()["review-card--no-border"],c),(0,n._)(t,o()["review-card--has-product"],_),t));return(0,i.jsxs)("div",{className:h,children:[_&&(0,i.jsx)("div",{className:o()["review-card__product"],children:(0,i.jsx)(v(),{width:"100%",height:74})}),(0,i.jsxs)("div",{className:o()["review-card__info"],children:[(0,i.jsx)("div",{className:o()["review-card__avatar"],children:(0,i.jsx)(v(),{width:p?64:44,height:p?64:44,radiu
1s:p?64:44})}),(0,i.jsxs)("div",{className:o()["review-card__user"],children:[(0,i.jsx)(v(),{width:100,height:21}),(0,i.jsx)(l(),{className:o()["review-card__user-rating"],readOnly:!0,value:0,size:"sm"})]}),(0,i.jsx)("div",{className:o()["review-card__date"],children:(0,i.jsx)(v(),{width:50,height:15})})]}),(0,i.jsxs)("div",{className:o()["review-card__body"],children:[(0,i.jsx)(v(),{width:p?"50%":"100%",height:p?21:18}),!p&&(0,i.jsx)(v(),{width:"50%",height:p?21:18})]}),d&&(0,i.jsxs)("div",{className:o()["review-card__actions"],children:[(0,i.jsx)(v(),{width:36,height:p?36:32}),(0,i.jsx)(v(),{width:90,height:p?36:32}),(0,i.jsx)(v(),{width:90,height:p?36:32})]})]})}},56492:function(e,t,r){"use strict";r.d(t,{A:function(){return d}});var n=r(31827),i=r(99195),s=r(33469),a=r.n(s),o=r(86043),u=r(95542),c=r.n(u),l=r(80105),d=function(e){var t=e.title,r=void 0===t?"":t,s=e.subtitle,u=void 0===s?"":s,d=e.total,v=void 0===d?0:d,f=e.groups,_=void 0===f?{}:f,p=e.average,h=void 0===p?0:p,w=(0,l.U)().ua.isMobile,m=(0,i.useMemo)(function(){try{var e=[_[1]||0,_[2]||0,_[3]||0,_[4]||0,_[5]||0],t=100;return e.map(function(e,r){var n=Math.round(e/v*100);return t-=n,{count:e,id:r,percent:n>0&&t<0?n+t:n}})}catch(e){return(0,o.bK)(5).fill(0)}},[_,v]);return(0,n.jsxs)("div",{className:a()["reviews-metadata"],children:[!!r&&(0,n.jsx)("span",{className:a()["reviews-metadata__title"],children:r}),!!u&&(0,n.jsx)("span",{className:a()["reviews-reviews-metadata__sub-title"],children:u}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:a()["reviews-metadata__rating"],children:[(0,n.jsx)("span",{className:a()["reviews-metadata__rating-rate"],children:h}),(0,n.jsx)("span",{className:a()["reviews-metadata__rating-rate-suffix"],children:"از 5"})]}),(0,n.jsxs)("span",{className:a()["reviews-metadata__count"],children:[v," تجربه ثبت شده‌است"]}),(0,n.jsx)(c(),{readOnly:!0,value:h,size:w?"sm":"md",className:a()["reviews-metadata__stars"]})]}),(0,n.jsx)("div",{className:a()["reviews-metadata__progress"],children:m.map(function(e,t){var r=e.id,i=e.count,s=e.percent;return(0,n.jsxs)("div",{className:a()["reviews-metadata__progress__item"],children:[(0,n.jsxs)("span",{className:a()["reviews-metadata__progress__title"],children:[(0,n.jsx)("span",{children:t+1}),w?(0,n.jsx)("i",{className:"bi-star-fill"}):(0,n.jsx)("span",{children:"ستاره"})]}),(0,n.jsx)("div",{className:a()["reviews-metadata__progress__bar"],children:(0,n.jsx)("div",{style:{width:"".concat(s,"%")},className:a()["reviews-metadata__progress__bar-fill"]})}),(0,n.jsx)("span",{className:a()["reviews-metadata__progress__suffix"],children:i})]},r)})})]})}},58335:function(e,t,r){"use strict";r.d(t,{PV:function(){return i},cp:function(){return n},t_:function(){return s}});var n={PAID:2,CANCEL:1,UNPAID:7,INVALID:5,EXPIRED:6,BANK_WAITING:4,PAYMENT_WAITING:3},i={WALLET:2,GATEWAY:1,CART_TO_CART:0},s={TEXT:"text",FILE:"file",USER:"user",VOICE:"voice",ORDER:"order",VIDEO:"video",STORY:"story",REVIEW:"review",VENDOR:"vendor",COUPON:"coupon",FACTOR:"factor",PRODUCT:"product",STICKER:"sticker",PICTURE:"picture",AGREEMENT:"agreement",CALL:"voice_call_phone",SOCIAL_POST:"social_post",NOTIFICATION:"notification",ORDER_PROCESS:"order_process"}},59624:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[vendorIdentifier]/reviews",function(){return r(83581)}])},61630:function(e){e.exports=function(e){return function(t){return e(t)}}},61899:function(e){e.exports={"review-card":"FbYpLC","review-card__context":"tQ6Gjj","review-card__body--is-slide":"myofJ1","review-card__product":"_3NC6Ae","review-card__variation":"r3Z_yQ","review-card__context-description":"yYMH4f","review-card__context-description-txt":"LTULsH","review-card__context-description-txt--is-edited":"_6vX_Di","review-card__context-description-txt--is-edited-title":"HpDfFO","review-card__context-attachments":"mCoUrH","review-card__body-btn":"DfWv3l","review-card__tags":"ijzZNs","review-card__tag":"Mm641r","review-card__reply":"JUdn
1Qe","review-card--is-slide":"_Fizzh","review-card__body":"jef2aO","review-card--many-tags":"twxd0S","review-card--has-body":"Q98WC5","review-card__image":"MrjwZc","review-card--is-pc":"No1_U_","review-card--no-border":"IbSQER","review-card--is-modal":"Xjhvuf","review-card__info":"_1ohgsq","review-card__avatar":"bRt05w","review-card__user":"e9jqrH","review-card__user-rating":"_0CKqYJ","review-card__date":"_1mHH5x","review-card__actions":"YKOHCv"}},62174:function(e){e.exports={"review-sort__options":"A25ss1"}},72709:function(e,t,r){"use strict";var n=function(e,t){return e?"/".concat(e).concat((0,i.stringifyQuery)(t)):"/"};r.d(t,{u:function(){return n}});var i=r(44481)},74687:function(e,t,r){var n=r(13227),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},83581:function(e,t,r){"use strict";var n=function(){return(0,o.jsx)("div",{})};r.r(t),r.d(t,{default:function(){return H}});var i=r(57803),s=r(44258),a=r(3808),o=r(31827),u=r(86043),c=r(49874),l=r.n(c),d=r(39876),v=r(56560),f=r(99195),_=r(98908),p=r(80105),h=r(58408),w=r(53804),m=r(8820),g=r(64777),b=r(6964),y=r(34519),x=r(36112),A=r(81767),j=r(46312),O=r.n(j),N=r(15358),C=r.n(N),I=r(31559),P=r.n(I),E=r(99874),R=r.n(E),T=r(16108),S=r(32804),k=r(54338),M=r(56492),L=r(17149),D=r(91975),U=function(e){var t;return(0,s._)((0,i._)({},null==e?void 0:e.product),{title:null==e?void 0:e.product.productName,vendor:{id:null==e?void 0:e.product.vendorId,identifier:null==e?void 0:e.product.vendorIdentifier},variation:{data:null==e?void 0:e.variationMetadata,properties:null==e||null==(t=e.variationMetadata)?void 0:t.flatMap(function(e){return e.properties})}})},B=function(e){var t=e.reviews;return null==t?void 0:t.map(function(e){return(0,o.jsx)(S.A,{isShowAction:!0,review:e||{},isShowProductItem:!0,isShowConversation:!0,className:l()["vrp__items-card"],product:U(e||{})},null==e?void 0:e.id)})},G=function(){return(0,u.y1)(0,5).map(function(e){return(0,o.jsx)(k.A,{className:l()["vrp__items-card"]},e)})},H=(0,r(83659).A)(function(){var e=(0,h.A)().query.vendorIdentifier,t=(0,y.O)().showErrorPage,r=(0,w.K)(e),i=r.data,s=r.isFetched,u=(0,a._)((0,f.useState)(A.RK.HAS_DESCRIPTION),2),c=u[0],j=u[1],N=(0,p.U)(),I=N.ua,E=N.staticsOrigin,S=(0,T.Y)(null==i?void 0:i.id,{enabled:!!i}),k=S.data,U=S.isLoading,H=(0,T.d)({identifier:e,sort:c},{},{select:function(e){var t,r=(null==e||null==(t=e.pages)?void 0:t[0])||{};return{hasNext:r.hasNext,totalCount:r.totalCount,reviews:I.isPc?((null==e?void 0:e.pages)||[]).reduce(function(e,t){return t.reviews.forEach(function(t,r){(r%2==0?e.even:e.odd).push(t)}),e},{even:[],odd:[]}):((null==e?void 0:e.pages)||[]).flatMap(function(e){return e.reviews})}}}),Q=H.data,K=H.refetch,V=H.isError,F=H.fetchNextPage,W=H.isLoading,z=A.Vc.DISABLE.includes(null==i?void 0:i.status.value);(0,f.useEffect)(function(){s&&!i&&t(404)},[s,i]);var q=(0,f.useRef)(null);return(0,f.useEffect)(function(){return k&&(q.current=setTimeout(function(){(0,d.publishEvent)("readReviews",{vendorId:null==i?void 0:i.id,vendorRate:k.starsAverage,vendorReviewCount:k.starsTotalCount})},5e3)),function(){clearTimeout(q.current)}},[k]),(0,o.jsxs)("div",{className:l().vrp__wrapper,children:[(0,o.jsx)(_.A,{identifier:e,noindex:!0}),I.isPc?(0,o.jsx)(v.default,{}):(0,o.jsx)(g.A,{vendor:i}),(0,o.jsx)(C(),{children:I.isPc&&(0,o.jsx)(O(),{mt:12,mb:28,children:(0,o.jsx)(b.A,{vendor:i})})}),(0,o.jsx)(x.A,{identifier:e,activeTab:"REVIEWS"}),z&&(0,o.jsx)(m.A,{vendor:i}),!z&&(0,o.jsxs)(C(),{fluid:!I.isPc,children:[!U&&(null==k?void 0:k.starsTotalCount)>0&&(0,o.jsx)("div",{className:l().vrp__metadata,children:!U&&(0,o.jsx)(M.A,{title:"تجربه مشتری‌های این غرفه",average:null==k?void 0:k.starsAverage,groups:null==k?void 0:k.groups,total:null==k?void 0:k.starsTotalCount})}),U&&(0,o.jsx)("div",{className:l().vrp__metadata,children:(0,o.jsx)(L.A,{})}),U||(null==k?void 0:k.starsTotalCount)>0&&(0,o.jsx)("div",{className:l().vrp__sort,children:(0,o.jsx)(D.A,{sortBy:c,onChange:function(e){j(e),K()}})}),!U&&0===(null==k?void 0:k.starsTotalCount)&&(0,o.jsxs)("div",{className:l()["vrp__empty-state"],children:[(0,o.jsx)("img",{className:l()["vrp__empty-state-img"],src:"".concat(E,"/public-17/photo/explore/aN/02-28/k8SNKFDDnybBfgApriJZpIH8VKH38P5mXFbaOc5KWMAQBgBMCx.SVG"),alt:"بدون تجربه خرید"}),(0,o.jsx)("span",{className:l()["vrp__empty-state-title"],children:"هنوز کسی برای این غرفه، تجربه خرید ننوشته!"}),(0,o.jsx)("span",{className:l()["vrp__empty-state-subtitle"],children:"اگه شما از این غرفه خرید کردی، اولین چراغ رو روشن کن!"})]}),(0,o.jsx)("div",{className:l().vrp__items,children:(0,o.jsx)(R(),{fetchMore:F,hasMore:null==Q?void 0:Q.hasNext,hasError:V,loadingComponent:n,useWindow:!0,threshold:100,children:I.isPc?(0,o.jsxs)(P(),{children:[(0,o.jsxs)(P().Col,{xs:12,lg:6,children:[(0,o.jsx)(B,{reviews:null==Q?void 0:Q.reviews.even}),W&&(0,o.jsx)(G,{})]}),(0,o.jsxs)(P().Col,{xs:12,lg:6,children:[(0,o.jsx)(B,{reviews:null==Q?void 0:Q.reviews.odd}),W&&(0,o.jsx)(G,{})]})]}):(0,o.jsxs)("div",{children:[(0,o.jsx)(B,{reviews:null==Q?void 0:Q.reviews}),W&&(0,o.jsx)(G,{})]})})})]})]})})},91975:function(e,t,r){"use strict";r.d(t,{A:function(){return b}});
1var n=r(3050),i=r(76653),s=r(3808),a=r(65699),o=r(31827),u=r(34458),c=r(99195),l=r(86043),d=r(62174),v=r.n(d),f=r(81767),_=r(90327),p=r.n(_),h=r(2796),w=r.n(h),m=r(89570),g=r.n(m),b=(0,c.memo)(function(e){var t,r=e.className,d=e.sortBy,_=void 0===d?f.RK.HAS_DESCRIPTION:d,h=e.onChange,m=(0,s._)((0,c.useState)(!1),2),b=m[0],y=m[1],x=(t={},(0,i._)(t,f.RK.CREATED_AT,"بر اساس جدیدترین"),(0,i._)(t,f.RK.LIKE_COUNT,"بر اساس محبوب‌ترین"),(0,i._)(t,f.RK.HAS_DESCRIPTION,"بر اساس کامل‌ترین"),t)[_],A=function(e){setTimeout(function(){y(e)},0)};return(0,o.jsxs)("div",{className:(0,u.default)(v()["review-sort"],void 0===r?"":r),children:[(0,o.jsx)(p(),{size:"sm",color:"secondary",variant:"outline",icon:"bi-sort-down",label:x,onClick:function(){return A(!0)}}),(0,o.jsx)(w(),{className:"dataset-inp-ReviewSort",size:"sm",showClose:!0,show:b,hideOtherModals:!1,title:"تجربه‌های خرید بر اساس",onClose:function(){return A(!1)},children:(0,o.jsx)("div",{className:v()["review-sort__options"],children:(0,o.jsxs)(g().Group,{value:_,onChange:function(e){return(0,n._)(function(){return(0,a._)(this,function(t){switch(t.label){case 0:return[4,(0,l.yy)(0)];case 1:return t.sent(),y(!1),[4,(0,l.yy)(200)];case 2:return t.sent(),null==h||h(e),[2]}})})()},children:[(0,o.jsx)(g(),{size:"md",label:"کامل‌ترین",value:f.RK.HAS_DESCRIPTION}),(0,o.jsx)(g(),{size:"md",label:"جدیدترین",value:f.RK.CREATED_AT}),(0,o.jsx)(g(),{size:"md",label:"محبوب‌ترین",value:f.RK.LIKE_COUNT})]})})})]})})},95542:function(e,t,r){"use strict";var n=r(31827),i=r(63477),s=r(47072),a=r(99195),o=function(e){var t=e.value,r=e.min,o=void 0===r?0:r,u=e.mid,c=void 0===u?3:u,l=e.max,d=void 0===l?5:l,v=e.readOnly,f=e.isButton,_=e.onChange,p=e.showIndex,h=e.className,w=e.indexColor,m=e.size,g=void 0===m?"lg":m,b=e.defaultValue,y=e.onHoverChange,x=e.color,A=void 0===x?"warning":x,j=e["data-testid"],O=a.useId(),N=a.useRef(null),C=_sliced_to_array(s.useUncontrolled({value:t,onChange:_,defaultValue:b,finalValue:0}),2),I=C[0],P=C[1],E=_sliced_to_array(a.useState(-1),2),R=E[0],T=E[1],S=_sliced_to_array(a.useState(!0),2),k=S[0],M=S[1],L=function(e){var t=e+1;v||t<o||P(t)},D=function(e){var t=e+1;return k||v?t<=Math.round(I):t<=Math.max(o,R)},U=a.useMemo(function(){return v?{index:Math.ceil(I)-1,fillPercent:I%1==0?100:10*Number(I.toFixed(1).toString().split(".")[1])}:null},[v,I]),B=a.useMemo(function(){return i.clsx("bs-rating","bs-rating--".concat(g),{"bs-rating--is-button":f},h)},[g,f,h]),G=i.clsx("bs-rating__wrapper",{"bs-rating__wrapper--button":f}),H=function(e){return i.clsx("bs-rating__star",{"bs-rating__star--active":D(e)},{"bs-rating__star--readonly":v})},Q={bg:"var(--gray-100)",danger:"var(--danger)",black:"var(--gray-600)",warning:"var(--warning)",primary:"var(--primary)",auto:(R>-1?c<=R:c<=I)?"var(--warning)":"var(--danger)"};return n.jsx("div",{className:B,"data-testid":j,children:n.jsx("div",{ref:N,className:G,onMouseEnter:function(){v||M(!1)},onMouseMove:function(e){if(!v&&N.current){var t=N.current.getBoundingClientRect(),r=t.left,n=t.width/d,i=Math.round((e.clientX-r)/n+.5);T(i),null==y||y(i)}},onMouseLeave:function(){v||(T(-1),M(!0),null==y||y(-1))},children:Array.from({length:d}).map(function(e,t){return f?n.jsxs("div",{className:H(t),children:[n.jsx("div",{className:i.clsx("bs-rating__button",{"bs-rating__button--active":D(t),"bs-rating__button--disabled":v&&!b}),onClick:function(){return L(t)},children:n.jsx("i",{className:i.clsx("bs-rating__button-icon","bi-star"+(D(t)?"-fill":""))})},t),p&&n.jsx("span",{className:"bs-rating__star-index",children:t+1})]},t):n.jsxs("div",{className:H(t),role:"button",tabIndex:0,onClick:function(){return L(t)},onKeyDown:function(){return L(t)},children:[n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(null==U?void 0:U.index)===t&&n.jsxs("linearGradient",{id:O,children:[n.jsx("stop",{offset:"".concat(U.fillPercent,"%"),stopColor:Q[A]}),n.jsx("stop",{offset:"".concat(U.fillPercent,"%"),stopColor:Q.bg})]}),n.jsx("path",{fill:D(t)?Q[A]:Q.bg,d:"M12.9279 4.79202L14.2024 8.96053H18.3093C19.7255 8.96053 20.292 10.747 19.159 11.6403L15.7602 14.1712L17.0348 18.3397C17.4596 19.6796 15.9018 20.8706 14.9105 19.9774L11.5117 17.4465L8.11291 19.9774C6.97998 20.8706 5.56381 19.6796 5.98866 18.3397L7.26321 14.1712L3.86441 11.6403C2.73147 10.747 3.29794 8.96053 4.71411 8.96053H8.821L10.0956 4.79202C10.5204 3.45214 12.503 3.45214 12.9279 4.79202Z",style:(null==U?void 0:U.index)===t?{fill:"url('#".concat(O,"')")}:{}})]}),p&&n.jsx("span",{className:"bs-rating__star-index",style:{color:w||Q[A]},children:t+1})]},t)})})})};o.displayName="BsRating",e.exports=o},99874:function(e,t,r){"use strict";
1var n,i=function(e){var t=e.hasMore,r=e.children,n=e.fetchMore,i=e.getScrollParent,u=e.threshold,l=void 0===u?200:u,d=e.useWindow,v=void 0===d||d,f=e.hasError,_=void 0!==f&&f,p=e.component,h=void 0===p?"div":p,w=e.isReverse,m=void 0!==w&&w,g=e.initialLoad,b=void 0===g||g,y=e["data-testid"],x=e.errorComponent,A=e.loadingComponent,j=a.useMemo(function(){return null===A?void 0:A?s.jsx(A,{},"".concat(Date.now(),"-").concat(Math.random())):s.jsx(o,{className:"bs-infinite-scroll__loading"},"".concat(Date.now(),"-").concat(Math.random()))},[A]);return s.jsxs("div",{"data-testid":y,children:[s.jsx(c,{loader:j,element:h,loadMore:n,useWindow:v,isReverse:m,initialLoad:b,hasMore:!_&&t,threshold:l,getScrollParent:i,children:r}),_&&x]})},s=r(31827),a=r(99195),o=r(82669),u=r(10353);r(63477);var c=null!==(n=null==u?void 0:u.default)&&void 0!==n?n:u;i.displayName="BsInfiniteScroll",e.exports=i}},function(e){e.O(0,[55281,13347,70673,10299,25187,2254,50036,27201,40481,32604,45032,99537,72189,22320,83659,87075,86487,91066,64587,4560,56560,70459,41709,32804,79615,90636,46593,38792],function(){return e(e.s=59624)}),_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.