Notice: Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php on line 6131
Warning: Cannot modify header information - headers already sent by (output started at /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php:6131) in /home/u550658761/domains/x-stem.com.br/public_html/wp-content/mu-plugins/eos-deactivate-plugins.php on line 2940
Warning: Cannot modify header information - headers already sent by (output started at /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php:6131) in /home/u550658761/domains/x-stem.com.br/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php:6131) in /home/u550658761/domains/x-stem.com.br/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php:6131) in /home/u550658761/domains/x-stem.com.br/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php:6131) in /home/u550658761/domains/x-stem.com.br/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /home/u550658761/domains/x-stem.com.br/public_html/wp-includes/functions.php:6131) in /home/u550658761/domains/x-stem.com.br/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 34
(()=>{"use strict";var e={n:i=>{var t=i&&i.__esModule?()=>i.default:()=>i;return e.d(t,{a:t}),t},d:(i,t)=>{for(var s in t)e.o(t,s)&&!e.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:t[s]})},o:(e,i)=>Object.prototype.hasOwnProperty.call(e,i),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},i={};e.r(i),e.d(i,{default:()=>d});const t=window.jQuery;var s=e.n(t);const l=window.wcStripe.utils,n=window.lodash,d=class{constructor(e,i){this.context=e,this.controller=i}populate(e,i={}){(this.context.isCheckout()||this.context.isExpressCheckout())&&this.syncDOMToMap(i),e?.billing&&!i?.skipBilling&&this.populateBilling(e.billing,i),e?.shipping&&!i.skipShipping&&i.needsShipping&&this.populateShipping(e.shipping,i)}syncDOMToMap(e={}){["first_name","last_name","company","address_1","address_2","city","state","postcode","country","email","phone"].forEach(e=>{const i=s()(`[name="billing_${e}"]`);i.length&&(0,l.setFieldValue)(e,i.val(),"billing")}),e.needsShipping&&["first_name","last_name","company","address_1","address_2","city","state","postcode","country","phone"].forEach(e=>{const i=s()(`[name="shipping_${e}"]`);i.length&&(0,l.setFieldValue)(e,i.val(),"shipping")})}populateBilling(e,i){const{email:t,phone:d,...a}=e;(0,n.isEmpty)(a)||(this.context.isCheckout()||this.context.isExpressCheckout()?(0,n.isEqual)(this.getCartFullAddress("billing"),a)||(this.controller._updateRequired=!0,this.populateAddressFields(a,"billing"),s()(document.body).one("updated_checkout",()=>{this.populateAddressFields(a,"billing")})):this.populateAddressFields(a,"billing")),t&&(this.context.isCheckout()&&(0,l.isFieldValid)("billing_email")||(0,l.setFieldValue)("billing_email",t)),d&&((0,l.setFieldValue)("billing_phone",d),i.needsShipping&&(0,l.setFieldValue)("shipping_phone",d))}populateShipping(e,i){const{phone:t,...d}=e;if(!(0,n.isEmpty)(d))if(this.context.isCheckout()||this.context.isExpressCheckout()){const e=this.getCartFullAddress("shipping");(0,n.isEqual)(e,d)||(this.controller._updateRequired=!0,this.populateAddressFields(d,"shipping"),s()(document.body).one("updated_checkout",()=>{this.populateAddressFields(d,"shipping")})),(0,n.isEmpty)(this.getCartFullAddress("billing").address_1)&&(d.first_name&&d.last_name&&!(0,l.isFieldValid)("billing_first_name")&&!(0,l.isFieldValid)("billing_last_name")&&((0,l.setFieldValue)("first_name",d.first_name,"billing"),(0,l.setFieldValue)("last_name",d.last_name,"billing")),this.populateAddressFields(d,"billing"))}else this.populateAddressFields(d,"shipping");t&&(0,l.setFieldValue)("shipping_phone",t),(this.context.isCheckout()||this.context.isExpressCheckout())&&this.maybeShipToDifferentAddress()}maybeShipToDifferentAddress(){if(s()('[name="ship_to_different_address"]')?.length){const e=this.getCartFullAddress("billing"),i=this.getCartFullAddress("shipping"),t=!(0,n.isEqual)(e,i);s()('[name="ship_to_different_address"]').prop("checked",t).trigger("change")}}populateAddressFields(e,i){for(let t in e)(0,l.setFieldValue)(t,e[t],i)}getCartFullAddress(e){return{first_name:(0,l.getFieldValue)("first_name",e),last_name:(0,l.getFieldValue)("last_name",e),address_1:(0,l.getFieldValue)("address_1",e),address_2:(0,l.getFieldValue)("address_2",e),state:(0,l.getFieldValue)("state",e),city:(0,l.getFieldValue)("city",e),postcode:(0,l.getFieldValue)("postcode",e),country:(0,l.getFieldValue)("country",e)}}};(this.wcStripe=this.wcStripe||{}).checkoutFields=i})();
(()=>{"use strict";var t={n:e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},d:(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>d});const r=window.wcStripe.utils,a=window.wp.apiFetch;var i=t.n(a);const n=window.wcStripe.actions;var s=t.n(n);const d=new class{constructor(t){this.data=t,this.actions=s()}async processPayment(t,e={}){return i()({method:"POST",url:(0,r.getRestRoute)("order/pay"),data:{payment_method:t,order_id:this.getId(),order_key:this.getOrderKey(),...e}}).then(t=>t)}needsShipping(){return this.actions.applyFilters("order_needs_shipping",!1,this)}getCurrency(){return this.data.currency}getTotal(){return this.data.total||0}getTotalCents(){return parseInt(this.data.totalCents||0)}needsPayment(){return this.actions.applyFilters("order_needs_payment",this.data?.needsPayment,this)}getLineItems(){return this.data.lineItems||[]}getId(){return this.data.order_id}getOrderKey(){return this.data.order_key}getBillingName(){return this.data.billing_address.name}getBillingEmail(){return this.data.billing_address.email}getBillingPhone(){return this.data.billing_address.phone}getBillingAddress(){return this.data.billing_address}}((0,r.getSetting)("order"));(this.wcStripe=this.wcStripe||{}).order=e.default})();
(()=>{"use strict";var t={n:i=>{var a=i&&i.__esModule?()=>i.default:()=>i;return t.d(a,{a}),a},d:(i,a)=>{for(var e in a)t.o(a,e)&&!t.o(i,e)&&Object.defineProperty(i,e,{enumerable:!0,get:a[e]})},o:(t,i)=>Object.prototype.hasOwnProperty.call(t,i)},i={};t.d(i,{default:()=>o});const a=window.jQuery;var e=t.n(a);const s=window.wcStripe.utils,n=window.wcStripe.actions;var r=t.n(n);const o=new class{variation=null;_excludedKeys=["add-to-cart","quantity","variation_id"];constructor(t={}){this.actions=r(),this.data=this.default_data=t||{},this.data.variation_id&&this.data.attributes&&(this.variation={variation_id:this.data.variation_id,attributes:this.data.attributes}),0!==Object.keys(this.data).length&&(e()(document.body).on("change",'[name="quantity"]',this.onQuantityChange.bind(this)),e()("form.cart").on("found_variation",this.foundVariation.bind(this)).on("reset_data",this.resetVariationData.bind(this)),this.actions.addFilter("cart_calculation_data",this.addCartCalculationData.bind(this)),this.actions.addAction("after_cart_calculation",this.onAfterCartCalculation.bind(this)),this.actions.addAction("single_product_variation_changed",this.onBlockVariationChanged.bind(this)),this.actions.addAction("single_product_variation_reset",this.resetVariationData.bind(this)))}needsShipping(){return this.actions.applyFilters("product_needs_shipping",this.data?.needsShipping)}needsCartCalculation(){let t=!0;return this.isInStock()?this.isVariableProduct()&&!this.isVariationSelected()?t=!1:this._prevData&&(t=this.data.qty!==this._prevData.qty||this.data.variation_id!==this._prevData.variation_id||this.data.attributesHash!==this._prevData.attributesHash):t=!1,this.actions.applyFilters("product_needs_cart_calculation",t,this)}getLineItems(){return this.data.lineItems||[]}getLineItem(){var t;const i=this.isVariationSelected()?parseInt(this.getVariationId()):this.getId();return null!==(t=this.getLineItems().find(t=>t.id===i))&&void 0!==t?t:null}update(t={},i=!1){Object.keys(t).some(i=>t[i]!==this.data[i])&&(this._prevData={...this.data},this.data={...this.data,...t},i||this.actions.doAction("product_updated",this,this._prevData))}onQuantityChange(t){const i=this.getQuantity();this.update({qty:i,total:this.getPrice()*i})}foundVariation(t,i){this.variation={...i};const a=this.getVariationData(),e=Object.keys(a).sort().map(t=>`${t}:${a[t]}`).join("|");this.update({price:i.display_price,priceCents:(0,s.toCents)(i.display_price),total:i.display_price*this.getQuantity(),isInStock:i.is_in_stock,variation_id:i.variation_id,needsShipping:!i.is_virtual,attributesHash:e}),this.actions.doAction("found_variation",this.needsCartCalculation(),this,this._prevData)}onBlockVariationChanged(t,i){var a,e,n;if(!i)return;const{price:r,currency_minor_unit:o}=null!==(a=i.prices)&&void 0!==a?a:{},d=r?parseInt(r,10)/Math.pow(10,null!=o?o:2):0;this.variation={variation_id:t,attributes:i.attributes},this.update({price:d,priceCents:(0,s.toCents)(d),total:d*this.getQuantity(),isInStock:null===(e=null!==(n=i.is_in_stock)&&void 0!==n?n:i.is_purchasable)||void 0===e||e,variation_id:t}),this.actions.doAction("found_variation",this.needsCartCalculation(),this,this._prevData)}resetVariationData(){this.variation=null,this.isVariableProduct()&&(this.update({variation_id:null,price:this.default_data.price,priceCents:(0,s.toCents)(this.default_data.price),total:this.default_data.total,isInStock:this.default_data.isInStock,needsShipping:this.default_data.needsShipping,attributesHash:""}),this.actions.doAction("reset_variation",this))}onAfterCartCalculation(t){const i=t.getLineItems().filter(t=>"product"===t.type);i.length>0&&this.update({lineItems:i})}addCartCalculationData(t){return{...t,product_id:this.getId(),variation_id:this.isVariableProduct()?this.getVariationId():0,qty:this.getQuantity(),...this.getVariationData(),...(0,s.convertFormToFields)(e()("form.cart"),this._excludedKeys)}}isInStock(){return!!this.data.isInStock}getQuantity(){return parseInt(e()('[name="quantity"]').val())||0}getPrice(){return this.actions.applyFilters("product_price",parseFloat(this.data?.price||0),this)}getPriceCents(){var t;return this.actions.applyFilters("product_price_cents",null!==(t=this.data?.priceCents)&&void 0!==t?t:(0,s.toCents)(this.getPrice()),this)}getTotal(){var t;const i=null!==(t=this.data.total)&&void 0!==t?t:parseFloat(this.getPrice()*this.getQuantity());return this.actions.applyFilters("product_total",parseFloat(i),this)}getTotalCents(){return this.actions.applyFilters("product_total_cents",(0,s.toCents)(this.getTotal()),this)}isVariableProduct(){return this.data.type?.indexOf("variable")>-1}isVariationSelected(){if(this.variation?.variation_id)return!0;const t=e()('input[name="variation_id"]').val();return!!t&&"0"!==t}getVariationData(){if(this.isVariableProduct()){const t=this.variation?{...this.variation.attributes}:{},i=document.querySelectorAll('.variations [name^="attribute_"]');return i&&i.forEach(i=>{i.name in t&&""!==t[i.name]||(t[i.name]=i.value||"")}),t}return{}}getId(){return parseInt(this.data?.id)}getVariationId(){return this.variation?this.variation.variation_id:e()('[name="variation_id"]').val()}}((0,s.getSetting)("product"));(this.wcStripe=this.wcStripe||{}).product=i.default})();
(()=>{"use strict";var e,r={16(e,r,t){t.r(r),t.d(r,{loadStripeSDK:()=>c});var o=t(37);const i=window.wcStripe.utils;let n=null,l=null,a=null;const s=e=>new Promise(r=>setTimeout(r,e)),c=async()=>{const e=(0,i.getSetting)("publicKey"),r=(0,i.getSetting)("sdkParams"),t=l!==e||JSON.stringify(a)!==JSON.stringify(r);return n&&!t||(l=e,a=r,n=(async(e,r)=>{let t;for(let i=1;i<=3;i++)try{const t=await(0,o.c)(e,r);if(!t)throw new Error("Stripe.js failed to load.");return t}catch(e){t=e,i<3&&await s(500)}throw t})(e,r).catch(e=>{throw n=null,e})),n}}},t={};function o(e){var i=t[e];if(void 0!==i)return i.exports;var n=t[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,e=[],o.O=(r,t,i,n)=>{if(!t){var l=1/0;for(u=0;u=n)&&Object.keys(o.O).every(e=>o.O[e](t[s]))?t.splice(s--,1):(a=!1,n0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[t,i,n]},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={224:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var i,n,[l,a,s]=t,c=0;if(l.some(r=>0!==e[r])){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(s)var u=s(o)}for(r&&r(t);co(16));i=o.O(i),(this.wcStripe=this.wcStripe||{}).stripeSDK=i})();
(()=>{"use strict";var t={574(t,e,i){i.d(e,{convertFormToFields:()=>n}),i(428),new Map;const n=(t,e=[])=>t.serializeArray().reduce((t,i)=>{if(e.includes(i.name))return t;const n=[];i.name.replace(/([^\[\]]*)/g,(t,e)=>{""!==e&&n.push(e)});const a=i.name.endsWith("[]");return n.reduce((t,e,s)=>{var o,r;return s===n.length-1?a?(t[e]=null!==(o=t[e])&&void 0!==o?o:[],t[e].push(i.value)):t[e]=i.value:t[e]=null!==(r=t[e])&&void 0!==r?r:{},t[e]},t),t},{})},428(t){t.exports=window.jQuery}},e={};function i(n){var a=e[n];if(void 0!==a)return a.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,i),s.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{AddPaymentMethodController:()=>$,BaseController:()=>_,CartController:()=>v,CheckoutController:()=>M,CheckoutSessionController:()=>A,ExpressCheckoutController:()=>I,MiniCartController:()=>S,ProductController:()=>C});var a=i(428),s=i.n(a);const o=window.wp.apiFetch;var r=i.n(o);const d=window.wcStripe.actions;var h=i.n(d);const c=window.wcStripe.cart;var l=i.n(c);const m=window.wcStripe.stripeSDK,u=window.wcStripe.checkoutFields;var y=i.n(u);const p=window.wcStripe.utils;class g{stripe;promises=[];_isPaymentMethodAvailable=!0;static attributionDataStored=!1;constructor({context:t,gateway:e,selector:i=null}){this.cart=l(),this.gateway=e,this.context=t,this.selector=i,this.actions=h(),this.fields=new(y())(t,this),this.gateway.setController(this),this.initActions(),this.gateway.initialize()}initActions(){}initialize(){this.loadStripeSDK().then(async()=>{await this.createPaymentElement()}).catch(t=>{console.log(t)})}async loadStripeSDK(){try{const t=await(0,m.loadStripeSDK)();this.stripe=t,this.actions.doAction("stripe_sdk_loaded",t,this)}catch(t){throw console.log(`Error loading Stripe SDK. ${t}`),t}}async createPaymentElement(){if(!this.isPaymentMethodAvailable())return this._isPaymentMethodAvailable=!1,void this.onPaymentUnavailable();this.gateway.onPaymentMethodAvailable();let t=!1;try{t=await this.gateway.canMakePayment()}catch(e){t=!1,console.error("Payment method availability check failed:",e)}if(!t)return this._isPaymentMethodAvailable=!1,void this.onPaymentUnavailable();this._isPaymentMethodAvailable=!0;const e=this.getElementContainer();if(e)if(this.gateway.shouldMountElement(e)){if(e instanceof NodeList)for(let t=0;tt).catch(t=>{throw t})}submitError(t){this.displayErrorMessage(t,"div.woocommerce-notices-wrapper")}displayErrorMessage(t,e=""){let i;if(t=(0,p.getErrorMessage)(t),i=(e=this.actions.applyFilters("get_error_message_selector",e,this,this.gateway.id))?s()(e).first():s()(this.selector).closest("form").first(),i.length){s()(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message, .is-error, .is-success").remove();const e=Array.isArray(t)?t.map(t=>`