PageSourceSearch

https://sounter.com/_next/static/chunks/pages/post/[slug]-8884f0e184e666df.js

js sounter.com collected 2026-10-02 05:35:52 UTC 13,700 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6515],{31705:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/[slug]",function(){return r(32621)}])},32621:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSG:function(){return L},default:function(){return _slug_}});var n,o,a=r(5311),i=r(66840),s=r(91661),c=r(7477),l=r.n(c),d=r(67632),u=r(63552),h=r(5635),p=r(54347),f=r(76670),_=r.n(f),w=r(80275),g=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),v=function(t){function AssertionError(e){var r=t.call(this,e)||this;return r.name="AssertionError",r}return g(AssertionError,t),AssertionError}(Error);function assert(t,e){if(!t)throw new v(e)}function objectToGetParams(t){var e=Object.entries(t).filter(function(t){return null!=t[1]}).map(function(t){var e=t[0],r=t[1];return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(r)))});return e.length>0?"?".concat(e.join("&")):""}var b=r(42310),m=r.n(b),y=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),__assign=function(){return(__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},__generator=function(t,e){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function verb(a){return function(s){return function(a){if(r)throw TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},__rest=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)0>e.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r},j=function(t){function ShareButton(){var e=null!==t&&t.apply(this,arguments)||this;return e.openShareDialog=function(t){var r=e.props,n=r.onShareWindowClose,o=r.windowHeight,a=void 0===o?400:o,i=r.windowPosition,s=void 0===i?"windowCenter":i,c=r.windowWidth,l=void 0===c?550:c;!function(t,e,r){var n=e.height,o=e.width,a=__rest(e,["height","width"]),i=__assign({height:n,width:o,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},a),s=window.open(t,"",Object.keys(i).map(function(t){return"".concat(t,"=").concat(i[t])}).join(", "));if(r)var c=window.setInterval(function(){try{(null===s||s.closed)&&(window.clearInterval(c),r(s))}catch(t){console.error(t)}},1e3)}
1(t,__assign({height:a,width:l},"windowCenter"===s?{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-l/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-a/2}:{top:(window.screen.height-a)/2,left:(window.screen.width-l)/2}),n)},e.handleClick=function(t){var r,n,o;return r=void 0,n=void 0,o=function(){var e,r,n,o,a,i,s,c,l;return __generator(this,function(d){switch(d.label){case 0:var u;if(r=(e=this.props).beforeOnClick,n=e.disabled,o=e.networkLink,a=e.onClick,i=e.url,s=e.openShareDialogOnClick,c=o(i,e.opts),n)return[2];if(t.preventDefault(),!r||!((u=l=r())&&("object"==typeof u||"function"==typeof u)&&"function"==typeof u.then))return[3,2];return[4,l];case 1:d.sent(),d.label=2;case 2:return s&&this.openShareDialog(c),a&&a(t,c),[2]}})},new(n||(n=Promise))(function(t,a){function fulfilled(t){try{step(o.next(t))}catch(t){a(t)}}function rejected(t){try{step(o.throw(t))}catch(t){a(t)}}function step(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(fulfilled,rejected)}step((o=o.apply(e,r||[])).next())})},e}return y(ShareButton,t),ShareButton.prototype.render=function(){var t=this.props,e=(t.beforeOnClick,t.children),r=t.className,n=t.disabled,o=t.disabledStyle,a=t.forwardedRef,s=(t.networkLink,t.networkName),c=(t.onShareWindowClose,t.openShareDialogOnClick,t.opts,t.resetButtonStyle),l=t.style,d=(t.url,t.windowHeight,t.windowPosition,t.windowWidth,__rest(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),u=m()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!n,disabled:!!n},r),h=c?__assign(__assign({backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"},l),n&&o):__assign(__assign({},l),n&&o);return i.createElement("button",__assign({},d,{"aria-label":d["aria-label"]||s,className:u,onClick:this.handleClick,ref:a,style:h}),e)},ShareButton.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},ShareButton}(i.Component),createShareButton_assign=function(){return(createShareButton_assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},hocs_createShareButton=function(t,e,r,n){function CreatedButton(o,a){var s=r(o),c=createShareButton_assign({},o);return Object.keys(s).forEach(function(t){delete c[t]}),i.createElement(j,createShareButton_assign({},n,c,{forwardedRef:a,networkName:t,networkLink:e,opts:r(o)}))}return CreatedButton.displayName="ShareButton-".concat(t),(0,i.forwardRef)(CreatedButton)},x=hocs_createShareButton("facebook",function(t,e){var r=e.quote,n=e.hashtag;return assert(t,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+objectToGetParams({u:t,quote:r,hashtag:n})},function(t){return{quote:t.quote,hashtag:t.hashtag}},{windowWidth:550,windowHeight:400}),S=hocs_createShareButton("twitter",function(t,e){var r=e.title,n=e.via,o=e.hashtags,a=void 0===o?[]:o,i=e.related,s=void 0===i?[]:i;return assert(t,"twitter.url"),assert(Array.isArray(a),"twitter.hashtags is not an array"),assert(Array.isArray(s),"twitter.related is not an array"),"https://twitter.com/share"+objectToGetParams({url:t,text:r,via:n,hashtags:a.length>0?a.join(","):void 0,related:s.length>0?s.join(","):void 0})},function(t){return{hashtags:t.hashtags,title:t.title,via:t.via,related:t.related}},{windowWidth:550,windowHeight:400}),C=hocs_createShareButton("whatsapp",function(t,e){var r=e.title,n=e.separator;return assert(t,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/send"+objectToGetParams({text:r?r+n+t:t})},function(t){return{title:t.title,separator:t.separator||" "}},{windowWidth:550,windowHeight:400}),k=hocs_createShareButton("pinterest",function(t,e){var r=e.media,n=e.description;return assert(t,"pinterest.url"),assert(r,"pinterest.media"),"https://pinterest.com/pin/create/button/"+
1objectToGetParams({url:t,media:r,description:n})},function(t){return{media:t.media,description:t.description}},{windowWidth:1e3,windowHeight:730}),P=r(89544),O=r(61876),N=r(38232),B=r(79165),T=r.n(B),E=r(58848),A=r(66060),H=r(13714),Post_Post=t=>{var e;let{post:r}=t,{t:n}=(0,H.Z)(),o=(0,O.useRouter)(),c=r.data.title[0].text,f=r.data.featured_image.url,g=r.data.featured_image.alt,v=r.data.short_description,b=r.data.article_content,m=new Date(r.first_publication_date),y=o.locale!=N.defaultLocale?"/"+o.locale:"",j="".concat((0,P.Ax)()).concat(y,"/post/").concat(r.uid),B=null===(e=r.data.related.uid)||void 0===e?void 0:e.replace(/-/g," "),D=r.data.related.uid,[Z,L]=(0,i.useState)(!1);return(0,a.jsxs)(s.Z,{logoSub:"Blog",showOnboardButtons:!0,children:[(0,a.jsxs)(d.Z,{maxWidth:"md",children:[(0,a.jsx)(E.h,{onEnter:()=>{L(!1)},onLeave:()=>{L(!0)},children:(0,a.jsxs)("div",{className:_().postHeadContainer,children:[(0,a.jsx)(l(),{alt:g,className:_().featuredImge,src:f,width:1920,height:1080}),(0,a.jsx)(u.Z,{className:_().postHeadLine,variant:"h1",children:c}),(0,a.jsx)("div",{className:_().postDesc,children:w.RichText.render(v)}),(0,a.jsx)("div",{className:_().headDividerContainer,children:(0,a.jsx)(u.Z,{children:n("post:publishueHead",{date:"".concat(m.getDate(),"/").concat(m.getMonth(),"/").concat(m.getFullYear())})})})]})}),(0,a.jsx)("div",{style:{maxWidth:"100%",overflowX:"hidden"},children:(0,a.jsx)("div",{className:_().postContent,children:w.RichText.render(b)})}),(0,a.jsx)(u.Z,{align:"center",className:_().shareTitle,children:n("post:shareTitle")}),(0,a.jsxs)("div",{className:_().shareContainer,children:[(0,a.jsx)(x,{url:j,children:(0,a.jsx)(l(),{alt:"Facebook logo",src:"/images/facebook.svg",width:50,height:50})}),(0,a.jsx)(S,{url:j,children:(0,a.jsx)(l(),{alt:"twitter logo",src:"/images/twitter.svg",width:50,height:50})}),(0,a.jsx)(C,{url:j,children:(0,a.jsx)(l(),{alt:"whatsapp logo",src:"/images/whatsapp.svg",width:50,height:50})}),(0,a.jsx)(k,{url:j,media:f,children:(0,a.jsx)(l(),{alt:"pinterest logo",src:"/images/pinterest.svg",width:50,height:50})})]}),D&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:_().relatedDivider,children:(0,a.jsx)(u.Z,{variant:"h5",children:n("post:relatedSection")})}),(0,a.jsx)("div",{className:_().relatedLink,children:(0,a.jsx)(T(),{href:"/post/".concat(D),passHref:!0,children:(0,a.jsx)(u.Z,{variant:"h6",children:B})})})]})]}),(0,a.jsx)(h.Z,{}),(0,a.jsx)(A.E.div,{animate:{bottom:Z?"0px":"-300px"},className:_().ctaSounter,children:(0,a.jsxs)(d.Z,{className:_().ctaCon,maxWidth:"md",children:[(0,a.jsx)(u.Z,{className:_().ctaTitle,variant:"h5",children:n("post:ctaText")}),(0,a.jsx)(T(),{href:"/register",passHref:!0,children:(0,a.jsx)(p.Z,{disableElevation:!0,className:_().buttonCTA,variant:"contained",children:n("post:cta")})})]})})]})},D=r(89915),Z=r(91723),L=!0,_slug_=t=>{let{post:e}=t,r=(0,O.useRouter)(),n=e.data.keywords,o=[{url:e.data.featured_image.url,alt:e.data.featured_image.alt,width:e.data.featured_image.dimensions.width,height:e.data.featured_image.dimensions.height}];return(0,a.jsxs)(D.Z,{name:e.data.title[0].text,description:e.data.short_description[0].text,keywords:n?n[0].text:null,images:o,path:"/post/".concat(e.uid),customAlternates:[],children:[(0,a.jsx)(Z.dX,{url:"".concat((0,P.Ax)(),"/").concat(r.locale,"/post/").concat(e.uid),title:e.data.title[0].text,images:[o[0].url],datePublished:e.first_publication_date,dateModified:e.last_publication_date,authorName:["Sounter"],publisherName:"Sounter Blog",publisherLogo:"https://firebasestorage.googleapis.com/v0/b/sounter-625d9.appspot.com/o/logo_circle.png?alt=media&token=acf1e478-c8cf-4d7a-80b7-2a3e77519441",description:e.data.short_description[0].text}),(0,a.jsx)(Post_Post,{post:e})]})}},76670:function(t){t.exports={featuredImge:"Post_featuredImge__unFl5",postHeadContainer:"Post_postHeadContainer__aH4ku",postHeadLine:"Post_postHeadLine__iaOEQ",postDesc:"Post_postDesc__xM3cg",headDividerContainer:"Post_headDividerContainer__a2lG3",postContent:"Post_postContent__2BJhk",shareTitle:"Post_shareTitle__lpclz",shareContainer:"Post_shareContainer__hXViU",relatedDivider:"Post_relatedDivider__lSXun",relatedLink:"Post_relatedLink__F
1Z6yP",ctaTitle:"Post_ctaTitle__bq9_m",ctaSounter:"Post_ctaSounter__mHZYQ",buttonCTA:"Post_buttonCTA__nNh69",ctaCon:"Post_ctaCon__9j_7y"}},42310:function(t,e){var r;/*!
2	Copyright (c) 2018 Jed Watson.
3	Licensed under the MIT License (MIT), see
4	http://jedwatson.github.io/classnames
5*/!function(){"use strict";var n={}.hasOwnProperty;function classNames(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=appendClass(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return classNames.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=appendClass(e,r));return e}(r)))}return t}function appendClass(t,e){return e?t?t+" "+e:t+e:t}t.exports?(classNames.default=classNames,t.exports=classNames):void 0!==(r=(function(){return classNames}).apply(e,[]))&&(t.exports=r)}()}},function(t){t.O(0,[3552,3074,4347,7477,7689,5500,9165,7896,8002,2708,3221,8196,8866,6060,275,7162,804,9774,2888,179],function(){return t(t.s=31705)}),_N_E=t.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.