{"version":3,"file":"js/66810-3b1b07f494796de39b99.chunk.js","mappings":"oWAEO,IAAMA,EAAUC,EAAAA,GAAOC,IAAGC,IAAAA,EAAAC,EAAA,oCACX,SAAAC,GAAK,OAAIA,EAAMC,MAAMC,OAAOC,KAAK,IAG1CC,EAAUR,EAAAA,GAAOC,IAAGQ,IAAAA,EAAAN,EAAA,mJACrB,SAAAC,GAAK,OAAIA,EAAMC,MAAMK,OAAOC,OAAO,I,sBCmB/C,QAjB2B,SAAHC,GAAoB,IAAdC,EAAMD,EAANC,OAC5B,OACEC,EAAAA,cAACC,EAAc,KACbD,EAAAA,cAACC,EAAc,KACbD,EAAAA,cAACE,EAAAA,EAAW,CAACH,OAAQA,IACrBC,EAAAA,cAACG,EAAAA,EAAiB,CAACJ,OAAQA,KAInC,E,0jCCEA,QANuB,WAPW,IAC1BK,EACAC,GAMNC,EAAAA,EAAAA,IAAe,CAAEC,YAAaC,EAAAA,KAC9BF,EAAAA,EAAAA,IAAe,CAAEC,YAAaE,EAAAA,IARxBL,EAAOM,SAASC,eAAe,oBAC/BN,EAAYD,GAAQA,EAAKQ,SAAY,CAAC,GAE5CC,EAAAA,EAAAA,IAAWT,EAAM,CAAC,CAAEU,UAAWC,EAAoBC,OAAMC,EAAA,GAAOZ,KAOlE,C,mCClBA,SACEa,GAAI,CACFC,eAAgB,CACdC,WAAY,eACZC,sBAAuB,kDAG3BC,GAAI,CACFH,eAAgB,CACdC,WAAY,uIACZC,sBAAuB,qS","sources":["webpack:///./app/javascript/templates/desktop/ItemBundle/style.js","webpack:///./app/javascript/templates/desktop/ItemBundle/index.jsx","webpack:///./app/javascript/packs/desktop/item_bundles/show.jsx","webpack:///./app/javascript/templates/desktop/ItemBundleCart/translations.js"],"sourcesContent":["import styled from 'styled-components'\n\nexport const BGWhite = styled.div`\n background-color: ${props => props.theme.colors.white};\n`\n\nexport const Wrapper = styled.div`\n width: ${props => props.theme.screen.desktop};\n line-height: 1.5;\n margin: 0 auto;\n padding: 24px 0;\n\n display: flex;\n flex-direction: column;\n gap: 24px;\n`\n","import * as Styled from './style'\nimport ItemBundles, { ParentItemBundles } from '../../../components/ItemBundles'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\n// Note: We put both ItemBundles and ParentItemBundles in the same file because they are closely related.\n// Now we assume that there is only one ItemBundles and one ParentItemBundles in the same file.\n// TODO: If there is an item that has both ItemBundles and ParentItemBundles, we need to refactor this file.\nconst ItemBundleTemplate = ({ itemId }) => {\n return (\n <Styled.BGWhite>\n <Styled.Wrapper>\n <ItemBundles itemId={itemId} />\n <ParentItemBundles itemId={itemId} />\n </Styled.Wrapper>\n </Styled.BGWhite>\n )\n}\n\nItemBundleTemplate.propTypes = {\n itemId: PropTypes.string.isRequired\n}\n\n\n\nexport default ItemBundleTemplate\n","import ItemBundleTemplate from '../../../templates/desktop/ItemBundle'\nimport ItemBundleTranslations from '../../../components/Item/ItemBundle/translations.js'\nimport CartItemBundleTranslations from '../../../templates/desktop/ItemBundleCart/translations.js'\n\nimport { initializeI18n } from '../../../utilities/i18n'\nimport { renderRoot } from '../../../utilities/render'\n\nconst _initializeItemBundlePage = () => {\n const root = document.getElementById('item_bundle_page')\n const rootData = (root && root.dataset) || {}\n\n renderRoot(root, [{ component: ItemBundleTemplate, params: { ...rootData } }])\n}\n\nconst ItemBundlePage = () => {\n initializeI18n({ localeFiles: ItemBundleTranslations })\n initializeI18n({ localeFiles: CartItemBundleTranslations })\n _initializeItemBundlePage()\n}\n\nexport default ItemBundlePage\n","export default {\n en: {\n itemBundleCart: {\n backToCart: 'Back to cart',\n addBelowToGetDiscount: 'Add the items below to get a special discount',\n }\n },\n th: {\n itemBundleCart: {\n backToCart: 'à¸à¸¥à¸±à¸šà¹„ปหน้าตะà¸à¸£à¹‰à¸²à¸ªà¸´à¸™à¸„้า',\n addBelowToGetDiscount: 'เพิ่มสินค้าด้านล่างลงในตะà¸à¸£à¹‰à¸²à¹€à¸žà¸·à¹ˆà¸à¸£à¸±à¸šà¸ªà¹ˆà¸§à¸™à¸¥à¸”พิเศษ',\n }\n }\n}"],"names":["BGWhite","styled","div","_templateObject","_taggedTemplateLiteral","props","theme","colors","white","Wrapper","_templateObject2","screen","desktop","_ref","itemId","React","Styled","ItemBundles","ParentItemBundles","root","rootData","initializeI18n","localeFiles","ItemBundleTranslations","CartItemBundleTranslations","document","getElementById","dataset","renderRoot","component","ItemBundleTemplate","params","_objectSpread","en","itemBundleCart","backToCart","addBelowToGetDiscount","th"],"sourceRoot":""}