{"version":3,"sources":["webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/keyboard/components/index.ts","webpack:///./src/translations/index.ts","webpack:///./src/keyboard/index.tsx","webpack:///./src/keyboard/components/Keyboard.tsx","webpack:///./src/keyboard/components/KeyboardKey.tsx","webpack:///./src/keyboard/components/KeyboardRow.tsx"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","messages","defaultConfiguration","window","renderKeyboard","inputElementId","language","output","appConfig","assign","langCode","getLanguageCode","container","document","getElementById","body","appendChild","createElement","unmountRef","ReactDOM","unmountComponentAtNode","render","IntlProvider","locale","Keyboard","onClose","setNewInputValue","referenceElement","newValue","value","changeEvent","Event","dispatchEvent","intl","useIntl","useToggle","isShift","toggleShift","useState","keyData","setKeyData","translateStatement","setTranslateStatement","inputElement","useRef","init","current","classList","add","position","getBoundingClientRect","left","scrollX","bottom","scrollY","createRegularKeyInfo","keyValue","keyValueShift","display","shiftDisplay","type","onClick","backspaceKey","length","substr","shiftKeyName","formatMessage","shiftKey","spaceKeyName","spaceKey","createKeyData","destroy","remove","useEffect","className","style","transform","keyRow","idx","KeyboardRow","key","data","onShiftClick","FormattedMessage","KeyboardKey"],"mappings":"6EAAA,IAAIA,EAAM,CACT,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,aAAc,GACd,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ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sB,CAAE,gBAAiBtC,IAC/DuC,MAAO,CAAEC,UAAWnC,IAEnBF,EAAQrD,KAAI,SAAC2F,EAAQC,GAAQ,OAC1B,wBAAC,EAAAC,YAAW,CAACC,IAAKF,EAAKG,KAAMJ,EAAQzC,QAASA,EAAS8C,aAAc7C,OAEzE,+BAAKqC,UAAU,gBACX,gCAAMb,QAASpC,EAAO,cAAc,gBAChC,wBAAC,EAAA0D,iBAAgB,CAAC9F,GAAG,6B,iNCxDzC,cACA,UAIA,OAQa,EAAA+F,YAAmD,SAAC,G,IAC7DH,EAAI,OACJ7C,EAAO,UACP8C,EAAY,eAUZ,OACI,gCACIR,WAAW,aAAW,eAAgB,CAClC,YAA2B,UAAdO,EAAKrB,KAClB,gBAA+B,cAAdqB,EAAKrB,KACtB,YAA2B,UAAdqB,EAAKrB,OAEtBC,QAfR,WACsB,UAAdoB,EAAKrB,KACLsB,IAEAD,EAAKpB,QAAQzB,IAWO,cACR,gBAEXA,EAAU6C,EAAKtB,aAAesB,EAAKvB,W,iNCpChD,cAGA,SAEA,OAQa,EAAAqB,YAAmD,SAAC,G,IAC7DE,EAAI,OACJ7C,EAAO,UACP8C,EAAY,eAEZ,OACI,+BAAKR,UAAU,gBACVO,EAAK/F,KAAI,SAACqD,EAASuC,GAAQ,OACxB,wBAAC,EAAAM,YAAW,CACRJ,IAAKF,EACLG,KAAM1C,EACNH,QAASA,EACT8C,aAAcA,U","file":"keyboard.rbundle.js","sourcesContent":["var map = {\n\t\"./af\": 50,\n\t\"./af.js\": 50,\n\t\"./ar\": 51,\n\t\"./ar-dz\": 52,\n\t\"./ar-dz.js\": 52,\n\t\"./ar-kw\": 53,\n\t\"./ar-kw.js\": 53,\n\t\"./ar-ly\": 54,\n\t\"./ar-ly.js\": 54,\n\t\"./ar-ma\": 55,\n\t\"./ar-ma.js\": 55,\n\t\"./ar-sa\": 56,\n\t\"./ar-sa.js\": 56,\n\t\"./ar-tn\": 57,\n\t\"./ar-tn.js\": 57,\n\t\"./ar.js\": 51,\n\t\"./az\": 58,\n\t\"./az.js\": 58,\n\t\"./be\": 59,\n\t\"./be.js\": 59,\n\t\"./bg\": 60,\n\t\"./bg.js\": 60,\n\t\"./bm\": 61,\n\t\"./bm.js\": 61,\n\t\"./bn\": 62,\n\t\"./bn-bd\": 63,\n\t\"./bn-bd.js\": 63,\n\t\"./bn.js\": 62,\n\t\"./bo\": 64,\n\t\"./bo.js\": 64,\n\t\"./br\": 65,\n\t\"./br.js\": 65,\n\t\"./bs\": 66,\n\t\"./bs.js\": 66,\n\t\"./ca\": 67,\n\t\"./ca.js\": 67,\n\t\"./cs\": 68,\n\t\"./cs.js\": 68,\n\t\"./cv\": 69,\n\t\"./cv.js\": 69,\n\t\"./cy\": 70,\n\t\"./cy.js\": 70,\n\t\"./da\": 71,\n\t\"./da.js\": 71,\n\t\"./de\": 72,\n\t\"./de-at\": 73,\n\t\"./de-at.js\": 73,\n\t\"./de-ch\": 74,\n\t\"./de-ch.js\": 74,\n\t\"./de.js\": 72,\n\t\"./dv\": 75,\n\t\"./dv.js\": 75,\n\t\"./el\": 76,\n\t\"./el.js\": 76,\n\t\"./en-au\": 77,\n\t\"./en-au.js\": 77,\n\t\"./en-ca\": 78,\n\t\"./en-ca.js\": 78,\n\t\"./en-gb\": 79,\n\t\"./en-gb.js\": 79,\n\t\"./en-ie\": 80,\n\t\"./en-ie.js\": 80,\n\t\"./en-il\": 81,\n\t\"./en-il.js\": 81,\n\t\"./en-in\": 82,\n\t\"./en-in.js\": 82,\n\t\"./en-nz\": 83,\n\t\"./en-nz.js\": 83,\n\t\"./en-sg\": 84,\n\t\"./en-sg.js\": 84,\n\t\"./eo\": 85,\n\t\"./eo.js\": 85,\n\t\"./es\": 86,\n\t\"./es-do\": 87,\n\t\"./es-do.js\": 87,\n\t\"./es-mx\": 88,\n\t\"./es-mx.js\": 88,\n\t\"./es-us\": 89,\n\t\"./es-us.js\": 89,\n\t\"./es.js\": 86,\n\t\"./et\": 90,\n\t\"./et.js\": 90,\n\t\"./eu\": 91,\n\t\"./eu.js\": 91,\n\t\"./fa\": 92,\n\t\"./fa.js\": 92,\n\t\"./fi\": 93,\n\t\"./fi.js\": 93,\n\t\"./fil\": 94,\n\t\"./fil.js\": 94,\n\t\"./fo\": 95,\n\t\"./fo.js\": 95,\n\t\"./fr\": 96,\n\t\"./fr-ca\": 97,\n\t\"./fr-ca.js\": 97,\n\t\"./fr-ch\": 98,\n\t\"./fr-ch.js\": 98,\n\t\"./fr.js\": 96,\n\t\"./fy\": 99,\n\t\"./fy.js\": 99,\n\t\"./ga\": 100,\n\t\"./ga.js\": 100,\n\t\"./gd\": 101,\n\t\"./gd.js\": 101,\n\t\"./gl\": 102,\n\t\"./gl.js\": 102,\n\t\"./gom-deva\": 103,\n\t\"./gom-deva.js\": 103,\n\t\"./gom-latn\": 104,\n\t\"./gom-latn.js\": 104,\n\t\"./gu\": 105,\n\t\"./gu.js\": 105,\n\t\"./he\": 106,\n\t\"./he.js\": 106,\n\t\"./hi\": 107,\n\t\"./hi.js\": 107,\n\t\"./hr\": 108,\n\t\"./hr.js\": 108,\n\t\"./hu\": 109,\n\t\"./hu.js\": 109,\n\t\"./hy-am\": 110,\n\t\"./hy-am.js\": 110,\n\t\"./id\": 111,\n\t\"./id.js\": 111,\n\t\"./is\": 112,\n\t\"./is.js\": 112,\n\t\"./it\": 113,\n\t\"./it-ch\": 114,\n\t\"./it-ch.js\": 114,\n\t\"./it.js\": 113,\n\t\"./ja\": 115,\n\t\"./ja.js\": 115,\n\t\"./jv\": 116,\n\t\"./jv.js\": 116,\n\t\"./ka\": 117,\n\t\"./ka.js\": 117,\n\t\"./kk\": 118,\n\t\"./kk.js\": 118,\n\t\"./km\": 119,\n\t\"./km.js\": 119,\n\t\"./kn\": 120,\n\t\"./kn.js\": 120,\n\t\"./ko\": 121,\n\t\"./ko.js\": 121,\n\t\"./ku\": 122,\n\t\"./ku.js\": 122,\n\t\"./ky\": 123,\n\t\"./ky.js\": 123,\n\t\"./lb\": 124,\n\t\"./lb.js\": 124,\n\t\"./lo\": 125,\n\t\"./lo.js\": 125,\n\t\"./lt\": 126,\n\t\"./lt.js\": 126,\n\t\"./lv\": 127,\n\t\"./lv.js\": 127,\n\t\"./me\": 128,\n\t\"./me.js\": 128,\n\t\"./mi\": 129,\n\t\"./mi.js\": 129,\n\t\"./mk\": 130,\n\t\"./mk.js\": 130,\n\t\"./ml\": 131,\n\t\"./ml.js\": 131,\n\t\"./mn\": 132,\n\t\"./mn.js\": 132,\n\t\"./mr\": 133,\n\t\"./mr.js\": 133,\n\t\"./ms\": 134,\n\t\"./ms-my\": 135,\n\t\"./ms-my.js\": 135,\n\t\"./ms.js\": 134,\n\t\"./mt\": 136,\n\t\"./mt.js\": 136,\n\t\"./my\": 137,\n\t\"./my.js\": 137,\n\t\"./nb\": 138,\n\t\"./nb.js\": 138,\n\t\"./ne\": 139,\n\t\"./ne.js\": 139,\n\t\"./nl\": 140,\n\t\"./nl-be\": 141,\n\t\"./nl-be.js\": 141,\n\t\"./nl.js\": 140,\n\t\"./nn\": 142,\n\t\"./nn.js\": 142,\n\t\"./oc-lnc\": 143,\n\t\"./oc-lnc.js\": 143,\n\t\"./pa-in\": 144,\n\t\"./pa-in.js\": 144,\n\t\"./pl\": 145,\n\t\"./pl.js\": 145,\n\t\"./pt\": 146,\n\t\"./pt-br\": 147,\n\t\"./pt-br.js\": 147,\n\t\"./pt.js\": 146,\n\t\"./ro\": 148,\n\t\"./ro.js\": 148,\n\t\"./ru\": 149,\n\t\"./ru.js\": 149,\n\t\"./sd\": 150,\n\t\"./sd.js\": 150,\n\t\"./se\": 151,\n\t\"./se.js\": 151,\n\t\"./si\": 152,\n\t\"./si.js\": 152,\n\t\"./sk\": 153,\n\t\"./sk.js\": 153,\n\t\"./sl\": 154,\n\t\"./sl.js\": 154,\n\t\"./sq\": 155,\n\t\"./sq.js\": 155,\n\t\"./sr\": 156,\n\t\"./sr-cyrl\": 157,\n\t\"./sr-cyrl.js\": 157,\n\t\"./sr.js\": 156,\n\t\"./ss\": 158,\n\t\"./ss.js\": 158,\n\t\"./sv\": 159,\n\t\"./sv.js\": 159,\n\t\"./sw\": 160,\n\t\"./sw.js\": 160,\n\t\"./ta\": 161,\n\t\"./ta.js\": 161,\n\t\"./te\": 162,\n\t\"./te.js\": 162,\n\t\"./tet\": 163,\n\t\"./tet.js\": 163,\n\t\"./tg\": 164,\n\t\"./tg.js\": 164,\n\t\"./th\": 165,\n\t\"./th.js\": 165,\n\t\"./tk\": 166,\n\t\"./tk.js\": 166,\n\t\"./tl-ph\": 167,\n\t\"./tl-ph.js\": 167,\n\t\"./tlh\": 168,\n\t\"./tlh.js\": 168,\n\t\"./tr\": 169,\n\t\"./tr.js\": 169,\n\t\"./tzl\": 170,\n\t\"./tzl.js\": 170,\n\t\"./tzm\": 171,\n\t\"./tzm-latn\": 172,\n\t\"./tzm-latn.js\": 172,\n\t\"./tzm.js\": 171,\n\t\"./ug-cn\": 173,\n\t\"./ug-cn.js\": 173,\n\t\"./uk\": 174,\n\t\"./uk.js\": 174,\n\t\"./ur\": 175,\n\t\"./ur.js\": 175,\n\t\"./uz\": 176,\n\t\"./uz-latn\": 177,\n\t\"./uz-latn.js\": 177,\n\t\"./uz.js\": 176,\n\t\"./vi\": 178,\n\t\"./vi.js\": 178,\n\t\"./x-pseudo\": 179,\n\t\"./x-pseudo.js\": 179,\n\t\"./yo\": 180,\n\t\"./yo.js\": 180,\n\t\"./zh-cn\": 181,\n\t\"./zh-cn.js\": 181,\n\t\"./zh-hk\": 182,\n\t\"./zh-hk.js\": 182,\n\t\"./zh-mo\": 183,\n\t\"./zh-mo.js\": 183,\n\t\"./zh-tw\": 184,\n\t\"./zh-tw.js\": 184\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 = 224;","export * from \"./Keyboard\";\r\nexport * from \"./KeyboardKey\";\r\nexport * from \"./KeyboardRow\";\r\n","import messages_de from \"./de.json\";\r\nimport messages_en from \"./en.json\";\r\nimport messages_es from \"./es.json\";\r\nimport messages_fr from \"./fr.json\";\r\nimport messages_ja from \"./ja.json\";\r\nimport messages_zh_cn from \"./zh_cn.json\";\r\nimport messages_zh_tw from \"./zh_tw.json\";\r\n\r\nexport const messages: any = {\r\n \"de\": messages_de,\r\n \"en\": messages_en,\r\n \"es\": messages_es,\r\n \"fr\": messages_fr,\r\n \"ja\": messages_ja,\r\n \"zh-cn\": messages_zh_cn,\r\n \"zh-tw\": messages_zh_tw,\r\n};\r\n","import * as React from \"react\";\r\nimport * as ReactDOM from \"react-dom\";\r\nimport { IntlProvider } from \"react-intl\";\r\n\r\nimport { messages } from \"../translations\";\r\nimport { getLanguageCode } from \"../shared/utils\";\r\nimport { Keyboard } from \"./components\";\r\n\r\nimport \"./index.scss\";\r\n\r\ninterface AppConfiguration {\r\n language?: string;\r\n}\r\n\r\nconst defaultConfiguration: AppConfiguration = {};\r\n\r\ndeclare global {\r\n interface Window {\r\n renderKeyboard: (inputElementId: string, language: string) => void;\r\n }\r\n}\r\n\r\nfunction createKeyboardContainer(): HTMLDivElement {\r\n const output = document.createElement(\"div\");\r\n output.id = \"keyboard-container\";\r\n return output;\r\n}\r\n\r\nwindow.renderKeyboard = (inputElementId: string, language: string): void => {\r\n const appConfig = Object.assign({}, defaultConfiguration, { language });\r\n const langCode = getLanguageCode(appConfig.language);\r\n const container =\r\n document.getElementById(\"keyboard-container\") ||\r\n document.body.appendChild(createKeyboardContainer());\r\n\r\n const unmountRef = () => ReactDOM.unmountComponentAtNode(container);\r\n\r\n unmountRef();\r\n\r\n ReactDOM.render(\r\n \r\n \r\n ,\r\n container\r\n );\r\n};\r\n","import React, { FunctionComponent, useState, useRef, useEffect } from \"react\";\r\nimport { useIntl, IntlShape, FormattedMessage } from \"react-intl\";\r\nimport classnames from \"classnames\";\r\n\r\nimport { KeyboardKeyInfo } from \"../models/KeyboardKeyInfo\";\r\nimport { useToggle } from \"../../shared/utils/componentUtils\";\r\nimport { KeyboardRow } from \"./\";\r\n\r\nimport \"./Keyboard.scss\";\r\n\r\ninterface KeyboardProps {\r\n inputElementId: string;\r\n onClose: () => void;\r\n}\r\n\r\nconst inputElementActiveClassname = \"has-open-keyboard\";\r\n\r\nexport const Keyboard: FunctionComponent = ({ inputElementId, onClose }) => {\r\n const intl = useIntl();\r\n const [isShift, toggleShift] = useToggle(false);\r\n const [keyData, setKeyData] = useState([]);\r\n // Transform style statement to relocate the keyboard container to the input element\r\n const [translateStatement, setTranslateStatement] = useState(\"translate(0,0)\");\r\n const inputElement = useRef(null);\r\n\r\n function init(): void {\r\n inputElement.current = document.getElementById(inputElementId) as HTMLInputElement;\r\n inputElement.current.classList.add(inputElementActiveClassname);\r\n\r\n const position = inputElement.current.getBoundingClientRect();\r\n setTranslateStatement(\r\n `translate(${position.left + window.scrollX}px, ${position.bottom + window.scrollY}px`\r\n );\r\n\r\n setKeyData(createKeyData(inputElement.current, intl));\r\n }\r\n\r\n function destroy(): void {\r\n inputElement.current.classList.remove(inputElementActiveClassname);\r\n }\r\n\r\n useEffect(() => {\r\n init();\r\n return destroy;\r\n }, []);\r\n\r\n return (\r\n \r\n {keyData.map((keyRow, idx) => (\r\n \r\n ))}\r\n
\r\n \r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nfunction setNewInputValue(referenceElement: HTMLInputElement, newValue: string): void {\r\n referenceElement.value = newValue;\r\n const changeEvent = new Event(\"change\");\r\n referenceElement.dispatchEvent(changeEvent);\r\n}\r\n\r\nfunction createKeyData(referenceElement: HTMLInputElement, intl: IntlShape): KeyboardKeyInfo[][] {\r\n function createRegularKeyInfo(keyValue: string, keyValueShift: string): KeyboardKeyInfo {\r\n return {\r\n display: keyValue,\r\n shiftDisplay: keyValueShift,\r\n type: \"normal\",\r\n onClick: (isShift: boolean) =>\r\n setNewInputValue(\r\n referenceElement,\r\n referenceElement.value + (isShift ? keyValueShift : keyValue)\r\n ),\r\n };\r\n }\r\n\r\n const backspaceKey: KeyboardKeyInfo = {\r\n display: \"⌫\",\r\n shiftDisplay: \"⌫\",\r\n type: \"backspace\",\r\n onClick: () => {\r\n if (referenceElement.value.length > 0) {\r\n setNewInputValue(\r\n referenceElement,\r\n referenceElement.value.substr(0, referenceElement.value.length - 1)\r\n );\r\n }\r\n },\r\n };\r\n\r\n const shiftKeyName = intl.formatMessage({ id: \"keyboard.keyname.shift\" });\r\n const shiftKey: KeyboardKeyInfo = {\r\n display: shiftKeyName,\r\n shiftDisplay: shiftKeyName,\r\n type: \"shift\",\r\n onClick: null, // Shift click is handled separately due to state\r\n };\r\n\r\n const spaceKeyName = intl.formatMessage({ id: \"keyboard.keyname.space\" });\r\n const spaceKey: KeyboardKeyInfo = {\r\n display: spaceKeyName,\r\n shiftDisplay: spaceKeyName,\r\n type: \"space\",\r\n onClick: () => setNewInputValue(referenceElement, referenceElement.value + \" \"),\r\n };\r\n\r\n return [\r\n [\r\n createRegularKeyInfo(\"`\", \"~\"),\r\n createRegularKeyInfo(\"1\", \"!\"),\r\n createRegularKeyInfo(\"2\", \"@\"),\r\n createRegularKeyInfo(\"3\", \"#\"),\r\n createRegularKeyInfo(\"4\", \"$\"),\r\n createRegularKeyInfo(\"5\", \"%\"),\r\n createRegularKeyInfo(\"6\", \"^\"),\r\n createRegularKeyInfo(\"7\", \"&\"),\r\n createRegularKeyInfo(\"8\", \"*\"),\r\n createRegularKeyInfo(\"9\", \"(\"),\r\n createRegularKeyInfo(\"0\", \")\"),\r\n createRegularKeyInfo(\"-\", \"_\"),\r\n createRegularKeyInfo(\"=\", \"+\"),\r\n backspaceKey,\r\n ],\r\n [\r\n createRegularKeyInfo(\"q\", \"Q\"),\r\n createRegularKeyInfo(\"w\", \"W\"),\r\n createRegularKeyInfo(\"e\", \"E\"),\r\n createRegularKeyInfo(\"r\", \"R\"),\r\n createRegularKeyInfo(\"t\", \"T\"),\r\n createRegularKeyInfo(\"y\", \"Y\"),\r\n createRegularKeyInfo(\"u\", \"U\"),\r\n createRegularKeyInfo(\"i\", \"I\"),\r\n createRegularKeyInfo(\"o\", \"O\"),\r\n createRegularKeyInfo(\"p\", \"P\"),\r\n createRegularKeyInfo(\"[\", \"{\"),\r\n createRegularKeyInfo(\"]\", \"}\"),\r\n createRegularKeyInfo(\"\\\\\", \"|\"),\r\n ],\r\n [\r\n createRegularKeyInfo(\"a\", \"A\"),\r\n createRegularKeyInfo(\"s\", \"S\"),\r\n createRegularKeyInfo(\"d\", \"D\"),\r\n createRegularKeyInfo(\"f\", \"F\"),\r\n createRegularKeyInfo(\"g\", \"G\"),\r\n createRegularKeyInfo(\"h\", \"H\"),\r\n createRegularKeyInfo(\"j\", \"J\"),\r\n createRegularKeyInfo(\"k\", \"K\"),\r\n createRegularKeyInfo(\"l\", \"L\"),\r\n createRegularKeyInfo(\";\", \":\"),\r\n createRegularKeyInfo(\"'\", '\"'),\r\n ],\r\n [\r\n shiftKey,\r\n createRegularKeyInfo(\"z\", \"Z\"),\r\n createRegularKeyInfo(\"x\", \"X\"),\r\n createRegularKeyInfo(\"c\", \"C\"),\r\n createRegularKeyInfo(\"v\", \"V\"),\r\n createRegularKeyInfo(\"b\", \"B\"),\r\n createRegularKeyInfo(\"n\", \"N\"),\r\n createRegularKeyInfo(\"m\", \"M\"),\r\n createRegularKeyInfo(\",\", \"<\"),\r\n createRegularKeyInfo(\".\", \">\"),\r\n createRegularKeyInfo(\"/\", \"?\"),\r\n shiftKey,\r\n ],\r\n [spaceKey],\r\n ];\r\n}\r\n","import React, { FunctionComponent } from \"react\";\r\nimport classnames from \"classnames\";\r\n\r\nimport { KeyboardKeyInfo } from \"../models/KeyboardKeyInfo\";\r\n\r\nimport \"./KeyboardKey.scss\";\r\n\r\ninterface KeyboardKeyProps {\r\n data: KeyboardKeyInfo;\r\n isShift: boolean;\r\n onShiftClick: () => void;\r\n}\r\n\r\nexport const KeyboardKey: FunctionComponent = ({\r\n data,\r\n isShift,\r\n onShiftClick,\r\n}) => {\r\n function handleClick(): void {\r\n if (data.type === \"shift\") {\r\n onShiftClick();\r\n } else {\r\n data.onClick(isShift);\r\n }\r\n }\r\n\r\n return (\r\n \r\n {isShift ? data.shiftDisplay : data.display}\r\n \r\n );\r\n};\r\n","import React, { FunctionComponent } from \"react\";\r\n\r\nimport { KeyboardKeyInfo } from \"../models/KeyboardKeyInfo\";\r\nimport { KeyboardKey } from \"./\";\r\n\r\nimport \"./KeyboardRow.scss\";\r\n\r\ninterface KeyboardRowProps {\r\n data: KeyboardKeyInfo[];\r\n isShift: boolean;\r\n onShiftClick: () => void;\r\n}\r\n\r\nexport const KeyboardRow: FunctionComponent = ({\r\n data,\r\n isShift,\r\n onShiftClick,\r\n}) => {\r\n return (\r\n
\r\n {data.map((keyData, idx) => (\r\n \r\n ))}\r\n
\r\n );\r\n};\r\n"],"sourceRoot":""}