import{b as t,j as o}from"./BlockEditorTranslator-Do4trUgb.js";import"./EditorPanel-CY23VFza.js";import"./ColorPickerField-qf6qS4oo.js";import{d as u}from"./Icons-DvCYCYqp.js";const{RichText:f}=wp.blockEditor,{RichText:b}=wp.blockEditor,{RichText:w}=wp.blockEditor,{Button:x}=wp.components,{useState:C,useEffect:T}=wp.element,{TextControl:g}=wp.components,{useState:E,useEffect:B}=wp.element,{RichText:$}=wp.blockEditor;t("Primary Color"),t("Title Color"),t("Subtitle Color"),t("Text Color"),t("Border Color"),t("Divider Color"),t("Input Placeholder Color"),t("Header BG"),t("Header Title Color");const{InspectorControls:R}=wp.blockEditor,{TextControl:v,ToggleControl:y,Tooltip:P,Button:j,SelectControl:N}=wp.components,{Notice:I}=wp.components,{RichText:S}=wp.blockEditor,{Notice:L}=wp.components,{RichText:_}=wp.blockEditor,{CheckboxControl:A,Tooltip:D}=wp.components,a=""+new URL("assets/Checkout-Bp90f1lm.png",import.meta.url).href,{InspectorControls:H,useBlockProps:r,InnerBlocks:l}=wp.blockEditor,{registerBlockType:i}=wp.blocks,{Button:U,CheckboxControl:F}=wp.components,e=window.fluent_cart_checkout_data,h=[["core/columns",{},[["core/column",{width:65},[["fluent-cart/checkout-name-fields",{lock:{remove:!0,move:!1}}],["fluent-cart/checkout-create-account-field"],["fluent-cart/checkout-address-fields"],["fluent-cart/checkout-agree-terms-field"],["fluent-cart/checkout-shipping-methods"],["fluent-cart/checkout-payment-methods"],["fluent-cart/checkout-submit-button"]]],["core/column",{width:35},[["fluent-cart/checkout-summary",{},[["fluent-cart/checkout-order-summary"],["fluent-cart/checkout-summary-footer",{},[["fluent-cart/checkout-subtotal"],["fluent-cart/checkout-shipping"],["fluent-cart/checkout-coupon"],["fluent-cart/checkout-manual-discount"],["fluent-cart/checkout-tax"],["fluent-cart/checkout-shipping-tax"],["fluent-cart/checkout-total"]]]]],["fluent-cart/checkout-order-notes-field"],["fluent-cart/checkout-order-bump"]]]]]];i(e.slug+"/"+e.name,{apiVersion:2,title:e.title,description:e.description,example:{attributes:{},innerBlocks:[{name:"core/image",attributes:{url:a,alt:"Checkout Block Preview",style:{width:"100%",height:"auto"}}}]},icon:{src:u},category:"fluent-cart",attributes:{},edit:function({attributes:n,setAttributes:c}){const s=r({className:"fluent-cart-checkout-block-editor-wrap"});return o.jsx("div",{...s,children:o.jsx(l,{templateLock:!1,template:h,allowedBlocks:["core/heading","core/columns","core/paragraph"]})})},save:function(n){const c=r.save({className:"fluent-cart-checkout-block-editor-wrap"});return o.jsx("div",{...c,children:o.jsx("div",{className:"fluent-cart-checkout-block-editor-inner",children:o.jsx(l.Content,{})})})}});
