lookbook 2.3.5 → 2.3.6
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.
- checksums.yaml +4 -4
- data/app/components/lookbook/button/component.html.erb +1 -1
- data/app/components/lookbook/button/component.js +10 -3
- data/app/components/lookbook/display_options/editor/component.html.erb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/js/index.js +286 -280
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +2 -2
@@ -7760,11 +7760,14 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7760
7760
|
* `callback` is executed at the proper times in `throttle` and `end`
|
7761
7761
|
* debounce modes.
|
7762
7762
|
*/ var timeoutID;
|
7763
|
-
var cancelled = false;
|
7764
|
-
|
7763
|
+
var cancelled = false;
|
7764
|
+
// Keep track of the last time `callback` was executed.
|
7765
|
+
var lastExec = 0;
|
7766
|
+
// Function to clear existing timeout
|
7765
7767
|
function clearExistingTimeout() {
|
7766
7768
|
if (timeoutID) clearTimeout(timeoutID);
|
7767
|
-
}
|
7769
|
+
}
|
7770
|
+
// Function to cancel next exec
|
7768
7771
|
function cancel(options) {
|
7769
7772
|
var _ref2 = options || {}, _ref2$upcomingOnly = _ref2.upcomingOnly, upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
7770
7773
|
clearExistingTimeout();
|
@@ -7779,7 +7782,7 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7779
7782
|
var self = this;
|
7780
7783
|
var elapsed = Date.now() - lastExec;
|
7781
7784
|
if (cancelled) return;
|
7782
|
-
|
7785
|
+
// Execute `callback` and update the `lastExec` timestamp.
|
7783
7786
|
function exec() {
|
7784
7787
|
lastExec = Date.now();
|
7785
7788
|
callback.apply(self, arguments_);
|
@@ -7820,7 +7823,8 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7820
7823
|
* execute after `delay` ms.
|
7821
7824
|
*/ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
7822
7825
|
}
|
7823
|
-
wrapper.cancel = cancel;
|
7826
|
+
wrapper.cancel = cancel;
|
7827
|
+
// Return the wrapper function.
|
7824
7828
|
return wrapper;
|
7825
7829
|
}
|
7826
7830
|
/* eslint-disable no-undefined */ /**
|
@@ -8026,7 +8030,102 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
8026
8030
|
}
|
8027
8031
|
|
8028
8032
|
|
8029
|
-
var $
|
8033
|
+
var $a700a883f9bd2df0$exports = {};
|
8034
|
+
var $99486586f6691564$exports = {};
|
8035
|
+
|
8036
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
8037
|
+
|
8038
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
8039
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
8040
|
+
return {};
|
8041
|
+
}
|
8042
|
+
|
8043
|
+
|
8044
|
+
var $e398acaded942bbe$exports = {};
|
8045
|
+
|
8046
|
+
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
8047
|
+
|
8048
|
+
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
8049
|
+
|
8050
|
+
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
8051
|
+
return {
|
8052
|
+
width: 0,
|
8053
|
+
height: 0,
|
8054
|
+
resizing: false,
|
8055
|
+
target: null,
|
8056
|
+
init () {
|
8057
|
+
this.target = document.querySelector(targetSelector);
|
8058
|
+
if (this.target) {
|
8059
|
+
this.width = Math.round(this.target.clientWidth);
|
8060
|
+
this.height = Math.round(this.target.clientHeight);
|
8061
|
+
this.createObserver();
|
8062
|
+
}
|
8063
|
+
},
|
8064
|
+
createObserver () {
|
8065
|
+
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
8066
|
+
this.width = width;
|
8067
|
+
this.height = height;
|
8068
|
+
});
|
8069
|
+
},
|
8070
|
+
tearDown () {
|
8071
|
+
if (this.observer) this.observer.disconnect();
|
8072
|
+
}
|
8073
|
+
};
|
8074
|
+
}
|
8075
|
+
|
8076
|
+
|
8077
|
+
var $216ef7001f59f21d$exports = {};
|
8078
|
+
|
8079
|
+
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
8080
|
+
|
8081
|
+
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
|
8082
|
+
function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
8083
|
+
return {};
|
8084
|
+
}
|
8085
|
+
|
8086
|
+
|
8087
|
+
var $47a1c62621be0c54$exports = {};
|
8088
|
+
|
8089
|
+
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
8090
|
+
|
8091
|
+
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
8092
|
+
var $4e31c85e11272811$exports = {};
|
8093
|
+
|
8094
|
+
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
8095
|
+
|
8096
|
+
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
8097
|
+
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
8098
|
+
|
8099
|
+
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
8100
|
+
let copyTimeout = null;
|
8101
|
+
return Object.assign(context, {
|
8102
|
+
copied: false,
|
8103
|
+
async copyToClipboard (target = null) {
|
8104
|
+
let targetEl;
|
8105
|
+
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
8106
|
+
else if (typeof target === "string") targetEl = document.querySelector(target);
|
8107
|
+
if (!targetEl) {
|
8108
|
+
this.warn("Could not find copy target");
|
8109
|
+
return false;
|
8110
|
+
}
|
8111
|
+
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
8112
|
+
await window.navigator.clipboard.writeText(content);
|
8113
|
+
this.copied = true;
|
8114
|
+
if (copyTimeout) clearTimeout(copyTimeout);
|
8115
|
+
copyTimeout = setTimeout(()=>{
|
8116
|
+
this.copied = false;
|
8117
|
+
this.onCopyComplete();
|
8118
|
+
}, 1000);
|
8119
|
+
return content;
|
8120
|
+
},
|
8121
|
+
onCopyComplete () {}
|
8122
|
+
});
|
8123
|
+
}
|
8124
|
+
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
8125
|
+
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
8126
|
+
}
|
8127
|
+
|
8128
|
+
|
8030
8129
|
var $cbd28b10fa9798c7$exports = {};
|
8031
8130
|
|
8032
8131
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -11491,7 +11590,9 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11491
11590
|
let tooltip = null;
|
11492
11591
|
let dropdown = null;
|
11493
11592
|
return {
|
11593
|
+
updateAfterNavigate: true,
|
11494
11594
|
init () {
|
11595
|
+
this.updateAfterNavigate = this.$el.dataset.updateAfterNavigate !== "false";
|
11495
11596
|
if (this.$refs.tooltip) tooltip = (0, $7a759511c361f2bd$export$353372104066311a)(this, {
|
11496
11597
|
target: this.$refs.icon
|
11497
11598
|
});
|
@@ -11526,7 +11627,7 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11526
11627
|
updateDropdown () {
|
11527
11628
|
if (dropdown) {
|
11528
11629
|
dropdown.hide();
|
11529
|
-
this.$nextTick(()=>{
|
11630
|
+
if (this.updateAfterNavigate) this.$nextTick(()=>{
|
11530
11631
|
dropdown.setContent(this.dropdownContent);
|
11531
11632
|
});
|
11532
11633
|
}
|
@@ -11545,59 +11646,6 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11545
11646
|
}
|
11546
11647
|
|
11547
11648
|
|
11548
|
-
var $99486586f6691564$exports = {};
|
11549
|
-
|
11550
|
-
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11551
|
-
|
11552
|
-
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11553
|
-
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11554
|
-
return {};
|
11555
|
-
}
|
11556
|
-
|
11557
|
-
|
11558
|
-
var $47a1c62621be0c54$exports = {};
|
11559
|
-
|
11560
|
-
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
11561
|
-
|
11562
|
-
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
11563
|
-
var $4e31c85e11272811$exports = {};
|
11564
|
-
|
11565
|
-
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
11566
|
-
|
11567
|
-
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
11568
|
-
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
11569
|
-
|
11570
|
-
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
11571
|
-
let copyTimeout = null;
|
11572
|
-
return Object.assign(context, {
|
11573
|
-
copied: false,
|
11574
|
-
async copyToClipboard (target = null) {
|
11575
|
-
let targetEl;
|
11576
|
-
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
11577
|
-
else if (typeof target === "string") targetEl = document.querySelector(target);
|
11578
|
-
if (!targetEl) {
|
11579
|
-
this.warn("Could not find copy target");
|
11580
|
-
return false;
|
11581
|
-
}
|
11582
|
-
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
11583
|
-
await window.navigator.clipboard.writeText(content);
|
11584
|
-
this.copied = true;
|
11585
|
-
if (copyTimeout) clearTimeout(copyTimeout);
|
11586
|
-
copyTimeout = setTimeout(()=>{
|
11587
|
-
this.copied = false;
|
11588
|
-
this.onCopyComplete();
|
11589
|
-
}, 1000);
|
11590
|
-
return content;
|
11591
|
-
},
|
11592
|
-
onCopyComplete () {}
|
11593
|
-
});
|
11594
|
-
}
|
11595
|
-
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
11596
|
-
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
11597
|
-
}
|
11598
|
-
|
11599
|
-
|
11600
|
-
|
11601
11649
|
function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
11602
11650
|
const button = (0, $cbd28b10fa9798c7$export$2e2bcd8739ae039)();
|
11603
11651
|
return {
|
@@ -11611,49 +11659,32 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11611
11659
|
}
|
11612
11660
|
|
11613
11661
|
|
11614
|
-
var $e398acaded942bbe$exports = {};
|
11615
11662
|
|
11616
|
-
$
|
11663
|
+
var $e9904a14dabf652d$exports = {};
|
11617
11664
|
|
11618
|
-
$parcel$
|
11665
|
+
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
11619
11666
|
|
11620
|
-
|
11667
|
+
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
11668
|
+
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11621
11669
|
return {
|
11622
|
-
|
11623
|
-
|
11624
|
-
|
11625
|
-
target: null,
|
11626
|
-
init () {
|
11627
|
-
this.target = document.querySelector(targetSelector);
|
11628
|
-
if (this.target) {
|
11629
|
-
this.width = Math.round(this.target.clientWidth);
|
11630
|
-
this.height = Math.round(this.target.clientHeight);
|
11631
|
-
this.createObserver();
|
11632
|
-
}
|
11670
|
+
focussed: false,
|
11671
|
+
get active () {
|
11672
|
+
return store.active;
|
11633
11673
|
},
|
11634
|
-
|
11635
|
-
|
11636
|
-
this.width = width;
|
11637
|
-
this.height = height;
|
11638
|
-
});
|
11674
|
+
get text () {
|
11675
|
+
return store.text;
|
11639
11676
|
},
|
11640
|
-
|
11641
|
-
if (
|
11677
|
+
clear () {
|
11678
|
+
if (store.raw === "") this.$refs.input.blur();
|
11679
|
+
else store.raw = "";
|
11680
|
+
},
|
11681
|
+
focus () {
|
11682
|
+
this.$refs.input.focus();
|
11642
11683
|
}
|
11643
11684
|
};
|
11644
11685
|
}
|
11645
11686
|
|
11646
11687
|
|
11647
|
-
var $216ef7001f59f21d$exports = {};
|
11648
|
-
|
11649
|
-
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
11650
|
-
|
11651
|
-
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
|
11652
|
-
function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
11653
|
-
return {};
|
11654
|
-
}
|
11655
|
-
|
11656
|
-
|
11657
11688
|
var $d92d9d5253f84566$exports = {};
|
11658
11689
|
|
11659
11690
|
$parcel$defineInteropFlag($d92d9d5253f84566$exports);
|
@@ -11698,31 +11729,6 @@ function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
|
|
11698
11729
|
}
|
11699
11730
|
|
11700
11731
|
|
11701
|
-
var $e9904a14dabf652d$exports = {};
|
11702
|
-
|
11703
|
-
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
11704
|
-
|
11705
|
-
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
11706
|
-
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11707
|
-
return {
|
11708
|
-
focussed: false,
|
11709
|
-
get active () {
|
11710
|
-
return store.active;
|
11711
|
-
},
|
11712
|
-
get text () {
|
11713
|
-
return store.text;
|
11714
|
-
},
|
11715
|
-
clear () {
|
11716
|
-
if (store.raw === "") this.$refs.input.blur();
|
11717
|
-
else store.raw = "";
|
11718
|
-
},
|
11719
|
-
focus () {
|
11720
|
-
this.$refs.input.focus();
|
11721
|
-
}
|
11722
|
-
};
|
11723
|
-
}
|
11724
|
-
|
11725
|
-
|
11726
11732
|
var $506dabb2bf255b38$exports = {};
|
11727
11733
|
|
11728
11734
|
$parcel$defineInteropFlag($506dabb2bf255b38$exports);
|
@@ -12273,33 +12279,6 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12273
12279
|
}
|
12274
12280
|
|
12275
12281
|
|
12276
|
-
var $a87dacf5139b5e2f$exports = {};
|
12277
|
-
|
12278
|
-
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12279
|
-
|
12280
|
-
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12281
|
-
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12282
|
-
return {
|
12283
|
-
get store () {
|
12284
|
-
return store || this;
|
12285
|
-
},
|
12286
|
-
get id () {
|
12287
|
-
return this.$root.id;
|
12288
|
-
},
|
12289
|
-
get panels () {
|
12290
|
-
return Array.from(this.$refs.panels.children);
|
12291
|
-
},
|
12292
|
-
isActive (el) {
|
12293
|
-
return this.store.activeTab === this._getRef(el);
|
12294
|
-
},
|
12295
|
-
// protected
|
12296
|
-
_getRef (el) {
|
12297
|
-
return el.getAttribute("x-ref");
|
12298
|
-
}
|
12299
|
-
};
|
12300
|
-
}
|
12301
|
-
|
12302
|
-
|
12303
12282
|
var $0db07828cadc68e0$exports = {};
|
12304
12283
|
|
12305
12284
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12520,22 +12499,167 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12520
12499
|
}
|
12521
12500
|
|
12522
12501
|
|
12523
|
-
$
|
12524
|
-
|
12525
|
-
|
12526
|
-
|
12527
|
-
|
12528
|
-
|
12529
|
-
|
12530
|
-
|
12531
|
-
|
12532
|
-
|
12502
|
+
var $a87dacf5139b5e2f$exports = {};
|
12503
|
+
|
12504
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12505
|
+
|
12506
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12507
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12508
|
+
return {
|
12509
|
+
get store () {
|
12510
|
+
return store || this;
|
12511
|
+
},
|
12512
|
+
get id () {
|
12513
|
+
return this.$root.id;
|
12514
|
+
},
|
12515
|
+
get panels () {
|
12516
|
+
return Array.from(this.$refs.panels.children);
|
12517
|
+
},
|
12518
|
+
isActive (el) {
|
12519
|
+
return this.store.activeTab === this._getRef(el);
|
12520
|
+
},
|
12521
|
+
// protected
|
12522
|
+
_getRef (el) {
|
12523
|
+
return el.getAttribute("x-ref");
|
12524
|
+
}
|
12525
|
+
};
|
12526
|
+
}
|
12527
|
+
|
12528
|
+
|
12529
|
+
$a700a883f9bd2df0$exports = {
|
12530
|
+
"code": $99486586f6691564$exports,
|
12531
|
+
"dimensions_display": $e398acaded942bbe$exports,
|
12532
|
+
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12533
|
+
"copy_button": $47a1c62621be0c54$exports,
|
12534
|
+
"button": $cbd28b10fa9798c7$exports,
|
12535
|
+
"filter": $e9904a14dabf652d$exports,
|
12536
|
+
"nav": $d92d9d5253f84566$exports,
|
12537
|
+
"split_layout": $506dabb2bf255b38$exports,
|
12533
12538
|
"tabs": $0db07828cadc68e0$exports,
|
12534
|
-
"viewport": $6d64716f0b34fdf4$exports
|
12539
|
+
"viewport": $6d64716f0b34fdf4$exports,
|
12540
|
+
"tab_panels": $a87dacf5139b5e2f$exports
|
12535
12541
|
};
|
12536
12542
|
|
12537
12543
|
|
12538
|
-
var $
|
12544
|
+
var $6178ee12f80cbf68$exports = {};
|
12545
|
+
var $6a9b69d9cc7f810f$exports = {};
|
12546
|
+
|
12547
|
+
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
12548
|
+
|
12549
|
+
$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
|
12550
|
+
var $cdfeaa1e0e8d642c$exports = {};
|
12551
|
+
(function(global, factory) {
|
12552
|
+
$cdfeaa1e0e8d642c$exports = factory();
|
12553
|
+
})($cdfeaa1e0e8d642c$exports, function() {
|
12554
|
+
"use strict";
|
12555
|
+
/* eslint-disable no-var */ function assign(target) {
|
12556
|
+
for(var i = 1; i < arguments.length; i++){
|
12557
|
+
var source = arguments[i];
|
12558
|
+
for(var key in source)target[key] = source[key];
|
12559
|
+
}
|
12560
|
+
return target;
|
12561
|
+
}
|
12562
|
+
/* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
|
12563
|
+
read: function(value) {
|
12564
|
+
if (value[0] === '"') value = value.slice(1, -1);
|
12565
|
+
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
12566
|
+
},
|
12567
|
+
write: function(value) {
|
12568
|
+
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
12569
|
+
}
|
12570
|
+
};
|
12571
|
+
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
|
12572
|
+
function set(name, value, attributes) {
|
12573
|
+
if (typeof document === "undefined") return;
|
12574
|
+
attributes = assign({}, defaultAttributes, attributes);
|
12575
|
+
if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
12576
|
+
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
|
12577
|
+
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
12578
|
+
var stringifiedAttributes = "";
|
12579
|
+
for(var attributeName in attributes){
|
12580
|
+
if (!attributes[attributeName]) continue;
|
12581
|
+
stringifiedAttributes += "; " + attributeName;
|
12582
|
+
if (attributes[attributeName] === true) continue;
|
12583
|
+
// Considers RFC 6265 section 5.2:
|
12584
|
+
// ...
|
12585
|
+
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
12586
|
+
// character:
|
12587
|
+
// Consume the characters of the unparsed-attributes up to,
|
12588
|
+
// not including, the first %x3B (";") character.
|
12589
|
+
// ...
|
12590
|
+
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
12591
|
+
}
|
12592
|
+
return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
|
12593
|
+
}
|
12594
|
+
function get(name) {
|
12595
|
+
if (typeof document === "undefined" || arguments.length && !name) return;
|
12596
|
+
// To prevent the for loop in the first place assign an empty array
|
12597
|
+
// in case there are no cookies at all.
|
12598
|
+
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
12599
|
+
var jar = {};
|
12600
|
+
for(var i = 0; i < cookies.length; i++){
|
12601
|
+
var parts = cookies[i].split("=");
|
12602
|
+
var value = parts.slice(1).join("=");
|
12603
|
+
try {
|
12604
|
+
var found = decodeURIComponent(parts[0]);
|
12605
|
+
jar[found] = converter.read(value, found);
|
12606
|
+
if (name === found) break;
|
12607
|
+
} catch (e) {}
|
12608
|
+
}
|
12609
|
+
return name ? jar[name] : jar;
|
12610
|
+
}
|
12611
|
+
return Object.create({
|
12612
|
+
set: set,
|
12613
|
+
get: get,
|
12614
|
+
remove: function(name, attributes) {
|
12615
|
+
set(name, "", assign({}, attributes, {
|
12616
|
+
expires: -1
|
12617
|
+
}));
|
12618
|
+
},
|
12619
|
+
withAttributes: function(attributes) {
|
12620
|
+
return init(this.converter, assign({}, this.attributes, attributes));
|
12621
|
+
},
|
12622
|
+
withConverter: function(converter) {
|
12623
|
+
return init(assign({}, this.converter, converter), this.attributes);
|
12624
|
+
}
|
12625
|
+
}, {
|
12626
|
+
attributes: {
|
12627
|
+
value: Object.freeze(defaultAttributes)
|
12628
|
+
},
|
12629
|
+
converter: {
|
12630
|
+
value: Object.freeze(converter)
|
12631
|
+
}
|
12632
|
+
});
|
12633
|
+
}
|
12634
|
+
var api = init(defaultConverter, {
|
12635
|
+
path: "/"
|
12636
|
+
});
|
12637
|
+
/* eslint-enable no-var */ return api;
|
12638
|
+
});
|
12639
|
+
|
12640
|
+
|
12641
|
+
|
12642
|
+
function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
|
12643
|
+
return {
|
12644
|
+
name: name,
|
12645
|
+
value: value,
|
12646
|
+
init () {
|
12647
|
+
this.$watch("value", ()=>this.update());
|
12648
|
+
},
|
12649
|
+
update () {
|
12650
|
+
(0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
|
12651
|
+
const searchParams = new URLSearchParams(window.location.search);
|
12652
|
+
const display = searchParams.get("_display");
|
12653
|
+
const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
|
12654
|
+
displayParams[this.name] = this.value;
|
12655
|
+
searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
|
12656
|
+
const path = location.href.replace(location.search, "");
|
12657
|
+
this.navigateTo(`${path}?${searchParams.toString()}`);
|
12658
|
+
}
|
12659
|
+
};
|
12660
|
+
}
|
12661
|
+
|
12662
|
+
|
12539
12663
|
var $c299e36fa9e271bc$exports = {};
|
12540
12664
|
|
12541
12665
|
$parcel$defineInteropFlag($c299e36fa9e271bc$exports);
|
@@ -13485,124 +13609,6 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }
|
|
13485
13609
|
}
|
13486
13610
|
|
13487
13611
|
|
13488
|
-
var $6a9b69d9cc7f810f$exports = {};
|
13489
|
-
|
13490
|
-
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
13491
|
-
|
13492
|
-
$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
|
13493
|
-
var $cdfeaa1e0e8d642c$exports = {};
|
13494
|
-
(function(global, factory) {
|
13495
|
-
$cdfeaa1e0e8d642c$exports = factory();
|
13496
|
-
})($cdfeaa1e0e8d642c$exports, function() {
|
13497
|
-
"use strict";
|
13498
|
-
/* eslint-disable no-var */ function assign(target) {
|
13499
|
-
for(var i = 1; i < arguments.length; i++){
|
13500
|
-
var source = arguments[i];
|
13501
|
-
for(var key in source)target[key] = source[key];
|
13502
|
-
}
|
13503
|
-
return target;
|
13504
|
-
}
|
13505
|
-
/* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
|
13506
|
-
read: function(value) {
|
13507
|
-
if (value[0] === '"') value = value.slice(1, -1);
|
13508
|
-
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
13509
|
-
},
|
13510
|
-
write: function(value) {
|
13511
|
-
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
13512
|
-
}
|
13513
|
-
};
|
13514
|
-
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
|
13515
|
-
function set(name, value, attributes) {
|
13516
|
-
if (typeof document === "undefined") return;
|
13517
|
-
attributes = assign({}, defaultAttributes, attributes);
|
13518
|
-
if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
13519
|
-
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
|
13520
|
-
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
13521
|
-
var stringifiedAttributes = "";
|
13522
|
-
for(var attributeName in attributes){
|
13523
|
-
if (!attributes[attributeName]) continue;
|
13524
|
-
stringifiedAttributes += "; " + attributeName;
|
13525
|
-
if (attributes[attributeName] === true) continue;
|
13526
|
-
// Considers RFC 6265 section 5.2:
|
13527
|
-
// ...
|
13528
|
-
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
13529
|
-
// character:
|
13530
|
-
// Consume the characters of the unparsed-attributes up to,
|
13531
|
-
// not including, the first %x3B (";") character.
|
13532
|
-
// ...
|
13533
|
-
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
13534
|
-
}
|
13535
|
-
return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
|
13536
|
-
}
|
13537
|
-
function get(name) {
|
13538
|
-
if (typeof document === "undefined" || arguments.length && !name) return;
|
13539
|
-
// To prevent the for loop in the first place assign an empty array
|
13540
|
-
// in case there are no cookies at all.
|
13541
|
-
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
13542
|
-
var jar = {};
|
13543
|
-
for(var i = 0; i < cookies.length; i++){
|
13544
|
-
var parts = cookies[i].split("=");
|
13545
|
-
var value = parts.slice(1).join("=");
|
13546
|
-
try {
|
13547
|
-
var found = decodeURIComponent(parts[0]);
|
13548
|
-
jar[found] = converter.read(value, found);
|
13549
|
-
if (name === found) break;
|
13550
|
-
} catch (e) {}
|
13551
|
-
}
|
13552
|
-
return name ? jar[name] : jar;
|
13553
|
-
}
|
13554
|
-
return Object.create({
|
13555
|
-
set: set,
|
13556
|
-
get: get,
|
13557
|
-
remove: function(name, attributes) {
|
13558
|
-
set(name, "", assign({}, attributes, {
|
13559
|
-
expires: -1
|
13560
|
-
}));
|
13561
|
-
},
|
13562
|
-
withAttributes: function(attributes) {
|
13563
|
-
return init(this.converter, assign({}, this.attributes, attributes));
|
13564
|
-
},
|
13565
|
-
withConverter: function(converter) {
|
13566
|
-
return init(assign({}, this.converter, converter), this.attributes);
|
13567
|
-
}
|
13568
|
-
}, {
|
13569
|
-
attributes: {
|
13570
|
-
value: Object.freeze(defaultAttributes)
|
13571
|
-
},
|
13572
|
-
converter: {
|
13573
|
-
value: Object.freeze(converter)
|
13574
|
-
}
|
13575
|
-
});
|
13576
|
-
}
|
13577
|
-
var api = init(defaultConverter, {
|
13578
|
-
path: "/"
|
13579
|
-
});
|
13580
|
-
/* eslint-enable no-var */ return api;
|
13581
|
-
});
|
13582
|
-
|
13583
|
-
|
13584
|
-
|
13585
|
-
function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
|
13586
|
-
return {
|
13587
|
-
name: name,
|
13588
|
-
value: value,
|
13589
|
-
init () {
|
13590
|
-
this.$watch("value", ()=>this.update());
|
13591
|
-
},
|
13592
|
-
update () {
|
13593
|
-
(0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
|
13594
|
-
const searchParams = new URLSearchParams(window.location.search);
|
13595
|
-
const display = searchParams.get("_display");
|
13596
|
-
const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
|
13597
|
-
displayParams[this.name] = this.value;
|
13598
|
-
searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
|
13599
|
-
const path = location.href.replace(location.search, "");
|
13600
|
-
this.navigateTo(`${path}?${searchParams.toString()}`);
|
13601
|
-
}
|
13602
|
-
};
|
13603
|
-
}
|
13604
|
-
|
13605
|
-
|
13606
13612
|
var $1a7a7298eec5b755$exports = {};
|
13607
13613
|
|
13608
13614
|
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
@@ -13635,16 +13641,16 @@ function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
|
13635
13641
|
}
|
13636
13642
|
|
13637
13643
|
|
13638
|
-
$
|
13644
|
+
$6178ee12f80cbf68$exports = {
|
13645
|
+
"display_options": {
|
13646
|
+
"field": $6a9b69d9cc7f810f$exports
|
13647
|
+
},
|
13639
13648
|
"embed": {
|
13640
13649
|
"inspector": $c299e36fa9e271bc$exports
|
13641
13650
|
},
|
13642
13651
|
"nav": {
|
13643
13652
|
"item": $9b24cbeb3a465447$exports
|
13644
13653
|
},
|
13645
|
-
"display_options": {
|
13646
|
-
"field": $6a9b69d9cc7f810f$exports
|
13647
|
-
},
|
13648
13654
|
"params": {
|
13649
13655
|
"editor": $1a7a7298eec5b755$exports,
|
13650
13656
|
"field": $e773f8ef556b41ff$exports
|
@@ -13715,8 +13721,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13715
13721
|
// Components
|
13716
13722
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13717
13723
|
[
|
13718
|
-
$
|
13719
|
-
$
|
13724
|
+
$a700a883f9bd2df0$exports,
|
13725
|
+
$6178ee12f80cbf68$exports,
|
13720
13726
|
$d56e5cced44001d2$exports
|
13721
13727
|
].forEach((scripts)=>{
|
13722
13728
|
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
|