This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb3-input.js.map
7 lines (7 loc) · 35.4 KB
/
web3-input.js.map
1
2
3
4
5
6
7
{
"version": 3,
"sources": ["node_modules/@metamask/detect-provider/src/index.ts", "src/index.mjs", "node_modules/@ficusjs/renderers/dist/htm.mjs", "node_modules/ficusjs/dist/index.mjs"],
"sourcesContent": [null, "// @format\nimport detectEthereumProvider from \"@metamask/detect-provider\";\nimport { html, renderer } from \"@ficusjs/renderers/dist/htm\";\nimport { createComponent, createAppState, withStore } from \"ficusjs\";\n\nconst store = createAppState(\"web3.sign\", {\n initialState: {\n account: null,\n signature: null,\n web3: {\n provider: null\n }\n },\n setAccount(val) {\n this.state.account = val;\n },\n setSignature(val) {\n this.state.signature = val;\n }\n});\n\ncreateComponent(\n \"web3-connect-metamask\",\n withStore(store, {\n renderer,\n async handleConnect() {\n const provider = await getProvider();\n const account = await connectAccount(provider);\n this.store.setAccount(account);\n console.info(`Account connected: ${account}`);\n },\n render() {\n return html`\n\t\t\t<button type=\"button\" onclick=${this.handleConnect}>Connect Wallet</button>\n `;\n }\n })\n);\n\ncreateComponent(\n \"web3-sign-button\",\n withStore(store, {\n renderer,\n props: {\n message: {\n type: String,\n required: true\n }\n },\n async handleSign() {\n const { message } = this.props;\n const { account } = this.store.state;\n const provider = await getProvider();\n const signature = await sign(provider, account, message);\n this.store.setSignature(signature);\n },\n render() {\n return html`\n\t\t\t<button type=\"button\" onclick=${this.handleSign}>Sign</button>\n `;\n }\n })\n);\n\ncreateComponent(\n \"web3-sign-msg\",\n withStore(store, {\n renderer,\n props: {\n message: {\n type: String,\n required: true\n }\n },\n render() {\n const { account, signature } = this.store.state;\n const { message } = this.props;\n return html`\n\t\t\t<div>\n\t\t\t\t<p>Message: ${message}</p>\n\t\t\t\t<p>Signature: ${signature}</p>\n\t\t\t\t${account ? \"\" : html`<web3-connect-metamask><//>`}\n\t\t\t\t${account ? html`<web3-sign-button message=${message}><//>` : \"\"}\n\t\t\t</div>\n `;\n }\n })\n);\n\nasync function getProvider() {\n return await detectEthereumProvider();\n}\n\nasync function connectAccount(provider) {\n if (provider) {\n const accounts = await ethereum.request({ method: \"eth_requestAccounts\" });\n return accounts[0];\n } else {\n // TODO: Make this throw\n window.alert(\"Only works with Metamask\");\n }\n}\n\nasync function sign(provider, from, msg) {\n return new Promise((resolve, reject) => {\n provider.sendAsync(\n {\n method: \"personal_sign\",\n params: [msg, from],\n from\n },\n function(err, result) {\n if (err) {\n reject(err);\n }\n resolve(result.result.substring(2));\n }\n );\n });\n}\n", "var htm=function(e){const t=arguments,n=this;let l,r,i=1,s=\"\",d=\"\",c=[0];const commit=e=>{1===i&&(e||(s=s.replace(/^\\s*\\n\\s*|\\s*\\n\\s*$/g,\"\")))?c.push(e?t[e]:s):3===i&&(e||s)?(c[1]=e?t[e]:s,i=2):2===i&&\"...\"===s&&e?c[2]=Object.assign(c[2]||{},t[e]):2===i&&s&&!e?(c[2]=c[2]||{})[s]=!0:i>=5&&(5===i?((c[2]=c[2]||{})[r]=e?s?s+t[e]:t[e]:s,i=6):(e||s)&&(c[2][r]+=e?s+t[e]:s)),s=\"\"};for(let t=0;t<e.length;t++){t&&(1===i&&commit(),commit(t));for(let o=0;o<e[t].length;o++)l=e[t][o],1===i?\"<\"===l?(commit(),c=[c,\"\",null],i=3):s+=l:4===i?\"--\"===s&&\">\"===l?(i=1,s=\"\"):s=l+s[0]:d?l===d?d=\"\":s+=l:'\"'===l||\"'\"===l?d=l:\">\"===l?(commit(),i=1):i&&(\"=\"===l?(i=5,r=s,s=\"\"):\"/\"===l&&(i<5||\">\"===e[t][o+1])?(commit(),3===i&&(c=c[0]),i=c,(c=c[0]).push(n.apply(null,i.slice(1))),i=0):\" \"===l||\"\\t\"===l||\"\\n\"===l||\"\\r\"===l?(commit(),i=2):s+=l),3===i&&\"!--\"===s&&(i=4,c=c[0])}return commit(),c.length>2?c.slice(1):c[1]};const e=htm.bind(((e,t,...n)=>{let l=null,r=!1;[\"svg\",\"use\",\"symbol\",\"path\",\"g\",\"defs\",\"title\"].indexOf(e)>-1?(l=document.createElementNS(\"http://www.w3.org/2000/svg\",e),r=!0):l=document.createElement(e);for(const e in t)if(\"on\"===e.slice(0,2)){const n=e.slice(2),r=t[e];if(null==r)continue;l.addEventListener(n,r)}else if([\"disabled\",\"selected\",\"checked\"].indexOf(e)>-1)t[e]&&l.setAttribute(e,e);else if(\"xlinkHref\"===e&&r)t[e]&&l.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",t[e]);else if(\"href\"===e&&r)t[e]&&l.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",t[e]);else{if(null==t[e])continue;l.setAttribute(e,t[e])}if(0===n.length)return l;return n.flat(1).forEach((e=>{e instanceof Node?l.appendChild(e):l.appendChild(document.createTextNode(e))})),null==e?l.children:l}));function renderer(e,t){for(;t.firstChild;)t.removeChild(t.firstChild);Array.isArray(e)?e.forEach((e=>t.appendChild(e))):t.appendChild(e)}export{e as html,renderer};\n", "function toKebabCase(t){return t.replace(/([A-Z])/g,\"-$1\").toLowerCase()}function isPromise(t){return(\"object\"==typeof t||\"function\"==typeof t)&&\"function\"==typeof t.then}function createComponent(t,e){const s=function(t){if(!t)return[];const e=[];return Object.keys(t).forEach((s=>{(null==t[s].observed||t[s].observed)&&e.push(toKebabCase(s))})),e}(e.props);globalThis.customElements.get(t)||globalThis.customElements.define(t,class extends globalThis.HTMLElement{static get observedAttributes(){return s}get componentTagName(){return t}connectedCallback(){null==this.connectedCallbackCount&&(this.connectedCallbackCount=0),this.connectedCallbackCount=this.connectedCallbackCount+1,this._checkInit(),this._preprocess()}disconnectedCallback(){\"function\"==typeof this.removed&&(this.removed(),this.isRemovedCalled=!0)}attributeChangedCallback(){null!=this.connectedCallbackCount&&(this._checkInit(),this._preprocess())}get initialised(){return this._props&&this._state&&this._computed&&this.templateRenderer}_checkInit(){this.initialised||this._init(e)}_init(t){if(this._props=t.props||{},this._computed=t.computed||{},t.state&&\"function\"!=typeof t.state)throw new Error(\"State must be a function!\");this._state=t.state||{},this.computedCache={},this.status=\"render\",this.connectedCallbackCount=0,this.props=this._processProps(),\"function\"==typeof this._state&&(this._state=this._state.bind(this)()),this.state=this._monitorState(this._state),this.root=this._processRoot(t.root),this.slots=this._processSlots(),this.render=t.render||null,this.templateRenderer=t.renderer,this.template=null,this.created=t.created||null,this.mounted=t.mounted||null,this.updated=t.updated||null,this.removed=t.removed||null,this.isCreatedCalled=!1,this.isMountedCalled=!1,this.isRemovedCalled=!1,this.emit=(t,e)=>{!function(t,e,s={}){const i=Object.assign({},{bubbles:!0,cancelable:!0,composed:!1},s);let r;\"composed\"in CustomEvent.prototype?r=new CustomEvent(e,i):(r=document.createEvent(\"CustomEvent\"),r.initCustomEvent(e,i.bubbles,i.cancelable,i.detail),Object.defineProperty(r,\"composed\",{value:i.composed})),t.dispatchEvent(r)}(this,t,{detail:e})},this.setState=(t,e)=>{const setter=t=>{if(!t||\"object\"!=typeof t)return;const s=this.updated;e&&(this.updated=()=>{setTimeout(e),this.updated=s||void 0}),this.status=\"transaction\";for(const e in t)this.state[e]&&this.state[e]===t[e]||(this.state[e]=t[e]);this.status=\"render\",this._processRender()},s=t(this.state);isPromise(s)?s.then(setter):setter(s)},this._processMethodsAndComputedProps(t),this._processInstanceProps(this._props),\"function\"!=typeof this.created||this.isCreatedCalled||(this.created(),this.isCreatedCalled=!0)}_processProps(){const t={};return Object.keys(this._props).forEach((e=>{const s={},i=this._props[e],r=this._getAttribute(e);let a=null;if(null!=i.default&&(a=i.default),i.required&&null==r)null!=a?(console.info(`No biggie, the required prop '${e}' has no value set, so the default has been set`),s[e]=a):(s[e]=null,console.error(`The required prop '${e}' has no value set`));else switch(i.type){case String:default:s[e]=r||a;break;case Number:s[e]=null!=r?parseFloat(r):null!=a?a:0;break;case Boolean:s[e]=null!=r?\"true\"===r.toString():null!=a&&a;break;case Object:try{s[e]=null!=r?JSON.parse(r):null!=a?a:void 0}catch(t){s[e]=null!=a?a:void 0,console.error(\"An object parse issue occurred\",t)}}t[e]=s[e],this._instanceProps&&this._instanceProps[e]&&(t[e]=this._instanceProps[e])})),t}_processMethodsAndComputedProps(t){const e=this,s=Object.keys(t);s.length&&s.forEach((s=>{e[s]||\"function\"!=typeof t[s]||(e[s]=t[s].bind(e)),\"computed\"===s&&this._processComputed(t[s])}))}_processRoot(t){switch(t){case\"standard\":default:return this;case\"shadow\":return this.attachShadow({mode:\"open\"});case\"shadow:closed\":return this.attachShadow({mode:\"closed\"})}}_processComputed(t){const e=this,s=Object.keys(t);s.length&&s.forEach((s=>{e[s]?console.warn(`Computed property '${s}' already exists on the component instance`):Object.defineProperty(e,s,{get:()=>(e.computedCache[s]||(e.computedCache[s]=t[s].bind(e)()),e.computedCache[s])})}))}_processRender(){const t=this.render?this.render():void 0;t&&(this.template=t,this._updateRender())}_monitorState(t){const e=this;return new Proxy(t,{set:(t,s,i)=>(t[s]===i||(t[s]=i,e.computedCache={},\"render\"===e.status&&e._processRender()),!0)})}_processSlots(){const t=this.childNodes,e={default:[]};return t.length>0&&[...t].forEach((t=>{const s=t.getAttribute?t.getAttribute(\"slot\"):null;s?e[s]=t:e.default.push(t)})),e}_getAttribute(t){try{return this.getAttribute(toKebabCase(t))}catch(t){return console.error(\"A get prop error occurred\",t),\"\"}}_processInstanceProps(t){const e=this,s=Object.keys(t);t&&s.forEach((t=>{let s;e[t]&&(s=e[t],delete e[t]),Object.defineProperty(e,t,{get(){return this._instanceProps&&this._instanceProps[t]?this._instanceProps[t]:this.getAttribute(toKebabCase(t))},set(e){return this._instanceProps||(this._instanceProps={}),this._instanceProps[t]=e,this.setAttribute(toKebabCase(t),\"object\"==typeof e?JSON.stringify(e):e.toString()),!0},enumerable:!0}),s&&(e[t]=s)}))}_preprocess(){this.computedCache={},this.props=this._processProps(),this._processRender()}_updateRender(){this.template&&(isPromise(this.template)?this.template.then((t=>{this.templateRenderer(t,this.root),this._callLifecycleMethods()})).catch((t=>console.error(\"A component render error occurred\",t))):(this.templateRenderer(this.template,this.root),this._callLifecycleMethods()))}_callLifecycleMethods(){\"function\"!=typeof this.mounted||this.isMountedCalled||this.mounted(),this.isMountedCalled=!0,\"function\"==typeof this.updated&&this.isMountedCalled&&this.updated()}})}function withEventBus(t,e){return{...e,created(){this.setEventBus(t),e.created&&e.created.call(this)},mounted(){this._subscribeToEventBus(),e.mounted&&e.mounted.call(this)},updated(){this._subscribeToEventBus(),e.updated&&e.updated.call(this)},removed(){this._unsubscribeFromEventBus(),e.removed&&e.removed.call(this)},setEventBus(t){const e=this;e._eventBus=t,e._eventSubscriptions={},e.eventBus={subscribe:(t,s)=>(e._eventSubscriptions[t]={unsubscribe:e._eventBus.subscribe(t,s),callback:s},function(){const{unsubscribe:s}=e._eventSubscriptions[t];s&&s(),e._eventSubscriptions[t].unsubscribe=null}),publish(t,s={}){e._eventBus.publish(t,s)}}},_subscribeToEventBus(){for(const t in this._eventSubscriptions){const{unsubscribe:e,callback:s}=this._eventSubscriptions[t];e||(this._eventSubscriptions[t].unsubscribe=this._eventBus.subscribe(t,s))}},_unsubscribeFromEventBus(){for(const t in this._eventSubscriptions){const{unsubscribe:e}=this._eventSubscriptions[t];e&&e(),this._eventSubscriptions[t].unsubscribe=null}}}}function withStateTransactions(t){return{...t,created(){this.state=this._monitorTransactionState(this._state),this.setState=(t,e)=>{const setter=t=>{if(!t||\"object\"!=typeof t)return;const s=this.transaction,i=this.updated;e&&(this.updated=()=>{setTimeout(e),this.updated=i||void 0}),s||this.beginTransaction();for(const e in t)this.state[e]&&this.state[e]===t[e]||(this.state[e]=t[e]);s||this.endTransaction()},s=t(this.state);isPromise(s)?s.then(setter):setter(s)},t.created&&t.created.call(this)},beginTransaction(){this.transactionCache={},this.transaction=!0,this.status=\"transaction\"},endTransaction(){this.transaction=!1,this.status=\"render\",this._processRender()},rollbackTransaction(){Object.keys(this.transactionCache).forEach((t=>this.state[t]=this.transactionCache[t])),this.endTransaction()},_monitorTransactionState(t){const e=this;return new Proxy(t,{set:(t,s,i)=>(t[s]===i||(e.transaction&&!e.transactionCache[s]&&(e.transactionCache[s]=e._copyValue(t[s])),t[s]=i,e.computedCache={},\"render\"===e.status&&e._processRender()),!0),get:(t,e)=>t[e]})},_copyValue:t=>JSON.parse(JSON.stringify(t))}}function withLazyRender(t){return{...t,created(){t.created&&t.created.call(this),this.elementVisible=!1,this.intersectionObserver=new IntersectionObserver(((t,e)=>{t.forEach((t=>{t.isIntersecting&&!this.elementVisible&&(this.elementVisible=!0,this.intersectionObserver.disconnect(),this._processRender())}))}),{threshold:.1}),this.intersectionObserver.observe(this)},removed(){t.removed&&t.removed.call(this),this.intersectionObserver&&this.intersectionObserver.disconnect()}}}function withStore(t,e){return{...e,created(){this.subscribeCallback=()=>{this.computedCache={},this._processRender()},this.setStore(t),e.created&&e.created.call(this)},mounted(){this._subscribeToStores(!1),e.mounted&&e.mounted.call(this)},updated(){this._subscribeToStores(!1),e.updated&&e.updated.call(this)},removed(){this._unsubscribeFromStores(),e.removed&&e.removed.call(this)},setStore(t){this.store=t,this._subscribeToStores()},_subscribeToStores(t=!0){if(this.store&&this.store.subscribe&&\"function\"==typeof this.store.subscribe&&!this.unsubscribe)this.unsubscribe=this.store.subscribe(this.subscribeCallback),t&&this.subscribeCallback();else if(this.store&&\"object\"==typeof this.store&&!this.store.subscribe){this.unsubscribe={};Object.keys(this.store).forEach((t=>{this.store[t]&&this.store[t].subscribe&&\"function\"==typeof this.store[t].subscribe&&!this.unsubscribe[t]&&(this.unsubscribe[t]=this.store[t].subscribe(this.subscribeCallback))})),t&&this.subscribeCallback()}},_unsubscribeFromStores(){if(this.store&&this.unsubscribe&&\"object\"==typeof this.unsubscribe){Object.keys(this.unsubscribe).forEach((t=>{this.unsubscribe[t]()})),this.unsubscribe=null}else this.store&&this.unsubscribe&&\"function\"==typeof this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}}}function withStyles(t){return{...t,created(){t.created&&t.created.call(this),t.styles&&\"function\"==typeof t.styles&&(globalThis.__ficusjs__=globalThis.__ficusjs__||{},globalThis.__ficusjs__.styles=globalThis.__ficusjs__.styles||{},this._injectStyles(t.styles()))},_injectStyles(t){if(globalThis.__ficusjs__&&globalThis.__ficusjs__.styles&&globalThis.__ficusjs__.styles[this.componentTagName])return;if(Array.isArray(t)&&t.filter((t=>\"string\"!=typeof t)).length||!Array.isArray(t)&&\"string\"!=typeof t)return void console.error(\"Dude, styles must return a string or an array of strings!\");let e=\"\";Array.isArray(t)?Promise.all(t.map((t=>this._processStyle(t)))).then((t=>{e=t.filter((t=>t)).join(\"\\n\"),this._createAndInjectStylesheet(e,{\"data-tag\":this.componentTagName})})):this._processStyle(t).then((t=>this._createAndInjectStylesheet(t,{\"data-tag\":this.componentTagName})))},_processStyle(t){if(/http[s]?:\\/\\/.+\\.css$/.test(t)){const e=document.createElement(\"link\");return e.rel=\"stylesheet\",e.type=\"text/css\",e.href=t,document.head.appendChild(e),Promise.resolve()}return/.+\\.css$/.test(t)?globalThis.fetch(t).then((t=>t.text())):Promise.resolve(t)},_createAndInjectStylesheet(t,e){const s=this._createStyle(t);this._setElementAttributes(s,e),document.head.appendChild(s),globalThis.__ficusjs__.styles[this.componentTagName]={loaded:!0,style:s}},_createStyle(t){const e=document.createElement(\"style\");return e.appendChild(document.createTextNode(t)),e},_setElementAttributes(t,e){e&&Object.keys(e).forEach((s=>{t.setAttribute(s,e[s])}))}}}class t{constructor(){if(globalThis.__ficusjs__&&globalThis.__ficusjs__.eventBus)return globalThis.__ficusjs__.eventBus;this.events={},globalThis.__ficusjs__=globalThis.__ficusjs__||{},globalThis.__ficusjs__.eventBus=globalThis.__ficusjs__.eventBus||this}subscribe(t,e){const s=this;s.events[t]||(s.events[t]=[]);return s.events[t].push(e),()=>{s.events[t]=s.events[t].filter((t=>t!==e))}}publish(t,e={}){return this.events[t]?this.events[t].map((t=>t(e))):[]}}function createEventBus(){return new t}function getEventBus(){return createEventBus()}class e{constructor(t,e){this.namespace=t,this.storage=e}setState(t){t?(this.storage.setItem(`${this.namespace}:state`,\"string\"==typeof t?t:JSON.stringify(t)),this.storage.setItem(`${this.namespace}:lastUpdated`,(new Date).getTime().toString())):this.removeState()}getState(){const t=this.storage.getItem(`${this.namespace}:state`);return t?JSON.parse(t):void 0}lastUpdated(){const t=this.storage.getItem(`${this.namespace}:lastUpdated`);return t?parseInt(t,10):void 0}removeState(){this.storage.removeItem(`${this.namespace}:state`),this.storage.removeItem(`${this.namespace}:lastUpdated`)}}function createPersist(t,s=\"session\"){return new e(t,\"local\"===s?globalThis.localStorage:globalThis.sessionStorage)}class s{constructor(t){const e=this;e.getters={},e.actions={},e.mutations={},e.state={},e.getterCache={},e.status=\"resting\",e.transaction=!1,e.transactionCache={},e.callbacks=[],t.getters&&(e.getters=new Proxy(t.getters||{},{get:(t,s)=>(e.getterCache[s]||(e.getterCache[s]=t[s](e.state)),e.getterCache[s])})),t.actions&&(e.actions=t.actions),t.mutations&&(e.mutations=t.mutations);let s=t.initialState||{};if(e.copyOfInitialState=e._copyValue(s),e.ttl=-1,e.lastUpdatedState={},t.ttl&&(e.ttl=t.ttl,Object.keys(e.copyOfInitialState).forEach((t=>e.lastUpdatedState[t]=(new Date).getTime()))),t.persist){e.persist=\"string\"==typeof t.persist?createPersist(t.persist):t.persist;const i=e.persist.getState(),r=e.persist.lastUpdated();i&&r&&(-1===e.ttl||e._lastUpdatedTimeDiff(r)<e.ttl)&&(s=i)}this._processState(s)}_processState(t){const e=this;e.state=new Proxy(t,{set:(t,s,i)=>(e.transaction&&!e.transactionCache[s]&&(e.transactionCache[s]=e._copyValue(t[s])),t[s]=i,e.lastUpdatedState[s]=(new Date).getTime(),e.getterCache={},e.transaction||(e.persist&&e.persist.setState(e.state),e.status=\"resting\",e._processCallbacks(e.state)),!0),get:(t,s)=>e.ttl>-1&&e._lastUpdatedTimeDiff(e.lastUpdatedState[s])>e.ttl?(e.persist&&e.persist.removeState(),e.copyOfInitialState[s]):t[s]})}_lastUpdatedTimeDiff(t){return Math.round(((new Date).getTime()-t)/1e3)}dispatch(t,e){return\"function\"!=typeof this.actions[t]?(console.error(`Dude, the store action \"${t}\" doesn't exist.`),!1):(this.status=\"action\",this.actions[t](this,e))}commit(t,e){if(\"function\"!=typeof this.mutations[t])return console.error(`Dude, the store mutation \"${t}\" doesn't exist`),!1;this.status=\"mutation\";const s=this.mutations[t](this.state,e);return this.state=s,this.persist&&this.persist.setState(s),!0}_processCallbacks(t){return!(!this.callbacks.length||this.transaction)&&(this.callbacks.forEach((e=>e(t))),!0)}subscribe(t){if(\"function\"!=typeof t)return console.error(\"Dude, you can only subscribe to store changes with a valid function\"),!1;return this.callbacks.push(t),()=>{this.callbacks=this.callbacks.filter((e=>e!==t))}}_copyValue(t){return JSON.parse(JSON.stringify(t))}begin(){this.transactionCache={},this.transaction=!0}end(){this.transaction=!1,this._processCallbacks(this.state)}rollback(){Object.keys(this.transactionCache).forEach((t=>this.state[t]=this.transactionCache[t])),this.end()}clear(t=!0){this.getterCache={},this.transactionCache={},this.lastUpdatedState={},this.persist&&this.persist.removeState(),this.transaction=!0,this.status=\"clear\";const e=this._copyValue(this.copyOfInitialState);for(const t in e)this.state[t]=e[t];this.transaction=!1,this.status=\"resting\",t&&this._processCallbacks(this.state)}}function createStore(t,e){let i=getStore(t);return i||(i=new s(e),console.warn(\"createStore function is deprecated. Use createAppState and getAppState in v3.3.0 to create stores\"),globalThis.__ficusjs__=globalThis.__ficusjs__||{},globalThis.__ficusjs__.store=globalThis.__ficusjs__.store||{},globalThis.__ficusjs__.store[t]=i,i)}function getStore(t){if(console.warn(\"getStore function is deprecated. Use createAppState and getAppState in v3.3.0 to create stores\"),globalThis.__ficusjs__&&globalThis.__ficusjs__.store&&globalThis.__ficusjs__.store[t])return globalThis.__ficusjs__.store[t]}class i{constructor(t){const e=this;e.state={},e.getterCache={},e.status=\"resting\",e.transaction=!1,e.transactionCache={},e.callbacks=[],this._processActions(t);let s=t.initialState||{};if(e.copyOfInitialState=e._copyValue(s),e.ttl=-1,e.lastUpdatedState={},t.ttl&&(e.ttl=t.ttl,Object.keys(e.copyOfInitialState).forEach((t=>e.lastUpdatedState[t]=(new Date).getTime()))),t.persist){e.persist=\"string\"==typeof t.persist?createPersist(t.persist):t.persist;const i=e.persist.getState(),r=e.persist.lastUpdated();i&&r&&(-1===e.ttl||e._lastUpdatedTimeDiff(r)<e.ttl)&&(s=i)}this._processState(s)}_processActions(t){const e=this,s=Object.keys(t);s.length&&s.forEach((s=>{e[s]||\"function\"!=typeof t[s]||(e[s]=t[s].bind(e))}))}_processState(t){const e=this;e.state=new Proxy(t,{set:(t,s,i)=>(e.transaction&&!e.transactionCache[s]&&(e.transactionCache[s]=e._copyValue(t[s])),t[s]=i,e.lastUpdatedState[s]=(new Date).getTime(),e.getterCache={},e.transaction||(e.persist&&e.persist.setState(e.state),e.status=\"resting\",e._processCallbacks(e.state)),!0),get:(t,s)=>e.ttl>-1&&e._lastUpdatedTimeDiff(e.lastUpdatedState[s])>e.ttl?(e.persist&&e.persist.removeState(),e.copyOfInitialState[s]):t[s]})}_lastUpdatedTimeDiff(t){return Math.round(((new Date).getTime()-t)/1e3)}setState(t){const setter=t=>{if(!t||\"object\"!=typeof t)return;const e=this.transaction;e||(this.transactionCache={},this.transaction=!0);for(const e in t)this.state[e]&&this.state[e]===t[e]||(this.state[e]=t[e]);e||(this.transaction=!1,this.persist&&this.persist.setState(this.state),this._processCallbacks(this.state))},e=t(this.state);isPromise(e)?e.then(setter):setter(e)}getState(t){if(t){if(!this.getterCache[t]){const e=(Array.isArray(t)?t:t.match(/([^[.\\]])+/g)).reduce(((t,e)=>t&&t[e]),this.state);if(null==e)return;this.getterCache[t]=e}return this.getterCache[t]}}_processCallbacks(t){return!!this.callbacks.length&&(this.callbacks.forEach((e=>e(t))),!0)}subscribe(t){if(\"function\"!=typeof t)throw new Error(\"Dude, you can only subscribe to store changes with a valid function\");return this.callbacks.push(t),()=>{this.callbacks=this.callbacks.filter((e=>e!==t))}}_copyValue(t){return t?JSON.parse(JSON.stringify(t)):t}clear(t=!0){this.getterCache={},this.transactionCache={},this.lastUpdatedState={},this.persist&&this.persist.removeState(),this.transaction=!0,this.status=\"clear\";const e=this._copyValue(this.copyOfInitialState);for(const t in e)this.state[t]=e[t];this.transaction=!1,this.status=\"resting\",t&&this._processCallbacks(this.state)}}function createAppState(t,e){let s=getAppState(t);return s||(s=new i(e),globalThis.__ficusjs__=globalThis.__ficusjs__||{},globalThis.__ficusjs__.store=globalThis.__ficusjs__.store||{},globalThis.__ficusjs__.store[t]=s,s)}function getAppState(t){if(globalThis.__ficusjs__&&globalThis.__ficusjs__.store&&globalThis.__ficusjs__.store[t])return globalThis.__ficusjs__.store[t]}function use(t,{renderer:e,...s}){if(t.create&&\"function\"==typeof t.create)return t.create({createComponent:createComponent,renderer:e,...s,createEventBus:createEventBus,getEventBus:getEventBus,createAppState:createAppState,getAppState:getAppState,createPersist:createPersist,createStore:createStore,getStore:getStore,use:use})}export{createAppState,createComponent,createEventBus,createPersist,createStore,getAppState,getEventBus,getStore,use,withEventBus,withLazyRender,withStateTransactions,withStore,withStyles};\n"],
"mappings": "0kBA4BA,WAAgC,CAC9B,iBAAiB,GACjB,SAAS,GACT,UAAU,KACR,IAEF,IAEA,GAAI,GAAU,GAEd,MAAO,IAAI,SAAQ,AAAC,IAClB,AAAI,OAAO,SAET,IAIA,QAAO,iBACL,uBACA,EACA,CAAE,KAAM,KAGV,WAAW,KACT,KACC,IAGL,aAEE,GAAI,EACF,OAEF,EAAU,GAEV,OAAO,oBAAoB,uBAAwB,GAEnD,GAAM,CAAE,YAAa,OAErB,GAAI,GAAa,EAAC,GAAkB,EAAS,YAC3C,EAAQ,QAGR,GAAM,GAAU,GAAkB,EAC9B,yCACA,oCAEJ,CAAC,GAAU,QAAQ,MAAM,6BAA8B,GACvD,EAAQ,UAKd,aACE,GAAI,MAAO,IAAmB,UAC5B,KAAM,IAAI,OAAM,gF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