| @@ -1 +1 @@ | ||
| 1 | -import{b as r}from"./chunks/BlockEditorTranslator.js?ver=1.6.4";import{j as e}from"./chunks/jsx-runtime.js?ver=1.6.4";const{useBlockProps:u}=wp.blockEditor,p={edit:t=>{const s=u({className:"fc-checkout-name-fields-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Name")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Email")}),e.jsxs("label",{htmlFor:"allow_create_account",children:[e.jsx("input",{type:"checkbox",name:"allow_create_account",readOnly:!0,disabled:!0}),e.jsx("span",{children:r("Create an Account?")})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},h={edit:()=>null,save:()=>null,category:"fluent-cart"},{useBlockProps:i,InnerBlocks:n}=wp.blockEditor,m=[["fluent-cart/checkout-billing-address-field"],["fluent-cart/checkout-ship-to-different-field",{style:{typography:{fontSize:"14px"}}}],["fluent-cart/checkout-shipping-address-field"]],f={edit:t=>{const s=i({className:"fc-checkout-address-fields-block"});return e.jsx("div",{...t,...s,children:e.jsx(n,{template:m,templateLock:!1,allowedBlocks:["core/heading","core/paragraph","fluent-cart/checkout-billing-address-field","fluent-cart/checkout-shipping-address-field","fluent-cart/checkout-ship-to-different-field"]})})},save:t=>{const s=i.save({className:"fct_checkout_address_fields"});return e.jsx("div",{...s,children:e.jsx(n.Content,{})})},supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:x}=wp.blockEditor,g={edit:t=>{const s=x({className:"fc-checkout-shipping-methods-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("div",{className:"fc-checkout-section-title",children:r("Shipping Methods")}),e.jsxs("div",{className:"fc-checkout-shipping-methods-list",children:[e.jsxs("div",{className:"fc-checkout-shipping-methods-list-item",children:[e.jsx("input",{type:"radio",name:"shipping_method",checked:!0,disabled:!0,value:"flat_rate"}),e.jsx("label",{children:r("Flat Rate")}),e.jsx("span",{className:"fc-checkout-shipping-methods-list-item-price",children:"$10.00"})]}),e.jsxs("div",{className:"fc-checkout-shipping-methods-list-item",children:[e.jsx("input",{type:"radio",name:"shipping_method",disabled:!0,value:"free_shipping"}),e.jsx("label",{children:r("Free Shipping")}),e.jsx("span",{className:"fc-checkout-shipping-methods-list-item-price",children:r("Free")})]})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:k}=wp.blockEditor,{Notice:_}=wp.components,b={edit:t=>{const s=k({className:"fc-checkout-payment-methods-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("div",{className:"fc-checkout-section-title",children:r("Payment")}),e.jsx("div",{className:"fc-checkout-payment-methods-list",children:e.jsx(_,{status:"warning",isDismissible:!1,children:e.jsx("div",{children:r("Please preview your form on the front-end to view payment methods.")})})})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:j,RichText:y}=wp.blockEditor,v={attributes:{terms_title:{type:"string",default:r("I agree to the terms and conditions.")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=j({className:"fc-checkout-agree-terms-block"});return e.jsx("div",{...t,...c,children:e.jsxs("label",{htmlFor:"terms_and_conditions",children:[e.jsx("input",{type:"checkbox",name:"terms_and_conditions",readOnly:!0,disabled:!0}),e.jsx(y,{tagName:"span",value:s.terms_title,onChange:o=>l({terms_title:o}),placeholder:r("I agree to the terms and conditions."),allowedFormats:["core/bold","core/italic"]})]})})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:N}=wp.blockEditor,B={edit:t=>{const s=N({className:"fc-checkout-submit-button-block fct_place_order_btn_wrap fc-checkout-place-order-btn large",type:"submit","data-loading":""});return e.jsx("button",{...t,...s,children:r("Place Order")})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:w,RichText:P}=wp.blockEditor,T={attributes:{title:{type:"string",default:r("Leave a Note")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=w({className:"fc-checkout-order-notes-block"});return e.jsx("div",{...t,...c,children:e.jsx("div",{className:"fct-toggle-field fct_order_note",id:"fct_wrapper_order_notes","data-fct-item-toggle":"",children:e.jsxs("label",{htmlFor:"order_notes","data-fct-item-toggle-control":"",className:"fct-toggle-control fct_order_note_toggle",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M15.6 12.0001L10.2 17.4001V6.6001L15.6 12.0001Z",fill:"currentColor"})}),e.jsx(P,{tagName:"span",value:s.title,onChange:o=>l({title:o}),placeholder:r("Leave a Note"),allowedFormats:["core/bold","core/italic"]})]})})})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},C=window.fluent_cart_checkout_data,{useBlockProps:d,InnerBlocks:S}=wp.blockEditor,{__:a}=wp.i18n,$={deprecated:[{save:()=>{const t=d.save({className:"fct_checkout_summary"});return e.jsx("div",{...t,children:e.jsx(S.Content,{})})}}],edit:()=>{const t=d({className:"fc-checkout-summary-block"});return e.jsx("div",{...t,children:e.jsxs("div",{className:"fct_checkout_summary",style:{position:"relative"},children:[e.jsx("span",{style:{position:"absolute",top:"8px",right:"8px",background:"#e0e0e0",color:"#555",fontSize:"11px",padding:"2px 8px",borderRadius:"3px",lineHeight:"1.4"},children:a("Preview","fluent-cart")}),e.jsx("div",{className:"fct_summary active",children:e.jsx("div",{className:"fct_summary_box",children:e.jsxs("div",{className:"fct_checkout_form_section",children:[e.jsxs("div",{className:"fct_form_section_header",children:[e.jsxs("div",{className:"fct_toggle_content",children:[e.jsx("h4",{children:a("Order summary","fluent-cart")}),e.jsx("div",{className:"fct_toggle_icon",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",children:e.jsx("path",{d:"M1 1L4.29289 4.29289C4.62623 4.62623 4.79289 4.79289 5 4.79289C5.20711 4.79289 5.37377 4.62623 5.70711 4.29289L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsx("div",{className:"fct_summary_toggle_total",children:e.jsx("span",{className:"value",children:"$0.00"})})]}),e.jsxs("div",{className:"fct_form_section_body",children:[e.jsx("div",{className:"fct_items_wrapper",children:e.jsx("div",{className:"fct_line_items",children:e.jsxs("div",{className:"fct_line_item fct_has_image",children:[e.jsxs("div",{className:"fct_line_item_info",children:[e.jsx("div",{className:"fct_item_image",children:e.jsx("img",{src:C.placeholder_image,alt:a("Product Image","fluent-cart")})}),e.jsx("div",{className:"fct_item_content",children:e.jsxs("div",{className:"fct_item_title",children:[a("Product Title","fluent-cart"),e.jsx("div",{className:"fct_item_variant_title",children:"– "+a("Variation Title","fluent-cart")})]})})]}),e.jsx("div",{className:"fct_line_item_price",children:e.jsx("span",{className:"fct_line_item_total",children:"$0.00"})})]})})}),e.jsx("div",{className:"fct_summary_items",children:e.jsxs("ul",{className:"fct_summary_items_list",children:[e.jsxs("li",{children:[e.jsx("span",{className:"fct_summary_label",children:a("Subtotal","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]}),e.jsxs("li",{children:[e.jsx("span",{className:"fct_summary_label",children:a("Shipping","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]}),e.jsx("li",{children:e.jsx("div",{className:"fct_coupon",children:e.jsx("div",{className:"fct_coupon_toggle",children:e.jsx("a",{href:"#",children:a("Have a Coupon?","fluent-cart")})})})}),e.jsxs("li",{children:[e.jsx("span",{className:"fct_summary_label",children:a("Tax Estimate (Included)","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]}),e.jsxs("li",{className:"fct_summary_items_total",children:[e.jsx("span",{className:"fct_summary_label",children:a("Total","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]})]})})]})]})})})]})})},save:()=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:E,RichText:F}=wp.blockEditor,A={attributes:{section_title:{type:"string",default:r("Recommended")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=E({className:"fc-checkout-order-bump-block"});return e.jsxs("div",{...t,...c,children:[e.jsx("div",{className:"fc-checkout-section-title",children:e.jsx(F,{tagName:"span",value:s.section_title,onChange:o=>l({section_title:o}),placeholder:r("Recommended"),allowedFormats:["core/bold","core/italic"]})}),e.jsx("div",{className:"fct_form_section_body",children:e.jsx("div",{className:"fct_order_promotions",children:e.jsxs("div",{className:"fct_order_promotion",children:[e.jsx("div",{className:"fct_order_promotion_checkbox",children:e.jsx("input",{type:"checkbox",disabled:!0,className:"fct_order_promotion_input",id:"fct_order_promotion_1"})}),e.jsx("div",{className:"fct_bump_details",children:e.jsxs("label",{htmlFor:"fct_order_promotion_1",className:"fct_order_promotion_label",children:[e.jsx("div",{className:"fct_order_promotion_title",children:"Product Title"}),e.jsx("div",{className:"fct_order_promotion_product_title",children:"Variation Title"}),e.jsx("div",{className:"fct_order_promotion_price",children:e.jsx("span",{className:"fct_order_promotion_price",children:"$0.00"})})]})})]})})})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},O={edit:()=>null,save:()=>null,category:"fluent-cart"},{useBlockProps:R,InnerBlocks:H}=wp.blockEditor,z={deprecated:[{save:()=>{const t=R.save({className:"fct_checkout_summary"});return e.jsx("div",{...t,children:e.jsx(H.Content,{})})}}],edit:()=>null,save:()=>null,category:"fluent-cart"},I={edit:()=>null,save:()=>null,category:"fluent-cart"},L={edit:()=>null,save:()=>null,category:"fluent-cart"},D={edit:()=>null,save:()=>null,category:"fluent-cart"},M={edit:()=>null,save:()=>null,category:"fluent-cart"},V={edit:()=>null,save:()=>null,category:"fluent-cart"},Z={edit:()=>null,save:()=>null,category:"fluent-cart"},U={edit:()=>null,save:()=>null,category:"fluent-cart"},W={edit:()=>null,save:()=>null,category:"fluent-cart"},{useBlockProps:q,RichText:G}=wp.blockEditor,J={attributes:{addressTitle:{type:"string",default:r("Billing Address")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=q();return e.jsxs("div",{...t,...c,children:[e.jsx("div",{className:"fc-checkout-section-title",children:e.jsx(G,{tagName:"span",value:s.addressTitle,onChange:o=>l({addressTitle:o}),placeholder:r("Address"),allowedFormats:["core/bold","core/italic"]})}),e.jsxs("div",{className:"fc-checkout-address-fields-block-row",children:[e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("Select a Country")})}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("House number and street name *")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Apartment, suite, unit, etc. (optional)")}),e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("State")})}),e.jsxs("div",{className:"two-column",children:[e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Town / City")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Postcode / ZIP")})]}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Phone Number")})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:K,RichText:Q}=wp.blockEditor,X={attributes:{addressTitle:{type:"string",default:r("Shipping Address")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=K();return e.jsxs("div",{...t,...c,children:[e.jsx("div",{className:"fc-checkout-section-title",children:e.jsx(Q,{tagName:"span",value:s.addressTitle,onChange:o=>l({addressTitle:o}),placeholder:r("Address"),allowedFormats:["core/bold","core/italic"]})}),e.jsxs("div",{className:"fc-checkout-address-fields-block-row",children:[e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("Select a Country")})}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("House number and street name *")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Apartment, suite, unit, etc. (optional)")}),e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("State")})}),e.jsxs("div",{className:"two-column",children:[e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Town / City")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Postcode / ZIP")})]}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Phone Number")})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:Y,RichText:ee}=wp.blockEditor,te={attributes:{ship_to_different_title:{type:"string",default:r("Ship to a different address?")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=Y({className:"fc-checkout-create-account-block"});return e.jsx("div",{...t,...c,children:e.jsxs("label",{htmlFor:"allow_create_account",children:[e.jsx("input",{type:"checkbox",name:"allow_create_account",readOnly:!0,disabled:!0,placeholder:r("Ship to a different address?")}),e.jsx(ee,{tagName:"span",value:s.ship_to_different_title,onChange:o=>l({ship_to_different_title:o}),placeholder:r("Title"),allowedFormats:["core/bold","core/italic"]})]})})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:se}=wp.blockEditor,re={edit:t=>{const s=se({className:"fc-checkout-eu-vat-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("div",{style:{padding:"8px 12px",backgroundColor:"#fcf0c2",border:"1px solid #f0b429",borderRadius:"4px",marginBottom:"8px",fontSize:"12px",lineHeight:"1.5"},children:r("⚠ Deprecated: VAT is now rendered inside the B2B section automatically. This block will be removed in a future version — please remove it from your template.")}),e.jsx("div",{className:"fc-checkout-section-title",children:r("EU VAT")}),e.jsx("div",{className:"fct_tax_field",style:{marginTop:"8px"},children:e.jsxs("div",{className:"fct_tax_input_wrapper",style:{display:"flex",gap:"8px",alignItems:"center"},children:[e.jsx("input",{type:"text",placeholder:r("Enter Tax ID"),disabled:!0,style:{flex:1,padding:"8px 12px",border:"1px solid #ddd",borderRadius:"4px",backgroundColor:"#f9f9f9"}}),e.jsx("button",{disabled:!0,style:{padding:"8px 16px",border:"1px solid #ddd",borderRadius:"4px",backgroundColor:"#f0f0f0",cursor:"default"},children:r("Apply")})]})})]})},save:()=>null},le={CheckoutNameFieldsBlock:p,CheckoutCreateAccountFieldBlock:h,CheckoutAddressFieldsBlock:f,CheckoutShippingMethodsBlock:g,CheckoutPaymentMethodsBlock:b,CheckoutAgreeTermsFieldBlock:v,CheckoutSubmitButtonBlock:B,CheckoutOrderNotesFieldBlock:T,CheckoutSummaryBlock:$,CheckoutOrderBumpBlock:A,CheckoutOrderSummaryBlock:O,CheckoutSummaryFooterBlock:z,CheckoutSubtotalBlock:I,CheckoutShippingBlock:L,CheckoutFeesBlock:D,CheckoutCouponBlock:M,CheckoutManualDiscountBlock:V,CheckoutTaxBlock:Z,CheckoutShippingTaxBlock:U,CheckoutTotalBlock:W,CheckoutBillingAddressFieldBlock:J,CheckoutShippingAddressFieldBlock:X,CheckoutShipToDifferentFieldBlock:te,CheckoutEuVatBlock:re},{registerBlockType:ce}=wp.blocks,oe=window.fluent_cart_checkout_inner_blocks,{InnerBlocks:ne,useBlockProps:de}=wp.blockEditor;oe.blocks.forEach(t=>{const s=le[t.component],l=[];t.parent&&l.push(...t.parent),s!=null&&s.parent&&l.push(...s.parent),ce(t.slug,{apiVersion:3,category:"fluent-cart",title:t.title,name:t.slug,icon:t.icon||null,parent:l.length>0?l:null,edit:(s==null?void 0:s.edit)||(()=>r("No edit found")),save:(s==null?void 0:s.save)||(()=>null),deprecated:(s==null?void 0:s.deprecated)||[],supports:(t==null?void 0:t.supports)||{},usesContext:(s==null?void 0:s.usesContext)||[],attributes:(s==null?void 0:s.attributes)||{}})}); | |
| 1 | +import{b as r}from"./chunks/BlockEditorTranslator.js?ver=1.6.5";import{j as e}from"./chunks/jsx-runtime.js?ver=1.6.5";const{useBlockProps:u}=wp.blockEditor,p={edit:t=>{const s=u({className:"fc-checkout-name-fields-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Name")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Email")}),e.jsxs("label",{htmlFor:"allow_create_account",children:[e.jsx("input",{type:"checkbox",name:"allow_create_account",readOnly:!0,disabled:!0}),e.jsx("span",{children:r("Create an Account?")})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},h={edit:()=>null,save:()=>null,category:"fluent-cart"},{useBlockProps:i,InnerBlocks:n}=wp.blockEditor,m=[["fluent-cart/checkout-billing-address-field"],["fluent-cart/checkout-ship-to-different-field",{style:{typography:{fontSize:"14px"}}}],["fluent-cart/checkout-shipping-address-field"]],f={edit:t=>{const s=i({className:"fc-checkout-address-fields-block"});return e.jsx("div",{...t,...s,children:e.jsx(n,{template:m,templateLock:!1,allowedBlocks:["core/heading","core/paragraph","fluent-cart/checkout-billing-address-field","fluent-cart/checkout-shipping-address-field","fluent-cart/checkout-ship-to-different-field"]})})},save:t=>{const s=i.save({className:"fct_checkout_address_fields"});return e.jsx("div",{...s,children:e.jsx(n.Content,{})})},supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:x}=wp.blockEditor,g={edit:t=>{const s=x({className:"fc-checkout-shipping-methods-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("div",{className:"fc-checkout-section-title",children:r("Shipping Methods")}),e.jsxs("div",{className:"fc-checkout-shipping-methods-list",children:[e.jsxs("div",{className:"fc-checkout-shipping-methods-list-item",children:[e.jsx("input",{type:"radio",name:"shipping_method",checked:!0,disabled:!0,value:"flat_rate"}),e.jsx("label",{children:r("Flat Rate")}),e.jsx("span",{className:"fc-checkout-shipping-methods-list-item-price",children:"$10.00"})]}),e.jsxs("div",{className:"fc-checkout-shipping-methods-list-item",children:[e.jsx("input",{type:"radio",name:"shipping_method",disabled:!0,value:"free_shipping"}),e.jsx("label",{children:r("Free Shipping")}),e.jsx("span",{className:"fc-checkout-shipping-methods-list-item-price",children:r("Free")})]})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:k}=wp.blockEditor,{Notice:_}=wp.components,b={edit:t=>{const s=k({className:"fc-checkout-payment-methods-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("div",{className:"fc-checkout-section-title",children:r("Payment")}),e.jsx("div",{className:"fc-checkout-payment-methods-list",children:e.jsx(_,{status:"warning",isDismissible:!1,children:e.jsx("div",{children:r("Please preview your form on the front-end to view payment methods.")})})})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:j,RichText:y}=wp.blockEditor,v={attributes:{terms_title:{type:"string",default:r("I agree to the terms and conditions.")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=j({className:"fc-checkout-agree-terms-block"});return e.jsx("div",{...t,...c,children:e.jsxs("label",{htmlFor:"terms_and_conditions",children:[e.jsx("input",{type:"checkbox",name:"terms_and_conditions",readOnly:!0,disabled:!0}),e.jsx(y,{tagName:"span",value:s.terms_title,onChange:o=>l({terms_title:o}),placeholder:r("I agree to the terms and conditions."),allowedFormats:["core/bold","core/italic"]})]})})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:N}=wp.blockEditor,B={edit:t=>{const s=N({className:"fc-checkout-submit-button-block fct_place_order_btn_wrap fc-checkout-place-order-btn large",type:"submit","data-loading":""});return e.jsx("button",{...t,...s,children:r("Place Order")})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:w,RichText:P}=wp.blockEditor,T={attributes:{title:{type:"string",default:r("Leave a Note")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=w({className:"fc-checkout-order-notes-block"});return e.jsx("div",{...t,...c,children:e.jsx("div",{className:"fct-toggle-field fct_order_note",id:"fct_wrapper_order_notes","data-fct-item-toggle":"",children:e.jsxs("label",{htmlFor:"order_notes","data-fct-item-toggle-control":"",className:"fct-toggle-control fct_order_note_toggle",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M15.6 12.0001L10.2 17.4001V6.6001L15.6 12.0001Z",fill:"currentColor"})}),e.jsx(P,{tagName:"span",value:s.title,onChange:o=>l({title:o}),placeholder:r("Leave a Note"),allowedFormats:["core/bold","core/italic"]})]})})})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},C=window.fluent_cart_checkout_data,{useBlockProps:d,InnerBlocks:S}=wp.blockEditor,{__:a}=wp.i18n,$={deprecated:[{save:()=>{const t=d.save({className:"fct_checkout_summary"});return e.jsx("div",{...t,children:e.jsx(S.Content,{})})}}],edit:()=>{const t=d({className:"fc-checkout-summary-block"});return e.jsx("div",{...t,children:e.jsxs("div",{className:"fct_checkout_summary",style:{position:"relative"},children:[e.jsx("span",{style:{position:"absolute",top:"8px",right:"8px",background:"#e0e0e0",color:"#555",fontSize:"11px",padding:"2px 8px",borderRadius:"3px",lineHeight:"1.4"},children:a("Preview","fluent-cart")}),e.jsx("div",{className:"fct_summary active",children:e.jsx("div",{className:"fct_summary_box",children:e.jsxs("div",{className:"fct_checkout_form_section",children:[e.jsxs("div",{className:"fct_form_section_header",children:[e.jsxs("div",{className:"fct_toggle_content",children:[e.jsx("h4",{children:a("Order summary","fluent-cart")}),e.jsx("div",{className:"fct_toggle_icon",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",children:e.jsx("path",{d:"M1 1L4.29289 4.29289C4.62623 4.62623 4.79289 4.79289 5 4.79289C5.20711 4.79289 5.37377 4.62623 5.70711 4.29289L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsx("div",{className:"fct_summary_toggle_total",children:e.jsx("span",{className:"value",children:"$0.00"})})]}),e.jsxs("div",{className:"fct_form_section_body",children:[e.jsx("div",{className:"fct_items_wrapper",children:e.jsx("div",{className:"fct_line_items",children:e.jsxs("div",{className:"fct_line_item fct_has_image",children:[e.jsxs("div",{className:"fct_line_item_info",children:[e.jsx("div",{className:"fct_item_image",children:e.jsx("img",{src:C.placeholder_image,alt:a("Product Image","fluent-cart")})}),e.jsx("div",{className:"fct_item_content",children:e.jsxs("div",{className:"fct_item_title",children:[a("Product Title","fluent-cart"),e.jsx("div",{className:"fct_item_variant_title",children:"– "+a("Variation Title","fluent-cart")})]})})]}),e.jsx("div",{className:"fct_line_item_price",children:e.jsx("span",{className:"fct_line_item_total",children:"$0.00"})})]})})}),e.jsx("div",{className:"fct_summary_items",children:e.jsxs("ul",{className:"fct_summary_items_list",children:[e.jsxs("li",{children:[e.jsx("span",{className:"fct_summary_label",children:a("Subtotal","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]}),e.jsxs("li",{children:[e.jsx("span",{className:"fct_summary_label",children:a("Shipping","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]}),e.jsx("li",{children:e.jsx("div",{className:"fct_coupon",children:e.jsx("div",{className:"fct_coupon_toggle",children:e.jsx("a",{href:"#",children:a("Have a Coupon?","fluent-cart")})})})}),e.jsxs("li",{children:[e.jsx("span",{className:"fct_summary_label",children:a("Tax Estimate (Included)","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]}),e.jsxs("li",{className:"fct_summary_items_total",children:[e.jsx("span",{className:"fct_summary_label",children:a("Total","fluent-cart")}),e.jsx("span",{className:"fct_summary_value",children:"$0.00"})]})]})})]})]})})})]})})},save:()=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:E,RichText:F}=wp.blockEditor,A={attributes:{section_title:{type:"string",default:r("Recommended")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=E({className:"fc-checkout-order-bump-block"});return e.jsxs("div",{...t,...c,children:[e.jsx("div",{className:"fc-checkout-section-title",children:e.jsx(F,{tagName:"span",value:s.section_title,onChange:o=>l({section_title:o}),placeholder:r("Recommended"),allowedFormats:["core/bold","core/italic"]})}),e.jsx("div",{className:"fct_form_section_body",children:e.jsx("div",{className:"fct_order_promotions",children:e.jsxs("div",{className:"fct_order_promotion",children:[e.jsx("div",{className:"fct_order_promotion_checkbox",children:e.jsx("input",{type:"checkbox",disabled:!0,className:"fct_order_promotion_input",id:"fct_order_promotion_1"})}),e.jsx("div",{className:"fct_bump_details",children:e.jsxs("label",{htmlFor:"fct_order_promotion_1",className:"fct_order_promotion_label",children:[e.jsx("div",{className:"fct_order_promotion_title",children:"Product Title"}),e.jsx("div",{className:"fct_order_promotion_product_title",children:"Variation Title"}),e.jsx("div",{className:"fct_order_promotion_price",children:e.jsx("span",{className:"fct_order_promotion_price",children:"$0.00"})})]})})]})})})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},O={edit:()=>null,save:()=>null,category:"fluent-cart"},{useBlockProps:R,InnerBlocks:H}=wp.blockEditor,z={deprecated:[{save:()=>{const t=R.save({className:"fct_checkout_summary"});return e.jsx("div",{...t,children:e.jsx(H.Content,{})})}}],edit:()=>null,save:()=>null,category:"fluent-cart"},I={edit:()=>null,save:()=>null,category:"fluent-cart"},L={edit:()=>null,save:()=>null,category:"fluent-cart"},D={edit:()=>null,save:()=>null,category:"fluent-cart"},M={edit:()=>null,save:()=>null,category:"fluent-cart"},V={edit:()=>null,save:()=>null,category:"fluent-cart"},Z={edit:()=>null,save:()=>null,category:"fluent-cart"},U={edit:()=>null,save:()=>null,category:"fluent-cart"},W={edit:()=>null,save:()=>null,category:"fluent-cart"},{useBlockProps:q,RichText:G}=wp.blockEditor,J={attributes:{addressTitle:{type:"string",default:r("Billing Address")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=q();return e.jsxs("div",{...t,...c,children:[e.jsx("div",{className:"fc-checkout-section-title",children:e.jsx(G,{tagName:"span",value:s.addressTitle,onChange:o=>l({addressTitle:o}),placeholder:r("Address"),allowedFormats:["core/bold","core/italic"]})}),e.jsxs("div",{className:"fc-checkout-address-fields-block-row",children:[e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("Select a Country")})}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("House number and street name *")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Apartment, suite, unit, etc. (optional)")}),e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("State")})}),e.jsxs("div",{className:"two-column",children:[e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Town / City")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Postcode / ZIP")})]}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Phone Number")})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:K,RichText:Q}=wp.blockEditor,X={attributes:{addressTitle:{type:"string",default:r("Shipping Address")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=K();return e.jsxs("div",{...t,...c,children:[e.jsx("div",{className:"fc-checkout-section-title",children:e.jsx(Q,{tagName:"span",value:s.addressTitle,onChange:o=>l({addressTitle:o}),placeholder:r("Address"),allowedFormats:["core/bold","core/italic"]})}),e.jsxs("div",{className:"fc-checkout-address-fields-block-row",children:[e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("Select a Country")})}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("House number and street name *")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Apartment, suite, unit, etc. (optional)")}),e.jsx("select",{disabled:!0,children:e.jsx("option",{value:"",children:r("State")})}),e.jsxs("div",{className:"two-column",children:[e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Town / City")}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Postcode / ZIP")})]}),e.jsx("input",{type:"text",readOnly:!0,disabled:!0,placeholder:r("Phone Number")})]})]})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:Y,RichText:ee}=wp.blockEditor,te={attributes:{ship_to_different_title:{type:"string",default:r("Ship to a different address?")}},edit:t=>{const{attributes:s,setAttributes:l}=t,c=Y({className:"fc-checkout-create-account-block"});return e.jsx("div",{...t,...c,children:e.jsxs("label",{htmlFor:"allow_create_account",children:[e.jsx("input",{type:"checkbox",name:"allow_create_account",readOnly:!0,disabled:!0,placeholder:r("Ship to a different address?")}),e.jsx(ee,{tagName:"span",value:s.ship_to_different_title,onChange:o=>l({ship_to_different_title:o}),placeholder:r("Title"),allowedFormats:["core/bold","core/italic"]})]})})},save:t=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0},color:{text:!0}},category:"fluent-cart"},{useBlockProps:se}=wp.blockEditor,re={edit:t=>{const s=se({className:"fc-checkout-eu-vat-block"});return e.jsxs("div",{...t,...s,children:[e.jsx("div",{style:{padding:"8px 12px",backgroundColor:"#fcf0c2",border:"1px solid #f0b429",borderRadius:"4px",marginBottom:"8px",fontSize:"12px",lineHeight:"1.5"},children:r("⚠ Deprecated: VAT is now rendered inside the B2B section automatically. This block will be removed in a future version — please remove it from your template.")}),e.jsx("div",{className:"fc-checkout-section-title",children:r("EU VAT")}),e.jsx("div",{className:"fct_tax_field",style:{marginTop:"8px"},children:e.jsxs("div",{className:"fct_tax_input_wrapper",style:{display:"flex",gap:"8px",alignItems:"center"},children:[e.jsx("input",{type:"text",placeholder:r("Enter Tax ID"),disabled:!0,style:{flex:1,padding:"8px 12px",border:"1px solid #ddd",borderRadius:"4px",backgroundColor:"#f9f9f9"}}),e.jsx("button",{disabled:!0,style:{padding:"8px 16px",border:"1px solid #ddd",borderRadius:"4px",backgroundColor:"#f0f0f0",cursor:"default"},children:r("Apply")})]})})]})},save:()=>null},le={CheckoutNameFieldsBlock:p,CheckoutCreateAccountFieldBlock:h,CheckoutAddressFieldsBlock:f,CheckoutShippingMethodsBlock:g,CheckoutPaymentMethodsBlock:b,CheckoutAgreeTermsFieldBlock:v,CheckoutSubmitButtonBlock:B,CheckoutOrderNotesFieldBlock:T,CheckoutSummaryBlock:$,CheckoutOrderBumpBlock:A,CheckoutOrderSummaryBlock:O,CheckoutSummaryFooterBlock:z,CheckoutSubtotalBlock:I,CheckoutShippingBlock:L,CheckoutFeesBlock:D,CheckoutCouponBlock:M,CheckoutManualDiscountBlock:V,CheckoutTaxBlock:Z,CheckoutShippingTaxBlock:U,CheckoutTotalBlock:W,CheckoutBillingAddressFieldBlock:J,CheckoutShippingAddressFieldBlock:X,CheckoutShipToDifferentFieldBlock:te,CheckoutEuVatBlock:re},{registerBlockType:ce}=wp.blocks,oe=window.fluent_cart_checkout_inner_blocks,{InnerBlocks:ne,useBlockProps:de}=wp.blockEditor;oe.blocks.forEach(t=>{const s=le[t.component],l=[];t.parent&&l.push(...t.parent),s!=null&&s.parent&&l.push(...s.parent),ce(t.slug,{apiVersion:3,category:"fluent-cart",title:t.title,name:t.slug,icon:t.icon||null,parent:l.length>0?l:null,edit:(s==null?void 0:s.edit)||(()=>r("No edit found")),save:(s==null?void 0:s.save)||(()=>null),deprecated:(s==null?void 0:s.deprecated)||[],supports:(t==null?void 0:t.supports)||{},usesContext:(s==null?void 0:s.usesContext)||[],attributes:(s==null?void 0:s.attributes)||{}})}); | |