{"version":3,"file":"Create_SaveYourDesign_Test.CoZgoLay.mjs","names":["useRef","useState","_Fragment","useRef","useState","error","promo","useState","useRef","React","tracking"],"sources":["https:/framerusercontent.com/modules/yc2XJxyxdwHsOHbwxY7A/FQfte0BDokmYqhqZAMk2/GoogleButton_Test.js","https:/framerusercontent.com/modules/5H6jLAHmTDxtnDvpzE76/k9lNEcjZXrBoQJULstdE/Create_SaveYourDesignInput_Test.js","https:/framerusercontent.com/modules/EYW7hnHTTx9LO8bg7Bbo/mS5N8K6BCwcYqV4DrihL/utils_CreateSaveDesign.js","https:/framerusercontent.com/modules/Tegr1u830ah9SEz5Wrrc/NWy02LXj5tKEcB4tIVma/utils_CreateContinueUrls.js","https:/framerusercontent.com/modules/OP3npxIXqfRldkHIlBRe/vJkfeEnyI5HaDGrckPYW/Create_SaveYourDesign_Test.js"],"sourcesContent":["// TEST VERSION of GoogleButton — used on /sd-test page only\n// Adds success state + auto-detect returning Google users via localStorage\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";const GOOGLE_CLIENT_ID=\"949990311987-ei3op0ol2ivpr2lp83524vevpk96ro7k.apps.googleusercontent.com\";const STORAGE_KEY=\"tns_google_user\";function getStoredUser(){try{const raw=localStorage.getItem(STORAGE_KEY);if(!raw)return null;return JSON.parse(raw);}catch{return null;}}function setStoredUser(user){try{localStorage.setItem(STORAGE_KEY,JSON.stringify(user));}catch{// localStorage not available\n}}function clearStoredUser(){try{localStorage.removeItem(STORAGE_KEY);}catch{// localStorage not available\n}}/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function GoogleButton_Test({handleEmailUpdate,handleAutoDetect,handleDismiss,handleError,style:cssStyle}){const hiddenButtonRef=useRef(null);const[isLoading,setIsLoading]=useState(false);const[scriptLoaded,setScriptLoaded]=useState(false);// User info (from localStorage or explicit sign-in)\nconst[signedInEmail,setSignedInEmail]=useState(null);const[signedInName,setSignedInName]=useState(null);const[signedInPicture,setSignedInPicture]=useState(null);const[dismissed,setDismissed]=useState(false);const[isAutoDetected,setIsAutoDetected]=useState(false);const decodeJWT=token=>{try{const parts=token.split(\".\");if(parts.length!==3){throw new Error(\"Invalid JWT token format\");}const payload=parts[1];const base64=payload.replace(/-/g,\"+\").replace(/_/g,\"/\");const paddedBase64=base64+\"=\".repeat((4-base64.length%4)%4);const decodedPayload=atob(paddedBase64);return JSON.parse(decodedPayload);}catch(error){console.error(\"Error decoding JWT:\",error);return null;}};const handleCredentialResponse=response=>{try{const decodedToken=decodeJWT(response.credential);if(decodedToken){const email=decodedToken.email;const name=decodedToken.name||null;const picture=decodedToken.picture||null;setSignedInEmail(email);setSignedInName(name);setSignedInPicture(picture);setIsLoading(false);setDismissed(false);setIsAutoDetected(false);// Persist for next visit\nsetStoredUser({email,...name?{name}:{},...picture?{picture}:{}});// User explicitly clicked — auto-save after showing success\nsetTimeout(()=>{handleEmailUpdate(email);},1500);}}catch(error){console.error(\"Error decoding JWT:\",error);handleError(\"Could not capture email address\");setIsLoading(false);}};const handleUseDifferentEmail=()=>{setSignedInEmail(null);setSignedInName(null);setSignedInPicture(null);setDismissed(true);setIsAutoDetected(false);clearStoredUser();if(window.google?.accounts?.id){window.google.accounts.id.disableAutoSelect();}if(handleDismiss){handleDismiss();}};// Initialize GIS and render the hidden button — safe to call multiple times\nconst ensureGoogleReady=()=>{if(typeof window===\"undefined\"||!window.google?.accounts?.id){return;}try{window.google.accounts.id.initialize({client_id:GOOGLE_CLIENT_ID,callback:handleCredentialResponse,ux_mode:\"popup\",auto_prompt:false,auto_select:false});if(hiddenButtonRef.current){// Clear any previous render\nhiddenButtonRef.current.innerHTML=\"\";window.google.accounts.id.renderButton(hiddenButtonRef.current,{type:\"standard\",theme:\"outline\",size:\"large\",width:300});}}catch(error){console.error(\"Error initializing Google Sign In:\",error);}};const handleGoogleButtonClick=()=>{setIsLoading(true);// Make sure GIS is ready and hidden button is rendered\nensureGoogleReady();// Small delay to let renderButton finish creating the inner elements\nsetTimeout(()=>{if(hiddenButtonRef.current){const innerButton=hiddenButtonRef.current.querySelector('div[role=\"button\"]');if(innerButton){innerButton.click();return;}const iframe=hiddenButtonRef.current.querySelector(\"iframe\");if(iframe){iframe.click();return;}}// If nothing to click, reset loading\nsetIsLoading(false);},100);setTimeout(()=>setIsLoading(false),3e3);};// On mount: check localStorage for returning user\nuseEffect(()=>{const stored=getStoredUser();if(stored&&stored.email){setSignedInEmail(stored.email);setSignedInName(stored.name||null);setSignedInPicture(stored.picture||null);setIsAutoDetected(true);if(handleAutoDetect){handleAutoDetect(stored.email);}}},[]);// Initialize GIS when script loads\nuseEffect(()=>{if(scriptLoaded){ensureGoogleReady();}},[scriptLoaded]);useEffect(()=>{if(window.google?.accounts?.id){setScriptLoaded(true);}},[]);// Re-initialize when dismissed changes (hidden div now in DOM)\nuseEffect(()=>{if(dismissed&&scriptLoaded){ensureGoogleReady();}},[dismissed,scriptLoaded]);// Shared elements: script tag + hidden button div (always in DOM)\nconst sharedElements=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"script\",{src:\"https://accounts.google.com/gsi/client\",async:true,onLoad:()=>{setScriptLoaded(true);}}),/*#__PURE__*/_jsx(\"div\",{ref:hiddenButtonRef,style:{position:\"absolute\",opacity:0,pointerEvents:\"none\",width:0,height:0,overflow:\"hidden\"}})]});// Auto-detected returning user — show their info + \"use different email\" link\nif(signedInEmail&&isAutoDetected&&!dismissed){return /*#__PURE__*/_jsxs(\"div\",{style:detectedWrapperStyle,children:[sharedElements,/*#__PURE__*/_jsx(\"div\",{style:detectedContainerStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:detectedRowStyle,children:[signedInPicture?/*#__PURE__*/_jsx(\"img\",{src:signedInPicture,alt:\"\",style:avatarStyle,referrerPolicy:\"no-referrer\"}):/*#__PURE__*/_jsx(\"div\",{style:avatarFallbackStyle,children:(signedInName||signedInEmail)[0].toUpperCase()}),/*#__PURE__*/_jsxs(\"div\",{style:detectedTextWrapStyle,children:[signedInName&&/*#__PURE__*/_jsx(\"div\",{style:detectedNameStyle,children:signedInName}),/*#__PURE__*/_jsx(\"div\",{style:detectedEmailStyle,children:signedInEmail})]}),/*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 18 18\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0,opacity:.5},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z\",fill:\"#4285F4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 009 18z\",fill:\"#34A853\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M3.964 10.71A5.41 5.41 0 013.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 000 9c0 1.452.348 2.827.957 4.042l3.007-2.332z\",fill:\"#FBBC05\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 00.957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z\",fill:\"#EA4335\"})]})]})}),/*#__PURE__*/_jsx(\"a\",{href:\"#\",onClick:e=>{e.preventDefault();handleUseDifferentEmail();},style:useDifferentEmailStyle,children:\"Use a different email\"})]});}// Explicit sign-in success — green confirmation + auto-saving\nif(signedInEmail&&!isAutoDetected&&!dismissed){return /*#__PURE__*/_jsxs(\"div\",{style:successContainerStyle,children:[sharedElements,/*#__PURE__*/_jsxs(\"div\",{style:successRowStyle,children:[signedInPicture?/*#__PURE__*/_jsx(\"img\",{src:signedInPicture,alt:\"\",style:avatarStyle,referrerPolicy:\"no-referrer\"}):/*#__PURE__*/_jsx(\"div\",{style:avatarFallbackStyle,children:(signedInName||signedInEmail)[0].toUpperCase()}),/*#__PURE__*/_jsxs(\"div\",{style:detectedTextWrapStyle,children:[signedInName&&/*#__PURE__*/_jsx(\"div\",{style:successNameStyle,children:signedInName}),/*#__PURE__*/_jsx(\"div\",{style:successEmailStyle,children:signedInEmail})]}),/*#__PURE__*/_jsxs(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"10\",cy:\"10\",r:\"10\",fill:\"#10B981\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M6 10.5L8.5 13L14 7.5\",stroke:\"white\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]})]}),/*#__PURE__*/_jsx(\"div\",{style:savingTextStyle,children:\"Saving your design...\"})]});}// Default: show \"Continue with Google\" button\nreturn /*#__PURE__*/_jsxs(_Fragment,{children:[sharedElements,/*#__PURE__*/_jsxs(\"button\",{onClick:handleGoogleButtonClick,disabled:isLoading,style:{...buttonStyle,...cssStyle?{...cssStyle}:{},...isLoading?{opacity:.6,cursor:\"not-allowed\"}:{}},onMouseEnter:e=>{if(!isLoading){e.currentTarget.style.backgroundColor=\"#F9FAFB\";e.currentTarget.style.borderColor=\"#9AABB5\";}},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=\"#fff\";e.currentTarget.style.borderColor=\"#ACB7C2\";},\"aria-label\":\"Continue with Google\",children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 18 18\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z\",fill:\"#4285F4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 009 18z\",fill:\"#34A853\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M3.964 10.71A5.41 5.41 0 013.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 000 9c0 1.452.348 2.827.957 4.042l3.007-2.332z\",fill:\"#FBBC05\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 00.957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z\",fill:\"#EA4335\"})]}),isLoading?\"Signing in...\":\"Continue with Google\"]})]});}const buttonStyle={width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:\"10px\",padding:\"12px 24px\",backgroundColor:\"#fff\",border:\"1px solid #ACB7C2\",borderRadius:\"6px\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontSize:\"14px\",fontWeight:500,color:\"#1F2937\",cursor:\"pointer\",transition:\"background 0.15s, border-color 0.15s\",boxShadow:\"none\"};const detectedWrapperStyle={width:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"8px\"};const detectedContainerStyle={width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"0px\",padding:\"10px 12px\",backgroundColor:\"#F9FAFB\",border:\"1px solid #E5E7EB\",borderRadius:\"6px\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif'};const detectedRowStyle={display:\"flex\",alignItems:\"center\",gap:\"10px\",width:\"100%\"};const detectedTextWrapStyle={flex:1,minWidth:0,display:\"flex\",flexDirection:\"column\",gap:\"1px\"};const detectedNameStyle={fontSize:\"13px\",fontWeight:500,color:\"#111827\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const detectedEmailStyle={fontSize:\"12px\",fontWeight:400,color:\"#6B7280\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const useDifferentEmailStyle={fontSize:\"12px\",fontWeight:400,color:\"#9CA3AF\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',textDecoration:\"underline\",cursor:\"pointer\",textUnderlineOffset:\"2px\"};const successContainerStyle={width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"10px\",padding:\"14px 16px\",backgroundColor:\"#F0FDF4\",border:\"1px solid #BBF7D0\",borderRadius:\"6px\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif'};const successRowStyle={display:\"flex\",alignItems:\"center\",gap:\"10px\",width:\"100%\"};const avatarStyle={width:\"32px\",height:\"32px\",borderRadius:\"50%\",flexShrink:0,objectFit:\"cover\"};const avatarFallbackStyle={width:\"32px\",height:\"32px\",borderRadius:\"50%\",flexShrink:0,backgroundColor:\"#10B981\",color:\"#fff\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"14px\",fontWeight:600};const successNameStyle={fontSize:\"13px\",fontWeight:500,color:\"#111827\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const successEmailStyle={fontSize:\"12px\",fontWeight:400,color:\"#6B7280\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const savingTextStyle={fontSize:\"12px\",fontWeight:400,color:\"#059669\",textAlign:\"center\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleButton_Test\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoogleButton_Test.map","// TEST VERSION — uses GoogleButton_Test with success state + auto-detect\n// Used on /sd-test page only — does not affect live modal\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{euCountryCodes}from\"https://framerusercontent.com/modules/uEbYfRswpEkLoguEXuyc/aJGVne8id8ZJMOpoLekR/store_Country.js\";import GoogleButton_Test from\"https://framerusercontent.com/modules/yc2XJxyxdwHsOHbwxY7A/FQfte0BDokmYqhqZAMk2/GoogleButton_Test.js\";import AppleButton from\"https://framerusercontent.com/modules/KvbKKSrcxpHsvTV9cn5c/B5JgFjmXK5VJCHmaxolO/AppleButton.js\";const ENABLE_APPLE=false;const defaultChecked=true;// /////////////////////////////////////////////////////////////////\n// COMPONENT\n// /////////////\nexport default function Create_SaveYourDesignInput_Test({saveDesignOrAddToCart,countryCode,errorMessage,showSkip,showBookletNotice,showVariant}){const emailRef=useRef(null);const consentRef=useRef(null);const[isEu,setIsEu]=useState(euCountryCodes.includes(countryCode));const[error,setError]=useState(\"\");const[googleEmail,setGoogleEmail]=useState(null);const[twoStageModalStageTwo,setTwoStageModalStageTwo]=useState(false);useEffect(()=>{if(twoStageModalStageTwo){try{emailRef?.current?.focus();}catch{// ignore\n}}},[twoStageModalStageTwo]);useEffect(()=>{setIsEu(euCountryCodes.includes(countryCode));},countryCode);const handleSaveDesignClick=()=>{event.preventDefault();let email=\"\";let emailConsent=false;try{if(!emailRef.current){// If Google auto-detected an email, use that\nif(googleEmail){saveDesignOrAddToCart(googleEmail,true);return;}return;}email=emailRef.current?.value;emailConsent=consentRef.current?.checked===true;if(!email){if(googleEmail){email=googleEmail;emailConsent=true;}else{setError(\"You must include a valid email address to save your design\");return;}}}catch(error){//\n}saveDesignOrAddToCart(email,emailConsent);};const handleSkipSaveDesignClick=()=>{event.preventDefault();saveDesignOrAddToCart();};const handleEmailUpdate=email=>{setGoogleEmail(email);if(emailRef.current){emailRef.current.value=email;}saveDesignOrAddToCart(email,true);};const handleGoogleAutoDetect=email=>{// Auto-detected returning user — pre-fill email but don't save yet\nsetGoogleEmail(email);if(emailRef.current){emailRef.current.value=email;}};const handleGoogleDismiss=()=>{// User clicked \"Use a different email\" — clear Google state, show email input\nsetGoogleEmail(null);};const handleGoogleButtonError=message=>{console.error(`Google Auth Error: ${message}`);};const handleAppleButtonError=message=>{console.error(`Apple Auth Error: ${message}`);};const renderLoginButtons=()=>{return /*#__PURE__*/_jsxs(\"div\",{style:{...loginButtonColumnStyle,...googleEmail?{paddingBottom:\"24px\"}:{}},children:[ENABLE_APPLE&&/*#__PURE__*/_jsx(AppleButton,{handleEmailUpdate:handleEmailUpdate,handleError:handleAppleButtonError}),/*#__PURE__*/_jsx(GoogleButton_Test,{handleEmailUpdate:handleEmailUpdate,handleAutoDetect:handleGoogleAutoDetect,handleDismiss:handleGoogleDismiss,handleError:handleGoogleButtonError}),!googleEmail&&/*#__PURE__*/_jsxs(\"div\",{style:dividerContainerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:dividerLineStyle}),/*#__PURE__*/_jsx(\"span\",{style:dividerTextStyle,children:\"or save with email\"}),/*#__PURE__*/_jsx(\"div\",{style:dividerLineStyle})]})]});};return /*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSaveDesignClick,children:[showVariant&&renderLoginButtons(),/*#__PURE__*/_jsxs(\"div\",{style:saveYourDesignStyle,children:[!googleEmail&&/*#__PURE__*/_jsx(\"input\",{style:emailInputStyle,type:\"email\",name:\"email\",placeholder:\"Enter Your Email Address\",ref:emailRef}),!googleEmail&&showBookletNotice&&/*#__PURE__*/_jsx(\"div\",{style:bookletNoticeStyle,children:\"You will receive a preview of the map you have designed along with a separate map legend detailing the constellations visible on your custom star map.\"}),!googleEmail&&/*#__PURE__*/_jsxs(\"div\",{style:termsStyle,children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",id:\"consent\",name:\"consent\",ref:consentRef,defaultChecked:isEu===false||defaultChecked}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"consent\",style:termsLabelStyle,children:\"I agree to receive exclusive savings, updates and info\"})]}),errorMessage&&/*#__PURE__*/_jsx(\"p\",{style:errorTextStyle,children:errorMessage}),/*#__PURE__*/_jsx(\"div\",{style:!showVariant?{margin:\"0px 0px 24px 0px\"}:{},children:/*#__PURE__*/_jsx(\"button\",{style:saveMyDesignLinkStyle,type:\"submit\",children:\"SAVE MY DESIGN\"})}),showSkip!==false&&/*#__PURE__*/_jsx(\"a\",{style:skipLinkStyle,href:\"#\",onClick:handleSkipSaveDesignClick,children:\"SKIP\"})]})]});}// ////////////////////////////////////////////////////////////////\n// COMPONENT PROPS:\n// ///////////\nCreate_SaveYourDesignInput_Test.defaultProps={saveDesignOrAddToCart:(email,emailConsent)=>{},countryCode:\"\",errorMessage:\"\",showSkip:true,showVariant:false};addPropertyControls(Create_SaveYourDesignInput_Test,{saveDesignOrAddToCart:{type:ControlType.EventHandler},countryCode:{type:ControlType.String,defaultValue:\"\"},errorMessage:{type:ControlType.String,defaultValue:\"\"},showSkip:{type:ControlType.Boolean,defaultValue:false},showVariant:{type:ControlType.Boolean,defaultValue:false}});// ////////////////////////////////////////////////////////////////\n// CSS STYLES\n// ///////////\nconst saveYourDesignStyle={position:\"relative\",textAlign:\"center\",display:\"flex\",flexDirection:\"column\",gap:\"8px\",width:\"100%\"};const emailInputStyle={width:\"100%\",height:\"43px\",textAlign:\"center\",backgroundColor:\"rgba(255, 255, 255, 0)\",border:\"1px solid #ACB7C2\",borderRadius:\"6px\",padding:\"12px\",outline:\"none\",whiteSpace:\"pre\",fontWeight:400,fontStyle:\"normal\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',color:\"#000\",fontSize:\"12px\",letterSpacing:\"0px\",lineHeight:1.4};const bookletNoticeStyle={display:\"flex\",justifyContent:\"flex-start\",alignItems:\"flex-start\",fontWeight:300,fontStyle:\"normal\",color:\"rgb(131, 139, 147)\",fontSize:\"10px\",letterSpacing:\"0.13px\",lineHeight:1.2,cursor:\"pointer\",gap:\"4px\",maxWidth:\"340px\",textAlign:\"left\"};const termsStyle={display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",fontWeight:300,fontStyle:\"normal\",color:\"rgb(18, 24, 36)\",fontSize:\"10px\",letterSpacing:\"0.13px\",lineHeight:1.4,cursor:\"pointer\",gap:\"4px\",padding:\"4px 0\"};const termsLabelStyle={fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',color:\"rgb(131, 139, 147)\",cursor:\"pointer\",userSelect:\"none\"};const skipLinkStyle={fontWeight:300,fontStyle:\"normal\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',color:\"rgb(18, 24, 36)\",fontSize:\"14px\",letterSpacing:\"0.13px\",lineHeight:1.4};const errorTextStyle={fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',marginTop:\"16px\",fontWeight:600,fontStyle:\"normal\",color:\"#f00\",fontSize:\"10px\",letterSpacing:\"0px\",lineHeight:1.4};const saveMyDesignLinkStyle={height:\"50px\",width:\"100%\",backgroundColor:\"rgb(18, 24, 36)\",border:\"none\",borderRadius:\"999px\",padding:\"0px 8px 0px 8px\",whiteSpace:\"pre\",fontWeight:400,fontStyle:\"normal\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',color:\"#ffffff\",fontSize:\"14px\",letterSpacing:\"2px\",lineHeight:1.4,cursor:\"pointer\",userSelect:\"none\"};const loginButtonColumnStyle={display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",paddingBottom:\"4px\",gap:\"0px\",width:\"100%\"};const dividerContainerStyle={display:\"flex\",alignItems:\"center\",gap:\"12px\",width:\"100%\",padding:\"12px 0\"};const dividerLineStyle={flex:1,height:\"1px\",backgroundColor:\"#E5E7EB\"};const dividerTextStyle={fontSize:\"12px\",color:\"#9CA3AF\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontWeight:400,whiteSpace:\"nowrap\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Create_SaveYourDesignInput_Test\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{getStarMapJewelrySku}from\"https://framerusercontent.com/modules/KYsdNQQbOOPfSKUhrJi1/dGQMzt7E45c5ph0pOn44/utils_JewelrySku.js\";import{getStarMapPrintSku}from\"https://framerusercontent.com/modules/a8wELR7klhmQ2Qw6JnVs/S9VUEjuxzZS4Le1lp439/utils_PrintSku.js\";import{setTnsSessionData}from\"https://framerusercontent.com/modules/hVOQolyK4JiFCyR5tOtr/vbBIjAH2gXJf2PUZIEAN/utils_Cookies.js\";import{getTnsProps}from\"https://framerusercontent.com/modules/f5MemFRu7KXGzetUeQ0m/M3l6rVHoK960AERCuYrr/utils_TnsProps.js\";import{setProductPropsSessionStorage}from\"https://framerusercontent.com/modules/6NueQ0CouAFqjFEtYeCA/tIeJnDQYKyR2jruc6FvK/store_ProductPropsLocalStorage.js\";import promo from\"https://framerusercontent.com/modules/dS8EvCCZ7YznNbOLW9Uv/3IzGog3eooSoD6DtWpO9/promoStore.js\";// API URL\n// const baseApiSaveDesignUrl = `https://api-server.thenightsky.com/api/cart/urlTriggeredAddToCart`\nconst baseApiSaveDesignUrl=`https://api-server.thenightsky.com/api/framer/saveDesignAddOrCreateCart`;const baseApiCartInfoUrl=`https://api-server.thenightsky.com/api/framer/cart-info`;export async function getCartInfo(store){try{const apiData={cartId:store?.cartId||\"\",orderId:store?.orderId||\"\",customerId:store?.customerId||\"\"};const rawResponse=await fetch(baseApiCartInfoUrl,{method:\"POST\",headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\"},body:JSON.stringify(apiData)});return rawResponse.json();}catch(error){console.error(`Failed to get Cart from Props`);}return{};}export async function triggerSaveDesign(store,setStore,countryCode,email,consent){try{// ////////////\n// GET SKU\nlet tnsSku=\"\";if(store.productFormat===\"Jewelry\"){tnsSku=getStarMapJewelrySku(store.productFormat,store.jewelryPiece,store.jewelryMaterial,store.jewelrySize,store.jewelryBezelMount,store.jewelryChain);}else if(store.productFormat===\"Print\"){tnsSku=getStarMapPrintSku(store.printFormat,store.printTheme,store.printStyle,store.printLayout,store.printSize,store.printFrame,store.printFoilColor);}// ////////////\n// GET TNS PROPS\nconst tnsProps=getTnsProps(store);// Star signs:\n// const skuProps = {\n//     sign: jewelryStarSign,\n//     text: (jewelryEngraveText || \"\").trim(),\n// }\n// //////////////////////\n// BUILT URL PARAMETERS\n// ////////////\n// GET ORDER OR CART IDS * from Local Store\nconst{cartId,orderId,customerId}=store;//\nlet hostname;if(typeof window!==\"undefined\"&&window.location?.hostname){hostname=window.location.hostname;}// Get discount code if there is one\nconst discountCode=promo.getDiscountCode()||\"\";//\nconst apiData={orderId,customerId,atcSku:tnsSku||\"\",atcSkuProps:{...tnsProps},cartId,countryCode,atcSaveDesignProps:{email,consent:consent!==false},hostname,couponCode:discountCode};try{const rawResponse=await fetch(baseApiSaveDesignUrl,{method:\"POST\",headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\"},body:JSON.stringify(apiData,(key,value)=>{if(value!==null)return value;})});const result=await rawResponse.json();if(!result){console.error(`Save Design Failed`);}else{let itemId=\"\";if(result?.cart?.items?.length>0){const latestItem=result.cart.items[result.cart.items.length-1];itemId=latestItem.id;}//\n// SUCCESS\n//\nconst updatedStoreProps={...store,...result.cartId?{cartId:result.cartId}:{},...result.orderId?{orderId:result.orderId}:{},...result.customerId?{customerId:result.customerId}:{}};// Update store values for in page refresh\nawait setStore(updatedStoreProps);// Store Values\nsetTnsSessionData({...result.cartId?{cartId:result.cartId}:{},...result.orderId?{orderId:result.orderId}:{},...result.customerId?{customerId:result.customerId}:{}});if(result.orderId){setProductPropsSessionStorage(\"orderId\",result.orderId);if(result.customerId){setProductPropsSessionStorage(\"customerId\",result.customerId);}}else if(result.cartId){setProductPropsSessionStorage(\"cartId\",result.cartId);}return result;}}catch(error){console.error(`Error saving design`,error);}}catch(error){console.error(`Failed to get Create Url from Props`);}return null;}\nexport const __FramerMetadata__ = {\"exports\":{\"triggerSaveDesign\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCartInfo\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{getStarMapJewelrySku}from\"https://framerusercontent.com/modules/KYsdNQQbOOPfSKUhrJi1/dGQMzt7E45c5ph0pOn44/utils_JewelrySku.js\";import{getStarMapPrintSku}from\"https://framerusercontent.com/modules/a8wELR7klhmQ2Qw6JnVs/S9VUEjuxzZS4Le1lp439/utils_PrintSku.js\";import{getTnsProps}from\"https://framerusercontent.com/modules/f5MemFRu7KXGzetUeQ0m/M3l6rVHoK960AERCuYrr/utils_TnsProps.js\";const designUrl=\"https://www.thenightsky.com/design\";const cartUrl=\"https://www.thenightsky.com/checkout/cart\";export function getContinueUrl(addToCartNotPersonalize,productProps,countryCode,referringProduct,discountCode){let url=\"\";try{// ////////////\n// GET SKU\nlet tnsSku=\"\";let printProps={};if(productProps.productFormat===\"Jewelry\"){tnsSku=getStarMapJewelrySku(productProps.productFormat,productProps.jewelryPiece,productProps.jewelryMaterial,productProps.jewelrySize,productProps.jewelryBezelMount,productProps.jewelryChain);}else if(productProps.productFormat===\"Print\"){tnsSku=getStarMapPrintSku(productProps.printFormat,productProps.printTheme,productProps.printStyle,productProps.printLayout,productProps.printSize,productProps.printFrame,productProps.printFoilColor);}// // ////////////\n// // GET TNS PROPS\n// const tnsProps = {\n//     ...(printProps ? { ...printProps } : null),\n//     ...(productProps.textLocation\n//         ? { textLocation: productProps.textLocation }\n//         : null),\n//     ...(productProps.latitude\n//         ? { latitude: productProps.latitude }\n//         : null),\n//     ...(productProps.longitude\n//         ? { longitude: productProps.longitude }\n//         : null),\n//     ...(productProps.text ? { text: productProps.text } : null),\n//     ...(productProps.time ? { time: productProps.time } : null),\n//     ...(productProps.textDate\n//         ? { textDate: productProps.textDate }\n//         : null),\n//     ...(productProps.grid !== undefined && productProps.grid !== null\n//         ? { grid: productProps.grid }\n//         : null),\n//     ...(productProps.constellations !== undefined &&\n//     productProps.constellations !== null\n//         ? { constellations: productProps.constellations }\n//         : null),\n//     ...(productProps.moon !== undefined && productProps.moon !== null\n//         ? { moon: productProps.moon }\n//         : null),\n// }\nconst tnsProps=getTnsProps(productProps);// Star signs:\n// const skuProps = {\n//     sign: jewelryStarSign,\n//     text: (jewelryEngraveText || \"\").trim(),\n// }\n// //////////////////////\n// BUILT URL PARAMETERS\nlet urlParameters=[];// ////////////\n// GET ORDER OR CART IDS\nif(addToCartNotPersonalize){const{cartId,orderId,customerId}=productProps;if(orderId&&customerId){// Order Id trumps all\nurlParameters.push(`customerId=${customerId}`);urlParameters.push(`orderId=${orderId}`);}else if(cartId){urlParameters.push(`cartId=${cartId}`);}const itemId=productProps.itemId||\"\";if(itemId){urlParameters.push(`itemId=${itemId}`);}}// SKU\nif(tnsSku){if(addToCartNotPersonalize){urlParameters.push(`atcSku=${encodeURIComponent(tnsSku)}`);}else{urlParameters.push(`sku=${encodeURIComponent(tnsSku)}`);}}// Country Code\nif(countryCode){urlParameters.push(`tnscc=${countryCode}`);}if(discountCode){urlParameters.push(`code=${discountCode}`);}// Props\nif(Object.keys(tnsProps).length>0){if(addToCartNotPersonalize){urlParameters.push(`atcSkuProps=${encodeURIComponent(JSON.stringify(tnsProps))}`);}else{urlParameters.push(`skuProps=${encodeURIComponent(JSON.stringify(tnsProps))}`);}}// Referring Product\nif(referringProduct){urlParameters.push(`rp=${referringProduct}`);}// Continue URL:\nconst continueUrl=addToCartNotPersonalize?cartUrl:designUrl;const continueUrlParams=urlParameters.join(\"&\");return`${continueUrl}${continueUrlParams.length>0?\"?\":\"\"}${continueUrlParams}`;}catch(error){console.error(`Failed to get Create Url from Props`);}return\"\";}export var ContinueDestination;(function(ContinueDestination){ContinueDestination[\"PERSONALIZE\"]=\"personalize\";ContinueDestination[\"ADD_TO_CART\"]=\"add_to_cart\";ContinueDestination[\"REDIRECT_TO_CART\"]=\"redirect_to_cart\";})(ContinueDestination||(ContinueDestination={}));export function getCreatePlatformUrl(continueDestination,productProps,countryCode,referringProduct){let url=\"\";try{// ////////////\n// GET SKU\nlet tnsSku=\"\";if(productProps.productFormat===\"Jewelry\"){tnsSku=getStarMapJewelrySku(productProps.productFormat,productProps.jewelryPiece,productProps.jewelryMaterial,productProps.jewelrySize,productProps.jewelryBezelMount,productProps.jewelryChain);}else if(productProps.productFormat===\"Print\"){tnsSku=getStarMapPrintSku(productProps.printFormat,productProps.printTheme,productProps.printStyle,productProps.printLayout,productProps.printSize,productProps.printFrame,productProps.printFoilColor);}// ////////////\n// GET TNS PROPS\nconst tnsProps=getTnsProps(productProps);// Star signs:\n// const skuProps = {\n//     sign: jewelryStarSign,\n//     text: (jewelryEngraveText || \"\").trim(),\n// }\n// //////////////////////\n// BUILT URL PARAMETERS\nlet urlParameters=[];// Country Code\nif(countryCode){urlParameters.push(`tnscc=${countryCode}`);}// ////////////\n// GET ORDER OR CART IDS\nconst{cartId,orderId,customerId}=productProps;if(orderId&&customerId){// Order Id trumps all\nurlParameters.push(`customerId=${customerId}`);urlParameters.push(`orderId=${orderId}`);}else if(cartId){urlParameters.push(`cartId=${cartId}`);}const itemId=productProps.itemId||\"\";if(itemId){urlParameters.push(`itemId=${itemId}`);}// BUILD URL:\nlet url=designUrl;switch(continueDestination){default:case\"personalize\":// SKU\nif(tnsSku){urlParameters.push(`sku=${encodeURIComponent(tnsSku)}`);}// Props\nif(Object.keys(tnsProps).length>0){urlParameters.push(`skuProps=${encodeURIComponent(JSON.stringify(tnsProps))}`);}break;case\"add_to_cart\":url=cartUrl;// SKU\nif(tnsSku){urlParameters.push(`atcSku=${encodeURIComponent(tnsSku)}`);}// Props\nif(Object.keys(tnsProps).length>0){urlParameters.push(`atcSkuProps=${encodeURIComponent(JSON.stringify(tnsProps))}`);}break;case\"redirect_to_cart\":url=cartUrl;break;}// Referring Product\nif(referringProduct){urlParameters.push(`rp=${referringProduct}`);}const continueUrlParams=urlParameters.join(\"&\");return`${url}?${continueUrlParams}`;}catch(error){console.error(`Failed to get Create Platform Url from Props`);}return\"\";}export function getCartUrl(cartId,orderId,customerId,countryCode){try{// BUILT URL PARAMETERS\nlet urlParameters=[];if(orderId&&customerId){// Order Id trumps all\nurlParameters.push(`customerId=${customerId}`);urlParameters.push(`orderId=${orderId}`);}else if(cartId){urlParameters.push(`cartId=${cartId}`);}// Country Code\nif(countryCode){urlParameters.push(`tnscc=${countryCode}`);}return`${cartUrl}?${urlParameters.join(\"&\")}`;}catch(error){console.error(`Failed to get Create Platform Url from Props`);}return\"\";}\nexport const __FramerMetadata__ = {\"exports\":{\"getCreatePlatformUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCartUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ContinueDestination\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getContinueUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// TEST VERSION — identical to Create_SaveYourDesign but with showVariant={true}\n// Used on /sd-test page to preview Google Sign-In before enabling on live\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React,{useRef,useEffect,useState}from\"react\";//\nimport{store_Country}from\"https://framerusercontent.com/modules/uEbYfRswpEkLoguEXuyc/aJGVne8id8ZJMOpoLekR/store_Country.js\";import{store_Navigation}from\"https://framerusercontent.com/modules/G4SQKnmaF91AztVDb8DU/2vz2uDSE9QuDrC0YTMdT/store_Navigation.js\";import{store_ProductPropsStore}from\"https://framerusercontent.com/modules/XlGHH84z4WYiDTmjfihj/rQgF2VtYMfneJ23sY7di/store_ProductPropsStore.js\";//\nimport Create_SaveYourDesignCloseIcon from\"https://framerusercontent.com/modules/RzpgwlgqMNhmG4xWh8kT/iBafeB42zd81uz1V1Wlm/Create_SaveYourDesignCloseIcon.js\";import Create_SaveYourDesignInput_Test from\"https://framerusercontent.com/modules/5H6jLAHmTDxtnDvpzE76/k9lNEcjZXrBoQJULstdE/Create_SaveYourDesignInput_Test.js\";import{getCountryName}from\"https://framerusercontent.com/modules/8dsyUFjBJWRCD1jy9dTj/xNewDdlXEtWvGzZEoQge/utils_Countries.js\";import{triggerSaveDesign}from\"https://framerusercontent.com/modules/EYW7hnHTTx9LO8bg7Bbo/mS5N8K6BCwcYqV4DrihL/utils_CreateSaveDesign.js\";import{getCartUrl}from\"https://framerusercontent.com/modules/Tegr1u830ah9SEz5Wrrc/NWy02LXj5tKEcB4tIVma/utils_CreateContinueUrls.js\";//\nimport tracking from\"https://framerusercontent.com/modules/hf8dXdUvjqiYuDILvSsp/ir1EBWFVRWTqw4U5vFcg/utils_Tracking.js\";import{emailAnimationData}from\"https://framerusercontent.com/modules/vCCEF8ZuSaUolX835Ick/C92wC5Ajr17IwCFj4YvA/lottie_email_animation.js\";import{getCmSlugFromProps}from\"https://framerusercontent.com/modules/Ei4jUP8yuzNMnMuk372b/NfxG1OEMNYoVmy8RYSdd/utils_CmsUrl.js\";import{getTitleFromCmsData}from\"https://framerusercontent.com/modules/J8ypyQjiYnDuJ4qpfvIV/kpTrHECIbudopNjmtxB1/utils_CmsData.js\";import{getRenderedPreviewImageUrls}from\"https://framerusercontent.com/modules/w2Sftxa3EmaUJwOHzSdg/X8uberGFpofiCmxTLUg1/utils_ImageUrls.js\";const moveToCart=true;// /////////////////////////////////////////////////////////////////\n// COMPONENT\n// /////////////\nexport default function Create_SaveYourDesign_Test({}){const[navigationStore,setNavigationStore]=store_Navigation();const[country,setCountry]=store_Country();const[store,setStore]=store_ProductPropsStore();const[visible,setVisible]=useState(false);const[loading,setLoading]=useState(false);const[errorMessage,setErrorMessage]=useState(\"\");const[itemBrand,setItemBrand]=useState(\"TheNightSky\");const[itemName,setItemName]=useState(\"\");const[countryCode,setCountryCode]=useState(country?.countryCode||\"\");const containerRef=useRef(null);const animRef=useRef(null);const isClosingRef=useRef(false);const[renderedImageFrontUrlBase,setRenderedImageFrontUrlBase]=React.useState(\"\");const[renderedImageFrontUrlTop,setRenderedImageFrontUrlTop]=React.useState(\"\");useEffect(()=>{if(!store.pageLoaded){return;}// Wrap product divs so they scale\nconst{frontImageLayerBase,frontImageLayerTop}=getRenderedPreviewImageUrls(store);setRenderedImageFrontUrlBase(frontImageLayerBase);setRenderedImageFrontUrlTop(frontImageLayerTop);},[store,store.pageLoaded,store.productType]);useEffect(()=>{if(!emailAnimationData||!containerRef.current){return;}const loadAnimation=async()=>{try{const LottieModule=await import(\"lottie-web\");const Lottie=LottieModule.default;if(!Lottie||typeof Lottie.loadAnimation!==\"function\"){console.error(\"Lottie module is not valid:\",LottieModule);return;}if(animRef.current){animRef.current.destroy();}animRef.current=Lottie.loadAnimation({container:containerRef.current,renderer:\"svg\",loop:true,autoplay:true,animationData:emailAnimationData});animRef.current.setSpeed(1);}catch(err){console.error(\"Failed to load Lottie animation:\",err);}};loadAnimation();return()=>{animRef.current?.destroy();};},[emailAnimationData,containerRef,containerRef.current,visible]);useEffect(()=>{if(!store.pageLoaded){return;}const cmsSlug=getCmSlugFromProps(store);getTitleFromCmsData(cmsSlug).then(itemTitle=>{setItemName(itemTitle);});},[store,store.pageLoaded]);useEffect(()=>{if(country?.countryCode){setCountryCode(country?.countryCode);}},[country]);useEffect(()=>{if(visible){tracking.trackSaveDesignViewed({countryCode:country?.countryCode||\"\",customerId:store?.customerId||\"\",...itemBrand?{itemBrand}:{},...itemName?{itemName}:{},tns_experiment_sd:\"test\"});}},[visible]);useEffect(()=>{const isVisible=navigationStore?.showSaveDesignOverlay===true;if(isVisible){}setVisible(isVisible);},[navigationStore]);const saveDesignOrAddToCart=async(email,emailConsent)=>{if(isClosingRef.current){// console.log(\"Already tracked, skipping duplicate\")\nreturn;}try{isClosingRef.current=true;setLoading(true);setErrorMessage(\"\");const result=await triggerSaveDesign(store,setStore,countryCode,email,emailConsent);if(result.countryCode){setCountryCode(result.countryCode);setCountry({countryCode:result.countryCode,countryName:getCountryName(result.countryCode)});}try{// Determine framing status from store state at time of Add to Cart\nconst isFramed=store.productFormat===\"Print\"&&!!store.printFrame&&store.printFrame!==\"None\";const trackingData={...result,...itemBrand?{itemBrand}:{},...itemName?{itemName}:{},tns_experiment_sd:\"test\",order_info:{is_framed:isFramed,print_format:store.printFormat||\"\",...isFramed?{frame_color:store.printFrame}:{}}};if(email){await Promise.all([tracking.trackAddToCart(trackingData),tracking.trackSaveDesign(trackingData)]);}else{// Customer skipped saved design\nawait tracking.trackSaveDesignSkipped(trackingData);await tracking.trackAddToCart(trackingData);}}catch(error){// Don't crash out of redirect if tracking fails\nconsole.error(`Error in Tracking`,error);}if(moveToCart){const url=getCartUrl(result?.cartId||\"\",result?.orderId||\"\",result?.customerId||\"\",result?.countryCode||\"\");const redirectIfTrackingFailsTimer=setTimeout(()=>{window.location.href=url;},1500);window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:\"processLink\",eventCallback:function(){window.location.href=url;clearTimeout(redirectIfTrackingFailsTimer);},eventTimeout:2e3});}else{//\n}}catch(error){console.error(`ERROR`,error);}finally{setNavigationStore({showSaveDesignOverlay:false});setLoading(false);isClosingRef.current=false;}};const handleSkipSaveDesign=()=>{saveDesignOrAddToCart();};// TEST MODE: Always visible — no need for store trigger\nif(!visible){return null;}const subtitle=\"You can come back and edit anytime.\";return /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,children:/*#__PURE__*/_jsx(\"div\",{style:modalContentStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:headerContainerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:closeOuterContainerStyle,children:/*#__PURE__*/_jsx(\"div\",{style:closeContainerStyle,children:/*#__PURE__*/_jsx(Create_SaveYourDesignCloseIcon,{handleSavedDesignClosed:handleSkipSaveDesign})})}),/*#__PURE__*/_jsx(\"div\",{style:imageWrapperStyle,children:/*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...imageStyle,width:\"100%\",height:\"100%\",overflow:\"hidden\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:saveTextContainerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:saveTextStyle,children:\"Save Your Design\"}),/*#__PURE__*/_jsx(\"div\",{style:subTextStyleText,children:subtitle})]})]}),/*#__PURE__*/_jsx(\"div\",{style:textContainerStyle,children:loading?/*#__PURE__*/_jsx(\"div\",{style:loadingStyle,children:\"Loading...\"}):/*#__PURE__*/_jsx(Create_SaveYourDesignInput_Test,{saveDesignOrAddToCart:saveDesignOrAddToCart,countryCode:countryCode,errorMessage:errorMessage,showBookletNotice:true,showVariant:true})})]})})});}// ////////////////////////////////////////////////////////////////\n// CSS STYLES\n// ///////////\nconst overlayStyle={position:\"fixed\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:\"rgba(255, 255, 255, 1)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:9999};// CSS for the floating box/container in the center\nconst modalContentStyle={boxShadow:\"0 4px 8px rgba(0, 0, 0, 0.1)\",maxWidth:\"80vw\",maxHeight:\"80vh\",overflow:\"auto\"};const containerStyle={backgroundColor:\"rgb(255, 255, 255)\",placeContent:\"center flex-start\",alignItems:\"center\",display:\"flex\",flex:\"0 0 auto\",flexFlow:\"column\",gap:\"0px\",height:\"min-content\",padding:\"16px\",// padding: \"0px\",\nposition:\"relative\"};const headerContainerStyle={padding:\"16px 16px 0px 16px\",width:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"};const closeOuterContainerStyle={placeContent:\"center flex-end\",alignItems:\"center\",display:\"flex\",flex:\"0 0 auto\",flexFlow:\"row\",gap:\"10px\",height:\"30px\",overflow:\"hidden\",padding:\"0px\",width:\"100%\",position:\"absolute\",top:\"16px\",right:\"16px\"};const closeContainerStyle={backgroundColor:\"rgb(255, 255, 255)\",height:\"30px\",width:\"30px\"};const textContainerStyle={outline:\"none\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-start\",flexShrink:0,backgroundColor:\"rgb(255, 255, 255)\",width:\"100%\",padding:\"0px 16px 16px 16px\"};const loadingStyle={minHeight:\"100px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};const imageWrapperStyle={borderRadius:\"inherit\",inset:0,flex:\"0 0 auto\",overflow:\"hidden\",position:\"relative\",height:\"120px\",width:\"120px\"};const imageStyle={display:\"block\",width:\"100%\",height:\"100%\",borderRadius:\"inherit\",objectPosition:\"center\",objectFit:\"cover\"};const saveTextContainerStyle={outline:\"none\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-start\",flexShrink:0,color:\"rgb(18, 24, 36)\",padding:\"0px 8px 16px\"};const saveTextStyle={fontFamily:'\"Inter\", sans-serif',fontWeight:600,textAlign:\"center\",color:\"rgb(18, 24, 36)\",fontSize:\"20px\"};const subTextStyleText={fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontSize:\"14px\",fontStyle:\"normal\",fontWeight:400,letterSpacing:\"0.01em\",lineHeight:\"1.6em\",textAlign:\"center\",color:\"rgb(131, 139, 147)\",textDecoration:\"none\",textTransform:\"none\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Create_SaveYourDesign_Test\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8yBAEkQ,SAAS,IAAe,CAAC,GAAG,CAAC,IAAM,EAAI,aAAa,QAAQ,EAAY,CAAqB,OAAhB,EAAuB,KAAK,MAAM,EAAI,CAA3B,UAAkC,CAAC,OAAO,MAAO,SAAS,GAAc,EAAK,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAY,KAAK,UAAU,EAAK,CAAC,MAAO,GACve,SAAS,IAAiB,CAAC,GAAG,CAAC,a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