import{b as t,j as o}from"./chunks/BlockEditorTranslator.js?ver=1.5.0";import"./chunks/EditorPanel.js?ver=1.5.0";import"./chunks/ColorPickerField.js?ver=1.5.0";import{d as i}from"./chunks/Icons.js?ver=1.5.0";const{RichText:b}=wp.blockEditor,{RichText:f}=wp.blockEditor,{RichText:w}=wp.blockEditor,{Button:C}=wp.components,{useState:x,useEffect:T}=wp.element,{TextControl:E}=wp.components,{useState:g,useEffect:$}=wp.element,{RichText:B}=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:S}=wp.components,{RichText:I}=wp.blockEditor,{Notice:L}=wp.components,{RichText:_}=wp.blockEditor,{CheckboxControl:A,Tooltip:D}=wp.components,a=""+new URL("assets/Checkout.png",import.meta.url).href,{InspectorControls:H,useBlockProps:r,InnerBlocks:l}=wp.blockEditor,{registerBlockType:u}=wp.blocks,{Button:U,CheckboxControl:z}=wp.components,e=window.fluent_cart_checkout_data,p=[["core/columns",{},[["core/column",{width:65},[["fluent-cart/checkout-name-fields",{lock:{remove:!0,move:!1}}],["fluent-cart/checkout-address-fields"],["fluent-cart/checkout-agree-terms-field",{style:{typography:{fontSize:"14px"}}}],["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-notes-field"],["fluent-cart/checkout-order-bump"]]]]]];u(e.slug+"/"+e.name,{apiVersion:3,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:i},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:p,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,{})})})}});
