{"version":3,"file":"BGRecentlyViewed.PiIrGAai.mjs","names":["useState","useRef","__esmMin","window","init_npm_react_18_3_1","init_ssg_sandbox_shims","_e","de","init_jsx_runtime","p","ce","addPropertyControls","RenderTarget","init_framer_BkYB2Gqq","ControlType","init_CarouselNav","attachRailNav","RAIL_CSS","logHost","w","who","origin","fontCss","fam","v","generic","b","size","ls","readRecent","KEY","x","loadPrices","key","slugs","now","hit","MEM","TTL","saved","PRICE_KEY","r","prices","j","BGRecentlyViewed","props","isCanvas","items","setItems","SAMPLE","setPrices","SAMPLE_PRICES","rail","root","dots","edge","setEdge","read","here","slug","max","slugKey","live","el","f","sid","showHeading","showArrows","cardFill","tileFill","soft","R","radius","H","headingFont","C","font","B","nudge","dir","heading","muted","accent","line","d","priceText","money","init_BGRecentlyViewed","n"],"sources":["https:/framerusercontent.com/modules/bCGTrS8iEc70kHm39xd7/3UpOtXRnnXkWqbJMsCVa/BGRecentlyViewed.js"],"sourcesContent":["// BGRecentlyViewed.tsx - \"You recently viewed\" on the product page.\n// BGProductBuy writes every product a visitor opens to\n// localStorage['bg-recent'] ({slug, title, image, href, viewed_at}, newest\n// first, 12 at most). This reads it, leaves out the page's own product, asks\n// the platform for the from-prices in ONE call\n// (GET {origin}/api/public/pricing?slugs=a,b,c - held 5 minutes) and draws the\n// site's product carousel: white cards, radius 24, a 1:1 image tile, the\n// title, \"From $X\", lift on hover, snap scrolling with the templates rail's\n// arrow pair. Fewer than two products: it renders nothing (height 0).\n// The canvas never reads storage or fetches; it draws a sample.\n//\n// G1 (2026-09-25): type from ControlType.Font controls (heading = X Large\n// 64 / 54 / 48 set per breakpoint on the canvas, card title, body), cards per\n// DESIGN-DIRECTION rule 2 (white on cream, radius 24, 1:1 image tile, Blue\n// title, Dark Grey price, hover y -4 + the standard shadow), heading -> rail\n// 40 (32 under 600px), and the rail pads 12px on every side so the hover\n// shadow is never cut by the scroller. The section's top space lives in the\n// component (Top space: 100 desktop, 60 tablet and phone), so a visitor with\n// no history gets no empty band.\n//\n// i1 (2026-09-25, native first): the section heading is a NATIVE H2 on the\n// canvas, laid out like the Explore similar products section; this renders\n// only the rail (Heading and Arrows controls exist but default off). With\n// fewer than two products it renders a one-line <style> that hides the\n// enclosing section by its Framer scroll id (Section id, default\n// \"recently-viewed\") - the component's own output, not a DOM read - so the\n// native heading goes with it and a new visitor never sees a flash of it.\n// Cards follow the revised rule 2: the Soft Grey card tone on the Beige\n// canvas (never white), a Light Grey image tile, three across on desktop\n// like Explore similar products, the price on the title row.\n//\n// Shadow (2026-09-26): a Shadow control (default on) - off drops the hover\n// shadow and keeps the lift. The /order page turns it off.\n//\n// Cards pass (2026-09-26): no card shadows anywhere on the site - the Shadow\n// control is kept for old instances but ignored (lift only). Title (2 lines)\n// then the price 8px under it, like the native product cards. The site's\n// carousel behaviour from CarouselNav.tsx: dots under the rail, hover arrows\n// on the card edges (the homepage hero arrow). Phone: 140px cards, about 2.5\n// across, like the native product rails.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// @ts-ignore - Framer resolves sibling code files at runtime\nimport{attachRailNav,RAIL_CSS}from\"https://framerusercontent.com/modules/mRUNmaTLMe2IqzvFtKeo/PxdRXTsBsQH5EN6LjZND/CarouselNav.js\";/* One console.debug per page (shared flag with the other BG components): the\n   host, render target and platform origin. Preview fetches like the site. */function logHost(who,origin){try{const w=window;if(w.__bgHostLogged)return;w.__bgHostLogged=true;console.debug(`[BG] ${who} running on ${window.location.origin} (render target: ${RenderTarget.current()}, platform: ${origin})`);}catch{}}const generic=f=>/^(inter|sans-serif|serif|monospace|system-ui|-apple-system)$/i.test(f.split(\",\")[0].replace(/[\"']/g,\"\").trim());/* ControlType.Font value -> a CSS declaration list; no real family keeps the site's. */function fontCss(v,b){const fam=v&&typeof v.fontFamily===\"string\"&&v.fontFamily.trim()&&!generic(v.fontFamily)?v.fontFamily:b.family;const size=parseFloat(String(v?.fontSize));const ls=v?.letterSpacing!=null&&v.letterSpacing!==\"\"?typeof v.letterSpacing===\"number\"?`${v.letterSpacing}px`:v.letterSpacing:b.tracking||\"normal\";return`font-family:${fam};font-weight:${v?.fontWeight||b.weight};font-style:${v?.fontStyle||\"normal\"};font-size:${Number.isFinite(size)&&size>0?size:b.size}px;line-height:${v?.lineHeight||b.line};letter-spacing:${ls}`;}const KEY=\"bg-recent\";const PRICE_KEY=\"bg-recent-prices\";const TTL=5*6e4;function readRecent(){try{const v=JSON.parse(window.localStorage.getItem(KEY)||\"[]\");return Array.isArray(v)?v.filter(x=>x&&typeof x.slug===\"string\"&&typeof x.href===\"string\"):[];}catch{return[];}}/* One call for every card, held five minutes per set of slugs (in memory and\n   in localStorage, so the next product page doesn't ask again). */const MEM=new Map;function loadPrices(origin,slugs){const key=origin+\"|\"+slugs.slice().sort().join(\",\");const now=Date.now();const hit=MEM.get(key);if(hit&&now-hit.at<TTL)return Promise.resolve(hit.prices);try{const saved=JSON.parse(window.localStorage.getItem(PRICE_KEY)||\"null\");if(saved&&saved.key===key&&now-saved.at<TTL&&saved.prices){MEM.set(key,{at:saved.at,prices:saved.prices});return Promise.resolve(saved.prices);}}catch{}return fetch(`${origin}/api/public/pricing?slugs=${slugs.map(encodeURIComponent).join(\",\")}`).then(r=>r.ok?r.json():null).then(j=>{const prices=j&&j.prices||{};MEM.set(key,{at:now,prices});try{window.localStorage.setItem(PRICE_KEY,JSON.stringify({key,at:now,prices}));}catch{}return prices;}).catch(()=>({}));}const money=n=>new Intl.NumberFormat(\"en-AU\",{style:\"currency\",currency:\"AUD\",minimumFractionDigits:2,maximumFractionDigits:2}).format(n);const priceText=p=>!p?\"\":p.label?p.label:p.from_inc!=null&&p.from_inc>0?`From ${money(p.from_inc)}`:\"\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function BGRecentlyViewed(props){const{slug,origin,heading,max,accent,muted,line,soft,radius,font,headingFont}=props;const isCanvas=[RenderTarget.canvas,RenderTarget.export,RenderTarget.thumbnail].includes(RenderTarget.current());useEffect(()=>{logHost(\"BGRecentlyViewed\",origin);},[]);const[items,setItems]=useState(isCanvas?SAMPLE:[]);const[prices,setPrices]=useState(isCanvas?SAMPLE_PRICES:{});const rail=useRef(null);const root=useRef(null);const dots=useRef(null);const[edge,setEdge]=useState({start:true,end:false});// what this visitor opened, less this page's product\nuseEffect(()=>{if(isCanvas)return;const read=()=>{const here=typeof window!==\"undefined\"?window.location.pathname:\"\";setItems(readRecent().filter(x=>x.slug!==slug&&x.href!==here).slice(0,Math.max(2,Number(max)||12)));};read();window.addEventListener(\"bg-recent\",read);window.addEventListener(\"storage\",read);return()=>{window.removeEventListener(\"bg-recent\",read);window.removeEventListener(\"storage\",read);};},[slug,max,isCanvas]);const slugKey=items.map(x=>x.slug).join(\",\");useEffect(()=>{if(isCanvas||items.length<2)return;let live=true;loadPrices(origin,items.map(x=>x.slug)).then(p=>live&&setPrices(p));return()=>{live=false;};},[slugKey,origin,isCanvas]);useEffect(()=>{const el=rail.current;if(!el)return;const f=()=>setEdge({start:el.scrollLeft<4,end:el.scrollLeft+el.clientWidth>=el.scrollWidth-4});f();el.addEventListener(\"scroll\",f,{passive:true});window.addEventListener(\"resize\",f);return()=>{el.removeEventListener(\"scroll\",f);window.removeEventListener(\"resize\",f);};},[items.length]);// the site's carousel arrows + dots (same code as the native carousels)\nuseEffect(()=>{if(isCanvas||items.length<2||!root.current||!rail.current)return;return attachRailNav(root.current,{scroller:rail.current,dots:dots.current});},[items.length,isCanvas]);const sid=String(props.sectionId||\"\").replace(/[^a-zA-Z0-9_-]/g,\"\");if(items.length<2)return sid?/*#__PURE__*/_jsx(\"style\",{children:`#${sid}{display:none!important}`}):null;const showHeading=!!props.showHeading;const showArrows=!!props.showArrows;const cardFill=props.card||\"#F8F0D5\";const hoverShadow=\"none\";const tileFill=props.tile||soft;const R=Number(radius)||24;const H=fontCss(props.fontTitle,{family:headingFont,weight:400,size:64,line:1,tracking:\"-0.04em\"});const C=fontCss(props.fontCard,{family:font,weight:700,size:18,line:1.3,tracking:\"-0.02em\"});const B=fontCss(props.fontBody,{family:font,weight:500,size:16,line:1.4,tracking:\"-0.02em\"});const nudge=dir=>rail.current?.scrollBy({left:dir*Math.max(240,(rail.current?.clientWidth||800)*.8),behavior:\"smooth\"});return /*#__PURE__*/_jsxs(\"section\",{ref:root,className:\"bgrv\",\"aria-label\":heading,style:{position:\"relative\",width:\"100%\",color:muted,paddingTop:Number(props.padTop)||0},children:[/*#__PURE__*/_jsx(\"style\",{children:RAIL_CSS}),/*#__PURE__*/_jsx(\"style\",{children:`\n.bgrv{container-type:inline-size;display:grid;gap:${showHeading||showArrows?40:0}px;${B}}\n.bgrv *{box-sizing:border-box}\n.bgrv-h{margin:0;${H};color:${accent}}\n.bgrv-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px) / 3);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:12px;scrollbar-width:none;padding:12px 12px 28px;margin:-12px -12px -28px}\n.bgrv-rail::-webkit-scrollbar{display:none}\n.bgrv-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:12px;padding:8px 8px 18px;border-radius:${R}px;background:${cardFill};color:inherit;text-decoration:none;transition:transform 300ms ease-out, box-shadow 300ms ease-out}\n.bgrv-card:hover,.bgrv-card:focus-visible{transform:translateY(-4px);box-shadow:${hoverShadow}}\n.bgrv-card:focus-visible,.bgrv-nav:focus-visible{outline:2px solid ${accent};outline-offset:2px}\n.bgrv-img{display:block;width:100%;aspect-ratio:1;border-radius:16px;background:${tileFill} center / cover no-repeat}\n.bgrv-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:0 8px}\n.bgrv-t{min-width:0;${C};color:${accent};overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}\n.bgrv-p{flex:none;${B};font-size:14px;font-weight:600;color:${muted};font-variant-numeric:tabular-nums}\n.bgrv-nav{width:40px;height:40px;border-radius:999px;border:1px solid ${line};background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity 160ms ease-out}\n.bgrv-nav:disabled{opacity:.35;cursor:default}\n@container (max-width:599px){.bgrv{gap:${showHeading||showArrows?32:0}px}.bgrv-rail{grid-auto-columns:140px;gap:10px;margin-left:0;margin-right:0}.bgrv-navs{display:none!important}.bgrv-card{padding:6px 6px 12px;gap:8px;border-radius:16px}.bgrv-img{border-radius:12px}.bgrv-row{padding:0 4px;gap:6px}.bgrv-t{font-size:14px;line-height:1.25}.bgrv-p{font-size:13px}}\n.bgrv > .bgcn-dots{margin-top:${showHeading||showArrows?-28:12}px}\n@media (prefers-reduced-motion: reduce){.bgrv-card{transition:none}}\n`}),showHeading||showArrows?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-end\",justifyContent:showHeading?\"space-between\":\"flex-end\",gap:16},children:[showHeading?/*#__PURE__*/_jsx(\"h2\",{className:\"bgrv-h\",children:heading}):null,showArrows?/*#__PURE__*/_jsx(\"div\",{className:\"bgrv-navs\",style:{display:\"flex\",gap:8,flex:\"none\"},children:[-1,1].map(d=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"bgrv-nav\",\"aria-label\":d<0?\"Previous products\":\"More products\",disabled:d<0?edge.start:edge.end,onClick:()=>nudge(d),children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 256 256\",\"aria-hidden\":\"true\",style:{transform:d<0?\"rotate(180deg)\":\"none\"},children:/*#__PURE__*/_jsx(\"path\",{fill:accent,d:\"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z\"})})},d))}):null]}):null,/*#__PURE__*/_jsx(\"div\",{ref:rail,className:\"bgrv-rail\",role:\"list\",children:items.map(x=>/*#__PURE__*/_jsxs(\"a\",{role:\"listitem\",className:\"bgrv-card\",href:x.href,\"data-bg-recent\":x.slug,children:[/*#__PURE__*/_jsx(\"span\",{className:\"bgrv-img\",role:\"img\",\"aria-label\":x.title,style:x.image?{backgroundImage:`url(\"${x.image}\")`}:undefined}),/*#__PURE__*/_jsxs(\"span\",{className:\"bgrv-row\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"bgrv-t\",children:x.title}),/*#__PURE__*/_jsx(\"span\",{className:\"bgrv-p\",children:priceText(prices[x.slug])})]})]},x.slug))}),/*#__PURE__*/_jsx(\"div\",{ref:dots,className:\"bgcn-dots\",role:\"group\",\"aria-label\":\"Carousel pages\",style:{visibility:\"hidden\"}})]});}const SAMPLE=[{slug:\"business-cards\",title:\"Business Cards\",href:\"#\"},{slug:\"flyers-and-pamphlets\",title:\"Flyers and Pamphlets\",href:\"#\"},{slug:\"corflute-signs\",title:\"Corflute Signs\",href:\"#\"},{slug:\"logo-mugs\",title:\"Logo Mugs\",href:\"#\"}];const SAMPLE_PRICES={\"business-cards\":{label:\"From $150.00\"},\"flyers-and-pamphlets\":{label:\"From $30.00\"},\"corflute-signs\":{label:\"From $65.00\"},\"logo-mugs\":{label:\"From $135.00\"}};BGRecentlyViewed.defaultProps={slug:\"\",origin:\"https://studio.bendigographics.com\",heading:\"You recently viewed\",max:12,accent:\"#304382\",muted:\"#6C6354\",line:\"rgba(48, 67, 130, 0.14)\",soft:\"#F8F0D5\",radius:24,font:\"'Instrument Sans', 'Instrument Sans Medium', 'Instrument Sans SemiBold', system-ui, sans-serif\",headingFont:\"'Instrument Serif', Georgia, serif\",sectionId:\"recently-viewed\",card:\"#F8F0D5\",tile:\"#EEE1C1\",showHeading:false,showArrows:false,shadow:true};addPropertyControls(BGRecentlyViewed,{slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\",description:\"Bind to the product's Slug field - this product is left out\"},origin:{type:ControlType.String,title:\"Platform\",defaultValue:\"https://studio.bendigographics.com\"},heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"You recently viewed\"},max:{type:ControlType.Number,title:\"Most\",defaultValue:12,min:2,max:12,step:1},accent:{type:ControlType.Color,title:\"Blue\",defaultValue:\"#304382\"},muted:{type:ControlType.Color,title:\"Dark Grey\",defaultValue:\"#6C6354\"},line:{type:ControlType.Color,title:\"Line\",defaultValue:\"rgba(48, 67, 130, 0.14)\"},soft:{type:ControlType.Color,title:\"Soft Grey\",defaultValue:\"#F8F0D5\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:24,min:0,max:32,step:1},font:{type:ControlType.String,title:\"Font stack\",defaultValue:\"'Instrument Sans', 'Instrument Sans Medium', 'Instrument Sans SemiBold', system-ui, sans-serif\"},headingFont:{type:ControlType.String,title:\"Heading font\",defaultValue:\"'Instrument Serif', Georgia, serif\"},sectionId:{type:ControlType.String,title:\"Section id\",defaultValue:\"recently-viewed\",description:\"The enclosing section's scroll id - hidden (with its native heading) when there is nothing to show\"},card:{type:ControlType.Color,title:\"Card\",defaultValue:\"#F8F0D5\",description:\"Bind to Soft Grey - never white on the Beige canvas\"},tile:{type:ControlType.Color,title:\"Image tile\",defaultValue:\"#EEE1C1\",description:\"Bind to Light Grey\"},showHeading:{type:ControlType.Boolean,title:\"Heading\",defaultValue:false,description:\"Off: the section's native H2 is the heading\"},showArrows:{type:ControlType.Boolean,title:\"Arrows\",defaultValue:false},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,description:\"Off: cards lift on hover with no shadow\"},padTop:{type:ControlType.Number,title:\"Top space\",defaultValue:0,min:0,max:200,step:4,unit:\"px\",description:\"Section top padding, only when there is something to show: 100 Desktop, 60 Tablet and Phone\"},fontTitle:{type:ControlType.Font,title:\"Heading type\",controls:\"extended\",defaultFontType:\"serif\",defaultValue:{fontSize:64,lineHeight:\"1em\",letterSpacing:\"-0.04em\"},description:\"X Large: Instrument Serif 64 / 54 / 48\"},fontCard:{type:ControlType.Font,title:\"Card title\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:18,variant:\"Bold\",lineHeight:\"1.3em\",letterSpacing:\"-0.02em\"}},fontBody:{type:ControlType.Font,title:\"Body type\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:16,variant:\"Medium\",lineHeight:\"1.4em\",letterSpacing:\"-0.02em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BGRecentlyViewed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,wQA0C6E,SAASkB,EAAQ,EAAI,EAAO,CAAC,GAAG,CAAC,IAAMC,EAAEhB,EAAO,GAAGgB,EAAE,eAAe,OAAO,EAAE,eAAe,GAAK,QAAQ,MAAM,QAAQC,EAAI,cAAcjB,EAAO,SAAS,OAAO,mBAAmBS,EAAa,QAAQ,EAAE,cAAcS,EAAO,EAAE,CAAE,MAAM,CAAC,CAAC,CAA2N,SAASC,EAAQ,EAAE,EAAE,CAAC,IAAMC,EAAIC,GAAG,OAAOA,EAAE,YAAa,UAAUA,EAAE,WAAW,KAAK,GAAG,CAACC,EAAQD,EAAE,UAAU,EAAEA,EAAE,WAAWE,EAAE,OAAaC,EAAK,WAAW,OAAOH,GAAG,QAAQ,CAAC,EAAQI,EAAGJ,GAAG,eAAe,MAAMA,EAAE,gBAAgB,GAAG,OAAOA,EAAE,eAAgB,SAAS,GAAGA,EAAE,cAAc,IAAIA,EAAE,cAAcE,EAAE,UAAU,SAAS,MAAM,eAAeH,EAAI,eAAeC,GAAG,YAAYE,EAAE,OAAO,cAAcF,GAAG,WAAW,SAAS,aAAa,OAAO,SAASG,CAAI,GAAGA,EAAK,EAAEA,EAAKD,EAAE,KAAK,iBAAiBF,GAAG,YAAYE,EAAE,KAAK,kBAAkBE,GAAK,CAA0E,SAASC,GAAY,CAAC,GAAG,CAAC,IAAML,EAAE,KAAK,MAAMrB,EAAO,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