{"version":3,"file":"Barcode.CcUlSQPp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/RLPbGgWBCOjW0KaivFjt/AzytCvFXxl4mn4ZvOnou/Barcode.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,addFonts}from\"framer\";const PAPER=\"var(--token-8de4e90b-c940-4323-bebf-e6b87001ffbe, #fff)\";const PINK=\"var(--token-ed56ca9d-9d2b-47c2-8b87-856d62ba4b9f, #000)\";const FONT='\"Share Tech Mono\", ui-monospace, monospace';/**\n * A 40px tall barcode of black and white bars, centred, with the number\n * line under it. The same seed always draws the same pattern.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 246\n */export default function Barcode(props){const{seed=7,bars=48,number=\"0247 0910 2026 01\",prefix=\"\",suffix=\"\",spaceTop=12,style}=props;const line=[prefix,number,suffix].map(x=>String(x==null?\"\":x).trim()).filter(Boolean).join(\" \");const widths=[];let s=Math.abs(Math.round(seed))||7;for(let i=0;i<Math.max(2,Math.min(120,bars));i++){s=(s*9301+49297)%233280;widths.push(1+Math.floor(s/233280*4));}return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",fontFamily:FONT,fontSize:13,lineHeight:1.45,fontWeight:400,textTransform:\"uppercase\",color:PINK,paddingTop:spaceTop,...style},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{display:\"flex\",height:40,justifyContent:\"center\"},children:widths.map((w,i)=>/*#__PURE__*/_jsx(\"span\",{style:{width:w,flex:\"none\",background:i%2?PAPER:PINK}},i))}),line&&/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",marginTop:4},children:line})]});}addPropertyControls(Barcode,{seed:{type:ControlType.Number,title:\"Seed\",defaultValue:7,min:1,max:99999,step:1},bars:{type:ControlType.Number,title:\"Bars\",defaultValue:48,min:2,max:120,step:1},number:{type:ControlType.String,title:\"Number\",defaultValue:\"0247 0910 2026 01\"},prefix:{type:ControlType.String,title:\"Before\",defaultValue:\"\",description:\"Optional text before the number (joined with a space).\"},suffix:{type:ControlType.String,title:\"After\",defaultValue:\"\"},spaceTop:{type:ControlType.Number,title:\"Space Top\",defaultValue:12,min:0,max:40,unit:\"px\"}});addFonts(Barcode,[{family:\"Share Tech Mono\",url:\"https://fonts.gstatic.com/s/sharetechmono/v16/J7aHnp1uDWRBEqV98dVQztYldFcLowEFA87Heg.woff2\",style:\"normal\",weight:\"400\"}]);\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Barcode\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"246\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Barcode.map"],"mappings":"0KAOG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,OAAK,EAAE,OAAK,GAAG,SAAO,oBAAoB,SAAO,GAAG,SAAO,GAAG,WAAS,GAAG,SAAO,EAAY,EAAK,CAAC,EAAO,EAAO,CAAM,CAAC,CAAC,IAAI,GAAG,OAAO,GAAQ,EAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAQ,EAAO,CAAC,EAAM,EAAE,KAAK,IAAI,KAAK,MAAM,CAAI,CAAC,GAAG,EAAE,IAAI,IAAI,EAAE,EAAE,EAAE,KAAK,IAAI,EAAE,KAAK,IAAI,IAAI,CAAI,CAAC,EAAE,IAAK,GAAG,EAAE,KAAK,OAAO,OAAO,EAAO,KAAK,EAAE,KAAK,MAAM,EAAE,OAAO,CAAC,CAAC,EAAG,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,WAAW,EAAK,SAAS,GAAG,WAAW,KAAK,WAAW,IAAI,cA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