{"version":3,"sources":["components/screenLoader/styles.ts","components/screenLoader/index.tsx","services/fiorilliApi.ts","components/verticalEllipsis/index.tsx","components/sidebar/styles.ts","components/sidebar/index.tsx","commons/utils/getValidationErrors.ts","components/blueButton/styles.ts","components/blueButton/index.tsx","hooks/Auth.tsx","components/createAttendance/styles.ts","components/changePassword/styles.ts","components/Tooltip/styles.ts","components/Tooltip/index.tsx","components/Input/styles.ts","components/Input/index.tsx","components/changePassword/index.tsx","components/topbar/styles.ts","assets/images/user.png","components/topbar/index.tsx","assets/images/supportUser.png","components/importFiles/styles.ts","components/importFiles/index.tsx","components/createAttendance/index.tsx","components/sendResponse/index.tsx","pages/Main/styles.ts","pages/Main/index.tsx","components/orangebutton/styles.ts","components/orangebutton/index.tsx","pages/SignIn/styles.ts","pages/SignIn/index.tsx","components/Inputmask/index.tsx","pages/SignUp/styles.ts","pages/SignUp/index.tsx","pages/ForgotPassword/styles.ts","pages/ForgotPassword/index.tsx","assets/images/oops.png","pages/NotFound/styles.ts","pages/NotFound/index.tsx","routes/route.tsx","commons/ErrorBoundary.tsx","assets/styles/global.ts","routes/index.tsx","App.tsx","index.tsx"],"names":["DivLoader","styled","div","ScreenLoader","fillColor","version","id","xmlns","xmlnsXlink","x","y","viewBox","enableBackground","xmlSpace","style","width","fill","d","attributeName","attributeType","type","dur","from","to","repeatCount","wsfiorilli_ava559","axios","create","baseURL","apiGestor","interceptors","request","use","a","config","token","localStorage","getItem","cfg","headers","Authorization","response","error","String","status","removeItem","window","location","reload","Promise","reject","VerticalEllipsis","onClick","role","tabIndex","color","fontSize","cursor","outline","orange","gray","grayShine","white","sans","Logo","h1","Sidenav","aside","MainNav","MainList","ul","Sidebar","title","menuClick","Child","display","alignItems","href","marginRight","height","overflow","getValidationErrors","err","validationErrors","inner","forEach","path","message","buttonBlue","Container","button","shade","Bluebutton","children","rest","AuthContext","createContext","AuthProvider","addToast","useToasts","useState","userName","email","personCode","userCode","codCliRep","isCliRep","key","cnpj","userInfo","data","setData","signIn","useCallback","password","reqData","JSON","stringify","senha","post","decoded","jwtDecode","Object","ValidateClientKey","appearance","autoDismiss","setItem","signOut","userKey","get","receivedKey","result","map","keys","CHAVE","receivedType","types","TIPO","console","log","Provider","value","useAuth","context","useContext","Error","buttonGreen","ModalBody","ModalTabsBody","ModalFields","ModalButtons","DivDescrPages","input","ChangePasswordDiv","Tooltip","className","props","isErrored","css","isFocused","isFilled","Input","name","Icon","icon","inputRef","useRef","setIsFocused","setIsFilled","useField","fieldName","defaultValue","registerField","handleInputFocus","handleInputBlur","current","useEffect","ref","size","onFocus","onBlur","ChangePassword","parentCallback","formRef","loading","setLoading","top","left","transform","modalStyle","onTrigger","useStyles","makeStyles","theme","paper","position","backgroundColor","palette","background","border","borderRadius","boxShadow","shadows","padding","spacing","flexDirection","handleSubmit","setErrors","schema","Yup","shape","required","password_confirmation","oneOf","validate","abortEarly","put","codigo","chaveValidade","codigoPessoa","errors","classes","onSubmit","FiLock","placeholder","marginTop","Bar","header","LogoImg","img","UserImg","RigthDiv","TopBar","openChangePasswordModal","setOpenChangePasswordModal","anchorEl","setAnchorEl","open","Boolean","document","getElementById","margin","alt","src","User","event","currentTarget","Menu","keepMounted","onClose","TransitionComponent","Fade","MenuItem","Modal","aria-labelledby","aria-describedby","RemoveButton","ImportFiles","previewImages","onChange","htmlFor","image","multiple","CreateAttendance","editor","service","richEditorValue","loadingGrid","tabValue","setTabValue","images","setImages","setPreviewImages","columns","rows","gridData","setGridData","fieldsCodes","extraFieldsResponse","setExtraFieldsResponse","inputValues","refresh","setRefresh","nextButton","innerHTML","classList","add","remove","TabPanel","index","other","hidden","a11yProps","useStylesTab","root","Recoverportfolio","isClient","caminho","tipoRelator","field","headerName","responseContratos","responsePortfolios","filter","portfolio","permiteAtendimentoExternoCliente","permiteAtendimentoExternoRepresentante","portfolioContrato","CODSIS","codigoPortfolio","row","descricaoPortfolio","push","useStylesGrid","createStyles","runtimeEditorConfig","toolbarAdaptive","showPlaceholder","minHeight","allowResizeX","allowResizeY","toolbar","showCharsCounter","showWordsCounter","showXPathInStatusbar","maxWidth","runtimeEditorConfigFocus","autofocus","handleChangeTabPrev","LoadExtraFields","length","extraFields","codigoCampo","obrigatorio","campoObrigatorio","descricaoCampo","el","Number","newContent","campo","target","handleChangeExtraFields","getInstructionConcat","extrafieldsText","i1","eFData","checkField","labelText","innerText","validateSubmit","i","sendAttendance","clientCode","repCode","FormData","extraFieldsData","fieldValue","campoExtra","descricao","replace","movimentData","instrucaoMovimento","usuarioOrigem","usuarioDestino","avisarCliente","analise","reuniao","horasTrabalhadas","append","then","catch","classesTab","classesGrid","AppBar","Tabs","indicatorColor","variant","Tab","disabled","label","flex","marginBottom","flexGrow","headerHeight","rowHeight","disableMultipleSelection","onSelectionChange","newSelection","rowIds","hideFooter","buttons","buttonsXS","indentMargin","sourceEditor","handleChangeRichEditor","indexPreview","indexOf","indexImages","splice","files","selectedImages","Array","concat","selectedImagesPreview","URL","createObjectURL","maxHeight","SendResponse","attendanceCode","finally","softGray","MainPageDiv","MainPageBody","MainPage","MainPageCenter","ConversationDiv","AttendanceInfo","AttendanceInfoBox","AttendanceInfoUnderline","LeftConversationBubble","RightConversationBubble","MainPageBottom","SendResponseButton","ConversationUserImage","Main","attendancesType","setAttendancesType","attendancesList","setAttendancesList","selectedAttendance","setSelectedAttendance","openModal","setOpenModal","openMenu","openSendResponseModal","setOpenSendResponseModal","sendResponseVisibility","setSendResponseVisibility","createMarkup","htmlText","__html","handleCreateAttendanceCallback","handleMenuClick","handleMenuClose","handleOpenedAttendances","handleClosedAttendances","ReceiveAttendanceData","entidadeSolicitante","criacao","atualizacao","OpenConversation","createDate","entity","atualizationDate","myElement","dangerouslySetInnerHTML","anexos","marginLeft","alignSelf","justifyContent","fotoUsuarioOrigem","supportUser","opacity","rotate","ReactDOM","render","attendanceData","split","trim","handleSidebarCallback","siglaServico","dataHoraMovimentacao","OrangeButton","appearFromTop","keyframes","Content","SignInDiv","SignIn","history","useHistory","FiMail","Inputmask","mask","appearFromBottom","SignUpDiv","InputBlock","CreateAccount","client","setClient","setReceivedKey","solicitorName","setSolicitorName","validUser","setValidUser","notRequired","typeReceived","keyReceived","solicitorNameReceived","names","NOME","classification","classifications","CLASSIFICACAO","schema2","nome","nomeRepCli","MdPersonPin","FiKey","FiUser","ForgotPasswordDiv","ForgotPassword","sendEmail","variables","emailjs","send","templateParams","email_to","MainDiv","SpanOops","span","PageNotFound","Ops","Route","isPrivate","Component","component","pathname","ErrorBoundary","state","hasError","errorInfo","this","setState","textAlign","toString","componentStack","_","createGlobalStyle","Routes","exact","SignUp","TOAST_COMPONENTS","ToastContainer","zIndex","App","components","StrictMode"],"mappings":"mnBAEO,IAAMA,EAAYC,IAAOC,IAAV,KCoEPC,EAnEgB,WAC7B,IAAMC,EAAY,UAClB,OACE,eAACJ,EAAD,WACE,sBACEK,QAAQ,MACRC,GAAG,KACHC,MAAM,6BACNC,WAAW,+BACXC,EAAE,MACFC,EAAE,MACFC,QAAQ,cACRC,iBAAiB,kBACjBC,SAAS,WACTC,MAAO,CAAEC,MAAO,SAVlB,UAYE,sBACEC,KAAMZ,EACNa,EAAE,+IAFJ,SAKE,kCACEC,cAAc,YACdC,cAAc,MACdC,KAAK,SACLC,IAAI,KACJC,KAAK,UACLC,GAAG,YACHC,YAAY,iBAGhB,sBACER,KAAMZ,EACNa,EAAE,wIAFJ,SAKE,kCACEC,cAAc,YACdC,cAAc,MACdC,KAAK,SACLC,IAAI,KACJC,KAAK,UACLC,GAAG,aACHC,YAAY,iBAGhB,sBACER,KAAMZ,EACNa,EAAE,mHAFJ,SAKE,kCACEC,cAAc,YACdC,cAAc,MACdC,KAAK,SACLC,IAAI,KACJC,KAAK,UACLC,GAAG,YACHC,YAAY,oBAIlB,8D,kBC/DOC,EAAoBC,IAAMC,OAAO,CAC5CC,QAAS,qGAGEC,EAAYH,IAAMC,OAAO,CACpCC,QAAS,uCAMXC,EAAUC,aAAaC,QAAQC,IAA/B,+BAAAC,EAAA,MAA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,KAAKH,MAAMte,OAASye,KAAKH,MAAMte,MAAM4e,aACzC,sCAGIH,KAAKH,MAAME,iBAHf,aAGI,EAAsBK,uBAQ3BJ,KAAKvX,MAAM/D,Y,gDAxEmB2b,GACrC,MAAO,CACLP,UAAU,EACVve,MAAO,GACPwe,UAAW,Q,GAXWN,a,w9BCdba,mBAAf,MC2BeC,GAhBU,kBACvB,eAAC,IAAD,WACE,cAAC,GAAD,IACA,cAAC,GAAD,UACE,eAAC,IAAD,WACE,cAAC,GAAD,CAAOC,OAAK,EAACrc,KAAK,IAAIub,UAAWhD,KACjC,cAAC,GAAD,CAAO8D,OAAK,EAACrc,KAAK,UAAUub,UAAWe,KACvC,cAAC,GAAD,CAAOD,OAAK,EAACrc,KAAK,mBAAmBub,UAAWf,KAChD,cAAC,GAAD,CAAO6B,OAAK,EAACrc,KAAK,QAAQub,UAAWrG,GAAMmG,WAAS,IACpD,cAAC,GAAD,CAAOrb,KAAK,IAAIub,UAAWL,cCR7BqB,GAAmB,CAAEC,eARI,SAAClY,GAAD,OAC7B,cAAC,wBAAD,aACED,UAAU,kBACV7I,MAAO,CAAEihB,OAAQ,OACbnY,MAgBOoY,GAVO,kBACpB,mCACE,cAAC,gBAAD,CAAeC,WAAYJ,GAA3B,SACE,cAAC,GAAD,UACE,cAAC,GAAD,WChBR7E,IAASC,OACP,cAAC,IAAMiF,WAAP,UACE,cAAC,GAAD,MAEFnT,SAASC,eAAe,W","file":"static/js/main.54b15d22.chunk.js","sourcesContent":["import styled from 'styled-components';\n\nexport const DivLoader = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n color: #828282;\n background: rgb(204,204,204/60%);\n flex-direction: column;\n width: 100%;\n height: 100%;\n`;\n","import React from 'react';\nimport { DivLoader } from './styles';\n\nconst ScreenLoader: React.FC = () => {\n const fillColor = '#828282';\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n Carregando, aguarde...\n \n );\n};\n\nexport default ScreenLoader;\n","import axios from 'axios';\n\nexport const wsfiorilli_ava559 = axios.create({\n baseURL: 'https://fi1.fiorilli.com.br:559/wsfiorilli_ava/wsfiorilli_ava.dll/datasnap/rest/TsmFiorilli_ava/',\n});\n\nexport const apiGestor = axios.create({\n baseURL: 'https://gestor.fiorilli.com.br/api',\n // baseURL: 'http://localhost:9000',\n // baseURL: 'https://192.168.0.66/administrador.dll',\n // baseURL: 'https://homgestor.fiorilli.com.br/api',\n});\n\napiGestor.interceptors.request.use(async (config) => {\n const token = localStorage.getItem('@TOKEN_KEY');\n const cfg = config;\n if (token) {\n cfg.headers.Authorization = `Bearer ${token}`;\n }\n return cfg;\n});\n\napiGestor.interceptors.response.use((response) => response, (error) => {\n if (String(error.response.status) === '401') {\n localStorage.removeItem('@TOKEN_KEY');\n localStorage.removeItem('@USER_NAME');\n localStorage.removeItem('@EMAIL');\n localStorage.removeItem('@PERSON_CODE');\n localStorage.removeItem('@USER_CODE');\n localStorage.removeItem('@COD_CLI_REP');\n localStorage.removeItem('@IS_CLI_REP');\n localStorage.removeItem('@KEY');\n localStorage.removeItem('@CNPJ');\n window.location.reload();\n }\n return Promise.reject(error);\n});\n","import React, { MouseEventHandler } from 'react';\n\ntype VerticalEllipsisProps = {\n onClick: MouseEventHandler;\n};\n\nconst VerticalEllipsis: React.FC = ({ onClick }) => (\n \n ⋮\n \n);\n\nexport default VerticalEllipsis;\n","import styled from 'styled-components';\n\nconst orange = '#f6bb42';\nconst gray = '#3c4143';\nconst grayShine = '#4c4c4c';\nconst whiteOff = '#DFDBD9';\nconst white = '#FFF';\nconst selected = '#ffc108';\nconst sans = 'Roboto, sans-serif;';\n\nexport const Logo = styled.h1`\n font: 200 1.5em ${sans};\n text-align: center;\n padding: 0; margin: 0;\n\n a{\n margin-left: 5px;\n display: block;\n padding: 0.65em 0;\n color: ${white};\n text-decoration: none;\n transition: .15s linear color;\n\n &:hover{\n color: #fff;\n span{ color: ${orange}; }\n }\n }\n`;\n\nexport const Sidenav = styled.aside`\n flex-direction: column;\n display: flex;\n max-width: 17.5em;\n min-width: 15.5em;\n background: ${gray};\n\n p{\n a{\n display: flex;\n align-items: center;\n cursor: pointer;\n margin: 0 30px;\n background: #02b4ff;\n padding: 8px 3px;\n color: #fff;\n border: 1px solid ${gray};\n margin-bottom: 10px;\n\n -webkit-border-radius: 3px;\n border-radius: 3px;\n\n transition: all 0.2s linear;\n /*estilo do botão submit no hover */\n &:hover{\n background: #6bcff9;\n }\n }\n }\n`;\n\nexport const MainNav = styled.div`\n ul{\n border-top: solid 1px ${grayShine};\n }\n\n li{\n border-bottom: solid 1px ${grayShine};\n }\n\n a{\n padding: 1.1em 0;\n color: ${white};\n font: 400 1.125em ${sans};\n text-align: center;\n transform: lowercase;\n\n &:hover{\n color: #fff;\n }\n }\n`;\n\nexport const MainList = styled.ul`\n list-style: none;\n padding: 0;\n margin: 0;\n\n li{\n position: relative;\n overflow: hidden;\n }\n\n a{\n text-decoration: none;\n display: block;\n position: relative;\n z-index: 1;\n transition: .35s ease color;\n\n &:before{\n content: '';\n display: block;\n z-index: -1;\n position: absolute;\n left: -100%; top: 0;\n width: 100%; height: 100%;\n border-right: solid 5px ${orange};\n background: ${grayShine};\n transition: .35s ease left;\n }\n\n &:focus{\n background: ${selected};\n color: #000;\n }\n\n &:active{\n &:focus{\n left: 0;\n }\n }\n &.is-current,\n &:hover{\n &:before{\n left: 0;\n }\n }\n }\n`;\n\nexport const SubList = styled.ul`\n overflow: hidden;\n list-style: none;\n padding: 0;\n margin: 0;\n\n li{\n position: relative;\n overflow: hidden;\n }\n\n a{\n text-decoration: none;\n display: block;\n position: relative;\n z-index: 1;\n transition: .35s ease color;\n\n &:before{\n content: '';\n display: block;\n z-index: -1;\n position: absolute;\n left: -100%; top: 0;\n width: 100%; height: 100%;\n border-right: solid 5px ${orange};\n background: ${grayShine};\n transition: .35s ease left;\n }\n\n &.is-current,\n &:hover{\n\n &:before{\n left: 0;\n }\n }\n }\n\n li{\n float: left;\n }\n\n border-bottom: solid 1px ${grayShine};\n\n li{\n width: 25%;\n border-left: solid 1px ${grayShine};\n &:first-child{ border: none; }\n }\n\n a{\n display: block;\n height: 5.5em;\n text-align: center;\n color: ${whiteOff};\n font: 0.75em/5.5em ${sans};\n &:hover{\n color: ${white};\n }\n }\n`;\n// FONTS\n// $sans: 'Source Sans Pro', Helvetica, Arial, sans-serif;\n\n// COLORS\n// $orange: ${orange};\n// $gray: #35302D;\n// $gray-shine: ${grayShine};\n// $white-off: #DFDBD9;\n\n// REUSABLE STYLES\n\n// SOCIAL LINKS\n","import React from 'react';\nimport VerticalEllipsis from '../verticalEllipsis';\nimport {\n Logo, Sidenav, MainNav, MainList,\n} from './styles';\n\ntype SidebarProps = {\n title: string;\n menuClick: React.MouseEventHandler;\n Child: React.ReactNode;\n};\n\nconst Sidebar: React.FC = ({\n title, menuClick, Child,\n}: SidebarProps) => (\n \n \n \n {title}\n \n \n \n
\n \n \n {Child}\n \n \n
\n
\n);\n\nexport default Sidebar;\n","import { ValidationError } from 'yup';\n\ninterface Errors {\n [key: string]: string;\n}\n\nexport default function getValidationErrors(err: ValidationError): Errors {\n const validationErrors: Errors = {};\n\n err.inner.forEach((error) => {\n validationErrors[String(error.path)] = error.message;\n });\n\n return validationErrors;\n}\n","import styled from 'styled-components';\nimport { shade } from 'polished';\n\nconst buttonBlue = '#02b4ff';\n\nexport const Container = styled.button`\n display: flex;\n justify-content: center;\n align-items: center;\n align-items: center;\n cursor: pointer;\n background: ${buttonBlue};\n padding: 10px;\n color: #fff;\n border: 1px solid transparent;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n transition: {background-color: 0.2s};\n outline: none;\n &:hover{\n background: ${shade(0.1, buttonBlue)};\n }\n outline: transparent;\n`;\n","import React, { ButtonHTMLAttributes } from 'react';\nimport { Container } from './styles';\n\ntype ButtonProps = ButtonHTMLAttributes\n\nconst Bluebutton: React.FC = ({ children, ...rest }) => (\n \n {children}\n \n);\n\nexport default Bluebutton;\n","import React, {\n createContext, useCallback, useContext, useState,\n} from 'react';\nimport jwtDecode, { JwtPayload } from 'jwt-decode';\nimport { useToasts } from 'react-toast-notifications';\nimport { wsfiorilli_ava559, apiGestor } from '../services/fiorilliApi';\n\ninterface User {\n userName: string;\n email: string;\n personCode: string;\n userCode: string;\n codCliRep: string;\n isCliRep: string;\n key: string;\n cnpj: string;\n}\n\ninterface AuthState {\n token: string;\n userInfo: User;\n}\n\ninterface SignInCreadentials {\n email: string;\n password: string;\n}\n\ninterface AuthContextData {\n userInfo: User;\n signIn(creadentials: SignInCreadentials): Promise;\n signOut(): void;\n}\n\nconst AuthContext = createContext({} as AuthContextData);\n\nexport const AuthProvider: React.FC = ({ children }) => {\n const { addToast } = useToasts();\n const [data, setData] = useState(() => {\n const token = localStorage.getItem('@TOKEN_KEY') as string;\n const userName = localStorage.getItem('@USER_NAME') as string;\n const email = localStorage.getItem('@EMAIL') as string;\n const personCode = localStorage.getItem('@PERSON_CODE') as string;\n const userCode = localStorage.getItem('@USER_CODE') as string;\n const codCliRep = localStorage.getItem('@COD_CLI_REP') as string;\n const isCliRep = localStorage.getItem('@IS_CLI_REP') as string;\n const key = localStorage.getItem('@KEY') as string;\n const cnpj = localStorage.getItem('@CNPJ') as string;\n if (token) {\n return {\n token,\n userInfo: {\n userName,\n email,\n personCode,\n userCode,\n codCliRep,\n isCliRep,\n key,\n cnpj,\n },\n };\n }\n\n return {} as AuthState;\n });\n\n const signIn = useCallback(async ({ email, password }) => {\n const reqData = JSON.stringify({\n email,\n senha: password,\n });\n\n const response = await apiGestor.post('autenticacao/aberturaatendimentos', reqData);\n const { token } = response.data;\n const decoded = jwtDecode(token);\n const {\n userName, personCode, codCliRep, isCliRep, cnpj,\n userCode, key,\n } = Object(decoded);\n if (String(isCliRep) !== 'REP') {\n const validKey = await ValidateClientKey(String(cnpj), key);\n if (!validKey) {\n addToast('A chave de validade esta expirada!', {\n appearance: 'error',\n autoDismiss: true,\n });\n setData({} as AuthState);\n return;\n }\n }\n localStorage.setItem('@TOKEN_KEY', token);\n localStorage.setItem('@USER_NAME', userName);\n localStorage.setItem('@EMAIL', email);\n localStorage.setItem('@PERSON_CODE', personCode);\n localStorage.setItem('@USER_CODE', userCode);\n localStorage.setItem('@COD_CLI_REP', codCliRep);\n localStorage.setItem('@IS_CLI_REP', isCliRep);\n localStorage.setItem('@KEY', key);\n localStorage.setItem('@CNPJ', cnpj);\n setData({\n token,\n userInfo: {\n userName,\n email,\n personCode,\n userCode,\n codCliRep,\n isCliRep,\n key,\n cnpj,\n },\n });\n }, [addToast]);\n\n const signOut = useCallback(() => {\n localStorage.removeItem('@TOKEN_KEY');\n localStorage.removeItem('@USER_NAME');\n localStorage.removeItem('@EMAIL');\n localStorage.removeItem('@PERSON_CODE');\n localStorage.removeItem('@USER_CODE');\n localStorage.removeItem('@COD_CLI_REP');\n localStorage.removeItem('@IS_CLI_REP');\n localStorage.removeItem('@KEY');\n localStorage.removeItem('@CNPJ');\n setData({} as AuthState);\n }, []);\n\n async function ValidateClientKey(cnpj: string, userKey: string): Promise {\n const response = await wsfiorilli_ava559.get(`getCliente/${cnpj}`);\n const receivedKey = response.data.result.map(\n (keys: { CHAVE: string; }) => keys.CHAVE,\n );\n const receivedType = response.data.result.map(\n (types: { TIPO: string; }) => types.TIPO,\n );\n console.log();\n if ((receivedKey[0] === userKey) || (receivedType[0] !== '01 - CLIENTE')) {\n return true;\n } else {\n return false;\n }\n }\n\n return (\n \n {children}\n \n );\n};\n\nexport function useAuth(): AuthContextData {\n const context = useContext(AuthContext);\n\n if (!context) {\n throw new Error('useAuth must be used within an AuthProvider');\n }\n\n return context;\n}\n","import styled from 'styled-components';\nimport { shade } from 'polished';\n\nconst buttonGreen = '#69ea69';\nconst textButtonGreen = '#037903';\n\nexport const ModalBody = styled.div`\n width: 100%;\n flex: 1 auto;\n display: flex;\n flex-grow: 1;\n p{\n margin: 0px 0px 8px !important;\n }\n`;\n\nexport const ModalTabsBody = styled.div`\n width: 100%;\n flex: 1 auto;\n display: flex;\n /*Configura a tab e os filho dela até chegar na minhas divs de fields e botões*/\n div:nth-child(0){\n display: flex;\n flex: 1 auto;\n p{\n width: 100%;\n display: flex;\n flex: 1 auto;\n flex-direction: column;\n }\n }\n`;\n\nexport const ModalFields = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n`;\n\nexport const ModalButtons = styled.div`\n width: 100%;\n display: flex;\n height: 30px;\n flex: none !important;\n .doneButton{\n color: ${textButtonGreen};\n background: ${buttonGreen};\n &:hover{\n background: ${shade(0.1, buttonGreen)};\n }\n }\n`;\n\nexport const EditorButton = styled.button`\n background: transparent;\n border: none;\n outline: transparent;\n margin: 3px 0px;\n &:hover{\n cursor: pointer;\n background: #d7d7d7;\n }\n &:focus{\n background: #ccc;\n }\n`;\n\nexport const DivDescrPages = styled.div`\n margin: 30px 0px;\n font-size: 13px;\n`;\n\nexport const InputFields = styled.input`\n width: 95%;\n margin-right: 20px;\n border: 1px solid #636363b3;\n height: 28px;\n border-radius: 5px;\n outline: transparent;\n`;\n","import styled from 'styled-components';\nimport { shade } from 'polished';\n\nexport const ChangePasswordDiv = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n top: 0px;\n width: 100%;\n form{\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n\n\n a {\n color: #808080;\n display: block;\n margin-top: 18px;\n text-decoration: none;\n transition: {color: 0.2s};\n &:hover {\n color: ${shade(0.2, '#808080')};\n }\n }\n\n h1{\n font-size: 48px;\n color: #066a75;\n padding: 2px 0 10px 0;\n font-family: 'Roboto', sans-serif;\n font-weight: bold;\n text-align: center;\n padding-bottom: 30px;\n &:after{\n content: ' ';\n display: block;\n width: 100%;\n height: 2px;\n margin-top: 10px;\n background: -webkit-linear-gradient(left, rgba(147,184,189,0) 0%,rgba(147,184,189,0.8) 20%,rgba(147,184,189,1) 53%,rgba(147,184,189,0.8) 79%,rgba(147,184,189,0) 100%);\n background: linear-gradient(left, rgba(147,184,189,0) 0%,rgba(147,184,189,0.8) 20%,rgba(147,184,189,1) 53%,rgba(147,184,189,0.8) 79%,rgba(147,184,189,0) 100%);\n }\n }\n\n /* placeholder */\n ::-webkit-input-placeholder {\n color: #bebcbc;\n font-style: italic;\n }\n\n input:-moz-placeholder,\n textarea:-moz-placeholder{\n color: #bebcbc;\n font-style: italic;\n }\n }\n`;\n","import styled from 'styled-components';\n\nexport const Container = styled.div`\n position: relative;\n span{\n width: 160px;\n background: #ff9000;\n padding: 8px;\n border-radius: 4px;\n font-size: 14px;\n font-weight: 500;\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.4s;\n position: absolute;\n bottom: calc(100% + 12px);\n left: 50px;\n transform: translateX(calc(-50% - 12px));\n color: #312e38;\n &::before {\n content: '';\n border-style: solid;\n border-color: #ff9000 transparent;\n border-width: 6px 6px 0px 6px;\n top: 100%;\n position: absolute;\n left: 50px;\n transform: translateX(-50%);\n }\n }\n &:hover span{\n opacity: 1;\n visibility: visible;\n }\n`;\n","import { Container } from './styles';\n\ninterface TooltipProps {\n title: string;\n className?: string;\n}\n\nconst Tooltip: React.FC = ({ title, className, children }) => (\n \n {children}\n {title}\n \n);\n\nexport default Tooltip;\n","import styled, { css } from 'styled-components';\n\nimport Tooltip from '../Tooltip/index';\n\ninterface ContainerProps {\n isFocused: boolean;\n isFilled: boolean;\n isErrored: boolean;\n}\n\nexport const Error = styled(Tooltip)`\n height: 20px;\n margin-left: 16px;\n svg {\n margin: 0;\n }\n span {\n background: #c53030;\n color: #fff;\n &::before {\n border-color: #c53030 transparent;\n }\n }\n`;\n\nexport const Container = styled.div`\n border-radius: 10px;\n border: 2px solid #b2b2b2;\n padding: 16px;\n width: 90%;\n display: flex;\n align-items: center;\n color: #666360;\n & + div {\n margin-top: 12px;\n }\n ${(props) => props.isErrored\n && css`\n border-color: #c53030;\n `}\n ${(props) => props.isFocused\n && css`\n color: #ff9000;\n border-color: #ff9000;\n `}\n ${(props) => props.isFilled\n && css`\n color: #ff9000;\n `}\n input {\n background: transparent;\n border: 0;\n flex: 1;\n background: transparent;\n outline: none;\n &::placeholder {\n color: #666360;\n }\n }\n svg {\n margin-right: 16px;\n }\n`;\n","import React, {\n InputHTMLAttributes, useCallback, useEffect, useRef, useState,\n} from 'react';\nimport { IconBaseProps } from 'react-icons';\nimport { FiAlertCircle } from 'react-icons/fi';\nimport { useField } from '@unform/core';\n\nimport { Container, Error } from './styles';\n\ninterface InputProps extends InputHTMLAttributes{\n name: string;\n icon?: React.ComponentType;\n}\n\nconst Input: React.FC = ({ name, icon: Icon, ...rest }) => {\n const inputRef = useRef(null);\n const [isFocused, setIsFocused] = useState(false);\n const [isFilled, setIsFilled] = useState(false);\n\n const {\n fieldName, defaultValue, error, registerField,\n } = useField(name);\n\n const handleInputFocus = useCallback(() => {\n setIsFocused(true);\n }, []);\n\n const handleInputBlur = useCallback(() => {\n setIsFocused(false);\n setIsFilled(!!inputRef.current?.value);\n }, []);\n\n useEffect(() => {\n registerField({\n name: fieldName,\n ref: inputRef.current,\n path: 'value',\n });\n }, [fieldName, registerField]);\n\n return (\n \n {Icon && }\n \n {error && (\n \n \n \n )}\n \n );\n};\n\nexport default Input;\n","import React, { useState, useRef, useCallback } from 'react';\nimport { useToasts } from 'react-toast-notifications';\nimport { FormHandles } from '@unform/core';\nimport { Form } from '@unform/web';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { FiLoader, FiLock } from 'react-icons/fi';\nimport * as Yup from 'yup';\nimport getValidationErrors from '../../commons/utils/getValidationErrors';\nimport { apiGestor } from '../../services/fiorilliApi';\nimport BlueButton from '../blueButton';\nimport { useAuth } from '../../hooks/Auth';\nimport {\n ModalBody, ModalFields,\n} from '../createAttendance/styles';\nimport { ChangePasswordDiv } from './styles';\nimport Input from \"../Input/index\";\n\ntype ChangePasswordProps = {\n parentCallback: Function;\n};\n\ninterface ResetPasswordFormData {\n password: string;\n password_confirmation: string;\n}\n\nconst ChangePassword: React.FC = ({ parentCallback }) => {\n const formRef = useRef(null);\n const { addToast } = useToasts();\n const { userInfo } = useAuth();\n const [loading, setLoading] = useState(false);\n const [modalStyle] = useState(getModalStyle);\n\n const onTrigger = useCallback(() => {\n parentCallback();\n }, [parentCallback]);\n\n // #region Funções do modal\n\n function getModalStyle() {\n const top = '50';\n const left = '50';\n\n return {\n top: `${top}%`,\n left: `${left}%`,\n transform: `translate(-${top}%, -${left}%)`,\n };\n }\n\n const useStyles = makeStyles((theme) => ({\n paper: {\n position: 'absolute',\n width: 320,\n height: 180,\n backgroundColor: theme.palette.background.paper,\n border: 'none',\n borderRadius: '5px',\n boxShadow: theme.shadows[5],\n padding: theme.spacing(2, 4, 3),\n display: 'flex',\n flexDirection: 'column',\n },\n }));\n\n // #endregion\n\n const handleSubmit = useCallback(async (data: ResetPasswordFormData) => {\n try {\n setLoading(true);\n formRef.current?.setErrors({});\n const schema = Yup.object().shape({\n password: Yup.string().required('Senha obrigatória'),\n password_confirmation: Yup.string()\n .oneOf([Yup.ref('password'), null], 'Confirmação incorreta'),\n });\n\n await schema.validate(data, {\n abortEarly: false,\n });\n\n const { password } = data;\n\n await apiGestor.put('usuariosexternos', {\n codigo: userInfo.userCode,\n cnpj: userInfo.cnpj,\n chaveValidade: userInfo.key,\n codigoPessoa: userInfo.personCode,\n senha: password,\n });\n\n addToast('Sua senha foi alterada com sucesso!', {\n appearance: 'success',\n autoDismiss: true,\n });\n\n onTrigger();\n } catch (err) {\n if (err instanceof Yup.ValidationError) {\n const errors = getValidationErrors(err);\n formRef.current?.setErrors(errors);\n return;\n }\n addToast('Não foi posível alterar a senha!', {\n appearance: 'error',\n autoDismiss: true,\n });\n } finally {\n setLoading(false);\n }\n }, [userInfo, onTrigger, addToast]);\n\n const classes = useStyles();\n\n return (\n
\n \n \n \n
\n \n \n \n {loading && (\n \n )}\n Alterar senha\n \n \n
\n
\n
\n
\n );\n};\n\nexport default ChangePassword;\n","import styled from 'styled-components';\n\nconst gray = '#73737396';\n\nexport const Bar = styled.header`\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: ${gray};\n padding: 0.85em 0;\n height: 35px;\n padding-left: 2.5em;\n`;\n\nexport const LogoImg = styled.img`\n max-width: 150px;\n margin-left: -20px;\n cursor: pointer;\n`;\n\nexport const UserImg = styled.img`\n max-width: 40px;\n max-height: 40px;\n cursor: pointer;\n`;\n\nexport const RigthDiv = styled.div`\n display: flex;\n align-items: center;\n margin-right: 10px;\n`;\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAKT3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVhZkuO4DvznKeYI3JfjcEPE3OAdfxIgJUveqrrjlaNMW6K4IBOJpNX837+k/sGfy8krH1KOJUaNP198sRUfsl5/qzXay7v8+X0L32/X1XnD4pJD69bXOHf/iuvh8UDaD5h2v65S3+PkPdC+cQzoeGaLD7tf3gM5u66b/V2V/Vz1l+3sf5dkiLPz83efEIwRcNFZZaczTuOdH7SO/42raPndOEyM9yBXHN69C+9jp86PT8E7Pz3FTtd93d1DoXTcHeJTjPZ1E97HTiJ0XZF5zHy7geBOff27xI5oZKK5dld9RKSi2ps6tiKf0LEhlE4ei3gl/Ad8TvIqeGVssSPoAxM2vLoyxVhEm4w3w1RDZkrbTccSvZ02obW2AwO+ll2yxXYBw/PLkE2uuKFcBk4dqDlctudajMxbZL5uMmYeBj2twWAGT7y81LuLf/M6ByJi6hqj8xkrrMsyAbEMRo7f0QuAGNoxDRJfeakLb/QFWAcEg4Q5Y4NVtzVEC+bBLSc4O/QL2qudziaNPQBChLkDFmMcENARxDbR6GRtMgZxzMCnYuXWeduAgAnBDqMI2DgXAU62PDeeSUb62mDXZUgLp4aLLgGa4irA8j6AP8lncKgGF7wKIcSQQg4l1OiijyHGmCJrVE0u+RRSTCnlVFLNLvsccswp51xyLbY4SFgosSRVcimlVkxaMXTF0xU9am22ueZbaLGllltptYM+3ffQY08999LrsMMNpP+II6mRRxl1mgkqTT/DjDPNPMusB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pdTTqqq+hZDAQ8BLKbc450cFgAeAOc75kS6+3mpmvnmvI38U67UQ4i6p0UwopZ6YlDCqHsx4Vs2Wln0y4Hd/H0OE9q0aVxNGYWOe0j8JLXjjgBvmiimMD13rAfdwqBMKfnV1VQWMCd1wrGhf3VTjEv1+v78es84zxnjAmJit5l6v1xMuBdHJMSJ6nTrnc4/lnL/1UoClt8/d3uawtm1p/EOApfjtorm2a0sD7rClbTeYgHZd1w9jUmAHDTfG2DMjARb5b6L5tmnsDE1dX8SbnJJsUWPxSwH9Di/aYlrbFPsDGxaTApbx99hyCAFLqWYPiWSq6NuwmAhYSOmBD6DE4I1YZgyD5lN78RvYuBY3A3ArFhMBs7m8yQjUGwvHP24mBVwjwzs/2w4vkzquQwi4SkWAz7b29v8mJOMqhIDL2E4wZj9/e3wCIi5DasD5NMEnftZ5CAGDEsAneubAmwAiqksBH/vsm5ubr2O3y6btsJTyh08dyAk+YqW4EEI8GKsAy8vXw9LAB8x1aHhZYm6ElFLvm97o2DAYCaiqaoBfJzOKib7nnF2NwUyAJQ0OGiyAA5P8nfYC+kxOt4Hguy7nibhjHr0sSf4uc5t8HkmAKQ2qquoD2G9Q9Pe1z0b5e22H9YGk0waAP3U5PDWSANsHWX0gaVgw+KH2ES7RH6kAy4eSM5T9tWgHhhNjo7DdI8B2xFQI8QXAdoHgt7Vv4+U+Aht3kcmYpXGjkHQYAtiwLXlB5y2IyPbTIqITmp6daB+Mfsb00S4kgIg6UwDfcfFNKRWnL0cCQETrRHQ8AeDHei4nv5KYBwkgoq1MRBzrZyMl+GwXJgAkuzAB4COA7z4BS3phwqNPGGctAF5XZgCUdWUmAQnZLWSp46ETlUQCEQVf4ft/cTJlFJoEPDkBkyCj6MvTucjIfT33J4qJJcERVsBgAAAAAElFTkSuQmCC\"","import React, { useState } from 'react';\n\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Modal from '@material-ui/core/Modal';\nimport Fade from '@material-ui/core/Fade';\n\nimport { FiLogOut, FiSettings } from 'react-icons/fi';\nimport ChangePassword from '../changePassword';\nimport VerticalEllipsis from '../verticalEllipsis';\nimport {\n Bar, LogoImg, RigthDiv, UserImg,\n} from './styles';\nimport User from '../../assets/images/user.png';\nimport { useAuth } from '../../hooks/Auth';\n\nconst TopBar: React.FC = () => {\n const { userInfo, signOut } = useAuth();\n const [openChangePasswordModal, setOpenChangePasswordModal] = useState(false);\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n\n const clickLogo = () => {\n window.open('https://fiorilli.com.br/', '_blank');\n };\n\n function OpenMenu() {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n document.getElementById('SideNav').style.display = 'flex';\n }\n\n // #region Handles\n\n const handleMenuClick = (event: React.MouseEvent) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleLogout = () => {\n setAnchorEl(null);\n signOut();\n window.location.reload();\n };\n\n const handleChangePassword = () => {\n setAnchorEl(null);\n setOpenChangePasswordModal(true);\n };\n\n const handleChangePasswordCallback = () => {\n setOpenChangePasswordModal(false);\n };\n\n // #endregion\n\n return (\n <>\n \n
\n \n ☰\n
\n \n \n \n \n {`Olá, ${userInfo.userName}`}\n \n \n \n \n \n \n \n Alterar senha\n \n \n \n Logout\n \n \n
\n setOpenChangePasswordModal(false)}\n aria-labelledby=\"simple-modal-title\"\n aria-describedby=\"simple-modal-description\"\n >\n \n \n \n );\n};\n\nexport default TopBar;\n","export default __webpack_public_path__ + \"static/media/supportUser.174ab272.png\";","import styled from 'styled-components';\n\nexport const RemoveButton = styled.button`\n border: none;\n background-color: transparent;\n color: #ccc;\n cursor: pointer;\n margin: 0px 0px 25px 0px;\n outline: none;\n &:hover{\n color: #828282;\n }\n`;\n","import React, { ChangeEventHandler } from 'react';\nimport { FiPaperclip } from 'react-icons/fi';\nimport { RemoveButton } from './styles';\nimport '../../assets/styles/importImages.css';\n\ntype ImportFilesProps = {\n previewImages: string[];\n title: string;\n onClick: (image: string) => void;\n onChange: ChangeEventHandler;\n}\n\nconst ImportFiles: React.FC = ({\n previewImages, title, onClick, onChange,\n}: ImportFilesProps) => (\n
\n \n\n
\n {previewImages.map((image) => (\n \n \n { onClick(image); }}\n >\n {' '}\n X\n \n
\n ))}\n \n
\n \n \n);\n\nexport default ImportFiles;\n","/* eslint-disable no-return-assign */\n/* eslint-disable react/require-default-props */\n/* eslint-disable react/forbid-prop-types */\nimport React, {\n useState, ChangeEvent, useRef, useEffect, useCallback,\n} from 'react';\nimport { useToasts } from 'react-toast-notifications';\n\nimport { makeStyles, createStyles } from '@material-ui/core/styles';\nimport PropTypes from 'prop-types';\nimport AppBar from '@material-ui/core/AppBar';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\nimport {\n DataGrid, RowId, ColDef,\n} from '@material-ui/data-grid';\n\nimport JoditEditor from 'jodit-react';\n\nimport { AxiosResponse } from 'axios';\nimport { FiLoader } from 'react-icons/fi';\nimport BlueButton from '../blueButton';\nimport ImportFiles from '../importFiles';\nimport { useAuth } from '../../hooks/Auth';\nimport { apiGestor, wsfiorilli_ava559 } from '../../services/fiorilliApi';\nimport {\n ModalBody, ModalFields, ModalButtons, ModalTabsBody, DivDescrPages,\n} from './styles';\n\nexport interface DataRowModel {\n id: RowId;\n service: string;\n}\n\nexport interface GridData {\n columns: ColDef[];\n rows: DataRowModel[];\n}\n\ntype CreateAttendanceProps = {\n parentCallback: Function;\n};\n\nconst CreateAttendance: React.FC = (\n { parentCallback }: CreateAttendanceProps,\n) => {\n const { addToast } = useToasts();\n const { userInfo } = useAuth();\n const editor = useRef(null);\n const service = useRef('');\n const richEditorValue = useRef('');\n const loadingGrid = useRef(true);\n const [tabValue, setTabValue] = useState(0);\n const [images, setImages] = useState([]);\n const [previewImages, setPreviewImages] = useState([]);\n const [gridData, setGridData] = useState({ columns: [], rows: [] });\n const fieldsCodes = useRef([]);\n const [extraFieldsResponse, setExtraFieldsResponse] = useState();\n const inputRef = useRef([]);\n const inputValues = useRef([]);\n const [refresh, setRefresh] = useState(0);\n const [loading, setLoading] = useState(false);\n\n // getModalStyle is not a pure function, we roll the style only on the first render\n const [modalStyle] = useState(getModalStyle);\n\n const onTrigger = useCallback(() => {\n parentCallback();\n }, [parentCallback]);\n\n // Atualiza o botão de próximo quando chega no último passo.\n useEffect(() => {\n const nextButton = document.getElementById('nextButton');\n if (tabValue === 2) {\n if (nextButton) {\n nextButton.innerHTML = 'Concluir';\n nextButton.classList.add('doneButton');\n }\n } else if (nextButton) {\n nextButton.innerHTML = 'Próximo';\n nextButton.classList.remove('doneButton');\n }\n }, [tabValue]);\n\n // #region Funções do modal\n\n function getModalStyle() {\n const top = '50';\n const left = '50';\n return {\n top: `${top}%`,\n left: `${left}%`,\n transform: `translate(-${top}%, -${left}%)`,\n };\n }\n\n const useStyles = makeStyles((theme) => ({\n paper: {\n position: 'absolute',\n width: 800,\n height: 450,\n backgroundColor: theme.palette.background.paper,\n borderRadius: '5px',\n border: 'none',\n boxShadow: theme.shadows[5],\n padding: theme.spacing(2, 4, 3),\n display: 'flex',\n },\n }));\n\n // #endregion\n\n // #region Funcoes das tabs\n function TabPanel(props: { [x: string]: any; children: any; value: any; index: any; }) {\n const {\n children, value, index, ...other\n } = props;\n\n return (\n