{"version":3,"file":"MatterMatchFlow.CfpZ53L9.mjs","names":[],"sources":["https:/framerusercontent.com/modules/REfrEBrEUbcC2pv2xdin/skqJASXnVEfVWITJJvaA/MatterMatchFlow.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const INK=\"#2b180a\";const INK2=\"#3e2407\";const LINE=\"#e8d3c0\";const PEARL=\"#efe7dd\";const SUB=\"#94877c\";const ORANGE=\"#ffac63\";const GREEN=\"#1f7a45\";const GREEN_BG=\"#e8f5ee\";const GREEN_LINE=\"#cfe9da\";function css(step){const cyc=step*3;return`\n.mm{container-type:inline-size;width:100%;font-family:\"Geist\",system-ui,-apple-system,sans-serif;color:${INK};--step:${step}s;--cyc:${cyc}s}\n.mm *{box-sizing:border-box;min-width:0}\n.mm .row{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto;align-items:center;gap:8px}\n.mm .tile{display:grid;align-items:center;justify-items:center;min-height:56px;max-width:250px;padding:10px 16px;background:#fff;border:1px solid ${LINE};border-radius:12px;font-size:15px;font-weight:500;line-height:1.3;text-align:center}\n.mm .tile.out{background:${GREEN_BG};border-color:${GREEN_LINE};color:${GREEN}}\n.mm .tile span{grid-area:1/1;white-space:normal}\n.mm .tile.rot span{opacity:0;animation:mm-rot var(--cyc) infinite}\n.mm .tile.rot span:nth-child(1){animation-delay:0s}\n.mm .tile.rot span:nth-child(2){animation-delay:var(--step)}\n.mm .tile.rot span:nth-child(3){animation-delay:calc(var(--step) * 2)}\n@keyframes mm-rot{0%{opacity:0;transform:translateY(5px)}4%,29%{opacity:1;transform:none}33%,100%{opacity:0;transform:translateY(-5px)}}\n.mm .wire{height:2px;background:${LINE};position:relative;border-radius:2px;min-width:18px}\n.mm .wire i{position:absolute;top:-4px;left:0;width:10px;height:10px;border-radius:50%;background:${ORANGE};box-shadow:0 0 0 4px rgba(255,172,99,.25);opacity:0;animation:mm-ride var(--step) linear infinite}\n.mm .wire:nth-child(4) i{animation-delay:calc(var(--step) * .12)}\n.mm .wire:nth-child(6) i{animation-delay:calc(var(--step) * .24)}\n@keyframes mm-ride{0%{left:0;opacity:0}4%{opacity:1}22%{opacity:1}26%{left:calc(100% - 10px);opacity:0}100%{left:calc(100% - 10px);opacity:0}}\n.mm .cap{margin-top:14px;display:grid;font-size:13px;color:${SUB}}\n.mm .cap span{grid-area:1/1;opacity:0;animation:mm-rot var(--cyc) infinite}\n.mm .cap span:nth-child(1){animation-delay:0s}.mm .cap span:nth-child(2){animation-delay:var(--step)}.mm .cap span:nth-child(3){animation-delay:calc(var(--step) * 2)}\n.mm .cap b{color:${INK2};font-weight:500}\n@container (max-width:640px){\n  .mm .row{grid-template-columns:1fr;justify-items:center;gap:6px}\n  .mm .wire{width:2px;height:22px;min-width:0}\n  .mm .wire i{left:-4px;top:0;animation-name:mm-ridev}\n  @keyframes mm-ridev{0%{top:0;opacity:0}4%{opacity:1}22%{opacity:1}26%{top:calc(100% - 10px);opacity:0}100%{top:calc(100% - 10px);opacity:0}}\n  .mm .tile{width:100%;max-width:320px}\n  .mm .cap{text-align:center}\n}\n.mm.still .tile.rot span,.mm.still .cap span,.mm.still .wire i{animation:none!important}\n.mm.still .tile.rot span:nth-child(1),.mm.still .cap span:nth-child(1){opacity:1;transform:none}\n.mm.still .wire i{display:none}\n@media (prefers-reduced-motion:reduce){\n  .mm .tile.rot span,.mm .cap span,.mm .wire i{animation:none!important}\n  .mm .tile.rot span:nth-child(1),.mm .cap span:nth-child(1){opacity:1;transform:none}\n  .mm .wire i{display:none}\n}\n`;}export default function MatterMatchFlow(props){const step=Math.max(2,props.secondsPerRule||4);const still=!props.animate;const rules=[{c:props.c1,o:props.o1},{c:props.c2,o:props.o2},{c:props.c3,o:props.o3}];return /*#__PURE__*/_jsxs(\"div\",{className:\"mm\"+(still?\" still\":\"\"),style:props.style,\"aria-label\":\"How a call is matched to a Clio matter\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css(step)}}),/*#__PURE__*/_jsxs(\"div\",{className:\"row\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"tile\",children:/*#__PURE__*/_jsx(\"span\",{children:props.step1})}),/*#__PURE__*/_jsx(\"div\",{className:\"wire\",children:/*#__PURE__*/_jsx(\"i\",{})}),/*#__PURE__*/_jsx(\"div\",{className:\"tile\",children:/*#__PURE__*/_jsx(\"span\",{children:props.step2})}),/*#__PURE__*/_jsx(\"div\",{className:\"wire\",children:/*#__PURE__*/_jsx(\"i\",{})}),/*#__PURE__*/_jsx(\"div\",{className:\"tile rot\",children:rules.map((r,i)=>/*#__PURE__*/_jsx(\"span\",{children:r.c},i))}),/*#__PURE__*/_jsx(\"div\",{className:\"wire\",children:/*#__PURE__*/_jsx(\"i\",{})}),/*#__PURE__*/_jsx(\"div\",{className:\"tile out rot\",children:rules.map((r,i)=>/*#__PURE__*/_jsx(\"span\",{children:r.o},i))})]}),/*#__PURE__*/_jsx(\"div\",{className:\"cap\",children:rules.map((r,i)=>/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsxs(\"b\",{children:[\"Rule \",i+1,\" of 3\"]}),\" \\xb7 \",r.c,\": \",r.o]},i))})]});}MatterMatchFlow.defaultProps={step1:\"Caller’s number\",step2:\"Clio contact\",c1:\"One open matter\",o1:\"Filed on that matter\",c2:\"Several open matters\",o2:\"Latest open matter, or your pick\",c3:\"Number not in Clio\",o3:\"Logged as “no contact found”\",secondsPerRule:4,animate:true};addPropertyControls(MatterMatchFlow,{step1:{type:ControlType.String,title:\"Step 1\"},step2:{type:ControlType.String,title:\"Step 2\"},c1:{type:ControlType.String,title:\"Rule 1 case\"},o1:{type:ControlType.String,title:\"Rule 1 outcome\"},c2:{type:ControlType.String,title:\"Rule 2 case\"},o2:{type:ControlType.String,title:\"Rule 2 outcome\"},c3:{type:ControlType.String,title:\"Rule 3 case\"},o3:{type:ControlType.String,title:\"Rule 3 outcome\"},secondsPerRule:{type:ControlType.Number,title:\"Seconds per rule\",defaultValue:4,min:2,max:10,step:.5},animate:{type:ControlType.Boolean,title:\"Animate\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MatterMatchFlow\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MatterMatchFlow.map"],"mappings":"mKAAsT,SAAS,EAAI,EAAK,CAAC,IAAM,EAAI,EAAK,EAAE,MAAM;yGACvP,EAAI,UAAU,EAAK,UAAU,EAAI;;;oJAGU,EAAK;2BAC9H,EAAS,gBAAgB,EAAW,SAAS,EAAM;;;;;;;kCAO5C,EAAK;oGAC6D,EAAO;;;;6DAI9C,EAAI;;;mBAG9C,EAAK;;;;;;;;;;;;;;;;;CAiBtB,CAAC,SAAwB,EAAgB,EAAM,CAAC,IAAM,EAAK,KAAK,IAAI,EAAE,EAAM,gBAAgB,CAAC,EAAQ,EAAM,CAAC,EAAM,QAAc,EAAM,CAAC,CAAC,EAAE,EAAM,GAAG,EAAE,EAAM,EAAE,EAAE,CAAC,EAAE,EAAM,GAAG,EAAE,EAAM,EAAE,EAAE,CAAC,EAAE,EAAM,GAAG,EAAE,EAAM,EAAE,CAAC,EAAE,OAAoB,EAAM,MAAM,CAAC,UAAU,MAAM,EAAM,SAAS,IAAI,MAAM,EAAM,MAAM,aAAa,yCAAyC,SAAS,CAAc,EAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO,EAAI,CAAI,CAAC,CAAC,CAAC,EAAe,EAAM,MAAM,CAAC,UAAU,MAAM,SAAS,CAAc,EAAK,MAAM,CAAC,UAAU,OAAO,SAAsB,EAAK,OAAO,CAAC,SAAS,EAAM,KAAK,CAAC,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,OAAO,SAAsB,EAAK,IAAI,CAAC,CAAC,CAAC,CAAC,EAAe,E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