ordering-ui-external 14.1.37 → 14.1.38
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.
- package/_bundles/0.ordering-ui.56519bcd02a6caa88dd1.js +1 -0
- package/_bundles/{1.ordering-ui.7c3ac8ece68a78750046.js → 1.ordering-ui.56519bcd02a6caa88dd1.js} +1 -1
- package/_bundles/{2.ordering-ui.7c3ac8ece68a78750046.js → 2.ordering-ui.56519bcd02a6caa88dd1.js} +1 -1
- package/_bundles/{4.ordering-ui.7c3ac8ece68a78750046.js → 4.ordering-ui.56519bcd02a6caa88dd1.js} +1 -1
- package/_bundles/{5.ordering-ui.7c3ac8ece68a78750046.js → 5.ordering-ui.56519bcd02a6caa88dd1.js} +1 -1
- package/_bundles/6.ordering-ui.56519bcd02a6caa88dd1.js +1 -0
- package/_bundles/{7.ordering-ui.7c3ac8ece68a78750046.js → 7.ordering-ui.56519bcd02a6caa88dd1.js} +2 -2
- package/_bundles/{8.ordering-ui.7c3ac8ece68a78750046.js → 8.ordering-ui.56519bcd02a6caa88dd1.js} +1 -1
- package/_bundles/{9.ordering-ui.7c3ac8ece68a78750046.js → 9.ordering-ui.56519bcd02a6caa88dd1.js} +1 -1
- package/_bundles/{ordering-ui.7c3ac8ece68a78750046.js → ordering-ui.56519bcd02a6caa88dd1.js} +2 -2
- package/_modules/themes/five/src/components/AddressList/styles.js +9 -13
- package/package.json +2 -2
- package/src/themes/five/src/components/AddressList/styles.js +6 -7
- package/_bundles/0.ordering-ui.7c3ac8ece68a78750046.js +0 -1
- package/_bundles/6.ordering-ui.7c3ac8ece68a78750046.js +0 -1
- /package/_bundles/{7.ordering-ui.7c3ac8ece68a78750046.js.LICENSE.txt → 7.ordering-ui.56519bcd02a6caa88dd1.js.LICENSE.txt} +0 -0
- /package/_bundles/{ordering-ui.7c3ac8ece68a78750046.js.LICENSE.txt → ordering-ui.56519bcd02a6caa88dd1.js.LICENSE.txt} +0 -0
|
@@ -37,10 +37,10 @@ var AddressItem = exports.AddressItem = _styledComponents.default.li(_templateOb
|
|
|
37
37
|
}, function (props) {
|
|
38
38
|
return props.theme.colors.lightGray;
|
|
39
39
|
});
|
|
40
|
-
var AddressItemActions = exports.AddressItemActions = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n a {\n display: flex;\n cursor: pointer;\n margin: 0px 5px;\n font-size: 20px;\n
|
|
40
|
+
var AddressItemActions = exports.AddressItemActions = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n a {\n display: flex;\n cursor: pointer;\n margin: 0px 5px;\n font-size: 20px;\n\n svg {\n color: #B1BCCC;\n }\n }\n a.disabled {\n svg {\n color: #CCC;\n }\n pointer-events: none;\n }\n"])));
|
|
41
41
|
var WrappNotAddresses = exports.WrappNotAddresses = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 80%;\n margin: 20px auto 10px;\n\n ", "\n\n img {\n width: 200px;\n height: auto;\n aspect-ratio: attr(width) / attr(height)\n }\n h1 {\n margin: 5px 0px 0px;\n opacity: 0.5;\n text-align: center;\n font-size: 24px;\n }\n"])), function (_ref4) {
|
|
42
42
|
var isCustomerMode = _ref4.isCustomerMode;
|
|
43
|
-
return isCustomerMode ? (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n min-height: 200px;\n height: 200px
|
|
43
|
+
return isCustomerMode ? (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n min-height: 200px;\n height: 200px;\n "]))) : (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 350px;\n "])));
|
|
44
44
|
});
|
|
45
45
|
var FormActions = exports.FormActions = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding: 10px 0px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n button {\n height: 45px;\n flex: 1;\n\n &:last-child#second-btn {\n margin-left: 10px;\n ", "\n }\n }\n\n @media (min-width: 769px) {\n button {\n &:last-child#second-btn {\n margin-left: 25px;\n ", "\n }\n }\n }\n"])), function (props) {
|
|
46
46
|
var _props$theme3;
|
|
@@ -49,29 +49,25 @@ var FormActions = exports.FormActions = _styledComponents.default.div(_templateO
|
|
|
49
49
|
var _props$theme4;
|
|
50
50
|
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-left: 0;\n margin-right: 25px;\n "])));
|
|
51
51
|
});
|
|
52
|
-
var ContinueButton = exports.ContinueButton = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 100%;\n position: sticky;\n bottom: 1px;\n
|
|
52
|
+
var ContinueButton = exports.ContinueButton = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 100%;\n position: sticky;\n bottom: 1px;\n\n button {\n width: 100%;\n white-space: nowrap;\n height: 50px;\n }\n"])));
|
|
53
53
|
var AddressTitle = exports.AddressTitle = _styledComponents.default.span(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n font-size: 16px;\n margin-bottom: 25px;\n text-align: left;\n ", "\n"])), function (props) {
|
|
54
54
|
var _props$theme5;
|
|
55
55
|
return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
|
|
56
56
|
});
|
|
57
57
|
var AddressHalfContainer = exports.AddressHalfContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n"])));
|
|
58
|
-
var List = exports.List = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: ", ";\n padding-right: 10px;\n button {
|
|
58
|
+
var List = exports.List = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: ", ";\n padding-right: 10px;\n button {\n width: 100%;\n }\n"])), function (_ref5) {
|
|
59
59
|
var halfWidth = _ref5.halfWidth;
|
|
60
60
|
return halfWidth ? '50%' : '100%';
|
|
61
61
|
});
|
|
62
|
-
var AddressFormContainer = exports.AddressFormContainer = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 50%;\n position: sticky;\n right: 0;\n top: 0;\n
|
|
63
|
-
|
|
64
|
-
isOpenUserData = _ref6.isOpenUserData;
|
|
65
|
-
return isCustomerMode && !isOpenUserData ? '-190px' : '0';
|
|
66
|
-
});
|
|
67
|
-
var CloseIcon = exports.CloseIcon = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n\n font-size: 30px;\n cursor: pointer;\n z-index: 2;\n ", "\n ", "\n svg{\n /* background: rgba(255,255,255,0.5); */\n transition: all .2s ease-in;\n\n &:hover {\n background-color: #1507260a;\n\n > svg {\n color: #151b26;\n }\n }\n\n &:active {\n background-color: ", ";\n }\n \n border-radius: 50%;\n }\n"])), function (props) {
|
|
62
|
+
var AddressFormContainer = exports.AddressFormContainer = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 50%;\n position: sticky;\n right: 0;\n top: 0;\n height: 100%;\n padding-left: 10px;\n"])));
|
|
63
|
+
var CloseIcon = exports.CloseIcon = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n\n font-size: 30px;\n cursor: pointer;\n z-index: 2;\n ", "\n ", "\n svg{\n /* background: rgba(255,255,255,0.5); */\n transition: all .2s ease-in;\n\n &:hover {\n background-color: #1507260a;\n\n > svg {\n color: #151b26;\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n border-radius: 50%;\n }\n"])), function (props) {
|
|
68
64
|
var _props$theme6;
|
|
69
65
|
return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n right: 25px;\n left: initial;\n "])));
|
|
70
|
-
}, function (
|
|
71
|
-
var isProductForm =
|
|
66
|
+
}, function (_ref6) {
|
|
67
|
+
var isProductForm = _ref6.isProductForm;
|
|
72
68
|
return isProductForm && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n top: 18px;\n "])));
|
|
73
69
|
}, function () {
|
|
74
70
|
return (0, _polished.darken)(0.07, '#CCC');
|
|
75
71
|
});
|
|
76
|
-
var TitleFormContainer = exports.TitleFormContainer = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n display: flex
|
|
72
|
+
var TitleFormContainer = exports.TitleFormContainer = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n h1 {\n margin: 0 auto;\n font-size: 24px;\n }\n"])));
|
|
77
73
|
var TitleAddress = exports.TitleAddress = _styledComponents.default.h1(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n text-align: center;\n margin: auto;\n font-size: 24px;\n margin-bottom: 20px;\n"])));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.38",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"lodash": "^4.17.19",
|
|
89
89
|
"moment": "^2.29.4",
|
|
90
90
|
"nanoid": "^4.0.0",
|
|
91
|
-
"ordering-components-external": "13.0.
|
|
91
|
+
"ordering-components-external": "13.0.37",
|
|
92
92
|
"payment": "^2.4.6",
|
|
93
93
|
"polished": "^3.6.6",
|
|
94
94
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -113,7 +113,7 @@ export const AddressItemActions = styled.div`
|
|
|
113
113
|
cursor: pointer;
|
|
114
114
|
margin: 0px 5px;
|
|
115
115
|
font-size: 20px;
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
svg {
|
|
118
118
|
color: #B1BCCC;
|
|
119
119
|
}
|
|
@@ -136,7 +136,7 @@ export const WrappNotAddresses = styled.div`
|
|
|
136
136
|
|
|
137
137
|
${({ isCustomerMode }) => isCustomerMode ? css`
|
|
138
138
|
min-height: 200px;
|
|
139
|
-
height: 200px
|
|
139
|
+
height: 200px;
|
|
140
140
|
` : css`
|
|
141
141
|
height: 350px;
|
|
142
142
|
`}
|
|
@@ -189,7 +189,7 @@ export const ContinueButton = styled.div`
|
|
|
189
189
|
width: 100%;
|
|
190
190
|
position: sticky;
|
|
191
191
|
bottom: 1px;
|
|
192
|
-
|
|
192
|
+
|
|
193
193
|
button {
|
|
194
194
|
width: 100%;
|
|
195
195
|
white-space: nowrap;
|
|
@@ -214,7 +214,7 @@ export const AddressHalfContainer = styled.div`
|
|
|
214
214
|
export const List = styled.div`
|
|
215
215
|
width: ${({ halfWidth }) => halfWidth ? '50%' : '100%'};
|
|
216
216
|
padding-right: 10px;
|
|
217
|
-
button {
|
|
217
|
+
button {
|
|
218
218
|
width: 100%;
|
|
219
219
|
}
|
|
220
220
|
`
|
|
@@ -224,7 +224,6 @@ export const AddressFormContainer = styled.div`
|
|
|
224
224
|
position: sticky;
|
|
225
225
|
right: 0;
|
|
226
226
|
top: 0;
|
|
227
|
-
margin-top: ${({ isCustomerMode, isOpenUserData }) => isCustomerMode && !isOpenUserData ? '-190px' : '0'};
|
|
228
227
|
height: 100%;
|
|
229
228
|
padding-left: 10px;
|
|
230
229
|
`
|
|
@@ -256,13 +255,13 @@ export const CloseIcon = styled.div`
|
|
|
256
255
|
&:active {
|
|
257
256
|
background-color: ${() => darken(0.07, '#CCC')};
|
|
258
257
|
}
|
|
259
|
-
|
|
258
|
+
|
|
260
259
|
border-radius: 50%;
|
|
261
260
|
}
|
|
262
261
|
`
|
|
263
262
|
|
|
264
263
|
export const TitleFormContainer = styled.div`
|
|
265
|
-
display: flex;
|
|
264
|
+
display: flex;
|
|
266
265
|
align-items: flex-start;
|
|
267
266
|
h1 {
|
|
268
267
|
margin: 0 auto;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[0],{695: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}))},799:function(t,n,e){"use strict";e.r(n),e.d(n,"LegacyDestination",(function(){return S})),e.d(n,"ajsDestinations",(function(){return k}));var i=e(4),r=e(86),o=e(73),a=e(37),s=e(65),c=e(141),u=e(139),d=e(695),l=e(243),h=e(249),v=e(240),f=e(102),b=e(244),p=e(126),g=e(154);function y(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function O(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function j(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=O(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(87),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},I=e(130);function z(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 S=function(){function t(t,n,e,r,o,a){void 0===r&&(r={}),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)({},r),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.integrationSource=a,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,"".concat(e,":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,j(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{Object(I.a)(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(n){throw Object(I.a)(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),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=O(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}),Object(I.a)(t,{integrationName:this.name,methodName:e,type:"classic"}),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(),Object(I.a)(t,{integrationName:this.name,methodName:e,type:"classic",didError:!0}),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,z(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 k(t,n,e,r,o,a){var s,u;if(void 0===e&&(e={}),void 0===r&&(r={}),Object(c.b)())return[];n.plan&&((r=null!=r?r:{}).plan=n.plan);var d=null!==(u=null===(s=n.middlewareSettings)||void 0===s?void 0:s.routingRules)&&void 0!==u?u:[],h=n.integrations,v=r.integrations,f=Object(l.a)(n,null!=r?r:{}),b=null==a?void 0:a.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))}),{}),p=new Set(Object(i.f)(Object(i.f)([],Object.keys(h).filter((function(t){return w(t,h[t])})),!0),Object.keys(b||{}).filter((function(t){return Object(m.d)(h[t])||Object(m.d)(null==v?void 0:v[t])})),!0));return Array.from(p).filter((function(t){return!_(t,e)})).map((function(n){var e=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"}(h[n]),i=new S(n,e,t,f[n],r,null==b?void 0:b[n]);return d.filter((function(t){return t.destinationName===n})).length>0&&o&&i.addMiddleware(o),i}))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonpOrderingUI=window.webpackJsonpOrderingUI||[]).push([[6],{695:function(n,e,t){"use strict";function i(n,e){var t,i;return"boolean"==typeof(null==e?void 0:e.enabled)?e.enabled:null===(i=null===(t=null==n?void 0:n.__default)||void 0===t?void 0:t.enabled)||void 0===i||i}t.d(e,"a",(function(){return i}))},796:function(n,e,t){"use strict";t.r(e),t.d(e,"schemaFilter",(function(){return o}));var i=t(4),r=t(695);function o(n,e){function t(t){var o=n,a=t.event.event;if(o&&a){var u=o[a];if(!Object(r.a)(o,u))return t.updateEvent("integrations",Object(i.a)(Object(i.a)({},t.event.integrations),{All:!1,"Segment.io":!0})),t;var c=function(n,e){var t,i;if(!n||!Object.keys(n))return{};var r=n.integrations?Object.keys(n.integrations).filter((function(e){return!1===n.integrations[e]})):[],o=[];return(null!==(t=e.remotePlugins)&&void 0!==t?t:[]).forEach((function(n){r.forEach((function(e){(n.name.includes(e)||e.includes(n.name))&&o.push(n.name)}))})),(null!==(i=e.remotePlugins)&&void 0!==i?i:[]).reduce((function(n,e){return e.settings.subscriptions&&o.includes(e.name)&&e.settings.subscriptions.forEach((function(t){return n["".concat(e.name," ").concat(t.partnerAction)]=!1})),n}),{})}(u,e);t.updateEvent("integrations",Object(i.a)(Object(i.a)(Object(i.a)({},t.event.integrations),null==u?void 0:u.integrations),c))}return t}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:t,alias:t,track:t,identify:t,group:t}}}}]);
|
|
File without changes
|