UNPKG

react-period-of-stay-input

Version:

React.js component for entering a period of stay in a hotel: check-in + check-out date

1 lines 1.46 kB
{"id":"9Wpo","dependencies":[{"name":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/tsconfig.json","includedInParent":true,"mtime":1534170011206},{"name":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/package.json","includedInParent":true,"mtime":1534170011202},{"name":"moment","loc":{"line":10,"column":34},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/Day.ts","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/moment/moment.js"}],"generated":{"js":"\"use strict\";var t=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r.default=t,r};Object.defineProperty(exports,\"__esModule\",{value:!0});var r=t(require(\"moment\"));function e(t){return/^\\d{4}-\\d{2}-\\d{2}$/.test(t)&&r.utc(t,exports.FORMAT).isValid()}exports.FORMAT=\"YYYY-MM-DD\";var n=function(){function t(t){if(\"string\"==typeof t){if(!e(t))throw new Error(t+\" isn't a valid ISO 8601 date literal\");this.stringValue=t}else this.stringValue=t.format(exports.FORMAT)}return t.prototype.toString=function(){return this.stringValue},t.prototype.toMoment=function(){return r.utc(this.stringValue)},t.prototype.next=function(){return new t(this.toMoment().add(1,\"days\"))},t.prototype.previous=function(){return new t(this.toMoment().subtract(1,\"days\"))},t}();exports.default=n;"},"hash":"fdb065a15b059413013fbd23f1872956","cacheData":{"env":{}}}