{"version":3,"file":"shared-lib.ClnXCUav.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3f4FjOOjpoQ5fLNJJTOl/0PdmnUMn6ETpkwUVICV2/Orphan_word_handling.js","https:/framerusercontent.com/modules/b7RNkAt8kf6dXuqyIikG/HhIY63wxDXEvj9CCVJ6X/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import React,{forwardRef}from\"react\";export function withNoOrphan(Component){// console.log(\"withNoOrphan HOC called\")\n// Helper function to extract text from nested React elements\nconst extractText=element=>{if(typeof element===\"string\"){return element;}if(typeof element===\"number\"){return String(element);}if(/*#__PURE__*/React.isValidElement(element)){if(element.props&&element.props.children){return extractText(element.props.children);}}if(Array.isArray(element)){return element.map(extractText).join(\"\");}return\"\";};// Helper function to apply orphan prevention to text\nconst processText=text=>{if(typeof text!==\"string\"||text.length===0){return text;}// Trim trailing spaces to find the actual last word\nconst trimmedText=text.trimEnd();if(trimmedText.length===0){return text;}const lastSpaceIndex=trimmedText.lastIndexOf(\" \");if(lastSpaceIndex!==-1){const beforeSpace=trimmedText.substring(0,lastSpaceIndex);const afterSpace=trimmedText.substring(lastSpaceIndex+1);const trailingSpaces=text.substring(trimmedText.length)// Preserve trailing spaces\n;return beforeSpace+\"\\xa0\"+afterSpace+trailingSpaces;}return text;};// Helper function to recursively process React elements\nconst processChildren=children=>{if(typeof children===\"string\"){return processText(children);}if(/*#__PURE__*/React.isValidElement(children)){return /*#__PURE__*/React.cloneElement(children,{...children.props,children:processChildren(children.props.children)});}if(Array.isArray(children)){return children.map(child=>processChildren(child));}return children;};return /*#__PURE__*/forwardRef((props,ref)=>{// console.log(\"Rendering with props:\", props)\n// console.log(\"Children type:\", typeof props.children)\n// console.log(\"Children:\", props.children)\nconst{children,...rest}=props;// Extract text for logging\nconst extractedText=extractText(children);console.log(\"Extracted text:\",extractedText);// Process children to prevent orphans\nconst processedChildren=processChildren(children);console.log(\"Processed children:\",processedChildren);return /*#__PURE__*/_jsx(Component,{ref:ref,...rest,children:processedChildren});});}export function withMargin20(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style||{},margin:\"0 0 -20px\"}}));}export function ithDropShadow(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style||{},filter:\"drop-shadow(0 0 100px rgba(220, 174, 38, 0.81))\"}}));}\nexport const __FramerMetadata__ = {\"exports\":{\"withNoOrphan\":{\"type\":\"reactHoc\",\"name\":\"withNoOrphan\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ithDropShadow\":{\"type\":\"reactHoc\",\"name\":\"ithDropShadow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMargin20\":{\"type\":\"reactHoc\",\"name\":\"withMargin20\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Orphan_word_handling.map","// Generated by Framer (5e8f756)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:'<script src=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.min.js\"></script>\\n<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf_viewer.min.css\">\\n\\n<script>\\n    window.pdfjsLib = window[\\'pdfjs-dist/build/pdf\\'];\\n    pdfjsLib.GlobalWorkerOptions.workerSrc = \\'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.worker.min.js\\';\\n</script>\\n\\n<style>\\n.custom-label-wrapper .framer-text {\\n    font-size: 18px !important;\\n    line-height: 1.2 !important;\\n}\\n</style>',description:\"Discover your sacred mission with Rachael’s AI-driven assessment, designed for spiritual entrepreneurs and transformational guides seeking clarity, alignment, and world-class success.\\n\",favicon:\"https://framerusercontent.com/assets/6sh7PMc8bRBmjxM4qepPDsgR1U.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/PYG1cmYXXFwNeSveZXmqViduE24.png\",title:\"Sacred Success Synthesizer | Unlock Your Path to World-Class Transformation\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iKAAgF,SAAgB,EAAa,EAAU,CAEvH,IAAM,EAAY,GAAa,OAAO,GAAU,SAAiB,EAAY,OAAO,GAAU,SAAiB,OAAO,EAAQ,CAAkB,EAAM,eAAe,EAAQ,EAAK,EAAQ,OAAO,EAAQ,MAAM,SAAiB,EAAY,EAAQ,MAAM,SAAS,CAAM,MAAM,QAAQ,EAAQ,CAAS,EAAQ,IAAI,EAAY,CAAC,KAAK,GAAG,CAAQ,GAC3U,EAAY,GAAM,CAAC,GAAG,OAAO,GAAO,UAAU,EAAK,SAAS,EAAG,OAAO,EAC5E,IAAM,EAAY,EAAK,SAAS,CAAC,GAAG,EAAY,SAAS,EAAG,OAAO,EAAM,IAAM,EAAe,EAAY,YAAY,IAAI,CAAC,GAAG,IAAiB,GAAG,CAAC,IAAM,EAAY,EAAY,UAAU,EAAE,EAAe,CAAO,EAAW,EAAY,UAAU,EAAe,EAAE,CAAO,EAAe,EAAK,UAAU,EAAY,OAAO,CAC5T,OAAO,EAAY,OAAO,EAAW,EAAgB,OAAO,GACvD,EAAgB,GAAc,OAAO,GAAW,SAAiB,EAAY,EAAS,CAAkB,EAAM,eAAe,EAAS,CAAsB,EAAM,aAAa,EAAS,CAAC,GAAG,EAAS,MAAM,SAAS,EAAgB,EAAS,MAAM,SAAS,CAAC,CAAC,CAAK,MAAM,QAAQ,EAAS,CAAS,EAAS,IAAI,GAAO,EAAgB,EAAM,CAAC,CAAS,EAAW,OAAoB,GAAY,EAAM,IAAM,CAGpZ,GAAK,CAAC,WAAS,GA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