{"version":3,"sources":["webpack:///./node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js","webpack:///./app/assets/javascripts/reactjs/components/Product/ProductPromotion.module.scss","webpack:///./app/assets/javascripts/reactjs/components/Product/ProductPromotion.jsx"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","includes","key","call","join","module","exports","default","ProductPromotion","imageNode","title","description","image","url","darkMode","href","className","styles","productPromotionImage","src","alt","productPromotion","productPromotionTitle","productPromotionDescription","dangerouslySetInnerHTML","__html","defaultProps"],"mappings":";8EAAA,OAOC,WACA,aAEA,IAAIA,EAAS,GAAGC,eAGhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,SAGT,GAAgB,WAAZJ,EAAsB,CAChC,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,WAAaP,EAAIO,SAASA,WAAWG,SAAS,iBAAkB,CACrGd,EAAQM,KAAKF,EAAIO,YACjB,SAGD,IAAK,IAAII,KAAOX,EACXP,EAAOmB,KAAKZ,EAAKW,IAAQX,EAAIW,IAChCf,EAAQM,KAAKS,KAMjB,OAAOf,EAAQiB,KAAK,KAGgBC,EAAOC,SAC3CpB,EAAWqB,QAAUrB,EACrBmB,EAAOC,QAAUpB,QAKhB,KAFwB,EAAF,WACtB,OAAOA,GACP,QAFoB,OAEpB,aAhDH,I,oBCNAmB,EAAOC,QAAU,CAAC,iBAAmB,oDAAoD,sBAAwB,yDAAyD,4BAA8B,+DAA+D,sBAAwB,2D,iCCA/R,uDAGME,EAAmB,SAAC,GAAkD,IACtEC,EADsBC,EAA+C,EAA/CA,MAAOC,EAAwC,EAAxCA,YAAaC,EAA2B,EAA3BA,MAAOC,EAAoB,EAApBA,IAAKC,EAAe,EAAfA,SAwB1D,OArBEL,EADEG,GAASC,EAET,mBAAGE,KAAMF,EAAT,SACE,qBACEG,UAAWC,IAAOC,sBAClBC,IAAKP,EACLQ,IAAI,gBAIDR,EAEP,qBACEI,UAAWC,IAAOC,sBAClBC,IAAKP,EACLQ,IAAI,cAII,KAIZ,0BACEJ,UAAW9B,IAAW+B,IAAOI,iBAAkB,CAC7C,YAAaP,IAFjB,UAKE,oBACEE,UAAS,iCACPF,GAAY,uBAFhB,SAKE,sBACEE,UAAS,2BAAsBF,GAAY,0BAD7C,wCAMF,sBAAKE,UAAS,gBAAWF,GAAY,aAArC,UACE,oBACEE,UAAW9B,IAAW+B,IAAOK,sBAAuB,CAClD,uBAAwBR,IAF5B,SAKGJ,IAEH,qBACEM,UAAWC,IAAOM,4BAClBC,wBAAyB,CAAEC,OAAQd,KAEpCF,SAaTD,EAAiBkB,aAAe,CAC9Bd,MAAO,GACPC,IAAK,IAGQL","file":"js/ProductPromotion-0764712d012b5af0e76b.chunk.js","sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"productPromotion\":\"ProductPromotion-module__productPromotion___19WdH\",\"productPromotionTitle\":\"ProductPromotion-module__productPromotionTitle___kdf6C\",\"productPromotionDescription\":\"ProductPromotion-module__productPromotionDescription___1wg8d\",\"productPromotionImage\":\"ProductPromotion-module__productPromotionImage___211Ug\"};","import PropTypes from 'prop-types';\nimport styles from './ProductPromotion.module.scss';\nimport classNames from 'classnames';\n\nconst ProductPromotion = ({ title, description, image, url, darkMode }) => {\n let imageNode;\n if (image && url) {\n imageNode = (\n \n \n \n );\n } else if (image) {\n imageNode = (\n \n );\n } else {\n imageNode = null;\n }\n\n return (\n \n \n \n 優惠活動\n \n \n
\n \n {title}\n \n \n {imageNode}\n
\n \n );\n};\n\nProductPromotion.propTypes = {\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n image: PropTypes.string,\n url: PropTypes.string\n};\n\nProductPromotion.defaultProps = {\n image: '',\n url: ''\n};\n\nexport default ProductPromotion;\n"],"sourceRoot":""}