var wc_add_to_cart_params = {"ajax_url":"\/wp-admin\/admin-ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%","i18n_view_cart":"View cart","cart_url":"https:\/\/minerva.co.nz\/cart","is_cart":"","cart_redirect_after_add":"no"};
var wc_single_product_params = {"i18n_required_rating_text":"Please select a rating","i18n_rating_options":["1 of 5 stars","2 of 5 stars","3 of 5 stars","4 of 5 stars","5 of 5 stars"],"i18n_product_gallery_trigger_text":"View full-screen image gallery","review_rating_required":"yes","flexslider":{"rtl":false,"animation":"slide","smoothHeight":true,"directionNav":false,"controlNav":"thumbnails","slideshow":false,"animationSpeed":500,"animationLoop":false,"allowOneSlide":false},"zoom_enabled":"1","zoom_options":[],"photoswipe_enabled":"1","photoswipe_options":{"shareEl":false,"closeOnScroll":false,"history":false,"hideAnimationDuration":0,"showAnimationDuration":0},"flexslider_enabled":"1"};
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
jQuery(document).ready(function($){ // wait for jQuery to load
$(".et-search-form").append('<input type="hidden" name="post_type" value="product" />'); // dynamically add the input below the search box that tells the search that the post type to search are products.
$(".et_pb_menu__search-form").each(function() { // now for each search box from the Divi module
$(this).append('<input type="hidden" name="post_type" value="product" />'); // add that input there too
});
});
var wc_stripe_express_checkout_params = {"ajax_url":"\/?wc-ajax=%%endpoint%%","stripe":{"publishable_key":"pk_live_51RDdOBKPNTbNz81H0jahykpP5b2V9tQZJtZZLLszm5nmAJnruWv0674E4thaaOs68Qd5BcmgoZLbYUlvzAi5S0tb00dWU3L3e9","allow_prepaid_card":"yes","locale":"en","is_link_enabled":true,"is_express_checkout_enabled":true,"is_amazon_pay_enabled":false,"is_payment_request_enabled":true},"nonce":{"payment":"2d613dbcdd","shipping":"691038adfc","get_cart_details":"7d7809222e","update_shipping":"51d688901f","checkout":"22157f696a","add_to_cart":"7ac2823e69","get_selected_product_data":"db17185f94","log_errors":"abffde30ee","clear_cart":"031f95ca3f","pay_for_order":"75fca05454","wc_store_api":"d2f135b5f0"},"i18n":{"no_prepaid_card":"Sorry, we're not accepting prepaid cards at this time.","unknown_shipping":"Unknown shipping option \"[option]\"."},"checkout":{"url":"https:\/\/minerva.co.nz\/checkout","currency_code":"nzd","country_code":"NZ","needs_shipping":"no","needs_payer_phone":true,"default_shipping_option":{"id":"pending","displayName":"Pending","amount":0}},"button":{"type":"default","theme":"dark","height":"48","radius":"4","locale":"en"},"is_pay_for_order":"","has_block":"","login_confirmation":"","is_product_page":"1","is_checkout_page":"","product":{"shippingOptions":[{"id":"pending","displayName":"Pending","amount":0}],"displayItems":[{"label":"Bird Life Writing Paper Set","amount":2500},{"label":"Shipping","amount":0,"pending":true}],"total":{"label":" (via WooCommerce)","amount":2500,"pending":true},"requestShipping":true,"currency":"nzd","country_code":"NZ","validVariationSelected":true},"is_cart_page":"","taxes_based_on_billing":""};
var DIVI = {"item_count":"%d Item","items_count":"%d Items"};
var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"};
var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"};
var et_pb_custom = {"ajaxurl":"https:\/\/minerva.co.nz\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/minerva.co.nz\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/minerva.co.nz\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"7159b5fc76","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"c40b1d7021","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"8957","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/minerva.co.nz\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","accent_color":"#cd3d16","waypoints_options":[]};
var et_pb_box_shadow_elements = [];
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"base64":false,"ajaxurl":"https:\/\/minerva.co.nz\/wp-admin\/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","utm_source_platform":"current.plt","utm_creative_format":"current.fmt","utm_marketing_tactic":"current.tct","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
var toolbox_values = {"dtb_enable_popup":"","dtb_enable_typing":"","dtb_mobile_parallax":"","dtb_popup_number":"1","dtb_readmore_text_enable":"","dtb_readmore_text":"Read More","dtb_comments_text":"Submit a Comment","dtb_sec_btn_class":"dtb-button","dtb_sticky_footer":"","dtb_social_enable":"","dtb_social_target":"","dtb_social_move":"","dtb_social_mobile_add":"","dtb_btt":"","dtb_btt_link":"","dtb_btt_url":"#","social_head_hover":"","social_foot_hover":"","dtb_fixed_logo":"","dtb_fixed_logo_url":"","dtb_mobile_logo":"","dtb_mobile_logo_url":"","dtb_mobile_breakpoint":"980","cta_hover_style":"","dtb_cta_link":"1","dtb_cta_link_type":"custom_class","dtb_mobile_nested":"","dtb_mobile_enable":"","dtb_enable_custom_m_menu":"","dtb_custom_m_menu":"","dtb_m_m_animation_page":"","dtb_m_m_animation_type":"move_right","dtb_m_m_width":"","dtb_m_m_width_max":"240","dtb_m_m_hamburger_show":"1","dtb_m_mobile_trigger":"","dtb_m_mobile_elements_widgets":"","dtb_m_m_fixed":"","dtb_sidebar_search":"","dtb_post_meta":"","dtb_post_author":"","dtb_single_after_content_layout":"","dtb_post_related":"","dtb_post_prev_next":"","dtb_archive_button":"1","dtb_archive_btn_hover":"","dtb_archive_styles":"","dtb_blog_layout":"","dtb_comments_styles":"","dtb_comments_btn_hover":"","dtb_hide_post_title":"","dtb_footer_reveal":"","dtb_footer_reveal_mobile_off":"","dtb_testimonial_photo":"","dtb_enable_equal_height":"","dtb_equal_height_blurb":"","dtb_equal_height_pricing":"","dtb_equal_height_quote":"","dtb_equal_height_breakpoint":"479","dtb_enable_sticky":"","dtb_buttons_hover":"","dtb_sec_btn_hover":"","dtb_follow_the_mouse":"","dtb_fixed_scroll":"","dtb_fixed_scroll_offset":"100","dtb_move_page_below_header":"","dtb_equal_archive_img":"","dtb_equal_archive_boxed":"","dtb_vb_enabled":""};
var wc_country_select_params = {"countries":"{\"NZ\":{\"NTL\":\"Northland\",\"AUK\":\"Auckland\",\"WKO\":\"Waikato\",\"BOP\":\"Bay of Plenty\",\"TKI\":\"Taranaki\",\"GIS\":\"Gisborne\",\"HKB\":\"Hawke\\u2019s Bay\",\"MWT\":\"Manawatu-Whanganui\",\"WGN\":\"Wellington\",\"NSN\":\"Nelson\",\"MBH\":\"Marlborough\",\"TAS\":\"Tasman\",\"WTC\":\"West Coast\",\"CAN\":\"Canterbury\",\"OTA\":\"Otago\",\"STL\":\"Southland\"}}","i18n_select_state_text":"Select an option\u2026","i18n_no_matches":"No matches found","i18n_ajax_error":"Loading failed","i18n_input_too_short_1":"Please enter 1 or more characters","i18n_input_too_short_n":"Please enter %qty% or more characters","i18n_input_too_long_1":"Please delete 1 character","i18n_input_too_long_n":"Please delete %qty% characters","i18n_selection_too_long_1":"You can only select 1 item","i18n_selection_too_long_n":"You can only select %qty% items","i18n_load_more":"Loading more results\u2026","i18n_searching":"Searching\u2026"};
var wc_address_i18n_params = {"locale":"{\"NZ\":{\"postcode\":{\"label\":\"Postcode\"},\"state\":{\"required\":false,\"label\":\"Region\"}},\"default\":{\"first_name\":{\"label\":\"First name\",\"required\":true,\"class\":[\"form-row-first\"],\"autocomplete\":\"given-name\",\"priority\":10},\"last_name\":{\"label\":\"Last name\",\"required\":true,\"class\":[\"form-row-last\"],\"autocomplete\":\"family-name\",\"priority\":20},\"company\":{\"label\":\"Company name\",\"class\":[\"form-row-wide\"],\"autocomplete\":\"organization\",\"priority\":30,\"required\":false},\"country\":{\"type\":\"country\",\"label\":\"Country \\\/ Region\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\",\"update_totals_on_change\"],\"autocomplete\":\"country\",\"priority\":40},\"address_1\":{\"label\":\"Street address\",\"placeholder\":\"House number and street name\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\"],\"autocomplete\":\"address-line1\",\"priority\":50},\"address_2\":{\"label\":\"Apartment, suite, unit, etc.\",\"label_class\":[\"screen-reader-text\"],\"placeholder\":\"Apartment, suite, unit, etc. (optional)\",\"class\":[\"form-row-wide\",\"address-field\"],\"autocomplete\":\"address-line2\",\"priority\":60,\"required\":false},\"city\":{\"label\":\"Town \\\/ City\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\"],\"autocomplete\":\"address-level2\",\"priority\":70},\"state\":{\"type\":\"state\",\"label\":\"State \\\/ County\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\"],\"validate\":[\"state\"],\"autocomplete\":\"address-level1\",\"priority\":80},\"postcode\":{\"label\":\"Postcode \\\/ ZIP\",\"required\":true,\"class\":[\"form-row-wide\",\"address-field\"],\"validate\":[\"postcode\"],\"autocomplete\":\"postal-code\",\"priority\":90}}}","locale_fields":"{\"address_1\":\"#billing_address_1_field, #shipping_address_1_field\",\"address_2\":\"#billing_address_2_field, #shipping_address_2_field\",\"state\":\"#billing_state_field, #shipping_state_field, #calc_shipping_state_field\",\"postcode\":\"#billing_postcode_field, #shipping_postcode_field, #calc_shipping_postcode_field\",\"city\":\"#billing_city_field, #shipping_city_field, #calc_shipping_city_field\"}","i18n_required_text":"required","i18n_optional_text":"optional"};
var wc_checkout_params = {"ajax_url":"\/wp-admin\/admin-ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%","update_order_review_nonce":"13341a9e2f","apply_coupon_nonce":"3d2846bfe5","remove_coupon_nonce":"754570440e","option_guest_checkout":"yes","checkout_url":"\/?wc-ajax=checkout","is_checkout":"0","debug_mode":"","i18n_checkout_error":"There was an error processing your order. Please check for any charges in your payment method and review your <a href=\"https:\/\/minerva.co.nz\/my-account\/orders\">order history<\/a> before placing the order again."};
var wc_stripe_upe_params = {"gatewayId":"stripe","title":"Credit \/ Debit Card","isUPEEnabled":"1","key":"pk_live_51RDdOBKPNTbNz81H0jahykpP5b2V9tQZJtZZLLszm5nmAJnruWv0674E4thaaOs68Qd5BcmgoZLbYUlvzAi5S0tb00dWU3L3e9","locale":"en","apiVersion":"2024-06-20","isCheckout":"","return_url":"https:\/\/minerva.co.nz\/checkout\/order-received?utm_nooverride=1","ajax_url":"\/?wc-ajax=%%endpoint%%","theme_name":"grow-my-business-divi-child","testMode":"","createPaymentIntentNonce":"20b9b4ef5c","updatePaymentIntentNonce":"df0067dc96","createSetupIntentNonce":"8404dc24e7","createAndConfirmSetupIntentNonce":"2cb2e3dca2","updateFailedOrderNonce":"d1c5de97cc","paymentMethodsConfig":{"card":{"isReusable":true,"title":"Credit \/ Debit Card","description":"","testingInstructions":"<strong>Test mode:<\/strong> use the test VISA card 4242424242424242 with any expiry date and CVC. Other payment methods may redirect to a Stripe test page to authorize payment. More test card numbers are listed <a href=\"https:\/\/docs.stripe.com\/testing\" target=\"_blank\">here<\/a>.","showSaveOption":true,"supportsDeferredIntent":true,"countries":[]},"link":{"isReusable":true,"title":"Link","description":"","testingInstructions":"","showSaveOption":true,"supportsDeferredIntent":true,"countries":[]}},"genericErrorMessage":"There was a problem processing the payment. Please check your email inbox and refresh the page to try again.","accountDescriptor":"","addPaymentReturnURL":"https:\/\/minerva.co.nz\/my-account\/payment-methods","enabledBillingFields":["billing_email","billing_first_name","billing_last_name","billing_company","billing_country","billing_address_1","billing_address_2","billing_city","billing_state","billing_postcode","billing_phone"],"cartContainsSubscription":"","accountCountry":"NZ","isPaymentRequestEnabled":"1","isAmazonPayEnabled":"","isLinkEnabled":"1","appearance":"","blocksAppearance":"","saveAppearanceNonce":"a1ca4afdac","isECEEnabled":"1","isAmazonPayAvailable":"","is_ach_enabled":"1","is_acss_enabled":"","is_blik_enabled":"","isSPEEnabled":"","cartTotal":"0","currency":"NZD","isPaymentNeeded":"","invalid_number":"The card number is not a valid credit card number.","invalid_expiry_month":"The card's expiration month is invalid.","invalid_expiry_year":"The card's expiration year is invalid.","invalid_cvc":"The card's security code is invalid.","incorrect_number":"The card number is incorrect.","incomplete_number":"The card number is incomplete.","incomplete_cvc":"The card's security code is incomplete.","incomplete_expiry":"The card's expiration date is incomplete.","expired_card":"The card has expired.","incorrect_cvc":"The card's security code is incorrect.","incorrect_zip":"The card's zip code failed validation.","postal_code_invalid":"Invalid zip code, please correct and try again","invalid_expiry_year_past":"The card's expiration year is in the past","card_declined":"The card was declined.","missing":"There is no card on a customer that is being charged.","processing_error":"An error occurred while processing the card.","invalid_sofort_country":"The billing country is not accepted by Sofort. Please try another country.","email_invalid":"Invalid email address, please correct and try again.","invalid_request_error":"Unable to process this payment, please try again or use alternative method.","amount_too_large":"The order total is too high for this payment method","amount_too_small":"The order total is too low for this payment method","country_code_invalid":"Invalid country code, please try again with a valid country code","tax_id_invalid":"Invalid Tax Id, please try again with a valid tax id","invalid_wallet_type":"Invalid wallet payment type, please try again or use an alternative method.","payment_intent_authentication_failure":"We are unable to authenticate your payment method. Please choose a different payment method and try again.","insufficient_funds":"Your card has insufficient funds."};