{"version":3,"file":"DesignComponent.KAVw5z34.mjs","names":["React.useRef","React.useState","React.useReducer","React.useEffect","_jsx","_jsxs","__esmMin","init_npm_react_18_3_1","de","window","init_ssg_sandbox_shims","init_jsx_runtime","c","p","ce","_e","ye","RenderTarget","addPropertyControls","init_framer_ChujFWHC","ControlType","panelStyle","init_PanelSystem","init_DemoToolbar","init_DemoModes","DemoToolbar","getHumanAgentModeTabs","init_SectionPills","SectionPills","loadImplementation","implementation","pending","module","error","DesignDemo","props","root","Component","setComponent","failed","setFailed","attempt","retry","value","cancelled","observer","load","next","node","rect","entries","entry","toolbar","compact","TABS","tab","SHELL_CSS","init_DesignComponent"],"sources":["https:/framerusercontent.com/modules/MuiWhlbeOUoPoquHXBpH/zHqxL1gDEgTYLk4YqClx/DesignComponent.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import DemoToolbar from\"https://framerusercontent.com/modules/9GzsmpUNrhKduvUzEAf5/dX9ALIKKfJFHOAF989f4/DemoToolbar.js\";import SectionPills from\"https://framerusercontent.com/modules/rAuPBs0dgwb3isIlBisa/lE47VbnaQ0opAaXF5u9d/SectionPills.js\";import{getHumanAgentModeTabs}from\"https://framerusercontent.com/modules/HQaukF0B0htq42XbEmZz/SYBji1F2i788MEgqYKxs/DemoModes.js\";import{panelStyle}from\"https://framerusercontent.com/modules/xuHq55xcsIuroc51p47f/pFIIFCkBf6FoTCOyYxr6/PanelSystem.js\";let implementation=null;let pending=null;function loadImplementation(){if(implementation)return Promise.resolve(implementation);if(!pending){pending=import(\"https://framerusercontent.com/modules/gKUm8c9Gy1SAZyJL2Ujw/SsihgqNZF2Aur9WJ8s2k/DesignDemoInteractive20261115.js\").then(module=>{implementation=module.default;return implementation;}).catch(error=>{pending=null;throw error;});}return pending;}const TABS=[\"Themes\",\"Components\",\"Local styles\",\"Rendering\"];const SHELL_CSS=`.ldd-loading-panel{container-type:inline-size}.ldd-loading-narrow{display:none}@container(max-width:558px){.ldd-loading-wide{display:none}.ldd-loading-narrow{display:block}}`;/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 960\n * @framerIntrinsicHeight 444\n */export function DesignDemo(props={}){const root=React.useRef(null);const[Component,setComponent]=React.useState(null);const[failed,setFailed]=React.useState(false);const[attempt,retry]=React.useReducer(value=>value+1,0);React.useEffect(()=>{let cancelled=false;let observer;const load=()=>{observer?.disconnect();setFailed(false);loadImplementation().then(next=>{if(!cancelled)setComponent(()=>next);},()=>{if(!cancelled)setFailed(true);});};const node=root.current;if(implementation||attempt||RenderTarget.current()===RenderTarget.canvas||!node||typeof IntersectionObserver===\"undefined\"){load();}else{const rect=node.getBoundingClientRect();if(rect.width>0&&rect.height>0&&rect.bottom>=-800&&rect.top<=window.innerHeight+800){load();}else{observer=new IntersectionObserver(entries=>{if(entries.some(entry=>entry.isIntersecting&&entry.boundingClientRect.width>0&&entry.boundingClientRect.height>0))load();},{rootMargin:\"800px\"});observer.observe(node);}}return()=>{cancelled=true;observer?.disconnect();};},[attempt]);if(Component)return /*#__PURE__*/_jsx(Component,{...props});const toolbar=compact=>/*#__PURE__*/_jsx(DemoToolbar,{compact:compact,toolbarBackground:\"var(--token-04e187b4-6515-4f0f-b3c0-d356152b5248, #f9f9f8)\",modeTabs:getHumanAgentModeTabs(\"Human\"),activeModeId:\"Human\",options:TABS.map(tab=>({id:tab,label:tab})),activeOptionId:\"Themes\",fontSize:\"1.08rem\",modeFontSize:\"0.96875rem\",selectWidth:172,selectMobileMaxWidth:156,selectAriaLabel:\"Design section\"});return /*#__PURE__*/_jsxs(\"div\",{ref:root,\"data-design-demo-loading\":\"\",style:{display:\"flex\",flexDirection:\"column\",gap:14,width:\"100%\",boxSizing:\"border-box\",...props.style},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ldd-loading-panel\",\"aria-busy\":!failed,style:{display:\"flex\",flexDirection:\"column\",gap:0,width:\"100%\",boxSizing:\"border-box\",...panelStyle},children:[/*#__PURE__*/_jsx(\"style\",{children:SHELL_CSS}),/*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",inert:\"\",style:{pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"ldd-loading-wide\",children:toolbar(false)}),/*#__PURE__*/_jsx(\"div\",{className:\"ldd-loading-narrow\",children:toolbar(true)})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:400,flexShrink:0,display:\"grid\",placeItems:\"center\",color:\"var(--token-2a5f3230-4a8b-49e0-8e32-9494e91450f2, #63635e)\",font:\"14px/1.5 ui-sans-serif, system-ui, sans-serif\"},children:failed?/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:retry,children:\"Retry interactive preview\"}):/*#__PURE__*/_jsx(\"span\",{role:\"status\",children:\"Loading interactive preview…\"})})]}),/*#__PURE__*/_jsx(SectionPills,{pills:[{label:\"Editing basics\",href:\"https://loops.so/docs/creating-emails/editor\"},{label:\"Reusable assets\",href:\"https://loops.so/docs/creating-emails/components\"},{label:\"Styles and themes\",href:\"https://loops.so/docs/creating-emails/styles\"},{label:\"Personalization\",href:\"https://loops.so/docs/creating-emails/personalizing-emails\"}]})]});}addPropertyControls(DesignDemo,{borderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:24,defaultValue:6},brandColor:{type:ControlType.Color,title:\"Brand\",defaultValue:\"#fc5200\"},padding:{type:ControlType.Number,title:\"Padding\",min:0,max:64,defaultValue:24},surfaceStyle:{type:ControlType.Enum,title:\"Surface\",options:[\"Flat\",\"Soft\"],optionTitles:[\"Flat\",\"Soft\"],defaultValue:\"Soft\"}});export default DesignDemo;\nexport const __FramerMetadata__ = {\"exports\":{\"DesignDemo\":{\"type\":\"reactComponent\",\"name\":\"DesignDemo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"444\",\"framerIntrinsicWidth\":\"960\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"DesignDemo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"444\",\"framerIntrinsicWidth\":\"960\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DesignComponent.map"],"mappings":"A,+YAAwqB,SAAS6B,GAAoB,CAA0T,OAAtTC,EAAsB,QAAQ,QAAQA,CAAc,GAAeC,IAAQ,OAAO,+CAAmH,CAAC,KAAKC,IAASF,EAAeE,EAAO,QAAeF,EAAgB,CAAC,CAAC,MAAMG,GAAO,CAAc,KAAbF,GAAQ,KAAWE,CAAM,CAAC,EAAUF,EAAQ,CAK3gC,SAAgBG,EAAWC,EAAM,CAAC,EAAE,CAAC,IAAMC,EAAKpC,EAAa,IAAI,EAAO,CAACqC,EAAUC,GAAcrC,EAAe,IAAI,EAAO,CAACsC,EAAOC,GAAWvC,EAAe,EAAK,EAAO,CAACwC,EAAQC,GAAOxC,EAAiByC,GAAOA,EAAM,EAAE,CAAC,EAAiyB,GAA/xBxC,MAAoB,CAAC,IAAIyC,EAAU,GAAUC,EAAeC,MAAS,CAACD,GAAU,WAAW,EAAEL,EAAU,EAAK,EAAEX,EAAmB,CAAC,CAAC,KAAKkB,GAAM,CAAKH,GAAUN,MAAiBS,CAAI,CAAE,MAAM,CAAKH,GAAUJ,EAAU,EAAI,CAAE,CAAC,CAAE,EAAQQ,EAAKZ,EAAK,QAAQ,GAAGN,GAAgBW,GAASxB,EAAa,QAAQ,IAAIA,EAAa,QAAQ,CAAC+B,GAAM,OAAO,qBAAuB,IAAaF,EAAK,MAAO,CAAC,IAAMG,EAAKD,EAAK,sBAAsB,EAAKC,EAAK,MAAM,GAAGA,EAAK,OAAO,GAAGA,EAAK,QAAQ,MAAMA,EAAK,KAAKx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