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1B,IAAMD,EAAa,SAAC,GAAuC,IAArCzE,EAAqC,EAArCA,OAAQO,EAA6B,EAA7BA,WAAY3J,EAAiB,EAAjBA,WACjC+N,EAAyI/N,EAAzI+N,IAAKnI,EAAoI5F,EAApI4F,OAAQoB,EAA4HhH,EAA5HgH,kBAAmBC,EAAyGjH,EAAzGiH,aAAc+G,EAA2FhO,EAA3FgO,YAAa9G,EAA8ElH,EAA9EkH,aAAcC,EAAgEnH,EAAhEmH,oBAAqBC,EAA2CpH,EAA3CoH,oBAAtG,EAAiJpH,EAAtBiO,SAAAA,OAA3H,MAAsI,OAAtI,EAEA,KAA0B5G,EAAAA,EAAAA,UAAS,IAAnC,GAAO1B,EAAP,KAAcuI,EAAd,KAEMC,EAAgBlF,SAASa,cAAT,WAA2BV,EAAOrD,GAAlC,qBAOtB,OAJAqI,EAAAA,EAAAA,YAAU,YACTzI,aAAA,EAAAA,EAAO5D,UAAUoM,SAAAA,EAAeE,YAC9B,CAAC1I,EAAOwI,IAEJ,wCACLxI,SAAAA,EAAO5D,OAAS,oBAAC,EAAD,CAAc4D,MAAOA,EAAO3F,WAAYA,EAAYsO,SAAUP,IAAU,KAEzF,oBAAC,EAAD,CAAY/N,WAAY,CAAE4F,OAAAA,EAAQoB,kBAAAA,EAAmBC,aAAAA,EAAcC,aAAAA,EAAcC,oBAAAA,EAAqBC,oBAAAA,GAAuBN,WAAY6C,EAAY5C,SAAU,SAAAwH,GAAO,MAOrKC,MAAM,GAAD,iBAAIC,mBAAJ,aAAI,EAAaC,QAAjB,qCAAqDX,EAArD,uBAAuEQ,EAAvE,yBAA2FtH,EAA3F,wBAAuH+G,EAAvH,qBAA+IC,IAClJU,MAAK,SAAAC,GAAG,OAAIA,EAAIC,UAChBF,MAAK,SAAAG,GAAI,OAAIZ,EAASY,W","sources":["webpack://advanced-post-block/external var \"React\"","webpack://advanced-post-block/external var \"ReactDOM\"","webpack://advanced-post-block/./src/utils/functions.js","webpack://advanced-post-block/./src/Single/FeatureImage.js","webpack://advanced-post-block/./src/Single/PostTitle.js","webpack://advanced-post-block/./src/Single/PostExcerpt.js","webpack://advanced-post-block/./src/Single/PostReadMore.js","webpack://advanced-post-block/./src/Single/PostMetaAuthor.js","webpack://advanced-post-block/./src/Single/PostMetaDate.js","webpack://advanced-post-block/./src/Single/PostMetaCategory.js","webpack://advanced-post-block/./src/Single/PostMetaReadTime.js","webpack://advanced-post-block/./src/Single/PostMetaComment.js","webpack://advanced-post-block/./src/Single/PostMeta.js","webpack://advanced-post-block/./src/Layout/Default.js","webpack://advanced-post-block/./src/Layout/SideImage.js","webpack://advanced-post-block/./src/Layout/Overlay.js","webpack://advanced-post-block/./src/Layout/MapPosts.js","webpack://advanced-post-block/./src/DisplayPosts.js","webpack://advanced-post-block/./src/Pagination/usePagination.js","webpack://advanced-post-block/./src/Pagination/index.js","webpack://advanced-post-block/./src/script.js","webpack://advanced-post-block/./src/utils/configs.js"],"sourcesContent":["var __WEBPACK_NAMESPACE_OBJECT__ = React;","var __WEBPACK_NAMESPACE_OBJECT__ = ReactDOM;","export const truncate = (str, nu_words) => str && str.split(' ').splice(0, nu_words).join(' ');\r\n\r\nexport const strLength = (str) => str ? str.split(' ').length : 0;\r\n\r\nexport const wordCount = content => content ? (content?.replace(/(<([^>]+)>)/gi, '').split(/\\s+/) || []).length : 0;\r\n\r\nexport const renderHTML = raw => ;\r\n\r\nexport const filterObject = (obj, callback) => Object.fromEntries(Object.entries(obj).filter(([key, val]) => callback(key, val)));\r\n\r\nexport const omit = ({ [key]: _, ...obj }, key) => obj;\r\n\r\nexport const filterSelected = (taxonomy, selected) => taxonomy?.map(tax => tax.id)?.filter(tax => selected.indexOf(tax) !== -1);\r\n\r\nexport const dateFormat = (format, date) => {\r\n\tconst suffix = {\r\n\t\t'01': 'st',\r\n\t\t'02': 'nd',\r\n\t\t'03': 'rd'\r\n\t};\r\n\r\n\tif (!date || date === \"\") {\r\n\t\tdate = new Date();\r\n\t}\r\n\telse if (typeof (date) !== 'object') {\r\n\t\tdate = new Date(date.replace(/-/g, \"/\")); // attempt to convert string to date object\t\r\n\t}\r\n\r\n\tvar string = '',\r\n\t\tmo = date.getMonth(),\t// month (0-11)\r\n\t\tm1 = mo + 1,\t\t\t// month (1-12)\r\n\t\tdow = date.getDay(),\t// day of week (0-6)\r\n\t\td = date.getDate(),\t\t// day of the month (1-31)\r\n\t\ty = date.getFullYear(), // 1999 or 2003\r\n\t\th = date.getHours(),\t// hour (0-23)\r\n\t\tmi = date.getMinutes(), // minute (0-59)\r\n\t\ts = date.getSeconds(); // seconds (0-59)\r\n\r\n\tfor (var i = 0, len = format.length; i < len; i++) {\r\n\t\tswitch (format[i]) {\r\n\t\t\tcase 'j': // Day of the month without leading zeros (1 to 31)\r\n\t\t\t\tstring += d;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'd': // Day of the month, 2 digits with leading zeros (01 to 31)\r\n\t\t\t\tstring += (d < 10) ? \"0\" + d : d;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"S\": // Day of the month, 2 digits with leading zeros (01 to 31)\r\n\t\t\t\tstring += suffix[d] || 'th';\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'l': // (lowercase 'L') A full textual representation of the day of the week\r\n\t\t\t\tvar days = Array(\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\");\r\n\t\t\t\tstring += days[dow];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'w': // Numeric representation of the day of the week (0=Sunday,1=Monday,...6=Saturday)\r\n\t\t\t\tstring += dow;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'D': // A textual representation of a day, three letters\r\n\t\t\t\tdays = Array(\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thr\", \"Fri\", \"Sat\");\r\n\t\t\t\tstring += days[dow];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'm': // Numeric representation of a month, with leading zeros (01 to 12)\r\n\t\t\t\tstring += (m1 < 10) ? \"0\" + m1 : m1;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'n': // Numeric representation of a month, without leading zeros (1 to 12)\r\n\t\t\t\tstring += m1;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'F': // A full textual representation of a month, such as January or March \r\n\t\t\t\tvar months = Array(\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\");\r\n\t\t\t\tstring += months[mo];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'M': // A short textual representation of a month, three letters (Jan - Dec)\r\n\t\t\t\tmonths = Array(\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\");\r\n\t\t\t\tstring += months[mo];\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'Y': // A full numeric representation of a year, 4 digits (1999 OR 2003)\t\r\n\t\t\t\tstring += y;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'y': // A two digit representation of a year (99 OR 03)\r\n\t\t\t\tstring += y.toString().slice(-2);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'H': // 24-hour format of an hour with leading zeros (00 to 23)\r\n\t\t\t\tstring += (h < 10) ? \"0\" + h : h;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'g': // 12-hour format of an hour without leading zeros (1 to 12)\r\n\t\t\t\tvar hour = (h === 0) ? 12 : h;\r\n\t\t\t\tstring += (hour > 12) ? hour - 12 : hour;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'h': // 12-hour format of an hour with leading zeros (01 to 12)\r\n\t\t\t\thour = (h === 0) ? 12 : h;\r\n\t\t\t\thour = (hour > 12) ? hour - 12 : hour;\r\n\t\t\t\tstring += (hour < 10) ? \"0\" + hour : hour;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'a': // Lowercase Ante meridiem and Post meridiem (am or pm)\r\n\t\t\t\tstring += (h < 12) ? \"am\" : \"pm\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'i': // Minutes with leading zeros (00 to 59)\r\n\t\t\t\tstring += (mi < 10) ? \"0\" + mi : mi;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 's': // Seconds, with leading zeros (00 to 59)\r\n\t\t\t\tstring += (s < 10) ? \"0\" + s : s;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'c': // ISO 8601 date (eg: 2012-11-20T18:05:54.944Z)\r\n\t\t\t\tstring += date.toISOString();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tstring += format[i];\r\n\t\t}\r\n\t}\r\n\r\n\treturn string;\r\n}\r\n\r\nexport const classNames = (...args) => {\r\n\tconst classes = args.reduce((acc, arg) => {\r\n\t\tif (typeof arg === 'string') {\r\n\t\t\tacc.push(arg);\r\n\t\t} else if (typeof arg === 'object') {\r\n\t\t\tObject.entries(arg).forEach(([key, value]) => {\r\n\t\t\t\tif (value) {\r\n\t\t\t\t\tacc.push(key);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn acc;\r\n\t}, []);\r\n\r\n\treturn classes.join(' ');\r\n}","import { renderHTML } from '../utils/functions';\r\n\r\nconst FeatureImage = ({ post, attributes }) => {\r\n\tconst { link, thumbnail: { url: thumbUrl, alt: thumbAlt }, categories } = post;\r\n\tconst { isFImg, isFImgLink, isMeta, isMetaCategory, metaCategoryIn, isLinkNewTab } = attributes;\r\n\r\n\treturn (isFImg && thumbUrl) ?
\r\n\t\t{isFImgLink ? \r\n\t\t\t{thumbAlt}\r\n\t\t : {thumbAlt}}\r\n\r\n\t\t{(isMeta && isMetaCategory && 'image' === metaCategoryIn) &&
\r\n\t\t\t{renderHTML(categories.space)}\r\n\t\t
}\r\n\t
: null;\r\n};\r\nexport default FeatureImage;","const PostTitle = ({ post, attributes }) => {\r\n\tconst { link, title } = post;\r\n\tconst { isTitle, isTitleLink, isLinkNewTab } = attributes;\r\n\r\n\treturn isTitle ? <>\r\n\t\t{isTitleLink ?\r\n\t\t\t

\r\n\t\t\t\t\r\n\t\t\t

:\r\n\t\t\t

}\r\n\t : null;\r\n};\r\nexport default PostTitle;","import { truncate, strLength } from '../utils/functions';\r\n\r\nconst PostExcerpt = ({ post, attributes }) => {\r\n\tconst { excerpt, content } = post;\r\n\tconst { isExcerpt, isExcerptFromContent, isEllipsisOnExcerpt, excerptLength } = attributes;\r\n\r\n\tconst finalExcerpt = (!isExcerptFromContent && excerpt) ? excerpt : content;\r\n\tconst ellipsis = (isEllipsisOnExcerpt && (strLength(finalExcerpt) > excerptLength)) ? '...' : '';\r\n\r\n\treturn isExcerpt ?
: null;\r\n};\r\nexport default PostExcerpt;","const PostReadMore = ({ post, attributes }) => {\r\n\tconst { link } = post;\r\n\tconst { isReadMore, readMorePosition = 'auto', readMoreLabel, isLinkNewTab } = attributes;\r\n\r\n\treturn isReadMore ?
\r\n\t\t\r\n\t
: null;\r\n};\r\nexport default PostReadMore;","const PostMetaAuthor = ({ post, attributes }) => {\r\n\tconst { author } = post;\r\n\tconst { name, link } = author || {};\r\n\tconst { isMetaAuthor, isMetaAuthorLink = true, metaAuthorIcon } = attributes;\r\n\r\n\treturn isMetaAuthor ? \r\n\t\t{metaAuthorIcon ?\r\n\t\t\tAuthor :\r\n\t\t\t}\r\n\r\n\t\t{!isMetaAuthorLink ?\r\n\t\t\t{name} :\r\n\t\t\t{name}}\r\n\t : null;\r\n};\r\nexport default PostMetaAuthor;","import { dateFormat } from './../utils/functions';\r\n\r\nconst PostMetaDate = ({ post, attributes }) => {\r\n\tconst { date } = post;\r\n\tconst { isMetaDate, metaDateFormat = 'M j, Y', metaDateIcon } = attributes;\r\n\r\n\treturn isMetaDate ? \r\n\t\t{metaDateIcon ?\r\n\t\t\tDate :\r\n\t\t\t}\r\n\r\n\t\t{dateFormat(metaDateFormat, new Date(date))}\r\n\t : null;\r\n};\r\nexport default PostMetaDate;","import { renderHTML } from '../utils/functions';\r\n\r\nconst PostMetaCategory = ({ post, attributes }) => {\r\n\tconst { categories } = post;\r\n\tconst { isMetaCategory, metaCategoryIn, metaCategoryIcon } = attributes;\r\n\r\n\treturn (isMetaCategory && 'content' === metaCategoryIn) ? \r\n\t\t{metaCategoryIcon ?\r\n\t\t\tAuthor :\r\n\t\t\t}\r\n\r\n\t\t{renderHTML(categories.coma)}\r\n\t : null;\r\n};\r\nexport default PostMetaCategory;","const PostMetaReadTime = ({ post, attributes }) => {\r\n\tconst { readTime } = post;\r\n\tconst { isMetaReadTime, metaReadTimeIcon, isMetaReadTimeSec, metaReadTimeLabel } = attributes;\r\n\r\n\tconst readTimeText = isMetaReadTimeSec ? `${readTime?.min}:${readTime?.sec}` : readTime?.min;\r\n\r\n\treturn isMetaReadTime ? \r\n\t\t{metaReadTimeIcon ?\r\n\t\t\tAuthor :\r\n\t\t\t}\r\n\r\n\t\t{readTimeText} {metaReadTimeLabel}\r\n\t : null;\r\n};\r\nexport default PostMetaReadTime;","const PostMetaComment = ({ post, attributes }) => {\r\n\tconst { link, title, commentCount } = post;\r\n\tconst { isMetaComment, metaCommentIcon } = attributes;\r\n\r\n\treturn isMetaComment ? \r\n\t\t{metaCommentIcon ?\r\n\t\t\tAuthor :\r\n\t\t\t}\r\n\r\n\t\t{commentCount}\r\n\t : null;\r\n};\r\nexport default PostMetaComment;","import PostMetaAuthor from './PostMetaAuthor';\r\nimport PostMetaDate from './PostMetaDate';\r\nimport PostMetaCategory from './PostMetaCategory';\r\nimport PostMetaReadTime from './PostMetaReadTime';\r\nimport PostMetaComment from './PostMetaComment';\r\n\r\nconst PostMeta = ({ post, attributes }) => {\r\n\tconst { isMeta } = attributes;\r\n\r\n\treturn isMeta &&
\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t
;\r\n};\r\nexport default PostMeta;","import FeatureImage from '../Single/FeatureImage';\r\nimport PostTitle from '../Single/PostTitle';\r\nimport PostExcerpt from '../Single/PostExcerpt';\r\nimport PostReadMore from '../Single/PostReadMore';\r\nimport PostMeta from '../Single/PostMeta';\r\nimport { classNames } from '../utils/functions';\r\n\r\nconst Default = ({ post, attributes, postClass }) => {\r\n\tconst { subLayout } = attributes;\r\n\r\n\tconst className = classNames(postClass, 'apbDefault');\r\n\r\n\treturn
\r\n\t\t\r\n\r\n\t\t
\r\n\t\t\t\r\n\r\n\t\t\t\r\n\r\n\t\t\t{'title-meta' !== subLayout && <>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t
\r\n\t
;\r\n};\r\nexport default Default;","import FeatureImage from '../Single/FeatureImage';\r\nimport PostTitle from '../Single/PostTitle';\r\nimport PostExcerpt from '../Single/PostExcerpt';\r\nimport PostReadMore from '../Single/PostReadMore';\r\nimport PostMeta from '../Single/PostMeta';\r\nimport { classNames } from '../utils/functions';\r\n\r\nconst SideImage = ({ post, attributes, postClass }) => {\r\n\tconst { thumbnail } = post;\r\n\tconst { subLayout, isFImg } = attributes;\r\n\r\n\tconst isLeftImg = 'left-image' === subLayout;\r\n\tconst isRightImg = 'right-image' === subLayout;\r\n\tconst className = classNames(postClass, 'apbSideImage', {\r\n\t\t'grid': isFImg && thumbnail.url,\r\n\t\t'leftImage': isLeftImg,\r\n\t\t'rightImage': isRightImg\r\n\t});\r\n\r\n\treturn
\r\n\t\t{isLeftImg && }\r\n\r\n\t\t
\r\n\t\t\t\r\n\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\r\n\t\t{isRightImg && }\r\n\t
;\r\n};\r\nexport default SideImage;","import PostTitle from '../Single/PostTitle';\r\nimport PostExcerpt from '../Single/PostExcerpt';\r\nimport PostReadMore from '../Single/PostReadMore';\r\nimport PostMeta from '../Single/PostMeta';\r\nimport { classNames } from '../utils/functions';\r\n\r\nconst Overlay = ({ post, attributes, postClass }) => {\r\n\tconst { title, thumbnail: { url: thumbUrl } } = post;\r\n\tconst { subLayout } = attributes;\r\n\r\n\tconst className = classNames(postClass, 'apbOverlay', {\r\n\t\t'apbOverlayHover': 'overlay-content-hover' === subLayout && thumbUrl,\r\n\t\t'apbOverlayBox': 'overlay-box' === subLayout || 'overlay-content-box' === subLayout,\r\n\t\t'apbOverlayHalfContent': 'overlay-half-content' === subLayout\r\n\t});\r\n\r\n\treturn
\r\n\t\t{thumbUrl && {title}}\r\n\r\n\t\t
\r\n\t\t\t\r\n\r\n\t\t\t\r\n\r\n\t\t\t{'overlay-box' !== subLayout && 'overlay-half-content' !== subLayout && <>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t
\r\n\t
;\r\n};\r\n\r\nexport default Overlay;","import Default from './Default';\r\nimport SideImage from './SideImage';\r\nimport Overlay from './Overlay';\r\nimport { classNames } from '../utils/functions';\r\n\r\nconst MapPosts = ({ posts, attributes }) => {\r\n\tconst { layout, subLayout, content = { height: 'auto' } } = attributes;\r\n\r\n\treturn posts.map(post => {\r\n\t\tconst { id, thumbnail } = post;\r\n\t\tconst postClass = classNames('apbPost', `apbPost-${id}`, `${content?.height}ContentHeight`, {\r\n\t\t\t'hasThumbnail': thumbnail.url,\r\n\t\t\t'swiper-slide': 'slider' === layout\r\n\t\t});\r\n\r\n\t\tswitch (subLayout) {\r\n\t\t\tcase 'default':\r\n\t\t\tcase 'title-meta':\r\n\t\t\t\treturn ;\r\n\t\t\tcase 'left-image':\r\n\t\t\tcase 'right-image':\r\n\t\t\t\treturn ;\r\n\t\t\tcase 'overlay-content':\r\n\t\t\tcase 'overlay-content-hover':\r\n\t\t\tcase 'overlay-box':\r\n\t\t\tcase 'overlay-content-box':\r\n\t\t\tcase 'overlay-half-content':\r\n\t\t\t\treturn ;\r\n\t\t\tdefault:\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t});\r\n}\r\nexport default MapPosts;","import MapPosts from './Layout/MapPosts';\r\n\r\nconst DisplayPosts = ({ posts, attributes }) => {\r\n\tconst { layout, columns, sliderIsPage, sliderIsPrevNext } = attributes;\r\n\tconst { desktop = 3, tablet = 2, mobile = 1 } = columns;\r\n\r\n\tconst PostsLoop = () => \r\n\r\n\tswitch (layout) {\r\n\t\tcase 'grid':\r\n\t\t\treturn
\r\n\t\t\t\t\r\n\t\t\t
;\r\n\r\n\t\tcase 'grid1':\r\n\t\t\treturn
\r\n\t\t\t\t\r\n\t\t\t
;\r\n\r\n\t\tcase 'masonry':\r\n\t\t\treturn
\r\n\t\t\t\t\r\n\t\t\t
;\r\n\r\n\t\tcase 'slider':\r\n\t\t\treturn
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t{sliderIsPage &&
}\r\n\r\n\t\t\t\t{sliderIsPrevNext && (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
;\r\n\r\n\t\tcase 'ticker':\r\n\t\t\treturn
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
;\r\n\r\n\t\tdefault:\r\n\t\t\treturn null;\r\n\t}\r\n}\r\nexport default DisplayPosts;","import { useMemo } from 'react';\r\n\r\nexport const DOTS = '·';\r\n\r\nconst range = (start, end) => {\r\n\tlet length = end - start + 1;\r\n\treturn Array.from({ length }, (_, idx) => idx + start);\r\n};\r\n\r\nexport const usePagination = ({ currentPage, totalCount, pageSize, siblingCount = 1 }) => {\r\n\tconst paginationRange = useMemo(() => {\r\n\t\tconst totalPageCount = Math.ceil(totalCount / pageSize);\r\n\r\n\t\t// Pages count is determined as siblingCount + firstPage + lastPage + currentPage + 2*DOTS\r\n\t\tconst totalPageNumbers = siblingCount + 5;\r\n\r\n\t\t/*\r\n\t\t\tIf the number of pages is less than the page numbers we want to show in our\r\n\t\t\tpaginationComponent, we return the range [1..totalPageCount]\r\n\t\t*/\r\n\t\tif (totalPageNumbers >= totalPageCount) {\r\n\t\t\treturn range(1, totalPageCount);\r\n\t\t}\r\n\r\n\t\tconst leftSiblingIndex = Math.max(currentPage - siblingCount, 1);\r\n\t\tconst rightSiblingIndex = Math.min(\r\n\t\t\tcurrentPage + siblingCount,\r\n\t\t\ttotalPageCount\r\n\t\t);\r\n\r\n\t\t/*\r\n\t\t\tWe do not want to show dots if there is only one position left \r\n\t\t\tafter/before the left/right page count as that would lead to a change if our Pagination\r\n\t\t\tcomponent size which we do not want\r\n\t\t*/\r\n\t\tconst shouldShowLeftDots = leftSiblingIndex > 2;\r\n\t\tconst shouldShowRightDots = rightSiblingIndex < totalPageCount - 2;\r\n\r\n\t\tconst firstPageIndex = 1;\r\n\t\tconst lastPageIndex = totalPageCount;\r\n\r\n\t\tif (!shouldShowLeftDots && shouldShowRightDots) {\r\n\t\t\tlet leftItemCount = 3 + 2 * siblingCount;\r\n\t\t\tlet leftRange = range(1, leftItemCount);\r\n\t\t\treturn [...leftRange, DOTS, totalPageCount];\r\n\t\t}\r\n\r\n\t\tif (shouldShowLeftDots && !shouldShowRightDots) {\r\n\t\t\tlet rightItemCount = 3 + 2 * siblingCount;\r\n\t\t\tlet rightRange = range(\r\n\t\t\t\ttotalPageCount - rightItemCount + 1,\r\n\t\t\t\ttotalPageCount\r\n\t\t\t);\r\n\t\t\treturn [firstPageIndex, DOTS, ...rightRange];\r\n\t\t}\r\n\r\n\t\tif (shouldShowLeftDots && shouldShowRightDots) {\r\n\t\t\tlet middleRange = range(leftSiblingIndex, rightSiblingIndex);\r\n\t\t\treturn [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex];\r\n\t\t}\r\n\t}, [currentPage, totalCount, pageSize, siblingCount]);\r\n\r\n\treturn paginationRange;\r\n};","import { useState } from 'react';\r\n\r\nimport { usePagination, DOTS } from './usePagination';\r\n\r\nconst Pagination = ({ attributes, totalCount, onChange }) => {\r\n\tconst { layout, isPostsPerPageAll, postsPerPage, isPagination, paginationPrevLabel, paginationNextLabel } = attributes;\r\n\r\n\tconst [currentPage, setCurrentPage] = useState(1);\r\n\r\n\tconst paginationRange = usePagination({\r\n\t\tcurrentPage,\r\n\t\ttotalCount,\r\n\t\tpageSize: postsPerPage,\r\n\t\tsiblingCount: 1\r\n\t});\r\n\r\n\tif (currentPage === 0 || paginationRange.length < 2) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tlet lastPage = paginationRange[paginationRange.length - 1];\r\n\r\n\tconst setPageNumber = pageNumber => {\r\n\t\tonChange(pageNumber);\r\n\t\tsetCurrentPage(pageNumber);\r\n\t}\r\n\r\n\treturn isPagination && !isPostsPerPageAll && 'slider' !== layout && 'ticker' !== layout ?
    \r\n\t\t
  • setPageNumber(currentPage - 1)}\r\n\t\t>{paginationPrevLabel}
  • \r\n\r\n\t\t{paginationRange.map((pageNumber, index) => {\r\n\t\t\tif (pageNumber === DOTS) {\r\n\t\t\t\treturn
  • ·····
  • ;\r\n\t\t\t}\r\n\r\n\t\t\treturn
  • setPageNumber(pageNumber)}\r\n\t\t\t> {pageNumber}
  • ;\r\n\t\t})}\r\n\r\n\t\t
  • setPageNumber(currentPage + 1)}\r\n\t\t>{paginationNextLabel}
  • \r\n\t
: null;\r\n};\r\nexport default Pagination;","import { useState, useEffect } from 'react';\r\nimport { render } from 'react-dom';\r\nconst $ = jQuery;\r\nimport 'swiper/css/bundle'; // Swiper CSS\r\n\r\nimport DisplayPosts from './DisplayPosts';\r\nimport Pagination from './Pagination';\r\nimport './style.scss';\r\nimport { sliderConfig, setSliderHeight, tickerConfig } from './utils/configs';\r\n\r\n// Advanced Posts Block\r\ndocument.addEventListener('DOMContentLoaded', () => {\r\n\tconst postsEls = document.querySelectorAll('.wp-block-ap-block-posts');\r\n\tpostsEls.forEach(postEl => {\r\n\t\tconst attributes = JSON.parse(postEl.dataset.attributes);\r\n\t\tconst { totalPosts } = JSON.parse(postEl.dataset.extra);\r\n\t\tconst { layout } = attributes;\r\n\r\n\t\t// Slider\r\n\t\tif ('slider' === layout) {\r\n\t\t\tconst sliderEl = document.querySelector(`#${postEl.id} .apbSliderPosts`);\r\n\r\n\t\t\tif (sliderEl) {\r\n\t\t\t\tnew Swiper(sliderEl, sliderConfig(attributes));\r\n\t\t\t\t// new Swiper(sliderEl, {\r\n\t\t\t\t// \t...sliderConfig(attributes),\r\n\t\t\t\t// \ton: {\r\n\t\t\t\t// \t\tinit: () => {\r\n\t\t\t\t// \t\t\tconst slideWrapperEl = document.querySelector(`#${postEl.id} .apbSliderPosts .swiper-wrapper`);\r\n\t\t\t\t// \t\t\tslideWrapperEl.className = 'swiper-wrapper';\r\n\t\t\t\t// \t\t\tslideWrapperEl.style.gap = 0;\r\n\t\t\t\t// \t\t}\r\n\t\t\t\t// \t}\r\n\t\t\t\t// });\r\n\r\n\t\t\t\t// Slider Height\r\n\t\t\t\tsetSliderHeight(postEl.id);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\t// Ticker\r\n\t\tif ('ticker' === layout) {\r\n\t\t\tconst tickerEl = document.querySelector(`#${postEl.id} .apbTickerPosts`);\r\n\r\n\t\t\ttickerEl && $(tickerEl).easyTicker(tickerConfig(attributes));\r\n\t\t}\r\n\r\n\t\trender(, document.querySelector(`#${postEl.id} .apbPostsMain`));\r\n\r\n\t\tpostEl?.removeAttribute('data-attributes');\r\n\t\tpostEl?.removeAttribute('data-extra');\r\n\t});\r\n});\r\n\r\nconst RenderMain = ({ postEl, totalPosts, attributes }) => {\r\n\tconst { cId, layout, isPostsPerPageAll, postsPerPage, postsOffset, isPagination, paginationPrevLabel, paginationNextLabel, fImgSize = 'full' } = attributes;\r\n\r\n\tconst [posts, setPosts] = useState([]);\r\n\r\n\tconst postsMainPHEl = document.querySelector(`#${postEl.id} .apbPostsMainPH`);\r\n\r\n\t// Remove PHP posts if has posts\r\n\tuseEffect(() => {\r\n\t\tposts?.length && postsMainPHEl?.remove();\r\n\t}, [posts, postsMainPHEl]);\r\n\r\n\treturn <>\r\n\t\t{posts?.length ? : null}\r\n\r\n\t\t {\r\n\t\t\t// window.scrollTo({\r\n\t\t\t// \ttop: postEl.offsetTop,\r\n\t\t\t// \tbehavior: 'smooth',\r\n\t\t\t// });\r\n\r\n\t\t\t// Fetch posts on page click\r\n\t\t\tfetch(`${apbPageData?.ajaxUrl}?action=apb_get_posts&cId=${cId}&pageNumber=${val}&postsPerPage=${postsPerPage}&postsOffset=${postsOffset}&fImgSize=${fImgSize}`)\r\n\t\t\t\t.then(res => res.json())\r\n\t\t\t\t.then(data => setPosts(data));\r\n\t\t}} />\r\n\t\r\n}","export const sliderConfig = (attributes) => {\r\n\tconst { columns, columnGap, sliderIsLoop, sliderIsTouchMove, sliderIsAutoplay, sliderAutoplayOptions = { delay: 1.5 }, sliderSpeed, sliderEffect, sliderIsPageClickable, sliderIsPageDynamic } = attributes;\r\n\r\n\treturn {\r\n\t\t// Optional parameters\r\n\t\tdirection: 'horizontal',\r\n\t\tslidesPerView: columns?.mobile,\r\n\t\tbreakpoints: {\r\n\t\t\t// when window width is >= 576px\r\n\t\t\t576: { slidesPerView: columns?.tablet },\r\n\t\t\t// when window width is >= 768px\r\n\t\t\t768: { slidesPerView: columns?.desktop },\r\n\t\t},\r\n\t\tspaceBetween: columnGap,\r\n\t\tloop: sliderIsLoop,\r\n\t\tallowTouchMove: sliderIsTouchMove,\r\n\t\tgrabCursor: sliderIsTouchMove,\r\n\t\tautoplay: sliderIsAutoplay ? { delay: sliderAutoplayOptions?.delay * 1000 } : false,\r\n\t\tspeed: sliderSpeed * 1000,\r\n\t\teffect: sliderEffect,\r\n\t\tfadeEffect: { crossFade: true },\r\n\t\tcreativeEffect: {\r\n\t\t\tprev: {\r\n\t\t\t\tshadow: true,\r\n\t\t\t\ttranslate: ['-120%', 0, -500],\r\n\t\t\t},\r\n\t\t\tnext: {\r\n\t\t\t\tshadow: true,\r\n\t\t\t\ttranslate: ['120%', 0, -500],\r\n\t\t\t}\r\n\t\t},\r\n\t\tallowSlideNext: true,\r\n\t\tallowSlidePrev: true,\r\n\t\tautoHeight: false, // Frontend\r\n\t\tnotificationClass: null,\r\n\r\n\t\t// Controllers\r\n\t\tpagination: {\r\n\t\t\tel: '.swiper-pagination',\r\n\t\t\tclickable: sliderIsPageClickable,\r\n\t\t\tdynamicBullets: sliderIsPageDynamic\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: '.swiper-button-next',\r\n\t\t\tprevEl: '.swiper-button-prev',\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport const setSliderHeight = (id) => {\r\n\tconst slideHeightArray = [];\r\n\tconst swiperSlide = document.querySelectorAll(`#${id} .apbSliderPosts .swiper-slide`);\r\n\tconst swiperSlideText = document.querySelectorAll(`#${id} .apbSliderPosts .swiper-slide .apbText`);\r\n\tswiperSlideText?.forEach(slideText => {\r\n\t\tslideHeightArray.push(slideText?.clientHeight);\r\n\t});\r\n\tswiperSlide?.length && swiperSlide.forEach(slide => {\r\n\t\tslide.style.height = `${Math.max(...slideHeightArray)}px`;\r\n\t});\r\n}\r\n\r\nexport const tickerConfig = (attributes) => {\r\n\tconst { rowGap, tickerDirection = 'up', tickerSpeed = 'slow', tickerInterval = 2000, tickerHeight = '0px', tickerVisible = 3, tickerIsMousePause = true } = attributes;\r\n\r\n\treturn {\r\n\t\tdirection: tickerDirection,\r\n\t\teasing: 'swing',\r\n\t\tspeed: isNaN(tickerSpeed) ? tickerSpeed : parseInt(tickerSpeed),\r\n\t\tinterval: tickerInterval,\r\n\t\theight: '0px' === tickerHeight || '0em' === tickerHeight ? 'auto' : tickerHeight,\r\n\t\tgap: rowGap,\r\n\t\tvisible: tickerVisible,\r\n\t\tmousePause: tickerIsMousePause\r\n\t}\r\n}"],"names":["React","ReactDOM","truncate","str","nu_words","split","splice","join","renderHTML","raw","dangerouslySetInnerHTML","__html","classNames","args","classes","reduce","acc","arg","push","Object","entries","forEach","key","post","attributes","link","thumbnail","thumbUrl","url","thumbAlt","alt","categories","isFImg","isFImgLink","isMeta","isMetaCategory","metaCategoryIn","isLinkNewTab","className","href","target","rel","src","space","title","isTitle","isTitleLink","excerpt","content","isExcerpt","isExcerptFromContent","isEllipsisOnExcerpt","excerptLength","finalExcerpt","ellipsis","length","isReadMore","readMorePosition","readMoreLabel","author","name","isMetaAuthor","isMetaAuthorLink","metaAuthorIcon","date","isMetaDate","metaDateFormat","metaDateIcon","format","suffix","Date","replace","string","mo","getMonth","m1","dow","getDay","d","getDate","y","getFullYear","h","getHours","mi","getMinutes","s","getSeconds","i","len","days","Array","months","toString","slice","hour","toISOString","dateFormat","metaCategoryIcon","coma","readTime","isMetaReadTime","metaReadTimeIcon","isMetaReadTimeSec","metaReadTimeLabel","readTimeText","min","sec","commentCount","isMetaComment","metaCommentIcon","postClass","subLayout","isLeftImg","isRightImg","posts","layout","height","map","id","columns","sliderIsPage","sliderIsPrevNext","desktop","tablet","mobile","PostsLoop","DOTS","range","start","end","from","_","idx","totalCount","onChange","isPostsPerPageAll","postsPerPage","isPagination","paginationPrevLabel","paginationNextLabel","useState","currentPage","setCurrentPage","paginationRange","pageSize","siblingCount","useMemo","totalPageCount","Math","ceil","leftSiblingIndex","max","rightSiblingIndex","shouldShowLeftDots","shouldShowRightDots","firstPageIndex","lastPageIndex","leftRange","rightRange","middleRange","usePagination","lastPage","setPageNumber","pageNumber","onClick","index","$","jQuery","document","addEventListener","querySelectorAll","postEl","slideHeightArray","swiperSlide","swiperSlideText","JSON","parse","dataset","totalPosts","extra","sliderEl","querySelector","Swiper","columnGap","sliderIsLoop","sliderIsTouchMove","sliderIsAutoplay","sliderAutoplayOptions","delay","sliderSpeed","sliderEffect","sliderIsPageClickable","sliderIsPageDynamic","direction","slidesPerView","breakpoints","spaceBetween","loop","allowTouchMove","grabCursor","autoplay","speed","effect","fadeEffect","crossFade","creativeEffect","prev","shadow","translate","next","allowSlideNext","allowSlidePrev","autoHeight","notificationClass","pagination","el","clickable","dynamicBullets","navigation","nextEl","prevEl","sliderConfig","slideText","clientHeight","slide","style","tickerEl","easyTicker","rowGap","tickerDirection","tickerSpeed","tickerInterval","tickerHeight","tickerVisible","tickerIsMousePause","easing","isNaN","parseInt","interval","gap","visible","mousePause","tickerConfig","render","RenderMain","removeAttribute","cId","postsOffset","fImgSize","setPosts","postsMainPHEl","useEffect","remove","clientId","val","fetch","apbPageData","ajaxUrl","then","res","json","data"],"sourceRoot":""}