ordering-ui-external 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/_bundles/0.ordering-ui.f9c3deec77a8e21645ed.js +1 -0
  2. package/_bundles/{1.ordering-ui.8b7044a2b34939a44465.js → 1.ordering-ui.f9c3deec77a8e21645ed.js} +1 -1
  3. package/_bundles/{2.ordering-ui.8b7044a2b34939a44465.js → 2.ordering-ui.f9c3deec77a8e21645ed.js} +1 -1
  4. package/_bundles/{4.ordering-ui.8b7044a2b34939a44465.js → 4.ordering-ui.f9c3deec77a8e21645ed.js} +1 -1
  5. package/_bundles/{5.ordering-ui.8b7044a2b34939a44465.js → 5.ordering-ui.f9c3deec77a8e21645ed.js} +1 -1
  6. package/_bundles/{6.ordering-ui.8b7044a2b34939a44465.js → 6.ordering-ui.f9c3deec77a8e21645ed.js} +1 -1
  7. package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js → 7.ordering-ui.f9c3deec77a8e21645ed.js} +2 -2
  8. package/_bundles/{7.ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → 7.ordering-ui.f9c3deec77a8e21645ed.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.8b7044a2b34939a44465.js → 8.ordering-ui.f9c3deec77a8e21645ed.js} +1 -1
  10. package/_bundles/{9.ordering-ui.8b7044a2b34939a44465.js → 9.ordering-ui.f9c3deec77a8e21645ed.js} +1 -1
  11. package/_bundles/ordering-ui.f9c3deec77a8e21645ed.js +2 -0
  12. package/_bundles/{ordering-ui.8b7044a2b34939a44465.js.LICENSE.txt → ordering-ui.f9c3deec77a8e21645ed.js.LICENSE.txt} +0 -0
  13. package/_modules/themes/five/src/components/Footer/styles.js +1 -1
  14. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +1 -1
  15. package/_modules/themes/five/src/components/MomentControl/index.js +4 -2
  16. package/package.json +1 -1
  17. package/src/themes/five/src/components/Footer/styles.js +1 -5
  18. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +1 -1
  19. package/src/themes/five/src/components/MomentControl/index.js +3 -2
  20. package/_bundles/0.ordering-ui.8b7044a2b34939a44465.js +0 -1
  21. package/_bundles/ordering-ui.8b7044a2b34939a44465.js +0 -2
@@ -10,7 +10,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n\n @media (min-width: 768px) {\n display: block;\n }\n"])));
13
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
14
14
  exports.Container = Container;
15
15
  var FooterWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n width: 100%;\n flex-wrap: wrap;\n flex-direction: column;\n border-bottom: 1px solid #d9d9d9;\n\n @media (min-width: 768px) {\n flex-direction: row;\n justify-content: flex-start;\n }\n"])));
16
16
  exports.FooterWrapper = FooterWrapper;
@@ -129,7 +129,7 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
129
129
  };
130
130
  }, []);
