{"version":3,"file":"DiamondApplicationsGrid.DptKThMj.mjs","names":["c","__esmMin","p","c","init_jsx_runtime","init_framer_DKgW_P28","addPropertyControls","ControlType","Corner","c$1","cls","MaterialGrid","className","items","it","i","DiamondApplicationsGrid","INTRO","props","BASE_CSS","CSS","introHeading","intro","heading","withDefaults","APPS","CORNERS","LEGACY_APP_IMAGES","init_DiamondApplicationsGrid","defaults","img","def"],"sources":["https:/framerusercontent.com/modules/hvqeCmRhOzWxor4LIKe6/BswXPv16en4QLdA6MRfl/DiamondApplicationsGrid.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// /diamonds \"Jewellery Diamonds\" intro + \"Diamond cutting applications\" (reference:\n// synova.ch/main-application-areas/diamonds, the first two sections; measured\n// 1700/1440/1280/1100/1024/810/600/390). The intro lives here, not on the canvas, so its\n// type follows the same fluid scale as the rest of the page across Framer's 810–1439 Tablet range.\n// Also exports the page's shared pieces (base CSS, corners, material grid) for the other\n// Diamond* components. Layout = CSS container queries on .dia; never style .dia itself\n// inside @container (an element can't query itself).\n// Reference type/spacing, fluid between its measured points:\n// h2 42px ≥1240 → 28px ≤810, body 19px ≥1024 → 17px ≤810, section padding 80 → 40, gutters 20 → 12.\n// Every Diamond* component emits this block again, so it's wrapped in :where() (zero\n// specificity): a later copy must never override an earlier component's own rules.\n// h2/p keep their element (0,0,1) so the margins beat Framer's `h1…h6,p{margin:0}` reset\n// (same specificity, later in the document); a bare :where() lost to it.\nexport const BASE_CSS=`\n:where(.dia){container-type:inline-size;width:100%;font-family:'Inter',sans-serif;color:#333;--acc:#00923F}\n:where(.dia-in){--g:clamp(12px,3cqw,20px);--pv:clamp(40px,calc(5cqw + 16px),80px);position:relative;box-sizing:border-box;max-width:1480px;margin:0 auto;padding:var(--pv) var(--g)}\nh2:where(.dia-h2){margin:0 0 24px;font-size:clamp(28px,calc(3.256cqw + 1.6px),42px);line-height:1.33;font-weight:800;color:#000}\np:where(.dia-p){margin:0 0 19px;font-size:clamp(17px,calc(.935cqw + 9.4px),19px);line-height:1.6}\n:where(.dia-c){position:absolute;display:block;pointer-events:none}\n:where(.dia-mat){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:40px;list-style:none;margin:0;padding:0}\n:where(.dia-mat img){display:block;width:100%;height:160px;object-fit:cover;border-radius:20px;margin:0 0 16px;background:#E7EBF3}\n:where(.dia-mat h3){margin:0;font-size:clamp(14px,calc(2.05cqw + 3.6px),22px);line-height:1.3;font-weight:700;color:#000}\n:where(.dia-mat p){margin:0;font-size:15px;line-height:1.5}\n@container (max-width:1199.98px){:where(.dia-mat){grid-template-columns:repeat(3,minmax(0,1fr))}}\n@container (max-width:699.98px){:where(.dia-mat){grid-template-columns:repeat(2,minmax(0,1fr))}}\n@container (max-width:479.98px){:where(.dia-mat){grid-template-columns:1fr}:where(.dia-mat img){height:auto;aspect-ratio:367/192}:where(.dia-mat p){font-size:14px}}\n`;// Reference band corners (viewBox paths copied from synova.ch). Size them with CSS.\nexport const CORNERS={// white notch, top-right of a grey band (148×378)\ntrTall:{w:148,h:378,d:\"M30 308C30 330.091 47.9086 348 70 348L117 348C133.569 348 147 361.431 147 378L148 378L148 0L0 0L0 1C16.569 1 30 14.431 30 31L30 308Z\"},// grey tab, top-left of the white section after a grey band (148×378)\ntlTall:{w:148,h:378,d:\"M118 308C118 330.091 100.091 348 78 348L31 348C14.431 348 1 361.431 1 378L0 378L0 0L148 0L148 1C131.431 1 118 14.431 118 31L118 308Z\"},// white notch, top-right of the expert band (378×148)\ntrWide:{w:378,h:148,d:\"M70 118C47.909 118 30 100.091 30 78V31C30 14.431 16.569 1 0 1V0L378 0V148H377C377 131.431 363.569 118 347 118L70 118Z\"},// white notch, bottom-left of the expert band (148×378)\nblTall:{w:148,h:378,d:\"M118 70C118 47.909 100.091 30 78 30L31 30C14.431 30 1 16.569 1 0L0 0L0 378L148 378L148 377C131.431 377 118 363.569 118 347L118 70Z\"}};export function Corner({c,cls,fill}){return /*#__PURE__*/_jsx(\"svg\",{className:\"dia-c \"+cls,viewBox:`0 0 ${c.w} ${c.h}`,\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:c.d,fill:fill})});}// Map old placeholder images to new authentic diamond images if passed by canvas props\nconst LEGACY_APP_IMAGES={\"https://framerusercontent.com/images/QkV7XcgCRQJbvnKns5Dctq31gs.jpg\":\"https://framerusercontent.com/images/CkIDHqjNzpgE4CIxWS3MPSivIxo.jpg\",\"https://framerusercontent.com/images/nkSmsy67r1aNeC6AnKZjquZBw.jpg\":\"https://framerusercontent.com/images/mHWk3lj8a0SShG9vYKXM4tdJCs.jpg\",\"https://framerusercontent.com/images/07z64UDPpFli43Jo40bp6Q1EYjA.jpg\":\"https://framerusercontent.com/images/mHWk3lj8a0SShG9vYKXM4tdJCs.jpg\",\"https://framerusercontent.com/images/wytACDV8BZleOzLG2clcHDX1M7I.jpg\":\"https://framerusercontent.com/images/avvNp1zE5KtmMlVFaQZchhrDDME.jpg\",\"https://framerusercontent.com/images/oTT5kuPaVDupgdua5KANhiPmep4.jpg\":\"https://framerusercontent.com/images/CkIDHqjNzpgE4CIxWS3MPSivIxo.jpg\",\"https://framerusercontent.com/images/REv9JZGWrJQ1lT1YHgLtwBlNsFY.jpg\":\"https://framerusercontent.com/images/mHWk3lj8a0SShG9vYKXM4tdJCs.jpg\",\"https://framerusercontent.com/images/7AFjtFRu6GYPpdIMNx3jq7fVLM.jpg\":\"https://framerusercontent.com/images/avvNp1zE5KtmMlVFaQZchhrDDME.jpg\",\"https://framerusercontent.com/images/FbDyyeuIvgsI7OzCX0kszbotHpA.jpg\":\"https://framerusercontent.com/images/vUw9fIacvoj7Vt2Tf2b6xOaPwo.jpg\",\"https://framerusercontent.com/images/9ThPvw97HzRi6fvDYk8O4iQrSgc.jpg\":\"https://framerusercontent.com/images/vUw9fIacvoj7Vt2Tf2b6xOaPwo.jpg\"};// Framer drops images from Array control defaults, so fall back to the built-in list by index.\nexport const withDefaults=(items,defaults)=>{if(!items||items.length===0||items.length!==defaults.length){return defaults;}return defaults.map((def,i)=>{const it=items[i];let img=it?.image||def.image;if(!it?.image||LEGACY_APP_IMAGES[it.image]){img=def.image;}return{...def,...it,image:img};});};export function MaterialGrid({items,className}){return /*#__PURE__*/_jsx(\"ul\",{className:`dia-mat ${className||\"\"}`.trim(),children:items.map((it,i)=>/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"img\",{src:it.image,alt:it.title,loading:\"lazy\"}),/*#__PURE__*/_jsx(\"h3\",{children:it.title}),it.text&&/*#__PURE__*/_jsx(\"p\",{children:it.text})]},i))});}// Greenwave's diamond cutting applications per user specification:\n// 1. Fancy Shape cutting\n// 2. Laser Sawing\n// 3. Pie Cutting\n// 4. Hole Drilling\nconst APPS=[{title:\"Fancy Shape cutting\",image:\"https://framerusercontent.com/images/CkIDHqjNzpgE4CIxWS3MPSivIxo.jpg\"},{title:\"Laser Sawing\",image:\"https://framerusercontent.com/images/mHWk3lj8a0SShG9vYKXM4tdJCs.jpg\"},{title:\"Pie Cutting\",image:\"https://framerusercontent.com/images/avvNp1zE5KtmMlVFaQZchhrDDME.jpg\"},{title:\"Hole Drilling\",image:\"https://framerusercontent.com/images/vUw9fIacvoj7Vt2Tf2b6xOaPwo.jpg\"}];// Copy: journey PDF (2002 Scorpion, 2003 Orbit, Green Mark, 2024 SDM-50) + Spectra/Spectrum brochures.\nconst INTRO=`Greenwave has been building laser diamond cutting machines since 2002. Our journey began with the lamp-pumped Scorpion, followed by Orbit, India’s first laser bruiting and coning machine, and Green Mark, India’s first diode-pumped green laser diamond cutting machine. Today our Spectra, Spectrum and Scorpion green laser systems and the SDM-50 Water-Guided Laser, launched in 2024, help diamond manufacturers cut with low weight loss and a next to “nil” breakage ratio.\n\nEvery machine is designed and built in Surat, at the heart of India’s diamond industry, for the cuts manufacturers make every day: fancy shape cutting, laser sawing, pie cutting, and hole drilling, as well as slice and core cutting. Easy, smart programming and auto image capture keep production simple, and Spectra uses 70% less electricity than other green laser machines.\n\nExplore below how our machines fit into the diamond cutting journey, and see them at work in our own videos.`;const CSS=`\n.dag-intro{padding-bottom:0}\n.dag-intro .dia-p{margin:0 0 30px}\n.dag-intro .dia-p:last-child{margin-bottom:19px}\n.dag-mat{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:32px}\n.dag-mat li{display:flex;flex-direction:column}\n.dag-mat img{height:190px!important;object-fit:cover;border-radius:20px;background:#fff;border:1px solid rgba(0,0,0,0.06);box-shadow:0 2px 10px rgba(0,0,0,0.03);margin:0 0 16px;transition:transform .3s ease,box-shadow .3s ease}\n.dag-mat li:hover img{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.08)}\n.dag-mat h3{margin:0;font-size:clamp(17px,calc(1.2cqw + 6px),22px)!important;line-height:1.3;font-weight:700;color:#000}\n@container (max-width:1023.98px){\n  .dag-mat{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px}\n  .dag-mat img{height:200px!important}\n}\n@container (max-width:539.98px){\n  .dag-mat{grid-template-columns:1fr!important;gap:24px}\n  .dag-mat img{height:auto!important;aspect-ratio:4/3!important}\n}\n`;/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function DiamondApplicationsGrid(props){const{introHeading=\"Jewellery diamonds\",intro=INTRO,heading=\"Diamond cutting applications performed by our lasers\"}=props;return /*#__PURE__*/_jsxs(\"section\",{className:\"dia\",style:props.style,children:[/*#__PURE__*/_jsx(\"style\",{children:BASE_CSS+CSS}),(introHeading||intro)&&/*#__PURE__*/_jsxs(\"div\",{className:\"dia-in dag-intro\",children:[introHeading&&/*#__PURE__*/_jsx(\"h2\",{className:\"dia-h2\",children:introHeading}),intro.split(/\\n\\s*\\n/).map((p,i)=>/*#__PURE__*/_jsx(\"p\",{className:\"dia-p\",children:p},i))]}),/*#__PURE__*/_jsxs(\"div\",{className:\"dia-in\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"dia-h2\",children:heading}),/*#__PURE__*/_jsx(MaterialGrid,{items:withDefaults(props.applications,APPS),className:\"dag-mat\"})]})]});}addPropertyControls(DiamondApplicationsGrid,{introHeading:{type:ControlType.String,title:\"Intro Heading\",defaultValue:\"Jewellery diamonds\"},intro:{type:ControlType.String,title:\"Intro\",displayTextArea:true,defaultValue:INTRO},heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Diamond cutting applications performed by our lasers\"},applications:{type:ControlType.Array,title:\"Applications\",maxCount:10,control:{type:ControlType.Object,controls:{image:{type:ControlType.Image,title:\"Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Application\"}}},defaultValue:APPS}});\nexport const __FramerMetadata__ = {\"exports\":{\"Corner\":{\"type\":\"reactComponent\",\"name\":\"Corner\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"MaterialGrid\":{\"type\":\"reactComponent\",\"name\":\"MaterialGrid\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"CORNERS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"DiamondApplicationsGrid\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"withDefaults\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BASE_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Material\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DiamondApplicationsGrid.map"],"mappings":"A,mKA+B6J,SAAgBQ,EAAO,CAAC,EAAAC,EAAE,MAAI,QAAM,CAAC,MAAoB,gBAAK,MAAM,CAAC,UAAU,SAASC,EAAI,QAAQ,OAAOV,EAAE,EAAE,GAAGA,EAAE,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