{"version":3,"file":"custom-components-deferred-query-symbol.67b783c2ea32ee40bdc5.js?ssi=0","mappings":"oKAKA,MAAMA,EAAgBC,EAAAA,GAEtB,SAASC,EAAoBC,GAC5B,MAAMC,GAAQC,EAAAA,EAAAA,YAAWC,EAAAA,IACzB,OAAIH,EAAMI,aACFC,EAAAA,cAACR,EAAkBG,GAM1BK,EAAAA,cAACF,EAAAA,GAAoBG,SAAQ,CAC5BC,MAAO,IACHN,EACHO,MAAO,CAAEC,SAAUR,EAAMO,MAAMC,SAAUC,OAAQT,EAAMO,MAAME,OAAQC,SAAUV,EAAMO,MAAMG,YAG5FN,EAAAA,cAACR,GAAae,EAAAA,EAAAA,GAAA,GAAKZ,EAAK,CAAEI,cAAY,KAGzC,CAEA,MAAMS,EAAqBC,EAAAA,GAAQC,WAAWC,KAAKC,GAAgC,WAAnBA,EAAUC,MAC1EJ,EAAAA,GAAQK,kBAAkBpB,EAAqB,IAC3Cc,EACHK,KAAM,SACNE,MAAOrB,EACPsB,UAAU","sources":["webpack://@logos/commerceweb-frontend/./Scripts/site/components/builder/custom-components/deferred-query-symbol.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { Builder, BuilderStoreContext, Symbol } from '@builder.io/react';\nimport type { SymbolProps } from '@builder.io/react/dist/types/src/blocks/Symbol';\n\n// The SDK declares this React component as Function rather than ComponentType.\nconst BuilderSymbol = Symbol as React.ComponentType<SymbolProps>;\n\nfunction DeferredQuerySymbol(props: SymbolProps) {\n\tconst store = useContext(BuilderStoreContext);\n\tif (props.inheritState) {\n\t\treturn <BuilderSymbol {...props} />;\n\t}\n\n\t// Symbols otherwise initialize their own location directly from the browser.\n\t// Inherit only the controlled location, without opting authored content into full state inheritance.\n\treturn (\n\t\t<BuilderStoreContext.Provider\n\t\t\tvalue={{\n\t\t\t\t...store,\n\t\t\t\tstate: { location: store.state.location, locale: store.state.locale, _hydrate: store.state._hydrate },\n\t\t\t}}\n\t\t>\n\t\t\t<BuilderSymbol {...props} inheritState />\n\t\t</BuilderStoreContext.Provider>\n\t);\n}\n\nconst symbolRegistration = Builder.components.find(component => component.name === 'Symbol');\nBuilder.registerComponent(DeferredQuerySymbol, {\n\t...symbolRegistration,\n\tname: 'Symbol',\n\tclass: DeferredQuerySymbol,\n\toverride: true,\n});\n"],"names":["BuilderSymbol","Symbol","DeferredQuerySymbol","props","store","useContext","BuilderStoreContext","inheritState","React","Provider","value","state","location","locale","_hydrate","_extends","symbolRegistration","Builder","components","find","component","name","registerComponent","class","override"],"sourceRoot":""}