{"version":3,"sources":["webpack:///./app/javascript/components/TextField.jsx","webpack:///./app/javascript/components sync ^\\.\\/.*$","webpack:///./app/javascript/packs/application.js","webpack:///./app/javascript/channels/index.js","webpack:///./app/javascript/channels sync _channel\\.js$","webpack:///./app/javascript/shopify_app/index.js","webpack:///./app/javascript/shopify_app/shopify_app.js","webpack:///./app/javascript/shopify_app/flash_messages.js"],"names":["TextField","props","value","restProps","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","require","start","componentRequireContext","useContext","channels","forEach","webpackEmptyContext","document","addEventListener","data","getElementById","dataset","AppBridge","window","createApp","app","apiKey","shopOrigin","actions","TitleBar","create","title","page","eventName","Turbolinks","documentElement","hasAttribute","flashData","JSON","parse","flash","Toast","notice","message","duration","dispatch","Action","SHOW","error","isError"],"mappings":"qiBAGe,SAASA,EAAUC,GAEhC,IAAOC,EAAuBD,EAAvBC,MAAUC,EAAjB,EAA8BF,EAA9B,GAEA,OACE,kBAAC,IAAD,eACEC,MAAiB,OAAVA,EAAiB,GAAKA,GACzBC,GAET,C,sBCZD,IAAIC,EAAM,CACT,cAAe,GACf,kBAAmB,IAIpB,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,EAC5B,CACA,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,CACP,CACA,OAAOP,EAAIE,EACZ,CACAD,EAAeS,KAAO,WACrB,OAAOC,OAAOD,KAAKV,EACpB,EACAC,EAAeW,QAAUR,EACzBS,EAAOC,QAAUb,EACjBA,EAAeE,GAAK,G,sBCnBpBY,EAAQ,KAAcC,QACtBD,EAAQ,KAAcC,QACtBD,EAAQ,KAAwBC,QAChCD,EAAQ,KAWRA,EAAQ,KAER,IAAIE,EAA0BF,OACVA,EAAQ,KACdG,WAAWD,E,sBCnBzB,IAAME,EAAWJ,OACjBI,EAAST,OAAOU,QAAQD,E,oBCJxB,SAASE,EAAoBnB,GAC5B,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,CACP,CACAc,EAAoBX,KAAO,WAAa,MAAO,EAAI,EACnDW,EAAoBT,QAAUS,EAC9BR,EAAOC,QAAUO,EACjBA,EAAoBlB,GAAK,G,sBCRzBY,EAAQ,KACRA,EAAQ,I,oBCDRO,SAASC,iBAAiB,oBAAoB,WAC5C,IAAIC,EAAOF,SAASG,eAAe,oBAAoBC,QACnDC,EAAYC,OAAO,cACnBC,EAAYF,EAAS,QACzBC,OAAOE,IAAMD,EAAU,CACrBE,OAAQP,EAAKO,OACbC,WAAYR,EAAKQ,aAGLL,EAAUM,QACDC,SACdC,OAAOL,IAAK,CACnBM,MAAOZ,EAAKa,MAEf,G,oBCdD,IAAIC,EAAmC,qBAAhBC,WAA8B,kBAAoB,mBAEpEjB,SAASkB,gBAAgBC,aAAa,4BACzCnB,SAASC,iBAAiBe,GAAW,WACnC,IAAII,EAAYC,KAAKC,MAAMtB,SAASG,eAAe,qBAAqBC,QAAQmB,OAE5EC,EAAQlB,OAAO,cAAcK,QAAQa,MAErCJ,EAAUK,QACZD,EAAMX,OAAOL,IAAK,CAChBkB,QAASN,EAAUK,OACnBE,SAAU,MACTC,SAASJ,EAAMK,OAAOC,MAGvBV,EAAUW,OACZP,EAAMX,OAAOL,IAAK,CAChBkB,QAASN,EAAUW,MACnBJ,SAAU,IACVK,SAAS,IACRJ,SAASJ,EAAMK,OAAOC,KAE5B,G","file":"js/application-846349b548ab890a4adb.chunk.js","sourcesContent":["import React from \"react\"\nimport {TextField as PolarisTextField} from \"@shopify/polaris\"\n\nexport default function TextField(props) {\n\n const {value, ...restProps} = props\n\n return (\n \n )\n}","var map = {\n\t\"./TextField\": 35,\n\t\"./TextField.jsx\": 35\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 407;","// 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.\nrequire(\"@rails/ujs\").start()\nrequire(\"turbolinks\").start()\nrequire(\"@rails/activestorage\").start()\nrequire(\"channels\")\n\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// Shopify app\nrequire(\"shopify_app\")\n// Support component names relative to this directory:\nvar componentRequireContext = require.context(\"components\", true)\nvar ReactRailsUJS = require(\"react_ujs\")\nReactRailsUJS.useContext(componentRequireContext)\n\n// this file is not loaded in the new react flow. To load it add \"<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>\" to the layout","// 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","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;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 585;","require('./shopify_app')\nrequire('./flash_messages')\n","document.addEventListener('DOMContentLoaded', () => {\n var data = document.getElementById('shopify-app-init').dataset;\n var AppBridge = window['app-bridge'];\n var createApp = AppBridge.default;\n window.app = createApp({\n apiKey: data.apiKey,\n shopOrigin: data.shopOrigin,\n });\n\n var actions = AppBridge.actions;\n var TitleBar = actions.TitleBar;\n TitleBar.create(app, {\n title: data.page,\n });\n});\n","var eventName = typeof(Turbolinks) !== 'undefined' ? 'turbolinks:load' : 'DOMContentLoaded';\n\nif (!document.documentElement.hasAttribute(\"data-turbolinks-preview\")) {\n document.addEventListener(eventName, function flash() {\n var flashData = JSON.parse(document.getElementById('shopify-app-flash').dataset.flash);\n\n var Toast = window['app-bridge'].actions.Toast;\n\n if (flashData.notice) {\n Toast.create(app, {\n message: flashData.notice,\n duration: 5000,\n }).dispatch(Toast.Action.SHOW);\n }\n\n if (flashData.error) {\n Toast.create(app, {\n message: flashData.error,\n duration: 5000,\n isError: true,\n }).dispatch(Toast.Action.SHOW);\n }\n });\n}\n"],"sourceRoot":""}