@bigbinary/neeto-integrations-frontend 4.2.8 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/app/javascript/src/translations/ar.json +6 -6
  2. package/app/javascript/src/translations/bg.json +5 -5
  3. package/app/javascript/src/translations/ca.json +8 -8
  4. package/app/javascript/src/translations/cs.json +5 -5
  5. package/app/javascript/src/translations/da.json +2 -2
  6. package/app/javascript/src/translations/de.json +2 -2
  7. package/app/javascript/src/translations/en.json +9 -9
  8. package/app/javascript/src/translations/es-MX.json +8 -8
  9. package/app/javascript/src/translations/es.json +3 -3
  10. package/app/javascript/src/translations/et.json +6 -6
  11. package/app/javascript/src/translations/fi.json +3 -3
  12. package/app/javascript/src/translations/fil.json +9 -9
  13. package/app/javascript/src/translations/fr.json +3 -3
  14. package/app/javascript/src/translations/he.json +4 -4
  15. package/app/javascript/src/translations/hi.json +5 -5
  16. package/app/javascript/src/translations/hr.json +5 -5
  17. package/app/javascript/src/translations/hu.json +2 -2
  18. package/app/javascript/src/translations/id.json +5 -5
  19. package/app/javascript/src/translations/it.json +5 -5
  20. package/app/javascript/src/translations/ja.json +9 -9
  21. package/app/javascript/src/translations/ko.json +5 -5
  22. package/app/javascript/src/translations/lv.json +3 -3
  23. package/app/javascript/src/translations/nl.json +2 -2
  24. package/app/javascript/src/translations/pl.json +2 -2
  25. package/app/javascript/src/translations/pt-BR.json +1 -1
  26. package/app/javascript/src/translations/pt.json +2 -2
  27. package/app/javascript/src/translations/ro.json +6 -6
  28. package/app/javascript/src/translations/ru.json +3 -3
  29. package/app/javascript/src/translations/sk.json +3 -3
  30. package/app/javascript/src/translations/sl.json +4 -4
  31. package/app/javascript/src/translations/sv.json +3 -3
  32. package/app/javascript/src/translations/th.json +4 -4
  33. package/app/javascript/src/translations/tr.json +9 -9
  34. package/app/javascript/src/translations/uk.json +4 -4
  35. package/app/javascript/src/translations/vi.json +9 -9
  36. package/app/javascript/src/translations/zh-CN.json +1 -1
  37. package/app/javascript/src/translations/zh-TW.json +2 -2
  38. package/dist/.ready +1 -1
  39. package/dist/Connect.js +1 -3
  40. package/dist/Connect.js.map +1 -1
  41. package/dist/Daily.js +2 -2
  42. package/dist/Daily.js.map +1 -1
  43. package/dist/DailyForm.js +2 -2
  44. package/dist/DailyForm.js.map +1 -1
  45. package/dist/Demo.js.map +1 -1
  46. package/dist/DisconnectAlert.js +1 -3
  47. package/dist/DisconnectAlert.js.map +1 -1
  48. package/dist/Finish.js +29 -6
  49. package/dist/Finish.js.map +1 -1
  50. package/dist/GoogleCalendar.js +1 -4
  51. package/dist/GoogleCalendar.js.map +1 -1
  52. package/dist/Manage.js +1 -3
  53. package/dist/Manage.js.map +1 -1
  54. package/dist/Modal.js.map +1 -1
  55. package/dist/Telnyx.js +8 -8
  56. package/dist/Telnyx.js.map +1 -1
  57. package/dist/Twilio.js +2 -4
  58. package/dist/Twilio.js.map +1 -1
  59. package/dist/WalkthroughModal.js.map +1 -1
  60. package/dist/ZapierForm.js +2 -6
  61. package/dist/ZapierForm.js.map +1 -1
  62. package/dist/Zoom.js +1 -1
  63. package/dist/Zoom.js.map +1 -1
  64. package/dist/cjs/Connect.js +1 -3
  65. package/dist/cjs/Connect.js.map +1 -1
  66. package/dist/cjs/Daily.js +2 -2
  67. package/dist/cjs/Daily.js.map +1 -1
  68. package/dist/cjs/DailyForm.js +2 -2
  69. package/dist/cjs/DailyForm.js.map +1 -1
  70. package/dist/cjs/Demo.js.map +1 -1
  71. package/dist/cjs/DisconnectAlert.js +1 -3
  72. package/dist/cjs/DisconnectAlert.js.map +1 -1
  73. package/dist/cjs/Finish.js +48 -6
  74. package/dist/cjs/Finish.js.map +1 -1
  75. package/dist/cjs/GoogleCalendar.js +1 -4
  76. package/dist/cjs/GoogleCalendar.js.map +1 -1
  77. package/dist/cjs/Manage.js +1 -3
  78. package/dist/cjs/Manage.js.map +1 -1
  79. package/dist/cjs/Modal.js.map +1 -1
  80. package/dist/cjs/Telnyx.js +8 -8
  81. package/dist/cjs/Telnyx.js.map +1 -1
  82. package/dist/cjs/Twilio.js +2 -4
  83. package/dist/cjs/Twilio.js.map +1 -1
  84. package/dist/cjs/WalkthroughModal.js.map +1 -1
  85. package/dist/cjs/ZapierForm.js +2 -6
  86. package/dist/cjs/ZapierForm.js.map +1 -1
  87. package/dist/cjs/Zoom.js +1 -1
  88. package/dist/cjs/Zoom.js.map +1 -1
  89. package/dist/cjs/index.js +5 -5
  90. package/dist/cjs/index.js.map +1 -1
  91. package/dist/cjs/v2/Connect.js +48 -46
  92. package/dist/cjs/v2/Connect.js.map +1 -1
  93. package/dist/cjs/v2/Daily.js +5 -3
  94. package/dist/cjs/v2/Daily.js.map +1 -1
  95. package/dist/cjs/v2/DailyForm.js +2 -2
  96. package/dist/cjs/v2/DailyForm.js.map +1 -1
  97. package/dist/cjs/v2/Demo.js.map +1 -1
  98. package/dist/cjs/v2/DisconnectAlert.js +1 -3
  99. package/dist/cjs/v2/DisconnectAlert.js.map +1 -1
  100. package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +1 -3
  101. package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
  102. package/dist/cjs/v2/Finish.js +4 -6
  103. package/dist/cjs/v2/Finish.js.map +1 -1
  104. package/dist/cjs/v2/GoogleCalendar.js +1 -4
  105. package/dist/cjs/v2/GoogleCalendar.js.map +1 -1
  106. package/dist/cjs/v2/GoogleMapsForm.js +2 -2
  107. package/dist/cjs/v2/GoogleMapsForm.js.map +1 -1
  108. package/dist/cjs/v2/GoogleMapsIcon.js.map +1 -1
  109. package/dist/cjs/v2/GoogleMapsManage.js +5 -3
  110. package/dist/cjs/v2/GoogleMapsManage.js.map +1 -1
  111. package/dist/cjs/v2/Manage.js +70 -91
  112. package/dist/cjs/v2/Manage.js.map +1 -1
  113. package/dist/cjs/v2/Modal.js +1 -1
  114. package/dist/cjs/v2/Modal.js.map +1 -1
  115. package/dist/cjs/v2/SmsLogs.js +3 -9
  116. package/dist/cjs/v2/SmsLogs.js.map +1 -1
  117. package/dist/cjs/v2/Telnyx.js +26 -43
  118. package/dist/cjs/v2/Telnyx.js.map +1 -1
  119. package/dist/cjs/v2/Twilio.js +20 -39
  120. package/dist/cjs/v2/Twilio.js.map +1 -1
  121. package/dist/cjs/v2/WalkthroughModal.js.map +1 -1
  122. package/dist/cjs/v2/ZapierForm.js +4 -7
  123. package/dist/cjs/v2/ZapierForm.js.map +1 -1
  124. package/dist/cjs/v2/Zoom.js +4 -2
  125. package/dist/cjs/v2/Zoom.js.map +1 -1
  126. package/dist/cjs/v2/index.js +11 -8
  127. package/dist/cjs/v2/index.js.map +1 -1
  128. package/dist/index-MS1ts-9f.js.map +1 -1
  129. package/dist/index-dxk7jTL7.js.map +1 -1
  130. package/dist/index.js +5 -5
  131. package/dist/index.js.map +1 -1
  132. package/dist/query-CyER0UTx.js.map +1 -1
  133. package/dist/query-DFg4la-L.js.map +1 -1
  134. package/dist/{useDailiesApi-CMyuK99l.js → useDailiesApi-BIZR1qiD.js} +2 -4
  135. package/dist/useDailiesApi-BIZR1qiD.js.map +1 -0
  136. package/dist/{useDailiesApi-BmI2LDF7.js → useDailiesApi-BS8aif9t.js} +2 -4
  137. package/dist/useDailiesApi-BS8aif9t.js.map +1 -0
  138. package/dist/useDisconnectionAlertsApi-BGaBOO_4.js.map +1 -1
  139. package/dist/useDisconnectionAlertsApi-BW25EN1l.js.map +1 -1
  140. package/dist/{useGoogleMapsApi-DypGXFnl.js → useGoogleMapsApi-DcJ5vTJZ.js} +2 -4
  141. package/dist/useGoogleMapsApi-DcJ5vTJZ.js.map +1 -0
  142. package/dist/{useGoogleMapsApi-BY5ZIbh1.js → useGoogleMapsApi-sMsxsnL9.js} +2 -4
  143. package/dist/useGoogleMapsApi-sMsxsnL9.js.map +1 -0
  144. package/dist/{useTelnyxApi-DH5XaYIo.js → useTelnyxApi-CqB3f44W.js} +2 -4
  145. package/dist/useTelnyxApi-CqB3f44W.js.map +1 -0
  146. package/dist/{useTelnyxApi-WH39oUwB.js → useTelnyxApi-fFpslv-E.js} +2 -4
  147. package/dist/useTelnyxApi-fFpslv-E.js.map +1 -0
  148. package/dist/{useTwilioApi-CYF8UIPN.js → useTwilioApi-BwkrNBtg.js} +2 -4
  149. package/dist/useTwilioApi-BwkrNBtg.js.map +1 -0
  150. package/dist/{useTwilioApi-nN6VRQYc.js → useTwilioApi-CEaEH5MG.js} +2 -4
  151. package/dist/useTwilioApi-CEaEH5MG.js.map +1 -0
  152. package/dist/useZoomApi-Be2unav5.js.map +1 -1
  153. package/dist/useZoomApi-i5CNstmT.js.map +1 -1
  154. package/dist/utils-fchHJTr3.js +44 -0
  155. package/dist/utils-fchHJTr3.js.map +1 -0
  156. package/dist/utils-jyxIYRHb.js +47 -0
  157. package/dist/utils-jyxIYRHb.js.map +1 -0
  158. package/dist/v2/Connect.js +48 -46
  159. package/dist/v2/Connect.js.map +1 -1
  160. package/dist/v2/Daily.js +5 -3
  161. package/dist/v2/Daily.js.map +1 -1
  162. package/dist/v2/DailyForm.js +2 -2
  163. package/dist/v2/DailyForm.js.map +1 -1
  164. package/dist/v2/Demo.js.map +1 -1
  165. package/dist/v2/DisconnectAlert.js +1 -3
  166. package/dist/v2/DisconnectAlert.js.map +1 -1
  167. package/dist/v2/DisconnectedIntegrationsRibbon.js +1 -3
  168. package/dist/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
  169. package/dist/v2/Finish.js +6 -8
  170. package/dist/v2/Finish.js.map +1 -1
  171. package/dist/v2/GoogleCalendar.js +1 -4
  172. package/dist/v2/GoogleCalendar.js.map +1 -1
  173. package/dist/v2/GoogleMapsForm.js +2 -2
  174. package/dist/v2/GoogleMapsForm.js.map +1 -1
  175. package/dist/v2/GoogleMapsIcon.js.map +1 -1
  176. package/dist/v2/GoogleMapsManage.js +5 -3
  177. package/dist/v2/GoogleMapsManage.js.map +1 -1
  178. package/dist/v2/Manage.js +72 -93
  179. package/dist/v2/Manage.js.map +1 -1
  180. package/dist/v2/Modal.js +1 -1
  181. package/dist/v2/Modal.js.map +1 -1
  182. package/dist/v2/SmsLogs.js +3 -9
  183. package/dist/v2/SmsLogs.js.map +1 -1
  184. package/dist/v2/Telnyx.js +27 -44
  185. package/dist/v2/Telnyx.js.map +1 -1
  186. package/dist/v2/Twilio.js +21 -40
  187. package/dist/v2/Twilio.js.map +1 -1
  188. package/dist/v2/WalkthroughModal.js.map +1 -1
  189. package/dist/v2/ZapierForm.js +4 -7
  190. package/dist/v2/ZapierForm.js.map +1 -1
  191. package/dist/v2/Zoom.js +4 -2
  192. package/dist/v2/Zoom.js.map +1 -1
  193. package/dist/v2/index.js +11 -8
  194. package/dist/v2/index.js.map +1 -1
  195. package/package.json +19 -18
  196. package/dist/success-C6rQdhhF.js +0 -30
  197. package/dist/success-C6rQdhhF.js.map +0 -1
  198. package/dist/success-CsNvTPBG.js +0 -51
  199. package/dist/success-CsNvTPBG.js.map +0 -1
  200. package/dist/useDailiesApi-BmI2LDF7.js.map +0 -1
  201. package/dist/useDailiesApi-CMyuK99l.js.map +0 -1
  202. package/dist/useGoogleMapsApi-BY5ZIbh1.js.map +0 -1
  203. package/dist/useGoogleMapsApi-DypGXFnl.js.map +0 -1
  204. package/dist/useTelnyxApi-DH5XaYIo.js.map +0 -1
  205. package/dist/useTelnyxApi-WH39oUwB.js.map +0 -1
  206. package/dist/useTwilioApi-CYF8UIPN.js.map +0 -1
  207. package/dist/useTwilioApi-nN6VRQYc.js.map +0 -1
