lookbook 2.3.9 → 2.3.10

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.
@@ -8030,7 +8030,17 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
8030
8030
  }
8031
8031
 
8032
8032
 
8033
- var $c9dfaeb25bf110ce$exports = {};
8033
+ var $33a2663dc04d4f53$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
+
8034
8044
  var $cbd28b10fa9798c7$exports = {};
8035
8045
 
8036
8046
  $parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
@@ -11551,16 +11561,6 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
11551
11561
  }
11552
11562
 
11553
11563
 
11554
- var $99486586f6691564$exports = {};
11555
-
11556
- $parcel$defineInteropFlag($99486586f6691564$exports);
11557
-
11558
- $parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
11559
- function $99486586f6691564$export$2e2bcd8739ae039() {
11560
- return {};
11561
- }
11562
-
11563
-
11564
11564
  var $47a1c62621be0c54$exports = {};
11565
11565
 
11566
11566
  $parcel$defineInteropFlag($47a1c62621be0c54$exports);
@@ -11729,6 +11729,126 @@ function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
11729
11729
  }
11730
11730
 
11731
11731
 
11732
+ var $a87dacf5139b5e2f$exports = {};
11733
+
11734
+ $parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
11735
+
11736
+ $parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
11737
+ function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
11738
+ return {
11739
+ get store () {
11740
+ return store || this;
11741
+ },
11742
+ get id () {
11743
+ return this.$root.id;
11744
+ },
11745
+ get panels () {
11746
+ return Array.from(this.$refs.panels.children);
11747
+ },
11748
+ isActive (el) {
11749
+ return this.store.activeTab === this._getRef(el);
11750
+ },
11751
+ // protected
11752
+ _getRef (el) {
11753
+ return el.getAttribute("x-ref");
11754
+ }
11755
+ };
11756
+ }
11757
+
11758
+
11759
+ var $0db07828cadc68e0$exports = {};
11760
+
11761
+ $parcel$defineInteropFlag($0db07828cadc68e0$exports);
11762
+
11763
+ $parcel$export($0db07828cadc68e0$exports, "default", () => $0db07828cadc68e0$export$2e2bcd8739ae039);
11764
+
11765
+
11766
+
11767
+
11768
+ function $0db07828cadc68e0$export$2e2bcd8739ae039(store) {
11769
+ const initial = store ? store.activeTab : null;
11770
+ let dropdown = null;
11771
+ return {
11772
+ visibleTabsCount: 0,
11773
+ triggerLeft: 0,
11774
+ get store () {
11775
+ return store || this;
11776
+ },
11777
+ get tabs () {
11778
+ return this.$refs.tabs ? Array.from(this.$refs.tabs.children) : [];
11779
+ },
11780
+ get dropdownTabs () {
11781
+ return Array.from(this.$refs.tabsDropdown ? this.$refs.tabsDropdown.children : []);
11782
+ },
11783
+ get tabWidths () {
11784
+ return this.tabs.map((tab)=>(0, $490552754c23ef6f$export$bdf7e699b242f476)(tab, {
11785
+ includeMargins: true
11786
+ }).width);
11787
+ },
11788
+ init () {
11789
+ this.$nextTick(()=>{
11790
+ if (this.$root.parentElement.offsetWidth === this.$root.offsetWidth) this.visibleTabsCount = this.tabs.length;
11791
+ dropdown = (0, $789b7d27a7c715a6$export$2e2bcd8739ae039)(this.$refs.dropdownTrigger, {
11792
+ content: this.$refs.tabsDropdown,
11793
+ theme: "menu",
11794
+ interactive: true,
11795
+ trigger: "click",
11796
+ placement: "bottom",
11797
+ appendTo: this.$root
11798
+ });
11799
+ const initialTab = initial ? this.tabs.find((t)=>this._getRef(t) === initial) : this.tabs[0];
11800
+ this.selectTab(initialTab || this.tabs[0], true);
11801
+ this.parentObserver = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$root.parentElement, (0, $c5d017602d25d050$export$61fc7d43ac8f84b0)(10, this.handleResize.bind(this)));
11802
+ this.$watch("visibleTabsCount", (value)=>{
11803
+ this.debug(`'#${this.$root.id}' visible tabs count:`, value);
11804
+ });
11805
+ });
11806
+ },
11807
+ handleResize ({ width: width }) {
11808
+ if (width === this._lastMeasuredWidth) return;
11809
+ if (width === this.$root.offsetWidth) {
11810
+ this.visibleTabsCount = this.tabs.length;
11811
+ return;
11812
+ }
11813
+ let sumTabWidths = 60;
11814
+ let triggerLeft = 20;
11815
+ let visibleTabsCount = 0;
11816
+ this.tabWidths.forEach((tabWidth)=>{
11817
+ sumTabWidths += tabWidth;
11818
+ if (sumTabWidths < width) {
11819
+ triggerLeft += tabWidth;
11820
+ visibleTabsCount++;
11821
+ }
11822
+ });
11823
+ this.visibleTabsCount = visibleTabsCount;
11824
+ this.triggerLeft = triggerLeft;
11825
+ this._lastMeasuredWidth = width;
11826
+ },
11827
+ selectTab (el, initial = false) {
11828
+ this.store.activeTab = this._getRef(el);
11829
+ dropdown.hide();
11830
+ if (!initial) this.$dispatch("tabs:change", {
11831
+ tabs: this
11832
+ });
11833
+ },
11834
+ isSelected (el) {
11835
+ return this.store.activeTab === this._getRef(el);
11836
+ },
11837
+ isDisabled (el) {
11838
+ return el.getAttribute("data-disabled") == "true";
11839
+ },
11840
+ hasHiddenTabs () {
11841
+ return this.visibleTabsCount < this.tabs.length;
11842
+ },
11843
+ // protected
11844
+ _lastMeasuredWidth: 0,
11845
+ _getRef (el) {
11846
+ return el ? el.getAttribute("x-ref").replace("dropdown-", "") : null;
11847
+ }
11848
+ };
11849
+ }
11850
+
11851
+
11732
11852
  var $506dabb2bf255b38$exports = {};
