Your IP : 18.222.179.239


Current Path : /home/ncdcgo/public_html/wp-content/plugins/easy-twitter-feeds/dist/
Upload File :
Current File : /home/ncdcgo/public_html/wp-content/plugins/easy-twitter-feeds/dist/script.js.map

{"version":3,"file":"script.js","mappings":"wDAEIA,EAAI,EAAQ,KAEdC,EAAQ,EAAaD,EAAEE,WACDF,EAAEG,W,kBCL1BC,EAAOH,QAAUI,Q,GCCbC,EAA2B,CAAC,E,MAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaR,QAGrB,IAAIG,EAASE,EAAyBE,GAAY,CAGjDP,QAAS,CAAC,GAOX,OAHAU,EAAoBH,GAAUJ,EAAQA,EAAOH,QAASM,GAG/CH,EAAOH,OACf,C,MCLaW,EAAe,SAACC,GAC5B,IAAAC,EAA0FD,GAAU,CAAC,EAACE,EAAAD,EAA9FE,MAAAA,OAAK,IAAAD,EAAG,MAAKA,EAAAE,EAAAH,EAAEI,MAAAA,OAAK,IAAAD,EAAG,QAAOA,EAAAE,EAAAL,EAAEM,MAAAA,OAAK,IAAAD,EAAG,QAAOA,EAAAE,EAAAP,EAAEQ,KAAAA,OAAI,IAAAD,EAAG,MAAKA,EAAAE,EAAAT,EAAEU,OAAAA,OAAM,IAAAD,EAAG,MAAKA,EAE/EE,EAAkB,SAAAC,GACvB,IAAMC,EAAQL,aAAI,EAAJA,EAAMM,cACpB,OAAOD,aAAK,EAALA,EAAOE,SAAS,UAAUF,aAAK,EAALA,EAAOE,SAASH,GAClD,EAEMI,EAAoB,QAAVd,IAAoBA,EAC9Be,EAAY,GAAHC,OAAMhB,EAAK,KAAAgB,OAAId,EAAK,KAAAc,OAAIZ,GAEjCa,EAAS,SAAHD,OACTF,EAAU,GAAK,CAAC,MAAO,QAAS,SAAU,QAAQI,KAAI,SAAAZ,GAAI,OAAIG,EAAgBH,GAAQ,UAAHU,OAAaV,EAAI,MAAAU,OAAKD,EAAS,KAAM,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EAAY,6CAAHtI,OAAgDqI,EAAU,mEAAArI,OAAkEkI,GAC3IH,OAAOC,KAAKM,EAAW,SAC3B,EAEwCL,IAAI,aAAanB,UAAU,aACjD,SAAbc,EAAuBP,IAAgBK,IACxC5B,MAAAC,cAAA,YAAM,UAAQsC,GAEtB,ECJAE,SAASC,iBAAiB,oBAAoB,WAC5BD,SAASE,iBAAiB,8BAClCC,SAAQ,SAAAC,GAChB,IAAMtD,EAAauD,KAAKC,MAAMF,EAAQG,QAAQzD,aAE9CnH,EAAAA,EAAAA,GAAWyK,GAASI,OAAOjD,MAAAC,cAAAD,MAAAkD,SAAA,KAC1BlD,MAAAC,cAACkD,EAAK,CAAC5D,WAAYA,EAAYC,SAAUD,EAAW6D,MAEpDpD,MAAAC,cAACoD,EAAW,CAAC9D,WAAYA,MAG1BsD,SAAAA,EAASS,gBAAgB,kBAC1B,GACD,IAEA,IAAMD,EAAc,SAAHjE,GAAuB,IAAjBG,EAAUH,EAAVG,WACdrE,EAASqE,EAATrE,KAER,OAAO8E,MAAAC,cAAA,OAAKe,UAAS,kBACX,YAAR9F,GAAsB8E,MAAAC,cAACsD,EAAQ,CAAChE,WAAYA,IACpC,UAARrE,GAAoB8E,MAAAC,cAACuD,EAAY,CAACjE,WAAYA,IACtC,SAARrE,GAAmB8E,MAAAC,cAACwD,EAAW,CAAClE,WAAYA,IACpC,OAARrE,GAAiB8E,MAAAC,cAACyD,EAAM,CAACnE,WAAYA,IACrC,CAAC,QAAS,QAAQxF,SAASmB,IAAS8E,MAAAC,cAAC0D,EAAS,CAACpE,WAAYA,IAE9D,C","sources":["webpack://block/../block-directory/node_modules/react-dom/client.js","webpack://block/external var \"ReactDOM\"","webpack://block/webpack/bootstrap","webpack://block/../Components/utils/getCSS.js","webpack://block/./src/Style.js","webpack://block/./src/Components/Common/Timeline.js","webpack://block/./src/utils/icons.js","webpack://block/./src/Components/Common/FollowButton.js","webpack://block/./src/Components/Common/TweetButton.js","webpack://block/./src/Components/Common/VideoPost.js","webpack://block/./src/Components/Common/Hastag.js","webpack://block/./src/script.js"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n  exports.createRoot = m.createRoot;\n  exports.hydrateRoot = m.hydrateRoot;\n} else {\n  var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n  exports.createRoot = function(c, o) {\n    i.usingClientEntryPoint = true;\n    try {\n      return m.createRoot(c, o);\n    } finally {\n      i.usingClientEntryPoint = false;\n    }\n  };\n  exports.hydrateRoot = function(c, h, o) {\n    i.usingClientEntryPoint = true;\n    try {\n      return m.hydrateRoot(c, h, o);\n    } finally {\n      i.usingClientEntryPoint = false;\n    }\n  };\n}\n","module.exports = ReactDOM;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","export const getBackgroundCSS = (bg, isSolid = true, isGradient = true, isImage = true) => {\r\n\tconst { type = 'solid', color = '#000000b3', gradient = 'linear-gradient(135deg, #4527a4, #8344c5)', image = {}, position = 'center center', attachment = 'initial', repeat = 'no-repeat', size = 'cover', overlayColor = '#000000b3' } = bg || {};\r\n\r\n\tconst styles = ('gradient' === type && isGradient) ? `background: ${gradient};` :\r\n\t\t('image' === type && isImage) ?\r\n\t\t\t`background: url(${image?.url});\r\n\t\t\t\tbackground-color: ${overlayColor};\r\n\t\t\t\tbackground-position: ${position};\r\n\t\t\t\tbackground-size: ${size};\r\n\t\t\t\tbackground-repeat: ${repeat};\r\n\t\t\t\tbackground-attachment: ${attachment};\r\n\t\t\t\tbackground-blend-mode: overlay;` :\r\n\t\t\tisSolid && `background: ${color};`;\r\n\r\n\treturn styles;\r\n} // PHP version in Stepped Content\r\n\r\nexport const getBorderCSS = (border) => {\r\n\tconst { width = '0px', style = 'solid', color = '#0000', side = 'all', radius = '0px' } = border || {};\r\n\r\n\tconst borderSideCheck = s => {\r\n\t\tconst bSide = side?.toLowerCase();\r\n\t\treturn bSide?.includes('all') || bSide?.includes(s);\r\n\t}\r\n\r\n\tconst noWidth = width === '0px' || !width;\r\n\tconst borderCSS = `${width} ${style} ${color}`;\r\n\r\n\tconst styles = `\r\n\t\t${noWidth ? '' : ['top', 'right', 'bottom', 'left'].map(side => borderSideCheck(side) ? `border-${side}: ${borderCSS};` : '').join('')}\r\n\t\t${!radius ? '' : `border-radius: ${radius};`}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getColorsCSS = (colors) => {\r\n\tconst { color = '#333', bgType = 'solid', bg = '#0000', gradient = 'linear-gradient(135deg, #4527a4, #8344c5)' } = colors || {};\r\n\r\n\tconst styles = `\r\n\t\t${color ? `color: ${color};` : ''}\r\n\t\t${gradient || bg ? `background: ${'gradient' === bgType ? gradient : bg};` : ''}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getIconCSS = (icon, isSize = true, isColor = true) => {\r\n\tconst { fontSize = 16, colorType = 'solid', color = 'inherit', gradient = 'linear-gradient(135deg, #4527a4, #8344c5)' } = icon || {};\r\n\r\n\tconst colorCSS = 'gradient' === colorType ?\r\n\t\t`color: transparent; background-image: ${gradient}; -webkit-background-clip: text; background-clip: text;` :\r\n\t\t`color: ${color};`;\r\n\r\n\tconst styles = `\r\n\t\t${!fontSize || !isSize ? '' : `font-size: ${fontSize}px;`}\r\n\t\t${isColor ? colorCSS : ''}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getMultiShadowCSS = (value, type = 'box') => {\r\n\tlet styles = '';\r\n\r\n\tvalue?.map((item, index) => {\r\n\t\tconst { hOffset = '0px', vOffset = '0px', blur = '0px', spreed = '0px', color = '#7090b0', isInset = false } = item || {};\r\n\r\n\t\tconst inset = isInset ? 'inset' : '';\r\n\t\tconst offsetBlur = `${hOffset} ${vOffset} ${blur}`;\r\n\t\tconst isComa = index + 1 >= value.length ? '' : ', ';\r\n\r\n\t\tstyles += 'text' === type ? `${offsetBlur} ${color}${isComa}` : `${offsetBlur} ${spreed} ${color} ${inset}${isComa}`;\r\n\t});\r\n\r\n\treturn styles || 'none';\r\n}\r\n\r\nexport const getSeparatorCSS = (separator) => {\r\n\tconst { width = '50%', height = '2px', style = 'solid', color = '#bbb' } = separator || {};\r\n\r\n\tconst styles = `\r\n\t\twidth: ${width};\r\n\t\t${'0px' === height && '0em' === height && '0rem' === height ? '' : `border-top: ${height} ${style} ${color};`}\r\n\t`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getShadowCSS = (shadow) => {\r\n\tconst { type = 'box', hOffset = '0px', vOffset = '0px', blur = '0px', spreed = '0px', color = '#7090b0', isInset = false } = shadow || {};\r\n\r\n\tconst inset = isInset ? 'inset' : '';\r\n\tconst offsetBlur = `${hOffset} ${vOffset} ${blur}`;\r\n\r\n\tconst styles = 'text' === type ? `${offsetBlur} ${color}` : `${offsetBlur} ${spreed} ${color} ${inset}`;\r\n\r\n\treturn styles || 'none';\r\n}\r\n\r\nexport const getSpaceCSS = (space) => {\r\n\tconst { side = 2, vertical = '0px', horizontal = '0px', top = '0px', right = '0px', bottom = '0px', left = '0px' } = space || {};\r\n\r\n\tconst styles = 2 === side ? `${vertical} ${horizontal}` : `${top} ${right} ${bottom} ${left}`;\r\n\r\n\treturn styles;\r\n}\r\n\r\nexport const getTypoCSS = (selector, typo, isFamily = true) => {\r\n\tconst { fontFamily = 'Default', fontCategory = 'sans-serif', fontVariant = 400, fontWeight = 400, isUploadFont = true, fontSize = { desktop: 15, tablet: 15, mobile: 15 }, fontStyle = 'normal', textTransform = 'none', textDecoration = 'auto', lineHeight = '135%', letterSpace = '0px' } = typo || {};\r\n\r\n\tconst generateCss = (value, cssProperty) => !value ? '' : `${cssProperty}: ${value};`;\r\n\r\n\tconst isEmptyFamily = !isFamily || !fontFamily || 'Default' === fontFamily;\r\n\tconst desktopFontSize = fontSize?.desktop || fontSize;\r\n\tconst tabletFontSize = fontSize?.tablet || desktopFontSize;\r\n\tconst mobileFontSize = fontSize?.mobile || tabletFontSize;\r\n\r\n\tconst styles = `\r\n\t\t${isEmptyFamily ? '' : `font-family: '${fontFamily}', ${fontCategory};`}\r\n\t\t${generateCss(fontWeight, 'font-weight')}\r\n\t\t${`font-size: ${desktopFontSize}px;`}\r\n\t\t${generateCss(fontStyle, 'font-style')}\r\n\t\t${generateCss(textTransform, 'text-transform')}\r\n\t\t${generateCss(textDecoration, 'text-decoration')}\r\n\t\t${generateCss(lineHeight, 'line-height')}\r\n\t\t${generateCss(letterSpace, 'letter-spacing')}\r\n\t`;\r\n\r\n\t// Google font link\r\n\tconst linkQuery = !fontVariant || 400 === fontVariant ? '' : '400i' === fontVariant ? ':ital@1' : fontVariant?.includes('00i') ? `: ital, wght@1, ${fontVariant?.replace('00i', '00')} ` : `: wght@${fontVariant} `;\r\n\r\n\tconst link = isEmptyFamily ? '' : `https://fonts.googleapis.com/css2?family=${fontFamily?.split(' ').join('+')}${linkQuery.replace(/ /g, '')}&display=swap`;\r\n\r\n\treturn {\r\n\t\tgoogleFontLink: !isUploadFont || isEmptyFamily ? '' : `@import url(${link});`,\r\n\t\tstyles: `${selector}{\r\n\t\t\t${styles}\r\n\t\t}\r\n\t\t@media (max-width: 768px) {\r\n\t\t\t${selector}{\r\n\t\t\t\t${`font-size: ${tabletFontSize}px;`}\r\n\t\t\t}\r\n\t\t}\r\n\t\t@media (max-width: 576px) {\r\n\t\t\t${selector}{\r\n\t\t\t\t${`font-size: ${mobileFontSize}px;`}\r\n\t\t\t}\r\n\t\t}`.replace(/\\s+/g, ' ').trim()\r\n\t}\r\n}\r\n\r\nexport const getBoxCSS = (val = {}) => Object.values(val).join(' ');","import { getBorderCSS, getColorsCSS, getMultiShadowCSS, getTypoCSS, getBoxCSS } from '../../Components/utils/getCSS';\r\n\r\nconst Style = ({ attributes, clientId }) => {\r\n\tconst { alignment, button, border, shadow } = attributes;\r\n\tconst { icon, typo, colors, padding } = button;\r\n\r\n\tconst mainSl = `#etfTwitterFeed-${clientId}`;\r\n\tconst blockSl = `${mainSl} .etfTwitterFeed`;\r\n\r\n\treturn <style dangerouslySetInnerHTML={{\r\n\t\t__html: `\r\n\t\t${getTypoCSS('', typo)?.googleFontLink}\r\n\t\t${getTypoCSS(`${blockSl} .etfButton`, typo)?.styles}\r\n\r\n\t\t${mainSl}{\r\n\t\t\ttext-align: ${alignment};\r\n\t\t}\r\n\t\t${blockSl}{\r\n\t\t\ttext-align: ${alignment};\r\n\t\t}\r\n\t\t${blockSl} .etfButton{\r\n\t\t    ${getColorsCSS(colors)}\r\n\t\t\tpadding: ${getBoxCSS(padding)};\r\n\t\t\t\r\n\t\t}\r\n\t\t${blockSl} .etfButton svg{\r\n\t\t\twidth: ${icon.width};\r\n\t\t\theight: ${icon.height};\r\n\t\t}\r\n\t\t${blockSl} iframe, ${blockSl} .etfButton{\r\n\t\t\t${getBorderCSS(border)}\r\n\t\t\tbox-shadow: ${getMultiShadowCSS(shadow)};\r\n\t\t}\r\n\t`}} />;\r\n}\r\nexport default Style;","const Timeline = ({ attributes, }) => {\r\n    const { userName, config } = attributes;\r\n    const { theme, width, height, scrolling, isHeader, isFooter, language } = config;\r\n\r\n    // eslint-disable-next-line react/no-unknown-property\r\n    return <iframe Scrolling={scrolling} frameBorder=\"0\" allowtransparency=\"true\" allowFullScreen=\"true\" className=\"twitter_iframe\" style={{ position: 'static', visibility: 'visible', width: `${width}`, height: `${height}`, flexGrow: 1, overflow: \"auto\" }} title=\"Twitter Timeline\" src={`https://syndication.twitter.com/srv/timeline-profile/screen-name/${userName}?dnt=false&frame=false&hideBorder=true&showHeader=${isHeader}&hideFooter=${!isFooter}&lang=${language}&showReplies=false&theme=${theme}&transparent=false`}></iframe>;\r\n}\r\nexport default Timeline;","export const twitterIcon = (color = 'currentcolor') => <svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} viewBox=\"0 0 48 48\" fill={color}>\r\n\t<path fill={color} d=\"M42,12.429c-1.323,0.586-2.746,0.977-4.247,1.162c1.526-0.906,2.7-2.351,3.251-4.058c-1.428,0.837-3.01,1.452-4.693,1.776C34.967,9.884,33.05,9,30.926,9c-4.08,0-7.387,3.278-7.387,7.32c0,0.572,0.067,1.129,0.193,1.67c-6.138-0.308-11.582-3.226-15.224-7.654c-0.64,1.082-1,2.349-1,3.686c0,2.541,1.301,4.778,3.285,6.096c-1.211-0.037-2.351-0.374-3.349-0.914c0,0.022,0,0.055,0,0.086c0,3.551,2.547,6.508,5.923,7.181c-0.617,0.169-1.269,0.263-1.941,0.263c-0.477,0-0.942-0.054-1.392-0.135c0.94,2.902,3.667,5.023,6.898,5.086c-2.528,1.96-5.712,3.134-9.174,3.134c-0.598,0-1.183-0.034-1.761-0.104C9.268,36.786,13.152,38,17.321,38c13.585,0,21.017-11.156,21.017-20.834c0-0.317-0.01-0.633-0.025-0.945C39.763,15.197,41.013,13.905,42,12.429\"></path>\r\n</svg>;\r\n\r\nexport const XIcon = (color = 'currentcolor') => <svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} viewBox=\"0,0,256,256\" fill={color}>\r\n\t<path fill={color} transform=\"scale(5.12,5.12)\" d=\"M5.91992,6l14.66211,21.375l-14.35156,16.625h3.17969l12.57617,-14.57812l10,14.57813h12.01367l-15.31836,-22.33008l13.51758,-15.66992h-3.16992l-11.75391,13.61719l-9.3418,-13.61719zM9.7168,8h7.16406l23.32227,34h-7.16406z\"></path>\r\n</svg>","import { XIcon, twitterIcon } from \"../../utils/icons\";\r\n\r\nconst FollowButton = ({ attributes }) => {\r\n    const { userName, button } = attributes;\r\n    const { iconsType } = button\r\n\r\n    const handleTwitterFollow = () => {\r\n        const twitterUrl = `https://twitter.com/intent/follow?region=follow_link&screen_name=${userName}`;\r\n        window.open(twitterUrl, '_blank');\r\n    };\r\n\r\n    return <a onClick={handleTwitterFollow} rel='noreferrer' className=\"etfButton\">\r\n        {iconsType == \"tIcon\" ? twitterIcon() : XIcon()}\r\n        <span> Follow @{userName}</span>\r\n    </a>\r\n}\r\nexport default FollowButton;","import { XIcon, twitterIcon } from \"../../utils/icons\";\r\n\r\nconst TweetButton = ({ attributes }) => {\r\n    const { userName, button } = attributes\r\n    const { iconsType } = button\r\n\r\n    const handleTwitterTweet = () => {\r\n        const twitterUrl = `https://twitter.com/intent/tweet?screen_name=${userName}&text=${button.tweetText}`;\r\n        window.open(twitterUrl, '_blank');\r\n    };\r\n\r\n    return <a onClick={handleTwitterTweet} className=\"etfButton\">\r\n        {iconsType == \"tIcon\" ? twitterIcon() : XIcon()}\r\n        <span>Tweet to @{userName}</span>\r\n    </a>\r\n}\r\n\r\nexport default TweetButton;","const VideoPost = ({ attributes }) => {\r\n    const { type, config, videoPostID } = attributes;\r\n    const { language, scrolling, theme, height, width } = config;\r\n\r\n    const vpHeight = type == 'video' ? '280px' : height;\r\n    const src = type === 'video' ?\r\n        `https://platform.twitter.com/embed/Tweet.html?dnt=false&frame=false&hideCard=false&hideThread=false&id=${videoPostID}&lang=${language}&theme=${theme}&width=${width}&maxWidth=${width}` : type === 'post' ?\r\n            `https://platform.twitter.com/embed/Tweet.html?dnt=false&frame=false&hideCard=false&hideThread=false&id=${videoPostID}&lang=${language}&theme=${theme}&width=${width}` : '';\r\n\r\n\r\n    // eslint-disable-next-line react/no-unknown-property\r\n    return <iframe Scrolling={scrolling} frameBorder=\"0\" allowtransparency=\"true\" allowFullScreen=\"true\"\r\n        style={{ width: `${width}`, height: `${vpHeight}` }} title=\"X Post\"\r\n        src={src}\r\n        data-tweet-id={videoPostID}></iframe>\r\n}\r\n\r\nexport default VideoPost;","import { XIcon, twitterIcon } from \"../../utils/icons\";\r\n\r\nconst Hastag = ({ attributes }) => {\r\n    const { button } = attributes;\r\n    const { tweetText, hasTagText, iconsType } = button;\r\n\r\n    const handleTwitterFollow = () => {\r\n        const hasTagUrl = `https://twitter.com/intent/tweet?hashtags=${hasTagText}%2C&original_referer=https%3A%2F%2Fpublish.twitter.com%2F&text=${tweetText}`;\r\n        window.open(hasTagUrl, '_blank');\r\n    };\r\n\r\n    return <a onClick={handleTwitterFollow} rel='noreferrer' className=\"etfButton\">\r\n        {iconsType == \"tIcon\" ? twitterIcon() : XIcon()}\r\n        <span> Post #{hasTagText}</span>\r\n    </a>\r\n}\r\n\r\nexport default Hastag;","import { createRoot } from 'react-dom/client';\r\n\r\nimport './style.scss';\r\nimport Style from './Style';\r\nimport Timeline from './Components/Common/Timeline';\r\nimport FollowButton from './Components/Common/FollowButton';\r\nimport TweetButton from './Components/Common/TweetButton';\r\nimport VideoPost from './Components/Common/VideoPost';\r\nimport Hastag from './Components/Common/Hastag';\r\n\r\n// Block Name\r\ndocument.addEventListener('DOMContentLoaded', () => {\r\n\tconst blockEls = document.querySelectorAll('.wp-block-etf-twitter-feed');\r\n\tblockEls.forEach(blockEl => {\r\n\t\tconst attributes = JSON.parse(blockEl.dataset.attributes);\r\n\r\n\t\tcreateRoot(blockEl).render(<>\r\n\t\t\t<Style attributes={attributes} clientId={attributes.cId} />\r\n\r\n\t\t\t<TwitterFeed attributes={attributes} />\r\n\t\t</>);\r\n\r\n\t\tblockEl?.removeAttribute('data-attributes');\r\n\t});\r\n});\r\n\r\nconst TwitterFeed = ({ attributes }) => {\r\n\tconst { type } = attributes;\r\n\r\n\treturn <div className={`etfTwitterFeed`}>\r\n\t\t{type == \"timeline\" && <Timeline attributes={attributes} />}\r\n\t\t{type == \"follow\" && <FollowButton attributes={attributes} />}\r\n\t\t{type == \"tweet\" && <TweetButton attributes={attributes} />}\r\n\t\t{type == \"tag\" && <Hastag attributes={attributes} />}\r\n\t\t{['video', 'post'].includes(type) && <VideoPost attributes={attributes} />}\r\n\t</div>\r\n}"],"names":["m","exports","createRoot","hydrateRoot","module","ReactDOM","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getBorderCSS","border","_ref2","_ref2$width","width","_ref2$style","style","_ref2$color","color","_ref2$side","side","_ref2$radius","radius","borderSideCheck","s","bSide","toLowerCase","includes","noWidth","borderCSS","concat","styles","map","join","getColorsCSS","colors","_ref3","_ref3$color","_ref3$bgType","bgType","_ref3$bg","bg","_ref3$gradient","gradient","getMultiShadowCSS","value","type","arguments","length","item","index","_ref5","_ref5$hOffset","hOffset","_ref5$vOffset","vOffset","_ref5$blur","blur","_ref5$spreed","spreed","_ref5$color","_ref5$isInset","isInset","inset","offsetBlur","isComa","getTypoCSS","selector","typo","isFamily","_ref9","_ref9$fontFamily","fontFamily","_ref9$fontCategory","fontCategory","_ref9$fontVariant","fontVariant","_ref9$fontWeight","fontWeight","_ref9$isUploadFont","isUploadFont","_ref9$fontSize","fontSize","desktop","tablet","mobile","_ref9$fontStyle","fontStyle","_ref9$textTransform","textTransform","_ref9$textDecoration","textDecoration","_ref9$lineHeight","lineHeight","_ref9$letterSpace","letterSpace","generateCss","cssProperty","isEmptyFamily","desktopFontSize","tabletFontSize","mobileFontSize","linkQuery","replace","link","split","googleFontLink","trim","getBoxCSS","val","Object","values","_ref","_getTypoCSS","_getTypoCSS2","attributes","clientId","alignment","button","shadow","icon","padding","mainSl","blockSl","React","createElement","dangerouslySetInnerHTML","__html","height","userName","config","theme","scrolling","isHeader","isFooter","language","Scrolling","frameBorder","allowtransparency","allowFullScreen","className","position","visibility","flexGrow","overflow","title","src","twitterIcon","xmlns","viewBox","fill","d","XIcon","transform","iconsType","onClick","twitterUrl","window","open","rel","tweetText","videoPostID","vpHeight","hasTagText","hasTagUrl","document","addEventListener","querySelectorAll","forEach","blockEl","JSON","parse","dataset","render","Fragment","Style","cId","TwitterFeed","removeAttribute","Timeline","FollowButton","TweetButton","Hastag","VideoPost"],"sourceRoot":""}