{"version":3,"file":"Container.US87SmTD.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/etNYdVnKyy1EyswLXKus/n5s0qjezM7AWswHciIRm/Container.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,forwardRef}from\"react\";// Learn more: https://www.framer.com/developers/overrides/\n// Tablet以上でコンテンツ幅を調整する\nexport function withFluidContainer(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[isMobile,setIsMobile]=useState(false);useEffect(()=>{const mq=window.matchMedia(\"(max-width: 767px)\");const handleChange=e=>{setIsMobile(e.matches);};handleChange(mq);mq.addEventListener(\"change\",handleChange);return()=>{mq.removeEventListener(\"change\",handleChange);};},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,...!isMobile&&{width:\"100%\",paddingInline:\"8.333%\",maxWidth:\"calc(clamp(1040px, 72.222vw, 1386px) + 16.666%)\"}}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withFluidContainer\":{\"type\":\"reactHoc\",\"name\":\"withFluidContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Container.map"],"mappings":"yIAEA,SAAgB,EAAmB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,GAAM,CAA8O,OAA7O,MAAc,CAAC,IAAM,EAAG,EAAO,WAAW,qBAAqB,CAAO,EAAa,GAAG,CAAC,EAAY,EAAE,QAAQ,EAA+D,OAA5D,EAAa,EAAG,CAAC,EAAG,iBAAiB,SAAS,EAAa,KAAW,CAAC,EAAG,oBAAoB,SAAS,EAAa,GAAK,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,GAAG,CAAC,GAAU,CAAC,MAAM,OAAO,cAAc,SAAS,SAAS,kDAAkD,CAAC,CAAC,CAAC,EAAG,sBAFxgB,IAAiD"}