"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[11969],{69729:(n,t,e)=>{e.d(t,{UU:()=>i,jB:()=>o,qG:()=>c});var i;e(92222);!function(n){n.SCALING="s",n.WHITE="w"}(i||(i={}));var r="static/no-image.jpg",o=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.SCALING,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;return"//thumb.pccomponentes.com/".concat(t,"-").concat(e,"-").concat(o,"/").concat(n)},c=function(n){var t=n.host,e=n.path,i=n.resource,r=n.fixedProtocol,o=i?"".concat(e,"/").concat(i):e,c=r?"".concat(r,"://"):"//";return"".concat(c).concat(t,"/thumbnail/").concat(o)}},30505:(n,t,e)=>{e.d(t,{Z:()=>f});var i,r,o=e(30168),c=e(71893),a=c.ZP.div(i||(i=(0,o.Z)(["\n overflow: hidden;\n width: ","px;\n height: ","px;\n border: 1px #f2f2f2 solid;\n position: relative;\n"])),(function(n){var t=n.width;return t||64}),(function(n){var t=n.height;return t||64})),s=c.ZP.div(r||(r=(0,o.Z)(["\n display: flex;\n justify-content: center;\n cursor: pointer;\n"]))),l=e(4942),d=(e(66992),e(41539),e(78783),e(33948),e(60285),e(74916),e(15306),e(47941),e(82526),e(57327),e(38880),e(89554),e(54747),e(49337),e(33321),e(69070),e(69729));function u(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,i)}return e}var h=function(n,t){try{var e=new URL(n),i=e.pathname.replace("/".concat(t),""),r=""===i,o=function(n){for(var t=1;t{e.d(t,{Z:()=>Y});var i,r,o,c,a,s,l,d,u,h=e(29439),p=e(28225),f=e(65739),g=e(15861),x=e(64687),v=e.n(x),m=(e(74916),e(15306),e(64765),e(92222),e(69600),e(67294)),b=e(30168),w=e(71893),j=e(30305),y=e(46229),Z=e(42347),k=w.ZP.div(i||(i=(0,b.Z)(["\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"])),j.B.tabletPortrait,j.B.desktop),P=w.ZP.div(r||(r=(0,b.Z)(["\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"])),(function(n){return n.theme.spacing.spacing02}),j.B.tabletPortrait,j.B.desktop),_=w.ZP.div(o||(o=(0,b.Z)(["\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"])),(function(n){return n.theme.spacing.spacing02}),j.B.tabletPortrait,j.B.desktop),O=(0,w.ZP)(y.z)(c||(c=(0,b.Z)(["\n margin-right: ",";\n justify-content: center;\n width: 100%;\n "," {\n width: fit-content;\n }\n "," {\n width: fit-content;\n }\n"])),(function(n){return n.theme.spacing.spacing01}),j.B.tabletPortrait,j.B.desktop),B=w.ZP.span(a||(a=(0,b.Z)(["\n padding-left: ",";\n display: flex;\n gap: 5px;\n"])),(function(n){return n.theme.spacing.spacing005})),C=(0,w.ZP)(Z.r)(s||(s=(0,b.Z)(["\n justify-content: center;\n"]))),I=(0,w.ZP)(y.z)(l||(l=(0,b.Z)(["\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"])),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.white}),j.B.tabletPortrait,j.B.desktop),E=(0,w.ZP)(y.z)(d||(d=(0,b.Z)(["\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"])),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.white}),j.B.tabletPortrait,j.B.desktop),S=e(22981),G=e(63742),L=e(86706),D=e(4897),A=e(89250),R=e(12599),T=w.ZP.img(u||(u=(0,b.Z)(["\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"])),(function(n){var t=n.direction;return"left"===t?"fadeInLeft":"right"===t?"fadeInRight":"fadeIn"})),z=e(85893);const N=function(n){var t=n.id,e=n.url,i=n.direction;return(0,z.jsx)(T,{direction:i,style:{objectFit:"cover"},src:e,alt:t,width:"100%"},t)};var U=e(75826),F=e(44185),J=e(12922);const H=function(n){var t=n.slug,e=n.medias,i=n.defaultMediaIndex,r=n.idComment,o=n.amountYes,c=n.showGoTo,a=n.showButtons,s=n.handleClose,l=n.setToasts,d=(0,p.$G)(),u=(0,h.Z)(d,1)[0],f=(0,L.v9)(D.np),x=(0,A.s0)(),b=(0,L.v9)(U.lE),w=F.G6[b],y=(0,L.v9)(U.Fc),Z=(0,m.useState)(!1),T=(0,h.Z)(Z,2),H=T[0],K=T[1],M=(0,m.useState)(!1),Y=(0,h.Z)(M,2),q=Y[0],W=Y[1],$=(0,m.useState)(i),Q=(0,h.Z)($,2),V=Q[0],X=Q[1],nn=(0,m.useState)(""),tn=(0,h.Z)(nn,2),en=tn[0],rn=tn[1],on=(0,S.EB)(j.B.desktop),cn=(0,S.EB)(j.B.tabletPortrait),an=e[V],sn=function(n,t){var e=[];e.push(location.search.replace("?","")),document.cookie="redirectReferrer=".concat(location.pathname,"?").concat(e.join("&"),"; expires=0; path=/;"),sessionStorage.setItem(n,JSON.stringify({idComment:t,sent:!1})),x("/login")},ln=function(){var n=(0,g.Z)(v().mark((function n(){var t;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!q){n.next=2;break}return n.abrupt("return");case 2:if(!f.email){n.next=12;break}return W(!0),n.next=6,(0,J.Ov)({idComment:r,language:b,domainExtension:y});case 6:(t=n.sent)&&l(t),W(!1),s(),n.next=13;break;case 12:sn("report-usefull-valoration-feedback",r);case 13:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),dn=function(){var n=(0,g.Z)(v().mark((function n(){var t;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!H){n.next=2;break}return n.abrupt("return");case 2:if(!f.email){n.next=12;break}return K(!0),n.next=6,(0,J.K3)({idComment:r,language:b,domainExtension:y});case 6:(t=n.sent)&&l(t),K(!1),s(),n.next=13;break;case 12:sn("provide-usefull-valoration-feedback",r);case 13:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(k,{children:[e.length>1&&(0,z.jsx)(I,{secondary:!0,onClick:function(){return rn("left"),void X((function(n){return 0===n?e.length-1:n-1}))},small:!on&&!cn,children:(0,z.jsx)(G.J,{icon:"chevron_left"})}),(0,z.jsx)(N,{url:an.url,id:an.idResource,direction:en}),e.length>1&&(0,z.jsx)(E,{secondary:!0,onClick:function(){return rn("right"),void X((function(n){return n===e.length-1?0:n+1}))},small:!on&&!cn,children:(0,z.jsx)(G.J,{icon:"chevron_right"})})]}),a&&(0,z.jsxs)(P,{children:[(0,z.jsx)(C,{onClick:ln,decorated:!0,children:u("valoration_media.denounce")}),(0,z.jsxs)(_,{children:[(0,z.jsxs)(O,{disabled:H,secondary:!0,onClick:dn,children:[(0,z.jsx)(G.J,{icon:"vote_thumbs_up",small:!0},"vote_thumbs_up"),(0,z.jsxs)(B,{likes:o,children:[(0,z.jsx)("span",{children:u("valoration_media.useful_vote")}),o>0&&(0,z.jsxs)("span",{children:[" ","(".concat(o,")")]})]})]}),(c||void 0===c)&&(0,z.jsx)(O,{onClick:function(){return function(n){return window.location.href="".concat((0,R.Gn)(w,{product:t}),"?valoration=").concat(n)}(r)},children:u("valoration_media.view_opinion")})]})]})]})};var K,M=w.ZP.div(K||(K=(0,b.Z)(["\n & > div > div {\n width: fit-content;\n }\n"])));const Y=function(n){var t=n.slug,e=n.idComment,i=n.amountYes,r=n.medias,o=n.defaultMediaIndex,c=n.visible,a=n.showGoTo,s=n.showButtons,l=void 0===s||s,d=n.onClose,u=n.setToasts,g=(0,p.$G)(),x=(0,h.Z)(g,1)[0];return(0,z.jsx)(M,{children:(0,z.jsx)(f.u,{featured:!0,closable:!0,onCancel:function(){return d()},title:x("valoration_media.modal_title"),visible:c,children:r&&r.length>0&&(0,z.jsx)(H,{slug:t,medias:r,defaultMediaIndex:o||0,idComment:e,amountYes:i,handleClose:d,setToasts:u,showGoTo:a,showButtons:l})})})}}}]); //# sourceMappingURL=11969.js.map