@@ -14,10 +14,12 @@ require('@bigbinary/neeto-commons-frontend/constants');
14
14
  require('@bigbinary/neeto-commons-frontend/react-utils');
15
15
  require('axios');
16
16
  require('../../query-DFg4la-L.js');
17
- require('@babel/runtime/helpers/defineProperty');
17
+ require('@babel/runtime/helpers/objectSpread2');
18
18
  require('@bigbinary/neeto-commons-frontend/v2/react-utils');
19
- require('./DisconnectAlert.js');
19
+ require('@bigbinary/neeto-molecules/v2/CardLayout');
20
+ require('../../utils-jyxIYRHb.js');
20
21
  require('@babel/runtime/helpers/objectWithoutProperties');
22
+ require('./DisconnectAlert.js');
21
23
  require('@bigbinary/neeto-commons-frontend/v2/react-utils/withT');
22
24
 
23
25
  var Zoom = function Zoom(_ref) {
@@ -1 +1 @@
1
- {"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["Zoom","_ref","_ref$connectUrl","connectUrl","_ref$description","description","_ref$onDisconnect","onDisconnect","noop","_ref$calloutProps","calloutProps","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useShowZoom","useShowZoom","_useShowZoom$data","data","_useShowZoom$data2","_useShowZoom$data2$me","metadata","_useShowZoom$data2$me2","_useShowZoom$data2$me3","email","isLoading","_useDestroyZoom","useDestroyZoom","onSuccess","destroyIntegration","mutate","isDisconnecting","isPending","isConnected","isPresent","handleDisconnect","_jsx","className","children","Spinner","ManageIntegrations","Icon","ZoomIcon","integration","Trans","components","underline","i18nKey","values","title","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAKJ;AAAA,EAAA,IAAAC,eAAA,GAAAD,IAAA,CAJJE,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAH,IAAA,CACfI,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,iBAAA,GAAAL,IAAA,CAChBM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAGE,cAAI,GAAAF,iBAAA;IAAAG,iBAAA,GAAAR,IAAA,CACnBS,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,iBAAA;AAEjB,EAAA,IAAAE,eAAA,GAAcC,2BAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AAET,EAAA,IAAAC,SAAA,GAA0DC,cAAQ,CAAC,KAAK,CAAC;IAA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CAACG,kBAAO,EAAA,EAAE;AAAC,KACR,CAAC;AAEV,EAAA;EAEA,oBACEH,cAAA,CAACI,SAAkB,EAAA;AAEfnC,IAAAA,YAAY,EAAZA,YAAY;AACZP,IAAAA,UAAU,EAAVA,UAAU;AACVmC,IAAAA,WAAW,EAAXA,WAAW;AACXpB,IAAAA,qBAAqB,EAArBA,qBAAqB;AACrBkB,IAAAA,eAAe,EAAfA,eAAe;AACfjB,IAAAA,wBAAwB,EAAxBA,wBAAwB;AAE1B2B,IAAAA,IAAI,EAAEC,QAAS;AACfC,IAAAA,WAAW,EAAC,MAAM;AAClB3C,IAAAA,WAAW,EACTiC,WAAW,gBACTG,cAAA,CAACQ,kBAAK,EAAA;AACJC,MAAAA,UAAU,EAAE;AAAEC,QAAAA,SAAS,eAAEV,cAAA,CAAA,GAAA,EAAA;AAAGC,UAAAA,SAAS,EAAC;SAAe;OAAI;AACzDU,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAExB,QAAAA,KAAK,EAALA;AAAM;KACjB,CAAC,GAEFxB,WAEH;IACDiD,KAAK,EACHhB,WAAW,GACPzB,CAAC,CAAC,kCAAkC,CAAC,GACrCA,CAAC,CAAC,gCAAgC,CACvC;IACD0C,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQpC,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CZ,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQiC,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
1
+ {"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["noop","useTranslation","useState","useShowZoom","useDestroyZoom","isPresent","_jsx","Spinner","ManageIntegrations","Trans"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAM,IAAI,GAAG,SAAP,IAAI,CAAA,IAAA,EAKJ;AAAA,EAAA,IAAA,eAAA,GAAA,IAAA,CAJJ,UAAU;AAAV,IAAA,UAAU,gCAAG,EAAE,GAAA,eAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACf,WAAW;AAAX,IAAA,WAAW,iCAAG,EAAE,GA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AgB,GAAG,SAAnB,gBAAgB,GAAA;IAAA,OAAS,kBAAkB,CAAC,MAAM,CAAC;AAAA,EAAA,CAAA;AAEzD,EAAA,IAAI,SAAS,EAAE;IACb,oBACEC,cAAA,CAAA,KAAA,EAAA;AAAK,MAAA,SAAS,EAAC,gDAAgD;MAAA,QAAA,eAC7DA,cAAA,CAACC,kBAAO,EAAA,EAAE;AAAC,KACR,CAAC;AAEV,EAAA;AAEA,EAAA,oBACED,eAACE,SAAkB,EAAA;AAEf,IAAA,YAAY,EAAZ,YAAY;AACZ,IAAA,UAAU,EAAV,UAAU;AACV,IAAA,WAAW,EAAX,WAAW;AACX,IAAA,qBAAqB,EAArB,qBAAqB;AACrB,IAAA,eAAe,EAAf,eAAe;AACf,IAAA,wBAAwB,EAAxB,wBAAwB;AAE1B,IAAA,IAAI,EAAE,QAAS;AACf,IAAA,WAAW,EAAC,MAAM;AAClB,IAAA,WAAW,EACT,WAAW,gBACTF,cAAA,CAACG,kBAAK,EAAA;AACJ,MAAA,UAAU,EAAE;AAAE,QAAA,SAAS,eAAEH,cAAA,CAAA,GAAA,EAAA;AAAG,UAAA,SAAS,EAAC;SAAe;OAAI;AACzD,MAAA,OAAO,EAAC,gCAAgC;AACxC,MAAA,MAAM,EAAE;AAAE,QAAA,KAAK,EAAL;AAAM;KACjB,CAAC,GAEF,WAEH;IACD,KAAK,EACH,WAAW,GACP,CAAC,CAAC,kCAAkC,CAAC,GACrC,CAAC,CAAC,gCAAgC,CACvC;IACD,OAAO,EAAE,SAAT,OAAO,GAAA;MAAA,OAAQ,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/C,YAAY,EAAE,SAAd,YAAY,GAAA;MAAA,OAAQ,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
@@ -19,12 +19,14 @@ var v2_Connect = require('./Connect.js');
19
19
  var v2_Demo = require('./Demo.js');
20
20
  var v2_Finish = require('./Finish.js');
21
21
  var v2_WalkthroughModal = require('./WalkthroughModal.js');
22
- require('@babel/runtime/helpers/defineProperty');
22
+ require('@babel/runtime/helpers/objectSpread2');
23
23
  require('@bigbinary/neeto-atoms');
24
24
  require('@bigbinary/neeto-cist');
25
25
  require('@bigbinary/neeto-commons-frontend/v2/react-utils');
26
- require('react/jsx-runtime');
26
+ require('@bigbinary/neeto-molecules/v2/CardLayout');
27
+ require('../../utils-jyxIYRHb.js');
27
28
  require('@babel/runtime/helpers/objectWithoutProperties');
29
+ require('react/jsx-runtime');
28
30
  require('@bigbinary/neeto-commons-frontend/v2/react-utils/withT');
29
31
  require('@babel/runtime/helpers/slicedToArray');
30
32
  require('react');
@@ -38,22 +40,24 @@ require('@bigbinary/neeto-commons-frontend/constants');
38
40
  require('@bigbinary/neeto-commons-frontend/react-utils');
39
41
  require('axios');
40
42
  require('i18next');
41
- require('../../useDailiesApi-BmI2LDF7.js');
43
+ require('../../useDailiesApi-BS8aif9t.js');
42
44
  require('@bigbinary/neeto-commons-frontend/v2/utils');
43
45
  require('@bigbinary/neeto-icons/misc/Daily');
44
46
  require('@bigbinary/neeto-molecules/v2/CopyToClipboardButton');
45
47
  require('@bigbinary/neeto-atoms/formik');
46
- require('@bigbinary/neeto-molecules/v2/CardLayout');
47
48
  require('@bigbinary/neeto-molecules/v2/Container');
48
49
  require('@bigbinary/neeto-molecules/v2/Header');
49
50
  require('yup');
50
51
  require('@babel/runtime/helpers/toConsumableArray');
51
52
  require('@bigbinary/neeto-icons/misc/GoogleCalendar');
52
53
  require('@bigbinary/neeto-icons/misc/Google');
53
- require('../../useGoogleMapsApi-BY5ZIbh1.js');
54
- require('../../useTelnyxApi-DH5XaYIo.js');
54
+ require('../../useGoogleMapsApi-sMsxsnL9.js');
55
+ require('@bigbinary/neeto-atoms/primitives');
56
+ require('@bigbinary/neeto-molecules/v2/OptionCard');
57
+ require('../../useTelnyxApi-CqB3f44W.js');
58
+ require('@babel/runtime/helpers/regenerator');
55
59
  require('@babel/runtime/helpers/asyncToGenerator');
56
- require('../../useTwilioApi-CYF8UIPN.js');
60
+ require('../../useTwilioApi-BwkrNBtg.js');
57
61
  require('@bigbinary/neeto-icons/misc/Zoom');
58
62
  require('../../useZoomApi-Be2unav5.js');
59
63
  require('classnames');
@@ -63,7 +67,6 @@ require('@bigbinary/neeto-molecules/v2/TableWrapper');
63
67
  require('@bigbinary/neeto-filters-frontend/v2/Bar');
64
68
  require('@bigbinary/neeto-molecules/v2/SubHeader');
65
69
  require('../../index-dxk7jTL7.js');
66
- require('../../success-CsNvTPBG.js');
67
70
 
68
71
 
69
72
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-MS1ts-9f.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","ReactPropTypesSecret_1","require$$0","emptyFunction","emptyFunctionWithReset","resetWarningCache","factoryWithThrowingShims","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","isRequired","getShim","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","propTypesModule","exports"],"mappings":";;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAAC,sBAAc,GAAGD,sBAAoB;;;;;;;;ACFrC,IAAIA,oBAAoB,GAAGE,sBAAqC;AAEhE,SAASC,aAAaA,GAAG,CAAA;AACzB,SAASC,sBAAsBA,GAAG,CAAA;AAClCA,sBAAsB,CAACC,iBAAiB,GAAGF,aAAa;AAExD,IAAAG,wBAAc,GAAG,SAAjBA,wBAAcA,GAAc;AAC1B,EAAA,SAASC,IAAIA,CAACC,KAAK,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,MAAM,EAAE;IAC5E,IAAIA,MAAM,KAAKb,oBAAoB,EAAE;AACzC;AACM,MAAA;AACN,IAAA;IACI,IAAIc,GAAG,GAAG,IAAIC,KAAK,CACjB,sFAAsF,GACtF,+CAA+C,GAC/C,gDACN,CAAK;IACDD,GAAG,CAACE,IAAI,GAAG,qBAAqB;AAChC,IAAA,MAAMF,GAAG;AACb,EAAA;EACEP,IAAI,CAACU,UAAU,GAAGV,IAAI;EACtB,SAASW,OAAOA,GAAG;AACjB,IAAA,OAAOX,IAAI;AACf,EAAA;AACA;AACA;AACE,EAAA,IAAIY,cAAc,GAAG;AACnBC,IAAAA,KAAK,EAAEb,IAAI;AACXc,IAAAA,MAAM,EAAEd,IAAI;AACZe,IAAAA,IAAI,EAAEf,IAAI;AACVgB,IAAAA,IAAI,EAAEhB,IAAI;AACViB,IAAAA,MAAM,EAAEjB,IAAI;AACZkB,IAAAA,MAAM,EAAElB,IAAI;AACZmB,IAAAA,MAAM,EAAEnB,IAAI;AACZoB,IAAAA,MAAM,EAAEpB,IAAI;AAEZqB,IAAAA,GAAG,EAAErB,IAAI;AACTsB,IAAAA,OAAO,EAAEX,OAAO;AAChBY,IAAAA,OAAO,EAAEvB,IAAI;AACbwB,IAAAA,WAAW,EAAExB,IAAI;AACjByB,IAAAA,UAAU,EAAEd,OAAO;AACnBe,IAAAA,IAAI,EAAE1B,IAAI;AACV2B,IAAAA,QAAQ,EAAEhB,OAAO;AACjBiB,IAAAA,KAAK,EAAEjB,OAAO;AACdkB,IAAAA,SAAS,EAAElB,OAAO;AAClBmB,IAAAA,KAAK,EAAEnB,OAAO;AACdoB,IAAAA,KAAK,EAAEpB,OAAO;AAEdqB,IAAAA,cAAc,EAAEnC,sBAAsB;AACtCC,IAAAA,iBAAiB,EAAEF;GACpB;EAEDgB,cAAc,CAACqB,SAAS,GAAGrB,cAAc;AAEzC,EAAA,OAAOA,cAAc;AACvB,CAAC;;;;;;;;AClDM;AACP;AACA;AACEsB,EAAAA,SAAA,CAAAC,OAAc,GAAGxC,wBAAqC,EAAE;AAC1D;;;;;;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index-MS1ts-9f.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","require$$0","propTypesModule"],"mappings":";;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAA,sBAAc,GAAGA,sBAAoB;;;;;;;;ACFrC,IAAI,oBAAoB,GAAGC,sBAAqC;AAEhE,SAAS,aAAa,GAAG,CAAA;AACzB,SAAS,sBAAsB,GAAG,CAAA;AAClC,sBAAsB,CAAC,iBAAiB,GAAG,aAAa;AAExD,IAAA,wBAAc,GAAG,SAAjB,wBAAc,GAAc;AAC1B,EAAA,SAAS,IAAI,CAAC,KAAK,EAAE,Q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2]}
@@ -1 +1 @@
1
- {"version":3,"file":"index-dxk7jTL7.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","ReactPropTypesSecret_1","require$$0","emptyFunction","emptyFunctionWithReset","resetWarningCache","factoryWithThrowingShims","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","isRequired","getShim","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","propTypesModule","exports"],"mappings":";;;;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAAC,sBAAc,GAAGD,sBAAoB;;;;;;;;ACFrC,IAAIA,oBAAoB,GAAGE,sBAAqC;AAEhE,SAASC,aAAaA,GAAG,CAAA;AACzB,SAASC,sBAAsBA,GAAG,CAAA;AAClCA,sBAAsB,CAACC,iBAAiB,GAAGF,aAAa;AAExD,IAAAG,wBAAc,GAAG,SAAjBA,wBAAcA,GAAc;AAC1B,EAAA,SAASC,IAAIA,CAACC,KAAK,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,MAAM,EAAE;IAC5E,IAAIA,MAAM,KAAKb,oBAAoB,EAAE;AACzC;AACM,MAAA;AACN,IAAA;IACI,IAAIc,GAAG,GAAG,IAAIC,KAAK,CACjB,sFAAsF,GACtF,+CAA+C,GAC/C,gDACN,CAAK;IACDD,GAAG,CAACE,IAAI,GAAG,qBAAqB;AAChC,IAAA,MAAMF,GAAG;AACb,EAAA;EACEP,IAAI,CAACU,UAAU,GAAGV,IAAI;EACtB,SAASW,OAAOA,GAAG;AACjB,IAAA,OAAOX,IAAI;AACf,EAAA;AACA;AACA;AACE,EAAA,IAAIY,cAAc,GAAG;AACnBC,IAAAA,KAAK,EAAEb,IAAI;AACXc,IAAAA,MAAM,EAAEd,IAAI;AACZe,IAAAA,IAAI,EAAEf,IAAI;AACVgB,IAAAA,IAAI,EAAEhB,IAAI;AACViB,IAAAA,MAAM,EAAEjB,IAAI;AACZkB,IAAAA,MAAM,EAAElB,IAAI;AACZmB,IAAAA,MAAM,EAAEnB,IAAI;AACZoB,IAAAA,MAAM,EAAEpB,IAAI;AAEZqB,IAAAA,GAAG,EAAErB,IAAI;AACTsB,IAAAA,OAAO,EAAEX,OAAO;AAChBY,IAAAA,OAAO,EAAEvB,IAAI;AACbwB,IAAAA,WAAW,EAAExB,IAAI;AACjByB,IAAAA,UAAU,EAAEd,OAAO;AACnBe,IAAAA,IAAI,EAAE1B,IAAI;AACV2B,IAAAA,QAAQ,EAAEhB,OAAO;AACjBiB,IAAAA,KAAK,EAAEjB,OAAO;AACdkB,IAAAA,SAAS,EAAElB,OAAO;AAClBmB,IAAAA,KAAK,EAAEnB,OAAO;AACdoB,IAAAA,KAAK,EAAEpB,OAAO;AAEdqB,IAAAA,cAAc,EAAEnC,sBAAsB;AACtCC,IAAAA,iBAAiB,EAAEF;GACpB;EAEDgB,cAAc,CAACqB,SAAS,GAAGrB,cAAc;AAEzC,EAAA,OAAOA,cAAc;AACvB,CAAC;;;;;;;;AClDM;AACP;AACA;AACEsB,EAAAA,SAAA,CAAAC,OAAc,GAAGxC,wBAAqC,EAAE;AAC1D;;;;;;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index-dxk7jTL7.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","require$$0","propTypesModule"],"mappings":";;;;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAA,sBAAc,GAAGA,sBAAoB;;;;;;;;ACFrC,IAAI,oBAAoB,GAAGC,sBAAqC;AAEhE,SAAS,aAAa,GAAG,CAAA;AACzB,SAAS,sBAAsB,GAAG,CAAA;AAClC,sBAAsB,CAAC,iBAAiB,GAAG,aAAa;AAExD,IAAA,wBAAc,GAAG,SAAjB,wBAAc,GAAc;AAC1B,EAAA,SAAS,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE;IAC5E,IAAI,MAAM,KAAK,oBAAoB,EAAE;AACzC;AACM,MAAA;AACN,IAAA;IACI,IAAI,GAAG,GAAG,IAAI,KAAK,CACjB,sFAAsF,GACtF,+CAA+C,GAC/C,gDACN,CAAK;IACD,GAAG,CAAC,IAAI,GAAG,qBAAqB;AAChC,IAAA,MAAM,GAAG;AACb,EAAA;EACE,IAAI,CAAC,UAAU,GAAG,IAAI;AACtB,EAAA,SAAS,OAAO,GAAG;AACjB,IAAA,OAAO,IAAI;AACf,EAAA;AACA;AACA;AACE,EAAA,IAAI,cAAc,GAAG;AACnB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AAEZ,IAAA,GAAG,EAAE,IAAI;AACT,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,OAAO;AAEd,IAAA,cAAc,EAAE,sBAAsB;AACtC,IAAA,iBAAiB,EAAE;GACpB;EAED,cAAc,CAAC,SAAS,GAAG,cAAc;AAEzC,EAAA,OAAO,cAAc;AACvB,CAAC;;;;;;;;AClDM;AACP;AACA;AACE,EAAAC,SAAA,CAAA,OAAc,GAAGD,wBAAqC,EAAE;AAC1D;;;;;;","x_google_ignoreList":[0,1,2]}
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ export { default as Demo } from './Demo.js';
21
21
  export { default as Finish } from './Finish.js';
