public/lookbook-assets/js/index.js in lookbook-2.3.2 vs public/lookbook-assets/js/index.js in lookbook-2.3.3
- old
+ new
@@ -8024,11 +8024,11 @@
return $1.toUpperCase().replace("-", "").replace("_", "");
});
}
-var $c9dfaeb25bf110ce$exports = {};
+var $e3fb13b1820aa7c3$exports = {};
var $cbd28b10fa9798c7$exports = {};
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
$parcel$export($cbd28b10fa9798c7$exports, "default", () => $cbd28b10fa9798c7$export$2e2bcd8739ae039);
@@ -11553,10 +11553,43 @@
function $99486586f6691564$export$2e2bcd8739ae039() {
return {};
}
+var $e398acaded942bbe$exports = {};
+
+$parcel$defineInteropFlag($e398acaded942bbe$exports);
+
+$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
+
+function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
+ return {
+ width: 0,
+ height: 0,
+ resizing: false,
+ target: null,
+ init () {
+ this.target = document.querySelector(targetSelector);
+ if (this.target) {
+ this.width = Math.round(this.target.clientWidth);
+ this.height = Math.round(this.target.clientHeight);
+ this.createObserver();
+ }
+ },
+ createObserver () {
+ if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
+ this.width = width;
+ this.height = height;
+ });
+ },
+ tearDown () {
+ if (this.observer) this.observer.disconnect();
+ }
+ };
+}
+
+
var $47a1c62621be0c54$exports = {};
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
@@ -11609,43 +11642,10 @@
}
};
}
-var $e398acaded942bbe$exports = {};
-
-$parcel$defineInteropFlag($e398acaded942bbe$exports);
-
-$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
-
-function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
- return {
- width: 0,
- height: 0,
- resizing: false,
- target: null,
- init () {
- this.target = document.querySelector(targetSelector);
- if (this.target) {
- this.width = Math.round(this.target.clientWidth);
- this.height = Math.round(this.target.clientHeight);
- this.createObserver();
- }
- },
- createObserver () {
- if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
- this.width = width;
- this.height = height;
- });
- },
- tearDown () {
- if (this.observer) this.observer.disconnect();
- }
- };
-}
-
-
var $216ef7001f59f21d$exports = {};
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
@@ -12271,37 +12271,10 @@
});
return splits;
}
-var $a87dacf5139b5e2f$exports = {};
-
-$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
-
-$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
-function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
- return {
- get store () {
- return store || this;
- },
- get id () {
- return this.$root.id;
- },
- get panels () {
- return Array.from(this.$refs.panels.children);
- },
- isActive (el) {
- return this.store.activeTab === this._getRef(el);
- },
- // protected
- _getRef (el) {
- return el.getAttribute("x-ref");
- }
- };
-}
-
-
var $0db07828cadc68e0$exports = {};
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
$parcel$export($0db07828cadc68e0$exports, "default", () => $0db07828cadc68e0$export$2e2bcd8739ae039);
@@ -12518,144 +12491,53 @@
}
};
}
-$c9dfaeb25bf110ce$exports = {
+var $a87dacf5139b5e2f$exports = {};
+
+$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
+
+$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
+function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
+ return {
+ get store () {
+ return store || this;
+ },
+ get id () {
+ return this.$root.id;
+ },
+ get panels () {
+ return Array.from(this.$refs.panels.children);
+ },
+ isActive (el) {
+ return this.store.activeTab === this._getRef(el);
+ },
+ // protected
+ _getRef (el) {
+ return el.getAttribute("x-ref");
+ }
+ };
+}
+
+
+$e3fb13b1820aa7c3$exports = {
"button": $cbd28b10fa9798c7$exports,
"code": $99486586f6691564$exports,
- "copy_button": $47a1c62621be0c54$exports,
"dimensions_display": $e398acaded942bbe$exports,
+ "copy_button": $47a1c62621be0c54$exports,
"embed_code_dropdown": $216ef7001f59f21d$exports,
"filter": $e9904a14dabf652d$exports,
"nav": $d92d9d5253f84566$exports,
"split_layout": $506dabb2bf255b38$exports,
- "tab_panels": $a87dacf5139b5e2f$exports,
"tabs": $0db07828cadc68e0$exports,
- "viewport": $6d64716f0b34fdf4$exports
+ "viewport": $6d64716f0b34fdf4$exports,
+ "tab_panels": $a87dacf5139b5e2f$exports
};
-var $6178ee12f80cbf68$exports = {};
-var $6a9b69d9cc7f810f$exports = {};
-
-$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
-
-$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
-var $cdfeaa1e0e8d642c$exports = {};
-(function(global, factory) {
- $cdfeaa1e0e8d642c$exports = factory();
-})($cdfeaa1e0e8d642c$exports, function() {
- "use strict";
- /* eslint-disable no-var */ function assign(target) {
- for(var i = 1; i < arguments.length; i++){
- var source = arguments[i];
- for(var key in source)target[key] = source[key];
- }
- return target;
- }
- /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
- read: function(value) {
- if (value[0] === '"') value = value.slice(1, -1);
- return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
- },
- write: function(value) {
- return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
- }
- };
- /* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
- function set(name, value, attributes) {
- if (typeof document === "undefined") return;
- attributes = assign({}, defaultAttributes, attributes);
- if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
- if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
- name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
- var stringifiedAttributes = "";
- for(var attributeName in attributes){
- if (!attributes[attributeName]) continue;
- stringifiedAttributes += "; " + attributeName;
- if (attributes[attributeName] === true) continue;
- // Considers RFC 6265 section 5.2:
- // ...
- // 3. If the remaining unparsed-attributes contains a %x3B (";")
- // character:
- // Consume the characters of the unparsed-attributes up to,
- // not including, the first %x3B (";") character.
- // ...
- stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
- }
- return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
- }
- function get(name) {
- if (typeof document === "undefined" || arguments.length && !name) return;
- // To prevent the for loop in the first place assign an empty array
- // in case there are no cookies at all.
- var cookies = document.cookie ? document.cookie.split("; ") : [];
- var jar = {};
- for(var i = 0; i < cookies.length; i++){
- var parts = cookies[i].split("=");
- var value = parts.slice(1).join("=");
- try {
- var found = decodeURIComponent(parts[0]);
- jar[found] = converter.read(value, found);
- if (name === found) break;
- } catch (e) {}
- }
- return name ? jar[name] : jar;
- }
- return Object.create({
- set: set,
- get: get,
- remove: function(name, attributes) {
- set(name, "", assign({}, attributes, {
- expires: -1
- }));
- },
- withAttributes: function(attributes) {
- return init(this.converter, assign({}, this.attributes, attributes));
- },
- withConverter: function(converter) {
- return init(assign({}, this.converter, converter), this.attributes);
- }
- }, {
- attributes: {
- value: Object.freeze(defaultAttributes)
- },
- converter: {
- value: Object.freeze(converter)
- }
- });
- }
- var api = init(defaultConverter, {
- path: "/"
- });
- /* eslint-enable no-var */ return api;
-});
-
-
-
-function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
- return {
- name: name,
- value: value,
- init () {
- this.$watch("value", ()=>this.update());
- },
- update () {
- (0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
- const searchParams = new URLSearchParams(window.location.search);
- const display = searchParams.get("_display");
- const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
- displayParams[this.name] = this.value;
- searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
- const path = location.href.replace(location.search, "");
- this.navigateTo(`${path}?${searchParams.toString()}`);
- }
- };
-}
-
-
+var $9a68326211e66205$exports = {};
var $c299e36fa9e271bc$exports = {};
$parcel$defineInteropFlag($c299e36fa9e271bc$exports);
$parcel$export($c299e36fa9e271bc$exports, "default", () => $c299e36fa9e271bc$export$2e2bcd8739ae039);
@@ -13544,10 +13426,128 @@
}
};
}
+var $6a9b69d9cc7f810f$exports = {};
+
+$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
+
+$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
+var $cdfeaa1e0e8d642c$exports = {};
+(function(global, factory) {
+ $cdfeaa1e0e8d642c$exports = factory();
+})($cdfeaa1e0e8d642c$exports, function() {
+ "use strict";
+ /* eslint-disable no-var */ function assign(target) {
+ for(var i = 1; i < arguments.length; i++){
+ var source = arguments[i];
+ for(var key in source)target[key] = source[key];
+ }
+ return target;
+ }
+ /* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
+ read: function(value) {
+ if (value[0] === '"') value = value.slice(1, -1);
+ return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
+ },
+ write: function(value) {
+ return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
+ }
+ };
+ /* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
+ function set(name, value, attributes) {
+ if (typeof document === "undefined") return;
+ attributes = assign({}, defaultAttributes, attributes);
+ if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
+ if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
+ name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
+ var stringifiedAttributes = "";
+ for(var attributeName in attributes){
+ if (!attributes[attributeName]) continue;
+ stringifiedAttributes += "; " + attributeName;
+ if (attributes[attributeName] === true) continue;
+ // Considers RFC 6265 section 5.2:
+ // ...
+ // 3. If the remaining unparsed-attributes contains a %x3B (";")
+ // character:
+ // Consume the characters of the unparsed-attributes up to,
+ // not including, the first %x3B (";") character.
+ // ...
+ stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
+ }
+ return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
+ }
+ function get(name) {
+ if (typeof document === "undefined" || arguments.length && !name) return;
+ // To prevent the for loop in the first place assign an empty array
+ // in case there are no cookies at all.
+ var cookies = document.cookie ? document.cookie.split("; ") : [];
+ var jar = {};
+ for(var i = 0; i < cookies.length; i++){
+ var parts = cookies[i].split("=");
+ var value = parts.slice(1).join("=");
+ try {
+ var found = decodeURIComponent(parts[0]);
+ jar[found] = converter.read(value, found);
+ if (name === found) break;
+ } catch (e) {}
+ }
+ return name ? jar[name] : jar;
+ }
+ return Object.create({
+ set: set,
+ get: get,
+ remove: function(name, attributes) {
+ set(name, "", assign({}, attributes, {
+ expires: -1
+ }));
+ },
+ withAttributes: function(attributes) {
+ return init(this.converter, assign({}, this.attributes, attributes));
+ },
+ withConverter: function(converter) {
+ return init(assign({}, this.converter, converter), this.attributes);
+ }
+ }, {
+ attributes: {
+ value: Object.freeze(defaultAttributes)
+ },
+ converter: {
+ value: Object.freeze(converter)
+ }
+ });
+ }
+ var api = init(defaultConverter, {
+ path: "/"
+ });
+ /* eslint-enable no-var */ return api;
+});
+
+
+
+function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
+ return {
+ name: name,
+ value: value,
+ init () {
+ this.$watch("value", ()=>this.update());
+ },
+ update () {
+ (0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
+ const searchParams = new URLSearchParams(window.location.search);
+ const display = searchParams.get("_display");
+ const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
+ displayParams[this.name] = this.value;
+ searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
+ const path = location.href.replace(location.search, "");
+ this.navigateTo(`${path}?${searchParams.toString()}`);
+ }
+ };
+}
+
+
var $9b24cbeb3a465447$exports = {};
$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
$parcel$export($9b24cbeb3a465447$exports, "default", () => $9b24cbeb3a465447$export$2e2bcd8739ae039);
@@ -13633,17 +13633,17 @@
}
};
}
-$6178ee12f80cbf68$exports = {
- "display_options": {
- "field": $6a9b69d9cc7f810f$exports
- },
+$9a68326211e66205$exports = {
"embed": {
"inspector": $c299e36fa9e271bc$exports
},
+ "display_options": {
+ "field": $6a9b69d9cc7f810f$exports
+ },
"nav": {
"item": $9b24cbeb3a465447$exports
},
"params": {
"editor": $1a7a7298eec5b755$exports,
@@ -13713,11 +13713,11 @@
prefix: $22969b543678f572$var$prefix
}));
// Components
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
[
- $c9dfaeb25bf110ce$exports,
- $6178ee12f80cbf68$exports,
+ $e3fb13b1820aa7c3$exports,
+ $9a68326211e66205$exports,
$d56e5cced44001d2$exports
].forEach((scripts)=>{
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
Object.keys(components).forEach((name)=>{
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data(`${name}Component`, components[name]);