Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lrnwebcomponents/hax-body-behaviors

Package Overview
Dependencies
Maintainers
4
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lrnwebcomponents/hax-body-behaviors - npm Package Compare versions

Comparing version 0.0.34 to 0.0.35

4

analysis.json

@@ -15,7 +15,7 @@ {

"start": {
"line": 9,
"line": 137,
"column": 7
},
"end": {
"line": 819,
"line": 947,
"column": 1

@@ -22,0 +22,0 @@ }

@@ -27,20 +27,55 @@ define([

3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : !1;
if (babelHelpers.typeof(props.api) === "undefined") {
if (
babelHelpers.typeof(props.api) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.api = "1";
}
if ("1" == props.api) {
if (babelHelpers.typeof(props.canPosition) === "undefined") {
if (
babelHelpers.typeof(props.canPosition) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.canPosition = !0;
}
if (babelHelpers.typeof(props.canScale) === "undefined") {
if (
babelHelpers.typeof(props.canScale) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.canScale = !0;
}
if (babelHelpers.typeof(props.canEditSource) === "undefined") {
if (
babelHelpers.typeof(props.canEditSource) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.canEditSource = !1;
}
if (babelHelpers.typeof(props.gizmo) === "undefined") {
if (
babelHelpers.typeof(props.gizmo) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.gizmo = !1;
}
if (babelHelpers.typeof(props.settings) !== "undefined") {
if (babelHelpers.typeof(props.settings.quick) === "undefined") {
if (
babelHelpers.typeof(props.settings) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
if (
babelHelpers.typeof(props.settings.quick) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.settings.quick = [];

@@ -56,3 +91,8 @@ }

}
if (babelHelpers.typeof(props.settings.configure) === "undefined") {
if (
babelHelpers.typeof(props.settings.configure) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.settings.configure = [];

@@ -68,3 +108,8 @@ }

}
if (babelHelpers.typeof(props.settings.advanced) === "undefined") {
if (
babelHelpers.typeof(props.settings.advanced) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.settings.advanced = [];

@@ -129,3 +174,8 @@ }

}
if (babelHelpers.typeof(props.saveOptions) === "undefined") {
if (
babelHelpers.typeof(props.saveOptions) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props.saveOptions = { wipeSlot: !1 };

@@ -136,3 +186,6 @@ }

"" !== tag &&
babelHelpers.typeof(window.HaxStore) === "undefined"
babelHelpers.typeof(window.HaxStore) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -147,10 +200,21 @@ var evt = new CustomEvent("hax-register-properties", {

"" !== tag &&
babelHelpers.typeof(window.HaxStore) !== "undefined" &&
babelHelpers.typeof(window.HaxStore.instance) !== "undefined" &&
babelHelpers.typeof(window.HaxStore) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(window.HaxStore.instance) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
null != window.HaxStore.instance &&
babelHelpers.typeof(window.HaxStore.instance.elementList) !==
"undefined" &&
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(
window.HaxStore.instance.elementList[tag.toLowerCase()]
) === "undefined"
) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -164,11 +228,25 @@ var _evt = new CustomEvent("hax-register-properties", {

} else if (
babelHelpers.typeof(_this.tagName) !== "undefined" &&
babelHelpers.typeof(window.HaxStore) !== "undefined" &&
babelHelpers.typeof(window.HaxStore.instance) !== "undefined" &&
babelHelpers.typeof(_this.tagName) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(window.HaxStore) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(window.HaxStore.instance) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
null != window.HaxStore.instance &&
babelHelpers.typeof(window.HaxStore.instance.elementList) !==
"undefined" &&
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(
window.HaxStore.instance.elementList[_this.tagName.toLowerCase()]
) === "undefined"
) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -192,3 +270,3 @@ var _evt2 = new CustomEvent("hax-register-properties", {

console.warn(
"This is't a valid usage of hax-body-behaviors API. See hax-body-behaviors for more details on how to implement the API. Most likely your hax item just was placed in an iframe as a fallback as opposed to a custom element."
"This is't a valid usage of hax API. See hax-body-behaviors/lib/HAXWiring.js for more details on how to implement the API. Most likely your hax item just was placed in an iframe as a fallback as opposed to a custom element."
);

@@ -199,10 +277,29 @@ }

if (
babelHelpers.typeof(setting.property) === "undefined" &&
babelHelpers.typeof(setting.slot) === "undefined" &&
babelHelpers.typeof(setting.attribute) === "undefined"
babelHelpers.typeof(setting.property) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(setting.slot) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(setting.attribute) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
return !1;
}
if (babelHelpers.typeof(setting.title) === "undefined") {
if (babelHelpers.typeof(setting.attribute) === "undefined") {
if (
babelHelpers.typeof(setting.title) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
if (
babelHelpers.typeof(setting.attribute) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.title = setting.property;

@@ -213,24 +310,64 @@ } else {

}
if (babelHelpers.typeof(setting.description) === "undefined") {
if (
babelHelpers.typeof(setting.description) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.description = "";
}
if (babelHelpers.typeof(setting.inputMethod) === "undefined") {
if (
babelHelpers.typeof(setting.inputMethod) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.inputMethod = "textfield";
}
if (babelHelpers.typeof(setting.type) === "undefined") {
if (
babelHelpers.typeof(setting.type) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.type = "settings";
}
if (babelHelpers.typeof(setting.icon) === "undefined") {
if (
babelHelpers.typeof(setting.icon) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.icon = "android";
}
if (babelHelpers.typeof(setting.options) === "undefined") {
if (
babelHelpers.typeof(setting.options) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.options = {};
}
if (babelHelpers.typeof(setting.required) === "undefined") {
if (
babelHelpers.typeof(setting.required) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.required = !1;
}
if (babelHelpers.typeof(setting.validation) === "undefined") {
if (
babelHelpers.typeof(setting.validation) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.validation = ".*";
}
if (babelHelpers.typeof(setting.validationType) === "undefined") {
if (
babelHelpers.typeof(setting.validationType) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
setting.validationType = "";

@@ -246,6 +383,16 @@ }

2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : _this;
if (babelHelpers.typeof(type) === "undefined") {
if (
babelHelpers.typeof(type) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
type = "configure";
}
if (babelHelpers.typeof(haxProperties) === "undefined") {
if (
babelHelpers.typeof(haxProperties) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
haxProperties = target.haxProperties;

@@ -271,3 +418,8 @@ }

if (settings.hasOwnProperty(value)) {
if (babelHelpers.typeof(settings[value].property) !== "undefined") {
if (
babelHelpers.typeof(settings[value].property) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
props[settings[value].property] = {

@@ -279,3 +431,5 @@ title: settings[value].title,

babelHelpers.typeof(target[settings[value].property]) !==
"undefined"
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -307,3 +461,6 @@ props[settings[value].property].value =

if (
babelHelpers.typeof(settings[value].options) !== "undefined"
babelHelpers.typeof(settings[value].options) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -409,3 +566,6 @@ for (var val in settings[value].options) {

} else if (
babelHelpers.typeof(settings[value].attribute) !== "undefined"
babelHelpers.typeof(settings[value].attribute) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -423,3 +583,6 @@ props[settings[value].attribute] = {

target.attributes[settings[value].attribute]
) !== "undefined"
) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -455,3 +618,6 @@ props[settings[value].attribute].value = target.getAttribute(

if (
babelHelpers.typeof(settings[value].options) !== "undefined"
babelHelpers.typeof(settings[value].options) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -549,3 +715,6 @@ for (var val in settings[value].options) {

(0, _polymerDom.dom)(target).childNodes[i]
) !== "undefined"
) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -558,3 +727,6 @@ if (1 === (0, _polymerDom.dom)(target).childNodes[i].nodeType) {

(0, _polymerDom.dom)(target).childNodes[i].textContent
) !== "undefined" &&
) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
"" !== (0, _polymerDom.dom)(target).childNodes[i].textContent

@@ -604,3 +776,3 @@ ) {

this.validHAXPropertyInputMethod = function() {
return [
var methods = [
"flipboolean",

@@ -619,5 +791,6 @@ "boolean",

];
return methods;
};
this.prototypeHaxProperties = function() {
return {
var props = {
api: "1",

@@ -716,2 +889,3 @@ canScale: !0,

};
return props;
};

@@ -729,3 +903,8 @@ };

2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : this;
if (babelHelpers.typeof(this.tagName) !== "undefined") {
if (
babelHelpers.typeof(this.tagName) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {
tag = this.tagName.toLowerCase();

@@ -738,3 +917,6 @@ }

if (
babelHelpers.typeof(window.HaxStore) !== "undefined" &&
babelHelpers.typeof(window.HaxStore) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
null != window.HaxStore.instance &&

@@ -751,4 +933,10 @@ window.HaxStore.ready

e.detail &&
babelHelpers.typeof(this.tagName) !== "undefined" &&
babelHelpers.typeof(this.haxProperties) !== "undefined"
babelHelpers.typeof(this.tagName) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(this.haxProperties) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -760,3 +948,6 @@ var tag = this.tagName,

"" !== tag &&
babelHelpers.typeof(window.HaxStore) === "undefined"
babelHelpers.typeof(window.HaxStore) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -771,10 +962,21 @@ var evt = new CustomEvent("hax-register-properties", {

"" !== tag &&
babelHelpers.typeof(window.HaxStore) !== "undefined" &&
babelHelpers.typeof(window.HaxStore.instance) !== "undefined" &&
babelHelpers.typeof(window.HaxStore) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(window.HaxStore.instance) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
null != window.HaxStore.instance &&
babelHelpers.typeof(window.HaxStore.instance.elementList) !==
"undefined" &&
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(
window.HaxStore.instance.elementList[tag.toLowerCase()]
) === "undefined"
) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -788,11 +990,25 @@ var _evt3 = new CustomEvent("hax-register-properties", {

} else if (
babelHelpers.typeof(this.tagName) !== "undefined" &&
babelHelpers.typeof(window.HaxStore) !== "undefined" &&
babelHelpers.typeof(window.HaxStore.instance) !== "undefined" &&
babelHelpers.typeof(this.tagName) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(window.HaxStore) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(window.HaxStore.instance) !==
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
null != window.HaxStore.instance &&
babelHelpers.typeof(window.HaxStore.instance.elementList) !==
"undefined" &&
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0)) &&
babelHelpers.typeof(
window.HaxStore.instance.elementList[this.tagName.toLowerCase()]
) === "undefined"
) ===
("undefined" === typeof void 0
? "undefined"
: babelHelpers.typeof(void 0))
) {

@@ -799,0 +1015,0 @@ var _evt4 = new CustomEvent("hax-register-properties", {

@@ -169,3 +169,3 @@ import { dom } from "../node_modules/@polymer/polymer/lib/legacy/polymer.dom.js";

console.warn(
"This is't a valid usage of hax-body-behaviors API. See hax-body-behaviors for more details on how to implement the API. Most likely your hax item just was placed in an iframe as a fallback as opposed to a custom element."
"This is't a valid usage of hax API. See hax-body-behaviors/lib/HAXWiring.js for more details on how to implement the API. Most likely your hax item just was placed in an iframe as a fallback as opposed to a custom element."
);

@@ -552,3 +552,3 @@ }

this.validHAXPropertyInputMethod = () => {
return [
var methods = [
"flipboolean",

@@ -567,5 +567,6 @@ "boolean",

];
return methods;
};
this.prototypeHaxProperties = () => {
return {
let props = {
api: "1",

@@ -664,2 +665,3 @@ canScale: !0,

};
return props;
};

@@ -666,0 +668,0 @@ }

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@polymer/polymer/lib/legacy/polymer.dom.js")):"function"==typeof define&&define.amd?define(["exports","@polymer/polymer/lib/legacy/polymer.dom.js"],t):t(e.HaxBodyBehaviors={},e.polymer_dom_js)}(this,function(e,t){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function e(){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.haxProperties={canScale:!1,canPosition:!1,canEditSource:!1,settings:{quick:[],configure:[],advanced:[]},wipeSlot:{}},this.setHaxProperties=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("undefined"===i(e.api)&&(e.api="1"),"1"==e.api){if("undefined"===i(e.canPosition)&&(e.canPosition=!0),"undefined"===i(e.canScale)&&(e.canScale=!0),"undefined"===i(e.canEditSource)&&(e.canEditSource=!1),"undefined"===i(e.gizmo)&&(e.gizmo=!1),"undefined"!==i(e.settings)){"undefined"===i(e.settings.quick)&&(e.settings.quick=[]);for(var a=0;a<e.settings.quick.length;a++)e.settings.quick[a]=r.validateSetting(e.settings.quick[a]),e.settings.quick[a]||e.settings.quick.splice(a,1);"undefined"===i(e.settings.configure)&&(e.settings.configure=[]);for(var d=0;d<e.settings.configure.length;d++)e.settings.configure[d]=r.validateSetting(e.settings.configure[d]),e.settings.configure[d]||e.settings.configure.splice(d,1);"undefined"===i(e.settings.advanced)&&(e.settings.advanced=[]);for(var s=0;s<e.settings.advanced.length;s++)e.settings.advanced[s]=r.validateSetting(e.settings.advanced[s]),e.settings.advanced[s]||e.settings.advanced.splice(s,1);e.settings.advanced.push({attribute:"class",title:"Classes",description:"CSS classes applied manually to the element",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"style",title:"Styles",description:"Custom CSS styles as applied to the element",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"prefix",title:"Schema: prefix",description:"Schema prefixes",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"typeof",title:"Schema: TypeOf",description:"typeof definition for Schema usage",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"property",title:"Schema: Property",description:"typeof definition for Schema usage",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"resource",title:"Schema: Resource ID",description:"Schema resource identifier",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"id",title:"ID",description:"element ID, only set this if you know why",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"slot",title:"slot",description:"DOM slot area",inputMethod:"textfield"})}if("undefined"===i(e.saveOptions)&&(e.saveOptions={wipeSlot:!1}),n)if(""!==t&&"undefined"===i(window.HaxStore)){var p=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:e,polymer:!1}});o.dispatchEvent(p)}else if(""!==t&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[t.toLowerCase()])){var u=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:e}});o.dispatchEvent(u)}else if("undefined"!==i(r.tagName)&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[r.tagName.toLowerCase()])){var c=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:r.tagName.toLowerCase(),properties:e}});o.dispatchEvent(c)}""===t&&("function"==typeof r._setHaxProperties?r._setHaxProperties(e):r.haxProperties=e)}else console.warn("This is't a valid usage of hax-body-behaviors API. See hax-body-behaviors for more details on how to implement the API. Most likely your hax item just was placed in an iframe as a fallback as opposed to a custom element.")},this.validateSetting=function(e){return("undefined"!==i(e.property)||"undefined"!==i(e.slot)||"undefined"!==i(e.attribute))&&("undefined"===i(e.title)&&("undefined"===i(e.attribute)?e.title=e.property:e.title=e.attribute),"undefined"===i(e.description)&&(e.description=""),"undefined"===i(e.inputMethod)&&(e.inputMethod="textfield"),"undefined"===i(e.type)&&(e.type="settings"),"undefined"===i(e.icon)&&(e.icon="android"),"undefined"===i(e.options)&&(e.options={}),"undefined"===i(e.required)&&(e.required=!1),"undefined"===i(e.validation)&&(e.validation=".*"),"undefined"===i(e.validationType)&&(e.validationType=""),e)},this.getHaxProperties=function(){return r.haxProperties},this.getHaxJSONSchema=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;"undefined"===i(e)&&(e="configure"),"undefined"===i(t)&&(t=o.haxProperties);var n=t.settings[e],a={$schema:"http://json-schema.org/schema#",title:"HAX "+e+" form schema",type:"object",properties:{}};return a.properties=o._getHaxJSONSchemaProperty(n,o),a=o.postProcessgetHaxJSONSchema(a)},this.postProcessgetHaxJSONSchema=function(e){return e},this._getHaxJSONSchemaProperty=function(e,r){var o={};for(var n in e)if(e.hasOwnProperty(n))if("undefined"!==i(e[n].property))switch(o[e[n].property]={title:e[n].title,type:r.getHaxJSONSchemaType(e[n].inputMethod)},"undefined"!==i(r[e[n].property])&&(o[e[n].property].value=r[e[n].property]),"url"==e[n].validationType&&(o[e[n].property].format="uri"),"datepicker"==e[n].inputMethod&&(o[e[n].property].format="date-time"),".*"!=e[n].validation&&(o[e[n].property].pattern=e[n].validation),e[n].inputMethod){case"number":o[e[n].property].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{type:"number"}};break;case"select":var a="";if("undefined"!==i(e[n].options))for(var d in e[n].options)a+='<paper-item value="'+d+'">'+e[n].options[d]+"</paper-item>\n";o[e[n].property].component={name:"dropdown-select",valueProperty:"value",slot:a,properties:{required:e[n].required}};break;case"textarea":o[e[n].property].component={name:"paper-textarea",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate","char-counter":"char-counter"}};break;case"code-editor":o[e[n].property].component={name:"code-editor",valueProperty:"editorValue",attributes:{id:"haxcodeeditor"},properties:{title:e[n].title,readOnly:!1,theme:"ace/theme/monokai",mode:"ace/mode/html",fontsize:"16px",className:"hax-code-editor"}};break;case"array":o[e[n].property].items={type:"object",properties:r._getHaxJSONSchemaProperty(e[n].properties,r)};break;case"textfield":o[e[n].property].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"alt":o[e[n].property].component={name:"paper-input-flagged",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"colorpicker":o[e[n].property].component={name:"paper-swatch-picker",valueProperty:"color",properties:{required:e[n].required}};break;case"iconpicker":o[e[n].property].component={name:"paper-icon-picker",valueProperty:"icon",properties:{required:e[n].required}},e[n].options.constructor===Array&&(o[e[n].property].component.properties.iconList=e[n].options);break;case"datepicker":o[e[n].property].component={name:"app-datepicker",valueProperty:"date",properties:{required:e[n].required,autoUpdateDate:!0}}}else if("undefined"!==i(e[n].attribute))switch(o[e[n].attribute]={title:e[n].title,type:r.getHaxJSONSchemaType(e[n].inputMethod)},"class"===e[n].attribute?o[e[n].attribute].value=r.className:"style"===e[n].attribute?o[e[n].attribute].value=r.style.cssText:"undefined"!==i(r.attributes[e[n].attribute])&&(o[e[n].attribute].value=r.getAttribute(e[n].attribute)),"href"!=n&&"src"!=n||(o[e[n].attribute].format="uri"),"url"==e[n].validationType&&(o[e[n].attribute].format="uri"),"datepicker"==e[n].inputMethod&&(o[e[n].attribute].format="date-time"),".*"!=e[n].validation&&(o[e[n].attribute].pattern=e[n].validation),e[n].inputMethod){case"number":o[e[n].attribute].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{type:"number"}};break;case"select":a="";if("undefined"!==i(e[n].options))for(var d in e[n].options)a+='<paper-item value="'+d+'">'+e[n].options[d]+"</paper-item>\n";o[e[n].attribute].component={name:"dropdown-select",valueProperty:"value",slot:a,properties:{required:e[n].required}};break;case"textarea":o[e[n].attribute].component={name:"paper-textarea",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate","char-counter":"char-counter"}};break;case"code-editor":o[e[n].attribute].component={name:"code-editor",valueProperty:"editorValue",attributes:{id:"haxcodeeditor"},properties:{title:e[n].title,readOnly:!1,theme:"ace/theme/monokai",mode:"ace/mode/html",fontsize:"16px",className:"hax-code-editor"}};break;case"textfield":o[e[n].attribute].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"alt":o[e[n].attribute].component={name:"paper-input-flagged",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"colorpicker":o[e[n].attribute].component={name:"paper-swatch-picker",valueProperty:"color",properties:{required:e[n].required}}}else{o[e[n].slot]={title:e[n].title,type:r.getHaxJSONSchemaType(e[n].inputMethod),value:"",component:{name:"code-editor",valueProperty:"editorValue",attributes:{id:"haxcodeeditor"},properties:{title:e[n].title,readOnly:!1,theme:"ace/theme/monokai",mode:"ace/mode/html",fontsize:"16px",className:"hax-code-editor"}}};a="";for(var s in t.dom(r).childNodes)"undefined"!==i(t.dom(r).childNodes[s])&&(1===t.dom(r).childNodes[s].nodeType?a+=t.dom(r).childNodes[s].innerHTML:1!==t.dom(r).childNodes[s].nodeType&&"undefined"!==i(t.dom(r).childNodes[s].textContent)&&""!==t.dom(r).childNodes[s].textContent&&(a+=t.dom(r).childNodes[s].textContent));o[e[n].slot].component.slot="<template>"+a+"</template>"}return o},this.getHaxJSONSchemaType=function(e){if(r.validHAXPropertyInputMethod().includes(e))switch(e){case"flipboolean":case"boolean":return"boolean";case"number":return"number";case"select":case"textarea":case"colorpicker":case"iconpicker":case"datepicker":case"textfield":case"alt":return"string";case"array":return"array";default:return"string"}},this.validHAXPropertyInputMethod=function(){return["flipboolean","boolean","select","textfield","textarea","datepicker","colorpicker","iconpicker","alt","number","code-editor","array"]},this.prototypeHaxProperties=function(){return{api:"1",canScale:!0,canPosition:!0,canEditSource:!1,gizmo:{title:"Tag name",description:"A description",icon:"av:play-circle-filled",color:"blue",groups:["Content"],handles:[{type:"data",url:"src"}],meta:{author:""}},settings:{quick:[{property:"title",title:"Title",inputMethod:"textfield",icon:"android"},{property:"primaryColor",title:"Primary color",inputMethod:"colorpicker",icon:"color"}],configure:[{slot:"",title:"Inner content",description:"The slotted content that lives inside the tag",inputMethod:"textfield",icon:"android",required:!0,validationType:"text"},{slot:"button",title:"Button content",description:"The content that can override the button",inputMethod:"textfield",icon:"android",required:!0,validationType:"text"},{property:"title",title:"Title",description:"",inputMethod:"textfield",icon:"android",required:!0,validationType:"text"},{property:"primaryColor",title:"Title",description:"",inputMethod:"textfield",icon:"android",required:!1,validation:".*",validationType:"text"}],advanced:[{property:"secondaryColor",title:"Secondary color",description:"An optional secondary color used in certain edge cases.",inputMethod:"colorpicker",icon:"color"},{property:"endPoint",title:"API endpoint",description:"An optional endpoint to hit and load in more data dymaically.",inputMethod:"textfield",icon:"android",validation:"[a-z0-9]",validationType:"url"}]},saveOptions:{wipeSlot:!1,unsetAttributes:["end-point","secondary-color"]}}}};window.HAXWiring=new r,window.HAXBehaviors=window.HAXBehaviors||{},window.HAXBehaviors.PropertiesBehaviors={properties:{haxProperties:window.HAXWiring.haxProperties},setHaxProperties:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;return"undefined"!==i(this.tagName)&&(t=this.tagName.toLowerCase()),window.addEventListener("hax-store-ready",this._haxStoreReady.bind(this)),"undefined"!==i(window.HaxStore)&&null!=window.HaxStore.instance&&window.HaxStore.ready?window.HAXWiring.setHaxProperties(e,t,r,!0):window.HAXWiring.setHaxProperties(e,t,r,!1)},_haxStoreReady:function(e){if(e.detail&&"undefined"!==i(this.tagName)&&"undefined"!==i(this.haxProperties)){var t=this.tagName,r=this.haxProperties;if(""!==t&&"undefined"===i(window.HaxStore)){var o=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:r,polymer:!1}});this.dispatchEvent(o)}else if(""!==t&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[t.toLowerCase()])){var n=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:r}});this.dispatchEvent(n)}else if("undefined"!==i(this.tagName)&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[this.tagName.toLowerCase()])){var a=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:this.tagName.toLowerCase(),properties:r}});this.dispatchEvent(a)}}},validateSetting:function(e){return window.HAXWiring.validateSetting(e)},getHaxProperties:function(){return this.haxProperties},getHaxJSONSchema:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;return window.HAXWiring.getHaxJSONSchema(e,t,i)},postProcessgetHaxJSONSchema:function(e){return window.HAXWiring.postProcessgetHaxJSONSchema(e)},_getHaxJSONSchemaProperty:function(e,t){return window.HAXWiring._getHaxJSONSchemaProperty(e,t)},getHaxJSONSchemaType:function(e){return window.HAXWiring.getHaxJSONSchemaType(e)},validHAXPropertyInputMethod:function(){return window.HAXWiring.validHAXPropertyInputMethod()},prototypeHaxProperties:function(){return window.HAXWiring.prototypeHaxProperties()}},e.HAXWiring=r,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@polymer/polymer/lib/legacy/polymer.dom.js")):"function"==typeof define&&define.amd?define(["exports","@polymer/polymer/lib/legacy/polymer.dom.js"],t):t(e.HaxBodyBehaviors={},e.polymer_dom_js)}(this,function(e,t){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function e(){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.haxProperties={canScale:!1,canPosition:!1,canEditSource:!1,settings:{quick:[],configure:[],advanced:[]},wipeSlot:{}},this.setHaxProperties=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("undefined"===i(e.api)&&(e.api="1"),"1"==e.api){if("undefined"===i(e.canPosition)&&(e.canPosition=!0),"undefined"===i(e.canScale)&&(e.canScale=!0),"undefined"===i(e.canEditSource)&&(e.canEditSource=!1),"undefined"===i(e.gizmo)&&(e.gizmo=!1),"undefined"!==i(e.settings)){"undefined"===i(e.settings.quick)&&(e.settings.quick=[]);for(var a=0;a<e.settings.quick.length;a++)e.settings.quick[a]=r.validateSetting(e.settings.quick[a]),e.settings.quick[a]||e.settings.quick.splice(a,1);"undefined"===i(e.settings.configure)&&(e.settings.configure=[]);for(var d=0;d<e.settings.configure.length;d++)e.settings.configure[d]=r.validateSetting(e.settings.configure[d]),e.settings.configure[d]||e.settings.configure.splice(d,1);"undefined"===i(e.settings.advanced)&&(e.settings.advanced=[]);for(var s=0;s<e.settings.advanced.length;s++)e.settings.advanced[s]=r.validateSetting(e.settings.advanced[s]),e.settings.advanced[s]||e.settings.advanced.splice(s,1);e.settings.advanced.push({attribute:"class",title:"Classes",description:"CSS classes applied manually to the element",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"style",title:"Styles",description:"Custom CSS styles as applied to the element",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"prefix",title:"Schema: prefix",description:"Schema prefixes",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"typeof",title:"Schema: TypeOf",description:"typeof definition for Schema usage",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"property",title:"Schema: Property",description:"typeof definition for Schema usage",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"resource",title:"Schema: Resource ID",description:"Schema resource identifier",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"id",title:"ID",description:"element ID, only set this if you know why",inputMethod:"textfield"}),e.settings.advanced.push({attribute:"slot",title:"slot",description:"DOM slot area",inputMethod:"textfield"})}if("undefined"===i(e.saveOptions)&&(e.saveOptions={wipeSlot:!1}),n)if(""!==t&&"undefined"===i(window.HaxStore)){var p=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:e,polymer:!1}});o.dispatchEvent(p)}else if(""!==t&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[t.toLowerCase()])){var u=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:e}});o.dispatchEvent(u)}else if("undefined"!==i(r.tagName)&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[r.tagName.toLowerCase()])){var c=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:r.tagName.toLowerCase(),properties:e}});o.dispatchEvent(c)}""===t&&("function"==typeof r._setHaxProperties?r._setHaxProperties(e):r.haxProperties=e)}else console.warn("This is't a valid usage of hax API. See hax-body-behaviors/lib/HAXWiring.js for more details on how to implement the API. Most likely your hax item just was placed in an iframe as a fallback as opposed to a custom element.")},this.validateSetting=function(e){return("undefined"!==i(e.property)||"undefined"!==i(e.slot)||"undefined"!==i(e.attribute))&&("undefined"===i(e.title)&&("undefined"===i(e.attribute)?e.title=e.property:e.title=e.attribute),"undefined"===i(e.description)&&(e.description=""),"undefined"===i(e.inputMethod)&&(e.inputMethod="textfield"),"undefined"===i(e.type)&&(e.type="settings"),"undefined"===i(e.icon)&&(e.icon="android"),"undefined"===i(e.options)&&(e.options={}),"undefined"===i(e.required)&&(e.required=!1),"undefined"===i(e.validation)&&(e.validation=".*"),"undefined"===i(e.validationType)&&(e.validationType=""),e)},this.getHaxProperties=function(){return r.haxProperties},this.getHaxJSONSchema=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;"undefined"===i(e)&&(e="configure"),"undefined"===i(t)&&(t=o.haxProperties);var n=t.settings[e],a={$schema:"http://json-schema.org/schema#",title:"HAX "+e+" form schema",type:"object",properties:{}};return a.properties=o._getHaxJSONSchemaProperty(n,o),a=o.postProcessgetHaxJSONSchema(a)},this.postProcessgetHaxJSONSchema=function(e){return e},this._getHaxJSONSchemaProperty=function(e,r){var o={};for(var n in e)if(e.hasOwnProperty(n))if("undefined"!==i(e[n].property))switch(o[e[n].property]={title:e[n].title,type:r.getHaxJSONSchemaType(e[n].inputMethod)},"undefined"!==i(r[e[n].property])&&(o[e[n].property].value=r[e[n].property]),"url"==e[n].validationType&&(o[e[n].property].format="uri"),"datepicker"==e[n].inputMethod&&(o[e[n].property].format="date-time"),".*"!=e[n].validation&&(o[e[n].property].pattern=e[n].validation),e[n].inputMethod){case"number":o[e[n].property].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{type:"number"}};break;case"select":var a="";if("undefined"!==i(e[n].options))for(var d in e[n].options)a+='<paper-item value="'+d+'">'+e[n].options[d]+"</paper-item>\n";o[e[n].property].component={name:"dropdown-select",valueProperty:"value",slot:a,properties:{required:e[n].required}};break;case"textarea":o[e[n].property].component={name:"paper-textarea",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate","char-counter":"char-counter"}};break;case"code-editor":o[e[n].property].component={name:"code-editor",valueProperty:"editorValue",attributes:{id:"haxcodeeditor"},properties:{title:e[n].title,readOnly:!1,theme:"ace/theme/monokai",mode:"ace/mode/html",fontsize:"16px",className:"hax-code-editor"}};break;case"array":o[e[n].property].items={type:"object",properties:r._getHaxJSONSchemaProperty(e[n].properties,r)};break;case"textfield":o[e[n].property].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"alt":o[e[n].property].component={name:"paper-input-flagged",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"colorpicker":o[e[n].property].component={name:"paper-swatch-picker",valueProperty:"color",properties:{required:e[n].required}};break;case"iconpicker":o[e[n].property].component={name:"paper-icon-picker",valueProperty:"icon",properties:{required:e[n].required}},e[n].options.constructor===Array&&(o[e[n].property].component.properties.iconList=e[n].options);break;case"datepicker":o[e[n].property].component={name:"app-datepicker",valueProperty:"date",properties:{required:e[n].required,autoUpdateDate:!0}}}else if("undefined"!==i(e[n].attribute))switch(o[e[n].attribute]={title:e[n].title,type:r.getHaxJSONSchemaType(e[n].inputMethod)},"class"===e[n].attribute?o[e[n].attribute].value=r.className:"style"===e[n].attribute?o[e[n].attribute].value=r.style.cssText:"undefined"!==i(r.attributes[e[n].attribute])&&(o[e[n].attribute].value=r.getAttribute(e[n].attribute)),"href"!=n&&"src"!=n||(o[e[n].attribute].format="uri"),"url"==e[n].validationType&&(o[e[n].attribute].format="uri"),"datepicker"==e[n].inputMethod&&(o[e[n].attribute].format="date-time"),".*"!=e[n].validation&&(o[e[n].attribute].pattern=e[n].validation),e[n].inputMethod){case"number":o[e[n].attribute].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{type:"number"}};break;case"select":a="";if("undefined"!==i(e[n].options))for(var d in e[n].options)a+='<paper-item value="'+d+'">'+e[n].options[d]+"</paper-item>\n";o[e[n].attribute].component={name:"dropdown-select",valueProperty:"value",slot:a,properties:{required:e[n].required}};break;case"textarea":o[e[n].attribute].component={name:"paper-textarea",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate","char-counter":"char-counter"}};break;case"code-editor":o[e[n].attribute].component={name:"code-editor",valueProperty:"editorValue",attributes:{id:"haxcodeeditor"},properties:{title:e[n].title,readOnly:!1,theme:"ace/theme/monokai",mode:"ace/mode/html",fontsize:"16px",className:"hax-code-editor"}};break;case"textfield":o[e[n].attribute].component={name:"paper-input",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"alt":o[e[n].attribute].component={name:"paper-input-flagged",valueProperty:"value",properties:{required:e[n].required},attributes:{"auto-validate":"auto-validate"}};break;case"colorpicker":o[e[n].attribute].component={name:"paper-swatch-picker",valueProperty:"color",properties:{required:e[n].required}}}else{o[e[n].slot]={title:e[n].title,type:r.getHaxJSONSchemaType(e[n].inputMethod),value:"",component:{name:"code-editor",valueProperty:"editorValue",attributes:{id:"haxcodeeditor"},properties:{title:e[n].title,readOnly:!1,theme:"ace/theme/monokai",mode:"ace/mode/html",fontsize:"16px",className:"hax-code-editor"}}};a="";for(var s in t.dom(r).childNodes)"undefined"!==i(t.dom(r).childNodes[s])&&(1===t.dom(r).childNodes[s].nodeType?a+=t.dom(r).childNodes[s].innerHTML:1!==t.dom(r).childNodes[s].nodeType&&"undefined"!==i(t.dom(r).childNodes[s].textContent)&&""!==t.dom(r).childNodes[s].textContent&&(a+=t.dom(r).childNodes[s].textContent));o[e[n].slot].component.slot="<template>"+a+"</template>"}return o},this.getHaxJSONSchemaType=function(e){if(r.validHAXPropertyInputMethod().includes(e))switch(e){case"flipboolean":case"boolean":return"boolean";case"number":return"number";case"select":case"textarea":case"colorpicker":case"iconpicker":case"datepicker":case"textfield":case"alt":return"string";case"array":return"array";default:return"string"}},this.validHAXPropertyInputMethod=function(){return["flipboolean","boolean","select","textfield","textarea","datepicker","colorpicker","iconpicker","alt","number","code-editor","array"]},this.prototypeHaxProperties=function(){return{api:"1",canScale:!0,canPosition:!0,canEditSource:!1,gizmo:{title:"Tag name",description:"A description",icon:"av:play-circle-filled",color:"blue",groups:["Content"],handles:[{type:"data",url:"src"}],meta:{author:""}},settings:{quick:[{property:"title",title:"Title",inputMethod:"textfield",icon:"android"},{property:"primaryColor",title:"Primary color",inputMethod:"colorpicker",icon:"color"}],configure:[{slot:"",title:"Inner content",description:"The slotted content that lives inside the tag",inputMethod:"textfield",icon:"android",required:!0,validationType:"text"},{slot:"button",title:"Button content",description:"The content that can override the button",inputMethod:"textfield",icon:"android",required:!0,validationType:"text"},{property:"title",title:"Title",description:"",inputMethod:"textfield",icon:"android",required:!0,validationType:"text"},{property:"primaryColor",title:"Title",description:"",inputMethod:"textfield",icon:"android",required:!1,validation:".*",validationType:"text"}],advanced:[{property:"secondaryColor",title:"Secondary color",description:"An optional secondary color used in certain edge cases.",inputMethod:"colorpicker",icon:"color"},{property:"endPoint",title:"API endpoint",description:"An optional endpoint to hit and load in more data dymaically.",inputMethod:"textfield",icon:"android",validation:"[a-z0-9]",validationType:"url"}]},saveOptions:{wipeSlot:!1,unsetAttributes:["end-point","secondary-color"]}}}};window.HAXWiring=new r,window.HAXBehaviors=window.HAXBehaviors||{},window.HAXBehaviors.PropertiesBehaviors={properties:{haxProperties:window.HAXWiring.haxProperties},setHaxProperties:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;return"undefined"!==i(this.tagName)&&(t=this.tagName.toLowerCase()),window.addEventListener("hax-store-ready",this._haxStoreReady.bind(this)),"undefined"!==i(window.HaxStore)&&null!=window.HaxStore.instance&&window.HaxStore.ready?window.HAXWiring.setHaxProperties(e,t,r,!0):window.HAXWiring.setHaxProperties(e,t,r,!1)},_haxStoreReady:function(e){if(e.detail&&"undefined"!==i(this.tagName)&&"undefined"!==i(this.haxProperties)){var t=this.tagName,r=this.haxProperties;if(""!==t&&"undefined"===i(window.HaxStore)){var o=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:r,polymer:!1}});this.dispatchEvent(o)}else if(""!==t&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[t.toLowerCase()])){var n=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:t.toLowerCase(),properties:r}});this.dispatchEvent(n)}else if("undefined"!==i(this.tagName)&&"undefined"!==i(window.HaxStore)&&"undefined"!==i(window.HaxStore.instance)&&null!=window.HaxStore.instance&&"undefined"!==i(window.HaxStore.instance.elementList)&&"undefined"===i(window.HaxStore.instance.elementList[this.tagName.toLowerCase()])){var a=new CustomEvent("hax-register-properties",{bubbles:!0,cancelable:!0,detail:{tag:this.tagName.toLowerCase(),properties:r}});this.dispatchEvent(a)}}},validateSetting:function(e){return window.HAXWiring.validateSetting(e)},getHaxProperties:function(){return this.haxProperties},getHaxJSONSchema:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;return window.HAXWiring.getHaxJSONSchema(e,t,i)},postProcessgetHaxJSONSchema:function(e){return window.HAXWiring.postProcessgetHaxJSONSchema(e)},_getHaxJSONSchemaProperty:function(e,t){return window.HAXWiring._getHaxJSONSchemaProperty(e,t)},getHaxJSONSchemaType:function(e){return window.HAXWiring.getHaxJSONSchemaType(e)},validHAXPropertyInputMethod:function(){return window.HAXWiring.validHAXPropertyInputMethod()},prototypeHaxProperties:function(){return window.HAXWiring.prototypeHaxProperties()}},e.HAXWiring=r,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=hax-body-behaviors.umd.js.map

@@ -14,3 +14,3 @@ {

},
"version": "0.0.34",
"version": "0.0.35",
"description": "Wire any element up to HAX",

@@ -42,3 +42,3 @@ "repository": {

"devDependencies": {
"@lrnwebcomponents/deduping-fix": "^0.0.34",
"@lrnwebcomponents/deduping-fix": "^0.0.35",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",

@@ -59,3 +59,3 @@ "@polymer/iron-demo-helpers": "3.0.2",

},
"gitHead": "85bf1e684f0f88c1ce807c92255af222057eeaa0"
"gitHead": "71dcc2b61045070a009e654226e6c0892f11a854"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc