{"version":3,"file":"Postmark.DWGgFMj8.mjs","names":["useMemo","__esmMin","pe","init_npm_react_18_3_1","p","c","init_jsx_runtime","init_framer_BL70qLPA","addPropertyControls","ControlType","fontVars","o","f","fam","family","quoteFamily","weight","fstyle","hashId","h","i","s","arcPath","r","R_TEXT","CX","Postmark","props","inkC","tok","ink","arcF","font","ctrF","centreFont","arcText","text","centreText","centre","pathId","arcLen","arcSize","ARC_AVAILABLE","ARC_EM","ctrLen","ctrSize","CENTRE_WIDTH","CENTRE_EM","px","size","op","opacity","style","rotate","CY","R_OUTER","R_INNER","y","init_Postmark","v"],"sources":["https:/framerusercontent.com/modules/A498U5OkYaxzQgNiITiB/nRrrINXP7Vx0H4ukWoN2/Postmark.js"],"sourcesContent":["// @ts-nocheck\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * DejaTen postmark (round 3, 30 Oct 2026): the small stamp that sits over the corner of the\n * regional hero image plate and beside the booking band line.\n *\n * One square SVG: two hairline rings, the place and season set along the ring in letterspaced\n * small caps (the type scales down so a long string always fits the arc, the same approach as\n * the postmark inside AddressedEnvelope.tsx), the studio word across the centre in the display\n * face, a short rule under it, and three short wavy cancellation lines to the right. The lines\n * sit inside the box so the component stays square at `size`.\n *\n * Purely decorative (aria-hidden), static, no motion.\n *\n * @framerDisableUnlink\n * @framerIntrinsicWidth 112\n * @framerIntrinsicHeight 112\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */const tok=v=>v&&typeof v===\"object\"&&\"value\"in v?v.value:v;const quoteFamily=f=>/[\\s\"']/.test(f)&&!/^[\"']/.test(f)?`\"${f}\"`:f;function fontVars(f,family,weight,fstyle){const o=f&&typeof f===\"object\"?f:{};const fam=typeof o.fontFamily===\"string\"&&o.fontFamily?o.fontFamily:family;return{family:`${quoteFamily(fam)}, ${quoteFamily(family)}, Georgia, serif`,weight:o.fontWeight||weight,style:o.fontStyle||fstyle};}function hashId(s){let h=7;for(let i=0;i<s.length;i++)h=h*31+s.charCodeAt(i)>>>0;return\"dj-pm-\"+h.toString(36);}// Geometry in a 100 x 100 viewBox. The ring sits left of centre so the cancellation lines fit\n// inside the square on the right.\nconst CX=38;const CY=50;const R_OUTER=36;const R_INNER=26.5;const R_TEXT=(R_OUTER+R_INNER)/2// 31.25, the lane between the rings\n;const ARC_DEGREES=300// the text path runs from the bottom, over the top, back to the bottom\n;const ARC_AVAILABLE=2*Math.PI*R_TEXT*(ARC_DEGREES/360);const ARC_EM=.7// average advance per em for tracked small-caps Cormorant 600\n;const CENTRE_EM=.52// average advance per em for Italiana\n;const CENTRE_WIDTH=R_INNER*2*.84;function arcPath(){// Start at the bottom of the text ring and sweep clockwise twice round so the text,\n// anchored at 50 percent, is centred on the top of the ring.\nconst r=R_TEXT;return`M ${CX} ${CY+r} a ${r} ${r} 0 1 1 0 ${-2*r} a ${r} ${r} 0 1 1 0 ${2*r}`;}export default function Postmark(props){const{text=\"Geelong and the Bellarine \\xb7 October to April\",centre=\"DeJa 10\",size=112,ink=\"#3b2a22\",opacity=.7,rotate=-8,font,centreFont,style}=props;const inkC=tok(ink)||\"#3b2a22\";const arcF=fontVars(font,\"Cormorant Garamond\",600,\"normal\");const ctrF=fontVars(centreFont,\"Italiana\",400,\"normal\");const arcText=String(text||\"\").trim();const centreText=String(centre||\"\").trim();const pathId=useMemo(()=>hashId(arcText+\"|\"+centreText),[arcText,centreText]);// Type is sized to the string so it always fits the arc, with a floor and a ceiling.\nconst arcLen=Math.max(1,arcText.length);const arcSize=Math.max(3.4,Math.min(7.2,ARC_AVAILABLE/(arcLen*ARC_EM)));const ctrLen=Math.max(1,centreText.length);const ctrSize=Math.max(7,Math.min(14,CENTRE_WIDTH/(ctrLen*CENTRE_EM)));const px=Math.max(24,Number(size)||112);const op=Math.max(0,Math.min(1,Number(opacity)));return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...style,width:px,height:px,flexShrink:0,pointerEvents:\"none\",transform:`rotate(${Number(rotate)||0}deg)`,transformOrigin:\"50% 50%\"},children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 100 100\",width:px,height:px,style:{display:\"block\",overflow:\"visible\",color:inkC,opacity:op},focusable:\"false\",children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"path\",{id:pathId,d:arcPath()})}),/*#__PURE__*/_jsxs(\"g\",{fill:\"none\",stroke:\"currentColor\",strokeLinecap:\"round\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:CX,cy:CY,r:R_OUTER,strokeWidth:\"1.1\"}),/*#__PURE__*/_jsx(\"circle\",{cx:CX,cy:CY,r:R_INNER,strokeWidth:\"0.7\"}),/*#__PURE__*/_jsx(\"path\",{d:`M ${CX-7} ${CY+9} L ${CX+7} ${CY+9}`,strokeWidth:\"0.6\"}),[43,50,57].map((y,i)=>/*#__PURE__*/_jsx(\"path\",{strokeWidth:i===1?1.1:.9,d:`M 78 ${y} c 3.5 -1.8, 7 1.8, 10.5 0 s 7 1.8, 10.5 0`},y))]}),/*#__PURE__*/_jsx(\"text\",{fill:\"currentColor\",fontSize:arcSize,fontFamily:arcF.family,fontWeight:arcF.weight,fontStyle:arcF.style,letterSpacing:\"0.16em\",style:{fontVariantCaps:\"small-caps\"},children:/*#__PURE__*/_jsx(\"textPath\",{href:\"#\"+pathId,startOffset:\"50%\",textAnchor:\"middle\",dominantBaseline:\"middle\",children:arcText})}),/*#__PURE__*/_jsx(\"text\",{x:CX,y:CY+1.5,fill:\"currentColor\",fontSize:ctrSize,fontFamily:ctrF.family,fontWeight:ctrF.weight,fontStyle:ctrF.style,letterSpacing:\"0.04em\",textAnchor:\"middle\",dominantBaseline:\"middle\",children:centreText})]})});}Postmark.displayName=\"Postmark\";addPropertyControls(Postmark,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Geelong and the Bellarine \\xb7 October to April\"},centre:{type:ControlType.String,title:\"Centre\",defaultValue:\"DeJa 10\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:112,min:24,max:600,step:1,unit:\"px\"},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#3b2a22\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.7,min:0,max:1,step:.05},rotate:{type:ControlType.Number,title:\"Rotate\",defaultValue:-8,min:-45,max:45,step:1,unit:\"\\xb0\"},font:{type:ControlType.Font,title:\"Font\",controls:\"basic\",defaultValue:{fontFamily:\"Cormorant Garamond\",fontWeight:600}},centreFont:{type:ControlType.Font,title:\"Centre font\",controls:\"basic\",defaultValue:{fontFamily:\"Italiana\",fontWeight:400}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Postmark\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Postmark.map"],"mappings":"A,iLAkBiI,SAASU,EAAS,EAAE,EAAO,EAAO,EAAO,CAAC,IAAMC,EAAEC,GAAG,OAAOA,GAAI,SAASA,EAAE,CAAC,EAAQC,EAAI,OAAOF,EAAE,YAAa,UAAUA,EAAE,WAAWA,EAAE,WAAWG,EAAO,MAAM,CAAC,OAAO,GAAGC,EAAYF,CAAG,EAAE,IAAIE,EAAYD,CAAM,EAAE,kBAAkB,OAAOH,EAAE,YAAYK,EAAO,MAAML,EAAE,WAAWM,CAAM,CAAE,CAAC,SAASC,EAAO,EAAE,CAAC,IAAIC,EAAE,EAAE,IAAI,IAAIC,EAAE,EAAEA,EAAEC,EAAE,OAAO,IAAI,EAAEF,EAAE,GAAGE,EAAE,WAAWD,CAAC,IAAI,EAAE,MAAM,SAASD,EAAE,SAAS,EAAE,CAAE,CAM3e,SAASG,GAAS,CAEpD,IAAMC,EAAEC,EAAO,MAAM,KAAKC,EAAG,WAAaF,EAAE,GAAGA,EAAE,WAAW,GAAGA,EAAE,KAAKA,EAAE,GAAGA,EAA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