PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.6
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.6
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
fluent-cart / assets / InnerBlocks5.js

InnerBlocks5.js in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.6.6, at assets/InnerBlocks5.js

2 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{b as a}from"./chunks/BlockEditorTranslator.js?ver=1.6.6";import{j as e}from"./chunks/jsx-runtime.js?ver=1.6.6";import{E as n}from"./chunks/EditorPanel.js?ver=1.6.6";import{E as i}from"./chunks/EditorPanelRow.js?ver=1.6.6";const{useBlockProps:p}=wp.blockEditor,d={edit:()=>{const t=p({className:"fct-cart-block-preview-items"});return e.jsxs("div",{...t,children:[[1,2].map(c=>e.jsxs("div",{className:"fct-cart-block-preview-row",children:[e.jsx("div",{className:"fct-cart-block-preview-thumb"}),e.jsxs("div",{className:"fct-cart-block-preview-lines",children:[e.jsx("div",{className:"fct-cart-block-preview-line fct-cart-block-preview-line-title"}),e.jsx("div",{className:"fct-cart-block-preview-line fct-cart-block-preview-line-meta"})]}),e.jsx("div",{className:"fct-cart-block-preview-qty"}),e.jsx("div",{className:"fct-cart-block-preview-price"})]},c)),e.jsx("p",{className:"fct-cart-block-preview-note",children:a("Cart items render here from the shopper's own cart.")})]})},save:()=>null},{InspectorControls:u}=wp.blockEditor,{TextControl:m}=wp.components,r=({label:t,help:c,value:o,placeholder:l,onChange:s})=>e.jsx(u,{children:e.jsx("div",{className:"fct-inspector-control-wrap fct-inspector-control-wrap--cart",children:e.jsx("div",{className:"fct-inspector-control-group",children:e.jsx("div",{className:"fct-inspector-control-body",children:e.jsx(n,{title:a("Text"),children:e.jsx(i,{className:"flex-col",children:e.jsx(m,{label:t,help:c,value:o,placeholder:l,onChange:s})})})})})})}),{useBlockProps:v,RichText:x}=wp.blockEditor,h={edit:({attributes:t,setAttributes:c})=>{const o=v({className:"fct-cart-block-preview-summary"}),l=a("Total");return e.jsxs(e.Fragment,{children:[e.jsx(r,{label:a("Total Label"),help:a("Leave empty to use the default."),value:t.total_label,placeholder:l,onChange:s=>c({total_label:s})}),e.jsxs("div",{...o,children:[e.jsx(x,{tagName:"span",className:"fct-cart-block-preview-total-label",value:t.total_label,onChange:s=>c({total_label:s}),placeholder:l,allowedFormats:[]}),e.jsx("span",{className:"fct-cart-block-preview-line fct-cart-block-preview-line-total"})]})]})},save:()=>null},{useBlockProps:f,RichText:w}=wp.blockEditor,b={edit:({attributes:t,setAttributes:c})=>{const o=f({className:"fct-cart-block-preview-checkout"}),l=a("Go to Checkout");return e.jsxs(e.Fragment,{children:[e.jsx(r,{label:a("Button Text"),help:a("Leave empty to use the default."),value:t.button_text,placeholder:l,onChange:s=>c({button_text:s})}),e.jsx("div",{...o,children:e.jsx(w,{tagName:"span",className:"fct-cart-block-preview-checkout-link",value:t.button_text,onChange:s=>c({button_text:s}),placeholder:l,allowedFormats:[]})})]})},save:()=>null},k={CartItemsBlock:d,CartTotalBlock:h,CartCheckoutButtonBlock:b},{registerBlockType:j}=wp.blocks,N=window.fluent_cart_cart_inner_blocks||{},g=N.blocks||[];g.forEach(t=>{const c=k[t.component];j(t.slug,{apiVersion:3,category:"fluent-cart",title:t.title,name:t.slug,icon:t.icon||null,parent:t.parent||["fluent-cart/cart"],edit:(c==null?void 0:c.edit)||(()=>a("No edit found")),save:(c==null?void 0:c.save)||(()=>null),supports:(t==null?void 0:t.supports)||{},attributes:(t==null?void 0:t.attributes)||(c==null?void 0:c.attributes)||{}})});
2