(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6376],{6905:function(e,t,n){Promise.resolve().then(n.bind(n,3703)),Promise.resolve().then(n.t.bind(n,413,23)),Promise.resolve().then(n.t.bind(n,8326,23))},6232:function(e,t,n){"use strict";n.d(t,{Z:function(){return Image}});var r=n(7437),a=n(6691),i=n.n(a);function Image(e){let{className:t,...n}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i(),{...n})})}},3703:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ImageGallery}});var r=n(7437),a=n(2265),i=n(6232);function ImageGallery(e){let{imageOfGallery:t,translations:n}=e,[l,o]=(0,a.useState)(0),s=n.item.Codice,u=t.paths,c=t.imgWidth,handleImageChange=e=>{e>=0&&e{let{imagePath:t,width:n,index:a}=e;return(0,r.jsx)("button",{className:"imgContainer padding-small padding-small-hz inline is-narrow border-radius margin-small-hz",onClick:()=>handleImageChange(a),"aria-label":"Show picture ".concat(a+1," of item ").concat(s),type:"button",children:(0,r.jsx)(i.Z,{alt:"Thumbnail ".concat(a+1," of item ").concat(s),width:n,height:50,src:t})})};return u&&0!==u.length?(0,r.jsxs)("div",{className:"image-gallery",children:[(0,r.jsx)("div",{className:"mainImageGallery margin-medium",children:(0,r.jsx)(e=>{let{imagePath:t,width:n,index:a}=e;return(0,r.jsx)("div",{className:"imgContainer margin-auto-hz",children:(0,r.jsx)(i.Z,{alt:"Main picture of item ".concat(s),width:6.5*n,height:300,src:t})})},{imagePath:u[l],width:c[l],index:l})}),u.length>1&&(0,r.jsxs)("div",{className:"imageGallery is-mobile",role:"tablist",children:[u.map((e,t)=>(0,r.jsx)(ThumbnailImage,{imagePath:e,width:c[t],index:t},"thumbnail-".concat(t))),(0,r.jsx)("div",{className:"column lastColumn"})]})]}):null}},679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return s}});let r=n(1024),a=n(7929),i=n(2637),l=n(413),o=r._(n(9950)),unstable_getImgProps=e=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},s=l.Image},622:function(e,t,n){"use strict";/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(2265),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function q(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:o.current}}t.Fragment=i,t.jsx=q,t.jsxs=q},7437:function(e,t,n){"use strict";e.exports=n(622)},6691:function(e,t,n){e.exports=n(679)}},function(e){e.O(0,[9375,2971,2472,1744],function(){return e(e.s=6905)}),_N_E=e.O()}]);