-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-category-index-tsx-38ade1cd1572b858a97c.js
1 lines (1 loc) · 14.3 KB
/
component---src-templates-category-index-tsx-38ade1cd1572b858a97c.js
1
(self.webpackChunkvsp_official_site=self.webpackChunkvsp_official_site||[]).push([[336],{3566:function(e){"use strict";var t=String.prototype.replace,r=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},1419:function(e,t,r){"use strict";var n=r(3620),o=r(8118),i=r(3566);e.exports={formats:i,parse:o,stringify:n}},8118:function(e,t,r){"use strict";var n=r(661),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),c=a?n.slice(0,a.index):n,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var s=0;null!==(a=i.exec(n))&&s<r.depth;){if(s+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+n.slice(a.index)+"]"),function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(i=[])[l]=n:i[c]=n:i={0:n}}n=i}return n}(l,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,s),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<u.length;++r)0===u[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[r]?p="utf-8":"utf8=%26%2310003%3B"===u[r]&&(p="iso-8859-1"),f=r,r=u.length);for(r=0;r<u.length;++r)if(r!==f){var d,m,y=u[r],h=y.indexOf("]="),b=-1===h?y.indexOf("="):h+1;-1===b?(d=t.decoder(y,i.decoder,p),m=t.strictNullHandling?null:""):(d=t.decoder(y.slice(0,b),i.decoder,p),m=t.decoder(y.slice(b+1),i.decoder,p)),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=a(m)),m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),o.call(c,d)?c[d]=n.combine(c[d],m):c[d]=m}return c}(e,r):e,s=r.plainObjects?Object.create(null):{},u=Object.keys(l),f=0;f<u.length;++f){var p=u[f],d=c(p,l[p],r);s=n.merge(s,d,r)}return n.compact(s)}},3620:function(e,t,r){"use strict";var n=r(661),o=r(3566),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,s=function(e,t){l.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,a,l,u,p,d,m,y,h,b){var v=t;if("function"==typeof u?v=u(r,v):v instanceof Date?v=m(v):"comma"===o&&c(v)&&(v=v.join(",")),null===v){if(i)return l&&!h?l(r,f.encoder,b):r;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||n.isBuffer(v))return l?[y(h?r:l(r,f.encoder,b))+"="+y(l(v,f.encoder,b))]:[y(r)+"="+y(String(v))];var g,O=[];if(void 0===v)return O;if(c(u))g=u;else{var j=Object.keys(v);g=p?j.sort(p):j}for(var w=0;w<g.length;++w){var E=g[w];a&&null===v[E]||(c(v)?s(O,e(v[E],"function"==typeof o?o(r,E):r,o,i,a,l,u,p,d,m,y,h,b)):s(O,e(v[E],r+(d?"."+E:"["+E+"]"),o,i,a,l,u,p,d,m,y,h,b)))}return O};e.exports=function(e,t){var r,n=e,l=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=f.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?n=(0,l.filter)("",n):c(l.filter)&&(r=l.filter);var u,d=[];if("object"!=typeof n||null===n)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[u];r||(r=Object.keys(n)),l.sort&&r.sort(l.sort);for(var y=0;y<r.length;++y){var h=r[y];l.skipNulls&&null===n[h]||s(d,p(n[h],h,m,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var b=d.join(l.delimiter),v=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},661:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],c=Object.keys(a),l=0;l<c.length;++l){var s=c[l],u=a[s];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:s}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r){if(0===e.length)return e;var o="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<o.length;++a){var c=o.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?i+=o.charAt(a):c<128?i+=n[c]:c<2048?i+=n[192|c>>6]+n[128|63&c]:c<55296||c>=57344?i+=n[224|c>>12]+n[128|c>>6&63]+n[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(a)),i+=n[240|c>>18]+n[128|c>>12&63]+n[128|c>>6&63]+n[128|63&c])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(n,i,a){if(!i)return n;if("object"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var c=n;return r(n)&&!r(i)&&(c=o(n,a)),r(n)&&r(i)?(i.forEach((function(r,o){if(t.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=e(i,r,a):n.push(r)}else n[o]=r})),n):Object.keys(i).reduce((function(r,n){var o=i[n];return t.call(r,n)?r[n]=e(r[n],o,a):r[n]=o,r}),c)}}},7082:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(7294),o=r(5444),i=r(5937);function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=function(e){var t=e.post,r=e.className,c=void 0===r?"":r;a(e,["post","className"]);return n.createElement(o.Link,{to:"".concat(t.category.slug,"/").concat(t.slug),className:"PostCard ".concat(c)},t.featuredImages[0]&&n.createElement("div",{className:"PostCard--Image relative"},n.createElement(i.Z,{background:!0,cmsImage:t.featuredImages[0],size:400})),n.createElement("div",{className:"PostCard--Content"},t.title&&n.createElement("h3",{className:"PostCard--Title"},t.title),t.description&&n.createElement("div",{className:"PostCard--Excerpt"},t.description)))};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,r,i,a=f(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),y(d(t=a.call(this,e)),"state",{limit:t.props.limit}),y(d(t),"increaseLimit",(function(){return t.setState((function(e){return{limit:e.limit+t.props.perPageLimit}}))})),t.state.limit=e.limit,t}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.slug,r=e.title,i=e.description,a=e.showLoadMore,l=e.showHeader,s=e.loadMoreTitle,u=e.posts,f=this.state.limit,p=u.slice(0,f||u.length);return n.createElement("div",{className:"PostSection"},l&&n.createElement("div",{className:"PostSection--Header"},n.createElement("div",{className:"PostSection--TitleBlock"},r&&n.createElement("h2",{className:"PostSection--Title"},r),i&&n.createElement("h3",{className:"PostSection--Description"},i)),n.createElement("div",{className:"PostSection--ListLink"},n.createElement(o.Link,{to:t},"一覧"))),!!p.length&&n.createElement("div",{className:"PostSection--Grid"},p.map((function(e,t){return n.createElement(c,{post:e,key:e.id})}))),a&&p.length<u.length&&n.createElement("div",{className:"taCenter"},n.createElement("button",{className:"button",onClick:this.increaseLimit},s)))}}])&&s(t.prototype,r),i&&s(t,i),l}(n.Component);y(h,"defaultProps",{posts:[],limit:12,showLoadMore:!0,showHeader:!1,loadMoreTitle:"Load More",perPageLimit:12});var b=h},78:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r(7294),o=r(6630),i=r(1419),a=r(9499),c=r(7082),l=function(e){var t=e.posts,r=void 0===t?[]:t,o=e.enableSearch,l=void 0===o||o;return n.createElement(a.Location,null,(function(e){var t=e.location,o=r,a=t.search.replace("?","");if(a=i.parse(a),l&&a.s){var s=a.s.toLowerCase();o=o.filter((function(e){return e.title.toLowerCase().includes(s)}))}return n.createElement("main",{className:"Blog"},!!r.length&&n.createElement("section",{className:"section"},n.createElement("div",{className:"container"},n.createElement(c.Z,{posts:o}))))}))},s=function(e){var t=e.data.cms.category;return n.createElement(o.Z,{title:t.title,subtitle:t.subtitle,featuredImages:t.featuredImages,size:"large",breads:new Array({title:t.title,link:null})},n.createElement(l,t))}}}]);