lookbook 2.3.4 → 2.3.5
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/README.md +2 -2
 - data/app/components/lookbook/filter/component.html.erb +2 -2
 - data/app/components/lookbook/params/editor/component.rb +1 -1
 - data/app/components/lookbook/params/field/component.rb +1 -1
 - data/app/components/lookbook/tab_panels/component.rb +1 -1
 - data/app/views/layouts/lookbook/skeleton.html.erb +2 -0
 - data/app/views/lookbook/previews/preview.html.erb +5 -1
 - data/lib/lookbook/engine.rb +3 -3
 - data/lib/lookbook/support/errors/config_error.rb +1 -1
 - data/lib/lookbook/support/errors/parser_error.rb +1 -1
 - data/lib/lookbook/support/errors/preview_template_error.rb +1 -1
 - data/lib/lookbook/support/errors/template_error.rb +1 -1
 - data/lib/lookbook/support/store.rb +1 -1
 - data/lib/lookbook/support/utils/utils.rb +1 -1
 - data/lib/lookbook/tags/yard_tag.rb +1 -1
 - data/lib/lookbook/version.rb +1 -1
 - data/public/lookbook-assets/js/index.js +161 -161
 - data/public/lookbook-assets/js/index.js.map +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8aafa502c25c9fa48976fa3410b24dead352e5253734120d508af60971ebdd92
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 980e45362bda082e69a98687b02ea333101d059b3548f9b73594188e00f1d8be
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 450347075fce7cbad906c8a980d8418dc27eb086a5069a8154fb6793729f3df6f368591fdcf97fd968ed3b135e75ee009627d508960c75a1518b8bb81c5110ab
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c15aebad98ec449f6f2d61ebe70cc6a22d740ced28ab987a4560970f7716ef68785cba25968cc65c7467df29e20c5c6fe0ad2b60431de0ab50805cf1ceb95a08
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -49,9 +49,9 @@ To preview changes locally you can run a development version of the docs site: 
     | 
|
| 
       49 
49 
     | 
    
         | 
| 
       50 
