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ack://_N_E/"],"sourcesContent":["export const optimizeImage = (imageUrl, imageFormatValue, imageQualityValue) => {\n let imageFormat = imageFormatValue ? imageFormatValue : 'webp';\n let imageQuality = imageQualityValue ? imageQualityValue : 85;\n if((imageUrl !== undefined) && (imageUrl !== null) && (imageUrl.includes('images.ctfassets.net')) && (imageUrl.includes('fm=webp') == false) && (imageUrl.includes('.svg') == false)) {\n if(imageUrl?.includes('https')) {\n if(imageUrl?.includes('?') ) {\n imageUrl = imageUrl + `&fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n else {\n imageUrl = imageUrl + `?fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n }\n else {\n imageUrl = 'https:' + imageUrl\n if(imageUrl?.includes('?')) {\n imageUrl = imageUrl + `&fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n else {\n imageUrl = imageUrl + `?fm=${imageFormat}` + `&q=${imageQuality}`;\n }\n }\n }\n return imageUrl;\n}","import React from 'react'\n\nimport ImageFactory from '../../adapters/cloudinary/ImageFactory';\nimport { getCanonicalURL } from '../../adapters/helpers/Utils';\nimport { validURL } from '../../adapters/helpers/Url';\nimport { OrganizationConstants } from '../../adapters/helpers/Constants';\nimport { optimizeImage } from '../../adapters/helpers/PageSpeedHelper';\n\nimport PropTypes from 'prop-types'\n\nimport Head from 'next/head';\n\n\nexport default function Meta(props) {\n const { metadata, pagePath } = props;\n\n const title = metadata?.metaTitle;\n const description = metadata?.metaDescription;\n const keywords = metadata?.metaKeywords;\n const pagetype = metadata?.pageType;\n const noindex = metadata?.noIndex;\n const nofollow = metadata?.noFollow;\n\n const openGraphPageTitle = metadata?.openGraphPageTitle;\n const openGraphDescription = metadata?.openGraphDescription;\n\n const socialAccounts = metadata?.socialsAccounts?.fields;\n\n let metaRobots = [];\n metaRobots.push(noindex ? 'noindex' : 'index');\n metaRobots.push(nofollow ? 'nofollow' : 'follow');\n\n let openGraphImageUrl = null;\n let logoUrl= null;\n\n if (metadata && metadata.openGraphImage && metadata.openGraphImage.fields) {\n openGraphImageUrl = optimizeImage(ImageFactory.imageContentfullSrc(metadata?.openGraphImage?.fields?.asset?.fields?.file?.url));\n }\n \n if (metadata && metadata.logo && metadata.logo.fields) {\n logoUrl = optimizeImage(ImageFactory.imageContentfullSrc(metadata?.logo?.fields?.asset?.fields?.file?.url));\n }\n let canonical = generateCanonical(metadata, pagePath);\n\n return (\n <>\n \n \n {title}\n \n \n \n \n \n \n {keywords &&\n }\n\n {openGraphPageTitle &&\n }\n\n {openGraphDescription &&\n }\n\n {openGraphImageUrl &&\n }\n\n {canonical &&\n }\n\n {canonical &&\n }\n \n \n\n
\n\n {canonical &&\n }\n\n \n\n \n\n {logoUrl &&\n }\n\n { socialAccounts && socialAccounts.facebookUrl &&\n }\n\n { socialAccounts && socialAccounts.twitterUrl &&\n }\n\n { socialAccounts && socialAccounts.youtubeUrl &&\n }\n\n { socialAccounts && socialAccounts.instagramUrl &&\n }\n\n
\n\n
\n {process.env.WEBSITE_CANNONICAL_URL &&\n }\n\n \n
\n \n \n );\n}\n\nMeta.propTypes = {\n metadata: PropTypes.object,\n pagePath: PropTypes.string,\n};\n\nfunction generateCanonical(metadata, pagePath) {\n let canonical = metadata?.canonicalUrl;\n\n if (canonical == null) {\n canonical = pagePath;\n }\n\n return validURL(canonical) ? canonical : getCanonicalURL(canonical);\n}\n","export function validURL(str) {\n let pattern = new RegExp('^(https?:\\\\/\\\\/)?'+ // protocol\n '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.)+[a-z]{2,}|'+ // domain name\n '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))'+ // OR ip (v4) address\n '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*'+ // port and path\n '(\\\\?[;&a-z\\\\d%_.~+=-]*)?'+ // query string\n '(\\\\#[-a-z\\\\d_]*)?$','i'); // fragment locator\n return !!pattern.test(str);\n}\n","module.exports = require('./dist/shared/lib/head')\n","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6192],{88726:function(e,n,t){\"use strict\";t.d(n,{H:function(){return l}});var l=function(e,n,t){var l,i,o,a=n||\"webp\",r=t||85;null!=e&&e.includes(\"images.ctfassets.net\")&&0==e.includes(\"fm=webp\")&&0==e.includes(\".svg\")&&(e=(null==(l=e)?void 0:l.includes(\"https\"))?(null==(i=e)?void 0:i.includes(\"?\"))?e+\"&fm=\".concat(a)+\"&q=\".concat(r):e+\"?fm=\".concat(a)+\"&q=\".concat(r):(null==(o=e=\"https:\"+e)?void 0:o.includes(\"?\"))?e+\"&fm=\".concat(a)+\"&q=\".concat(r):e+\"?fm=\".concat(a)+\"&q=\".concat(r));return e}},23140:function(e,n,t){\"use strict\";t.r(n),t.d(n,{default:function(){return u}});t(67294);var l=t(42456),i=t(8996);var o=t(24036),a=t(88726),r=t(9008),s=t.n(r),c=t(85893);function u(e){var n,t=e.metadata,r=e.pagePath,u=null==t?void 0:t.metaTitle,m=null==t?void 0:t.metaDescription,d=null==t?void 0:t.metaKeywords,p=null==t?void 0:t.pageType,f=null==t?void 0:t.noIndex,h=null==t?void 0:t.noFollow,x=null==t?void 0:t.openGraphPageTitle,g=null==t?void 0:t.openGraphDescription,v=null==t||null==(n=t.socialsAccounts)?void 0:n.fields,j=[];j.push(f?\"noindex\":\"index\"),j.push(h?\"nofollow\":\"follow\");var k,w,b,P,y,z,U,I,S,_,T=null,A=null;t&&t.openGraphImage&&t.openGraphImage.fields&&(T=(0,a.H)(l.ZP.imageContentfullSrc(null==t||null==(k=t.openGraphImage)||null==(w=k.fields)||null==(b=w.asset)||null==(P=b.fields)||null==(y=P.file)?void 0:y.url)));t&&t.logo&&t.logo.fields&&(A=(0,a.H)(l.ZP.imageContentfullSrc(null==t||null==(z=t.logo)||null==(U=z.fields)||null==(I=U.asset)||null==(S=I.fields)||null==(_=S.file)?void 0:_.url)));var G=function(e,n){var t=null==e?void 0:e.canonicalUrl;null==t&&(t=n);return l=t,new RegExp(\"^(https?:\\\\/\\\\/)?((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.)+[a-z]{2,}|((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*(\\\\?[;&a-z\\\\d%_.~+=-]*)?(\\\\#[-a-z\\\\d_]*)?$\",\"i\").test(l)?t:(0,i.DN)(t);var l}(t,r);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s(),{children:[(0,c.jsx)(\"meta\",{name:\"viewport\",content:\"width=device-width, initial-scale=1, minimum-scale=1\"}),(0,c.jsx)(\"title\",{children:u}),(0,c.jsx)(\"link\",{rel:\"manifest\",href:\"/static/manifest.webmanifest\",crossOrigin:\"use-credentials\"}),(0,c.jsx)(\"meta\",{charSet:\"UTF-8\"}),(0,c.jsx)(\"meta\",{name:\"description\",content:m}),(0,c.jsx)(\"meta\",{name:\"robots\",content:j}),(0,c.jsx)(\"meta\",{name:\"theme-color\",content:\"#0057B8\"}),(0,c.jsx)(\"meta\",{name:\"pagetype\",content:p}),d&&(0,c.jsx)(\"meta\",{name:\"keywords\",content:d}),x&&(0,c.jsx)(\"meta\",{property:\"og:title\",content:x}),g&&(0,c.jsx)(\"meta\",{property:\"og:description\",content:g}),T&&(0,c.jsx)(\"meta\",{property:\"og:image\",content:T}),G&&(0,c.jsx)(\"meta\",{property:\"og:url\",content:G}),G&&(0,c.jsx)(\"link\",{rel:\"canonical\",href:G})]}),(0,c.jsxs)(\"div\",{itemScope:!0,itemProp:\"Organization\",itemType:\"http://schema.org/Organization\",children:[G&&(0,c.jsx)(\"link\",{itemProp:\"url\",href:G}),(0,c.jsx)(\"link\",{itemProp:\"name\",content:o.XI.brand}),(0,c.jsx)(\"link\",{itemProp:\"parentOrganization\",content:o.XI.parentOrganization}),A&&(0,c.jsx)(\"link\",{itemProp:\"logo\",href:A}),v&&v.facebookUrl&&(0,c.jsx)(\"link\",{itemProp:\"sameAs\",href:v.facebookUrl}),v&&v.twitterUrl&&(0,c.jsx)(\"link\",{itemProp:\"sameAs\",href:v.twitterUrl}),v&&v.youtubeUrl&&(0,c.jsx)(\"link\",{itemProp:\"sameAs\",href:v.youtubeUrl}),v&&v.instagramUrl&&(0,c.jsx)(\"link\",{itemProp:\"sameAs\",href:v.instagramUrl})]}),(0,c.jsxs)(\"div\",{itemScope:!0,itemProp:\"WebSite\",itemType:\"http://schema.org/WebSite\",children:[(0,c.jsx)(\"link\",{itemProp:\"url\",href:\"https://www.oralbarabia.com/ar-sa\"}),(0,c.jsx)(\"link\",{itemProp:\"name\",content:o.XI.brand})]})]})}},9008:function(e,n,t){e.exports=t(16505)}}]);"],"names":["self","webpackChunk_N_E","push","e","n","t","d","H","l","i","a","r","includes","concat","default","u","o","s","c","metadata","pagePath","metaTitle","m","metaDescription","metaKeywords","p","pageType","f","noIndex","h","noFollow","x","openGraphPageTitle","g","openGraphDescription","v","socialsAccounts","fields","j","k","w","b","P","y","z","U","I","S","_","T","A","openGraphImage","ZP","imageContentfullSrc","asset","file","url","logo","G","canonicalUrl","test","DN","jsxs","Fragment","children","jsx","name","content","rel","href","crossOrigin","charSet","property","itemScope","itemProp","itemType","XI","brand","parentOrganization","facebookUrl","twitterUrl","youtubeUrl","instagramUrl","exports"],"sourceRoot":""}