luisa-vue3
Version:
Vue Low Code - VUE Renderer for FIGMA designs. Turn your Figma or Quant-UX design into VUE, or create re-usable designlets
2 lines • 300 kB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["luisa-vue3"]=t(require("vue")):e["luisa-vue3"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"02df":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-textarea{border:1px solid #333;resize:none;-webkit-transition:all .2s;transition:all .2s}.qux-textarea:focus{outline:none}",""]),e.exports=t},"0393":function(e,t,n){"use strict";n("46b8")},"0488":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-rating{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.qux-rating .mdi{cursor:pointer}",""]),e.exports=t},"04be":function(e,t,n){"use strict";n("a1bb")},"04c7":function(e,t,n){"use strict";n("80db")},"0865":function(e,t,n){"use strict";n("1806")},"0974":function(e,t,n){"use strict";n("ab5c")},"109d":function(e,t,n){"use strict";n("4674")},"10c2":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-vector{background-size:100% 100%}",""]),e.exports=t},"140a":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-repeater{overflow:auto}",""]),e.exports=t},1473:function(e,t,n){var o=n("780a");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("02e5c2bf",o,!0,{sourceMap:!1,shadowMode:!1})},"150c":function(e,t,n){var o=n("02df");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("b5ff05c4",o,!0,{sourceMap:!1,shadowMode:!1})},1806:function(e,t,n){var o=n("ffe2");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("f6762724",o,!0,{sourceMap:!1,shadowMode:!1})},1916:function(e,t,n){var o=n("b9c6");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("4bf79dce",o,!0,{sourceMap:!1,shadowMode:!1})},"1c90":function(e,t,n){"use strict";n("42be")},"1d09":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-stepper{display:inline-block;border:1px solid #333;color:#333;display:-webkit-box;display:-ms-flexbox;display:flex}.qux-stepper .qux-stepper-minus{width:50%;position:relative;text-align:center}.qux-stepper .qux-stepper-plus{width:calc(50% - 1px);border-left:1px solid #333;position:relative;text-align:center}.qux-stepper .qux-stepper-label{position:absolute;top:45%;left:0;width:100%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}",""]),e.exports=t},"1dec":function(e,t,n){var o=n("8ff5");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("0ff076d0",o,!0,{sourceMap:!1,shadowMode:!1})},2221:function(e,t,n){var o=n("6ebc");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("025e1495",o,!0,{sourceMap:!1,shadowMode:!1})},"24fb":function(e,t,n){"use strict";function o(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"===typeof btoa){var r=i(o),a=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}function i(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=o(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"===typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},"27df":function(e,t,n){var o=n("cc39");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("7f0276aa",o,!0,{sourceMap:!1,shadowMode:!1})},2919:function(e,t,n){"use strict";n("27df")},"32b2":function(e,t,n){"use strict";n("ca12")},"35ed":function(e,t,n){"use strict";n("2221")},"397d":function(e,t,n){var o=n("f761");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("2273055d",o,!0,{sourceMap:!1,shadowMode:!1})},"39c2":function(e,t,n){"use strict";n("bac5")},"3ea0":function(e,t,n){"use strict";n("150c")},"3f27":function(e,t,n){"use strict";n("f0d9")},"42be":function(e,t,n){var o=n("879b");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("9696d4ea",o,!0,{sourceMap:!1,shadowMode:!1})},"435a":function(e,t,n){"use strict";n("458e")},"458e":function(e,t,n){var o=n("ced2");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("386d2354",o,!0,{sourceMap:!1,shadowMode:!1})},4674:function(e,t,n){var o=n("bf15");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("25af3204",o,!0,{sourceMap:!1,shadowMode:!1})},"46b8":function(e,t,n){var o=n("8449");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("a432078c",o,!0,{sourceMap:!1,shadowMode:!1})},"499e":function(e,t,n){"use strict";function o(e,t){for(var n=[],o={},i=0;i<t.length;i++){var r=t[i],a=r[0],s=r[1],c=r[2],l=r[3],u={id:e+":"+i,css:s,media:c,sourceMap:l};o[a]?o[a].parts.push(u):n.push(o[a]={id:a,parts:[u]})}return n}n.r(t),n.d(t,"default",(function(){return f}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,l=!1,u=function(){},d=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,i){l=n,d=i||{};var a=o(e,t);return g(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i],c=r[s.id];c.refs--,n.push(c)}t?(a=o(e,t),g(a)):a=[];for(i=0;i<n.length;i++){c=n[i];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete r[c.id]}}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],o=r[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(y(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(y(n.parts[i]));r[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function y(e){var t,n,o=document.querySelector("style["+h+'~="'+e.id+'"]');if(o){if(l)return u;o.parentNode.removeChild(o)}if(p){var i=c++;o=s||(s=m()),t=v.bind(null,o,i,!1),n=v.bind(null,o,i,!0)}else o=m(),t=x.bind(null,o),n=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function v(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function x(e,t){var n=t.css,o=t.media,i=t.sourceMap;if(o&&e.setAttribute("media",o),d.ssrId&&e.setAttribute(h,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4b60":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-segment{-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch}.qux-segment,.qux-segment .qux-segment-item{display:-webkit-box;display:-ms-flexbox;display:flex}.qux-segment .qux-segment-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.qux-segment .qux-segment-item .qux-segment-item-label{display:inline-block;width:100%}",""]),e.exports=t},"4b6f":function(e,t,n){"use strict";n("aeee")},"4c3b":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-timeline{position:relative}.qux-timeline-line{position:absolute;height:100%;background:#333;width:8px;top:0;left:8px;border-radius:4px}.qux-timeline-element{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.qux-timeline-circle{display:inline-block;border-radius:50%;border-style:solid;width:32px;height:32px;background:#fff;border:2px solid #333}.qux-timeline-label{display:inline-block;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;color:#333;padding-left:8px}",""]),e.exports=t},"4cdb":function(e,t,n){"use strict";n("a62f")},5241:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-toggle{cursor:pointer;-webkit-transition:all .2s;transition:all .2s}",""]),e.exports=t},"54ca":function(e,t,n){"use strict";n("1473")},"58a5":function(e,t,n){var o=n("4c3b");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("435cdc34",o,!0,{sourceMap:!1,shadowMode:!1})},5991:function(e,t,n){"use strict";n("aad6")},"5ebe":function(e,t,n){var o=n("6ac4");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("10632dd7",o,!0,{sourceMap:!1,shadowMode:!1})},6359:function(e,t,n){var o=n("afc2");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("797b9334",o,!0,{sourceMap:!1,shadowMode:!1})},6381:function(e,t,n){"use strict";n("d2a9")},"6ac4":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-radiobox{display:inline-block;overflow:hidden}.qux-radiobox .qux-radiobox-cntr{position:relative;width:100%;height:100%;display:inline-block;vertical-align:middle}.qux-radiobox .qux-radiobox-hook{-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:opacity;transition-property:opacity;background:#1973e8;border-radius:50%;display:inline-block;height:60%;width:60%;left:20%;position:absolute;opacity:0;top:20%}.qux-radiobox .qux-radiobox-label{margin-left:10px;vertical-align:middle;cursor:pointer}.qux-radiobox-checked .qux-radiobox-hook{opacity:1}",""]),e.exports=t},"6ebc":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,"",""]),e.exports=t},"760f":function(e,t,n){"use strict";n("ad9d")},"764c":function(e,t,n){"use strict";n("d2f0")},"771a":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-upload{cursor:pointer;-webkit-transition:all .2s;transition:all .2s;border:1px solid red}.qux-upload input{height:100%;width:100%;opacity:0;cursor:pointer}",""]),e.exports=t},"780a":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-checkgroup{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.qux-checkgroup .qux-checkbox{display:block}.qux-checkgroup .qux-checkbox .qux-checkbox-cntr{vertical-align:middle}",""]),e.exports=t},"783a":function(e,t,n){"use strict";n("d931")},8040:function(e,t,n){var o=n("c7aa");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("7b673c79",o,!0,{sourceMap:!1,shadowMode:!1})},"80db":function(e,t,n){var o=n("fb8c");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("d4d82594",o,!0,{sourceMap:!1,shadowMode:!1})},8449:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-container{border-style:solid;border-width:0}.qux-container .qux-container-debug{color:red}.qux-container .qux-container-wrapper-placeholder{background:red;height:1px;width:100px}",""]),e.exports=t},"84b3":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-radiogroup{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.qux-radiogroup .qux-radiobox{display:block}",""]),e.exports=t},"879b":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-dropdown{border:1px solid #333;-webkit-transition:all .2s;transition:all .2s;display:inline-block;position:relative;cursor:pointer}.qux-dropdown .qux-dropdown-label{height:100%;width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.qux-dropdown .qux-dropdown-label .qux-dropdown-expend{position:absolute;height:100%;top:0;right:0;width:40px}.qux-dropdown .qux-dropdown-label .qux-dropdown-carret{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid;display:inline-block;height:0;margin-left:2px;vertical-align:middle;width:0;position:absolute;right:50%;top:50%;-webkit-transform:translateY(-50%) translateX(50%);transform:translateY(-50%) translateX(50%);cursor:pointer}.qux-dropdown .qux-dropdown-popup{position:absolute;top:100%;left:0;display:none;border:1px solid #333;width:100%;z-index:1000;background:#fff;max-height:300px;overflow:auto}.qux-dropdown .qux-dropdown-item{display:block;cursor:pointer}.qux-dropdown.qux-open .qux-dropdown-popup{display:block}.qux-dropdown.qux-dropdown-mobile .qux-dropdown-popup{position:fixed;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:10%;width:80%;max-height:80%;overflow:auto;border-radius:20px;background:#333;color:#fff;-webkit-box-shadow:0 3px 100px rgba(0,0,0,.5);box-shadow:0 3px 100px rgba(0,0,0,.5);border:none;z-index:10001}.qux-dropdown.qux-dropdown-mobile .qux-dropdown-popup .qux-dropdown-item{display:block;cursor:pointer;padding:20px;font-size:20px}",""]),e.exports=t},8875:function(e,t,n){var o,i,r;(function(n,a){i=[],o=a,r="function"===typeof o?o.apply(t,i):o,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,o,i,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=r.exec(p.stack)||a.exec(p.stack),c=s&&s[1]||!1,l=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");c===u&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(o,"$1").trim());for(var h=0;h<d.length;h++){if("interactive"===d[h].readyState)return d[h];if(d[h].src===c)return d[h];if(c===u&&d[h].innerHTML&&d[h].innerHTML.trim()===i)return d[h]}return null}}return e}))},"8a4c":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,'.qux{background:none;height:100%}.qux.qux-component-screen{height:auto;display:inline-block}.qux-screen{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:100%;background-size:100%}.qux-action{text-decoration:none}.qux-action,.qux-action *{cursor:pointer}.qux-valign-middle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center}.qux-valign-middle .qux-common-label{width:100%}.qux-valign-bottom{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-ms-flex-line-pack:end;align-content:flex-end}.qux-valign-bottom .qux-common-label{width:100%}.qux-overlay-wrapper{width:100%;height:100%;position:absolute;top:0;left:0;z-index:99999}.qux-overlay-wrapper.qux-overlay-wrapper-fixed{position:fixed}.qux-screen-blurred{-webkit-filter:blur(10px);filter:blur(10px)}.qux-resize-left:before{content:"";width:3px;background:orange}.qux-resize-right:after{content:"";width:3px;background:orange}.qux-common-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.qux-common-valign-center{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.qux-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.qux-button{display:inline-block;border-style:solid;border-width:0}a.qux-button{text-decoration:none}',""]),e.exports=t},"8bbf":function(t,n){t.exports=e},"8bd9":function(e,t,n){"use strict";n("cc0a")},"8efa":function(e,t,n){"use strict";n("58a5")},"8f51":function(e,t,n){var o=n("f4e8");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("f7aa3fbe",o,!0,{sourceMap:!1,shadowMode:!1})},"8ff5":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-toggle{cursor:pointer;-webkit-transition:all .2s;transition:all .2s}",""]),e.exports=t},9137:function(e,t,n){"use strict";n("c7a1")},9465:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-date{overflow:hidden}.qux-date .qux-date-header{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:15%;font-size:120%}.qux-date .qux-date-header .qux-date-header-btn{position:relative;width:15%;text-align:center;cursor:pointer}.qux-date .qux-date-header .qux-date-header-label{position:relative;text-align:center;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.qux-date .qux-date-header-label .qux-common-valign-center{width:100%}.qux-date .qux-date-body{width:100%;height:85%}.qux-date .qux-date-body table{width:100%;height:100%;border-spacing:0;border-collapse:collapse;text-align:center}.qux-date .qux-date-body td,.qux-date .qux-date-body th{padding:5px;width:14.3%}.qux-date .qux-date-body td{cursor:pointer}.qux-date .qux-date-body .qux-date-range-end,.qux-date .qux-date-body .qux-date-range-start,.qux-date .qux-date-body .qux-date-selected{background:#333;color:#fff}.qux-date .qux-date-body .qux-date-range-middle{background:#555;color:#fff}",""]),e.exports=t},"95b2":function(e,t,n){var o=n("e7e7");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("6cec7cba",o,!0,{sourceMap:!1,shadowMode:!1})},a1bb:function(e,t,n){var o=n("beac");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("36d04c1e",o,!0,{sourceMap:!1,shadowMode:!1})},a61b:function(e,t,n){"use strict";n("6359")},a62f:function(e,t,n){var o=n("eb39");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("b202a1ae",o,!0,{sourceMap:!1,shadowMode:!1})},a775:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-icon-toggle{display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}.qux-icon-toggle .qux-icon-toggle-label{padding-left:10px}",""]),e.exports=t},aad6:function(e,t,n){var o=n("771a");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("323e9ee8",o,!0,{sourceMap:!1,shadowMode:!1})},ab5c:function(e,t,n){var o=n("1d09");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("1c510ef4",o,!0,{sourceMap:!1,shadowMode:!1})},ac19:function(e,t,n){"use strict";n("1916")},ad9d:function(e,t,n){var o=n("8a4c");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("0e45268a",o,!0,{sourceMap:!1,shadowMode:!1})},ae03:function(e,t,n){"use strict";n("ee07")},ae5d:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-label{display:inline-block}.qux-label .qux-richtext h1{font-size:150%;font-weight:600}.qux-label .qux-richtext h2{font-size:140%;font-weight:600}.qux-label .qux-richtext h3{font-size:130%;font-weight:600}.qux-label .qux-richtext h4{font-size:120%;font-weight:600}.qux-label .qux-richtext h5,.qux-label .qux-richtext h6{font-size:100%;font-weight:600}",""]),e.exports=t},aee5:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-camera{cursor:pointer;-webkit-transition:all .2s;transition:all .2s;border:1px solid red;position:relative}.qux-camera .qux-camera-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);cursor:pointer}.qux-camera input{height:100%;width:100%;opacity:0;cursor:pointer}",""]),e.exports=t},aeee:function(e,t,n){var o=n("c325");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("0a9fa113",o,!0,{sourceMap:!1,shadowMode:!1})},af65:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-date-picker{border:1px solid #333;position:relative}.qux-date-picker .qux-common-placeholder{opacity:.7}.qux-date-picker .qux-date-picker-icon{position:absolute;right:50%;top:50%;-webkit-transform:translateY(-50%) translateX(50%);transform:translateY(-50%) translateX(50%)}.qux-date-picker .qux-date-picker-expend{position:absolute;height:100%;top:0;right:0;width:40px}.qux-date-picker .qux-date-picker-carret{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid;display:inline-block;height:0;margin-left:2px;vertical-align:middle;width:0;position:absolute;right:50%;top:50%;-webkit-transform:translateY(-50%) translateX(50%);transform:translateY(-50%) translateX(50%);cursor:pointer}.qux-date-picker .qux-date-picker-popup{position:absolute;top:calc(100% + 1px);left:0;display:none;border:1px solid #333;width:100%;height:300px;max-width:300px;max-height:300px;z-index:1000;background:#fff}.qux-date-picker .qux-date-picker-popup .qux-date{height:100%}.qux-date-picker .qux-date-picker-item{display:block;cursor:pointer}.qux-date-picker.qux-open .qux-date-picker-popup{display:block}",""]),e.exports=t},afc2:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-chart{border:0 solid #333}",""]),e.exports=t},b16e:function(e,t,n){"use strict";n("f135")},b9c6:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,"",""]),e.exports=t},ba07:function(e,t,n){var o=n("af65");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("7b14fb49",o,!0,{sourceMap:!1,shadowMode:!1})},bac5:function(e,t,n){var o=n("ae5d");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("68e087e4",o,!0,{sourceMap:!1,shadowMode:!1})},beac:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-switch{cursor:pointer;position:relative}.qux-switch .qux-switch-cntr{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.qux-switch .qux-switch-cntr.qux-switch-cntr-thin{height:50%;top:50%;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.qux-switch .qux-switch-cntr .qux-switch-on{left:-100%}.qux-switch .qux-switch-cntr .qux-switch-off,.qux-switch .qux-switch-cntr .qux-switch-on{position:absolute;width:100%;height:100%;top:0;-webkit-transition:all .3s;transition:all .3s}.qux-switch .qux-switch-cntr .qux-switch-off{left:0}.qux-switch .qux-switch-handle{position:absolute;top:0;left:0;-webkit-transition:all .3s;transition:all .3s;border:1px solid transparent}.qux-switch.qux-active .qux-switch-handle{position:absolute;top:0;left:auto;right:0}.qux-switch.qux-active .qux-switch-on{left:0}.qux-switch.qux-active .qux-switch-off{left:100%}",""]),e.exports=t},bf15:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-compoment-set{border-style:solid;border-width:0}",""]),e.exports=t},c151:function(e,t,n){"use strict";n("ba07")},c325:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-spinner{border:none;position:relative;overflow:hidden;cursor:pointer}.qux-spinner .qux-spinner-border{position:absolute;height:33.3%;width:100%;top:33.3%;left:0;border-top:1px solid #333;border-bottom:1px solid #333}.qux-spinner .qux-spinner-option-cntr{position:absolute;left:0;height:300%;width:100%}.qux-spinner .qux-spinner-option-cntr.qux-spinner-option-cntr-animated{-webkit-transition:all .33s;transition:all .33s}.qux-spinner .qux-spinner-option{display:block;height:20%;width:100%;opacity:.6;position:relative;text-align:center}.qux-spinner .qux-spinner-option .qux-common-label{width:100%}.qux-spinner .qux-spinner-option.qux-spinner-option-selected{opacity:1}",""]),e.exports=t},c7a1:function(e,t,n){var o=n("5241");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("1d74e7e9",o,!0,{sourceMap:!1,shadowMode:!1})},c7aa:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-table{overflow:auto}.qux-table.qux-table-fixed{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.qux-table.qux-table-fixed .qux-table-body{overflow:auto;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.qux-table table{width:100%;height:100%;border-spacing:0;border-collapse:collapse}.qux-table table .qux-table-action{cursor:pointer}.qux-table table .qux-table-action:hover{text-decoration:underline}.qux-table table .qux-table-action-hover{opacity:0}.qux-table table th{cursor:pointer}.qux-table table tr:hover .qux-table-action-hover{opacity:1}.qux-table table .qux-table-action-cntr{text-align:right}.qux-checkbox{display:inline-block;overflow:hidden;cursor:pointer}.qux-checkbox .qux-checkbox-cntr{position:relative;width:100%;height:100%;display:inline-block;vertical-align:top;border:1px solid #333}.qux-checkbox .qux-checkbox-hook{-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:opacity;transition-property:opacity;border-bottom:3px solid #333;border-right:3px solid #333;transform:rotate(45deg);-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);display:inline-block;height:70%;width:30%;left:30%;position:absolute;opacity:0;top:0}.qux-checkbox .qux-checkbox-label{margin-left:10px;vertical-align:middle;cursor:pointer}.qux-checkbox-checked .qux-checkbox-hook{opacity:1}",""]),e.exports=t},ca12:function(e,t,n){var o=n("aee5");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("54d73212",o,!0,{sourceMap:!1,shadowMode:!1})},cc0a:function(e,t,n){var o=n("f21a");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("bece7f60",o,!0,{sourceMap:!1,shadowMode:!1})},cc39:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-checkbox{display:inline-block;overflow:hidden;cursor:pointer}.qux-checkbox .qux-checkbox-cntr{position:relative;width:100%;height:100%;display:inline-block;vertical-align:top;border:1px solid #333}.qux-checkbox .qux-checkbox-hook{-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:opacity;transition-property:opacity;border-bottom:3px solid #333;border-right:3px solid #333;transform:rotate(45deg);-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);display:inline-block;height:70%;width:30%;left:30%;position:absolute;opacity:0;top:0}.qux-checkbox .qux-checkbox-label{margin-left:10px;vertical-align:middle;cursor:pointer}.qux-checkbox-checked .qux-checkbox-hook{opacity:1}",""]),e.exports=t},cc7d:function(e,t,n){"use strict";n("fa6a")},ced2:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-textbox{border:1px solid #333;-webkit-transition:all .2s;transition:all .2s;padding:0}.qux-textbox:focus{outline:none}",""]),e.exports=t},d0ae:function(e,t,n){var o=n("4b60");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("87092d34",o,!0,{sourceMap:!1,shadowMode:!1})},d2a9:function(e,t,n){var o=n("10c2");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("2fd1c6c1",o,!0,{sourceMap:!1,shadowMode:!1})},d2f0:function(e,t,n){var o=n("140a");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("22285934",o,!0,{sourceMap:!1,shadowMode:!1})},d63c:function(e,t,n){"use strict";n("8040")},d8f4:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-rich-text{display:inline-block}.qux-rich-text .qux-common-label{width:100%}.qux-rich-text .qux-common-label span{display:inline}",""]),e.exports=t},d931:function(e,t,n){var o=n("0488");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("7150d64c",o,!0,{sourceMap:!1,shadowMode:!1})},d959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{for(const[n,o]of t)e[n]=o;return e}},dbbf:function(e,t,n){"use strict";n("397d")},e7e7:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-label{display:inline-block;text-decoration:none}",""]),e.exports=t},eb39:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,'.qux{background:none;height:100%}.qux.qux-component-screen{height:auto;display:inline-block}.qux-screen{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:100%;background-size:100%}.qux-action{text-decoration:none}.qux-action,.qux-action *{cursor:pointer}.qux-valign-middle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center}.qux-valign-middle .qux-common-label{width:100%}.qux-valign-bottom{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-ms-flex-line-pack:end;align-content:flex-end}.qux-valign-bottom .qux-common-label{width:100%}.qux-overlay-wrapper{width:100%;height:100%;position:absolute;top:0;left:0;z-index:99999}.qux-overlay-wrapper.qux-overlay-wrapper-fixed{position:fixed}.qux-screen-blurred{-webkit-filter:blur(10px);filter:blur(10px)}.qux-resize-left:before{content:"";width:3px;background:orange}.qux-resize-right:after{content:"";width:3px;background:orange}.qux-common-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.qux-common-valign-center{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.qux-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""]),e.exports=t},ec79:function(e,t,n){"use strict";n("1dec")},ed76:function(e,t,n){"use strict";n("8f51")},ee07:function(e,t,n){var o=n("9465");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("1f048245",o,!0,{sourceMap:!1,shadowMode:!1})},ef5f:function(e,t,n){"use strict";n("95b2")},f0d9:function(e,t,n){var o=n("a775");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("33d18efe",o,!0,{sourceMap:!1,shadowMode:!1})},f135:function(e,t,n){var o=n("84b3");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("2d914847",o,!0,{sourceMap:!1,shadowMode:!1})},f21a:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-slider{position:relative;cursor:pointer}.qux-slider .qux-slider-track{width:100%;height:34%;position:absolute;top:33%;left:0;border:0;overflow:hidden}.qux-slider .qux-slider-track .qux-slider-progress{height:100%}.qux-slider .qux-slider-handle-cntr{position:absolute;top:0;left:0}.qux-slider .qux-slider-handle{position:absolute;top:0;left:0;width:40px;border-radius:20px;cursor:pointer}",""]),e.exports=t},f4e8:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-paging{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.qux-paging .qux-paging-item{cursor:pointer;position:relative}.qux-paging .qux-paging-item-active{background:#333}",""]),e.exports=t},f761:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-combo{border:none;position:relative;-webkit-transition:all .2s;transition:all .2s}.qux-combo .qux-combo-input{width:100%;height:100%}.qux-combo .qux-combo-input:focus{outline:none}.qux-combo .qux-combo-popup{position:absolute;top:calc(100% + 1px);left:0;display:none;border:1px solid #333;width:100%;z-index:1000;max-height:300px;overflow:auto;background:#fff}.qux-combo .qux-combo-item{display:block;cursor:pointer}.qux-combo.qux-open .qux-combo-popup{display:block}",""]),e.exports=t},fa41:function(e,t,n){"use strict";n("5ebe")},fa6a:function(e,t,n){var o=n("d8f4");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=n("499e").default;i("3fd3ddf3",o,!0,{sourceMap:!1,shadowMode:!1})},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"createFigmaService",(function(){return fl})),n.d(t,"createModelTransformer",(function(){return gl})),n.d(t,"createCSSOptimizer",(function(){return ml})),n.d(t,"createCSSFactory",(function(){return yl})),n.d(t,"createCSSWriter",(function(){return bl})),n.d(t,"setLogLevel",(function(){return vl})),n.d(t,"createFigmaDesignlets",(function(){return xl})),n.d(t,"createFigmaDesignSystem",(function(){return kl})),n.d(t,"createQUXDesignlets",(function(){return Cl})),n.d(t,"createQUXDesignSystem",(function(){return wl})),n.d(t,"getDesignSystem",(function(){return Sl})),"undefined"!==typeof window){var o=window.document.currentScript,i=n("8875");o=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var r=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var l=function(){function e(){a(this,e),this.logLevel=0}return c(e,[{key:"setLogLevel",value:function(e){this.logLevel=e}},{key:"warn",value:function(e,t){void 0!==t?console.warn(e,t):console.warn(e)}},{key:"error",value:function(e,t){void 0!==t?console.error(e,t):console.error(e)}},{key:"log",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";e<this.logLevel&&(void 0!==n?console.debug(t,n,o):console.debug(t))}}]),e}(),u=new l,d=Object.freeze({Row:"row",Grid:"grid",Wrap:"wrap",AutoHorizontal:"auto-horizontal",AutoVertical:"auto-vertical"});function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.setAccessKey(t),this.baseURL="https://api.figma.com/v1/",this.vectorTypes=["LINE","ELLIPSE","VECTOR"],this.buttonTypes=["RECTANGLE","TEXT","FRAME","GROUP","INSTANCE","COMPONENT","VARIANT_COMPONENT","COMPONENT_SET"],this.ignoredTypes=[],this.allAsVecor=!1,this.max_ids=50,this.pluginId="858477504263032980",this.downloadVectors=!0,this.imageScaleFactor=2,this.throttleRequestThreshold=10,this.throttleRequestTimeout=1e3,this.pinnRight=!1,this.errors=[],this.autoLineHeightAsNormal=!0,this.defaultFontFamily="Helvetica Neue,Helvetica,Arial,sans-serif",n.figma&&(n.figma.throttleRequestThreshold&&(this.throttleRequestThreshold=n.figma.throttleRequestThreshold),n.figma.throttleRequestTimeout&&(this.throttleRequestTimeout=n.figma.throttleRequestTimeout),n.figma.throttleBatchSize&&(this.max_ids=n.figma.throttleBatchSize),n.figma.pinnRight&&(this.pinnRight=n.figma.pinnRight),!1===n.figma.downloadVectors&&(this.downloadVectors=!1),""!==n.figma.defaultFontFamily&&(this.defaultFontFamily=n.figma.defaultFontFamily)),n.css&&!1===n.css.autoLineHeightAsNormal&&(u.log(-1,"FigmaService.constructor () > Auto Line === 150%"),this.autoLineHeightAsNormal=!1),this.figmaAlignMapping={MIN:"flex-start",CENTER:"center",MAX:"flex-end",SPACE_BETWEEN:"space-between"},this.figmaAnimationTypeMapping={ON_CLICK:"click",ON_HOVER:"hover",MOUSE_LEAVE:"mouseleave",MOUSE_ENTER:"mouseenter",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown"},this.figmaAnimationEasingMapping={}}return f(e,[{key:"setImageScaleFactor",value:function(e){return this.imageScaleFactor=e,this}},{key:"setAccessKey",value:function(e){return this.key=e,this}},{key:"setDownloadVectors",value:function(e){return this.downloadVectors=e,this}},{key:"setBackgroundImages",value:function(e){var t=this;return u.log("FigmaService.setBackgroundImages()"),Object.values(e.screens).forEach((function(e){return t.setBackgroundImage(e)})),Object.values(e.widgets).forEach((function(e){return t.setBackgroundImage(e)})),e}},{key:"setBackgroundImage",value:function(e){e.props.figmaImage&&(e.style.backgroundImage={url:e.props.figmaImage})}},{key:"_createDefaultHeader",value:function(){var e=new Headers({"Content-Type":"application/json",Accept:"application/json","X-Figma-Token":this.key});return e}},{key:"getRaw",value:async function(e){var t=this;return new Promise((function(n,o){var i=t.baseURL+"files/"+e+"?geometry=paths&plugin_data="+t.pluginId;fetch(i,{method:"get",credentials:"same-origin",headers:t._createDefaultHeader()}).then((function(e){e.json().then((function(e){try{n(e)}catch(t){u.error("FigmaService.getRaw() > Error",t),n(null)}}))}),(function(e){o(e)}))}))}},{key:"getPages",value:function(e){u.log(-1,"getPages() > enter");var t=[],n=e.document;return n.children&&n.children.forEach((function(e){t.push({id:e.id,value:e.id,label:e.name})})),u.log(-1,"getPages() > exit",t),t}},{key:"get",value:async function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return this.allAsVecor=o,new Promise((function(o,r){var a=t.baseURL+"files/"+e+"?geometry=paths&plugin_data="+t.pluginId;fetch(a,{method:"get",credentials:"same-origin",headers:t._createDefaultHeader()}).then((function(r){r.json().then((function(r){try{var a=t.parse(e,r,n,i);o(a)}catch(s){u.error("FigmaService.get() > Error",s),o(null)}}))}),(function(e){r(e)}))}))}},{key:"getImages",value:function(e,t){var n=this;return new Promise((function(o,i){var r=n.baseURL+"images/"+e+"?format=png&scale=".concat(n.imageScaleFactor,"&ids=")+t;fetch(r,{method:"get",credentials:"same-origin",headers:n._createDefaultHeader()}).then((function(e){e.json().then((function(e){try{o(e)}catch(t){u.error("FigmaService.getImages() > Error",t),i(t)}}))}),(function(e){i(e)}))}))}},{key:"parse",value:async function(e,t){var n=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u.log(3,"FigmaService.parse() > enter importChildren:"+o,t),this.errors=[];var r=this.createApp(e,t),a=t.document;return t._elementsById={},t._elementsToWidgets={},a.children&&a.children.forEach((function(e){(0===i.length||i.indexOf(e.name)>=0)&&(u.log(-1,"FigmaService.parse() > parse page:"+e.name),e.children&&e.children.forEach((function(i){n.isInvisible(i)||(n.isFrame(i)&&n.parseScreen(i,r,t,o,e),(n.isComponet(i)||n.isComponentSet(i))&&n.parseComponent(i,r,t,o,e))})))})),this.setVarientComponents(r,t),this.setLineTos(r,t),this.setDynamicComponents(r,t),await this.addBackgroundImages(e,r,o),r}},{key:"setDynamicComponents",value:function(e,t){var n=this;u.log(2,"FigmaService.setDynamicComponents() > enter"),Object.values(e.widgets).forEach((function(o){if(o.fimgaTransitionNodeID&&"INSTANCE"===o.figmaType){var i=t._elementsById[o.fimgaTransitionNodeID];if(i&&i._parent){var r=i._parent;if("COMPONENT_SET"===r.type&&r.children){o.type=n.getDynamicType(r),o.props.dynamicChildren=[],o.props.dynamicLines=[];var a=t._elementsToWidgets[r.id];o.props.dynamicParent=a,r.children.forEach((function(i){var r=t._elementsToWidgets[i.id];if(r){var a=e.widgets[r];o.props.dynamicChildren.push(r),i.id===o.figmaComponentId&&(o.props.dynamicStart=r);var s=n.parseFigmaAnitions(a.props.figmaAnimation);if(s&&s.length>0)s.forEach((function(e){var n=t._elementsToWidgets[e.figmaTo];n&&(console.debug("dynamic line",e.event,e.animation),o.props.dynamicLines.push({from:r,to:n,duration:e.duration,animation:e.animation,event:e.event}))}));else if(i.transitionNodeID){var c=t._elementsToWidgets[i.transitionNodeID];o.props.dynamicLines.push({from:r,to:c,duration:i.transitionDuration,animation:"none",event:"click"})}}})),u.log(3,"FigmaService.setDynamicComponents() > "+o.name,o.props.dynamicStart,o.props.dynamicChildren),u.log(3,"FigmaService.setDynamicComponents() > "+o.name,o.props.dynamicLines,o.props.dynamicParent)}}}}))}},{key:"parseFigmaAnitions",value:function(e){var t=this;if(e){var n=e.map((function(e){var n={animation:"none",duration:200};if(e.trigger&&e.action){var o=e.trigger.type,i=e.action;if(t.figmaAnimationTypeMapping[o]&&(n.event=t.figmaAnimationTypeMapping[o]),n.figmaTo=i.destinationId,n.figmaFrom="",i.transition){var r=i.transition;"SMART_ANIMATE"===r.type&&(n.animation="transform"),r.easing&&t.figmaAnimationEasingMapping[r.easing]&&(n.easing=t.figmaAnimationEasingMapping[r.easing]),n.duration=Math.round(1e3*r.duration)}return n}}));return n}return null}},{key:"getDynamicType",value:function(e){return u.log(3,"FigmaService.getDynamicType()",e.name),"DynamicContainer"}},{key:"setVarientComponents",value:function(e){var t=this,n={};Object.values(e.widgets).forEach((function(o){var i=e.widgets[o.parentId];i&&"COMPONENT_SET"===i.figmaType&&(o.props.isComponet=!0,o.props.isVaraint=!0,o.variant=t.parseVariant(o.name),n[o.parentId]||(n[o.parentId]=[]),n[o.parentId].push(o),o.name=i.name+"-"+Object.values(o.variant).join("-"))}))}},{key:"parseVariant",value:function(e){var t={};return e.indexOf("-")>=0?e.split("-").map((function(e){return e.split("=")})).filter((function(e){return e.length>1})).forEach((function(e){return t[e[0].trim()]=e[1].trim()})):e.split(",").map((function(e){return e.split("=")})).filter((function(e){return e.length>1})).forEach((function(e){return t[e[0].trim()]=e[1].trim()})),u.log(2,"FigmaService.addBackgroundImages() > parseVariant",e,t),t}},{key:"getParentVarientComponent",value:function(e,t,n){var o=t[e.figmaComponentId];while(o&&"VARIANT_COMPONENT"!==o.figmaType)o=n.widgets[o.parentId];return o}},{key:"setLineTos",value:function(e){var t={};Object.values(e.widgets).forEach((function(e){t[e.figmaId]=e.id}));var n={};Object.values(e.screens).forEach((function(e){n[e.figmaId]=e.id})),Object.values(e.lines).forEach((function(e){e.from=t[e.figmaFrom],n[e.figmaTo]&&(e.to=n[e.figmaTo]),t[e.figmaTo]&&(e.to=t[e.figmaTo],e.isComponentLine=!0)}))}},{key:"addBackgroundImages",value:async function(e,t,n){var o=this;if(u.log(1,"FigmaService.addBackgroundImages() > importChildren",n),this.downloadVectors){var i=this.getElementsWithBackgroundIMage(t,n);if(i.length>0){u.log(-1,"FigmaService.addBackgroundImages() > vectors",i.length);var r=this.getChunks(i,this.max_ids),a=r.map((function(t,n){return o.addBackgroundImagesBatch(e,t,n,r.length)}));await Promise.all(a)}}else u.log(3,"FigmaService.addBackgroundImages() > Skip");u.log(3,"FigmaService.addBackgroundImages() > exit")}},{key:"getElementsWithBackgroundIMage",value:function(e,t){return t?Object.values(e.widgets).filter((function(e){return e.props.isVector||e.hasBackgroundImage})):Object.values(e.screens)}},{key:"addBackgroundImagesBatch",value:async function(e,t,n,o){var i=this;return u.log(1,"FigmaService.addBackgroundImagesBatch() > start",n),new Promise((function(r,a){setTimeout((function(){var o=t.map((function(e){return e.figmaId})).join(",");i.getImages(e,o).then((function(e){if(null===e.err){u.log(3,"FigmaService.addBackgroundImagesBatch () > end",n);var o=e.images;t.forEach((function(e){var n=o[e.figmaId];n?e.props.figmaImage=n:(u.error("FigmaService.addBackgroundImagesBatch() > Cannot get image for ",e),i.errors.push({type:"ImageGetError",data:e})),r(t)}))}else u.error("FigmaService.addBackgroundImagesBatch () > Could not get images",e),a(e.err)}),(function(e){u.error("FigmaService.addBackgroundImagesBatch() > Could not get images",e),a(e)}))}),i.getImageTimeout(n,o))}))}},{key:"getImageTimeout",value:function(e,t){return t>this.throttleRequestThreshold?(u.warn("igmaService.getImageTimeout () > Throttle requests. Delay request ".concat(e," by ").concat(e*this.throttleRequestTimeout," ms")),e*this.throttleRequestTimeout):0}},{key:"getChunks",value:function(e,t){for(var n=[],o=0;o<e.length;o+=t){var i=e.slice(o,o+t);n.push(i)}return n}},{key:"parseComponent",value:function(e,t,n,o,i){u.log(3,"FigmaService.parseComponent()",e.name);var r=this.getPosition(e),a={id:"s"+this.getUUID(t),figmaId:e.id,pageName:i.name,name:e.name+"Wrapper",isComponentScreen:!0,type:"Screen",x:r.x,y:r.y,w:r.w,h:r.h,props:{},children:[],style:{background:"transparent"}};t.screens[a.id]=a,this.getPluginData(e,a,n),this.parseElement(e,a,e,t,n,a.id)}},{key:"parseScreen",value:function(e,t,n,o,i){var r=this;u.log(3,"FigmaService.parseScreen()",e.name);var a=this.getPosition(e),s={id:"s"+this.getUUID(t),figmaId:e.id,pageName:i.name,name:e.name,type:"Screen",x:a.x,y:a.y,w:a.w,h:a.h,props:{},children:[],layout:{},style:this.getStyle(e)};return s=this.getLayout(e,s),this.getPluginData(e,s,n),e.children&&e.children.forEach((function(o){o._parent=e,r.parseElement(o,s,e,t,n,s.id)})),t.screenSize.w=-1===t.screenSize.w?a.w:Math.max(t.screenSize.w,a.w),t.screenSize.h=-1===t.screenSize.h?a.h:Math.max(t.screenSize.h,a.h),t.screens[s.id]=s,u.log(4,"FigmaService.parseScreen() exit ",e.name,s.id),s}},{key:"parseElement",value:function(e,t,n,o,i,r){var a=this;u.log(5,"FigmaService.parseElement() > enter: "+e.name,e.type);var s=null;if(this.isIgnored(e)||this.isInvisible(e))u.log(4,"FigmaService.parseElement() >Ignore: "+e.name,e.type);else{var c=this.getPosition(e),l="w"+this.getUUID(o);s={id:l,parentId:r,name:this.getFigmaName(e,l),type:this.getType(e),figmaId:e.id,figmaType:e.type,figmaComponentId:this.getFigmaComponentId(e),fimgaTransitionNodeID:e.transitionNodeID,x:c.x,y:c.y,w:c.w,h:c.h,layout:{},z:this.getZ(e,o)},s.style=this.getStyle(e,s),s.props=this.getProps(e,s),s.has=this.getHas(e,s),s=this.getPluginData(e,s,i),s=this.getLayout(e,s),i._elementsById[e.id]=e,i._elementsToWidgets[e.id]=l,o.widgets[s.id]=s,t.children.push(s.id),r=s.id}return e.children&&(this.isVector(e)||this.isInvisible(e)||this.isCustomVector(e)?u.log(6,"FigmaService.parseElement() > No recursive: "+e.name,e.type):e.children.forEach((function(s){!1!==s.visible&&(s._parent=e,u.log(3,"FigmaService.parseElement() > go recursive",e),a.parseElement(s,t,n,o,i,r))}))),this.addTempLine(e,o,s),s}},{key:"getFigmaComponentId",value:function(e){if("INSTANCE"===e.type)return e.componentId;if(0===e.id.indexOf("I")){var t=e.id.split(";");if(2===t.length)return t[1]}}},{key:"getFigmaName",value:function(e,t){var n=e.name;return n.length>50&&(n=t),n.replace(/#/g,"").replace(/\//g,"-").replace(/&/g,"").replace(/,/g,"-")}},{key:"addTempLine",value:function(e,t,n){if(u.log(4,"FigmaService.addLine() > enter",e.name,"transition :"+e.transitionNodeID,e),e.transitionNodeID){var o=this.getFirstNoIgnoredChild(e);u.log(6,"addLine() > : ",e.name,o);var i={id:"l"+this.getUUID(t),from:null,to:null,figmaFrom:o.id,figmaTo:e.transitionNodeID,points:[],event:"click",animation:"",duration:e.transitionDuration};n&&n.props.figmaAnimation,t.lines[i.id]=i}}},{key:"getFirstNoIgnoredChild",value:function(e){return this.isIgnored(e)&&e.children.length>0?(u.log(5,"FigmaService.getFirstNoIgnoredChild() > take child ",e.name),this.getFirstNoIgnoredChild(e.children[0])):e}},{key:"getPluginData",value:function(e,t){if(e.pluginData&&e.pluginData[this.pluginId]){var n=e.pluginData[this.pluginId];if(n.quxType&&(u.log(-1,"FigmaService.getPluginData() > quxType : ",n.quxType,e.name),t.type=n.quxType,t.props.placeholder=!0,"SmartContainer"===n.quxType&&n.quxSmartContainerType&&(u.log(2,"FigmaService.getPluginData() > quxSmartContainerType : ",n.quxSmartContainerType,e.name),t.type=n.quxSmartContainerType,t.smartContainerType=n.quxSmartContainerType),"Image"===n.quxType&&n.quxDataBindingDefault&&(t.type="UploadPreview"),"Vector"===n.quxType&&(t.props.isVector=!0)),n.quxDataValue&&(u.log(3,"FigmaService.getPluginData() > quxDataValue: ",n.quxDataValue,e.name),t.props.dataValue=n.quxDataValue),n.quxLinkUrl&&(u.log(3,"FigmaService.getPluginData() > quxLinkUrl: ",n.quxLinkUrl,e.name),t.props.url=n.quxLinkUrl),n.quxTypeCustom&&(u.log(3,"FigmaService.getPluginData() > quxTypeCustom: ",n.quxOnChangeCallback,e.name),t.props.customComponent=n.quxTypeCustom),n.quxAnimationProps){u.log(3,"FigmaService.getPluginData() > quxAnimationProps: ",n.quxAnimationProps,e.name);try{t.props.figmaAnimation=JSON.parse(n.quxAnimationProps)}catch(o){u.error("FigmaService.getPluginData() > quxAnimationProps Could not parse ",n.quxAnimationProps)}}n.quxDataBindingDefault&&(u.log(3,"FigmaService.getPluginData() > quxDataBindingDefault : ",n.quxDataBindingDefault,e.name),t.props.databinding||(t.props.databinding={}),t.props.databinding["default"]=n.quxDataBindingDefault),n.quxDataBindingOutput&&(u.log(3,"FigmaService.getPluginData() > quxDataBindingOutput : ",n.quxDataBindingOutput,e.name),t.props.databinding||(t.props.databinding={}),t.props.databinding["output"]=n.quxDataBindingOutput),n.quxDataBindingOptions&&(u.log(3,"FigmaService.getPluginData() > quxDataBindingOptions : ",n.quxDataBindingOptions,e.name),t.props.databinding||(t.props.databinding={}),t.props.databinding["options"]=n.quxDataBindingOptions),n.quxOnClickCallback&&(u.log(3,"FigmaService.getPluginData() > quxOnClickCallback: ",n.quxOnClickCallback,e.name),t.props.callbacks||(t.props.callbacks={}),t.props.callbacks.click=n.quxOnClickCallback),n.quxOnLoadCallback&&(u.log(3,"FigmaService.getPluginData() > quxOnLoadCallback: ",n.quxOnLoadCallback,e.name),t.props.callbacks||(t.props.callbacks={}),t.props.callbacks.load=n.quxOnLoadCallback),n.quxOnChangeCallback&&(u.log(3,"FigmaService.getPluginData() > quxOnChangeCallback: ",n.quxOnChangeCallback,e.name),t.props.callbacks||(t.props.callbacks={}),t.props.callbacks.change=n.quxOnChangeCallback),n.quxOptions&&(u.log(3,"FigmaService.getPluginData() > quxOptions: ",n.quxOptions,e.name),t.props.options=n.quxOptions.split(";")),n.quxStyleHoverBackground&&this.addDynamicStyle(t,"hover","background",n.quxStyleHoverBackground),n.quxStyleHoverBorder&&this.addDynamicStyle(t,"hover","borderColor",n.quxStyleHoverBorder),n.quxStyleHoverColor&&this.addDynamicStyle(t,"hover","color",n.quxStyleHoverColor),n.quxStyleDropDownColor&&this.addDynamicStyle(t,"style","popupColor",n.quxStyleDropDownColor),n.quxStyleDropDownBackground&&this.addDynamicStyle(t,"style","popupBackground",n.quxStyleDropDownBackground),n.quxStyleDropDownBorder&&this.addDynamicStyle(t,"style","popupBorder",n.quxStyleDropDownBorder),n.quxStyleFocusBackground&&this.addDynamicStyle(t,"focus","background",n.quxStyleFocusBackground),n.quxStyleFocusBorder&&this.addDynamicStyle(t,"focus","borderColor",n.quxStyleFocusBorder),n.quxStyleFocusColor&&this.addDynamicStyle(t,"focus","color",n.quxStyleFocusColor),"true"===n.quxFixedHorizontal&&u.warn("FigmaService.getPluginData() > DEPRECTAED quxFixedHorizontal: ",n.quxFixedHorizontal,e.name),"true"===n.quxFixedVertical&&u.log("FigmaService.getPluginData() > DEPRECTAED quxFixedVertical: ",n.quxFixedVertical,e.name),"true"===n.quxStartScreen&&(u.log(1,"FigmaService.getPluginData() > quxStartScreen: ",n.quxStartScreen,e.name),t.props.start=!0),"true"===n.quxOverlayScreen&&(u.log(4,"FigmaService.getPluginData() > quxOverlayScreen: ",n.quxOverlayScreen,e.name),t.style.overlay=!0),"true"===n.quxHasOverlayBackground&&(u.log(4,"FigmaService.getPluginData() > quxHasOverlayBackground: ",n.quxHasOverlayBackground,e.name),t.style.hasBackground=!0),"true"===n.quxBreakpointMobile&&(t.props.breakpoints||(t.props.breakpoints={}),u.log(4,"FigmaService.getPluginData() > quxBreakpointMobile: ",n.quxBreakpointMobile,e.name),t.props.breakpoints.mobile=!0),"true"===n.quxBreakpointTablet&&(t.props.breakpoints||(t.props.breakpoints={}),u.log(4,"FigmaService.getPluginData() > quxBreakpointTablet: ",n.quxBreakpointTablet,e.name),t.props.breakpoints.tablet=!0),"true"===n.quxBreakpointDesktop&&(t.props.breakpoints||(t.props.breakpoints={}),u.log(4,"FigmaService.getPluginData() > quxBreakpointDesktop: ",n.quxBreakpointDesktop,e.name),t.props.breakpoints.desktop=!0),n.quxStyleDisplay&&(u.log(4,"FigmaService.getPluginData() > quxStyleDisplay: ",n.quxStyleDisplay,e.name),t.style.display=n.quxStyleDisplay),n.quxStyleCursor&&(u.log(4,"FigmaService.getPluginData() > quxStyleCursor: ",n.quxStyleCursor,e.name),t.style.cursor=n.quxStyleCursor),n.quxStyleMaxWidth&&(u.log(4,"FigmaService.getPluginData() > quxStyleMaxWidth: ",n.quxStyleMaxWidth,e.name),t.style.maxWidth=n.quxStyleMaxWidth),n.quxStyleMinWidth&&(u.log(4,"FigmaService.getPluginData() > quxStyleMinWidth: ",n.quxStyleMinWidth,e.name),t.style.minWidth=n.quxStyleMinWidth),n.quxWrapContent&&(u.log(-1,"FigmaService.getPluginData() > quxWrapContent: ",n.quxWrapContent,e.name),t.style.layout="Wrap")}return t}},{key:"setFixedHozontal",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.props.resize||(e.props.resize={}),e.props.resize.fixedHorizontal=t}},{key:"setHugHozontal",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.props.resize||(e.props.resize={}),e.props.resize.hugHorizontal=t}},{key:"setFixedVertical",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.props.resize||(e.props.resize={}),e.props.resize.fixedVertical=t}},{key:"setHugVertical",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.props.resize||(e.props.resize={}),e.props.resize.hugVertical=t}},{key:"addDynamicStyle",value:function(e,t,n,o){e[t]||(e[t]={}),e[t][n]=o}},{key:"getProps",value:function(e,t){var n={};return this.isVector(e)&&(n.paths=e.strokeGeometry,n.relativeTransform=e.relativeTransform,n.isVector=!0),this.isLabel(t)&&(e.characters?n.label=e.characters:n.label=e.name),"RichText"===t.type&&(n.richTextLabel=this.getRichText(e,n.label)),this.pinnRight?n.resize={right:!0,left:!0,up:!1,down:!1,fixedHorizontal:!1,fixedVertical:!1}:n.resize={right:!1,left:!0,up:!1,down:!1,fixedHorizontal:!0,fixedVertical:!1},this.setContraints(e,n),n}},{key:"getRichText",value:function(e,t){u.log(2,"FigmaService.getRichText() >",e.name,t);for(var n=[],o=e.characterStyleOverrides,i={},r=-1,a=0;a<t.length;a++){var s=void 0!==o[a]?o[a]:"0";s!==r&&(i={label:"",style:this.getRichTextStyle(e.styleOverrideTable[s])},n.push(i)),i.label+=t[a],r=s}return n}},{key:"getRichTextStyle",value:function(e){if(e){var t={};if(e.fills&&1===e.fills.length){var n=e.fills[0];"SOLID"===n.type&&(t.color=this.getColor(n.color,n))}return this.setTextStyle(e,t),t}}},{key:"getLayout",value:function(e,t){return"HORIZONTAL"===e.layoutMode&&(t.layout.type=d.AutoHorizontal,t.layout.justifyContent=this.mapAlign(e.primaryAxisAlignItems),t.layout.alignItems=this.mapAlign(e.counterAxisAlignItems)),"VERTICAL"===e.layoutMode&&(t.layout.type=d.AutoVertical,t.layout.justifyContent=this.mapAlign(e.primaryAxisAlignItems),t.layout.alignItems=this.mapAlign(e.counterAxisAlignItems)),void 0!==e.itemSpacing&&(t.layout.itemSpacing=e.itemSpacing),0===e.layoutGrow&&this.setFixedHozontal(t,!0),1===e.layoutGrow&&this.setFixedHozontal(t,!1),e._parent&&("HORIZONTAL"===e._parent.layoutMode&&"FIXED"!==e.primaryAxisSizingMode&&0===e.layoutGrow&&this.setHugHozontal(t,!0),"VERTICAL"===e._parent.layoutMode&&"FIXED"!==e.primaryAxisSizingMode&&0===e.layoutGrow&&this.setHugVertical(t,!0)),void 0!==e.layoutAlign&&("STRETCH"===e.layoutAlign&&this.setFixedHozontal(t,!1),t.layout.align=e.layoutAlign),t.layout.grow=e.layoutGrow,t.layout.paddingLeft=this.mapPadding(e.paddingLeft,t.style.borderLeftWidth),t.layout.paddingRight=this.mapPadding(e.paddingRight,t.style.borderRightWidth),t.layout.paddingTop=this.mapPadding(e.paddingTop,t.style.borderTopWidth),t.layout.paddingBottom=this.mapPadding(e.paddingBottom,t.style.borderBottomWidth),t}},{key:"mapPadding",value:function(e,t){var n=e||0,o=t||0;return n-o}},{key:"mapAlign",value:function(e){return this.figmaAlignMapping[e]?this.figmaAlignMapping[e]:"flex-start"}},{key:"setContraints",value:function(e,t){if(e.constraints){var n=e.constraints.horizontal;switch(n){case"RIGHT":t.resize.left=!1,t.resize.right=!0,t.resize.fixedHorizontal=!1;break;case"LEFT_RIGHT":u.log(2,"FigmaService.setContraints() > LEFT_RIGHT",e.name),t.resize.left=!0,t.resize.right=!0,t.resize.fixedHorizontal=!1;break;default:break}var o=e.constraints.vertical;switch(o){case"TOP_BOTTOM":u.log(2,"FigmaService.setContraints() > TOP_BOTTOM",e.name),t.resize.up=!0,t.resize.down=!0,t.resize.fixedVertical=!1;break;case"BOTTOM":u.log(2,"FigmaService.setContraints() > BOTTOM",e.name),t.resize.up=!1,t.resize.down=!0;break;default:break}}}},{key:"isIgnored",value:function(e){return this.ignoredTypes.indexOf(e.type)>=0}},{key:"isInvisible",value:function(e){return!1===e.visible?(u.log(5,"FigmaService.isInvisible() > exit (visible): "+e.name,e.type),!0):e.opacity<=0&&(u.log(5,"FigmaService.isInvisible() > exit (opacity): "+e.name,e.type),!0)}},{key:"isFrame",value:function(e){return"FRAME"===e.type}},{key:"isComponet",value:function(e){return"COMPONENT"===e.type}},{key:"isComponentSet",value:function(e){return"COMPONENT_SET"===e.type}},{key:"isVector",value:function(e){return this.allAsVecor||!this.isButton(e)}},{key:"isCustomVector",value:function(e){if(e.pluginData){var t=e.pluginData[this.pluginId];if(t&&"Vector"===t.quxType)return!0}return!1}},{key:"isLabel",value:function(e){return e&&("Label"===e.type||"RichText"===e.type)}},{key:"isButton",value:function(e){return this.buttonTypes.indexOf(e.type)>=0&&!this.isTooComplexStyle(e)}},{key:"isVariantContainer",value:function(e){return"VARIANT_COMPONENT"===e.type}},{key:"isTooComplexStyle",value:function(e){if(e.fills&&e.fills.length>1)return!0;if(e.fills&&1===e.fills.length){var t=e.fills[0];return"SOLID"!==t.type&&"GRADIENT_LINEAR"!==t.type&&"GRADIENT_RADIAL"!==t.type}return!!(e.effects&&e.effects.length>1)||!!(e.strokes&&e.strokes.length>1)}},{key:"getHas",value:function(e,t){return"Label"===t.type?{label:!0,padding:!0,advancedText:!0}:"Button"===t.type?{label:!0,backgroundColor:!0,border:!0,onclick:!0,padding:!0}:{}}},{key:"getStyle",value:function(e,t){var n=this,o={fontFamily:this.defaultFontFamily,borderBottomWidth:0,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0};if(e.backgroundColor&&(o.backgroundColor=this.getColor(e.backgroundColor,e)),e.isFixed&&(o.fixed=!0,this.setAllChildrenFixed(e)),e.fills&&1===e.fills.length){var i=e.fills[0];"SOLID"===i.type&&(this.isLabel(t)?(o.color=this.getColor(i.color,i),o.backgroundColor="transparent"):o.backgroundColor=this.getColor(i.color,i)),"GRADIENT_LINEAR"===i.type&&(this.isLabel(t)?u.log(1,"getStyle() > gradients not supported fotr labels..."):o.background=this.getLinearGradient(i)),"GRADIENT_RADIAL"===i.type&&(this.isLabel(t)?u.log(1,"getStyle() > gradients not supported for labels..."):o.background=this.getRadialGradient(i)),i.type}if(e.cornerRadius&&(o.borderBottomLeftRadius=e.cornerRadius,o.borderTopLeftRadius=e.cornerRadius,o.borderBottomRightRadius=e.cornerRadius,o.borderTopRightRadius=e.cornerRadius),e.rectangleCornerRadii&&(o.borderTopLeftRadius=e.rectangleCornerRadii[0],o.borderTopRightRadius=e.rectangleCornerRadii[1],o.borderBottomRightRadius=e.rectangleCornerRadii[2],o.borderBottomLeftRadius=e.rectangleCornerRadii[3]),!this.isVector(e)){if(e.strokes&&e.strokes.length>0){var r=e.strokes[0];r.color&&(o.borderBottomColor=this.getColor(r.color,e),o.borderTopColor=this.getColor(r.color,e),o.borderLeftColor=this.getColor(r.color,e),o.borderRightColor=this.getColor(r.color,e)),e.strokeWeight&&(o.borderBottomWidth=e.strokeWeight,o.borderTopWidth=e.strokeWeight,o.borderLeftWidth=e.strokeWeight,o.borderRightWidth=e.strokeWeight),"INSIDE"!==e.strokeAlign&&e.strokeWeight&&(t.x-=e.strokeWeight,t.w+=2*e.strokeWeight,t.y-=e.strokeWeight,t.h+=2*e.strokeWeight)}e.effects&&e.effects.forEach((function(t){"DROP_SHADOW"===t.type&&(o.boxShadow={v:t.offset.y,h:t.offset.x,b:t.radius,s:0,i:!1,c:n.getColor(t.color,e)}),"INNER_SHADOW"===t.type&&(o.boxShadow={v:t.offset.y,h:t.offset.x,b:t.radius,s:0,i:!0,c:n.getColor(t.color,e)})})),e.style&&this.setTextStyle(e.style,o)}if(this.isLabel(t)&&"bottom"!==o.verticalAlign&&e.constraints){var a=e.constraints;"TOP_BOTTOM"===a.vertical&&(o.verticalAlign="middle")}return o}},{key:"setTextStyle",value:function(e,t){if(t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontWeight=e.fontWeight,this.setLineHeight(t,e),t.letterSpacing=e.letterSpacing,"UPPER"===e.textCase&&(t.textTransform="uppercase"),"LOWER"===e.textCase&&(t.textTransform="lowercase"),"TITLE"===e.textCase&&(t.textTransform="capitalize"),e.textAlignHorizontal&&(t.textAlign=e.textAlignHorizontal.toLowerCase()),e.textAlignVertical){var n=e.textAlignVertical;switch(n){case"CENTER":t.verticalAlign="middle";break;case"TOP":t.verticalAlign="top";break;case"BOTTOM":t.verticalAlign="bottom";break;default:break}}}},{key:"setLineHeight",value:function(e,t){"PIXELS"!==t.lineHeightUnit?"INTRINSIC_%"===t.lineHeightUnit&&t.lineHeightPercent?this.autoLineHeightAsNormal?e.lineHeight="normal":e.lineHeightPX=Math.round(1.5*e.fontSize):"FONT_SIZE_%"!==t.lineHeightUnit?e.lineHeight=t.lineHeightPercent/100:e.lineHeight=t.lineHeightPercentFontSize/100:e.lineHeightPX=t.lineHeightPx}},{key:"setAllChildrenFixed",value:function(e){var t=this;e.children&&e.children.forEach((function(e){e.isFixed=!0,t.setAllChildrenFixed(e)}))}},{key:"getType",value:function(e){return this.isVector(e)?"Vector":"TEXT"===e.type?e.characterStyleOverrides&&e.characterStyleOverrides.length>0&&e.styleOverrideTable?"RichText":"Label":"Button"}},{key:"getLinearGradient",value:function(e){var t=this;u.log(3,"getLinearGradient() > enter",e);var n=e.gradientHandlePositions[0],o=e.gradientHandlePositions[1],i=n.x-o.x,r=n.y-o.y,a=Math.round(180*Math.atan2(r,i)/Math.PI+270)%360,s=e.gradientStops,c=s.map((function(e){return{c:t.getColor(e.color),p:100*e.position}}));return{direction:a,colors:c}}},{key:"getRadialGradient",value:function(e){var t=this;u.log(3,"getLinearGradient() > enter",e);var n=e.gradientStops,o=n.map((function(e){return{c:t.getColor(e.color),p:100*e.position}}));return{radial:!0,colors:o}}},{key:"calculateAngle",value:function(e,t){var n=Math.atan(this.calculateGradient(e,t));return parseInt(this.radToDeg(n).toFixed(1))}},{key:"calculateGradient",value:function(e,t){return(t.y-e.y)/(t.x-e.x)*-1}},{key:"radToDeg",value:function(e){return 180*e/Math.PI}},{key:"getColor",value:function(e,t){if(t&&!1===t.visible)return"";var n=e.a;return t&&t.opacity<1&&(n=t.opacity),"rgba(".concat(Math.round(255*e.r),", ").concat(Math.round(255*e.g),", ").concat(Math.round(255*e.b),", ").concat(n,")")}},{key:"getPosition",value:function(e){if(e.absoluteBoundingBox){var t={x:Math.round(e.absoluteBoundingBox.x),y:Math.round(e.absoluteBoundingBox.y),w:Math.round(e.absoluteBoundingBox.width),h:Math.round(e.absoluteBoundingBox.height)};return t}return u.warn("FigmaService.getPosition() > No abs pos",e),{}}},{key:"getTransformParent",value:function(e){if(e._parent&&"FRAME"===e._parent.type)return e._parent}},{key:"getZ",value:function(e,t){return t.lastZ++,t.lastZ}},{key:"createApp",value:function(e,t){return{version:2.1,figmaId:e,name:t.name,description:"",screenSize:{w:-1,h:-1},type:"smartphone",screens:{},widgets:{},lines:{},groups:{},lastUUID:1e4,lastZ:1,lastUpdate:0,created:0,startScreen:"",grid:{w:8,h:8,style:"line",color:"#cecece",visible:!1,enabled:!1}}}},{key:"getUUID",value:function(e){var t=e.lastUUID+++"";return t}}]),e}();function m(e){return e.layout&&e.layout.type===d.Wrap}function y(e){return e.layout&&e.layout.type===d.Row}function b(e){return e.layout&&e.layout.type===d.Grid}function v(e){return e.layout&&e.layout.grow>0}function x(e){return void 0!==e.layout&&(e.layout.type===d.AutoHorizontal||e.layout.type===d.AutoVertical)}function k(e){return e.layout&&e.layout.type===d.AutoHorizontal}function C(e){return e.layout&&e.layout.type===d.AutoVertical}function w(e){return e.replace(/\s/g,"_")}function S(e){return e.children&&e.children.length>0}function q(e){return"Screen"===e.type}function O(e){return(!e.props||!e.props.customComponent)&&!(!j(e)&&!B(e))}function B(e){var t=e.type;return"TextBox"===t||"TextArea"===t||"Password"===t||"DropDown"===t}function j(e){var t=e.type;return"Box"===t||"Button"===t||"Image"===t||"ChildrenToggle"===t||"Repeater"===t||"DynamicContainer"===t||"ContainerDropDown"===t}function P(e,t){return(!t.props||!t.props.customComponent)&&(!!j(t)||!(!B(t)||"Label"!==e.type))}function F(e){if(e)for(var t=e.children,n=t.length,o=0;o<n;o++)for(var i=0;i<n;i++){var r=t[o],a=t[i];if(r.id!==a.id&&z(r,a))return!1}return!0}function T(e){return e.style.wrap||"Wrap"===e.style.layout}function E(e){return e.layout&&"space-between"===e.layout.justifyContent}function R(e){return e.isDesignSystemRoot}function D(e){return!!e&&"Repeater"===e.type}function M(e){return e.hasComponentScreenParent}function L(e){return"Repeater"===e.type&&"grid"==e.props.layout&&!0===e.props.auto}function I(e){return e.style.fixed&&"Screen"!==e.type}function V(e){return"Repeater"===e.type&&"grid"===e.props.layout}function A(e){return e&&e.style&&"block"===e.style.display}function z(e,t){return!N(e,t)&&!_(e,t)}function N(e,t){return e.y>=t.y+t.h}function _(e,t){return e.y+e.h<=t.y}function W(e){return e.props&&e.props.resize&&e.props.resize.fixedHorizontal}function H(e){return e.props&&e.props.resize&&!0===e.props.resize.hugHorizontal}function Q(e){return!("Box"===e.type||"Button"===e.type||"Label"===e.type||"Container"===e.type||"Repeater"===e.type||e.children&&e.children.length>0)||e.props&&e.props.resize&&e.props.resize.fixedVertical}function U(e){return e.props&&e.props.resize&&e.props.resize.left}function $(e){return e.props&&e.props.resize&&e.props.resize.right}function K(e){return e.props&&e.props.resize&&e.props.resize.up}function G(e){return e.props&&e.props.resize&&e.props.resize.down}function X(e){return e.props&&e.props.resize&&e.props.resize.fullWidth}function Y(e,t,n){if(e&&t.screenSize&&n){var o=Math.min(n.h,t.screenSize.h),i=o-(e.y+e.h);return i}return 0}function J(e){if(e.parent){var t=e.parent.w-(2*e.x+e.w);return Math.abs(t)<Math.max(3,.003*e.parent.w)}return!1}function Z(e){return e.lines?e.lines.find((function(e){return"click"===e.event})):null}function ee(e){return e.style&&e.style.overlay}function te(e){return"COMPONENT_SET"===e.figmaType}function ne(e){return"ChildrenToggle"===e.type||"ChildrenToggle"===e.smartContainerType}function oe(e){return e.style&&e.style.hasBackground}function ie(e){return void 0!==e.style&&(e.style.minWidth>0||e.style.maxWidth>0)}function re(e,t){return"Auto"===e.fontSize&&(e.fontSize=t.h),e}function ae(e){null!==e.z&&void 0!==e.z||(e.z=0)}function se(e){var t=[];for(var n in e){var o=e[n];o&&(ae(o),t.push(o))}return ce(t),t}function ce(e){var t=function(e){return!(!e.style||!e.style.fixed)};e.sort((function(e,n){var o=t(e),i=t(n);return o==i?e.inherited&&n.inherited||!e.inherited&&!n.inherited?e.z==n.z&&e.id&&n.id?e.id.localeCompare(n.id):e.z-n.z:e.inherited?-1:1:o?1:-1}))}function le(e,t){return!!(t&&e.x>=t.x&&e.x+e.w<=t.w+t.x&&e.y>=t.y&&e.y+e.h<=t.y+t.h)}function ue(e,t){var n=e.map((function(e){return t.widgets&&t.widgets[e]?t.widgets[e]:(u.log(1,"ExportUtil.getBoundingBoxByIds() > No child with id",e),null)})).filter((function(e){return null!==e}));return de(n)}function de(e){for(var t={x:1e8,y:1e8,w:0,h:0,z:1e8,props:{resize:{}},style:{}},n=0;n<e.length;n++){var o=e[n];t.x=Math.min(t.x,o.x),t.y=Math.min(t.y,o.y),t.w=Math.max(t.w,o.x+o.w),t.h=Math.max(t.h,o.y+o.h),t.z=Math.max(t.z,o.z),W(o)&&(t.props.resize.fixedHorizontal=!0),Q(o)&&(t.props.resize.fixedVertical=!0)}return t.h-=t.y,t.w-=t.x,t}function he(e){var t={};for(var n in e.screens){var o=e.screens[n];t[n]={};for(var i=0;i<o.children.length;i++){var r=o.children[i],a=e.widgets[r];a&&a.parentWidget&&(t[n][a.parentWidget]=r)}}var s=xe(e);for(var c in s.inherited=!0,fe(s),s.screens){var l=e.screens[c];if(l.parents&&l.parents.length>0)for(var u=0;u<l.parents.length;u++){var d=l.parents[u];if(d!=c)if(e.screens[d]){for(var h=e.screens[d],p=h.x-l.x,f=h.y-l.y,g=h.children,m=0;m<g.length;m++){var y=g[m],b=e.widgets[y];if(b){var v=t[c][y];if(v){var x=s.widgets[v];if(x){x.props=ve(xe(b.props),x.props,!0),x.style=ve(xe(b.style),x.style,!0),x.hover&&(x.hover=ve(xe(b.hover),x.hover,!0)),x.error&&(x.error=ve(xe(b.error),x.error,!0));var k=s.widgets[b.id];k.inheritedCopies||(k.inheritedCopies=[]),k.inheritedCopies.push(x.id),x.parentWidgetPos&&(x.x=b.x-p,x.y=b.y-f,x.w=b.w,x.h=b.h),x._inheried=!0}else console.error("createInheritedModel() > No overwriten widget in model")}else{var C=xe(b);C.id=b.id+"@"+c,C.inherited=b.id,C.inheritedScreen=c,C.inheritedOrder=u+1,C.x-=p,C.y-=f,s.widgets[C.id]=C,s.screens[c].children.push(C.id);var w=s.widgets[b.id];w.copies||(w.copies=[]),w.copies.push(C.id)}}else console.warn("createInheritedModel() > no parent screen child with id > "+d+">"+b)}pe(s.screens[c],h,e,s)}else console.warn("createInheritedModel() > Deteced Self inheritance...",l);else console.warn("createInheritedModel() > no parent screen with id > "+d)}}return s=ge(s),s}function pe(e,t,n,o){u.log(4,"ExportUtil.createInheritedGroups()");var i=Oe(t,n),r={};e.children.forEach((function(e){var t=o.widgets[e];t?r[t.inherited]=e:console.warn("createInheritedGroups() Could not find widget",e)})),i.forEach((function(n){var i={name:n.name+"_"+e.name,id:n.id+"@"+e.id,inherited:n.id,inheritedScreen:t.id,props:xe(n.props),style:xe(n.style),children:[]};n.children.forEach((function(e){var t=r[e];t?i.children.push(t):console.warn("createInheritedGroups() Could not find parent widhet",e)})),o.groups&&(o.groups[i.id]=i)}))}function fe(e){for(var t in e.screens)for(var n=e.screens[t],o=0;o<n.children.length;o++){var i=n.children[o],r=e.widgets[i];if(r&&r.isContainer){var a=be(r,e);r.children=a.map((function(e){return e.id}))}}}function ge(e){if(e.designtokens){for(var t in e.widgets){var n=e.widgets[t];me(n,e)}for(var o in e.screens){var i=e.screens[o];me(i,e)}}return e}function me(e,t){if(e&&e.template&&t.templates&&t.templates[e.template]){var n=t.templates[e.template];n.designtokens&&(e.designtokens=n.designtokens)}if(e&&e.designtokens){var o=e.designtokens;for(var i in o){e[i]||(e[i]={});var r=o[i];for(var a in r){var s=r[a],c=t.designtokens[s];c?c.isComplex?e[i][a]=c.value[a]:e[i][a]=c.value:console.warn("ModelUtil.inlineBoxDesignToken() > NO token with id or no value:"+s,c)}}}return e}function ye(e){if(e.templates)for(var t in e.widgets){var n=e.widgets[t];if(n.template){var o=e.templates[n.template];n._template=o}}return e}function be(e,t){for(var n=[],o=se(t.widgets),i=!1,r=0;r<o.length;r++){var a=o[r];e.id!=a.id?i&&le(a,e)&&(a.container=e.id,n.push(a)):i=!0}return n}function ve(e,t,n){if(e&&t)for(var o in t=xe(t),n&&(t._mixed={}),e)void 0!==t[o]&&null!==t[o]||(t[o]=e[o],n&&(t._mixed[o]=!0));return t}function xe(e){if(!e)return null;var t=JSON.stringify(e);return JSON.parse(t)}function ke(e,t){var n=[];e.inherited&&t.widgets[e.inherited]&&(e=t.widgets[e.inherited]);var o=e.id,i=Be(e,t);if(i&&i.length>0)return i;var r=we(o,t);if(r){var a=Be(r,t);if(a&&a.length>0)return a}var s=Ce(o,t);if(s){var c=Be(s,t);if(c&&c.length>0)return c}return n}function Ce(e,t){var n=we(e,t);if(n)while(n){var o=we(n.id,t);if(!o)return n;n=o}return null}function we(e,t){if(t.groups)for(var n in t.groups){var o=t.groups[n],i=o.children.indexOf(e);if(i>-1)return o;if(o.groups){var r=o.groups.indexOf(e);if(r>-1)return o}}return null}function Se(e,t){if(t.groups)for(var n in t.groups){var o=t.groups[n],i=o.children.indexOf(e);if(i>-1)return o}}function qe(e,t){if(!e.children)return[];var n=e.children.slice(0);return e.groups&&e.groups.forEach((function(e){var o=t.groups[e];if(o){var i=qe(o,t);n=n.concat(i)}else console.warn("getAllGroupChildren() No sub group",e)})),n}function Oe(e,t){var n={};return e.children.forEach((function(e){var o=Se(e,t);o&&(n[o.id]=o)})),Object.values(n)}function Be(e,t){var n=[];for(var o in t.lines){var i=t.lines[o];i.from==e.id&&n.push(i)}return n}function je(e,t){return t.screens[e]?t.screens[e]:t.widgets[e]?t.widgets[e]:void 0}function Pe(e){var t,n=[],o=null;return e.forEach((function(e){var i=e.row?e.row:"-1";i!=o&&(t=[],n.push(t)),t.push(e),o=i})),n}function Fe(e,t){var n=e.name;n=n.replace(/\./g,"_"),n.match(/^\d/)&&(n="q"+n),e.cssScreen="".concat(t.replace(/\s+/g,"_")),e.cssClass="".concat(n.replace(/\s+/g,"_"));var o=".".concat(n.replace(/\s+/g,"_"));o=e.parent?".".concat(t.replace(/\s+/g,"_")," ").concat(o):".qux-screen".concat(o),e.cssSelector=o,e&&e.children&&e.children.forEach((function(e){Fe(e,t)})),e&&e.fixedChildren&&e.fixedChildren.forEach((function(e){Fe(e,t)}))}function Te(e){return"true"===e&&(e=!0),"false"===e&&(e=!1),e}function Ee(e){var t=Re(e);return t&&(e.grid=t,e.children&&e.children.length>0&&e.children.forEach((function(e){e.gridColumnStart=0,e.gridColumnEnd=t.columns.length,e.gridRowStart=0,e.gridRowEnd=t.rows.length,t.columns.forEach((function(t,n){t.v===e.x?e.gridColumnStart=n:t.v===e.x+e.w&&(e.gridColumnEnd=n)})),t.rows.forEach((function(t,n){t.v===e.y&&(e.gridRowStart=n),t.v===e.y+e.h&&(e.gridRowEnd=n)}))}))),e.children&&e.children.length>0&&e.children.forEach((function(e){Ee(e)})),e}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.children&&e.children.length>0){var n={},o={};return Ve(o,0,e,!0),Ve(o,e.w,e,!1),Ae(n,0,e,!0),Ae(n,e.h,e,!1),e.children.forEach((function(e){Ve(o,e.x,e,!0),Ve(o,e.x+e.w,e,!1),Ae(n,e.y,e,!0),Ae(n,e.y+e.h,e,!1)})),o=Le(o,e),n=Ie(n,e),t&&(o=De(o)),Me(e,o,n),{rows:n,columns:o}}return null}function De(e){for(var t=[],n=null,o=0;o<e.length;o++){var i=e[o];if(n&&i.v-n.v<2){var r=n.start.concat(i.start),a=n.end.concat(i.end);n.start=r,n.end=a}else t.push(i),n=i}return t}function Me(e,t,n){e.children.forEach((function(e){if(W(e)&&t.forEach((function(t){t.v>=e.x&&t.v<e.x+e.w&&(t.fixed=!0)})),U(e)){var o=t.filter((function(t){return t.v<e.x}));o.length>0&&(o[o.length-1].fixed=!0)}if($(e)){var i=t.filter((function(t){return t.v>=e.x+e.w}));i.length>0&&(i[0].fixed=!0)}Q(e)&&n.forEach((function(t){t.v>=e.y&&t.v<e.y+e.h&&(t.fixed=!0)})),K(e)&&n.forEach((function(t){t.v<e.y&&(t.fixed=!0)})),G(e)&&n.forEach((function(t){t.v>=e.y+e.h&&(t.fixed=!0)}))}))}function Le(e,t){return e=Object.values(e).sort((function(e,t){return e.v-t.v})),e.forEach((function(n,o){e[o+1]?n.l=e[o+1].v-n.v:n.l=t.w-n.v})),e.filter((function(e){return e.l>0}))}function Ie(e,t){return e=Object.values(e).sort((function(e,t){return e.v-t.v})),e.forEach((function(n,o){e[o+1]?n.l=e[o+1].v-n.v:n.l=t.h-n.v})),e.filter((function(e){return e.l>0}))}function Ve(e,t,n,o){e[t]||(e[t]={v:t,start:[],end:[],fixed:!1,hasMinMax:!1}),o?e[t].start.push(n):e[t].end.push(n),ie(n)&&(e[t].hasMinMax=!0)}function Ae(e,t,n,o){e[t]||(e[t]={v:t,start:[],end:[],fixed:!1}),o?e[t].start.push(n):e[t].end.push(n)}var ze=0,Ne=["Button","Box","Label","Container","Icon","Image","CheckBox","RadioBox","RadioBox2","HotSpot","TextBox","Password","TextArea","Repeater","RadioGroup","CheckBoxGroup","ToggleButton","Switch","DropDown","MobileDropDown","Stepper","HSlider","Date","DateDropDown","SegmentButton","Rating","IconToggle","LabeledIconToggle","TypeAheadTextBox","Table","Paging","BarChart","PieChart","MultiRingChart","RingChart","Vector","Timeline","Upload","ChildrenToggle","Camera","UploadPreview","Spinner","DynamicContainer","RichText","Link"],_e=["color","textDecoration","textAlign","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","lineHeightPX"];function We(e,t){u.log(1,"Falt2Tree.transform () > enter",t);var n={id:e.id,name:e.name,templates:e.templates?Object.values(e.templates):[],warnings:[],screens:[]},o=t.css&&!0===t.css.attachLabels?["TextBox","Password","TextArea","Box","Button","DropDown"]:["TextBox","Password","TextArea","DropDown"],i=t.css&&!0!==t.css.grid,r=function(t){var r=e.screens[t];r=tt(r,e),r=He(r,i),r=nt(r,e),r.fixedChildren&&r.fixedChildren.length>0&&(u.log(1,"Falt2Tree.transform() > fixed elements require double layout"),r=He(r,e)),r.children.forEach((function(e){e.parent=r})),r.x=0,r.y=0,Ze(e,r,o),Ge(r),Xe(r,r.name),n.screens.push(r)};for(var a in e.screens)r(a);return n}function He(e){return u.log("Flat2Tree.layoutTree() > "),Qe(e),Je(e),e=Ue(e),e}function Qe(e){var t=0;return e.layout&&void 0!==e.layout.grow&&(t=e.layout.grow),x(e)||(T(e)?(e.layout={type:d.Wrap,grow:t},Ke(e,e.children)):F(e)?(e.layout={type:d.Row,grow:t},$e(e,e.children,!1)):e.layout={type:d.Grid,grow:t}),e.children&&e.children.forEach((function(t){return Qe(t,e)})),e}function Ue(e){return Ee(e),e}function $e(e,t){u.log(5,"Falt2Tree.setOrderInRow() > Column",e.name),t.sort((function(e,t){return e.y-t.y}));var n=0;t.forEach((function(e){var t=e.y-n;n=e.y+e.h,e.top=t}))}function Ke(e,t){if(u.log(3,"Falt2Tree.setOrderInWrapper() > Wrapper Container",e.name),t.sort((function(e,t){return z(e,t)?e.x-t.x:e.y-t.y})),e.isGroup){var n=10,o=10,i=Pe(t);if(i[0]&&i[0].length>1&&i[1]){var r=i[0][0],a=i[0][1],s=i[1][0];o=a.x-(r.x+r.w),n=s.y-(r.y+r.h)}else u.log(-1,"Falt2Tree.setOrderAndRelativePositons() > cannot guess offsets for Wrapper Container",e.name);e.style.paddingTop=0,e.style.paddingBottom=0,e.style.paddingLeft=0,e.style.paddingRight=0,t.forEach((function(e){e.wrapOffSetBottom=n,e.wrapOffSetRight=o,e.wrapOffSetY=0,e.wrapOffSetX=0}))}else{var c=t[0],l=Math.round(c.x/2),d=Math.round(c.y/2);e.style.paddingTop=d,e.style.paddingBottom=d,e.style.paddingLeft=l,e.style.paddingRight=l,t.forEach((function(e){e.wrapOffSetY=d,e.wrapOffSetX=l}))}}function Ge(e){e.qtype=Ye(e),e.children&&e.children.forEach((function(e){Ge(e)})),e.fixedChildren&&e.fixedChildren.forEach((function(e){Ge(e)})),e.templates&&e.templates.forEach((function(e){Ge(e)}))}function Xe(e,t){return Fe(e,t)}function Ye(e){return e.props.customComponent?(u.log(-1,"Falt2Tree.getWidgetType() > Use customComponent",e),e.props.customComponent):"ComponentSet"===e.type?"qComponentSet":"DynamicContainer"===e.type?"qDynamicContainer":e.children&&e.children.length>0?"Repeater"===e.type?"qRepeater":"ChildrenToggle"===e.type?"qChildrenToggle":"qContainer":Ne.indexOf(e.type)>=0?"q".concat(e.type):(u.warn("Falt2Tree.getWidgetType() > Not supported widget type: "+e.type),"qBox")}function Je(e){e.children&&e.children.forEach((function(t){t.parent=e,Je(t)}))}function Ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return u.log(3,"Falt2Tree.attachSingleLabelsInScreen()",n),t.children.forEach((function(t){et(e,t,n)})),t}function et(e,t,n){var o=t.type;if(!t.props.label&&1===t.children.length&&(null===n||n.indexOf(o)>=0)){var i=t.children[0],r=ke(i,e);"Label"===i.type&&0===r.length?(u.log(7,"Falt2Tree.attachSingleLabelsInNodes()",i.name,t.name),t.props.label=i.props.label,t.children=[],B(t)||(t.type="Box",t.qtype="qBox"),_e.forEach((function(e){i.style[e]&&(t.style[e]=i.style[e])})),t.style.paddingTop=i.y,t.style.paddingBottom=t.h-i.h-i.y,t.style.paddingLeft=i.x,t.style.paddingRight=t.w-i.w-i.x,x(t)&&(t.layout={type:d.Row}),t.style=re(t.style,i),i.props.databinding&&!t.props.databinding&&(u.log(-1,"Falt2Tree.attachSingleLabelsInNodes() copy data binding",i.name,t.name),t.props.databinding=i.props.databinding)):t.children.forEach((function(t){et(e,t,n)}))}else t.children.forEach((function(t){et(e,t,n)}))}function tt(e,t){var n=lt(e);delete n.children,delete n.has,n.children=[],n.fixedChildren=[];var o=se(ct(e,t)),i=[],r={};return o.forEach((function(o){var a=lt(o);a._x=o.x,a._y=o.y,a.children=[];var s=Se(o.id,t);a.group=s;var c=st(i,a,t);c&&P(a,c)?(a.x=o.x-c.x,a.y=o.y-c.y,a.parent=c,r[c.id].children.push(a)):(a.x=o.x-e.x,a.y=o.y-e.y,a.parent=null,n.children.push(a),a.y<0&&(u.log(2,"Falt2Tree.transformScreenToTree() > fix negative margin",a.name),a.h+=a.y,a.y=0)),O(o)&&i.unshift(o),r[a.id]=a})),at(n),n}function nt(e,t){return e.children&&ot(e,e,t),e}function ot(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.children){var i=[];e.children.forEach((function(r){!0===r.style.fixed?(r.x=r._x-t.x,r.y=r._y-t.y,e.id!==t.id&&(e.parent=t),rt(r),o&&it(r,n,t),t.fixedChildren.push(r)):(ot(r,t,n),i.push(r))})),e.children=i}}function it(e,t,n){G(e)&&(e.bottom=Y(e,t,n))}function rt(e){e.children&&e.children.forEach((function(e){e.style.fixed=!1,rt(e)}))}function at(e){e.children&&e.children.forEach((function(e){var t=null;if(e.children&&e.children.length>0){var n=e.style;if(e.props.label){var o=e.style,i=o.paddingLeft?o.paddingLeft:0,r=o.paddingRight?o.paddingRight:0,a=o.paddingBottom?o.paddingBottom:0,s=o.paddingTop?o.paddingTop:0;t={id:e.id+"-label",name:e.name+"-label",type:"Label",x:o.paddingRight,y:o.paddingTop,w:e.w-i-r,h:e.h-a-s,props:xe(e.props),style:{color:o.color,textAlign:o.textAlign,fontFamily:o.fontFamily,fontSize:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,verticalAlign:o.verticalAlign},children:[]}}n.paddingBottom=0,n.paddingLeft=0,n.paddingRight=0,n.paddingTop=0,at(e),t&&e.children.push(t)}}))}function st(e,t,n){for(var o=0;o<e.length;o++){var i=e[o];if(le(t,i))return i}if(t.parentId){var r=n.widgets[t.parentId];if(r)return r}}function ct(e,t){for(var n=[],o=0;o<e.children.length;o++){var i=e.children[o],r=t.widgets[i];n.push(r)}return n}function lt(e){var t=JSON.parse(JSON.stringify(e));return t._id=ze++,t}function ut(e,t){u.log(3,"Quant2Flat.transform () > enter",t);var n=xe(e),o=t.css&&!0===t.css.pinnedLeft,i=t.css&&!0===t.css.pinnedRight,r=t.css&&!0===t.css.fixedHorizontal;for(var a in n=he(n),n=ye(n),n=pt(n,o,i,r),t.addDefaultDatabinding&&(n=ft(n)),n=yt(n),n=bt(n),n=ht(n),dt(n),n.screens){var s=n.screens[a];n=xt(s,n)}return n}function dt(e){e.templates&&Object.values(e.templates).forEach((function(t){t.cssSelector=".qux-template-".concat(t.name),t.cssClass="qux-template-".concat(t.name),Object.values(e.widgets).forEach((function(e){e.template===t.id&&(e.sharedCssClasses||(e.sharedCssClasses=[]),e.sharedCssClasses.push(t.cssClass),t.style&&t.style.verticalAlign&&!e.style.verticalAlign&&(e.style.verticalAlign=t.style.verticalAlign))}))}))}function ht(e){return Object.values(e.widgets).forEach((function(t){var n=ke(t,e,!0);n.length>0&&(t.lines=n)})),Object.values(e.screens).forEach((function(t){var n=ke(t,e,!0);n.length>0&&(t.lines=n)})),e}function pt(e,t,n,o){return(t||n||o)&&(u.log(2,"Quant2Flat.addForcedResize()",t,n),Object.values(e.widgets).forEach((function(e){e.props.resize||(e.props.resize={right:!1,up:!1,left:!1,down:!1,fixedHorizontal:!1,fixedVertical:!1}),t&&(e.props.resize.left=!0),o&&!e.props.right&&(e.props.resize.fixedHorizontal=!0),n&&!e.props.fixedHorizontal&&(e.props.resize.right=!0)}))),e}function ft(e){var t=function(t){var n=e.screens[t],o=n.children;o&&o.forEach((function(t){var o=e.widgets[t];o&&o.props&&(o.props.databinding&&0!==Object.values(o.props.databinding)||(o.props.databinding={default:gt(n,o)},u.log(2,"Quant2Flat.addDefaultDataBinding() > ",o.props.databinding)))}))};for(var n in e.screens)t(n);return e}function gt(e,t){return"RadioBox2"===t.type&&t.props&&t.props.formGroup?mt("".concat(e.name,".").concat(t.props.formGroup)):mt("".concat(e.name,".").concat(t.name))}function mt(e){return e.replace(/\s+/g,"_")}function yt(e){var t=["Switch","Stepper"];for(var n in e.widgets){var o=e.widgets[n];t.indexOf(o.type)>=0&&(o.props.resize||(o.props.resize={}),o.props.resize.fixedHorizontal=!0)}return e}function bt(e){var t=Object.values(e.screens);t.forEach((function(n,o){n.name=vt(n.name);var i=t.filter((function(e){return e.name===n.name}));i.length>1&&(u.log(3,"Quant2Flat.fixNames() > Fix double screen name:"+n.name),n.name+="_"+o);var r=n.children;if(r){var a=r.map((function(t){return e.widgets[t]}));a.forEach((function(e,t){e.name=vt(e.name);var o=a.filter((function(t){return t.name===e.name}));o.length>1&&(u.log(3,"Quant2Flat.fixNames() > Fix double widget name: "+e.name+" in screen "+n.name),e.name+="_"+t)}))}})),e.templates&&Object.values(e.templates).forEach((function(e){e.name=vt(e.name)}));var n=function(t){var n=e.screens[t],o=n.children,i=o.map((function(t){return e.widgets[t].name})),r={};i.forEach((function(e){r[e]&&u.error("Quant2Flat.fixNames() > Dubplicate name of element '".concat(e,"' in screen '").concat(n.name,"'")),r[e]=!0}))};for(var o in e.screens)n(o);return e}function vt(e){return e.replace(/[^0-9a-z-]/gi,"")}function xt(e,t){u.log(4,"Quant2Flat.addGroupWrapper() > create ",e.name);var n=se(Ct(e,t)),o={},i=[];return n.forEach((function(n){var r=Se(n.id,t);r&&kt(r,t,o,i,e),i.push(n)})),i.forEach((function(e,t){e.z=t})),t}function kt(e,t,n,o,i){if(!n[e.id]){u.log(2,"Quant2Flat.createGroupCntr() > create ",e.name);var r=we(e.id,t);r&&kt(r,t,n,o,i);var a=qe(e,t),s=ue(a,t),c={id:"gc".concat(e.id),name:e.name,groupId:e.id,isGroup:!0,type:"Box",x:s.x,y:s.y,w:s.w,h:s.h,style:e.style?e.style:{},props:{resize:e.props&&e.props.resize?e.props.resize:{right:!1,up:!1,left:!1,down:!1,fixedHorizontal:!1,fixedVertical:!1}}};e.inherited&&(c.inherited=e.inherited),t.widgets[c.id]=c,i.children.push(c.id),n[e.id]=c,o.push(c)}}function Ct(e,t){for(var n=[],o=0;o<e.children.length;o++){var i=e.children[o],r=t.widgets[i];n.push(r)}return n}function wt(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-WrapperScreen";u.log(0,"Tree2Component.transform () > enter",t,o);var i={id:e.id,name:e.name,templates:e.templates,warnings:[],screens:[]},r=St(e,t);if(1===r.length){var a=r[0],s={id:a.id+o,name:a.name+o,x:a.x,y:a.y,w:a.w,h:a.h,qType:"qContainer",type:"Screen",cssClass:a.cssClass+o,cssSelector:".qux-screen.".concat(a.cssClass).concat(o),children:[a],fixedChildren:[],actions:[],props:{},style:{},isComponentScreen:!0};i.screens.push(s),i.id=a.id+"-"+i.id,a.hasComponentScreenParent=!0,Xe(a,a.name+o)}else r.length>1?u.error("Tree2Component.transform() > ERROR: More than one component with name",t):u.error("Tree2Component.transform() > ERROR: No component with name",t);return i}function St(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.screens&&e.screens.forEach((function(e){qt(e,t,n)})),n}function qt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.children&&e.children.forEach((function(e){e.name===t&&n.push(e),St(e,t,n)})),n}function Ot(e,t){u.log(3,"Inline.transform () > enter",t);var n=Bt(e),o=function(e){var t=n[e];if("DynamicContainer"===t.type&&t.props.dynamicChildren){if(u.log(4,"Inline.transform () > inline",t.name,t.figmaComponentId),t.props.dynamicParent&&n[t.props.dynamicParent]){var o=n[t.props.dynamicParent];t.cssComponentClasses=[o.cssScreen]}t.children=[],t.props.dynamicChildren.forEach((function(e){var o=n[e];o&&t.children.push(o)}))}};for(var i in n)o(i);return e}function Bt(e){var t={};return e.screens.forEach((function(e){jt(e,t)})),t}function jt(e,t){t[e.id]=e,e.children&&e.children.forEach((function(e){return jt(e,t)}))}function Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ft(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Tt(e,t,n){return t&&Ft(e.prototype,t),n&&Ft(e,n),e}var Et=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Pt(this,e),this.config=n,this.model=t,this.selected=o}return Tt(e,[{key:"transform",value:function(){u.log(0,"ModelTransformer.transform() > selected: ",this.selected);var e=this.model,t=ut(e,this.config),n=We(t,this.config),o=Ot(n,this.config);return this.selected&&(o=wt(o,this.selected,this.config)),o}}]),e}();function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Mt(e,t,n){return t&&Dt(e.prototype,t),n&&Dt(e,n),e}var Lt=function(){function e(){Rt(this,e),this.borderRadius=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],this.borderWidth=["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],this.borderStyle=["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],this.borderColor=["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],this.padding=["paddingTop","paddingRight","paddingBottom","paddingLeft"]}return Mt(e,[{key:"runFlat",value:function(e){return e=xe(e),e.templates&&this.compressDict(e.templates),this.compressDict(e.screens),this.compressDict(e.widgets),e}},{key:"runTree",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.templates.forEach((function(e){e.style&&(e.style=t.compress(e.style,e))})),e.screens.forEach((function(e){e.style=t.compress(e.style,e),e.children.forEach((function(e){t.compressChildren(e,n)})),e.fixedChildren&&e.fixedChildren.forEach((function(e){t.compressChildren(e,n)}))})),e}},{key:"compressChildren",value:function(e,t){var n=this;e.style=this.compress(e.style,e,t),e.children&&e.children.forEach((function(e){n.compressChildren(e,t)}))}},{key:"compressDict",value:function(e){var t=this;Object.values(e).forEach((function(e){e.style=t.compress(e.style,e)}))}},{key:"compress",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e._isCompressed)return e;e._isCompressed=!0,n&&(e=this.removeVAlign(e,t)),this.compressAttribes(e,this.padding,"padding","px",0),this.compressAttribes(e,this.borderRadius,"borderRadius","px",0);var o=this.compressAttribes(e,this.borderColor,"borderColor",!1,"transparent"),i=this.compressAttribes(e,this.borderWidth,"borderWidth","px",0),r=this.compressAttribes(e,this.borderStyle,"borderStyle",!1,"solid");return o&&i&&r&&(e.border="".concat(e.borderWidth," ").concat(e.borderStyle," ").concat(e.borderColor),delete e.borderColor,delete e.borderWidth,delete e.borderStyle),"solid solid solid solid"===e.borderStyle&&delete e.borderStyle,"solid"===e.borderStyle&&delete e.borderStyle,"0px"===e.padding&&delete e.padding,"0px"===e.borderRadius&&delete e.borderRadius,e}},{key:"removeVAlign",value:function(e,t){return"middle"===e.verticalAlign&&e.fontSize&&"auto"!==e.fontSize&&(u.log(3,"CSSOptimizer.removeVAILN() > middle",t.name),delete e.verticalAlign,e.paddingTop=Math.round((t.h-e.fontSize)/2),e.paddingBottom=t.h-e.fontSize-e.paddingTop),"bottom"===e.verticalAlign&&e.fontSize&&"auto"!==e.fontSize&&(u.log(3,"CSSOptimizer.removeVAILN() > bottom",t.name),delete e.verticalAlign,e.paddingTop=Math.round(t.h-e.fontSize),e.paddingBottom=0),e}},{key:"resizeToBoxModel",value:function(e){return e.style&&(e.style.paddingTop&&(e.h-=e.style.paddingTop),e.style.paddingBottom&&(e.h-=e.style.paddingBottom),e.style.paddingLeft&&(e.w-=e.style.paddingLeft),e.style.paddingRight&&(e.w-=e.style.paddingRight),e.style.borderTopWidth&&(e.h-=e.style.borderTopWidth),e.style.borderBottomWidth&&(e.h-=e.style.borderBottomWidth),e.style.borderLeftWidth&&(e.w-=e.style.borderLeftWidth),e.style.borderRightWidth&&(e.w-=e.style.borderRightWidth)),e}},{key:"compressAttribes",value:function(e,t,n,o,i){var r=e[t[0]];if(t.every((function(t){return e[t]===r})))return void 0!==r&&null!==r||(r=i),o&&(r+=o),t.forEach((function(t){e["_"+t]=e[t],delete e[t]})),e[n]=r,!0;var a=[];return t.forEach((function(t){var n=e[t];void 0!==n&&null!==n||(n=i),o&&(n+=o),a.push(n),e["_"+t]=e[t],delete e[t]})),e[n]=a.join(" "),!1}}]),e}();function It(e){var t=e.toLowerCase().match(/^rgba?\(([\s\\.,0-9]+)\)/);return t&&At(t[1].split(/\s*,\s*/))}function Vt(e){var t={},n=4==e.length?4:8,o=(1<<n)-1;if(e=Number("0x"+e.substr(1)),!isNaN(e)){var i=["b","g","r"];return i.forEach((function(i){var r=e&o;e>>=n,t[i]=4==n?17*r:r})),t.a=1,t}}function At(e){var t={},n=["b","g","r"];return n.forEach((function(n,o){t[n]=1*e[o]})),isNaN(t.a)&&(t.a=1),t}function zt(e){return"transparent"===e?{r:0,g:0,b:0,a:0}:It(e)||Vt(e)}function Nt(e){return"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(e.a,")")}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ht(e,t,n){return t&&Wt(e.prototype,t),n&&Wt(e,n),e}var Qt=function(){function e(t){_t(this,e),u.log(5,"PaginCSS.constructor()"),this.cssFactory=t}return Ht(e,[{key:"run",value:function(e,t,n){var o="";if(o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=e+" .qux-paging-item {\n",o+=" width:".concat(2*t.fontSize,"px;\n"),o+=" background:".concat(t.background,";\n"),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.textProperties),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+="}\n\n",n.hover){var i=n.hover;o+=e+" .qux-paging-item:hover {\n",o+=" background:".concat(i.background,";\n"),o+=this.cssFactory.getStyleByKey(i,n,this.cssFactory.textProperties),o+=this.cssFactory.getStyleByKey(i,n,this.cssFactory.borderProperties),o+="}\n\n"}if(n.active){var r=n.active;o+=e+" .qux-paging-item.qux-paging-item-active {\n",o+=" background:".concat(r.background,";\n"),o+=this.cssFactory.getStyleByKey(r,n,this.cssFactory.textProperties),o+=this.cssFactory.getStyleByKey(r,n,this.cssFactory.borderProperties),o+="}\n\n"}return o}}]),e}();function Ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Kt(e,t,n){return t&&$t(e.prototype,t),n&&$t(e,n),e}var Gt=function(){function e(t){Ut(this,e),u.log(5,"TableCSS.constructor()"),this.cssFactory=t}return Kt(e,[{key:"run",value:function(e,t,n){var o="",i=this.getTableBorderStyle(n);if(o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.textProperties),"Out"===i&&(o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties)),o+="}\n\n",o+=e+" .qux-table-action,",o+=e+" .qux-table-cell{\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.paddingProperties),o+="}\n\n","Cell"===i&&(o+=e+" th,",o+=e+" td{\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+="}\n\n"),"VLines"===i&&(o+=e+" th,",o+=e+" td{\n",o+=" border-right-color:".concat(t._borderBottomColor,";\n"),o+=" border-right-width:".concat(t._borderBottomWidth,"px;\n"),o+=" border-right-style:solid;\n",o+="}\n\n",o+=e+" th:last-child,",o+=e+" td:last-Child{\n",o+=" border:none;\n",o+="}\n\n"),"HLines"===i&&(o+=e+" th,",o+=e+" td{\n",o+=" border-bottom-color:".concat(t._borderBottomColor,";\n"),o+=" border-bottom-width:".concat(t._borderBottomWidth,"px;\n"),o+=" border-bottom-style:solid;\n",o+="}\n\n",o+=e+" tr:last-child th,",o+=e+" tr:last-Child td{\n",o+=" border:none;\n",o+="}\n\n"),o+=e+" thead tr{\n",o+=" background:".concat(t.headerBackground,";\n"),o+=" color:".concat(t.headerColor,";\n"),t.headerFontStyle&&(o+=" font-style:".concat(t.headerFontStyle,";\n")),t.headerFontWeight&&(o+=" font-weight:".concat(t.headerFontWeight,";\n")),t.headerTextDecoration&&(o+=" text-decoration:".concat(t.headerTextDecoration,";\n")),o+="}\n\n",o+=e+" tbody tr:nth-child(2){\n",o+=" background:".concat(t.evenRowBackground,";\n"),o+=" color:".concat(t.evenRowColor,";\n"),o+="}\n\n",o+=e+" tbody tr:hover{\n",t.hoverBackground&&(o+=" background:".concat(t.hoverBackground,";\n")),t.hoverColor&&(o+=" color:".concat(t.hoverColor,";\n")),o+="}\n\n",n.props.tableActions&&n.props.tableActions.forEach((function(t,n){o+=e+" .qux-table-action-cntr .qux-table-action-"+n+"{\n",t.color&&(o+=" color:".concat(t.color,";\n")),o+="}\n\n"})),t.checkBox){o+=e+" .qux-checkbox-cntr{\n";var r=t.checkBoxSize?t.checkBoxSize:t.fontSize;o+=" width:".concat(r,"px;\n"),o+=" height:".concat(r,"px;\n"),o+=" background:".concat(t.checkBoxBackground,";\n"),o+=" border-color:".concat(t.checkBoxBorderColor,";\n"),o+=" border-radius:".concat(t.checkBoxBorderRadius,"px;\n"),o+=" border-width:".concat(t.borderWidth,"px;\n"),o+="}\n\n",o+=e+" .qux-checkbox-hook {\n",o+=" border-color:".concat(t.checkBoxHookColor,";\n"),o+="}\n\n"}var a=this.getTableWidths(n.props,t);return a.forEach((function(t,i){o+=e+" .qux-table-column-"+i+"{\n",o+=" width:".concat(Math.round(t*n.w),"px;\n"),o+="}\n\n"})),o}},{key:"getTableWidths",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,o=[];if(e.widths){var i=e.widths,r=0,a=t._paddingLeft+t._paddingRight;if(t.checkBox){var s=t.checkBoxSize?t.checkBoxSize:t.fontSize;i=[s+a].concat(i)}if(e.tableActions&&e.tableActions.length>0){var c=e.tableActions.map((function(e){return e.label})).join(),l=c.length*t.fontSize*n+a*e.tableActions.length;i=i.concat(l)}for(var u=0;u<i.length;u++)r+=i[u];for(var d=0;d<i.length;d++)o[d]=i[d]/r}return o}},{key:"getTableBorderStyle",value:function(e){return e.props.borderStyle?e.props.borderStyle:"Cell"}}]),e}();function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jt(e,t,n){return t&&Yt(e.prototype,t),n&&Yt(e,n),e}var Zt=function(){function e(t){Xt(this,e),u.log(5,"ImageCSS.constructor()"),this.cssFactory=t}return Jt(e,[{key:"run",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),n.style.backgroundImage?o+=this.cssFactory.getRawStyle(n.style,n):(u.log(5,"ImageCSS.run()","No background for image > "+n.name),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=" background-image:".concat(this.getImagePlaceHolder(n),";\n"),o+=" background-size: 100% 100%;\n",o+=" border: 1px solid #333;\n"),o+="}\n\n",o}},{key:"getImagePlaceHolder",value:function(e){try{var t=2*e.w,n=2*e.h,o=document.createElement("canvas"),i=o.getContext("2d");o.width=t,o.height=n,n+=.5,t+=.5;var r=.5;i.moveTo(r,r),i.lineTo(t,n),i.moveTo(t,r),i.lineTo(r,n),i.strokeStyle="#333",i.strokeWidth=2,i.imageSmoothingEnabled=!1,i.stroke();var a="url("+o.toDataURL("image/png")+")";return a}catch(s){u.log(5,"ImageCSS.getImagePlaceHolder() error")}}}]),e}();function en(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nn(e,t,n){return t&&tn(e.prototype,t),n&&tn(e,n),e}var on=function(){function e(t){en(this,e),u.log(5,"ScreenCSS.constructor()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return nn(e,[{key:"run",value:function(e,t,n){var o="";if(o+=e+" {\n",o+=this.cssFactory.getPosition(n),!ee(n)||oe(n)){if(t.background)if(t.background.colors){for(var i=t.background,r="("+i.direction+"deg",a=0;a<i.colors.length;a++){var s=i.colors[a];r+=","+s.c+" "+s.p+"% "}r+=")",o+=" background: linear-gradient".concat(r,";\n")}else o+=" background-color: ".concat(t.background,";\n");t.backgroundColor&&(o+=" background-color: ".concat(t.backgroundColor,";\n")),t.backgroundImage&&t.backgroundImage.url&&(0===t.backgroundImage.url.indexOf("http")?o+=" background-image: url(".concat(t.backgroundImage.url,");\n"):o+=" background-image: url(".concat(this.imagePrefix,"/").concat(t.backgroundImage.url,");\n"))}return n.isComponentScreen?(o+=" height:".concat(n.h,"px;\n"),o+=" width:".concat(n.w,"px;\n"),o+=this.cssFactory.getStyleByKey(t,n,["boxShadow"]),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties)):o+=" height:100%;\n",o+="}\n\n",o}}]),e}();function rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function sn(e,t,n){return t&&an(e.prototype,t),n&&an(e,n),e}var cn=function(){function e(t){rn(this,e),u.log(5,"RepeaterCSS.constructor()"),this.cssFactory=t}return sn(e,[{key:"run",value:function(e,t,n){var o="";o+=e+" {\n",o+=this.cssFactory.getRawStyle(t,n),o+=this.cssFactory.getPosition(n),o+="}\n\n",T(n)&&u.warn("RepeaterCSS.run () > wrapped container not supported",n);var i=1===n.children.length?n.children[0]:de(n.children);return i.parent=n,o+=e+" .qux-repeater-child {\n",x(n)?o+=this.getChildrenAuto(e,n,i):V(n)?o+=this.getChildrenGrid(e,n,i):o+=this.getChildrenRow(e,n,i),o+="}\n\n",o}},{key:"getChildrenAuto",value:function(e,t,n){u.log(3,"RepeaterCSS.getChildrenAuto () > ",t,n);var o="",i=this.cssFactory.getFixedHeight(n);return o+=" height: ".concat(i,";\n"),o+=this.cssFactory.getWrappedWidth(n),o}},{key:"getChildrenRow",value:function(e,t,n){u.log(3,"RepeaterCSS.getChildrenRow () > ",t);var o="";return o+=this.cssFactory.getWrappedWidth(n),o+=" margin-bottom:".concat(t.props.distanceY,"px;\n"),n.x>0&&(o+=" margin-left:".concat(n.x,"px;\n")),n.y>0&&(o+=" margin-top:".concat(n.y,"px;\n")),o}},{key:"getChildrenGrid",value:function(e,t,n){u.log(5,"RepeaterCSS.getChildrenGrid () > grid",t);var o="";o+=" display: inline-block;\n",o+=this.cssFactory.getWrappedWidth(n);var i=this.cssFactory.getFixedHeight(n);if(o+=" height: ".concat(i,";\n"),L(t)){var r=Math.floor(t.h/n.h),a=(t.h-n.h*r)/(r-1);o+=" margin-bottom:".concat(a,"px;\n")}else o+=" margin-bottom:".concat(t.props.distanceY,"px;\n"),o+=" margin-right:".concat(t.props.distanceX,"px;\n");return n.x>0&&(o+=" margin-left:".concat(n.x,"px;\n")),n.y>0&&(o+=" margin-top:".concat(n.y,"px;\n")),o}}]),e}();function ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function un(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function dn(e,t,n){return t&&un(e.prototype,t),n&&un(e,n),e}var hn=function(){function e(t){ln(this,e),u.log(5,"ChartCSS.constructor()"),this.cssFactory=t}return dn(e,[{key:"run",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+="}\n\n",o}}]),e}();function pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function gn(e,t,n){return t&&fn(e.prototype,t),n&&fn(e,n),e}var mn=function(){function e(t){pn(this,e),u.log(5,"VectorCSS()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return gn(e,[{key:"run",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=" height:".concat(this.cssFactory.getCorrectedHeight(n),";\n"),o+=" width:".concat(this.cssFactory.getCorrectedWidth(n),";\n"),t.backgroundImage&&t.backgroundImage.url&&(0===t.backgroundImage.url.indexOf("http")?o+=" background-image: url(".concat(t.backgroundImage.url,");\n"):o+=" background-image: url(".concat(this.imagePrefix,"/").concat(t.backgroundImage.url,");\n")),o+="}\n\n",o}}]),e}();function yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function vn(e,t,n){return t&&bn(e.prototype,t),n&&bn(e,n),e}var xn=function(){function e(t){yn(this,e),u.log(5,"Timeline()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return vn(e,[{key:"run",value:function(e,t,n){var o="";o+=e+" {\n",o+=this.cssFactory.getPosition(n),-1===t.elementSpacing&&(o+=" display:flex;\n",o+=" flex-direction: column;\n",o+=" justify-content: space-around;\n"),o+="}\n\n";var i=t.circleSize-t.circleBorderWidth,r=(i-t.lineWidth)/2+1;return o+=e+" .qux-timeline-line{\n",o+=" background:".concat(t.lineBackground,";\n"),o+=" width:".concat(t.lineWidth,"px;\n"),o+=" border-radius:".concat(Math.round(t.lineWidth/2),"px;\n"),o+=" left:".concat(Math.round(r),"px;\n"),o+="}\n\n",t.elementSpacing>0&&(o+=e+" .qux-timeline-element{\n",o+=" margin-top:".concat(t.elementSpacing,"px;\n"),o+="}\n\n"),o+=e+" .qux-timeline-element-selected .qux-timeline-circle{\n",o+=" background:".concat(t.cicleActiveBackground,";\n"),o+=" border-color:".concat(t.cicleActiveBorderColor,";\n"),o+="}\n\n",o+=e+" .qux-timeline-element-selected .qux-timeline-label{\n",o+=" color:".concat(t.cicleActiveTextColor,";\n"),o+="}\n\n",o+=e+" .qux-timeline-label{\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.textProperties),o+="}\n\n",o+=e+" .qux-timeline-circle{\n",o+=" background:".concat(t.cicleBackground,";\n"),o+=" width:".concat(i,"px;\n"),o+=" height:".concat(i,"px;\n"),o+=" border-color:".concat(t.cicleBorderColor,";\n"),o+=" border-width:".concat(t.circleBorderWidth,"px;\n"),o+="}\n\n",o}}]),e}();function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wn(e,t,n){return t&&Cn(e.prototype,t),n&&Cn(e,n),e}var Sn=function(){function e(t){kn(this,e),u.log(5,"SegmentCSS()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return wn(e,[{key:"run",value:function(e,t,n){var o="";o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=e+" .qux-segment-item {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.textProperties),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=this.cssFactory.getBackGround(t,n),o+=" border-left: none;\n",o+=" border-radius: 0px;\n",o+="}\n\n",o+=e+" .qux-segment-item:first-child {\n",o+=" border-left-color: ".concat(t._borderLeftColor,";\n");var i=t._borderLeftStyle?t._borderLeftStyle:"solid";if(o+=" border-left-style: ".concat(i,";\n"),o+=" border-left-width: ".concat(t._borderLeftWidth,"px;\n"),t._borderTopLeftRadius&&(o+=" border-top-left-radius: ".concat(t._borderTopLeftRadius,"px;\n")),t._borderBottomLeftRadius&&(o+=" border-bottom-left-radius: ".concat(t._borderBottomLeftRadius,"px;\n")),o+="}\n\n",o+=e+" .qux-segment-item:last-child {\n",t._borderTopRightRadius&&(o+=" border-top-right-radius: ".concat(t._borderTopRightRadius,"px;\n")),t._borderBottomRightRadius&&(o+=" border-bottom-right-radius: ".concat(t._borderBottomRightRadius,"px;\n")),o+="}\n\n",n.active){var r=n.active;o+=e+" .qux-segment-item.qux-segment-item-selected{\n",o+=" background:".concat(r.background,";\n"),o+=" color:".concat(r.color,";\n"),o+=this.cssFactory.getStyleByKey(r,n,this.cssFactory.borderColorProperties),o+="}\n\n"}return o}}]),e}();function qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Bn(e,t,n){return t&&On(e.prototype,t),n&&On(e,n),e}var jn=function(){function e(t){qn(this,e),u.log(5,"UploadCSS()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return Bn(e,[{key:"run",value:function(e,t,n){var o="";if(o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=this.cssFactory.getRawStyle(t,n),o+="}\n\n",n.hover){var i=n.hover;o+=e+":hover {\n",o+=" background:".concat(i.background,";\n"),o+=" color:".concat(i.color,";\n"),o+=this.cssFactory.getStyleByKey(i,n,this.cssFactory.borderColorProperties),o+="}\n\n"}if(n.active){var r=n.active;o+=e+".qux-upload-has-files {\n",o+=" background:".concat(r.background,";\n"),o+=" color:".concat(r.color,";\n"),o+=this.cssFactory.getStyleByKey(r,n,this.cssFactory.borderColorProperties),o+="}\n\n"}return o}}]),e}();function Pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Tn(e,t,n){return t&&Fn(e.prototype,t),n&&Fn(e,n),e}var En=function(){function e(t){Pn(this,e),u.log(5,"CameraCSS()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return Tn(e,[{key:"run",value:function(e,t,n){var o="";if(o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=this.cssFactory.getRawStyle(t,n),o+="}\n\n",n.hover){var i=n.hover;o+=e+":hover {\n",o+=" background:".concat(i.background,";\n"),o+=" color:".concat(i.color,";\n"),o+=this.cssFactory.getStyleByKey(i,n,this.cssFactory.borderColorProperties),o+="}\n\n"}if(n.active){var r=n.active;o+=e+".qux-upload-has-files {\n",o+=" background:".concat(r.background,";\n"),o+=" color:".concat(r.color,";\n"),o+=this.cssFactory.getStyleByKey(r,n,this.cssFactory.borderColorProperties),o+="}\n\n"}return o+=e+" .qux-camera-icon {\n",o+=" font-size:".concat(.6*Math.min(n.w,n.h),"px;\n"),o+="}\n\n",o}}]),e}();function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Mn(e,t,n){return t&&Dn(e.prototype,t),n&&Dn(e,n),e}var Ln=function(){function e(t){Rn(this,e),u.log(5,"UploadPreviewCSS.constructor()"),this.cssFactory=t}return Mn(e,[{key:"run",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+="}\n\n",o}}]),e}();function In(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function An(e,t,n){return t&&Vn(e.prototype,t),n&&Vn(e,n),e}var zn=function(){function e(t){In(this,e),u.log(5,"ComponentSetCSS.constructor()"),this.cssFactory=t}return An(e,[{key:"run",value:function(e,t,n){var o=this,i="";return i+=e+" {\n",i+=this.cssFactory.getPosition(n),i+="}\n\n",n.children.forEach((function(e){i+=e.cssSelector+" {\n",W(e)?i+=" width: ".concat(o.cssFactory.getCorrectedWidth(e),";\n"):ie(e)?i+=o.getMinMaxWidth(e,!1):i+=" min-width: ".concat(o.cssFactory.getCorrectedWidth(e),";\n"),Q(e)?i+=" height: ".concat(o.cssFactory.getCorrectedHeight(e),";\n"):i+=" min-height: ".concat(o.cssFactory.getCorrectedHeight(e),";\n"),i+="}\n\n"})),i}}]),e}();function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Wn(e,t,n){return t&&_n(e.prototype,t),n&&_n(e,n),e}var Hn=function(){function e(t){Nn(this,e),u.log(5,"SpinnerCSS()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return Wn(e,[{key:"run",value:function(e,t,n){var o="";if(o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.textProperties),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+="}\n\n",n.hover){var i=n.hover;o+=e+":hover {\n",o+=" color:".concat(i.color,";\n"),o+="}\n\n"}return o+=e+" .qux-spinner-option-cntr {\n",o+=" height:".concat(Math.ceil(3*n.h),"px;\n"),o+="}\n\n",o+=e+" .qux-spinner-option {\n",o+=" height:".concat(Math.floor(n.h/3),"px;\n"),o+="}\n\n",o+=e+" .qux-spinner-border {\n",o+=" border-top-color:".concat(t.borderBoxColor,";\n"),o+=" border-bottom-color:".concat(t.borderBoxColor,";\n"),o+="}\n\n",o}}]),e}();function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Un(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function $n(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),e}var Kn=function(){function e(t){Qn(this,e),u.log(5,"DynamicContainerCSS.constructor()"),this.cssFactory=t}return $n(e,[{key:"run",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o}}]),e}();function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Yn(e,t,n){return t&&Xn(e.prototype,t),n&&Xn(e,n),e}var Jn=function(){function e(t){Gn(this,e),u.log(5,"RichTextCSS()"),this.cssFactory=t,this.imagePrefix=t.imagePrefix}return Yn(e,[{key:"run",value:function(e,t,n){var o=this,i="";if(i+=e+" {\n",i+=this.cssFactory.getPosition(n),i+=this.cssFactory.getRawStyle(t,n),i+="}\n\n",n.props&&n.props.richTextLabel){var r=n.props.richTextLabel;r.forEach((function(t,r){t.style&&(i+=e+" .qux-rich-text-child-".concat(r," {\n"),i+=o.cssFactory.getRawStyle(t.style,n),i+="}\n\n")}))}return i}}]),e}();function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function to(e,t,n){return t&&eo(e.prototype,t),n&&eo(e,n),e}var no=function(){function e(t){Zn(this,e),u.log(5,"CSSWidgetFactory.constructor()"),this.cssFactory=t,this.factories={Paging:new Qt(t),Table:new Gt(t),Image:new Zt(t),Screen:new on(t),Repeater:new cn(t),BarChart:new hn(t),Vector:new mn(t),Timeline:new xn(t),Segment:new Sn(t),Upload:new jn(t),Camera:new En(t),UploadPreview:new Ln(t),ComponentSet:new zn(t),Spinner:new Hn(t),DynamicContainer:new Kn(t),RichText:new Jn(t)}}return to(e,[{key:"getCSS_RichText",value:function(e,t,n){return u.log(5,"getCSS_RichText",n),this.factories.RichText.run(e,t,n)}},{key:"getCSS_DynamicContainer",value:function(e,t,n){return u.log(5,"getDynamicContainer",n),this.factories.DynamicContainer.run(e,t,n)}},{key:"getCSS_Spinner",value:function(e,t,n){return u.log(5,"getSpinner",n),this.factories.Spinner.run(e,t,n)}},{key:"getCSS_ComponentSet",value:function(e,t,n){return u.log(5,"getComponentSet",n),this.factories.ComponentSet.run(e,t,n)}},{key:"getCSS_UploadPreview",value:function(e,t,n){return u.log(5,"getCSS_UploadPreview",n),this.factories.UploadPreview.run(e,t,n)}},{key:"getCSS_Camera",value:function(e,t,n){return u.log(5,"getCSS_Camera",n),this.factories.Camera.run(e,t,n)}},{key:"getCSS_Upload",value:function(e,t,n){return u.log(5,"getCSS_Upload",n),this.factories.Upload.run(e,t,n)}},{key:"getCSS_BarChart",value:function(e,t,n){return u.log(5,"getCSS_BarChart",n),this.factories.BarChart.run(e,t,n)}},{key:"getCSS_RingChart",value:function(e,t,n){return u.log(5,"getCSS_RingChart",n),this.factories.BarChart.run(e,t,n)}},{key:"getCSS_SegmentButton",value:function(e,t,n){return u.log(5,"getCSS_SegmentButton",n),this.factories.Segment.run(e,t,n)}},{key:"getCSS_Timeline",value:function(e,t,n){return u.log(5,"getCSS_Timeline",n),this.factories.Timeline.run(e,t,n)}},{key:"getCSS_Vector",value:function(e,t,n){return u.log(5,"getCSS_Vector",n),this.factories.Vector.run(e,t,n)}},{key:"getCSS_PieChart",value:function(e,t,n){return u.log(5,"getCSS_PieChart",n),this.factories.BarChart.run(e,t,n)}},{key:"getCSS_MultiRingChart",value:function(e,t,n){return u.log(5,"getCSS_MultiRingChart",n),this.factories.BarChart.run(e,t,n)}},{key:"getCSS_Screen",value:function(e,t,n){return u.log(5,"getCSS_Screen",n),this.factories.Screen.run(e,t,n)}},{key:"getCSS_Repeater",value:function(e,t,n){return u.log(5,"getCSS_Repeater",n),this.factories.Repeater.run(e,t,n)}},{key:"getCSS_Icon",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getRawStyle(t,n),o+=this.cssFactory.getPosition(n),o+=" font-size:".concat(n.h,"px;\n"),o+=" line-height:1;\n",o+="}\n\n",o+=e+" .mdi:before {\n",o+=" font-size:".concat(n.h,"px;\n"),o+="}\n\n",o}},{key:"getCSS_ChildrenToggle",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getRawStyle(t,n),o+=this.cssFactory.getPosition(n),o+=" width:".concat(n.w,"px;\n"),o+="}\n\n",n.active&&(o+=e+".qux-active {\n",o+=this.getRawStyle(n.active,n),o+="}\n\n"),o}},{key:"getCSS_RadioGroup",value:function(e,t,n){var o="",i=this.cssFactory.getCorrectedHeight(n,!1,n.style.boxHeight),r=n.style.boxHeight+"px";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=e+".qux-radiobox {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=this.cssFactory.getBackGround(t,n),o+=" height:".concat(r,";\n"),o+=" width:".concat(r,";\n"),o+="}\n\n",o+=e+" .qux-radiobox-cntr {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=this.cssFactory.getBackGround(t,n),o+=" height:".concat(i,";\n"),o+=" width:".concat(i,";\n"),o+="}\n\n",o+=e+" .qux-radiobox-hook {\n",o+=" background: ".concat(t.colorButton,";\n"),o+="}\n\n",o+=e+" .qux-radiobox-label {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.fontProperties),o+="}\n\n",n.checked&&(o+=e+".qux-radiobox-checked .qux-radiobox-cntr {\n",o+=this.cssFactory.getStyleByKey(n.checked,n,this.cssFactory.borderColorProperties),o+="}\n\n"),o}},{key:"getCSS_CheckBoxGroup",value:function(e,t,n){var o="",i=this.cssFactory.getCorrectedHeight(n,!1,n.style.boxHeight),r=n.style.boxHeight+"px";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=e+".qux-checkbox {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=this.cssFactory.getBackGround(t,n),o+=" height:".concat(r,";\n"),o+=" width:".concat(r,";\n"),o+="}\n\n",o+=e+" .qux-checkbox-cntr {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=this.cssFactory.getBackGround(t,n),o+=" height:".concat(i,";\n"),o+=" width:".concat(i,";\n"),o+="}\n\n",o+=e+" .qux-checkbox-hook {\n",o+=" border-color: ".concat(t.colorButton,";\n"),o+=" border-bottom-width: ".concat(Math.round(r/10),"px;\n"),o+=" border-right-width: ".concat(Math.round(r/10),"px;\n"),o+="}\n\n",o+=e+" .qux-checkbox-label {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.fontProperties),o+="}\n\n",n.checked&&(o+=e+".qux-checkbox-checked .qux-checkbox-cntr {\n",o+=this.cssFactory.getStyleByKey(n.checked,n,this.cssFactory.borderColorProperties),o+="}\n\n"),o}},{key:"getCSS_RadioBox2",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=e+" .qux-radiobox-cntr {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=this.cssFactory.getBackGround(t,n),o+=" height:".concat(this.cssFactory.getCorrectedHeight(n),";\n"),o+=" width:".concat(this.cssFactory.getCorrectedWidth(n),";\n"),o+="}\n\n",o+=e+" .qux-radiobox-hook {\n",o+=" background: ".concat(t.colorButton,";\n"),o+="}\n\n",n.checked&&(o+=e+".qux-radiobox-checked .qux-radiobox-cntr {\n",o+=this.cssFactory.getStyleByKey(n.checked,n,this.cssFactory.borderColorProperties),o+="}\n\n"),o}},{key:"getCSS_CheckBox",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=" height:".concat(n.h,"px;\n"),o+=" width:".concat(n.w,"px;\n"),o+="}\n\n",o+=e+" .qux-checkbox-cntr {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=this.cssFactory.getBackGround(t,n),o+=" height:".concat(this.cssFactory.getCorrectedHeight(n),";\n"),o+=" width:".concat(this.cssFactory.getCorrectedWidth(n),";\n"),o+="}\n\n",o+=e+" .qux-checkbox-hook {\n",o+=" border-color: ".concat(t.colorButton,";\n"),o+=" border-bottom-width: ".concat(Math.round(n.h/10),"px;\n"),o+=" border-right-width: ".concat(Math.round(n.h/10),"px;\n"),o+="}\n\n",n.checked&&(o+=e+".qux-checkbox-checked .qux-checkbox-cntr {\n",o+=this.cssFactory.getStyleByKey(n.checked,n,this.cssFactory.borderColorProperties),o+="}\n\n"),o}},{key:"getCSS_Switch",value:function(e,t,n){var o="";o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n";var i=this.cssFactory.getCorrectedHeight(n,!1,n.h),r=this.cssFactory.getCorrectedWidth(n,!1,n.w);"MatcWidgetTypeSwitchThin"===t.cssClass&&(i="50%"),o+=e+" .qux-switch-cntr {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=" height:".concat(i,";\n"),o+=" width:".concat(r,";\n"),o+="}\n\n";var a=t.borderWidthButton?t.borderWidthButton:0,s=t.borderColorButton?t.borderColorButton:"rgba(0,0,0,0)";return o+=e+" .qux-switch-handle {\n",o+=" background:".concat(t.colorButton,";\n"),o+=" border-radius:".concat(t.borderRadius,";\n"),o+=" border-width:".concat(a,"px;\n"),o+=" border-color:".concat(s,";\n"),o+=this.cssFactory.getStyleByKey(t,n,["boxShadow"]),o+=" height: ".concat(n.h,"px;\n"),o+=" width: ".concat(n.h,"px;\n"),o+="}\n\n",o+=e+".qux-active .qux-switch-handle {\n",o+=" left:calc(100% - ".concat(n.h,"px);\n"),o+="}\n\n",o+=e+" .qux-switch-on {\n",o+=" background:".concat(t.background,";\n"),o+="}\n\n",o+=e+" .qux-switch-off {\n",o+=" background:".concat(t.colorForeGround,";\n"),o+="}\n\n",o}},{key:"getCSS_MobileDropDown",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getRawStyle(t,n),o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=this.addOpenZIndex(e),o+=this._addCaret(e,n,t),o+=e+" .qux-dropdown-popup {\n",o+=" background:".concat(t.popupBackground,";\n"),o+=" color:".concat(t.popupColor,";\n"),o+="}\n\n",n.focus&&(o+=e+":hover {\n",o+=this.cssFactory.getRawStyle(n.focus,n),o+="}\n\n",o+=this._addCaret(e+":hover",n,n.focus),o+=e+":hover .qux-dropdown-popup {\n",o+=this.cssFactory.getStyleByKey(n.focus,n,this.cssFactory.borderProperties),o+="}\n\n"),o}},{key:"getCSS_DropDown",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getRawStyle(t,n),o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=this._addCaret(e,n,t),o+=this.addOpenZIndex(e),o+=e+":not(.qux-dropdown-mobile) .qux-dropdown-popup {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),t.popupBorder&&(o+=" border-color:".concat(t.popupBorder,";\n")),o+="}\n\n",o+=e+":not(.qux-dropdown-mobile) .qux-dropdown-item {\n",o+=" background:".concat(t.popupBackground?t.popupBackground:t.backgroundColor,";\n"),o+=" color:".concat(t.popupColor?t.popupColor:t.color,";\n"),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.paddingProperties),o+="}\n\n",o+=e+":not(.qux-dropdown-mobile) .qux-dropdown-item:hover {\n",o+=" background:".concat(t.selectedOptionBackground,";\n"),o+=" color:".concat(t.selectedOptionColor,";\n"),o+="}\n\n",n.focus&&(o+=e+":hover {\n",o+=this.cssFactory.getRawStyle(n.focus,n),o+="}\n\n",o+=this._addCaret(e+":hover",n,n.focus),o+=e+":hover .qux-dropdown-popup {\n",o+=this.cssFactory.getStyleByKey(n.focus,n,this.cssFactory.borderProperties),o+="}\n\n"),n.hover&&(o+=e+":hover {\n",o+=this.cssFactory.getRawStyle(n.hover,n),o+="}\n\n",o+=this._addCaret(e+":hover",n,n.focus),o+=e+":hover .qux-dropdown-popup {\n",o+=this.cssFactory.getStyleByKey(n.hover,n,this.cssFactory.borderProperties),o+="}\n\n"),o}},{key:"_addCaret",value:function(e,t,n){var o="";return t.props&&t.props.caretBorderColor&&(o+=e+" .qux-dropdown-expend {\n",o+=" background:".concat(n._borderRightColor,";\n"),o+="}\n\n",o+=e+" .qux-dropdown-carret {\n",o+=" color:".concat(n.background,";\n"),o+="}\n\n"),o}},{key:"getCSS_Stepper",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getRawStyle(t,n),o+=this.cssFactory.getPosition(n),o+="}\n\n",n.hover&&(o+=e+" .qux-stepper-btn:hover {\n",o+=" background:".concat(n.hover.background,";\n"),o+=" color:".concat(n.hover.color,";\n"),o+="}\n\n"),o}},{key:"getCSS_HSlider",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=e+" .qux-slider-track {\n",o+=" background:".concat(t.background,";\n"),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+="}\n\n",o+=e+" .qux-slider-progress {\n",o+=" background:".concat(t.barColor,";\n"),o+="}\n\n",o+=e+" .qux-slider-handle {\n",o+=" background:".concat(t.handleColor,";\n"),o+=" border-radius:".concat(t.handleRadius,"%;\n"),o+=" height:".concat(t.handleHeight*n.h,"px;\n"),o+=" width:".concat(t.handleWidth,"px;\n"),o+="}\n\n",o+=e+" .qux-slider-handle-cntr {\n",o+=" margin-left: ".concat(t.handleWidth/2,"px;\n"),o+=" width: calc(100% - ".concat(t.handleWidth,"px);\n"),o+="}\n\n",o}},{key:"getCSS_Date",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="";return o||(i+=e+" {\n",i+=this.cssFactory.getRawStyle(t,n),i+=this.cssFactory.getPosition(n),i+="}\n\n"),t.tableBorderWidth&&(i+=e+" table {\n",i+=" border-spacing:".concat(t.tableBorderWidth,"px;\n"),i+=" border-collapse: separate;\n",i+="}\n\n"),i+=e+" .qux-date-week-days {\n",i+=" background:".concat(t.tableHeaderBackground,";\n"),i+=" color:".concat(t.tableHeaderColor,";\n"),i+="}\n\n",i+=e+" .qux-date-header {\n",i+=" background:".concat(t.headerBackground,";\n"),i+=" color:".concat(t.headerColor,";\n"),i+="}\n\n",t.weekendBackground&&t.weekendColor&&(i+=e+" .qux-date-weekend {\n",i+=" background:".concat(t.weekendBackground,";\n"),i+=" color:".concat(t.weekendColor,";\n"),i+="}\n\n"),t.weekdayBackground&&t.weekdayColor&&(i+=e+" .qux-date-workday {\n",i+=" background:".concat(t.weekdayBackground,";\n"),i+=" color:".concat(t.weekdayColor,";\n"),i+="}\n\n"),n.props.range?(i+=e+" .qux-date-range-start {\n",i+=" background:".concat(t.selectedBackground,";\n"),i+=" color:".concat(t.selectedColor,";\n"),t.itemBorderRadius&&(i+=" border-radius:".concat(t.itemBorderRadius,"%;\n")),i+="}\n\n",i+=e+" .qux-date-range-end {\n",i+=" background:".concat(t.selectedBackground,";\n"),i+=" color:".concat(t.selectedColor,";\n"),t.itemBorderRadius&&(i+=" border-radius:".concat(t.itemBorderRadius,"%;\n")),i+="}\n\n",i+=e+" .qux-date-range-middle {\n",i+=" background:".concat(t.selectedInRangeBackground,";\n"),i+=" color:".concat(t.selectedInRangeColor,";\n"),t.itemBorderRadius&&(i+=" border-radius:".concat(t.itemBorderRadius,"%;\n")),i+="}\n\n"):(i+=e+" .qux-date-selected {\n",i+=" background:".concat(t.selectedBackground,";\n"),i+=" color:".concat(t.selectedColor,";\n"),t.itemBorderRadius&&(i+=" border-radius:".concat(t.itemBorderRadius,"%;\n")),i+="}\n\n"),i}},{key:"getCSS_DateDropDown",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getRawStyle(t,n),o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=this.addOpenZIndex(e),o+=this._addCaret(e,n,t),o+=e+" .qux-date-picker-popup {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+=" width:".concat(18*t.fontSize,"px;\n"),o+=" height:".concat(18*t.fontSize,"px;\n"),o+="}\n\n",o+=this.getCSS_Date(e+" .qux-date-picker-popup",t,n,!0),o}},{key:"getCSS_Rating",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=" color:".concat(t.color,";\n"),o+=" font-size:".concat(n.h,"px;\n"),o+="}\n\n",o}},{key:"getCSS_LabeledIconToggle",value:function(e,t,n){return this.getCSS_IconToggle(e,t,n)}},{key:"getCSS_IconToggle",value:function(e,t,n){var o="";return o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.textProperties),o+=" color:".concat(t.passiveColor,";\n"),o+=" font-size:".concat(t.fontSize,"px;\n"),o+="}\n\n",o+=e+".qux-icon-toggle-selected {\n",o+=" color:".concat(t.activeColor,";\n"),o+="}\n\n",o+=e+" .qux-icon {\n",o+=" font-size:".concat(n.h,"px;\n"),o+="}\n\n",o}},{key:"getCSS_TypeAheadTextBox",value:function(e,t,n){var o="";o+=e+" {\n",o+=this.cssFactory.getPosition(n),o+="}\n\n",o+=e+" .qux-combo-input {\n",o+=this.cssFactory.getRawStyle(t,n);var i=t._paddingLeft+t._paddingRight,r=t._paddingTop+t._paddingBottom;return o+=" width:calc(100% - ".concat(i,"px);\n"),o+=" height:calc(100% - ".concat(r,"px);\n"),o+="}\n\n",o+=this.addOpenZIndex(e),o+=e+" .qux-combo-popup {\n",o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.borderProperties),o+="}\n\n",o+=e+" .qux-combo-item {\n",o+=" background:".concat(t.background,";\n"),o+=" color:".concat(t.color,";\n"),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.paddingProperties),o+="}\n\n",o+=e+" .qux-combo-item:hover,\n",o+=e+" .qux-combo-item-selected {\n",o+=" background:".concat(t.selectedOptionBackground,";\n"),o+=this.cssFactory.getStyleByKey(t,n,this.cssFactory.paddingProperties),o+=" color:".concat(t.selectedOptionColor,";\n"),o+="}\n\n",n.focus&&(o+=e+":hover {\n",o+=this.cssFactory.getRawStyle(n.focus,n),o+="}\n\n",o+=this._addCaret(e+":hover",n,n.focus)),o}},{key:"getCSS_Image",value:function(e,t,n){return this.factories.Image.run(e,t,n)}},{key:"getCSS_Paging",value:function(e,t,n){return this.factories.Paging.run(e,t,n)}},{key:"getCSS_Table",value:function(e,t,n){return this.factories.Table.run(e,t,n)}},{key:"addOpenZIndex",value:function(e){var t="";return t+=e+".qux-open {\n",t+=" z-index: 1000;\n",t+="}\n\n",t}}]),e}();function oo(e){return so(e)||ao(e)||ro(e)||io()}function io(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ro(e,t){if(e){if("string"===typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?co(e,t):void 0}}function ao(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function so(e){if(Array.isArray(e))return co(e)}function co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ho(e,t,n){return t&&uo(e.prototype,t),n&&uo(e,n),e}var po=function(){function e(t,n){lo(this,e),this.cssFacotory=n,this.gridAutoErrorThreshold=5,this.huggedCanResize=!1,t.css&&(this.isForceGrid=t.css.grid,this.huggedCanResize=t.css.huggedCanResize,this.justifyContentInWrapper=t.css.justifyContentInWrapper,this.prefix=t.css.prefix?t.css.prefix:"",this.gridAutoErrorThreshold=t.css.gridAutoErrorThreshold?t.css.gridAutoErrorThreshold:5),t.responsive&&(this.responsive=t.responsive),this.ignoreCorrectWidthAndHeigth=["CheckBox","RadioBox","RadioBox2","Switch","Stepper","TypeAheadTextBox","Paging","Camera"],this.heightProperties=["paddingTop","_paddingTop","paddingBottom","_paddingBottom","borderTopWidth","_borderTopWidth","borderBottomWidth","_borderBottomWidth"],this.widthProperties=["paddingLeft","_paddingLeft","paddingRight","_paddingRight","borderLeftWidth","_borderLeftWidth","borderRightWidth","_borderRightWidth"]}return ho(e,[{key:"getPostion",value:function(e){if(u.log(3,"CSSPostion.getPostion()"+e.name,e.layout),R(e))return this.getDesignSystemPosition(e);if(M(e))return this.getComponentScreenPosition(e);var t="",n=e.parent;return t+=this.getParentPosition(n,e),t+=this.getChildPosition(e),t}},{key:"getParentPosition",value:function(e,t){return e?I(t)?this.getParentFixed(t):D(e)?this.getParentRepeater(t):m(e)?this.getParentWrap(t):k(e)?this.getParentAutoHorizontal(t):C(e)?this.getParentAutoVertical(t):y(e)?this.getParentRow(t):b(e)?this.getParentGrid(t):"":this.getParentDefault(t)}},{key:"getChildPosition",value:function(e){return S(e)?D(e)?this.setChildrenRepeater(e):m(e)?this.getChildrenWrap(e):k(e)?this.getChildrenAutoHorizontal(e):C(e)?this.getChildrenAutoVertical(e):y(e)?this.getChildrenRow(e):b(e)?this.getChildrenGrid(e):"":"/* no children */"}},{key:"getParentDefault",value:function(e){u.log(5,"CSSPosition.getParentDefault() >"+e.name);var t="";return this.isForceGrid&&q(e)?t+=" min-height: ".concat(e.h,"px;\n"):t+=" min-height: 100%;\n",t}},{key:"getChildrenAutoHorizontal",value:function(e){u.log(5,"CSSPosition.getChildrenAutoHorizontal() >"+e.name);var t="",n=e.layout;if(t+=" display: flex;\n",t+=" flex-direction: row;\n",t+=" align-items: ".concat(n.alignItems,";\n"),t+=" justify-content: ".concat(n.justifyContent,";\n"),T(e)&&(t+=" flex-wrap: wrap;\n"),!E(e)){var o=n.itemSpacing?n.itemSpacing:0;t+=" gap: ".concat(o,"px;\n")}return t+=" padding-left: ".concat(n.paddingLeft,"px;\n"),t+=" padding-right: ".concat(n.paddingRight,"px;\n"),t+=" padding-top: ".concat(n.paddingTop,"px;\n"),t+=" padding-bottom: ".concat(n.paddingBottom,"px;\n"),t}},{key:"getParentAutoHorizontal",value:function(e){u.log(5,"CSSPosition.getParentAutoHorizontal() > "+e.name);var t="";return Q(e)?t+=" height: ".concat(this.getCorrectedHeight(e,!0),";\n"):t+=" min-height: ".concat(this.getCorrectedHeight(e,!0),";\n"),ie(e)?(t+=this.getMinMaxWidth(e,!1),t+=" flex-grow: 1;\n"):W(e)?H(e)||(t+=" width: ".concat(this.getFixedWidth(e),";\n")):v(e)?(t+=" flex-basis: ".concat(this.getFixedWidth(e),"; \n"),t+=" flex-grow: 1;\n"):t+=" width: ".concat(this.getResponsiveWidth(e),";\n"),t}},{key:"getChildrenAutoVertical",value:function(e){u.log(3,"CSSPosition.getChildrenAutoVertical()"+e.name);var t="",n=e.layout;t+=" display: flex;\n",t+=" flex-direction: column;\n",t+=" align-items: ".concat(n.alignItems,";\n"),t+=" justify-content: ".concat(n.justifyContent,";\n");var o=n.itemSpacing?n.itemSpacing:0;return t+=" gap: ".concat(o,"px;\n"),t+=" padding-left: ".concat(n.paddingLeft,"px;\n"),t+=" padding-right: ".concat(n.paddingRight,"px;\n"),t+=" padding-top: ".concat(n.paddingTop,"px;\n"),t+=" padding-bottom: ".concat(n.paddingBottom,"px;\n"),t}},{key:"getParentAutoVertical",value:function(e){u.log(3,"CSSPosition.getParentAutovertical()"+e.name);var t="";if(v(e)?(t+=" min-height: ".concat(this.getCorrectedHeight(e,!0),";\n"),t+=" flex-grow: 1;\n"):t+=" height: ".concat(this.getCorrectedHeight(e,!0),";\n"),W(e))t+=" width: ".concat(this.getFixedWidth(e),";\n");else if(e.layout&&e.layout.paddingLeft>=0&&e.layout.paddingRight>=0){var n=e.layout,o=n.paddingLeft+n.paddingRight;t+=" width: calc(100% - ".concat(o,"px);\n")}else t+=" width: 100%;\n";return t}},{key:"getChildrenGrid",value:function(e){u.log(3,"CSSPosition.getChildrenGrid()"+e.name);var t="";return t+=" display: grid;\n",t+=" grid-template-columns: "+this.getGridColumnTracks(e.w,e.grid.columns,e)+";\n",t+=" grid-template-rows: "+this.getGridRowTracks(e.h,e.grid.rows,e,!0)+";\n",t}},{key:"getParentGrid",value:function(e){u.log(3,"CSSPosition.getParentGrid()"+e.name);var t="";return t+=" grid-column-start: ".concat(e.gridColumnStart+1,";\n"),t+=" grid-column-end: ".concat(e.gridColumnEnd+1,";\n"),t+=" grid-row-start: ".concat(e.gridRowStart+1,";\n"),t+=" grid-row-end: ".concat(e.gridRowEnd+1,";\n"),e.z&&(t+=" z-index: ".concat(e.z,";\n")),t}},{key:"getGridColumnTracks",value:function(e,t){var n=this;if(u.log(6,"CSSPosition.getGridColumnTracks() > ",t),t){var o=t.filter((function(e){return!e.fixed}));0===o.length&&(o=t);var i=Math.max.apply(Math,oo(o.map((function(e){return e.l}))));return t.map((function(t){return t.fixed?t.l+"px":Math.abs(i-t.l)<=n.gridAutoErrorThreshold?"minmax(0,1fr)":Math.round(1e3*t.l/e)/10+"%"})).join(" ")}}},{key:"getGridRowTracks",value:function(e,t){if(u.log(6,"CSSPosition.getGridRowTracks() > ",t),t)return t.map((function(e,n){return e.fixed||n!==t.length-1?e.fixed||0===e.start.length||0===n?Math.round(e.l)+"px":"minmax(".concat(Math.round(e.l),"px, auto)"):"1fr"})).join(" ")}},{key:"getParentFixed",value:function(e){var t=" position: fixed;\n";return this.isFixedHorizontal(e)?t+=" width: ".concat(this.getFixedWidth(e),";\n"):t+=" width: ".concat(this.getResponsiveWidth(e),";\n"),U(e)?t+=" left: ".concat(this.getPinnedLeft(e),";\n"):$(e)?t+=" right: ".concat(this.getPinnedRight(e),";\n"):t+=" left: ".concat(this.getResponsiveLeft(e),";\n"),G(e)&&K(e)?(t+=" bottom: ".concat(e.bottom,"px;\n"),t+=" top: ".concat(e.y,"px;\n")):G(e)?(t+=" bottom: ".concat(e.bottom,"px;\n"),t+=" height: ".concat(this.getCorrectedHeight(e),";\n")):(t+=" top: ".concat(e.y,"px;\n"),t+=" height: ".concat(this.getCorrectedHeight(e),";\n")),t}},{key:"getParentWrap",value:function(e){u.log(3,"CSSPosition.getParentWrap()"+e.name);var t="";return t+=" min-height: ".concat(this.getWrappedHeight(e),";\n"),t+=this.getWrappedWidth(e),e.wrapOffSetBottom&&e.wrapOffSetRight&&!this.justifyContentInWrapper?(t+=" margin-bottom: ".concat(e.wrapOffSetBottom,"px ;\n"),t+=" margin-right: ".concat(e.wrapOffSetRight,"px ;\n")):t+=" margin: ".concat(e.wrapOffSetY,"px ").concat(e.wrapOffSetX,"px;\n"),t}},{key:"getChildrenWrap",value:function(e){u.log(4,"CSSPosition.getChildrenWrap() "+e.name);var t="";return t+=" display: flex;\n",t+=" flex-direction: row;\n",t+=" flex-wrap: wrap;\n",t+=" align-items: flex-start;\n",t+=" align-content: flex-start;\n",this.justifyContentInWrapper&&(t+=" justify-content: space-between;\n"),t}},{key:"getWrappedHeight",value:function(e){return this.getCorrectedHeight(e)}},{key:"getWrappedWidth",value:function(e){return u.log(5,"CSSPosition.getWrappedWidth() "+e.name,ie(e)),ie(e)?this.getMinMaxWidth(e,!0):this.isFixedHorizontal(e)?" width: ".concat(this.getFixedWidth(e),";\n"):" width: ".concat(this.getResponsiveWidth(e),";\n")}},{key:"getParentRepeater",value:function(e){u.log(5,"CSSPosition.getParentRepeater() "+e.name);var t="";return Q(e)?t+=" height: ".concat(this.getCorrectedHeight(e,!0),";\n"):(t+=" min-height: ".concat(this.getCorrectedHeight(e,!0),";\n"),t+=" height: 100%;\n"),t+=" width: calc(100% - ".concat(this.getLeftRightBorder(e),"px);\n"),t}},{key:"getLeftRightBorder",value:function(e){var t=0;return e.style&&this.widthProperties.forEach((function(n){e.style[n]&&(t+=e.style[n])})),t}},{key:"setChildrenRepeater",value:function(e){if(u.log(5,"CSSPosition.setChildrenRepeater() "+e.name),k(e))return this.getChildrenAutoHorizontal(e);if(C(e))return this.getChildrenAutoVertical(e);var t="";return V(e)?(t+=" display: flex;\n",t+=" flex-direction: row;\n",t+=" flex-wrap: wrap;\n",t+=" align-items: flex-start;\n",t+=" align-content: flex-start;\n",L(e)&&(t+=" justify-content: space-between;\n")):(t+=" display: flex;\n",t+=" flex-direction: column;\n"),t}},{key:"getChildrenRow",value:function(){var e="";return e+=" display: flex;\n",e+=" flex-direction: column;\n",e}},{key:"getParentRow",value:function(e){u.log(5,"CSSPosition.getParentRow() "+e.name,e.props);var t="";return t+=this.getParentRowHorizontal(e),t+=this.getParentRowVertical(e),t}},{key:"getParentRowVertical",value:function(e){var t="";return Q(e)?t+=" height: ".concat(this.getCorrectedHeight(e,!0),";\n"):t+=" min-height: ".concat(this.getCorrectedHeight(e,!0),";\n"),t+=" margin-top: ".concat(this.getPinnedTop(e),";\n"),t}},{key:"getParentRowHorizontal",value:function(e){return this.isPinnedLeft(e)&&this.isPinnedRight(e)?this.getParentRowPinnedBoth(e):J(e)?this.getParentRowCenter(e):this.isPinnedLeft(e)?this.getParentRowPinnedLeft(e):this.isPinnedRight(e)?this.getParentRowPinneRight(e):this.getParentRowPinnedNone(e)}},{key:"getParentRowCenter",value:function(e){var t="";return ie(e)?t+=this.getMinMaxWidth(e,!0):W(e)?t+=" width: ".concat(this.getFixedWidth(e),";\n"):t+=" width: ".concat(this.getResponsiveWidth(e),";\n"),t+=" margin-left: auto;\n",t+=" margin-right: auto;\n",t}},{key:"getParentRowPinnedBoth",value:function(e){var t="";return t+=" margin-left: ".concat(this.getPinnedLeft(e),";\n"),t+=" margin-right: ".concat(this.getPinnedRight(e),";\n"),t}},{key:"getParentRowPinnedLeft",value:function(e){var t="";return this.isFixedHorizontal(e)?(t+=" width: ".concat(this.getFixedWidth(e),";\n"),t+=" margin-left: ".concat(this.getPinnedLeft(e),";\n")):(t+=" margin-right: ".concat(this.getResponsiveRight(e),";\n"),t+=" margin-left: ".concat(this.getPinnedLeft(e),";\n")),t}},{key:"getParentRowPinneRight",value:function(e){var t="";return this.isFixedHorizontal(e)?(t+=" width: ".concat(this.getFixedWidth(e),";\n"),t+=" margin-left: ".concat(this.getCalcLeft(e),";\n")):(t+=" margin-left: ".concat(this.getResponsiveLeft(e),";\n"),t+=" margin-right: ".concat(this.getPinnedRight(e),";\n")),t}},{key:"getParentRowPinnedNone",value:function(e){var t="";return this.isFixedHorizontal(e)?J(e)?(t+=" width: ".concat(this.getFixedWidth(e),";\n"),t+=" margin-left: auto;\n",t+=" margin-right: auto;\n"):(t+=" width: ".concat(this.getFixedWidth(e),";\n"),t+=" margin-left: ".concat(this.getResponsiveLeft(e),";\n")):ie(e)&&J(e)?(t+=this.getMinMaxWidth(e,!0),t+=" margin-left: auto;\n",t+=" margin-right: auto;\n"):(t+=" margin-right: ".concat(this.getResponsiveRight(e),";\n"),t+=" margin-left: ".concat(this.getResponsiveLeft(e),";\n")),t}},{key:"getDesignSystemPosition",value:function(e){u.log(3,"CSSPosition.getDesignSystemPosition()"+e.name,e);var t="";return te(e)?A(e)?t+=" display:block;\n":t+=" display:inline-block;\n":(this.isGrid(e)?A(e)?t+=" display:grid;\n":t+=" display:inline-grid;\n":A(e)?t+=" display:block;\n":t+=" display:inline-block;\n",W(e)?t+=" width: ".concat(this.getCorrectedWidth(e),";\n"):ie(e)?t+=this.getMinMaxWidth(e,!1):t+=" width: auto;\n",Q(e)?t+=" height: ".concat(this.getCorrectedHeight(e),";\n"):t+=" min-height: ".concat(this.getCorrectedHeight(e),";\n"),S(e)&&(b(e)?(u.log(3,"CSSPosition.getComponentScreenPosition() > add grid"+e.name),t+=" grid-template-columns: "+this.getGridColumnTracks(e.w,e.grid.columns,e)+";\n",t+=" grid-template-rows: "+this.getGridRowTracks(e.h,e.grid.rows,e)+";\n"):(t+=" display: flex;\n",t+=" flex-direction: column;\n"))),t}},{key:"getMinMaxWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="";return e.style&&e.style.minWidth&&(n+=" min-width: ".concat(e.style.minWidth,"px;\n")),e.style&&e.style.maxWidth&&(n+=" max-width: ".concat(e.style.maxWidth,"px;\n")),t&&(n+=" width: ".concat(this.getResponsiveWidth(e),";\n")),n}},{key:"isInlineBlock",value:function(e){return"qContainer"!==e.qtype}},{key:"isGrid",value:function(e){return b(e)&&S(e)}},{key:"getComponentScreenPosition",value:function(e){u.log(3,"CSSPosition.getComponentScreenPosition()"+e.name);var t="";return t+=" height:100%;\n",t+=" width: 100%;\n",b(e)&&(u.log(-1,"CSSPosition.getComponentScreenPosition() > add grid"+e.name),t+=" display: grid;\n",t+=" grid-template-columns: "+this.getGridColumnTracks(e.w,e.grid.columns,e)+";\n",t+=" grid-template-rows: "+this.getGridRowTracks(e.h,e.grid.rows,e)+";\n"),t}},{key:"isPinnedLeft",value:function(e){return U(e)}},{key:"isPinnedRight",value:function(e){return $(e)}},{key:"getPinnedBottom",value:function(e){if(e.parent){var t=e.parent,n=t.children.map((function(e){return void 0!=e.top?e.h+e.top:e.h+e.y})).reduce((function(e,t){return e+t}),0);return Math.max(0,t.h-n)+"px"}return"auto"}},{key:"getFixedWidth",value:function(e){return X(e)?"100%":this.getCorrectedWidth(e)}},{key:"getFixedTop",value:function(e){return e.y+"px"}},{key:"getPinnedTop",value:function(e){return e.top+"px"}},{key:"getCalcLeft",value:function(e){if(e.parent){var t=e.parent.w-(e.x+e.w);return"calc(100% - ".concat(e.w+t,"px)")}return"0px"}},{key:"getResponsiveLeft",value:function(e){return e.parent?Math.round(100*e.x/e.parent.w)+"%":e.x+"px"}},{key:"getResponsiveRight",value:function(e){if(e.parent){var t=e.parent.w-(e.x+e.w);return Math.round(100*t/e.parent.w)+"%"}return e.x+"px"}},{key:"getPinnedLeft",value:function(e){return e.x+"px"}},{key:"getPinnedRight",value:function(e){return e.parent?e.absX?e.parent.w-(e.absX+e.w)+"px":e.parent.w-(e.x+e.w)+"px":"0px"}},{key:"getResponsiveWidth",value:function(e){return e.parent?Math.round(100*e.w/e.parent.w)+"%":(u.warn("CSSPosition.getResponsiveWidth() > No parent! "+e.name),"100%")}},{key:"getFixedHeight",value:function(e){return e.h+"px"}},{key:"getCorrectedHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(n<0&&(n=e.h),t&&this.ignoreCorrectWidthAndHeigth.indexOf(e.type)>=0)return n+"px";if(this.heightProperties.forEach((function(t){e.style[t]&&(n-=e.style[t])})),x(e)&&(n-=e.layout.paddingTop,n-=e.layout.paddingBottom),e._template){var o=e._template;this.heightProperties.forEach((function(t){!o.style[t]||e.style[t]||e.style["_"+t]||(n-=o.style[t])}))}return n+"px"}},{key:"getCorrectedWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return n<0&&(n=e.w),t&&this.ignoreCorrectWidthAndHeigth.indexOf(e.type)>=0||(x(e)&&(n-=e.layout.paddingLeft,n-=e.layout.paddingRight),this.widthProperties.forEach((function(t){e.style[t]&&(n-=e.style[t])}))),n+"px"}},{key:"isFixedHorizontal",value:function(e){return W(e)}},{key:"getSiblings",value:function(e){return e.parent&&e.parent.children?e.parent&&e.parent.children:[]}}]),e}();function fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function go(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function mo(e,t,n){return t&&go(e.prototype,t),n&&go(e,n),e}var yo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";fo(this,e),u.log(4,"CSSFactory.constructor() ",t),this.marginWhiteSpaceCorrect=0,this.imagePrefix=n,this.hoverEmbeddedLabel=!1,this.responsive={mobile:{min:0,max:400},tablet:{min:401,max:1e3},desktop:{min:1201,max:1e6}},t.css&&(this.prefix=t.css.prefix?t.css.prefix:""),t.responsive&&(this.responsive=t.responsive),t.css&&t.css.hoverEmbeddedLabel&&(this.hoverEmbeddedLabel=t.css.hoverEmbeddedLabel),this.mapping={color:"color",textAlign:"text-align",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",fontWeight:"font-weight",letterSpacing:"letter-spacing",lineHeight:"line-height",lineHeightPX:"line-height",textTransform:"text-transform",border:"border",borderWidth:"border-width",borderStyle:"border-style",borderColor:"border-color",borderRadius:"border-radius",borderLeft:"border-left",borderRight:"border-right",borderTop:"border-top",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderTopColor:"border-top-color",borderLeftColor:"border-left-color",borderRightColor:"border-right-color",borderBottomLeftRadius:"border-bottom-left-radius",borderTopLeftRadius:"border-top-left-radius",borderBottomRightRadius:"border-bottom-right-radius",borderTopRightRadius:"border-top-right-radius",borderBottomWidth:"border-bottom-width",borderTopWidth:"border-top-width",borderLeftWidth:"border-left-width",borderRightWidth:"border-right-width",borderTopStyle:"border-top-style",borderBottomStyle:"border-bottom-style",borderRightStyle:"border-left-style",borderLeftStyle:"border-right-style",paddingBottom:"padding-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",padding:"padding",textDecoration:"text-decoration",boxShadow:"box-shadow",textShadow:"text-shadow",opacity:"opacity",cursor:"cursor"},this.paddingProperties=["paddingBottom","paddingLeft","paddingRight","paddingTop","padding"],this.borderProperties=["borderWidth","border","borderRadius","boderColor","borderBottomColor","borderTopColor","borderLeftColor","borderRightColor","borderTopStyle","borderBottomStyle","borderRightStyle","borderLeftStyle","borderBottomWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomLeftRadius","borderTopLeftRadius","borderBottomRightRadius","borderTopRightRadius"],this.borderColorProperties=["borderBottomColor","borderTopColor","borderLeftColor","borderRightColor"],this.borderWidthProperties=["borderBottomWidth","borderTopWidth","borderLeftWidth","borderRightWidth"],this.borderStyleProperties=["borderTopStyle","borderBottomStyle","borderRightStyle","borderLeftStyle"],this.borderRadiusProperties=["borderBottomLeftRadius","borderTopLeftRadius","borderBottomRightRadius","borderTopRightRadius"],this.textProperties=["color","textDecoration","textAlign","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","lineHeightPX"],this.isPixel={borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderTopRightRadius:!0,borderTopLeftRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderTopWidth:!0,borderRightWidth:!0,paddingBottom:!0,paddingLeft:!0,paddingRight:!0,paddingTop:!0,fontSize:!0,letterSpacing:!0,lineHeightPX:!0},this.easingMapping={easeInQuad:"ease-in",easeOutQuad:"ease-out",linear:"linear",easeInOutQuad:"ease-in-out",easeElasticIn:"ease-in",easeElasticOut:"ease-out",easeBounceIn:"ease-in",easeBounceOut:"ease-out"},this.fontProperties=["color","fontSize","fontWeight","textAlign","fontStyle","letterSpacing","lineHeight"],this.widgetFactory=new no(this),this.positionFactory=new po(t,this)}return mo(e,[{key:"generate",value:function(e){var t=this,n=(new Date).getTime(),o={};e.templates.forEach((function(e){if(e.style){var n={type:"template",css:e.cssSelector,global:!0,code:t.getTemplateCSS(e,null,!1)};o[e.id]=[n]}})),e.screens.forEach((function(e){o[e.id]=[],o[e.id].push({type:"screen",css:e.cssSelector,global:!1,code:t.getCSS(e)}),e.children.forEach((function(n){t.generateElement(n,o,e)})),e.fixedChildren.forEach((function(n){t.generateElement(n,o,e)}))})),o["$NORMALIZE"]=[],o["$NORMALIZE"].push({type:"screen",css:"",global:!0,code:this.getGlobalStyles()});var i=(new Date).getTime();return u.log(1,"CSSFactory.generate() > took ",i-n),o}},{key:"getGlobalStyles",value:function(){var e="";return e+="body {\n margin:0px;\n font-family:'Source Sans Pro', 'Helvetica Neue', 'Helvetica', sans-serif;\n}\n\n",e+="div {\n margin:0px;\n}\n\n",e}},{key:"generateDesignSystemRoot",value:function(e){var t=this,n={},o={type:"template",css:e.cssSelector,global:!0,code:this.getCSS(e,null,!1)};return n[e.id]=[o],e.children&&e.children.forEach((function(e){t.generateElement(e,n,screen)})),n}},{key:"generateElement",value:function(e,t,n){var o=this;t[e.id]=[],t[e.id].push({type:"widget",css:e.cssSelector,global:!1,code:this.getCSS(e,n),inherited:e.inherited,inheritedScreen:e.inheritedScreen}),e.children&&e.children.forEach((function(e){o.generateElement(e,t,n)}))}},{key:"getRaw",value:function(e,t){for(var n="",o=0;o<t.length;o++){var i=t[o],r=e.widgets[i];r?n+=this.getCSS(r,null,!1):this.logger.warn("getRaw","No widget with id > "+r)}return n}},{key:"getSelector",value:function(e){return e.cssSelector}},{key:"getName",value:function(e){var t=e.name.replace(/\s+/g,"_");return e.inherited&&(t+="_Master"),this.prefix&&(t="".concat(this.prefix,"_").concat(t)),t}},{key:"getTemplateCSS",value:function(e,t){var n="",o=e.style;o=re(o,e);var i=this.getSelector(e,t);return this.widgetFactory["getCSS_"+e.type]?n+=this.widgetFactory["getCSS_"+e.type](i,e.style,e):(n+=i+" {\n",n+=this.getRawStyle(o,e),n+="}\n\n",e.hover&&(n+=i+":hover {\n",n+=" transition: all 0.2s;\n",n+=this.getRawStyle(e.hover,e),n+="}\n\n"),e.focus&&(n+=i+":focus {\n",n+=this.getRawStyle(e.focus,e),n+="}\n\n"),e.error&&(n+=i+":invalid {\n",n+=this.getRawStyle(e.error,e),n+="}\n\n"),e.active&&(n+=i+".qux-active {\n",n+=this.getRawStyle(e.active,e),n+="}\n\n"),B(e)&&(n+=i+"::placeholder {\n",n+=" color: ".concat(this.getPlaceHolderColor(o.color),";\n"),n+="}\n\n")),n}},{key:"getCSS",value:function(e,t){var n="",o=e.style;o=re(o,e);var i=this.getSelector(e,t);if(this.widgetFactory["getCSS_"+e.type]?n+=this.widgetFactory["getCSS_"+e.type](i,e.style,e):e.isCustomComponent?(n+=i+" {\n",n+=this.getPosition(e),n+="}\n\n"):(n+=i+" {\n",n+=this.getRawStyle(o,e),n+=this.getPosition(e),n+="}\n\n",e.hover&&(n+=i+":hover {\n",n+=" transition: all 0.2s;\n",n+=this.getRawStyle(e.hover,e),n+="}\n\n",this.hoverEmbeddedLabel&&(n+=i+":hover .qux-common-label {\n",n+=this.getStyleByKey(e.hover,e,this.textProperties),n+="}\n\n")),e.focus&&(n+=i+":focus {\n",n+=this.getRawStyle(e.focus,e),n+="}\n\n"),e.error&&(n+=i+":invalid {\n",n+=this.getRawStyle(e.error,e),n+="}\n\n"),e.active&&(n+=i+".qux-active {\n",n+=this.getRawStyle(e.active,e),n+="}\n\n"),B(e)&&(n+=i+"::placeholder {\n",n+=" color: ".concat(this.getPlaceHolderColor(o.color),";\n"),n+="}\n\n")),n+=this.getBreakpoints(i,e),t&&t.animation&&t.animation.ScreenLoaded){var r=t.animation.ScreenLoaded;if(e.id in r.widgets){var a=r.widgets[e.id];a&&(n+=this.getAnimation(a,i,e,t))}if(e.isGroup&&e.groupId in r.groups){var s=r.groups[e.groupId];s&&(n+=this.getAnimation(s,i,e,t))}}return n}},{key:"getBreakpoints",value:function(e,t){var n="";if(t.props.breakpoints){u.log(-1,"CSSFactory.getBreakpoints()",t.name);var o=t.props.breakpoints;o.mobile||(n+="@media only screen and (min-width: ".concat(this.responsive.mobile.min,"px) and (max-width: ").concat(this.responsive.mobile.max,"px) {\n"),n+=" ".concat(e," {\n"),n+=" display: none;\n",n+=" }\n",n+="}\n\n"),o.tablet||(n+="@media only screen and (min-width: ".concat(this.responsive.tablet.min,"px) and (max-width: ").concat(this.responsive.tablet.max,"px) {\n"),n+=" ".concat(e," {\n"),n+=" display: none;\n",n+=" }\n",n+="}\n\n"),o.desktop||(n+="@media only screen and (min-width: ".concat(this.responsive.desktop.min,"px) and (max-width: ").concat(this.responsive.desktop.max,"px) {\n"),n+=" ".concat(e," {\n"),n+=" display: none;\n",n+=" }\n",n+="}\n\n")}return n}},{key:"getAnimation",value:function(e,t,n){var o="",i=e.delay+e.duration,r=Math.round(e.delay/i*100),a="".concat(n.id,"-anim-load"),s=e.easing?this.getEasing(e.easing):"linear";return"fadeIn"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { opacity:0; }\n",o+=" ".concat(r,"% { opacity: 0;}\n"),o+=" 100% { opacity: 1;}\n",o+="}\n\n"),"fadeOut"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { opacity:1; }\n",o+=" ".concat(r,"% { opacity: 1;}\n"),o+=" 100% { opacity: 0;}\n",o+="}\n\n"),"zoomIn"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform:scale(0, 0); transform-origin: 50% 50%;}\n",o+=" ".concat(r,"% { transform:scale(0, 0); transform-origin: 50% 50%;}\n"),o+=" 100% { transform:scale(1, 1); transform-origin: 50% 50%;}\n",o+="}\n\n"),"fadeOut"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { opacity:1; }\n",o+=" ".concat(r,"% {opacity: 1;}\n"),o+=" 100% {opacity: 0;}\n",o+="}\n\n"),"growRight"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform:scale(0, 1); transform-origin: top left;}\n",o+=" ".concat(r,"% { transform:scale(0, 1); transform-origin: top left;}\n"),o+=" 100% { transform:scale(1, 1); transform-origin: top left;}\n",o+="}\n\n"),"growLeft"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform:scale(0, 1); transform-origin: top right;}\n",o+=" ".concat(r,"% {transform:scale(0, 1); transform-origin: top right;}\n"),o+=" 100% { transform:scale(1, 1); transform-origin: top right;}\n",o+="}\n\n"),"growUp"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform:scale(1, 0); transform-origin: bottom right;}\n",o+=" ".concat(r,"% {transform:scale(1, 0); transform-origin: bottom right;}\n"),o+=" 100% { transform:scale(1, 1); transform-origin: bottom right;}\n",o+="}\n\n"),"growDown"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform:scale(1, 0); transform-origin: top right;}\n",o+=" ".concat(r,"% {transform:scale(1, 0); transform-origin: top right;}\n"),o+=" 100% { transform:scale(1, 1); transform-origin: top right;}\n",o+="}\n\n"),"slideRight"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform: translateX(-1000px) }\n",o+=" ".concat(r,"% { transform: translateX(-1000px); }\n"),o+=" 100% { transform:translateX(0); }\n",o+="}\n\n"),"slideLeft"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform: translateX(1000px) }\n",o+=" ".concat(r,"% { transform: translateX(1000px); }\n"),o+=" 100% {transform:translateX(0); }\n",o+="}\n\n"),"slideDown"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform: translateY(-1000px) }\n",o+=" ".concat(r,"% { transform: translateY(-1000px); }\n"),o+=" 100% {transform:translateY(0); }\n",o+="}\n\n"),"slideUp"===e.type&&(o+="@keyframes ".concat(a,"{\n"),o+=" 0% { transform: translateY(1000px) }\n",o+=" ".concat(r,"% { transform: translateY(1000px); }\n"),o+=" 100% {transform:translateY(0); }\n",o+="}\n\n"),o+=t+" {\n",o+=" animation-fill-mode: forwards;\n",o+=" animation-name:".concat(a,";\n"),o+=" animation-duration:".concat(i,"ms;\n"),o+=" animation-timing-function:".concat(s,";\n"),o+="}\n\n",o}},{key:"getEasing",value:function(e){return this.easingMapping[e]}},{key:"getPosition",value:function(e){return this.positionFactory.getPostion(e)}},{key:"getStyleByKey",value:function(e,t,n){var o=this,i="";return n.forEach((function(t){if(void 0!==e[t]&&null!==e[t]){var n=e[t];i+=" "+o.getKey(t)+": "+o.getValue(t,n)+";\n"}})),i}},{key:"getRawStyle",value:function(e,t){var n=this.getStyleByKey(e,t,Object.keys(this.mapping));return n+=this.getBackGround(e,t),n}},{key:"getPlaceHolderColor",value:function(e){if(e){var t=zt(e);return t.a=.5,Nt(t)}return"rgba(0, 0, 0, 0.5)"}},{key:"getBackGround",value:function(e,t){var n="";if(e.background&&!0!==e.overlay)if(e.background.colors)if(e.background.radial){var o=e.background,i=o.colors.map((function(e){return e.c+" "+e.p+"%"})).join(", ");n+=" background: radial-gradient(circle, ".concat(i,");\n")}else{for(var r=e.background,a="("+r.direction+"deg",s=0;s<r.colors.length;s++){var c=r.colors[s];a+=","+c.c+" "+c.p+"% "}a+=")",n+=" background: linear-gradient".concat(a,";\n")}else n+=" background-color: ".concat(e.background,";\n");if(e.backgroundColor&&(n+=" background-color: ".concat(e.backgroundColor,";\n")),e.backgroundImage&&e.backgroundImage.url){if(0===e.backgroundImage.url.indexOf("http")?n+=" background-image: url(".concat(e.backgroundImage.url,");\n"):n+=" background-image: url(".concat(this.imagePrefix,"/").concat(e.backgroundImage.url,");\n"),e.backgroundSize?n+=" background-size: ".concat(e.backgroundSize,"%;\n"):n+=" background-size: 100%;\n",e.backgroundPosition){var l=e.backgroundPosition,u=Math.round(l.left*t.w),d=Math.round(l.top*t.h);n+=" background-position: ".concat(u,"px ").concat(d,"px;\n")}else n+=" background-position: 0px 0px;\n";n+=" background-repeat: no-repeat;\n"}return n}},{key:"getKey",value:function(e){return this.mapping[e]}},{key:"getValue",value:function(e,t){var n="";return"fontFamily"===e?n+=this.escapeFontFamily(t):this.isPixel[e]?n+=t+"px":"boxShadow"===e?(n=t.h+"px "+t.v+"px "+t.b+"px "+t.s+"px "+t.c,t.i&&(n+="inset")):"textShadow"===e?n=t.h+"px "+t.v+"px "+t.b+"px "+t.c:n+=t,n}},{key:"escapeFontFamily",value:function(e){return e.split(",").map((function(e){return e.indexOf(" ")>=0?'"'+e+'"':e})).join(", ")}},{key:"clone",value:function(e){if(!e)return null;var t=JSON.stringify(e);return JSON.parse(t)}},{key:"getFixedHeight",value:function(e){return this.positionFactory.getFixedHeight(e)}},{key:"getWrappedWidth",value:function(e){return this.positionFactory.getWrappedWidth(e)}},{key:"getCorrectedHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return this.positionFactory.getCorrectedHeight(e,t,n)}},{key:"getCorrectedWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return this.positionFactory.getCorrectedWidth(e,t,n)}},{key:"hasAllwaysFixedHeight",value:function(e){return"Icon"===e.type}}]),e}();function bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function xo(e,t,n){return t&&vo(e.prototype,t),n&&vo(e,n),e}var ko=function(){function e(){bo(this,e),this.styleElement={}}return xo(e,[{key:"write",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=document.head||document.getElementsByTagName("head")[0];this.styleElement[t]&&(u.log(5,"CSSWriter.write() > Clean up old"),n.removeChild(this.styleElement[t]));var o=document.createElement("style");o.type="text/css",o.qux=!0,o.setAttribute("qux",t),o.appendChild(document.createTextNode(e)),n.appendChild(o),this.styleElement[t]=o}}]),e}(),Co=new ko,wo=n("8bbf"),So=n.n(wo),qo={key:0,class:"qux-common-label"},Oo={key:1,class:"qux-common-label"},Bo={key:0,class:"qux-common-label"},jo={key:1,class:"qux-common-label"};function Po(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("router-link");return e.hasLink?(Object(wo["openBlock"])(),Object(wo["createBlock"])(a,{key:0,class:Object(wo["normalizeClass"])(["qux-button",e.cssClass]),to:e.link,onClick:e.onClick},{default:Object(wo["withCtx"])((function(){return[e.dataBindingLabel&&!e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",qo,Object(wo["toDisplayString"])(e.dataBindingLabel),1)):Object(wo["createCommentVNode"])("",!0),e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Oo,[Object(wo["renderSlot"])(e.$slots,"default")])):Object(wo["createCommentVNode"])("",!0)]})),_:3},8,["class","to","onClick"])):(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{key:1,class:Object(wo["normalizeClass"])(["qux-button",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},[e.dataBindingLabel&&!e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Bo,Object(wo["toDisplayString"])(e.dataBindingLabel),1)):Object(wo["createCommentVNode"])("",!0),e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",jo,[Object(wo["renderSlot"])(e.$slots,"default")])):Object(wo["createCommentVNode"])("",!0)],2))}var Fo={class:"qux-base"};function To(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",Fo,Object(wo["toDisplayString"])(r.label),1)}function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Do(e,t,n){return t&&Ro(e.prototype,t),n&&Ro(e,n),e}var Mo=function(){function e(){Eo(this,e)}return Do(e,[{key:"get",value:function(e,t){if(null!=e&&void 0!=e){if(null!==e[t]&&void 0!==e[t])return e[t];if(t.indexOf(".")>=0||t.indexOf("[")>=0){var n=this.getJsonPath(t),o=n.shift(),i=e[o];while(null!=o&&void 0!=o&&null!==i&&void 0!=i&&n.length>0)o=n.shift(),i=i[o];return i}}}},{key:"set",value:function(e,t,n){var o=this.getJsonPath(t),i=o.shift(),r=e,a=0;while(null!==i&&void 0!==i&&a<100)a++,o.length>0?(r[i]||(o[0].toLowerCase?this._set(r,i,{}):this._set(r,i,[])),r=r[i],i=o.shift()):this._set(r,i,n);return e}},{key:"_set",value:function(e,t,n){e[t]=n}},{key:"getJsonPath",value:function(e){return e.split(".").flatMap((function(e){if(e.indexOf("[")>=0){var t=e.split("[");if(2==t.length){var n=t[0],o=1*t[1].substring(0,t[1].length-1);return[n,o]}return 1*e.substring(1,e.length-1)}return e}))}},{key:"has",value:function(e,t){if(null!=e&&void 0!=e){if(null!=e[t]&&null!=e[t])return!0;if(t.indexOf(".")>=0||t.indexOf("[")>=0){var n=this.getJsonPath(t),o=n.shift(),i=e[o];while(null!=o&&void 0!=o&&null!==i&&void 0!=i&&n.length>0)o=n.shift(),i=i[o];return void 0!==i&&null!==i}return!1}return!1}}]),e}(),Lo=new Mo,Io={name:"_Base",emits:["update:modelValue","qClick","click","qChange","change","qKeyPress","qFocus","qBlur","qDesignSystemCallback","qScrollTop"],props:{model:{type:Object},element:{type:Object},config:{type:Object},value:{},lbl:{type:String},url:{type:String},optionList:{type:Array},isStandAlone:{type:Boolean}},inject:["viewModel"],data:function(){return{hasLabelInOptions:!0}},computed:{isDesignSystemRoot:function(){return this.element&&this.element.isDesignSystemRoot},hasSlot:function(){return void 0!==this.$slots.default&&null!==this.$slots.default},hasLink:function(){var e=this;if(this.url&&this.url.length>0)return!0;if(this.element&&this.element.lines&&this.element.lines){var t=this.element.lines.find((function(t){return e.isClick(t)}));if(t){var n=je(t.to,this.model);if("Screen"===n.type&&!n.style.overlay)return!0}}return!1},hasHistoryRouter:function(){return!0===this.config.isHistoryRouter},link:function(){var e=this;if(this.url)return this.url;if(this.element&&this.element.lines&&1===this.element.lines.length){var t=this.element.lines.find((function(t){return e.isClick(t)}));if(t){var n=je(t.to,this.model);if("Screen"===n.type){var o="";return this.config&&this.config.router&&this.config.router.prefix&&(o=this.config.router.prefix+"/"),this.hasHistoryRouter,"/".concat(o).concat(n.name,".html")}}}return!1},hasAction:function(){return this.element&&this.element.actions&&Object.values(this.element.actions).length>0||this.element.lines&&this.element.lines.length>0||this.element.props.callbacks&&this.element.props.callbacks.click},label:function(){if(this.lbl)return this.lbl;if(this.dataBindingInputPath&&0===this.dataBindingInputPath.indexOf("$")){var e=this.getDesignSystemRoot(),t=this.dataBindingInputPath.substring(1);if(e&&e[t])return e[t]}return this.element&&this.element.props&&this.element.props.label?this.escapeLabel(this.element.props.label):""},cssComponentClasses:function(){return this.element&&this.element.cssComponentClasses?this.element.cssComponentClasses.join(" "):""},cssClass:function(){var e="qux-element ";if(this.element){if(this.element.style&&this.element.style.verticalAlign&&(e+="qux-valign-".concat(this.element.style.verticalAlign," ")),this.hasAction&&(e+="qux-action "),this.config&&this.config.debug&&!0===this.config.debug.resize&&this.element.props&&this.element.props.resize){var t=this.element.props.resize;for(var n in t)t[n]&&(e+="qux-resize-".concat(n," "))}this.element.sharedCssClasses&&(e+=this.element.sharedCssClasses.join(" ")+" "),e+=this.element.cssClass}return e},dataBinding:function(){return this.element&&this.element.props&&this.element.props.databinding?this.element.props.databinding:null},dataBindingInput:function(){if(this.element&&this.element.props&&this.element.props.databinding){var e=this.element.props.databinding.default;if(e){var t=Lo.get(this.viewModel,e);return u.log(5,"_Base.dataBindingInput() > "+e,'"'.concat(t,'"')),t}}return null},dataBindingOptions:function(){if(this.element&&this.element.props&&this.element.props.databinding){var e=this.element.props.databinding.options;if(e){var t=Lo.get(this.viewModel,e);return u.log(5,"_Base.dataBindingOptions() > "+e,'"'.concat(t,'"')),t}}return null},dataBindingInputPath:function(){if(this.element&&this.element.props&&this.element.props.databinding){var e=this.element.props.databinding.default;return e}return""},dataBindingOutputPath:function(){if(this.element&&this.element.props&&this.element.props.databinding){var e=this.element.props.databinding.output;return e}return""},dataBindingLabel:function(){if(this.lbl)return this.lbl;if(this.hasDataBinding)if(this.dataBindingInputPath&&0===this.dataBindingInputPath.indexOf("$")){u.log(4,"_Base.dataBindingLabel() > props : ",'"'.concat(this.dataBindingInputPath,'"'));var e=this.getDesignSystemRoot();if(e){var t=this.dataBindingInputPath.substring(1);if(e[t])return e[t]}}else{var n=this.dataBindingInput;if(void 0!==n&&null!=n)return u.log(6,"_Base.dataBindingLabel() > ",'"'.concat(n,'"')),n}return this.element&&this.element.props&&this.element.props.label?this.escapeLabel(this.element.props.label):""},hasError:function(){return!1},options:function(){if(this.optionList)return this.optionList;var e=this.dataBindingOptions;if(e)return e;if(this.element&&this.element.props&&this.element.props.options){var t=this.element.props.options;return this.element.props.label&&this.hasLabelInOptions&&t.unshift(this.element.props.label),t}return[]}},watch:{},methods:{stopEvent:function(e){u.warn("_Base.stopEvent()"),e&&e.stopPropagation()},getDesignSystemRoot:function(){var e=this.$parent;while(e&&e.element&&!e.element.isDesignSystemRoot)e=e.$parent;if(e.element&&e.element.isDesignSystemRoot)return e},escapeLabel:function(e){return e=e.replace(/ /gi," "),e},isClick:function(e){return e.event="click"},hasDataBinding:function(){return this.element&&this.element.props&&this.element.props.databinding},onClick:function(e){this.$emit("qClick",this.element,e,this.getValue()),this.$emit("click",e),this.checkDesignSystemCallback(e,"click"),this.fireParentDomEvent("click",e)},fireParentDomEvent:function(e,t){this.element&&this.element.isDesignSystemRoot&&this.$parent.$emit(e,t)},onChange:function(e){this.$emit("qChange",this.element,e,this.getValue()),this.checkDesignSystemCallback(e,"change"),this.fireParentDomEvent("change",e)},onKeyPress:function(e){this.$emit("qKeyPress",this.element,e,this.getValue()),this.checkDesignSystemCallback(e,"change"),this.fireParentDomEvent("keyPress",e)},onFocus:function(e){this.$emit("qFocus",this.element,e),this.fireParentDomEvent("focus",e)},onBlur:function(e){this.$emit("qBlur",this.element,e),this.fireParentDomEvent("blur",e)},onMouseOver:function(e){this.$emit("qMouseOver",this.element,e)},onMouseOut:function(e){this.$emit("qMouseOut",this.element,e)},checkDesignSystemCallback:function(e,t){if(u.log(4,"_Base.checkDesignSystemCallback() > : "+t,this.element),this.element&&this.element.props&&this.element.props.callbacks){var n=this.element.props.callbacks[t];n&&(u.log(1,"_Base.checkDesignSystemCallback() > : "+this.element.name,t,n),this.$emit("qDesignSystemCallback",this.element,e,t,n,this.getValue()),this.emitDesignSystemCallback())}},forwardDesignSystemCallback:function(e,t,n,o,i){u.log(5,"_Base.forwardDesignSystemCallback() > : "+this.element.name,e.name),this.$emit("qDesignSystemCallback",e,t,n,o,i),this.emitDesignSystemCallback(e,t,n,o,i)},emitDesignSystemCallback:function(e,t,n,o){this.element.isDesignSystemRoot&&this.$parent&&(u.log(1,"_Base.emitDesignSystemCallback() > : "+this.element.name,o,this.viewModel),this.$parent.$emit(o,this.viewModel,t))},getValue:function(){return this.dataBindingInput},onValueChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;if(u.log(3,"_Base.onValueChange() > change : "+this.element.name,e),this.element&&this.element.props&&this.element.props.databinding){var o=this.element.props.databinding[t];if(o&&void 0!=this.viewModel&&!0!==this.viewModel&&!1!==this.viewModel)try{u.log(4,"_Base.onValueChange() > change : "+o,e),Lo.set(this.viewModel,o,e)}catch(i){u.error("_Base.onValueChange() > Could not set value in path"+o,this.viewModel)}}this.$emit("qChange",this.element,n,e),this.element.isDesignSystemRoot&&this.$parent&&(this.$parent.$emit("update:modelValue",e),this.$parent.$emit("change",e))}}},Vo=n("d959"),Ao=n.n(Vo);const zo=Ao()(Io,[["render",To]]);var No=zo,_o={name:"qButton",mixins:[No],data:function(){return{}},mounted:function(){}};n("760f");const Wo=Ao()(_o,[["render",Po]]);var Ho=Wo,Qo=["innerHTML"],Uo={key:1,class:"qux-common-label"},$o={key:2,class:"qux-common-label"},Ko=["innerHTML"],Go={key:1,class:"qux-common-label"},Xo={key:2,class:"qux-common-label"};function Yo(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("router-link");return e.hasLink?(Object(wo["openBlock"])(),Object(wo["createBlock"])(a,{key:0,class:Object(wo["normalizeClass"])(["qux-label",e.cssClass]),onClick:e.onClick,to:e.link},{default:Object(wo["withCtx"])((function(){return[e.dataBindingLabel&&"richtext"===e.dataBindingLabel.type?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:0,class:"qux-richtext",innerHTML:e.dataBindingLabel.value},null,8,Qo)):e.dataBindingLabel&&!e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Uo,Object(wo["toDisplayString"])(e.dataBindingLabel),1)):Object(wo["createCommentVNode"])("",!0),e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",$o,[Object(wo["renderSlot"])(e.$slots,"default")])):Object(wo["createCommentVNode"])("",!0)]})),_:3},8,["class","onClick","to"])):(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("label",{key:1,class:Object(wo["normalizeClass"])(["qux-label",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},[r.isRichText?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:0,class:"qux-richtext",innerHTML:e.dataBindingLabel.value},null,8,Ko)):e.dataBindingLabel&&!e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Go,Object(wo["toDisplayString"])(e.dataBindingLabel),1)):Object(wo["createCommentVNode"])("",!0),e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Xo,[Object(wo["renderSlot"])(e.$slots,"default")])):Object(wo["createCommentVNode"])("",!0)],2))}var Jo={name:"qLabel",mixins:[No],data:function(){return{}},computed:{isRichText:function(){var e=this.dataBindingLabel;return!(!e||"richtext"!==e.type)}},mounted:function(){}};n("39c2");const Zo=Ao()(Jo,[["render",Yo]]);var ei=Zo;function ti(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{class:Object(wo["normalizeClass"])(["qux-icon",e.cssClass,r.icon]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},null,2)}var ni={name:"qIcon",mixins:[No],data:function(){return{}},computed:{icon:function(){return this.element.style.icon}},mounted:function(){}};n("04c7");const oi=Ao()(ni,[["render",ti]]);var ii=oi,ri=["placeholder","type","value"];function ai(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("input",{class:Object(wo["normalizeClass"])(["qux-textbox qux-text-input",e.cssClass]),placeholder:r.placeholder,type:r.type,onFocus:t[0]||(t[0]=function(){return e.onFocus&&e.onFocus.apply(e,arguments)}),onBlur:t[1]||(t[1]=function(){return e.onBlur&&e.onBlur.apply(e,arguments)}),onClick:t[2]||(t[2]=function(){return e.onClick&&e.onClick.apply(e,arguments)}),onChange:t[3]||(t[3]=function(){return e.onChange&&e.onChange.apply(e,arguments)}),onKeyup:t[4]||(t[4]=function(){return r.onKeyPress&&r.onKeyPress.apply(r,arguments)}),value:r.selectedValue},null,42,ri)}var si={name:"qTestBox",mixins:[No],data:function(){return{}},computed:{type:function(){return this.element&&"Password"===this.element.type?"password":"text"},placeholder:function(){return this.element&&this.element.props&&this.element.props.placeholder?this.element.props.label:""},selectedValue:function(){if(this.element&&this.element.isDesignSystemRoot)return this.value;if(this.element){var e=this.dataBindingInput;if(e&&!e.toLowerCase&&isNaN(e))try{e=JSON.stringify(e)}catch(t){u.warn("TextBox.selectedValue() > Can stringify ",e)}return e}return""}},methods:{onKeyPress:function(e){var t=e.target.value;this.onValueChange(t,"default"),this.$emit("qKeyPress",this.element,e,t),u.log(6,"qTextBox.onKeyPress() > exit",t)},setFocus:function(){u.log(0,"qTextBox.setFocus() > enter"),this.$el&&this.$el.focus()}},mounted:function(){u.log(5,"qTextBox.mounted() enter"),this.element&&this.element.props&&this.element.props.focus&&setTimeout(this.setFocus,100)}};n("435a");const ci=Ao()(si,[["render",ai]]);var li=ci;function ui(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-container",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},[e.element?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])(wo["Fragment"],{key:0},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.element.children,(function(t){return Object(wo["openBlock"])(),Object(wo["createBlock"])(Object(wo["resolveDynamicComponent"])(t.qtype),{key:t.id,element:t,model:e.model,config:e.config,onQDesignSystemCallback:e.forwardDesignSystemCallback,onQCallback:r.forwardCallback,onQClick:r.forwardClick,onQChange:r.forwardChange,onQKeyPress:r.forwardKeyPress,onQFocus:r.forwardFocus,onQBlur:r.forwardBlur,onQMouseOver:r.forwardMouseOver,onQMouseOut:r.forwardMouseOut},null,8,["element","model","config","onQDesignSystemCallback","onQCallback","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])})),128)),e.element.fixedChildren?(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],{key:0},Object(wo["renderList"])(e.element.fixedChildren,(function(t){return Object(wo["openBlock"])(),Object(wo["createBlock"])(Object(wo["resolveDynamicComponent"])(t.qtype),{key:t.id,element:t,model:e.model,config:e.config,onQDesignSystemCallback:e.forwardDesignSystemCallback,onQCallback:r.forwardCallback,onQClick:r.forwardClick,onQChange:r.forwardChange,onQKeyPress:r.forwardKeyPress,onQFocus:r.forwardFocus,onQBlur:r.forwardBlur,onQMouseOver:r.forwardMouseOver,onQMouseOut:r.forwardMouseOut},null,8,["element","model","config","onQDesignSystemCallback","onQCallback","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])})),128)):Object(wo["createCommentVNode"])("",!0)],64)):Object(wo["renderSlot"])(e.$slots,"default",{key:1})],2)}var di={name:"qContainer",mixins:[No],data:function(){return{debug:!1}},computed:{justifyContent:function(){return!(!T(this.element)||!this.config.css.justifyContentInWrapper)},wrapperPlaceHolders:function(){return[1,2,3,4,5,6,7,8]}},methods:{forwardClick:function(e,t,n){this.$emit("qClick",e,t,n)},forwardChange:function(e,t,n){this.$emit("qChange",e,t,n)},forwardFocus:function(e,t,n){this.$emit("qFocus",e,t,n)},forwardBlur:function(e,t,n){this.$emit("qBlur",e,t,n)},forwardMouseOver:function(e,t,n){this.$emit("qMouseOver",e,t,n)},forwardMouseOut:function(e,t,n){this.$emit("qMouseOut",e,t,n)},forwardKeyPress:function(e,t,n){this.$emit("qKeyPress",e,t,n)},forwardCallback:function(e,t,n){this.$emit("qCallback",e,t,n)}},mounted:function(){}};n("0393");const hi=Ao()(di,[["render",ui]]);var pi=hi;function fi(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-repeater",e.cssClass])},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.rows,(function(t,n){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{key:n,class:"qux-repeater-child"},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.element.children,(function(o){return Object(wo["openBlock"])(),Object(wo["createBlock"])(Object(wo["resolveDynamicComponent"])(o.qtype),{key:o.id,element:r.getDeepCopy(o,t,n),model:e.model,config:e.config,onQClick:function(e){return r.forwardClick(n,e)},onQChange:r.forwardChange,onQKeyPress:r.forwardKeyPress,onQFocus:r.forwardFocus,onQBlur:r.forwardBlur,onQMouseOver:r.forwardMouseOver,onQMouseOut:r.forwardMouseOut},null,8,["element","model","config","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])})),128))])})),128)),(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.placeholders,(function(e,t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{key:"p"+t,class:"qux-repeater-child qux-repeater-placeholder",style:{height:"0px",margin:"0px"}})})),128))],2)}function gi(e){return gi="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},gi(e)}var mi={name:"qRepeater",mixins:[No],data:function(){return{debug:!1}},computed:{placeholders:function(){return x(this.element)?[]:[1,2,3,4,5,6,7]},rows:function(){if(!(this.element&&this.element.props&&this.element.props.databinding))return this.getRowsFromTable(this.element);var e=this.element.props.databinding.default,t=Lo.get(this.value,e);return u.log(5,"Repeater.rows() > exit path: > "+e,t),Array.isArray(t)?t:(u.warn("Repeater.rows() > Value is no array: > "+e,this.value),[])}},methods:{getDeepCopy:function(e,t,n){u.log(4,"Repeater.getDeepCopy() > exit : > "+n,t);var o=this.clone(e),i=this.dataBindingInputPath;return this.updateDataBinding(o,n,i,!0),o},clone:function(e){if(null===e||"object"!==gi(e)||"isActiveClone"in e)return e;var t=e.constructor();for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&("parent"!==n?(e["isActiveClone"]=null,t[n]=this.clone(e[n]),delete e["isActiveClone"]):t[n]=e[n]);return t},updateDataBinding:function(e,t,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];u.log(5,"Repeater.updateDataBinding() > enter : > "+t,e.name+" @ "+n),e.children&&e.children.length>0?e.children.forEach((function(e){o.updateDataBindingKeys(e,t,n),o.updateDataBinding(e,t,n)})):i&&(u.log(5,"Repeater.updateDataBinding() > No wrapper children : > "+t,e.name+" @ "+n),this.updateDataBindingKeys(e,t,n))},updateDataBindingKeys:function(e,t,n){if(e&&e.props&&e.props.databinding){var o=e.props.databinding;for(var i in o){var r=o[i];0===r.indexOf(n)&&(r=r.substring(n.length)),0===r.indexOf("[0]")&&(r=r.substring(3)),0===r.indexOf(".")&&(r=r.substring(1)),o[i]="".concat(n,"[").concat(t,"].").concat(r),u.log(2,"Repeater.updateDataBindingKeys() > exit : > "+o[i])}}},forwardClick:function(e,t,n){var o=this.dataBindingInputPath?Lo.get(this.value,"".concat(this.dataBindingInputPath,"[").concat(e,"]")):null;t.lines&&t.lines.length>0&&this.dataBindingOutputPath&&this.dataBindingInputPath&&o&&(u.log(3,"qRepeater.forwardClick() > Update databidning"+this.dataBindingOutputPath,o),Lo.set(this.value,this.dataBindingOutputPath,o)),u.log(5,"qRepeater.forwardClick() ",JSON.stringify(o)),this.$emit("qClick",t,n,o)},forwardChange:function(e,t,n){this.$emit("qChange",e,t,n)},forwardFocus:function(e,t,n){this.$emit("qFocus",e,t,n)},forwardBlur:function(e,t,n){this.$emit("qBlur",e,t,n)},forwardMouseOver:function(e,t,n){this.$emit("qMouseOver",e,t,n)},forwardMouseOut:function(e,t,n){this.$emit("qMouseOut",e,t,n)},forwardKeyPress:function(e,t,n){this.$emit("qKeyPress",e,t,n)},forwardCallback:function(e,t,n){this.$emit("qCallback",e,t,n)},getRowsFromTable:function(e){var t=[];if(e.props.data&&e.props.data.length>1){var n=e.props.data;this.dataBindingValues=[];for(var o=e.props.data[0],i=1;i<n.length;i++){for(var r={},a=0;a<o.length;a++){var s=o[a];r[s]=n[i][a]}t.push(r)}}return t}},mounted:function(){u.log(3,"Repeater.mounted() > enter",this.element)}};n("764c");const yi=Ao()(mi,[["render",fi]]);var bi=yi;function vi(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-image",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},null,2)}var xi={name:"qImage",mixins:[No],data:function(){return{}},mounted:function(){u.log(0,"qImage.mounted()")}};n("ac19");const ki=Ao()(xi,[["render",vi]]);var Ci=ki,wi=Object(wo["createElementVNode"])("div",{class:"qux-checkbox-cntr"},[Object(wo["createElementVNode"])("span",{class:"qux-checkbox-hook"})],-1),Si={key:0,class:"qux-checkbox-label"};function qi(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-checkbox",e.cssClass,{"qux-checkbox-checked":r.isChecked}]),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)})},[wi,e.label?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Si,Object(wo["toDisplayString"])(e.label),1)):Object(wo["createCommentVNode"])("",!0)],2)}var Oi={name:"qCheckBox",mixins:[No],data:function(){return{checked:!1}},computed:{isChecked:function(){if(this.isDesignSystemRoot)return this.value;if(this.element){var e=this.dataBindingInput;return!0===e}return this.checked}},methods:{toggle:function(){if(this.element){var e=!this.isChecked;this.onValueChange(e,"default"),u.log(-1,"qCheckBox.toggle() >"+this.dataBindingInputPath,e)}else this.checked=!this.checked,this.$emit("change",this.checked),this.$emit("update:modelValue",this.checked),u.log(-1,"qCheckBox.toggle() >"+this.checked)}},watch:{value:function(e){u.log(5,"qCheckBox.watch(value) > enter",e),!1!==e&&!0!==e||(this.checked=e)}},mounted:function(){u.log(5,"qCheckBox.mounted() enter"),!0!==this.value&&!0!==this.value||(this.checked=this.value)}};n("2919");const Bi=Ao()(Oi,[["render",qi]]);var ji=Bi;function Pi(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("CheckBox");return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-checkgroup",e.cssClass])},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.checkBoxOptions,(function(e){return Object(wo["openBlock"])(),Object(wo["createBlock"])(a,{key:e.value,lbl:e.label,value:r.isChecked(e.value),onChange:function(t){return r.select(e.value)}},null,8,["lbl","value","onChange"])})),128))],2)}var Fi={name:"qCheckBoxGroup",mixins:[No],data:function(){return{selected:[]}},components:{CheckBox:ji},computed:{checkBoxOptions:function(){return this.element?this.options.map((function(e){return e.toLowerCase?{label:e,value:e}:e})):[]}},methods:{isChecked:function(e){u.log(5,"qCheckBoxGroup.isChecked() >"+this.dataBindingInputPath,e);var t=this.dataBindingInput;return!(!t||!Array.isArray(t))&&t.indexOf(e)>-1},select:function(e){var t=this.dataBindingInput;if(t){if(Array.isArray(t)){var n=t.indexOf(e);n<0?t.push(e):t=t.filter((function(t){return t!==e}))}}else t=[e];this.onValueChange(t,"default"),u.log(5,"qCheckBoxGroup.select() >"+this.dataBindingInputPath,t)}},mounted:function(){u.log(5,"qCheckBoxGroup.mounted() enter")}};n("54ca");const Ti=Ao()(Fi,[["render",Pi]]);var Ei=Ti,Ri=Object(wo["createElementVNode"])("div",{class:"qux-radiobox-cntr"},[Object(wo["createElementVNode"])("span",{class:"qux-radiobox-hook"})],-1),Di={key:0,class:"qux-radiobox-label"};function Mi(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-radiobox",e.cssClass,{"qux-radiobox-checked":r.isChecked}]),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)})},[Ri,e.label?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Di,Object(wo["toDisplayString"])(e.label),1)):Object(wo["createCommentVNode"])("",!0)],2)}var Li={name:"qRadio",mixins:[No],data:function(){return{checked:!1}},computed:{isChecked:function(){if(this.isDesignSystemRoot)return this.value===this.element.name;if(this.element){var e=this.dataBindingInput;return e===this.element.name}return u.log(5,"qRadioBox.isChecked() >"+this.lbl,this.checked),this.checked}},methods:{toggle:function(){if(this.element){var e=this.isChecked?null:this.element.name;this.onValueChange(e,"default"),u.log(5,"qRadioBox.toggle() >"+this.dataBindingInputPath,e)}else this.checked=!this.checked,this.$emit("change",this.checked),this.$emit("update:modelValue",this.checked),u.log(5,"qRadioBox.toggle() >"+this.checked)}},watch:{value:function(e){u.log(5,"qRadioBox.watch(value) > enter "+this.lbl,e),!1!==e&&!0!==e||(this.checked=e)}},mounted:function(){u.log(5,"qRadioBox.mounted() enter"),!0!==this.value&&!0!==this.value||(this.checked=this.value)}};n("fa41");const Ii=Ao()(Li,[["render",Mi]]);var Vi=Ii;function Ai(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("RadioBox");return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-radiogroup",e.cssClass])},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.options,(function(e){return Object(wo["openBlock"])(),Object(wo["createBlock"])(a,{key:e,lbl:e,value:r.isChecked(e),onChange:function(t){return r.select(e)}},null,8,["lbl","value","onChange"])})),128))],2)}var zi={name:"qRadioGroup",mixins:[No],data:function(){return{selected:null}},components:{RadioBox:Vi},methods:{isChecked:function(e){var t=this.dataBindingInput;return u.log(5,"qRadioGroup.isChecked() >"+e,t),!!t&&t===e},select:function(e,t){this.onValueChange(e,"default"),this.onClick(t),u.log(5,"qRadioGroup.select() >"+this.dataBindingInputPath,e)}},mounted:function(){u.log(5,"qRadioGroup.mounted() enter")}};n("b16e");const Ni=Ao()(zi,[["render",Ai]]);var _i=Ni,Wi={class:"qux-common-label"};function Hi(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-toggle",e.cssClass,{"qux-active":r.isActive}]),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)})},[Object(wo["createElementVNode"])("span",Wi,Object(wo["toDisplayString"])(e.label),1)],2)}var Qi={name:"qToggle",mixins:[No],data:function(){return{active:!1}},computed:{isActive:function(){if(this.element){var e=this.dataBindingInput;return!0===e}return this.active}},methods:{toggle:function(){if(this.element){var e=!this.isActive;this.onValueChange(e,"default"),u.log(5,"qToggle.toggle() >"+this.dataBindingInputPath,e)}else this.active=!this.active,this.$emit("change",this.active),this.$emit("update:modelValue",this.active),u.log(5,"qToggle.toggle() >"+this.active)}},watch:{value:function(e){u.log(5,"qToggle.watch(value) > enter",e),!1!==e&&!0!==e||(this.active=e),this.value=e}},mounted:function(){u.log(5,"qToggle.mounted() enter"),!0!==this.value&&!0!==this.value||(this.active=this.value)}};n("ec79");const Ui=Ao()(Qi,[["render",Hi]]);var $i=Ui,Ki=Object(wo["createElementVNode"])("div",{class:"qux-switch-on"},null,-1),Gi=Object(wo["createElementVNode"])("div",{class:"qux-switch-off"},null,-1),Xi=[Ki,Gi],Yi=Object(wo["createElementVNode"])("div",{class:"qux-switch-handle"},null,-1);function Ji(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-switch",e.cssClass,{"qux-active":r.isActive}]),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)})},[Object(wo["createElementVNode"])("div",{class:Object(wo["normalizeClass"])(["qux-switch-cntr",{"qux-switch-cntr-thin":r.isThin}])},Xi,2),Yi],2)}var Zi={name:"qSwitch",mixins:[No],data:function(){return{active:!1}},computed:{isThin:function(){return!(!this.element||"MatcWidgetTypeSwitchThin"!==this.element.style.cssClass)},isActive:function(){if(this.element){var e=this.dataBindingInput;return u.log(1,"qSwitch.isActive() >"+this.dataBindingInputPath,e),!0===e}return this.active}},methods:{toggle:function(e){if(this.element){var t=!this.isActive;this.onValueChange(t,"default"),this.onClick(e),u.log(5,"qSwitch.toggle() >"+this.dataBindingInputPath,t)}else this.active=!this.active,this.$emit("change",this.active),this.$emit("update:modelValue",this.active),u.log(5,"qSwitch.toggle() >"+this.active)}},watch:{value:function(e){u.log(5,"qSwitch.watch(value) > enter",e),!1!==e&&!0!==e||(this.active=e),this.value=e}},mounted:function(){u.log(5,"qSwitch.mounted() enter"),!0!==this.value&&!0!==this.value||(this.active=this.value)}};n("04be");const er=Ao()(Zi,[["render",Ji]]);var tr=er,nr={class:"qux-dropdown-label"},or={class:"qux-common-label qux-dropdown-label"},ir=Object(wo["createElementVNode"])("div",{class:"qux-dropdown-expend"},[Object(wo["createElementVNode"])("span",{class:"qux-dropdown-carret"})],-1),rr={key:0,class:"qux-dropdown-popup"},ar=["onMousedown"];function sr(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-dropdown",e.cssClass,{"qux-error":e.hasError},{"qux-open":e.isOpen},{"qux-dropdown-mobile":r.isMobile}]),onClick:t[0]||(t[0]=function(){return r.open&&r.open.apply(r,arguments)})},[Object(wo["createElementVNode"])("div",nr,[Object(wo["createElementVNode"])("span",or,Object(wo["toDisplayString"])(r.selectOption),1),ir]),e.isOpen?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",rr,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.dropDownOption,(function(e){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:e.label,class:"qux-dropdown-item",onMousedown:Object(wo["withModifiers"])((function(t){return r.select(e)}),["stop"])},Object(wo["toDisplayString"])(e.label),41,ar)})),128))])):Object(wo["createCommentVNode"])("",!0)],2)}var cr={class:"qux-dnd"};function lr(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",cr)}var ur={name:"_DND",props:{},computed:{},methods:{on:function(e,t,n){if(e&&e.toLowerCase&&(e=document.getElementById(e)),e&&e.addEventListener)return e.addEventListener(t,n),{callback:n,node:e,event:t,remove:function(){this.node.removeEventListener(this.event,this.callback)}};u.warn("_DNDN.on() > Pass a node of valid id")},body:function(){return document.getElementsByTagName("BODY")[0]},position:function(e){var t=e.getBoundingClientRect();return t={x:t.left,y:t.top,w:t.right-t.left,h:t.bottom-t.top},t},mouse:function(e){var t={x:0,y:0};return e&&(e.touches&&e.touches.length>0?(e=e.touches[0],t.x=e.clientX,t.y=e.clientY):e.changedTouches&&e.changedTouches.length>0?(e=e.changedTouches[0],t.x=e.clientX,t.y=e.clientY):(t.x=e.pageX,t.y=e.pageY)),t},startDND:function(e,t,n){var o=this;this._dndStartPos=this.mouse(e),this._dndMouseUpListener=this.on(this.body(),"mouseup",(function(e){o.endDND(e,n)})),this._dndMouseMoveListener=this.on(this.body(),"mousemove",(function(e){o.moveDND(e,t)}))},moveDND:function(e,t){if(t)try{var n=this.mouse(e),o=this.getMouseDelta(this._dndStartPos,n);t(o,e)}catch(i){u.error("_DND.moveDND()",i),this.cleanDND()}},endDND:function(e,t){if(t)try{var n=this.mouse(e),o=this.getMouseDelta(this._dndStartPos,n);t(o,e)}catch(i){u.error("_DND.endDND()",i)}this.cleanDND()},getMouseDelta:function(e,t){return{x:t.x-e.x,y:t.y-e.y}},cleanDND:function(){this._dndMouseUpListener&&(this._dndMouseUpListener.remove(),delete this._dndMouseUpListener),this._dndMouseMoveListener&&(this._dndMouseMoveListener.remove(),delete this._dndMouseMoveListener),delete this._dndStartPos}},destroyed:function(){this.cleanDND()}};const dr=Ao()(ur,[["render",lr]]);var hr=dr,pr={name:"qDropDown",mixins:[No,hr],data:function(){return{isOpen:!1,selected:null,hasLabelInOptions:!0}},computed:{isMobile:function(){if(this.element&&"MobileDropDown"===this.element.type)return!0;var e=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(e)||/android/i.test(e)},dropDownOption:function(){return this.element?this.options.map((function(e){return e.toLowerCase||"number"===typeof e?{label:e,value:e}:e})):[]},selectOption:function(){if(this.isDesignSystemRoot)return this.value;if(this.element){var e=this.dataBindingInput;if(e){var t=this.options.find((function(t){return t.value===e}));return t?t.label:e}var n=this.options[0];return n.label?n.label:n}return this.selected}},methods:{open:function(){u.log(5,"qDropDown.open()"),this.isOpen=!this.isOpen,this.isOpen&&(this._bodyListener=this.on(this.body(),"mousedown",this.close))},close:function(){u.log(5,"qDropDown.close()"),this.isOpen=!1,this._bodyListener&&this._bodyListener.remove()},select:function(e){u.log(5,"qDropDown.select()",e),this.element?(this.onValueChange(e.value,"default"),u.log(5,"qDropDown.toggle() >"+this.dataBindingInputPath,e.value)):(this.selected=e.value,this.$emit("change",this.selected),this.$emit("update:modelValue",this.selected),u.log(5,"qSwitch.select() >"+this.selected)),this.close()}},watch:{},unmounted:function(){this.close()},mounted:function(){u.log(5,"qDropDown.mounted() enter")}};n("1c90");const fr=Ao()(pr,[["render",sr]]);var gr=fr,mr=["placeholder","type","value"];function yr(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("textarea",{class:Object(wo["normalizeClass"])(["qux-textarea qux-text-input",e.cssClass]),placeholder:r.placeholder,type:r.type,onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)}),onChange:t[1]||(t[1]=function(){return e.onChange&&e.onChange.apply(e,arguments)}),onKeyup:t[2]||(t[2]=function(){return r.onKeyPress&&r.onKeyPress.apply(r,arguments)}),value:e.dataBindingInput},null,42,mr)}var br={name:"qTestBox",mixins:[No],data:function(){return{}},computed:{type:function(){return this.element&&"Password"===this.element.type?"password":"text"},placeholder:function(){return this.element&&this.element.props&&this.element.props.placeholder?this.element.props.label:""}},methods:{onKeyPress:function(e){var t=e.target.value;this.onValueChange(t,"default"),this.$emit("qKeyPress",this.element,e),u.log(3,"qTextBox.onKeyPress() > exit",t)}},mounted:function(){u.log(5,"qTextBox.mounted() enter")}};n("3ea0");const vr=Ao()(br,[["render",yr]]);var xr=vr,kr=Object(wo["createElementVNode"])("span",{class:"qux-stepper-label"},"-",-1),Cr=[kr],wr=Object(wo["createElementVNode"])("span",{class:"qux-stepper-label"}," + ",-1),Sr=[wr];function qr(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-stepper qux-common-no-select",e.cssClass])},[Object(wo["createElementVNode"])("div",{class:"qux-stepper-btn qux-stepper-minus",onClick:t[0]||(t[0]=function(){return r.onMinus&&r.onMinus.apply(r,arguments)})},Cr),Object(wo["createElementVNode"])("div",{class:"qux-stepper-btn qux-stepper-plus",onClick:t[1]||(t[1]=function(){return r.onPlus&&r.onPlus.apply(r,arguments)})},Sr)],2)}var Or={name:"qStepper",mixins:[No],data:function(){return{count:0}},methods:{getCount:function(){if(this.element){var e=this.dataBindingInput;if(!isNaN(e))return e}return this.count},onMinus:function(e){var t=this.getCount();this.count=t-1,this.change(),this.onClick(e)},onPlus:function(e){var t=this.getCount();this.count=t+1,this.change(),this.onClick(e)},change:function(){this.element?this.onValueChange(this.count,"default"):(this.$emit("change",this.count),this.$emit("update:modelValue",this.count))}},mounted:function(){this.element&&this.element.props&&this.element.props.value&&(this.count=this.element.props.value)}};n("0974");const Br=Ao()(Or,[["render",qr]]);var jr=Br,Pr={class:"qux-slider-track"},Fr={class:"qux-slider-handle-cntr"};function Tr(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-slider",e.cssClass]),onClick:t[1]||(t[1]=function(){return r.onSliderClick&&r.onSliderClick.apply(r,arguments)})},[Object(wo["createElementVNode"])("div",Pr,[Object(wo["createElementVNode"])("div",{class:"qux-slider-progress",style:Object(wo["normalizeStyle"])({width:r.progress+"%"})},null,4)]),Object(wo["createElementVNode"])("div",Fr,[Object(wo["createElementVNode"])("div",{class:"qux-slider-handle",style:Object(wo["normalizeStyle"])({left:r.left}),onMousedown:t[0]||(t[0]=function(){return r.onHandleDown&&r.onHandleDown.apply(r,arguments)})},null,36)])],2)}var Er={name:"qSlider",mixins:[No,hr],data:function(){return{count:0}},computed:{domPos:function(){return this.position(this.$el)},handleWidth:function(){return this.element?this.element.style.handleWidth:40},minValue:function(){return this.element&&this.element.props?this.element.props.min:0},maxValue:function(){return this.element&&this.element.props?this.element.props.max:100},left:function(){var e=this.handleWidth/2,t=this.sliderValue/(this.maxValue-this.minValue);return t=Math.min(1,t),t=Math.max(0,t),"calc(".concat(100*t,"% - ").concat(e,"px)")},progress:function(){return this.sliderValue},sliderValue:function(){if(this.element){var e=this.dataBindingInput;if(!isNaN(e))return e}return this.count}},methods:{onSliderClick:function(e){this.setByMouse(e),this.onClick(e)},onHandleDown:function(e){var t=this;this.startDND(e,(function(e,n){return t.setByMouse(n)}))},setByMouse:function(e){var t=this.domPos,n=this.mouse(e),o=(n.x-t.x)/t.w;o=Math.min(1,o),o=Math.max(0,o);var i=(this.maxValue-this.minValue)*o;this.onChange(i)},onChange:function(e){this.count=Math.round(e),this.element?(this.onValueChange(this.count,"default"),this.$emit("qChange",this.element,null,this.count)):(this.$emit("change",this.count),this.$emit("update:modelValue",this.count)),u.log(5,"qSlider.onChange() exit > ",this.count)}},mounted:function(){this.element&&this.element.props&&this.element.props.value&&(this.count=this.element.props.value)}};n("8bd9");const Rr=Ao()(Er,[["render",Tr]]);var Dr=Rr,Mr={class:"qux-date-header"},Lr={class:"qux-common-valign-center"},Ir={class:"qux-date-header-label"},Vr={class:"qux-common-valign-center"},Ar={class:"qux-common-valign-center"},zr={class:"qux-date-body"},Nr=["onClick"];function _r(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-date",e.cssClass]),onClick:t[2]||(t[2]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},[Object(wo["createElementVNode"])("div",Mr,[Object(wo["createElementVNode"])("div",{class:"qux-date-header-btn",onClick:t[0]||(t[0]=Object(wo["withModifiers"])((function(){return r.onBack&&r.onBack.apply(r,arguments)}),["stop"]))},[Object(wo["createElementVNode"])("span",Lr,Object(wo["toDisplayString"])(r.backLabel),1)]),Object(wo["createElementVNode"])("div",Ir,[Object(wo["createElementVNode"])("span",Vr,Object(wo["toDisplayString"])(r.dateLabel),1)]),Object(wo["createElementVNode"])("div",{class:"qux-date-header-btn",onClick:t[1]||(t[1]=Object(wo["withModifiers"])((function(){return r.onNext&&r.onNext.apply(r,arguments)}),["stop"]))},[Object(wo["createElementVNode"])("span",Ar,Object(wo["toDisplayString"])(r.nextLabel),1)])]),Object(wo["createElementVNode"])("div",zr,[Object(wo["createElementVNode"])("table",null,[Object(wo["createElementVNode"])("tbody",null,[Object(wo["createElementVNode"])("tr",null,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.day_names,(function(e){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("th",{key:e,class:"qux-date-week-days"},Object(wo["toDisplayString"])(e),1)})),128))]),(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.body,(function(e,t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("tr",{key:t},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e,(function(e,t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("td",{key:t,onClick:Object(wo["withModifiers"])((function(t){return r.onSelect(e)}),["stop"]),class:Object(wo["normalizeClass"])([e.css,{"qux-date-weekend":e.weekend},{"qux-date-workday":!e.weekend}])},Object(wo["toDisplayString"])(e.day),11,Nr)})),128))])})),128))])])])],2)}var Wr={name:"qDate",mixins:[No],props:["range"],data:function(){return{isRange:!1,selected:new Date,viewDate:new Date,day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:["January","February","March","April","May","June","July","August","September","October","November","December"]}},computed:{backLabel:function(){return this.element&&this.element.props.lastButtonLbl?"<":"-"},nextLabel:function(){return this.element&&this.element.props.nextButtonLbl?">":"+"},dateLabel:function(){return this.month_names[this.viewDate.getMonth()]+" "+this.viewDate.getFullYear()},selectedDate:function(){if(this.element){var e=this.dataBindingInput;if(e)return e.start&&e.end&&(e.start.toLowerCase&&(e.start=Date.parse(e.start)),e.end.toLowerCase&&(e.end=Date.parse(e.end))),e.toLowerCase&&(e=Date.parse(e)),e}return this.selected},body:function(){for(var e=this.viewDate.getFullYear(),t=this.viewDate.getMonth(),n=new Date(e,t,1),o=n.getDay(),i=[],r=[],a=0;a<35;a++){a%7==0&&(i=[],r.push(i));var s={day:"",year:e,month:t,weekend:!1};if(i.push(s),a-o>=0){s.day=a-o+1+"";var c=new Date(e,t,s.day);c.getMonth()!=t&&(s.day="")}a%7!=0&&a%7!=6||(s.weekend=!0),s.css=this.getSelectedCSS(s)}return r}},methods:{getSelectedCSS:function(e){if(this.isRange){if(this.selected.start){var t=this.selected.start;if(e.year===t.getFullYear()&&e.month===t.getMonth()&&e.day==t.getDate())return"qux-date-range-start"}if(this.selected.end){var n=this.selected.end;if(e.year===n.getFullYear()&&e.month===n.getMonth()&&e.day==n.getDate())return"qux-date-range-end"}if(this.selected.start&&this.selected.end){var o=this.getMillis(e),i=this.selected.start.getTime(),r=this.selected.end.getTime();if(i<o&&o<r)return"qux-date-range-middle"}}else{var a=this.selected;if(e.year===a.getFullYear()&&e.month===a.getMonth()&&e.day==a.getDate())return"qux-date-selected"}return""},getMillis:function(e){return new Date(e.year,e.month,e.day).getTime()},onBack:function(){var e=this.viewDate,t=e.getDay(),n=e.getMonth(),o=e.getFullYear();n--,n<0&&(n=11,o--),this.setView(o,n,t)},onNext:function(){var e=this.viewDate,t=e.getDay(),n=e.getMonth(),o=e.getFullYear();n++,n>11&&(n=0,o++),this.setView(o,n,t)},setView:function(e,t,n){this.viewDate=new Date(e,t,n)},onSelect:function(e){if(this.isRange){if(this.selected.end)this.selected.start=new Date(e.year,e.month,e.day),this.selected.end=null;else if(this.selected.end=new Date(e.year,e.month,e.day),this.selected.start>this.selected.end){var t=this.selected.start;this.selected.start=this.selected.end,this.selected.end=t}this.selected.end&&(u.log(5,"qDate.select() > range : ",this.selected),this.element?this.onValueChange({start:this.toIsoString(this.selected.start),end:this.toIsoString(this.selected.end)},"default"):(this.$emit("change",this.selected),this.$emit("update:modelValue",this.selected)))}else""!==e.day&&(this.selected=new Date(e.year,e.month,e.day),u.log(5,"qDate.select() > date : ",this.selected),this.element?this.onValueChange(this.toIsoString(this.selected),"default"):(this.$emit("change",this.selected),this.$emit("update:modelValue",this.selected)))},toIsoString:function(e){if(e){var t=e.getMonth()+1;t<10&&(t="0"+t);var n=e.getDate();return n<10&&(n="0"+n),"".concat(e.getFullYear(),"-").concat(t,"-").concat(n)}return null}},watch:{},mounted:function(){this.element&&(this.isRange=this.element.props.range),!0===this.range&&(this.isRange=!0),this.isRange&&(this.selected={start:new Date,end:new Date((new Date).getTime()+3456e5)}),!this.element&&this.value&&(u.log(5,"qDate.mounted() standalone"),this.selected=this.value,this.value.start?(this.selected={start:this.value.start,end:this.value.end},this.viewDate=this.selected.start):this.viewDate=this.value),u.log(0,"qDate.mounted() enter",this.element)}};n("ae03");const Hr=Ao()(Wr,[["render",_r]]);var Qr=Hr,Ur={class:"qux-date-picker-expend"},$r={key:1,class:"qux-date-picker-carret"};function Kr(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("qDate");return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-date-picker",e.cssClass,{"qux-error":e.hasError},{"qux-open":e.isOpen}]),onClick:t[2]||(t[2]=function(){return r.open&&r.open.apply(r,arguments)})},[Object(wo["createElementVNode"])("span",{class:Object(wo["normalizeClass"])(["qux-common-label",{"qux-common-placeholder":!r.hasValue}])},Object(wo["toDisplayString"])(r.selectedLabel),3),Object(wo["createElementVNode"])("div",Ur,[r.icon?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:0,class:Object(wo["normalizeClass"])(r.icon+" qux-date-picker-icon")},null,2)):(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",$r))]),e.isOpen?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{key:0,class:"qux-date-picker-popup",onClick:t[0]||(t[0]=Object(wo["withModifiers"])((function(){}),["stop"])),onMousedown:t[1]||(t[1]=Object(wo["withModifiers"])((function(){}),["stop"]))},[Object(wo["createVNode"])(a,{onChange:r.select,range:e.isRange,value:r.selectedDate},null,8,["onChange","range","value"])],32)):Object(wo["createCommentVNode"])("",!0)],2)}var Gr={name:"qDatePicker",mixins:[No,hr],data:function(){return{isRange:!1,isOpen:!1,selected:null}},components:{qDate:Qr},computed:{icon:function(){return!(!this.element||!this.element.props.icon)&&this.element.props.icon},dropDownOption:function(){return this.element?this.options.map((function(e){return e.toLowerCase?{label:e,value:e}:e})):[]},selectedDate:function(){if(this.element){var e=this.dataBindingInput;if(e)return e}return this.selected},selectedLabel:function(){if(this.element){var e=this.dataBindingInput;if(e)return e.start&&e.end?this.toDateString(e.start)+" - "+this.toDateString(e.end):(e.toLowerCase&&(e=Date.parse(e)),this.toDateString(e))}return this.selected?this.selected.start&&this.selected.end?this.toDateString(this.selected.start)+" - "+this.toDateString(this.selected.end):this.toDateString(this.selected):this.label},hasValue:function(){if(this.element){var e=this.dataBindingInput;return null!==e&&void 0!==e}return null!==this.selected&&void 0!==this.selected}},methods:{open:function(){u.log(5,"qDatePicker.open()"),this.isOpen=!this.isOpen,this.isOpen&&(this._bodyListener=this.on(this.body(),"mousedown",this.close))},close:function(){u.log(5,"qDatePicker.close()"),this.isOpen=!1,this._bodyListener&&this._bodyListener.remove()},select:function(e){this.element?(this.onValueChange(e,"default"),u.log(5,"qDatePicker.toggle() >"+this.dataBindingInputPath,e)):(this.selected=e,this.$emit("change",this.selected),this.$emit("update:modelValue",this.selected),u.log(5,"qDatePicker.select() >",this.selected)),setTimeout(this.close,250)},toDateString:function(e){return e&&e.toLocaleDateString?e.toLocaleDateString():""}},watch:{},unmounted:function(){this.close()},mounted:function(){this.element&&(this.isRange=this.element.props.range),!0===this.range&&(this.isRange=!0),u.log(5,"qDatePicker.mounted() enter",this.element)}};n("c151");const Xr=Ao()(Gr,[["render",Kr]]);var Yr=Xr,Jr=["onClick"],Zr={class:"qux-segment-item-label"};function ea(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-segment",e.cssClass])},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.segmentOptions,(function(e){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-segment-item",{"qux-segment-item-selected":r.isChecked(e)}]),key:e.value,onClick:function(t){return r.select(e)}},[Object(wo["createElementVNode"])("span",Zr,Object(wo["toDisplayString"])(e.label),1)],10,Jr)})),128))],2)}var ta={name:"qStepper",mixins:[No],data:function(){return{selected:null}},computed:{segmentOptions:function(){return this.element?this.options.map((function(e){return e.toLowerCase?{label:e,value:e}:e})):[]},isMultiSelect:function(){return!!this.element&&this.element.props.multi}},methods:{isChecked:function(e){var t=this.dataBindingInput;return!!t&&(this.isMultiSelect?(u.log(5,"qSegmentButton.isChecked() > Mutli : "+e.value,t),t.indexOf(e.value)>=0):(u.log(5,"qSegmentButton.isChecked() > Single : "+e.value,t),t===e.value))},select:function(e){var t=e.value;if(this.isMultiSelect){var n=this.dataBindingInput;if(n){Array.isArray(n)||(n=[n]);var o=n.indexOf(t);o<0?n.push(t):n=n.filter((function(t){return t!==e}))}else n=[t];this.onValueChange(n,"default"),u.log(5,"qSegmentButton.select() > Single: "+this.dataBindingInputPath)}else this.onValueChange(t,"default"),u.log(5,"qSegmentButton.select() > Single: "+this.dataBindingInputPath,t)}},mounted:function(){}};n("fc9f");const na=Ao()(ta,[["render",ea]]);var oa=na,ia=["onClick"];function ra(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-rating",e.cssClass])},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.ratingOptions,(function(e){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{class:Object(wo["normalizeClass"])(["qux-rating-icon"]),onClick:function(t){return r.select(e)},key:e},[Object(wo["createElementVNode"])("span",{class:Object(wo["normalizeClass"])(r.getIcon(e))},null,2)],8,ia)})),128))],2)}var aa={name:"qRadioGroup",mixins:[No],data:function(){return{selected:null,ratingOptions:[1,2,3,4,5]}},methods:{getIcon:function(e){var t=this.dataBindingInput;return u.log(5,"qRating.isChecked() >"+e,t),t&&t>=e?"mdi mdi-star":"mdi mdi-star-outline"},select:function(e){this.onValueChange(e,"default"),u.log(5,"qRating.select() >"+this.dataBindingInputPath,e)}},mounted:function(){u.log(5,"qRating.mounted() enter")}};n("783a");const sa=Ao()(aa,[["render",ra]]);var ca=sa,la={key:0,class:"qux-icon-toggle-label"};function ua(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-icon-toggle",e.cssClass,{"qux-icon-toggle-selected":r.isSelected}]),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)})},[Object(wo["createElementVNode"])("span",{class:Object(wo["normalizeClass"])(["qux-icon",r.icon])},null,2),e.label?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",la,Object(wo["toDisplayString"])(e.label),1)):Object(wo["createCommentVNode"])("",!0)],2)}var da={name:"qIconToggle",mixins:[No],data:function(){return{checked:!1}},computed:{isSelected:function(){if(this.element){var e=this.dataBindingInput;return e}return this.checked},icon:function(){if(this.element){var e=this.dataBindingInput;return e?this.element.props.activeIcon:this.element.props.passiveIcon}return""}},methods:{toggle:function(){if(this.element){var e=!this.isSelected;this.onValueChange(e,"default"),u.log(1,"qIconToggle.toggle() >"+this.dataBindingInputPath,e)}else this.checked=!this.checked,this.$emit("change",this.checked),this.$emit("update:modelValue",this.checked),u.log(5,"qIconToggle.toggle() >"+this.checked)}},mounted:function(){}};n("3f27");const ha=Ao()(da,[["render",ua]]);var pa=ha,fa=["placeholder"],ga={key:0,class:"qux-combo-popup"},ma=["onMousedown"];function ya(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-combo",e.cssClass,{"qux-error":e.hasError},{"qux-open":e.isOpen}])},[Object(wo["withDirectives"])(Object(wo["createElementVNode"])("input",{class:"qux-combo-input",onKeyup:t[0]||(t[0]=function(){return r.onKeyPress&&r.onKeyPress.apply(r,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.inputValue=t}),placeholder:r.placeholder,onChange:t[2]||(t[2]=function(){return r.onInputChange&&r.onInputChange.apply(r,arguments)}),onBlur:t[3]||(t[3]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),ref:"comboInput"},null,40,fa),[[wo["vModelText"],e.inputValue]]),e.isOpen&&e.matches.length>0?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",ga,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.matches,(function(t,n){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:t.label,class:Object(wo["normalizeClass"])(["qux-combo-item",{"qux-combo-item-selected":n===e.selectedIndex}]),onMousedown:Object(wo["withModifiers"])((function(e){return r.select(t)}),["stop"])},Object(wo["toDisplayString"])(t.label),43,ma)})),128))])):Object(wo["createCommentVNode"])("",!0)],2)}var ba={name:"qCombo",mixins:[No,hr],data:function(){return{inputValue:"",isOpen:!1,selected:null,matches:[],selectedIndex:-1}},computed:{placeholder:function(){return this.element&&this.element.props&&this.element.props.placeholder?this.element.props.label:""},hints:function(){return this.options.map((function(e){return e.toLowerCase?{label:e,value:e}:e}))},selectOption:function(){if(this.element){var e=this.dataBindingInput;return e||this.options[0]}return this.selected}},methods:{onKeyPress:function(e){if(this.inputValue.length>2){var t=this.inputValue.toLowerCase();this.matches=this.hints.filter((function(e){return e.label.toLowerCase().indexOf(t)>=0})),this.matches.length>0&&(this.open(),this.handleArrows(e))}else this.close()},handleArrows:function(e){var t=e.which||e.keyCode;if(40!=t){if(38!=t)return 27==t?(this.onInputChange(),void this.close()):13==t?(u.log(-5,"qCombo.handleArrows()",this.selectedIndex,this.matches),this.selectedIndex>=0&&this.selectedIndex<this.matches.length?void this.select(this.matches[this.selectedIndex]):(this.onInputChange(),void this.close())):void(this.selectedIndex=-1);this.selectedIndex=Math.max(-1,this.selectedIndex-1)}else this.selectedIndex=Math.min(this.matches.length,this.selectedIndex+1)},blur:function(){this.$refs.comboInput&&this.$refs.comboInput.blur()},onBlur:function(){this.onInputChange(),this.close()},open:function(){u.log(5,"qCombo.open()"),this.isOpen=!0,this.isOpen&&(this._bodyListener=this.on(this.body(),"mousedown",this.close))},close:function(){u.log(-5,"qCombo.close()"),this.isOpen=!1,this.selectedIndex=-1,this._bodyListener&&this._bodyListener.remove()},onInputChange:function(){u.log(-5,"qCombo.onInputChange()",this.inputValue),this.element?this.onValueChange(this.inputValue,"default"):(this.selected=this.inputValue,this.$emit("change",this.selected),this.$emit("input",this.selected))},select:function(e){u.log(-5,"qCombo.select()",e.value),this.element?(this.onValueChange(e.value,"default"),u.log(5,"qCombo.toggle() >"+this.dataBindingInputPath,e.value)):(this.selected=e.value,this.$emit("change",this.selected),this.$emit("input",this.selected),u.log(5,"qCombo.select() >"+this.selected)),this.inputValue=e.label,this.close()}},watch:{},destroyed:function(){this.close()},mounted:function(){u.log(1,"qCombo.mounted() enter",this.value),this.element||(this.inputValue=this.value)}};n("dbbf");const va=Ao()(ba,[["render",ya]]);var xa=va,ka=["onClick"],Ca={key:0,class:"mdi mdi-chevron-down"},wa={key:1,class:"mdi mdi-chevron-up"},Sa={key:0,class:"qux-table-cell"},qa={key:1,class:"qux-table-action-cntr"},Oa=["onClick"];function Ba(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("CheckBox");return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-table",e.cssClass])},[Object(wo["createElementVNode"])("table",null,[Object(wo["createElementVNode"])("thead",null,[Object(wo["createElementVNode"])("tr",null,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.columns,(function(t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("th",{key:t.id,class:Object(wo["normalizeClass"])("qux-table-cell qux-table-column-"+t.id),onClick:function(e){return r.sortBy(t)}},[Object(wo["createTextVNode"])(Object(wo["toDisplayString"])(t.label)+" ",1),e.sortColumn.id==t.id&&"asc"===e.sortOrder?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Ca)):Object(wo["createCommentVNode"])("",!0),e.sortColumn.id==t.id&&"asc"!==e.sortOrder?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",wa)):Object(wo["createCommentVNode"])("",!0)],10,ka)})),128))])]),Object(wo["createElementVNode"])("tbody",null,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.sortedRows,(function(e){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("tr",{key:e.id,class:"qux-table-row"},[r.hasCheckBox?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("td",Sa,[Object(wo["createVNode"])(a,{value:r.isRowSelected(e),onChange:function(t){return r.selectRow(e)}},null,8,["value","onChange"])])):Object(wo["createCommentVNode"])("",!0),(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.values,(function(e,t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("td",{key:t,class:"qux-table-cell"},Object(wo["toDisplayString"])(e),1)})),128)),r.hasActions?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("td",qa,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.actions,(function(t,n){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("a",{onClick:function(n){return r.onActionClick(t,e)},key:t.label,class:Object(wo["normalizeClass"])(["qux-table-action","qux-table-action-"+n,{"qux-table-action-hover":t.isHover}])},Object(wo["toDisplayString"])(t.label),11,Oa)})),128))])):Object(wo["createCommentVNode"])("",!0)])})),128))])])],2)}var ja={name:"qTable",mixins:[No],data:function(){return{selected:[],sortColumn:"",sortOrder:"arc"}},components:{CheckBox:ji},computed:{columns:function(){if(this.element){var e=[];if(this.element.props.columns&&this.element.props.columns.length>0)e=this.element.props.columns.map((function(e){return e.label}));else{var t=this.parseData(this.element.props.data);e=t[0]}var n=0;return this.hasCheckBox&&(e.unshift(""),n=1),this.hasActions&&e.push(""),e.map((function(e,t){return{id:t,label:e,key:t-n}}))}return[]},hasCheckBox:function(){return!!this.element&&!0===this.element.style.checkBox},hasActions:function(){return!!this.element&&(this.element.props.tableActions&&this.element.props.tableActions.length>0)},actions:function(){return this.element?this.element.props.tableActions:[]},sortedRows:function(){var e=this;if(this.sortColumn){var t=this.sortColumn.key,n=this.rows;return n.sort((function(n,o){var i=n.values[t],r=o.values[t];return i.localeCompare&&r.localeCompare?"asc"===e.sortOrder?i.localeCompare(r):r.localeCompare(i):"asc"===e.sortOrder?i-r:r-i}))}return this.rows},rows:function(){var e=this.dataBindingInput;if(e&&Array.isArray(e)){if(this.element&&this.element.props&&this.element.props.columns&&this.element.props.columns.length>0){var t=this.element.props.columns;return e.map((function(e,n){var o=t.map((function(t){return void 0!==e[t.databinding]?e[t.databinding]:""}));return{id:n,values:o,obj:e}}))}return e}if(this.element){var n=this.parseData(this.element.props.data);return n.filter((function(e,t){return t>0})).map((function(e,t){return{id:t,values:e,obj:e}}))}return[]}},methods:{sortBy:function(e){u.log(0,"qTable.sortBy() enter > ",e),this.sortColumn=e,"asc"===this.sortOrder?this.sortOrder="desc":this.sortOrder="asc"},onActionClick:function(e,t){u.log(5,"qTable.onActionClick() enter > "+e.label,t),this.$emit("qCallback",this.element,{callback:e.callback,params:t.obj})},selectRow:function(e){var t=this,n=this.selected.indexOf(e.id);n<0?this.selected.push(e.id):this.$delete(this.selected,n);var o=this.dataBinding;if(o.output){var i=this.rows.filter((function(e){return t.selected.indexOf(e.id)>=0})).map((function(e){return e.obj}));this.onValueChange(i,"output")}},isRowSelected:function(e){return this.selected.indexOf(e.id)>=0},parseData:function(e){if(e.substring){for(var t=[],n=e.split("\n"),o=0;o<n.length;o++){var i=n[o];t.push(i.split(","))}return t}return e}},mounted:function(){u.log(5,"qTable.mounted() enter")}};n("d63c");const Pa=Ao()(ja,[["render",Ba]]);var Fa=Pa,Ta={class:Object(wo["normalizeClass"])("qux-common-label")},Ea=["onClick"],Ra={class:Object(wo["normalizeClass"])("qux-common-label ")},Da={class:Object(wo["normalizeClass"])("qux-common-label ")};function Ma(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-paging qux-common-no-select",e.cssClass])},[r.hasBack?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:0,class:Object(wo["normalizeClass"])("qux-paging-item "+r.valign),onClick:t[0]||(t[0]=function(){return r.onBack&&r.onBack.apply(r,arguments)})},[Object(wo["createElementVNode"])("span",Ta,[Object(wo["createElementVNode"])("span",{class:Object(wo["normalizeClass"])(r.backIcon)},null,2)])],2)):Object(wo["createCommentVNode"])("",!0),(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.pages,(function(e){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{class:Object(wo["normalizeClass"])(["qux-paging-item",{"qux-paging-item-active":r.isChecked(e)},r.valign]),key:e.value,onClick:function(t){return r.onSelect(e)}},[Object(wo["createElementVNode"])("span",Ra,Object(wo["toDisplayString"])(e.label),1)],10,Ea)})),128)),r.hasNext?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:1,class:Object(wo["normalizeClass"])("qux-paging-item "+r.valign),onClick:t[1]||(t[1]=function(){return r.onNext&&r.onNext.apply(r,arguments)})},[Object(wo["createElementVNode"])("span",Da,[Object(wo["createElementVNode"])("span",{class:Object(wo["normalizeClass"])(r.nextIcon)},null,2)])],2)):Object(wo["createCommentVNode"])("",!0)],2)}var La={name:"qStepper",mixins:[No],data:function(){return{selected:0,offset:0}},computed:{selectedValue:function(){if(this.element){var e=this.dataBinding;if(e&&e.output)return Lo.get(this.value,e.output)}return this.selected},maxValue:function(){var e=this.dataBinding;return e&&e.elements?Lo.get(this.value,e.elements):this.element?this.element.props.max:0},hasBack:function(){return this.offset>0},backIcon:function(){return this.element?this.element.props.iconBack:""},nextIcon:function(){return this.element?this.element.props.iconNext:""},hasNext:function(){return this.numberofVisibleElements+this.offset<this.maxValue},numberofVisibleElements:function(){return this.element?this.getNumberOfVisibleElements(this.element,this.element.style,this.element.w):0},valign:function(){return this.element.style&&this.element.style.verticalAlign?"qux-valign-".concat(this.element.style.verticalAlign," "):""},pages:function(){for(var e=[],t=0;t<this.numberofVisibleElements;t++)e.push({value:this.offset+t,label:this.offset+t+1});return e}},methods:{onBack:function(){u.log(0,"QPaging","onBack"),this.offset-=this.numberofVisibleElements,this.offset<2&&(this.offset=0)},onNext:function(){u.log(0,"QPaging","onNext"),this.offset+=this.numberofVisibleElements,this.offset>this.maxValue-this.numberofVisibleElements&&(this.offset=this.maxValue-this.numberofVisibleElements)},onSelect:function(e){u.log(1,"QPaging","onSelect",e.value),this.onValueChange(e.value,"output"),this.selected=e.value},isChecked:function(e){return e.value===this.selectedValue},getNumberOfVisibleElements:function(e,t,n){var o=2*t.fontSize,i=Math.round(.9*n/o)-1;return i=Math.min(i,e.props.max),e.props.maxVisisble>1&&(i=Math.min(i,e.props.maxVisisble)),this.offset>0&&i--,i}},mounted:function(){u.log(3,"QPaging","mounted")}};n("ed76");const Ia=Ao()(La,[["render",Ma]]);var Va=Ia,Aa=["src"];function za(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-chart",e.cssClass,"qux-chart-"+r.chartType])},[Object(wo["createElementVNode"])("img",{src:r.chartImage},null,8,Aa)],2)}var Na={name:"qBarCHart",mixins:[No],data:function(){return{scaleFactor:1}},computed:{chartType:function(){return this.element?this.element.type:""},chartImage:function(){if(this.element){var e=this.render(this.element,this.element.style,this.chartData,this.chartValue);return e}return""},chartData:function(){var e=this.dataBindingInput;return e||(this.element&&this.element.props?this.element.props.data:[])},chartValue:function(){var e=this.dataBindingInput;return null!==e&&void 0!==e?e:this.element&&this.element.props?this.element.props.value:0}},methods:{render:function(e,t,n,o){if("BarChart"==e.type)return e.props.isHorizontal?this.renderHorizontal(e,t,n,o):e.props.isLine?this.renderLine(e,t,n,o):this.renderVertical(e,t,n,o);if("RingChart"==e.type)return this.renderRing(e,t,n,o);if("MultiRingChart"==e.type){var i=Math.round(Math.min(e.w,e.h)/2),r=Math.min(i,t.lineWidth*this.scaleFactor);return this.renderPie(e,t,n,r)}if("PieChart"==e.type){var a=Math.min(e.w,e.h)/2;return this.renderPie(e,t,n,a)}console.warn("render() > Not supported type : "+e.type)},renderRing:function(e,t,n,o){o>1&&(o/=100);var i=e.w*this.scaleFactor,r=e.h*this.scaleFactor,a=document.createElement("canvas");a.width=i,a.height=r;var s=Math.round(Math.min(i,r)/2),c=Math.min(s,t.lineWidth*this.scaleFactor),l=a.getContext("2d");l.beginPath();var u=this.degreesToRadians(360*o),d=this.degreesToRadians(360);return l.arc(s,s,s-c/2,u,d),l.strokeStyle=t.background,l.lineWidth=c,l.stroke(),l.beginPath(),u=this.degreesToRadians(0),d=this.degreesToRadians(360*o),l.arc(s,s,s-c/2,u,d),l.strokeStyle=t.color,l.lineWidth=c,l.stroke(),a.toDataURL("image/png")},renderPie:function(e,t,n,o){var i=e.w*this.scaleFactor,r=e.h*this.scaleFactor,a=document.createElement("canvas");a.width=i,a.height=r;for(var s=Math.round(Math.min(i,r)/2),c=n[0],l=0,u=0;u<c.length;u++)l+=1*c[u];for(var d=a.getContext("2d"),h=0,p=0;p<c.length;p++){var f=c[p],g=f/l+h;d.beginPath();var m=this.degreesToRadians(360*h),y=this.degreesToRadians(360*g);d.arc(s,s,s-o/2,m,y),t["background"+p]&&(d.strokeStyle=t["background"+p]),d.strokeStyle=t.color,d.lineWidth=o,d.stroke(),h+=f/l}return a.toDataURL("image/png")},degreesToRadians:function(e){return e*(Math.PI/180)-Math.PI/2},renderLine:function(e,t,n){n=this.flip(n);var o=e.w*this.scaleFactor,i=e.h*this.scaleFactor,r=document.createElement("canvas");r.width=o,r.height=i;for(var a=.5,s=r.getContext("2d"),c=0;c<n.length;c++){var l=n[c],u=Math.round(o/(l.length-1));s.beginPath();for(var d=0,h=0;h<l.length;h++){var p=l[h];d=i-Math.round(1*p/this.max*i),0==h?s.moveTo(a,d+a):s.lineTo(h*u+a,d+a)}e.has&&e.has.fill&&(s.lineTo(o+a,d+a),s.lineTo(o+a,i+a),s.lineTo(a,i+a),s.closePath()),t.lineWidth&&(s.lineWidth=t.lineWidth*this.scaleFactor),t["background"+c]&&(s.strokeStyle=t["background"+c],e.has&&e.has.fill&&(s.fillStyle=t["background"+c],s.fill())),s.stroke()}return r.toDataURL("image/png")},renderVertical:function(e,t,n){var o=e.w*this.scaleFactor,i=e.h*this.scaleFactor,r=document.createElement("canvas");r.width=o,r.height=i;for(var a=r.getContext("2d"),s=this.summary(n),c=o/s.groups,l=0;l<n.length;l++){var u=n[l],d=Math.floor(c/(u.length+1));100===d&&(d=50);for(var h=c*l+d/2,p=0;p<u.length;p++){var f=u[p],g=Math.round(i*(f/s.max)),m=Math.round(h+p*d);a.beginPath(),a.lineWidth="4",a.strokeStyle="green",t["background"+p]&&(a.fillStyle=t["background"+p]),a.fillRect(m,i-g,d,g),a.stroke()}}return r.toDataURL("image/png")},renderHorizontal:function(e,t,n){var o=e.w*this.scaleFactor,i=e.h*this.scaleFactor,r=document.createElement("canvas");r.width=o,r.height=i;for(var a=r.getContext("2d"),s=this.summary(n),c=o/s.groups,l=0;l<n.length;l++){var u=n[l],d=Math.floor(c/(u.length+1));100===d&&(d=50);for(var h=c*l+d/2,p=0;p<u.length;p++){var f=u[p],g=Math.round(i*(f/s.max)),m=Math.round(h+p*d);a.beginPath(),a.lineWidth="4",a.strokeStyle="green",t["background"+p]&&(a.fillStyle=t["background"+p]),a.fillRect(0,m,g,d),a.stroke()}}return r.toDataURL("image/png")},summary:function(e){for(var t={max:-1e7,groups:e.length},n=0;n<e.length;n++)for(var o=e[n],i=0;i<o.length;i++)t.max=Math.max(t.max,o[i]);return t},flip:function(e){this.max=-1e7,this.groups=0,this.count=0;for(var t=[],n=0;n<e.length;n++)for(var o=e[n],i=0;i<o.length;i++)t[i]||(t[i]=[]),t[i][n]=o[i],this.max=Math.max(this.max,o[i]),this.count++;return t},_setDataBindingValue:function(e){var t=this.model.props.data,n=this.model.props.value;if("ring"==this.type){var o=1*e;if(isNaN(o))return void console.warn("Chart._setDataBindingValue() > Wrong value for ring",e);n=o}else if("pie"===this.type)t=[this.objectToArray(e)];else{t=[];var i=this.objectToArray(e);for(var r in i){var a=this.objectToArray(i[r]);for(var s in a)t[s]||(t[s]=[]),t[s].push(a[s])}}this.renderChart(this.model,this.style,t,n),this.setValue(e)},objectToArray:function(e){var t=[];for(var n in e)t.push(e[n]);return t}},mounted:function(){}};n("a61b");const _a=Ao()(Na,[["render",za]]);var Wa=_a;function Ha(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-vector",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},null,2)}var Qa={name:"qVector",mixins:[No],data:function(){return{}},mounted:function(){u.log(4,"qVector.mounted()",this.element)}};n("6381");const Ua=Ao()(Qa,[["render",Ha]]);var $a=Ua,Ka=Object(wo["createElementVNode"])("div",{class:"qux-timeline-line"},null,-1),Ga=Object(wo["createElementVNode"])("div",{class:"qux-timeline-circle"},null,-1),Xa={class:"qux-timeline-label"};function Ya(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-timeline",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},[Ka,(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(e.options,(function(e){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-timeline-element",{"qux-timeline-element-selected":r.isChecked(e)}]),key:e},[Ga,Object(wo["createElementVNode"])("label",Xa,Object(wo["toDisplayString"])(e),1)],2)})),128))],2)}var Ja={name:"qTimeline",mixins:[No],data:function(){return{checked:!1}},computed:{},methods:{isChecked:function(e){if(this.element){var t=this.dataBindingInput;if(void 0!==t&&null!=t){if(isNaN(t))return t===e;var n=this.options[t];return n===e}if(this.element.props)return this.element.props.selected===e}return!1}},watch:{value:function(e){u.log(5,"qRadioBox.watch(value) > enter "+this.lbl,e),!1!==e&&!0!==e||(this.checked=e),this.value=e}},mounted:function(){u.log(5,"qRadioBox.mounted() enter"),!0!==this.value&&!0!==this.value||(this.checked=this.value)}};n("8efa");const Za=Ao()(Ja,[["render",Ya]]);var es=Za,ts={class:"qux-common-label"};function ns(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-upload",e.cssClass,{"qux-upload-has-files":r.hasFiles}])},[Object(wo["createElementVNode"])("span",ts,Object(wo["toDisplayString"])(r.label),1),Object(wo["createElementVNode"])("input",{type:"file",class:"MatcWidgetTypeUploadFile",ref:"input",onChange:t[0]||(t[0]=function(){return r.onFileChange&&r.onFileChange.apply(r,arguments)})},null,544)],2)}var os={name:"qUpload",mixins:[No],data:function(){return{}},components:{},computed:{hasFiles:function(){if(this.element){var e=this.dataBindingInput;if(e)return void 0!==e&&null!==e}return!1},label:function(){if(this.element){var e=this.dataBindingInput;if(e)return this.maxFiles>1&&Array.isArray(e)?e.map((function(e){return e.name})).join(", "):e.name}return this.element&&this.element.props?this.element.props.label:""},maxFiles:function(){return this.element&&this.element.props&&void 0!==this.element.props.maxFiles?this.element.props.maxFiles:1}},methods:{onFileChange:function(e){if(this.$refs.input){var t=this.$refs.input.files;t.length>=this.maxFiles&&this.setFiles(t,e)}},setFiles:function(e,t){if(u.log(1,"Upload.setFiles",e),this.element)if(1===this.maxFiles){var n=e[0];this.onValueChange(n,"default",t),u.log(5,"Upload.setFiles() >"+this.dataBindingInputPath,n)}else{var o=Array.from(e);this.onValueChange(o,"default",t),u.log(5,"Upload.setFiles(1) >"+this.dataBindingInputPath,o)}}}};n("5991");const is=Ao()(os,[["render",ns]]);var rs=is;function as(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-camera",e.cssClass,{"qux-camera-has-files":r.hasFiles}])},[Object(wo["createElementVNode"])("span",{class:Object(wo["normalizeClass"])([r.icon,"qux-camera-icon"])},null,2),Object(wo["createElementVNode"])("input",{type:"file",ref:"input",onChange:t[0]||(t[0]=function(){return r.onFileChange&&r.onFileChange.apply(r,arguments)}),accept:"image/*",capture:"user"},null,544)],2)}var ss={name:"qUpload",mixins:[No],data:function(){return{}},components:{},computed:{icon:function(){return this.element&&this.element.style&&this.element.style.icon?"mdi "+this.element.style.icon:""},hasFiles:function(){if(this.element){var e=this.dataBindingInput;if(e)return void 0!==e&&null!==e}return!1},maxFiles:function(){return this.element&&this.element.props&&void 0!==this.element.props.maxFiles?this.element.props.maxFiles:1}},methods:{onFileChange:function(e){if(this.$refs.input){var t=this.$refs.input.files;t.length>=this.maxFiles&&this.setFiles(t,e)}},setFiles:function(e,t){if(u.log(1,"Camera.setFiles",e),this.element){if(1===this.maxFiles){var n=e[0];this.onValueChange(n,"default",t),u.log(5,"Upload.setFiles() >"+this.dataBindingInputPath,n)}else{var o=Array.from(e);this.onValueChange(o,"default",t),u.log(5,"Upload.setFiles(1) >"+this.dataBindingInputPath,o)}this.onClick(t)}}}};n("32b2");const cs=Ao()(ss,[["render",as]]);var ls=cs;function us(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-upload-preview",e.cssClass,{"qux-upload-preview-border":r.hasBorder}]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)}),style:Object(wo["normalizeStyle"])({backgroundImage:r.src})},null,6)}var ds={name:"qUploadPreview",mixins:[No],data:function(){return{dataURL:"",placeholder:""}},computed:{hasBorder:function(){var e=this.dataBindingInput;return null===e||void 0===e},src:function(){var e=this.dataBindingInput;return e&&e.name&&e.size?(this.setFile(),this.dataURL):e&&e.url?"url(".concat(e.url,")"):e&&e.indexOf&&0===e.indexOf("http")?"url(".concat(e,")"):this.placeholder}},methods:{getImagePlaceHolder:function(e){var t=2*e.w,n=2*e.h,o=document.createElement("canvas"),i=o.getContext("2d");o.width=t,o.height=n,n+=.5,t+=.5;var r=.5;i.moveTo(r,r),i.lineTo(t,n),i.moveTo(t,r),i.lineTo(r,n),i.strokeStyle="#333",i.strokeWidth=2,i.imageSmoothingEnabled=!1,i.stroke();var a="url("+o.toDataURL("image/png")+")";return a},setFile:function(){var e=this;u.log(1,"qUploadPreview.setFile()");var t=this.dataBindingInput;if(t&&t.name&&t.size){var n=new FileReader;n.readAsDataURL&&(n.onload=function(){e.dataURL="url("+n.result+")"},n.readAsDataURL(t))}}},watch:{value:function(e){this.setFile(e)}},mounted:function(){u.log(4,"qUploadPreview.mounted()"),this.element&&(this.placeholder=this.getImagePlaceHolder(this.element)),this.setFile()}};n("0865");const hs=Ao()(ds,[["render",us]]);var ps=hs;function fs(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-children-toggle",e.cssClass,{"qux-active":r.isActive}]),onClick:t[1]||(t[1]=function(){return r.toggle&&r.toggle.apply(r,arguments)})},[r.isActive?(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],{key:0},Object(wo["renderList"])(e.element.children,(function(n){return Object(wo["openBlock"])(),Object(wo["createBlock"])(Object(wo["resolveDynamicComponent"])(n.qtype),{key:n.id,element:n,model:e.model,config:e.config,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.value=t}),onQDesignSystemCallback:r.forwardDesignSystemCallback,onQCallback:r.forwardCallback,onQClick:r.forwardClick,onQChange:r.forwardChange,onQKeyPress:r.forwardKeyPress,onQFocus:r.forwardFocus,onQBlur:r.forwardBlur,onQMouseOver:r.forwardMouseOver,onQMouseOut:r.forwardMouseOut},null,8,["element","model","config","modelValue","onQDesignSystemCallback","onQCallback","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])})),128)):Object(wo["createCommentVNode"])("",!0)],2)}var gs={name:"qChildrenToggle",mixins:[No],data:function(){return{active:!0}},computed:{isActive:function(){if(this.isDesignSystemRoot)return void 0===this.value?this.active:this.value;if(this.element){var e=this.dataBindingInput;return u.log(3,"qChildrenToggle.toggle() >"+this.dataBindingInputPath,e),!0===e}return this.active}},methods:{toggle:function(e){if(this.stopEvent(e),this.element){var t=!this.isActive;this.onValueChange(t,"default"),this.active=t,u.log(3,"qChildrenToggle.toggle() >"+this.dataBindingInputPath,t)}else this.active=!this.active,this.$emit("change",this.active),this.$emit("update:modelValue",this.active),u.log(5,"qChildrenToggle.toggle() >"+this.active)},forwardClick:function(e,t,n){this.$emit("qClick",e,t,n)},forwardChange:function(e,t,n){this.$emit("qChange",e,t,n)},forwardFocus:function(e,t,n){this.$emit("qFocus",e,t,n)},forwardBlur:function(e,t,n){this.$emit("qBlur",e,t,n)},forwardMouseOver:function(e,t,n){this.$emit("qMouseOver",e,t,n)},forwardMouseOut:function(e,t,n){this.$emit("qMouseOut",e,t,n)},forwardKeyPress:function(e,t,n){this.$emit("qKeyPress",e,t,n)},forwardCallback:function(e,t,n){this.$emit("qCallback",e,t,n)},forwardDesignSystemCallback:function(e,t,n,o){this.$emit("qDesignSystemCallback",e,t,n,o)}},watch:{value:function(e){u.log(-1,"qChildrenToggle.watch(value) > enter",e),!1!==e&&!0!==e||(this.active=e),this.value=e}},mounted:function(){u.log(-1,"qChildrenToggle.mounted() enter",this.value),!0!==this.value&&!0!==this.value||(this.active=this.value)}};n("9137");const ms=Ao()(gs,[["render",fs]]);var ys=ms,bs={class:"qux-common-label"},vs=Object(wo["createElementVNode"])("div",{class:"qux-spinner-border"},null,-1);function xs(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-spinner qux-noselect ",e.cssClass]),onMousedown:t[0]||(t[0]=function(){return r.onStartDnd&&r.onStartDnd.apply(r,arguments)})},[Object(wo["createElementVNode"])("div",{class:Object(wo["normalizeClass"])(["qux-spinner-option-cntr",{"qux-spinner-option-cntr-animated":e.isAnimating}]),style:Object(wo["normalizeStyle"])("top: "+r.top)},[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.visibleOption,(function(e,t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{key:t,class:Object(wo["normalizeClass"])(["qux-spinner-option qux-valign-middle",{"qux-spinner-option-selected":e.value===r.selectedValue}])},[Object(wo["createElementVNode"])("span",bs,Object(wo["toDisplayString"])(e.label),1)],2)})),128))],6),vs],34)}var ks={name:"qSpinner",mixins:[No,hr],data:function(){return{selected:0,offset:0,isAnimating:!1}},computed:{optionsAsKeyValue:function(){return this.element?this.options.map((function(e){return e.toLowerCase||"number"===typeof e?{label:e,value:e}:e})):[]},selectedIndex:function(){var e=this.selectedValue,t=this.optionsAsKeyValue,n=t.findIndex((function(t){return t.value===e}));return n},visibleOption:function(){if(this.element){for(var e=this.optionsAsKeyValue,t=this.selectedIndex,n=[],o=this.length,i=t-o;i<t+o+1;i++){var r=(i+e.length)%e.length,a=e[r];n.push(a)}return n}return[]},selectedValue:function(){if(this.element){var e=this.dataBindingInput;if(e)return e}return this.selected},top:function(){return-33*(this.length-1)+this.offset+"%"},length:function(){return 4},domPos:function(){return this.position(this.$el)}},methods:{onStartDnd:function(e){var t=this,n=this.domPos,o=this.mouse(e),i=o.y-n.y,r=i/n.h;this._startP=r,this.startDND(e,(function(e,n){return t.onMove(e,n)}),(function(e,n){return t.onEnd(e,n)}))},onMove:function(e,t){var n=this.domPos,o=this.mouse(t);o.y>n.y&&o.y<n.y+n.h&&(this.offset=e.y/n.h*100)},onEnd:function(e,t){var n=this,o=this.domPos,i=e.y/o.h*100,r=Math.round(i/33);if(0===r){var a=this.mouse(t);console.debug(a.y);var s=(a.y-o.y)/o.h;console.debug(s),s<.33&&(r=1),s>.66&&(r=-1)}var c=(this.selectedIndex-r+this.options.length)%this.options.length,l=this.options[c];console.debug(r,l,this.offset),this.offset=33.3*r,this.isAnimating=!0,setTimeout((function(){n.isAnimating=!1,n.offset=0,n.onChange(l)}),330)},onChange:function(e){this.selected=e,this.element?(this.onValueChange(this.selected,"default"),this.$emit("qChange",this.element,null,this.selected)):(this.$emit("change",this.selected),this.$emit("update:modelValue",this.selected)),u.log(5,"qSpinner.onChange() exit > ",this.selected)}},mounted:function(){this.element&&this.element.props&&this.element.props.value&&(this.count=this.element.props.value)}};n("4b6f");const Cs=Ao()(ks,[["render",xs]]);var ws=Cs;function Ss(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-dynamic-container",e.cssClass+" "+e.cssComponentClasses]),onMouseenter:t[0]||(t[0]=function(){return r.onMouseHover&&r.onMouseHover.apply(r,arguments)}),onMouseleave:t[1]||(t[1]=function(){return r.onMouseOut&&r.onMouseOut.apply(r,arguments)})},[r.selectedChild?(Object(wo["openBlock"])(),Object(wo["createBlock"])(Object(wo["resolveDynamicComponent"])(r.selectedChild.qtype),{key:r.selectedChild.id,element:r.selectedChild,model:e.model,config:e.config,onQDesignSystemCallback:e.forwardDesignSystemCallback,onQCallback:r.forwardCallback,onQClick:r.onClick,onQChange:r.forwardChange,onQKeyPress:r.forwardKeyPress,onQFocus:r.forwardFocus,onQBlur:r.forwardBlur,onQMouseOver:e.onMouseOver,onQMouseOut:r.forwardMouseOut},null,8,["element","model","config","onQDesignSystemCallback","onQCallback","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])):(Object(wo["openBlock"])(),Object(wo["createElementBlock"])(wo["Fragment"],{key:1},[Object(wo["createTextVNode"])(Object(wo["toDisplayString"])(e.qErrorMessage),1)],64))],34)}var qs={name:"qDynamicContainer",mixins:[No],data:function(){return{selectedValue:null,selectedChildIndex:0,dynamicLines:[],dynamicChildValues:[],qErrorMessage:"Nothing"}},computed:{selectedChild:function(){if(this.element){var e=this.dataBindingInput;if(void 0!==e){var t=this.dynamicChildValues.indexOf(e);if(t>=0&&t<this.element.children.length){var n=this.element.children[t];return n}}return this.element.children[this.selectedChildIndex]}return null}},methods:{onClick:function(e,t,n){var o=this.dynamicLines.find((function(t){return t.from===e.id&&"click"===t.event}));u.log(1,"DynamicContainer.onClick() > ",o),this.executeDynamicLine(o),this.$emit("qClick",e,t,n)},onMouseHover:function(){var e=this.selectedChild,t=this.dynamicLines.find((function(t){return t.from===e.id&&"hover"===t.event}));t||(t=this.dynamicLines.find((function(t){return t.from===e.id&&"mouseenter"===t.event}))),u.log(1,"DynamicContainer.onMouseOver() > ",t),this.executeDynamicLine(t)},onMouseOut:function(){var e=this.selectedChild,t=this.dynamicLines.find((function(t){return t.from===e.id&&"mouseleave"===t.event}));u.log(-1,"DynamicContainer.onMouseOut() > ",t),this.executeDynamicLine(t)},executeDynamicLine:function(e){if(this.element&&this.element.children&&e){var t=this.element.children.findIndex((function(t){return t.id===e.to}));if(t>=0)return u.log(1,"DynamicContainer.executeDynamicLine() > select ",e.to,t),this.selectedChildIndex=t,void this.emitDynamicDataBinding(t)}},emitDynamicDataBinding:function(e){var t=this.dynamicChildValues[e];this.onValueChange(t),u.log(1,"DynamicContainer.emitDynamicDataBinding() > ",t)},forwardClick:function(e,t,n){this.$emit("qClick",e,t,n)},forwardChange:function(e,t,n){this.$emit("qChange",e,t,n)},forwardFocus:function(e,t,n){this.$emit("qFocus",e,t,n)},forwardBlur:function(e,t,n){this.$emit("qBlur",e,t,n)},forwardMouseOver:function(e,t,n){this.$emit("qMouseOver",e,t,n)},forwardMouseOut:function(e,t,n){this.$emit("qMouseOut",e,t,n)},forwardKeyPress:function(e,t,n){this.$emit("qKeyPress",e,t,n)},forwardCallback:function(e,t,n){this.$emit("qCallback",e,t,n)}},mounted:function(){u.log(-1,"DynamicComponent.mounted()",this.element),this.element&&this.element.props&&this.element.props.dynamicLines&&(this.dynamicLines=this.element.props.dynamicLines);var e=[];this.element.children&&this.element.children.forEach((function(t,n){if(t.props){var o=t.props.dataValue;o=void 0!==o?Te(o):n,e[n]=o}})),this.dynamicChildValues=e,u.log(1,"DynamicComponent.mounted() > dataValues",this.dynamicChildValues)}};n("35ed");const Os=Ao()(qs,[["render",Ss]]);var Bs=Os,js={class:"qux-common-label"},Ps={class:"qux-common-label"};function Fs(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("router-link");return e.hasLink?(Object(wo["openBlock"])(),Object(wo["createBlock"])(a,{key:0,class:Object(wo["normalizeClass"])(["qux-rich-text",e.cssClass]),onClick:e.onClick,to:e.link},{default:Object(wo["withCtx"])((function(){return[Object(wo["createElementVNode"])("span",js,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.children,(function(e,t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:t,class:Object(wo["normalizeClass"])("qux-rich-text-child-"+t)},Object(wo["toDisplayString"])(e),3)})),128))])]})),_:1},8,["class","onClick","to"])):(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("label",{key:1,class:Object(wo["normalizeClass"])(["qux-rich-text",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},[Object(wo["createElementVNode"])("span",Ps,[(Object(wo["openBlock"])(!0),Object(wo["createElementBlock"])(wo["Fragment"],null,Object(wo["renderList"])(r.children,(function(e,t){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:t,class:Object(wo["normalizeClass"])("qux-rich-text-child-"+t)},Object(wo["toDisplayString"])(e),3)})),128))])],2))}var Ts={name:"qRichText",mixins:[No],data:function(){return{}},computed:{children:function(){if(this.element&&this.element.props&&this.element.props.richTextLabel){var e=this.element.props.richTextLabel.map((function(e){return e.label}));return e}return[]}},mounted:function(){}};n("cc7d");const Es=Ao()(Ts,[["render",Fs]]);var Rs=Es,Ds=["href"],Ms=["innerHTML"],Ls={key:1,class:"qux-common-label"},Is={key:2,class:"qux-common-label"};function Vs(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("a",{class:Object(wo["normalizeClass"])(["qux-label",e.cssClass]),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)}),href:r.linkURL},[e.dataBindingLabel&&"richtext"===e.dataBindingLabel.type?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",{key:0,class:"qux-richtext",innerHTML:e.dataBindingLabel.value},null,8,Ms)):e.dataBindingLabel&&!e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Ls,Object(wo["toDisplayString"])(e.dataBindingLabel),1)):Object(wo["createCommentVNode"])("",!0),e.hasSlot?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("span",Is,[Object(wo["renderSlot"])(e.$slots,"default")])):Object(wo["createCommentVNode"])("",!0)],10,Ds)}var As={name:"qLink",mixins:[No],data:function(){return{}},computed:{linkURL:function(){return this.element&&this.element.props&&this.element.props.url?this.element.props.url:""},isRichText:function(){var e=this.dataBindingLabel;return!(!e||"richtext"!==e.type)}},mounted:function(){}};n("ef5f");const zs=Ao()(As,[["render",Vs]]);var Ns=zs,_s={key:1};function Ws(e,t,n,o,i,r){var a=Object(wo["resolveComponent"])("qContainer");return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux",{"qux-component-screen":r.isComponentScreen}])},[r.currentScreen?(Object(wo["openBlock"])(),Object(wo["createBlock"])(a,{key:0,class:Object(wo["normalizeClass"])(["qux-screen",{"qux-screen-blurred":r.isBluredOverlay}]),element:r.currentScreen,model:e.model,config:e.mergedConfig,onQCallback:e.onCallback,onQClick:e.onClick,onQChange:e.onChange,onQKeyPress:e.onKeyPress,onQFocus:e.onFocus,onQBlur:e.onBlur,onQMouseOver:e.onMouseOver,onQMouseOut:e.onMouseOut},null,8,["class","element","model","config","onQCallback","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])):(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",_s,Object(wo["toDisplayString"])(e.msg),1)),r.hasOverlay?(Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{key:2,class:Object(wo["normalizeClass"])(["qux-overlay-wrapper",{"qux-overlay-wrapper-fixed":r.isFixedOverlay}]),onMousedown:t[0]||(t[0]=function(){return e.popOverlay&&e.popOverlay.apply(e,arguments)}),ref:"overlayWrapper"},[r.currentOverlay?(Object(wo["openBlock"])(),Object(wo["createBlock"])(a,{key:0,ref:"overlayCntr",element:r.currentOverlay,class:Object(wo["normalizeClass"])("qux-screen"),model:e.model,config:e.mergedConfig,onQCallback:e.onCallback,onQClick:e.onClick,onQChange:e.onChange,onQKeyPress:e.onKeyPress,onQFocus:e.onFocus,onQBlur:e.onBlur,onQMouseOver:e.onMouseOver,onQMouseOut:e.onMouseOut},null,8,["element","model","config","onQCallback","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])):Object(wo["createCommentVNode"])("",!0)],34)):Object(wo["createCommentVNode"])("",!0)],2)}function Hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Us(e,t,n){return t&&Qs(e.prototype,t),n&&Qs(e,n),e}var $s=function(){function e(){Hs(this,e)}return Us(e,[{key:"getFigmaCSS",value:function(){return{isFigma:!0,grid:!0,justifyContentInWrapper:!1,pinnedLeft:!1,pinnedRight:!1,fixedHorizontal:!1,attachLabels:!1,huggedCanResize:!0,hoverEmbeddedLabel:!0}}},{key:"getDefault",value:function(){return{debug:{logLevel:0},designletPrefix:"",loadFonts:!0,figma:{varientComponentHoverKey:"Mouse=Hover",varientComponentDefaultKey:"Mouse=Default",downloadVectors:!0},css:{grid:!0,justifyContentInWrapper:!1,attachLabels:!0,huggedCanResize:!0,hoverEmbeddedLabel:!1},router:{key:"screenName",prefix:""},databinding:{default:""},imageFolder:"/img",components:{},breakpoints:{mobile:{min:0,max:400},tablet:{min:401,max:1200},desktop:{min:1201,max:1e6}},addDefaultDatabinding:!0}}},{key:"merge",value:function(e,t){return void 0!==t.addDefaultDatabinding&&(e.addDefaultDatabinding=t.addDefaultDatabinding),t.css&&(e.css=ve(e.css,t.css)),t.router&&(e.router=ve(e.router,t.router)),t.databinding&&(e.databinding=ve(e.databinding,t.databinding)),t.components&&(e.components=t.components),t.imageFolder&&(e.imageFolder=t.imageFolder),t.debug&&(e.debug=ve(e.debug,t.debug)),t.designletPrefix&&(e.designletPrefix=t.designletPrefix),void 0!==t.loadFonts&&(e.loadFonts=t.loadFonts),t.responsive&&(e.responsive=t.responsive),t.figma&&(e.figma=ve(e.figma,t.figma)),e}}]),e}(),Ks=new $s;function Gs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ys(e,t,n){return t&&Xs(e.prototype,t),n&&Xs(e,n),e}var Js=function(){function e(){Gs(this,e)}return Ys(e,[{key:"_get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){fetch(e,{method:"get",headers:t}).then((function(e){200===e.status?e.json().then((function(e){u.log(6,"_get","exit "),n(e)})):o(e)})).catch((function(e){o(e)}))}))}},{key:"_post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){fetch(e,{method:"post",body:JSON.stringify(t),headers:n}).then((function(e){200===e.status?e.json().then((function(e){u.log(6,"post","exit "),o(e)})):i(e)})).catch((function(e){i(e)}))}))}}]),e}();function Zs(e){return Zs="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},Zs(e)}function ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nc(e,t,n){return t&&tc(e.prototype,t),n&&tc(e,n),e}function oc(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ic(e,t)}function ic(e,t){return ic=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ic(e,t)}function rc(e){var t=cc();return function(){var n,o=lc(e);if(t){var i=lc(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ac(this,n)}}function ac(e,t){return!t||"object"!==Zs(t)&&"function"!==typeof t?sc(e):t}function sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cc(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lc(e)}var uc=function(e){oc(n,e);var t=rc(n);function n(){var e;return ec(this,n),e=t.call(this),e.luisaUrl="https://api.luisa.cloud",e}return nc(n,[{key:"execute",value:async function(e,t){u.log(-1,"Mail.execute() > enter ",e);var n=e.config;try{var o=t;n.inputVariable&&(u.log(-1,"ActionEngine.execute() > crop view model ",n.inputVariable),o=Lo.get(t,n.inputVariable));var i=await this._post("".concat(this.luisaUrl,"/api/actions/").concat(n.appId,"/mail2team"),{body:n.body,subject:n.subject,data:o},{"Content-Type":"application/json",Accept:"application/json"});i&&u.log(-1,"ActionEngine.execute() > exit ",i)}catch(r){u.warn("ActionEngine.execute() > Error ",r)}}}]),n}(Js);function dc(e){return dc="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},dc(e)}function hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function gc(e,t,n){return t&&fc(e.prototype,t),n&&fc(e,n),e}function mc(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yc(e,t)}function yc(e,t){return yc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yc(e,t)}function bc(e){var t=kc();return function(){var n,o=Cc(e);if(t){var i=Cc(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return vc(this,n)}}function vc(e,t){return!t||"object"!==dc(t)&&"function"!==typeof t?xc(e):t}function xc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kc(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cc(e)}var wc=function(e,t){return"<span>type: ".concat(e," id: ").concat(t.data.target.sys.id,"</span>")},Sc=function(e){mc(n,e);var t=bc(n);function n(){var e,o,i;return pc(this,n),i=t.call(this),i.contentfulUrl="https://cdn.contentful.com",i.renderMark=(e={},hc(e,"bold",(function(e){return"<b>".concat(e,"</b>")})),hc(e,"italic",(function(e){return"<i>".concat(e,"</i>")})),hc(e,"underline",(function(e){return"<u>".concat(e,"</u>")})),hc(e,"code",(function(e){return"<code>".concat(e,"</code>")})),e),i.renderNode=(o={},hc(o,"paragraph",(function(e,t){return"<p>".concat(t(e.content),"</p>")})),hc(o,"heading-1",(function(e,t){return"<h1>".concat(t(e.content),"</h1>")})),hc(o,"heading-2",(function(e,t){return"<h2>".concat(t(e.content),"</h2>")})),hc(o,"heading-3",(function(e,t){return"<h3>".concat(t(e.content),"</h3>")})),hc(o,"heading-4",(function(e,t){return"<h4>".concat(t(e.content),"</h4>")})),hc(o,"heading-5",(function(e,t){return"<h5>".concat(t(e.content),"</h5>")})),hc(o,"heading-6",(function(e,t){return"<h6>".concat(t(e.content),"</h6>")})),hc(o,"embedded-entry-block",(function(e,t){return"<div>".concat(t(e.content),"</div>")})),hc(o,"unordered-list",(function(e,t){return"<ul>".concat(t(e.content),"</ul>")})),hc(o,"ordered-list",(function(e,t){return"<ol>".concat(t(e.content),"</ol>")})),hc(o,"list-item",(function(e,t){return"<li>".concat(t(e.content),"</li>")})),hc(o,"blockquote",(function(e,t){return"<blockquote>".concat(t(e.content),"</blockquote>")})),hc(o,"hr",(function(){return"<hr/>"})),hc(o,"asset-hyperlink",(function(e){return wc("asset-hyperlink",e)})),hc(o,"entry-hyperlink",(function(e){return wc("entry-hyperlink",e)})),hc(o,"embedded-entry-inline",(function(e){return wc("embedded-entry-inline",e)})),hc(o,"hyperlink",(function(e,t){return'<a href="'.concat(e.data.uri,'">').concat(t(e.content),"</a>")})),o),i}return gc(n,[{key:"execute",value:async function(e,t){var n=this;u.log(-1,"ContentFul.execute() > enter ");var o=e.config;if(o.outputVariable)try{var i=await this._get("".concat(this.contentfulUrl,"/spaces/").concat(o.spaceId,"/environments/").concat(o.envId,"/entries?access_token=").concat(o.apiToken));if(i){var r=await this._get("".concat(this.contentfulUrl,"/spaces/").concat(o.spaceId,"/environments/").concat(o.envId,"/assets?access_token=").concat(o.apiToken)),a=i.items.map((function(e){return n.mapContentFul(e,r)}));Lo.set(t,o.outputVariable,a),u.log(-1,"ContentFul.execute() > exit ",a)}}catch(s){u.warn("ContentFul.execute() > Error ",s)}}},{key:"mapContentFul",value:function(e,t){var n=e.fields,o={};for(var i in n){var r=n[i];"document"===r.nodeType?o[i]={type:"richtext",value:this.documentToHtmlString(r)}:r.sys&&"Asset"===r.sys.linkType?function(){var e=r.sys.id,n=t.items.find((function(t){return t.sys.id===e}));n.fields.file&&(o[i]={url:"https:"+n.fields.file.url})}():o[i]=r}return o.id||(o.id=e.sys.id),o}},{key:"documentToHtmlString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&e.content?this.nodeListToHtmlString(e.content,{renderNode:Object.assign({},this.defaultNodeRenderers,t.renderNode),renderMark:Object.assign({},this.defaultMarkRenderers,t.renderMark)}):""}},{key:"nodeListToHtmlString",value:function(e){var t=this;return e.map((function(e){return t.nodeToHtmlString(e)})).join("")}},{key:"nodeToHtmlString",value:function(e){var t=this;if(this.isText(e)){var n=this.escape(e.value);return e.marks.length>0?e.marks.reduce((function(e,n){return t.renderMark[n.type]?t.renderMark[n.type](e):e}),n):n}var o=function(e){return t.nodeListToHtmlString(e)};return e.nodeType&&this.renderNode[e.nodeType]?this.renderNode[e.nodeType](e,o):""}},{key:"isText",value:function(e){return"text"===e.nodeType}},{key:"escape",value:function(e){return e}}]),n}(Js);function qc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Bc(e,t,n){return t&&Oc(e.prototype,t),n&&Oc(e,n),e}var jc=function(){function e(t){qc(this,e),u.log(-1,"ActionEngine()",t),this.actions=t,this.engines={mail:new uc,contentful:new Sc}}return Bc(e,[{key:"hasAction",value:function(e){var t=this.actions.filter((function(t){return t.id===e}));return 1===t.length}},{key:"executeAction",value:async function(e,t,n){var o=this;u.log(-1,"ActionEngine.executeAction()",t,n);try{var i=this.actions.find((function(e){return e.id===t}));i&&i.steps?i.steps.forEach((async function(e){await o.executeStep(e,n,t)})):u.warn("ActionEngine.executeAction() > No action with id",t)}catch(r){u.error("ActionEngine.executeAction() > Error during execution",r)}}},{key:"executeStep",value:async function(e,t,n){this.engines[e.type]?await this.engines[e.type].execute(e,t):u.error("ActionEngine.executeStep() > No method for step","execute_"+e.type,n)}}]),e}();function Pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Tc(e,t,n){return t&&Fc(e.prototype,t),n&&Fc(e,n),e}var Ec=function(){function e(){Pc(this,e),this.fontElement={},this.defaultFontFamilies={"Helvetica Neue,Helvetica,Arial,sans-serif":!0,"Arial, sans-serif":!0,"Comic Sans MS, cursive, sans-serif":!0,"Impact, Charcoal, sans-serif":!0,"Times New Roman, Times, serif":!0,"Courier New, Courier, monospace":!0,'"Palatino Linotype", "Book Antiqua", Palatino, serif':!0,"Georgia, serif":!0,Roboto:!0}}return Tc(e,[{key:"write",value:function(e,t){u.log(1,"FontWriter.write() > enter");var n=this.getCustomFonts(e);t.loadFonts?this.writeImportStatements(n):this.showImportWarning(n)}},{key:"showImportWarning",value:function(e){for(var t in Object.keys(e).length>0&&u.warn("Vue-Low-Code: Please add the following font imports:"),e){var n=t.replace(", sans-serif","");n=t.replace(/\s+/g,"+"),u.warn(" <style>@import url('https://fonts.googleapis.com/css2?family=".concat(n,"&display=swap');</style>"))}}},{key:"writeImportStatements",value:function(e){var t=document.head||document.getElementsByTagName("head")[0];for(var n in e){this.fontElement[n]&&(u.log(5,"FontWriter.write() > Clean up old"),t.removeChild(this.fontElement[n]));var o=n.replace(", sans-serif","");o=o.replace(/\s+/g,"+");var i="@import url('https://fonts.googleapis.com/css2?family=".concat(o,"&display=swap');"),r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(i)),t.appendChild(r),this.fontElement[n]=r}}},{key:"getFontImportStatement",value:function(e){var t=[];for(var n in e){var o=n.replace(/\s+/g,"+");t.push("family=".concat(o))}return"@import url('https://fonts.googleapis.com/css2?".concat(t.join("&"),"&display=swap');")}},{key:"getCustomFonts",value:function(e){var t=this;u.log(3,"FontWriter.getCustomFonts() > enter");var n={};return Object.values(e.widgets).forEach((function(e){if(e.style.fontFamily){var o=e.style.fontFamily;t.defaultFontFamilies[o]||(n[o]||(n[o]=[]),n[o].push(e.style.fontWeight))}})),n}}]),e}(),Rc=new Ec,Dc={class:"qux"};function Mc(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",Dc)}function Lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ic(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Vc(e,t,n){return t&&Ic(e.prototype,t),n&&Ic(e,n),e}var Ac=function(){function e(){Lc(this,e)}return Vc(e,[{key:"run",value:function(e,t){return"POST"===e.method&&"JSON"===e.input.type?this.postOrPut(e,t):"POST"!==e.method||"IMAGE"!==e.input.type&&"FILE"!==e.input.type?"GET"===e.method?this.get(e,t):"PUT"===e.method&&"JSON"===e.input.type?this.postOrPut(e,t):"PUT"!==e.method||"IMAGE"!==e.input.type&&"FILE"!==e.input.type?"DELETE"===e.method?this.delete(e,t):void 0:this.postOrPostImage(e,t):this.postOrPostImage(e,t)}},{key:"buildURL",value:async function(e,t){var n=await this.fillString(e.url,t,!1);return u.log(1,"buildURL","exit",n),n}},{key:"buildData",value:async function(e,t){var n=await this.fillString(e.input.template,t,!0);return u.log(1,"buildData","exit",n),n}},{key:"buildToken",value:async function(e,t){var n=await this.fillString(e.token,t,!0);return u.log(-1,"RestEngine.buildToken","exit",n),n}},{key:"fillString",value:async function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];for(var o in t){var i=await this.getStringFilelValue(t[o],n),r="${"+o+"}",a=0;while(e.indexOf(r)>=0&&a<100)e=e.replace(r,i),a++}if(e.indexOf("${")>=0)throw u.error("buildURL","exit",e),new Error("buildURL() > Not all parameters replaced!"+e);return e}},{key:"getStringFilelValue",value:function(e,t){return e&&e.name&&e.size&&t&&(e=this.readFileAsBase64(e)),e}},{key:"readFileAsBase64",value:async function(e){var t=await this.base64(e);return t}},{key:"dataUrl",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onerror=function(e){return n(e)},o.onload=function(){return t(o.result)},o.readAsDataURL(e)}))}},{key:"base64",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onerror=function(e){return n(e)},o.onload=function(){var e=Array.from(new Uint8Array(o.result)),n=btoa(e.map((function(e){return String.fromCharCode(e)})).join(""));t(n)},o.readAsArrayBuffer(e)}))}},{key:"handleOutput",value:function(e,t,n){if(u.log(2,"handleOutput","enter",n),200==n.status){if("JSON"===t.output.type)try{e(n.json())}catch(o){throw new Error("Could not ".concat(t.method," ").concat(t.url,": ").concat(o.message))}return"TEXT"===t.output.type&&e(n.text()),void("IMAGE"===t.output.type&&n.arrayBuffer().then((function(t){e(t)})))}throw new Error("Could not ".concat(t.method," ").concat(t.url,": ").concat(n.statusText))}},{key:"get",value:function(e,t){var n=this;return new Promise((async function(o,i){var r=await n.buildURL(e,t),a=n.createDefaultHeader(e);fetch(r,{method:"GET",mode:"cors",cache:"no-cache",headers:a,redirect:"follow",referrer:"no-referrer"}).then((function(t){n.handleOutput(o,e,t)})).catch((function(e){i(e)}))}))}},{key:"postOrPostImage",value:function(e,t){var n=this;return new Promise((async function(o,i){var r=await n.buildURL(e,t),a=n.createDefaultHeader(e),s=new FormData;for(var c in t)s.append(c,t[c]);fetch(r,{method:e.method,mode:"cors",cache:"no-cache",headers:a,redirect:"follow",referrer:"no-referrer",body:s}).then((function(t){n.handleOutput(o,e,t)})).catch((function(e){throw i(e),e}))}))}},{key:"postOrPut",value:function(e,t){var n=this;return new Promise((async function(o,i){var r=await n.buildURL(e,t),a=await n.buildData(e,t),s=n.createDefaultHeader(e);fetch(r,{method:e.method,mode:"cors",cache:"no-cache",headers:s,redirect:"follow",referrer:"no-referrer",body:a}).then((function(t){n.handleOutput(o,e,t)})).catch((function(e){throw i(e),e}))}))}},{key:"delete",value:function(e,t){var n=this;return new Promise((async function(o,i){var r=await n.buildURL(e,t),a=n.createDefaultHeader(e);fetch(r,{method:"DELETE",mode:"cors",cache:"no-cache",headers:a,redirect:"follow",referrer:"no-referrer"}).then((function(t){n.handleOutput(o,e,t)})).catch((function(e){throw i(e),e}))}))}},{key:"createDefaultHeader",value:async function(e,t){var n=await this.buildToken(e,t),o=e.authType?e.authType:"Bearer",i={};return"JSON"===e.input.type&&(i["Content-Type"]="application/json",i["Accept"]="application/json"),"FORM"===e.input.type&&(i["Content-Type"]="application/x-www-form-urlencoded"),n&&(i["Authorization"]="".concat(o," ").concat(n)),i}},{key:"getNeededDataBings",value:function(e){var t=[];return this.parseString(e.url,t),this.parseString(e.token,t),"POST"!==e.method&&"PUT"!==e.method||"JSON"!==e.input.type||this.parseString(e.input.template,t),"POST"!==e.method&&"PUT"!==e.method||"FILE"!==e.input.type&&"IMAGE"!==e.input.type||e.input.fileDataBinding&&t.push(e.input.fileDataBinding),t}},{key:"parseString",value:function(e,t){var n=e.match(/\$\{(.*?)\}/g);n&&n.forEach((function(e){var n=e.substring(2,e.length-1);t.indexOf(n)<0&&t.push(n)}))}}]),e}(),zc=new Ac,Nc={name:"Logic",methods:{executeLogic:function(e,t){u.log(0,"QUX.executeLogic() > enter",e.props,t);var n=ke(e,this.model),o=null;if(e.props&&e.props.isRandom){var i=Math.random(),r=Math.floor(i*n.length);u.log(0,"QUX.executeLogic","enter > do AB:"+e.id+" >> "+i+" >> "+r),o=n[r]}else o=this.getRuleMatchingLine(n);o?this.executeLine(o):u.warn("QUX.executeLogic() > NO RULE matching",n)},executeRest:async function(e){var t=this;u.log(0,"QUX.executeRest() > enter",e.props.rest);var n=e.props.rest,o=zc.getNeededDataBings(n),i={};o.forEach((function(e){var n=Lo.get(t.modelValue,e);i[e]=n}));var r=await this.runRestEngine(n,i),a=ke(e,this.model),s=this.getRuleMatchingLine(a,r);s?this.executeLine(s):u.warn("QUX.executeRest() > NO RULE matching",a)},runRestEngine:async function(e,t){try{var n=await zc.run(e,t);return u.log(1,"QUX.executeRest","set data "+e.output.databinding,n),e.output.databinding&&Lo.set(this.modelValue,e.output.databinding,n),!0}catch(o){u.error("QUX.executeRest","error",o),e.output.databinding&&Lo.set(this.modelValue,e.output.databinding,"Error")}return!1},getRuleMatchingLine:function(e,t){for(var n,o=0;o<e.length;o++){var i=e[o];if(i.rule){if(u.log(4,"QUX.getRuleMatchingLine() > check",o,i.rule),"widget"===i.rule.type&&u.error("QUX.getRuleMatchingLine() > widget rules not supported in low code"),"databinding"===i.rule.type&&(n=this.checkDataBindingRule(i)),"rest"===i.rule.type&&("4xx"!==i.rule.restResponseStatus||t||(n=i),"200"===i.rule.restResponseStatus&&t&&(n=i)),n)break}else n||(n=i)}return n},checkDataBindingRule:function(e){u.log(4,"QUX.checkDataBindingRule() > enter",e.rule.databinding);var t=e.rule,n=Lo.get(this.modelValue,t.databinding),o=this.isValueMatchingRule(n,!0,t);if(o)return u.log(-1,"QUX.checkDataBindingRule() > match!",e),e},isValueMatchingRule:function(e,t,n){u.log(3,"QUX.isValueMatchingRule() > enter > "+n.value+" "+n.operator+" >"+e+"< / "+t);var o=n.operator;e&&Array.isArray(e)&&e.length>0&&(e=e[0]);var i=!1;switch(o){case"contains":if(e.toLowerCase&&n.value.toLowerCase){var r=e.toLowerCase(),a=n.value.toLowerCase();i=r.indexOf(a)>=0}else i=!1;break;case"isValid":i=t;break;case"==":i=e==n.value;break;case"!=":i=null===n.value||void 0===n.value?null!==e&&void 0!==e&&""!==e:e!=n.value;break;case">":e||(e=0),i=1*e>1*n.value;break;case"<":e||(e=0),i=1*e<1*n.value;break;case">=":e||(e=0),i=1*e>=1*n.value;break;case"<=":e||(e=0),i=1*e<=1*n.value;break;default:u.warn("QUX.isValueMatchingRule() Not supported operator")}return i}}};const _c=Ao()(Nc,[["render",Mc]]);var Wc=_c,Hc={class:"qux"};function Qc(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",Hc)}var Uc={name:"Event",methods:{onScreenLoaded:function(e){u.log(3,"QUX.onScreenLoaded() > ",e),this.setSystemVariable("screen",e.name),this.$emit("qScreenLoad",{value:this.modelValue,element:e,viewModel:this.modelValue,qux:this}),this.dispatchCallback(e,null,"load",null)},onCallback:async function(e,t){u.log(5,"QUX.onCallback() > "+e.name,t.callback);var n=this.getMethodExcutor();if(n)if(n[t.callback]){var o=n[t.callback];if(o instanceof Function){var i=await o({value:this.modelValue,element:e,viewModel:this.modelValue,qux:this,params:t.params,event:t});return void this.handleCallbackResult(i,t.callback)}console.warn("QUX.onCallback() > Callback is not method ",t.callback)}else console.warn("QUX.onCallback() > no method in executor with name ",t.callback)},onClick:function(e,t,n){if(u.log(4,"QUX.onClick() > enter",e),u.logLevel>10&&u.log(10,"QUX.onClick()",t.target),e.lines){var o=Z(e);o&&(this.executeLine(o,n),this.stopEvent(t))}if(e.action&&"back"===e.action.type)return u.log(0,"QUX.onClick() > Go back"),this.stopEvent(t),void(this.overlayScreenIds.length>0?this.removeLastOverlay():this.$router.go(-1));this.dispatchCallback(e,t,"click",n)},stopEvent:function(e){e&&e.stopPropagation()},executeLine:function(e,t){if(u.log(-1,"QUX.executeLine() > enter",e,t),e){var n=je(e.to,this.model);if("Screen"===n.type)return void this.navigateToScreen(n,e,t);if("Rest"===n.type)return void this.executeRest(n,e);if("LogicOr"===n.type)return void this.executeLogic(n,e);e.isComponentLine||u.warn("QUX.executeLine() > Not supported line target",n)}else u.error("QUX.executeLine() > ERROR. Null passed",e)},dispatchCallback:async function(e,t,n,o){if(u.log(4,"QUX.dispatchCallback() > enter > "+n,e),e.props&&e.props.callbacks){var i=e.props.callbacks[n];if(i){if(u.log(2,"QUX.dispatchCallback() > callback > "+n,i),this.actionEngine&&this.actionEngine.hasAction(i)){u.log(-1,"QUX.dispatchCallback() > action engine: ",i);var r=await this.actionEngine.executeAction(this.app,i,this.modelValue);return void this.handleCallbackResult(r,i)}var a=this.getMethodExcutor();if(a)if(a[i]){var s=a[i];if(s instanceof Function){this.stopEvent(t);var c=await s({value:o,element:e,viewModel:this.modelValue,qux:this,event:t});return void this.handleCallbackResult(c,i)}console.warn("QUX.dispatchCallback() > Callback is not method ",i)}else console.warn("QUX.dispatchCallback() > no method in $parent with name ",i)}}},handleCallbackResult:function(e,t){if(e){u.log(-1,"QUX.handleCallbackResult() > callback > "+t,e);var n=Object.values(this.model.screens).find((function(t){return t.name===e}));n?(this.setScreen(e),this.scrollToTop()):u.warn("QUX.handleCallbackResult() > no screen with name > "+e)}},navigateToScreen:function(e,t,n){e.style&&!0===e.style.overlay?(u.log(1,"Qux(Event).navigateToScreen() > Overlay",e.name),this.overlayScreenIds.push(e.id)):(u.log(1,"Qux(Event).navigateToScreen() > Link",e.name),this.overlayScreenIds=[],this.setScreen(e.name,this.getValueQuery(n)),t&&!0===t.scroll||this.scrollToTop())},getValueQuery:function(e){if(e&&e.id)return"id=".concat(e.id)},scrollToTop:function(){u.log(4,"Qux(Event).scrollToTop()"),this.$emit("qScrollTop",{})},popOverlay:function(e){this.$refs.overlayCntr&&e&&e.target===this.$refs.overlayCntr.$el&&(u.log(4,"Qux(Event).popOverlay()"),this.removeLastOverlay())},removeLastOverlay:function(){u.log(4,"Qux(Event).removeLastOverlay()"),this.overlayScreenIds.length>0&&this.overlayScreenIds.pop()},closeAllOverlays:function(){u.log(4,"Qux(Event).closeAllOverlays()"),this.overlayScreenIds=[]},onChange:function(e,t,n){u.log(1,"Qux(Event).onChange() > ",n),this.$emit("qChange",e,t),this.dispatchCallback(e,t,"change",n)},onKeyPress:function(e,t,n){u.log(2,"Qux(Event).onKeyPress() > ",n),this.$emit("qKeyPress",e,t),this.dispatchCallback(e,t,"change",n)},onFocus:function(e,t,n){this.$emit("qFocus",e,t),this.dispatchCallback(e,t,"focus",n)},onBlur:function(e,t,n){this.$emit("qBlur",e,t),this.dispatchCallback(e,t,"blur",n)},onMouseOver:function(e,t){this.$emit("qMouseOver",e,t)},onMouseOut:function(e,t){this.$emit("qMouseOut",e,t)},setSystemVariable:function(e,t){Lo.set(this.modelValue,"_qux."+e,t)}}};const $c=Ao()(Uc,[["render",Qc]]);var Kc=$c,Gc={mixins:[Kc,Wc],name:"Luisa",emits:["update:modelValue","qScreenLoad","qClick","click","qChange","change","qKeyPress","qFocus","qBlur","qDesignSystemCallback","qScrollTop"],props:{app:{default:!1},design:{},screen:{type:String},selected:{type:String},debug:{type:String},modelValue:{type:Object,default:function(){return{}}},executor:{type:Object},config:{type:Object,default:function(){return{}}},actions:{type:Array}},provide:function(){return{viewModel:this.modelValue}},data:function(){return{server:"https://quant-ux.com",model:null,mobileModel:null,tabletModel:null,desktoModel:null,selectedScreenId:null,overlayScreenIds:[],hash:!1,msg:"Loading...",mergedConfig:Ks.getDefault(),deviceType:""}},computed:{treeModel:function(){if(this.model){var e=this.responsiveModel,t=new Et(e,this.mergedConfig,this.selected),n=t.transform();return this.setGlobalCSS(n,this.selected),this.setGlobalFonts(e,this.mergedConfig),n}return{screens:[]}},responsiveModel:function(){var e=this.model;return this.mergedConfig.responsive&&(e=this.getResponsiveModel(e,this.mergedConfig.responsive)),e},currentScreen:function(){var e=this;if(this.selectedScreenId){var t=this.treeModel.screens.filter((function(e){return!0!==e.isComponentScreen})).find((function(t){return t.id===e.selectedScreenId}));if(t)return t}return this.getDefaultScreen()},isComponentScreen:function(){var e=this.currentScreen;return!!e&&e.isComponentScreen},imagePrefix:function(){return this.hash?"".concat(this.server,"/rest/images/").concat(this.hash,"/"):this.mergedConfig.imageFolder},hasOverlay:function(){return this.overlayScreenIds.length>0},currentOverlay:function(){var e=this.overlayScreenIds[this.overlayScreenIds.length-1],t=this.treeModel.screens.find((function(t){return t.id===e}));return t},isFixedOverlay:function(){var e=this.overlayScreenIds[this.overlayScreenIds.length-1],t=this.treeModel.screens.find((function(t){return t.id===e}));return!!t&&t.style.fixed},isBluredOverlay:function(){var e=this.overlayScreenIds[this.overlayScreenIds.length-1],t=this.treeModel.screens.find((function(t){return t.id===e}));return!!t&&t.style.blur}},methods:{getResponsiveModel:function(e,t){var n=this;u.log(-1,"Luisa.getResponsiveModel() > enter >",t);var o=t.filter((function(e){return e.types.length>0}));if(o.length>0){this.setDeviceType(),e=xe(e);var i=this.mergedConfig.responsive.filter((function(e){return e.types.indexOf(n.deviceType)>-1})).map((function(e){return e.page}));u.log(2,"Luisa.getResponsiveModel() > Pages >"+this.deviceType,i.join(","));var r={};if(Object.values(e.screens).forEach((function(e){i.indexOf(e.pageName)>-1&&(r[e.id]=e)})),Object.values(r).length>0)return u.log(-1,"Luisa.getResponsiveModel() > exit :",this.deviceType),e.screens=r,e}return e},setGlobalFonts:function(e,t){Rc.write(e,t)},setGlobalCSS:function(e){var t=new Lt(this.mergedConfig).runTree(e),n=new yo(this.mergedConfig,this.imagePrefix).generate(t),o=[];o=Object.values(n).flatMap((function(e){return e.map((function(e){return e.code}))})),o=o.join("\n"),Co.write(o,e.id)},setFigma:async function(e){u.log(-1,"Luisa.setFigma()",this.pages);var t=new g(e.figmaAccessKey,this.mergedConfig),n=this.pages?this.pages:[],o=await t.get(e.figmaFile,!0,!1,n);return o=t.setBackgroundImages(o),o},setDesign:async function(e){if(u.log(-1,"Luisa.setApp() > setDesign",e),this.config&&this.setConfig(this.config,e),e.figmaFile&&e.figmaAccessKey){var t=await this.setFigma(e);this.setQUX(t)}else this.setQUX(e)},setConfig:function(e,t){(t.figmaId||t.figmaFile&&t.figmaAccessKey)&&(u.log(1,"Luisa.setConfig() > Set Figma"),this.mergedConfig.css=Ks.getFigmaCSS()),this.mergedConfig=Ks.merge(this.mergedConfig,e),this.initCustomComponents(this.mergedConfig.components),u.setLogLevel(this.mergedConfig.debug.logLevel)},setQUX:async function(e){if(e.substring){var t=await this.loadAppByKey(e);this.model=t,this.hash=e}else this.model=e;this.initViewModel()},loadAppByKey:async function(e){u.log(3,"Luisa.loadAppByKey() > enter",e);var t="".concat(this.server,"/rest/invitation/").concat(e,"/app.json"),n=(new Date).getTime(),o=await fetch(t);if(200===o.status){var i=await o.json();return u.log(-1,"Luisa.loadAppByKey() > exit",(new Date).getTime()-n),i}this.msg="The debug id is wrong!"},setScreen:function(e,t){u.log(-1,"Luisa.setScreen() > ",e,t);var n="";this.config&&this.config.router&&this.config.router.prefix&&(n=this.config.router.prefix+"/");var o="/".concat(n).concat(e,".html");t&&(o+="?"+t),this.$router.push(o)},loadScreen:function(e){if(u.log(2,"Luisa.loadScreen() >",e),this.closeAllOverlays(),this.model){var t=this.responsiveModel,n=Object.values(t.screens).find((function(t){return t.name===e}));if(u.log(-1,"Luisa.loadScreen() > Found ",n),n)this.selectedScreenId=n.id,this.onScreenLoaded(n);else{u.warn("Luisa.loadScreen() > No screen with name",e);var o=this.getDefaultScreen();o?(this.selectedScreenId=o.id,this.onScreenLoaded(o)):this.msg="404 - No Screen with name ".concat(this.msg)}}else u.warn("Luisa.loadScreen() > No Model")},getDefaultScreen:function(){u.log(1,"Luisa.getDefaultScreen() > enter");var e=this.treeModel.screens.filter((function(e){return!0!==e.isComponentScreen})).find((function(e){return!0===e.props.start}));return e||(e=this.treeModel.screens.filter((function(e){return!0!==e.isComponentScreen}))[0]),e},setStartScreen:function(){u.log(5,"Luisa.setStartScreen() > enter ");var e=this.getDefaultScreen();e?(this.selectedScreenId=e.id,this.onScreenLoaded(e)):this.selectedScreenId=null},setScreenByRouter:function(){u.log(5,"Luisa.setScreenByRoute() > enter ",this.$route);var e="screenName";this.config&&this.config.router&&this.config.router.key&&(e=this.config.router.key);var t=this.$route.params[e];t?(u.log(-1,"Luisa.setScreenByRoute() > exit ",t,"(".concat(e,")")),this.loadScreen(t)):(u.log(-1,"Luisa.setScreenByRoute() > exit > set start"),this.setStartScreen())},initCustomComponents:function(e){u.log(1,"Luisa.initCustomComponents()",e)},initViewModel:function(){var e=this;if(u.log(3,"Luisa.initViewModel > enter"),this.modelValue&&this.model){Object.values(this.model.screens).forEach((function(e){e.name=w(e.name)}));var t=Object.values(this.model.widgets).flatMap((function(e){return e.props&&e.props.databinding?Object.values(e.props.databinding):[]}));t.sort((function(e,t){return e.localeCompare(t)}));var n=this.mergedConfig.databinding.default;t.forEach((function(t){var o=Lo.has(e.modelValue,t);o||(u.log(-1,"Luisa.initViewModel > Missing data in view model",t),Lo.set(e.modelValue,t,n))}))}},initReziseListener:function(){window.addEventListener("resize",this.onScreenSizeChange)},onScreenSizeChange:function(){u.log(-1,"Luisa.onScreenSizeChange > enter"),this.setDeviceType(),this.setScreenByRouter()},setDeviceType:function(){u.log(1,"Luisa.setDeviceType > enter");var e=window.outerWidth,t=this.mergedConfig.breakpoints;if(t)return e<t.mobile.max?(u.log(-1,"Luisa.setDeviceType > exit mobile",e),void(this.deviceType="mobile")):e<t.tablet.max?(u.log(-1,"Luisa.setDeviceType > exit tablet",e),void(this.deviceType="tablet")):(u.log(-1,"Luisa.setDeviceType > exit desktop",e),void(this.deviceType="desktop"))},getMethodExcutor:function(){return u.log(3,"Luisa.getMethodExcutor() > "),this.executor?this.executor:this.$parent}},watch:{$route:function(){u.log(3,"Luisa.watch(router) > enter"),this.setScreenByRouter()},screen:function(e){u.log(3,"Luisa.watch(screen) > enter"),this.setScreen(e)},value:function(e){u.error("Luisa.watch(value) > enter",e)},design:function(e){u.error("Luisa.watch(design) > enter",e)}},beforeMount:function(){},mounted:async function(){u.log(0,"Luisa.mounted()",this.value),this.actions&&this.actions.length>0&&(this.actionEngine=new jc(this.actions)),this.design&&await this.setDesign(this.design),this.app&&(u.error("Luisa.mounted () > APP is depcreated"),await this.setDesign(this.app)),this.debug&&(console.warn('QUX > debug property is decrecated. Use "app" instead.'),await this.loadAppByKey(this.debug)),this.selected?u.log(-1,"Luisa.mounted() > Selected:",this.selected,this.app):this.screen?this.loadScreen(this.screen):this.setScreenByRouter(),this.$router&&"history"===this.$router.mode&&u.log(-1,"Luisa.mounted() > Launch router with history",this.$router),this.initReziseListener()},beforeUnmount:function(){window.removeEventListener("resize",this.onResize)}};n("4cdb");const Xc=Ao()(Gc,[["render",Ws]]);var Yc=Xc,Jc={install:function(e){e.component("Luisa",Yc),e.component("qHotSpot",Ho),e.component("qButton",Ho),e.component("qBox",Ho),e.component("qLabel",ei),e.component("qContainer",pi),e.component("qIcon",ii),e.component("qTextBox",li),e.component("qPassword",li),e.component("qTextArea",xr),e.component("qRepeater",bi),e.component("qImage",Ci),e.component("qCheckBox",ji),e.component("qRadioBox",Vi),e.component("qRadioBox2",Vi),e.component("qRadioGroup",_i),e.component("qCheckBoxGroup",Ei),e.component("qToggleButton",$i),e.component("qSwitch",tr),e.component("qDropDown",gr),e.component("qMobileDropDown",gr),e.component("qStepper",jr),e.component("qHSlider",Dr),e.component("qDate",Qr),e.component("qDateDropDown",Yr),e.component("qSegmentButton",oa),e.component("qRating",ca),e.component("qIconToggle",pa),e.component("qLabeledIconToggle",pa),e.component("qTypeAheadTextBox",xa),e.component("qTable",Fa),e.component("qPaging",Va),e.component("qBarChart",Wa),e.component("qPieChart",Wa),e.component("qMultiRingChart",Wa),e.component("qRingChart",Wa),e.component("qVector",$a),e.component("qTimeline",es),e.component("qUpload",rs),e.component("qCamera",ls),e.component("qChildrenToggle",ys),e.component("qUploadPreview",ps),e.component("qSpinner",ws),e.component("qDynamicContainer",Bs),e.component("qRichText",Rs),e.component("qLink",Ns)}};function Zc(e,t,n,o,i,r){return Object(wo["openBlock"])(),Object(wo["createElementBlock"])("div",{class:Object(wo["normalizeClass"])(["qux-compoment-set",e.cssClass]),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)})},[r.selectedChild?(Object(wo["openBlock"])(),Object(wo["createBlock"])(Object(wo["resolveDynamicComponent"])(r.selectedChild.qtype),{key:r.selectedChild.id,element:r.selectedChild,model:e.model,config:e.config,onQDesignSystemCallback:e.forwardDesignSystemCallback,onQCallback:r.forwardCallback,onQClick:r.forwardClick,onQChange:r.forwardChange,onQKeyPress:r.forwardKeyPress,onQFocus:r.forwardFocus,onQBlur:r.forwardBlur,onQMouseOver:r.forwardMouseOver,onQMouseOut:r.forwardMouseOut},null,8,["element","model","config","onQDesignSystemCallback","onQCallback","onQClick","onQChange","onQKeyPress","onQFocus","onQBlur","onQMouseOver","onQMouseOut"])):(Object(wo["openBlock"])(),Object(wo["createElementBlock"])(wo["Fragment"],{key:1},[Object(wo["createTextVNode"])(Object(wo["toDisplayString"])(e.qErrorMessage),1)],64))],2)}var el={name:"qComponentSet",mixins:[No],data:function(){return{checked:!1,qErrorMessage:"No varient matching!",debug:!1}},computed:{isActive:function(){if(this.isDesignSystemRoot)return void 0===this.modelValue?this.checked:this.modelValue;if(this.element){var e=this.dataBindingInput;return!0===e}return this.checked},selectedChild:function(){if(this.element&&this.$parent){var e=this.getMatchesByVarient();if(u.log(2,"qComponentSet.selectedChild() ",e),ne(this.element)&&this.element.children.length>1){if(2==e.length)return this.isActive?e[1]:e[0];u.error("qComponentSet.selectedChild() > More than 2 matches for toggle",e)}else{if(1===e.length)return e[0];u.error("qComponentSet.selectedChild() > More than 1 macthes",e)}}return null},justifyContent:function(){return!(!T(this.element)||!this.config.css.justifyContentInWrapper)},wrapperPlaceHolders:function(){return[1,2,3,4,5,6,7,8]}},methods:{toggle:function(e){if(this.element){var t=!this.isActive;this.onValueChange(t,"default"),u.log(4,"qComponentSet.toggle(element) > "+this.dataBindingInputPath,t),this.checked=t}else this.checked=!this.checked,this.$emit("change",this.checked),this.$emit("update:modelValue",this.checked),u.log(5,"qComponentSet.toggle() >"+this.checked);this.onClick(e)},getMatchesByVarient:function(){var e=this,t=this.getPresentPropertyKeys();u.log(4,"qComponentSet.toggle(element) > "+this.element.name,t);var n=this.element.children.filter((function(n){if(n.variant){var o=!0;return t.forEach((function(t){var i=n.variant[t];o&=i===e.$parent.$props[t]})),o}return!1}));return n},getPresentPropertyKeys:function(){var e=this;if(this.element&&this.element.children.length>1){var t=this.element.children[0];if(t.variant)return Object.keys(t.variant).filter((function(t){var n=e.$parent.$props[t];return void 0!==n}))}return[]},getMatchByProps:function(){var e=this,t=this.element.children.filter((function(t){if(t.variant){var n=!0;for(var o in t.variant){var i=t.variant[o];n&=i===e.$parent.$props[o]}return n}return!1}));return t},getValue:function(){return this.isActive},forwardClick:function(e,t,n){this.$emit("qClick",e,t,n)},forwardChange:function(e,t,n){this.$emit("qChange",e,t,n)},forwardFocus:function(e,t,n){this.$emit("qFocus",e,t,n)},forwardBlur:function(e,t,n){this.$emit("qBlur",e,t,n)},forwardMouseOver:function(e,t,n){this.$emit("qMouseOver",e,t,n)},forwardMouseOut:function(e,t,n){this.$emit("qMouseOut",e,t,n)},forwardKeyPress:function(e,t,n){this.$emit("qKeyPress",e,t,n)},forwardCallback:function(e,t,n){this.$emit("qCallback",e,t,n)}},mounted:function(){}};n("109d");const tl=Ao()(el,[["render",Zc]]);var nl=tl;function ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function il(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function rl(e,t,n){return t&&il(e.prototype,t),n&&il(e,n),e}var al=function(){function e(){ol(this,e),this.server="https://quant-ux.com",this.components={}}return rl(e,[{key:"register",value:async function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u.log(2,"QUXDesignSystem.register()",e),e.substring&&(t.imageFolder="".concat(this.server,"/rest/images/").concat(e,"/"),e=await this.loadAppByKey(e)),t.addDefaultDatabinding=!1,this.onAppLoaded(e,Ks.merge(Ks.getDefault(),t),n)}},{key:"onAppLoaded",value:function(e,t,n){var o=this;u.log(3,"QUXDesignSystem.onAppLoaded() > enter",e,t);var i=(new Date).getTime(),r=t.designletPrefix?t.designletPrefix:"",a=new Et(e,t),s=a.transform();s=new Lt(t).runTree(s,!0),this.initComponents();var c=new yo(t,t.imageFolder);s.screens.forEach((function(i){i.children.forEach((function(i){o.registerElement(e,i,t,c,n,r)}))}));var l=(new Date).getTime();u.log(-1,"DesignSystem.onAppLoaded() > exit",l-i)}},{key:"registerElement",value:function(e,t,n,o,i,r){u.log(-1,"QUXDesignSystem.registerElement() > enter","<".concat(r).concat(t.name,">/"));var a=["label","value","options","href"];i&&te(t)&&this.fixComponentSet(t,a),this.components["".concat(r).concat(t.name)]={name:"".concat(r).concat(t.name),element:t},t.isDesignSystemRoot=!0,So.a.component(r+t.name,{props:a,data:function(){return{count:0}},render:function(n){return n(t.qtype,{props:{element:t,model:e,lbl:this.label,value:this.value,url:this.href,optionList:this.options}},this.$slots.default)}}),this.createCSS(e,t,n,o)}},{key:"fixComponentSet",value:function(e,t){if(e.qtype="qComponentSet",e.type="ComponentSet",e.children&&e.children.length>0){var n=e.children[0];n.variant&&Object.keys(n.variant).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),u.log(3,"QUXDesignSystem.fixComponentSet() > component set","<".concat(e.name," >/"),t)}}},{key:"createCSS",value:function(e,t,n,o){u.log(4,"QUXDesignSystem.createCSS() > register",t.name),Fe(t,t.cssClass),t.cssSelector="."+t.cssClass;var i=o.generateDesignSystemRoot(t),r=[];r=Object.values(i).flatMap((function(e){return e.map((function(e){return e.code}))})),r=r.join("\n"),Co.write(r,e.id+"-"+t.id)}},{key:"loadAppByKey",value:async function(e){u.log(2,"QUXDesignSystem.loadAppByKey() > enter",e);var t="".concat(this.server,"/rest/invitation/").concat(e,"/app.json"),n=(new Date).getTime(),o=await fetch(t);if(200===o.status){var i=await o.json();return u.log(-1,"QUXDesignSystem.loadAppByKey() > exit",(new Date).getTime()-n),i}u.error("QUXDesignSystem.loadAppByKey() > Could not load")}},{key:"mergeConfig",value:function(e){return e.imageFolder||(e.imageFolder="/img/"),e}},{key:"initComponents",value:function(){So.a.component("qHotSpot",Ho),So.a.component("qButton",Ho),So.a.component("qBox",Ho),So.a.component("qLabel",ei),So.a.component("qContainer",pi),So.a.component("qIcon",ii),So.a.component("qTextBox",li),So.a.component("qPassword",li),So.a.component("qTextArea",xr),So.a.component("qRepeater",bi),So.a.component("qImage",Ci),So.a.component("qCheckBox",ji),So.a.component("qRadioBox",Vi),So.a.component("qRadioBox2",Vi),So.a.component("qRadioGroup",_i),So.a.component("qCheckBoxGroup",Ei),So.a.component("qToggleButton",$i),So.a.component("qSwitch",tr),So.a.component("qDropDown",gr),So.a.component("qMobileDropDown",gr),So.a.component("qStepper",jr),So.a.component("qHSlider",Dr),So.a.component("qDate",Qr),So.a.component("qDateDropDown",Yr),So.a.component("qSegmentButton",oa),So.a.component("qRating",ca),So.a.component("qIconToggle",pa),So.a.component("qLabeledIconToggle",pa),So.a.component("qTypeAheadTextBox",xa),So.a.component("qTable",Fa),So.a.component("qPaging",Va),So.a.component("qBarChart",Wa),So.a.component("qPieChart",Wa),So.a.component("qMultiRingChart",Wa),So.a.component("qRingChart",Wa),So.a.component("qVector",$a),So.a.component("qTimeline",es),So.a.component("qUpload",rs),So.a.component("qCamera",ls),So.a.component("qChildrenToggle",ys),So.a.component("qUploadPreview",ps),So.a.component("qComponentSet",nl)}}]),e}(),sl=new al;function cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ll(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ul(e,t,n){return t&&ll(e.prototype,t),n&&ll(e,n),e}var dl=function(){function e(){cl(this,e)}return ul(e,[{key:"register",value:async function(e,t,n){u.log(-1,"FigmaDesignSystem.register()",e);var o=e;if(e&&t){n||(n={}),n.figma={pinnRight:!1};var i=new g(t,n);o=await i.get(e,!0),o=i.setBackgroundImages(o)}return sl.register(o,n,!0)}}]),e}(),hl=new dl,pl={install:function(e){Jc.install(e)}};function fl(e){return new g(e)}function gl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Et(e,t,n)}function ml(){return new Lt}function yl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new yo(e,t)}function bl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return new Co(e,t)}function vl(e){u.setLogLevel(e)}async function xl(e,t,n){return hl.register(e,t,n)}async function kl(e,t,n){return hl.register(e,t,n)}async function Cl(e,t){return sl.register(e,t)}async function wl(e,t){return sl.register(e,t)}function Sl(){return sl}t["default"]=pl},fb8c:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-icon{display:inline-block}",""]),e.exports=t},fc9f:function(e,t,n){"use strict";n("d0ae")},ffe2:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".qux-upload-preview{background-size:100%;background-repeat:no-repeat}.qux-upload-preview.qux-upload-preview-border{border:0 solid #333}",""]),e.exports=t}})}));
//# sourceMappingURL=luisa-vue3.umd.min.js.map