{"version":3,"file":"HFSearchButton.D-OaOpAC.mjs","names":["_Fragment","useState","_Fragment","__esmMin","window","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","l","p","c","init_jsx_runtime","ce","navigator","init_framer_DKWANagr","ControlType","addPropertyControls","HFDocCard","props","q1","s","d","st","family","display","mono","flood","ink","paper","surface","muted","look","link","showSection","section","title","summary","read","init_HFDocCard","HFSearchButton","mac","setMac","label","accent","command","init_HFSearchButton"],"sources":["https:/framerusercontent.com/modules/ZCTxXQ4JofuaCMIw9ONR/w6T914QEX404PYyzJ5Wz/HFDocCard.js","https:/framerusercontent.com/modules/EgsNnEfPg4kT1wgjmQ4J/ycRHLg5DqcvpzjohhDu3/HFSearchButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Hotfix: a docs article teaser. \"card\" is a flat mist block that floods ink on hover; \"row\" is a list row with a thick rule that\n// floods with the Hover Colour (the accent). Section label, title, summary and read time in a terminal style. The whole tile is one link.\n/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 360\n * @framerIntrinsicHeight 220\n */export default function HFDocCard(props){const{title,summary,section,showSection,read,link,look,family,display,mono,flood,ink,paper,surface,muted}=props;const q1=(s,d)=>`\"${String(s||d).replace(/\"/g,\"\")}\"`;const st={[\"--hdb\"]:`${q1(family,\"Schibsted Grotesk\")}, system-ui, sans-serif`,[\"--hdd\"]:`${q1(display,\"Sofia Sans Extra Condensed\")}, Impact, sans-serif`,[\"--hdm\"]:`${q1(mono,\"JetBrains Mono\")}, ui-monospace, monospace`,[\"--hdf\"]:flood,[\"--hdi\"]:ink,[\"--hdp\"]:paper,[\"--hds\"]:surface,[\"--hdg\"]:muted};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`.hfd{position:relative;overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;width:100%;height:100%;padding:24px 24px 22px;background:var(--hds);color:var(--hdi);text-decoration:none;font-family:var(--hdb);transition:background-color .15s,color .15s;-webkit-tap-highlight-color:transparent}.hfd:hover,.hfd:focus-visible,.hfd:active{background:var(--hdi);color:var(--hdp)}.hfd:focus{outline:none}.hfd:focus-visible{outline:4px solid var(--hdi);outline-offset:3px;box-shadow:0 0 0 4px var(--hdp)}.hfd-k{font-family:var(--hdm);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.hfd-t{margin:0;font-family:var(--hdd);font-weight:900;font-size:34px;line-height:.98;text-transform:uppercase}.hfd-s{margin:0;font-size:16px;line-height:24px;font-weight:500;flex:1;color:var(--hdg);transition:color .15s}.hfd:hover .hfd-s,.hfd:focus-visible .hfd-s,.hfd:active .hfd-s{color:#C9C6BC}.hfd-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font-family:var(--hdm);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.hfd-a{display:inline-block;transition:transform .2s}.hfd:hover .hfd-a{transform:translateX(5px)}.hfd-row{flex-direction:row;align-items:center;gap:20px;padding:22px 16px 22px 12px;background:transparent;border-bottom:3px solid var(--hdi);color:var(--hdi)}.hfd-row:hover,.hfd-row:focus-visible,.hfd-row:active{background:var(--hdf);color:var(--hdi)}.hfd-row:hover .hfd-s,.hfd-row:focus-visible .hfd-s,.hfd-row:active .hfd-s{color:var(--hdi)}.hfd-row:focus-visible{box-shadow:none}.hfd-row .hfd-k{flex:none;width:120px}.hfd-row .hfd-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.hfd-row .hfd-t{font-size:28px}.hfd-row .hfd-s{flex:none}.hfd-row .hfd-f{margin:0;flex:none}@media (max-width:700px){.hfd-row{flex-wrap:wrap;gap:6px 14px}.hfd-row .hfd-k{width:100%}.hfd-row .hfd-mid{flex:1 1 70%}}@media (prefers-reduced-motion:reduce){.hfd,.hfd-a{transition:none!important}}`}),look===\"row\"?/*#__PURE__*/_jsxs(\"a\",{className:\"hfd hfd-row\",href:link||\"#\",style:st,children:[showSection?/*#__PURE__*/_jsx(\"span\",{className:\"hfd-k\",children:section}):null,/*#__PURE__*/_jsxs(\"span\",{className:\"hfd-mid\",children:[/*#__PURE__*/_jsx(\"h3\",{className:\"hfd-t\",children:title}),/*#__PURE__*/_jsx(\"p\",{className:\"hfd-s\",children:summary})]}),/*#__PURE__*/_jsxs(\"span\",{className:\"hfd-f\",children:[read,/*#__PURE__*/_jsx(\"span\",{className:\"hfd-a\",\"aria-hidden\":\"true\",children:\"→\"})]})]}):/*#__PURE__*/_jsxs(\"a\",{className:\"hfd\",href:link||\"#\",style:st,children:[/*#__PURE__*/_jsx(\"span\",{className:\"hfd-k\",children:section}),/*#__PURE__*/_jsx(\"h3\",{className:\"hfd-t\",children:title}),/*#__PURE__*/_jsx(\"p\",{className:\"hfd-s\",children:summary}),/*#__PURE__*/_jsxs(\"span\",{className:\"hfd-f\",children:[read,/*#__PURE__*/_jsx(\"span\",{className:\"hfd-a\",\"aria-hidden\":\"true\",children:\"→\"})]})]})]});}HFDocCard.displayName=\"Hotfix Doc Card\";HFDocCard.defaultProps={title:\"Quickstart\",summary:\"Run your first pipeline in five minutes.\",section:\"Get started\",read:\"4 min read\",look:\"card\",showSection:true,family:\"Schibsted Grotesk\",display:\"Sofia Sans Extra Condensed\",mono:\"JetBrains Mono\",flood:\"#FF5A1F\",ink:\"#0E0E0E\",paper:\"#F2F0EB\",surface:\"#E7E4DD\",muted:\"#4A4943\"};addPropertyControls(HFDocCard,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Quickstart\"},summary:{type:ControlType.String,title:\"Summary\",defaultValue:\"Run your first pipeline in five minutes.\"},section:{type:ControlType.String,title:\"Section\",defaultValue:\"Get started\"},showSection:{type:ControlType.Boolean,title:\"Show Section\",defaultValue:true},read:{type:ControlType.String,title:\"Read Time\",defaultValue:\"4 min read\"},link:{type:ControlType.Link,title:\"Link\"},look:{type:ControlType.Enum,title:\"Look\",options:[\"card\",\"row\"],optionTitles:[\"Card\",\"Row\"],defaultValue:\"card\"},family:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Schibsted Grotesk\"},display:{type:ControlType.String,title:\"Display Family\",defaultValue:\"Sofia Sans Extra Condensed\"},mono:{type:ControlType.String,title:\"Mono Family\",defaultValue:\"JetBrains Mono\"},flood:{type:ControlType.Color,title:\"Hover Colour\",defaultValue:\"#FF5A1F\"},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#0E0E0E\"},paper:{type:ControlType.Color,title:\"Paper\",defaultValue:\"#F2F0EB\"},surface:{type:ControlType.Color,title:\"Card Colour\",defaultValue:\"#E7E4DD\"},muted:{type:ControlType.Color,title:\"Muted Text\",defaultValue:\"#4A4943\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HFDocCard\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"220\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"360\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HFDocCard.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Hotfix: a command bar look-alike (`$ cinder --search _` with a blinking cursor) that opens the search in the navigation,\n// the same as pressing Cmd/Ctrl+K. The shortcut hint reads Cmd on Mac and Ctrl elsewhere; that is decided after mount.\n/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 720\n * @framerIntrinsicHeight 68\n */export default function HFSearchButton(props){const{label,command,mono,accent,ink,paper}=props;const[mac,setMac]=useState(true);useEffect(()=>{setMac(/Mac|iPhone|iPad/i.test(navigator.platform||navigator.userAgent||\"\"));},[]);const open=()=>window.dispatchEvent(new Event(\"hf:search\"));return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`.hfsb{box-sizing:border-box;display:flex;align-items:center;gap:14px;width:100%;height:100%;min-height:56px;padding:0 12px 0 20px;border:0;background:var(--hsi);color:var(--hsp);font-family:var(--hsm);font-size:16px;font-weight:500;text-align:left;cursor:pointer;transition:background-color .12s,transform .1s}.hfsb:hover{background:#262522}.hfsb:active{background:#34332F;transform:translateY(1px)}.hfsb:focus{outline:none}.hfsb:focus-visible{outline:3px solid var(--hsi);outline-offset:3px;box-shadow:0 0 0 3px var(--hsp)}.hfsb-c{flex:none;font-weight:700;color:var(--hsy)}.hfsb-l{flex:1;min-width:0;display:flex;align-items:center}.hfsb-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hfsb-l i{flex:none;display:block;width:10px;height:18px;margin-left:6px;background:var(--hsy);animation:hfBlink 1.1s steps(1) infinite}.hfsb-k{display:flex;gap:4px;flex:none}.hfsb-k kbd{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 7px;background:var(--hsy);color:var(--hsi);font-family:var(--hsm);font-size:12px;font-weight:700}@keyframes hfBlink{0%,49%{opacity:1}50%,100%{opacity:0}}@media (max-width:600px){.hfsb-k{display:none}.hfsb{font-size:14px;padding-left:14px}}@media (prefers-reduced-motion:reduce){.hfsb-l i{animation:none}.hfsb{transition:none}}`}),/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"hfsb\",onClick:open,\"aria-haspopup\":\"dialog\",\"aria-label\":label,style:{[\"--hsm\"]:`\"${String(mono||\"JetBrains Mono\").replace(/\"/g,\"\")}\", ui-monospace, monospace`,[\"--hsy\"]:accent,[\"--hsi\"]:ink,[\"--hsp\"]:paper},children:[/*#__PURE__*/_jsx(\"span\",{className:\"hfsb-c\",\"aria-hidden\":\"true\",children:command}),/*#__PURE__*/_jsxs(\"span\",{className:\"hfsb-l\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"hfsb-t\",children:label}),/*#__PURE__*/_jsx(\"i\",{\"aria-hidden\":\"true\"})]}),/*#__PURE__*/_jsxs(\"span\",{className:\"hfsb-k\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"kbd\",{children:mac?\"⌘\":\"Ctrl\"}),/*#__PURE__*/_jsx(\"kbd\",{children:\"K\"})]})]})]});}HFSearchButton.displayName=\"Hotfix Command Bar\";HFSearchButton.defaultProps={label:\"docs, releases, roadmap\",command:\"$ cinder --search\",mono:\"JetBrains Mono\",accent:\"#FF5A1F\",ink:\"#0E0E0E\",paper:\"#F2F0EB\"};addPropertyControls(HFSearchButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"docs, releases, roadmap\"},command:{type:ControlType.String,title:\"Command Text\",defaultValue:\"$ cinder --search\"},mono:{type:ControlType.String,title:\"Mono Family\",defaultValue:\"JetBrains Mono\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#FF5A1F\"},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#0E0E0E\"},paper:{type:ControlType.Color,title:\"Paper\",defaultValue:\"#F2F0EB\"}})// build 2\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HFSearchButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"720\",\"framerIntrinsicHeight\":\"68\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HFSearchButton.map"],"mappings":"A,oNAOG,SAAwBiB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,UAAQ,cAAY,OAAK,OAAK,OAAK,SAAO,UAAQ,OAAK,QAAM,MAAI,QAAM,UAAQ,SAAOC,EAAYC,GAAI,EAAE,IAAI,IAAI,OAAOC,GAAGC,CAAC,CAAC,CAAC,QAAQ,KAAK,EAAE,E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