{"version":3,"file":"shared-lib.B-qHFre2.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/fLsWEBZX2gXz75aP04Ub/ANn9UIxJqv9jtdVk16Zq/Time.js","https:/framerusercontent.com/modules/nmlRd112jk08ojyartjX/pB7h8aX19IeWcIa2wF03/Wy2Ji_Fuu.js","https:/framerusercontent.com/modules/jTGRTixm4mJRgqR0EQev/fNNacjwCSS0gOeC7QnSn/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function useClock(tz,locale,showSeconds){const[time,setTime]=React.useState(null);React.useEffect(()=>{if(typeof window===\"undefined\")return;const formatter=new Intl.DateTimeFormat(locale||\"sv-SE\",{timeZone:tz,hour:\"2-digit\",minute:\"2-digit\",second:showSeconds?\"2-digit\":undefined,hour12:false});const update=()=>{setTime(formatter.format(new Date));};// set immediately on mount\nupdate();const intervalMs=showSeconds?1e3:6e4;const id=window.setInterval(update,intervalMs);const vis=()=>{if(!document.hidden)update();};document.addEventListener(\"visibilitychange\",vis);return()=>{window.clearInterval(id);document.removeEventListener(\"visibilitychange\",vis);};},[tz,locale,showSeconds]);return time;}export default function SwedenTime({timeZone=\"Europe/Stockholm\",locale=\"sv-SE\",showSeconds=false,showDate=false,dateStyle=\"short\",locationLabel=\"V\\xc4STER\\xc5S, SWEDEN\",onNewLine=false,fontFamily=\"Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif\",fontWeight=500,fontSizeRem=1.1,letterSpacingEm=0,lineHeight=1.1,uppercase=true,textAlign=\"left\",color=\"#111111\",tabularNums=true}){const time=useClock(timeZone,locale,showSeconds);const displayedTime=time??\"– – : – –\";const date=showDate?new Intl.DateTimeFormat(locale||\"sv-SE\",{timeZone:timeZone,dateStyle:dateStyle}).format(new Date):null;const label=uppercase?locationLabel.toUpperCase():locationLabel;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:onNewLine?\"start\":\"center\",justifyContent:textAlign===\"left\"?\"flex-start\":textAlign===\"right\"?\"flex-end\":\"center\",color,fontFamily,fontWeight,fontSize:`${fontSizeRem}rem`,letterSpacing:`${letterSpacingEm}em`,lineHeight,textTransform:uppercase?\"none\":\"none\",// keep digits from shifting width if the font supports it\nfontVariantNumeric:tabularNums?\"tabular-nums lining-nums\":\"normal\",textAlign,whiteSpace:\"pre-wrap\"},\"aria-label\":`Local time in ${locationLabel}`,title:`${label} ${displayedTime}${date?\" \\xb7 \"+date:\"\"}`,children:onNewLine?/*#__PURE__*/_jsxs(\"div\",{style:{textAlign},children:[/*#__PURE__*/_jsx(\"div\",{children:label}),/*#__PURE__*/_jsx(\"div\",{children:displayedTime}),date?/*#__PURE__*/_jsx(\"div\",{style:{opacity:.7},children:date}):null]}):/*#__PURE__*/_jsxs(\"div\",{style:{textAlign},children:[/*#__PURE__*/_jsx(\"span\",{children:label}),/*#__PURE__*/_jsx(\"span\",{children:`  ${displayedTime}`}),date?/*#__PURE__*/_jsx(\"span\",{style:{opacity:.7},children:`  \\xb7  ${date}`}):null]})});}addPropertyControls(SwedenTime,{// Data\ntimeZone:{type:ControlType.String,title:\"Time Zone\",defaultValue:\"Europe/Stockholm\",displayTextArea:false},locale:{type:ControlType.String,title:\"Locale\",defaultValue:\"sv-SE\"},showSeconds:{type:ControlType.Boolean,title:\"Show seconds\",defaultValue:false},showDate:{type:ControlType.Boolean,title:\"Show date\",defaultValue:false},dateStyle:{type:ControlType.Enum,title:\"Date style\",options:[\"short\",\"medium\",\"long\"],optionTitles:[\"Short\",\"Medium\",\"Long\"],defaultValue:\"short\",hidden:p=>!p.showDate},locationLabel:{type:ControlType.String,title:\"Label\",defaultValue:\"V\\xc4STER\\xc5S, SWEDEN\"},onNewLine:{type:ControlType.Boolean,title:\"Label on new line\",defaultValue:false},// Style\nfontFamily:{type:ControlType.String,title:\"Font family\",defaultValue:\"Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif\"},fontWeight:{type:ControlType.Number,title:\"Weight\",min:100,max:1e3,step:50,defaultValue:500},fontSizeRem:{type:ControlType.Number,title:\"Font size (rem)\",min:.6,max:6,step:.05,defaultValue:1.1},letterSpacingEm:{type:ControlType.Number,title:\"Tracking (em)\",min:-.1,max:.3,step:.005,defaultValue:0},lineHeight:{type:ControlType.Number,title:\"Line height\",min:.8,max:2,step:.05,defaultValue:1.1},uppercase:{type:ControlType.Boolean,title:\"Uppercase label\",defaultValue:true},textAlign:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#111111\"},tabularNums:{type:ControlType.Boolean,title:\"Tabular digits\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SwedenTime\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Time.map","// Generated by Framer (26c37fd)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOM;PP Neue Montreal Mono Regular\",\"CUSTOM;PP Neue Montreal Mono Regular Italic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"PP Neue Montreal Mono Regular\",source:\"custom\",url:\"https://framerusercontent.com/assets/Nn1UwcSET6hF81yCfWv4ZjzJw.woff2\"},{family:\"PP Neue Montreal Mono Regular Italic\",source:\"custom\",url:\"https://framerusercontent.com/assets/7vy6aYborGI5BFejEAUNKKtQqR8.woff2\"}]}];export const css=['.framer-6YFgv .framer-styles-preset-9yz1u4:not(.rich-text-wrapper), .framer-6YFgv .framer-styles-preset-9yz1u4.rich-text-wrapper p { --framer-font-family: \"PP Neue Montreal Mono Regular\", monospace; --framer-font-family-italic: \"PP Neue Montreal Mono Regular Italic\", monospace; --framer-font-open-type-features: normal; --framer-font-size: calc(var(--framer-root-font-size, 1rem) * 0.75); --framer-font-style: normal; --framer-font-style-italic: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-italic: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: var(--token-511d9ff9-3733-4cbd-b1fa-cab4da069c7e, #030303); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-6YFgv\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (cd22f02)\nexport default function metadata(params,activeLocale){return{description:\"A creative studio by Henrik & Sofia based in Sweden. We shape brands, campaigns and experiences through storytelling, design and technology.\",favicon:\"https://framerusercontent.com/assets/xtIt9n2pdn5iNCRNfpnIzH3NtM.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/EwZjLTxAyYdpJkqhZRGZsESXGf4.png\",title:\"HAS.WORKS – Small Studio. Big Work.\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"6MAAyI,SAAS,EAAS,EAAG,EAAO,EAAY,CAAC,GAAK,CAAC,EAAK,GAASA,EAAe,IAAI,EAC0F,OADxF,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAU,IAAI,KAAK,eAAe,GAAQ,QAAQ,CAAC,SAAS,EAAG,KAAK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