22
22
  export { default as WalkthroughModal } from './WalkthroughModal.js';
23
23
  export { d as disconnectionAlertsQueryKey } from './query-CyER0UTx.js';
24
- import '@babel/runtime/helpers/defineProperty';
24
+ import '@babel/runtime/helpers/objectSpread2';
25
25
  import '@bigbinary/neeto-cist';
26
26
  import '@bigbinary/neeto-commons-frontend/react-utils';
27
27
  import '@bigbinary/neeto-icons/Check';
@@ -36,7 +36,7 @@ import '@bigbinary/neetoui/Alert';
36
36
  import '@tanstack/react-query';
37
37
  import '@bigbinary/neeto-commons-frontend/constants';
38
38
  import 'axios';
39
- import './useDailiesApi-CMyuK99l.js';
39
+ import './useDailiesApi-BIZR1qiD.js';
40
40
  import '@bigbinary/neeto-commons-frontend/utils';
41
41
  import '@bigbinary/neeto-icons/misc/Daily';
42
42
  import '@bigbinary/neeto-molecules/CopyToClipboardButton';
@@ -52,15 +52,15 @@ import '@babel/runtime/helpers/toConsumableArray';
52
52
  import '@bigbinary/neeto-icons/misc/GoogleCalendar';
53
53
  import '@bigbinary/neeto-icons/misc/Google';