50 
     | 
    
         
             
            ### Testing
         
     | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
            Lookbook uses [RSpec](https://relishapp.com/rspec)  
     | 
| 
      
 52 
     | 
    
         
            +
            Lookbook uses [RSpec](https://relishapp.com/rspec). [Appraisal](https://github.com/thoughtbot/appraisal) is used to run tests against different Ruby and Rails versions.
         
     | 
| 
       53 
53 
     | 
    
         | 
| 
       54 
     | 
    
         
            -
            Tests can be run using the ` 
     | 
| 
      
 54 
     | 
    
         
            +
            Tests can be run using the `bundle exec appraisal rspec` command.
         
     | 
| 
       55 
55 
     | 
    
         | 
| 
       56 
56 
     | 
    
         
             
            The dummy app that the tests are being run against can be viewed by running the `bin/dummy` command and then browsing to http://localhost:9292/lookbook
         
     | 
| 
       57 
57 
     | 
    
         | 
| 
         @@ -11,7 +11,7 @@ 
     | 
|
| 
       11 
11 
     | 
    
         
             
                  x-on:keydown.f.window="if (!($event.shiftKey || $event.metaKey || $event.ctrlKey || $event.altKey)) { focus(); $event.preventDefault(); $event.stopPropagation(); }"
         
     | 
| 
       12 
12 
     | 
    
         
             
                  x-on:keydown.stop>
         
     | 
| 
       13 
13 
     | 
    
         
             
                  <button class="text-lookbook-icon-button-stroke hover:text-lookbook-icon-button-stroke-hover focus:ring-0 focus:outline-none absolute top-1/2 right-3 -translate-y-1/2" x-on:click="clear" x-bind:class="{hidden: !active}">
         
     | 
| 
       14 
     | 
    
         
            -
                    <%= icon  :x, size:  
     | 
| 
      
 14 
     | 
    
         
            +
                    <%= icon  :x, size: 4 %>
         
     | 
| 
       15 
15 
     | 
    
         
             
                  </button>
         
     | 
| 
       16 
16 
     | 
    
         
             
              </div>
         
     | 
| 
       17 
     | 
    
         
            -
            <% end %>
         
     | 
| 
      
 17 
     | 
    
         
            +
            <% end %>
         
     | 
| 
         @@ -14,7 +14,7 @@ module Lookbook 
     | 
|
| 
       14 
14 
     | 
    
         
             
                    styles, html = StylesExtractor.call(render_input)
         
     | 
| 
       15 
15 
     | 
    
         
             
                    Editor::Component.add_styles(param.input, styles)
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
                    escaped_value = json_escape(param.value.to_s).gsub("\n", '\n')
         
     | 
| 
      
 17 
     | 
    
         
            +
                    escaped_value = html_escape(json_escape(param.value.to_s).gsub("\n", '\n'))
         
     | 
| 
       18 
18 
     | 
    
         
             
                    wrapper_attrs = {
         
     | 
| 
       19 
19 
     | 
    
         
             
                      data: {"param-input": param.input},
         
     | 
| 
       20 
20 
     | 
    
         
             
                      "x-data": "paramsInputComponent({name: \"#{param.name}\", value: \"#{escaped_value}\"})"
         
     | 
| 
         @@ -5,6 +5,8 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
              <meta http-equiv="X-UA-Compatible" content="IE=edge">
         
     | 
| 
       6 
6 
     | 
    
         
             
              <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
      
 8 
     | 
    
         
            +
              <%= csrf_meta_tags %>
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       8 
10 
     | 
    
         
             
              <link href="<%= lookbook_asset_path("/css/lookbook.css") %>" rel="stylesheet">
         
     | 
| 
       9 
11 
     | 
    
         
             
              <link href="<%= lookbook_asset_path("/css/themes/#{@config.ui_theme}.css") %>" rel="stylesheet">
         
     | 
| 
       10 
12 
     | 
    
         | 
| 
         @@ -1,6 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <% if @render_args[:component] %>
         
     | 
| 
       2 
2 
     | 
    
         
             
              <% if defined?(Phlex::SGML) && @render_args[:component].is_a?(Phlex::SGML) %>
         
     | 
| 
       3 
     | 
    
         
            -
                 
     | 
| 
      
 3 
     | 
    
         
            +
                <% if @render_args[:component].method(:call).parameters.include?([:key, :context])%>
         
     | 
| 
      
 4 
     | 
    
         
            +
                  <%= raw(@render_args[:component].call(context: { rails_view_context: self }, &@render_args[:block])) %>
         
     | 
| 
      
 5 
     | 
    
         
            +
                <% else %>
         
     | 
| 
      
 6 
     | 
    
         
            +
                  <%= raw(@render_args[:component].call(view_context: self, &@render_args[:block])) %>
         
     | 
| 
      
 7 
     | 
    
         
            +
                <% end %>
         
     | 
| 
       4 
8 
     | 
    
         
             
              <% else %>
         
     | 
| 
       5 
9 
     | 
    
         
             
                <%= render(@render_args[:component], @render_args[:args], &@render_args[:block]) %>
         
     | 
| 
       6 
10 
     | 
    
         
             
              <% end %>
         
     | 
    
        data/lib/lookbook/engine.rb
    CHANGED
    
    | 
         @@ -14,11 +14,11 @@ module Lookbook 
     | 
|
| 
       14 
14 
     | 
    
         
             
                  )
         
     | 
| 
       15 
15 
     | 
    
         
             
                end
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
                initializer "lookbook.set_autoload_paths" do
         
     | 
| 
      
 17 
     | 
    
         
            +
                initializer "lookbook.set_autoload_paths", before: :set_autoload_paths do |app|
         
     | 
| 
       18 
18 
     | 
    
         
             
                  if opts.autoload_previews && opts.preview_paths.any?
         
     | 
| 
       19 
     | 
    
         
            -
                    paths_to_add = opts.preview_paths -  
     | 
| 
      
 19 
     | 
    
         
            +
                    paths_to_add = opts.preview_paths - app.config.autoload_paths
         
     | 
| 
       20 
20 
     | 
    
         
             
                    filtered_paths = paths_to_add.filter { |p| !Engine.component_paths.include?(p) }
         
     | 
| 
       21 
     | 
    
         
            -
                     
     | 
| 
      
 21 
     | 
    
         
            +
                    app.config.autoload_paths.concat(filtered_paths) if filtered_paths.any?
         
     | 
| 
       22 
22 
     | 
    
         
             
                  end
         
     | 
| 
       23 
23 
     | 
    
         
             
                end
         
     | 
| 
       24 
24 
     | 
    
         | 
    
        data/lib/lookbook/version.rb
    CHANGED
    
    
| 
         @@ -8026,7 +8026,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) { 
     | 
|
| 
       8026 
8026 
     | 
    
         
             
            }
         
     | 
| 
       8027 
8027 
     | 
    
         | 
| 
       8028 
8028 
     | 
    
         | 
| 
       8029 
     | 
    
         
            -
            var $ 
     | 
| 
      
 8029 
     | 
    
         
            +
            var $d93ebb7d29fc0464$exports = {};
         
     | 
| 
       8030 
8030 
     | 
    
         
             
            var $cbd28b10fa9798c7$exports = {};
         
     | 
| 
       8031 
8031 
     | 
    
         | 
| 
       8032 
8032 
     | 
    
         
             
            $parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
         
     | 
| 
         @@ -11654,31 +11654,6 @@ function $216ef7001f59f21d$export$2e2bcd8739ae039() { 
     | 
|
| 
       11654 
11654 
     | 
    
         
             
            }
         
     | 
| 
       11655 
11655 
     | 
    
         | 
| 
       11656 
11656 
     | 
    
         | 
| 
       11657 
     | 
    
         
            -
            var $e9904a14dabf652d$exports = {};
         
     | 
| 
       11658 
     | 
    
         
            -
             
     | 
| 
       11659 
     | 
    
         
            -
            $parcel$defineInteropFlag($e9904a14dabf652d$exports);
         
     | 
| 
       11660 
     | 
    
         
            -
             
     | 
| 
       11661 
     | 
    
         
            -
            $parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
         
     | 
| 
       11662 
     | 
    
         
            -
            function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
         
     | 
| 
       11663 
     | 
    
         
            -
                return {
         
     | 
| 
       11664 
     | 
    
         
            -
                    focussed: false,
         
     | 
| 
       11665 
     | 
    
         
            -
                    get active () {
         
     | 
| 
       11666 
     | 
    
         
            -
                        return store.active;
         
     | 
| 
       11667 
     | 
    
         
            -
                    },
         
     | 
| 
       11668 
     | 
    
         
            -
                    get text () {
         
     | 
| 
       11669 
     | 
    
         
            -
                        return store.text;
         
     | 
| 
       11670 
     | 
    
         
            -
                    },
         
     | 
| 
       11671 
     | 
    
         
            -
                    clear () {
         
     | 
| 
       11672 
     | 
    
         
            -
                        if (store.raw === "") this.$refs.input.blur();
         
     | 
| 
       11673 
     | 
    
         
            -
                        else store.raw = "";
         
     | 
| 
       11674 
     | 
    
         
            -
                    },
         
     | 
| 
       11675 
     | 
    
         
            -
                    focus () {
         
     | 
| 
       11676 
     | 
    
         
            -
                        this.$refs.input.focus();
         
     | 
| 
       11677 
     | 
    
         
            -
                    }
         
     | 
| 
       11678 
     | 
    
         
            -
                };
         
     | 
| 
       11679 
     | 
    
         
            -
            }
         
     | 
| 
       11680 
     | 
    
         
            -
             
     | 
| 
       11681 
     | 
    
         
            -
             
     | 
| 
       11682 
11657 
     | 
    
         
             
            var $d92d9d5253f84566$exports = {};
         
     | 
| 
       11683 
11658 
     | 
    
         | 
| 
       11684 
11659 
     | 
    
         
             
            $parcel$defineInteropFlag($d92d9d5253f84566$exports);
         
     | 
| 
         @@ -11723,6 +11698,31 @@ function $d92d9d5253f84566$export$2e2bcd8739ae039(store) { 
     | 
|
| 
       11723 
11698 
     | 
    
         
             
            }
         
     | 
| 
       11724 
11699 
     | 
    
         | 
| 
       11725 
11700 
     | 
    
         | 
| 
      
 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 
11726 
     | 
    
         
             
            var $506dabb2bf255b38$exports = {};
         
     | 
| 
       11727 
11727 
     | 
    
         | 
| 
       11728 
11728 
     | 
    
         
             
            $parcel$defineInteropFlag($506dabb2bf255b38$exports);
         
     | 
| 
         @@ -12520,14 +12520,14 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) { 
     | 
|
| 
       12520 
12520 
     | 
    
         
             
            }
         
     | 
| 
       12521 
12521 
     | 
    
         | 
| 
       12522 
12522 
     | 
    
         | 
| 
       12523 
     | 
    
         
            -
            $ 
     | 
| 
      
 12523 
     | 
    
         
            +
            $d93ebb7d29fc0464$exports = {
         
     | 
| 
       12524 
12524 
     | 
    
         
             
                "button": $cbd28b10fa9798c7$exports,
         
     | 
| 
       12525 
12525 
     | 
    
         
             
                "code": $99486586f6691564$exports,
         
     | 
| 
       12526 
12526 
     | 
    
         
             
                "copy_button": $47a1c62621be0c54$exports,
         
     | 
| 
       12527 
12527 
     | 
    
         
             
                "dimensions_display": $e398acaded942bbe$exports,
         
     | 
| 
       12528 
12528 
     | 
    
         
             
                "embed_code_dropdown": $216ef7001f59f21d$exports,
         
     | 
| 
       12529 
     | 
    
         
            -
                "filter": $e9904a14dabf652d$exports,
         
     | 
| 
       12530 
12529 
     | 
    
         
             
                "nav": $d92d9d5253f84566$exports,
         
     | 
| 
      
 12530 
     | 
    
         
            +
                "filter": $e9904a14dabf652d$exports,
         
     | 
| 
       12531 
12531 
     | 
    
         
             
                "split_layout": $506dabb2bf255b38$exports,
         
     | 
| 
       12532 
12532 
     | 
    
         
             
                "tab_panels": $a87dacf5139b5e2f$exports,
         
     | 
| 
       12533 
12533 
     | 
    
         
             
                "tabs": $0db07828cadc68e0$exports,
         
     | 
| 
         @@ -12535,125 +12535,7 @@ $c9dfaeb25bf110ce$exports = { 
     | 
|
| 
       12535 
12535 
     | 
    
         
             
            };
         
     | 
| 
       12536 
12536 
     | 
    
         | 
| 
       12537 
12537 
     | 
    
         | 
| 
       12538 
     | 
    
         
            -
            var $ 
     | 
| 
       12539 
     | 
    
         
            -
            var $6a9b69d9cc7f810f$exports = {};
         
     | 
| 
       12540 
     | 
    
         
            -
             
     | 
| 
       12541 
     | 
    
         
            -
            $parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
         
     | 
| 
       12542 
     | 
    
         
            -
             
     | 
| 
       12543 
     | 
    
         
            -
            $parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
         
     | 
| 
       12544 
     | 
    
         
            -
            var $cdfeaa1e0e8d642c$exports = {};
         
     | 
| 
       12545 
     | 
    
         
            -
            (function(global, factory) {
         
     | 
| 
       12546 
     | 
    
         
            -
                $cdfeaa1e0e8d642c$exports = factory();
         
     | 
| 
       12547 
     | 
    
         
            -
            })($cdfeaa1e0e8d642c$exports, function() {
         
     | 
| 
       12548 
     | 
    
         
            -
                "use strict";
         
     | 
| 
       12549 
     | 
    
         
            -
                /* eslint-disable no-var */ function assign(target) {
         
     | 
| 
       12550 
     | 
    
         
            -
                    for(var i = 1; i < arguments.length; i++){
         
     | 
| 
       12551 
     | 
    
         
            -
                        var source = arguments[i];
         
     | 
| 
       12552 
     | 
    
         
            -
                        for(var key in source)target[key] = source[key];
         
     | 
| 
       12553 
     | 
    
         
            -
                    }
         
     | 
| 
       12554 
     | 
    
         
            -
                    return target;
         
     | 
| 
       12555 
     | 
    
         
            -
                }
         
     | 
| 
       12556 
     | 
    
         
            -
                /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
         
     | 
| 
       12557 
     | 
    
         
            -
                    read: function(value) {
         
     | 
| 
       12558 
     | 
    
         
            -
                        if (value[0] === '"') value = value.slice(1, -1);
         
     | 
| 
       12559 
     | 
    
         
            -
                        return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
         
     | 
| 
       12560 
     | 
    
         
            -
                    },
         
     | 
| 
       12561 
     | 
    
         
            -
                    write: function(value) {
         
     | 
| 
       12562 
     | 
    
         
            -
                        return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
         
     | 
| 
       12563 
     | 
    
         
            -
                    }
         
     | 
| 
       12564 
     | 
    
         
            -
                };
         
     | 
| 
       12565 
     | 
    
         
            -
                /* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
         
     | 
| 
       12566 
     | 
    
         
            -
                    function set(name, value, attributes) {
         
     | 
| 
       12567 
     | 
    
         
            -
                        if (typeof document === "undefined") return;
         
     | 
| 
       12568 
     | 
    
         
            -
                        attributes = assign({}, defaultAttributes, attributes);
         
     | 
| 
       12569 
     | 
    
         
            -
                        if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
         
     | 
| 
       12570 
     | 
    
         
            -
                        if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
         
     | 
| 
       12571 
     | 
    
         
            -
                        name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
         
     | 
| 
       12572 
     | 
    
         
            -
                        var stringifiedAttributes = "";
         
     | 
| 
       12573 
     | 
    
         
            -
                        for(var attributeName in attributes){
         
     | 
| 
       12574 
     | 
    
         
            -
                            if (!attributes[attributeName]) continue;
         
     | 
| 
       12575 
     | 
    
         
            -
                            stringifiedAttributes += "; " + attributeName;
         
     | 
| 
       12576 
     | 
    
         
            -
                            if (attributes[attributeName] === true) continue;
         
     | 
| 
       12577 
     | 
    
         
            -
                            // Considers RFC 6265 section 5.2:
         
     | 
| 
       12578 
     | 
    
         
            -
                            // ...
         
     | 
| 
       12579 
     | 
    
         
            -
                            // 3.  If the remaining unparsed-attributes contains a %x3B (";")
         
     | 
| 
       12580 
     | 
    
         
            -
                            //     character:
         
     | 
| 
       12581 
     | 
    
         
            -
                            // Consume the characters of the unparsed-attributes up to,
         
     | 
| 
       12582 
     | 
    
         
            -
                            // not including, the first %x3B (";") character.
         
     | 
| 
       12583 
     | 
    
         
            -
                            // ...
         
     | 
| 
       12584 
     | 
    
         
            -
                            stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
         
     | 
| 
       12585 
     | 
    
         
            -
                        }
         
     | 
| 
       12586 
     | 
    
         
            -
                        return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
         
     | 
| 
       12587 
     | 
    
         
            -
                    }
         
     | 
| 
       12588 
     | 
    
         
            -
                    function get(name) {
         
     | 
| 
       12589 
     | 
    
         
            -
                        if (typeof document === "undefined" || arguments.length && !name) return;
         
     | 
| 
       12590 
     | 
    
         
            -
                        // To prevent the for loop in the first place assign an empty array
         
     | 
| 
       12591 
     | 
    
         
            -
                        // in case there are no cookies at all.
         
     | 
| 
       12592 
     | 
    
         
            -
                        var cookies = document.cookie ? document.cookie.split("; ") : [];
         
     | 
| 
       12593 
     | 
    
         
            -
                        var jar = {};
         
     | 
| 
       12594 
     | 
    
         
            -
                        for(var i = 0; i < cookies.length; i++){
         
     | 
| 
       12595 
     | 
    
         
            -
                            var parts = cookies[i].split("=");
         
     | 
| 
       12596 
     | 
    
         
            -
                            var value = parts.slice(1).join("=");
         
     | 
| 
       12597 
     | 
    
         
            -
                            try {
         
     | 
| 
       12598 
     | 
    
         
            -
                                var found = decodeURIComponent(parts[0]);
         
     | 
| 
       12599 
     | 
    
         
            -
                                jar[found] = converter.read(value, found);
         
     | 
| 
       12600 
     | 
    
         
            -
                                if (name === found) break;
         
     | 
| 
       12601 
     | 
    
         
            -
                            } catch (e) {}
         
     | 
| 
       12602 
     | 
    
         
            -
                        }
         
     | 
| 
       12603 
     | 
    
         
            -
                        return name ? jar[name] : jar;
         
     | 
| 
       12604 
     | 
    
         
            -
                    }
         
     | 
| 
       12605 
     | 
    
         
            -
                    return Object.create({
         
     | 
| 
       12606 
     | 
    
         
            -
                        set: set,
         
     | 
| 
       12607 
     | 
    
         
            -
                        get: get,
         
     | 
| 
       12608 
     | 
    
         
            -
                        remove: function(name, attributes) {
         
     | 
| 
       12609 
     | 
    
         
            -
                            set(name, "", assign({}, attributes, {
         
     | 
| 
       12610 
     | 
    
         
            -
                                expires: -1
         
     | 
| 
       12611 
     | 
    
         
            -
                            }));
         
     | 
| 
       12612 
     | 
    
         
            -
                        },
         
     | 
| 
       12613 
     | 
    
         
            -
                        withAttributes: function(attributes) {
         
     | 
| 
       12614 
     | 
    
         
            -
                            return init(this.converter, assign({}, this.attributes, attributes));
         
     | 
| 
       12615 
     | 
    
         
            -
                        },
         
     | 
| 
       12616 
     | 
    
         
            -
                        withConverter: function(converter) {
         
     | 
| 
       12617 
     | 
    
         
            -
                            return init(assign({}, this.converter, converter), this.attributes);
         
     | 
| 
       12618 
     | 
    
         
            -
                        }
         
     | 
| 
       12619 
     | 
    
         
            -
                    }, {
         
     | 
| 
       12620 
     | 
    
         
            -
                        attributes: {
         
     | 
| 
       12621 
     | 
    
         
            -
                            value: Object.freeze(defaultAttributes)
         
     | 
| 
       12622 
     | 
    
         
            -
                        },
         
     | 
| 
       12623 
     | 
    
         
            -
                        converter: {
         
     | 
| 
       12624 
     | 
    
         
            -
                            value: Object.freeze(converter)
         
     | 
| 
       12625 
     | 
    
         
            -
                        }
         
     | 
| 
       12626 
     | 
    
         
            -
                    });
         
     | 
| 
       12627 
     | 
    
         
            -
                }
         
     | 
| 
       12628 
     | 
    
         
            -
                var api = init(defaultConverter, {
         
     | 
| 
       12629 
     | 
    
         
            -
                    path: "/"
         
     | 
| 
       12630 
     | 
    
         
            -
                });
         
     | 
| 
       12631 
     | 
    
         
            -
                /* eslint-enable no-var */ return api;
         
     | 
| 
       12632 
     | 
    
         
            -
            });
         
     | 
| 
       12633 
     | 
    
         
            -
             
     | 
| 
       12634 
     | 
    
         
            -
             
     | 
| 
       12635 
     | 
    
         
            -
             
     | 
| 
       12636 
     | 
    
         
            -
            function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
         
     | 
| 
       12637 
     | 
    
         
            -
                return {
         
     | 
| 
       12638 
     | 
    
         
            -
                    name: name,
         
     | 
| 
       12639 
     | 
    
         
            -
                    value: value,
         
     | 
| 
       12640 
     | 
    
         
            -
                    init () {
         
     | 
| 
       12641 
     | 
    
         
            -
                        this.$watch("value", ()=>this.update());
         
     | 
| 
       12642 
     | 
    
         
            -
                    },
         
     | 
| 
       12643 
     | 
    
         
            -
                    update () {
         
     | 
| 
       12644 
     | 
    
         
            -
                        (0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
         
     | 
| 
       12645 
     | 
    
         
            -
                        const searchParams = new URLSearchParams(window.location.search);
         
     | 
| 
       12646 
     | 
    
         
            -
                        const display = searchParams.get("_display");
         
     | 
| 
       12647 
     | 
    
         
            -
                        const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
         
     | 
| 
       12648 
     | 
    
         
            -
                        displayParams[this.name] = this.value;
         
     | 
| 
       12649 
     | 
    
         
            -
                        searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
         
     | 
| 
       12650 
     | 
    
         
            -
                        const path = location.href.replace(location.search, "");
         
     | 
| 
       12651 
     | 
    
         
            -
                        this.navigateTo(`${path}?${searchParams.toString()}`);
         
     | 
| 
       12652 
     | 
    
         
            -
                    }
         
     | 
| 
       12653 
     | 
    
         
            -
                };
         
     | 
| 
       12654 
     | 
    
         
            -
            }
         
     | 
| 
       12655 
     | 
    
         
            -
             
     | 
| 
       12656 
     | 
    
         
            -
             
     | 
| 
      
 12538 
     | 
    
         
            +
            var $5e362abaad0ffde8$exports = {};
         
     | 
| 
       12657 
12539 
     | 
    
         
             
            var $c299e36fa9e271bc$exports = {};
         
     | 
| 
       12658 
12540 
     | 
    
         | 
| 
       12659 
12541 
     | 
    
         
             
            $parcel$defineInteropFlag($c299e36fa9e271bc$exports);
         
     | 
| 
         @@ -13603,15 +13485,119 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers } 
     | 
|
| 
       13603 
13485 
     | 
    
         
             
            }
         
     | 
| 
       13604 
13486 
     | 
    
         | 
| 
       13605 
13487 
     | 
    
         | 
| 
       13606 
     | 
    
         
            -
            var $ 
     | 
| 
      
 13488 
     | 
    
         
            +
            var $6a9b69d9cc7f810f$exports = {};
         
     | 
| 
       13607 
13489 
     | 
    
         | 
| 
       13608 
     | 
    
         
            -
            $parcel$defineInteropFlag($ 
     | 
| 
      
 13490 
     | 
    
         
            +
            $parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
         
     | 
| 
       13609 
13491 
     | 
    
         | 
| 
       13610 
     | 
    
         
            -
            $parcel$export($ 
     | 
| 
       13611 
     | 
    
         
            -
             
     | 
| 
      
 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 }) {
         
     | 
| 
       13612 
13586 
     | 
    
         
             
                return {
         
     | 
| 
       13613 
     | 
    
         
            -
                     
     | 
| 
       13614 
     | 
    
         
            -
             
     | 
| 
      
 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()}`);
         
     | 
| 
       13615 
13601 
     | 
    
         
             
                    }
         
     | 
