{"version":3,"file":"HBv2TagArt.DgOQuY7D.mjs","names":["useId","useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","ie","_e","p","c","init_jsx_runtime","ce","init_framer_B1b760uK","ControlType","addPropertyControls","Tag","W","size","BODY_W","H","SRC_H","SRC_W","style","BOX","FEATHER","filterId","TagGroup","cols","count","fid","label","WB","i","OVERLAP_X","OVERLAP_Y","HBv2TagArt","n","props","setSize","mq","set","init_HBv2TagArt"],"sources":["https:/framerusercontent.com/modules/MPPTGihPNRrsLZT8C3nm/z42h79jmUjSzlsXh1JiU/HBv2TagArt.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useId,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Refined single HoneyTag render (1360 x 1156, warm cream ground), the same render used on Guide and HoneyTags.\n// Measured on the image: tag body x 333-1025, y 265-856; its soft shadow reaches about x 250-1160, y 240-960.\nexport const TAG_SRC=\"https://framerusercontent.com/images/EI40TLSJydjnOfwOhMsB7LUux0c.png\";const SRC_W=1360,SRC_H=1156;const BODY_W=692/SRC_W;// Crop window keeps the whole body and its contact shadow, so the tag reads as an object resting on a surface\nconst BOX={x:250/SRC_W,y:240/SRC_H,w:910/SRC_W,h:690/SRC_H};// Neighbouring tiles overlap only in their shadow margins (fractions of the body width)\nconst OVERLAP_X=.16,OVERLAP_Y=.09;// The ground is cream (about 243-250, 233-244, 220-235 across the frame). This white balance lifts its darkest corner to white,\n// so the multiply blend leaves only the tag and its shadow on any light panel.\nconst WB=\"1.049 0 0 0 0  0 1.094 0 0 0  0 0 1.159 0 0  0 0 0 1 0\";// Feather the crop edges so the render's soft shadow fades out instead of ending in a visible rectangle\nconst FEATHER=\"linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 3%, #000 90%, transparent 100%)\";/** One tag at a consistent physical scale. size = width of the tag body in px. */export function Tag({size,filterId,style}){const W=size/BODY_W;const H=W*(SRC_H/SRC_W);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...style,position:\"relative\",width:Math.round(W*BOX.w),height:Math.round(H*BOX.h),overflow:\"hidden\",flex:\"0 0 auto\",WebkitMaskImage:FEATHER,maskImage:FEATHER,WebkitMaskComposite:\"source-in\",maskComposite:\"intersect\",mixBlendMode:\"multiply\"},children:/*#__PURE__*/_jsx(\"img\",{src:TAG_SRC+\"?scale-down-to=1024\",alt:\"\",loading:\"lazy\",decoding:\"async\",width:SRC_W,height:SRC_H,style:{position:\"absolute\",left:-W*BOX.x,top:-H*BOX.y,width:W,height:H,maxWidth:\"none\",pointerEvents:\"none\",filter:filterId?\"url(#\"+filterId+\")\":undefined}})});}/** Exact 1, 2 or 4 HoneyTags at a consistent scale. Four become a 2 x 2 group. */export function TagGroup({count,size,label}){const cols=count===1?1:2;const fid=\"hbtag-wb-\"+useId().replace(/[^a-zA-Z0-9_-]/g,\"\");return /*#__PURE__*/_jsxs(\"div\",{role:\"img\",\"aria-label\":label,style:{display:\"grid\",gridTemplateColumns:\"repeat(\"+cols+\", auto)\",gap:0,justifyContent:\"center\",alignContent:\"center\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"0\",height:\"0\",\"aria-hidden\":\"true\",focusable:\"false\",style:{position:\"absolute\",width:0,height:0},children:/*#__PURE__*/_jsx(\"filter\",{id:fid,colorInterpolationFilters:\"sRGB\",children:/*#__PURE__*/_jsx(\"feColorMatrix\",{type:\"matrix\",values:WB})})}),Array.from({length:count}).map((_,i)=>/*#__PURE__*/_jsx(Tag,{size:size,filterId:fid,style:{marginLeft:i%cols?-Math.round(size*OVERLAP_X):0,marginTop:i>=cols?-Math.round(size*OVERLAP_Y):0}},i))]});}/**\n * HoneyTag pack art on a warm panel: 86px tag bodies on desktop, 82px below 1200px wide (four fit a 180px panel).\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function HBv2TagArt(props){const n=Number(props.count);const count=n===2||n===4?n:1;const label=props.label||(count===1?\"One orange HoneyTag\":count===2?\"Two orange HoneyTags\":\"Four orange HoneyTags\");const[size,setSize]=useState(86);useEffect(()=>{const mq=window.matchMedia(\"(min-width: 1200px)\");const set=()=>setSize(mq.matches?86:82);set();mq.addEventListener?.(\"change\",set);return()=>mq.removeEventListener?.(\"change\",set);},[]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:props.boxHeight||180,borderRadius:20,background:\"radial-gradient(120% 90% at 50% 35%, #FFFDF8 0%, #F7F0E6 100%)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"inset 0 0 0 1px rgba(30,25,21,0.05)\",isolation:\"isolate\"},children:/*#__PURE__*/_jsx(TagGroup,{count:count,size:size,label:label})});}addPropertyControls(HBv2TagArt,{count:{type:ControlType.Enum,title:\"Count\",options:[\"1\",\"2\",\"4\"],optionTitles:[\"1\",\"2\",\"4\"],defaultValue:\"1\"},label:{type:ControlType.String,title:\"Alt text\",defaultValue:\"\"},boxHeight:{type:ControlType.Number,title:\"Height\",defaultValue:180,min:120,max:320}})// Shared dependency for the pre-order information components.\n;\nexport const __FramerMetadata__ = {\"exports\":{\"TagGroup\":{\"type\":\"reactComponent\",\"name\":\"TagGroup\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"Tag\":{\"type\":\"reactComponent\",\"name\":\"Tag\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"HBv2TagArt\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"TAG_SRC\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HBv2TagArt.map"],"mappings":"A,6MAOgQ,SAAgBe,EAAI,CAAC,OAAK,WAAS,SAAO,CAAC,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