📄 443.8db39b1a.chunk.js
/home/palash/git/site/build/static/js/443.8db39b1a.chunk.js
Language: js • Lines: 2
"use strict";(self.webpackChunknew_site=self.webpackChunknew_site||[]).push([[443],{9889(e,t,n){n.d(t,{A:()=>A});var r=n(9379),s=n(45),a=n(5544),o=n(5809),l=n(8602),i=n(3519),c=n(3637),d=n(1072),p=n(5043),h=n(3859),u=n(3596),f=n(4993),x=n(578),g=n(285),m=(n(119),n(1616),n(8320)),w=n(579);const y=["children"],j={javascript:["async","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","let","new","null","of","return","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"],python:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"],java:["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","false","final","finally","float","for","goto","if","implements","import","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","strictfp","super","switch","synchronized","this","throw","throws","transient","true","try","void","volatile","while"],cpp:["auto","bool","break","case","catch","char","class","const","constexpr","continue","default","delete","do","double","else","enum","explicit","export","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace","new","noexcept","nullptr","operator","override","private","protected","public","register","return","short","signed","sizeof","static","struct","switch","template","this","throw","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","while"],typescript:["abstract","any","as","asserts","async","await","boolean","break","case","catch","class","const","constructor","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","of","package","private","protected","public","readonly","return","require","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield"],rust:["as","async","await","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","Self","static","struct","super","trait","true","type","union","unsafe","use","where","while"],go:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],bash:["if","then","else","elif","fi","for","while","do","done","case","esac","function","return","exit","export","local","declare","echo","read","set","unset","trap","source"]};function b(e){let t=e.className,n=e.children,r=e.inline;const s=function(e){return(e||"").replace(/^language-/,"")||""}(t),a=String(n).replace(/\n$/,""),o=a.includes("\n"),l=t&&/language-\w+/.test(t);if(!0===r||!o&&!l)return(0,w.jsx)("code",{style:{background:"#3c3c3c",color:"#81ecec",padding:"2px 6px",borderRadius:"3px",fontSize:"0.9em"},children:a});const i=a.split("\n"),c=function(e,t){const n=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").split("\n"),r=new Set(j[t]||j.javascript);return n.map(e=>{const t=[];let n=0;for(;n<e.length;)if(" "===e[n]||"\t"===e[n]){let r="";for(;n<e.length&&(" "===e[n]||"\t"===e[n]);)r+=e[n],n++;t.push(r)}else{if("/"===e[n]&&"/"===e[n+1]){t.push('<span style="color:#6a9955">'.concat(e.slice(n),"</span>"));break}if("/"===e[n]&&"*"===e[n+1]){let r=e.indexOf("*/",n+2);if(-1===r){t.push('<span style="color:#6a9955">'.concat(e.slice(n),"</span>"));break}t.push('<span style="color:#6a9955">'.concat(e.slice(n,r+2),"</span>")),n=r+2}else if('"'===e[n]||"'"===e[n]||"`"===e[n]){const r=e[n];let s=n+1;for(;s<e.length&&e[s]!==r;)"\\"===e[s]&&s++,s++;s>=e.length&&(s=e.length),t.push('<span style="color:#ce9178">'.concat(e.slice(n,s+(e[s]===r?1:0)),"</span>")),n=s+(e[s]===r?1:0)}else if(/[0-9]/.test(e[n])&&(0===n||/[\s(){}[\];,:+\-*/%]/.test(e[n-1]))){let r="";for(;n<e.length&&/[0-9.]/.test(e[n]);)r+=e[n],n++;t.push('<span style="color:#4ec9b0">'.concat(r,"</span>"))}else if(/[a-zA-Z_$]/.test(e[n])){let s="";for(;n<e.length&&/[a-zA-Z0-9_$]/.test(e[n]);)s+=e[n],n++;r.has(s)?t.push('<span style="color:#569cd6">'.concat(s,"</span>")):n<e.length&&"("===e[n]?t.push('<span style="color:#dcdcaa">'.concat(s,"</span>")):t.push(s)}else{const r=e[n],s={"#":"#608b4e","@":"#d7ba7d"};t.push(s[r]?'<span style="color:'.concat(s[r],'">').concat(r,"</span>"):r),n++}}return t.join("")}).join("\n")}(a,s);return(0,w.jsxs)("div",{style:{position:"relative",margin:"1.5em 0",borderRadius:"6px",overflow:"hidden",background:"#1e1e1e",borderLeft:"4px solid #e3f988"},children:[s&&(0,w.jsx)("div",{style:{position:"absolute",top:0,right:0,padding:"4px 10px",fontSize:"11px",color:"#22d3ee",background:"#2d2d2d",borderBottomLeftRadius:"6px",textTransform:"uppercase",letterSpacing:"1px",zIndex:3,fontWeight:600},children:s}),(0,w.jsx)("div",{style:{maxHeight:"500px",overflowY:"auto"},children:(0,w.jsxs)("div",{style:{display:"flex",overflowX:"auto",paddingTop:s?"28px":0},children:[(0,w.jsx)("div",{style:{flex:"0 0 auto",textAlign:"right",color:"#858585",userSelect:"none",fontFamily:"'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace",fontSize:"13px",lineHeight:1.5,padding:"12px 0",minWidth:"44px"},children:i.map((e,t)=>(0,w.jsx)("div",{style:{padding:"0 12px"},children:t+1},t))}),(0,w.jsx)("pre",{style:{margin:0,padding:"12px 16px",flex:1,fontFamily:"'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace",fontSize:"13px",lineHeight:1.5,color:"#d4d4d4",whiteSpace:"pre",tabSize:2,border:"none",background:"transparent",boxShadow:"none",borderRadius:0},dangerouslySetInnerHTML:{__html:c}})]})}),(0,w.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, #1e1e1e)",pointerEvents:"none",zIndex:2}})]})}function v(e){var t;return"string"===typeof e?e:Array.isArray(e)?e.map(v).join(""):null!==e&&void 0!==e&&null!==(t=e.props)&&void 0!==t&&t.children?v(e.props.children):""}let k=0;function A(e){const t=(0,p.useState)(null),n=(0,a.A)(t,2),j=n[0],A=n[1],C=(0,p.useState)(null),S=(0,a.A)(C,2),F=S[0],P=S[1],N=(0,p.useState)(null),U=(0,a.A)(N,2),z=U[0],_=U[1];var L;switch(e.contentType){case"swe":L=window.findProp("pages.contents.techBlogClass");break;case"music":L=window.findProp("pages.contents.musicBlogClass");break;default:L=window.findProp("pages.contents.genericBlogClass")}const T=e=>{const t=t=>{let n=t.children,a=(0,s.A)(t,y);const o=function(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}(v(n))||"h-".concat(k++);return(0,w.jsx)(e,(0,r.A)((0,r.A)({id:o},a),{},{children:n}))};return t.displayName="Heading".concat(e),t},B={h1:T("h1"),h2:T("h2"),h3:T("h3"),h4:T("h4"),h5:T("h5"),h6:T("h6"),img:e=>(0,w.jsx)("span",{style:{display:"flex",justifyContent:"center",margin:"1.5em 0"},children:(0,w.jsx)("span",{style:{display:"inline-flex",borderRadius:"6px",overflow:"hidden",border:"1px solid #333",boxShadow:"0 2px 8px rgba(0,0,0,0.4)",background:"#1e1e1e",padding:"8px"},children:(0,w.jsx)(c.A,{fluid:!0,loading:"lazy",src:e.src,alt:e.alt||"",style:{borderRadius:"4px",display:"block"}})})}),pre:e=>{let t=e.children;return(0,w.jsx)(w.Fragment,{children:t})},code:e=>(0,w.jsx)(b,(0,r.A)({},e))};return(0,p.useEffect)(()=>{k=0,(0,m.ZF)(e.mdUrl).then(t=>{A(t),P(!1),e.onMdLoaded&&e.onMdLoaded(t)}).catch(e=>{_(e),P(!1)})},[e.mdUrl]),F?(0,w.jsx)("p",{children:"Loading..."}):z?(0,w.jsxs)("p",{children:["Error: ",z.message]}):(0,w.jsxs)(i.A,{className:L,fluid:!0,children:[(0,w.jsxs)(d.A,{children:[e.publishDate?(0,w.jsxs)(l.A,{children:[(0,w.jsx)("b",{children:window.findProp("labels.publishedOn")}),e.publishDate]}):(0,w.jsx)(w.Fragment,{}),e.lastUpdated?(0,w.jsxs)(l.A,{children:[(0,w.jsx)("b",{children:window.findProp("labels.lastUpdated")}),e.lastUpdated]}):(0,w.jsx)(w.Fragment,{})]}),(0,w.jsx)("br",{}),(0,w.jsx)(d.A,{children:(0,w.jsx)(l.A,{children:(0,w.jsx)(o.oz,{remarkPlugins:[h.A,u.A,g.A],components:B,rehypePlugins:[f.A,x.A],children:j})})})]})}},1746(e,t,n){n.d(t,{A:()=>s});var r=n(579);function s(e){return(0,r.jsxs)("div",{className:window.findProp("pages.home.mainStyle")+" page-intro",children:[(0,r.jsx)("h2",{style:{color:e.h1Color},children:e.h1}),(0,r.jsx)("p",{style:{color:e.pColor},children:e.p})]})}},6443(e,t,n){n.r(t),n.d(t,{default:()=>y});var r=n(5544),s=n(8628),a=n(4282),o=n(8602),l=n(3519),i=n(3083),c=n(1072),d=n(5394),p=n(184),h=n(5043),u=n(9889),f=n(1746),x=n(397),g=n(579);function m(e){const t=(0,h.useState)(!1),n=(0,r.A)(t,2),o=n[0],l=n[1],c=()=>l(!1);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(s.A.Link,{variant:"primary",onClick:()=>l(!0),children:(0,g.jsx)(p.__w,{})}),(0,g.jsxs)(i.A,{show:o,onHide:c,size:"xl","aria-labelledby":"contained-modal-title-vcenter",centered:!0,children:[(0,g.jsx)(i.A.Header,{closeButton:!0,children:(0,g.jsx)(i.A.Title,{children:e.title})}),(0,g.jsx)(i.A.Body,{style:{maxHeight:"calc(100vh - 210px)",overflowY:"auto"},children:(0,g.jsx)(u.A,{contentType:"swe",mdUrl:e.mdUrl})}),(0,g.jsx)(i.A.Footer,{children:(0,g.jsx)(a.A,{variant:"secondary",onClick:c,children:"Close"})})]})]})}function w(e){const t=e.name,n=e.desc,r=e.playUrl,a=e.githubUrl,o=e.mdUrl,l=e.type;return(0,g.jsxs)(s.A,{className:"h-100",style:{width:"100%"},children:[(0,g.jsxs)(s.A.Body,{children:[(0,g.jsx)(s.A.Title,{className:window.findProp("pages.home.mainStyle"),style:{color:window.findProp("pages.projects.titleColor")},children:t}),(0,g.jsx)(s.A.Text,{style:{color:window.findProp("pages.projects.bodyColor")},children:n}),(0,g.jsxs)(s.A.Text,{children:[window.findProp("pages.projects.techStack"),(()=>{const e=window.findProp("techStack.title."+l),t=window.findProp("techStack.iconColor."+l);switch(l){case"react":return(0,g.jsx)(p.rMV,{color:t,title:e});case"java":return(0,g.jsx)(p.ScZ,{color:t,title:e});case"rust":return(0,g.jsx)(p.gQx,{color:t,title:e});case"markdown":return(0,g.jsx)(p.teh,{color:t,title:e});case"python":return(0,g.jsx)(p.ivP,{color:t,title:e});case"javascript":return(0,g.jsx)(x.L40,{color:t,title:e});default:return(0,g.jsx)(g.Fragment,{})}})()]})]}),(0,g.jsx)(s.A.Footer,{className:"mt-auto",children:(0,g.jsxs)("div",{className:"d-flex flex-wrap gap-3 align-items-center",children:[r?(0,g.jsx)(s.A.Link,{href:r,target:"react"===l?"":"_blank",children:"react"===l?(0,g.jsx)(d.Jr$,{}):(0,g.jsx)(p.EQc,{})}):(0,g.jsx)(g.Fragment,{}),a?(0,g.jsx)(s.A.Link,{href:a,target:"react"===l?"":"_blank",children:(0,g.jsx)(p.hL4,{})}):(0,g.jsx)(g.Fragment,{}),o?(0,g.jsx)(m,{title:t,mdUrl:o}):(0,g.jsx)(g.Fragment,{})]})})]})}function y(){return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(l.A,{fluid:!0,children:[(0,g.jsx)(f.A,{h1:window.findProp("labels.projects"),p:window.findProp("pages.projects.intro"),h1Color:window.findProp("pages.projects.h1Color"),pColor:window.findProp("pages.projects.pColor")}),(0,g.jsx)(c.A,{xs:1,md:2,xl:3,className:"g-4",children:(window.findProp("projects")||[]).map(e=>(0,g.jsx)(o.A,{className:"d-flex",children:(0,g.jsx)(w,{name:e.name,desc:e.desc,playUrl:e.playUrl,githubUrl:e.githubUrl,mdUrl:e.mdUrl,type:e.type,iconColor:e.iconColor})},e.id))})]})})}},1616(e,t,n){n.d(t,{A:()=>i});var r=n(184),s=n(7196),a=n(8602),o=n(1072),l=n(579);function i(){return(0,l.jsx)(o.A,{children:(0,l.jsxs)(a.A,{children:[(0,l.jsx)("a",{className:"m-3 ms-0",href:"https://linkedin.com/in/palash90",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(r.QEs,{})}),(0,l.jsx)("a",{className:"m-3 ms-0",href:"https://www.youtube.com/@GuitaleleTutorials",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(r.Vk6,{})}),(0,l.jsx)("a",{className:"m-3 ms-0",href:"https://github.com/palash90",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(r.hL4,{})}),(0,l.jsx)("a",{className:"button m-3 ms-0",href:"mailto:connect@palashkantikundu.in",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(s.YDm,{})})]})})}},8320(e,t,n){n.d(t,{Z2:()=>a,ZF:()=>l,fb:()=>o});const r="content_",s=864e5;function a(e){try{const t=localStorage.getItem(r+e);if(!t)return null;const n=JSON.parse(t),s=n.data,a=n.expiry;return Date.now()>a?(localStorage.removeItem(r+e),null):s}catch(t){return null}}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;try{localStorage.setItem(r+e,JSON.stringify({data:t,expiry:Date.now()+n}))}catch(a){}}async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;const n=a(e);if(null!==n)return n;const r=function(e){const t=e.match(/^https:\/\/([^.]+)\.github\.io\/([^/]+)\/(.+)$/);return t?"https://raw.githubusercontent.com/".concat(t[1],"/").concat(t[2],"/main/").concat(t[3]):null}(e);try{const n=await fetch(e);if(!n.ok)throw new Error("Failed to fetch ".concat(e," (").concat(n.status," ").concat(n.statusText,")"));const r=await n.text();return o(e,r,t),r}catch(l){if(r)try{const n=await fetch(r);if(!n.ok)throw new Error("Failed to fetch ".concat(r," (").concat(n.status," ").concat(n.statusText,")"));const s=await n.text();return o(e,s,t),s}catch(i){throw new Error("Primary: ".concat(l.message," | Fallback: ").concat(i.message))}throw l}}}}]);
//# sourceMappingURL=443.8db39b1a.chunk.js.map