{"version":3,"file":"Pop_Up.Bf6GfAk5.mjs","names":["useState","useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/kSbUFaprVrA7GQNThvZa/DwGgysMCnKPhUGdweqEP/Pop_Up.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const PANEL_WIDTH=384;const PILL_HEIGHT=48;const PILL_PADDING_X=12;const PILL_GAP=12;const FULLSCREEN_BREAKPOINT=768;const MAX_HEIGHT=1024;const MAX_HEIGHT_RATIO=.85;const LAYOUT_PADDING=8;const HEADER_HEIGHT=32;const FOOTER_HEIGHT=12;const SIZE_TRANSITION=\"width 240ms ease, height 240ms ease, border-radius 0.2s ease, transform 240ms cubic-bezier(.2,.85,.32,1), opacity 180ms ease\";function parseColor(color){const hex=color.trim().match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i);if(hex){const full=hex[1].length===3?hex[1].replace(/./g,c=>c+c):hex[1];return[0,2,4].map(i=>parseInt(full.slice(i,i+2),16));}const rgb=color.match(/rgba?\\(([^)]+)\\)/i);if(rgb){const[r,g,b]=rgb[1].split(/[\\s,/]+/).map(Number);return[r,g,b];}return[244,228,93];}function mix(color,target,amount){return`rgb(${color.map((v,i)=>Math.round(v+(target[i]-v)*amount)).join(\",\")})`;}// Threshold approximates the widget's HSLuv lightness > 55 rule.\nfunction contrastColor(color){const[r,g,b]=color.map(v=>{const c=v/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4;});return .2126*r+.7152*g+.0722*b>.23?\"#000\":\"#fff\";}function TebiLogo({color}){return /*#__PURE__*/_jsxs(\"svg\",{width:30,height:12,viewBox:\"0 0 59 24\",\"aria-label\":\"Tebi\",role:\"img\",children:[/*#__PURE__*/_jsx(\"path\",{fill:color,d:\"M27.9465 6.22606C25.8006 4.94174 23.5616 5.04989 23.5616 5.04989C18.3285 5.04989 14.071 9.29999 14.071 14.524C14.071 15.8169 14.3323 17.0505 14.8042 18.1741C14.8526 18.289 14.8054 18.424 14.6947 18.4815C14.2215 18.7283 13.6884 18.8639 13.137 18.8639C11.2799 18.8639 9.76876 17.3554 9.76876 15.5016V10.2831C9.76876 10.1664 9.85139 10.0668 9.96584 10.0436C12.5237 9.523 14.295 8.7727 14.8942 8.50019C15.0166 8.44459 15.0705 8.30101 15.016 8.17881L13.2251 4.15477C13.1706 4.03257 13.0286 3.97636 12.905 4.02952C12.4827 4.21037 11.488 4.60264 10.0723 4.95152C9.9181 4.9894 9.76937 4.8727 9.76937 4.71384V0.603042C9.76937 0.468011 9.65981 0.358643 9.52454 0.358643H4.87285C4.73758 0.358643 4.62802 0.468011 4.62802 0.603042V5.40426C4.62802 5.53807 4.51969 5.64683 4.38565 5.64866C2.82978 5.67005 1.72561 5.51852 1.27391 5.44215C1.14599 5.42076 1.02419 5.50264 0.995418 5.6285L0.00632141 9.92015C-0.0248939 10.0558 0.0626314 10.1896 0.199734 10.2153C0.778135 10.324 2.31931 10.5672 4.37891 10.5385C4.5154 10.5366 4.6268 10.6466 4.6268 10.7829V15.5028C4.6268 20.1868 8.44425 23.9975 13.1363 23.9975C14.9083 23.9975 16.6025 23.4452 18.0084 22.4652C18.1198 22.3876 18.2673 22.3851 18.3811 22.4597C19.8715 23.433 21.6514 23.9994 23.561 23.9994C27.6661 23.9994 31.1702 21.3843 32.4904 17.7348C32.5492 17.5717 32.7781 17.5723 32.8369 17.7348C34.1546 21.388 37.6563 24 41.7693 24C45.8824 24 49.4667 21.3263 50.7477 17.6059C50.8083 17.4299 51.0617 17.4422 51.1009 17.6242C51.8654 21.1808 54.9863 23.8747 58.7462 23.9908C58.8845 23.9951 58.9996 23.8845 58.9996 23.7458V19.0967C58.9996 18.9696 58.9023 18.8633 58.7756 18.8536C57.2601 18.7387 56.0617 17.4709 56.0617 15.9293V7.50976C56.0617 7.37473 55.9521 7.26537 55.8169 7.26537H51.1652C51.0299 7.26537 50.9203 7.37473 50.9203 7.50976V10.8935C50.9203 11.0951 50.6425 11.1483 50.5666 10.9619C49.1564 7.49449 45.749 5.04927 41.7693 5.04927C40.2563 5.04927 38.8259 5.40304 37.5565 6.03176C37.4341 6.09225 37.2915 6.00426 37.2915 5.86801V0.603042C37.2915 0.468011 37.1819 0.358643 37.0467 0.358643H32.395C32.2597 0.358643 32.1501 0.468011 32.1501 0.603042V14.1605C32.1501 14.2955 32.0406 14.4049 31.9053 14.4049L28.3939 14.4061C28.2629 14.4061 28.1558 14.51 28.1497 14.6407C28.034 17.0853 26.114 19.0375 23.6975 19.1083C23.2152 19.1224 22.7488 19.0613 22.3094 18.9367C22.1741 18.8982 22.1288 18.7295 22.228 18.6299L29.3151 11.5552L31.1292 9.74418C31.2076 9.66598 31.2235 9.54561 31.1684 9.44968C31.1353 9.39286 31.1023 9.33665 31.0613 9.27005C31.0613 9.27005 30.153 7.54704 27.9446 6.22606H27.9465ZM20.2253 10.9515C21.327 9.85172 22.8798 9.49612 24.2245 9.89999C24.3579 9.9397 24.4002 10.1077 24.3016 10.2055L19.4779 15.0208C19.3794 15.1191 19.2117 15.0764 19.1719 14.9438C18.7673 13.6014 19.1236 12.0513 20.2253 10.9515ZM41.9854 19.1071C39.2813 19.2312 37.0552 17.0083 37.1795 14.3096C37.2878 11.9566 39.1968 10.0509 41.5539 9.94276C44.2574 9.81873 46.4841 12.0415 46.3598 14.7403C46.2515 17.0933 44.3425 18.999 41.9854 19.1077V19.1071Z\"}),/*#__PURE__*/_jsx(\"path\",{fill:color,d:\"M56.3461 4.26388C56.999 2.69043 56.2505 0.886564 54.6743 0.234822C53.0981 -0.41692 51.2911 0.330266 50.6382 1.90371C49.9853 3.47715 50.7338 5.28103 52.31 5.93277C53.8862 6.58451 55.6932 5.83732 56.3461 4.26388Z\"})]});}function CloseIcon(){return /*#__PURE__*/_jsx(\"svg\",{width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 6l12 12M18 6L6 18\"})});}// Note: `all: unset` resets box-sizing back to content-box, which made the\n// 48px pill render 64px tall (48 + 8px top/bottom padding) inside a 48px\n// clipped container — so the content sat off-center. box-sizing and\n// justify-content are re-applied right after the reset.\nconst css=`\n.tlw-root, .tlw-root * { box-sizing: border-box; }\n.tlw-root { font-family: Inter, sans-serif; letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; }\n.tlw-button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; }\n.tlw-button:hover { opacity: 0.8; }\n.tlw-button:focus-visible, .tlw-card:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }\n.tlw-card { display: block; text-decoration: none; color: #000; transition: opacity 0.2s, box-shadow 0.2s; }\n.tlw-card:hover { opacity: 0.85; }\n.tlw-surface { position: relative; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 0.0625rem 0.1875rem 0 rgba(0,0,0,0.18); }\n.tlw-card:hover .tlw-surface { box-shadow: 0 0.0625rem 0.125rem 0 rgba(0,0,0,0.18); }\n.tlw-image { width: 100%; height: 100%; object-fit: cover; display: block; }\n`;/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TebiLinksWidget(props){const{mode,label,pillLink,pillNewTab,title,brandColor,items,featuredBadge,showLogo,showPoweredBy,offset,zIndex,previewOpen}=props;const isExpandable=mode===\"expandable\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[open,setOpen]=useState(false);const isOpen=isExpandable&&(isCanvas?previewOpen:open);// We measure the pill's inner content (not the pill itself). The pill then\n// fills the container and centers that content, so it stays centered even\n// if the measurement is a pixel or two off (e.g. while web fonts load).\nconst pillContentRef=useRef(null);const listRef=useRef(null);const[pillWidth,setPillWidth]=useState(0);const[listHeight,setListHeight]=useState(0);const[viewport,setViewport]=useState({width:1280,height:800});useEffect(()=>{const update=()=>setViewport({width:window.innerWidth,height:window.innerHeight});update();window.addEventListener(\"resize\",update);return()=>window.removeEventListener(\"resize\",update);},[]);// Re-runs when the mode changes, because the pill element is swapped\n// (<button> ↔ <a>) and the list only exists in expandable mode.\n// ResizeObserver sizes are fractional and ignore canvas zoom transforms.\nuseLayoutEffect(()=>{const content=pillContentRef.current;const list=listRef.current;if(!content)return;const observer=new ResizeObserver(entries=>{for(const entry of entries){const box=entry.borderBoxSize?.[0];if(entry.target===content){const w=box?box.inlineSize:content.offsetWidth;setPillWidth(Math.ceil(w)+PILL_PADDING_X*2);}else if(list&&entry.target===list){setListHeight(Math.ceil(box?box.blockSize:list.offsetHeight));}}});observer.observe(content);if(list)observer.observe(list);return()=>observer.disconnect();},[isExpandable]);useEffect(()=>{if(!open)return;const onKey=e=>e.key===\"Escape\"&&setOpen(false);window.addEventListener(\"keydown\",onKey);return()=>window.removeEventListener(\"keydown\",onKey);},[open]);const rgb=parseColor(brandColor);const brand500=mix(rgb,rgb,0);const brand600=mix(rgb,[0,0,0],.06);const brand400=mix(rgb,[255,255,255],.35);const fg=contrastColor(rgb);const fullscreen=!isCanvas&&(viewport.width<FULLSCREEN_BREAKPOINT||PANEL_WIDTH+offset*2>viewport.width);const maxHeight=Math.min(viewport.height*MAX_HEIGHT_RATIO,viewport.height-offset*2,MAX_HEIGHT);const chromeHeight=LAYOUT_PADDING*2+HEADER_HEIGHT+LAYOUT_PADDING+(showPoweredBy?FOOTER_HEIGHT+LAYOUT_PADDING:0);const ready=pillWidth>0;const sizeStyle=!isOpen?{width:pillWidth||1,height:PILL_HEIGHT,borderRadius:10}:fullscreen?{width:\"100vw\",height:\"100dvh\",borderRadius:0}:{width:PANEL_WIDTH,height:Math.min(listHeight+chromeHeight,maxHeight),borderRadius:20};const edge=isOpen&&fullscreen?0:offset;const positionStyle=isCanvas?{position:\"relative\"}:{position:\"fixed\",right:`calc(${edge}px + env(safe-area-inset-right, 0px))`,bottom:`calc(${edge}px + env(safe-area-inset-bottom, 0px))`,zIndex};const fadeIn=visible=>({opacity:visible?1:0,visibility:visible?\"visible\":\"hidden\",pointerEvents:visible?\"auto\":\"none\",transition:visible?\"opacity 180ms ease 240ms, visibility 0s 240ms\":\"none\"});const pillStyle={...fadeIn(!isOpen),position:\"absolute\",top:0,left:0,width:\"100%\",height:PILL_HEIGHT,padding:`0 ${PILL_PADDING_X}px`,borderRadius:10,whiteSpace:\"nowrap\",fontSize:16,fontWeight:600};const pillContent=/*#__PURE__*/_jsxs(\"span\",{ref:pillContentRef,style:{display:\"flex\",alignItems:\"center\",gap:PILL_GAP,flexShrink:0},children:[showLogo&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(TebiLogo,{color:fg}),/*#__PURE__*/_jsx(\"span\",{style:{width:1,height:16,background:fg,opacity:.15}})]}),/*#__PURE__*/_jsx(\"span\",{children:label})]});return /*#__PURE__*/_jsxs(\"div\",{className:\"tlw-root\",style:{...props.style,...positionStyle,...sizeStyle,overflow:\"hidden\",background:brand500,color:fg,boxShadow:\"0 4px 12px rgba(0, 0, 0, 0.15)\",transform:ready?\"translateY(0)\":`translateY(calc(100% + ${offset}px))`,opacity:ready?1:0,transition:ready?SIZE_TRANSITION:\"none\",touchAction:\"manipulation\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),isExpandable?/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"tlw-button\",\"aria-expanded\":isOpen,\"aria-haspopup\":\"dialog\",onClick:()=>setOpen(true),style:pillStyle,children:pillContent}):/*#__PURE__*/_jsx(\"a\",{className:\"tlw-button\",href:pillLink||undefined,style:pillStyle,children:pillContent}),isExpandable&&/*#__PURE__*/_jsxs(\"div\",{role:\"dialog\",\"aria-label\":title,style:{...fadeIn(isOpen),position:\"absolute\",top:0,left:0,width:fullscreen?\"100%\":PANEL_WIDTH,height:\"100%\",display:\"flex\",flexDirection:\"column\",gap:LAYOUT_PADDING,padding:LAYOUT_PADDING},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",height:HEADER_HEIGHT,flexShrink:0},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"tlw-button\",\"aria-label\":\"Close\",onClick:()=>setOpen(false),style:{width:32,height:32},children:/*#__PURE__*/_jsx(CloseIcon,{})}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,textAlign:\"center\",fontSize:\"0.875rem\",fontWeight:600,lineHeight:1.33,letterSpacing:\"normal\",overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},children:title}),/*#__PURE__*/_jsx(\"span\",{style:{width:32}})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minHeight:0,overflowY:\"auto\",background:\"#fff\",borderRadius:12},children:/*#__PURE__*/_jsx(\"div\",{ref:listRef,style:{display:\"flex\",flexDirection:\"column\",gap:16,padding:16},children:items.map((item,index)=>/*#__PURE__*/_jsx(LinkCard,{item:item,featuredBadge:featuredBadge,brand400:brand400,brand500:brand500,brand600:brand600,fg:fg},index))})}),showPoweredBy&&/*#__PURE__*/_jsxs(\"div\",{style:{height:FOOTER_HEIGHT,flexShrink:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:4,fontSize:9,whiteSpace:\"nowrap\"},children:[\"Powered by\",/*#__PURE__*/_jsx(TebiLogo,{color:fg})]})]})]});}function LinkCard({item,featuredBadge,brand400,brand500,brand600,fg}){const linkProps={};const hasImage=Boolean(item.image?.src);const image=aspectRatio=>/*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",width:\"100%\",aspectRatio,overflow:\"hidden\",background:`linear-gradient(90deg, ${brand400} 0%, ${brand500} 100%)`},children:hasImage&&/*#__PURE__*/_jsx(\"img\",{className:\"tlw-image\",src:item.image.src,srcSet:item.image.srcSet,alt:item.image.alt??\"\"})});if(item.featured){return /*#__PURE__*/_jsxs(\"a\",{className:\"tlw-card\",href:item.link,...linkProps,style:{display:\"flex\",flexDirection:\"column\",gap:\"0.1rem\",padding:\"0.35rem\",borderRadius:10,background:brand600},children:[featuredBadge&&/*#__PURE__*/_jsx(\"span\",{style:{alignSelf:\"flex-start\",padding:\"0.15rem 0.25rem\",fontSize:\"0.8rem\",fontWeight:700,color:fg},children:featuredBadge}),/*#__PURE__*/_jsxs(\"span\",{className:\"tlw-surface\",style:{display:\"grid\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{gridArea:\"1 / 1\"},children:image(\"2 / 1\")}),/*#__PURE__*/_jsx(\"span\",{style:{gridArea:\"1 / 1\",display:\"grid\",placeItems:\"center\",padding:\"0.85rem\",textAlign:\"center\",color:\"#fff\",background:\"linear-gradient(180deg, #0f172a29, #0f172a47 45%, #0f172a8f)\"},children:/*#__PURE__*/_jsxs(\"span\",{style:{display:\"flex\",flexDirection:\"column\",gap:8,maxWidth:\"100%\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"1.78rem\",fontWeight:700,lineHeight:1.08,textShadow:\"0 0.125rem 0.375rem rgba(0,0,0,.5), 0 0.5rem 1.5rem rgba(0,0,0,.5)\"},children:item.title}),item.description&&/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"0.8rem\",lineHeight:1.45,whiteSpace:\"pre-line\"},children:item.description})]})})]})]});}return /*#__PURE__*/_jsx(\"a\",{className:\"tlw-card\",href:item.link,...linkProps,children:/*#__PURE__*/_jsxs(\"span\",{className:\"tlw-surface\",style:{display:\"flex\",flexDirection:\"column\"},children:[hasImage&&image(\"3 / 1\"),/*#__PURE__*/_jsxs(\"span\",{style:{display:\"flex\",flexDirection:\"column\",gap:4,padding:\"0.5rem 1rem 0.75rem 1rem\",textAlign:\"left\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"1.15rem\",fontWeight:600},children:item.title}),item.description&&/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"0.8rem\",lineHeight:1.45,whiteSpace:\"pre-line\"},children:item.description})]})]})});}TebiLinksWidget.defaultProps={mode:\"expandable\",label:\"Discover us\",pillLink:\"\",pillNewTab:false,title:\"Restaurant name\",brandColor:\"#F4E45D\",featuredBadge:\"Recommended\",showLogo:true,showPoweredBy:true,offset:16,zIndex:100,previewOpen:false,items:[{title:\"Our menu\",description:\"Seasonal dishes and drinks\",link:\"/menu\",featured:true,newTab:false},{title:\"Private events\",description:\"Book the whole venue for your party\",link:\"/events\",featured:false,newTab:false},{title:\"Gift cards\",description:\"Treat someone to a dinner\",link:\"/gift-cards\",featured:false,newTab:false}]};const hideUnlessCollapsed=p=>p.mode!==\"collapsed\";const hideUnlessExpandable=p=>p.mode!==\"expandable\";addPropertyControls(TebiLinksWidget,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"collapsed\",\"expandable\"],optionTitles:[\"Collapsed\",\"Expandable\"],displaySegmentedControl:true,defaultValue:\"expandable\",description:\"Collapsed: pill links to a page. Expandable: pill opens the panel.\"},label:{type:ControlType.String,title:\"Pill label\"},// Collapsed only\npillLink:{type:ControlType.Link,title:\"Link\",hidden:hideUnlessCollapsed},pillNewTab:{type:ControlType.Boolean,title:\"New tab\",hidden:hideUnlessCollapsed},// Shared\nbrandColor:{type:ControlType.Color,title:\"Brand color\"},showLogo:{type:ControlType.Boolean,title:\"Tebi logo\"},offset:{type:ControlType.Number,title:\"Edge offset\",min:0,max:64,step:1,unit:\"px\"},zIndex:{type:ControlType.Number,title:\"Z-index\",min:0,max:2147483647,step:1,displayStepper:true,description:\"Set lower than your cookie banner's z-index so the widget sits behind it.\"},// Expandable only\ntitle:{type:ControlType.String,title:\"Panel title\",hidden:hideUnlessExpandable},items:{type:ControlType.Array,title:\"Links\",hidden:hideUnlessExpandable,control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Title\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},link:{type:ControlType.Link,title:\"Link\"},featured:{type:ControlType.Boolean,title:\"Featured\",defaultValue:false},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false}}}},featuredBadge:{type:ControlType.String,title:\"Featured badge\",hidden:hideUnlessExpandable},showPoweredBy:{type:ControlType.Boolean,title:\"Powered by\",hidden:hideUnlessExpandable},previewOpen:{type:ControlType.Boolean,title:\"Canvas: open\",hidden:hideUnlessExpandable}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TebiLinksWidget\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Pop_Up.map"],"mappings":"oOAA6kB,SAAS,GAAW,EAAM,CAAC,IAAM,EAAI,EAAM,KAAK,CAAC,CAAC,MAAM,gCAAgC,EAAE,GAAG,EAAI,CAAC,IAAM,EAAK,EAAI,EAAE,CAAC,SAAS,EAAE,EAAI,EAAE,CAAC,QAAQ,KAAK,GAAG,EAAE,CAAC,EAAE,EAAI,GAAG,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,SAAS,EAAK,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAE,CAAC,IAAM,EAAI,EAAM,MAAM,mBAAmB,EAAE,GAAG,EAAI,CAAC,GAAK,CAAC,EAAE,EAAE,GAAG,EAAI,EAAE,CAAC,MAAM,SAAS,CAAC,CAAC,IAAI,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAE,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAE,CAAC,SAAS,EAAI,EAAM,EAAO,EAAO,CAAC,MAAM,OAAO,EAAM,KAAK,EAAE,IAAI,KAAK,MAAM,GAAG,EAAO,GAAG,GAAG,CAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,EAAG,CAC7hC,SAAS,GAAc,EAAM,CAAC,GAAK,CAAC,EAAE,EAAE,GAAG,EAA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