11733
11853
 
11734
11854
  $parcel$defineInteropFlag($506dabb2bf255b38$exports);
@@ -12279,179 +12399,59 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
12279
12399
  }
12280
12400
 
12281
12401
 
12282
- var $a87dacf5139b5e2f$exports = {};
12402
+ var $6d64716f0b34fdf4$exports = {};
12283
12403
 
12284
- $parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
12404
+ $parcel$defineInteropFlag($6d64716f0b34fdf4$exports);
12285
12405
 
12286
- $parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
12287
- function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
12406
+ $parcel$export($6d64716f0b34fdf4$exports, "default", () => $6d64716f0b34fdf4$export$2e2bcd8739ae039);
12407
+ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
12408
+ store = store || {
12409
+ width: "100%",
12410
+ height: "100%"
12411
+ };
12412
+ store.resizing = false;
12288
12413
  return {
12289
- get store () {
12290
- return store || this;
12414
+ store: store,
12415
+ get maxWidth () {
12416
+ return this.store.width === "100%" ? "100%" : `${store.width}px`;
12291
12417
  },
12292
- get id () {
12293
- return this.$root.id;
12418
+ get maxHeight () {
12419
+ return this.store.height === "100%" ? "100%" : `${store.height}px`;
12294
12420
  },
12295
- get panels () {
12296
- return Array.from(this.$refs.panels.children);
12421
+ get parentWidth () {
12422
+ return Math.round(this.$root.clientWidth);
12297
12423
  },
12298
- isActive (el) {
12299
- return this.store.activeTab === this._getRef(el);
12424
+ get parentHeight () {
12425
+ return Math.round(this.$root.clientHeight);
12300
12426
  },
12301
- // protected
12302
- _getRef (el) {
12303
- return el.getAttribute("x-ref");
12304
- }
12305
- };
12306
- }
12307
-
12308
-
12309
- var $0db07828cadc68e0$exports = {};
12310
-
12311
- $parcel$defineInteropFlag($0db07828cadc68e0$exports);
12312
-
12313
- $parcel$export($0db07828cadc68e0$exports, "default", () => $0db07828cadc68e0$export$2e2bcd8739ae039);
12314
-
12315
-
12316
-
12317
-
12318
- function $0db07828cadc68e0$export$2e2bcd8739ae039(store) {
12319
- const initial = store ? store.activeTab : null;
12320
- let dropdown = null;
12321
- return {
12322
- visibleTabsCount: 0,
12323
- triggerLeft: 0,
12324
- get store () {
12325
- return store || this;
12427
+ get reflowing () {
12428
+ return this.$store.layout.reflowing;
12326
12429
  },
12327
- get tabs () {
12328
- return this.$refs.tabs ? Array.from(this.$refs.tabs.children) : [];
12430
+ reloadIframe () {
12431
+ this.$refs.iframe.contentWindow.location.reload();
12329
12432
  },
12330
- get dropdownTabs () {
12331
- return Array.from(this.$refs.tabsDropdown ? this.$refs.tabsDropdown.children : []);
12433
+ start () {
12434
+ this.$dispatch("viewport:resize-start", this._resizeData);
12435
+ this.$store.layout.reflowing = true;
12436
+ this.store.resizing = true;
12332
12437
  },
12333
- get tabWidths () {
12334
- return this.tabs.map((tab)=>(0, $490552754c23ef6f$export$bdf7e699b242f476)(tab, {
12335
- includeMargins: true
12336
- }).width);
12438
+ end () {
12439
+ this.$store.layout.reflowing = false;
12440
+ this.store.resizing = false;
12441
+ this.$dispatch("viewport:resize-complete", this._resizeData);
12337
12442
  },
12338
- init () {
12339
- this.$nextTick(()=>{
12340
- if (this.$root.parentElement.offsetWidth === this.$root.offsetWidth) this.visibleTabsCount = this.tabs.length;
12341
- dropdown = (0, $789b7d27a7c715a6$export$2e2bcd8739ae039)(this.$refs.dropdownTrigger, {
12342
- content: this.$refs.tabsDropdown,
12343
- theme: "menu",
12344
- interactive: true,
12345
- trigger: "click",
12346
- placement: "bottom",
12347
- appendTo: this.$root
12348
- });
12349
- const initialTab = initial ? this.tabs.find((t)=>this._getRef(t) === initial) : this.tabs[0];
12350
- this.selectTab(initialTab || this.tabs[0], true);
12351
- this.parentObserver = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$root.parentElement, (0, $c5d017602d25d050$export$61fc7d43ac8f84b0)(10, this.handleResize.bind(this)));
12352
- this.$watch("visibleTabsCount", (value)=>{
12353
- this.debug(`'#${this.$root.id}' visible tabs count:`, value);
12354
- });
12355
- });
12443
+ onResizeStart (e) {
12444
+ this.onResizeWidthStart(e);
12445
+ this.onResizeHeightStart(e);
12356
12446
  },
12357
- handleResize ({ width: width }) {
12358
- if (width === this._lastMeasuredWidth) return;
12359
- if (width === this.$root.offsetWidth) {
12360
- this.visibleTabsCount = this.tabs.length;
12361
- return;
12362
- }
12363
- let sumTabWidths = 60;
12364
- let triggerLeft = 20;
12365
- let visibleTabsCount = 0;
12366
- this.tabWidths.forEach((tabWidth)=>{
12367
- sumTabWidths += tabWidth;
12368
- if (sumTabWidths < width) {
12369
- triggerLeft += tabWidth;
12370
- visibleTabsCount++;
12371
- }
12372
- });
12373
- this.visibleTabsCount = visibleTabsCount;
12374
- this.triggerLeft = triggerLeft;
12375
- this._lastMeasuredWidth = width;
12376
- },
12377
- selectTab (el, initial = false) {
12378
- this.store.activeTab = this._getRef(el);
12379
- dropdown.hide();
12380
- if (!initial) this.$dispatch("tabs:change", {
12381
- tabs: this
12382
- });
12383
- },
12384
- isSelected (el) {
12385
- return this.store.activeTab === this._getRef(el);
12386
- },
12387
- isDisabled (el) {
12388
- return el.getAttribute("data-disabled") == "true";
12389
- },
12390
- hasHiddenTabs () {
12391
- return this.visibleTabsCount < this.tabs.length;
12392
- },
12393
- // protected
12394
- _lastMeasuredWidth: 0,
12395
- _getRef (el) {
12396
- return el ? el.getAttribute("x-ref").replace("dropdown-", "") : null;
12397
- }
12398
- };
12399
- }
12400
-
12401
-
12402
- var $6d64716f0b34fdf4$exports = {};
12403
-
12404
- $parcel$defineInteropFlag($6d64716f0b34fdf4$exports);
12405
-
12406
- $parcel$export($6d64716f0b34fdf4$exports, "default", () => $6d64716f0b34fdf4$export$2e2bcd8739ae039);
12407
- function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
12408
- store = store || {
12409
- width: "100%",
12410
- height: "100%"
12411
- };
12412
- store.resizing = false;
12413
- return {
12414
- store: store,
12415
- get maxWidth () {
12416
- return this.store.width === "100%" ? "100%" : `${store.width}px`;
12417
- },
12418
- get maxHeight () {
12419
- return this.store.height === "100%" ? "100%" : `${store.height}px`;
12420
- },
12421
- get parentWidth () {
12422
- return Math.round(this.$root.clientWidth);
12423
- },
12424
- get parentHeight () {
12425
- return Math.round(this.$root.clientHeight);
12426
- },
12427
- get reflowing () {
12428
- return this.$store.layout.reflowing;
12429
- },
12430
- reloadIframe () {
12431
- this.$refs.iframe.contentWindow.location.reload();
12432
- },
12433
- start () {
12434
- this.$dispatch("viewport:resize-start", this._resizeData);
12435
- this.$store.layout.reflowing = true;
12436
- this.store.resizing = true;
12437
- },
12438
- end () {
12439
- this.$store.layout.reflowing = false;
12440
- this.store.resizing = false;
12441
- this.$dispatch("viewport:resize-complete", this._resizeData);
12442
- },
12443
- onResizeStart (e) {
12444
- this.onResizeWidthStart(e);
12445
- this.onResizeHeightStart(e);
12446
- },
12447
- toggleFullSize () {
12448
- const { height: height, width: width } = store;
12449
- if (height === "100%" && width === "100%") {
12450
- this.toggleFullHeight();
12451
- this.toggleFullWidth();
12452
- } else {
12453
- if (height !== "100%") this.toggleFullHeight();
12454
- if (width !== "100%") this.toggleFullWidth();
12447
+ toggleFullSize () {
12448
+ const { height: height, width: width } = store;
12449
+ if (height === "100%" && width === "100%") {
12450
+ this.toggleFullHeight();
12451
+ this.toggleFullWidth();
12452
+ } else {
12453
+ if (height !== "100%") this.toggleFullHeight();
12454
+ if (width !== "100%") this.toggleFullWidth();
12455
12455
  }
12456
12456
  },
12457
12457
  onResizeWidth (e) {
@@ -12526,22 +12526,140 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
12526
12526
  }
12527
12527
 
12528
12528
 
12529
- $c9dfaeb25bf110ce$exports = {
12530
- "button": $cbd28b10fa9798c7$exports,
12529
+ $33a2663dc04d4f53$exports = {
12531
12530
  "code": $99486586f6691564$exports,
12531
+ "button": $cbd28b10fa9798c7$exports,
12532
12532
  "copy_button": $47a1c62621be0c54$exports,
12533
12533
  "dimensions_display": $e398acaded942bbe$exports,
12534
12534
  "embed_code_dropdown": $216ef7001f59f21d$exports,
12535
12535
  "filter": $e9904a14dabf652d$exports,
12536
12536
  "nav": $d92d9d5253f84566$exports,
12537
- "split_layout": $506dabb2bf255b38$exports,
12538
12537
  "tab_panels": $a87dacf5139b5e2f$exports,
12539
12538
  "tabs": $0db07828cadc68e0$exports,
12539
+ "split_layout": $506dabb2bf255b38$exports,
12540
12540
  "viewport": $6d64716f0b34fdf4$exports
12541
12541
  };
12542
12542
 
12543
12543
 
12544
- var $9a68326211e66205$exports = {};
12544
+ var $3821a3a183a9a321$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
+
12545
12663
  var $c299e36fa9e271bc$exports = {};
12546
12664
 
12547
12665
  $parcel$defineInteropFlag($c299e36fa9e271bc$exports);
@@ -13434,124 +13552,6 @@ function $c299e36fa9e271bc$export$2e2bcd8739ae039(id, embedStore) {
13434
13552
  }
13435
13553
 
13436
13554
 
13437
- var $6a9b69d9cc7f810f$exports = {};
13438
-
13439
- $parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
13440
-
13441
- $parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
13442
- var $cdfeaa1e0e8d642c$exports = {};
13443
- (function(global, factory) {
13444
- $cdfeaa1e0e8d642c$exports = factory();
13445
- })($cdfeaa1e0e8d642c$exports, function() {
13446
- 'use strict';
13447
- /* eslint-disable no-var */ function assign(target) {
13448
- for(var i = 1; i < arguments.length; i++){
13449
- var source = arguments[i];
13450
- for(var key in source)target[key] = source[key];
13451
- }
13452
- return target;
13453
- }
13454
- /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
13455
- read: function(value) {
13456
- if (value[0] === '"') value = value.slice(1, -1);
13457
- return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
13458
- },
13459
- write: function(value) {
13460
- return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
13461
- }
13462
- };
13463
- /* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
13464
- function set(name, value, attributes) {
13465
- if (typeof document === 'undefined') return;
13466
- attributes = assign({}, defaultAttributes, attributes);
13467
- if (typeof attributes.expires === 'number') attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
13468
- if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
13469
- name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
13470
- var stringifiedAttributes = '';
13471
- for(var attributeName in attributes){
13472
- if (!attributes[attributeName]) continue;
13473
- stringifiedAttributes += '; ' + attributeName;
13474
- if (attributes[attributeName] === true) continue;
13475
- // Considers RFC 6265 section 5.2:
13476
- // ...
13477
- // 3. If the remaining unparsed-attributes contains a %x3B (";")
13478
- // character:
13479
- // Consume the characters of the unparsed-attributes up to,
13480
- // not including, the first %x3B (";") character.
13481
- // ...
13482
- stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
13483
- }
13484
- return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;
13485
- }
13486
- function get(name) {
13487
- if (typeof document === 'undefined' || arguments.length && !name) return;
13488
- // To prevent the for loop in the first place assign an empty array
13489
- // in case there are no cookies at all.
13490
- var cookies = document.cookie ? document.cookie.split('; ') : [];
13491
- var jar = {};
13492
- for(var i = 0; i < cookies.length; i++){
13493
- var parts = cookies[i].split('=');
13494
- var value = parts.slice(1).join('=');
13495
- try {
13496
- var found = decodeURIComponent(parts[0]);
13497
- jar[found] = converter.read(value, found);
13498
- if (name === found) break;
13499
- } catch (e) {}
13500
- }
13501
- return name ? jar[name] : jar;
13502
- }
13503
- return Object.create({
13504
- set: set,
13505
- get: get,
13506
- remove: function(name, attributes) {
13507
- set(name, '', assign({}, attributes, {
13508
- expires: -1
13509
- }));
13510
- },
13511
- withAttributes: function(attributes) {
13512
- return init(this.converter, assign({}, this.attributes, attributes));
13513
- },
13514
- withConverter: function(converter) {
13515
- return init(assign({}, this.converter, converter), this.attributes);
13516
- }
13517
- }, {
13518
- attributes: {
13519
- value: Object.freeze(defaultAttributes)
13520
- },
13521
- converter: {
13522
- value: Object.freeze(converter)
13523
- }
13524
- });
13525
- }
13526
- var api = init(defaultConverter, {
13527
- path: '/'
13528
- });
13529
- /* eslint-enable no-var */ return api;
13530
- });
13531
-
13532
-
13533
-
13534
- function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
13535
- return {
13536
- name: name,
13537
- value: value,
13538
- init () {
13539
- this.$watch("value", ()=>this.update());
13540
- },
13541
- update () {
13542
- (0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
13543
- const searchParams = new URLSearchParams(window.location.search);
13544
- const display = searchParams.get("_display");
13545
- const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
13546
- displayParams[this.name] = this.value;
13547
- searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
13548
- const path = location.href.replace(location.search, "");
13549
- this.navigateTo(`${path}?${searchParams.toString()}`);
13550
- }
13551
- };
13552
- }
13553
-
13554
-
13555
13555
  var $9b24cbeb3a465447$exports = {};
13556
13556
 
13557
13557
  $parcel$defineInteropFlag($9b24cbeb3a465447$exports);
@@ -13609,6 +13609,20 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }
13609
13609
  }
13610
13610
 
13611
13611
 
13612
+ var $e773f8ef556b41ff$exports = {};
13613
+
13614
+ $parcel$defineInteropFlag($e773f8ef556b41ff$exports);
13615
+
13616
+ $parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
13617
+ function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
13618
+ return {
13619
+ get isNarrowLayout () {
13620
+ return this.narrow || false;
13621
+ }
13622
+ };
13623
+ }
13624
+
13625
+
13612
13626
  var $1a7a7298eec5b755$exports = {};
13613
13627
 
13614
13628
  $parcel$defineInteropFlag($1a7a7298eec5b755$exports);
@@ -13627,33 +13641,19 @@ function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
13627
13641
  }
13628
13642
 
13629
13643
 
13630
- var $e773f8ef556b41ff$exports = {};
13631
-
13632
- $parcel$defineInteropFlag($e773f8ef556b41ff$exports);
13633
-
13634
- $parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
13635
- function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
13636
- return {
13637
- get isNarrowLayout () {
13638
- return this.narrow || false;
13639
- }
13640
- };
13641
- }
13642
-
13643
-
13644
- $9a68326211e66205$exports = {
13645
- "embed": {
13646
- "inspector": $c299e36fa9e271bc$exports
13647
- },
13644
+ $3821a3a183a9a321$exports = {
13648
13645
  "display_options": {
13649
13646
  "field": $6a9b69d9cc7f810f$exports
13650
13647
  },
13648
+ "embed": {
13649
+ "inspector": $c299e36fa9e271bc$exports
13650
+ },
13651
13651
  "nav": {
13652
13652
  "item": $9b24cbeb3a465447$exports
13653
13653
  },
13654
13654
  "params": {
13655
- "editor": $1a7a7298eec5b755$exports,
13656
- "field": $e773f8ef556b41ff$exports
13655
+ "field": $e773f8ef556b41ff$exports,
13656
+ "editor": $1a7a7298eec5b755$exports
13657
13657
  }
13658
13658
  };
13659
13659
 
@@ -13721,8 +13721,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
13721
13721
  // Components
13722
13722
  (0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
13723
13723
  [
13724
- $c9dfaeb25bf110ce$exports,
13725
- $9a68326211e66205$exports,
13724
+ $33a2663dc04d4f53$exports,
13725
+ $3821a3a183a9a321$exports,
13726
13726
  $d56e5cced44001d2$exports
13727
13727
  ].forEach((scripts)=>{
13728
13728
  const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);