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 • 3.47 kB
JSON
{"id":"cywG","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":"react","loc":{"line":26,"column":33},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/demo.tsx","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react/index.js"},{"name":"react-dom","loc":{"line":27,"column":36},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/demo.tsx","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-dom/index.js"},{"name":"insert-css","loc":{"line":28,"column":43},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/demo.tsx","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/insert-css/index.js"},{"name":"react-intl","loc":{"line":29,"column":27},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/demo.tsx","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/lib/index.es.js"},{"name":"react-intl/locale-data/de","loc":{"line":30,"column":35},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/demo.tsx","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/react-intl/locale-data/de.js"},{"name":"moment/locale/de-ch","loc":{"line":31,"column":8},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/demo.tsx","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/node_modules/moment/locale/de-ch.js"},{"name":"./index","loc":{"line":32,"column":22},"parent":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/demo.tsx","resolved":"/home/ikr/prj/stc-b2b/react-period-of-stay-input/src/index.ts"}],"generated":{"js":"\"use strict\";var e=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,\"__esModule\",{value:!0});var n=t(require(\"react\")),o=t(require(\"react-dom\")),a=r(require(\"insert-css\")),i=require(\"react-intl\"),u=r(require(\"react-intl/locale-data/de\"));require(\"moment/locale/de-ch\");var l=require(\"./index\");i.addLocaleData(u.default);var c=new l.Environment(l.ZeroNightsPolicy.ALLOW,new l.Day(\"1979-11-16\")),s=l.isInputTypeDateSupported(),d=function(t){function r(e){var r=t.call(this,e)||this;return r.state={model:new l.Model(new l.Day(\"1979-11-16\"),new l.Day(\"1979-11-17\"))},r}return e(r,t),r.prototype.render=function(){var e=this;return n.createElement(i.IntlProvider,{locale:\"de\",messages:l.intlMessages().de},n.createElement(l.PeriodOfStayInput,{useInputTypeDate:s,locale:l.Locale.DE,environment:c,model:this.state.model,onChange:function(t){e.setState({model:t})}}))},r}(n.Component);a.default(l.css),o.render(n.createElement(d,null),document.getElementById(\"root\"));"},"hash":"ccfc687c9a0d57f3404bc58f4ee69703","cacheData":{"env":{}}}