@yext/visual-editor 0.0.62 → 0.0.63
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/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/plugin/{debugger-DIK3Bqjc-Cb8l9yqy.js → debugger-DIK3Bqjc-BgrSMGbp.js} +1 -1
- package/dist/plugin/{debugger-DIK3Bqjc-B2OXASKf.cjs → debugger-DIK3Bqjc-BjBMuz6i.cjs} +1 -1
- package/dist/plugin/{index-CFDZ8M9F.js → index-BU3c50aZ.js} +49 -10
- package/dist/plugin/{index-BzJB8YIo.cjs → index-DNFbLH_-.cjs} +49 -10
- package/dist/plugin/plugin.cjs +1 -1
- package/dist/plugin/plugin.js +1 -1
- package/dist/visual-editor.cjs +39 -39
- package/dist/visual-editor.js +50 -46
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -325,6 +325,8 @@ declare const getAnalyticsScopeHash: (puckId: string) => string;
|
|
|
325
325
|
|
|
326
326
|
declare const applyHeaderScript: (document: Record<string, any>) => any;
|
|
327
327
|
|
|
328
|
+
declare const getCanonicalUrl: (data: Record<string, any>) => string;
|
|
329
|
+
|
|
328
330
|
declare const themeManagerTwMergeConfiguration: {
|
|
329
331
|
extend: {
|
|
330
332
|
classGroups: {
|
|
@@ -4333,4 +4335,4 @@ declare const addHeadingAlignmentMigration: Migration;
|
|
|
4333
4335
|
|
|
4334
4336
|
declare const defaultThemeConfig: ThemeConfig;
|
|
4335
4337
|
|
|
4336
|
-
export { AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, type CTAVariant, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, type CoreInfoData, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryData, type DirectoryProps, type DirectoryStyles, Editor, EmbeddedFieldStringInput, type EnhancedTranslatableCTA, EntityField, type EventData, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, type EventStyles, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderData, type ExpandedHeaderProps, type ExpandedHeaderStyles, type FAQData, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, type FooterProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatusAtom, type HoursStatusAtomProps, HoursTableAtom, type HoursTableAtomProps, Image, type ImageContentData, type ImageProps, type InsightData, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, type InsightStyles, KnowledgeGraphIcon, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, type MainConfigProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, type NearbyLocationsData, NearbyLocationsSection, type NearbyLocationsSectionProps, type NearbyLocationsStyles, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, PhoneAtom, type PhoneAtomProps, type PhotoGalleryData, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, type ProductData, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type ProductStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SectionContainer, type SectionContainerProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, type TestimonialData, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, type TestimonialStyles, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, type VideoData, type VideoProps, VideoSection, type VideoSectionProps, type VideoStyles, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchNearbyLocations, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveSchemaJson, resolveUrlTemplate, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|
|
4338
|
+
export { AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, type CTAVariant, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, type CoreInfoData, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryData, type DirectoryProps, type DirectoryStyles, Editor, EmbeddedFieldStringInput, type EnhancedTranslatableCTA, EntityField, type EventData, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, type EventStyles, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderData, type ExpandedHeaderProps, type ExpandedHeaderStyles, type FAQData, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, type FooterProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatusAtom, type HoursStatusAtomProps, HoursTableAtom, type HoursTableAtomProps, Image, type ImageContentData, type ImageProps, type InsightData, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, type InsightStyles, KnowledgeGraphIcon, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, type MainConfigProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, type NearbyLocationsData, NearbyLocationsSection, type NearbyLocationsSectionProps, type NearbyLocationsStyles, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, PhoneAtom, type PhoneAtomProps, type PhotoGalleryData, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, type ProductData, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type ProductStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SectionContainer, type SectionContainerProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, type TestimonialData, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, type TestimonialStyles, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, type VideoData, type VideoProps, VideoSection, type VideoSectionProps, type VideoStyles, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchNearbyLocations, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveSchemaJson, resolveUrlTemplate, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|
package/dist/index.d.ts
CHANGED
|
@@ -325,6 +325,8 @@ declare const getAnalyticsScopeHash: (puckId: string) => string;
|
|
|
325
325
|
|
|
326
326
|
declare const applyHeaderScript: (document: Record<string, any>) => any;
|
|
327
327
|
|
|
328
|
+
declare const getCanonicalUrl: (data: Record<string, any>) => string;
|
|
329
|
+
|
|
328
330
|
declare const themeManagerTwMergeConfiguration: {
|
|
329
331
|
extend: {
|
|
330
332
|
classGroups: {
|
|
@@ -4333,4 +4335,4 @@ declare const addHeadingAlignmentMigration: Migration;
|
|
|
4333
4335
|
|
|
4334
4336
|
declare const defaultThemeConfig: ThemeConfig;
|
|
4335
4337
|
|
|
4336
|
-
export { AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, type CTAVariant, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, type CoreInfoData, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryData, type DirectoryProps, type DirectoryStyles, Editor, EmbeddedFieldStringInput, type EnhancedTranslatableCTA, EntityField, type EventData, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, type EventStyles, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderData, type ExpandedHeaderProps, type ExpandedHeaderStyles, type FAQData, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, type FooterProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatusAtom, type HoursStatusAtomProps, HoursTableAtom, type HoursTableAtomProps, Image, type ImageContentData, type ImageProps, type InsightData, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, type InsightStyles, KnowledgeGraphIcon, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, type MainConfigProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, type NearbyLocationsData, NearbyLocationsSection, type NearbyLocationsSectionProps, type NearbyLocationsStyles, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, PhoneAtom, type PhoneAtomProps, type PhotoGalleryData, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, type ProductData, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type ProductStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SectionContainer, type SectionContainerProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, type TestimonialData, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, type TestimonialStyles, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, type VideoData, type VideoProps, VideoSection, type VideoSectionProps, type VideoStyles, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchNearbyLocations, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveSchemaJson, resolveUrlTemplate, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|
|
4338
|
+
export { AdvancedCoreInfoCategory, AdvancedCoreInfoCategoryComponents, type AdvancedCoreInfoCategoryProps, type AggregateRating, type AssetImageType, type AssetVideo, Background, type BackgroundProps, BackgroundProvider, type BackgroundStyle, type BannerData, BannerSection, type BannerSectionProps, type BannerStyles, BasicSelector, Body, type BodyProps, type BreadcrumbsData, BreadcrumbsSection, type BreadcrumbsSectionProps, type BreadcrumbsStyles, Button, type ButtonProps, CTA, type CTAVariant, CodeField, type CodeFieldProps, type ComponentField, ComponentFields, type CoreInfoData, CoreInfoSection, type CoreInfoSectionProps, type CoreInfoStyles, CustomCodeSection, type CustomCodeSectionProps, DeprecatedCategory, DeprecatedCategoryComponents, type DeprecatedCategoryProps, Directory, DirectoryCategory, DirectoryCategoryComponents, type DirectoryCategoryProps, type DirectoryConfigProps, type DirectoryData, type DirectoryProps, type DirectoryStyles, Editor, EmbeddedFieldStringInput, type EnhancedTranslatableCTA, EntityField, type EventData, EventSection, type EventSectionProps, type EventSectionType, type EventStruct, type EventStyles, ExpandedFooter, type ExpandedFooterData, type ExpandedFooterProps, type ExpandedFooterStyles, ExpandedHeader, type ExpandedHeaderData, type ExpandedHeaderProps, type ExpandedHeaderStyles, type FAQData, FAQSection, type FAQSectionProps, type FAQSectionType, type FAQStruct, type FAQStyles, type FontRegistry, FontSizeSelector, Footer, type FooterProps, Header, type HeaderProps, Heading, type HeadingLevel, type HeadingProps, type HeroData, HeroSection, type HeroSectionProps, type HeroSectionType, type HeroStyles, HoursStatusAtom, type HoursStatusAtomProps, HoursTableAtom, type HoursTableAtomProps, Image, type ImageContentData, type ImageProps, type InsightData, InsightSection, type InsightSectionProps, type InsightSectionType, type InsightStruct, type InsightStyles, KnowledgeGraphIcon, LocatorCategory, LocatorCategoryComponents, type LocatorCategoryProps, LocatorComponent, type LocatorConfigProps, type LocatorProps, type MainConfigProps, MaybeLink, type MaybeLinkProps, MaybeRTF, type MaybeRTFProps, type Metadata, type Migration, type MigrationAction, type MigrationRegistry, type NearbyLocationsData, NearbyLocationsSection, type NearbyLocationsSectionProps, type NearbyLocationsStyles, OptionalNumberField, type OptionalNumberFieldProps, OtherCategory, OtherCategoryComponents, type OtherCategoryProps, PageSection, PageSectionCategory, PageSectionCategoryComponents, type PageSectionCategoryProps, type PageSectionProps, type PersonStruct, PhoneAtom, type PhoneAtomProps, type PhotoGalleryData, PhotoGallerySection, type PhotoGallerySectionProps, type PhotoGalleryStyles, type PresetImageType, type ProductData, ProductSection, type ProductSectionProps, type ProductSectionType, type ProductStruct, type ProductStyles, type PromoData, PromoSection, type PromoSectionProps, type PromoSectionType, type PromoStyles, type RenderYextEntityFieldSelectorProps, ReviewStars, type ReviewStarsProps, ReviewsSection, type ReviewsSectionProps, type RichText, SectionContainer, type SectionContainerProps, SpacingSelector, StaticMapSection, type StaticMapSectionProps, type StaticMapStyles, type StreamDocument, TailwindConfigContext, TeamSection, type TeamSectionProps, type TeamSectionType, TemplatePropsContext, type TestimonialData, TestimonialSection, type TestimonialSectionProps, type TestimonialSectionType, type TestimonialStruct, type TestimonialStyles, type ThemeConfig, ThemeOptions, Timestamp, TimestampOption, type TimestampProps, Toggle, type TranslatableCTA, type TranslatableRichText, TranslatableRichTextField, type TranslatableString, TranslatableStringField, Video, type VideoData, type VideoProps, VideoSection, type VideoSectionProps, type VideoStyles, VisibilityWrapper, VisualEditorComponentsContentPath, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, YextField, type YextFieldDefinition, type YextSchemaField, type YextStructEntityField, YextStructFieldSelector, addHeadingAlignmentMigration, applyAnalytics, applyHeaderScript, applyTheme, backgroundColors, bodyVariants, buttonVariants, constructFontSelectOptions, createSearchAnalyticsConfig, createSearchHeadlessConfig, defaultFonts, defaultThemeConfig, defaultThemeTailwindExtensions, directoryConfig, fetchLocalesToPathsForEntity, fetchNearbyLocations, fetchReviewsForEntity, filterComponentsFromConfig, filterMaxWidths, getAggregateRating, getAnalyticsScopeHash, getCanonicalUrl, getFontWeightOptions, getFontWeightOverrideOptions, getMaxWidthOptions, getPageMetadata, getSchema, headingVariants, i18nComponentsInstance, i18nPlatformInstance, imgSizesHelper, locatorConfig, mainConfig, mergeMeta, migrate, migrationRegistry, msg, normalizeSlug, pt, resolveComponentData, resolveSchemaJson, resolveUrlTemplate, resolveYextEntityField, resolveYextStructField, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useBackground, useDocument, useEntityFields, useOverflow, usePlatformBridgeDocument, usePlatformBridgeEntityFields, usePlatformTranslation, useTailwindConfig, useTemplateProps, withPropOverrides };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as b, n as l, e as w, a as k, l as S } from "./index-
|
|
1
|
+
import { r as b, n as l, e as w, a as k, l as S } from "./index-BU3c50aZ.js";
|
|
2
2
|
function P() {
|
|
3
3
|
return S().name !== "browser" || window.hasOwnProperty("debuggerInitialized") ? null : (window.debuggerInitialized = !0, k.createPortal(/* @__PURE__ */ l.jsx($, {}), document.body));
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-DNFbLH_-.cjs");function N(){return n.la().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,n.reactDomExports.createPortal(n.nt.jsx(j,{}),document.body))}const k=(e,a)=>{const s=e.dataset.yaAction,t=e.dataset.yaScopeoverride,o=e.dataset.yaEventname,i=t||a;return{action:s,originalEventName:i?`${i}_${o}`:o,scope:i}},S=(e,a)=>{const s=[];let t=e;for(;t!=null&&t.parentElement;)t=t.parentElement.closest(a),t&&s.push(t);return s},v={},w="YA_NO_SCOPE",y=(e,a,s,t)=>{v.hasOwnProperty(e)?v[e].events.map(o=>o.el).includes(t)||(v[e].events=[...v[e].events,{eventData:a,el:t}]):v[e]={scopeEl:s||t,events:[{eventData:a,el:t}]}};function j(){const[e,a]=n.reactExports.useState(),[s,t]=n.reactExports.useState([]),[o,i]=n.reactExports.useState(!1),l=r=>{a(e===r?void 0:r)};return n.reactExports.useEffect(()=>{let r=null;const d=()=>{r&&r.abort(),r=new AbortController;const c=r.signal;document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-eventname]").forEach((u,E)=>{const m=u.closest("[data-ya-scope]"),h=m?.dataset.yaScope,p=k(u,h);u.addEventListener("mouseenter",()=>{t([{elem:u,key:`${p.originalEventName}_${E}`,action:p.action,originalEventName:p.originalEventName,scope:p.scope}])},{signal:c}),u.addEventListener("mouseleave",()=>{t([])},{signal:c});const x=u.dataset.yaScopeoverride;x?y(x,p,m,u):[h,...S(u,"[data-ya-scope]").map(b=>b.dataset.yaScope)].forEach(b=>{y(b||w,p,m,u)})}),i(!0)};d();const g=new MutationObserver(d);return g.observe(document,{childList:!0,subtree:!0}),()=>{document.documentElement.classList.remove("xYextDebug"),g.disconnect(),r?.abort()}},[]),o?n.nt.jsxs(n.nt.Fragment,{children:[n.nt.jsxs("div",{className:"analytics-debugger",children:[n.nt.jsxs("div",{className:"analytics-debugger-toggles",children:[n.nt.jsx("button",{className:n.el("analytics-debugger-toggle",{"is-active":e==="Events"}),onClick:()=>l("Events"),children:"Events"}),n.nt.jsx("button",{className:n.el("analytics-debugger-toggle",{"is-active":e==="Scopes"}),onClick:()=>l("Scopes"),children:"Scopes"})]}),e&&n.nt.jsx("div",{className:"analytics-debugger-tabs",children:e==="Events"?n.nt.jsx(C,{data:v,setTooltips:t}):n.nt.jsx($,{data:v,setTooltips:t})})]}),n.nt.jsx(D,{tooltips:s})]}):null}const Y=()=>{const e={};return Object.values(v).forEach(a=>{a.events.forEach(s=>{const{originalEventName:t}=s.eventData;e[t]||(e[t]=[]),!e[t].find(o=>o.el===s.el)&&e[t].push(s)})}),e};function C(e){const{setTooltips:a}=e,[s,t]=n.reactExports.useState([]),[o,i]=n.reactExports.useState(""),l=(r,d)=>{s.forEach(c=>c.classList.remove("analytics-event-highlight"));const g=r.map(c=>(c.el.scrollIntoView({behavior:"smooth",block:"nearest"}),c.el.classList.add("analytics-event-highlight"),c.el));t(g),i(d),a(r.map((c,u)=>({elem:c.el,key:`${c.eventData.originalEventName}_${u}`,action:c.eventData.action,originalEventName:c.eventData.originalEventName,scope:c.eventData.scope})))};return n.nt.jsxs("div",{className:"analytics-debugger-tab",children:[n.nt.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),n.nt.jsx("ul",{className:"analytics-debugger-list",children:Object.entries(Y()).map(([r,d],g)=>{const c=`${r}_${g}`;return n.nt.jsx("li",{className:"analytics-debugger-listItem",children:n.nt.jsx("button",{className:n.el("analytics-debugger-button",{"is-active":c===o}),onClick:()=>l(d,c),children:r})},c)})})]})}function $(e){const{data:a,setTooltips:s}=e,[t,o]=n.reactExports.useState(""),i=l=>{const r=a[l];r.scopeEl&&(r.scopeEl.scrollIntoView({behavior:"smooth",block:"nearest"}),o(l),s(r.events.map((d,g)=>{const c=d.eventData;return{elem:d.el,key:`${c.originalEventName}_${g}`,action:c.action,originalEventName:c.originalEventName,scope:c.scope}})))};return n.nt.jsxs("div",{className:"analytics-debugger-tab",children:[n.nt.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),n.nt.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(a).map((l,r)=>{if(l!==w)return n.nt.jsx("li",{className:"analytics-debugger-listItem",children:n.nt.jsx("button",{className:n.el("analytics-debugger-button",{"is-active":l===t}),onClick:()=>i(l),children:l})},l+r)})})]})}function D(e){const a=n.reactExports.useRef({});return n.reactExports.useEffect(()=>{if(a.current)for(const s of Object.values(a.current)){const t=Object.values(a.current).map(o=>o.el).filter(o=>o!==s.el);O(s,t),s.el.style.visibility="visible"}},[e.tooltips]),n.nt.jsx(n.nt.Fragment,{children:e.tooltips.map(s=>n.nt.jsxs("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:t=>{t?a.current[s.key]={el:t,tooltip:s}:delete a.current[s.key]},children:[n.nt.jsxs("span",{children:["Action: ",s.action]}),n.nt.jsx("br",{}),n.nt.jsxs("span",{children:["Scope: ",s.scope]}),n.nt.jsx("br",{}),n.nt.jsxs("span",{children:["Original Event Name: ",s.originalEventName]})]},s.key))})}function O(e,a){for(let s=0;s<9;s++){const t=I(e.tooltip.elem.getBoundingClientRect(),e.el,s);if(e.el.style.inset=`${t.top} auto auto ${t.left}`,!!B(e.el.getBoundingClientRect().left,e.el.getBoundingClientRect().top+window.scrollY,e.el.getBoundingClientRect().right,e.el.getBoundingClientRect().bottom+window.scrollY))continue;let o=!0;for(let i=0;i<a.length;i++){const l=a[i];R(e.el,l)&&(o=!1)}if(o)break}}function R(e,a){const s=e.getBoundingClientRect().top+window.scrollY,t=e.getBoundingClientRect().left,o=s+e.clientHeight,i=t+e.clientWidth,l=a.getBoundingClientRect().top+window.scrollY,r=a.getBoundingClientRect().left,d=l+a.clientHeight,g=r+a.clientWidth,c=(u,E,m,h,p,x,b,f)=>m<=p&&p<=b&&h<=x&&x<=f||m<=u&&u<=b&&h<=E&&E<=f||m<=u&&u<=b&&h<=x&&x<=f||m<=p&&p<=b&&h<=E&&E<=f;return c(t,s,r,l,i,o,g,d)||c(r,l,t,s,g,d,i,o)}function B(e,a,s,t){return e<0||s>window.innerWidth||a<0||t>document.documentElement.scrollHeight}function I(e,a,s){const t=a.clientHeight,o=a.clientWidth;let i,l;switch(s){case 0:{l=window.scrollY+e.top-t+"px",i=e.left-o+"px";break}case 1:{l=window.scrollY+e.top-t+"px",i=e.left+"px";break}case 2:{l=window.scrollY+e.top-t+"px",i=e.right+"px";break}case 3:{l=window.scrollY+e.top-t+"px",i=e.right-o+"px";break}case 4:{l=window.scrollY+e.bottom+"px",i=e.left-o+"px";break}case 5:{l=window.scrollY+e.bottom+"px",i=e.left+"px";break}case 6:{l=window.scrollY+e.bottom+"px",i=e.right-o+"px";break}case 7:{l=window.scrollY+e.bottom+"px",i=e.right+"px";break}default:l=0,i=0}return{top:l,left:i}}exports.AnalyticsDebuggerInternal=j;exports.default=N;
|
|
@@ -42,12 +42,14 @@ import {
|
|
|
42
42
|
defaultThemeConfig,
|
|
43
43
|
mainConfig,
|
|
44
44
|
getSchema,
|
|
45
|
+
getCanonicalUrl,
|
|
45
46
|
} from "@yext/visual-editor";
|
|
46
47
|
import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
|
|
47
48
|
|
|
48
|
-
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
50
|
+
data: TemplateRenderProps
|
|
51
|
+
): HeadConfig => {
|
|
52
|
+
const { document } = data;
|
|
51
53
|
const { title, description } = getPageMetadata(document);
|
|
52
54
|
const schema = getSchema(document);
|
|
53
55
|
const faviconUrl = document?._favicon ?? document?._site?.favicon?.url;
|
|
@@ -64,6 +66,17 @@ export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = ({
|
|
|
64
66
|
type: "image/x-icon",
|
|
65
67
|
},
|
|
66
68
|
},
|
|
69
|
+
...(data.document.siteDomain
|
|
70
|
+
? [
|
|
71
|
+
{
|
|
72
|
+
type: "link",
|
|
73
|
+
attributes: {
|
|
74
|
+
rel: "canonical",
|
|
75
|
+
href: getCanonicalUrl(data),
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
: []),
|
|
67
80
|
...(description
|
|
68
81
|
? [
|
|
69
82
|
{
|
|
@@ -253,12 +266,14 @@ import {
|
|
|
253
266
|
defaultThemeConfig,
|
|
254
267
|
directoryConfig,
|
|
255
268
|
getSchema,
|
|
269
|
+
getCanonicalUrl,
|
|
256
270
|
} from "@yext/visual-editor";
|
|
257
271
|
import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
|
|
258
272
|
|
|
259
|
-
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
260
|
-
|
|
261
|
-
|
|
273
|
+
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
274
|
+
data: TemplateRenderProps
|
|
275
|
+
): HeadConfig => {
|
|
276
|
+
const { document } = data;
|
|
262
277
|
const { title, description } = getPageMetadata(document);
|
|
263
278
|
const schema = getSchema(document);
|
|
264
279
|
const faviconUrl = document?._favicon ?? document?._site?.favicon?.url;
|
|
@@ -275,6 +290,17 @@ export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = ({
|
|
|
275
290
|
type: "image/x-icon",
|
|
276
291
|
},
|
|
277
292
|
},
|
|
293
|
+
...(data.document.siteDomain
|
|
294
|
+
? [
|
|
295
|
+
{
|
|
296
|
+
type: "link",
|
|
297
|
+
attributes: {
|
|
298
|
+
rel: "canonical",
|
|
299
|
+
href: getCanonicalUrl(data),
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
]
|
|
303
|
+
: []),
|
|
278
304
|
...(description
|
|
279
305
|
? [
|
|
280
306
|
{
|
|
@@ -366,13 +392,15 @@ import {
|
|
|
366
392
|
defaultThemeConfig,
|
|
367
393
|
locatorConfig,
|
|
368
394
|
getSchema,
|
|
395
|
+
getCanonicalUrl,
|
|
369
396
|
} from "@yext/visual-editor";
|
|
370
397
|
import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
|
|
371
398
|
import mapboxPackageJson from "mapbox-gl/package.json";
|
|
372
399
|
|
|
373
|
-
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
374
|
-
|
|
375
|
-
|
|
400
|
+
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
401
|
+
data: TemplateRenderProps
|
|
402
|
+
): HeadConfig => {
|
|
403
|
+
const { document } = data;
|
|
376
404
|
const { title, description } = getPageMetadata(document);
|
|
377
405
|
const schema = getSchema(document);
|
|
378
406
|
const faviconUrl = document?._favicon ?? document?._site?.favicon?.url;
|
|
@@ -389,6 +417,17 @@ export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = ({
|
|
|
389
417
|
type: "image/x-icon",
|
|
390
418
|
},
|
|
391
419
|
},
|
|
420
|
+
...(data.document.siteDomain
|
|
421
|
+
? [
|
|
422
|
+
{
|
|
423
|
+
type: "link",
|
|
424
|
+
attributes: {
|
|
425
|
+
rel: "canonical",
|
|
426
|
+
href: getCanonicalUrl(data),
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
]
|
|
430
|
+
: []),
|
|
392
431
|
...(description
|
|
393
432
|
? [
|
|
394
433
|
{
|
|
@@ -43944,7 +43983,7 @@ function CSt(e, t) {
|
|
|
43944
43983
|
return [e, t].filter((n) => !!n).map((n) => SSt(n)).join("_");
|
|
43945
43984
|
}
|
|
43946
43985
|
const ESt = me.createContext(null);
|
|
43947
|
-
me.lazy(() => import("./debugger-DIK3Bqjc-
|
|
43986
|
+
me.lazy(() => import("./debugger-DIK3Bqjc-BgrSMGbp.js"));
|
|
43948
43987
|
const vP = me.createContext({ name: "" }), oae = () => me.useContext(vP).name;
|
|
43949
43988
|
function sae(e) {
|
|
43950
43989
|
var t;
|
|
@@ -24,12 +24,14 @@ import {
|
|
|
24
24
|
defaultThemeConfig,
|
|
25
25
|
mainConfig,
|
|
26
26
|
getSchema,
|
|
27
|
+
getCanonicalUrl,
|
|
27
28
|
} from "@yext/visual-editor";
|
|
28
29
|
import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
|
|
29
30
|
|
|
30
|
-
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
32
|
+
data: TemplateRenderProps
|
|
33
|
+
): HeadConfig => {
|
|
34
|
+
const { document } = data;
|
|
33
35
|
const { title, description } = getPageMetadata(document);
|
|
34
36
|
const schema = getSchema(document);
|
|
35
37
|
const faviconUrl = document?._favicon ?? document?._site?.favicon?.url;
|
|
@@ -46,6 +48,17 @@ export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = ({
|
|
|
46
48
|
type: "image/x-icon",
|
|
47
49
|
},
|
|
48
50
|
},
|
|
51
|
+
...(data.document.siteDomain
|
|
52
|
+
? [
|
|
53
|
+
{
|
|
54
|
+
type: "link",
|
|
55
|
+
attributes: {
|
|
56
|
+
rel: "canonical",
|
|
57
|
+
href: getCanonicalUrl(data),
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
]
|
|
61
|
+
: []),
|
|
49
62
|
...(description
|
|
50
63
|
? [
|
|
51
64
|
{
|
|
@@ -235,12 +248,14 @@ import {
|
|
|
235
248
|
defaultThemeConfig,
|
|
236
249
|
directoryConfig,
|
|
237
250
|
getSchema,
|
|
251
|
+
getCanonicalUrl,
|
|
238
252
|
} from "@yext/visual-editor";
|
|
239
253
|
import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
|
|
240
254
|
|
|
241
|
-
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
242
|
-
|
|
243
|
-
|
|
255
|
+
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
256
|
+
data: TemplateRenderProps
|
|
257
|
+
): HeadConfig => {
|
|
258
|
+
const { document } = data;
|
|
244
259
|
const { title, description } = getPageMetadata(document);
|
|
245
260
|
const schema = getSchema(document);
|
|
246
261
|
const faviconUrl = document?._favicon ?? document?._site?.favicon?.url;
|
|
@@ -257,6 +272,17 @@ export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = ({
|
|
|
257
272
|
type: "image/x-icon",
|
|
258
273
|
},
|
|
259
274
|
},
|
|
275
|
+
...(data.document.siteDomain
|
|
276
|
+
? [
|
|
277
|
+
{
|
|
278
|
+
type: "link",
|
|
279
|
+
attributes: {
|
|
280
|
+
rel: "canonical",
|
|
281
|
+
href: getCanonicalUrl(data),
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
]
|
|
285
|
+
: []),
|
|
260
286
|
...(description
|
|
261
287
|
? [
|
|
262
288
|
{
|
|
@@ -348,13 +374,15 @@ import {
|
|
|
348
374
|
defaultThemeConfig,
|
|
349
375
|
locatorConfig,
|
|
350
376
|
getSchema,
|
|
377
|
+
getCanonicalUrl,
|
|
351
378
|
} from "@yext/visual-editor";
|
|
352
379
|
import { AnalyticsProvider, SchemaWrapper } from "@yext/pages-components";
|
|
353
380
|
import mapboxPackageJson from "mapbox-gl/package.json";
|
|
354
381
|
|
|
355
|
-
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
356
|
-
|
|
357
|
-
|
|
382
|
+
export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = (
|
|
383
|
+
data: TemplateRenderProps
|
|
384
|
+
): HeadConfig => {
|
|
385
|
+
const { document } = data;
|
|
358
386
|
const { title, description } = getPageMetadata(document);
|
|
359
387
|
const schema = getSchema(document);
|
|
360
388
|
const faviconUrl = document?._favicon ?? document?._site?.favicon?.url;
|
|
@@ -371,6 +399,17 @@ export const getHeadConfig: GetHeadConfig<TemplateRenderProps> = ({
|
|
|
371
399
|
type: "image/x-icon",
|
|
372
400
|
},
|
|
373
401
|
},
|
|
402
|
+
...(data.document.siteDomain
|
|
403
|
+
? [
|
|
404
|
+
{
|
|
405
|
+
type: "link",
|
|
406
|
+
attributes: {
|
|
407
|
+
rel: "canonical",
|
|
408
|
+
href: getCanonicalUrl(data),
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
]
|
|
412
|
+
: []),
|
|
374
413
|
...(description
|
|
375
414
|
? [
|
|
376
415
|
{
|
|
@@ -2003,7 +2042,7 @@ Check the top-level render call using <`+cn+">.")}return $t}}function Ht(Le,$t){
|
|
|
2003
2042
|
<%s {...props} />
|
|
2004
2043
|
React keys must be passed directly to JSX without using spread:
|
|
2005
2044
|
let props = %s;
|
|
2006
|
-
<%s key={someKey} {...props} />`,Oi,ha,to,ha),Gn[ha+Oi]=!0}}return Le===r?fr(Bn):nr(Bn),Bn}}function Ar(Le,$t,cn){return jr(Le,$t,cn,!0)}function ci(Le,$t,cn){return jr(Le,$t,cn,!1)}var Ki=ci,ra=Ar;ZT.Fragment=r,ZT.jsx=Ki,ZT.jsxs=ra}()),ZT}process.env.NODE_ENV==="production"?yP.exports=lSt():yP.exports=uSt();var Ya=yP.exports;function cSt(e){switch(e){case"AD":case"AM":case"AT":case"AX":case"AZ":case"BA":case"BY":case"CY":case"CZ":case"DK":case"DZ":case"EC":case"EH":case"ET":case"FI":case"FR":case"GE":case"GF":case"GI":case"GP":case"GW":case"HT":case"KE":case"KV":case"KW":case"LA":case"LU":case"MC":case"MD":case"ME":case"MG":case"MK":case"MQ":case"MZ":case"NC":case"NL":case"NO":case"PL":case"PT":case"PY":case"RE":case"RS":case"SA":case"SE":case"SJ":case"SM":case"SN":case"TC":case"TJ":case"TM":case"TN":case"TZ":case"UY":case"VG":case"ZM":return[["line1"],["line2"],["postalCode","city"],["countryCode"]];case"AF":case"IR":return[["line1"],["line2"],["city"],["region"],["postalCode"],["countryCode"]];case"AG":case"AO":case"AW":case"BJ":case"BO":case"BS":case"BZ":case"CI":case"CW":case"DJ":case"FJ":case"GA":case"GH":case"GM":case"GY":case"JM":case"KI":case"LY":case"MW":case"NA":case"NR":case"PS":case"QA":case"RW":case"SC":case"SR":case"SX":case"TG":case"TT":case"UG":case"VU":return[["line1"],["line2"],["city"],["countryCode"]];case"AL":case"EE":case"IS":return[["line1"],["line2"],["postalCode","city"]];case"AR":return[["line1"],["line2"],["postalCode","city",",","region"],["countryCode"]];case"AS":case"BB":case"BD":case"BM":case"BN":case"BT":case"CR":case"DO":case"FK":case"FM":case"GR":case"GU":case"JO":case"KZ":case"LB":case"LK":case"LS":case"MA":case"MH":case"MM":case"MR":case"MT":case"MV":case"NG":case"PG":case"PK":case"PR":case"RO":case"SG":case"VC":case"WS":return[["line1"],["line2"],["city","postalCode"],["countryCode"]];case"AU":case"CA":case"SZ":case"US":case"VI":return[["line1"],["line2"],["city",",","region","postalCode"],["countryCode"]];case"BE":case"PE":return[["line1"],["line2"],["postalCode","sublocality","city"],["countryCode"]];case"BF":case"BI":case"BQ":case"BW":case"CF":case"CG":case"CM":case"DM":case"ER":case"GQ":case"KM":case"ML":case"SY":case"TD":case"ZW":return[["line1"],["line2"],["city"],["region"],["countryCode"]];case"BG":return[["line1"],["postalCode","region"],["countryCode"]];case"BH":return[["line1"],["line2"],["sublocality","city"],["countryCode"]];case"BR":return[["line1"],["line2"],["sublocality"],["city","region"],["postalCode"],["countryCode"]];case"CH":case"DE":case"GT":case"IT":case"LI":case"MY":case"NI":case"OM":case"SK":case"VA":return[["line1"],["line2"],["postalCode","city","region"],["countryCode"]];case"CL":case"PF":return[["line1"],["line2"],["city","postalCode","region"],["countryCode"]];case"CN":return[["region","city","sublocality"],["line1"],["line2"],["countryCode"]];case"CO":case"ID":case"IQ":case"KH":case"MP":case"NP":case"PW":case"UA":return[["line1"],["line2"],["city","region","postalCode"],["countryCode"]];case"EG":return[["line1"],["line2"],["sublocality","city","region","postalCode"],["countryCode"]];case"ES":case"IL":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"GB":case"MN":case"ZA":return[["line1"],["line2"],["sublocality","city","postalCode"],["countryCode"]];case"GG":case"IM":case"JE":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"GN":return[["line1","line2","city"],["countryCode"]];case"HK":return[["line1"],["line2"],["sublocality"],["city"],["region"],["countryCode"]];case"HR":return[["line1"],["postalCode","city","region"],["countryCode"]];case"HU":case"SI":return[["postalCode","city"],["line1"],["line2"],["countryCode"]];case"IE":return[["line1"],["line2"],["sublocality"],["city","region","postalCode"],["countryCode"]];case"IN":case"VE":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"JP":return[["line2"],["line1","sublocality"],["city","region"],["postalCode"],["countryCode"]];case"KR":return[["countryCode"],["region","city","sublocality","line1"],["line2"],["postalCode"]];case"KY":return[["line1"],["line2"],["postalCode"],["countryCode"]];case"LT":return[["line1"],["postalCode","city","sublocality","region"],["countryCode"]];case"LV":return[["line1"],["city",",","postalCode"],["countryCode"]];case"MO":return[["line1"],["line2"],["sublocality"],["city"],["countryCode"]];case"MU":return[["line1"],["line2"],["city"],["region","postalCode"],["countryCode"]];case"MX":return[["line1"],["line2"],["sublocality"],["postalCode","city",",","region"],["countryCode"]];case"NE":case"SD":return[["line1"],["line2"],["postalCode"],["city"],["region"],["countryCode"]];case"NZ":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"PH":case"TW":case"VN":return[["line1"],["line2"],["sublocality","city"],["region","postalCode"],["countryCode"]];case"RU":return[["line1"],["line2"],["city"],["postalCode"],["countryCode"]];case"SB":case"SL":case"ST":case"TL":case"TO":case"TV":return[["line1"],["line2"],["city",",","region"],["countryCode"]];case"TH":case"TR":return[["line1"],["line2"],["sublocality"],["postalCode","city"],["countryCode"]];case"UZ":return[["line1"],["line2"],["region","postalCode"],["countryCode"]]}return[["line1","line2"],["city","region","postalCode"],["countryCode"]]}const dSt={GOOGLEMYBUSINESS:"GOOGLEMYBUSINESS"},UG={APPLE:"apple",BING:"bing"},fSt=(e,t)=>{const n={region:"localizedRegionName",countryCode:"localizedCountryName"}[e];return n&&t[n]},xz=(e,t=[],n,r={route:!1},a)=>{const o="Failed to construct query for maps service.";let l=e&&qG([e.line1,e.line2,e.city,e.region,e.postalCode,e.countryCode]);switch(r.provider){case UG.APPLE:{if(a!=null&&a.latitude&&a!=null&&a.longitude)return WG(`${a.latitude},${a.longitude}`,r.route);if(!l){console.warn(`${o} Check that you've provided a valid Yext Address.`);break}return WG(l,r.route)}case UG.BING:{if(a!=null&&a.latitude&&a!=null&&a.longitude)return GG(`${a.latitude},${a.longitude}`,r.route);if(l=e&&qG([e.line1,e.city,e.region,e.postalCode]),!l){console.warn(`${o} Check that you've provided a valid Yext Address.`);break}return GG(l,r.route)}default:{if(a!=null&&a.latitude&&a!=null&&a.longitude)return KG(`${a.latitude},${a.longitude}`,r.route);const i=t.find(h=>{var m;return((m=h?.publisher)==null?void 0:m.toUpperCase())===dSt.GOOGLEMYBUSINESS});if(i!=null&&i.listingUrl)return i.listingUrl;if(!l){console.warn(`${o} Check that you've provided a valid Yext Address, Yext ListingType, or Google Place ID.`);break}return KG(l,r.route)}}},WG=(e,t)=>t?`https://maps.apple.com/?daddr=${e}`:`https://maps.apple.com/?address=${e}`,GG=(e,t)=>t?`https://bing.com/maps/default.aspx?rtp=adr.${e}`:`https://bing.com/maps/default.aspx?where1=${e}`,KG=(e,t)=>t?`https://maps.google.com/maps/dir/?api=1&destination=${e}`:`https://maps.google.com/maps/search/?api=1&query=${e}`,qG=(e=[])=>{if(!e.length)return"";const t=e.filter(Boolean).join(", ");return encodeURI(t)},wz=({address:e,lines:t,separator:n=",",...r})=>{const a=(t||cSt(e.countryCode)).map(o=>Ya.jsx(hSt,{address:e,line:o,separator:n},o.toString()));return me.createElement("div",{...r,key:e.toString()},a)},hSt=({address:e,line:t,separator:n})=>{const r=[];let a=0;for(const o of t){if(o===","){r.push(Ya.jsx("span",{children:n},`separator-${a++}`));continue}const l=e[o];if(!l)continue;const i=fSt(o,e);if(i){r.push(Ya.jsxs(me.Fragment,{children:[" ",Ya.jsx("abbr",{title:i,children:l})]},o));continue}r.push(Ya.jsx("span",{children:" "+l},o))}return Ya.jsx("div",{className:"address-line",children:r})};var v6={};Object.defineProperty(v6,"__esModule",{value:!0});var pSt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mSt=typeof window<"u"&&typeof window.document<"u",gSt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ySt=(typeof self>"u"?"undefined":pSt(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",vSt=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),bSt=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",YG=v6.isBrowser=mSt;v6.isWebWorker=ySt;var _St=v6.isNode=gSt;v6.isJsDom=vSt;var xSt=v6.isDeno=bSt;let wSt=class{constructor(){ji(this,"name"),ji(this,"isServerSide"),ji(this,"version");var t;xSt?(this.name="deno",this.version="",YG&&(this.version=((t=window.Deno)==null?void 0:t.version.deno)||""),this.isServerSide=!0):_St?(this.name="node",this.version=process.versions.node,this.isServerSide=!0):YG?(this.name="browser",this.version=navigator.userAgent,this.isServerSide=!1):(this.name="unknown",this.version="",this.isServerSide=!1)}getNodeMajorVersion(){if(this.name!=="node")throw new Error("Not running in Node.");return+this.version.split(".")[0]}};const oae=()=>new wSt;function SSt(e){return e?e.toLowerCase().trim().replace(/\s/g,""):""}function CSt(e,t){return[e,t].filter(n=>!!n).map(n=>SSt(n)).join("_")}const ESt=me.createContext(null);me.lazy(()=>Promise.resolve().then(()=>require("./debugger-DIK3Bqjc-B2OXASKf.cjs")));const vP=me.createContext({name:""}),sae=()=>me.useContext(vP).name;function lae(e){var t;const n=sae(),[r]=me.useState({name:CSt(n,e.name)}),a=(t=uae())==null?void 0:t.getDebugEnabled(),[o,l]=me.useState(!1);return me.useEffect(()=>{l(!0)},[]),a&&o?Ya.jsx("section",{"data-ya-scope":r.name,children:Ya.jsx(vP.Provider,{value:r,children:e.children})}):Ya.jsx(vP.Provider,{value:r,children:e.children})}function uae(){const e=me.useContext(ESt);if(!e)return e;oae().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await e.optIn()});const t=sae();return{getDebugEnabled(){return e.getDebugEnabled()},identify(n){return e.identify(n)},optIn(){return e.optIn()},pageView(){return e.pageView()},track(n){return e.track({...n,scope:n.scope??t})}}}const G_={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},TSt=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}const n=e.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${e}`);return}r="eu"}if(!e.pathname.startsWith("/f")){console.error(`Invalid path: ${e}`);return}const a=e.pathname.replace(/^\//,"").split("/");if(a.length<2||a.length>3){console.error(`Invalid path: ${e}`);return}let o;if(a[0]==="f")o="prod";else switch(a[0].replace("f-","")){case"sandbox":{o="sbx";break}case"qa":{o="qa";break}case"dev":{o="dev";break}default:{console.error(`Invalid path: ${e}`);return}}if(r==="eu"&&(o==="dev"||o==="sbx")){console.error(`Invalid path: ${e}`);return}let l;if(a.length===3&&(l=parseInt(a[1]),Number.isNaN(l))){console.error(`Invalid account id: ${e}`);return}const i=a[a.length-1].split("."),h=i.length===2?`.${i[1]}`:"",m=i[0];return{scheme:t,partition:r,env:o,accountId:l,contentHash:m,extension:h}},kSt=(e,t,n,r)=>{const a=`https://dyn${e.partition==="us"?"":`.${e.partition}`}.mktgcdn.com`;let o="f";switch(e.env){case"prod":break;case"sbx":{o+="-sandbox";break}default:o+=`-${e.env.toString()}`}const l=e.accountId!==void 0?`${e.accountId}/`:"",i=dae(r);return`${a}/${o}/${l}${e.contentHash}${e.extension}/width=${Math.round(t)},height=${Math.round(n)}${i}`},ASt=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}if(e.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${e}`);return}if(!e.pathname.startsWith("/p")){console.error(`Invalid path: ${e}`);return}const n=e.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${e}`);return}let r;if(n[0]==="p")r="prod";else switch(n[0].replace("p-","")){case"sandbox":{r="sbx";break}case"qa":{r="qa";break}case"dev":{r="dev";break}default:{console.error(`Invalid path: ${e}`);return}}const a=n[1];let o;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${e}`);return}if(o=parseFloat(n[2]),Number.isNaN(o)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${e}`);return}}const l=n[n.length-1].split("."),i=l.length===2?`.${l[1]}`:"",h=l[0];return{scheme:t,env:r,contentHash:a,aspectRatio:o,name:h,extension:i}},LSt=(e,t,n,r)=>{const a="https://dyn.mktgcdn.com";let o="p";switch(e.env){case"prod":break;case"sbx":{o+="-sandbox";break}default:o+=`-${e.env.toString()}`}const l=dae(r);return`${a}/${o}/${e.contentHash}/width=${Math.round(t)},height=${Math.round(n)}${l}`},bP=(e,t,n,r)=>{if(!cae(e)){console.error(`Invalid image url: ${e}.`);return}const a=new URL(e);if(a.pathname.startsWith("/p")){const o=ASt(a);if(o)return LSt(o,t,n,r)}else if(a.pathname.startsWith("/f")){const o=TSt(a);if(o)return kSt(o,t,n,r)}return e},cae=e=>{let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},dae=e=>{if(!e||Object.keys(e).length===0)return"";const t=Object.entries(e).filter(([n,r])=>r!==void 0&&String(r)!=="").map(([n,r])=>`${n}=${r}`).join(",");return t.length>0?`,${t}`:""},ZG=({image:e,className:t,width:n,height:r,aspectRatio:a,layout:o=G_.INTRINSIC,placeholder:l,imgOverrides:i,style:h={},imageTransformations:m,loading:y="lazy"})=>{const v=me.useRef(null),[x,S]=me.useState(!1),C="image"in e?e.image:e;me.useEffect(()=>{var te;(te=v.current)!=null&&te.complete&&S(!0)},[]),NSt(o,C.width,C.height,n,r,a);const O=Math.abs(C.width);O||console.warn("Invalid image width.");const P=Math.abs(C.height);if(P||console.warn("Invalid image height."),!cae(C.url))return console.error(`Invalid image url: ${C.url}`),Ya.jsx(Ya.Fragment,{children:l!=null&&l});const B=n&&n>0?n:void 0,H=r&&r>0?r:void 0,{src:K,imgStyle:G,widths:Y,updatedImageTransformations:ee}=MSt(o,O,P,h,C.url,B,H,a,m),oe=Y.map(te=>`${bP(C.url,te,(o===G_.ASPECT&&a?1/a:P/O)*te,ee)} ${te}w`).join(", "),de=[640,768,1024,1280,1536],re=Y.map((te,ce)=>ce===Y.length-1?`${te}px`:`(max-width: ${de[ce]}px) ${te}px`).join(", ");return Ya.jsxs(Ya.Fragment,{children:[!x&&l!=null&&l,Ya.jsx("img",{ref:v,style:G,src:K,className:t,width:B,height:H,srcSet:oe,sizes:re,loading:y,alt:C.alternateText||"",...i})]})},NSt=(e,t,n,r,a,o)=>{if(t<0&&console.warn(`Invalid image width: ${t}.`),n<0&&console.warn(`Invalid image height: ${n}.`),e===G_.FIXED){if(!r&&!a){console.warn("Using fixed layout but neither width nor height is passed as props.");return}r&&r<0&&console.warn(`Using fixed layout but width is invalid: ${r}.`),a&&a<0&&console.warn(`Using fixed layout but height is invalid: ${a}.`);return}(r||a)&&console.warn("Width or height is passed in but layout is not fixed. These will have no impact. If you want to have a fixed height or width then set layout to fixed."),e===G_.ASPECT&&!o&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},MSt=(e,t,n,r,a,o,l,i,h)=>{let m=[100,320,640,960,1280,1920],y=bP(a,500,i?500/i:500,h);const v={...r},x=h?{...h}:{};switch(v.objectFit=v.objectFit||"cover",v.objectPosition=v.objectPosition||"center",e){case G_.INTRINSIC:v.maxWidth=t,v.width="100%",v.aspectRatio=i?`${i}`:`${t} / ${n}`;break;case G_.FIXED:{const{fixedWidth:S,fixedHeight:C,fixedWidths:O}=OSt(t,n,m,o,l);v.width=S,v.height=C,m=O,y=bP(a,S,C,x);break}case G_.ASPECT:v.aspectRatio=i?`${i}`:`${t} / ${n}`,x&&(x.fit=x?.fit||"cover");break;case G_.FILL:v.width="100%",v.aspectRatio=i?`${i}`:`${t} / ${n}`;break;default:console.warn(`Unrecognized layout: ${e}.`);break}return{src:y,imgStyle:v,widths:m,updatedImageTransformations:x}},OSt=(e,t,n,r,a)=>r&&a?{fixedWidth:r,fixedHeight:a,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*t/e,fixedWidths:[r]}:a?{fixedWidth:a/t*e,fixedHeight:a,fixedWidths:[a/t*e]}:{fixedWidth:e,fixedHeight:t,fixedWidths:n};var fae={exports:{}};/*!
|
|
2045
|
+
<%s key={someKey} {...props} />`,Oi,ha,to,ha),Gn[ha+Oi]=!0}}return Le===r?fr(Bn):nr(Bn),Bn}}function Ar(Le,$t,cn){return jr(Le,$t,cn,!0)}function ci(Le,$t,cn){return jr(Le,$t,cn,!1)}var Ki=ci,ra=Ar;ZT.Fragment=r,ZT.jsx=Ki,ZT.jsxs=ra}()),ZT}process.env.NODE_ENV==="production"?yP.exports=lSt():yP.exports=uSt();var Ya=yP.exports;function cSt(e){switch(e){case"AD":case"AM":case"AT":case"AX":case"AZ":case"BA":case"BY":case"CY":case"CZ":case"DK":case"DZ":case"EC":case"EH":case"ET":case"FI":case"FR":case"GE":case"GF":case"GI":case"GP":case"GW":case"HT":case"KE":case"KV":case"KW":case"LA":case"LU":case"MC":case"MD":case"ME":case"MG":case"MK":case"MQ":case"MZ":case"NC":case"NL":case"NO":case"PL":case"PT":case"PY":case"RE":case"RS":case"SA":case"SE":case"SJ":case"SM":case"SN":case"TC":case"TJ":case"TM":case"TN":case"TZ":case"UY":case"VG":case"ZM":return[["line1"],["line2"],["postalCode","city"],["countryCode"]];case"AF":case"IR":return[["line1"],["line2"],["city"],["region"],["postalCode"],["countryCode"]];case"AG":case"AO":case"AW":case"BJ":case"BO":case"BS":case"BZ":case"CI":case"CW":case"DJ":case"FJ":case"GA":case"GH":case"GM":case"GY":case"JM":case"KI":case"LY":case"MW":case"NA":case"NR":case"PS":case"QA":case"RW":case"SC":case"SR":case"SX":case"TG":case"TT":case"UG":case"VU":return[["line1"],["line2"],["city"],["countryCode"]];case"AL":case"EE":case"IS":return[["line1"],["line2"],["postalCode","city"]];case"AR":return[["line1"],["line2"],["postalCode","city",",","region"],["countryCode"]];case"AS":case"BB":case"BD":case"BM":case"BN":case"BT":case"CR":case"DO":case"FK":case"FM":case"GR":case"GU":case"JO":case"KZ":case"LB":case"LK":case"LS":case"MA":case"MH":case"MM":case"MR":case"MT":case"MV":case"NG":case"PG":case"PK":case"PR":case"RO":case"SG":case"VC":case"WS":return[["line1"],["line2"],["city","postalCode"],["countryCode"]];case"AU":case"CA":case"SZ":case"US":case"VI":return[["line1"],["line2"],["city",",","region","postalCode"],["countryCode"]];case"BE":case"PE":return[["line1"],["line2"],["postalCode","sublocality","city"],["countryCode"]];case"BF":case"BI":case"BQ":case"BW":case"CF":case"CG":case"CM":case"DM":case"ER":case"GQ":case"KM":case"ML":case"SY":case"TD":case"ZW":return[["line1"],["line2"],["city"],["region"],["countryCode"]];case"BG":return[["line1"],["postalCode","region"],["countryCode"]];case"BH":return[["line1"],["line2"],["sublocality","city"],["countryCode"]];case"BR":return[["line1"],["line2"],["sublocality"],["city","region"],["postalCode"],["countryCode"]];case"CH":case"DE":case"GT":case"IT":case"LI":case"MY":case"NI":case"OM":case"SK":case"VA":return[["line1"],["line2"],["postalCode","city","region"],["countryCode"]];case"CL":case"PF":return[["line1"],["line2"],["city","postalCode","region"],["countryCode"]];case"CN":return[["region","city","sublocality"],["line1"],["line2"],["countryCode"]];case"CO":case"ID":case"IQ":case"KH":case"MP":case"NP":case"PW":case"UA":return[["line1"],["line2"],["city","region","postalCode"],["countryCode"]];case"EG":return[["line1"],["line2"],["sublocality","city","region","postalCode"],["countryCode"]];case"ES":case"IL":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"GB":case"MN":case"ZA":return[["line1"],["line2"],["sublocality","city","postalCode"],["countryCode"]];case"GG":case"IM":case"JE":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"GN":return[["line1","line2","city"],["countryCode"]];case"HK":return[["line1"],["line2"],["sublocality"],["city"],["region"],["countryCode"]];case"HR":return[["line1"],["postalCode","city","region"],["countryCode"]];case"HU":case"SI":return[["postalCode","city"],["line1"],["line2"],["countryCode"]];case"IE":return[["line1"],["line2"],["sublocality"],["city","region","postalCode"],["countryCode"]];case"IN":case"VE":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"JP":return[["line2"],["line1","sublocality"],["city","region"],["postalCode"],["countryCode"]];case"KR":return[["countryCode"],["region","city","sublocality","line1"],["line2"],["postalCode"]];case"KY":return[["line1"],["line2"],["postalCode"],["countryCode"]];case"LT":return[["line1"],["postalCode","city","sublocality","region"],["countryCode"]];case"LV":return[["line1"],["city",",","postalCode"],["countryCode"]];case"MO":return[["line1"],["line2"],["sublocality"],["city"],["countryCode"]];case"MU":return[["line1"],["line2"],["city"],["region","postalCode"],["countryCode"]];case"MX":return[["line1"],["line2"],["sublocality"],["postalCode","city",",","region"],["countryCode"]];case"NE":case"SD":return[["line1"],["line2"],["postalCode"],["city"],["region"],["countryCode"]];case"NZ":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"PH":case"TW":case"VN":return[["line1"],["line2"],["sublocality","city"],["region","postalCode"],["countryCode"]];case"RU":return[["line1"],["line2"],["city"],["postalCode"],["countryCode"]];case"SB":case"SL":case"ST":case"TL":case"TO":case"TV":return[["line1"],["line2"],["city",",","region"],["countryCode"]];case"TH":case"TR":return[["line1"],["line2"],["sublocality"],["postalCode","city"],["countryCode"]];case"UZ":return[["line1"],["line2"],["region","postalCode"],["countryCode"]]}return[["line1","line2"],["city","region","postalCode"],["countryCode"]]}const dSt={GOOGLEMYBUSINESS:"GOOGLEMYBUSINESS"},UG={APPLE:"apple",BING:"bing"},fSt=(e,t)=>{const n={region:"localizedRegionName",countryCode:"localizedCountryName"}[e];return n&&t[n]},xz=(e,t=[],n,r={route:!1},a)=>{const o="Failed to construct query for maps service.";let l=e&&qG([e.line1,e.line2,e.city,e.region,e.postalCode,e.countryCode]);switch(r.provider){case UG.APPLE:{if(a!=null&&a.latitude&&a!=null&&a.longitude)return WG(`${a.latitude},${a.longitude}`,r.route);if(!l){console.warn(`${o} Check that you've provided a valid Yext Address.`);break}return WG(l,r.route)}case UG.BING:{if(a!=null&&a.latitude&&a!=null&&a.longitude)return GG(`${a.latitude},${a.longitude}`,r.route);if(l=e&&qG([e.line1,e.city,e.region,e.postalCode]),!l){console.warn(`${o} Check that you've provided a valid Yext Address.`);break}return GG(l,r.route)}default:{if(a!=null&&a.latitude&&a!=null&&a.longitude)return KG(`${a.latitude},${a.longitude}`,r.route);const i=t.find(h=>{var m;return((m=h?.publisher)==null?void 0:m.toUpperCase())===dSt.GOOGLEMYBUSINESS});if(i!=null&&i.listingUrl)return i.listingUrl;if(!l){console.warn(`${o} Check that you've provided a valid Yext Address, Yext ListingType, or Google Place ID.`);break}return KG(l,r.route)}}},WG=(e,t)=>t?`https://maps.apple.com/?daddr=${e}`:`https://maps.apple.com/?address=${e}`,GG=(e,t)=>t?`https://bing.com/maps/default.aspx?rtp=adr.${e}`:`https://bing.com/maps/default.aspx?where1=${e}`,KG=(e,t)=>t?`https://maps.google.com/maps/dir/?api=1&destination=${e}`:`https://maps.google.com/maps/search/?api=1&query=${e}`,qG=(e=[])=>{if(!e.length)return"";const t=e.filter(Boolean).join(", ");return encodeURI(t)},wz=({address:e,lines:t,separator:n=",",...r})=>{const a=(t||cSt(e.countryCode)).map(o=>Ya.jsx(hSt,{address:e,line:o,separator:n},o.toString()));return me.createElement("div",{...r,key:e.toString()},a)},hSt=({address:e,line:t,separator:n})=>{const r=[];let a=0;for(const o of t){if(o===","){r.push(Ya.jsx("span",{children:n},`separator-${a++}`));continue}const l=e[o];if(!l)continue;const i=fSt(o,e);if(i){r.push(Ya.jsxs(me.Fragment,{children:[" ",Ya.jsx("abbr",{title:i,children:l})]},o));continue}r.push(Ya.jsx("span",{children:" "+l},o))}return Ya.jsx("div",{className:"address-line",children:r})};var v6={};Object.defineProperty(v6,"__esModule",{value:!0});var pSt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mSt=typeof window<"u"&&typeof window.document<"u",gSt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ySt=(typeof self>"u"?"undefined":pSt(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",vSt=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),bSt=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",YG=v6.isBrowser=mSt;v6.isWebWorker=ySt;var _St=v6.isNode=gSt;v6.isJsDom=vSt;var xSt=v6.isDeno=bSt;let wSt=class{constructor(){ji(this,"name"),ji(this,"isServerSide"),ji(this,"version");var t;xSt?(this.name="deno",this.version="",YG&&(this.version=((t=window.Deno)==null?void 0:t.version.deno)||""),this.isServerSide=!0):_St?(this.name="node",this.version=process.versions.node,this.isServerSide=!0):YG?(this.name="browser",this.version=navigator.userAgent,this.isServerSide=!1):(this.name="unknown",this.version="",this.isServerSide=!1)}getNodeMajorVersion(){if(this.name!=="node")throw new Error("Not running in Node.");return+this.version.split(".")[0]}};const oae=()=>new wSt;function SSt(e){return e?e.toLowerCase().trim().replace(/\s/g,""):""}function CSt(e,t){return[e,t].filter(n=>!!n).map(n=>SSt(n)).join("_")}const ESt=me.createContext(null);me.lazy(()=>Promise.resolve().then(()=>require("./debugger-DIK3Bqjc-BjBMuz6i.cjs")));const vP=me.createContext({name:""}),sae=()=>me.useContext(vP).name;function lae(e){var t;const n=sae(),[r]=me.useState({name:CSt(n,e.name)}),a=(t=uae())==null?void 0:t.getDebugEnabled(),[o,l]=me.useState(!1);return me.useEffect(()=>{l(!0)},[]),a&&o?Ya.jsx("section",{"data-ya-scope":r.name,children:Ya.jsx(vP.Provider,{value:r,children:e.children})}):Ya.jsx(vP.Provider,{value:r,children:e.children})}function uae(){const e=me.useContext(ESt);if(!e)return e;oae().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await e.optIn()});const t=sae();return{getDebugEnabled(){return e.getDebugEnabled()},identify(n){return e.identify(n)},optIn(){return e.optIn()},pageView(){return e.pageView()},track(n){return e.track({...n,scope:n.scope??t})}}}const G_={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},TSt=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}const n=e.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${e}`);return}r="eu"}if(!e.pathname.startsWith("/f")){console.error(`Invalid path: ${e}`);return}const a=e.pathname.replace(/^\//,"").split("/");if(a.length<2||a.length>3){console.error(`Invalid path: ${e}`);return}let o;if(a[0]==="f")o="prod";else switch(a[0].replace("f-","")){case"sandbox":{o="sbx";break}case"qa":{o="qa";break}case"dev":{o="dev";break}default:{console.error(`Invalid path: ${e}`);return}}if(r==="eu"&&(o==="dev"||o==="sbx")){console.error(`Invalid path: ${e}`);return}let l;if(a.length===3&&(l=parseInt(a[1]),Number.isNaN(l))){console.error(`Invalid account id: ${e}`);return}const i=a[a.length-1].split("."),h=i.length===2?`.${i[1]}`:"",m=i[0];return{scheme:t,partition:r,env:o,accountId:l,contentHash:m,extension:h}},kSt=(e,t,n,r)=>{const a=`https://dyn${e.partition==="us"?"":`.${e.partition}`}.mktgcdn.com`;let o="f";switch(e.env){case"prod":break;case"sbx":{o+="-sandbox";break}default:o+=`-${e.env.toString()}`}const l=e.accountId!==void 0?`${e.accountId}/`:"",i=dae(r);return`${a}/${o}/${l}${e.contentHash}${e.extension}/width=${Math.round(t)},height=${Math.round(n)}${i}`},ASt=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}if(e.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${e}`);return}if(!e.pathname.startsWith("/p")){console.error(`Invalid path: ${e}`);return}const n=e.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${e}`);return}let r;if(n[0]==="p")r="prod";else switch(n[0].replace("p-","")){case"sandbox":{r="sbx";break}case"qa":{r="qa";break}case"dev":{r="dev";break}default:{console.error(`Invalid path: ${e}`);return}}const a=n[1];let o;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${e}`);return}if(o=parseFloat(n[2]),Number.isNaN(o)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${e}`);return}}const l=n[n.length-1].split("."),i=l.length===2?`.${l[1]}`:"",h=l[0];return{scheme:t,env:r,contentHash:a,aspectRatio:o,name:h,extension:i}},LSt=(e,t,n,r)=>{const a="https://dyn.mktgcdn.com";let o="p";switch(e.env){case"prod":break;case"sbx":{o+="-sandbox";break}default:o+=`-${e.env.toString()}`}const l=dae(r);return`${a}/${o}/${e.contentHash}/width=${Math.round(t)},height=${Math.round(n)}${l}`},bP=(e,t,n,r)=>{if(!cae(e)){console.error(`Invalid image url: ${e}.`);return}const a=new URL(e);if(a.pathname.startsWith("/p")){const o=ASt(a);if(o)return LSt(o,t,n,r)}else if(a.pathname.startsWith("/f")){const o=TSt(a);if(o)return kSt(o,t,n,r)}return e},cae=e=>{let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},dae=e=>{if(!e||Object.keys(e).length===0)return"";const t=Object.entries(e).filter(([n,r])=>r!==void 0&&String(r)!=="").map(([n,r])=>`${n}=${r}`).join(",");return t.length>0?`,${t}`:""},ZG=({image:e,className:t,width:n,height:r,aspectRatio:a,layout:o=G_.INTRINSIC,placeholder:l,imgOverrides:i,style:h={},imageTransformations:m,loading:y="lazy"})=>{const v=me.useRef(null),[x,S]=me.useState(!1),C="image"in e?e.image:e;me.useEffect(()=>{var te;(te=v.current)!=null&&te.complete&&S(!0)},[]),NSt(o,C.width,C.height,n,r,a);const O=Math.abs(C.width);O||console.warn("Invalid image width.");const P=Math.abs(C.height);if(P||console.warn("Invalid image height."),!cae(C.url))return console.error(`Invalid image url: ${C.url}`),Ya.jsx(Ya.Fragment,{children:l!=null&&l});const B=n&&n>0?n:void 0,H=r&&r>0?r:void 0,{src:K,imgStyle:G,widths:Y,updatedImageTransformations:ee}=MSt(o,O,P,h,C.url,B,H,a,m),oe=Y.map(te=>`${bP(C.url,te,(o===G_.ASPECT&&a?1/a:P/O)*te,ee)} ${te}w`).join(", "),de=[640,768,1024,1280,1536],re=Y.map((te,ce)=>ce===Y.length-1?`${te}px`:`(max-width: ${de[ce]}px) ${te}px`).join(", ");return Ya.jsxs(Ya.Fragment,{children:[!x&&l!=null&&l,Ya.jsx("img",{ref:v,style:G,src:K,className:t,width:B,height:H,srcSet:oe,sizes:re,loading:y,alt:C.alternateText||"",...i})]})},NSt=(e,t,n,r,a,o)=>{if(t<0&&console.warn(`Invalid image width: ${t}.`),n<0&&console.warn(`Invalid image height: ${n}.`),e===G_.FIXED){if(!r&&!a){console.warn("Using fixed layout but neither width nor height is passed as props.");return}r&&r<0&&console.warn(`Using fixed layout but width is invalid: ${r}.`),a&&a<0&&console.warn(`Using fixed layout but height is invalid: ${a}.`);return}(r||a)&&console.warn("Width or height is passed in but layout is not fixed. These will have no impact. If you want to have a fixed height or width then set layout to fixed."),e===G_.ASPECT&&!o&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},MSt=(e,t,n,r,a,o,l,i,h)=>{let m=[100,320,640,960,1280,1920],y=bP(a,500,i?500/i:500,h);const v={...r},x=h?{...h}:{};switch(v.objectFit=v.objectFit||"cover",v.objectPosition=v.objectPosition||"center",e){case G_.INTRINSIC:v.maxWidth=t,v.width="100%",v.aspectRatio=i?`${i}`:`${t} / ${n}`;break;case G_.FIXED:{const{fixedWidth:S,fixedHeight:C,fixedWidths:O}=OSt(t,n,m,o,l);v.width=S,v.height=C,m=O,y=bP(a,S,C,x);break}case G_.ASPECT:v.aspectRatio=i?`${i}`:`${t} / ${n}`,x&&(x.fit=x?.fit||"cover");break;case G_.FILL:v.width="100%",v.aspectRatio=i?`${i}`:`${t} / ${n}`;break;default:console.warn(`Unrecognized layout: ${e}.`);break}return{src:y,imgStyle:v,widths:m,updatedImageTransformations:x}},OSt=(e,t,n,r,a)=>r&&a?{fixedWidth:r,fixedHeight:a,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*t/e,fixedWidths:[r]}:a?{fixedWidth:a/t*e,fixedHeight:a,fixedWidths:[a/t*e]}:{fixedWidth:e,fixedHeight:t,fixedWidths:n};var fae={exports:{}};/*!
|
|
2007
2046
|
Copyright (c) 2018 Jed Watson.
|
|
2008
2047
|
Licensed under the MIT License (MIT), see
|
|
2009
2048
|
http://jedwatson.github.io/classnames
|
package/dist/plugin/plugin.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DNFbLH_-.cjs");exports.yextVisualEditorPlugin=e.yextVisualEditorPlugin;
|
package/dist/plugin/plugin.js
CHANGED