ordering-ui-external 2.6.7 → 2.7.0

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 (112) hide show
  1. package/_bundles/0.ordering-ui.0a58ae9fc1a4bce64c6e.js +1 -0
  2. package/_bundles/{1.ordering-ui.fd1dc326de89a8eb39f9.js → 1.ordering-ui.0a58ae9fc1a4bce64c6e.js} +1 -1
  3. package/_bundles/4.ordering-ui.0a58ae9fc1a4bce64c6e.js +1 -0
  4. package/_bundles/{5.ordering-ui.fd1dc326de89a8eb39f9.js → 5.ordering-ui.0a58ae9fc1a4bce64c6e.js} +1 -1
  5. package/_bundles/{6.ordering-ui.fd1dc326de89a8eb39f9.js → 6.ordering-ui.0a58ae9fc1a4bce64c6e.js} +1 -1
  6. package/_bundles/{7.ordering-ui.fd1dc326de89a8eb39f9.js → 7.ordering-ui.0a58ae9fc1a4bce64c6e.js} +2 -2
  7. package/_bundles/ordering-ui.0a58ae9fc1a4bce64c6e.js +2 -0
  8. package/_modules/components/LanguageSelector/index.js +1 -0
  9. package/_modules/components/OrderTypeSelectorHeader/index.js +3 -1
  10. package/_modules/components/SmartAppBanner/index.js +5 -2
  11. package/_modules/contexts/ThemeContext/index.js +1 -1
  12. package/_modules/styles/Select/index.js +14 -2
  13. package/_modules/styles/Selects/index.js +11 -8
  14. package/_modules/themes/five/index.js +21 -0
  15. package/_modules/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +168 -0
  16. package/_modules/themes/five/src/components/BusinessBasicInformation/SearchComponent.js +39 -0
  17. package/_modules/themes/five/src/components/BusinessBasicInformation/SocialNetWork.js +19 -0
  18. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +35 -156
  19. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +45 -35
  20. package/_modules/themes/five/src/components/BusinessController/index.js +6 -2
  21. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +1 -1
  22. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +5 -4
  23. package/_modules/themes/five/src/components/CardForm/index.js +16 -3
  24. package/_modules/themes/five/src/components/CardForm/styles.js +13 -9
  25. package/_modules/themes/five/src/components/CardFormCustom/cardUtils.js +102 -0
  26. package/_modules/themes/five/src/components/CardFormCustom/index.js +148 -0
  27. package/_modules/themes/five/src/components/CardFormCustom/styles.js +16 -0
  28. package/_modules/themes/five/src/components/Cart/index.js +1 -1
  29. package/_modules/themes/five/src/components/CartPopover/styles.js +1 -1
  30. package/_modules/themes/five/src/components/Checkout/index.js +41 -27
  31. package/_modules/themes/five/src/components/Header/index.js +10 -4
  32. package/_modules/themes/five/src/components/LanguageSelector/index.js +4 -1
  33. package/_modules/themes/five/src/components/LoginForm/index.js +11 -8
  34. package/_modules/themes/five/src/components/Modal/styles.js +1 -1
  35. package/_modules/themes/five/src/components/OrderContextUI/index.js +13 -1
  36. package/_modules/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
  37. package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +18 -8
  38. package/_modules/themes/five/src/components/OrderDetails/OrderHistory.js +7 -3
  39. package/_modules/themes/five/src/components/OrderDetails/index.js +4 -2
  40. package/_modules/themes/five/src/components/PaymentOptionCard/index.js +84 -0
  41. package/_modules/themes/five/src/components/PaymentOptionStripe/index.js +48 -22
  42. package/_modules/themes/five/src/components/PaymentOptionStripe/styles.js +3 -1
  43. package/_modules/themes/five/src/components/PaymentOptions/index.js +46 -24
  44. package/_modules/themes/five/src/components/ProductForm/styles.js +1 -1
  45. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +2 -2
  46. package/_modules/themes/five/src/components/SearchProducts/styles.js +1 -1
  47. package/_modules/themes/five/src/components/UserDetails/index.js +1 -1
  48. package/_modules/themes/five/src/components/UserPopover/styles.js +1 -1
  49. package/_modules/themes/five/src/styles/Select/index.js +4 -2
  50. package/_modules/themes/five/src/styles/Selects/index.js +7 -4
  51. package/_modules/themes/pwa/src/components/MomentPopover/styles.js +1 -1
  52. package/index.html +1 -1
  53. package/package.json +4 -2
  54. package/src/components/LanguageSelector/index.js +1 -0
  55. package/src/components/OrderTypeSelectorHeader/index.js +3 -1
  56. package/src/components/SmartAppBanner/index.js +4 -2
  57. package/src/contexts/ThemeContext/index.js +1 -1
  58. package/src/styles/Select/index.js +11 -2
  59. package/src/styles/Selects/index.js +1 -1
  60. package/src/themes/five/index.js +6 -0
  61. package/src/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +230 -0
  62. package/src/themes/five/src/components/BusinessBasicInformation/SearchComponent.js +40 -0
  63. package/src/themes/five/src/components/BusinessBasicInformation/SocialNetWork.js +10 -0
  64. package/src/themes/five/src/components/BusinessBasicInformation/index.js +39 -247
  65. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +14 -4
  66. package/src/themes/five/src/components/BusinessController/index.js +2 -2
  67. package/src/themes/five/src/components/BusinessProductsCategories/index.js +1 -1
  68. package/src/themes/five/src/components/BusinessProductsListing/index.js +5 -4
  69. package/src/themes/five/src/components/CardForm/index.js +25 -4
  70. package/src/themes/five/src/components/CardForm/styles.js +35 -0
  71. package/src/themes/five/src/components/CardFormCustom/cardUtils.js +111 -0
  72. package/src/themes/five/src/components/CardFormCustom/index.js +161 -0
  73. package/src/themes/five/src/components/CardFormCustom/styles.js +20 -0
  74. package/src/themes/five/src/components/Cart/index.js +1 -1
  75. package/src/themes/five/src/components/CartPopover/styles.js +1 -1
  76. package/src/themes/five/src/components/Checkout/index.js +42 -30
  77. package/src/themes/five/src/components/Header/index.js +9 -4
  78. package/src/themes/five/src/components/LanguageSelector/index.js +2 -1
  79. package/src/themes/five/src/components/LoginForm/index.js +6 -4
  80. package/src/themes/five/src/components/Modal/styles.js +1 -0
  81. package/src/themes/five/src/components/OrderContextUI/index.js +10 -3
  82. package/src/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
  83. package/src/themes/five/src/components/OrderDetails/OrderEta.js +21 -9
  84. package/src/themes/five/src/components/OrderDetails/OrderHistory.js +4 -3
  85. package/src/themes/five/src/components/OrderDetails/index.js +1 -1
  86. package/src/themes/five/src/components/PaymentOptionCard/index.js +70 -0
  87. package/src/themes/five/src/components/PaymentOptionStripe/index.js +46 -20
  88. package/src/themes/five/src/components/PaymentOptionStripe/styles.js +6 -1
  89. package/src/themes/five/src/components/PaymentOptions/index.js +28 -3
  90. package/src/themes/five/src/components/ProductForm/index.js +0 -1
  91. package/src/themes/five/src/components/ProductForm/styles.js +1 -1
  92. package/src/themes/five/src/components/RenderProductsLayout/index.js +2 -2
  93. package/src/themes/five/src/components/SearchProducts/styles.js +1 -1
  94. package/src/themes/five/src/components/UserDetails/index.js +1 -1
  95. package/src/themes/five/src/components/UserPopover/styles.js +1 -1
  96. package/src/themes/five/src/styles/Select/index.js +3 -2
  97. package/src/themes/five/src/styles/Selects/index.js +1 -1
  98. package/src/themes/pwa/src/components/MomentPopover/styles.js +4 -1
  99. package/template/app.js +13 -7
  100. package/template/pages/BusinessProductsList/index.js +4 -3
  101. package/template/pages/BusinessesList/index.js +2 -1
  102. package/template/pages/Checkout/index.js +1 -0
  103. package/template/pages/MyOrders/index.js +1 -0
  104. package/template/theme.json +3 -1
  105. package/_bundles/0.ordering-ui.fd1dc326de89a8eb39f9.js +0 -1
  106. package/_bundles/4.ordering-ui.fd1dc326de89a8eb39f9.js +0 -1
  107. package/_bundles/ordering-ui.fd1dc326de89a8eb39f9.js +0 -2
  108. /package/_bundles/{2.ordering-ui.fd1dc326de89a8eb39f9.js → 2.ordering-ui.0a58ae9fc1a4bce64c6e.js} +0 -0
  109. /package/_bundles/{7.ordering-ui.fd1dc326de89a8eb39f9.js.LICENSE.txt → 7.ordering-ui.0a58ae9fc1a4bce64c6e.js.LICENSE.txt} +0 -0
  110. /package/_bundles/{8.ordering-ui.fd1dc326de89a8eb39f9.js → 8.ordering-ui.0a58ae9fc1a4bce64c6e.js} +0 -0
  111. /package/_bundles/{9.ordering-ui.fd1dc326de89a8eb39f9.js → 9.ordering-ui.0a58ae9fc1a4bce64c6e.js} +0 -0
  112. /package/_bundles/{ordering-ui.fd1dc326de89a8eb39f9.js.LICENSE.txt → ordering-ui.0a58ae9fc1a4bce64c6e.js.LICENSE.txt} +0 -0
