@gem-sdk/components 24.0.0-staging.6 → 24.0.0-staging.8
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/button/common/attrs.js +1 -1
- package/dist/cjs/button/common/helpers.js +2 -2
- package/dist/cjs/button/components/Button.js +1 -1
- package/dist/cjs/button/components/Button.liquid.js +17 -17
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscount.js +1 -1
- package/dist/cjs/product/components/product-bundle/common/classes.js +1 -1
- package/dist/cjs/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
- package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/cjs/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/cjs/product/helpers/product-bundle.js +1 -1
- package/dist/cjs/product/index.js +1 -1
- package/dist/cjs/stock-counter/common/attrs.js +1 -1
- package/dist/cjs/stock-counter/common/helpers.js +23 -23
- package/dist/cjs/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/esm/button/common/attrs.js +1 -1
- package/dist/esm/button/common/helpers.js +2 -2
- package/dist/esm/button/components/Button.js +1 -1
- package/dist/esm/button/components/Button.liquid.js +16 -16
- package/dist/esm/index.js +1 -1
- package/dist/esm/product/components/product-bundle/ProductBundleDiscount.js +1 -1
- package/dist/esm/product/components/product-bundle/common/classes.js +1 -1
- package/dist/esm/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
- package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/esm/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/esm/product/helpers/product-bundle.js +1 -1
- package/dist/esm/product/index.js +1 -1
- package/dist/esm/stock-counter/common/attrs.js +1 -1
- package/dist/esm/stock-counter/common/helpers.js +21 -21
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +1 -1
- package/dist/esm/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/types/index.d.ts +3 -6
- package/package.json +4 -4
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscountWarning.js +0 -2
- package/dist/cjs/product/components/product-discount-tag/common/helpers.js +0 -1
- package/dist/esm/product/components/product-bundle/ProductBundleDiscountWarning.js +0 -2
- package/dist/esm/product/components/product-discount-tag/common/helpers.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{NO_PRODUCT_LEFT as t,CONTINUE_SELLING_WHEN_OUT_OF_STOCK as e,transformHighlighTag as r,transformNumberTag as o}from"../common/helpers.js";import{useEditorMode as n,useCurrentVariant as a}from"@gem-sdk/core";import{useMemo as i}from"react";let u=(u,l)=>{let s=n(),{template:c,outOfStockMessage:y,continueSelling:d,unlimitedQuantityMessage:m}=u??{},{textColor:f}=l??{},p=f||"brand",h=a(),k=i(()=>Number(h?h.inventoryQuantity:0),[h]),C=!h||h.manageInventory,O=h?h.inventoryPolicy:"deny",g=C&&k<=t&&O!==e,v=O===e&&k<=t,S=!C&&m;function b(){return S?r(m,p):g?r(y||"",p):v?r(d||"",p):r(o(c||"",p,k),p)}let B=i(()=>{if("edit"===s)return!1;let t=!u?.displayByDefault&&k>=(u?.scarcityThreshold??0),e=u?.hiddenCounterWhenOutOfStock&&g;return t||e},[k,g,s,u?.displayByDefault,u?.hiddenCounterWhenOutOfStock,u?.scarcityThreshold]);return{outputMessage:()=>{let t=l?.typo?.attrs?.transform==="capitalize";return t?b()?.toLocaleLowerCase():b()},isOutOfStock:g,inventoryQuantity:k,shouldHideCounter:B}};export{u as useStockCounter};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3661,12 +3661,11 @@ type QualityType = 'finest' | 'high' | 'medium' | 'custom';
|
|
|
3661
3661
|
type ProductImagesLayout = 'bottom-left' | 'bottom-center' | 'left' | 'right' | 'only-feature' | 'one-col' | 'two-col' | 'inside-bottom' | 'inside-left' | 'inside-right';
|
|
3662
3662
|
|
|
3663
3663
|
type bundleItem = {
|
|
3664
|
-
quantity:
|
|
3664
|
+
quantity: number;
|
|
3665
3665
|
discountValue: string;
|
|
3666
3666
|
discountType: 'percentage' | 'fixed_amount' | 'no_discount';
|
|
3667
3667
|
};
|
|
3668
3668
|
|
|
3669
|
-
type BundleDiscountStatus = 'unresolved' | 'loading' | 'ready' | 'empty' | 'error' | 'ambiguous';
|
|
3670
3669
|
type ProductBundleDiscountSettingProps = {
|
|
3671
3670
|
applyToInBetweenQuantities?: boolean;
|
|
3672
3671
|
enableDisplayCondition?: boolean;
|
|
@@ -3681,7 +3680,6 @@ type ProductBundleDiscountSettingProps = {
|
|
|
3681
3680
|
iconSize?: ObjectDevices<number>;
|
|
3682
3681
|
iconSpacing?: Property.Padding;
|
|
3683
3682
|
bundleItems?: bundleItem[];
|
|
3684
|
-
bundleDiscountStatus?: BundleDiscountStatus;
|
|
3685
3683
|
useProductCompareAtPrice?: boolean;
|
|
3686
3684
|
iconItemColor?: ColorValueType;
|
|
3687
3685
|
enableHoverEffect?: boolean;
|
|
@@ -8240,7 +8238,6 @@ declare const MAX_PROGRESS_BAR_HEIGHT = 20;
|
|
|
8240
8238
|
declare const CONTINUE_SELLING_WHEN_OUT_OF_STOCK = "CONTINUE";
|
|
8241
8239
|
declare const getLiquidTextContent: (data: Record<string, any>) => string;
|
|
8242
8240
|
declare const getLiquidInitData: (setting: StockCounterProps["setting"], styles: StockCounterProps["styles"]) => string;
|
|
8243
|
-
declare const getMainColor: (styles: StockCounterProps["styles"]) => _gem_sdk_core.ColorValueType;
|
|
8244
8241
|
declare const getTextDisplayData: (data: Record<string, any>, styles: StockCounterProps["styles"]) => string;
|
|
8245
8242
|
declare const getInlineCss: (uniqId?: string, borderRadius?: CornerRadius) => string | undefined;
|
|
8246
8243
|
declare const transformHighlighTag: (template: string, stringColor: string) => string;
|
|
@@ -8510,5 +8507,5 @@ declare namespace translate {
|
|
|
8510
8507
|
|
|
8511
8508
|
declare const TAGS_WITH_REPLACE_LINK_DATA: string[];
|
|
8512
8509
|
|
|
8513
|
-
export { Accordion$2 as Accordion, AccordionItem$1 as AccordionItem, AftershipEmailMarketingsms$1 as AftershipEmailMarketingsms, AirProductReviewsAppUgc$1 as AirProductReviewsAppUgc, AliReviews$1 as AliReviews, AlsoBoughtCbb$1 as AlsoBoughtCbb, AovBundlesVolumeDiscounts$1 as AovBundlesVolumeDiscounts, AovFreeGiftBuyXGetYBogo$1 as AovFreeGiftBuyXGetYBogo, AppointmentBookingCowlendar$1 as AppointmentBookingCowlendar, AppstleBundlesDiscounts$1 as AppstleBundlesDiscounts, AppstleLoyaltyRewardProgram$1 as AppstleLoyaltyRewardProgram, AppstleSubscriptions$1 as AppstleSubscriptions, ArticleAuthor$1 as ArticleAuthor, ArticleCategory$1 as ArticleCategory, ArticleContent$1 as ArticleContent, ArticleDate$1 as ArticleDate, ArticleExcerpt$1 as ArticleExcerpt, ArticleImage$1 as ArticleImage, ArticleList$1 as ArticleList, ArticlePagination$2 as ArticlePagination, ArticleReadMore$2 as ArticleReadMore, ArticleTag$1 as ArticleTag, ArticleTitle$1 as ArticleTitle, BasicHeader, BestBuyFulfillment$1 as BestBuyFulfillment, BfSizeChartSizeGuide$1 as BfSizeChartSizeGuide, BirdChime$1 as BirdChime, BloyRewardsProgramLoyalty$1 as BloyRewardsProgramLoyalty, Bogos$1 as Bogos, BoldProductOptions$1 as BoldProductOptions, BoldSubscriptions$1 as BoldSubscriptions, BonLoyaltyRewardsReferrals$1 as BonLoyaltyRewardsReferrals, BonySubscriptionsApp$1 as BonySubscriptionsApp, BoostAISearchDiscovery$1 as BoostAISearchDiscovery, Breadcrumb$1 as Breadcrumb, Breadcrumb$1 as BreadcrumbProps, Bundler$1 as Bundler, Button$3 as Button, CONTINUE_SELLING_WHEN_OUT_OF_STOCK, CSSCode$2 as CSSCode, Carousel$2 as Carousel, CarouselItem$2 as CarouselItem, CarouselItem$3 as CarouselItemV3, Carousel$3 as CarouselV3, Cart, CartCheckout, CartDiscount, CartLineAttribute, CartLineImage, CartLinePrice, CartLineVariant, CartList, CartOrderNote, CartTotalItem, CartTotalPrice, CheckoutNow, CleanSizeCharts$1 as CleanSizeCharts, Column$1 as Col, CollectionBanner$1 as CollectionBanner, CollectionDescription$2 as CollectionDescription, CollectionPaginator$2 as CollectionPaginator, CollectionTitle$1 as CollectionTitle, CollectionToolbar$2 as CollectionToolbar, ContactForm$2 as ContactForm, Countdown$2 as Countdown, Coupon$2 as Coupon, CouponList, CrossSellCartUpsell$1 as CrossSellCartUpsell, CustomProductOptionsVariant$1 as CustomProductOptionsVariant, DEFAULT_FONT_SIZE, DEFAULT_HIGHLIGHT_TAG, DEFAULT_PROGRESS_BAR_HEIGHT, DEFAULT_QUANTITY_TEMPLATE, DEFAULT_RANGE_STEP, DEFAULT_REMAINING_PERCENT, DEFAULT_REMAINING_QUANTITY, DEFAULT_SCARCITY_THRESHOLD, DealeasyVolumeDiscounts$1 as DealeasyVolumeDiscounts, DesktopMenu, Dialog$2 as Dialog, DiscountInput, DiscountyBulkDiscountSales$1 as DiscountyBulkDiscountSales, DynamicCheckout$1 as DynamicCheckout, ELEMENT_Z_INDEX, EasifyProductOptions$1 as EasifyProductOptions, EasyBundleBuilderSkailama$1 as EasyBundleBuilderSkailama, EasySell as EasySellCOD, EcoboostifyShoppableReelUgc$1 as EcoboostifyShoppableReelUgc, EcomsendBackInStockAlert$1 as EcomsendBackInStockAlert, EssentPreorderBackInStock$1 as EssentPreorderBackInStock, EssentialAnnouncementBar$1 as EssentialAnnouncementBar, EssentialCountdownTimerBar$1 as EssentialCountdownTimerBar, EstimateDate$2 as EstimateDate, EstimatedDeliveryDatePlus$1 as EstimatedDeliveryDatePlus, FastBundleBundlesDiscounts$1 as FastBundleBundlesDiscounts, FeraReviews$1 as FeraReviews, FileUpload$2 as FileUpload, FirePush$1 as FirePush, FlyBundlesUpsellsFbt$1 as FlyBundlesUpsellsFbt, FordeerProductLabels$1 as FordeerProductLabels, FormCheckbox$1 as FormCheckbox, FormDropdown$2 as FormDropdown, FormEmail$2 as FormEmail, FormTextArea as FormTextarea, FrequentlyBoughtTogether$1 as FrequentlyBoughtTogether, GloColorSwatchvariantImage$1 as GloColorSwatchvariantImage, GloboProductOptionsVariant$1 as GloboProductOptionsVariant, GoogleReviewsByReputon$1 as GoogleReviewsByReputon, Growave$1 as Growave, GrowthSuiteDiscountCodes$1 as GrowthSuiteDiscountCodes, Header, Heading$2 as Heading, HeroBanner$2 as HeroBanner, HextomCountdownTimerBar$1 as HextomCountdownTimerBar, HextomFreeShippingBar$1 as HextomFreeShippingBar, HulkFormBuilder$1 as HulkFormBuilder, HulkProductOptions$1 as HulkProductOptions, Icon$1 as Icon, IconList$2 as IconList, IconListHoz$1 as IconListHoz, IconListItem$1 as IconListItem, IconListHozItem as IconListItemHoz, IconListV2$2 as IconListV2, Image$2 as Image, ImageComparison$2 as ImageComparison, InfiniteOptions$1 as InfiniteOptions, Input, Instafeed$1 as Instafeed, InstantJudgemeReviews, InstantKlaviyo, InstantLooxReviews, InstantYotpoLoyalty, InstasellShoppableInstagram$1 as InstasellShoppableInstagram, JudgemeReviews$1 as JudgemeReviews, JunipProductReviewsUgc$1 as JunipProductReviewsUgc, KachingBundles$1 as KachingBundles, KachingSubscriptionsApp$1 as KachingSubscriptionsApp, KingProductOptions$1 as KingProductOptions, KiteFreeGiftDiscount$1 as KiteFreeGiftDiscount, KlarnaMessaging$1 as KlarnaMessaging, Klaviyo$1 as Klaviyo, KoalaBundleQuantityDiscount$1 as KoalaBundleQuantityDiscount, LaiProductReviews$1 as LaiProductReviews, Line$2 as Line, Link$1 as Link, LoloyalLoyaltyReferrals$1 as LoloyalLoyaltyReferrals, LoopSubscriptions$1 as LoopSubscriptions, LooxReviews$1 as LooxReviews, MAX_PROGRESS_BAR_HEIGHT, MAX_REMAINING_PERCENT, MIN_PROGRESS_BAR_HEIGHT, MIN_REMAINING_PERCENT, MIN_REMAINING_QUANTITY, Marquee$1 as Marquee, _default$5 as MarqueeItem, MaxbundleProductBundles$1 as MaxbundleProductBundles, MbcBundleVolumeDiscount$1 as MbcBundleVolumeDiscount, Menu, MobileMenu, Modal, ModernHeader, MyappgurusProductReviews$1 as MyappgurusProductReviews, NO_PRODUCT_LEFT, Newsletter$2 as Newsletter, Notify as Notice, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, OUT_OF_STOCK, OkendoReviewsLoyalty$1 as OkendoReviewsLoyalty, Omnisend$1 as Omnisend, Opinew$1 as Opinew, Pagination, ParcelPanel$1 as ParcelPanel, PickyStory$1 as PickyStory, PostPurchaseAcceptButton, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, Button$2 as PostPurchaseButton, BuyerConsent as PostPurchaseBuyerConsent, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseHeading, PostPurchaseImage, Line$1 as PostPurchaseLine, Link as PostPurchaseLink, PostPurchaseProductDescription, PostPurchaseProductDiscountTag, PostPurchaseProductImages, PostPurchaseProductOffer, PostPurchaseProductPrice, PostPurchaseProductPriceBreakdown, PostPurchaseProductQuantity, ProductSubscription as PostPurchaseProductSubscription, PostPurchaseProductTitle, PostPurchaseProductVariants, Text$3 as PostPurchaseText, PowerfulContactFormBuilder$1 as PowerfulContactFormBuilder, PreorderNowPreOrderPq$1 as PreorderNowPreOrderPq, PreorderNowWodPresale$1 as PreorderNowWodPresale, Product$1 as Product, ProductBadge$2 as ProductBadge, ProductBundleDiscount$1 as ProductBundleDiscount, ProductBundleDiscountItem$1 as ProductBundleDiscountItem, ProductButton$2 as ProductButton, ProductDescription$2 as ProductDescription, ProductImages$4 as ProductImages, ProductImagesV2, ProductImagesV3, ProductList$2 as ProductList, ProductList$3 as ProductListV3, ProductOptionsCustomizer$1 as ProductOptionsCustomizer, ProductOptionsVariantOption$1 as ProductOptionsVariantOption, ProductPrice$1 as ProductPrice, ProductProperties$2 as ProductPropertyInput, ProductQuantity$1 as ProductQuantity, QuickView as ProductQuickView, ProductReviews$1 as ProductReviews, ProductSku$1 as ProductSku, ProductTag$2 as ProductTag, ProductTitle$1 as ProductTitle, ProductVariants$1 as ProductVariants, ProductVendor$1 as ProductVendor, ProductViewMore$2 as ProductViewMore, PumperBundlesVolumeDiscount$1 as PumperBundlesVolumeDiscount, PushOwl$1 as PushOwl, QUANTITY_SOURCE, QikifyUpsell$1 as QikifyUpsell, REGEX_BARE_DOMAIN, REGEX_PAGE_TYPE, Radio, RapiBundleQuantityBreaks$1 as RapiBundleQuantityBreaks, RechargeSubscriptions$1 as RechargeSubscriptions, RecurpaySubscriptionApp$1 as RecurpaySubscriptionApp, Releasit$1 as Releasit, RequestQuoteHidePrice$1 as RequestQuoteHidePrice, ReviewxpoProductReviewsApp$1 as ReviewxpoProductReviewsApp, Rivyo$1 as Rivyo, Root$1 as Root, Row$2 as Row, Ryviu$1 as Ryviu, SealSubscriptions$1 as SealSubscriptions, Section$2 as Section, SegunoEmailMarketing$1 as SegunoEmailMarketing, Select, Selleasy$1 as Selleasy, SeoantTrustBadgesIcon$1 as SeoantTrustBadgesIcon, ShopPayButton$1 as ShopPayButton, ShopPayInstallments$1 as ShopPayInstallments, ShopifyForms$1 as ShopifyForms, ShopifySubscriptions$1 as ShopifySubscriptions, SimpleBundlesKits$1 as SimpleBundlesKits, SkioSubscriptionsYcS20$1 as SkioSubscriptionsYcS20, SmartSearchBarAndFilters$1 as SmartSearchBarAndFilters, SproutPlantTreesGrowSales$1 as SproutPlantTreesGrowSales, Stamped$1 as Stamped, StellarDeliveryDatePickup$1 as StellarDeliveryDatePickup, Sticky$2 as Sticky, StockCounter$2 as StockCounter, SubifySubscriptionsApp$1 as SubifySubscriptionsApp, SubmitButton$2 as SubmitButton, TAGS_WITH_REPLACE_LINK_DATA, TabItem$1 as TabItem, Tabs$2 as Tabs, TagembedSocialPostReview$1 as TagembedSocialPostReview, TagshopShoppableVideosUgc$1 as TagshopShoppableVideosUgc, TeeinblueProductPersonalizer$1 as TeeinblueProductPersonalizer, Text$2 as Text, TextField$2 as TextField, TextInput$2 as TextInput, TextArea as Textarea, ThirdPartySlot$1 as ThirdPartySlot, TrustBadgesBear$1 as TrustBadgesBear, TrustMe$1 as TrustMe, TrustedsiteTrustBadges$1 as TrustedsiteTrustBadges, Trustoo$1 as Trustoo, TrustreviewsProductReviews$1 as TrustreviewsProductReviews, TrustshopProductReviews$1 as TrustshopProductReviews, UltimateSalesBoost$1 as UltimateSalesBoost, UnlimitedBundlesDiscounts$1 as UnlimitedBundlesDiscounts, UppromoteAffiliateMarketing$1 as UppromoteAffiliateMarketing, Video$2 as Video, Vitals$1 as Vitals, WcWishlistBackInStock$1 as WcWishlistBackInStock, WhatmoreShoppableVideosreel$1 as WhatmoreShoppableVideosreel, WideBundle$1 as WideBundle, Wiser$1 as Wiser, WishlistKing$1 as WishlistKing, WishlistPlus$1 as WishlistPlus, YotpoLoyalty, YotpoReviews$1 as YotpoReviews, accordionSetting, articleListSetting, bannerSetting, breadcrumbSetting, _default$2 as builderComponent, buttonSetting, carouselSetting, carouselSettingV3, cartSetting, checkIsOpenPage, checkIsOpenPopup, checkIsScrollToTop, codeSetting, collectionSetting, _default$1 as componentSettings, contactFormSetting, convertSizeToWidth, convertUnitToNumber, countdownSetting, couponSetting, createSettingId, createTranslateKey, dialogSetting, estimateDeliverySetting, extractProductID, filterPageContext, filterTruthyObject, filterTruthyStyles, getAllHrefFromString, getBackgroundTranslated, getDisplayStyle, getDynamicSourceLocales, getInlineCss, getInsertLinkData, getLinkArticle, getLinkData, getLiquidInitData, getLiquidTextContent, getMainColor, getSeoTranslated, getSettingPreloadData, getStaticLocale, getTextDisplayData, gridSetting, handleClickLink, headerSetting, headingSetting, _default$3 as headlessComponents, iconListHozSetting, iconListSetting, iconListSettingV2, iconSetting, imageComparisonSetting, imageSetting, inputSetting, isEmptyObject, isHexTransparent, isLinkedToSalesPage, isShopifyDomain, isTransparentColor, isTransparentRGBA, lineSetting, linkSetting, index_liquid as liquidComponents, marqueeSetting, menuSetting, modalSetting, _default$4 as nextComponent, normalizeMailto, openConfirm, paginationSetting, postPurchaseAdvancedListSetting, postPurchaseButtonSetting, postPurchaseBuyerConsentSetting, postPurchaseCalloutBoxSetting, postPurchaseCountdownTimerSetting, postPurchaseImageSetting, postPurchaseLineSetting, postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, postPurchaseProductSetting, _default as postPurchaseSettings, postPurchaseTextSetting, productSetting, radioSetting, replaceAllHrefFromString, replaceLinkData, selectSetting, shopPayInstallmentSetting, stickySetting, stockCounterSetting, tabSetting, textSetting, textareaSetting, thirdPartyInstantSetting, thirdPartySetting, thirdPartySlotSetting, transformHighlighTag, transformNumberTag, translate as translateComponents, useNotification, videoSetting, youtubeShortsRegex };
|
|
8514
|
-
export type { AccordionItemProps, AccordionProps, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgcProps, AliReviewsProps, AlsoBoughtCbbProps, AovBundlesVolumeDiscountsProps, AovFreeGiftBuyXGetYBogoProps, AppointmentBookingCowlendarProps, AppstleBundlesDiscountsProps, AppstleLoyaltyRewardProgramProps, AppstleSubscriptionsProps, BestBuyFulfillmentProps, BfSizeChartSizeGuideProps, BirdChimeProps, BloyRewardsProgramLoyaltyProps, BogosProps, BoldProductOptionsProps, BoldSubscriptionsProps, BonLoyaltyRewardsReferralsProps, BonySubscriptionsAppProps, BoostAISearchDiscoveryProps,
|
|
8510
|
+
export { Accordion$2 as Accordion, AccordionItem$1 as AccordionItem, AftershipEmailMarketingsms$1 as AftershipEmailMarketingsms, AirProductReviewsAppUgc$1 as AirProductReviewsAppUgc, AliReviews$1 as AliReviews, AlsoBoughtCbb$1 as AlsoBoughtCbb, AovBundlesVolumeDiscounts$1 as AovBundlesVolumeDiscounts, AovFreeGiftBuyXGetYBogo$1 as AovFreeGiftBuyXGetYBogo, AppointmentBookingCowlendar$1 as AppointmentBookingCowlendar, AppstleBundlesDiscounts$1 as AppstleBundlesDiscounts, AppstleLoyaltyRewardProgram$1 as AppstleLoyaltyRewardProgram, AppstleSubscriptions$1 as AppstleSubscriptions, ArticleAuthor$1 as ArticleAuthor, ArticleCategory$1 as ArticleCategory, ArticleContent$1 as ArticleContent, ArticleDate$1 as ArticleDate, ArticleExcerpt$1 as ArticleExcerpt, ArticleImage$1 as ArticleImage, ArticleList$1 as ArticleList, ArticlePagination$2 as ArticlePagination, ArticleReadMore$2 as ArticleReadMore, ArticleTag$1 as ArticleTag, ArticleTitle$1 as ArticleTitle, BasicHeader, BestBuyFulfillment$1 as BestBuyFulfillment, BfSizeChartSizeGuide$1 as BfSizeChartSizeGuide, BirdChime$1 as BirdChime, BloyRewardsProgramLoyalty$1 as BloyRewardsProgramLoyalty, Bogos$1 as Bogos, BoldProductOptions$1 as BoldProductOptions, BoldSubscriptions$1 as BoldSubscriptions, BonLoyaltyRewardsReferrals$1 as BonLoyaltyRewardsReferrals, BonySubscriptionsApp$1 as BonySubscriptionsApp, BoostAISearchDiscovery$1 as BoostAISearchDiscovery, Breadcrumb$1 as Breadcrumb, Breadcrumb$1 as BreadcrumbProps, Bundler$1 as Bundler, Button$3 as Button, CONTINUE_SELLING_WHEN_OUT_OF_STOCK, CSSCode$2 as CSSCode, Carousel$2 as Carousel, CarouselItem$2 as CarouselItem, CarouselItem$3 as CarouselItemV3, Carousel$3 as CarouselV3, Cart, CartCheckout, CartDiscount, CartLineAttribute, CartLineImage, CartLinePrice, CartLineVariant, CartList, CartOrderNote, CartTotalItem, CartTotalPrice, CheckoutNow, CleanSizeCharts$1 as CleanSizeCharts, Column$1 as Col, CollectionBanner$1 as CollectionBanner, CollectionDescription$2 as CollectionDescription, CollectionPaginator$2 as CollectionPaginator, CollectionTitle$1 as CollectionTitle, CollectionToolbar$2 as CollectionToolbar, ContactForm$2 as ContactForm, Countdown$2 as Countdown, Coupon$2 as Coupon, CouponList, CrossSellCartUpsell$1 as CrossSellCartUpsell, CustomProductOptionsVariant$1 as CustomProductOptionsVariant, DEFAULT_FONT_SIZE, DEFAULT_HIGHLIGHT_TAG, DEFAULT_PROGRESS_BAR_HEIGHT, DEFAULT_QUANTITY_TEMPLATE, DEFAULT_RANGE_STEP, DEFAULT_REMAINING_PERCENT, DEFAULT_REMAINING_QUANTITY, DEFAULT_SCARCITY_THRESHOLD, DealeasyVolumeDiscounts$1 as DealeasyVolumeDiscounts, DesktopMenu, Dialog$2 as Dialog, DiscountInput, DiscountyBulkDiscountSales$1 as DiscountyBulkDiscountSales, DynamicCheckout$1 as DynamicCheckout, ELEMENT_Z_INDEX, EasifyProductOptions$1 as EasifyProductOptions, EasyBundleBuilderSkailama$1 as EasyBundleBuilderSkailama, EasySell as EasySellCOD, EcoboostifyShoppableReelUgc$1 as EcoboostifyShoppableReelUgc, EcomsendBackInStockAlert$1 as EcomsendBackInStockAlert, EssentPreorderBackInStock$1 as EssentPreorderBackInStock, EssentialAnnouncementBar$1 as EssentialAnnouncementBar, EssentialCountdownTimerBar$1 as EssentialCountdownTimerBar, EstimateDate$2 as EstimateDate, EstimatedDeliveryDatePlus$1 as EstimatedDeliveryDatePlus, FastBundleBundlesDiscounts$1 as FastBundleBundlesDiscounts, FeraReviews$1 as FeraReviews, FileUpload$2 as FileUpload, FirePush$1 as FirePush, FlyBundlesUpsellsFbt$1 as FlyBundlesUpsellsFbt, FordeerProductLabels$1 as FordeerProductLabels, FormCheckbox$1 as FormCheckbox, FormDropdown$2 as FormDropdown, FormEmail$2 as FormEmail, FormTextArea as FormTextarea, FrequentlyBoughtTogether$1 as FrequentlyBoughtTogether, GloColorSwatchvariantImage$1 as GloColorSwatchvariantImage, GloboProductOptionsVariant$1 as GloboProductOptionsVariant, GoogleReviewsByReputon$1 as GoogleReviewsByReputon, Growave$1 as Growave, GrowthSuiteDiscountCodes$1 as GrowthSuiteDiscountCodes, Header, Heading$2 as Heading, HeroBanner$2 as HeroBanner, HextomCountdownTimerBar$1 as HextomCountdownTimerBar, HextomFreeShippingBar$1 as HextomFreeShippingBar, HulkFormBuilder$1 as HulkFormBuilder, HulkProductOptions$1 as HulkProductOptions, Icon$1 as Icon, IconList$2 as IconList, IconListHoz$1 as IconListHoz, IconListItem$1 as IconListItem, IconListHozItem as IconListItemHoz, IconListV2$2 as IconListV2, Image$2 as Image, ImageComparison$2 as ImageComparison, InfiniteOptions$1 as InfiniteOptions, Input, Instafeed$1 as Instafeed, InstantJudgemeReviews, InstantKlaviyo, InstantLooxReviews, InstantYotpoLoyalty, InstasellShoppableInstagram$1 as InstasellShoppableInstagram, JudgemeReviews$1 as JudgemeReviews, JunipProductReviewsUgc$1 as JunipProductReviewsUgc, KachingBundles$1 as KachingBundles, KachingSubscriptionsApp$1 as KachingSubscriptionsApp, KingProductOptions$1 as KingProductOptions, KiteFreeGiftDiscount$1 as KiteFreeGiftDiscount, KlarnaMessaging$1 as KlarnaMessaging, Klaviyo$1 as Klaviyo, KoalaBundleQuantityDiscount$1 as KoalaBundleQuantityDiscount, LaiProductReviews$1 as LaiProductReviews, Line$2 as Line, Link$1 as Link, LoloyalLoyaltyReferrals$1 as LoloyalLoyaltyReferrals, LoopSubscriptions$1 as LoopSubscriptions, LooxReviews$1 as LooxReviews, MAX_PROGRESS_BAR_HEIGHT, MAX_REMAINING_PERCENT, MIN_PROGRESS_BAR_HEIGHT, MIN_REMAINING_PERCENT, MIN_REMAINING_QUANTITY, Marquee$1 as Marquee, _default$5 as MarqueeItem, MaxbundleProductBundles$1 as MaxbundleProductBundles, MbcBundleVolumeDiscount$1 as MbcBundleVolumeDiscount, Menu, MobileMenu, Modal, ModernHeader, MyappgurusProductReviews$1 as MyappgurusProductReviews, NO_PRODUCT_LEFT, Newsletter$2 as Newsletter, Notify as Notice, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, OUT_OF_STOCK, OkendoReviewsLoyalty$1 as OkendoReviewsLoyalty, Omnisend$1 as Omnisend, Opinew$1 as Opinew, Pagination, ParcelPanel$1 as ParcelPanel, PickyStory$1 as PickyStory, PostPurchaseAcceptButton, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, Button$2 as PostPurchaseButton, BuyerConsent as PostPurchaseBuyerConsent, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseHeading, PostPurchaseImage, Line$1 as PostPurchaseLine, Link as PostPurchaseLink, PostPurchaseProductDescription, PostPurchaseProductDiscountTag, PostPurchaseProductImages, PostPurchaseProductOffer, PostPurchaseProductPrice, PostPurchaseProductPriceBreakdown, PostPurchaseProductQuantity, ProductSubscription as PostPurchaseProductSubscription, PostPurchaseProductTitle, PostPurchaseProductVariants, Text$3 as PostPurchaseText, PowerfulContactFormBuilder$1 as PowerfulContactFormBuilder, PreorderNowPreOrderPq$1 as PreorderNowPreOrderPq, PreorderNowWodPresale$1 as PreorderNowWodPresale, Product$1 as Product, ProductBadge$2 as ProductBadge, ProductBundleDiscount$1 as ProductBundleDiscount, ProductBundleDiscountItem$1 as ProductBundleDiscountItem, ProductButton$2 as ProductButton, ProductDescription$2 as ProductDescription, ProductImages$4 as ProductImages, ProductImagesV2, ProductImagesV3, ProductList$2 as ProductList, ProductList$3 as ProductListV3, ProductOptionsCustomizer$1 as ProductOptionsCustomizer, ProductOptionsVariantOption$1 as ProductOptionsVariantOption, ProductPrice$1 as ProductPrice, ProductProperties$2 as ProductPropertyInput, ProductQuantity$1 as ProductQuantity, QuickView as ProductQuickView, ProductReviews$1 as ProductReviews, ProductSku$1 as ProductSku, ProductTag$2 as ProductTag, ProductTitle$1 as ProductTitle, ProductVariants$1 as ProductVariants, ProductVendor$1 as ProductVendor, ProductViewMore$2 as ProductViewMore, PumperBundlesVolumeDiscount$1 as PumperBundlesVolumeDiscount, PushOwl$1 as PushOwl, QUANTITY_SOURCE, QikifyUpsell$1 as QikifyUpsell, REGEX_BARE_DOMAIN, REGEX_PAGE_TYPE, Radio, RapiBundleQuantityBreaks$1 as RapiBundleQuantityBreaks, RechargeSubscriptions$1 as RechargeSubscriptions, RecurpaySubscriptionApp$1 as RecurpaySubscriptionApp, Releasit$1 as Releasit, RequestQuoteHidePrice$1 as RequestQuoteHidePrice, ReviewxpoProductReviewsApp$1 as ReviewxpoProductReviewsApp, Rivyo$1 as Rivyo, Root$1 as Root, Row$2 as Row, Ryviu$1 as Ryviu, SealSubscriptions$1 as SealSubscriptions, Section$2 as Section, SegunoEmailMarketing$1 as SegunoEmailMarketing, Select, Selleasy$1 as Selleasy, SeoantTrustBadgesIcon$1 as SeoantTrustBadgesIcon, ShopPayButton$1 as ShopPayButton, ShopPayInstallments$1 as ShopPayInstallments, ShopifyForms$1 as ShopifyForms, ShopifySubscriptions$1 as ShopifySubscriptions, SimpleBundlesKits$1 as SimpleBundlesKits, SkioSubscriptionsYcS20$1 as SkioSubscriptionsYcS20, SmartSearchBarAndFilters$1 as SmartSearchBarAndFilters, SproutPlantTreesGrowSales$1 as SproutPlantTreesGrowSales, Stamped$1 as Stamped, StellarDeliveryDatePickup$1 as StellarDeliveryDatePickup, Sticky$2 as Sticky, StockCounter$2 as StockCounter, SubifySubscriptionsApp$1 as SubifySubscriptionsApp, SubmitButton$2 as SubmitButton, TAGS_WITH_REPLACE_LINK_DATA, TabItem$1 as TabItem, Tabs$2 as Tabs, TagembedSocialPostReview$1 as TagembedSocialPostReview, TagshopShoppableVideosUgc$1 as TagshopShoppableVideosUgc, TeeinblueProductPersonalizer$1 as TeeinblueProductPersonalizer, Text$2 as Text, TextField$2 as TextField, TextInput$2 as TextInput, TextArea as Textarea, ThirdPartySlot$1 as ThirdPartySlot, TrustBadgesBear$1 as TrustBadgesBear, TrustMe$1 as TrustMe, TrustedsiteTrustBadges$1 as TrustedsiteTrustBadges, Trustoo$1 as Trustoo, TrustreviewsProductReviews$1 as TrustreviewsProductReviews, TrustshopProductReviews$1 as TrustshopProductReviews, UltimateSalesBoost$1 as UltimateSalesBoost, UnlimitedBundlesDiscounts$1 as UnlimitedBundlesDiscounts, UppromoteAffiliateMarketing$1 as UppromoteAffiliateMarketing, Video$2 as Video, Vitals$1 as Vitals, WcWishlistBackInStock$1 as WcWishlistBackInStock, WhatmoreShoppableVideosreel$1 as WhatmoreShoppableVideosreel, WideBundle$1 as WideBundle, Wiser$1 as Wiser, WishlistKing$1 as WishlistKing, WishlistPlus$1 as WishlistPlus, YotpoLoyalty, YotpoReviews$1 as YotpoReviews, accordionSetting, articleListSetting, bannerSetting, breadcrumbSetting, _default$2 as builderComponent, buttonSetting, carouselSetting, carouselSettingV3, cartSetting, checkIsOpenPage, checkIsOpenPopup, checkIsScrollToTop, codeSetting, collectionSetting, _default$1 as componentSettings, contactFormSetting, convertSizeToWidth, convertUnitToNumber, countdownSetting, couponSetting, createSettingId, createTranslateKey, dialogSetting, estimateDeliverySetting, extractProductID, filterPageContext, filterTruthyObject, filterTruthyStyles, getAllHrefFromString, getBackgroundTranslated, getDisplayStyle, getDynamicSourceLocales, getInlineCss, getInsertLinkData, getLinkArticle, getLinkData, getLiquidInitData, getLiquidTextContent, getSeoTranslated, getSettingPreloadData, getStaticLocale, getTextDisplayData, gridSetting, handleClickLink, headerSetting, headingSetting, _default$3 as headlessComponents, iconListHozSetting, iconListSetting, iconListSettingV2, iconSetting, imageComparisonSetting, imageSetting, inputSetting, isEmptyObject, isHexTransparent, isLinkedToSalesPage, isShopifyDomain, isTransparentColor, isTransparentRGBA, lineSetting, linkSetting, index_liquid as liquidComponents, marqueeSetting, menuSetting, modalSetting, _default$4 as nextComponent, normalizeMailto, openConfirm, paginationSetting, postPurchaseAdvancedListSetting, postPurchaseButtonSetting, postPurchaseBuyerConsentSetting, postPurchaseCalloutBoxSetting, postPurchaseCountdownTimerSetting, postPurchaseImageSetting, postPurchaseLineSetting, postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, postPurchaseProductSetting, _default as postPurchaseSettings, postPurchaseTextSetting, productSetting, radioSetting, replaceAllHrefFromString, replaceLinkData, selectSetting, shopPayInstallmentSetting, stickySetting, stockCounterSetting, tabSetting, textSetting, textareaSetting, thirdPartyInstantSetting, thirdPartySetting, thirdPartySlotSetting, transformHighlighTag, transformNumberTag, translate as translateComponents, useNotification, videoSetting, youtubeShortsRegex };
|
|
8511
|
+
export type { AccordionItemProps, AccordionProps, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgcProps, AliReviewsProps, AlsoBoughtCbbProps, AovBundlesVolumeDiscountsProps, AovFreeGiftBuyXGetYBogoProps, AppointmentBookingCowlendarProps, AppstleBundlesDiscountsProps, AppstleLoyaltyRewardProgramProps, AppstleSubscriptionsProps, BestBuyFulfillmentProps, BfSizeChartSizeGuideProps, BirdChimeProps, BloyRewardsProgramLoyaltyProps, BogosProps, BoldProductOptionsProps, BoldSubscriptionsProps, BonLoyaltyRewardsReferralsProps, BonySubscriptionsAppProps, BoostAISearchDiscoveryProps, BundlerProps, ButtonProps, CSSCodeProps, CalloutBoxProps, CalloutTextProps, CarouselItemProps, CarouselItemProps$1 as CarouselItemPropsV3, CarouselProps, CarouselProps$1 as CarouselPropsV3, CarouselSettingProps, CarouselSettingProps$1 as CarouselSettingPropsV3, CarouselStyleProps, CarouselStyleProps$1 as CarouselStylePropsV3, CartProps, CleanSizeChartsProps, ColProps, CollectionBannerProps, CollectionDescriptionProps, CollectionPaginatorProps, CollectionTitleProps, CollectionToolbarProps, CountdownProps, CouponProps, CrossSellCartUpsellProps, CustomProductOptionsVariantProps, DataVideoType, DealeasyVolumeDiscountsProps, DiscountyBulkDiscountSalesProps, DynamicCheckoutProps, EasifyProductOptionsProps, EasyBundleBuilderSkailamaProps, EasySellCODProps, EcoboostifyShoppableReelUgcProps, EcomsendBackInStockAlertProps, EssentPreorderBackInStockProps, EssentialAnnouncementBarProps, EssentialCountdownTimerBarProps, EstimateDateProps, EstimatedDeliveryDatePlusProps, FastBundleBundlesDiscountsProps, FeraReviewsProps, FileUploadProps, FirePushProps, FlyBundlesUpsellsFbtProps, FordeerProductLabelsProps, FormCheckboxProps, FormDropdownProps, FormEmailProps, FrequentlyBoughtTogetherProps, GloColorSwatchvariantImageProps, GloboProductOptionsVariantProps, GoogleReviewsByReputonProps, GrowaveProps, GrowthSuiteDiscountCodesProps, HeaderProps, HeadingProps, HeroBannerProps, HextomCountdownTimerBarProps, HextomFreeShippingBarProps, HulkFormBuilderProps, HulkProductOptionsProps, IconListHozProps, IconListItemProps$1 as IconListItemProps, IconListProps$1 as IconListProps, IconProps, ImageComparisonItem, ImageProps, ImgProps, InfiniteOptionsProps, InputProps, InstafeedProps, InstasellShoppableInstagramProps, JudgemeReviewsProps, JunipProductReviewsUgcProps, KachingBundlesProps, KachingSubscriptionsAppProps, KingProductOptionsProps, KiteFreeGiftDiscountProps, KlarnaMessagingProps, KlaviyoProps, KoalaBundleQuantityDiscountProps, LaiProductReviewsProps, LineProps, LinkProps, LoloyalLoyaltyReferralsProps, LoopSubscriptionsProps, LooxReviewsProps, MarqueeItemProps, MarqueeProps, MaxbundleProductBundlesProps, MbcBundleVolumeDiscountProps, MenuProps, MyappgurusProductReviewsProps, NewsletterProps, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrderProps, ObjectFit$2 as ObjectFit, OkendoReviewsLoyaltyProps, OmnisendProps, OpinewProps, PaginationProps, ParcelPanelProps, PickyStoryProps, PostPurchaseAdvancedListProps, PostPurchaseButtonProps, PostPurchaseBuyerConsentProps, PostPurchaseCountdownTimerProps, PostPurchaseImageProps, PostPurchaseLineProps, PostPurchaseLinkProps, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTagProps, PostPurchaseProductImagesProps, PostPurchaseProductOfferProps$1 as PostPurchaseProductOfferProps, PostPurchaseProductPriceBreakdownProps, PostPurchaseProductPriceProps, PostPurchaseProductQuantityProps, PostPurchaseProductSubscriptionProps, PostPurchaseProductTitleProps, PostPurchaseProductVariantsProps, PostPurchaseTextProps, PowerfulContactFormBuilderProps, PreorderNowPreOrderPqProps, PreorderNowWodPresaleProps, ProductBadgeProps, ProductBundleDiscountProps, ProductBundleItemDiscountProps, ProductButtonProps, ProductDescriptionProps, ProductImagesProps, ProductListProps, ProductListProps$1 as ProductListPropsV3, ProductOptionsCustomizerProps, ProductOptionsVariantOptionProps, ProductPriceProps, ProductPropertiesProps, ProductProps, ProductQuantityProps, ProductReviewsProps, ProductTagProps, ProductTitleProps, ProductVariantsProps, ProductViewMoreProps, PumperBundlesVolumeDiscountProps, PushOwlProps, QikifyUpsellProps, RapiBundleQuantityBreaksProps, RechargeSubscriptionsProps, RecurpaySubscriptionAppProps, ReleasitProps, RequestQuoteHidePriceProps, ReviewxpoProductReviewsAppProps, RivyoProps, RootProps$2 as RootProps, RowProps, RyviuProps, SealSubscriptionsProps, SegunoEmailMarketingProps, SelleasyProps, SeoantTrustBadgesIconProps, ShopPayButtonProps, ShopifyFormsProps, ShopifySubscriptionsProps, SimpleBundlesKitsProps, SkioSubscriptionsYcS20Props, SkuProps, SmartSearchBarAndFiltersProps, SproutPlantTreesGrowSalesProps, StampedProps, StellarDeliveryDatePickupProps, SubifySubscriptionsAppProps, SubmitButtonProps, TabItemProps, TabsProps, TagembedSocialPostReviewProps, TagshopShoppableVideosUgcProps, TeeinblueProductPersonalizerProps, TextAreaProps, TextFieldProps, TextInputProps, TextProps, TextareaProps, TrustBadgesBearProps, TrustMeProps, TrustedsiteTrustBadgesProps, TrustooProps, TrustreviewsProductReviewsProps, TrustshopProductReviewsProps, UltimateSalesBoostProps, UnlimitedBundlesDiscountsProps, UppromoteAffiliateMarketingProps, VendorProps, VitalsProps, WcWishlistBackInStockProps, WhatmoreShoppableVideosreelProps, WideBundleProps, WiserProps, WishlistKingProps, WishlistPlusProps, YotpoLoyaltyProps, YotpoReviewsProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "24.0.0-staging.
|
|
3
|
+
"version": "24.0.0-staging.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"react-youtube": "10.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@gem-sdk/core": "24.0.0-staging.
|
|
38
|
-
"@gem-sdk/styles": "24.0.0-staging.
|
|
39
|
-
"@gem-sdk/system": "24.0.0-staging.
|
|
37
|
+
"@gem-sdk/core": "24.0.0-staging.8",
|
|
38
|
+
"@gem-sdk/styles": "24.0.0-staging.8",
|
|
39
|
+
"@gem-sdk/system": "24.0.0-staging.8",
|
|
40
40
|
"@shopify/prettier-plugin-liquid": "^1.10.3",
|
|
41
41
|
"@thedutchcoder/postcss-rem-to-px": "0.0.2",
|
|
42
42
|
"@types/react-transition-group": "^4.4.12",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("./common/classes.js"),t=require("./hooks/useProductBundleDataState.js"),r=require("@gem-sdk/system"),a=require("@gem-sdk/core");exports.default=()=>{let{t:n}=a.useI18nStore(),{emitRedirectSetupPage:l,emitUpgradePlan:i,redirectGuideline:o,isFreePlan:c}=t.default(),d=r.createClass(s.getWarningPillClasses),u=r.createClass(s.getWarningCardClasses),g=r.createClass(s.getWarningIconWrapperClasses),p=r.createClass(s.getWarningTextWrapperClasses),h=r.createClass(s.getWarningTextClasses),C=r.createClass(s.getWarningActionsClasses),x=r.createClass(s.getWarningPrimaryButtonClasses),m=r.createClass(s.getWarningSecondaryButtonClasses),j=e=>s=>{s.stopPropagation(),e()};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:d,children:r.If(c,n("Bundle Discount locked"),n("Bundle discount not set up"))}),e.jsxs("div",{className:u,children:[e.jsx("div",{className:g,children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M8.575 3.10858C9.199 1.99714 10.801 1.99714 11.425 3.10858L17.494 13.9308C18.1013 15.0128 17.3187 16.3462 16.069 16.3462H3.93098C2.68127 16.3462 1.8987 15.0128 2.50598 13.9308L8.575 3.10858Z",stroke:"#916A00",strokeWidth:"1.3"}),e.jsx("path",{d:"M10 7.5V10.8333",stroke:"#916A00",strokeWidth:"1.3",strokeLinecap:"round"}),e.jsx("circle",{cx:"10",cy:"13.3333",r:"0.833333",fill:"#916A00"})]})}),e.jsxs("div",{className:p,children:[e.jsx("p",{className:h,children:r.If(c,n("Upgrade to Build plan to unlock Product Bundle & other premium features."),n("Add a bundle discount to this product to show the offer on your page."))}),e.jsxs("div",{className:C,children:[e.jsx("button",{type:"button",onClick:j(c?i:l),className:x,children:r.If(c,n("Upgrade plan"),n("Set it up"))}),r.If(!c,e.jsx("button",{type:"button",onClick:j(o),className:m,children:n("Read guideline")}))]})]})]})]})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=/ (?![^<]*>)/g;exports.replaceTextSpacesWithNbsp=s=>s?.replace(e," ");
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import{jsxs as e,Fragment as t,jsx as o}from"react/jsx-runtime";import{getWarningPillClasses as r,getWarningCardClasses as s,getWarningIconWrapperClasses as d,getWarningTextWrapperClasses as i,getWarningTextClasses as n,getWarningActionsClasses as l,getWarningPrimaryButtonClasses as c,getWarningSecondaryButtonClasses as a}from"./common/classes.js";import u from"./hooks/useProductBundleDataState.js";import{createClass as m,If as p}from"@gem-sdk/system";import{useI18nStore as h}from"@gem-sdk/core";let g=()=>{let{t:g}=h(),{emitRedirectSetupPage:k,emitUpgradePlan:f,redirectGuideline:v,isFreePlan:N}=u(),w=m(r),B=m(s),b=m(d),x=m(i),y=m(n),C=m(l),A=m(c),P=m(a),j=e=>t=>{t.stopPropagation(),e()};return e(t,{children:[o("div",{className:w,children:p(N,g("Bundle Discount locked"),g("Bundle discount not set up"))}),e("div",{className:B,children:[o("div",{className:b,children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o("path",{d:"M8.575 3.10858C9.199 1.99714 10.801 1.99714 11.425 3.10858L17.494 13.9308C18.1013 15.0128 17.3187 16.3462 16.069 16.3462H3.93098C2.68127 16.3462 1.8987 15.0128 2.50598 13.9308L8.575 3.10858Z",stroke:"#916A00",strokeWidth:"1.3"}),o("path",{d:"M10 7.5V10.8333",stroke:"#916A00",strokeWidth:"1.3",strokeLinecap:"round"}),o("circle",{cx:"10",cy:"13.3333",r:"0.833333",fill:"#916A00"})]})}),e("div",{className:x,children:[o("p",{className:y,children:p(N,g("Upgrade to Build plan to unlock Product Bundle & other premium features."),g("Add a bundle discount to this product to show the offer on your page."))}),e("div",{className:C,children:[o("button",{type:"button",onClick:j(N?f:k),className:A,children:p(N,g("Upgrade plan"),g("Set it up"))}),p(!N,o("button",{type:"button",onClick:j(v),className:P,children:g("Read guideline")}))]})]})]})]})};export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e=/ (?![^<]*>)/g,p=p=>p?.replace(e," ");export{p as replaceTextSpacesWithNbsp};
|