{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ASOWhqHMiev6F4S8FJyy/UuuS2jNcMFZZLY8iczNy/Strobl.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";const isBrowser=typeof window!==\"undefined\";const useWindowSize=(initialWidth=Infinity,initialHeight=Infinity)=>{const[state,setState]=useState({width:isBrowser?window.innerWidth:initialWidth,height:isBrowser?window.innerHeight:initialHeight});useEffect(()=>{if(isBrowser){const handler=()=>{setState({width:window.innerWidth,height:window.innerHeight});};window.addEventListener(\"resize\",handler);return()=>{window.removeEventListener(\"resize\",handler);};}},[]);return state;};// forces an image to a specific size\nfunction forceImageResize(img,scaleSize){if(img.src){const srcURL=new URL(img.src);img.src=`${srcURL.origin}${srcURL.pathname}?scale-down-to=${scaleSize}`;}}function getFullSizeSrc(str){const srcURL=new URL(str);return`${srcURL.origin}${srcURL.pathname}`;}export function withForcedImageSize(Component){return props=>{const ref=useRef(null);const{width}=useWindowSize();useEffect(()=>{if(ref.current){const childImages=ref.current.querySelectorAll(\"img\");childImages.forEach(img=>{forceImageResize(img,512);});}},[width]);return /*#__PURE__*/ _jsx(Component,{ref:ref,...props});};}export function withBiggerContentImages(Component){return props=>{const ref=useRef(null);const{width}=useWindowSize();useEffect(()=>{if(ref.current){const childImages=ref.current.querySelectorAll(\"img\");childImages.forEach(img=>{if(width>809){img.style.maxWidth=\"initial\";img.style.transform=\"translateX(-60px)\";img.style.width=\"calc(100% + 120px)\";forceImageResize(img,1024);}else{img.style.maxWidth=\"initial\";img.style.transform=\"translateX(-30px)\";img.style.width=\"calc(100% + 60px)\";forceImageResize(img,512);}img.style.cursor=\"pointer\";img.onclick=()=>{const url=getFullSizeSrc(img.getAttribute(\"src\"));window.open(url,\"_blank\");};});}},[width]);return /*#__PURE__*/ _jsx(Component,{ref:ref,...props});};}export function withHyphentation(Component){return props=>{const{width}=useWindowSize();return /*#__PURE__*/ _jsx(Component,{...props,style:{hyphens:width<809?\"auto\":\"initial\"}});};}export function withSVGCursorPointer(Component){return props=>{const{width}=useWindowSize();useEffect(()=>{// need to use setTimeout, otherwise the svg doesnt exist yet for some reason\nsetTimeout(()=>{const children=document.querySelectorAll(\".withCursorPointer svg\");children.forEach(c=>{const child=c;if(width>809){child.style.cursor=\"pointer\";}else{child.style.cursor=\"default\";}});},1);},[width]);return /*#__PURE__*/ _jsx(\"div\",{className:\"withCursorPointer\",style:{display:\"contents\"},children:/*#__PURE__*/ _jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withForcedImageSize\":{\"type\":\"reactHoc\",\"name\":\"withForcedImageSize\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBiggerContentImages\":{\"type\":\"reactHoc\",\"name\":\"withBiggerContentImages\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHyphentation\":{\"type\":\"reactHoc\",\"name\":\"withHyphentation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSVGCursorPointer\":{\"type\":\"reactHoc\",\"name\":\"withSVGCursorPointer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Strobl.map"],
  "mappings": "uGAAwF,IAAMA,EAAU,OAAOC,EAAS,IAAkBC,EAAc,CAACC,EAAa,IAASC,EAAc,MAAW,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEC,EAAS,CAAC,MAAMP,EAAUC,EAAO,WAAWE,EAAa,OAAOH,EAAUC,EAAO,YAAYG,CAAa,CAAC,EAAE,OAAAI,EAAU,IAAI,CAAC,GAAGR,EAAU,CAAC,IAAMS,EAAQ,IAAI,CAACH,EAAS,CAAC,MAAML,EAAO,WAAW,OAAOA,EAAO,WAAW,CAAC,CAAE,EAAE,OAAAA,EAAO,iBAAiB,SAASQ,CAAO,EAAQ,IAAI,CAACR,EAAO,oBAAoB,SAASQ,CAAO,CAAE,CAAE,CAAC,EAAE,CAAC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EAAEV,EAAO,KAAKuB,EAAI,QAAQ,CAAE,CAAE,CAAC,CAAG,EAAE,CAACH,CAAK,CAAC,EAAuBC,EAAKL,EAAU,CAAC,IAAIE,EAAI,GAAGD,CAAK,CAAC,CAAE,CAAE,CAAQ,SAASO,EAAiBR,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAAC,MAAAG,CAAK,EAAEnB,EAAc,EAAE,OAAqBoB,EAAKL,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,QAAQG,EAAM,IAAI,OAAO,SAAS,CAAC,CAAC,CAAE,CAAE,CAAQ,SAASK,EAAqBT,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAAC,MAAAG,CAAK,EAAEnB,EAAc,EAAE,OAAAM,EAAU,IAAI,CAC3iD,WAAW,IAAI,CAAgB,SAAS,iBAAiB,wBAAwB,EAAW,QAAQmB,GAAG,CAAC,IAAMC,EAAMD,EAAKN,EAAM,IAAKO,EAAM,MAAM,OAAO,UAAgBA,EAAM,MAAM,OAAO,SAAW,CAAC,CAAE,EAAE,CAAC,CAAE,EAAE,CAACP,CAAK,CAAC,EAAuBC,EAAK,MAAM,CAAC,UAAU,oBAAoB,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAuBA,EAAKL,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE",
  "names": ["isBrowser", "window", "useWindowSize", "initialWidth", "initialHeight", "state", "setState", "ye", "ue", "handler", "forceImageResize", "img", "scaleSize", "srcURL", "getFullSizeSrc", "str", "withForcedImageSize", "Component", "props", "ref", "pe", "width", "p", "withBiggerContentImages", "url", "withHyphentation", "withSVGCursorPointer", "c", "child"]
}
