"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["ProductModal-public"],{HkFu:function(t,e,o){o.r(e);var n=o("8fid"),i=o("LpH3"),s=o("a6K/"),a=o("FG1g"),p=o("U039"),r=o("pNXL"),l=o.n(r),d=o("Qu7M");function c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function u(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?c(Object(o),!0).forEach((function(e){(0,n.Z)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function m(){var t=(0,a.V)(),e=(0,i.iv)("position:absolute;top:",shopwp.misc.isAdmin?"-32px":"-18px",";width:",shopwp.misc.isAdmin?"25px":"70px",";height:",shopwp.misc.isAdmin?"25px":"70px",";padding:15px;right:",shopwp.misc.isAdmin?"-54px":"-70px",";z-index:99999999;opacity:1;transition:opacity 0.2s ease;&:hover{cursor:pointer;opacity:0.7;}path{fill:white;};label:ProductModalCloseIconCSS;");return(0,i.tZ)("svg",{focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",css:e,onClick:function(){t({type:"TOGGLE_MODAL",payload:!1})}},(0,i.tZ)("path",{fill:"currentColor",d:"M193.94 256L296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31L193.94 256z"}))}shopwp.misc.isAdmin&&l().setAppElement("#editor");var h={name:"uxtuxv-ProductModalContentInnerCSS",styles:"overflow:scroll;height:100%;label:ProductModalContentInnerCSS;"},w={name:"1qwq28t-ProductModalCSS",styles:"height:100%;label:ProductModalCSS;"};function g(t){var e=t.payload,o=t.settings,n=t.id,a=w,p=h;return(0,i.tZ)("div",{className:"wps-modal","aria-label":"Product Modal",css:a},(0,i.tZ)(m,null),(0,i.tZ)("div",{className:"wps-modal-inner",css:p},(0,i.tZ)(s.Z,{settings:o,payload:[e],isModal:!0,id:n,isLoading:!1})))}e.default=wp.element.memo((function(t){var e=t.payload,o=(0,a.C)(),n=(0,a.V)(),s=(0,d.Q)(),r=(0,p.rV)(s.settings,function(t,e){return wp.hooks.applyFilters("product.modalSettings",u(u({},t),{},{payload:e,titleTypeFontSize:"32px",linkTo:"none",htmlTemplateData:'\n      <div class="wps-modal-row" style="display: flex;">\n         <div style="width: 50%;padding: 0px 2em 0px 1em;">\n            <ProductImages />\n         </div>\n         <div style="width: 50%;padding-right: 1em;">\n            <Reviews settings={{\n              showCreateNew: false,\n              showRating: true,\n              showListing: false,\n              productId: payload.id\n            }} />\n            <ProductTitle />\n            <ProductPricing />\n            <ProductDescription />\n            <ProductBuyButton />\n         </div>\n      </div>\n   ',fullWidth:!0,showFeaturedOnly:!1,showZoom:!0,isModal:!0}))}(s.settings,e)),c={overlay:{background:"rgb(138 138 138 / 70%)"},content:{maxWidth:shopwp.misc.isAdmin?"80%":"1100px",width:"960px",margin:"0 auto",borderRadius:"10px",border:"1px solid #b6b6b6",padding:"30px",background:"#fff",height:"80vh",opacity:"1",zIndex:"99999",left:"50%",overflow:"visible",boxShadow:"0 7px 14px 0 rgba(60,66,87,.08), 0 3px 6px 0 rgba(0,0,0,.12)",top:shopwp.misc.isAdmin?"50%":"40px",transform:shopwp.misc.isAdmin?"translate(-50%, -50%)":"translate(-50%, 40px)",transition:"all 0.2s ease"}};return(0,i.tZ)(l(),{closeTimeoutMS:50,isOpen:o.isModalOpen,onRequestClose:function(){n({type:"TOGGLE_MODAL",payload:!1})},contentLabel:"Example Modal",style:c,bodyOpenClassName:"wps-modal-open",appElement:s.element},(0,i.tZ)(g,{payload:e,settings:r,id:o.id}))}))}}]);