"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7827],{17484:(n,e,t)=>{t.d(e,{$:()=>a,c:()=>d});var r,o,i,a,u=t(30168),c=(t(74916),t(23123),t(21249),t(57327),t(73210),t(67294)),l=t(71893);!function(n){n.PROS="pros",n.CONS="cons"}(a||(a={}));var s=l.ZP.div(r||(r=(0,u.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})),f=l.ZP.li(o||(o=(0,u.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})),p=l.ZP.ul(i||(i=(0,u.Z)(["\n display: flex;\n flex-direction: column;\n margin-bottom: 0;\n list-style-type: none;\n padding-left: 0px;\n"]))),d=function(n){var e=n.type,t=n.text.split(/\r?\n/).filter((function(n){return""!==n.trim()})).map((function(n,e){return c.createElement(f,{key:e},n)}));return c.createElement("div",null,c.createElement(s,null,e===a.PROS?"Pros":"Contras"),c.createElement(p,{type:e,"data-testid":e},t))}},5205:(n,e,t)=>{t.d(e,{RA:()=>c,_9:()=>l,hs:()=>f,tf:()=>u,v4:()=>s});var r=t(15861),o=t(87757),i=t.n(o),a=t(8442),u=function(){var n=(0,r.Z)(i().mark((function n(e){var t,r,o,u;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.page,r=e.order,o=e.productId,u=e.showMedia,n.abrupt("return",a.V0.fetch("/api-v1/show/valoration/filter/".concat(o),a.w$.GET,{page:t,order:r,showMedia:u}));case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),c=function(){var n=(0,r.Z)(i().mark((function n(e){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",a.V0.fetch("/api-v1/show/".concat(e,"/valoration/functional-features"),a.w$.GET));case 1:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),l=function(){var n=(0,r.Z)(i().mark((function n(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.idComment,n.abrupt("return",a.V0.fetch("/api-v1/show/valoration/provide-useful-feedback",a.w$.POST,{idComment:t}));case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),s=function(){var n=(0,r.Z)(i().mark((function n(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.idComment,n.abrupt("return",a.V0.fetch("/api-v1/show/valoration/report",a.w$.POST,{idComment:t}));case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),f=function(){var n=(0,r.Z)(i().mark((function n(e){var t,r,o,u,c,l,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.idComment,r=e.idArticle,o=e.nick,u=e.parentCommentId,c=e.replyCommentId,l=e.text,s=e.email,n.abrupt("return",a.V0.fetch("/api-v1/show/valoration/reply",a.w$.POST,{idArticle:r,idComment:t,idCommentReplyParent:u,replyCommentId:c,nick:o,opinion:l,email:s}));case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},98550:(n,e,t)=>{t.d(e,{Th:()=>i,Ts:()=>r,zT:()=>o});var r={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",tabletPortrait:"768px",tabletLandscape:"992px",desktop:"1200px",desktopLarge:"1560px"},o="DD/MM/YYYY HH:mm",i="DD/MM/YYYY"},83369:(n,e,t)=>{t.d(e,{Z:()=>E});var r=t(67294),o=t(26793),i=t(51240),a=t(46229),u=t(71893),c=t(68607);function l(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function s(){var n=l(["\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n"]);return s=function(){return n},n}function f(){var n=l(["\n border-right: ",";\n"]);return f=function(){return n},n}function p(){var n=l(["\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"]);return p=function(){return n},n}function d(){var n=l(["\n width: 100%;\n margin-bottom: 0;\n"]);return d=function(){return n},n}function m(){var n=l(["\n margin-bottom: ",";\n margin-top: ",";\n"]);return m=function(){return n},n}var h=(0,u.iv)(s()),v=(0,u.iv)(f(),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),g=u.ZP.div(p(),(function(n){return n.noWrap?"nowrap":"wrap"}),(function(n){return n.isColumn&&h}),(function(n){return n.hasSeparator&&v})),y=(0,u.ZP)(c.N)(d()),b=(0,u.ZP)(g)(m(),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}));function w(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t{t.d(e,{H:()=>L});var r=t(67294),o=t(27484),i=t.n(o),a=t(84110),u=t.n(a),c=t(67763),l=t.n(c),s=t(71893),f=t(30305);function p(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function d(){var n=p(["\n display: flex;\n width: 100%;\n background-color: ",";\n margin-bottom: ",";\n padding: ",";\n ","\n flex-direction: column;\n margin-right: ",";\n\n "," {\n flex: 0.25;\n }\n"]);return d=function(){return n},n}function m(){var n=p(["\n margin-right: ",";\n"]);return m=function(){return n},n}function h(){var n=p(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n font-size: ",";\n"]);return h=function(){return n},n}function v(){var n=p(["\n border-right: ",";\n"]);return v=function(){return n},n}function g(){var n=p(["\n display: inline-flex;\n align-items: center;\n margin: ",";\n\n & > a {\n &:not(:last-child) {\n ","\n }\n }\n"]);return g=function(){return n},n}function y(){var n=p(["\n display: flex;\n flex-direction: column;\n"]);return y=function(){return n},n}function b(){var n=p(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n letter-spacing: ",";\n color: ",";\n"]);return b=function(){return n},n}function w(){var n=p(["\n display: flex;\n width: 100%;\n\n & > a {\n padding: ",";\n margin-top: ",";\n }\n"]);return w=function(){return n},n}function x(){var n=p(["\n & > span {\n margin-right: ",";\n font-weight: ",";\n\n &::before {\n content: '@';\n }\n }\n"]);return x=function(){return n},n}var E=s.ZP.div(d(),(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&&{paddingTop:n.theme.spacing.spacing02,paddingBottom:n.theme.spacing.spacing02}}),(function(n){return n.theme.spacing.spacing02}),f.B.desktop),S=s.ZP.div(m(),(function(n){return n.theme.spacing.spacing01})),k=s.ZP.span(h(),(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})),P=(0,s.iv)(v(),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),O=s.ZP.div(g(),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.hasSeparator&&P})),A=s.ZP.div(y()),j=s.ZP.div(b(),(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})),C=s.ZP.div(w(),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02})),Z=s.ZP.p(x(),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.theme.typography.body2Bold.weight})),I=t(33407),B=t(63742),z=t(29142),T=t(26793),R=t(83369),_=t(72303),M=t(35857);function U(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&r.createElement("span",{"data-testid":"value-rating"}," ","(".concat(J,")")))),r.createElement(z.rU,{role:"button",onClick:function(){h?tn(!en):v&&v("comment-".concat(b))}},w("".concat(b,".comment"))),r.createElement(z.rU,{role:"button",onClick:function(){return on()}},w("".concat(b,".report")))),r.createElement(R.Z,{nick:a.user.nick,openReply:en,closeReply:tn,handleAddReply:function(n){m({isComment:!0,commentValue:n.commentValue,replyCommentId:c?s:G,parentCommentId:G}),tn(!en)},translationKey:b}),F&&(null===F||void 0===F?void 0:F.length)>0&&r.createElement(C,null,r.createElement(z.rU,{onClick:function(){X(!Q)}},w("".concat(b,Q?".hide_responses":".show_more_responses")))),Q&&(null===F||void 0===F?void 0:F.map((function(n){return r.createElement(L,{badges:e,usersBadges:t,type:o,key:"nested-reply-".concat(n.idComment),parentNick:P,isNestedReply:!0,reportFunction:on,response:n,usefulFunction:function(n){return rn(n,!0)},parentCommentId:G,setCookieAndLogin:v,isUserLogged:h,handleAddReply:m,translationKey:b})}))))}},29142:(n,e,t)=>{t.d(e,{DY:()=>Z,E6:()=>z,EW:()=>I,Ed:()=>R,KN:()=>j,Vq:()=>T,X2:()=>A,fK:()=>M,h6:()=>C,im:()=>k,rU:()=>B,yU:()=>_});var r=t(71893),o=t(30305),i=t(46229);function a(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function u(){var n=a(["\n display: flex;\n flex-direction: column;\n\n "," {\n flex-direction: ",";\n }\n"]);return u=function(){return n},n}function c(){var n=a(["\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n"]);return c=function(){return n},n}function l(){var n=a(["\n border-right: ",";\n"]);return l=function(){return n},n}function s(){var n=a(["\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"]);return s=function(){return n},n}function f(){var n=a(["\n margin-right: 0.75rem;\n"]);return f=function(){return n},n}function p(){var n=a(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n font-size: ",";\n"]);return p=function(){return n},n}function d(){var n=a(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n letter-spacing: ",";\n color: ",";\n"]);return d=function(){return n},n}function m(){var n=a(["\n display: flex;\n width: 100%;\n\n "," {\n width: 50%;\n }\n"]);return m=function(){return n},n}function h(){var n=a(["\n width: fit-content;\n margin-right: ",";\n"]);return h=function(){return n},n}function v(){var n=a(["\n padding-left: ",";\n display: flex;\n gap: 5px;\n"]);return v=function(){return n},n}function g(){var n=a(["\n flex-direction: column;\n margin-top: 12px;\n "," {\n margin-top: 16px;\n }\n "," {\n flex: 1;\n margin-top: 16px;\n }\n"]);return g=function(){return n},n}function y(){var n=a(["\n text-decoration: none;\n padding: 0 1rem;\n"]);return y=function(){return n},n}function b(){var n=a(["\n min-height: 1rem;\n border: 1px solid ",";\n ",";\n\n "," {\n ","\n }\n"]);return b=function(){return n},n}function w(){var n=a(["\n "," {\n display: none;\n }\n"]);return w=function(){return n},n}function x(){var n=a(["\n display: none;\n\n "," {\n display: block;\n white-space: nowrap;\n }\n"]);return x=function(){return n},n}function E(){var n=a(["\n display: flex;\n width: 100%;\n margin-bottom: ",";\n\n & > a {\n padding: 0;\n }\n"]);return E=function(){return n},n}function S(){var n=a(["\n display: block;\n width: 100%;\n"]);return S=function(){return n},n}var k=r.ZP.div(u(),o.B.tabletPortrait,(function(n){return n.isMoreUseful?"column":"row"})),P=(0,r.iv)(c()),O=(0,r.iv)(l(),(function(n){return"1px solid ".concat(n.theme.colors.environment.percent20)})),A=r.ZP.div(s(),(function(n){return n.noWrap?"nowrap":"wrap"}),(function(n){return n.isColumn&&P}),(function(n){return n.hasSeparator&&O})),j=(r.ZP.div(f()),r.ZP.span(p(),(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})),r.ZP.div(d(),(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})),r.ZP.div(m(),o.B.desktop)),C=(0,r.ZP)(i.z)(h(),(function(n){return n.theme.spacing.spacing01})),Z=r.ZP.span(v(),(function(n){return n.theme.spacing.spacing005})),I=r.ZP.div(g(),o.B.tabletPortrait,o.B.desktop),B=r.ZP.a(y()),z=r.ZP.div(b(),(function(n){return n.theme.colors.environment.percent20}),(function(n){var e=n.theme.spacing;return n.margin&&"margin: 0 ".concat(e.spacing01,";")}),o.B.desktop,(function(n){return n.hiddenDesktop&&"display: none;"})),T=r.ZP.span(w(),o.B.tabletPortrait),R=r.ZP.span(x(),o.B.tabletPortrait),_=r.ZP.div(E(),(function(n){return n.theme.spacing.spacing01})),M=r.ZP.div(S())},72303:(n,e,t)=>{var r;t.d(e,{$:()=>r}),function(n){n[n.QUESTIONS=0]="QUESTIONS",n[n.VALORATIONS=1]="VALORATIONS"}(r||(r={}))},90061:(n,e,t)=>{t.d(e,{Z:()=>s});var r=t(67294),o=t(71893);function i(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function a(){var n=i(["\n overflow: hidden;\n width: ","px;\n height: ","px;\n border: 1px #f2f2f2 solid;\n position: relative;\n"]);return a=function(){return n},n}function u(){var n=i(["\n display: flex;\n justify-content: center;\n"]);return u=function(){return n},n}var c=o.ZP.div(a(),(function(n){var e=n.width;return e||64}),(function(n){var e=n.height;return e||64})),l=o.ZP.div(u());const s=function(n){var e=n.media,t=n.width,o=n.height,i=n.onClick;return r.createElement(c,{style:{minWidth:"".concat(t||o,"px")},width:t||o,height:o},r.createElement(l,{onClick:function(){return i&&i(e)}},r.createElement("img",{style:{objectFit:"cover"},height:"".concat(o,"px"),width:"".concat(t||o,"px"),src:e.url,alt:e.resourceId,loading:"lazy"})))}},10739:(n,e,t)=>{t.d(e,{Z:()=>W});var r=t(67294),o=t(26793),i=t(65739),a=t(71893),u=t(30305),c=t(46229),l=t(42347);function s(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function f(){var n=s(["\n width: 100%;\n height: 100%;\n & img {\n max-height: calc(100vh - 348px);\n "," {\n max-height: calc(100vh - 256px);\n }\n "," {\n max-height: calc(100vh - 256px);\n }\n }\n position: relative;\n overflow: hidden;\n"]);return f=function(){return n},n}function p(){var n=s(["\n width: 100%;\n display: flex;\n padding: 16px 0px;\n flex-direction: column;\n gap: ",";\n "," {\n flex-direction: row;\n justify-content: space-between;\n gap: 0;\n }\n "," {\n flex-direction: row;\n justify-content: space-between;\n gap: 0;\n }\n"]);return p=function(){return n},n}function d(){var n=s(["\n display: flex;\n gap: ",";\n flex-direction: column;\n align-items: center;\n "," {\n flex-direction: row;\n }\n "," {\n flex-direction: row;\n }\n"]);return d=function(){return n},n}function m(){var n=s(["\n margin-right: ",";\n justify-content: center;\n width: 100%;\n "," {\n width: fit-content;\n }\n "," {\n width: fit-content;\n }\n"]);return m=function(){return n},n}function h(){var n=s(["\n padding-left: ",";\n display: flex;\n gap: 5px;\n"]);return h=function(){return n},n}function v(){var n=s(["\n justify-content: center;\n"]);return v=function(){return n},n}function g(){var n=s(["\n position: absolute;\n left: ",";\n top: calc(50% - 20px);\n z-index: 1;\n &:hover {\n background-color: ",";\n border-color: rgb(204, 204, 204);\n }\n width: 24px;\n height: 24px;\n\n "," {\n width: 48px;\n height: 48px;\n }\n "," {\n width: 48px;\n height: 48px;\n }\n padding: 0;\n display: flex;\n justify-content: center;\n"]);return g=function(){return n},n}function y(){var n=s(["\n position: absolute;\n right: ",";\n top: calc(50% - 20px);\n z-index: 1;\n &:hover {\n background-color: ",";\n border-color: rgb(204, 204, 204);\n }\n width: 24px;\n height: 24px;\n\n "," {\n width: 48px;\n height: 48px;\n }\n "," {\n width: 48px;\n height: 48px;\n }\n padding: 0;\n display: flex;\n justify-content: center;\n"]);return y=function(){return n},n}var b=a.ZP.div(f(),u.B.tabletPortrait,u.B.desktop),w=a.ZP.div(p(),(function(n){return n.theme.spacing.spacing02}),u.B.tabletPortrait,u.B.desktop),x=a.ZP.div(d(),(function(n){return n.theme.spacing.spacing02}),u.B.tabletPortrait,u.B.desktop),E=(0,a.ZP)(c.z)(m(),(function(n){return n.theme.spacing.spacing01}),u.B.tabletPortrait,u.B.desktop),S=a.ZP.span(h(),(function(n){return n.theme.spacing.spacing005})),k=(0,a.ZP)(l.r)(v()),P=(0,a.ZP)(c.z)(g(),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.white}),u.B.tabletPortrait,u.B.desktop),O=(0,a.ZP)(c.z)(y(),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.white}),u.B.tabletPortrait,u.B.desktop),A=t(22981),j=t(63742),C=t(28216),Z=t(57250),I=t(5205),B=t(16550);function z(){var n,e,t=(n=["\n position: relative;\n animation: ","\n 0.5s ease 0s 1 normal forwards;\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n @keyframes fadeInRight {\n from {\n opacity: 0;\n right: -100%;\n }\n to {\n opacity: 1;\n right: 0%;\n }\n }\n @keyframes fadeInLeft {\n from {\n opacity: 0;\n left: -100%;\n }\n to {\n opacity: 1;\n left: 0%;\n }\n }\n"],e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}})));return z=function(){return t},t}var T=a.ZP.img(z(),(function(n){var e=n.direction;return"left"===e?"fadeInLeft":"right"===e?"fadeInRight":"fadeIn"}));const R=function(n){var e=n.id,t=n.url,o=n.direction;return r.createElement(T,{direction:o,key:e,style:{objectFit:"cover"},src:t,alt:e,width:"100%"})};function _(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1&&r.createElement(P,{secondary:!0,onClick:function(){return V("left"),void H((function(n){return 0===n?t.length-1:n-1}))},small:!W&&!G},r.createElement(j.J,{icon:"chevron_left"})),r.createElement(R,{url:F.url,id:F.resourceId,direction:D}),t.length>1&&r.createElement(O,{secondary:!0,onClick:function(){return V("right"),void H((function(n){return n===t.length-1?0:n+1}))},small:!W&&!G},r.createElement(j.J,{icon:"chevron_right"}))),s&&r.createElement(w,null,r.createElement(k,{onClick:J,decorated:!0},d("valoration_media.denounce")),r.createElement(x,null,r.createElement(E,{disabled:g,secondary:!0,onClick:q},r.createElement(j.J,{key:"vote_thumbs_up",icon:"vote_thumbs_up",small:!0}),r.createElement(S,{likes:c},r.createElement("span",null,d("valoration_media.useful_vote")),c>0&&r.createElement("span",null," ","(".concat(c,")")))),(l||void 0===l)&&r.createElement(E,{onClick:function(){return window.location.href="?valoration=".concat(a)}},d("valoration_media.view_opinion")))))};function H(){var n,e,t=(n=["\n & > div > div {\n width: fit-content;\n }\n"],e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}})));return H=function(){return t},t}var Y=a.ZP.div(H());function D(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&r.createElement(L,{medias:a,defaultMediaIndex:u||0,idComment:e,amountYes:t,handleClose:function(){return p()},setToasts:d,showGoTo:l,showButtons:f})))}},71873:(n,e,t)=>{t.d(e,{Z:()=>S});var r=t(71893);function o(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function i(){var n=o(["\n overflow: hidden;\n width: ","px;\n height: ","px;\n border: 1px #f2f2f2 solid;\n position: relative;\n"]);return i=function(){return n},n}function a(){var n=o(["\n display: flex;\n justify-content: center;\n"]);return a=function(){return n},n}function u(){var n=o(["\n display: flex;\n overflow-y: ",";\n gap: ",";\n flex-wrap: ",";\n height: ",";\n"]);return u=function(){return n},n}function c(){var n=o(["\n margin-top: ",";\n"]);return c=function(){return n},n}r.ZP.div(i(),(function(n){var e=n.width;return e||64}),(function(n){var e=n.height;return e||64})),r.ZP.div(a());var l=r.ZP.div(u(),(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"})),s=r.ZP.div(c(),(function(n){return n.theme.spacing.spacing01})),f=t(67294);function p(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1&&void 0!==arguments[1]&&arguments[1],r=h((0,f.useState)(!1),2),o=r[0],i=r[1];return(0,f.useEffect)((function(){if(n.current){var r=n.current,o=function(){var n=r.clientWidth,t=r.scrollWidth,o=r.clientHeight,a=r.scrollHeight,u=r.offsetTop,c=r.children,l=e?a>o:t>n,s=c.length>0?c[c.length-1].offsetTop:u;i(l||u!==s)};o(),m((function(){var n,e;return v(this,(function(i){switch(i.label){case 0:if("ResizeObserver"in self)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t.e(1033).then(t.bind(t,91033))];case 2:return n=i.sent(),window.ResizeObserver=n.default,[3,4];case 3:return i.sent(),[3,4];case 4:return(e=new ResizeObserver(o)).observe(r),[2,function(){e.disconnect()}]}}))}))().catch((function(){}))}}),[n,e]),o}(T,!0),_=(0,y.Z)(),M=_.toastToShow,U=_.setToasts;return(0,f.useEffect)((function(){Z(!1)}),[R]),f.createElement(f.Fragment,null,f.createElement(l,{ref:T,overflow:!p||C?1:0,height:!p||C?"auto":"".concat(A,"px")},u.filter((function(n){return 1===n.type})).map((function(n){return f.createElement(b.Z,{key:n.idMedia,media:n,width:O,height:A,onClick:function(n){return z(n)}})}))),p&&R&&f.createElement(s,{onClick:function(){Z((function(n){return!n}))}},k(C?"valoration_media.view_less":"valoration_media.view_more")),M,f.createElement(w.Z,{idComment:o||(null===B||void 0===B||null===(e=B.owner)||void 0===e?void 0:e.id)||0,amountYes:i||(null===B||void 0===B||null===(r=B.owner)||void 0===r?void 0:r.yes)||0,medias:u,defaultMediaIndex:null===u||void 0===u?void 0:u.findIndex((function(n){return n.resourceId===(null===B||void 0===B?void 0:B.resourceId)})),visible:!!B,onClose:function(){return z(void 0)},setToasts:U,showGoTo:x,showButtons:S}))}},43018:(n,e,t)=>{t.d(e,{Z:()=>l});var r=t(67294),o=t(99426);function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t