{"version":3,"file":"FieldNoteRecord.CHmlAvt_.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_CaDWdxiz","ControlType","href","v","FieldNoteRecord","data","p","init_FieldNoteRecord"],"sources":["https:/framerusercontent.com/modules/i73meUQ00wqcGSpZnsr2/aAQw07xT77eEXZOfE3L0/FieldNoteRecord.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function href(v){return typeof v===\"string\"?v:v?.href||\"\";}/** @framerSupportedLayoutWidth any *//** @framerSupportedLayoutHeight fixed */export default function FieldNoteRecord(p){const data={...p,slug:href(p.postLink),image:typeof p.image===\"string\"?p.image:p.image?.src||\"\",style:undefined,postLink:href(p.postLink),stationLink:href(p.stationLink),link:href(p.link),ctaLink:href(p.ctaLink),connections:Array.isArray(p.connections)?p.connections:[]};if(p.speciesFor)return /*#__PURE__*/_jsx(\"span\",{\"data-field-species\":JSON.stringify({for:href(p.speciesFor),label:p.speciesLabel}),\"aria-hidden\":\"true\",style:{display:\"none\"}});if(p.connectionFor)return /*#__PURE__*/_jsx(\"span\",{\"data-field-link\":JSON.stringify({from:href(p.connectionFor),to:href(p.postLink)}),\"aria-hidden\":\"true\",style:{display:\"none\"}});return /*#__PURE__*/_jsx(\"span\",{\"data-field-record\":JSON.stringify(data),\"aria-hidden\":\"true\",style:{...p.style,display:\"none\"}});}addPropertyControls(FieldNoteRecord,{speciesFor:{type:ControlType.Link,title:\"Species for\"},speciesLabel:{type:ControlType.String,title:\"Species label\"},postLink:{type:ControlType.Link,title:\"Post link\"},stationLink:{type:ControlType.Link,title:\"Station link\"},connectionFor:{type:ControlType.Link,title:\"Connection for\"},headline:{type:ControlType.String,title:\"Headline\"},slug:{type:ControlType.String,title:\"Slug\"},date:{type:ControlType.String,title:\"Date\"},author:{type:ControlType.String,title:\"Author\"},authorSlug:{type:ControlType.String,title:\"Author slug\"},station:{type:ControlType.String,title:\"Field station\"},stationSlug:{type:ControlType.String,title:\"Station slug\"},program:{type:ControlType.String,title:\"Program\"},programSlug:{type:ControlType.String,title:\"Program slug\"},image:{type:ControlType.Image,title:\"Image\"},imageAlt:{type:ControlType.String,title:\"Image description\"},primary:{type:ControlType.String,title:\"Primary species\"},blurb:{type:ControlType.String,title:\"Blurb\"},link:{type:ControlType.Link,title:\"Optional link\"},linkLabel:{type:ControlType.String,title:\"Link label\"},ctaLabel:{type:ControlType.String,title:\"CTA label\"},ctaLink:{type:ControlType.Link,title:\"CTA destination\"},connections:{type:ControlType.Array,title:\"Connections\",control:{type:ControlType.Object,controls:{target:{type:ControlType.String,title:\"Update slug\"}}}},context:{type:ControlType.String,title:\"Connection context\"},sample:{type:ControlType.Boolean,title:\"Sample entry\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FieldNoteRecord\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FieldNoteRecord.map"],"mappings":"A,4JAA+F,SAASM,EAAK,EAAE,CAAC,OAAO,OAAOC,GAAI,SAASA,EAAEA,GAAG,MAAM,EAAG,CAAgF,SAAwBC,EAAgB,EAAE,CAAC,IAAMC,EAAK,CAAC,GAAGC,EAAE,KAAKJ,EAAKI,EAAE,QAAQ,EAAE,MAAM,OAAOA,EAAE,OAAQ,SAASA,EAAE,MAAMA,EAAE,OAAO,KAAK,GAAG,MAAM,IAAA,GAAU,SAASJ,EAAKI,EAAE,QAAQ,EAAE,YAAYJ,EAAKI,EAAE,WAAW,EAAE,KAAKJ,EAAKI,EAAE,IAAI,EAAE,QAAQJ,EAAKI,EAAE,OAAO,EAAE,YAAY,MAAM,QAAQA,EAAE,WAAW,EAAEA,EAAE,YAAY,CAAC,CAAC,EAAyW,OAApWA,EAAE,WAA+B,gBAAK,OAAO,CAAC,qBA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