{
  "version": 3,
  "sources": ["/cdn/shop/t/66/assets/posted-popup.js?customer_posted=true"],
  "sourcesContent": ["(async () => {\n    const { Core } = await importModule('Core');\n\n    const ATTR_NEWSLETTER_MSG = 'newsletter-msg';\n    const ATTR_CONTACT_MSG = 'contact-msg';\n\n    customElements.define('posted-popup', class extends Core {\n\n        elements = {\n            template: '[data-template]'\n        }\n\n        async render() {\n            await customElements.whenDefined('modal-popup');\n            this._initPopup();\n        }\n\n        _initPopup() {\n            if (window.location.search.includes('?customer_posted=true', 'customer_posted%3Dtrue')) {\n                this._trigerModal(this.newsletterMsg);\n            } \n            if (window.location.search.includes('?contact_posted=true', 'contact_posted%3Dtrue')) {\n                this._trigerModal(this.contactMsg);\n            } \n        }\n\n        _trigerModal(msg) {\n            this.publish('toast-notification:open', {  \n                title: msg, \n                type: 'success' \n            })\n        }\n\n        get newsletterMsg() {\n            return this.getAttribute(ATTR_NEWSLETTER_MSG);\n        }\n        get contactMsg() {\n            return this.getAttribute(ATTR_CONTACT_MSG);\n        }\n    });\n})();"],
  "mappings": "CAAC,SAAY,CACT,KAAM,CAAE,IAAK,EAAI,MAAM,aAAa,MAAM,EAEpC,oBAAsB,iBACtB,iBAAmB,cAEzB,eAAe,OAAO,eAAgB,cAAc,IAAK,CAErD,SAAW,CACP,SAAU,iBACd,EAEA,MAAM,QAAS,CACX,MAAM,eAAe,YAAY,aAAa,EAC9C,KAAK,WAAW,CACpB,CAEA,YAAa,CACL,OAAO,SAAS,OAAO,SAAS,wBAAyB,wBAAwB,GACjF,KAAK,aAAa,KAAK,aAAa,EAEpC,OAAO,SAAS,OAAO,SAAS,uBAAwB,uBAAuB,GAC/E,KAAK,aAAa,KAAK,UAAU,CAEzC,CAEA,aAAa,IAAK,CACd,KAAK,QAAQ,0BAA2B,CACpC,MAAO,IACP,KAAM,SACV,CAAC,CACL,CAEA,IAAI,eAAgB,CAChB,OAAO,KAAK,aAAa,mBAAmB,CAChD,CACA,IAAI,YAAa,CACb,OAAO,KAAK,aAAa,gBAAgB,CAC7C,CACJ,CAAC,CACL,GAAG",
  "names": []
}
