PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
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 trunk All 48 releases
← All changes | assets/SearchBarBlockEditor.js +1 -1 1.3.25 → 1.6.5 View file →
@@ -1 +1 @@
1 -import{j as e,b as o}from"./chunks/BlockEditorTranslator.js?ver=1.3.25";import"./chunks/index6.js?ver=1.3.25";import{S as x,b}from"./chunks/Icons.js?ver=1.3.25";const{InspectorControls:w}=wp.blockEditor,{CheckboxControl:l}=wp.components,g=({attributes:r,setAttributes:a})=>{const c=r.url_mode,s="new-tab",d="current-tab",h=r.category_mode,p=r.link_with_shop_app,i=t=>{a({url_mode:t})},m=()=>{const t=!r.category_mode;a({category_mode:!!t})},u=()=>{const t=!r.link_with_shop_app;a({link_with_shop_app:!!t})};return e.jsx(w,{children:e.jsxs("div",{className:"fluent-cart-searchbar-block-editor",children:[e.jsx("div",{className:"pb-4 px-4",children:e.jsxs("div",{className:"max-w-xs pl-5 mx-auto bg-white p-6 border border-solid border-neutral-200 rounded-md shadow-md",children:[e.jsx("h3",{className:"text-xs font-semibold mb-4",children:o("SearchBar")}),e.jsx(l,{type:"checkbox",label:o("New Tab"),value:s,checked:c===s,onChange:()=>i(s)}),e.jsx(l,{type:"checkbox",label:o("Current Tab"),value:d,checked:c===d,onChange:()=>i(d)})]})}),e.jsx("div",{className:"pb-4 px-4",children:e.jsxs("div",{className:"max-w-xs pl-5 mx-auto bg-white p-6 border border-solid border-neutral-200 rounded-md shadow-md",children:[e.jsx("h3",{className:"text-sm font-semibold mb-4",children:o("Category")}),e.jsx(l,{label:o("Category"),type:"checkbox",checked:h===!0,onChange:m})]})}),e.jsx("div",{className:"pb-4 px-4",children:e.jsxs("div",{className:"max-w-xs pl-5 mx-auto bg-white p-6 border border-solid border-neutral-200 rounded-md shadow-md",children:[e.jsx("h3",{className:"text-sm font-semibold mb-4",children:o("Link With Shop App")}),e.jsx(l,{label:o("Link With Shop App"),type:"checkbox",checked:p===!0,onChange:u})]})})]})})},_=({attributes:r})=>e.jsxs("div",{className:"flex",children:[r&&e.jsx("div",{className:"mr-4",children:e.jsx("select",{name:"termId",className:"border border-gray-300 rounded-md text-lg bg-white",children:e.jsx("option",{selected:!0,disabled:!0,children:o("Category")})})}),e.jsx("div",{className:"fct-searchbar-block-search-wrap w-full",children:e.jsxs("div",{className:"fct-input-group",children:[e.jsx("div",{className:"input-icon",children:e.jsx(x,{})}),e.jsx("input",{className:"fct-input text-sm w-full bg-white !shadow-none rounded border border-solid border-gray-outline py-2 px-3.5 m-0 leading-[1.43] placeholder:text-system-light placeholder:text-[13px] focus:border-primary-500",type:"text",placeholder:o("Search Products...")})]})})]}),j=""+new URL("assets/ProductCard.png",import.meta.url).href,{registerBlockType:k}=wp.blocks,n=window.fluent_cart_fluent_products_search_bar_data;k(n.slug+"/"+n.name,{apiVersion:3,title:n.title,example:{attributes:{},innerBlocks:[{name:"core/image",attributes:{url:j,alt:"Product Search Preview",style:{width:"100%",height:"auto"}}}]},icon:{src:b},category:"fluent-cart",attributes:{url_mode:{type:"string",default:""},category_mode:{type:"boolean",default:!1},link_with_shop_app:{type:"boolean",default:!1}},edit:function({attributes:r,setAttributes:a}){const{useBlockProps:c}=wp.blockEditor,s=c();return e.jsx("div",{...s,children:e.jsxs("div",{className:"fluent-cart-searchbar-block-editor",children:[e.jsx(g,{attributes:r,setAttributes:a}),e.jsx(_,{attributes:r.category_mode,setAttributes:a})]})})},save:function(r){return null}});
1 +import{j as e}from"./chunks/jsx-runtime.js?ver=1.6.5";import{b as r}from"./chunks/BlockEditorTranslator.js?ver=1.6.5";import"./chunks/index6.js?ver=1.6.5";import{S as w,b as _}from"./chunks/Icons.js?ver=1.6.5";const{InspectorControls:j}=wp.blockEditor,{CheckboxControl:t}=wp.components,k=({attributes:o,setAttributes:a})=>{const c=o.url_mode,s="new-tab",d="current-tab",p=o.category_mode,m=o.link_with_shop_app,i=o.show_thumbnail,h=l=>{a({url_mode:l})},b=()=>{const l=!o.category_mode;a({category_mode:!!l})},u=()=>{const l=!o.link_with_shop_app;a({link_with_shop_app:!!l})},x=()=>{a({show_thumbnail:!i})};return e.jsx(j,{children:e.jsxs("div",{className:"fluent-cart-searchbar-block-editor",children:[e.jsx("div",{className:"pb-4 px-4",children:e.jsxs("div",{className:"max-w-xs pl-5 mx-auto bg-white p-6 border border-solid border-neutral-200 rounded-md shadow-md",children:[e.jsx("h3",{className:"text-xs font-semibold mb-4",children:r("SearchBar")}),e.jsx(t,{type:"checkbox",label:r("New Tab"),value:s,checked:c===s,onChange:()=>h(s)}),e.jsx(t,{type:"checkbox",label:r("Current Tab"),value:d,checked:c===d,onChange:()=>h(d)})]})}),e.jsx("div",{className:"pb-4 px-4",children:e.jsxs("div",{className:"max-w-xs pl-5 mx-auto bg-white p-6 border border-solid border-neutral-200 rounded-md shadow-md",children:[e.jsx("h3",{className:"text-sm font-semibold mb-4",children:r("Category")}),e.jsx(t,{label:r("Category"),type:"checkbox",checked:p===!0,onChange:b})]})}),e.jsx("div",{className:"pb-4 px-4",children:e.jsxs("div",{className:"max-w-xs pl-5 mx-auto bg-white p-6 border border-solid border-neutral-200 rounded-md shadow-md",children:[e.jsx("h3",{className:"text-sm font-semibold mb-4",children:r("Link With Shop App")}),e.jsx(t,{label:r("Link With Shop App"),type:"checkbox",checked:m===!0,onChange:u})]})}),e.jsx("div",{className:"pb-4 px-4",children:e.jsxs("div",{className:"max-w-xs pl-5 mx-auto bg-white p-6 border border-solid border-neutral-200 rounded-md shadow-md",children:[e.jsx("h3",{className:"text-sm font-semibold mb-4 mt-0",children:r("Show Thumbnail")}),e.jsx(t,{label:r("Show Thumbnail"),type:"checkbox",checked:i===!0,onChange:x})]})})]})})},g=({attributes:o})=>e.jsxs("div",{className:"flex",children:[o&&e.jsx("div",{className:"fct-searchbar-block-select-wrap",children:e.jsx("select",{name:"termId",children:e.jsx("option",{selected:!0,disabled:!0,children:r("Category")})})}),e.jsx("div",{className:"fct-searchbar-block-search-wrap w-full",children:e.jsxs("div",{className:"fct-input-group",children:[e.jsx("div",{className:"input-icon",children:e.jsx(w,{})}),e.jsx("input",{className:"fct-input text-sm w-full bg-white !shadow-none rounded border border-solid border-gray-outline py-2 px-3.5 m-0 leading-[1.43] placeholder:text-system-light placeholder:text-[13px] focus:border-primary-500",type:"text",placeholder:r("Search Products...")})]})})]}),f=""+new URL("assets/ProductCard.png",import.meta.url).href,{registerBlockType:y}=wp.blocks,n=window.fluent_cart_fluent_products_search_bar_data;y(n.slug+"/"+n.name,{apiVersion:3,title:n.title,example:{attributes:{},innerBlocks:[{name:"core/image",attributes:{url:f,alt:"Product Search Preview",style:{width:"100%",height:"auto"}}}]},icon:{src:_},category:"fluent-cart",attributes:{url_mode:{type:"string",default:""},category_mode:{type:"boolean",default:!1},link_with_shop_app:{type:"boolean",default:!1},show_thumbnail:{type:"boolean",default:!0}},edit:function({attributes:o,setAttributes:a}){const{useBlockProps:c}=wp.blockEditor,s=c();return e.jsx("div",{...s,children:e.jsxs("div",{className:"fluent-cart-searchbar-block-editor",children:[e.jsx(k,{attributes:o,setAttributes:a}),e.jsx(g,{attributes:o.category_mode,setAttributes:a})]})})},save:function(o){return null}});