{"version":3,"file":"shared-lib.CSss69AW.mjs","names":["React.useState","p","fonts","css","className"],"sources":["https:/framerusercontent.com/modules/fLsWEBZX2gXz75aP04Ub/ANn9UIxJqv9jtdVk16Zq/Time.js","https:/framerusercontent.com/modules/aK5vL9oUbs3zSMyneoGp/Cc6sxwpRzTzQhQ9sx9wZ/F5vuhbwZo.js","https:/framerusercontent.com/modules/99F0EnxUcEeqG22e2pJ1/pH3OzR9Qc97bJPNnQ38W/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\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"PP Neue Montreal Mono Regular\",source:\"custom\",url:\"https://framerusercontent.com/assets/Nn1UwcSET6hF81yCfWv4ZjzJw.woff2\"}]}];export const css=['.framer-4ivhb .framer-styles-preset-1cv0ek9:not(.rich-text-wrapper), .framer-4ivhb .framer-styles-preset-1cv0ek9.rich-text-wrapper p { --framer-font-family: \"PP Neue Montreal Mono Regular\", monospace; --framer-font-open-type-features: normal; --framer-font-size: calc(var(--framer-root-font-size, 1rem) * 0.6); --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0.01em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: var(--token-511d9ff9-3733-4cbd-b1fa-cab4da069c7e, #181818); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-4ivhb\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// 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":"wUAAyI,SAAS,EAAS,EAAG,EAAO,EAAY,CAAC,GAAK,CAAC,EAAK,GAASA,EAAe,KAAK,CACyF,OADxF,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAU,IAAI,KAAK,eAAe,GAAQ,QAAQ,CAAC,SAAS,EAAG,KAAK,UAAU,OAAO,UAAU,OAAO,EAAY,UAAU,IAAA,GAAU,OAAO,GAAM,CAAC,CAAO,MAAW,CAAC,EAAQ,EAAU,OAAO,IAAI,KAAK,CAAC,EACte,GAAQ,CAAC,IAAM,EAAW,EAAY,IAAI,IAAU,EAAG,EAAO,YAAY,EAAO,EAAW,CAAO,MAAQ,CAAK,SAAS,QAAO,GAAQ,EA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