@useinsider/guido 1.4.4-beta.b4adc85 → 1.4.4
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/README.md +664 -295
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +89 -63
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +13 -13
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +5 -5
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +13 -13
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +15 -18
- package/dist/components/organisms/header/RightSlot.vue.js +10 -10
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +19 -22
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +4 -4
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +8 -8
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +17 -17
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -10
- package/dist/composables/useBlocksConfig.js +20 -23
- package/dist/composables/useConfig.js +5 -51
- package/dist/composables/useHtmlCompiler.js +19 -20
- package/dist/composables/useHtmlValidator.js +41 -41
- package/dist/composables/usePartner.js +9 -19
- package/dist/composables/useStripo.js +11 -11
- package/dist/composables/useTranslations.js +2 -3
- package/dist/config/compiler/unsubscribeCompilerRules.js +1 -1
- package/dist/enums/defaults.js +67 -3
- package/dist/enums/unsubscribe.js +20 -23
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +11 -12
- package/dist/guido.css +1 -1
- package/dist/library.js +2 -12
- package/dist/node_modules/lodash-es/_apply.js +16 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +10 -10
- package/dist/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/dist/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +17 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.js +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/dist/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +9 -0
- package/dist/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/lodash-es/_createAssigner.js +15 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +11 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +10 -0
- package/dist/node_modules/lodash-es/_overRest.js +15 -0
- package/dist/node_modules/lodash-es/_safeGet.js +7 -0
- package/dist/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/lodash-es/_shortOut.js +16 -0
- package/dist/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +16 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/merge.js +8 -0
- package/dist/node_modules/lodash-es/toPlainObject.js +8 -0
- package/dist/node_modules/valibot/dist/index.js +103 -476
- package/dist/services/templateLibraryApi.js +18 -18
- package/dist/src/@types/generic.d.ts +45 -4
- package/dist/src/components/Guido.vue.d.ts +12 -13
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +2 -184
- package/dist/src/composables/usePartner.d.ts +0 -8
- package/dist/src/enums/defaults.d.ts +6 -4
- package/dist/src/enums/unsubscribe.d.ts +1 -5
- package/dist/src/library.d.ts +1 -3
- package/dist/src/stores/config.d.ts +102 -1547
- package/dist/stores/config.js +9 -141
- package/package.json +1 -1
- package/dist/@types/config/defaults.js +0 -44
- package/dist/@types/config/schemas.js +0 -229
- package/dist/@types/config/validator.js +0 -56
- package/dist/src/@types/config/defaults.d.ts +0 -68
- package/dist/src/@types/config/index.d.ts +0 -14
- package/dist/src/@types/config/schemas.d.ts +0 -505
- package/dist/src/@types/config/types.d.ts +0 -142
- package/dist/src/@types/config/validator.d.ts +0 -119
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { RecommendationFeedSourceMaps as
|
|
2
|
-
import { useRecommendationApi as
|
|
3
|
-
import { useConfigStore as c } from "../../../../stores/config.js";
|
|
1
|
+
import { RecommendationFeedSourceMaps as s, PriceAttributes as l } from "../../../../enums/extensions/recommendationBlock.js";
|
|
2
|
+
import { useRecommendationApi as c } from "../../../../services/recommendationApi.js";
|
|
4
3
|
import { defineStore as p } from "pinia";
|
|
5
4
|
import { generateCompleteFilterQuery as m } from "../utils/filterUtil.js";
|
|
6
|
-
const a =
|
|
5
|
+
const a = c(), d = () => ({
|
|
7
6
|
recommendationCampaignUrls: {},
|
|
8
7
|
recommendationProducts: [],
|
|
9
8
|
recommendationConfigs: {
|
|
@@ -134,7 +133,7 @@ const a = l(), d = () => ({
|
|
|
134
133
|
filterSelectionDrawerStatus: !1,
|
|
135
134
|
filterList: {},
|
|
136
135
|
filterGroup: 1
|
|
137
|
-
}),
|
|
136
|
+
}), G = p("guidoRecommendationExtension", {
|
|
138
137
|
state: () => d(),
|
|
139
138
|
getters: {
|
|
140
139
|
hasFilters: (e) => !!e.recommendationConfigs.filters.length,
|
|
@@ -145,7 +144,7 @@ const a = l(), d = () => ({
|
|
|
145
144
|
getActivePredictiveAlgorithms: (e) => {
|
|
146
145
|
const t = [];
|
|
147
146
|
return e.activePredictiveAlgorithms.forEach((r) => {
|
|
148
|
-
t.push(...
|
|
147
|
+
t.push(...s.filter((i) => i.id === r));
|
|
149
148
|
}), t.map((r) => ({
|
|
150
149
|
text: r.name,
|
|
151
150
|
value: r.key
|
|
@@ -160,7 +159,7 @@ const a = l(), d = () => ({
|
|
|
160
159
|
value: t.text
|
|
161
160
|
})),
|
|
162
161
|
getFilterList: (e) => Object.values(e.filterList).map((t) => {
|
|
163
|
-
const r = t.type === "defaultAttribute", i =
|
|
162
|
+
const r = t.type === "defaultAttribute", i = l.includes(t.attributeName);
|
|
164
163
|
let o = r ? t.attributeName : `product_attributes.${t.attributeName}`;
|
|
165
164
|
return o = i ? `${o}.${e.recommendationConfigs.currencySettings.value}` : o, {
|
|
166
165
|
text: t.displayName,
|
|
@@ -241,14 +240,14 @@ const a = l(), d = () => ({
|
|
|
241
240
|
return m(this.recommendationConfigs.filters);
|
|
242
241
|
},
|
|
243
242
|
async fetchRecommendationProducts() {
|
|
244
|
-
var o;
|
|
245
|
-
const e = this.generateFilterQuery(), t = ((
|
|
243
|
+
var i, o, n;
|
|
244
|
+
const e = this.generateFilterQuery(), t = ((i = s.find((u) => u.key === this.recommendationConfigs.strategy)) == null ? void 0 : i.path) || "", r = await a.fetchRecommendationProducts(
|
|
246
245
|
t,
|
|
247
246
|
{
|
|
248
247
|
// TODO: Here will be optimized and filled carefully
|
|
249
248
|
locale: this.recommendationConfigs.language,
|
|
250
249
|
currency: this.recommendationConfigs.currencySettings.value,
|
|
251
|
-
partnerName:
|
|
250
|
+
partnerName: ((n = (o = window.GuidoConfig) == null ? void 0 : o.partner) == null ? void 0 : n.partnerName) || "",
|
|
252
251
|
productId: this.recommendationConfigs.strategy === "manualMerchandising" ? this.recommendationConfigs.productIds.join(",") : "{itemId}",
|
|
253
252
|
size: this.recommendationConfigs.size,
|
|
254
253
|
details: !0,
|
|
@@ -257,11 +256,11 @@ const a = l(), d = () => ({
|
|
|
257
256
|
}
|
|
258
257
|
);
|
|
259
258
|
this.$patch({
|
|
260
|
-
recommendationProducts:
|
|
259
|
+
recommendationProducts: r
|
|
261
260
|
});
|
|
262
261
|
}
|
|
263
262
|
}
|
|
264
263
|
});
|
|
265
264
|
export {
|
|
266
|
-
|
|
265
|
+
G as useRecommendationExtensionStore
|
|
267
266
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-6562e38c],.gap-16[data-v-1ccb6d4a]{gap:16px}[data-v-
|
|
1
|
+
.gap-16[data-v-6562e38c],.gap-16[data-v-1ccb6d4a]{gap:16px}[data-v-0502bceb] .in-button-v2__wrapper{line-height:0}[data-v-b5997368] .in-segments-wrapper .in-tooltip-wrapper__box{text-align:left}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-98181b5a]{position:relative;width:100%;height:calc(100vh - 128px)}.guido-editor__container[data-v-98181b5a]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-98181b5a]{height:calc(100vh - 75px)}[data-v-70835920] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-a86fc486]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-a86fc486]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-a86fc486]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-a86fc486]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-a86fc486]{object-fit:cover;transform:scale(1)}[data-v-dd57102d] .guido__verion-history-view-option-selection-desktop svg,[data-v-dd57102d] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-dd57102d] .in-segments-wrapper__button_selected,[data-v-dd57102d] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-d3c52b44] .vueperslides__bullets,[data-v-dd1a237a] .vueperslides__bullets{pointer-events:none!important}[data-v-dd1a237a] .vueperslides__parallax-wrapper{height:110px!important}[data-v-a408dcea] .vueperslides__bullets{pointer-events:none!important}[data-v-a408dcea] .vueperslides__parallax-wrapper{height:110px!important}
|
package/dist/library.js
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { MessageType as f, ProductType as t } from "./@types/config/schemas.js";
|
|
3
|
-
import "./@types/config/defaults.js";
|
|
4
|
-
import { getValidationErrors as s, isValidConfig as d, parseConfig as g, parseConfigSafe as n, validateConfig as l } from "./@types/config/validator.js";
|
|
1
|
+
import { default as d } from "./components/Guido.vue.js";
|
|
5
2
|
export {
|
|
6
|
-
|
|
7
|
-
f as MessageType,
|
|
8
|
-
t as ProductType,
|
|
9
|
-
s as getValidationErrors,
|
|
10
|
-
d as isValidConfig,
|
|
11
|
-
g as parseConfig,
|
|
12
|
-
n as parseConfigSafe,
|
|
13
|
-
l as validateConfig
|
|
3
|
+
d as Guido
|
|
14
4
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function t(l, c, e) {
|
|
2
|
+
switch (e.length) {
|
|
3
|
+
case 0:
|
|
4
|
+
return l.call(c);
|
|
5
|
+
case 1:
|
|
6
|
+
return l.call(c, e[0]);
|
|
7
|
+
case 2:
|
|
8
|
+
return l.call(c, e[0], e[1]);
|
|
9
|
+
case 3:
|
|
10
|
+
return l.call(c, e[0], e[1], e[2]);
|
|
11
|
+
}
|
|
12
|
+
return l.apply(c, e);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
t as default
|
|
16
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import a from "./_baseTimes.js";
|
|
2
|
+
import g from "./isArguments.js";
|
|
3
3
|
import h from "./isArray.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
var
|
|
8
|
-
function l(t,
|
|
9
|
-
var
|
|
4
|
+
import b from "./isBuffer.js";
|
|
5
|
+
import A from "./_isIndex.js";
|
|
6
|
+
import c from "./isTypedArray.js";
|
|
7
|
+
var d = Object.prototype, O = d.hasOwnProperty;
|
|
8
|
+
function l(t, p) {
|
|
9
|
+
var o = h(t), i = !o && g(t), s = !o && !i && b(t), e = !o && !i && !s && c(t), n = o || i || s || e, f = n ? a(t.length, String) : [], m = f.length;
|
|
10
10
|
for (var r in t)
|
|
11
|
-
|
|
11
|
+
(p || O.call(t, r)) && !(n && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
12
12
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
13
13
|
s && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
14
14
|
e && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
15
|
-
|
|
15
|
+
A(r, m))) && f.push(r);
|
|
16
16
|
return f;
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import t from "./_baseAssignValue.js";
|
|
2
|
+
import i from "./eq.js";
|
|
3
|
+
var s = Object.prototype, p = s.hasOwnProperty;
|
|
4
|
+
function l(r, a, o) {
|
|
5
|
+
var n = r[a];
|
|
6
|
+
(!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
l as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import u from "./isObject.js";
|
|
2
|
+
var r = Object.create, c = /* @__PURE__ */ (function() {
|
|
3
|
+
function e() {
|
|
4
|
+
}
|
|
5
|
+
return function(t) {
|
|
6
|
+
if (!u(t))
|
|
7
|
+
return {};
|
|
8
|
+
if (r)
|
|
9
|
+
return r(t);
|
|
10
|
+
e.prototype = t;
|
|
11
|
+
var n = new e();
|
|
12
|
+
return e.prototype = void 0, n;
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
export {
|
|
16
|
+
c as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import a from "./isObject.js";
|
|
2
|
+
import i from "./_isPrototype.js";
|
|
3
|
+
import n from "./_nativeKeysIn.js";
|
|
4
|
+
var e = Object.prototype, p = e.hasOwnProperty;
|
|
5
|
+
function v(r) {
|
|
6
|
+
if (!a(r))
|
|
7
|
+
return n(r);
|
|
8
|
+
var s = i(r), o = [];
|
|
9
|
+
for (var t in r)
|
|
10
|
+
t == "constructor" && (s || !p.call(r, t)) || o.push(t);
|
|
11
|
+
return o;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
v as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import t from "./_Stack.js";
|
|
2
|
+
import d from "./_assignMergeValue.js";
|
|
3
|
+
import g from "./_baseFor.js";
|
|
4
|
+
import a from "./_baseMergeDeep.js";
|
|
5
|
+
import M from "./isObject.js";
|
|
6
|
+
import v from "./keysIn.js";
|
|
7
|
+
import x from "./_safeGet.js";
|
|
8
|
+
function D(f, r, e, n, i) {
|
|
9
|
+
f !== r && g(r, function(o, m) {
|
|
10
|
+
if (i || (i = new t()), M(o))
|
|
11
|
+
a(f, r, m, e, D, n, i);
|
|
12
|
+
else {
|
|
13
|
+
var p = n ? n(x(f, m), o, m + "", f, r, i) : void 0;
|
|
14
|
+
p === void 0 && (p = o), d(f, m, p);
|
|
15
|
+
}
|
|
16
|
+
}, v);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
D as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import u from "./_assignMergeValue.js";
|
|
2
|
+
import V from "./_cloneBuffer.js";
|
|
3
|
+
import j from "./_cloneTypedArray.js";
|
|
4
|
+
import y from "./_copyArray.js";
|
|
5
|
+
import c from "./_initCloneObject.js";
|
|
6
|
+
import g from "./isArguments.js";
|
|
7
|
+
import O from "./isArray.js";
|
|
8
|
+
import C from "./isArrayLikeObject.js";
|
|
9
|
+
import M from "./isBuffer.js";
|
|
10
|
+
import P from "./isFunction.js";
|
|
11
|
+
import w from "./isObject.js";
|
|
12
|
+
import x from "./isPlainObject.js";
|
|
13
|
+
import D from "./isTypedArray.js";
|
|
14
|
+
import b from "./_safeGet.js";
|
|
15
|
+
import F from "./toPlainObject.js";
|
|
16
|
+
function U(t, p, o, v, A, l, f) {
|
|
17
|
+
var i = b(t, o), e = b(p, o), s = f.get(e);
|
|
18
|
+
if (s) {
|
|
19
|
+
u(t, o, s);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
var r = l ? l(i, e, o + "", t, p, f) : void 0, m = r === void 0;
|
|
23
|
+
if (m) {
|
|
24
|
+
var a = O(e), n = !a && M(e), d = !a && !n && D(e);
|
|
25
|
+
r = e, a || n || d ? O(i) ? r = i : C(i) ? r = y(i) : n ? (m = !1, r = V(e)) : d ? (m = !1, r = j(e)) : r = [] : x(e) || g(e) ? (r = i, g(i) ? r = F(i) : (!w(i) || P(i)) && (r = c(e))) : m = !1;
|
|
26
|
+
}
|
|
27
|
+
m && (f.set(e, r), A(r, e, v, l, f), f.delete(e)), u(t, o, r);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
U as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import o from "./constant.js";
|
|
2
|
+
import r from "./_defineProperty.js";
|
|
3
|
+
import i from "./identity.js";
|
|
4
|
+
var u = r ? function(t, e) {
|
|
5
|
+
return r(t, "toString", {
|
|
6
|
+
configurable: !0,
|
|
7
|
+
enumerable: !1,
|
|
8
|
+
value: o(e),
|
|
9
|
+
writable: !0
|
|
10
|
+
});
|
|
11
|
+
} : i;
|
|
12
|
+
export {
|
|
13
|
+
u as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import f from "./_root.js";
|
|
2
|
+
var r = typeof exports == "object" && exports && !exports.nodeType && exports, e = r && typeof module == "object" && module && !module.nodeType && module, p = e && e.exports === r, o = p ? f.Buffer : void 0;
|
|
3
|
+
o && o.allocUnsafe;
|
|
4
|
+
function l(t, u) {
|
|
5
|
+
return t.slice();
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
l as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import m from "./_assignValue.js";
|
|
2
|
+
import t from "./_baseAssignValue.js";
|
|
3
|
+
function v(a, f, i, u) {
|
|
4
|
+
var d = !i;
|
|
5
|
+
i || (i = {});
|
|
6
|
+
for (var s = -1, e = f.length; ++s < e; ) {
|
|
7
|
+
var n = f[s], r = void 0;
|
|
8
|
+
r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
|
|
9
|
+
}
|
|
10
|
+
return i;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
v as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import l from "./_baseRest.js";
|
|
2
|
+
import u from "./_isIterateeCall.js";
|
|
3
|
+
function h(d) {
|
|
4
|
+
return l(function(i, e) {
|
|
5
|
+
var f = -1, n = e.length, t = n > 1 ? e[n - 1] : void 0, r = n > 2 ? e[2] : void 0;
|
|
6
|
+
for (t = d.length > 3 && typeof t == "function" ? (n--, t) : void 0, r && u(e[0], e[1], r) && (t = n < 3 ? void 0 : t, n = 1), i = Object(i); ++f < n; ) {
|
|
7
|
+
var a = e[f];
|
|
8
|
+
a && d(i, a, f, t);
|
|
9
|
+
}
|
|
10
|
+
return i;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
h as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import u from "./_apply.js";
|
|
2
|
+
var o = Math.max;
|
|
3
|
+
function d(i, e, g) {
|
|
4
|
+
return e = o(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
5
|
+
for (var n = arguments, r = -1, h = o(n.length - e, 0), l = Array(h); ++r < h; )
|
|
6
|
+
l[r] = n[e + r];
|
|
7
|
+
r = -1;
|
|
8
|
+
for (var a = Array(e + 1); ++r < e; )
|
|
9
|
+
a[r] = n[r];
|
|
10
|
+
return a[e] = g(l), u(i, this, a);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
d as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var u = 800, i = 16, o = Date.now;
|
|
2
|
+
function s(e) {
|
|
3
|
+
var n = 0, t = 0;
|
|
4
|
+
return function() {
|
|
5
|
+
var a = o(), r = i - (a - t);
|
|
6
|
+
if (t = a, r > 0) {
|
|
7
|
+
if (++n >= u)
|
|
8
|
+
return arguments[0];
|
|
9
|
+
} else
|
|
10
|
+
n = 0;
|
|
11
|
+
return e.apply(void 0, arguments);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
s as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import c from "./_baseGetTag.js";
|
|
2
|
+
import n from "./_getPrototype.js";
|
|
3
|
+
import a from "./isObjectLike.js";
|
|
4
|
+
var i = "[object Object]", f = Function.prototype, p = Object.prototype, e = f.toString, u = p.hasOwnProperty, b = e.call(Object);
|
|
5
|
+
function O(r) {
|
|
6
|
+
if (!a(r) || c(r) != i)
|
|
7
|
+
return !1;
|
|
8
|
+
var o = n(r);
|
|
9
|
+
if (o === null)
|
|
10
|
+
return !0;
|
|
11
|
+
var t = u.call(o, "constructor") && o.constructor;
|
|
12
|
+
return typeof t == "function" && t instanceof t && e.call(t) == b;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
O as default
|
|
16
|
+
};
|