{"version":3,"file":"Seo.js","names":["SeoSingleton","c","setters","execute","constructor","selectors","description","document","querySelector","canonicalUrl","alternateUrls","querySelectorAll","getTitle","title","setTitle","getDescription","getAttribute","setDescription","setAttribute","getCanonicalHref","href","setCanonicalHref","url","getAlternateLinksElts","a","Seo"],"sources":["services/Seo.js"],"sourcesContent":["/**\n * @class\n * @classdesc class used to manipulate DOM Meta\n */\nclass SeoSingleton {\n /**\n * @constructor\n */\n constructor() {\n this.selectors = {};\n this.selectors.description = document.querySelector(\"meta[name='description']\");\n this.selectors.canonicalUrl = document.querySelector(\"link[rel='canonical']\");\n this.selectors.alternateUrls = document.querySelectorAll(\"link[rel='alternate']\");\n }\n\n /**\n * get meta title\n * @returns {string} document title\n */\n getTitle() {\n return document.title;\n }\n\n /**\n * set meta title\n * @param {string} title - new title\n */\n setTitle(title) {\n document.title = title;\n }\n\n /**\n * get meta description content\n * @returns {string} description\n */\n getDescription() {\n return this.selectors.description.getAttribute('content');\n }\n\n /**\n * set meta descriprion content\n * @param {string} description - new description\n */\n setDescription(description) {\n this.selectors.description.setAttribute('content', description);\n }\n\n /**\n * get meta canonical href\n * @returns {string} canonical url\n */\n getCanonicalHref() {\n return this.selectors.canonicalUrl.href;\n }\n\n /**\n * set url in meta caonical href\n * @param {string} url - new url\n */\n setCanonicalHref(url) {\n this.selectors.canonicalUrl.href = url;\n }\n\n /**\n * get alternate links DOMelts\n * @returns {NodeList} node list of alternate links\n */\n getAlternateLinksElts() {\n return this.selectors.alternateUrls;\n }\n}\n\nexport const Seo = new SeoSingleton();\n"],"mappings":"4DAIM,CAAAA,CAAY,CAAAC,CAAA,QAAAC,OAAA,IAAAC,OAAA,SAAAA,CAAA,EAAZH,CAAY,CAAlB,KAAmB,CAIfI,WAAWA,CAAA,CAAG,CACV,IAAI,CAACC,SAAS,CAAG,CAAC,CAAC,CACnB,IAAI,CAACA,SAAS,CAACC,WAAW,CAAGC,QAAQ,CAACC,aAAa,CAAC,0BAA0B,CAAC,CAC/E,IAAI,CAACH,SAAS,CAACI,YAAY,CAAGF,QAAQ,CAACC,aAAa,CAAC,uBAAuB,CAAC,CAC7E,IAAI,CAACH,SAAS,CAACK,aAAa,CAAGH,QAAQ,CAACI,gBAAgB,CAAC,uBAAuB,CACpF,CAMAC,QAAQA,CAAA,CAAG,CACP,MAAO,CAAAL,QAAQ,CAACM,KACpB,CAMAC,QAAQA,CAACD,CAAK,CAAE,CACZN,QAAQ,CAACM,KAAK,CAAGA,CACrB,CAMAE,cAAcA,CAAA,CAAG,CACb,MAAO,KAAI,CAACV,SAAS,CAACC,WAAW,CAACU,YAAY,CAAC,SAAS,CAC5D,CAMAC,cAAcA,CAACX,CAAW,CAAE,CACxB,IAAI,CAACD,SAAS,CAACC,WAAW,CAACY,YAAY,CAAC,SAAS,CAAEZ,CAAW,CAClE,CAMAa,gBAAgBA,CAAA,CAAG,CACf,MAAO,KAAI,CAACd,SAAS,CAACI,YAAY,CAACW,IACvC,CAMAC,gBAAgBA,CAACC,CAAG,CAAE,CAClB,IAAI,CAACjB,SAAS,CAACI,YAAY,CAACW,IAAI,CAAGE,CACvC,CAMAC,qBAAqBA,CAAA,CAAG,CACpB,MAAO,KAAI,CAAClB,SAAS,CAACK,aAC1B,CACJ,CAAC,CAAAc,CAAA,OAEYC,CAAG,CAAG,GAAI,CAAAzB,CAAc","ignoreList":[]}