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EAAAA,cAAC2B,EAAAA,EAAM,KACL3B,EAAAA,cAAA,OAAK0B,UAAU,yBAAwB,qCAIzC1B,EAAAA,cAAA,QAAM0B,UAAU,gBAEZ,CACEE,oBACE5B,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,UAAI,wBACJA,EAAAA,cAAA,WAAK,kGAMT6B,SACE7B,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,UAAI,yCACJA,EAAAA,cAAA,WAAK,kEAKT8B,oBACE9B,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,UAAI,yCACJA,EAAAA,cAAA,WAAK,mEAMTyB,GAEHF,GAA2B,aAAdE,GACZzB,EAAAA,cAAA,WAAK,qCAAmCuB,EAAU,MAGlD,C","sources":["webpack://mc-squarespace-commerce/./app/javascript/channels/ sync _channel\\.js$","webpack://mc-squarespace-commerce/./app/javascript/channels/index.js","webpack://mc-squarespace-commerce/./app/javascript/packs/application.js","webpack://mc-squarespace-commerce/./app/javascript/packs/errorContainer.jsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 3760;\nmodule.exports = webpackEmptyContext;","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n\n// Uncomment to copy all static images under ../images to the output folder and reference\n// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)\n// or the `imagePath` JavaScript helper below.\n//\n// const images = require.context('../images', true)\n// const imagePath = (name) => images(name, true)\n\n// eslint-disable-next-line no-unused-vars\nimport jQuery from 'jquery';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport AppContainer from './appContainer';\nimport ErrorContainer from './errorContainer';\n\nrequire('@rails/ujs').start();\nrequire('@rails/activestorage').start();\n// eslint-disable-next-line import/no-unresolved\nrequire('channels');\n\nfunction initializeGTM() {\n (function (w, d, s, l, i) {\n w[l] = w[l] || [];\n w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });\n var f = d.getElementsByTagName(s)[0],\n j = d.createElement(s),\n dl = l != 'dataLayer' ? '&l=' + l : '';\n j.async = true;\n j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;\n f.parentNode.insertBefore(j, f);\n })(window, document, 'script', 'dataLayer', 'GTM-WNGS8ZR');\n}\n\nconst reactComponents = {\n AppContainer,\n ErrorContainer,\n};\n\nfunction initializeReact() {\n const containers = document.querySelectorAll('.react-component');\n\n Array.from(containers).forEach((container) => {\n const ContainerComponent = reactComponents[container.id];\n\n const root = createRoot(container);\n\n // eslint-disable-next-line react/jsx-filename-extension,react/jsx-props-no-spreading\n root.render();\n });\n}\n\n(function contentLoaded() {\n initializeGTM();\n window.addEventListener('DOMContentLoaded', initializeReact, false);\n})();\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Header from '../components/header';\n\nconst ErrorContainer = ({\n requestId = null,\n errorType = 'internalServerError',\n}) => (\n
\n
\n
\n Squarespace Commerce Integration\n
\n
\n
\n {\n {\n internalServerError: (\n <>\n

Something Went Wrong

\n
\n We're very sorry, but something went wrong on our side and\n we couldn't complete your request.\n
\n \n ),\n notFound: (\n <>\n

The Page You Requested Doesn't Exist.

\n
\n You may have mistyped the address or the page may have moved.\n
\n \n ),\n unprocessableEntity: (\n <>\n

The Change You Requested Was Rejected

\n
\n Maybe you tried to change something you don't have access\n to?\n
\n \n ),\n }[errorType]\n }\n {requestId && errorType !== 'notFound' && (\n
The request ID for this error is: {requestId}.
\n )}\n
\n
\n);\n\nErrorContainer.propTypes = {\n requestId: PropTypes.string,\n errorType: PropTypes.string,\n};\n\nexport default ErrorContainer;\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","channels","require","forEach","reactComponents","AppContainer","ErrorContainer","initializeReact","containers","document","querySelectorAll","Array","from","container","ContainerComponent","createRoot","render","React","dataset","w","d","s","l","i","push","Date","getTime","event","f","getElementsByTagName","j","createElement","async","src","parentNode","insertBefore","window","addEventListener","_ref","_ref$requestId","requestId","_ref$errorType","errorType","className","Header","internalServerError","notFound","unprocessableEntity"],"sourceRoot":""}