<?xml version='1.0' encoding='UTF-8'?><uidget><metadata><name>Store</name><description>Create an online store</description><help><![CDATA[
			With the Store Block, you can create your own e-commerce website.&lt;br&gt; You can create as many categories as you need (shoes, t-shirts, bikes, ...) to sort your products. If your website uses the E-commerce or Pro package, you can add online payment methods. If your website uses the Pro package, you can setup discounts, delivery methods, abandoned cart email, etc... 
]]></help><api_version>1.0</api_version><server>local://StoreCptServer</server><size height='400' width='800' /><blog en='144' /><max bg='0' url='1' /><gdpr enabled='true' hide_property='true' /></metadata><view><content>&lt;div class=&quot;uis_warn&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;uis_add_to_cart&quot; style=&quot;display:none&quot;&gt;
  &lt;div class=&quot;uis_add_cart_w&quot;&gt;
    &lt;h2 class=uis_add_to_cart_infos&gt;A new item has been added to your cart.&lt;/h2&gt;
    &lt;div class=&quot;uis_btn uis_view_cart site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;View Cart&lt;/span&gt;&lt;/div&gt;
    &lt;div class=&quot;uis_btn uis_checkout site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;Proceed to checkout &lt;span class=uis_nbr_items&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;div class=&quot;uis_btn uis_shopping site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;Continue shopping&lt;/span&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;uis_bill&quot;&gt;
	&lt;div class=&apos;uis_bill_breadcrumb&apos; style=&apos;display:none&apos;&gt;
		&lt;div data-page=c&gt;Cart&lt;/div&gt;
		&lt;div data-page=f&gt;Address&lt;/div&gt;
		&lt;div data-page=shipping&gt;Delivery&lt;/div&gt;
		&lt;div data-page=summary&gt;Validation&lt;/div&gt;
		&lt;div data-page=cb&gt;Payment&lt;/div&gt;
	&lt;/div&gt;
  &lt;div class=&apos;uis_bill_page uis_bill_c&apos;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;
  &lt;div class=&apos;uis_bill_page uis_bill_f&apos; style=&apos;display:none&apos;&gt;
    &lt;div class=&quot;uis_btn uis_sc site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;&amp;lt;&amp;lt; Modify order&lt;/span&gt;&lt;/div&gt;
    &lt;div&gt;
      &lt;h2 class=&quot;font_title_2 uis_bill_mn&quot;&gt;Your details&lt;/h2&gt;
      &lt;div&gt;
        &lt;div class=&apos;uis_bfb uis_bill_mn&apos;&gt;&lt;/div&gt;
        &lt;table&gt;
          &lt;thead&gt;
            &lt;tr&gt;
              &lt;td colspan=2&gt;&lt;span class=&quot;_ui18_do_member_signup site_button&quot;&gt;&lt;span class=&quot;button_content&quot;&gt;Please fill in your coordinates below&lt;/span&gt;&lt;/span&gt;&lt;span class=member_unconnected&gt; or &lt;span class=&apos;_ui18_do_member_signin site_link&apos;&gt;Sign-in&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
              &lt;td colspan=2 class=&apos;uis_cerr&apos;&gt;&lt;/td&gt;
            &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody class=&apos;uis_bft&apos;&gt;&lt;/tbody&gt;
          &lt;tfoot&gt;
            &lt;tr&gt;
              &lt;td colspan=2&gt;
                &lt;div class=&quot;component_gdpr_container uis_gdpr&quot;&gt;&lt;/div&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
              &lt;td colspan=2&gt;* Fields are required&lt;/td&gt;
            &lt;/tr&gt;
          &lt;/tfoot&gt;
        &lt;/table&gt;
        &lt;div style=&quot;text-align:right&quot;&gt;
          &lt;div class=&quot;uis_btn uis_sbpm site_button&quot;&gt;
            &lt;span class=&quot;uis_bsa&quot;&gt;Next step &amp;gt;&amp;gt;&lt;/span&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&apos;uis_bill_page uis_bill_shipping&apos; style=&apos;display:none&apos;&gt;
    &lt;div class=&quot;uis_btn uis_sc site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;&amp;lt;&amp;lt; Modify order&lt;/span&gt;&lt;/div&gt;
    &lt;div class=uis_bill_shipping_form&gt;&lt;/div&gt;
    &lt;div style=&quot;text-align:right&quot;&gt;
    &lt;div class=&quot;uis_btn uis_save_shipping site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;Next step &amp;gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&apos;uis_bill_page uis_bill_summary&apos; style=&apos;display:none&apos;&gt;
    &lt;div class=&quot;uis_btn uis_sc site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;&amp;lt;&amp;lt; Modify order&lt;/span&gt;&lt;/div&gt;
    &lt;div class=uis_summary_content&gt;&lt;/div&gt;
    &lt;div style=&quot;text-align:right&quot;&gt;
      &lt;div class=&quot;uis_btn uis_pay site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;Order and pay&lt;/span&gt; &amp;gt;&amp;gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&apos;uis_bill_page uis_bill_cb&apos; style=&apos;display:none&apos;&gt;
    &lt;div class=&quot;uis_btn uis_sc site_button&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;&amp;lt;&amp;lt; Modify order&lt;/span&gt;&lt;/div&gt;
    &lt;div&gt;
      &lt;h2 class=&quot;font_title_2 uis_bill_mn&quot;&gt;Credit card selection&lt;/h2&gt;
      &lt;div class=uis_cb_form&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&apos;uis_bill_page uis_bill_m&apos; style=&apos;display:none&apos;&gt;
    &lt;div&gt;
      &lt;h2 class=&quot;font_title_2 uis_bill_mn&quot;&gt;Congratulations&lt;/h2&gt;
      &lt;div&gt;
        &lt;div class=&apos;uis_bfa uis_bill_mn&apos;&gt;&lt;/div&gt;
        &lt;div style=&quot;width: 100%; text-align: center; clear: both;&quot;&gt;
          &lt;span class=&quot;uis_btn uis_back_to_store site_button&quot; style=&quot;display:inline-block;float:none&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;Back to Store&lt;/span&gt;&lt;/span&gt;
          &lt;span class=&quot;uis_btn uis_order_follow site_button&quot; style=&quot;display:inline-block;float:none&quot;&gt;&lt;span class=&quot;uis_bsa&quot;&gt;Order follow&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
          &lt;a href=&quot;#&quot; class=&quot;uis_sc uis_other_payment_method&quot;&gt;Choose another payment method&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;uis_catalog&quot;&gt;
  &lt;div class=&quot;uis_search&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;uis_cart_container&quot;&gt;&lt;div class=&quot;uis_cart&quot;&gt;&lt;/div&gt;&lt;/div&gt;
  &lt;div class=&quot;uis_cat&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;uis_list&quot;&gt;
    &lt;div class=&quot;uis_sort&quot;&gt;Sort by: &lt;span class=&quot;uis_sn uis_ss site_link&quot; data-sort=&quot;n&quot;&gt;Name&lt;/span&gt; - &lt;span class=&quot;uis_sp site_link&quot; data-sort=&quot;p&quot;&gt;Price&lt;/span&gt;&lt;/div&gt;
    &lt;div class=&quot;uis_pages&quot;&gt;&lt;/div&gt;
    &lt;ul&gt;&lt;/ul&gt;
    &lt;div class=&quot;uis_pages&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;uis_prod&quot;&gt;
    &lt;table width=&quot;100%&quot;&gt;&lt;tr&gt;
      &lt;td class=&quot;uis_td_imgs&quot;&gt;&lt;div&gt;
        &lt;div class=&quot;uis_img&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;uis_imgs&quot;&gt;
          &lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;&lt;/td&gt;
      &lt;td class=&quot;uis_td_attr&quot;&gt;
        &lt;div class=&quot;block_section&quot;&gt;
          &lt;input type=&quot;hidden&quot; class=&quot;uis_prodid&quot;&gt;
          &lt;div class=&quot;admin_elem admin_title&quot;&gt;General information&lt;/div&gt;
          &lt;div class=&quot;uis_name&quot;&gt;&amp;nbsp;&lt;/div&gt;
          &lt;div class=&quot;uis_prod_infos_container&quot;&gt;
            &lt;div class=&quot;uis_prod_cat&quot;&gt;
              &lt;div class=&apos;uis_prod_label admin_elem uis_prod_cat_label&apos;&gt;Categories:&lt;/div&gt;
              &lt;ul class=&apos;uis_cat_list&apos;&gt;&lt;/ul&gt;
            &lt;/div&gt;
            &lt;div class=&quot;uis_prod_label admin_elem&quot;&gt;Price:&lt;/div&gt;
            &lt;div class=&quot;uis_prod_bloc&quot;&gt;
              &lt;div class=&quot;uis_prod_bloc_toggle admin_elem fonticon uis_more_prices_toggle helpEditor&quot; help=&quot;More price options&quot;&gt;V&lt;/div&gt;
              &lt;div class=&quot;uis_prices&quot;&gt;
                &lt;span class=&quot;uis_price&quot;&gt;&lt;/span&gt;
                &lt;div class=&quot;admin_elem editor_interface&quot;&gt;
                  &lt;div class=&quot;uis_more_prices&quot; style=&quot;display:none;&quot;&gt;
                  &lt;span class=&quot;uis_strike_input&quot;&gt;&lt;/span&gt;
                  &lt;span class=&quot;uis_strike not_admin_elem&quot;&gt;&lt;/span&gt;
                  &lt;div class=&quot;toggle_strike_price editor_interface admin_elem ib&quot; style=&quot;margin: 0 10px;&quot;&gt;
                    &lt;b style=&quot;display: inline-block;vertical-align: super;&quot;&gt;strike-through price&lt;/b&gt;
                  &lt;/div&gt;
                  &lt;div&gt;
                    &lt;span class=uis_custom_prices_header&gt;Volume prices and Customer specific prices:&lt;/span&gt;
                    &lt;table class=&quot;admin_elem tablesorter uis_custom_prices_table&quot;&gt;
                      &lt;thead&gt;
                        &lt;tr&gt;
                          &lt;th&gt;Quantity&lt;/th&gt;
                          &lt;th&gt;Member group&lt;/th&gt;
                          &lt;th&gt;Discount&lt;/th&gt;
                          &lt;th&gt;Amount&lt;/th&gt;
                          &lt;th&gt;Delete&lt;/th&gt;
                        &lt;/tr&gt;
                      &lt;/thead&gt;
                      &lt;tbody class=&quot;uis_custom_prices_tbody&quot;&gt;
                      &lt;/tbody&gt;
                    &lt;/table&gt;
                    &lt;/div&gt;
                    &lt;div style=&apos;text-align:center;&apos;&gt;
                      &lt;span class=&apos;ib edit_btn uis_add_custom_price&apos;&gt;Add a custom price&lt;/span&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;uis_prod_label admin_elem&quot;&gt;Stock:&lt;/div&gt;
            &lt;div class=&quot;uis_prod_bloc uis_prod_bloc_stock&quot;&gt;
              &lt;div class=&quot;uis_prod_bloc_toggle admin_elem fonticon uis_stock_sentence_show_more helpEditor&quot; help=&quot;More stock options&quot;&gt;V&lt;/div&gt;
              &lt;div class=&quot;admin_elem editor_interface&quot;&gt;
                &lt;div class=&quot;uis_more_stock_sentence_div&quot; style=&quot;display:none;&quot;&gt;
                  &lt;div class=&apos;uis_stock_infos&apos;&gt;Stock information:&lt;/div&gt;

                  &lt;div class=&quot;uis_stock_set_mode uis_custom_stock_default_sentence editor_interface&quot; &gt;
                    &lt;div&gt;
                      &lt;div class=&quot;uis_container uis_custom_stock_default_sentence&quot;&gt;&lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class=&quot;uis_stock_set_mode uis_custom_stock_sentence editor_interface&quot; &gt;
                    &lt;div&gt;
                      &lt;div class=&quot;uis_container uis_custom_stock_sentence&quot;&gt;&lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class=&quot;uis_stock_set_mode uis_big_container uis_replenishment_date&quot; &gt;
                    &lt;div&gt;
                      &lt;div class=&quot;uis_container uis_replenishment_date&quot;&gt;
                        &lt;div class=&quot;form-group&quot;&gt;
                          &lt;div class=&apos;input-group date uis_replenishment_date_input&apos;&gt;
                            &lt;input type=&apos;text&apos; class=&quot;uis_form-control_replenishment_date site_textbox&quot; /&gt;
                            &lt;span class=&quot;input-group-addon&quot; style=&quot;visibility:hidden;&quot;&gt;
                              &lt;span class=&quot;glyphicon glyphicon-time&quot;&gt;&lt;/span&gt;
                            &lt;/span&gt;

                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;uis_stock_set_mode uis_big_container uis_pre_order_date&quot; &gt;
                    &lt;div&gt;
                      &lt;div class=&quot;uis_container uis_pre_order_date&quot; &gt;
                        &lt;div class=&quot;form-group&quot;&gt;
                          &lt;div class=&apos;input-group date uis_pre_order_date_input&apos;&gt;
                            &lt;input type=&apos;text&apos; class=&quot;uis_form-control_pre_order_date site_textbox&quot; /&gt;
                            &lt;span class=&quot;input-group-addon&quot; style=&quot;visibility:hidden;&quot;&gt;
                              &lt;span class=&quot;glyphicon glyphicon-time&quot;&gt;&lt;/span&gt;
                            &lt;/span&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;uis_final_stock_sentence not_admin_elem&quot;&gt;&lt;/div&gt;
            &lt;div class=&quot;uis_price_opts&quot;&gt;&lt;/div&gt;
            &lt;div class=&quot;uis_custom_prices&quot;&gt;&lt;/div&gt;
            &lt;div class=&quot;uis_shipping_infos_product&quot;&gt;&lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;uis_opt block_section&quot;&gt;
          &lt;div class=&quot;admin_elem admin_title&quot;&gt;Product options &lt;small&gt;(Optional)&lt;/small&gt;&lt;/div&gt;
          &lt;div&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;block_section editor_interface uis_hidden_data&quot;&gt;
          &lt;div class=&quot;admin_elem admin_title&quot;&gt;Private information &lt;small&gt;(Optional)&lt;/small&gt;&lt;/div&gt;
          &lt;div class=uis_ref&gt;&lt;b&gt;Reference:&lt;/b&gt; &lt;input class=&quot;site_textbox&quot; type=text maxlength=30&gt;
            &lt;span class=&quot;fonticon helpEditor iconHelp&quot; help=&quot;Reference for the product which will only be shown in the order form and the backoffice so that you can easily prepare orders.&quot;&gt;?&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class=uis_private_notes&gt;&lt;b&gt;Private notes:&lt;/b&gt; &lt;textarea class=&quot;site_textbox&quot;&gt;&lt;/textarea&gt;
            &lt;span class=&quot;fonticon helpEditor iconHelp&quot; help=&quot;Private notes are only shown on the product edit page.&quot;&gt;?&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class=uis_order&gt;
            &lt;span class=&quot;fonticon helpEditor iconHelp&quot; help=&quot;You can change order of products by setting here a number. Products will be sorted with highest number first and by name.&quot;&gt;?&lt;/span&gt;
            &lt;b&gt;Sort by name priority:&lt;/b&gt; &lt;input class=&quot;site_textbox&quot; type=number min=0 step=1 max=10000 style=&quot;width: 4em;&quot;&gt;
          &lt;/div&gt;
          &lt;div class=uis_weight&gt;&lt;b&gt;Weight:&lt;/b&gt; &lt;input class=&quot;site_textbox&quot; type=text size=4&gt; grams
            &lt;span class=&quot;fonticon helpEditor iconHelp&quot; help=&quot;Specify here the weight of the product including the weight of the delivery package for an accurate calculation of shipping fee based on weight.&quot;&gt;?&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class=uis_vat_rate&gt;&lt;b&gt;Special vat rate:&lt;/b&gt; &lt;input class=&quot;site_textbox&quot; type=number min=0 step=0.1 max=100 style=&quot;width: 5em;&quot;&gt; %&lt;/div&gt;
        &lt;/div&gt;
      &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
        &lt;div class=&quot;block_section uis_desc_wrapper&quot;&gt;
          &lt;b class=&quot;admin_elem admin_title&quot;&gt;Description:&lt;/b&gt;
          &lt;div class=&quot;uis_td_desc&quot;&gt;
            &lt;div class=&quot;uit_tbl uit_tbl_m&quot;&gt;
              &lt;div class=&quot;uit_ct&quot;&gt;
                &lt;div class=&quot;tl&quot;&gt;&lt;/div&gt;
                &lt;div class=&quot;tr&quot;&gt;&lt;/div&gt;
                &lt;div class=&quot;br&quot;&gt;&lt;/div&gt;
                &lt;div class=&quot;bl&quot;&gt;&lt;/div&gt;
                &lt;div class=&quot;c&quot;&gt;
                  &lt;div class=&quot;uis_desc uit_cttxt uit_cttxt_m&quot; uitype=&quot;editor&quot; placeholder=&quot;Enter the product description here&quot; uiname=&quot;description&quot; uinocb=&quot;true&quot; data-editor_params=&apos;{&quot;enable_heading_insertion&quot;: true}&apos;&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;block_section uis_seo_description&quot;&gt;
          &lt;b class=&quot;admin_elem admin_title&quot;&gt;Search engine description &lt;small&gt;(Optional, 160 characters)&lt;/small&gt;&lt;/b&gt;
          &lt;textarea maxlength=160&gt;&lt;/textarea&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;</content><properties><hidden default='true' ignore_for_preset='true' name='show_cat_all' /><server_manage help='Add, delete, rename and order categories. Configure the categories displayed and the menu.' icon='folder' name='categories_manage' text='Categories and menu' url='/cpt_store/cat_manage' /><server_manage feature='uis_payment_methods' help='Configure the payment methods. Required to be able to receive orders.' icon='cb' name='payment_conf' text='Payment methods' url='/store_provider/all' /><server_manage feature='uis_shipping' help='Configure the shipping costs.' icon='send' name='shipping_conf' text='Shipping costs' url='/store_shipping/shipping/' /><server_manage feature='uis_billing' help='This feature allow the generation of valid bills for each received order.' icon='clipboard' name='billing_conf' text='Billing' url='/store_provider/billing/' /><server_manage feature='uis_stock' help='This feature manages your product stocks (and their options), when an order is placed on your online shop' icon='stock' name='stocks_conf' text='Stocks' url='/cpt_store/stock_manage/' /><server_manage feature='uis_cart_options' help='&lt;b&gt;Cart options allow to display a form at the cart step to ask additional information and offer extra customized services.&lt;/b&gt;&lt;br&gt;For example, you can add a drop-down menu to allow your customers to ask if the order should be gift-wrapped (&lt;i&gt;Without gift-wrap&lt;/i&gt;, &lt;i&gt;Paper wrap&lt;/i&gt; or &lt;i&gt;Box wrap&lt;/i&gt; with additional cost). You can also add a free input to let them specify a name, color, location, animal... or any other customized value which could be applied to their order.&lt;br&gt;Note that these options are for the whole cart and that, on top of that, each product can be configured individually to have their own specific options on the product page.' icon='plus_circle' name='cart_options' text='Cart options' url='/store_options/options/' /><server_manage feature='uis_coupons' help='Create and manage your store coupons' icon='order' name='coupons_conf' text='Discounts' url='/store_coupon/list/' /><server_manage feature='uis_terms' help='Configure the store Terms and store GDPR' icon='cgu' name='gdpr_manage' text='Terms and GDPR' url='/cpt_store/terms_manage' /></properties><design_properties><tabs display='Block|Elements'><tab><select class='uis_prop_style' default='&apos;m&apos;' display='Customizable|Material design|Small, with borders|Large, no borders|Horizontal list' help='Set the style of the product list.' name='style' values='c|m|s|l|h' /><number default='3' help='Set how many rows of products are shown per page.' maximum='25' minimum='1' name='rows' title='Rows' /><checkbox default='true' help='If checked, the height of the block will automatically be adapted to its content, possibly hiding blocks below it. In the other case a scrollbar will appear.' name='auto_size' value='Auto-Size' /><checkbox default='false' help='By activating this feature, &lt;b&gt;your visitors will not be able to download these images&lt;/b&gt; by right clicking on an image or by drag-dropping it or by browsing the source of the page.' name='protect' value='Anti-download' /><checkbox default='true' help='If checked, when the content of the page is loaded or the store page changes (product, shopping cart, category page...), the page will be automatically scrolled to the store block top.' name='auto_scroll' value='Auto-scroll' /><checkbox default='true' help='By activating this feature, your visitors will be able to &lt;b&gt;search your store&lt;/b&gt; for products or categories.' ignore_for_preset='true' name='search_field' value='Search field' /><checkbox class='uis_prop_sitew' default='true' feature='uis_stock' help='Enables stock status display: Available, Out of stock, Only X item(s) left.' name='show_stocks' value='Show stock status' /><checkbox default='false' help='If checked, will display &apos;price from&apos; before prices of products with price options on products list' name='show_price_from' value='Display &apos;price from&apos; for products with price options' /><number class='uis_prop_sitew_sub' default='10' help='Allows to set the minimum product quantity to display an alert message such as &apos;Only X item(s) left&apos;' maximum='25' minimum='1' name='stock_limit' title='Set minimum stock level' /><trigger_preset class='uis_prop_customizable' help='Several styles are available. Pick the one that best fits your store list.' icon='palette' text='Choose a style' trigger='manage_style' url='/cpt/store_styles' /></tab><tab><trigger_preset class='gtbackdrop_prop_custom' gt_type='backdrop' help='Select a predefined background style' icon='palette' mode='select' name='backdrop_preset' text='Background style' /><trigger_preset class='gtsearchbox_prop_custom' gt_type='searchbox' help='Select a predefined style for the store search field' icon='palette' mode='select' name='searchbox_preset' text='Search style' /><trigger_preset class='gtbutton_prop_custom' gt_type='button' help='Select a predefined style for the cart button' icon='palette' mode='select' name='cart_preset' text='Cart style' trigger='manage_style' /><trigger_preset class='gtbutton_prop_custom' gt_type='button' help='Select a predefined style for the add-to-cart buttons' icon='palette' mode='select' name='cta_preset' text='Buy button style' trigger='manage_style' /><trigger_preset class='gtbutton_prop_custom' gt_type='button' help='Select a predefined style for the buttons: previous/next step, payment methods...' icon='palette' mode='select' name='others_buttons_preset' text='Other button style' trigger='manage_style' /><trigger_preset class='gtbutton_prop_custom' gt_type='buttonsgroup' help='Select a predefined style for the list of categories' icon='palette' mode='select' name='categories_preset' text='Category style' /><trigger_preset class='gtbutton_prop_custom' gt_type='buttonsgroup' help='Select a predefined style for the pagination' icon='palette' mode='select' name='pagination_preset' text='Pagination style' /><trigger_preset class='gttextbox_prop_custom' gt_type='textbox' help='Select a predefined style for the text fields (such as the product quantities or the order form)' icon='palette' mode='select' name='textboxes_preset' text='Text field style' /></tab></tabs></design_properties><preset_properties><options design='true' name='options_background' sortable='false' title='Customize products' uniq='true'><option icon='select_all' name='opt_padding' title='Padding'><space default='[5,5,5,5]' name='padding' /></option><option icon='format_color_fill' name='opt_bg_color' title='Background color'><colors background='' default='[&apos;rgba(255,255,255,1)&apos;]' display='' elts='1' name='bg_color' /></option><option icon='flip_to_back' name='opt_shadow' title='Shadow'><box_shadow default='[45, 5, 0, 5, &apos;rgba(0,0,0,0.4)&apos;, false, &apos;3px 3px 5px 0px rgba(0,0,0,0.4)&apos;]' name='shadow' /></option><option icon='border_all' name='opt_border' title='Border'><border default='({&apos;all&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, true], &apos;bt&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;br&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bb&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bl&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false]})' name='border' /><html val='[hr]' /><radius default='[3, 3, 3, 3]' maximum='100' minimum='0' name='radius' /></option><option class='v_gap_prop' icon='arrow_tb' name='opt_v_gap' title='Vertical spacing'><slider default='10' maximum='40' minimum='0' name='v_gap' /></option><option icon='bi_arrow' name='opt_h_gap' title='Horizontal spacing'><slider default='10' maximum='40' minimum='0' name='h_gap' /></option><option icon='t_code' name='opt_css' title='Custom CSS'><css default='&apos;node{filter: blur(4px);}&apos;' name='css' /></option></options><slider class='items_container' default='230' maximum='350' minimum='20' name='image_height' title='Image height' /><checkbox default='false' name='display_gt_button' value='Button on the list' /><trigger_preset class='preset_gt_button' gt_type='button' mode='select' name='gt_button' /><slider class='items_container preset_gt_button' default='100' maximum='100' minimum='20' name='gt_button_width' title='Button width' /><options design='true' name='options_title' sortable='false' title='Customize titles' uniq='true'><option icon='sort_by_alpha' name='opt_font_size' title='Font size'><slider default='18' maximum='50' minimum='10' name='font_size' /></option><option allow_optional='true' icon='font_download' name='opt_font_weight' title='Font weight'><select default='700' display='*Light|Normal|Bold' name='font_weight' values='300|400|700' /></option><option icon='format_color_text' name='opt_text_color' title='Text color'><colors background='' default='[&apos;get_color(0,0)&apos;]' display='' elts='1' name='text_color' options='[{hide_alpha: true}]' /></option><option icon='format_align_center' name='opt_align' title='Align'><align default='&apos;center&apos;' name='align' with_justify='false' /></option><option icon='select_all' name='opt_padding' title='Padding'><space default='[5,5,5,5]' name='padding' /></option><option icon='select_all' name='opt_margin' title='Margin'><space default='[5,5,5,5]' name='margin' /></option><option icon='format_color_fill' name='opt_bg_color' title='Background color'><colors background='' default='[&apos;rgba(255,255,255,1)&apos;]' display='' elts='1' name='bg_color' /></option><option icon='border_all' name='opt_border' title='Border'><border default='({&apos;all&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, true], &apos;bt&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;br&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bb&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bl&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false]})' name='border' /><html val='[hr]' /><radius default='[3, 3, 3, 3]' maximum='100' minimum='0' name='radius' /></option><option icon='t_code' name='opt_css' title='Custom CSS'><css default='&apos;node{filter: blur(4px);}&apos;' name='css' /></option></options><options design='true' name='options_price' sortable='false' title='Customize prices' uniq='true'><option icon='sort_by_alpha' name='opt_font_size' title='Font size'><slider default='18' maximum='30' minimum='10' name='font_size' /></option><option allow_optional='true' icon='font_download' name='opt_font_weight' title='Font weight'><select default='700' display='*Light|Normal|Bold' name='font_weight' values='300|400|700' /></option><option icon='format_color_text' name='opt_text_color' title='Text color'><colors background='' default='[&apos;get_color(0,0)&apos;]' display='' elts='1' name='text_color' options='[{hide_alpha: true}]' /></option><option icon='format_align_center' name='opt_align' title='Align'><align default='&apos;center&apos;' name='align' with_justify='false' /></option><option icon='select_all' name='opt_padding' title='Padding'><space default='[5,5,5,5]' name='padding' /></option><option icon='select_all' name='opt_margin' title='Margin'><space default='[5,5,5,5]' name='margin' /></option><option icon='format_color_fill' name='opt_bg_color' title='Background color'><colors background='' default='[&apos;rgba(255,255,255,1)&apos;]' display='' elts='1' name='bg_color' /></option><option icon='border_all' name='opt_border' title='Border'><border default='({&apos;all&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, true], &apos;bt&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;br&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bb&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bl&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false]})' name='border' /><html val='[hr]' /><radius default='[3, 3, 3, 3]' maximum='100' minimum='0' name='radius' /></option><option icon='t_code' name='opt_css' title='Custom CSS'><css default='&apos;node{filter: blur(4px);}&apos;' name='css' /></option></options><options design='true' name='options_strike_price' sortable='false' title='Customize strike-through prices' uniq='true'><option icon='sort_by_alpha' name='opt_font_size' title='Font size'><slider default='18' maximum='40' minimum='10' name='font_size' /></option><option allow_optional='true' icon='font_download' name='opt_font_weight' title='Font weight'><select default='400' display='*Light|Normal|Bold' name='font_weight' values='300|400|700' /></option><option icon='format_color_text' name='opt_text_color' title='Text color'><colors background='' default='[&apos;get_color(0,0)&apos;]' display='' elts='1' name='text_color' options='[{hide_alpha: true}]' /></option><option allow_optional='true' icon='format_align_center' name='opt_align' title='Align'><align default='&apos;center&apos;' name='align' with_justify='false' /></option><option icon='select_all' name='opt_padding' title='Padding'><space default='[5,5,5,5]' name='padding' /></option><option icon='select_all' name='opt_margin' title='Margin'><space default='[5,5,5,5]' name='margin' /></option><option icon='format_color_fill' name='opt_bg_color' title='Background color'><colors background='' default='[&apos;rgba(255,255,255,1)&apos;]' display='' elts='1' name='bg_color' /></option><option icon='border_all' name='opt_border' title='Border'><border default='({&apos;all&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, true], &apos;bt&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;br&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bb&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bl&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false]})' name='border' /><html val='[hr]' /><radius default='[3, 3, 3, 3]' maximum='100' minimum='0' name='radius' /></option><option icon='art_track' name='opt_display' title='Display'><select default='&apos;inline&apos;' display='Inline|Block' name='display' values='inline|block' /></option><option icon='t_code' name='opt_css' title='Custom CSS'><css default='&apos;node{filter: blur(4px);}&apos;' name='css' /></option></options><options design='true' name='options_stocks' sortable='false' title='Customize stocks' uniq='true'><option icon='sort_by_alpha' name='opt_font_size' title='Font size'><slider default='18' maximum='30' minimum='10' name='font_size' /></option><option allow_optional='true' icon='font_download' name='opt_font_weight' title='Font weight'><select default='400' display='*Light|Normal|Bold' name='font_weight' values='300|400|700' /></option><option icon='format_color_text' name='opt_text_color' title='Text color'><colors background='' default='[&apos;#69c91a&apos;, &apos;#e87035&apos;, &apos;#b00&apos;]' display='In stock|Almost exhausted|Sold out' elts='3' name='text_color' options='[{hide_alpha: true}, {hide_alpha: true}, {hide_alpha: true}]' /></option><option icon='format_align_center' name='opt_align' title='Align'><align default='&apos;center&apos;' name='align' with_justify='false' /></option><option icon='select_all' name='opt_padding' title='Padding'><space default='[5,5,5,5]' name='padding' /></option><option icon='select_all' name='opt_margin' title='Margin'><space default='[5,5,5,5]' name='margin' /></option><option icon='format_color_fill' name='opt_bg_color' title='Background color'><colors background='' default='[&apos;rgba(255,255,255,0)&apos;, &apos;rgba(255,255,255,0)&apos;, &apos;rgba(255,255,255,0)&apos;]' display='In stock|Almost expired|Sold out' elts='3' name='bg_color' /></option><option icon='border_all' name='opt_border' title='Border'><border default='({&apos;all&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, true], &apos;bt&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;br&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bb&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false], &apos;bl&apos;:[3, &apos;solid&apos;, &apos;theme_color&apos;, false]})' name='border' /><html val='[hr]' /><radius default='[3, 3, 3, 3]' maximum='100' minimum='0' name='radius' /></option><option icon='t_code' name='opt_css' title='Custom CSS'><css default='&apos;node{filter: blur(4px);}&apos;' name='css' /></option></options></preset_properties></view><script>UI_List.UI_Store={initialize:function(t){this.cpt=t
;this.cpt.node.data(&quot;cpt_ui&quot;,this);UI_Store.addCpt(t)
;this.url=null;this.pageSelected=0;this.prodSelected=null
;this.catSelected=null;this.cat_ids=[];t.setOptions([&quot;locked&quot;])
;this.show_stocks_available=&quot;editor&quot;==v.mode||v.features.uis_stock
},onDisplay:function(t){var e=this;this.next_show=$.Deferred()
;var i=this.n={main:t,warn:t.find(&quot;.uis_warn&quot;),
catal:t.find(&quot;.uis_catalog&quot;),bill:t.find(&quot;.uis_bill&quot;),
billc:t.find(&quot;.uis_bill_c&quot;),cart:{main:t.find(&quot;.uis_cart&quot;)},
cat:t.find(&quot;.uis_cat&quot;),sort:t.find(&quot;.uis_sort&quot;),
pages:t.find(&quot;.uis_pages&quot;),list:t.find(&quot;.uis_list&quot;),
ul:t.find(&quot;.uis_list ul&quot;),search:t.find(&quot;.uis_search&quot;),
search_header:t.find(&quot;.uis_search_header&quot;),
search_counter:t.find(&quot;.uis_nbr_search_results&quot;),
suggestions_list:t.find(&quot;.ui_search_suggest&quot;),
gdpr:t.find(&quot;.component_gdpr_container&quot;)}
;i.main.data(&quot;cpt&quot;,this.cpt);var s=t.find(&quot;.uis_prod&quot;);i.prod={
main:s,id:s.find(&quot;.uis_prodid&quot;),name:s.find(&quot;.uis_name&quot;),
desc:s.find(&quot;.uis_desc&quot;),prices:s.find(&quot;.uis_prices&quot;),
shipping_infos:s.find(&quot;.uis_shipping_infos_product&quot;),
price:s.find(&quot;.uis_price&quot;),hidden:s.find(&quot;.uis_hidden_data&quot;),
strike:s.find(&quot;.uis_strike&quot;),
opt_price:s.find(&quot;.uis_price_opts&quot;),
custom_prices:s.find(&quot;.uis_custom_prices&quot;),
opt:s.find(&quot;.uis_opt&quot;),img:s.find(&quot;.uis_img&quot;),
imgs:s.find(&quot;.uis_imgs &gt; div&quot;),cat:s.find(&quot;.uis_prod_cat&quot;),
clist:s.find(&quot;.uis_prod_cat ul&quot;)}
;this.size_getter_el=$(&quot;&lt;div class=&apos;size_getter_el&apos;&gt;&lt;/div&gt;&quot;).appendTo(t).css(&quot;clear&quot;,&quot;both&quot;)[0]
;if(&quot;c&quot;==this.cpt.data.style&amp;&amp;!is_colored()){
this.cpt.data.style=&quot;m&quot;;this.onPropertyChanged([&quot;style&quot;])}
$(&quot;div.uis_search&quot;,t).generateComponentSearchbar({type:&quot;store&quot;,
placeholder:&quot;Search a product, category, ...&quot;,types:{
category:&quot;Categories&quot;,word:&quot;Keywords&quot;,product:&quot;Products&quot;}})
;this.member_controller=new MemberController(t,this.cpt)
;if(this.cpt.idserver)i.warn.html(&quot;&lt;img src=&apos;/assets/types/UI_Store/64.png&apos;&gt;&lt;br&gt;&lt;img src=&apos;/assets/loadingAnimation.gif&apos;&gt;&quot;);else{
var n=function(){
confirm(sprintf(&quot;Do you want to save this page (as a draft) to start the block configuration?&quot;))&amp;&amp;e.cpt.page.saveAndCleanHistory().then(function(){
sigCtl.emit(&quot;UI_Store.saved&quot;)})}
;i.warn.html(&quot;Save the page (as a draft) and start the block configuration.&quot;).css(&quot;cursor&quot;,&quot;pointer&quot;).click(n)
;setTimeout(n,0)}this.n.sort.find(&quot;span&quot;).click(function(){
var t=e._getProdListSort(),i=$(this).data(&quot;sort&quot;)
;e._setProdListSort(i,i!=t[0]||!t[1]);e.updateProdListGui()})
;this.cpt.newlyCreated&amp;&amp;is_customizable()&amp;&amp;(this.cpt.data.style=&quot;c&quot;)
;&quot;c&quot;==this.cpt.data.style&amp;&amp;(this.cpt.data.preset=this.cpt.data.preset||UI_Store.preset_data.default_preset_index)
;$.extend(this,componentGdpr);this.initGdpr()
;if(&quot;editor&quot;==v.mode){this.n.main.addClass(&quot;uic_editable&quot;)
;this.createProdEdit();i.prod.save.click(function(){
e.saveProduct()});i.prod.copy.click(function(){e.saveProduct(!0)
});i.prod.cancel.click(function(){
e.selectCat(null,null!=e.prodSelected)})
;i.prod.del.click(function(){
if(!e.send_once)if(e.prodSelected&amp;&amp;&quot;new&quot;!=e.prodSelected){
if(confirm(&quot;Do you really want to delete this product?\nIf you only want to hide it, untick the &apos;Show on the website&apos; checkbox.&quot;)){
this.send_once=!0;e.cpt.ask({request:&quot;delete_product&quot;,
id:i.prod.id.val()},function(t){
LinkSelector.clear_cache(&quot;products&quot;)
;UI_Store.update_nbr_products(t.nbr_products);e.send_once=!1
;UI_Store.del_product(e.prodSelected);e.prodSelected=null
;sigCtl.emit(&quot;UI_Store.updateProdListGui&quot;)},function(t){
e.send_once=!1
;dbg.error(&quot;Impossible to delete product.\n&quot;+t.join(&quot;\n&quot;))})}
}else{e.prodSelected=null
;sigCtl.emit(&quot;UI_Store.updateProdListGui&quot;)}})
;i.prod.img.parent().click(function(){filesSelector.open({
type:&quot;image&quot;,maxItems:25,
files:e.tmp_img&amp;&amp;e.tmp_img.length&gt;0&amp;&amp;!e.tmp_img[0].is_default?e.tmp_img:[]
},function(t){if(t&amp;&amp;t[0]){e.tmp_img=t
;UI_Store.setImage(e.n.prod.img,t,null,!0,e.n.prod.imgs)
;UI_Store._setZoomProduct(e.n.prod.img.find(&quot;img&quot;),t)}})})
;i.prod.main.click(function(t){e.n.prod.cat_select.hide()
;$(t.target).hasClass(&quot;uis_admin_cancel&quot;)||(e.prodChanged=!0)
;$(t.target).hasClass(&quot;uis_desc&quot;)||t.target.type&amp;&amp;(t.target.type.match(/textarea/i)||t.target.nodeName.match(/input/i))||e.updateCptSize()
});i.main.click(function(t){
editorController.resumed&amp;&amp;!t.target.className.match(/edit_ui_wrapper/)&amp;&amp;0==$(editorController.current_node).has(t.target).length&amp;&amp;editorController.current_node!=t.target&amp;&amp;e.deselectEditor()
});sigCtl.connect(&quot;Theme.changed&quot;,function(){e.reset=!0})
;sigCtl.connect(&quot;CSS.changed&quot;,function(){e.reset=!0})
}else i.prod.clist.click(function(t){var i=$(t.target)
;e.selectCat(parseInt(i.data(&quot;cat_id&quot;)),!0)})
;e.createCartHeaderNeeded=!1
;sigCtl.connect(&quot;UI_Store.createCartHeader&quot;,function(){
if(!e.createCartHeaderNeeded){e.createCartHeaderNeeded=!0
;e.next_show.done(function(){e.createCartHeaderNeeded=!1
;e.createCartHeader();e.applyPreset()})}})
;e.updateCatListGuiNeeded=!1
;sigCtl.connect(&quot;UI_Store.updateCatListGui&quot;,function(){
if(!e.updateCatListGuiNeeded){e.updateCatListGuiNeeded=!0
;e.next_show.done(function(){e.updateCatListGuiNeeded=!1
;e.updateCatListGui(!0)})}});e.updateProdListGuiNeeded=!1
;sigCtl.connect(&quot;UI_Store.updateProdListGui&quot;,function(){
if(!e.updateProdListGuiNeeded){e.updateProdListGuiNeeded=!0
;e.next_show.done(function(){e.updateProdListGuiNeeded=!1
;e.updateProdListGui()})}});var o=function(){try{
v.selectedPageFg.getVisibleCpts().concat(v.page_bg.getVisibleCpts()).find(function(t){
return t.component_type&amp;&amp;&quot;UI_Cart&quot;==t.component_type.class_name
})?e.n.cart.main.addClass(&quot;to_hide&quot;):e.n.cart.main.removeClass(&quot;to_hide&quot;)
}catch(t){setTimeout(function(){o()},500)}}
;e.cpt.onDisplayed.then(function(){e.cpt.id||o()})
;sigCtl.connect(&quot;UI_Cart.added&quot;,o)
;sigCtl.connect(&quot;UI_Cart.removed&quot;,o)
;sigCtl.getVariable(&quot;PageBg.shown&quot;,function(){
sigCtl.connect(&quot;Page.shown&quot;,function(t,i){
e.next_show.then(function(){i==e.cpt.page&amp;&amp;o()})})})
;sigCtl.connect(&quot;UI_Store.updateGdpr&quot;,function(){e.initGdpr()})
;this._setProdListStyle()
;UI_Store.getCategories(this.cpt).done(function(){
UI_Store.loadCookie();sigCtl.emit(&quot;UI_Store.createCartHeader&quot;)})
;$.extend(this,componentSearchBar)
;this.search_field_available=!0;this.bindSearch()
;this.onPropertyChanged([&quot;search_field&quot;]);this.updateCptClass()
;this.cpt.use_graphical_preset(&quot;button&quot;,[&quot;cta_preset&quot;,&quot;others_buttons_preset&quot;,&quot;cart_preset&quot;])
;this.cpt.use_graphical_preset(&quot;searchbox&quot;,[&quot;searchbox_preset&quot;])
;this.cpt.use_graphical_preset(&quot;textbox&quot;,[&quot;textboxes_preset&quot;])
;this.cpt.use_graphical_preset(&quot;backdrop&quot;,[&quot;backdrop_preset&quot;])
;this.cpt.use_graphical_preset(&quot;buttonsgroup&quot;,[&quot;pagination_preset&quot;,&quot;categories_preset&quot;])
;var r=function(){setTimeout(function(){
e.next_show.done(function(){e.updateCptClass()})},100)}
;$(window).resize(r);sigCtl.connect(&quot;Page.shown&quot;,r)
;$.fn.css_grid_support()||this.cpt.node.addClass(&quot;no_grid_support&quot;)
},createProdEdit:function(){if(!this.admin_prod_created){
var t=this,e=this.n;this.admin_prod_created=!0
;this.n.prod.name.html(&apos;&lt;input type=text class=&quot;uis_prod_name live_edit&quot; maxlength=&quot;200&quot; placeholder=&quot;Product name&quot;&gt;&apos;).find(&quot;input&quot;).click(function(){
var t=$(this);&quot;Product name&quot;==t.val()&amp;&amp;t.val(&quot;&quot;)})
;this.n.prod.price_strike_node=$(&apos;&lt;div class=&quot;prop_switch&quot; style=&quot;display: inline-block&quot;&gt;&lt;input id=&quot;toggle_strike_price_&apos;+this.cpt.getId()+&apos;&quot; type=&quot;checkbox&quot;&gt;&lt;label for=&quot;toggle_strike_price_&apos;+this.cpt.getId()+&apos;&quot;&gt;&lt;/label&gt;&lt;/div&gt;&apos;).prependTo($(&quot;.toggle_strike_price&quot;,this.n.prod.main))
;this.n.prod.price_strike_node.find(&quot;input[type=checkbox]&quot;).on(&quot;click&quot;,function(){
t._toggle_strike_price($(this).is(&quot;:checked&quot;))})
;this.n.prod.visi=$(&quot;&lt;div class=&apos;uis_visi editor_interface admin_elem&apos;&gt;&lt;b&gt;Visible&lt;/b&gt;&lt;div class=&apos;prop_switch&apos;&gt;&lt;input id=&apos;uis_visi_&quot;+this.cpt.getId()+&quot;&apos; type=&apos;checkbox&apos;&gt;&lt;label for=&apos;uis_visi_&quot;+this.cpt.getId()+&quot;&apos;&gt;&lt;/label&gt;&lt;/div&gt;&lt;/div&gt;&quot;).insertAfter(e.prod.hidden)
;this.n.prod.main.find(&quot;.uis_digital&quot;).remove()
;this.n.prod.digital=$(&quot;&lt;div class=uis_digital&gt;&lt;b&gt;Digital product:&lt;/b&gt; &lt;div class=&apos;prop_switch&apos; style=&apos;display:inline&apos;&gt;&lt;input id=&apos;uis_digital_&quot;+this.cpt.getId()+&quot;&apos; type=&apos;checkbox&apos;&gt;&lt;label for=&apos;uis_digital_&quot;+this.cpt.getId()+&quot;&apos;&gt;&lt;/label&gt;&lt;/div&gt;&lt;span class=&apos;uis_set_attachments admin_elem ib edit_btn&apos;&gt;Set digital content&lt;/span&gt;&lt;/div&gt;&quot;).insertBefore($(&quot;.uis_vat_rate&quot;,e.prod.hidden))
;this.n.prod.digital.append(HelpTagEditor(&quot;Add files or protected pages with limited access. The links will be sent upon order payment.&quot;))
;this.n.prod.main.find(&quot;.uis_prod_bloc_stock .uis_stock&quot;).remove()
;var i=$(&quot;&lt;div class=&apos;uis_stock admin_elem&apos;&gt;&lt;input type=&apos;text&apos; class=&apos;uis_set_stock live_edit site_textbox&apos; /&gt; items in stock&lt;/label&gt;&lt;/div&gt;&quot;).prependTo(e.prod.main.find(&quot;.uis_prod_bloc_stock&quot;))
;i.append(HelpTagEditor(&quot;Maximum number of items a customer can buy (between 0 and 99999).&lt;ul&gt;&lt;li&gt;&lt;b&gt;If you enter 0&lt;/b&gt;, customers will see this product, but will not be able to add it to the shopping cart.&lt;/li&gt;&lt;li&gt;&lt;b&gt;If you enter 1&lt;/b&gt;, they will be able to buy only one product.&lt;/li&gt;&lt;li&gt;&lt;b&gt;If more than 1&lt;/b&gt;, they will be able to choose how many items they want to order.&lt;/li&gt;&lt;/ul&gt;&quot;))
;i.append(&apos;&lt;div class=&quot;uis_stock_preview&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&apos;)
;var s=$(&quot;.uis_stock_preview &gt; div&quot;,t.cpt.node)
;this.n.prod.max=i.find(&quot;input.uis_set_stock&quot;,this.cpt.node).addClass(&quot;uis_admin_max&quot;).restrictTo(&quot;int&quot;,0,99999,null,function(){
var e=parseInt(this.val()),i=t.custom_stock_sentence(t.prodSelected,{
stock_mode:&quot;default_sentence&quot;,p_max:e})
;if(&quot;default_sentence&quot;==$(&quot;[name=stock_mode]:checked&quot;,t.n.main).val()){
s.removeClass(&quot;hight low uisa_s&quot;);s.html(i[0]).addClass(i[1])}})
;e.prod.clist.click(function(e){var i=$(e.target)
;t.tmp_cat.removeAll(i.data(&quot;cat_id&quot;));t._setProdCat()})
;$(&quot;&lt;div class=&apos;uis_cat_select uis_cat_list disable_drag&apos;&gt;&lt;/div&gt;&quot;).appendTo(this.n.prod.cat)
;this.n.prod.cat_none=$(&quot;&lt;span class=&apos;uis_admin_cat_none&apos;&gt;New category&lt;/span&gt;&quot;).appendTo(this.n.prod.cat).hide().click(function(){
$(&quot;button[data_name=categories_manage]:visible&quot;).click()})
;this.n.prod.cat.find(&quot;.uis_prod_cat_label .uis_addCat_wrapper&quot;).remove()
;this.n.prod.cat_add=$(&quot;&lt;div class=&apos;uis_addCat_wrapper admin_elem ib&apos;&gt;&lt;span class=&apos;uis_addCat edit_btn&apos;&gt;Add a category to this product&lt;/span&gt;&lt;/div&gt;&quot;).appendTo(e.prod.cat.find(&quot;.uis_prod_cat_label&quot;)).click(function(){
e.prod.cat_select.toggle();return!1})
;this.n.prod.cat_select=$(&quot;&lt;ul class=&apos;uis_admin_cat_select&apos;&gt;&lt;/ul&gt;&quot;).appendTo(e.prod.cat_add).hide().click(function(e){
var i=$(e.target).data(&quot;cat_id&quot;)
;if(&quot;new&quot;==i)$(&quot;button[data_name=categories_manage]:visible&quot;).click();else{
i&amp;&amp;t.tmp_cat.push(i);t._setProdCat()}})
;$.each([[&quot;default_sentence&quot;,function(){
return parseInt($(&quot;.uis_set_stock&quot;,t.cpt.node).val())
},!0],[&quot;custom_sentence&quot;,function(){
return $(&quot;.uis_custom_stock_sentence_input&quot;,t.cpt.node).val()
}],[&quot;replenishment&quot;,function(){
return $(&quot;.uis_replenishment_date_input&quot;,t.cpt.node).data(&quot;DateTimePicker&quot;).viewDate().utc().format()
}],[&quot;pre_order&quot;,function(){
return $(&quot;.uis_pre_order_date_input&quot;,t.cpt.node).data(&quot;DateTimePicker&quot;).viewDate().utc().format()
}]],function(e,i){
t.cpt.node.on(&quot;change&quot;,&quot;[name=stock_mode][value=&quot;+i[0]+&quot;]&quot;,function(){
$(&quot;.uis_stock_set_mode&quot;,t.cpt.node).removeClass(&quot;selected&quot;)
;$(this).closest(&quot;.uis_stock_set_mode&quot;).addClass(&quot;selected&quot;)
;$(&quot;.uis_colors_wrapper&quot;,t.cpt.node).toggle(&quot;default_sentence&quot;!=i[0])
;if(&quot;custom_sentence&quot;==i[0]||&quot;default_sentence&quot;==i[0]){
var e=t.custom_stock_sentence(t.prodSelected,{stock_mode:i[0],
val:i[1],p_max:i[2]?i[1]():null})
;s.html(e[0]).removeClass(&quot;hight low uisa_s&quot;).addClass(e[1])
}else t.custom_stock_sentence(t.prodSelected,{stock_mode:i[0],
val:i[1]}).done(function(){
s.html(t.custom_stock_sentence_value[0]).removeClass(&quot;hight low uisa_s&quot;).addClass(t.custom_stock_sentence_value[1])
})})})
;$(&quot;.uis_stock_infos&quot;,t.cpt.node).append(HelpTagEditor(&quot;You can customize the availability of the product here. It can be &lt;ul&gt;&lt;li&gt;&lt;b&gt;In stock&lt;/b&gt;, &lt;b&gt;Only X products left&lt;/b&gt;, &lt;b&gt;Sold out&lt;/b&gt;: an automatic sentence which depends of the stock number&lt;/li&gt;&lt;li&gt;&lt;b&gt;Will be back soon&lt;/b&gt;, &lt;b&gt;Available on october 10th&lt;/b&gt;, &lt;b&gt;Discountinued&lt;/b&gt;: a fixed custom sentence&lt;/li&gt;&lt;li&gt;&lt;b&gt;Available in X days&lt;/b&gt;: a sentence based on a replenishment date&lt;/li&gt;&lt;li&gt;&lt;b&gt;Available on XX/XX/XXXX&lt;/b&gt;: a pre-order availability date&lt;/li&gt;&lt;/ul&gt; For the automatic mode, the color of the text is automatic (green when in stock, orange when the stock is limited, and red when out of stock). For the other modes, you can choose the sentence color. If you set the stock number to 0, the price and add to cart button will not be shown, preventing visitors from ordering. Just set a number above 0 to enable price display and add to cart button.&lt;br&gt;&lt;br&gt;On top of those options, you can set the visibility of the stock sentence and limited stock threshold on each store block, in the design panel, and you can set a site-wide custom sold-out text displayed when the stock is 0 in automatic mode, in the &lt;i&gt;Stocks&lt;/i&gt; option of the content panel.&quot;))
;$(&quot;.uis_custom_stock_sentence &gt; div&quot;,t.cpt.node).append(HelpTagEditor(&quot;You can set your own custom stock sentence here.&lt;br&gt;For exemple, if you have a constant &lt;b&gt;order delay&lt;/b&gt;, you can show something like &apos;Available in 1 week&apos;.&lt;br&gt;If you set the stock number to 0, the price and add to cart button will not be shown.&lt;br&gt;You can also choose your sentence color by clicking on the colored squares below.&quot;))
;$(&quot;&lt;div class=&apos;uis_custom_stock_default_sentence_2 editor_interface&apos;&gt;&lt;input class=&apos;rad_blue rad uis_custom_stock_default_sentence_radiobutton&apos; id=&apos;uis_custom_stock_default_sentence_&quot;+this.cpt.getId()+&quot;&apos; type=&apos;radio&apos; name=&apos;stock_mode&apos; value=&apos;default_sentence&apos;&gt;&lt;label for=&apos;uis_custom_stock_default_sentence_&quot;+this.cpt.getId()+&quot;&apos;&gt;Use automatic stock&lt;/label&gt; &lt;/div&gt;&quot;).insertBefore($(&quot;.uis_container.uis_custom_stock_default_sentence&quot;,t.cpt.node))
;$(&quot;&lt;div class=&apos;uis_custom_stock_sentence_2 editor_interface&apos;&gt;&lt;input class=&apos;rad_blue rad uis_custom_stock_sentence_radiobutton hight&apos; id=&apos;uis_custom_stock_sentence_&quot;+this.cpt.getId()+&quot;&apos; type=&apos;radio&apos; name=&apos;stock_mode&apos; value=&apos;custom_sentence&apos;&gt;&lt;label for=&apos;uis_custom_stock_sentence_&quot;+this.cpt.getId()+&quot;&apos;&gt;Custom sentence &lt;input type=&apos;text&apos; class=&apos;uis_custom_stock_sentence_input site_textbox&apos; id=&apos;uis_custom_stock_sentence_text_&quot;+this.cpt.getId()+&quot;&apos;&gt;&lt;/label&gt; &lt;/div&gt;&quot;).insertBefore($(&quot;.uis_container.uis_custom_stock_sentence&quot;,t.cpt.node))
;HelpTagEditor(&quot;Choose this option to set a replenishment date. Visitors will see the availability delay.&lt;br&gt;On this date, the product will automatically switch to automatic stock mode with the configured stock number. If you set the stock number to 0, the price and add to cart button will not be shown.&lt;br&gt;You can also choose your sentence color by clicking on the colored squares below.&quot;).appendTo($(&quot;.uis_replenishment_date &gt; div:first&quot;,this.cpt.node))
;$(&quot;&lt;div class=&apos;uis_replenishment_date editor_interface&apos;&gt;&lt;input class=&apos;rad_blue rad uis_replenishment_date_radiobutton&apos; id=&apos;uis_replenishment_date_radiobutton_&quot;+this.cpt.getId()+&quot;&apos; type=&apos;radio&apos; name=&apos;stock_mode&apos; value=&apos;replenishment&apos;&gt;&lt;label for=&apos;uis_replenishment_date_radiobutton_&quot;+this.cpt.getId()+&quot;&apos; &gt;Replenishment date &lt;/label&gt; &lt;/div&gt;&quot;).insertBefore($(&quot;.uis_container.uis_replenishment_date&quot;,t.cpt.node))
;HelpTagEditor(&quot;Choose this option to set a replenishment date. Visitors will see the availability delay.&lt;br&gt;On this date, the product will automatically switch to automatic stock mode with the configured stock number. If you set the stock number to 0, the price and add to cart button will not be shown.&lt;br&gt;You can also choose your sentence color by clicking on the colored squares below.&quot;).appendTo($(&quot;.uis_replenishment_date &gt; div:first&quot;,this.cpt.node))
;$(&quot;&lt;div class=&apos;uis_pre_order_date editor_interface&apos;&gt;&lt;input class=&apos;rad_blue rad uis_pre_order_date_radiobutton&apos; id=&apos;uis_pre_order_date_radiobutton_&quot;+this.cpt.getId()+&quot;&apos;type=&apos;radio&apos; name=&apos;stock_mode&apos; value=&apos;pre_order&apos;&gt;&lt;label for=&apos;uis_pre_order_date_radiobutton_&quot;+this.cpt.getId()+&quot;&apos;&gt;Pre-order date&lt;/label&gt; &lt;/div&gt;&quot;).insertBefore($(&quot;.uis_container.uis_pre_order_date&quot;,t.cpt.node))
;HelpTagEditor(&quot;Choose this option to set a pre-order delivery date. Visitors will see the date of availability. The add to cart button will also be renamed to &apos;Pre-order&apos;.&lt;br&gt;On this date, the product will automatically switch to automatic stock mode with the configured stock number.&lt;br&gt;You can also choose your sentence color by clicking on the colored squares below.&quot;).appendTo($(&quot;.uis_pre_order_date &gt; div:first&quot;,t.cpt.node))
;$(&quot;&lt;span class=&apos;uis_colors_wrapper&apos;&gt;&lt;span class=&apos;uis_custom_stock_sentence_color red selected_color&apos; data-color=&apos;red&apos;&gt;&lt;/span&gt;&lt;span class=&apos;uis_custom_stock_sentence_color orange&apos; data-color=&apos;orange&apos;&gt;&lt;/span&gt;&lt;span class=&apos;uis_custom_stock_sentence_color green&apos; data-color=&apos;green&apos; &gt;&lt;/span&gt;&lt;/span&gt;&quot;).appendTo($(&quot;.uis_stock_preview&quot;,t.cpt.node))
;$(&quot;.uis_container.uis_replenishment_date, .uis_container.uis_pre_order_date&quot;,t.cpt.node).click(function(t){
$(t.target).is(&quot;.glyphicon-time&quot;)||$(this).find(&quot;.glyphicon-time&quot;).click()
});var n={red:&quot;uisa_s&quot;,orange:&quot;low&quot;,green:&quot;hight&quot;}
;$(&quot;.uis_custom_stock_sentence_color&quot;,t.cpt.node).click(function(){
$(&quot;.uis_custom_stock_sentence_color&quot;,t.cpt.node).removeClass(&quot;selected_color&quot;)
;$(this).addClass(&quot;selected_color&quot;);var e=$(this).data(&quot;color&quot;)
;s.removeClass(&quot;hight low uisa_s&quot;).addClass(n[e])
;t.prodSelected.tmp_color=e})
;$(&quot;.uis_stock_sentence_show_more&quot;).click(function(){
$(&quot;.uis_more_stock_sentence_div&quot;,t.cpt.node).slideToggle(300)
;$(this).closest(&quot;.uis_prod_bloc&quot;).toggleClass(&quot;open&quot;)})
;$(&quot;.uis_replenishment_date_input, .uis_pre_order_date_input&quot;,t.cpt.node).datetimepicker({
format:&quot;LL&quot;}).on(&quot;dp.change&quot;,function(){
$(this).closest(&quot;.uis_stock_set_mode&quot;).find(&quot;input[type=radio]&quot;).trigger(&quot;change&quot;)
})
;$(&quot;input.uis_set_stock&quot;,t.cpt.node).on($.change_events,function(){
$(&quot;[name=stock_mode][value=default_sentence]&quot;).is(&quot;:checked&quot;)||$(&quot;[name=stock_mode][value=default_sentence]&quot;,t.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
})
;$(&quot;.uis_custom_stock_sentence_input&quot;,t.cpt.node).on($.change_events,function(){
$(&quot;[name=stock_mode][value=custom_sentence]&quot;,t.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
}).on(&quot;keyup&quot;,function(){
var e=this,i=t.custom_stock_sentence(t.prodSelected,{
stock_mode:&quot;custom_sentence&quot;,val:function(){return $(e).val()}})
;s.html(i[0]).removeClass(&quot;hight low uisa_s&quot;).addClass(i[1])})
;$(&quot;.uis_container.uis_replenishment_date&quot;,t.cpt.node).on($.change_events,function(){
$(&quot;[name=stock_mode][value=replenishment]&quot;,t.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
})
;$(&quot;.uis_container.uis_pre_order_date&quot;,t.cpt.node).on($.change_events,function(){
$(&quot;[name=stock_mode][value=pre_order]&quot;,t.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
})
;HelpTagEditor(&quot;Strike-through price to show a promotion on this product&quot;).appendTo($(&quot;.uis_strike_conf&quot;,e.prod.main))
;HelpTagEditor(&quot;You can set custom prices which depends on the ordered quantity or/and the customer visiting your website.&lt;br&gt;Custom prices can be percent discount of normal price or fixed unit price replacing the normal price.&lt;br&gt;To set volume prices, add new lines with member group set to Any.&lt;br&gt;To set member group prices, for example for your resellers, first you need to create a group and add members to it from My websites/Blocks/Member, then, here, choose the group in the list and set the quantity to one.&lt;br&gt;&lt;br&gt;Specific group prices have priority over quantity prices.&quot;).insertAfter(e.prod.main.find(&quot;.uis_custom_prices_header&quot;))
;var o=$(&apos;&lt;div class=&quot;uis_cmd_p navbar_editor_blocks admin_elem&quot;&gt;&lt;/div&gt;&apos;).prependTo(e.prod.main)
;this.n.prod.cancel=$(&quot;&lt;div class=&apos;helpEditor ned_item fonticon uis_admin_cancel&apos; help=&apos;Cancel&apos; data-position=&apos;top&apos; data-color=&apos;blue&apos;&gt;&quot;+$.fn.fonticon(&quot;arrow_width_left&quot;)+&quot;&lt;/div&gt;&quot;).appendTo(o)
;this.n.prod.del=$(&quot;&lt;div class=&apos;helpEditor ned_item fonticon uis_admin_del&apos; help=&apos;Delete&apos; data-position=&apos;top&apos; data-color=&apos;blue&apos;&gt;&quot;+$.fn.fonticon(&quot;close&quot;)+&quot;&lt;/div&gt;&quot;).appendTo(o)
;this.n.prod.copy=$(&quot;&lt;div class=&apos;helpEditor ned_item fonticon uis_admin_copy&apos; help=&apos;Duplicate&apos; data-position=&apos;top&apos; data-color=&apos;blue&apos;&gt;&quot;+$.fn.fonticon(&quot;dupplicate&quot;)+&quot;&lt;/div&gt;&quot;).appendTo(o)
;this.n.prod.save=$(&quot;&lt;div class=&apos;helpEditor ned_item fonticon uis_admin_save&apos; help=&apos;Save &amp;amp; Publish&apos; data-position=&apos;top&apos; data-color=&apos;blue&apos;&gt;&quot;+$.fn.fonticon(&quot;apply&quot;)+&quot;&lt;/div&gt;&quot;).appendTo(o)
}this.n.prod.digital=this.n.prod.main.find(&quot;.uis_digital&quot;)
;this.n.prod.visi=this.n.prod.main.find(&quot;.uis_visi&quot;)
;this.n.prod.price_strike_node=this.n.prod.main.find(&quot;.toggle_strike_price &gt; div.prop_switch&quot;)
;this.n.prod.cat_add=this.n.prod.cat.find(&quot;.uis_addCat_wrapper&quot;)
;this.n.prod.cat_none=this.n.prod.cat.find(&quot;.uis_admin_cat_none&quot;)
;this.n.prod.max=this.cpt.node.find(&quot;.uis_admin_max&quot;)
;this.n.prod.cancel=this.n.prod.main.find(&quot;.uis_admin_cancel&quot;)
;this.n.prod.del=this.n.prod.main.find(&quot;.uis_admin_del&quot;)
;this.n.prod.copy=this.n.prod.main.find(&quot;.uis_admin_copy&quot;)
;this.n.prod.save=this.n.prod.main.find(&quot;.uis_admin_save&quot;)
;this.n.prod.cat_select=this.n.main.find(&quot;.uis_admin_cat_select&quot;)
},onPropertyChanged:function(t){var e=this
;t.include(&quot;search_field&quot;)&amp;&amp;this.n.search.toggle(!(!this.search_field_available||!this.cpt.data.search_field))
;if(t.include(&quot;categories_manage&quot;)){UI_Store.load_categories={}
;UI_Store.getCategories(this.cpt).done(function(t){
LinkSelector.clear_cache(&quot;products&quot;)
;e.cpt.data.show_cat_all=t.show_cat_all})}
t.include(&quot;gdpr_manage&quot;)&amp;&amp;UI_Store.update_gdpr()
;t.include(&quot;payment_conf&quot;)&amp;&amp;UI_Store.getPaymentConf(function(){
UI_Store._cur=null;UI_Store.updateCartHtml()
;sigCtl.emit(&quot;UI_Store.createCartHeader&quot;)
;sigCtl.emit(&quot;UI_Store.updateCart&quot;)
;sigCtl.emit(&quot;UI_Store.updateProdListGui&quot;)})
;if(t.include(&quot;style&quot;)){
[&quot;m&quot;,&quot;c&quot;].include(this.cpt.data.style)&amp;&amp;!$(&quot;.accept_bg&quot;).length&amp;&amp;statusController.message(&quot;New feature: to use this feature you can create a new website free of charge. &lt;a href=https://www.sitew.com/FAQ-sur-la-realisation-de-site/oi-Beneficier-des-nouvelles-fonctionnalites-de-Design&gt;More info&lt;/a&gt;&quot;,&quot;warning&quot;,5e3)
;this._setProdListStyle();this.updateProdListGui()
;this._changeProperties()}
t.include(&quot;auto_size&quot;)&amp;&amp;this.updateCptSize()
;if(t.include(&quot;rows&quot;)){this.items_per_row=null
;if(!this.prodSelected){clearTimeout(this.rwto)
;this.rwto=setTimeout(function(){e.updateProdListGui()},500)}}
if(t.include(&quot;show_stocks&quot;)||t.include(&quot;stock_limit&quot;)||t.include(&quot;show_price_from&quot;)){
this.updateProdListGui();this._changeProperties()}
t.include(&quot;show_stocks&quot;)&amp;&amp;this.cpt.data.show_stocks&amp;&amp;versionController.disabledOnViewer(&quot;uis_stock&quot;)
;if(t.include(&quot;cta_preset&quot;)||t.include(&quot;others_buttons_preset&quot;)||t.include(&quot;cart_preset&quot;)||t.include(&quot;backdrop_preset&quot;)||t.include(&quot;searchbox_preset&quot;)||t.include(&quot;textboxes_preset&quot;)||t.include(&quot;pagination_preset&quot;)||t.include(&quot;categories_preset&quot;)||t.include(&quot;preset_properties&quot;)||t.include(&quot;style&quot;)||t.include(&quot;preset&quot;)){
this.applyPreset();t.find(function(t){
return t.match(/gt_button$/)||[&quot;preset_reverted&quot;,&quot;style&quot;,&quot;preset&quot;].include(t)
})&amp;&amp;this.updateProdListGui()}this._showProp()},
_showProp:function(){
var t=$(this.component.propertyNode).add(this.component.propertyDesignNode)
;$(&quot;.gtsearchbox_prop_custom&quot;,t).toggle(!!this.cpt.data.search_field)
;$(&quot;.gtbutton_prop_custom, .gtsearchbox_prop_custom, .gtbackdrop_prop_custom&quot;,t).toggle(GraphicalType.available)
;$(&quot;.uis_prop_customizable&quot;,t).toggle(&quot;c&quot;==this.cpt.data.style&amp;&amp;GraphicalType.available)
;GraphicalType.available||$(&quot;select.uis_prop_style option[value=c]&quot;,t).remove()
;$(&quot;.preset_gt_button&quot;,t).hide()
;var e=presetController.find(this.cpt.component_type_id,null,this.cpt.data.preset)
;e&amp;&amp;e.data.display_gt_button&amp;&amp;$(&quot;.preset_gt_button&quot;,t).show()
;is_customizable()&amp;&amp;$(&quot;select.uis_prop_style&quot;,t).remove()},
_changeProperties:function(){$(&quot;.uis_prop_sitew_sub&quot;).hide()
;this.cpt.data.show_stocks&amp;&amp;$(&quot;.uis_prop_sitew_sub&quot;).show()},
onSelect:function(){var t=this
;this.n.main.addClass(&quot;block_selected&quot;);t._updateCptSize()
;this.updateGdpr();this._changeProperties()
;if(presetController.find(this.cpt.component_type_id,null,this.cpt.data.preset)){
presetController.load_panel(this.cpt,this.cpt.data.preset)
;this.cpt.component_type.default_preset=parseInt(this.cpt.data.preset)
}this._showProp()},onDeselect:function(){
this.n.main.removeClass(&quot;block_selected&quot;);this._updateCptSize()
;this.n.prod.img.editable_node({action:&quot;destroy&quot;})
;this.n.prod.desc.editable_node({action:&quot;destroy&quot;})},
onEdit:function(){},onShow:function(){
this.cpt.id&amp;&amp;UI_Store.load_categories[this.cpt.id]&amp;&amp;&quot;resolved&quot;==UI_Store.load_categories[this.cpt.id].state()&amp;&amp;UI_Store.load_categories[this.cpt.id].then(function(t){
UI_Store.update_category_list(t.categories)});if(this.reset){
this.reset=null;this._setProdListStyle();this.selectCat(null,!0)
}else this._setUrl();this.n.list.find(&quot;h3&quot;).ellipsis()
;$(&quot;input&quot;,this.n.search).val(&quot;&quot;).change()
;this.next_show.resolve()},onHide:function(){
this.next_show=$.Deferred()},onHashChange:function(){
UI_Store._setZoomProduct(this.n.prod.main,null,!0)
;this._setUrl()},deselectEditor:function(){if(&quot;editor&quot;==v.mode){
var t=this;editorController.deselect()
;this.n.prod.desc.is(&quot;:visible&quot;)&amp;&amp;this.n.prod.desc.editable_node({
type:&quot;text&quot;,editor_params:{onChange:function(){
t._updateCptSize()}}})}},saveProduct:function(t){
if(!this.send_once){var e=this,i=this.n
;if(this.prodSelected&amp;&amp;&quot;new&quot;!=this.prodSelected&amp;&amp;this.prodSelected.desc==undefined)return setTimeout(function(){
e.saveProduct(t)},100);if(t){this.prodSelected=&quot;new&quot;
;i.prod.id.val(&quot;&quot;)}this.deselectEditor();this.send_once=!0
;var s=[]
;$(&quot;.uis_custom_prices_tbody tr&quot;,i.prod.main).each(function(){
var t=$(this),e=parseFloat($(&quot;.&quot;+t.data(&quot;type&quot;),t).val())
;s.push({type:t.data(&quot;type&quot;),
value:&quot;amount&quot;==t.data(&quot;type&quot;)?UI_Store.convert_with_vat(e):e,
group_id:$(&quot;select[name=member_groups]&quot;,t).val(),
quantity:parseInt($(&quot;.quantity&quot;,t).val())})});this.cpt.ask({
request:&quot;update_product&quot;,id:i.prod.id.val(),
name:i.prod.name.find(&quot;input&quot;).val(),
desc:editorController.getContent(i.prod.desc),
opts:this.tmp_opts,stocks:this.tmp_stocks,img:this.tmp_img,
price:UI_Store.convert_with_vat(i.prod.price.find(&quot;input&quot;).val()),
weight:i.prod.hidden.find(&quot;.uis_weight input&quot;).val(),
reference:i.prod.hidden.find(&quot;.uis_ref input&quot;).val(),
private_notes:i.prod.hidden.find(&quot;.uis_private_notes textarea&quot;).val(),
order:i.prod.hidden.find(&quot;.uis_order input&quot;).val(),
digital:i.prod.digital.find(&quot;input&quot;).is(&quot;:checked&quot;),
attachments:this.attachments_tmp&amp;&amp;this.attachments_tmp.length&gt;0?this.attachments_tmp:null,
strike:UI_Store.convert_with_vat(i.prod.main.find(&quot;.uis_strike_input input&quot;).val()),
seo_description:$(&quot;.uis_seo_description textarea&quot;,i.prod.main).val(),
max:i.prod.max?i.prod.max.val():999,
visible:i.prod.visi.find(&quot;input&quot;).is(&quot;:checked&quot;),
category_ids:e.tmp_cat,
stock_mode:$(&quot;[name=stock_mode]:checked&quot;,this.cpt.node).val(),
custom_stock_sentence:$(&quot;.uis_custom_stock_sentence_input&quot;,this.cpt.node).val(),
custom_stock_sentence_color:$(&quot;.uis_custom_stock_sentence_color.selected_color&quot;,this.cpt.node).data(&quot;color&quot;),
replenishment_date:$(&quot;.uis_replenishment_date_input&quot;).data(&quot;DateTimePicker&quot;).viewDate().utc().format(),
pre_order_date:$(&quot;.uis_pre_order_date_input&quot;).data(&quot;DateTimePicker&quot;).viewDate().utc().format(),
offset_zone:(new Date).getTimezoneOffset(),custom_prices:s
},function(t){LinkSelector.clear_cache(&quot;products&quot;)
;UI_Store.update_nbr_products(t.nbr_products);e.send_once=!1
;e.prodSelected&amp;&amp;&quot;new&quot;!=e.prodSelected&amp;&amp;UI_Store.del_product(e.prodSelected)
;UI_Store.add_product(t.product);e.prodSelected=null
;sigCtl.emit(&quot;UI_Store.updateProdListGui&quot;)
;t.product.disabled_on_viewer&amp;&amp;versionController.disabledOnViewer(&quot;uis_unlimited_products&quot;)
},function(t){e.send_once=!1
;dbg.error(&quot;Impossible to update product.\n&quot;+t.join(&quot;\n&quot;))
;statusController.message(t.join(&quot;\n&quot;),&quot;warning&quot;)})}},
updateCptClass:function(){
this.cpt.node.removeClass(&quot;uis_s0 uis_s1 uis_s2 uis_prod_responsive uis_sf&quot;)
;var t=this.cpt.node.width(),e=&quot;uis_s2&quot;
;t&lt;400?e=&quot;uis_sf&quot;:t&lt;700?e=&quot;uis_s0&quot;:t&lt;1e3&amp;&amp;(e=&quot;uis_s1&quot;);if(t&lt;({
s:450}[this.cpt.data.style]||580)){
this.cpt.node.addClass(&quot;uis_prod_responsive&quot;)
;this.cpt.node.find(&quot;.uis_total_label,.uis_coup&quot;).attr(&quot;colspan&quot;,2)
}else this.cpt.node.find(&quot;.uis_total_label,.uis_ship,.uis_coup&quot;).attr(&quot;colspan&quot;,3)
;this.cpt.node.addClass(e)},onResizeStop:function(){
this.cpt.W()&lt;320&amp;&amp;this.cpt.setSize({w:320});this.onResize()
;this._updateCptSize();this.items_per_row=null},
onResize:function(){var t=this.n.ul.find(&quot;li:last&quot;)
;this.ratio=t.height()/t.width();this.updateCptClass()
;this.setImagesRatio()},onSave:function(){
UI_Store.getCategories(this.cpt)},onRemove:function(){
this.next_show=$.Deferred();UI_Store.remCpt(this.cpt)},
updateCptSize:function(){
Misc.deferred_method(this,this._updateCptSize,200)},
_updateCptSize:function(t){this.n.main.css(&quot;overflow&quot;,&quot;visible&quot;)
;var e=$(&quot;.gtbackdrop_preset&quot;,this.cpt.node).length?$(&quot;.gtbackdrop_preset&quot;,this.cpt.node):$()
;if(this.cpt.data.auto_size){t|=0;var i=this;e.css({
height:&quot;auto&quot;});i.cpt.setSize({h:1e4});i.cpt.setSize({
h:Math.max(this.cpt.data.search_field?600:0,i.size_getter_el.offsetTop+($(&quot;.gtbackdrop_preset&quot;,this.cpt.node).length?0:50)),
w:i.cpt.W()&gt;320?null:320});e.css({height:&quot;100%&quot;});if(t&lt;3){t+=1
;setTimeout(function(){i._updateCptSize(t)},100*t)}}else{
e.css(&quot;height&quot;,&quot;auto&quot;);this.n.main.css(&quot;overflow-y&quot;,&quot;auto&quot;)
;v.checkHeight()}},updateCatListGui:function(t){
if(this.cpt.idserver){var e=this;this.n.warn.hide();if(t){
this.cat_ids=this.cpt.data.show_cat_all?[0]:[]
;for(var i in UI_Store.categories)UI_Store.categories[i].stores.include(this.cpt.idserver)&amp;&amp;this.cat_ids.push(parseInt(i))
;this.cat_ids.sort(function(t,e){
return UI_Store.categories[t].order-UI_Store.categories[e].order
});1==this.cat_ids.find_all(function(t){return 0!=t
}).length&amp;&amp;this.cpt.data.show_cat_all&amp;&amp;this.cat_ids.removeAll(0)
}if(this.cat_ids.length&gt;1){
this.n.cat.html(&quot;&lt;ul&gt;&quot;+this.cat_ids.filter(function(t){
return 0!=t||e.cat_ids.length&gt;2}).collect(function(t){
return&quot;&lt;li data-cat_id=&apos;&quot;+t+&quot;&apos; class=&apos;site_categ&apos;&gt;&lt;/li&gt;&quot;
}).join(&quot;&quot;)+&quot;&lt;/ul&gt;&quot;);this.n.cat.find(&quot;li&quot;).each(function(t,i){
i=$(i);var s=$.trim(UI_Store.categories[i.data(&quot;cat_id&quot;)].name)
;&quot;editor&quot;==v.mode?i.html(s):i.append(&quot;&lt;a href=&apos;/&quot;+v.getSelectedPage().getHash(!1,&quot;/s&quot;+i.data(&quot;cat_id&quot;)+&quot;c/&quot;+s.to_alphanumeric())+&quot;&apos; class=&apos;not_link_style&apos;&gt;&quot;+s+&quot;&lt;/a&gt;&quot;)
;i.click(function(t){
e.selectCat(parseInt(i.data(&quot;cat_id&quot;)),null!=e.prodSelected)
;t.preventDefault();return!1})})
}else this.n.cat.html(&quot;&lt;ul&gt;&lt;li class=&apos;site_button&apos;&gt;&amp;lt;&amp;lt; Back to product list&lt;/li&gt;&lt;/ul&gt;&quot;).find(&quot;li&quot;).click(function(){
e.selectCat(null,null!=e.prodSelected,undefined,e.pageSelected||0)
});this.applyPreset()
;$(&quot;&lt;li class=uis_search_back&gt;Back to search results&lt;/li&gt;&quot;).click(function(){
e.triggerSearch()}).appendTo($(&quot;ul&quot;,this.n.cat))
;this.showCatList();if(this.prodIdToSelect){
this.selectProd.apply(this,this.prodIdToSelect)
;this.prodIdToSelect=null
}else this.prodSelected&amp;&amp;this._setProdCat()
;if(v.selectedPageFg.cptUrl&amp;&amp;v.selectedPageFg.cptUrl.match(/s\db/))this.n.catal.parent().hide();else{
this.n.catal.parent().show()
;this.selectList(this.catSelected,!0,null!=this.prodSelected)}}
},selectList:function(t){
if(t)if(&quot;search_query&quot;==t[0])this.selectSearch(t[1],0);else{
arguments[0]=t[1];this.selectCat.apply(this,arguments)
}else this.selectCat.apply(this,arguments)},
showCatList:function(){
this.n.cat.toggle(!!(this.prodSelected||this.catSelected&amp;&amp;&quot;category_id&quot;==this.catSelected[0]&amp;&amp;this.cat_ids.length&gt;1))
;var t=!(this.prodSelected&amp;&amp;this.catSelected&amp;&amp;&quot;search_query&quot;==this.catSelected[0])
;$(&quot;.uis_search_back&quot;,this.n.cat).toggle(!t)
;$(&quot;li:not(.uis_search_back)&quot;,this.n.cat).toggle(t)
;$(&quot;.uis_search_suggest&quot;,this.n.main).removeClass(&quot;uis_typing&quot;)
},selectCat:function(t,e,i,s){
if(0!=$.fn.hash_size(UI_Store.categories)){
var n=this.pageSelected;this.pageSelected=s||0;this.hideCart()
;if(null==t||!UI_Store.categories[t]||!(0==t&amp;&amp;this.cpt.data.show_cat_all||UI_Store.categories[t].stores.include(this.cpt.idserver))){
e=!0;t=this.cat_ids[0]}
if(t!=(this.catSelected&amp;&amp;this.catSelected[1])||n!=this.pageSelected||e){
var o=$()
;this.n.cat.find(&quot;li&quot;).length&gt;1&amp;&amp;(o=this.n.cat.find(&quot;li[data-cat_id=&quot;+t+&quot;]&quot;))
;if(!UI_Store.categories[t])return
;if(!i&amp;&amp;this.preventNotSaved())return
;this.catSelected=[&quot;category_id&quot;,t]
;this.n.cat.find(&quot;li&quot;).removeClass(&quot;selected&quot;)
;o.addClass(&quot;selected&quot;);i||this.updateProdListGui(e&amp;&amp;0!=i)}
}else this.catSelected=[&quot;category_id&quot;,t]},
preventNotSaved:function(){
return&quot;editor&quot;==v.mode&amp;&amp;this.prodSelected&amp;&amp;this.prodChanged&amp;&amp;!confirm(&quot;Do you really want to exit without saving the product?\n&quot;+$(&quot;&lt;div&gt;&quot;).html(&quot;If not, cancel and press the &apos;Save &amp;amp; Publish&apos; button: your changes will be recorded and you will be redirected to the product list.&quot;).text())
},selectSearch:function(t,e){$(&quot;input&quot;,this.n.search).val(t)
;this.n.search.toggleClass(&quot;ui_search_result&quot;,&quot;&quot;!=t)
;this.prodSelected=null;if(&quot;&quot;==t)this.selectCat(null);else{
this.catSelected=[&quot;search_query&quot;,t];this.showCatList()
;this.n.list.hide();this.pageSelected;this.pageSelected=e||0
;this.hideCart();var i=this
;$.when(UI_Store.cache.get(&quot;search:&quot;+t,function(){
i.searchLoading(1);return i.cpt.ask({request:&quot;search_query&quot;,
query:t,version_id:v.id}).always(function(){i.searchLoading(-1)
})})).done(function(){i.updateProdListGui()})}},
updateProdListGui:function(t){
var e=this,i=this._getProdListSort(),s=$.Deferred(),n=[]
;if(this.catSelected){if(&quot;category_id&quot;==this.catSelected[0]){
var o=$.Deferred()
;this.cat_ids.length&gt;1&amp;&amp;0==this.catSelected[1]?o=UI_Store.get_all_specific_category(this.cat_ids.filter(function(t){
return 0!=t
}),this.cpt.id):o.resolve(UI_Store.categories[this.catSelected[1]])
;o.then(function(o){if(o){
v.selectedPageFg!=e.cpt.page||e.prodSelected&amp;&amp;!t||e.cpt.page.cptUrl&amp;&amp;&quot;s&quot;!=e.cpt.page.cptUrl.substr(1,1)||e.cpt.page.setCptUrl(&quot;/s&quot;+(o.id||0)+&quot;c&quot;+(e.pageSelected?e.pageSelected:&quot;&quot;)+&quot;/&quot;+o.name.to_alphanumeric(),o.name,e.cpt)
;n=(&quot;p&quot;==i[0]?o.products_by_price:o.products).slice()
;i[1]&amp;&amp;n.reverse()
;e.n.sort.removeClass(&quot;uis_sort_hidden&quot;).find(&quot;span&quot;).removeClass(&quot;uis_ss uis_ssa&quot;)
;e.n.sort.find(&quot;span.uis_s&quot;+i[0]).addClass(&quot;uis_ss&quot;+(i[1]?&quot; uis_ssa&quot;:&quot;&quot;))
;e.n.search_header.hide();s.resolve()}})}else{
n=UI_Store.cache.get(&quot;search:&quot;+this.catSelected[1]).results.products
;this.cpt.page.setCptUrl(&quot;/s0s&quot;+(this.pageSelected||&quot;0&quot;)+&quot;/&quot;+encodeURI(this.catSelected[1]),this.catSelected[1],this.cpt)
;this.n.sort.addClass(&quot;uis_sort_hidden&quot;)
;this.n.search_header.show()
;$(&quot;.uis_nbr_search_results&quot;,this.n.search_header).html(sprintf(&quot;%1$d results for %2$s&quot;,n.length,&quot;&lt;span&gt;&quot;+$(&quot;&lt;div&gt;&quot;).text(this.catSelected[1]).html()+&quot;&lt;/span&gt;&quot;))
;s.resolve()}s.then(function(){e.n.pages.empty();if(n.length&gt;0){
(!e.prodSelected||t&amp;&amp;v.selectedPageFg.cptUrl&amp;&amp;!v.selectedPageFg.cptUrl.match(/s\d+p/))&amp;&amp;e.showList()
;e.items_per_row||e._prodRow()
;var i=e.cpt.data.rows*e.items_per_row;if(i&gt;0&amp;&amp;n.length&gt;i){
var s=Math.ceil(n.length/i)
;e.pageSelected=Math.min(e.pageSelected,s-1)
;$.fn.paginate(e.n.pages.show(),s,e.pageSelected,1,3,function(t){
if(e.pageSelected!=t){e.pageSelected=t;e.updateProdListGui()
;e.scroll()}});n=n.slice(e.pageSelected*i,(e.pageSelected+1)*i)}
e.n.ul.empty();var o=[],r={};n.each(function(t){
var i=UI_Store.products[t]
;if(i)e._drawProdListItem(i,$(&quot;&lt;li&gt;&lt;h3&gt;&amp;nbsp;&lt;/h3&gt;&lt;/li&gt;&quot;).appendTo(e.n.ul));else{
o.push(t)
;r[t]=$(&quot;&lt;li&gt;&lt;h3&gt;&amp;nbsp;&lt;/h3&gt;&lt;div class=&apos;uis_list_img&apos; &gt;&lt;img src=&apos;/assets/loading/66x66.gif&apos; class=&apos;no_css&apos;&gt;&lt;/div&gt;&lt;div class=uis_list_price&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&quot;).appendTo(e.n.ul)
}});o.length&gt;0&amp;&amp;UI_Store.getProducts(o).done(function(){
o.each(function(t){
e._drawProdListItem(UI_Store.products[t],r[t])})
;e.setImagesRatio()});e.setImagesRatio()}else{
e.n.ul.html(&quot;No products yet...&quot;);e.showList()}
if(&quot;editor&quot;==v.mode){
$(&quot;&lt;li class=&apos;it admin_elem&apos;&gt;&quot;).attr(&quot;title&quot;,&quot;Create a new product&quot;).html(&quot;&lt;div&gt;&lt;div class=&apos;fonticon admin_title&apos;&gt;&quot;+$.fn.fonticon(&quot;add&quot;)+&quot;&lt;/div&gt;&lt;div class=&apos;admin_title&apos;&gt;Create a new product &lt;span class=&apos;uis_limit_nbr_product upgrade_icon ui_bg&apos;&gt;&lt;img src=&apos;/images/blog/editor_icons/upgrade_icon.svg&apos;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&quot;).addClass(&quot;editor_add_item&quot;).prependTo(e.n.ul).on(&quot;click&quot;,function(){
e.selectProd()});UI_Store.update_nbr_products()
;e.updateCptSize()}})}},showList:function(){
this.prodSelected=null;&quot;editor&quot;==v.mode&amp;&amp;this.deselectEditor()
;this.n.prod.main.hide();this.showCatList();this.n.list.show()},
_getProdListSort:function(){return this.cpt.data.sort||[&quot;n&quot;,!0]
},_setProdListSort:function(t,e){this.pageSelected=0
;if(&quot;editor&quot;==v.mode){this.cpt.setData(&quot;sort&quot;,[t,e])
;statusController.message(sprintf(&quot;When the Store block is loaded, products will now be sorted by &lt;b&gt;%1$s&lt;/b&gt; in &lt;b&gt;%2$s order&lt;/b&gt;. Publish your website to apply changes.&quot;,&quot;p&quot;==t?&quot;prices&quot;:&quot;names&quot;,e?&quot;ascending&quot;:&quot;descending&quot;))
}else this.cpt.data.sort=[t,e]},_setProdListStyle:function(){
this.n.main.add(this.n.ul).removeClass(&quot;uisl_s uisl_l uisl_m uisl_h uisl_c&quot;).addClass(&quot;uisl_&quot;+(this.cpt.data.style||&quot;l&quot;))
;this.items_per_row=null;this.setImagesRatio()},
_prodRow:function(){this.pageSelected=0;this.n.ul.empty()
;this.items_per_row=0;var t,e=$(&quot;&lt;li&gt;&lt;/li&gt;&quot;).appendTo(this.n.ul)
;if(0!=e.width()){do{this.items_per_row+=1
;t=$(&quot;&lt;li&gt;&lt;/li&gt;&quot;).appendTo(this.n.ul)
}while(e[0].offsetTop==t[0].offsetTop&amp;&amp;this.items_per_row&lt;10)
;this.n.ul.empty()}},custom_stock_sentence:function(t,e){
var i=null,s=this;(e=e||{}).val=e.val||function(){return null}
;var n,o,r,a,c={red:&quot;uisa_s&quot;,orange:&quot;low&quot;,green:&quot;hight&quot;}
;null!=e.p_max?r=e.p_max:(r=this._getMaxStock(t))&gt;t.max&amp;&amp;(r=t.max)
;a=e.stock_mode?e.stock_mode:t.stock_mode;var d=0==r
;if(&quot;editor&quot;!=v.mode||&quot;replenishment&quot;!=a&amp;&amp;&quot;pre_order&quot;!=a||!e.val()){
switch(a){case&quot;custom_sentence&quot;:
n=e.val()||t.custom_stock_sentence;break;case&quot;replenishment&quot;:
n=sprintf(&quot;Available in %1$s&quot;,i||t.custom_stock_sentence);break
;case&quot;pre_order&quot;:d=!1
;n=sprintf(&quot;Available on %1$s&quot;,i||t.custom_stock_sentence);break
;default:var l=this.cpt.data.stock_limit||10
;if(r&gt;1&amp;&amp;r&lt;=l&amp;&amp;this.show_stocks_available){
n=sprintf(&quot;Only %1$d products left&quot;,r);o=c.orange
}else if(r&gt;l||!this.show_stocks_available&amp;&amp;r&gt;0){n=&quot;In stock&quot;
;o=c.green}else if(1==r&amp;&amp;this.show_stocks_available){
n=&quot;Only one product left&quot;;o=c.orange}else{
n=UI_Store.conf.sold_out_text||&quot;Sold out&quot;;o=c.red}}
a&amp;&amp;&quot;default_sentence&quot;!=a&amp;&amp;(o=c[t.tmp_color||t.custom_stock_sentence_color])
;this.cpt.data.show_stocks||(n=&quot;&quot;);return[n,o,d]}
var p=$.Deferred();this.cpt.ask({
request:&quot;now_custom_stock_sentence&quot;,date:e.val(),mode:a,
offset_zone:(new Date).getTimezoneOffset()},function(e){
s.custom_stock_sentence_value=[n,o,d]
;if(&quot;replenishment&quot;==a)n=sprintf(&quot;Available in %1$s&quot;,e.date);else{
d=!1;n=sprintf(&quot;Available on %1$s&quot;,e.date)}
o=c[t.tmp_color||t.custom_stock_sentence_color]
;s.custom_stock_sentence_value=[n,o,d];p.resolve()});return p},
_drawProdListItem:function(t,e){
var i=this,s=document.createElement(&quot;textarea&quot;),n=t.visible&amp;&amp;t.disabled_on_viewer&amp;&amp;&quot;editor&quot;==v.mode
;n&amp;&amp;e.addClass(&quot;disabled_on_viewer&quot;);s.innerHTML=t.summary
;e.attr(&quot;title&quot;,s.value)
;e.addClass(&quot;uis_prod_&quot;+t.id+&quot; &quot;+t.category_ids.map(function(t){
return&quot;uis_cat_&quot;+t}).join(&quot; &quot;));var o=null
;$.fn.hash_size(UI_Store.conf.methods)&gt;0&amp;&amp;(0==t.opts.length&amp;&amp;t.max&gt;0?o=[&quot;p_buy&quot;,&quot;cart&quot;,&quot;Buy&quot;]:i._getMaxStock(t)&amp;&amp;t.opts.length&amp;&amp;(o=[&quot;&quot;,&quot;exe&quot;,&quot;Choose options&quot;]))
;var r=UI_Store.unitPrice(t,1,UI_Store.current_member)
;e.html(&quot;&lt;div class=&apos;uis_list_img&apos;&gt;&lt;/div&gt;&lt;h3&gt;&lt;span class=&apos;font_title_4&apos;&gt;&quot;+(n?&apos;&lt;span class=&quot;upgrade_icon ui_bg&quot;&gt;&lt;img src=&quot;/images/blog/editor_icons/upgrade_icon.svg&quot;&gt;&lt;/span&gt;&apos;:&quot;&quot;)+(t.visible?&quot;&quot;:&quot;&lt;img src=&apos;/assets/icons/ghost.png&apos; title=&apos;Product not visible on your website&apos; width=16 height=16/&gt;&quot;)+t.name+&quot;&lt;/span&gt;&quot;+(&quot;h&quot;==this.cpt.data.style?&quot;&lt;span style=&apos;display:block;&apos;&gt;&quot;+t.summary+&quot;&lt;/span&gt;&quot;:&quot;&quot;)+&quot;&lt;/h3&gt;&lt;div class=&apos;uis_list_price&apos;&gt;&quot;+(i.cpt.data.show_price_from&amp;&amp;t.opts.length&gt;0&amp;&amp;t.opts.find(function(t){
for(var e in t.options)if(parseFloat(t.options[e].p)&gt;0)return!0
})?&quot;Price from &quot;:&quot;&quot;)+(t.strike&amp;&amp;t.strike&gt;r?&quot;&lt;span class=&apos;uis_ps&apos;&gt;&quot;+UI_Store.show_price(r)+&quot;&lt;/span&gt;&lt;span class=&apos;uis_list_strike&apos;&gt;&quot;+UI_Store.show_price(t.strike)+&quot;&lt;/span&gt;&quot;:UI_Store.show_price(r))+&quot;&lt;/div&gt;&quot;+(o?&quot;&lt;div class=&apos;ov_prod&apos;&gt;&lt;div class=&apos;&quot;+o[0]+&quot;&apos;&gt;&lt;div class=&apos;fonticon&apos;&gt;&quot;+$.fn.fonticon(o[1])+&quot;&lt;/div&gt;&lt;div class=&apos;ov_text&apos;&gt;&quot;+o[2]+&quot;&lt;/div&gt;&lt;/div&gt;&lt;div class=&apos;ov_added&apos;&gt;&lt;/div&gt;&lt;/div&gt;&quot;:&quot;h&quot;==this.cpt.data.style?&quot;&lt;div class=&apos;ov_prod&apos;&gt;&lt;/div&gt;&quot;:&quot;&quot;))
;var a=i.custom_stock_sentence(t)
;$(&quot;&lt;span id=&apos;uis_custom_stock_sentence_product_list&quot;+t.id+&quot;&apos; class=&apos;uis_custom_stock_sentence_product_list &quot;+a[1]+&quot;&apos;&gt;&lt;/span&gt;&quot;).text(a[0]).insertAfter(e.find(&quot;.uis_list_price&quot;,i.cpt.node))
;if(GraphicalType.available&amp;&amp;&quot;c&quot;==i.cpt.data.style&amp;&amp;o){
if((p=presetController.find(this.cpt.component_type_id,null,this.cpt.data.preset))&amp;&amp;p.data.display_gt_button){
var c=GraphicalType.version_config(&quot;button&quot;)
;if(p=p.data.gt_button||(c?c[1]:null)){
var d=GraphicalType.graphical_types.button.preset_data.prefix
;i.n.list.find(&quot;li.uis_prod_&quot;+t.id).addClass(d+&quot; &quot;+d+&quot;_&quot;+p)
;$(&apos;&lt;div class=&quot;button_block site_button&quot;&gt;&lt;div class=&quot;button_content&quot;&gt;&lt;span class=&quot;button_text&quot;&gt;&apos;+o[2]+&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&quot;).insertAfter(e.find(&quot;#uis_custom_stock_sentence_product_list&quot;+t.id,i.cpt.node))
}}}e.find(&quot;.uis_list_price&quot;).toggle(!a[2])
;e.find(&quot;h3&quot;).ellipsis();e.click(function(){i.selectProd(t.id)})
;e.find(&quot;.ov_prod .p_buy&quot;).on(&quot;click&quot;,function(){
if(&quot;viewer&quot;==v.mode&amp;&amp;UI_Store.checkOptions(&quot;product&quot;,i.n.prod.opt,t.opts,!0)){
var e=$(this).parents(&quot;li:first&quot;);e.addClass(&quot;added&quot;)
;setTimeout(function(){e.removeClass(&quot;added&quot;)},1500)
;UI_Store.updateItem(t,1,&quot;[]&quot;);i.addToCart(t);return!1}})
;var l=e.find(&quot;.uis_list_img&quot;)
;if(&quot;h&quot;==this.cpt.data.style)UI_Store.setImage(l,t.img,[null,120]);else{
var p
;(p=presetController.find(i.cpt.component_type_id,null,i.cpt.data.preset))&amp;&amp;p.data.image_height?UI_Store.setImage(l,t.img,[l.outerWidth(),p.data.image_height],!1,null,{
full_height:!0,no_canvas:!0}):UI_Store.setImage(l,t.img)}
l.find(&quot;img&quot;).addClass(&quot;img_height&quot;);t.img_loaded=!0},
setImagesRatio:function(){var t,e=this
;this.n.ul.find(&quot;.uis_list_img &gt; div&quot;).hide(0).promise().done(function(){
e.n.ul.find(&quot;.uis_list_img img&quot;).each(function(e,i){var s=$(i)
;if(!/loading/.test(s.attr(&quot;src&quot;))){
var n=s.closest(&quot;.uis_list_img&quot;);t=t||n.height()/n.width()
;s.on(&quot;load&quot;,function(){
t&lt;=s.height()/s.width()?s.addClass(&quot;img_height&quot;):s.removeClass(&quot;img_height&quot;)
;s.css(&quot;opacity&quot;,1)})}})
;e.n.ul.find(&quot;.uis_list_img &gt; div&quot;).show()})},
refreshRatio:function(){
var t=this,e=this.n.ul.find(&quot;li:last .uis_list_img&quot;)
;e.find(&quot;img&quot;).hide(0,function(){t.ratio=e.height()/e.width()
;$(this).show();t.n.ul.find(&quot;.uis_list_img &gt; div&quot;).show()})},
addToCart:function(t,e,i){var s=this
;if(&quot;show_confirm&quot;==(e=e||&quot;show_confirm&quot;)){
this.cpt.node.hasClass(&quot;uis_prod_responsive&quot;)?tb_show_viewer(null,&quot;#TB_inline?width=300&amp;inlineId=uis_add_to_cart&quot;):tb_show_viewer(null,&quot;#TB_inline?width=900&amp;inlineId=uis_add_to_cart&quot;)
;var n=UI_Store.cart.num
;$(&quot;.uis_nbr_items&quot;,$(&quot;#TB_window&quot;)).text(sprintf(1==n?&quot; (%1$s item)&quot;:&quot; (%1$s items)&quot;,n))
;$(&quot;.uis_view_cart&quot;,$(&quot;#TB_window&quot;)).click(function(){
s.showCart();tb_remove()})
;$(&quot;.uis_view_cart,.uis_checkout&quot;,$(&quot;#TB_window&quot;)).click(function(){
s.showCart();tb_remove()})
;$(&quot;.uis_shopping&quot;,$(&quot;#TB_window&quot;)).click(function(){
s.selectCat(s.catSelected&amp;&amp;s.catSelected[1]||null,null!=s.prodSelected,undefined,s.pageSelected||0)
;tb_remove()})}else if(&quot;show_form&quot;==e){this.showCart();var o=!1
;$.each(UI_Store.conf.options,function(t,e){
(e.label||e[&quot;&gt;&quot;]&amp;&amp;e[&quot;&gt;&quot;]&gt;0)&amp;&amp;(o=!0)})
;UI_Store.conf.terms||o||this.n.bill.find(&quot;.uis_bsa[method=&quot;+i.store_provider+&quot;]&quot;).trigger(&quot;click&quot;)
}else&quot;show_cart&quot;==e&amp;&amp;this.showCart()
;v.features.uis_mailing&amp;&amp;this.cpt.ask({
request:&quot;last_add_to_cart&quot;})},selectProd:function(t,e){
if(0==this.cat_ids.length)return this.prodIdToSelect=[t,e]
;var i=this;this.hideCart();this.n.ul.html(&quot;&quot;)
;if(t)$.when(UI_Store.products[t]||UI_Store.getProducts([t])).done(function(){
var s=UI_Store.products[t];if(s!=i.prodSelected){
i.prodSelected=s;i._setProdGui(s);i.prodChanged=!1
;if(&quot;editor&quot;==v.mode){blockSelector.deselect()
;blockSelector.select(i.cpt.node)}v.scroll_to_component(i.cpt)
}else i._setImagesAndZoom(s)
;i.cpt.page.setCptUrl(&quot;/s&quot;+s.id+&quot;p/&quot;+s.name.to_alphanumeric(),$(&quot;&lt;p&gt;&quot;).html(s.name).text(),!0)
;setTimeout(function(){var t={}
;if(e&amp;&amp;&quot;a&quot;==e.a&amp;&amp;!s.opts.find(function(t){
return t[&quot;&gt;&quot;]&amp;&amp;t[&quot;&gt;&quot;]&gt;0||t.label})){
UI_Store.updateItem(s,e.n||1,i.optionsVal()||&quot;&quot;);var n=!1
;(&quot;s&quot;==e.f||e.p)&amp;&amp;$.each(UI_Store.conf.methods,function(i,s){
if(s.id==e.p){n=!0;t.store_provider=i}})
;i.addToCart(s,&quot;c&quot;==e.f?&quot;show_cart&quot;:n?&quot;show_form&quot;:&quot;show_confirm&quot;,t)
}i._setProdAddToCart(s)},500)});else if(&quot;editor&quot;==v.mode){
this.prodSelected=&quot;new&quot;;var s={id:&quot;&quot;,name:&quot;Product name&quot;,
reference:&quot;&quot;,desc:&quot;&quot;,img:[{thumbnails:{
small:&quot;/images/thumbnails/default_prod.png&quot;},width:350,
url:&quot;/images/thumbnails/default_prod.png&quot;,height:350,
name:&quot;default_prod.png&quot;,id:0,removable:!1,is_default:!0}],
price:10,strike:0,opts:[],stocks:{},max:99,visible:!0,
weight:null,
category_ids:this.catSelected&amp;&amp;&quot;category_id&quot;==this.catSelected[0]?[this.catSelected[1]]:[]
};this._setProdGui(s)}else this.showList()},
_setProdGui:function(t){function e(){
editorController.setContent(i.prod.desc,t.id?UI_Store.products[t.id].desc:t.desc)
;i.prod.shipping_infos.html(t.id&amp;&amp;UI_Store.products[t.id]&amp;&amp;UI_Store.products[t.id].shipping_infos?UI_Store.products[t.id].shipping_infos.text:&quot;&quot;)
;UI_Store.format_prices(i.prod.shipping_infos)
;i.prod.desc.editable_node({type:&quot;text&quot;,editor_params:{
onChange:function(){s._updateCptSize()}}})
;var e=i.prod.desc.closest(&quot;.uis_desc_wrapper&quot;)
;UI_Store.products[t.id]&amp;&amp;&quot;viewer&quot;==v.mode?e.toggle(UI_Store.products[t.id].desc.length&gt;0):e.show()
;s.deselectEditor()}var i=this.n,s=this;i.prod.id.val(t.id)
;if(t.desc||&quot;&quot;==t.id)e();else{editorController.disable(!0)
;i.prod.desc.html(&quot;&lt;img src=&apos;/assets/loadingAnimation.gif&apos;&gt;&quot;)
;UI_Store.getProduct(t.id,function(){
editorController.disable(!1);e();s.updateCptSize()})}
this._setProdName(t.name);this._setProdMax(t.max)
;this.tmp_img=t.img;this.tmp_opts=t.opts.slice()
;this.tmp_stocks=jQuery.extend({},t.stocks)
;this.tmp_cat=t.category_ids.removeAll(0)
;this._setProdPrice(t,t.options&amp;&amp;t.options.find(function(t){
return null!=$.fn.hash_to_a(t).find_index(function(e){
return t[e].p&gt;0})}));this._setProdStrike(t.strike)
;this._setProdVisi(t.visible);this._setProdOpt(t)
;this._setProdHiddenData(t);this._setProdAddToCart(t)
;this._setProdCat(t.category_ids)
;&quot;editor&quot;==v.mode&amp;&amp;this._setProdCustomPriceEditor(t)
;i.prod.main.addClass(&quot;uis_prod_&quot;+t.id+&quot; &quot;+t.category_ids.map(function(t){
return&quot;uis_cat_&quot;+t}).join(&quot; &quot;))
;$(&quot;.uis_more_stock_sentence_div&quot;,this.cpt.node).hide()
;t.stock_mode&amp;&amp;$(&quot;.uis_more_stock_sentence_div&quot;,this.cpt.node).show()
;var n=this.custom_stock_sentence(t)
;$(&quot;.uis_final_stock_sentence&quot;,this.cpt.node).html(n[0])
;$(&quot;.uis_final_stock_sentence&quot;,this.cpt.node).removeClass(&quot;hight uisa_s low&quot;).addClass(n[1])
;if(&quot;editor&quot;==v.mode){
$(&quot;.uis_colors_wrapper&quot;,this.cpt.node).toggle(!!t.stock_mode)
;$(&quot;.uis_prod_bloc_stock&quot;,this.cpt.node).toggleClass(&quot;open&quot;,!!t.stock_mode)
;var o=!!(t.custom_prices&amp;&amp;t.custom_prices.length||t.strike)
;$(&quot;.uis_more_prices&quot;,this.cpt.node).toggle(o)
;$(&quot;.uis_more_prices_toggle&quot;,this.cpt.node).parent().toggleClass(&quot;open&quot;,o)
;$(&quot;.uis_replenishment_date_input, .uis_pre_order_date_input, .uis_custom_stock_sentence_input&quot;).val(&quot;&quot;)
;switch(t.stock_mode){case&quot;custom_sentence&quot;:
$(&quot;.uis_custom_stock_sentence_input&quot;,this.cpt.node).val(t.custom_stock_sentence)
;$(&quot;.uis_custom_stock_sentence_radiobutton&quot;,this.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
;break;case&quot;replenishment&quot;:
$(&quot;.uis_replenishment_date_radiobutton&quot;,this.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
;$(&quot;.uis_replenishment_date_input&quot;,this.cpt.node).data(&quot;DateTimePicker&quot;).date(moment.parseZone(t.replenishment_date))
;break;case&quot;pre_order&quot;:
$(&quot;.uis_pre_order_date_radiobutton&quot;,this.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
;$(&quot;.uis_pre_order_date_input&quot;,this.cpt.node).data(&quot;DateTimePicker&quot;).date(moment.parseZone(t.pre_order_date))
;break;default:
$(&quot;.uis_stock_radiobutton&quot;,this.cpt.node).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)
}t.tmp_color=null
;$(&quot;.uis_custom_stock_sentence_color.&quot;+t.custom_stock_sentence_color,this.cpt.node).click()
;$(&quot;.uis_seo_description textarea&quot;,this.n.prod.main).val(t.seo_description)
;this.n.prod.cat.addClass(&quot;admin_elem&quot;)
;this.n.prod.hidden.addClass(&quot;admin_elem&quot;)
;$(&quot;.uis_seo_description&quot;,this.n.prod.main).addClass(&quot;admin_elem&quot;)
;$(&quot;.uis_colors_wrapper&quot;,s.cpt.node).toggle(&quot;default_sentence&quot;!=$(&quot;[name=stock_mode]:checked&quot;).val())
}else{
$(&quot;.uis_prices,.uis_price_opts,.uis_shipping_infos_product,.uis_custom_prices&quot;,this.cpt.node).toggle(!n[2])
;$(&quot;.uis_seo_description&quot;,this.n.prod.main).remove()}
this.n.list.hide();this.n.prod.main.show();this.showCatList()
;this.updateCptSize();this._setImagesAndZoom(t)
;this.n.prod.img.editable_node({type:&quot;image&quot;})
;this.n.prod.desc.editable_node({type:&quot;text&quot;,editor_params:{
onChange:function(){s._updateCptSize()}}})},
_setImagesAndZoom:function(t){
UI_Store.setImage(this.n.prod.img,t.img,null,!0,this.n.prod.imgs,{
no_canvas:deviceController.device.match(/mobile/)})
;UI_Store._setZoomProduct(this.n.prod.img.find(&quot;img&quot;),t.img[0])
},_setProdName:function(t){
&quot;editor&quot;==v.mode?this.n.prod.name.find(&quot;input&quot;).val(t):this.n.prod.name.html(t)
},_toggle_strike_price:function(t){if(t){
this.n.prod.strike.show()
;this.n.prod.main.find(&quot;.uis_strike_input&quot;).show()}else{
this.n.prod.main.find(&quot;.uis_set_strike_price&quot;).val(0).trigger(&quot;change&quot;)
;this.n.prod.strike.hide()
;this.n.prod.main.find(&quot;.uis_strike_input&quot;).hide()}},
_setProdCustomPriceEditor:function(t){
var e=this.n.prod.main,i=this,s=&quot;&lt;select name=&apos;member_groups&apos;&gt;&lt;option value=&apos;any&apos;&gt;Any&lt;/option&gt;&quot;
;UI_Store.member_groups.each(function(t){
s+=&quot;&lt;option value=&apos;&quot;+t.id+&quot;&apos;&gt;&quot;+$(&quot;&lt;div&gt;&quot;).text(t.name).html()+&quot;&lt;/option&gt;&quot;
});s+=&quot;&lt;/select&gt;&quot;
;$(&quot;.uis_more_prices_toggle&quot;,e).off().click(function(){
$(&quot;.uis_more_prices&quot;,e).slideToggle(300)
;$(this).closest(&quot;.uis_prod_bloc&quot;).toggleClass(&quot;open&quot;)})
;var n=$(&quot;.uis_custom_prices_tbody&quot;,e).empty().off()
;n.on($.change_events,&quot;.uis_input_number.percent&quot;,function(){
$(this).closest(&quot;tr&quot;).find(&quot;.uis_input_number.amount&quot;).val(UI_Store.convert_without_vat(UI_Store.customPriceAmount(UI_Store.convert_with_vat(i.n.prod.price.find(&quot;input&quot;).val()),{
type:&quot;percent&quot;,value:parseFloat($(this).val())})))
;$(this).closest(&quot;tr&quot;).data(&quot;type&quot;,&quot;percent&quot;)})
;n.on($.change_events,&quot;.uis_input_number.amount&quot;,function(){
$(this).closest(&quot;tr&quot;).find(&quot;.uis_input_number.percent&quot;).val(&quot;&quot;)
;$(this).closest(&quot;tr&quot;).data(&quot;type&quot;,&quot;amount&quot;)})
;n.on(&quot;click&quot;,&quot;.uis_delete_custom_price&quot;,function(){
$(this).closest(&quot;tr&quot;).remove()});if(t.custom_prices){
cps=t.custom_prices.concat();cps.sort(function(t,e){
return t.quantity-e.quantity});cps.each(function(t){
var e=$(&quot;&lt;tr class=&apos;one_custom_price&apos; data-type=&apos;&quot;+t.type+&quot;&apos;&gt;&lt;td&gt;&lt;input min=&apos;1&apos; class=&apos;uis_input_number quantity site_textbox &apos; type=&apos;number&apos; value=&apos;&quot;+t.quantity+&quot;&apos;/&gt;&lt;/td&gt;&lt;td&gt;&quot;+s+&quot;&lt;/td&gt;&lt;td&gt;&lt;input min=&apos;0.01&apos; class=&apos;uis_input_number percent site_textbox&apos; type=&apos;number&apos; value=&apos;&quot;+t.value+&quot;&apos; step=0.01 /&gt;%&lt;/td&gt;&lt;td&gt;&lt;input min=&apos;0.01&apos; class=&apos;uis_input_number amount site_textbox&apos; type=&apos;number&apos; value=&apos;&quot;+UI_Store.convert_without_vat(t.value)+&quot;&apos;step=0.01 /&gt;  &quot;+UI_Store.show_price(null,!0)+&quot;&lt;/td&gt;&lt;td&gt;&lt;div class=&apos;fonticon uis_delete_custom_price&apos;&gt;&quot;+$.fn.fonticon(&quot;close&quot;)+&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&quot;).appendTo(&quot;.uis_custom_prices_tbody&quot;)
;e.find(&quot;select&quot;).val(t.group_id)
;$(&quot;.uis_input_number.&quot;+t.type,e).change()})}
$(&quot;.uis_add_custom_price&quot;,e).off().click(function(){
var e=$(&quot;tr:last&quot;,n);0==e.length&amp;&amp;(e=null)
;$(&quot;&lt;tr class=&apos;one_custom_price&apos; data-type=&apos;&quot;+(e?e.data(&quot;type&quot;):&quot;amount&quot;)+&quot;&apos; &gt;&lt;td&gt;&lt;input min=&apos;1&apos; class=&apos;uis_input_number quantity site_textbox&apos; type=&apos;number&apos; value=&apos;&quot;+(e?parseInt($(&quot;.quantity&quot;,e).val())+1:2)+&quot;&apos;/&gt;&lt;/td&gt;&lt;td&gt;&quot;+s+&quot;&lt;/td&gt;&lt;td&gt;&lt;input min=&apos;0.01&apos; class=&apos;uis_input_number percent site_textbox&apos; type=&apos;number&apos; value=&apos;&quot;+(e?$(&quot;.percent&quot;,e).val():&quot;&quot;)+&quot;&apos; step=0.01 /&gt;%&lt;/td&gt;&lt;td&gt;&lt;input min=&apos;0.01&apos; class=&apos;uis_input_number amount site_textbox&apos; type=&apos;number&apos; value=&apos;&quot;+(e?$(&quot;.amount&quot;,e).val():UI_Store.convert_without_vat(t.price))+&quot;&apos; step=0.01 /&gt; &quot;+UI_Store.currency_sym()+&quot;&lt;/td&gt;&lt;td&gt;&lt;div class=&apos;fonticon uis_delete_custom_price&apos;&gt;&quot;+$.fn.fonticon(&quot;close&quot;)+&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&quot;).appendTo(n).find(&quot;select[name=member_groups]&quot;).val(e?$(&quot;select[name=member_groups]&quot;,e).val():&quot;any&quot;)
;o()});var o=function(){
$(&quot;.uis_custom_prices_tbody select[name=member_groups]&quot;,e).niceSelect()
;$(&quot;.nice-select li&quot;,e).each(function(){
$(&quot;&lt;span&gt;&quot;).text($(this).text()).appendTo($(this).empty())
;var t=$(this);$(t).find(&quot;span&quot;).css(&quot;color&quot;,&quot;black&quot;)
;UI_Store.member_groups.each(function(e){
e.id==$(t).data(&quot;value&quot;)&amp;&amp;$(t).find(&quot;span&quot;).css(&quot;color&quot;,e.color)
})});$(&quot;select[name=member_groups]&quot;,e).change(function(){
var t=$(this).val(),e=UI_Store.member_groups.find(function(e){
return e.id==parseInt(t)})
;$(&quot;.nice-select&quot;,$(this).closest(&quot;td&quot;)).css(&quot;color&quot;,e?e.color:&quot;black&quot;)
}).change()};o()},_setProdPrice:function(t,e,i){
if(&quot;editor&quot;==v.mode){var s=t.price
;this.n.prod.price.empty().prepend(&apos;&lt;input class=&quot;uis_set_price live_edit site_textbox&quot; type=&quot;text&quot;&gt;&apos;+UI_Store.show_price(null,!0)).find(&quot;input&quot;).restrictTo(&quot;price&quot;).val(UI_Store.convert_without_vat(s)).trigger(&quot;blur&quot;).trigger(&quot;change&quot;)
;this.n.prod.price_strike_node.find(&quot;input[type=checkbox]&quot;).prop(&quot;checked&quot;,t.strike)
}else{s=UI_Store.unitPrice(t,1,UI_Store.current_member);var n=&quot;&quot;
;this.cpt.data.show_price_from&amp;&amp;i&amp;&amp;(n+=&quot;from &quot;)
;if(e&amp;&amp;!0!==e&amp;&amp;e&gt;0){n+=UI_Store.show_price(s+e)
;this.n.prod.opt_price.html(sprintf(&quot;%s + %s for the options&quot;,UI_Store.show_price(s),UI_Store.show_price(e)))
}else{n+=UI_Store.show_price(s);this.n.prod.opt_price.empty()}
this.n.prod.price.html(n);if(t.custom_prices){
var o=null,r=t.custom_prices.concat();r.push({quantity:1,
type:&quot;amount&quot;,value:t.price,group_id:&quot;any&quot;})
;if((r=r.filter(function(e){
var i=(null==o||e.quantity&lt;o.quantity)&amp;&amp;(&quot;any&quot;==e.group_id||UI_Store.current_member&amp;&amp;&quot;-1&quot;!=UI_Store.current_member.group_ids.indexOf(parseInt(e.group_id)))
;if(i){o=e;e.amount=UI_Store.customPriceAmount(t.price,e)}
return i})).length&gt;1){r.sort(function(t,e){
return t.quantity-e.quantity});var a=&quot;&quot;
;r.each_with_index(function(t,e){
a+=&quot;&lt;tr&gt;&lt;td class=&apos;quantity&apos;&gt;&quot;+t.quantity+(r[e+1]?r[e+1].quantity&gt;t.quantity+1?&quot;+&quot;:&quot;&quot;:&quot;+&quot;)+&quot;&lt;/td&gt;&lt;td&gt;&quot;+UI_Store.show_price(t.amount)+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;
})
;var c=&quot;&lt;div&gt;&lt;input type=number min=1 max=999 step=1 value=&apos;&quot;+r[1].quantity+&quot;&apos; class=&apos;uis_qte_prod site_textbox&apos;&gt;&lt;span&gt;&quot;+UI_Store.btn({
txt:&quot;&lt;span class=&apos;uis_bsa&apos;&gt;Add&lt;/span&gt;&quot;,&quot;class&quot;:&quot;site_button cta&quot;
})+&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&apos;clear:both&apos;&gt;&lt;/div&gt;&quot;
;this.n.prod.custom_prices.html(&quot;&lt;span&gt;Volume discount&lt;/span&gt;&lt;table class=&apos;custom_prices_table_viewer&apos;&gt;&lt;tbody&gt;&quot;+a+&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;+c)
;$(&quot;.uis_btn&quot;,this.n.prod.custom_prices).click(function(){
var t=$(this).closest(&quot;.uis_prod&quot;)
;$(&quot;.uis_qte_prod&quot;,t).val($(&quot;.uis_custom_prices .uis_qte_prod&quot;,t).val())
;$(&quot;.uis_cart_wrapper .uis_btn&quot;,t).click()})}
}else this.n.prod.custom_prices.empty()}},
_setProdStrike:function(t){if(&quot;editor&quot;==v.mode){
$(&quot;.uis_strike_input&quot;,this.n.prod.main).html(&apos;&lt;input type=&quot;text&quot; class=&quot;uis_set_strike_price live_edit site_textbox&quot;&gt;&apos;+UI_Store.show_price(null,!0)).find(&quot;input&quot;).restrictTo(&quot;price&quot;).val(UI_Store.convert_without_vat(t||0)).trigger(&quot;blur&quot;).trigger(&quot;change&quot;)
;this._toggle_strike_price(t)
}else t?this.n.prod.strike.html(&quot;&lt;span class=&apos;uis_strike_price&apos;&gt;&quot;+UI_Store.show_price(t)+&quot;&lt;/span&gt;&quot;).show():this.n.prod.strike.hide()
},_setProdMax:function(t){
&quot;editor&quot;==v.mode&amp;&amp;this.n.prod.max&amp;&amp;&quot;number&quot;==typeof t&amp;&amp;this.n.prod.max.val(t).trigger(&quot;blur&quot;).trigger(&quot;change&quot;)
},_setProdVisi:function(t){
&quot;editor&quot;==v.mode&amp;&amp;this.n.prod.visi.find(&quot;input&quot;).prop(&quot;checked&quot;,t)
},_setProdOpt:function(t){
var e=this,i=&quot;editor&quot;==v.mode?this.tmp_opts:t.opts,s=!0,n=this.n.prod.opt.find(&quot;&gt;div:last&quot;).empty()
;this.n.prod.opt.hide();if(i&amp;&amp;i.length&gt;0){
for(var o=&quot;&lt;table&gt;&quot;,r=0;r&lt;i.length;r++){
i[r]&amp;&amp;(o+=&quot;&lt;tr&gt;&lt;td&gt;&quot;+(i[r].name.match(/^-h-\d+/)?&quot;&quot;:i[r].name)+&quot;&lt;td&gt;&quot;)
;i[r].options&amp;&amp;$.fn.hash_size(i[r].options)&gt;0?o+=UI_Store.option2select(i[r]):o+=UI_Store.option2input(i[r],&quot;&quot;)
;s=!1}if(o.length&gt;0){n.html(o).find(&quot;select&quot;).change(function(){
$(this).removeAttr(&quot;firstTime&quot;);e._setProdAddToCart(t)})
;n.find(&quot;input, textarea&quot;).blur(function(){
var t=$(this).removeAttr(&quot;firstTime&quot;),e=t.val().substr(0,i[&quot;&lt;&quot;])
;t.val(e)});this.n.prod.opt.show()}}if(&quot;editor&quot;==v.mode){
s&amp;&amp;$(&quot;&lt;div&gt;No option defined&lt;/div&gt;&quot;).appendTo(n)
;$(&quot;&lt;div style=&apos;text-align:center;margin:10px 0;&apos; class=editor_interface&gt;&quot;).html($(&quot;&lt;span class=&apos;admin_elem ib edit_btn&apos;&gt;Edit&lt;/span&gt;&quot;).click(function(){
tb_show(null,&quot;/store_options/options/?cptserver_id=&quot;+e.cpt.idserver+&quot;&amp;product=1&amp;alone=1&amp;width=1000&amp;height=500&amp;TB_iframe&quot;)
})).appendTo(n);this.n.prod.opt.show()
}else this.n.prod.desc.closest(&quot;.uis_desc_wrapper&quot;).find(&quot;&gt;b&quot;).hide()
},_setProdHiddenData:function(t){var e=this
;if(&quot;editor&quot;==v.mode){
this.n.prod.hidden.find(&quot;.uis_weight input&quot;).restrictTo(&quot;int&quot;).val(t.weight||0).trigger(&quot;blur&quot;).trigger(&quot;change&quot;)
;this.n.prod.hidden.find(&quot;.uis_order input&quot;).val(t.order)
;this.n.prod.hidden.find(&quot;.uis_private_notes textarea&quot;).val(t.private_notes||&quot;&quot;).on(&quot;focus blur&quot;,function(t){
$(this).css({width:&quot;focus&quot;==t.type?&quot;20em&quot;:&quot;10em&quot;
}).attr(&quot;rows&quot;,&quot;focus&quot;==t.type?&quot;3&quot;:&quot;1&quot;)}).blur()
;this.n.prod.hidden.find(&quot;.uis_ref input&quot;).val(t.reference||&quot;&quot;).on(&quot;focus blur&quot;,function(t){
$(this).css({width:&quot;focus&quot;==t.type?&quot;20em&quot;:&quot;5em&quot;})}).blur()
;this.n.prod.hidden.find(&quot;.uis_vat_rate&quot;).toggle(UI_Store.conf.billing.enabled&amp;&amp;!1).find(&quot;input&quot;).val(t.vat_rate||(UI_Store.conf.billing.enabled?UI_Store.conf.billing.vat_rate:&quot;&quot;))
;e.attachments_tmp=t.attachments||[];var i=this.n.prod.digital
;$(&quot;.uis_set_attachments&quot;,e.n.prod.hidden).toggle(t.digital)
;$(&quot;input&quot;,i).prop(&quot;checked&quot;,t.digital).off().on(&quot;change&quot;,function(){
this.checked&amp;&amp;$(&quot;.uis_set_attachments&quot;,e.n.prod.hidden).click()
;$(&quot;.uis_set_attachments&quot;,e.n.prod.hidden).toggle(this.checked)
})
;$(&quot;.uis_set_attachments&quot;,e.n.prod.hidden).off().click(function(){
t.id?tb_show(null,&quot;/cpt_store/set_digital_attachments/?cptserver_id=&quot;+e.cpt.idserver+&quot;&amp;product_id=&quot;+t.id+&quot;&amp;alone=1&amp;width=1000&amp;height=700&amp;TB_iframe&quot;):statusController.message(&quot;Save this product to configure digital content.&quot;,&quot;warning&quot;)
})}},_getOptMax:function(t){
for(var e=this.n.prod.opt.find(&quot;&gt;div:last&quot;).find(&quot;option:selected&quot;).collect(function(t){
return $(t).attr(&quot;data-managed&quot;)?$(t).val().html_encode():&quot;|&quot;
}),i=t.stocks[JSON_.stringify(e)],s=-1,n=e.slice();i==undefined&amp;&amp;s++&lt;n.length;){
(e=n.slice())[s]=&quot;|&quot;;i=t.stocks[JSON_.stringify(e)]}return i},
_getMaxStock:function(p){
var has_null_stock=!1,s=$.map(p.stocks,function(t){
null===t&amp;&amp;(has_null_stock=!0);return t})
;if(0==s.length)return p.max;var ks=[];if(this.prodSelected){
try{eval(&quot;ks=&quot;+this.optionsVal())}catch(e){
dbg.error(&quot;ERROR during EVAL&quot;)}
var bsk=UI_Store.extractBonusAndStockKey(p,ks)}else var bsk=!1
;if(bsk&amp;&amp;p.stocks[bsk[1]])return parseInt(p.stocks[bsk[1]])
;(has_null_stock||p.opts.find(function(t){
return t.options&amp;&amp;$.map(t.options,function(t){return t
}).find(function(t){return!t.s})}))&amp;&amp;s.push(p.max)
;return Math.max.apply(Math,s)},saveOptAndStock:function(t,e){
this.tmp_opts=[].concat(t);this.tmp_stocks=jQuery.extend({},e)
;this._setProdOpt(this.cpt);tb_remove()},optionsVal:function(){
var t=this.n.prod.opt.find(&quot;select, input, textarea&quot;).collect(function(t){
return[$(t).attr(&quot;name&quot;),$(&quot;&lt;div&gt;&quot;).text($(t).val()).html()]})
;return JSON_.stringify(t)},_setProdAddToCart:function(p){
if(this.n.cart&amp;&amp;this.n.cart.add){
var self=this,c=[],a=UI_Store.cart.items[p.id],n=this.n.cart.prod.hide(),t=[]
;for(var i in a)try{eval(&quot;c=&quot;+i)
;t.push(&quot;&lt;b&gt;&quot;+a[i]+&quot; &quot;+(a[i]&gt;1?&quot;items&quot;:&quot;item&quot;)+&quot;&lt;/b&gt; &lt;i&gt;&quot;+UI_Store.options2html(c)+&quot;&lt;/i&gt;&quot;)
}catch(e){}
t.length&gt;0&amp;&amp;n.show().find(&quot;div:last&quot;).html(t.join(&quot;&lt;br&gt;&quot;))
;var custom_stock_sentence_array=this.custom_stock_sentence(p)
;$(&quot;.uis_final_stock_sentence&quot;,this.cpt.node).html(custom_stock_sentence_array[0])
;$(&quot;.uis_final_stock_sentence&quot;,this.cpt.node).removeClass(&quot;hight uisa_s low&quot;).addClass(custom_stock_sentence_array[1])
;this.n.cart.add.find(&quot;input&quot;).val(1)
;var max=this._getMaxStock(p)
;this.n.cart.add.toggle(!custom_stock_sentence_array[2]&amp;&amp;0!=max)
;$(&quot;.uis_prices,.uis_price_opts,.uis_shipping_infos_product,.uis_custom_prices&quot;,this.cpt.node).toggle(!custom_stock_sentence_array[2])
;this.n.cart.add.find(&quot;.uis_cart_quantity&quot;).toggle(1!=max)
;this.n.cart.add.find(&quot;.uis_bsa&quot;).text(&quot;pre_order&quot;==p.stock_mode?&quot;Pre-order&quot;:1==max?&quot;Buy&quot;:&quot;Add&quot;)
;setTimeout(function(){var ks=[];try{
eval(&quot;ks=&quot;+self.optionsVal())}catch(e){
dbg.error(&quot;ERROR during EVAL&quot;)}
var bsk=UI_Store.extractBonusAndStockKey(self.prodSelected,ks),p_options=p.opts.find_all(function(t){
for(var e in t.options)if(parseFloat(t.options[e].p)&gt;0)return!0
}).map(function(t){return t.name
}),s_options=JSON_.parse(self.optionsVal()).map(function(t){
if(&quot;uis_no_select&quot;!=t[1])return t[0]})
;self._setProdPrice(p,bsk[0]/100,p_options.find(function(t){
return-1==s_options.indexOf(t)}))})}},_setProdCat:function(t){
null==t&amp;&amp;(t=this.tmp_cat||[]);var e=this;if(&quot;editor&quot;==v.mode){
this.n.prod.cat_select.hide();var i=0
;for(var s in UI_Store.categories)i++;if(i&gt;1){
this.n.prod.cat_add.show();this.n.prod.cat_none.hide()
;var n=&quot;&quot;,o=UI_Store.catjoin(function(){
var e=&quot;&lt;li data-cat_id=&quot;+this.id+&quot; class=&apos;uis_ed site_categ edit_btn&apos;&gt;&quot;+this.name
;if(!this.id||!t.include(this.id)){this.id&amp;&amp;(n+=e);return&quot;&quot;}
return e})
;n+=&quot;&lt;li data-cat_id=new class=&apos;uis_ed site_categ edit_btn&apos;&gt;New category&quot;
;this.n.prod.clist.show().html(o.length&gt;0?o:&quot;&lt;i&gt;No category selected&lt;/i&gt;&quot;)
;this.n.prod.cat_select.html(n.length&gt;0?n:&quot;&lt;li&gt;&lt;i&gt;All the categories are already selected [Close]&lt;/i&gt;&quot;)
}else{this.n.prod.clist.hide();this.n.prod.cat_add.hide()
;this.n.prod.cat_none.show()}}else{var r=0
;o=UI_Store.catjoin(function(){
if(!this.id||!t.include(this.id)||!UI_Store.categories[this.id].stores.include(e.cpt.idserver))return&quot;&quot;
;r+=1
;return&quot;&lt;li data-cat_id=&quot;+this.id+&quot; class=&apos;site_categ&apos;&gt;&quot;+this.name
});if(r&gt;1||r&gt;0&amp;&amp;e.cpt.data.show_cat_all){this.n.prod.cat.show()
;this.n.prod.clist.html(o)}else this.n.prod.cat.hide()}},
scroll:function(){
this.cpt.data.auto_scroll&amp;&amp;!this.n.main.isTopIntoView()&amp;&amp;this.n.main.scrollIntoView(!0)
},_setUrl:function(){if(this.cpt.page.cptUrl){
this.cpt.data.auto_scroll&amp;&amp;!this.n.main.isTopIntoView()&amp;&amp;this.n.main.scrollIntoView(!0)
;var t=this.cpt.page.cptUrl.match(/s(\d+)([pcbs])(.*)?\/(.*)/)
;if(t){var e=parseInt(t[1]),i=this;if(&quot;p&quot;==t[2]){var s={}
;t[3]?t[3].split(/([n]\d+)|([af][pac])/).find_all(function(t){
return t&amp;&amp;t.length&gt;=2}).map(function(t){
return[t.charAt(0),t.slice(1)]}).each(function(t){
s[t[0]]=&quot;n&quot;==t[0]?parseInt(t[1]):t[1]}):s=null
;return UI_Store.products[e]?this.selectProd(e,s):UI_Store.getProducts([e]).done(function(){
i.selectProd(e,s)}).fail(function(){i.selectCat(null,!0)})}
return&quot;b&quot;==t[2]?1==t[1]?this.showCart(&quot;m&quot;):this.showCart():&quot;s&quot;==t[2]?this.selectSearch(decodeURI(t[4]),parseInt(t[3])):this.selectCat(e,null!=this.prodSelected,null,t[3])
}}(t&amp;&amp;&quot;s&quot;==t[0]||!this.cpt.page.cptUrl)&amp;&amp;this.selectCat(null,!0)
},createCartHeader:function(){if(this.n.cart){
if(&quot;editor&quot;!=v.mode&amp;&amp;this.n.cart.main.find(&quot;div&quot;).length&gt;0)return
}else this.n.cart={}
;var t=this,e=this.cpt.getGTPreset(&quot;button&quot;,&quot;cart_preset&quot;)
;this.n.cart.main.generateComponentCart({preset:e,cart_block:!!e
});if(e){
this.n.cart.bullet=$(&apos;&lt;span class=&quot;button_bullet&quot;&gt;&lt;/span&gt;&apos;)
;this.n.cart.main.find(&quot;.button_content .icon_wrapper&quot;).append(this.n.cart.bullet)
}if($.fn.hash_size(UI_Store.conf.methods)&gt;0){
this.n.cart.items=this.n.cart.main.find(&quot;.uis_ttl&quot;)
;this.n.cart.price=this.n.cart.main.find(&quot;.uis_pr&quot;)
;this.n.cart.articles=this.n.cart.main.find(&quot;.uis_cextend&quot;)
;this.n.cart.main.find(&quot;.uis_cresume, .uis_headf, .uis_exbtn&quot;).click(function(){
t.showCart()});if(&quot;editor&quot;!=v.mode){
this.n.prod.main.find(&quot;.uis_td_attr&quot;)
;this.n.cart.add=$(&quot;&lt;div class=&apos;uis_addcart&apos;&gt;&lt;div class=&apos;uis_cart_wrapper&apos;&gt;&lt;span class=uis_cart_quantity&gt;Quantity:&lt;input type=text class=&apos;uis_qte_prod site_textbox&apos;&gt;&lt;/span&gt;&lt;div&gt;&quot;+UI_Store.btn({
txt:&quot;&lt;span class=&apos;uis_bsa&apos;&gt;Add&lt;/span&gt;&quot;,&quot;class&quot;:&quot;site_button cta&quot;
})+&quot;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&quot;).insertAfter(this.n.prod.shipping_infos)
;this.n.cart.prod=$(&quot;&lt;div class=uis_prodcart&gt;&lt;small&gt;Items already in your shopping cart: &lt;div&gt;&lt;/div&gt;&lt;/small&gt;&lt;/div&gt;&quot;).insertAfter(this.n.cart.add)
;this.n.cart.add.find(&quot;.uis_btn&quot;).click(function(){
if(UI_Store.checkOptions(&quot;product&quot;,t.n.prod.opt,t.prodSelected.opts,!0)){
UI_Store.updateItem(t.prodSelected,t.n.cart.add.find(&quot;input&quot;).val(),t.optionsVal()||&quot;&quot;)
;t.addToCart(t.prodSelected)}})
;this.prodSelected&amp;&amp;this._setProdGui(this.prodSelected)}else{
this.n.cart.main.removeClass(&quot;admin_elem&quot;)
;this.n.cart.main.find(&quot;.uis_headf_no&quot;).hide()
;this.n.cart.main.find(&quot;.uis_hidden_data&quot;).hide()}
sigCtl.connect(&quot;UI_Store.updateCart&quot;,function(){
t.next_show.done(function(){t.updateCart()})});var i=1
;t.cpt.idserver&amp;&amp;(0!=UI_Store.cart.items.price&amp;&amp;$.cookie(&quot;uis_last_unpaid_orders&quot;)?i=t.cpt.ask({
request:&quot;order_status&quot;,data:{
orders:$.cookie(&quot;uis_last_unpaid_orders&quot;)}},function(t){
if(t.paid){UI_Store.removeItems(!0)
;$.cookie(&quot;uis_last_unpaid_orders&quot;,null,{path:&quot;/&quot;})}
}):$.cookie(&quot;uis_last_unpaid_orders&quot;,null,{path:&quot;/&quot;}))
;$.when(i).always(function(){UI_Store.updateCartHtml()})
;this.n.cart.main.show()
}else if(this.n.cart)if(&quot;editor&quot;==v.mode){
this.n.cart.main.addClass(&quot;admin_elem&quot;)
;this.n.cart.main.find(&quot;.uis_headf_no&quot;).show().on(&quot;click&quot;,function(){
propertyConverter.convertServer_manage(UI_Store.cpts[0],{
name:&quot;payment_conf&quot;,url:&quot;/store_provider/all&quot;
}).defaultAction(blockSelector.selectedCpt())})
;this.n.cart.main.find(&quot;.uis_headf, .uis_cresume&quot;).hide()
}else this.n.cart.main.hide()
;&quot;viewer&quot;==v.mode&amp;&amp;this.applyPreset();this.updateCptSize()},
buttonLoading:function(t,e){if(0!=e){
$(t).hide().addClass(&quot;buttonLoading&quot;);$(t).each(function(){
$(this).data(&quot;loading&quot;)||$(this).data(&quot;loading&quot;,$(&quot;&lt;img style=&apos;float: right;&apos; src=&apos;/assets/loadingAnimation.gif&apos;&gt;&quot;).appendTo($(this).parent()))
})}else{$(t).each(function(){
$(this).data(&quot;loading&quot;)&amp;&amp;$(this).data(&quot;loading&quot;).remove()
;$(this).data(&quot;loading&quot;,null)})
;$(t).show().removeClass(&quot;buttonLoading&quot;)}},
updateCart:function(){if(this.n.cart){var t=this
;t.n.cart.main.desactivate();setTimeout(function(){
UI_Store.cart.num&gt;0&amp;&amp;t.n.cart.main.activate()},500)
;var e=UI_Store.cart.num
;this.n.cart.items.text(sprintf(1==e?&quot; (%1$s item)&quot;:&quot; (%1$s items)&quot;,e))
;this.n.cart.bullet&amp;&amp;this.n.cart.bullet.text(e)
;this.n.cart.price.html(&quot;&quot;+UI_Store.show_price(UI_Store.cart.price))
;this.n.cart.articles.find(&quot;.uis_ul_w&quot;).html(UI_Store.cartHtmlProd.clone(!0)).find(&quot;li&quot;).each(function(){
$(this).on(&quot;click&quot;,function(){t.selectProd($(this).data(&quot;p&quot;).id)
;return!1})})
;var i=UI_Store.ct.clone(!0),s=i.find(&quot;.uis_btn.uis_sb&quot;).detach()
;this.n.billc.html(&quot;&lt;div&gt;&lt;/div&gt;&quot;).find(&quot;&gt; div&quot;).html(i)
;s.prependTo(this.n.billc);&quot;viewer&quot;==v.mode&amp;&amp;this.applyPreset()
;if(!this.payment_error){
this.payment_error=location.pathname.match(/-PEN(\d+)$/)
;if(this.payment_error){var n={4001:&quot;Transaction refused&quot;,
4002:&quot;Not enough funds on this card&quot;,4003:&quot;Transaction refused&quot;,
4004:&quot;Transaction abandoned&quot;,4005:&quot;Suspicion of fraud&quot;,
4006:&quot;Card in opposition&quot;,4007:&quot;Card in opposition&quot;,
4008:&quot;Authentication failed&quot;,4009:&quot;Authentication expired&quot;,
4010:&quot;Invalid transaction&quot;,4011:&quot;Double transaction&quot;,
4012:&quot;Incorrect card information&quot;,4013:&quot;Transaction refused&quot;}
;$(&quot;.uis_payment_err&quot;,this.n.billc).show().html(&quot;Payment error: &quot;+(n[this.payment_error[1]]||this.payment_error[1])+&quot;&lt;br&gt;Please retry your payment&quot;)
}else this.payment_error=-1}this.updateCptClass()
;this.updateCptSize()
;this.n.bill.find(&quot;.uis_order_follow&quot;).unbind(&quot;click&quot;).click(function(){
UI_Store.removeItems(!0);t.selectList(t.catSelected,!0)
;t.hideCart()
;tb_show(null,&quot;/cpt_member/member_space?site_id=&quot;+v.site_id+&quot;TB_iframe=true&amp;height=500&amp;width=1000&quot;)
})
;this.n.bill.find(&quot;.uis_back_to_store&quot;).unbind(&quot;click&quot;).click(function(){
UI_Store.removeItems(!0);t.selectList(t.catSelected,!0)
;t.hideCart()})
;this.n.bill.find(&quot;.uis_sb&quot;).unbind(&quot;click&quot;).click(function(){
t.selectList(t.catSelected,!0);t.hideCart()})
;this.n.bill.off(&quot;click&quot;,&quot;.uis_sc&quot;).on(&quot;click&quot;,&quot;.uis_sc&quot;,function(){
t.showCartPage(&quot;c&quot;);UI_Store.updateCartHtml();return!1})
;this.n.bill.find(&quot;.uis_sbp&quot;).unbind(&quot;click&quot;).click(function(){
if(0==UI_Store.cart.num)return alert(&quot;Your shopping cart is empty.&quot;)
;if(!UI_Store.checkOptions(&quot;cart&quot;,$(&quot;.uis_options_table&quot;,t.n.billc),UI_Store.conf.options,!0))return alert(&quot;Please fill in your order options.&quot;)
;if($(&quot;.uis_terms_checkbox&quot;,t.n.bill).is(&quot;:not(:checked)&quot;))return alert(&quot;You must accept the general terms of sales to move to the next step&quot;)
;t.updatePaymentFormHtml($(this).find(&quot;.uis_bsa&quot;).attr(&quot;method&quot;))
;t.showCartPage(&quot;f&quot;)
;t.n.bill.find(&quot;.uis_sbpm .uis_bsa&quot;).text(UI_Store.conf.summary_step||&quot;embed&quot;==UI_Store.conf.methods[t.current_provider].integration||UI_Store.shipping_step_needed?&quot;Next step &gt;&gt;&quot;:&quot;Order and pay &gt;&gt;&quot;)
;t.n.bill.find(&quot;.uis_bill_breadcrumb [data-page=shipping]&quot;).toggle(UI_Store.shipping_step_needed)
;t.n.bill.find(&quot;.uis_bill_breadcrumb [data-page=summary]&quot;).toggle(!!UI_Store.conf.summary_step)
})
;this.n.bill.find(&quot;.uis_sbpm&quot;).unbind(&quot;click&quot;).click(function(){
var e=this,i=$(&quot;._ui18_member_signin:visible&quot;,t.n.bill).length&gt;0
;if(!t.testFormGdpr(t.n.bill)&amp;&amp;!i){
$(&quot;.buttonLoading&quot;).length&amp;&amp;t.buttonLoading($(&quot;.buttonLoading&quot;),!1)
;return!1}t.buttonLoading(e)
;var s=t.n.bill.find(&quot;.uis_cerr&quot;).empty(),n=t.n.bill.find(&quot;.uis_bft&quot;).find(&quot;input, textarea, select&quot;).removeClass(&quot;uis_pf_err&quot;),o={}
;n.each(function(){var t=$(this);o[t.attr(&quot;name&quot;)]=t.val()})
;o.name=o.member_name;o.firstname=o.member_firstname
;UI_Store.order_in_progress=!0;t.cpt.ask({request:&quot;order&quot;,
normal_return_url:location.protocol+&quot;//&quot;+location.host+v.selectedPageFg.getUrl(!1,&quot;/s1b/Congratulations&quot;),
cancel_return_url:location.protocol+&quot;//&quot;+location.host+v.selectedPageFg.getUrl(!1,&quot;/s0b/View-shopping-cart&quot;),
cart:UI_Store.cart,user:o,signin:i,gdpr:t.getGdpr(t.n.gdpr)
},function(s){var n=new Date;UI_Store.order_in_progress=!1
;t.buttonLoading(e,!1)
;$(&quot;.buttonLoading&quot;).length&amp;&amp;t.buttonLoading($(&quot;.buttonLoading&quot;),!1)
;if(s.success){
if(i)t.updatePaymentFormHtml();else if(s.country_changed){
alert(sprintf(&quot;The delivery country (%1$s) does not match the country used to calculate shipping costs (%2$s).\nThe cart will be updated and you will be able to place the order with correct shipping costs.&quot;,s.new_country,s.previous_country))
;t.showCartPage(&quot;c&quot;);UI_Store.updateCartHtml()}else{
UI_Store.cart=s.cart;UI_Store.saveCookie();var r=function(e,i){
if(&quot;cb&quot;==o.m.substr(0,2)||&quot;paypal&quot;==o.m){
if(new Date-n&gt;6e5)var r=t.cpt.ask({
request:&quot;refresh_payment_form&quot;,order_reference:i});else r=s
;$.when(r).done(function(n){n.success||(n=s)
;if(n.payment_error){
alert(&quot;The payment method is not usable. Please try another payment method.\n&quot;+(n.payment_error_message||&quot;&quot;))
;t.showCartPage(&quot;c&quot;);UI_Store.updateCartHtml()}else{
$(&quot;#form_cb_wrapper&quot;).remove();try{
t.n.bill.find(&quot;.uis_cb_form&quot;).html(UI_Store.cb_text&amp;&amp;UI_Store.cb_text.text?UI_Store.cb_text.text:&quot;&quot;).append($(&quot;&lt;div id=&apos;form_cb_wrapper&apos;&gt;&quot;).html(n.form))
}catch(o){console.error(&quot;Error integrating cb form&quot;,o)}
if(&quot;submit&quot;==s.mode){t.n.bill.find(&quot;.uis_cb_form form&quot;).submit()
;t.buttonLoading(e)}else if(&quot;show&quot;==n.mode){t.showCartPage(&quot;cb&quot;)
;n.title&amp;&amp;$(&quot;.uis_bill_mn h2&quot;).text(n.title)}
$.cookie(&quot;uis_last_unpaid_orders&quot;,($.cookie(&quot;uis_last_unpaid_orders&quot;)||&quot;&quot;)+&quot;,&quot;+i,{
expires:365,path:&quot;/&quot;})}})}else{t.cpt.ask({
request:&quot;confirm_order&quot;,order_reference:i},function(t){
t.order_reference&amp;&amp;$.cookie(&quot;uis_last_unpaid_orders&quot;,($.cookie(&quot;uis_last_unpaid_orders&quot;)||&quot;&quot;)+&quot;,&quot;+t.order_reference,{
expires:365,path:&quot;/&quot;})});t.showCart()
;t.showCartPage(&quot;m&quot;).find(&quot;.uis_other_payment_method&quot;).toggle(Object.keys(UI_Store.conf.methods).length&gt;0)
}$.cookie(&quot;uis_last_payment_method&quot;,o.m,{expires:1,path:&quot;/&quot;})
},a=function(e,i){if(s.order_summary_html){
$(&quot;.uis_summary_content&quot;).html(s.order_summary_html)
;$(&quot;.uis_summary_content .uis_summary_use_shipping&quot;).toggle(UI_Store.use_shipping)
;$(&quot;.uis_summary_content .uis_summary_product_img&quot;).each(function(){
UI_Store.setImage($(this),UI_Store.products[$(this).data(&quot;product-id&quot;)].img,[110,null],!0)
});var n=!1
;(UI_Store.cart.shipping_methods||[]).each_with_index(function(t){
if(t.pickup_point_id){n=!0
;$(&quot;.uis_summary_pickup_point_address&quot;).append($(&quot;&lt;div&gt;&quot;).html($(&quot;[for*=uis_shipping_pickup_point_id_&quot;+t.pickup_point_id+&quot;_&quot;+t.id+&quot;]&quot;).html()))
}});$(&quot;.uis_summary_pickup_point&quot;).toggle(n)
;t.buttonLoading(e,!1);t.showCartPage(&quot;summary&quot;)
;t.n.bill.find(&quot;.uis_pay .uis_bsa&quot;).text(&quot;embed&quot;==UI_Store.conf.methods[t.current_provider].integration?&quot;Next step&quot;:&quot;Order and pay&quot;)
;t.n.bill.find(&quot;.uis_pay&quot;).off(&quot;click&quot;).click(function(){
r(this,i)})}else r(e,i)},c=function(){
t.n.bill.find(&quot;.uis_bill_shipping_form&quot;).html(s.shipping_step_html)
;t.applyPreset()
;t.n.bill.find(&quot;.uis_save_shipping .uis_bsa&quot;).text(UI_Store.conf.summary_step||&quot;embed&quot;==UI_Store.conf.methods[t.current_provider].integration?&quot;Next step &gt;&gt;&quot;:&quot;Order and pay &gt;&gt;&quot;)
;t.showCartPage(&quot;shipping&quot;);var e=null
;$(&quot;.uis_bill_shipping_form .options&quot;,t.n.bill).off(&quot;click change&quot;).on(&quot;click change&quot;,function(){
var i=$(&quot;.uis_bill_shipping_form .options:checked&quot;).val()
;if(i!=e){e=i;var n=t.n.bill.find(&quot;.uis_save_shipping&quot;)
;t.buttonLoading(n)
;UI_Store.cart.shipping_methods=i.split(&quot;,&quot;).collect(function(t){
return{id:parseInt(t)}});t.cpt.ask({request:&quot;order&quot;,
cart:UI_Store.cart,order_reference:s.order_reference,
from_shipping_step_selection:!0},function(e){
t.buttonLoading(n,!1);s=e;UI_Store.cart=s.cart
;UI_Store.saveCookie();c()},function(){t.buttonLoading(n,!1);c()
})}})
;t.n.bill.find(&quot;.uis_save_shipping,.uis_choose_shipping&quot;).off(&quot;click&quot;).click(function(){
var e=this;t.buttonLoading(e);setTimeout(function(){
$(&quot;[name*=uis_shipping_pickup_point_id]:checked&quot;,t.n.bill).each(function(){
var t=$(this);UI_Store.cart.shipping_methods.find(function(e){
return e.id==t.closest(&quot;.uis_shipping_pickups&quot;).data(&quot;shipping_method_id&quot;)
}).pickup_point_id=t.val()});t.cpt.ask({request:&quot;order&quot;,
cart:UI_Store.cart,order_reference:s.order_reference
},function(i){s=i;UI_Store.cart=s.cart;UI_Store.saveCookie()
;t.buttonLoading(e,!1);a(e,s.order_reference)},function(){
t.buttonLoading(e,!1);a(e)})},0)})}
;s.shipping_step_html?c(s):a(e,s.order_reference)}
t.applyPreset()}},function(i){UI_Store.order_in_progress=!1
;t.buttonLoading(e,!1)
;$(&quot;.buttonLoading&quot;).length&amp;&amp;t.buttonLoading($(&quot;.buttonLoading&quot;),!1)
;var n=t.n.bill.find(&quot;.uis_bft&quot;).find(&quot;input, textarea, select&quot;).removeClass(&quot;uis_pf_err&quot;)
;n.each(function(t,e){
o[$(e).attr(&quot;name&quot;)]&amp;&amp;$(e).val(o[$(e).attr(&quot;name&quot;)])});var r=[]
;for(var a in i)if(&quot;function&quot;!=typeof i[a]){
var c=n.filter(&quot;[name=&quot;+a+&quot;],[name=member_&quot;+a+&quot;],[name=&quot;+a.replace(&quot;member_&quot;,&quot;&quot;)+&quot;]&quot;,t.n.bill.find(&quot;.uis_bill_f&quot;))
;if(0==c.length)r.push(i[a]);else{c.addClass(&quot;uis_pf_err&quot;)
;r.push((a.match(/^member_/)?&quot;&quot;:c.parents(&quot;tr:first&quot;).find(&quot;td:first&quot;).html().replace(/\*/,&quot;&quot;))+i[a])
}}
s.html(&quot;&lt;div style=&apos;padding:10px&apos;&gt;Please fix the errors below:&lt;div style=&apos;font-weight:normal&apos;&gt;&quot;+r.join(&quot;&lt;br&gt;&quot;)+&quot;&lt;/div&gt;&lt;/div&gt;&quot;)
;t.updateCptSize()})})}},updatePaymentFormHtml:function(t){
t=t||this.current_provider;this.current_provider=t
;var e=this.n.bill,i=UI_Store.conf.methods[t]
;e.find(&quot;.uis_bfb&quot;).html(i.before)
;e.find(&quot;.uis_bfa&quot;).html(i.after)
;var s=e.find(&quot;.uis_bft&quot;).empty()
;if(MemberController.isConnected()){
s.append(&quot;&lt;tr class=_ui18_member_signup&gt;&lt;td&gt;Update my details&lt;/td&gt;&lt;td&gt;&lt;input type=checkbox name=member_update_data&gt; &lt;label&gt;Save as my default details&lt;/label&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=_ui18_member_signup&gt;&lt;td&gt;Name *&lt;/td&gt;&lt;td&gt;&lt;input type=hidden name=m value=&apos;&quot;+t+&quot;&apos;&gt;&lt;input type=hidden name=store_provider_id value=&apos;&quot;+i.id+&quot;&apos;&gt;&lt;input type=text name=member_name class=site_textbox&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=_ui18_member_signup&gt;&lt;td&gt;Firstname *&lt;/td&gt;&lt;td&gt;&lt;input type=text name=member_firstname class=site_textbox&gt;&lt;/td&gt;&lt;/tr&gt;&quot;)
;$(&quot;.member_unconnected&quot;,e).hide()
;var n=this,o=$(&quot;&lt;tr&gt;&lt;td colspan=2&gt;&lt;img src=&apos;/assets/loadingAnimation.gif&apos;&gt;&lt;/td&gt;&lt;/tr&gt;&quot;).prependTo(s)
;this.cpt.ask({request:&quot;member_coordinates&quot;,data:{}
},function(t){o.remove()
;if(t.coordinates&amp;&amp;t.coordinates.length&gt;0){
s.find(&quot;.uis_previous_coordinates_container&quot;).remove()
;s.prepend(&quot;&lt;tr class=&apos;uis_previous_coordinates_container&apos;&gt;&lt;td colspan=2&gt;&lt;div style=&apos;font-size:20px;&apos;&gt;Previous personal details:&lt;/div&gt;&lt;div class=&apos;uis_previous_coordinates&apos;&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&quot;)
;var e=s.find(&quot;.uis_previous_coordinates&quot;),i=[]
;t.coordinates.each(function(t){function o(){
t.name&amp;&amp;$(&quot;[name=member_name]&quot;,s).val(t.name)
;t.firstname&amp;&amp;$(&quot;[name=member_firstname]&quot;,s).val(t.firstname)
;t.street&amp;&amp;$(&quot;[name=street]&quot;,s).val(t.street)
;t.zip&amp;&amp;$(&quot;[name=zip]&quot;,s).val(t.zip)
;t.city&amp;&amp;$(&quot;[name=city]&quot;,s).val(t.city)
;t.country_id&amp;&amp;$(&quot;[name=country_id]&quot;,s).val(t.country_id)
;t.company&amp;&amp;$(&quot;[name=company]&quot;,s).val(t.company)
;t.phone&amp;&amp;$(&quot;[name=phone]&quot;,s).val(t.phone)
;t.comment&amp;&amp;$(&quot;[name=comment]&quot;,s).val(t.comment)}
var r=$(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(e);i.push(r)
;$(&quot;&lt;div&gt;&quot;+t.html+&quot;&lt;/div&gt;&quot;).appendTo(r)
;t.previous_coordinates&amp;&amp;o()
;$(&quot;&lt;a href=# class=&apos;site_button uis_btn&apos;&gt;&lt;span class=&apos;uis_bsa&apos;&gt;Modify this address&lt;/span&gt;&lt;/a&gt;&quot;).appendTo(r).click(function(){
o();return!1});$(&quot;&lt;br&gt;&quot;).appendTo(r);var a=&quot;Order and pay&quot;
;(n.getGdprConfig().checkbox||UI_Store.conf.summary_step||&quot;embed&quot;==UI_Store.conf.methods[n.current_provider].integration||UI_Store.shipping_step_needed)&amp;&amp;(a=&quot;Use this address&quot;)
;$(&quot;&lt;div class=&apos;uis_btn site_button&apos;&gt;&lt;span class=&apos;uis_bsa&apos;&gt;&quot;+a+&quot;&lt;/span&gt;&lt;/div&gt;&quot;).appendTo(r).click(function(){
o();n.buttonLoading(this);$(&quot;.uis_sbpm:visible&quot;).click()})})
;n.applyPreset();var r=i.collect(function(t){return t.height()
}).max();i.each(function(t){t.height(r)});n.updateCptSize()}
$(&quot;.uis_gdpr&quot;,n.node).removeClass(&quot;error&quot;).show()},function(){
o.remove()})}else{
s.append(&quot;&lt;tr class=_ui18_member_signin&gt;&lt;td&gt;Email *&lt;/td&gt;&lt;td&gt;&lt;input type=text class=site_textbox name=member_email autocomplete=&apos;email&apos;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=_ui18_member_signin&gt;&lt;td&gt;Password *&lt;/td&gt;&lt;td&gt;&lt;input type=password class=site_textbox name=member_password autocomplete=&apos;current-password&apos;&gt;&lt;br&gt;&lt;a href=# class=_ui18_do_forgot_password&gt;Forgotten password&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=_ui18_member_signup&gt;&lt;td&gt;Name *&lt;/td&gt;&lt;td&gt;&lt;input type=hidden name=m value=&apos;&quot;+t+&quot;&apos;&gt;&lt;input type=hidden name=store_provider_id value=&apos;&quot;+i.id+&quot;&apos;&gt;&lt;input type=text class=site_textbox name=member_name autocomplete=&apos;family-name&apos;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=_ui18_member_signup&gt;&lt;td&gt;Firstname *&lt;/td&gt;&lt;td&gt;&lt;input type=text class=site_textbox name=member_firstname autocomplete=&apos;given-name&apos;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr class=_ui18_member_signup&gt;&lt;td&gt;Email *&lt;/td&gt;&lt;td&gt;&lt;input class=site_textbox type=text name=member_email autocomplete=&apos;email&apos;&gt;&lt;/td&gt;&lt;/tr&gt;&quot;)
;$(&quot;.member_unconnected&quot;,e).show()
;MemberController.forgotPasswordButton(s)
;sigCtl.getVariable(&quot;User.site_owner&quot;,function(t,e){
if(e.owner&amp;&amp;e.logged){var i=$(&quot;[name=member_email]:last&quot;,s)
;i.closest(&quot;tr&quot;).prependTo(i.closest(&quot;table&quot;))
;var n=$(&quot;&lt;div class=uis_member_email_status&gt;&quot;).appendTo(i.parent())
;n.text(&quot;Site owner detected: you can order on behalf of a member by typing his/her email address&quot;)
;var o=null,r=null;i.on($.change_events,function(){
var t=this.value;if(t!=r&amp;&amp;t.match(/\@.+\.../)){r=t;o&amp;&amp;o.abort()
;n.text(&quot;Member search in progress...&quot;);o=$.ajax({
simple_ajax:!0,timeout:5e3,
url:&quot;https://www.sitew.com/json/member_signin_for_owner&quot;,
dataType:&quot;jsonp&quot;,data:{site_id:v.site_id,member_email:t},
success:function(t){n.text(t.status)
;t.member&amp;&amp;MemberController.signin(t.member)}})}})}})}
$(&quot;._ui18_member_signin&quot;,s).hide()
;[[&quot;newsletter&quot;,&quot;Newsletter&quot;,&quot;checkbox&quot;,&quot;n&quot;,null,&quot;I accept to receive newsletters&quot;],[&quot;street&quot;,&quot;Address&quot;,&quot;textarea&quot;,&quot;a&quot;,&quot;street-address&quot;],[&quot;zip&quot;,&quot;Zip&quot;,&quot;text&quot;,&quot;a&quot;,&quot;postal-code&quot;],[&quot;city&quot;,&quot;City&quot;,&quot;text&quot;,&quot;a&quot;,&quot;address-level2&quot;],[&quot;country_id&quot;,&quot;Country&quot;,&quot;country_select&quot;,&quot;co&quot;,null],[&quot;phone&quot;,&quot;Phone&quot;,&quot;text&quot;,&quot;p&quot;,&quot;tel&quot;],[&quot;company&quot;,&quot;Company&quot;,&quot;text&quot;,&quot;s&quot;,&quot;company&quot;],[&quot;comment&quot;,&quot;Comment&quot;,&quot;textarea&quot;,&quot;c&quot;,null]].each(function(t){
var e=i.data[t[3]];if(&quot;h&quot;!=e){
if(&quot;newsletter&quot;==t[0]&amp;&amp;MemberController.isConnected()&amp;&amp;&quot;true&quot;==MemberController.nlSubscriber())return
;html=&quot;&lt;tr class=_ui18_member_signup&gt;&lt;td&gt;&quot;+t[1]+&quot; &quot;+(&quot;c&quot;==e&amp;&amp;&quot;checkbox&quot;!=t[2]?&quot;*&quot;:&quot;&quot;)+&quot;&lt;/td&gt;&lt;td&gt;&quot;
;var n=([&quot;text&quot;,&quot;textarea&quot;].include(t[2])?&quot;site_textbox &quot;:&quot;&quot;)+(&quot;c&quot;==e?&quot;uis_req&quot;:&quot;&quot;),o=t[4]?&quot; autocomplete=&apos;&quot;+t[4]+&quot;&apos;&quot;:&quot;&quot;
;switch(t[2]){case&quot;text&quot;:
html+=&quot;&lt;input type=text name=&quot;+t[0]+&quot; class=&apos;&quot;+n+&quot;&apos;&quot;+o+&quot;&gt;&quot;;break
;case&quot;textarea&quot;:
html+=&quot;&lt;textarea name=&quot;+t[0]+&quot; class=&apos;&quot;+n+&quot;&apos;&quot;+o+&quot;&gt;&lt;/textarea&gt;&quot;
;break;case&quot;country_select&quot;:
html+=&quot;&lt;span class=&apos;select_style&apos;&gt;&lt;select id=country_select name=&quot;+t[0]+&quot; class=&apos;&quot;+n+&quot;&apos;&quot;+o+&quot;&gt;&lt;/select&gt;&lt;/span&gt;&quot;
;break;case&quot;checkbox&quot;:
html+=&quot;&lt;input id=&apos;&quot;+t[0]+&quot;&apos; type=&apos;checkbox&apos; name=&apos;&quot;+t[0]+&quot;&apos; class=&apos;&quot;+n+&quot;&apos; /&gt; &lt;label for=&apos;&quot;+t[0]+&quot;&apos;&gt;&quot;+t[5]+&quot;&lt;/label&gt;&quot;
}html+=&quot;&lt;/td&gt;&lt;/tr&gt;&quot;;s.append(html)}})
;$.get(&quot;/cpt_store/country_list?v2&quot;,function(t){
$(&quot;#country_select&quot;).replaceWith($(t).find(&quot;select&quot;).attr(&quot;name&quot;,&quot;country_id&quot;).attr(&quot;class&quot;,$(&quot;#country_select&quot;).attr(&quot;class&quot;)))
})},showCart:function(t){
if(this.cpt.id&amp;&amp;this.n.bill.is(&quot;:hidden&quot;)){
this.n.catal.parent().hide();if(&quot;m&quot;==t){
if(0==$.fn.hash_size(UI_Store.conf)){var e=this
;return setTimeout(function(){e.showCart(t)},100)}
UI_Store.removeItems(!0)
;this.n.bill.find(&quot;.uis_bfa&quot;).html(UI_Store.conf.methods[$.cookie(&quot;uis_last_payment_method&quot;)||&quot;paypal&quot;].after)
;$.cookie(&quot;uis_last_payment_method&quot;,null,{path:&quot;/&quot;})
;this.showCartPage(&quot;m&quot;).find(&quot;.uis_other_payment_method&quot;).hide()
;this.cpt.page.setCptUrl(&quot;/s1b/Congratulations&quot;,&quot;Order successfully sent&quot;,this.cpt)
}else{this.showCartPage(&quot;c&quot;)
;this.cpt.page.setCptUrl(&quot;/s0b/View-shopping-cart&quot;,&quot;View shopping cart&quot;,this.cpt)
;v.scroll_to_component(this.component,{fast:!0})}
this.n.bill.show();this.updateCptSize()
;&quot;editor&quot;==v.mode&amp;&amp;this.applyPreset()}},hideCart:function(){
if(this.cpt.id){this.n.catal.parent().show();this.n.bill.hide()
;this.updateCptSize()}},showCartPage:function(t){var e=this
;&quot;f&quot;==t?sigCtl.connect(&quot;Member.connection_state_changed&quot;,function(){
e.updatePaymentFormHtml()
},&quot;store_update&quot;):sigCtl.disconnect(&quot;Member.connection_state_changed&quot;,&quot;store_update&quot;)
;&quot;m&quot;==t&amp;&amp;this.n.bill.find(&quot;.uis_order_follow&quot;).closest(&quot;.uis_btn&quot;).toggle(MemberController.isConnected())
;this.n.bill.find(&quot;.uis_bill_page&quot;).hide()
;this.n.bill.find(&quot;.uis_bill_breadcrumb&quot;).toggle(&quot;summary&quot;==t||&quot;cb&quot;==t||&quot;shipping&quot;==t||&quot;f&quot;==t)
;this.n.bill.find(&quot;.uis_bill_breadcrumb [data-page]&quot;).removeClass(&quot;uis_step_selected&quot;)
;this.n.bill.find(&quot;.uis_bill_breadcrumb [data-page=&quot;+t+&quot;]&quot;).show().addClass(&quot;uis_step_selected&quot;)
;var i=this.n.bill.find(&quot;.uis_bill_&quot;+t).show()
;this.updateCptSize();this.scroll();return i},
onFontFamilyUpdate:function(){this.updateCptSize()},
applyPreset:function(){if(GraphicalType.available){
var t=this,e=GraphicalType.graphical_types.button.preset_data.prefix,i=this.n.prod.main.find(&quot;.uis_addcart .uis_btn&quot;).parent()
;if(i){i.removeClassMatch(new RegExp(e))
;(s=this.cpt.getGTPreset(&quot;button&quot;,&quot;cta_preset&quot;))&amp;&amp;i.addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
}if(this.n.cart){
var s=this.cpt.getGTPreset(&quot;button&quot;,&quot;cart_preset&quot;)
;Misc.try_forever(function(){t.n.cart.items.show()})
;e=GraphicalType.graphical_types.button.preset_data.prefix
;this.n.cart.main.parent().removeClassMatch(new RegExp(e))
;if(s){this.n.cart.main.parent().addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
;Misc.try_forever(function(){t.n.cart.items.hide()})}}
var n=$().add(this.n.cat.find(&quot;&gt; ul&quot;)).add(this.n.main.find(&quot;#uis_add_to_cart .uis_add_cart_w&quot;)).add(this.n.billc.find(&quot;.uis_pay_btns_wrapper&quot;)).add(this.n.billc.find(&quot;.uis_btn.uis_sb&quot;).parent()).add(this.n.bill.find(&quot;.uis_bill_f .uis_btn.uis_sc&quot;).parent()).add(this.n.bill.find(&quot;.uis_bill_shipping .uis_btn.uis_sc&quot;).parent()).add(this.n.bill.find(&quot;.uis_bill_m .uis_btn.uis_back_to_store&quot;).parent()).add(this.n.bill.find(&quot;.uis_previous_coordinates &gt; div&quot;)).add(this.n.bill.find(&quot;.uis_sbpm.site_button&quot;).parent()).add(this.n.bill.find(&quot;.uis_pay.site_button&quot;).parent()).add(this.n.bill.find(&quot;.uis_bill_shipping&quot;)).add(this.n.bill.find(&quot;.uis_bill_summary&quot;)).add(this.n.bill.find(&quot;._ui18_do_member_signup&quot;).parent()).add(this.n.main.find(&quot;.uis_choose_shipping&quot;).parent()).add(this.n.bill.find(&quot;.uis_save_shipping&quot;).parent())
;this.n.cart&amp;&amp;this.n.cart.articles&amp;&amp;(n=n.add(this.n.cart.articles.find(&quot;.uis_exbtn&quot;)))
;this.cat_ids.length||(n=n.add(this.n.cat))
;n.removeClassMatch(new RegExp(e))
;(s=this.cpt.getGTPreset(&quot;button&quot;,&quot;others_buttons_preset&quot;))&amp;&amp;n.addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
;e=GraphicalType.graphical_types.searchbox.preset_data.prefix
;this.n.search.removeClassMatch(new RegExp(e))
;(s=this.cpt.getGTPreset(&quot;searchbox&quot;,&quot;searchbox_preset&quot;))&amp;&amp;this.n.search.addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
;e=GraphicalType.graphical_types.textbox.preset_data.prefix
;(o=$().add(this.n.prod.main).add(this.n.bill)).removeClassMatch(new RegExp(e))
;(s=this.cpt.getGTPreset(&quot;textbox&quot;,&quot;textboxes_preset&quot;))&amp;&amp;o.addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
;e=GraphicalType.graphical_types.backdrop.preset_data.prefix
;var o=$().add(this.n.catal.parent()).add(this.n.bill.find(&quot;.main_cart&quot;).parent()).add(this.n.bill.find(&quot;h2.uis_bill_mn&quot;).parent()),r=$().add(this.n.bill.find(&quot;h2.title&quot;)).add(this.n.bill.find(&quot;h2.uis_bill_mn&quot;)),a=$().add(this.n.catal).add(this.n.bill.find(&quot;.main_cart&quot;)).add(this.n.bill.find(&quot;h2.uis_bill_mn&quot;).parent().find(&quot;&gt; div:not(.uis_btn)&quot;))
;o.removeClassMatch(new RegExp(e))
;if(s=this.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrop_preset&quot;)){
r.addClass(&quot;gt_backdrop_title uis_bill_mn&quot;)
;a.addClass(&quot;gt_backdrop_content&quot;);o.addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
}else{r.removeClass(&quot;gt_backdrop_title&quot;)
;a.removeClass(&quot;gt_backdrop_content&quot;)}
e=GraphicalType.graphical_types.buttonsgroup.preset_data.prefix
;this.n.pages.removeClassMatch(new RegExp(e))
;(s=this.cpt.getGTPreset(&quot;buttonsgroup&quot;,&quot;pagination_preset&quot;))&amp;&amp;this.n.pages.addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
;if(this.cat_ids.length){
this.n.cat.removeClassMatch(new RegExp(e))
;(s=this.cpt.getGTPreset(&quot;buttonsgroup&quot;,&quot;categories_preset&quot;))&amp;&amp;this.n.cat.addClass(e+&quot; &quot;+e+&quot;_&quot;+s)
}}this.n.main.removeClassMatch(/uistore_preset/)
;if(&quot;c&quot;==this.cpt.data.style){
var c=this.cpt.getData(&quot;preset&quot;)||1;this.cpt.data.preset=c
;this.n.main.addClass(&quot;uistore_preset uistore_preset_&quot;+c)}
this.updateCptSize();this.onResize()},
onPanelPresetLoad:function(){var t=this
;presetController.create_panel(this.cpt)
;$(&quot;#list_styles .create_preset&quot;).on(&quot;click&quot;,function(){
presetController.create(t.cpt);t._showProp()})
;$(&quot;.ui_store_styles&quot;).on(&quot;change&quot;,&quot;.rad&quot;,function(){
if($(this).val()!=t.cpt.data.preset){
t.cpt.setData(&quot;preset&quot;,$(this).val())
;$(&quot;#design_blocks_wrapper&quot;).hasClass(&quot;active&quot;)&amp;&amp;$(&quot;#design_blocks_wrapper&quot;).desactivate()
}presetController.load_panel(t.cpt,$(this).val())
;$(this).closest(&quot;section&quot;).addClass(&quot;selected&quot;).siblings().removeClass(&quot;selected&quot;)
});$(&quot;.ui_store_styles&quot;).on(&quot;click&quot;,&quot;section&quot;,function(){
$(this).find(&quot;.rad&quot;).prop(&quot;checked&quot;,!0).trigger(&quot;change&quot;)})
;$.each($(&quot;.ui_store_styles &gt; section:not(.preset_interface)&quot;),function(e,i){
var s=$(i),n=parseInt(s.data(&quot;cssid&quot;))
;$(&quot;.actionPreset&quot;,i).hide()
;if(presetController.find(t.cpt.component_type_id,null,s.data(&quot;cssid&quot;))){
$(&quot;.revertPreset&quot;,i).show()
;$(&quot;.dyn_presets .uistore_preset_&quot;+s.data(&quot;cssid&quot;)).closest(&quot;section&quot;).hide()
;presetController.find(t.cpt.component_type_id,null,t.cpt.getData(&quot;preset&quot;))&amp;&amp;$(&quot;#list_styles &gt; section[data-cssid=&quot;+t.cpt.getData(&quot;preset&quot;)+&quot;]&quot;).trigger(&quot;click&quot;)
}else $(&quot;.convertPreset&quot;,i).show()
;$(&quot;.convertPreset&quot;,i).on(&quot;click&quot;,function(){
presetController.create(t.cpt,n);$(this).hide()
;$(i).find(&quot;.revertPreset&quot;).show()
;$(&quot;.UI_Store&quot;,i).removeClassMatch(/uistore_preset/).addClass(&quot;uistore_preset uistore_preset_&quot;+n)
;$(&quot;#loading_preset&quot;).hide();UI_Store.onPropertyPresetChanged()
;historyController.add(presetController,[i,&quot;customizePreset&quot;,t.component.component_type],!1)
});$(&quot;.revertPreset&quot;,i).on(&quot;click&quot;,function(){
historyController.offRecords(function(){
presetController.find(t.cpt.component_type_id,null,n)&amp;&amp;presetController.find(t.cpt.component_type_id,null,n).remove()
});UI_Store.updatePreset()
;UI_Store.onPropertyPresetChanged([&quot;preset_reverted&quot;])
;$(&quot;.UI_Store&quot;,i).removeClassMatch(/uistore_preset/).addClass(&quot;uistore_preset uistore_preset_&quot;+n)
;$(&quot;.convertPreset&quot;,i).show()
;$(this).add($(&quot;.clonePreset&quot;,i)).hide()})
;presetController.bind_preset_name(t.cpt.component_type,s,n)})
;$(&quot;input[name=selected_store_style][value=&quot;+(this.cpt.data.preset||1)+&quot;]:first&quot;).prop(&quot;checked&quot;,!0).click()
;setTimeout(function(){
var t=$(&quot;#list_styles section.selected&quot;),e=t.position().top
;t.closest(&quot;.lt_pp&quot;).length&amp;&amp;(e+=t.closest(&quot;.lt_pp&quot;).position().top)
;$(&quot;#design_blocks_wrapper&quot;).mCustomScrollbar(&quot;scrollTo&quot;,e)
},200)},create_preset_selection_node:function(t){
var e=this,i=$(&quot;#list_styles section:not(.preset_interface):eq(0)&quot;).clone(!1)
;i.find(&quot;.UI_Store&quot;).removeClassMatch(/uistore_preset/).addClass(&quot;uistore_preset uistore_preset_&quot;+t)
;i.removeAttr(&quot;data-cssid&quot;).removeData(&quot;cssid&quot;)
;$(&quot;#list_styles .dyn_presets&quot;).append(i)
;$(&quot;.revertPreset, .convertPreset&quot;,i).hide()
;$(&quot;.removePreset&quot;,i).show().on(&quot;click&quot;,function(){
var i=$(&quot;.dyn_presets section&quot;).index(this.closest(&quot;section&quot;)),s=$(&quot;.dyn_presets section&quot;)[i]
;presetController.find(e.cpt.component_type_id,null,t).remove(i,s)
;s.remove()});$(&quot;.clonePreset&quot;,i).show().on(&quot;click&quot;,function(){
presetController.create(e.cpt,t);return!1})
;i.find(&quot;input&quot;).attr(&quot;id&quot;,&quot;rad_uit_&quot;+t).val(t)
;i.find(&quot;label&quot;).attr(&quot;for&quot;,&quot;rad_uit_&quot;+t)
;presetController.bind_preset_name(this.cpt.component_type,i,t,!0)
;return i}};</script><style>.uis_warn,.uis_payment_err{color:#b00;background-color:#FFF;padding:5px;font-size:16px;font-weight:800;text-decoration:underline;text-align:center}
.uis_payment_err{display:none}
.uis_cat{clear:both;margin:20px 0}
.uis_cat:not(.gtbuttonsgroup_preset) li{display:inline-block;cursor:pointer;margin:0 5px 5px 0;padding:10px;border:1px solid #000;white-space:nowrap;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}
.uis_cat:not(.gtbuttonsgroup_preset) li.uis_sel{border:2px solid #000;text-decoration:none;font-weight:800;border-radius:0;-moz-border-radius:0;-webkit-border-radius:0}
.uis_cat.gtbuttonsgroup_preset{text-align:center}
.uis_cat li{cursor:pointer}
.uis_cat .site_categ a{color:inherit;text-decoration:none}
.uis_prod_label{margin-bottom:5px;margin-top:20px;font-weight:700}
.uis_prod_label .edit_btn{font-weight:400}
.sitew_editor .selected .uis_prod_bloc{padding:5px;position:relative}
.sitew_editor .selected .uis_prod_bloc.open .uis_prod_bloc_toggle{transform:rotate(180deg)}
.uis_prod_bloc_toggle.admin_elem{position:absolute;right:5px;top:10px;font-size:18px;height:24px;width:24px;text-align:center;padding-top:4px;box-sizing:border-box;cursor:pointer}
.uis_page{display:none}
.uis_cmd_p{margin:10px;text-align:right}
.uis_sort{padding:10px 0;float:left;margin:9px 0 0}
.uis_sort span{text-decoration:underline;cursor:pointer}
.uis_sort_hidden{display:none}
.uis_ssa::after,.uis_ss::after{content:&quot;&quot;;position:absolute;font-family:Icon;font-size:10px;right:-2px;top:0;bottom:0;line-height:normal;display:flex;align-items:center}
.uis_ss::after{content:&quot;\2193&quot;}
.uis_ss.uis_ssa::after{content:&quot;\2191&quot;}
.uis_ss{padding-right:10px;position:relative}
.uis_list{clear:both;margin:10px 0}
.uis_list ul{margin:10px 0;padding:0;clear:both}
.uis_cp_opts{clear:both}
.uis_pages{padding:10px 0;text-align:right}
.uis_pages li{display:inline;list-style:none;padding:1px 5px;cursor:pointer}
.uis_pages li.selected{cursor:default}
.uis_pages:not(.gtbuttonsgroup_preset) li{margin:1px 5px}
.uisl_m .uis_pages:not(.gtbuttonsgroup_preset) li,.uisl_c .uis_pages:not(.gtbuttonsgroup_preset) li{display:inline-block;text-align:center}
.uisl_m .uis_list_img img:not(.no_css),.uisl_c .uis_list_img img:not(.no_css){-webkit-user-select:none;-moz-user-select:none;user-select:none;height:auto;width:100%;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}
.uisl_m .uis_list_img img:not(.no_css).img_height,.uisl_c .uis_list_img img:not(.no_css).img_height{height:100%;width:auto}
.uisl_m .uis_list_img img.no_css,.uisl_c .uis_list_img img.no_css{left:calc(50% - 33px);position:absolute;top:calc(50% - 33px)}
.uisl_s .uis_list&gt;ul li{float:left;cursor:pointer;margin:0 5px 5px 0;padding:10px;width:155px;height:230px;overflow:hidden;list-style:none}
.uisl_s .uis_list&gt;ul h3{font-size:12px;height:18px;overflow:hidden;text-align:center}
.uisl_s .uis_list&gt;ul h3 img{float:left}
.uisl_s .uis_list&gt;ul .uis_list_price{text-align:center}
.uisl_s .uis_list_img{width:150px;height:150px;text-align:center;display:table-cell;vertical-align:middle}
.uis_list_strike,.uis_strike_price{font-weight:700;text-decoration:line-through}
.uis_list_strike{color:#b00}
.uisl_m .uis_list_strike,.uisl_m .uis_strike_price,.uisl_c .uis_list_strike,.uisl_c .uis_strike_price{text-decoration:line-through;font-weight:400}
.uisl_h .uis_list_strike{display:block}
.uisl_l .uis_list&gt;ul li{float:left;cursor:pointer;margin:0 5px 5px 0;padding:10px;border:1px solid #000;width:249px;height:330px;overflow:hidden;list-style:none;border:none;background:0 0}
.uisl_l .uis_list&gt;ul h3{font-size:12px;height:42px;overflow:hidden;text-align:center}
.uisl_l .uis_list&gt;ul h3 img{float:left}
.uisl_l .uis_list&gt;ul .uis_list_price{text-align:center;font-weight:700}
.uisl_l .uis_list_img{width:250px;height:240px;text-align:center;display:table-cell;vertical-align:middle}
.uis_list ul{display:table;margin:10px 0;padding:0;width:100%}
.uisl_h .uis_list&gt;ul li{clear:both;cursor:pointer;overflow:hidden;list-style:none;padding:5px 0;position:relative;display:table;width:100%}
.uisl_h .uis_list&gt;ul li.uis_lio{background-color:#F7F7F7}
.uisl_h .uis_list&gt;ul h3,.uisl_h .uis_list&gt;ul .uis_list_img,.uisl_h .uis_list&gt;ul .uis_list_price{display:table-cell;vertical-align:middle}
.uisl_h .uis_list&gt;ul&gt;li&gt;span{display:table-cell;vertical-align:middle}
.uisl_h .uis_list&gt;ul h3{font-size:14px;padding-left:5px;text-align:left;width:100%}
.uisl_h .uis_list&gt;ul h3 span:first-child{font-size:16px;font-weight:700;padding-bottom:3px;display:inline-block}
.uisl_h .uis_list&gt;ul .uis_list_price{padding:0 5px;text-align:right;font-size:14px}
.uisl_h .uis_list_img{padding:5px 0;text-align:center;display:table-cell;vertical-align:middle;height:120px}
.uisl_h .uis_list_img&gt;div{width:160px}
.uisl_h .uis_list_img&gt;div&gt;img{width:100%;height:auto}
.select_style{position:relative}
.select_style select{background-color:#fff;border:1px solid rgba(125,125,125,.2);border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.075) inset;color:#565656;position:relative;padding:5px}
.select_style select::before{border-left:5px outset rgba(0,0,0,0);border-right:5px outset rgba(0,0,0,0);border-top:5px solid #333;content:&quot;&quot;;pointer-events:none;position:absolute;right:11px;top:12px;z-index:1}
.uisl_h .uis_list_img{width:auto}
.uisa_l{color:#e87035;font-weight:600}
.uisa_a{color:#69c91a}
.uisa_s{color:#b00}
.ov_prod{display:none}
.uisl_m .uis_list&gt;ul li,.uisl_c .uis_list&gt;ul li{margin:3px!important;position:relative;vertical-align:middle;list-style:none;cursor:pointer;text-align:center}
.uisl_m .uis_list&gt;ul li .ov_prod,.uisl_c .uis_list&gt;ul li .ov_prod{background-color:rgba(255,255,255,.8);height:60px;left:0;position:absolute;right:0;top:calc(305px - 60px);z-index:10;display:block;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear;opacity:0;pointer-events:none}
.uisl_m .uis_list&gt;ul li .ov_prod&gt;div,.uisl_c .uis_list&gt;ul li .ov_prod&gt;div{color:#333;padding-top:8px}
.uisl_m .uis_list&gt;ul li .ov_prod&gt;div&gt;div,.uisl_c .uis_list&gt;ul li .ov_prod&gt;div&gt;div{display:inline-block}
.uisl_m .uis_list&gt;ul li .ov_prod&gt;div .fonticon,.uisl_c .uis_list&gt;ul li .ov_prod&gt;div .fonticon{font-size:39px;cursor:pointer}
.uisl_m .uis_list&gt;ul li .ov_prod&gt;div .ov_text,.uisl_c .uis_list&gt;ul li .ov_prod&gt;div .ov_text{font-size:18px;padding-left:10px;position:relative;top:-7px}
.uisl_m .uis_list&gt;ul li:hover .ov_prod,.uisl_m .uis_list&gt;ul li.added .ov_prod,.uisl_c .uis_list&gt;ul li:hover .ov_prod,.uisl_c .uis_list&gt;ul li.added .ov_prod{opacity:1;pointer-events:auto}
.uisl_m .uis_list .uis_list_price,.uisl_c .uis_list .uis_list_price{font-size:18px;font-weight:700;color:#B00}
.uisl_h .uis_list&gt;ul li .ov_prod{display:table-cell;vertical-align:middle;text-align:center;padding:0 8px}
.uisl_h .uis_list&gt;ul li .ov_prod&gt;div{background-color:#fff;font-size:16px;color:#333;box-shadow:0 0 2px rgba(0,0,0,.1),2px 2px 2px 0 rgba(0,0,0,.15);border-radius:2px;padding:5px;cursor:pointer}
.uisl_h .uis_list&gt;ul li .ov_prod&gt;div .fonticon{cursor:pointer}
.UI_Store .uis_search{width:350px;float:left;margin-bottom:20px}
.uis_search .ui_search_suggest{max-width:65%}
.uis_prod_responsive .uis_prod .uis_td_imgs,.uis_prod_responsive .uis_prod .uis_td_attr{display:block}
.uis_prod_responsive .uis_search{float:none;width:calc(100% - 8px)}
.uis_prod_responsive .uis_cart{float:none}
.uis_prod_responsive .uis_cextend::after{display:none}
.uis_prod_responsive .uis_cextend{border-right:0 none;box-shadow:none;left:0;padding:5px}
.uis_prod_responsive .uisl_l .uis_list&gt;ul li{height:auto;margin-right:0;width:calc(100% - 20px);padding:0}
.uis_prod_responsive .uisl_l .uis_list_img{display:block;height:auto;width:100%}
.uis_prod_responsive .uisl_s .uis_list&gt;ul li{float:none;height:auto;width:calc(100% - 14px);margin:5px 0;padding:0}
.uis_prod_responsive .uisl_s .uis_list_img{display:block;height:auto;text-align:center;width:100%}
.uis_prod_responsive .main_cart&gt;thead td:last-child,.uis_prod_responsive .main_cart&gt;tbody td:last-child,.uis_prod_responsive .main_cart&gt;tfoot td.uis_option_price,.uis_prod_responsive .uis_ship+td{display:none}
.uis_prod_responsive .uis_bill .main_cart tbody td{padding:5px 10px}
.uis_prod_responsive .uis_cp_qte{text-align:center}
.uis_prod_responsive td.uis_extra.uis_total_label{text-align:right}
.uis_prod_responsive .uis_bi,.uis_prod_responsive .uis_br{float:none}
.uis_prod_responsive .uis_br{margin-bottom:5px}
.uis_prod_responsive .uis_c_rem{display:none;margin:0;padding:0}
.uis_prod_responsive .uis_name{max-width:700px}
.uis_prod_responsive .uis_cart_wrapper{position:relative;top:auto;margin-top:10px;right:0;width:100%}
.uis_prod_responsive .uis_bill .uis_coup_f{margin:auto}
.uis_prod_responsive .uisl_h .uis_list&gt;ul h3,.uis_prod_responsive .uisl_h .uis_list&gt;ul .uis_list_price,.uis_prod_responsive .uisl_h .uis_list&gt;ul&gt;li&gt;span{display:block;text-align:left;padding-left:5px}
.uis_prod_responsive .uisl_h .uis_list&gt;ul .uis_list_img{width:160px}
.uis_prod_responsive .uisl_h .uis_list&gt;ul h3{padding-top:5px}
.uis_prod_responsive .uis_list .uisl_h li .ov_prod{display:flex}
.uis_prod_responsive .uis_name:not(.gt_backdrop_title),.uis_prod_responsive .uis_prod_cat{max-width:100%}
.ov_added{pointer-events:none;background-color:#69c91a;bottom:0;height:50px;left:0;position:absolute;right:0;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .34s ease-in-out;-moz-transition:opacity .34s ease-in-out;-o-transition:opacity .34s ease-in-out;transition:opacity .34s ease-in-out}
.ov_added::after{content:&quot;\2714&quot;;color:#fff;font-family:Icon,sans-serif;font-size:40px;left:0;position:absolute;right:0;text-align:center;top:8px;filter:alpha(Opacity=0);opacity:0;-webkit-transition:-webkit-transform .34s ease-in-out,opacity .34s ease-in-out;-webkit-transition-delay:.1s,.1s;-moz-transition:-moz-transform .34s ease-in-out .1s,opacity .34s ease-in-out .1s;-o-transition:-o-transform .34s ease-in-out .1s,opacity .34s ease-in-out .1s;transition:transform .34s ease-in-out .1s,opacity .34s ease-in-out .1s;transform:translateY(15px);-webkit-transform:translateY(15px)}
.added .ov_added{filter:alpha(Opacity=100);opacity:1}
.added .ov_added::after{transform:translateY(0px);-webkit-transform:translateY(0px);filter:alpha(Opacity=100);opacity:1}
.uis_price{color:#B00;font-weight:700}
.uis_price,.uis_prod_cat{margin-bottom:5px}
.uis_strike{display:none}
.uis_prices .uis_strike{color:#777}
.uisl_m .main_cart,.uisl_c .main_cart,.uis_sum_grid{border-spacing:0}
.uisl_m .main_cart thead td,.uisl_m .main_cart tfoot td,.uisl_c .main_cart thead td,.uisl_c .main_cart tfoot td,.uis_sum_grid thead td,.uis_sum_grid tfoot td{font-size:16px;padding:15px 5px}
.uisl_m .main_cart .uis_ar,.uisl_c .main_cart .uis_ar,.uis_sum_grid .uis_ar{text-align:right;padding:10px 15px}
.uisl_m .main_cart .uis_c_thead,.uisl_c .main_cart .uis_c_thead,.uis_sum_grid .uis_c_thead{font-weight:700;padding:10px 15px}
.uisl_m .main_cart tbody tr td,.uisl_c .main_cart tbody tr td,.uis_sum_grid tbody tr td{-webkit-transition:background-color .25s ease;-moz-transition:background-color .25s ease;-o-transition:background-color .25s ease;transition:background-color .25s ease}
.uisl_m .main_cart .uis_cp_qte,.uisl_c .main_cart .uis_cp_qte,.uis_sum_grid .uis_cp_qte{text-align:center}
.uisl_m .main_cart .uis_cp_opts,.uisl_c .main_cart .uis_cp_opts,.uis_sum_grid .uis_cp_opts{clear:none}
.uis_bill .main_cart tfoot td.uis_extra&gt;div:first-child{font-weight:400;text-align:left;font-size:18px;padding:0 0 10px 0}
.uis_bill .main_cart tbody td{padding:10px 15px;cursor:default}
.uis_shipping_solutions{padding-bottom:2px;text-align:left}
#body .component .uisl_m .uis_list&gt;ul li.editor_add_item,#body .component .uisl_c .uis_list&gt;ul li.editor_add_item{box-sizing:border-box;height:380px}
#body .component .uisl_s .uis_list&gt;ul li.editor_add_item{height:195px;width:150px}
#body .component .uis_list ul.uisl_l&gt;li.editor_add_item{height:314px;width:242px}
#body .component .uisl_h .uis_list&gt;ul li.editor_add_item{min-height:auto;padding-top:25px}
#body .component .uisl_h .uis_list&gt;ul li.editor_add_item&gt;div{display:inline-block;height:57px}
.uis_tmpl_helper{display:block;position:absolute;top:-10000px}
.uis_prod{display:none}
.uis_td_imgs{width:350px;text-align:center;vertical-align:top}
.uis_td_imgs .uis_img{min-height:250px}
.uis_td_imgs .uis_imgs{cursor:pointer}
.uis_td_imgs div{position:relative}
.uis_name{font-size:34px;line-height:initial}
.uis_prod_cat{max-width:calc(100% - 145px)}
.uis_cart_wrapper{position:absolute;top:10px;right:10px;width:160px;text-align:center}
.uis_cart_wrapper .uis_btn{margin-top:15px}
.uis_addcart input.uis_qte_prod:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){display:inline-block;width:30px;text-align:center;margin-left:5px;float:none}
#body .uis_cat_list{display:inline-block;padding:5px 5px 5px 0}
#body .uis_cat_list li{display:inline-block;padding-right:15px;cursor:pointer;list-style:none;margin:0 5px 5px;padding:2px}
#body .uis_cat_list li.uis_ed{padding:2px 15px 3px 5px;position:relative}
#body .uis_cat_list li.uis_ed:after{content:&quot;\6dd8&quot;;position:absolute;font-family:icon;right:3px;font-size:10px;transform:translateY(50%);-webkit-transform:translateY(50%)}
#body .uis_addCat_wrapper{display:inline-block;margin-left:8px;position:relative;overflow:visible;z-index:50}
#body .uis_addCat_wrapper ul{left:0;position:absolute;top:30px;max-height:200px;padding:3px;overflow-y:auto;overflow-x:hidden;width:100%}
#body .uis_addCat_wrapper ul::after{content:&quot;&quot;;position:absolute;bottom:calc(100% - 3px);left:0;width:22px;height:20px;z-index:-1}
#body .uis_addCat_wrapper li{cursor:pointer;list-style:none;padding:3px 5px;position:relative;width:100%}
#body .uis_addCat_wrapper li.uis_ed{padding:3px 5px 3px 24px;margin-bottom:3px;font-weight:400}
#body .uis_addCat_wrapper li.uis_ed::after{content:&quot;\271a&quot;;position:absolute;font-family:icon;left:8px;top:7px;font-size:10px}
.uis_img_ed,.uis_desc_ed{cursor:pointer}
.uis_imgs{height:50px;width:180px;text-align:center;display:table-row}
.uis_imgs&gt;div{display:table-cell;vertical-align:middle}
.uis_td_attr{vertical-align:top;padding-left:5px;position:relative}
.uis_visi{margin:10px 0}
.uis_visi{position:absolute;top:0;right:10px}
.uis_price,.uis_strike_price,.uis_stock{font-size:20px}
.uis_stock{transition:color .15s linear}
.uis_stock.admin_elem{font-size:inherit;margin:0}
.uis_stock.admin_elem label,.uis_stock.admin_elem input{color:inherit!important}
.uis_stock_preview{padding:5px;margin-top:4px}
.uis_seo_description textarea{height:40px;width:100%;margin-bottom:10px}
.uis_opti{clear:right}
.uis_opti input{width:70%}
.uis_opt_i{width:60px;float:right}
.uis_opt_m,.uis_opt_p,.uis_opt_e,.uis_opt_v{cursor:pointer;background:transparent url(/assets/icons/roundminus.gif) no-repeat 0 0;float:right;width:16px;height:16px}
.uis_opt_p{background-image:url(/assets/icons/roundplus.gif)}
.uis_opt_e{background-image:url(/assets/icons/edit_orig.gif)}
.uis_opt_v{background-image:url(/assets/icons/apply.gif)}
.uis_img_ed{left:calc(50% - 32px);opacity:.7;position:absolute;top:calc(50% - 32px)}
.uis_desc_ed_c{float:left;position:relative;width:100%;height:0;z-index:100}
.uis_desc_ed{position:absolute;left:40%;top:5px;filter:alpha(opacity=70);-moz-opacity:.7;opacity:.7}
.uis_opt table{width:100%}
.uis_seo_description textarea{box-sizing:border-box;min-height:75px}
.uis_desc{min-height:150px}
.uis_desc.editor_focused{height:auto!important}
.uis_cart{box-shadow:0 0 2px rgba(0,0,0,.1),2px 2px 2px 0 rgba(0,0,0,.15);float:right;margin:4px;min-width:200px;cursor:pointer;position:relative;z-index:20}
.uis_cart .uis_headf&gt;.fonticon{color:#6ce509;font-size:24px;vertical-align:bottom;padding-right:5px}
.uis_cart .uis_cresume{padding:3px}
.uis_cart .uis_cextend ul li.uis_shipping_infos_cart_summary:hover .uis_prodInfos&gt;div:first-child{color:inherit}
.uis_ul_w{padding:5px 0}
.uis_bsa .fonticon{font-size:17px;margin-right:8px;position:relative;top:2px}
.uis_addcart{overflow:auto}
.uis_addcart input{float:left;margin-top:6px}
.uis_bill{display:none}
.uis_bill .title{clear:both;text-align:center;font-size:26px}
.uis_bill table:not(.gt_backdrop_content){width:calc(100% - 2px)}
.uis_bill thead,.uis_bill .uis_total{background:#fff;color:#000}
.uis_bill tr[item-value]:nth-child(odd){background-color:rgba(125,125,125,.1)}
.uis_bill thead td,.uis_bill tfoot td{padding:8px;text-align:center}
.uis_bill thead td{font-weight:700}
.uis_bill tbody td{vertical-align:middle;padding:5px 10px;line-height:25px}
.uis_bill tbody td span.uis_opts ul{padding-left:10px}
.uis_bill tbody td span.uis_opts li{list-style-position:inside}
.uis_bill tfoot td.uis_extra{font-weight:400}
.uis_bill tfoot .uis_ar{font-weight:700}
.uis_bill .uis_options_td{text-align:left;padding:2px 0;max-width:350px}
.uis_bill thead td.uis_cerr{padding:0;background-color:#fdf8c4;color:#B00}
.uis_bill .uis_coup{margin:10px 20px}
.uis_bill .uis_coup td{text-align:left}
.uis_bill .uis_coup a{font-style:italic}
.uis_bill .uis_coup_f{display:none;margin:2px;padding:7px 0;width:240px}
.uis_bill .uis_total_label{text-align:right}
.uis_sum_grid{display:grid;grid-template-columns:1fr 300px;grid-gap:10px;grid-template-rows:1fr}
.uis_summary_content{padding:10px}
.payment_method,.uis_order_pri&gt;.uis_summary_use_shipping,.uis_summary_address,.uis_summary_pickup_point{display:inline-block;vertical-align:top;padding:5px 10px;min-height:100px}
.uis_summary_prod{margin:10px 0;padding:10px;display:grid;grid-template-columns:130px 1fr}
.uis_summary_options{padding:10px}
.uis_order_sum{padding-top:5px}
.uis_order_pri{padding:5px}
.uis_order_sum .site_button{display:block;margin-bottom:10px;text-align:center}
.uis_order_sum&gt;h3{padding-left:10px}
.uis_summary_order_d{padding:3px 10px 0}
.uis_sum_items{display:grid;grid-template-rows:1fr;grid-template-columns:1fr 75px;margin-bottom:8px}
.uis_sum_items.total_sum{font-weight:700;border-top:1px solid rgba(0,0,0,.5);padding-top:5px}
.uis_prod_responsive .payment_method,.uis_prod_responsive .uis_order_pri&gt;.uis_summary_use_shipping,.uis_prod_responsive .uis_summary_address{display:block;min-height:auto;margin-bottom:10px}
.uis_prod_responsive .uis_sum_grid{grid:none;display:flex;flex-direction:column;width:100%}
.uis_prod_responsive .uis_order_sum{margin-bottom:20px;text-align:left;order:0}
.uis_prod_responsive .uis_order_pri{order:1}
.uis_bill_breadcrumb{max-width:700px;text-align:center;margin:0 auto;user-select:none}
.uis_bill_breadcrumb .uis_step_selected{font-weight:700}
.uis_bill_breadcrumb&gt;div{display:inline-block;vertical-align:top;margin:5px 10px;cursor:default;position:relative}
.uis_bill_breadcrumb&gt;div::before{position:absolute;content:&quot;&gt;&quot;;left:-15px;font-weight:700;font-family:monospace;top:-2px}
.uis_bill_breadcrumb&gt;div:first-child::before{display:none}
.uis_bill_breadcrumb&gt;div.uis_step_selected::after{position:absolute;content:&quot;&quot;;height:1px;left:0;right:0;bottom:-2px}
.uis_opt table tr td:first-child{width:150px}
.uis_opt input[type=text]{width:100%;box-sizing:border-box}
.uis_hidden_data&gt;div:not(.admin_elem){display:inline-block;margin:5px}
.uis_options_error{border:1px solid #700;background-color:#FAA;font-weight:700;color:#000}
.uis_options_error_message{background-color:#e04e4e;color:#fff;padding:3px 5px;line-height:16px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px}
.uis_bill_mn{margin:10px 0;padding:10px;clear:both}
h2.uis_bill_mn{margin:0 0 10px;text-align:center;border-bottom:1px solid #fff}
.uis_prodcart{display:none;font-style:italic;clear:both}
.uis_alert{position:relative}
.uis_alert div{display:none;position:relative;padding:5px;background-color:#ffffd9;color:#000;border:1px solid #A7A772;white-space:nowrap;font-size:75%}
.uis_bill .uis_alert div{top:0;left:0;right:auto;top:auto}
* html .uis_alert div,* html .uis_bill .uis_alert div{top:-5px}
.uis_addCat{cursor:pointer}
.uis_bill td.uis_ar{text-align:right}
.uis_bi,.uis_br{float:left;margin:0 5px}
.uis_br{float:right;font-size:20px;position:relative;top:2px;color:#e04e4e;padding:3px;cursor:pointer}
.uis_c_rem{float:right;visibility:hidden;color:#e04e4e}
.uis_br:hover,.uis_br:hover+.uis_c_rem{visibility:visible;color:#d62525}
.uis_pp{padding:0 2px}
.uis_pp img{margin-top:6px;height:18px;width:59px}
.uis_add_cart_w{text-align:center}
#TB_window .uis_add_to_cart_infos{margin-bottom:10px}
.uis_btn{margin:5px;overflow:hidden;cursor:pointer;display:inline-block}
.uis_btn a{color:#fff;text-decoration:none}
.component .uis_pf_err,.uis_pf_err{border:2px solid #B00!important;background-color:#fdf8c4!important}
.uis_previous_coordinates&gt;div{float:left;line-height:normal;border:1px #bbb solid;padding:5px;margin-right:5px}
.UI_Store ._ui18_member_signin select,.UI_Store ._ui18_member_signup input:not([type=checkbox]),.UI_Store ._ui18_member_signup select,.UI_Store ._ui18_member_signin input{max-width:200px;width:calc(100% - 10px)}
.uis_hidden_data{display:none}
.uis_prod input.uis_prod_name:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){font-size:34px;width:100%}
.uis_prod input.uis_set_price:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){font-size:20px;color:#B00;width:85px;font-weight:700}
.uis_prod input.uis_set_strike_price:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){font-size:20px;color:#777;width:85px;font-weight:400;text-decoration:line-through}
.uis_prod input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_prod input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_custom_stock_sentence_product_list input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_custom_stock_sentence_product_list input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){transition:color .15s linear;font-size:20px;width:60px}
.uis_prod input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,.uis_prod input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,.uis_custom_stock_sentence_product_list input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,.uis_custom_stock_sentence_product_list input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight{color:#69c91a}
.uis_prod input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,.uis_prod input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,.uis_custom_stock_sentence_product_list input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,.uis_custom_stock_sentence_product_list input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low{color:#e87035}
.uis_prod .hight,.uis_prod.hight,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .hight,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight,.uis_custom_stock_sentence_product_list .hight,.uis_custom_stock_sentence_product_list.hight,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .hight,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight{color:#69c91a}
.uis_prod .hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_prod.hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_custom_stock_sentence_product_list .hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_custom_stock_sentence_product_list.hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).hight input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){color:#69c91a}
.uis_prod .low,.uis_prod.low,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .low,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low,.uis_custom_stock_sentence_product_list .low,.uis_custom_stock_sentence_product_list.low,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .low,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low{color:#e87035}
.uis_prod .low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_prod.low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_custom_stock_sentence_product_list .low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_custom_stock_sentence_product_list.low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]) .low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).low input.uis_set_stock:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){color:#e87035}
.uis_prod.uisa_s,input.uis_custom_stock_sentence_input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).uisa_s,.uis_custom_stock_sentence_product_list.uisa_s,.uis_form-control_replenishment_date:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).uisa_s{color:#b00}
.UI_Store:not(.uisl_h) .uis_custom_stock_sentence_product_list{display:block;text-align:center}
.uis_addCat_wrapper li.uis_ed{padding:3px 10px 3px 25px;box-sizing:border-box}
.uis_addCat_wrapper li.uis_ed::after{left:9px}
.UI_Store .uis_list li{position:relative}
.uis_options_tr{padding-bottom:15px}
.uis_prod_responsive .uis_previous_coordinates&gt;div{float:none;margin:0 0 10px}
.uis_prod_responsive .uis_previous_coordinates&gt;div .uis_btn{margin:5px 0}
.uis_prod_responsive .uis_pay_wrapper{flex-direction:column}
.uis_prod_responsive .uis_btn_panel:first-child{order:2}
.uis_prod_responsive .uis_save_shipping{float:none!important;display:inline-block;margin-top:10px}
.uis_nbr_items{font-size:70%}
.uis_shipping_discount{background-color:#eda93a;border-radius:2px;font-weight:700;color:#fff;cursor:default;padding:0 5px}
.uis_shipping_infos_cart_summary{cursor:default}
.uis_shipping_infos_cart_summary .uis_shipping_discount{background-color:transparent;color:inherit;padding:0;font-weight:400}
.uis_shipping_undeliverable{color:red}
.uis_delivery_date{font-weight:400}
.change_country_button{font-weight:400;font-size:70%}
.uis_pay_btn{margin:5px 0}
.uis_pay_wrapper{display:flex;flex-direction:row;align-items:center}
.uis_btn_panel{flex:1;padding:10px}
.uis_validate_quantity{color:green;display:none;cursor:pointer}
.uis_cursor_quantity{display:inline;position:relative;margin-left:2px}
.uis_plus_quantity,.uis_minus_quantity{cursor:pointer;position:absolute;top:-5px}
.uis_minus_quantity{top:8px}
.uis_shipping_infos_product{margin-top:20px}
.uis_cb_form{background:#fff}
#form_cb_wrapper{padding:40px;text-align:center;margin:10px;border-radius:2px;border:1px solid #d0d0d0}
.uis_ship .select_style{max-width:450px;margin:5px 0}
.uis_ship .select_style select{width:100%}
.uis_shipping_infos_cart{text-align:left;padding-bottom:5px}
.uis_member_email_status{background-color:#ffb9a4;border-radius:2px;padding:2px;color:#000}
input[type=radio].uis_custom_stock_sentence_radiobutton,input[type=radio].uis_replenishment_date_radiobutton,input[type=radio].uis_stock_radiobutton,input[type=radio].uis_pre_order_date_radiobutton{margin-right:15px}
.uis_stock{display:inline;margin-right:20px}
.uis_stock_sentence_show_more.admin_elem{margin:auto}
.uis_final_stock_sentence{font-size:20px;font-weight:600}
#body div.uis_big_container.uis_replenishment_date.admin_elem .input-group-addon,#body div.uis_big_container.uis_pre_order_date.admin_elem .input-group-addon{display:none}
.uis_colors_wrapper{margin-top:10px}
.uis_custom_stock_sentence_color{width:18px;height:18px;display:inline-block;cursor:pointer;border-radius:50%;position:relative;margin:0 5px;top:1px}
.uis_custom_stock_sentence_color.red{background-color:#b00}
.uis_custom_stock_sentence_color.orange{background-color:#e87035}
.uis_custom_stock_sentence_color.green{background-color:#69c91a}
.uis_custom_stock_sentence_color.selected_color::after{position:absolute;content:&quot;&quot;;width:14px;height:14px;box-shadow:0 0 0 2px #fff inset;border-radius:50%;top:2px;left:2px}
.uis_custom_stock_sentence_color:first-child{margin-left:0}
.uis_prod_bloc:not(.open) .uis_colors_wrapper{display:none!important}
#body .block_selected .uis_stock_set_mode{display:block;margin-bottom:5px}
#body .block_selected .uis_stock_set_mode&gt;div{display:inline-flex;padding:10px;min-width:440px;border:1px solid #ccc;align-items:center;position:relative}
#body .block_selected .uis_stock_set_mode&gt;div .form-group,#body .block_selected .uis_stock_set_mode&gt;div .input-group{margin:0}
#body .block_selected .uis_stock_set_mode label{width:100%}
#body .block_selected .uis_stock_set_mode .iconHelp{position:absolute;right:5px;top:calc(50% - 5px)}
input.uis_custom_stock_sentence_input,input.uis_form-control_replenishment_date,input.uis_form-control_pre_order_date{margin-left:15px}
input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]){width:180px!important}
input.uis_form-control_pre_order_date:not([type=checkbox]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]).uisa_s{color:#b00!important}
.tablesorter.uis_prices_options_table .fonticon{cursor:pointer}
tbody.uis_custom_prices_tbody tr td input.uis_input_number{width:4.5em}
tbody.uis_custom_prices_tbody .nice_select li{color:#fff}
table.custom_prices_table_viewer td{width:4.5em}
.uis_delete_custom_price{font-size:16px;cursor:pointer;color:red;position:relative;top:8px;left:20px}
.uis_custom_prices_header{font-weight:700}
.uis_stock_infos{margin:10px 0;font-weight:700}
.uis_custom_prices .uis_qte_prod{width:32px;float:left;margin:8px}
.uis_unit_price_with_detail{display:none}
.no_grid_support .uisl_c.uistore_preset .uis_list .uisl_c{text-align:center}
.no_grid_support .uisl_c.uistore_preset .uis_list .uisl_c li{display:inline-block;min-width:300px}
.uis_name:not(.gt_backdrop_title){margin:0 0 10px;max-width:calc(100% - 145px)}
.uis_bill .title:not(.gt_backdrop_title){margin:10px}
.uisl_m .main_cart,.uisl_c .main_cart,.uis_sum_grid{margin:0 auto;border-collapse:collapse;border:1px solid rgba(125,125,125,.2)}
.uisl_m .main_cart.gt_backdrop_content&gt;thead,.uisl_m .main_cart.gt_backdrop_content&gt;tbody,.uisl_m .main_cart.gt_backdrop_content&gt;tfoot,.uisl_c .main_cart.gt_backdrop_content&gt;thead,.uisl_c .main_cart.gt_backdrop_content&gt;tbody,.uisl_c .main_cart.gt_backdrop_content&gt;tfoot{display:inline-table;width:100%}
h2.uis_bill_mn{margin-bottom:0;border-bottom:none}
.gt_backdrop_content .uis_bill_mn{margin:0;background-color:transparent}
.uis_cart_container.gtbutton_preset .icon_wrapper{position:relative;margin-right:10px}
.uis_cart_container:not(.gtbutton_preset) .uis_cart.active:hover,.uis_cart_container:not(.gtbutton_preset) .uis_cart.hovered{border-bottom-right-radius:0;box-shadow:0 0 2px rgba(0,0,0,.2),2px 2px 2px 0 rgba(0,0,0,.3)}
.uis_cart_container:not(.gtbutton_preset)::after{position:absolute;content:&quot;&quot;;bottom:0;right:0;height:6px;width:100%;background-color:#fff}
.uisl_m:not(.uistore_preset) .uis_list&gt;ul li{display:inline-block;min-height:380px;vertical-align:top}
.uisl_m:not(.uistore_preset) .uis_list&gt;ul li .uis_list_img{height:305px;width:100%;background-color:#fff;text-align:center;position:relative;display:table;font-size:0}
.uisl_m:not(.uistore_preset) .uis_list&gt;ul li .uis_list_img&gt;div{height:305px;display:table-cell;vertical-align:middle}
.uisl_m:not(.uistore_preset) .uis_list&gt;ul li h3{min-height:24px;padding-top:10px}
.uisl_m:not(.uistore_preset) .uis_list&gt;ul li .uis_ps{margin-right:3px}
.uis_sf .uisl_m:not(.uistore_preset) .uis_list&gt;ul li{width:calc(100% - 6px)}
.uis_s0 .uisl_m:not(.uistore_preset) .uis_list&gt;ul li{width:calc(50% - 6px)}
.uis_s1 .uisl_m:not(.uistore_preset) .uis_list&gt;ul li{width:calc(33% - 6px)}
.uis_s2 .uisl_m:not(.uistore_preset) .uis_list&gt;ul li{width:calc(25% - 6px)}
.uisl_c.uistore_preset .ov_prod{display:none!important}
.uisl_c.uistore_preset .uis_list .uisl_c{grid-template-columns:1fr 1fr 1fr;display:grid;grid-gap:10px}
.uisl_c.uistore_preset .uis_list .uisl_c li{overflow:hidden;display:flex;flex-direction:column}
.uisl_c.uistore_preset .uis_list .uisl_c li&gt;.button_block{height:auto;margin:auto;margin-bottom:0}
.uisl_c.uistore_preset .uis_list .uisl_c li.editor_add_item{height:100%!important}
.uisl_c.uistore_preset .uis_list_img{display:block;min-height:230px}
.uisl_c.uistore_preset .uis_list_img&gt;div{overflow:hidden;display:block!important;height:230px}
.uisl_c.uistore_preset .uis_list_img&gt;div img,.uisl_c.uistore_preset .uis_list_img&gt;div .gif_spacer{height:100%;width:auto;display:block;transform:translateX(-50%);-webkit-transform:translateX(-50%);left:50%!important;position:relative}
.uisl_c.uistore_preset .uis_list_img&gt;div canvas{position:relative;left:50%;transform:translateX(-50%)}
.uis_s2 .uisl_c.uistore_preset .uis_list ul{grid-template-columns:1fr 1fr 1fr 1fr}
.uis_prod_responsive .uisl_c .uis_list ul.uisl_c{grid-template-columns:1fr}
.UI_Store .gtbackdrop_preset{box-sizing:border-box;height:100%}
#body .component .block_selected.uisl_c .admin_elem.it{display:flex;justify-content:center}</style></uidget>