{"version":3,"sources":["assets/images/header_logo.png","components/VoucherDetailsModal/index.tsx","services/api.ts","util/baseURL.ts","services/Accept.ts","components/ResumeCardInfo/index.tsx","pages/Accept/Step1/index.tsx","util/phoneMask.tsx","util/cepMask.tsx","util/socialRevenueMask.tsx","pages/Accept/Step2/index.tsx","pages/Accept/Step3/index.tsx","pages/Accept/Step4/index.tsx","components/SingleSelectionPackage/index.tsx","components/QuantityPackage/index.tsx","pages/Accept/Step5/index.tsx","components/Icons.tsx","pages/Accept/Step6/index.tsx","pages/Accept/index.tsx","routes/index.tsx","I18n/index.tsx","App.tsx","index.tsx"],"names":["module","exports","VoucherDetailsModal","visible","handleOk","voucher","t","useTranslation","LicenseDiscount","tiflux_license_discount","xs","sm","md","SplashtopDiscount","splashtop_discount","UniqueDiscount","one_time_pack","pack_discounts","filter","p","one_time","length","map","index","key","package_item_name","discount","WhatsAppDiscount","whatsapp_discount","PlatformChatDiscount","platform_chat_discount","P2PDiscount","ti_peer_to_peer_discount","PackageDiscount","package_item_discount","disc","type_packages","title","onOk","onCancel","cancelButtonProps","style","display","name","description","discount_months","days","expiration_date","format","api","axios","create","baseURL","getPrice","a","get","findAddress","cep","findVoucher","createConfirmation","confirmation","token","post","getPackages","Search","Input","ResumeCardInfo","totalValue","setVoucher","totalDiscount","price","backAction","prevStep","submitText","current","loading","setConfirmation","setTotalDiscount","packageOptions","packages","useState","visibleVoucherDetailsModal","setVisibleVoucherDetailsModal","voucherLoading","setVoucherLoading","voucherError","setVoucherError","totalOneTimeValue","pack","reduce","totalOneTime","arr","value","totalManyTimeValue","totalMany","DiscountRow","useMemo","textAlign","toLocaleString","undefined","minimumFractionDigits","maximumFractionDigits","UniqueDiscountRow","oneTimeDiscount","forEach","itemDisc","find","id","package_item_id","package_id","itemPackage","bordered","className","actions","extra","onClick","type","size","tiflux_license","platform_chat","whatsapp","ti_peer_to_peer","splashtop","tiflux_license_user_value","whatsapp_user_value","splashtop_user_value","item","select_type","amount","marginLeft","marginRight","Item","label","autoComplete","disabled","voucher_name","placeholder","onSearch","then","data","vv","voucher_id","discountCalc","packDiscount","active","error","catch","e","console","enterButton","width","justify","color","padding","valuePropName","rules","validator","_","Promise","resolve","reject","onChange","according_with_values","target","checked","accept_terms","href","icon","QuestionCircleOutlined","privacity_terms","borderWidth","marginTop","LoadingOutlined","htmlType","block","Meta","Card","Step1","nextStep","setTotalValue","Form","useForm","form","useEffect","total","totalDisc","setFieldsValue","onFinish","gutter","alignSelf","paddingRight","initialValue","noStyle","min","precision","paddingLeft","fontSize","placement","max","log","rgex","phoneMask","phoneNumber","trim","replace","test","Option","Select","Step2","cepStatus","setCepStatus","cepHelp","setCepHelp","telephoneStatus","setTelephoneStatus","telephoneHelp","setTelephoneHelp","socialRevenueStatus","setSocialRevenueStatus","socialRevenueHelp","setSocialRevenueHelp","cepLoading","setCepLoading","validateFields","includes","notification","message","layout","initialValues","marginBottom","borderBottomWidth","required","onBlur","organization_name","social_name","help","validateStatus","ev","socialRevenueNumber","newSocialRevenueNumber","socialRevenueMask","social_revenue","maxLength","field_name","field_value","changePhone","TextArea","observation","borderTopWidth","street","address","city","state","neighborhood","cepNumber","cepMask","showSearch","optionFilterProp","filterOption","number","complement","timeZone","Intl","DateTimeFormat","resolvedOptions","moments","tz","setDefault","Step3","location","useLocation","queryString","parse","search","setLoading","showNotificationError","confirmPurchase","organization_id","form_of_payment","organization_telephone","subscriber_name","subscriber_email","financial_name","financial_email","financial_telephone","inventory_monitoring_remote","monitoring_advanced","whitelabel","tiflux_api","attendance_name","ticket_feedback","moment","add","expiration_date_unique","form_of_payment_unique","recurrent_payment_condition","resetFields","response","status","message_id","float","Group","disabledDate","date","today","startOf","maxDate","endOf","unique_payment_text","rows","tiflux_feedback","Step4","newAutoBuy","subTitle","SingleSelectionPackage","packet","setPackageOptions","amountOptions","package_items","Text","option","is_client","direction","pack_items","packageItem","whiteSpace","options","handleChangeItem","strong","position","right","measure","Paragraph","QuantityPackage","requiredField","parseFloat","Number","toFixed","lasVal","filteredPacks","headStyle","border","v","some","validateRequired","validateTrigger","lg","paddingBottom","align","fontWeight","Step5","LaptopUser","height","viewBox","fill","xmlns","d","Step6","Header","Layout","Content","Step","Steps","Accept","setCurrent","inventory_monitoring_remote_user_value","monitoring_advanced_user_value","whitelabel_value","tiflux_api_value","setPrices","setPackages","loadPackages","organization","organization_status","organization_token","max_monitoring","billing_name","billing_email","billing_phone","flex","alt","src","HeaderLogo","paddingTop","minHeight","ShoppingCartOutlined","CodeSandboxOutlined","Icon","component","CheckCircleOutlined","DollarCircleOutlined","SmileOutlined","AcceptRoutes","path","render","Routes","basename","resources","en","translation","pt_BR","i18n","use","initReactI18next","init","lng","navigator","language","fallbackLng","interpolation","escapeValue","App","locale","ReactDOM","document","getElementById"],"mappings":"+GAAAA,EAAOC,QAAU,kqD,ileC+OFC,EApOiD,SAAC,GAI1D,IAHLC,EAGI,EAHJA,QACAC,EAEI,EAFJA,SACAC,EACI,EADJA,QAEQC,EAAMC,cAAND,EAEFE,EAAkB,WACtB,OACEH,EAAQI,yBACRJ,EAAQI,wBAA0B,EAGhC,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAKC,GAAI,GAAIC,GAAI,GAAIC,GAAI,IACvB,2BACE,gCACGN,EAAE,YADL,IACmBA,EAAE,gBADrB,KAEU,IACTD,EAAQI,wBAJX,OAUC,sCAILI,EAAoB,WACxB,OAAIR,EAAQS,oBAAsBT,EAAQS,mBAAqB,EAE3D,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAKJ,GAAI,GAAIC,GAAI,GAAIC,GAAI,IACvB,2BACE,gCACGN,EAAE,YADL,IACmBA,EAAE,aADrB,KAEU,IACTD,EAAQS,mBAJX,OAUC,sCAILC,EAAiB,WAAO,IAAD,EACrBC,EAAa,OAAGX,QAAH,IAAGA,GAAH,UAAGA,EAASY,sBAAZ,aAAG,EAAyBC,QAAO,SAACC,GAAD,OAAOA,EAAEC,YAC/D,OACE,oCACGJ,GAAiBA,EAAcK,OAAS,E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AC,GAAD,QCANC,IAASnB,OAAO,kBAAC,GAAD,MAASoB,SAASC,eAAe,W","file":"static/js/main.0eda2aa6.chunk.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR5SURBVHgB7VrhdZtADBaJ277+Y4PSCZJOEDJB6QbOBLUnMJnAzgRxJjAb2J0g3sBkgtJfTds0VwmEfSYS5uzm1Y353rsH3OmO48TpkwQe7AhjTIiHARY6plguPc8bO/T9iCXA4nN1huUKx5ixTJfb14DtMbRYBy2okdHb0M/HMjU6YktWlIMXiiPYDQPH+lwZeLiFYke1qKBTrWAzUsUcTUQm1Acgwwcdg5p+B481haAyAjxMBTmqlxQyB3lxU6Gu3B215uzQ0YHdcAmF6fGFegmhUp9xnzm0WIF2iEKy7zb0mWBZMAGHNbKxMn63ps/0kEi9ukN8cARyS4qHT7Ab2p3BqHpZn+Hf4Cu0yNGxfP4z0G18H+WWpF4GZewEdAX5mRLYnTUZ3+6/CU3mIPQhx6JqDVIKaE0E/qPleOAbO/ISyH5HEONldpzAaMN9CRmONQK3+eZzALMFrMG1wDC2ZKbGHRv7u8xBWJSFIL/0LnHxR48RGC4LVNKkvMbzoTXO2OjoCff1lXuXCHYNDF8kcFFiWLnuAWo/KtvwvPcrWlqSHiguPmKIC3xarQM9BqOUU9oqRACZqIfCUZFiLzgGuCbTxsHyRc1Q5H3mppGV01XkZiUNtApR8DqBudHjKdo113TCPNXX5IDTSChHnuSVIJOCpVRye8dW4ymXKhJQ3pYGoIe64XPK7EaCDG39b9b1XrjBRODIGzTnUGiOkGt6JEMEjjtAk+th2x3JYKHzk4rcJYcOOTp4sdQOE6GkkB7K3cEWsD0dU3gYkkKSbcd/bnhoukyRDA2EtsH3CJK3yfItJzkplhvgsye88LbcVfVTRWuyNiB3eXWe8N9g7o/5JAU9QKbFn+TjFXJk4sjNfuKJtQppgFcJzIxs/wkBrHhiBrrcKe6SIcuN8fBBEmoV0hDIFfQ2i9xGrvBDtDTFMegcSBwS0onyOaNViAtM4dyIOC4clnKhVZcZyGUuuFREq5CGQJ4IvOLtl5DeWy4y84TqMgO7zBIOVSHOWW0jf7jLQaRPnhanRvIELeeytB0VGuW/g5egkFSpFxOZHDE7KYTzV4HYhjuBSJ8vidxHZvVN6ALcUiuNFfIe9hearX7yFnIaYwIOQLLuGv2zc4pkH/PYXVjJEU84pVZKVBWiPdzUFFlXutEt7BH4oWdK89CaN9ntBTj8YEG8caT/QZP9ADjP5QqSHlptdO2UWilR/WJYl7IIYX/xBfT5hbA9aFEDqQG/mfQ5QicQv1TNYEQ7lFMmjVIrdLG2Q1ibM/j/QA+Twl8E7o6BUZSJ3ta4kxQ5QFzMut+a7HoyXZoFGpSusMQhdUS0l2CzReYjbdil9h+znxFG1TUuLrAJYvJW5ezUiJXHkrDkticK4Y70cDdK522zvs+KBvMm0Nz7dTLEGx2L+Cll8mjlqIg3KL/Fb/R1zb3OhTmSG1ybWvGgBnxT203MCdQO+5WoM5NSA+xR+MJEU9DnsE2fAIqs8glXUWqf+JEyrlndmJQovLfaSp7ArG5gX2tjOMxPxB86M5b/Ec0hpAAAAABJRU5ErkJggg==\"","import React from \"react\";\nimport { Modal, Row, Col } from \"antd\";\nimport days from \"dayjs\";\nimport { useTranslation } from \"react-i18next\";\nimport { IVoucher } from \"../../@types/Accept\";\n\ninterface VoucherDetailsModalProps {\n visible: boolean;\n handleOk: () => void;\n voucher: IVoucher;\n}\nconst VoucherDetailsModal: React.FC = ({\n visible,\n handleOk,\n voucher,\n}) => {\n const { t } = useTranslation();\n\n const LicenseDiscount = () => {\n if (\n voucher.tiflux_license_discount &&\n voucher.tiflux_license_discount > 0\n ) {\n return (\n \n \n

\n \n {t(\"discount\")} {t(\"tiflux_users\")}:\n {\" \"}\n {voucher.tiflux_license_discount}%\n

\n \n
\n );\n } else {\n return <>;\n }\n };\n\n const SplashtopDiscount = () => {\n if (voucher.splashtop_discount && voucher.splashtop_discount > 0) {\n return (\n \n \n

\n \n {t(\"discount\")} {t(\"splashtop\")}:\n {\" \"}\n {voucher.splashtop_discount}%\n

\n \n
\n );\n } else {\n return <>;\n }\n };\n\n const UniqueDiscount = () => {\n const one_time_pack = voucher?.pack_discounts?.filter((p) => p.one_time);\n return (\n <>\n {one_time_pack && one_time_pack.length > 0 ? (\n one_time_pack.map((p, index) => (\n \n \n

\n Desconto em Cobrança Única:{\" \"}\n {p.package_item_name || \"\"} - {p.discount}%\n

\n \n
\n ))\n ) : (\n <>\n )}\n \n );\n };\n\n const WhatsAppDiscount = () => {\n if (voucher.whatsapp_discount && voucher.whatsapp_discount > 0) {\n return (\n \n \n

\n \n {t(\"discount\")} {t(\"whatsapp\")}:\n {\" \"}\n {voucher.whatsapp_discount}%\n

\n \n
\n );\n } else {\n return <>;\n }\n };\n\n const PlatformChatDiscount = () => {\n if (voucher.platform_chat_discount && voucher.platform_chat_discount > 0) {\n return (\n \n \n

\n \n {t(\"discount\")} {t(\"platform_chat\")}:\n {\" \"}\n {voucher.platform_chat_discount}%\n

\n \n
\n );\n } else {\n return <>;\n }\n };\n\n const P2PDiscount = () => {\n if (\n voucher.ti_peer_to_peer_discount &&\n voucher.ti_peer_to_peer_discount > 0\n ) {\n return (\n \n \n

\n \n {t(\"discount\")} {t(\"remote_access_ti_peer_to_peer\")}:\n {\" \"}\n {voucher.ti_peer_to_peer_discount}%\n

\n \n
\n );\n } else {\n return <>;\n }\n };\n\n const PackageDiscount = () => {\n return (\n <>\n {voucher.package_item_discount && voucher.package_item_discount > 0 ? (\n \n \n

\n Desconto em Pacote:{\" \"}\n {voucher.package_item_discount}%\n

\n \n
\n ) : (\n <>\n )}\n {voucher.pack_discounts && voucher.pack_discounts.length > 0 ? (\n <>\n {voucher.pack_discounts\n .filter((p) => !p.one_time)\n .map((disc, index) => (\n \n \n

\n \n Desconto em{\" \"}\n {disc.type_packages === 0 ? \"Pacote\" : \"Consultoria\"}:{\" \"}\n \n {disc.package_item_name || \"\"} - {disc.discount}%\n

\n \n
\n ))}\n \n ) : (\n <>\n )}\n \n );\n };\n\n return (\n \n \n {voucher && (\n \n \n \n

\n {t(\"name\")}: {voucher.name}\n

\n \n
\n \n \n

\n {t(\"description\")}: {voucher.description}\n

\n \n
\n \n \n \n \n \n \n \n\n {voucher.discount_months && voucher.discount_months > 0 && (\n \n \n

\n {t(\"discount_period\")}:{\" \"}\n {voucher.discount_months} Meses\n

\n \n
\n )}\n \n \n

\n {t(\"expiration_date\")}:{\" \"}\n {days(voucher.expiration_date).format(t(\"date_format\"))}\n

\n \n
\n \n )}\n \n
\n );\n};\n\nexport default VoucherDetailsModal;\n","import axios from 'axios';\nimport { baseURL } from '../util/baseURL'\n\nconst api = axios.create({\n baseURL: baseURL()\n})\n\nexport default api","export const baseURL = () => {\n if (process.env.NODE_ENV === \"development\") {\n return 'http://localhost:9292/'\n // return \"http://localhost/\";\n } else {\n return \"https://app.tiflux.com\";\n }\n};\n","import api from \"./api\";\n\nexport const getPrice = async (voucher: string) => {\n return api.get(`/accepts/get_prices.json${voucher}`);\n};\n\nexport const findAddress = async (cep: string) => {\n return api.get(`/accepts/find_address.json?cep=${cep}`);\n};\n\nexport const findVoucher = async (voucher: string) => {\n return api.get(`/accepts/get_voucher.json?voucher=${voucher}`);\n};\n\nexport const createConfirmation = async (confirmation: any, token: any) => {\n return api.post(`/accepts/create_confirmation`, {\n confirmation: confirmation,\n token: token,\n });\n};\n\nexport const getPackages = async () => {\n return api.get(`/accepts/get_packages.json`);\n};\n","import React, { useMemo, useState } from \"react\";\nimport VoucherDetailsModal from \"../VoucherDetailsModal\";\nimport { Col, Button, Card, Row, Form, Checkbox, Input } from \"antd\";\nimport { LoadingOutlined, QuestionCircleOutlined } from \"@ant-design/icons\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n IConfirmation,\n IPrice,\n IVoucher,\n IPackageItem,\n IPackage,\n IPackageItemFull,\n} from \"../../@types/Accept\";\nimport { findVoucher } from \"../../services/Accept\";\n\nconst { Search } = Input;\n\ninterface ResumeCardProps {\n totalValue: number;\n setVoucher: any;\n totalDiscount: number;\n price: IPrice;\n voucher: IVoucher;\n confirmation: IConfirmation;\n backAction?: boolean;\n prevStep: () => void;\n submitText: string;\n current: number;\n loading?: boolean;\n setConfirmation: (confirmation: IConfirmation) => void;\n packageOptions?: IPackageItem[];\n setTotalDiscount?: any;\n setTotalValue?: React.Dispatch>;\n packages?: IPackage[];\n}\n\nconst ResumeCardInfo: React.FC = ({\n totalValue,\n setVoucher,\n totalDiscount,\n price,\n voucher,\n confirmation,\n backAction,\n prevStep,\n submitText,\n current,\n loading,\n setConfirmation,\n setTotalDiscount,\n packageOptions,\n packages,\n}) => {\n const { t } = useTranslation();\n const [visibleVoucherDetailsModal, setVisibleVoucherDetailsModal] =\n useState(false);\n const [voucherLoading, setVoucherLoading] = useState(false);\n const [voucherError, setVoucherError] = useState(\"\");\n\n const totalOneTimeValue = packageOptions\n ?.filter((pack) => pack.one_time === true)\n .reduce((totalOneTime, arr) => totalOneTime + arr.value, 0);\n const totalManyTimeValue = packageOptions\n ?.filter((pack) => pack.one_time === false)\n .reduce((totalMany, arr) => totalMany + arr.value, 0);\n\n totalValue = totalManyTimeValue\n ? totalValue + totalManyTimeValue\n : totalValue;\n\n function onSearch(value: string) {\n if (value) {\n setVoucherLoading(true);\n findVoucher(value)\n .then(({ data }) => {\n setVoucherError(\"\");\n setVoucherLoading(false);\n if (data && data.id) {\n let vv = data;\n setVoucher(data);\n setConfirmation({\n ...confirmation,\n voucher_id: data.id,\n voucher_name: data.name,\n });\n let discountCalc =\n (price.tiflux_license_user_value *\n confirmation.tiflux_license *\n vv?.tiflux_license_discount) /\n 100 +\n (price.platform_chat *\n confirmation.platform_chat *\n vv?.platform_chat_discount) /\n 100 +\n (price.ti_peer_to_peer *\n confirmation.ti_peer_to_peer *\n vv?.ti_peer_to_peer_discount) /\n 100 +\n (price.splashtop_user_value *\n confirmation.splashtop *\n vv?.splashtop_discount) /\n 100 +\n (price.whatsapp_user_value *\n confirmation.whatsapp *\n vv?.whatsapp_discount) /\n 100;\n let packDiscount = 0;\n if (\n vv.pack_discounts?.length > 0 &&\n packageOptions &&\n packageOptions.length > 0\n ) {\n vv.pack_discounts\n .filter((p: IPackageItem) => p.one_time === false)\n .forEach((disc: IPackageItemFull) => {\n const itemDisc = packageOptions?.find(\n (p) =>\n p.id === disc.package_item_id &&\n p.package_id === disc.package_id\n );\n if (itemDisc) {\n packDiscount += (itemDisc.value * disc.discount) / 100;\n }\n });\n }\n\n discountCalc = discountCalc + packDiscount;\n\n setTotalDiscount(discountCalc);\n } else {\n setVoucher({\n id: 0,\n name: \"\",\n description: \"\",\n active: false,\n tiflux_license_discount: 0,\n whatsapp_discount: 0,\n splashtop_discount: 0,\n ti_peer_to_peer_discount: 0,\n platform_chat_discount: 0,\n discount_months: 0,\n package_item_discount: 0,\n expiration_date: \"\",\n error: \"\",\n });\n setVoucherLoading(false);\n setVoucherError(t(data.error));\n }\n })\n .catch((e) => {\n console.error(e);\n setVoucherLoading(false);\n });\n }\n }\n\n const DiscountRow = () =>\n useMemo(() => {\n if (totalDiscount > 0) {\n return (\n <>\n \n \n

\n {t(\"discount\")} \n

\n \n \n

\n \n R$ -\n {totalDiscount.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n

\n \n
\n\n \n \n

\n {t(\"total_recurrent_with_discont\")} \n

\n \n \n

\n \n R${\" \"}\n {(totalValue - totalDiscount).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n

\n \n
\n \n );\n } else {\n return <>;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [totalValue, totalDiscount]);\n\n const UniqueDiscountRow = () => {\n let oneTimeDiscount = 0;\n voucher?.pack_discounts\n ?.filter((p: IPackageItem) => p.one_time === true)\n .forEach((disc: IPackageItemFull) => {\n const itemDisc = packageOptions?.find(\n (p) =>\n p.id === disc.package_item_id && p.package_id === disc.package_id\n );\n if (itemDisc) {\n oneTimeDiscount += (itemDisc.value * disc.discount) / 100;\n }\n });\n return oneTimeDiscount && oneTimeDiscount !== 0 ? (\n <>\n \n \n

\n {t(\"discount\")} \n

\n \n \n {totalOneTimeValue && (\n

\n \n R$ -\n {oneTimeDiscount.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n

\n )}\n \n
\n \n \n

\n {\"Total Único com desconto\"} \n

\n \n \n {totalOneTimeValue && (\n

\n \n R${\" \"}\n {(totalOneTimeValue - oneTimeDiscount).toLocaleString(\n undefined,\n {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n }\n )}\n \n

\n )}\n \n
\n \n ) : (\n <>\n );\n };\n\n const itemPackage = (id: number) => {\n return packages?.find((value) => value.id === id);\n };\n\n return (\n \n prevStep()}\n type=\"text\"\n size=\"small\"\n key=\"back-action\"\n >\n {t(\"back\")}\n ,\n ]\n : false\n }\n >\n \n \n {confirmation.tiflux_license >= 1 && (\n

{`${t(\"tiflux_users\")} (${confirmation.tiflux_license}x)`}

\n )}\n {confirmation.platform_chat >= 1 && (\n

{`${t(\"platform_chat_license\")} (${\n confirmation.platform_chat\n }x)`}

\n )}\n {confirmation.whatsapp >= 1 && (\n

{`${t(\"whatsapp_integration\")} (${\n confirmation.whatsapp\n }x)`}

\n )}\n {confirmation.ti_peer_to_peer >= 1 && (\n

{`${t(\"remote_access_ti_peer_to_peer_license\")} (${\n confirmation.ti_peer_to_peer\n }x)`}

\n )}\n {confirmation.splashtop >= 1 && (\n

{`${t(\"splashtop_integration\")} (${\n confirmation.splashtop\n }x)`}

\n )}\n \n \n {confirmation.tiflux_license >= 1 && (\n

\n R${\" \"}\n {(\n price.tiflux_license_user_value * confirmation.tiflux_license\n ).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n

\n )}\n {confirmation.platform_chat >= 1 && (\n

\n R${\" \"}\n {(\n price.platform_chat * confirmation.platform_chat\n ).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n

\n )}\n {confirmation.whatsapp >= 1 && (\n

\n R${\" \"}\n {(\n price.whatsapp_user_value * confirmation.whatsapp\n ).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n

\n )}\n {confirmation.ti_peer_to_peer >= 1 && (\n

\n R${\" \"}\n {(\n price.ti_peer_to_peer * confirmation.ti_peer_to_peer\n ).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n

\n )}\n {confirmation.splashtop >= 1 && (\n

\n R${\" \"}\n {(\n price.splashtop_user_value * confirmation.splashtop\n ).toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n

\n )}\n \n
\n {packageOptions &&\n packageOptions.map(\n (item: IPackageItem) =>\n itemPackage(item.package_id)?.one_time === false &&\n item.value > 0 && (\n \n \n

\n {itemPackage(item.package_id)?.select_type === 0\n ? `${item.name} (${item.amount}x)`\n : item.name}\n

\n \n \n

\n R${\" \"}\n {item.value.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n

\n \n
\n )\n )}\n {/* */}\n \n \n

\n {t(\"total_recurrent_license\")} \n

\n \n \n

\n \n R${\" \"}\n {totalValue.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n

\n \n
\n \n\n {packageOptions &&\n packageOptions.filter(\n (pack) => pack.one_time === true && pack.value > 0\n ).length > 0 && (\n \n {packageOptions &&\n packageOptions.map(\n (item: IPackageItem) =>\n itemPackage(item.package_id)?.one_time === true &&\n item.value > 0 && (\n \n \n

{item.name}

\n \n \n

\n R${\" \"}\n {item.value.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n

\n \n
\n )\n )}\n \n \n

\n {\"Total Único\"} \n

\n \n \n

\n \n R${\" \"}\n {totalOneTimeValue?.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n

\n \n
\n \n \n )}\n\n {current === 4 && (\n \n \n \n \n \n \n {voucher && voucher.name && (\n \n \n

*{voucher.error ? voucher.error : voucher.description}

\n \n {!voucher.error && (\n \n setVisibleVoucherDetailsModal(true)}\n >\n {t(\"details\")}\n \n \n )}\n
\n )}\n \n \n value\n ? Promise.resolve()\n : Promise.reject(t(\"according_with_values_required\")),\n },\n ]}\n >\n \n setConfirmation({\n ...confirmation,\n according_with_values: e.target.checked,\n })\n }\n >\n {t(\"according_with_values\")}\n \n \n\n \n value\n ? Promise.resolve()\n : Promise.reject(t(\"terms_of_use_required\")),\n },\n ]}\n >\n \n setConfirmation({\n ...confirmation,\n accept_terms: e.target.checked,\n })\n }\n >\n {t(\"terms_of_use\")}\n }\n />\n \n \n \n value\n ? Promise.resolve()\n : Promise.reject(t(\"privacity_terms_required\")),\n },\n ]}\n >\n \n setConfirmation({\n ...confirmation,\n privacity_terms: e.target.checked,\n })\n }\n >\n {t(\"agg_tiflux_terms\")}\n }\n />\n \n \n \n
\n )}\n \n }\n type=\"primary\"\n htmlType=\"submit\"\n block\n >\n {submitText}\n \n\n {\n setVisibleVoucherDetailsModal(false);\n }}\n />\n \n );\n};\n\nexport default ResumeCardInfo;\n","import React, { useEffect } from \"react\";\nimport ResumeCardInfo from \"../../../components/ResumeCardInfo\";\nimport { Card, Col, Row, InputNumber, Form, Tooltip } from \"antd\";\nimport {\n IPrice,\n IVoucher,\n IConfirmation,\n IPackage,\n} from \"../../../@types/Accept\";\nimport { useTranslation } from \"react-i18next\";\n\nconst { Meta } = Card;\n\ninterface Step1Props {\n nextStep: () => void;\n setVoucher: React.Dispatch>;\n setConfirmation: any;\n setTotalValue: any;\n setTotalDiscount: any;\n totalValue: number;\n totalDiscount: number;\n price: IPrice;\n voucher: IVoucher;\n confirmation: IConfirmation;\n current: number;\n packageOptions: any;\n packages: IPackage[];\n}\nconst Step1: React.FC = ({\n nextStep,\n setVoucher,\n setConfirmation,\n setTotalValue,\n setTotalDiscount,\n totalValue,\n totalDiscount,\n price,\n voucher,\n confirmation,\n current,\n packageOptions,\n packages,\n}) => {\n const { t } = useTranslation();\n const [form] = Form.useForm();\n\n useEffect(() => {\n const total =\n (confirmation.tiflux_license\n ? price.tiflux_license_user_value * confirmation.tiflux_license\n : 0) +\n (confirmation.platform_chat\n ? price.platform_chat * confirmation.platform_chat\n : 0) +\n (confirmation.whatsapp\n ? price.whatsapp_user_value * confirmation.whatsapp\n : 0) +\n (confirmation.ti_peer_to_peer\n ? price.ti_peer_to_peer * confirmation.ti_peer_to_peer\n : 0) +\n (confirmation.splashtop\n ? price.splashtop_user_value * confirmation.splashtop\n : 0);\n\n setTotalValue(total);\n\n if (!voucher || voucher.error) {\n setTotalDiscount(null);\n } else {\n const totalDisc =\n (price.tiflux_license_user_value *\n confirmation.tiflux_license *\n voucher.tiflux_license_discount) /\n 100 +\n (price.platform_chat *\n confirmation.platform_chat *\n voucher?.platform_chat_discount) /\n 100 +\n (price.ti_peer_to_peer *\n confirmation.ti_peer_to_peer *\n voucher?.ti_peer_to_peer_discount) /\n 100 +\n (price.splashtop_user_value *\n confirmation.splashtop *\n voucher.splashtop_discount) /\n 100 +\n (price.whatsapp_user_value *\n confirmation.whatsapp *\n voucher.whatsapp_discount) /\n 100;\n\n setTotalDiscount(totalDisc);\n }\n }, [confirmation, price, setTotalDiscount, setTotalValue, voucher]);\n\n // useEffect(() => {\n // if (!voucher || voucher.error) {\n // return; // }\n\n // }, [confirmation, price, setTotalDiscount, voucher]);\n\n useEffect(() => {\n form.setFieldsValue({ confirmation });\n }, [confirmation, form]);\n\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n platform_chat: value,\n })\n }\n precision={0}\n />\n \n \n R${\" \"}\n {price?.platform_chat.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n \n {t(\"user_per_month\")}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n value === 0\n ? setConfirmation({\n ...confirmation,\n tiflux_license: 0,\n ti_peer_to_peer: 0,\n splashtop: 0,\n whatsapp: 0,\n })\n : setConfirmation({\n ...confirmation,\n tiflux_license: value,\n })\n }\n precision={0}\n />\n \n \n R${\" \"}\n {price?.tiflux_license_user_value.toLocaleString(\n undefined,\n { minimumFractionDigits: 2, maximumFractionDigits: 2 }\n )}\n \n \n {t(\"user_per_month\")}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n whatsapp: value,\n })\n }\n precision={0}\n />\n \n \n R${\" \"}\n {price?.whatsapp_user_value.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n \n {t(\"user_per_month\")}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n ti_peer_to_peer: value,\n })\n }\n precision={0}\n />\n \n \n R${\" \"}\n {price?.ti_peer_to_peer.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n \n {t(\"user_per_month\")}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n splashtop: value,\n })\n }\n precision={0}\n />\n \n \n R${\" \"}\n {price?.splashtop_user_value.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}\n \n \n {t(\"user_per_month\")}\n \n \n \n \n \n \n \n \n console.log(\"prev\")}\n submitText={t(\"confirm\")}\n current={current}\n setConfirmation={setConfirmation}\n packageOptions={packageOptions}\n packages={packages}\n />\n \n
\n );\n};\n\nexport default Step1;\n","const rgex = /^(?:(?:\\+|00)?(55)\\s?)?(?:\\(?([1-9][0-9])\\)?\\s?)?(?:((?:9\\d|[2-9])\\d{3})-?(\\d{4}))$/\n\nexport const phoneMask = (value: string) => {\n const phoneNumber = value.trim().replace(/\\D/g, '')\n if (rgex.test(phoneNumber)) {\n if (phoneNumber.length > 1) {\n return phoneNumber\n .replace(/^(\\d{2})(\\d)/g, '($1) $2')\n .replace(/(\\d)(\\d{4})$/, '$1-$2')\n } else {\n return phoneNumber\n }\n } else {\n return false\n }\n}\n","const rgex = /^[0-9]{5}-?[0-9]{3}$/\n\nexport const cepMask = (value: string) => {\n const cepNumber = value.trim().replace(/\\D/g, '')\n if (rgex.test(cepNumber)) {\n if (cepNumber.length > 1) {\n return cepNumber\n .replace(/^([\\d]{5})-?([\\d]{3})$/, '$1-$2')\n } else {\n return cepNumber\n }\n } else {\n return false\n }\n}\n","const rgex = /^([0-9]{2}[.]?[0-9]{3}[.]?[0-9]{3}[/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[.]?[0-9]{3}[.]?[0-9]{3}[-]?[0-9]{2})$/\n\nexport const socialRevenueMask = (value: string) => {\n const socialRevenueNumber = value.trim().replace(/\\D/g, '')\n if (rgex.test(socialRevenueNumber)) {\n const newSocialRevenueNumber = socialRevenueNumber.replace(/[^\\w\\s]/gi, '')\n if (newSocialRevenueNumber.length === 11) {\n return newSocialRevenueNumber\n .replace(/^(\\d{3})(\\d{3})(\\d{3})(\\d{2})$/, '$1.$2.$3-$4')\n } else if (newSocialRevenueNumber.length === 14) {\n return newSocialRevenueNumber\n .replace(/^(\\d{2})(\\d{3})(\\d{3})(\\d{4})(\\d{2})$/, '$1.$2.$3/$4-$5')\n } else {\n return false\n }\n } else {\n return false\n }\n}\n","import React, { useState } from \"react\";\nimport {\n Card,\n Col,\n Row,\n Form,\n Input,\n InputNumber,\n Select,\n notification,\n} from \"antd\";\nimport {\n IPrice,\n IVoucher,\n IConfirmation,\n IPackage,\n} from \"../../../@types/Accept\";\nimport { findAddress } from \"../../../services/Accept\";\nimport { phoneMask } from \"../../../util/phoneMask\";\nimport { cepMask } from \"../../../util/cepMask\";\nimport { socialRevenueMask } from \"../../../util/socialRevenueMask\";\nimport { useTranslation } from \"react-i18next\";\nimport ResumeCardInfo from \"../../../components/ResumeCardInfo\";\n\nconst { Search } = Input;\nconst { Option } = Select;\n\ninterface Step2Props {\n prevStep: () => void;\n nextStep: () => void;\n setVoucher: any;\n totalValue: number;\n totalDiscount: number;\n price: IPrice;\n voucher: IVoucher;\n confirmation: IConfirmation;\n setConfirmation: any;\n current: number;\n packageOptions: any;\n packages: IPackage[];\n setTotalValue: React.Dispatch>;\n setTotalDiscount: React.Dispatch>;\n}\nconst Step2: React.FC = ({\n prevStep,\n nextStep,\n setVoucher,\n totalValue,\n setTotalValue,\n totalDiscount,\n setTotalDiscount,\n price,\n voucher,\n confirmation,\n setConfirmation,\n current,\n packageOptions,\n packages,\n}) => {\n const { t } = useTranslation();\n const [form] = Form.useForm();\n const [cepStatus, setCepStatus] = useState(undefined);\n const [cepHelp, setCepHelp] = useState(undefined);\n const [telephoneStatus, setTelephoneStatus] = useState(undefined);\n const [telephoneHelp, setTelephoneHelp] = useState(undefined);\n const [socialRevenueStatus, setSocialRevenueStatus] = useState(\n undefined\n );\n const [socialRevenueHelp, setSocialRevenueHelp] = useState(\n undefined\n );\n const [cepLoading, setCepLoading] = useState(false);\n\n function changePhone(field_name: any, field_value: any) {\n const phoneNumber = phoneMask(field_value);\n if (phoneNumber) {\n setTelephoneStatus(\"success\");\n setTelephoneHelp(undefined);\n setConfirmation({ ...confirmation, [field_name]: phoneNumber });\n form.setFieldsValue({ confirmation: { [field_name]: phoneNumber } });\n } else {\n setTelephoneStatus(\"error\");\n setTelephoneHelp(t(\"invalid_phone\"));\n }\n }\n\n function changeCep(ev: any) {\n const cepNumber = cepMask(ev.target.value);\n if (cepNumber) {\n setCepStatus(\"success\");\n setCepHelp(undefined);\n setConfirmation({ ...confirmation, cep: cepNumber });\n form.setFieldsValue({ confirmation: { cep: cepNumber } });\n } else {\n setCepStatus(\"error\");\n setCepHelp(t(\"invalid_zip_code\"));\n }\n }\n\n function changeSocialRevenue(ev: any) {\n const socialRevenueNumber = socialRevenueMask(ev.target.value);\n if (socialRevenueNumber) {\n setSocialRevenueStatus(\"success\");\n setSocialRevenueHelp(undefined);\n setConfirmation({ ...confirmation, social_revenue: socialRevenueNumber });\n form.setFieldsValue({\n confirmation: { social_revenue: socialRevenueNumber },\n });\n } else {\n setSocialRevenueStatus(\"error\");\n setSocialRevenueHelp(t(\"invalid_social_revenue\"));\n }\n }\n\n function onSearch(value: any) {\n setCepLoading(true);\n findAddress(value).then(({ data }) => {\n setCepLoading(false);\n if (data) {\n setCepStatus(\"success\");\n setCepHelp(undefined);\n setConfirmation({\n ...confirmation,\n street: data.address,\n city: data.city,\n state: data.state,\n neighborhood: data.neighborhood,\n });\n form.setFieldsValue({\n confirmation: {\n street: data.address,\n city: data.city,\n state: data.state,\n neighborhood: data.neighborhood,\n },\n });\n } else {\n setCepStatus(\"error\");\n setCepHelp(t(\"invalid_zip_code\"));\n }\n });\n }\n\n async function beforeNext() {\n const validated = await form.validateFields();\n if (\n validated &&\n [\"success\", undefined].includes(telephoneStatus) &&\n [\"success\", undefined].includes(cepStatus)\n ) {\n nextStep();\n } else {\n notification.error({\n message: t(\"error\"),\n description: t(\"fill_fields\"),\n });\n }\n }\n\n return (\n \n \n \n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n organization_name: e.target.value,\n })\n }\n placeholder={t(\"enter_company\")}\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n social_name: e.target.value,\n })\n }\n placeholder={t(\"enter_company_name\")}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n changePhone(\"organization_telephone\", e.target.value)\n }\n maxLength={15}\n placeholder={t(\"enter_telephone\")}\n />\n \n \n \n\n \n \n \n \n setConfirmation({\n ...confirmation,\n observation: e.target.value,\n })\n }\n placeholder={t(\"enter_observation\")}\n />\n \n \n \n \n\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n cep: e.target.value,\n })\n }\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n city: e.target.value,\n })\n }\n />\n \n \n \n \n \n setConfirmation({ ...confirmation, state: e })\n }\n filterOption={true}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n neighborhood: e.target.value,\n })\n }\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n street: e.target.value,\n })\n }\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n number: e.target.value,\n })\n }\n />\n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n complement: e.target.value,\n })\n }\n />\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default Step2;\n","import { QuestionCircleOutlined } from \"@ant-design/icons\";\nimport {\n Card,\n Col,\n DatePicker,\n Form,\n Input,\n notification,\n Radio,\n Row,\n Tooltip,\n} from \"antd\";\nimport moment from \"moment\";\nimport \"moment-timezone\";\nimport moments from \"moment-timezone\";\nimport queryString from \"query-string\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useLocation } from \"react-router-dom\";\nimport {\n IConfirmation,\n IPackage,\n IPrice,\n IVoucher,\n} from \"../../../@types/Accept\";\nimport ResumeCardInfo from \"../../../components/ResumeCardInfo\";\nimport { createConfirmation } from \"../../../services/Accept\";\nimport { phoneMask } from \"../../../util/phoneMask\";\n\nconst timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\nmoments.tz.setDefault(timeZone);\ninterface Step3Props {\n prevStep: () => void;\n nextStep: () => void;\n setVoucher: any;\n totalValue: number;\n totalDiscount: number;\n price: IPrice;\n voucher: IVoucher;\n confirmation: IConfirmation;\n setConfirmation: any;\n packageOptions: any;\n current: number;\n setTotalDiscount: any;\n packages: IPackage[];\n}\nconst Step3: React.FC = ({\n prevStep,\n nextStep,\n setVoucher,\n setTotalDiscount,\n totalValue,\n totalDiscount,\n price,\n voucher,\n confirmation,\n setConfirmation,\n packageOptions,\n current,\n packages,\n}) => {\n const { t } = useTranslation();\n const [form] = Form.useForm();\n const location = useLocation();\n const { token } = queryString.parse(location.search);\n const [telephoneStatus, setTelephoneStatus] = useState(undefined);\n const [telephoneHelp, setTelephoneHelp] = useState(undefined);\n const [loading, setLoading] = useState(false);\n\n function changePhone(field_name: any, field_value: any) {\n const phoneNumber = phoneMask(field_value);\n if (phoneNumber) {\n setTelephoneStatus(\"success\");\n setTelephoneHelp(undefined);\n setConfirmation({ ...confirmation, [field_name]: phoneNumber });\n form.setFieldsValue({ confirmation: { [field_name]: phoneNumber } });\n } else {\n setTelephoneStatus(\"error\");\n setTelephoneHelp(t(\"invalid_phone\"));\n }\n }\n\n function showNotificationError(message: any) {\n notification.error({\n message: t(\"error\"),\n description: message,\n });\n }\n\n async function beforeConfirm() {\n const validated = await form.validateFields();\n if (validated && [\"success\", undefined].includes(telephoneStatus)) {\n confirmPurchase();\n } else {\n notification.error({\n message: t(\"error\"),\n description: t(\"fill_fields\"),\n });\n }\n }\n\n function confirmPurchase() {\n setLoading(true);\n createConfirmation(confirmation, token)\n .then(({ data }) => {\n setConfirmation({\n organization_id: undefined,\n voucher_id: undefined,\n voucher_name: undefined,\n form_of_payment: \"billet\",\n organization_name: \"\",\n social_name: \"\",\n social_revenue: \"\",\n organization_telephone: \"\",\n cep: \"\",\n state: undefined,\n city: \"\",\n neighborhood: \"\",\n street: \"\",\n number: undefined,\n complement: \"\",\n subscriber_name: \"\",\n subscriber_email: \"\",\n financial_name: \"\",\n financial_email: \"\",\n financial_telephone: \"\",\n observation: \"\",\n tiflux_license: 0,\n inventory_monitoring_remote: 0,\n monitoring_advanced: 0,\n splashtop: 0,\n whatsapp: 0,\n ti_peer_to_peer: 0,\n platform_chat: 0,\n whitelabel: false,\n tiflux_api: false,\n attendance_name: \"\",\n ticket_feedback: \"\",\n expiration_date: moment().add(2, \"days\"),\n expiration_date_unique: moment().add(2, \"days\"),\n form_of_payment_unique: \"credit_card\",\n recurrent_payment_condition: \"monthly\",\n });\n form.resetFields();\n setVoucher({\n id: 0,\n name: \"\",\n description: \"\",\n active: false,\n tiflux_license_discount: 0,\n whatsapp_discount: 0,\n splashtop_discount: 0,\n ti_peer_to_peer_discount: 0,\n platform_chat_discount: 0,\n discount_months: 0,\n package_item_discount: 0,\n expiration_date: \"\",\n error: \"\",\n });\n nextStep();\n })\n .catch(({ response }) => {\n setLoading(false);\n switch (response.status) {\n case 403:\n showNotificationError(t(\"no_permission\"));\n break;\n case 0:\n showNotificationError(t(\"no_connection\"));\n break;\n case 422:\n var { data } = response;\n for (let key in data) {\n for (let message_id in data[key]) {\n showNotificationError(t(data[key][message_id]));\n }\n }\n break;\n default:\n showNotificationError(t(\"error\"));\n break;\n }\n });\n }\n\n function disabledDate(date: moment.Moment) {\n const today = moment().startOf(\"day\");\n const maxDate = moment().add(4, \"days\").endOf(\"day\");\n\n return current ? date < today || date > maxDate : false;\n }\n\n return (\n \n \n \n \n \n \n \n \n \n {t(\"payment\")}\n \n }\n >\n \n \n \n \n setConfirmation({\n ...confirmation,\n form_of_payment: e.target.value,\n })\n }\n >\n {t(\"credit_card\")}\n {t(\"billet\")}\n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n form_of_payment_unique: e.target.value,\n })\n }\n >\n {t(\"credit_card\")}\n {t(\"billet\")}\n \n \n \n \n
\n \n
\n

\n {moment(confirmation.expiration_date).format(\n \"DD/MM/YYYY\"\n )}\n

\n \n \n \n \n setConfirmation({\n ...confirmation,\n expiration_date_unique: value,\n })\n }\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n recurrent_payment_condition: e.target.value,\n })\n }\n >\n {t(\"_monthly\")}\n {t(\"_yearly\")}\n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n unique_payment_text: e.target.value,\n })\n }\n placeholder={t(\"condition_payment_unique_placeholder\")}\n />\n \n \n
\n \n \n
\n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n subscriber_name: e.target.value,\n })\n }\n placeholder={t(\"enter_subscriber_name\")}\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n subscriber_email: e.target.value,\n })\n }\n placeholder={t(\"enter_subscriber_email\")}\n />\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n setConfirmation({\n ...confirmation,\n financial_name: e.target.value,\n })\n }\n placeholder={t(\"enter_financial_name\")}\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n financial_email: e.target.value,\n })\n }\n placeholder={t(\"enter_financial_email\")}\n />\n \n \n \n \n \n changePhone(\"financial_telephone\", e.target.value)\n }\n maxLength={15}\n placeholder={t(\"enter_whatsapp\")}\n />\n \n \n \n \n \n \n\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n attendance_name: e.target.value,\n })\n }\n placeholder={t(\"name_of_seller_placeholder\")}\n />\n \n \n \n \n \n setConfirmation({\n ...confirmation,\n tiflux_feedback: e.target.value,\n })\n }\n placeholder={t(\"tiflux_feedback_required_placeholder\")}\n />\n \n \n \n \n \n \n
\n \n );\n};\n\nexport default Step3;\n","import React from \"react\";\nimport { Card, Col, Row, Result, Button } from \"antd\";\nimport { useTranslation } from \"react-i18next\";\n\ninterface Step4Props {\n newAutoBuy: () => void;\n}\nconst Step4: React.FC = ({ newAutoBuy }) => {\n const { t } = useTranslation();\n\n return (\n \n \n \n \n {t(\"new_order\")}\n \n }\n />\n {/* quando clicar em fazer novo pedido manter o passo Meus dados o resto zerar */}\n {/* ter parametro ja e cliente nesse caso */}\n \n \n \n );\n};\n\nexport default Step4;\n","import { Card, Col, Form, Radio, Row, Space, Typography } from \"antd\";\nimport React, { useEffect } from \"react\";\nimport {\n IConfirmation,\n IPackage,\n IPackageItem,\n} from \"../../../src/@types/Accept\";\nimport { useTranslation } from \"react-i18next\";\n\ninterface SingleSelectionPackageProps {\n packet: IPackage;\n setPackageOptions: React.Dispatch>;\n packageOptions: IPackageItem[];\n setConfirmation: (confirmation: IConfirmation) => void;\n confirmation: IConfirmation;\n amountOptions: number;\n}\n\nexport const SingleSelectionPackage: React.FC = ({\n packet,\n packageOptions,\n setPackageOptions,\n setConfirmation,\n confirmation,\n amountOptions,\n}) => {\n const { t } = useTranslation();\n\n useEffect(() => {\n setConfirmation({\n ...confirmation,\n package_items: packageOptions,\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [packageOptions]);\n\n function handleChangeItem(packageItem: IPackageItem) {\n if (packageItem.package_id && packageItem.value !== 0) {\n if (packageOptions?.length === 0) {\n setPackageOptions([\n {\n id: packageItem.id,\n package_id: packageItem.package_id,\n name: packageItem.name,\n value: packageItem.value,\n description: packageItem.description,\n observation: packageItem.observation,\n one_time: packageItem.one_time,\n amount: 1,\n },\n ]);\n } else {\n let options = packageOptions.filter(\n (value: IPackageItem) => value.id !== packageItem.id\n );\n options = options.filter(\n (value: IPackageItem) => value.package_id !== packageItem.package_id\n );\n\n setPackageOptions([\n ...options,\n {\n id: packageItem.id,\n package_id: packageItem.package_id,\n name: packageItem.name,\n value: packageItem.value,\n description: packageItem.description,\n observation: packageItem.observation,\n one_time: packageItem.one_time,\n amount: 1,\n },\n ]);\n }\n } else if (packageItem.package_id) {\n let options = packageOptions.filter(\n (value: IPackageItem) => value.package_id !== packageItem.package_id\n );\n\n setPackageOptions(options);\n }\n }\n\n const validateRequired = () => {\n if (confirmation.is_client) {\n return false;\n } else {\n if (amountOptions === packageOptions.length) {\n return false;\n } else {\n return true;\n }\n }\n };\n\n return (\n \n \n \n {packet.name}\n \n }\n >\n option.package_id === packet.id\n )?.id\n }\n rules={[\n {\n required: validateRequired(),\n message: t(\"packages.item_required\"),\n },\n ]}\n >\n \n \n {packet.pack_items?.map((packageItem: IPackageItem) => (\n handleChangeItem(packageItem)}\n >\n {packageItem.name}\n {packageItem.value !== 0 && (\n \n \n {`R$ ${packageItem.value.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}`}\n \n \n {packet.one_time\n ? t(\"single_payment\")\n : `${packet.measure}/${t(\"month\")}`}\n \n \n )}\n {packageItem.description && (\n \n {packageItem.description}\n \n )}\n\n {packageItem.observation && (\n \n {packageItem.observation}\n \n )}\n \n ))}\n \n \n \n \n \n \n );\n};\n","import React, { useEffect } from \"react\";\nimport { Card, Col, Form, InputNumber, Row, Space, Typography } from \"antd\";\nimport {\n IConfirmation,\n IPackage,\n IPackageItem,\n} from \"../../../src/@types/Accept\";\nimport { useTranslation } from \"react-i18next\";\n\ninterface QuantityPackageProps {\n packet: IPackage;\n setPackageOptions: React.Dispatch>;\n packageOptions: IPackageItem[];\n setConfirmation: (confirmation: IConfirmation) => void;\n confirmation: IConfirmation;\n requiredField?: boolean;\n}\n\nexport const QuantityPackage: React.FC = ({\n packet,\n packageOptions,\n setPackageOptions,\n setConfirmation,\n confirmation,\n requiredField = false,\n}) => {\n const { t } = useTranslation();\n\n useEffect(() => {\n setConfirmation({\n ...confirmation,\n package_items: packageOptions,\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [packageOptions]);\n\n function handleChangeItem(\n amount: string | number,\n packageItem: IPackageItem\n ) {\n if (packageItem.package_id && packageItem.amount !== amount) {\n if (packageOptions?.length === 0) {\n setPackageOptions([\n {\n id: packageItem.id,\n package_id: packageItem.package_id,\n name: packageItem.name,\n value: parseFloat((packageItem.value * Number(amount)).toFixed(2)),\n description: packageItem.description,\n observation: packageItem.observation,\n one_time: packageItem.one_time,\n amount: amount,\n },\n ]);\n } else {\n setPackageOptions((lasVal) => {\n let options = lasVal.filter(\n (value) =>\n value.id !== packageItem.id ||\n value.package_id !== packageItem.package_id\n );\n\n return [\n ...options,\n {\n id: packageItem.id,\n package_id: packageItem.package_id,\n name: packageItem.name,\n value: parseFloat(\n (packageItem.value * Number(amount)).toFixed(2)\n ),\n description: packageItem.description,\n observation: packageItem.observation,\n one_time: packageItem.one_time,\n amount: amount,\n },\n ];\n });\n }\n } else if (amount === 0) {\n const filteredPacks = packageOptions.filter(\n (p: IPackageItem) => p.id !== packageItem.id\n );\n setPackageOptions(filteredPacks);\n }\n }\n\n const validateRequired = (item: IPackageItem) => {\n const hasItemSelected = packet?.pack_items?.some((p) =>\n packageOptions.some((e) => e.package_id === p.package_id)\n );\n if (hasItemSelected || !requiredField) {\n return Promise.resolve();\n } else {\n return Promise.reject(t(\"packages.item_required\"));\n }\n };\n\n return (\n \n \n 1 ? {} : { border: 0 }}\n title={\n packet.pack_items.length > 1 ? (\n \n {packet.name}\n \n ) : (\n \"\"\n )\n }\n >\n {packet?.pack_items?.length > 1 ? (\n p.id)}\n rules={[\n {\n required: requiredField,\n validator: (_: any, v: any) => validateRequired(v),\n message: t(\"packages.item_required\"),\n validateTrigger: \"onFinish\",\n },\n ]}\n >\n \n {packet.pack_items?.map((packageItem, index) => (\n \n \n {packageItem.name}\n \n }\n >\n
\n \n {packageItem.description}\n \n \n {\n return a.id === packageItem.id;\n })?.amount || 0\n }\n >\n \n handleChangeItem(value || 0, packageItem)\n }\n />\n \n
\n \n {`R$ ${packageItem.value.toLocaleString(\n undefined,\n {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n }\n )}`}\n \n \n {packet.one_time\n ? t(\"single_payment\")\n : `${packet.measure || \"\"}/${t(\"month\")}`}\n \n
\n \n\n \n {packageItem.observation}\n \n
\n \n \n ))}\n
\n \n ) : (\n packet?.pack_items?.map((packageItem, index) => (\n \n \n \n \n {packageItem.name}\n \n \n {packageItem.description}\n \n\n \n {packageItem.observation}\n \n \n \n \n \n {\n return a.id === packageItem.id;\n })?.amount || 0\n }\n >\n \n handleChangeItem(value || 0, packageItem)\n }\n />\n \n \n {`R$ ${packageItem.value.toLocaleString(undefined, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })}`}\n \n \n {packet.one_time\n ? t(\"single_payment\")\n : `${packet.measure || \"\"}/${t(\"month\")}`}\n \n \n \n \n ))\n )}\n \n \n
\n );\n};\n","import { Card, Col, Empty, Form, Row } from \"antd\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n IConfirmation,\n IPackage,\n IPrice,\n IVoucher,\n} from \"../../../@types/Accept\";\nimport ResumeCardInfo from \"../../../components/ResumeCardInfo\";\nimport { SingleSelectionPackage } from \"../../../components/SingleSelectionPackage\";\nimport { QuantityPackage } from \"../../../components/QuantityPackage\";\n\ninterface Step5Props {\n prevStep: () => void;\n nextStep: () => void;\n setVoucher: any;\n totalValue: number;\n totalDiscount: number;\n price: IPrice;\n voucher: IVoucher;\n confirmation: IConfirmation;\n setConfirmation: (confirmation: IConfirmation) => void;\n setPackageOptions: any;\n packageOptions: any;\n current: number;\n packages: IPackage[];\n setTotalDiscount: React.Dispatch>;\n}\n\nconst Step5: React.FC = ({\n prevStep,\n nextStep,\n setVoucher,\n totalValue,\n totalDiscount,\n setTotalDiscount,\n price,\n voucher,\n confirmation,\n setConfirmation,\n packages,\n setPackageOptions,\n packageOptions,\n current,\n}) => {\n const { t } = useTranslation();\n const [form] = Form.useForm();\n\n function goNext() {\n setConfirmation({ ...confirmation, package_items: packageOptions });\n nextStep();\n }\n return (\n
\n \n \n {packages.length === 0 ? (\n \n \n \n \n \n \n \n ) : (\n packages\n ?.filter((pack: IPackage) => pack.type_packages === 0)\n ?.map((item, index) =>\n item.select_type === 1 ? (\n packet.select_type === 1)\n .length\n }\n />\n ) : (\n \n )\n )\n )}\n \n \n \n
\n );\n};\n\nexport default Step5;\n","import React from \"react\";\n\nexport const LaptopUser = () => (\n \n \n \n);\n","import { Card, Col, Empty, Form, Row } from \"antd\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n IConfirmation,\n IPackage,\n IPackageItem,\n IPrice,\n IVoucher,\n} from \"../../../@types/Accept\";\nimport ResumeCardInfo from \"../../../components/ResumeCardInfo\";\nimport { SingleSelectionPackage } from \"../../../components/SingleSelectionPackage\";\nimport { QuantityPackage } from \"../../../components/QuantityPackage\";\n\ninterface Step6Props {\n prevStep: () => void;\n nextStep: () => void;\n setVoucher: React.Dispatch>;\n totalValue: number;\n totalDiscount: number;\n price: IPrice;\n voucher: IVoucher;\n confirmation: IConfirmation;\n setConfirmation: (confirmation: IConfirmation) => void;\n setPackageOptions: React.Dispatch>;\n packageOptions: IPackageItem[];\n current: number;\n packages: IPackage[];\n setTotalDiscount: React.Dispatch>;\n}\n\nconst Step6: React.FC = ({\n prevStep,\n nextStep,\n setVoucher,\n totalValue,\n totalDiscount,\n setTotalDiscount,\n price,\n voucher,\n confirmation,\n setConfirmation,\n packages,\n setPackageOptions,\n packageOptions,\n current,\n}) => {\n const { t } = useTranslation();\n const [form] = Form.useForm();\n\n function goNext() {\n setConfirmation({\n ...confirmation,\n package_items: packageOptions,\n });\n nextStep();\n }\n return (\n \n \n \n {packages.length === 0 ? (\n \n \n \n \n \n \n \n ) : (\n packages\n ?.filter((pack: IPackage) => pack.type_packages === 1)\n ?.map((item, index) =>\n item.select_type === 1 ? (\n packet.select_type === 1)\n .length\n }\n />\n ) : (\n \n )\n )\n )}\n \n \n \n \n );\n};\n\nexport default Step6;\n","import React, { useEffect, useState } from \"react\";\nimport Step1 from \"./Step1\";\nimport Step2 from \"./Step2\";\nimport Step3 from \"./Step3\";\nimport Step4 from \"./Step4\";\nimport Step5 from \"./Step5\";\nimport { getPrice, getPackages } from \"../../services/Accept\";\nimport { useLocation } from \"react-router-dom\";\nimport { Layout, Card, Col, Row, Steps, Skeleton } from \"antd\";\nimport Icon, {\n ShoppingCartOutlined,\n CheckCircleOutlined,\n DollarCircleOutlined,\n SmileOutlined,\n CodeSandboxOutlined,\n} from \"@ant-design/icons\";\nimport { useTranslation } from \"react-i18next\";\n\nimport HeaderLogo from \"../../assets/images/header_logo.png\";\nimport { LaptopUser } from \"../../components/Icons\";\nimport { IPackage } from \"../../@types/Accept\";\nimport moment from \"moment-timezone\";\nimport Step6 from \"./Step6\";\n\nconst timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\nmoment.tz.setDefault(timeZone);\n\nconst { Header, Content } = Layout;\nconst { Step } = Steps;\n\nfunction Accept() {\n const { t } = useTranslation();\n const [current, setCurrent] = useState(0);\n const [totalValue, setTotalValue] = useState(0);\n const [totalDiscount, setTotalDiscount] = useState(0);\n\n const location = useLocation();\n const [loading, setLoading] = useState(true);\n\n const [voucher, setVoucher] = useState({\n id: 0,\n name: \"\",\n description: \"\",\n active: false,\n tiflux_license_discount: 0,\n whatsapp_discount: 0,\n splashtop_discount: 0,\n ti_peer_to_peer_discount: 0,\n platform_chat_discount: 0,\n discount_months: 0,\n package_item_discount: 0,\n expiration_date: \"\",\n error: \"\",\n });\n\n const [price, setPrices] = useState({\n tiflux_license_user_value: 0,\n inventory_monitoring_remote_user_value: 0,\n monitoring_advanced_user_value: 0,\n splashtop_user_value: 0,\n whatsapp_user_value: 0,\n whitelabel_value: 0,\n tiflux_api_value: 0,\n platform_chat: 0,\n ti_peer_to_peer: 0,\n });\n\n const [confirmation, setConfirmation] = useState({\n organization_id: undefined,\n voucher_id: undefined,\n voucher_name: undefined,\n form_of_payment: \"billet\",\n organization_name: \"\",\n social_name: \"\",\n social_revenue: \"\",\n organization_telephone: \"\",\n cep: \"\",\n state: undefined,\n city: \"\",\n neighborhood: \"\",\n street: \"\",\n number: undefined,\n complement: \"\",\n subscriber_name: \"\",\n subscriber_email: \"\",\n financial_name: \"\",\n financial_email: \"\",\n financial_telephone: \"\",\n observation: \"\",\n tiflux_license: 0,\n inventory_monitoring_remote: 0,\n monitoring_advanced: 0,\n splashtop: 0,\n whatsapp: 0,\n ti_peer_to_peer: 0,\n platform_chat: 0,\n whitelabel: false,\n tiflux_api: false,\n attendance_name: \"\",\n ticket_feedback: \"\",\n expiration_date: moment().add(2, \"days\"),\n expiration_date_unique: moment().add(2, \"days\"),\n form_of_payment_unique: \"credit_card\",\n recurrent_payment_condition: \"monthly\",\n });\n\n const [packages, setPackages] = useState([] as IPackage[]);\n const [packageOptions, setPackageOptions] = useState([]);\n\n useEffect(() => {\n async function loadPackages() {\n let { data } = await getPackages();\n setPackages(data);\n }\n\n getPrice(location.search).then(({ data }) => {\n setPrices(data.price);\n setVoucher(data.voucher);\n loadPackages();\n\n const { organization, voucher } = data;\n if (organization) {\n setConfirmation({\n ...confirmation,\n voucher_id: voucher?.id,\n voucher_name: voucher?.name,\n is_client: organization.organization_status,\n organization_id: organization.organization_id,\n organization_token: organization.organization_token,\n tiflux_license: organization.tiflux_license\n ? organization.tiflux_license\n : 0,\n inventory_monitoring_remote: organization.inventory_monitoring_remote\n ? organization.inventory_monitoring_remote\n : 0,\n monitoring_advanced: organization.max_monitoring\n ? organization.max_monitoring\n : 0,\n splashtop: organization.splashtop,\n whatsapp: organization.whatsapp,\n whitelabel: organization.whitelabel,\n tiflux_api: organization.tiflux_api,\n organization_name: organization.organization_name,\n social_name: organization.social_name,\n social_revenue: organization.social_revenue,\n organization_telephone: organization.organization_telephone,\n cep: organization.cep,\n city: organization.city,\n street: organization.street,\n number: organization.number,\n neighborhood: organization.neighborhood,\n state: organization.state,\n complement: organization.complement,\n financial_name: organization.billing_name,\n financial_email: organization.billing_email,\n financial_telephone: organization.billing_phone,\n subscriber_name: organization.subscriber_name,\n subscriber_email: organization.subscriber_email,\n });\n } else if (voucher) {\n setConfirmation({\n ...confirmation,\n voucher_id: voucher.id,\n voucher_name: voucher.name,\n });\n }\n setLoading(false);\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [location]);\n\n function nextStep() {\n setCurrent(current + 1);\n }\n\n function prevStep() {\n setCurrent(current - 1);\n }\n\n function newAutoBuy() {\n setPackageOptions([]);\n setConfirmation({\n ...confirmation,\n according_with_values: false,\n accept_terms: false,\n privacity_terms: false,\n });\n setCurrent(0);\n }\n\n function onChangeStep(current: any) {\n setCurrent(current);\n }\n\n function disabledStep3() {\n if (\n confirmation.tiflux_license > 0 &&\n confirmation.platform_chat > 0 &&\n confirmation.organization_name &&\n confirmation.social_name &&\n confirmation.social_revenue &&\n confirmation.organization_telephone &&\n confirmation.city &&\n confirmation.state &&\n confirmation.neighborhood &&\n confirmation.street &&\n confirmation.number &&\n confirmation.cep &&\n current !== 4\n ) {\n return false;\n } else {\n return true;\n }\n }\n\n return (\n \n
\n {/*
*/}\n \n \n \n
\n \"logo\"\n
\n \n
\n
\n \n \n \n \n \n {loading && }\n {!loading && (\n \n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n \n )}\n \n \n \n {loading && (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n {!loading && (\n
\n {current === 0 && (\n \n )}\n {current === 3 && (\n \n )}\n {current === 1 && (\n \n )}\n {current === 2 && (\n \n )}\n {current === 4 && (\n \n )}\n {current === 5 && }\n
\n )}\n \n
\n
\n );\n}\n\nexport default Accept;\n","import React from 'react'\nimport { BrowserRouter, Route, Switch } from 'react-router-dom'\nimport Accept from '../pages/Accept'\n\nfunction AcceptRoutes() {\n return (\n \n (\n \n )}\n />\n \n )\n}\n\nconst Routes: React.FC = () => {\n return (\n \n \n \n )\n}\n\nexport default Routes\n","import i18n from 'i18next'\nimport { initReactI18next } from 'react-i18next'\n\nimport translationEN from './en/translation.json'\nimport translationPT from './pt_BR/translation.json'\n\n// the translations\nconst resources = {\n en: {\n translation: translationEN\n },\n pt_BR: {\n translation: translationPT\n }\n}\n\ni18n.use(initReactI18next).init({\n resources,\n lng: navigator.language,\n fallbackLng: 'pt_BR',\n interpolation: {\n escapeValue: false\n }\n})\nexport default i18n\n","import React from 'react';\nimport './assets/styles/global.less';\nimport Routes from './routes';\nimport './I18n'\nimport { ConfigProvider } from 'antd';\n\n\nimport locale from 'antd/lib/locale/pt_BR';\n\n\nfunction App() {\n return (\n \n \n \n );\n}\n\nexport default App;\n","import 'react-app-polyfill/ie11'\nimport 'react-app-polyfill/stable'\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport App from './App'\n\n// ReactDOM.render(\n// \n// \n// ,\n// document.getElementById('root')\n// )\nReactDOM.render(, document.getElementById('root'))"],"sourceRoot":""}