| 
       13616 
13602 
     | 
    
         
             
                };
         
     | 
| 
       13617 
13603 
     | 
    
         
             
            }
         
     | 
| 
         @@ -13635,19 +13621,33 @@ function $1a7a7298eec5b755$export$2e2bcd8739ae039() { 
     | 
|
| 
       13635 
13621 
     | 
    
         
             
            }
         
     | 
| 
       13636 
13622 
     | 
    
         | 
| 
       13637 
13623 
     | 
    
         | 
| 
       13638 
     | 
    
         
            -
            $ 
     | 
| 
       13639 
     | 
    
         
            -
             
     | 
| 
       13640 
     | 
    
         
            -
             
     | 
| 
       13641 
     | 
    
         
            -
             
     | 
| 
      
 13624 
     | 
    
         
            +
            var $e773f8ef556b41ff$exports = {};
         
     | 
| 
      
 13625 
     | 
    
         
            +
             
     | 
| 
      
 13626 
     | 
    
         
            +
            $parcel$defineInteropFlag($e773f8ef556b41ff$exports);
         
     | 
| 
      
 13627 
     | 
    
         
            +
             
     | 
| 
      
 13628 
     | 
    
         
            +
            $parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
         
     | 
| 
      
 13629 
     | 
    
         
            +
            function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
         
     | 
