@123usmanhaider321/ui 0.1.8 → 1.0.0

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 (545) hide show
  1. package/README.md +416 -31
  2. package/dist/images/icon/1LINK.svg +50 -0
  3. package/dist/images/icon/CreditCard.svg +83 -0
  4. package/dist/images/icon/Easypaisa.png +0 -0
  5. package/dist/images/icon/MobileWallet.png +0 -0
  6. package/dist/images/icon/Raast-Logo.png +0 -0
  7. package/dist/images/icon/VISA.png +0 -0
  8. package/dist/images/icon/add-circle-1.svg +5 -0
  9. package/dist/images/icon/check-circle-broken.svg +3 -0
  10. package/dist/images/icon/close-circle.svg +5 -0
  11. package/dist/images/icon/jazzcash.png +0 -0
  12. package/dist/images/icon/loading_icon.json +3347 -0
  13. package/dist/images/icon/mastercard-logo.webp +0 -0
  14. package/dist/images/icon/paymo.jpeg +0 -0
  15. package/dist/images/icon/preview-svgrepo-com.svg +36 -0
  16. package/dist/images/icon/trash.svg +7 -0
  17. package/dist/images/icon/unionpay-logo.svg +9 -0
  18. package/dist/index-87FQZHOs.js +11119 -0
  19. package/dist/index-87FQZHOs.js.map +1 -0
  20. package/dist/index-Tl9g213f.js +60475 -0
  21. package/dist/index-Tl9g213f.js.map +1 -0
  22. package/dist/index.d.ts +1 -10
  23. package/dist/index.es-CpgTaa1Y.js +16734 -0
  24. package/dist/index.es-CpgTaa1Y.js.map +1 -0
  25. package/dist/index.js +40 -12
  26. package/dist/index.js.map +1 -1
  27. package/dist/loading_icon-n5H5dQBl.js +3375 -0
  28. package/dist/loading_icon-n5H5dQBl.js.map +1 -0
  29. package/dist/src/components/Alert/ErrorAlert.d.ts +6 -0
  30. package/dist/src/components/Alert/SuccessAlert.d.ts +6 -0
  31. package/dist/{components → src/components}/FormBuilder/DiscountInput.d.ts +3 -6
  32. package/dist/{components → src/components}/FormBuilder/FormBuilder.d.ts +2 -11
  33. package/dist/{components → src/components}/FormBuilder/QuestionCard.d.ts +0 -5
  34. package/dist/{components → src/components}/FormBuilder/QuestionEditor.d.ts +0 -5
  35. package/dist/{components → src/components}/FormBuilder/SortableQuestionList.d.ts +0 -5
  36. package/dist/src/components/FormBuilder/questionIcons.d.ts +5 -0
  37. package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventLayout.d.ts +2 -1
  38. package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventStepper.d.ts +2 -2
  39. package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/ConfirmationModal.d.ts +1 -1
  40. package/dist/src/components/NewAddEvent/components/EventSubmissionConfirmationModal.d.ts +14 -0
  41. package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/TicketTierSection.d.ts +1 -1
  42. package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTierForm.d.ts +1 -1
  43. package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useStepperForm.d.ts +22 -22
  44. package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useTicketTierForm.d.ts +63 -15
  45. package/dist/src/components/NewAddEvent/schemas/step1.d.ts +211 -0
  46. package/dist/src/components/NewAddEvent/schemas/step2.d.ts +411 -0
  47. package/dist/{components/EventAddForm → src/components/NewAddEvent}/schemas/utils.d.ts +8 -2
  48. package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/IndividualFormStep.d.ts +1 -1
  49. package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/SocialProfilesStep.d.ts +1 -1
  50. package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/TeamFormStep.d.ts +1 -1
  51. package/dist/src/components/Spinner/spinner.d.ts +4 -0
  52. package/dist/src/components/TicketlyUIProvider.d.ts +35 -0
  53. package/dist/src/components/common/Loader/index.d.ts +8 -0
  54. package/dist/src/components/common/Modals/ConfirmationModal.d.ts +7 -0
  55. package/dist/{components/FormInput → src/components/ui}/FormInput.d.ts +1 -1
  56. package/dist/src/components/ui/Loader.d.ts +4 -0
  57. package/dist/{components/Button/Button.d.ts → src/components/ui/button.d.ts} +1 -1
  58. package/dist/src/index.d.ts +10 -0
  59. package/dist/{lib → src/lib}/actions.d.ts +0 -126
  60. package/dist/src/lib/dom-utils.d.ts +2 -0
  61. package/dist/src/lib/storage-utils.d.ts +5 -0
  62. package/dist/src/lib/types.d.ts +258 -0
  63. package/dist/src/redux/baseQuery.d.ts +16 -0
  64. package/dist/{services → src/redux/features}/eventApi.d.ts +1053 -1745
  65. package/dist/src/redux/features/globalSlice.d.ts +17 -0
  66. package/dist/{services → src/redux/features/single-event}/single-event-api.d.ts +856 -1190
  67. package/dist/src/redux/types.d.ts +2 -0
  68. package/dist/src/services/library-services.d.ts +15 -0
  69. package/dist/src/services/remote-config.d.ts +27 -0
  70. package/dist/{services → src/services}/utils.d.ts +1 -1
  71. package/dist/src/theme/colors.d.ts +127 -0
  72. package/dist/src/theme/typography.d.ts +13 -0
  73. package/dist/src/types/api.d.ts +18 -0
  74. package/dist/style.css +2984 -0
  75. package/dist/styles.css +3758 -4012
  76. package/package.json +78 -68
  77. package/dist/_virtual/_commonjsHelpers.js +0 -9
  78. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  79. package/dist/_virtual/customParseFormat.js +0 -5
  80. package/dist/_virtual/customParseFormat.js.map +0 -1
  81. package/dist/_virtual/dayjs.min.js +0 -5
  82. package/dist/_virtual/dayjs.min.js.map +0 -1
  83. package/dist/_virtual/duration.js +0 -5
  84. package/dist/_virtual/duration.js.map +0 -1
  85. package/dist/_virtual/index.js +0 -5
  86. package/dist/_virtual/index.js.map +0 -1
  87. package/dist/_virtual/isBetween.js +0 -5
  88. package/dist/_virtual/isBetween.js.map +0 -1
  89. package/dist/_virtual/relativeTime.js +0 -5
  90. package/dist/_virtual/relativeTime.js.map +0 -1
  91. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
  92. package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  93. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
  94. package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  95. package/dist/_virtual/with-selector.development.js +0 -5
  96. package/dist/_virtual/with-selector.development.js.map +0 -1
  97. package/dist/_virtual/with-selector.js +0 -5
  98. package/dist/_virtual/with-selector.js.map +0 -1
  99. package/dist/_virtual/with-selector.production.js +0 -5
  100. package/dist/_virtual/with-selector.production.js.map +0 -1
  101. package/dist/components/Alert/Alert.js +0 -51
  102. package/dist/components/Alert/Alert.js.map +0 -1
  103. package/dist/components/Button/Button.js +0 -52
  104. package/dist/components/Button/Button.js.map +0 -1
  105. package/dist/components/Button/Button.test.d.ts +0 -1
  106. package/dist/components/Button/index.d.ts +0 -1
  107. package/dist/components/Checkbox/Checkbox.js +0 -50
  108. package/dist/components/Checkbox/Checkbox.js.map +0 -1
  109. package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
  110. package/dist/components/Checkbox/index.d.ts +0 -1
  111. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +0 -25
  112. package/dist/components/CheckboxGroup/CheckboxGroup.js +0 -99
  113. package/dist/components/CheckboxGroup/CheckboxGroup.js.map +0 -1
  114. package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -15
  115. package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -136
  116. package/dist/components/ConfirmationModal/ConfirmationModal.js.map +0 -1
  117. package/dist/components/ConfirmationModal/index.d.ts +0 -2
  118. package/dist/components/CustomSelect/CustomSelect.js +0 -259
  119. package/dist/components/CustomSelect/CustomSelect.js.map +0 -1
  120. package/dist/components/EventAddForm/AddEventLayout.js +0 -227
  121. package/dist/components/EventAddForm/AddEventLayout.js.map +0 -1
  122. package/dist/components/EventAddForm/AddEventStepper.js +0 -719
  123. package/dist/components/EventAddForm/AddEventStepper.js.map +0 -1
  124. package/dist/components/EventAddForm/common/ConfirmationModal.js +0 -136
  125. package/dist/components/EventAddForm/common/ConfirmationModal.js.map +0 -1
  126. package/dist/components/EventAddForm/common/DescriptionModal.js +0 -70
  127. package/dist/components/EventAddForm/common/DescriptionModal.js.map +0 -1
  128. package/dist/components/EventAddForm/components/AnimatedBackground.d.ts +0 -8
  129. package/dist/components/EventAddForm/components/ApprovalConfirmationModal.d.ts +0 -7
  130. package/dist/components/EventAddForm/components/CheckboxGroup.js +0 -92
  131. package/dist/components/EventAddForm/components/CheckboxGroup.js.map +0 -1
  132. package/dist/components/EventAddForm/components/CustomMeetingForm.js +0 -237
  133. package/dist/components/EventAddForm/components/CustomMeetingForm.js.map +0 -1
  134. package/dist/components/EventAddForm/components/DateTimeField.js +0 -173
  135. package/dist/components/EventAddForm/components/DateTimeField.js.map +0 -1
  136. package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.d.ts +0 -33
  137. package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js +0 -366
  138. package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js.map +0 -1
  139. package/dist/components/EventAddForm/components/FileUpload.js +0 -412
  140. package/dist/components/EventAddForm/components/FileUpload.js.map +0 -1
  141. package/dist/components/EventAddForm/components/FormBuilderProceedModal.js +0 -197
  142. package/dist/components/EventAddForm/components/FormBuilderProceedModal.js.map +0 -1
  143. package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js +0 -1179
  144. package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js.map +0 -1
  145. package/dist/components/EventAddForm/components/InputField.d.ts +0 -15
  146. package/dist/components/EventAddForm/components/RadioGroupButton.d.ts +0 -14
  147. package/dist/components/EventAddForm/components/SelectField.d.ts +0 -19
  148. package/dist/components/EventAddForm/components/SingleDateTimeInput.js +0 -102
  149. package/dist/components/EventAddForm/components/SingleDateTimeInput.js.map +0 -1
  150. package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js +0 -277
  151. package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js.map +0 -1
  152. package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js +0 -148
  153. package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js.map +0 -1
  154. package/dist/components/EventAddForm/components/TicketTierForm.js +0 -418
  155. package/dist/components/EventAddForm/components/TicketTierForm.js.map +0 -1
  156. package/dist/components/EventAddForm/components/TicketTypeSelection.js +0 -93
  157. package/dist/components/EventAddForm/components/TicketTypeSelection.js.map +0 -1
  158. package/dist/components/EventAddForm/hooks/useStepperForm.js +0 -371
  159. package/dist/components/EventAddForm/hooks/useStepperForm.js.map +0 -1
  160. package/dist/components/EventAddForm/hooks/useTicketTierForm.js +0 -237
  161. package/dist/components/EventAddForm/hooks/useTicketTierForm.js.map +0 -1
  162. package/dist/components/EventAddForm/index.d.ts +0 -3
  163. package/dist/components/EventAddForm/index.js +0 -41
  164. package/dist/components/EventAddForm/index.js.map +0 -1
  165. package/dist/components/EventAddForm/schemas/index.d.ts +0 -2
  166. package/dist/components/EventAddForm/schemas/step1.d.ts +0 -47
  167. package/dist/components/EventAddForm/schemas/step1.js +0 -135
  168. package/dist/components/EventAddForm/schemas/step1.js.map +0 -1
  169. package/dist/components/EventAddForm/schemas/step2.d.ts +0 -138
  170. package/dist/components/EventAddForm/schemas/step2.js +0 -94
  171. package/dist/components/EventAddForm/schemas/step2.js.map +0 -1
  172. package/dist/components/EventAddForm/schemas/utils.js +0 -28
  173. package/dist/components/EventAddForm/schemas/utils.js.map +0 -1
  174. package/dist/components/EventAddForm/steps/IndividualFormStep.js +0 -85
  175. package/dist/components/EventAddForm/steps/IndividualFormStep.js.map +0 -1
  176. package/dist/components/EventAddForm/steps/SocialProfilesStep.js +0 -123
  177. package/dist/components/EventAddForm/steps/SocialProfilesStep.js.map +0 -1
  178. package/dist/components/EventAddForm/steps/StepOne.js +0 -462
  179. package/dist/components/EventAddForm/steps/StepOne.js.map +0 -1
  180. package/dist/components/EventAddForm/steps/StepTwo.js +0 -173
  181. package/dist/components/EventAddForm/steps/StepTwo.js.map +0 -1
  182. package/dist/components/EventAddForm/steps/TeamFormStep.js +0 -13
  183. package/dist/components/EventAddForm/steps/TeamFormStep.js.map +0 -1
  184. package/dist/components/FormBuilder/CategoryList.js +0 -242
  185. package/dist/components/FormBuilder/CategoryList.js.map +0 -1
  186. package/dist/components/FormBuilder/DiscountInput.js +0 -366
  187. package/dist/components/FormBuilder/DiscountInput.js.map +0 -1
  188. package/dist/components/FormBuilder/FormBuilder.js +0 -918
  189. package/dist/components/FormBuilder/FormBuilder.js.map +0 -1
  190. package/dist/components/FormBuilder/OptionList.js +0 -120
  191. package/dist/components/FormBuilder/OptionList.js.map +0 -1
  192. package/dist/components/FormBuilder/PaymentPreview.d.ts +0 -12
  193. package/dist/components/FormBuilder/PaymentPreview.js +0 -70
  194. package/dist/components/FormBuilder/PaymentPreview.js.map +0 -1
  195. package/dist/components/FormBuilder/PreviewInput.d.ts +0 -10
  196. package/dist/components/FormBuilder/PreviewInput.js +0 -143
  197. package/dist/components/FormBuilder/PreviewInput.js.map +0 -1
  198. package/dist/components/FormBuilder/QuestionCard.js +0 -252
  199. package/dist/components/FormBuilder/QuestionCard.js.map +0 -1
  200. package/dist/components/FormBuilder/QuestionEditor.js +0 -166
  201. package/dist/components/FormBuilder/QuestionEditor.js.map +0 -1
  202. package/dist/components/FormBuilder/RequiredToggle.js +0 -43
  203. package/dist/components/FormBuilder/RequiredToggle.js.map +0 -1
  204. package/dist/components/FormBuilder/SortableQuestionList.js +0 -137
  205. package/dist/components/FormBuilder/SortableQuestionList.js.map +0 -1
  206. package/dist/components/FormBuilder/index.d.ts +0 -4
  207. package/dist/components/FormBuilder/utils.js +0 -229
  208. package/dist/components/FormBuilder/utils.js.map +0 -1
  209. package/dist/components/FormInput/FormInput.js +0 -126
  210. package/dist/components/FormInput/FormInput.js.map +0 -1
  211. package/dist/components/FormInput/FormInput.test.d.ts +0 -1
  212. package/dist/components/FormInput/index.d.ts +0 -2
  213. package/dist/components/ImageCropModal/index.js +0 -464
  214. package/dist/components/ImageCropModal/index.js.map +0 -1
  215. package/dist/components/InformationPopover/InformationPopover.d.ts +0 -7
  216. package/dist/components/InformationPopover/InformationPopover.js +0 -19
  217. package/dist/components/InformationPopover/InformationPopover.js.map +0 -1
  218. package/dist/components/InformationPopover.js +0 -19
  219. package/dist/components/InformationPopover.js.map +0 -1
  220. package/dist/components/InputErrorMessage/InputErrorMessage.js +0 -21
  221. package/dist/components/InputErrorMessage/InputErrorMessage.js.map +0 -1
  222. package/dist/components/Modal/Modal.d.ts +0 -15
  223. package/dist/components/Modal/Modal.js +0 -73
  224. package/dist/components/Modal/Modal.js.map +0 -1
  225. package/dist/components/Radio/Radio.js +0 -35
  226. package/dist/components/Radio/Radio.js.map +0 -1
  227. package/dist/components/Spinner/spinner.d.ts +0 -2
  228. package/dist/components/Spinner/spinner.js +0 -22
  229. package/dist/components/Spinner/spinner.js.map +0 -1
  230. package/dist/components/Toggle/Toggle.d.ts +0 -16
  231. package/dist/components/Toggle/index.d.ts +0 -2
  232. package/dist/components/Tooltip/Tooltip.d.ts +0 -12
  233. package/dist/components/Tooltip/Tooltip.js +0 -134
  234. package/dist/components/Tooltip/Tooltip.js.map +0 -1
  235. package/dist/components/common/FallbackImage.js +0 -47
  236. package/dist/components/common/FallbackImage.js.map +0 -1
  237. package/dist/components/ui/Calendar/calendar-utils.js +0 -51
  238. package/dist/components/ui/Calendar/calendar-utils.js.map +0 -1
  239. package/dist/components/ui/Calendar/index.js +0 -142
  240. package/dist/components/ui/Calendar/index.js.map +0 -1
  241. package/dist/components/ui/Checkbox.d.ts +0 -9
  242. package/dist/components/ui/Checkbox.js +0 -50
  243. package/dist/components/ui/Checkbox.js.map +0 -1
  244. package/dist/components/ui/DatePicker/index.js +0 -188
  245. package/dist/components/ui/DatePicker/index.js.map +0 -1
  246. package/dist/components/ui/FormInput.js +0 -129
  247. package/dist/components/ui/FormInput.js.map +0 -1
  248. package/dist/components/ui/InputErrorMessage.d.ts +0 -7
  249. package/dist/components/ui/InputErrorMessage.js +0 -21
  250. package/dist/components/ui/InputErrorMessage.js.map +0 -1
  251. package/dist/components/ui/Modal/index.js +0 -73
  252. package/dist/components/ui/Modal/index.js.map +0 -1
  253. package/dist/components/ui/Radio.d.ts +0 -6
  254. package/dist/components/ui/Radio.js +0 -35
  255. package/dist/components/ui/Radio.js.map +0 -1
  256. package/dist/components/ui/RichTextEditor.js +0 -242
  257. package/dist/components/ui/RichTextEditor.js.map +0 -1
  258. package/dist/components/ui/TimePicker/index.js +0 -215
  259. package/dist/components/ui/TimePicker/index.js.map +0 -1
  260. package/dist/components/ui/TimeSelector/index.js +0 -138
  261. package/dist/components/ui/TimeSelector/index.js.map +0 -1
  262. package/dist/components/ui/Tooltip.d.ts +0 -12
  263. package/dist/components/ui/Tooltip.js +0 -136
  264. package/dist/components/ui/Tooltip.js.map +0 -1
  265. package/dist/hooks/useDropdownPosition.d.ts +0 -11
  266. package/dist/hooks/useFirebaseAuthState.d.ts +0 -6
  267. package/dist/hooks/useFirebaseAuthState.js +0 -23
  268. package/dist/hooks/useFirebaseAuthState.js.map +0 -1
  269. package/dist/hooks/useTicketTierForm.d.ts +0 -61
  270. package/dist/lib/actions.js +0 -32
  271. package/dist/lib/actions.js.map +0 -1
  272. package/dist/lib/cropImage.js +0 -113
  273. package/dist/lib/cropImage.js.map +0 -1
  274. package/dist/lib/imageAnalysis.js +0 -58
  275. package/dist/lib/imageAnalysis.js.map +0 -1
  276. package/dist/lib/utils.js +0 -9
  277. package/dist/lib/utils.js.map +0 -1
  278. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -60
  279. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +0 -1
  280. package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +0 -3458
  281. package/dist/node_modules/@dnd-kit/core/dist/core.esm.js.map +0 -1
  282. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +0 -593
  283. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +0 -1
  284. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -302
  285. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +0 -1
  286. package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -768
  287. package/dist/node_modules/@firebase/app/dist/esm/index.esm.js.map +0 -1
  288. package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -340
  289. package/dist/node_modules/@firebase/component/dist/esm/index.esm.js.map +0 -1
  290. package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -123
  291. package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js.map +0 -1
  292. package/dist/node_modules/@firebase/storage/dist/index.esm.js +0 -2623
  293. package/dist/node_modules/@firebase/storage/dist/index.esm.js.map +0 -1
  294. package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -658
  295. package/dist/node_modules/@firebase/util/dist/index.esm.js.map +0 -1
  296. package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -5
  297. package/dist/node_modules/@firebase/util/dist/postinstall.js.map +0 -1
  298. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -3179
  299. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js.map +0 -1
  300. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +0 -60
  301. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +0 -1
  302. package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +0 -400
  303. package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js.map +0 -1
  304. package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js +0 -27
  305. package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js.map +0 -1
  306. package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +0 -27
  307. package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js.map +0 -1
  308. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js +0 -29
  309. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js.map +0 -1
  310. package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +0 -29
  311. package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js.map +0 -1
  312. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js +0 -29
  313. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js.map +0 -1
  314. package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js +0 -29
  315. package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js.map +0 -1
  316. package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js +0 -29
  317. package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js.map +0 -1
  318. package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js +0 -29
  319. package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js.map +0 -1
  320. package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js +0 -33
  321. package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js.map +0 -1
  322. package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js +0 -29
  323. package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js.map +0 -1
  324. package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +0 -29
  325. package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js.map +0 -1
  326. package/dist/node_modules/@tiptap/core/dist/index.js +0 -5446
  327. package/dist/node_modules/@tiptap/core/dist/index.js.map +0 -1
  328. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -21
  329. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
  330. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -78
  331. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
  332. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -100
  333. package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +0 -1
  334. package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -70
  335. package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +0 -1
  336. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -317
  337. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
  338. package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -16
  339. package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +0 -1
  340. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -66
  341. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +0 -1
  342. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -86
  343. package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
  344. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -80
  345. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +0 -1
  346. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -98
  347. package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +0 -1
  348. package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -423
  349. package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +0 -1
  350. package/dist/node_modules/@tiptap/extension-list/dist/index.js +0 -1039
  351. package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +0 -1
  352. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -61
  353. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
  354. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -7
  355. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +0 -1
  356. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -79
  357. package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +0 -1
  358. package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -16
  359. package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +0 -1
  360. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +0 -76
  361. package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +0 -1
  362. package/dist/node_modules/@tiptap/extensions/dist/index.js +0 -376
  363. package/dist/node_modules/@tiptap/extensions/dist/index.js.map +0 -1
  364. package/dist/node_modules/@tiptap/react/dist/index.js +0 -650
  365. package/dist/node_modules/@tiptap/react/dist/index.js.map +0 -1
  366. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -97
  367. package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +0 -1
  368. package/dist/node_modules/dayjs/dayjs.min.js +0 -283
  369. package/dist/node_modules/dayjs/dayjs.min.js.map +0 -1
  370. package/dist/node_modules/dayjs/plugin/customParseFormat.js +0 -130
  371. package/dist/node_modules/dayjs/plugin/customParseFormat.js.map +0 -1
  372. package/dist/node_modules/dayjs/plugin/duration.js +0 -137
  373. package/dist/node_modules/dayjs/plugin/duration.js.map +0 -1
  374. package/dist/node_modules/dayjs/plugin/isBetween.js +0 -20
  375. package/dist/node_modules/dayjs/plugin/isBetween.js.map +0 -1
  376. package/dist/node_modules/dayjs/plugin/relativeTime.js +0 -49
  377. package/dist/node_modules/dayjs/plugin/relativeTime.js.map +0 -1
  378. package/dist/node_modules/fast-equals/dist/es/index.js +0 -442
  379. package/dist/node_modules/fast-equals/dist/es/index.js.map +0 -1
  380. package/dist/node_modules/idb/build/index.js +0 -70
  381. package/dist/node_modules/idb/build/index.js.map +0 -1
  382. package/dist/node_modules/idb/build/wrap-idb-value.js +0 -149
  383. package/dist/node_modules/idb/build/wrap-idb-value.js.map +0 -1
  384. package/dist/node_modules/linkifyjs/dist/linkify.js +0 -1159
  385. package/dist/node_modules/linkifyjs/dist/linkify.js.map +0 -1
  386. package/dist/node_modules/orderedmap/dist/index.js +0 -120
  387. package/dist/node_modules/orderedmap/dist/index.js.map +0 -1
  388. package/dist/node_modules/prosemirror-commands/dist/index.js +0 -527
  389. package/dist/node_modules/prosemirror-commands/dist/index.js.map +0 -1
  390. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -137
  391. package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +0 -1
  392. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -221
  393. package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +0 -1
  394. package/dist/node_modules/prosemirror-history/dist/index.js +0 -357
  395. package/dist/node_modules/prosemirror-history/dist/index.js.map +0 -1
  396. package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -84
  397. package/dist/node_modules/prosemirror-keymap/dist/index.js.map +0 -1
  398. package/dist/node_modules/prosemirror-model/dist/index.js +0 -3209
  399. package/dist/node_modules/prosemirror-model/dist/index.js.map +0 -1
  400. package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -131
  401. package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +0 -1
  402. package/dist/node_modules/prosemirror-state/dist/index.js +0 -936
  403. package/dist/node_modules/prosemirror-state/dist/index.js.map +0 -1
  404. package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1881
  405. package/dist/node_modules/prosemirror-transform/dist/index.js.map +0 -1
  406. package/dist/node_modules/prosemirror-view/dist/index.js +0 -5232
  407. package/dist/node_modules/prosemirror-view/dist/index.js.map +0 -1
  408. package/dist/node_modules/rope-sequence/dist/index.js +0 -184
  409. package/dist/node_modules/rope-sequence/dist/index.js.map +0 -1
  410. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
  411. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
  412. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
  413. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
  414. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
  415. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  416. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
  417. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  418. package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
  419. package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
  420. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -13
  421. package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
  422. package/dist/node_modules/w3c-keyname/index.js +0 -106
  423. package/dist/node_modules/w3c-keyname/index.js.map +0 -1
  424. package/dist/node_modules/zod/v4/classic/coerce.js +0 -10
  425. package/dist/node_modules/zod/v4/classic/coerce.js.map +0 -1
  426. package/dist/node_modules/zod/v4/classic/compat.js +0 -8
  427. package/dist/node_modules/zod/v4/classic/compat.js.map +0 -1
  428. package/dist/node_modules/zod/v4/classic/errors.js +0 -45
  429. package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
  430. package/dist/node_modules/zod/v4/classic/iso.js +0 -44
  431. package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
  432. package/dist/node_modules/zod/v4/classic/parse.js +0 -30
  433. package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
  434. package/dist/node_modules/zod/v4/classic/schemas.js +0 -711
  435. package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
  436. package/dist/node_modules/zod/v4/core/api.js +0 -588
  437. package/dist/node_modules/zod/v4/core/api.js.map +0 -1
  438. package/dist/node_modules/zod/v4/core/checks.js +0 -411
  439. package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
  440. package/dist/node_modules/zod/v4/core/core.js +0 -75
  441. package/dist/node_modules/zod/v4/core/core.js.map +0 -1
  442. package/dist/node_modules/zod/v4/core/doc.js +0 -38
  443. package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
  444. package/dist/node_modules/zod/v4/core/errors.js +0 -73
  445. package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
  446. package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -359
  447. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +0 -1
  448. package/dist/node_modules/zod/v4/core/parse.js +0 -96
  449. package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
  450. package/dist/node_modules/zod/v4/core/regexes.js +0 -84
  451. package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
  452. package/dist/node_modules/zod/v4/core/registries.js +0 -52
  453. package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
  454. package/dist/node_modules/zod/v4/core/schemas.js +0 -1391
  455. package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
  456. package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -363
  457. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +0 -1
  458. package/dist/node_modules/zod/v4/core/util.js +0 -431
  459. package/dist/node_modules/zod/v4/core/util.js.map +0 -1
  460. package/dist/node_modules/zod/v4/core/versions.js +0 -9
  461. package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
  462. package/dist/redux/baseQuery.d.ts +0 -1
  463. package/dist/redux/baseQuery.js +0 -24
  464. package/dist/redux/baseQuery.js.map +0 -1
  465. package/dist/services/eventApi.js +0 -411
  466. package/dist/services/eventApi.js.map +0 -1
  467. package/dist/services/helpers.js +0 -115
  468. package/dist/services/helpers.js.map +0 -1
  469. package/dist/services/initialize-firebase.d.ts +0 -2
  470. package/dist/services/initialize-firebase.js +0 -20
  471. package/dist/services/initialize-firebase.js.map +0 -1
  472. package/dist/services/process-image-on-server.js +0 -30
  473. package/dist/services/process-image-on-server.js.map +0 -1
  474. package/dist/services/remote-config.d.ts +0 -5
  475. package/dist/services/remote-config.js +0 -9
  476. package/dist/services/remote-config.js.map +0 -1
  477. package/dist/services/single-event-api.js +0 -301
  478. package/dist/services/single-event-api.js.map +0 -1
  479. package/dist/services/utils.js +0 -107
  480. package/dist/services/utils.js.map +0 -1
  481. package/dist/setupTests.d.ts +0 -1
  482. package/dist/stories/Alert.stories.d.ts +0 -10
  483. package/dist/stories/Button.stories.d.ts +0 -13
  484. package/dist/types/redux-types.d.ts +0 -15
  485. package/dist/types/types.d.ts +0 -60
  486. package/dist/types/types.js +0 -10
  487. package/dist/types/types.js.map +0 -1
  488. package/dist/utils/cn.d.ts +0 -6
  489. package/dist/utils/cn.js +0 -9
  490. package/dist/utils/cn.js.map +0 -1
  491. package/dist/utils/date-range.d.ts +0 -4
  492. package/dist/utils/date-range.js +0 -13
  493. package/dist/utils/date-range.js.map +0 -1
  494. package/dist/utils/single-event-helpers.d.ts +0 -50
  495. package/dist/utils/single-event-helpers.js +0 -18
  496. package/dist/utils/single-event-helpers.js.map +0 -1
  497. package/dist/utils/social-validation.js +0 -42
  498. package/dist/utils/social-validation.js.map +0 -1
  499. package/dist/utils/utils.js +0 -20
  500. package/dist/utils/utils.js.map +0 -1
  501. /package/dist/{components/Alert/Alert.d.ts → src/components/Alert/index.d.ts} +0 -0
  502. /package/dist/{components → src/components}/FormBuilder/CategoryList.d.ts +0 -0
  503. /package/dist/{components → src/components}/FormBuilder/OptionList.d.ts +0 -0
  504. /package/dist/{components → src/components}/FormBuilder/RequiredToggle.d.ts +0 -0
  505. /package/dist/{components → src/components}/FormBuilder/types.d.ts +0 -0
  506. /package/dist/{components → src/components}/FormBuilder/utils.d.ts +0 -0
  507. /package/dist/{components → src/components}/ImageCropModal/index.d.ts +0 -0
  508. /package/dist/{components → src/components}/InformationPopover.d.ts +0 -0
  509. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/DescriptionModal.d.ts +0 -0
  510. /package/dist/{components/ui/FormInput.d.ts → src/components/NewAddEvent/components/AddEventFormInput.d.ts} +0 -0
  511. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CheckboxGroup.d.ts +0 -0
  512. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CustomMeetingForm.d.ts +0 -0
  513. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/DateTimeField.d.ts +0 -0
  514. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FileUpload.d.ts +0 -0
  515. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FormBuilderProceedModal.d.ts +0 -0
  516. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/GoogleMapsAutocompleteInput.d.ts +0 -0
  517. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/SingleDateTimeInput.d.ts +0 -0
  518. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/CustomFormSection.d.ts +0 -0
  519. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTypeSelection.d.ts +0 -0
  520. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepOne.d.ts +0 -0
  521. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepTwo.d.ts +0 -0
  522. /package/dist/{components/EventAddForm → src/components/NewAddEvent}/types.d.ts +0 -0
  523. /package/dist/{components → src/components}/common/FallbackImage.d.ts +0 -0
  524. /package/dist/{components → src/components}/ui/Calendar/calendar-utils.d.ts +0 -0
  525. /package/dist/{components → src/components}/ui/Calendar/index.d.ts +0 -0
  526. /package/dist/{components/Checkbox → src/components/ui}/Checkbox.d.ts +0 -0
  527. /package/dist/{components/CustomSelect → src/components/ui}/CustomSelect.d.ts +0 -0
  528. /package/dist/{components → src/components}/ui/DatePicker/index.d.ts +0 -0
  529. /package/dist/{components/InputErrorMessage → src/components/ui}/InputErrorMessage.d.ts +0 -0
  530. /package/dist/{components → src/components}/ui/Modal/index.d.ts +0 -0
  531. /package/dist/{components/Radio → src/components/ui}/Radio.d.ts +0 -0
  532. /package/dist/{components → src/components}/ui/RichTextEditor.d.ts +0 -0
  533. /package/dist/{components → src/components}/ui/TimePicker/index.d.ts +0 -0
  534. /package/dist/{components → src/components}/ui/TimeSelector/index.d.ts +0 -0
  535. /package/dist/{components → src/components}/ui/Tooltip/index.d.ts +0 -0
  536. /package/dist/{lib → src/lib}/constants.d.ts +0 -0
  537. /package/dist/{lib → src/lib}/cropImage.d.ts +0 -0
  538. /package/dist/{lib → src/lib}/imageAnalysis.d.ts +0 -0
  539. /package/dist/{utils → src/lib}/social-validation.d.ts +0 -0
  540. /package/dist/{lib/utils.d.ts → src/lib/tailwind-merge.d.ts} +0 -0
  541. /package/dist/{utils → src/lib}/utils.d.ts +0 -0
  542. /package/dist/{services → src/redux/features/single-event}/helpers.d.ts +0 -0
  543. /package/dist/{services → src/services}/process-image-on-server.d.ts +0 -0
  544. /package/dist/{types → src/types}/events.d.ts +0 -0
  545. /package/dist/{types → src/types}/question.d.ts +0 -0
