@yoobic/yobi 8.2.0-6 → 8.2.0-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/{camera-helpers-c1fbf12b.js → camera-helpers-81c1ecd1.js} +2 -2
- package/dist/cjs/{chat-helpers-cd8d135e.js → chat-helpers-13f3661c.js} +1 -1
- package/dist/cjs/{common-helpers-1d02f971.js → common-helpers-d06450ea.js} +1 -1
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/{draggable-dots-helpers-82c99ac4.js → draggable-dots-helpers-012f4707.js} +1 -1
- package/dist/cjs/{draggable-tags-helpers-bf7e3a6b.js → draggable-tags-helpers-fed9b0a5.js} +2 -2
- package/dist/cjs/{entities-helpers-73a15f09.js → entities-helpers-acda94e9.js} +2 -2
- package/dist/cjs/{filters-helpers-d43545c4.js → filters-helpers-709b9a6e.js} +2 -2
- package/dist/cjs/{form-helpers-6e242bc9.js → form-helpers-1e738cef.js} +2 -2
- package/dist/cjs/{form-input-helpers-dd79926c.js → form-input-helpers-2996713d.js} +3 -3
- package/dist/cjs/{form-text-area-helpers-06d1131e.js → form-text-area-helpers-36db7d81.js} +1 -1
- package/dist/cjs/{grid-renderers-cdd1dd0d.js → grid-renderers-1ca76f14.js} +5 -5
- package/dist/cjs/{incentive-helpers-717d3779.js → incentive-helpers-6d9cedf7.js} +2 -2
- package/dist/cjs/{index-9ea49259.js → index-0e094ef6.js} +2 -2
- package/dist/cjs/{index-d82a50b9.js → index-1c7eb28e.js} +1 -1
- package/dist/cjs/{index-11911d9b.js → index-5de6b33e.js} +5 -4
- package/dist/cjs/{index-4691b6d1.js → index-620de2e2.js} +1 -1
- package/dist/cjs/index-7f14e490.js +4 -0
- package/dist/cjs/{index-9681c9e0.js → index-c2c6aef0.js} +1 -1
- package/dist/cjs/{index-5cceed71.js → index-d2d74509.js} +2 -2
- package/dist/cjs/{index-c1f090d2.js → index-f3cf88e7.js} +1 -1
- package/dist/cjs/{index-1a379d61.js → index-fb4fbdd4.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localForage-049a700b.js → localForage-78146d88.js} +1 -1
- package/dist/cjs/{map-helpers-f3d99adc.js → map-helpers-d473f1b7.js} +1 -1
- package/dist/cjs/{mission-locked-banner-3b0bb52f.js → mission-locked-banner-d4d8fe39.js} +1 -1
- package/dist/cjs/{missions-helpers-d5a4c3a7.js → missions-helpers-0bead9e6.js} +1 -1
- package/dist/cjs/{modal-animations-c73f7b41.js → modal-animations-f5dab814.js} +1 -1
- package/dist/cjs/{operation-helpers-f7ad160c.js → operation-helpers-d9ca3601.js} +1 -1
- package/dist/cjs/{overlays-846c3462.js → overlays-485c801e.js} +1 -1
- package/dist/cjs/{swiper-8ca55d4e.js → swiper-f94d5453.js} +5 -5
- package/dist/cjs/{theme-204c636b.js → theme-d349ade3.js} +1 -1
- package/dist/cjs/{tippy.esm-2ee90571.js → tippy.esm-0726f965.js} +1 -1
- package/dist/cjs/{video-player-helpers-915f177d.js → video-player-helpers-deb331ff.js} +3 -3
- package/dist/cjs/{web-9cd44524.js → web-5dcc2f0d.js} +2 -2
- package/dist/cjs/{web-c83e49fa.js → web-833756d5.js} +2 -2
- package/dist/cjs/{web-fd378538.js → web-c9c9d362.js} +3 -3
- package/dist/cjs/yoo-about.cjs.entry.js +2 -2
- package/dist/cjs/yoo-accordion.cjs.entry.js +3 -3
- package/dist/cjs/yoo-action-sheet-controller.cjs.entry.js +3 -3
- package/dist/cjs/yoo-action-sheet.cjs.entry.js +5 -5
- package/dist/cjs/yoo-ag-grid.cjs.entry.js +1693 -1263
- package/dist/cjs/yoo-alert.cjs.entry.js +5 -5
- package/dist/cjs/yoo-amap.cjs.entry.js +4 -4
- package/dist/cjs/yoo-announcement-heading.cjs.entry.js +5 -5
- package/dist/cjs/yoo-app.cjs.entry.js +2 -2
- package/dist/cjs/yoo-audio-player.cjs.entry.js +3 -3
- package/dist/cjs/yoo-audio-recorder-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-avatar.cjs.entry.js +2 -2
- package/dist/cjs/yoo-avatars.cjs.entry.js +2 -2
- package/dist/cjs/yoo-background-blur.cjs.entry.js +3 -3
- package/dist/cjs/yoo-background.cjs.entry.js +3 -3
- package/dist/cjs/yoo-banner.cjs.entry.js +3 -3
- package/dist/cjs/yoo-barcode-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-battle-count-down.cjs.entry.js +3 -3
- package/dist/cjs/yoo-battle-result.cjs.entry.js +2 -2
- package/dist/cjs/yoo-battle-user-stats.cjs.entry.js +3 -3
- package/dist/cjs/yoo-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/yoo-button.cjs.entry.js +3 -3
- package/dist/cjs/yoo-calendar.cjs.entry.js +2 -2
- package/dist/cjs/yoo-camera-preview-dialog.cjs.entry.js +5 -5
- package/dist/cjs/yoo-campaign-editor-recap.cjs.entry.js +2 -2
- package/dist/cjs/yoo-campaign-heading.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-battle-result.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-battle.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-calendar.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-campaign.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-cell.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-chat.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-course-row-compact.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-course-row.cjs.entry.js +4 -4
- package/dist/cjs/yoo-card-course.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-feed-row.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-feed.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-file.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-image.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-inbox.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-incentive-rank.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-incentive.cjs.entry.js +4 -4
- package/dist/cjs/yoo-card-kanban.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-lesson.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-list-collapsible.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-list-color.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-list-simple.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-list.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-location.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-media.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-menu.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-notification.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-plan.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-progress.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-recommendation.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-sticky.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-video.cjs.entry.js +2 -2
- package/dist/cjs/yoo-chart.cjs.entry.js +2 -2
- package/dist/cjs/yoo-chat-message-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-chat-message-preview.cjs.entry.js +2 -2
- package/dist/cjs/yoo-chat-message.cjs.entry.js +5 -5
- package/dist/cjs/yoo-chat.cjs.entry.js +6 -5
- package/dist/cjs/yoo-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/yoo-color-selector.cjs.entry.js +2 -2
- package/dist/cjs/yoo-community-detail.cjs.entry.js +3 -3
- package/dist/cjs/yoo-context-menu-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-context-menu.cjs.entry.js +3 -3
- package/dist/cjs/yoo-copyright.cjs.entry.js +2 -2
- package/dist/cjs/yoo-count-down.cjs.entry.js +3 -3
- package/dist/cjs/yoo-course-detail.cjs.entry.js +3 -3
- package/dist/cjs/yoo-course-info-card.cjs.entry.js +2 -2
- package/dist/cjs/yoo-course-summary.cjs.entry.js +3 -3
- package/dist/cjs/yoo-dashboard-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-date.cjs.entry.js +2 -2
- package/dist/cjs/yoo-detail-bar.cjs.entry.js +3 -3
- package/dist/cjs/yoo-device-list.cjs.entry.js +2 -2
- package/dist/cjs/yoo-device.cjs.entry.js +2 -2
- package/dist/cjs/yoo-draw-flow.cjs.entry.js +2 -2
- package/dist/cjs/yoo-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/yoo-entity-query-builder.cjs.entry.js +3 -3
- package/dist/cjs/yoo-entity-search-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-entity-search-filters.cjs.entry.js +4 -4
- package/dist/cjs/yoo-entity-search-recent.cjs.entry.js +2 -2
- package/dist/cjs/yoo-entity-search-sorts.cjs.entry.js +3 -3
- package/dist/cjs/yoo-entity-search-tags.cjs.entry.js +3 -3
- package/dist/cjs/yoo-entity-search.cjs.entry.js +3 -3
- package/dist/cjs/yoo-entity.cjs.entry.js +8 -8
- package/dist/cjs/yoo-feed-detail.cjs.entry.js +3 -3
- package/dist/cjs/yoo-flag.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-audience.cjs.entry.js +6 -6
- package/dist/cjs/yoo-form-autocomplete-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-autocomplete.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-barcode-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-barcode.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-calendar-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-capture-map-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-capture-tag-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-capture-view-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-capture-webcam-dialog.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-capture.cjs.entry.js +6 -6
- package/dist/cjs/yoo-form-carousel.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-catalog-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-catalog.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-categorize-words.cjs.entry.js +6 -6
- package/dist/cjs/yoo-form-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-checklist.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-choice.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-color-field.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-conditions.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-connect.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-creator-block-simple.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-condition-block.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-field-selector.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-header.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-live-preview.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-overlay.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-page-card-list.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-page-card.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-score-expandable.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-scoring-card-list.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-scoring-card.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-scoring-quick-setup.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-translate.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-workflow-side-selection.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-creator-workflow-step.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator.cjs.entry.js +6 -6
- package/dist/cjs/yoo-form-date-time.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-daterange.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-document-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-document.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-dynamic-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +9 -8
- package/dist/cjs/yoo-form-emailreport.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-entity-value-pairs.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-explanation.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-feed-preview.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-feedback.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-filter-date.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-filter-number.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-filter-text.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-filter.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-footer.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-formula.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-hotzones-creator.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-hotzones.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-iframe-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-image-collection.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-image-tagging-creator.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +8 -8
- package/dist/cjs/yoo-form-incentive-participants.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-incentive-targets.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-input-comments.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-input-container.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-input.cjs.entry.js +17 -14
- package/dist/cjs/yoo-form-json.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-location.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-missing-word.cjs.entry.js +12 -17
- package/dist/cjs/yoo-form-missionfield.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-multi-input.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-number-picker-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-number-picker.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-opening-hours.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-permissions.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-phone-number.cjs.entry.js +511 -515
- package/dist/cjs/yoo-form-plan-assign.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-plan.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-pricecheck.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-product-batch.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-products-sales.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-qrcode.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-query-builder.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-range.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-ranking.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-recap-step.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-recurrence-delay.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-recurrence-preview.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-recurrence.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-reorder.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-scorm.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-shopping.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-signature-pad-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-signature-pad.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-sorts.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-star-rating.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-stripe-card.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +13 -15
- package/dist/cjs/yoo-form-table.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-task.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-text-area.cjs.entry.js +11 -6
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +6 -6
- package/dist/cjs/yoo-form-time.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-timeslots.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-todo-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-todo-list-dialog.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-todo-list-task.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-todo-list.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-todo-single.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-todo.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-toggle.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-uploader.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-videoplayer.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-wiki.cjs.entry.js +4 -4
- package/dist/cjs/yoo-grid-calendar.cjs.entry.js +6 -6
- package/dist/cjs/yoo-grid.cjs.entry.js +14 -14
- package/dist/cjs/yoo-gridstack.cjs.entry.js +3 -3
- package/dist/cjs/yoo-header.cjs.entry.js +3 -3
- package/dist/cjs/yoo-healthscore-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-healthscore.cjs.entry.js +2 -2
- package/dist/cjs/yoo-image-cropper-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-img.cjs.entry.js +4 -4
- package/dist/cjs/yoo-incentive-detail.cjs.entry.js +4 -4
- package/dist/cjs/yoo-input-bar.cjs.entry.js +16 -12
- package/dist/cjs/yoo-ion-alert-controller.cjs.entry.js +3 -3
- package/dist/cjs/yoo-ion-content.cjs.entry.js +2 -2
- package/dist/cjs/yoo-ion-footer.cjs.entry.js +3 -3
- package/dist/cjs/yoo-ion-infinite-scroll-content.cjs.entry.js +2 -2
- package/dist/cjs/yoo-ion-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/yoo-ion-item-divider.cjs.entry.js +4 -4
- package/dist/cjs/yoo-ion-item-options.cjs.entry.js +3 -3
- package/dist/cjs/yoo-ion-item-sliding.cjs.entry.js +5 -5
- package/dist/cjs/yoo-ion-item.cjs.entry.js +4 -4
- package/dist/cjs/yoo-ion-list.cjs.entry.js +3 -3
- package/dist/cjs/yoo-ion-modal-controller.cjs.entry.js +3 -3
- package/dist/cjs/yoo-ion-modal.cjs.entry.js +6 -6
- package/dist/cjs/yoo-ion-refresher.cjs.entry.js +4 -4
- package/dist/cjs/yoo-ion-scroll.cjs.entry.js +3 -3
- package/dist/cjs/yoo-ion-slide.cjs.entry.js +3 -3
- package/dist/cjs/{yoo-ion-slides-02aafaaa.js → yoo-ion-slides-f912fb0a.js} +4 -4
- package/dist/cjs/yoo-ion-slides.cjs.entry.js +5 -5
- package/dist/cjs/yoo-ion-toast-controller.cjs.entry.js +3 -3
- package/dist/cjs/yoo-kanban.cjs.entry.js +3 -3
- package/dist/cjs/yoo-kpi-card.cjs.entry.js +2 -2
- package/dist/cjs/yoo-kpi-container.cjs.entry.js +3 -3
- package/dist/cjs/yoo-kpi-external.cjs.entry.js +3 -3
- package/dist/cjs/yoo-kpi.cjs.entry.js +2 -2
- package/dist/cjs/yoo-layout-sections.cjs.entry.js +2 -2
- package/dist/cjs/yoo-layout-tabs.cjs.entry.js +2 -2
- package/dist/cjs/yoo-layout-two-columns.cjs.entry.js +2 -2
- package/dist/cjs/yoo-lesson-detail-card.cjs.entry.js +2 -2
- package/dist/cjs/yoo-lesson-detail.cjs.entry.js +3 -3
- package/dist/cjs/yoo-lesson-heading.cjs.entry.js +3 -3
- package/dist/cjs/yoo-lesson-highscores.cjs.entry.js +2 -2
- package/dist/cjs/yoo-lesson-question-result.cjs.entry.js +2 -2
- package/dist/cjs/yoo-line-state.cjs.entry.js +1 -1
- package/dist/cjs/yoo-links-menu.cjs.entry.js +2 -2
- package/dist/cjs/yoo-links-preview.cjs.entry.js +4 -4
- package/dist/cjs/yoo-loader.cjs.entry.js +2 -2
- package/dist/cjs/yoo-location-info.cjs.entry.js +2 -2
- package/dist/cjs/yoo-location-map.cjs.entry.js +3 -3
- package/dist/cjs/yoo-login.cjs.entry.js +3 -3
- package/dist/cjs/yoo-lottie.cjs.entry.js +2 -2
- package/dist/cjs/yoo-map-gl.cjs.entry.js +3 -3
- package/dist/cjs/yoo-map-js.cjs.entry.js +4 -4
- package/dist/cjs/yoo-map-legend.cjs.entry.js +4 -4
- package/dist/cjs/yoo-map.cjs.entry.js +3 -3
- package/dist/cjs/yoo-markdown.cjs.entry.js +4 -4
- package/dist/cjs/yoo-memo-list-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-memo-list.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mention-tag.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-details.cjs.entry.js +4 -4
- package/dist/cjs/yoo-mission-heading.cjs.entry.js +5 -5
- package/dist/cjs/yoo-mission-score.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-todo.cjs.entry.js +3 -3
- package/dist/cjs/yoo-mobile-tabbar-more.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mobile-tabbar.cjs.entry.js +3 -3
- package/dist/cjs/yoo-modal.cjs.entry.js +3 -3
- package/dist/cjs/yoo-navbar.cjs.entry.js +3 -3
- package/dist/cjs/yoo-numbers-display.cjs.entry.js +3 -3
- package/dist/cjs/yoo-photo-editor.cjs.entry.js +8 -8
- package/dist/cjs/yoo-pivot-table.cjs.entry.js +6 -6
- package/dist/cjs/yoo-podium.cjs.entry.js +2 -2
- package/dist/cjs/yoo-profile-list.cjs.entry.js +2 -2
- package/dist/cjs/yoo-profile-summary.cjs.entry.js +3 -3
- package/dist/cjs/yoo-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/yoo-progress-loader.cjs.entry.js +2 -2
- package/dist/cjs/yoo-progress-recap.cjs.entry.js +2 -2
- package/dist/cjs/yoo-property-card.cjs.entry.js +3 -3
- package/dist/cjs/yoo-range.cjs.entry.js +5 -5
- package/dist/cjs/yoo-rating.cjs.entry.js +2 -2
- package/dist/cjs/yoo-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/yoo-result-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-reveal.cjs.entry.js +2 -2
- package/dist/cjs/yoo-salesai-formula.cjs.entry.js +2 -2
- package/dist/cjs/yoo-scandit.cjs.entry.js +3 -3
- package/dist/cjs/yoo-scratch-card-creator.cjs.entry.js +2 -2
- package/dist/cjs/yoo-scratch-card.cjs.entry.js +4 -4
- package/dist/cjs/yoo-section-list.cjs.entry.js +2 -2
- package/dist/cjs/yoo-segmented-control.cjs.entry.js +72 -0
- package/dist/cjs/yoo-side-menu-tree.cjs.entry.js +2 -2
- package/dist/cjs/yoo-side-menu.cjs.entry.js +2 -2
- package/dist/cjs/yoo-slides-media.cjs.entry.js +5 -5
- package/dist/cjs/yoo-start-meeting-popup.cjs.entry.js +3 -3
- package/dist/cjs/yoo-tabs.cjs.entry.js +3 -3
- package/dist/cjs/yoo-tappable.cjs.entry.js +3 -3
- package/dist/cjs/yoo-text-sequence.cjs.entry.js +5 -5
- package/dist/cjs/yoo-text.cjs.entry.js +3 -3
- package/dist/cjs/yoo-toast.cjs.entry.js +4 -4
- package/dist/cjs/yoo-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/yoo-truncate.cjs.entry.js +3 -3
- package/dist/cjs/yoo-truncated-line.cjs.entry.js +2 -2
- package/dist/cjs/yoo-user-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-user-profile.cjs.entry.js +4 -4
- package/dist/cjs/yoo-user-wizard.cjs.entry.js +3 -3
- package/dist/cjs/yoo-videoplayer-core.cjs.entry.js +3 -3
- package/dist/cjs/yoo-videoplayer-dailymotion.cjs.entry.js +4 -4
- package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +5 -5
- package/dist/cjs/yoo-videoplayer-vimeo.cjs.entry.js +4 -4
- package/dist/cjs/yoo-videoplayer-youtube.cjs.entry.js +4 -4
- package/dist/cjs/yoo-virtual-item.cjs.entry.js +2 -2
- package/dist/cjs/yoo-virtual-scroll.cjs.entry.js +3 -3
- package/dist/cjs/yoo-waitlist-location-result.cjs.entry.js +2 -2
- package/dist/cjs/yoo-waitlist-location-start.cjs.entry.js +2 -2
- package/dist/cjs/yoo-walkthrough.cjs.entry.js +2 -2
- package/dist/cjs/yoo-web-menu.cjs.entry.js +3 -3
- package/dist/cjs/yoo-webcam.cjs.entry.js +2 -2
- package/dist/cjs/yoo-welcome-banner.cjs.entry.js +3 -3
- package/dist/cjs/yoo-widget-chart.cjs.entry.js +2 -2
- package/dist/cjs/yoo-widget-small-size.cjs.entry.js +2 -2
- package/dist/cjs/yoo-widget-tab.cjs.entry.js +2 -2
- package/dist/cjs/yoo-widget-tile.cjs.entry.js +2 -2
- package/dist/cjs/yoo-workflow-state-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-workflow-state.cjs.entry.js +2 -2
- package/dist/cjs/yoo-workflow.cjs.entry.js +5 -5
- package/dist/cjs/yoo-zebra.cjs.entry.js +2 -2
- package/dist/cjs/yoo-zoom.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/2.molecules/{segment/segment.css → segmented-control/segmented-control.css} +23 -5
- package/dist/collection/components/2.molecules/{segment/segment.js → segmented-control/segmented-control.js} +44 -12
- package/dist/collection/components/3.organisms/input-bar/input-bar.js +9 -5
- package/dist/collection/components/form/form-audience/form-audience.css +2 -2
- package/dist/collection/components/form/form-audience/form-audience.js +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +4 -3
- package/dist/collection/components/form/form-input/form-input.js +28 -7
- package/dist/collection/components/form/form-missing-word/form-missing-word.js +6 -11
- package/dist/collection/components/form/form-permissions/form-permissions.js +1 -1
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +8 -10
- package/dist/collection/components/form/form-text-area/form-text-area.js +22 -1
- package/dist/collection/components/grid/ag-grid/ag-grid.js +0 -1
- package/dist/collection/components/grid/grid/grid.js +3 -3
- package/dist/collection/components/grid/grid-calendar/grid-calendar.js +1 -1
- package/dist/collection/feature-communicate/chat/chat/chat.js +2 -1
- package/dist/collection/utils/helpers/draggable-tags-helpers.js +1 -1
- package/dist/design-system/{camera-helpers-cba07d73.js → camera-helpers-405265b3.js} +2 -2
- package/dist/design-system/{chat-helpers-f6246d60.js → chat-helpers-4694dc43.js} +1 -1
- package/dist/{esm/common-helpers-a2613dd7.js → design-system/common-helpers-3fdc5d49.js} +1 -1
- package/dist/design-system/design-system.css +18 -11
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/{esm/draggable-dots-helpers-86678d5a.js → design-system/draggable-dots-helpers-aac6aff6.js} +1 -1
- package/dist/{esm/draggable-tags-helpers-27844807.js → design-system/draggable-tags-helpers-006991b8.js} +2 -2
- package/dist/design-system/{entities-helpers-79d32798.js → entities-helpers-43a1594d.js} +2 -2
- package/dist/{esm/filters-helpers-f45cc903.js → design-system/filters-helpers-e4e45df1.js} +2 -2
- package/dist/design-system/{form-helpers-ff5bd4b2.js → form-helpers-47ea845b.js} +2 -2
- package/dist/{esm/form-input-helpers-93ddc234.js → design-system/form-input-helpers-197b3f44.js} +3 -3
- package/dist/{esm/form-text-area-helpers-c81622ec.js → design-system/form-text-area-helpers-67376adf.js} +1 -1
- package/dist/{esm/grid-renderers-0c8cc19b.js → design-system/grid-renderers-169cdf8f.js} +5 -5
- package/dist/{esm/incentive-helpers-abe7cc00.js → design-system/incentive-helpers-0b25833e.js} +2 -2
- package/dist/{esm/index-a5414a59.js → design-system/index-19465d67.js} +1 -1
- package/dist/{esm/index-823cd4f6.js → design-system/index-360c9c18.js} +2 -2
- package/dist/{esm/index-f51177fb.js → design-system/index-368e748a.js} +1 -1
- package/dist/design-system/{index-2c7be4dc.js → index-3cdd9c9b.js} +1 -1
- package/dist/design-system/{index-0b91e49f.js → index-8638d268.js} +2 -2
- package/dist/design-system/{index-0ca062eb.js → index-b72de038.js} +5 -5
- package/dist/{esm/index-92eaf1e4.js → design-system/index-ce37391e.js} +2 -2
- package/dist/design-system/index-d1f0523a.js +1 -0
- package/dist/{esm/index-93c86f26.js → design-system/index-e36bdc70.js} +1 -1
- package/dist/{esm/localForage-d380835e.js → design-system/localForage-9020da7a.js} +1 -1
- package/dist/{esm/map-helpers-a6ac0b2e.js → design-system/map-helpers-12643cfc.js} +1 -1
- package/dist/design-system/{mission-locked-banner-22c164c7.js → mission-locked-banner-0cee93dc.js} +1 -1
- package/dist/{esm/missions-helpers-2fa5b68c.js → design-system/missions-helpers-6fed77d5.js} +1 -1
- package/dist/design-system/{modal-animations-f83c4360.js → modal-animations-33c159b9.js} +1 -1
- package/dist/design-system/{operation-helpers-b2e1fa1e.js → operation-helpers-78fbecb7.js} +1 -1
- package/dist/{esm/overlays-1e832b90.js → design-system/overlays-640a5d3a.js} +1 -1
- package/dist/design-system/swiper-a561c9bc.js +11 -0
- package/dist/{esm/theme-816d1799.js → design-system/theme-55598168.js} +1 -1
- package/dist/design-system/{tippy.esm-bc98eb52.js → tippy.esm-deaaea19.js} +1 -1
- package/dist/{esm/video-player-helpers-1d9a11bd.js → design-system/video-player-helpers-8b1f5741.js} +3 -3
- package/dist/{esm/web-9eb0f25c.js → design-system/web-14da5269.js} +3 -3
- package/dist/{esm/web-c394a805.js → design-system/web-c67322e2.js} +2 -2
- package/dist/design-system/{web-a6788e48.js → web-cd985502.js} +2 -2
- package/dist/design-system/yoo-about.entry.js +2 -2
- package/dist/design-system/yoo-accordion.entry.js +3 -3
- package/dist/design-system/yoo-action-sheet-controller.entry.js +3 -3
- package/dist/design-system/yoo-action-sheet.entry.js +5 -5
- package/dist/design-system/yoo-ag-grid.entry.js +1693 -1263
- package/dist/design-system/yoo-alert.entry.js +5 -5
- package/dist/design-system/yoo-amap.entry.js +4 -4
- package/dist/design-system/yoo-announcement-heading.entry.js +5 -5
- package/dist/design-system/yoo-app.entry.js +2 -2
- package/dist/design-system/yoo-audio-player.entry.js +3 -3
- package/dist/design-system/yoo-audio-recorder-dialog.entry.js +3 -3
- package/dist/design-system/yoo-avatar.entry.js +2 -2
- package/dist/design-system/yoo-avatars.entry.js +2 -2
- package/dist/design-system/yoo-background-blur.entry.js +3 -3
- package/dist/design-system/yoo-background.entry.js +3 -3
- package/dist/design-system/yoo-banner.entry.js +3 -3
- package/dist/design-system/yoo-barcode-dialog.entry.js +2 -2
- package/dist/design-system/yoo-battle-count-down.entry.js +3 -3
- package/dist/design-system/yoo-battle-result.entry.js +2 -2
- package/dist/design-system/yoo-battle-user-stats.entry.js +3 -3
- package/dist/design-system/yoo-breadcrumbs.entry.js +2 -2
- package/dist/design-system/yoo-button.entry.js +3 -3
- package/dist/design-system/yoo-calendar.entry.js +2 -2
- package/dist/design-system/yoo-camera-preview-dialog.entry.js +5 -5
- package/dist/design-system/yoo-campaign-editor-recap.entry.js +2 -2
- package/dist/design-system/yoo-campaign-heading.entry.js +3 -3
- package/dist/design-system/yoo-card-battle-result.entry.js +2 -2
- package/dist/design-system/yoo-card-battle.entry.js +2 -2
- package/dist/design-system/yoo-card-calendar.entry.js +3 -3
- package/dist/design-system/yoo-card-campaign.entry.js +3 -3
- package/dist/design-system/yoo-card-cell.entry.js +3 -3
- package/dist/design-system/yoo-card-chat.entry.js +2 -2
- package/dist/design-system/yoo-card-course-row-compact.entry.js +2 -2
- package/dist/design-system/yoo-card-course-row.entry.js +4 -4
- package/dist/design-system/yoo-card-course.entry.js +2 -2
- package/dist/design-system/yoo-card-feed-row.entry.js +2 -2
- package/dist/design-system/yoo-card-feed.entry.js +3 -3
- package/dist/design-system/yoo-card-file.entry.js +2 -2
- package/dist/design-system/yoo-card-image.entry.js +2 -2
- package/dist/design-system/yoo-card-inbox.entry.js +2 -2
- package/dist/design-system/yoo-card-incentive-rank.entry.js +2 -2
- package/dist/design-system/yoo-card-incentive.entry.js +4 -4
- package/dist/design-system/yoo-card-kanban.entry.js +3 -3
- package/dist/design-system/yoo-card-lesson.entry.js +3 -3
- package/dist/design-system/yoo-card-list-collapsible.entry.js +3 -3
- package/dist/design-system/yoo-card-list-color.entry.js +2 -2
- package/dist/design-system/yoo-card-list-simple.entry.js +3 -3
- package/dist/design-system/yoo-card-list.entry.js +3 -3
- package/dist/design-system/yoo-card-location.entry.js +2 -2
- package/dist/design-system/yoo-card-media.entry.js +3 -3
- package/dist/design-system/yoo-card-menu.entry.js +3 -3
- package/dist/design-system/yoo-card-notification.entry.js +2 -2
- package/dist/design-system/yoo-card-plan.entry.js +3 -3
- package/dist/design-system/yoo-card-progress.entry.js +2 -2
- package/dist/design-system/yoo-card-recommendation.entry.js +3 -3
- package/dist/design-system/yoo-card-sticky.entry.js +3 -3
- package/dist/design-system/yoo-card-video.entry.js +2 -2
- package/dist/design-system/yoo-chart.entry.js +2 -2
- package/dist/design-system/yoo-chat-message-dialog.entry.js +3 -3
- package/dist/design-system/yoo-chat-message-preview.entry.js +2 -2
- package/dist/design-system/yoo-chat-message.entry.js +5 -5
- package/dist/design-system/yoo-chat.entry.js +6 -5
- package/dist/design-system/yoo-collapsible.entry.js +2 -2
- package/dist/design-system/yoo-color-selector.entry.js +2 -2
- package/dist/design-system/yoo-community-detail.entry.js +3 -3
- package/dist/design-system/yoo-context-menu-dialog.entry.js +3 -3
- package/dist/design-system/yoo-context-menu.entry.js +3 -3
- package/dist/design-system/yoo-copyright.entry.js +2 -2
- package/dist/design-system/yoo-count-down.entry.js +3 -3
- package/dist/design-system/yoo-course-detail.entry.js +3 -3
- package/dist/design-system/yoo-course-info-card.entry.js +2 -2
- package/dist/design-system/yoo-course-summary.entry.js +3 -3
- package/dist/design-system/yoo-dashboard-detail.entry.js +2 -2
- package/dist/design-system/yoo-date.entry.js +2 -2
- package/dist/design-system/yoo-detail-bar.entry.js +3 -3
- package/dist/design-system/yoo-device-list.entry.js +2 -2
- package/dist/design-system/yoo-device.entry.js +2 -2
- package/dist/design-system/yoo-draw-flow.entry.js +2 -2
- package/dist/design-system/yoo-empty-state.entry.js +2 -2
- package/dist/design-system/yoo-entity-query-builder.entry.js +3 -3
- package/dist/design-system/yoo-entity-search-dialog.entry.js +3 -3
- package/dist/design-system/yoo-entity-search-filters.entry.js +4 -4
- package/dist/design-system/yoo-entity-search-recent.entry.js +2 -2
- package/dist/design-system/yoo-entity-search-sorts.entry.js +3 -3
- package/dist/design-system/yoo-entity-search-tags.entry.js +3 -3
- package/dist/design-system/yoo-entity-search.entry.js +3 -3
- package/dist/design-system/yoo-entity.entry.js +8 -8
- package/dist/design-system/yoo-feed-detail.entry.js +3 -3
- package/dist/design-system/yoo-flag.entry.js +2 -2
- package/dist/design-system/yoo-form-audience.entry.js +6 -6
- package/dist/design-system/yoo-form-autocomplete-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-autocomplete.entry.js +4 -4
- package/dist/design-system/yoo-form-barcode-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-barcode.entry.js +4 -4
- package/dist/design-system/yoo-form-calendar-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-capture-map-dialog.entry.js +2 -2
- package/dist/design-system/yoo-form-capture-tag-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-capture-view-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-capture-webcam-dialog.entry.js +4 -4
- package/dist/design-system/yoo-form-capture.entry.js +6 -6
- package/dist/design-system/yoo-form-carousel.entry.js +3 -3
- package/dist/design-system/yoo-form-catalog-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-catalog.entry.js +4 -4
- package/dist/design-system/yoo-form-categorize-words.entry.js +6 -6
- package/dist/design-system/yoo-form-checkbox.entry.js +4 -4
- package/dist/design-system/yoo-form-checklist.entry.js +4 -4
- package/dist/design-system/yoo-form-choice.entry.js +5 -5
- package/dist/design-system/yoo-form-color-field.entry.js +4 -4
- package/dist/design-system/yoo-form-color-picker.entry.js +2 -2
- package/dist/design-system/yoo-form-conditions.entry.js +2 -2
- package/dist/design-system/yoo-form-connect.entry.js +5 -5
- package/dist/design-system/yoo-form-creator-block-expandable.entry.js +4 -4
- package/dist/design-system/yoo-form-creator-block-simple.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-condition-block.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-field-selector.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-header.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-live-preview.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-overlay.entry.js +2 -2
- package/dist/design-system/yoo-form-creator-page-card-list.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-page-card.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-score-expandable.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-scoring-card-list.entry.js +2 -2
- package/dist/design-system/yoo-form-creator-scoring-card.entry.js +2 -2
- package/dist/design-system/yoo-form-creator-scoring-quick-setup.entry.js +2 -2
- package/dist/design-system/yoo-form-creator-translate-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-translate.entry.js +3 -3
- package/dist/design-system/yoo-form-creator-workflow-side-selection.entry.js +4 -4
- package/dist/design-system/yoo-form-creator-workflow-step.entry.js +3 -3
- package/dist/design-system/yoo-form-creator.entry.js +6 -6
- package/dist/design-system/yoo-form-date-time.entry.js +4 -4
- package/dist/design-system/yoo-form-daterange.entry.js +4 -4
- package/dist/design-system/yoo-form-document-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-document.entry.js +4 -4
- package/dist/design-system/yoo-form-dynamic-dialog.entry.js +2 -2
- package/dist/design-system/yoo-form-dynamic.entry.js +9 -8
- package/dist/design-system/yoo-form-emailreport.entry.js +4 -4
- package/dist/design-system/yoo-form-entity-value-pairs.entry.js +2 -2
- package/dist/design-system/yoo-form-explanation.entry.js +2 -2
- package/dist/design-system/yoo-form-feed-preview.entry.js +4 -4
- package/dist/design-system/yoo-form-feedback.entry.js +4 -4
- package/dist/design-system/yoo-form-filter-date.entry.js +2 -2
- package/dist/design-system/yoo-form-filter-number.entry.js +2 -2
- package/dist/design-system/yoo-form-filter-text.entry.js +2 -2
- package/dist/design-system/yoo-form-filter.entry.js +3 -3
- package/dist/design-system/yoo-form-footer.entry.js +3 -3
- package/dist/design-system/yoo-form-formula.entry.js +4 -4
- package/dist/design-system/yoo-form-hotzones-creator.entry.js +2 -2
- package/dist/design-system/yoo-form-hotzones.entry.js +5 -5
- package/dist/design-system/yoo-form-iframe-dialog.entry.js +2 -2
- package/dist/design-system/yoo-form-image-collection.entry.js +5 -5
- package/dist/design-system/yoo-form-image-tagging-creator.entry.js +5 -5
- package/dist/design-system/yoo-form-image-tagging.entry.js +8 -8
- package/dist/design-system/yoo-form-incentive-participants.entry.js +1 -1
- package/dist/design-system/yoo-form-incentive-targets.entry.js +4 -4
- package/dist/design-system/yoo-form-input-comments.entry.js +2 -2
- package/dist/design-system/yoo-form-input-container.entry.js +5 -5
- package/dist/design-system/yoo-form-input.entry.js +17 -14
- package/dist/design-system/yoo-form-json.entry.js +5 -5
- package/dist/design-system/yoo-form-location.entry.js +4 -4
- package/dist/design-system/yoo-form-missing-word.entry.js +12 -17
- package/dist/design-system/yoo-form-missionfield.entry.js +4 -4
- package/dist/design-system/yoo-form-multi-input.entry.js +4 -4
- package/dist/design-system/yoo-form-number-picker-dialog.entry.js +2 -2
- package/dist/design-system/yoo-form-number-picker.entry.js +2 -2
- package/dist/design-system/yoo-form-opening-hours.entry.js +2 -2
- package/dist/design-system/yoo-form-permissions.entry.js +4 -4
- package/dist/design-system/yoo-form-phone-number.entry.js +511 -515
- package/dist/design-system/yoo-form-plan-assign.entry.js +4 -4
- package/dist/design-system/yoo-form-plan.entry.js +4 -4
- package/dist/design-system/yoo-form-pricecheck.entry.js +4 -4
- package/dist/design-system/yoo-form-product-batch.entry.js +5 -5
- package/dist/design-system/yoo-form-products-sales.entry.js +4 -4
- package/dist/design-system/yoo-form-progress-indicator.entry.js +3 -3
- package/dist/design-system/yoo-form-qrcode.entry.js +4 -4
- package/dist/design-system/yoo-form-query-builder.entry.js +4 -4
- package/dist/design-system/yoo-form-range.entry.js +4 -4
- package/dist/design-system/yoo-form-ranking.entry.js +5 -5
- package/dist/design-system/yoo-form-recap-step.entry.js +2 -2
- package/dist/design-system/yoo-form-recurrence-delay.entry.js +2 -2
- package/dist/design-system/yoo-form-recurrence-preview.entry.js +2 -2
- package/dist/design-system/yoo-form-recurrence.entry.js +2 -2
- package/dist/design-system/yoo-form-reorder.entry.js +4 -4
- package/dist/design-system/yoo-form-scorm.entry.js +4 -4
- package/dist/design-system/yoo-form-shopping.entry.js +4 -4
- package/dist/design-system/yoo-form-signature-pad-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-signature-pad.entry.js +4 -4
- package/dist/design-system/yoo-form-sorts.entry.js +4 -4
- package/dist/design-system/yoo-form-star-rating.entry.js +4 -4
- package/dist/design-system/yoo-form-stripe-card.entry.js +4 -4
- package/dist/design-system/yoo-form-swipe-cards.entry.js +13 -15
- package/dist/design-system/yoo-form-table.entry.js +4 -4
- package/dist/design-system/yoo-form-task.entry.js +4 -4
- package/dist/design-system/yoo-form-text-area.entry.js +11 -6
- package/dist/design-system/yoo-form-text-editor.entry.js +6 -6
- package/dist/design-system/yoo-form-time.entry.js +4 -4
- package/dist/design-system/yoo-form-timeslots.entry.js +4 -4
- package/dist/design-system/yoo-form-todo-dialog.entry.js +3 -3
- package/dist/design-system/yoo-form-todo-list-dialog.entry.js +4 -4
- package/dist/design-system/yoo-form-todo-list-task.entry.js +4 -4
- package/dist/design-system/yoo-form-todo-list.entry.js +4 -4
- package/dist/design-system/yoo-form-todo-single.entry.js +4 -4
- package/dist/design-system/yoo-form-todo.entry.js +4 -4
- package/dist/design-system/yoo-form-toggle.entry.js +5 -5
- package/dist/design-system/yoo-form-uploader.entry.js +4 -4
- package/dist/design-system/yoo-form-videoplayer.entry.js +4 -4
- package/dist/design-system/yoo-form-wiki.entry.js +4 -4
- package/dist/design-system/yoo-grid-calendar.entry.js +6 -6
- package/dist/design-system/yoo-grid.entry.js +14 -14
- package/dist/design-system/yoo-gridstack.entry.js +3 -3
- package/dist/design-system/yoo-header.entry.js +3 -3
- package/dist/design-system/yoo-healthscore-dialog.entry.js +3 -3
- package/dist/design-system/yoo-healthscore.entry.js +2 -2
- package/dist/design-system/yoo-image-cropper-dialog.entry.js +2 -2
- package/dist/design-system/yoo-img.entry.js +4 -4
- package/dist/design-system/yoo-incentive-detail.entry.js +4 -4
- package/dist/design-system/yoo-input-bar.entry.js +16 -12
- package/dist/design-system/yoo-ion-alert-controller.entry.js +3 -3
- package/dist/design-system/yoo-ion-content.entry.js +2 -2
- package/dist/design-system/yoo-ion-footer.entry.js +3 -3
- package/dist/design-system/yoo-ion-infinite-scroll-content.entry.js +2 -2
- package/dist/design-system/yoo-ion-infinite-scroll.entry.js +2 -2
- package/dist/design-system/yoo-ion-item-divider.entry.js +4 -4
- package/dist/design-system/yoo-ion-item-options.entry.js +3 -3
- package/dist/design-system/yoo-ion-item-sliding.entry.js +5 -5
- package/dist/design-system/yoo-ion-item.entry.js +4 -4
- package/dist/design-system/yoo-ion-list.entry.js +3 -3
- package/dist/design-system/yoo-ion-modal-controller.entry.js +3 -3
- package/dist/design-system/yoo-ion-modal.entry.js +6 -6
- package/dist/design-system/yoo-ion-refresher.entry.js +4 -4
- package/dist/design-system/yoo-ion-scroll.entry.js +3 -3
- package/dist/design-system/yoo-ion-slide.entry.js +3 -3
- package/dist/design-system/{yoo-ion-slides-5a6b884b.js → yoo-ion-slides-cb76d0c3.js} +4 -4
- package/dist/design-system/yoo-ion-slides.entry.js +5 -5
- package/dist/design-system/yoo-ion-toast-controller.entry.js +3 -3
- package/dist/design-system/yoo-kanban.entry.js +3 -3
- package/dist/design-system/yoo-kpi-card.entry.js +2 -2
- package/dist/design-system/yoo-kpi-container.entry.js +3 -3
- package/dist/design-system/yoo-kpi-external.entry.js +3 -3
- package/dist/design-system/yoo-kpi.entry.js +2 -2
- package/dist/design-system/yoo-layout-sections.entry.js +2 -2
- package/dist/design-system/yoo-layout-tabs.entry.js +2 -2
- package/dist/design-system/yoo-layout-two-columns.entry.js +2 -2
- package/dist/design-system/yoo-lesson-detail-card.entry.js +2 -2
- package/dist/design-system/yoo-lesson-detail.entry.js +3 -3
- package/dist/design-system/yoo-lesson-heading.entry.js +3 -3
- package/dist/design-system/yoo-lesson-highscores.entry.js +2 -2
- package/dist/design-system/yoo-lesson-question-result.entry.js +2 -2
- package/dist/design-system/yoo-line-state.entry.js +1 -1
- package/dist/design-system/yoo-links-menu.entry.js +2 -2
- package/dist/design-system/yoo-links-preview.entry.js +4 -4
- package/dist/design-system/yoo-loader.entry.js +2 -2
- package/dist/design-system/yoo-location-info.entry.js +2 -2
- package/dist/design-system/yoo-location-map.entry.js +3 -3
- package/dist/design-system/yoo-login.entry.js +3 -3
- package/dist/design-system/yoo-lottie.entry.js +2 -2
- package/dist/design-system/yoo-map-gl.entry.js +3 -3
- package/dist/design-system/yoo-map-js.entry.js +4 -4
- package/dist/design-system/yoo-map-legend.entry.js +4 -4
- package/dist/design-system/yoo-map.entry.js +3 -3
- package/dist/design-system/yoo-markdown.entry.js +4 -4
- package/dist/design-system/yoo-memo-list-dialog.entry.js +2 -2
- package/dist/design-system/yoo-memo-list.entry.js +2 -2
- package/dist/design-system/yoo-mention-tag.entry.js +2 -2
- package/dist/design-system/yoo-mission-details.entry.js +4 -4
- package/dist/design-system/yoo-mission-heading.entry.js +5 -5
- package/dist/design-system/yoo-mission-score.entry.js +2 -2
- package/dist/design-system/yoo-mission-todo.entry.js +3 -3
- package/dist/design-system/yoo-mobile-tabbar-more.entry.js +2 -2
- package/dist/design-system/yoo-mobile-tabbar.entry.js +3 -3
- package/dist/design-system/yoo-modal.entry.js +3 -3
- package/dist/design-system/yoo-navbar.entry.js +3 -3
- package/dist/design-system/yoo-numbers-display.entry.js +3 -3
- package/dist/design-system/yoo-photo-editor.entry.js +8 -8
- package/dist/design-system/yoo-pivot-table.entry.js +6 -6
- package/dist/design-system/yoo-podium.entry.js +2 -2
- package/dist/design-system/yoo-profile-list.entry.js +2 -2
- package/dist/design-system/yoo-profile-summary.entry.js +3 -3
- package/dist/design-system/yoo-progress-bar.entry.js +2 -2
- package/dist/design-system/yoo-progress-loader.entry.js +2 -2
- package/dist/design-system/yoo-progress-recap.entry.js +2 -2
- package/dist/design-system/yoo-property-card.entry.js +3 -3
- package/dist/design-system/yoo-range.entry.js +5 -5
- package/dist/design-system/yoo-rating.entry.js +2 -2
- package/dist/design-system/yoo-reset-password.entry.js +2 -2
- package/dist/design-system/yoo-result-dialog.entry.js +3 -3
- package/dist/design-system/yoo-reveal.entry.js +2 -2
- package/dist/design-system/yoo-salesai-formula.entry.js +2 -2
- package/dist/design-system/yoo-scandit.entry.js +3 -3
- package/dist/design-system/yoo-scratch-card-creator.entry.js +2 -2
- package/dist/design-system/yoo-scratch-card.entry.js +4 -4
- package/dist/design-system/yoo-section-list.entry.js +2 -2
- package/dist/design-system/yoo-segmented-control.entry.js +68 -0
- package/dist/design-system/yoo-side-menu-tree.entry.js +2 -2
- package/dist/design-system/yoo-side-menu.entry.js +2 -2
- package/dist/design-system/yoo-slides-media.entry.js +5 -5
- package/dist/design-system/yoo-start-meeting-popup.entry.js +3 -3
- package/dist/design-system/yoo-tabs.entry.js +3 -3
- package/dist/design-system/yoo-tappable.entry.js +3 -3
- package/dist/design-system/yoo-text-sequence.entry.js +5 -5
- package/dist/design-system/yoo-text.entry.js +3 -3
- package/dist/design-system/yoo-toast.entry.js +4 -4
- package/dist/design-system/yoo-tooltip.entry.js +5 -5
- package/dist/design-system/yoo-truncate.entry.js +3 -3
- package/dist/design-system/yoo-truncated-line.entry.js +2 -2
- package/dist/design-system/yoo-user-detail.entry.js +2 -2
- package/dist/design-system/yoo-user-profile.entry.js +4 -4
- package/dist/design-system/yoo-user-wizard.entry.js +3 -3
- package/dist/design-system/yoo-videoplayer-core.entry.js +3 -3
- package/dist/design-system/yoo-videoplayer-dailymotion.entry.js +4 -4
- package/dist/design-system/yoo-videoplayer-videojs.entry.js +5 -5
- package/dist/design-system/yoo-videoplayer-vimeo.entry.js +4 -4
- package/dist/design-system/yoo-videoplayer-youtube.entry.js +4 -4
- package/dist/design-system/yoo-virtual-item.entry.js +2 -2
- package/dist/design-system/yoo-virtual-scroll.entry.js +3 -3
- package/dist/design-system/yoo-waitlist-location-result.entry.js +2 -2
- package/dist/design-system/yoo-waitlist-location-start.entry.js +2 -2
- package/dist/design-system/yoo-walkthrough.entry.js +2 -2
- package/dist/design-system/yoo-web-menu.entry.js +3 -3
- package/dist/design-system/yoo-webcam.entry.js +2 -2
- package/dist/design-system/yoo-welcome-banner.entry.js +3 -3
- package/dist/design-system/yoo-widget-chart.entry.js +2 -2
- package/dist/design-system/yoo-widget-small-size.entry.js +2 -2
- package/dist/design-system/yoo-widget-tab.entry.js +2 -2
- package/dist/design-system/yoo-widget-tile.entry.js +2 -2
- package/dist/design-system/yoo-workflow-state-dialog.entry.js +2 -2
- package/dist/design-system/yoo-workflow-state.entry.js +2 -2
- package/dist/design-system/yoo-workflow.entry.js +5 -5
- package/dist/design-system/yoo-zebra.entry.js +2 -2
- package/dist/design-system/yoo-zoom.entry.js +2 -2
- package/dist/esm/{camera-helpers-cba07d73.js → camera-helpers-405265b3.js} +2 -2
- package/dist/esm/{chat-helpers-f6246d60.js → chat-helpers-4694dc43.js} +1 -1
- package/dist/{design-system/common-helpers-a2613dd7.js → esm/common-helpers-3fdc5d49.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/{design-system/draggable-dots-helpers-86678d5a.js → esm/draggable-dots-helpers-aac6aff6.js} +1 -1
- package/dist/{design-system/draggable-tags-helpers-27844807.js → esm/draggable-tags-helpers-006991b8.js} +2 -2
- package/dist/esm/{entities-helpers-79d32798.js → entities-helpers-43a1594d.js} +2 -2
- package/dist/{design-system/filters-helpers-f45cc903.js → esm/filters-helpers-e4e45df1.js} +2 -2
- package/dist/esm/{form-helpers-ff5bd4b2.js → form-helpers-47ea845b.js} +2 -2
- package/dist/{design-system/form-input-helpers-93ddc234.js → esm/form-input-helpers-197b3f44.js} +3 -3
- package/dist/{design-system/form-text-area-helpers-c81622ec.js → esm/form-text-area-helpers-67376adf.js} +1 -1
- package/dist/{design-system/grid-renderers-0c8cc19b.js → esm/grid-renderers-169cdf8f.js} +5 -5
- package/dist/{design-system/incentive-helpers-abe7cc00.js → esm/incentive-helpers-0b25833e.js} +2 -2
- package/dist/{design-system/index-a5414a59.js → esm/index-19465d67.js} +1 -1
- package/dist/{design-system/index-823cd4f6.js → esm/index-360c9c18.js} +2 -2
- package/dist/{design-system/index-f51177fb.js → esm/index-368e748a.js} +1 -1
- package/dist/esm/{index-2c7be4dc.js → index-3cdd9c9b.js} +1 -1
- package/dist/esm/{index-0b91e49f.js → index-8638d268.js} +2 -2
- package/dist/esm/{index-0ca062eb.js → index-b72de038.js} +5 -5
- package/dist/{design-system/index-92eaf1e4.js → esm/index-ce37391e.js} +2 -2
- package/dist/esm/index-d1f0523a.js +1 -0
- package/dist/{design-system/index-93c86f26.js → esm/index-e36bdc70.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/{design-system/localForage-d380835e.js → esm/localForage-9020da7a.js} +1 -1
- package/dist/{design-system/map-helpers-a6ac0b2e.js → esm/map-helpers-12643cfc.js} +1 -1
- package/dist/esm/{mission-locked-banner-22c164c7.js → mission-locked-banner-0cee93dc.js} +1 -1
- package/dist/{design-system/missions-helpers-2fa5b68c.js → esm/missions-helpers-6fed77d5.js} +1 -1
- package/dist/esm/{modal-animations-f83c4360.js → modal-animations-33c159b9.js} +1 -1
- package/dist/esm/{operation-helpers-b2e1fa1e.js → operation-helpers-78fbecb7.js} +1 -1
- package/dist/{design-system/overlays-1e832b90.js → esm/overlays-640a5d3a.js} +1 -1
- package/dist/esm/swiper-a561c9bc.js +11 -0
- package/dist/{design-system/theme-816d1799.js → esm/theme-55598168.js} +1 -1
- package/dist/esm/{tippy.esm-bc98eb52.js → tippy.esm-deaaea19.js} +1 -1
- package/dist/{design-system/video-player-helpers-1d9a11bd.js → esm/video-player-helpers-8b1f5741.js} +3 -3
- package/dist/{design-system/web-9eb0f25c.js → esm/web-14da5269.js} +3 -3
- package/dist/{design-system/web-c394a805.js → esm/web-c67322e2.js} +2 -2
- package/dist/esm/{web-a6788e48.js → web-cd985502.js} +2 -2
- package/dist/esm/yoo-about.entry.js +2 -2
- package/dist/esm/yoo-accordion.entry.js +3 -3
- package/dist/esm/yoo-action-sheet-controller.entry.js +3 -3
- package/dist/esm/yoo-action-sheet.entry.js +5 -5
- package/dist/esm/yoo-ag-grid.entry.js +1693 -1263
- package/dist/esm/yoo-alert.entry.js +5 -5
- package/dist/esm/yoo-amap.entry.js +4 -4
- package/dist/esm/yoo-announcement-heading.entry.js +5 -5
- package/dist/esm/yoo-app.entry.js +2 -2
- package/dist/esm/yoo-audio-player.entry.js +3 -3
- package/dist/esm/yoo-audio-recorder-dialog.entry.js +3 -3
- package/dist/esm/yoo-avatar.entry.js +2 -2
- package/dist/esm/yoo-avatars.entry.js +2 -2
- package/dist/esm/yoo-background-blur.entry.js +3 -3
- package/dist/esm/yoo-background.entry.js +3 -3
- package/dist/esm/yoo-banner.entry.js +3 -3
- package/dist/esm/yoo-barcode-dialog.entry.js +2 -2
- package/dist/esm/yoo-battle-count-down.entry.js +3 -3
- package/dist/esm/yoo-battle-result.entry.js +2 -2
- package/dist/esm/yoo-battle-user-stats.entry.js +3 -3
- package/dist/esm/yoo-breadcrumbs.entry.js +2 -2
- package/dist/esm/yoo-button.entry.js +3 -3
- package/dist/esm/yoo-calendar.entry.js +2 -2
- package/dist/esm/yoo-camera-preview-dialog.entry.js +5 -5
- package/dist/esm/yoo-campaign-editor-recap.entry.js +2 -2
- package/dist/esm/yoo-campaign-heading.entry.js +3 -3
- package/dist/esm/yoo-card-battle-result.entry.js +2 -2
- package/dist/esm/yoo-card-battle.entry.js +2 -2
- package/dist/esm/yoo-card-calendar.entry.js +3 -3
- package/dist/esm/yoo-card-campaign.entry.js +3 -3
- package/dist/esm/yoo-card-cell.entry.js +3 -3
- package/dist/esm/yoo-card-chat.entry.js +2 -2
- package/dist/esm/yoo-card-course-row-compact.entry.js +2 -2
- package/dist/esm/yoo-card-course-row.entry.js +4 -4
- package/dist/esm/yoo-card-course.entry.js +2 -2
- package/dist/esm/yoo-card-feed-row.entry.js +2 -2
- package/dist/esm/yoo-card-feed.entry.js +3 -3
- package/dist/esm/yoo-card-file.entry.js +2 -2
- package/dist/esm/yoo-card-image.entry.js +2 -2
- package/dist/esm/yoo-card-inbox.entry.js +2 -2
- package/dist/esm/yoo-card-incentive-rank.entry.js +2 -2
- package/dist/esm/yoo-card-incentive.entry.js +4 -4
- package/dist/esm/yoo-card-kanban.entry.js +3 -3
- package/dist/esm/yoo-card-lesson.entry.js +3 -3
- package/dist/esm/yoo-card-list-collapsible.entry.js +3 -3
- package/dist/esm/yoo-card-list-color.entry.js +2 -2
- package/dist/esm/yoo-card-list-simple.entry.js +3 -3
- package/dist/esm/yoo-card-list.entry.js +3 -3
- package/dist/esm/yoo-card-location.entry.js +2 -2
- package/dist/esm/yoo-card-media.entry.js +3 -3
- package/dist/esm/yoo-card-menu.entry.js +3 -3
- package/dist/esm/yoo-card-notification.entry.js +2 -2
- package/dist/esm/yoo-card-plan.entry.js +3 -3
- package/dist/esm/yoo-card-progress.entry.js +2 -2
- package/dist/esm/yoo-card-recommendation.entry.js +3 -3
- package/dist/esm/yoo-card-sticky.entry.js +3 -3
- package/dist/esm/yoo-card-video.entry.js +2 -2
- package/dist/esm/yoo-chart.entry.js +2 -2
- package/dist/esm/yoo-chat-message-dialog.entry.js +3 -3
- package/dist/esm/yoo-chat-message-preview.entry.js +2 -2
- package/dist/esm/yoo-chat-message.entry.js +5 -5
- package/dist/esm/yoo-chat.entry.js +6 -5
- package/dist/esm/yoo-collapsible.entry.js +2 -2
- package/dist/esm/yoo-color-selector.entry.js +2 -2
- package/dist/esm/yoo-community-detail.entry.js +3 -3
- package/dist/esm/yoo-context-menu-dialog.entry.js +3 -3
- package/dist/esm/yoo-context-menu.entry.js +3 -3
- package/dist/esm/yoo-copyright.entry.js +2 -2
- package/dist/esm/yoo-count-down.entry.js +3 -3
- package/dist/esm/yoo-course-detail.entry.js +3 -3
- package/dist/esm/yoo-course-info-card.entry.js +2 -2
- package/dist/esm/yoo-course-summary.entry.js +3 -3
- package/dist/esm/yoo-dashboard-detail.entry.js +2 -2
- package/dist/esm/yoo-date.entry.js +2 -2
- package/dist/esm/yoo-detail-bar.entry.js +3 -3
- package/dist/esm/yoo-device-list.entry.js +2 -2
- package/dist/esm/yoo-device.entry.js +2 -2
- package/dist/esm/yoo-draw-flow.entry.js +2 -2
- package/dist/esm/yoo-empty-state.entry.js +2 -2
- package/dist/esm/yoo-entity-query-builder.entry.js +3 -3
- package/dist/esm/yoo-entity-search-dialog.entry.js +3 -3
- package/dist/esm/yoo-entity-search-filters.entry.js +4 -4
- package/dist/esm/yoo-entity-search-recent.entry.js +2 -2
- package/dist/esm/yoo-entity-search-sorts.entry.js +3 -3
- package/dist/esm/yoo-entity-search-tags.entry.js +3 -3
- package/dist/esm/yoo-entity-search.entry.js +3 -3
- package/dist/esm/yoo-entity.entry.js +8 -8
- package/dist/esm/yoo-feed-detail.entry.js +3 -3
- package/dist/esm/yoo-flag.entry.js +2 -2
- package/dist/esm/yoo-form-audience.entry.js +6 -6
- package/dist/esm/yoo-form-autocomplete-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-autocomplete.entry.js +4 -4
- package/dist/esm/yoo-form-barcode-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-barcode.entry.js +4 -4
- package/dist/esm/yoo-form-calendar-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-capture-map-dialog.entry.js +2 -2
- package/dist/esm/yoo-form-capture-tag-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-capture-view-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-capture-webcam-dialog.entry.js +4 -4
- package/dist/esm/yoo-form-capture.entry.js +6 -6
- package/dist/esm/yoo-form-carousel.entry.js +3 -3
- package/dist/esm/yoo-form-catalog-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-catalog.entry.js +4 -4
- package/dist/esm/yoo-form-categorize-words.entry.js +6 -6
- package/dist/esm/yoo-form-checkbox.entry.js +4 -4
- package/dist/esm/yoo-form-checklist.entry.js +4 -4
- package/dist/esm/yoo-form-choice.entry.js +5 -5
- package/dist/esm/yoo-form-color-field.entry.js +4 -4
- package/dist/esm/yoo-form-color-picker.entry.js +2 -2
- package/dist/esm/yoo-form-conditions.entry.js +2 -2
- package/dist/esm/yoo-form-connect.entry.js +5 -5
- package/dist/esm/yoo-form-creator-block-expandable.entry.js +4 -4
- package/dist/esm/yoo-form-creator-block-simple.entry.js +3 -3
- package/dist/esm/yoo-form-creator-condition-block.entry.js +3 -3
- package/dist/esm/yoo-form-creator-field-selector.entry.js +3 -3
- package/dist/esm/yoo-form-creator-header.entry.js +3 -3
- package/dist/esm/yoo-form-creator-live-preview.entry.js +3 -3
- package/dist/esm/yoo-form-creator-overlay.entry.js +2 -2
- package/dist/esm/yoo-form-creator-page-card-list.entry.js +3 -3
- package/dist/esm/yoo-form-creator-page-card.entry.js +3 -3
- package/dist/esm/yoo-form-creator-score-expandable.entry.js +3 -3
- package/dist/esm/yoo-form-creator-scoring-card-list.entry.js +2 -2
- package/dist/esm/yoo-form-creator-scoring-card.entry.js +2 -2
- package/dist/esm/yoo-form-creator-scoring-quick-setup.entry.js +2 -2
- package/dist/esm/yoo-form-creator-translate-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-creator-translate.entry.js +3 -3
- package/dist/esm/yoo-form-creator-workflow-side-selection.entry.js +4 -4
- package/dist/esm/yoo-form-creator-workflow-step.entry.js +3 -3
- package/dist/esm/yoo-form-creator.entry.js +6 -6
- package/dist/esm/yoo-form-date-time.entry.js +4 -4
- package/dist/esm/yoo-form-daterange.entry.js +4 -4
- package/dist/esm/yoo-form-document-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-document.entry.js +4 -4
- package/dist/esm/yoo-form-dynamic-dialog.entry.js +2 -2
- package/dist/esm/yoo-form-dynamic.entry.js +9 -8
- package/dist/esm/yoo-form-emailreport.entry.js +4 -4
- package/dist/esm/yoo-form-entity-value-pairs.entry.js +2 -2
- package/dist/esm/yoo-form-explanation.entry.js +2 -2
- package/dist/esm/yoo-form-feed-preview.entry.js +4 -4
- package/dist/esm/yoo-form-feedback.entry.js +4 -4
- package/dist/esm/yoo-form-filter-date.entry.js +2 -2
- package/dist/esm/yoo-form-filter-number.entry.js +2 -2
- package/dist/esm/yoo-form-filter-text.entry.js +2 -2
- package/dist/esm/yoo-form-filter.entry.js +3 -3
- package/dist/esm/yoo-form-footer.entry.js +3 -3
- package/dist/esm/yoo-form-formula.entry.js +4 -4
- package/dist/esm/yoo-form-hotzones-creator.entry.js +2 -2
- package/dist/esm/yoo-form-hotzones.entry.js +5 -5
- package/dist/esm/yoo-form-iframe-dialog.entry.js +2 -2
- package/dist/esm/yoo-form-image-collection.entry.js +5 -5
- package/dist/esm/yoo-form-image-tagging-creator.entry.js +5 -5
- package/dist/esm/yoo-form-image-tagging.entry.js +8 -8
- package/dist/esm/yoo-form-incentive-participants.entry.js +1 -1
- package/dist/esm/yoo-form-incentive-targets.entry.js +4 -4
- package/dist/esm/yoo-form-input-comments.entry.js +2 -2
- package/dist/esm/yoo-form-input-container.entry.js +5 -5
- package/dist/esm/yoo-form-input.entry.js +17 -14
- package/dist/esm/yoo-form-json.entry.js +5 -5
- package/dist/esm/yoo-form-location.entry.js +4 -4
- package/dist/esm/yoo-form-missing-word.entry.js +12 -17
- package/dist/esm/yoo-form-missionfield.entry.js +4 -4
- package/dist/esm/yoo-form-multi-input.entry.js +4 -4
- package/dist/esm/yoo-form-number-picker-dialog.entry.js +2 -2
- package/dist/esm/yoo-form-number-picker.entry.js +2 -2
- package/dist/esm/yoo-form-opening-hours.entry.js +2 -2
- package/dist/esm/yoo-form-permissions.entry.js +4 -4
- package/dist/esm/yoo-form-phone-number.entry.js +511 -515
- package/dist/esm/yoo-form-plan-assign.entry.js +4 -4
- package/dist/esm/yoo-form-plan.entry.js +4 -4
- package/dist/esm/yoo-form-pricecheck.entry.js +4 -4
- package/dist/esm/yoo-form-product-batch.entry.js +5 -5
- package/dist/esm/yoo-form-products-sales.entry.js +4 -4
- package/dist/esm/yoo-form-progress-indicator.entry.js +3 -3
- package/dist/esm/yoo-form-qrcode.entry.js +4 -4
- package/dist/esm/yoo-form-query-builder.entry.js +4 -4
- package/dist/esm/yoo-form-range.entry.js +4 -4
- package/dist/esm/yoo-form-ranking.entry.js +5 -5
- package/dist/esm/yoo-form-recap-step.entry.js +2 -2
- package/dist/esm/yoo-form-recurrence-delay.entry.js +2 -2
- package/dist/esm/yoo-form-recurrence-preview.entry.js +2 -2
- package/dist/esm/yoo-form-recurrence.entry.js +2 -2
- package/dist/esm/yoo-form-reorder.entry.js +4 -4
- package/dist/esm/yoo-form-scorm.entry.js +4 -4
- package/dist/esm/yoo-form-shopping.entry.js +4 -4
- package/dist/esm/yoo-form-signature-pad-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-signature-pad.entry.js +4 -4
- package/dist/esm/yoo-form-sorts.entry.js +4 -4
- package/dist/esm/yoo-form-star-rating.entry.js +4 -4
- package/dist/esm/yoo-form-stripe-card.entry.js +4 -4
- package/dist/esm/yoo-form-swipe-cards.entry.js +13 -15
- package/dist/esm/yoo-form-table.entry.js +4 -4
- package/dist/esm/yoo-form-task.entry.js +4 -4
- package/dist/esm/yoo-form-text-area.entry.js +11 -6
- package/dist/esm/yoo-form-text-editor.entry.js +6 -6
- package/dist/esm/yoo-form-time.entry.js +4 -4
- package/dist/esm/yoo-form-timeslots.entry.js +4 -4
- package/dist/esm/yoo-form-todo-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-todo-list-dialog.entry.js +4 -4
- package/dist/esm/yoo-form-todo-list-task.entry.js +4 -4
- package/dist/esm/yoo-form-todo-list.entry.js +4 -4
- package/dist/esm/yoo-form-todo-single.entry.js +4 -4
- package/dist/esm/yoo-form-todo.entry.js +4 -4
- package/dist/esm/yoo-form-toggle.entry.js +5 -5
- package/dist/esm/yoo-form-uploader.entry.js +4 -4
- package/dist/esm/yoo-form-videoplayer.entry.js +4 -4
- package/dist/esm/yoo-form-wiki.entry.js +4 -4
- package/dist/esm/yoo-grid-calendar.entry.js +6 -6
- package/dist/esm/yoo-grid.entry.js +14 -14
- package/dist/esm/yoo-gridstack.entry.js +3 -3
- package/dist/esm/yoo-header.entry.js +3 -3
- package/dist/esm/yoo-healthscore-dialog.entry.js +3 -3
- package/dist/esm/yoo-healthscore.entry.js +2 -2
- package/dist/esm/yoo-image-cropper-dialog.entry.js +2 -2
- package/dist/esm/yoo-img.entry.js +4 -4
- package/dist/esm/yoo-incentive-detail.entry.js +4 -4
- package/dist/esm/yoo-input-bar.entry.js +16 -12
- package/dist/esm/yoo-ion-alert-controller.entry.js +3 -3
- package/dist/esm/yoo-ion-content.entry.js +2 -2
- package/dist/esm/yoo-ion-footer.entry.js +3 -3
- package/dist/esm/yoo-ion-infinite-scroll-content.entry.js +2 -2
- package/dist/esm/yoo-ion-infinite-scroll.entry.js +2 -2
- package/dist/esm/yoo-ion-item-divider.entry.js +4 -4
- package/dist/esm/yoo-ion-item-options.entry.js +3 -3
- package/dist/esm/yoo-ion-item-sliding.entry.js +5 -5
- package/dist/esm/yoo-ion-item.entry.js +4 -4
- package/dist/esm/yoo-ion-list.entry.js +3 -3
- package/dist/esm/yoo-ion-modal-controller.entry.js +3 -3
- package/dist/esm/yoo-ion-modal.entry.js +6 -6
- package/dist/esm/yoo-ion-refresher.entry.js +4 -4
- package/dist/esm/yoo-ion-scroll.entry.js +3 -3
- package/dist/esm/yoo-ion-slide.entry.js +3 -3
- package/dist/esm/{yoo-ion-slides-5a6b884b.js → yoo-ion-slides-cb76d0c3.js} +4 -4
- package/dist/esm/yoo-ion-slides.entry.js +5 -5
- package/dist/esm/yoo-ion-toast-controller.entry.js +3 -3
- package/dist/esm/yoo-kanban.entry.js +3 -3
- package/dist/esm/yoo-kpi-card.entry.js +2 -2
- package/dist/esm/yoo-kpi-container.entry.js +3 -3
- package/dist/esm/yoo-kpi-external.entry.js +3 -3
- package/dist/esm/yoo-kpi.entry.js +2 -2
- package/dist/esm/yoo-layout-sections.entry.js +2 -2
- package/dist/esm/yoo-layout-tabs.entry.js +2 -2
- package/dist/esm/yoo-layout-two-columns.entry.js +2 -2
- package/dist/esm/yoo-lesson-detail-card.entry.js +2 -2
- package/dist/esm/yoo-lesson-detail.entry.js +3 -3
- package/dist/esm/yoo-lesson-heading.entry.js +3 -3
- package/dist/esm/yoo-lesson-highscores.entry.js +2 -2
- package/dist/esm/yoo-lesson-question-result.entry.js +2 -2
- package/dist/esm/yoo-line-state.entry.js +1 -1
- package/dist/esm/yoo-links-menu.entry.js +2 -2
- package/dist/esm/yoo-links-preview.entry.js +4 -4
- package/dist/esm/yoo-loader.entry.js +2 -2
- package/dist/esm/yoo-location-info.entry.js +2 -2
- package/dist/esm/yoo-location-map.entry.js +3 -3
- package/dist/esm/yoo-login.entry.js +3 -3
- package/dist/esm/yoo-lottie.entry.js +2 -2
- package/dist/esm/yoo-map-gl.entry.js +3 -3
- package/dist/esm/yoo-map-js.entry.js +4 -4
- package/dist/esm/yoo-map-legend.entry.js +4 -4
- package/dist/esm/yoo-map.entry.js +3 -3
- package/dist/esm/yoo-markdown.entry.js +4 -4
- package/dist/esm/yoo-memo-list-dialog.entry.js +2 -2
- package/dist/esm/yoo-memo-list.entry.js +2 -2
- package/dist/esm/yoo-mention-tag.entry.js +2 -2
- package/dist/esm/yoo-mission-details.entry.js +4 -4
- package/dist/esm/yoo-mission-heading.entry.js +5 -5
- package/dist/esm/yoo-mission-score.entry.js +2 -2
- package/dist/esm/yoo-mission-todo.entry.js +3 -3
- package/dist/esm/yoo-mobile-tabbar-more.entry.js +2 -2
- package/dist/esm/yoo-mobile-tabbar.entry.js +3 -3
- package/dist/esm/yoo-modal.entry.js +3 -3
- package/dist/esm/yoo-navbar.entry.js +3 -3
- package/dist/esm/yoo-numbers-display.entry.js +3 -3
- package/dist/esm/yoo-photo-editor.entry.js +8 -8
- package/dist/esm/yoo-pivot-table.entry.js +6 -6
- package/dist/esm/yoo-podium.entry.js +2 -2
- package/dist/esm/yoo-profile-list.entry.js +2 -2
- package/dist/esm/yoo-profile-summary.entry.js +3 -3
- package/dist/esm/yoo-progress-bar.entry.js +2 -2
- package/dist/esm/yoo-progress-loader.entry.js +2 -2
- package/dist/esm/yoo-progress-recap.entry.js +2 -2
- package/dist/esm/yoo-property-card.entry.js +3 -3
- package/dist/esm/yoo-range.entry.js +5 -5
- package/dist/esm/yoo-rating.entry.js +2 -2
- package/dist/esm/yoo-reset-password.entry.js +2 -2
- package/dist/esm/yoo-result-dialog.entry.js +3 -3
- package/dist/esm/yoo-reveal.entry.js +2 -2
- package/dist/esm/yoo-salesai-formula.entry.js +2 -2
- package/dist/esm/yoo-scandit.entry.js +3 -3
- package/dist/esm/yoo-scratch-card-creator.entry.js +2 -2
- package/dist/esm/yoo-scratch-card.entry.js +4 -4
- package/dist/esm/yoo-section-list.entry.js +2 -2
- package/dist/esm/yoo-segmented-control.entry.js +68 -0
- package/dist/esm/yoo-side-menu-tree.entry.js +2 -2
- package/dist/esm/yoo-side-menu.entry.js +2 -2
- package/dist/esm/yoo-slides-media.entry.js +5 -5
- package/dist/esm/yoo-start-meeting-popup.entry.js +3 -3
- package/dist/esm/yoo-tabs.entry.js +3 -3
- package/dist/esm/yoo-tappable.entry.js +3 -3
- package/dist/esm/yoo-text-sequence.entry.js +5 -5
- package/dist/esm/yoo-text.entry.js +3 -3
- package/dist/esm/yoo-toast.entry.js +4 -4
- package/dist/esm/yoo-tooltip.entry.js +5 -5
- package/dist/esm/yoo-truncate.entry.js +3 -3
- package/dist/esm/yoo-truncated-line.entry.js +2 -2
- package/dist/esm/yoo-user-detail.entry.js +2 -2
- package/dist/esm/yoo-user-profile.entry.js +4 -4
- package/dist/esm/yoo-user-wizard.entry.js +3 -3
- package/dist/esm/yoo-videoplayer-core.entry.js +3 -3
- package/dist/esm/yoo-videoplayer-dailymotion.entry.js +4 -4
- package/dist/esm/yoo-videoplayer-videojs.entry.js +5 -5
- package/dist/esm/yoo-videoplayer-vimeo.entry.js +4 -4
- package/dist/esm/yoo-videoplayer-youtube.entry.js +4 -4
- package/dist/esm/yoo-virtual-item.entry.js +2 -2
- package/dist/esm/yoo-virtual-scroll.entry.js +3 -3
- package/dist/esm/yoo-waitlist-location-result.entry.js +2 -2
- package/dist/esm/yoo-waitlist-location-start.entry.js +2 -2
- package/dist/esm/yoo-walkthrough.entry.js +2 -2
- package/dist/esm/yoo-web-menu.entry.js +3 -3
- package/dist/esm/yoo-webcam.entry.js +2 -2
- package/dist/esm/yoo-welcome-banner.entry.js +3 -3
- package/dist/esm/yoo-widget-chart.entry.js +2 -2
- package/dist/esm/yoo-widget-small-size.entry.js +2 -2
- package/dist/esm/yoo-widget-tab.entry.js +2 -2
- package/dist/esm/yoo-widget-tile.entry.js +2 -2
- package/dist/esm/yoo-workflow-state-dialog.entry.js +2 -2
- package/dist/esm/yoo-workflow-state.entry.js +2 -2
- package/dist/esm/yoo-workflow.entry.js +5 -5
- package/dist/esm/yoo-zebra.entry.js +2 -2
- package/dist/esm/yoo-zoom.entry.js +2 -2
- package/dist/types/components/2.molecules/{segment/segment.d.ts → segmented-control/segmented-control.d.ts} +8 -2
- package/dist/types/components/form/form-input/form-input.d.ts +1 -0
- package/dist/types/components/form/form-swipe-cards/form-swipe-cards.d.ts +1 -1
- package/dist/types/components/form/form-text-area/form-text-area.d.ts +1 -0
- package/dist/types/components.d.ts +14 -9
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/interfaces/src/entities/page/page.interface.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-42211ff3.js +0 -4
- package/dist/cjs/yoo-segment.cjs.entry.js +0 -61
- package/dist/collection/components/2.molecules/segment/data/data.js +0 -18
- package/dist/design-system/index-df177d50.js +0 -1
- package/dist/design-system/swiper-d9d8399b.js +0 -11
- package/dist/design-system/yoo-segment.entry.js +0 -57
- package/dist/esm/index-df177d50.js +0 -1
- package/dist/esm/swiper-d9d8399b.js +0 -11
- package/dist/esm/yoo-segment.entry.js +0 -57
- package/dist/types/components/2.molecules/segment/data/data.d.ts +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h, r as registerInstance, i as createEvent, e as Host, g as getElement } from './index-019c1b1a.js';
|
|
2
|
-
import { t as translate } from './index-
|
|
2
|
+
import { t as translate } from './index-b72de038.js';
|
|
3
3
|
import { g as getGeolocation } from './geolocation-helpers-62bb9059.js';
|
|
4
4
|
import './lodash-494e728c.js';
|
|
5
5
|
import './_commonjsHelpers-f4d11124.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-e36bdc70.js';
|
|
7
7
|
|
|
8
8
|
// This file is a workaround for a bug in web browsers' "native"
|
|
9
9
|
// ES6 importing system which is uncapable of importing "*.json" files.
|
|
@@ -18,18 +18,59 @@ function withMetadata(func, _arguments) {
|
|
|
18
18
|
return func.apply(this, args)
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
function _typeof$6(obj) { "@babel/helpers - typeof"; return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$6(obj); }
|
|
22
|
+
|
|
23
|
+
function _defineProperties$b(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
24
|
+
|
|
25
|
+
function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
+
|
|
21
27
|
function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
28
|
|
|
29
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
30
|
+
|
|
31
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
32
|
+
|
|
33
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
34
|
+
|
|
35
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36
|
+
|
|
37
|
+
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
38
|
+
|
|
39
|
+
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
40
|
+
|
|
41
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
42
|
+
|
|
43
|
+
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
44
|
+
|
|
45
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
46
|
+
|
|
47
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
48
|
+
|
|
23
49
|
// https://stackoverflow.com/a/46971044/970769
|
|
24
|
-
|
|
25
|
-
|
|
50
|
+
// "Breaking changes in Typescript 2.1"
|
|
51
|
+
// "Extending built-ins like Error, Array, and Map may no longer work."
|
|
52
|
+
// "As a recommendation, you can manually adjust the prototype immediately after any super(...) calls."
|
|
53
|
+
// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
54
|
+
var ParseError = /*#__PURE__*/function (_Error) {
|
|
55
|
+
_inherits(ParseError, _Error);
|
|
26
56
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
57
|
+
var _super = _createSuper(ParseError);
|
|
58
|
+
|
|
59
|
+
function ParseError(code) {
|
|
60
|
+
var _this;
|
|
61
|
+
|
|
62
|
+
_classCallCheck$b(this, ParseError);
|
|
63
|
+
|
|
64
|
+
_this = _super.call(this, code); // Set the prototype explicitly.
|
|
65
|
+
// Any subclass of FooError will have to manually set the prototype as well.
|
|
66
|
+
|
|
67
|
+
Object.setPrototypeOf(_assertThisInitialized(_this), ParseError.prototype);
|
|
68
|
+
_this.name = _this.constructor.name;
|
|
69
|
+
return _this;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return _createClass$b(ParseError);
|
|
73
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
33
74
|
|
|
34
75
|
// The minimum length of the national significant number.
|
|
35
76
|
var MIN_LENGTH_FOR_NSN = 2; // The ITU says the maximum length should be 15,
|
|
@@ -86,13 +127,13 @@ function compare (a, b) {
|
|
|
86
127
|
return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;
|
|
87
128
|
}
|
|
88
129
|
|
|
89
|
-
function _typeof$5(obj) {
|
|
130
|
+
function _typeof$5(obj) { "@babel/helpers - typeof"; return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$5(obj); }
|
|
90
131
|
|
|
91
132
|
function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
92
133
|
|
|
93
134
|
function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
94
135
|
|
|
95
|
-
function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); return Constructor; }
|
|
136
|
+
function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
96
137
|
// "country_phone_code_to_countries" to "country_calling_codes".
|
|
97
138
|
|
|
98
139
|
var V2 = '1.0.18'; // Added "idd_prefix" and "default_idd_prefix".
|
|
@@ -106,9 +147,7 @@ var CALLING_CODE_REG_EXP = /^\d+$/;
|
|
|
106
147
|
* See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md
|
|
107
148
|
*/
|
|
108
149
|
|
|
109
|
-
var Metadata$1 =
|
|
110
|
-
/*#__PURE__*/
|
|
111
|
-
function () {
|
|
150
|
+
var Metadata$1 = /*#__PURE__*/function () {
|
|
112
151
|
function Metadata(metadata) {
|
|
113
152
|
_classCallCheck$a(this, Metadata);
|
|
114
153
|
|
|
@@ -134,6 +173,7 @@ function () {
|
|
|
134
173
|
value: function nonGeographic() {
|
|
135
174
|
if (this.v1 || this.v2 || this.v3) return; // `nonGeographical` was a typo.
|
|
136
175
|
// It's present in metadata generated from `1.7.35` to `1.7.37`.
|
|
176
|
+
// The test case could be found by searching for "nonGeographical".
|
|
137
177
|
|
|
138
178
|
return this.metadata.nonGeographic || this.metadata.nonGeographical;
|
|
139
179
|
}
|
|
@@ -252,6 +292,10 @@ function () {
|
|
|
252
292
|
}
|
|
253
293
|
} else {
|
|
254
294
|
// A hacky workaround for old custom metadata (generated before V4).
|
|
295
|
+
// In that metadata, there was no concept of "non-geographic" metadata
|
|
296
|
+
// so metadata for `001` country code was stored along with other countries.
|
|
297
|
+
// The test case can be found by searching for:
|
|
298
|
+
// "should work around `nonGeographic` metadata not existing".
|
|
255
299
|
var countryCodes = this.countryCallingCodes()[callingCode];
|
|
256
300
|
|
|
257
301
|
if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {
|
|
@@ -353,9 +397,7 @@ function () {
|
|
|
353
397
|
return Metadata;
|
|
354
398
|
}();
|
|
355
399
|
|
|
356
|
-
var NumberingPlan =
|
|
357
|
-
/*#__PURE__*/
|
|
358
|
-
function () {
|
|
400
|
+
var NumberingPlan = /*#__PURE__*/function () {
|
|
359
401
|
function NumberingPlan(metadata, globalMetadataObject) {
|
|
360
402
|
_classCallCheck$a(this, NumberingPlan);
|
|
361
403
|
|
|
@@ -399,7 +441,7 @@ function () {
|
|
|
399
441
|
value: function nationalNumberPattern() {
|
|
400
442
|
if (this.v1 || this.v2) return this.metadata[1];
|
|
401
443
|
return this.metadata[2];
|
|
402
|
-
} //
|
|
444
|
+
} // "possible length" data is always present in Google's metadata.
|
|
403
445
|
|
|
404
446
|
}, {
|
|
405
447
|
key: "possibleLengths",
|
|
@@ -516,9 +558,7 @@ function () {
|
|
|
516
558
|
return NumberingPlan;
|
|
517
559
|
}();
|
|
518
560
|
|
|
519
|
-
var Format =
|
|
520
|
-
/*#__PURE__*/
|
|
521
|
-
function () {
|
|
561
|
+
var Format = /*#__PURE__*/function () {
|
|
522
562
|
function Format(format, metadata) {
|
|
523
563
|
_classCallCheck$a(this, Format);
|
|
524
564
|
|
|
@@ -590,9 +630,7 @@ function () {
|
|
|
590
630
|
|
|
591
631
|
var FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\(?\$1\)?$/;
|
|
592
632
|
|
|
593
|
-
var Type =
|
|
594
|
-
/*#__PURE__*/
|
|
595
|
-
function () {
|
|
633
|
+
var Type = /*#__PURE__*/function () {
|
|
596
634
|
function Type(type, metadata) {
|
|
597
635
|
_classCallCheck$a(this, Type);
|
|
598
636
|
|
|
@@ -951,6 +989,12 @@ function extractExtension(number) {
|
|
|
951
989
|
}
|
|
952
990
|
}
|
|
953
991
|
|
|
992
|
+
function _createForOfIteratorHelperLoose$b(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$g(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
993
|
+
|
|
994
|
+
function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
|
|
995
|
+
|
|
996
|
+
function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
997
|
+
|
|
954
998
|
// These mappings map a character (key) to a specific digit that should
|
|
955
999
|
// replace it for normalization purposes. Non-European digits that
|
|
956
1000
|
// may be used in phone numbers are mapped to a European equivalent.
|
|
@@ -1054,19 +1098,8 @@ function parseDigits(string) {
|
|
|
1054
1098
|
// (including non-European ones) don't fall into that range
|
|
1055
1099
|
// so such "exotic" characters would be discarded anyway.
|
|
1056
1100
|
|
|
1057
|
-
for (var _iterator = string.split(''),
|
|
1058
|
-
var
|
|
1059
|
-
|
|
1060
|
-
if (_isArray) {
|
|
1061
|
-
if (_i >= _iterator.length) break;
|
|
1062
|
-
_ref = _iterator[_i++];
|
|
1063
|
-
} else {
|
|
1064
|
-
_i = _iterator.next();
|
|
1065
|
-
if (_i.done) break;
|
|
1066
|
-
_ref = _i.value;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
var character = _ref;
|
|
1101
|
+
for (var _iterator = _createForOfIteratorHelperLoose$b(string.split('')), _step; !(_step = _iterator()).done;) {
|
|
1102
|
+
var character = _step.value;
|
|
1070
1103
|
var digit = parseDigit(character);
|
|
1071
1104
|
|
|
1072
1105
|
if (digit) {
|
|
@@ -1077,6 +1110,11 @@ function parseDigits(string) {
|
|
|
1077
1110
|
return result;
|
|
1078
1111
|
}
|
|
1079
1112
|
|
|
1113
|
+
function _createForOfIteratorHelperLoose$a(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$f(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1114
|
+
|
|
1115
|
+
function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$f(o, minLen); }
|
|
1116
|
+
|
|
1117
|
+
function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
1080
1118
|
/**
|
|
1081
1119
|
* Parses phone number characters from a string.
|
|
1082
1120
|
* Drops all punctuation leaving only digits and the leading `+` sign (if any).
|
|
@@ -1101,19 +1139,8 @@ function parseIncompletePhoneNumber(string) {
|
|
|
1101
1139
|
// (including non-European ones) don't fall into that range
|
|
1102
1140
|
// so such "exotic" characters would be discarded anyway.
|
|
1103
1141
|
|
|
1104
|
-
for (var _iterator = string.split(''),
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1107
|
-
if (_isArray) {
|
|
1108
|
-
if (_i >= _iterator.length) break;
|
|
1109
|
-
_ref = _iterator[_i++];
|
|
1110
|
-
} else {
|
|
1111
|
-
_i = _iterator.next();
|
|
1112
|
-
if (_i.done) break;
|
|
1113
|
-
_ref = _i.value;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
var character = _ref;
|
|
1142
|
+
for (var _iterator = _createForOfIteratorHelperLoose$a(string.split('')), _step; !(_step = _iterator()).done;) {
|
|
1143
|
+
var character = _step.value;
|
|
1117
1144
|
result += parsePhoneNumberCharacter(character, result) || '';
|
|
1118
1145
|
}
|
|
1119
1146
|
|
|
@@ -1149,6 +1176,12 @@ function parsePhoneNumberCharacter(character, prevParsedCharacters) {
|
|
|
1149
1176
|
|
|
1150
1177
|
// Deprecated. Import from 'metadata.js' directly instead.
|
|
1151
1178
|
|
|
1179
|
+
function _createForOfIteratorHelperLoose$9(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$e(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1180
|
+
|
|
1181
|
+
function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$e(o, minLen); }
|
|
1182
|
+
|
|
1183
|
+
function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
1184
|
+
|
|
1152
1185
|
/**
|
|
1153
1186
|
* Merges two arrays.
|
|
1154
1187
|
* @param {*} a
|
|
@@ -1158,19 +1191,8 @@ function parsePhoneNumberCharacter(character, prevParsedCharacters) {
|
|
|
1158
1191
|
function mergeArrays(a, b) {
|
|
1159
1192
|
var merged = a.slice();
|
|
1160
1193
|
|
|
1161
|
-
for (var _iterator = b,
|
|
1162
|
-
var
|
|
1163
|
-
|
|
1164
|
-
if (_isArray) {
|
|
1165
|
-
if (_i >= _iterator.length) break;
|
|
1166
|
-
_ref = _iterator[_i++];
|
|
1167
|
-
} else {
|
|
1168
|
-
_i = _iterator.next();
|
|
1169
|
-
if (_i.done) break;
|
|
1170
|
-
_ref = _i.value;
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
var element = _ref;
|
|
1194
|
+
for (var _iterator = _createForOfIteratorHelperLoose$9(b), _step; !(_step = _iterator()).done;) {
|
|
1195
|
+
var element = _step.value;
|
|
1174
1196
|
|
|
1175
1197
|
if (a.indexOf(element) < 0) {
|
|
1176
1198
|
merged.push(element);
|
|
@@ -1237,8 +1259,8 @@ function checkNumberLengthForType(nationalNumber, type, metadata) {
|
|
|
1237
1259
|
}
|
|
1238
1260
|
} // If the type doesn't exist then return 'INVALID_LENGTH'.
|
|
1239
1261
|
else if (type && !type_info) {
|
|
1240
|
-
|
|
1241
|
-
|
|
1262
|
+
return 'INVALID_LENGTH';
|
|
1263
|
+
}
|
|
1242
1264
|
|
|
1243
1265
|
var actual_length = nationalNumber.length; // In `libphonenumber-js` all "local-only" formats are dropped for simplicity.
|
|
1244
1266
|
// // This is safe because there is never an overlap beween the possible lengths
|
|
@@ -1298,7 +1320,8 @@ function isPossiblePhoneNumber$2(input, options, metadata) {
|
|
|
1298
1320
|
|
|
1299
1321
|
metadata.selectNumberingPlan(input.countryCallingCode);
|
|
1300
1322
|
}
|
|
1301
|
-
}
|
|
1323
|
+
} // Old metadata (< 1.0.18) had no "possible length" data.
|
|
1324
|
+
|
|
1302
1325
|
|
|
1303
1326
|
if (metadata.possibleLengths()) {
|
|
1304
1327
|
return isPossibleNumber$2(input.phone || input.nationalNumber, metadata);
|
|
@@ -1333,14 +1356,20 @@ function isPossibleNumber$2(nationalNumber, metadata) {
|
|
|
1333
1356
|
}
|
|
1334
1357
|
}
|
|
1335
1358
|
|
|
1336
|
-
function _slicedToArray$5(arr, i) { return _arrayWithHoles$5(arr) || _iterableToArrayLimit$5(arr, i) || _nonIterableRest$5(); }
|
|
1359
|
+
function _slicedToArray$5(arr, i) { return _arrayWithHoles$5(arr) || _iterableToArrayLimit$5(arr, i) || _unsupportedIterableToArray$d(arr, i) || _nonIterableRest$5(); }
|
|
1337
1360
|
|
|
1338
|
-
function _nonIterableRest$5() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
1361
|
+
function _nonIterableRest$5() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1339
1362
|
|
|
1340
|
-
function _iterableToArrayLimit$5(arr, i) { var _arr = []; var _n = true; var _d = false; var _e
|
|
1363
|
+
function _iterableToArrayLimit$5(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
1341
1364
|
|
|
1342
1365
|
function _arrayWithHoles$5(arr) { if (Array.isArray(arr)) return arr; }
|
|
1343
1366
|
|
|
1367
|
+
function _createForOfIteratorHelperLoose$8(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$d(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1368
|
+
|
|
1369
|
+
function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$d(o, minLen); }
|
|
1370
|
+
|
|
1371
|
+
function _arrayLikeToArray$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
1372
|
+
|
|
1344
1373
|
/**
|
|
1345
1374
|
* @param {string} text - Phone URI (RFC 3966).
|
|
1346
1375
|
* @return {object} `{ ?number, ?ext }`.
|
|
@@ -1352,19 +1381,8 @@ function parseRFC3966(text) {
|
|
|
1352
1381
|
|
|
1353
1382
|
text = text.replace(/^tel:/, 'tel=');
|
|
1354
1383
|
|
|
1355
|
-
for (var _iterator = text.split(';'),
|
|
1356
|
-
var
|
|
1357
|
-
|
|
1358
|
-
if (_isArray) {
|
|
1359
|
-
if (_i >= _iterator.length) break;
|
|
1360
|
-
_ref = _iterator[_i++];
|
|
1361
|
-
} else {
|
|
1362
|
-
_i = _iterator.next();
|
|
1363
|
-
if (_i.done) break;
|
|
1364
|
-
_ref = _i.value;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
var part = _ref;
|
|
1384
|
+
for (var _iterator = _createForOfIteratorHelperLoose$8(text.split(';')), _step; !(_step = _iterator()).done;) {
|
|
1385
|
+
var part = _step.value;
|
|
1368
1386
|
|
|
1369
1387
|
var _part$split = part.split('='),
|
|
1370
1388
|
_part$split2 = _slicedToArray$5(_part$split, 2),
|
|
@@ -1411,9 +1429,9 @@ function parseRFC3966(text) {
|
|
|
1411
1429
|
* @return {string} Phone URI (RFC 3966).
|
|
1412
1430
|
*/
|
|
1413
1431
|
|
|
1414
|
-
function formatRFC3966(
|
|
1415
|
-
var number =
|
|
1416
|
-
ext =
|
|
1432
|
+
function formatRFC3966(_ref) {
|
|
1433
|
+
var number = _ref.number,
|
|
1434
|
+
ext = _ref.ext;
|
|
1417
1435
|
|
|
1418
1436
|
if (!number) {
|
|
1419
1437
|
return '';
|
|
@@ -1438,6 +1456,11 @@ function matchesEntirely(text, regular_expression) {
|
|
|
1438
1456
|
return new RegExp('^(?:' + regular_expression + ')$').test(text);
|
|
1439
1457
|
}
|
|
1440
1458
|
|
|
1459
|
+
function _createForOfIteratorHelperLoose$7(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$c(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1460
|
+
|
|
1461
|
+
function _unsupportedIterableToArray$c(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$c(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$c(o, minLen); }
|
|
1462
|
+
|
|
1463
|
+
function _arrayLikeToArray$c(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
1441
1464
|
var NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL']; // Finds out national phone number type (fixed line, mobile, etc)
|
|
1442
1465
|
|
|
1443
1466
|
function getNumberType$2(input, options, metadata) {
|
|
@@ -1468,9 +1491,13 @@ function getNumberType$2(input, options, metadata) {
|
|
|
1468
1491
|
//
|
|
1469
1492
|
if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {
|
|
1470
1493
|
return 'FIXED_LINE_OR_MOBILE';
|
|
1471
|
-
} //
|
|
1472
|
-
//
|
|
1473
|
-
//
|
|
1494
|
+
} // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.
|
|
1495
|
+
// For example, for "US" country.
|
|
1496
|
+
// Old metadata (< `1.0.18`) had a specific "types" data structure
|
|
1497
|
+
// that happened to be `undefined` for `MOBILE` in that case.
|
|
1498
|
+
// Newer metadata (>= `1.0.18`) has another data structure that is
|
|
1499
|
+
// not `undefined` for `MOBILE` in that case (it's just an empty array).
|
|
1500
|
+
// So this `if` is just for backwards compatibility with old metadata.
|
|
1474
1501
|
|
|
1475
1502
|
|
|
1476
1503
|
if (!metadata.type('MOBILE')) {
|
|
@@ -1488,8 +1515,8 @@ function getNumberType$2(input, options, metadata) {
|
|
|
1488
1515
|
return 'FIXED_LINE';
|
|
1489
1516
|
}
|
|
1490
1517
|
|
|
1491
|
-
for (var
|
|
1492
|
-
var type =
|
|
1518
|
+
for (var _iterator = _createForOfIteratorHelperLoose$7(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {
|
|
1519
|
+
var type = _step.value;
|
|
1493
1520
|
|
|
1494
1521
|
if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {
|
|
1495
1522
|
return type;
|
|
@@ -1675,31 +1702,39 @@ function getIddPrefix(country, callingCode, metadata) {
|
|
|
1675
1702
|
}
|
|
1676
1703
|
}
|
|
1677
1704
|
|
|
1678
|
-
function
|
|
1705
|
+
function _createForOfIteratorHelperLoose$6(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$b(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1706
|
+
|
|
1707
|
+
function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$b(o, minLen); }
|
|
1708
|
+
|
|
1709
|
+
function _arrayLikeToArray$b(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
1710
|
+
|
|
1711
|
+
function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1679
1712
|
|
|
1680
|
-
function
|
|
1713
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$b(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1714
|
+
|
|
1715
|
+
function _defineProperty$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1681
1716
|
var DEFAULT_OPTIONS = {
|
|
1682
1717
|
formatExtension: function formatExtension(formattedNumber, extension, metadata) {
|
|
1683
1718
|
return "".concat(formattedNumber).concat(metadata.ext()).concat(extension);
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1719
|
+
}
|
|
1720
|
+
}; // Formats a phone number
|
|
1721
|
+
//
|
|
1722
|
+
// Example use cases:
|
|
1723
|
+
//
|
|
1724
|
+
// ```js
|
|
1725
|
+
// formatNumber('8005553535', 'RU', 'INTERNATIONAL')
|
|
1726
|
+
// formatNumber('8005553535', 'RU', 'INTERNATIONAL', metadata)
|
|
1727
|
+
// formatNumber({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL')
|
|
1728
|
+
// formatNumber({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', metadata)
|
|
1729
|
+
// formatNumber('+78005553535', 'NATIONAL')
|
|
1730
|
+
// formatNumber('+78005553535', 'NATIONAL', metadata)
|
|
1731
|
+
// ```
|
|
1732
|
+
//
|
|
1697
1733
|
|
|
1698
|
-
};
|
|
1699
1734
|
function formatNumber$2(input, format, options, metadata) {
|
|
1700
1735
|
// Apply default options.
|
|
1701
1736
|
if (options) {
|
|
1702
|
-
options = _objectSpread$9({}, DEFAULT_OPTIONS, options);
|
|
1737
|
+
options = _objectSpread$9(_objectSpread$9({}, DEFAULT_OPTIONS), options);
|
|
1703
1738
|
} else {
|
|
1704
1739
|
options = DEFAULT_OPTIONS;
|
|
1705
1740
|
}
|
|
@@ -1788,21 +1823,12 @@ function formatNationalNumber$1(number, carrierCode, formatAs, metadata, options
|
|
|
1788
1823
|
}
|
|
1789
1824
|
|
|
1790
1825
|
function chooseFormatForNumber(availableFormats, nationalNnumber) {
|
|
1791
|
-
for (var _iterator = availableFormats,
|
|
1792
|
-
var
|
|
1793
|
-
|
|
1794
|
-
if (_isArray) {
|
|
1795
|
-
if (_i >= _iterator.length) break;
|
|
1796
|
-
_ref = _iterator[_i++];
|
|
1797
|
-
} else {
|
|
1798
|
-
_i = _iterator.next();
|
|
1799
|
-
if (_i.done) break;
|
|
1800
|
-
_ref = _i.value;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
var format = _ref;
|
|
1826
|
+
for (var _iterator = _createForOfIteratorHelperLoose$6(availableFormats), _step; !(_step = _iterator()).done;) {
|
|
1827
|
+
var format = _step.value;
|
|
1804
1828
|
|
|
1805
|
-
// Validate leading digits
|
|
1829
|
+
// Validate leading digits.
|
|
1830
|
+
// The test case for "else path" could be found by searching for
|
|
1831
|
+
// "format.leadingDigitsPatterns().length === 0".
|
|
1806
1832
|
if (format.leadingDigitsPatterns().length > 0) {
|
|
1807
1833
|
// The last leading_digits_pattern is used here, as it is the most detailed
|
|
1808
1834
|
var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1]; // If leading digits don't match then move on to the next phone number format
|
|
@@ -1853,20 +1879,20 @@ function formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry,
|
|
|
1853
1879
|
}
|
|
1854
1880
|
}
|
|
1855
1881
|
|
|
1856
|
-
function
|
|
1882
|
+
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1857
1883
|
|
|
1858
|
-
function
|
|
1884
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$a(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1885
|
+
|
|
1886
|
+
function _defineProperty$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1859
1887
|
|
|
1860
1888
|
function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1861
1889
|
|
|
1862
1890
|
function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1863
1891
|
|
|
1864
|
-
function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); return Constructor; }
|
|
1892
|
+
function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1865
1893
|
var USE_NON_GEOGRAPHIC_COUNTRY_CODE$3 = false;
|
|
1866
1894
|
|
|
1867
|
-
var PhoneNumber =
|
|
1868
|
-
/*#__PURE__*/
|
|
1869
|
-
function () {
|
|
1895
|
+
var PhoneNumber = /*#__PURE__*/function () {
|
|
1870
1896
|
function PhoneNumber(countryCallingCode, nationalNumber, metadata) {
|
|
1871
1897
|
_classCallCheck$9(this, PhoneNumber);
|
|
1872
1898
|
|
|
@@ -1952,7 +1978,7 @@ function () {
|
|
|
1952
1978
|
}, {
|
|
1953
1979
|
key: "format",
|
|
1954
1980
|
value: function format(_format, options) {
|
|
1955
|
-
return formatNumber$2(this, _format, options ? _objectSpread$8({}, options, {
|
|
1981
|
+
return formatNumber$2(this, _format, options ? _objectSpread$8(_objectSpread$8({}, options), {}, {
|
|
1956
1982
|
v2: true
|
|
1957
1983
|
}) : {
|
|
1958
1984
|
v2: true
|
|
@@ -2071,19 +2097,19 @@ function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {
|
|
|
2071
2097
|
// and possibly a carrier code.
|
|
2072
2098
|
// Seems like there could be more.
|
|
2073
2099
|
else {
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2100
|
+
// `prefixBeforeNationalNumber` is the whole substring matched by
|
|
2101
|
+
// the `national_prefix_for_parsing` regular expression.
|
|
2102
|
+
// There seem to be no guarantees that it's just a national prefix.
|
|
2103
|
+
// For example, if there's a carrier code, it's gonna be a
|
|
2104
|
+
// part of `prefixBeforeNationalNumber` too.
|
|
2105
|
+
var prefixBeforeNationalNumber = prefixMatch[0];
|
|
2106
|
+
nationalNumber = number.slice(prefixBeforeNationalNumber.length); // If there's at least one captured group,
|
|
2107
|
+
// then carrier code is the first one.
|
|
2108
|
+
|
|
2109
|
+
if (hasCapturedGroups) {
|
|
2110
|
+
carrierCode = prefixMatch[1];
|
|
2111
|
+
}
|
|
2112
|
+
} // Tries to guess whether a national prefix was present in the input.
|
|
2087
2113
|
// This is not something copy-pasted from Google's library:
|
|
2088
2114
|
// they don't seem to have an equivalent for that.
|
|
2089
2115
|
// So this isn't an "officially approved" way of doing something like that.
|
|
@@ -2372,6 +2398,11 @@ function extractCountryCallingCode(number, country, callingCode, metadata) {
|
|
|
2372
2398
|
return {};
|
|
2373
2399
|
}
|
|
2374
2400
|
|
|
2401
|
+
function _createForOfIteratorHelperLoose$5(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$a(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2402
|
+
|
|
2403
|
+
function _unsupportedIterableToArray$a(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$a(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$a(o, minLen); }
|
|
2404
|
+
|
|
2405
|
+
function _arrayLikeToArray$a(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2375
2406
|
var USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 = false;
|
|
2376
2407
|
function getCountryByCallingCode(callingCode, nationalPhoneNumber, metadata) {
|
|
2377
2408
|
/* istanbul ignore if */
|
|
@@ -2401,19 +2432,8 @@ function selectCountryFromList(possibleCountries, nationalPhoneNumber, metadata)
|
|
|
2401
2432
|
// Re-create `metadata` because it will be selecting a `country`.
|
|
2402
2433
|
metadata = new Metadata$1(metadata);
|
|
2403
2434
|
|
|
2404
|
-
for (var _iterator = possibleCountries,
|
|
2405
|
-
var
|
|
2406
|
-
|
|
2407
|
-
if (_isArray) {
|
|
2408
|
-
if (_i >= _iterator.length) break;
|
|
2409
|
-
_ref = _iterator[_i++];
|
|
2410
|
-
} else {
|
|
2411
|
-
_i = _iterator.next();
|
|
2412
|
-
if (_i.done) break;
|
|
2413
|
-
_ref = _i.value;
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
var country = _ref;
|
|
2435
|
+
for (var _iterator = _createForOfIteratorHelperLoose$5(possibleCountries), _step; !(_step = _iterator()).done;) {
|
|
2436
|
+
var country = _step.value;
|
|
2417
2437
|
metadata.country(country); // Leading digits check would be the simplest and fastest one.
|
|
2418
2438
|
// Leading digits patterns are only defined for about 20% of all countries.
|
|
2419
2439
|
// https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits
|
|
@@ -2426,11 +2446,11 @@ function selectCountryFromList(possibleCountries, nationalPhoneNumber, metadata)
|
|
|
2426
2446
|
} // Else perform full validation with all of those
|
|
2427
2447
|
// fixed-line/mobile/etc regular expressions.
|
|
2428
2448
|
else if (getNumberType$2({
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2449
|
+
phone: nationalPhoneNumber,
|
|
2450
|
+
country: country
|
|
2451
|
+
}, undefined, metadata.metadata)) {
|
|
2452
|
+
return country;
|
|
2453
|
+
}
|
|
2434
2454
|
}
|
|
2435
2455
|
}
|
|
2436
2456
|
|
|
@@ -2696,21 +2716,21 @@ function parsePhoneNumber$2(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
2696
2716
|
} // If `formattedPhoneNumber` is in "national" format
|
|
2697
2717
|
// then `number` is defined and `countryCallingCode` isn't.
|
|
2698
2718
|
else if (number && (defaultCountry || defaultCallingCode)) {
|
|
2699
|
-
|
|
2719
|
+
metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);
|
|
2700
2720
|
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
}
|
|
2721
|
+
if (defaultCountry) {
|
|
2722
|
+
country = defaultCountry;
|
|
2723
|
+
} else {
|
|
2724
|
+
/* istanbul ignore if */
|
|
2725
|
+
if (USE_NON_GEOGRAPHIC_COUNTRY_CODE$1) {
|
|
2726
|
+
if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {
|
|
2727
|
+
country = '001';
|
|
2709
2728
|
}
|
|
2710
2729
|
}
|
|
2730
|
+
}
|
|
2711
2731
|
|
|
2712
|
-
|
|
2713
|
-
|
|
2732
|
+
countryCallingCode = defaultCallingCode || getCountryCallingCode$1(defaultCountry, metadata.metadata);
|
|
2733
|
+
} else return {};
|
|
2714
2734
|
|
|
2715
2735
|
if (!number) {
|
|
2716
2736
|
return {
|
|
@@ -2754,26 +2774,34 @@ function parsePhoneNumber$2(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
2754
2774
|
};
|
|
2755
2775
|
}
|
|
2756
2776
|
|
|
2757
|
-
function
|
|
2777
|
+
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2758
2778
|
|
|
2759
|
-
function
|
|
2779
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$9(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2780
|
+
|
|
2781
|
+
function _defineProperty$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2760
2782
|
function parsePhoneNumber$1(text, options, metadata) {
|
|
2761
|
-
return parse$1(text, _objectSpread$7({}, options, {
|
|
2783
|
+
return parse$1(text, _objectSpread$7(_objectSpread$7({}, options), {}, {
|
|
2762
2784
|
v2: true
|
|
2763
2785
|
}), metadata);
|
|
2764
2786
|
}
|
|
2765
2787
|
|
|
2766
|
-
function _typeof$4(obj) {
|
|
2788
|
+
function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$4(obj); }
|
|
2767
2789
|
|
|
2768
|
-
function
|
|
2790
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2769
2791
|
|
|
2770
|
-
function
|
|
2792
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$8(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2771
2793
|
|
|
2772
|
-
function
|
|
2794
|
+
function _defineProperty$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2773
2795
|
|
|
2774
|
-
function
|
|
2796
|
+
function _slicedToArray$4(arr, i) { return _arrayWithHoles$4(arr) || _iterableToArrayLimit$4(arr, i) || _unsupportedIterableToArray$9(arr, i) || _nonIterableRest$4(); }
|
|
2775
2797
|
|
|
2776
|
-
function
|
|
2798
|
+
function _nonIterableRest$4() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2799
|
+
|
|
2800
|
+
function _unsupportedIterableToArray$9(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$9(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$9(o, minLen); }
|
|
2801
|
+
|
|
2802
|
+
function _arrayLikeToArray$9(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2803
|
+
|
|
2804
|
+
function _iterableToArrayLimit$4(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2777
2805
|
|
|
2778
2806
|
function _arrayWithHoles$4(arr) { if (Array.isArray(arr)) return arr; }
|
|
2779
2807
|
function parsePhoneNumber() {
|
|
@@ -2820,13 +2848,13 @@ function normalizeArguments$2(args) {
|
|
|
2820
2848
|
} // `defaultCountry` is not passed.
|
|
2821
2849
|
// Example: `parsePhoneNumber('+78005553535', [options], metadata)`.
|
|
2822
2850
|
else if (isObject(arg_2)) {
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2851
|
+
if (arg_3) {
|
|
2852
|
+
options = arg_2;
|
|
2853
|
+
metadata = arg_3;
|
|
2854
|
+
} else {
|
|
2855
|
+
metadata = arg_2;
|
|
2856
|
+
}
|
|
2857
|
+
} else throw new Error("Invalid second argument: ".concat(arg_2));
|
|
2830
2858
|
|
|
2831
2859
|
return {
|
|
2832
2860
|
text: text,
|
|
@@ -2841,13 +2869,15 @@ var isObject = function isObject(_) {
|
|
|
2841
2869
|
return _typeof$4(_) === 'object';
|
|
2842
2870
|
};
|
|
2843
2871
|
|
|
2844
|
-
function
|
|
2872
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2845
2873
|
|
|
2846
|
-
function
|
|
2874
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2875
|
+
|
|
2876
|
+
function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2847
2877
|
function parsePhoneNumberFromString$2(text, options, metadata) {
|
|
2848
2878
|
// Validate `defaultCountry`.
|
|
2849
2879
|
if (options && options.defaultCountry && !isSupportedCountry$1(options.defaultCountry, metadata)) {
|
|
2850
|
-
options = _objectSpread$5({}, options, {
|
|
2880
|
+
options = _objectSpread$5(_objectSpread$5({}, options), {}, {
|
|
2851
2881
|
defaultCountry: undefined
|
|
2852
2882
|
});
|
|
2853
2883
|
} // Parse phone number.
|
|
@@ -2873,51 +2903,56 @@ function parsePhoneNumberFromString$1() {
|
|
|
2873
2903
|
return parsePhoneNumberFromString$2(text, options, metadata);
|
|
2874
2904
|
}
|
|
2875
2905
|
|
|
2876
|
-
function
|
|
2906
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2877
2907
|
|
|
2878
|
-
function
|
|
2908
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$6(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2909
|
+
|
|
2910
|
+
function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2879
2911
|
function isValidPhoneNumber$1() {
|
|
2880
2912
|
var _normalizeArguments = normalizeArguments$2(arguments),
|
|
2881
2913
|
text = _normalizeArguments.text,
|
|
2882
2914
|
options = _normalizeArguments.options,
|
|
2883
2915
|
metadata = _normalizeArguments.metadata;
|
|
2884
2916
|
|
|
2885
|
-
options = _objectSpread$4({}, options, {
|
|
2917
|
+
options = _objectSpread$4(_objectSpread$4({}, options), {}, {
|
|
2886
2918
|
extract: false
|
|
2887
2919
|
});
|
|
2888
2920
|
var phoneNumber = parsePhoneNumberFromString$2(text, options, metadata);
|
|
2889
2921
|
return phoneNumber && phoneNumber.isValid() || false;
|
|
2890
2922
|
}
|
|
2891
2923
|
|
|
2892
|
-
function
|
|
2924
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2893
2925
|
|
|
2894
|
-
function
|
|
2926
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$5(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2927
|
+
|
|
2928
|
+
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2895
2929
|
function isPossiblePhoneNumber$1() {
|
|
2896
2930
|
var _normalizeArguments = normalizeArguments$2(arguments),
|
|
2897
2931
|
text = _normalizeArguments.text,
|
|
2898
2932
|
options = _normalizeArguments.options,
|
|
2899
2933
|
metadata = _normalizeArguments.metadata;
|
|
2900
2934
|
|
|
2901
|
-
options = _objectSpread$3({}, options, {
|
|
2935
|
+
options = _objectSpread$3(_objectSpread$3({}, options), {}, {
|
|
2902
2936
|
extract: false
|
|
2903
2937
|
});
|
|
2904
2938
|
var phoneNumber = parsePhoneNumberFromString$2(text, options, metadata);
|
|
2905
2939
|
return phoneNumber && phoneNumber.isPossible() || false;
|
|
2906
2940
|
}
|
|
2907
2941
|
|
|
2908
|
-
function
|
|
2942
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2909
2943
|
|
|
2910
|
-
function
|
|
2944
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2945
|
+
|
|
2946
|
+
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2911
2947
|
function validatePhoneNumberLength$1() {
|
|
2912
2948
|
var _normalizeArguments = normalizeArguments$2(arguments),
|
|
2913
2949
|
text = _normalizeArguments.text,
|
|
2914
2950
|
options = _normalizeArguments.options,
|
|
2915
2951
|
metadata = _normalizeArguments.metadata;
|
|
2916
2952
|
|
|
2917
|
-
options = _objectSpread$2({}, options, {
|
|
2918
|
-
extract: false
|
|
2919
|
-
|
|
2920
|
-
});
|
|
2953
|
+
options = _objectSpread$2(_objectSpread$2({}, options), {}, {
|
|
2954
|
+
extract: false
|
|
2955
|
+
}); // Parse phone number.
|
|
2921
2956
|
|
|
2922
2957
|
try {
|
|
2923
2958
|
var phoneNumber = parsePhoneNumber$1(text, options, metadata);
|
|
@@ -2940,12 +2975,12 @@ function validatePhoneNumberLength$1() {
|
|
|
2940
2975
|
|
|
2941
2976
|
function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2942
2977
|
|
|
2943
|
-
function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); return Constructor; }
|
|
2978
|
+
function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2944
2979
|
|
|
2945
2980
|
function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2946
2981
|
|
|
2947
2982
|
// https://medium.com/dsinjs/implementing-lru-cache-in-javascript-94ba6755cda9
|
|
2948
|
-
var Node = function Node(key, value) {
|
|
2983
|
+
var Node = /*#__PURE__*/_createClass$8(function Node(key, value) {
|
|
2949
2984
|
var next = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
2950
2985
|
var prev = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
2951
2986
|
|
|
@@ -2955,11 +2990,9 @@ var Node = function Node(key, value) {
|
|
|
2955
2990
|
this.value = value;
|
|
2956
2991
|
this.next = next;
|
|
2957
2992
|
this.prev = prev;
|
|
2958
|
-
};
|
|
2993
|
+
});
|
|
2959
2994
|
|
|
2960
|
-
var LRUCache =
|
|
2961
|
-
/*#__PURE__*/
|
|
2962
|
-
function () {
|
|
2995
|
+
var LRUCache = /*#__PURE__*/function () {
|
|
2963
2996
|
//set default limit of 10 if limit is not passed.
|
|
2964
2997
|
function LRUCache() {
|
|
2965
2998
|
var limit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
|
|
@@ -3069,14 +3102,12 @@ function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Co
|
|
|
3069
3102
|
|
|
3070
3103
|
function _defineProperties$7(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3071
3104
|
|
|
3072
|
-
function _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); return Constructor; }
|
|
3105
|
+
function _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
3073
3106
|
// countries being used for the same doc with ~10 patterns for each country. Some pages will have
|
|
3074
3107
|
// a lot more countries in use, but typically fewer numbers for each so expanding the cache for
|
|
3075
3108
|
// that use-case won't have a lot of benefit.
|
|
3076
3109
|
|
|
3077
|
-
var RegExpCache =
|
|
3078
|
-
/*#__PURE__*/
|
|
3079
|
-
function () {
|
|
3110
|
+
var RegExpCache = /*#__PURE__*/function () {
|
|
3080
3111
|
function RegExpCache(size) {
|
|
3081
3112
|
_classCallCheck$7(this, RegExpCache);
|
|
3082
3113
|
|
|
@@ -3190,6 +3221,11 @@ function isInvalidPunctuationSymbol(character) {
|
|
|
3190
3221
|
return character === '%' || pSc_regexp.test(character);
|
|
3191
3222
|
}
|
|
3192
3223
|
|
|
3224
|
+
function _createForOfIteratorHelperLoose$4(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$8(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3225
|
+
|
|
3226
|
+
function _unsupportedIterableToArray$8(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$8(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$8(o, minLen); }
|
|
3227
|
+
|
|
3228
|
+
function _arrayLikeToArray$8(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3193
3229
|
/**
|
|
3194
3230
|
* Leniency when finding potential phone numbers in text segments
|
|
3195
3231
|
* The levels here are ordered in increasing strictness.
|
|
@@ -3376,19 +3412,8 @@ function checkNumberGroupingIsValid(number, candidate, metadata, checkGroups, re
|
|
|
3376
3412
|
var nationalSignificantNumber = util.getNationalSignificantNumber(number);
|
|
3377
3413
|
|
|
3378
3414
|
if (alternateFormats) {
|
|
3379
|
-
for (var _iterator = alternateFormats.numberFormats(),
|
|
3380
|
-
var
|
|
3381
|
-
|
|
3382
|
-
if (_isArray) {
|
|
3383
|
-
if (_i >= _iterator.length) break;
|
|
3384
|
-
_ref = _iterator[_i++];
|
|
3385
|
-
} else {
|
|
3386
|
-
_i = _iterator.next();
|
|
3387
|
-
if (_i.done) break;
|
|
3388
|
-
_ref = _i.value;
|
|
3389
|
-
}
|
|
3390
|
-
|
|
3391
|
-
var alternateFormat = _ref;
|
|
3415
|
+
for (var _iterator = _createForOfIteratorHelperLoose$4(alternateFormats.numberFormats()), _step; !(_step = _iterator()).done;) {
|
|
3416
|
+
var alternateFormat = _step.value;
|
|
3392
3417
|
|
|
3393
3418
|
if (alternateFormat.leadingDigitsPatterns().length > 0) {
|
|
3394
3419
|
// There is only one leading digits pattern for alternate formats.
|
|
@@ -3621,15 +3646,23 @@ function isValidCandidate(candidate, offset, text, leniency) {
|
|
|
3621
3646
|
return true;
|
|
3622
3647
|
}
|
|
3623
3648
|
|
|
3624
|
-
function
|
|
3649
|
+
function _createForOfIteratorHelperLoose$3(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$7(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3650
|
+
|
|
3651
|
+
function _unsupportedIterableToArray$7(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$7(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$7(o, minLen); }
|
|
3652
|
+
|
|
3653
|
+
function _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3654
|
+
|
|
3655
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3656
|
+
|
|
3657
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3658
|
+
|
|
3659
|
+
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3625
3660
|
|
|
3626
3661
|
function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3627
3662
|
|
|
3628
3663
|
function _defineProperties$6(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3629
3664
|
|
|
3630
|
-
function _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); return Constructor; }
|
|
3631
|
-
|
|
3632
|
-
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3665
|
+
function _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
3633
3666
|
var EXTN_PATTERNS_FOR_MATCHING = createExtensionPattern('matching');
|
|
3634
3667
|
/**
|
|
3635
3668
|
* Patterns used to extract phone numbers from a larger phone-number-like pattern. These are
|
|
@@ -3710,17 +3743,7 @@ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;
|
|
|
3710
3743
|
* <p>This class is not thread-safe.
|
|
3711
3744
|
*/
|
|
3712
3745
|
|
|
3713
|
-
var PhoneNumberMatcher$1 =
|
|
3714
|
-
/*#__PURE__*/
|
|
3715
|
-
function () {
|
|
3716
|
-
/** The iteration tristate. */
|
|
3717
|
-
|
|
3718
|
-
/** The next index to start searching at. Undefined in {@link State#DONE}. */
|
|
3719
|
-
// A cache for frequently used country-specific regular expressions. Set to 32 to cover ~2-3
|
|
3720
|
-
// countries being used for the same doc with ~10 patterns for each country. Some pages will have
|
|
3721
|
-
// a lot more countries in use, but typically fewer numbers for each so expanding the cache for
|
|
3722
|
-
// that use-case won't have a lot of benefit.
|
|
3723
|
-
|
|
3746
|
+
var PhoneNumberMatcher$1 = /*#__PURE__*/function () {
|
|
3724
3747
|
/**
|
|
3725
3748
|
* Creates a new instance. See the factory methods in {@link PhoneNumberUtil} on how to obtain a
|
|
3726
3749
|
* new instance.
|
|
@@ -3743,13 +3766,7 @@ function () {
|
|
|
3743
3766
|
|
|
3744
3767
|
_classCallCheck$6(this, PhoneNumberMatcher);
|
|
3745
3768
|
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
_defineProperty$5(this, "searchIndex", 0);
|
|
3749
|
-
|
|
3750
|
-
_defineProperty$5(this, "regExpCache", new RegExpCache(32));
|
|
3751
|
-
|
|
3752
|
-
options = _objectSpread$1({}, options, {
|
|
3769
|
+
options = _objectSpread$1(_objectSpread$1({}, options), {}, {
|
|
3753
3770
|
defaultCallingCode: options.defaultCallingCode,
|
|
3754
3771
|
defaultCountry: options.defaultCountry && isSupportedCountry$1(options.defaultCountry, metadata) ? options.defaultCountry : undefined,
|
|
3755
3772
|
leniency: options.leniency || options.extended ? 'POSSIBLE' : 'VALID',
|
|
@@ -3779,6 +3796,17 @@ function () {
|
|
|
3779
3796
|
|
|
3780
3797
|
this.maxTries = options.maxTries;
|
|
3781
3798
|
this.PATTERN = new RegExp(PATTERN, 'ig');
|
|
3799
|
+
/** The iteration tristate. */
|
|
3800
|
+
|
|
3801
|
+
this.state = 'NOT_READY';
|
|
3802
|
+
/** The next index to start searching at. Undefined in {@link State#DONE}. */
|
|
3803
|
+
|
|
3804
|
+
this.searchIndex = 0; // A cache for frequently used country-specific regular expressions. Set to 32 to cover ~2-3
|
|
3805
|
+
// countries being used for the same doc with ~10 patterns for each country. Some pages will have
|
|
3806
|
+
// a lot more countries in use, but typically fewer numbers for each so expanding the cache for
|
|
3807
|
+
// that use-case won't have a lot of benefit.
|
|
3808
|
+
|
|
3809
|
+
this.regExpCache = new RegExpCache(32);
|
|
3782
3810
|
}
|
|
3783
3811
|
/**
|
|
3784
3812
|
* Attempts to find the next subsequence in the searched sequence on or after {@code searchIndex}
|
|
@@ -3837,8 +3865,8 @@ function () {
|
|
|
3837
3865
|
}, {
|
|
3838
3866
|
key: "extractInnerMatch",
|
|
3839
3867
|
value: function extractInnerMatch(substring, offset, text) {
|
|
3840
|
-
for (var
|
|
3841
|
-
var innerMatchPattern =
|
|
3868
|
+
for (var _iterator = _createForOfIteratorHelperLoose$3(INNER_MATCHES), _step; !(_step = _iterator()).done;) {
|
|
3869
|
+
var innerMatchPattern = _step.value;
|
|
3842
3870
|
var isFirstMatch = true;
|
|
3843
3871
|
var candidateMatch = void 0;
|
|
3844
3872
|
var innerMatchRegExp = new RegExp(innerMatchPattern, 'g');
|
|
@@ -3984,7 +4012,7 @@ function findNumbers$1() {
|
|
|
3984
4012
|
return findNumbers$2(text, options, metadata);
|
|
3985
4013
|
}
|
|
3986
4014
|
|
|
3987
|
-
function _defineProperty$
|
|
4015
|
+
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3988
4016
|
/**
|
|
3989
4017
|
* @return ES6 `for ... of` iterator.
|
|
3990
4018
|
*/
|
|
@@ -3996,7 +4024,7 @@ function searchNumbers$1() {
|
|
|
3996
4024
|
metadata = _normalizeArguments.metadata;
|
|
3997
4025
|
|
|
3998
4026
|
var matcher = new PhoneNumberMatcher$1(text, options, metadata);
|
|
3999
|
-
return _defineProperty$
|
|
4027
|
+
return _defineProperty$2({}, Symbol.iterator, function () {
|
|
4000
4028
|
return {
|
|
4001
4029
|
next: function next() {
|
|
4002
4030
|
if (matcher.hasNext()) {
|
|
@@ -4014,11 +4042,13 @@ function searchNumbers$1() {
|
|
|
4014
4042
|
});
|
|
4015
4043
|
}
|
|
4016
4044
|
|
|
4017
|
-
function _typeof$3(obj) {
|
|
4045
|
+
function _typeof$3(obj) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$3(obj); }
|
|
4018
4046
|
|
|
4019
|
-
function
|
|
4047
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4020
4048
|
|
|
4021
|
-
function
|
|
4049
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4050
|
+
|
|
4051
|
+
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4022
4052
|
function findPhoneNumbersInText$1(text, defaultCountry, options, metadata) {
|
|
4023
4053
|
var args = getArguments(defaultCountry, options, metadata);
|
|
4024
4054
|
return findNumbers$1(text, args.options, args.metadata);
|
|
@@ -4026,7 +4056,7 @@ function findPhoneNumbersInText$1(text, defaultCountry, options, metadata) {
|
|
|
4026
4056
|
function getArguments(defaultCountry, options, metadata) {
|
|
4027
4057
|
if (metadata) {
|
|
4028
4058
|
if (defaultCountry) {
|
|
4029
|
-
options = _objectSpread({}, options, {
|
|
4059
|
+
options = _objectSpread(_objectSpread({}, options), {}, {
|
|
4030
4060
|
defaultCountry: defaultCountry
|
|
4031
4061
|
});
|
|
4032
4062
|
}
|
|
@@ -4052,7 +4082,7 @@ function getArguments(defaultCountry, options, metadata) {
|
|
|
4052
4082
|
}
|
|
4053
4083
|
|
|
4054
4084
|
return {
|
|
4055
|
-
options: _objectSpread({}, options, {
|
|
4085
|
+
options: _objectSpread(_objectSpread({}, options), {}, {
|
|
4056
4086
|
v2: true
|
|
4057
4087
|
}),
|
|
4058
4088
|
metadata: metadata
|
|
@@ -4075,28 +4105,15 @@ function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Co
|
|
|
4075
4105
|
|
|
4076
4106
|
function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4077
4107
|
|
|
4078
|
-
function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
|
|
4108
|
+
function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4079
4109
|
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
var AsYouTypeState =
|
|
4083
|
-
/*#__PURE__*/
|
|
4084
|
-
function () {
|
|
4110
|
+
var AsYouTypeState = /*#__PURE__*/function () {
|
|
4085
4111
|
function AsYouTypeState(_ref) {
|
|
4086
|
-
var _this = this;
|
|
4087
|
-
|
|
4088
4112
|
var onCountryChange = _ref.onCountryChange,
|
|
4089
4113
|
onCallingCodeChange = _ref.onCallingCodeChange;
|
|
4090
4114
|
|
|
4091
4115
|
_classCallCheck$5(this, AsYouTypeState);
|
|
4092
4116
|
|
|
4093
|
-
_defineProperty$2(this, "update", function (properties) {
|
|
4094
|
-
for (var _i = 0, _Object$keys = Object.keys(properties); _i < _Object$keys.length; _i++) {
|
|
4095
|
-
var key = _Object$keys[_i];
|
|
4096
|
-
_this[key] = properties[key];
|
|
4097
|
-
}
|
|
4098
|
-
});
|
|
4099
|
-
|
|
4100
4117
|
this.onCountryChange = onCountryChange;
|
|
4101
4118
|
this.onCallingCodeChange = onCallingCodeChange;
|
|
4102
4119
|
}
|
|
@@ -4121,6 +4138,14 @@ function () {
|
|
|
4121
4138
|
this.carrierCode = undefined;
|
|
4122
4139
|
this.complexPrefixBeforeNationalSignificantNumber = undefined;
|
|
4123
4140
|
}
|
|
4141
|
+
}, {
|
|
4142
|
+
key: "update",
|
|
4143
|
+
value: function update(properties) {
|
|
4144
|
+
for (var _i = 0, _Object$keys = Object.keys(properties); _i < _Object$keys.length; _i++) {
|
|
4145
|
+
var key = _Object$keys[_i];
|
|
4146
|
+
this[key] = properties[key];
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4124
4149
|
}, {
|
|
4125
4150
|
key: "initCountryAndCallingCode",
|
|
4126
4151
|
value: function initCountryAndCallingCode(country, callingCode) {
|
|
@@ -4192,6 +4217,12 @@ function () {
|
|
|
4192
4217
|
return AsYouTypeState;
|
|
4193
4218
|
}();
|
|
4194
4219
|
|
|
4220
|
+
function _createForOfIteratorHelperLoose$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4221
|
+
|
|
4222
|
+
function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
|
|
4223
|
+
|
|
4224
|
+
function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4225
|
+
|
|
4195
4226
|
// Should be the same as `DIGIT_PLACEHOLDER` in `libphonenumber-metadata-generator`.
|
|
4196
4227
|
var DIGIT_PLACEHOLDER = 'x'; // '\u2008' (punctuation space)
|
|
4197
4228
|
|
|
@@ -4205,19 +4236,8 @@ function countOccurences(symbol, string) {
|
|
|
4205
4236
|
// but in this particular case for counting brackets it is safe.
|
|
4206
4237
|
// for (const character of string)
|
|
4207
4238
|
|
|
4208
|
-
for (var _iterator = string.split(''),
|
|
4209
|
-
var
|
|
4210
|
-
|
|
4211
|
-
if (_isArray) {
|
|
4212
|
-
if (_i >= _iterator.length) break;
|
|
4213
|
-
_ref = _iterator[_i++];
|
|
4214
|
-
} else {
|
|
4215
|
-
_i = _iterator.next();
|
|
4216
|
-
if (_i.done) break;
|
|
4217
|
-
_ref = _i.value;
|
|
4218
|
-
}
|
|
4219
|
-
|
|
4220
|
-
var character = _ref;
|
|
4239
|
+
for (var _iterator = _createForOfIteratorHelperLoose$2(string.split('')), _step; !(_step = _iterator()).done;) {
|
|
4240
|
+
var character = _step.value;
|
|
4221
4241
|
|
|
4222
4242
|
if (character === symbol) {
|
|
4223
4243
|
count++;
|
|
@@ -4287,8 +4307,8 @@ function stripNonPairedParens(string) {
|
|
|
4287
4307
|
var cleared_string = '';
|
|
4288
4308
|
dangling_braces.push(string.length);
|
|
4289
4309
|
|
|
4290
|
-
for (var
|
|
4291
|
-
var index = _dangling_braces[
|
|
4310
|
+
for (var _i = 0, _dangling_braces = dangling_braces; _i < _dangling_braces.length; _i++) {
|
|
4311
|
+
var index = _dangling_braces[_i];
|
|
4292
4312
|
cleared_string += string.slice(start, index);
|
|
4293
4313
|
start = index + 1;
|
|
4294
4314
|
}
|
|
@@ -4301,19 +4321,8 @@ function populateTemplateWithDigits(template, position, digits) {
|
|
|
4301
4321
|
// `.split('')` is generally not safe for Unicode,
|
|
4302
4322
|
// but in this particular case for `digits` it is safe.
|
|
4303
4323
|
// for (const digit of digits)
|
|
4304
|
-
for (var _iterator2 = digits.split(''),
|
|
4305
|
-
var
|
|
4306
|
-
|
|
4307
|
-
if (_isArray2) {
|
|
4308
|
-
if (_i3 >= _iterator2.length) break;
|
|
4309
|
-
_ref2 = _iterator2[_i3++];
|
|
4310
|
-
} else {
|
|
4311
|
-
_i3 = _iterator2.next();
|
|
4312
|
-
if (_i3.done) break;
|
|
4313
|
-
_ref2 = _i3.value;
|
|
4314
|
-
}
|
|
4315
|
-
|
|
4316
|
-
var digit = _ref2;
|
|
4324
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$2(digits.split('')), _step2; !(_step2 = _iterator2()).done;) {
|
|
4325
|
+
var digit = _step2.value;
|
|
4317
4326
|
|
|
4318
4327
|
// If there is room for more digits in current `template`,
|
|
4319
4328
|
// then set the next digit in the `template`,
|
|
@@ -4446,15 +4455,19 @@ function isValidFormattedNationalNumber(formattedNationalNumber, state) {
|
|
|
4446
4455
|
return parseDigits(formattedNationalNumber) === state.getNationalDigits();
|
|
4447
4456
|
}
|
|
4448
4457
|
|
|
4458
|
+
function _createForOfIteratorHelperLoose$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4459
|
+
|
|
4460
|
+
function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
|
|
4461
|
+
|
|
4462
|
+
function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4463
|
+
|
|
4449
4464
|
function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4450
4465
|
|
|
4451
4466
|
function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4452
4467
|
|
|
4453
|
-
function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
|
|
4468
|
+
function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4454
4469
|
|
|
4455
|
-
var PatternMatcher =
|
|
4456
|
-
/*#__PURE__*/
|
|
4457
|
-
function () {
|
|
4470
|
+
var PatternMatcher = /*#__PURE__*/function () {
|
|
4458
4471
|
function PatternMatcher(pattern) {
|
|
4459
4472
|
_classCallCheck$4(this, PatternMatcher);
|
|
4460
4473
|
|
|
@@ -4602,19 +4615,8 @@ function _match(characters, tree, last) {
|
|
|
4602
4615
|
case '|':
|
|
4603
4616
|
var partialMatch;
|
|
4604
4617
|
|
|
4605
|
-
for (var _iterator = tree.args,
|
|
4606
|
-
var
|
|
4607
|
-
|
|
4608
|
-
if (_isArray) {
|
|
4609
|
-
if (_i >= _iterator.length) break;
|
|
4610
|
-
_ref2 = _iterator[_i++];
|
|
4611
|
-
} else {
|
|
4612
|
-
_i = _iterator.next();
|
|
4613
|
-
if (_i.done) break;
|
|
4614
|
-
_ref2 = _i.value;
|
|
4615
|
-
}
|
|
4616
|
-
|
|
4617
|
-
var branch = _ref2;
|
|
4618
|
+
for (var _iterator = _createForOfIteratorHelperLoose$1(tree.args), _step; !(_step = _iterator()).done;) {
|
|
4619
|
+
var branch = _step.value;
|
|
4618
4620
|
|
|
4619
4621
|
var _result = _match(characters, branch, last);
|
|
4620
4622
|
|
|
@@ -4648,19 +4650,8 @@ function _match(characters, tree, last) {
|
|
|
4648
4650
|
return;
|
|
4649
4651
|
|
|
4650
4652
|
case '[]':
|
|
4651
|
-
for (var _iterator2 = tree.args,
|
|
4652
|
-
var
|
|
4653
|
-
|
|
4654
|
-
if (_isArray2) {
|
|
4655
|
-
if (_i2 >= _iterator2.length) break;
|
|
4656
|
-
_ref3 = _iterator2[_i2++];
|
|
4657
|
-
} else {
|
|
4658
|
-
_i2 = _iterator2.next();
|
|
4659
|
-
if (_i2.done) break;
|
|
4660
|
-
_ref3 = _i2.value;
|
|
4661
|
-
}
|
|
4662
|
-
|
|
4663
|
-
var _char = _ref3;
|
|
4653
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$1(tree.args), _step2; !(_step2 = _iterator2()).done;) {
|
|
4654
|
+
var _char = _step2.value;
|
|
4664
4655
|
|
|
4665
4656
|
if (characters[0] === _char) {
|
|
4666
4657
|
if (characters.length === 1) {
|
|
@@ -4706,9 +4697,7 @@ var OPERATOR = new RegExp( // any of:
|
|
|
4706
4697
|
'\\]' + ')');
|
|
4707
4698
|
var ILLEGAL_CHARACTER_REGEXP = /[\(\)\[\]\?\:\|]/;
|
|
4708
4699
|
|
|
4709
|
-
var PatternParser =
|
|
4710
|
-
/*#__PURE__*/
|
|
4711
|
-
function () {
|
|
4700
|
+
var PatternParser = /*#__PURE__*/function () {
|
|
4712
4701
|
function PatternParser() {
|
|
4713
4702
|
_classCallCheck$4(this, PatternParser);
|
|
4714
4703
|
}
|
|
@@ -4909,13 +4898,17 @@ function parseOneOfSet(pattern) {
|
|
|
4909
4898
|
return values;
|
|
4910
4899
|
}
|
|
4911
4900
|
|
|
4901
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4902
|
+
|
|
4903
|
+
function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
|
|
4904
|
+
|
|
4905
|
+
function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4906
|
+
|
|
4912
4907
|
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4913
4908
|
|
|
4914
4909
|
function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4915
4910
|
|
|
4916
|
-
function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
|
|
4917
|
-
|
|
4918
|
-
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4911
|
+
function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4919
4912
|
// Could be any digit, I guess.
|
|
4920
4913
|
|
|
4921
4914
|
var DUMMY_DIGIT = '9'; // I don't know why is it exactly `15`
|
|
@@ -4992,57 +4985,13 @@ var NON_ALTERING_FORMAT_REG_EXP = new RegExp('[' + VALID_PUNCTUATION + ']*' + //
|
|
|
4992
4985
|
|
|
4993
4986
|
var MIN_LEADING_DIGITS_LENGTH = 3;
|
|
4994
4987
|
|
|
4995
|
-
var AsYouTypeFormatter =
|
|
4996
|
-
/*#__PURE__*/
|
|
4997
|
-
function () {
|
|
4988
|
+
var AsYouTypeFormatter = /*#__PURE__*/function () {
|
|
4998
4989
|
function AsYouTypeFormatter(_ref) {
|
|
4999
|
-
var _this = this;
|
|
5000
|
-
|
|
5001
4990
|
var state = _ref.state,
|
|
5002
4991
|
metadata = _ref.metadata;
|
|
5003
4992
|
|
|
5004
4993
|
_classCallCheck$3(this, AsYouTypeFormatter);
|
|
5005
4994
|
|
|
5006
|
-
_defineProperty$1(this, "getSeparatorAfterNationalPrefix", function (format) {
|
|
5007
|
-
// `US` metadata doesn't have a `national_prefix_formatting_rule`,
|
|
5008
|
-
// so the `if` condition below doesn't apply to `US`,
|
|
5009
|
-
// but in reality there shoudl be a separator
|
|
5010
|
-
// between a national prefix and a national (significant) number.
|
|
5011
|
-
// So `US` national prefix separator is a "special" "hardcoded" case.
|
|
5012
|
-
if (_this.isNANP) {
|
|
5013
|
-
return ' ';
|
|
5014
|
-
} // If a `format` has a `national_prefix_formatting_rule`
|
|
5015
|
-
// and that rule has a separator after a national prefix,
|
|
5016
|
-
// then it means that there should be a separator
|
|
5017
|
-
// between a national prefix and a national (significant) number.
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
if (format && format.nationalPrefixFormattingRule() && NATIONAL_PREFIX_SEPARATORS_PATTERN.test(format.nationalPrefixFormattingRule())) {
|
|
5021
|
-
return ' ';
|
|
5022
|
-
} // At this point, there seems to be no clear evidence that
|
|
5023
|
-
// there should be a separator between a national prefix
|
|
5024
|
-
// and a national (significant) number. So don't insert one.
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
return '';
|
|
5028
|
-
});
|
|
5029
|
-
|
|
5030
|
-
_defineProperty$1(this, "shouldTryNationalPrefixFormattingRule", function (format, _ref2) {
|
|
5031
|
-
var international = _ref2.international,
|
|
5032
|
-
nationalPrefix = _ref2.nationalPrefix;
|
|
5033
|
-
|
|
5034
|
-
if (format.nationalPrefixFormattingRule()) {
|
|
5035
|
-
// In some countries, `national_prefix_formatting_rule` is `($1)`,
|
|
5036
|
-
// so it applies even if the user hasn't input a national prefix.
|
|
5037
|
-
// `format.usesNationalPrefix()` detects such cases.
|
|
5038
|
-
var usesNationalPrefix = format.usesNationalPrefix();
|
|
5039
|
-
|
|
5040
|
-
if (usesNationalPrefix && nationalPrefix || !usesNationalPrefix && !international) {
|
|
5041
|
-
return true;
|
|
5042
|
-
}
|
|
5043
|
-
}
|
|
5044
|
-
});
|
|
5045
|
-
|
|
5046
4995
|
this.metadata = metadata;
|
|
5047
4996
|
this.resetFormat();
|
|
5048
4997
|
}
|
|
@@ -5083,7 +5032,7 @@ function () {
|
|
|
5083
5032
|
}, {
|
|
5084
5033
|
key: "format",
|
|
5085
5034
|
value: function format(nextDigits, state) {
|
|
5086
|
-
var
|
|
5035
|
+
var _this = this;
|
|
5087
5036
|
|
|
5088
5037
|
// See if the phone number digits can be formatted as a complete phone number.
|
|
5089
5038
|
// If not, use the results from `formatNationalNumberWithNextDigits()`,
|
|
@@ -5100,28 +5049,19 @@ function () {
|
|
|
5100
5049
|
// whose leadingDigitsPattern also matches the input."
|
|
5101
5050
|
//
|
|
5102
5051
|
if (canFormatCompleteNumber(state.nationalSignificantNumber, this.metadata)) {
|
|
5103
|
-
for (var _iterator = this.matchingFormats,
|
|
5104
|
-
var
|
|
5105
|
-
|
|
5106
|
-
if (_isArray) {
|
|
5107
|
-
if (_i >= _iterator.length) break;
|
|
5108
|
-
_ref3 = _iterator[_i++];
|
|
5109
|
-
} else {
|
|
5110
|
-
_i = _iterator.next();
|
|
5111
|
-
if (_i.done) break;
|
|
5112
|
-
_ref3 = _i.value;
|
|
5113
|
-
}
|
|
5114
|
-
|
|
5115
|
-
var format = _ref3;
|
|
5052
|
+
for (var _iterator = _createForOfIteratorHelperLoose(this.matchingFormats), _step; !(_step = _iterator()).done;) {
|
|
5053
|
+
var format = _step.value;
|
|
5116
5054
|
var formattedCompleteNumber = formatCompleteNumber(state, format, {
|
|
5117
5055
|
metadata: this.metadata,
|
|
5118
5056
|
shouldTryNationalPrefixFormattingRule: function shouldTryNationalPrefixFormattingRule(format) {
|
|
5119
|
-
return
|
|
5057
|
+
return _this.shouldTryNationalPrefixFormattingRule(format, {
|
|
5120
5058
|
international: state.international,
|
|
5121
5059
|
nationalPrefix: state.nationalPrefix
|
|
5122
5060
|
});
|
|
5123
5061
|
},
|
|
5124
|
-
getSeparatorAfterNationalPrefix:
|
|
5062
|
+
getSeparatorAfterNationalPrefix: function getSeparatorAfterNationalPrefix(format) {
|
|
5063
|
+
return _this.getSeparatorAfterNationalPrefix(format);
|
|
5064
|
+
}
|
|
5125
5065
|
});
|
|
5126
5066
|
|
|
5127
5067
|
if (formattedCompleteNumber) {
|
|
@@ -5166,12 +5106,12 @@ function () {
|
|
|
5166
5106
|
}
|
|
5167
5107
|
}, {
|
|
5168
5108
|
key: "narrowDownMatchingFormats",
|
|
5169
|
-
value: function narrowDownMatchingFormats(
|
|
5170
|
-
var
|
|
5109
|
+
value: function narrowDownMatchingFormats(_ref2) {
|
|
5110
|
+
var _this2 = this;
|
|
5171
5111
|
|
|
5172
|
-
var nationalSignificantNumber =
|
|
5173
|
-
nationalPrefix =
|
|
5174
|
-
international =
|
|
5112
|
+
var nationalSignificantNumber = _ref2.nationalSignificantNumber,
|
|
5113
|
+
nationalPrefix = _ref2.nationalPrefix,
|
|
5114
|
+
international = _ref2.international;
|
|
5175
5115
|
var leadingDigits = nationalSignificantNumber; // "leading digits" pattern list starts with a
|
|
5176
5116
|
// "leading digits" pattern fitting a maximum of 3 leading digits.
|
|
5177
5117
|
// So, after a user inputs 3 digits of a national (significant) phone number
|
|
@@ -5191,7 +5131,7 @@ function () {
|
|
|
5191
5131
|
}
|
|
5192
5132
|
|
|
5193
5133
|
this.matchingFormats = this.matchingFormats.filter(function (format) {
|
|
5194
|
-
return
|
|
5134
|
+
return _this2.formatSuits(format, international, nationalPrefix) && _this2.formatMatches(format, leadingDigits, leadingDigitsPatternIndex);
|
|
5195
5135
|
}); // If there was a phone number format chosen
|
|
5196
5136
|
// and it no longer holds given the new leading digits then reset it.
|
|
5197
5137
|
// The test for this `if` condition is marked as:
|
|
@@ -5238,6 +5178,7 @@ function () {
|
|
|
5238
5178
|
value: function formatMatches(format, leadingDigits, leadingDigitsPatternIndex) {
|
|
5239
5179
|
var leadingDigitsPatternsCount = format.leadingDigitsPatterns().length; // If this format is not restricted to a certain
|
|
5240
5180
|
// leading digits pattern then it fits.
|
|
5181
|
+
// The test case could be found by searching for "leadingDigitsPatternsCount === 0".
|
|
5241
5182
|
|
|
5242
5183
|
if (leadingDigitsPatternsCount === 0) {
|
|
5243
5184
|
return true;
|
|
@@ -5311,23 +5252,14 @@ function () {
|
|
|
5311
5252
|
}, {
|
|
5312
5253
|
key: "chooseFormat",
|
|
5313
5254
|
value: function chooseFormat(state) {
|
|
5314
|
-
var
|
|
5315
|
-
|
|
5316
|
-
var _loop2 = function _loop2() {
|
|
5317
|
-
if (_isArray2) {
|
|
5318
|
-
if (_i2 >= _iterator2.length) return "break";
|
|
5319
|
-
_ref5 = _iterator2[_i2++];
|
|
5320
|
-
} else {
|
|
5321
|
-
_i2 = _iterator2.next();
|
|
5322
|
-
if (_i2.done) return "break";
|
|
5323
|
-
_ref5 = _i2.value;
|
|
5324
|
-
}
|
|
5255
|
+
var _this3 = this;
|
|
5325
5256
|
|
|
5326
|
-
|
|
5257
|
+
var _loop = function _loop() {
|
|
5258
|
+
var format = _step2.value;
|
|
5327
5259
|
|
|
5328
5260
|
// If this format is currently being used
|
|
5329
5261
|
// and is still suitable, then stick to it.
|
|
5330
|
-
if (
|
|
5262
|
+
if (_this3.chosenFormat === format) {
|
|
5331
5263
|
return "break";
|
|
5332
5264
|
} // Sometimes, a formatting rule inserts additional digits in a phone number,
|
|
5333
5265
|
// and "as you type" formatter can't do that: it should only use the digits
|
|
@@ -5371,36 +5303,43 @@ function () {
|
|
|
5371
5303
|
/* istanbul ignore if */
|
|
5372
5304
|
|
|
5373
5305
|
|
|
5374
|
-
if (!NON_ALTERING_FORMAT_REG_EXP.test(
|
|
5306
|
+
if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state.international))) {
|
|
5375
5307
|
return "continue";
|
|
5376
5308
|
}
|
|
5377
5309
|
|
|
5378
|
-
if (!
|
|
5310
|
+
if (!_this3.createTemplateForFormat(format, state)) {
|
|
5379
5311
|
// Remove the format if it can't generate a template.
|
|
5380
|
-
|
|
5312
|
+
_this3.matchingFormats = _this3.matchingFormats.filter(function (_) {
|
|
5381
5313
|
return _ !== format;
|
|
5382
5314
|
});
|
|
5383
5315
|
return "continue";
|
|
5384
5316
|
}
|
|
5385
5317
|
|
|
5386
|
-
|
|
5318
|
+
_this3.chosenFormat = format;
|
|
5387
5319
|
return "break";
|
|
5388
5320
|
};
|
|
5389
5321
|
|
|
5390
5322
|
// When there are multiple available formats, the formatter uses the first
|
|
5391
5323
|
// format where a formatting template could be created.
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5324
|
+
//
|
|
5325
|
+
// For some weird reason, `istanbul` says "else path not taken"
|
|
5326
|
+
// for the `for of` line below. Supposedly that means that
|
|
5327
|
+
// the loop doesn't ever go over the last element in the list.
|
|
5328
|
+
// That's true because there always is `this.chosenFormat`
|
|
5329
|
+
// when `this.matchingFormats` is non-empty.
|
|
5330
|
+
// And, for some weird reason, it doesn't think that the case
|
|
5331
|
+
// with empty `this.matchingFormats` qualifies for a valid "else" path.
|
|
5332
|
+
// So simply muting this `istanbul` warning.
|
|
5333
|
+
// It doesn't skip the contents of the `for of` loop,
|
|
5334
|
+
// it just skips the `for of` line.
|
|
5335
|
+
//
|
|
5396
5336
|
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5337
|
+
/* istanbul ignore next */
|
|
5338
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(this.matchingFormats.slice()), _step2; !(_step2 = _iterator2()).done;) {
|
|
5339
|
+
var _ret = _loop();
|
|
5400
5340
|
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
}
|
|
5341
|
+
if (_ret === "break") break;
|
|
5342
|
+
if (_ret === "continue") continue;
|
|
5404
5343
|
}
|
|
5405
5344
|
|
|
5406
5345
|
if (!this.chosenFormat) {
|
|
@@ -5431,11 +5370,36 @@ function () {
|
|
|
5431
5370
|
return true;
|
|
5432
5371
|
}
|
|
5433
5372
|
}
|
|
5373
|
+
}, {
|
|
5374
|
+
key: "getSeparatorAfterNationalPrefix",
|
|
5375
|
+
value: function getSeparatorAfterNationalPrefix(format) {
|
|
5376
|
+
// `US` metadata doesn't have a `national_prefix_formatting_rule`,
|
|
5377
|
+
// so the `if` condition below doesn't apply to `US`,
|
|
5378
|
+
// but in reality there shoudl be a separator
|
|
5379
|
+
// between a national prefix and a national (significant) number.
|
|
5380
|
+
// So `US` national prefix separator is a "special" "hardcoded" case.
|
|
5381
|
+
if (this.isNANP) {
|
|
5382
|
+
return ' ';
|
|
5383
|
+
} // If a `format` has a `national_prefix_formatting_rule`
|
|
5384
|
+
// and that rule has a separator after a national prefix,
|
|
5385
|
+
// then it means that there should be a separator
|
|
5386
|
+
// between a national prefix and a national (significant) number.
|
|
5387
|
+
|
|
5388
|
+
|
|
5389
|
+
if (format && format.nationalPrefixFormattingRule() && NATIONAL_PREFIX_SEPARATORS_PATTERN.test(format.nationalPrefixFormattingRule())) {
|
|
5390
|
+
return ' ';
|
|
5391
|
+
} // At this point, there seems to be no clear evidence that
|
|
5392
|
+
// there should be a separator between a national prefix
|
|
5393
|
+
// and a national (significant) number. So don't insert one.
|
|
5394
|
+
|
|
5395
|
+
|
|
5396
|
+
return '';
|
|
5397
|
+
}
|
|
5434
5398
|
}, {
|
|
5435
5399
|
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
5436
|
-
value: function getInternationalPrefixBeforeCountryCallingCode(
|
|
5437
|
-
var IDDPrefix =
|
|
5438
|
-
missingPlus =
|
|
5400
|
+
value: function getInternationalPrefixBeforeCountryCallingCode(_ref3, options) {
|
|
5401
|
+
var IDDPrefix = _ref3.IDDPrefix,
|
|
5402
|
+
missingPlus = _ref3.missingPlus;
|
|
5439
5403
|
|
|
5440
5404
|
if (IDDPrefix) {
|
|
5441
5405
|
return options && options.spacing === false ? IDDPrefix : IDDPrefix + ' ';
|
|
@@ -5499,11 +5463,11 @@ function () {
|
|
|
5499
5463
|
|
|
5500
5464
|
}, {
|
|
5501
5465
|
key: "getTemplateForFormat",
|
|
5502
|
-
value: function getTemplateForFormat(format,
|
|
5503
|
-
var nationalSignificantNumber =
|
|
5504
|
-
international =
|
|
5505
|
-
nationalPrefix =
|
|
5506
|
-
complexPrefixBeforeNationalSignificantNumber =
|
|
5466
|
+
value: function getTemplateForFormat(format, _ref4) {
|
|
5467
|
+
var nationalSignificantNumber = _ref4.nationalSignificantNumber,
|
|
5468
|
+
international = _ref4.international,
|
|
5469
|
+
nationalPrefix = _ref4.nationalPrefix,
|
|
5470
|
+
complexPrefixBeforeNationalSignificantNumber = _ref4.complexPrefixBeforeNationalSignificantNumber;
|
|
5507
5471
|
var pattern = format.pattern();
|
|
5508
5472
|
/* istanbul ignore else */
|
|
5509
5473
|
|
|
@@ -5648,16 +5612,37 @@ function () {
|
|
|
5648
5612
|
// return closeNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1)
|
|
5649
5613
|
// .replace(new RegExp(DIGIT_PLACEHOLDER, 'g'), ' ')
|
|
5650
5614
|
}
|
|
5615
|
+
}, {
|
|
5616
|
+
key: "shouldTryNationalPrefixFormattingRule",
|
|
5617
|
+
value: function shouldTryNationalPrefixFormattingRule(format, _ref5) {
|
|
5618
|
+
var international = _ref5.international,
|
|
5619
|
+
nationalPrefix = _ref5.nationalPrefix;
|
|
5620
|
+
|
|
5621
|
+
if (format.nationalPrefixFormattingRule()) {
|
|
5622
|
+
// In some countries, `national_prefix_formatting_rule` is `($1)`,
|
|
5623
|
+
// so it applies even if the user hasn't input a national prefix.
|
|
5624
|
+
// `format.usesNationalPrefix()` detects such cases.
|
|
5625
|
+
var usesNationalPrefix = format.usesNationalPrefix();
|
|
5626
|
+
|
|
5627
|
+
if (usesNationalPrefix && nationalPrefix || !usesNationalPrefix && !international) {
|
|
5628
|
+
return true;
|
|
5629
|
+
}
|
|
5630
|
+
}
|
|
5631
|
+
}
|
|
5651
5632
|
}]);
|
|
5652
5633
|
|
|
5653
5634
|
return AsYouTypeFormatter;
|
|
5654
5635
|
}();
|
|
5655
5636
|
|
|
5656
|
-
function _slicedToArray$3(arr, i) { return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _nonIterableRest$3(); }
|
|
5637
|
+
function _slicedToArray$3(arr, i) { return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$3(); }
|
|
5638
|
+
|
|
5639
|
+
function _nonIterableRest$3() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5657
5640
|
|
|
5658
|
-
function
|
|
5641
|
+
function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
|
|
5659
5642
|
|
|
5660
|
-
function
|
|
5643
|
+
function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5644
|
+
|
|
5645
|
+
function _iterableToArrayLimit$3(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5661
5646
|
|
|
5662
5647
|
function _arrayWithHoles$3(arr) { if (Array.isArray(arr)) return arr; }
|
|
5663
5648
|
|
|
@@ -5665,7 +5650,7 @@ function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Co
|
|
|
5665
5650
|
|
|
5666
5651
|
function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5667
5652
|
|
|
5668
|
-
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
|
|
5653
|
+
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5669
5654
|
var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';
|
|
5670
5655
|
var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');
|
|
5671
5656
|
var VALID_FORMATTED_PHONE_NUMBER_PART = '(?:' + '[' + PLUS_CHARS + ']' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*' + '|' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + ')';
|
|
@@ -5675,9 +5660,7 @@ var AFTER_PHONE_NUMBER_DIGITS_END_PATTERN = new RegExp('[^' + VALID_PUNCTUATION
|
|
|
5675
5660
|
|
|
5676
5661
|
var COMPLEX_NATIONAL_PREFIX = /[^\d\[\]]/;
|
|
5677
5662
|
|
|
5678
|
-
var AsYouTypeParser =
|
|
5679
|
-
/*#__PURE__*/
|
|
5680
|
-
function () {
|
|
5663
|
+
var AsYouTypeParser = /*#__PURE__*/function () {
|
|
5681
5664
|
function AsYouTypeParser(_ref) {
|
|
5682
5665
|
var defaultCountry = _ref.defaultCountry,
|
|
5683
5666
|
defaultCallingCode = _ref.defaultCallingCode,
|
|
@@ -5769,7 +5752,9 @@ function () {
|
|
|
5769
5752
|
|
|
5770
5753
|
if (!state.international) {
|
|
5771
5754
|
if (!this.hasExtractedNationalSignificantNumber) {
|
|
5772
|
-
this.extractNationalSignificantNumber(state.getNationalDigits(),
|
|
5755
|
+
this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {
|
|
5756
|
+
return state.update(stateUpdate);
|
|
5757
|
+
});
|
|
5773
5758
|
}
|
|
5774
5759
|
}
|
|
5775
5760
|
}
|
|
@@ -5952,7 +5937,9 @@ function () {
|
|
|
5952
5937
|
// Google's demo output:
|
|
5953
5938
|
// https://libphonenumber.appspot.com/phonenumberparser?number=%2b5215512345678&country=MX
|
|
5954
5939
|
//
|
|
5955
|
-
if (this.extractAnotherNationalSignificantNumber(state.getNationalDigits(), state.nationalSignificantNumber,
|
|
5940
|
+
if (this.extractAnotherNationalSignificantNumber(state.getNationalDigits(), state.nationalSignificantNumber, function (stateUpdate) {
|
|
5941
|
+
return state.update(stateUpdate);
|
|
5942
|
+
})) {
|
|
5956
5943
|
return true;
|
|
5957
5944
|
} // If no format matches the phone number, then it could be
|
|
5958
5945
|
// "a really long IDD" (quote from a comment in Google's library).
|
|
@@ -6055,7 +6042,9 @@ function () {
|
|
|
6055
6042
|
// for an international number if such number couldn't be formatted,
|
|
6056
6043
|
// but since it's already not able to be formatted,
|
|
6057
6044
|
// there won't be yet another retry, so also extract national prefix here.
|
|
6058
|
-
this.extractNationalSignificantNumber(state.getNationalDigits(),
|
|
6045
|
+
this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {
|
|
6046
|
+
return state.update(stateUpdate);
|
|
6047
|
+
});
|
|
6059
6048
|
}
|
|
6060
6049
|
}
|
|
6061
6050
|
}]);
|
|
@@ -6130,13 +6119,17 @@ function extractFormattedDigitsAndPlus(text) {
|
|
|
6130
6119
|
return [formattedDigits, hasPlus];
|
|
6131
6120
|
}
|
|
6132
6121
|
|
|
6133
|
-
function _typeof$2(obj) {
|
|
6122
|
+
function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$2(obj); }
|
|
6123
|
+
|
|
6124
|
+
function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2(); }
|
|
6125
|
+
|
|
6126
|
+
function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6134
6127
|
|
|
6135
|
-
function
|
|
6128
|
+
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
6136
6129
|
|
|
6137
|
-
function
|
|
6130
|
+
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6138
6131
|
|
|
6139
|
-
function _iterableToArrayLimit$2(arr, i) { var _arr = []; var _n = true; var _d = false; var _e
|
|
6132
|
+
function _iterableToArrayLimit$2(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
6140
6133
|
|
|
6141
6134
|
function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
|
|
6142
6135
|
|
|
@@ -6144,12 +6137,10 @@ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Co
|
|
|
6144
6137
|
|
|
6145
6138
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6146
6139
|
|
|
6147
|
-
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
6140
|
+
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6148
6141
|
var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
|
|
6149
6142
|
|
|
6150
|
-
var AsYouType$1 =
|
|
6151
|
-
/*#__PURE__*/
|
|
6152
|
-
function () {
|
|
6143
|
+
var AsYouType$1 = /*#__PURE__*/function () {
|
|
6153
6144
|
/**
|
|
6154
6145
|
* @param {(string|object)?} [optionsOrDefaultCountry] - The default country used for parsing non-international phone numbers. Can also be an `options` object.
|
|
6155
6146
|
* @param {Object} metadata
|
|
@@ -6759,13 +6750,17 @@ function parse() {
|
|
|
6759
6750
|
return withMetadata(parseNumber, arguments)
|
|
6760
6751
|
}
|
|
6761
6752
|
|
|
6762
|
-
function _typeof$1(obj) {
|
|
6753
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
|
|
6763
6754
|
|
|
6764
|
-
function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1(); }
|
|
6755
|
+
function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1(); }
|
|
6765
6756
|
|
|
6766
|
-
function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
6757
|
+
function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6767
6758
|
|
|
6768
|
-
function
|
|
6759
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
6760
|
+
|
|
6761
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6762
|
+
|
|
6763
|
+
function _iterableToArrayLimit$1(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
6769
6764
|
|
|
6770
6765
|
function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
|
|
6771
6766
|
function formatNumber$1() {
|
|
@@ -6814,27 +6809,10 @@ function normalizeArguments$1(args) {
|
|
|
6814
6809
|
} // Just an international phone number is supplied
|
|
6815
6810
|
// `format('+78005553535', 'NATIONAL', [options], metadata)`.
|
|
6816
6811
|
else {
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
}
|
|
6820
|
-
|
|
6821
|
-
format = arg_2;
|
|
6822
|
-
|
|
6823
|
-
if (arg_4) {
|
|
6824
|
-
options = arg_3;
|
|
6825
|
-
metadata = arg_4;
|
|
6826
|
-
} else {
|
|
6827
|
-
metadata = arg_3;
|
|
6828
|
-
}
|
|
6829
|
-
|
|
6830
|
-
input = parse$1(arg_1, {
|
|
6831
|
-
extended: true
|
|
6832
|
-
}, metadata);
|
|
6812
|
+
if (typeof arg_2 !== 'string') {
|
|
6813
|
+
throw new Error('`format` argument not passed to `formatNumber(number, format)`');
|
|
6833
6814
|
}
|
|
6834
|
-
|
|
6835
|
-
// `format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', [options], metadata)`.
|
|
6836
|
-
else if (is_object$1(arg_1)) {
|
|
6837
|
-
input = arg_1;
|
|
6815
|
+
|
|
6838
6816
|
format = arg_2;
|
|
6839
6817
|
|
|
6840
6818
|
if (arg_4) {
|
|
@@ -6843,7 +6821,24 @@ function normalizeArguments$1(args) {
|
|
|
6843
6821
|
} else {
|
|
6844
6822
|
metadata = arg_3;
|
|
6845
6823
|
}
|
|
6846
|
-
|
|
6824
|
+
|
|
6825
|
+
input = parse$1(arg_1, {
|
|
6826
|
+
extended: true
|
|
6827
|
+
}, metadata);
|
|
6828
|
+
}
|
|
6829
|
+
} // If the phone number is passed as a parsed number object.
|
|
6830
|
+
// `format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', [options], metadata)`.
|
|
6831
|
+
else if (is_object$1(arg_1)) {
|
|
6832
|
+
input = arg_1;
|
|
6833
|
+
format = arg_2;
|
|
6834
|
+
|
|
6835
|
+
if (arg_4) {
|
|
6836
|
+
options = arg_3;
|
|
6837
|
+
metadata = arg_4;
|
|
6838
|
+
} else {
|
|
6839
|
+
metadata = arg_3;
|
|
6840
|
+
}
|
|
6841
|
+
} else throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.'); // Legacy lowercase formats.
|
|
6847
6842
|
|
|
6848
6843
|
|
|
6849
6844
|
if (format === 'International') {
|
|
@@ -6872,13 +6867,17 @@ function format() {
|
|
|
6872
6867
|
return withMetadata(formatNumber$1, arguments)
|
|
6873
6868
|
}
|
|
6874
6869
|
|
|
6875
|
-
function _typeof(obj) {
|
|
6870
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
6871
|
+
|
|
6872
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6876
6873
|
|
|
6877
|
-
function
|
|
6874
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6878
6875
|
|
|
6879
|
-
function
|
|
6876
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6880
6877
|
|
|
6881
|
-
function
|
|
6878
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6879
|
+
|
|
6880
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
6882
6881
|
|
|
6883
6882
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
6884
6883
|
|
|
@@ -6932,36 +6931,36 @@ function normalizeArguments(args) {
|
|
|
6932
6931
|
// International phone number is passed.
|
|
6933
6932
|
// `getNumberType('+78005553535', metadata)`.
|
|
6934
6933
|
else {
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6934
|
+
if (arg_3) {
|
|
6935
|
+
options = arg_2;
|
|
6936
|
+
metadata = arg_3;
|
|
6937
|
+
} else {
|
|
6938
|
+
metadata = arg_2;
|
|
6939
|
+
} // `parse` extracts phone numbers from raw text,
|
|
6940
|
+
// therefore it will cut off all "garbage" characters,
|
|
6941
|
+
// while this `validate` function needs to verify
|
|
6942
|
+
// that the phone number contains no "garbage"
|
|
6943
|
+
// therefore the explicit `isViablePhoneNumber` check.
|
|
6945
6944
|
|
|
6946
6945
|
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
}
|
|
6946
|
+
if (isViablePhoneNumber(arg_1)) {
|
|
6947
|
+
input = parse$1(arg_1, undefined, metadata);
|
|
6948
|
+
} else {
|
|
6949
|
+
input = {};
|
|
6952
6950
|
}
|
|
6951
|
+
}
|
|
6953
6952
|
} // If the phone number is passed as a parsed phone number.
|
|
6954
6953
|
// `getNumberType({ phone: '88005553535', country: 'RU' }, ...)`.
|
|
6955
6954
|
else if (is_object(arg_1)) {
|
|
6956
|
-
|
|
6955
|
+
input = arg_1;
|
|
6957
6956
|
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6957
|
+
if (arg_3) {
|
|
6958
|
+
options = arg_2;
|
|
6959
|
+
metadata = arg_3;
|
|
6960
|
+
} else {
|
|
6961
|
+
metadata = arg_2;
|
|
6962
|
+
}
|
|
6963
|
+
} else throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.');
|
|
6965
6964
|
|
|
6966
6965
|
return {
|
|
6967
6966
|
input: input,
|
|
@@ -7061,7 +7060,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
7061
7060
|
|
|
7062
7061
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7063
7062
|
|
|
7064
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7063
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7065
7064
|
|
|
7066
7065
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7067
7066
|
/**
|
|
@@ -7136,20 +7135,17 @@ function searchPhoneNumbers$2(text, options, metadata) {
|
|
|
7136
7135
|
* @return {object} `{ ?number, ?startsAt, ?endsAt }`.
|
|
7137
7136
|
*/
|
|
7138
7137
|
|
|
7139
|
-
var PhoneNumberSearch$1 =
|
|
7140
|
-
/*#__PURE__*/
|
|
7141
|
-
function () {
|
|
7142
|
-
// Iteration tristate.
|
|
7138
|
+
var PhoneNumberSearch$1 = /*#__PURE__*/function () {
|
|
7143
7139
|
function PhoneNumberSearch(text, options, metadata) {
|
|
7144
7140
|
_classCallCheck(this, PhoneNumberSearch);
|
|
7145
7141
|
|
|
7146
|
-
_defineProperty(this, "state", 'NOT_READY');
|
|
7147
|
-
|
|
7148
7142
|
this.text = text; // If assigning the `{}` default value is moved to the arguments above,
|
|
7149
7143
|
// code coverage would decrease for some weird reason.
|
|
7150
7144
|
|
|
7151
7145
|
this.options = options || {};
|
|
7152
|
-
this.metadata = metadata;
|
|
7146
|
+
this.metadata = metadata; // Iteration tristate.
|
|
7147
|
+
|
|
7148
|
+
this.state = 'NOT_READY';
|
|
7153
7149
|
this.regexp = new RegExp(VALID_PHONE_NUMBER_WITH_EXTENSION, 'ig');
|
|
7154
7150
|
}
|
|
7155
7151
|
|