Plugin Directory

Changeset 3076429

Timestamp:
04/24/2024 12:09:36 PM (3 months ago)
Author:
yaycommerce
Message:

Version 1.0.1
Add assests & tag 1.0

Location:
brandy-blocks
Files:
114 added
29 edited

Legend:

Unmodified
Added
Removed
  • brandy-blocks/trunk/brandy-blocks.php

    r3060884 r3076429  
    44 * Plugin URI: https://yaycommerce.com/
    55 * Description: Brandy blocks.
    6  * Version: 1.0
     6 * Version: 1.0
    77 * Author: YayCommerce
    88 * Author URI: https://yaycommerce.com/
     
    2424}
    2525if ( ! defined( 'BRANDY_BLOCKS_ABSPATH' ) ) {
    26     define( 'BRANDY_BLOCKS_ABSPATH', dirname( __FILE__ ) . '/' );
     26    define( 'BRANDY_BLOCKS_ABSPATH', . '/' );
    2727}
    2828if ( ! defined( 'BRANDY_BLOCKS_PLUGIN_PATH' ) ) {
     
    3636}
    3737if ( ! defined( 'BRANDY_BLOCKS_VERSION' ) ) {
    38     define( 'BRANDY_BLOCKS_VERSION', '1.0' );
     38    define( 'BRANDY_BLOCKS_VERSION', '1.0' );
    3939}
    4040
  • brandy-blocks/trunk/inc/Core/ProductController.php

    r3060884 r3076429  
    7474    public function get_template_button() {
    7575
     76
     77
     78
     79
    7680        $attributes = array(
    7781            'aria-label'       => $this->product->add_to_cart_description(),
     
    9296        }
    9397
    94         $add_to_cart_btn = apply_filters(
    95             'brandy_block_product_add_to_cart',
    96             sprintf(
    97                 '<a href="%s" %s>%s</span></a>',
    98                 esc_url( $this->product->add_to_cart_url() ),
    99                 wc_implode_html_attributes( $attributes ),
    100                 esc_html( $this->product->add_to_cart_text() )
    101             ),
    102             $this->product,
    103             $attributes
     98        $add_to_cart_btn = sprintf(
     99            '<a href="%s" %s>%s</span></a>',
     100            esc_url( $this->product->add_to_cart_url() ),
     101            wc_implode_html_attributes( $attributes ),
     102            esc_html( $this->product->add_to_cart_text() )
    104103        );
    105104
    106         $product_added_to_cart_btn = apply_filters( 'brandy_block_product_added_to_cart', '', $this->product );
     105        $product_added_to_cart_btn = sprintf(
     106            '<a class="added-to-cart-btn view-cart" href="%s"><svg width="29" height="29" viewBox="0 0 29 29" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.3 20.6875C13.3 24.7609 16.6141 28.075 20.6875 28.075C24.7609 28.075 28.075 24.7609 28.075 20.6875C28.075 16.6141 24.7609 13.3 20.6875 13.3C16.6141 13.3 13.3 16.6141 13.3 20.6875ZM14.575 20.6875C14.575 17.3168 17.3168 14.575 20.6875 14.575C24.0582 14.575 26.8 17.3168 26.8 20.6875C26.8 24.0582 24.0582 26.8 20.6875 26.8C17.3168 26.8 14.575 24.0582 14.575 20.6875Z" fill="#122940" stroke="#122940" stroke-width="0.15"/><path d="M23.1021 23.9984L23.1024 23.9986C23.2196 24.0916 23.361 24.1375 23.5 24.1375C23.6858 24.1375 23.8722 24.056 23.9974 23.8989L23.9974 23.8988C24.2166 23.6235 24.172 23.2233 23.898 23.0028L23.8978 23.0027L21.325 20.944V17.3125C21.325 16.9606 21.0394 16.675 20.6875 16.675C20.3356 16.675 20.05 16.9606 20.05 17.3125V21.25C20.05 21.444 20.1381 21.6262 20.2894 21.7482L20.2896 21.7484L23.1021 23.9984Z" fill="#122940" stroke="#122940" stroke-width="0.15"/><path d="M2.49175 23.575H11.6875C12.0394 23.575 12.325 23.2894 12.325 22.9375C12.325 22.5856 12.0394 22.3 11.6875 22.3H2.49175C2.33067 22.3 2.2 22.1693 2.2 22.0082V8.95H22.3V11.6875C22.3 12.0394 22.5856 12.325 22.9375 12.325C23.2894 12.325 23.575 12.0394 23.575 11.6875V8.3125C23.575 7.96058 23.2894 7.675 22.9375 7.675H1.5625C1.21058 7.675 0.925 7.96058 0.925 8.3125V22.0082C0.925 22.872 1.62795 23.575 2.49175 23.575Z" fill="#122940" stroke="#122940" stroke-width="0.15"/><path d="M18.9816 2.45256L18.9814 2.4522C18.8968 2.29656 18.7332 2.2 18.5557 2.2H5.9444C5.76696 2.2 5.60317 2.29652 5.51737 2.45252L5.51734 2.45256L2.11988 8.61975L18.9816 2.45256ZM18.9816 2.45256L22.379 8.61968M18.9816 2.45256L22.379 8.61968M1.25416 8.87098L1.25404 8.87091C0.946633 8.70127 0.834485 8.31251 1.00411 8.00514M1.25416 8.87098L1.00411 8.00514M1.25416 8.87098C1.5626 9.04049 1.9502 8.9284 2.11984 8.61981L1.25416 8.87098ZM1.00411 8.00514L4.4015 1.83809M1.00411 8.00514L4.4015 1.83809M23.496 8.00406L23.496 8.00413C23.6655 8.31246 23.5535 8.69989 23.2452 8.86963M23.496 8.00406L23.2448 8.86985C23.2449 8.86978 23.245 8.8697 23.2452 8.86963M23.496 8.00406L20.0985 1.8369C19.7894 1.27394 19.1972 0.925 18.5557 0.925H5.9444C5.30291 0.925 4.71067 1.27392 4.40156 1.83798M23.496 8.00406L4.40156 1.83798M23.2452 8.86963C23.1479 8.92455 23.0419 8.95 22.9375 8.95C22.7134 8.95 22.4952 8.83156 22.3791 8.61981M23.2452 8.86963L22.3791 8.61981M22.3791 8.61981L22.379 8.61968M22.3791 8.61981L22.379 8.61968M4.4015 1.83809C4.40152 1.83805 4.40154 1.83801 4.40156 1.83798M4.4015 1.83809L4.40156 1.83798" fill="#122940" stroke="#122940" stroke-width="0.15"/><path d="M11.6125 8.3125C11.6125 8.66442 11.8981 8.95 12.25 8.95C12.6019 8.95 12.8875 8.66442 12.8875 8.3125V1.5625C12.8875 1.21058 12.6019 0.925 12.25 0.925C11.8981 0.925 11.6125 1.21058 11.6125 1.5625V8.3125Z" fill="#122940" stroke="#122940" stroke-width="0.15"/></svg></a>',
     107            esc_url( function_exists( 'wc_get_cart_url' ) ? \wc_get_cart_url() : '#' )
     108        );
    107109
    108110        return $add_to_cart_btn . $product_added_to_cart_btn;
     
    122124        return '';
    123125    }
    124 
    125126}
  • brandy-blocks/trunk/inc/Core/ProductQuery.php

    r3060884 r3076429  
    110110        return $non_cached_ids;
    111111    }
    112 
    113112}
  • brandy-blocks/trunk/inc/Elementor/ElementorSetup.php

    r3060884 r3076429  
    44
    55use BrandyBlocks\Elementor\Elements\TestElement;
     6
     7
     8
    69use BrandyBlocks\Traits\SingletonTrait;
    710
     
    1013
    1114    protected function __construct() {
     15
    1216        add_action( 'elementor/widgets/register', array( $this, 'register_elements' ) );
    1317
    1418    }
    1519
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
    1630    public function register_elements( $widgets_manager ) {
    1731        $widgets_manager->register( new TestElement() );
     32
     33
    1834    }
    1935}
  • brandy-blocks/trunk/inc/Initialize.php

    r3060884 r3076429  
    33namespace BrandyBlocks;
    44
     5
    56use BrandyBlocks\Packages\PackagesLoader;
     7
    68
    79class Initialize {
     
    911
    1012    protected function __construct() {
     13
     14
     15
    1116        PackagesLoader::get_instance();
    12         // ElementorSetup::get_instance();
     17        ElementorSetup::get_instance();
     18
    1319    }
    1420}
  • brandy-blocks/trunk/inc/Packages/Abstracts/AbstractBlock.php

    r3060884 r3076429  
    2222
    2323    }
    24 
    2524}
  • brandy-blocks/trunk/inc/Packages/Blocks/AllProducts.php

    r3060884 r3076429  
    7474        $products         = array_values( array_map( 'wc_get_product', $query_result ) );
    7575        $content          = sprintf(
    76             '<div class="brandy-block-all-products" data-settings="%s">%s%s%s</div>',
     76            '<div class="brandy-block-all-products %s" data-settings="%s">%s%s%s</div>',
     77            is_brandy_exists() ? 'brandy-core-styles' : '',
    7778            esc_attr( wp_json_encode( $this->attributes ) ),
    7879            $this->render_sorting(),
     
    132133
    133134    public function render_product( $product ) {
     135
    134136        $product_controller = new ProductController( $product );
    135         $content            = sprintf(
    136             '<li class="product">
    137                 <div class="brandy-block-product__thumbnail">%s%s</div>
    138                 <div class="brandy-block-product__content">%s%s%s%s%s</div>
    139             </li>',
    140             $product_controller->get_template_sale_flash(),
    141             $product_controller->get_template_image(),
    142             $product_controller->get_template_category(),
    143             $product_controller->get_template_title(),
    144             $product_controller->get_template_rating(),
    145             $product_controller->get_template_pricing(),
    146             $product_controller->get_template_button()
    147         );
    148 
    149         return apply_filters( 'brandy_block_product_content', $content, $product, $product_controller );
     137        if ( function_exists( 'brandy_loop_product_item' ) ) {
     138            ob_start();
     139            \brandy_loop_product_item(
     140                $product
     141            );
     142            $content = ob_get_contents();
     143            ob_end_clean();
     144        } else {
     145            $content = sprintf(
     146                '<li class="product">
     147                    <div class="brandy-block-product__thumbnail">%s%s</div>
     148                    <div class="brandy-block-product__content">%s%s%s%s%s</div>
     149                </li>',
     150                $product_controller->get_template_sale_flash(),
     151                $product_controller->get_template_image(),
     152                $product_controller->get_template_category(),
     153                $product_controller->get_template_title(),
     154                $product_controller->get_template_rating(),
     155                $product_controller->get_template_pricing(),
     156                $product_controller->get_template_button()
     157            );
     158        }
     159
     160        return apply_filters( 'brandy_blocks_loop_product_content', $content, $product, $product_controller );
    150161    }
    151162
     
    173184                '',
    174185                array_map(
    175                     function( $value ) use ( $list, $order_by ) {
     186                    function( $value ) use ( $list, $order_by ) {
    176187                        return sprintf(
    177188                            '<option value="%s" %s>%s</option>',
     
    310321        );
    311322    }
    312 
    313323}
  • brandy-blocks/trunk/inc/Packages/Blocks/Pricing.php

    r3060884 r3076429  
    2525        wp_enqueue_script( 'brandy-pricing-js', BRANDY_BLOCKS_PLUGIN_URL . '/inc/Packages/dist/js/pricing.js', array( 'jquery' ), BRANDY_BLOCKS_VERSION, true );
    2626    }
    27 
    2827}
  • brandy-blocks/trunk/inc/Packages/Blocks/PricingCard.php

    r3060884 r3076429  
    1111
    1212    public $name = 'PricingCard';
    13 
    1413}
  • brandy-blocks/trunk/inc/Packages/Blocks/SingleTestimonial.php

    r3060884 r3076429  
    1111
    1212    public $name = 'SingleTestimonial';
    13 
    1413}
  • brandy-blocks/trunk/inc/Packages/Blocks/Testimonials.php

    r3060884 r3076429  
    2525        wp_enqueue_script( 'brandy-testimonials-js', BRANDY_BLOCKS_PLUGIN_URL . '/inc/Packages/dist/js/testimonials.js', array( 'jquery' ), BRANDY_BLOCKS_VERSION, true );
    2626    }
    27 
    2827}
  • brandy-blocks/trunk/inc/Packages/PackagesLoader.php

    r3060884 r3076429  
    2020        add_filter(
    2121            'block_categories_all',
    22             function( $test ) {
     22            function( $test ) {
    2323                $test[] = array(
    2424                    'slug'  => 'brandy-blocks',
  • brandy-blocks/trunk/inc/Packages/build/blocks/AllProducts/index.asset.php

    r3060884 r3076429  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '1c37b7581d9118adaa42');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '');
  • brandy-blocks/trunk/inc/Packages/build/blocks/AllProducts/index.js

    r3060884 r3076429  
    1 (()=>{"use strict";var e,t={862:(e,t,n)=>{const l=window.React,r=window.wp.blocks,a=window.wp.blockEditor,o=window.wp.element,i=window.wp.serverSideRender;var s=n.n(i);const c=window.wp.i18n,u=window.wp.components;function d({value:e,onChange:t,min:n,max:r,label:a=""}){return(0,l.createElement)(u.RangeControl,{label:a,className:"brandy-editor-slider",value:e,onChange:t,min:n,max:r})}const m=window.wp.data;function C(){return{viewport:(0,m.useSelect)((e=>e("core/edit-post").__experimentalGetPreviewDeviceType())),setViewport:e=>{(0,m.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(e)}}}const v=[{value:"Desktop",label:(0,l.createElement)((function(){return(0,l.createElement)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M15.3 0H1.7C0.76245 0 0 0.755368 0 1.68421V10.9474C0 11.8762 0.76245 12.6316 1.7 12.6316H7.65V14.3158H5.1V16H11.9V14.3158H9.35V12.6316H15.3C16.2376 12.6316 17 11.8762 17 10.9474V1.68421C17 0.755368 16.2376 0 15.3 0ZM1.7 10.5V1.68421H15.3L15.3017 10.5H8.50085H1.7Z",fill:"#A1ABB7"}))}),null)},{value:"Tablet",label:(0,l.createElement)((function(){return(0,l.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M14 0H4C2.9 0 2 0.9 2 2V14C2 15.1 2.9 16 4 16H14C15.1 16 16 15.1 16 14V2C16 0.9 15.1 0 14 0ZM14.5 14C14.5 14.3 14.3 14.5 14 14.5H4C3.7 14.5 3.5 14.3 3.5 14V2C3.5 1.7 3.7 1.5 4 1.5H14C14.3 1.5 14.5 1.7 14.5 2V14ZM7 13.5H11V12H7V13.5Z",fill:"#A1ABB7"}))}),null)},{value:"Mobile",label:(0,l.createElement)((function(){return(0,l.createElement)("svg",{width:"11",height:"16",viewBox:"0 0 11 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("rect",{x:"1.5",y:"0.75",width:"8.5",height:"14.5",rx:"1.25",stroke:"#A1ABB7",strokeWidth:"1.5"}),(0,l.createElement)("rect",{x:"4.75",y:"12",width:"2",height:"1.5",fill:"#A1ABB7"}))}),null)}];function p(){const{viewport:e,setViewport:t}=C(),[n,r]=(0,o.useState)(!1),a=(0,o.useRef)(null);return(0,o.useEffect)((()=>{function e(e){null==a.current||a.current.contains(e.target)||r(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[a.current]),(0,l.createElement)("div",{className:"viewport-switcher"},(0,l.createElement)("div",{className:"current-viewport viewport-item",ref:a,onClick:()=>{r((e=>!e))}},v.find((t=>t.value===e)).label),(0,l.createElement)("div",{className:"viewport-modal "+(n?"opened":"")},(0,l.createElement)("div",{className:"viewport-list"},v.map((n=>(0,l.createElement)("div",{key:n.value,onClick:()=>{var e;e=n.value,t(e)},className:"viewport-item "+(e===n.value?"selected":"")},n.label))))))}function g(){var e;const{attributes:t,setAttributes:n}=(0,o.useContext)(L),{viewport:r}=C();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",null,(0,l.createElement)("span",null,(0,c.__)("Columns","brandy")),(0,l.createElement)(p,null)),(0,l.createElement)(d,{value:t.layout_settings.columns[r.toLowerCase()],onChange:e=>{n({layout_settings:{...t.layout_settings,columns:{...t.layout_settings.columns,[r.toLowerCase()]:e}}})},min:1,max:5}),(null===(e=t.content_settings.pagination)||void 0===e||e)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",null,(0,c.__)("Products per page","brandy")),(0,l.createElement)(d,{value:t.layout_settings.number_products,onChange:e=>{n({layout_settings:{...t.layout_settings,number_products:e}})},min:3,max:30})))}function w({options:e=[],selected:t,onChange:n}){return(0,l.createElement)("select",{className:"brandy-editor-select",value:t,onChange:e=>{n(e.target.value)},onfocus:"this.size=10;",onblur:"this.size=1;"},e.map((e=>(0,l.createElement)("option",{value:e.value},e.label))))}const b={display:"flex",alignItems:"center",justifyContent:"space-between"},h={marginBottom:10};function E(){var e,t,n;const{attributes:r,setAttributes:a}=(0,o.useContext)(L),i=e=>t=>{a({content_settings:{...r.content_settings,[e]:t}})};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{...b,...h}},(0,l.createElement)("span",null,(0,c.__)("Show sorting","brandy")),(0,l.createElement)(u.ToggleControl,{checked:null===(e=r.content_settings.show_sorting)||void 0===e||e,onChange:i("show_sorting")})),(0,l.createElement)("div",{style:{...b,...h}},(0,l.createElement)("span",null,(0,c.__)("Pagination","brandy")),(0,l.createElement)(u.ToggleControl,{checked:null===(t=r.content_settings.pagination)||void 0===t||t,onChange:i("pagination")})),(0,l.createElement)("div",{style:h},(0,l.createElement)("div",null,(0,c.__)("Order by","brandy")),(0,l.createElement)(w,{selected:null!==(n=r.content_settings.order_by)&&void 0!==n?n:"latest",onChange:i("order_by"),options:[{label:(0,c.__)("Popularity","brandy"),value:"popularity"},{label:(0,c.__)("Average rating","brandy"),value:"rating"},{label:(0,c.__)("Latest","brandy"),value:"latest"},{label:(0,c.__)("Price: low to high","brandy"),value:"lowest"},{label:(0,c.__)("Price: high to low","brandy"),value:"highest"}]})))}function _({title:e,initialOpen:t=!1,children:n}){return(0,l.createElement)(u.PanelBody,{title:e,initialOpen:t,className:"brandy-editor-panel-body"},n)}function y(){return(0,l.createElement)(a.InspectorControls,{key:"setting"},(0,l.createElement)("div",{className:"brandy-editor all-products-settings"},(0,l.createElement)(_,{title:(0,c.__)("Layout settings","brandy")},(0,l.createElement)(g,null)),(0,l.createElement)(_,{title:(0,c.__)("Content settings","brandy")},(0,l.createElement)(E,null))))}const f=JSON.parse('{"u2":"brandy/all-products","Y4":{"A":{"type":"object","default":{"columns":{"desktop":4,"tablet":2,"mobile":1},"number_products":9}},"l":{"type":"object","default":{"show_sorting":true,"pagination":true,"order_by":"latest"}}}}'),L=(0,o.createContext)({});function k(){return"Loading..."}(0,r.registerBlockType)(f.u2,{edit:function({attributes:e,setAttributes:t,clientId:n}){const r=(0,a.useBlockProps)(),i=(0,o.useMemo)((()=>{var t,n;return{layout_settings:null!==(t=e.layout_settings)&&void 0!==t?t:f.Y4.A,content_settings:null!==(n=e.content_settings)&&void 0!==n?n:f.Y4.l}}),[e]),c=(0,o.useMemo)((()=>({attributes:i,setAttributes:t})),[i,t]);return(0,l.createElement)("div",{...r,className:r.className+" block-upgraded"},(0,l.createElement)(L.Provider,{value:c},(0,l.createElement)(y,null),(0,l.createElement)(s(),{block:"brandy/all-products",LoadingResponsePlaceholder:k,attributes:i})))},icon:(0,l.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M12.001 21C11.6142 21 11.2438 20.8033 11.0121 20.4755C11.0038 20.4624 10.9893 20.4428 10.9769 20.4209C10.6376 19.9292 10.1783 19.5184 9.6549 19.2387C9.1356 18.9612 8.57493 18.8191 7.98736 18.8191C7.44531 18.8191 6.90532 18.7579 6.38189 18.6355C5.26468 18.3777 4.19921 17.8379 3.3013 17.0753C1.51998 15.5631 0.5 13.3144 0.5 10.9106C0.5 9.32633 0.942748 7.79883 1.78272 6.48768C2.78821 4.91866 4.28816 3.78014 6.00742 3.27971C6.64878 3.09397 7.31497 3 7.98736 3H16.0126C16.685 3 17.3512 3.09397 17.9926 3.27971C19.7118 3.77795 21.2139 4.91866 22.2173 6.48768C23.0573 7.79665 23.5 9.32633 23.5 10.9106C23.5 13.3166 22.478 15.5631 20.6966 17.0753C19.7987 17.8379 18.7333 18.3777 17.616 18.6355C17.0926 18.7579 16.5526 18.8191 16.0106 18.8191C15.423 18.8191 14.8623 18.959 14.343 19.2365C13.8237 19.514 13.3644 19.9249 13.0189 20.4231L12.9796 20.4821C12.7417 20.8164 12.3859 21 12.001 21ZM7.98943 3.65776C7.3729 3.65776 6.76257 3.74517 6.17293 3.91562C4.59643 4.37234 3.21854 5.41908 2.29788 6.85699C1.52825 8.05669 1.12274 9.45963 1.12274 10.9106C1.12274 13.1156 2.05995 15.1763 3.69439 16.5661C4.51781 17.2654 5.49434 17.7593 6.51845 17.9974C6.99843 18.1089 7.4929 18.1657 7.99151 18.1657C8.67631 18.1657 9.33215 18.3296 9.93834 18.6552C10.5487 18.9808 11.0845 19.4616 11.49 20.0494L11.5128 20.0844C11.6307 20.2505 11.8086 20.3444 12.0052 20.3444C12.1955 20.3444 12.3714 20.2526 12.4893 20.0953L12.5183 20.0538C12.932 19.4572 13.4658 18.9808 14.072 18.6574C14.6782 18.334 15.334 18.1679 16.0188 18.1679C16.5154 18.1679 17.0119 18.1111 17.4919 17.9996C18.516 17.7614 19.4925 17.2676 20.316 16.5683C21.9504 15.1806 22.8876 13.1199 22.8876 10.9128C22.8876 9.46182 22.48 8.05888 21.7125 6.85917C20.7897 5.41908 19.4139 4.37453 17.8354 3.91781C17.2478 3.74736 16.6354 3.65995 16.0188 3.65995H7.98943V3.65776Z",fill:"#00A3FE",stroke:"#00A3FE","stroke-width":"0.8"}),(0,l.createElement)("path",{d:"M6.92937 8.53706L7.46993 9.44839C7.50964 9.51545 7.57377 9.56117 7.65012 9.57945L8.68544 9.8111C8.89311 9.85682 8.97251 10.1067 8.83508 10.2652L8.13266 11.0608C8.08074 11.1187 8.05631 11.1949 8.06547 11.2711L8.16625 12.3256C8.18763 12.536 7.97385 12.6914 7.77839 12.6061L6.80416 12.1854C6.73392 12.155 6.65451 12.155 6.58121 12.1854L5.60698 12.6061C5.41152 12.6914 5.19774 12.536 5.21912 12.3256L5.3199 11.2711C5.32601 11.1949 5.30158 11.1187 5.25271 11.0608L4.55029 10.2652C4.4098 10.1067 4.49226 9.85682 4.69994 9.8111L5.73525 9.57945C5.8116 9.56421 5.87573 9.51545 5.91544 9.44839L6.456 8.53706C6.56289 8.35418 6.82859 8.35418 6.93548 8.53706H6.92937Z",fill:"#00A3FE"}),(0,l.createElement)("path",{d:"M12.2375 8.53706L12.778 9.44839C12.8177 9.51545 12.8819 9.56117 12.9582 9.57945L13.9935 9.8111C14.2012 9.85682 14.2806 10.1067 14.1432 10.2652L13.4408 11.0608C13.3888 11.1187 13.3644 11.1949 13.3736 11.2711L13.4744 12.3256C13.4957 12.536 13.282 12.6914 13.0865 12.6061L12.1123 12.1854C12.042 12.155 11.9626 12.155 11.8893 12.1854L10.9151 12.6061C10.7196 12.6914 10.5058 12.536 10.5272 12.3256L10.628 11.2711C10.6341 11.1949 10.6097 11.1187 10.5608 11.0608L9.85839 10.2652C9.71791 10.1067 9.80037 9.85682 10.008 9.8111L11.0434 9.57945C11.1197 9.56421 11.1838 9.51545 11.2235 9.44839L11.7641 8.53706C11.871 8.35418 12.1367 8.35418 12.2436 8.53706H12.2375Z",fill:"#00A3FE"}),(0,l.createElement)("path",{d:"M17.5452 8.53706L18.0858 9.44839C18.1255 9.51545 18.1896 9.56117 18.266 9.57945L19.3013 9.8111C19.509 9.85682 19.5884 10.1067 19.4509 10.2652L18.7485 11.0608C18.6966 11.1187 18.6722 11.1949 18.6813 11.2711L18.7821 12.3256C18.8035 12.536 18.5897 12.6914 18.3942 12.6061L17.42 12.1854C17.3498 12.155 17.2704 12.155 17.1971 12.1854L16.2228 12.6061C16.0274 12.6914 15.8136 12.536 15.835 12.3256L15.9357 11.2711C15.9419 11.1949 15.9174 11.1187 15.8686 11.0608L15.1661 10.2652C15.0256 10.1067 15.1081 9.85682 15.3158 9.8111L16.3511 9.57945C16.4274 9.56421 16.4916 9.51545 16.5313 9.44839L17.0718 8.53706C17.1787 8.35418 17.4444 8.35418 17.5513 8.53706H17.5452Z",fill:"#00A3FE"}))})}},n={};function l(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,l),a.exports}l.m=t,e=[],l.O=(t,n,r,a)=>{if(!n){var o=1/0;for(u=0;u<e.length;u++){for(var[n,r,a]=e[u],i=!0,s=0;s<n.length;s++)(!1&a||o>=a)&&Object.keys(l.O).every((e=>l.O[e](n[s])))?n.splice(s--,1):(i=!1,a<o&&(o=a));if(i){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,r,a]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={855:0,30:0};l.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[o,i,s]=n,c=0;if(o.some((t=>0!==e[t]))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(s)var u=s(l)}for(t&&t(n);c<o.length;c++)a=o[c],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(u)},n=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=l.O(void 0,[30],(()=>l(862)));r=l.O(r)})();
     1(()=>{"use strict";var e,t={862:(e,t,n)=>{const l=window.React,r=window.wp.blocks,a=window.wp.blockEditor,o=window.wp.element,i=window.wp.serverSideRender;var s=n.n(i);const c=window.wp.i18n,u=window.wp.components;function d({value:e,onChange:t,min:n,max:r,label:a=""}){return(0,l.createElement)(u.RangeControl,{label:a,className:"brandy-editor-slider",value:e,onChange:t,min:n,max:r})}const m=window.wp.data;function C(){return{viewport:(0,m.useSelect)((e=>e("core/edit-post").__experimentalGetPreviewDeviceType())),setViewport:e=>{(0,m.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(e)}}}const v=[{value:"Desktop",label:(0,l.createElement)((function(){return(0,l.createElement)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M15.3 0H1.7C0.76245 0 0 0.755368 0 1.68421V10.9474C0 11.8762 0.76245 12.6316 1.7 12.6316H7.65V14.3158H5.1V16H11.9V14.3158H9.35V12.6316H15.3C16.2376 12.6316 17 11.8762 17 10.9474V1.68421C17 0.755368 16.2376 0 15.3 0ZM1.7 10.5V1.68421H15.3L15.3017 10.5H8.50085H1.7Z",fill:"#A1ABB7"}))}),null)},{value:"Tablet",label:(0,l.createElement)((function(){return(0,l.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M14 0H4C2.9 0 2 0.9 2 2V14C2 15.1 2.9 16 4 16H14C15.1 16 16 15.1 16 14V2C16 0.9 15.1 0 14 0ZM14.5 14C14.5 14.3 14.3 14.5 14 14.5H4C3.7 14.5 3.5 14.3 3.5 14V2C3.5 1.7 3.7 1.5 4 1.5H14C14.3 1.5 14.5 1.7 14.5 2V14ZM7 13.5H11V12H7V13.5Z",fill:"#A1ABB7"}))}),null)},{value:"Mobile",label:(0,l.createElement)((function(){return(0,l.createElement)("svg",{width:"11",height:"16",viewBox:"0 0 11 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("rect",{x:"1.5",y:"0.75",width:"8.5",height:"14.5",rx:"1.25",stroke:"#A1ABB7",strokeWidth:"1.5"}),(0,l.createElement)("rect",{x:"4.75",y:"12",width:"2",height:"1.5",fill:"#A1ABB7"}))}),null)}];function p(){const{viewport:e,setViewport:t}=C(),[n,r]=(0,o.useState)(!1),a=(0,o.useRef)(null);return(0,o.useEffect)((()=>{function e(e){null==a.current||a.current.contains(e.target)||r(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[a.current]),(0,l.createElement)("div",{className:"viewport-switcher"},(0,l.createElement)("div",{className:"current-viewport viewport-item",ref:a,onClick:()=>{r((e=>!e))}},v.find((t=>t.value===e)).label),(0,l.createElement)("div",{className:"viewport-modal "+(n?"opened":"")},(0,l.createElement)("div",{className:"viewport-list"},v.map((n=>(0,l.createElement)("div",{key:n.value,onClick:()=>{var e;e=n.value,t(e)},className:"viewport-item "+(e===n.value?"selected":"")},n.label))))))}function g(){var e;const{attributes:t,setAttributes:n}=(0,o.useContext)(L),{viewport:r}=C();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",null,(0,l.createElement)("span",null,(0,c.__)("Columns","brandy")),(0,l.createElement)(p,null)),(0,l.createElement)(d,{value:t.layout_settings.columns[r.toLowerCase()],onChange:e=>{n({layout_settings:{...t.layout_settings,columns:{...t.layout_settings.columns,[r.toLowerCase()]:e}}})},min:1,max:5}),(null===(e=t.content_settings.pagination)||void 0===e||e)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",null,(0,c.__)("Products per page","brandy")),(0,l.createElement)(d,{value:t.layout_settings.number_products,onChange:e=>{n({layout_settings:{...t.layout_settings,number_products:e}})},min:3,max:30})))}function w({options:e=[],selected:t,onChange:n}){return(0,l.createElement)("select",{className:"brandy-editor-select",value:t,onChange:e=>{n(e.target.value)},onfocus:"this.size=10;",onblur:"this.size=1;"},e.map((e=>(0,l.createElement)("option",{value:e.value},e.label))))}const b={display:"flex",alignItems:"center",justifyContent:"space-between"},h={marginBottom:10};function E(){var e,t,n;const{attributes:r,setAttributes:a}=(0,o.useContext)(L),i=e=>t=>{a({content_settings:{...r.content_settings,[e]:t}})};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{...b,...h}},(0,l.createElement)("span",null,(0,c.__)("Show sorting","brandy")),(0,l.createElement)(u.ToggleControl,{checked:null===(e=r.content_settings.show_sorting)||void 0===e||e,onChange:i("show_sorting")})),(0,l.createElement)("div",{style:{...b,...h}},(0,l.createElement)("span",null,(0,c.__)("Pagination","brandy")),(0,l.createElement)(u.ToggleControl,{checked:null===(t=r.content_settings.pagination)||void 0===t||t,onChange:i("pagination")})),(0,l.createElement)("div",{style:h},(0,l.createElement)("div",null,(0,c.__)("Order by","brandy")),(0,l.createElement)(w,{selected:null!==(n=r.content_settings.order_by)&&void 0!==n?n:"latest",onChange:i("order_by"),options:[{label:(0,c.__)("Popularity","brandy"),value:"popularity"},{label:(0,c.__)("Average rating","brandy"),value:"rating"},{label:(0,c.__)("Latest","brandy"),value:"latest"},{label:(0,c.__)("Price: low to high","brandy"),value:"lowest"},{label:(0,c.__)("Price: high to low","brandy"),value:"highest"}]})))}function _({title:e,initialOpen:t=!1,children:n}){return(0,l.createElement)(u.PanelBody,{title:e,initialOpen:t,className:"brandy-editor-panel-body"},n)}function y(){return(0,l.createElement)(a.InspectorControls,{key:"setting"},(0,l.createElement)("div",{className:"brandy-editor all-products-settings"},(0,l.createElement)(_,{title:(0,c.__)("Layout settings","brandy")},(0,l.createElement)(g,null)),(0,l.createElement)(_,{title:(0,c.__)("Content settings","brandy")},(0,l.createElement)(E,null))))}const f=JSON.parse('{"u2":"brandy/all-products","Y4":{"A":{"type":"object","default":{"columns":{"desktop":4,"tablet":2,"mobile":1},"number_products":9}},"l":{"type":"object","default":{"show_sorting":true,"pagination":true,"order_by":"latest"}}}}'),L=(0,o.createContext)({});function k(){return"Loading..."}(0,r.registerBlockType)(f.u2,{edit:function({attributes:e,setAttributes:t,clientId:n}){const r=(0,a.useBlockProps)(),i=(0,o.useMemo)((()=>{var t,n;return{layout_settings:null!==(t=e.layout_settings)&&void 0!==t?t:f.Y4.A,content_settings:null!==(n=e.content_settings)&&void 0!==n?n:f.Y4.l}}),[e]),c=(0,o.useMemo)((()=>({attributes:i,setAttributes:t})),[i,t]);return(0,l.createElement)("div",{...r,className:r.className+" block-upgraded"},(0,l.createElement)(L.Provider,{value:c},(0,l.createElement)(y,null),(0,l.createElement)(s(),{block:"brandy/all-products",LoadingResponsePlaceholder:k,attributes:i})))},icon:(0,l.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M12.001 21C11.6142 21 11.2438 20.8033 11.0121 20.4755C11.0038 20.4624 10.9893 20.4428 10.9769 20.4209C10.6376 19.9292 10.1783 19.5184 9.6549 19.2387C9.1356 18.9612 8.57493 18.8191 7.98736 18.8191C7.44531 18.8191 6.90532 18.7579 6.38189 18.6355C5.26468 18.3777 4.19921 17.8379 3.3013 17.0753C1.51998 15.5631 0.5 13.3144 0.5 10.9106C0.5 9.32633 0.942748 7.79883 1.78272 6.48768C2.78821 4.91866 4.28816 3.78014 6.00742 3.27971C6.64878 3.09397 7.31497 3 7.98736 3H16.0126C16.685 3 17.3512 3.09397 17.9926 3.27971C19.7118 3.77795 21.2139 4.91866 22.2173 6.48768C23.0573 7.79665 23.5 9.32633 23.5 10.9106C23.5 13.3166 22.478 15.5631 20.6966 17.0753C19.7987 17.8379 18.7333 18.3777 17.616 18.6355C17.0926 18.7579 16.5526 18.8191 16.0106 18.8191C15.423 18.8191 14.8623 18.959 14.343 19.2365C13.8237 19.514 13.3644 19.9249 13.0189 20.4231L12.9796 20.4821C12.7417 20.8164 12.3859 21 12.001 21ZM7.98943 3.65776C7.3729 3.65776 6.76257 3.74517 6.17293 3.91562C4.59643 4.37234 3.21854 5.41908 2.29788 6.85699C1.52825 8.05669 1.12274 9.45963 1.12274 10.9106C1.12274 13.1156 2.05995 15.1763 3.69439 16.5661C4.51781 17.2654 5.49434 17.7593 6.51845 17.9974C6.99843 18.1089 7.4929 18.1657 7.99151 18.1657C8.67631 18.1657 9.33215 18.3296 9.93834 18.6552C10.5487 18.9808 11.0845 19.4616 11.49 20.0494L11.5128 20.0844C11.6307 20.2505 11.8086 20.3444 12.0052 20.3444C12.1955 20.3444 12.3714 20.2526 12.4893 20.0953L12.5183 20.0538C12.932 19.4572 13.4658 18.9808 14.072 18.6574C14.6782 18.334 15.334 18.1679 16.0188 18.1679C16.5154 18.1679 17.0119 18.1111 17.4919 17.9996C18.516 17.7614 19.4925 17.2676 20.316 16.5683C21.9504 15.1806 22.8876 13.1199 22.8876 10.9128C22.8876 9.46182 22.48 8.05888 21.7125 6.85917C20.7897 5.41908 19.4139 4.37453 17.8354 3.91781C17.2478 3.74736 16.6354 3.65995 16.0188 3.65995H7.98943V3.65776Z",fill:"#00FE"}))})}},n={};function l(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,l),a.exports}l.m=t,e=[],l.O=(t,n,r,a)=>{if(!n){var o=1/0;for(u=0;u<e.length;u++){for(var[n,r,a]=e[u],i=!0,s=0;s<n.length;s++)(!1&a||o>=a)&&Object.keys(l.O).every((e=>l.O[e](n[s])))?n.splice(s--,1):(i=!1,a<o&&(o=a));if(i){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,r,a]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={855:0,30:0};l.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[o,i,s]=n,c=0;if(o.some((t=>0!==e[t]))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(s)var u=s(l)}for(t&&t(n);c<o.length;c++)a=o[c],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(u)},n=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=l.O(void 0,[30],(()=>l(862)));r=l.O(r)})();
  • brandy-blocks/trunk/inc/Packages/build/blocks/AllProducts/style-index.css

    r3060884 r3076429  
    1 .brandy-product-list{-moz-column-gap:3rem;column-gap:3rem;display:grid}@media screen and (min-width:881px){.brandy-product-list[desktop-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.brandy-product-list[desktop-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.brandy-product-list[desktop-columns="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}.brandy-product-list[desktop-columns="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}.brandy-product-list[desktop-columns="6"]{grid-template-columns:repeat(6,minmax(0,1fr))}.brandy-product-list[desktop-columns="7"]{grid-template-columns:repeat(7,minmax(0,1fr))}.brandy-product-list[desktop-columns="8"]{grid-template-columns:repeat(8,minmax(0,1fr))}.brandy-product-list[desktop-columns="9"]{grid-template-columns:repeat(9,minmax(0,1fr))}.brandy-product-list[desktop-columns="10"]{grid-template-columns:repeat(10,minmax(0,1fr))}.brandy-product-list[desktop-columns="11"]{grid-template-columns:repeat(11,minmax(0,1fr))}.brandy-product-list[desktop-columns="12"]{grid-template-columns:repeat(12,minmax(0,1fr))}.brandy-product-list[desktop-columns="13"]{grid-template-columns:repeat(13,minmax(0,1fr))}.brandy-product-list[desktop-columns="14"]{grid-template-columns:repeat(14,minmax(0,1fr))}.brandy-product-list[desktop-columns="15"]{grid-template-columns:repeat(15,minmax(0,1fr))}.brandy-product-list[desktop-columns="16"]{grid-template-columns:repeat(16,minmax(0,1fr))}.brandy-product-list[desktop-columns="17"]{grid-template-columns:repeat(17,minmax(0,1fr))}.brandy-product-list[desktop-columns="18"]{grid-template-columns:repeat(18,minmax(0,1fr))}.brandy-product-list[desktop-columns="19"]{grid-template-columns:repeat(19,minmax(0,1fr))}.brandy-product-list[desktop-columns="20"]{grid-template-columns:repeat(20,minmax(0,1fr))}}@media screen and (min-width:371px)and (max-width:880px){.brandy-product-list[tablet-columns="1"]{grid-template-columns:repeat(1,minmax(0,1fr))}.brandy-product-list[tablet-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.brandy-product-list[tablet-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}.brandy-product-list .product{display:flex;flex-direction:column;padding-bottom:50px;position:relative}.brandy-product-list .product .brandy-block-product__thumbnail{margin-bottom:15px;position:relative}.brandy-product-list .product .brandy-block-product__content{align-items:center;display:flex;flex-direction:column;gap:5px}.brandy-product-list .product .brandy-block-product__image img{aspect-ratio:3/4;background-color:#f5f5f5;border-radius:.75rem;display:block;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;transition-duration:.2s;transition-property:background-color;transition-timing-function:ease-in-out;width:100%}.brandy-product-list .product .brandy-block-product__image:hover img{background-color:rgba(90,109,128,.1)}.brandy-product-list .product .brandy-block-product__title{color:var(--heading,var(--body_text));margin-bottom:0;margin-top:0;position:relative;text-align:center;width:-moz-fit-content;width:fit-content}.brandy-product-list .product .brandy-block-product__title a{color:inherit;display:inline}.brandy-product-list .product .brandy-block-product__category{font-size:.875rem;line-height:1.25rem}.brandy-product-list .product .price del{color:#5a6d80;font-size:13px;margin-right:4px}.brandy-product-list .product .brandy-block-product__add-to-cart.loading:after{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear;color:var(--palette_8);content:"";font-family:dashicons;margin-left:7px}.brandy-product-list .product .added_to_cart{margin-right:0}.brandy-product-list .product .brandy-block-product__sale-flash{background:var(--wc-sale-badge-background-color,#ffac70)!important;border-color:var(--wc-sale-badge-border-color,#000)!important;border-radius:var(--wc-sale-badge-border-radius,.5rem)!important;border-style:solid!important;border-width:var(--wc-sale-badge-border-width,0)!important;color:var(--wc-sale-badge-text-color,#fff)!important;font-size:var(--wc-sale-badge-font-size,.875rem)!important;left:.875rem;line-height:1.3!important;padding:var(--wc-sale-badge-padding,1px .5rem)!important;position:absolute;top:.875rem;z-index:10!important}.brandy-block-all-products__sort{width:-moz-fit-content;width:fit-content}.brandy-block-product-placeholder{display:flex;flex-direction:column;gap:7px;padding-bottom:2rem;text-align:center}.brandy-block-product-placeholder__image{background-color:currentColor!important;border:0!important;border-radius:7px;box-shadow:none;color:currentColor!important;display:block;line-height:1;max-width:100%!important;opacity:.15;outline:0!important;overflow:hidden!important;pointer-events:none;position:relative!important;width:100%;width:auto;z-index:1}.brandy-block-product-placeholder__image img{background-color:#f5f5f5;border-radius:.75rem;display:block;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;transition-duration:.2s;transition-property:background-color;transition-timing-function:ease-in-out;visibility:hidden;width:100%}.brandy-block-product-placeholder__image:after{animation:loading__animation 1.5s ease-in-out infinite;background-image:linear-gradient(90deg,currentColor,hsla(0,0%,96%,.302),currentColor);background-repeat:no-repeat;content:" ";display:block;height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}.brandy-block-product-placeholder__title:before{width:100%;width:7em}.brandy-block-product-placeholder__price:before,.brandy-block-product-placeholder__title:before{background-color:currentColor!important;border:0!important;border-radius:.25rem;box-shadow:none;color:currentColor!important;content:".";display:block;display:inline-block;line-height:1;max-width:100%!important;opacity:.15;outline:0!important;overflow:hidden!important;pointer-events:none;position:relative!important;z-index:1}.brandy-block-product-placeholder__price:before{width:100%;width:5em}.brandy-block-product-placeholder__add-to-cart{align-items:center;display:flex;flex-direction:column;gap:12px;justify-content:center;white-space:normal;word-break:break-word}.brandy-block-product-placeholder__add-to-cart button{margin:auto;min-height:45px;min-width:110px;overflow:hidden;position:relative}.brandy-block-product-placeholder__add-to-cart button[disabled]{color:transparent!important}.brandy-block-product-placeholder__add-to-cart button:after{animation:loading__animation 1.5s ease-in-out infinite;background-image:linear-gradient(90deg,currentColor,hsla(0,0%,96%,.302),currentColor);background-repeat:no-repeat;color:#c4c4c4;content:" ";display:block;height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}.brandy-block-pagination .page-numbers{align-items:center;display:inline-flex;flex-wrap:wrap;gap:10px}.brandy-block-pagination .page-numbers>button{background:#f2f2f2!important;color:#5a6d80!important;height:2.5rem!important;padding:.75rem .5rem!important;width:2.5rem!important}.brandy-block-pagination .page-numbers>button.current-page,.brandy-block-pagination .page-numbers>button:hover{background:var(--palette_3,#122940)!important;color:#fff!important}
     1.brandy-block-pagination .page-numbers>button:hover{background:var(--palette_3,#122940)!important;color:#fff!important}
  • brandy-blocks/trunk/inc/Packages/build/blocks/Pricing/index.asset.php

    r3060884 r3076429  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'e0987c6797553673cc2f');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'e');
  • brandy-blocks/trunk/inc/Packages/build/blocks/Pricing/index.js

    r3060884 r3076429  
    1 (()=>{var e,t={65:(e,t,n)=>{"use strict";var r=n(196);const o=window.wp.blocks,a=window.wp.blockEditor,i=window.wp.element,l=(e="default",t)=>({[`--${e}-font-size`]:t.font_size+"px",[`--${e}-bold`]:t.bold?"bold":"",[`--${e}-font-styles`]:t.italic?"italic":"normal",[`--${e}-text-transform`]:t.text_transform,[`--${e}-font-weight`]:t.font_weight+""}),c=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,s=e=>`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,d=()=>(0,r.createElement)("svg",{width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M0 2.82227H2V0.822266H0V2.82227ZM0 8.82227H2V6.82227H0V8.82227ZM0 14.8223H2V12.8223H0V14.8223ZM6 0.822266V2.82227H8V0.822266H6ZM6 8.82227H8V6.82227H6V8.82227ZM6 14.8223H8V12.8223H6V14.8223Z",fill:"#7F94A9"})),u=()=>(0,r.createElement)("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 7.00017C16.5151 10.0655 12.7959 13 9.4998 13C6.20371 13 2.48449 10.0655 1 6.99981",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 7.00017C16.5151 3.93484 12.7965 1 9.50039 1C6.2043 1 2.48449 3.93412 1 6.99981",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{d:"M12.05 7C12.05 8.42016 10.9083 9.57143 9.5 9.57143C8.09167 9.57143 6.95 8.42016 6.95 7C6.95 5.57984 8.09167 4.42857 9.5 4.42857C10.9083 4.42857 12.05 5.57984 12.05 7Z",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})),p=()=>(0,r.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M7.87727 3.3562C8.40917 3.23903 8.95373 3.18045 9.5 3.18166C14.9091 3.18166 18 8.99984 18 8.99984C17.5309 9.82574 16.9715 10.6033 16.3309 11.3198M11.1382 10.5417C10.926 10.756 10.67 10.928 10.3857 11.0472C10.1013 11.1665 9.79433 11.2306 9.48307 11.2357C9.17181 11.2409 8.86263 11.187 8.57397 11.0773C8.28532 10.9676 8.0231 10.8042 7.80297 10.597C7.58284 10.3899 7.4093 10.1431 7.29271 9.8714C7.17612 9.59972 7.11886 9.30873 7.12435 9.01577C7.12984 8.72282 7.19797 8.43391 7.32468 8.16628C7.45138 7.89864 7.63406 7.65777 7.86182 7.45802M14.09 13.3198C12.7691 14.2675 11.1607 14.7925 9.5 14.818C4.09091 14.818 1 8.99984 1 8.99984C1.96119 7.31395 3.29433 5.84101 4.91 4.67984L14.09 13.3198Z",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{d:"M1 1L18 17",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})),h=window.wp.components;function g({items:e}){return(0,r.createElement)(h.TabPanel,{className:"brandy-tab-panel",activeClass:"active-tab",tabs:e},(e=>e.component))}const m=window.wp.i18n;function f({color:e,onChange:t}){var n;const o=(0,a.useSetting)("color.palette.theme"),l=(0,a.useSetting)("color.palette.default"),[c,s]=(0,i.useState)(!1),d=[{name:(0,m.__)("Theme","brandy"),colors:o},{name:(0,m.__)("Default","brandy"),colors:l}],u=(0,i.useRef)(null),p=(0,i.useRef)(null);return(0,i.useEffect)((()=>{function e(e){u.current?.contains(e.target)||p.current?.parentNode?.contains(e.target)||s(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[u.current,p.current,s]),(0,r.createElement)("div",{className:"color-picker"},(0,r.createElement)("div",{className:"color-picker__head"},(0,r.createElement)("div",{className:"color-indicator",style:{background:e},onClick:e=>{c?u.current?.contains(e.target)&&!p.current?.parentNode?.contains(e.target)&&s(!1):s(!0)},ref:u},c&&(0,r.createElement)(h.Popover,{className:"brandy-color-popover",ref:p},(0,r.createElement)("div",{className:"brandy-color-modal"},(0,r.createElement)(h.ColorPalette,{colors:d,value:e,onChange:t}))))),(0,r.createElement)("span",{className:"color-picker__tail"},null!==(n=e?.replace("#","").replace("var(--","").replace(")",""))&&void 0!==n?n:"Initial"))}function b({title:e,style:t}){return(0,r.createElement)(h.BaseControl.VisualLabel,{className:"setting__label",style:t},e)}function v({value:e,onChange:t,min:n,max:o,label:a=""}){return(0,r.createElement)(h.RangeControl,{label:a,className:"brandy-editor-slider",value:e,onChange:t,min:n,max:o})}const _=({attribute:e,value:t,title:n,onChange:o,min:a=0,max:i})=>(0,r.createElement)("div",{className:"brandy-editor-spacing__item"},(0,r.createElement)("input",{type:"number",value:t,onChange:e=>{let t=e.target.value;t<a&&(t=a),i&&t>i&&(t=i),""!=t&&null!=t||(t=0),o(t)},min:a}),(0,r.createElement)("span",null,n)),y=[{key:"top",label:(0,m.__)("Top","brandy")},{key:"right",label:(0,m.__)("Right","brandy")},{key:"bottom",label:(0,m.__)("Bottom","brandy")},{key:"left",label:(0,m.__)("Left","brandy")}];function E({value:e,onChange:t}){return(0,r.createElement)("div",{className:"brandy-editor-spacing"},y.map((n=>{return(0,r.createElement)(_,{attribute:n.key,value:e[n.key],title:n.label,onChange:(o=n.key,n=>{e.constrain?t({...e,top:n,left:n,right:n,bottom:n}):t({...e,[o]:n})})});var o})),(0,r.createElement)("div",{className:"brandy-editor-spacing__constrain "+(e.constrain?"constrain-active":""),onClick:()=>{const n=!e.constrain,r={...e};n&&(r.right=e.top,r.bottom=e.top,r.left=e.top),t({...r,constrain:n})}},(0,r.createElement)("svg",{width:"10",height:"20",viewBox:"0 0 10 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M5 6V14M9 13V15C9 16.0609 8.57857 17.0783 7.82843 17.8284C7.07828 18.5786 6.06087 19 5 19C3.93913 19 2.92172 18.5786 2.17157 17.8284C1.42143 17.0783 1 16.0609 1 15V13M9 7V5C9 3.93913 8.57857 2.92172 7.82843 2.17157C7.07828 1.42143 6.06087 1 5 1C3.93913 1 2.92172 1.42143 2.17157 2.17157C1.42143 2.92172 1 3.93913 1 5V7",stroke:"#5a6d80","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))))}function w({title:e,style:t}){return(0,r.createElement)(h.BaseControl.VisualLabel,{className:"setting__sub-label",style:t},e)}function C({options:e=[],selected:t,onChange:n,className:o=""}){return(0,r.createElement)(h.ButtonGroup,{className:`brandy-editor-btn-group ${o}`},e.map((e=>(0,r.createElement)(h.Button,{onClick:()=>{var t;t=e.value,n(t)},className:t===e.value?"selected":""},e.label))))}const x=[{label:(0,r.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M5.86111 5V11H17.3999V5H5.86111ZM0.616211 16H2.18968V0H0.616211V16Z",fill:"#5A6D80"})),value:"left"},{label:(0,r.createElement)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:"#5A6D80"})),value:"center"},{label:(0,r.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M0.550781 11H12.0896V5H0.550781V11ZM15.761 0V16H17.3345V0H15.761Z",fill:"#5A6D80"})),value:"right"}];function k({onChange:e,selected:t}){return(0,r.createElement)(C,{options:x,onChange:e,selected:t,className:"brandy-btn-group-icons"})}function D({options:e=[],selected:t,onChange:n}){return(0,r.createElement)("select",{className:"brandy-editor-select",value:t,onChange:e=>{n(e.target.value)},onfocus:"this.size=10;",onblur:"this.size=1;"},e.map((e=>(0,r.createElement)("option",{value:e.value},e.label))))}const S=[{label:"None",value:"none"},{label:"Small",value:"small"},{label:"Regular",value:"regular"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}];function N({selected:e,onChange:t,...n}){return(0,r.createElement)("div",{className:"brandy-editor-shadow"},(0,r.createElement)(D,{options:S,selected:e,onChange:e=>{"none"===e&&t({type:e,x:0,y:0,blur:0,spread:0,color:"#ffffff"}),"small"==e&&t({type:e,x:0,y:3,blur:10,spread:0,color:"rgba(0, 0, 0, 0.05)"}),"regular"==e&&t({type:e,x:0,y:4,blur:16,spread:0,color:"rgba(0, 0, 0, 0.06)"}),"medium"==e&&t({type:e,x:0,y:6,blur:20,spread:0,color:"rgba(0, 0, 0, 0.10)"}),"large"==e&&t({type:e,x:0,y:10,blur:26,spread:0,color:"rgba(0, 0, 0, 0.16)"})},...n}))}const M=({style:e,children:t})=>(0,r.createElement)("div",{style:{marginBottom:20,paddingBottom:20,borderBottom:"1px solid #F0F2F4",...e}},t);function T({title:e,initialOpen:t=!1,children:n}){return(0,r.createElement)(h.PanelBody,{title:e,initialOpen:t,className:"brandy-editor-panel-body"},n)}function O({initialStatus:e=!1,title:t=(0,m.__)("Menu title","brandy"),className:n="",children:o}){const[a,l]=(0,i.useState)(e);return(0,r.createElement)("div",{className:`brandy-collapse-menu ${a?"collapse-open":""} ${n}`},(0,r.createElement)("div",{className:"brandy-collapse-menu__header",onClick:()=>{l((e=>!e))}},(0,r.createElement)("span",{className:"collapse-title"},t),(0,r.createElement)("span",{className:"collapse-arrow"},(0,r.createElement)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11 2.15974L5.5 6.87402L0 2.15974L0.9 0.874023L5.5 4.73117L10 0.874023L11 2.15974Z",fill:"#C6D4E1"})))),a&&(0,r.createElement)("div",{className:"brandy-collapse-menu__content"},o))}function I({children:e,...t}){return(0,r.createElement)(O,{className:"styles-card",...t},e)}function A(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,background_color:{...e.highlight_settings.card.background_color,[n]:r}}}})},o=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,border_color:{...e.highlight_settings.card.border_color,[n]:r}}}})};return(0,r.createElement)(I,{title:(0,m.__)("Background & Padding","brandy")},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background colors","brandy")}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.background_color.normal,onChange:n("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.background_color.hover,onChange:n("hover")})))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Border colors","brandy")}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.border_color.normal,onChange:o("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.border_color.hover,onChange:o("hover")})))))}const P={marginBottom:10},B={marginBottom:10,textTransform:"capitalize"};function H(){return(0,r.createElement)(I,{title:(0,m.__)("Card Item Color","brandy")},(0,r.createElement)(L,null),(0,r.createElement)($,null),(0,r.createElement)(j,null),(0,r.createElement)(R,null),(0,r.createElement)(F,null))}function L(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne);return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card Title","brandy"),style:P}),(0,r.createElement)(f,{color:e.highlight_settings.card.title_color,onChange:n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,title_color:n}}})}}))}function $(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,[n]:r}}})};return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card Pricing","brandy"),style:P}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Price","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.pricing_price_color,onChange:n("pricing_price_color")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Period","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.pricing_period_color,onChange:n("pricing_period_color")}))))}function F(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("normal");return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card Button","brandy"),style:P}),(0,r.createElement)(D,{options:[{label:"Fill",value:"fill"},{label:"Outline",value:"outline"}],selected:e.highlight_settings.card.button_type,onChange:n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,button_type:n}}})}}),(0,r.createElement)("div",{style:{marginTop:10}},(0,r.createElement)(C,{options:[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}],selected:n,onChange:o})),(0,r.createElement)("div",{className:"brandy-editor-group-color",style:{marginTop:10}},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Text color","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.button_text_color[n],onChange:(a=n,n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,button_text_color:{...e.highlight_settings.card.button_text_color,[a]:n}}}})})})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:"fill"===e.highlight_settings.card.button_type?(0,m.__)("Background color","brandy"):(0,m.__)("Border color","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.button_background_color[n],onChange:(n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,button_background_color:{...e.highlight_settings.card.button_background_color,[n]:r}}}})})(n)}))));var a}function j(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne);return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card description","brandy"),style:P}),(0,r.createElement)(f,{color:e.highlight_settings.card.description_color,onChange:n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,description_color:n}}})}}))}function R(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("checked"),a=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,[n]:r}}})};return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("List features","brandy"),style:P}),(0,r.createElement)(C,{options:[{label:"Yes",value:"checked"},{label:"No",value:"unchecked"}],selected:n,onChange:o}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10,marginTop:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Icon","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card[`${n}_feature_icon_color`],onChange:a(`${n}_feature_icon_color`)})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background Icon","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card[`${n}_feature_icon_background_color`],onChange:a(`${n}_feature_icon_background_color`)}))),(0,r.createElement)("div",{style:{marginTop:10}},(0,r.createElement)(b,{title:(0,m.__)("Title","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card[`${n}_feature_title_color`],onChange:a(`${n}_feature_title_color`)})))}function V(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne);return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Select card","brandy"),style:{marginBottom:10}}),(0,r.createElement)(D,{options:[{label:(0,m.__)("None","brandy"),value:0},...Array.from({length:e.number_card}).map(((e,t)=>({label:`Card ${t+1}`,value:t+1})))],selected:e.highlight_settings.selected,onChange:n=>{t({highlight_settings:{...e.highlight_settings,selected:n}})}}))}var Z=n(941);const Y=[{key:"bold",label:(0,r.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11.74 8.34C13.5133 8.91333 14.4 10.14 14.4 12.02C14.4 13.2733 13.9933 14.2533 13.18 14.96C12.3667 15.6533 11.2533 16 9.84 16H4V2H9.28C11.9467 2 13.28 3.12667 13.28 5.38C13.28 6.76667 12.7667 7.75333 11.74 8.34ZM6.56 7.5H8.9C9.52667 7.5 9.99333 7.37333 10.3 7.12C10.6067 6.85333 10.76 6.44667 10.76 5.9C10.76 5.32667 10.6067 4.91333 10.3 4.66C9.99333 4.40667 9.52667 4.28 8.9 4.28H6.56V7.5ZM9.46 13.72C10.2067 13.72 10.7733 13.5733 11.16 13.28C11.56 12.9733 11.76 12.46 11.76 11.74C11.76 11.0333 11.5533 10.5333 11.14 10.24C10.74 9.93333 10.18 9.78 9.46 9.78H6.56V13.72H9.46Z",fill:"#5A6D80"}))},{key:"italic",label:(0,r.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11 2L8.6 16H7L9.4 2H11Z",fill:"#5A6D80"}))}],z=[{value:"none",label:"None"},{value:"uppercase",label:"AA"},{value:"capitalize",label:"Aa"}],X=[{value:100,label:"100"},{value:200,label:"200"},{value:300,label:"300"},{value:400,label:"400"},{value:500,label:"500"},{value:600,label:"600"},{value:700,label:"700"}];function U({value:e,onChange:t}){const[n,o]=(0,i.useState)(!1),a=(0,i.useRef)(null),l=(0,i.useRef)(null),c=n=>r=>{t({...e,[n]:r})};return(0,i.useEffect)((()=>{function e(e){a.current?.contains(e.target)||l.current?.parentNode?.contains(e.target)||o(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[a.current,l.current,o]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"typography-indicator",onClick:e=>{n?a.current?.contains(e.target)&&!l.current?.parentNode?.contains(e.target)&&o(!1):o(!0)},ref:a},(0,r.createElement)("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0002 2.62506L9.42878 0L2.14307 7.43766L4.7145 10.0627L12.0002 2.62506ZM4.71226 10.0622L2.14083 7.4371L1.28369 10.9372L4.71226 10.0622ZM5.99854 12.6869H-0.00146484V13.9995H5.99854V12.6869Z",fill:"#C6D4E1"})),n&&(0,r.createElement)(h.Popover,{ref:l},(0,r.createElement)("div",{className:"brandy-typography-modal"},(0,r.createElement)("div",{className:"brandy-typography-group",style:{marginTop:10}},(0,r.createElement)(b,{title:(0,m.__)("Types","brandy")}),(0,r.createElement)("div",{className:"brandy-typography__selector"},(0,r.createElement)("div",{className:"brandy-typography__selection-list"},Y.map((n=>{let o=e[n.key];return"underline"===n.key&&(o="underline"===e.decoration),"line_through"===n.key&&(o="line-through"===e.decoration),(0,r.createElement)("span",{className:"brandy-typography__selection-item "+(o?"item-active":""),onClick:()=>{var r;r=n.key,["underline","line_through"].includes(r)?t("underline"!==r?"line_through"!==r?{...e,decoration:"auto"}:{...e,decoration:"line-through"===e.decoration?"auto":"line-through"}:{...e,decoration:"underline"===e.decoration?"auto":"underline"}):t({...e,[r]:!e[r]})}},n.label)}))),(0,r.createElement)("div",{className:"brandy-typography__selection-list"},(0,r.createElement)(D,{options:Array.from({length:50},((e,t)=>t+11)).map((e=>({label:e+"px",value:e}))),selected:e.font_size,onChange:c("font_size")})),(0,r.createElement)(D,{options:z,selected:e.text_transform,onChange:c("text_transform")}))),(0,r.createElement)("div",{className:"brandy-typography-group brandy-typography__font-weight"},(0,r.createElement)(b,{title:(0,m.__)("Weight","brandy"),style:{display:"block"}}),(0,r.createElement)(D,{options:X,selected:e.font_weight,onChange:c("font_weight")}))))))}function G({title:e,onToggleVisible:t,visible:n=null}){return(0,r.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",gap:8}},(0,r.createElement)("span",{className:"item-block-drag-handler",onClick:e=>{e.stopPropagation()}},(0,r.createElement)(d,null)),(0,r.createElement)("span",null,e)),null!=n&&(0,r.createElement)("span",{className:"item-block-visible-icon "+(n?"icon-visible":"icon-invisible"),style:{padding:5,cursor:"pointer",display:"flex"},onClick:e=>{e.stopPropagation(),e.preventDefault(),t()}},n?(0,r.createElement)(u,null):(0,r.createElement)(p,null)))}const W=[{label:"25%",value:25},{label:"50%",value:50},{label:"75%",value:75},{label:"100%",value:100}],K=[{label:"Super",value:"super"},{label:"Bottom",value:"bottom"},{label:"Sub",value:"sub"}],q={highlight_badge:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{t({card_highlight_badge:{...e.card_highlight_badge,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Highlight badge","brandy")})},(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_highlight_badge.typography,onChange:n("typography")})),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10,marginTop:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Title","brandy"),style:{marginBottom:10}}),(0,r.createElement)(f,{color:e.card_highlight_badge.title_color,onChange:n("title_color")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background","brandy"),style:{marginBottom:10}}),(0,r.createElement)(f,{color:e.card_highlight_badge.background_color,onChange:n("background_color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Padding","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_highlight_badge.padding,onChange:n("padding")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_highlight_badge.margin,onChange:n("margin")})))},title:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{n in e.card_title&&t({card_title:{...e.card_title,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Title","brandy"),visible:e.card_title.visible,onToggleVisible:()=>{n("visible")(!e.card_title.visible)}})},(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy"),style:{marginBottom:0}}),(0,r.createElement)(U,{value:e.card_title.typography,onChange:n("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_title.color,onChange:n("color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy")}),(0,r.createElement)(E,{value:e.card_title.margin,onChange:n("margin")})))},pricing:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{n in e.card_pricing?.price&&t({card_pricing:{...e.card_pricing,price:{...e.card_pricing.price,[n]:r}}})},o=n=>r=>{n in e.card_pricing?.period&&t({card_pricing:{...e.card_pricing,period:{...e.card_pricing.period,[n]:r}}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Pricing","brandy"),visible:e.card_pricing.visible,onToggleVisible:()=>{t({card_pricing:{...e.card_pricing,visible:!e.card_pricing.visible}})}})},(0,r.createElement)("div",{className:"pricing-group"},(0,r.createElement)(b,{title:(0,m.__)("Price","brandy"),style:{marginBottom:0}}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_pricing.price.typography,onChange:n("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_pricing.price.color,onChange:n("color")})))),(0,r.createElement)("div",{className:"pricing-group"},(0,r.createElement)(b,{title:(0,m.__)("Period","brandy"),style:{marginBottom:0}}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_pricing.period.typography,onChange:o("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_pricing.period.color,onChange:o("color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Position","brandy")}),(0,r.createElement)(C,{options:K,selected:e.card_pricing.period.position,onChange:o("position")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_pricing.margin,onChange:n=>{t({card_pricing:{...e.card_pricing,margin:n}})}})))},description:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{n in e.card_description&&t({card_description:{...e.card_description,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Description","brandy"),visible:e.card_description.visible,onToggleVisible:()=>{n("visible")(!e.card_description.visible)}})},(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy"),style:{marginBottom:0}}),(0,r.createElement)(U,{value:e.card_description.typography,onChange:n("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_description.color,onChange:n("color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy")}),(0,r.createElement)(E,{value:e.card_description.margin,onChange:n("margin")})))},list_features:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("checked"),a=r=>o=>{t({card_features:{...e.card_features,[n]:{...e.card_features[n],[r]:o}}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("List features","brandy"),visible:e.card_features.visible,onToggleVisible:()=>{t({card_features:{...e.card_features,visible:!e.card_features.visible}})}})},(0,r.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:20}},(0,r.createElement)(C,{options:[{label:"Checked",value:"checked"},{label:"Unchecked",value:"unchecked"}],selected:n,onChange:o}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy"),style:{marginBottom:0}}),(0,r.createElement)(U,{value:e.card_features[n].typography,onChange:a("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Title","brandy"),style:{textTransform:"capitalize"}}),(0,r.createElement)(f,{color:e.card_features[n].title_color,onChange:a("title_color")})),(0,r.createElement)("div",{className:"brandy-editor-group-color",style:{display:"flex",justifyContent:"space-between",gap:10}},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Icon","brandy"),style:{textTransform:"capitalize"}}),(0,r.createElement)(f,{color:e.card_features[n].icon_color,onChange:a("icon_color")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background icon","brandy"),style:{textTransform:"capitalize"}}),(0,r.createElement)(f,{color:e.card_features[n].icon_background_color,onChange:a("icon_background_color")}))),(0,r.createElement)("div",{style:{borderTop:"1px solid #F0F2F4",paddingTop:20}},(0,r.createElement)(b,{title:(0,m.__)("Item spacing")}),(0,r.createElement)(v,{value:e.card_features.item_spacing,onChange:n=>{t({card_features:{...e.card_features,item_spacing:n}})}}))))},button:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("normal"),a=n=>r=>{n in e.card_button&&t({card_button:{...e.card_button,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Button","brandy"),visible:e.card_button.visible,onToggleVisible:()=>{a("visible")(!e.card_button.visible)}})},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Button type","brandy"),style:{marginBottom:10}}),(0,r.createElement)(D,{options:[{label:"Fill",value:"fill"},{label:"Outline",value:"outline"}],selected:e.card_button.type,onChange:a("type")})),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_button.typography,onChange:a("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(C,{options:[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}],selected:n,onChange:o}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10,marginTop:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Text Color","brandy"),style:{marginBottom:10}}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_button.color[n],onChange:(l=n,n=>{t({card_button:{...e.card_button,color:{...e.card_button.color,[l]:n}}})})}))),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:"fill"===e.card_button.type?(0,m.__)("Background Color","brandy"):(0,m.__)("Border Color","brandy"),style:{marginBottom:10}}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_button.background_color[n],onChange:(n=>r=>{t({card_button:{...e.card_button,background_color:{...e.card_button.background_color,[n]:r}}})})(n)}))))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Width","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(C,{options:W,selected:e.card_button.width,onChange:a("width")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Border radius","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_button.border_radius,onChange:a("border_radius")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Padding","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_button.padding,onChange:a("padding")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_button.margin,onChange:a("margin")})));var l}};function J(){var e;const{attributes:t,setAttributes:n}=(0,i.useContext)(ne),o=null!==(e=t.card_layout)&&void 0!==e?e:[];return(0,r.createElement)(Z.ReactSortable,{list:o,setList:e=>{n({card_layout:e.map((e=>e.toString()))});const t=new CustomEvent("newLayoutNotification",{detail:{card_layout:e.map((e=>e.toString()))}});window.dispatchEvent(t)},animation:150,easing:"ease-in-out",className:"pricing-card-layout-list",handle:".item-block-drag-handler"},o.map((e=>{const t=q[e];return!!t&&(0,r.createElement)(t,null)})))}const Q=[{name:"tab1",className:"tab-one",icon:()=>(0,r.createElement)("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6579 0.89917C16.3991 0.89917 17 1.50005 17 2.24128V12.9781C17 13.7193 16.3991 14.3202 15.6579 14.3202H12.5263V16.5571C12.5263 17.2983 11.9254 17.8992 11.1842 17.8992H1.34211C0.600881 17.8992 0 17.2983 0 16.5571V6.71496C0 5.97373 0.600881 5.37285 1.34211 5.37285H3.57895V2.24128C3.57895 1.50005 4.17983 0.89917 4.92105 0.89917H15.6579ZM9.8421 12.5307H15.2105V7.16233L9.8421 12.5307ZM1.78947 16.1097H10.7368V14.2965L4.92549 14.3158C4.18254 14.3182 3.57895 13.7166 3.57895 12.9737V7.16233H1.78947V16.1097ZM10.7368 2.68864H5.36842V8.05706L10.7368 2.68864Z",fill:"#000729"})),component:function(){var e;const{attributes:t,setAttributes:n}=(0,i.useContext)(ne),o=e=>r=>{n({card_settings:{...t.card_settings,[e]:r}})},a=e=>r=>{n({card_settings:{...t.card_settings,background:{...t.card_settings.background,[e]:r}}})},l=e=>r=>{n({card_settings:{...t.card_settings,border_color:{...t.card_settings.border_color,[e]:r}}})};return(0,r.createElement)("div",{className:"pricing-settings__general",style:{padding:"20px 10px",background:"#ffffff"}},(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Number of pricing")}),(0,r.createElement)(v,{min:1,max:4,value:null!==(e=t.number_card)&&void 0!==e?e:3,onChange:e=>{n({number_card:e}),t.highlight_settings?.selected>e&&n({highlight_settings:{...t.highlight_settings,selected:e}})}})),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Card content alignment")}),(0,r.createElement)(k,{selected:t.card_settings.horizontal_alignment,onChange:o("horizontal_alignment")})),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Card Backgrounds","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:t.card_settings.background.normal,onChange:a("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:t.card_settings.background.hover,onChange:a("hover")})))),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Card Borders","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:t.card_settings.border_color.normal,onChange:l("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:t.card_settings.border_color.hover,onChange:l("hover")})))),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Drop shadow","brandy")}),(0,r.createElement)(N,{selected:t.card_settings.shadow.type,onChange:e=>{n({card_settings:{...t.card_settings,shadow:e}})}})),(0,r.createElement)(M,{style:{marginBottom:0,borderBottom:0,paddingBottom:0}},(0,r.createElement)(b,{title:(0,m.__)("Card Dimensions","brandy")}),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Spacing","brandy")}),(0,r.createElement)(v,{value:t.card_settings.spacing,onChange:o("spacing"),min:10,max:100})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Padding","brandy")}),(0,r.createElement)(E,{value:t.card_settings.padding,onChange:o("padding")}))))}},{name:"tab2",className:"tab-two",icon:()=>(0,r.createElement)("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M19.125 7.19917L13.525 1.59917C12.825 0.89917 11.725 0.89917 11.025 1.59917L5.425 7.19917C4.725 7.89917 4.725 8.99917 5.425 9.69917L11.025 15.2992C11.325 15.5992 11.825 15.7992 12.225 15.7992C12.625 15.7992 13.125 15.5992 13.425 15.2992L19.025 9.69917C19.825 8.99917 19.825 7.79917 19.125 7.19917ZM1.525 8.19917L7.825 1.89917L6.825 0.89917L0.525 7.19917C-0.175 7.89917 -0.175 8.99917 0.525 9.69917L6.825 15.8992L7.925 14.7992L1.625 8.49917C1.425 8.49917 1.425 8.29917 1.525 8.19917Z",fill:"#000729"})),component:function(){return(0,r.createElement)("div",{className:"pricing-settings__styles"},(0,r.createElement)(T,{title:(0,m.__)("Item block","brandy")},(0,r.createElement)(J,null)),(0,r.createElement)(T,{title:(0,m.__)("Highlight card","brandy")},(0,r.createElement)(V,null),(0,r.createElement)(H,null),(0,r.createElement)(A,null)))}}];function ee(){return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)("div",{className:"brandy-editor pricing-settings"},(0,r.createElement)(g,{items:Q})))}const te=JSON.parse('{"u2":"brandy/pricing","Y4":{"y4":{"Z":3},"lF":{"Z":{"visible":true,"color":"var(--body_text, #000729)","margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false},"typography":{"font_size":26,"bold":false,"italic":false,"text_transform":"uppercase","font_weight":600}}},"Jj":{"Z":{"visible":true,"price":{"color":"var(--accent, #3858E9)","typography":{"font_size":36,"bold":false,"italic":false,"text_transform":"none","font_weight":600}},"period":{"color":"#3858E9","typography":{"font_size":14,"bold":false,"italic":false,"text_transform":"none","font_weight":600},"position":"sub"},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"hu":{"Z":{"visible":true,"color":"var(--secondary_text, #5A6D80)","typography":{"font_size":16,"bold":false,"italic":false,"text_transform":"none","font_weight":400},"margin":{"top":0,"left":0,"right":0,"bottom":15,"constrain":false}}},"qQ":{"Z":{"visible":true,"checked":{"title_color":"var(--body_text, #000729)","icon_color":"var(--accent, #3858E9)","icon_background_color":"#EBF1F5","typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":400}},"unchecked":{"title_color":"#ABB8C3","icon_color":"#FFFFFF","icon_background_color":"#D1D9E0","typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":400}},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false},"item_spacing":5}},"ys":{"Z":{"visible":true,"type":"fill","color":{"normal":"#ffffff","hover":"#ffffff"},"background_color":{"normal":"var(--accent, #3858E9)","hover":"var(--accent, #3858E9)"},"width":100,"border_radius":{"top":7,"left":7,"right":7,"bottom":7,"constrain":true},"margin":{"top":15,"left":0,"right":0,"bottom":0,"constrain":false},"padding":{"top":12,"left":20,"right":20,"bottom":12,"constrain":false},"typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":500}}},"V0":{"Z":{"horizontal_alignment":"left","background":{"normal":"#ffffff","hover":"#ffffff"},"border_color":{"normal":"#EBF1F5","hover":"var(--accent, #3858E9)"},"shadow":{"type":"none","x":0,"y":0,"blur":0,"spread":0,"color":"#ffffff"},"spacing":30,"padding":{"top":30,"right":30,"bottom":30,"left":30,"constrain":true}}},"yC":{"Z":{"title_color":"#FFFFFF","background_color":"#FABD00","typography":{"font_size":12,"bold":false,"italic":false,"text_transform":"uppercase","font_weight":600},"margin":{"top":10,"left":0,"right":0,"bottom":10,"constrain":false},"padding":{"top":5,"left":9,"right":9,"bottom":5,"constrain":false}}},"zU":{"Z":{"selected":2,"card":{"title_color":"var(--body_text, #000729)","pricing_price_color":"var(--accent, #3858E9)","pricing_period_color":"var(--accent, #3858E9)","description_color":"var(--secondary_text, #5A6D80)","checked_feature_icon_color":"var(--accent, #3858E9)","checked_feature_icon_background_color":"#EBF1F5","checked_feature_title_color":"#000729","unchecked_feature_icon_color":"#FFFFFF","unchecked_feature_icon_background_color":"#D1D9E0","unchecked_feature_title_color":"#ABB8C3","button_type":"fill","button_text_color":{"normal":"#ffffff","hover":"#ffffff"},"button_background_color":{"normal":"var(--accent, #3858E9)","hover":"var(--accent, #3858E9)"},"background_color":{"normal":"#ffffff","hover":"#ffffff"},"border_color":{"normal":"var(--accent, #3858E9)","hover":"var(--accent, #3858E9)"}}}},"xX":{"Z":["highlight_badge","title","pricing","description","list_features","button"]}}}'),ne=(0,i.createContext)({}),re=[["brandy/pricing-card",{title:"Pack Trial",pricing:"Free <sub>/14 days</sub>",description:"Start from here, no credit card required",features:[{text:"Single user account",status:"checked"},{text:"Use any 3 templates",status:"checked"},{text:"2 GB storage",status:"unchecked"},{text:"Feature benefit in 14 days",status:"unchecked"},{text:"3 audiences",status:"unchecked"},{text:"Support for first 14 days",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:1}],["brandy/pricing-card",{title:"Pack Standard",pricing:"$29.99 <sub>/monthly</sub>",description:"Enjoy our basic amenities and future features",features:[{text:"Unlimited user account",status:"checked"},{text:"Use any 100 templates",status:"checked"},{text:"25 GB storage",status:"unchecked"},{text:"Feature benefit",status:"checked"},{text:"10 audiences",status:"checked"},{text:"24/7 email and chat support",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:2}],["brandy/pricing-card",{title:"Pack Premium",pricing:"$59.00 <sub>/monthly</sub>",description:"Get benefit pro for your entire team",features:[{text:"Unlimited user account",status:"checked"},{text:"Unlimited templates",status:"checked"},{text:"100 GB storage",status:"unchecked"},{text:"Feature benefit pro",status:"checked"},{text:"Unlimited audiences",status:"checked"},{text:"Phone and priority support",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:3}],["brandy/pricing-card",{title:"Pack Premium",pricing:"$59.00 <sub>/monthly</sub>",description:"Get benefit pro for your entire team",features:[{text:"Unlimited user account",status:"checked"},{text:"Unlimited templates",status:"checked"},{text:"100 GB storage",status:"unchecked"},{text:"Feature benefit pro",status:"checked"},{text:"Unlimited audiences",status:"checked"},{text:"Phone and priority support",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:4}]];(0,o.registerBlockType)(te.u2,{edit:function({attributes:e,setAttributes:t,clientId:n}){const o=(0,a.useBlockProps)(),d=(0,i.useMemo)((()=>{var t,n,r,o,a,i,l,c,s,d;return{number_card:null!==(t=e.number_card)&&void 0!==t?t:te.Y4.y4.Z,card_title:null!==(n=e.card_title)&&void 0!==n?n:te.Y4.lF.Z,card_pricing:null!==(r=e.card_pricing)&&void 0!==r?r:te.Y4.Jj.Z,card_description:null!==(o=e.card_description)&&void 0!==o?o:te.Y4.hu.Z,card_features:null!==(a=e.card_features)&&void 0!==a?a:te.Y4.qQ.Z,card_button:null!==(i=e.card_button)&&void 0!==i?i:te.Y4.ys.Z,card_highlight_badge:null!==(l=e.card_highlight_badge)&&void 0!==l?l:te.Y4.yC.Z,card_settings:null!==(c=e.card_settings)&&void 0!==c?c:te.Y4.V0.Z,highlight_settings:null!==(s=e.highlight_settings)&&void 0!==s?s:te.Y4.zU.Z,card_layout:null!==(d=e.card_layout)&&void 0!==d?d:te.Y4.xX.Z}}),[e]),u=(0,i.useMemo)((()=>({attributes:d,setAttributes:t,clientId:n})),[d,t,n]),p=(0,i.useMemo)((()=>{var t;return Array.from({length:null!==(t=e.number_card)&&void 0!==t?t:3}).map(((e,t)=>re[t]))}),[e.number_card]);return(0,r.createElement)("div",{...o,className:o.className+" block-upgraded"},(0,r.createElement)(ne.Provider,{value:u},(0,r.createElement)(ee,null),(0,r.createElement)("div",{className:"brandy-pricing-wrapper","card-horizontal-alignment":d.card_settings.horizontal_alignment,style:{"--card-title-margin":s(d.card_title.margin),"--card-title-color":d.card_title.color,...l("card-title",d.card_title.typography),"--card-pricing-margin":s(d.card_pricing.margin),"--card-pricing-price-color":d.card_pricing.price.color,...l("card-pricing-price",d.card_pricing.price.typography),"--card-pricing-period-color":d.card_pricing.period.color,...l("card-pricing-period",d.card_pricing.period.typography),"--card-pricing-period-position":d.card_pricing.period.position,"--card-description-margin":s(d.card_description.margin),"--card-description-color":d.card_description.color,...l("card-description",d.card_description.typography),"--card-features-margin":s(d.card_features.margin),"--card-features-item-spacing":`${d.card_features.item_spacing}px`,"--pricing-feature-checked-title-color":d.card_features.checked.title_color,"--pricing-feature-checked-icon-color":d.card_features.checked.icon_color,"--pricing-feature-checked-icon-background-color":d.card_features.checked.icon_background_color,...l("pricing-feature-checked",d.card_features.checked.typography),"--pricing-feature-unchecked-title-color":d.card_features.unchecked.title_color,"--pricing-feature-unchecked-icon-color":d.card_features.unchecked.icon_color,"--pricing-feature-unchecked-icon-background-color":d.card_features.unchecked.icon_background_color,...l("pricing-feature-unchecked",d.card_features.unchecked.typography),"--card-button-margin":s(d.card_button.margin),"--card-button-padding":s(d.card_button.padding),"--card-button-border-radius":`${d.card_button.border_radius.top}px ${d.card_button.border_radius.right}px ${d.card_button.border_radius.bottom}px ${d.card_button.border_radius.left}px`,"--card-button-width":`${d.card_button.width}%`,"--card-button-color-normal":d.card_button.color.normal,"--card-button-color-hover":d.card_button.color.hover,..."fill"===d.card_button.type?{"--card-button-background-color-normal":d.card_button.background_color.normal,"--card-button-background-color-hover":d.card_button.background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":d.card_button.background_color.normal,"--card-button-border-color-hover":d.card_button.background_color.hover},...l("card-button",d.card_button.typography),"--card-background-normal":d.card_settings.background.normal,"--card-background-hover":d.card_settings.background.hover,"--card-shadow":c(d.card_settings.shadow),"--card-border-color-normal":d.card_settings.border_color.normal,"--card-border-color-hover":d.card_settings.border_color.hover,"--card-spacing":`${d.card_settings.spacing}px`,"--card-padding":s(d.card_settings.padding),"--card-title-display":d.card_title.visible?"block":"none","--card-description-display":d.card_description.visible?"block":"none","--card-features-display":d.card_features.visible?"flex":"none","--card-button-display":d.card_button.visible?"block":"none",..."bottom"===d.card_pricing.period.position?{"--card-pricing-display":"flex","--card-pricing-flex-direction":"column","--card-pricing-flex-align-items":"center"===d.card_settings.horizontal_alignment?"center":"right"===d.card_settings.horizontal_alignment?"flex-end":"flex-start"}:{"--card-pricing-display":d.card_pricing.visible?"block":"none"}}},(0,r.createElement)("div",{className:"brandy-pricing-list"},(0,r.createElement)(a.InnerBlocks,{template:p,allowedBlocks:["brandy/pricing-card"],templateLock:"all"})))))},save:function({attributes:e}){const t=a.useBlockProps.save();return(0,r.createElement)("div",{...t},(0,r.createElement)("div",{className:"brandy-pricing-wrapper","card-horizontal-alignment":e.card_settings.horizontal_alignment,style:{"--card-title-margin":s(e.card_title.margin),"--card-title-color":e.card_title.color,...l("card-title",e.card_title.typography),"--card-pricing-margin":s(e.card_pricing.margin),"--card-pricing-price-color":e.card_pricing.price.color,...l("card-pricing-price",e.card_pricing.price.typography),"--card-pricing-period-color":e.card_pricing.period.color,...l("card-pricing-period",e.card_pricing.period.typography),"--card-pricing-period-position":e.card_pricing.period.position,"--card-description-margin":s(e.card_description.margin),"--card-description-color":e.card_description.color,...l("card-description",e.card_description.typography),"--card-features-margin":s(e.card_features.margin),"--card-features-item-spacing":`${e.card_features.item_spacing}px`,"--pricing-feature-checked-title-color":e.card_features.checked.title_color,"--pricing-feature-checked-icon-color":e.card_features.checked.icon_color,"--pricing-feature-checked-icon-background-color":e.card_features.checked.icon_background_color,...l("pricing-feature-checked",e.card_features.checked.typography),"--pricing-feature-unchecked-title-color":e.card_features.unchecked.title_color,"--pricing-feature-unchecked-icon-color":e.card_features.unchecked.icon_color,"--pricing-feature-unchecked-icon-background-color":e.card_features.unchecked.icon_background_color,...l("pricing-feature-unchecked",e.card_features.unchecked.typography),"--card-button-margin":s(e.card_button.margin),"--card-button-padding":s(e.card_button.padding),"--card-button-border-radius":`${e.card_button.border_radius.top}px ${e.card_button.border_radius.right}px ${e.card_button.border_radius.bottom}px ${e.card_button.border_radius.left}px`,"--card-button-width":`${e.card_button.width}%`,"--card-button-color-normal":e.card_button.color.normal,"--card-button-color-hover":e.card_button.color.hover,..."fill"===e.card_button.type?{"--card-button-background-color-normal":e.card_button.background_color.normal,"--card-button-background-color-hover":e.card_button.background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":e.card_button.background_color.normal,"--card-button-border-color-hover":e.card_button.background_color.hover},...l("card-button",e.card_button.typography),"--card-background-normal":e.card_settings.background.normal,"--card-background-hover":e.card_settings.background.hover,"--card-shadow":c(e.card_settings.shadow),"--card-border-color-normal":e.card_settings.border_color.normal,"--card-border-color-hover":e.card_settings.border_color.hover,"--card-spacing":`${e.card_settings.spacing}px`,"--card-padding":s(e.card_settings.padding),"--card-title-display":e.card_title.visible?"block":"none","--card-description-display":e.card_description.visible?"block":"none","--card-features-display":e.card_features.visible?"flex":"none","--card-button-display":e.card_button.visible?"block":"none",..."bottom"===e.card_pricing.period.position?{"--card-pricing-display":"flex","--card-pricing-flex-direction":"column","--card-pricing-flex-align-items":"center"===e.card_settings.horizontal_alignment?"center":"right"===e.card_settings.horizontal_alignment?"flex-end":"flex-start"}:{"--card-pricing-display":e.card_pricing.visible?"block":"none"}}},(0,r.createElement)("div",{className:"brandy-pricing-list"},(0,r.createElement)(a.InnerBlocks.Content,null))))},icon:(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M2.92326 10.8606L3.65641 5.76806C3.98951 3.45071 6.16564 1.9481 8.49661 2.42452L13.663 3.4808C14.7693 3.70731 15.7635 4.35836 16.4278 5.29232L20.4854 10.9969C21.8743 12.9496 21.4735 15.5817 19.5902 16.8752L13.6982 20.9221C11.815 22.2156 9.16184 21.6811 7.77292 19.7284L3.70815 14.0138C3.048 13.0856 2.76606 11.9533 2.92364 10.8611L2.92326 10.8606Z",stroke:"#00A3FE",fill:"#ffffff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{d:"M11.2692 11.3752C12.3857 10.6083 12.6512 9.08735 11.8622 7.97798C11.0731 6.86861 9.52835 6.59096 8.41181 7.35782C7.29527 8.12468 7.02978 9.64566 7.81882 10.755C8.60786 11.8644 10.1526 12.1421 11.2692 11.3752Z",stroke:"#00A3FE",fill:"#ffffff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{d:"M11.8896 17.3037L16.7417 13.9713",stroke:"#00A3FE","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"}))})},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var l in n)r.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},941:(e,t,n)=>{var r=n(474),o=n(184),a=n(196),i=n(177);function l(e){return e&&e.__esModule?e.default:e}function c(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function s(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e){e.forEach((e=>s(e.element)))}function u(e){e.forEach((e=>{!function(e,t,n){const r=e.children[n]||null;e.insertBefore(t,r)}(e.parentElement,e.element,e.oldIndex)}))}function p(e,t){const n=m(e),r={parentElement:e.from};let o=[];switch(n){case"normal":o=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":o=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case"multidrag":o=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r})))}const a=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(o,t);return a}function h(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function g(e,t,n,r){const o=[...t];return e.forEach((e=>{const t=r&&n&&r(e.item,n);o.splice(e.newIndex,0,t||e.item)})),o}function m(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}c(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),c(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),c(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),c(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),c(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),c(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),c(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),c(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),c(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),c(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),c(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),c(e.exports,"ReactSortable",(()=>b));const f={dragging:null};class b extends a.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,a.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,f),l(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();l(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:r}=this.props,o={style:t,className:n,id:r},i=e&&null!==e?e:"div";return(0,a.createElement)(i,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:c="sortable-falback",ghostClass:s="sortable-ghost",swapClass:d="sortable-swap-highlight",filter:u="sortable-filter",list:p}=this.props;if(!e||null==e)return null;const h=t||"data-id";return a.Children.map(e,((e,t)=>{if(void 0===e)return;const i=p[t]||{},{className:c}=e.props,s="string"==typeof u&&{[u.replace(".","")]:!!i.filtered},d=l(o)(c,{[n]:i.selected,[r]:i.chosen,...s});return(0,a.cloneElement)(e,{[h]:e.key,className:d})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:r,tag:o,style:a,className:i,clone:l,onAdd:c,onChange:s,onChoose:d,onClone:u,onEnd:p,onFilter:h,onRemove:g,onSort:m,onStart:f,onUnchoose:b,onUpdate:v,onMove:_,onSpill:y,onSelect:E,onDeselect:w,...C}=e;return C}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;const o=n(e,t,this.sortable,f);return void 0!==o&&o}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,f)}onAdd(e){const{list:t,setList:n,clone:r}=this.props,o=p(e,[...f.dragging.props.list]);d(o),n(g(o,t,e,r).map((e=>Object.assign(e,{selected:!1}))),this.sortable,f)}onRemove(e){const{list:t,setList:n}=this.props,r=m(e),o=p(e,t);u(o);let a=[...t];if("clone"!==e.pullMode)a=h(o,a);else{let t=o;switch(r){case"multidrag":t=o.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=o.map((t=>({...t,element:e.clone})));break;default:l(i)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${r}" plugin`)}d(t),o.forEach((t=>{const n=t.oldIndex,r=this.props.clone(t.item,e);a.splice(n,1,r)}))}a=a.map((e=>Object.assign(e,{selected:!1}))),n(a,this.sortable,f)}onUpdate(e){const{list:t,setList:n}=this.props,r=p(e,t);return d(r),u(r),n(function(e,t){return g(e,h(e,t))}(r,t),this.sortable,f)}onStart(){f.dragging=this}onEnd(){f.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r})),this.sortable,f)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,f)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&s(e.item)}onSelect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);r[n].selected=!0})),n(r,this.sortable,f)}onDeselect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(r[t].selected=!0)})),n(r,this.sortable,f)}}var v,_;v=e.exports,_={},Object.keys(_).forEach((function(e){"default"===e||"__esModule"===e||v.hasOwnProperty(e)||Object.defineProperty(v,e,{enumerable:!0,get:function(){return _[e]}})}))},474:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>yt,Sortable:()=>Re,Swap:()=>st,default:()=>Ct});var d=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=s(/Edge/i),p=s(/firefox/i),h=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),g=s(/iP(ad|od|hone)/i),m=s(/chrome/i)&&s(/android/i),f={capture:!1,passive:!1};function b(e,t,n){e.addEventListener(t,n,!d&&f)}function v(e,t,n){e.removeEventListener(t,n,!d&&f)}function _(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&_(e,t):_(e,t))||r&&e===n)return e;if(e===n)break}while(e=y(e))}return null}var w,C=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(C," ")}}function k(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function D(e,t){var n="";if("string"==typeof e)n=e;else do{var r=k(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function S(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function N(){return document.scrollingElement||document.documentElement}function M(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,l,c,s,u,p;if(e!==window&&e.parentNode&&e!==N()?(i=(a=e.getBoundingClientRect()).top,l=a.left,c=a.bottom,s=a.right,u=a.height,p=a.width):(i=0,l=0,c=window.innerHeight,s=window.innerWidth,u=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!d))do{if(o&&o.getBoundingClientRect&&("none"!==k(o,"transform")||n&&"static"!==k(o,"position"))){var h=o.getBoundingClientRect();i-=h.top+parseInt(k(o,"border-top-width")),l-=h.left+parseInt(k(o,"border-left-width")),c=i+a.height,s=l+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var g=D(o||e),m=g&&g.a,f=g&&g.d;g&&(c=(i/=f)+(u/=f),s=(l/=m)+(p/=m))}return{top:i,left:l,bottom:c,right:s,width:p,height:u}}}function T(e){var t=M(e),n=parseInt(k(e,"padding-left")),r=parseInt(k(e,"padding-top")),o=parseInt(k(e,"padding-right")),a=parseInt(k(e,"padding-bottom"));return t.top+=r+parseInt(k(e,"border-top-width")),t.left+=n+parseInt(k(e,"border-left-width")),t.width=e.clientWidth-n-o,t.height=e.clientHeight-r-a,t.bottom=t.top+t.height,t.right=t.left+t.width,t}function O(e,t,n){for(var r=H(e,!0),o=M(e)[t];r;){var a=M(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===N())break;r=H(r,!1)}return!1}function I(e,t,n,r){for(var o=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==Re.ghost&&(r||i[a]!==Re.dragged)&&E(i[a],n.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function A(e,t){for(var n=e.lastElementChild;n&&(n===Re.ghost||"none"===k(n,"display")||t&&!_(n,t));)n=n.previousElementSibling;return n||null}function P(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Re.clone||t&&!_(e,t)||n++;return n}function B(e){var t=0,n=0,r=N();if(e)do{var o=D(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function H(e,t){if(!e||!e.getBoundingClientRect)return N();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(r||t)return n;r=!0}}}while(n=n.parentNode);return N()}function L(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function $(e,t){return function(){if(!w){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),w=setTimeout((function(){w=void 0}),t)}}}function F(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function j(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function R(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function V(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}var Z="Sortable"+(new Date).getTime();var Y=[],z={initializeByDefault:!0},X={mount:function(e){for(var t in z)z.hasOwnProperty(t)&&!(t in e)&&(e[t]=z[t]);Y.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Y.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";Y.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in Y.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[o]=a,l(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);void 0!==a&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return Y.forEach((function(r){"function"==typeof r.eventProperties&&l(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return Y.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function U(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,l=e.toEl,c=e.fromEl,s=e.oldIndex,p=e.newIndex,h=e.oldDraggableIndex,g=e.newDraggableIndex,m=e.originalEvent,f=e.putSortable,b=e.extraEventProperties;if(t=t||n&&n[Z]){var v,_=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||d||u?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=l||n,v.from=c||n,v.item=a||n,v.clone=i,v.oldIndex=s,v.newIndex=p,v.oldDraggableIndex=h,v.newDraggableIndex=g,v.originalEvent=m,v.pullMode=f?f.lastPutMode:void 0;var E=o(o({},b),X.getEventProperties(r,t));for(var w in E)v[w]=E[w];n&&n.dispatchEvent(v),_[y]&&_[y].call(t,v)}}var G=["evt"],W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,G);X.pluginEvent.bind(Re)(e,t,o({dragEl:q,parentEl:J,ghostEl:Q,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:be,putSortable:de,activeSortable:Re.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:ce,hideGhostForTarget:Le,unhideGhostForTarget:$e,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){K({sortable:t,name:e,originalEvent:r})}},a))};function K(e){U(o({putSortable:de,cloneEl:re,targetEl:q,rootEl:ee,oldIndex:ae,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:ce},e))}var q,J,Q,ee,te,ne,re,oe,ae,ie,le,ce,se,de,ue,pe,he,ge,me,fe,be,ve,_e,ye,Ee,we=!1,Ce=!1,xe=[],ke=!1,De=!1,Se=[],Ne=!1,Me=[],Te="undefined"!=typeof document,Oe=g,Ie=u||d?"cssFloat":"float",Ae=Te&&!m&&!g&&"draggable"in document.createElement("div"),Pe=function(){if(Te){if(d)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Be=function(e,t){var n=k(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=I(e,0,t),a=I(e,1,t),i=o&&k(o),l=a&&k(a),c=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+M(o).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+M(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var d="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==d?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||c>=r&&"none"===n[Ie]||a&&"none"===n[Ie]&&c+s>r)?"vertical":"horizontal"},He=function(e){function t(e,n){return function(r,o,a,i){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var c=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Le=function(){!Pe&&Q&&k(Q,"display","none")},$e=function(){!Pe&&Q&&k(Q,"display","")};Te&&!m&&document.addEventListener("click",(function(e){if(Ce)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ce=!1,!1}),!0);var Fe=function(e){if(q){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,xe.some((function(e){var t=e[Z].options.emptyInsertThreshold;if(t&&!A(e)){var n=M(e),r=o>=n.left-t&&o<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return r&&l?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Z]._onDragOver(n)}}var o,a,i},je=function(e){q&&q.parentNode[Z]._isOutsideThisEl(e.target)};function Re(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[Z]=this;var n,r,a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Be(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Re.supportPointer&&"PointerEvent"in window&&!h,emptyInsertThreshold:5};for(var i in X.initializePlugins(this,e,a),a)!(i in t)&&(t[i]=a[i]);for(var c in He(t),this)"_"===c.charAt(0)&&"function"==typeof this[c]&&(this[c]=this[c].bind(this));this.nativeDraggable=!t.forceFallback&&Ae,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==k(e,"display")&&e!==Re.ghost){r.push({target:e,rect:M(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=D(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,a=0;r.forEach((function(e){var n=0,r=e.target,i=r.fromRect,l=M(r),c=r.prevFromRect,s=r.prevToRect,d=e.rect,u=D(r,!0);u&&(l.top-=u.f,l.left-=u.e),r.toRect=l,r.thisAnimationDuration&&L(c,l)&&!L(i,l)&&(d.top-l.top)/(d.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(d,c,s,t.options)),L(l,i)||(r.prevFromRect=i,r.prevToRect=l,n||(n=t.options.animation),t.animate(r,d,l,n)),n&&(o=!0,a=Math.max(a,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){k(e,"transition",""),k(e,"transform","");var o=D(this.el),a=o&&o.a,i=o&&o.d,l=(t.left-n.left)/(a||1),c=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!c,k(e,"transform","translate3d("+l+"px,"+c+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),k(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function Ve(e,t,n,r,o,a,i,l){var c,s,p=e[Z],h=p.options.onMove;return!window.CustomEvent||d||u?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=a||M(t),c.willInsertAfter=l,c.originalEvent=i,e.dispatchEvent(c),h&&(s=h.call(p,c,i)),s}function Ze(e){e.draggable=!1}function Ye(){Ne=!1}function ze(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Xe(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}Re.prototype={constructor:Re,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,s=r.filter;if(function(e){Me.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Me.push(r)}}(n),!q&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!h||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=E(l,r.draggable,n,!1))&&l.animated||ne===l)){if(ae=P(l),le=P(l,r.draggable),"function"==typeof s){if(s.call(this,e,l,this))return K({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),W("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(r){if(r=E(c,r.trim(),n,!1))return K({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),W("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!E(c,r.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,l=a.ownerDocument;if(n&&!q&&n.parentNode===a){var c=M(n);if(ee=a,J=(q=n).parentNode,te=q.nextSibling,ne=n,se=i.group,Re.dragged=q,ue={target:q,clientX:(t||e).clientX,clientY:(t||e).clientY},me=ue.clientX-c.left,fe=ue.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,q.style["will-change"]="all",r=function(){W("delayEnded",o,{evt:e}),Re.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!p&&o.nativeDraggable&&(q.draggable=!0),o._triggerDragStart(e,t),K({sortable:o,name:"choose",originalEvent:e}),x(q,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){S(q,e.trim(),Ze)})),b(l,"dragover",Fe),b(l,"mousemove",Fe),b(l,"touchmove",Fe),b(l,"mouseup",o._onDrop),b(l,"touchend",o._onDrop),b(l,"touchcancel",o._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),W("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(u||d))r();else{if(Re.eventCanceled)return void this._onDrop();b(l,"mouseup",o._disableDelayedDrag),b(l,"touchend",o._disableDelayedDrag),b(l,"touchcancel",o._disableDelayedDrag),b(l,"mousemove",o._delayedDragTouchMoveHandler),b(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&b(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&Ze(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,t?"touchmove":"mousemove",this._onTouchMove):(b(q,"dragend",this),b(ee,"dragstart",this._onDragStart));try{document.selection?Xe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,ee&&q){W("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",je);var n=this.options;!e&&x(q,n.dragClass,!1),x(q,n.ghostClass,!0),Re.active=this,e&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(pe){this._lastX=pe.clientX,this._lastY=pe.clientY,Le();for(var e=document.elementFromPoint(pe.clientX,pe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(pe.clientX,pe.clientY))!==t;)t=e;if(q.parentNode[Z]._isOutsideThisEl(e),t)do{if(t[Z]&&t[Z]._onDragOver({clientX:pe.clientX,clientY:pe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);$e()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=Q&&D(Q,!0),i=Q&&a&&a.a,l=Q&&a&&a.d,c=Oe&&Ee&&B(Ee),s=(o.clientX-ue.clientX+r.x)/(i||1)+(c?c[0]-Se[0]:0)/(i||1),d=(o.clientY-ue.clientY+r.y)/(l||1)+(c?c[1]-Se[1]:0)/(l||1);if(!Re.active&&!we){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Q){a?(a.e+=s-(he||0),a.f+=d-(ge||0)):a={a:1,b:0,c:0,d:1,e:s,f:d};var u="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");k(Q,"webkitTransform",u),k(Q,"mozTransform",u),k(Q,"msTransform",u),k(Q,"transform",u),he=s,ge=d,pe=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Q){var e=this.options.fallbackOnBody?document.body:ee,t=M(q,!0,Oe,!0,e),n=this.options;if(Oe){for(Ee=e;"static"===k(Ee,"position")&&"none"===k(Ee,"transform")&&Ee!==document;)Ee=Ee.parentNode;Ee!==document.body&&Ee!==document.documentElement?(Ee===document&&(Ee=N()),t.top+=Ee.scrollTop,t.left+=Ee.scrollLeft):Ee=N(),Se=B(Ee)}x(Q=q.cloneNode(!0),n.ghostClass,!1),x(Q,n.fallbackClass,!0),x(Q,n.dragClass,!0),k(Q,"transition",""),k(Q,"transform",""),k(Q,"box-sizing","border-box"),k(Q,"margin",0),k(Q,"top",t.top),k(Q,"left",t.left),k(Q,"width",t.width),k(Q,"height",t.height),k(Q,"opacity","0.8"),k(Q,"position",Oe?"absolute":"fixed"),k(Q,"zIndex","100000"),k(Q,"pointerEvents","none"),Re.ghost=Q,e.appendChild(Q),k(Q,"transform-origin",me/parseInt(Q.style.width)*100+"% "+fe/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;W("dragStart",this,{evt:e}),Re.eventCanceled?this._onDrop():(W("setupClone",this),Re.eventCanceled||((re=j(q)).removeAttribute("id"),re.draggable=!1,re.style["will-change"]="",this._hideClone(),x(re,this.options.chosenClass,!1),Re.clone=re),n.cloneId=Xe((function(){W("clone",n),Re.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(re,q),n._hideClone(),K({sortable:n,name:"clone"}))})),!t&&x(q,o.dragClass,!0),t?(Ce=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,q)),b(document,"drop",n),k(q,"transform","translateZ(0)")),we=!0,n._dragStartId=Xe(n._dragStarted.bind(n,t,e)),b(document,"selectstart",n),be=!0,h&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,l=e.target,c=this.options,s=c.group,d=Re.active,u=se===s,p=c.sort,h=de||d,g=this,m=!1;if(!Ne){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=E(l,c.draggable,i,!0),j("dragOver"),Re.eventCanceled)return m;if(q.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||g._ignoreWhileAnimating===l)return V(!1);if(Ce=!1,d&&!c.disabled&&(u?p||(r=J!==ee):de===this||(this.lastPutMode=se.checkPull(this,d,q,e))&&s.checkPut(this,d,q,e))){if(a="vertical"===this._getDirection(e,l),t=M(q),j("dragOverValid"),Re.eventCanceled)return m;if(r)return J=ee,R(),this._hideClone(),j("revert"),Re.eventCanceled||(te?ee.insertBefore(q,te):ee.appendChild(q)),V(!0);var f=A(i,c.draggable);if(!f||function(e,t,n){var r=M(A(n.el,n.options.draggable)),o=T(n.el);return t?e.clientX>o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,a,this)&&!f.animated){if(f===q)return V(!1);if(f&&i===e.target&&(l=f),l&&(n=M(l)),!1!==Ve(ee,i,q,t,l,n,e,!!l))return R(),f&&f.nextSibling?i.insertBefore(q,f.nextSibling):i.appendChild(q),J=i,Y(),V(!0)}else if(f&&function(e,t,n){var r=M(I(n.el,0,n.options,!0)),o=T(n.el);return t?e.clientX<o.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,a,this)){var b=I(i,0,c,!0);if(b===q)return V(!1);if(n=M(l=b),!1!==Ve(ee,i,q,t,l,n,e,!1))return R(),i.insertBefore(q,b),J=i,Y(),V(!0)}else if(l.parentNode===i){n=M(l);var v,_,y,w=q.parentNode!==i,C=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,c=n?t.width:t.height;return r===i||o===l||r+a/2===i+c/2}(q.animated&&q.toRect||t,l.animated&&l.toRect||n,a),D=a?"top":"left",S=O(l,"top","top")||O(q,"top","top"),N=S?S.scrollTop:void 0;if(ve!==l&&(_=n[D],ke=!1,De=!C&&c.invertSwap||w),v=function(e,t,n,r,o,a,i,l){var c=r?e.clientY:e.clientX,s=r?n.height:n.width,d=r?n.top:n.left,u=r?n.bottom:n.right,p=!1;if(!i)if(l&&ye<s*o){if(!ke&&(1===_e?c>d+s*a/2:c<u-s*a/2)&&(ke=!0),ke)p=!0;else if(1===_e?c<d+ye:c>u-ye)return-_e}else if(c>d+s*(1-o)/2&&c<u-s*(1-o)/2)return function(e){return P(q)<P(e)?1:-1}(t);return(p=p||i)&&(c<d+s*a/2||c>u-s*a/2)?c>d+s/2?1:-1:0}(e,l,n,a,C?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,De,ve===l),0!==v){var B=P(q);do{B-=v,y=J.children[B]}while(y&&("none"===k(y,"display")||y===Q))}if(0===v||y===l)return V(!1);ve=l,_e=v;var H=l.nextElementSibling,L=!1,$=Ve(ee,i,q,t,l,n,e,L=1===v);if(!1!==$)return 1!==$&&-1!==$||(L=1===$),Ne=!0,setTimeout(Ye,30),R(),L&&!H?i.appendChild(q):l.parentNode.insertBefore(q,L?H:l),S&&F(S,0,N-S.scrollTop),J=q.parentNode,void 0===_||De||(ye=Math.abs(_-M(l)[D])),Y(),V(!0)}if(i.contains(q))return V(!1)}return!1}function j(c,s){W(c,g,o({evt:e,isOwner:u,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:h,target:l,completed:V,onMove:function(n,r){return Ve(ee,i,q,t,n,M(n),e,r)},changed:Y},s))}function R(){j("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function V(t){return j("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(g),g!==h&&(x(q,de?de.options.ghostClass:d.options.ghostClass,!1),x(q,c.ghostClass,!0)),de!==g&&g!==Re.active?de=g:g===Re.active&&de&&(de=null),h===g&&(g._ignoreWhileAnimating=l),g.animateAll((function(){j("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(l===q&&!q.animated||l===i&&!l.animated)&&(ve=null),c.dragoverBubble||e.rootEl||l===document||(q.parentNode[Z]._isOutsideThisEl(e.target),!t&&Fe(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function Y(){ie=P(q),ce=P(q,c.draggable),K({sortable:g,name:"change",toEl:i,newIndex:ie,newDraggableIndex:ce,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Fe),v(document,"mousemove",Fe),v(document,"touchmove",Fe)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=P(q),ce=P(q,n.draggable),W("drop",this,{evt:e}),J=q&&q.parentNode,ie=P(q),ce=P(q,n.draggable),Re.eventCanceled||(we=!1,De=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&k(document.body,"user-select",""),k(q,"transform",""),e&&(be&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(ee===J||de&&"clone"!==de.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),q&&(this.nativeDraggable&&v(q,"dragend",this),Ze(q),q.style["will-change"]="",be&&!we&&x(q,de?de.options.ghostClass:this.options.ghostClass,!1),x(q,this.options.chosenClass,!1),K({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==J?(ie>=0&&(K({rootEl:J,name:"add",toEl:J,fromEl:ee,originalEvent:e}),K({sortable:this,name:"remove",toEl:J,originalEvent:e}),K({rootEl:J,name:"sort",toEl:J,fromEl:ee,originalEvent:e}),K({sortable:this,name:"sort",toEl:J,originalEvent:e})),de&&de.save()):ie!==ae&&ie>=0&&(K({sortable:this,name:"update",toEl:J,originalEvent:e}),K({sortable:this,name:"sort",toEl:J,originalEvent:e})),Re.active&&(null!=ie&&-1!==ie||(ie=ae,ce=le),K({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),ee=q=J=Q=te=re=ne=oe=ue=pe=be=ie=ce=ae=le=ve=_e=de=se=Re.dragged=Re.ghost=Re.clone=Re.active=null,Me.forEach((function(e){e.checked=!0})),Me.length=he=ge=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)E(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||ze(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];E(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return E(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=X.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&He(n)},destroy:function(){W("destroy",this);var e=this.el;e[Z]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xe.splice(xe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if(W("hideClone",this),Re.eventCanceled)return;k(re,"display","none"),this.options.removeCloneOnHide&&re.parentNode&&re.parentNode.removeChild(re),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if(W("showClone",this),Re.eventCanceled)return;q.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(re,te):ee.appendChild(re):ee.insertBefore(re,q),this.options.group.revertClone&&this.animate(q,re),k(re,"display",""),oe=!1}}else this._hideClone()}},Te&&b(document,"touchmove",(function(e){(Re.active||we)&&e.cancelable&&e.preventDefault()})),Re.utils={on:b,off:v,css:k,find:S,is:function(e,t){return!!E(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:$,closest:E,toggleClass:x,clone:j,index:P,nextTick:Xe,cancelNextTick:Ue,detectDirection:Be,getChild:I},Re.get=function(e){return e[Z]},Re.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Re.utils=o(o({},Re.utils),e.utils)),X.mount(e)}))},Re.create=function(e,t){return new Re(e,t)},Re.version="1.15.1";var Ge,We,Ke,qe,Je,Qe,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function rt(){clearInterval(Qe)}var ot,at=$((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,c=t.scrollSpeed,s=N(),d=!1;We!==n&&(We=n,nt(),Ge=t.scroll,o=t.scrollFn,!0===Ge&&(Ge=H(n,!0)));var u=0,p=Ge;do{var h=p,g=M(h),m=g.top,f=g.bottom,b=g.left,v=g.right,_=g.width,y=g.height,E=void 0,w=void 0,C=h.scrollWidth,x=h.scrollHeight,D=k(h),S=h.scrollLeft,T=h.scrollTop;h===s?(E=_<C&&("auto"===D.overflowX||"scroll"===D.overflowX||"visible"===D.overflowX),w=y<x&&("auto"===D.overflowY||"scroll"===D.overflowY||"visible"===D.overflowY)):(E=_<C&&("auto"===D.overflowX||"scroll"===D.overflowX),w=y<x&&("auto"===D.overflowY||"scroll"===D.overflowY));var O=E&&(Math.abs(v-a)<=l&&S+_<C)-(Math.abs(b-a)<=l&&!!S),I=w&&(Math.abs(f-i)<=l&&T+y<x)-(Math.abs(m-i)<=l&&!!T);if(!et[u])for(var A=0;A<=u;A++)et[A]||(et[A]={});et[u].vx==O&&et[u].vy==I&&et[u].el===h||(et[u].el=h,et[u].vx=O,et[u].vy=I,clearInterval(et[u].pid),0==O&&0==I||(d=!0,et[u].pid=setInterval(function(){r&&0===this.layer&&Re.active._onTouchMove(Je);var t=et[this.layer].vy?et[this.layer].vy*c:0,n=et[this.layer].vx?et[this.layer].vx*c:0;"function"==typeof o&&"continue"!==o.call(Re.dragged.parentNode[Z],n,t,e,Je,et[this.layer].el)||F(et[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==s&&(p=H(p,!1)));tt=d}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var c=n||o;i();var s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(s.clientX,s.clientY);l(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function lt(){}function ct(){}function st(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ot=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,a=e.changed,i=e.cancel;if(o.options.swap){var l=this.sortable.el,c=this.options;if(n&&n!==l){var s=ot;!1!==r(n)?(x(n,c.swapClass,!0),ot=n):ot=null,s&&s!==ot&&x(s,c.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t,n,r,o,a,i,l=e.activeSortable,c=e.putSortable,s=e.dragEl,d=c||this.sortable,u=this.options;ot&&x(ot,u.swapClass,!1),ot&&(u.swap||c&&c.options.swap)&&s!==ot&&(d.captureAnimationState(),d!==l&&l.captureAnimationState(),n=ot,a=(t=s).parentNode,i=n.parentNode,a&&i&&!a.isEqualNode(n)&&!i.isEqualNode(t)&&(r=P(t),o=P(n),a.isEqualNode(i)&&r<o&&o++,a.insertBefore(n,a.children[r]),i.insertBefore(t,i.children[o])),d.animateAll(),d!==l&&l.animateAll())},nulling:function(){ot=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ot}}})}lt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=I(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},l(lt,{pluginName:"revertOnSpill"}),ct.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},l(ct,{pluginName:"removeOnSpill"});var dt,ut,pt,ht,gt,mt=[],ft=[],bt=!1,vt=!1,_t=!1;function yt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?b(document,"pointerup",this._deselectMultiDrag):(b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag))),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";mt.length&&ut===e?mt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;pt=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(pt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<mt.length;r++)ft.push(j(mt[r])),ft[r].sortableIndex=mt[r].sortableIndex,ft[r].draggable=!1,ft[r].style["will-change"]="",x(ft[r],this.options.selectedClass,!1),mt[r]===pt&&x(ft[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&ut===t&&(Et(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Et(!1,n),ft.forEach((function(e){k(e,"display","")})),t(),gt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(ft.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),gt=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=P(e)})),mt=mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),_t=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){mt.forEach((function(e){e!==pt&&k(e,"position","absolute")}));var r=M(pt,!1,!0,!0);mt.forEach((function(e){e!==pt&&R(e,r)})),vt=!0,bt=!0}n.animateAll((function(){vt=!1,bt=!1,t.options.animation&&mt.forEach((function(e){V(e)})),t.options.sort&&wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;vt&&~mt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;mt.length>1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?M(e):o}),V(e),e.fromRect=o,t.removeAnimationState(e)})),vt=!1,function(e,t){mt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,a=e.parentEl,i=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),bt=!1,l.animation&&mt.length>1&&(vt||!n&&!o.options.sort&&!i)){var c=M(pt,!1,!0,!0);mt.forEach((function(e){e!==pt&&(R(e,c),a.appendChild(e))})),vt=!0}if(!n)if(vt||wt(),mt.length>1){var s=gt;o._showClone(t),o.options.animation&&!gt&&s&&ft.forEach((function(e){o.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ht=l({},t);var o=D(pt,!0);ht.top-=o.f,ht.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,c=l||this.sortable;if(t){var s=this.options,d=r.children;if(!_t)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(pt,s.selectedClass,!~mt.indexOf(pt)),~mt.indexOf(pt))mt.splice(mt.indexOf(pt),1),dt=null,U({sortable:o,rootEl:n,name:"deselect",targetEl:pt,originalEvent:t});else{if(mt.push(pt),U({sortable:o,rootEl:n,name:"select",targetEl:pt,originalEvent:t}),t.shiftKey&&dt&&o.el.contains(dt)){var u,p,h=P(dt),g=P(pt);if(~h&&~g&&h!==g)for(g>h?(p=h,u=g):(p=g,u=h+1);p<u;p++)~mt.indexOf(d[p])||(x(d[p],s.selectedClass,!0),mt.push(d[p]),U({sortable:o,rootEl:n,name:"select",targetEl:d[p],originalEvent:t}))}else dt=pt;ut=c}if(_t&&this.isMultiDrag){if(vt=!1,(r[Z].options.sort||r!==n)&&mt.length>1){var m=M(pt),f=P(pt,":not(."+this.options.selectedClass+")");if(!bt&&s.animation&&(pt.thisAnimationDuration=null),c.captureAnimationState(),!bt&&(s.animation&&(pt.fromRect=m,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==pt){var t=vt?M(e):m;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),wt(),mt.forEach((function(e){d[f]?r.insertBefore(e,d[f]):r.appendChild(e),f++})),i===P(pt))){var b=!1;mt.forEach((function(e){e.sortableIndex===P(e)||(b=!0)})),b&&(a("update"),a("sort"))}mt.forEach((function(e){V(e)})),c.animateAll()}ut=c}(n===r||l&&"clone"!==l.lastPutMode)&&ft.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=_t=!1,ft.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==_t&&_t||ut!==this.sortable||e&&E(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];x(t,this.options.selectedClass,!1),mt.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Z];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(ut&&ut!==t&&(ut.multiDrag._deselectMultiDrag(),ut=t),x(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[Z],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(x(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return mt.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=vt&&e!==pt?-1:vt?P(e,":not(."+t.options.selectedClass+")"):P(e),r.push({multiDragElement:e,index:o})})),{items:(e=mt,function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(ft),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Et(e,t){ft.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function wt(){mt.forEach((function(e){e!==pt&&e.parentNode&&e.parentNode.removeChild(e)}))}Re.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):t.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(w),w=void 0},nulling:function(){Je=We=Ge=tt=Qe=Ke=qe=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||u||d||h){at(e,this.options,a,t);var i=H(a,!0);!tt||Qe&&r===Ke&&o===qe||(Qe&&rt(),Qe=setInterval((function(){var a=H(document.elementFromPoint(r,o),!0);a!==i&&(i=a,nt()),at(e,n.options,a,t)}),10),Ke=r,qe=o)}else{if(!this.options.bubbleScroll||H(a,!0)===N())return void nt();at(e,this.options,H(a,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),Re.mount(ct,lt);const Ct=Re},177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t;throw new Error(n?o+": "+n:o)}}},196:e=>{"use strict";e.exports=window.React}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,o,a]=e[d],l=!0,c=0;c<n.length;c++)(!1&a||i>=a)&&Object.keys(r.O).every((e=>r.O[e](n[c])))?n.splice(c--,1):(l=!1,a<i&&(i=a));if(l){e.splice(d--,1);var s=o();void 0!==s&&(t=s)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,o,a]},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={694:0,362:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,l,c]=n,s=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(c)var d=c(r)}for(t&&t(n);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(d)},n=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[362],(()=>r(65)));o=r.O(o)})();
     1(()=>{var e,t={65:(e,t,n)=>{"use strict";var r=n(196);const o=window.wp.blocks,a=window.wp.blockEditor,i=window.wp.element,l=(e="default",t)=>({[`--${e}-font-size`]:t.font_size+"px",[`--${e}-bold`]:t.bold?"bold":"",[`--${e}-font-styles`]:t.italic?"italic":"normal",[`--${e}-text-transform`]:t.text_transform,[`--${e}-font-weight`]:t.font_weight+""}),c=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,s=e=>`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,d=()=>(0,r.createElement)("svg",{width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M0 2.82227H2V0.822266H0V2.82227ZM0 8.82227H2V6.82227H0V8.82227ZM0 14.8223H2V12.8223H0V14.8223ZM6 0.822266V2.82227H8V0.822266H6ZM6 8.82227H8V6.82227H6V8.82227ZM6 14.8223H8V12.8223H6V14.8223Z",fill:"#7F94A9"})),u=()=>(0,r.createElement)("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 7.00017C16.5151 10.0655 12.7959 13 9.4998 13C6.20371 13 2.48449 10.0655 1 6.99981",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 7.00017C16.5151 3.93484 12.7965 1 9.50039 1C6.2043 1 2.48449 3.93412 1 6.99981",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{d:"M12.05 7C12.05 8.42016 10.9083 9.57143 9.5 9.57143C8.09167 9.57143 6.95 8.42016 6.95 7C6.95 5.57984 8.09167 4.42857 9.5 4.42857C10.9083 4.42857 12.05 5.57984 12.05 7Z",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})),p=()=>(0,r.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M7.87727 3.3562C8.40917 3.23903 8.95373 3.18045 9.5 3.18166C14.9091 3.18166 18 8.99984 18 8.99984C17.5309 9.82574 16.9715 10.6033 16.3309 11.3198M11.1382 10.5417C10.926 10.756 10.67 10.928 10.3857 11.0472C10.1013 11.1665 9.79433 11.2306 9.48307 11.2357C9.17181 11.2409 8.86263 11.187 8.57397 11.0773C8.28532 10.9676 8.0231 10.8042 7.80297 10.597C7.58284 10.3899 7.4093 10.1431 7.29271 9.8714C7.17612 9.59972 7.11886 9.30873 7.12435 9.01577C7.12984 8.72282 7.19797 8.43391 7.32468 8.16628C7.45138 7.89864 7.63406 7.65777 7.86182 7.45802M14.09 13.3198C12.7691 14.2675 11.1607 14.7925 9.5 14.818C4.09091 14.818 1 8.99984 1 8.99984C1.96119 7.31395 3.29433 5.84101 4.91 4.67984L14.09 13.3198Z",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.createElement)("path",{d:"M1 1L18 17",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})),h=window.wp.components;function g({items:e}){return(0,r.createElement)(h.TabPanel,{className:"brandy-tab-panel",activeClass:"active-tab",tabs:e},(e=>e.component))}const m=window.wp.i18n;function f({color:e,onChange:t}){var n;const o=(0,a.useSetting)("color.palette.theme"),l=(0,a.useSetting)("color.palette.default"),[c,s]=(0,i.useState)(!1),d=[{name:(0,m.__)("Theme","brandy"),colors:o},{name:(0,m.__)("Default","brandy"),colors:l}],u=(0,i.useRef)(null),p=(0,i.useRef)(null);return(0,i.useEffect)((()=>{function e(e){u.current?.contains(e.target)||p.current?.parentNode?.contains(e.target)||s(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[u.current,p.current,s]),(0,r.createElement)("div",{className:"color-picker"},(0,r.createElement)("div",{className:"color-picker__head"},(0,r.createElement)("div",{className:"color-indicator",style:{background:e},onClick:e=>{c?u.current?.contains(e.target)&&!p.current?.parentNode?.contains(e.target)&&s(!1):s(!0)},ref:u},c&&(0,r.createElement)(h.Popover,{className:"brandy-color-popover",ref:p},(0,r.createElement)("div",{className:"brandy-color-modal"},(0,r.createElement)(h.ColorPalette,{colors:d,value:e,onChange:t}))))),(0,r.createElement)("span",{className:"color-picker__tail"},null!==(n=e?.replace("#","").replace("var(--","").replace(")",""))&&void 0!==n?n:"Initial"))}function b({title:e,style:t}){return(0,r.createElement)(h.BaseControl.VisualLabel,{className:"setting__label",style:t},e)}function v({value:e,onChange:t,min:n,max:o,label:a=""}){return(0,r.createElement)(h.RangeControl,{label:a,className:"brandy-editor-slider",value:e,onChange:t,min:n,max:o})}const _=({attribute:e,value:t,title:n,onChange:o,min:a=0,max:i})=>(0,r.createElement)("div",{className:"brandy-editor-spacing__item"},(0,r.createElement)("input",{type:"number",value:t,onChange:e=>{let t=e.target.value;t<a&&(t=a),i&&t>i&&(t=i),""!=t&&null!=t||(t=0),o(t)},min:a}),(0,r.createElement)("span",null,n)),y=[{key:"top",label:(0,m.__)("Top","brandy")},{key:"right",label:(0,m.__)("Right","brandy")},{key:"bottom",label:(0,m.__)("Bottom","brandy")},{key:"left",label:(0,m.__)("Left","brandy")}];function E({value:e,onChange:t}){return(0,r.createElement)("div",{className:"brandy-editor-spacing"},y.map((n=>{return(0,r.createElement)(_,{attribute:n.key,value:e[n.key],title:n.label,onChange:(o=n.key,n=>{e.constrain?t({...e,top:n,left:n,right:n,bottom:n}):t({...e,[o]:n})})});var o})),(0,r.createElement)("div",{className:"brandy-editor-spacing__constrain "+(e.constrain?"constrain-active":""),onClick:()=>{const n=!e.constrain,r={...e};n&&(r.right=e.top,r.bottom=e.top,r.left=e.top),t({...r,constrain:n})}},(0,r.createElement)("svg",{width:"10",height:"20",viewBox:"0 0 10 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M5 6V14M9 13V15C9 16.0609 8.57857 17.0783 7.82843 17.8284C7.07828 18.5786 6.06087 19 5 19C3.93913 19 2.92172 18.5786 2.17157 17.8284C1.42143 17.0783 1 16.0609 1 15V13M9 7V5C9 3.93913 8.57857 2.92172 7.82843 2.17157C7.07828 1.42143 6.06087 1 5 1C3.93913 1 2.92172 1.42143 2.17157 2.17157C1.42143 2.92172 1 3.93913 1 5V7",stroke:"#5a6d80","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))))}function w({title:e,style:t}){return(0,r.createElement)(h.BaseControl.VisualLabel,{className:"setting__sub-label",style:t},e)}function C({options:e=[],selected:t,onChange:n,className:o=""}){return(0,r.createElement)(h.ButtonGroup,{className:`brandy-editor-btn-group ${o}`},e.map((e=>(0,r.createElement)(h.Button,{onClick:()=>{var t;t=e.value,n(t)},className:t===e.value?"selected":""},e.label))))}const x=[{label:(0,r.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M5.86111 5V11H17.3999V5H5.86111ZM0.616211 16H2.18968V0H0.616211V16Z",fill:"#5A6D80"})),value:"left"},{label:(0,r.createElement)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:"#5A6D80"})),value:"center"},{label:(0,r.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M0.550781 11H12.0896V5H0.550781V11ZM15.761 0V16H17.3345V0H15.761Z",fill:"#5A6D80"})),value:"right"}];function k({onChange:e,selected:t}){return(0,r.createElement)(C,{options:x,onChange:e,selected:t,className:"brandy-btn-group-icons"})}function D({options:e=[],selected:t,onChange:n}){return(0,r.createElement)("select",{className:"brandy-editor-select",value:t,onChange:e=>{n(e.target.value)},onfocus:"this.size=10;",onblur:"this.size=1;"},e.map((e=>(0,r.createElement)("option",{value:e.value},e.label))))}const S=[{label:"None",value:"none"},{label:"Small",value:"small"},{label:"Regular",value:"regular"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}];function N({selected:e,onChange:t,...n}){return(0,r.createElement)("div",{className:"brandy-editor-shadow"},(0,r.createElement)(D,{options:S,selected:e,onChange:e=>{"none"===e&&t({type:e,x:0,y:0,blur:0,spread:0,color:"#ffffff"}),"small"==e&&t({type:e,x:0,y:3,blur:10,spread:0,color:"rgba(0, 0, 0, 0.05)"}),"regular"==e&&t({type:e,x:0,y:4,blur:16,spread:0,color:"rgba(0, 0, 0, 0.06)"}),"medium"==e&&t({type:e,x:0,y:6,blur:20,spread:0,color:"rgba(0, 0, 0, 0.10)"}),"large"==e&&t({type:e,x:0,y:10,blur:26,spread:0,color:"rgba(0, 0, 0, 0.16)"})},...n}))}const M=({style:e,children:t})=>(0,r.createElement)("div",{style:{marginBottom:20,paddingBottom:20,borderBottom:"1px solid #F0F2F4",...e}},t);function T({title:e,initialOpen:t=!1,children:n}){return(0,r.createElement)(h.PanelBody,{title:e,initialOpen:t,className:"brandy-editor-panel-body"},n)}function O({initialStatus:e=!1,title:t=(0,m.__)("Menu title","brandy"),className:n="",children:o}){const[a,l]=(0,i.useState)(e);return(0,r.createElement)("div",{className:`brandy-collapse-menu ${a?"collapse-open":""} ${n}`},(0,r.createElement)("div",{className:"brandy-collapse-menu__header",onClick:()=>{l((e=>!e))}},(0,r.createElement)("span",{className:"collapse-title"},t),(0,r.createElement)("span",{className:"collapse-arrow"},(0,r.createElement)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11 2.15974L5.5 6.87402L0 2.15974L0.9 0.874023L5.5 4.73117L10 0.874023L11 2.15974Z",fill:"#C6D4E1"})))),a&&(0,r.createElement)("div",{className:"brandy-collapse-menu__content"},o))}function I({children:e,...t}){return(0,r.createElement)(O,{className:"styles-card",...t},e)}function A(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,background_color:{...e.highlight_settings.card.background_color,[n]:r}}}})},o=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,border_color:{...e.highlight_settings.card.border_color,[n]:r}}}})};return(0,r.createElement)(I,{title:(0,m.__)("Background & Padding","brandy")},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background colors","brandy")}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.background_color.normal,onChange:n("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.background_color.hover,onChange:n("hover")})))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Border colors","brandy")}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.border_color.normal,onChange:o("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:e.highlight_settings.card.border_color.hover,onChange:o("hover")})))))}const P={marginBottom:10},B={marginBottom:10,textTransform:"capitalize"};function H(){return(0,r.createElement)(I,{title:(0,m.__)("Card Item Color","brandy")},(0,r.createElement)(L,null),(0,r.createElement)($,null),(0,r.createElement)(j,null),(0,r.createElement)(R,null),(0,r.createElement)(F,null))}function L(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne);return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card Title","brandy"),style:P}),(0,r.createElement)(f,{color:e.highlight_settings.card.title_color,onChange:n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,title_color:n}}})}}))}function $(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,[n]:r}}})};return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card Pricing","brandy"),style:P}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Price","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.pricing_price_color,onChange:n("pricing_price_color")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Period","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.pricing_period_color,onChange:n("pricing_period_color")}))))}function F(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("normal");return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card Button","brandy"),style:P}),(0,r.createElement)(D,{options:[{label:"Fill",value:"fill"},{label:"Outline",value:"outline"}],selected:e.highlight_settings.card.button_type,onChange:n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,button_type:n}}})}}),(0,r.createElement)("div",{style:{marginTop:10}},(0,r.createElement)(C,{options:[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}],selected:n,onChange:o})),(0,r.createElement)("div",{className:"brandy-editor-group-color",style:{marginTop:10}},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Text color","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.button_text_color[n],onChange:(a=n,n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,button_text_color:{...e.highlight_settings.card.button_text_color,[a]:n}}}})})})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:"fill"===e.highlight_settings.card.button_type?(0,m.__)("Background color","brandy"):(0,m.__)("Border color","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card.button_background_color[n],onChange:(n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,button_background_color:{...e.highlight_settings.card.button_background_color,[n]:r}}}})})(n)}))));var a}function j(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne);return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Card description","brandy"),style:P}),(0,r.createElement)(f,{color:e.highlight_settings.card.description_color,onChange:n=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,description_color:n}}})}}))}function R(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("checked"),a=n=>r=>{t({highlight_settings:{...e.highlight_settings,card:{...e.highlight_settings.card,[n]:r}}})};return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("List features","brandy"),style:P}),(0,r.createElement)(C,{options:[{label:"Yes",value:"checked"},{label:"No",value:"unchecked"}],selected:n,onChange:o}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10,marginTop:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Icon","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card[`${n}_feature_icon_color`],onChange:a(`${n}_feature_icon_color`)})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background Icon","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card[`${n}_feature_icon_background_color`],onChange:a(`${n}_feature_icon_background_color`)}))),(0,r.createElement)("div",{style:{marginTop:10}},(0,r.createElement)(b,{title:(0,m.__)("Title","brandy"),style:B}),(0,r.createElement)(f,{color:e.highlight_settings.card[`${n}_feature_title_color`],onChange:a(`${n}_feature_title_color`)})))}function V(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne);return(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Select card","brandy"),style:{marginBottom:10}}),(0,r.createElement)(D,{options:[{label:(0,m.__)("None","brandy"),value:0},...Array.from({length:e.number_card}).map(((e,t)=>({label:`Card ${t+1}`,value:t+1})))],selected:e.highlight_settings.selected,onChange:n=>{t({highlight_settings:{...e.highlight_settings,selected:n}})}}))}var Z=n(941);const Y=[{key:"bold",label:(0,r.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11.74 8.34C13.5133 8.91333 14.4 10.14 14.4 12.02C14.4 13.2733 13.9933 14.2533 13.18 14.96C12.3667 15.6533 11.2533 16 9.84 16H4V2H9.28C11.9467 2 13.28 3.12667 13.28 5.38C13.28 6.76667 12.7667 7.75333 11.74 8.34ZM6.56 7.5H8.9C9.52667 7.5 9.99333 7.37333 10.3 7.12C10.6067 6.85333 10.76 6.44667 10.76 5.9C10.76 5.32667 10.6067 4.91333 10.3 4.66C9.99333 4.40667 9.52667 4.28 8.9 4.28H6.56V7.5ZM9.46 13.72C10.2067 13.72 10.7733 13.5733 11.16 13.28C11.56 12.9733 11.76 12.46 11.76 11.74C11.76 11.0333 11.5533 10.5333 11.14 10.24C10.74 9.93333 10.18 9.78 9.46 9.78H6.56V13.72H9.46Z",fill:"#5A6D80"}))},{key:"italic",label:(0,r.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11 2L8.6 16H7L9.4 2H11Z",fill:"#5A6D80"}))}],z=[{value:"none",label:"None"},{value:"uppercase",label:"AA"},{value:"capitalize",label:"Aa"}],X=[{value:100,label:"100"},{value:200,label:"200"},{value:300,label:"300"},{value:400,label:"400"},{value:500,label:"500"},{value:600,label:"600"},{value:700,label:"700"}];function U({value:e,onChange:t}){const[n,o]=(0,i.useState)(!1),a=(0,i.useRef)(null),l=(0,i.useRef)(null),c=n=>r=>{t({...e,[n]:r})};return(0,i.useEffect)((()=>{function e(e){a.current?.contains(e.target)||l.current?.parentNode?.contains(e.target)||o(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[a.current,l.current,o]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"typography-indicator",onClick:e=>{n?a.current?.contains(e.target)&&!l.current?.parentNode?.contains(e.target)&&o(!1):o(!0)},ref:a},(0,r.createElement)("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0002 2.62506L9.42878 0L2.14307 7.43766L4.7145 10.0627L12.0002 2.62506ZM4.71226 10.0622L2.14083 7.4371L1.28369 10.9372L4.71226 10.0622ZM5.99854 12.6869H-0.00146484V13.9995H5.99854V12.6869Z",fill:"#C6D4E1"})),n&&(0,r.createElement)(h.Popover,{ref:l},(0,r.createElement)("div",{className:"brandy-typography-modal"},(0,r.createElement)("div",{className:"brandy-typography-group",style:{marginTop:10}},(0,r.createElement)(b,{title:(0,m.__)("Types","brandy")}),(0,r.createElement)("div",{className:"brandy-typography__selector"},(0,r.createElement)("div",{className:"brandy-typography__selection-list"},Y.map((n=>{let o=e[n.key];return"underline"===n.key&&(o="underline"===e.decoration),"line_through"===n.key&&(o="line-through"===e.decoration),(0,r.createElement)("span",{className:"brandy-typography__selection-item "+(o?"item-active":""),onClick:()=>{var r;r=n.key,["underline","line_through"].includes(r)?t("underline"!==r?"line_through"!==r?{...e,decoration:"auto"}:{...e,decoration:"line-through"===e.decoration?"auto":"line-through"}:{...e,decoration:"underline"===e.decoration?"auto":"underline"}):t({...e,[r]:!e[r]})}},n.label)}))),(0,r.createElement)("div",{className:"brandy-typography__selection-list"},(0,r.createElement)(D,{options:Array.from({length:50},((e,t)=>t+11)).map((e=>({label:e+"px",value:e}))),selected:e.font_size,onChange:c("font_size")})),(0,r.createElement)(D,{options:z,selected:e.text_transform,onChange:c("text_transform")}))),(0,r.createElement)("div",{className:"brandy-typography-group brandy-typography__font-weight"},(0,r.createElement)(b,{title:(0,m.__)("Weight","brandy"),style:{display:"block"}}),(0,r.createElement)(D,{options:X,selected:e.font_weight,onChange:c("font_weight")}))))))}function G({title:e,onToggleVisible:t,visible:n=null}){return(0,r.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},(0,r.createElement)("span",{style:{display:"flex",alignItems:"center",gap:8}},(0,r.createElement)("span",{className:"item-block-drag-handler",onClick:e=>{e.stopPropagation()}},(0,r.createElement)(d,null)),(0,r.createElement)("span",null,e)),null!=n&&(0,r.createElement)("span",{className:"item-block-visible-icon "+(n?"icon-visible":"icon-invisible"),style:{padding:5,cursor:"pointer",display:"flex"},onClick:e=>{e.stopPropagation(),e.preventDefault(),t()}},n?(0,r.createElement)(u,null):(0,r.createElement)(p,null)))}const W=[{label:"25%",value:25},{label:"50%",value:50},{label:"75%",value:75},{label:"100%",value:100}],K=[{label:"Super",value:"super"},{label:"Bottom",value:"bottom"},{label:"Sub",value:"sub"}],q={highlight_badge:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{t({card_highlight_badge:{...e.card_highlight_badge,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Highlight badge","brandy")})},(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_highlight_badge.typography,onChange:n("typography")})),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10,marginTop:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Title","brandy"),style:{marginBottom:10}}),(0,r.createElement)(f,{color:e.card_highlight_badge.title_color,onChange:n("title_color")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background","brandy"),style:{marginBottom:10}}),(0,r.createElement)(f,{color:e.card_highlight_badge.background_color,onChange:n("background_color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Padding","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_highlight_badge.padding,onChange:n("padding")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_highlight_badge.margin,onChange:n("margin")})))},title:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{n in e.card_title&&t({card_title:{...e.card_title,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Title","brandy"),visible:e.card_title.visible,onToggleVisible:()=>{n("visible")(!e.card_title.visible)}})},(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy"),style:{marginBottom:0}}),(0,r.createElement)(U,{value:e.card_title.typography,onChange:n("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_title.color,onChange:n("color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy")}),(0,r.createElement)(E,{value:e.card_title.margin,onChange:n("margin")})))},pricing:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{n in e.card_pricing?.price&&t({card_pricing:{...e.card_pricing,price:{...e.card_pricing.price,[n]:r}}})},o=n=>r=>{n in e.card_pricing?.period&&t({card_pricing:{...e.card_pricing,period:{...e.card_pricing.period,[n]:r}}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Pricing","brandy"),visible:e.card_pricing.visible,onToggleVisible:()=>{t({card_pricing:{...e.card_pricing,visible:!e.card_pricing.visible}})}})},(0,r.createElement)("div",{className:"pricing-group"},(0,r.createElement)(b,{title:(0,m.__)("Price","brandy"),style:{marginBottom:0}}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_pricing.price.typography,onChange:n("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_pricing.price.color,onChange:n("color")})))),(0,r.createElement)("div",{className:"pricing-group"},(0,r.createElement)(b,{title:(0,m.__)("Period","brandy"),style:{marginBottom:0}}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_pricing.period.typography,onChange:o("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_pricing.period.color,onChange:o("color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Position","brandy")}),(0,r.createElement)(C,{options:K,selected:e.card_pricing.period.position,onChange:o("position")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_pricing.margin,onChange:n=>{t({card_pricing:{...e.card_pricing,margin:n}})}})))},description:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),n=n=>r=>{n in e.card_description&&t({card_description:{...e.card_description,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Description","brandy"),visible:e.card_description.visible,onToggleVisible:()=>{n("visible")(!e.card_description.visible)}})},(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy"),style:{marginBottom:0}}),(0,r.createElement)(U,{value:e.card_description.typography,onChange:n("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Color","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_description.color,onChange:n("color")}))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy")}),(0,r.createElement)(E,{value:e.card_description.margin,onChange:n("margin")})))},list_features:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("checked"),a=r=>o=>{t({card_features:{...e.card_features,[n]:{...e.card_features[n],[r]:o}}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("List features","brandy"),visible:e.card_features.visible,onToggleVisible:()=>{t({card_features:{...e.card_features,visible:!e.card_features.visible}})}})},(0,r.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:20}},(0,r.createElement)(C,{options:[{label:"Checked",value:"checked"},{label:"Unchecked",value:"unchecked"}],selected:n,onChange:o}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy"),style:{marginBottom:0}}),(0,r.createElement)(U,{value:e.card_features[n].typography,onChange:a("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Title","brandy"),style:{textTransform:"capitalize"}}),(0,r.createElement)(f,{color:e.card_features[n].title_color,onChange:a("title_color")})),(0,r.createElement)("div",{className:"brandy-editor-group-color",style:{display:"flex",justifyContent:"space-between",gap:10}},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Icon","brandy"),style:{textTransform:"capitalize"}}),(0,r.createElement)(f,{color:e.card_features[n].icon_color,onChange:a("icon_color")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Background icon","brandy"),style:{textTransform:"capitalize"}}),(0,r.createElement)(f,{color:e.card_features[n].icon_background_color,onChange:a("icon_background_color")}))),(0,r.createElement)("div",{style:{borderTop:"1px solid #F0F2F4",paddingTop:20}},(0,r.createElement)(b,{title:(0,m.__)("Item spacing")}),(0,r.createElement)(v,{value:e.card_features.item_spacing,onChange:n=>{t({card_features:{...e.card_features,item_spacing:n}})}}))))},button:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(ne),[n,o]=(0,i.useState)("normal"),a=n=>r=>{n in e.card_button&&t({card_button:{...e.card_button,[n]:r}})};return(0,r.createElement)(I,{title:(0,r.createElement)(G,{title:(0,m.__)("Button","brandy"),visible:e.card_button.visible,onToggleVisible:()=>{a("visible")(!e.card_button.visible)}})},(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Button type","brandy"),style:{marginBottom:10}}),(0,r.createElement)(D,{options:[{label:"Fill",value:"fill"},{label:"Outline",value:"outline"}],selected:e.card_button.type,onChange:a("type")})),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,r.createElement)(b,{title:(0,m.__)("Typography","brandy")}),(0,r.createElement)(U,{value:e.card_button.typography,onChange:a("typography")})),(0,r.createElement)("div",null,(0,r.createElement)(C,{options:[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}],selected:n,onChange:o}),(0,r.createElement)("div",{style:{display:"flex",justifyContent:"space-between",gap:10,marginTop:10},className:"brandy-editor-group-color"},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Text Color","brandy"),style:{marginBottom:10}}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_button.color[n],onChange:(l=n,n=>{t({card_button:{...e.card_button,color:{...e.card_button.color,[l]:n}}})})}))),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:"fill"===e.card_button.type?(0,m.__)("Background Color","brandy"):(0,m.__)("Border Color","brandy"),style:{marginBottom:10}}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)(f,{color:e.card_button.background_color[n],onChange:(n=>r=>{t({card_button:{...e.card_button,background_color:{...e.card_button.background_color,[n]:r}}})})(n)}))))),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Width","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(C,{options:W,selected:e.card_button.width,onChange:a("width")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Border radius","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_button.border_radius,onChange:a("border_radius")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Padding","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_button.padding,onChange:a("padding")})),(0,r.createElement)("div",null,(0,r.createElement)(b,{title:(0,m.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,r.createElement)(E,{value:e.card_button.margin,onChange:a("margin")})));var l}};function J(){var e;const{attributes:t,setAttributes:n}=(0,i.useContext)(ne),o=null!==(e=t.card_layout)&&void 0!==e?e:[];return(0,r.createElement)(Z.ReactSortable,{list:o,setList:e=>{n({card_layout:e.map((e=>e.toString()))});const t=new CustomEvent("newLayoutNotification",{detail:{card_layout:e.map((e=>e.toString()))}});window.dispatchEvent(t)},animation:150,easing:"ease-in-out",className:"pricing-card-layout-list",handle:".item-block-drag-handler"},o.map((e=>{const t=q[e];return!!t&&(0,r.createElement)(t,null)})))}const Q=[{name:"tab1",className:"tab-one",icon:()=>(0,r.createElement)("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6579 0.89917C16.3991 0.89917 17 1.50005 17 2.24128V12.9781C17 13.7193 16.3991 14.3202 15.6579 14.3202H12.5263V16.5571C12.5263 17.2983 11.9254 17.8992 11.1842 17.8992H1.34211C0.600881 17.8992 0 17.2983 0 16.5571V6.71496C0 5.97373 0.600881 5.37285 1.34211 5.37285H3.57895V2.24128C3.57895 1.50005 4.17983 0.89917 4.92105 0.89917H15.6579ZM9.8421 12.5307H15.2105V7.16233L9.8421 12.5307ZM1.78947 16.1097H10.7368V14.2965L4.92549 14.3158C4.18254 14.3182 3.57895 13.7166 3.57895 12.9737V7.16233H1.78947V16.1097ZM10.7368 2.68864H5.36842V8.05706L10.7368 2.68864Z",fill:"#000729"})),component:function(){var e;const{attributes:t,setAttributes:n}=(0,i.useContext)(ne),o=e=>r=>{n({card_settings:{...t.card_settings,[e]:r}})},a=e=>r=>{n({card_settings:{...t.card_settings,background:{...t.card_settings.background,[e]:r}}})},l=e=>r=>{n({card_settings:{...t.card_settings,border_color:{...t.card_settings.border_color,[e]:r}}})};return(0,r.createElement)("div",{className:"pricing-settings__general",style:{padding:"20px 10px",background:"#ffffff"}},(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Number of pricing")}),(0,r.createElement)(v,{min:1,max:4,value:null!==(e=t.number_card)&&void 0!==e?e:3,onChange:e=>{n({number_card:e}),t.highlight_settings?.selected>e&&n({highlight_settings:{...t.highlight_settings,selected:e}})}})),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Card content alignment")}),(0,r.createElement)(k,{selected:t.card_settings.horizontal_alignment,onChange:o("horizontal_alignment")})),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Card Backgrounds","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:t.card_settings.background.normal,onChange:a("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:t.card_settings.background.hover,onChange:a("hover")})))),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Card Borders","brandy")}),(0,r.createElement)("div",{style:{display:"flex",gap:10}},(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Normal","brandy")}),(0,r.createElement)(f,{color:t.card_settings.border_color.normal,onChange:l("normal")})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Hover","brandy")}),(0,r.createElement)(f,{color:t.card_settings.border_color.hover,onChange:l("hover")})))),(0,r.createElement)(M,null,(0,r.createElement)(b,{title:(0,m.__)("Drop shadow","brandy")}),(0,r.createElement)(N,{selected:t.card_settings.shadow.type,onChange:e=>{n({card_settings:{...t.card_settings,shadow:e}})}})),(0,r.createElement)(M,{style:{marginBottom:0,borderBottom:0,paddingBottom:0}},(0,r.createElement)(b,{title:(0,m.__)("Card Dimensions","brandy")}),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Spacing","brandy")}),(0,r.createElement)(v,{value:t.card_settings.spacing,onChange:o("spacing"),min:10,max:100})),(0,r.createElement)("div",null,(0,r.createElement)(w,{title:(0,m.__)("Padding","brandy")}),(0,r.createElement)(E,{value:t.card_settings.padding,onChange:o("padding")}))))}},{name:"tab2",className:"tab-two",icon:()=>(0,r.createElement)("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M19.125 7.19917L13.525 1.59917C12.825 0.89917 11.725 0.89917 11.025 1.59917L5.425 7.19917C4.725 7.89917 4.725 8.99917 5.425 9.69917L11.025 15.2992C11.325 15.5992 11.825 15.7992 12.225 15.7992C12.625 15.7992 13.125 15.5992 13.425 15.2992L19.025 9.69917C19.825 8.99917 19.825 7.79917 19.125 7.19917ZM1.525 8.19917L7.825 1.89917L6.825 0.89917L0.525 7.19917C-0.175 7.89917 -0.175 8.99917 0.525 9.69917L6.825 15.8992L7.925 14.7992L1.625 8.49917C1.425 8.49917 1.425 8.29917 1.525 8.19917Z",fill:"#000729"})),component:function(){return(0,r.createElement)("div",{className:"pricing-settings__styles"},(0,r.createElement)(T,{title:(0,m.__)("Item block","brandy")},(0,r.createElement)(J,null)),(0,r.createElement)(T,{title:(0,m.__)("Highlight card","brandy")},(0,r.createElement)(V,null),(0,r.createElement)(H,null),(0,r.createElement)(A,null)))}}];function ee(){return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)("div",{className:"brandy-editor pricing-settings"},(0,r.createElement)(g,{items:Q})))}const te=JSON.parse('{"u2":"brandy/pricing","Y4":{"y4":{"Z":3},"lF":{"Z":{"visible":true,"color":"var(--body_text, #000729)","margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false},"typography":{"font_size":26,"bold":false,"italic":false,"text_transform":"uppercase","font_weight":600}}},"Jj":{"Z":{"visible":true,"price":{"color":"var(--accent, #3858E9)","typography":{"font_size":36,"bold":false,"italic":false,"text_transform":"none","font_weight":600}},"period":{"color":"#3858E9","typography":{"font_size":14,"bold":false,"italic":false,"text_transform":"none","font_weight":600},"position":"sub"},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"hu":{"Z":{"visible":true,"color":"var(--secondary_text, #5A6D80)","typography":{"font_size":16,"bold":false,"italic":false,"text_transform":"none","font_weight":400},"margin":{"top":0,"left":0,"right":0,"bottom":15,"constrain":false}}},"qQ":{"Z":{"visible":true,"checked":{"title_color":"var(--body_text, #000729)","icon_color":"var(--accent, #3858E9)","icon_background_color":"#EBF1F5","typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":400}},"unchecked":{"title_color":"#ABB8C3","icon_color":"#FFFFFF","icon_background_color":"#D1D9E0","typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":400}},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false},"item_spacing":5}},"ys":{"Z":{"visible":true,"type":"fill","color":{"normal":"#ffffff","hover":"#ffffff"},"background_color":{"normal":"var(--accent, #3858E9)","hover":"var(--accent, #3858E9)"},"width":100,"border_radius":{"top":7,"left":7,"right":7,"bottom":7,"constrain":true},"margin":{"top":15,"left":0,"right":0,"bottom":0,"constrain":false},"padding":{"top":12,"left":20,"right":20,"bottom":12,"constrain":false},"typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":500}}},"V0":{"Z":{"horizontal_alignment":"left","background":{"normal":"#ffffff","hover":"#ffffff"},"border_color":{"normal":"#EBF1F5","hover":"var(--accent, #3858E9)"},"shadow":{"type":"none","x":0,"y":0,"blur":0,"spread":0,"color":"#ffffff"},"spacing":30,"padding":{"top":30,"right":30,"bottom":30,"left":30,"constrain":true}}},"yC":{"Z":{"title_color":"#FFFFFF","background_color":"#FABD00","typography":{"font_size":12,"bold":false,"italic":false,"text_transform":"uppercase","font_weight":600},"margin":{"top":10,"left":0,"right":0,"bottom":10,"constrain":false},"padding":{"top":5,"left":9,"right":9,"bottom":5,"constrain":false}}},"zU":{"Z":{"selected":2,"card":{"title_color":"var(--body_text, #000729)","pricing_price_color":"var(--accent, #3858E9)","pricing_period_color":"var(--accent, #3858E9)","description_color":"var(--secondary_text, #5A6D80)","checked_feature_icon_color":"var(--accent, #3858E9)","checked_feature_icon_background_color":"#EBF1F5","checked_feature_title_color":"#000729","unchecked_feature_icon_color":"#FFFFFF","unchecked_feature_icon_background_color":"#D1D9E0","unchecked_feature_title_color":"#ABB8C3","button_type":"fill","button_text_color":{"normal":"#ffffff","hover":"#ffffff"},"button_background_color":{"normal":"var(--accent, #3858E9)","hover":"var(--accent, #3858E9)"},"background_color":{"normal":"#ffffff","hover":"#ffffff"},"border_color":{"normal":"var(--accent, #3858E9)","hover":"var(--accent, #3858E9)"}}}},"xX":{"Z":["highlight_badge","title","pricing","description","list_features","button"]}}}'),ne=(0,i.createContext)({}),re=[["brandy/pricing-card",{title:"Pack Trial",pricing:"Free <sub>/14 days</sub>",description:"Start from here, no credit card required",features:[{text:"Single user account",status:"checked"},{text:"Use any 3 templates",status:"checked"},{text:"2 GB storage",status:"unchecked"},{text:"Feature benefit in 14 days",status:"unchecked"},{text:"3 audiences",status:"unchecked"},{text:"Support for first 14 days",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:1}],["brandy/pricing-card",{title:"Pack Standard",pricing:"$29.99 <sub>/monthly</sub>",description:"Enjoy our basic amenities and future features",features:[{text:"Unlimited user account",status:"checked"},{text:"Use any 100 templates",status:"checked"},{text:"25 GB storage",status:"unchecked"},{text:"Feature benefit",status:"checked"},{text:"10 audiences",status:"checked"},{text:"24/7 email and chat support",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:2}],["brandy/pricing-card",{title:"Pack Premium",pricing:"$59.00 <sub>/monthly</sub>",description:"Get benefit pro for your entire team",features:[{text:"Unlimited user account",status:"checked"},{text:"Unlimited templates",status:"checked"},{text:"100 GB storage",status:"unchecked"},{text:"Feature benefit pro",status:"checked"},{text:"Unlimited audiences",status:"checked"},{text:"Phone and priority support",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:3}],["brandy/pricing-card",{title:"Pack Premium",pricing:"$59.00 <sub>/monthly</sub>",description:"Get benefit pro for your entire team",features:[{text:"Unlimited user account",status:"checked"},{text:"Unlimited templates",status:"checked"},{text:"100 GB storage",status:"unchecked"},{text:"Feature benefit pro",status:"checked"},{text:"Unlimited audiences",status:"checked"},{text:"Phone and priority support",status:"checked"}],button:"<a href='#'>Start Free Trial</a>",position:4}]];(0,o.registerBlockType)(te.u2,{edit:function({attributes:e,setAttributes:t,clientId:n}){const o=(0,a.useBlockProps)(),d=(0,i.useMemo)((()=>{var t,n,r,o,a,i,l,c,s,d;return{number_card:null!==(t=e.number_card)&&void 0!==t?t:te.Y4.y4.Z,card_title:null!==(n=e.card_title)&&void 0!==n?n:te.Y4.lF.Z,card_pricing:null!==(r=e.card_pricing)&&void 0!==r?r:te.Y4.Jj.Z,card_description:null!==(o=e.card_description)&&void 0!==o?o:te.Y4.hu.Z,card_features:null!==(a=e.card_features)&&void 0!==a?a:te.Y4.qQ.Z,card_button:null!==(i=e.card_button)&&void 0!==i?i:te.Y4.ys.Z,card_highlight_badge:null!==(l=e.card_highlight_badge)&&void 0!==l?l:te.Y4.yC.Z,card_settings:null!==(c=e.card_settings)&&void 0!==c?c:te.Y4.V0.Z,highlight_settings:null!==(s=e.highlight_settings)&&void 0!==s?s:te.Y4.zU.Z,card_layout:null!==(d=e.card_layout)&&void 0!==d?d:te.Y4.xX.Z}}),[e]),u=(0,i.useMemo)((()=>({attributes:d,setAttributes:t,clientId:n})),[d,t,n]),p=(0,i.useMemo)((()=>{var t;return Array.from({length:null!==(t=e.number_card)&&void 0!==t?t:3}).map(((e,t)=>re[t]))}),[e.number_card]);return(0,r.createElement)("div",{...o,className:o.className+" block-upgraded"},(0,r.createElement)(ne.Provider,{value:u},(0,r.createElement)(ee,null),(0,r.createElement)("div",{className:"brandy-pricing-wrapper","card-horizontal-alignment":d.card_settings.horizontal_alignment,style:{"--card-title-margin":s(d.card_title.margin),"--card-title-color":d.card_title.color,...l("card-title",d.card_title.typography),"--card-pricing-margin":s(d.card_pricing.margin),"--card-pricing-price-color":d.card_pricing.price.color,...l("card-pricing-price",d.card_pricing.price.typography),"--card-pricing-period-color":d.card_pricing.period.color,...l("card-pricing-period",d.card_pricing.period.typography),"--card-pricing-period-position":d.card_pricing.period.position,"--card-description-margin":s(d.card_description.margin),"--card-description-color":d.card_description.color,...l("card-description",d.card_description.typography),"--card-features-margin":s(d.card_features.margin),"--card-features-item-spacing":`${d.card_features.item_spacing}px`,"--pricing-feature-checked-title-color":d.card_features.checked.title_color,"--pricing-feature-checked-icon-color":d.card_features.checked.icon_color,"--pricing-feature-checked-icon-background-color":d.card_features.checked.icon_background_color,...l("pricing-feature-checked",d.card_features.checked.typography),"--pricing-feature-unchecked-title-color":d.card_features.unchecked.title_color,"--pricing-feature-unchecked-icon-color":d.card_features.unchecked.icon_color,"--pricing-feature-unchecked-icon-background-color":d.card_features.unchecked.icon_background_color,...l("pricing-feature-unchecked",d.card_features.unchecked.typography),"--card-button-margin":s(d.card_button.margin),"--card-button-padding":s(d.card_button.padding),"--card-button-border-radius":`${d.card_button.border_radius.top}px ${d.card_button.border_radius.right}px ${d.card_button.border_radius.bottom}px ${d.card_button.border_radius.left}px`,"--card-button-width":`${d.card_button.width}%`,"--card-button-color-normal":d.card_button.color.normal,"--card-button-color-hover":d.card_button.color.hover,..."fill"===d.card_button.type?{"--card-button-background-color-normal":d.card_button.background_color.normal,"--card-button-background-color-hover":d.card_button.background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":d.card_button.background_color.normal,"--card-button-border-color-hover":d.card_button.background_color.hover},...l("card-button",d.card_button.typography),"--card-background-normal":d.card_settings.background.normal,"--card-background-hover":d.card_settings.background.hover,"--card-shadow":c(d.card_settings.shadow),"--card-border-color-normal":d.card_settings.border_color.normal,"--card-border-color-hover":d.card_settings.border_color.hover,"--card-spacing":`${d.card_settings.spacing}px`,"--card-padding":s(d.card_settings.padding),"--card-title-display":d.card_title.visible?"block":"none","--card-description-display":d.card_description.visible?"block":"none","--card-features-display":d.card_features.visible?"flex":"none","--card-button-display":d.card_button.visible?"block":"none",..."bottom"===d.card_pricing.period.position?{"--card-pricing-display":"flex","--card-pricing-flex-direction":"column","--card-pricing-flex-align-items":"center"===d.card_settings.horizontal_alignment?"center":"right"===d.card_settings.horizontal_alignment?"flex-end":"flex-start"}:{"--card-pricing-display":d.card_pricing.visible?"block":"none"}}},(0,r.createElement)("div",{className:"brandy-pricing-list"},(0,r.createElement)(a.InnerBlocks,{template:p,allowedBlocks:["brandy/pricing-card"],templateLock:"all"})))))},save:function({attributes:e}){const t=a.useBlockProps.save();return(0,r.createElement)("div",{...t},(0,r.createElement)("div",{className:"brandy-pricing-wrapper","card-horizontal-alignment":e.card_settings.horizontal_alignment,style:{"--card-title-margin":s(e.card_title.margin),"--card-title-color":e.card_title.color,...l("card-title",e.card_title.typography),"--card-pricing-margin":s(e.card_pricing.margin),"--card-pricing-price-color":e.card_pricing.price.color,...l("card-pricing-price",e.card_pricing.price.typography),"--card-pricing-period-color":e.card_pricing.period.color,...l("card-pricing-period",e.card_pricing.period.typography),"--card-pricing-period-position":e.card_pricing.period.position,"--card-description-margin":s(e.card_description.margin),"--card-description-color":e.card_description.color,...l("card-description",e.card_description.typography),"--card-features-margin":s(e.card_features.margin),"--card-features-item-spacing":`${e.card_features.item_spacing}px`,"--pricing-feature-checked-title-color":e.card_features.checked.title_color,"--pricing-feature-checked-icon-color":e.card_features.checked.icon_color,"--pricing-feature-checked-icon-background-color":e.card_features.checked.icon_background_color,...l("pricing-feature-checked",e.card_features.checked.typography),"--pricing-feature-unchecked-title-color":e.card_features.unchecked.title_color,"--pricing-feature-unchecked-icon-color":e.card_features.unchecked.icon_color,"--pricing-feature-unchecked-icon-background-color":e.card_features.unchecked.icon_background_color,...l("pricing-feature-unchecked",e.card_features.unchecked.typography),"--card-button-margin":s(e.card_button.margin),"--card-button-padding":s(e.card_button.padding),"--card-button-border-radius":`${e.card_button.border_radius.top}px ${e.card_button.border_radius.right}px ${e.card_button.border_radius.bottom}px ${e.card_button.border_radius.left}px`,"--card-button-width":`${e.card_button.width}%`,"--card-button-color-normal":e.card_button.color.normal,"--card-button-color-hover":e.card_button.color.hover,..."fill"===e.card_button.type?{"--card-button-background-color-normal":e.card_button.background_color.normal,"--card-button-background-color-hover":e.card_button.background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":e.card_button.background_color.normal,"--card-button-border-color-hover":e.card_button.background_color.hover},...l("card-button",e.card_button.typography),"--card-background-normal":e.card_settings.background.normal,"--card-background-hover":e.card_settings.background.hover,"--card-shadow":c(e.card_settings.shadow),"--card-border-color-normal":e.card_settings.border_color.normal,"--card-border-color-hover":e.card_settings.border_color.hover,"--card-spacing":`${e.card_settings.spacing}px`,"--card-padding":s(e.card_settings.padding),"--card-title-display":e.card_title.visible?"block":"none","--card-description-display":e.card_description.visible?"block":"none","--card-features-display":e.card_features.visible?"flex":"none","--card-button-display":e.card_button.visible?"block":"none",..."bottom"===e.card_pricing.period.position?{"--card-pricing-display":"flex","--card-pricing-flex-direction":"column","--card-pricing-flex-align-items":"center"===e.card_settings.horizontal_alignment?"center":"right"===e.card_settings.horizontal_alignment?"flex-end":"flex-start"}:{"--card-pricing-display":e.card_pricing.visible?"block":"none"}}},(0,r.createElement)("div",{className:"brandy-pricing-list"},(0,r.createElement)(a.InnerBlocks.Content,null))))},icon:(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",}))})},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var l in n)r.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},941:(e,t,n)=>{var r=n(474),o=n(184),a=n(196),i=n(177);function l(e){return e&&e.__esModule?e.default:e}function c(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function s(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e){e.forEach((e=>s(e.element)))}function u(e){e.forEach((e=>{!function(e,t,n){const r=e.children[n]||null;e.insertBefore(t,r)}(e.parentElement,e.element,e.oldIndex)}))}function p(e,t){const n=m(e),r={parentElement:e.from};let o=[];switch(n){case"normal":o=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":o=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case"multidrag":o=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r})))}const a=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(o,t);return a}function h(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function g(e,t,n,r){const o=[...t];return e.forEach((e=>{const t=r&&n&&r(e.item,n);o.splice(e.newIndex,0,t||e.item)})),o}function m(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}c(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),c(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),c(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),c(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),c(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),c(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),c(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),c(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),c(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),c(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),c(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),c(e.exports,"ReactSortable",(()=>b));const f={dragging:null};class b extends a.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,a.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,f),l(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();l(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:r}=this.props,o={style:t,className:n,id:r},i=e&&null!==e?e:"div";return(0,a.createElement)(i,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:c="sortable-falback",ghostClass:s="sortable-ghost",swapClass:d="sortable-swap-highlight",filter:u="sortable-filter",list:p}=this.props;if(!e||null==e)return null;const h=t||"data-id";return a.Children.map(e,((e,t)=>{if(void 0===e)return;const i=p[t]||{},{className:c}=e.props,s="string"==typeof u&&{[u.replace(".","")]:!!i.filtered},d=l(o)(c,{[n]:i.selected,[r]:i.chosen,...s});return(0,a.cloneElement)(e,{[h]:e.key,className:d})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:r,tag:o,style:a,className:i,clone:l,onAdd:c,onChange:s,onChoose:d,onClone:u,onEnd:p,onFilter:h,onRemove:g,onSort:m,onStart:f,onUnchoose:b,onUpdate:v,onMove:_,onSpill:y,onSelect:E,onDeselect:w,...C}=e;return C}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;const o=n(e,t,this.sortable,f);return void 0!==o&&o}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,f)}onAdd(e){const{list:t,setList:n,clone:r}=this.props,o=p(e,[...f.dragging.props.list]);d(o),n(g(o,t,e,r).map((e=>Object.assign(e,{selected:!1}))),this.sortable,f)}onRemove(e){const{list:t,setList:n}=this.props,r=m(e),o=p(e,t);u(o);let a=[...t];if("clone"!==e.pullMode)a=h(o,a);else{let t=o;switch(r){case"multidrag":t=o.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=o.map((t=>({...t,element:e.clone})));break;default:l(i)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${r}" plugin`)}d(t),o.forEach((t=>{const n=t.oldIndex,r=this.props.clone(t.item,e);a.splice(n,1,r)}))}a=a.map((e=>Object.assign(e,{selected:!1}))),n(a,this.sortable,f)}onUpdate(e){const{list:t,setList:n}=this.props,r=p(e,t);return d(r),u(r),n(function(e,t){return g(e,h(e,t))}(r,t),this.sortable,f)}onStart(){f.dragging=this}onEnd(){f.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r})),this.sortable,f)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,f)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&s(e.item)}onSelect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);r[n].selected=!0})),n(r,this.sortable,f)}onDeselect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(r[t].selected=!0)})),n(r,this.sortable,f)}}var v,_;v=e.exports,_={},Object.keys(_).forEach((function(e){"default"===e||"__esModule"===e||v.hasOwnProperty(e)||Object.defineProperty(v,e,{enumerable:!0,get:function(){return _[e]}})}))},474:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>yt,Sortable:()=>Re,Swap:()=>st,default:()=>Ct});var d=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=s(/Edge/i),p=s(/firefox/i),h=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),g=s(/iP(ad|od|hone)/i),m=s(/chrome/i)&&s(/android/i),f={capture:!1,passive:!1};function b(e,t,n){e.addEventListener(t,n,!d&&f)}function v(e,t,n){e.removeEventListener(t,n,!d&&f)}function _(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&_(e,t):_(e,t))||r&&e===n)return e;if(e===n)break}while(e=y(e))}return null}var w,C=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(C," ")}}function k(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function D(e,t){var n="";if("string"==typeof e)n=e;else do{var r=k(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function S(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function N(){return document.scrollingElement||document.documentElement}function M(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,l,c,s,u,p;if(e!==window&&e.parentNode&&e!==N()?(i=(a=e.getBoundingClientRect()).top,l=a.left,c=a.bottom,s=a.right,u=a.height,p=a.width):(i=0,l=0,c=window.innerHeight,s=window.innerWidth,u=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!d))do{if(o&&o.getBoundingClientRect&&("none"!==k(o,"transform")||n&&"static"!==k(o,"position"))){var h=o.getBoundingClientRect();i-=h.top+parseInt(k(o,"border-top-width")),l-=h.left+parseInt(k(o,"border-left-width")),c=i+a.height,s=l+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var g=D(o||e),m=g&&g.a,f=g&&g.d;g&&(c=(i/=f)+(u/=f),s=(l/=m)+(p/=m))}return{top:i,left:l,bottom:c,right:s,width:p,height:u}}}function T(e){var t=M(e),n=parseInt(k(e,"padding-left")),r=parseInt(k(e,"padding-top")),o=parseInt(k(e,"padding-right")),a=parseInt(k(e,"padding-bottom"));return t.top+=r+parseInt(k(e,"border-top-width")),t.left+=n+parseInt(k(e,"border-left-width")),t.width=e.clientWidth-n-o,t.height=e.clientHeight-r-a,t.bottom=t.top+t.height,t.right=t.left+t.width,t}function O(e,t,n){for(var r=H(e,!0),o=M(e)[t];r;){var a=M(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===N())break;r=H(r,!1)}return!1}function I(e,t,n,r){for(var o=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==Re.ghost&&(r||i[a]!==Re.dragged)&&E(i[a],n.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function A(e,t){for(var n=e.lastElementChild;n&&(n===Re.ghost||"none"===k(n,"display")||t&&!_(n,t));)n=n.previousElementSibling;return n||null}function P(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Re.clone||t&&!_(e,t)||n++;return n}function B(e){var t=0,n=0,r=N();if(e)do{var o=D(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function H(e,t){if(!e||!e.getBoundingClientRect)return N();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(r||t)return n;r=!0}}}while(n=n.parentNode);return N()}function L(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function $(e,t){return function(){if(!w){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),w=setTimeout((function(){w=void 0}),t)}}}function F(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function j(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function R(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function V(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}var Z="Sortable"+(new Date).getTime();var Y=[],z={initializeByDefault:!0},X={mount:function(e){for(var t in z)z.hasOwnProperty(t)&&!(t in e)&&(e[t]=z[t]);Y.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Y.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";Y.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in Y.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[o]=a,l(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);void 0!==a&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return Y.forEach((function(r){"function"==typeof r.eventProperties&&l(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return Y.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function U(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,l=e.toEl,c=e.fromEl,s=e.oldIndex,p=e.newIndex,h=e.oldDraggableIndex,g=e.newDraggableIndex,m=e.originalEvent,f=e.putSortable,b=e.extraEventProperties;if(t=t||n&&n[Z]){var v,_=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||d||u?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=l||n,v.from=c||n,v.item=a||n,v.clone=i,v.oldIndex=s,v.newIndex=p,v.oldDraggableIndex=h,v.newDraggableIndex=g,v.originalEvent=m,v.pullMode=f?f.lastPutMode:void 0;var E=o(o({},b),X.getEventProperties(r,t));for(var w in E)v[w]=E[w];n&&n.dispatchEvent(v),_[y]&&_[y].call(t,v)}}var G=["evt"],W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,G);X.pluginEvent.bind(Re)(e,t,o({dragEl:q,parentEl:J,ghostEl:Q,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:be,putSortable:de,activeSortable:Re.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:ce,hideGhostForTarget:Le,unhideGhostForTarget:$e,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){K({sortable:t,name:e,originalEvent:r})}},a))};function K(e){U(o({putSortable:de,cloneEl:re,targetEl:q,rootEl:ee,oldIndex:ae,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:ce},e))}var q,J,Q,ee,te,ne,re,oe,ae,ie,le,ce,se,de,ue,pe,he,ge,me,fe,be,ve,_e,ye,Ee,we=!1,Ce=!1,xe=[],ke=!1,De=!1,Se=[],Ne=!1,Me=[],Te="undefined"!=typeof document,Oe=g,Ie=u||d?"cssFloat":"float",Ae=Te&&!m&&!g&&"draggable"in document.createElement("div"),Pe=function(){if(Te){if(d)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Be=function(e,t){var n=k(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=I(e,0,t),a=I(e,1,t),i=o&&k(o),l=a&&k(a),c=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+M(o).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+M(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var d="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==d?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||c>=r&&"none"===n[Ie]||a&&"none"===n[Ie]&&c+s>r)?"vertical":"horizontal"},He=function(e){function t(e,n){return function(r,o,a,i){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var c=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Le=function(){!Pe&&Q&&k(Q,"display","none")},$e=function(){!Pe&&Q&&k(Q,"display","")};Te&&!m&&document.addEventListener("click",(function(e){if(Ce)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ce=!1,!1}),!0);var Fe=function(e){if(q){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,xe.some((function(e){var t=e[Z].options.emptyInsertThreshold;if(t&&!A(e)){var n=M(e),r=o>=n.left-t&&o<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return r&&l?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Z]._onDragOver(n)}}var o,a,i},je=function(e){q&&q.parentNode[Z]._isOutsideThisEl(e.target)};function Re(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[Z]=this;var n,r,a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Be(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Re.supportPointer&&"PointerEvent"in window&&!h,emptyInsertThreshold:5};for(var i in X.initializePlugins(this,e,a),a)!(i in t)&&(t[i]=a[i]);for(var c in He(t),this)"_"===c.charAt(0)&&"function"==typeof this[c]&&(this[c]=this[c].bind(this));this.nativeDraggable=!t.forceFallback&&Ae,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==k(e,"display")&&e!==Re.ghost){r.push({target:e,rect:M(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=D(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,a=0;r.forEach((function(e){var n=0,r=e.target,i=r.fromRect,l=M(r),c=r.prevFromRect,s=r.prevToRect,d=e.rect,u=D(r,!0);u&&(l.top-=u.f,l.left-=u.e),r.toRect=l,r.thisAnimationDuration&&L(c,l)&&!L(i,l)&&(d.top-l.top)/(d.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(d,c,s,t.options)),L(l,i)||(r.prevFromRect=i,r.prevToRect=l,n||(n=t.options.animation),t.animate(r,d,l,n)),n&&(o=!0,a=Math.max(a,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){k(e,"transition",""),k(e,"transform","");var o=D(this.el),a=o&&o.a,i=o&&o.d,l=(t.left-n.left)/(a||1),c=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!c,k(e,"transform","translate3d("+l+"px,"+c+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),k(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function Ve(e,t,n,r,o,a,i,l){var c,s,p=e[Z],h=p.options.onMove;return!window.CustomEvent||d||u?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=a||M(t),c.willInsertAfter=l,c.originalEvent=i,e.dispatchEvent(c),h&&(s=h.call(p,c,i)),s}function Ze(e){e.draggable=!1}function Ye(){Ne=!1}function ze(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Xe(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}Re.prototype={constructor:Re,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,s=r.filter;if(function(e){Me.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Me.push(r)}}(n),!q&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!h||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=E(l,r.draggable,n,!1))&&l.animated||ne===l)){if(ae=P(l),le=P(l,r.draggable),"function"==typeof s){if(s.call(this,e,l,this))return K({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),W("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(r){if(r=E(c,r.trim(),n,!1))return K({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),W("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!E(c,r.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,l=a.ownerDocument;if(n&&!q&&n.parentNode===a){var c=M(n);if(ee=a,J=(q=n).parentNode,te=q.nextSibling,ne=n,se=i.group,Re.dragged=q,ue={target:q,clientX:(t||e).clientX,clientY:(t||e).clientY},me=ue.clientX-c.left,fe=ue.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,q.style["will-change"]="all",r=function(){W("delayEnded",o,{evt:e}),Re.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!p&&o.nativeDraggable&&(q.draggable=!0),o._triggerDragStart(e,t),K({sortable:o,name:"choose",originalEvent:e}),x(q,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){S(q,e.trim(),Ze)})),b(l,"dragover",Fe),b(l,"mousemove",Fe),b(l,"touchmove",Fe),b(l,"mouseup",o._onDrop),b(l,"touchend",o._onDrop),b(l,"touchcancel",o._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),W("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(u||d))r();else{if(Re.eventCanceled)return void this._onDrop();b(l,"mouseup",o._disableDelayedDrag),b(l,"touchend",o._disableDelayedDrag),b(l,"touchcancel",o._disableDelayedDrag),b(l,"mousemove",o._delayedDragTouchMoveHandler),b(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&b(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&Ze(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,t?"touchmove":"mousemove",this._onTouchMove):(b(q,"dragend",this),b(ee,"dragstart",this._onDragStart));try{document.selection?Xe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,ee&&q){W("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",je);var n=this.options;!e&&x(q,n.dragClass,!1),x(q,n.ghostClass,!0),Re.active=this,e&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(pe){this._lastX=pe.clientX,this._lastY=pe.clientY,Le();for(var e=document.elementFromPoint(pe.clientX,pe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(pe.clientX,pe.clientY))!==t;)t=e;if(q.parentNode[Z]._isOutsideThisEl(e),t)do{if(t[Z]&&t[Z]._onDragOver({clientX:pe.clientX,clientY:pe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);$e()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=Q&&D(Q,!0),i=Q&&a&&a.a,l=Q&&a&&a.d,c=Oe&&Ee&&B(Ee),s=(o.clientX-ue.clientX+r.x)/(i||1)+(c?c[0]-Se[0]:0)/(i||1),d=(o.clientY-ue.clientY+r.y)/(l||1)+(c?c[1]-Se[1]:0)/(l||1);if(!Re.active&&!we){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Q){a?(a.e+=s-(he||0),a.f+=d-(ge||0)):a={a:1,b:0,c:0,d:1,e:s,f:d};var u="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");k(Q,"webkitTransform",u),k(Q,"mozTransform",u),k(Q,"msTransform",u),k(Q,"transform",u),he=s,ge=d,pe=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Q){var e=this.options.fallbackOnBody?document.body:ee,t=M(q,!0,Oe,!0,e),n=this.options;if(Oe){for(Ee=e;"static"===k(Ee,"position")&&"none"===k(Ee,"transform")&&Ee!==document;)Ee=Ee.parentNode;Ee!==document.body&&Ee!==document.documentElement?(Ee===document&&(Ee=N()),t.top+=Ee.scrollTop,t.left+=Ee.scrollLeft):Ee=N(),Se=B(Ee)}x(Q=q.cloneNode(!0),n.ghostClass,!1),x(Q,n.fallbackClass,!0),x(Q,n.dragClass,!0),k(Q,"transition",""),k(Q,"transform",""),k(Q,"box-sizing","border-box"),k(Q,"margin",0),k(Q,"top",t.top),k(Q,"left",t.left),k(Q,"width",t.width),k(Q,"height",t.height),k(Q,"opacity","0.8"),k(Q,"position",Oe?"absolute":"fixed"),k(Q,"zIndex","100000"),k(Q,"pointerEvents","none"),Re.ghost=Q,e.appendChild(Q),k(Q,"transform-origin",me/parseInt(Q.style.width)*100+"% "+fe/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;W("dragStart",this,{evt:e}),Re.eventCanceled?this._onDrop():(W("setupClone",this),Re.eventCanceled||((re=j(q)).removeAttribute("id"),re.draggable=!1,re.style["will-change"]="",this._hideClone(),x(re,this.options.chosenClass,!1),Re.clone=re),n.cloneId=Xe((function(){W("clone",n),Re.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(re,q),n._hideClone(),K({sortable:n,name:"clone"}))})),!t&&x(q,o.dragClass,!0),t?(Ce=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,q)),b(document,"drop",n),k(q,"transform","translateZ(0)")),we=!0,n._dragStartId=Xe(n._dragStarted.bind(n,t,e)),b(document,"selectstart",n),be=!0,h&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,l=e.target,c=this.options,s=c.group,d=Re.active,u=se===s,p=c.sort,h=de||d,g=this,m=!1;if(!Ne){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=E(l,c.draggable,i,!0),j("dragOver"),Re.eventCanceled)return m;if(q.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||g._ignoreWhileAnimating===l)return V(!1);if(Ce=!1,d&&!c.disabled&&(u?p||(r=J!==ee):de===this||(this.lastPutMode=se.checkPull(this,d,q,e))&&s.checkPut(this,d,q,e))){if(a="vertical"===this._getDirection(e,l),t=M(q),j("dragOverValid"),Re.eventCanceled)return m;if(r)return J=ee,R(),this._hideClone(),j("revert"),Re.eventCanceled||(te?ee.insertBefore(q,te):ee.appendChild(q)),V(!0);var f=A(i,c.draggable);if(!f||function(e,t,n){var r=M(A(n.el,n.options.draggable)),o=T(n.el);return t?e.clientX>o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,a,this)&&!f.animated){if(f===q)return V(!1);if(f&&i===e.target&&(l=f),l&&(n=M(l)),!1!==Ve(ee,i,q,t,l,n,e,!!l))return R(),f&&f.nextSibling?i.insertBefore(q,f.nextSibling):i.appendChild(q),J=i,Y(),V(!0)}else if(f&&function(e,t,n){var r=M(I(n.el,0,n.options,!0)),o=T(n.el);return t?e.clientX<o.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,a,this)){var b=I(i,0,c,!0);if(b===q)return V(!1);if(n=M(l=b),!1!==Ve(ee,i,q,t,l,n,e,!1))return R(),i.insertBefore(q,b),J=i,Y(),V(!0)}else if(l.parentNode===i){n=M(l);var v,_,y,w=q.parentNode!==i,C=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,c=n?t.width:t.height;return r===i||o===l||r+a/2===i+c/2}(q.animated&&q.toRect||t,l.animated&&l.toRect||n,a),D=a?"top":"left",S=O(l,"top","top")||O(q,"top","top"),N=S?S.scrollTop:void 0;if(ve!==l&&(_=n[D],ke=!1,De=!C&&c.invertSwap||w),v=function(e,t,n,r,o,a,i,l){var c=r?e.clientY:e.clientX,s=r?n.height:n.width,d=r?n.top:n.left,u=r?n.bottom:n.right,p=!1;if(!i)if(l&&ye<s*o){if(!ke&&(1===_e?c>d+s*a/2:c<u-s*a/2)&&(ke=!0),ke)p=!0;else if(1===_e?c<d+ye:c>u-ye)return-_e}else if(c>d+s*(1-o)/2&&c<u-s*(1-o)/2)return function(e){return P(q)<P(e)?1:-1}(t);return(p=p||i)&&(c<d+s*a/2||c>u-s*a/2)?c>d+s/2?1:-1:0}(e,l,n,a,C?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,De,ve===l),0!==v){var B=P(q);do{B-=v,y=J.children[B]}while(y&&("none"===k(y,"display")||y===Q))}if(0===v||y===l)return V(!1);ve=l,_e=v;var H=l.nextElementSibling,L=!1,$=Ve(ee,i,q,t,l,n,e,L=1===v);if(!1!==$)return 1!==$&&-1!==$||(L=1===$),Ne=!0,setTimeout(Ye,30),R(),L&&!H?i.appendChild(q):l.parentNode.insertBefore(q,L?H:l),S&&F(S,0,N-S.scrollTop),J=q.parentNode,void 0===_||De||(ye=Math.abs(_-M(l)[D])),Y(),V(!0)}if(i.contains(q))return V(!1)}return!1}function j(c,s){W(c,g,o({evt:e,isOwner:u,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:h,target:l,completed:V,onMove:function(n,r){return Ve(ee,i,q,t,n,M(n),e,r)},changed:Y},s))}function R(){j("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function V(t){return j("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(g),g!==h&&(x(q,de?de.options.ghostClass:d.options.ghostClass,!1),x(q,c.ghostClass,!0)),de!==g&&g!==Re.active?de=g:g===Re.active&&de&&(de=null),h===g&&(g._ignoreWhileAnimating=l),g.animateAll((function(){j("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(l===q&&!q.animated||l===i&&!l.animated)&&(ve=null),c.dragoverBubble||e.rootEl||l===document||(q.parentNode[Z]._isOutsideThisEl(e.target),!t&&Fe(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function Y(){ie=P(q),ce=P(q,c.draggable),K({sortable:g,name:"change",toEl:i,newIndex:ie,newDraggableIndex:ce,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Fe),v(document,"mousemove",Fe),v(document,"touchmove",Fe)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=P(q),ce=P(q,n.draggable),W("drop",this,{evt:e}),J=q&&q.parentNode,ie=P(q),ce=P(q,n.draggable),Re.eventCanceled||(we=!1,De=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&k(document.body,"user-select",""),k(q,"transform",""),e&&(be&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(ee===J||de&&"clone"!==de.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),q&&(this.nativeDraggable&&v(q,"dragend",this),Ze(q),q.style["will-change"]="",be&&!we&&x(q,de?de.options.ghostClass:this.options.ghostClass,!1),x(q,this.options.chosenClass,!1),K({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==J?(ie>=0&&(K({rootEl:J,name:"add",toEl:J,fromEl:ee,originalEvent:e}),K({sortable:this,name:"remove",toEl:J,originalEvent:e}),K({rootEl:J,name:"sort",toEl:J,fromEl:ee,originalEvent:e}),K({sortable:this,name:"sort",toEl:J,originalEvent:e})),de&&de.save()):ie!==ae&&ie>=0&&(K({sortable:this,name:"update",toEl:J,originalEvent:e}),K({sortable:this,name:"sort",toEl:J,originalEvent:e})),Re.active&&(null!=ie&&-1!==ie||(ie=ae,ce=le),K({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),ee=q=J=Q=te=re=ne=oe=ue=pe=be=ie=ce=ae=le=ve=_e=de=se=Re.dragged=Re.ghost=Re.clone=Re.active=null,Me.forEach((function(e){e.checked=!0})),Me.length=he=ge=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)E(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||ze(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];E(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return E(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=X.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&He(n)},destroy:function(){W("destroy",this);var e=this.el;e[Z]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xe.splice(xe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if(W("hideClone",this),Re.eventCanceled)return;k(re,"display","none"),this.options.removeCloneOnHide&&re.parentNode&&re.parentNode.removeChild(re),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if(W("showClone",this),Re.eventCanceled)return;q.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(re,te):ee.appendChild(re):ee.insertBefore(re,q),this.options.group.revertClone&&this.animate(q,re),k(re,"display",""),oe=!1}}else this._hideClone()}},Te&&b(document,"touchmove",(function(e){(Re.active||we)&&e.cancelable&&e.preventDefault()})),Re.utils={on:b,off:v,css:k,find:S,is:function(e,t){return!!E(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:$,closest:E,toggleClass:x,clone:j,index:P,nextTick:Xe,cancelNextTick:Ue,detectDirection:Be,getChild:I},Re.get=function(e){return e[Z]},Re.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Re.utils=o(o({},Re.utils),e.utils)),X.mount(e)}))},Re.create=function(e,t){return new Re(e,t)},Re.version="1.15.1";var Ge,We,Ke,qe,Je,Qe,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function rt(){clearInterval(Qe)}var ot,at=$((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,c=t.scrollSpeed,s=N(),d=!1;We!==n&&(We=n,nt(),Ge=t.scroll,o=t.scrollFn,!0===Ge&&(Ge=H(n,!0)));var u=0,p=Ge;do{var h=p,g=M(h),m=g.top,f=g.bottom,b=g.left,v=g.right,_=g.width,y=g.height,E=void 0,w=void 0,C=h.scrollWidth,x=h.scrollHeight,D=k(h),S=h.scrollLeft,T=h.scrollTop;h===s?(E=_<C&&("auto"===D.overflowX||"scroll"===D.overflowX||"visible"===D.overflowX),w=y<x&&("auto"===D.overflowY||"scroll"===D.overflowY||"visible"===D.overflowY)):(E=_<C&&("auto"===D.overflowX||"scroll"===D.overflowX),w=y<x&&("auto"===D.overflowY||"scroll"===D.overflowY));var O=E&&(Math.abs(v-a)<=l&&S+_<C)-(Math.abs(b-a)<=l&&!!S),I=w&&(Math.abs(f-i)<=l&&T+y<x)-(Math.abs(m-i)<=l&&!!T);if(!et[u])for(var A=0;A<=u;A++)et[A]||(et[A]={});et[u].vx==O&&et[u].vy==I&&et[u].el===h||(et[u].el=h,et[u].vx=O,et[u].vy=I,clearInterval(et[u].pid),0==O&&0==I||(d=!0,et[u].pid=setInterval(function(){r&&0===this.layer&&Re.active._onTouchMove(Je);var t=et[this.layer].vy?et[this.layer].vy*c:0,n=et[this.layer].vx?et[this.layer].vx*c:0;"function"==typeof o&&"continue"!==o.call(Re.dragged.parentNode[Z],n,t,e,Je,et[this.layer].el)||F(et[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==s&&(p=H(p,!1)));tt=d}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var c=n||o;i();var s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(s.clientX,s.clientY);l(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function lt(){}function ct(){}function st(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ot=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,a=e.changed,i=e.cancel;if(o.options.swap){var l=this.sortable.el,c=this.options;if(n&&n!==l){var s=ot;!1!==r(n)?(x(n,c.swapClass,!0),ot=n):ot=null,s&&s!==ot&&x(s,c.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t,n,r,o,a,i,l=e.activeSortable,c=e.putSortable,s=e.dragEl,d=c||this.sortable,u=this.options;ot&&x(ot,u.swapClass,!1),ot&&(u.swap||c&&c.options.swap)&&s!==ot&&(d.captureAnimationState(),d!==l&&l.captureAnimationState(),n=ot,a=(t=s).parentNode,i=n.parentNode,a&&i&&!a.isEqualNode(n)&&!i.isEqualNode(t)&&(r=P(t),o=P(n),a.isEqualNode(i)&&r<o&&o++,a.insertBefore(n,a.children[r]),i.insertBefore(t,i.children[o])),d.animateAll(),d!==l&&l.animateAll())},nulling:function(){ot=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ot}}})}lt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=I(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},l(lt,{pluginName:"revertOnSpill"}),ct.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},l(ct,{pluginName:"removeOnSpill"});var dt,ut,pt,ht,gt,mt=[],ft=[],bt=!1,vt=!1,_t=!1;function yt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?b(document,"pointerup",this._deselectMultiDrag):(b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag))),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";mt.length&&ut===e?mt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;pt=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(pt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<mt.length;r++)ft.push(j(mt[r])),ft[r].sortableIndex=mt[r].sortableIndex,ft[r].draggable=!1,ft[r].style["will-change"]="",x(ft[r],this.options.selectedClass,!1),mt[r]===pt&&x(ft[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&ut===t&&(Et(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Et(!1,n),ft.forEach((function(e){k(e,"display","")})),t(),gt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(ft.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),gt=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=P(e)})),mt=mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),_t=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){mt.forEach((function(e){e!==pt&&k(e,"position","absolute")}));var r=M(pt,!1,!0,!0);mt.forEach((function(e){e!==pt&&R(e,r)})),vt=!0,bt=!0}n.animateAll((function(){vt=!1,bt=!1,t.options.animation&&mt.forEach((function(e){V(e)})),t.options.sort&&wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;vt&&~mt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;mt.length>1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?M(e):o}),V(e),e.fromRect=o,t.removeAnimationState(e)})),vt=!1,function(e,t){mt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,a=e.parentEl,i=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),bt=!1,l.animation&&mt.length>1&&(vt||!n&&!o.options.sort&&!i)){var c=M(pt,!1,!0,!0);mt.forEach((function(e){e!==pt&&(R(e,c),a.appendChild(e))})),vt=!0}if(!n)if(vt||wt(),mt.length>1){var s=gt;o._showClone(t),o.options.animation&&!gt&&s&&ft.forEach((function(e){o.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ht=l({},t);var o=D(pt,!0);ht.top-=o.f,ht.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,c=l||this.sortable;if(t){var s=this.options,d=r.children;if(!_t)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(pt,s.selectedClass,!~mt.indexOf(pt)),~mt.indexOf(pt))mt.splice(mt.indexOf(pt),1),dt=null,U({sortable:o,rootEl:n,name:"deselect",targetEl:pt,originalEvent:t});else{if(mt.push(pt),U({sortable:o,rootEl:n,name:"select",targetEl:pt,originalEvent:t}),t.shiftKey&&dt&&o.el.contains(dt)){var u,p,h=P(dt),g=P(pt);if(~h&&~g&&h!==g)for(g>h?(p=h,u=g):(p=g,u=h+1);p<u;p++)~mt.indexOf(d[p])||(x(d[p],s.selectedClass,!0),mt.push(d[p]),U({sortable:o,rootEl:n,name:"select",targetEl:d[p],originalEvent:t}))}else dt=pt;ut=c}if(_t&&this.isMultiDrag){if(vt=!1,(r[Z].options.sort||r!==n)&&mt.length>1){var m=M(pt),f=P(pt,":not(."+this.options.selectedClass+")");if(!bt&&s.animation&&(pt.thisAnimationDuration=null),c.captureAnimationState(),!bt&&(s.animation&&(pt.fromRect=m,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==pt){var t=vt?M(e):m;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),wt(),mt.forEach((function(e){d[f]?r.insertBefore(e,d[f]):r.appendChild(e),f++})),i===P(pt))){var b=!1;mt.forEach((function(e){e.sortableIndex===P(e)||(b=!0)})),b&&(a("update"),a("sort"))}mt.forEach((function(e){V(e)})),c.animateAll()}ut=c}(n===r||l&&"clone"!==l.lastPutMode)&&ft.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=_t=!1,ft.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==_t&&_t||ut!==this.sortable||e&&E(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];x(t,this.options.selectedClass,!1),mt.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Z];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(ut&&ut!==t&&(ut.multiDrag._deselectMultiDrag(),ut=t),x(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[Z],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(x(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return mt.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=vt&&e!==pt?-1:vt?P(e,":not(."+t.options.selectedClass+")"):P(e),r.push({multiDragElement:e,index:o})})),{items:(e=mt,function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(ft),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Et(e,t){ft.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function wt(){mt.forEach((function(e){e!==pt&&e.parentNode&&e.parentNode.removeChild(e)}))}Re.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):t.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(w),w=void 0},nulling:function(){Je=We=Ge=tt=Qe=Ke=qe=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||u||d||h){at(e,this.options,a,t);var i=H(a,!0);!tt||Qe&&r===Ke&&o===qe||(Qe&&rt(),Qe=setInterval((function(){var a=H(document.elementFromPoint(r,o),!0);a!==i&&(i=a,nt()),at(e,n.options,a,t)}),10),Ke=r,qe=o)}else{if(!this.options.bubbleScroll||H(a,!0)===N())return void nt();at(e,this.options,H(a,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),Re.mount(ct,lt);const Ct=Re},177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t;throw new Error(n?o+": "+n:o)}}},196:e=>{"use strict";e.exports=window.React}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,o,a]=e[d],l=!0,c=0;c<n.length;c++)(!1&a||i>=a)&&Object.keys(r.O).every((e=>r.O[e](n[c])))?n.splice(c--,1):(l=!1,a<i&&(i=a));if(l){e.splice(d--,1);var s=o();void 0!==s&&(t=s)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,o,a]},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={694:0,362:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,l,c]=n,s=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(c)var d=c(r)}for(t&&t(n);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(d)},n=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[362],(()=>r(65)));o=r.O(o)})();
  • brandy-blocks/trunk/inc/Packages/build/blocks/PricingCard/index.asset.php

    r3060884 r3076429  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'e0397f0579d6be556098');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '');
  • brandy-blocks/trunk/inc/Packages/build/blocks/PricingCard/index.js

    r3060884 r3076429  
    1 (()=>{"use strict";var e,t={323:()=>{const e=window.React,t=window.wp.blocks,r=window.wp.blockEditor,n=window.wp.element,i=window.wp.i18n,a=window.wp.components;function c({title:t,style:r}){return(0,e.createElement)(a.BaseControl.VisualLabel,{className:"setting__label",style:r},t)}function o({title:t,style:r}){return(0,e.createElement)(a.BaseControl.VisualLabel,{className:"setting__sub-label",style:r},t)}function l({options:t=[],selected:r,onChange:n,className:i=""}){return(0,e.createElement)(a.ButtonGroup,{className:`brandy-editor-btn-group ${i}`},t.map((t=>(0,e.createElement)(a.Button,{onClick:()=>{var e;e=t.value,n(e)},className:r===t.value?"selected":""},t.label))))}const d=({style:t,onClick:r})=>(0,e.createElement)("span",{style:t,onClick:r},(0,e.createElement)("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.25 6.25V10.5H5.75V6.25H10V4.75H5.75V0.5H4.25V4.75H0V6.25H4.25Z",fill:"#347BB5"})));function g(){var t;const{attributes:r,setAttributes:l}=(0,n.useContext)(b);return(0,e.createElement)("div",{className:"pricing-settings-card-wrapper"},(0,e.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:10,marginBottom:10,borderBottom:"1px solid #F0F2F4"}},(0,e.createElement)(c,{title:(0,i.__)("Enable icon","brandy")}),(0,e.createElement)(a.ToggleControl,{checked:null===(t=r.icon_enabled)||void 0===t||t,onChange:e=>{l({icon_enabled:e})}})),(0,e.createElement)("div",{className:"pricing-settings-card__list-item"},(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,e.createElement)(o,{title:(0,i.__)("List item","brandy")}),(0,e.createElement)(d,{style:{padding:10,cursor:"pointer"},onClick:()=>{const e=[...r.features,{text:"New feature",status:"checked"}];l({features:e})}})),(0,e.createElement)("div",{className:"pricing-settings-card__list-item__list"},r.features.map(((t,r)=>(0,e.createElement)(s,{detail:t,position:r}))))))}const s=({detail:t,position:r})=>{const{attributes:a,setAttributes:c}=(0,n.useContext)(b),[o,d]=(0,n.useState)(!1);return(0,e.createElement)("div",{className:"pricing-settings-card__list-item__card "+(o?"active":"")},(0,e.createElement)("div",{className:"card-head",onClick:()=>{d((e=>!e))}},(0,e.createElement)("span",{className:"card-icon"},"checked"===t.status?(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#347BB5"}),(0,e.createElement)("path",{d:"M5 9.5L7.5 12L12.5 7",fill:"#347BB5"}),(0,e.createElement)("path",{d:"M5 9.5L7.5 12L12.5 7",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})):(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#D1D9E0"}),(0,e.createElement)("path",{d:"M12 6L6 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M6 6L12 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)("span",{className:"card-text"},t.text),(0,e.createElement)("span",{className:"card-close",onClick:e=>{e.stopPropagation();const t=[...a.features];t.splice(r,1),c({features:[...t]})}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M5 6.11041L8.88854 10L10 8.88959L6.11146 5L10 1.11146L8.88959 0.00104748L5 3.88749L1.11146 0L0 1.11041L3.88854 5L0 8.88854L1.11041 10L5 6.11146V6.11041Z",fill:"#C6D4E1"})))),o&&(0,e.createElement)("div",{className:"card-bottom"},(0,e.createElement)("div",{style:{color:"#5A6D80"}},(0,i.__)("Check “Yes” if the feature is included.","brandy")),(0,e.createElement)(l,{options:[{label:(0,i.__)("Yes","brandy"),value:"checked"},{label:(0,i.__)("No","brandy"),value:"unchecked"}],onChange:e=>{const t=[...a.features];t[r].status=e,c({features:[...t]})},selected:a.features[r].status})))};function h(){return(0,e.createElement)(r.InspectorControls,{key:"setting"},(0,e.createElement)("div",{className:"brandy-editor pricing-settings"},(0,e.createElement)(g,null)))}const u=(e="default",t)=>({[`--${e}-font-size`]:t.font_size+"px",[`--${e}-bold`]:t.bold?"bold":"",[`--${e}-font-styles`]:t.italic?"italic":"normal",[`--${e}-text-transform`]:t.text_transform,[`--${e}-font-weight`]:t.font_weight+""}),p=e=>`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,b=(0,n.createContext)({});function _({text:t,status:n,isIconEnabled:i=!0,onChangeText:a}){return(0,e.createElement)("div",{className:"brandy-pricing-feature "+("checked"===n?"checked-feature":"unchecked-feature")},i&&(0,e.createElement)("div",null,"checked"==n?(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 20.5C15.5228 20.5 20 16.0228 20 10.5C20 4.97715 15.5228 0.5 10 0.5C4.47715 0.5 0 4.97715 0 10.5C0 16.0228 4.47715 20.5 10 20.5Z",fill:"#3858E9"}),(0,e.createElement)("path",{d:"M6 11L8.5 13.5L13.5 8.5",stroke:"#3858E9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})):(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#D1D9E0"}),(0,e.createElement)("path",{d:"M12 6L6 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M6 6L12 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)(r.RichText,{value:t,onChange:a,tagName:"span",className:"brandy-pricing-feature__text"}))}function m({text:t,status:n,isIconEnabled:i=!0}){return(0,e.createElement)("div",{className:"brandy-pricing-feature "+("checked"===n?"checked-feature":"unchecked-feature")},i&&(0,e.createElement)("div",null,"checked"==n?(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 20.5C15.5228 20.5 20 16.0228 20 10.5C20 4.97715 15.5228 0.5 10 0.5C4.47715 0.5 0 4.97715 0 10.5C0 16.0228 4.47715 20.5 10 20.5Z",fill:"#3858E9"}),(0,e.createElement)("path",{d:"M6 11L8.5 13.5L13.5 8.5",stroke:"#3858E9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})):(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#D1D9E0"}),(0,e.createElement)("path",{d:"M12 6L6 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M6 6L12 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)(r.RichText.Content,{value:t,tagName:"span",className:"brandy-pricing-feature__text"}))}const k=JSON.parse('{"u2":"brandy/pricing-card"}');(0,t.registerBlockType)(k.u2,{edit:function({attributes:t,setAttributes:i,context:a}){const c=(0,r.useBlockProps)();(0,n.useEffect)((()=>{i({context:a})}),[a["brandy/pricing/highlight_settings"],a["brandy/pricing/card_layout"],a["brandy/pricing/card_highlight_badge"]]);const o=a["brandy/pricing/highlight_settings"].selected==t.position,l=(0,n.useMemo)((()=>({attributes:t,setAttributes:i})),[t,i]);return(0,e.createElement)("div",{...c},(0,e.createElement)(b.Provider,{value:l},(0,e.createElement)(h,null),(0,e.createElement)("div",{className:"brandy-pricing-card",...o?{"is-highlighted":"true"}:{},style:o?{"--card-highlight-badge-title-color":a["brandy/pricing/card_highlight_badge"].title_color,"--card-highlight-badge-background-color":a["brandy/pricing/card_highlight_badge"].background_color,...u("card-highlight-badge",a["brandy/pricing/card_highlight_badge"].typography),"--card-highlight-badge-padding":p(a["brandy/pricing/card_highlight_badge"].padding),"--card-highlight-badge-margin":p(a["brandy/pricing/card_highlight_badge"].margin),"--card-title-color":a["brandy/pricing/highlight_settings"].card.title_color,"--card-pricing-price-color":a["brandy/pricing/highlight_settings"].card.pricing_price_color,"--card-pricing-period-color":a["brandy/pricing/highlight_settings"].card.pricing_period_color,"--card-pricing-description-color":a["brandy/pricing/highlight_settings"].card.description_color,"--pricing-feature-checked-title-color":a["brandy/pricing/highlight_settings"].card.checked_feature_title_color,"--pricing-feature-checked-icon-color":a["brandy/pricing/highlight_settings"].card.checked_feature_icon_color,"--pricing-feature-checked-icon-background-color":a["brandy/pricing/highlight_settings"].card.checked_feature_icon_background_color,"--pricing-feature-unchecked-title-color":a["brandy/pricing/highlight_settings"].card.unchecked_feature_title_color,"--pricing-feature-unchecked-icon-color":a["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_color,"--pricing-feature-unchecked-icon-background-color":a["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_background_color,"--card-button-color-normal":a["brandy/pricing/highlight_settings"].card.button_text_color.normal,"--card-button-color-hover":a["brandy/pricing/highlight_settings"].card.button_text_color.hover,..."fill"===a["brandy/pricing/highlight_settings"].card.button_type?{"--card-button-background-color-normal":a["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-background-color-hover":a["brandy/pricing/highlight_settings"].card.button_background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":a["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-border-color-hover":a["brandy/pricing/highlight_settings"].card.button_background_color.hover},"--card-background-normal":a["brandy/pricing/highlight_settings"].card.background_color.normal,"--card-background-hover":a["brandy/pricing/highlight_settings"].card.background_color.hover,"--card-border-color-normal":a["brandy/pricing/highlight_settings"].card.border_color.normal,"--card-border-color-hover":a["brandy/pricing/highlight_settings"].card.border_color.hover}:{}},a["brandy/pricing/card_layout"].map(((n,a)=>(0,e.createElement)(e.Fragment,null,"highlight_badge"===n&&(0,e.createElement)(r.RichText,{value:t.highlight_badge,onChange:e=>{i({highlight_badge:e})},tagName:"h4",className:"brandy-pricing-card__highlight-badge"}),"title"===n&&(0,e.createElement)(r.RichText,{value:t.title,onChange:e=>{i({title:e})},tagName:"h3",className:"brandy-pricing-card__title"}),"pricing"===n&&(0,e.createElement)(r.RichText,{value:t.pricing,onChange:e=>{i({pricing:e})},tagName:"p",className:"brandy-pricing-card__pricing"}),"description"===n&&(0,e.createElement)(r.RichText,{value:t.description,onChange:e=>{i({description:e})},tagName:"p",className:"brandy-pricing-card__description"}),"list_features"===n&&(0,e.createElement)("div",{className:"brandy-pricing-card__features-list"},t.features.map(((r,n)=>{var a;return(0,e.createElement)(_,{text:r.text,status:r.status,onChangeText:e=>{const r=t.features.map(((t,r)=>r===n?{...t,text:e}:t));i({features:r})},isIconEnabled:null===(a=t.icon_enabled)||void 0===a||a})}))),"button"===n&&(0,e.createElement)(r.RichText,{value:t.button,onChange:e=>{i({button:e})},tagName:"div",className:"brandy-pricing-card__button"})))))))},save:function({attributes:t}){var n,i;const a=r.useBlockProps.save(),c=t.context,o=(null!==(n=c["brandy/pricing/highlight_settings"]?.selected)&&void 0!==n?n:0)==t.position;return(0,e.createElement)("div",{...a},(0,e.createElement)("div",{className:"brandy-pricing-card",...o?{"is-highlighted":"true"}:{},style:o?{"--card-highlight-badge-title-color":c["brandy/pricing/card_highlight_badge"].title_color,"--card-highlight-badge-background-color":c["brandy/pricing/card_highlight_badge"].background_color,...u("card-highlight-badge",c["brandy/pricing/card_highlight_badge"].typography),"--card-highlight-badge-padding":p(c["brandy/pricing/card_highlight_badge"].padding),"--card-highlight-badge-margin":p(c["brandy/pricing/card_highlight_badge"].margin),"--card-title-color":c["brandy/pricing/highlight_settings"].card.title_color,"--card-pricing-price-color":c["brandy/pricing/highlight_settings"].card.pricing_price_color,"--card-pricing-period-color":c["brandy/pricing/highlight_settings"].card.pricing_period_color,"--card-pricing-description-color":c["brandy/pricing/highlight_settings"].card.description_color,"--pricing-feature-checked-title-color":c["brandy/pricing/highlight_settings"].card.checked_feature_title_color,"--pricing-feature-checked-icon-color":c["brandy/pricing/highlight_settings"].card.checked_feature_icon_color,"--pricing-feature-checked-icon-background-color":c["brandy/pricing/highlight_settings"].card.checked_feature_icon_background_color,"--pricing-feature-unchecked-title-color":c["brandy/pricing/highlight_settings"].card.unchecked_feature_title_color,"--pricing-feature-unchecked-icon-color":c["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_color,"--pricing-feature-unchecked-icon-background-color":c["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_background_color,"--card-button-color-normal":c["brandy/pricing/highlight_settings"].card.button_text_color.normal,"--card-button-color-hover":c["brandy/pricing/highlight_settings"].card.button_text_color.hover,..."fill"===c["brandy/pricing/highlight_settings"].card.button_type?{"--card-button-background-color-normal":c["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-background-color-hover":c["brandy/pricing/highlight_settings"].card.button_background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":c["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-border-color-hover":c["brandy/pricing/highlight_settings"].card.button_background_color.hover},"--card-background-normal":c["brandy/pricing/highlight_settings"].card.background_color.normal,"--card-background-hover":c["brandy/pricing/highlight_settings"].card.background_color.hover,"--card-border-color-normal":c["brandy/pricing/highlight_settings"].card.border_color.normal,"--card-border-color-hover":c["brandy/pricing/highlight_settings"].card.border_color.hover}:{}},(null!==(i=c["brandy/pricing/card_layout"])&&void 0!==i?i:["highlight_badge","title","pricing","description","list_features","button"]).map((n=>(0,e.createElement)(e.Fragment,null,"highlight_badge"===n&&(0,e.createElement)(r.RichText.Content,{value:t.highlight_badge,tagName:"h4",className:"brandy-pricing-card__highlight-badge"}),"title"===n&&(0,e.createElement)(r.RichText.Content,{value:t.title,tagName:"h3",className:"brandy-pricing-card__title"}),"pricing"===n&&(0,e.createElement)(r.RichText.Content,{value:t.pricing,tagName:"p",className:"brandy-pricing-card__pricing"}),"description"===n&&(0,e.createElement)(r.RichText.Content,{value:t.description,tagName:"p",className:"brandy-pricing-card__description"}),"list_features"===n&&(0,e.createElement)("div",{className:"brandy-pricing-card__features-list"},t.features.map(((r,n)=>{var i;return(0,e.createElement)(m,{text:r.text,status:r.status,isIconEnabled:null===(i=t.icon_enabled)||void 0===i||i})}))),"button"===n&&(0,e.createElement)(r.RichText.Content,{value:t.button,tagName:"div",className:"brandy-pricing-card__button"}))))))},icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.92326 10.8606L3.65641 5.76806C3.98951 3.45071 6.16564 1.9481 8.49661 2.42452L13.663 3.4808C14.7693 3.70731 15.7635 4.35836 16.4278 5.29232L20.4854 10.9969C21.8743 12.9496 21.4735 15.5817 19.5902 16.8752L13.6982 20.9221C11.815 22.2156 9.16184 21.6811 7.77292 19.7284L3.70815 14.0138C3.048 13.0856 2.76606 11.9533 2.92364 10.8611L2.92326 10.8606Z",stroke:"#00A3FE",fill:"#ffffff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M11.2692 11.3752C12.3857 10.6083 12.6512 9.08735 11.8622 7.97798C11.0731 6.86861 9.52835 6.59096 8.41181 7.35782C7.29527 8.12468 7.02978 9.64566 7.81882 10.755C8.60786 11.8644 10.1526 12.1421 11.2692 11.3752Z",stroke:"#00A3FE",fill:"#ffffff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M11.8896 17.3037L16.7417 13.9713",stroke:"#00A3FE","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"}))})}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,r,i,a)=>{if(!r){var c=1/0;for(g=0;g<e.length;g++){for(var[r,i,a]=e[g],o=!0,l=0;l<r.length;l++)(!1&a||c>=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(o=!1,a<c&&(c=a));if(o){e.splice(g--,1);var d=i();void 0!==d&&(t=d)}}return t}a=a||0;for(var g=e.length;g>0&&e[g-1][2]>a;g--)e[g]=e[g-1];e[g]=[r,i,a]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={491:0,132:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var i,a,[c,o,l]=r,d=0;if(c.some((t=>0!==e[t]))){for(i in o)n.o(o,i)&&(n.m[i]=o[i]);if(l)var g=l(n)}for(t&&t(r);d<c.length;d++)a=c[d],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(g)},r=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=n.O(void 0,[132],(()=>n(323)));i=n.O(i)})();
     1(()=>{"use strict";var e,t={323:()=>{const e=window.React,t=window.wp.blocks,r=window.wp.blockEditor,n=window.wp.element,i=window.wp.i18n,a=window.wp.components;function c({title:t,style:r}){return(0,e.createElement)(a.BaseControl.VisualLabel,{className:"setting__label",style:r},t)}function o({title:t,style:r}){return(0,e.createElement)(a.BaseControl.VisualLabel,{className:"setting__sub-label",style:r},t)}function l({options:t=[],selected:r,onChange:n,className:i=""}){return(0,e.createElement)(a.ButtonGroup,{className:`brandy-editor-btn-group ${i}`},t.map((t=>(0,e.createElement)(a.Button,{onClick:()=>{var e;e=t.value,n(e)},className:r===t.value?"selected":""},t.label))))}const d=({style:t,onClick:r})=>(0,e.createElement)("span",{style:t,onClick:r},(0,e.createElement)("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.25 6.25V10.5H5.75V6.25H10V4.75H5.75V0.5H4.25V4.75H0V6.25H4.25Z",fill:"#347BB5"})));function g(){var t;const{attributes:r,setAttributes:l}=(0,n.useContext)(b);return(0,e.createElement)("div",{className:"pricing-settings-card-wrapper"},(0,e.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:10,marginBottom:10,borderBottom:"1px solid #F0F2F4"}},(0,e.createElement)(c,{title:(0,i.__)("Enable icon","brandy")}),(0,e.createElement)(a.ToggleControl,{checked:null===(t=r.icon_enabled)||void 0===t||t,onChange:e=>{l({icon_enabled:e})}})),(0,e.createElement)("div",{className:"pricing-settings-card__list-item"},(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,e.createElement)(o,{title:(0,i.__)("List item","brandy")}),(0,e.createElement)(d,{style:{padding:10,cursor:"pointer"},onClick:()=>{const e=[...r.features,{text:"New feature",status:"checked"}];l({features:e})}})),(0,e.createElement)("div",{className:"pricing-settings-card__list-item__list"},r.features.map(((t,r)=>(0,e.createElement)(s,{detail:t,position:r}))))))}const s=({detail:t,position:r})=>{const{attributes:a,setAttributes:c}=(0,n.useContext)(b),[o,d]=(0,n.useState)(!1);return(0,e.createElement)("div",{className:"pricing-settings-card__list-item__card "+(o?"active":"")},(0,e.createElement)("div",{className:"card-head",onClick:()=>{d((e=>!e))}},(0,e.createElement)("span",{className:"card-icon"},"checked"===t.status?(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#347BB5"}),(0,e.createElement)("path",{d:"M5 9.5L7.5 12L12.5 7",fill:"#347BB5"}),(0,e.createElement)("path",{d:"M5 9.5L7.5 12L12.5 7",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})):(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#D1D9E0"}),(0,e.createElement)("path",{d:"M12 6L6 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M6 6L12 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)("span",{className:"card-text"},t.text),(0,e.createElement)("span",{className:"card-close",onClick:e=>{e.stopPropagation();const t=[...a.features];t.splice(r,1),c({features:[...t]})}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M5 6.11041L8.88854 10L10 8.88959L6.11146 5L10 1.11146L8.88959 0.00104748L5 3.88749L1.11146 0L0 1.11041L3.88854 5L0 8.88854L1.11041 10L5 6.11146V6.11041Z",fill:"#C6D4E1"})))),o&&(0,e.createElement)("div",{className:"card-bottom"},(0,e.createElement)("div",{style:{color:"#5A6D80"}},(0,i.__)("Check “Yes” if the feature is included.","brandy")),(0,e.createElement)(l,{options:[{label:(0,i.__)("Yes","brandy"),value:"checked"},{label:(0,i.__)("No","brandy"),value:"unchecked"}],onChange:e=>{const t=[...a.features];t[r].status=e,c({features:[...t]})},selected:a.features[r].status})))};function h(){return(0,e.createElement)(r.InspectorControls,{key:"setting"},(0,e.createElement)("div",{className:"brandy-editor pricing-settings"},(0,e.createElement)(g,null)))}const u=(e="default",t)=>({[`--${e}-font-size`]:t.font_size+"px",[`--${e}-bold`]:t.bold?"bold":"",[`--${e}-font-styles`]:t.italic?"italic":"normal",[`--${e}-text-transform`]:t.text_transform,[`--${e}-font-weight`]:t.font_weight+""}),p=e=>`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,b=(0,n.createContext)({});function _({text:t,status:n,isIconEnabled:i=!0,onChangeText:a}){return(0,e.createElement)("div",{className:"brandy-pricing-feature "+("checked"===n?"checked-feature":"unchecked-feature")},i&&(0,e.createElement)("div",null,"checked"==n?(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 20.5C15.5228 20.5 20 16.0228 20 10.5C20 4.97715 15.5228 0.5 10 0.5C4.47715 0.5 0 4.97715 0 10.5C0 16.0228 4.47715 20.5 10 20.5Z",fill:"#3858E9"}),(0,e.createElement)("path",{d:"M6 11L8.5 13.5L13.5 8.5",stroke:"#3858E9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})):(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#D1D9E0"}),(0,e.createElement)("path",{d:"M12 6L6 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M6 6L12 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)(r.RichText,{value:t,onChange:a,tagName:"span",className:"brandy-pricing-feature__text"}))}function m({text:t,status:n,isIconEnabled:i=!0}){return(0,e.createElement)("div",{className:"brandy-pricing-feature "+("checked"===n?"checked-feature":"unchecked-feature")},i&&(0,e.createElement)("div",null,"checked"==n?(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 20.5C15.5228 20.5 20 16.0228 20 10.5C20 4.97715 15.5228 0.5 10 0.5C4.47715 0.5 0 4.97715 0 10.5C0 16.0228 4.47715 20.5 10 20.5Z",fill:"#3858E9"}),(0,e.createElement)("path",{d:"M6 11L8.5 13.5L13.5 8.5",stroke:"#3858E9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})):(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#D1D9E0"}),(0,e.createElement)("path",{d:"M12 6L6 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M6 6L12 12",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)(r.RichText.Content,{value:t,tagName:"span",className:"brandy-pricing-feature__text"}))}const k=JSON.parse('{"u2":"brandy/pricing-card"}');(0,t.registerBlockType)(k.u2,{edit:function({attributes:t,setAttributes:i,context:a}){const c=(0,r.useBlockProps)();(0,n.useEffect)((()=>{i({context:a})}),[a["brandy/pricing/highlight_settings"],a["brandy/pricing/card_layout"],a["brandy/pricing/card_highlight_badge"]]);const o=a["brandy/pricing/highlight_settings"].selected==t.position,l=(0,n.useMemo)((()=>({attributes:t,setAttributes:i})),[t,i]);return(0,e.createElement)("div",{...c},(0,e.createElement)(b.Provider,{value:l},(0,e.createElement)(h,null),(0,e.createElement)("div",{className:"brandy-pricing-card",...o?{"is-highlighted":"true"}:{},style:o?{"--card-highlight-badge-title-color":a["brandy/pricing/card_highlight_badge"].title_color,"--card-highlight-badge-background-color":a["brandy/pricing/card_highlight_badge"].background_color,...u("card-highlight-badge",a["brandy/pricing/card_highlight_badge"].typography),"--card-highlight-badge-padding":p(a["brandy/pricing/card_highlight_badge"].padding),"--card-highlight-badge-margin":p(a["brandy/pricing/card_highlight_badge"].margin),"--card-title-color":a["brandy/pricing/highlight_settings"].card.title_color,"--card-pricing-price-color":a["brandy/pricing/highlight_settings"].card.pricing_price_color,"--card-pricing-period-color":a["brandy/pricing/highlight_settings"].card.pricing_period_color,"--card-pricing-description-color":a["brandy/pricing/highlight_settings"].card.description_color,"--pricing-feature-checked-title-color":a["brandy/pricing/highlight_settings"].card.checked_feature_title_color,"--pricing-feature-checked-icon-color":a["brandy/pricing/highlight_settings"].card.checked_feature_icon_color,"--pricing-feature-checked-icon-background-color":a["brandy/pricing/highlight_settings"].card.checked_feature_icon_background_color,"--pricing-feature-unchecked-title-color":a["brandy/pricing/highlight_settings"].card.unchecked_feature_title_color,"--pricing-feature-unchecked-icon-color":a["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_color,"--pricing-feature-unchecked-icon-background-color":a["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_background_color,"--card-button-color-normal":a["brandy/pricing/highlight_settings"].card.button_text_color.normal,"--card-button-color-hover":a["brandy/pricing/highlight_settings"].card.button_text_color.hover,..."fill"===a["brandy/pricing/highlight_settings"].card.button_type?{"--card-button-background-color-normal":a["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-background-color-hover":a["brandy/pricing/highlight_settings"].card.button_background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":a["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-border-color-hover":a["brandy/pricing/highlight_settings"].card.button_background_color.hover},"--card-background-normal":a["brandy/pricing/highlight_settings"].card.background_color.normal,"--card-background-hover":a["brandy/pricing/highlight_settings"].card.background_color.hover,"--card-border-color-normal":a["brandy/pricing/highlight_settings"].card.border_color.normal,"--card-border-color-hover":a["brandy/pricing/highlight_settings"].card.border_color.hover}:{}},a["brandy/pricing/card_layout"].map(((n,a)=>(0,e.createElement)(e.Fragment,null,"highlight_badge"===n&&(0,e.createElement)(r.RichText,{value:t.highlight_badge,onChange:e=>{i({highlight_badge:e})},tagName:"h4",className:"brandy-pricing-card__highlight-badge"}),"title"===n&&(0,e.createElement)(r.RichText,{value:t.title,onChange:e=>{i({title:e})},tagName:"h3",className:"brandy-pricing-card__title"}),"pricing"===n&&(0,e.createElement)(r.RichText,{value:t.pricing,onChange:e=>{i({pricing:e})},tagName:"p",className:"brandy-pricing-card__pricing"}),"description"===n&&(0,e.createElement)(r.RichText,{value:t.description,onChange:e=>{i({description:e})},tagName:"p",className:"brandy-pricing-card__description"}),"list_features"===n&&(0,e.createElement)("div",{className:"brandy-pricing-card__features-list"},t.features.map(((r,n)=>{var a;return(0,e.createElement)(_,{text:r.text,status:r.status,onChangeText:e=>{const r=t.features.map(((t,r)=>r===n?{...t,text:e}:t));i({features:r})},isIconEnabled:null===(a=t.icon_enabled)||void 0===a||a})}))),"button"===n&&(0,e.createElement)(r.RichText,{value:t.button,onChange:e=>{i({button:e})},tagName:"div",className:"brandy-pricing-card__button"})))))))},save:function({attributes:t}){var n,i;const a=r.useBlockProps.save(),c=t.context,o=(null!==(n=c["brandy/pricing/highlight_settings"]?.selected)&&void 0!==n?n:0)==t.position;return(0,e.createElement)("div",{...a},(0,e.createElement)("div",{className:"brandy-pricing-card",...o?{"is-highlighted":"true"}:{},style:o?{"--card-highlight-badge-title-color":c["brandy/pricing/card_highlight_badge"].title_color,"--card-highlight-badge-background-color":c["brandy/pricing/card_highlight_badge"].background_color,...u("card-highlight-badge",c["brandy/pricing/card_highlight_badge"].typography),"--card-highlight-badge-padding":p(c["brandy/pricing/card_highlight_badge"].padding),"--card-highlight-badge-margin":p(c["brandy/pricing/card_highlight_badge"].margin),"--card-title-color":c["brandy/pricing/highlight_settings"].card.title_color,"--card-pricing-price-color":c["brandy/pricing/highlight_settings"].card.pricing_price_color,"--card-pricing-period-color":c["brandy/pricing/highlight_settings"].card.pricing_period_color,"--card-pricing-description-color":c["brandy/pricing/highlight_settings"].card.description_color,"--pricing-feature-checked-title-color":c["brandy/pricing/highlight_settings"].card.checked_feature_title_color,"--pricing-feature-checked-icon-color":c["brandy/pricing/highlight_settings"].card.checked_feature_icon_color,"--pricing-feature-checked-icon-background-color":c["brandy/pricing/highlight_settings"].card.checked_feature_icon_background_color,"--pricing-feature-unchecked-title-color":c["brandy/pricing/highlight_settings"].card.unchecked_feature_title_color,"--pricing-feature-unchecked-icon-color":c["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_color,"--pricing-feature-unchecked-icon-background-color":c["brandy/pricing/highlight_settings"].card.unchecked_feature_icon_background_color,"--card-button-color-normal":c["brandy/pricing/highlight_settings"].card.button_text_color.normal,"--card-button-color-hover":c["brandy/pricing/highlight_settings"].card.button_text_color.hover,..."fill"===c["brandy/pricing/highlight_settings"].card.button_type?{"--card-button-background-color-normal":c["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-background-color-hover":c["brandy/pricing/highlight_settings"].card.button_background_color.hover,"--card-button-border-color-normal":"transparent","--card-button-border-color-hover":"transparent"}:{"--card-button-background-color-normal":"transparent","--card-button-background-color-hover":"transparent","--card-button-border-color-normal":c["brandy/pricing/highlight_settings"].card.button_background_color.normal,"--card-button-border-color-hover":c["brandy/pricing/highlight_settings"].card.button_background_color.hover},"--card-background-normal":c["brandy/pricing/highlight_settings"].card.background_color.normal,"--card-background-hover":c["brandy/pricing/highlight_settings"].card.background_color.hover,"--card-border-color-normal":c["brandy/pricing/highlight_settings"].card.border_color.normal,"--card-border-color-hover":c["brandy/pricing/highlight_settings"].card.border_color.hover}:{}},(null!==(i=c["brandy/pricing/card_layout"])&&void 0!==i?i:["highlight_badge","title","pricing","description","list_features","button"]).map((n=>(0,e.createElement)(e.Fragment,null,"highlight_badge"===n&&(0,e.createElement)(r.RichText.Content,{value:t.highlight_badge,tagName:"h4",className:"brandy-pricing-card__highlight-badge"}),"title"===n&&(0,e.createElement)(r.RichText.Content,{value:t.title,tagName:"h3",className:"brandy-pricing-card__title"}),"pricing"===n&&(0,e.createElement)(r.RichText.Content,{value:t.pricing,tagName:"p",className:"brandy-pricing-card__pricing"}),"description"===n&&(0,e.createElement)(r.RichText.Content,{value:t.description,tagName:"p",className:"brandy-pricing-card__description"}),"list_features"===n&&(0,e.createElement)("div",{className:"brandy-pricing-card__features-list"},t.features.map(((r,n)=>{var i;return(0,e.createElement)(m,{text:r.text,status:r.status,isIconEnabled:null===(i=t.icon_enabled)||void 0===i||i})}))),"button"===n&&(0,e.createElement)(r.RichText.Content,{value:t.button,tagName:"div",className:"brandy-pricing-card__button"}))))))},icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.92326 10.860FE","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"}))})}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,r,i,a)=>{if(!r){var c=1/0;for(g=0;g<e.length;g++){for(var[r,i,a]=e[g],o=!0,l=0;l<r.length;l++)(!1&a||c>=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(o=!1,a<c&&(c=a));if(o){e.splice(g--,1);var d=i();void 0!==d&&(t=d)}}return t}a=a||0;for(var g=e.length;g>0&&e[g-1][2]>a;g--)e[g]=e[g-1];e[g]=[r,i,a]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={491:0,132:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var i,a,[c,o,l]=r,d=0;if(c.some((t=>0!==e[t]))){for(i in o)n.o(o,i)&&(n.m[i]=o[i]);if(l)var g=l(n)}for(t&&t(r);d<c.length;d++)a=c[d],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(g)},r=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=n.O(void 0,[132],(()=>n(323)));i=n.O(i)})();
  • brandy-blocks/trunk/inc/Packages/build/blocks/SingleTestimonial/index.asset.php

    r3060884 r3076429  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'e2cc1197fa95e5994498');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '');
  • brandy-blocks/trunk/inc/Packages/build/blocks/SingleTestimonial/index.js

    r3060884 r3076429  
    1 (()=>{"use strict";var e,t={834:()=>{const e=window.React,t=window.wp.blocks,a=window.wp.blockEditor,n=window.wp.element,r=window.wp.i18n,l=window.wp.components;function s({value:t,onChange:a,min:n,max:r,label:s=""}){return(0,e.createElement)(l.RangeControl,{label:s,className:"brandy-editor-slider",value:t,onChange:a,min:n,max:r})}function i({}){return(0,e.createElement)("div",{className:"brandy-testimonials__card__rating"},Array(5).fill(!0).map(((t,a)=>(0,e.createElement)("span",{key:a,className:"brandy-testimonials__card__rating-star",dangerouslySetInnerHTML:{__html:'<svg width="26" height="24" viewBox="0 0 26 24" fill="" xmlns="http://www.w3.org/2000/svg">\n          <path d="M11.4772 0.978145C11.9116 -0.326048 13.8027 -0.326048 14.237 0.978145L16.2775 7.10518C16.4718 7.68843 17.0289 8.08332 17.6574 8.08332H24.2606C25.6661 8.08332 26.2505 9.8381 25.1134 10.6441L19.7714 14.4309C19.2628 14.7913 19.05 15.4303 19.2443 16.0135L21.2848 22.1406C21.7191 23.4448 20.1891 24.5293 19.052 23.7232L13.71 19.9365C13.2014 19.576 12.5128 19.576 12.0043 19.9365L6.66226 23.7232C5.52515 24.5293 3.99519 23.4448 4.42952 22.1406L6.47001 16.0135C6.66425 15.4303 6.45146 14.7913 5.94293 14.4309L0.600871 10.6441C-0.536233 9.8381 0.0481602 8.08332 1.4537 8.08332H8.05685C8.68542 8.08332 9.24251 7.68843 9.43675 7.10518L11.4772 0.978145Z"/>\n          </svg>\n          '}}))))}function o({}){return(0,e.createElement)("div",{className:"brandy-testimonials__card__rating"},Array(5).fill(!0).map(((t,a)=>(0,e.createElement)("span",{key:a,className:"brandy-testimonials__card__rating-star",dangerouslySetInnerHTML:{__html:'<svg width="26" height="24" viewBox="0 0 26 24" fill="" xmlns="http://www.w3.org/2000/svg">\n          <path d="M11.4772 0.978145C11.9116 -0.326048 13.8027 -0.326048 14.237 0.978145L16.2775 7.10518C16.4718 7.68843 17.0289 8.08332 17.6574 8.08332H24.2606C25.6661 8.08332 26.2505 9.8381 25.1134 10.6441L19.7714 14.4309C19.2628 14.7913 19.05 15.4303 19.2443 16.0135L21.2848 22.1406C21.7191 23.4448 20.1891 24.5293 19.052 23.7232L13.71 19.9365C13.2014 19.576 12.5128 19.576 12.0043 19.9365L6.66226 23.7232C5.52515 24.5293 3.99519 23.4448 4.42952 22.1406L6.47001 16.0135C6.66425 15.4303 6.45146 14.7913 5.94293 14.4309L0.600871 10.6441C-0.536233 9.8381 0.0481602 8.08332 1.4537 8.08332H8.05685C8.68542 8.08332 9.24251 7.68843 9.43675 7.10518L11.4772 0.978145Z"/>\n          </svg>\n          '}}))))}const m=JSON.parse('{"u2":"brandy/single-testimonial"}');(0,t.registerBlockType)(m.u2,{edit:function({attributes:t,setAttributes:l,context:o}){const m=(0,a.useBlockProps)(),c=(0,n.useMemo)((()=>t.rating),[t.rating]);(0,n.useEffect)((()=>{l({context:o})}),[o["brandy/testimonials/layout"]]);const d=e=>t=>{l({[e]:t})},u=(0,n.useMemo)((()=>[["core/image",{className:"brandy-testimonials__card__avatar",url:t.image,alt:"testimonial-avatar"}]]),[t.image]);return(0,e.createElement)("div",{...m,className:`${m.className} brandy-testimonials__card`,"data-rating":c},(0,e.createElement)(a.InspectorControls,{key:"setting"},(0,e.createElement)("div",{className:"brandy-editor"},(0,e.createElement)("div",{className:"setting-wrapper"},(0,e.createElement)(s,{label:(0,r.__)("Rating"),value:c,onChange:d("rating"),min:0,max:5})))),o["brandy/testimonials/layout"].map((n=>(0,e.createElement)(e.Fragment,null,"avatar"===n&&(0,e.createElement)(a.InnerBlocks,{template:u,templateLock:"all"}),"name"===n&&(0,e.createElement)(a.RichText,{tagName:"p",value:t.name,onChange:d("name"),className:"brandy-testimonials__card__name"}),"subname"===n&&(0,e.createElement)(a.RichText,{tagName:"p",value:t.subname,onChange:d("subname"),className:"brandy-testimonials__card__subname"}),"content"===n&&(0,e.createElement)(a.RichText,{tagName:"p",value:t.content,onChange:d("content"),className:"brandy-testimonials__card__content"}),"rating"===n&&(0,e.createElement)(i,null)))))},save:function({attributes:t}){var n;const r=a.useBlockProps.save(),{rating:l}=t,s=t.context;return(0,e.createElement)("div",{...r,className:`${r.className} brandy-testimonials__card`,"data-rating":l},(null!==(n=s["brandy/testimonials/layout"])&&void 0!==n?n:[]).map((n=>(0,e.createElement)(e.Fragment,null,"avatar"===n&&(0,e.createElement)(a.InnerBlocks.Content,null),"name"===n&&(0,e.createElement)(a.RichText.Content,{tagName:"p",value:t.name,className:"brandy-testimonials__card__name"}),"subname"===n&&(0,e.createElement)(a.RichText.Content,{tagName:"p",value:t.subname,className:"brandy-testimonials__card__subname"}),"content"===n&&(0,e.createElement)(a.RichText.Content,{tagName:"p",value:t.content,className:"brandy-testimonials__card__content"}),"rating"===n&&(0,e.createElement)(o,null)))))},icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M20.9116 7.53174C20.881 7.14732 20.8547 6.92766 20.8547 6.92766C20.8547 4.20509 18.5699 2 15.7537 2H8.10103C5.51225 2 3.3717 3.86292 3.04373 6.27923C3.01531 6.49256 3 6.70799 3 6.92977V12.3496V12.7762C3 13.5936 3.20553 14.3646 3.57067 15.0426C4.41902 16.6246 6.13102 17.7039 8.10103 17.7039H15.2661C15.3624 18.8821 15.002 20.2775 14.7213 21.1509C14.6011 21.5248 14.9203 21.9087 15.296 21.7941C17.4053 21.1504 18.7547 19.5878 19.6063 17.7039C20.4371 15.8684 20.7957 13.7309 20.9313 11.8448C21.0624 9.97972 20.9772 8.36604 20.9116 7.53174Z",fill:"white",stroke:"#00A3FE","stroke-width":"1.5","stroke-miterlimit":"10"}),(0,e.createElement)("path",{d:"M11.9978 13.6C10.0271 13.6 8.24694 12.5895 7.56758 11.0862C7.39245 10.6994 7.56951 10.2482 7.96211 10.0757C8.35279 9.90317 8.81276 10.0776 8.98789 10.4643C9.42091 11.4255 10.6314 12.0701 11.9978 12.0701C13.37 12.0701 14.5806 11.4217 15.0117 10.4568C15.1849 10.07 15.6429 9.89559 16.0355 10.0643C16.4281 10.2349 16.6071 10.6861 16.4339 11.0729C15.7584 12.5838 13.9763 13.6 11.9978 13.6Z",fill:"#00A3FE"}))})}},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var l=a[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,a,r,l)=>{if(!a){var s=1/0;for(c=0;c<e.length;c++){for(var[a,r,l]=e[c],i=!0,o=0;o<a.length;o++)(!1&l||s>=l)&&Object.keys(n.O).every((e=>n.O[e](a[o])))?a.splice(o--,1):(i=!1,l<s&&(s=l));if(i){e.splice(c--,1);var m=r();void 0!==m&&(t=m)}}return t}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[a,r,l]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={275:0,425:0};n.O.j=t=>0===e[t];var t=(t,a)=>{var r,l,[s,i,o]=a,m=0;if(s.some((t=>0!==e[t]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(o)var c=o(n)}for(t&&t(a);m<s.length;m++)l=s[m],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(c)},a=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var r=n.O(void 0,[425],(()=>n(834)));r=n.O(r)})();
     1(()=>{"use strict";var e,t={834:()=>{const e=window.React,t=window.wp.blocks,a=window.wp.blockEditor,n=window.wp.element,r=window.wp.i18n,l=window.wp.components;function s({value:t,onChange:a,min:n,max:r,label:s=""}){return(0,e.createElement)(l.RangeControl,{label:s,className:"brandy-editor-slider",value:t,onChange:a,min:n,max:r})}function i({}){return(0,e.createElement)("div",{className:"brandy-testimonials__card__rating"},Array(5).fill(!0).map(((t,a)=>(0,e.createElement)("span",{key:a,className:"brandy-testimonials__card__rating-star",dangerouslySetInnerHTML:{__html:'<svg width="26" height="24" viewBox="0 0 26 24" fill="" xmlns="http://www.w3.org/2000/svg">\n          <path d="M11.4772 0.978145C11.9116 -0.326048 13.8027 -0.326048 14.237 0.978145L16.2775 7.10518C16.4718 7.68843 17.0289 8.08332 17.6574 8.08332H24.2606C25.6661 8.08332 26.2505 9.8381 25.1134 10.6441L19.7714 14.4309C19.2628 14.7913 19.05 15.4303 19.2443 16.0135L21.2848 22.1406C21.7191 23.4448 20.1891 24.5293 19.052 23.7232L13.71 19.9365C13.2014 19.576 12.5128 19.576 12.0043 19.9365L6.66226 23.7232C5.52515 24.5293 3.99519 23.4448 4.42952 22.1406L6.47001 16.0135C6.66425 15.4303 6.45146 14.7913 5.94293 14.4309L0.600871 10.6441C-0.536233 9.8381 0.0481602 8.08332 1.4537 8.08332H8.05685C8.68542 8.08332 9.24251 7.68843 9.43675 7.10518L11.4772 0.978145Z"/>\n          </svg>\n          '}}))))}function o({}){return(0,e.createElement)("div",{className:"brandy-testimonials__card__rating"},Array(5).fill(!0).map(((t,a)=>(0,e.createElement)("span",{key:a,className:"brandy-testimonials__card__rating-star",dangerouslySetInnerHTML:{__html:'<svg width="26" height="24" viewBox="0 0 26 24" fill="" xmlns="http://www.w3.org/2000/svg">\n          <path d="M11.4772 0.978145C11.9116 -0.326048 13.8027 -0.326048 14.237 0.978145L16.2775 7.10518C16.4718 7.68843 17.0289 8.08332 17.6574 8.08332H24.2606C25.6661 8.08332 26.2505 9.8381 25.1134 10.6441L19.7714 14.4309C19.2628 14.7913 19.05 15.4303 19.2443 16.0135L21.2848 22.1406C21.7191 23.4448 20.1891 24.5293 19.052 23.7232L13.71 19.9365C13.2014 19.576 12.5128 19.576 12.0043 19.9365L6.66226 23.7232C5.52515 24.5293 3.99519 23.4448 4.42952 22.1406L6.47001 16.0135C6.66425 15.4303 6.45146 14.7913 5.94293 14.4309L0.600871 10.6441C-0.536233 9.8381 0.0481602 8.08332 1.4537 8.08332H8.05685C8.68542 8.08332 9.24251 7.68843 9.43675 7.10518L11.4772 0.978145Z"/>\n          </svg>\n          '}}))))}const m=JSON.parse('{"u2":"brandy/single-testimonial"}');(0,t.registerBlockType)(m.u2,{edit:function({attributes:t,setAttributes:l,context:o}){const m=(0,a.useBlockProps)(),c=(0,n.useMemo)((()=>t.rating),[t.rating]);(0,n.useEffect)((()=>{l({context:o})}),[o["brandy/testimonials/layout"]]);const d=e=>t=>{l({[e]:t})},u=(0,n.useMemo)((()=>[["core/image",{className:"brandy-testimonials__card__avatar",url:t.image,alt:"testimonial-avatar"}]]),[t.image]);return(0,e.createElement)("div",{...m,className:`${m.className} brandy-testimonials__card`,"data-rating":c},(0,e.createElement)(a.InspectorControls,{key:"setting"},(0,e.createElement)("div",{className:"brandy-editor"},(0,e.createElement)("div",{className:"setting-wrapper"},(0,e.createElement)(s,{label:(0,r.__)("Rating"),value:c,onChange:d("rating"),min:0,max:5})))),o["brandy/testimonials/layout"].map((n=>(0,e.createElement)(e.Fragment,null,"avatar"===n&&(0,e.createElement)(a.InnerBlocks,{template:u,templateLock:"all"}),"name"===n&&(0,e.createElement)(a.RichText,{tagName:"p",value:t.name,onChange:d("name"),className:"brandy-testimonials__card__name"}),"subname"===n&&(0,e.createElement)(a.RichText,{tagName:"p",value:t.subname,onChange:d("subname"),className:"brandy-testimonials__card__subname"}),"content"===n&&(0,e.createElement)(a.RichText,{tagName:"p",value:t.content,onChange:d("content"),className:"brandy-testimonials__card__content"}),"rating"===n&&(0,e.createElement)(i,null)))))},save:function({attributes:t}){var n;const r=a.useBlockProps.save(),{rating:l}=t,s=t.context;return(0,e.createElement)("div",{...r,className:`${r.className} brandy-testimonials__card`,"data-rating":l},(null!==(n=s["brandy/testimonials/layout"])&&void 0!==n?n:[]).map((n=>(0,e.createElement)(e.Fragment,null,"avatar"===n&&(0,e.createElement)(a.InnerBlocks.Content,null),"name"===n&&(0,e.createElement)(a.RichText.Content,{tagName:"p",value:t.name,className:"brandy-testimonials__card__name"}),"subname"===n&&(0,e.createElement)(a.RichText.Content,{tagName:"p",value:t.subname,className:"brandy-testimonials__card__subname"}),"content"===n&&(0,e.createElement)(a.RichText.Content,{tagName:"p",value:t.content,className:"brandy-testimonials__card__content"}),"rating"===n&&(0,e.createElement)(o,null)))))},icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M20.9116 7.53174C20.881 7.14732 20.8547 6.92766 20.8547 6.92766C20.8547 4.20509 18.5699 2 15.7537 2H8.10103C5.51225 2 3.3717 3.86292 3.04373 6.27923C3.01531 6.49256 3 6.70799 3 6.92977V12.3496V12.7762C3 13.5936 3.20553 14.3646 3.57067 15.0426C4.41902 16.6246 6.13102 17.7039 8.10103 17.7039H15.2661C15.3624 18.8821 15.002 20.2775 14.7213 21.1509C14.6011 21.5248 14.9203 21.9087 15.296 21.7941C17.4053 21.1504 18.7547 19.5878 19.6063 17.7039C20.4371 15.8684 20.7957 13.7309 20.9313 11.8448C21.0624 9.97972 20.9772 8.36604 20.9116 7.53174Z",fill:"white",stroke:"#00FE"}))})}},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var l=a[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,a,r,l)=>{if(!a){var s=1/0;for(c=0;c<e.length;c++){for(var[a,r,l]=e[c],i=!0,o=0;o<a.length;o++)(!1&l||s>=l)&&Object.keys(n.O).every((e=>n.O[e](a[o])))?a.splice(o--,1):(i=!1,l<s&&(s=l));if(i){e.splice(c--,1);var m=r();void 0!==m&&(t=m)}}return t}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[a,r,l]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={275:0,425:0};n.O.j=t=>0===e[t];var t=(t,a)=>{var r,l,[s,i,o]=a,m=0;if(s.some((t=>0!==e[t]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(o)var c=o(n)}for(t&&t(a);m<s.length;m++)l=s[m],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(c)},a=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var r=n.O(void 0,[425],(()=>n(834)));r=n.O(r)})();
  • brandy-blocks/trunk/inc/Packages/build/blocks/Testimonials/index.asset.php

    r3060884 r3076429  
    1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '7d2aa725cbeaba24a007');
     1<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '');
  • brandy-blocks/trunk/inc/Packages/build/blocks/Testimonials/index.js

    r3060884 r3076429  
    1 (()=>{var e,t={87:(e,t,n)=>{"use strict";var o=n(196);const a=window.wp.blocks,r=window.wp.blockEditor,i=window.wp.element,l=(e="default",t)=>({[`--${e}-font-size`]:t.font_size+"px",[`--${e}-bold`]:t.bold?"bold":"",[`--${e}-font-styles`]:t.italic?"italic":"normal",[`--${e}-text-transform`]:t.text_transform,[`--${e}-font-weight`]:t.font_weight+""}),s=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,c=e=>`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,u=window.wp.data,d=window.wp.components;function m({items:e}){return(0,o.createElement)(d.TabPanel,{className:"brandy-tab-panel",activeClass:"active-tab",tabs:e},(e=>e.component))}const p=window.wp.i18n;function h({value:e,onChange:t,min:n,max:a,label:r=""}){return(0,o.createElement)(d.RangeControl,{label:r,className:"brandy-editor-slider",value:e,onChange:t,min:n,max:a})}const g=JSON.parse('{"u2":"brandy/testimonials","Y4":{"XQ":{"ZP":3},"AF":{"Z":{"type":"regular","x":0,"y":4,"blur":16,"spread":0,"color":"rgba(0, 0, 0, 0.06)"}},"pR":{"type":"object","default":{"autoplay":true,"infinite_loop":true,"transition_speed":500}},"Wy":{"Z":50},"bi":{"type":"string","default":"center"},"ri":{"type":"object","default":{"visible":true,"size":80,"border_radius":{"top":50,"left":50,"right":50,"bottom":50,"constrain":true},"fitting":"cover","margin":{"top":0,"left":0,"right":0,"bottom":7,"constrain":false}}},"u2":{"type":"object","default":{"visible":true,"color":"var(--body_text, #122940)","typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":500},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"fM":{"type":"object","default":{"visible":true,"color":"var(--secondary_text, #7F8287)","typography":{"font_size":14,"bold":false,"italic":false,"text_transform":"none","font_weight":300},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"kQ":{"Z":{"visible":true,"color":"var(--palette_3, #122940)","typography":{"font_size":24,"bold":false,"italic":true,"text_transform":"none","font_weight":300},"margin":{"top":30,"left":0,"right":0,"bottom":30,"constrain":false}}},"h_":{"type":"object","default":{"visible":true,"size":16,"active_color":"#f8b84e","default_color":"#bebfc2","spacing":5,"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"x7":{"type":"object","default":{"size":30,"icon_color":"#808890","background_color":"#EFF2F4"}},"Ez":{"type":"object","default":{"size":12,"active_color":"#122940","default_color":"#D3DCE5","spacing":12}},"bK":{"Z":["avatar","name","subname","content","rating"]}}}');function f({title:e,style:t}){return(0,o.createElement)(d.BaseControl.VisualLabel,{className:"setting__label",style:t},e)}function v({title:e,style:t}){return(0,o.createElement)(d.BaseControl.VisualLabel,{className:"setting__sub-label",style:t},e)}const b={display:"flex",alignItems:"center",justifyContent:"space-between"};function y(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=(0,i.useMemo)((()=>{var t;return null!==(t=e.carousel?.transition_speed)&&void 0!==t?t:g.Y4.pR.default.transition_speed}),[e.carousel?.transition_speed]),a=(0,i.useMemo)((()=>{var t;return null!==(t=e.carousel?.autoplay)&&void 0!==t?t:g.Y4.pR.default.autoplay}),[e.carousel?.autoplay]),r=(0,i.useMemo)((()=>{var t;return null!==(t=e.carousel?.infinite_loop)&&void 0!==t?t:g.Y4.pR.default.infinite_loop}),[e.carousel?.infinite_loop]);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)(f,{title:(0,p.__)("Carousel","brandy"),style:{marginBottom:0}}),(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Transition speed (ms)","brandy")}),(0,o.createElement)(h,{value:n,onChange:n=>{t({carousel:{...e.carousel,transition_speed:n}})},min:"100",max:"2000"})),(0,o.createElement)("div",{style:b},(0,o.createElement)(v,{title:(0,p.__)("Autoplay","brandy")}),(0,o.createElement)(d.ToggleControl,{checked:a,onChange:n=>{t({carousel:{...e.carousel,autoplay:n}})}})),(0,o.createElement)("div",{style:b},(0,o.createElement)(v,{title:(0,p.__)("Infinite loop","brandy")}),(0,o.createElement)(d.ToggleControl,{checked:r,onChange:n=>{t({carousel:{...e.carousel,infinite_loop:n}})}})))}function E({options:e=[],selected:t,onChange:n,className:a=""}){return(0,o.createElement)(d.ButtonGroup,{className:`brandy-editor-btn-group ${a}`},e.map((e=>(0,o.createElement)(d.Button,{onClick:()=>{var t;t=e.value,n(t)},className:t===e.value?"selected":""},e.label))))}const w=[{label:(0,o.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M5.86111 5V11H17.3999V5H5.86111ZM0.616211 16H2.18968V0H0.616211V16Z",fill:"#5A6D80"})),value:"left"},{label:(0,o.createElement)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:"#5A6D80"})),value:"center"},{label:(0,o.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M0.550781 11H12.0896V5H0.550781V11ZM15.761 0V16H17.3345V0H15.761Z",fill:"#5A6D80"})),value:"right"}];function _({onChange:e,selected:t}){return(0,o.createElement)(E,{options:w,onChange:e,selected:t,className:"brandy-btn-group-icons"})}function C(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Content alignment","brandy")}),(0,o.createElement)(_,{selected:e.content_alignment,onChange:e=>{t({content_alignment:e})}})))}function x(){const{attributes:e,setAttributes:t,setTemplate:n}=(0,i.useContext)(q),a=(0,i.useMemo)((()=>{var t;return null!==(t=e.number_testimonials)&&void 0!==t?t:g.Y4.XQ.ZP}),[e.number_testimonials]);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)(h,{label:(0,p.__)("Testimonial count","brandy"),value:a,onChange:e=>{t({number_testimonials:e}),n((t=>(t=Array(e).fill(!0).map((e=>["brandy/single-testimonial",{name:"William Hallen",subname:"CEO",content:"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled. That produces no resultant pleasure.",rating:5,image:window.brandyBlocks.url.images+"/member-3.png"}])),[...t,[]])))},min:"1",max:"15"}))}function D(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=(0,i.useMemo)((()=>{var t;return null!==(t=e.item_spacing)&&void 0!==t?t:g.Y4.Wy.Z}),[e.item_spacing]);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)(f,{title:(0,p.__)("Dimensions","brandy"),style:{marginBottom:0}}),(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Item Spacing","brandy")}),(0,o.createElement)(h,{value:n,onChange:e=>{t({item_spacing:e})},min:"10",max:"200"})))}function S({options:e=[],selected:t,onChange:n}){return(0,o.createElement)("select",{className:"brandy-editor-select",value:t,onChange:e=>{n(e.target.value)},onfocus:"this.size=10;",onblur:"this.size=1;"},e.map((e=>(0,o.createElement)("option",{value:e.value},e.label))))}const k=[{label:"None",value:"none"},{label:"Small",value:"small"},{label:"Regular",value:"regular"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}];function M({selected:e,onChange:t,...n}){return(0,o.createElement)("div",{className:"brandy-editor-shadow"},(0,o.createElement)(S,{options:k,selected:e,onChange:e=>{"none"===e&&t({type:e,x:0,y:0,blur:0,spread:0,color:"#ffffff"}),"small"==e&&t({type:e,x:0,y:3,blur:10,spread:0,color:"rgba(0, 0, 0, 0.05)"}),"regular"==e&&t({type:e,x:0,y:4,blur:16,spread:0,color:"rgba(0, 0, 0, 0.06)"}),"medium"==e&&t({type:e,x:0,y:6,blur:20,spread:0,color:"rgba(0, 0, 0, 0.10)"}),"large"==e&&t({type:e,x:0,y:10,blur:26,spread:0,color:"rgba(0, 0, 0, 0.16)"})},...n}))}function N(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Card shadow","brandy")}),(0,o.createElement)(M,{selected:e.shadow.type,onChange:e=>{t({shadow:e})}})))}var O=n(941);function I(){const{clientId:e,setTemplate:t,setAttributes:n,template:a}=(0,i.useContext)(q);let r=(0,u.useSelect)((t=>{const{getBlocks:n}=t("core/block-editor");return n(e)}),[e]);return(0,i.useEffect)((()=>{setTimeout((()=>{const e=[...a];for(;0==e.lastItem.length;)e.pop();t(e)}),1)}),[a.length]),(0,o.createElement)("div",{className:"setting-wrapper testimonial-sort"},(0,o.createElement)(f,{title:(0,p.__)("List testimonials","brandy"),style:{marginBottom:0}}),(0,o.createElement)(O.ReactSortable,{list:r,setList:e=>{r.forEach(((t,n)=>{r[n]=e[n]})),t((()=>[...a,[]]))},animation:150,easing:"ease-in-out",className:"testimonial-sort__list"},r.map((e=>(0,o.createElement)("div",{key:e.clientId,className:"testimonial-sort__item"},(0,o.createElement)("img",{src:e.attributes.image,alt:"item-avatar"}),(0,o.createElement)("span",null,e.attributes.name))))))}function T({initialStatus:e=!1,title:t=(0,p.__)("Menu title","brandy"),className:n="",children:a}){const[r,l]=(0,i.useState)(e);return(0,o.createElement)("div",{className:`brandy-collapse-menu ${r?"collapse-open":""} ${n}`},(0,o.createElement)("div",{className:"brandy-collapse-menu__header",onClick:()=>{l((e=>!e))}},(0,o.createElement)("span",{className:"collapse-title"},t),(0,o.createElement)("span",{className:"collapse-arrow"},(0,o.createElement)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M11 2.15974L5.5 6.87402L0 2.15974L0.9 0.874023L5.5 4.73117L10 0.874023L11 2.15974Z",fill:"#C6D4E1"})))),r&&(0,o.createElement)("div",{className:"brandy-collapse-menu__content"},a))}function A({children:e,...t}){return(0,o.createElement)(T,{className:"styles-card",...t},e)}function P({color:e,onChange:t}){var n;const a=(0,r.useSetting)("color.palette.theme"),l=(0,r.useSetting)("color.palette.default"),[s,c]=(0,i.useState)(!1),u=[{name:(0,p.__)("Theme","brandy"),colors:a},{name:(0,p.__)("Default","brandy"),colors:l}],m=(0,i.useRef)(null),h=(0,i.useRef)(null);return(0,i.useEffect)((()=>{function e(e){m.current?.contains(e.target)||h.current?.parentNode?.contains(e.target)||c(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[m.current,h.current,c]),(0,o.createElement)("div",{className:"color-picker"},(0,o.createElement)("div",{className:"color-picker__head"},(0,o.createElement)("div",{className:"color-indicator",style:{background:e},onClick:e=>{s?m.current?.contains(e.target)&&!h.current?.parentNode?.contains(e.target)&&c(!1):c(!0)},ref:m},s&&(0,o.createElement)(d.Popover,{className:"brandy-color-popover",ref:h},(0,o.createElement)("div",{className:"brandy-color-modal"},(0,o.createElement)(d.ColorPalette,{colors:u,value:e,onChange:t}))))),(0,o.createElement)("span",{className:"color-picker__tail"},null!==(n=e?.replace("#","").replace("var(--","").replace(")",""))&&void 0!==n?n:"Initial"))}function L(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=(0,i.useMemo)((()=>{var t;return null!==(t=e.arrow.size)&&void 0!==t?t:g.Y4.x7.default.size}),[e.arrow?.size]),a=(0,i.useMemo)((()=>{var t;return null!==(t=e.arrow.icon_color)&&void 0!==t?t:g.Y4.x7.default.icon_color}),[e.arrow?.icon_color]),r=(0,i.useMemo)((()=>{var t;return null!==(t=e.arrow.background_color)&&void 0!==t?t:g.Y4.x7.default.background_color}),[e.arrow?.background_color]);return(0,o.createElement)(A,{title:(0,p.__)("Arrow","brandy")},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Size","brandy")}),(0,o.createElement)(h,{value:n,onChange:n=>{t({arrow:{...e.arrow,size:n}})},min:"30",max:"70"})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Colors","brandy")}),(0,o.createElement)("div",{className:"card-colors-flex"},(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Icon","brandy")}),(0,o.createElement)(P,{color:a,onChange:n=>{t({arrow:{...e.arrow,icon_color:n}})}})),(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Background","brandy")}),(0,o.createElement)(P,{color:r,onChange:n=>{t({arrow:{...e.arrow,background_color:n}})}})))))}function B(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=(0,i.useMemo)((()=>{var t;return null!==(t=e.dots.size)&&void 0!==t?t:g.Y4.Ez.default.size}),[e.dots?.size]),a=(0,i.useMemo)((()=>{var t;return null!==(t=e.dots.spacing)&&void 0!==t?t:g.Y4.Ez.default.spacing}),[e.dots?.spacing]),r=(0,i.useMemo)((()=>{var t;return null!==(t=e.dots.active_color)&&void 0!==t?t:g.Y4.Ez.default.active_color}),[e.dots?.active_color]),l=(0,i.useMemo)((()=>{var t;return null!==(t=e.dots.default_color)&&void 0!==t?t:g.Y4.Ez.default.default_color}),[e.dots?.default_color]);return(0,o.createElement)(A,{title:(0,p.__)("Dots","brandy")},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Dot size","brandy")}),(0,o.createElement)(h,{value:n,onChange:n=>{t({dots:{...e.dots,size:n}})},min:"10",max:"70"})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Spacing","brandy")}),(0,o.createElement)(h,{value:a,onChange:n=>{t({dots:{...e.dots,spacing:n}})},min:"5",max:"100"})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Dot colors","brandy")}),(0,o.createElement)("div",{className:"card-colors-flex"},(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Normal","brandy")}),(0,o.createElement)(P,{color:l,onChange:n=>{t({dots:{...e.dots,default_color:n}})}})),(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Active","brandy")}),(0,o.createElement)(P,{color:r,onChange:n=>{t({dots:{...e.dots,active_color:n}})}})))))}const H=()=>(0,o.createElement)("svg",{width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M0 2.82227H2V0.822266H0V2.82227ZM0 8.82227H2V6.82227H0V8.82227ZM0 14.8223H2V12.8223H0V14.8223ZM6 0.822266V2.82227H8V0.822266H6ZM6 8.82227H8V6.82227H6V8.82227ZM6 14.8223H8V12.8223H6V14.8223Z",fill:"#7F94A9"})),R=()=>(0,o.createElement)("svg",{width:"19",height:"14",viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 7.00017C16.5151 10.0655 12.7959 13 9.4998 13C6.20371 13 2.48449 10.0655 1 6.99981",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 7.00017C16.5151 3.93484 12.7965 1 9.50039 1C6.2043 1 2.48449 3.93412 1 6.99981",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,o.createElement)("path",{d:"M12.05 7C12.05 8.42016 10.9083 9.57143 9.5 9.57143C8.09167 9.57143 6.95 8.42016 6.95 7C6.95 5.57984 8.09167 4.42857 9.5 4.42857C10.9083 4.42857 12.05 5.57984 12.05 7Z",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})),z=()=>(0,o.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M7.87727 3.3562C8.40917 3.23903 8.95373 3.18045 9.5 3.18166C14.9091 3.18166 18 8.99984 18 8.99984C17.5309 9.82574 16.9715 10.6033 16.3309 11.3198M11.1382 10.5417C10.926 10.756 10.67 10.928 10.3857 11.0472C10.1013 11.1665 9.79433 11.2306 9.48307 11.2357C9.17181 11.2409 8.86263 11.187 8.57397 11.0773C8.28532 10.9676 8.0231 10.8042 7.80297 10.597C7.58284 10.3899 7.4093 10.1431 7.29271 9.8714C7.17612 9.59972 7.11886 9.30873 7.12435 9.01577C7.12984 8.72282 7.19797 8.43391 7.32468 8.16628C7.45138 7.89864 7.63406 7.65777 7.86182 7.45802M14.09 13.3198C12.7691 14.2675 11.1607 14.7925 9.5 14.818C4.09091 14.818 1 8.99984 1 8.99984C1.96119 7.31395 3.29433 5.84101 4.91 4.67984L14.09 13.3198Z",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,o.createElement)("path",{d:"M1 1L18 17",stroke:"#C6D4E1","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}));function Y({title:e,onToggleVisible:t,visible:n=null}){return(0,o.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},(0,o.createElement)("span",{style:{display:"flex",alignItems:"center",gap:8}},(0,o.createElement)("span",{className:"item-block-drag-handler",onClick:e=>{e.stopPropagation()}},(0,o.createElement)(H,null)),(0,o.createElement)("span",null,e)),null!=n&&(0,o.createElement)("span",{className:"item-block-visible-icon "+(n?"icon-visible":"icon-invisible"),style:{padding:5,cursor:"pointer",display:"flex"},onClick:e=>{e.stopPropagation(),e.preventDefault(),t()}},n?(0,o.createElement)(R,null):(0,o.createElement)(z,null)))}const $=({attribute:e,value:t,title:n,onChange:a,min:r=0,max:i})=>(0,o.createElement)("div",{className:"brandy-editor-spacing__item"},(0,o.createElement)("input",{type:"number",value:t,onChange:e=>{let t=e.target.value;t<r&&(t=r),i&&t>i&&(t=i),""!=t&&null!=t||(t=0),a(t)},min:r}),(0,o.createElement)("span",null,n)),j=[{key:"top",label:(0,p.__)("Top","brandy")},{key:"right",label:(0,p.__)("Right","brandy")},{key:"bottom",label:(0,p.__)("Bottom","brandy")},{key:"left",label:(0,p.__)("Left","brandy")}];function V({value:e,onChange:t}){return(0,o.createElement)("div",{className:"brandy-editor-spacing"},j.map((n=>{return(0,o.createElement)($,{attribute:n.key,value:e[n.key],title:n.label,onChange:(a=n.key,n=>{e.constrain?t({...e,top:n,left:n,right:n,bottom:n}):t({...e,[a]:n})})});var a})),(0,o.createElement)("div",{className:"brandy-editor-spacing__constrain "+(e.constrain?"constrain-active":""),onClick:()=>{const n=!e.constrain,o={...e};n&&(o.right=e.top,o.bottom=e.top,o.left=e.top),t({...o,constrain:n})}},(0,o.createElement)("svg",{width:"10",height:"20",viewBox:"0 0 10 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M5 6V14M9 13V15C9 16.0609 8.57857 17.0783 7.82843 17.8284C7.07828 18.5786 6.06087 19 5 19C3.93913 19 2.92172 18.5786 2.17157 17.8284C1.42143 17.0783 1 16.0609 1 15V13M9 7V5C9 3.93913 8.57857 2.92172 7.82843 2.17157C7.07828 1.42143 6.06087 1 5 1C3.93913 1 2.92172 1.42143 2.17157 2.17157C1.42143 2.92172 1 3.93913 1 5V7",stroke:"#5a6d80","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))))}const Z=[{key:"bold",label:(0,o.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M11.74 8.34C13.5133 8.91333 14.4 10.14 14.4 12.02C14.4 13.2733 13.9933 14.2533 13.18 14.96C12.3667 15.6533 11.2533 16 9.84 16H4V2H9.28C11.9467 2 13.28 3.12667 13.28 5.38C13.28 6.76667 12.7667 7.75333 11.74 8.34ZM6.56 7.5H8.9C9.52667 7.5 9.99333 7.37333 10.3 7.12C10.6067 6.85333 10.76 6.44667 10.76 5.9C10.76 5.32667 10.6067 4.91333 10.3 4.66C9.99333 4.40667 9.52667 4.28 8.9 4.28H6.56V7.5ZM9.46 13.72C10.2067 13.72 10.7733 13.5733 11.16 13.28C11.56 12.9733 11.76 12.46 11.76 11.74C11.76 11.0333 11.5533 10.5333 11.14 10.24C10.74 9.93333 10.18 9.78 9.46 9.78H6.56V13.72H9.46Z",fill:"#5A6D80"}))},{key:"italic",label:(0,o.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M11 2L8.6 16H7L9.4 2H11Z",fill:"#5A6D80"}))}],X=[{value:"none",label:"None"},{value:"uppercase",label:"AA"},{value:"capitalize",label:"Aa"}],F=[{value:100,label:"100"},{value:200,label:"200"},{value:300,label:"300"},{value:400,label:"400"},{value:500,label:"500"},{value:600,label:"600"},{value:700,label:"700"}];function W({value:e,onChange:t}){const[n,a]=(0,i.useState)(!1),r=(0,i.useRef)(null),l=(0,i.useRef)(null),s=n=>o=>{t({...e,[n]:o})};return(0,i.useEffect)((()=>{function e(e){r.current?.contains(e.target)||l.current?.parentNode?.contains(e.target)||a(!1)}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[r.current,l.current,a]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"typography-indicator",onClick:e=>{n?r.current?.contains(e.target)&&!l.current?.parentNode?.contains(e.target)&&a(!1):a(!0)},ref:r},(0,o.createElement)("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0002 2.62506L9.42878 0L2.14307 7.43766L4.7145 10.0627L12.0002 2.62506ZM4.71226 10.0622L2.14083 7.4371L1.28369 10.9372L4.71226 10.0622ZM5.99854 12.6869H-0.00146484V13.9995H5.99854V12.6869Z",fill:"#C6D4E1"})),n&&(0,o.createElement)(d.Popover,{ref:l},(0,o.createElement)("div",{className:"brandy-typography-modal"},(0,o.createElement)("div",{className:"brandy-typography-group",style:{marginTop:10}},(0,o.createElement)(f,{title:(0,p.__)("Types","brandy")}),(0,o.createElement)("div",{className:"brandy-typography__selector"},(0,o.createElement)("div",{className:"brandy-typography__selection-list"},Z.map((n=>{let a=e[n.key];return"underline"===n.key&&(a="underline"===e.decoration),"line_through"===n.key&&(a="line-through"===e.decoration),(0,o.createElement)("span",{className:"brandy-typography__selection-item "+(a?"item-active":""),onClick:()=>{var o;o=n.key,["underline","line_through"].includes(o)?t("underline"!==o?"line_through"!==o?{...e,decoration:"auto"}:{...e,decoration:"line-through"===e.decoration?"auto":"line-through"}:{...e,decoration:"underline"===e.decoration?"auto":"underline"}):t({...e,[o]:!e[o]})}},n.label)}))),(0,o.createElement)("div",{className:"brandy-typography__selection-list"},(0,o.createElement)(S,{options:Array.from({length:50},((e,t)=>t+11)).map((e=>({label:e+"px",value:e}))),selected:e.font_size,onChange:s("font_size")})),(0,o.createElement)(S,{options:X,selected:e.text_transform,onChange:s("text_transform")}))),(0,o.createElement)("div",{className:"brandy-typography-group brandy-typography__font-weight"},(0,o.createElement)(f,{title:(0,p.__)("Weight","brandy"),style:{display:"block"}}),(0,o.createElement)(S,{options:F,selected:e.font_weight,onChange:s("font_weight")}))))))}const K={avatar:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=n=>o=>{n in e.avatar&&t({avatar:{...e.avatar,[n]:o}})};return(0,o.createElement)(A,{title:(0,o.createElement)(Y,{title:(0,p.__)("Avatar","brandy"),onToggleVisible:()=>{t({avatar:{...e.avatar,visible:!e.avatar.visible}})},visible:e.avatar.visible})},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Size","brandy")}),(0,o.createElement)(h,{value:e.avatar.size,onChange:n("size"),min:"20",max:"200"})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Border radius","brandy"),style:{display:"block",marginBottom:10}}),(0,o.createElement)(V,{value:e.avatar.border_radius,onChange:n("border_radius")})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,o.createElement)(V,{value:e.avatar.margin,onChange:n("margin")})))},name:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=n=>o=>{n in e.name&&t({name:{...e.name,[n]:o}})};return(0,o.createElement)(A,{title:(0,o.createElement)(Y,{title:(0,p.__)("Name","brandy"),onToggleVisible:()=>{t({name:{...e.name,visible:!e.name.visible}})},visible:e.name.visible})},(0,o.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,o.createElement)(f,{title:(0,p.__)("Typography","brandy"),style:{marginBottom:0}}),(0,o.createElement)(W,{value:e.name.typography,onChange:n("typography")})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Color","brandy")}),(0,o.createElement)("div",null,(0,o.createElement)(P,{color:e.name.color,onChange:n("color")}))),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Margin","brandy")}),(0,o.createElement)(V,{value:e.name.margin,onChange:n("margin")})))},subname:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=n=>o=>{n in e.subname&&t({subname:{...e.subname,[n]:o}})};return(0,o.createElement)(A,{title:(0,o.createElement)(Y,{title:(0,p.__)("Subname","brandy"),onToggleVisible:()=>{t({subname:{...e.subname,visible:!e.subname.visible}})},visible:e.subname.visible})},(0,o.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,o.createElement)(f,{title:(0,p.__)("Typography","brandy"),style:{marginBottom:0}}),(0,o.createElement)(W,{value:e.subname.typography,onChange:n("typography")})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Color","brandy")}),(0,o.createElement)("div",null,(0,o.createElement)(P,{color:e.subname.color,onChange:n("color")}))),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Margin","brandy")}),(0,o.createElement)(V,{value:e.subname.margin,onChange:n("margin")})))},content:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=n=>o=>{n in e.content&&t({content:{...e.content,[n]:o}})};return(0,o.createElement)(A,{title:(0,o.createElement)(Y,{title:(0,p.__)("Content","brandy"),onToggleVisible:()=>{t({content:{...e.content,visible:!e.content.visible}})},visible:e.content.visible})},(0,o.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,o.createElement)(f,{title:(0,p.__)("Typography","brandy"),style:{marginBottom:0}}),(0,o.createElement)(W,{value:e.content.typography,onChange:n("typography")})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Color","brandy")}),(0,o.createElement)("div",null,(0,o.createElement)(P,{color:e.content.color,onChange:n("color")}))),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Margin","brandy")}),(0,o.createElement)(V,{value:e.content.margin,onChange:n("margin")})))},rating:function(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=(0,i.useMemo)((()=>{var t;return null!==(t=e.star.size)&&void 0!==t?t:metadata.attributes.star.default.size}),[e.star?.size]),a=(0,i.useMemo)((()=>{var t;return null!==(t=e.star.spacing)&&void 0!==t?t:metadata.attributes.star.default.spacing}),[e.star?.spacing]),r=(0,i.useMemo)((()=>{var t;return null!==(t=e.star.active_color)&&void 0!==t?t:metadata.attributes.star.default.active_color}),[e.star?.active_color]),l=(0,i.useMemo)((()=>{var t;return null!==(t=e.star.default_color)&&void 0!==t?t:metadata.attributes.star.default.default_color}),[e.star?.default_color]);return(0,o.createElement)(A,{title:(0,o.createElement)(Y,{title:(0,p.__)("Rating","brandy"),onToggleVisible:()=>{t({star:{...e.star,visible:!e.star.visible}})},visible:e.star.visible})},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Star size","brandy")}),(0,o.createElement)(h,{value:n,onChange:n=>{t({star:{...e.star,size:n}})},min:"10",max:"70"})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Spacing","brandy")}),(0,o.createElement)(h,{value:a,onChange:n=>{t({star:{...e.star,spacing:n}})},min:"5",max:"100"})),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Star colors","brandy"),style:{marginBottom:10}}),(0,o.createElement)("div",{style:{display:"flex",gap:15}},(0,o.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:5}},(0,o.createElement)(v,{title:(0,p.__)("Normal","brandy")}),(0,o.createElement)(P,{color:l,onChange:n=>{t({star:{...e.star,default_color:n}})}})),(0,o.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:5}},(0,o.createElement)(v,{title:(0,p.__)("Active","brandy")}),(0,o.createElement)(P,{color:r,onChange:n=>{t({star:{...e.star,active_color:n}})}})))),(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Margin","brandy"),style:{display:"block",marginBottom:10}}),(0,o.createElement)(V,{value:e.star.margin,onChange:n=>{t({star:{...e.star,margin:n}})}})))}},U=[{name:"tab1",className:"tab-one",icon:()=>(0,o.createElement)("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6579 0.89917C16.3991 0.89917 17 1.50005 17 2.24128V12.9781C17 13.7193 16.3991 14.3202 15.6579 14.3202H12.5263V16.5571C12.5263 17.2983 11.9254 17.8992 11.1842 17.8992H1.34211C0.600881 17.8992 0 17.2983 0 16.5571V6.71496C0 5.97373 0.600881 5.37285 1.34211 5.37285H3.57895V2.24128C3.57895 1.50005 4.17983 0.89917 4.92105 0.89917H15.6579ZM9.8421 12.5307H15.2105V7.16233L9.8421 12.5307ZM1.78947 16.1097H10.7368V14.2965L4.92549 14.3158C4.18254 14.3182 3.57895 13.7166 3.57895 12.9737V7.16233H1.78947V16.1097ZM10.7368 2.68864H5.36842V8.05706L10.7368 2.68864Z",fill:"#000729"})),component:function(){return(0,o.createElement)("div",{className:"testimonial-settings__general"},(0,o.createElement)(x,null),(0,o.createElement)(C,null),(0,o.createElement)(I,null),(0,o.createElement)(y,null),(0,o.createElement)(D,null),(0,o.createElement)(N,null))}},{name:"tab2",className:"tab-two",icon:()=>(0,o.createElement)("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M19.125 7.19917L13.525 1.59917C12.825 0.89917 11.725 0.89917 11.025 1.59917L5.425 7.19917C4.725 7.89917 4.725 8.99917 5.425 9.69917L11.025 15.2992C11.325 15.5992 11.825 15.7992 12.225 15.7992C12.625 15.7992 13.125 15.5992 13.425 15.2992L19.025 9.69917C19.825 8.99917 19.825 7.79917 19.125 7.19917ZM1.525 8.19917L7.825 1.89917L6.825 0.89917L0.525 7.19917C-0.175 7.89917 -0.175 8.99917 0.525 9.69917L6.825 15.8992L7.925 14.7992L1.625 8.49917C1.425 8.49917 1.425 8.29917 1.525 8.19917Z",fill:"#000729"})),component:function(){var e;const{attributes:t,setAttributes:n}=(0,i.useContext)(q),a=null!==(e=t.layout)&&void 0!==e?e:["avatar","name","subname","content","rating"];return(0,o.createElement)("div",{className:"testimonial-settings__styles"},(0,o.createElement)(T,{title:(0,p.__)("Item block","brandy")},(0,o.createElement)(O.ReactSortable,{list:a,setList:e=>{n({layout:e.map((e=>e.toString()))})},animation:150,easing:"ease-in-out",className:"testimonials-layout-list",handle:".item-block-drag-handler"},a.map((e=>{const t=K[e];return t?(0,o.createElement)(t,null):null})))),(0,o.createElement)(T,{title:(0,p.__)("Arrow & dot","brandy")},(0,o.createElement)(B,null),(0,o.createElement)(L,null)))}}];function G(){const{attributes:e}=(0,i.useContext)(q),t=(0,u.useSelect)((e=>{const t=e("core/block-editor").getSelectedBlock(),n=e("core/block-editor").getBlockParents(t?.clientId),o=e("core/block-editor").getBlocksByClientId(n);let a=!1;return"brandy/single-testimonial"===t?.name&&(a=!0),o.forEach((e=>{"brandy/single-testimonial"===e.name&&(a=!0)})),a}));return(0,i.useEffect)((()=>{t?window.brandy?.carousels&&window.brandy.carousels?.stopInterval():window.brandy?.carousels&&(window.brandy.carousels?.openInterval(),window.brandy.carousels.load())}),[t]),(0,i.useEffect)((()=>{const e=new CustomEvent("carouselDestroyed",{});window.dispatchEvent(e);const t=setTimeout((()=>{window.brandy?.carousels?.load&&window.brandy.carousels.load()}),1);return()=>{clearTimeout(t)}}),[e.number_testimonials,e.carousel,e.item_spacing,e.star]),(0,o.createElement)(r.InspectorControls,{key:"setting"},(0,o.createElement)("div",{className:"brandy-editor testimonials-settings"},(0,o.createElement)(m,{items:U})))}const q=(0,i.createContext)({}),Q=(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5549 5.99554L16.0135 12L10.5549 18.0045L9.44495 16.9955L13.9863 12L9.44495 7.00456L10.5549 5.99554Z",fill:"#1E1E1E"})),J=(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4451 18.0045L7.98645 12L13.4451 5.99548L14.555 7.00449L10.0136 12L14.555 16.9955L13.4451 18.0045Z",fill:"#1E1E1E"})),ee=(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5549 5.99554L16.0135 12L10.5549 18.0045L9.44495 16.9955L13.9863 12L9.44495 7.00456L10.5549 5.99554Z",fill:"#1E1E1E"})),te=(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4451 18.0045L7.98645 12L13.4451 5.99548L14.555 7.00449L10.0136 12L14.555 16.9955L13.4451 18.0045Z",fill:"#1E1E1E"}));(0,a.registerBlockType)(g.u2,{edit:function({attributes:e,setAttributes:t,clientId:n}){const a=[["brandy/single-testimonial",{id:Date.now(),name:"William Hallen",subname:"CEO",content:"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled. That produces no resultant pleasure.",rating:5,image:window.brandyBlocks.url.images+"/member-1.png"}],["brandy/single-testimonial",{id:Date.now(),name:"Anthony Nguyen",subname:"Customer feedback at Google Reviews",content:"Making a type specimen book, also the leap into electronic typesetting, remain essentially unchanged or avoids pleasure itself the master builder of amet lorem ipsum human happiness.",rating:5,image:window.brandyBlocks.url.images+"/member-2.png"}],["brandy/single-testimonial",{id:Date.now(),name:"William Hallen",subname:"CEO",content:"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled. That produces no resultant pleasure.",rating:5,image:window.brandyBlocks.url.images+"/member-3.png"}]],u=(0,r.useBlockProps)(),d=(0,i.useMemo)((()=>{var t,n,o,a,r,i,l,s,c,u,d,m,p;return{number_testimonials:null!==(t=e.number_testimonials)&&void 0!==t?t:g.Y4.XQ.ZP,shadow:null!==(n=e.shadow)&&void 0!==n?n:g.Y4.AF.Z,content_alignment:null!==(o=e.content_alignment)&&void 0!==o?o:g.Y4.bi,avatar:null!==(a=e.avatar)&&void 0!==a?a:g.Y4.ri,name:null!==(r=e.name)&&void 0!==r?r:g.Y4.u2,subname:null!==(i=e.subname)&&void 0!==i?i:g.Y4.fM,content:null!==(l=e.content)&&void 0!==l?l:g.Y4.kQ.Z,carousel:null!==(s=e.carousel)&&void 0!==s?s:g.Y4.pR,item_spacing:null!==(c=e.item_spacing)&&void 0!==c?c:g.Y4.Wy.Z,star:null!==(u=e.star)&&void 0!==u?u:g.Y4.h_,dots:null!==(d=e.dots)&&void 0!==d?d:g.Y4.Ez,arrow:null!==(m=e.arrow)&&void 0!==m?m:g.Y4.x7,layout:null!==(p=e.layout)&&void 0!==p?p:g.Y4.bK.Z}}),[e]),[m,p]=(0,i.useState)(a),h=(0,i.useMemo)((()=>({attributes:d,setAttributes:t,clientId:n,setTemplate:p,template:m})),[d,t,n,p,m]),f={"--avatar-visible":d.avatar.visible?"block":"none","--name-visible":d.name.visible?"block":"none","--subname-visible":d.subname.visible?"block":"none","--content-visible":d.content.visible?"block":"none","--rating-visible":d.star.visible?"flex":"none"};return(0,o.createElement)("div",{...u,className:u.className+" block-upgraded"},(0,o.createElement)(q.Provider,{value:h},(0,o.createElement)(G,null),(0,o.createElement)("div",{className:"brandy-testimonials-wrapper","number-testimonials":d.number_testimonials,"auto-play":d.carousel.autoplay.toString(),"infinite-loop":d.carousel.infinite_loop.toString(),"item-spacing":d.item_spacing,layout:d.layout,"content-alignment":d.content_alignment,style:{"--carousel-transition-speed":d.carousel.transition_speed+"ms","--card-shadow":s(d.shadow),"--testimonial-star-size":d.star.size+"px","--testimonial-star-default-color":d.star.default_color,"--testimonial-star-active-color":d.star.active_color,"--testimonial-star-spacing":d.star.spacing+"px","--testimonial-star-margin":c(d.star.margin),"--carousel-item-spacing":d.item_spacing+"px","--carousel-dot-size":d.dots.size+"px","--carousel-dot-spacing":d.dots.spacing+"px","--carousel-dot-default-color":d.dots.default_color,"--carousel-dot-active-color":d.dots.active_color,"--carousel-arrow-size":d.arrow.size+"px","--carousel-arrow-icon-color":d.arrow.icon_color,"--carousel-arrow-background-color":d.arrow.background_color,"--avatar-border-radius":`${d.avatar.border_radius.top}px ${d.avatar.border_radius.right}px ${d.avatar.border_radius.bottom}px ${d.avatar.border_radius.left}px`,"--avatar-size":d.avatar.size+"px","--avatar-fitting":d.avatar.fitting,"--avatar-margin":c(d.avatar.margin),"--name-margin":c(d.name.margin),"--name-color":d.name.color,...l("name",d.name.typography),"--subname-margin":c(d.subname.margin),"--subname-color":d.subname.color,...l("subname",d.subname.typography),"--content-margin":c(d.content.margin),"--content-color":d.content.color,...l("content",d.content.typography),...f}},(0,o.createElement)("div",{className:"brandy-testimonials-carousel"},(0,o.createElement)("span",{class:"forward-arrow carousel-arrow","data-slide":"forward"},Q),(0,o.createElement)("div",{className:"brandy-testimonials__list"},(0,o.createElement)(r.InnerBlocks,{template:m,allowedBlocks:["brandy/single-testimonial"],templateLock:"all"})),(0,o.createElement)("span",{class:"backward-arrow carousel-arrow","data-slide":"backward"},J)))))},save:function({attributes:e}){const t=r.useBlockProps.save(),n={"--avatar-visible":e.avatar.visible?"block":"none","--name-visible":e.name.visible?"block":"none","--subname-visible":e.subname.visible?"block":"none","--content-visible":e.content.visible?"block":"none","--rating-visible":e.star.visible?"flex":"none"};return(0,o.createElement)("div",{...t},(0,o.createElement)("div",{className:"brandy-testimonials-wrapper","number-testimonials":e.number_testimonials,"auto-play":e.carousel.autoplay.toString(),"infinite-loop":e.carousel.infinite_loop.toString(),"item-spacing":e.item_spacing,layout:e.layout,"content-alignment":e.content_alignment,style:{"--carousel-transition-speed":e.carousel.transition_speed+"ms","--card-shadow":s(e.shadow),"--testimonial-star-size":e.star.size+"px","--testimonial-star-default-color":e.star.default_color,"--testimonial-star-active-color":e.star.active_color,"--testimonial-star-spacing":e.star.spacing+"px","--testimonial-star-margin":c(e.star.margin),"--carousel-item-spacing":e.item_spacing+"px","--carousel-dot-size":e.dots.size+"px","--carousel-dot-spacing":e.dots.spacing+"px","--carousel-dot-default-color":e.dots.default_color,"--carousel-dot-active-color":e.dots.active_color,"--carousel-arrow-size":e.arrow.size+"px","--carousel-arrow-icon-color":e.arrow.icon_color,"--carousel-arrow-background-color":e.arrow.background_color,"--avatar-border-radius":`${e.avatar.border_radius.top}px ${e.avatar.border_radius.right}px ${e.avatar.border_radius.bottom}px ${e.avatar.border_radius.left}px`,"--avatar-size":e.avatar.size+"px","--avatar-fitting":e.avatar.fitting,"--avatar-margin":c(e.avatar.margin),"--name-margin":c(e.name.margin),"--name-color":e.name.color,...l("name",e.name.typography),"--subname-margin":c(e.subname.margin),"--subname-color":e.subname.color,...l("subname",e.subname.typography),"--content-margin":c(e.content.margin),"--content-color":e.content.color,...l("content",e.content.typography),...n}},(0,o.createElement)("div",{className:"brandy-testimonials-carousel"},(0,o.createElement)("span",{class:"forward-arrow carousel-arrow","data-slide":"forward"},ee),(0,o.createElement)("div",{className:"brandy-testimonials__list"},(0,o.createElement)(r.InnerBlocks.Content,null)),(0,o.createElement)("span",{class:"backward-arrow carousel-arrow","data-slide":"backward"},te))))},icon:(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M20.9116 7.53174C20.881 7.14732 20.8547 6.92766 20.8547 6.92766C20.8547 4.20509 18.5699 2 15.7537 2H8.10103C5.51225 2 3.3717 3.86292 3.04373 6.27923C3.01531 6.49256 3 6.70799 3 6.92977V12.3496V12.7762C3 13.5936 3.20553 14.3646 3.57067 15.0426C4.41902 16.6246 6.13102 17.7039 8.10103 17.7039H15.2661C15.3624 18.8821 15.002 20.2775 14.7213 21.1509C14.6011 21.5248 14.9203 21.9087 15.296 21.7941C17.4053 21.1504 18.7547 19.5878 19.6063 17.7039C20.4371 15.8684 20.7957 13.7309 20.9313 11.8448C21.0624 9.97972 20.9772 8.36604 20.9116 7.53174Z",fill:"white",stroke:"#00A3FE","stroke-width":"1.5","stroke-miterlimit":"10"}),(0,o.createElement)("path",{d:"M11.9978 13.6C10.0271 13.6 8.24694 12.5895 7.56758 11.0862C7.39245 10.6994 7.56951 10.2482 7.96211 10.0757C8.35279 9.90317 8.81276 10.0776 8.98789 10.4643C9.42091 11.4255 10.6314 12.0701 11.9978 12.0701C13.37 12.0701 14.5806 11.4217 15.0117 10.4568C15.1849 10.07 15.6429 9.89559 16.0355 10.0643C16.4281 10.2349 16.6071 10.6861 16.4339 11.0729C15.7584 12.5838 13.9763 13.6 11.9978 13.6Z",fill:"#00A3FE"}))})},184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},941:(e,t,n)=>{var o=n(474),a=n(184),r=n(196),i=n(177);function l(e){return e&&e.__esModule?e.default:e}function s(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function d(e){e.forEach((e=>{!function(e,t,n){const o=e.children[n]||null;e.insertBefore(t,o)}(e.parentElement,e.element,e.oldIndex)}))}function m(e,t){const n=g(e),o={parentElement:e.from};let a=[];switch(n){case"normal":a=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":a=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...o},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...o}];break;case"multidrag":a=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...o})))}const r=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(a,t);return r}function p(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function h(e,t,n,o){const a=[...t];return e.forEach((e=>{const t=o&&n&&o(e.item,n);a.splice(e.newIndex,0,t||e.item)})),a}function g(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}s(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),s(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),s(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),s(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),s(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),s(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),s(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),s(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),s(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),s(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),s(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),s(e.exports,"ReactSortable",(()=>v));const f={dragging:null};class v extends r.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,r.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,f),l(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();l(o).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:o}=this.props,a={style:t,className:n,id:o},i=e&&null!==e?e:"div";return(0,r.createElement)(i,{ref:this.ref,...a},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:o="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:s="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:d="sortable-filter",list:m}=this.props;if(!e||null==e)return null;const p=t||"data-id";return r.Children.map(e,((e,t)=>{if(void 0===e)return;const i=m[t]||{},{className:s}=e.props,c="string"==typeof d&&{[d.replace(".","")]:!!i.filtered},u=l(a)(s,{[n]:i.selected,[o]:i.chosen,...c});return(0,r.cloneElement)(e,{[p]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:o,tag:a,style:r,className:i,clone:l,onAdd:s,onChange:c,onChoose:u,onClone:d,onEnd:m,onFilter:p,onRemove:h,onSort:g,onStart:f,onUnchoose:v,onUpdate:b,onMove:y,onSpill:E,onSelect:w,onDeselect:_,...C}=e;return C}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,o=e.willInsertAfter||-1;if(!n)return o;const a=n(e,t,this.sortable,f);return void 0!==a&&a}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,f)}onAdd(e){const{list:t,setList:n,clone:o}=this.props,a=m(e,[...f.dragging.props.list]);u(a),n(h(a,t,e,o).map((e=>Object.assign(e,{selected:!1}))),this.sortable,f)}onRemove(e){const{list:t,setList:n}=this.props,o=g(e),a=m(e,t);d(a);let r=[...t];if("clone"!==e.pullMode)r=p(a,r);else{let t=a;switch(o){case"multidrag":t=a.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=a.map((t=>({...t,element:e.clone})));break;default:l(i)(!0,`mode "${o}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${o}" plugin`)}u(t),a.forEach((t=>{const n=t.oldIndex,o=this.props.clone(t.item,e);r.splice(n,1,o)}))}r=r.map((e=>Object.assign(e,{selected:!1}))),n(r,this.sortable,f)}onUpdate(e){const{list:t,setList:n}=this.props,o=m(e,t);return u(o),d(o),n(function(e,t){return h(e,p(e,t))}(o,t),this.sortable,f)}onStart(){f.dragging=this}onEnd(){f.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(t,{chosen:!0})),o})),this.sortable,f)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(o,{chosen:!1})),o})),this.sortable,f)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);o[n].selected=!0})),n(o,this.sortable,f)}onDeselect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(o[t].selected=!0)})),n(o,this.sortable,f)}}var b,y;b=e.exports,y={},Object.keys(y).forEach((function(e){"default"===e||"__esModule"===e||b.hasOwnProperty(e)||Object.defineProperty(b,e,{enumerable:!0,get:function(){return y[e]}})}))},474:(e,t,n)=>{"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(this,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>Et,Sortable:()=>$e,Swap:()=>ct,default:()=>Ct});var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),m=c(/firefox/i),p=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),f={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&f)}function b(e,t,n){e.removeEventListener(t,n,!u&&f)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function E(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||o&&e===n)return e;if(e===n)break}while(e=E(e))}return null}var _,C=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(C," ")}}function D(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var o=D(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function k(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,r=o.length;if(n)for(;a<r;a++)n(o[a],a);return o}return[]}function M(){return document.scrollingElement||document.documentElement}function N(e,t,n,o,a){if(e.getBoundingClientRect||e===window){var r,i,l,s,c,d,m;if(e!==window&&e.parentNode&&e!==M()?(i=(r=e.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,d=r.height,m=r.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,m=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!u))do{if(a&&a.getBoundingClientRect&&("none"!==D(a,"transform")||n&&"static"!==D(a,"position"))){var p=a.getBoundingClientRect();i-=p.top+parseInt(D(a,"border-top-width")),l-=p.left+parseInt(D(a,"border-left-width")),s=i+r.height,c=l+r.width;break}}while(a=a.parentNode);if(o&&e!==window){var h=S(a||e),g=h&&h.a,f=h&&h.d;h&&(s=(i/=f)+(d/=f),c=(l/=g)+(m/=g))}return{top:i,left:l,bottom:s,right:c,width:m,height:d}}}function O(e){var t=N(e),n=parseInt(D(e,"padding-left")),o=parseInt(D(e,"padding-top")),a=parseInt(D(e,"padding-right")),r=parseInt(D(e,"padding-bottom"));return t.top+=o+parseInt(D(e,"border-top-width")),t.left+=n+parseInt(D(e,"border-left-width")),t.width=e.clientWidth-n-a,t.height=e.clientHeight-o-r,t.bottom=t.top+t.height,t.right=t.left+t.width,t}function I(e,t,n){for(var o=B(e,!0),a=N(e)[t];o;){var r=N(o)[n];if(!("top"===n||"left"===n?a>=r:a<=r))return o;if(o===M())break;o=B(o,!1)}return!1}function T(e,t,n,o){for(var a=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==$e.ghost&&(o||i[r]!==$e.dragged)&&w(i[r],n.draggable,e,!1)){if(a===t)return i[r];a++}r++}return null}function A(e,t){for(var n=e.lastElementChild;n&&(n===$e.ghost||"none"===D(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function P(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===$e.clone||t&&!y(e,t)||n++;return n}function L(e){var t=0,n=0,o=M();if(e)do{var a=S(e),r=a.a,i=a.d;t+=e.scrollLeft*r,n+=e.scrollTop*i}while(e!==o&&(e=e.parentNode));return[t,n]}function B(e,t){if(!e||!e.getBoundingClientRect)return M();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(o||t)return n;o=!0}}}while(n=n.parentNode);return M()}function H(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function R(e,t){return function(){if(!_){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),_=setTimeout((function(){_=void 0}),t)}}}function z(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Y(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function $(e,t){D(e,"position","absolute"),D(e,"top",t.top),D(e,"left",t.left),D(e,"width",t.width),D(e,"height",t.height)}function j(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(e,"height","")}var V="Sortable"+(new Date).getTime();var Z=[],X={initializeByDefault:!0},F={mount:function(e){for(var t in X)X.hasOwnProperty(t)&&!(t in e)&&(e[t]=X[t]);Z.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Z.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";Z.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](a({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var a in Z.forEach((function(o){var a=o.pluginName;if(e.options[a]||o.initializeByDefault){var r=new o(e,t,e.options);r.sortable=e,r.options=e.options,e[a]=r,l(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var r=this.modifyOption(e,a,e.options[a]);void 0!==r&&(e.options[a]=r)}},getEventProperties:function(e,t){var n={};return Z.forEach((function(o){"function"==typeof o.eventProperties&&l(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return Z.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(o=a.optionListeners[t].call(e[a.pluginName],n))})),o}};function W(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,l=e.toEl,s=e.fromEl,c=e.oldIndex,m=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,g=e.originalEvent,f=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[V]){var b,y=t.options,E="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=r||n,b.clone=i,b.oldIndex=c,b.newIndex=m,b.oldDraggableIndex=p,b.newDraggableIndex=h,b.originalEvent=g,b.pullMode=f?f.lastPutMode:void 0;var w=a(a({},v),F.getEventProperties(o,t));for(var _ in w)b[_]=w[_];n&&n.dispatchEvent(b),y[E]&&y[E].call(t,b)}}var K=["evt"],U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(n,K);F.pluginEvent.bind($e)(e,t,a({dragEl:q,parentEl:Q,ghostEl:J,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:oe,cloneHidden:ae,dragStarted:ve,putSortable:ue,activeSortable:$e.active,originalEvent:o,oldIndex:re,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:se,hideGhostForTarget:He,unhideGhostForTarget:Re,cloneNowHidden:function(){ae=!0},cloneNowShown:function(){ae=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:o})}},r))};function G(e){W(a({putSortable:ue,cloneEl:oe,targetEl:q,rootEl:ee,oldIndex:re,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:se},e))}var q,Q,J,ee,te,ne,oe,ae,re,ie,le,se,ce,ue,de,me,pe,he,ge,fe,ve,be,ye,Ee,we,_e=!1,Ce=!1,xe=[],De=!1,Se=!1,ke=[],Me=!1,Ne=[],Oe="undefined"!=typeof document,Ie=h,Te=d||u?"cssFloat":"float",Ae=Oe&&!g&&!h&&"draggable"in document.createElement("div"),Pe=function(){if(Oe){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=D(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=T(e,0,t),r=T(e,1,t),i=a&&D(a),l=r&&D(r),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+N(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+N(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return a&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=o&&"none"===n[Te]||r&&"none"===n[Te]&&s+c>o)?"vertical":"horizontal"},Be=function(e){function t(e,n){return function(o,a,r,i){var l=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,a,r,i),n)(o,a,r,i);var s=(n?o:a).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},He=function(){!Pe&&J&&D(J,"display","none")},Re=function(){!Pe&&J&&D(J,"display","")};Oe&&!g&&document.addEventListener("click",(function(e){if(Ce)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ce=!1,!1}),!0);var ze=function(e){if(q){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,r=e.clientY,xe.some((function(e){var t=e[V].options.emptyInsertThreshold;if(t&&!A(e)){var n=N(e),o=a>=n.left-t&&a<=n.right+t,l=r>=n.top-t&&r<=n.bottom+t;return o&&l?i=e:void 0}})),i);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[V]._onDragOver(n)}}var a,r,i},Ye=function(e){q&&q.parentNode[V]._isOutsideThisEl(e.target)};function $e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[V]=this;var n,o,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==$e.supportPointer&&"PointerEvent"in window&&!p,emptyInsertThreshold:5};for(var i in F.initializePlugins(this,e,r),r)!(i in t)&&(t[i]=r[i]);for(var s in Be(t),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&Ae,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==D(e,"display")&&e!==$e.ghost){o.push({target:e,rect:N(e)});var t=a({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=S(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var a=!1,r=0;o.forEach((function(e){var n=0,o=e.target,i=o.fromRect,l=N(o),s=o.prevFromRect,c=o.prevToRect,u=e.rect,d=S(o,!0);d&&(l.top-=d.f,l.left-=d.e),o.toRect=l,o.thisAnimationDuration&&H(s,l)&&!H(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(n=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,s,c,t.options)),H(l,i)||(o.prevFromRect=i,o.prevToRect=l,n||(n=t.options.animation),t.animate(o,u,l,n)),n&&(a=!0,r=Math.max(r,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),a?n=setTimeout((function(){"function"==typeof e&&e()}),r):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,o){if(o){D(e,"transition",""),D(e,"transform","");var a=S(this.el),r=a&&a.a,i=a&&a.d,l=(t.left-n.left)/(r||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,D(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),D(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}))}function je(e,t,n,o,a,r,i,l){var s,c,m=e[V],p=m.options.onMove;return!window.CustomEvent||u||d?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=a||t,s.relatedRect=r||N(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),p&&(c=p.call(m,s,i)),c}function Ve(e){e.draggable=!1}function Ze(){Me=!1}function Xe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Fe(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}$e.prototype={constructor:$e,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(be=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,a=o.preventOnFilter,r=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(function(e){Ne.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Ne.push(o)}}(n),!q&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!p||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=w(l,o.draggable,n,!1))&&l.animated||ne===l)){if(re=P(l),le=P(l,o.draggable),"function"==typeof c){if(c.call(this,e,l,this))return G({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),U("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=w(s,o.trim(),n,!1))return G({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),U("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());o.handle&&!w(s,o.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var o,a=this,r=a.el,i=a.options,l=r.ownerDocument;if(n&&!q&&n.parentNode===r){var s=N(n);if(ee=r,Q=(q=n).parentNode,te=q.nextSibling,ne=n,ce=i.group,$e.dragged=q,de={target:q,clientX:(t||e).clientX,clientY:(t||e).clientY},ge=de.clientX-s.left,fe=de.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,q.style["will-change"]="all",o=function(){U("delayEnded",a,{evt:e}),$e.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!m&&a.nativeDraggable&&(q.draggable=!0),a._triggerDragStart(e,t),G({sortable:a,name:"choose",originalEvent:e}),x(q,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){k(q,e.trim(),Ve)})),v(l,"dragover",ze),v(l,"mousemove",ze),v(l,"touchmove",ze),v(l,"mouseup",a._onDrop),v(l,"touchend",a._onDrop),v(l,"touchcancel",a._onDrop),m&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),U("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))o();else{if($e.eventCanceled)return void this._onDrop();v(l,"mouseup",a._disableDelayedDrag),v(l,"touchend",a._disableDelayedDrag),v(l,"touchcancel",a._disableDelayedDrag),v(l,"mousemove",a._delayedDragTouchMoveHandler),v(l,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&v(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&Ve(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(q,"dragend",this),v(ee,"dragstart",this._onDragStart));try{document.selection?Fe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(_e=!1,ee&&q){U("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",Ye);var n=this.options;!e&&x(q,n.dragClass,!1),x(q,n.ghostClass,!0),$e.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(me){this._lastX=me.clientX,this._lastY=me.clientY,He();for(var e=document.elementFromPoint(me.clientX,me.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(me.clientX,me.clientY))!==t;)t=e;if(q.parentNode[V]._isOutsideThisEl(e),t)do{if(t[V]&&t[V]._onDragOver({clientX:me.clientX,clientY:me.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Re()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=J&&S(J,!0),i=J&&r&&r.a,l=J&&r&&r.d,s=Ie&&we&&L(we),c=(a.clientX-de.clientX+o.x)/(i||1)+(s?s[0]-ke[0]:0)/(i||1),u=(a.clientY-de.clientY+o.y)/(l||1)+(s?s[1]-ke[1]:0)/(l||1);if(!$e.active&&!_e){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(J){r?(r.e+=c-(pe||0),r.f+=u-(he||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(J,"webkitTransform",d),D(J,"mozTransform",d),D(J,"msTransform",d),D(J,"transform",d),pe=c,he=u,me=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){var e=this.options.fallbackOnBody?document.body:ee,t=N(q,!0,Ie,!0,e),n=this.options;if(Ie){for(we=e;"static"===D(we,"position")&&"none"===D(we,"transform")&&we!==document;)we=we.parentNode;we!==document.body&&we!==document.documentElement?(we===document&&(we=M()),t.top+=we.scrollTop,t.left+=we.scrollLeft):we=M(),ke=L(we)}x(J=q.cloneNode(!0),n.ghostClass,!1),x(J,n.fallbackClass,!0),x(J,n.dragClass,!0),D(J,"transition",""),D(J,"transform",""),D(J,"box-sizing","border-box"),D(J,"margin",0),D(J,"top",t.top),D(J,"left",t.left),D(J,"width",t.width),D(J,"height",t.height),D(J,"opacity","0.8"),D(J,"position",Ie?"absolute":"fixed"),D(J,"zIndex","100000"),D(J,"pointerEvents","none"),$e.ghost=J,e.appendChild(J),D(J,"transform-origin",ge/parseInt(J.style.width)*100+"% "+fe/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,a=n.options;U("dragStart",this,{evt:e}),$e.eventCanceled?this._onDrop():(U("setupClone",this),$e.eventCanceled||((oe=Y(q)).removeAttribute("id"),oe.draggable=!1,oe.style["will-change"]="",this._hideClone(),x(oe,this.options.chosenClass,!1),$e.clone=oe),n.cloneId=Fe((function(){U("clone",n),$e.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(oe,q),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&x(q,a.dragClass,!0),t?(Ce=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(n,o,q)),v(document,"drop",n),D(q,"transform","translateZ(0)")),_e=!0,n._dragStartId=Fe(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),ve=!0,p&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,l=e.target,s=this.options,c=s.group,u=$e.active,d=ce===c,m=s.sort,p=ue||u,h=this,g=!1;if(!Me){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=w(l,s.draggable,i,!0),Y("dragOver"),$e.eventCanceled)return g;if(q.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||h._ignoreWhileAnimating===l)return j(!1);if(Ce=!1,u&&!s.disabled&&(d?m||(o=Q!==ee):ue===this||(this.lastPutMode=ce.checkPull(this,u,q,e))&&c.checkPut(this,u,q,e))){if(r="vertical"===this._getDirection(e,l),t=N(q),Y("dragOverValid"),$e.eventCanceled)return g;if(o)return Q=ee,$(),this._hideClone(),Y("revert"),$e.eventCanceled||(te?ee.insertBefore(q,te):ee.appendChild(q)),j(!0);var f=A(i,s.draggable);if(!f||function(e,t,n){var o=N(A(n.el,n.options.draggable)),a=O(n.el);return t?e.clientX>a.right+10||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>a.bottom+10||e.clientX>o.right&&e.clientY>o.top}(e,r,this)&&!f.animated){if(f===q)return j(!1);if(f&&i===e.target&&(l=f),l&&(n=N(l)),!1!==je(ee,i,q,t,l,n,e,!!l))return $(),f&&f.nextSibling?i.insertBefore(q,f.nextSibling):i.appendChild(q),Q=i,Z(),j(!0)}else if(f&&function(e,t,n){var o=N(T(n.el,0,n.options,!0)),a=O(n.el);return t?e.clientX<a.left-10||e.clientY<o.top&&e.clientX<o.right:e.clientY<a.top-10||e.clientY<o.bottom&&e.clientX<o.left}(e,r,this)){var v=T(i,0,s,!0);if(v===q)return j(!1);if(n=N(l=v),!1!==je(ee,i,q,t,l,n,e,!1))return $(),i.insertBefore(q,v),Q=i,Z(),j(!0)}else if(l.parentNode===i){n=N(l);var b,y,E,_=q.parentNode!==i,C=!function(e,t,n){var o=n?e.left:e.top,a=n?e.right:e.bottom,r=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===i||a===l||o+r/2===i+s/2}(q.animated&&q.toRect||t,l.animated&&l.toRect||n,r),S=r?"top":"left",k=I(l,"top","top")||I(q,"top","top"),M=k?k.scrollTop:void 0;if(be!==l&&(y=n[S],De=!1,Se=!C&&s.invertSwap||_),b=function(e,t,n,o,a,r,i,l){var s=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,m=!1;if(!i)if(l&&Ee<c*a){if(!De&&(1===ye?s>u+c*r/2:s<d-c*r/2)&&(De=!0),De)m=!0;else if(1===ye?s<u+Ee:s>d-Ee)return-ye}else if(s>u+c*(1-a)/2&&s<d-c*(1-a)/2)return function(e){return P(q)<P(e)?1:-1}(t);return(m=m||i)&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}(e,l,n,r,C?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Se,be===l),0!==b){var L=P(q);do{L-=b,E=Q.children[L]}while(E&&("none"===D(E,"display")||E===J))}if(0===b||E===l)return j(!1);be=l,ye=b;var B=l.nextElementSibling,H=!1,R=je(ee,i,q,t,l,n,e,H=1===b);if(!1!==R)return 1!==R&&-1!==R||(H=1===R),Me=!0,setTimeout(Ze,30),$(),H&&!B?i.appendChild(q):l.parentNode.insertBefore(q,H?B:l),k&&z(k,0,M-k.scrollTop),Q=q.parentNode,void 0===y||Se||(Ee=Math.abs(y-N(l)[S])),Z(),j(!0)}if(i.contains(q))return j(!1)}return!1}function Y(s,c){U(s,h,a({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:m,fromSortable:p,target:l,completed:j,onMove:function(n,o){return je(ee,i,q,t,n,N(n),e,o)},changed:Z},c))}function $(){Y("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function j(t){return Y("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(x(q,ue?ue.options.ghostClass:u.options.ghostClass,!1),x(q,s.ghostClass,!0)),ue!==h&&h!==$e.active?ue=h:h===$e.active&&ue&&(ue=null),p===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){Y("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===q&&!q.animated||l===i&&!l.animated)&&(be=null),s.dragoverBubble||e.rootEl||l===document||(q.parentNode[V]._isOutsideThisEl(e.target),!t&&ze(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function Z(){ie=P(q),se=P(q,s.draggable),G({sortable:h,name:"change",toEl:i,newIndex:ie,newDraggableIndex:se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",ze),b(document,"mousemove",ze),b(document,"touchmove",ze)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=P(q),se=P(q,n.draggable),U("drop",this,{evt:e}),Q=q&&q.parentNode,ie=P(q),se=P(q,n.draggable),$e.eventCanceled||(_e=!1,Se=!1,De=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&D(document.body,"user-select",""),D(q,"transform",""),e&&(ve&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(ee===Q||ue&&"clone"!==ue.lastPutMode)&&oe&&oe.parentNode&&oe.parentNode.removeChild(oe),q&&(this.nativeDraggable&&b(q,"dragend",this),Ve(q),q.style["will-change"]="",ve&&!_e&&x(q,ue?ue.options.ghostClass:this.options.ghostClass,!1),x(q,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==Q?(ie>=0&&(G({rootEl:Q,name:"add",toEl:Q,fromEl:ee,originalEvent:e}),G({sortable:this,name:"remove",toEl:Q,originalEvent:e}),G({rootEl:Q,name:"sort",toEl:Q,fromEl:ee,originalEvent:e}),G({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ue&&ue.save()):ie!==re&&ie>=0&&(G({sortable:this,name:"update",toEl:Q,originalEvent:e}),G({sortable:this,name:"sort",toEl:Q,originalEvent:e})),$e.active&&(null!=ie&&-1!==ie||(ie=re,se=le),G({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){U("nulling",this),ee=q=Q=J=te=oe=ne=ae=de=me=ve=ie=se=re=le=be=ye=ue=ce=$e.dragged=$e.ghost=$e.clone=$e.active=null,Ne.forEach((function(e){e.checked=!0})),Ne.length=pe=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,a=n.length,r=this.options;o<a;o++)w(e=n[o],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Xe(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var a=o.children[t];w(a,this.options.draggable,o,!1)&&(n[e]=a)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=F.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Be(n)},destroy:function(){U("destroy",this);var e=this.el;e[V]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xe.splice(xe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ae){if(U("hideClone",this),$e.eventCanceled)return;D(oe,"display","none"),this.options.removeCloneOnHide&&oe.parentNode&&oe.parentNode.removeChild(oe),ae=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ae){if(U("showClone",this),$e.eventCanceled)return;q.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(oe,te):ee.appendChild(oe):ee.insertBefore(oe,q),this.options.group.revertClone&&this.animate(q,oe),D(oe,"display",""),ae=!1}}else this._hideClone()}},Oe&&v(document,"touchmove",(function(e){($e.active||_e)&&e.cancelable&&e.preventDefault()})),$e.utils={on:v,off:b,css:D,find:k,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:R,closest:w,toggleClass:x,clone:Y,index:P,nextTick:Fe,cancelNextTick:We,detectDirection:Le,getChild:T},$e.get=function(e){return e[V]},$e.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&($e.utils=a(a({},$e.utils),e.utils)),F.mount(e)}))},$e.create=function(e,t){return new $e(e,t)},$e.version="1.15.1";var Ke,Ue,Ge,qe,Qe,Je,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function ot(){clearInterval(Je)}var at,rt=R((function(e,t,n,o){if(t.scroll){var a,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=M(),u=!1;Ue!==n&&(Ue=n,nt(),Ke=t.scroll,a=t.scrollFn,!0===Ke&&(Ke=B(n,!0)));var d=0,m=Ke;do{var p=m,h=N(p),g=h.top,f=h.bottom,v=h.left,b=h.right,y=h.width,E=h.height,w=void 0,_=void 0,C=p.scrollWidth,x=p.scrollHeight,S=D(p),k=p.scrollLeft,O=p.scrollTop;p===c?(w=y<C&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),_=E<x&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=y<C&&("auto"===S.overflowX||"scroll"===S.overflowX),_=E<x&&("auto"===S.overflowY||"scroll"===S.overflowY));var I=w&&(Math.abs(b-r)<=l&&k+y<C)-(Math.abs(v-r)<=l&&!!k),T=_&&(Math.abs(f-i)<=l&&O+E<x)-(Math.abs(g-i)<=l&&!!O);if(!et[d])for(var A=0;A<=d;A++)et[A]||(et[A]={});et[d].vx==I&&et[d].vy==T&&et[d].el===p||(et[d].el=p,et[d].vx=I,et[d].vy=T,clearInterval(et[d].pid),0==I&&0==T||(u=!0,et[d].pid=setInterval(function(){o&&0===this.layer&&$e.active._onTouchMove(Qe);var t=et[this.layer].vy?et[this.layer].vy*s:0,n=et[this.layer].vx?et[this.layer].vx*s:0;"function"==typeof a&&"continue"!==a.call($e.dragged.parentNode[V],n,t,e,Qe,et[this.layer].el)||z(et[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&m!==c&&(m=B(m,!1)));tt=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,a=e.activeSortable,r=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||a;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function lt(){}function st(){}function ct(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;at=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,a=e.activeSortable,r=e.changed,i=e.cancel;if(a.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=at;!1!==o(n)?(x(n,s.swapClass,!0),at=n):at=null,c&&c!==at&&x(c,s.swapClass,!1)}r(),t(!0),i()}},drop:function(e){var t,n,o,a,r,i,l=e.activeSortable,s=e.putSortable,c=e.dragEl,u=s||this.sortable,d=this.options;at&&x(at,d.swapClass,!1),at&&(d.swap||s&&s.options.swap)&&c!==at&&(u.captureAnimationState(),u!==l&&l.captureAnimationState(),n=at,r=(t=c).parentNode,i=n.parentNode,r&&i&&!r.isEqualNode(n)&&!i.isEqualNode(t)&&(o=P(t),a=P(n),r.isEqualNode(i)&&o<a&&a++,r.insertBefore(n,r.children[o]),i.insertBefore(t,i.children[a])),u.animateAll(),u!==l&&l.animateAll())},nulling:function(){at=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:at}}})}lt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=T(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},l(lt,{pluginName:"revertOnSpill"}),st.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},l(st,{pluginName:"removeOnSpill"});var ut,dt,mt,pt,ht,gt=[],ft=[],vt=!1,bt=!1,yt=!1;function Et(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag))),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var o="";gt.length&&dt===e?gt.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;mt=t},delayEnded:function(){this.isMultiDrag=~gt.indexOf(mt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<gt.length;o++)ft.push(Y(gt[o])),ft[o].sortableIndex=gt[o].sortableIndex,ft[o].draggable=!1,ft[o].style["will-change"]="",x(ft[o],this.options.selectedClass,!1),gt[o]===mt&&x(ft[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,a=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||gt.length&&dt===t&&(wt(!0,n),o("clone"),a()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(wt(!1,n),ft.forEach((function(e){D(e,"display","")})),t(),ht=!1,o())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),o=e.cancel;this.isMultiDrag&&(ft.forEach((function(e){D(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ht=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&dt&&dt.multiDrag._deselectMultiDrag(),gt.forEach((function(e){e.sortableIndex=P(e)})),gt=gt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),yt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){gt.forEach((function(e){e!==mt&&D(e,"position","absolute")}));var o=N(mt,!1,!0,!0);gt.forEach((function(e){e!==mt&&$(e,o)})),bt=!0,vt=!0}n.animateAll((function(){bt=!1,vt=!1,t.options.animation&&gt.forEach((function(e){j(e)})),t.options.sort&&_t()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;bt&&~gt.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,a=e.dragRect;gt.length>1&&(gt.forEach((function(e){o.addAnimationState({target:e,rect:bt?N(e):a}),j(e),e.fromRect=a,t.removeAnimationState(e)})),bt=!1,function(e,t){gt.forEach((function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,a=e.activeSortable,r=e.parentEl,i=e.putSortable,l=this.options;if(o){if(n&&a._hideClone(),vt=!1,l.animation&&gt.length>1&&(bt||!n&&!a.options.sort&&!i)){var s=N(mt,!1,!0,!0);gt.forEach((function(e){e!==mt&&($(e,s),r.appendChild(e))})),bt=!0}if(!n)if(bt||_t(),gt.length>1){var c=ht;a._showClone(t),a.options.animation&&!ht&&c&&ft.forEach((function(e){a.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else a._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(gt.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){pt=l({},t);var a=S(mt,!0);pt.top-=a.f,pt.left-=a.e}},dragOverAnimationComplete:function(){bt&&(bt=!1,_t())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,a=e.sortable,r=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=o.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(mt,c.selectedClass,!~gt.indexOf(mt)),~gt.indexOf(mt))gt.splice(gt.indexOf(mt),1),ut=null,W({sortable:a,rootEl:n,name:"deselect",targetEl:mt,originalEvent:t});else{if(gt.push(mt),W({sortable:a,rootEl:n,name:"select",targetEl:mt,originalEvent:t}),t.shiftKey&&ut&&a.el.contains(ut)){var d,m,p=P(ut),h=P(mt);if(~p&&~h&&p!==h)for(h>p?(m=p,d=h):(m=h,d=p+1);m<d;m++)~gt.indexOf(u[m])||(x(u[m],c.selectedClass,!0),gt.push(u[m]),W({sortable:a,rootEl:n,name:"select",targetEl:u[m],originalEvent:t}))}else ut=mt;dt=s}if(yt&&this.isMultiDrag){if(bt=!1,(o[V].options.sort||o!==n)&&gt.length>1){var g=N(mt),f=P(mt,":not(."+this.options.selectedClass+")");if(!vt&&c.animation&&(mt.thisAnimationDuration=null),s.captureAnimationState(),!vt&&(c.animation&&(mt.fromRect=g,gt.forEach((function(e){if(e.thisAnimationDuration=null,e!==mt){var t=bt?N(e):g;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),_t(),gt.forEach((function(e){u[f]?o.insertBefore(e,u[f]):o.appendChild(e),f++})),i===P(mt))){var v=!1;gt.forEach((function(e){e.sortableIndex===P(e)||(v=!0)})),v&&(r("update"),r("sort"))}gt.forEach((function(e){j(e)})),s.animateAll()}dt=s}(n===o||l&&"clone"!==l.lastPutMode)&&ft.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,ft.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||dt!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;gt.length;){var t=gt[0];x(t,this.options.selectedClass,!1),gt.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[V];t&&t.options.multiDrag&&!~gt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),x(e,t.options.selectedClass,!0),gt.push(e))},deselect:function(e){var t=e.parentNode[V],n=gt.indexOf(e);t&&t.options.multiDrag&&~n&&(x(e,t.options.selectedClass,!1),gt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],o=[];return gt.forEach((function(e){var a;n.push({multiDragElement:e,index:e.sortableIndex}),a=bt&&e!==mt?-1:bt?P(e,":not(."+t.options.selectedClass+")"):P(e),o.push({multiDragElement:e,index:a})})),{items:(e=gt,function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(ft),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function wt(e,t){ft.forEach((function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}function _t(){gt.forEach((function(e){e!==mt&&e.parentNode&&e.parentNode.removeChild(e)}))}$e.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ot(),nt(),clearTimeout(_),_=void 0},nulling:function(){Qe=Ue=Ke=tt=Je=Ge=qe=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(o,a);if(Qe=e,t||this.options.forceAutoScrollFallback||d||u||p){rt(e,this.options,r,t);var i=B(r,!0);!tt||Je&&o===Ge&&a===qe||(Je&&ot(),Je=setInterval((function(){var r=B(document.elementFromPoint(o,a),!0);r!==i&&(i=r,nt()),rt(e,n.options,r,t)}),10),Ge=o,qe=a)}else{if(!this.options.bubbleScroll||B(r,!0)===M())return void nt();rt(e,this.options,B(r,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),$e.mount(st,lt);const Ct=$e},177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=!0,a="Invariant failed";function r(e,t){if(!e){if(o)throw new Error(a);var n="function"==typeof t?t():t;throw new Error(n?a+": "+n:a)}}},196:e=>{"use strict";e.exports=window.React}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,n,a,r)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,a,r]=e[u],l=!0,s=0;s<n.length;s++)(!1&r||i>=r)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(l=!1,r<i&&(i=r));if(l){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,a,r]},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={212:0,736:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var a,r,[i,l,s]=n,c=0;if(i.some((t=>0!==e[t]))){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(s)var u=s(o)}for(t&&t(n);c<i.length;c++)r=i[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},n=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=o.O(void 0,[736],(()=>o(87)));a=o.O(a)})();
     1(()=>{var e,t={87:(e,t,n)=>{"use strict";var o=n(196);const a=window.wp.blocks,r=window.wp.blockEditor,i=window.wp.element,l=(e="default",t)=>({[`--${e}-font-size`]:t.font_size+"px",[`--${e}-bold`]:t.bold?"bold":"",[`--${e}-font-styles`]:t.italic?"italic":"normal",[`--${e}-text-transform`]:t.text_transform,[`--${e}-font-weight`]:t.font_weight+""}),s=e=>`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`,c=e=>`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,u=window.wp.data,d=window.wp.components;function m({items:e}){return(0,o.createElement)(d.TabPanel,{className:"brandy-tab-panel",activeClass:"active-tab",tabs:e},(e=>e.component))}const p=window.wp.i18n;function h({value:e,onChange:t,min:n,max:a,label:r=""}){return(0,o.createElement)(d.RangeControl,{label:r,className:"brandy-editor-slider",value:e,onChange:t,min:n,max:a})}const g=JSON.parse('{"u2":"brandy/testimonials","Y4":{"XQ":{"ZP":3},"AF":{"Z":{"type":"regular","x":0,"y":4,"blur":16,"spread":0,"color":"rgba(0, 0, 0, 0.06)"}},"pR":{"type":"object","default":{"autoplay":true,"infinite_loop":true,"transition_speed":500}},"Wy":{"Z":50},"bi":{"type":"string","default":"center"},"ri":{"type":"object","default":{"visible":true,"size":80,"border_radius":{"top":50,"left":50,"right":50,"bottom":50,"constrain":true},"fitting":"cover","margin":{"top":0,"left":0,"right":0,"bottom":7,"constrain":false}}},"u2":{"type":"object","default":{"visible":true,"color":"var(--body_text, #122940)","typography":{"font_size":18,"bold":false,"italic":false,"text_transform":"none","font_weight":500},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"fM":{"type":"object","default":{"visible":true,"color":"var(--secondary_text, #7F8287)","typography":{"font_size":14,"bold":false,"italic":false,"text_transform":"none","font_weight":300},"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"kQ":{"Z":{"visible":true,"color":"var(--palette_3, #122940)","typography":{"font_size":24,"bold":false,"italic":true,"text_transform":"none","font_weight":300},"margin":{"top":30,"left":0,"right":0,"bottom":30,"constrain":false}}},"h_":{"type":"object","default":{"visible":true,"size":16,"active_color":"#f8b84e","default_color":"#bebfc2","spacing":5,"margin":{"top":0,"left":0,"right":0,"bottom":0,"constrain":false}}},"x7":{"type":"object","default":{"size":30,"icon_color":"#808890","background_color":"#EFF2F4"}},"Ez":{"type":"object","default":{"size":12,"active_color":"#122940","default_color":"#D3DCE5","spacing":12}},"bK":{"Z":["avatar","name","subname","content","rating"]}}}');function f({title:e,style:t}){return(0,o.createElement)(d.BaseControl.VisualLabel,{className:"setting__label",style:t},e)}function v({title:e,style:t}){return(0,o.createElement)(d.BaseControl.VisualLabel,{className:"setting__sub-label",style:t},e)}const b={display:"flex",alignItems:"center",justifyContent:"space-between"};function y(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=(0,i.useMemo)((()=>{var t;return null!==(t=e.carousel?.transition_speed)&&void 0!==t?t:g.Y4.pR.default.transition_speed}),[e.carousel?.transition_speed]),a=(0,i.useMemo)((()=>{var t;return null!==(t=e.carousel?.autoplay)&&void 0!==t?t:g.Y4.pR.default.autoplay}),[e.carousel?.autoplay]),r=(0,i.useMemo)((()=>{var t;return null!==(t=e.carousel?.infinite_loop)&&void 0!==t?t:g.Y4.pR.default.infinite_loop}),[e.carousel?.infinite_loop]);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)(f,{title:(0,p.__)("Carousel","brandy"),style:{marginBottom:0}}),(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Transition speed (ms)","brandy")}),(0,o.createElement)(h,{value:n,onChange:n=>{t({carousel:{...e.carousel,transition_speed:n}})},min:"100",max:"2000"})),(0,o.createElement)("div",{style:b},(0,o.createElement)(v,{title:(0,p.__)("Autoplay","brandy")}),(0,o.createElement)(d.ToggleControl,{checked:a,onChange:n=>{t({carousel:{...e.carousel,autoplay:n}})}})),(0,o.createElement)("div",{style:b},(0,o.createElement)(v,{title:(0,p.__)("Infinite loop","brandy")}),(0,o.createElement)(d.ToggleControl,{checked:r,onChange:n=>{t({carousel:{...e.carousel,infinite_loop:n}})}})))}function E({options:e=[],selected:t,onChange:n,className:a=""}){return(0,o.createElement)(d.ButtonGroup,{className:`brandy-editor-btn-group ${a}`},e.map((e=>(0,o.createElement)(d.Button,{onClick:()=>{var t;t=e.value,n(t)},className:t===e.value?"selected":""},e.label))))}const w=[{label:(0,o.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M5.86111 5V11H17.3999V5H5.86111ZM0.616211 16H2.18968V0H0.616211V16Z",fill:"#5A6D80"})),value:"left"},{label:(0,o.createElement)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M16.5 5H9.3V0H7.7V5H0.5V11H7.7V16H9.3V11H16.5V5Z",fill:"#5A6D80"})),value:"center"},{label:(0,o.createElement)("svg",{width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M0.550781 11H12.0896V5H0.550781V11ZM15.761 0V16H17.3345V0H15.761Z",fill:"#5A6D80"})),value:"right"}];function _({onChange:e,selected:t}){return(0,o.createElement)(E,{options:w,onChange:e,selected:t,className:"brandy-btn-group-icons"})}function C(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Content alignment","brandy")}),(0,o.createElement)(_,{selected:e.content_alignment,onChange:e=>{t({content_alignment:e})}})))}function x(){const{attributes:e,setAttributes:t,setTemplate:n}=(0,i.useContext)(q),a=(0,i.useMemo)((()=>{var t;return null!==(t=e.number_testimonials)&&void 0!==t?t:g.Y4.XQ.ZP}),[e.number_testimonials]);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)(h,{label:(0,p.__)("Testimonial count","brandy"),value:a,onChange:e=>{t({number_testimonials:e}),n((t=>(t=Array(e).fill(!0).map((e=>["brandy/single-testimonial",{name:"William Hallen",subname:"CEO",content:"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled. That produces no resultant pleasure.",rating:5,image:window.brandyBlocks.url.images+"/member-3.png"}])),[...t,[]])))},min:"1",max:"15"}))}function D(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q),n=(0,i.useMemo)((()=>{var t;return null!==(t=e.item_spacing)&&void 0!==t?t:g.Y4.Wy.Z}),[e.item_spacing]);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)(f,{title:(0,p.__)("Dimensions","brandy"),style:{marginBottom:0}}),(0,o.createElement)("div",null,(0,o.createElement)(v,{title:(0,p.__)("Item Spacing","brandy")}),(0,o.createElement)(h,{value:n,onChange:e=>{t({item_spacing:e})},min:"10",max:"200"})))}function S({options:e=[],selected:t,onChange:n}){return(0,o.createElement)("select",{className:"brandy-editor-select",value:t,onChange:e=>{n(e.target.value)},onfocus:"this.size=10;",onblur:"this.size=1;"},e.map((e=>(0,o.createElement)("option",{value:e.value},e.label))))}const k=[{label:"None",value:"none"},{label:"Small",value:"small"},{label:"Regular",value:"regular"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}];function M({selected:e,onChange:t,...n}){return(0,o.createElement)("div",{className:"brandy-editor-shadow"},(0,o.createElement)(S,{options:k,selected:e,onChange:e=>{"none"===e&&t({type:e,x:0,y:0,blur:0,spread:0,color:"#ffffff"}),"small"==e&&t({type:e,x:0,y:3,blur:10,spread:0,color:"rgba(0, 0, 0, 0.05)"}),"regular"==e&&t({type:e,x:0,y:4,blur:16,spread:0,color:"rgba(0, 0, 0, 0.06)"}),"medium"==e&&t({type:e,x:0,y:6,blur:20,spread:0,color:"rgba(0, 0, 0, 0.10)"}),"large"==e&&t({type:e,x:0,y:10,blur:26,spread:0,color:"rgba(0, 0, 0, 0.16)"})},...n}))}function N(){const{attributes:e,setAttributes:t}=(0,i.useContext)(q);return(0,o.createElement)("div",{className:"setting-wrapper"},(0,o.createElement)("div",null,(0,o.createElement)(f,{title:(0,p.__)("Card shadow","brandy")}),(0,o.createElement)(M,{selected:e.shadow.type,onChange:e=>{t({shadow:e})}})))}var O=n(941);function I(){const{clientId:e,setTemplate:t,setAttributes:n,template:a}=(0,i.useContext)(q);let r=(0,u.useSelect)((t=>{const{getBlocks:n}=t("core/block-editor");return n(e)}),[e]);return(0,i.useEffect)((()=>{setTimeout((()=>{const e=[...a];FE"}))})},184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},941:(e,t,n)=>{var o=n(474),a=n(184),r=n(196),i=n(177);function l(e){return e&&e.__esModule?e.default:e}function s(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function d(e){e.forEach((e=>{!function(e,t,n){const o=e.children[n]||null;e.insertBefore(t,o)}(e.parentElement,e.element,e.oldIndex)}))}function m(e,t){const n=g(e),o={parentElement:e.from};let a=[];switch(n){case"normal":a=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":a=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...o},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...o}];break;case"multidrag":a=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...o})))}const r=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(a,t);return r}function p(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function h(e,t,n,o){const a=[...t];return e.forEach((e=>{const t=o&&n&&o(e.item,n);a.splice(e.newIndex,0,t||e.item)})),a}function g(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}s(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),s(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),s(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),s(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),s(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),s(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),s(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),s(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),s(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),s(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),s(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),s(e.exports,"ReactSortable",(()=>v));const f={dragging:null};class v extends r.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,r.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,f),l(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();l(o).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:o}=this.props,a={style:t,className:n,id:o},i=e&&null!==e?e:"div";return(0,r.createElement)(i,{ref:this.ref,...a},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:o="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:s="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:d="sortable-filter",list:m}=this.props;if(!e||null==e)return null;const p=t||"data-id";return r.Children.map(e,((e,t)=>{if(void 0===e)return;const i=m[t]||{},{className:s}=e.props,c="string"==typeof d&&{[d.replace(".","")]:!!i.filtered},u=l(a)(s,{[n]:i.selected,[o]:i.chosen,...c});return(0,r.cloneElement)(e,{[p]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:o,tag:a,style:r,className:i,clone:l,onAdd:s,onChange:c,onChoose:u,onClone:d,onEnd:m,onFilter:p,onRemove:h,onSort:g,onStart:f,onUnchoose:v,onUpdate:b,onMove:y,onSpill:E,onSelect:w,onDeselect:_,...C}=e;return C}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,o=e.willInsertAfter||-1;if(!n)return o;const a=n(e,t,this.sortable,f);return void 0!==a&&a}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,f)}onAdd(e){const{list:t,setList:n,clone:o}=this.props,a=m(e,[...f.dragging.props.list]);u(a),n(h(a,t,e,o).map((e=>Object.assign(e,{selected:!1}))),this.sortable,f)}onRemove(e){const{list:t,setList:n}=this.props,o=g(e),a=m(e,t);d(a);let r=[...t];if("clone"!==e.pullMode)r=p(a,r);else{let t=a;switch(o){case"multidrag":t=a.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=a.map((t=>({...t,element:e.clone})));break;default:l(i)(!0,`mode "${o}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${o}" plugin`)}u(t),a.forEach((t=>{const n=t.oldIndex,o=this.props.clone(t.item,e);r.splice(n,1,o)}))}r=r.map((e=>Object.assign(e,{selected:!1}))),n(r,this.sortable,f)}onUpdate(e){const{list:t,setList:n}=this.props,o=m(e,t);return u(o),d(o),n(function(e,t){return h(e,p(e,t))}(o,t),this.sortable,f)}onStart(){f.dragging=this}onEnd(){f.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(t,{chosen:!0})),o})),this.sortable,f)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(o,{chosen:!1})),o})),this.sortable,f)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);o[n].selected=!0})),n(o,this.sortable,f)}onDeselect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(o[t].selected=!0)})),n(o,this.sortable,f)}}var b,y;b=e.exports,y={},Object.keys(y).forEach((function(e){"default"===e||"__esModule"===e||b.hasOwnProperty(e)||Object.defineProperty(b,e,{enumerable:!0,get:function(){return y[e]}})}))},474:(e,t,n)=>{"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(this,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>Et,Sortable:()=>$e,Swap:()=>ct,default:()=>Ct});var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),m=c(/firefox/i),p=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),f={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&f)}function b(e,t,n){e.removeEventListener(t,n,!u&&f)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function E(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||o&&e===n)return e;if(e===n)break}while(e=E(e))}return null}var _,C=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(C," ")}}function D(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var o=D(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function k(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,r=o.length;if(n)for(;a<r;a++)n(o[a],a);return o}return[]}function M(){return document.scrollingElement||document.documentElement}function N(e,t,n,o,a){if(e.getBoundingClientRect||e===window){var r,i,l,s,c,d,m;if(e!==window&&e.parentNode&&e!==M()?(i=(r=e.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,d=r.height,m=r.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,m=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!u))do{if(a&&a.getBoundingClientRect&&("none"!==D(a,"transform")||n&&"static"!==D(a,"position"))){var p=a.getBoundingClientRect();i-=p.top+parseInt(D(a,"border-top-width")),l-=p.left+parseInt(D(a,"border-left-width")),s=i+r.height,c=l+r.width;break}}while(a=a.parentNode);if(o&&e!==window){var h=S(a||e),g=h&&h.a,f=h&&h.d;h&&(s=(i/=f)+(d/=f),c=(l/=g)+(m/=g))}return{top:i,left:l,bottom:s,right:c,width:m,height:d}}}function O(e){var t=N(e),n=parseInt(D(e,"padding-left")),o=parseInt(D(e,"padding-top")),a=parseInt(D(e,"padding-right")),r=parseInt(D(e,"padding-bottom"));return t.top+=o+parseInt(D(e,"border-top-width")),t.left+=n+parseInt(D(e,"border-left-width")),t.width=e.clientWidth-n-a,t.height=e.clientHeight-o-r,t.bottom=t.top+t.height,t.right=t.left+t.width,t}function I(e,t,n){for(var o=B(e,!0),a=N(e)[t];o;){var r=N(o)[n];if(!("top"===n||"left"===n?a>=r:a<=r))return o;if(o===M())break;o=B(o,!1)}return!1}function T(e,t,n,o){for(var a=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==$e.ghost&&(o||i[r]!==$e.dragged)&&w(i[r],n.draggable,e,!1)){if(a===t)return i[r];a++}r++}return null}function A(e,t){for(var n=e.lastElementChild;n&&(n===$e.ghost||"none"===D(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function P(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===$e.clone||t&&!y(e,t)||n++;return n}function L(e){var t=0,n=0,o=M();if(e)do{var a=S(e),r=a.a,i=a.d;t+=e.scrollLeft*r,n+=e.scrollTop*i}while(e!==o&&(e=e.parentNode));return[t,n]}function B(e,t){if(!e||!e.getBoundingClientRect)return M();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(o||t)return n;o=!0}}}while(n=n.parentNode);return M()}function H(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function R(e,t){return function(){if(!_){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),_=setTimeout((function(){_=void 0}),t)}}}function z(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Y(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function $(e,t){D(e,"position","absolute"),D(e,"top",t.top),D(e,"left",t.left),D(e,"width",t.width),D(e,"height",t.height)}function j(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(e,"height","")}var V="Sortable"+(new Date).getTime();var Z=[],X={initializeByDefault:!0},F={mount:function(e){for(var t in X)X.hasOwnProperty(t)&&!(t in e)&&(e[t]=X[t]);Z.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Z.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";Z.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](a({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var a in Z.forEach((function(o){var a=o.pluginName;if(e.options[a]||o.initializeByDefault){var r=new o(e,t,e.options);r.sortable=e,r.options=e.options,e[a]=r,l(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var r=this.modifyOption(e,a,e.options[a]);void 0!==r&&(e.options[a]=r)}},getEventProperties:function(e,t){var n={};return Z.forEach((function(o){"function"==typeof o.eventProperties&&l(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return Z.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(o=a.optionListeners[t].call(e[a.pluginName],n))})),o}};function W(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,l=e.toEl,s=e.fromEl,c=e.oldIndex,m=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,g=e.originalEvent,f=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[V]){var b,y=t.options,E="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=r||n,b.clone=i,b.oldIndex=c,b.newIndex=m,b.oldDraggableIndex=p,b.newDraggableIndex=h,b.originalEvent=g,b.pullMode=f?f.lastPutMode:void 0;var w=a(a({},v),F.getEventProperties(o,t));for(var _ in w)b[_]=w[_];n&&n.dispatchEvent(b),y[E]&&y[E].call(t,b)}}var K=["evt"],U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(n,K);F.pluginEvent.bind($e)(e,t,a({dragEl:q,parentEl:Q,ghostEl:J,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:oe,cloneHidden:ae,dragStarted:ve,putSortable:ue,activeSortable:$e.active,originalEvent:o,oldIndex:re,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:se,hideGhostForTarget:He,unhideGhostForTarget:Re,cloneNowHidden:function(){ae=!0},cloneNowShown:function(){ae=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:o})}},r))};function G(e){W(a({putSortable:ue,cloneEl:oe,targetEl:q,rootEl:ee,oldIndex:re,oldDraggableIndex:le,newIndex:ie,newDraggableIndex:se},e))}var q,Q,J,ee,te,ne,oe,ae,re,ie,le,se,ce,ue,de,me,pe,he,ge,fe,ve,be,ye,Ee,we,_e=!1,Ce=!1,xe=[],De=!1,Se=!1,ke=[],Me=!1,Ne=[],Oe="undefined"!=typeof document,Ie=h,Te=d||u?"cssFloat":"float",Ae=Oe&&!g&&!h&&"draggable"in document.createElement("div"),Pe=function(){if(Oe){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=D(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=T(e,0,t),r=T(e,1,t),i=a&&D(a),l=r&&D(r),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+N(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+N(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return a&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=o&&"none"===n[Te]||r&&"none"===n[Te]&&s+c>o)?"vertical":"horizontal"},Be=function(e){function t(e,n){return function(o,a,r,i){var l=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,a,r,i),n)(o,a,r,i);var s=(n?o:a).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},He=function(){!Pe&&J&&D(J,"display","none")},Re=function(){!Pe&&J&&D(J,"display","")};Oe&&!g&&document.addEventListener("click",(function(e){if(Ce)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ce=!1,!1}),!0);var ze=function(e){if(q){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,r=e.clientY,xe.some((function(e){var t=e[V].options.emptyInsertThreshold;if(t&&!A(e)){var n=N(e),o=a>=n.left-t&&a<=n.right+t,l=r>=n.top-t&&r<=n.bottom+t;return o&&l?i=e:void 0}})),i);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[V]._onDragOver(n)}}var a,r,i},Ye=function(e){q&&q.parentNode[V]._isOutsideThisEl(e.target)};function $e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[V]=this;var n,o,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==$e.supportPointer&&"PointerEvent"in window&&!p,emptyInsertThreshold:5};for(var i in F.initializePlugins(this,e,r),r)!(i in t)&&(t[i]=r[i]);for(var s in Be(t),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&Ae,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==D(e,"display")&&e!==$e.ghost){o.push({target:e,rect:N(e)});var t=a({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=S(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var a=!1,r=0;o.forEach((function(e){var n=0,o=e.target,i=o.fromRect,l=N(o),s=o.prevFromRect,c=o.prevToRect,u=e.rect,d=S(o,!0);d&&(l.top-=d.f,l.left-=d.e),o.toRect=l,o.thisAnimationDuration&&H(s,l)&&!H(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(n=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,s,c,t.options)),H(l,i)||(o.prevFromRect=i,o.prevToRect=l,n||(n=t.options.animation),t.animate(o,u,l,n)),n&&(a=!0,r=Math.max(r,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),a?n=setTimeout((function(){"function"==typeof e&&e()}),r):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,o){if(o){D(e,"transition",""),D(e,"transform","");var a=S(this.el),r=a&&a.a,i=a&&a.d,l=(t.left-n.left)/(r||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,D(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),D(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}))}function je(e,t,n,o,a,r,i,l){var s,c,m=e[V],p=m.options.onMove;return!window.CustomEvent||u||d?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=a||t,s.relatedRect=r||N(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),p&&(c=p.call(m,s,i)),c}function Ve(e){e.draggable=!1}function Ze(){Me=!1}function Xe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Fe(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}$e.prototype={constructor:$e,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(be=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,a=o.preventOnFilter,r=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(function(e){Ne.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Ne.push(o)}}(n),!q&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!p||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=w(l,o.draggable,n,!1))&&l.animated||ne===l)){if(re=P(l),le=P(l,o.draggable),"function"==typeof c){if(c.call(this,e,l,this))return G({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),U("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=w(s,o.trim(),n,!1))return G({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),U("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());o.handle&&!w(s,o.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var o,a=this,r=a.el,i=a.options,l=r.ownerDocument;if(n&&!q&&n.parentNode===r){var s=N(n);if(ee=r,Q=(q=n).parentNode,te=q.nextSibling,ne=n,ce=i.group,$e.dragged=q,de={target:q,clientX:(t||e).clientX,clientY:(t||e).clientY},ge=de.clientX-s.left,fe=de.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,q.style["will-change"]="all",o=function(){U("delayEnded",a,{evt:e}),$e.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!m&&a.nativeDraggable&&(q.draggable=!0),a._triggerDragStart(e,t),G({sortable:a,name:"choose",originalEvent:e}),x(q,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){k(q,e.trim(),Ve)})),v(l,"dragover",ze),v(l,"mousemove",ze),v(l,"touchmove",ze),v(l,"mouseup",a._onDrop),v(l,"touchend",a._onDrop),v(l,"touchcancel",a._onDrop),m&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),U("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))o();else{if($e.eventCanceled)return void this._onDrop();v(l,"mouseup",a._disableDelayedDrag),v(l,"touchend",a._disableDelayedDrag),v(l,"touchcancel",a._disableDelayedDrag),v(l,"mousemove",a._delayedDragTouchMoveHandler),v(l,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&v(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&Ve(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(q,"dragend",this),v(ee,"dragstart",this._onDragStart));try{document.selection?Fe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(_e=!1,ee&&q){U("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",Ye);var n=this.options;!e&&x(q,n.dragClass,!1),x(q,n.ghostClass,!0),$e.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(me){this._lastX=me.clientX,this._lastY=me.clientY,He();for(var e=document.elementFromPoint(me.clientX,me.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(me.clientX,me.clientY))!==t;)t=e;if(q.parentNode[V]._isOutsideThisEl(e),t)do{if(t[V]&&t[V]._onDragOver({clientX:me.clientX,clientY:me.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Re()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=J&&S(J,!0),i=J&&r&&r.a,l=J&&r&&r.d,s=Ie&&we&&L(we),c=(a.clientX-de.clientX+o.x)/(i||1)+(s?s[0]-ke[0]:0)/(i||1),u=(a.clientY-de.clientY+o.y)/(l||1)+(s?s[1]-ke[1]:0)/(l||1);if(!$e.active&&!_e){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(J){r?(r.e+=c-(pe||0),r.f+=u-(he||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(J,"webkitTransform",d),D(J,"mozTransform",d),D(J,"msTransform",d),D(J,"transform",d),pe=c,he=u,me=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){var e=this.options.fallbackOnBody?document.body:ee,t=N(q,!0,Ie,!0,e),n=this.options;if(Ie){for(we=e;"static"===D(we,"position")&&"none"===D(we,"transform")&&we!==document;)we=we.parentNode;we!==document.body&&we!==document.documentElement?(we===document&&(we=M()),t.top+=we.scrollTop,t.left+=we.scrollLeft):we=M(),ke=L(we)}x(J=q.cloneNode(!0),n.ghostClass,!1),x(J,n.fallbackClass,!0),x(J,n.dragClass,!0),D(J,"transition",""),D(J,"transform",""),D(J,"box-sizing","border-box"),D(J,"margin",0),D(J,"top",t.top),D(J,"left",t.left),D(J,"width",t.width),D(J,"height",t.height),D(J,"opacity","0.8"),D(J,"position",Ie?"absolute":"fixed"),D(J,"zIndex","100000"),D(J,"pointerEvents","none"),$e.ghost=J,e.appendChild(J),D(J,"transform-origin",ge/parseInt(J.style.width)*100+"% "+fe/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,a=n.options;U("dragStart",this,{evt:e}),$e.eventCanceled?this._onDrop():(U("setupClone",this),$e.eventCanceled||((oe=Y(q)).removeAttribute("id"),oe.draggable=!1,oe.style["will-change"]="",this._hideClone(),x(oe,this.options.chosenClass,!1),$e.clone=oe),n.cloneId=Fe((function(){U("clone",n),$e.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(oe,q),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&x(q,a.dragClass,!0),t?(Ce=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(n,o,q)),v(document,"drop",n),D(q,"transform","translateZ(0)")),_e=!0,n._dragStartId=Fe(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),ve=!0,p&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,l=e.target,s=this.options,c=s.group,u=$e.active,d=ce===c,m=s.sort,p=ue||u,h=this,g=!1;if(!Me){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=w(l,s.draggable,i,!0),Y("dragOver"),$e.eventCanceled)return g;if(q.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||h._ignoreWhileAnimating===l)return j(!1);if(Ce=!1,u&&!s.disabled&&(d?m||(o=Q!==ee):ue===this||(this.lastPutMode=ce.checkPull(this,u,q,e))&&c.checkPut(this,u,q,e))){if(r="vertical"===this._getDirection(e,l),t=N(q),Y("dragOverValid"),$e.eventCanceled)return g;if(o)return Q=ee,$(),this._hideClone(),Y("revert"),$e.eventCanceled||(te?ee.insertBefore(q,te):ee.appendChild(q)),j(!0);var f=A(i,s.draggable);if(!f||function(e,t,n){var o=N(A(n.el,n.options.draggable)),a=O(n.el);return t?e.clientX>a.right+10||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>a.bottom+10||e.clientX>o.right&&e.clientY>o.top}(e,r,this)&&!f.animated){if(f===q)return j(!1);if(f&&i===e.target&&(l=f),l&&(n=N(l)),!1!==je(ee,i,q,t,l,n,e,!!l))return $(),f&&f.nextSibling?i.insertBefore(q,f.nextSibling):i.appendChild(q),Q=i,Z(),j(!0)}else if(f&&function(e,t,n){var o=N(T(n.el,0,n.options,!0)),a=O(n.el);return t?e.clientX<a.left-10||e.clientY<o.top&&e.clientX<o.right:e.clientY<a.top-10||e.clientY<o.bottom&&e.clientX<o.left}(e,r,this)){var v=T(i,0,s,!0);if(v===q)return j(!1);if(n=N(l=v),!1!==je(ee,i,q,t,l,n,e,!1))return $(),i.insertBefore(q,v),Q=i,Z(),j(!0)}else if(l.parentNode===i){n=N(l);var b,y,E,_=q.parentNode!==i,C=!function(e,t,n){var o=n?e.left:e.top,a=n?e.right:e.bottom,r=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===i||a===l||o+r/2===i+s/2}(q.animated&&q.toRect||t,l.animated&&l.toRect||n,r),S=r?"top":"left",k=I(l,"top","top")||I(q,"top","top"),M=k?k.scrollTop:void 0;if(be!==l&&(y=n[S],De=!1,Se=!C&&s.invertSwap||_),b=function(e,t,n,o,a,r,i,l){var s=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,m=!1;if(!i)if(l&&Ee<c*a){if(!De&&(1===ye?s>u+c*r/2:s<d-c*r/2)&&(De=!0),De)m=!0;else if(1===ye?s<u+Ee:s>d-Ee)return-ye}else if(s>u+c*(1-a)/2&&s<d-c*(1-a)/2)return function(e){return P(q)<P(e)?1:-1}(t);return(m=m||i)&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}(e,l,n,r,C?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Se,be===l),0!==b){var L=P(q);do{L-=b,E=Q.children[L]}while(E&&("none"===D(E,"display")||E===J))}if(0===b||E===l)return j(!1);be=l,ye=b;var B=l.nextElementSibling,H=!1,R=je(ee,i,q,t,l,n,e,H=1===b);if(!1!==R)return 1!==R&&-1!==R||(H=1===R),Me=!0,setTimeout(Ze,30),$(),H&&!B?i.appendChild(q):l.parentNode.insertBefore(q,H?B:l),k&&z(k,0,M-k.scrollTop),Q=q.parentNode,void 0===y||Se||(Ee=Math.abs(y-N(l)[S])),Z(),j(!0)}if(i.contains(q))return j(!1)}return!1}function Y(s,c){U(s,h,a({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:m,fromSortable:p,target:l,completed:j,onMove:function(n,o){return je(ee,i,q,t,n,N(n),e,o)},changed:Z},c))}function $(){Y("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function j(t){return Y("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(x(q,ue?ue.options.ghostClass:u.options.ghostClass,!1),x(q,s.ghostClass,!0)),ue!==h&&h!==$e.active?ue=h:h===$e.active&&ue&&(ue=null),p===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){Y("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===q&&!q.animated||l===i&&!l.animated)&&(be=null),s.dragoverBubble||e.rootEl||l===document||(q.parentNode[V]._isOutsideThisEl(e.target),!t&&ze(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function Z(){ie=P(q),se=P(q,s.draggable),G({sortable:h,name:"change",toEl:i,newIndex:ie,newDraggableIndex:se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",ze),b(document,"mousemove",ze),b(document,"touchmove",ze)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=P(q),se=P(q,n.draggable),U("drop",this,{evt:e}),Q=q&&q.parentNode,ie=P(q),se=P(q,n.draggable),$e.eventCanceled||(_e=!1,Se=!1,De=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&D(document.body,"user-select",""),D(q,"transform",""),e&&(ve&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(ee===Q||ue&&"clone"!==ue.lastPutMode)&&oe&&oe.parentNode&&oe.parentNode.removeChild(oe),q&&(this.nativeDraggable&&b(q,"dragend",this),Ve(q),q.style["will-change"]="",ve&&!_e&&x(q,ue?ue.options.ghostClass:this.options.ghostClass,!1),x(q,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==Q?(ie>=0&&(G({rootEl:Q,name:"add",toEl:Q,fromEl:ee,originalEvent:e}),G({sortable:this,name:"remove",toEl:Q,originalEvent:e}),G({rootEl:Q,name:"sort",toEl:Q,fromEl:ee,originalEvent:e}),G({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ue&&ue.save()):ie!==re&&ie>=0&&(G({sortable:this,name:"update",toEl:Q,originalEvent:e}),G({sortable:this,name:"sort",toEl:Q,originalEvent:e})),$e.active&&(null!=ie&&-1!==ie||(ie=re,se=le),G({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){U("nulling",this),ee=q=Q=J=te=oe=ne=ae=de=me=ve=ie=se=re=le=be=ye=ue=ce=$e.dragged=$e.ghost=$e.clone=$e.active=null,Ne.forEach((function(e){e.checked=!0})),Ne.length=pe=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,a=n.length,r=this.options;o<a;o++)w(e=n[o],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Xe(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var a=o.children[t];w(a,this.options.draggable,o,!1)&&(n[e]=a)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=F.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Be(n)},destroy:function(){U("destroy",this);var e=this.el;e[V]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xe.splice(xe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ae){if(U("hideClone",this),$e.eventCanceled)return;D(oe,"display","none"),this.options.removeCloneOnHide&&oe.parentNode&&oe.parentNode.removeChild(oe),ae=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ae){if(U("showClone",this),$e.eventCanceled)return;q.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(oe,te):ee.appendChild(oe):ee.insertBefore(oe,q),this.options.group.revertClone&&this.animate(q,oe),D(oe,"display",""),ae=!1}}else this._hideClone()}},Oe&&v(document,"touchmove",(function(e){($e.active||_e)&&e.cancelable&&e.preventDefault()})),$e.utils={on:v,off:b,css:D,find:k,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:R,closest:w,toggleClass:x,clone:Y,index:P,nextTick:Fe,cancelNextTick:We,detectDirection:Le,getChild:T},$e.get=function(e){return e[V]},$e.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&($e.utils=a(a({},$e.utils),e.utils)),F.mount(e)}))},$e.create=function(e,t){return new $e(e,t)},$e.version="1.15.1";var Ke,Ue,Ge,qe,Qe,Je,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function ot(){clearInterval(Je)}var at,rt=R((function(e,t,n,o){if(t.scroll){var a,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=M(),u=!1;Ue!==n&&(Ue=n,nt(),Ke=t.scroll,a=t.scrollFn,!0===Ke&&(Ke=B(n,!0)));var d=0,m=Ke;do{var p=m,h=N(p),g=h.top,f=h.bottom,v=h.left,b=h.right,y=h.width,E=h.height,w=void 0,_=void 0,C=p.scrollWidth,x=p.scrollHeight,S=D(p),k=p.scrollLeft,O=p.scrollTop;p===c?(w=y<C&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),_=E<x&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=y<C&&("auto"===S.overflowX||"scroll"===S.overflowX),_=E<x&&("auto"===S.overflowY||"scroll"===S.overflowY));var I=w&&(Math.abs(b-r)<=l&&k+y<C)-(Math.abs(v-r)<=l&&!!k),T=_&&(Math.abs(f-i)<=l&&O+E<x)-(Math.abs(g-i)<=l&&!!O);if(!et[d])for(var A=0;A<=d;A++)et[A]||(et[A]={});et[d].vx==I&&et[d].vy==T&&et[d].el===p||(et[d].el=p,et[d].vx=I,et[d].vy=T,clearInterval(et[d].pid),0==I&&0==T||(u=!0,et[d].pid=setInterval(function(){o&&0===this.layer&&$e.active._onTouchMove(Qe);var t=et[this.layer].vy?et[this.layer].vy*s:0,n=et[this.layer].vx?et[this.layer].vx*s:0;"function"==typeof a&&"continue"!==a.call($e.dragged.parentNode[V],n,t,e,Qe,et[this.layer].el)||z(et[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&m!==c&&(m=B(m,!1)));tt=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,a=e.activeSortable,r=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||a;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function lt(){}function st(){}function ct(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;at=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,a=e.activeSortable,r=e.changed,i=e.cancel;if(a.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=at;!1!==o(n)?(x(n,s.swapClass,!0),at=n):at=null,c&&c!==at&&x(c,s.swapClass,!1)}r(),t(!0),i()}},drop:function(e){var t,n,o,a,r,i,l=e.activeSortable,s=e.putSortable,c=e.dragEl,u=s||this.sortable,d=this.options;at&&x(at,d.swapClass,!1),at&&(d.swap||s&&s.options.swap)&&c!==at&&(u.captureAnimationState(),u!==l&&l.captureAnimationState(),n=at,r=(t=c).parentNode,i=n.parentNode,r&&i&&!r.isEqualNode(n)&&!i.isEqualNode(t)&&(o=P(t),a=P(n),r.isEqualNode(i)&&o<a&&a++,r.insertBefore(n,r.children[o]),i.insertBefore(t,i.children[a])),u.animateAll(),u!==l&&l.animateAll())},nulling:function(){at=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:at}}})}lt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=T(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},l(lt,{pluginName:"revertOnSpill"}),st.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},l(st,{pluginName:"removeOnSpill"});var ut,dt,mt,pt,ht,gt=[],ft=[],vt=!1,bt=!1,yt=!1;function Et(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag))),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var o="";gt.length&&dt===e?gt.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;mt=t},delayEnded:function(){this.isMultiDrag=~gt.indexOf(mt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<gt.length;o++)ft.push(Y(gt[o])),ft[o].sortableIndex=gt[o].sortableIndex,ft[o].draggable=!1,ft[o].style["will-change"]="",x(ft[o],this.options.selectedClass,!1),gt[o]===mt&&x(ft[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,a=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||gt.length&&dt===t&&(wt(!0,n),o("clone"),a()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(wt(!1,n),ft.forEach((function(e){D(e,"display","")})),t(),ht=!1,o())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),o=e.cancel;this.isMultiDrag&&(ft.forEach((function(e){D(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ht=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&dt&&dt.multiDrag._deselectMultiDrag(),gt.forEach((function(e){e.sortableIndex=P(e)})),gt=gt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),yt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){gt.forEach((function(e){e!==mt&&D(e,"position","absolute")}));var o=N(mt,!1,!0,!0);gt.forEach((function(e){e!==mt&&$(e,o)})),bt=!0,vt=!0}n.animateAll((function(){bt=!1,vt=!1,t.options.animation&&gt.forEach((function(e){j(e)})),t.options.sort&&_t()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;bt&&~gt.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,a=e.dragRect;gt.length>1&&(gt.forEach((function(e){o.addAnimationState({target:e,rect:bt?N(e):a}),j(e),e.fromRect=a,t.removeAnimationState(e)})),bt=!1,function(e,t){gt.forEach((function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,a=e.activeSortable,r=e.parentEl,i=e.putSortable,l=this.options;if(o){if(n&&a._hideClone(),vt=!1,l.animation&&gt.length>1&&(bt||!n&&!a.options.sort&&!i)){var s=N(mt,!1,!0,!0);gt.forEach((function(e){e!==mt&&($(e,s),r.appendChild(e))})),bt=!0}if(!n)if(bt||_t(),gt.length>1){var c=ht;a._showClone(t),a.options.animation&&!ht&&c&&ft.forEach((function(e){a.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else a._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(gt.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){pt=l({},t);var a=S(mt,!0);pt.top-=a.f,pt.left-=a.e}},dragOverAnimationComplete:function(){bt&&(bt=!1,_t())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,a=e.sortable,r=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=o.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(mt,c.selectedClass,!~gt.indexOf(mt)),~gt.indexOf(mt))gt.splice(gt.indexOf(mt),1),ut=null,W({sortable:a,rootEl:n,name:"deselect",targetEl:mt,originalEvent:t});else{if(gt.push(mt),W({sortable:a,rootEl:n,name:"select",targetEl:mt,originalEvent:t}),t.shiftKey&&ut&&a.el.contains(ut)){var d,m,p=P(ut),h=P(mt);if(~p&&~h&&p!==h)for(h>p?(m=p,d=h):(m=h,d=p+1);m<d;m++)~gt.indexOf(u[m])||(x(u[m],c.selectedClass,!0),gt.push(u[m]),W({sortable:a,rootEl:n,name:"select",targetEl:u[m],originalEvent:t}))}else ut=mt;dt=s}if(yt&&this.isMultiDrag){if(bt=!1,(o[V].options.sort||o!==n)&&gt.length>1){var g=N(mt),f=P(mt,":not(."+this.options.selectedClass+")");if(!vt&&c.animation&&(mt.thisAnimationDuration=null),s.captureAnimationState(),!vt&&(c.animation&&(mt.fromRect=g,gt.forEach((function(e){if(e.thisAnimationDuration=null,e!==mt){var t=bt?N(e):g;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),_t(),gt.forEach((function(e){u[f]?o.insertBefore(e,u[f]):o.appendChild(e),f++})),i===P(mt))){var v=!1;gt.forEach((function(e){e.sortableIndex===P(e)||(v=!0)})),v&&(r("update"),r("sort"))}gt.forEach((function(e){j(e)})),s.animateAll()}dt=s}(n===o||l&&"clone"!==l.lastPutMode)&&ft.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,ft.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||dt!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;gt.length;){var t=gt[0];x(t,this.options.selectedClass,!1),gt.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[V];t&&t.options.multiDrag&&!~gt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),x(e,t.options.selectedClass,!0),gt.push(e))},deselect:function(e){var t=e.parentNode[V],n=gt.indexOf(e);t&&t.options.multiDrag&&~n&&(x(e,t.options.selectedClass,!1),gt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],o=[];return gt.forEach((function(e){var a;n.push({multiDragElement:e,index:e.sortableIndex}),a=bt&&e!==mt?-1:bt?P(e,":not(."+t.options.selectedClass+")"):P(e),o.push({multiDragElement:e,index:a})})),{items:(e=gt,function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(ft),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function wt(e,t){ft.forEach((function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}function _t(){gt.forEach((function(e){e!==mt&&e.parentNode&&e.parentNode.removeChild(e)}))}$e.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ot(),nt(),clearTimeout(_),_=void 0},nulling:function(){Qe=Ue=Ke=tt=Je=Ge=qe=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(o,a);if(Qe=e,t||this.options.forceAutoScrollFallback||d||u||p){rt(e,this.options,r,t);var i=B(r,!0);!tt||Je&&o===Ge&&a===qe||(Je&&ot(),Je=setInterval((function(){var r=B(document.elementFromPoint(o,a),!0);r!==i&&(i=r,nt()),rt(e,n.options,r,t)}),10),Ge=o,qe=a)}else{if(!this.options.bubbleScroll||B(r,!0)===M())return void nt();rt(e,this.options,B(r,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),$e.mount(st,lt);const Ct=$e},177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=!0,a="Invariant failed";function r(e,t){if(!e){if(o)throw new Error(a);var n="function"==typeof t?t():t;throw new Error(n?a+": "+n:a)}}},196:e=>{"use strict";e.exports=window.React}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,n,a,r)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,a,r]=e[u],l=!0,s=0;s<n.length;s++)(!1&r||i>=r)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(l=!1,r<i&&(i=r));if(l){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,a,r]},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={212:0,736:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var a,r,[i,l,s]=n,c=0;if(i.some((t=>0!==e[t]))){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(s)var u=s(o)}for(t&&t(n);c<i.length;c++)r=i[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},n=globalThis.webpackChunkbrandy_blocks=globalThis.webpackChunkbrandy_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=o.O(void 0,[736],(()=>o(87)));a=o.O(a)})();
  • brandy-blocks/trunk/inc/Traits/SingletonTrait.php

    r3060884 r3076429  
    3232        throw new \Exception( 'Cannot unserialize a singleton.' );
    3333    }
    34 
    3534}
  • brandy-blocks/trunk/inc/Utils/Helpers.php

    r3060884 r3076429  
    1111        }
    1212    }
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
    1344}
  • brandy-blocks/trunk/readme.txt

    r3060884 r3076429  
    33Tags: pricing, slider, testimonials, blocks, patterns
    44Requires at least: 3.0
    5 Tested up to: 6.4.3
    6 Stable tag: 1.0
     5Tested up to: 6.
     6Stable tag: 1.0
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    8585
    8686== Screenshots ==
    87 1.
     871. Editing feature list items in a pricing plan
     882. Customizing a multi-column pricing table in Gutenberg block editor
     893. Customizing testimonials slider in Gutenberg block editor
     904. Tweaking the design of the parent Gutenberg block
    8891
    8992== Changelog ==
    9093
     94
     95
     96
     97
    9198= Mar 29, 2024 - Version 1.0 =
    9299- Initial Release
  • brandy-blocks/trunk/vendor/autoload.php

    r3060884 r3076429  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit43ff379fea26b295be994878f2d187b1::getLoader();
     25return ComposerAutoloaderInit1::getLoader();
  • brandy-blocks/trunk/vendor/composer/autoload_real.php

    r3060884 r3076429  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit43ff379fea26b295be994878f2d187b1
     5class ComposerAutoloaderInit1
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit43ff379fea26b295be994878f2d187b1', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit1', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit43ff379fea26b295be994878f2d187b1', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit1', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit43ff379fea26b295be994878f2d187b1::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit1::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • brandy-blocks/trunk/vendor/composer/autoload_static.php

    r3060884 r3076429  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit43ff379fea26b295be994878f2d187b1
     7class ComposerStaticInit1
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2828    {
    2929        return \Closure::bind(function () use ($loader) {
    30             $loader->prefixLengthsPsr4 = ComposerStaticInit43ff379fea26b295be994878f2d187b1::$prefixLengthsPsr4;
    31             $loader->prefixDirsPsr4 = ComposerStaticInit43ff379fea26b295be994878f2d187b1::$prefixDirsPsr4;
    32             $loader->classMap = ComposerStaticInit43ff379fea26b295be994878f2d187b1::$classMap;
     30            $loader->prefixLengthsPsr4 = ComposerStaticInit1::$prefixLengthsPsr4;
     31            $loader->prefixDirsPsr4 = ComposerStaticInit1::$prefixDirsPsr4;
     32            $loader->classMap = ComposerStaticInit1::$classMap;
    3333
    3434        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.