(()=>{"use strict";const e=window.wp.blocks,t=window.ReactJSXRuntime,o=window.wc.wcSettings,r=(0,o.getSetting)("wcBlocksConfig",{pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),s=r.pluginUrl+"assets/images/",c=(r.pluginUrl,o.STORE_PAGES.shop,o.STORE_PAGES.checkout,o.STORE_PAGES.checkout,o.STORE_PAGES.privacy,o.STORE_PAGES.privacy,o.STORE_PAGES.terms,o.STORE_PAGES.terms,o.STORE_PAGES.cart,o.STORE_PAGES.cart,o.STORE_PAGES.myaccount?.permalink?o.STORE_PAGES.myaccount.permalink:(0,o.getSetting)("wpLoginUrl","/wp-login.php"),(0,o.getSetting)("localPickupEnabled",!1),(0,o.getSetting)("shippingMethodsExist",!1),(0,o.getSetting)("shippingEnabled",!0),(0,o.getSetting)("countries",{})),a=(0,o.getSetting)("countryData",{}),l={...Object.fromEntries(Object.keys(a).filter((e=>!0===a[e].allowBilling)).map((e=>[e,c[e]||""]))),...Object.fromEntries(Object.keys(a).filter((e=>!0===a[e].allowShipping)).map((e=>[e,c[e]||""])))},i=(Object.fromEntries(Object.keys(l).map((e=>[e,a[e].states||{}]))),Object.fromEntries(Object.keys(l).map((e=>[e,a[e].locale||{}]))),{address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]}),n=((0,o.getSetting)("addressFieldsLocations",i).address,(0,o.getSetting)("addressFieldsLocations",i).contact,(0,o.getSetting)("addressFieldsLocations",i).order,(0,o.getSetting)("additionalOrderFields",{}),(0,o.getSetting)("additionalContactFields",{}),(0,o.getSetting)("additionalAddressFields",{}),window.wp.blockEditor),g=window.wc.wcBlocksSharedContext,d=JSON.parse('{"name":"woocommerce/product-gallery-large-image-next-previous"}'),p=({image:e})=>{const o=`${s}block-placeholders/product-image-gallery.svg`,r=e.src||o,c=e.alt||"";return(0,t.jsx)("div",{className:"wc-block-product-gallery-large-image wc-block-editor-product-gallery-large-image",children:(0,t.jsx)("img",{src:r,alt:c,loading:"lazy"})})},m=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-gallery-large-image","title":"Large Image","description":"Display the Large Image of a product.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["postId","hoverZoom","fullScreenOnClick","cropImages"],"supports":{"interactivity":true},"textdomain":"woocommerce","ancestor":["woocommerce/product-gallery"],"viewScriptModule":"woocommerce/product-gallery-large-image"}');(0,e.registerBlockType)(m,{icon:()=>(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.22448 1.5L1.5 6.81504V11.7072L5.12953 9.06066C5.38061 8.87758 5.71858 8.86829 5.97934 9.0373L8.90601 10.9342L12.4772 7.46225C12.7683 7.17925 13.2317 7.17925 13.5228 7.46225L16.5 10.3568V2C16.5 1.72386 16.2761 1.5 16 1.5H6.22448ZM1.5 13.5636V16C1.5 16.2761 1.72386 16.5 2 16.5H16C16.2761 16.5 16.5 16.2761 16.5 16V12.4032L16.4772 12.4266L13 9.04603L9.52279 12.4266C9.27191 12.6706 8.88569 12.7086 8.59206 12.5183L5.59643 10.5766L1.5 13.5636ZM0 2C0 0.89543 0.895431 0 2 0H16C17.1046 0 18 0.895431 18 2V16C18 17.1046 17.1046 18 16 18H2C0.89543 18 0 17.1046 0 16V2Z",fill:"currentColor"})}),edit:()=>{const e=(0,g.useProductDataContext)(),o=e?.product?.images?.[0],r={src:o?.src||"",alt:o?.alt||""},s=(0,n.useInnerBlocksProps)({className:"wc-block-product-gallery-large-image__inner-blocks"},{template:[[d.name]],templateInsertUpdatesSelection:!0}),c=(0,n.useBlockProps)({className:"wc-block-product-gallery-large-image wc-block-editor-product-gallery-large-image"});return(0,t.jsxs)("div",{...c,children:[(0,t.jsx)(p,{image:r}),(0,t.jsx)("div",{...s})]})},save:()=>{const e=n.useBlockProps.save({className:"wc-block-product-gallery-large-image__inner-blocks"}),o=n.useInnerBlocksProps.save(e);return(0,t.jsx)("div",{...o})}}),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-gallery-large-image"]={}})();