@@ -1,768 +0,0 @@
1
- import { ComponentContainer, Component } from "../../../component/dist/esm/index.esm.js";
2
- import { Logger } from "../../../logger/dist/esm/index.esm.js";
3
- import { getDefaultAppConfig, ErrorFactory, deepEqual, base64urlEncodeWithoutPadding, isIndexedDBAvailable, validateIndexedDBOpenable, FirebaseError } from "../../../util/dist/index.esm.js";
4
- import { openDB } from "../../../../idb/build/index.js";
5
- /**
6
- * @license
7
- * Copyright 2019 Google LLC
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- class PlatformLoggerServiceImpl {
22
- constructor(container) {
23
- this.container = container;
24
- }
25
- // In initial implementation, this will be called by installations on
26
- // auth token refresh, and installations will send this string.
27
- getPlatformInfoString() {
28
- const providers = this.container.getProviders();
29
- return providers.map((provider) => {
30
- if (isVersionServiceProvider(provider)) {
31
- const service = provider.getImmediate();
32
- return `${service.library}/${service.version}`;
33
- } else {
34
- return null;
35
- }
36
- }).filter((logString) => logString).join(" ");
37
- }
38
- }
39
- function isVersionServiceProvider(provider) {
40
- const component = provider.getComponent();
41
- return (component == null ? void 0 : component.type) === "VERSION";
42
- }
43
- const name$q = "@firebase/app";
44
- const version$1 = "0.14.11";
45
- /**
46
- * @license
47
- * Copyright 2019 Google LLC
48
- *
49
- * Licensed under the Apache License, Version 2.0 (the "License");
50
- * you may not use this file except in compliance with the License.
51
- * You may obtain a copy of the License at
52
- *
53
- * http://www.apache.org/licenses/LICENSE-2.0
54
- *
55
- * Unless required by applicable law or agreed to in writing, software
56
- * distributed under the License is distributed on an "AS IS" BASIS,
57
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
- * See the License for the specific language governing permissions and
59
- * limitations under the License.
60
- */
61
- const logger = new Logger("@firebase/app");
62
- const name$p = "@firebase/app-compat";
63
- const name$o = "@firebase/analytics-compat";
64
- const name$n = "@firebase/analytics";
65
- const name$m = "@firebase/app-check-compat";
66
- const name$l = "@firebase/app-check";
67
- const name$k = "@firebase/auth";
68
- const name$j = "@firebase/auth-compat";
69
- const name$i = "@firebase/database";
70
- const name$h = "@firebase/data-connect";
71
- const name$g = "@firebase/database-compat";
72
- const name$f = "@firebase/functions";
73
- const name$e = "@firebase/functions-compat";
74
- const name$d = "@firebase/installations";
75
- const name$c = "@firebase/installations-compat";
76
- const name$b = "@firebase/messaging";
77
- const name$a = "@firebase/messaging-compat";
78
- const name$9 = "@firebase/performance";
79
- const name$8 = "@firebase/performance-compat";
80
- const name$7 = "@firebase/remote-config";
81
- const name$6 = "@firebase/remote-config-compat";
82
- const name$5 = "@firebase/storage";
83
- const name$4 = "@firebase/storage-compat";
84
- const name$3 = "@firebase/firestore";
85
- const name$2 = "@firebase/ai";
86
- const name$1 = "@firebase/firestore-compat";
87
- const name = "firebase";
88
- const version = "12.12.0";
89
- /**
90
- * @license
91
- * Copyright 2019 Google LLC
92
- *
93
- * Licensed under the Apache License, Version 2.0 (the "License");
94
- * you may not use this file except in compliance with the License.
95
- * You may obtain a copy of the License at
96
- *
97
- * http://www.apache.org/licenses/LICENSE-2.0
98
- *
99
- * Unless required by applicable law or agreed to in writing, software
100
- * distributed under the License is distributed on an "AS IS" BASIS,
101
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102
- * See the License for the specific language governing permissions and
103
- * limitations under the License.
104
- */
105
- const DEFAULT_ENTRY_NAME = "[DEFAULT]";
106
- const PLATFORM_LOG_STRING = {
107
- [name$q]: "fire-core",
108
- [name$p]: "fire-core-compat",
109
- [name$n]: "fire-analytics",
110
- [name$o]: "fire-analytics-compat",
111
- [name$l]: "fire-app-check",
112
- [name$m]: "fire-app-check-compat",
113
- [name$k]: "fire-auth",
114
- [name$j]: "fire-auth-compat",
115
- [name$i]: "fire-rtdb",
116
- [name$h]: "fire-data-connect",
117
- [name$g]: "fire-rtdb-compat",
118
- [name$f]: "fire-fn",
119
- [name$e]: "fire-fn-compat",
120
- [name$d]: "fire-iid",
121
- [name$c]: "fire-iid-compat",
122
- [name$b]: "fire-fcm",
123
- [name$a]: "fire-fcm-compat",
124
- [name$9]: "fire-perf",
125
- [name$8]: "fire-perf-compat",
126
- [name$7]: "fire-rc",
127
- [name$6]: "fire-rc-compat",
128
- [name$5]: "fire-gcs",
129
- [name$4]: "fire-gcs-compat",
130
- [name$3]: "fire-fst",
131
- [name$1]: "fire-fst-compat",
132
- [name$2]: "fire-vertex",
133
- "fire-js": "fire-js",
134
- // Platform identifier for JS SDK.
135
- [name]: "fire-js-all"
136
- };
137
- /**
138
- * @license
139
- * Copyright 2019 Google LLC
140
- *
141
- * Licensed under the Apache License, Version 2.0 (the "License");
142
- * you may not use this file except in compliance with the License.
143
- * You may obtain a copy of the License at
144
- *
145
- * http://www.apache.org/licenses/LICENSE-2.0
146
- *
147
- * Unless required by applicable law or agreed to in writing, software
148
- * distributed under the License is distributed on an "AS IS" BASIS,
149
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
150
- * See the License for the specific language governing permissions and
151
- * limitations under the License.
152
- */
153
- const _apps = /* @__PURE__ */ new Map();
154
- const _serverApps = /* @__PURE__ */ new Map();
155
- const _components = /* @__PURE__ */ new Map();
156
- function _addComponent(app, component) {
157
- try {
158
- app.container.addComponent(component);
159
- } catch (e) {
160
- logger.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e);
161
- }
162
- }
163
- function _registerComponent(component) {
164
- const componentName = component.name;
165
- if (_components.has(componentName)) {
166
- logger.debug(`There were multiple attempts to register component ${componentName}.`);
167
- return false;
168
- }
169
- _components.set(componentName, component);
170
- for (const app of _apps.values()) {
171
- _addComponent(app, component);
172
- }
173
- for (const serverApp of _serverApps.values()) {
174
- _addComponent(serverApp, component);
175
- }
176
- return true;
177
- }
178
- function _getProvider(app, name2) {
179
- const heartbeatController = app.container.getProvider("heartbeat").getImmediate({ optional: true });
180
- if (heartbeatController) {
181
- void heartbeatController.triggerHeartbeat();
182
- }
183
- return app.container.getProvider(name2);
184
- }
185
- function _isFirebaseServerApp(obj) {
186
- if (obj === null || obj === void 0) {
187
- return false;
188
- }
189
- return obj.settings !== void 0;
190
- }
191
- /**
192
- * @license
193
- * Copyright 2019 Google LLC
194
- *
195
- * Licensed under the Apache License, Version 2.0 (the "License");
196
- * you may not use this file except in compliance with the License.
197
- * You may obtain a copy of the License at
198
- *
199
- * http://www.apache.org/licenses/LICENSE-2.0
200
- *
201
- * Unless required by applicable law or agreed to in writing, software
202
- * distributed under the License is distributed on an "AS IS" BASIS,
203
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
- * See the License for the specific language governing permissions and
205
- * limitations under the License.
206
- */
207
- const ERRORS = {
208
- [
209
- "no-app"
210
- /* AppError.NO_APP */
211
- ]: "No Firebase App '{$appName}' has been created - call initializeApp() first",
212
- [
213
- "bad-app-name"
214
- /* AppError.BAD_APP_NAME */
215
- ]: "Illegal App name: '{$appName}'",
216
- [
217
- "duplicate-app"
218
- /* AppError.DUPLICATE_APP */
219
- ]: "Firebase App named '{$appName}' already exists with different options or config",
220
- [
221
- "app-deleted"
222
- /* AppError.APP_DELETED */
223
- ]: "Firebase App named '{$appName}' already deleted",
224
- [
225
- "server-app-deleted"
226
- /* AppError.SERVER_APP_DELETED */
227
- ]: "Firebase Server App has been deleted",
228
- [
229
- "no-options"
230
- /* AppError.NO_OPTIONS */
231
- ]: "Need to provide options, when not being deployed to hosting via source.",
232
- [
233
- "invalid-app-argument"
234
- /* AppError.INVALID_APP_ARGUMENT */
235
- ]: "firebase.{$appName}() takes either no argument or a Firebase App instance.",
236
- [
237
- "invalid-log-argument"
238
- /* AppError.INVALID_LOG_ARGUMENT */
239
- ]: "First argument to `onLog` must be null or a function.",
240
- [
241
- "idb-open"
242
- /* AppError.IDB_OPEN */
243
- ]: "Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",
244
- [
245
- "idb-get"
246
- /* AppError.IDB_GET */
247
- ]: "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
248
- [
249
- "idb-set"
250
- /* AppError.IDB_WRITE */
251
- ]: "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
252
- [
253
- "idb-delete"
254
- /* AppError.IDB_DELETE */
255
- ]: "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
256
- [
257
- "finalization-registry-not-supported"
258
- /* AppError.FINALIZATION_REGISTRY_NOT_SUPPORTED */
259
- ]: "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
260
- [
261
- "invalid-server-app-environment"
262
- /* AppError.INVALID_SERVER_APP_ENVIRONMENT */
263
- ]: "FirebaseServerApp is not for use in browser environments."
264
- };
265
- const ERROR_FACTORY = new ErrorFactory("app", "Firebase", ERRORS);
266
- /**
267
- * @license
268
- * Copyright 2019 Google LLC
269
- *
270
- * Licensed under the Apache License, Version 2.0 (the "License");
271
- * you may not use this file except in compliance with the License.
272
- * You may obtain a copy of the License at
273
- *
274
- * http://www.apache.org/licenses/LICENSE-2.0
275
- *
276
- * Unless required by applicable law or agreed to in writing, software
277
- * distributed under the License is distributed on an "AS IS" BASIS,
278
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
279
- * See the License for the specific language governing permissions and
280
- * limitations under the License.
281
- */
282
- class FirebaseAppImpl {
283
- constructor(options, config, container) {
284
- this._isDeleted = false;
285
- this._options = { ...options };
286
- this._config = { ...config };
287
- this._name = config.name;
288
- this._automaticDataCollectionEnabled = config.automaticDataCollectionEnabled;
289
- this._container = container;
290
- this.container.addComponent(new Component(
291
- "app",
292
- () => this,
293
- "PUBLIC"
294
- /* ComponentType.PUBLIC */
295
- ));
296
- }
297
- get automaticDataCollectionEnabled() {
298
- this.checkDestroyed();
299
- return this._automaticDataCollectionEnabled;
300
- }
301
- set automaticDataCollectionEnabled(val) {
302
- this.checkDestroyed();
303
- this._automaticDataCollectionEnabled = val;
304
- }
305
- get name() {
306
- this.checkDestroyed();
307
- return this._name;
308
- }
309
- get options() {
310
- this.checkDestroyed();
311
- return this._options;
312
- }
313
- get config() {
314
- this.checkDestroyed();
315
- return this._config;
316
- }
317
- get container() {
318
- return this._container;
319
- }
320
- get isDeleted() {
321
- return this._isDeleted;
322
- }
323
- set isDeleted(val) {
324
- this._isDeleted = val;
325
- }
326
- /**
327
- * This function will throw an Error if the App has already been deleted -
328
- * use before performing API actions on the App.
329
- */
330
- checkDestroyed() {
331
- if (this.isDeleted) {
332
- throw ERROR_FACTORY.create("app-deleted", { appName: this._name });
333
- }
334
- }
335
- }
336
- /**
337
- * @license
338
- * Copyright 2019 Google LLC
339
- *
340
- * Licensed under the Apache License, Version 2.0 (the "License");
341
- * you may not use this file except in compliance with the License.
342
- * You may obtain a copy of the License at
343
- *
344
- * http://www.apache.org/licenses/LICENSE-2.0
345
- *
346
- * Unless required by applicable law or agreed to in writing, software
347
- * distributed under the License is distributed on an "AS IS" BASIS,
348
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
349
- * See the License for the specific language governing permissions and
350
- * limitations under the License.
351
- */
352
- const SDK_VERSION = version;
353
- function initializeApp(_options, rawConfig = {}) {
354
- let options = _options;
355
- if (typeof rawConfig !== "object") {
356
- const name3 = rawConfig;
357
- rawConfig = { name: name3 };
358
- }
359
- const config = {
360
- name: DEFAULT_ENTRY_NAME,
361
- automaticDataCollectionEnabled: true,
362
- ...rawConfig
363
- };
364
- const name2 = config.name;
365
- if (typeof name2 !== "string" || !name2) {
366
- throw ERROR_FACTORY.create("bad-app-name", {
367
- appName: String(name2)
368
- });
369
- }
370
- options || (options = getDefaultAppConfig());
371
- if (!options) {
372
- throw ERROR_FACTORY.create(
373
- "no-options"
374
- /* AppError.NO_OPTIONS */
375
- );
376
- }
377
- const existingApp = _apps.get(name2);
378
- if (existingApp) {
379
- if (deepEqual(options, existingApp.options) && deepEqual(config, existingApp.config)) {
380
- return existingApp;
381
- } else {
382
- throw ERROR_FACTORY.create("duplicate-app", { appName: name2 });
383
- }
384
- }
385
- const container = new ComponentContainer(name2);
386
- for (const component of _components.values()) {
387
- container.addComponent(component);
388
- }
389
- const newApp = new FirebaseAppImpl(options, config, container);
390
- _apps.set(name2, newApp);
391
- return newApp;
392
- }
393
- function getApp(name2 = DEFAULT_ENTRY_NAME) {
394
- const app = _apps.get(name2);
395
- if (!app && name2 === DEFAULT_ENTRY_NAME && getDefaultAppConfig()) {
396
- return initializeApp();
397
- }
398
- if (!app) {
399
- throw ERROR_FACTORY.create("no-app", { appName: name2 });
400
- }
401
- return app;
402
- }
403
- function registerVersion(libraryKeyOrName, version2, variant) {
404
- let library = PLATFORM_LOG_STRING[libraryKeyOrName] ?? libraryKeyOrName;
405
- if (variant) {
406
- library += `-${variant}`;
407
- }
408
- const libraryMismatch = library.match(/\s|\//);
409
- const versionMismatch = version2.match(/\s|\//);
410
- if (libraryMismatch || versionMismatch) {
411
- const warning = [
412
- `Unable to register library "${library}" with version "${version2}":`
413
- ];
414
- if (libraryMismatch) {
415
- warning.push(`library name "${library}" contains illegal characters (whitespace or "/")`);
416
- }
417
- if (libraryMismatch && versionMismatch) {
418
- warning.push("and");
419
- }
420
- if (versionMismatch) {
421
- warning.push(`version name "${version2}" contains illegal characters (whitespace or "/")`);
422
- }
423
- logger.warn(warning.join(" "));
424
- return;
425
- }
426
- _registerComponent(new Component(
427
- `${library}-version`,
428
- () => ({ library, version: version2 }),
429
- "VERSION"
430
- /* ComponentType.VERSION */
431
- ));
432
- }
433
- /**
434
- * @license
435
- * Copyright 2021 Google LLC
436
- *
437
- * Licensed under the Apache License, Version 2.0 (the "License");
438
- * you may not use this file except in compliance with the License.
439
- * You may obtain a copy of the License at
440
- *
441
- * http://www.apache.org/licenses/LICENSE-2.0
442
- *
443
- * Unless required by applicable law or agreed to in writing, software
444
- * distributed under the License is distributed on an "AS IS" BASIS,
445
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
446
- * See the License for the specific language governing permissions and
447
- * limitations under the License.
448
- */
449
- const DB_NAME = "firebase-heartbeat-database";
450
- const DB_VERSION = 1;
451
- const STORE_NAME = "firebase-heartbeat-store";
452
- let dbPromise = null;
453
- function getDbPromise() {
454
- if (!dbPromise) {
455
- dbPromise = openDB(DB_NAME, DB_VERSION, {
456
- upgrade: (db, oldVersion) => {
457
- switch (oldVersion) {
458
- case 0:
459
- try {
460
- db.createObjectStore(STORE_NAME);
461
- } catch (e) {
462
- console.warn(e);
463
- }
464
- }
465
- }
466
- }).catch((e) => {
467
- throw ERROR_FACTORY.create("idb-open", {
468
- originalErrorMessage: e.message
469
- });
470
- });
471
- }
472
- return dbPromise;
473
- }
474
- async function readHeartbeatsFromIndexedDB(app) {
475
- try {
476
- const db = await getDbPromise();
477
- const tx = db.transaction(STORE_NAME);
478
- const result = await tx.objectStore(STORE_NAME).get(computeKey(app));
479
- await tx.done;
480
- return result;
481
- } catch (e) {
482
- if (e instanceof FirebaseError) {
483
- logger.warn(e.message);
484
- } else {
485
- const idbGetError = ERROR_FACTORY.create("idb-get", {
486
- originalErrorMessage: e == null ? void 0 : e.message
487
- });
488
- logger.warn(idbGetError.message);
489
- }
490
- }
491
- }
492
- async function writeHeartbeatsToIndexedDB(app, heartbeatObject) {
493
- try {
494
- const db = await getDbPromise();
495
- const tx = db.transaction(STORE_NAME, "readwrite");
496
- const objectStore = tx.objectStore(STORE_NAME);
497
- await objectStore.put(heartbeatObject, computeKey(app));
498
- await tx.done;
499
- } catch (e) {
500
- if (e instanceof FirebaseError) {
501
- logger.warn(e.message);
502
- } else {
503
- const idbGetError = ERROR_FACTORY.create("idb-set", {
504
- originalErrorMessage: e == null ? void 0 : e.message
505
- });
506
- logger.warn(idbGetError.message);
507
- }
508
- }
509
- }
510
- function computeKey(app) {
511
- return `${app.name}!${app.options.appId}`;
512
- }
513
- /**
514
- * @license
515
- * Copyright 2021 Google LLC
516
- *
517
- * Licensed under the Apache License, Version 2.0 (the "License");
518
- * you may not use this file except in compliance with the License.
519
- * You may obtain a copy of the License at
520
- *
521
- * http://www.apache.org/licenses/LICENSE-2.0
522
- *
523
- * Unless required by applicable law or agreed to in writing, software
524
- * distributed under the License is distributed on an "AS IS" BASIS,
525
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
526
- * See the License for the specific language governing permissions and
527
- * limitations under the License.
528
- */
529
- const MAX_HEADER_BYTES = 1024;
530
- const MAX_NUM_STORED_HEARTBEATS = 30;
531
- class HeartbeatServiceImpl {
532
- constructor(container) {
533
- this.container = container;
534
- this._heartbeatsCache = null;
535
- const app = this.container.getProvider("app").getImmediate();
536
- this._storage = new HeartbeatStorageImpl(app);
537
- this._heartbeatsCachePromise = this._storage.read().then((result) => {
538
- this._heartbeatsCache = result;
539
- return result;
540
- });
541
- }
542
- /**
543
- * Called to report a heartbeat. The function will generate
544
- * a HeartbeatsByUserAgent object, update heartbeatsCache, and persist it
545
- * to IndexedDB.
546
- * Note that we only store one heartbeat per day. So if a heartbeat for today is
547
- * already logged, subsequent calls to this function in the same day will be ignored.
548
- */
549
- async triggerHeartbeat() {
550
- var _a, _b;
551
- try {
552
- const platformLogger = this.container.getProvider("platform-logger").getImmediate();
553
- const agent = platformLogger.getPlatformInfoString();
554
- const date = getUTCDateString();
555
- if (((_a = this._heartbeatsCache) == null ? void 0 : _a.heartbeats) == null) {
556
- this._heartbeatsCache = await this._heartbeatsCachePromise;
557
- if (((_b = this._heartbeatsCache) == null ? void 0 : _b.heartbeats) == null) {
558
- return;
559
- }
560
- }
561
- if (this._heartbeatsCache.lastSentHeartbeatDate === date || this._heartbeatsCache.heartbeats.some((singleDateHeartbeat) => singleDateHeartbeat.date === date)) {
562
- return;
563
- } else {
564
- this._heartbeatsCache.heartbeats.push({ date, agent });
565
- if (this._heartbeatsCache.heartbeats.length > MAX_NUM_STORED_HEARTBEATS) {
566
- const earliestHeartbeatIdx = getEarliestHeartbeatIdx(this._heartbeatsCache.heartbeats);
567
- this._heartbeatsCache.heartbeats.splice(earliestHeartbeatIdx, 1);
568
- }
569
- }
570
- return this._storage.overwrite(this._heartbeatsCache);
571
- } catch (e) {
572
- logger.warn(e);
573
- }
574
- }
575
- /**
576
- * Returns a base64 encoded string which can be attached to the heartbeat-specific header directly.
577
- * It also clears all heartbeats from memory as well as in IndexedDB.
578
- *
579
- * NOTE: Consuming product SDKs should not send the header if this method
580
- * returns an empty string.
581
- */
582
- async getHeartbeatsHeader() {
583
- var _a;
584
- try {
585
- if (this._heartbeatsCache === null) {
586
- await this._heartbeatsCachePromise;
587
- }
588
- if (((_a = this._heartbeatsCache) == null ? void 0 : _a.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0) {
589
- return "";
590
- }
591
- const date = getUTCDateString();
592
- const { heartbeatsToSend, unsentEntries } = extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats);
593
- const headerString = base64urlEncodeWithoutPadding(JSON.stringify({ version: 2, heartbeats: heartbeatsToSend }));
594
- this._heartbeatsCache.lastSentHeartbeatDate = date;
595
- if (unsentEntries.length > 0) {
596
- this._heartbeatsCache.heartbeats = unsentEntries;
597
- await this._storage.overwrite(this._heartbeatsCache);
598
- } else {
599
- this._heartbeatsCache.heartbeats = [];
600
- void this._storage.overwrite(this._heartbeatsCache);
601
- }
602
- return headerString;
603
- } catch (e) {
604
- logger.warn(e);
605
- return "";
606
- }
607
- }
608
- }
609
- function getUTCDateString() {
610
- const today = /* @__PURE__ */ new Date();
611
- return today.toISOString().substring(0, 10);
612
- }
613
- function extractHeartbeatsForHeader(heartbeatsCache, maxSize = MAX_HEADER_BYTES) {
614
- const heartbeatsToSend = [];
615
- let unsentEntries = heartbeatsCache.slice();
616
- for (const singleDateHeartbeat of heartbeatsCache) {
617
- const heartbeatEntry = heartbeatsToSend.find((hb) => hb.agent === singleDateHeartbeat.agent);
618
- if (!heartbeatEntry) {
619
- heartbeatsToSend.push({
620
- agent: singleDateHeartbeat.agent,
621
- dates: [singleDateHeartbeat.date]
622
- });
623
- if (countBytes(heartbeatsToSend) > maxSize) {
624
- heartbeatsToSend.pop();
625
- break;
626
- }
627
- } else {
628
- heartbeatEntry.dates.push(singleDateHeartbeat.date);
629
- if (countBytes(heartbeatsToSend) > maxSize) {
630
- heartbeatEntry.dates.pop();
631
- break;
632
- }
633
- }
634
- unsentEntries = unsentEntries.slice(1);
635
- }
636
- return {
637
- heartbeatsToSend,
638
- unsentEntries
639
- };
640
- }
641
- class HeartbeatStorageImpl {
642
- constructor(app) {
643
- this.app = app;
644
- this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
645
- }
646
- async runIndexedDBEnvironmentCheck() {
647
- if (!isIndexedDBAvailable()) {
648
- return false;
649
- } else {
650
- return validateIndexedDBOpenable().then(() => true).catch(() => false);
651
- }
652
- }
653
- /**
654
- * Read all heartbeats.
655
- */
656
- async read() {
657
- const canUseIndexedDB = await this._canUseIndexedDBPromise;
658
- if (!canUseIndexedDB) {
659
- return { heartbeats: [] };
660
- } else {
661
- const idbHeartbeatObject = await readHeartbeatsFromIndexedDB(this.app);
662
- if (idbHeartbeatObject == null ? void 0 : idbHeartbeatObject.heartbeats) {
663
- return idbHeartbeatObject;
664
- } else {
665
- return { heartbeats: [] };
666
- }
667
- }
668
- }
669
- // overwrite the storage with the provided heartbeats
670
- async overwrite(heartbeatsObject) {
671
- const canUseIndexedDB = await this._canUseIndexedDBPromise;
672
- if (!canUseIndexedDB) {
673
- return;
674
- } else {
675
- const existingHeartbeatsObject = await this.read();
676
- return writeHeartbeatsToIndexedDB(this.app, {
677
- lastSentHeartbeatDate: heartbeatsObject.lastSentHeartbeatDate ?? existingHeartbeatsObject.lastSentHeartbeatDate,
678
- heartbeats: heartbeatsObject.heartbeats
679
- });
680
- }
681
- }
682
- // add heartbeats
683
- async add(heartbeatsObject) {
684
- const canUseIndexedDB = await this._canUseIndexedDBPromise;
685
- if (!canUseIndexedDB) {
686
- return;
687
- } else {
688
- const existingHeartbeatsObject = await this.read();
689
- return writeHeartbeatsToIndexedDB(this.app, {
690
- lastSentHeartbeatDate: heartbeatsObject.lastSentHeartbeatDate ?? existingHeartbeatsObject.lastSentHeartbeatDate,
691
- heartbeats: [
692
- ...existingHeartbeatsObject.heartbeats,
693
- ...heartbeatsObject.heartbeats
694
- ]
695
- });
696
- }
697
- }
698
- }
699
- function countBytes(heartbeatsCache) {
700
- return base64urlEncodeWithoutPadding(
701
- // heartbeatsCache wrapper properties
702
- JSON.stringify({ version: 2, heartbeats: heartbeatsCache })
703
- ).length;
704
- }
705
- function getEarliestHeartbeatIdx(heartbeats) {
706
- if (heartbeats.length === 0) {
707
- return -1;
708
- }
709
- let earliestHeartbeatIdx = 0;
710
- let earliestHeartbeatDate = heartbeats[0].date;
711
- for (let i = 1; i < heartbeats.length; i++) {
712
- if (heartbeats[i].date < earliestHeartbeatDate) {
713
- earliestHeartbeatDate = heartbeats[i].date;
714
- earliestHeartbeatIdx = i;
715
- }
716
- }
717
- return earliestHeartbeatIdx;
718
- }
719
- /**
720
- * @license
721
- * Copyright 2019 Google LLC
722
- *
723
- * Licensed under the Apache License, Version 2.0 (the "License");
724
- * you may not use this file except in compliance with the License.
725
- * You may obtain a copy of the License at
726
- *
727
- * http://www.apache.org/licenses/LICENSE-2.0
728
- *
729
- * Unless required by applicable law or agreed to in writing, software
730
- * distributed under the License is distributed on an "AS IS" BASIS,
731
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
732
- * See the License for the specific language governing permissions and
733
- * limitations under the License.
734
- */
735
- function registerCoreComponents(variant) {
736
- _registerComponent(new Component(
737
- "platform-logger",
738
- (container) => new PlatformLoggerServiceImpl(container),
739
- "PRIVATE"
740
- /* ComponentType.PRIVATE */
741
- ));
742
- _registerComponent(new Component(
743
- "heartbeat",
744
- (container) => new HeartbeatServiceImpl(container),
745
- "PRIVATE"
746
- /* ComponentType.PRIVATE */
747
- ));
748
- registerVersion(name$q, version$1, variant);
749
- registerVersion(name$q, version$1, "esm2020");
750
- registerVersion("fire-js", "");
751
- }
752
- registerCoreComponents("");
753
- export {
754
- FirebaseError,
755
- SDK_VERSION,
756
- DEFAULT_ENTRY_NAME as _DEFAULT_ENTRY_NAME,
757
- _addComponent,
758
- _apps,
759
- _components,
760
- _getProvider,
761
- _isFirebaseServerApp,
762
- _registerComponent,
763
- _serverApps,
764
- getApp,
765
- initializeApp,
766
- registerVersion
767
- };
768
- //# sourceMappingURL=index.esm.js.map