FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
collection
/
store
/
checkout
Edit File: store.js
import{createStore}from"@stencil/store";import{getSerializedState}from"../utils";const{checkout:checkout}=getSerializedState(),{state:state,onChange:onChange,on:on,set:set,get:get,dispose:dispose,reset:reset}=createStore({formId:null,groupId:null,mode:"live",locks:[],product:null,checkout:null,currencyCode:"usd",abandonedCheckoutEnabled:!0,initialLineItems:[],isCheckoutPage:!1,validateStock:!1,persist:"browser",paymentMethodRequiresShipping:!1,...checkout},((e,t)=>JSON.stringify(e)!==JSON.stringify(t)));export default state;export{state,onChange,on,set,get,dispose,reset};
Save
Back