{"version":3,"file":"ClientLogos.BUTuOSyD.mjs","names":["useState","useRef","c"],"sources":["https:/framerusercontent.com/modules/IW8uoqwA9ifo6sW9rY72/OPsXMiCjjaEEd5Wrn0k6/ClientLogos.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useEffect,useRef,useState}from\"react\";const BG={offwhite:\"var(--mp-offwhite, #FAFBFC)\",paper:\"var(--mp-paper, #F1F5F8)\",mist:\"var(--mp-mist, #E8F5FC)\",white:\"var(--mp-surface, #FFFFFF)\"};const CSS=`\n.mpcl-root{width:100%;position:relative}\n.mpcl-outer{container-type:inline-size;container-name:mpcl;width:100%}\n.mpcl{width:100%;box-sizing:border-box;padding:clamp(56px,8cqw,110px) clamp(20px,5cqw,60px)}\n.mpcl-in{max-width:1120px;margin:0 auto;display:flex;flex-direction:column;\n  gap:clamp(28px,4cqw,48px)}\n.mpcl-head{max-width:640px}\n.mpcl-h{font-family:'Inter Tight',sans-serif;font-size:clamp(26px,3.4cqw,40px);\n  font-weight:600;letter-spacing:-.035em;line-height:1.08;color:var(--mp-ink,#101820);margin:0}\n.mpcl-lede{font-family:Inter,sans-serif;font-size:clamp(14.5px,1.4cqw,16.5px);\n  line-height:1.65;color:var(--mp-muted,#5E7180);margin:14px 0 0}\n.mpcl-grid{display:grid;gap:16px;\n  grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}\n.mpcl-grid .mpcl-item{display:flex;flex-direction:column;justify-content:center;\n  gap:7px;min-height:114px;box-sizing:border-box;padding:22px 24px;\n  border-radius:14px;border:1px solid var(--mp-border,#E2E8ED);background:var(--mp-surface,#fff)}\n.mpcl-mark{font-family:'Inter Tight',sans-serif;font-size:21px;font-weight:600;\n  letter-spacing:-.02em;color:var(--mp-ink,#101820);margin:0}\n.mpcl-ind{font-family:Inter,sans-serif;font-size:11px;font-weight:600;\n  letter-spacing:.17em;text-transform:uppercase;color:var(--mp-faint,#7E93A4);margin:0}\n.mpcl-grid .mpcl-item img{max-width:100%;max-height:54px;width:auto;\n  height:auto;object-fit:contain;display:block;filter:grayscale(1);opacity:.78}\n/* Marquee. Items carry their trailing space as padding rather than the track\n   using gap, so the duplicated half is exactly 50% of the track width and the\n   loop has no seam. The global reduced-motion rule collapses the animation,\n   which lands on the second half: identical content, so it reads as a static\n   row rather than breaking. */\n.mpcl-mq{position:relative;overflow:hidden;\n  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);\n  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}\n.mpcl-track{display:flex;align-items:center;width:max-content;\n  animation:mpcl-scroll linear infinite}\n.mpcl-mq:hover .mpcl-track{animation-play-state:paused}\n@keyframes mpcl-scroll{\n  from{transform:translate3d(0,0,0)}\n  to{transform:translate3d(-50%,0,0)}\n}\n.mpcl-track .mpcl-item{display:flex;align-items:center;justify-content:center;\n  padding-right:clamp(40px,5cqw,80px);white-space:nowrap}\n.mpcl-word{font-family:'Inter Tight',sans-serif;\n  font-size:clamp(19px,2.2cqw,27px);font-weight:600;letter-spacing:-.024em;\n  color:var(--mp-faint,#7E93A4);transition:color .3s}\n.mpcl-track .mpcl-item:hover .mpcl-word{color:var(--mp-ink,#101820)}\n.mpcl-track .mpcl-item img{max-height:48px;width:auto;display:block;\n  filter:grayscale(1);opacity:.7;transition:filter .3s,opacity .3s}\n.mpcl-track .mpcl-item:hover img{filter:grayscale(0);opacity:1}\n/* Full colour when the Monochrome toggle is off. This used to be an inline\n   style, which also beat the hover rule above and every dark mode rule. */\n.mpcl-color .mpcl-item img{filter:none;opacity:1}\n/* Dark mode. Logos are transparent PNGs, so a white-box logo no longer shows\n   as a grey tile, but dark ink (Royals navy, United Rentals grey) vanished on\n   the dark ground. Keyed to the site toggle (html[data-theme]), not the OS\n   setting, same as SiteStyles. Greyscale then invert turns dark ink light and keeps the\n   inner detail a flat white silhouette would fill in (Bass Pro's oval). */\nhtml[data-theme=\"dark\"] .mpcl-item img{filter:grayscale(1) invert(1) !important;opacity:.82}\nhtml[data-theme=\"dark\"] .mpcl-item:hover img{opacity:1}\n/* Pause control. Moving content that runs longer than five seconds needs a\n   way to stop it that does not depend on hovering, which touch and keyboard\n   users do not have. Hidden under reduced motion, where nothing is moving. */\n.mpcl-mqwrap{display:flex;flex-direction:column;gap:12px}\n.mpcl-pause{align-self:flex-end;display:inline-flex;align-items:center;gap:7px;\n  min-height:44px;padding:0 14px;border-radius:100px;cursor:pointer;\n  background:transparent;border:1px solid var(--mp-border,#E2E8ED);\n  font-family:Inter,sans-serif;font-size:12.5px;font-weight:600;\n  letter-spacing:.02em;color:var(--mp-muted,#5E7180);\n  transition:color .22s ease,border-color .22s ease,background-color .22s ease}\n.mpcl-pause:hover{color:var(--mp-ink,#101820);border-color:var(--mp-border-strong,#C9DEEA);background:var(--mp-surface,#FFFFFF)}\n.mpcl-pause svg{display:block;flex:0 0 auto}\n@media (prefers-reduced-motion: reduce){.mpcl-pause{display:none}}\n.mpcl-note{font-family:Inter,sans-serif;font-size:12.5px;line-height:1.6;\n  color:var(--mp-faint,#7E93A4);margin:0}\n.mpcl-empty{font-family:Inter,sans-serif;font-size:13px;color:var(--mp-faint,#7E93A4);margin:0}\n@container mpcl (max-width:640px){\n  .mpcl-grid{grid-template-columns:1fr 1fr;gap:12px}\n  .mpcl-grid .mpcl-item{min-height:88px;padding:18px}\n}\n`;export default function ClientLogos(props){const{display=\"grid\",speed=44,background=\"paper\",heading=\"\",lede=\"\",clients=[],showIndustry=true,monochrome=true,footnote=\"\",style}=props;const isStatic=useIsStaticRenderer();const[paused,setPaused]=useState(false);// A loop nobody can see is still a loop the device is compositing.\n// Off screen, the marquee stops.\nconst mqRef=useRef(null);const[onScreen,setOnScreen]=useState(true);useEffect(()=>{const el=mqRef.current;if(!el||typeof IntersectionObserver===\"undefined\")return;const io=new IntersectionObserver(([e])=>setOnScreen(e.isIntersecting),{rootMargin:\"120px\"});io.observe(el);return()=>io.disconnect();},[]);// Optical sizing: a wide wordmark and a compact mark at the same pixel\n// height do not read as the same size, so each logo carries its own scale.\nconst baseHeight=display===\"marquee\"?48:54;const logoStyle=c=>({maxHeight:`${baseHeight*(c.scale>0?c.scale:100)/100}px`});// Nothing publishes without per-name written permission.\nconst visible=clients.filter(c=>c&&c.approved&&c.name);return /*#__PURE__*/_jsxs(\"div\",{className:\"mpcl-root\"+(monochrome?\"\":\" mpcl-color\"),style:style,children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"mpcl-outer\",children:/*#__PURE__*/_jsx(\"section\",{className:\"mpcl\",style:{background:BG[background]||BG.paper},\"aria-label\":heading||\"Clients\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"mpcl-in\",children:[(heading||lede)&&/*#__PURE__*/_jsxs(\"div\",{className:\"mpcl-head\",children:[heading?/*#__PURE__*/_jsx(\"h2\",{className:\"mpcl-h\",children:heading}):null,lede?/*#__PURE__*/_jsx(\"p\",{className:\"mpcl-lede\",children:lede}):null]}),visible.length>0&&display===\"marquee\"?/*#__PURE__*/_jsxs(\"div\",{className:\"mpcl-mqwrap\",ref:mqRef,children:[/*#__PURE__*/_jsx(\"div\",{className:\"mpcl-mq\",children:/*#__PURE__*/_jsx(\"div\",{className:\"mpcl-track\",style:{animationDuration:`${Math.max(8,speed)}s`,animationPlayState:isStatic||paused||!onScreen?\"paused\":undefined},children:[...visible,...visible].map((c,i)=>{const src=typeof c.logo===\"string\"?c.logo:c.logo?.src;return /*#__PURE__*/_jsx(\"div\",{className:\"mpcl-item\",\"aria-hidden\":i>=visible.length?\"true\":undefined,children:src?/*#__PURE__*/_jsx(\"img\",{style:logoStyle(c),src:src,alt:typeof c.logo===\"string\"?c.name:c.logo?.alt||c.name}):/*#__PURE__*/_jsx(\"span\",{className:\"mpcl-word\",children:c.name})},i);})})}),/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"mpcl-pause\",onClick:()=>setPaused(p=>!p),children:[paused?/*#__PURE__*/_jsx(\"svg\",{width:\"11\",height:\"12\",viewBox:\"0 0 11 12\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1.5 1.2 9.8 6 1.5 10.8Z\",fill:\"currentColor\"})}):/*#__PURE__*/_jsxs(\"svg\",{width:\"11\",height:\"12\",viewBox:\"0 0 11 12\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"1.4\",y:\"1.2\",width:\"3\",height:\"9.6\",rx:\"1\",fill:\"currentColor\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"6.6\",y:\"1.2\",width:\"3\",height:\"9.6\",rx:\"1\",fill:\"currentColor\"})]}),paused?\"Play\":\"Pause\"]})]}):visible.length>0?/*#__PURE__*/_jsx(\"div\",{className:\"mpcl-grid\",children:visible.map((c,i)=>{const src=typeof c.logo===\"string\"?c.logo:c.logo?.src;return /*#__PURE__*/_jsxs(\"div\",{className:\"mpcl-item\",children:[src?/*#__PURE__*/_jsx(\"img\",{style:logoStyle(c),src:src,alt:typeof c.logo===\"string\"?c.name:c.logo?.alt||c.name}):/*#__PURE__*/_jsx(\"p\",{className:\"mpcl-mark\",children:c.name}),showIndustry&&c.industry?/*#__PURE__*/_jsx(\"p\",{className:\"mpcl-ind\",children:c.industry}):null]},i);})}):/*#__PURE__*/_jsx(\"p\",{className:\"mpcl-empty\",children:\"No approved clients to display yet.\"}),footnote?/*#__PURE__*/_jsx(\"p\",{className:\"mpcl-note\",children:footnote}):null]})})})]});}addPropertyControls(ClientLogos,{display:{type:ControlType.Enum,title:\"Display\",options:[\"grid\",\"marquee\"],optionTitles:[\"Grid\",\"Marquee\"],defaultValue:\"grid\"},speed:{type:ControlType.Number,title:\"Loop time\",min:8,max:180,step:1,unit:\"s\",defaultValue:44,hidden:p=>p.display!==\"marquee\"},background:{type:ControlType.Enum,title:\"Background\",options:[\"offwhite\",\"paper\",\"mist\",\"white\"],optionTitles:[\"Off White\",\"Paper\",\"Mist\",\"White\"],defaultValue:\"paper\"},heading:{type:ControlType.String,title:\"Heading\",displayTextArea:true,defaultValue:\"Trusted across Kansas City.\"},lede:{type:ControlType.String,title:\"Lede\",displayTextArea:true,defaultValue:\"\"},clients:{type:ControlType.Array,title:\"Clients\",description:\"Nothing renders unless Approved is on. Customer names require written permission per name.\",control:{type:ControlType.Object,controls:{name:{type:ControlType.String,title:\"Name\",defaultValue:\"Client\"},logo:{type:ControlType.ResponsiveImage,title:\"Logo\"},industry:{type:ControlType.String,title:\"Industry\",defaultValue:\"\"},scale:{type:ControlType.Number,title:\"Scale\",description:\"Optical size relative to the others. Lower for wide wordmarks, higher for compact marks.\",min:40,max:200,step:5,unit:\"%\",defaultValue:100},approved:{type:ControlType.Boolean,title:\"Approved\",defaultValue:false}}},defaultValue:[]},monochrome:{type:ControlType.Boolean,title:\"Monochrome\",description:\"Greyscale with colour on hover. Turn off for full colour.\",defaultValue:true},showIndustry:{type:ControlType.Boolean,title:\"Show industry\",defaultValue:true,hidden:p=>p.display===\"marquee\"},footnote:{type:ControlType.String,title:\"Footnote\",displayTextArea:true,defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ClientLogos\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ClientLogos.map"],"mappings":"uMA4EE,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAO,QAAM,GAAG,aAAW,QAAQ,UAAQ,GAAG,OAAK,GAAG,UAAQ,CAAC,EAAE,eAAa,GAAK,aAAW,GAAK,WAAS,GAAG,SAAO,EAAY,EAAS,EAAoB,EAAO,CAAC,EAAO,GAAWA,EAAS,EAAK,EAE5P,EAAMC,EAAO,IAAI,EAAO,CAAC,EAAS,GAAaD,EAAS,EAAI,EAAE,MAAc,CAAC,IAAM,EAAG,EAAM,QAAQ,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