PageSourceSearch

https://satu.kz/cloud-cgi/static/catalog-ui/js/build/portal-portable/6995_21e65304836db017a7ab.js

js satu.kz collected 2026-10-09 22:46:01 UTC 94,628 bytes, 2 lines download raw bytes

1/*! For license information please see 6995_21e65304836db017a7ab.js.LICENSE.txt */
2(self["__LOADABLE_LOADED_CHUNKS__"]=self["__LOADABLE_LOADED_CHUNKS__"]||[]).push([[6995],{4470:function(e,n,t){var{oneQuery:i,extractReferences:r,getUniqueFunc:o}=t(36796),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateProductOpinionCommentMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"opinionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"replyToId"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"NullValue"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"comment"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createProductOpinionComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"opinionId"},value:{kind:"Variable",name:{kind:"Name",value:"opinionId"}}},{kind:"Argument",name:{kind:"Name",value:"replyToId"},value:{kind:"Variable",name:{kind:"Name",value:"replyToId"}}},{kind:"Argument",name:{kind:"Name",value:"comment"},value:{kind:"Variable",name:{kind:"Name",value:"comment"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductOpinionCommentsFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"replies"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductOpinionCommentsFragment"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:482}},l=o();a.definitions=a.definitions.concat(l(t(92932).definitions)),e.exports=a,e.exports.CreateProductOpinionCommentMutation=i(a,"CreateProductOpinionCommentMutation",r(a))},65121:function(e,n,t){var{oneQuery:i,extractReferences:r,getUniqueFunc:o}=t(36796),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteProductOpinionCommentMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"commentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteProductOpinionComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"commentId"},value:{kind:"Variable",name:{kind:"Name",value:"commentId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commentId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:162}};o();e.exports=a,e.exports.DeleteProductOpinionCommentMutation=i(a,"DeleteProductOpinionCommentMutation",r(a))},12222:function(e,n,t){var{oneQuery:i,extractReferences:r,getUniqueFunc:o}=t(36796),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteProductOpinionMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"opinionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteProductOpinion"},arguments:[{kind:"Argument",name:{kind:"Name",value:"opinionId"},value:{kind:"Variable",name:{kind:"Name",value:"opinionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"opinionId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:148}};o();e.exports=a,e.exports.DeleteProductOpinionMutation=i(a,"DeleteProductOpinionMutation",r(a))},68174:function(e,n,t){var{oneQuery:i,extractReferences:r,getUniqueFunc:o}=t(36796),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"EditProductOpinionCommentMutation"}
2,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"commentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"comment"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"editProductOpinionComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"commentId"},value:{kind:"Variable",name:{kind:"Name",value:"commentId"}}},{kind:"Argument",name:{kind:"Name",value:"comment"},value:{kind:"Variable",name:{kind:"Name",value:"comment"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductOpinionCommentsFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"replies"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductOpinionCommentsFragment"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:431}},l=o();a.definitions=a.definitions.concat(l(t(92932).definitions)),e.exports=a,e.exports.EditProductOpinionCommentMutation=i(a,"EditProductOpinionCommentMutation",r(a))},92932:function(e,n,t){var{oneQuery:i,extractReferences:r,getUniqueFunc:o}=t(36796),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductOpinionCommentsFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OpinionComment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateCreated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author_user_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorIsCompany"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}],loc:{start:0,end:176}};o();e.exports=a,e.exports.ProductOpinionCommentsFragment=i(a,"ProductOpinionCommentsFragment",r(a))},99378:function(e,n,t){var{oneQuery:i,extractReferences:r,getUniqueFunc:o}=t(36796),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductOpinionFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductOpinion"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"buyboxId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateCreated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isFromBuyer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publishedWithoutRating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pros"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cons"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fromBuyerText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canBeEdited"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shareLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDeleted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDeletedByAuthor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCurrentUserSelectedVehicle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vehicle"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"manufacturer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"userRatings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"likes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dislikes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentUserRatingState"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"photoUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"40"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"40"}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"1024"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"1024"}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"thumbnailUrl"},name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"100"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"company"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"video"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"videoId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"videoUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailImageUrl"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"comments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductOpinionCommentsFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"replies"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductOpinionCommentsFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"productData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variationAttributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"valueStr"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verticalDomain"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"allProductOpinionsCounter"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productRatingCounters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percent"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productOpinionCounters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"companyResponse"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1893}},l=o();a.definitions=a.definitions.concat(l(t(27910).definitions)),a.definitions=a.definitions.concat(l(t(92932).definitions)),e.exports=a,e.exports.ProductOpinionFragment=i(a,"ProductOpinionFragment",r(a))},50402:function(e,n,t){var{oneQuery:i,extractReferences:r,getUniqueFunc:o}=t(36796),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ToggleProductOpinionLikeMutation"}
2,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"opinionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OpinionUserRatingType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"toggleProductOpinionLike"},arguments:[{kind:"Argument",name:{kind:"Name",value:"opinionId"},value:{kind:"Variable",name:{kind:"Name",value:"opinionId"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:196}};o();e.exports=a,e.exports.ToggleProductOpinionLikeMutation=i(a,"ToggleProductOpinionLikeMutation",r(a))},70742:function(e,n,t){"use strict";t.d(n,{C:function(){return h}});var i=t(94499),r=t(53459),o=t(54357),a={root:"NI39K",delay:"W_dPp",scaleOpacity:"veyx2"},l=t(96147);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var u=["className","animation","children","as","animationDelay"];function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach(function(n){m(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function m(e,n,t){return(n=v(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function v(e){var n=f(e,"string");return"symbol"==d(n)?n:n+""}function f(e,n){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function p(e,n){if(null==e)return{};var t,i,r=y(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function y(e,n){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==n.indexOf(i))continue;t[i]=e[i]}return t}var h=(0,r.forwardRef)(function(e,n){var t,r,d,c,v,f,y=(0,i.c)(17);if(y[0]!==e){var h=e;c=h.className,t=h.animation,d=h.children,r=h.as,f=h.animationDelay,v=p(h,u),y[0]=e,y[1]=t,y[2]=r,y[3]=d,y[4]=c,y[5]=v,y[6]=f}else t=y[1],r=y[2],d=y[3],c=y[4],v=y[5],f=y[6];var b,g,k=void 0===f||f,x=r||"div",S=a[t];return y[7]!==k||y[8]!==c||y[9]!==S?(b=(0,o.A)(c,a.root,S,m({},a.delay,k)),y[7]=k,y[8]=c,y[9]=S,y[10]=b):b=y[10],y[11]!==x||y[12]!==d||y[13]!==v||y[14]!==n||y[15]!==b?(g=(0,l.jsx)(x,s(s({className:b},v),{},{ref:n,children:d})),y[11]=x,y[12]=d,y[13]=v,y[14]=n,y[15]=b,y[16]=g):g=y[16],g})},36414:function(e,n,t){"use strict";t.d(n,{r:function(){return P}});var i=t(94499),r=t(53459),o=t(96339),a=t(54357),l=t(60192),d=t(12251),u=t(79469),c=t(89281),s=t(91819),m=t(7492),v=t(75949),f=t(70742),p={root:"Qy_D4",deleteIconContainer:"dH3W1",deleteIcon:"Zz_1R",playIconContainer:"Lx_y6",square:"_LgMY",playIcon:"eP05j"},y=t(96147),h=function(e){var n,t=(0,i.c)(15),r=e.previewUrl,l=e.onClick,d=e.onDelete,u=e.needBorder,h=e.customPreview,b=void 0!==h&&h,g=void 0===u||u?"black-400 xs solid":"",k="url(".concat(r,")");t[0]!==k?(n={backgroundImage:k},t[0]=k,t[1]=n):n=t[1];var x,S,j,O,N,w=b?p.square:"";return t[2]!==w?(x=(0,a.A)(p.playIconContainer,w),t[2]=w,t[3]=x):x=t[3],t[4]===Symbol["for"]("react.memo_cache_sentinel")?(S=(0,y.jsx)(c.Flex,{"flex-content":"center","flex-items":"center","flex-height":"1-1",children:(0,y.jsx)(s.Icon,{"icon-as":v.SvgPlay,className:p.playIcon,"icon-color":"violet-500"})}),t[4]=S):S=t[4],t[5]!==l||t[6]!==x?(j=(0,y.jsx)(c.Flex,{"flex-content":"center","flex-items":"center","flex-height":"1-1",children:(0,y.jsx)(o.Box,{"box-round":"full",className:x,onClick:l,"data-qaid":"play_btn",children:S})}),t[5]=l,t[6]=x,t[7]=j):j=t[7],t[8]!==d?(O=d?(0,y.jsx)(o.Box,{className:p.deleteIconContainer,"box-round":"full","box-background":"black-400","box-position":"absolute",onClick:d,"data-qaid":"delete_btn",children:(0,y.jsx)(c.Flex,{"flex-items":"center","flex-content":"center","flex-height":"1-1",children:(0,y.jsx)(s.Icon,{"icon-as":m.Y,className:p.deleteIcon})})}):null,t[8]=d,t[9]=O):O=t[9],t[10]!==O||t[11]!==g||t[12]!==n||t[13]!==j?(N=(0,y.jsxs)(f.C,{"data-qaid":"youtube_tile","box-position":"relative","box-border":g,"box-background":"black-400",style:n,className:p.root,as:o.Box,animation:"scaleOpacity",children:[j,O]}),t[10]=O,t[11]=g,t[12]=n,t[13]=j,t[14]=N):N=t[14],N},b=t(14275),g=t(2028),k={videoPreview:"MTep2",fromSlider:"Uwgl_",viewM
2ore:"FiREi"},x=t(47678),S=function(e){var n=e.category,t=e.action;(0,x.u4)(n,t,"click")},j=function(e,n){var t="\u0444\u043e\u0442\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439 ".concat(e);return n?"".concat(n," - ").concat(t):t};function O(e,n){return C(e)||_(e,n)||w(e,n)||N()}function N(){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 w(e,n){if(e){if("string"==typeof e)return I(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,n):void 0}}function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function _(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function C(e){if(Array.isArray(e))return e}var F=function(e){var n,t=(0,i.c)(42),c=e.opinionId,s=e.images,m=e.video,v=e.fromSlider,f=e.productName,p=e.productId,x=e.analyticsCategory,N=O((0,r.useState)(!1),2),w=N[0],I=N[1],_=O((0,r.useState)(0),2),C=_[0],F=_[1];t[0]===Symbol["for"]("react.memo_cache_sentinel")?(n=function(e){I(!0),F(e)},t[0]=n):n=t[0];var P,A=n;t[1]===Symbol["for"]("react.memo_cache_sentinel")?(P=function(){return I(!1)},t[1]=P):P=t[1];var T,D,B,R,L,E,G=P;if(t[2]!==s||t[3]!==c||t[4]!==p||t[5]!==m){if(T=[],null===s||void 0===s||s.forEach(function(e){T.push({type:"image",src:e.url,opinionId:c,productId:p||0})}),m){var q,U=p||0;t[7]!==c||t[8]!==U||t[9]!==m.videoUrl?(q={type:"video",src:m.videoUrl,opinionId:c,productId:U},t[7]=c,t[8]=U,t[9]=m.videoUrl,t[10]=q):q=t[10],T.push(q)}t[2]=s,t[3]=c,t[4]=p,t[5]=m,t[6]=T}else T=t[6];t[11]!==x||t[12]!==v||t[13]!==s||t[14]!==f||t[15]!==m?(t[17]!==x||t[18]!==v||t[19]!==f||t[20]!==m?(B=function(e,n){if(v){if(m&&n>1)return null;if(!m&&n>3)return null}return(0,y.jsx)(d.O.Item,{children:(0,y.jsx)(l.Button,{"button-theme":"white","button-padding":"none",type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),A(n),S({category:x,action:"photo_block"})},children:(0,y.jsx)(b.S,{"picture-round":"m","picture-fit":"cover",width:v?60:80,height:v?60:80,style:{width:v?60:80},src:e.url,alt:j(n+1,f),"data-qaid":"image_tile"})})},e.id)},t[17]=x,t[18]=v,t[19]=f,t[20]=m,t[21]=B):B=t[21],D=s.map(B),t[11]=x,t[12]=v,t[13]=s,t[14]=f,t[15]=m,t[16]=D):D=t[16];t[22]!==x||t[23]!==v||t[24]!==s.length||t[25]!==m?(R=!!m&&(0,y.jsx)(d.O.Item,{"data-qaid":"video_preview_tile",children:(0,y.jsx)(o.Box,{"box-round":"m","box-overflow":"hidden","box-border":"black-400",className:(0,a.A)(k.videoPreview,v?k.fromSlider:{}),children:(0,y.jsx)(h,{previewUrl:m.thumbnailImageUrl,needBorder:!1,onClick:function(e){e.preventDefault(),e.stopPropagation(),A(s.length>0?s.length:0),S({category:x,action:"video_block"})}})})}),t[22]=x,t[23]=v,t[24]=s.length,t[25]=m,t[26]=R):R=t[26],t[27]!==v||t[28]!==T?(L=v&&T.length>4?(0,y.jsx)(d.O.Item,{children:(0,y.jsx)(o.Box,{"box-round":"m","box-overflow":"hidden","box-border":"black-400",className:(0,a.A)(k.viewMore,v?k.fromSlider:{}),onClick:function(){return A(3)},children:"+".concat(T.length-3)})}):null,t[27]=v,t[28]=T,t[29]=L):L=t[29],t[30]!==D||t[31]!==R||t[32]!==L?(E=(0,y.jsx)(u.ScrollControls,{zIndex:10,showOnHover:!0,children:(0,y.jsxs)(d.O,{"scroll-gap":"xs","scroll-bar":"none",children:[D,R,L]})}),t[30]=D,t[31]=R,t[32]=L,t[33]=E):E=t[33];var V,M,Q=!!p;return t[34]!==w||t[35]!==T||t[36]!==Q||t[37]!==C?(V=(0,y.jsx)(g.t,{isOpen:w,visibleIndex:C,onClose:G,items:T,isShowProductInfo:Q}),t[34]=w,t[35]=T,t[36]=Q,t[37]=C,t[38]=V):V=t[38],t[39]!==E||t[40]!==V?(M=(0,y.jsxs)(y.Fragment,{children:[E,V]}),t[39]=E,t[40]=V,t[41]=M):M=t[41],M};F.displayName="GalleryScroll";var P=function(e){var n,t=(0,i.c)(10),r=e.images,a=e.video,l=e.fromSlider,d=e.productName,u=e.productId,c=e.opinionId,s=e.analyticsCategory;t[0]!==r?(n=void 0===r?[]:r,t[0]=r,t[1]=n):n=t[1];var m,v=n;return t[2]!==s||t[3]!==l||t[4]!==v||t[5]!==c||t[6]!==u||t[7]!==d||t[8]!==a?(m=(0,y.jsx)(o.Box,{"box-margin-bottom":"s","data-qaid":"opinion_media_block",children:(0,y.jsx)(F,{opinionId:c,productId:u,productName:d,images:v,video:a,fromSlider:l,analyticsCategory:s})}),t[2]=s,t[3]=l,t[4]=v,t[5]=c,t[6]=u,t[7]=d,t[8]=a,t[9]=m):m=t[9],m};P.displayName="OpinionGallery"},12867:function(e,n,t){"use strict";t.d(n,{x:function(){return r}});var i=t(47678);function r(e,n){(0,i.u4)("Opinions",e,n)}},63744:function(e,n,t){"use strict";t.d(n,{m:function(){return jt}});var i=t(94499),r=t(53459),o=t(2380),a=t(75731),l=t(96339),d=t(94732),u=t(52596),c=t(58831),s=t(29
2049),m=t(2258),v=t(26294),f=t(13727),p=t(36414),y=t(92179),h=t(33538),b=t(13639),g=t(90309),k=t(84292),x=t(18196),S=t(51174),j=t(28386),O=t(67647),N=t(86494),w=t(34583),I=t(59470),_=t(60192),C=t(91819),F=t(96147);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function A(e,n,t){return(n=T(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){var n=D(e,"string");return"symbol"==P(n)?n:n+""}function D(e,n){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=P(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}var B=function(e){var n,t=(0,i.c)(17),r=e.count,o=e.isDisable,a=e.icon,d=e.dataQaid,u=e.onClick,c=e.title,m=e.currentUserRatingState,v=e.likeType,f=2===m?"violet-500":"black-700",p=1===m?"violet-500":"black-700";t[0]!==f||t[1]!==p?(n=A(A({},j.LA.Dislike,f),j.LA.Like,p),t[0]=f,t[1]=p,t[2]=n):n=t[2];var y,h,b=n[v],g=b;t[3]===Symbol["for"]("react.memo_cache_sentinel")?(y={width:24,height:24},t[3]=y):y=t[3],t[4]!==a||t[5]!==g?(h=(0,F.jsx)(C.Icon,{"icon-as":a,"icon-color":g,style:y}),t[4]=a,t[5]=g,t[6]=h):h=t[6];var k,x,S=b,O="".concat(d,"_count");return t[7]!==r||t[8]!==S||t[9]!==O?(k=(0,F.jsx)(l.Box,{"box-margin-left":"xs",children:(0,F.jsx)(s.Text,{"text-color":S,"data-qaid":O,children:r})}),t[7]=r,t[8]=S,t[9]=O,t[10]=k):k=t[10],t[11]!==o||t[12]!==u||t[13]!==h||t[14]!==k||t[15]!==c?(x=(0,F.jsxs)(_.Button,{"button-theme":"black-inherit","button-padding":"xxs","button-weight":"normal",type:"button",onClick:u,disabled:o,title:c,"aria-label":c,children:[h,k]}),t[11]=o,t[12]=u,t[13]=h,t[14]=k,t[15]=c,t[16]=x):x=t[16],x};B.displayName="LikeButton";var R=function(e){return e[e["AddLike"]=1]="AddLike",e[e["AddDisLike"]=2]="AddDisLike",e[e["RemoveAll"]=0]="RemoveAll",e}({}),L={LIKE_TO_OWN_OPINION:"LIKE_TO_OWN_OPINION",OPINION_ABOUT_OWN_COMPANY:"OPINION_ABOUT_OWN_COMPANY",NEEDS_VERIFICATION_ERROR:"NEEDS_VERIFICATION_ERROR"},E=function(e){return e[e["ApprovalPending"]=0]="ApprovalPending",e[e["OnDisplay"]=1]="OnDisplay",e[e["NotOnDisplay"]=2]="NotOnDisplay",e[e["CompanyApprovalPending"]=3]="CompanyApprovalPending",e}({}),G=function(e){return e["Create"]="create",e["Edit"]="edit",e}({}),q=function(e){return e["Comment"]="comment",e["Opinion"]="opinion",e}({}),U=t(79443);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function M(e){return $(e)||H(e)||W(e)||Q()}function Q(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function W(e,n){if(e){if("string"==typeof e)return z(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(e,n):void 0}}function H(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function $(e){if(Array.isArray(e))return z(e)}function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?K(Object(t),!0).forEach(function(n){X(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function X(e,n,t){return(n=J(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function J(e){var n=Z(e,"string");return"symbol"==V(n)?n:n+""}function Z(e,n){if("object"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=V(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}var ee=function(e){var n,t=(0,i.c)(27);t[0]!==e?(n=function(n){return n.opinions.find(function(n){return n.id===e})},t[0]=e,t[1]=n):n=t[1];var r,o=(0,U.L)(n),a=(0,U.L)(ne),l=(0,U.L)(te);t[2]!==o||t[3]!==e||t[4]!==a?(r=function(n,t){o&&a(e,function(e){var i;return i=t?e.comments.map(function(e){return e.id===t?Y(Y({},e),{},{replies:[].concat(M(e.replies),[n])}):e}):[].concat(M(e.comments),[n]),Y(Y({},e),{},{comments:i})})},t[2]=o,t[3]=e,t[4]=a,t[5]=r):r=t[5];var d,u=r;t[6]!==o||t[7]!==e||t[8]!==a?(d=function(n,t){var i=void 0!==t&&t;o&&a(e,function(e){var t=e.comments.map(function(e){if(e.replies&&e.replies.length>0&&i){var t=e.replies.filter(function(e){return e.id!==n});return Y(Y({},e),{},{replies:t})}return e}).filter(function(e){return e.id!==n});return Y(Y({},e),{},{comments:t})})},t[6]=o,t[7]=e,t[8]=a,t[9]=d):d=t[9];var c,s=d;t[10]!==o||t[11]!==e||t[12]!==a?(c=function(n,t){o&&a(e,function(e){var i=e.comments.map(function(e){if(t&&e.replies.length){var i=e.replies.map(function(e){return e.id===n.id?n:e});return Y(Y({},e),{},{replies:i})}return t||e.id!==n.id?e:n});return Y(Y({},e),{},{comments:i})})},t[10]=o,t[11]=e,t[12]=a,t[13]=c):c=t[13];var m,v=c;t[14]!==o||t[15]!==e||t[16]!==a?(m=function(n,t){o&&o.userRatings&&a(e,function(e){var i=e.userRatings,r=i.likes,a=i.dislikes;t===j.LA.Like&&(n===j.w5.None?r-=1:n===j.w5.Liked&&(o.userRatings.currentUserRatingState===R.AddDisLike&&(a-=1),r+=1)),t===j.LA.Dislike&&(n===j.w5.None?a-=1:n===j.w5.Disliked&&(o.userRatings.currentUserRatingState===R.AddLike&&(r-=1),a+=1));var l=Y(Y({},e.userRatings),{},{likes:r,dislikes:a,currentUserRatingState:X(X(X({},j.w5.Disliked,R.AddDisLike),j.w5.Liked,R.AddLike),j.w5.None,R.RemoveAll)[n]});return Y(Y({},e),{},{userRatings:l})})},t[14]=o,t[15]=e,t[16]=a,t[17]=m):m=t[17];var f,p=m;t[18]!==l||t[19]!==e?(f=function(){l(e)},t[18]=l,t[19]=e,t[20]=f):f=t[20];var y,h=f;
2return t[21]!==h||t[22]!==s||t[23]!==v||t[24]!==u||t[25]!==p?(y={updateProductOpinionCommentsCache:u,deleteProductOpinionCommentCache:s,updateProductOpinionLikesCache:p,updateProductOpinionCommentCache:v,deleteProductOpinionCache:h},t[21]=h,t[22]=s,t[23]=v,t[24]=u,t[25]=p,t[26]=y):y=t[26],y};function ne(e){return e.updateOpinion}function te(e){return e.deleteOpinion}var ie=t(50402),re=t.n(ie);function oe(){var e,n,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",r=t.toStringTag||"@@toStringTag";function o(t,i,r,o){var d=i&&i.prototype instanceof l?i:l,u=Object.create(d.prototype);return ae(u,"_invoke",function(t,i,r){var o,l,d,u=0,c=r||[],s=!1,m={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return o=n,l=0,d=e,m.n=t,a}};function v(t,i){for(l=t,d=i,n=0;!s&&u&&!r&&n<c.length;n++){var r,o=c[n],v=m.p,f=o[2];t>3?(r=f===i)&&(d=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((r=t<2&&v<o[1])?(l=0,m.v=i,m.n=o[1]):v<f&&(r=t<3||o[0]>i||i>f)&&(o[4]=t,o[5]=i,m.n=f,l=0))}if(r||t>1)return a;throw s=!0,i}return function(r,c,f){if(u>1)throw TypeError("Generator is already running");for(s&&1===c&&v(c,f),l=c,d=f;(n=l<2?e:d)||!s;){o||(l?l<3?(l>1&&(m.n=-1),v(l,d)):m.n=d:m.v=d);try{if(u=2,o){if(l||(r="next"),n=o[r]){if(!(n=n.call(o,d)))throw TypeError("iterator result is not an object");if(!n.done)return n;d=n.value,l<2&&(l=0)}else 1===l&&(n=o["return"])&&n.call(o),l<2&&(d=TypeError("The iterator does not provide a '"+r+"' method"),l=1);o=e}else if((n=(s=m.n<0)?d:t.call(i,m))!==a)break}catch(n){o=e,l=1,d=n}finally{u=1}}return{value:n,done:s}}}(t,r,o),!0),u}var a={};function l(){}function d(){}function u(){}n=Object.getPrototypeOf;var c=[][i]?n(n([][i]())):(ae(n={},i,function(){return this}),n),s=u.prototype=l.prototype=Object.create(c);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ae(e,r,"GeneratorFunction")),e.prototype=Object.create(s),e}return d.prototype=u,ae(s,"constructor",u),ae(u,"constructor",d),d.displayName="GeneratorFunction",ae(u,r,"GeneratorFunction"),ae(s),ae(s,r,"Generator"),ae(s,i,function(){return this}),ae(s,"toString",function(){return"[object Generator]"}),(oe=function(){return{w:o,m:m}})()}function ae(e,n,t,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ae=function(e,n,t,i){function o(n,t){ae(e,n,function(e){return this._invoke(n,t,e)})}n?r?r(e,n,{value:t,enumerable:!i,configurable:!i,writable:!i}):e[n]=t:(o("next",0),o("throw",1),o("return",2))},ae(e,n,t,i)}function le(e,n,t,i,r,o,a){try{var l=e[o](a),d=l.value}catch(e){return void t(e)}l.done?n(d):Promise.resolve(d).then(i,r)}function de(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(e){le(o,i,r,a,l,"next",e)}function l(e){le(o,i,r,a,l,"throw",e)}a(void 0)})}}function ue(e,n){return fe(e)||ve(e,n)||se(e,n)||ce()}function ce(){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 se(e,n){if(e){if("string"==typeof e)return me(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?me(e,n):void 0}}function me(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function ve(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function fe(e){if(Array.isArray(e))return e}var pe=function(e){var n=e.opinionId,t=e.userRatings,i=e.isDisable,o=e.userId,a=ue((0,g.n)(re()),2),l=a[0],u=a[1].loading,c=ee(n).updateProductOpinionLikesCache,s=(0,k.useSnackBar)(),m=(0,N.C)(function(e){return e.setIsAuthSidebarOpen}),v=(0,I.N)(),f=v.addToQueue,p=v.clearQueue,y=v.hasQueueItem,h=function(){var e=de(oe().m(function e(t){var i;return oe().w(function(e){for(;1;)switch(e.n){case 0:if(i=function(){var e=de(oe().m(function e(){var i,r,o,a,d,u;return oe().w(function(e){for(;1;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,l({variables:{opinionId:n,type:t}});case 1:r=e.v,null!==(i=r.data)&&void 0!==i&&i.toggleProductOpinionLike&&c(null===(o=r.data)||void 0===o?void 0:o.toggleProductOpinionLike.state,t),e.n=3;break;case 2:e.p=2,u=e.v,(a=u)&&((d=b.K.is(a)?(0,O.X)(a.errors).code:void 0)===L.LIKE_TO_OWN_OPINION?s.open(a.message||"\u041d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0439\u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u043e\u0442\u0437\u044b\u0432\u0443"):d===L.OPINION_ABOUT_OWN_COMPANY?s.open(a.message||"\u041d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0439\u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0443"):s.open(t===j.LA.Like?"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0439\u043a \u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0437\u044b\u0432\u0443. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439 \u0435\u0449\u0435 \u0440\u0430\u0437":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0438\u0437\u043b\u0430\u0439\u043a \u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0437\u044b\u0432\u0443. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439 \u0435\u0449\u0435 \u0440\u0430\u0437"));case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),!o){e.n=2;break}return e.n=1,i();case 1:e.n=3;break;case 2:m(!0,{source:w.u2.opinion_likes}),f(I.R.ToggleLikeHandler,{opinionId:n,likeType:t});case 3:return e.a(2)}},e)}));return function(n){return e.apply(this,arguments)}}();return(0,r.useEffect)(function(){var e,t,i=y(I.R.ToggleLikeHandler);(null===i||void 0===i||null===(e=i.data)||void 0===e?void 0:e.opinionId)===n&&(h(null===(t=i.data)||void 0===t?void 0:t.likeType),p(I.R.ToggleLikeHandler))},[]),(0,F.jsxs)(d.Grid,{"grid-wrap":"nowrap","grid-indent-x":"xs","grid-valign":"middle","data-qaid":"like_block",children:[(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(B,{dataQaid:"like",count:t.likes,onClick:function(){return h(j.LA.Like)},icon:x.m,title:"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",isDisable:i||u,currentUserRatingState:t.currentUserRatingState,likeType:j.LA.Like})}),(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(B,{dataQaid:"dislike",count:t.dislikes,onClick:function(){return h(j.LA.Dislike)},icon:S.a,title:"\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",isDisable:i||u,currentUserRatingState:t.currentUserRatingState,likeType:j.LA.Dislike})})]})},ye=t(70742),he=t(89281),be=t(48617),ge=t(56100),ke=t(40455),xe=t(40520),Se=t(49705),je={width:24,height:24},Oe={marginLeft:"-4px"},Ne=function(e){var n=e.commentsCount,t=e.buttonTitle,i=void 0===t?"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438":t,o=e.showListSetter,a=e.showCommentFormSetter,l=e.showList,u=e.showForm,c=e.userId,m=e.isDisable,v=(0,N.C)(function(e){return e.setIsAuthSidebarOpen}),f=(0,I.N)(),p=f.addToQueue,y=f.clearQueue,h=f.hasQueueItem,b=(0,r.useCallback)(function(){c?a(!u):(v(!0),p(I.R.ShowProductCommentForm,{showForm:!u}))},[c,u]);return(0,r.useEffect)(function(){var e;h(I.R.ShowProductCommentForm)&&(a(null===(e=h(I.R.ShowProductCommentForm))||void 0===e||null===(e=e.data)||void 0===e?void 0:e.showForm),y(I.R.ShowProductCommentForm))},[]),(0,F.jsxs)(d.Grid,{"grid-align":"justify","grid-valign":"middle","grid-indent-x":"s",children:[(0,F.jsx)(d.Grid.Item,{"grid-item-width":"expand",children:(0,F.jsx)(_.Button,{"button-theme":"black-inherit","button-padding":"xxs","button-weight":"normal",type:"button",onClick:function(){return o(!l)},disabled:m||!n,title:i,"aria-label":i,style:Oe,children:(0,F.jsxs)(s.Text,{"text-color":"black-700","data-qaid":"reply_text",children:[i," ",n||0]})})}),(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(_.Button,{"button-theme":"black-inherit","button-padding":"xxs","button-weight":"normal",onClick:b,disabled:m,children:(0,F.jsx)(C.Icon,{"icon-as":Se.v,"icon-color":"black-700",style:je})})})]})}
2,we=t(7879),Ie=t(56774),_e=t(80824),Ce=t(47908),Fe=t(68174),Pe=t.n(Fe),Ae=t(4470),Te=t.n(Ae);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function Re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Be(Object(t),!0).forEach(function(n){Le(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Le(e,n,t){return(n=Ee(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ee(e){var n=Ge(e,"string");return"symbol"==De(n)?n:n+""}function Ge(e,n){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=De(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function qe(){var e,n,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",r=t.toStringTag||"@@toStringTag";function o(t,i,r,o){var d=i&&i.prototype instanceof l?i:l,u=Object.create(d.prototype);return Ue(u,"_invoke",function(t,i,r){var o,l,d,u=0,c=r||[],s=!1,m={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return o=n,l=0,d=e,m.n=t,a}};function v(t,i){for(l=t,d=i,n=0;!s&&u&&!r&&n<c.length;n++){var r,o=c[n],v=m.p,f=o[2];t>3?(r=f===i)&&(d=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((r=t<2&&v<o[1])?(l=0,m.v=i,m.n=o[1]):v<f&&(r=t<3||o[0]>i||i>f)&&(o[4]=t,o[5]=i,m.n=f,l=0))}if(r||t>1)return a;throw s=!0,i}return function(r,c,f){if(u>1)throw TypeError("Generator is already running");for(s&&1===c&&v(c,f),l=c,d=f;(n=l<2?e:d)||!s;){o||(l?l<3?(l>1&&(m.n=-1),v(l,d)):m.n=d:m.v=d);try{if(u=2,o){if(l||(r="next"),n=o[r]){if(!(n=n.call(o,d)))throw TypeError("iterator result is not an object");if(!n.done)return n;d=n.value,l<2&&(l=0)}else 1===l&&(n=o["return"])&&n.call(o),l<2&&(d=TypeError("The iterator does not provide a '"+r+"' method"),l=1);o=e}else if((n=(s=m.n<0)?d:t.call(i,m))!==a)break}catch(n){o=e,l=1,d=n}finally{u=1}}return{value:n,done:s}}}(t,r,o),!0),u}var a={};function l(){}function d(){}function u(){}n=Object.getPrototypeOf;var c=[][i]?n(n([][i]())):(Ue(n={},i,function(){return this}),n),s=u.prototype=l.prototype=Object.create(c);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ue(e,r,"GeneratorFunction")),e.prototype=Object.create(s),e}return d.prototype=u,Ue(s,"constructor",u),Ue(u,"constructor",d),d.displayName="GeneratorFunction",Ue(u,r,"GeneratorFunction"),Ue(s),Ue(s,r,"Generator"),Ue(s,i,function(){return this}),Ue(s,"toString",function(){return"[object Generator]"}),(qe=function(){return{w:o,m:m}})()}function Ue(e,n,t,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ue=function(e,n,t,i){function o(n,t){Ue(e,n,function(e){return this._invoke(n,t,e)})}n?r?r(e,n,{value:t,enumerable:!i,configurable:!i,writable:!i}):e[n]=t:(o("next",0),o("throw",1),o("return",2))},Ue(e,n,t,i)}function Ve(e,n,t,i,r,o,a){try{var l=e[o](a),d=l.value}catch(e){return void t(e)}l.done?n(d):Promise.resolve(d).then(i,r)}function Me(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(e){Ve(o,i,r,a,l,"next",e)}function l(e){Ve(o,i,r,a,l,"throw",e)}a(void 0)})}}function Qe(e,n){return Ke(e)||ze(e,n)||He(e,n)||We()}function We(){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 He(e,n){if(e){if("string"==typeof e)return $e(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$e(e,n):void 0}}function $e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function ze(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function Ke(e){if(Array.isArray(e))return e}var Ye=function(e){var n,t,i=e.opinionId,o=e.placeholder,a=void 0===o?"\u041c\u043e\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439":o,u=e.comment,c=e.showCommentFormSetter,s=e.showCommentsSetter,m=e.commentId,v=e.isReply,f=e.formType,p=Qe((0,g.n)(Te()),2),y=p[0],h=p[1].loading,x=Qe((0,g.n)(Pe()),2),S=x[0],j=x[1].loading,N=ee(i),w=N.updateProductOpinionCommentsCache,I=N.updateProductOpinionCommentCache,C=(0,k.useSnackBar)(),P=(0,_e.mN)({mode:"all",criteriaMode:"all",reValidateMode:"onChange"}),A=P.handleSubmit,T=P.register,D=P.setValue,B=P.watch,R=P.setError,L=P.formState.errors;(0,r.useEffect)(function(){D("comment",u||"")},[u]);var E=function(){var e=Me(qe().m(function e(n){var t,r,o,a,l,d,u,p,h,g;return qe().w(function(e){for(;1;)switch(e.p=e.n){case 0:if("create"!==f){e.n=7;break}return e.p=1,e.n=2,y({variables:{opinionId:i,comment:n.comment,replyToId:m||null}});case 2:if(r=e.v,null===(t=r.data)||void 0===t||!t.createProductOpinionComment.comment.id){e.n=4;break}return null===c||void 0===c||c(!1),null===s||void 0===s||s(!0),e.n=3,w(null===(o=r.data)||void 0===o?void 0:o.createProductOpinionComment.comment,m);case 3:C.open(v?"\u041e\u0442\u0432\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d":"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d");case 4:e.n=6;break;case 5:e.p=5,h=e.v,a=h,b.K.is(a)&&(0,O.X)(a.errors,R);case 6:e.n=12;break;case 7:return e.p=7,e.n=8,S({variables:{comment:n.comment,commentId:m}});case 8:if(d=e.v,null===(l=d.data)||void 0===l||!l.editProductOpinionComment.comment){e.n=10;break}return null===c||void 0===c||c(!1),null===s||void 0===s||s(!0),e.n=9,I(null===(u=d.data)||void 0===u?void 0:u.editProductOpinionComment.comment,v);case 9:C.open("\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d");case 10:e.n=12;break;
2case 11:e.p=11,g=e.v,p=g,b.K.is(p)&&(0,O.X)(p.errors,R);case 12:return e.a(2)}},e,null,[[7,11],[1,5]])}));return function(n){return e.apply(this,arguments)}}();return(0,F.jsx)(l.Box,{"box-margin-top":"s","box-margin-bottom":"m","data-qaid":"add_comment_block",children:(0,F.jsxs)(l.Box,{"box-as":"form",onSubmit:A(E),children:[(0,F.jsx)(Ce.F,Re({"input-as":Ie.A,maxLength:2e3,placeholder:a,error:null===(n=L.comment)||void 0===n?void 0:n.message,autoFocus:!0,disabled:h||j,minRows:2,maxRows:5},T("comment",{maxLength:{value:2e3,message:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u2013 2000"}}))),(0,F.jsx)(l.Box,{"box-margin-top":"xs",children:(0,F.jsxs)(d.Grid,{"grid-wrap":"nowrap","grid-indent-x":"xs",children:[(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(_.Button,{"button-theme":"violet-second",onClick:function(){return null===c||void 0===c?void 0:c(!1)},loading:h||j,"data-qaid":"cancel_btn",children:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c"})}),(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(_.Button,{"button-theme":"violet",type:"submit",disabled:!(null!==(t=B("comment"))&&void 0!==t&&t.trim()),loading:h||j,"data-qaid":"submit_btn",children:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c"})})]})})]})})},Xe=function(e){var n,t,r,o=(0,i.c)(15),a=e.showComments,d=e.showCommentForm,u=e.comments,c=e.opinionId,s=e.opinionAuthorId,m=e.showCommentFormSetter,v=e.showCommentsSetter,f=e.replyToId,p=e.userId;return o[0]!==c||o[1]!==f||o[2]!==d||o[3]!==m||o[4]!==v?(n=d?(0,F.jsx)(Ye,{opinionId:c,showCommentFormSetter:m,showCommentsSetter:v,commentId:f,isReply:!0,placeholder:"\u041c\u043e\u0439 \u043e\u0442\u0432\u0435\u0442",formType:G.Create}):null,o[0]=c,o[1]=f,o[2]=d,o[3]=m,o[4]=v,o[5]=n):n=o[5],o[6]!==u||o[7]!==s||o[8]!==c||o[9]!==a||o[10]!==p?(t=a&&null!==u&&void 0!==u&&u.length?(0,F.jsx)(ye.C,{animationDelay:!1,animation:"scaleOpacity",as:l.Box,"data-qaid":"comment_replies_list",children:u.map(function(e){return(0,F.jsx)(Ln,{comment:e,opinionAuthorId:s,opinionId:c,userId:p,isReply:!0},e.id)})}):null,o[6]=u,o[7]=s,o[8]=c,o[9]=a,o[10]=p,o[11]=t):t=o[11],o[12]!==n||o[13]!==t?(r=(0,F.jsxs)(l.Box,{children:[n,t]}),o[12]=n,o[13]=t,o[14]=r):r=o[14],r},Je=t(77960),Ze=t(76336),en=t(7492),nn=t(55071),tn=t(65014),rn=t(65121),on=t.n(rn),an=t(12222),ln=t.n(an),dn=t(83804),un=function(e){var n,t,r,o,a,d,u,c=(0,i.c)(15),m=e.onClose,v=e.onDelete,f=e.isOpen,p=e.loading;return c[0]===Symbol["for"]("react.memo_cache_sentinel")?(n="\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u0442\u0437\u044b\u0432 \u043e \u0442\u043e\u0432\u0430\u0440\u0435?",c[0]=n):n=c[0],c[1]===Symbol["for"]("react.memo_cache_sentinel")?(t=(0,F.jsx)(l.Box,{"box-margin-bottom":"m",children:(0,F.jsx)(s.Text,{"data-qaid":"msg_text",children:"\u041f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0437\u044b\u0432 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0440\u044b\u0442 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043e\u0446\u0435\u043d\u043a\u0443 \u0442\u043e\u0432\u0430\u0440\u0430. \u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0438 \u043d\u0435 \u0443\u0432\u0438\u0434\u044f\u0442 \u044d\u0442\u043e\u0442 \u043e\u0442\u0437\u044b\u0432."})}),c[1]=t):t=c[1],c[2]===Symbol["for"]("react.memo_cache_sentinel")?(r="\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",c[2]=r):r=c[2],c[3]!==p||c[4]!==m?(o=(0,F.jsx)(l.Box,{"box-margin-bottom":"xs",children:(0,F.jsx)(_.Button,{"button-theme":"violet","button-width":"1-1",onClick:m,"data-qaid":"close_button",loading:p,children:r})}),c[3]=p,c[4]=m,c[5]=o):o=c[5],c[6]===Symbol["for"]("react.memo_cache_sentinel")?(a="\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u0442\u0437\u044b\u0432",c[6]=a):a=c[6],c[7]!==p||c[8]!==v?(d=(0,F.jsx)(_.Button,{"button-theme":"violet-second","button-width":"1-1",onClick:v,"data-qaid":"approve_button",loading:p,children:a}),c[7]=p,c[8]=v,c[9]=d):d=c[9],c[10]!==f||c[11]!==m||c[12]!==o||c[13]!==d?(u=(0,F.jsxs)(dn.Overlay,{isOpen:f,onClose:m,title:n,errCatchName:"ConfirmDeletePopup",dataQaId:"confirm_delete_popup",padding:"0 20px 20px",children:[t,o,d]}),c[10]=f,c[11]=m,c[12]=o,c[13]=d,c[14]=u):u=c[14],u},cn=t(12867);function sn(){var e,n,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",r=t.toStringTag||"@@toStringTag";function o(t,i,r,o){var d=i&&i.prototype instanceof l?i:l,u=Object.create(d.prototype);return mn(u,"_invoke",function(t,i,r){var o,l,d,u=0,c=r||[],s=!1,m={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return o=n,l=0,d=e,m.n=t,a}};function v(t,i){for(l=t,d=i,n=0;!s&&u&&!r&&n<c.length;n++){var r,o=c[n],v=m.p,f=o[2];t>3?(r=f===i)&&(d=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((r=t<2&&v<o[1])?(l=0,m.v=i,m.n=o[1]):v<f&&(r=t<3||o[0]>i||i>f)&&(o[4]=t,o[5]=i,m.n=f,l=0))}if(r||t>1)return a;throw s=!0,i}return function(r,c,f){if(u>1)throw TypeError("Generator is already running");
2for(s&&1===c&&v(c,f),l=c,d=f;(n=l<2?e:d)||!s;){o||(l?l<3?(l>1&&(m.n=-1),v(l,d)):m.n=d:m.v=d);try{if(u=2,o){if(l||(r="next"),n=o[r]){if(!(n=n.call(o,d)))throw TypeError("iterator result is not an object");if(!n.done)return n;d=n.value,l<2&&(l=0)}else 1===l&&(n=o["return"])&&n.call(o),l<2&&(d=TypeError("The iterator does not provide a '"+r+"' method"),l=1);o=e}else if((n=(s=m.n<0)?d:t.call(i,m))!==a)break}catch(n){o=e,l=1,d=n}finally{u=1}}return{value:n,done:s}}}(t,r,o),!0),u}var a={};function l(){}function d(){}function u(){}n=Object.getPrototypeOf;var c=[][i]?n(n([][i]())):(mn(n={},i,function(){return this}),n),s=u.prototype=l.prototype=Object.create(c);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,mn(e,r,"GeneratorFunction")),e.prototype=Object.create(s),e}return d.prototype=u,mn(s,"constructor",u),mn(u,"constructor",d),d.displayName="GeneratorFunction",mn(u,r,"GeneratorFunction"),mn(s),mn(s,r,"Generator"),mn(s,i,function(){return this}),mn(s,"toString",function(){return"[object Generator]"}),(sn=function(){return{w:o,m:m}})()}function mn(e,n,t,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}mn=function(e,n,t,i){function o(n,t){mn(e,n,function(e){return this._invoke(n,t,e)})}n?r?r(e,n,{value:t,enumerable:!i,configurable:!i,writable:!i}):e[n]=t:(o("next",0),o("throw",1),o("return",2))},mn(e,n,t,i)}function vn(e,n,t,i,r,o,a){try{var l=e[o](a),d=l.value}catch(e){return void t(e)}l.done?n(d):Promise.resolve(d).then(i,r)}function fn(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(e){vn(o,i,r,a,l,"next",e)}function l(e){vn(o,i,r,a,l,"throw",e)}a(void 0)})}}function pn(e,n){return kn(e)||gn(e,n)||hn(e,n)||yn()}function yn(){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 hn(e,n){if(e){if("string"==typeof e)return bn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?bn(e,n):void 0}}function bn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function gn(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function kn(e){if(Array.isArray(e))return e}var xn={width:"24px",height:"24px"};function Sn(e){var n=e.opinionId,t=e.editType,i=e.commentId,o=e.isReply,a=e.onShowCommentForm,d=e.isRemoveOpinionWithoutRedirect,u=void 0!==d&&d,c=pn((0,r.useState)(!1),2),s=c[0],m=c[1],v=ee(n),f=v.deleteProductOpinionCommentCache,p=v.deleteProductOpinionCache,y=(0,k.useSnackBar)(),h=(0,Je.W6)(),b=pn((0,g.n)(on()),1)[0],x=pn((0,g.n)(ln()),2),S=x[0],j=x[1].loading,O=(0,r.useCallback)(fn(sn().m(function e(){var t,i;return sn().w(function(e){for(;1;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,S({variables:{opinionId:n}});case 1:i=e.v,null!==(t=i.data)&&void 0!==t&&t.deleteProductOpinion.opinionId&&((0,cn.x)("delete_finish_product_opinion"),u?(y.open("\u041e\u0442\u0437\u044b\u0432 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d"),p()):(m(!1),h.replace("/"))),e.n=3;break;case 2:e.p=2,e.v,y.open("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u0442\u0437\u044b\u0432");case 3:return e.a(2)}},e,null,[[0,2]])})),[n]),N=(0,r.useCallback)(fn(sn().m(function e(){var n,t,r;return sn().w(function(e){for(;1;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,b({variables:{commentId:i}});case 1:t=e.v,null!==(n=t.data)&&void 0!==n&&n.deleteProductOpinionComment.commentId&&(f(null===(r=t.data)||void 0===r?void 0:r.deleteProductOpinionComment.commentId,o),(0,cn.x)("delete_finish_product_opinion_comment"),y.open("\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d")),e.n=3;break;case 2:e.p=2,e.v,y.open("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439 \u0435\u0449\u0435 \u0440\u0430\u0437");case 3:return e.a(2)}},e,null,[[0,2]])})),[n]),w=function(){t===q.Opinion?((0,cn.x)("edit_start_product_opinion"),h.push("/product-opinions/edit/".concat(n))):(a&&a(),(0,cn.x)("edit_start_product_opinion_comment"))},I=function(){t===q.Opinion?(m(!s),(0,cn.x)("delete_start_product_opinion")):(N(),(0,cn.x)("delete_start_product_opinion_comment"))};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(l.Box,{"box-position":"relative",children:(0,F.jsx)(Ze.t,{items:[{icon:nn.B,onClick:w,children:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c"},{icon:en.Y,onClick:I,color:"red-900",children:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c"}],onOpen:function(){return(0,cn.x)("edit_product_opinion_click")},children:(0,F.jsx)(_.Button,{"button-padding":"xxs","button-theme":"black-inherit","data-qaid":"comment_action_btn",children:(0,F.jsx)(C.Icon,{"icon-as":tn.W,"icon-color":"black-900",style:xn})})})}),(0,F.jsx)(un,{isOpen:s,onClose:function(){return m(!1)},onDelete:O,loading:j})]})}function jn(e){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jn(e)}function On(e,n,t){return(n=Nn(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Nn(e){var n=wn(e,"string");return"symbol"==jn(n)?n:n+""}function wn(e,n){if("object"!=jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=jn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function In(e,n){return An(e)||Pn(e,n)||Cn(e,n)||_n()}
2function _n(){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 Cn(e,n){if(e){if("string"==typeof e)return Fn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Fn(e,n):void 0}}function Fn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function Pn(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function An(e){if(Array.isArray(e))return e}var Tn={width:16,height:16},Dn=["break","pre-line"],Bn={width:"12px",height:"12px"},Rn={width:20,height:20},Ln=function(e){var n,t=(0,i.c)(36),o=e.comment,a=e.isReply,u=e.opinionId,c=e.opinionAuthorId,v=e.userId,f=In((0,r.useState)(!1),2),p=f[0],y=f[1],h=In((0,r.useState)(!1),2),b=h[0],g=h[1],k=In((0,r.useState)(!1),2),x=k[0],S=k[1];if(!o)return null;var j,O,N,w,I=o.author_user_id===c,_=(null===o||void 0===o||null===(n=o.replies)||void 0===n?void 0:n.length)||0;t[0]===Symbol["for"]("react.memo_cache_sentinel")?(j={theme:"yellow-500",icon:xe.SvgEyeOpen,text:"\u041e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438"},t[0]=j):j=t[0],t[1]===Symbol["for"]("react.memo_cache_sentinel")?(O={theme:"yellow-500",icon:xe.SvgEyeOpen,text:"\u041e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438"},t[1]=O):O=t[1],t[2]===Symbol["for"]("react.memo_cache_sentinel")?(N={theme:"red-50",icon:ke.T,text:"\u041e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},t[2]=N):N=t[2],t[3]===Symbol["for"]("react.memo_cache_sentinel")?(w=On(On(On(On({},E.ApprovalPending,j),E.CompanyApprovalPending,O),E.NotOnDisplay,N),E.OnDisplay,{theme:"green-50",icon:be.SvgOk,text:"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e"}),t[3]=w):w=t[3];var P,A,T,D=w[o.status],B=a?void 0:"black-400 xxs solid";return t[4]!==b||t[5]!==o.authorIsCompany||t[6]!==o.authorName||t[7]!==o.author_user_id||t[8]!==o.dateCreated||t[9]!==o.id||t[10]!==o.message||t[11]!==o.status||t[12]!==(null===D||void 0===D?void 0:D.icon)||t[13]!==(null===D||void 0===D?void 0:D.text)||t[14]!==(null===D||void 0===D?void 0:D.theme)||t[15]!==I||t[16]!==a||t[17]!==x||t[18]!==u||t[19]!==_||t[20]!==p||t[21]!==v?(P=x?(0,F.jsx)(Ye,{opinionId:u,comment:o.message,showCommentFormSetter:S,formType:G.Edit,placeholder:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439",isReply:a,commentId:o.id}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(d.Grid,{"grid-indent-x":"xs",children:[a?(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(C.Icon,{"icon-as":ge.s,"icon-color":"black-600",style:Rn})}):null,(0,F.jsxs)(d.Grid.Item,{"grid-item-width":"expand",children:[(0,F.jsxs)(d.Grid,{"grid-valign":o.authorIsCompany?"middle":"top","grid-indent-x":"xs","grid-wrap":"nowrap","data-qaid":"opinion_comment_item",children:[(0,F.jsxs)(d.Grid.Item,{children:[(0,F.jsxs)(d.Grid,{"grid-indent-x":"xs","grid-valign":"middle",children:[(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(s.Text,{"text-size":"h5","text-weight":"medium","data-qaid":"comment_author",children:o.authorName})}),o.authorIsCompany?(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(C.Icon,{"icon-as":be.SvgOk,"icon-color":"green-500",style:Bn})}):null]}),(0,F.jsx)(l.Box,{children:(0,F.jsx)(s.Text,{"text-size":"small","text-color":"black-700","data-qaid":"date_created",children:(0,we.e)(o.dateCreated)})})]}),I&&o.author_user_id!==v?(0,F.jsx)(d.Grid.Item,{"grid-item-width":"expand",children:(0,F.jsx)(s.Text,{"text-color":"black-700","text-align":"right","text-as":l.Box,"data-qaid":"author_title",children:"\u0410\u0432\u0442\u043e\u0440 \u043e\u0442\u0437\u044b\u0432\u0430"})}):null,o.author_user_id===v&&(0,F.jsx)(d.Grid.Item,{"grid-item-width":"expand",children:(0,F.jsx)(he.Flex,{"flex-content":"end",children:(0,F.jsx)(he.Flex.Item,{children:(0,F.jsx)(Sn,{editType:q.Comment,opinionId:u,commentId:o.id,isReply:a,onShowCommentForm:function(){return S(!0)}})})})})]}),(0,F.jsx)(l.Box,{"box-margin-top":"xs",children:(0,F.jsx)(s.Text,{"text-wrap":Dn,"data-qaid":"comment_text",children:o.message})}),o.author_user_id===v&&o.status!==E.OnDisplay&&(0,F.jsx)(l.Box,{"box-margin-top":"s",children:(0,F.jsxs)(m.J,{"label-theme":null===D||void 0===D?void 0:D.theme,"data-qaid":"moderate_label",children:[(0,F.jsx)(C.Icon,{"icon-as":null===D||void 0===D?void 0:D.icon,style:Tn}),"\xa0",null===D||void 0===D?void 0:D.text]})})]})]}),!a&&(0,F.jsx)(l.Box,{"box-margin-top":"l",children:(0,F.jsx)(Ne,{showCommentFormSetter:g,showForm:b,showList:p,showListSetter:y,commentsCount:_,buttonTitle:"\u041e\u0442\u0432\u0435\u0442\u044b",userId:v})})]}),t[4]=b,t[5]=o.authorIsCompany,t[6]=o.authorName,t[7]=o.author_user_id,t[8]=o.dateCreated,t[9]=o.id,t[10]=o.message,t[11]=o.status,t[12]=null===D||void 0===D?void 0:D.icon,t[13]=null===D||void 0===D?void 0:D.text,t[14]=null===D||void 0===D?void 0:D.theme,t[15]=I,t[16]=a,t[17]=x,t[18]=u,t[19]=_,t[20]=p,t[21]=v,t[22]=P):P=t[22],t[23]!==b||t[24]!==o.id||t[25]!==o.replies||t[26]!==a||t[27]!==c||t[28]!==u||t[29]!==p||t[30]!==v?(A=!a&&(0,F.jsx)(Xe,{comments:o.replies,showComments:p,showCommentForm:b,opinionAuthorId:c,opinionId:u,showCommentFormSetter:g,showCommentsSetter:y,replyToId:o.id,userId:v}),t[23]=b,t[24]=o.id,t[25]=o.replies,t[26]=a,t[27]=c,t[28]=u,t[29]=p,t[30]=v,t[31]=A):A=t[31],t[32]!==B||t[33]!==P||t[34]!==A?(T=(0,F.jsxs)(l.Box,{"box-border-top":B,"box-padding":"m none xs","box-position":"relative",children:[P,A]}),t[32]=B,t[33]=P,t[34]=A,t[35]=T):T=t[35],T},En={width:24,height:24},Gn=function(e){var n,t,r,o,a,u=(0,i.c)(8),c=e.message,m=e.onClick;return u[0]===Symbol["for"]("react.memo_cache_sentinel")?(n={cursor:"pointer"},u[0]=n):n=u[0],u[1]===Symbol["for"]("react.memo_cache_sentinel")?(t=(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(C.Icon,{"icon-as":ge.s,"icon-color":"black-600",style:En})}),u[1]=t):t=u[1],u[2]===Symbol["for"]("react.memo_cache_sentinel")?(r="\u041f\u0440\u043e\u0434\u0430\u0432\u0435\u0446",u[2]=r):r=u[2],u[3]!==c?(o=(0,F.jsxs)(d.Grid,{"grid-indent-x":"xs","grid-valign":"middle",children:[t,(0,F.jsx)(d.Grid.Item,{"grid-item-width":"expand",children:(0,F.jsxs)(s.Text,{"text-size":"small","text-wrap":"break","text-blackhole":"ellipsis-two-line",children:[r,":\xa0",(0,F.jsx)(s.Text,{"text-color":"black-700","data-qaid":"company_response_message",children:c})]})})]}),u[3]=c,u[4]=o):o=u[4],u[5]!==m||u[6]!==o?(a=(0,F.jsx)(l.Box,{"data-qaid":"company_response",onClick:m,style:n,children:o}),u[5]=m,u[6]=o,u[7]=a):a=u[7],a};Gn.displayName="CompanyResponse";var qn=function(e){var n,t,r,o,a=(0,i.c)(21),d=e.showComments,u=e.showCommentForm,c=e.comments,s=e.companyResponse,m=e.opinionAuthorId,v=e.opinionId,f=e.showCommentFormSetter,p=e.showCommentsSetter,y=e.userId,h=e.isShowCompanyResponse,b=void 0!==h&&h;return a[0]!==s||a[1]!==b||a[2]!==u||a[3]!==d||a[4]!==p?(n=!u&&!d&&b&&s?(0,F.jsx)(l.Box,{"box-display":"none:empty","box-border-top":"black-400 xxs solid","box-padding":"m none",children:(0,F.jsx)(Gn,{onClick:function(){return p(!0)},message:s.message})}):null,a[0]=s,a[1]=b,a[2]=u,a[3]=d,a[4]=p,a[5]=n):n=a[5],a[6]!==v||a[7]!==u||a[8]!==f||a[9]!==p?(t=u?(0,F.jsx)(Ye,{opinionId:v,showCommentFormSetter:f,showCommentsSetter:p,formType:G.Create}):null,a[6]=v,a[7]=u,a[8]=f,a[9]=p,a[10]=t):t=a[10],a[11]!==c||a[12]!==m||a[13]!==v||a[14]!==d||a[15]!==y?(r=d?(0,F.jsx)(ye.C,{animationDelay:!1,animation:"scaleOpacity",as:l.Box,children:c.map(function(e){return(0,F.jsx)(Ln,{comment:e,opinionAuthorId:m,opinionId:v,userId:y},e.id)})}):null,a[11]=c,a[12]=m,a[13]=v,a[14]=d,a[15]=y,a[16]=r):r=a[16],a[17]!==n||a[18]!==t||a[19]!==r?(o=(0,F.jsxs)(l.Box,{children:[n,t,r]}),a[17]=n,a[18]=t,a[19]=r,a[20]=o):o=a[20],o},Un=t(47678),Vn="product_opinion",Mn=function(){(0,Un.u4)(Vn,"product_feedback_is_useful_view")},Qn=function(e){(0,Un.u4)(Vn,"product_feedback_is_useful_click",e)};function Wn(){var e,n,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",r=t.toStringTag||"@@toStringTag";function o(t,i,r,o){var d=i&&i.prototype instanceof l?i:l,u=Object.create(d.prototype);return Hn(u,"_invoke",function(t,i,r){var o,l,d,u=0,c=r||[],s=!1,m={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return o=n,l=0,d=e,m.n=t,a}};function v(t,i){for(l=t,d=i,n=0;!s&&u&&!r&&n<c.length;n++){var r,o=c[n],v=m.p,f=o[2];t>3?(r=f===i)&&(d=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((r=t<2&&v<o[1])?(l=0,m.v=i,m.n=o[1]):v<f&&(r=t<3||o[0]>i||i>f)&&(o[4]=t,o[5]=i,m.n=f,l=0))}if(r||t>1)return a;throw s=!0,i}return function(r,c,f){if(u>1)throw TypeError("Generator is already running");
2for(s&&1===c&&v(c,f),l=c,d=f;(n=l<2?e:d)||!s;){o||(l?l<3?(l>1&&(m.n=-1),v(l,d)):m.n=d:m.v=d);try{if(u=2,o){if(l||(r="next"),n=o[r]){if(!(n=n.call(o,d)))throw TypeError("iterator result is not an object");if(!n.done)return n;d=n.value,l<2&&(l=0)}else 1===l&&(n=o["return"])&&n.call(o),l<2&&(d=TypeError("The iterator does not provide a '"+r+"' method"),l=1);o=e}else if((n=(s=m.n<0)?d:t.call(i,m))!==a)break}catch(n){o=e,l=1,d=n}finally{u=1}}return{value:n,done:s}}}(t,r,o),!0),u}var a={};function l(){}function d(){}function u(){}n=Object.getPrototypeOf;var c=[][i]?n(n([][i]())):(Hn(n={},i,function(){return this}),n),s=u.prototype=l.prototype=Object.create(c);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Hn(e,r,"GeneratorFunction")),e.prototype=Object.create(s),e}return d.prototype=u,Hn(s,"constructor",u),Hn(u,"constructor",d),d.displayName="GeneratorFunction",Hn(u,r,"GeneratorFunction"),Hn(s),Hn(s,r,"Generator"),Hn(s,i,function(){return this}),Hn(s,"toString",function(){return"[object Generator]"}),(Wn=function(){return{w:o,m:m}})()}function Hn(e,n,t,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Hn=function(e,n,t,i){function o(n,t){Hn(e,n,function(e){return this._invoke(n,t,e)})}n?r?r(e,n,{value:t,enumerable:!i,configurable:!i,writable:!i}):e[n]=t:(o("next",0),o("throw",1),o("return",2))},Hn(e,n,t,i)}function $n(e,n,t,i,r,o,a){try{var l=e[o](a),d=l.value}catch(e){return void t(e)}l.done?n(d):Promise.resolve(d).then(i,r)}function zn(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(e){$n(o,i,r,a,l,"next",e)}function l(e){$n(o,i,r,a,l,"throw",e)}a(void 0)})}}function Kn(e,n){return et(e)||Zn(e,n)||Xn(e,n)||Yn()}function Yn(){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 Xn(e,n){if(e){if("string"==typeof e)return Jn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Jn(e,n):void 0}}function Jn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function Zn(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function et(e){if(Array.isArray(e))return e}var nt=["expand","auto@large"],tt="hide_useful_opinion",it=function(e){var n=e.opinionId,t=e.isSkipCookieCheck,i=void 0!==t&&t,o=Kn((0,g.n)(re()),2),a=o[0],u=o[1].loading,c=ee(n).updateProductOpinionLikesCache,m=(0,h.D6)().cookie,v=(0,r.useRef)("true"===m.get(tt)),f=(0,k.useSnackBar)();if((0,r.useEffect)(function(){!i&&v.current||Mn(),i||m.set(tt,!0,{path:"/"})},[]),!i&&v.current)return null;var p=function(){var e=zn(Wn().m(function e(t){var i,r,o,l,d;return Wn().w(function(e){for(;1;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,a({variables:{opinionId:n,type:t}});case 1:r=e.v,null!==(i=r.data)&&void 0!==i&&i.toggleProductOpinionLike&&c(null===(o=r.data)||void 0===o?void 0:o.toggleProductOpinionLike.state,t),e.n=3;break;case 2:e.p=2,d=e.v,d&&f.open(t===j.LA.Like?"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0439\u043a \u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0437\u044b\u0432\u0443. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439 \u0435\u0449\u0435 \u0440\u0430\u0437":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0438\u0437\u043b\u0430\u0439\u043a \u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0437\u044b\u0432\u0443. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439 \u0435\u0449\u0435 \u0440\u0430\u0437");case 3:l=t===j.LA.Like?"yes":"no",Qn(l);case 4:return e.a(2)}},e,null,[[0,2]])}));return function(n){return e.apply(this,arguments)}}();return(0,F.jsx)(l.Box,{"box-border-top":"black-400 xxs solid","box-padding":"m none","data-qaid":"useful_block",children:(0,F.jsxs)(d.Grid,{"grid-indent-x":"xs","grid-valign":"middle",children:[(0,F.jsx)(d.Grid.Item,{"grid-item-width":nt,children:(0,F.jsx)(l.Box,{"box-margin-right":"m@large",children:(0,F.jsx)(s.Text,{"text-weight":"medium","data-qaid":"useful_title",children:"\u041f\u043e\u043b\u0435\u0437\u0435\u043d \u043b\u0438 \u044d\u0442\u043e\u0442 \u043e\u0442\u0437\u044b\u0432?"})})}),(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(_.Button,{"button-theme":"white","button-padding":"xxs s",disabled:u,"data-qaid":"no",onClick:function(){return p(j.LA.Dislike)},children:"\u041d\u0435\u0442"})}),(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(_.Button,{"button-theme":"white","button-padding":"xxs s",disabled:u,"data-qaid":"yes",onClick:function(){return p(j.LA.Like)},children:"\u0414\u0430"})})]})})};it.displayName="UsefulOpinion";var rt=t(92354),ot=t(10876),at=t(86719),lt=function(e){var n,t,r=(0,i.c)(8),o=e.children,a=e.opinionId,d=e.subdomain,u=e.isActive,c=void 0!==u&&u,s=(0,h.D6)().isBot;return r[0]!==c||r[1]!==s||r[2]!==a||r[3]!==d?(n=!s&&c?(0,F.jsx)(ot.Link,{"link-as":at.B,subdomain:d,"link-blackhole":"full-hover",rel:"nofollow",to:"/product-opinions/view/".concat(a)}):null,r[0]=c,r[1]=s,r[2]=a,r[3]=d,r[4]=n):n=r[4],r[5]!==o||r[6]!==n?(t=(0,F.jsxs)(l.Box,{"box-position":"relative",children:[o,n]}),r[5]=o,r[6]=n,r[7]=t):t=r[7],t};lt.displayName="WrapperHeaderClick";var dt=t(3258),ut={root:"kBTDe",content:"uxuPc",controls:"uyVTi",rootOpen:"eh51v kBTDe"};function ct(e,n){return pt(e)||ft(e,n)||mt(e,n)||st()}
2function st(){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 mt(e,n){if(e){if("string"==typeof e)return vt(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?vt(e,n):void 0}}function vt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function ft(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function pt(e){if(Array.isArray(e))return e}var yt=function(e){var n,t=(0,i.c)(22),o=e.children,a=e.onChange,l=e.maxHeight,d=e.isActive,u=void 0===l?80:l,c=void 0===d||d,s=(0,r.useRef)(null),m=ct((0,r.useState)(!1),2),v=m[0],f=m[1],p=ct((0,r.useState)(!1),2),y=p[0],h=p[1];t[0]!==v||t[1]!==a?(n=function(){a&&a(!v),f(!v)},t[0]=v,t[1]=a,t[2]=n):n=t[2];var b,g,k=n;if(t[3]!==c||t[4]!==u?(b=function(){var e;c&&null!==s&&void 0!==s&&s.current&&((null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.clientHeight)>u&&h(!0))},t[3]=c,t[4]=u,t[5]=b):b=t[5],t[6]!==o||t[7]!==c?(g=[o,c],t[6]=o,t[7]=c,t[8]=g):g=t[8],(0,dt.useBrowserLayoutEffect)(b,g),c){var x,S=v?void 0:u;t[9]!==S?(x={maxHeight:S},t[9]=S,t[10]=x):x=t[10];var j,O,N,w=v?ut.rootOpen:ut.root;return t[11]!==o?(j=(0,F.jsx)("div",{className:ut.content,ref:s,children:o}),t[11]=o,t[12]=j):j=t[12],t[13]!==y||t[14]!==v||t[15]!==k?(O=y?(0,F.jsx)("div",{className:ut.controls,children:(0,F.jsx)(ot.Link,{"link-as":"button","link-color":"blue-500",onClick:k,"data-qaid":"more_less",children:v?"\u041c\u0435\u043d\u044c\u0448\u0435":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435"})}):null,t[13]=y,t[14]=v,t[15]=k,t[16]=O):O=t[16],t[17]!==O||t[18]!==x||t[19]!==w||t[20]!==j?(N=(0,F.jsxs)("div",{style:x,className:w,"data-qaid":"collapse_content",children:[j,O]}),t[17]=O,t[18]=x,t[19]=w,t[20]=j,t[21]=N):N=t[21],N}return o};function ht(e,n){return St(e)||xt(e,n)||gt(e,n)||bt()}function bt(){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 gt(e,n){if(e){if("string"==typeof e)return kt(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kt(e,n):void 0}}function kt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}function xt(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function St(e){if(Array.isArray(e))return e}yt.displayName="CollapseContent";var jt=function(e){var n,t,b,g,k,x=(0,i.c)(120),S=e.opinion,j=e.productName,O=e.isForceShowUsefulOpinion,N=e.isBlockPanelView,w=e.isShowMedia,I=e.isShowCompanyResponse,_=e.isHeaderLinkFullOpinion,C=e.isRemoveOpinionWithoutRedirect,P=e.isCollapseOpinionContent,A=e.isDeletedByModerator,T=void 0!==O&&O,D=void 0===N||N,B=void 0===w||w,R=void 0!==I&&I,L=void 0!==_&&_,E=void 0!==C&&C,G=void 0!==P&&P,U=(0,h.D6)().isBot,V=3===S.status;x[0]!==S.publishedWithoutRating||x[1]!==S.rating||x[2]!==V?(k=(0,we.o)(S.rating,V,S.publishedWithoutRating),x[0]=S.publishedWithoutRating,x[1]=S.rating,x[2]=V,x[3]=k):k=x[3];var M,Q=k.ratingWidth,W=(0,f.P)(),H=(0,o.Vs)().query,$=(0,y.D0)().SHOPEX_9509_ADD_VEHICLE_TO_OPINION,z=ht((0,r.useState)(!1),2),K=z[0],Y=z[1],X=ht((0,r.useState)(U||"true"===H.readComments),2),J=X[0],Z=X[1],ee=ht((0,r.useState)("true"===H.addComment),2),ne=ee[0],te=ee[1],ie=!(null===(n=S.images)||void 0===n||!n.length)||!!S.video;x[4]!==S.dateCreated?(M=(0,we.e)(S.dateCreated),x[4]=S.dateCreated,x[5]=M):M=x[5];
2var re,oe=M,ae=S.comments.length,le=!!W.id,de=!!S.userRatings.currentUserRatingState,ue=W.id===S.userId,ce=W.company_id===S.companyId,se=le&&!de&&!ue&&!ce&&(T||K);x[6]!==A?(re=function(){return A?(0,F.jsx)(l.Box,{"box-padding":"s m","box-round":"m","box-margin-bottom":"s","box-border":"black-600","box-background":"black-100","data-qaid":"moderation_alert",children:(0,F.jsx)(s.Text,{children:"\u041e\u0442\u0437\u044b\u0432 \u0443\u0434\u0430\u043b\u0435\u043d \u043c\u043e\u0434\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c"})}):null},x[6]=A,x[7]=re):re=x[7];var me,ve=re;x[8]!==$||x[9]!==S.isCurrentUserSelectedVehicle||x[10]!==S.vehicle?(me=function(){return $&&S.vehicle?(0,F.jsx)(l.Box,{"box-display":"none:empty","box-margin-top":"xs",children:(0,F.jsxs)(m.J,{"label-theme":S.isCurrentUserSelectedVehicle?"green-50":"black-300","data-qaid":"opinion_vehicle_label",children:[S.vehicle.manufacturer.name," ",S.vehicle.model.name]})}):null},x[8]=$,x[9]=S.isCurrentUserSelectedVehicle,x[10]=S.vehicle,x[11]=me):me=x[11];var fe,ye=me,he=D?"m m none":void 0,be=D?"m":void 0,ge=S.id,ke=(null===(t=S.productData)||void 0===t||null===(t=t.product)||void 0===t?void 0:t.category.verticalDomain)||null,xe=S.id;x[12]!==ve?(fe=ve(),x[12]=ve,x[13]=fe):fe=x[13];var Se,je,Oe,Ie,_e,Ce,Fe,Pe,Ae,Te,De,Be=S.author.photoUrl||void 0,Re=S.author.photoUrl?S.authorName:void 0;x[14]!==Be||x[15]!==Re?(Se=(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(a.e,{theme:"black-100",image:Be,name:Re,size:36})}),x[14]=Be,x[15]=Re,x[16]=Se):Se=x[16],x[17]!==S.authorName?(je=(0,F.jsx)(l.Box,{children:(0,F.jsx)(s.Text,{"text-weight":"medium","text-wrap":"ellipsis","data-qaid":"author_name",children:S.authorName})}),x[17]=S.authorName,x[18]=je):je=x[18],x[19]!==oe?(Oe=(0,F.jsx)(s.Text,{"text-as":"time","text-size":"small","text-color":"black-700","text-align":"left","data-qaid":"date_created",children:oe}),x[19]=oe,x[20]=Oe):Oe=x[20],x[21]!==je||x[22]!==Oe?(Ie=(0,F.jsxs)(d.Grid.Item,{"grid-item-width":"expand",children:[je,Oe]}),x[21]=je,x[22]=Oe,x[23]=Ie):Ie=x[23],x[24]!==Se||x[25]!==Ie?(_e=(0,F.jsx)(d.Grid.Item,{"grid-item-width":"expand",children:(0,F.jsxs)(d.Grid,{"grid-indent-x":"xs","grid-valign":"middle",children:[Se,Ie]})}),x[24]=Se,x[25]=Ie,x[26]=_e):_e=x[26],x[27]!==Q?(Ce=(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(c.G,{percent:Q,"data-qaid":"count_stars","data-qaid-raiting":Q,size:24})}),x[27]=Q,x[28]=Ce):Ce=x[28],x[29]!==E||x[30]!==S.canBeEdited||x[31]!==S.id?(Fe=S.canBeEdited?(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(l.Box,{"box-position":"relative","box-zindex":"s",children:(0,F.jsx)(Sn,{opinionId:S.id,editType:q.Opinion,isRemoveOpinionWithoutRedirect:E})})}):null,x[29]=E,x[30]=S.canBeEdited,x[31]=S.id,x[32]=Fe):Fe=x[32],x[33]!==Ce||x[34]!==Fe?(Pe=(0,F.jsx)(d.Grid.Item,{children:(0,F.jsxs)(d.Grid,{"grid-valign":"middle","grid-indent-x":"s","grid-align":"right",children:[Ce,Fe]})}),x[33]=Ce,x[34]=Fe,x[35]=Pe):Pe=x[35],x[36]!==_e||x[37]!==Pe?(Ae=(0,F.jsxs)(d.Grid,{"grid-indent-x":"s",children:[_e,Pe]}),x[36]=_e,x[37]=Pe,x[38]=Ae):Ae=x[38],x[39]!==fe||x[40]!==Ae?(Te=(0,F.jsxs)(l.Box,{"box-margin-bottom":"s",children:[fe,Ae]}),x[39]=fe,x[40]=Ae,x[41]=Te):Te=x[41],x[42]!==S.title?(De=(0,F.jsx)(s.Text,{"text-display":"block","text-size":"h5","text-weight":"medium","data-qaid":"title",children:S.title}),x[42]=S.title,x[43]=De):De=x[43];var Le,Ee,Ge,qe,Ue,Ve,Me,Qe,We=null===S||void 0===S||null===(b=S.productData)||void 0===b||null===(b=b.product)||void 0===b?void 0:b.variationAttributes;(x[44]!==S.company.name||x[45]!==S.fromBuyerText||x[46]!==We?(Le=(0,F.jsx)(l.Box,{"box-display":"none:empty","box-margin-top":"xs",children:(0,F.jsx)(rt.U,{companyName:S.company.name,fromBuyerText:S.fromBuyerText,variationAttributes:We})}),x[44]=S.company.name,x[45]=S.fromBuyerText,x[46]=We,x[47]=Le):Le=x[47],x[48]!==ye?(Ee=ye(),x[48]=ye,x[49]=Ee):Ee=x[49],x[50]!==De||x[51]!==Le||x[52]!==Ee?(Ge=(0,F.jsxs)(l.Box,{"box-margin-bottom":"s",children:[De,Le,Ee]}),x[50]=De,x[51]=Le,x[52]=Ee,x[53]=Ge):Ge=x[53],x[54]!==L||x[55]!==S.id||x[56]!==ke||x[57]!==Te||x[58]!==Ge?(qe=(0,F.jsxs)(lt,{subdomain:ke,opinionId:xe,isActive:L,children:[Te,Ge]}),x[54]=L,x[55]=S.id,x[56]=ke,x[57]=Te,x[58]=Ge,x[59]=qe):qe=x[59],x[60]!==ie||x[61]!==B||x[62]!==S.id||x[63]!==S.images||x[64]!==(null===(g=S.productData)||void 0===g||null===(g=g.product)||void 0===g?void 0:g.id)||x[65]!==S.video||x[66]!==j)?(Ue=B&&ie?(0,F.jsx)(p.r,{opinionId:S.id,productId:null===S||void 0===S||null===(Ve=S.productData)||void 0===Ve||null===(Ve=Ve.product)||void 0===Ve?void 0:Ve.id,productName:j,images:S.images,video:S.video,analyticsCategory:"product_opinions_block"}):null,x[60]=ie,x[61]=B,x[62]=S.id,x[63]=S.images,x[64]=null===(Me=S.productData)||void 0===Me||null===(Me=Me.product)||void 0===Me?void 0:Me.id,x[65]=S.video,x[66]=j,x[67]=Ue):Ue=x[67];x[68]!==G||x[69]!==S.cons||x[70]!==S.pros||x[71]!==S.text?(Qe=S.text||S.pros||S.cons?(0,F.jsx)(l.Box,{"box-margin-bottom":"s",children:(0,F.jsx)(yt,{isActive:G,onChange:function(e){return Y(e)},children:(0,F.jsxs)(u.List,{"list-indent":"s",children:[!!S.text&&(0,F.jsx)(u.List.Item,{"data-qaid":"text_block",children:(0,F.jsx)(s.Text,{"data-qaid":"opinion_text","text-lhe
2ight":"medium","text-wrap":"break",children:S.text})}),S.pros?(0,F.jsxs)(u.List.Item,{"data-qaid":"advantages_block",children:[(0,F.jsx)(l.Box,{"box-margin-bottom":"xxs",children:(0,F.jsx)(s.Text,{"text-weight":"bold","data-qaid":"advantages_title",children:"\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430"})}),(0,F.jsx)(s.Text,{"text-lheight":"medium","text-wrap":"break","data-qaid":"advantages_text",children:S.pros})]}):null,S.cons?(0,F.jsxs)(u.List.Item,{"data-qaid":"disadvantages_block",children:[(0,F.jsx)(l.Box,{"box-margin-bottom":"xxs",children:(0,F.jsx)(s.Text,{"text-weight":"bold","data-qaid":"disadvantages_title",children:"\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438"})}),(0,F.jsx)(s.Text,{"text-lheight":"medium","text-wrap":"break","data-qaid":"disadvantages_text",children:S.cons})]}):null]})})}):null,x[68]=G,x[69]=S.cons,x[70]=S.pros,x[71]=S.text,x[72]=Qe):Qe=x[72];var He,$e=S.isDeleted||S.isDeletedByAuthor;x[73]!==ne||x[74]!==ae||x[75]!==W.id||x[76]!==J||x[77]!==$e?(He=(0,F.jsx)(d.Grid.Item,{"grid-item-width":"expand",children:(0,F.jsx)(Ne,{commentsCount:ae,showCommentFormSetter:te,showListSetter:Z,showForm:ne,showList:J,userId:W.id,isDisable:$e})}),x[73]=ne,x[74]=ae,x[75]=W.id,x[76]=J,x[77]=$e,x[78]=He):He=x[78];var ze,Ke,Ye,Xe,Je,Ze=S.isDeleted||S.isDeletedByAuthor;x[79]!==W.id||x[80]!==S.id||x[81]!==S.userRatings||x[82]!==Ze?(ze=(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(pe,{opinionId:S.id,userRatings:S.userRatings,userId:W.id,isDisable:Ze})}),x[79]=W.id,x[80]=S.id,x[81]=S.userRatings,x[82]=Ze,x[83]=ze):ze=x[83],x[84]===Symbol["for"]("react.memo_cache_sentinel")?(Ke="\u041e\u0442\u0437\u044b\u0432 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044f",Ye="\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u043e\u0442\u0437\u044b\u0432",Xe="\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043e\u0442\u0437\u044b\u0432",Je="\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0442\u0437\u044b\u0432 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",x[84]=Ke,x[85]=Ye,x[86]=Xe,x[87]=Je):(Ke=x[84],Ye=x[85],Xe=x[86],Je=x[87]);var en,nn,tn,rn,on,an,ln=S.isDeleted||S.isDeletedByAuthor;return x[88]!==S.shareLink||x[89]!==ln?(en=(0,F.jsx)(d.Grid.Item,{children:(0,F.jsx)(v.j,{shareUrl:S.shareLink,shareTitle:Ke,shareButtonTitle:Ye,copyButtonTitle:Xe,copySuccess:Je,disabled:ln})}),x[88]=S.shareLink,x[89]=ln,x[90]=en):en=x[90],x[91]!==He||x[92]!==ze||x[93]!==en?(nn=(0,F.jsx)(l.Box,{"box-padding":"xs none",children:(0,F.jsxs)(d.Grid,{"grid-align":"justify","grid-valign":"middle","grid-indent-x":"xs",children:[He,ze,en]})}),x[91]=He,x[92]=ze,x[93]=en,x[94]=nn):nn=x[94],x[95]!==ne||x[96]!==W.id||x[97]!==R||x[98]!==S.author.id||x[99]!==S.comments||x[100]!==S.companyResponse||x[101]!==S.id||x[102]!==J?(tn=(0,F.jsx)(qn,{showCommentForm:ne,showComments:J,comments:S.comments,companyResponse:S.companyResponse,opinionAuthorId:S.author.id,opinionId:S.id,showCommentFormSetter:te,showCommentsSetter:Z,userId:W.id,isShowCompanyResponse:R}),x[95]=ne,x[96]=W.id,x[97]=R,x[98]=S.author.id,x[99]=S.comments,x[100]=S.companyResponse,x[101]=S.id,x[102]=J,x[103]=tn):tn=x[103],x[104]!==T||x[105]!==se||x[106]!==S.id?(rn=se?(0,F.jsx)(it,{opinionId:S.id,isSkipCookieCheck:T}):null,x[104]=T,x[105]=se,x[106]=S.id,x[107]=rn):rn=x[107],x[108]!==nn||x[109]!==tn||x[110]!==rn?(on=(0,F.jsxs)(l.Box,{"box-background":"white",children:[nn,tn,rn]}),x[108]=nn,x[109]=tn,x[110]=rn,x[111]=on):on=x[111],x[112]!==S.id||x[113]!==he||x[114]!==be||x[115]!==qe||x[116]!==Ue||x[117]!==Qe||x[118]!==on?(an=(0,F.jsxs)(l.Box,{"box-width":"1-1","box-padding":he,"box-round":be,"box-background":"white","data-qaid":"opinion_item","data-qaopinionid":ge,children:[qe,Ue,Qe,on]}),x[112]=S.id,x[113]=he,x[114]=be,x[115]=qe,x[116]=Ue,x[117]=Qe,x[118]=on,x[119]=an):an=x[119],an};jt.displayName="ProductOpinion"},79443:function(e,n,t){"use strict";t.d(n,{L:function(){return O},w:function(){return j}});var i=t(53459),r=t(43132),o=t(17928),a=t(36276),l=t(96147);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=h(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t["return"]||t["return"]()}finally{if(l)throw o}}}}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
2n%2?c(Object(t),!0).forEach(function(n){m(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function m(e,n,t){return(n=v(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function v(e){var n=f(e,"string");return"symbol"==d(n)?n:n+""}function f(e,n){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function p(e){return g(e)||b(e)||h(e)||y()}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,n){if(e){if("string"==typeof e)return k(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,n):void 0}}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function g(e){if(Array.isArray(e))return k(e)}function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}var x=function(e){return(0,r.y)()(function(n){var t,i;return{opinions:null!==(t=null===e||void 0===e?void 0:e.opinions)&&void 0!==t?t:[],indexById:null!==(i=null===e||void 0===e?void 0:e.indexById)&&void 0!==i?i:{},setOpinions:function(e){return n(function(){var n={};return e.forEach(function(e,t){n[e.id]=t}),{opinions:e,indexById:n}})},appendOpinions:function(e){return n(function(n){if(null===e||void 0===e||!e.length)return n;var t,i=p(n.opinions),r=s({},n.indexById),o=u(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,l=r[a.id];void 0===l?(r[a.id]=i.length,i.push(a)):i[l]=a}}catch(d){o.e(d)}finally{o.f()}return{opinions:i,indexById:r}})},updateOpinion:function(e,t){return n(function(n){var i=n.opinions.findIndex(function(n){return n.id===e});if(-1===i)return n;var r=p(n.opinions);return r[i]=t(r[i]),{opinions:r}})},deleteOpinion:function(e){return n(function(n){return{opinions:n.opinions.filter(function(n){return n.id!==e})}})}}})},S=(0,i.createContext)(null),j=function(e){var n=e.children,t=e.initialState,r=(0,i.useRef)(x(t));return(0,l.jsx)(S.Provider,{value:r.current,children:n})};function O(e){var n=(0,i.useContext)(S);if(!n)throw new Error("Missing ProductOpinionContext");return(0,o.P)(n,(0,a.k)(e))}},67647:function(e,n,t){"use strict";function i(e,n){return a(e)||o(e,n)||d(e,n)||r()}function r(){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 o(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,l=[],d=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(i=o.call(t)).done)&&(l.push(i.value),l.length!==n);d=!0);}catch(e){u=!0,r=e}finally{try{if(!d&&null!=t["return"]&&(a=t["return"](),Object(a)!==a))return}finally{if(u)throw r}}return l}}function a(e){if(Array.isArray(e))return e}function l(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=d(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t["return"]||t["return"]()}finally{if(l)throw o}}}}function d(e,n){if(e){if("string"==typeof e)return u(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}t.d(n,{X:function(){return p},p:function(){return f}});var c=function(e){return!Array.isArray(e)},s=function(e,n){var t,i=l(null!==n&&void 0!==n?n:Object.keys(e));try{for(i.s();!(t=i.n()).done;){var r,o=null===(r=e[t.value])||void 0===r?void 0:r[0];if(o)return o}}catch(a){i.e(a)}finally{i.f()}},m=function(e,n){if(null!==n&&void 0!==n&&n.length){var t=e.find(function(e){return e.field&&n.includes(String(e.field))});if(null!==t&&void 0!==t&&t.message)return t.message}var i=e.map(function(e){return e.message}
2).filter(Boolean);return i.length?i.join(", "):void 0},v=function(e,n){var t=e.extensions,i=null===t||void 0===t?void 0:t.errors;return i?c(i)?s(i,n)||e.message||void 0:i.length?m(i,n)||e.message||void 0:e.message||void 0:e.message||void 0},f=function(e,n){var t=Array.isArray(e)?e:null===e||void 0===e?void 0:e.graphQLErrors;if(null===t||void 0===t||!t.length)return(null===n||void 0===n?void 0:n.fallbackMessage)||"";var i,r=l(t);try{for(r.s();!(i=r.n()).done;){var o=i.value,a=v(o,null===n||void 0===n?void 0:n.fieldKeys);if(a)return a}}catch(d){r.e(d)}finally{r.f()}return(null===n||void 0===n?void 0:n.fallbackMessage)||""},p=function(e,n){var t={},r={};if(e&&e.forEach(function(e){var i,o,a=e,l=a.extensions,d=a.message;l&&null!==l&&void 0!==l&&null!==(i=l.errors)&&void 0!==i&&i.length?l.errors.forEach(function(e){var n=e.field,i=e.message;n&&(t[n]={message:i})}):l&&l.code&&(r.code=l.code,r.message=d),!n||null!==l&&void 0!==l&&null!==(o=l.errors)&&void 0!==o&&o.length||n("root",{message:d})}),!n)return r;Object.entries(t).forEach(function(e){var t=i(e,2),r=t[0],o=t[1];n(r,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.