{"version":3,"file":"57.1506e67ef9b685acbaab.js","mappings":"0JAoCe,SAASA,IApCxB,IAKQC,EACAC,EAIAC,EAoBAC,EAzBAH,EAJaI,OAAOC,SAASC,KACAC,MAAM,eACJ,GAAGA,MAAM,KAEjB,GACvBN,EAAcD,EACjBQ,QAAQ,KAAM,KACdA,QAAQ,eAAe,SAACC,GAAC,OAAKA,EAAEC,aAAa,IAE1CR,EAAS,CACb,WAAY,qBACZ,QAAS,iBACTS,KAAM,0BACNC,gBAAiB,CACf,CACE,QAAS,WACTC,SAAU,EACVF,KAAM,kBACNG,KAAM,sCAER,CACE,QAAS,WACTD,SAAU,EACVF,KAAM,GAAFI,OAAKd,GACTa,KAAM,0CAAFC,OAA4Cf,OAKhDG,EAAKa,SAASC,cAAc,WAC/BC,KAAO,sBACVf,EAAGgB,KAAOC,KAAKC,UAAUnB,GACzBc,SAASM,cAAc,QAAQC,YAAYpB,EAK7C,C","sources":["webpack://marketing/./src/assets/js/modules/metadata.js"],"sourcesContent":["function generateJson() {\n const currentUrl = window.location.href;\n const currentUrlArray = currentUrl.split('/resources/');\n const urlTypeArray = currentUrlArray[1].split('/');\n\n const urlType = urlTypeArray[0];\n const urlTypeName = urlType\n .replace(/-/g, ' ')\n .replace(/(^\\w|\\s\\w)/g, (m) => m.toUpperCase());\n\n const ldjson = {\n '@context': 'https://schema.org',\n '@type': 'BreadcrumbList',\n name: 'Resource Center Content',\n itemListElement: [\n {\n '@type': 'ListItem',\n position: 1,\n name: 'Resource Center',\n item: 'https://resources.phrasehealth.com',\n },\n {\n '@type': 'ListItem',\n position: 2,\n name: `${urlTypeName}`,\n item: `https://resources.phrasehealth.com/tag/${urlType}`,\n },\n ],\n };\n\n const el = document.createElement('script');\n el.type = 'application/ld+json';\n el.text = JSON.stringify(ldjson);\n document.querySelector('head').appendChild(el);\n}\n\nexport default function generateMetadataInit() {\n generateJson();\n}\n"],"names":["generateMetadataInit","urlType","urlTypeName","ldjson","el","window","location","href","split","replace","m","toUpperCase","name","itemListElement","position","item","concat","document","createElement","type","text","JSON","stringify","querySelector","appendChild"],"sourceRoot":""}