{"version":3,"file":"BlogSchema.Be5XsRJ8.mjs","names":["React.useState","__esmMin","init_ssg_sandbox_shims","window","_e","c","init_jsx_runtime","ce","init_npm_react_18_3_1","init_framer_B1b760uK","addPropertyControls","ControlType","BlogSchema","props","locationUrl","setLocationUrl","base","siteUrl","blogUrl","trimSlashes","blogPath","publisher","publisherName","publisherLogo","home","blogCrumb","graph","mode","blogName","blogDescription","language","url","slug","published","toISO","datePublished","modified","dateModified","image","imageSrc","kw","keywords","k","author","authorName","authorRole","headline","description","section","json","isBlog","init_BlogSchema","s","d","i","p"],"sources":["https:/framerusercontent.com/modules/GcwXODsFFEvd2723mW3T/WLKn1cvWypfVMmbaC5Gy/BlogSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const trimSlashes=s=>(s||\"\").replace(/^\\/+|\\/+$/g,\"\");const toISO=d=>{if(!d)return undefined;const t=new Date(d);return isNaN(t.getTime())?undefined:t.toISOString();};const imageSrc=i=>!i?undefined:typeof i===\"string\"?i:i.src;/**\n * Invisible JSON-LD structured data for the blog (Blog / BlogPosting + BreadcrumbList).\n * Search engines read it; visitors never see it.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function BlogSchema(props){const{mode=\"post\",siteUrl=\"https://prxvault.com\",blogPath=\"blog\",blogName=\"PRX Vault Blog\",blogDescription=\"\",slug=\"\",headline=\"\",description=\"\",datePublished,dateModified,authorName=\"\",authorRole=\"\",section=\"\",keywords=\"\",publisherName=\"PRX Vault\",publisherLogo=\"\",language=\"en-AU\"}=props;const[locationUrl,setLocationUrl]=React.useState(undefined);React.useEffect(()=>{if(typeof window!==\"undefined\")setLocationUrl(window.location.origin+window.location.pathname);},[]);const base=(siteUrl||\"\").replace(/\\/+$/,\"\");const blogUrl=base+\"/\"+trimSlashes(blogPath);const publisher={\"@type\":\"Organization\",\"@id\":base+\"/#organization\",name:publisherName,url:base+\"/\",...publisherLogo?{logo:{\"@type\":\"ImageObject\",url:publisherLogo}}:{}};const home={\"@type\":\"ListItem\",position:1,name:\"Home\",item:base+\"/\"};const blogCrumb={\"@type\":\"ListItem\",position:2,name:\"Blog\",item:blogUrl};let graph;if(mode===\"blog\"){graph=[{\"@type\":\"Blog\",\"@id\":blogUrl+\"#blog\",url:blogUrl,name:blogName,...blogDescription?{description:blogDescription}:{},inLanguage:language,publisher},{\"@type\":\"BreadcrumbList\",itemListElement:[home,blogCrumb]}];}else{// Prefer an explicit slug; otherwise use the live page URL once the page has loaded\nconst url=trimSlashes(slug)?blogUrl+\"/\"+trimSlashes(slug):locationUrl;const published=toISO(datePublished);const modified=toISO(dateModified)||published;const image=imageSrc(props.image);const kw=(keywords||\"\").split(\",\").map(k=>k.trim()).filter(Boolean);const isOrg=!authorName||/team|prx/i.test(authorName);const author=isOrg?{\"@type\":\"Organization\",name:authorName||publisherName,url:base+\"/\"}:{\"@type\":\"Person\",name:authorName,...authorRole?{jobTitle:authorRole}:{}};graph=[{\"@type\":\"BlogPosting\",...url?{\"@id\":url+\"#article\",url,mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":url}}:{},headline:headline.slice(0,110),...description?{description}:{},...image?{image:[image]}:{},...published?{datePublished:published}:{},...modified?{dateModified:modified}:{},author,publisher,...section?{articleSection:section}:{},...kw.length?{keywords:kw.join(\", \")}:{},inLanguage:language,isPartOf:{\"@type\":\"Blog\",\"@id\":blogUrl+\"#blog\",name:blogName,url:blogUrl}},{\"@type\":\"BreadcrumbList\",itemListElement:[home,blogCrumb,{\"@type\":\"ListItem\",position:3,name:headline,...url?{item:url}:{}}]}];}const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":graph}).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...props.style,width:1,height:1,overflow:\"hidden\",pointerEvents:\"none\",opacity:0},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}const isBlog=p=>p.mode===\"blog\";addPropertyControls(BlogSchema,{mode:{type:ControlType.Enum,title:\"Page\",options:[\"post\",\"blog\"],optionTitles:[\"Blog post\",\"Blog index\"],displaySegmentedControl:true,defaultValue:\"post\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://prxvault.com\"},blogPath:{type:ControlType.String,title:\"Blog Path\",defaultValue:\"blog\"},blogName:{type:ControlType.String,title:\"Blog Name\",defaultValue:\"PRX Vault Blog\"},blogDescription:{type:ControlType.String,title:\"Blog Desc.\",displayTextArea:true,defaultValue:\"Cashback guides, saving tips and product news from PRX Vault.\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\",hidden:isBlog},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\",hidden:isBlog},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\",hidden:isBlog},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:isBlog},datePublished:{type:ControlType.Date,title:\"Published\",hidden:isBlog},dateModified:{type:ControlType.Date,title:\"Modified\",hidden:isBlog},authorName:{type:ControlType.String,title:\"Author\",defaultValue:\"PRX Vault Team\",hidden:isBlog},authorRole:{type:ControlType.String,title:\"Author Role\",defaultValue:\"\",hidden:isBlog},section:{type:ControlType.String,title:\"Category\",defaultValue:\"\",hidden:isBlog},keywords:{type:ControlType.String,title:\"Keywords\",defaultValue:\"\",hidden:isBlog},publisherName:{type:ControlType.String,title:\"Publisher\",defaultValue:\"PRX Vault\"},publisherLogo:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"https://framerusercontent.com/images/w7wkeldJfAsxZAH7nkDAIXCbc.png\"},language:{type:ControlType.String,title:\"Language\",defaultValue:\"en-AU\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogSchema\",\"slots\":[],\"annotations\":{\"framerContractV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