{"version":3,"file":"Postmark.2UxpX7vG.mjs","names":["useRef","useId","useState"],"sources":["https:/framerusercontent.com/modules/lHTTJX4rxLWKMQ9J87RT/CUyjPZOr78dMpyPtNZqY/Postmark.js"],"sourcesContent":["// Postmark: an inky circular postmark with cancellation waves. It thumps down\n// like a rubber stamp the first time it scrolls into view.\n// The circle takes the layer's height; any extra width is filled by the waves.\n// Turn on \"Today's Date\" to postmark with the visitor's date instead of Center/Sub.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useId,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView,useReducedMotion}from\"framer-motion\";const FALLBACK={fontFamily:'\"IBM Plex Mono\", ui-monospace, monospace',fontWeight:600};function fontStyle(font){const{fontSize,lineHeight,textAlign,...rest}=font||{};const out={...FALLBACK,...rest};if(!out.fontFamily)out.fontFamily=FALLBACK.fontFamily;return out;}/**\n * Postmark\n *\n * @framerIntrinsicWidth 180\n * @framerIntrinsicHeight 80\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Postmark(props){const{ring=\"Sunday Studio ★ Letters Dept ★\",center:centerText=\"29 Sep\",sub:subText=\"2026\",today=false,color=\"#0F0FFF\",font,waves=\"left\",waveCount=3,angle=-12,ink=.6,opacity=.9,stamp=true,delay=.15,style}=props;const isStatic=useIsStaticRenderer();const reduceMotion=useReducedMotion();const ref=useRef(null);const inView=useInView(ref,{once:true,amount:.6});const id=\"pm\"+useId().replace(/[^a-zA-Z0-9]/g,\"\");const type=fontStyle(font);const still=isStatic||reduceMotion||!stamp;const landed=still||inView;// Read the date after mounting so the published page and the visitor's\n// browser never disagree about what day it is.\nconst[date,setDate]=useState(null);useEffect(()=>{if(!today)return setDate(null);const now=new Date;// Fixed month names: some browsers shorten September to \"Sept\".\nconst months=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];setDate([`${now.getDate()} ${months[now.getMonth()]}`,String(now.getFullYear())]);},[today]);const center=date?date[0]:centerText;const sub=date?date[1]:subText;// Ring text is stretched to wrap the circle exactly once.\nconst ringRadius=40.5;const ringLength=2*Math.PI*ringRadius-4;const ringText=ring.toUpperCase();const centerSize=Math.min(15,60/Math.max(3,center.length));const rough=Math.max(0,Math.min(1,ink));const circle=/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 100 100\",style:{height:\"100%\",aspectRatio:\"1 / 1\",flex:\"none\",overflow:\"visible\"},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"path\",{id:`${id}-ring`,d:`M 50 ${50-ringRadius} a ${ringRadius} ${ringRadius} 0 1 1 -0.01 0`})}),/*#__PURE__*/_jsxs(\"g\",{fill:\"none\",stroke:\"currentColor\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"50\",cy:\"50\",r:\"47.5\",strokeWidth:\"2.2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"50\",cy:\"50\",r:\"33.5\",strokeWidth:\"1.2\"})]}),/*#__PURE__*/_jsx(\"text\",{fill:\"currentColor\",style:{...type,fontSize:8.2,letterSpacing:0},children:/*#__PURE__*/_jsx(\"textPath\",{href:`#${id}-ring`,textLength:ringLength,lengthAdjust:\"spacing\",children:ringText})}),/*#__PURE__*/_jsx(\"line\",{x1:\"22\",y1:\"50\",x2:\"78\",y2:\"50\",stroke:\"currentColor\",strokeWidth:\"0.9\",opacity:\"0.8\"}),/*#__PURE__*/_jsx(\"text\",{x:\"50\",y:sub?45.5:55,textAnchor:\"middle\",fill:\"currentColor\",style:{...type,fontSize:centerSize},children:center.toUpperCase()}),sub?/*#__PURE__*/_jsx(\"text\",{x:\"50\",y:\"63\",textAnchor:\"middle\",fill:\"currentColor\",style:{...type,fontSize:9.5},children:sub.toUpperCase()}):null]});const lines=Math.max(1,Math.min(6,Math.round(waveCount)));const waveSvg=waves===\"none\"?null:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 120 40\",preserveAspectRatio:\"none\",style:{flex:1,minWidth:0,height:\"62%\",overflow:\"visible\",margin:waves===\"left\"?\"0 -10% 0 0\":\"0 0 0 -10%\"},\"aria-hidden\":\"true\",children:Array.from({length:lines},(_,i)=>{const y=lines===1?20:4+32/(lines-1)*i;const d=`M 0 ${y} q 7.5 -6 15 0 t 15 0 t 15 0 t 15 0 t 15 0 t 15 0 t 15 0 t 15 0`;return /*#__PURE__*/_jsx(\"path\",{d:d,fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",vectorEffect:\"non-scaling-stroke\",strokeLinecap:\"round\"},i);})});return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{position:\"relative\",...style,pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"0\",height:\"0\",style:{position:\"absolute\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"filter\",{id:`${id}-ink`,x:\"-15%\",y:\"-15%\",width:\"130%\",height:\"130%\",children:[/*#__PURE__*/_jsx(\"feTurbulence\",{type:\"fractalNoise\",baseFrequency:\"0.9\",numOctaves:\"2\",seed:\"4\",result:\"grit\"}),/*#__PURE__*/_jsx(\"feDisplacementMap\",{in:\"SourceGraphic\",in2:\"grit\",scale:2.4*rough,xChannelSelector:\"R\",yChannelSelector:\"G\",result:\"rough\"}),/*#__PURE__*/_jsx(\"feTurbulence\",{type:\"fractalNoise\",baseFrequency:\"0.07\",numOctaves:\"3\",seed:\"11\",result:\"blots\"}),/*#__PURE__*/_jsx(\"feColorMatrix\",{in:\"blots\",type:\"matrix\",values:`0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  ${(-2.6*rough).toFixed(2)} 0 0 0 ${(1+1.25*rough).toFixed(2)}`,result:\"coverage\"}),/*#__PURE__*/_jsx(\"feComposite\",{in:\"rough\",in2:\"coverage\",operator:\"in\"})]})}),/*#__PURE__*/_jsxs(motion.div,{initial:false,animate:landed?{opacity,scale:1,rotate:angle}:{opacity:0,scale:1.9,rotate:angle-26},transition:still?{duration:0}:{type:\"spring\",stiffness:560,damping:22,mass:.7,delay},style:{position:\"absolute\",inset:0,display:\"flex\",flexDirection:waves===\"right\"?\"row\":\"row-reverse\",alignItems:\"center\",justifyContent:waves===\"none\"?\"center\":\"flex-start\",// Tokens are CSS variables, which SVG attributes can't read,\n// so the ink colour flows in through currentColor.\ncolor,filter:rough>0?`url(#${id}-ink)`:undefined,mixBlendMode:\"multiply\",transformOrigin:waves===\"left\"?\"85% 50%\":waves===\"right\"?\"15% 50%\":\"50% 50%\"},children:[circle,waveSvg]})]});}Postmark.displayName=\"Postmark\";addPropertyControls(Postmark,{ring:{type:ControlType.String,title:\"Ring Text\",defaultValue:\"Sunday Studio ★ Letters Dept ★\"},today:{type:ControlType.Boolean,title:\"Today's Date\",defaultValue:false,description:\"Shows the visitor's date instead of Center and Sub.\"},center:{type:ControlType.String,title:\"Center\",defaultValue:\"29 Sep\",hidden:p=>!!p.today},sub:{type:ControlType.String,title:\"Sub\",defaultValue:\"2026\",hidden:p=>!!p.today},color:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#0F0FFF\"},font:{type:ControlType.Font,title:\"Font\",controls:\"basic\",defaultFontType:\"monospace\"},waves:{type:ControlType.Enum,title:\"Waves\",options:[\"left\",\"right\",\"none\"],optionTitles:[\"Left\",\"Right\",\"None\"],defaultValue:\"left\",displaySegmentedControl:true},waveCount:{type:ControlType.Number,title:\"Wave Lines\",defaultValue:3,min:1,max:6,step:1,displayStepper:true,hidden:p=>p.waves===\"none\"},angle:{type:ControlType.Number,title:\"Angle\",defaultValue:-12,min:-180,max:180,unit:\"\\xb0\"},ink:{type:ControlType.Number,title:\"Worn Ink\",defaultValue:.6,min:0,max:1,step:.05},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.9,min:.1,max:1,step:.05},stamp:{type:ControlType.Boolean,title:\"Stamp In\",defaultValue:true,description:\"Thumps down the first time it scrolls into view.\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:.15,min:0,max:3,step:.05,unit:\"s\",hidden:p=>p.stamp===false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Postmark\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"80\",\"framerIntrinsicWidth\":\"180\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Postmark.map"],"mappings":"6QAIuU,SAAS,EAAU,EAAK,CAAC,GAAK,CAAC,WAAS,aAAW,YAAU,GAAG,GAAM,GAAM,CAAC,EAAQ,EAAI,CAAC,GAAG,EAAS,GAAG,CAAI,EAAwD,MAAtD,CAAmB,EAAI,aAAW,EAAS,WAAkB,CAAI,CAQpf,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,OAAK,iCAAiC,OAAO,EAAW,SAAS,IAAI,EAAQ,OAAO,QAAM,GAAM,QAAM,UAAU,OAAK,QAAM,OAAO,YAAU,EAAE,QAAM,IAAI,MAAI,GAAG,UAAQ,GAAG,QAAM,GAAK,QAAM,IAAI,SAAO,EAAY,EAAS,EAAoB,EAAQ,EAAa,EAAiB,EAAQ,EAAIA,EAAO,IAAI,EAAQ,EAAO,EAAU,EAAI,CAAC,KAAK,GAAK,OAAO,EAAE,CAAC,EAAQ,EAAG,KAAKC,EAAM,CAAC,CAAC,QAAQ,gBAAgB,EAAE,EAAQ,EAAK,EAAU,CAAI,EAAQ,EAAM,GAAU,GAAc,CAAC,EAAY,EAAO,GAAO,EAExhB,CAAC,EAAK,GAASC,EAAS,IAAI,EAAE,MAAc,CAAC,GAAG,CAAC,EAAM,OAAO,EAAQ,IAAI,EAAE,IAAM,EAAI,IAAI,KACR,EAAQ,CAAC,GAAG,EAAI,QAAQ,EAAE,GAAG,CAAtG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