{"version":3,"file":"IssueCard.BIYH6ppN.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_DxfB3JJo","addPropertyControls","monthYear","issueHref","init_FieldNotesFeed","imgSrc","useIsNew","IssueCard","props","isNew","date","markNew","layout","src","image","label","Heading","style","CSS","slug","alt","title","summary","minutes","EASE","init_IssueCard","ControlType"],"sources":["https:/framerusercontent.com/modules/9zv0spjg7C9NeApyv92O/hLYZV6EPjPzauO0MYoGk/IssueCard.js"],"sourcesContent":["// IssueCard: one Field Notes issue as a card. Used as the template of the Field Notes Collection Lists\n// (homepage section, all-issues page). Bind Title, Slug, Issue date, Summary, Cover image, Cover alt text\n// and Reading time from the CMS; the card builds the month label and the link (/field-notes/[slug]).\n//\n// Layout\n// - Card: 4:3 cover, month eyebrow, headline (Card title S), reading time.\n// - Feature: the wide \"latest issue\" card (photo about 56% left, text right, Read the issue button).\n// - Home (auto): a Card that follows the homepage rules, set by the list it sits in\n//   (a frame named \"Field Notes grid\"): 3 issues = three across, 2 = two half-width cards,\n//   1 = the Feature layout. On phones the first stays a full card and the rest become compact rows.\n//   Those rules live in the site custom code (block \"gs-fn\"), because they depend on how many\n//   issues the list returns.\n// - \"Mark NEW\": the card shows a blue \"New ·\" before its month for 30 days after the issue date.\n//   On the homepage only the first card (the newest) can show it.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{monthYear,issueHref,imgSrc,useIsNew}from\"https://framerusercontent.com/modules/3RIaoCeFnMpmzybDddiD/gvB0biQl5muQp5pQqQoz/FieldNotesFeed.js\";const EASE=\"cubic-bezier(0.22, 1, 0.36, 1)\";const CSS=`\n.fnc{box-sizing:border-box;display:flex;flex-direction:column;gap:14px;width:100%;color:#0A0A0A;text-decoration:none;font-family:'Inter',sans-serif;border-radius:28px}\n.fnc *{box-sizing:border-box}\n.fnc .cv{position:relative;display:block;width:100%;aspect-ratio:4/3;border-radius:28px;overflow:hidden;background:#E6E6E6;flex:none}\n.fnc .cv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ${EASE}}\n.fnc .cv .pl{position:absolute;inset:0;display:grid;place-items:center;padding:16px;text-align:center;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#8A8A8A}\n.fnc .tx{display:flex;flex-direction:column;gap:14px;min-width:0}\n.fnc .eb{margin:0;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;color:#767676}\n.fnc .eb.new{color:#0A66FF}\n.fnc .lt{display:none}\n.fnc .tt{margin:0;font-size:20px;font-weight:600;line-height:1.2;letter-spacing:-.005em;color:#0A0A0A;text-wrap:balance}\n.fnc .sm{display:none;margin:0;font-size:18px;line-height:1.5;color:#5E5E5E}\n.fnc .mn{font-size:14px;line-height:1.4;color:#767676}\n.fnc .bt{display:none;align-self:flex-start;align-items:center;gap:10px;height:54px;padding:0 24px;border-radius:999px;background:#FFFFFF;font-size:16px;font-weight:600;color:#0A0A0A;transition:background .25s ${EASE}}\n.fnc .bt svg{width:16px;height:16px;transition:transform .25s ${EASE}}\n.fnc:hover .cv img{transform:scale(1.03)}\n.fnc:hover .tt{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:#0A66FF}\n.fnc:focus-visible{outline:2px solid #0A66FF;outline-offset:4px}\n@media (max-width:809.98px){.fnc .cv{border-radius:20px}.fnc .tt{font-size:18px}}\n/* Feature layout */\n.fnc.feature,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:0;background:#F3F3F3;overflow:hidden}\n.fnc.feature .cv,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .cv{aspect-ratio:auto;height:100%;min-height:520px;border-radius:0}\n.fnc.feature .tx,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .tx{padding:48px;gap:18px}\n.fnc.feature .eb,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .eb{color:#0A66FF}\n.fnc.feature .lt,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .lt{display:inline}\n.fnc.feature .nw,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .nw{display:none}\n.fnc.feature .tt,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .tt{font-size:40px;font-weight:800;line-height:1.05;letter-spacing:-.025em}\n.fnc.feature .sm,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .sm{display:block}\n.fnc.feature .mn,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .mn{margin-top:auto}\n.fnc.feature .bt,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .bt{display:inline-flex}\n.fnc.feature:hover .bt,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc:hover .bt{background:#FAFAFA}\n.fnc.feature:hover .bt svg,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc:hover .bt svg{transform:translateX(4px)}\n.fnc.feature:hover .tt,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc:hover .tt{text-decoration:none}\n@media (max-width:1279.98px){\n .fnc.feature .cv,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .cv{min-height:420px}\n .fnc.feature .tx,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .tx{padding:36px}\n .fnc.feature .tt,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .tt{font-size:34px}\n}\n@media (max-width:809.98px){\n .fnc.feature,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc{grid-template-columns:minmax(0,1fr);border-radius:20px}\n .fnc.feature .cv,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .cv{aspect-ratio:4/3;min-height:0;height:auto}\n .fnc.feature .tx,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .tx{padding:24px;gap:14px}\n .fnc.feature .tt,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .tt{font-size:28px}\n .fnc.feature .sm,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .sm{font-size:16px}\n .fnc.feature .mn,[data-framer-name=\"Field Notes grid\"]>:only-child .fnc .mn{margin-top:0}\n /* Homepage on a phone: the newest stays a full card, the next two become compact rows. */\n [data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;padding:16px 0;border-radius:0;border-bottom:1px solid rgba(10,10,10,.08)}\n [data-framer-name=\"Field Notes grid\"]>:nth-child(2) .fnc{border-top:1px solid rgba(10,10,10,.08)}\n [data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc .cv{aspect-ratio:1/1;border-radius:12px}\n [data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc .cv .pl{display:none}\n [data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc .tx{gap:4px}\n [data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc .tt{font-size:16px;line-height:1.3}\n [data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc .mn{display:none}\n}\n/* Only the newest card on the homepage can carry NEW. */\n[data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc .nw{display:none}\n[data-framer-name=\"Field Notes grid\"]>:not(:first-child) .fnc .eb.new{color:#767676}\n@media (prefers-reduced-motion:reduce){.fnc *{transition:none!important}.fnc:hover .cv img{transform:none}}\n`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 400\n */export default function IssueCard(props){const{title=\"\",date=\"\",summary=\"\",image,alt=\"\",minutes=0,slug=\"\",layout=\"card\",markNew=false,style}=props;const isNew=useIsNew(date)&&markNew&&layout!==\"feature\";const src=imgSrc(image);const label=monthYear(date);const Heading=layout===\"feature\"?\"h2\":\"h3\";return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsxs(\"a\",{className:\"fnc\"+(layout===\"feature\"?\" feature\":\"\"),href:issueHref(slug),\"data-fn-card\":\"\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"cv\",children:src?/*#__PURE__*/_jsx(\"img\",{src:src,alt:alt||\"\",loading:\"lazy\",decoding:\"async\"}):/*#__PURE__*/_jsx(\"span\",{className:\"pl\",role:alt?\"img\":undefined,\"aria-label\":alt||undefined,children:\"Photo \\xb7 issue cover\"})}),/*#__PURE__*/_jsxs(\"span\",{className:\"tx\",children:[/*#__PURE__*/_jsxs(\"span\",{className:\"eb\"+(isNew?\" new\":\"\"),children:[isNew?/*#__PURE__*/_jsx(\"span\",{className:\"nw\",children:\"New \\xb7 \"}):null,/*#__PURE__*/_jsx(\"span\",{className:\"lt\",children:\"Latest issue \\xb7 \"}),label]}),/*#__PURE__*/_jsx(Heading,{className:\"tt\",children:title}),summary?/*#__PURE__*/_jsx(\"span\",{className:\"sm\",children:summary}):null,minutes?/*#__PURE__*/_jsxs(\"span\",{className:\"mn\",children:[minutes,\" min read\"]}):null,/*#__PURE__*/_jsxs(\"span\",{className:\"bt\",children:[\"Read the issue\",/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h13\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m12 5 7 7-7 7\"})]})]})]})]})]});}IssueCard.displayName=\"Issue card\";addPropertyControls(IssueCard,{layout:{type:ControlType.Enum,title:\"Layout\",options:[\"card\",\"feature\",\"home\"],optionTitles:[\"Card\",\"Feature (latest issue)\",\"Home (auto)\"],defaultValue:\"card\"},markNew:{type:ControlType.Boolean,title:\"Mark NEW\",defaultValue:false,description:\"Blue “New \\xb7” for 30 days after the issue date.\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"[Issue headline]\"},slug:{type:ControlType.String,title:\"Slug\"},date:{type:ControlType.Date,title:\"Issue date\"},summary:{type:ControlType.String,title:\"Summary\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Cover\"},alt:{type:ControlType.String,title:\"Cover alt\"},minutes:{type:ControlType.Number,title:\"Reading time\",min:0,max:60,step:1,defaultValue:5}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IssueCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,wOA4EG,SAAwBW,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,GAAG,OAAK,GAAG,UAAQ,GAAG,QAAM,MAAI,GAAG,UAAQ,EAAE,OAAK,GAAG,SAAO,OAAO,UAAQ,GAAM,SAAOC,EAAYC,EAAMH,EAASI,CAAI,GAAGC,GAASC,IAAS,UAAgBC,EAAIR,EAAOS,CAAK,EAAQC,EAAMb,EAAUQ,CAAI,EAAQM,EAAQJ,IAAS,UAAU,KAAK,KAAK,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,GAAGK,EAAM,MAAM,MAAM,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASC,CAAG,CAAC,EAAe,gBAAM,IAAI,CAAC,UAAU,OAAON,IAAS,UAAU,WAAW,IAAI,KAAKT,EAAUgB,CAAI,EAAE,eAAe,GAAG,SAAS,CAAc,gBAAK,OAAO,CAAC,UAAU,KAAK,SAASN,EAAiB,gBAAK,MAAM,CAAK,MAAI,IAAIO,GAAK,GAAG,QAAQ,OAAO,SAAS,OAAO,CAAC,EAAe,gBAAK,OAAO,CAAC,UAAU,KAAK,KAAKA,EAAI,MAAM,IAAA,GAAU,aAAaA,GAAK,IAAA,GAAU,SAAS,qBAAwB,CAAC,CAAC,CAAC,EAAe,gBAAM,OAAO,CAAC,UAAU,KAAK,SAAS,CAAc,gB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