54
54
  import '@bigbinary/neetoui/formik/Select';
55
- import './useTelnyxApi-WH39oUwB.js';
55
+ import './useTelnyxApi-fFpslv-E.js';
56
+ import '@babel/runtime/helpers/regenerator';
56
57
  import '@babel/runtime/helpers/asyncToGenerator';
57
- import './useTwilioApi-nN6VRQYc.js';
58
+ import './useTwilioApi-CEaEH5MG.js';
58
59
  import '@bigbinary/neeto-icons/misc/Zoom';
59
60
  import './useZoomApi-i5CNstmT.js';
60
61
  import '@bigbinary/neetoui/Modal';
61
62
  import 'classnames';
62
63
  import './index-MS1ts-9f.js';
63
- import './success-C6rQdhhF.js';
64
64
 
65
65
  var getHasOnlyUPIIntegration = function getHasOnlyUPIIntegration(alerts) {
66
66
  return alerts.length === 1 && alerts[0].serviceName === "eupi";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonDefaultMessage","t","count","getDisconnectionRibbonI18nKey","integrationRouteMap","hasOnlyUPIIntegration","eupi","IntegrationLinks","_ref","map","alert","index","_integrationRouteMap$","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","filter","isEmpty","singleAlert","connectPath","Tag","size","style","onClose","Trans","defaults","components","integrations","connectLink","i18nKey"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM,EAAA;AAAA,EAAA,OACrCA,MAAM,CAACC,MAAM,KAAK,CAAC,IAAID,MAAM,CAAC,CAAC,CAAC,CAACE,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAMC,oCAAoC,GAAG,SAAvCA,oCAAoCA,CAAGH,MAAM,EAAA;EAAA,OACxDD,wBAAwB,CAACC,MAAM,CAAC,GAC5BI,CAAC,CAAC,8DAA8D,EAAE;IAChEC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC,GACFG,CAAC,CAAC,+CAA+C,EAAE;IACjDC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC;AAAA,CAAA;AAED,IAAMK,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAIN,MAAM,EAAEO,mBAAmB,EAAK;EAC5E,IAAMC,qBAAqB,GACzBT,wBAAwB,CAACC,MAAM,CAAC,IAAIO,mBAAmB,CAACE,IAAI;AAE9D,EAAA,OAAOD,qBAAqB,GACxB,8DAA8D,GAC9D,+CAA+C;AACrD,CAAC;;ACPD,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;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Y,eACVlC,GAAA,CAACZ,gBAAgB,EAAA;AACTH,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBP,YAAAA,MAAM,EAAE4C;AAAY,WACrB,CACF;UACDa,WAAW,eACTnC,GAAA,CAACC,IAAI,EAAA;AAACC,YAAAA,SAAS,EAAC,yBAAyB;AAACC,YAAAA,EAAE,EAAEuB;WAAc;SAE9D;AACFU,QAAAA,OAAO,EAAEpD,6BAA6B,CACpCsC,WAAW,EACXrC,mBACF;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,wBAAwB,GAAG,SAA3B,wBAAwB,CAAG,MAAM,EAAA;AAAA,EAAA,OACrC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD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AT,OAAO,GAAA;MAAA,OAAQ,WAAW,CAAC,IAAI,CAAC;IAAA,CAAC;IAAA,QAAA,eAEjCA,GAAA,CAAA,MAAA,EAAA;AAAM,MAAA,SAAS,EAAC,QAAQ;AAAA,MAAA,QAAA,eACtBA,IAAC,KAAK,EAAA;QACJ,KAAK,EAAE,WAAW,CAAC,MAAO;AAC1B,QAAA,QAAQ,EAAE,oCAAoC,CAAC,WAAW,CAAE;AAC5D,QAAA,UAAU,EAAE;UACV,YAAY,eACVA,IAAC,gBAAgB,EAAA;AACT,YAAA,mBAAmB,EAAnB,mBAAmB;AACzB,YAAA,MAAM,EAAE;AAAY,WACrB,CACF;UACD,WAAW,eACTA,IAAC,IAAI,EAAA;AAAC,YAAA,SAAS,EAAC,yBAAyB;AAAC,YAAA,EAAE,EAAE;WAAc;SAE9D;AACF,QAAA,OAAO,EAAE,6BAA6B,CACpC,WAAW,EACX,mBACF;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-CyER0UTx.js","sources":["../app/javascript/src/constants/urls.js","../app/javascript/src/constants/query.js"],"sourcesContent":["export const INTEGRATIONS_ENGINE_BASE_URL = \"/neeto_integrations\";\nexport const TWILIO_CONFIGURATION_BASE_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/twilio/sms_configurations`;\nexport const INTEGRATIONS_ENGINE_DAILY_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/daily`;\nexport const INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\nexport const INTEGRATIONS_ENGINE_ZOOM_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/zoom`;\nexport const INTEGRATION_DETAILS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/status`;\nexport const TELNYX_PHONE_NUMBERS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/phone_numbers`;\nexport const TELNYX_SMS_CONFIGURATION_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/sms_configurations`;\nexport const DISCONNECTION_ALERTS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/disconnection_alerts`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];\n"],"names":["INTEGRATIONS_ENGINE_BASE_URL","TWILIO_CONFIGURATION_BASE_URL","concat","INTEGRATIONS_ENGINE_DAILY_URL","INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","INTEGRATIONS_ENGINE_ZOOM_URL","INTEGRATION_DETAILS_URL","TELNYX_PHONE_NUMBERS_URL","TELNYX_SMS_CONFIGURATION_URL","DISCONNECTION_ALERTS_URL","SMS_LOGS_URL","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","TWILIO_SENDER_OPTIONS","TELNYX_SMS_CONFIGURATION","DAILY_CO_DETAILS","GOOGLE_MAPS_DETAILS","ZOOM_DETAILS","DISCONNECTION_ALERTS","SMS_LOGS","SMS_LOG","disconnectionAlertsQueryKey","googleMapsQueryKey"],"mappings":"AAAO,IAAMA,4BAA4B,GAAG,qBAAqB;IACpDC,6BAA6B,GAAA,EAAA,CAAAC,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC/DG,6BAA6B,GAAA,EAAA,CAAAD,MAAA,CAAMF,4BAA4B,EAAA,QAAA;IAC/DI,mCAAmC,GAAA,EAAA,CAAAF,MAAA,CAAMF,4BAA4B,EAAA,cAAA;IACrEK,4BAA4B,GAAA,EAAA,CAAAH,MAAA,CAAMF,4BAA4B,EAAA,OAAA;IAC9DM,uBAAuB,GAAA,EAAA,CAAAJ,MAAA,CAAMF,4BAA4B,EAAA,SAAA;IACzDO,wBAAwB,GAAA,EAAA,CAAAL,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DQ,4BAA4B,GAAA,EAAA,CAAAN,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC9DS,wBAAwB,GAAA,EAAA,CAAAP,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DU,YAAY,GAAA,EAAA,CAAAR,MAAA,CAAMF,4BAA4B,EAAA,WAAA;;ACTpD,IAAMW,UAAU,GAAG;AACxBC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,qBAAqB,EAAE,uBAAuB;AAC9CC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,gBAAgB,EAAE,kBAAkB;AACpCC,EAAAA,mBAAmB,EAAE,qBAAqB;AAC1CC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,OAAO,EAAE;AACX;IAEaC,2BAA2B,GAAG,CAACV,UAAU,CAACO,oBAAoB;IAE9DI,kBAAkB,GAAG,CAACX,UAAU,CAACK,mBAAmB;;;;"}
