This repo is the JS Lib that will be used as shared sympl markting widget to be shared with any merchant in our network on his e-commerce platform in the product details page
- create shadow root
- create sympl widget DOM element and attach it to shadow root
- create dialog element and it's shadow and attach it to document body
- Error checks (needs refactoring)
- get store code
- get store config
- check if the price is within limits, if yes continue else do nothing
- attach sympl font face to the main DOM
- set locale
- attach modal event listeners
- get store tenure
- show minified text if applicable
- add modal plan figure
- check if using Shopify and set widget price
- show sympl fees if applicable
- handle store offer
- update translation variables
- translate