| 
      
 13630 
     | 
    
         
            +
                return {
         
     | 
| 
      
 13631 
     | 
    
         
            +
                    get isNarrowLayout () {
         
     | 
| 
      
 13632 
     | 
    
         
            +
                        return this.narrow || false;
         
     | 
| 
      
 13633 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13634 
     | 
    
         
            +
                };
         
     | 
| 
      
 13635 
     | 
    
         
            +
            }
         
     | 
| 
      
 13636 
     | 
    
         
            +
             
     | 
| 
      
 13637 
     | 
    
         
            +
             
     | 
| 
      
 13638 
     | 
    
         
            +
            $5e362abaad0ffde8$exports = {
         
     | 
| 
       13642 
13639 
     | 
    
         
             
                "embed": {
         
     | 
| 
       13643 
13640 
     | 
    
         
             
                    "inspector": $c299e36fa9e271bc$exports
         
     | 
| 
       13644 
13641 
     | 
    
         
             
                },
         
     | 
| 
       13645 
13642 
     | 
    
         
             
                "nav": {
         
     | 
| 
       13646 
13643 
     | 
    
         
             
                    "item": $9b24cbeb3a465447$exports
         
     | 
| 
       13647 
13644 
     | 
    
         
             
                },
         
     | 
| 
      
 13645 
     | 
    
         
            +
                "display_options": {
         
     | 
| 
      
 13646 
     | 
    
         
            +
                    "field": $6a9b69d9cc7f810f$exports
         
     | 
| 
      
 13647 
     | 
    
         
            +
                },
         
     | 
| 
       13648 
13648 
     | 
    
         
             
                "params": {
         
     | 
| 
       13649 
     | 
    
         
            -
                    " 
     | 
| 
       13650 
     | 
    
         
            -
                    " 
     | 
| 
      
 13649 
     | 
    
         
            +
                    "editor": $1a7a7298eec5b755$exports,
         
     | 
| 
      
 13650 
     | 
    
         
            +
                    "field": $e773f8ef556b41ff$exports
         
     | 
| 
       13651 
13651 
     | 
    
         
             
                }
         
     | 
| 
       13652 
13652 
     | 
    
         
             
            };
         
     | 
| 
       13653 
13653 
     | 
    
         | 
| 
         @@ -13715,8 +13715,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME; 
     | 
|
| 
       13715 
13715 
     | 
    
         
             
            // Components
         
     | 
| 
       13716 
13716 
     | 
    
         
             
            (0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
         
     | 
| 
       13717 
13717 
     | 
    
         
             
            [
         
     | 
| 
       13718 
     | 
    
         
            -
                $ 
     | 
| 
       13719 
     | 
    
         
            -
                $ 
     | 
| 
      
 13718 
     | 
    
         
            +
                $d93ebb7d29fc0464$exports,
         
     | 
| 
      
 13719 
     | 
    
         
            +
                $5e362abaad0ffde8$exports,
         
     | 
| 
       13720 
13720 
     | 
    
         
             
                $d56e5cced44001d2$exports
         
     | 
| 
       13721 
13721 
     | 
    
         
             
            ].forEach((scripts)=>{
         
     | 
| 
       13722 
13722 
     | 
    
         
             
                const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
         
     |