PageSourceSearch

https://www.philips-hue.com/etc.clientlibs/signify-brand-hue/clien…ms-module.ea75418a9b8f4fe980bd.chunk.min.js

js philips-hue.com collected 2026-09-24 08:42:45 UTC 54,508 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_signify_hue=self.webpackChunk_signify_hue||[]).push([[6193],{2607:function(e,t,a){a.r(t),a.d(t,{default:function(){return Re}});var r=a(7607),l=a(5623),i=a(6066),o=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let n=class extends r.lD{get localValue(){return this.value||""}set localValue(e){this.$emit("input",e)}get effectiveMax(){if(this.item.preventFuture)return(new Date).toISOString().split("T")[0]}onBeforeInput(e){"numeric"===this.inputMode&&null!==e.data&&(/^\d+$/.test(e.data)||e.preventDefault())}get inputMode(){if(this.item.inputmode)return this.item.inputmode;switch(this.item.inputType){case"email":case"tel":return this.item.inputType;case"number":return"numeric";default:return}}};o([(0,r.kv)({required:!0})],n.prototype,"item",void 0),o([(0,r.kv)()],n.prototype,"translations",void 0),o([(0,r.kv)({default:""})],n.prototype,"errorMessage",void 0),o([(0,r.kv)({default:""})],n.prototype,"errorId",void 0),o([(0,r.Kx)("input",{type:String})],n.prototype,"value",void 0),n=o([(0,r.uA)({name:"Input"})],n);var s=n,u=a(2881),c=(0,u.A)(s,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"input"},[e._t("label",function(){return[t("label",{staticClass:"input__label",attrs:{for:e.item.name}},[e._v("\n            "+e._s(e.item.label)+"\n            "),e.item.required?t("span",{attrs:{"aria-hidden":"true"}},[e._v("*")]):e._e()])]}),e._v(" "),t("input",e._b({directives:[{name:"model",rawName:"v-model.trim",value:e.localValue,expression:"localValue",modifiers:{trim:!0}}],staticClass:"input__input",attrs:{id:e.item.name,"data-hj-suppress":"",name:e.item.name,type:e.item.inputType||"text",inputmode:e.inputMode,autocorrect:"off",spellcheck:"false",maxlength:"40","aria-invalid":e.errorMessage?"true":"false"},domProps:{value:e.localValue}
1,on:{beforeinput:e.onBeforeInput,input:function(t){t.target.composing||(e.localValue=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}},"input",{...e.item.required?{required:!0}:{},...e.item.disabled?{disabled:!0}:{},...e.item.placeholder?{placeholder:e.item.placeholder}:{},...e.effectiveMax?{max:e.effectiveMax}:{},...e.item.autocomplete?{autocomplete:e.item.autocomplete}:{},...e.item.validation?.pattern?{pattern:e.item.validation.pattern}:{},...e.errorMessage?{"aria-describedby":e.errorId}:{}},!1)),e._v(" "),e.errorMessage?t("p",{staticClass:"error",attrs:{id:e.errorId,role:"alert"}},[e._v("\n        "+e._s(e.errorMessage)+"\n    ")]):e._e()],2)},[],!1,null,null,null).exports,d=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let p=class extends r.lD{get localValue(){return this.value||""}set localValue(e){this.$emit("input",e)}};d([(0,r.kv)({required:!0})],p.prototype,"item",void 0),d([(0,r.kv)()],p.prototype,"translations",void 0),d([(0,r.kv)({default:""})],p.prototype,"errorMessage",void 0),d([(0,r.kv)({default:""})],p.prototype,"errorId",void 0),d([(0,r.Kx)("input",{type:String})],p.prototype,"value",void 0),p=d([(0,r.uA)({name:"TextArea"})],p);var m=p,h=(0,u.A)(m,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"textarea"},[e._t("label",function(){return[t("label",{staticClass:"textarea__label",attrs:{for:e.item.name}},[e._v("\n            "+e._s(e.item.label)+"\n            "),e.item.required?t("span",{attrs:{"aria-hidden":"true"}},[e._v("*")]):e._e()])]}),e._v(" "),t("textarea",e._b({directives:[{name:"model",rawName:"v-model.trim",value:e.localValue,expression:"localValue",modifiers:{trim:!0}}],staticClass:"textarea__textarea",attrs:{id:e.item.name,"data-hj-suppress":"",name:e.item.name,"aria-invalid":e.errorMessage?"true":"false"},domProps:{value:e.localValue},on:{input:function(t){t.target.composing||(e.localValue=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}},"textarea",{...e.item.required?{required:!0}:{},...e.item.disabled?{disabled:!0}:{},...e.item.placeholder?{placeholder:e.item.placeholder}:{},...e.item.rows?{rows:e.item.rows}:{},...e.errorMessage?{"aria-describedby":e.errorId}:{}},!1)),e._v(" "),e.errorMessage?t("p",{staticClass:"error",attrs:{id:e.errorId,role:"alert"}},[e._v("\n        "+e._s(e.errorMessage)+"\n    ")]):e._e()],2)},[],!1,null,null,null).exports,f=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let b=class extends r.lD{get localValue(){return this.value||""}set localValue(e){this.$emit("input",e)}};f([(0,r.kv)({required:!0})],b.prototype,"item",void 0),f([(0,r.kv)()],b.prototype,"translations",void 0),f([(0,r.kv)({default:""})],b.prototype,"errorMessage",void 0),f([(0,r.kv)({default:""})],b.prototype,"errorId",void 0),f([(0,r.Kx)("input",{type:String})],b.prototype,"value",void 0),b=f([(0,r.uA)({name:"Select"})],b);var v=b,y=(0,u.A)(v,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"select",class:{"select--error":e.errorMessage,"select--disabled":e.item.disabled}},[e._t("label",function(){return[t("label",{staticClass:"select__label",attrs:{for:e.item.name}},[e._v("\n            "+e._s(e.item.label)+"\n            "),e.item.required?t("span",{staticClass:"select__required",attrs:{"aria-hidden":"true"}},[e._v("*")]):e._e()])]}),e._v(" "),t("select",e._b({directives:[{name:"model",rawName:"v-model.trim",value:e.localValue,expression:"localValue",modifiers:{trim:!0}}],staticClass:"select__select",attrs:{id:e.item.name,name:e.item.name,"aria-invalid":e.errorMessage?"true":"false"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.localValue=t.target.multiple?a:a[0]}}},"select",{...e.item.required?{required:!0}:{},...e.item.disabled?{disabled:!0}:{},...e.errorMessage?{"aria-describedby":e.errorId}:{}}
1,!1),[t("option",{attrs:{value:"",disabled:"",hidden:""}},[e._v(e._s(e.item.placeholder||"-- Please select --"))]),e._v(" "),e._l(e.item.options,function(a){return t("option",{key:a.value,domProps:{value:a.value}},[e._v("\n            "+e._s(e.translations?.[a.translation]??a.label)+"\n        ")])})],2),e._v(" "),e.errorMessage?t("p",{staticClass:"error",attrs:{id:e.errorId,role:"alert"}},[e._v("\n        "+e._s(e.errorMessage)+"\n    ")]):e._e()],2)},[],!1,null,null,null).exports,g=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let _=class extends r.lD{get localValue(){return this.value||""}set localValue(e){this.$emit("input",e)}};g([(0,r.kv)({required:!0})],_.prototype,"item",void 0),g([(0,r.kv)()],_.prototype,"translations",void 0),g([(0,r.kv)({default:""})],_.prototype,"errorMessage",void 0),g([(0,r.kv)({default:""})],_.prototype,"errorId",void 0),g([(0,r.Kx)("input",{type:String})],_.prototype,"value",void 0),_=g([(0,r.uA)({name:"Radio"})],_);var q=_,C=(0,u.A)(q,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("fieldset",{staticClass:"radio"},[e._t("label",function(){return[t("legend",{staticClass:"radio__group-label"},[e._v("\n            "+e._s(e.item.label)+"\n            "),e.item.required?t("span",{attrs:{"aria-hidden":"true"}},[e._v("*")]):e._e()])]}),e._v(" "),t("div",{staticClass:"radio__group",class:[{"radio__group--horizontal":"horizontal"===e.item.layout}]},e._l(e.item.options,function(a){return t("div",{key:a.value,staticClass:"radio__wrapper"},[t("input",e._b({directives:[{name:"model",rawName:"v-model.trim",value:e.localValue,expression:"localValue",modifiers:{trim:!0}}],staticClass:"radio__radio",attrs:{id:`${e.item.name}-${a.value}`,name:e.item.name,type:"radio","aria-invalid":e.errorMessage?"true":"false"},domProps:{value:a.value,checked:e._q(e.localValue,a.value)},on:{change:function(t){e.localValue=a.value}}},"input",{...e.item.required?{required:!0}:{},...e.item.disabled?{disabled:!0}:{},...e.errorMessage?{"aria-describedby":e.errorId}:{}},!1)),e._v(" "),t("label",{staticClass:"radio__label",attrs:{for:`${e.item.name}-${a.value}`}},[e._v("\n                "+e._s(a.label)+"\n            ")])])}),0),e._v(" "),e.errorMessage?t("p",{staticClass:"error",attrs:{id:e.errorId,role:"alert"}},[e._v("\n        "+e._s(e.errorMessage)+"\n    ")]):e._e()],2)},[],!1,null,null,null).exports,x=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let R=class extends r.lD{};x([(0,r.kv)({required:!0})],R.prototype,"item",void 0),x([(0,r.kv)()],R.prototype,"translations",void 0),x([(0,r.kv)({default:""})],R.prototype,"errorMessage",void 0),x([(0,r.kv)({default:""})],R.prototype,"errorId",void 0),x([(0,r.Kx)("input",{type:Boolean,default:!1})],R.prototype,"value",void 0),R=x([(0,r.uA)({name:"Checkbox"})],R);var w=R,P=(0,u.A)(w,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"checkbox-wrapper"},[t("div",{staticClass:"checkbox"},[t("input",e._b({staticClass:"checkbox__checkbox",attrs:{id:e.item.name,"aria-invalid":e.errorMessage?"true":"false",type:"checkbox"},domProps:{value:e.item.value,checked:e.value},on:{change:function(t){return e.$emit("input",t.target.checked)}}},"input",{...e.item.required?{required:!0}:{},...e.item.disabled?{disabled:!0}:{},...e.errorMessage?{"aria-describedby":e.errorId}:{}},!1)),e._v(" "),e._t("label",function(){return[t("label",{staticClass:"checkbox__label",attrs:{for:e.item.name},domProps:{innerHTML:e._s(e.item.label)}})]})],2),e._v(" "),e.errorMessage?t("p",{staticClass:"error",attrs:{id:e.errorId,role:"alert"}}
1,[e._v("\n        "+e._s(e.errorMessage)+"\n    ")]):e._e()])},[],!1,null,null,null).exports,L=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let O=class extends r.lD{get localValue(){return(this.item.value??this.value)||""}set localValue(e){this.$emit("input",e)}};L([(0,r.kv)({required:!0})],O.prototype,"item",void 0),L([(0,r.Kx)("input",{type:String})],O.prototype,"value",void 0),O=L([(0,r.uA)({name:"Hidden"})],O);var T=O,k=(0,u.A)(T,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.localValue,expression:"localValue",modifiers:{trim:!0}}],attrs:{id:e.item.name,type:"hidden",name:e.item.name},domProps:{value:e.localValue},on:{input:function(t){t.target.composing||(e.localValue=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})},[],!1,null,null,null).exports,N=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let S=class extends r.lD{get selectedFiles(){return this.value??[]}get isMultiple(){return this.maxFiles>1}get isMaxFilesReached(){return this.selectedFiles.length>=this.maxFiles}get chooseButtonLabel(){return this.translations?.fileUploadLabel??"Choose file(s)"}get fileInvalidMessage(){const e=this.item.translations?.invalid;return e?this.translations?.[e]:void 0}get hasValidationError(){return this.hasError||Boolean(this.errorMessage)}get ariaDescribedBy(){const e=[];return this.errorMessage&&this.errorId&&e.push(this.errorId),e.length>0?e.join(" "):void 0}removeFile(e){if(e<0||e>=this.selectedFiles.length)return;const t=[...this.selectedFiles];t.splice(e,1),this.$emit("error",""),this.$emit("input",t),this.fileInput.value=""}handleChange(e){const t=e.target,a=t.files;if(!a||0===a.length)return;const r=[...a],l=[...this.selectedFiles,...r];if(this.maxFiles&&l.length>this.maxFiles){const e=this.maxFiles-this.selectedFiles.length,a=e>0?`Maximum ${String(this.maxFiles)} files allowed (${String(e)} remaining)`:"Maximum number of files reached",r=this.fileInvalidMessage??a;return this.$emit("error",r),void(t.value="")}let i=0;const o=1024;for(const e of l)i+=e.size;if(i>3145728){const e=`Total file size (${(i/o/o).toFixed(2)} MB) exceeds maximum allowed (${String(3)} MB).`,a=this.translations?.fileUploadSizeExceeded??e;return this.$emit("error",a),void(t.value="")}this.$emit("error",""),this.$emit("input",l),t.value=""}};N([(0,r.oS)("fileInput")],S.prototype,"fileInput",void 0),N([(0,r.kv)({required:!0})],S.prototype,"item",void 0),N([(0,r.kv)({default:!1})],S.prototype,"hasError",void 0),N([(0,r.kv)({default:""})],S.prototype,"errorId",void 0),N([(0,r.kv)({default:""})],S.prototype,"errorMessage",void 0),N([(0,r.kv)({default:1})],S.prototype,"maxFiles",void 0),N([(0,r.kv)()],S.prototype,"accept",void 0),N([(0,r.kv)()],S.prototype,"translations",void 0),N([(0,r.Kx)("input",{default:()=>[]})],S.prototype,"value",void 0),S=N([(0,r.uA)({name:"FileUpload"})],S);var M=S,E=(0,u.A)(M,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"file-upload"},[e._t("label",function(){return[t("label",{staticClass:"file-upload__label",attrs:{for:e.item.name}},[e._v("\n            "+e._s(e.item.label)+"\n            "),e.item.required?t("span",{attrs:{"aria-hidden":"true"}},[e._v("*")]):e._e()])]}),e._v(" "),t("input",{ref:"fileInput",staticClass:"visually-hidden",attrs:{id:e.item.name,type:"file",name:e.item.name,multiple:e.isMultiple,accept:e.accept,required:e.item.required&&0===e.selectedFiles.length,"aria-describedby":e.ariaDescribedBy,"aria-invalid":String(e.hasValidationError),tabindex:"-1"},on:{change:e.handleChange}}),e._v(" "),e.isMaxFilesReached?e._e():t("button",{staticClass:"button button--secondary",attrs:{type:"button"},on:{click:function(t){return e.fileInput.click()}}},[e._v("\n        "+e._s(e.chooseButtonLabel)+"\n    ")]),e._v(" "),e.selectedFiles.length>0?t("ul",{staticClass:"file-upload__list"},e._l(e.selectedFiles,function(a,r){return t("li",{key:`${a.name}-${r}`,staticClass:"file-upload__item"},[t("span",{staticClass:"file-upload__file-name"},[e._v(e._s(a.name))]),e._v(" "),t("button",{staticClass:"file-upload__remove",attrs:{type:"button","aria-label":`Remove ${a.name}`},on:{click:function(t){return e.removeFile(r)}}},[e._v("\n                ⓧ\n            ")])])}
1),0):e._e(),e._v(" "),e.errorMessage?t("p",{staticClass:"error",attrs:{id:e.errorId,role:"alert"}},[e._v("\n        "+e._s(e.errorMessage)+"\n    ")]):e._e()],2)},[],!1,null,null,null).exports,F=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let I=class extends r.lD{constructor(){super(...arguments),this.isDefaultOpen=this.defaultOpen,this.isActive=!1,this.position=this.popoverPosition}defaultOpenChanges(){this.isDefaultOpen=this.defaultOpen}mounted(){this.getPosition(),document.addEventListener("scroll",this.getPosition)}beforeDestroy(){document.removeEventListener("scroll",this.getPosition)}get tooltipClassNames(){const e=[];return this.isDefaultOpen&&e.push("tooltip--default-open"),e}get showTooltip(){return this.isDefaultOpen||this.isActive&&!this.disabled||this.isShowViaTimeout}get popoverClassNames(){const e="tooltip__popover";return[e,`${e}--${this.position}`]}get activatorListeners(){const e={};return this.openOnHover?(e.mouseenter=this.showTooltipOnEvent,e.mouseleave=this.hideTooltipOnEvent):e.click=e=>{e.stopPropagation(),this.isActive=!this.isActive,this.isActive&&this.adjustForViewport()},e}toggleTooltipOnFocus(e){e?this.showTooltipOnEvent():this.hideTooltipOnEvent()}showTooltipOnEvent(){this.isActive=!0,this.adjustForViewport(),this.$emit("onTooltipEnter")}hideTooltipOnEvent(){this.isActive=!1,this.isDefaultOpen=!1}adjustForViewport(){this.$nextTick(()=>{const e=this.$refs.popover;if(!e)return;const t=e.getBoundingClientRect();t.left<0?this.position="right":t.right>window.innerWidth&&(this.position="left")})}getPosition(){const e=this.$refs.tooltip;document.querySelector(".sticky-navigation")&&e&&e.getBoundingClientRect().top<150?this.position="bottom":this.position=this.popoverPosition}};F([(0,r.kv)({default:!1})],I.prototype,"openOnHover",void 0),F([(0,r.kv)({default:!1})],I.prototype,"disabled",void 0),F([(0,r.kv)({default:!1})],I.prototype,"isShowViaTimeout",void 0),F([(0,r.kv)({default:!1})],I.prototype,"defaultOpen",void 0),F([(0,r.kv)({default:"top"})],I.prototype,"popoverPosition",void 0),F([(0,r.ox)("defaultOpen")],I.prototype,"defaultOpenChanges",null),I=F([(0,r.uA)({name:"tooltip"})],I);var A=I,D=(0,u.A)(A,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",e._g({ref:"tooltip",staticClass:"tooltip",class:e.tooltipClassNames},e.activatorListeners),[e._t("activator"),e._v(" "),e.showTooltip?t("div",{ref:"popover",class:e.popoverClassNames},[e._t("tooltip")],2):e._e()],2)}
1,[],!1,null,null,null).exports,$=a(3807);const W="text",j="textarea",V="select",U="radio",B="checkbox",H="hidden",z="file",Q="label",K={CONTACT:"contact",SERVICE:"service",CONSUMER:"consumer",CONSUMER_REPLACEMENT:"consumerReplacement"};var Z=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let J=class extends r.lD{get tooltipText(){const e=this.item.translations?.tooltip;if(e&&this.translations)return this.translations[e]}get isRequired(){return Boolean(this.item.required)}get computedLabelClass(){if(this.labelClass)return this.labelClass;switch(this.item.type){case W:return"input__label";case j:return"textarea__label";case V:return"select__label";case U:return"radio__group-label";case B:return"checkbox__label";case z:return"file-upload__label";default:return}}get forAttribute(){if("label"===this.tag)return this.item.name}};Z([(0,r.kv)({default:"label"})],J.prototype,"tag",void 0),Z([(0,r.kv)()],J.prototype,"labelClass",void 0),Z([(0,r.kv)({required:!0})],J.prototype,"item",void 0),Z([(0,r.kv)()],J.prototype,"translations",void 0),J=Z([(0,r.uA)({name:"label-with-tooltip",components:{Tooltip:D,Icon:$.default}})],J);var X=J,Y=(0,u.A)(X,function(){var e=this,t=e._self._c;e._self._setupProxy;return t(e.tag,{tag:"component",class:e.computedLabelClass,attrs:{for:e.forAttribute}},[e._t("default"),e._v(" "),e.isRequired&&"checkbox"!==e.item.type?t("span",{attrs:{"aria-hidden":"true"}},[e._v("*")]):e._e(),e._v(" "),e.tooltipText?t("Tooltip",{attrs:{"open-on-hover":!0},scopedSlots:e._u([{key:"activator",fn:function(){return[t("Icon",{attrs:{"icon-name":"question-mark-bullet","icon-size":"sm"}})]},proxy:!0},{key:"tooltip",fn:function(){return[t("div",{domProps:{innerHTML:e._s(e.tooltipText)}})]},proxy:!0}],null,!1,2069229108)}):e._e()],2)},[],!1,null,null,null).exports,G=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let ee=class extends r.lD{constructor(){super(...arguments),this.isReady=!1,this.scriptLoaded=!1}mounted(){this.siteKey&&this.loadReCaptchaScript()}loadReCaptchaScript(){if(this.scriptLoaded||document.querySelector('script[src*="recaptcha"]'))return void this.waitForRecaptchaReady();const e=document.createElement("script");e.src=`https://www.google.com/recaptcha/enterprise.js?render=${this.siteKey}`,e.async=!0,e.defer=!0,e.addEventListener("load",()=>{this.scriptLoaded=!0,this.waitForRecaptchaReady()}),e.addEventListener("error",()=>{l.A.error("Failed to load ReCaptcha script")}),document.head.append(e)}async waitForRecaptchaReady(){return window.grecaptcha?.enterprise?new Promise(e=>{window.grecaptcha.enterprise.ready(()=>{this.isReady=!0,this.$emit("ready"),e()})}):(await new Promise(e=>{requestAnimationFrame(e)}),this.waitForRecaptchaReady())}async execute(){if(!this.isReady||!window.grecaptcha?.enterprise)throw new Error("ReCaptcha is not ready");try{return await window.grecaptcha.enterprise.execute(this.siteKey,{action:this.action})}catch(e){throw l.A.error("ReCaptcha execution error:",e),e}}get ready(){return this.isReady}};G([(0,r.kv)({required:!0})],ee.prototype,"siteKey",void 0),G([(0,r.kv)({default:"submit"})],ee.prototype,"action",void 0),ee=G([(0,r.uA)({name:"recaptcha"})],ee);var te=ee,ae=(0,u.A)(te,function(){var e=this._self._c;this._self._setupProxy;return e("div",{staticClass:"recaptcha-container"})},[],!1,null,null,null).exports,re=JSON.parse('{"items":[{"name":"Question","label":"Message","type":"textarea","required":true,"fullWidth":true,"placeholder":"Tell us about your inquiry...","rows":4,"translations":{"label":"yourQuestion","placeholder":"yourQuestionPlaceholder","tooltip":"yourQuestionHover","required":"yourQuestionRequired"}},{"name":"firstName","label":"First Name","type":"text","required":true,"placeholder":"Jane","autocomplete":"given-name","translations":{"label":"firstNameLabel","placeholder":"firstNamePlaceholder","required":"firstNameRequired"}},{"name":"lastName","label":"Last Name","type":"text","required":true,"placeholder":"Doe","autocomplete":"family-name","translations":{"label":"lastNameLabel","placeholder":"lastNamePlaceholder","required":"lastNameRequired"}},{"name":"Email","label":"Email Address","type":"text","inputType":"email","required":true,"placeholder":"[email protected]","autocomplete":"email","translations":{"label":"emailLabel","placeholder":"emailPlaceholder","required":"emailRequired","email":"emailInvalid"}},{"name":"officePhone","label":"Telephone number","type":"text","inputType":"tel","required":true,"placeholder":"+31 20 123 4567","autocomplete":"tel","translations":{"label":"contact","placeholder":"contactPlaceholder","required":"contactRequired","phone":"contactInvalid"}},{"name":"Company","label":"Company","type":"text","required":true,"placeholder":"Signify","autocomplete":"organization","translations":{"label":"company","placeholder":"companyPlaceholder","required":"companyRequired"}},{"name":"jobTitle","label":"Function Title","type":"text","required":true,"placeholder":"CEO","autocomplete":"organization-title","translations":{"label":"jobTitleLabel","placeholder":"jobTitlePlaceholder","required":"jobTitleRequired"}},{"name":"Country","label":"Country","type":"select","required":true,"autocomplete":"country","translations":{"label":"country","placeholder":"countryPlaceholder","required":"countryRequired"}},{"name":"City","label":"City","type":"text","required":false,"showWhen":{"field":"Country","values":["NL"]},"placeholder":"City","autocomplete":"address-level2","translations":{"label":"cityLabel","placeholder":"cityPlaceholder"}},{"name":"ZipCode","label":"Zip code","type":"text","required":true,"showWhen":{"field":"Country","values":["CH","CL"]},"placeholder":"Zip code","autocomplete":"postal-code","translations":{"label":"zipCodeLabel","placeholder":"zipCodePlaceholder","required":"zipCodeRequired"}},{"name":"Language","label":"Language","type":"select","required":true,"showWhen":{"field":"Country","values":["BE","CA","CH","ID"]},"options":[],"translations":{"label":"languageLabel","placeholder":"languagePlaceholder"}},{"name":"Region","label":"State/Province/Region","type":"select","required":true,"autocomplete":"address-level1","placeholder":"Select state/province/region","showWhen":{"field":"Country","values":["BR","CA","IN","IT","US"]},"options":[],"translations":{"label":"stateLabel","placeholder":"statePlaceholder","required":"stateRequired"}},{"name":"File","label":"File upload","type":"file","required":false,"translations":{"label":"fileUploadLabel","tooltip":"fileUploadAreaLabel","invali
1d":"fileUploadInvalid"}},{"name":"emailConsent","label":"Subscribe to newsletter","type":"checkbox","fullWidth":true,"value":"Yes","translations":{"label":"newsletter"}},{"name":"termsOfUse","label":"I agree to the terms & conditions","type":"checkbox","fullWidth":true,"required":true,"value":"true","translations":{"label":"termsOfUse"}}]}'),le=JSON.parse('{"items":[{"name":"Question","label":"Message","type":"textarea","required":true,"fullWidth":true,"placeholder":"Tell us about your inquiry...","rows":4,"translations":{"label":"yourQuestion","placeholder":"yourQuestionPlaceholder","tooltip":"yourQuestionHover","required":"yourQuestionRequired"}},{"name":"firstName","label":"First Name","type":"text","required":true,"placeholder":"Jane","autocomplete":"given-name","translations":{"label":"firstNameLabel","placeholder":"firstNamePlaceholder","required":"firstNameRequired"}},{"name":"lastName","label":"Last Name","type":"text","required":true,"placeholder":"Doe","autocomplete":"family-name","translations":{"label":"lastNameLabel","placeholder":"lastNamePlaceholder","required":"lastNameRequired"}},{"name":"Email","label":"Email Address","type":"text","inputType":"email","required":true,"placeholder":"[email protected]","autocomplete":"email","translations":{"label":"emailLabel","placeholder":"emailPlaceholder","required":"emailRequired","email":"emailInvalid"}},{"name":"officePhone","label":"Telephone number","type":"text","inputType":"tel","required":true,"placeholder":"+31 20 123 4567","autocomplete":"tel","translations":{"label":"contact","placeholder":"contactPlaceholder","required":"contactRequired","phone":"contactInvalid"}},{"name":"Company","label":"Company","type":"text","required":true,"placeholder":"Signify","autocomplete":"organization","translations":{"label":"company","placeholder":"companyPlaceholder","required":"companyRequired"}},{"name":"jobTitle","label":"Function Title","type":"text","required":true,"placeholder":"CEO","autocomplete":"organization-title","translations":{"label":"jobTitleLabel","placeholder":"jobTitlePlaceholder","required":"jobTitleRequired"}},{"name":"Country","label":"Country","type":"select","required":true,"autocomplete":"country","translations":{"label":"country","placeholder":"countryPlaceholder","required":"countryRequired"}},{"name":"ZipCode","label":"Zip code","type":"text","required":true,"showWhen":{"field":"Country","values":["CH","CL"]},"placeholder":"Zip code","autocomplete":"postal-code","translations":{"label":"zipCodeLabel","placeholder":"zipCodePlaceholder","required":"zipCodeRequired"}},{"name":"Language","label":"Language","type":"select","required":true,"showWhen":{"field":"Country","values":["BE","CH"]},"options":[],"translations":{"label":"languageLabel","placeholder":"languagePlaceholder"}},{"name":"Region","label":"State/Province/Region","type":"select","required":true,"autocomplete":"address-level1","placeholder":"Select state/province/region","showWhen":{"field":"Country","values":["BR","CA","IN","IT","US"]},"options":[],"translations":{"label":"stateLabel","placeholder":"statePlaceholder","required":"stateRequired"}},{"name":"Brands","label":"Brands","type":"select","required":false,"showWhen":{"field":"Country","values":["BR","CA","IN","US"]},"translations":{"label":"brandLabel","placeholder":"brandPlaceholder","tooltip":"brandTooltip"}},{"name":"reference","label":"Customer reference","type":"text","required":false,"placeholder":"900654321","translations":{"label":"customerReferenceLabel","placeholder":"customerReferencePlaceholder","tooltip":"customerReferenceTooltip"}},{"name":"File","label":"File upload","type":"file","required":false,"translations":{"label":"fileUploadLabel","tooltip":"fileUploadAreaLabel","invalid":"fileUploadInvalid"}},{"name":"emailConsent","label":"Subscribe to newsletter","type":"checkbox","fullWidth":true,"value":"Yes","translations":{"label":"newsletter"}},{"name":"termsOfUse","label":"I agree to the terms & conditions","type":"checkbox","fullWidth":true,"required":true,"value":"true","translations":{"label":"termsOfUse"}}]}'),ie=JSON.parse('{"items":[{"name":"Title","label":"Title","type":"select","required":true,"fullWidth":true,"options":[{"label":"Mr.","value":"Mr","translation":"salutationMr"},{"label":"Mrs.","value":"Mrs","translation":"salutationMrs"},{"label":"Ms.","value":"Ms","translation":"salutationMs"}],"translations":{"label":"salutationLabel","placeholder":"salutationCh
1oose"}},{"name":"firstName","label":"First Name","type":"text","required":true,"fullWidth":true,"placeholder":"Jane","autocomplete":"given-name","translations":{"label":"firstNameLabel","placeholder":"firstNamePlaceholder","required":"firstNameRequired"}},{"name":"lastName","label":"Last Name","type":"text","required":true,"fullWidth":true,"placeholder":"Doe","autocomplete":"family-name","translations":{"label":"lastNameLabel","placeholder":"lastNamePlaceholder","required":"lastNameRequired"}},{"name":"phoneNr","label":"Telephone number","type":"text","inputType":"tel","required":true,"fullWidth":true,"placeholder":"+31 20 123 4567","autocomplete":"tel","translations":{"label":"contact","placeholder":"contactPlaceholder","required":"contactRequired","phone":"contactInvalid"}},{"name":"Email","label":"Email Address","type":"text","inputType":"email","required":true,"fullWidth":true,"placeholder":"[email protected]","autocomplete":"email","translations":{"label":"emailLabel","placeholder":"emailPlaceholder","required":"emailRequired","email":"emailInvalid"}},{"name":"Street","label":"Street","type":"text","placeholder":"Street","autocomplete":"street-address","translations":{"label":"streetLabel","placeholder":"streetLabel"}},{"name":"HouseNr","label":"Number","type":"text","placeholder":"123","autocomplete":"address-line2","translations":{"label":"numberLabel","placeholder":"numberLabel"}},{"name":"City","label":"City","type":"text","fullWidth":true,"placeholder":"City","autocomplete":"address-level2","translations":{"label":"cityLabel","placeholder":"cityPlaceholder"}},{"name":"ZipCode","label":"Zip code","type":"text","fullWidth":true,"placeholder":"Zip code","autocomplete":"postal-code","translations":{"label":"zipCodeLabel","placeholder":"zipCodePlaceholder"}},{"name":"Country","label":"Country","type":"select","required":true,"fullWidth":true,"autocomplete":"country","translations":{"label":"country","placeholder":"countryPlaceholder","required":"countryRequired"}},{"name":"State","label":"State/Province/Region","type":"select","required":true,"fullWidth":true,"autocomplete":"address-level1","placeholder":"Select state/province/region","showWhen":{"field":"Country","values":["BR","CA","IN","MX","US"]},"options":[],"translations":{"label":"stateLabel","placeholder":"statePlaceholder","required":"stateRequired"}},{"name":"Question","label":"Message","type":"textarea","required":true,"fullWidth":true,"placeholder":"Tell us about your inquiry...","rows":4,"translations":{"label":"yourQuestion","placeholder":"yourQuestionPlaceholder","required":"yourQuestionRequired"}},{"name":"sectionHeader","label":"My Product Data","type":"label","translations":{"label":"productDetails"}},{"name":"ModelNr","label":"Product model","type":"text","inputmode":"numeric","required":false,"fullWidth":true,"placeholder":"Product model","validation":{"pattern":"[0-9]+"},"translations":{"label":"modelNumber","placeholder":"modelNumber"}},{"name":"SerialNr","label":"Serial number","type":"text","required":false,"fullWidth":true,"placeholder":"Serial number","translations":{"label":"serialNumber","placeholder":"serialNumber"}},{"name":"PurchaseDate","label":"Date of purchase","type":"text","inputType":"date","required":false,"fullWidth":true,"preventFuture":true,"translations":{"label":"purchaseDateLabel"}},{"name":"File","label":"File upload","type":"file","required":false,"fullWidth":true,"translations":{"label":"fileUploadLabel","invalid":"UploadValidationConsumer"}},{"name":"Permission","label":"May we contact you in the future to help us to improve the service","type":"checkbox","fullWidth":true,"value":"true","translations":{"label":"consentLabel"}}]}'),oe=JSON.parse('{"items":[{"name":"sectionHeader_1","label":"Contact Details","type":"label","translations":{"label":"contactDetails"}},{"name":"Title","label":"Title","type":"select","required":true,"fullWidth":true,"options":[{"label":"Mr.","value":"Mr","translation":"salutationMr"},{"label":"Mrs.","value":"Mrs","translation":"salutationMrs"},{"label":"Ms.","value":"Ms","translation":"salutationMs"}],"translations":{"label":"salutationLabel","placeholder":"salutationCh
1oose"}},{"name":"firstName","label":"First Name","type":"text","required":true,"fullWidth":true,"placeholder":"Jane","autocomplete":"given-name","translations":{"label":"firstNameLabel","placeholder":"firstNamePlaceholder","required":"firstNameRequired"}},{"name":"lastName","label":"Last Name","type":"text","required":true,"fullWidth":true,"placeholder":"Doe","autocomplete":"family-name","translations":{"label":"lastNameLabel","placeholder":"lastNamePlaceholder","required":"lastNameRequired"}},{"name":"phoneNr","label":"Telephone number","type":"text","inputType":"tel","required":true,"fullWidth":true,"placeholder":"+31 20 123 4567","autocomplete":"tel","translations":{"label":"contact","placeholder":"contactPlaceholder","required":"contactRequired","phone":"contactInvalid"}},{"name":"Email","label":"Email Address","type":"text","inputType":"email","required":true,"fullWidth":true,"placeholder":"[email protected]","autocomplete":"email","translations":{"label":"emailLabel","placeholder":"emailPlaceholder","required":"emailRequired","email":"emailInvalid"}},{"name":"confirmEmail","label":"Email Address","type":"text","inputType":"email","required":true,"fullWidth":true,"placeholder":"[email protected]","autocomplete":"email","validation":{"matchField":"Email"},"translations":{"label":"confirmEmailLabel","placeholder":"emailPlaceholder","required":"emailRequired","email":"emailInvalid"}},{"name":"sectionHeader_2","label":"Shipping Address","type":"label","translations":{"label":"shippingAddress","subLabel":"addressRequired"}},{"name":"Street","label":"Street","type":"text","required":false,"placeholder":"Street","autocomplete":"street-address","translations":{"label":"streetLabel","placeholder":"streetLabel"}},{"name":"HouseNr","label":"Number","type":"text","required":false,"placeholder":"123","autocomplete":"address-line2","translations":{"label":"numberLabel","required":"numberRequired"}},{"name":"City","label":"City","type":"text","required":false,"fullWidth":true,"placeholder":"City","autocomplete":"address-level2","translations":{"label":"cityLabel","placeholder":"cityPlaceholder","required":"cityRequired"}},{"name":"ZipCode","label":"Zip code","type":"text","required":false,"fullWidth":true,"placeholder":"Zip code","autocomplete":"postal-code","translations":{"label":"zipCodeLabel","placeholder":"zipCodePlaceholder","required":"zipCodeRequired"}},{"name":"Country","label":"Country","type":"select","required":true,"fullWidth":true,"autocomplete":"country","translations":{"label":"country","placeholder":"countryPlaceholder","required":"countryRequired"}},{"name":"State","label":"State/Province/Region","type":"select","required":true,"fullWidth":true,"autocomplete":"address-level1","placeholder":"Select state/province/region","showWhen":{"field":"Country","values":["BR","CA","IN","MX","US"]},"options":[],"translations":{"label":"stateLabel","placeholder":"statePlaceholder","required":"stateRequired"}},{"name":"sectionHeader_3","label":"Number of replacement products","type":"label","translations":{"label":"replacementNumber","subLabel":"selectReplacementNumber"}},{"name":"RRQuantity","label":"Number of power supplies to be replaced","type":"select","required":true,"fullWidth":true,"options":[{"label":"1","value":"1"},{"label":"2","value":"2"},{"label":"3","value":"3"}],"translations":{"label":"quantity","required":"quantityRequired"}},{"name":"sectionHeader_4","label":"Your Proof","type":"label","translations":{"label":"yourProofLabel","subLabel":"proofText"}},{"name":"ModelNr","label":"Model number(s)","type":"text","required":true,"fullWidth":true,"placeholder":"Model number(s)","translations":{"label":"modelNumbers","placeholder":"modelNumbers","required":"modelNumbersRequired"}},{"name":"SerialNr","label":"Date Code(s)","type":"text","required":true,"fullWidth":true,"translations":{"label":"dateLabel","placeholder":"dateLabel","required":"dateRequired"}},{"name":"fileAttachment","label":"Product picture(s)","type":"file","required":true,"fullWidth":true,"translations":{"label":"pictureUploadLabel","required":"pictureUploadRequired","invali
1d":"UploadValidationConsumer"}},{"name":"sectionHeader_5","label":"Comments","type":"label","translations":{"label":"commentsLabel"}},{"name":"Question","label":"Message","type":"textarea","required":false,"fullWidth":true,"placeholder":"Tell us about your inquiry...","rows":4,"translations":{"label":"yourQuestion","placeholder":"commentsPlaceholder"}},{"name":"sectionHeader_6","label":"Submitting the request","type":"label","translations":{"label":"submittingRequest"}},{"name":"Permission","label":"May we contact you in the future to help us to improve the service","type":"checkbox","fullWidth":true,"value":"true","translations":{"label":"consentLabel"}}]}'),ne=a(7239);const se={required:"This field is required",email:"Please enter a valid email address",regex:"This field format is invalid",phone:"Please enter a valid phone number"};const ue=new Set(["label","placeholder","tooltip","subLabel"]);function ce(e,t="Select option"){if(!e||0===e.length)return[{value:"",label:t}];return[{value:"",label:t},...e.map(({value:e,text:t})=>({value:e,label:t??e}))]}function de(e,t,a){return e?ce(t?.[e],a):[]}function pe(){if(!window.signify?.config)return null;const{country:e,locale:t}=window.signify.config;if(t){const a=t.split("_"),r=a[0]??"en",l=a[1]??e??"us";return{language:r,country:l,locale:`${r}_${l.toUpperCase()}`}}return e&&"string"==typeof e?{language:"en",country:e,locale:`en_${e.toUpperCase()}`}:null}function me(e,t){const a={};return e.required&&(a.required=e.type!==B||{allowFalse:!1}),function(e,t){e.type===W&&"email"===e.inputType&&(t.email=!0)}(e,a),function(e,t){e.type===W&&"tel"===e.inputType&&(t.phone=!0)}(e,a),function(e,t){e.validation?.pattern&&(t.regex={pattern:e.validation.pattern})}(e,a),function(e,t,a){e.validation?.customValidator&&((0,i.X$)(`custom_${e.name}`,{validate:e.validation.customValidator,message:"This field is invalid"}),t[`custom_${e.name}`]=!0);if(e.validation?.matchField){const r=e.validation.matchField;(0,i.X$)(`match_${e.name}`,{validate:e=>{const t=a?a[r]:void 0,l=e=>{if(null==e)return"";if("object"==typeof e)try{return JSON.stringify(e)}catch{return String(e)}return String(e)};return l(e)===l(t)},message:"Fields do not match"}),t[`match_${e.name}`]=!0}}(e,a,t),a}var he=a(6660),fe=a.n(he),be=a(2656);async function ve(e,t,a,r,i){t.redirectUrl&&i&&function(e,t){if(!HTMLScriptElement.supports("speculationrules"))return;const a=document.createElement("script");a.setAttribute("type","speculationrules"),a.textContent=JSON.stringify({prerender:[{urls:[e]}]}),t.append(a)}(t.redirectUrl,i);const o={...e};r&&(o.recaptchaToken=r);const n=(s=o,Object.values(s).some(e=>Array.isArray(e)&&e.length>0&&e[0]instanceof File));var s;const u=n?function(e){const t=new FormData;for(const[a,r]of Object.entries(e))if(Array.isArray(r)&&r.length>0&&r[0]instanceof File)for(const e of r)t.append(r.length>1?`${a}[]`:a,e);else null!=r&&t.append(a,String(r));return t}(o):o,c=await(0,be.$)();try{const e=await fe().request({url:a,method:"POST",data:u,headers:{"Content-Type":n?"multipart/form-data":"application/json",...c}});return l.A.info("Form submission successful:",e),{success:!0,data:e.data}}catch(e){const t=e;return t.response?(l.A.error("Error response data:",t.response.data),l.A.error("Error response status:",t.response.status)):t.request?(l.A.error("Error request:",t.request),l.A.error("CORS error likely:",t.message)):l.A.error("Error message:",t.message),{success:!1,error:t}}}const ye=["@aol.com","@gmail.com","@hotmail.co.uk","@hotmail.com","@hotmail.fr","@msn.com","@orange.fr","@wanadoo.fr","@yahoo.com","@yahoo.fr"];var ge=function(e,t,a,r){var l,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(l=e[n])&&(o=(i<3?l(o):i>3?l(t,a,o):l(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};let _e=class extends r.lD{constructor(){super(...arguments),this.formData={},this.submitting=!1,this.submitted=!1,this.customErrors={},this.showEmailB2BWarning=!1,this.buildValidationRules=me,this.FormV
1ariation=K,this.currentLocale=pe(),this.countryOptions=[],this.brandsOptions=[]}get formStructure(){switch(this.config.variation){case K.CONTACT:return re;case K.CONSUMER:return ie;case K.CONSUMER_REPLACEMENT:return oe;default:return le}}get allItemsResult(){return function(e){const{serviceItems:t,translations:a,countryOptions:r,brandsOptions:l,formLists:i,formItems:o,formData:n,translationPlaceholders:s}=e,u=[...t];for(const e of u)a&&(e.translations?.label&&(e.label=a[e.translations.label]??e.label??""),e.translations?.placeholder&&(e.placeholder=a[e.translations.placeholder]??e.placeholder??""),e.type===Q&&e.translations?.subLabel&&(e.subLabel=a[e.translations.subLabel]??e.subLabel));u.push(...Object.entries(o??{}).filter(([,e])=>e).map(([e,t])=>({name:e,type:H,value:t})));let c=[];return{items:u.map(e=>{if("Country"===e.name&&e.type===V)return{...e,options:r};if("Brands"===e.name&&e.type===V)return{...e,options:l};if("Language"===e.name&&e.type===V){const t=de({CA:"webform-ca-language-list",BE:"webform-be-language-list",CH:"webform-ch-language-list",ID:"webform-id-language-list"}[n.Country]??null,i,s.language);return c=t,{...e,options:t}}if(("State"===e.name||"Region"===e.name)&&e.type===V){const t=de({US:"webform-us-region-list",CA:"webform-ca-region-list",IT:"webform-it-region-list",IN:"webform-in-region-list",BR:"webform-br-region-list"}[n.Country]??null,i,s.state);return{...e,options:t}}return e}),languageOptions:c}}({serviceItems:this.formStructure.items,translations:this.translations,countryOptions:this.countryOptions,brandsOptions:this.brandsOptions,formLists:this.formLists,formData:this.formData,...this.formItems?{formItems:this.formItems}:{},translationPlaceholders:{state:this.translations.statePlaceholder??"Select state/province/region",language:this.translations.languagePlaceholder??"Select language"}})}get items(){return this.allItemsResult.items}get languageOptions(){return this.allItemsResult.languageOptions}get visibleItems(){return function(e,t){const{countryOptions:a,brandsOptions:r,languageOptions:l,formLists:i,formData:o}=t;return e.filter(e=>{if("Country"===e.name&&0===a.length)return!1;if("Brands"===e.name&&0===r.length)return!1;if("Language"===e.name&&(!i||0===l.length))return!1;if(("Region"===e.name||"State"===e.name)&&!i)return!1;if(!e.showWhen)return!0;const t=o[e.showWhen.field];return e.showWhen.values.includes(String(t))})}(this.items,{countryOptions:this.countryOptions,brandsOptions:this.brandsOptions,languageOptions:this.languageOptions,formLists:this.formLists??{},formData:this.formData}).map(e=>{if(e.type===Q){const t="string"==typeof e.label?e.label:"";return{...e,labelText:this.stripHtml(t),subLabelText:e.subLabel?this.stripHtml(e.subLabel):void 0}}return e})}onEmailChange(){clearTimeout(this.emailWarningTimer);this.emailWarningTimer=setTimeout(()=>{this.showEmailB2BWarning=this.isConsumerEmailDomain()},500)}beforeDestroy(){clearTimeout(this.emailWarningTimer)}isConsumerEmailDomain(){if(this.config.variation===K.CONSUMER||this.config.variation===K.CONSUMER_REPLACEMENT)return!1;const e=this.formData.Email,t="string"==typeof e?e.trim():"";if(!t||!this.translations.emailB2bWarning)return!1;const a=t.toLowerCase();return ye.some(e=>a.endsWith(e))}created(){if(function(e="en",t,a){const r=Object.fromEntries(Object.entries(t??{}).filter(([,e])=>void 0!==e)),l={...se,...r};(0,i.X$)("required",ne.required),(0,i.X$)("email",ne.email),(0,i.X$)("phone",{validate:e=>/^\+?(?=.*\d)[\d\s().-]{7,20}$/.test(e)}),(0,i.X$)("regex",{validate:(e,t)=>{const a=t;return!a.pattern||new RegExp(a.pattern).test(e)},params:["pattern"]}),(0,i.kg)(e,{messages:l,...a&&Object.keys(a).length>0?{fields:a}:{}})}(this.currentLocale?.language??"en",{required:this.translations.requiredField,email:this.translations.emailInvalid,phone:this.translations.contactInvalid},function(e,t){const a={};for(const r of e){if(!r.translations)continue;const e={};for(const[a,l]of Object.entries(r.translations)){if(ue.has(a)||!l)continue;const r=t[l];"string"==typeof r&&(e[a]=r)}Object.keys(e).length>0&&(a[r.name]=e)}return a}(this.formStructure.items,this.translations)),this.updateRedirectUrl(),this.formLists?.countries&&this.formLists.countries.length>0){const e=this.formLists.countries.map(e=>e.value);this.countryOptions=function(e,t="Select country"){const a=pe()?.language??"en";let r=null;"undefined"!=typeof Intl&&Intl.DisplayNames&&(r=new Intl.DisplayNames([a],{type:"region"}));const l=e.map(e=>{let t=e;if(r)try{t=r.of(e)??e}catch{t=e}return{value:e,label:t}});return l.sort((e,t)=>
1e.label.localeCompare(t.label)),[{value:"",label:t},...l]}(e)}this.brandsOptions=this.buildOptionsFromList("webform-brands-list",this.translations.brandPlaceholder??"Select brand");const e=function(e,t){const a={};for(const r of e){if(r.type===Q)continue;let e="";r.type===B?e=!1:r.type===z?e=null:r.type===H&&r.value?e=r.value:"Country"===r.name&&t?.country?e=t.country:"Language"===r.name&&t?.language&&(e=t.language),a[r.name]=e}return a}(this.items,this.currentLocale);this.formData={...e}}updateRedirectUrl(){if(!this.config.redirectUrl)return;const e=window.location.href.split("//")[1].split("/"),t=e.slice(1).indexOf("contact"),a=this.config.redirectUrl.split("/").at(-1);this.redirectUrl=`/${e.splice(1,t+1).join("/")}/contact-us/${a}`}resolveComponent(e){switch(e.type){case W:return"Input";case j:return"TextArea";case V:return"Select";case U:return"Radio";case B:return"Checkbox";case z:return"FileUpload";default:return"Input"}}stripHtml(e){if("string"!=typeof e||!e)return"";const t=[];let a=!1;for(const r of e)"<"===r?a=!0:">"===r?a=!1:a||t.push(r);return t.join("").trim()}async onSubmit(){if(!await this.isFormValid())return;this.submitting=!0;const e=await this.getReCaptchaToken();if(null===e)return void(this.submitting=!1);const t=await this.executeFormSubmission(e);if(t.success){const e=t.data;if(this.hasValidResponse(e))return void this.handleSuccess();this.handleSubmissionError(e.response)}else{const e=t.error,a=e?.response?.data;this.handleSubmissionError(a?.response)}this.submitting=!1}async isFormValid(){const e=this.$refs.observer;return!e||await e.validate()}async getReCaptchaToken(){if(!this.recaptchaEnabled||!this.recaptchaKey)return;const e=this.$refs.recaptcha;if(e)try{return await e.execute()}catch(e){return l.A.error("ReCaptcha error:",e),null}}async executeFormSubmission(e){const t=this.$refs.webForm,a={...this.config,...this.redirectUrl?{redirectUrl:this.redirectUrl}:{}},r={...this.formData,honeyname:this.$refs.honeynameField.value??"",leadPriority:this.$refs.leadPriorityField.value??"",locale:this.$refs.localeField.value??"",language:this.formData.language??this.currentLocale?.language??""};return await ve(r,a,this.endpoint,e,t)}hasValidResponse(e){return!("error"===e.status)&&(void 0===e.code||200===e.code)}handleSubmissionError(e){const t=e??this.translations.submitError??"An error occurred. Please try again.";alert(t)}handleSuccess(){this.redirectUrl?window.location.href=this.redirectUrl:this.submitted=!0}handleCustomError(e,t){t?this.$set(this.customErrors,e,t):this.$delete(this.customErrors,e)}buildOptionsFromList(e,t){const a=this.formLists?.[e];return a&&0!==a.length?ce(a,t):[]}};ge([(0,r.kv)({required:!0})],_e.prototype,"config",void 0),ge([(0,r.kv)({required:!0})],_e.prototype,"translations",void 0),ge([(0,r.kv)()],_e.prototype,"formLists",void 0),ge([(0,r.kv)()],_e.prototype,"formItems",void 0),ge([(0,r.kv)({required:!0})],_e.prototype,"endpoint",void 0),ge([(0,r.kv)({default:!1})],_e.prototype,"recaptchaEnabled",void 0),ge([(0,r.kv)({default:""})],_e.prototype,"recaptchaKey",void 0),ge([(0,r.ox)("formData.Email")],_e.prototype,"onEmailChange",null),_e=ge([(0,r.uA)({name:"webforms-container",components:{Input:c,TextArea:h,Select:y,Radio:C,Checkbox:P,Hidden:k,FileUpload:E,LabelWithTooltip:Y,ReCaptcha:ae,ValidationObserver:i.Ce,ValidationProvider:i.LW}})],_e);var qe=_e,Ce=(0,u.A)(qe,function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"webform-container"},[e.submitted?t("div",{staticClass:"webform__success",attrs:{role:"status","aria-live":"polite"}},[e._v("\n        "+e._s(e.translations.submitThankYou)+"\n    ")]):[e.translations.webformsTitle?t("h2",{staticClass:"heading-2",domProps:{innerHTML:e._s(e.translations.webformsTitle)}}):e._e(),e._v(" "),e.translations.webformsSubtitle?t("p",{domProps:{innerHTML:e._s(e.translations.webformsSubtitle)}}):e._e(),e._v(" "),t("ValidationObserver",{ref:"observer",attrs:{slim:""},scopedSlots:e._u([{key:"default",fn:function({invalid:a}){return[t("form",{ref:"webForm",staticClass:"webform",attrs:{autocomplete:"on"},on:{submit:function(t){return t.preventDefault(),e.onSubmit.apply(null,arguments)}}},[e._l(e.visibleItems,function(a){return["hidden"===a.type?t("Hidden",{key:a.name,attrs:{item:a},model:{value:e.formData[a.name],callback:function(t){e.$set(e.formData,a.name,t)},expression:"formData[item.name]"}}):"label"===a.type?t("div",{key:a.name,staticClass:"webform--full-width"},[t("div",{staticClass:"heading-4"},[e._v(e._s(a.labelText||""))]),e._v(" "),a.subLabelText?t("p",{key:a.name,staticClass:"body-copy-1"},[e._v("\n                            "+e._s(a.subLabelText)+"\n                        ")]):e._e(
1)]):t("ValidationProvider",{key:a.name,class:a.fullWidth&&"webform--full-width",attrs:{name:a.name,rules:e.buildValidationRules(a,e.formData),tag:"div"},scopedSlots:e._u([{key:"default",fn:function({errors:r}){return["file"===a.type?t("FileUpload",{attrs:{item:a,"has-error":!!r[0]||!!e.customErrors[a.name],"error-id":`${a.name}-error`,"error-message":r[0]||e.customErrors[a.name],"max-files":e.config.maxFiles,accept:e.config.acceptedFormats,translations:e.translations},on:{error:function(t){return e.handleCustomError(a.name,t)}},scopedSlots:e._u([{key:"label",fn:function(){return[t("LabelWithTooltip",{attrs:{item:a,translations:e.translations}},[e._v("\n                                    "+e._s(a.label)+"\n                                ")])]},proxy:!0}],null,!0),model:{value:e.formData[a.name],callback:function(t){e.$set(e.formData,a.name,t)},expression:"formData[item.name]"}}):t(e.resolveComponent(a),{tag:"component",attrs:{item:a,translations:e.translations,"error-message":r[0]||e.customErrors[a.name],"error-id":`${a.name}-error`},scopedSlots:e._u([{key:"label",fn:function(){return[t("LabelWithTooltip",{attrs:{tag:"radio"===a.type?"legend":"label",item:a,translations:e.translations}},["checkbox"===a.type?t("span",{domProps:{innerHTML:e._s(a.label)}}):[e._v(e._s(a.label))]],2)]},proxy:!0}],null,!0),model:{value:e.formData[a.name],callback:function(t){e.$set(e.formData,a.name,t)},expression:"formData[item.name]"}})]}}],null,!0)})]}),e._v(" "),e.config.variation!==e.FormVariation.CONSUMER&&e.config.variation!==e.FormVariation.CONSUMER_REPLACEMENT&&e.translations.privacyNotice?t("div",{staticClass:"webform--full-width",domProps:{innerHTML:e._s(e.translations.privacyNotice)}}):e._e(),e._v(" "),e.config.variation!==e.FormVariation.CONSUMER&&e.config.variation!==e.FormVariation.CONSUMER_REPLACEMENT||!e.translations.privacyNoticeConsumer?e._e():t("div",{staticClass:"webform--full-width",domProps:{innerHTML:e._s(e.translations.privacyNoticeConsumer)}}),e._v(" "),t("div",{staticClass:"webform--hidden-field",attrs:{"aria-hidden":"true"}},[t("input",{ref:"honeynameField",attrs:{id:"honeyname",type:"text",name:"honeyname",autocomplete:"off"}}),e._v(" "),t("input",{ref:"leadPriorityField",attrs:{id:"leadPriority",type:"text",name:"leadPriority",autocomplete:"off"}})]),e._v(" "),t("input",{ref:"localeField",attrs:{type:"hidden",name:"locale",readonly:""},domProps:{value:e.currentLocale?.locale}}),e._v(" "),e.recaptchaEnabled&&e.recaptchaKey?t("ReCaptcha",{ref:"recaptcha",attrs:{"site-key":e.recaptchaKey}}):e._e(),e._v(" "),e.showEmailB2BWarning?t("div",{staticClass:"webform__notice webform--full-width",attrs:{role:"status","aria-live":"polite"},domProps:{innerHTML:e._s(e.translations.emailB2bWarning)}}):e._e(),e._v(" "),t("div",{staticClass:"webform--full-width"},[t("button",{staticClass:"button",attrs:{type:"submit",disabled:e.submitting||a}},[e._v("\n                        "+e._s(e.submitting?e.translations.submitting:e.translations.submitButton)+"\n                    ")])])],2)]}}])})]],2)},[],!1,null,null,null),xe=Ce.exports;var Re={getComponentDefinition:()=>xe}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.