package/template/app.js CHANGED
@@ -110,6 +110,9 @@ export const App = () => {
110
110
  reviewStatus: { trigger: false, order: false, product: false, driver: false },
111
111
  reviewed: { isOrderReviewed: false, isProductReviewed: false, isDriverReviewed: false }
112
112
  })
113
+ const [oneSignalState, setOneSignalState] = useState({
114
+ notification_app: settings.notification_app
115
+ })
113
116
  const unaddressedTypes = configs?.unaddressed_order_types_allowed?.value.split('|').map(value => Number(value)) || []
114
117
  const isAllowUnaddressOrderType = unaddressedTypes.includes(orderStatus?.options?.type)
115
118
  const isShowReviewsPopupEnabled = configs?.show_reviews_popups_enabled?.value === '1'
@@ -169,12 +172,13 @@ export const App = () => {
169
172
 
170
173
  const businessesSlug = {
171
174
  marketplace: 'marketplace',
172
- kiosk: settings?.businessSlug
175
+ kiosk: settings?.businessSlug,
176
+ business: settings?.businessSlug
173
177
  }
174
178
 
175
179
  const singleBusinessConfig = {
176
- isActive: settings?.use_marketplace || isKioskApp,
177
- businessSlug: businessesSlug[isKioskApp ? 'kiosk' : 'marketplace']
180
+ isActive: settings?.use_marketplace || settings?.businessSlug || isKioskApp,
181
+ businessSlug: businessesSlug[isKioskApp ? 'kiosk' : settings?.use_marketplace ? 'marketplace' : 'business']
178
182
  }
179
183
 
180
184
  const signUpBusinesslayout = orderingTheme?.theme?.business_signup?.components?.layout?.type === 'old'
@@ -417,8 +421,8 @@ export const App = () => {
417
421
  }, [configs, loaded])
