{"version":3,"file":"Fullwidthchangelogembed.DBFpuKY4.mjs","names":["useState","useState"],"sources":["https:/framerusercontent.com/modules/yJbGbm3BPCpeCGvpBqbd/6EZCjJ8RdnlM4D7hPlCu/Changelog_item.js","https:/framerusercontent.com/modules/Xe0XzlRWtUvMNzR9mU9f/Uf9qQvnaoX48UomHiend/Fullwidthchangelogembed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,AnimatePresence}from\"framer-motion\";import{useState}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";function Changelog({entries=defaultEntries,accentColor=\"#6366f1\",backgroundColor=\"#ffffff\",textColor=\"#000000\",tagColors=defaultTagColors}){const isCanvas=RenderTarget.current()===RenderTarget.canvas;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"24px\",padding:\"20px 0\",boxSizing:\"border-box\",overflow:\"hidden\"},children:entries&&entries.length>0?entries.map((entry,index)=>/*#__PURE__*/_jsx(ChangelogEntry,{entry:entry,accentColor:accentColor,backgroundColor:backgroundColor,textColor:textColor,tagColors:tagColors,isCanvas:isCanvas},index)):/*#__PURE__*/_jsx(\"div\",{style:{padding:\"40px\",textAlign:\"center\",color:textColor,opacity:.5},children:\"Ingen entries enn\\xe5. Legg til din f\\xf8rste release!\"})});}Changelog.displayName=\"Changelog\";export default Changelog;function ChangelogEntry({entry,accentColor,backgroundColor,textColor,tagColors,isCanvas}){const[isOpen,setIsOpen]=useState(false);return /*#__PURE__*/_jsxs(motion.div,{style:{borderRadius:\"16px\",backgroundColor:backgroundColor,border:\"1px solid rgba(0,0,0,0.08)\",boxShadow:\"0 2px 8px rgba(0,0,0,0.04)\",width:\"100%\",boxSizing:\"border-box\",overflow:\"hidden\"},initial:isCanvas?false:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},children:[entry.image&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"200px\",overflow:\"hidden\",borderRadius:\"16px 16px 0 0\"},children:/*#__PURE__*/_jsx(\"img\",{src:entry.image,alt:entry.title||\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})}),/*#__PURE__*/_jsx(\"div\",{style:{padding:\"32px\",width:\"100%\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\",width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"12px\",alignItems:\"center\",flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{backgroundColor:accentColor,color:\"#ffffff\",padding:\"4px 12px\",borderRadius:\"20px\",fontSize:\"13px\",fontWeight:\"600\",letterSpacing:\"0.3px\"},children:entry.version||\"v 1.0.0\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"14px\",fontWeight:\"500\",color:textColor,opacity:.5},children:entry.date||\"Date\"})]}),/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"24px\",fontWeight:\"600\",margin:0,color:textColor,lineHeight:\"1.3\",wordBreak:\"break-word\"},children:entry.title||\"Title\"}),entry.tags&&entry.tags.length>0&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"8px\",flexWrap:\"wrap\"},children:entry.tags.map((tag,idx)=>/*#__PURE__*/_jsx(\"span\",{style:{backgroundColor:tagColors[tag]?.bg||\"rgba(0,0,0,0.06)\",color:tagColors[tag]?.text||textColor,padding:\"4px 10px\",borderRadius:\"6px\",fontSize:\"12px\",fontWeight:\"500\"},children:tag},idx))}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"16px\",lineHeight:\"1.6\",margin:0,color:textColor,opacity:.7,wordBreak:\"break-word\"},children:entry.description||\"Description\"}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isOpen&&entry.fullContent&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:\"easeInOut\"},style:{overflow:\"hidden\",width:\"100%\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"div\",{style:{paddingTop:\"16px\",fontSize:\"15px\",lineHeight:\"1.7\",color:textColor,opacity:.8,borderTop:\"1px solid rgba(0,0,0,0.08)\",marginTop:\"8px\",wordBreak:\"break-word\",overflowWrap:\"break-word\"},children:entry.fullContent})})}),entry.fullContent&&/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setIsOpen(!isOpen),style:{background:\"transparent\",border:\"none\",color:accentColor,fontSize:\"15px\",fontWeight:\"500\",cursor:\"pointer\",padding:\"8px 0\",display:\"flex\",alignItems:\"center\",gap:\"6px\",marginTop:\"4px\",width:\"fit-content\"},children:[isOpen?\"Show less\":\"Read more\",/*#__PURE__*/_jsx(motion.svg,{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",animate:{rotate:isOpen?180:0},transition:{duration:.3},children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 6L8 10L12 6\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]})]})})]});}// Default tag colors\nconst defaultTagColors={Features:{bg:\"#dbeafe\",text:\"#1e40af\"},\"Bug Fixes\":{bg:\"#fee2e2\",text:\"#991b1b\"},UI:{bg:\"#fce7f3\",text:\"#9f1239\"},Performance:{bg:\"#dcfce7\",text:\"#166534\"},Security:{bg:\"#fef3c7\",text:\"#92400e\"},Documentation:{bg:\"#e0e7ff\",text:\"#3730a3\"}};// Default data\nconst defaultEntries=[{version:\"v 1.0.0\",date:\"Jan 1, 2024\",title:\"Din f\\xf8rste release\",tags:[\"Features\"],description:\"En kort beskrivelse av oppdateringen som vises umiddelbart...\",fullContent:\"Her kan du skrive mer detaljert informasjon om releasen som vises n\\xe5r brukeren klikker p\\xe5 'Read more'. Beskriv alle features, forbedringer og endringer i detalj.\",image:\"https://framerusercontent.com/images/M5xwcLrqGhHwJiOtt8ZXUORoa3c.jpg\"}];// Framer property controls\naddPropertyControls(Changelog,{entries:{type:ControlType.Array,title:\"Entries\",maxCount:20,control:{type:ControlType.Object,controls:{version:{type:ControlType.String,title:\"Version\",defaultValue:\"v 1.0.0\"},date:{type:ControlType.String,title:\"Date\",defaultValue:\"Jan 1, 2024\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"New Feature\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"Short description of the update...\"},fullContent:{type:ControlType.String,title:\"Full Content\",displayTextArea:true,defaultValue:\"Full release notes content...\"},tags:{type:ControlType.Array,title:\"Tags\",maxCount:6,control:{type:ControlType.Enum,options:[\"Features\",\"Bug Fixes\",\"UI\",\"Performance\",\"Security\",\"Documentation\"],defaultValue:\"Features\"},defaultValue:[\"Features\"]},image:{type:ControlType.Image,title:\"Image\"}}},defaultValue:defaultEntries},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#6366f1\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#ffffff\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Changelog\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Changelog_item.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function fullWidthOnEmbed(Component){return props=>{const[isEmbed,setIsEmbed]=useState(false);useEffect(()=>{const params=new URLSearchParams(window.location.search);setIsEmbed(params.get(\"embed\")===\"true\");},[]);const style=isEmbed?{width:\"100%\",maxWidth:\"100%\"}:{};return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,...style}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"fullWidthOnEmbed\":{\"type\":\"reactHoc\",\"name\":\"fullWidthOnEmbed\",\"annotations\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