d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + \"425fdd45\" + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"swiftsense_final:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t792: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkswiftsense_final\"] = self[\"webpackChunkswiftsense_final\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","import React from \"react\";\r\nimport avatarImage from './SS_logo.png';\r\n\r\nexport default function Avatar() {\r\n return (\r\n \r\n

\r\n
\r\n )\r\n}","import React from \"react\";\r\n\r\nexport default function Button_0(props) {\r\n\r\n const admission = () => {\r\n props.actions.admission()\r\n }\r\n const fee = () => {\r\n props.actions.fee()\r\n }\r\n const uniform = () => {\r\n props.actions.uniform()\r\n }\r\n const books = () => {\r\n props.actions.books()\r\n }\r\n const pupilpodandid = () => {\r\n props.actions.pupilpodandid()\r\n }\r\n const document = () => {\r\n props.actions.document()\r\n }\r\n const other = () => {\r\n props.actions.other()\r\n }\r\n const notanswered = () => {\r\n props.actions.notanswered()\r\n }\r\n\r\n return [\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function Admission(){\r\n return [\r\n \r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function Fee(props){\r\n\r\n const busfee = () => {\r\n props.actions.busfee()\r\n }\r\n const schoolfee = () => {\r\n props.actions.schoolfee()\r\n }\r\n const frenchfee = () => {\r\n props.actions.frenchfee()\r\n }\r\n const ptafee = () => {\r\n props.actions.ptafee()\r\n }\r\n const clubfee = () => {\r\n props.actions.clubfee()\r\n }\r\n return [\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function Uniform(props){\r\n\r\n const stitched = () => {\r\n props.actions.stitched()\r\n }\r\n const readymade = () => {\r\n props.actions.readymade()\r\n }\r\n const housecolour = () => {\r\n props.actions.housecolour()\r\n }\r\n const shoes = () => {\r\n props.actions.shoes()\r\n }\r\n\r\n return [\r\n \r\n \r\n \r\n \r\n \r\n
\r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function Books(props) {\r\n\r\n const kindergartenbooks = () => {\r\n props.actions.kindergartenbooks()\r\n }\r\n const onetotenbooks = () => {\r\n props.actions.onetotenbooks()\r\n }\r\n const iscbooks = () => {\r\n props.actions.iscbooks()\r\n }\r\n\r\n return [\r\n \r\n \r\n \r\n \r\n
\r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function StudyCert(props){\r\n\r\n const aadharsc = () => {\r\n props.actions.aadharsc()\r\n }\r\n const castesc = () => {\r\n props.actions.castesc()\r\n }\r\n const entrancesc = () => {\r\n props.actions.entrancesc()\r\n }\r\n\r\n return [\r\n \r\n \r\n \r\n \r\n
\r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function Document(props){\r\n\r\n const tc = () => {\r\n props.actions.tc()\r\n }\r\n const studycert = () => {\r\n props.actions.studycert()\r\n }\r\n const passcert = () => {\r\n props.actions.passcert()\r\n }\r\n\r\n return [\r\n \r\n \r\n \r\n \r\n
\r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function Other(props){\r\n\r\n const about = () => {\r\n props.actions.about()\r\n }\r\n\r\n const timing = () => {\r\n props.actions.timing()\r\n }\r\n\r\n return [\r\n \r\n \r\n \r\n
\r\n ]\r\n}","import React from \"react\";\r\n\r\nexport default function Timing(props){\r\n\r\n const officetiming = () => {\r\n props.actions.officetiming()\r\n }\r\n const schooltiming = () => {\r\n props.actions.schooltiming()\r\n }\r\n\r\n return [\r\n \r\n \r\n \r\n
\r\n ]\r\n}","import { createChatBotMessage } from 'react-chatbot-kit';\r\nimport Avatar from './Avatar';\r\nimport Button_0 from './Options/Button_0';\r\nimport Admission from './Options/Admission';\r\nimport Fee from './Options/Fee';\r\nimport Uniform from './Options/Uniform';\r\nimport Books from './Options/Books';\r\nimport StudyCert from './Options/Documents/StudyCert';\r\nimport Document from './Options/Documents/Document';\r\nimport Other from './Options/Other';\r\nimport Timing from './Options/Timing';\r\n\r\nconst config = {\r\n botName: \"SwiftSense\",\r\n initialMessages: [createChatBotMessage(`Hi there I'm SwiftSense, Choose an Option for Details.`, {\r\n widget: \"button_0\"\r\n })],\r\n customStyles: {\r\n botMessageBox: {\r\n backgroundColor: '#a238c7',\r\n },\r\n chatButton: {\r\n backgroundColor: '#a238c7',\r\n },\r\n },\r\n customComponents: {\r\n botAvatar: (props) => \r\n },\r\n widgets: [\r\n {\r\n widgetName: 'button_0',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'admission',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'fee',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'uniform',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'books',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'document',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'studycert',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'timing',\r\n widgetFunc: (props) => ,\r\n },\r\n {\r\n widgetName: 'other',\r\n widgetFunc: (props) => ,\r\n },\r\n ]\r\n};\r\n\r\nexport default config;\r\n","import React from 'react';\r\nimport intents from './dataset_swiftsense.json'; // Adjust the path to your JSON file\r\n\r\nconst MessageParser = ({ children, actions }) => {\r\n const parse = (message) => {\r\n const intent = getIntentFromMessage(message);\r\n if (intent) {\r\n handleIntent(intent);\r\n } else {\r\n actions.sendResponse(\"Sorry, I didn't understand that.\");\r\n actions.button_0()\r\n }\r\n };\r\n\r\n const getIntentFromMessage = (message) => {\r\n // Convert the message to lowercase and trim for case-insensitive comparison\r\n const lowercasedMessage = message.toLowerCase().trim();\r\n\r\n // First, check if the message matches an intent tag exactly\r\n const matchingIntentByTag = intents.intents.find(\r\n (intent) => intent.tag.toLowerCase() === lowercasedMessage\r\n );\r\n\r\n if (matchingIntentByTag) {\r\n return matchingIntentByTag; // Return the matched intent if found by tag\r\n }\r\n\r\n // Find specific matches first\r\n let specificIntent = null;\r\n let genericIntent = null;\r\n\r\n for (const intent of intents.intents) {\r\n for (const pattern of intent.patterns) {\r\n // Check if the message contains the pattern\r\n if (lowercasedMessage.includes(pattern.toLowerCase())) {\r\n if (intent.tag === 'greeting') {\r\n // Store generic intent (e.g., greeting) as a fallback\r\n genericIntent = intent;\r\n } else {\r\n // Prefer specific intents\r\n specificIntent = intent;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Return specific intent if found, otherwise return generic intent\r\n return specificIntent || genericIntent || null;\r\n };\r\n\r\n const handleIntent = (intent) => {\r\n switch (intent.tag) {\r\n case 'greeting':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n actions.button_0();\r\n break;\r\n case 'goodbye':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'thanks':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'entrance':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'tc':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'passcert':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'aadhar':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'caste':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'shoes':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'stitched':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'housecolour':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'readymade':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'kindergartenbooks':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'onetotenbooks':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'iscbooks':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'busfee':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'frenchfee':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'clubfee':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'ptafee':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'schooltiming':\r\n actions.schooltiming()\r\n break;\r\n case 'officetiming':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n case 'pupilpodandid':\r\n actions.sendResponse(intent.responses[Math.floor(Math.random() * intent.responses.length)]);\r\n break;\r\n // Add more cases here for other intents that should trigger specific widgets\r\n default:\r\n // Check if there is a corresponding action for the intent tag\r\n if (actions[intent.tag]) {\r\n actions[intent.tag](); // Dynamically call the action based on the intent tag\r\n } else {\r\n // Default behavior for intents that do not require special handling\r\n actions.sendResponse(\"Sorry, I didn't understand that.\");\r\n actions.button_0()\r\n }\r\n break;\r\n }\r\n };\r\n\r\n return (\r\n \r\n {React.Children.map(children, (child) => {\r\n return React.cloneElement(child, {\r\n parse,\r\n actions\r\n });\r\n })}\r\n
\r\n );\r\n};\r\n\r\nexport default MessageParser;\r\n","import React from 'react';\r\nimport Button_0 from './Options/Button_0';\r\nimport Admission from './Options/Admission';\r\nimport Fee from './Options/Fee';\r\nimport Uniform from './Options/Uniform';\r\nimport Books from './Options/Books';\r\nimport Timing from './Options/Timing';\r\nimport Document from './Options/Documents/Document';\r\nimport StudyCert from './Options/Documents/StudyCert';\r\nimport Other from './Options/Other';\r\n\r\nconst ActionProvider = ({ createChatBotMessage, setState, children }) => {\r\n\r\n const sendResponse = (response) => {\r\n const message = createChatBotMessage(response);\r\n updateState(message);\r\n }\r\n\r\n const button_0 = () => {\r\n const message = createChatBotMessage('Choose the option:', {\r\n widget: \"button_0\"\r\n });\r\n updateState(message);\r\n }\r\n\r\n const admission = () => {\r\n const message = createChatBotMessage('Choose the Grade: ',{\r\n widget: \"admission\"\r\n });\r\n updateState(message)\r\n }\r\n \r\n const fee = () => {\r\n const message = createChatBotMessage('Choose the following domain: ',{\r\n widget: \"fee\"\r\n });\r\n updateState(message)\r\n }\r\n\r\n const uniform = () => {\r\n const message = createChatBotMessage('Choose your Preference: ',{\r\n widget: \"uniform\"\r\n });\r\n updateState(message)\r\n }\r\n\r\n const books = () => {\r\n const message = createChatBotMessage('Choose Grade: ',{\r\n widget: \"books\"\r\n });\r\n updateState(message)\r\n }\r\n\r\n const document = () => {\r\n const message = createChatBotMessage('Choose required document: ',{\r\n widget: \"document\"\r\n });\r\n updateState(message)\r\n }\r\n\r\n const other = () => {\r\n const message = createChatBotMessage('Other...',{\r\n widget: \"other\"\r\n });\r\n updateState(message)\r\n }\r\n\r\n const timing = () => {\r\n const message = createChatBotMessage(\"Choose the Domain: \", {\r\n widget: \"timing\"\r\n });\r\n updateState(message);\r\n };\r\n\r\n const pupilpodandid = () => {\r\n const message = createChatBotMessage('For all Pupilpod and ID Card(or loss) related queries Contact School Office 080-22214416 or email to munrajuk@sjbhs.edu.in.');\r\n updateState(message)\r\n }\r\n\r\n const schoolfee = () => {\r\n const message = createChatBotMessage('Login to Pupilpod> Click on school fees in the Home Page> Click on View or Pay Now. Or it can be paid in the School office via DD ONLY');\r\n updateState(message)\r\n }\r\n\r\n const busfee = () => {\r\n const message = createChatBotMessage('Link to be Uploaded...');\r\n updateState(message)\r\n }\r\n\r\n const clubfee = () => {\r\n const message = createChatBotMessage('Login to Pupilpod> Click on Club fees in the Home Page> click on View or Pay Now.');\r\n updateState(message)\r\n }\r\n\r\n const ptafee = () => {\r\n const message = createChatBotMessage('Login to Pupilpod> Click on PTA fees in the Home Page> click on View or Pay Now.');\r\n updateState(message)\r\n }\r\n\r\n const frenchfee = () => {\r\n const message = createChatBotMessage('Link to be Uploaded...');\r\n updateState(message)\r\n }\r\n\r\n const stitched = () => {\r\n const message = createChatBotMessage('Contact Vital Rao & Sons - 98459 86327.');\r\n updateState(message)\r\n }\r\n\r\n const readymade = () => {\r\n const message = createChatBotMessage('Contact Scholar Clothing Co - 7899853058.');\r\n updateState(message)\r\n }\r\n\r\n const housecolour = () => {\r\n const message = createChatBotMessage('Contact Specimen 8 Inc - 9108461334.');\r\n updateState(message)\r\n }\r\n\r\n const shoes = () => {\r\n const message = createChatBotMessage('Contact Sunrise Enterprises - 9353081600/ 080-23507129.');\r\n updateState(message)\r\n }\r\n\r\n const kindergartenbooks = () => {\r\n const message = createChatBotMessage('Contact Vidyarthikendra - 7307059385/ 7753888113.');\r\n updateState(message)\r\n }\r\n\r\n const onetotenbooks = () => {\r\n const message = createChatBotMessage('Contact Studentzone - 9986740540.');\r\n updateState(message)\r\n }\r\n\r\n const iscbooks = () => {\r\n const message = createChatBotMessage('Contact Gangarams Book Bureau - 99450 84629.');\r\n updateState(message)\r\n }\r\n \r\n const tc = () => {\r\n const message = createChatBotMessage(\"Draft a letter to the Principal stating the reason for you leaving the school with parent's signature.\");\r\n updateState(message)\r\n }\r\n\r\n const passcert = () => {\r\n const message = createChatBotMessage('Kindly obtain a FIR copy from Police Station and thereafter enclose a copy of the FIR and a copy of the Lost Pass Certificate along with a charge of ₹ 775/- as levied by the Council.');\r\n updateState(message)\r\n }\r\n\r\n const studycert = () => {\r\n const message = createChatBotMessage('Specify the reason: ',{\r\n widget: \"studycert\"\r\n });\r\n updateState(message)\r\n }\r\n\r\n const aadharsc = () => {\r\n const message = createChatBotMessage('Kindly draft a letter along with a passport size Photo and submit it at the office.');\r\n updateState(message)\r\n }\r\n\r\n const castesc = () => {\r\n const message = createChatBotMessage(\"Kindly draft a letter along with your parent's/student's caste certificate issued by the Government.\");\r\n updateState(message)\r\n }\r\n\r\n const entrancesc = () => {\r\n const message = createChatBotMessage('Kindly get your Transfer certificate or Draft a letter with full details related to Joining year and Graduating year.');\r\n updateState(message)\r\n }\r\n\r\n const loss = () => {\r\n const message = createChatBotMessage('Regarding loss of ID card, Please contact the office at 080-22214416.');\r\n updateState(message)\r\n }\r\n\r\n const about = () => {\r\n const message = createChatBotMessage('I am a low-intermedate level chatbot for assisting you on basic things, I was developed by a former student of the school.');\r\n updateState(message)\r\n }\r\n\r\n const NotAnsweredMessage = () => (\r\n \r\n I am sorry that I couldn't help you. I am still in development stage. You can leave a feedback{\" \"}\r\n
here and help me to become better! \r\n You can contact the school office for your queries at 080-22214416.\r\n
\r\n );\r\n\r\n const notanswered = () => {\r\n const message = createChatBotMessage();\r\n updateState(message);\r\n };\r\n\r\n const Schooltime = () => (\r\n \r\n School Timings:
LKG: 8:15 a.m. to 12:05 p.m.
UKG: 8:15 a.m. to 2:05 p.m.
Lunch Break: 11:25 a.m. to 12:05 p.m.
Stds 1 & 2: 8:15 a.m. to 2:15 p.m.
Stds 3 & 4: 8:15 a.m. to 2:30 p.m.
Stds 5 & 6: 8:15 a.m. to 2:45 p.m.
Stds 8 to 12: 8:15 a.m. to 3:20 p.m.
Lunch Break
Std 1 to 10: 12:05 p.m. to 12:45 p.m
Stds 11 & 12: 12:45 p.m. to 1:25 p.m.\r\n
\r\n );\r\n\r\n const schooltiming = () => {\r\n const message = createChatBotMessage(, {\r\n html: true\r\n });\r\n updateState(message);\r\n };\r\n\r\n const officetiming = () => {\r\n const message = createChatBotMessage(\"Weekdays: 8:15 a.m. to 12:30 p.m. & 1:30 p.m. to 4:00 p.m.\\nSaturday: 8:30 a.m. to 12:30 p.m.\");\r\n updateState(message);\r\n };\r\n \r\n const updateState = (message) => {\r\n setState((prev) => ({\r\n ...prev,\r\n messages: [...prev.messages, message]\r\n }))\r\n }\r\n\r\n return (\r\n \r\n {React.Children.map(children, (child) => {\r\n return React.cloneElement(child, {\r\n actions: {\r\n button_0,//done\r\n admission,//done\r\n uniform,//done\r\n fee,//done\r\n books,//done\r\n document,//done\r\n other,//done\r\n pupilpodandid,//done\r\n busfee,//done\r\n schoolfee,//done\r\n clubfee,//done\r\n ptafee,//done\r\n frenchfee,//done\r\n shoes,//done\r\n housecolour,//done\r\n stitched,//done\r\n readymade,//done\r\n kindergartenbooks,//done\r\n onetotenbooks,//done\r\n iscbooks,//done\r\n studycert,//done\r\n tc,//done\r\n loss,\r\n timing,//done\r\n officetiming,//done\r\n schooltiming,//done\r\n about,//done\r\n notanswered,//done\r\n NotAnsweredMessage,//done\r\n Schooltime,//done\r\n castesc,//done\r\n passcert,//done\r\n aadharsc,//done\r\n entrancesc,//done\r\n sendResponse,//done\r\n },\r\n });\r\n })}\r\n
\r\n );\r\n};\r\n\r\nexport default ActionProvider;","import React, { useState } from 'react';\nimport { Chatbot } from 'react-chatbot-kit';\nimport config from './config';\nimport MessageParser from './MessageParser';\nimport ActionProvider from './ActionProvider';\nimport 'react-chatbot-kit/build/main.css';\nimport './App.css';\nimport chatIcon from './SS_logo.png'; // Adjust the path if needed\n\nfunction App() {\n const [showChatbot, setShowChatbot] = useState(false);\n\n const toggleChatbot = () => {\n setShowChatbot(prevState => !prevState);\n };\n\n return (\n \n
\n \n {showChatbot && (\n \n )}\n \n
\n );\n}\n\nexport default App;","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\nroot.render(\n \n \n \n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"names":["e","n","t","r","__esModule","default","d","a","o","Object","defineProperty","enumerable","get","prototype","hasOwnProperty","call","Symbol","toStringTag","value","Chatbot","B","createChatBotMessage","i","createClientMessage","u","createCustomMessage","l","H","useChatbot","T","require","s","assign","arguments","length","apply","this","c","message","type","id","Math","round","Date","now","random","loading","m","g","_ref","styles","createElement","xmlns","viewBox","f","customComponents","className","condition","userChatMessage","show","elseShow","userAvatar","h","p","width","height","version","stroke","fill","cx","cy","v","y","withAvatar","messages","setState","customStyles","delay","useState","b","w","useEffect","setTimeout","Array","slice","concat","find","findIndex","clearTimeout","E","backgroundColor","P","borderRightColor","botAvatar","botChatMessage","loader","style","_ref2","S","state","widgetRegistry","messageParser","parse","actionProvider","botName","headerText","customMessages","placeholderText","validator","disableScrollToBottom","O","messageHistory","k","actions","M","messageContainerRef","C","N","x","j","current","scrollTop","scrollHeight","A","chatButton","I","header","ref","Boolean","dangerouslySetInnerHTML","__html","map","Fragment","key","widget","getWidget","scrollIntoView","payload","botMessageBox","paddingBottom","onSubmit","preventDefault","placeholder","onChange","target","href","rel","widgets","addWidget","widgetName","widgetFunc","mapStateToProps","props","parentProps","reduce","config","runInitialMessagesWithHistory","saveMessages","indexOf","getOwnPropertySymbols","propertyIsEnumerable","configurationError","initialMessages","push","invalidPropsError","isArray","useRef","innerHTML","toString","forEach","actionProv","messagePars","ActionProvider","MessageParser","module","exports","console","warn","aa","ca","encodeURIComponent","da","Set","ea","fa","ha","add","ia","window","document","ja","ka","la","ma","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","propertyName","sanitizeURL","removeEmptyString","z","split","toLowerCase","ra","sa","toUpperCase","ta","pa","isNaN","qa","test","oa","removeAttribute","setAttribute","setAttributeNS","replace","xlinkHref","ua","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","va","for","wa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","iterator","Ka","La","Ma","Error","stack","trim","match","Na","Oa","prepareStackTrace","set","Reflect","construct","displayName","includes","name","Pa","tag","render","Qa","$$typeof","_context","_payload","_init","Ra","Sa","Ta","nodeName","Va","_valueTracker","getOwnPropertyDescriptor","constructor","configurable","getValue","setValue","stopTracking","Ua","Wa","checked","Xa","activeElement","body","Ya","defaultChecked","defaultValue","_wrapperState","initialChecked","Za","initialValue","controlled","ab","bb","cb","db","ownerDocument","eb","fb","options","selected","defaultSelected","disabled","gb","children","hb","ib","jb","textContent","kb","lb","mb","nb","namespaceURI","valueOf","firstChild","removeChild","appendChild","MSApp","execUnsafeLocalFunction","ob","lastChild","nodeType","nodeValue","pb","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","qb","rb","sb","setProperty","keys","charAt","substring","tb","menuitem","area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","ub","vb","is","wb","xb","srcElement","correspondingUseElement","parentNode","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","addEventListener","removeEventListener","Nb","onError","Ob","Pb","Qb","Rb","Sb","Tb","Vb","alternate","return","flags","Wb","memoizedState","dehydrated","Xb","Zb","child","sibling","Yb","$b","ac","unstable_scheduleCallback","bc","unstable_cancelCallback","cc","unstable_shouldYield","dc","unstable_requestPaint","unstable_now","ec","unstable_getCurrentPriorityLevel","fc","unstable_ImmediatePriority","gc","unstable_UserBlockingPriority","hc","unstable_NormalPriority","ic","unstable_LowPriority","jc","unstable_IdlePriority","kc","lc","oc","clz32","pc","qc","log","LN2","rc","sc","tc","uc","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","vc","xc","yc","zc","Ac","eventTimes","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Map","Pc","Qc","Rc","Sc","delete","pointerId","Tc","nativeEvent","blockedOn","domEventName","eventSystemFlags","targetContainers","Vc","Wc","priority","isDehydrated","containerInfo","Xc","Yc","dispatchEvent","shift","Zc","$c","ad","bd","cd","ReactCurrentBatchConfig","dd","ed","transition","fd","gd","hd","Uc","stopPropagation","jd","kd","ld","md","nd","od","keyCode","charCode","pd","qd","rd","_reactName","_targetInst","currentTarget","isDefaultPrevented","defaultPrevented","returnValue","isPropagationStopped","cancelBubble","persist","isPersistent","wd","xd","yd","sd","eventPhase","bubbles","cancelable","timeStamp","isTrusted","td","ud","view","detail","vd","Ad","screenX","screenY","clientX","clientY","pageX","pageY","ctrlKey","shiftKey","altKey","metaKey","getModifierState","zd","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","Bd","Dd","dataTransfer","Fd","Hd","animationName","elapsedTime","pseudoElement","Id","clipboardData","Jd","Ld","data","Md","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","Nd","Od","Alt","Control","Meta","Shift","Pd","Qd","String","fromCharCode","code","location","repeat","locale","which","Rd","Td","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Vd","touches","targetTouches","changedTouches","Xd","Yd","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","$d","ae","be","documentMode","ce","de","ee","fe","ge","he","ie","le","color","date","datetime","email","month","number","password","range","search","tel","text","time","url","week","me","ne","oe","event","listeners","pe","qe","re","se","te","ue","ve","we","xe","ye","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","node","offset","nextSibling","Le","contains","compareDocumentPosition","Me","HTMLIFrameElement","contentWindow","Ne","contentEditable","Oe","focusedElem","selectionRange","documentElement","start","end","selectionStart","selectionEnd","min","defaultView","getSelection","extend","rangeCount","anchorNode","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","element","left","scrollLeft","top","focus","Pe","Qe","Re","Se","Te","Ue","Ve","We","animationend","animationiteration","animationstart","transitionend","Xe","Ye","Ze","animation","$e","af","bf","cf","df","ef","ff","gf","hf","lf","mf","nf","Ub","instance","listener","D","of","has","pf","qf","rf","sf","bind","capture","passive","J","F","tf","uf","parentWindow","vf","wf","na","xa","$a","ba","je","char","ke","unshift","xf","yf","zf","Af","Bf","Cf","Df","Ef","Ff","Gf","Hf","Promise","Jf","queueMicrotask","resolve","then","catch","If","Kf","Lf","Mf","previousSibling","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","G","Vf","Wf","Xf","Yf","contextTypes","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Zf","childContextTypes","$f","ag","bg","getChildContext","cg","__reactInternalMemoizedMergedChildContext","dg","eg","fg","gg","hg","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","zg","Ag","Bg","elementType","deletions","Cg","pendingProps","overflow","treeContext","retryLane","Dg","mode","Eg","Fg","Gg","memoizedProps","Hg","Ig","Jg","Kg","Lg","_owner","_stringRef","refs","Mg","join","Ng","Og","index","Pg","Qg","Rg","implementation","Sg","Tg","q","next","done","Ug","Vg","Wg","Xg","Yg","Zg","$g","ah","_currentValue","bh","childLanes","ch","dependencies","firstContext","lanes","dh","eh","context","memoizedValue","fh","gh","hh","interleaved","ih","jh","kh","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","pending","effects","lh","mh","eventTime","lane","callback","nh","K","oh","ph","qh","rh","sh","th","uh","vh","wh","xh","yh","tagName","zh","Ah","Bh","L","Ch","revealOrder","Dh","Eh","_workInProgressVersionPrimary","Fh","ReactCurrentDispatcher","Gh","Hh","Ih","Jh","Kh","Lh","Mh","Nh","Oh","Ph","Qh","Rh","Sh","Th","baseQueue","queue","Uh","Vh","Wh","lastRenderedReducer","action","hasEagerState","eagerState","lastRenderedState","dispatch","Xh","Yh","Zh","$h","ai","getSnapshot","bi","ci","Q","di","lastEffect","stores","ei","fi","gi","hi","ii","create","destroy","deps","ji","ki","li","mi","ni","oi","pi","qi","ri","si","ti","ui","vi","wi","xi","yi","zi","Ai","R","Bi","readContext","useCallback","useContext","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","identifierPrefix","Ci","defaultProps","Di","Ei","isMounted","_reactInternals","enqueueSetState","enqueueReplaceState","enqueueForceUpdate","Fi","shouldComponentUpdate","isPureReactComponent","Gi","contextType","updater","Hi","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","Ii","getDerivedStateFromProps","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","Ji","digest","Ki","Li","error","Mi","WeakMap","Ni","Oi","Pi","Qi","getDerivedStateFromError","componentDidCatch","Ri","componentStack","Si","pingCache","Ti","Ui","Vi","Wi","ReactCurrentOwner","Xi","Yi","Zi","$i","aj","compare","bj","cj","dj","baseLanes","cachePool","transitions","ej","fj","gj","hj","ij","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","jj","kj","pendingContext","lj","zj","Aj","Bj","Cj","mj","nj","oj","fallback","pj","qj","sj","dataset","dgst","tj","uj","_reactRetry","rj","subtreeFlags","vj","wj","isBackwards","rendering","renderingStartTime","last","tail","tailMode","xj","Dj","Ej","Fj","wasMultiple","multiple","suppressHydrationWarning","onClick","onclick","size","createElementNS","autoFocus","createTextNode","Gj","Hj","Ij","Jj","U","Kj","WeakSet","V","Lj","W","Mj","Nj","Pj","Qj","Rj","Sj","Tj","Uj","Vj","insertBefore","_reactRootContainer","Wj","X","Xj","Yj","Zj","onCommitFiberUnmount","componentWillUnmount","ak","bk","ck","dk","ek","isHidden","fk","gk","display","hk","ik","jk","kk","__reactInternalSnapshotBeforeUpdate","src","Vk","lk","ceil","mk","nk","ok","Y","Z","pk","qk","rk","sk","tk","Infinity","uk","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","callbackNode","expirationTimes","expiredLanes","wc","callbackPriority","ig","Ek","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","Ok","finishedWork","finishedLanes","Pk","timeoutHandle","Qk","Rk","Sk","Tk","Uk","mutableReadLanes","Bc","Oj","onCommitFiberRoot","mc","onRecoverableError","Wk","onPostCommitFiberRoot","Xk","Yk","$k","isReactComponent","pendingChildren","al","mutableSourceEagerHydrationData","bl","cache","pendingSuspenseBoundaries","dl","el","fl","gl","hl","il","yj","Zk","kl","reportError","ll","_internalRoot","ml","nl","ol","pl","rl","ql","unmount","unstable_scheduleHydration","splice","querySelectorAll","JSON","stringify","form","sl","usingClientEntryPoint","Events","tl","findFiberByHostInstance","bundleType","rendererPackageName","ul","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","vl","isDisabled","supportsFiber","inject","createPortal","cl","createRoot","unstable_strictMode","findDOMNode","flushSync","hydrate","hydrateRoot","hydratedSources","_getVersion","_source","unmountComponentAtNode","unstable_batchedUpdates","unstable_renderSubtreeIntoContainer","checkDCE","err","__self","__source","jsx","jsxs","forceUpdate","escape","_status","_result","Children","count","toArray","only","Component","Profiler","PureComponent","StrictMode","Suspense","act","cloneElement","createContext","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","createFactory","createRef","forwardRef","isValidElement","lazy","memo","startTransition","unstable_act","pop","sortIndex","performance","setImmediate","startTime","expirationTime","priorityLevel","navigator","scheduling","isInputPending","MessageChannel","port2","port1","onmessage","postMessage","unstable_Profiling","unstable_continueExecution","unstable_forceFrameRate","floor","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_runWithPriority","unstable_wrapCallback","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","definition","chunkId","all","promises","miniCssF","obj","prop","inProgress","dataWebpackPrefix","script","needAttach","scripts","getElementsByTagName","getAttribute","charset","timeout","nc","onScriptComplete","prev","onerror","onload","doneFns","fn","head","installedChunks","installedChunkData","promise","reject","errorType","realSrc","request","webpackJsonpCallback","parentChunkLoadingFunction","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","Avatar","_jsx","avatarImage","alt","Button_0","_jsxs","admission","fee","uniform","books","pupilpodandid","other","notanswered","Admission","Fee","schoolfee","busfee","frenchfee","clubfee","ptafee","Uniform","stitched","readymade","housecolour","shoes","Books","kindergartenbooks","onetotenbooks","iscbooks","StudyCert","aadharsc","castesc","entrancesc","Document","studycert","passcert","Other","about","timing","Timing","officetiming","schooltiming","intent","getIntentFromMessage","handleIntent","sendResponse","button_0","lowercasedMessage","matchingIntentByTag","intents","specificIntent","genericIntent","pattern","patterns","responses","React","response","updateState","loss","NotAnsweredMessage","Schooltime","html","showChatbot","setShowChatbot","toggleChatbot","prevState","chatIcon","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","getElementById","App","reportWebVitals"],"sourceRoot":""}