{"version":3,"file":"Variant_info_label.CATt9QgX.mjs","names":["useContext","useMemo","__esmMin","init_npm_react_18_3_1","oe","pe","init_jsx_runtime","B","c","init_framer_BWFVvmND","addPropertyControls","ControlType","TextDecorationControls","isOnFramerCanvasFn","calculateSellingPlanPrice","init_Shared_images","useMarketStore","formatDeliveryFrequencyShorthand","init_Framer_utils","SHARED_IMAGES","useProductSelectionStore","CurrencyFormatControls","SHARED_COLORS","SUPPORT_CONTROL","init_Shared_props","TagPropertyControls","init_Loading_skeleton","LoadingSkeleton","init_Shared_text_decoration_props","init_Market_store","init_Subscriptions_utils","renderWithTag","init_Shared_tag_props","SHOPIFY_DATA_DESCRIPTION","formatCurrency","init_Product_selection_store","init_Shared_styles","init_Shared_currency_props","init_Live_pricing_store","useLivePricingStore","parseShopifyData","EXAMPLE_DATA","init_Parse_shopify_data","shopifyData","useCollectionVariantPreference","CollectionVariantPreferenceContext","DEFAULT_COLLECTION_VARIANT_PREFERENCE","init_Collection_variant_preference_context","normalizeCollectionVariantText","value","doesProductVariantMatchCriteria","variant","criteria","normalizedGroupName","criterion","selectedValues","option","resolveEffectiveProductVariant","explicitVariant","variants","init_Collection_variant_preference","useEffectiveProductVariant","explicitVariantOverrideId","explicitVariantOverrideByProductId","productId","storedVariantId","state","validVariants","explicitVariantOverride","init_Use_effective_product_variant","VariantInfoLabel","props","isOnFramerCanvas","selectedVariant","selectedSellingPlanId","getSelectedSellingPlan","selectedSellingPlan","group","plan","requestedGroupTitles","title","getFilteredVariantName","matchedSelectedOptions","requestedTitle","titleParts","part","matchedTitleParts","fallbackMatch","partIndex","getZeroDisplayValue","amount","ZERO_EPSILON","renderVariantInfo","livePrice","getLivePrice","priceData","currentCurrencyCode","adjustedPrice","priceAmount","zeroDisplayValue","formattedPrice","deliveryFrequency","compareAtPriceData","compareAtPriceAmount","quantity","getQuantity","totalAmount","isPriceType","isLoading","content","style","isSellingPlanType","shouldShowOnCanvas","isEmptyValue","isFetching","init_Variant_info_label"],"sources":["https:/framerusercontent.com/modules/Vu8sM3DwKDdSi2bltsPi/2mjSGl09jm7uUVww2OJ4/Parse_shopify_data.js","https:/framerusercontent.com/modules/i7ZQIq8WO7VzqaEGgq3A/rPdbdxj6dhOjzJYEaBer/Collection_variant_preference_context.js","https:/framerusercontent.com/modules/Ep4l0IXbghfZTQHUUsaQ/2ydcKli7zrf0qcCBe8RI/Collection_variant_preference.js","https:/framerusercontent.com/modules/EfXJBwz7xOs89q7ZcqCn/D2NqXxyKWMEkcSedh1E1/Use_effective_product_variant.js","https:/framerusercontent.com/modules/DVekzR4Sf5b9vz5aNZl6/mrsFQToQxe97D6oyLI4I/Variant_info_label.js"],"sourcesContent":["import{SHARED_IMAGES}from\"https://framerusercontent.com/modules/KV16nQZJzK2PakIJS3ds/mMwI0Z7Bn85AP14ADxu9/Shared_images.js\";export const parseShopifyData=shopifyData=>{const parsedShopifyData=shopifyData?JSON.parse(shopifyData):EXAMPLE_DATA;return parsedShopifyData;};export function tryParseShopifyData(shopifyData){if(!shopifyData?.trim()){return null;}try{return parseShopifyData(shopifyData);}catch{return null;}}const EXAMPLE_DATA={id:\"15176683880773\",title:\"Green Polo\",handle:\"green-polo\",variants:[{id:\"55218501157189\",title:\"Variant Title\",price:{amount:\"99\",currencyCode:\"USD\"},priceByMarket:{US:{amount:\"99\",currencyCode:\"USD\"},GB:{amount:\"79\",currencyCode:\"GBP\"},CA:{amount:\"129\",currencyCode:\"CAD\"},EU:{amount:\"89\",currencyCode:\"EUR\"},AU:{amount:\"139\",currencyCode:\"AUD\"}},compareAtPriceByMarket:{US:{amount:\"120\",currencyCode:\"USD\"},GB:{amount:\"95\",currencyCode:\"GBP\"},CA:{amount:\"155\",currencyCode:\"CAD\"},EU:{amount:\"109\",currencyCode:\"EUR\"},AU:{amount:\"169\",currencyCode:\"AUD\"}},weight:0,weightUnit:\"KILOGRAMS\",availableForSale:true,sku:\"sku-untracked-1\",image:{id:\"gid://shopify/ProductImage/77445152801093\",url:SHARED_IMAGES.defaultProductImage,altText:\"Product image\",width:3097,height:3908}}]};\nexport const __FramerMetadata__ = {\"exports\":{\"tryParseShopifyData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parseShopifyData\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Parse_shopify_data.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{createContext,useCallback,useContext,useMemo,useState}from\"react\";const DEFAULT_COLLECTION_VARIANT_PREFERENCE={criteria:Object.freeze([]),explicitVariantOverrideByProductId:Object.freeze({}),setExplicitVariantOverride:()=>undefined};const CollectionVariantPreferenceContext=/*#__PURE__*/createContext(DEFAULT_COLLECTION_VARIANT_PREFERENCE);export function CollectionVariantPreferenceProvider({children,value}){const[variantOverrides,setVariantOverrides]=useState({});const explicitVariantOverrideByProductId=useMemo(()=>{const activeOverrides={};for(const[productId,override]of Object.entries(variantOverrides)){if(override.criteria===value.criteria){activeOverrides[productId]=override.variantId;}}return activeOverrides;},[value.criteria,variantOverrides]);const setExplicitVariantOverride=useCallback((productId,variantId)=>{if(!productId||!variantId)return;setVariantOverrides(currentOverrides=>({...currentOverrides,[productId]:{criteria:value.criteria,variantId}}));},[value.criteria]);const contextValue=useMemo(()=>({...value,explicitVariantOverrideByProductId,setExplicitVariantOverride}),[explicitVariantOverrideByProductId,setExplicitVariantOverride,value]);return /*#__PURE__*/_jsx(CollectionVariantPreferenceContext.Provider,{value:contextValue,children:children});}export function useCollectionVariantPreference(){return useContext(CollectionVariantPreferenceContext);}\nexport const __FramerMetadata__ = {\"exports\":{\"useCollectionVariantPreference\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollectionVariantPreferenceProvider\":{\"type\":\"reactComponent\",\"name\":\"CollectionVariantPreferenceProvider\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Collection_variant_preference_context.map","export function normalizeCollectionVariantText(value){return typeof value===\"string\"?value.trim().toLowerCase():\"\";}export function doesProductVariantMatchCriteria(variant,criteria){if(!variant||criteria.length===0){return criteria.length===0;}if(!Array.isArray(variant.selectedOptions)){return false;}return criteria.every(criterion=>{const normalizedGroupName=normalizeCollectionVariantText(criterion.groupName);const selectedValues=new Set(criterion.selectedValues.map(normalizeCollectionVariantText).filter(Boolean));if(!normalizedGroupName||selectedValues.size===0){return false;}return variant.selectedOptions?.some(option=>normalizeCollectionVariantText(option?.name)===normalizedGroupName&&selectedValues.has(normalizeCollectionVariantText(option?.value)));});}export function resolveEffectiveProductVariant({variants,explicitVariant,criteria}){if(criteria.length===0){return explicitVariant;}if(doesProductVariantMatchCriteria(explicitVariant,criteria)){return explicitVariant;}return variants.find(variant=>doesProductVariantMatchCriteria(variant,criteria))??null;}\nexport const __FramerMetadata__ = {\"exports\":{\"ProductVariantWithSelectedOptions\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"resolveEffectiveProductVariant\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"normalizeCollectionVariantText\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"doesProductVariantMatchCriteria\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CollectionVariantCriterion\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Collection_variant_preference.map","import{useMemo}from\"react\";import{useCollectionVariantPreference}from\"https://framerusercontent.com/modules/i7ZQIq8WO7VzqaEGgq3A/rPdbdxj6dhOjzJYEaBer/Collection_variant_preference_context.js\";import{resolveEffectiveProductVariant}from\"https://framerusercontent.com/modules/Ep4l0IXbghfZTQHUUsaQ/2ydcKli7zrf0qcCBe8RI/Collection_variant_preference.js\";import{useProductSelectionStore}from\"https://framerusercontent.com/modules/8l7kldZFdo4Q33wHQBGB/VPMbST1NNGa3YZbZdw3a/Product_selection_store.js\";export function useEffectiveProductVariant(productId,variants){const{criteria,explicitVariantOverrideByProductId}=useCollectionVariantPreference();const explicitVariantOverrideId=explicitVariantOverrideByProductId[productId];const storedVariantId=useProductSelectionStore(state=>state.selectedVariantByProductId[productId]);return useMemo(()=>{const validVariants=variants.filter(variant=>variant&&typeof variant.id===\"string\");const explicitVariant=validVariants.find(variant=>variant.id===storedVariantId)??validVariants[0]??null;const explicitVariantOverride=validVariants.find(variant=>variant.id===explicitVariantOverrideId);if(criteria.length>0&&explicitVariantOverride){return explicitVariantOverride;}return resolveEffectiveProductVariant({variants:validVariants,explicitVariant,criteria});},[criteria,explicitVariantOverrideId,storedVariantId,variants]);}\nexport const __FramerMetadata__ = {\"exports\":{\"useEffectiveProductVariant\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{parseShopifyData}from\"https://framerusercontent.com/modules/Vu8sM3DwKDdSi2bltsPi/2mjSGl09jm7uUVww2OJ4/Parse_shopify_data.js\";import{useProductSelectionStore}from\"https://framerusercontent.com/modules/8l7kldZFdo4Q33wHQBGB/VPMbST1NNGa3YZbZdw3a/Product_selection_store.js\";import{useLivePricingStore}from\"https://framerusercontent.com/modules/3C9wF5reOoO0EZmRXDu0/LmVOGlInVeqdAyy6bBFr/Live_pricing_store.js\";import{useMarketStore}from\"https://framerusercontent.com/modules/NBp7ctFhtxfP8UPi4nze/1Na5UwTmSmXnVE3ENc2v/Market_store.js\";import{SHARED_COLORS}from\"https://framerusercontent.com/modules/Nrs4jz2AAEOfEZRQEQij/7Ao2SBt1Ssf683HHXgzl/Shared_styles.js\";import{renderWithTag,TagPropertyControls}from\"https://framerusercontent.com/modules/cmJdj1YCmFSsS6n95OKk/9t9XeEHurZ6w5fbXeCsJ/Shared_tag_props.js\";import{CurrencyFormatControls,formatCurrency}from\"https://framerusercontent.com/modules/mHaK3bedwyJwyNxfaowX/hWKLWGrPdtcuWvTxZqnK/Shared_currency_props.js\";import{TextDecorationControls}from\"https://framerusercontent.com/modules/br9bXgadWgfJaD0swwuT/jUc9YNpAtX8KUoSpiBD2/Shared_text_decoration_props.js\";import LoadingSkeleton from\"https://framerusercontent.com/modules/N0h2Mv73o8xtz2My1yiB/RR9fj2DVzBXn0Wwu7ijL/Loading_skeleton.js\";import{SHOPIFY_DATA_DESCRIPTION,SUPPORT_CONTROL}from\"https://framerusercontent.com/modules/G9UZNzEc4NZQrMJzPvWx/mIDGZDuYkLeEfvCEqoly/Shared_props.js\";import{formatDeliveryFrequencyShorthand}from\"https://framerusercontent.com/modules/3QrZAq5uElJQ8m88NKWY/5xJkuuHwMm3iKqkoNzBk/Subscriptions_utils.js\";import{calculateSellingPlanPrice}from\"https://framerusercontent.com/modules/3QrZAq5uElJQ8m88NKWY/5xJkuuHwMm3iKqkoNzBk/Subscriptions_utils.js\";import{isOnFramerCanvasFn}from\"https://framerusercontent.com/modules/0cFx6PDS8kp3yxNfnoIw/3wFcPS10LYSFljb1q710/Framer_utils.js\";import{useEffectiveProductVariant}from\"https://framerusercontent.com/modules/EfXJBwz7xOs89q7ZcqCn/D2NqXxyKWMEkcSedh1E1/Use_effective_product_variant.js\";// ------------------------------------------------------------ //\n// MAIN COMPONENT\n// ------------------------------------------------------------ //\n/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function VariantInfoLabel(props){const shopifyData=parseShopifyData(props.shopifyData);const isOnFramerCanvas=isOnFramerCanvasFn();const{getSelectedSellingPlan,getQuantity}=useProductSelectionStore();const{getLivePrice,isLoading,isFetching}=useLivePricingStore();// Re-render when market changes so getLivePrice's default-market guard updates\nuseMarketStore(state=>state.selectedMarket?.countryCode);useMarketStore(state=>state.defaultMarket?.countryCode);const selectedVariant=useEffectiveProductVariant(shopifyData.id,shopifyData.variants);const selectedSellingPlanId=getSelectedSellingPlan(shopifyData.id);const selectedSellingPlan=shopifyData.sellingPlanGroups?.flatMap(group=>group.sellingPlans||[]).find(plan=>plan.id===selectedSellingPlanId);const requestedGroupTitles=(props.filterGroupTitles||\"\").split(\",\").map(title=>title.trim()).filter(Boolean);function getFilteredVariantName(){if(!selectedVariant)return\"\";if(selectedVariant.title===\"Default Title\")return\"\";if(!requestedGroupTitles.length)return selectedVariant.title;const matchedSelectedOptions=requestedGroupTitles.map(requestedTitle=>selectedVariant.selectedOptions?.find(option=>option.name.trim().toLowerCase()===requestedTitle.toLowerCase())).filter(option=>Boolean(option)).map(option=>option.value);if(matchedSelectedOptions.length){return matchedSelectedOptions.join(\" / \");}const titleParts=selectedVariant.title.split(\" / \").map(part=>part.trim()).filter(Boolean);const matchedTitleParts=requestedGroupTitles.map(requestedTitle=>{const normalized=requestedTitle.toLowerCase();const fallbackMatch=normalized.match(/^option\\s+(\\d+)$/);if(!fallbackMatch)return null;const partIndex=Number(fallbackMatch[1])-1;return titleParts[partIndex]||null;}).filter(Boolean);if(matchedTitleParts.length){return matchedTitleParts.join(\" / \");}return selectedVariant.title;}function getZeroDisplayValue(amount){if(!Number.isFinite(amount))return null;if(Math.abs(amount)>=ZERO_EPSILON)return null;if(props.whenZero===\"text\")return props.text;if(props.whenZero===\"hide\")return\"\";return null;}const renderVariantInfo=()=>{if(!selectedVariant)return null;switch(props.type){case\"price\":{// Priority: live > cms default\nconst livePrice=getLivePrice(selectedVariant.id);let priceData=selectedVariant.price;// Default fallback\n// Override with live pricing if available\nif(livePrice?.price){priceData=livePrice.price;}// Store the current currencyCode before applying selling plan adjustment\n// This ensures we preserve the currency from live pricing/market\nconst currentCurrencyCode=priceData.currencyCode;// Apply selling plan price adjustment if available\nif(selectedSellingPlan){const adjustedPrice=calculateSellingPlanPrice(priceData,selectedSellingPlan);if(adjustedPrice){// Ensure we use the currencyCode from the current market/live pricing\n// instead of the one from the selling plan adjustment data\npriceData={...adjustedPrice,currencyCode:currentCurrencyCode};}}const priceAmount=Number(priceData.amount);const zeroDisplayValue=getZeroDisplayValue(priceAmount);if(zeroDisplayValue!==null)return zeroDisplayValue;const formattedPrice=formatCurrency({amount:priceAmount,currencyCode:priceData.currencyCode,options:props.currencyFormat});// Append delivery frequency suffix if selling plan is selected\nif(selectedSellingPlan?.options?.[0]?.value){const deliveryFrequency=selectedSellingPlan.options[0].value;const shorthand=formatDeliveryFrequencyShorthand(deliveryFrequency);return`${formattedPrice}/${shorthand}`;}return formattedPrice;}case\"compareAtPrice\":{// Priority: live > cms market > cms default\nconst livePrice=getLivePrice(selectedVariant.id);let compareAtPriceData=selectedVariant.compareAtPrice;// Default fallback\n// Override with live pricing if available\nif(livePrice?.compareAtPrice){compareAtPriceData=livePrice.compareAtPrice;}if(!compareAtPriceData)return\"\";const compareAtPriceAmount=Number(compareAtPriceData.amount);const zeroDisplayValue=getZeroDisplayValue(compareAtPriceAmount);if(zeroDisplayValue!==null)return zeroDisplayValue;return formatCurrency({amount:compareAtPriceAmount,currencyCode:compareAtPriceData.currencyCode,options:props.currencyFormat});}case\"variantName\":return getFilteredVariantName();case\"sku\":return selectedVariant.sku;case\"barcode\":return selectedVariant.barcode;case\"sellingPlanName\":return selectedSellingPlan?.name||\"\";case\"sellingPlanDescription\":return selectedSellingPlan?.description||\"\";case\"sellingPlanOptions\":if(!selectedSellingPlan?.options?.length)return\"\";return selectedSellingPlan.options.map(option=>`${option.name}: ${option.value}`).join(\", \");case\"totalPrice\":{const livePrice=getLivePrice(selectedVariant.id);let priceData=selectedVariant.price;if(livePrice?.price){priceData=livePrice.price;}const currentCurrencyCode=priceData.currencyCode;if(selectedSellingPlan){const adjustedPrice=calculateSellingPlanPrice(priceData,selectedSellingPlan);if(adjustedPrice){priceData={...adjustedPrice,currencyCode:currentCurrencyCode};}}const quantity=getQuantity(selectedVariant.id);const totalAmount=Number(priceData.amount)*quantity;const zeroDisplayValue=getZeroDisplayValue(totalAmount);if(zeroDisplayValue!==null)return zeroDisplayValue;return formatCurrency({amount:totalAmount,currencyCode:priceData.currencyCode,options:props.currencyFormat});}}};// Show loading skeleton for price/compareAtPrice during initial load\nconst isPriceType=props.type===\"price\"||props.type===\"compareAtPrice\"||props.type===\"totalPrice\";if(isLoading&&isPriceType){return /*#__PURE__*/_jsx(LoadingSkeleton,{style:{width:\"60px\",height:\"20px\"}});}const content=renderVariantInfo();const style={...props.font,color:props.color,textDecoration:props.decoration===\"none\"?\"none\":props.decoration};// Selling plan types that should show placeholder on canvas\nconst isSellingPlanType=props.type===\"sellingPlanName\"||props.type===\"sellingPlanDescription\"||props.type===\"sellingPlanOptions\";// Force visibility on canvas for selling plan types so user can configure\nconst shouldShowOnCanvas=isOnFramerCanvas&&isSellingPlanType;// Hide component when empty and whenZero is \"hide\"\n// Exception: show placeholder on canvas for selling plan types\nconst isEmptyValue=!content||content===\"\";if(props.whenZero===\"hide\"&&isEmptyValue&&!shouldShowOnCanvas){return null;}// Show specified text if whenZero is \"text\" and empty\nif(props.whenZero===\"text\"&&isEmptyValue){return /*#__PURE__*/_jsx(\"div\",{style:{opacity:isFetching&&isPriceType?.6:1,transition:\"opacity 0.3s ease\"},children:renderWithTag(props.tag,props.text,style)});}// Get placeholder text for empty values\nconst getPlaceholderText=()=>{if(isOnFramerCanvas&&isSellingPlanType){switch(props.type){case\"sellingPlanName\":return\"Monthly subscription\";case\"sellingPlanOptions\":return\"Deliver every month\";case\"sellingPlanDescription\":return\"Plan description\";}}return\"0\";};// Show empty content if whenZero is \"show\"\nif(isEmptyValue){return /*#__PURE__*/_jsx(\"div\",{style:{opacity:isFetching&&isPriceType?.6:1,transition:\"opacity 0.3s ease\"},children:renderWithTag(props.tag,getPlaceholderText(),style)});}// Wrap content in fade transition container for price types\nreturn /*#__PURE__*/_jsx(\"div\",{style:{opacity:isFetching&&isPriceType?.6:1,transition:\"opacity 0.3s ease\"},children:renderWithTag(props.tag,content,style)});}const ZERO_EPSILON=1e-6;// ------------------------------------------------------------ //\n// PROPERTY CONTROLS\n// ------------------------------------------------------------ //\naddPropertyControls(VariantInfoLabel,{shopifyData:{type:ControlType.String,description:SHOPIFY_DATA_DESCRIPTION},type:{type:ControlType.Enum,options:[\"price\",\"compareAtPrice\",\"variantName\",\"sku\",\"barcode\",\"sellingPlanName\",\"sellingPlanDescription\",\"sellingPlanOptions\",\"totalPrice\"],optionTitles:[\"Price\",\"Compare At Price\",\"Variant Name\",\"SKU\",\"Barcode\",\"Subscription Name\",\"Subscription Description\",\"Subscription Options\",\"Total Price\"],defaultValue:\"price\"},filterGroupTitles:{type:ControlType.String,title:\"Filter Group Titles\",description:\"Shows only the matching value. Must match the title of the Shopify variant group exactly (e.g. Size).\",hidden:props=>props.type!==\"variantName\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:SHARED_COLORS.foreground},whenZero:{type:ControlType.Enum,title:\"When Zero\",options:[\"show\",\"hide\",\"text\"],optionTitles:[\"Show\",\"Hide\",\"Text\"],defaultValue:\"hide\",displaySegmentedControl:true},text:{type:ControlType.String,title:\"Text\",defaultValue:\"Free\",hidden:props=>props.whenZero!==\"text\"},currencyFormat:{...CurrencyFormatControls.currencyFormat,hidden:props=>props.type!==\"price\"&&props.type!==\"compareAtPrice\"&&props.type!==\"totalPrice\"},...TagPropertyControls,...TextDecorationControls,...SUPPORT_CONTROL});VariantInfoLabel.displayName=\"Variant Info Label\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VariantInfoLabel\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,khBAAyI,EAAiB,GAAsC2C,EAAY,KAAK,MAAMA,CAAW,EA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