var __awaiter=this&&this.__awaiter||function(e,t,n,r){function l(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function u(e){try{o(r.next(e))}catch(t){i(t)}}function a(e){try{o(r["throw"](e))}catch(t){i(t)}}function o(e){e.done?n(e.value):l(e.value).then(u,a)}o((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,l,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return o([e,t])}}function o(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,l&&(i=u[0]&2?l["return"]:u[0]?l["throw"]||((i=l["return"])&&i.call(l),0):l.next)&&!(i=i.call(l,u[1])).done)return i;if(l=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;l=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1];i=u;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(u);break}if(i[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(a){u=[6,a];l=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-0bfb8721.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.r;n=e.h;r=e.g}],execute:function(){var l=e("bce_element_slider",function(){function e(e){var n=this;t(this,e);this.value=null;this.handleInput=function(e){e.cancelBubble=true;var t=e.target;n.value=t.value;n.el.dispatchEvent(new Event("input",{bubbles:true}))}}e.prototype.validate=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=this.el.shadowRoot.querySelector("bce-slider");return[2,t.validate(e)]}))}))};e.prototype.render=function(){if(!this.template)return null;return[n("p",null,this.handler.t("question")),n("div",null,n("label",null,this.handler.t("minText")),n("label",{class:"bold"},this.value),n("label",null,this.handler.t("maxText"))),n("bce-slider",{block:true,value:this.value,validation:this.template.required?"required":"",step:this.template.step,min:this.template.min,max:this.template.max,onInput:this.handleInput}),n("div",null,n("label",null,this.template.min),n("label",null,this.template.max))]};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host p{font-weight:500;text-align:center}\@media screen and (min-width: 1024px){:host p{text-align:left}}:host div{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .bold{font-weight:bold}"},enumerable:true,configurable:true});return e}())}}}));