-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomponent---src-pages-notes-js-6d81232672cad78fa646.js
1 lines (1 loc) · 5.55 KB
/
component---src-pages-notes-js-6d81232672cad78fa646.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"4Hsf":function(t,e,o){"use strict";function n(t){if(null==t)return console.log("The string you passed to LatToPerNumbers was undefined!"),"";"string"!=typeof t&&(t=t.toString());for(var e=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],o=0;o<10;o++)if(t.indexOf(o.toString())>-1){var n=new RegExp(o,"g");t=t.replace(n,e[o])}return t}o.d(e,"a",(function(){return n}))},DrOW:function(t,e,o){"use strict";var n=o("q1tI"),r=o("vOnD").a.span.withConfig({displayName:"plusIcon__PlusIconEl",componentId:"sc-16x6vxh-0"})(["position:relative;width:18px;height:18px;border:1px solid ",';margin:0 10px;float:right;margin-top:2px;&:before,&:after{content:"";position:absolute;background-color:',";transition:transform 0.25s ease-out;}&:before{top:0;left:50%;width:2px;height:100%;margin-left:-1px;}&:after{top:50%;left:0;width:100%;height:2px;margin-top:-1px;}&.open{&:before{transform:rotate(90deg);}&:after{transform:rotate(180deg);}}"],(function(t){return t.color}),(function(t){return t.color}));e.a=function(t){var e=t.className,o=t.open,i=t.color;return n.createElement(r,{className:e+" "+(o?"open":""),color:i})}},FWeN:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return u}));var n=o("q1tI"),r=o.n(n),i=o("vOnD"),a=o("Wbzz"),l=o("dWT2"),s=o("6d1X"),c=o("UH9S"),d=i.a.div.withConfig({displayName:"notes__NotesEl",componentId:"sc-11wmvsh-0"})(['direction:rtl;counter-reset:hrcounter 1;line-height:1.7rem;color:var(--font-color);#notes-desc{padding-top:30px;}h3{display:block;padding-top:3.8rem;padding-bottom:12px;text-align:center;}.note-title{display:flex;align-items:center;justify-content:center;line-height:26px;padding-top:3.8rem;padding-bottom:12px;font-size:18px;font-weight:700;}.ref{text-align:center !important;letter-spacing:2px;color:var(--ref-color);clear:both;font-size:14px;line-height:21px;}.english,.french,.other{direction:ltr;}.french.tr{color:var(--french-tr);float:left;}.other.tr{color:var(--other-tr);float:left;}.english.tr{color:var(--english-tr);float:left;}.persian.tr{color:var(--persian-tr);}.two-column{margin:0 auto;}p{padding:.5rem;}code{font-family:"sahel";white-space:pre;word-wrap:normal;padding:1px 6px 1px 4px;color:var(--ref-color,#696969);background-color:rgba(27,31,35,.12);border-radius:3px;font-size:1rem;font-style:italic;}a{color:var(--list-color,#1c11ee);}hr{text-align:center;margin:1.5rem 0 0;&:first-child{display:none;}&:before{content:counter(hrcounter);counter-increment:hrcounter;background-color:var(--background-color,#f4f4f1);position:absolute;margin-top:-11px;padding:0 5px;font-size:14px;}}']);function u(){for(var t,e,o,n,i,u,p=Object(a.useStaticQuery)("877063"),f=null!==(t=null==p||null===(e=p.allFile)||void 0===e||null===(o=e.edges[0])||void 0===o||null===(n=o.node)||void 0===n||null===(i=n.childMarkdownRemark)||void 0===i?void 0:i.html)&&void 0!==t?t:"",m=/<h3>(.*?)<\/h3>/gi,g=[],h=1;u=m.exec(f);)g.push({title:u[1],anchorTitle:"note-"+h}),f=f.replace(u[0],'<div class="note-title" id="note-'+h+++'">'+u[1]+'<a class="circled-triangle" href="#notes-desc" title="برگشت به بالای صفحه"></a></div>');return r.a.createElement(c.a,null,r.a.createElement(d,null,r.a.createElement(s.a,{pageMeta:{title:"My notes",description:"My notes from books - یادداشتهای من از کتابهای مختلف",tags:"یادداشت,کتاب,شعر",slug:"notes",lang:"fa"},isBlogPost:!1}),r.a.createElement("div",{id:"notes-desc"},"کتابهایی خواندهام و یادداشتهایی از آنها نگاه داشتهام. جملات زیر، برخی از آن یادداشتهاست. مطالب جدیدتر را هربار به بالای صفحه اضافه میکنم."),r.a.createElement(l.a,{title:"فهرست یادداشتها",list:g}),r.a.createElement("div",{dangerouslySetInnerHTML:{__html:f}})))}},dWT2:function(t,e,o){"use strict";var n=o("q1tI"),r=o("vOnD"),i=o("DrOW"),a=o("4Hsf"),l=r.a.div.withConfig({displayName:"listOfTitles__ListOfTitlesEl",componentId:"sc-ihoqj3-0"})(["margin-top:1.5rem;border-radius:5px;background-color:var(--list-of-titles-bg);@media screen and (max-width:520px){font-size:14px;margin-bottom:1rem;}@media print{display:none;}.list-title{padding:10px 15px;background-color:#615a5a;color:#f5f5f5;border-radius:5px;border-bottom-left-radius:",";border-bottom-right-radius:",";text-align:center;}.list-body{columns:2;-webkit-columns:2;-moz-columns:2;color:#212121;padding:10px;font-size:14px;@media screen and (min-width:677px){columns:",";-webkit-columns:",";-moz-columns:",";}@media screen and (min-width:870px){columns:",";-webkit-columns:",";-moz-columns:",";}.list-item{line-height:26px;display:block;color:var(--list-color);text-decoration:none;}}"],(function(t){return t.showList?"0":"5px"}),(function(t){return t.showList?"0":"5px"}),(function(t){return t.isBooks?"3":"4"}),(function(t){return t.isBooks?"3":"4"}),(function(t){return t.isBooks?"3":"4"}),(function(t){return t.isBooks?"4":"6"}),(function(t){return t.isBooks?"4":"6"}),(function(t){return t.isBooks?"4":"6"}));e.a=function(t){var e=t.list,o=t.title,r=t.isBooks,s=n.useState(!0),c=s[0],d=s[1],u=e.map((function(t,e){return n.createElement("a",{className:"list-item",key:"list-item-"+e,href:"#"+t.anchorTitle},Object(a.a)(e+1)+". "+t.title)})),p=function(t){d(!c)};return n.createElement(l,{isBooks:r,showList:c},n.createElement("div",{className:"list-title cursor-pointer no-focus-active-outline",onClick:p,onKeyDown:p,tabIndex:0,role:"button","aria-label":"Toggle the list"},o," ",n.createElement(i.a,{open:c,color:"#f5f5f5"})),c&&n.createElement("div",{className:"list-body"},u))}}}]);