418
422
 
419
423
  useEffect(() => {
420
- if (isHome && settings?.use_marketplace) {
421
- goToPage('business', { store: 'marketplace' })
424
+ if (isHome && (settings?.use_marketplace || settings?.businessSlug)) {
425
+ goToPage('business', { store: settings?.use_marketplace ? 'marketplace' : settings?.businessSlug })
422
426
  }
423
427
  }, [])
424
428
 
@@ -479,6 +483,8 @@ export const App = () => {
479
483
  singleBusinessConfig={singleBusinessConfig}
480
484
  searchValue={searchValue}
481
485
  setSearchValue={setSearchValue}
486
+ businessSlug={settings?.businessSlug}
487
+ notificationState={oneSignalState}
482
488
  />
483
489
  )}
484
490
  <NotNetworkConnectivity />
@@ -606,7 +612,7 @@ export const App = () => {
606
612
  </Route>
607
613
  <Route exact path='/search'>
608
614
  {
609
- isKioskApp
615
+ isKioskApp || businessesSlug?.business
610
616
  ? <Redirect to={singleBusinessConfig.isActive ? `/${singleBusinessConfig.businessSlug}` : '/'} />
611
617
  : queryIntegrationToken && queryIntegrationCode === 'spoonity'
612
618
  ? <QueryLoginSpoonity token={queryIntegrationToken} />
@@ -629,7 +635,7 @@ export const App = () => {
629
635
  {isUserVerifyRequired ? (
630
636
  <Redirect to='/verify' />
631
637
  ) : (
632
- (orderStatus.options?.address?.location || isAllowUnaddressOrderType) && !isKioskApp ? (
638
+ (orderStatus.options?.address?.location || isAllowUnaddressOrderType) && !isKioskApp && !singleBusinessConfig.businessSlug ? (
633
639
  <BusinessListingSearch />
634
640
  ) : (
635
641
  <Redirect to={singleBusinessConfig.isActive ? `/${singleBusinessConfig.businessSlug}` : '/'} />
@@ -82,11 +82,11 @@ export const BusinessProductsList = (props) => {
82
82
  ...props,
83
83
  ordering,
84
84
  avoidBusinessLoading: true,
85
- isCustomLayout: settings?.use_marketplace,
85
+ isCustomLayout: settings?.use_marketplace || settings?.businessSlug,
86
86
  useKioskApp: settings?.use_kiosk,
87
87
  isSearchByName: true,
88
88
  isSearchByDescription: true,
89
- slug: businessSlug,
89
+ slug: settings?.businessSlug || businessSlug,
90
90
  categoryId,
91
91
  productId,
92
92
  businessProps: [
@@ -127,7 +127,8 @@ export const BusinessProductsList = (props) => {
127
127
  'pinterest_profile',
128
128
  'whatsapp_number',
129
129
  'snapchat_profile',
130
- 'previously_products'
130
+ 'previously_products',
131
+ 'configs'
131
132
  ],
132
133
  handleSearchRedirect: () => {
133
134
  events.emit('go_to_page', { page: 'search' })
@@ -16,6 +16,7 @@ export const BusinessesList = (props) => {
16
16
  isSearchByName: true,
17
17
  isSearchByDescription: true,
18
18
  franchiseId: settings?.franchiseSlug,
19
+ businessId: settings?.businessSlug,
19
20
  onBusinessClick: (business) => {
20
21
  if (businessUrlTemplate === '/store/:business_slug' || businessUrlTemplate === '/:business_slug') {
21
22
  events.emit('go_to_page', { page: 'business', params: { business_slug: business.slug } })
@@ -24,7 +25,7 @@ export const BusinessesList = (props) => {
24
25
  }
25
26
  },
26
27
  currentPageParam: 0,
27
- propsToFetch: ['id', 'name', 'header', 'logo', 'location', 'address', 'ribbon', 'timezone', 'schedule', 'open', 'delivery_price', 'distance', 'delivery_time', 'pickup_time', 'reviews', 'featured', 'offers', 'food', 'laundry', 'alcohol', 'groceries', 'slug', 'city', 'city_id'],
28
+ propsToFetch: ['id', 'name', 'header', 'logo', 'location', 'address', 'ribbon', 'timezone', 'schedule', 'open', 'delivery_price', 'distance', 'delivery_time', 'pickup_time', 'reviews', 'featured', 'offers', 'food', 'laundry', 'alcohol', 'groceries', 'slug', 'city', 'city_id', 'menus'],
28
29
  onRedirectPage: (data) => events.emit('go_to_page', data),
29
30
  }
30
31
 
@@ -101,6 +101,7 @@ export const CheckoutPage = (props) => {
101
101
  useValidationFields: true,
102
102
  validationFieldsType: 'checkout',
103
103
  useKioskApp: settings?.use_kiosk,
104
+ businessSlug: settings?.businessSlug,
104
105
  onPlaceOrderClick: (data, paymethod, cart) => {
105
106
  if (cart?.order?.uuid) {
106
107
  if (orderState?.options?.moment) {
@@ -16,6 +16,7 @@ export const MyOrders = (props) => {
16
16
  const ordersProps = {
17
17
  ...props,
18
18
  franchiseId: settings?.franchiseSlug,
19
+ businessId: settings?.businessSlug,
19
20
  hideOptions: windowSize.width < 576,
20
21
  onRedirectPage: (data) => {
21
22
  if (data.page === 'business') {
@@ -123,7 +123,9 @@
123
123
  "NOT_FOUND_ORDER": "Sorry, we couldn't find the requested order.",
124
124
  "ORDERS_REDIRECT": "Go to Orders",
125
125
  "WRITE_A_REVIEW": "Write a Review",
126
- "ADD": "Add"
126
+ "ADD": "Add",
127
+ "MOBILE_APPNAME": "Ordering app",
128
+ "MOBILE_APPNAME_AUTHOR": "Ordering, Inc."
127
129
  },
128
130
  "layouts": {
129
131
  "general": {
@@ -1 +0,0 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[0],{636: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}))},649:function(t,n,e){"use strict";function i(t){return"object"===Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}e.d(n,"a",(function(){return i}))},741:function(t,n,e){"use strict";e.r(n),e.d(n,"LegacyDestination",(function(){return I})),e.d(n,"ajsDestinations",(function(){return S}));var i=e(4),r=e(56),o=e(63),a=e(31),s=e(37),c=e(108),u=e(100),d=e(636),l=e(202),h=e(207),v=e(185),f=e(71),b=e(203),p=e(91),g=e(113);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 O(t,n,e,r){return Object(i.b)(this,void 0,void 0,(function(){var o,a,s,c,u,d;return Object(i.d)(this,(function(l){switch(l.label){case 0:o=y(n),a=j(o,r),s=Object(p.b)(),c="".concat(s,"/integrations/").concat(null!=a?a:o,"/").concat(e,"/").concat(null!=a?a:o,".dynamic.js.gz"),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Object(g.a)(c)];case 2:return l.sent(),function(t,n,e){var r,o;try{var a=(null!==(o=null===(r=null===window||void 0===window?void 0:window.performance)||void 0===r?void 0:r.getEntriesByName(t,"resource"))&&void 0!==o?o:[])[0];a&&n.stats.gauge("legacy_destination_time",Math.round(a.duration),Object(i.f)([e],a.duration<100?["cached"]:[],!0))}catch(t){}}(c,t,n),[3,4];case 3:throw u=l.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(n),"failed"]),u;case 4:return d=window["".concat(o,"Deps")],[4,Promise.all(d.map((function(t){return Object(g.a)(s+t+".gz")})))];case 5:return l.sent(),window["".concat(o,"Loader")](),[2,window["".concat(o,"Integration")]]}}))}))}var m=e(649),w=function(t,n){var e,i=n.type,r=n.bundlingStatus,o=n.versionSettings,a="unbundled"!==r&&("browser"===i||(null===(e=null==o?void 0:o.componentTypes)||void 0===e?void 0:e.includes("browser")));return!t.startsWith("Segment")&&"Iterable"!==t&&a},_=function(t,n){var e=!1===n.All&&void 0===n[t];return!1===n[t]||e};function k(t,n){return Object(i.b)(this,void 0,void 0,(function(){var e,r=this;return Object(i.d)(this,(function(s){switch(s.label){case 0:return e=[],Object(o.a)()?[2,n]:[4,Object(h.a)((function(){return n.length>0&&Object(o.b)()}),(function(){return Object(i.b)(r,void 0,void 0,(function(){var r,o;return Object(i.d)(this,(function(i){switch(i.label){case 0:return(r=n.pop())?[4,Object(u.a)(r,t)]:[2];case 1:return o=i.sent(),o instanceof a.a||e.push(r),[2]}}))}))}))];case 1:return s.sent(),e.map((function(t){return n.pushWithBackoff(t)})),[2,n]}}))}))}var I=function(){function t(t,n,e,r,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=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=r,this.buffer=r.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){var e;return Object(i.b)(this,void 0,void 0,(function(){var r,o,a=this;return Object(i.d)(this,(function(i){switch(i.label){case 0:return this._ready||void 0!==this.onReady?[2]:null===(e=this.integrationSource)||void 0===e?[3,1]:(o=e,[3,3]);case 1:return[4,O(t,this.name,this.version,this.options.obfuscate)];case 2:o=i.sent(),i.label=3;case 3:r=o,this.integration=function(t,n,e){var i;"Integration"in t?(t({user:function(){return e.user()},addIntegration:function(){}}),i=t.Integration):i=t;var r=new i(n);return r.analytics=e,r}(r,this.settings,n),this.onReady=new Promise((function(t){a.integration.once("ready",(function(){a._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){a.integration.on("initialize",(function(){a._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 r,o,a,s;return Object(i.d)(this,(function(i){return r=Object(p.b)(),o=y(t),a=j(t,e),s="".concat(r,"/integrations/").concat(null!=a?a:o,"/").concat(n,"/").concat(null!=a?a:o,".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(o.a)()||!1===this._ready||!1===this._initialized)},t.prototype.send=function(t,n,e){var r,o;return Object(i.b)(this,void 0,void 0,(function(){var a,c,u,l,h,v;return Object(i.d)(this,(function(f){switch(f.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(a=null===(o=null===(r=this.options)||void 0===r?void 0:r.plan)||void 0===o?void 0:o.track,c=t.event.event,a&&c&&"Segment.io"!==this.name){if(u=a[c],!Object(d.a)(a,u))return t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new s.a({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==u?void 0:u.integrations)),(null==u?void 0:u.enabled)&&!1===(null==u?void 0:u.integrations[this.name]))return t.cancel(new s.a({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===(l=f.sent()))return[2,t];h=new n(l,{traverse:!this.disableAutoISOConversion}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(e),"integration_name:".concat(this.name)]),f.label=2;case 2:return f.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,e,h)]:[3,4];case 3:f.sent(),f.label=4;case 4:return[3,6];case 5:throw v=f.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(e),"integration_name:".concat(this.name)]),v;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,r.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,r.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,r.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,r.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,r.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,k(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 S(t,n,e,r,o){var a,s;if(void 0===n&&(n={}),void 0===e&&(e={}),Object(c.b)())return[];t.plan&&((e=null!=e?e:{}).plan=t.plan);var u=null!==(s=null===(a=t.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==s?s:[],d=t.integrations,h=e.integrations,v=Object(l.a)(t,null!=e?e:{}),f=null==o?void 0:o.reduce((function(t,n){var e;return Object(i.a)(Object(i.a)({},t),((e={})[function(t){return("Integration"in t?t.Integration:t).prototype.name}(n)]=n,e))}),{}),b=new Set(Object(i.f)(Object(i.f)([],Object.keys(d).filter((function(t){return w(t,d[t])})),!0),Object.keys(f||{}).filter((function(t){return Object(m.a)(d[t])||Object(m.a)(null==h?void 0:h[t])})),!0));return Array.from(b).filter((function(t){return!_(t,n)})).map((function(t){var n=function(t){var n,e,i,r;return null!==(r=null!==(e=null===(n=null==t?void 0:t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==e?e:null===(i=null==t?void 0:t.versionSettings)||void 0===i?void 0:i.version)&&void 0!==r?r:"latest"}(d[t]),i=new I(t,n,v[t],e,null==f?void 0:f[t]);return u.filter((function(n){return n.destinationName===t})).length>0&&r&&i.addMiddleware(r),i}))}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[4],{649:function(r,t,e){"use strict";function i(r){return"object"===Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}e.d(t,"a",(function(){return i}))},742:function(r,t,e){"use strict";function i(r,t){return Object.keys(t).reduce((function(e,i){i.startsWith(r)&&(e[i.substr(r.length)]=t[i]);return e}),{})}e.r(t),e.d(t,"queryString",(function(){return s}));var a=e(201),n=e(649);function s(r,t){var e=document.createElement("a");e.href=t;var s=e.search.slice(1).split("&").reduce((function(r,t){var e=t.split("="),i=e[0],n=e[1];return r[i]=Object(a.a)(n),r}),{}),u=[],o=s.ajs_uid,c=s.ajs_event,d=s.ajs_aid,j=Object(n.a)(r.options.useQueryString)?r.options.useQueryString:{},_=j.aid,f=void 0===_?/.+/:_,p=j.uid,v=void 0===p?/.+/:p;if(d){var y=Array.isArray(s.ajs_aid)?s.ajs_aid[0]:s.ajs_aid;f.test(y)&&r.setAnonymousId(y)}if(o){var l=Array.isArray(s.ajs_uid)?s.ajs_uid[0]:s.ajs_uid;if(v.test(l)){var b=i("ajs_trait_",s);u.push(r.identify(l,b))}}if(c){var g=Array.isArray(s.ajs_event)?s.ajs_event[0]:s.ajs_event,h=i("ajs_prop_",s);u.push(r.track(g,h))}return Promise.all(u)}}}]);