1
+ {"version":3,"file":"query-CyER0UTx.js","sources":["../app/javascript/src/constants/urls.js","../app/javascript/src/constants/query.js"],"sourcesContent":["export const INTEGRATIONS_ENGINE_BASE_URL = \"/neeto_integrations\";\nexport const TWILIO_CONFIGURATION_BASE_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/twilio/sms_configurations`;\nexport const INTEGRATIONS_ENGINE_DAILY_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/daily`;\nexport const INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\nexport const INTEGRATIONS_ENGINE_ZOOM_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/zoom`;\nexport const INTEGRATION_DETAILS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/status`;\nexport const TELNYX_PHONE_NUMBERS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/phone_numbers`;\nexport const TELNYX_SMS_CONFIGURATION_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/sms_configurations`;\nexport const DISCONNECTION_ALERTS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/disconnection_alerts`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];\n"],"names":[],"mappings":"AAAO,IAAM,4BAA4B,GAAG,qBAAqB;AAC1D,IAAM,6BAA6B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,4BAAA;AACrE,IAAM,6BAA6B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,QAAA;AACrE,IAAM,mCAAmC,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,cAAA;AAC3E,IAAM,4BAA4B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,OAAA;AACpE,IAAM,uBAAuB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,SAAA;AAC/D,IAAM,wBAAwB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,uBAAA;AAChE,IAAM,4BAA4B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,4BAAA;AACpE,IAAM,wBAAwB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,uBAAA;AAChE,IAAM,YAAY,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,WAAA;;ACTpD,IAAM,UAAU,GAAG;AACxB,EAAA,wBAAwB,EAAE,0BAA0B;AACpD,EAAA,qBAAqB,EAAE,uBAAuB;AAC9C,EAAA,wBAAwB,EAAE,0BAA0B;AACpD,EAAA,gBAAgB,EAAE,kBAAkB;AACpC,EAAA,mBAAmB,EAAE,qBAAqB;AAC1C,EAAA,YAAY,EAAE,cAAc;AAC5B,EAAA,oBAAoB,EAAE,sBAAsB;AAC5C,EAAA,QAAQ,EAAE,UAAU;AACpB,EAAA,OAAO,EAAE;AACX;IAEa,2BAA2B,GAAG,CAAC,UAAU,CAAC,oBAAoB;IAE9D,kBAAkB,GAAG,CAAC,UAAU,CAAC,mBAAmB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-DFg4la-L.js","sources":["../app/javascript/src/constants/urls.js","../app/javascript/src/constants/query.js"],"sourcesContent":["export const INTEGRATIONS_ENGINE_BASE_URL = \"/neeto_integrations\";\nexport const TWILIO_CONFIGURATION_BASE_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/twilio/sms_configurations`;\nexport const INTEGRATIONS_ENGINE_DAILY_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/daily`;\nexport const INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\nexport const INTEGRATIONS_ENGINE_ZOOM_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/zoom`;\nexport const INTEGRATION_DETAILS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/status`;\nexport const TELNYX_PHONE_NUMBERS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/phone_numbers`;\nexport const TELNYX_SMS_CONFIGURATION_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/sms_configurations`;\nexport const DISCONNECTION_ALERTS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/disconnection_alerts`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];\n"],"names":["INTEGRATIONS_ENGINE_BASE_URL","TWILIO_CONFIGURATION_BASE_URL","concat","INTEGRATIONS_ENGINE_DAILY_URL","INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","INTEGRATIONS_ENGINE_ZOOM_URL","INTEGRATION_DETAILS_URL","TELNYX_PHONE_NUMBERS_URL","TELNYX_SMS_CONFIGURATION_URL","DISCONNECTION_ALERTS_URL","SMS_LOGS_URL","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","TWILIO_SENDER_OPTIONS","TELNYX_SMS_CONFIG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,UAAU,CAACK,mBAAmB;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"query-DFg4la-L.js","sources":["../app/javascript/src/constants/urls.js","../app/javascript/src/constants/query.js"],"sourcesContent":["export const INTEGRATIONS_ENGINE_BASE_URL = \"/neeto_integrations\";\nexport const TWILIO_CONFIGURATION_BASE_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/twilio/sms_configurations`;\nexport const INTEGRATIONS_ENGINE_DAILY_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/daily`;\nexport const INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\nexport const INTEGRATIONS_ENGINE_ZOOM_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/zoom`;\nexport const INTEGRATION_DETAILS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/status`;\nexport const TELNYX_PHONE_NUMBERS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/phone_numbers`;\nexport const TELNYX_SMS_CONFIGURATION_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/sms_configurations`;\nexport const DISCONNECTION_ALERTS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/disconnection_alerts`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [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ty';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import { useQuery } from '@tanstack/react-query';
3
3
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
4
4
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
@@ -22,8 +22,6 @@ var dailiesApi = {
22
22
  destroy: destroy
23
23
  };
24
24
 
25
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27
25
  var useCreateDaily = function useCreateDaily() {
28
26
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
29
27
  return useMutationWithInvalidation(dailiesApi.create, _objectSpread({
@@ -46,4 +44,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
46
44
  };
47
45
 
48
46
  export { useDestroyDaily as a, useCreateDaily as b, useFetchDaily as u };
49
- //# sourceMappingURL=useDailiesApi-CMyuK99l.js.map
47
+ //# sourceMappingURL=useDailiesApi-BIZR1qiD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDailiesApi-BIZR1qiD.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n"],"names":[],"mappings":";;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE;AAAE,IAAA,KAAK,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAAC,6BAA6B,CAAC;AAAA,CAAA;AAE3D,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAAC,6BAA6B,CAAC;AAAA,CAAA;AAEjE,IAAM,UAAU,GAAG;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACJrC,IAAM,cAAc,GAAG,SAAjB,cAAc,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzC,2BAA2B,CAAC,UAAU,CAAC,MAAM,EAAA,aAAA,CAAA;AAC3C,IAAA,gBAAgB,EAAE,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC;GAAC,EAC9C,OAAO,CACX,CAAC;AAAA;AAEG,IAAM,aAAa,GAAG,SAAhB,aAAa,GAAA;AAAA,EAAA,OACxB,QAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC;IACvC,OAAO,EAAE,UAAU,CAAC,IAAI;AACxB,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;AAEG,IAAM,eAAe,GAAG,SAAlB,eAAe,CAAA,IAAA,EAAA;EAAA,IAAM,SAAS,QAAT,SAAS;AAAA,EAAA,OACzC,2BAA2B,CAAC,UAAU,CAAC,OAAO,EAAE;AAC9C,IAAA,gBAAgB,EAAE,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACjD,IAAA,SAAS,EAAT;AACF,GAAC,CAAC;AAAA;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
3
+ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
4
4
  var reactQuery = require('@tanstack/react-query');
5
5
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
6
6
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
@@ -24,8 +24,6 @@ var dailiesApi = {
24
24
  destroy: destroy
25
25
  };
26
26
 
27
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
27
  var useCreateDaily = function useCreateDaily() {
30
28
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
31
29
  return reactUtils.useMutationWithInvalidation(dailiesApi.create, _objectSpread({
@@ -50,4 +48,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
50
48
  exports.useCreateDaily = useCreateDaily;
51
49
  exports.useDestroyDaily = useDestroyDaily;
52
50
  exports.useFetchDaily = useFetchDaily;
53
- //# sourceMappingURL=useDailiesApi-BmI2LDF7.js.map
51
+ //# sourceMappingURL=useDailiesApi-BS8aif9t.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDailiesApi-BS8aif9t.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n"],"names":["INTEGRATIONS_ENGINE_DAILY_URL","useMutationWithInvalidation","QUERY_KEYS","useQuery","DEFAULT_STALE_TIME"],"mappings":";;;;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAACA,mCAA6B,EAAE;AAAE,IAAA,KAAK,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAACA,mCAA6B,CAAC;AAAA,CAAA;AAE3D,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAACA,mCAA6B,CAAC;AAAA,CAAA;AAEjE,IAAM,UAAU,GAAG;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACJrC,IAAM,cAAc,GAAG,SAAjB,cAAc,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCC,sCAA2B,CAAC,UAAU,CAAC,MAAM,EAAA,aAAA,CAAA;AAC3C,IAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAAC,gBAAgB,CAAC;GAAC,EAC9C,OAAO,CACX,CAAC;AAAA;AAEG,IAAM,aAAa,GAAG,SAAhB,aAAa,GAAA;AAAA,EAAA,OACxBC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAACD,gBAAU,CAAC,gBAAgB,CAAC;IACvC,OAAO,EAAE,UAAU,CAAC,IAAI;AACxB,IAAA,SAAS,EAAEE;AACb,GAAC,CAAC;AAAA;AAEG,IAAM,eAAe,GAAG,SAAlB,eAAe,CAAA,IAAA,EAAA;EAAA,IAAM,SAAS,QAAT,SAAS;AAAA,EAAA,OACzCH,sCAA2B,CAAC,UAAU,CAAC,OAAO,EAAE;AAC9C,IAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAAC,gBAAgB,CAAC,CAAC;AACjD,IAAA,SAAS,EAAT;AACF,GAAC,CAAC;AAAA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDisconnectionAlertsApi-BGaBOO_4.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { DISCONNECTION_ALERTS_URL } from \"src/constants/urls\";\n\nconst fetch = () => axios.get(DISCONNECTION_ALERTS_URL);\n\nconst destroyAll = ids =>\n axios.delete(`${DISCONNECTION_ALERTS_URL}/destroy_all`, { params: { ids } });\n\nconst disconnectionAlertsApi = { fetch, destroyAll };\n\nexport default disconnectionAlertsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport disconnectionAlertsApi from \"apis/disconnection_alerts\";\nimport { disconnectionAlertsQueryKey } from \"src/constants/query\";\n\nexport const useFetchDisconnectionAlerts = () =>\n useQuery({\n queryKey: disconnectionAlertsQueryKey,\n queryFn: disconnectionAlertsApi.fetch,\n staleTime: DEFAULT_STALE_TIME,\n refetchOnWindowFocus: \"always\",\n });\n\nexport const useDismissDisconnectionAlerts = ({ onSuccess } = {}) =>\n useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {\n keysToInvalidate: [disconnectionAlertsQueryKey],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":["fetch","axios","get","DISCONNECTION_ALERTS_URL","disconnectionAlertsApi","useFetchDisconnectionAlerts","useQuery","queryKey","disconnectionAlertsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","refetchOnWindowFocus"],"mappings":";;;;;;;;AAIA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAACC,8BAAwB,CAAC;AAAA,CAAA;AAKvD,IAAMC,sBAAsB,GAAG;AAAEJ,EAAAA,KAAK,EAALA,KAAkB,CAAC;;ACF7C,IAAMK,2BAA2B,GAAG,SAA9BA,2BAA2BA,GAAA;AAAA,EAAA,OACtCC,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAEC,iCAA2B;IACrCC,OAAO,EAAEL,sBAAsB,CAACJ,KAAK;AACrCU,IAAAA,SAAS,EAAEC,4BAAkB;AAC7BC,IAAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
1
+ {"version":3,"file":"useDisconnectionAlertsApi-BGaBOO_4.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { DISCONNECTION_ALERTS_URL } from \"src/constants/urls\";\n\nconst fetch = () => axios.get(DISCONNECTION_ALERTS_URL);\n\nconst destroyAll = ids =>\n axios.delete(`${DISCONNECTION_ALERTS_URL}/destroy_all`, { params: { ids } });\n\nconst disconnectionAlertsApi = { fetch, destroyAll };\n\nexport default disconnectionAlertsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport disconnectionAlertsApi from \"apis/disconnection_alerts\";\nimport { disconnectionAlertsQueryKey } from \"src/constants/query\";\n\nexport const useFetchDisconnectionAlerts = () =>\n useQuery({\n queryKey: disconnectionAlertsQueryKey,\n queryFn: disconnectionAlertsApi.fetch,\n staleTime: DEFAULT_STALE_TIME,\n refetchOnWindowFocus: \"always\",\n });\n\nexport const useDismissDisconnectionAlerts = ({ onSuccess } = {}) =>\n useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {\n keysToInvalidate: [disconnectionAlertsQueryKey],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":["DISCONNECTION_ALERTS_URL","useQuery","disconnectionAlertsQueryKey","DEFAULT_STALE_TIME"],"mappings":";;;;;;;;AAIA,IAAM,KAAK,GAAG,SAAR,KAAK,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAACA,8BAAwB,CAAC;AAAA,CAAA;AAKvD,IAAM,sBAAsB,GAAG;AAAE,EAAA,KAAK,EAAL,KAAkB,CAAC;;ACF7C,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,GAAA;AAAA,EAAA,OACtCC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAEC,iCAA2B;IACrC,OAAO,EAAE,sBAAsB,CAAC,KAAK;AACrC,IAAA,SAAS,EAAEC,4BAAkB;AAC7B,IAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDisconnectionAlertsApi-BW25EN1l.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { DISCONNECTION_ALERTS_URL } from \"src/constants/urls\";\n\nconst fetch = () => axios.get(DISCONNECTION_ALERTS_URL);\n\nconst destroyAll = ids =>\n axios.delete(`${DISCONNECTION_ALERTS_URL}/destroy_all`, { params: { ids } });\n\nconst disconnectionAlertsApi = { fetch, destroyAll };\n\nexport default disconnectionAlertsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport disconnectionAlertsApi from \"apis/disconnection_alerts\";\nimport { disconnectionAlertsQueryKey } from \"src/constants/query\";\n\nexport const useFetchDisconnectionAlerts = () =>\n useQuery({\n queryKey: disconnectionAlertsQueryKey,\n queryFn: disconnectionAlertsApi.fetch,\n staleTime: DEFAULT_STALE_TIME,\n refetchOnWindowFocus: \"always\",\n });\n\nexport const useDismissDisconnectionAlerts = ({ onSuccess } = {}) =>\n useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {\n keysToInvalidate: [disconnectionAlertsQueryKey],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":["fetch","axios","get","DISCONNECTION_ALERTS_URL","disconnectionAlertsApi","useFetchDisconnectionAlerts","useQuery","queryKey","disconnectionAlertsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","refetchOnWindowFocus"],"mappings":";;;;;;AAIA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAACC,wBAAwB,CAAC;AAAA,CAAA;AAKvD,IAAMC,sBAAsB,GAAG;AAAEJ,EAAAA,KAAK,EAALA,KAAkB,CAAC;;ACF7C,IAAMK,2BAA2B,GAAG,SAA9BA,2BAA2BA,GAAA;AAAA,EAAA,OACtCC,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAEC,2BAA2B;IACrCC,OAAO,EAAEL,sBAAsB,CAACJ,KAAK;AACrCU,IAAAA,SAAS,EAAEC,kBAAkB;AAC7BC,IAAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
1
+ {"version":3,"file":"useDisconnectionAlertsApi-BW25EN1l.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { DISCONNECTION_ALERTS_URL } from \"src/constants/urls\";\n\nconst fetch = () => axios.get(DISCONNECTION_ALERTS_URL);\n\nconst destroyAll = ids =>\n axios.delete(`${DISCONNECTION_ALERTS_URL}/destroy_all`, { params: { ids } });\n\nconst disconnectionAlertsApi = { fetch, destroyAll };\n\nexport default disconnectionAlertsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport disconnectionAlertsApi from \"apis/disconnection_alerts\";\nimport { disconnectionAlertsQueryKey } from \"src/constants/query\";\n\nexport const useFetchDisconnectionAlerts = () =>\n useQuery({\n queryKey: disconnectionAlertsQueryKey,\n queryFn: disconnectionAlertsApi.fetch,\n staleTime: DEFAULT_STALE_TIME,\n refetchOnWindowFocus: \"always\",\n });\n\nexport const useDismissDisconnectionAlerts = ({ onSuccess } = {}) =>\n useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {\n keysToInvalidate: [disconnectionAlertsQueryKey],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":[],"mappings":";;;;;;AAIA,IAAM,KAAK,GAAG,SAAR,KAAK,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC;AAAA,CAAA;AAKvD,IAAM,sBAAsB,GAAG;AAAE,EAAA,KAAK,EAAL,KAAkB,CAAC;;ACF7C,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,GAAA;AAAA,EAAA,OACtC,QAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,sBAAsB,CAAC,KAAK;AACrC,IAAA,SAAS,EAAE,kBAAkB;AAC7B,IAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import { useQuery } from '@tanstack/react-query';
3
3
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
4
4
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
@@ -22,8 +22,6 @@ var googleMapsApi = {
22
22
  destroy: destroy
23
23
  };
24
24
 
25
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27
25
  var useFetchGoogleMaps = function useFetchGoogleMaps() {
28
26
  return useQuery({
29
27
  queryKey: googleMapsQueryKey,
@@ -45,4 +43,4 @@ var useDestroyGoogleMaps = function useDestroyGoogleMaps() {
45
43
  };
46
44
 
47
45
  export { useDestroyGoogleMaps as a, useCreateGoogleMaps as b, useFetchGoogleMaps as u };
48
- //# sourceMappingURL=useGoogleMapsApi-DypGXFnl.js.map
46
+ //# sourceMappingURL=useGoogleMapsApi-DcJ5vTJZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGoogleMapsApi-DcJ5vTJZ.js","sources":["../app/javascript/src/apis/google_maps.js","../app/javascript/src/hooks/reactQuery/useGoogleMapsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, { googleMaps: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst googleMapsApi = { create, show, destroy };\n\nexport default googleMapsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport googleMapsApi from \"apis/google_maps\";\nimport { googleMapsQueryKey } from \"src/constants/query\";\n\nexport const useFetchGoogleMaps = () =>\n useQuery({\n queryKey: googleMapsQueryKey,\n queryFn: googleMapsApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useCreateGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.create, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n\nexport const useDestroyGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.destroy, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n"],"names":[],"mappings":";;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE;AAAE,IAAA,UAAU,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC;AAAA,CAAA;AAEjE,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAAC,mCAAmC,CAAC;AAAA,CAAA;AAEvE,IAAM,aAAa,GAAG;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACJxC,IAAM,kBAAkB,GAAG,SAArB,kBAAkB,GAAA;AAAA,EAAA,OAC7B,QAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,aAAa,CAAC,IAAI;AAC3B,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;AAEG,IAAM,mBAAmB,GAAG,SAAtB,mBAAmB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC9C,2BAA2B,CAAC,aAAa,CAAC,MAAM,EAAA,aAAA,CAAA;IAC9C,gBAAgB,EAAE,CAAC,kBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;AAEG,IAAM,oBAAoB,GAAG,SAAvB,oBAAoB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC/C,2BAA2B,CAAC,aAAa,CAAC,OAAO,EAAA,aAAA,CAAA;IAC/C,gBAAgB,EAAE,CAAC,kBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
3
+ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
4
4
  var reactQuery = require('@tanstack/react-query');
5
5
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
6
6
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
@@ -24,8 +24,6 @@ var googleMapsApi = {
24
24
  destroy: destroy
25
25
  };
26
26
 
27
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
27
  var useFetchGoogleMaps = function useFetchGoogleMaps() {
30
28
  return reactQuery.useQuery({
31
29
  queryKey: query.googleMapsQueryKey,
@@ -49,4 +47,4 @@ var useDestroyGoogleMaps = function useDestroyGoogleMaps() {
49
47
  exports.useCreateGoogleMaps = useCreateGoogleMaps;
50
48
  exports.useDestroyGoogleMaps = useDestroyGoogleMaps;
51
49
  exports.useFetchGoogleMaps = useFetchGoogleMaps;
52
- //# sourceMappingURL=useGoogleMapsApi-BY5ZIbh1.js.map
50
+ //# sourceMappingURL=useGoogleMapsApi-sMsxsnL9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGoogleMapsApi-sMsxsnL9.js","sources":["../app/javascript/src/apis/google_maps.js","../app/javascript/src/hooks/reactQuery/useGoogleMapsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, { googleMaps: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst googleMapsApi = { create, show, destroy };\n\nexport default googleMapsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport googleMapsApi from \"apis/google_maps\";\nimport { googleMapsQueryKey } from \"src/constants/query\";\n\nexport const useFetchGoogleMaps = () =>\n useQuery({\n queryKey: googleMapsQueryKey,\n queryFn: googleMapsApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useCreateGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.create, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n\nexport const useDestroyGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.destroy, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n"],"names":["INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","useQuery","googleMapsQueryKey","DEFAULT_STALE_TIME","useMutationWithInvalidation"],"mappings":";;;;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAACA,yCAAmC,EAAE;AAAE,IAAA,UAAU,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAACA,yCAAmC,CAAC;AAAA,CAAA;AAEjE,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAACA,yCAAmC,CAAC;AAAA,CAAA;AAEvE,IAAM,aAAa,GAAG;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACJxC,IAAM,kBAAkB,GAAG,SAArB,kBAAkB,GAAA;AAAA,EAAA,OAC7BC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAEC,wBAAkB;IAC5B,OAAO,EAAE,aAAa,CAAC,IAAI;AAC3B,IAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;AAEG,IAAM,mBAAmB,GAAG,SAAtB,mBAAmB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC9CC,sCAA2B,CAAC,aAAa,CAAC,MAAM,EAAA,aAAA,CAAA;IAC9C,gBAAgB,EAAE,CAACF,wBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;AAEG,IAAM,oBAAoB,GAAG,SAAvB,oBAAoB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC/CE,sCAA2B,CAAC,aAAa,CAAC,OAAO,EAAA,aAAA,CAAA;IAC/C,gBAAgB,EAAE,CAACF,wBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
3
+ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
4
4
  var reactQuery = require('@tanstack/react-query');
5
5
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
6
6
  var ramda = require('ramda');
@@ -52,8 +52,6 @@ var telnyxApi = {
52
52
  createTelnyxSmsConfiguration: createTelnyxSmsConfiguration
53
53
  };
54
54
 
55
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
56
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
57
55
  var useFetchTelnyxSmsConfiguration = function useFetchTelnyxSmsConfiguration(_ref) {
58
56
  var integrable = _ref.integrable;
59
57
  return reactQuery.useQuery({
@@ -134,4 +132,4 @@ exports.useFetchTelnyxConfiguration = useFetchTelnyxConfiguration;
134
132
  exports.useFetchTelnyxMessagingProfileSenders = useFetchTelnyxMessagingProfileSenders;
135
133
  exports.useFetchTelnyxSenderOptions = useFetchTelnyxSenderOptions;
136
134
  exports.useUpsertTelnyxConfiguration = useUpsertTelnyxConfiguration;
137
- //# sourceMappingURL=useTelnyxApi-DH5XaYIo.js.map
135
+ //# sourceMappingURL=useTelnyxApi-CqB3f44W.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTelnyxApi-CqB3f44W.js","sources":["../app/javascript/src/apis/telnyx.js","../app/javascript/src/hooks/reactQuery/useTelnyxApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n TELNYX_PHONE_NUMBERS_URL,\n TELNYX_SMS_CONFIGURATION_URL,\n} from \"src/constants/urls\";\n\nconst fetchTelnyxSmsConfiguration = integrable =>\n axios.get(TELNYX_SMS_CONFIGURATION_URL, { params: integrable });\n\nconst fetchTelnyxPhoneNumbers = ({ apiKey, messagingProfileId }) =>\n axios.get(TELNYX_PHONE_NUMBERS_URL, {\n params: { telnyx: { apiKey, messagingProfileId } },\n });\n\nconst createTelnyxSmsConfiguration = payload =>\n axios.post(TELNYX_SMS_CONFIGURATION_URL, { telnyx: payload });\n\nexport const fetchSenderOptions = ({ apiKey }) =>\n axios.get(\"/neeto_integrations/telnyx/sender_options\", {\n params: { api_key: apiKey },\n });\n\nexport const fetchMessagingProfileSenders = ({ apiKey, messagingProfileId }) =>\n axios.get(\n `/neeto_integrations/telnyx/messaging_profiles/${messagingProfileId}/senders`,\n { params: { api_key: apiKey } }\n );\n\nconst telnyxApi = {\n fetchTelnyxPhoneNumbers,\n fetchTelnyxSmsConfiguration,\n createTelnyxSmsConfiguration,\n};\n\nexport default telnyxApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\n\nimport telnyxApi, {\n fetchSenderOptions,\n fetchMessagingProfileSenders,\n} from \"apis/telnyx\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTelnyxSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => telnyxApi.fetchTelnyxSmsConfiguration(integrable),\n select: prop(\"smsConfiguration\"),\n });\n\n// Alias used by the v2 Telnyx form\nconst useFetchTelnyxConfiguration = useFetchTelnyxSmsConfiguration;\n\nconst useFetchTelnyxPhoneNumbers = () =>\n useMutation({ mutationFn: telnyxApi.fetchTelnyxPhoneNumbers });\n\nconst useCreateTelnyxSmsConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(telnyxApi.createTelnyxSmsConfiguration, {\n keysToInvalidate: [\n [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n });\n\n// Alias used by the v2 Telnyx form\nconst useUpsertTelnyxConfiguration = ({ integrable, onSuccess }) => {\n const mutation = useCreateTelnyxSmsConfiguration({ integrable });\n\n return {\n ...mutation,\n mutateAsync: payload =>\n new Promise((resolve, reject) => {\n mutation.mutate(payload, {\n onSuccess: () => {\n onSuccess?.();\n resolve();\n },\n onError: reject,\n });\n }),\n };\n};\n\nexport const useFetchTelnyxSenderOptions = ({ credentials }) => {\n const apiKey = credentials?.apiKey;\n const hasValidApiKey = typeof apiKey === \"string\" && apiKey.trim().length > 0;\n\n return useQuery({\n queryKey: [\"telnyxSenderOptions\", { apiKey }],\n queryFn: () => fetchSenderOptions({ apiKey }),\n enabled: hasValidApiKey,\n staleTime: 60_000,\n retry: false,\n });\n};\n\nexport const useFetchTelnyxMessagingProfileSenders = ({\n apiKey,\n messagingProfileId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"telnyxMessagingProfileSenders\", messagingProfileId],\n queryFn: () => fetchMessagingProfileSenders({ apiKey, messagingProfileId }),\n enabled: !!enabled && !!apiKey && !!messagingProfileId,\n staleTime: 60_000,\n });\n\nexport {\n useFetchTelnyxPhoneNumbers,\n useFetchTelnyxSmsConfiguration,\n useCreateTelnyxSmsConfiguration,\n useFetchTelnyxConfiguration,\n useUpsertTelnyxConfiguration,\n};\n"],"names":["TELNYX_SMS_CONFIGURATION_URL","TELNYX_PHONE_NUMBERS_URL","useQuery","QUERY_KEYS","prop","useMutationWithInvalidation","onSuccess"],"mappings":";;;;;;;;;AAOA,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,CAAG,UAAU,EAAA;AAAA,EAAA,OAC5C,KAAK,CAAC,GAAG,CAACA,kCAA4B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAW,GAAC,CAAC;AAAA,CAAA;AAEjE,IAAM,uBAAuB,GAAG,SAA1B,uBAAuB,CAAA,IAAA,EAAA;EAAA,IAAM,MAAM,QAAN,MAAM;AAAE,IAAA,kBAAkB,QAAlB,kBAAkB;AAAA,EAAA,OAC3D,KAAK,CAAC,GAAG,CAACC,8BAAwB,EAAE;AAClC,IAAA,MAAM,EAAE;AAAE,MAAA,MAAM,EAAE;AAAE,QAAA,MAAM,EAAN,MAAM;AAAE,QAAA,kBAAkB,EAAlB;AAAmB;AAAE;AACnD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAM,4BAA4B,GAAG,SAA/B,4BAA4B,CAAG,OAAO,EAAA;AAAA,EAAA,OAC1C,KAAK,CAAC,IAAI,CAACD,kCAA4B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAQ,GAAC,CAA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ery } from '@tanstack/react-query';
3
3
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
4
4
  import { prop } from 'ramda';
@@ -50,8 +50,6 @@ var telnyxApi = {
50
50
  createTelnyxSmsConfiguration: createTelnyxSmsConfiguration
51
51
  };
52
52
 
53
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
54
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
55
53
  var useFetchTelnyxSmsConfiguration = function useFetchTelnyxSmsConfiguration(_ref) {
56
54
  var integrable = _ref.integrable;
57
55
  return useQuery({
@@ -129,4 +127,4 @@ var useFetchTelnyxMessagingProfileSenders = function useFetchTelnyxMessagingProf
129
127
  };
130
128
 
131
129
  export { useFetchTelnyxConfiguration as a, useFetchTelnyxSenderOptions as b, useUpsertTelnyxConfiguration as c, useFetchTelnyxMessagingProfileSenders as u };
132
- //# sourceMappingURL=useTelnyxApi-WH39oUwB.js.map
130
+ //# sourceMappingURL=useTelnyxApi-fFpslv-E.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTelnyxApi-fFpslv-E.js","sources":["../app/javascript/src/apis/telnyx.js","../app/javascript/src/hooks/reactQuery/useTelnyxApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n TELNYX_PHONE_NUMBERS_URL,\n TELNYX_SMS_CONFIGURATION_URL,\n} from \"src/constants/urls\";\n\nconst fetchTelnyxSmsConfiguration = integrable =>\n axios.get(TELNYX_SMS_CONFIGURATION_URL, { params: integrable });\n\nconst fetchTelnyxPhoneNumbers = ({ apiKey, messagingProfileId }) =>\n axios.get(TELNYX_PHONE_NUMBERS_URL, {\n params: { telnyx: { apiKey, messagingProfileId } },\n });\n\nconst createTelnyxSmsConfiguration = payload =>\n axios.post(TELNYX_SMS_CONFIGURATION_URL, { telnyx: payload });\n\nexport const fetchSenderOptions = ({ apiKey }) =>\n axios.get(\"/neeto_integrations/telnyx/sender_options\", {\n params: { api_key: apiKey },\n });\n\nexport const fetchMessagingProfileSenders = ({ apiKey, messagingProfileId }) =>\n axios.get(\n `/neeto_integrations/telnyx/messaging_profiles/${messagingProfileId}/senders`,\n { params: { api_key: apiKey } }\n );\n\nconst telnyxApi = {\n fetchTelnyxPhoneNumbers,\n fetchTelnyxSmsConfiguration,\n createTelnyxSmsConfiguration,\n};\n\nexport default telnyxApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\n\nimport telnyxApi, {\n fetchSenderOptions,\n fetchMessagingProfileSenders,\n} from \"apis/telnyx\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTelnyxSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => telnyxApi.fetchTelnyxSmsConfiguration(integrable),\n select: prop(\"smsConfiguration\"),\n });\n\n// Alias used by the v2 Telnyx form\nconst useFetchTelnyxConfiguration = useFetchTelnyxSmsConfiguration;\n\nconst useFetchTelnyxPhoneNumbers = () =>\n useMutation({ mutationFn: telnyxApi.fetchTelnyxPhoneNumbers });\n\nconst useCreateTelnyxSmsConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(telnyxApi.createTelnyxSmsConfiguration, {\n keysToInvalidate: [\n [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n });\n\n// Alias used by the v2 Telnyx form\nconst useUpsertTelnyxConfiguration = ({ integrable, onSuccess }) => {\n const mutation = useCreateTelnyxSmsConfiguration({ integrable });\n\n return {\n ...mutation,\n mutateAsync: payload =>\n new Promise((resolve, reject) => {\n mutation.mutate(payload, {\n onSuccess: () => {\n onSuccess?.();\n resolve();\n },\n onError: reject,\n });\n }),\n };\n};\n\nexport const useFetchTelnyxSenderOptions = ({ credentials }) => {\n const apiKey = credentials?.apiKey;\n const hasValidApiKey = typeof apiKey === \"string\" && apiKey.trim().length > 0;\n\n return useQuery({\n queryKey: [\"telnyxSenderOptions\", { apiKey }],\n queryFn: () => fetchSenderOptions({ apiKey }),\n enabled: hasValidApiKey,\n staleTime: 60_000,\n retry: false,\n });\n};\n\nexport const useFetchTelnyxMessagingProfileSenders = ({\n apiKey,\n messagingProfileId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"telnyxMessagingProfileSenders\", messagingProfileId],\n queryFn: () => fetchMessagingProfileSenders({ apiKey, messagingProfileId }),\n enabled: !!enabled && !!apiKey && !!messagingProfileId,\n staleTime: 60_000,\n });\n\nexport {\n useFetchTelnyxPhoneNumbers,\n useFetchTelnyxSmsConfiguration,\n useCreateTelnyxSmsConfiguration,\n useFetchTelnyxConfiguration,\n useUpsertTelnyxConfiguration,\n};\n"],"names":["onSuccess"],"mappings":";;;;;;;AAOA,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,CAAG,UAAU,EAAA;AAAA,EAAA,OAC5C,KAAK,CAAC,GAAG,CAAC,4BAA4B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAW,GAAC,CAAC;AAAA,CAAA;AAEjE,IAAM,uBAAuB,GAAG,SAA1B,uBAAuB,CAAA,IAAA,EAAA;EAAA,IAAM,MAAM,QAAN,MAAM;AAAE,IAAA,kBAAkB,QAAlB,kBAAkB;AAAA,EAAA,OAC3D,KAAK,CAAC,GAAG,CAAC,wBAAwB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B,EAAlB;AAAmB,OAAC,CAAC;AAAA,IAAA,CAAA;IAC3E,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,kBAAkB;AACtD,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;;;;"}
@@ -3,12 +3,10 @@
3
3
  var reactQuery = require('@tanstack/react-query');
4
4
  var neetoCist = require('@bigbinary/neeto-cist');
5
5
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
6
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
+ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
7
7
  var axios = require('axios');
8
8
  var query = require('./query-DFg4la-L.js');
9
9
 
10
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
10
  var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrable) {
13
11
  return axios.get(query.TWILIO_CONFIGURATION_BASE_URL, {
14
12
  params: integrable
@@ -116,4 +114,4 @@ exports.useCreateTwilioConfiguration = useCreateTwilioConfiguration;
116
114
  exports.useFetchTwilioMessagingServiceSenders = useFetchTwilioMessagingServiceSenders;
117
115
  exports.useFetchTwilioSenderOptions = useFetchTwilioSenderOptions;
118
116
  exports.useFetchTwilioSmsConfiguration = useFetchTwilioSmsConfiguration;
119
- //# sourceMappingURL=useTwilioApi-CYF8UIPN.js.map
117
+ //# sourceMappingURL=useTwilioApi-BwkrNBtg.js.map