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={428(e){e.exports=window.jQuery}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n](i,i.exports,t),i.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};t.r(n),t.d(n,{convertFormToFields:()=>x,extractShippingMethod:()=>u,fieldsToJson:()=>y,getErrorMessage:()=>h,getFieldValue:()=>f,getPage:()=>_,getRestRoute:()=>g,getSetting:()=>l,hasPaymentMethod:()=>O,isFieldRequired:()=>c,isFieldValid:()=>p,isNextActionRequired:()=>v,parseOrderReviewParams:()=>w,parsePrice:()=>S,paymentMethods:()=>a,registerPaymentMethod:()=>M,setFieldValue:()=>m,toCents:()=>b});var o=t(428),i=t.n(o);const s=new Map,a={},d=/^(?\d+):(?.+)$/,l=(e,r=null)=>void 0!==window.wcStripeSettings&&window.wcStripeSettings[e]||r,u=e=>{const r=e.match(d);return r?{[r.groups.index]:r.groups.id}:null},c=e=>(l("requiredFields")||[]).includes(e),p=e=>{let r=f(e);return r=r?.trim(),!!r},g=e=>l("restRoutes")?.[e]?.url||null,m=(e,r,t=null)=>{t&&(e=`${t}_${e}`),s.set(e,r),i()(`[name="${e}"]`).length&&i()(`[name="${e}"]`).val(r)},f=(e,r=null)=>(r&&(e=`${r}_${e}`),s.get(e)),h=e=>{if(!e)return l("errorMessages")?.generic;const r=l("errorMessages")||{};return Array.isArray(e)||"string"==typeof e?e:"object"==typeof e?(e.message&&(e.message.indexOf("server_side_confirmation_beta=v1")>-1?e.code="server_side_confirmation_beta":(e.message.indexOf("params.payment_method_data.billing_details.phone")>-1||e.message.indexOf("fields.billing_details.phone")>-1)&&(e.code="phone_required")),e.code&&r[e.code]?r[e.code]:e.message?e.message:JSON.stringify(e)):r.generic||"An error occurred. Please try again."},y=()=>{const e={};return s.forEach((r,t)=>{e[t]=r}),e},v=e=>{if("string"!=typeof e)return!1;let r=e.match(/#response=(.+)/),t=null;return r&&(t=JSON.parse(window.atob(decodeURIComponent(r[1])))),t},w=e=>{if("string"!=typeof e)return!1;let r=e.match(/_stripe_order_review=(.+)/),t=null;return r&&(t=JSON.parse(window.atob(decodeURIComponent(r[1])))),t},_=()=>l("page"),S=e=>{const{thousandSeparator:r=",",decimalSeparator:t="."}=l("currency")||{},n=e=>e.replace(/[\]\\^-]/g,"\\$&"),o=[n(r),n(t)].join("");let i=e.replace(new RegExp(`[^\\d${o}]`,"g"),"");r&&(i=i.split(r).join("")),"."!==t&&(i=i.replace(t,"."));const s=parseFloat(i);return isNaN(s)?null:s},b=e=>{const{minorUnit:r=2}=l("currency")||{};return Math.round(e*Math.pow(10,r))},x=(e,r=[])=>e.serializeArray().reduce((e,t)=>{if(r.includes(t.name))return e;const n=[];t.name.replace(/([^\[\]]*)/g,(e,r)=>{""!==r&&n.push(r)});const o=t.name.endsWith("[]");return n.reduce((e,r,i)=>{var s,a;return i===n.length-1?o?(e[r]=null!==(s=e[r])&&void 0!==s?s:[],e[r].push(t.value)):e[r]=t.value:e[r]=null!==(a=e[r])&&void 0!==a?a:{},e[r]},e),e},{}),M=e=>{a[e.id]=e},O=e=>!!a[e];(this.wcStripe=this.wcStripe||{}).utils=n})(); (()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.jQuery;var n=t.n(e);const o=window.wcStripe.actions;var i=t.n(o);const d=window.wcStripe.utils;new class{constructor(){this.initialize()}initialize(){n()(document.body).on("updated_cart_totals",this.onCartDOMUpdated.bind(this)),n()(document.body).on("added_to_cart",this.onAddedToCart.bind(this)),n()(document.body).on("removed_from_cart",this.onRemovedFromCart.bind(this)),n()(document.body).on("wc_fragments_refreshed wc_fragments_loaded",this.onCartFragmentsChanged.bind(this)),n()(document.body).on("update_checkout",this.onUpdateCheckout.bind(this)),n()(document.body).on("updated_checkout",this.onUpdatedCheckout.bind(this)),n()(document.body).on("change",'input[name="payment_method"]',this.onPaymentMethodSelected.bind(this)),n()(document.body).on("payment_method_selected",this.onPaymentMethodSelected.bind(this)),n()("form.checkout").on("checkout_place_order_success",this.onPlaceOrderSuccess.bind(this)),n()(document.body).on("change",'[name="billing_phone"],[name="shipping_phone"],[name="billing_email"]',this.onCheckoutFieldChange.bind(this)),n()(document.body).on("change",'input[name^="shipping_method"]',this.onShippingMethodChange.bind(this)),n()(document.body).on("checkout_error",this.onCheckoutError.bind(this)),window.addEventListener("hashchange",this.onHashChange.bind(this)),window.location.hash&&i().addAction("stripe_sdk_loaded",t=>this.onHashChange(t),20),window.location.search&&this.queryHasReviewParams()&&n()(()=>{this.processOrderReview()}),document.addEventListener("wc-stripe:mini-cart-ready",({detail:t})=>{i().doAction("mini_cart_ready",t)}),document.addEventListener("wc-stripe:mini-cart-updated",({detail:t})=>{i().doAction("mini_cart_updated",t.cart)}),document.addEventListener("wc-stripe:single-product-variation-changed",({detail:t})=>{i().doAction("single_product_variation_changed",t.variationId,t.variation)}),document.addEventListener("wc-stripe:single-product-variation-reset",()=>{i().doAction("single_product_variation_reset")})}onCartDOMUpdated(t){let e=null;window?.wcStripeCartData?.cart&&(e=window.wcStripeCartData,window.wcStripeCartData=null),i().doAction("cart_dom_updated",t,e)}onAddedToCart(t,e){const n=e?.wc_stripe_data||{};i().doAction("added_to_cart",t,n)}onRemovedFromCart(t,e){const n=e?.wc_stripe_data||{};i().doAction("removed_from_cart",t,n)}onUpdateCheckout(t){i().doAction("update_checkout",t)}onUpdatedCheckout(t,e={}){i().doAction("updated_checkout",t,e)}onPaymentMethodSelected(t){i().doAction("payment_method_selected",n()('[name="payment_method"]:checked').val())}onCartFragmentsChanged(t){i().doAction("cart_fragments_changed",t)}onCheckoutFieldChange(t){i().doAction("checkout_field_changed",t.currentTarget)}onShippingMethodChange(t){i().doAction("shipping_method_changed",n()(t.currentTarget).val())}onCheckoutError(t,e){const o=n()('[name="payment_method"]:checked').val();i().doAction("checkout_error_"+o,e)}onPlaceOrderSuccess(t,e,n){const o=(0,d.isNextActionRequired)(e?.redirect||"");return!this.hasNextAction(o)||(this._intentHandled=!0,this.dispatchNextAction(o),!0)}hasNextAction(t){return!!t&&(t.hasOwnProperty("client_secret")||"checkout_session"===t.type)}dispatchNextAction(t){"payment_intent"===t.type?i().doAction("payment_intent_requires_actions",t):"checkout_session"===t.type?i().doAction("checkout_session_requires_confirmation",t):i().doAction("setup_intent_requires_actions",t)}onHashChange(t){try{const t=(0,d.isNextActionRequired)(window.location.hash);if(!this.hasNextAction(t))return;if(history.replaceState({},"",window.location.pathname),this._intentHandled)return void(this._intentHandled=!1);this.dispatchNextAction(t)}catch(t){console.error("Error parsing 3DS response hash:",t)}}processOrderReview(){const t=(0,d.parseOrderReviewParams)(window.location.search||"");t&&i().doAction("checkout_order_review",t)}queryHasReviewParams(){return null!==(0,d.parseOrderReviewParams)(window.location.search||"")}},(this.wcStripe=this.wcStripe||{}).domEvents={}.default})(); (()=>{"use strict";var t={d:(e,r)=>{for(var s in r)t.o(r,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:r[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>r});const r=class{constructor(t){this.page=t}getPage(){return this.page}isCheckout(){return"checkout"===this.page}isExpressCheckout(){return"express_checkout"===this.page}isCart(){return"cart"===this.page}isProduct(){return"product"===this.page}isOrderPay(){return"order_pay"===this.page}isAddPaymentMethod(){return"add_payment_method"===this.page}isMinicart(){return"minicart"===this.page}};(this.wcStripe=this.wcStripe||{}).context=e.default})(); (()=>{"use strict";var t={n:a=>{var e=a&&a.__esModule?()=>a.default:()=>a;return t.d(e,{a:e}),e},d:(a,e)=>{for(var i in e)t.o(e,i)&&!t.o(a,i)&&Object.defineProperty(a,i,{enumerable:!0,get:e[i]})},o:(t,a)=>Object.prototype.hasOwnProperty.call(t,a)},a={};t.d(a,{default:()=>o});const e=window.wcStripe.utils,i=window.wp.apiFetch;var s=t.n(i);const r=window.wcStripe.actions;var n=t.n(r);const o=new class{processing=!1;constructor(){this.actions=n(),this.data=(0,e.getSetting)("cart"),this.page=(0,e.getSetting)("page"),this.actions.addAction("cart_dom_updated",this.onCartUpdated.bind(this)),this.actions.addAction("updated_checkout",this.onUpdatedCheckout.bind(this)),this.actions.addAction("cart_fragments_changed",this.onCartFragmentsChanged.bind(this)),this.actions.addAction("added_to_cart",this.onAddedToCart.bind(this)),this.actions.addAction("removed_from_cart",this.onRemovedFromCart.bind(this)),this.actions.addAction("product_updated",this.onProductUpdated.bind(this)),this.actions.addAction("mini_cart_updated",this.onMiniCartUpdated.bind(this))}update(t={}){try{this._prevData={...this.data},this.data={...this.data,...t},this.actions.doAction("cart_updated",this,t)}catch(t){console.error(t)}}hasChanged(t){return this._prevData?.[t]!==this.data[t]}async onCartUpdated(t,a=null){a?.cart?this.update(a.cart):await this.refreshData()}onMiniCartUpdated(t){t.extensions?.wc_stripe?.cart&&this.update(t.extensions.wc_stripe?.cart)}applyFilters(t,...a){return this.actions.applyFilters(t,...a)}async onUpdatedCheckout(t,a){let i={};if(a?.fragments?.wc_stripe_data){i=a.fragments.wc_stripe_data;const{cart:t,sdkParams:s=null}=i;this.data={...this.data,...t},s&&(0,e.setSetting)("sdkParams",queryParams)}}onCartFragmentsChanged(){setTimeout(()=>{window.wcStripeMiniCartData&&(this.update(window.wcStripeMiniCartData),window.wcStripeMiniCartData=null)},250)}onAddedToCart(t,a={}){a?.cart&&this.update(a.cart)}onRemovedFromCart(t,a=null){a?.cart&&this.update(a.cart)}async onProductUpdated(t){t.needsCartCalculation()&&this.actions.applyFilters("cart_calculation_enabled",!1,t,this)&&await this.cartCalculation()}getCurrency(){return this.actions.applyFilters("cart_get_currency",this.data.currency,this)}getCountryCode(){return this.data.countryCode}needsPayment(){return this.actions.applyFilters("cart_needs_payment",this.data?.needsPayment,this)}needsShipping(){return this.actions.applyFilters("cart_needs_shipping",this.data?.needsShipping,this)}isEmpty(){return this.data?.isEmpty}isPaymentMethodAvailable(t){var a;return null!==(a=this.data.paymentMethods?.[t]?.available)&&void 0!==a&&a}async refreshData(t=null){if(!this.processing)try{this.processing=!0;const t=await s()({method:"POST",url:(0,e.getRestRoute)("cart/refresh"),data:{page:this.page}});return this.update(t.cart),t}catch(t){console.log(t)}finally{this.processing=!1}}async addToCart(t){return this.cancelCartCalculation(),s()({method:"POST",url:(0,e.getRestRoute)("cart/item"),data:t}).then(t=>(t.cart&&this.update(t.cart),t)).catch(t=>{throw t})}removeCartItem(t){return this.cancelCartCalculation(),this.actions.doAction("before_remove_cart_item",this),s()({method:"DELETE",url:(0,e.getRestRoute)("cart/item"),data:{key:t}}).then(t=>{this.update(t.cart)}).catch(t=>{console.log("Error removing item from cart. ",t)}).finally(()=>{this.actions.doAction("after_remove_cart_item",this)})}async updateShipping(t){return s()({method:"POST",url:(0,e.getRestRoute)("cart/shipping"),data:t}).then(t=>(t.code||this.update(t),t)).catch(t=>{throw t})}async updateBilling(t){return s()({method:"POST",url:(0,e.getRestRoute)("cart/billing"),data:t}).then(t=>(t.code||this.update(t.cart),t)).catch(t=>{throw t})}cancelCartCalculation(){clearTimeout(this._calculationTimeout),this._calculationAbortController?.abort()}cartCalculation(t={}){this.cancelCartCalculation(),this.actions.doAction("before_cart_calculation",t,this),this._calculationTimeout=setTimeout(async()=>{const a=new AbortController;this._calculationAbortController=a;try{const i=await s()({method:"POST",url:(0,e.getRestRoute)("cart/calculation"),signal:a.signal,data:this.actions.applyFilters("cart_calculation_data",t,this)});i.cart&&this.update(i.cart)}catch(t){a.signal.aborted||console.error("Cart calculation error:",t)}finally{a.signal.aborted||this.actions.doAction("after_cart_calculation",this)}},250)}getTotal(t="string"){let a=this.data?.total||0;return this.actions.applyFilters("cart_total",a,this)}getTotalCents(){return this.actions.applyFilters("cart_total_cents",parseInt(this.data?.totalCents||0),this)}getSubtotalCents(){return this.actions.applyFilters("cart_subtotal_cents",parseInt(this.data?.subtotalCents||0),this)}getLineItems(){return this.data.lineItems||[]}getShippingOptions(){return this.data.shippingOptions||[]}getSelectedShippingMethod(){return this.data.selectedShippingMethod||""}};(this.wcStripe=this.wcStripe||{}).cart=a.default})();