{"version":3,"sources":["i18n.js","helper/ColorHelper.js","component/Header/Header.jsx","component/Footer/Footer.jsx","component/Container/Container.jsx","request/BaseRequest.js","request/SingletonBootConfig.js","request/LoginRequest.js","component/Login/Login.jsx","component/Chat/ChatMsgHelper.js","component/ChatList/GroupingImages/MediaViewer.jsx","utils/types.js","component/ChatList/GroupingImages/GroupingImages.jsx","component/ChatList/RightChat.jsx","component/ChatList/LeftChat.jsx","component/ChatList/ChatList.jsx","request/ChatRequest.js","constant.js","helper/helpers.js","redux/conversationDucks.js","component/Chat/Chat.jsx","helper/hooks.js","request/SurveyRequest.js","component/Surveys/XmlNodeStringFormat.js","component/Surveys/Answers.jsx","component/Surveys/Questions.jsx","component/Surveys/Concepts.jsx","component/Surveys/Surveys.jsx","component/Chat/MoreOptions.jsx","component/NotAvailable/NotAvailable.jsx","App.js","serviceWorker.js","redux/store.js","index.js"],"names":["i18n","use","initReactI18next","init","resources","translations","lng","debug","interpolation","escapeValue","ColorHelper","getHeaderStyle","backgroundColor","getPrimaryColor","opacity","hexToRGB","primaryColor","getSecondaryColor","secondaryColor","getRightChatColorStyle","getSecundaryBtnStyle","getChatSendColorStyle","getChatControlColorStyle","color","getChatClockColorStyle","getMainChatBtnStyle","getButtonColorStyle","border","textShadow","getLoginTitleColor","hex","alpha","r","parseInt","slice","g","b","window","this","instance","Header","minimize","props","closeConversation","headerImgSrc","headerImgHeight","headerImgWidth","embedded","showHeaderTitle","headerTittleTextColor","headerHeight","headerColor","headerLabels","header","className","style","padding","height","title","src","alt","id","width","icon","onClick","isShowBtnClose","Component","Footer","footerLabels","footer","label","version","process","Container","chatSize","resize","active","resizeHeight","resizeWidth","overflow","children","BaseRequest","GetXMLRequest","path","a","params","url","URL","search","URLSearchParams","toString","fetch","method","keepalive","response","parser","DOMParser","text","xmlDoc","parseFromString","GetJsonFromXMLRequest","xmlText","xml","XMLParser","SingletonBootConfig","getConfig","config","getExternalChat","remoteWS","concat","externalChat","getChatWS","chatWS","LoginRequest","CreateSession","userName","domain","getInstance","username","idClient","CreateChat","session","console","log","random","Math","floor","Abandoned","abandoned","AbandonedSync","client","XMLHttpRequest","open","send","Login","onNameChanged","value","setState","onChangeUserName","state","trim","disabledBtn","isLoading","getSessionResponse","queryString","location","get","Promise","resolve","then","resp","attributes","agentId","onNameFilled","onSessionStart","agentName","message","timeOut","chatId","maxImgToSend","responseStatus","showModal","msg","onNameCompleted","setTimeout","modalErrors","buttonColorStyle","loginLabels","login","Modal","isOpen","ModalHeader","modalTitle","ModalBody","modalBody","ModalFooter","modalBtn","titleColorStyle","bind","colorHelper","chatServices","textAlign","schedule","hours","lblName","type","namePlaceholder","placeholder","onChange","onEnter","onlyAlphanumeric","disabled","btnStart","regexChatOnline","ChatMsgHelper","getMsgResponse","result","isWarning","indexOf","indice","length","substring","error","getSessionOnline","online","all","match","exec","matchMsg","name","getCurrentHour","now","Date","pm","getHours","hour12","minute","getMinutes","padStart","transformMessage","reciveMessage","array","split","htmlReturn","index","includes","push","href","target","rel","MediaViewer","shape","string","isRequired","mediaType","show","toggle","multimediaFiles","withFooter","orientation","t","useTranslation","useState","tooltipDownload","setTooltipDownload","tooltipBack","setTooltipBack","activeFile","setActiveFile","media","mediaName","multimedia","setMultimedia","aRef","useRef","download","current","click","useEffect","arr","map","file","slide","direction","centered","ref","display","Tooltip","placement","preload","autoPlay","controls","v","i","key","defaultProps","GroupingImages","setOpen","indexA","setIndex","undefined","arry","image","o","RightChat","hour","messageType","React","setHtmlReturn","groupImage","setGroupImage","LeftChat","ChatList","scrollToBottom","scrollChat","scrollTop","scrollHeight","createRef","msgList","chatLabels","chat","busyAgent","element","position","ChatRequest","SendMsg","newMsg","ListenMsg","isWriting","SendEmail","email","data","FormData","append","body","onUploadAttachment","fileName","formData","origin","setPathWS","mode","urlFormatHelper","index0","substr","initialState","setMessage","getMsgList","conversation","Chat","currentMsg","setCurrentMsg","writing","setWriting","isDialogOpen","setDialogOpen","prevAgentIdRef","alertTimer","logout","interval","inputRef","dispatch","useDispatch","conversationList","useSelector","content","setError","e","useError","showError","toggleError","isBtnMoreOption","isMoreOption","isBtnAttachment","isBtnCloseConversation","chatControlsStyle","promiseFunctions","welcomemessage","clearInterval","setInterval","setAgentData","onMsgRecived","showSurvey","endSession","clearTimmers","isMedia","htmlmessage","onMsgSend","onMsgMultimediaSend","closeConversationHandler","onMoreOptionsChange","onMsgList","onFocus","clearTimeout","onBlur","time","multiple","filesAdded","dataTransfer","files","Object","values","filter","f","ext","pop","isNotFileAllowed","size","forEach","json","accept","onAccept","onCancel","cancel","SurveyRequest","surveysfolder","fakePostSurvey","xmlFile","XmlNodeStringFormat","ConceptNodeStart","conceptsIds","ConceptNodeEnd","FormatNodeStart","totalWeight","FormatNodeEnd","QuestionNode","questionId","answerId","answerWeight","answerLabel","Answers","answerResult","answerNode","setNodeFormat","answer","weight","description","question","setNode","onQuestionAnswered","pushAnswer","popAnswer","nodeState","replace","onChecked","checked","answerType","conceptId","CustomInput","number","initialValue","step","increment","maxValue","minValue","Label","for","Input","answers","FormGroup","Questions","answersNodes","newAnswersNodes","concatNodes","entries","questions","Concepts","nodes","ids","concepts","concept","onConceptRendered","Surveys","xmlString","questionsXml","conceptsXml","getConceptsXml","getTotal","conceptXml","jsonConcept","total","x","onSubmit","jsonSurvey","formatEnd","onRestoreStates","surveys","btn","connect","MoreOptions","generateString","list","copyToClipboard","dummy","document","createElement","appendChild","select","execCommand","removeChild","downloadTxtFile","Blob","createObjectURL","onEmailChanged","onSendEmail","valdateEmail","test","moreOptionsLabels","moreOptions","isBtnSend","scheduleContact","marginBottom","contacNumber","contactNo","socialMedia","twitterPage","facebookPage","lblMail","mailPlaceholder2","mailPlaceholder","NotAvailable","notAvailableModal","notAvailableLabels","notAvailable","dropdownOpen","App","mainBtn","isIE","ua","navigator","userAgent","msie","trident","isRestoreState","warn","ontoggle","showMore","onbeforeunload","chipChat","btnChat","paddingRight","chipChatWithAgent","Boolean","hostname","rootReducer","combineReducers","action","lastIndex","lastData","msgId","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","store","createStore","applyMiddleware","thunk","ReactDOM","render","StrictMode","getElementById","serviceWorker","ready","registration","unregister"],"mappings":"gvFAIAA,IACEC,IAAIC,KACJC,KAAK,CACLC,UAAWC,EACXC,IAAK,KAELC,OAAO,EAEPC,cAAe,CACdC,aAAa,KAIDT,EAAf,EAAeA,I,mFCjBMU,G,kBAEnB,aAAe,IAAD,gCAcdC,eAAiB,WACf,MAAO,CACLC,gBAAiB,EAAKC,oBAhBZ,KAoBdA,gBAAkB,WAAqB,IAApBC,EAAmB,uDAAT,KAC3B,OAAO,EAAKC,SAAS,EAAKC,aAAcF,IArB5B,KAwBdG,kBAAoB,WAAqB,IAApBH,EAAmB,uDAAT,KAC7B,OAAO,EAAKC,SAAS,EAAKG,eAAgBJ,IAzB9B,KA4BdK,uBAAyB,WACvB,MAAO,CACLP,gBAAiB,EAAKC,gBAAgB,MA9B5B,KAkCdO,qBAAuB,WACrB,OAAO,EAAKC,yBAnCA,KAsCdC,yBAA2B,WACzB,MAAO,CACLC,MAAO,EAAKV,gBAAgB,MAxClB,KA2CdQ,sBAAwB,WACtB,MAAO,CACLT,gBAAiB,EAAKC,gBAAgB,MA7C5B,KAiDdW,uBAAyB,WACvB,OAAO,EAAKH,yBAlDA,KAqDdI,oBAAsB,WACpB,MAAO,CACLF,MAAO,EAAKN,oBACZL,gBAAiB,EAAKC,oBAxDZ,KA4Dda,oBAAsB,WACpB,MAAO,CACLH,MAAO,EAAKN,oBACZU,OAAO,aAAD,OAAe,EAAKd,gBAAgB,KAC1Ce,WAAW,eAAD,OAAiB,EAAKf,gBAAgB,KAChDD,gBAAiB,EAAKC,oBAjEZ,KAqEdgB,mBAAqB,WACnB,MAAO,CACLN,MAAO,EAAKV,oBAvEF,KA2EdE,SAAW,SAACe,EAAKC,GACf,IAAIC,EAAIC,SAASH,EAAII,MAAM,EAAG,GAAI,IAChCC,EAAIF,SAASH,EAAII,MAAM,EAAG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J,SADJ,CAEL,CACEsO,MAAOrY,EAAM+J,QAAQlG,OAAS,EAC9BtC,IAAK2W,EAAO3W,IAAIA,IAChB6I,SAAU8N,EAAO3W,IAAI6I,SACrBlB,KAAMgP,EAAO3W,IAAI2H,KACjBC,YAAa+O,EAAO3W,IAAI4H,iBAIhC,IAvC2B,yBAwCzB,OAAO,2BACFnJ,GADL,IAEE+J,QAAS,KAEb,QACE,OAAO/J,Ma3CPsY,GAAmB5e,OAAO6e,sCAAwCC,KCIxE,IAAMC,GDDUC,aACZV,GACAM,GAAiBK,aAAgBC,QCCrCC,IAASC,OACP,kBAAC,IAAMC,WAAP,KACE,kBAAC,KAAD,CAAUN,MAAOA,IACf,kBAAC,GAAD,QAGJ3D,SAASkE,eAAe,SF4GpB,kBAAmB/B,WACrBA,UAAUgC,cAAcC,MAAMxY,MAAK,SAAAyY,GACjCA,EAAaC,kB","file":"static/js/main.20568dcb.chunk.js","sourcesContent":["import i18n from 'i18next';\r\nimport { initReactI18next } from 'react-i18next';\r\nimport translations from './lang/translations.json';\r\n\r\ni18n\r\n\t.use(initReactI18next) // passes i18n down to react-i18next\r\n\t.init({\r\n\t\tresources: translations,\r\n\t\tlng: 'es',\r\n\r\n\t\tdebug: false,\r\n\r\n\t\tinterpolation: {\r\n\t\t\tescapeValue: false // react already safes from xss\r\n\t\t}\r\n\t});\r\n\r\nexport default i18n;\r\n","export default class ColorHelper {\r\n static instance;\r\n constructor() {\r\n const { primaryColor, secondaryColor } = window[\"boot\"];\r\n this.primaryColor = primaryColor;\r\n this.secondaryColor = secondaryColor;\r\n }\r\n\r\n static getInstance() {\r\n if (ColorHelper.instance) {\r\n return ColorHelper.instance;\r\n }\r\n ColorHelper.instance = new ColorHelper();\r\n return ColorHelper.instance;\r\n }\r\n\r\n getHeaderStyle = () => {\r\n return {\r\n backgroundColor: this.getPrimaryColor()\r\n };\r\n }\r\n\r\n getPrimaryColor = (opacity = null) => {\r\n return this.hexToRGB(this.primaryColor, opacity);\r\n };\r\n\r\n getSecondaryColor = (opacity = null) => {\r\n return this.hexToRGB(this.secondaryColor, opacity);\r\n };\r\n\r\n getRightChatColorStyle = () => {\r\n return {\r\n backgroundColor: this.getPrimaryColor(0.2)\r\n };\r\n };\r\n\r\n getSecundaryBtnStyle = () => {\r\n return this.getChatSendColorStyle();\r\n };\r\n\r\n getChatControlColorStyle = () => {\r\n return {\r\n color: this.getPrimaryColor(0.5)\r\n };\r\n };\r\n getChatSendColorStyle = () => {\r\n return {\r\n backgroundColor: this.getPrimaryColor(0.5)\r\n };\r\n };\r\n\r\n getChatClockColorStyle = () => {\r\n return this.getChatSendColorStyle();\r\n };\r\n\r\n getMainChatBtnStyle = () => {\r\n return {\r\n color: this.getSecondaryColor(),\r\n backgroundColor: this.getPrimaryColor()\r\n };\r\n };\r\n\r\n getButtonColorStyle = () => {\r\n return {\r\n color: this.getSecondaryColor(),\r\n border: `1px solid ${this.getPrimaryColor(0.2)}`,\r\n textShadow: `0px 1px 0px ${this.getPrimaryColor(0.3)}`,\r\n backgroundColor: this.getPrimaryColor()\r\n };\r\n };\r\n\r\n getLoginTitleColor = () => {\r\n return {\r\n color: this.getPrimaryColor()\r\n };\r\n };\r\n\r\n hexToRGB = (hex, alpha) => {\r\n var r = parseInt(hex.slice(1, 3), 16),\r\n g = parseInt(hex.slice(3, 5), 16),\r\n b = parseInt(hex.slice(5, 7), 16);\r\n\r\n if (alpha) {\r\n return \"rgba(\" + r + \", \" + g + \", \" + b + \", \" + alpha + \")\";\r\n } else {\r\n return \"rgb(\" + r + \", \" + g + \", \" + b + \")\";\r\n }\r\n };\r\n}\r\n","import React, { Component } from \"react\";\r\nimport \"./Header.scss\";\r\nimport ColorHelper from \"../../helper/ColorHelper\";\r\nimport { ButtonIcon } from \"global-components-library\";\r\n\r\nexport default class Header extends Component {\r\n\r\n minimize = () => {\r\n this.props.minimize();\r\n };\r\n\r\n closeConversation = () => {\r\n this.props.closeConversation();\r\n };\r\n\r\n render() {\r\n let { headerImgSrc, headerImgHeight, headerImgWidth, embedded, showHeaderTitle,headerTittleTextColor,headerHeight,headerColor } = window[\"boot\"];\r\n const { header: headerLabels } = window[\"labels\"];\r\n return (\r\n
\r\n {showHeaderTitle &&
{headerLabels.title}
}\r\n
\r\n \r\n
\r\n
\r\n {!embedded && }\r\n {this.props.isShowBtnClose && (\r\n \r\n )}\r\n
\r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from \"react\";\r\nimport \"./Footer.css\";\r\nimport version from \"../../../package.json\"\r\n\r\nexport default class Footer extends Component {\r\n render() {\r\n const { footer: footerLabels } = window[\"labels\"];\r\n return (\r\n
\r\n
{footerLabels.label}{version.version}
\r\n
\r\n \"\"\r\n
\r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from \"react\";\r\n\r\nimport \"./Container.css\";\r\n\r\nexport default class Container extends Component {\r\n render() {\r\n let { chatSize, resize: { active = false, resizeHeight = null, resizeWidth = null } = {}, } = window[\"boot\"];\r\n \r\n return (\r\n \r\n {this.props.children}\r\n \r\n );\r\n }\r\n}\r\n","import XMLParser from \"react-xml-parser\";\r\n\r\nexport default class BaseRequest {\r\n static GetXMLRequest = async (path, params = null) => {\r\n let url = null;\r\n if (params) {\r\n url = new URL(path);\r\n url.search = new URLSearchParams(params).toString();\r\n } else {\r\n url = path;\r\n }\r\n let response = await fetch(url, {\r\n method: \"GET\",\r\n \"Content-Type\": \"text/xml; charset=utf-8\",\r\n \"Access-Control-Allow-Origin\": \"*\",\r\n keepalive: true\r\n });\r\n let parser = new DOMParser();\r\n let xmlDoc = parser.parseFromString(await response.text(), \"text/xml\");\r\n return xmlDoc;\r\n };\r\n\r\n static GetJsonFromXMLRequest = async (path, params = null) => {\r\n let url = null;\r\n if (params) {\r\n url = new URL(path);\r\n url.search = new URLSearchParams(params).toString();\r\n } else {\r\n url = path;\r\n }\r\n let response = await fetch(url, {\r\n method: \"GET\",\r\n \"Content-Type\": \"text/xml; charset=utf-8\",\r\n \"Access-Control-Allow-Origin\": \"*\",\r\n keepalive: true\r\n });\r\n let xmlText = await response.text();\r\n\r\n var xml = new XMLParser().parseFromString(xmlText);\r\n return xml;\r\n };\r\n}\r\n","export default class SingletonBootConfig {\r\n static instance;\r\n constructor() {\r\n this.config = window[\"boot\"];\r\n }\r\n\r\n static getInstance() { \r\n if (SingletonBootConfig.instance) {\r\n return SingletonBootConfig.instance;\r\n }\r\n SingletonBootConfig.instance = new SingletonBootConfig();\r\n return SingletonBootConfig.instance;\r\n }\r\n\r\n getConfig = () => {\r\n return this.config;\r\n };\r\n\r\n getExternalChat = () => {\r\n return this.config.remoteWS.concat(this.config.externalChat);\r\n };\r\n\r\n getChatWS = () => {\r\n return this.config.remoteWS.concat(this.config.chatWS);\r\n };\r\n}\r\n","import BaseRequest from \"./BaseRequest\";\r\nimport SingletonBootConfig from \"./SingletonBootConfig\";\r\n\r\nexport default class LoginRequest {\r\n static CreateSession = async (userName, domain) => {\r\n let path = SingletonBootConfig.getInstance().getChatWS() + \"/requestAgent\";\r\n return await BaseRequest.GetXMLRequest(path, {\r\n username: userName,\r\n idClient: 1,\r\n domain: domain ? domain : window[\"boot\"].domain\r\n });\r\n };\r\n\r\n static CreateChat = async session => {\r\n console.log(\"CREATING CHAT\");\r\n let path = SingletonBootConfig.getInstance().getExternalChat();\r\n return await BaseRequest.GetXMLRequest(path, {\r\n process: 1,\r\n random: Math.floor(Math.random() * 1000 + 1),\r\n session: session\r\n });\r\n };\r\n\r\n static Abandoned = async session => {\r\n let path = SingletonBootConfig.getInstance().getExternalChat();\r\n return await BaseRequest.GetXMLRequest(path, {\r\n process: 3,\r\n abandoned: 0,\r\n random: Math.floor(Math.random() * 1000 + 1),\r\n session: session\r\n });\r\n };\r\n\r\n static AbandonedSync = session => {\r\n let path = SingletonBootConfig.getInstance().getExternalChat();\r\n path = path.concat(\r\n \"?process=\",\r\n \"3\",\r\n \"&abandoned=\",\r\n \"0\",\r\n \"&random=\",\r\n Math.floor(Math.random() * 1000 + 1),\r\n \"&session=\",\r\n session\r\n );\r\n let client = new XMLHttpRequest();\r\n client.open(\"GET\", path, false);\r\n client.send();\r\n };\r\n}\r\n","import React, { Component } from \"react\";\r\nimport Header from \"../Header/Header\";\r\nimport Footer from \"../Footer/Footer\";\r\nimport Container from \"../Container/Container\";\r\nimport \"./Login.css\";\r\nimport LoginRequest from \"../../request/LoginRequest\";\r\nimport ColorHelper from \"../../helper/ColorHelper\";\r\nimport { Modal, ModalHeader, ModalBody, ModalFooter } from \"reactstrap\";\r\nimport { Button, LabelInput } from \"global-components-library\";\r\n\r\nexport default class Login extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n userName: \"\",\r\n titleColorStyle: null,\r\n showModal: false,\r\n msg: null,\r\n disabledBtn: true,\r\n isLoading: false\r\n };\r\n this.onNameChanged = this.onNameChanged.bind(this);\r\n }\r\n\r\n componentDidMount() {\r\n let colorHelper = ColorHelper.getInstance();\r\n this.setState({\r\n titleColorStyle: colorHelper.getLoginTitleColor(),\r\n buttonColorStyle: colorHelper.getButtonColorStyle(),\r\n });\r\n }\r\n\r\n onNameChanged = (value) => {\r\n this.setState({ userName: value });\r\n };\r\n componentDidUpdate() {\r\n this.onChangeUserName();\r\n }\r\n onChangeUserName = () => {\r\n if(this.state.userName.trim() && this.state.disabledBtn === true && !this.state.isLoading)\r\n {\r\n this.setState({disabledBtn:false});\r\n }\r\n if(this.state.isLoading && this.state.disabledBtn === false)\r\n {\r\n this.setState({disabledBtn:true});\r\n }\r\n }\r\n getSessionResponse = () => {\r\n if (this.state.userName !== \"\") {\r\n let queryString = window.location.search;\r\n let urlParams = new URLSearchParams(queryString);\r\n let domain = urlParams.get(\"domain\");\r\n Promise.resolve(\r\n LoginRequest.CreateSession(this.state.userName, domain)\r\n ).then((resp) => {\r\n if (resp && resp.children[0] && resp.children[0].attributes) {\r\n let attributes = resp.children[0].attributes;\r\n if (parseInt(attributes.agentId.value) > 0) {\r\n this.props.onNameFilled({ userName: this.state.userName });\r\n LoginRequest.CreateChat(attributes.session.value);\r\n this.props.onSessionStart(\r\n attributes.session.value,\r\n attributes.agentId.value,\r\n attributes.agentName.value,\r\n attributes.message.value,\r\n attributes.timeOut.value,\r\n attributes.chatId.value,\r\n attributes.maxImgToSend.value\r\n );\r\n } else {\r\n if (attributes.responseStatus.value === \"1\") {\r\n LoginRequest.CreateChat(attributes.session.value);\r\n this.props.onSessionStart(\r\n attributes.session.value,\r\n -1,\r\n attributes.agentName.value,\r\n attributes.message.value,\r\n 0,\r\n attributes.chatId.value,\r\n attributes.maxImgToSend.value\r\n );\r\n } else {\r\n this.setState({ showModal: true, msg: attributes.message.value });\r\n }\r\n }\r\n }\r\n this.setState({isLoading:false})\r\n });\r\n }\r\n }\r\n onNameCompleted = () => {\r\n this.setState({isLoading:true});\r\n setTimeout(() => {\r\n this.getSessionResponse();\r\n }, 1000);\r\n };\r\n\r\n modalErrors = () => {\r\n const { buttonColorStyle } = this.state;\r\n const { login: loginLabels } = window[\"labels\"];\r\n const { embedded } = window[\"boot\"];\r\n return (\r\n \r\n {loginLabels.modalTitle}\r\n \r\n {this.state.msg ? this.state.msg : loginLabels.modalBody}\r\n \r\n \r\n this.setState({ showModal: false })}\r\n style={buttonColorStyle}\r\n >\r\n {loginLabels.modalBtn}\r\n \r\n \r\n \r\n );\r\n };\r\n\r\n render() {\r\n const { titleColorStyle } = this.state;\r\n const { login: loginLabels } = window[\"labels\"];\r\n const { resize: { active = false } = {} } = window[\"boot\"];\r\n \r\n return (\r\n
\r\n {this.modalErrors()}\r\n
\r\n \r\n
\r\n
\r\n {loginLabels.chatServices}\r\n
\r\n \r\n {loginLabels.schedule}\r\n
\r\n
{loginLabels.hours}
\r\n
\r\n
{loginLabels.lblName}
\r\n \r\n
\r\n \r\n {loginLabels.btnStart}\r\n \r\n
\r\n
\r\n
\r\n \r\n