{"version":3,"file":"Perforation.EcTOOayr.mjs","names":[],"sources":["https:/framerusercontent.com/modules/4bOslj044WeK9aPGljD8/Pcm2QBoYKIZtWTOd3q2h/Perforation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * A row of half-circle bites along a ticket edge. Use the page background colour.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 6\n */export default function Perforation(props){const{color=\"var(--token-a8710b98-e844-49cd-9171-3249a6757b2f, #131416)\",radius=5,spacing=10,edge=\"Top\",style}=props;const y=edge===\"Top\"?\"0%\":\"100%\";const cell=radius*2+spacing;return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:\"100%\",height:radius,backgroundImage:`radial-gradient(circle at 50% ${y}, ${color} ${radius}px, transparent ${radius+.6}px)`,backgroundSize:`${cell}px ${radius}px`,backgroundRepeat:\"repeat-x\",backgroundPosition:`${Math.round(spacing/2)}px 0px`,...style}});}addPropertyControls(Perforation,{color:{type:ControlType.Color,title:\"Bite Colour\",defaultValue:\"#131416\"},radius:{type:ControlType.Number,title:\"Bite Radius\",defaultValue:5,min:2,max:16,unit:\"px\"},spacing:{type:ControlType.Number,title:\"Spacing\",defaultValue:10,min:2,max:40,unit:\"px\"},edge:{type:ControlType.Enum,title:\"Edge\",options:[\"Top\",\"Bottom\"],defaultValue:\"Top\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Perforation\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"6\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Perforation.map"],"mappings":"4JAOG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,6DAA6D,SAAO,EAAE,UAAQ,GAAG,OAAK,MAAM,SAAO,EAAY,EAAE,IAAO,MAAM,KAAK,OAAa,EAAK,EAAO,EAAE,EAAQ,OAAoB,EAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,MAAM,OAAO,OAAO,EAAO,gBAAgB,iCAAiC,EAAE,IAAI,EAAM,GAAG,EAAO,kBAAkB,EAAO,GAAG,KAAK,eAAe,GAAG,EAAK,KAAK,EAAO,IAAI,iBAAiB,WAAW,mBAAmB,GAAG,KAAK,MAAM,EAAQ,CAAC,EAAE,QAAQ,GAAG,CAAK,CAAC,CAAC,CAAE,iBAPxf,IAAoD,EAOqc,EAAoB,EAAY,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,cAAc,aAAa,SAAS,EAAE,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,IAAI,EAAE,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,IAAI,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,QAAQ,CAAC,MAAM,QAAQ,EAAE,aAAa,KAAK,CAAC,CAAC"}