infinity-forge 3.0.6 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/infinity-forge.css +3 -0
- package/dist/sites/components/default-pages/blog/component.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/component.js +3 -3
- package/dist/sites/components/default-pages/blog/component.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/index.js +1 -2
- package/dist/sites/components/default-pages/blog/components/blog-item/index.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/styles.js +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/styles.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/format-date.d.ts +1 -0
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/format-date.js +14 -0
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/format-date.js.map +1 -0
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +5 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +2 -5
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/styles.js +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/styles.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/interfaces.d.ts +2 -2
- package/dist/sites/components/default-pages/blog/components/index.d.ts +1 -0
- package/dist/sites/components/default-pages/blog/components/index.js +1 -0
- package/dist/sites/components/default-pages/blog/components/index.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.d.ts +2 -8
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.d.ts +4 -2
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-search/index.d.ts +1 -0
- package/dist/sites/components/default-pages/blog/components/side-box-search/index.js +39 -0
- package/dist/sites/components/default-pages/blog/components/side-box-search/index.js.map +1 -0
- package/dist/sites/components/default-pages/blog/components/styles.js +1 -1
- package/dist/sites/components/default-pages/blog/components/styles.js.map +1 -1
- package/dist/sites/components/default-pages/blog/components/title-blog/styles.js +1 -1
- package/dist/sites/components/default-pages/blog/components/title-blog/styles.js.map +1 -1
- package/dist/sites/components/default-pages/blog/interfaces.d.ts +25 -0
- package/dist/sites/components/default-pages/blog/styles.js +1 -1
- package/dist/sites/components/default-pages/blog/styles.js.map +1 -1
- package/dist/sites/components/default-pages/post/box-post/index.js +3 -3
- package/dist/sites/components/default-pages/post/box-post/index.js.map +1 -1
- package/dist/sites/components/default-pages/post/box-post/styles.js +1 -1
- package/dist/sites/components/default-pages/post/box-post/styles.js.map +1 -1
- package/dist/sites/components/default-pages/post/box-tags/index.d.ts +1 -0
- package/dist/sites/components/default-pages/post/box-tags/index.js +41 -0
- package/dist/sites/components/default-pages/post/box-tags/index.js.map +1 -0
- package/dist/sites/components/default-pages/post/box-tags/interfaces.d.ts +0 -0
- package/dist/sites/components/default-pages/post/box-tags/interfaces.js +1 -0
- package/dist/sites/components/default-pages/post/box-tags/interfaces.js.map +1 -0
- package/dist/sites/components/default-pages/post/box-tags/share/icons/index.js.map +1 -0
- package/dist/sites/components/default-pages/{blog/components/blog-item → post/box-tags}/share/index.js +1 -1
- package/dist/sites/components/default-pages/post/box-tags/share/index.js.map +1 -0
- package/dist/sites/components/default-pages/post/box-tags/share/styles.js.map +1 -0
- package/dist/sites/components/default-pages/post/box-tags/styles.d.ts +2 -0
- package/dist/sites/components/default-pages/post/box-tags/styles.js +14 -0
- package/dist/sites/components/default-pages/post/box-tags/styles.js.map +1 -0
- package/dist/sites/components/default-pages/post/component.d.ts +1 -1
- package/dist/sites/components/default-pages/post/component.js +17 -4
- package/dist/sites/components/default-pages/post/component.js.map +1 -1
- package/dist/sites/components/default-pages/post/interfaces.d.ts +3 -3
- package/dist/sites/components/default-pages/post/styles.js +1 -1
- package/dist/sites/components/default-pages/post/styles.js.map +1 -1
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +18 -5
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -1
- package/dist/ui/hooks/use-query/hook.js +2 -1
- package/dist/ui/hooks/use-query/hook.js.map +1 -1
- package/package.json +3 -4
- package/dist/sites/components/default-pages/blog/components/blog-item/share/icons/index.js.map +0 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/share/index.js.map +0 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/share/styles.js.map +0 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/interface.d.ts +0 -20
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/interface.js +0 -3
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/interface.js.map +0 -1
- /package/dist/sites/components/default-pages/{blog/components/blog-item → post/box-tags}/share/icons/index.d.ts +0 -0
- /package/dist/sites/components/default-pages/{blog/components/blog-item → post/box-tags}/share/icons/index.js +0 -0
- /package/dist/sites/components/default-pages/{blog/components/blog-item → post/box-tags}/share/index.d.ts +0 -0
- /package/dist/sites/components/default-pages/{blog/components/blog-item → post/box-tags}/share/styles.d.ts +0 -0
- /package/dist/sites/components/default-pages/{blog/components/blog-item → post/box-tags}/share/styles.js +0 -0
package/dist/infinity-forge.css
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.25rem}}@media only screen and (max-width:1200px){[class*=font-80]{font-size:5.5rem}[class*=font-72]{font-size:4.8rem}[class*=font-70]{font-size:4.6rem}[class*=font-64]{font-size:5.2rem}[class*=font-50]{font-size:4.2rem}[class*=font-48]{font-size:4rem}[class*=font-40]{font-size:3.2rem}[class*=font-32]{font-size:2.4rem}[class*=font-24]{font-size:1.9rem}[class*=font-20]{font-size:1.75rem}[class*=font-18]{font-size:1.6rem}[class*=font-16]{font-size:1.45rem}[class*=font-13]{font-size:1.2rem}}@media only screen and (max-width:1024px){[class*=font-80]{font-size:5.2rem}[class*=font-72]{font-size:4.5rem}[class*=font-70]{font-size:4.3rem}[class*=font-64]{font-size:4.4rem}[class*=font-50]{font-size:4rem}[class*=font-48]{font-size:3.8rem}[class*=font-40]{font-size:3rem}[class*=font-32]{font-size:2.2rem}[class*=font-24]{font-size:1.8rem}[class*=font-20]{font-size:1.7rem}[class*=font-18]{font-size:1.55rem}[class*=font-16]{font-size:1.35rem}[class*=font-14]{font-size:1.3rem}}@media only screen and (max-width:900px){[class*=font-80]{font-size:5rem}[class*=font-72]{font-size:3.8rem}[class*=font-70]{font-size:3.6rem}[class*=font-64]{font-size:3.8rem}[class*=font-48]{font-size:3.6rem}[class*=font-40]{font-size:2.8rem}[class*=font-32]{font-size:2rem}}@media only screen and (max-width:768px){[class*=font-80]{font-size:4.5rem}[class*=font-72]{font-size:3.5rem}[class*=font-70]{font-size:3rem}[class*=font-64]{font-size:3.4rem}[class*=font-50]{font-size:3.8rem}[class*=font-48]{font-size:3.4rem}[class*=font-40]{font-size:2.6rem}[class*=font-32]{font-size:1.9rem}[class*=font-24]{font-size:1.7rem}[class*=font-20]{font-size:1.65rem}[class*=font-18]{font-size:1.5rem}[class*=font-16]{font-size:1.35rem}[class*=font-13]{font-size:1.15rem}}@media only screen and (max-width:650px){[class*=font-80]{font-size:4rem}[class*=font-64]{font-size:3.2rem}[class*=font-50]{font-size:3.5rem}[class*=font-48]{font-size:3.2rem}[class*=font-40]{font-size:2.5rem}[class*=font-32]{font-size:1.8rem}[class*=font-24]{font-size:1.65rem}[class*=font-18]{font-size:1.4rem}[class*=font-16]{font-size:1.3rem}}@media only screen and (max-width:500px){[class*=font-80]{font-size:3.5rem}[class*=font-64]{font-size:2.8rem}[class*=font-50]{font-size:3rem}[class*=font-48]{font-size:2.8rem}[class*=font-40]{font-size:2.3rem}[class*=font-24]{font-size:1.6rem}[class*=font-18]{font-size:1.25rem}[class*=font-16]{font-size:1.2rem}[class*=font-14]{font-size:1.2rem}}@media only screen and (max-width:390px){[class*=font-80]{font-size:3rem}[class*=font-72]{font-size:3rem}[class*=font-64]{font-size:2.6rem}[class*=font-50]{font-size:2.8rem}[class*=font-48]{font-size:2.6rem}[class*=font-40]{font-size:2.1rem}[class*=font-32]{font-size:1.7rem}[class*=font-24]{font-size:1.4rem}[class*=font-18]{font-size:1.2rem}}*,:after,:before{box-sizing:border-box}html{font-family:Roboto,sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:Roboto,sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}
|
|
2
|
+
a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.25rem}}@media only screen and (max-width:1200px){[class*=font-80]{font-size:5.5rem}[class*=font-72]{font-size:4.8rem}[class*=font-70]{font-size:4.6rem}[class*=font-64]{font-size:5.2rem}[class*=font-50]{font-size:4.2rem}[class*=font-48]{font-size:4rem}[class*=font-40]{font-size:3.2rem}[class*=font-32]{font-size:2.4rem}[class*=font-24]{font-size:1.9rem}[class*=font-20]{font-size:1.75rem}[class*=font-18]{font-size:1.6rem}[class*=font-16]{font-size:1.45rem}[class*=font-13]{font-size:1.2rem}}@media only screen and (max-width:1024px){[class*=font-80]{font-size:5.2rem}[class*=font-72]{font-size:4.5rem}[class*=font-70]{font-size:4.3rem}[class*=font-64]{font-size:4.4rem}[class*=font-50]{font-size:4rem}[class*=font-48]{font-size:3.8rem}[class*=font-40]{font-size:3rem}[class*=font-32]{font-size:2.2rem}[class*=font-24]{font-size:1.8rem}[class*=font-20]{font-size:1.7rem}[class*=font-18]{font-size:1.55rem}[class*=font-16]{font-size:1.35rem}[class*=font-14]{font-size:1.3rem}}@media only screen and (max-width:900px){[class*=font-80]{font-size:5rem}[class*=font-72]{font-size:3.8rem}[class*=font-70]{font-size:3.6rem}[class*=font-64]{font-size:3.8rem}[class*=font-48]{font-size:3.6rem}[class*=font-40]{font-size:2.8rem}[class*=font-32]{font-size:2rem}}@media only screen and (max-width:768px){[class*=font-80]{font-size:4.5rem}[class*=font-72]{font-size:3.5rem}[class*=font-70]{font-size:3rem}[class*=font-64]{font-size:3.4rem}[class*=font-50]{font-size:3.8rem}[class*=font-48]{font-size:3.4rem}[class*=font-40]{font-size:2.6rem}[class*=font-32]{font-size:1.9rem}[class*=font-24]{font-size:1.7rem}[class*=font-20]{font-size:1.65rem}[class*=font-18]{font-size:1.5rem}[class*=font-16]{font-size:1.35rem}[class*=font-13]{font-size:1.15rem}}@media only screen and (max-width:650px){[class*=font-80]{font-size:4rem}[class*=font-64]{font-size:3.2rem}[class*=font-50]{font-size:3.5rem}[class*=font-48]{font-size:3.2rem}[class*=font-40]{font-size:2.5rem}[class*=font-32]{font-size:1.8rem}[class*=font-24]{font-size:1.65rem}[class*=font-18]{font-size:1.4rem}[class*=font-16]{font-size:1.3rem}}@media only screen and (max-width:500px){[class*=font-80]{font-size:3.5rem}[class*=font-64]{font-size:2.8rem}[class*=font-50]{font-size:3rem}[class*=font-48]{font-size:2.8rem}[class*=font-40]{font-size:2.3rem}[class*=font-24]{font-size:1.6rem}[class*=font-18]{font-size:1.25rem}[class*=font-16]{font-size:1.2rem}[class*=font-14]{font-size:1.2rem}}@media only screen and (max-width:390px){[class*=font-80]{font-size:3rem}[class*=font-72]{font-size:3rem}[class*=font-64]{font-size:2.6rem}[class*=font-50]{font-size:2.8rem}[class*=font-48]{font-size:2.6rem}[class*=font-40]{font-size:2.1rem}[class*=font-32]{font-size:1.7rem}[class*=font-24]{font-size:1.4rem}[class*=font-18]{font-size:1.2rem}}*,:after,:before{box-sizing:border-box}html{font-family:Roboto,sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:Roboto,sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}
|
|
3
|
+
*,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}#__next{position:relative;z-index:1}
|
|
4
|
+
|
|
2
5
|
*,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}#__next{position:relative;z-index:1}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IBlog } from './interfaces.js';
|
|
2
|
-
export declare function BlogContent({ title, banner, blogList, newsLetter, newsLetterHasPhone, }: IBlog): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function BlogContent({ title, banner, blogList, hasSearch, newsLetter, categories, featuredBlogs, newsLetterHasPhone, }: IBlog): import("react/jsx-runtime").JSX.Element;
|
|
@@ -41,11 +41,11 @@ var ui_1 = require("../../../../ui/index.js");
|
|
|
41
41
|
var components_1 = require("./components/index.js");
|
|
42
42
|
var S = __importStar(require("./styles.js"));
|
|
43
43
|
function BlogContent(_a) {
|
|
44
|
-
var _b, _c;
|
|
45
|
-
var title = _a.title, banner = _a.banner, blogList = _a.blogList, newsLetter = _a.newsLetter, newsLetterHasPhone = _a.newsLetterHasPhone;
|
|
44
|
+
var _b, _c, _d, _e;
|
|
45
|
+
var title = _a.title, banner = _a.banner, blogList = _a.blogList, hasSearch = _a.hasSearch, newsLetter = _a.newsLetter, categories = _a.categories, featuredBlogs = _a.featuredBlogs, newsLetterHasPhone = _a.newsLetterHasPhone;
|
|
46
46
|
var router = (0, router_1.useRouter)();
|
|
47
47
|
var header = (0, ui_1.useElementId)({ id: 'header' });
|
|
48
|
-
return ((0, jsx_runtime_1.jsxs)(S.BlogContent, { style: { marginTop: "".concat(header === null || header === void 0 ? void 0 : header.offsetHeight, "px") }, className: 'blog-content', children: [(0, jsx_runtime_1.jsxs)("div", { className: 'banner-blog', children: [(banner === null || banner === void 0 ? void 0 : banner.src) && ((0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: banner === null || banner === void 0 ? void 0 : banner.src }) })), (0, jsx_runtime_1.jsx)(components_1.TitleBlog, { title: title })] }), (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'main-content', children: [(0, jsx_runtime_1.jsx)("div", { className: 'posts', children: (blogList === null || blogList === void 0 ? void 0 : blogList.posts) && ((_b = blogList === null || blogList === void 0 ? void 0 : blogList.posts) === null || _b === void 0 ? void 0 : _b.length) > 0 ? ((_c = blogList === null || blogList === void 0 ? void 0 : blogList.posts) === null || _c === void 0 ? void 0 : _c.map(function (blog) { return (0, jsx_runtime_1.jsx)(components_1.BlogItem, { blog: blog }, blog.id + blog.titulo); })) : ((0, jsx_runtime_1.jsx)("h2", { children: "Ops! N\u00E3o temos post dessa categoria ainda! :/" })) }), blogList && ((0, jsx_runtime_1.jsx)(ui_1.PaginationComponent, { endPage: blogList.pageTotal, hasNextPage: blogList.hasNextPage, hasPreviousPage: blogList.hasPreviousPage, page: Number(router.query.page || 1), pageSize: blogList.pageSize, pages: [], startPage: 1, totalItems: 10, totalPages: 1 })), !router.query.page || (Number(router.query.page) === 0 && (0, jsx_runtime_1.jsx)("div", { className: 'bar' }))] }), (0, jsx_runtime_1.
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)(S.BlogContent, { style: { marginTop: "".concat(header === null || header === void 0 ? void 0 : header.offsetHeight, "px") }, className: 'blog-content', children: [(0, jsx_runtime_1.jsxs)("div", { className: 'banner-blog', children: [(banner === null || banner === void 0 ? void 0 : banner.src) && ((0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: banner === null || banner === void 0 ? void 0 : banner.src }) })), (0, jsx_runtime_1.jsx)(components_1.TitleBlog, { title: title })] }), (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'main-content', children: [(0, jsx_runtime_1.jsx)("div", { className: 'posts', children: (blogList === null || blogList === void 0 ? void 0 : blogList.posts) && ((_b = blogList === null || blogList === void 0 ? void 0 : blogList.posts) === null || _b === void 0 ? void 0 : _b.length) > 0 ? ((_c = blogList === null || blogList === void 0 ? void 0 : blogList.posts) === null || _c === void 0 ? void 0 : _c.map(function (blog) { return (0, jsx_runtime_1.jsx)(components_1.BlogItem, { blog: blog }, blog.id + blog.titulo); })) : ((0, jsx_runtime_1.jsx)("h2", { children: "Ops! N\u00E3o temos post dessa categoria ainda! :/" })) }), blogList && ((0, jsx_runtime_1.jsx)(ui_1.PaginationComponent, { endPage: blogList.pageTotal, hasNextPage: blogList.hasNextPage, hasPreviousPage: blogList.hasPreviousPage, page: Number(router.query.page || 1), pageSize: blogList.pageSize, pages: [], startPage: 1, totalItems: 10, totalPages: 1 })), !router.query.page || (Number(router.query.page) === 0 && (0, jsx_runtime_1.jsx)("div", { className: 'bar' }))] }), (0, jsx_runtime_1.jsxs)("div", { className: 'box-actions', children: [hasSearch && (0, jsx_runtime_1.jsx)(components_1.SearchBlog, {}), categories && ((_d = categories.list) === null || _d === void 0 ? void 0 : _d.length) > 0 && ((0, jsx_runtime_1.jsx)(components_1.SideBoxCategories, { list: categories.list, data: categories.data })), newsLetter && (0, jsx_runtime_1.jsx)(components_1.NewsLetterBlog, __assign({ hasPhone: newsLetterHasPhone }, newsLetter)), featuredBlogs && ((_e = featuredBlogs.list) === null || _e === void 0 ? void 0 : _e.length) > 0 && ((0, jsx_runtime_1.jsx)(components_1.FeaturedBlogList, { featuredBlogList: featuredBlogs.list, data: featuredBlogs.data }))] })] })] }));
|
|
49
49
|
}
|
|
50
50
|
exports.BlogContent = BlogContent;
|
|
51
51
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/blog/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,2BAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/blog/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,2BAA8E;AAC9E,2CAAmH;AAInH,0CAA6B;AAE7B,SAAgB,WAAW,CAAC,EASpB;;QARN,KAAK,WAAA,EACL,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,aAAa,mBAAA,EACb,kBAAkB,wBAAA;IAElB,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAC1B,I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KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,EACpC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,KAAK,EAAE,EAAE,EACT,SAAS,EAAE,CAAC,EACZ,UAAU,EAAE,EAAE,EACd,UAAU,EAAE,CAAC,GACb,CACH,EAEA,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,gCAAK,SAAS,EAAC,KAAK,GAAG,CAAC,IAC/E,EAEN,iCAAK,SAAS,EAAC,aAAa,aACzB,SAAS,IAAI,uBAAC,uBAAU,KAAG,EAE3B,UAAU,IAAI,CAAA,MAAA,UAAU,CAAC,IAAI,0CAAE,MAAM,IAAG,CAAC,IAAI,CAC5C,uBAAC,8BAAiB,IAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,GAAI,CACpE,EAEA,UAAU,IAAI,uBAAC,2BAAc,aAAC,QAAQ,EAAE,kBAAkB,IAAM,UAAU,EAAI,EAE9E,aAAa,IAAI,CAAA,MAAA,aAAa,CAAC,IAAI,0CAAE,MAAM,IAAG,CAAC,IAAI,CAClD,uBAAC,6BAAgB,IAAC,gBAAgB,EAAE,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,GAAI,CACrF,IACG,IACI,IACE,CACjB,CAAA;AACH,CAAC;AApED,kCAoEC"}
|
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BlogItem = void 0;
|
|
30
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
31
|
var link_1 = __importDefault(require("next/link"));
|
|
32
|
-
var share_1 = require("./share/index.js");
|
|
33
32
|
var ui_1 = require("../../../../../../ui/index.js");
|
|
34
33
|
var S = __importStar(require("./styles.js"));
|
|
35
34
|
function BlogItem(_a) {
|
|
@@ -40,7 +39,7 @@ function BlogItem(_a) {
|
|
|
40
39
|
url: blog.url,
|
|
41
40
|
},
|
|
42
41
|
};
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)(S.BlogItem, { className: 'blog-item', children: [(0, jsx_runtime_1.jsx)("div", { className: 'image', children: blog.imagem && ((0, jsx_runtime_1.jsx)(link_1.default, { href: redirect, className: 'image-link', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: blog.imagem }) })) }), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [blog.titulo && ((0, jsx_runtime_1.jsx)(link_1.default, { href: redirect, className: 'font-32-bold title-post', children: blog.titulo })),
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)(S.BlogItem, { className: 'blog-item', children: [(0, jsx_runtime_1.jsx)("div", { className: 'image', children: blog.imagem && ((0, jsx_runtime_1.jsx)(link_1.default, { href: redirect, className: 'image-link', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: blog.imagem }) })) }), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [blog.titulo && ((0, jsx_runtime_1.jsx)(link_1.default, { href: redirect, className: 'font-32-bold title-post', children: blog.titulo })), blog.descricao && (0, jsx_runtime_1.jsx)("div", { className: 'font-16 description', dangerouslySetInnerHTML: { __html: blog.descricao } })] })] }));
|
|
44
43
|
}
|
|
45
44
|
exports.BlogItem = BlogItem;
|
|
46
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/blog-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/blog-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,2BAAgC;AAIhC,0CAA6B;AAE7B,SAAgB,QAAQ,CAAC,EAAmB;QAAjB,IAAI,UAAA;IAC7B,IAAM,QAAQ,GAAG;QACf,QAAQ,EAAE,aAAa;QACvB,KAAK,EAAE;YACL,GAAG,EAAE,IAAI,CAAC,GAAG;SACd;KACF,CAAA;IAED,OAAO,CACL,wBAAC,CAAC,CAAC,QAAQ,IAAC,SAAS,EAAC,WAAW,aAC/B,gCAAK,SAAS,EAAC,OAAO,YACnB,IAAI,CAAC,MAAM,IAAI,CACd,uBAAC,cAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAC,YAAY,YAC1C,uBAAC,cAAS,IAAC,GAAG,EAAE,IAAI,CAAC,MAAM,GAAI,GAC1B,CACR,GACG,EAEN,iCAAK,SAAS,EAAC,MAAM,aAKlB,IAAI,CAAC,MAAM,IAAI,CACd,uBAAC,cAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAC,yBAAyB,YACtD,IAAI,CAAC,MAAM,GACP,CACR,EAEA,IAAI,CAAC,SAAS,IAAI,gCAAK,SAAS,EAAC,qBAAqB,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,GAAI,IAC3G,IACK,CACd,CAAA;AACH,CAAC;AAjCD,4BAiCC"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.BlogItem = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.BlogItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
12
|
+
exports.BlogItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n border-radius: 10px;\n background-color: #fff;\n flex-direction: column;\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n .image {\n width: 100%;\n aspect-ratio: 930/482;\n position: relative;\n border-radius: 10px 10px 0 0;\n overflow: hidden;\n\n img {\n transition: transform 0.8s;\n }\n\n img:hover {\n transform: scale(1.1);\n }\n }\n\n .image-link {\n display: flex;\n width: inherit;\n aspect-ratio: inherit;\n height: inherit;\n border-radius: inherit;\n }\n\n .text {\n display: flex;\n flex-direction: column;\n padding: clamp(15px, 1.56vw, 30px);\n padding-bottom: clamp(20px, 2.08vw, 40px);\n }\n\n .tag {\n color: ", ";\n margin-bottom: clamp(5px, 0.52vw, 10px);\n }\n\n .title-post {\n line-height: 1.25;\n transition: 0.3s;\n color: #292929;\n margin-bottom: clamp(10px, 1.04vw, 20px);\n display: -webkit-box;\n line-height: 1.25;\n -webkit-line-clamp: 2;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n &,\n &:hover {\n text-decoration: none !important;\n }\n }\n\n .description {\n color: #414141;\n width: 100%;\n display: -webkit-box;\n line-height: 1.16;\n -webkit-line-clamp: 3;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n * {\n width: 100% !important;\n padding: 0 !important;\n line-height: 1.16;\n }\n }\n\n .title-post:hover {\n text-decoration: underline !important;\n }\n\n @media only screen and (max-width: 1024px) {\n .description {\n -webkit-line-clamp: 4;\n }\n }\n\n @media only screen and (max-width: 650px) {\n .description {\n line-height: 1.3;\n\n * {\n line-height: 1.3;\n }\n }\n }\n\n @media only screen and (max-width: 500px) {\n border-radius: 5px;\n\n .image {\n border-radius: 5px 5px 0 0;\n }\n\n .title-post {\n line-height: 1.1;\n }\n }\n"], ["\n display: flex;\n border-radius: 10px;\n background-color: #fff;\n flex-direction: column;\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n .image {\n width: 100%;\n aspect-ratio: 930/482;\n position: relative;\n border-radius: 10px 10px 0 0;\n overflow: hidden;\n\n img {\n transition: transform 0.8s;\n }\n\n img:hover {\n transform: scale(1.1);\n }\n }\n\n .image-link {\n display: flex;\n width: inherit;\n aspect-ratio: inherit;\n height: inherit;\n border-radius: inherit;\n }\n\n .text {\n display: flex;\n flex-direction: column;\n padding: clamp(15px, 1.56vw, 30px);\n padding-bottom: clamp(20px, 2.08vw, 40px);\n }\n\n .tag {\n color: ", ";\n margin-bottom: clamp(5px, 0.52vw, 10px);\n }\n\n .title-post {\n line-height: 1.25;\n transition: 0.3s;\n color: #292929;\n margin-bottom: clamp(10px, 1.04vw, 20px);\n display: -webkit-box;\n line-height: 1.25;\n -webkit-line-clamp: 2;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n &,\n &:hover {\n text-decoration: none !important;\n }\n }\n\n .description {\n color: #414141;\n width: 100%;\n display: -webkit-box;\n line-height: 1.16;\n -webkit-line-clamp: 3;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n * {\n width: 100% !important;\n padding: 0 !important;\n line-height: 1.16;\n }\n }\n\n .title-post:hover {\n text-decoration: underline !important;\n }\n\n @media only screen and (max-width: 1024px) {\n .description {\n -webkit-line-clamp: 4;\n }\n }\n\n @media only screen and (max-width: 650px) {\n .description {\n line-height: 1.3;\n\n * {\n line-height: 1.3;\n }\n }\n }\n\n @media only screen and (max-width: 500px) {\n border-radius: 5px;\n\n .image {\n border-radius: 5px 5px 0 0;\n }\n\n .title-post {\n line-height: 1.1;\n }\n }\n"])), function (p) { return p.theme.primaryColor; });
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/blog-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/blog-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,2BAAM,CAAC,GAAG,yjEAAA,8tBA0CrB,EAA2B,sxCAsEvC,KAtEY,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,CAAC,YAAY,EAApB,CAAoB,EAsEvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function FormatDate(dateString: string): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormatDate = void 0;
|
|
4
|
+
function FormatDate(dateString) {
|
|
5
|
+
var date = new Date(dateString);
|
|
6
|
+
var day = date.getDate();
|
|
7
|
+
var month = date.getMonth();
|
|
8
|
+
var year = date.getFullYear();
|
|
9
|
+
var formattedDay = day < 10 ? '0' + day : day;
|
|
10
|
+
var monthNames = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'];
|
|
11
|
+
return "".concat(formattedDay, " ").concat(monthNames[month], " ").concat(year);
|
|
12
|
+
}
|
|
13
|
+
exports.FormatDate = FormatDate;
|
|
14
|
+
//# sourceMappingURL=format-date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-date.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/format-date.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,UAAkB;IAC3C,IAAM,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,CAAA;IAEjC,IAAM,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAA;IAC1B,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;IAC7B,IAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;IAE/B,IAAM,YAAY,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;IAE/C,IAAM,UAAU,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;IAEvG,OAAO,UAAG,YAAY,cAAI,UAAU,CAAC,KAAK,CAAC,cAAI,IAAI,CAAE,CAAA;AACvD,CAAC;AAZD,gCAYC"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Post } from '../../../interfaces.js';
|
|
2
|
+
interface IFeaturedBlogItemProps {
|
|
3
|
+
featuredBlog: Post;
|
|
4
|
+
}
|
|
2
5
|
export declare function FeaturedBlogItem({ featuredBlog }: IFeaturedBlogItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -22,15 +22,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
26
|
exports.FeaturedBlogItem = void 0;
|
|
30
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
28
|
var ui_1 = require("../../../../../../../ui/index.js");
|
|
29
|
+
var format_date_1 = require("./format-date.js");
|
|
32
30
|
var S = __importStar(require("./styles.js"));
|
|
33
|
-
var moment_1 = __importDefault(require("moment"));
|
|
34
31
|
function FeaturedBlogItem(_a) {
|
|
35
32
|
var featuredBlog = _a.featuredBlog;
|
|
36
33
|
var redirect = {
|
|
@@ -39,7 +36,7 @@ function FeaturedBlogItem(_a) {
|
|
|
39
36
|
url: featuredBlog.url,
|
|
40
37
|
},
|
|
41
38
|
};
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)(S.FeaturedBlogItem, { href: redirect, children: [featuredBlog.imagem && ((0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: featuredBlog.imagem }) })), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [featuredBlog.titulo && (0, jsx_runtime_1.jsx)("h2", { className: 'font-16-bold title-link', children: featuredBlog.titulo }), featuredBlog.dataCriacao && (0, jsx_runtime_1.jsx)("p", { className: 'date', children: (0,
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(S.FeaturedBlogItem, { href: redirect, children: [featuredBlog.imagem && ((0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: featuredBlog.imagem }) })), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [featuredBlog.titulo && (0, jsx_runtime_1.jsx)("h2", { className: 'font-16-bold title-link', children: featuredBlog.titulo }), featuredBlog.dataCriacao && (0, jsx_runtime_1.jsx)("p", { className: 'date', children: (0, format_date_1.FormatDate)(featuredBlog.dataCriacao) })] })] }));
|
|
43
40
|
}
|
|
44
41
|
exports.FeaturedBlogItem = FeaturedBlogItem;
|
|
45
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAgC;AAEhC,6CAA0C;AAI1C,0CAA6B;AAM7B,SAAgB,gBAAgB,CAAC,EAAwC;QAAtC,YAAY,kBAAA;IAC7C,IAAM,QAAQ,GAAG;QACf,QAAQ,EAAE,aAAa;QACvB,KAAK,EAAE;YACL,GAAG,EAAE,YAAY,CAAC,GAAG;SACtB;KACF,CAAA;IACD,OAAO,CACL,wBAAC,CAAC,CAAC,gBAAgB,IAAC,IAAI,EAAE,QAAQ,aAC/B,YAAY,CAAC,MAAM,IAAI,CACtB,gCAAK,SAAS,EAAC,OAAO,YACpB,uBAAC,cAAS,IAAC,GAAG,EAAE,YAAY,CAAC,MAAM,GAAI,GACnC,CACP,EAED,iCAAK,SAAS,EAAC,MAAM,aAClB,YAAY,CAAC,MAAM,IAAI,+BAAI,SAAS,EAAC,yBAAyB,YAAE,YAAY,CAAC,MAAM,GAAM,EAEzF,YAAY,CAAC,WAAW,IAAI,8BAAG,SAAS,EAAC,MAAM,YAAE,IAAA,wBAAU,EAAC,YAAY,CAAC,WAAW,CAAC,GAAK,IACvF,IACa,CACtB,CAAA;AACH,CAAC;AAtBD,4CAsBC"}
|
|
@@ -10,6 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.FeaturedBlogItem = void 0;
|
|
11
11
|
var link_1 = __importDefault(require("next/link"));
|
|
12
12
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
-
exports.FeaturedBlogItem = (0, styled_components_1.default)(link_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items:
|
|
13
|
+
exports.FeaturedBlogItem = (0, styled_components_1.default)(link_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n border-radius: 5px;\n padding: 4px;\n\n .image {\n width: 100%;\n max-width: 77px;\n aspect-ratio: 1;\n border-radius: 5px;\n overflow: hidden;\n }\n\n .text {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n gap: 6px;\n }\n\n h2 {\n display: -webkit-box;\n line-height: 1.25;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n color: #000;\n line-height: 1.2;\n }\n\n .date {\n font-size: 14px;\n font-weight: 300;\n color: #565454;\n text-align: start;\n }\n\n @media only screen and (max-width: 1400px) {\n .image {\n max-width: 65px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n gap: 8px;\n\n .image {\n max-width: 62px;\n }\n\n .text {\n gap: 5px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .image {\n max-width: 58px;\n }\n }\n\n @media only screen and (max-width: 900px) {\n }\n\n @media only screen and (max-width: 768px) {\n }\n\n @media only screen and (max-width: 650px) {\n }\n\n @media only screen and (max-width: 500px) {\n }\n\n @media only screen and (max-width: 390px) {\n }\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n border-radius: 5px;\n padding: 4px;\n\n .image {\n width: 100%;\n max-width: 77px;\n aspect-ratio: 1;\n border-radius: 5px;\n overflow: hidden;\n }\n\n .text {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n gap: 6px;\n }\n\n h2 {\n display: -webkit-box;\n line-height: 1.25;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n color: #000;\n line-height: 1.2;\n }\n\n .date {\n font-size: 14px;\n font-weight: 300;\n color: #565454;\n text-align: start;\n }\n\n @media only screen and (max-width: 1400px) {\n .image {\n max-width: 65px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n gap: 8px;\n\n .image {\n max-width: 62px;\n }\n\n .text {\n gap: 5px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .image {\n max-width: 58px;\n }\n }\n\n @media only screen and (max-width: 900px) {\n }\n\n @media only screen and (max-width: 768px) {\n }\n\n @media only screen and (max-width: 650px) {\n }\n\n @media only screen and (max-width: 500px) {\n }\n\n @media only screen and (max-width: 390px) {\n }\n"])));
|
|
14
14
|
var templateObject_1;
|
|
15
15
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,mDAA4B;AAE5B,wEAAsC;AAEzB,QAAA,gBAAgB,GAAG,IAAA,2BAAM,EAAC,cAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,mDAA4B;AAE5B,wEAAsC;AAEzB,QAAA,gBAAgB,GAAG,IAAA,2BAAM,EAAC,cAAI,CAAC,85CAAA,21CAiF3C,KAAA"}
|
|
@@ -29,7 +29,7 @@ var featured_blog_item_1 = require("./featured-blog-item/index.js");
|
|
|
29
29
|
var S = __importStar(require("../styles.js"));
|
|
30
30
|
function FeaturedBlogList(_a) {
|
|
31
31
|
var featuredBlogList = _a.featuredBlogList, data = _a.data;
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(S.Box, { className: 'featuredBlogList', children: [(0, jsx_runtime_1.jsx)("h4", { className: 'font-
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(S.Box, { className: 'featuredBlogList', children: [(0, jsx_runtime_1.jsx)("h4", { className: 'font-24-bold', children: (data === null || data === void 0 ? void 0 : data.title) || 'Destaques' }), (0, jsx_runtime_1.jsx)("div", { className: 'detachs-box', children: featuredBlogList.map(function (featuredBlog) {
|
|
33
33
|
return (0, jsx_runtime_1.jsx)(featured_blog_item_1.FeaturedBlogItem, { featuredBlog: featuredBlog }, featuredBlog.url + featuredBlog.titulo);
|
|
34
34
|
}) })] }));
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAAuD;AAIvD,2CAA8B;AAE9B,SAAgB,gBAAgB,CAAC,EAAkD;QAAhD,gBAAgB,sBAAA,EAAE,IAAI,UAAA;IACvD,OAAO,CACL,wBAAC,CAAC,CAAC,GAAG,IAAC,SAAS,EAAC,kBAAkB,aACjC,+BAAI,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAAuD;AAIvD,2CAA8B;AAE9B,SAAgB,gBAAgB,CAAC,EAAkD;QAAhD,gBAAgB,sBAAA,EAAE,IAAI,UAAA;IACvD,OAAO,CACL,wBAAC,CAAC,CAAC,GAAG,IAAC,SAAS,EAAC,kBAAkB,aACjC,+BAAI,SAAS,EAAC,cAAc,YAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,KAAI,WAAW,GAAM,EAE9D,gCAAK,SAAS,EAAC,aAAa,YACzB,gBAAgB,CAAC,GAAG,CAAC,UAAC,YAAY;oBACjC,OAAO,uBAAC,qCAAgB,IAA8C,YAAY,EAAE,YAAY,IAAlE,YAAY,CAAC,GAAG,GAAG,YAAY,CAAC,MAAM,CAAgC,CAAA;gBACtG,CAAC,CAAC,GACE,IACA,CACT,CAAA;AACH,CAAC;AAZD,4CAYC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Post } from '../../interfaces.js';
|
|
2
2
|
interface IFeaturedBlogListProps {
|
|
3
|
-
featuredBlogList:
|
|
3
|
+
featuredBlogList: Post[];
|
|
4
4
|
data?: {
|
|
5
5
|
title?: string;
|
|
6
6
|
description?: string;
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./blog-item/index.js"), exports);
|
|
18
18
|
__exportStar(require("./title-blog/index.js"), exports);
|
|
19
19
|
__exportStar(require("./featured-blog/index.js"), exports);
|
|
20
|
+
__exportStar(require("./side-box-search/index.js"), exports);
|
|
20
21
|
__exportStar(require("./side-box-categories/index.js"), exports);
|
|
21
22
|
__exportStar(require("./side-box-newsletter/index.js"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/blog/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,+CAA4B;AAC5B,kDAA+B;AAC/B,wDAAqC;AACrC,wDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/blog/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,+CAA4B;AAC5B,kDAA+B;AAC/B,oDAAiC;AACjC,wDAAqC;AACrC,wDAAqC"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function SideBoxCategories({
|
|
3
|
-
categoriesList: IBLogCategories[];
|
|
4
|
-
data?: {
|
|
5
|
-
title?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
};
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { IBlog } from '../../interfaces.js';
|
|
2
|
+
export declare function SideBoxCategories({ list, data }: IBlog['categories']): import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,8 +32,8 @@ var link_1 = __importDefault(require("next/link"));
|
|
|
32
32
|
var ui_1 = require("../../../../../../ui/index.js");
|
|
33
33
|
var S = __importStar(require("../styles.js"));
|
|
34
34
|
function SideBoxCategories(_a) {
|
|
35
|
-
var
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'SideBoxCategories', children: (0, jsx_runtime_1.jsxs)(S.Box, { className: 'sideBoxCategories', children: [(0, jsx_runtime_1.jsx)("div", { className: 'title', children: (0, jsx_runtime_1.jsx)("h4", { className: 'font-
|
|
35
|
+
var list = _a.list, data = _a.data;
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'SideBoxCategories', children: (0, jsx_runtime_1.jsxs)(S.Box, { className: 'sideBoxCategories', children: [(0, jsx_runtime_1.jsx)("div", { className: 'title', children: (0, jsx_runtime_1.jsx)("h4", { className: 'font-24-bold', children: (data === null || data === void 0 ? void 0 : data.title) || 'Tags' }) }), (0, jsx_runtime_1.jsx)("div", { className: 'categories-box', children: list.map(function (category) { return ((0, jsx_runtime_1.jsx)(link_1.default, { href: "/blog/".concat(category.url), className: 'font-16-bold', children: category.titulo }, 'blog-category' + category.id + category.titulo)); }) })] }) }));
|
|
37
37
|
}
|
|
38
38
|
exports.SideBoxCategories = SideBoxCategories;
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/side-box-categories/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,2BAA4B;AAI5B,2CAA8B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/side-box-categories/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,2BAA4B;AAI5B,2CAA8B;AAG9B,SAAgB,iBAAiB,CAAC,EAAmC;QAAjC,IAAI,UAAA,EAAE,IAAI,UAAA;IAC5C,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,mBAAmB,YAC7B,wBAAC,CAAC,CAAC,GAAG,IAAC,SAAS,EAAC,mBAAmB,aAClC,gCAAK,SAAS,EAAC,OAAO,YACpB,+BAAI,SAAS,EAAC,cAAc,YAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,KAAI,MAAM,GAAM,GACrD,EAEN,gCAAK,SAAS,EAAC,gBAAgB,YAC5B,IAAI,CAAC,GAAG,CAAC,UAAC,QAAQ,IAAK,OAAA,CACtB,uBAAC,cAAI,IAEH,IAAI,EAAE,gBAAS,QAAQ,CAAC,GAAG,CAAE,EAC7B,SAAS,EAAC,cAAc,YAEvB,QAAQ,CAAC,MAAM,IAJX,eAAe,GAAG,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM,CAK/C,CACR,EARuB,CAQvB,CAAC,GACE,IACA,GACF,CACT,CAAA;AACH,CAAC;AAtBD,8CAsBC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
interface NewsLetterBlog {
|
|
2
|
-
hasPhone?: boolean;
|
|
3
2
|
title?: string;
|
|
3
|
+
hasPhone?: boolean;
|
|
4
|
+
buttonText?: string;
|
|
4
5
|
description?: string;
|
|
6
|
+
placeholder?: string;
|
|
5
7
|
}
|
|
6
|
-
export declare function NewsLetterBlog({
|
|
8
|
+
export declare function NewsLetterBlog({ title, hasPhone, description, buttonText, placeholder, }: NewsLetterBlog): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -65,7 +65,7 @@ var sites_1 = require("../../../../../../sites/index.js");
|
|
|
65
65
|
var ui_1 = require("../../../../../../ui/index.js");
|
|
66
66
|
var S = __importStar(require("../styles.js"));
|
|
67
67
|
function NewsLetterBlog(_a) {
|
|
68
|
-
var hasPhone = _a.hasPhone,
|
|
68
|
+
var title = _a.title, hasPhone = _a.hasPhone, description = _a.description, _b = _a.buttonText, buttonText = _b === void 0 ? 'Cadastrar' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? 'Digite seu e-mail' : _c;
|
|
69
69
|
var createToast = (0, ui_1.useToast)().createToast;
|
|
70
70
|
function handleSucess(data) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -88,7 +88,7 @@ function NewsLetterBlog(_a) {
|
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
return ((0, jsx_runtime_1.jsxs)(S.Box, { className: 'newsletter', children: [(0, jsx_runtime_1.jsx)("h4", { className: 'font-
|
|
91
|
+
return ((0, jsx_runtime_1.jsxs)(S.Box, { className: 'newsletter', children: [(0, jsx_runtime_1.jsx)("h4", { className: 'font-24-bold', children: title || 'Newsletter' }), (0, jsx_runtime_1.jsx)("p", { className: 'font-16-bold', children: description || 'Cadastre-se para receber lançamentos e notícias' }), (0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: buttonText, className: 'font-18-bold' }, onSucess: handleSucess, defaultSchemas: { email: true }, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { className: 'font-18-regular', name: 'email', placeholder: placeholder, type: 'email' }), hasPhone && (0, jsx_runtime_1.jsx)(ui_1.InputMask, { name: 'phone', mask: '(99) 9 9999-9999', placeholder: '(DDD) 9 9999-9999' })] })] }));
|
|
92
92
|
}
|
|
93
93
|
exports.NewsLetterBlog = NewsLetterBlog;
|
|
94
94
|
//# sourceMappingURL=index.js.map
|
package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/side-box-newsletter/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;AAC7B,2BAA8D;AAE9D,2CAA8B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/side-box-newsletter/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,EAAC,WAAW,EAAC,mBAAmB,GAAG,IACnF,IACR,CACT,CAAA;AACH,CAAC;AApCD,wCAoCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SearchBlog(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.SearchBlog = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var router_1 = require("next/router");
|
|
29
|
+
var ui_1 = require("../../../../../../ui/index.js");
|
|
30
|
+
var S = __importStar(require("../styles.js"));
|
|
31
|
+
function SearchBlog() {
|
|
32
|
+
var router = (0, router_1.useRouter)();
|
|
33
|
+
function handleSucess(data) {
|
|
34
|
+
(0, ui_1.updateRoute)({ router: router, params: { search: data.search } });
|
|
35
|
+
}
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(S.Box, { className: 'search', children: (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { button: { svg: 'LupaIcon' }, onSucess: handleSucess, initialData: { search: router.query.search }, cleanFieldsOnSubmit: false, children: (0, jsx_runtime_1.jsx)(ui_1.Input, { className: 'font-16-regular', name: 'search', placeholder: 'Buscar...', type: 'text', value: router.query.search }) }) }));
|
|
37
|
+
}
|
|
38
|
+
exports.SearchBlog = SearchBlog;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/side-box-search/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,2BAAsD;AAEtD,2CAA8B;AAE9B,SAAgB,UAAU;IACxB,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,SAAS,YAAY,CAAC,IAAI;QACxB,IAAA,gBAAW,EAAC,EAAE,MAAM,QAAA,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IAC1D,CAAC;IAED,OAAO,CACL,uBAAC,CAAC,CAAC,GAAG,IAAC,SAAS,EAAC,QAAQ,YACvB,uBAAC,gBAAW,IACV,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,EAC3B,QAAQ,EAAE,YAAmB,EAC7B,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,EAC5C,mBAAmB,EAAE,KAAK,YAE1B,uBAAC,UAAK,IACJ,SAAS,EAAC,iBAAiB,EAC3B,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,WAAW,EACvB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAC1B,GACU,GACR,CACT,CAAA;AACH,CAAC;AAzBD,gCAyBC"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Box = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
12
|
+
exports.Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 20px;\n padding: 44px 40px;\n background-color: #ffffff;\n\n h4,\n p {\n text-align: center;\n margin: 0;\n }\n\n h4 {\n margin-bottom: 30px;\n }\n\n p + * {\n margin-top: 30px !important;\n }\n\n &.newsletter {\n display: flex;\n flex-direction: column;\n gap: 30px;\n\n h4 {\n margin-bottom: 0;\n }\n\n form {\n padding: 0;\n margin: 0 !important;\n height: fit-content;\n\n #form-error-focus {\n display: none;\n }\n }\n\n input,\n button {\n height: 2.76vw;\n min-height: 36px;\n border-radius: 5px;\n text-align: center;\n }\n\n input {\n border: 1px solid rgba(0, 0, 0, 0.3);\n margin-bottom: 10px;\n }\n\n input::placeholder {\n opacity: 0.6;\n }\n\n button {\n padding: 0;\n border: none;\n color: #fff;\n height: 2.76vw;\n background-color: #df0035;\n }\n\n .captcha {\n width: fit-content;\n margin: 0 auto 10px;\n }\n }\n\n &.sideBoxCategories {\n .categories-box {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n a {\n color: #000;\n border: 1px solid #df0035;\n padding: 0 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 5px;\n\n &:hover {\n background-color: #df0035;\n color: #fff;\n }\n }\n }\n }\n\n &.featuredBlogList {\n .detachs-box {\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n }\n\n &.search {\n form div {\n position: relative;\n }\n\n .button-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .form-button {\n position: absolute;\n top: 50%;\n right: 6px;\n padding: 2px;\n transform: translateY(-50%);\n }\n\n button {\n height: 34px;\n }\n\n svg {\n width: 20px;\n fill: #fff;\n }\n }\n\n @media only screen and (max-width: 1600px) {\n padding: 40px;\n\n h4 {\n margin-bottom: 28px;\n }\n\n p + * {\n margin-top: 26px !important;\n }\n\n &.sideBoxCategories {\n .categories-box {\n a {\n padding: 0 13px;\n }\n }\n }\n\n &.featuredBlogList {\n .detachs-box {\n gap: 18px;\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 36px 34px;\n\n p + * {\n margin-top: 22px !important;\n }\n\n &.sideBoxCategories {\n .categories-box {\n a {\n padding: 0 12px;\n }\n }\n }\n\n &.featuredBlogList {\n .detachs-box {\n gap: 15px;\n }\n }\n }\n\n @media only screen and (max-width: 1200px) {\n padding: 32px 28px;\n border-radius: 15px;\n\n p + * {\n margin-top: 20px !important;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 28px 24px;\n border-radius: 10px;\n\n &.newsletter {\n gap: 20px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n padding: 26px 20px;\n }\n"], ["\n border-radius: 20px;\n padding: 44px 40px;\n background-color: #ffffff;\n\n h4,\n p {\n text-align: center;\n margin: 0;\n }\n\n h4 {\n margin-bottom: 30px;\n }\n\n p + * {\n margin-top: 30px !important;\n }\n\n &.newsletter {\n display: flex;\n flex-direction: column;\n gap: 30px;\n\n h4 {\n margin-bottom: 0;\n }\n\n form {\n padding: 0;\n margin: 0 !important;\n height: fit-content;\n\n #form-error-focus {\n display: none;\n }\n }\n\n input,\n button {\n height: 2.76vw;\n min-height: 36px;\n border-radius: 5px;\n text-align: center;\n }\n\n input {\n border: 1px solid rgba(0, 0, 0, 0.3);\n margin-bottom: 10px;\n }\n\n input::placeholder {\n opacity: 0.6;\n }\n\n button {\n padding: 0;\n border: none;\n color: #fff;\n height: 2.76vw;\n background-color: #df0035;\n }\n\n .captcha {\n width: fit-content;\n margin: 0 auto 10px;\n }\n }\n\n &.sideBoxCategories {\n .categories-box {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n a {\n color: #000;\n border: 1px solid #df0035;\n padding: 0 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 5px;\n\n &:hover {\n background-color: #df0035;\n color: #fff;\n }\n }\n }\n }\n\n &.featuredBlogList {\n .detachs-box {\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n }\n\n &.search {\n form div {\n position: relative;\n }\n\n .button-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .form-button {\n position: absolute;\n top: 50%;\n right: 6px;\n padding: 2px;\n transform: translateY(-50%);\n }\n\n button {\n height: 34px;\n }\n\n svg {\n width: 20px;\n fill: #fff;\n }\n }\n\n @media only screen and (max-width: 1600px) {\n padding: 40px;\n\n h4 {\n margin-bottom: 28px;\n }\n\n p + * {\n margin-top: 26px !important;\n }\n\n &.sideBoxCategories {\n .categories-box {\n a {\n padding: 0 13px;\n }\n }\n }\n\n &.featuredBlogList {\n .detachs-box {\n gap: 18px;\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 36px 34px;\n\n p + * {\n margin-top: 22px !important;\n }\n\n &.sideBoxCategories {\n .categories-box {\n a {\n padding: 0 12px;\n }\n }\n }\n\n &.featuredBlogList {\n .detachs-box {\n gap: 15px;\n }\n }\n }\n\n @media only screen and (max-width: 1200px) {\n padding: 32px 28px;\n border-radius: 15px;\n\n p + * {\n margin-top: 20px !important;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 28px 24px;\n border-radius: 10px;\n\n &.newsletter {\n gap: 20px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n padding: 26px 20px;\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/blog/components/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,GAAG,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/blog/components/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,GAAG,GAAG,2BAAM,CAAC,GAAG,wqGAAA,qmGAsM5B,KAAA"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.TitleBlog = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.TitleBlog = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n
|
|
12
|
+
exports.TitleBlog = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: relative;\n z-index: 10;\n\n .container {\n display: flex;\n justify-content: center;\n align-items: center;\n\n h1 {\n text-align: center;\n color: #000;\n line-height: 1.1;\n text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);\n }\n }\n"], ["\n width: 100%;\n position: relative;\n z-index: 10;\n\n .container {\n display: flex;\n justify-content: center;\n align-items: center;\n\n h1 {\n text-align: center;\n color: #000;\n line-height: 1.1;\n text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);\n }\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/title-blog/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,SAAS,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/blog/components/title-blog/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,SAAS,GAAG,2BAAM,CAAC,GAAG,gXAAA,6SAiBlC,KAAA"}
|
|
@@ -23,6 +23,16 @@ export type BlogResponseApi = {
|
|
|
23
23
|
isLastPage: boolean;
|
|
24
24
|
posts: Post[];
|
|
25
25
|
};
|
|
26
|
+
export type Categories = {
|
|
27
|
+
id: number;
|
|
28
|
+
titulo: string;
|
|
29
|
+
url: string;
|
|
30
|
+
fields: {
|
|
31
|
+
PageTitle: string;
|
|
32
|
+
MetaDescription: string;
|
|
33
|
+
};
|
|
34
|
+
imagens: any[];
|
|
35
|
+
};
|
|
26
36
|
export interface IBlog {
|
|
27
37
|
title?: string;
|
|
28
38
|
banner?: {
|
|
@@ -30,8 +40,23 @@ export interface IBlog {
|
|
|
30
40
|
};
|
|
31
41
|
newsLetter?: {
|
|
32
42
|
title?: string;
|
|
43
|
+
buttonText?: string;
|
|
33
44
|
description?: string;
|
|
45
|
+
placeholder?: string;
|
|
34
46
|
};
|
|
35
47
|
blogList?: BlogResponseApi;
|
|
48
|
+
categories?: {
|
|
49
|
+
list: Categories[];
|
|
50
|
+
data?: {
|
|
51
|
+
title?: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
featuredBlogs?: {
|
|
55
|
+
list: Post[];
|
|
56
|
+
data?: {
|
|
57
|
+
title?: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
36
60
|
newsLetterHasPhone?: boolean;
|
|
61
|
+
hasSearch?: boolean;
|
|
37
62
|
}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.BlogContent = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.BlogContent = styled_components_1.default.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n padding
|
|
12
|
+
exports.BlogContent = styled_components_1.default.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n padding: 80px 0;\n\n .main-content {\n width: 100%;\n flex: 1 1 auto;\n }\n\n .banner-blog + * {\n margin-top: 30px;\n }\n\n .container {\n display: grid;\n grid-template-columns: 2fr 1fr;\n justify-content: center;\n gap: 30px;\n }\n\n .posts,\n .box-actions {\n display: flex;\n flex-direction: column;\n gap: 30px;\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 70px 0;\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 60px 0;\n\n .container {\n gap: 20px;\n grid-template-columns: 1fr;\n }\n\n .posts,\n .box-actions {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n }\n\n .posts + * {\n margin: 0 !important;\n }\n\n .bar {\n height: 1px;\n width: 100vw;\n background-color: rgba(0, 0, 0, 0.1);\n }\n }\n\n @media only screen and (max-width:768px) {\n padding: 40px 0;\n }\n\n @media only screen and (max-width: 560px) {\n .posts,\n .box-actions {\n grid-template-columns: 1fr;\n }\n }\n"], ["\n width: 100%;\n padding: 80px 0;\n\n .main-content {\n width: 100%;\n flex: 1 1 auto;\n }\n\n .banner-blog + * {\n margin-top: 30px;\n }\n\n .container {\n display: grid;\n grid-template-columns: 2fr 1fr;\n justify-content: center;\n gap: 30px;\n }\n\n .posts,\n .box-actions {\n display: flex;\n flex-direction: column;\n gap: 30px;\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 70px 0;\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 60px 0;\n\n .container {\n gap: 20px;\n grid-template-columns: 1fr;\n }\n\n .posts,\n .box-actions {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n }\n\n .posts + * {\n margin: 0 !important;\n }\n\n .bar {\n height: 1px;\n width: 100vw;\n background-color: rgba(0, 0, 0, 0.1);\n }\n }\n\n @media only screen and (max-width:768px) {\n padding: 40px 0;\n }\n\n @media only screen and (max-width: 560px) {\n .posts,\n .box-actions {\n grid-template-columns: 1fr;\n }\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/blog/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,WAAW,GAAG,2BAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/blog/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,WAAW,GAAG,2BAAM,CAAC,OAAO,4pCAAA,ylCAmExC,KAAA"}
|
|
@@ -25,13 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.BoxPost = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var
|
|
28
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
29
29
|
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function BoxPost(_a) {
|
|
31
31
|
var postDetail = _a.postDetail;
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(S.BoxPost, { className: 'box-post', children: [postDetail.descricao && ((0, jsx_runtime_1.jsx)("div", { className: 'font-16 description', dangerouslySetInnerHTML: {
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(S.BoxPost, { className: 'box-post', children: [postDetail.imagem && ((0, jsx_runtime_1.jsx)("div", { className: 'post-image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: postDetail.imagem }) })), postDetail.descricao && ((0, jsx_runtime_1.jsx)("div", { className: 'font-16 description', dangerouslySetInnerHTML: {
|
|
33
33
|
__html: postDetail.descricao,
|
|
34
|
-
} }))
|
|
34
|
+
} }))] }));
|
|
35
35
|
}
|
|
36
36
|
exports.BoxPost = BoxPost;
|
|
37
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/post/box-post/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/post/box-post/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAgC;AAIhC,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,EAA6B;QAA3B,UAAU,gBAAA;IAClC,OAAO,CACL,wBAAC,CAAC,CAAC,OAAO,IAAC,SAAS,EAAC,UAAU,aAC5B,UAAU,CAAC,MAAM,IAAI,CACpB,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,cAAS,IAAC,GAAG,EAAE,UAAU,CAAC,MAAM,GAAI,GACjC,CACP,EAEA,UAAU,CAAC,SAAS,IAAI,CACvB,gCACE,SAAS,EAAC,qBAAqB,EAC/B,uBAAuB,EAAE;oBACvB,MAAM,EAAE,UAAU,CAAC,SAAS;iBAC7B,GACD,CACH,IAMS,CACb,CAAA;AACH,CAAC;AAxBD,0BAwBC"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.BoxPost = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.BoxPost = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
12
|
+
exports.BoxPost = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n background-color: #fff;\n border-radius: 20px;\n\n .post-image {\n width: 100%;\n aspect-ratio: 1202/420;\n }\n\n .description {\n padding: 40px;\n width: auto;\n color: #1a1a1a;\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n img,\n ul {\n & + * {\n margin-top: 15px;\n }\n }\n\n img {\n border-radius: 20px;\n overflow: hidden;\n aspect-ratio: 882/406;\n }\n\n ul {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding-left: 20px !important;\n\n li {\n list-style: circle !important;\n }\n }\n\n * {\n color: #1a1a1a;\n width: 100% !important;\n padding: 0 !important;\n }\n }\n\n @media only screen and (max-width: 1400px) {\n .description {\n padding: 35px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .description {\n padding: 30px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .description {\n padding: 25px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .description {\n padding: 20px;\n }\n }\n\n @media only screen and (max-width: 900px) {\n width: 100%;\n }\n"], ["\n overflow: hidden;\n background-color: #fff;\n border-radius: 20px;\n\n .post-image {\n width: 100%;\n aspect-ratio: 1202/420;\n }\n\n .description {\n padding: 40px;\n width: auto;\n color: #1a1a1a;\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n img,\n ul {\n & + * {\n margin-top: 15px;\n }\n }\n\n img {\n border-radius: 20px;\n overflow: hidden;\n aspect-ratio: 882/406;\n }\n\n ul {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding-left: 20px !important;\n\n li {\n list-style: circle !important;\n }\n }\n\n * {\n color: #1a1a1a;\n width: 100% !important;\n padding: 0 !important;\n }\n }\n\n @media only screen and (max-width: 1400px) {\n .description {\n padding: 35px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .description {\n padding: 30px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .description {\n padding: 25px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .description {\n padding: 20px;\n }\n }\n\n @media only screen and (max-width: 900px) {\n width: 100%;\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/post/box-post/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/post/box-post/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,0yCAAA,uuCAgFhC,KAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BoxTags(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.BoxTags = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var router_1 = require("next/router");
|
|
29
|
+
var share_1 = require("./share/index.js");
|
|
30
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
31
|
+
var S = __importStar(require("./styles.js"));
|
|
32
|
+
function BoxTags() {
|
|
33
|
+
var router = (0, router_1.useRouter)();
|
|
34
|
+
var tags = ['Institucional', 'Produtos', 'Notícias'];
|
|
35
|
+
function handleClickTag(tag) {
|
|
36
|
+
(0, ui_1.updateRoute)({ router: router, params: { tag: tag } });
|
|
37
|
+
}
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'BoxTags', children: (0, jsx_runtime_1.jsxs)(S.BoxTags, { className: 'post-tags', children: [(0, jsx_runtime_1.jsxs)("div", { className: 'tags', children: [(0, jsx_runtime_1.jsx)("p", { className: 'font-16-bold', children: "Tags" }), (0, jsx_runtime_1.jsx)("ul", { children: tags.map(function (tag) { return ((0, jsx_runtime_1.jsx)("span", { onClick: function () { return handleClickTag(tag); }, className: 'font-16-bold', children: tag })); }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'share', children: [(0, jsx_runtime_1.jsx)("p", { className: 'font-16-bold', children: "Compartilhe" }), (0, jsx_runtime_1.jsx)(share_1.Share, { url: router.query.url })] })] }) }));
|
|
39
|
+
}
|
|
40
|
+
exports.BoxTags = BoxTags;
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/post/box-tags/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,iCAA+B;AAC/B,2BAAyC;AAEzC,0CAA6B;AAE7B,SAAgB,OAAO;IACrB,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,IAAI,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC,CAAA;IAEtD,SAAS,cAAc,CAAC,GAAW;QACjC,IAAA,gBAAW,EAAC,EAAE,MAAM,QAAA,EAAE,MAAM,EAAE,EAAE,GAAG,KAAA,EAAE,EAAE,CAAC,CAAA;IAC1C,CAAC;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,SAAS,YACnB,wBAAC,CAAC,CAAC,OAAO,IAAC,SAAS,EAAC,WAAW,aAC9B,iCAAK,SAAS,EAAC,MAAM,aACnB,8BAAG,SAAS,EAAC,cAAc,qBAAS,EAEpC,yCACG,IAAI,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,CACjB,iCAAM,OAAO,EAAE,cAAM,OAAA,cAAc,CAAC,GAAG,CAAC,EAAnB,CAAmB,EAAE,SAAS,EAAC,cAAc,YAC/D,GAAG,GACC,CACR,EAJkB,CAIlB,CAAC,GACC,IACD,EAEN,iCAAK,SAAS,EAAC,OAAO,aACpB,8BAAG,SAAS,EAAC,cAAc,4BAAgB,EAE3C,uBAAC,aAAK,IAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,GAAa,GAAI,IACtC,IACI,GACN,CACT,CAAA;AACH,CAAC;AAhCD,0BAgCC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/post/box-tags/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/post/box-tags/share/icons/index.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,aAAa;IAC3B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,o1BAAo1B,GAAG,GAC71B,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,sCAUC;AAED,SAAgB,YAAY;IAC1B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,gSAAgS,GAAG,GACzS,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,oCAUC;AAED,SAAgB,YAAY;IAC1B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,oZAAoZ,GAAG,GAC7Z,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,oCAUC;AAED,SAAgB,YAAY;IAC1B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,ytBAAytB,GAAG,GACluB,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,oCAUC"}
|
|
@@ -31,7 +31,7 @@ var S = __importStar(require("./styles.js"));
|
|
|
31
31
|
function Share(_a) {
|
|
32
32
|
var url = _a.url;
|
|
33
33
|
var location = process.browser ? window.location.origin : '';
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)(S.Share, { children: [(0, jsx_runtime_1.jsx)(react_share_1.
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(S.Share, { children: [(0, jsx_runtime_1.jsx)(react_share_1.WhatsappShareButton, { className: 'link', url: "".concat(location, "/post/").concat(url), children: (0, jsx_runtime_1.jsx)(icons_1.IconWhatsApp, {}) }), (0, jsx_runtime_1.jsx)(react_share_1.LinkedinShareButton, { className: 'link', url: "".concat(location, "/post/").concat(url), children: (0, jsx_runtime_1.jsx)(icons_1.IconLinkedin, {}) }), (0, jsx_runtime_1.jsx)(react_share_1.FacebookShareButton, { className: 'link', url: "".concat(location, "/post/").concat(url), children: (0, jsx_runtime_1.jsx)(icons_1.Iconfacebook, {}) })] }));
|
|
35
35
|
}
|
|
36
36
|
exports.Share = Share;
|
|
37
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/post/box-tags/share/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAkE;AAClE,2CAA2F;AAE3F,0CAA6B;AAE7B,SAAgB,KAAK,CAAC,EAAwB;QAAtB,GAAG,SAAA;IACzB,IAAM,QAAQ,GAAI,OAAe,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;IAEvE,OAAO,CACL,wBAAC,CAAC,CAAC,KAAK,eACN,uBAAC,iCAAmB,IAAC,SAAS,EAAC,MAAM,EAAC,GAAG,EAAE,UAAG,QAAQ,mBAAS,GAAG,CAAE,YAClE,uBAAC,oBAAY,KAAG,GACI,EAEtB,uBAAC,iCAAmB,IAAC,SAAS,EAAC,MAAM,EAAC,GAAG,EAAE,UAAG,QAAQ,mBAAS,GAAG,CAAE,YAClE,uBAAC,oBAAY,KAAG,GACI,EAEtB,uBAAC,iCAAmB,IAAC,SAAS,EAAC,MAAM,EAAC,GAAG,EAAE,UAAG,QAAQ,mBAAS,GAAG,CAAE,YAClE,uBAAC,oBAAY,KAAG,GACI,IACd,CACX,CAAA;AACH,CAAC;AAlBD,sBAkBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/sites/components/default-pages/post/box-tags/share/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,2BAAM,CAAC,GAAG,0qBAAA,umBAoC9B,KAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BoxTags: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.BoxTags = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.BoxTags = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: #fff;\n border-radius: 20px;\n padding: 40px;\n display: flex;\n justify-content: space-between;\n gap: 20px;\n\n p {\n margin-bottom: 20px;\n }\n\n .tags ul {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n span {\n color: #000;\n border: 1px solid #df0035;\n padding: 0 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 5px;\n\n &:hover {\n background-color: #df0035;\n color: #fff;\n }\n }\n }\n\n .share p {\n text-align: center;\n }\n\n .share button {\n background-color: #000 !important;\n\n svg {\n width: 16px;\n height: 16px;\n fill: #fff !important;\n }\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 35px;\n }\n\n @media only screen and (max-width: 1200px) {\n padding: 30px;\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 25px;\n }\n\n @media only screen and (max-width: 768px) {\n padding: 20px;\n }\n"], ["\n background-color: #fff;\n border-radius: 20px;\n padding: 40px;\n display: flex;\n justify-content: space-between;\n gap: 20px;\n\n p {\n margin-bottom: 20px;\n }\n\n .tags ul {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n span {\n color: #000;\n border: 1px solid #df0035;\n padding: 0 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 5px;\n\n &:hover {\n background-color: #df0035;\n color: #fff;\n }\n }\n }\n\n .share p {\n text-align: center;\n }\n\n .share button {\n background-color: #000 !important;\n\n svg {\n width: 16px;\n height: 16px;\n fill: #fff !important;\n }\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 35px;\n }\n\n @media only screen and (max-width: 1200px) {\n padding: 30px;\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 25px;\n }\n\n @media only screen and (max-width: 768px) {\n padding: 20px;\n }\n"])));
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sites/components/default-pages/post/box-tags/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,kmCAAA,+hCA8DhC,KAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IPagePostProps } from './interfaces.js';
|
|
2
|
-
export declare function PostContent({ postDetail, newsLetter, newsLetterHasPhone }: IPagePostProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function PostContent({ hasSearch, categories, postDetail, newsLetter, featuredBlogs, newsLetterHasPhone, }: IPagePostProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,13 +38,26 @@ exports.PostContent = void 0;
|
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var ui_1 = require("../../../../ui/index.js");
|
|
40
40
|
var box_post_1 = require("./box-post/index.js");
|
|
41
|
-
var title_blog_1 = require("../blog/components/title-blog/index.js");
|
|
42
41
|
var components_1 = require("../blog/components/index.js");
|
|
43
42
|
var S = __importStar(require("./styles.js"));
|
|
43
|
+
var box_tags_1 = require("./box-tags/index.js");
|
|
44
44
|
function PostContent(_a) {
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
return ((0, jsx_runtime_1.
|
|
45
|
+
var _b, _c, _d;
|
|
46
|
+
var hasSearch = _a.hasSearch, categories = _a.categories, postDetail = _a.postDetail, newsLetter = _a.newsLetter, featuredBlogs = _a.featuredBlogs, newsLetterHasPhone = _a.newsLetterHasPhone;
|
|
47
|
+
return ((0, jsx_runtime_1.jsx)(S.Post, { className: 'post', children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [postDetail.detail.titulo && ((0, jsx_runtime_1.jsxs)("div", { className: 'titles', children: [(0, jsx_runtime_1.jsx)(ui_1.Breadcrumb, { links: [
|
|
48
|
+
{
|
|
49
|
+
text: 'Início',
|
|
50
|
+
href: '/',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
text: 'Blog',
|
|
54
|
+
href: '/blog',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
text: (_b = postDetail.detail) === null || _b === void 0 ? void 0 : _b.titulo,
|
|
58
|
+
href: '#',
|
|
59
|
+
},
|
|
60
|
+
] }), (0, jsx_runtime_1.jsx)("h2", { className: 'font-48-bold', children: postDetail.detail.titulo })] })), (0, jsx_runtime_1.jsx)("div", { className: 'posts-box', children: postDetail && postDetail.detail && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(box_post_1.BoxPost, { postDetail: postDetail.detail }), (0, jsx_runtime_1.jsx)(box_tags_1.BoxTags, {})] })) }), (0, jsx_runtime_1.jsxs)("div", { className: 'box-actions', children: [hasSearch && (0, jsx_runtime_1.jsx)(components_1.SearchBlog, {}), newsLetter && (0, jsx_runtime_1.jsx)(components_1.NewsLetterBlog, __assign({ hasPhone: newsLetterHasPhone }, newsLetter)), categories && ((_c = categories.list) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((0, jsx_runtime_1.jsx)(components_1.SideBoxCategories, { list: categories.list, data: categories.data })), featuredBlogs && ((_d = featuredBlogs.list) === null || _d === void 0 ? void 0 : _d.length) > 0 && ((0, jsx_runtime_1.jsx)(components_1.FeaturedBlogList, { featuredBlogList: featuredBlogs.list, data: featuredBlogs.data }))] })] }) }));
|
|
48
61
|
}
|
|
49
62
|
exports.PostContent = PostContent;
|
|
50
63
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/post/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/post/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4C;AAE5C,uCAAoC;AAEpC,iDAAoG;AAIpG,0CAA6B;AAC7B,uCAAoC;AAEpC,SAAgB,WAAW,CAAC,EAOX;;QANf,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,aAAa,mBAA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,CACrF,IACG,IACI,GACL,CACV,CAAA;AACH,CAAC;AA5DD,kCA4DC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Post } from
|
|
1
|
+
import { IBlog, Post } from '../blog/index.js';
|
|
2
2
|
export interface IPostDetailResponse {
|
|
3
3
|
head: {
|
|
4
4
|
pageTitle: string;
|
|
@@ -11,11 +11,11 @@ export interface IPostDetailResponse {
|
|
|
11
11
|
};
|
|
12
12
|
detail: Post;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type IPagePostProps = {
|
|
15
15
|
newsLetter?: {
|
|
16
16
|
title?: string;
|
|
17
17
|
description?: string;
|
|
18
18
|
};
|
|
19
19
|
newsLetterHasPhone?: boolean;
|
|
20
20
|
postDetail: IPostDetailResponse;
|
|
21
|
-
}
|
|
21
|
+
} & Pick<IBlog, 'featuredBlogs' | 'hasSearch' | 'categories' | 'newsLetter' | 'newsLetterHasPhone'>;
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Post = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Post = styled_components_1.default.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
12
|
+
exports.Post = styled_components_1.default.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 100px 0;\n\n .container {\n display: grid;\n grid-template-columns: 2fr 1fr;\n justify-content: center;\n gap: 30px;\n }\n\n .titles {\n grid-row: 1;\n\n > div {\n margin-bottom: 20px;\n\n > a:last-child {\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n\n h2 {\n line-height: 1.25;\n }\n }\n\n .posts-box,\n .box-actions {\n grid-row: 2;\n display: flex;\n flex-direction: column;\n gap: 30px;\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 80px 0;\n }\n\n @media only screen and (max-width: 1200px) {\n .titles {\n > div {\n margin-bottom: 15px;\n }\n }\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 60px 0;\n\n .container {\n gap: 20px;\n grid-template-columns: 1fr;\n }\n\n .posts-box {\n grid-row: unset;\n }\n\n .box-actions {\n grid-row: unset;\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n }\n\n .posts + * {\n margin: 0 !important;\n }\n\n .bar {\n height: 1px;\n width: 100vw;\n background-color: rgba(0, 0, 0, 0.1);\n }\n }\n\n @media only screen and (max-width: 768px) {\n padding: 40px 0;\n }\n\n @media only screen and (max-width: 560px) {\n .posts-box,\n .box-actions {\n grid-template-columns: 1fr;\n }\n }\n"], ["\n padding: 100px 0;\n\n .container {\n display: grid;\n grid-template-columns: 2fr 1fr;\n justify-content: center;\n gap: 30px;\n }\n\n .titles {\n grid-row: 1;\n\n > div {\n margin-bottom: 20px;\n\n > a:last-child {\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n\n h2 {\n line-height: 1.25;\n }\n }\n\n .posts-box,\n .box-actions {\n grid-row: 2;\n display: flex;\n flex-direction: column;\n gap: 30px;\n }\n\n @media only screen and (max-width: 1400px) {\n padding: 80px 0;\n }\n\n @media only screen and (max-width: 1200px) {\n .titles {\n > div {\n margin-bottom: 15px;\n }\n }\n }\n\n @media only screen and (max-width: 1024px) {\n padding: 60px 0;\n\n .container {\n gap: 20px;\n grid-template-columns: 1fr;\n }\n\n .posts-box {\n grid-row: unset;\n }\n\n .box-actions {\n grid-row: unset;\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n }\n\n .posts + * {\n margin: 0 !important;\n }\n\n .bar {\n height: 1px;\n width: 100vw;\n background-color: rgba(0, 0, 0, 0.1);\n }\n }\n\n @media only screen and (max-width: 768px) {\n padding: 40px 0;\n }\n\n @media only screen and (max-width: 560px) {\n .posts-box,\n .box-actions {\n grid-template-columns: 1fr;\n }\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/post/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,IAAI,GAAG,2BAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/sites/components/default-pages/post/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,IAAI,GAAG,2BAAM,CAAC,OAAO,+jDAAA,4/CA0FjC,KAAA"}
|
|
@@ -44,20 +44,33 @@ function useLoadAllNotifications() {
|
|
|
44
44
|
var isEnable = Configurations.notification.enable;
|
|
45
45
|
function fetcher() {
|
|
46
46
|
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
-
var res;
|
|
47
|
+
var res, err_1;
|
|
48
48
|
return __generator(this, function (_a) {
|
|
49
49
|
switch (_a.label) {
|
|
50
|
-
case 0:
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
case 0:
|
|
51
|
+
_a.trys.push([0, 2, , 3]);
|
|
52
|
+
return [4 /*yield*/, system_1.container
|
|
53
|
+
.get(system_1.Types.RemoteNotifications)
|
|
54
|
+
.loadAll({ timezone: 'America/Sao_Paulo' })];
|
|
53
55
|
case 1:
|
|
54
56
|
res = _a.sent();
|
|
55
57
|
return [2 /*return*/, res.data];
|
|
58
|
+
case 2:
|
|
59
|
+
err_1 = _a.sent();
|
|
60
|
+
console.log(err_1);
|
|
61
|
+
return [3 /*break*/, 3];
|
|
62
|
+
case 3: return [2 /*return*/];
|
|
56
63
|
}
|
|
57
64
|
});
|
|
58
65
|
});
|
|
59
66
|
}
|
|
60
|
-
return (0, ui_1.useQuery)({
|
|
67
|
+
return (0, ui_1.useQuery)({
|
|
68
|
+
queryKey: 'LoadAllNotifications',
|
|
69
|
+
queryFn: fetcher,
|
|
70
|
+
enableCache: true,
|
|
71
|
+
enabled: isEnable,
|
|
72
|
+
interval: 1 * 60 * 1000,
|
|
73
|
+
});
|
|
61
74
|
}
|
|
62
75
|
exports.useLoadAllNotifications = useLoadAllNotifications;
|
|
63
76
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA+B;AAC/B,mCAAmF;AAEnF,SAAgB,uBAAuB;IAC7B,IAAA,cAAc,GAAK,IAAA,0BAAiB,GAAE,eAAxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA+B;AAC/B,mCAAmF;AAEnF,SAAgB,uBAAuB;IAC7B,IAAA,cAAc,GAAK,IAAA,0BAAiB,GAAE,eAAxB,CAAwB;IAE9C,IAAM,QAAQ,GAAG,cAAc,CAAC,YAAY,CAAC,MAAM,CAAA;IAEnD,SAAe,OAAO;;;;;;;wBAEN,qBAAM,kBAAS;iCACxB,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC;iCACnD,OAAO,CAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC,EAAA;;wBAFvC,GAAG,GAAG,SAEiC;wBAE7C,sBAAO,GAAG,CAAC,IAAI,EAAA;;;wBAEf,OAAO,CAAC,GAAG,CAAC,KAAG,CAAC,CAAA;;;;;;KAEnB;IAED,OAAO,IAAA,aAAQ,EAAC;QACd,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;KACxB,CAAC,CAAA;AACJ,CAAC;AAxBD,0DAwBC"}
|
|
@@ -123,7 +123,8 @@ function useQuery(_a) {
|
|
|
123
123
|
}
|
|
124
124
|
var query_1 = mutateQuery(KEY, startQueryState);
|
|
125
125
|
if (interval) {
|
|
126
|
-
|
|
126
|
+
if (!cache.mutate)
|
|
127
|
+
setInterval(function () { return query_1.mutate(); }, interval);
|
|
127
128
|
}
|
|
128
129
|
else {
|
|
129
130
|
query_1.mutate();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../../src/ui/hooks/use-query/hook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiC;AAEjC,qCAA0C;AAG1C,SAAgB,QAAQ,CAAI,EAUZ;QATd,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EACd,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,WAAW,iBAAA,EACX,OAAO,aAAA;IAKP,IAAM,GAAG,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,EAAE,CAAA;IAEhC,IAAM,KAAK,GAAG,IAAA,wBAAc,EAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAhB,CAAgB,CAAC,CAAA;IACzD,IAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,MAAM,EAAZ,CAAY,CAAC,CAAA;IAE3D,SAAe,OAAO;4DAAC,EAAsB;;gBAApB,GAAG,SAAA;;;;;6BAEpB,CAAA,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAA,EAAjC,wBAAiC;wBACnC,qBAAM,WAAW,CAAC,G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C,CAAC,eAAe,CAAqC,CAAA;AAClG,CAAC;AA3ED,4BA2EC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinity-forge",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "codie Library",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"module": "./dist/index",
|
|
@@ -10,12 +10,11 @@
|
|
|
10
10
|
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "next -p
|
|
13
|
+
"dev": "next -p 3051",
|
|
14
14
|
"deploy": "npm version patch && npm publish",
|
|
15
15
|
"next": "next build",
|
|
16
16
|
"start": "next start -p 3015",
|
|
17
|
-
"build": "concurrently --kill-others-on-fail \"
|
|
18
|
-
"tsc": "tsc && tsc-alias --resolve-full-paths",
|
|
17
|
+
"build": "concurrently --kill-others-on-fail \"tsc -w\" \"tsc-alias -w --resolve-full-paths\" \"npm run build:CSS\" \"npm run fonts\"",
|
|
19
18
|
"build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
|
|
20
19
|
"minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
|
|
21
20
|
"fonts": "tsc-alias -p tsconfig.json && mkdir dist\\fonts && for /r src %i in (*.otf, *.ttf) do copy \"%i\" dist\\fonts\\"
|
package/dist/sites/components/default-pages/blog/components/blog-item/share/icons/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/sites/components/default-pages/blog/components/blog-item/share/icons/index.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,aAAa;IAC3B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,o1BAAo1B,GAAG,GAC71B,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,sCAUC;AAED,SAAgB,YAAY;IAC1B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,gSAAgS,GAAG,GACzS,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,oCAUC;AAED,SAAgB,YAAY;IAC1B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,oZAAoZ,GAAG,GAC7Z,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,oCAUC;AAED,SAAgB,YAAY;IAC1B,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,YAChF,wCACE,wCACE,iCAAM,CAAC,EAAC,ytBAAytB,GAAG,GACluB,GACF,GACA,CACP,CAAA;AACH,CAAC;AAVD,oCAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/blog-item/share/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAkE;AAClE,2CAA2F;AAE3F,0CAA6B;AAE7B,SAAgB,KAAK,CAAC,EAAwB;QAAtB,GAAG,SAAA;IACzB,IAAM,QAAQ,GAAI,OAAe,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;IAEvE,OAAO,CACL,wBAAC,CAAC,CAAC,KAAK,eACN,uBAAC,iCAAmB,IAAC,SAAS,EAAC,MAAM,EAAC,GAAG,EAAE,UAAG,QAAQ,mBAAS,GAAG,CAAE,YAClE,uBAAC,oBAAY,KAAG,GACI,EAEtB,uBAAC,iCAAmB,IAAC,SAAS,EAAC,MAAM,EAAC,GAAG,EAAE,UAAG,QAAQ,mBAAS,GAAG,CAAE,YAClE,uBAAC,oBAAY,KAAG,GACI,EAEtB,uBAAC,iCAAmB,IAAC,SAAS,EAAC,MAAM,EAAC,GAAG,EAAE,UAAG,QAAQ,mBAAS,GAAG,CAAE,YAClE,uBAAC,oBAAY,KAAG,GACI,IACd,CACX,CAAA;AACH,CAAC;AAlBD,sBAkBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/blog-item/share/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,2BAAM,CAAC,GAAG,0qBAAA,umBAoC9B,KAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface IFeaturedBlog {
|
|
2
|
-
categoriaBlogId: number;
|
|
3
|
-
titulo: string;
|
|
4
|
-
subtitulo: string;
|
|
5
|
-
descricao: string;
|
|
6
|
-
imagem: string;
|
|
7
|
-
thumbnail: string;
|
|
8
|
-
pageTitle: string;
|
|
9
|
-
metaDescription: string;
|
|
10
|
-
url: string;
|
|
11
|
-
id: number;
|
|
12
|
-
ativo: boolean;
|
|
13
|
-
destaque: boolean;
|
|
14
|
-
dataCriacao: string;
|
|
15
|
-
dataEdicao: string;
|
|
16
|
-
}
|
|
17
|
-
interface IFeaturedBlogItemProps {
|
|
18
|
-
featuredBlog: IFeaturedBlog;
|
|
19
|
-
}
|
|
20
|
-
export type { IFeaturedBlog, IFeaturedBlogItemProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../../../../../src/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/interface.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|