131
131
  return /*#__PURE__*/_react.default.createElement(_styles.HeroContainer, {
132
- mb: !auth && '30vh',
132
+ mb: !auth && isShowLoginAccount && '30vh',
133
133
  bgimage: bgImg || (windowSize.width < 576 ? (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$general = _theme$images.general) === null || _theme$images$general === void 0 ? void 0 : _theme$images$general.homeHeroMobile : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$genera = _theme$images2.general) === null || _theme$images2$genera === void 0 ? void 0 : _theme$images2$genera.homeHero),
134
134
  isFullScreen: isFullScreen
135
135
  }, /*#__PURE__*/_react.default.createElement(_styles.ContentWrapper, null, windowSize.width < 576 && /*#__PURE__*/_react.default.createElement(_styles.LogoWrapper, null, /*#__PURE__*/_react.default.createElement("img", {
@@ -20,6 +20,7 @@ var _react2 = require("swiper/react");
20
20
  var _swiper = _interopRequireWildcard(require("swiper"));
21
21
  require("swiper/swiper-bundle.min.css");
22
22
  require("swiper/swiper.min.css");
23
+ var _utils = require("../../../../../utils");
23
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
25
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -90,10 +91,11 @@ var MomentControlUI = function MomentControlUI(props) {
90
91
  setIsEnabled(schedule[day].enabled);
91
92
  };
92
93
  var getTimes = function getTimes(curdate, schedule) {
94
+ var _curdate$split;
93
95
  validateSelectedDate(curdate, schedule);
94
- var dateParts = curdate.split('-');
96
+ var dateParts = curdate === null || curdate === void 0 ? void 0 : (_curdate$split = curdate.split) === null || _curdate$split === void 0 ? void 0 : _curdate$split.call(curdate, '-');
95
97
  var dateSeleted = new Date(dateParts[0], dateParts[1] - 1, dateParts[2]);
96
- var times = getTimes(dateSeleted, schedule, is12hours);
98
+ var times = (0, _utils.getTimes)(dateSeleted, schedule, is12hours);
97
99
  return times;
98
100
  };
99
101
  var setLocalMoment = function setLocalMoment() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -1,11 +1,7 @@
1
1
  import styled, { css } from 'styled-components'
2
2
 
3
3
  export const Container = styled.div`
4
- display: none;
5
-
6
- @media (min-width: 768px) {
7
- display: block;
8
- }
4
+ position: relative;
9
5
  `
10
6
 
11
7
  export const FooterWrapper = styled.div`
@@ -93,7 +93,7 @@ export const OriginalHomeHero = (props) => {
93
93
 
94
94
  return (
95
95
  <HeroContainer
96
- mb={!auth && '30vh'}
96
+ mb={!auth && isShowLoginAccount && '30vh'}
97
97
  bgimage={bgImg || (windowSize.width < 576
98
98
  ? theme.images?.general?.homeHeroMobile
99
99
  : theme.images?.general?.homeHero)}
@@ -36,6 +36,7 @@ import SwiperCore, {
36
36
  } from 'swiper'
37
37
  import 'swiper/swiper-bundle.min.css'
38
38
  import 'swiper/swiper.min.css'
39
+ import { getTimes as getTimesUtils } from '../../../../../utils'
39
40
 
40
41
  SwiperCore.use([Navigation])
41
42
 
@@ -78,9 +79,9 @@ const MomentControlUI = (props) => {
78
79
 
79
80
  const getTimes = (curdate, schedule) => {
80
81
  validateSelectedDate(curdate, schedule)
81
- const dateParts = curdate.split('-')
82
+ const dateParts = curdate?.split?.('-')
82
83
  const dateSeleted = new Date(dateParts[0], dateParts[1] - 1, dateParts[2])
83
- const times = getTimes(dateSeleted, schedule, is12hours)
84
+ const times = getTimesUtils(dateSeleted, schedule, is12hours)
84
85
  return times
85
86
  }
86
87
 
@@ -1 +0,0 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[0],{598:function(t,n,e){"use strict";function i(t,n){var e,i;return"boolean"==typeof(null==n?void 0:n.enabled)?n.enabled:null===(i=null===(e=null==t?void 0:t.__default)||void 0===e?void 0:e.enabled)||void 0===i||i}e.d(n,"a",(function(){return i}))},702:function(t,n,e){"use strict";e.r(n),e.d(n,"LegacyDestination",(function(){return w})),e.d(n,"ajsDestinations",(function(){return _}));var i=e(3),o=e(55),r=e(46),a=e(18),s=e(101),c=e(64),u=e(63),d=e(598),l=e(190),h=e(195),v=e(47),f=e(69),b=e(191),p=e(86),g=e(106);function y(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function j(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function m(t,n,e,o,r,a){return Object(i.b)(this,void 0,void 0,(function(){var s,c,u,d,l,h,v,f;return Object(i.d)(this,(function(b){switch(b.label){case 0:s=y(e),c=j(s,a),u=Object(p.b)(),d="".concat(u,"/integrations/").concat(null!=c?c:s,"/").concat(o,"/").concat(null!=c?c:s,".dynamic.js.gz"),b.label=1;case 1:return b.trys.push([1,3,,4]),[4,Object(g.a)(d)];case 2:return b.sent(),function(t,n,e){var o,r;try{var a=(null!==(r=null===(o=null===window||void 0===window?void 0:window.performance)||void 0===o?void 0:o.getEntriesByName(t,"resource"))&&void 0!==r?r:[])[0];a&&n.stats.gauge("legacy_destination_time",Math.round(a.duration),Object(i.f)([e],a.duration<100?["cached"]:[],!0))}catch(t){}}(d,t,e),[3,4];case 3:throw l=b.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(e),"failed"]),l;case 4:return h=window["".concat(s,"Deps")],[4,Promise.all(h.map((function(t){return Object(g.a)(u+t+".gz")})))];case 5:return b.sent(),window["".concat(s,"Loader")](),(v=window["".concat(s,"Integration")]).Integration&&(v({user:function(){return n.user()},addIntegration:function(){}}),v=v.Integration),(f=new v(r)).analytics=n,[2,f]}}))}))}function O(t,n){return Object(i.b)(this,void 0,void 0,(function(){var e,o=this;return Object(i.d)(this,(function(s){switch(s.label){case 0:return e=[],Object(r.a)()?[2,n]:[4,Object(h.a)((function(){return n.length>0&&Object(r.b)()}),(function(){return Object(i.b)(o,void 0,void 0,(function(){var o,r;return Object(i.d)(this,(function(i){switch(i.label){case 0:return(o=n.pop())?[4,Object(c.a)(o,t)]:[2];case 1:return r=i.sent(),r instanceof a.a||e.push(o),[2]}}))}))}))];case 1:return s.sent(),e.map((function(t){return n.pushWithBackoff(t)})),[2,n]}}))}))}var w=function(){function t(t,n,e,o){void 0===e&&(e={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=Object(i.a)({},e),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=o,this.buffer=o.disableClientPersistence?new v.b(4,[]):new f.a(4,"dest-".concat(t)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return this._ready},t.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},t.prototype.load=function(t,n){return Object(i.b)(this,void 0,void 0,(function(){var e,o=this;return Object(i.d)(this,(function(i){switch(i.label){case 0:return this._ready||void 0!==this.onReady?[2]:(e=this,[4,m(t,n,this.name,this.version,this.settings,this.options.obfuscate)]);case 1:e.integration=i.sent(),this.onReady=new Promise((function(t){o.integration.once("ready",(function(){o._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){o.integration.on("initialize",(function(){o._initialized=!0,t(!0)}))}));try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(n){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),n}return[2]}}))}))},t.prototype.unload=function(t,n){return function(t,n,e){return Object(i.b)(this,void 0,void 0,(function(){var o,r,a,s;return Object(i.d)(this,(function(i){return o=Object(p.b)(),r=y(t),a=j(t,e),s="".concat(o,"/integrations/").concat(null!=a?a:r,"/").concat(n,"/").concat(null!=a?a:r,".dynamic.js.gz"),[2,Object(g.b)(s)]}))}))}(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this.middleware=(t=this.middleware).concat.apply(t,n)},t.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(Object(r.a)()||!1===this._ready||!1===this._initialized)},t.prototype.send=function(t,n,e){var o,r;return Object(i.b)(this,void 0,void 0,(function(){var s,c,l,h,v,f;return Object(i.d)(this,(function(p){switch(p.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(s=null===(r=null===(o=this.options)||void 0===o?void 0:o.plan)||void 0===r?void 0:r.track,c=t.event.event,s&&c&&"Segment.io"!==this.name){if(l=s[c],!Object(d.a)(s,l))return t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new a.b({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if(t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),null==l?void 0:l.integrations)),(null==l?void 0:l.enabled)&&!1===(null==l?void 0:l.integrations[this.name]))return t.cancel(new a.b({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,Object(b.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:if(null===(h=p.sent()))return[2,t];v=new n(h,{traverse:!this.disableAutoISOConversion}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(e),"integration_name:".concat(this.name)]),p.label=2;case 2:return p.trys.push([2,5,,6]),this.integration?[4,Object(u.a)(this.integration.invoke.call(this.integration,e,v))]:[3,4];case 3:p.sent(),p.label=4;case 4:return[3,6];case 5:throw f=p.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(e),"integration_name:".concat(this.name)]),f;case 6:return[2,t]}}))}))},t.prototype.track=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,o.Track,"track")]}))}))},t.prototype.page=function(t){var n;return Object(i.b)(this,void 0,void 0,(function(){var e=this;return Object(i.d)(this,(function(i){return(null===(n=this.integration)||void 0===n?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return e.send(t,o.Page,"page")}))]}))}))},t.prototype.identify=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,o.Identify,"identify")]}))}))},t.prototype.alias=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,o.Alias,"alias")]}))}))},t.prototype.group=function(t){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return[2,this.send(t,o.Group,"group")]}))}))},t.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout((function(){return Object(i.b)(t,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,O(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},t}();function _(t,n,e,i){var o,r;if(void 0===n&&(n={}),void 0===e&&(e={}),Object(s.b)())return[];t.plan&&((e=null!=e?e:{}).plan=t.plan);var a=null!==(r=null===(o=t.middlewareSettings)||void 0===o?void 0:o.routingRules)&&void 0!==r?r:[],c=Object(l.a)(t,null!=e?e:{});return Object.entries(t.integrations).map((function(t){var o,r=t[0],s=t[1];if(!r.startsWith("Segment")){var u=!1===n.All&&void 0===n[r];if(!1!==n[r]&&!u){var d=s.type,l=s.bundlingStatus,h=s.versionSettings;if(("unbundled"!==l&&("browser"===d||(null===(o=null==h?void 0:h.componentTypes)||void 0===o?void 0:o.includes("browser")))||"Segment.io"===r)&&"Iterable"!==r){var v=function(t){var n,e,i,o;return null!==(o=null!==(e=null===(n=t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==e?e:null===(i=t.versionSettings)||void 0===i?void 0:i.version)&&void 0!==o?o:"latest"}(s),f=new w(r,v,c[r],e);return a.filter((function(t){return t.destinationName===r})).length>0&&i&&f.addMiddleware(i),f}}}})).filter((function(t){return void 0!==t}))}}}]);