(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4909],{40289:function(e,t,r){Promise.resolve().then(r.bind(r,25772)),Promise.resolve().then(r.bind(r,94386)),Promise.resolve().then(r.bind(r,46340)),Promise.resolve().then(r.bind(r,11671)),Promise.resolve().then(r.bind(r,834))},25772:function(e,t,r){"use strict";var a=r(87898),n=r(33294),s=r(24024),l=r(75656),i=r(11671),c=r(91210),o=r(93762),d=r(86200),u=r(14399),m=r.n(u);let h=()=>{let{alternate:e}=(0,c.b)();return(0,a.jsx)(d.Fragment,{children:(0,a.jsx)(i.default,{name:(e?"sdotid_":"")+"blog_article_in_content",imgClassName:"h-[200px] sm:h-[150px]",containerClassName:"mb-10 w-full"})})},p=e=>{let{data:t}=e,r=(0,d.useMemo)(()=>{let e=t.attrs.src||"";return e.startsWith("https://")||e.startsWith("http://")?e:n.ZP+e},[t.attrs.src]);return(0,a.jsx)("div",{className:(0,l.Z)(m().CustomImg,"left"===t.attrs.position?"items-start":"right"===t.attrs.position?"items-end":"items-center"),children:(0,a.jsxs)("div",{style:{width:t.attrs.width},className:"pointer-events-auto",children:[(0,a.jsx)("img",{src:r,className:"w-full",alt:t.attrs.title,title:t.attrs.title}),t.attrs.title&&(0,a.jsx)("p",{className:"text-base text-gray-500",children:t.attrs.title})]})})},w=e=>{let{data:t}=e,{id:r,kind:n}=(0,d.useMemo)(()=>{let e=t.attrs.value,r=!1,a="",n="";if(s.wT.test(e)){n="youtube";let t=e.match(s.wT);a=t?t[2]||t[3]:"",r=!0}return{isValidMedia:r,id:a,kind:n}},[t.attrs.value]);return(0,a.jsx)("div",{className:"mb-5",children:(0,a.jsx)("div",{className:"relative mx-auto p-2 max-w-[600px]",children:"youtube"===n?(0,a.jsx)("div",{className:"relative bg-black bg-opacity-50 pb-[60%]",children:(0,a.jsx)("iframe",{width:"100%",height:"100%",className:"absolute",src:"https://www.youtube.com/embed/"+r,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)("div",{className:"p-4 border border-red-500 text-center text-red-500",children:"Invalid Media"})})})},x=e=>{var t;let{data:r,index:n,middleComponent:s}=e;return(0,a.jsx)(d.Fragment,{children:null==r?void 0:null===(t=r.content)||void 0===t?void 0:t.map((e,t)=>{var r,l,i;if("paragraph"===e.type||"heading"===e.type){let s=null===(r=e.content)||void 0===r?void 0:r.map((e,r)=>e.marks?e.marks.reduce((e,t,r)=>"bold"===t.type?(0,a.jsx)("strong",{children:e},"b-"+r):"italic"===t.type?(0,a.jsx)("em",{children:e},"i-"+r):"link"===t.type?(0,a.jsx)("a",{href:t.attrs.href,target:"_blank",rel:"noopener noreferrer",className:"text-red-500 underline",children:e},"a-"+r):e,(0,a.jsx)(d.Fragment,{children:e.text},"f-"+r)):(0,a.jsx)(d.Fragment,{children:e.text},n+"_"+t+"_"+r));if("heading"===e.type){if(1===e.attrs.level)return(0,a.jsx)("h1",{className:m().Heading,children:s},"h-"+t);if(2===e.attrs.level)return(0,a.jsx)("h2",{className:m().Heading,children:s},"h-"+t);if(3===e.attrs.level)return(0,a.jsx)("h3",{className:m().Heading,children:s},"h-"+t)}return(0,a.jsx)("p",{className:"pb-4 break-words leading-loose",children:s},"p__"+t)}return"image"===e.type?(0,a.jsx)(p,{data:e},"img_"+t):"embedComponent"===e.type?(0,a.jsx)(w,{data:e},"em_"+t):"bulletList"===e.type?(0,a.jsx)("ul",{className:"ml-10 list-disc",children:null==e?void 0:null===(l=e.content)||void 0===l?void 0:l.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(x,{data:e,index:n+"_"+t})},"bll-"+t))},"bl-"+t):"orderedList"===e.type?(0,a.jsx)("ul",{className:"ml-10 list-decimal",children:null==e?void 0:null===(i=e.content)||void 0===i?void 0:i.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(x,{data:e,index:n+"_"+t})},"bll-"+t))},"bl-"+t):"ads"===e.type?(0,a.jsxs)(d.Fragment,{children:[(0,a.jsx)(h,{},"ads-"+t),s||(0,a.jsx)(d.Fragment,{},"frag_inner-"+t)]},"fragment-"+t):(0,a.jsx)(d.Fragment,{},n+"_"+t)})},n)};t.default=e=>{let{post:t,locale:r,middleComponent:n}=e,s=(0,d.useMemo)(()=>{if(!t)return null;let e={...(0,o.I)(t.content,r)};return(null==e?void 0:e.type)!=="doc"?null:{...e,content:e.content.reduce((e,t,r)=>4===r&&t.content?[...e,t,{type:"ads"}]:[...e,t],[])}},[t,r]);return(0,a.jsx)(d.Fragment,{children:s?(0,a.jsx)(x,{data:s,index:"xc723mv",middleComponent:n}):(0,a.jsx)(d.Fragment,{})})}},46340:function(e,t,r){"use strict";var a=r(87898),n=r(63292),s=r(89232),l=r(19034),i=r(86200),c=r(72770),o=r(25810);t.default=e=>{let{postId:t}=e,r=(0,n.Ek)(),[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),{t:p}=(0,o.$G)(),w=async e=>{if(!m){try{h(!0),await r.post("/blogs/feedback",{blog_id:t,response:e}),u(!0)}catch(e){c.ZP.error(p("blog_feedback_error"))}h(!1)}};return(0,a.jsx)("div",{className:"bg-white bg-opacity-50 p-4 border rounded-md",children:d?(0,a.jsx)("p",{className:"font-semibold text-blue-600 text-center",children:p("blog_feedback_success")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mb-3 text-center",children:p("blog_feedback_description")}),(0,a.jsxs)("div",{className:"flex justify-center",children:[(0,a.jsx)("button",{className:"bg-white shadow-md mx-1 px-4 py-2 rounded-md text-gray-500 hover:text-gray-800 transition hover:-translate-y-1 overflow-hidden",onClick:()=>w(1),"aria-label":"Vote Up",children:(0,a.jsx)(s.Z,{className:"w-5"})}),(0,a.jsx)("button",{className:"bg-white shadow-md mx-1 px-4 py-2 rounded-md text-gray-500 hover:text-gray-800 transition hover:-translate-y-1 overflow-hidden",onClick:()=>w(-1),"aria-label":"Vote Down",children:(0,a.jsx)(l.Z,{className:"w-5"})})]})]})})}},24024:function(e,t,r){"use strict";r.d(t,{Ao:function(){return s},C$:function(){return p},JB:function(){return c},Ll:function(){return h},P:function(){return d},Rv:function(){return o},Vh:function(){return m},ie:function(){return u},lR:function(){return i},lX:function(){return n},wT:function(){return a},zy:function(){return l}});let a=/^https:\/\/(?:www\.){0,1}(youtu.be\/([\w_-]+)|youtube.com(?:\/watch\?.*(?:v=([\w_-]+))|\/live\/([\w_-]+)))/,n=/^https:\/\/(?:www\.){0,1}(youtu.be\/([\w_-]+)|youtube.com(?:\/playlist))/,s=/^https:\/\/music.youtube.com(?:\/watch\?.*(?:v=([\w_-]+)))/,l=/^https:\/\/(?:www\.){0,1}(?:instagram.com\/p\/([a-zA-Z0-9_-]+))/,i=/^https:\/\/(?:www\.){0,1}(?:twitter.com\/(?:[a-zA-Z0-9_.-]+)\/status\/\d+)/,c=/^https:\/\/(?:www\.){0,1}(?:x.com\/(?:[a-zA-Z0-9_.-]+)\/status\/\d+)/,o=/^https:\/\/(?:www\.){0,1}(?:tiktok.com\/(?:@[a-zA-Z0-9_.-]+)\/video\/\d+)/,d=/^https:\/\/(?:www\.){0,1}(?:soundcloud.com\/(?:[a-zA-Z0-9_.-]+)\/(?:[a-zA-Z0-9_.-]+))/,u=/^https:\/\/(?:open.spotify.com\/(artist|track|album|playlist|show|episode)\/([a-zA-Z0-9_.-]+))/,m=/^https:\/\/(?:www\.){0,1}(?:klip.id\/([a-zA-Z0-9_-]+))/,h=/^https:\/\/(?:www\.){0,1}(?:canva.com\/design\/((?:[a-zA-Z0-9_-]+)\/(?:[a-zA-Z0-9_-]+)))/,p=/^https:\/\/(?:www\.){0,1}(?:docs.google.com\/(spreadsheets|document|presentation)\/d\/e\/([a-zA-Z0-9_-]+))\/pub/},14399:function(e){e.exports={Heading:"ArticleRenderer_Heading__zdMt4",Paragraph:"ArticleRenderer_Paragraph__DQwy6",CustomImg:"ArticleRenderer_CustomImg__a1OsT"}},19034:function(e,t,r){"use strict";var a=r(86200);let n=a.forwardRef(function(e,t){let{title:r,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},s),r?a.createElement("title",{id:n},r):null,a.createElement("path",{d:"M15.73 5.5h1.035A7.465 7.465 0 0 1 18 9.625a7.465 7.465 0 0 1-1.235 4.125h-.148c-.806 0-1.534.446-2.031 1.08a9.04 9.04 0 0 1-2.861 2.4c-.723.384-1.35.956-1.653 1.715a4.499 4.499 0 0 0-.322 1.672v.633A.75.75 0 0 1 9 22a2.25 2.25 0 0 1-2.25-2.25c0-1.152.26-2.243.723-3.218.266-.558-.107-1.282-.725-1.282H3.622c-1.026 0-1.945-.694-2.054-1.715A12.137 12.137 0 0 1 1.5 12.25c0-2.848.992-5.464 2.649-7.521C4.537 4.247 5.136 4 5.754 4H9.77a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23ZM21.669 14.023c.536-1.362.831-2.845.831-4.398 0-1.22-.182-2.398-.52-3.507-.26-.85-1.084-1.368-1.973-1.368H19.1c-.445 0-.72.498-.523.898.591 1.2.924 2.55.924 3.977a8.958 8.958 0 0 1-1.302 4.666c-.245.403.028.959.5.959h1.053c.832 0 1.612-.453 1.918-1.227Z"}))});t.Z=n},89232:function(e,t,r){"use strict";var a=r(86200);let n=a.forwardRef(function(e,t){let{title:r,titleId:n,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},s),r?a.createElement("title",{id:n},r):null,a.createElement("path",{d:"M7.493 18.5c-.425 0-.82-.236-.975-.632A7.48 7.48 0 0 1 6 15.125c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75A.75.75 0 0 1 15 2a2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23h-.777ZM2.331 10.727a11.969 11.969 0 0 0-.831 4.398 12 12 0 0 0 .52 3.507C2.28 19.482 3.105 20 3.994 20H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 0 1-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227Z"}))});t.Z=n}},function(e){e.O(0,[74977,22562,84322,25810,20153,36074,19501,70104,93976,99490,72632,55201,48573,1744],function(){return e(e.s=40289)}),_N_E=e.O()}]);