@bikdotai/bik-component-library 0.0.687-beta.7 → 0.0.687-beta.9
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.
- package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/bik-store.js +1 -0
- package/dist/cjs/amplitude/index.d.ts +21 -0
- package/dist/cjs/amplitude/index.js +1 -0
- package/dist/cjs/amplitude/model.d.ts +51 -0
- package/dist/cjs/amplitude/model.js +1 -0
- package/dist/cjs/assets/bundle-c485438b.css +333 -0
- package/dist/cjs/assets/icons/Bik_logo.svg.js +1 -0
- package/dist/cjs/assets/icons/ChartBar.svg.js +1 -0
- package/dist/cjs/assets/icons/ChartPie.svg.js +1 -0
- package/dist/cjs/assets/icons/PlusIcon.js +1 -0
- package/dist/cjs/assets/icons/RCS_PDF.svg.js +1 -0
- package/dist/cjs/assets/icons/RedirectToNew.svg.js +1 -0
- package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +1 -0
- package/dist/cjs/assets/icons/alert.svg.js +1 -0
- package/dist/cjs/assets/icons/alert_triangle.svg.js +1 -0
- package/dist/cjs/assets/icons/arrow_back.svg.js +1 -0
- package/dist/cjs/assets/icons/arrow_down.svg.js +1 -0
- package/dist/cjs/assets/icons/arrow_left.svg.js +1 -0
- package/dist/cjs/assets/icons/arrow_up.svg.js +1 -0
- package/dist/cjs/assets/icons/back_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/bik_livechat.svg.js +1 -0
- package/dist/cjs/assets/icons/bold.svg.js +1 -0
- package/dist/cjs/assets/icons/box.svg.js +1 -0
- package/dist/cjs/assets/icons/boxV2.svg.js +1 -0
- package/dist/cjs/assets/icons/box_round.svg.js +1 -0
- package/dist/cjs/assets/icons/broken_media_image.svg.js +1 -0
- package/dist/cjs/assets/icons/calendar.svg.js +1 -0
- package/dist/cjs/assets/icons/card_footer_arraw.svg.js +1 -0
- package/dist/cjs/assets/icons/chat-channel.svg.js +1 -0
- package/dist/cjs/assets/icons/check.svg.js +1 -0
- package/dist/cjs/assets/icons/checkCircle.svg.js +1 -0
- package/dist/cjs/assets/icons/checklistIcon.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronDown.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronDownOutline.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronLeft.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronLeft2.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronRight.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronRight2.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronRightAlt.svg.js +1 -0
- package/dist/cjs/assets/icons/chevronUpOutline.svg.js +1 -0
- package/dist/cjs/assets/icons/click.svg.js +1 -0
- package/dist/cjs/assets/icons/clock.svg.js +1 -0
- package/dist/cjs/assets/icons/copy-code-icon.svg.js +1 -0
- package/dist/cjs/assets/icons/cross.svg.js +1 -0
- package/dist/cjs/assets/icons/cubeIcon.svg.js +1 -0
- package/dist/cjs/assets/icons/cursor.svg.js +1 -0
- package/dist/cjs/assets/icons/delete.svg.js +1 -0
- package/dist/cjs/assets/icons/desktop_custom.svg.js +1 -0
- package/dist/cjs/assets/icons/document_pdf.svg.js +1 -0
- package/dist/cjs/assets/icons/drag_handle.svg.js +1 -0
- package/dist/cjs/assets/icons/edit.svg.js +1 -0
- package/dist/cjs/assets/icons/email-channel.svg.js +1 -0
- package/dist/cjs/assets/icons/emoji.svg.js +1 -0
- package/dist/cjs/assets/icons/errorIcon.svg.js +1 -0
- package/dist/cjs/assets/icons/errorInfo.svg.js +1 -0
- package/dist/cjs/assets/icons/facebook_channel.svg.js +1 -0
- package/dist/cjs/assets/icons/file.svg.js +1 -0
- package/dist/cjs/assets/icons/filePdf.svg.js +1 -0
- package/dist/cjs/assets/icons/gift_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/gmail.svg.js +1 -0
- package/dist/cjs/assets/icons/graph.svg.js +1 -0
- package/dist/cjs/assets/icons/halfRectangle.svg.js +1 -0
- package/dist/cjs/assets/icons/help.svg.js +1 -0
- package/dist/cjs/assets/icons/horizontal_dots.svg.js +1 -0
- package/dist/cjs/assets/icons/image.svg.js +1 -0
- package/dist/cjs/assets/icons/info.svg.js +1 -0
- package/dist/cjs/assets/icons/instagram-channel.svg.js +1 -0
- package/dist/cjs/assets/icons/instagram.svg.js +1 -0
- package/dist/cjs/assets/icons/italic.svg.js +1 -0
- package/dist/cjs/assets/icons/locked.svg.js +1 -0
- package/dist/cjs/assets/icons/log_out.svg.js +1 -0
- package/dist/cjs/assets/icons/lto_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/maximize.svg.js +1 -0
- package/dist/cjs/assets/icons/mobile_custom.svg.js +1 -0
- package/dist/cjs/assets/icons/more_vertical.svg.js +1 -0
- package/dist/cjs/assets/icons/openai.svg.js +1 -0
- package/dist/cjs/assets/icons/percentage_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/phone.svg.js +1 -0
- package/dist/cjs/assets/icons/plus.svg.js +1 -0
- package/dist/cjs/assets/icons/qrb.svg.js +1 -0
- package/dist/cjs/assets/icons/question-mark.svg.js +1 -0
- package/dist/cjs/assets/icons/quotes.svg.js +1 -0
- package/dist/cjs/assets/icons/redirect.svg.js +1 -0
- package/dist/cjs/assets/icons/refresh.svg.js +1 -0
- package/dist/cjs/assets/icons/retryIcon.svg.js +1 -0
- package/dist/cjs/assets/icons/search.svg.js +1 -0
- package/dist/cjs/assets/icons/searchIcon.js +1 -0
- package/dist/cjs/assets/icons/send_template.svg.js +1 -0
- package/dist/cjs/assets/icons/shipping_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/similar.svg.js +1 -0
- package/dist/cjs/assets/icons/sparkle.svg.js +1 -0
- package/dist/cjs/assets/icons/starEmpty.svg.js +1 -0
- package/dist/cjs/assets/icons/starFilled.svg.js +1 -0
- package/dist/cjs/assets/icons/starFilledV2.svg.js +1 -0
- package/dist/cjs/assets/icons/state_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/strikeThrough.svg.js +1 -0
- package/dist/cjs/assets/icons/sub_category.svg.js +1 -0
- package/dist/cjs/assets/icons/successIcon.svg.js +1 -0
- package/dist/cjs/assets/icons/sync.svg.js +1 -0
- package/dist/cjs/assets/icons/task.svg.js +1 -0
- package/dist/cjs/assets/icons/text_t9.svg.js +1 -0
- package/dist/cjs/assets/icons/tick.svg.js +1 -0
- package/dist/cjs/assets/icons/tick_double.svg.js +1 -0
- package/dist/cjs/assets/icons/triangle_error.svg.js +1 -0
- package/dist/cjs/assets/icons/undo.svg.js +1 -0
- package/dist/cjs/assets/icons/union.svg.js +1 -0
- package/dist/cjs/assets/icons/upload.svg.js +1 -0
- package/dist/cjs/assets/icons/user_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/vertical_dots.svg.js +1 -0
- package/dist/cjs/assets/icons/videoRecorder.svg.js +1 -0
- package/dist/cjs/assets/icons/warning.svg.js +1 -0
- package/dist/cjs/assets/icons/warningIcon.svg.js +1 -0
- package/dist/cjs/assets/icons/website.svg.js +1 -0
- package/dist/cjs/assets/icons/whatsapp-channel.svg.js +1 -0
- package/dist/cjs/assets/icons/whatsapp_color.svg.js +1 -0
- package/dist/cjs/components/InfiniteScroll/InfiniteScroll.js +1 -0
- package/dist/cjs/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -0
- package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -0
- package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -0
- package/dist/cjs/components/QueryBuilder/Filters/UserProperty/components/UserPropertyFilter.js +1 -0
- package/dist/cjs/components/QueryBuilder/QueryBuilder.d.ts +12 -0
- package/dist/cjs/components/QueryBuilder/QueryBuilder.js +1 -0
- package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -0
- package/dist/cjs/components/QueryBuilder/Triggers/IG/components/IGTrigger.js +1 -0
- package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/AddNodeButton.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/AllowedListDropdown.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +14 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +6 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js +234 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +5 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +6 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NoInput.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.styled.js +6 -0
- package/dist/cjs/components/QueryBuilder/components/DeleteButton.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/InputLoader.js +11 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.d.ts +25 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js +9 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.d.ts +20 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.styled.js +6 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.styled.js +17 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/QueryBuilderNode.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.styled.js +16 -0
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -0
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -0
- package/dist/cjs/components/QueryBuilder/constants/connectorPosition.js +1 -0
- package/dist/cjs/components/QueryBuilder/constants/operators.js +1 -0
- package/dist/cjs/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -0
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -0
- package/dist/cjs/components/QueryBuilder/hooks/useQueryBuilder.js +1 -0
- package/dist/cjs/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -0
- package/dist/cjs/components/QueryBuilder/redux/queryBuilder.reducer.d.ts +56 -0
- package/dist/cjs/components/QueryBuilder/redux/queryBuilder.reducer.js +1 -0
- package/dist/cjs/components/QueryBuilder/redux/queryBuilderCache.reducer.d.ts +22 -0
- package/dist/cjs/components/QueryBuilder/redux/queryBuilderCache.reducer.js +1 -0
- package/dist/cjs/components/QueryBuilder/redux/selectors/useQueryBuilderCacheSelector.js +1 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.d.ts +90 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.js +1 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderAPI.type.d.ts +21 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +54 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderNodeProps.type.d.ts +14 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +130 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +39 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderProps.type.d.ts +55 -0
- package/dist/cjs/components/SearchFilter/components/DatePickerButton.js +1 -0
- package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +1 -0
- package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -0
- package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -0
- package/dist/cjs/components/SearchFilter/index.d.ts +6 -0
- package/dist/cjs/components/SearchFilter/index.js +1 -0
- package/dist/cjs/components/SearchFilter/types/SearchFilter.type.d.ts +41 -0
- package/dist/cjs/components/SearchFilter/types/SearchFilter.type.js +1 -0
- package/dist/cjs/components/TablePagination/TablePagination.d.ts +17 -0
- package/dist/cjs/components/TablePagination/TablePagination.js +1 -0
- package/dist/cjs/components/TablePagination/TablePagination.styled.js +39 -0
- package/dist/cjs/components/TablePagination/TablePaginationCard.d.ts +14 -0
- package/dist/cjs/components/TablePagination/TablePaginationCard.js +9 -0
- package/dist/cjs/components/TypographyStyle.d.ts +117 -0
- package/dist/cjs/components/TypographyStyle.js +295 -0
- package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.js +22 -0
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +46 -0
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -0
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +24 -0
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +34 -0
- package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.d.ts +23 -0
- package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -0
- package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.styles.js +50 -0
- package/dist/cjs/components/accordion/Accordion.d.ts +31 -0
- package/dist/cjs/components/accordion/Accordion.js +1 -0
- package/dist/cjs/components/accordion/Accordion.style.js +43 -0
- package/dist/cjs/components/accordion/AccordionArrow.js +1 -0
- package/dist/cjs/components/action-button/ActionButton.styled.js +23 -0
- package/dist/cjs/components/action-button/ActionButtons.d.ts +14 -0
- package/dist/cjs/components/action-button/ActionButtons.js +1 -0
- package/dist/cjs/components/add-variableV2/AddVariableBox.styled.js +25 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2.d.ts +61 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +164 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.d.ts +23 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js +1 -0
- package/dist/cjs/components/add-variableV2/types.d.ts +8 -0
- package/dist/cjs/components/ai-modals/ActivateBikAI.d.ts +12 -0
- package/dist/cjs/components/ai-modals/ActivateBikAI.js +1 -0
- package/dist/cjs/components/ai-modals/AiCreditsExhausted.d.ts +11 -0
- package/dist/cjs/components/ai-modals/AiCreditsExhausted.js +1 -0
- package/dist/cjs/components/ai-modals/AiCreditsLow.d.ts +10 -0
- package/dist/cjs/components/ai-modals/AiCreditsLow.js +1 -0
- package/dist/cjs/components/ai-modals/AiSyncProgress.d.ts +11 -0
- package/dist/cjs/components/ai-modals/AiSyncProgress.js +1 -0
- package/dist/cjs/components/alerts/Alert.d.ts +25 -0
- package/dist/cjs/components/alerts/Alert.js +1 -0
- package/dist/cjs/components/alerts/Alert.styled.js +17 -0
- package/dist/cjs/components/alerts/AlertHelper.d.ts +42 -0
- package/dist/cjs/components/alerts/AlertHelper.js +1 -0
- package/dist/cjs/components/analytics-card/AnalyticsCard.d.ts +14 -0
- package/dist/cjs/components/analytics-card/AnalyticsCard.js +1 -0
- package/dist/cjs/components/analytics-card/AnalyticsCard.styled.d.ts +21 -0
- package/dist/cjs/components/analytics-card/AnalyticsCard.styled.js +46 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +23 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChipChannelFooter.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +52 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +21 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +5 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.d.ts +9 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +37 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +113 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.d.ts +49 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.js +4 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +19 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.d.ts +58 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +16 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.d.ts +6 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +28 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.d.ts +8 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +5 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartInputData.d.ts +23 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.d.ts +6 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.model.d.ts +90 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.model.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js +35 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.d.ts +6 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.model.d.ts +51 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.model.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.d.ts +6 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.styles.js +4 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraphModel.d.ts +24 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.d.ts +18 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.d.ts +49 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.js +4 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +35 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +38 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.d.ts +20 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +32 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.d.ts +30 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +31 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.d.ts +22 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -0
- package/dist/cjs/components/avatar/Avatar.d.ts +53 -0
- package/dist/cjs/components/avatar/Avatar.js +1 -0
- package/dist/cjs/components/avatar/Avatar.styled.js +10 -0
- package/dist/cjs/components/avatar/AvatarHelper.d.ts +24 -0
- package/dist/cjs/components/avatar/AvatarHelper.js +1 -0
- package/dist/cjs/components/bik-layout/BikHeader.d.ts +19 -0
- package/dist/cjs/components/bik-layout/BikHeader.js +1 -0
- package/dist/cjs/components/bik-layout/BikLayout.d.ts +27 -0
- package/dist/cjs/components/bik-layout/BikLayout.js +1 -0
- package/dist/cjs/components/bik-layout/BikProfile.d.ts +14 -0
- package/dist/cjs/components/bik-layout/BikProfile.js +1 -0
- package/dist/cjs/components/bik-layout/BikSidebar.d.ts +37 -0
- package/dist/cjs/components/bik-layout/BikSidebar.js +1 -0
- package/dist/cjs/components/bik-layout/CommonStyles.js +366 -0
- package/dist/cjs/components/bik-layout/FeatureModal.d.ts +16 -0
- package/dist/cjs/components/bik-layout/FeatureModal.js +1 -0
- package/dist/cjs/components/bik-layout/FeatureModalV2.d.ts +15 -0
- package/dist/cjs/components/bik-layout/FeatureModalV2.js +1 -0
- package/dist/cjs/components/bik-layout/PageLoader.js +1 -0
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.d.ts +15 -0
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +1 -0
- package/dist/cjs/components/bik-layout/SidebarPopup.js +1 -0
- package/dist/cjs/components/bik-layout/SidebarSkeleton.d.ts +12 -0
- package/dist/cjs/components/bik-layout/SidebarSkeleton.js +1 -0
- package/dist/cjs/components/bik-layout/SidebarStyles.js +271 -0
- package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +31 -0
- package/dist/cjs/components/bik-layout/SimpleSidebar.js +1 -0
- package/dist/cjs/components/button/Button.d.ts +6 -0
- package/dist/cjs/components/button/Button.js +1 -0
- package/dist/cjs/components/button/Button.styled.js +61 -0
- package/dist/cjs/components/button/model.d.ts +78 -0
- package/dist/cjs/components/button/themes.js +1 -0
- package/dist/cjs/components/buttonGroup/ButtonGroup.d.ts +26 -0
- package/dist/cjs/components/buttonGroup/ButtonGroup.js +1 -0
- package/dist/cjs/components/buttonGroup/ButtonGroupStyle.js +32 -0
- package/dist/cjs/components/card-selection-modal/CardSelectionModal.d.ts +21 -0
- package/dist/cjs/components/card-selection-modal/CardSelectionModal.js +1 -0
- package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.js +41 -0
- package/dist/cjs/components/card-selector/CardSelector.d.ts +20 -0
- package/dist/cjs/components/card-selector/CardSelector.js +1 -0
- package/dist/cjs/components/card-selector/CardSelector.styled.js +19 -0
- package/dist/cjs/components/card-selector/CardSelectorGroup.d.ts +14 -0
- package/dist/cjs/components/card-selector/CardSelectorGroup.js +1 -0
- package/dist/cjs/components/carousel/carousel.d.ts +6 -0
- package/dist/cjs/components/carousel/carousel.js +22 -0
- package/dist/cjs/components/carousel-preview/CarouselPreview.d.ts +16 -0
- package/dist/cjs/components/carousel-preview/CarouselPreview.js +1 -0
- package/dist/cjs/components/carousel-preview/CarouselPreview.style.js +86 -0
- package/dist/cjs/components/carousel-preview/CarouselPreviewCard.js +1 -0
- package/dist/cjs/components/carousel-preview/CustomCarouselArrows.js +1 -0
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.d.ts +15 -0
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -0
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.js +42 -0
- package/dist/cjs/components/carousel-secondary/model.d.ts +6 -0
- package/dist/cjs/components/carousel-secondary/model.js +1 -0
- package/dist/cjs/components/checkBox/CheckBox.d.ts +24 -0
- package/dist/cjs/components/checkBox/CheckBox.js +1 -0
- package/dist/cjs/components/checkBox/CheckBox.styled.js +40 -0
- package/dist/cjs/components/checkList/CheckList.d.ts +17 -0
- package/dist/cjs/components/checkList/CheckList.js +1 -0
- package/dist/cjs/components/checkList/CheckList.styled.js +10 -0
- package/dist/cjs/components/colourInput/ColourInput.d.ts +12 -0
- package/dist/cjs/components/colourInput/ColourInput.js +1 -0
- package/dist/cjs/components/colourInput/ColourInput.styled.js +29 -0
- package/dist/cjs/components/country-code-picker/CountryCodePicker.d.ts +22 -0
- package/dist/cjs/components/country-code-picker/CountryCodePicker.js +1 -0
- package/dist/cjs/components/country-code-picker/CountryCodePicker.modal.d.ts +10 -0
- package/dist/cjs/components/country-code-picker/CountryCodePicker.modal.js +1 -0
- package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.js +31 -0
- package/dist/cjs/components/curtain/Curtain.d.ts +27 -0
- package/dist/cjs/components/curtain/Curtain.js +1 -0
- package/dist/cjs/components/curtain/Curtain.styled.js +29 -0
- package/dist/cjs/components/curtain/CurtainHelper.d.ts +26 -0
- package/dist/cjs/components/curtain/CurtainHelper.js +1 -0
- package/dist/cjs/components/custom-date-time/CustomDateTime.d.ts +16 -0
- package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -0
- package/dist/cjs/components/custom-date-time/CustomDateTime.styled.js +25 -0
- package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js +1 -0
- package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.d.ts +21 -0
- package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -0
- package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.styled.js +26 -0
- package/dist/cjs/components/dashboard-review-popup/components/FiveStar.js +1 -0
- package/dist/cjs/components/dashboard-review-popup/components/FiveStar.styled.js +18 -0
- package/dist/cjs/components/dashboard-review-popup/components/Form.js +1 -0
- package/dist/cjs/components/dashboard-review-popup/components/Form.styled.js +49 -0
- package/dist/cjs/components/dashboard-review-popup/components/ZeroState.js +5 -0
- package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.js +1 -0
- package/dist/cjs/components/data-source-panel/DataSourcePanel.d.ts +39 -0
- package/dist/cjs/components/data-source-panel/DataSourcePanel.js +1 -0
- package/dist/cjs/components/data-source-panel/DataSourcePanel.style.js +169 -0
- package/dist/cjs/components/data-source-panel/IntentConfig.js +1 -0
- package/dist/cjs/components/data-source-panel/Modals/DescriptionModal.js +48 -0
- package/dist/cjs/components/data-source-panel/model.d.ts +144 -0
- package/dist/cjs/components/data-source-panel/model.js +1 -0
- package/dist/cjs/components/datePicker/DatePicker.d.ts +16 -0
- package/dist/cjs/components/datePicker/DatePicker.js +1 -0
- package/dist/cjs/components/datePicker/DatePicker.styled.js +159 -0
- package/dist/cjs/components/datePicker/DatePickerWrapper.d.ts +19 -0
- package/dist/cjs/components/datePicker/DatePickerWrapper.js +1 -0
- package/dist/cjs/components/datePicker/DatePickerWrapper.styled.js +69 -0
- package/dist/cjs/components/datePicker/model.d.ts +6 -0
- package/dist/cjs/components/datePicker/model.js +1 -0
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.d.ts +14 -0
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -0
- package/dist/cjs/components/discount-modal/DiscountModal.d.ts +43 -0
- package/dist/cjs/components/discount-modal/DiscountModal.js +1 -0
- package/dist/cjs/components/discount-modal/DiscountModal.styled.js +69 -0
- package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -0
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -0
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +76 -0
- package/dist/cjs/components/discount-modal/DynamicCoupon/MinimumRequirementComponent.js +1 -0
- package/dist/cjs/components/discount-modal/DynamicCoupon/ZeroState.js +16 -0
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -0
- package/dist/cjs/components/discount-modal/type.d.ts +111 -0
- package/dist/cjs/components/discount-modal/type.js +1 -0
- package/dist/cjs/components/dropShadow/DropShadow.d.ts +10 -0
- package/dist/cjs/components/dropShadow/DropShadow.js +1 -0
- package/dist/cjs/components/dropdown/ChipDropdown.d.ts +11 -0
- package/dist/cjs/components/dropdown/ChipDropdown.js +14 -0
- package/dist/cjs/components/dropdown/ChipInput.js +1 -0
- package/dist/cjs/components/dropdown/Common.styled.js +37 -0
- package/dist/cjs/components/dropdown/Dropdown.d.ts +24 -0
- package/dist/cjs/components/dropdown/Dropdown.js +1 -0
- package/dist/cjs/components/dropdown/DropdownPopover/index.d.ts +20 -0
- package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -0
- package/dist/cjs/components/dropdown/MenuItem/MenuItem.d.ts +13 -0
- package/dist/cjs/components/dropdown/MenuItem/MenuItem.js +20 -0
- package/dist/cjs/components/dropdown/MultilevelDropdownPopover/index.d.ts +18 -0
- package/dist/cjs/components/dropdown/MultilevelDropdownPopover/index.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.d.ts +6 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.styled.js +37 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/description/Description.styled.js +6 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js +6 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +13 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.styled.js +6 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js +9 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -0
- package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -0
- package/dist/cjs/components/dropdown/type.d.ts +75 -0
- package/dist/cjs/components/dropdown-button/DropdownButton.d.ts +13 -0
- package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -0
- package/dist/cjs/components/dropdown-button/DropdownButton.style.js +9 -0
- package/dist/cjs/components/dynamic-tabs/DynamicTabs.d.ts +28 -0
- package/dist/cjs/components/dynamic-tabs/DynamicTabs.js +1 -0
- package/dist/cjs/components/fab-menu/FABMenu.d.ts +28 -0
- package/dist/cjs/components/fab-menu/FABMenu.js +1 -0
- package/dist/cjs/components/file-uploader/FileUploader.d.ts +6 -0
- package/dist/cjs/components/file-uploader/FileUploader.js +1 -0
- package/dist/cjs/components/file-uploader/FileUploaderStyle.js +166 -0
- package/dist/cjs/components/file-uploader/Models.d.ts +31 -0
- package/dist/cjs/components/floater/floater.d.ts +13 -0
- package/dist/cjs/components/floater/floater.js +1 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.d.ts +24 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.js +1 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.d.ts +62 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.js +99 -0
- package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.d.ts +28 -0
- package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.js +5 -0
- package/dist/cjs/components/helpers/FileUploaderHelper.js +1 -0
- package/dist/cjs/components/icon-button/IconButton.d.ts +6 -0
- package/dist/cjs/components/icon-button/IconButton.js +1 -0
- package/dist/cjs/components/icon-button/IconButton.styled.js +3 -0
- package/dist/cjs/components/icon-button/model.d.ts +45 -0
- package/dist/cjs/components/icon-button/theme.js +1 -0
- package/dist/cjs/components/image-compress/ImageCompress.d.ts +14 -0
- package/dist/cjs/components/image-compress/ImageCompress.js +1 -0
- package/dist/cjs/components/image-cropper/BikImageCropper.d.ts +12 -0
- package/dist/cjs/components/image-cropper/BikImageCropper.js +1 -0
- package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +38 -0
- package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -0
- package/dist/cjs/components/input/ChipInput.js +1 -0
- package/dist/cjs/components/input/ChipInput.styled.js +1 -0
- package/dist/cjs/components/input/Input-helper.js +1 -0
- package/dist/cjs/components/input/Input.d.ts +76 -0
- package/dist/cjs/components/input/Input.js +1 -0
- package/dist/cjs/components/input/Input.styled.js +144 -0
- package/dist/cjs/components/input/context/InputStyleProvider.js +1 -0
- package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +34 -0
- package/dist/cjs/components/input-with-vars/InputWithVariables.js +7 -0
- package/dist/cjs/components/input-with-vars/customPortal.d.ts +10 -0
- package/dist/cjs/components/input-with-vars/customPortal.js +1 -0
- package/dist/cjs/components/keywords-input/KeywordsInput.d.ts +15 -0
- package/dist/cjs/components/keywords-input/KeywordsInput.js +1 -0
- package/dist/cjs/components/list-item/ListItem.d.ts +23 -0
- package/dist/cjs/components/list-item/ListItem.js +1 -0
- package/dist/cjs/components/list-item/ListItem.styled.js +10 -0
- package/dist/cjs/components/list-item/themes.js +29 -0
- package/dist/cjs/components/modals/Modal.js +1 -0
- package/dist/cjs/components/modals/modal.styled.js +47 -0
- package/dist/cjs/components/modals/styledModal.d.ts +35 -0
- package/dist/cjs/components/modals/styledModal.js +47 -0
- package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.js +1 -0
- package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -0
- package/dist/cjs/components/multi-level-dropdown/MenuList.js +1 -0
- package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.d.ts +6 -0
- package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.js +1 -0
- package/dist/cjs/components/multi-level-dropdown/MultiLevelDropdown.styled.js +98 -0
- package/dist/cjs/components/multi-level-dropdown/type.d.ts +30 -0
- package/dist/cjs/components/navigation-hyperlink/NavigationHyperlink.d.ts +14 -0
- package/dist/cjs/components/navigation-hyperlink/NavigationHyperlink.js +3 -0
- package/dist/cjs/components/pagination/Pagination.d.ts +13 -0
- package/dist/cjs/components/pagination/Pagination.js +1 -0
- package/dist/cjs/components/pagination/Pagination.styled.js +7 -0
- package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +22 -0
- package/dist/cjs/components/plans/NewSubscriptionPlan.js +1 -0
- package/dist/cjs/components/plans/SubscriptionPlan.d.ts +41 -0
- package/dist/cjs/components/plans/SubscriptionPlan.js +1 -0
- package/dist/cjs/components/plans/SubscriptionPlanSelector.d.ts +49 -0
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js +101 -0
- package/dist/cjs/components/plans/SubscriptionPlanStyled.js +266 -0
- package/dist/cjs/components/plans/SubscriptionPlansCollected.d.ts +18 -0
- package/dist/cjs/components/plans/SubscriptionPlansCollected.js +19 -0
- package/dist/cjs/components/postPicker/PostPicker.styled.js +128 -0
- package/dist/cjs/components/postPicker/postPicker.d.ts +51 -0
- package/dist/cjs/components/postPicker/postPicker.js +1 -0
- package/dist/cjs/components/product-picker/ProductPicker.styled.js +71 -0
- package/dist/cjs/components/product-picker/ProductPickerModal.d.ts +7 -0
- package/dist/cjs/components/product-picker/ProductPickerModal.js +1 -0
- package/dist/cjs/components/product-picker/type.d.ts +70 -0
- package/dist/cjs/components/product-picker-v2/ProductPickerShimmer.js +1 -0
- package/dist/cjs/components/product-picker-v2/ProductPickerTag.js +1 -0
- package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -0
- package/dist/cjs/components/product-picker-v2/constants.js +1 -0
- package/dist/cjs/components/product-picker-v2/emptyState.js +8 -0
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +1 -0
- package/dist/cjs/components/product-picker-v2/modal.d.ts +114 -0
- package/dist/cjs/components/product-picker-v2/modal.js +1 -0
- package/dist/cjs/components/product-picker-v2/product.js +1 -0
- package/dist/cjs/components/product-picker-v2/productInfoOverlay.js +52 -0
- package/dist/cjs/components/product-picker-v2/productScreen.js +1 -0
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +1 -0
- package/dist/cjs/components/product-picker-v2/reducers.js +1 -0
- package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -0
- package/dist/cjs/components/product-picker-v2/selectedScreen.js +1 -0
- package/dist/cjs/components/product-picker-v2/style.js +172 -0
- package/dist/cjs/components/product-picker-v2/type.d.ts +22 -0
- package/dist/cjs/components/product-picker-v2/type.js +1 -0
- package/dist/cjs/components/product-picker-v2/utility.js +1 -0
- package/dist/cjs/components/product-picker-v2/variant.js +1 -0
- package/dist/cjs/components/product-picker-v2/variantComponents.js +1 -0
- package/dist/cjs/components/progress-bar/CircularProgressBar.js +1 -0
- package/dist/cjs/components/progress-bar/ProgressBarComponent.d.ts +21 -0
- package/dist/cjs/components/progress-bar/ProgressBarComponent.js +6 -0
- package/dist/cjs/components/progress-bar-v2/ProgressBarV2.d.ts +27 -0
- package/dist/cjs/components/progress-bar-v2/ProgressBarV2.js +39 -0
- package/dist/cjs/components/radioButton/RadioButton.d.ts +21 -0
- package/dist/cjs/components/radioButton/RadioButton.js +1 -0
- package/dist/cjs/components/radioButton/RadioButton.styled.js +22 -0
- package/dist/cjs/components/radioList/RadioList.d.ts +18 -0
- package/dist/cjs/components/radioList/RadioList.js +1 -0
- package/dist/cjs/components/radioList/RadioList.styled.js +10 -0
- package/dist/cjs/components/resizeImage/index.d.ts +12 -0
- package/dist/cjs/components/resizeImage/index.js +1 -0
- package/dist/cjs/components/searchBar/searchBar.d.ts +24 -0
- package/dist/cjs/components/searchBar/searchBar.js +1 -0
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.d.ts +18 -0
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.js +1 -0
- package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js +42 -0
- package/dist/cjs/components/shimmer-image/ShimmerImage.d.ts +17 -0
- package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -0
- package/dist/cjs/components/side-modal/SideModal.d.ts +25 -0
- package/dist/cjs/components/side-modal/SideModal.js +1 -0
- package/dist/cjs/components/side-modal/SideModal.style.js +65 -0
- package/dist/cjs/components/slider/slider.d.ts +14 -0
- package/dist/cjs/components/slider/slider.js +1 -0
- package/dist/cjs/components/spinner/Spinner.d.ts +16 -0
- package/dist/cjs/components/spinner/Spinner.js +18 -0
- package/dist/cjs/components/spinner/lotties/black.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/brand.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/red.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/white.json.js +1 -0
- package/dist/cjs/components/spinner/model.d.ts +14 -0
- package/dist/cjs/components/spinner/themes.js +1 -0
- package/dist/cjs/components/star-rating/Star.js +1 -0
- package/dist/cjs/components/star-rating/StarRating.d.ts +14 -0
- package/dist/cjs/components/star-rating/StarRating.js +7 -0
- package/dist/cjs/components/states/ShopifyScopeWrapper.d.ts +17 -0
- package/dist/cjs/components/states/ShopifyScopeWrapper.js +1 -0
- package/dist/cjs/components/states/StateComponent.d.ts +45 -0
- package/dist/cjs/components/states/StateComponent.js +1 -0
- package/dist/cjs/components/states/StateComponent.styled.js +29 -0
- package/dist/cjs/components/states-modal/DeleteConfirmationModal.d.ts +14 -0
- package/dist/cjs/components/states-modal/DeleteConfirmationModal.js +1 -0
- package/dist/cjs/components/states-modal/StateModalComponent.d.ts +30 -0
- package/dist/cjs/components/states-modal/StateModalComponent.js +1 -0
- package/dist/cjs/components/stepper/Stepper.d.ts +29 -0
- package/dist/cjs/components/stepper/Stepper.js +1 -0
- package/dist/cjs/components/stepper/Stepper.styled.js +83 -0
- package/dist/cjs/components/stepper/themes.js +1 -0
- package/dist/cjs/components/switch/Switch.d.ts +6 -0
- package/dist/cjs/components/switch/Switch.js +61 -0
- package/dist/cjs/components/switch/model.d.ts +20 -0
- package/dist/cjs/components/tabs/Tabs.d.ts +7 -0
- package/dist/cjs/components/tabs/Tabs.js +1 -0
- package/dist/cjs/components/tabs/Tabs.model.d.ts +52 -0
- package/dist/cjs/components/tabs/Tabs.styles.js +45 -0
- package/dist/cjs/components/tag/Tag.d.ts +9 -0
- package/dist/cjs/components/tag/Tag.js +1 -0
- package/dist/cjs/components/tag/Tag.styled.js +30 -0
- package/dist/cjs/components/tag/model.d.ts +72 -0
- package/dist/cjs/components/tag/model.js +1 -0
- package/dist/cjs/components/tag/themes.js +1 -0
- package/dist/cjs/components/template-context-mapper/Badge/index.js +11 -0
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +74 -0
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -0
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -0
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -0
- package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/Body.js +22 -0
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +20 -0
- package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +9 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.style.js +33 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +13 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +7 -0
- package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +15 -0
- package/dist/cjs/components/template-context-mapper/modalElements/Header.js +23 -0
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +25 -0
- package/dist/cjs/components/template-context-mapper/modalElements/ProductBox.js +47 -0
- package/dist/cjs/components/template-context-mapper/modalElements/QueryParamsComponent.js +11 -0
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +16 -0
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.d.ts +7 -0
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +19 -0
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +28 -0
- package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +9 -0
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -0
- package/dist/cjs/components/template-context-mapper/styles/TemplateAnalyticsStyles.js +63 -0
- package/dist/cjs/components/template-context-mapper/utils/TemplateConstants.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/constants.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.d.ts +36 -0
- package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/getVariableNameEmail.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/highlightFor.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/validateIsUrl.d.ts +4 -0
- package/dist/cjs/components/template-context-mapper/utils/validateIsUrl.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/validateName.js +1 -0
- package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js +48 -0
- package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js +1 -0
- package/dist/cjs/components/template-preview/RCS/RCSButtons.js +1 -0
- package/dist/cjs/components/template-preview/RCS/RCSChatHeader.js +1 -0
- package/dist/cjs/components/template-preview/RCS/RCSChatPreview.js +1 -0
- package/dist/cjs/components/template-preview/RCS/RCSMediaCard.js +1 -0
- package/dist/cjs/components/template-preview/RCS/RCSPreview.styled.js +128 -0
- package/dist/cjs/components/template-preview/RCS/RCSTemplateLikePreview.js +8 -0
- package/dist/cjs/components/template-preview/SMS/SMSBubble.js +12 -0
- package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -0
- package/dist/cjs/components/template-preview/SmsTemplatePreview.styled.js +46 -0
- package/dist/cjs/components/template-preview/TemplatePreview.d.ts +33 -0
- package/dist/cjs/components/template-preview/TemplatePreview.js +1 -0
- package/dist/cjs/components/template-preview/WhatsApp/ChatBtn.js +1 -0
- package/dist/cjs/components/template-preview/WhatsApp/ChatHeader.js +1 -0
- package/dist/cjs/components/template-preview/WhatsApp/ChatHeader.style.js +37 -0
- package/dist/cjs/components/template-preview/WhatsApp/ChatUI.js +7 -0
- package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js +69 -0
- package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +19 -0
- package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +21 -0
- package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -0
- package/dist/cjs/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +4 -0
- package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreview.d.ts +6 -0
- package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreview.js +12 -0
- package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.d.ts +6 -0
- package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js +11 -0
- package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -0
- package/dist/cjs/components/template-preview/constants/TemplateConstants.js +1 -0
- package/dist/cjs/components/template-preview/constants/regexPatterns.d.ts +13 -0
- package/dist/cjs/components/template-preview/constants/regexPatterns.js +1 -0
- package/dist/cjs/components/template-preview/helpers/SmsTemplateHelper.d.ts +5 -0
- package/dist/cjs/components/template-preview/helpers/SmsTemplateHelper.js +1 -0
- package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -0
- package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.d.ts +10 -0
- package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +1 -0
- package/dist/cjs/components/template-preview/helpers/WhatsAppFormatToHTML.d.ts +10 -0
- package/dist/cjs/components/template-preview/helpers/WhatsAppFormatToHTML.js +1 -0
- package/dist/cjs/components/template-preview/helpers/templateMiscHelper.js +1 -0
- package/dist/cjs/components/template-preview/models/Channels.d.ts +12 -0
- package/dist/cjs/components/template-preview/models/Channels.js +1 -0
- package/dist/cjs/components/template-preview/models/EmailTemplate.d.ts +42 -0
- package/dist/cjs/components/template-preview/models/RCSTemplate.d.ts +40 -0
- package/dist/cjs/components/template-preview/models/RCSTemplate.js +1 -0
- package/dist/cjs/components/template-preview/models/SmsTemplate.d.ts +39 -0
- package/dist/cjs/components/template-preview/models/TemplateMeta.d.ts +95 -0
- package/dist/cjs/components/template-preview/models/TemplateMeta.js +1 -0
- package/dist/cjs/components/template-preview/models/WebpushTemplate.d.ts +64 -0
- package/dist/cjs/components/template-preview/models/WebpushTemplate.js +1 -0
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.d.ts +337 -0
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.js +1 -0
- package/dist/cjs/components/template-preview/models/WhatsappCarouselTemplate.d.ts +89 -0
- package/dist/cjs/components/template-preview/models/types.d.ts +13 -0
- package/dist/cjs/components/template-preview/utils/TemplateHelperUtils.js +1 -0
- package/dist/cjs/components/template-preview/utils/getPreviewPropLen.js +1 -0
- package/dist/cjs/components/template-preview/webpush/WebpushPreview.js +1 -0
- package/dist/cjs/components/template-preview/webpush/WebpushPreview.styled.js +70 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.d.ts +21 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.js +1 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +53 -0
- package/dist/cjs/components/thumbnail/Thumbnail.d.ts +17 -0
- package/dist/cjs/components/thumbnail/Thumbnail.js +1 -0
- package/dist/cjs/components/thumbnail/Thumbnail.styled.js +10 -0
- package/dist/cjs/components/thumbnail/constants.js +1 -0
- package/dist/cjs/components/toaster/Toaster.d.ts +33 -0
- package/dist/cjs/components/toaster/Toaster.js +1 -0
- package/dist/cjs/components/toaster/Toaster.styled.js +138 -0
- package/dist/cjs/components/tooltips/Tooltip.d.ts +17 -0
- package/dist/cjs/components/tooltips/Tooltip.js +1 -0
- package/dist/cjs/components/tooltips/TooltipInternal.d.ts +11 -0
- package/dist/cjs/components/tooltips/TooltipInternal.js +7 -0
- package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.d.ts +16 -0
- package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -0
- package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.style.js +42 -0
- package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.d.ts +22 -0
- package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -0
- package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.style.js +38 -0
- package/dist/cjs/components/variable-picker-v3/Content.js +1 -0
- package/dist/cjs/components/variable-picker-v3/DefaultVariableContent.js +1 -0
- package/dist/cjs/components/variable-picker-v3/NoResult.js +17 -0
- package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +1 -0
- package/dist/cjs/components/variable-picker-v3/VariablePicker.d.ts +7 -0
- package/dist/cjs/components/variable-picker-v3/VariablePicker.js +1 -0
- package/dist/cjs/components/variable-picker-v3/context.js +1 -0
- package/dist/cjs/components/variable-picker-v3/highlightSearchText.js +1 -0
- package/dist/cjs/components/variable-picker-v3/model.d.ts +65 -0
- package/dist/cjs/components/variable-picker-v3/model.js +1 -0
- package/dist/cjs/components/variable-picker-v3/recommendVaribles.js +1 -0
- package/dist/cjs/components/variable-picker-v3/searchVariables.js +1 -0
- package/dist/cjs/components/variable-picker-v3/styles.js +42 -0
- package/dist/cjs/components/zeroState/ZeroState.js +17 -0
- package/dist/cjs/constants/Theme.d.ts +624 -0
- package/dist/cjs/constants/Theme.js +1 -0
- package/dist/cjs/constants/colors.js +1 -0
- package/dist/cjs/constants/zindex.d.ts +9 -0
- package/dist/cjs/constants/zindex.js +1 -0
- package/dist/cjs/helpers/BaseWhatsappContentLang.helper.d.ts +43 -0
- package/dist/cjs/helpers/BaseWhatsappContentLang.helper.js +1 -0
- package/dist/cjs/hooks/useCurreny.js +1 -0
- package/dist/cjs/hooks/useOutside.js +1 -0
- package/dist/cjs/index.d.ts +176 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/node_modules/@bikdotai/bik-models/growth/models/bik-store.js +1 -0
- package/dist/cjs/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js +1 -0
- package/dist/cjs/node_modules/immer/dist/immer.esm.mjs.js +1 -0
- package/dist/cjs/node_modules/lodash.debounce/index.js +1 -0
- package/dist/cjs/types/apiExecutor.d.ts +13 -0
- package/dist/cjs/types/componentTypes.js +1 -0
- package/dist/cjs/utils/DateUtils.js +1 -0
- package/dist/cjs/utils/StringUtils.d.ts +16 -0
- package/dist/cjs/utils/StringUtils.js +1 -0
- package/dist/cjs/utils/bytesToMB.js +1 -0
- package/dist/cjs/utils/isAlphanumeric.js +1 -0
- package/dist/cjs/utils/resizeImage.d.ts +3 -0
- package/dist/cjs/utils/resizeImage.js +1 -0
- package/dist/cjs/utils/unCamelCase.js +1 -0
- package/dist/cjs/utils/validator.d.ts +8 -0
- package/dist/cjs/utils/validator.js +1 -0
- package/dist/cjs/utils/variableUtils.js +1 -0
- package/dist/esm/components/switch/Switch.d.ts +4 -22
- package/dist/esm/components/switch/model.d.ts +20 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +1 -1
- package/package.json +7 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../node_modules/lodash.debounce/index.js"),s=require("react"),r=require("../bik-layout/PageLoader.js"),o=require("../checkBox/CheckBox.js"),c=require("../input/Input.js"),l=require("../modals/styledModal.js"),n=require("./ProductPicker.styled.js"),d=require("../TypographyStyle.js"),a=require("../../utils/DateUtils.js"),i=require("../../constants/Theme.js"),u=require("../../assets/icons/alert_triangle.svg.js"),p=require("../../assets/icons/search.svg.js");const h="https://jkfenner.com/wp-content/uploads/2019/11/default.jpg",x=({text:t,styleProps:s})=>e.jsxs(n.StyledZeroState,{children:[e.jsx("div",{className:"icon__container",style:{...s},children:e.jsx(u.default,{width:24,height:24,color:i.DEFAULT_THEME.colorsV2.content.secondary})}),e.jsx(d.TitleSmall,{children:"No results found"}),e.jsx(d.BodySecondary,{style:{color:i.DEFAULT_THEME.colorsV2.content.secondary,textAlign:"center"},children:`Sorry we could not find any results for "${t}"`})]}),j=l=>{const u=l.instaPost?a.default.dateFormat(new Date(l.instaPost.timestamp),"•",!0):"",[j,m]=s.useState(l.products),[P,y]=s.useState(!1),[g,E]=s.useState(""),_=s.useCallback(t.default((e=>{e?(m([]),l.onSearchKeyChange(e).then((e=>{m(e),y(!1)}))):(m(l.products),y(!1))}),700),[]);return e.jsxs(n.StyledProductPickerContainer,{children:[l.instaPost&&e.jsxs("div",{className:"post__wrapper",children:[e.jsx("img",{alt:"Ig Media",onError:e=>{e.target.onerror=null,e.target.src=h},src:l.instaPost?.media_url,className:"post__thumbnail"}),e.jsxs("div",{className:"post__info-wrapper",children:[e.jsx(d.BodyPrimary,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",color:l.instaPost.caption?i.DEFAULT_THEME.colorsV2.content.primary:i.DEFAULT_THEME.colorsV2.content.secondary},children:l.instaPost?.caption?l.instaPost?.caption:"No caption"}),e.jsx(d.Caption,{style:{color:i.DEFAULT_THEME.colorsV2.content.placeholder},children:u})]})]}),e.jsx("div",{style:{borderTop:l.instaPost?`1px solid ${i.DEFAULT_THEME.colorsV2.stroke.primary}`:"none",borderBottom:`1px solid ${i.DEFAULT_THEME.colorsV2.stroke.primary}`,padding:l.instaPost?"16px 24px":"0px 24px 16px 24px"},children:e.jsx(c.Input,{placeholder:l.searchPlaceholder??"Search products..",onChangeText:e=>{E(e),e.trim()?.length>0?(y(!0),_(e)):(y(!1),m(l.products))},rightIcon:{icon:p.default}})}),e.jsxs("div",{style:{maxHeight:350,overflowY:"scroll"},children:[P&&e.jsx("div",{className:"loader__wrapper",children:e.jsx(r.PageLoader,{})}),0!==j.length||P?j.map((t=>{const s=l.selectedProducts.find((e=>e.id===t.id));return e.jsxs("div",{className:"product__wrapper",children:[e.jsxs("div",{className:"product__info-wrapper",children:[e.jsx("img",{alt:"Product",onError:e=>{e.target.onerror=null,e.target.src=h},src:t.image??h,className:"product__image"}),e.jsx(d.TitleSmall,{children:t.name})]}),e.jsx("div",{style:{order:1},children:e.jsx(o.CheckBox,{isChecked:void 0!==s,onValueChange:e=>{((e,t)=>{const s=l.selectedProducts.find((e=>e.id===t.id));if(e&&!s){const e=[...l.selectedProducts,t];l.setSelectedProducts(e)}else if(s){const e=[...l.selectedProducts];let s=-1;l.selectedProducts.forEach(((e,r)=>{e.id===t.id&&(s=r)})),e.splice(s,1),l.setSelectedProducts(e)}})(e,t)}})})]},t.id)})):e.jsx(x,{text:g})]})]})};exports.PricePleaseProductPicker=t=>{const[r,o]=s.useState([]);return s.useEffect((()=>{o(t.selectedProducts??[])}),[t.selectedProducts?.length]),e.jsx(l.StyledModal,{open:t.show,onClose:()=>{t.onClose()},footerLeftCustomElement:r.length>10?e.jsx(d.Caption,{style:{color:i.DEFAULT_THEME.colorsV2.content.negative},children:"Can't add more than 10 products"}):e.jsx(d.Caption,{style:{color:i.DEFAULT_THEME.colorsV2.content.placeholder},children:r?`${r.length} selected`:""}),headingTitle:t.title,primaryButton:{disabled:r.length>10||0===r.length,buttonType:"primary",buttonText:"Select",size:"small",onClick:()=>{t.setSelectedProducts(r),t.onClose()}},secondaryButton:t.secondaryButtonProps,footerShadow:!0,children:e.jsx(j,{...t,selectedProducts:r,setSelectedProducts:o})})},exports.ProductPickerContent=j;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { ButtonProps } from '../button/model.js';
|
|
3
|
+
|
|
4
|
+
interface IInstaPost {
|
|
5
|
+
caption?: string;
|
|
6
|
+
comments_count: number;
|
|
7
|
+
id: string;
|
|
8
|
+
ig_id: string;
|
|
9
|
+
media_type: string;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
media_url: string;
|
|
12
|
+
permalink: string;
|
|
13
|
+
products: Product[];
|
|
14
|
+
}
|
|
15
|
+
interface ProductPickerProps {
|
|
16
|
+
show: boolean;
|
|
17
|
+
products: Product[] | Collection[];
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
title: string;
|
|
20
|
+
onSave: (productIds: Product[] | Collection[]) => void;
|
|
21
|
+
onSearchKeyChange: (key: string) => Promise<Product[] | Collection[]>;
|
|
22
|
+
instaPost?: IInstaPost;
|
|
23
|
+
searchPlaceholder?: string;
|
|
24
|
+
selectedProducts: Product[] | Collection[];
|
|
25
|
+
setSelectedProducts: React__default.Dispatch<React__default.SetStateAction<Product[] | Collection[]>>;
|
|
26
|
+
secondaryButtonProps?: ButtonProps;
|
|
27
|
+
}
|
|
28
|
+
interface Product {
|
|
29
|
+
image: string;
|
|
30
|
+
variants: Variant[];
|
|
31
|
+
id: string;
|
|
32
|
+
combinations: Combination[];
|
|
33
|
+
photos: Photo[];
|
|
34
|
+
isNew: boolean;
|
|
35
|
+
currency: string;
|
|
36
|
+
isDiscounted: boolean;
|
|
37
|
+
isLimited: boolean;
|
|
38
|
+
catalogId: string;
|
|
39
|
+
isOutOfStock: boolean;
|
|
40
|
+
isHidden: boolean;
|
|
41
|
+
tags: string;
|
|
42
|
+
description: string;
|
|
43
|
+
name: string;
|
|
44
|
+
handle: string;
|
|
45
|
+
}
|
|
46
|
+
interface Collection {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
description: string;
|
|
50
|
+
image: string;
|
|
51
|
+
isHidden: boolean;
|
|
52
|
+
isPrivate: boolean;
|
|
53
|
+
handle: string;
|
|
54
|
+
isSmartCollection: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface Variant {
|
|
57
|
+
values: string[];
|
|
58
|
+
name: string;
|
|
59
|
+
type: string;
|
|
60
|
+
}
|
|
61
|
+
interface Combination {
|
|
62
|
+
id: string;
|
|
63
|
+
price: number;
|
|
64
|
+
discountedPrice: number;
|
|
65
|
+
}
|
|
66
|
+
interface Photo {
|
|
67
|
+
photoUrl: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type { Collection, Combination, IInstaPost, Photo, Product, ProductPickerProps, Variant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../shimmer/ShimmerComponent/BikShimmer.js");exports.ProductPickerShimmer=i=>{const{limit:t}=i;return e.jsx(e.Fragment,{children:Array.from({length:t??5}).map(((i,t)=>e.jsx("div",{style:{borderBottom:"1px solid #E0E0E0"},children:e.jsx(r.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})},t)))})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../shimmer/ShimmerComponent/BikShimmer.js"),r=require("../tag/Tag.js");exports.ProductPickerTag=i=>{const{isVariant:s,data:a,tagText:x,tagType:m}=i;return e.jsx("div",{style:{display:"flex"},children:!a?.fbStatus&&s?e.jsx(t.BikShimmer,{boxes:[{height:"24px",width:"100px",marginTop:"0px"}]}):x?e.jsx("div",{style:{display:"flex"},children:e.jsx(r.Tag,{tagText:x,type:m,theme:"light"})}):e.jsx(e.Fragment,{})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/chevronRight.svg.js"),i=require("react"),c=require("../checkBox/CheckBox.js"),r=require("../icon-button/IconButton.js"),s=require("../tag/Tag.js"),l=require("../tooltips/Tooltip.js"),o=require("../TypographyStyle.js"),n=require("./emptyState.js"),a=require("./ProductPickerShimmer.js"),d=require("./style.js"),u=require("./utility.js");const h=i=>{const{customCollectionRestriction:n,data:a,selectedCollectionsDispatch:u,setCollectionId:h,setSelectedCollectionId:C,isPartiallyChecked:p,setScreen:y,id:j,isChecked:x,isDisabled:g,hideCollectionCheckbox:m,pickerType:k,usedInSearch:f}=i;return a?e.jsxs(d.CollectionCardStyle,{isDisabled:g,onClick:e=>{if(!g){if("COLLECTION"===k)return e.stopPropagation(),u({type:"reset",data:{}}),u({type:"selected",data:{id:j,val:a,isRestricted:n}}),h(j),void C(j);h(j),C(j),y("products")}},isActive:x,usedInSearch:f??!1,children:[e.jsxs(d.CollectionCardInfoStyle,{children:[!m&&e.jsx(c.CheckBox,{isDisabled:g,isChecked:x,isPartiallyChecked:p,onValueChange:function(e,t,i){i?.stopPropagation(),u(e?{type:"selected",data:{id:j,val:a,isRestricted:n}}:{type:"unselected",data:{id:j}}),C(e?j:"")}}),e.jsx(d.CollectionCardDetailStyle,{children:e.jsx(l.Tooltip,{body:a.name,placement:"bottom",delay:400,variant:"light",children:e.jsxs(d.CollectionNameHolder,{children:[f?e.jsx(o.BodyPrimary,{numberOfLines:1,children:a.name}):e.jsx(o.TitleRegular,{numberOfLines:1,children:a.name}),a.isSmartCollection?e.jsx("div",{style:{display:"flex"},children:e.jsx(s.Tag,{tagText:"Smart Collection",type:"warning"})}):e.jsx(e.Fragment,{})]})})})]}),"COLLECTION"!==k&&e.jsx(r.IconButton,{height:12,width:12,disabled:g,Icon:t.default})]}):e.jsx(e.Fragment,{})};exports.CollectionCard=h,exports.CollectionsScreen=t=>{const{customCollectionRestriction:c,dataLoading:r,collections:s,selectedCollectionsDispatch:l,setCollectionId:o,setSelectedCollectionId:d,selectedCollections:C,setScreen:p,collectionFetcher:y,collectionsDispatch:j,pagingControls:x,storeId:g,setSaveDisabled:m,hideCollectionCheckbox:k,renderWithoutModal:f,pickerType:S,scrollContainerRef:b,appType:P}=t,I=i.useRef(x.curPage),v=!!c&&C?.isCustom,[T,O]=i.useState(!1),q=i.useRef(!1),R=i.useRef(!1),D=()=>{if(!b||!b?.current)return;const{scrollTop:e,clientHeight:t,scrollHeight:i}=b.current;e+t>=i-20&&!q.current&&!R.current&&(m(!0),O(!0),R.current=!0,m(!0),O(!0),y(I.current,g,P).then((e=>{j({type:"paged",data:e?.collections||{}}),x.setCurPage(I.current+1),O(!1),m(!1),R.current=!1,Object.keys(e?.collections).length||(q.current=!0)})).catch())};return i.useEffect((()=>(b?.current?.addEventListener("scroll",D),()=>{b?.current?.removeEventListener("scroll",D)})),[]),i.useEffect((()=>{I.current=x.curPage}),[x.curPage]),e.jsxs("div",{children:[Object.keys(s??{})?.length?Object.keys(s).map((t=>{const i=!!C?.[t]&&("PRODUCT"!==S||!!Object.keys(C?.[t]?.products??{}).length);return e.jsx(h,{customCollectionRestriction:c,data:s[t],isDisabled:v&&!C?.[t],isChecked:i,isPartiallyChecked:u.isCollectionPartiallyChecked(t,s?.[t],C),selectedCollectionsDispatch:l,setCollectionId:o,setSelectedCollectionId:d,setScreen:p,id:t,hideCollectionCheckbox:k||"-1"===t,selectedCollections:C,renderWithoutModal:f,pickerType:S},t)})):r?e.jsx(a.ProductPickerShimmer,{}):e.jsx(n.EmptyState,{title:"No collections to show",subtitle:"We couldn’t find any collection."}),T&&e.jsx(a.ProductPickerShimmer,{})]})},exports.truncate=(e,t,i)=>{if(!e)return"";if(e.length<=t)return e;const c=e.slice(0,t-1);return(i?c.slice(0,c.lastIndexOf(" ")):c)+"..."};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.CurrencySymbols={USD:"$",GBP:"£",CAD:"C$",AUD:"A$",DKK:"DKK",SEK:"SEK",EUR:"€",BRL:"R$",TRY:"₺",JPY:"¥",SAR:"ر.س",AED:"د.إ",EGP:"E£",MAD:"د.م.",INR:"₹",CHF:"Fr",CNY:"¥",NZD:"NZ$",MXN:"Mex$",ZAR:"R",RUB:"₽",KRW:"₩",SGD:"S$",PKR:"Rs",RO:"lei"};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/box_round.svg.js"),r=require("styled-components"),n=require("../../constants/Theme.js"),s=require("../TypographyStyle.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=i(r).default.div`
|
|
2
|
+
height: 400px;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
text-align: center;
|
|
8
|
+
`;exports.EmptyState=({title:r,subtitle:i})=>e.jsxs(o,{children:[e.jsx(t.default,{width:48,height:48}),e.jsx(s.TitleRegular,{style:{marginTop:8},children:r}),e.jsx(s.BodySecondary,{style:{color:n.COLORS.content.secondary,marginTop:4},children:i})]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../type.js"),e=Object.defineProperty,a=(t,a,n)=>((t,a,n)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[a]=n)(t,"symbol"!=typeof a?a+"":a,n);const n={NORMAL:null,NOT_SYNCED:"Hidden",OUT_OF_STOCK:"Out of Stock",FB_REJECTED:"Rejected on FB catalog"},r=class{static getProductLabels(e,a=t.OUT_OF_STOCK_ACTION.NORMAL){let r="NORMAL";if(e.variants)return n[r];const i=e;return"REJECTED"===i?.fbStatus?n.FB_REJECTED:(a===t.OUT_OF_STOCK_ACTION.HIDE&&(!i.skipSync||0!==i?.quantity&&-2!==i?.quantity||(r="NOT_SYNCED"),i.skipSync&&0!==i?.quantity&&-2!==i?.quantity&&(r="NOT_SYNCED"),i.skipSync||0!==i?.quantity&&-2!==i?.quantity||(r="NOT_SYNCED"),i.skipSync||0===i?.quantity||-2===i?.quantity||(r="NORMAL")),a===t.OUT_OF_STOCK_ACTION.BLUR&&(!i.skipSync||0!==i?.quantity&&-2!==i?.quantity||(r="NOT_SYNCED"),i.skipSync&&0!==i?.quantity&&-2!==i?.quantity&&(r="NOT_SYNCED"),i.skipSync||0!==i?.quantity&&-2!==i?.quantity||(r="OUT_OF_STOCK"),i.skipSync||0===i?.quantity||-2===i?.quantity||(r="NORMAL")),a===t.OUT_OF_STOCK_ACTION.NORMAL&&(!i.skipSync||0!==i?.quantity&&-2!==i?.quantity||(r="NOT_SYNCED"),i.skipSync&&0!==i?.quantity&&-2!==i?.quantity&&(r="NOT_SYNCED"),i.skipSync||0!==i?.quantity&&-2!==i?.quantity||(r="NORMAL"),i.skipSync||0===i?.quantity||-2===i?.quantity||(r="NORMAL")),n[r])}};a(r,"getTagType",(t=>n.FB_REJECTED===t?"negative":"warning")),a(r,"getDataForProductPickerTag",((t,e,a)=>{let n=t,i=e;1===Object.keys(t?.variants??{}).length&&(n=Object.values(t?.variants??{})[0],i=!0);const y=r.getProductLabels(n,a);return{isVariantForProductPickerTag:i,dataForProductPickerTag:n,tagText:y??void 0,tagType:r.getTagType(y??"")}}));let i=r;exports.ProductHelper=i,exports.parseSelectedVariantsToArray=t=>{let e=[];Object.keys(t).forEach((a=>Object.keys(t?.[a]?.products||[]).forEach((n=>{const r=t[a].products??[],i=r[n].variants??[];return Object.keys(i).map((t=>{const e=i[t];e.currency=r[n].currency,e.variantId=t,e.productId=n,e.collectionId=a,e.productName=r[n].name})),e=[...e,...Object.values(i)],e}))));const a=e.sort(((t,e)=>null==t.displayOrder&&null==e.displayOrder?0:null==t.displayOrder?1:null==e.displayOrder?-1:t.displayOrder-e.displayOrder));return a.forEach(((t,e)=>{t.displayOrder=e})),a};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
3
|
+
import { ButtonProps } from '../button/model.js';
|
|
4
|
+
import { OUT_OF_STOCK_ACTION, FooterForNonModalI, ScreenName } from './type.js';
|
|
5
|
+
|
|
6
|
+
interface ProductVariant {
|
|
7
|
+
name: string;
|
|
8
|
+
price: string;
|
|
9
|
+
image: string;
|
|
10
|
+
quantity: number;
|
|
11
|
+
skipSync?: boolean;
|
|
12
|
+
displayOrder?: number | null;
|
|
13
|
+
fbStatus?: FbProductStatus;
|
|
14
|
+
description?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
actualPrice?: string;
|
|
17
|
+
currency?: string;
|
|
18
|
+
skuId?: string;
|
|
19
|
+
}
|
|
20
|
+
interface Product {
|
|
21
|
+
name: string;
|
|
22
|
+
image: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
variants?: {
|
|
25
|
+
[key: string]: ProductVariant;
|
|
26
|
+
};
|
|
27
|
+
id?: string;
|
|
28
|
+
handle?: string;
|
|
29
|
+
currency?: string;
|
|
30
|
+
}
|
|
31
|
+
interface Collection {
|
|
32
|
+
name: string;
|
|
33
|
+
image: string;
|
|
34
|
+
isSmartCollection: boolean;
|
|
35
|
+
products?: {
|
|
36
|
+
[key: string]: Product;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
type SelectedItems = {
|
|
40
|
+
[key: string]: Collection;
|
|
41
|
+
};
|
|
42
|
+
type SearchedItems = {
|
|
43
|
+
collections: SelectedItems;
|
|
44
|
+
products: SelectedItems;
|
|
45
|
+
};
|
|
46
|
+
type CollectionFetcherReturn = Promise<{
|
|
47
|
+
collections: {
|
|
48
|
+
[key: string]: {
|
|
49
|
+
image: string;
|
|
50
|
+
name: string;
|
|
51
|
+
isSmartCollection: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
type ProductFetcherReturn = Promise<{
|
|
56
|
+
[key: string]: Product;
|
|
57
|
+
}>;
|
|
58
|
+
type FbStatusFetcherReturn = Promise<{
|
|
59
|
+
[key: string]: FbProductStatus;
|
|
60
|
+
}>;
|
|
61
|
+
type FbProductStatus = 'APPROVED' | 'REJECTED';
|
|
62
|
+
type ProductPickerInterface = {
|
|
63
|
+
hideGlobalSearch?: boolean;
|
|
64
|
+
hideInCollectionSearch?: boolean;
|
|
65
|
+
customCollectionRestriction?: boolean;
|
|
66
|
+
searchInCollectionFetcher: (storeId: string, collectionId: string, query: string, appType: ApplicationType) => ProductFetcherReturn;
|
|
67
|
+
searchFetcher: (storeId: string, query: string, appType: ApplicationType) => Promise<SearchedItems | SelectedItems>;
|
|
68
|
+
collectionFetcher: (offset: number, storeId: string, appType: ApplicationType) => CollectionFetcherReturn;
|
|
69
|
+
productFetcher: (collectionId: string, storeId: string, appType: ApplicationType, limit?: number, offset?: number) => ProductFetcherReturn;
|
|
70
|
+
fbStatusFetcher?: (storeId: string, variantIds: string[], appType: ApplicationType) => FbStatusFetcherReturn;
|
|
71
|
+
storeId: string;
|
|
72
|
+
appType?: ApplicationType;
|
|
73
|
+
selectedItems: SelectedItems;
|
|
74
|
+
onAdd: (items: SelectedItems, total: number, secondaryClick?: boolean) => void;
|
|
75
|
+
onClose?: () => void;
|
|
76
|
+
visible: boolean;
|
|
77
|
+
zIndex?: number;
|
|
78
|
+
limit?: number;
|
|
79
|
+
exactLimit?: number;
|
|
80
|
+
hideCollectionCheckbox?: boolean;
|
|
81
|
+
hideProductCheckbox?: boolean;
|
|
82
|
+
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
83
|
+
hideVariantCheckbox?: boolean;
|
|
84
|
+
selectProductsFromCustomCollection?: boolean;
|
|
85
|
+
hideSelectionCount?: boolean;
|
|
86
|
+
title?: string;
|
|
87
|
+
postHeader?: React.ReactNode;
|
|
88
|
+
width?: string;
|
|
89
|
+
left?: string;
|
|
90
|
+
renderWithoutModal?: boolean;
|
|
91
|
+
onClickSave?: number;
|
|
92
|
+
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
93
|
+
hideProductVariants?: boolean;
|
|
94
|
+
rearrangeEnabled?: boolean;
|
|
95
|
+
selectSingleItem?: boolean;
|
|
96
|
+
stickyFooter?: boolean;
|
|
97
|
+
showProductDetails?: boolean;
|
|
98
|
+
containerStyle?: React.CSSProperties;
|
|
99
|
+
crossButtonInsideHeader?: boolean;
|
|
100
|
+
footerForNonModal?: FooterForNonModalI;
|
|
101
|
+
useDynamicInfoImageSize?: boolean;
|
|
102
|
+
primaryButton?: ButtonProps;
|
|
103
|
+
secondaryButton?: ButtonProps;
|
|
104
|
+
subtitle?: string;
|
|
105
|
+
} & ({
|
|
106
|
+
startupScreen: ScreenName.RearrangeProducts;
|
|
107
|
+
rearrangeEnabled: true;
|
|
108
|
+
} | {
|
|
109
|
+
startupScreen?: Exclude<ScreenName, ScreenName.RearrangeProducts>;
|
|
110
|
+
});
|
|
111
|
+
declare const ProductPickerModal: (props: ProductPickerInterface) => react_jsx_runtime.JSX.Element;
|
|
112
|
+
|
|
113
|
+
export { ProductPickerModal };
|
|
114
|
+
export type { Collection, CollectionFetcherReturn, FbProductStatus, FbStatusFetcherReturn, Product, ProductFetcherReturn, ProductPickerInterface, ProductVariant, SearchedItems, SelectedItems };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("../../node_modules/@bikdotai/bik-models/growth/models/bik-store.js");var t=require("../../assets/icons/search.svg.js"),o=require("react"),c=require("../../constants/Theme.js"),r=require("../../assets/icons/cross.svg.js"),s=require("../button/Button.js"),n=require("../input/Input.js"),i=require("../modals/styledModal.js"),l=require("../spinner/Spinner.js"),a=require("../tag/Tag.js"),d=require("./collectionScreen.js"),u=require("./productInfoOverlay.js"),h=require("./productScreen.js"),p=require("./rearrangeScreen.js"),S=require("./reducers.js"),C=require("./searchScreen.js"),y=require("./selectedScreen.js"),g=require("./style.js"),x=require("./type.js"),m=require("./utility.js"),j=require("../../_virtual/bik-store.js");exports.ProductPickerModal=f=>{const{storeId:b,selectedItems:k,onClose:I,visible:F,zIndex:P,exactLimit:v,limit:T,hideCollectionCheckbox:O,hideProductCheckbox:R,outOfStockAction:D=x.OUT_OF_STOCK_ACTION.BLUR,hideVariantCheckbox:q,selectProductsFromCustomCollection:E,hideSelectionCount:N,title:A,width:B,left:w,renderWithoutModal:L,onClickSave:M,pickerType:V,hideProductVariants:_=!1,startupScreen:z=x.ScreenName.Collections,rearrangeEnabled:$,selectSingleItem:H=!1,showProductDetails:K,containerStyle:W,crossButtonInsideHeader:G=!1,footerForNonModal:U={},primaryButton:Y,secondaryButton:J,subtitle:Q}=f,X=f.appType||j.__exports.ApplicationType.BIK,[Z,ee]=o.useReducer(S.collectionsReducer,{}),[te,oe]=o.useState([x.ScreenName.Collections,x.ScreenName.RearrangeProducts].includes(z)?z:x.ScreenName.Collections),[ce,re]=o.useState("grid"),[se,ne]=o.useState(""),[ie,le]=o.useState(""),[ae,de]=o.useState(0),[ue,he]=o.useState(!1),[pe,Se]=o.useState(0),[Ce,ye]=o.useState(""),[ge,xe]=o.useState(!1),[me,je]=o.useState(!1),[fe,be]=o.useReducer(S.searchReducer,{collections:{},products:{}}),[ke,Ie]=o.useReducer(S.selectedColectionsReducer,Object.keys(k).length>0?k:{}),Fe=o.useRef(null),[Pe,ve]=o.useState(!1),[Te,Oe]=o.useState();o.useEffect((()=>{he(!0),je(!0),f.collectionFetcher(ae,b,X).then((e=>{ee({type:"fetched",data:e?.collections||{}}),he(!1),de((e=>e+1)),je(!1)})).catch()}),[]),o.useEffect((()=>{let e=0;_?Object.keys(ke||[]).forEach((t=>{Object.keys(ke[t]?.products||[]).forEach((o=>{"-1"!==t&&ke[-1]&&ke[-1].products?.[o]||(e+=1)}))})):Object.keys(ke||[]).forEach((t=>{Object.keys(ke[t]?.products||[]).forEach((o=>{Object.keys(ke[t].products?.[o]?.variants||[]).forEach((()=>{e+=1}))}))})),Se(e)}),[Z,ke,_]),o.useEffect((()=>{ie&&(he(!0),f.productFetcher(ie,b,X).then((e=>{Object.keys(e).length&&ee({type:"productsFetched",data:{collectionId:ie,products:e}}),he(!1)})).catch())}),[ie]),o.useEffect((()=>{const e=setTimeout((()=>{"rearrange"!==te&&(Ce.length||"collections"!==te)&&(Ce.length?(xe(!0),f.searchFetcher(b,Ce,X).then((e=>{"collections"in e&&"products"in e?(be({type:"set",data:e}),ee({type:"searched",data:e.collections}),ee({type:"searched",data:e.products})):(be({type:"set",data:{collections:{},products:e}}),ee({type:"searched",data:e})),oe("searchProducts"),he(!1),xe(!1)}))):oe("collections"))}),800);return()=>clearTimeout(e)}),[Ce]),o.useEffect((()=>{M&&(f.onAdd(ke,pe),Re())}),[M]),o.useEffect((()=>{H&&Object.keys(ke||{}).length&&pe&&(f.onAdd(ke,pe),Re())}),[H,ke,pe]);const Re=()=>{Ie({type:"reset",data:{}})},De=()=>v&&pe>v?e.jsx(a.Tag,{tagText:`You can only select ${v} products`,type:"negative"}):T&&pe>T?e.jsx(a.Tag,{tagText:`You can only select ${T} products`,type:"negative"}):pe>0?e.jsx(s.Button,{onClick:()=>{oe($?x.ScreenName.RearrangeProducts:x.ScreenName.SelectedProducts)},buttonText:v?`${pe}/${v} products selected`:`${pe} products selected`,buttonType:["rearrange","view"].includes(te)?"tertiaryGray":"tertiary",disabled:["rearrange","view"].includes(te)}):e.jsx(s.Button,{disabled:!0,buttonText:v?`${pe}/${v} products selected`:`${pe} products selected`,buttonType:"tertiaryGray"}),qe=e=>ue?"Loading...":te===x.ScreenName.RearrangeProducts?e??"Done":e??"Add",Ee=e.jsxs(g.ContainerStyle,{style:W??{},children:[f.postHeader&&e.jsx("div",{style:{padding:"0 24px"},children:f.postHeader}),!f.hideGlobalSearch&&e.jsx(e.Fragment,{children:("collections"===te||"searchProducts"===te)&&e.jsx("div",{style:{padding:L?"8px 16px":"12px 24px",borderBottom:"1px solid #E0E0E0"},children:e.jsx(n.Input,{placeholder:"Search using ID, Name or SKU ID",noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>ge?e.jsx(l.Spinner,{size:"small",color:c.COLORS.content.primary}):e.jsx(t.default,{})},id:"listInput",height:"24px",type:"text",value:Ce,onChangeText:e=>{e.length&&e.trim().length?ye(e):ye("")}})})}),e.jsxs(g.ScrollContainerStyle,{ref:Fe,screenName:te,children:["collections"===te&&e.jsx(d.CollectionsScreen,{customCollectionRestriction:f.customCollectionRestriction,dataLoading:me,collections:Z,selectedCollectionsDispatch:Ie,setCollectionId:ne,setSelectedCollectionId:le,setScreen:oe,selectedCollections:ke,collectionFetcher:f.collectionFetcher,storeId:b,appType:X,collectionsDispatch:ee,setSaveDisabled:he,pagingControls:{curPage:ae,setCurPage:de},hideCollectionCheckbox:O,renderWithoutModal:L,pickerType:V,scrollContainerRef:Fe}),"products"===te&&se&&e.jsx(S.CollectionIdContext.Provider,{value:se,children:e.jsx(h.ProductsScreen,{hideInCollectionSearch:f.hideInCollectionSearch,customCollectionRestriction:f.customCollectionRestriction,productFetcher:f.productFetcher,setScreen:oe,storeId:b,appType:X,data:Z[se],collectionsDispatch:ee,selectedCollectionsDispatch:Ie,selectedData:ke,setSaveDisabled:he,searchInCollectionFetcher:f.searchInCollectionFetcher,hideProductCheckbox:R,outOfStockAction:D,hideVariantCheckbox:q,selectProductsFromCustomCollection:E,renderWithoutModal:L,pickerType:V,hideProductVariants:_,fbStatusFetcher:f.fbStatusFetcher,onProductDetailClick:e=>{ve(!0),Oe(e)},showProductDetailInfoIcon:K,scrollContainerRef:Fe})}),"view"===te&&e.jsx(y.SelectedScreen,{selectedCollections:ke||{},selectedCollectionsDispatch:Ie,setScreen:oe,collections:Z,hideProductVariants:_,outOfStockAction:D,storeId:b,appType:X,fbStatusFetcher:f.fbStatusFetcher}),"rearrange"===te&&e.jsx(p.RearrangeScreen,{selectedCollections:ke||{},selectedCollectionsDispatch:Ie,setScreen:oe,outOfStockAction:D,rearrangeViewType:"grid"===ce?"list":"grid",scrollContainerRef:Fe,storeId:b,appType:X,fbStatusFetcher:f.fbStatusFetcher}),"searchProducts"===te&&e.jsx(C.SearchScreen,{customCollectionRestriction:f.customCollectionRestriction,selectedCollections:ke||{},searchedCollections:fe||{},searchedCollectionsDispatch:be,selectedCollectionsDispatch:Ie,setScreen:oe,collections:Z,onBackPress:()=>{ye(""),be({type:"set",data:{collections:{},products:{}}})},pickerType:V,hideProductCheckbox:R,hideProductVariants:_,hideVariantCheckbox:q,storeId:b,appType:X,fbStatusFetcher:f.fbStatusFetcher,setCollectionId:ne,setSelectedCollectionId:le,renderWithoutModal:L,hideCollectionCheckbox:O,outOfStockAction:D})]})]});return e.jsx(e.Fragment,{children:L?e.jsxs(e.Fragment,{children:[Ee,U.renderFooter?e.jsxs(g.StyledFooterForNonModal,{children:[De(),e.jsx(s.Button,{buttonText:qe(U.primaryButtonText),disabled:!U.isLoading&&(ue||pe<1||v&&pe<v||!v&&T&&pe>T)||U.primaryButtonDisabled,isLoading:U.isLoading,onClick:()=>{f.onAdd(ke,pe),Re(),oe([x.ScreenName.Collections,x.ScreenName.RearrangeProducts].includes(z)?z:x.ScreenName.Collections)}})]}):e.jsx(e.Fragment,{}),Pe&&Te?e.jsx(u.ProductInfoOverlay,{productData:Te,outOfStockAction:D,useDynamicInfoImageSize:f.useDynamicInfoImageSize,onClose:()=>{ve(!1)}}):e.jsx(e.Fragment,{})]}):e.jsxs(i.StyledModal,{zIndex:P,open:F,onClose:()=>{I?.(),Re()},headingTitle:A||("collections"===te||"products"===te?"Select Products":"view"===te?"Selected Products":"searchProducts"===te?"Searched Results":"rearrange"===te?"Rearrange Products":void 0),headingSubtitle:Q,footerShadow:!0,centralContainerStyles:{width:B||"600px",left:w||"auto"},headerRightCustomElement:G?e.jsx("div",{style:{cursor:"pointer",display:"flex"},onClick:I,children:e.jsx(r.default,{width:20,height:20,color:c.COLORS.content.secondary})}):e.jsx(e.Fragment,{}),footerContainerStyle:f.stickyFooter?{position:"absolute",bottom:0,left:0,width:"100%",zIndex:9,background:c.COLORS.surface.standard}:void 0,primaryButton:Y?(Ae=Y,{...Ae,disabled:!Ae.isLoading&&(ue||pe<1||v&&pe<v||!v&&T&&pe>T)||Ae.disabled,onClick:()=>{f.onAdd(ke,pe),Re(),oe([x.ScreenName.Collections,x.ScreenName.RearrangeProducts].includes(z)?z:x.ScreenName.Collections)}}):{buttonText:qe(),disabled:ue||pe<1||v&&pe<v||!v&&T&&pe>T||!1,onClick:()=>{f.onAdd(ke,pe),Re()}},secondaryButton:J?(Ne=J,{...Ne,disabled:ue||pe<1||v&&pe<v||!v&&T&&pe>T||!1,onClick:()=>{const e=m.updateAllVariantsForSelectedProducts(ke,Z,fe);f.onAdd(e,pe,!0)}}):void 0,wrapperStyle:f.stickyFooter?{height:"calc(100vh - 168px)"}:void 0,footerLeftCustomElement:N?e.jsx(e.Fragment,{}):De(),hideCrossButton:Pe||G,children:[Ee,Pe&&Te?e.jsx(u.ProductInfoOverlay,{productData:Te,useDynamicInfoImageSize:f.useDynamicInfoImageSize,outOfStockAction:D,onClose:()=>{ve(!1)}}):e.jsx(e.Fragment,{})]})});var Ne,Ae};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../constants/Theme.js"),c=require("../../assets/icons/info.svg.js"),r=require("../checkBox/CheckBox.js"),i=require("../icon-button/IconButton.js"),o=require("../shimmer-image/ShimmerImage.js"),d=require("../tooltips/Tooltip.js"),a=require("../TypographyStyle.js"),n=require("./constants.js"),l=require("./helpers/ProductHelper.js"),s=require("./ProductPickerTag.js"),u=require("./style.js"),p=require("./utility.js");const h=n=>{const{isVariant:h,data:y,productId:I,collectionId:P,variantId:x,isSelected:j,selectedCollectionsDispatch:k,viewOnly:v,upliftAdditions:C,isPartiallyChecked:g,hideProductCheckbox:S,outOfStockAction:f,hideVariantCheckbox:m,hideProductVariants:b,pickerType:T="PRODUCT",onProductDetailClick:O,showProductDetailInfoIcon:D,currencyAndPrice:V}=n,{isVariantForProductPickerTag:q,dataForProductPickerTag:w,tagText:A,tagType:U}=l.ProductHelper.getDataForProductPickerTag(y,h,f),B=p.getSkuId(y,h);return e.jsxs(u.ProductCardStyle,{isVariant:h,onClick:e=>{if(e.stopPropagation(),"PRODUCT"===T&&(S||m)){const e=Object.keys(y.variants);b?j?k({type:"productUnselected",data:{productId:I,collectionId:P}}):C("productSelected",{productId:I,variantId:x,collectionId:P,product:y}):j?k({type:"variantUnselected",data:{productId:I,variantId:x,collectionId:P}}):C("variantSelected",{productId:I,variantId:x||e[0],collectionId:P,variant:y})}},isActive:j,children:[h&&!v&&!m||!h&&!v&&!S?e.jsx(r.CheckBox,{isChecked:j,isPartiallyChecked:g||!1,onValueChange:function(e,t,c){c?.stopPropagation(),h?e?C(b?"productSelected":"variantSelected",{productId:I,variantId:x,collectionId:P,variant:y}):k({type:b?"productUnselected":"variantUnselected",data:{productId:I,variantId:x,collectionId:P}}):e?C("productSelected",{productId:I,collectionId:P,product:y}):k({type:"productUnselected",data:{productId:I,collectionId:P}})}}):e.jsx(e.Fragment,{}),e.jsx("div",{children:e.jsx(o.ShimmerImage,{width:40,height:40,imageUrl:y.image,alt:"Item",borderRadius:4})}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16},children:[e.jsx(d.Tooltip,{variant:"light",body:y.name,placement:"bottom",delay:400,children:e.jsx(a.TitleSmall,{style:{flex:1},numberOfLines:1,children:y.name})}),e.jsxs(u.ProductInfo,{children:[e.jsx(s.ProductPickerTag,{isVariant:q,data:w,tagText:A,tagType:U}),D&&e.jsx(i.IconButton,{onClick:()=>{O?.(y)},Icon:()=>e.jsx(c.default,{width:20,height:20,color:t.COLORS.content.placeholder})})]})]}),e.jsxs(u.ProductSubTitle,{children:[!w?.fbStatus&&q||A?null:e.jsx(a.BodyCaption,{color:t.COLORS.content.secondary,children:V}),B&&e.jsx(d.Tooltip,{body:B,placement:"top",children:e.jsx(u.SKUIDBadge,{children:e.jsx(u.EllipsedBodyTiny,{children:`SKU ID: ${B}`})})})]})]})]})};exports.ProductCard=h,exports.ProductGroup=t=>{const{collectionId:c,productId:r,data:i,selectedData:o,selectedCollectionsDispatch:d,viewOnly:a,upliftAdditions:l,isProductPartiallyChecked:s,hideProductCheckbox:u,outOfStockAction:y,hideVariantCheckbox:I,hideProductVariants:P,pickerType:x,onProductDetailClick:j,showProductDetailInfoIcon:k}=t,v=e=>{const t=o?.[c]?.products?.[r];if(!t)return!1;const i=o?.[c]?.products?.[r]?.variants?.[e];return!!i},C=P||!p.shouldShowVariant(i)?`${i.currency?n.CurrencySymbols[i.currency]??"":""}${Object.values(i.variants??{})?.[0]?.price??Object.values(i.variants??{})?.[0]?.actualPrice??""}`:"";return e.jsxs("div",{children:[e.jsx(h,{isVariant:!1,data:i,productId:r,collectionId:c,isSelected:(()=>{const e=o?.[c]?.products?.[r];return!!e})(),isPartiallyChecked:s,selectedCollectionsDispatch:d,upliftAdditions:l,viewOnly:a,hideProductCheckbox:u,hideVariantCheckbox:I,hideProductVariants:P,pickerType:x,outOfStockAction:y,onProductDetailClick:j,showProductDetailInfoIcon:k,currencyAndPrice:C},r),P?null:p.shouldShowVariant(i)&&Object.keys(i.variants||[]).map((t=>{const o=`${i.currency?n.CurrencySymbols[i.currency]??"":""}${i.variants?.[t]?.price??i.variants?.[t]?.actualPrice??""}`;return e.jsx(h,{isVariant:!0,hideVariantCheckbox:I,data:{...i.variants[t],currency:i.currency},variantId:t,productId:r,viewOnly:a,upliftAdditions:l,collectionId:c,isSelected:v(t),selectedCollectionsDispatch:d,outOfStockAction:y,onProductDetailClick:j,showProductDetailInfoIcon:k,currencyAndPrice:o},t)}))]})};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("styled-components"),r=require("../../constants/Theme.js"),a=require("../../assets/icons/cross.svg.js"),o=require("../icon-button/IconButton.js"),i=require("../shimmer-image/ShimmerImage.js"),c=require("../tooltips/Tooltip.js"),n=require("../TypographyStyle.js"),d=require("./constants.js"),s=require("./helpers/ProductHelper.js"),u=require("./ProductPickerTag.js"),l=require("./style.js"),p=require("./utility.js");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=x(t);const g=t=>{const a=void 0===t.productData.variants;let o;if(a)o=`${t.productData.currency?d.CurrencySymbols[t.productData.currency]??"":""}${t.productData?.price??t.productData?.actualPrice??""}`;else{const e=t.productData?.currency;o=`${e?d.CurrencySymbols[e]??"":""}${Object.values(t.productData.variants??{})?.[0]?.price??Object.values(t.productData.variants??{})?.[0]?.actualPrice??""}`}const{isVariantForProductPickerTag:x,dataForProductPickerTag:y,tagText:g,tagType:m}=s.ProductHelper.getDataForProductPickerTag(t.productData,a,t.outOfStockAction),f=p.getSkuId(t.productData,a);return e.jsxs(j,{children:[e.jsx(D,{children:e.jsx(i.ShimmerImage,{useDynamicInfoImageSize:t.useDynamicInfoImageSize,imageUrl:t.productData.image,width:200,height:200,borderRadius:4})}),e.jsxs(b,{children:[f&&e.jsx(c.Tooltip,{body:f,placement:"top",children:e.jsx(l.SKUIDBadge,{children:e.jsx(l.EllipsedBodyTiny,{children:`SKU ID: ${f}`})})}),e.jsx(n.TitleRegular,{style:{display:"flex"},children:t.productData.name}),e.jsx(n.BodyCaption,{color:r.COLORS.content.secondary,children:`Product ID: ${t.productData.id}`}),e.jsx(n.BodyCaption,{className:"overlay-description",dangerouslySetInnerHTML:{__html:t.productData.description??""}}),e.jsx(n.BodyCaption,{color:r.COLORS.content.secondary,children:a?o:p.shouldShowVariant(t.productData)?null:o}),e.jsx(u.ProductPickerTag,{isVariant:x,data:y,tagText:g,tagType:m})]})]})},m=y.default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1;
|
|
4
|
+
background: rgba(0, 0, 0, 0.5);
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
position: absolute;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
z-index: 10;
|
|
11
|
+
|
|
12
|
+
.overlay-description {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
max-height: 300px;
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
word-break: break-word;
|
|
18
|
+
margin-top: 8px;
|
|
19
|
+
}
|
|
20
|
+
`,f=y.default.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: 1;
|
|
23
|
+
background: rgba(0, 0, 0, 0.5);
|
|
24
|
+
`,h=y.default.div`
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
.close-button {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: -50px;
|
|
30
|
+
right: 0px;
|
|
31
|
+
margin: 10px;
|
|
32
|
+
background: ${r.COLORS.surface.standard};
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
}
|
|
35
|
+
`,j=y.default.div`
|
|
36
|
+
display: flex;
|
|
37
|
+
background: white;
|
|
38
|
+
padding: 24px;
|
|
39
|
+
gap: 24px;
|
|
40
|
+
border-radius: 8px 8px 0px 0px;
|
|
41
|
+
`,D=y.default.div`
|
|
42
|
+
display: flex;
|
|
43
|
+
max-width: min(50%, 200px);
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
47
|
+
`,b=y.default.div`
|
|
48
|
+
display: flex;
|
|
49
|
+
flex: 1;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
gap: 4px;
|
|
52
|
+
`;exports.ProductInfoCard=g,exports.ProductInfoOverlay=t=>e.jsxs(m,{children:[e.jsx(f,{}),e.jsx(h,{children:e.jsx(o.IconButton,{className:"close-button",onClick:t.onClose,Icon:a.default,width:20,height:20})}),e.jsx(g,{productData:t.productData,outOfStockAction:t.outOfStockAction,useDynamicInfoImageSize:t.useDynamicInfoImageSize})]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),r=require("../../assets/icons/box.svg.js"),c=require("../../assets/icons/search.svg.js"),o=require("lodash"),s=require("react"),n=require("../../constants/Theme.js"),i=require("../checkBox/CheckBox.js"),l=require("../icon-button/IconButton.js"),u=require("../InfiniteScroll/InfiniteScroll.js"),d=require("../input/Input.js"),a=require("../spinner/Spinner.js"),h=require("../TypographyStyle.js"),p=require("./emptyState.js"),j=require("./product.js"),y=require("./ProductPickerShimmer.js"),f=require("./reducers.js"),g=require("./style.js"),k=require("./type.js"),C=require("./utility.js");exports.ProductsScreen=P=>{const{data:x,collectionsDispatch:S,selectedData:I,selectedCollectionsDispatch:v,productFetcher:O,storeId:b,setScreen:m,setSaveDisabled:q,hideInCollectionSearch:A,customCollectionRestriction:D,hideProductCheckbox:T,outOfStockAction:E=k.OUT_OF_STOCK_ACTION.BLUR,hideVariantCheckbox:R=!1,selectProductsFromCustomCollection:V=!1,pickerType:L,hideProductVariants:F,fbStatusFetcher:w,onProductDetailClick:B,showProductDetailInfoIcon:_,scrollContainerRef:U,appType:K}=P,M=s.useContext(f.CollectionIdContext),N=s.useRef(0),H=s.useRef(!1),[J,W]=s.useState(""),[z,G]=s.useState(!1),[Q,X]=s.useState(x),Y=s.useRef(!0),Z=s.useRef(!1);s.useEffect((()=>{if(Y.current)return void(Y.current=!1);const e=setTimeout((()=>{J.length?(G(!0),P.searchInCollectionFetcher(b,M,J,K).then((e=>{const t=o.cloneDeep(x);t.products=e,X(t);const r=C.getVariantIdsToFetchAtProductLevel(e??{});ee(r,e??{},!0),q(!1),G(!1)}))):X(x)}),800);return()=>clearTimeout(e)}),[J]);s.useEffect((()=>{Z.current=!1,N.current=Math.floor(Object.keys(x.products??{})?.length/10);const e=C.getVariantIdsToFetchAtProductLevel(x.products??{});ee(e,x.products??{})}),[M]);const $=!!D&&x.isSmartCollection;s.useEffect((()=>{x?.products||te(10)}),[]);const ee=(e,t,r)=>{w||(r?C.markVariantsAsApprovedProductsLevel(t,S,M,Q,X):C.markVariantsAsApprovedProductsLevel(t,S,M)),e.length>0&&w&&w(b,e,K).then((e=>{const c={...t};Object.keys(t).forEach((r=>{Object.keys(t?.[r]?.variants??{}).forEach((o=>{const s=t?.[r].variants?.[o];s&&"REJECTED"===e[o]?s.fbStatus="REJECTED":s&&"APPROVED"===e[o]&&(s.fbStatus="APPROVED");const n=c?.[r]?.variants;n&&n[o]&&(n[o]=s)}))})),r?(X((e=>{const t={...e};return t.products=c,t})),S({type:"productsPaged",data:{collectionId:M,products:c}})):S({type:"productsPaged",data:{collectionId:M,products:c}})})).catch((e=>{r?C.markVariantsAsApprovedProductsLevel(t,S,M,Q,X):C.markVariantsAsApprovedProductsLevel(t,S,M)}))},te=e=>{q(!0),G(!0),O(M,b,K,e,0).then((t=>{if(Object.keys(t).length||(Z.current=!0),Object.keys(t).length){X({...Q,products:t});const e=C.getVariantIdsToFetchAtProductLevel(t);ee(e,t),N.current=1}e||v({type:"selected",data:{id:M,val:{...x,products:t}}}),q(!1),G(!1)})).catch()},re=(e,t)=>{const r=C.liftTheStateUp(t,x);v({type:e,data:{...r,isRestricted:D}})},ce=!!I?.[M]&&!!Object.keys(I?.[M]?.products??{}).length;return e.jsxs("div",{children:[e.jsxs(g.ProductScreenHeader,{children:[e.jsx(l.IconButton,{Icon:t.default,height:16,onClick:()=>{m("collections")}}),e.jsx(h.BodyCaption,{style:{color:n.COLORS.content.secondary},children:x.name})]}),!A&&e.jsx("div",{style:{padding:16,height:"76px",borderBottom:"1px solid #E0E0E0"},children:e.jsx(d.Input,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>z&&J.length?e.jsx(a.Spinner,{size:"small",color:n.COLORS.content.primary}):e.jsx(c.default,{})},id:"listInput",height:"24px",type:"text",value:J,onChangeText:e=>{e.length&&e.trim().length?W(e):W("")},placeholder:"Search using ID, Name or SKU ID"})}),Object.keys(Q?.products||[]).length>0&&!$&&!J.length&&!T&&"-1"!==M&&e.jsxs(g.ProductScreenCollectionCardStyle,{children:[e.jsx(i.CheckBox,{isChecked:ce,isPartiallyChecked:C.isCollectionPartiallyChecked(M,Q,I,F),onValueChange:function(e){e?te():v({type:"unselected",data:{id:M}})}}),e.jsx("div",{style:{width:40,height:40},children:e.jsx(r.default,{})}),e.jsx(h.TitleRegular,{children:"All Products"})]}),e.jsx(u.InfiniteScroll,{hasData:!(Object.keys(Q?.products||[]).length<10)&&!!Object.keys(Q?.products||[]).length,fetchMore:()=>(H.current=!0,O(M,b,K,10,N.current).then((e=>{let t=!1;if(Object.keys(e).length||(t=!0),Object.keys(e).length){const t=Q;t.products={...Q.products,...e},X({...t});const r=C.getVariantIdsToFetchAtProductLevel(e);ee(r,e)}return q(!1),H.current=!1,N.current+=1,t}))),containerRef:U,children:Object.keys(Q?.products||[]).length?Object.keys(Q.products||[]).map((t=>e.jsx(j.ProductGroup,{outOfStockAction:E,collectionId:M,isProductPartiallyChecked:C.isProductPartiallyChecked(M,t,I,Q,F),productId:t,data:Q.products[t],selectedData:I,selectedCollectionsDispatch:v,viewOnly:!V&&!!$,upliftAdditions:re,hideProductCheckbox:T,hideVariantCheckbox:R,hideProductVariants:F,pickerType:L,onProductDetailClick:B,showProductDetailInfoIcon:_},t))):z?e.jsx(y.ProductPickerShimmer,{limit:10}):e.jsx(p.EmptyState,{title:"No products to show",subtitle:J.length?"We couldn't find the product you were looking for":"We couldn’t find any product in this collection."})})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),r=require("react"),s=require("react-beautiful-dnd"),c=require("../../constants/Theme.js"),o=require("../icon-button/IconButton.js"),i=require("../TypographyStyle.js"),n=require("./emptyState.js"),a=require("./helpers/ProductHelper.js"),l=require("./style.js"),d=require("./utility.js"),u=require("./variantComponents.js");exports.RearrangeScreen=p=>{const{selectedCollections:S,selectedCollectionsDispatch:j,setScreen:h,rearrangeViewType:y,outOfStockAction:f,scrollContainerRef:x,storeId:q,fbStatusFetcher:C,appType:O}=p,[V,g]=r.useState(a.parseSelectedVariantsToArray(S));r.useEffect((()=>{g(a.parseSelectedVariantsToArray(S))}),[S]),r.useEffect((()=>{x?.current?.scrollTo({top:0}),d.fetchFbStatusCollection(S,q,O,j,C,"update")}),[]);return e.jsxs(s.DragDropContext,{onDragEnd:e=>{if(!e.destination)return;const t=V,[r]=t.splice(e.source.index,1);t.splice(e.destination.index,0,r),t.forEach(((e,t)=>{e.displayOrder=t})),g(t)},children:[e.jsxs(l.SelectedScreenHeader,{children:[e.jsx(o.IconButton,{Icon:t.default,width:16,height:16,color:c.COLORS.content.secondary,onClick:()=>{h("collections")}}),e.jsx(i.BodyCaption,{color:c.COLORS.content.secondary,children:"All Products"})]}),Object.keys(S).length>0?"list"===y?e.jsx(u.VariantsList,{selectedVariants:V,setSelectedVariants:g,selectedCollectionsDispatch:j,outOfStockAction:f}):e.jsx(u.VariantsGrid,{selectedVariants:V,setSelectedVariants:g,selectedCollectionsDispatch:j}):e.jsx(n.EmptyState,{title:"No Products Selected",subtitle:"Selected products will appear here"})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash");const e=require("react").createContext("");exports.CollectionIdContext=e,exports.collectionsReducer=function(t,e){let a={};switch(e.type){case"fetched":return a={...e.data},a;case"productsFetched":return a={...t},a[e.data.collectionId].products=e.data.products,a;case"paged":return a={...t,...e.data},a;case"productsPaged":return a={...t},a[e.data.collectionId].products={...a[e.data.collectionId].products,...e.data.products},a;case"searched":a={...t};for(const t in e.data)t in a||(a[t]=e.data[t]);return a;default:return{}}},exports.paginationReducer=function(t,e){let a={};switch(e.type){case"paginate":a={...t};for(const t in e.data)if(Object.prototype.hasOwnProperty.call(e.data,t)){const r=e.data[t];if(Object.prototype.hasOwnProperty.call(a,t)){const e=a[t];a[t]={...e,products:{...e.products,...r.products}}}else a[t]=r}return a;case"update":return a={...t},a;case"set":return a={...t,...e.data},a;case"filter":a={};for(const r in t)if(r in e.data){const c={...t[r]},s=e.data[r],d={};for(const t in c.products)if(t in s.products){const e={...c.products[t]},a=s.products[t],r={};for(const t in e.variants)t in a.variants&&(r[t]={...e.variants[t]});Object.keys(r).length>0&&(e.variants=r,d[t]=e)}Object.keys(d).length>0&&(c.products=d,a[r]=c)}return a;default:return t}},exports.searchReducer=function(t,e){let a={collections:{},products:{}};switch(e.type){case"set":return e.data;case"setProducts":return a={...t},a.products=e.data,a;default:return t}},exports.selectedColectionsReducer=function(e,a){let r={},c="",s="",d="";switch(a.type){case"selected":return r=t.cloneDeep(e),a.data.val.isSmartCollection&&(a.data.isRestricted&&(r={}),r.isCustom=!0),r[a.data.id]=a.data.val,r;case"unselected":return r=t.cloneDeep(e),r?.isCustom&&(r.isCustom=!1),delete r[a.data.id],r;case"productUnselected":return r=t.cloneDeep(e),c=a.data.productId,s=a.data.collectionId,delete r[s].products[c],Object.keys(r[s].products).length||(r?.isCustom&&(r.isCustom=!1),delete r[s]),r;case"productSelected":return r=t.cloneDeep(e),c=a.data.productId,s=a.data.collectionId,a.data.catalogOnlyData?.isSmartCollection&&(a.data.isRestricted&&(r={}),r.isCustom=!0),r?.[s]||(r[s]=a.data.catalogOnlyData,r[s].products={}),r[s].products[c]=a.data.product,r;case"variantSelected":return r=t.cloneDeep(e),c=a.data.productId,s=a.data.collectionId,d=a.data.variantId,a.data.catalogOnlyData?.isSmartCollection&&(a.data.isRestricted&&(r={}),r.isCustom=!0),r?.[s]||(r[s]=a.data.catalogOnlyData,r[s].products={},r[s].products[c]=a.data.productOnlyData,r[s].products[c].variants={}),r?.[s]?.products||(r[s].products={}),r?.[s]?.products?.[c]||(r[s].products[c]=a.data.productOnlyData,r[s].products[c].variants={}),r[s].products[c].variants||(r[s].products[c].variants={}),r[s].products[c].variants[d]=a.data.variant,r;case"variantUnselected":return r=t.cloneDeep(e),c=a.data.productId,s=a.data.collectionId,d=a.data.variantId,r[s].products[c]?.variants?.[d]&&delete r[s].products[c].variants[d],Object.keys(r[s].products?.[c]?.variants??{}).length||(delete r[s].products[c],Object.keys(r[s].products).length||(r[s]?.isSmartCollection&&(r.isCustom=!1),delete r[s])),r;case"update":return r={...e},r;case"reset":return{};default:return e}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),c=require("react"),o=require("../icon-button/IconButton.js"),s=require("../TypographyStyle.js"),r=require("./collectionScreen.js"),i=require("./emptyState.js"),l=require("./product.js"),d=require("./style.js"),n=require("./utility.js");exports.SearchScreen=u=>{const{customCollectionRestriction:a,selectedCollections:h,searchedCollections:p,searchedCollectionsDispatch:C,selectedCollectionsDispatch:j,setScreen:y,collections:k,onBackPress:x,hideVariantCheckbox:S,pickerType:b,hideProductVariants:P,hideProductCheckbox:f,storeId:m,fbStatusFetcher:I,setCollectionId:q,setSelectedCollectionId:O,hideCollectionCheckbox:g,renderWithoutModal:v,outOfStockAction:D,appType:T}=u;c.useEffect((()=>{n.fetchFbStatusCollection(p.products??{},m,T,C,I,"setProducts")}),[p?.products]);const F=!!a&&h?.isCustom;return e.jsxs("div",{children:[e.jsxs(d.SelectedScreenHeader,{children:[e.jsx(o.IconButton,{Icon:t.default,onClick:()=>{y("collections"),x()}}),e.jsx(s.BodyCaption,{children:Object.keys(p?.collections)?.length?"Searched Collections & Products":"Searched Products"})]}),e.jsx("div",{children:Object.keys(p?.products).length||Object.keys(p?.collections).length?e.jsxs(e.Fragment,{children:[e.jsx(e.Fragment,{children:Object.keys(p?.collections).map((t=>e.jsx(r.CollectionCard,{customCollectionRestriction:a,data:k?.[t],isDisabled:F&&!h?.[t],isChecked:!!h?.[t],isPartiallyChecked:n.isCollectionPartiallyChecked(t,k?.[t],h,P),selectedCollectionsDispatch:j,setCollectionId:q,setSelectedCollectionId:O,setScreen:y,id:t,hideCollectionCheckbox:g||"-1"===t,selectedCollections:h,renderWithoutModal:v,pickerType:b,usedInSearch:!0},t)))}),e.jsx(e.Fragment,{children:Object.keys(p?.products).map((t=>Object.keys(p?.products?.[t]?.products||[]).map((c=>{let o=!1;return p?.products?.isCustom&&(o=!0),e.jsx(l.ProductGroup,{collectionId:t,upliftAdditions:(e,c)=>((e,t,c)=>{const o=n.liftTheStateUp(c,p?.products?.[e]);j({type:t,data:{...o,isRestricted:a}})})(t,e,c),productId:c,data:(p?.products?.[t].products)[c],isProductPartiallyChecked:n.isProductPartiallyChecked(t,c,h,p.products?.[t],P),selectedData:h,selectedCollectionsDispatch:j,viewOnly:o,hideProductCheckbox:f,hideVariantCheckbox:S,hideProductVariants:P,pickerType:b,outOfStockAction:D},c)}))))})]}):e.jsx(i.EmptyState,{title:"No search results found",subtitle:"We couldn’t find the product you were looking for."})})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),r=require("react"),c=require("../icon-button/IconButton.js"),s=require("../TypographyStyle.js"),n=require("./emptyState.js"),i=require("./product.js"),o=require("./reducers.js"),u=require("./style.js"),l=require("./utility.js");exports.SelectedScreen=d=>{const{selectedCollections:a,selectedCollectionsDispatch:p,setScreen:j,collections:f,hideProductVariants:h=!1,outOfStockAction:y,storeId:S,fbStatusFetcher:b,appType:x}=d,g=r.useRef(0),q=r.useRef(null),[v,C]=r.useReducer(o.paginationReducer,{});r.useEffect((()=>{g.current=0;const e=l.paginateSelectedItems(a,10,0);C({type:"paginate",data:e}),l.fetchFbStatusCollection(e,S,x,C,b,"set"),g.current+=1}),[]),r.useEffect((()=>{C({type:"filter",data:a})}),[a]),r.useEffect((()=>{const e=new IntersectionObserver((e=>{if(e[0].isIntersecting&&g.current>0){const e=l.paginateSelectedItems(a,10,g.current);C({type:"paginate",data:e}),l.fetchFbStatusCollection(e,S,x,C,b,"update"),g.current+=1}}),{threshold:1});return q.current&&e.observe(q.current),()=>{q.current&&e.unobserve(q.current)}}),[q,a]);const I=a;return e.jsxs("div",{children:[e.jsxs(u.SelectedScreenHeader,{children:[e.jsx(c.IconButton,{Icon:t.default,onClick:()=>{j("collections")}}),e.jsx(s.BodyCaption,{children:"Selected Products"})]}),e.jsxs("div",{children:[Object.keys(v).length>0?e.jsx(e.Fragment,{children:Object.keys(v).map((t=>Object.keys(v?.[t]?.products||[]).map((r=>{let c=!1;return I?.isCustom&&(c=!0),e.jsx(i.ProductGroup,{upliftAdditions:null,collectionId:t,productId:r,data:v[t].products[r],isProductPartiallyChecked:l.isProductPartiallyChecked(t,r,I,f?.[t],h),selectedData:I,selectedCollectionsDispatch:p,viewOnly:c,hideProductVariants:h,outOfStockAction:y},r)}))))}):e.jsx(n.EmptyState,{title:"No Products Selected",subtitle:"Select products will appear here"}),e.jsx("div",{ref:q})]})]})};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("../../constants/Theme.js"),i=require("../TypographyStyle.js"),o=require("./type.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e);const d=l.default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
background-color: white;
|
|
4
|
+
height: ${e=>e.renderWithoutModal?"90%":"75vh"};
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
`,n=l.default.div`
|
|
7
|
+
overflow-y: scroll;
|
|
8
|
+
overflow-x: hidden;
|
|
9
|
+
|
|
10
|
+
::-webkit-scrollbar {
|
|
11
|
+
display: block;
|
|
12
|
+
width: 8px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
::-webkit-scrollbar-thumb {
|
|
16
|
+
background-color: ${e=>e.screenName!==o.ScreenName.RearrangeProducts?"#888":"#fff"};
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
}
|
|
19
|
+
`,a=l.default.div`
|
|
20
|
+
height: 64px;
|
|
21
|
+
background-color: ${e=>e.isDisabled?"#F0F0F0":e.isActive?t.COLORS.background.positive.light:"white"};
|
|
22
|
+
border-bottom: 1px solid #e0e0e0;
|
|
23
|
+
padding: ${e=>e.usedInSearch?"12px 16px":"12px 24px"};
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
column-gap: 16px;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
:hover {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
background-color: ${t.COLORS.surface.hovered};
|
|
32
|
+
}
|
|
33
|
+
`,p=l.default.div`
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
column-gap: 18px;
|
|
39
|
+
`,c=l.default.div`
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
`,s=l.default.div`
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
max-height: 32px;
|
|
47
|
+
min-height: 32px;
|
|
48
|
+
background-color: ${t.COLORS.background.base};
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
align-items: center;
|
|
51
|
+
padding: 8px 16px;
|
|
52
|
+
margin-top: 16px;
|
|
53
|
+
position: sticky;
|
|
54
|
+
top: 0;
|
|
55
|
+
z-index: 10;
|
|
56
|
+
`,x=l.default.div`
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
column-gap: 16px;
|
|
60
|
+
padding: 12px 16px;
|
|
61
|
+
border-bottom: 1px solid #e0e0e0;
|
|
62
|
+
align-items: center;
|
|
63
|
+
`,f=l.default.div`
|
|
64
|
+
min-height: 64px;
|
|
65
|
+
background-color: ${e=>e.isActive?t.COLORS.background.positive.light:"white"};
|
|
66
|
+
border-bottom: 1px solid #e0e0e0;
|
|
67
|
+
padding: 12px 16px;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
column-gap: 16px;
|
|
71
|
+
justify-content: flex-start;
|
|
72
|
+
align-items: center;
|
|
73
|
+
padding-left: ${e=>e.isVariant?"42px":"16px"};
|
|
74
|
+
:hover {
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
background-color: ${t.COLORS.surface.hovered};
|
|
77
|
+
}
|
|
78
|
+
`,u=l.default.div`
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
max-height: 32px;
|
|
82
|
+
min-height: 32px;
|
|
83
|
+
background-color: ${t.COLORS.background.base};
|
|
84
|
+
justify-content: flex-start;
|
|
85
|
+
align-items: center;
|
|
86
|
+
padding: 8px 16px;
|
|
87
|
+
position: sticky;
|
|
88
|
+
top: 0;
|
|
89
|
+
z-index: 10;
|
|
90
|
+
`,g=l.default.div`
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
`,y=l.default.div`
|
|
94
|
+
min-height: 72px;
|
|
95
|
+
background: white;
|
|
96
|
+
padding: 12px 16px;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: space-between;
|
|
101
|
+
|
|
102
|
+
.text-container {
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: 16px;
|
|
105
|
+
flex: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tooltip-title-tag {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex: 1;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
width: 100%;
|
|
114
|
+
gap: 16px;
|
|
115
|
+
}
|
|
116
|
+
.info-container {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
flex: 1;
|
|
120
|
+
}
|
|
121
|
+
`,h=l.default.div`
|
|
122
|
+
height: 72px;
|
|
123
|
+
width: 72px;
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
margin: 16px;
|
|
128
|
+
`;l.default.div`
|
|
129
|
+
display: flex;
|
|
130
|
+
width: 32px;
|
|
131
|
+
height: 32px;
|
|
132
|
+
padding: 6px;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
align-items: center;
|
|
135
|
+
border: 1px solid ${t.COLORS.stroke.primary};
|
|
136
|
+
border-radius: 4px;
|
|
137
|
+
`;const b=l.default.div`
|
|
138
|
+
padding: 16px 24px;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: space-between;
|
|
142
|
+
margin-top: auto;
|
|
143
|
+
width: 100%;
|
|
144
|
+
`,m=l.default.div`
|
|
145
|
+
width: fit-content;
|
|
146
|
+
background: ${t.COLORS.background.brandLight};
|
|
147
|
+
padding: 2px 6px;
|
|
148
|
+
border-radius: 14px;
|
|
149
|
+
`,w=l.default(i.BodyTiny)`
|
|
150
|
+
white-space: nowrap;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
max-width: 196px;
|
|
154
|
+
display: block;
|
|
155
|
+
color: ${t.COLORS.background.inverseLight};
|
|
156
|
+
`,v=l.default.div`
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: row;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: 5px;
|
|
161
|
+
`,S=l.default.div`
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: row;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
min-width: 0;
|
|
167
|
+
`;l.default(i.TitleSmall)`
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
white-space: nowrap;
|
|
170
|
+
text-overflow: ellipsis;
|
|
171
|
+
display: block;
|
|
172
|
+
`,exports.CollectionCardDetailStyle=c,exports.CollectionCardInfoStyle=p,exports.CollectionCardStyle=a,exports.CollectionNameHolder=g,exports.ContainerStyle=d,exports.EllipsedBodyTiny=w,exports.ProductCardStyle=f,exports.ProductInfo=S,exports.ProductScreenCollectionCardStyle=x,exports.ProductScreenHeader=s,exports.ProductSubTitle=v,exports.SKUIDBadge=m,exports.ScrollContainerStyle=n,exports.SelectedScreenHeader=u,exports.StyledFooterForNonModal=b,exports.VariantCardGridStyle=h,exports.VariantCardListStyle=y;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare enum OUT_OF_STOCK_ACTION {
|
|
2
|
+
HIDE = "HIDE",
|
|
3
|
+
NORMAL = "NORMAL",
|
|
4
|
+
/** @description shows OOS label */
|
|
5
|
+
BLUR = "BLUR"
|
|
6
|
+
}
|
|
7
|
+
interface FooterForNonModalI {
|
|
8
|
+
renderFooter?: boolean;
|
|
9
|
+
primaryButtonText?: string;
|
|
10
|
+
primaryButtonDisabled?: boolean;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare enum ScreenName {
|
|
14
|
+
Collections = "collections",
|
|
15
|
+
RearrangeProducts = "rearrange",
|
|
16
|
+
SelectedProducts = "view",
|
|
17
|
+
SearchProducts = "searchProducts",
|
|
18
|
+
Products = "products"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { OUT_OF_STOCK_ACTION, ScreenName };
|
|
22
|
+
export type { FooterForNonModalI };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=(e=>(e.HIDE="HIDE",e.NORMAL="NORMAL",e.BLUR="BLUR",e))(e||{}),r=(e=>(e.Collections="collections",e.RearrangeProducts="rearrange",e.SelectedProducts="view",e.SearchProducts="searchProducts",e.Products="products",e))(r||{});exports.OUT_OF_STOCK_ACTION=e,exports.ScreenName=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash");function e(t,e,s){if(!t)return{};const r=Object.keys(t).slice(s,s+e),c={};return r.forEach((e=>{c[e]=t[e]})),c}const s=(t,e,s)=>{Object.keys(t).forEach((e=>{const s=t[e]?.products??{};Object.keys(s).forEach((s=>{const r=t[e]?.products?.[s]?.variants??{};Object.keys(r).forEach((r=>{const c=t[e]?.products?.[s]?.variants?.[r];c&&!c.fbStatus&&(c.fbStatus="APPROVED")}))}))})),e({type:s,data:t})};exports.fetchFbStatusCollection=(t,e,r,c,o,a="paged")=>{o||s(t,c,a);const n=(t=>{const e=[];return Object.keys(t).forEach((s=>{const r=t[s]?.products??{};Object.keys(r).forEach((r=>{const c=t[s]?.products?.[r]?.variants??{};Object.keys(c).forEach((c=>{const o=t[s]?.products?.[r]?.variants?.[c];o?.fbStatus||e.push(c)}))}))})),e})(t);n.length>0&&o&&o(e,n,r).then((e=>{const s={...t};Object.keys(s).forEach((t=>{const r=s[t]?.products??{};Object.keys(r).forEach((r=>{const c=s[t]?.products?.[r]?.variants??{};Object.keys(c).forEach((c=>{const o=s[t]?.products?.[r]?.variants?.[c];o&&"REJECTED"===e[c]?o.fbStatus="REJECTED":o&&"APPROVED"===e[c]&&(o.fbStatus="APPROVED")}))}))})),c({type:a,data:s})})).catch((e=>{console.error("Error in fbStatusFetcher",e),s(t,c,a)}))},exports.getSkuId=(t,e)=>{if(e)return t.skuId;const s=Object.values(t?.variants??{});return 1===s.length&&s[0].name.includes(t.name)?s[0].skuId:""},exports.getVariantIdsToFetchAtProductLevel=(t,e)=>{const s=[];return Object.keys(t??{}).forEach((r=>{const c=t?.[r]?.variants??{};Object.keys(c).forEach((c=>{let o;o=e?e?.products?.[r]?.variants?.[c]:t?.[r]?.variants?.[c],o?.fbStatus||s.push(c)}))})),s},exports.isCollectionPartiallyChecked=(t,e,s,r=!1)=>{let c=0,o=0;if(r){const r=e?.products??{};c=Object.keys(r).length;const a=s[t]?.products??{};o=Object.keys(a).length}else if(s[t]){const r=e?.products;r&&Object.keys(r).forEach((t=>{const e=r[t]?.variants;e&&Object.keys(e).forEach((t=>c+=1))}));const a=s[t]?.products;if(a&&Object.keys(a).forEach((t=>{const e=a[t]?.variants;e&&Object.keys(e).forEach((t=>o+=1))})),c<=0&&o>0)return!1}return o>0&&c!==o},exports.isProductPartiallyChecked=(t,e,s,r,c)=>{let o=0,a=0;if(s?.[t]?.products?.[e]){if(c)return!1;const n=s?.[t]?.products?.[e]?.variants||[];if(1===Object.keys(n).length)for(const r in n){const c=s?.[t]?.products?.[e],o=s?.[t]?.products?.[e]?.variants?.[r];if(o?.name?.includes(c?.name??""))return!1}if(Object.keys(r?.products?.[e]?.variants||[])?.forEach((()=>a++)),Object.keys(s?.[t]?.products?.[e]?.variants||[]).forEach((()=>o++)),o>0&&a!==o)return!0}return!1},exports.liftTheStateUp=(e,s)=>{const r=t.cloneDeep(s);if(delete r.products,(e={...e,catalogOnlyData:r}).productId&&s.products){const c=t.cloneDeep(s.products[e.productId]);c?.variants&&delete c.variants,e={...e,catalogOnlyData:r,productOnlyData:c}}return e},exports.markVariantsAsApprovedProductsLevel=(t,e,s,r,c)=>{const o={...t};if(Object.keys(t).forEach((e=>{Object.keys(t?.[e]?.variants??{}).forEach((s=>{const r=t?.[e].variants?.[s];r&&(r.fbStatus="APPROVED");const c=o?.[e]?.variants;c&&c[s]&&(c[s]=r)}))})),r&&c){const t={...r};t.products=o,c(t),e({type:"productsPaged",data:{collectionId:s,products:o}})}else e({type:"productsPaged",data:{collectionId:s,products:o}})},exports.paginateSelectedItems=function(t,s,r){const c={};let o=0;for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const n=t[a],u=e(n.products,s,r-o);u&&Object.keys(u).length>0&&(c[a]={...n,products:u}),o+=Object.keys(n.products??{}).length}return c},exports.shouldShowVariant=t=>{const e=Object.keys(t.variants||[]);let s=!1;return!(e.length<=1)||(e.forEach((e=>{s=t.variants?.[e].name.includes(t.name)??!1})),!s)},exports.updateAllVariantsForSelectedProducts=(e,s,r)=>Object.keys(e).reduce(((c,o)=>o in s?(c[o]={...e[o],products:Object.keys(e[o].products??{}).reduce(((c,a)=>{const n=s[o].products?.[a],u=r?.products?.[o]?.products?.[a];return n?c[a]={...e[o].products?.[a]||{},allVariants:t.cloneDeep(n.variants)}:u?c[a]={...e[o].products?.[a]||{},allVariants:t.cloneDeep(u.variants)}:e[o].products?.[a]?.allVariants&&(c[a]={...e[o].products?.[a]||{},allVariants:t.cloneDeep(e[o].products?.[a].allVariants)}),c}),{})},c):c),{});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/delete.svg.js"),r=require("../../assets/icons/drag_handle.svg.js"),i=require("../tooltips/Tooltip.js"),a=require("../../constants/Theme.js"),s=require("../icon-button/IconButton.js"),o=require("../shimmer-image/ShimmerImage.js"),n=require("../TypographyStyle.js"),c=require("./constants.js"),d=require("./helpers/ProductHelper.js"),l=require("./ProductPickerTag.js"),u=require("./style.js");exports.VariantCardGridView=t=>{const{data:r}=t;return e.jsx(u.VariantCardGridStyle,{children:e.jsx(i.Tooltip,{body:r.name,alwaysVisible:!1,variant:"dark",placement:"bottom",children:e.jsx(o.ShimmerImage,{width:72,height:72,imageUrl:r.image,alt:"Item",borderRadius:4})})})},exports.VariantCardListView=h=>{const{data:m,selectedCollectionsDispatch:j,outOfStockAction:p}=h,x=()=>{let e;return e=m.name.includes(m.productName)?m.name:`${m.productName} ${m.name}`,e},{dataForProductPickerTag:g,tagText:y,tagType:I}=d.ProductHelper.getDataForProductPickerTag(m,!0,p),T=`${m.currency?c.CurrencySymbols[m.currency]??"":""}${m.price??m.actualPrice??""}`,S=m.skuId;return e.jsx(u.VariantCardListStyle,{children:e.jsxs("div",{className:"text-container",children:[e.jsx(r.default,{width:24,height:24,color:a.COLORS.content.placeholder}),e.jsx("div",{children:e.jsx(o.ShimmerImage,{width:40,height:40,imageUrl:m.image,alt:"Item",borderRadius:4},m.variantId)}),e.jsxs("div",{className:"info-container",children:[e.jsxs("div",{className:"tooltip-title-tag",children:[e.jsx(i.Tooltip,{body:x(),placement:"bottom",delay:400,variant:"light",children:e.jsx(n.TitleSmall,{numberOfLines:1,style:{flex:1,minWidth:0},children:x()})}),e.jsxs(u.ProductInfo,{children:[e.jsx(l.ProductPickerTag,{isVariant:!0,data:g,tagText:y,tagType:I}),e.jsx(s.IconButton,{Icon:()=>e.jsx(t.default,{width:24,height:24,color:a.COLORS.content.placeholder}),onClick:()=>{j&&j({type:"variantUnselected",data:{productId:m.productId,variantId:m.variantId,collectionId:m.collectionId}}),h.onDelete&&h.onDelete()}})]})]}),e.jsxs(u.ProductSubTitle,{children:[e.jsx(n.BodyCaption,{color:a.COLORS.content.secondary,children:!g?.fbStatus||y?null:T}),S&&e.jsx(i.Tooltip,{body:S,placement:"top",children:e.jsx(u.SKUIDBadge,{children:e.jsx(u.EllipsedBodyTiny,{children:`SKU ID: ${S}`})})})]})]})]})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),a=require("react-beautiful-dnd"),d=require("../../constants/Theme.js"),l=require("./variant.js");exports.VariantsGrid=({selectedVariants:r})=>e.jsx(a.Droppable,{droppableId:"droppable-horizontal",children:d=>e.jsxs("div",{...d.droppableProps,ref:d.innerRef,style:{...d.droppableProps.style,display:"flex"},children:[e.jsx(a.Droppable,{droppableId:"droppable-vertical",direction:"horizontal",children:d=>e.jsxs("div",{...d.droppableProps,ref:d.innerRef,style:{...d.droppableProps.style,display:"flex",flexWrap:"wrap",flexDirection:"row"},children:[r.map(((r,d)=>e.jsx(a.Draggable,{draggableId:`${r.productId}-${r.variantId}`,index:d,children:(a,d)=>e.jsxs("div",{ref:a.innerRef,...a.draggableProps,...a.dragHandleProps,children:[e.jsx(l.VariantCardGridView,{data:r}),a.placeholder]})},`${r.productId}-${r.variantId}`))),d.placeholder]})}),d.placeholder]})}),exports.VariantsList=({selectedVariants:t,setSelectedVariants:s,selectedCollectionsDispatch:o,outOfStockAction:i})=>{const[n,p]=r.useState(-1);function c(e){if(e?.transform){const r=`translate(0px, ${e.transform.split(",").pop()}`;return{...e,transform:r}}return e}return e.jsx(a.Droppable,{droppableId:"droppable-list",children:(r,u)=>e.jsxs("div",{...r.droppableProps,ref:r.innerRef,style:{backgroundColor:d.COLORS.surface.subdued,padding:"0.05px",height:t.length<8?"550px":"100%",overflow:"auto",...r.droppableProps.style},children:[t.map(((r,u)=>e.jsx("div",{style:{background:d.COLORS.surface.hovered,margin:"5px",boxShadow:u===n?"0px 4px 12px rgba(0, 0, 0, 0.12)":""},onMouseEnter:()=>p(u),onMouseLeave:()=>p(-1),children:e.jsx(a.Draggable,{draggableId:`${r.productId}-${r.variantId}`,index:u,children:(a,d)=>e.jsx("div",{ref:a.innerRef,...a.draggableProps,...a.dragHandleProps,style:c({...a.draggableProps.style,...a.draggableSnapshot}),children:e.jsx(l.VariantCardListView,{data:r,selectedCollectionsDispatch:o,onDelete:()=>{const e=t.slice();e[u].displayOrder=null,e.splice(u,1),s(e)},outOfStockAction:i},`${r.productId}-${r.variantId}`)})},`${r.productId}-${r.variantId}`)},`${r.productId}-${r.variantId}`))),r.placeholder&&u.isDraggingOver?e.jsx("div",{style:{background:d.COLORS.surface.hovered,margin:"5px"},children:r.placeholder}):null]})})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/checklistIcon.svg.js");exports.default=({percentage:r,width:s=200,containerStyle:o})=>{const i=r<0?0:r>100?100:r,n=s/2-s/10,c=n*Math.PI*2,l=c-c*i/100,a=s/10,d=s/3;return e.jsx("div",{style:o,children:e.jsxs("svg",{width:s,height:s,viewBox:`0 0 ${s} ${s}`,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"gradientStroke",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[e.jsx("stop",{offset:"0%",stopColor:"#7000FF"}),e.jsx("stop",{offset:"100%",stopColor:"#AD00FF"})]})}),e.jsx("circle",{cx:s/2,cy:s/2,strokeWidth:a,r:n,strokeOpacity:.8,fill:"none",style:{stroke:"#ffffff"}}),e.jsx("circle",{cx:s/2,cy:s/2,strokeWidth:a,r:n,style:{stroke:"url(#gradientStroke)",strokeDasharray:c,strokeDashoffset:l},transform:`rotate(-90 ${s/2} ${s/2})`,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx(t.default,{x:s/2-d/2,width:d})]})})};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as _emotion_react from '@emotion/react';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
interface ProgressBarProps {
|
|
7
|
+
completed: number;
|
|
8
|
+
isAnimated: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const ProgressBarComponent: (props: ProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare const ProgressCompletedBar: _emotion_styled.StyledComponent<{
|
|
14
|
+
theme?: _emotion_react.Theme | undefined;
|
|
15
|
+
as?: React.ElementType<any> | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
color: string;
|
|
18
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
|
|
20
|
+
export { ProgressBarComponent, ProgressCompletedBar };
|
|
21
|
+
export type { ProgressBarProps };
|