(()=>{"use strict";const e=window.wp.blocks,t=JSON.parse('{"name":"woocommerce/checkout"}'),c=window.React,o=window.wp.primitives,r=(0,c.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none"},(0,c.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M5 3.75h14c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,c.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.4 10.75c0-.47.38-.85.85-.85h9.5c.47 0 .85.38.85.85v1.5c0 .47-.38.85-.85.85h-9.5a.85.85 0 01-.85-.85v-1.5zm1.2.35v.8h8.8v-.8H7.6zM12.4 15.25c0-.47.38-.85.85-.85h3.5c.47 0 .85.38.85.85v1.5c0 .47-.38.85-.85.85h-3.5a.85.85 0 01-.85-.85v-1.5zm1.2.35v.8h2.8v-.8h-2.8zM6.5 15.9a.6.6 0 01.6-.6h2.8a.6.6 0 010 1.2H7.1a.6.6 0 01-.6-.6zM6.5 7.9a.6.6 0 01.6-.6h9.8a.6.6 0 110 1.2H7.1a.6.6 0 01-.6-.6z",clipRule:"evenodd"})),l=window.wp.i18n,i=window.wp.blockEditor,{name:a}=t;(0,e.registerBlockType)(a,{icon:r,edit:e=>{const t=(0,i.useBlockProps)();return(0,c.createElement)("div",{...t},(0,c.createElement)("div",{class:"components-placeholder wp-block-woocommerce-classic-shortcode__placeholder is-large"},(0,c.createElement)("div",{class:"components-placeholder__label"}),(0,c.createElement)("div",{class:"components-placeholder__fieldset"},(0,c.createElement)("div",{class:"wp-block-woocommerce-classic-shortcode__placeholder-wireframe"},(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 892 726","aria-hidden":"true",focusable:"false"},(0,c.createElement)("g",{fill:"currentColor",transform:"translate(-1)"},(0,c.createElement)("rect",{width:"203",height:"38",x:"1",rx:"2"}),(0,c.createElement)("rect",{width:"434",height:"38",x:"1",y:"62",rx:"2"}),(0,c.createElement)("rect",{width:"434",height:"38",y:"124",rx:"2"}),(0,c.createElement)("rect",{width:"434",height:"38",x:"1",y:"186",rx:"2"}),(0,c.createElement)("rect",{width:"434",height:"38",x:"2",y:"248",rx:"2"}),(0,c.createElement)("rect",{width:"434",height:"38",x:"3",y:"310",rx:"2"}),(0,c.createElement)("rect",{width:"434",height:"38",x:"3",y:"372",rx:"2"}),(0,c.createElement)("rect",{width:"892",height:"204",x:"2",y:"434",rx:"2"}),(0,c.createElement)("rect",{width:"203",height:"38",x:"231",rx:"2"}),(0,c.createElement)("rect",{width:"203",height:"38",x:"514",rx:"2"}),(0,c.createElement)("rect",{width:"427",height:"100",x:"466",y:"62",rx:"2"}),(0,c.createElement)("rect",{width:"304",height:"64",x:"588",y:"662",rx:"2"}),(0,c.createElement)("rect",{width:"38",height:"38",x:"466",rx:"2"}),(0,c.createElement)("rect",{width:"203",height:"38",x:"48",y:"662",rx:"2"}),(0,c.createElement)("rect",{width:"38",height:"38",y:"662",rx:"2"})))),(0,c.createElement)("div",{class:"wp-block-woocommerce-classic-shortcode__placeholder-copy",style:{opacity:1}},(0,c.createElement)("div",{class:"wp-block-woocommerce-classic-shortcode__placeholder-copy__icon-container"},(0,l.__)("Fluid Checkout","fluid-checkout"),(0,c.createElement)("span",null,(0,l.__)("Checkout Block","fluid-checkout"))),(0,c.createElement)("p",null,(0,l.__)("This block replaces the original WooCommerce Checkout block and will render the classic checkout shortcode, which is required for Fluid Checkout to work. If Fluid Checkout is deactivated, this block will fall back to render the original WooCommerce Checkout block.","fluid-checkout")),(0,c.createElement)("div",{class:"wp-block-woocommerce-classic-shortcode__placeholder-migration-button-container"},(0,c.createElement)("a",{href:"https://fluidcheckout.com/docs/getting-started-fluid-checkout/#shortcode-vs-blocks",target:"_blank",tabindex:"0",class:"components-button is-secondary"},(0,l.__)("Read the documentation.","fluid-checkout")))))))},save:()=>(0,c.createElement)("div",{class:"wp-block-woocommerce-checkout is-loading"})})})();