"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[40410],{99740:(n,e,t)=>{t.d(e,{DY:()=>b,Mn:()=>m,X2:()=>y,fK:()=>Z,im:()=>f,qe:()=>x});var i,r,o,a,c,s,l,u,p=t(30168),d=t(71893),g=t(30305),h=(0,d.iv)(i||(i=(0,p.Z)(["\n border-bottom: ",";\n"])),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),f=d.ZP.div(r||(r=(0,p.Z)(["\n padding: "," 0;\n\n &:not(:last-child) {\n ","\n }\n"])),(function(n){return n.theme.spacing.spacing06}),(function(n){return n.hasSeparator&&h})),m=d.ZP.div(o||(o=(0,p.Z)(["\n display: flex;\n flex-direction: column;\n\n "," {\n flex-direction: row;\n }\n"])),g.B.tabletPortrait),v=(0,d.iv)(a||(a=(0,p.Z)(["\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n"]))),y=d.ZP.div(c||(c=(0,p.Z)(["\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n ","\n width: 100%;\n"])),(function(n){return n.isColumn&&v})),x=d.ZP.div(s||(s=(0,p.Z)(["\n flex-direction: column;\n\n "," {\n margin-top: ",";\n flex: 1;\n }\n"])),g.B.tabletPortrait,(function(n){return n.theme.spacing.spacing02})),Z=d.ZP.div(l||(l=(0,p.Z)(["\n display: block;\n width: 100%;\n padding: 0.3rem;\n"]))),b=d.ZP.span(u||(u=(0,p.Z)(["\n padding-left: ",";\n"])),(function(n){return n.theme.spacing.spacing01}))},17484:(n,e,t)=>{t.d(e,{$:()=>a,c:()=>f});var i,r,o,a,c=t(29439),s=t(30168),l=(t(74916),t(23123),t(21249),t(57327),t(73210),t(67294),t(71893)),u=t(28225),p=t(85893);!function(n){n.PROS="pros",n.CONS="cons"}(a||(a={}));var d=l.ZP.div(i||(i=(0,s.Z)(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n letter-spacing: ",";\n margin-right: ",";\n display: block;\n"])),(function(n){return n.theme.typography.body2Bold.size}),(function(n){return n.theme.typography.body2Bold.weight}),(function(n){return n.theme.typography.body2Bold.lineHeight}),(function(n){return n.theme.typography.body2Bold.letter}),(function(n){return n.theme.spacing.spacing005})),g=l.ZP.li(r||(r=(0,s.Z)(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n letter-spacing: ",";\n margin-right: ",";\n margin-bottom: 0;\n"])),(function(n){return n.theme.typography.body2Regular.size}),(function(n){return n.theme.typography.body2Regular.weight}),(function(n){return n.theme.typography.body2Regular.lineHeight}),(function(n){return n.theme.typography.body2Regular.letter}),(function(n){return n.theme.spacing.spacing005})),h=l.ZP.ul(o||(o=(0,s.Z)(["\n display: flex;\n flex-direction: column;\n margin-bottom: 0;\n list-style-type: none;\n padding-left: 0px;\n"]))),f=function(n){var e=n.type,t=n.text,i=(0,u.$G)(),r=(0,c.Z)(i,1)[0],o=t.split(/\r?\n/).filter((function(n){return""!==n.trim()})).map((function(n,e){return(0,p.jsx)(g,{children:n},e)}));return(0,p.jsxs)("div",{children:[(0,p.jsx)(d,{children:e===a.PROS?r("valoration.label_pros"):r("valoration.label_cons")}),(0,p.jsx)(h,{type:e,"data-testid":e,children:o})]})}},48100:(n,e,t)=>{t.d(e,{Z:()=>j});var i,r,o,a,c,s=t(29439),l=t(28225),u=t(67294),p=t(30168),d=t(71893),g=t(7730),h=t(42347),f=(0,d.iv)(i||(i=(0,p.Z)(["\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n"]))),m=(0,d.iv)(r||(r=(0,p.Z)(["\n border-right: ",";\n"])),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),v=d.ZP.div(o||(o=(0,p.Z)(["\n display: inline-flex;\n flex-wrap: ",";\n align-items: center;\n ","\n width: 100%;\n\n & > a {\n &:not(:last-child) {\n ","\n }\n }\n"])),(function(n){return n.noWrap?"nowrap":"wrap"}),(function(n){return n.isColumn&&f}),(function(n){return n.hasSeparator&&m})),y=(0,d.ZP)(g.Z)(a||(a=(0,p.Z)(["\n color: #737373;\n display: flex;\n"]))),x=(0,d.ZP)(h.r)(c||(c=(0,p.Z)(["\n color: #737373;\n"]))),Z=t(85893),b=function(n){var e=n.children;return(0,Z.jsx)(v,{children:(0,Z.jsx)(y,{typo:"body2Regular",children:e})})},P=function(n){var e=n.loading,t=n.showTranslateButton,i=n.isOriginalComment,r=n.onClick,o=(0,l.$G)(),a=(0,s.Z)(o,1)[0];return t?e?(0,Z.jsx)(b,{children:a("valoration.translating")}):(0,Z.jsxs)(b,{children:[!i&&(0,Z.jsxs)(Z.Fragment,{children:["".concat(a("valoration.translated_from"))," · "]}),(0,Z.jsx)(x,{decorated:!0,onClick:r,children:a(i?"valoration.translate_comment":"valoration.view_original")})]}):(0,Z.jsx)(Z.Fragment,{})};const j=(0,u.memo)(P)},17658:(n,e,t)=>{t.d(e,{Z:()=>I});var i,r,o,a,c,s,l,u,p,d,g,h,f=t(30168),m=t(71893),v=t(30305),y=t(46229),x=(0,m.iv)(i||(i=(0,f.Z)(["\n border-right: ",";\n"])),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),Z=m.ZP.div(r||(r=(0,f.Z)(["\n display: inline-flex;\n flex-wrap: ",";\n align-items: center;\n width: 100%;\n\n & > a {\n &:not(:last-child) {\n ","\n }\n }\n"])),(function(n){return n.noWrap?"nowrap":"wrap"}),(function(n){return n.hasSeparator&&x})),b=m.ZP.div(o||(o=(0,f.Z)(["\n display: flex;\n width: 100%;\n\n "," {\n width: 50%;\n }\n"])),v.B.desktop),P=((0,m.ZP)(y.z)(a||(a=(0,f.Z)(["\n width: fit-content;\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),m.ZP.span(c||(c=(0,f.Z)(["\n padding-left: ",";\n display: flex;\n gap: 5px;\n"])),(function(n){return n.theme.spacing.spacing005})),m.ZP.span(s||(s=(0,f.Z)(["\n "," {\n display: none;\n }\n"])),v.B.tabletPortrait),m.ZP.span(l||(l=(0,f.Z)(["\n display: none;\n\n "," {\n display: block;\n white-space: nowrap;\n }\n"])),v.B.tabletPortrait),m.ZP.div(u||(u=(0,f.Z)(["\n min-height: 1rem;\n border: 1px solid ",";\n ",";\n\n "," {\n ","\n }\n"])),(function(n){return n.theme.colors.environment.percent20}),(function(n){var e=n.theme.spacing;return n.margin&&"margin: 0 ".concat(e.spacing01,";")}),v.B.desktop,(function(n){return n.hiddenDesktop&&"display: none;"}))),j=t(67294),w=t(63742),O=(0,m.ZP)(y.z)(p||(p=(0,f.Z)(["\n width: fit-content;\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),k=m.ZP.span(d||(d=(0,f.Z)(["\n padding-left: ",";\n display: flex;\n gap: 5px;\n"])),(function(n){return n.theme.spacing.spacing005})),C=m.ZP.span(g||(g=(0,f.Z)(["\n "," {\n display: none;\n }\n"])),v.B.tabletPortrait),R=m.ZP.span(h||(h=(0,f.Z)(["\n display: none;\n\n "," {\n display: block;\n white-space: nowrap;\n }\n"])),v.B.tabletPortrait),A=t(85893),S=function(n){var e,t=n.texts,i=n.onClick,r=n.options,o=(null===r||void 0===r?void 0:r.amountYes)||-1;return(0,A.jsxs)(O,{disabled:!1,secondary:null===r||void 0===r||null===(e=r.buttonProps)||void 0===e?void 0:e.secondary,onClick:i,children:[(0,A.jsx)(w.J,{icon:"vote_thumbs_up",small:!0},"vote_thumbs_up"),(0,A.jsxs)(k,{children:[(0,A.jsx)(C,{children:t.mobile}),(0,A.jsx)(R,{children:t.tablet}),o>0&&(0,A.jsxs)("span",{"data-testid":"value-rating",children:[" ","(".concat(o,")")]})]})]})};const B=(0,j.memo)(S);t(47941),t(82526),t(57327),t(38880),t(89554),t(54747),t(49337),t(33321),t(69070);var _=t(4942),T=t(20241);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function E(n){for(var e=1;e-1?{ghost:!0}:{secondary:!0}}}),s&&(0,A.jsx)(P,{margin:!0}),c&&(0,A.jsx)(N,{text:t.report,onClick:function(){return i.onReport&&i.onReport()},options:{renderAsLink:n}})]})};return r?a(!0,!!i.onAddUseful,!!i.onOpenCloseReply,!!i.onReport):(0,A.jsx)(b,{children:a(!1,!!i.onAddUseful,!!i.onOpenCloseReply,!!i.onReport)})};const I=(0,j.memo)(M)},98105:(n,e,t)=>{t.d(e,{Z:()=>C});var i,r,o,a,c,s,l,u=t(29439),p=(t(92222),t(74916),t(23123),t(67294)),d=t(28225),g=t(46229),h=t(30168),f=t(71893),m=t(68607),v=t(51240),y=(0,f.iv)(i||(i=(0,h.Z)(["\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n"]))),x=(0,f.iv)(r||(r=(0,h.Z)(["\n border-right: ",";\n"])),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),Z=f.ZP.div(o||(o=(0,h.Z)(["\n display: inline-flex;\n flex-direction: column;\n flex-wrap: ",";\n align-items: center;\n ","\n width: 100%;\n\n & > a {\n &:not(:last-child) {\n ","\n }\n }\n"])),(function(n){return n.noWrap?"nowrap":"wrap"}),(function(n){return n.isColumn&&y}),(function(n){return n.hasSeparator&&x})),b=(0,f.ZP)(m.N)(a||(a=(0,h.Z)(["\n width: 100%;\n margin-bottom: 0;\n"]))),P=(0,f.ZP)(Z)(c||(c=(0,h.Z)(["\n margin-bottom: ",";\n margin-top: ",";\n"])),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02})),j=(0,f.ZP)(g.z)(s||(s=(0,h.Z)(["\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing005})),w=(0,f.ZP)(v.J)(l||(l=(0,h.Z)(["\n padding: 0;\n"]))),O=t(85893),k=function(n){var e=n.nick,t=n.openReply,i=n.closeReply,r=n.handleAddReply,o=n.translationKey,a=(0,p.useState)(""),c=(0,u.Z)(a,2),s=c[0],l=c[1],h=(0,d.$G)(),f=(0,u.Z)(h,1)[0];return t?(0,O.jsxs)(Z,{"data-testid":"comment-".concat(o),children:[(0,O.jsx)(b,{label:f("".concat(o,".comment")),value:""===s?"@".concat(e," "):"@".concat(e," ").concat(s),textAreaId:"comment",onTextAreaChange:function(n){l(n.target.value.split("".concat(e," "))[1]||"")},placeholder:"@".concat(e),assistiveText:f("questionsAnswers.min.characters.requiered")}),(0,O.jsx)(P,{children:(0,O.jsxs)(w,{children:[(0,O.jsx)(j,{disabled:s.length<15,onClick:function(){l(""),r({commentValue:s})},children:f("".concat(o,".comment"))}),(0,O.jsx)(g.z,{secondary:!0,onClick:function(){return i(!1)},children:f("".concat(o,".cancel"))})]})})]}):null};const C=(0,p.memo)(k)},20241:(n,e,t)=>{t.d(e,{JX:()=>v,Ly:()=>x,Me:()=>m,Vg:()=>j,X2:()=>b,rU:()=>y,yU:()=>P});var i,r,o,a,c,s,l,u,p,d,g=t(30168),h=(t(92222),t(71893)),f=t(30305),m=h.ZP.div(i||(i=(0,g.Z)(["\n display: flex;\n width: 100%;\n background-color: ",";\n margin-bottom: ",";\n padding: ",";\n padding-left: ",";\n ","\n flex-direction: column;\n margin-right: ",";\n\n "," {\n flex: 0.25;\n }\n"])),(function(n){return n.theme.colors.environment.percent05}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.isNestedReply?0:n.theme.spacing.spacing02}),(function(n){return n.isNestedReply?n.theme.spacing.spacing01:n.theme.spacing.spacing03}),(function(n){return n.isNestedReply&&{paddingTop:n.theme.spacing.spacing02,paddingBottom:n.theme.spacing.spacing02}}),(function(n){return n.theme.spacing.spacing02}),f.B.desktop),v=h.ZP.div(r||(r=(0,g.Z)(["\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),y=h.ZP.a(o||(o=(0,g.Z)(["\n text-decoration: none;\n padding: 0 1rem;\n"]))),x=h.ZP.span(a||(a=(0,g.Z)(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n font-size: ",";\n"])),(function(n){return n.theme.typography.body2Bold.size}),(function(n){return n.theme.typography.body2Bold.weight}),(function(n){return n.theme.typography.body2Bold.lineHeight}),(function(n){return n.theme.colors.black})),Z=(0,h.iv)(c||(c=(0,g.Z)(["\n border-right: ",";\n"])),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),b=h.ZP.div(s||(s=(0,g.Z)(["\n display: inline-flex;\n align-items: center;\n margin: ",";\n\n & > a {\n &:not(:last-child) {\n ","\n }\n }\n"])),(function(n){return"".concat(n.theme.spacing.spacing01," ").concat(n.theme.spacing.spacing01," ").concat(n.theme.spacing.spacing01," 0")}),(function(n){return n.hasSeparator&&Z})),P=(h.ZP.div(l||(l=(0,g.Z)(["\n display: flex;\n flex-direction: column;\n"]))),h.ZP.div(u||(u=(0,g.Z)(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n letter-spacing: ",";\n color: ",";\n"])),(function(n){return n.theme.typography.captionRegular.size}),(function(n){return n.theme.typography.captionRegular.weight}),(function(n){return n.theme.typography.captionRegular.lineHeight}),(function(n){return n.theme.typography.captionRegular.letter}),(function(n){return n.theme.colors.environment.percent40})),h.ZP.div(p||(p=(0,g.Z)(["\n display: flex;\n width: 100%;\n\n & > a {\n padding: ",";\n margin-top: ",";\n }\n"])),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}))),j=h.ZP.p(d||(d=(0,g.Z)(["\n & > span {\n margin-right: ",";\n font-weight: ",";\n\n &::before {\n content: '@';\n }\n }\n"])),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.theme.typography.body2Bold.weight}))},88090:(n,e,t)=>{t.d(e,{B:()=>O});var i=t(29439),r=(t(83710),t(41539),t(39714),t(47042),t(21249),t(67294)),o=t(27484),a=t.n(o),c=t(84110),s=t.n(c),l=t(67763),u=t.n(l),p=t(33407),d=t(28225),g=t(20241),h=t(86049),f=t(78585),m=t(17658),v=t(98105),y=t(81451),x=t(48100),Z=t(85893),b=function n(e){var t=e.mainComment,o=e.idArticle,c=e.response,l=e.handlers,b=e.isNestedReply,P=e.parentCommentId,j=e.parentId,w=e.parentNick,O=e.isUserLogged,k=e.translationKey,C=e.replyIdToOpen,R=e.openReplyOnLoad,A=e.isTranslationOnDemandActive,S=(0,d.$G)(),B=(0,i.Z)(S,1)[0];a().extend(s()),a().locale(u());var _=(0,y.J)({comment:c,key:"valoration"===k?"comment":"text"}),T=_.text,z=_.shouldBeTranslated,E=_.isOriginalComment,L=c.user.nick,D=c.updatedAt,U=c.likes,N=c.children,M=c.loading,I=c.id,H=(0,r.useState)(!1),K=(0,i.Z)(H,2),F=K[0],X=K[1],W=l.onReport,G=l.onAddUseful,J=l.onOpenCloseReply,Y=l.onAddComment,V=l.onToggleTranslation,$=A&&V&&(z||!E);return(0,Z.jsxs)(g.Me,{"data-testid":"response",isNestedReply:b,children:[(0,Z.jsxs)(g.X2,{children:[(0,Z.jsx)(g.JX,{children:(0,Z.jsx)(p.q,{username:null!==L&&void 0!==L?L:""})}),(0,Z.jsx)(g.JX,{children:(0,Z.jsx)(g.Ly,{children:L})}),(0,Z.jsx)(g.JX,{children:(0,Z.jsx)(h.Ej,{children:a()(D).fromNow()})})]}),(0,Z.jsx)(g.X2,{children:(0,Z.jsxs)(g.Vg,{children:[(0,Z.jsx)("span",{"data-testid":"response-parent-nick",children:w})," ",T]})}),(0,Z.jsx)(x.Z,{loading:M,showTranslateButton:$,isOriginalComment:E,onClick:function(){return V&&V({idComment:I,showOriginal:!E})}}),(0,Z.jsx)(m.Z,{amountYes:void 0!==U?U:-1,texts:{comment:B("".concat(k,".comment")),report:B("".concat(k,".report")),usefulMobile:B("".concat(k,".useful")),usefulTablet:B("".concat(k,".usefulOpinion"))},isReply:!0,handlers:{onReport:function(){return W({idComment:I})},onOpenCloseReply:function(){return J&&J({open:!0,mainComment:t,idComment:I})},onAddUseful:function(){return G({idComment:I})}}}),(0,Z.jsx)(v.Z,{nick:c.user.nick,openReply:C===I,closeReply:function(){return J&&J({mainComment:t,idComment:I,open:!1})},handleAddReply:function(n){var e=n.commentValue;Y&&Y({idArticle:o,idComment:j,text:e})},translationKey:k}),N&&(null===N||void 0===N?void 0:N.length)>0&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(g.yU,{children:(0,Z.jsx)(g.rU,{onClick:function(){X(!F)},children:B("".concat(k,F?".hide_responses":".show_more_responses"))})}),F&&(0,Z.jsx)(f.o,{itemsProps:N.map((function(n){return{key:"reply-".concat(n.id),idArticle:o,response:n,mainComment:t,parentCommentId:P,parentId:j,isNestedReply:!0,parentNick:L||w,handlers:l,isUserLogged:O,translationKey:k,replyIdToOpen:C,openReplyOnLoad:R}})),itemType:n})]})]})};const P=(0,r.memo)(b);var j=t(42347),w=t(99740),O=function(n){var e=n.idArticle,t=n.openReplyOnLoad,o=n.expandOnLoad,a=n.replyIdToOpen,c=n.handlers,s=n.comment,l=n.isUserLogged,u=n.translationKey,p=n.isTranslationOnDemandActive,h=(0,d.$G)(),m=(0,i.Z)(h,1)[0],v=(0,r.useState)(o||!1),y=(0,i.Z)(v,2),x=y[0],b=y[1],O=(0,r.useState)(0),k=(0,i.Z)(O,2),C=k[0],R=k[1],A=s.children,S=s.user,B=s.idPccApi,_=s.id,T=function(){b((function(n){return!n}))},z="valoration"===u?_:(null===B||void 0===B?void 0:B.toString())||_;return(0,Z.jsxs)(Z.Fragment,{children:[A.length>0&&(0,Z.jsx)(g.yU,{children:(0,Z.jsx)(j.r,{"data-testid":"toggle-responses",onClick:T,children:x?m("".concat(u,".hide_responses")):m("".concat(u,".show_responses"),{text:A.length})})}),x&&(0,Z.jsx)(w.fK,{"data-testid":"responses",children:A.slice(0,4*(C+1)).length>0&&(0,Z.jsx)(f.o,{itemsProps:A.map((function(n){var i,r;return{key:"reply-".concat(n.id),handlers:c,response:n,idArticle:e,mainComment:z,parentCommentId:(null===(i=n.idPccApi)||void 0===i?void 0:i.toString())||n.id,parentId:n.id,isNestedReply:!1,parentNick:null===S||void 0===S?void 0:S.nick,isUserLogged:l,translationKey:u,openReplyOnLoad:t&&(a===(null===(r=n.idPccApi)||void 0===r?void 0:r.toString())||a===n.id),replyIdToOpen:a,isTranslationOnDemandActive:p}})),itemType:P,options:{pagination:{page:C,pageSize:4,totalPages:Math.ceil(A.length/4),onPageChange:R,infiniteScroll:!0,virtualFetch:!0}},paginationComponent:function(n){var e=n.handlePageChange,t=n.page,i=n.hasMorePages;return!i&&t>0?(0,Z.jsx)(g.yU,{children:(0,Z.jsx)(j.r,{"data-testid":"toggle-responses",onClick:T,children:m("".concat(u,".hide_responses"))})}):i?(0,Z.jsx)(g.yU,{children:(0,Z.jsx)(j.r,{onClick:function(){return e(t+1)},children:m("".concat(u,".show_more_responses"))})}):(0,Z.jsx)(Z.Fragment,{})}})})]})}},86049:(n,e,t)=>{t.d(e,{E6:()=>k,Ej:()=>P,JX:()=>Z,Ly:()=>b,X2:()=>y,a1:()=>w,kI:()=>O,ow:()=>x,zI:()=>j});var i,r,o,a,c,s,l,u,p,d,g,h=t(30168),f=t(71893),m=t(30305),v=(0,f.iv)(i||(i=(0,h.Z)(["\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n"]))),y=f.ZP.div(r||(r=(0,h.Z)(["\n display: flex;\n align-items: center;\n width: 100%;\n\n flex-wrap: ",";\n ","\n"])),(function(n){return n.noWrap?"nowrap":"wrap"}),(function(n){return n.isColumn&&v})),x=f.ZP.div(o||(o=(0,h.Z)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n "," {\n flex-direction: ",";\n align-items: ",";\n }\n"])),m.B.tabletPortrait,(function(n){return n.isMoreUseful?"row":"column"}),(function(n){return n.isMoreUseful?"center":"flex-start"})),Z=f.ZP.div(a||(a=(0,h.Z)(["\n margin-right: 0.75rem;\n"]))),b=f.ZP.span(c||(c=(0,h.Z)(["\n display: block;\n width: 13.75rem;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n\n "," {\n width: 8.75rem;\n }\n"])),(function(n){return n.theme.typography.body2Bold.size}),(function(n){return n.theme.typography.body2Bold.weight}),(function(n){return n.theme.typography.body2Bold.lineHeight}),m.B.tabletPortrait),P=f.ZP.div(s||(s=(0,h.Z)(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n letter-spacing: ",";\n color: ",";\n"])),(function(n){return n.theme.typography.captionRegular.size}),(function(n){return n.theme.typography.captionRegular.weight}),(function(n){return n.theme.typography.captionRegular.lineHeight}),(function(n){return n.theme.typography.captionRegular.letter}),(function(n){return n.theme.colors.environment.percent40})),j=f.ZP.div(l||(l=(0,h.Z)(["\n display: flex;\n align-items: center;\n\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n letter-spacing: ",";\n gap: ",";\n"])),(function(n){return n.theme.colors.success.main}),(function(n){return n.theme.typography.captionBold.size}),(function(n){return n.theme.typography.captionBold.weight}),(function(n){return n.theme.typography.captionBold.lineHeight}),(function(n){return n.theme.typography.captionBold.letter}),(function(n){return n.theme.spacing.spacing005})),w=f.ZP.div(u||(u=(0,h.Z)(["\n cursor: pointer;\n margin-top: ",";\n"])),(function(n){return n.theme.spacing.spacing005})),O=f.ZP.div(p||(p=(0,h.Z)(["\n flex-direction: column;\n display: flex;\n min-width: 240px;\n gap: 12px;\n\n "," {\n gap: 16px;\n }\n "," {\n min-width: 260px;\n gap: 16px;\n }\n"])),m.B.tabletPortrait,m.B.desktop),k=(f.ZP.a(d||(d=(0,h.Z)(["\n text-decoration: none;\n padding: 0 1rem;\n"]))),f.ZP.div(g||(g=(0,h.Z)(["\n min-height: 1rem;\n border: 1px solid ",";\n ",";\n\n "," {\n display: ",";\n }\n"])),(function(n){return n.theme.colors.environment.percent20}),(function(n){var e=n.theme.spacing;return n.margin&&"margin: 0 ".concat(e.spacing01,";")}),m.B.tabletPortrait,(function(n){return n.hiddenTabletUp?"none":"block"})))},81451:(n,e,t)=>{t.d(e,{J:()=>u});t(47941),t(82526),t(57327),t(38880),t(89554),t(54747),t(49337),t(33321),t(69070);var i=t(4942),r=(t(85827),t(86706)),o=t(75826),a=t(12055),c=t(15593);function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function l(n){for(var e=1;e{var i,r;t.d(e,{n:()=>i,p:()=>r}),function(n){n.REPORT="report",n.FEEDBACK="usefull-feedback",n.REPLY="reply"}(i||(i={})),function(n){n.ADD_USEFUL="onAddUseful",n.REPORT="onReport",n.ADD_COMMENT="onAddComment",n.OPEN_CLOSE_REPLY="onOpenCloseReply",n.TOGGLE_TRANSLATION="onToggleTranslation"}(r||(r={}))},49893:(n,e,t)=>{t.d(e,{C:()=>o});var i,r=t(30168),o=t(71893).ZP.div(i||(i=(0,r.Z)(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n padding-top: ",";\n border-top: solid 1px ",";\n"])),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing06}),(function(n){return n.theme.colors.environment.percent20}))},78585:(n,e,t)=>{t.d(e,{o:()=>pn});var i,r,o=t(4942),a=t(15861),c=t(29439),s=t(64687),l=t.n(s),u=(t(47042),t(91038),t(78783),t(21249),t(47941),t(82526),t(57327),t(38880),t(89554),t(54747),t(49337),t(33321),t(69070),t(67294)),p=t(30168),d=t(71893),g=(d.ZP.div(i||(i=(0,p.Z)(["\n display: flex;\n flex-direction: column;\n"]))),d.ZP.div(r||(r=(0,p.Z)(["\n display: flex;\n flex-direction: column;\n ","\n ","\n"])),(function(n){var e=n.gap;return e?"gap: ".concat(e,";"):null}),(function(n){var e=n.margin;return e?"margin: ".concat(e,";"):null}))),h=t(46229),f=t(19590),m=t(49893),v=t(96681),y=t(85893),x=function(n){var e=n.onPageChange,t=n.texts,i=n.infiniteScroll,r=n.loading,o=n.totalPages,c=n.page,s=n.paginationComponent,p=(0,u.useRef)(null),d=c>0&&!r,g=o>1&&c+1{t.d(e,{Z:()=>b});var i,r,o,a,c=t(29439),s=(t(21249),t(57327),t(34553),t(30168)),l=t(71893),u=(l.ZP.div(i||(i=(0,s.Z)(["\n overflow: hidden;\n width: ","px;\n height: ","px;\n border: 1px #f2f2f2 solid;\n position: relative;\n"])),(function(n){var e=n.width;return e||64}),(function(n){var e=n.height;return e||64})),l.ZP.div(r||(r=(0,s.Z)(["\n display: flex;\n justify-content: center;\n"]))),l.ZP.div(o||(o=(0,s.Z)(["\n display: flex;\n overflow-y: ",";\n gap: ",";\n flex-wrap: ",";\n height: ",";\n"])),(function(n){return n.overflow?"inherit":"hidden"}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.noWrap?"nowrap":"wrap"}),(function(n){var e=n.height;return e||"64px"}))),p=l.ZP.div(a||(a=(0,s.Z)(["\n margin-top: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),d=t(67294),g=t(15861),h=t(64687),f=t.n(h);t(66992),t(41539),t(88674),t(78783),t(33948);var m=t(28225),v=t(13398),y=t(30505),x=t(35392),Z=t(85893);const b=function(n){var e,i,r=n.slug,o=n.idComment,a=n.amountYes,s=n.mediaSize,l=n.medias,h=n.showMore,b=void 0===h||h,P=n.showGoTo,j=void 0===P||P,w=n.showButtons,O=(0,m.$G)(),k=(0,c.Z)(O,1)[0],C=(0,d.useState)({imageWidth:s?s.imageWidth:64,imageHeight:s?s.imageHeight:64}),R=(0,c.Z)(C,1)[0],A=R.imageWidth,S=R.imageHeight,B=(0,d.useState)(!1),_=(0,c.Z)(B,2),T=_[0],z=_[1],E=(0,d.useState)(),L=(0,c.Z)(E,2),D=L[0],U=L[1],N=(0,d.useRef)(null),M=function(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,d.useState)(!1),r=(0,c.Z)(i,2),o=r[0],a=r[1];return(0,d.useEffect)((function(){if(n.current){var i=n.current,r=function(){var n=i.clientWidth,t=i.scrollWidth,r=i.clientHeight,o=i.scrollHeight,c=i.offsetTop,s=i.children,l=e?o>r:t>n,u=s.length>0?s[s.length-1].offsetTop:c;a(l||c!==u)};r(),(0,g.Z)(f().mark((function n(){var e,o;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("ResizeObserver"in self){n.next=10;break}return n.prev=1,n.next=4,t.e(91033).then(t.bind(t,91033));case 4:e=n.sent,window.ResizeObserver=e.default,n.next=10;break;case 8:n.prev=8,n.t0=n.catch(1);case 10:return(o=new ResizeObserver(r)).observe(i),n.abrupt("return",(function(){o.disconnect()}));case 13:case"end":return n.stop()}}),n,null,[[1,8]])})))().catch((function(){}))}}),[n,e]),o}(N,!0),I=(0,v.Z)(),H=I.toastToShow,K=I.setToasts;return(0,d.useEffect)((function(){z(!1)}),[M]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(u,{ref:N,overflow:!b||T?1:0,height:!b||T?"auto":"".concat(S,"px"),children:l.filter((function(n){return 1===n.type})).map((function(n){return(0,Z.jsx)(y.Z,{media:n,width:A,height:S,onClick:function(n){return U(n)}},n.id)}))}),b&&M&&(0,Z.jsx)(p,{onClick:function(){z((function(n){return!n}))},children:k(T?"valoration_media.view_less":"valoration_media.view_more")}),H,(0,Z.jsx)(x.Z,{slug:r,idComment:o||(null===D||void 0===D||null===(e=D.owner)||void 0===e?void 0:e.id)||"0",amountYes:a||(null===D||void 0===D||null===(i=D.owner)||void 0===i?void 0:i.likes)||0,medias:l,defaultMediaIndex:null===l||void 0===l?void 0:l.findIndex((function(n){return n.idResource===(null===D||void 0===D?void 0:D.idResource)})),visible:!!D,onClose:function(){return U(void 0)},setToasts:K,showGoTo:j,showButtons:w})]})}},96681:(n,e,t)=>{t.d(e,{M:()=>r});t(89554),t(54747);var i=t(67294),r=function(n){var e=n.target,t=n.options,r=n.action,o=n.active,a=n.currentPage,c=n.totalPages,s=(0,i.useRef)(null),l=(0,i.useCallback)((function(){s.current&&e&&s.current.disconnect(),s.current=null}),[e]);(0,i.useEffect)((function(){if(0!==a&&a!==c)return o&&e&&!s.current?(s.current=new IntersectionObserver((function(n){n.forEach((function(n){n.isIntersecting&&r()}))}),t),s.current.observe(e)):o||l(),function(){return l()}}),[e,o])}}}]); //# sourceMappingURL=40410.js.map