{"version":3,"file":"Shopify_ProductAddToCart.DWo19WRh.mjs","names":["useState","useMemo","useState","styles","useState"],"sources":["https:/framerusercontent.com/modules/xEahqZEsyG5uoZky61jQ/yMYjCncXBsxOaKoj8nUI/_useProduct.js","https:/framerusercontent.com/modules/IySki7zU6gj9mB2w3PpE/KaftJMzRSGJGDjgUpfw1/Shopify_ProductVariantSelector.js","https:/framerusercontent.com/modules/5RNyIzBVhOLYhJjEkl69/CL32zvCyc8cQXIdAa3uE/_useLoadScript.js","https:/framerusercontent.com/modules/PK54QWHW6tRgZKNp6Vfx/2yQh6vckvk7AhmiRTBWy/Shopify_ShopPayButton.js","https:/framerusercontent.com/modules/sLbkDuXdCdpfHR6EbULm/s7fMRimeStvBe5mHY38U/Shopify_ProductAddToCart.js"],"sourcesContent":["import{useState,useEffect,useMemo}from\"react\";import{useAtom}from\"jotai\";import{useShopify}from\"https://framerusercontent.com/modules/tdCHCV0pSkxlDaX5GkOX/SxZI1Y5OuGrQCk85U8Xt/_useShopify.js\";import{priceCode}from\"https://framerusercontent.com/modules/7dEgbg7qo3lsQk361YtS/NrF60tPHZRRgADqpoRFr/_utils.js\";import{selectedProductsAtom}from\"https://framerusercontent.com/modules/yZBbIevRfN36MGDPpltx/GNI9VoSkUDyJw3EMOM7K/_atoms.js\";import{DefaultProduct}from\"https://framerusercontent.com/modules/fWwtzMT2tYXMW4IKB8On/1dFHOQ0gPjMC0e1WUStY/_test_data.js\";const DefaultSelectedOption={quantity:1,quantityAvailable:null,selectedOption:null,sellingPlan:null};export function useProduct(productID,config,addToSelected){const[selectedProducts,setSelectedProducts]=useAtom(selectedProductsAtom);const{products}=useShopify(config);const[product,setProduct]=useState(config?.testMode?DefaultProduct:null);const selected=product?.id?selectedProducts[product.id]:null;// get price and compare price\nconst getPrice=(camparePrice,price)=>{const comparePriceValue=camparePrice&&camparePrice.amount!==\"0.0\"?priceCode(camparePrice,config):null;const priceValue=priceCode(price,config);return{camparePrice:comparePriceValue!==priceValue?comparePriceValue:null,price:priceValue};};const changeQuantity=quantity=>{if(!product)return;setSelectedProducts(state=>({...state,[product.id]:{...DefaultSelectedOption,...state[product.id],quantity}}));};const selectVariant=(item,sellingPlan)=>{if(!product)return;setSelectedProducts(state=>({...state,[product.id]:{...DefaultSelectedOption,...state[product.id],sellingPlan,quantityAvailable:item.quantityAvailable,selectedOption:item.id}}));};// set first variant as default selected when addToSelected is true\nuseEffect(()=>{if(product&&addToSelected){const defaultVariant=product.variants.nodes[0];setSelectedProducts(state=>({...state,[product.id]:{...DefaultSelectedOption,quantityAvailable:defaultVariant.quantityAvailable,selectedOption:defaultVariant.id}}));return()=>{setSelectedProducts(state=>({...state,[product.id]:null}));};}},[product,addToSelected]);// set product when productID found\nuseEffect(()=>{const foundProduct=products.find(item=>item.id===productID);if(foundProduct){setProduct(config?.testMode?DefaultProduct:foundProduct);}},[products,productID,config?.testMode]);// return result with two mode: when variant selected and when not selected\nconst result=useMemo(()=>{if(!product)return{product:null,availableForSale:null,multiplePrice:null,price:null,stock:null,selectedVariant:null,selectedProduct:null};const selectedVariant=product.variants.nodes.find(item=>item.id===selected?.selectedOption);if(selectedVariant){const selectedSellingPlan=selectedVariant?.sellingPlanAllocations?.nodes.find(item=>item.sellingPlan.id===selected?.sellingPlan);const{compareAtPriceV2,availableForSale,priceV2,quantityAvailable}=selectedVariant;const price=selectedSellingPlan?.checkoutChargeAmount??priceV2;return{product,price:getPrice(compareAtPriceV2,price),multiplePrice:false,availableForSale,stock:quantityAvailable,selectedVariant,selectedProduct:selected};}const{compareAtPriceRange,priceRange,availableForSale,totalInventory}=product??{};const multiplePrice=priceRange.minVariantPrice.amount!==priceRange.maxVariantPrice.amount;return{product,price:getPrice(compareAtPriceRange.minVariantPrice,priceRange.minVariantPrice),multiplePrice,availableForSale,stock:totalInventory,selectedVariant:null,selectedProduct:selected};},[product,selected,config?.languageIsoCode,config?.countryIsoCode]);return{...result,changeQuantity,selectVariant};}\nexport const __FramerMetadata__ = {\"exports\":{\"useProduct\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{cn,ProductBaseControls,ConfigControls,textProperties,isOnCanvas}from\"https://framerusercontent.com/modules/eAejHXy6apg0StNmpKvK/GXn1lJ5V4nUwhRO9yQKC/_framer_utils.js\";import{useProduct}from\"https://framerusercontent.com/modules/xEahqZEsyG5uoZky61jQ/yMYjCncXBsxOaKoj8nUI/_useProduct.js\";import ComponentWrapper from\"https://framerusercontent.com/modules/hQlZBgGeLDev5WuUJA4d/6ncqGCEKZWsfLWpBe7Jn/ComponentWrapper.js\";function isValidColor(strColor){// Normalize input - trim whitespace and convert to lowercase\nconst color=(strColor||\"\").toLowerCase().trim();if(!color)return false;// For better testing of hex values and RGB\nconst hexPattern=/^#([0-9A-F]{3}){1,2}$/i;const rgbPattern=/^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i;const rgbaPattern=/^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d*(?:\\.\\d+)?)\\s*\\)$/i;if(hexPattern.test(color)||rgbPattern.test(color)||rgbaPattern.test(color)){return true;}// Standard CSS named colors\nconst CSS_COLORS=new Set([\"aliceblue\",\"antiquewhite\",\"aqua\",\"aquamarine\",\"azure\",\"beige\",\"bisque\",\"black\",\"blanchedalmond\",\"blue\",\"blueviolet\",\"brown\",\"burlywood\",\"cadetblue\",\"chartreuse\",\"chocolate\",\"coral\",\"cornflowerblue\",\"cornsilk\",\"crimson\",\"cyan\",\"darkblue\",\"darkcyan\",\"darkgoldenrod\",\"darkgray\",\"darkgreen\",\"darkgrey\",\"darkkhaki\",\"darkmagenta\",\"darkolivegreen\",\"darkorange\",\"darkorchid\",\"darkred\",\"darksalmon\",\"darkseagreen\",\"darkslateblue\",\"darkslategray\",\"darkslategrey\",\"darkturquoise\",\"darkviolet\",\"deeppink\",\"deepskyblue\",\"dimgray\",\"dimgrey\",\"dodgerblue\",\"firebrick\",\"floralwhite\",\"forestgreen\",\"fuchsia\",\"gainsboro\",\"ghostwhite\",\"gold\",\"goldenrod\",\"gray\",\"green\",\"greenyellow\",\"grey\",\"honeydew\",\"hotpink\",\"indianred\",\"indigo\",\"ivory\",\"khaki\",\"lavender\",\"lavenderblush\",\"lawngreen\",\"lemonchiffon\",\"lightblue\",\"lightcoral\",\"lightcyan\",\"lightgoldenrodyellow\",\"lightgray\",\"lightgreen\",\"lightgrey\",\"lightpink\",\"lightsalmon\",\"lightseagreen\",\"lightskyblue\",\"lightslategray\",\"lightslategrey\",\"lightsteelblue\",\"lightyellow\",\"lime\",\"limegreen\",\"linen\",\"magenta\",\"maroon\",\"mediumaquamarine\",\"mediumblue\",\"mediumorchid\",\"mediumpurple\",\"mediumseagreen\",\"mediumslateblue\",\"mediumspringgreen\",\"mediumturquoise\",\"mediumvioletred\",\"midnightblue\",\"mintcream\",\"mistyrose\",\"moccasin\",\"navajowhite\",\"navy\",\"oldlace\",\"olive\",\"olivedrab\",\"orange\",\"orangered\",\"orchid\",\"palegoldenrod\",\"palegreen\",\"paleturquoise\",\"palevioletred\",\"papayawhip\",\"peachpuff\",\"peru\",\"pink\",\"plum\",\"powderblue\",\"purple\",\"rebeccapurple\",\"red\",\"rosybrown\",\"royalblue\",\"saddlebrown\",\"salmon\",\"sandybrown\",\"seagreen\",\"seashell\",\"sienna\",\"silver\",\"skyblue\",\"slateblue\",\"slategray\",\"slategrey\",\"snow\",\"springgreen\",\"steelblue\",\"tan\",\"teal\",\"thistle\",\"tomato\",\"turquoise\",\"violet\",\"wheat\",\"white\",\"whitesmoke\",\"yellow\",\"yellowgreen\",// Special color values\n\"transparent\",\"currentcolor\",\"inherit\",\"initial\",\"unset\"]);// Check if it's a standard CSS color name\nif(CSS_COLORS.has(color)){return true;}// If in browser environment, use DOM as fallback\nif(typeof document!==\"undefined\"){const element=document.createElement(\"div\");element.style.color=\"\";element.style.color=strColor;return element.style.color!==\"\";}return false;}/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Shopify_ProductVariantSelector(props){const{product,selectedVariant,selectVariant}=useProduct(props.productID??null,props.config,true);const[selectedOptions,setSelectedOptions]=useState({});const options=product?.options?.filter(item=>item.name!==\"Title\")??[];useEffect(()=>{if(selectedVariant){const opt={};selectedVariant?.selectedOptions.forEach(item=>{opt[item.name]=item.value;});setSelectedOptions(opt);}},[selectedVariant]);useEffect(()=>{if(product){const findedVariant=product.variants.nodes.find(variant=>{let isAllSelected=true;variant.selectedOptions.forEach(i=>{if(!selectedOptions[i.name]||selectedOptions[i.name]!==i.value){isAllSelected=false;}});return isAllSelected;});if(findedVariant){selectVariant(findedVariant,null);}}},[selectedOptions,product]);return /*#__PURE__*/_jsx(ComponentWrapper,{style:cn(styles.container,props.wrapper),hidden:!product||options.length===0,productID:props.productID||\"EMPTY\",config:props.config,children:options.map(option=>/*#__PURE__*/_jsxs(\"div\",{style:styles.optionWrapper,children:[/*#__PURE__*/_jsx(\"span\",{style:cn(props.label),children:option.name}),/*#__PURE__*/_jsx(\"div\",{style:cn(styles.valuesWrapper),children:option.values.map(value=>{const isSelected=selectedOptions[option.name]===value;const animateStyle=isSelected?cn(props.selectedOption):{};return /*#__PURE__*/_jsxs(motion.button,{type:\"button\",onClick:()=>{setSelectedOptions(state=>({...state,[option.name]:value}));},style:cn(styles.option,props.variant,isOnCanvas()&&animateStyle),animate:{...animateStyle},transition:{duration:.2},children:[props.supportColors&&isValidColor(value.toLowerCase())&&/*#__PURE__*/_jsx(\"div\",{style:cn(props.colorVariant,{width:props.colorVariant.size,height:props.colorVariant.size,background:value})}),value]},value);})})]},option.id))});}Shopify_ProductVariantSelector.displayName=\"Product Variant Selector\";addPropertyControls(Shopify_ProductVariantSelector,{...ConfigControls,...ProductBaseControls,wrapper:{type:ControlType.Object,buttonTitle:\"Style\",controls:{gap:{type:ControlType.Number,defaultValue:16,min:0},flexDirection:{title:\"Direction\",type:ControlType.Enum,options:[\"row\",\"column\"],optionTitles:[\"Row\",\"Column\"],defaultValue:\"column\"}}},label:{type:ControlType.Object,buttonTitle:\"Style\",controls:{display:{title:\"Visibility\",type:ControlType.Enum,options:[\"block\",\"none\"],optionTitles:[\"Visible\",\"Hidden\"],defaultValue:\"column\"},...textProperties(14,\"#919191\")}},variant:{type:ControlType.Object,buttonTitle:\"Style\",controls:{...textProperties(16,\"#666666\"),backgroundColor:{type:ControlType.Color,defaultValue:\"#F5F5F5\",optional:true},border:{type:ControlType.Border,defaultValue:{borderWidth:0}},borderRadius:{type:ControlType.BorderRadius,defaultValue:\"10px\"},gap:{type:ControlType.Number,defaultValue:4,min:0},padding:{type:ControlType.Padding,defaultValue:\"10px 16px 10px 16px\"}}},selectedOption:{type:ControlType.Object,buttonTitle:\"Style\",controls:{color:{type:ControlType.Color,defaultValue:\"#fff\",optional:true},backgroundColor:{type:ControlType.Color,defaultValue:\"#000\",optional:true},border:{type:ControlType.Border,defaultValue:{borderWidth:0}}}},supportColors:{type:ControlType.Boolean,description:\"Show colors nested with their color names\",defaultValue:false},colorVariant:{type:ControlType.Object,buttonTitle:\"Style\",hidden:p=>!p.supportColors,controls:{borderRadius:{type:ControlType.BorderRadius,defaultValue:\"12px\"},size:{type:ControlType.Number,defaultValue:12,min:0},border:{type:ControlType.Border,defaultValue:{borderWidth:0}}}}});const styles={container:{display:\"flex\",flexWrap:\"wrap\"},option:{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",cursor:\"pointer\"},optionWrapper:{display:\"flex\",flexDirection:\"column\",gap:6},valuesWrapper:{display:\"flex\",gap:8,flexWrap:\"wrap\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Shopify_ProductVariantSelector\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shopify_ProductVariantSelector.map","import{useState,useEffect}from\"react\";const SCRIPTS_LOADED={};export function loadScript(src,options){const isScriptLoaded=SCRIPTS_LOADED[src];// eslint-disable-next-line @typescript-eslint/no-misused-promises\nif(isScriptLoaded){return isScriptLoaded;}const promise=new Promise((resolve,reject)=>{const script=document.createElement(\"script\");if(options===null||options===void 0?void 0:options.module){script.type=\"module\";}else{script.type=\"text/javascript\";}script.src=src;script.onload=()=>{resolve(true);};script.onerror=()=>{reject(false);};if((options===null||options===void 0?void 0:options.in)===\"head\"){document.head.appendChild(script);}else{document.body.appendChild(script);}const attributes=options===null||options===void 0?void 0:options.attributes;if(attributes){Object.keys(attributes).forEach(key=>{script.setAttribute(key,attributes[key]);});}});SCRIPTS_LOADED[src]=promise;return promise;}/**\n * The `useLoadScript` hook loads an external script tag in the browser. It allows React components to lazy-load large third-party dependencies.\n */export function useLoadScript(url,options){const[status,setStatus]=useState(\"loading\");useEffect(()=>{loadScript(url,options).then(()=>setStatus(\"done\")).catch(()=>setStatus(\"error\"));},// Ignore options changes since it won't trigger a new load.\n// eslint-disable-next-line react-hooks/exhaustive-deps\n[url]);return status;}\nexport const __FramerMetadata__ = {\"exports\":{\"useLoadScript\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"loadScript\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./_useLoadScript.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls}from\"framer\";import{ProductBaseControls,ConfigControls}from\"https://framerusercontent.com/modules/eAejHXy6apg0StNmpKvK/GXn1lJ5V4nUwhRO9yQKC/_framer_utils.js\";import{useLoadScript}from\"https://framerusercontent.com/modules/5RNyIzBVhOLYhJjEkl69/CL32zvCyc8cQXIdAa3uE/_useLoadScript.js\";import{useProduct}from\"https://framerusercontent.com/modules/xEahqZEsyG5uoZky61jQ/yMYjCncXBsxOaKoj8nUI/_useProduct.js\";import ComponentWrapper from\"https://framerusercontent.com/modules/hQlZBgGeLDev5WuUJA4d/6ncqGCEKZWsfLWpBe7Jn/ComponentWrapper.js\";import{parseGid}from\"https://framerusercontent.com/modules/7dEgbg7qo3lsQk361YtS/NrF60tPHZRRgADqpoRFr/_utils.js\";const SHOPJS_URL=\"https://cdn.shopify.com/shopifycloud/shop-js/v1.0/client.js\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Shopify_ShopPayButton(props){const{selectedVariant,selectedProduct,product}=useProduct(props.productID??null,props.config);const shopPayLoadedStatus=useLoadScript(SHOPJS_URL);const variantId=selectedVariant?.id?parseGid(selectedVariant.id).id:parseGid(product?.variants.nodes?.[0].id).id;const style=props?.style?.width?{\"--shop-pay-button-width\":props.style.width}:undefined;return /*#__PURE__*/_jsx(ComponentWrapper,{style:style,productID:props.productID||\"EMPTY\",hidden:shopPayLoadedStatus!==\"done\",config:props.config,children:()=>/*#__PURE__*/_jsx(\"shop-pay-button\",{\"store-url\":props.config?.storeDomain&&`https://${props.config.storeDomain}`,variants:variantId??\"\",\"data-shopiframe\":\"component\"})});}Shopify_ShopPayButton.displayName=\"Shop Pay Button\";addPropertyControls(Shopify_ShopPayButton,{...ConfigControls,...ProductBaseControls});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Shopify_ShopPayButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{cn,textProperties,ProductBaseControls,ConfigControls}from\"https://framerusercontent.com/modules/eAejHXy6apg0StNmpKvK/GXn1lJ5V4nUwhRO9yQKC/_framer_utils.js\";import{useProduct}from\"https://framerusercontent.com/modules/xEahqZEsyG5uoZky61jQ/yMYjCncXBsxOaKoj8nUI/_useProduct.js\";import{useCart}from\"https://framerusercontent.com/modules/kEMMGb5hqGCVwEpqX70U/xtbUYyPMDwLhvH64M4SK/_useCart.js\";import ComponentWrapper from\"https://framerusercontent.com/modules/hQlZBgGeLDev5WuUJA4d/6ncqGCEKZWsfLWpBe7Jn/ComponentWrapper.js\";import Button,{ButtonProperties}from\"https://framerusercontent.com/modules/EoMllm11FAeAfrQZgkjQ/LMhGmi204cugd6mksqKj/Button.js\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Shopify_ProductAddToCart(props){const{product,selectedProduct,availableForSale}=useProduct(props.productID??null,props.config);const{addToCart,actionLoading,cartError}=useCart(props.config);const handleAddToCart=async()=>{const merchandiseId=selectedProduct?.selectedOption||product?.variants.nodes[0].id;const quantity=selectedProduct?selectedProduct.quantity:1;const sellingPlanId=selectedProduct?.sellingPlan;// find & add attribute to cart\nconst attributes=[];const productElements=document.querySelectorAll('[name^=\"product-\"]');productElements.forEach(element=>{const key=element.getAttribute(\"name\").replace(\"product-\",\"\");const value=element.value;if(value&&value!==\"\"){attributes.push({key,value});}});// finally add to cart\nawait addToCart({merchandiseId,quantity,attributes,sellingPlanId});props.openCartEvent?.();};return /*#__PURE__*/_jsxs(ComponentWrapper,{style:cn(styles.wrapper),productID:props.productID||\"EMPTY\",config:props.config,children:[/*#__PURE__*/_jsx(Button,{onClick:handleAddToCart,loading:actionLoading,disabled:!availableForSale,...props}),cartError&&/*#__PURE__*/_jsx(motion.span,{style:cn(props.errorStyle),children:cartError})]});}Shopify_ProductAddToCart.displayName=\"Product Add To Cart\";addPropertyControls(Shopify_ProductAddToCart,{...ConfigControls,...ProductBaseControls,...ButtonProperties(\"Add to cart\"),errorStyle:{title:\"Error Style\",type:ControlType.Object,controls:{...textProperties(14,\"#bb0000\"),textTransform:{type:ControlType.Enum,defaultValue:\"none\",segmentedControlDirection:\"vertical\",options:[\"none\",\"lowercase\",\"uppercase\",\"capitalize\"],optionTitles:[\"Normal\",\"Lowercase\",\"Uppercase\",\"Capitalize\"]}}},openCartEvent:{type:ControlType.EventHandler}});const styles={wrapper:{display:\"flex\",flexDirection:\"column\",gap:8}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Shopify_ProductAddToCart\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"sbAA4oB,SAAgB,EAAW,EAAU,EAAO,EAAc,CAAC,GAAK,CAAC,EAAiB,GAAqB,EAAQ,CAAoB,EAAO,CAAC,YAAU,EAAW,CAAM,EAAO,CAAC,EAAQ,GAAYA,EAAS,GAAQ,SAAS,EAAe,IAAI,EAAQ,EAAS,GAAS,GAAG,EAAiB,EAAQ,IAAI,KAC/6B,GAAU,EAAa,IAAQ,CAAC,IAAM,EAAkB,GAAc,EAAa,SAAS,MAAM,EAAU,EAAa,CAAM,EAAE,KAAW,EAAW,EAAU,EAAM,CAAM,EAAE,MAAM,CAAC,aAAa,IAAoB,EAA6B,KAAlB,EAAuB,MAAM,CAAU,CAAE,EAAQ,EAAe,GAAU,CAAK,GAAe,EAAoB,IAAQ,CAAC,GAAG,GAAO,EAAQ,IAAI,CAAC,GAAG,EAAsB,GAAG,EAAM,EAAQ,IAAI,UAAQ,CAAC,EAAE,CAAE,EAAQ,GAAe,EA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