PageSourceSearch

https://www.agro.basf.md/resources/js/basfvuecomponents_js.js?1775037857433

js basf.md collected 2026-10-08 18:13:32 UTC 1,721,340 bytes, 1 lines download raw bytes

1!function(t){function e(e){for(var a,o,r=e[0],l=e[1],c=e[2],d=0,p=[];d<r.length;d++)o=r[d],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&p.push(s[o][0]),s[o]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(t[a]=l[a]);for(u&&u(e);p.length;)p.shift()();return n.push.apply(n,c||[]),i()}function i(){for(var t,e=0;e<n.length;e++){for(var i=n[e],a=!0,r=1;r<i.length;r++){var l=i[r];0!==s[l]&&(a=!1)}a&&(n.splice(e--,1),t=o(o.s=i[0]))}return t}var a={},s={0:0},n=[];function o(e){if(a[e])return a[e].exports;var i=a[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=a,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)o.d(i,a,function(e){return t[e]}.bind(null,a));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var r=window.webpackJsonp=window.webpackJsonp||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var u=l;n.push(["Vtdi",1]),i()}({"+08B":function(t,e){},"+4/P":function(t,e){},"+4kH":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n}));var a=Object.freeze({WIZARD_NEXT:"wizardNext",WIZARD_PREVIOUS:"wizardPrevious",WIZARD_COMPLETE:"wizardComplete",WIZARD_ADD_ENTRY:"wizardAddEntry",WIZARD_HIDE_ENTRY:"wizardHideEntry",WIZARD_REFRESH_COMP:"wizardRefreshComp",UPDATE_FROM_BAR:"updateFromBar",UPDATE_SSP:"updateSSP",SEARCH_INPUT:"searchInput",REMOVE_CROP:"removeCrop",REMOVE_CROP_SSP:"removeCropSSP",UPDATE_FPT_FILTER:"updateFptFilter",UPDATE_FILTER:"updateFilter",GDPR_OVERLAY_CHECK_ONETRUST_COOKIES:"gdprOverlayCheckOneTrustCookies"}),s=Object.freeze({UPDATE_ADDRESS:"updateAddress",UPDATE_CROP:"updateCrop",UPDATE_TOGGLE:"updateToogle",UPDATE_NEWS_CATEGORY:"updateNewsCategory",UPDATE_INDICATION:"updateIndication"}),n=Object.freeze({UPDATE_ADDRESS:"updateSessionAddress",UPDATE_ACCOUNT_LOOKUP:"updateAccountLookup"})},"+M0h":function(t,e){},"+QCA":function(t,e){},"+Qdj":function(t,e){},"+h6n":function(t,e){},"+igm":function(t,e,i){"use strict";var a=i("oCYn");e.a=new a.default},"/BUg":function(t,e){},"/TNg":function(t,e){},"/lPZ":function(t,e){},"/yCW":function(t,e){},0:function(t,e){},"04v1":function(t,e){},"06iw":function(t,e,i){"use strict";var a={name:"Modal",props:{id:{type:String,default:""},keyboard:{type:Boolean,default:!0},backdrop:{type:[Boolean,String],default:!0},title:{type:String,default:""},text:{type:String,default:""},textCancel:{type:String,default:""},textSave:{type:String,default:""},buttonsLeftRight:{type:Boolean,default:!1},icon:{type:String,default:""}}},s=i("JFUb");var n=function(t){i("vtjR")},o=Object(s.a)(a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal fade basic-modal",attrs:{id:t.id,"data-backdrop":t.backdrop,"data-keyboard":t.keyboard,"aria-labelledby":t.id,tabindex:"-1",role:"dialog"}},[i("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[i("div",{staticClass:"modal-content"},[t.title?i("div",{staticClass:"modal-header"},[i("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLongTitle"},domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t._m(0)]):t._e(),t._v(" "),i("div",{staticClass:"modal-body"},[!t.title&&t.icon?i("i",{staticClass:"icon mr-2",class:"icon-"+t.icon,attrs:{"aria-hidden":"true"}}):t._e(),t._v("\n        "+t._s(t.text)+"\n      ")]),t._v(" "),t.textCancel||t.textSave?i("div",{staticClass:"modal-footer",class:{"justify-content-between":t.buttonsLeftRight}},[t.textCancel?i("button",{staticClass:"btn modal-cancel",attrs:{type:"button","data-dismiss":"modal"},domProps:{innerHTML:t._s(t.textCancel)},on:{click:function(e){return t.$emit("cancel")}}}):t._e(),t._v(" "),t.textSave?i("button",{staticClass:"btn modal-save",attrs:{type:"button","data-dismiss":"modal"},domProps:{innerHTML:t._s(t.textSave)},on:{click:function(e){return t.$emit("confirm")}}}):t._e()]):t._e()])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})])}],!1,n,"data-v-49481b29",null);e.a=o.exports},"0Pi9":function(t,e){},"10df":function(t,e){},"1YHr":function(t,e){},"1kpS":function(t,e){},"2FlJ":function(t,e){},"2YGV":function(t,e){},"2YRT":function(t,e){},"34Ok":function(t,e){},"3Bh/":function(t,e){}
1,"3IOm":function(t,e,i){"use strict";var a={name:"BaseField",props:{formId:{type:String,default:""},name:{type:String,required:!0},labelName:{type:String,default:""},labelClassName:{type:String,default:null},tooltip:{type:String,default:""},tooltipIsHtml:{type:Boolean,default:!1},tooltipPlacement:{type:String,default:"top"},tooltipClass:{type:String,default:""},tooltipClose:{type:Boolean,default:!1},placeholder:{type:String,default:""},superscript:{type:String,default:""},subscript:{type:String,default:""},required:{type:Boolean,default:!0},displayRequiredFlag:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},doOnChangeValidation:{type:Boolean,default:!0},cucumber:{type:String,default:null}},data:function(){return{valid:!0,forceValidation:!1,errorMessage:""}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common}},watch:{doOnChangeValidation:{handler:function(t,e){!e&&t&&this.validate()}},required:{handler:function(t,e){t!==e&&this.doOnChangeValidation&&this.validate()}}},methods:{validate:function(){}}},s=i("JFUb");var n=function(t){i("h19j")},o=Object(s.a)(a,void 0,void 0,!1,n,"data-v-a8283a4c",null);e.a=o.exports},"3jcs":function(t,e){},"3ud0":function(t,e){},"44qZ":function(t,e){},"4Aon":function(t,e){},"4dRW":function(t,e){},"4p+F":function(t,e){},"5E6e":function(t,e){},"5Xxd":function(t,e){},"5gNZ":function(t,e){},"5hlp":function(t,e){},"5jCE":function(t,e){},"5ss+":function(t,e){},"6/Lq":function(t,e){},"6TSK":function(t,e){},"6lsj":function(t,e){},"71cE":function(t,e){},"7Nl1":function(t,e){},"8UxK":function(t,e){},"8eTJ":function(t,e){},"8pDZ":function(t,e){},"95ta":function(t,e){},"9Iqx":function(t,e){},"9oJ1":function(t,e){},B0YS:function(t,e){},BUYH:function(t,e){},BYgX:function(t,e){},COLN:function(t,e){},CUlV:function(t,e){},CYzv:function(t,e){},"Cj/m":function(t,e){},Cxdv:function(t,e){},DFYi:function(t,e){},DQBJ:function(t,e){},"Dh/Q":function(t,e){},"Dp+K":function(t,e){},DpYc:function(t,e){},E8DA:function(t,e){},EDWV:function(t,e){},EPxg:function(t,e,i){"use strict";var a=i("lSNA"),s=i.n(a),n=i("L2JU");function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var r={name:"DebugMode",props:{formId:{type:String,default:""},fieldId:{type:String,default:""},backendAttr:{type:String,default:""},salesforceAttr:{type:String,default:""},translationKey:{type:String,default:""},position:{type:String,default:"back"}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){s()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(n.c)({debugMode:function(t){return t.main.debugMode}}))},l=i("JFUb");var c=function(t){i("1YHr")},u=Object(l.a)(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.debugMode&&(t.formId||t.fieldId||t.backendAttr||t.salesforceAttr||t.translationKey)?i("div",{staticClass:"debug-mode-wrapper",class:"front"===t.position?"d-flex":"d-inline"},[i("span",{staticClass:"icon-more",class:{"mr-2":"front"===t.position}},[i("i",{attrs:{"aria-hidden":"true"}},[t.formId?i("p",{staticClass:"mb-0"},[t._v("SSP internal (form-id): "+t._s(t.formId))]):t._e(),t._v(" "),t.fieldId?i("p",{staticClass:"mb-0"},[t._v("SSP internal (field-id): "+t._s(t.fieldId))]):t._e(),t._v(" "),t.backendAttr?i("p",{staticClass:"mb-0"},[t._v("SSP internal (backend): "+t._s(t.backendAttr))]):t._e(),t._v(" "),t.salesforceAttr?i("p",{staticClass:"mb-0"},[t._v("Salesforce attribute: "+t._s(t.salesforceAttr))]):t._e(),t._v(" "),t.translationKey?i("p",{staticClass:"mb-0"},[t._v("Translation key: "+t._s(t.translationKey))]):t._e()])]),t._v(" "),t._t("default")],2):t._e()}),[],!1,c,"data-v-231c8012",null);e.a=u.exports},FPQu:function(t,e){},Fjmq:function(t,e){},"Fn+1":function(t,e){},FqMi:function(t,e){},Fx2M:function(t,e){},G1Rt:function(t,e){},G2k1:function(t,e){}
1,GdcW:function(t,e,i){"use strict";var a=i("lSNA"),s=i.n(a),n=i("L2JU");function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var r={props:{group:{type:[Object,Array],default:function(){}},showIndication:{type:Boolean,default:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){s()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(n.c)({currentPGFilter:function(t){return t.search.currentPGFilter},currentPSGFilter:function(t){return t.search.currentPSGFilter},currentPFilter:function(t){return t.search.currentPFilter},currentCGFilter:function(t){return t.search.currentCGFilter},currentCSGFilter:function(t){return t.search.currentCSGFilter},currentCFilter:function(t){return t.search.currentCFilter},currentIFilter:function(t){return t.search.currentIFilter},currentAIFilter:function(t){return t.search.currentAIFilter},defaultShowAmount:function(t){return t.search.defaultShowAmount}})),methods:{removeItemFromCurrent:function(t,e,i){for(var a=i||"",s=-1,n=0;n<t.length;n+=1)t[n].id===e.id&&(s=n);s>-1&&(t.splice(s,1),document.getElementById(a+e.id).checked=!1,this.$store.commit("search/deleteMarkedParent",e.id),this.$store.commit("search/updateShowAmount",this.defaultShowAmount)),this.$emit("remove")}}},l=i("JFUb");var c=function(t){i("ycvR")},u=Object(l.a)(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._l(t.currentPGFilter,(function(e,a){return i("button",{key:"pg_"+a+"_"+e.name,staticClass:"button button-close 111",on:{click:function(i){return t.removeItemFromCurrent(t.currentPGFilter,e,"pg_")}}},[t._v("\n    "+t._s(e.name)+"\n  ")])})),t._v(" "),t._l(t.currentPSGFilter,(function(e,a){return i("button",{key:"psg_"+a+"_"+e.name,staticClass:"button button-close",on:{click:function(i){return t.removeItemFromCurrent(t.currentPSGFilter,e,"pg_")}}},[t._v("\n    "+t._s(e.name)+"\n  ")])})),t._v(" "),t._l(t.currentPFilter,(function(e,a){return i("button",{key:"p_"+a+"_"+e.name,staticClass:"button button-close",on:{click:function(i){return t.removeItemFromCurrent(t.currentPFilter,e,"pg_")}}},[t._v("\n    "+t._s(e.name)+"\n  ")])})),t._v(" "),t._l(t.currentCGFilter,(function(e,a){return i("button",{key:"cg_"+a+"_"+e.name,staticClass:"button button-close",on:{click:function(i){return t.removeItemFromCurrent(t.currentCGFilter,e,"cg_")}}},[t._v("\n    "+t._s(e.name)+"\n  ")])})),t._v(" "),t._l(t.currentCSGFilter,(function(e,a){return i("button",{key:"csg_"+a+"_"+e.name,staticClass:"button button-close",on:{click:function(i){return t.removeItemFromCurrent(t.currentCSGFilter,e,"cg_")}}},[t._v("\n    "+t._s(e.name)+"\n  ")])})),t._v(" "),t._l(t.currentCFilter,(function(e,a){return i("button",{key:"c_"+a+"_"+e.name,staticClass:"button button-close",on:{click:function(i){return t.removeItemFromCurrent(t.currentCFilter,e,"cg_")}}},[t._v("\n    "+t._s(e.name)+"\n  ")])})),t._v(" "),t.showIndication?t._l(t.currentIFilter,(function(e){return i("button",{key:"i_"+e.name,staticClass:"button button-close",on:{click:function(i){return t.removeItemFromCurrent(t.currentIFilter,e)}}},[t._v("\n      "+t._s(e.name)+"\n    ")])})):t._e(),t._v(" "),t._l(t.currentAIFilter,(function(e){return i("button",{key:"ai_"+e.name,staticClass:"button button-close",on:{click:function(i){return t.removeItemFromCurrent(t.currentAIFilter,e)}}},[t._v("\n    "+t._s(e.name)+"\n  ")])}))],2)}),[],!1,c,"data-v-4d2b44a3",null);e.a=u.exports},Gl9T:function(t,e){},HA9I:function(t,e,i){"use strict";var a=i("+igm"),s=i("+4kH"),n=i("c+Ka"),o={name:"Loader",props:{size:{type:Number,default:50},width:{type:Number,default:40},isVisible:{type:Boolean,default:!1},isFullScreen:{type:Boolean,default:!1},dependentOn:{type:String,default:""},isInModal:{type:Boolean,default:!1}},data:function(){return{show:!1}},mounted:function(){var t=this;this.checkVisibility(),a.a.$on(s.a.UPDATE_SSP,(function(e){e===s.c.UPDATE_ACCOUNT_LOOKUP&&t.checkVisibility()}))},methods:{checkVisibility:function(){switch(this.dependentOn){case"account-lookup":this.show=!n.a.extractPostLoginFromSessionStorage()}}}},r=i("JFUb");var l=function(t){i("yZIc")},c=Object(r.a)(o,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return(t.dependentOn?t.show:t.isVisible)?i("div",{staticClass:"loader-wrap",class:{"full-screen":t.isFullScreen,"loader-in-modal":t.isInModal}},[i("div",{staticClass:"loader-style",style:{width:t.size+"px",height:t.size+"px"}},[i("svg",{attrs:{viewBox:"0 0 100 100"}},[i("polyline",{staticClass:"stroke-still",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 100,100 100,0"}}),t._v(" "),i("polyline",{staticClass:"stroke-still",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 0,0 100,0"}}),t._v(" "),i("polyline",{staticClass:"stroke-animation",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 100,100 100,0"}}),t._v(" "),i("polyline",{staticClass:"stroke-animation",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 0,0 100,0"}})])])]):t._e()}),[],!1,l,"data-v-acb69cca",null);e.a=c.exports},HNo0:function(t,e){},HzVE:function(t,e){},IEP6:function(t,e){},IEc1:function(t,e){},ILfn:function(t,e){},IiIG:function(t,e){},"IpQ+":function(t,e){},Ixys:function(t,e){},JNoy:function(t,e){},JXLB:function(t,e){}
1,Jfbw:function(t,e){},JgV7:function(t,e){},K0zB:function(t,e){},K3WY:function(t,e){},KAsr:function(t,e){},KBhG:function(t,e){},Kd3F:function(t,e){},KnpY:function(t,e){},LCaU:function(t,e){},LvDE:function(t,e){},M4n4:function(t,e){},M5ON:function(t,e){},MFCk:function(t,e){},MQMZ:function(t,e){},MWib:function(t,e){},"N9w/":function(t,e){},NDek:function(t,e){},"NF/Z":function(t,e,i){"use strict";var a=i("c+sh"),s=i("xUtq"),n=i("3IOm"),o={name:"SelectField",components:{TemplateField:a.a,VueSelect:s.a},extends:n.a,props:{value:{type:[Object,Array],default:function(){}},options:{type:[Object,Array],default:function(){}},serviceCropList:{type:[Object,Array],default:function(){}},isValid:{type:Boolean,default:!0},isNotValidMessage:{type:String,default:""},isValidMessage:{type:String,default:""}},data:function(){return{selectedValue:""}},watch:{value:function(){this.selectedValue=this.value}},mounted:function(){this.selectedValue=this.value},methods:{handleUpdate:function(t){this.selectedValue=t,this.doOnChangeValidation&&this.validate(),this.$emit("update:value",t)},validate:function(){this.disabled&&!this.forceValidation||(this.valid=!this.required||this.selectedValue&&Object.keys(this.selectedValue).length>0,this.errorMessage=this.valid?this.isValidMessage:this.commonTranslations.requiredField,this.isValid||(this.valid=!1,this.errorMessage=this.isNotValidMessage))}}},r=i("JFUb");var l=function(t){i("m+ud")},c=Object(r.a)(o,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,"display-required-flag":t.displayRequiredFlag,disabled:t.disabled}},[i("VueSelect",{attrs:{options:t.options,selected:t.selectedValue&&t.selectedValue.name,placeholder:t.placeholder,"has-error":!t.valid,"service-crop-list":t.serviceCropList,"is-disabled":t.disabled,cucumber:t.cucumber},on:{callback:function(e){return t.handleUpdate(e)}}})],1)}),[],!1,l,"data-v-2a180823",null);e.a=c.exports},O3r3:function(t,e){},O9WD:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var a=i("lwsE"),s=i.n(a),n=i("W8MJ"),o=i.n(n),r=i("ogDd"),l=function(){return o()((function t(){s()(this,t)}),[{key:"storage",get:function(){throw new Error("storage getter not implemented!")}},{key:"hasWeatherMapFilter",value:function(){return Boolean(this.storage.getItem(r.a.WEATHER_MAP_FILTER))}},{key:"writeAddressToStorage",value:function(t){var e=JSON.stringify(t);this.storage.setItem(r.a.PZ_ADDRESS,e)}},{key:"extractAddressFromStorage",value:function(){var t=!1,e=null;try{this.storage.getItem(r.a.PZ_ADDRESS)&&(e=JSON.parse(this.storage.getItem(r.a.PZ_ADDRESS)))}catch(e){t=!0}var i={};return!t&&e&&(i=e),i}},{key:"deleteAddressFromStorage",value:function(){this.storage.removeItem(r.a.PZ_ADDRESS)}},{key:"extractCoordinatesFromStorage",value:function(){var t={},e=!1,i=null;try{this.storage.getItem(r.a.PZ_ADDRESS)&&(i=JSON.parse(this.storage.getItem(r.a.PZ_ADDRESS)))}catch(t){e=!0}return!e&&i&&(t.latitude=i.latitude,t.longitude=i.longitude),t}},{key:"hasPzAddress",value:function(){return Boolean(this.storage.getItem(r.a.PZ_ADDRESS))}},{key:"hasPzCrops",value:function(){var t=!1,e=null;try{this.storage.getItem(r.a.PZ_CROPS)&&(e=JSON.parse(this.storage.getItem(r.a.PZ_CROPS)))}catch(e){t=!0}var i=!1;if(!t&&e){var a=0;e&&e.crops&&(a=e.crops.length),i=Boolean(this.storage.getItem(r.a.PZ_CROPS))&&0!==a}return i}},{key:"extractCropsFromStorage",value:function(){var t=!1,e=null;try{this.storage.getItem(r.a.PZ_CROPS)&&(e=JSON.parse(this.storage.getItem(r.a.PZ_CROPS)))}catch(e){t=!0}return!t&&e&&e.crops?{cropGroupId:e.crops}:{cropGroupId:[]}}},{key:"hasSSPCrops",value:function(){return Boolean(this.storage.getItem(r.a.SSP_CROPS))}},{key:"hasSsp",value:function(){return Boolean(this.storage.getItem(r.a.SSP))}}])}()},OKvn:function(t,e){},OQyB:function(t,e){},OfNU:function(t,e){},PH1H:function(t,e){},PVBf:function(t,e){}
1,Q2AE:function(t,e,i){"use strict";var a=i("oCYn"),s=i("L2JU"),n=i("58oi"),o=i.n(n),r=i("vDqi"),l=i.n(r);var c={namespaced:!0,state:{config:null,currentQuestion:void 0,api:null,languagecode:null,siteidentifier:"default",answerId:void 0,answerValue:"",questionId:void 0,selectedAnswerIndex:null,answersMapCount:{}},actions:{configureCurrentQuestion:function(t,e){(0,t.commit)("setCurrentQuestion",{id:e,question:t.state.config[e]})},sendPollAnswerData:function(t,e){var i=this,a=t.commit,s=t.state;return a("setAnswerId",e.answerId),a("setAnswerValue",e.answerValue),a("setQuestionId",e.questionId),a("setSelectedAnswerIndex",e.selectedAnswerIndex),new Promise((function(t,e){if(null!=s.selectedAnswerIndex){var n=s.api,o=function(t){return{headers:{Accept:"application/json","Content-Type":"application/json"},params:{siteidentifier:t.siteidentifier,languagecode:t.languagecode}}}(s),r=function(t){return{answerId:t.answerId,answerValue:t.answerValue,questionId:t.questionId}}(s);l.a.post(n,r,o).then((function(e){a("setAnswersMapCount",e.data.answersMapCount),t()}),(function(t){return e(t)})).catch((function(t){i.errors.push(t)}))}}))}},getters:{getAnswerId:function(t){return t.answerId},getAnswerValue:function(t){return t.answerValue},getQuestionId:function(t){return t.questionId},getSelectedAnswerIndex:function(t){return t.selectedAnswerIndex},getQuestionAnswered:function(t){return t.questionAnswered},getAnswersMapCount:function(t){return t.answersMapCount},getConfig:function(t){return t.config},getCurrentQuestion:function(t){return t.currentQuestion}},mutations:{setAnswerId:function(t,e){t.answerId=e},setAnswerValue:function(t,e){t.answerValue=e},setQuestionId:function(t,e){t.questionId=e},setSelectedAnswerIndex:function(t,e){t.selectedAnswerIndex=e},setAnswersMapCount:function(t,e){t.answersMapCount=e},setCurrentQuestion:function(t,e){t.currentQuestion=t.currentQuestion||{},t.currentQuestion[e.id]=e.question},setInitValuesFromFev:function(t){var e=window.pollConfig||{},i=window.snConfig?window.snConfig.apiUrl:"",a=window.snConfig?window.snConfig.language:"";t.config=e,t.api="".concat(i,"/api/opinion-poll/save-poll-answer"),t.languagecode=a}}},u=i("Qyje");function d(t){return{params:{page:t.page,cropGroupId:t.cropGroupId,latitude:t.latitude,longitude:t.longitude,newsCategoryId:t.newsCategoryId,newsCategory:t.newsCategory,indicationId:t.indicationId,count:t.count,language:t.language,country:t.country,stage:t.stage},paramsSerializer:function(t){return u.stringify(t,{arrayFormat:"repeat"})}}}function p(t){return{totalNewsCount:t.totalElements,isLast:t.last,snippets:(e=t.content,i={highlightNews:[],regularNews:[]},i.highlightNews=e.filter((function(t){return Object.prototype.hasOwnProperty.call(t,"highlightNewsSnippet")})).map((function(t){return t.highlightNewsSnippet})),i.regularNews=e.filter((function(t){return Object.prototype.hasOwnProperty.call(t,"horizontalNewsSnippet")})).map((function(t){return t.horizontalNewsSnippet})),i)};var e,i}var m={namespaced:!0,state:{page:0,count:9,language:null,cropGroupId:"",newsCategoryId:"",newsCategory:[],indicationId:"",indication:[],latitude:"",longitude:"",searchTerm:void 0,country:null,highlightNews:[],regularNews:[],totalNewsCount:0,lastPage:!1,apiUrl:null,stage:null,filterCrop:[],filterIndication:"",filterNewsCategory:""},actions:{fetchNewsByPoint:function(t,e){var i=t.commit,a=t.state,s="".concat(a.apiUrl,"/api/news/getNewsSnippets"),n=e.point.latitude||void 0;i("setLatitude",n);var o=e.point.longitude||void 0;i("setLongitude",o);var r=e.crops.toString()||void 0;i("setCropGroupId",r),i("setNewsCategoryId",e.newsCategoryId),i("setNewsCategory",e.newsCategory),i("setIndicationId",e.indicationId),i("setCount",e.count),l.a.get(s,d(a)).then((function(t){var e=p(t.data);i("setTotalNewsCount",e.totalNewsCount),i("setHighlightNews",e.snippets.highlightNews),i("setRegularNews",e.snippets.regularNews),i("setPage",0),i("setLast",e.isLast)})).catch((function(){i("setLast",!0)}))},loadMoreNews:function(t){var e=t.commit,i=t.state;e("nextPage");var a="".concat(i.apiUrl,"/api/news/getNewsSnippets"),s=d(i);l.a.get(a,s).then((function(t){var i=p(t.data);e("appendRegularNews",i.snippets.regularNews),e("setLast",i.isLast)})).catch((function(){e("setLast",!0)}))},reset:function(t){(0,t.commit)("resetState")}},getters:{getPage:function(t){return t.page},getCount:function(t){return t.count},getCropIds:function(t){return t.cropIds},getNewsCategoryId:function(t){return t.newsCategoryId},getLatitude:function(t){return t.latitude},getLongitude:function(t){return t.longitude},getSearchTerm:function(t){return t.searchTerm},getHighlightNews:function(t){return t.highlightNews},getRegularNews:function(t){return t.regularNews},getTotalNewsCount:function(t){return t.totalNewsCount},isLastPage:function(t){return t.lastPage}},mutations:{setPage:function(t,e){t.page=e},nextPage:function(t){t.page+=1},setCount:function(t,e){t.count=e},setCropGroupId:function(t,e){t.cropGroupId=e},setNewsCategoryId:function(t,e){t.newsCategoryId=e},setNewsCategory:function(t,e){t.newsCategory=e},setIndication:function(t,e){t.indication=e},setIndicationId:function(t,e){t.indicationId=e},setLatitude:function(t,e){t.latitude=e},setLongitude:function(t,e){t.longitude=e},setHighlightNews:function(t,e){t.highlightNews=[],t.highlightNews=e},setRegularNews:function(t,e){t.regularNews=[],t.regularNews=e},appendHighlightNews:function(t,e){t.highlightNews=t.highlightNews.concat(e)},appendRegularNews:function(t,e){t.regularNews=t.regularNews.concat(e)},setTotalNewsCount:function(t,e){t.totalNewsCount=e},setLast:function(t,e){t.lastPage=e},resetState:function(t){var e=window.snConfig||{};t.page=0,t.count=9,t.language=e.language,t.cropGroupId="",t.newsCategoryId="",t.latitude="",t.longitude="",t.searchTerm="",t.country=e.country,t.highlightNews=[],t.regularNews=[],t.totalNewsCount=0,t.lastPage=!1,t.apiUrl=e.apiUrl},setFilterCrop:function(t,e){t.filterCrop=e},setFilterIndication:function(t,e){t.filterIndication=e},setFilterNewsCategory:function(t,e){t.filterNewsCategory=e},setInitValuesFromFev:function(t){var e=window.snConfig||{};t.language=e.language,t.country=e.country,t.apiUrl=e.apiUrl,t.stage=e.stage}}};function h(t){return t.filter((function(t){return Object.prototype.hasOwnProperty.call(t,"snippet")})).map((function(t){return t}))}function f(t){return{isLast:t.last,snippets:(e=t.content,e.filter((function(t){return Object.prototype.hasOwnProperty.call(t,"snippet")})).map((function(t){return t.snippet}))),content:h(t.content)};var e}function g(t){var e="";t.eventType&&""!==t.eventType?t.eventTypeFilter&&""!==t.eventTypeFilter&&t.eventTypeFilter.length>0?-1!==t.eventTypeFilter.indexOf(t.eventType)&&(e=t.eventType):e=t.eventType:t.eventTypeFilter&&""!==t.eventTypeFilter&&t.eventTypeFilter.length>0&&(e=t.eventTypeFilter.join(","));var i="";return t.cropIdsFilter&&""!==t.cropIdsFilter&&t.cropIdsFilter.length>0&&(i=t.cropIdsFilter.join(",")),{params:{resultType:t.resultType,latitude:t.latitude,longitude:t.longitude,fullText:t.eventsSearchTherm,eventCategoryId:e,distance:t.distance,withInNextDays:t.date,cropGroupId:t.crops.toString(),cropId:i,page:t.page,count:t.count,language:t.language,country:t.country,stage:t.stage,eventSortDesc:t.eventSortDesc}}}var v={namespaced:!0,state:{resultType:"event",latitude:"",longitude:"",cropGroupList:[],eventsSnippet:[],eventsContent:[],crops:[],eventType:"",date:"",distance:"",eventTypeFilter:"",cropIdsFilter:"",apiUrl:null,stage:null,eventsSearchTherm:void 0,page:0,count:8,language:null,country:null,lastPage:!1,distanceList:null,dateList:null,eventTypeList:null,eventSortDesc:!1},actions:{fetchEventsByParams:function(t,e){var i=t.commit,a=t.state,s="".concat(a.apiUrl,"/api/dynamiccontent/getPersonalizeFilterSnippets");i("setDistance",e.distance),i("setDate",e.date),i("setEventType",e.eventType),i("setCrops",e.crops),i("setEventTypeFilter",e.eventTypeFilter),i("setCropIdsFilter",e.cropIdsFilter),i("setEventSortDesc",e.eventSortDesc),l.a.get(s,g(a)).then((function(t){var e=f(t.data);i("setEventsSnippet",e.snippets),i("setEventsContent",e.content),i("set
1Last",e.isLast)})).catch((function(){i("setLast",!0)}))},fetchEventsByOwnParams:function(t,e){t.commit;var i=t.state,a="".concat(i.apiUrl,"/api/dynamiccontent/getPersonalizeFilterSnippets"),s=e;return s.resultType=i.resultType,s.language=i.language,s.country=i.country,s.stage=i.stage,s.page||(s.page=i.page),s.count||(s.count=i.count),new Promise((function(t,e){l.a.get(a,{params:s}).then((function(e){t(e.data)})).catch((function(t){e(t)}))}))},fetchCropGroupFilterItems:function(t){var e=t.commit,i=t.state,a="".concat(i.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements");l.a.get(a,{params:{language:i.language,filterElementType:"cropgroup",stage:i.stage}}).then((function(t){var i=t.data;e("setCropGroupList",i)})).catch((function(){e("setLast",!0)}))},search:function(t,e){var i=t.commit,a=t.state;i("setEventsSearchTherm",e.inputValue),i("setPage",0);var s="".concat(a.apiUrl,"/api/dynamiccontent/getPersonalizeFilterSnippets"),n=g(a);l.a.get(s,n).then((function(t){var e=f(t.data);i("setEventsSnippet",e.snippets),i("setEventsContent",e.content),i("setLast",e.isLast)})).catch((function(){i("setLast",!0)}))},enableOrDisableLocation:function(t,e){var i=t.commit;i("setLatitude",e.latitude),i("setLongitude",e.longitude)},loadMoreEvents:function(t){var e=t.commit,i=t.state;e("nextPage");var a="".concat(i.apiUrl,"/api/dynamiccontent/getPersonalizeFilterSnippets"),s=g(i);l.a.get(a,s).then((function(t){var i=f(t.data);e("appendEvents",i.snippets),e("appendEventsContent",i.content),e("setLast",i.isLast)})).catch((function(){e("setLast",!0)}))}},getters:{getEventsSearchTherm:function(t){return t.eventsSearchTherm},getPage:function(t){return t.page},getCropGroupList:function(t){return t.cropGroupList},getLatitude:function(t){return t.latitude},getLongitude:function(t){return t.longitude},getCrops:function(t){return t.crops},getCurrentDateFilter:function(t){return t.currentDateFilter},getCurrentDistanceFilter:function(t){return t.currentDistanceFilter},getCurrentEventTypeFilter:function(t){return t.currentEventTypeFilter},getEventsSnippet:function(t){return t.eventsSnippet},getEventsContent:function(t){return t.eventsContent},getEventSortDesc:function(t){return t.eventSortDesc}},mutations:{setPage:function(t,e){t.page=e},nextPage:function(t){t.page+=1},setLast:function(t,e){t.lastPage=e},setEventsSearchTherm:function(t,e){t.eventsSearchTherm=e},setLatitude:function(t,e){t.latitude=e},setLongitude:function(t,e){t.longitude=e},setCrops:function(t,e){t.crops=e},setDate:function(t,e){t.date=e},setDistance:function(t,e){t.distance=e},setEventTypeFilter:function(t,e){t.eventTypeFilter=e},setCropIdsFilter:function(t,e){t.cropIdsFilter=e},setEventType:function(t,e){t.eventType=e},setCropGroupList:function(t,e){t.cropGroupList=e},setEventsSnippet:function(t,e){t.eventsSnippet=[],t.eventsSnippet=e},setEventsContent:function(t,e){t.eventsContent=[],t.eventsContent=e},appendEvents:function(t,e){t.eventsSnippet=t.eventsSnippet.concat(e)},appendEventsContent:function(t,e){t.eventsContent=t.eventsContent.concat(e)},setEventSortDesc:function(t,e){t.eventSortDesc=e},setInitValuesFromFev:function(t){var e=window.snConfig||{},i=window.snConfigEvents||{};t.apiUrl=e.apiUrl,t.stage=e.stage,t.language=e.language,t.country=e.country,t.distanceList=i.filterDistance,t.dateList=i.filterDate,t.eventTypeList=i.filterEventType}}},b=i("RIqP"),w=i.n(b),y=i("yjzb");function C(t,e,i){var a=[];return t.forEach((function(t){t===i&&a.push.apply(a,w()(e[t]))})),a}function _(t,e){return t.filter((function(t){return e.indexOf(t)<0&&t}))}var S,T={namespaced:!0,state:{currentPGFilter:[],currentPSGFilter:[],currentPFilter:[],currentCGFilter:[],additionalCGFilter:[],currentCSGFilter:[],currentCFilter:[],currentIFilter:[],currentAIFilter:[],filterPestGroups:[],filterPestSubGroups:{},filterPests:{},filterCropGroups:[],filterCropSubGroups:{},filterCrops:{},filterIndication:[],filterActiveIngredient:[],searchText:"",productSearch:{},productSearchContent:[],apiUrl:null,language:null,country:null,stage:null,markedParents:{},page:0,defaultShowAmount:12,showAmount:12,preselectPestGroup:"",preselectPestSubgroup:"",preselectPests:[],preselectCropGroup:"",preselectCropSubgroup:"",preselectCrops:[],preselectIndication:"",structurePest:{},structureCrop:{},eppoCodePestError:"",eppoCodeCropError:"",eppoCodePest:"",eppoCodeCrop:"",cropFiltersUseInSSP:!1,productsWithPrd:!1}
1,actions:(S=y.a,{fetchInitialCropGroupFilterItems:function(t){var e=t.commit,i=t.dispatch,a=t.state,s=function(){var t=[],e=!1,i=null;try{localStorage.getItem("pzCrops")&&(i=JSON.parse(localStorage.getItem("pzCrops")))}catch(t){e=!0}var a=!1,s=null;try{localStorage.getItem("isPz")&&(s=JSON.parse(localStorage.getItem("isPz")))}catch(t){a=!0}return localStorage.getItem("pzCrops")&&!e&&i&&i.crops.length>0&&(localStorage.getItem("isPz")&&!a&&s&&!1!==s.isPz||!localStorage.getItem("isPz"))&&localStorage.getItem("pzCrops")&&!e&&i&&Object.keys(i.crops).forEach((function(e){t.push(i.crops[e])})),t}();return new Promise((function(t,n){s&&s.length&&S.fetchInitialCropGroupFilterItems({language:a.language,type:"cropgroup",cropGroups:s,allowEmptyProductResults:!1}).then((function(a){a&&(e("setCurrentCGFilter",a),a.forEach((function(t){i("updateMarkedParents",{elementId:t.id,parents:["cg_".concat(t.id)]})})),i("fetchData"),t())}),(function(t){n(t)}))}))},fetchPestGroupFilterItems:function(t){var e=t.commit,i=t.state;return new Promise((function(t,a){S.fetchMainFilterItems({language:i.language,type:"pestgroup",allowEmptyProductResults:!1}).then((function(i){i&&(e("setFilterPestGroups",i),t())}),(function(t){a(t)}))}))},fetchCropGroupFilterItems:function(t){var e=t.commit,i=t.state;return new Promise((function(t,a){S.fetchMainFilterItems({language:i.language,useInSSP:i.cropFiltersUseInSSP,type:"cropgroup",allowEmptyProductResults:!1}).then((function(i){i&&(e("setFilterCropGroups",i),t())}),(function(t){a(t)}))}))},fetchIndicationFilterItems:function(t){var e=t.commit,i=t.state;return new Promise((function(t,a){S.fetchMainFilterItems({language:i.language,type:"indication"}).then((function(i){i&&(e("setFilterIndication",i),t())}),(function(t){a(t)}))}))},fetchActiveIngredientFilterItems:function(t){var e=t.commit,i=t.state;return new Promise((function(t,a){S.fetchMainFilterItems({language:i.language,type:"activeingredient"}).then((function(i){i&&(e("setFilterActiveIngredient",i),t())}),(function(t){a(t)}))}))},fetchData:function(t,e){var i=t.commit,a=t.state,s=[],n=[],o=[],r=[],l=[],c=[],u=[],d=[],p=[],m=!1,h=!1,f=!1,g=0;return e&&(e.appendResults&&(m=!0),e.appendAtBegin&&(h=!0),e.page&&(g=e.page),e.clearResultsAfterLoad&&(f=!0)),m||i("setProductSearch",[]),new Promise((function(t,e){a.currentPGFilter.forEach((function(t){return s.push(t.id)})),a.currentPSGFilter.forEach((function(t){return n.push(t.id)})),a.currentPFilter.forEach((function(t){return o.push(t.id)})),a.currentCGFilter.forEach((function(t){return r.push(t.id)})),a.additionalCGFilter.forEach((function(t){return r.push(t.id)})),a.currentCSGFilter.forEach((function(t){return l.push(t.id)})),a.currentCFilter.forEach((function(t){return c.push(t.id)})),a.currentIFilter.forEach((function(t){return u.push(t.id)})),a.currentAIFilter.forEach((function(t){return d.push(t.id)})),a.searchText&&a.searchText.length>0&&p.push(a.searchText),S.fetchData({language:a.language,productsWithPrd:a.productsWithPrd,type:"product",page:g,count:a.showAmount,pestGroupId:s,pestSubgroupId:n,pestId:o,cropGroupId:r,cropSubgroupId:l,cropId:c,indicationId:u,activeIngredientId:d,fullText:p,useOrderingProducts:!0}).then((function(e){if(e){if(f&&i("setProductSearch",[]),m&&a.productSearch&&a.productSearch.content){var s=a.productSearch;if(e&&e.content){var n=e.content;h&&(n=n.reverse()),n.forEach((function(t){h?s.content.unshift(t):s.content.push(t)}))}if(a.productSearch.contentList&&e&&e.contentList){var o=e.contentList;h&&(o=o.reverse()),o.forEach((function(t){h?s.contentList.unshift(t):s.contentList.push(t)}))}Object.keys(e).forEach((function(t){"content"!==t&&"contentList"!==t&&(s[t]=e[t])})),i("setProductSearch",s)}else i("setProductSearch",e);t()}}),(function(t){e(t)}))}))},fetchSubItems:function(t,e){var i=t.dispatch;return new Promise((function(t){var a=e.prefix,s=e.id;switch(a){case"pgid_":i("getPestSubGroups",s).then((function(){return t()}));break;case"psgid_":i("getPests",s).then((function(){return t()}));break;case"cgid_":i("getCropSubGroups",s).then((function(){return t()}));break;case"csgid_":i("getCrops",s).then((function(){return t()}))}}))},fetchPestStructure:function(t,e){var i=t.commit,a=t.state;return new Promise((function(t,s){S.fetchStructure({language:a.language,type:"peststructure",eppocode:e.eppocode||void 0,pestGroupId:e.pestGroupId||void 0,pestSubgroupId:e.pestSubgroupId||void 0}).then((function(e){e&&e.pestgroups&&e.pestgroups.length?(i("setEppoCodePestError",!1),i("setStructurePest",e),t()):i("setEppoCodePestError",!0)}),(function(t){s(t)}))}))},fetchCropStructure:function(t,e){var i=t.commit,a=t.state;return new Promise((function(t,s){S.fetchStructure({language:a.language,type:"cropstructure",eppocode:e&&e.eppocode||void 0,cropId:e&&e.cropId||void 0,cropGroupId:e&&e.cropGroupId||void 0,cropSubgroupId:e&&e.cropSubgroupId||void 0}).then((function(e){e&&e.cropgroups&&e.cropgroups.length?(i("setEppoCodeCropError",!1),i("setStructureCrop",e),t(e)):i("setEppoCodeCropError",!0)}),(function(t){s(t)}))}))},updateMarkedParents:function(t,e){var i=t.commit,a=t.state,s=e.elementId,n=e.parents||e.elementId;a.markedParents[s]?(i("deleteMarkedParent",s),Object.keys(a.markedParents).forEac
1h((function(t){-1!==a.markedParents[t].indexOf(s)&&i("deleteMarkedParent",t)}))):i("addMarkedParent",{id:s,parents:n})},getPestSubGroups:function(t,e){var i=t.commit,a=t.state;return new Promise((function(t,s){S.getPestSubGroups({language:a.language,type:"pestsubgroup",id:e,allowEmptyProductResults:!1}).then((function(a){a&&(i("setFilterPestSubGroups",{id:e,entry:a}),t())}),(function(t){return s(t)}))}))},getPests:function(t,e){var i=t.commit,a=t.state;return new Promise((function(t,s){S.getPests({language:a.language,type:"pest",id:e,allowEmptyProductResults:!1}).then((function(a){a&&(i("setFilterPests",{id:e,entry:a}),t())}),(function(t){return s(t)}))}))},getCropSubGroups:function(t,e){var i=t.commit,a=t.state;return new Promise((function(t,s){S.getCropSubGroups({language:a.language,useInSSP:a.cropFiltersUseInSSP,type:"cropsubgroup",id:e,allowEmptyProductResults:!1}).then((function(a){a&&(i("setFilterCropSubGroups",{id:e,entry:a}),t())}),(function(t){return s(t)}))}))},getCrops:function(t,e){var i=t.commit,a=t.state;return new Promise((function(t,s){S.getCrops({language:a.language,useInSSP:a.cropFiltersUseInSSP,type:"cropid",id:e,allowEmptyProductResults:!1}).then((function(a){a&&(i("setFilterCrops",{id:e,entry:a}),t())}),(function(t){return s(t)}))}))},removePestGroupChildren:function(t,e){var i=t.commit,a=t.state,s=Object.keys(a.filterPestSubGroups),n=Object.keys(a.filterPests),o=C(s,a.filterPestSubGroups,e.id),r=_(a.currentPSGFilter,o);i("setCurrentPSGFilter",r);var l=[];o.forEach((function(t){var e;i("deleteMarkedParent",t.id),l=(e=l).concat.apply(e,w()(C(n,a.filterPests,t.id)))})),l.forEach((function(t){i("deleteMarkedParent",t.id)}));var c=_(a.currentPFilter,l);i("setCurrentPFilter",c)},removePestSubGroupChildren:function(t,e){var i=t.commit,a=t.state,s=C(Object.keys(a.filterPests),a.filterPests,e.id),n=_(a.currentPFilter,s);s.forEach((function(t){i("deleteMarkedParent",t.id)})),i("setCurrentPFilter",n)},removeCropGroupChildren:function(t,e){var i=t.commit,a=t.state,s=Object.keys(a.filterCropSubGroups),n=Object.keys(a.filterCrops),o=C(s,a.filterCropSubGroups,e.id),r=_(a.currentCSGFilter,o);i("setCurrentCSGFilter",r);var l=[];o.forEach((function(t){var e;i("deleteMarkedParent",t.id),l=(e=l).concat.apply(e,w()(C(n,a.filterCrops,t.id)))})),l.forEach((function(t){i("deleteMarkedParent",t.id)}));var c=_(a.currentCFilter,l);i("setCurrentCFilter",c)},removeCropsSubGroupChildren:function(t,e){var i=t.commit,a=t.state,s=C(Object.keys(a.filterCrops),a.filterCrops,e.id),n=_(a.currentCFilter,s);s.forEach((function(t){i("deleteMarkedParent",t.id)}
1)),i("setCurrentCFilter",n)},refreshPageSearch:function(t){var e=t.commit;e("updatePage",0),e("setProductSearch",{}),e("setProductSearchContent",[])},removeCurrentFilters:function(t,e){var i=t.commit;i("setCurrentPGFilter",[]),i("setCurrentPSGFilter",[]),i("setCurrentPFilter",[]),i("setCurrentCGFilter",[]),i("setCurrentCSGFilter",[]),i("setCurrentCFilter",[]),e.showIndication&&i("setCurrentIFilter",[]),i("setCurrentAIFilter",[]),i("setMarkedParents",{})},fetchContacts:function(t,e){t.commit;var i=t.state;return new Promise((function(t,a){S.fetchContacts({language:i.language,country:i.country,resultTypes:"contact",product:e.product,page:e.page,count:e.count,contactJson:e.contactJson||!0,contactTypeId:e.contactTypeId,contactTypeList:e.contactTypeList,contactCountryCode:e.contactCountryCode,letterName:e.letterName||void 0,metaregion:e.metaregion||void 0}).then((function(e){t(e)}),(function(t){a(t)}))}))},fetchProducts:function(t){var e=t.state;return new Promise((function(t,i){S.fetchProducts({language:e.language,type:"product"}).then((function(e){t(e)}),(function(t){i(t)}))}))}}),getters:{getFilterPestSubGroups:function(t){return t.filterPestSubGroups}},mutations:{setCurrentPGFilter:function(t,e){t.currentPGFilter=e},setCurrentPSGFilter:function(t,e){t.currentPSGFilter=e},setCurrentPFilter:function(t,e){t.currentPFilter=e},setCurrentCGFilter:function(t,e){t.currentCGFilter=e},setAdditionalCGFilter:function(t,e){t.additionalCGFilter=e},setCurrentCSGFilter:function(t,e){t.currentCSGFilter=e},setCurrentCFilter:function(t,e){t.currentCFilter=e},setCurrentIFilter:function(t,e){t.currentIFilter=e},setCurrentAIFilter:function(t,e){t.currentAIFilter=e},setFilterPestGroups:function(t,e){t.filterPestGroups=e},setFilterPestSubGroups:function(t,e){var i=e.id,s=e.entry;a.default.set(t.filterPestSubGroups,i,s)},setFilterPests:function(t,e){var i=e.id,s=e.entry;a.default.set(t.filterPests,i,s)},setFilterCropGroups:function(t,e){t.filterCropGroups=e},setFilterCropSubGroups:function(t,e){var i=e.id,s=e.entry;a.default.set(t.filterCropSubGroups,i,s)},setFilterCrops:function(t,e){var i=e.id,s=e.entry;a.default.set(t.filterCrops,i,s)},setFilterIndication:function(t,e){t.filterIndication=e},setFilterActiveIngredient:function(t,e){t.filterActiveIngredient=e},setProductSearch:function(t,e){t.productSearch=e},setProductSearchContent:function(t,e){t.productSearchContent=e},setSearchText:function(t,e){t.searchText=e},updateShowAmount:function(t,e){t.showAmount=e},updatePage:function(t,e){t.page=e},setMarkedParents:function(t,e){t.markedParents=e},addMarkedParent:function(t,e){var i=e.id,s=e.parents;a.default.set(t.markedParents,i,s)},deleteMarkedParent:function(t,e){a.default.delete(t.markedParents,e)},setPreselectPestGroup:function(t,e){t.preselectPestGroup=e},setPreselectPestSubgroup:function(t,e){t.preselectPestSubgroup=e},setPreselectPests:function(t,e){t.preselectPests=e},setPreselectCropGroup:function(t,e){t.preselectCropGroup=e},setPreselectCropSubgroup:function(t,e){t.preselectCropSubgroup=e},setPreselectCrops:function(t,e){t.preselectCrops=e},setPreselectIndication:function(t,e){t.preselectIndication=e},setStructurePest:function(t,e){t.structurePest=e},setStructureCrop:function(t,e){t.structureCrop=e},setEppoCodePestError:function(t,e){t.eppoCodePestError=e},setEppoCodeCropError:function(t,e){t.eppoCodeCropError=e},setEppoCodePest:function(t,e){t.eppoCodePest=e},setEppoCodeCrop:function(t,e){t.eppoCodeCrop=e},setCropFiltersUseInSSP:function(t,e){t.cropFiltersUseInSSP=e},setProductsWithPrd:function(t,e){t.productsWithPrd=e},setInitValuesFromFev:function(t){var e=window.snConfig||{};t.apiUrl=e.apiUrl,t.language=e.language,t.country=e.country,t.stage=e.stage}}},P=i("lSNA"),F=i.n(P),x=i("ai3h");function O(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function k(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?O(Object(i),!0).forEach((function(e){F()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var L;function I(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function E(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?I(Object(i),!0).forEach((function(e){F()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):I(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var V,A,D,M={namespaced:!0,state:{apiUrl:null,language:null,sspPrefLanguage:null,languages:null,country:null,maxresults:null,siteidentifier:"default",serviceFormDefinition:[],userId:null,userRoles:[],userEmail:null,userMobile:null,userAuthenticated:!1,hasConsent:!1,billingAddressLocked:!1,mobileChanged:!1,emailChanged:!1,otEmailConsent:null,otMobileConsent:null,otConsentModalShown:!1,loginType:null,mobileVerified:!1,emailVerified:!1,userProgress:0,privateLink:"",publicLink:"",stage:null,newsCategories:{},servicesMultiConsent:{},serviceSubscriptions:[],savedFields:{},enableSSP:!1,locationFieldAllowCustom:"false"},actions:(L=x.a,{getProfileProgressState:function(t){return t.commit,new Promise((function(t,e){L.getProfileProgressState().then((function(e){t(e)}),(function(t){e(t)}))}))},getSubscriptions:function(t,e){var i=t.commit,a=t.dispatch,s=!1;return e&&e.forceLoad&&(s=!0),new Promise((function(t,e){a("callOnce/callOnce",{key:"getSubscriptions",forceLoad:s,func:function(t,e){L.getSubscriptions().then((function(e){i("setSubscriptions",e),t(e)}),(function(t){e(t)}))}},{root:!0}).then((function(e){t(e)})).catch((function(t){e(t)}))}))},triggerUnsubscription:function(t,e){return t.commit,new Promise((function(t,i){L.triggerUnsubscription({formIdentifier:e.formId,reason:e.reason,reasonText:e.reasonText,comment:e.comment,content:e.content}).then((function(){t()}),(function(t){i(t)}))}))},fetchFormDefiniction:function(t,e){return t.commit,new Promise((function(t,i){L.fetchFormDefiniction({formIdentifier:e.formId}).then((function(e){t(e.formelement)}),(function(t){i(t)}))}))},fetchEventFormDefiniction:function(t,e){return t.commit,new Promise((function(t,i){L.fetchEventFormDefiniction({formIdentifier:e.formId}).then((function(e){t(e.formelement)}),(function(t){i(t)}))}))},fetchLrFormDefiniction:function(t,e){return t.commit,new Promise((function(t,i){L.fetchLrFormDefiniction({formIdentifier:e.formId}).then((function(e){t(e.formelement)}),(function(t){i(t)}))}))},lrSubmitForm:function(t,e){return t.commit,t.state,new Promise((function(t,i){L.lrSubmitForm({formIdentifier:e.formId,content:e.content}).then((function(){t()}),(function(t){i(t)}))}))},lrValidateToken:function(t,e){return t.commit,t.state,new Promise((function(t,i){L.lrValidateToken({token:e.token}).then((function(){t()}),(function(t){i(t)}))}))},lrResendCode:function(t,e){return t.commit,t.state,new Promise((function(t,i){L.lrResendCode({formIdentifier:e.formId,optType:e.optType,content:e.content}).then((function(){t()}),(function(t){i(t)}))}))},fetchFormData:function(t,e){return t.commit,new Promise((function(t,i){L.fetchFormData({formIdentifier:e.formId}).then((function(e){t(e)}),(function(t){i(t)}))}))},fetchFormDataDefinition:function(t,e){return t.commit,new Promise((function(t,i){L.fetchFormDataDefinition({formIdentifiers:e.formIds}).then((function(e){t(e)}),(function(t){i(t)}))}))},submitForm:function(t,e){t.commit;var i=t.state,a=k(k({},L.buildFormContent(e.fields,i.country)),i.savedFields);return i.newsCategories&&(a["newsletter-services"]=i.newsCategories||{}),i.servicesMultiConsent&&(a.services=i.servicesMultiConsent),new Promise((function(t,s){L.submitForm({formIdentifier:e.formId,language:i.language,sspPrefLanguage:i.sspPrefLanguage,content:a,files:e.files}).then((function(){t()}),(function(t){s(t)}))}))},submitEventForm:function(t,e){t.commit;var i=t.state,a=e.content;return i.newsCategories&&(a["newsletter-services"]=i.newsCategories||{}),i.servicesMultiConsent&&(a.services=i.servicesMultiConsent),new Promise((function(t,s){L.submitEventForm({formIdentifier:e.formId,language:i.language,sspPrefLanguage:i.sspPrefLanguage,content:a,files:e.files}).then((function(){t()}),(function(t){s(t)}))}))},submitRegistrationContent:function(t,e){t.commit;var i=t.state;return new Promise((function(t,a){L.submitRegistrationContent({language:i.language,sspPrefLanguage:i.sspPrefLanguage,content:e.content}).then((function(e){t(e)}),(function(t){a(t)}))}))},submitRegistrationCompletion:function(t,e){t.commit;var i=t.state;return new Promise((function(t,a){L.submitRegistrationCompletion({language:i.language,sspPrefLanguage:i.sspPrefLanguage,token:e.token}).then((function(){t()}),(function(t){a(t)}))}))},submitForms:function(t,e){t.commit;var i=t.state;return new Promise((function(t,a){L.submitForms({language:i.language,sspPrefLanguage:i.sspPrefLanguage,content:e.content}).then((function(){t()}),(function(t){a(t)}))}))},deactivateUser:function(t,e){return t.commit,new Promise((function(t,i){
1L.deactivateUser({reason:e.reason,reasonText:e.reasonText,comment:e.comment}).then((function(e){t(e)}),(function(t){i(t)}))}))},getByAddressPrefilled:function(t,e){t.commit;var i=t.state,a=t.dispatch;return new Promise((function(t,s){"true"===i.locationFieldAllowCustom?t(e):a("callOnce/callOnce",{key:"getByAddressPrefilled",params:{countries:i.country,languages:i.languages,zipcode:e.zipcode,name:e.name},func:function(t,e,i){L.getByAddressPrefilled(i).then((function(e){t(e)}),(function(t){e(t)}))}},{root:!0}).then((function(e){t(e)})).catch((function(t){s(t)}))}))},user:function(){return new Promise((function(t,e){L.user().then((function(e){t(e)}),(function(t){e(t)}))}))},login:function(t,e){var i=t.state;L.login({language:i.language,redirect:e&&e.redirect?e.redirect:i.privateLink})},resendEmail:function(t){var e=t.state;L.resendEmail({language:e.language})},register:function(t,e){var i=t.state;L.register({language:i.language,redirect:e&&e.redirect?e.redirect:i.privateLink,formId:e&&e.formId?e.formId:""})},registerWithToken:function(t,e){var i=t.state;L.registerWithToken({language:i.language,redirect:e&&e.redirect?e.redirect:i.privateLink,token:e.token})},resetPassword:function(t){var e=t.state;L.resetPassword({language:e.language,redirect:e.privateLink})},logout:function(t){var e=t.commit;e("setUserId",null),e("setUserRoles",null),e("setUserEmail",null),e("setUserMobile",null),e("setUserAuthenticatedStatus",!1),e("setUserHasConsentStatus",!1),e("setUserBillingAddressLocked",!1),e("setUserMobileChanged",!1),e("setUserEmailChanged",!1),e("setUserOtEmailConsent",null),e("setUserOtMobileConsent",null),e("setOtConsentModalShown",!1),e("setUserLoginType",null),e("setUserMobileVerified",!1),e("setUserEmailVerified",!1),e("setPrivateLink",""),e("setPublicLink",""),sessionStorage.setItem("ssp",JSON.stringify({postLogin:!1})),L.logout()},triggerAccountLookup:function(t){return t.commit,new Promise((function(t,e){L.triggerAccountLookup().then((function(e){t(e)}),(function(t){e(t)}))}))},triggerPostLogin:function(t){return t.commit,new Promise((function(t,e){L.triggerPostLogin().then((function(e){t(e)}),(function(t){e(t)}))}))},submitConsentData:function(t){return t.commit,new Promise((function(t,e){L.submitConsentData().then((function(){t()}),(function(t){e(t)}))}))},getNewsCategories:function(t){return t.commit,new Promise((function(t,e){L.getNewsCategories().then((function(e){t(e)}),(function(t){e(t)}))}))},submitNewsCategories:function(t,e){return t.commit,new Promise((function(t,i){L.submitNewsCategories(e).then((function(){t()}),(function(t){i(t)}))}))},getHoldings:function(t,e){return t.commit,new Promise((function(t,i){L.getHoldings({countryCode:e.countryCode,taxNumber:e.taxNumber}).then((function(e){t(e)}),(function(t){i(t)}))}))},getEventRegistrationsCounts:function(t,e){return t.commit,new Promise((function(t,i){L.getEventRegistrationsCounts({formIdentifiers:e.formIdentifiers}).then((function(e){t(e)}),(function(t){i(t)}))}))},resendMailOrCode:function(t,e){t.commit;var i=t.state,a=e.formIds;return e.formIds&&Array.isArray(e.formIds)&&(a=e.formIds.join(",")),new Promise((function(t,s){L.resendMailOrCode({formIdentifiers:a,optType:e.optType,language:i.language}).then((function(){t()}),(function(t){s(t)}))}))},getUserElearningDetails:function(t,e){return t.commit,new Promise((function(t,e){L.getUserElearningDetails().then((function(e){t(e)}),(function(t){e(t)}))}))},verify:function(t,e){t.commit;var i=t.state;return new Promise((function(t,a){L.verify({type:e.type,mobile:e.mobile,email:e.email,back:e.back,language:i.language}).then((function(){t()}),(function(t){a(t)}))}))},validateToken:function(t,e){return t.commit,t.state,new Promise((function(t,i){L.validateToken({token:e.token}).then((function(){t()}),(function(t){i(t)}))}))},verifyPending:function(t,e){return t.commit,t.state,new Promise((function(t,i){L.verifyPending({type:e.type}).then((function(e){t(e)}),(function(t){i(t)}))}))},verifyConfirmConsent:function(t,e){return t.commit,t.state,new Promise((function(t,i){L.verifyConfirmConsent({keepConsent:e.keepConsent}).then((function(e){t(e)}),(function(t){i(t)}))}))},submitOtConsent:function(t,e){t.commit;var i=t.state;return new Promise((function(t,a){L.submitOtConsent({language:i.language,content:e.content}).then((function(e){t(e)}),(function(t){a(t)}))}))},contactExists:function(t,e){return t.commit,t.state,new Promise((function(t,i){
1L.contactExists({email:e.email,mobile:e.mobile,useUserDataMobile:e.useUserDataMobile}).then((function(e){t(e)}),(function(t){i(t)}))}))},assignContact:function(t,e){t.commit;var i=t.state;return new Promise((function(t,e){L.assignContact({language:i.language}).then((function(e){t(e)}),(function(t){e(t)}))}))}}),getters:{getServiceFormDefiniction:function(t){return t.serviceFormDefinition},getUserAuthenticatedStatus:function(t){return t.userAuthenticated},getUserAuthenticatedId:function(t){return t.userId},getUserAuthenticatedRoles:function(t){return t.userRoles},getUserAuthenticateEmail:function(t){return t.userEmail},getUserAuthenticateMobile:function(t){return t.userMobile},getUserBillingAddressLocked:function(t){return t.billingAddressLocked},getUserMobileChanged:function(t){return t.mobileChanged},getUserEmailChanged:function(t){return t.emailChanged},getUserLoginType:function(t){return t.loginType},getUserMobileVerified:function(t){return t.mobileVerified},getUserEmailVerified:function(t){return t.emailVerified},getUserProgress:function(t){return t.userProgress}},mutations:{setServiceFormDefiniction:function(t,e){t.serviceFormDefinition=e},setUserId:function(t,e){t.userId=e},setUserRoles:function(t,e){t.userRoles=e},setUserEmail:function(t,e){t.userEmail=e},setUserMobile:function(t,e){t.userMobile=e},setUserAuthenticatedStatus:function(t,e){t.userAuthenticated=e},setUserHasConsentStatus:function(t,e){t.hasConsent=e},setUserBillingAddressLocked:function(t,e){t.billingAddressLocked=e},setUserMobileChanged:function(t,e){t.mobileChanged=e},setUserEmailChanged:function(t,e){t.emailChanged=e},setUserOtEmailConsent:function(t,e){t.otEmailConsent=e},setUserOtMobileConsent:function(t,e){t.otMobileConsent=e},setUserLoginType:function(t,e){t.loginType=e},setUserMobileVerified:function(t,e){t.mobileVerified=e},setUserEmailVerified:function(t,e){t.emailVerified=e},setUserProgress:function(t,e){t.userProgress=e},setOtConsentModalShown:function(t,e){t.otConsentModalShown=e},setPrivateLink:function(t,e){t.privateLink=e},setPublicLink:function(t,e){t.publicLink=e},setStatusSSP:function(t,e){t.enableSSP=e},setNewsCategories:function(t,e){t.newsCategories=e},setServicesMultiConsent:function(t,e){t.servicesMultiConsent=e},setSubscriptions:function(t,e){t.serviceSubscriptions=e},setInitValuesFromFev:function(t){var e=window.snConfig||{},i=window.snApiCaller||{};t.apiUrl=e.apiUrl,t.language=e.language,t.sspPrefLanguage=e.sspPrefLanguage,t.country=e.country,t.stage=e.stage,t.locationFieldAllowCustom=e.locationFieldAllowCustom,t.languages=i.languages,t.maxresults=i.maxResults},setSavedFields:function(t,e){Object.keys(t.savedFields).length?t.savedFields=E(E({},t.savedFields),e):t.savedFields=e}}},R=i("qQ7T"),$={setIntervals:function(t,e){t.intervals=e},setCurrentInterval:function(t,e){t.currentInterval=e},setCurrentType:function(t,e){t.currentType=e},setCurrentLegends:function(t,e){t.currentLegends=e},setInitValuesFromFev:function(t){var e=window.snConfig||{},i=window.snApiCaller||{};t.apiUrl=e.apiUrl,t.language=e.language,t.country=e.country,t.languages=i.languages}},N={namespaced:!0,state:{apiUrl:null,language:null,languages:null,country:null,siteidentifier:"default",intervals:[],currentInterval:{},currentType:"",currentLegends:[]},actions:i.n(R).a,getters:{},mutations:$},j=i("Qh3u"),z={namespaced:!0,state:{gdprAccepted:[]},actions:i.n(j).a,getters:{getGdprOptin:function(t){return t.gdprOptin}},mutations:{addGdprAccepted:function(t,e){-1===t.gdprAccepted.indexOf(e)&&t.gdprAccepted.push(e)},removeGdprAccepted:function(t,e){var i=t.gdprAccepted.indexOf(e);-1!==i&&t.gdprAccepted.splice(i,1)}}},B=i("reTc"),q={removeFromComparisonList:function(t,e){var i=t.comparisonList.indexOf(e);i>-1&&t.comparisonList.splice(i,1)},removeAllFromComparisonList:function(t){t.comparisonList=[]},addToComparisonList:function(t,e){t.comparisonList.push(e),t.comparisonList.sort((function(t,e){return t.id-e.id}))},setComparisonList:function(t,e){t.comparisonList=e},setInitValuesFromFev:function(t){var e=window.snConfig||{};t.apiUrl=e.apiUrl,t.stage=e.stage}},U={namespaced:!0,state:{apiUrl:null,stage:null,comparisonList:[]},actions:i.n(B).a,getters:{},mutations:q},H=i("Qyje"),G={namespaced:!0,state:{keyValues:{}},actions:{callOnce:function(t,e){var i=t.commit,a=t.state;return new Promise((function(t,s){var n=e.key,o=e.func,r=!1;e&&e.forceLoad&&(r=!0);var l="";e.params&&(l=H.stringify(e.params));var c="".concat(n,"_").concat(l),u=null;Object.prototype.hasOwnProperty.call(a.keyValues,c)?u=a.keyValues[c]:i("setKeyValue",{key:c,value:u={data:null,loaded:!1,isLoading:!1,waitingCalls:[]}}),u.isLoading&&!r?u.waitingCalls.push({resolve:t,reject:s}):u.loaded&&!r?t(u.data):(u.isLoading=!0,o((function(e){u.data=e;var i=u.waitingCalls;
1u.loaded=!0,u.isLoading=!1,u.waitingCalls=[],t(e),i&&i.forEach((function(t){t.resolve(u.data)}))}),(function(t){var e=u.waitingCalls;u.isLoading=!1,u.waitingCalls=[],s(t),e&&e.forEach((function(e){e.reject(t)}))}),e.params))}))}},getters:{getKeyValues:function(t){return t.keyValues}},mutations:{setKeyValue:function(t,e){var i=e.key,a=e.value;t.keyValues[i]=a}}},W={namespaced:!0,state:{closeDate:0},getters:{getCloseDate:function(t){return t.closeDate}},mutations:{setCloseDate:function(t,e){t.closeDate=e}}},Z={namespaced:!0,state:{apps:[]},getters:{getApps:function(t){return t.apps}},mutations:{setAppDate:function(t,e){if(t.apps.some((function(t){return t.id===e.id}))){var i=t.apps.findIndex((function(t){return t.id===e.id}));e.closeDate&&(t.apps[i].closeDate=e.closeDate),e.installDate&&(t.apps[i].installDate=e.installDate)}else t.apps.push(e)},removeApp:function(t,e){var i=t.apps.findIndex((function(t){return t.id===e}));i>-1&&t.apps.splice(i,1)},removeAllApps:function(t){t.apps=[]}}},J=i("YTp6"),K={namespaced:!0,state:{idValues:{}},actions:{loadFevIfNecessary:function(t){var e=t.commit,i=t.state;return new Promise((function(t){var a=function(t){var e=t;return"/"===t[0]&&(e=e.substring(1)),"/"===t[t.length-1]&&(e=e.substring(0,e.length-1)),e},s=function(t,e){if(t&&Object.keys(t).forEach((function(e){window[e]=t[e]})),e&&e.length>0){var i=e[0].getAttribute("data-fevTheme");window.snConfig||(window.snConfig={}),window.snConfig.theme=i}if(window.snConfig&&window.snConfig.language&&window.snConfig.country&&(window.snConfig.floatNumbersUseComma=!1,-1!==new Intl.NumberFormat("".concat(window.snConfig.language,"-").concat(window.snConfig.country)).format("1.2").indexOf(",")&&(window.snConfig.floatNumbersUseComma=!0)),window.snConfig){window.snConfig.emailPatternStr&&(window.snConfig.emailPattern=new RegExp(a(window.snConfig.emailPatternStr))),window.snConfig.phonePatternStr&&(window.snConfig.phonePattern=new RegExp(a(window.snConfig.phonePatternStr)));var s=!0;window.snConfig.showZipcodeStr&&(s="true"===window.snConfig.showZipcodeStr),window.snConfig.showZipcode=s;var n=!0;window.snConfig.showRegion1Str&&(n="true"===window.snConfig.showRegion1Str),window.snConfig.showRegion1=n;var o=!0;window.snConfig.showRegion2Str&&(o="true"===window.snConfig.showRegion2Str),window.snConfig.showRegion2=o}document.dispatchEvent(new CustomEvent("vue-fev-loaded"))},n="",o="",r=document.getElementsByTagName("body");if(r&&r.length>0&&(n=r[0].getAttribute("data-fevUrl"),o=r[0].getAttribute("data-fevId")),o&&n){var c=null;Object.prototype.hasOwnProperty.call(i.idValues,o)?c=i.idValues[o]:e("setIdValue",{id:o,value:c={data:null,loaded:!1,fevUrl:n,fevId:o}});var u=!1;c.loaded?c.fevUrl!==n&&(u=!0):u=!0,c.data||(u=!0),u?l.a.get(n).then((function(i){i&&i.data?(c.data=i.data,c.fevUrl=n,c.loaded=!0,s(c.data,r),e("setIdValue",{id:o,value:c}),t(),e("clearIdValuesByMaxCount",{maxCount:3})):(J.a.addFrontendMessage("error","VUEFEVLoad","No response from fev call."),s(c.data,r),t())})).catch((function(){s(c.data,r),t()})):(s(c.data,r),t())}else J.a.addFrontendMessage("error","VUEFEVLoad","No data-fevUrl or data-fevId found in body."),s(null,r),t()}))}},getters:{getIdValues:function(t){return t.idValues}},mutations:{setIdValue:function(t,e){var i=e.id,a=e.value;t.idValues[i]=a},clearIdValuesByMaxCount:function(t,e){var i=e.maxCount;if(t.idValues){var a=Object.keys(t.idValues);if(a.length>i)for(var s=a.length-i,n=0;n<s;n+=1){var o=a[n];delete t.idValues[o]}}}}},Y=i("cGzQ"),Q=i("Qyje"),X=(V=Y.a,{fetchCampaigns:function(t){return new Promise((function(e,i){var a="".concat(V.getBaseUrl()).concat("/api/dynamiccontent/getPersonalizeFilterSnippets");l.a.get(a,{params:{language:t.language,resultType:t.type,page:t.page,count:t.count,specificSearch:t.specificSearch,specificSearchText:t.specificSearchText,stage:V.getStage()},paramsSerializer:function(t){return Q.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))}}),tt=(A=X,{fetchCampaigns:function(t){var e=t.commit,i=t.state,a=[];
1return new Promise((function(t,s){i.campaignsSearchText&&i.campaignsSearchText.length>0&&a.push(i.campaignsSearchText),A.fetchCampaigns({language:i.language,type:"campaign",page:i.campaignsPage,count:i.campaignsShowAmount,specificSearch:"headline",specificSearchText:a}).then((function(i){e("setCampaigns",i),t()}),(function(t){s(t)}))}))},refreshPageSearch:function(t){var e=t.commit;e("updateCampaignsPage",0),e("setCampaigns",{})}}),et=i("sXUz"),it={setCampaignsSearchText:function(t,e){t.campaignsSearchText=e},setCampaigns:function(t,e){t.campaigns.content&&0!==t.campaignsPage?Object.keys(e.content).forEach((function(i){t.campaigns.content.push(e.content[i])})):t.campaigns=e},updateCampaignsShowAmount:function(t,e){t.campaignsShowAmount=e},updateCampaignsPage:function(t,e){t.campaignsPage=e},setInitValuesFromFev:function(t){var e=window.snConfig||{};t.apiUrl=e.apiUrl,t.language=e.language,t.country=e.country,t.stage=e.stage}},at={namespaced:!0,state:{apiUrl:null,language:null,country:null,stage:null,campaigns:{},campaignsSearchText:"",campaignsPage:0,campaignsShowAmount:12},actions:tt,getters:i.n(et).a,mutations:it},st=i("Qyje"),nt=function(t){return{fetchDynamicTeasers:function(e){return new Promise((function(i,a){var s="".concat(t.getBaseUrl()).concat("/api/dynamiccontent/getTeasers");l.a.get(s,{params:{language:e.language,country:e.country,resultTypes:e.resultTypes,page:e.page,count:e.count,stage:e.stage,ignoreId:e.ignoreId,activeIngredientId:e.activeIngredientId,cropGroupId:e.cropGroupId,cropSubgroupId:e.cropSubgroupId,cropId:e.cropId,eventCategoryId:e.eventCategoryId,indicationId:e.indicationId,pestGroupId:e.pestGroupId,pestSubgroupId:e.pestSubgroupId,pestId:e.pestId,crossCategoryId:e.crossCategoryId,productId:e.productId,newsCategoryId:e.newsCategoryId,newsId:e.newsId,contactTypeId:e.contactTypeId,latitude:e.latitude,longitude:e.longitude,useTeaser:e.useTeaser},paramsSerializer:function(t){return st.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){return i(t.data)}),(function(t){return a(t)}))}))},fetchMetaRegions:function(e){return new Promise((function(i,a){var s="".concat(t.getBaseUrl()).concat("/api/dynamiccontent/getMetaregionIdList");l.a.get(s,{params:{language:e.language,country:e.country,resultType:e.resultType,stage:e.stage,productId:e.productId,contactTypeId:e.contactTypeId,contactCountryCode:e.contactCountryCode,latitude:e.latitude,longitude:e.longitude},paramsSerializer:function(t){return st.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){return i(t.data)}),(function(t){return a(t)}))}))}}}(Y.a),ot={namespaced:!0,state:{apiUrl:null,language:null,country:null,stage:null,debugMode:!1},actions:(D=nt,{fetchDynamicTeasers:function(t,e){t.commit;var i=t.state;return new Promise((function(t,a){D.fetchDynamicTeasers({language:i.language,country:i.country,resultTypes:e.resultTypes||void 0,page:e.page,count:e.count,stage:i.stage,ignoreId:e.ignoreId||void 0,activeIngredientId:e.activeIngredientId||void 0,cropGroupId:e.cropGroupId||void 0,cropSubgroupId:e.cropSubgroupId||void 0,cropId:e.cropId||void 0,eventCategoryId:e.eventCategoryId||void 0,indicationId:e.indicationId||void 0,pestGroupId:e.pestGroupId||void 0,pestSubgroupId:e.pestSubgroupId||void 0,pestId:e.pestId||void 0,crossCategoryId:e.crossCategoryId||void 0,productId:e.productId||void 0,newsCategoryId:e.newsCategoryId||void 0,newsId:e.newsId||void 0,contactTypeId:e.contactTypeId||void 0,latitude:e.latitude||void 0,longitude:e.longitude||void 0,useTeaser:e.useTeaser||void 0}).then((function(e){t(e)}),(function(t){a(t)}))}))},fetchMetaRegions:function(t,e){var i=t.state;return new Promise((function(t,a){D.fetchMetaRegions({language:i.language,country:i.country,resultType:"contact",stage:i.stage,productId:e.productId,contactTypeId:e.contactTypeId,contactCountryCode:e.contactCountryCode,latitude:e.latitude||void 0,longitude:e.longitude||void 0}).then((function(e){t(e)}),(function(t){a(t)}))}))}}),getters:{getDebugMode:function(t){return t.debugMode}},mutations:{setInitValuesFromFev:function(t){var e=window.snConfig||{};t.apiUrl=e.apiUrl,t.language=e.language,t.country=e.country,t.stage=e.stage},setDebugMode:function(t,e){t.debugMode=e}}},rt=i("WXyN"),lt={namespaced:!0,state:{level:0,activeLevels:{0:{},1:{},2:{}},active:{1:"",2:""},isMainNavVisible:!0,languageNoticeShown:[]},actions:i.n(rt).a,getters:{getLevel:function(t){return t.level},getActive:function(t){return t.active},getActiveLevels:function(t){return t.activeLevels},getIsMainNavVisible:function(t){return t.isMainNavVisible},getLanguageNoticeShown:function(t){return t.languageNoticeShown}},mutations:{setLevel:function(t,e){t.level=e},setActive:function(t,e){var i=e.level,a=e.label;t.active[i]=a,1===i&&(t.active[i+1]="")},triggerBack:function(t){t.active[t.level]="",t.activeLevels[t.level]={},t.level-=1},setActiveLevels:function(t,e){var i=e.level,a=e.value;t.activeLevels[i]=a},resetNavigation:function(t){t.level=0,t.active={1:"",2:""},t.activeLevels={0:t.activeLevels[0],1:{},2:{}}},setIsMainNavVisible:function(t,e){t.isMainNavVisible=e},addLanguageNoticeShown:function(t,e){t.languageNoticeShown.push(e)}}};a.default.use(s.a);var ct=new o.a({storage:window.localStorage,reducer:function(t){return{fev:{idValues:t.fev.idValues}
1,gdpr:{gdprAccepted:t.gdpr.gdprAccepted},alertBanner:{closeDate:t.alertBanner.closeDate},smartAppBanner:{apps:t.smartAppBanner.apps},navigation:{languageNoticeShown:t.navigation.languageNoticeShown},main:{debugMode:t.main.debugMode}}}}),ut=new o.a({storage:window.sessionStorage,reducer:function(t){return{forms:{billingAddressLocked:t.forms.billingAddressLocked,mobileChanged:t.forms.mobileChanged,emailChanged:t.forms.emailChanged,otEmailConsent:t.forms.otEmailConsent,otMobileConsent:t.forms.otMobileConsent,otConsentModalShown:t.forms.otConsentModalShown,loginType:t.forms.loginType,mobileVerified:t.forms.mobileVerified,emailVerified:t.forms.emailVerified}}}});e.a=new s.a.Store({modules:{fev:K,news:m,events:v,opinionPoll:c,search:T,forms:M,weather:N,gdpr:z,virtualFarm:U,callOnce:G,alertBanner:W,smartAppBanner:Z,filter:at,main:ot,navigation:lt},plugins:[ct.plugin,ut.plugin]})},QMHL:function(t,e){},Qh3u:function(t,e){},QxYJ:function(t,e){},RQ5M:function(t,e){},Rdr4:function(t,e){},Rfbd:function(t,e){},RnhZ:function(t,e,i){var a={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-ps":"TJgH","./ar-ps.js":"TJgH","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn-bd":"loYQ","./bn-bd.js":"loYQ","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku-kmr":"dVgr","./ku-kmr.js":"dVgr","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2
1ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function s(t){var e=n(t);return i(e)}function n(t){if(!i.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}s.keys=function(){return Object.keys(a)},s.resolve=n,t.exports=s,s.id="RnhZ"},Ryf5:function(t,e){},"S0+G":function(t,e){},SCJe:function(t,e){},SCOw:function(t,e){},SJrD:function(t,e){},"SK+V":function(t,e){},Snkk:function(t,e){},SpqE:function(t,e){},StfC:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={name:"Calculator",props:{fsid:{type:String,default:""}},data:function(){return{dropdown:{selectedVal:[]},inputList:[],formulaList:[],form:{input_id:[]}}},computed:{inputs:function(){return!(!window.calcConfig||void 0===window.calcConfig[this.fsid])&&window.calcConfig[this.fsid].inputs},formulas:function(){return!(!window.calcConfig||void 0===window.calcConfig[this.fsid])&&window.calcConfig[this.fsid].formulas},fsTexts:function(){return!(!window.calcConfig||void 0===window.calcConfig[this.fsid])&&window.calcConfig[this.fsid].fsTexts},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.calculator)&&window.snTranslations.calculator}},created:function(){var t=this;Object.keys(this.inputs).forEach((function(e){t.getInputList(t.inputs[e])}
1)),Object.keys(this.formulas).forEach((function(e){t.getFormula(t.formulas[e])})),this.initializeValues()},methods:{getFormula:function(t){this.formulaList.push(t)},getInputList:function(t){this.inputList.push(t)},initializeValues:function(){for(var t=0;t<this.inputList.length;t+=1)this.inputList[t].dropdown?this.dropdown.selectedVal[t]="init":this.form.input_id[t]=""},onChange:function(t,e){this.dropdown.selectedVal[e]=t.target.value},calculate:function calculate(){for(var _this2=this,valuesList=[],labelIdPair=[],finalResult,eqString,decimals,measureUnit,emptyFields=0,empty,filled,isValid="is-invalid",i=0;i<this.inputList.length;i+=1)this.inputList[i].dropdown?"init"!==this.dropdown.selectedVal[i]?(valuesList.push(this.dropdown.selectedVal[i]),filled=document.getElementsByClassName("inputField_".concat(this.fsid,"_").concat(i))[0],filled.classList.remove(isValid)):(emptyFields=1,empty=document.getElementsByClassName("inputField_".concat(this.fsid,"_").concat(i))[0],empty.className+=" ".concat(isValid)):(null!=this.form.input_id[i]&&-1!==this.form.input_id[i].indexOf(",")&&(this.form.input_id[i]=this.form.input_id[i].split(",").join(".")),Number.isNaN(this.form.input_id[i])||""===this.form.input_id[i]?(emptyFields=1,empty=document.getElementsByClassName("inputField_".concat(this.fsid,"_").concat(i))[0],empty.className+=" ".concat(isValid)):(valuesList.push(this.form.input_id[i]),filled=document.getElementsByClassName("inputField_".concat(this.fsid,"_").concat(i))[0],filled.classList.remove(isValid)));1!==emptyFields&&(Object.keys(this.inputList).forEach((function(t){labelIdPair[_this2.inputList[t].id]=valuesList[t]})),Object.keys(this.formulaList).forEach((function(key){eqString=_this2.formulaList[key].equation,measureUnit=_this2.formulaList[key].unit,decimals=_this2.formulaList[key].decimals,Object.keys(labelIdPair).forEach((function(t){-1!==eqString.indexOf(t)&&(eqString=eqString.replace(new RegExp(t),labelIdPair[t]))})),"string"!=typeof eval(eqString)&&(Number.isNaN(eval(eqString))||(finalResult=eval(eqString),document.getElementsByClassName("resultValue_".concat(_this2.fsid,"_").concat(key))[0].innerHTML="".concat(finalResult.toFixed(decimals)," ").concat(measureUnit),labelIdPair[_this2.formulaList[key].id]=finalResult))})))}}}},SuDu:function(t,e){},T1aQ:function(t,e){},T7BK:function(t,e){},T7xL:function(t,e){},TFDb:function(t,e){},TWmx:function(t,e){},TWwr:function(t,e){},UKT6:function(t,e){},ULyy:function(t,e){},Unbf:function(t,e){},UpJQ:function(t,e){},Uruq:function(t,e){},VLtD:function(t,e){},Vk46:function(t,e){},VlDw:function(t,e){},Vtdi:function(t,e,i){"use strict";i.r(e);var a=i("vDqi"),s=i.n(a),n=i("YTp6"),o=(i("55Il"),i("Wr5T"),i("oCYn")),r=i("8gbZ"),l=i.n(r),c=i("2tVG"),u=i.n(c),d=i("wd/R"),p=i.n(d),m=i("X1uE"),h=i("9a8T"),f=i.n(h),g=(i("6Cl6"),i("JFUb"));var v=function(t){i("wEpW")},b=Object(g.a)({name:"App"},(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,v,null,null).exports,w=i("oYx3"),y=(i("PjkW"),i("lwsE")),C=i.n(y),_=i("W8MJ"),S=i.n(_),T=i("EVdn"),P=new(function(){return S()((function t(){C()(this,t),this.breakpoints={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},this.breakpointsDown={xs:0,sm:this.breakpoints.sm-1,md:this.breakpoints.md-1,lg:this.breakpoints.lg-1,xl:this.breakpoints.xl-1,xxl:this.breakpoints.xxl-1},this.themeColors={orange:"#F39500",red:"#C50022","light-blue":"#21A0D2","dark-blue":"#004A96","light-green":"#65AC1E","dark-green":"#00793A"},this.datepickerPossibleLang=["en","zh","es","pt-br","fr","ru","de","it","cs"],this.weatherMap=[{id:"air_temp",type:"air_temp"},{id:"air_temp_max_last_24hr",type:"air_temp_max_last_24hr"},{id:"air_temp_min_last_24hr",type:"air_temp_min_last_24hr"},{id:"dew_point",type:"dew_point"},{id:"hail",type:"hail"},{id:"hail_last_24hr",type:"hail_last_24hr"},{id:"precip_acc_1hr",type:"precip_acc_1hr"},{id:"precip_acc_next_24hr",type:"precip_acc_next_24hr"},{id:"precip_acc_last_24hr",type:"precip_acc_last_24hr"},{id:"precip_prob_next_24hr",type:"precip_prob_next_24hr"},{id:"radar",type:"radar"},{id:"radar_with_forecast",type:"radar_with_forecast"},{id:"radar_with_metrad_plus",type:"radar_with_metrad_plus"},{id:"relative_humidity",type:"relative_humidity"},{id:"satellite_infrared",type:"satellite_infrared"},{id:"satellite_visible",type:"satellite_visible"},{id:"satellite_watervapor",type:"satellite_watervapor"},{id:"snow_acc_1hr",type:"snow_acc_1hr"},{id:"snow_acc_last_24hr",type:"snow_acc_last_24hr"},{id:"snow_acc_next_24hr",type:"snow_acc_next_24hr"},{id:"soil_moisture",type:"soil_moisture"},{id:"soil_temp",type:"soil_temp"},{id:"visibility",type:"visibility"},{id:"wind_gusts",type:"wind_gusts"},{id:"wind_speed",type:"wind_speed"}],this.lightenDarkenColor=function(t,e){var i=!1,a=t;"#"===a[0]&&(a=a.slice(1),i=!0);var s=parseInt(a,16),n=(s>>16)+e;n>255?n=255:n<0&&(n=0);var o=(s>>8&255)+e;o>255?o=255:o<0&&(o=0);var r=(255&s)+e;return r>255?r=255:r<0&&(r=0),(i?"#":"")+(r|o<<8|n<<16).toString(16)},this.googleMapStyles=[{featureType:"all",elementType:"geometry.fill",stylers:[{weight:"2.00"}]},{featureType:"all",elementType:"geometry.stroke",stylers:[{color:"#9c9c9c"}]},{featureType:"all",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"landscape.man_made",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#eeeeee"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#7b7b7b"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#46bcec"},{visibility:"on"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#d9d9d9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#070707"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]}]}),null,[{key:"isElementInView",value:function(t,e){var i=Object(T.$)(window).scrollTop(),a=i+Object(T.$)(window).height(),s=Object(T.$)(t).offset().top,n=s+Object(T.$)(t).height();return!0===e?i+Object(T.$)(".meta-navigation").outerHeight()<s&&a>n:s<=a&&n>=i}}])}()),F=i("+igm"),x=i("RIqP"),O=i.n(x),k=i("H8ri"),L={extends:k.c,mixins:[k.d.reactiveProp],props:{chartData:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig}},watch:{options:{handler:function(){this.$data._chart&&this.$data._chart.destroy(),this.renderChart(this.chartData,this.options)},deep:!0}},mounted:function(){p.a.locale(this.config.language),this.renderChart(this.chartData,this.options)}};var I=function(t){i("5Xxd")},E=Object(g.a)(L,void 0,void 0,!1,I,"data-v-0b17a4be",null).exports,V={name:"TemperatureGraph",components:{appLineChart:E},props:{units:{type:Object,default:function(){return{}}},dataTemperature:{type:[Object,Array],default:function(){return{}}},dataDewpoint:{type:[Object,Array],default:function(){return{}}},dates:{type:[Object,Array],default:function(){return{}}},times:{type:[Object,Array],default:function(){return{}}},days:{type:[Object,Array],default:function(){return{}}},startDay:{type:Number,default:0},endDay:{type:Number,default:0}},data:function(){return{minRange:25}},computed:{translations:function(){return window.snTranslations&&window.snTranslations.weather},config:function(){return window.snConfig},dailySummary:function(){var t=this;return this.days.map((function(e){return"".concat(e.tmin).concat(t.units.degree," / ").concat(e.tmax+t.units.degree)}))},data:function(){return{labels:this.dates.slice(24*this.startDay,24*this.endDay),datasets:[{label:"".concat(this.translations.airTemperature," (").concat(this.units.degree,")"),borderColor:this.themeColor,backgroundColor:this.themeColor,fill:!1,data:this.dataTemperature.slice(24*this.startDay,24*this.endDay),borderWidth:3,pointRadius:0},{label:"".concat(this.translations.dewPoint," (").concat(this.units.degree,")"),borderColor:"#ccc",backgroundColor:"#ccc",fill:!1,data:this.dataDewpoint.slice(24*this.startDay,24*this.endDay),borderWidth:3,pointRadius:0}]}},tooltipFormat:function(){var t="YYYY-MM-DD H:mm";return this.translations.format.date&&""!==this.translations.format.date&&this.translations.format.time&&""!==this.translations.format.time&&(t="".concat(this.translations.format.date," ").concat(this.translations.format.time)),t},options:function(){var t=this.units;return{maintainAspectRatio:!1,legend:{labels:{boxWidth:20}},scales:{yAxes:[{type:"linear",ticks:{beginAtZero:!0,min:this.min,max:this.max,callback:function(e){return e+t.degree}}}],xAxes:[{type:"time",distribution:"series",gridLines:{drawOnChartArea:!0,tickMarkLength:0},ticks:{source:"labels",display:!1},time:{displayFormats:{hour:"H:mm"},tooltipFormat:this.tooltipFormat,unit:"hour"}},{id:"xAxis1",type:"time",distribution:"series",gridLines:{drawOnChartArea:!1,tickMarkLength:15},time:{displayFormats:{hour:"H:mm"},unit:"hour"}},{id:"xAxis2",position:"top",type:"time",distribution:"series",bounds:"data",gridLines:{lineWidth:2,drawBorder:!1,tickMarkLength:15},ticks:{labelOffset:35},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}}},{id:"xAxis5",position:"bottom",type:"time",distribution:"series",gridLines:{lineWidth:2,drawBorder:!1,drawOnChartArea:!1,tickMarkLength:15},ticks:{labelOffset:35},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}},labels:this.dailySummary.slice(this.startDay,this.endDay+1)}]}}},plugins:function(){var t=this.times[0];return[{beforeDraw:function(e){var i=e.scales.xAxis5;i._ticks.forEach((function(e,a){var s="00:00"!==t?a+1:a;i._ticks[a].label=i.options.labels[s]}))}}]},min:function(){var t=[Math.min.apply(Math,O()(this.dataTemperature)),Math.min.apply(Math,O()(this.dataDewpoint))],e=Math.min.apply(Math,t);return e=Math.floor(e-1)},max:function(){var t=[Math.max.apply(Math,O()(this.dataTemperature)),Math.max.apply(Math,O()(this.dataDewpoint))],e=Math.max.apply(Math,t),i=(e=Math.ceil(e+1))-this.min;return i<this.minRange&&(e+=this.minRange-i),e},themeColor:function(){return P.themeColors[this.config.theme]}}};var A=function(t){i("rtzq")},D=Object(g.a)(V,(function(){var t=this.$createElement;
1return(this._self._c||t)("app-line-chart",{attrs:{"chart-data":this.data,options:this.options,plugins:this.plugins,"data-cucumber":"weatherResults_temperatureChart_visible"}})}),[],!1,A,"data-v-f97f084a",null).exports,M={extends:k.a,mixins:[k.d.reactiveProp],props:{chartData:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}}},watch:{options:{handler:function(){this.$data._chart&&this.$data._chart.destroy(),this.renderChart(this.chartData,this.options)},deep:!0}},mounted:function(){this.renderChart(this.chartData,this.options)}};var R=function(t){i("COLN")},$=Object(g.a)(M,void 0,void 0,!1,R,"data-v-1ca0c9fb",null).exports,N={name:"PrecipitationGraph",components:{appBarChart:$},props:{units:{type:Object,default:function(){return{}}},dataPrecprob:{type:[Object,Array],default:function(){return{}}},dataPrec:{type:[Object,Array],default:function(){return{}}},dates:{type:[Object,Array],default:function(){return{}}},times:{type:[Object,Array],default:function(){return{}}},days:{type:[Object,Array],default:function(){return{}}},startDay:{type:Number,default:0},endDay:{type:Number,default:0}},data:function(){return{minRange:5}},computed:{translations:function(){return window.snTranslations&&window.snTranslations.weather},config:function(){return window.snConfig},dailySummary:function(){var t=this;return this.days.map((function(e){return"".concat(e.precprob+t.units.percent," / ").concat(e.prec," ").concat(t.units.mm)}))},data:function(){return{labels:this.dates.slice(24*this.startDay,24*this.endDay),datasets:[{type:"line",label:"".concat(this.translations.probability," (").concat(this.units.percent,")"),borderColor:this.themeColor,backgroundColor:this.themeColor,fill:!1,data:this.dataPrecprob.slice(24*this.startDay,24*this.endDay),borderWidth:3,pointRadius:0,yAxisID:"yAxis1"},{type:"bar",label:"".concat(this.translations.precipitation," (").concat(this.units.mm,")"),borderColor:"#ccc",backgroundColor:"#ccc",fill:!1,data:this.dataPrec.slice(24*this.startDay,24*this.endDay),borderWidth:3,pointRadius:0,yAxisID:"yAxis2"}]}},tooltipFormat:function(){var t="YYYY-MM-DD H:mm";return this.translations.format.date&&""!==this.translations.format.date&&this.translations.format.time&&""!==this.translations.format.time&&(t="".concat(this.translations.format.date," ").concat(this.translations.format.time)),t},options:function(){var t=this.units;return{maintainAspectRatio:!1,legend:{labels:{boxWidth:20}},scales:{yAxes:[{id:"yAxis1",type:"linear",position:"left",ticks:{beginAtZero:!0,min:0,max:100,callback:function(e){return e+t.percent}}},{id:"yAxis2",type:"linear",position:"right",ticks:{beginAtZero:!0,min:0,max:this.max,stepSize:1,callback:function(e){return"".concat(e," ").concat(t.mm)}},gridLines:{drawOnChartArea:!1}}],xAxes:[{type:"time",distribution:"series",gridLines:{drawOnChartArea:!0,tickMarkLength:0},ticks:{source:"labels",display:!1},time:{displayFormats:{hour:"H:mm"},tooltipFormat:this.tooltipFormat,unit:"hour"}},{id:"xAxis1",type:"time",distribution:"series",gridLines:{drawOnChartArea:!1,tickMarkLength:15},time:{displayFormats:{hour:"H:mm"},unit:"hour"}},{id:"xAxis2",position:"top",type:"time",distribution:"series",bounds:"data",gridLines:{lineWidth:2,drawBorder:!1,tickMarkLength:15},ticks:{labelOffset:35},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}}},{id:"xAxis4",position:"bottom",type:"time",distribution:"series",gridLines:{lineWidth:2,drawBorder:!1,drawOnChartArea:!1,tickMarkLength:15},ticks:{labelOffset:35},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}},labels:this.dailySummary.slice(this.startDay,this.endDay+1)}]}}},plugins:function(){var t=this.times[0];return[{beforeDraw:function(e){var i=e.scales.xAxis4;i._ticks.forEach((function(e,a){var s="00:00"!==t?a+1:a;i._ticks[a].label=i.options.labels[s]}))}}]},max:function(){var t=Math.max.apply(Math,O()(this.dataPrec));return(t=Math.ceil(t+1))>this.minRange?t:this.minRange},themeColor:function(){return P.themeColors[this.config.theme]}}};var j=function(t){i("QxYJ")},z=Object(g.a)(N,(function(){var t=this.$createElement;
1return(this._self._c||t)("app-bar-chart",{attrs:{"chart-data":this.data,options:this.options,plugins:this.plugins,"data-cucumber":"weatherResults_precipitationChart_visible"}})}),[],!1,j,"data-v-3b3a9cce",null).exports,B={from_180:"",from_198:"",from_216:"",from_234:"",from_252:"",from_270:"",from_288:"",from_306:"",from_324:"",from_342:"",from_0:"",from_18:"",from_36:"",from_54:"",from_72:"",from_90:"",from_108:"",from_126:"",from_144:"",from_162:""},q={name:"WindGraph",components:{appLineChart:E},props:{units:{type:Object,default:function(){return{}}},dataWgustms:{type:[Object,Array],default:function(){return{}}},dataWsms:{type:[Object,Array],default:function(){return{}}},dataWdir:{type:[Object,Array],default:function(){return{}}},dataWdirLabels:{type:[Object,Array],default:function(){return{}}},dates:{type:[Object,Array],default:function(){return{}}},times:{type:[Object,Array],default:function(){return{}}},days:{type:[Object,Array],default:function(){return{}}},startDay:{type:Number,default:0},endDay:{type:Number,default:0}},data:function(){return{minRange:15}},computed:{translations:function(){return window.snTranslations&&window.snTranslations.weather},config:function(){return window.snConfig},dailySummary:function(){var t=this;return this.days.map((function(e){return"".concat(e.wsmaxms," ").concat(t.units.m_s)}))},data:function(){return{labels:this.dates.slice(24*this.startDay,24*this.endDay),datasets:[{label:"".concat(this.translations.speed," (").concat(this.units.m_s,")"),borderColor:this.themeColor,backgroundColor:this.themeColor,fill:!1,data:this.dataWsms.slice(24*this.startDay,24*this.endDay),borderWidth:3,pointRadius:0},{label:"".concat(this.translations.gustOfWind," (").concat(this.units.m_s,")"),borderColor:"#ccc",backgroundColor:"#ccc",fill:!1,data:this.dataWgustms.slice(24*this.startDay,24*this.endDay),borderWidth:3,pointRadius:0}]}},tooltipFormat:function(){var t="YYYY-MM-DD H:mm";return this.translations.format.date&&""!==this.translations.format.date&&this.translations.format.time&&""!==this.translations.format.time&&(t="".concat(this.translations.format.date," ").concat(this.translations.format.time)),t},options:function(){var t=this.units;return{maintainAspectRatio:!1,legend:{labels:{boxWidth:20}},scales:{yAxes:[{type:"linear",ticks:{beginAtZero:!0,min:0,max:this.max,callback:function(e){return"".concat(e," ").concat(t.m_s)}}}],xAxes:[{type:"time",distribution:"series",gridLines:{drawOnChartArea:!0,tickMarkLength:0},ticks:{source:"labels",display:!1},time:{displayFormats:{hour:"H:mm"},tooltipFormat:this.tooltipFormat,unit:"hour"}},{id:"xAxis1",type:"time",distribution:"series",gridLines:{drawOnChartArea:!1,tickMarkLength:15},time:{displayFormats:{hour:"H:mm"},unit:"hour"}},{id:"xAxis5",position:"top",type:"category",gridLines:{drawOnChartArea:!1,tickMarkLength:15,drawBorder:!0},ticks:{maxTicksLimit:48,padding:5},afterCalculateTickRotation:function(t){t.labelRotation=0},labels:this.renderWindDirectionLabels},{id:"xAxis4",position:"top",type:"category",gridLines:{drawOnChartArea:!1,tickMarkLength:0,color:"#fff",drawBorder:!1},ticks:{fontFamily:"BASF_Icons",maxTicksLimit:48,fontSize:14},afterCalculateTickRotation:function(t){t.labelRotation=0},labels:this.renderWindDirectionIcons},{id:"xAxis2",position:"top",type:"time",distribution:"series",bounds:"data",gridLines:{lineWidth:2,drawBorder:!1,tickMarkLength:15},ticks:{labelOffset:35},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}}},{id:"xAxis6",position:"bottom",type:"time",distribution:"series",gridLines:{lineWidth:2,drawBorder:!1,drawOnChartArea:!1,tickMarkLength:15},ticks:{labelOffset:18},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}},labels:this.dailySummary.slice(this.startDay,this.endDay+1)}]}}},plugins:function(){var t=this.times[0];return[{beforeDraw:function(e){var i=e.scales.xAxis6;i._ticks.forEach((function(e,a){var s="00:00"!==t?a+1:a;i._ticks[a].label=i.options.labels[s]}))}}]},max:function(){var t=[Math.max.apply(Math,O()(this.dataWgustms)),Math.max.apply(Math,O()(this.dataWsms))],e=Math.max.apply(Math,t);return(e=Math.ceil(e+1))>this.minRange?e:this.minRange},themeColor:function(){return P.themeColors[this.config.theme]},renderWindDirectionLabels:function(){return this.dataWdirLabels.slice(24*this.startDay,24*this.endDay)},renderWindDirectionIcons:function(){return this.dataWdir.slice(24*this.startDay,24*this.endDay).map((function(t){return t&&(t>=0&&t<18||360===t)?B.from_0:t>=18&&t<36?B.from_18:t>=36&&t<54?B.from_36:t>=54&&t<72?B.from_54:t>=72&&t<90?B.from_72:t>=90&&t<108?B.from_90:t>=108&&t<126?B.from_108:t>=126&&t<144?B.from_126:t>=144&&t<162?B.from_144:t>=162&&t<180?B.from_162:t>=180&&t<198?B.from_180:t>=198&&t<216?B.from_198:t>=216&&t<234?B.from_216:t>=234&&t<252?B.from_234:t>=252&&t<270?B.from_252:t>=270&&t<288?B.from_270:t>=288&&t<306?B.from_288:t>=306&&t<324?B.from_306:t>=324&&t<342?B.from_324:t>=342&&t<360?B.from_342:""}))}}};var U=function(t){i("5gNZ")},H=Object(g.a)(q,(function(){var t=this.$createElement;
1return(this._self._c||t)("app-line-chart",{attrs:{"chart-data":this.data,options:this.options,plugins:this.plugins,"data-cucumber":"weatherResults_windChart_visible"}})}),[],!1,U,"data-v-6c70a902",null).exports,G={name:"HumidityGraph",components:{appLineChart:E},props:{units:{type:Object,default:function(){return{}}},dataRelhum:{type:[Object,Array],default:function(){return{}}},dates:{type:[Object,Array],default:function(){return{}}},times:{type:[Object,Array],default:function(){return{}}},days:{type:[Object,Array],default:function(){return{}}},startDay:{type:Number,default:0},endDay:{type:Number,default:0}},data:function(){return{}},computed:{translations:function(){return window.snTranslations&&window.snTranslations.weather},config:function(){return window.snConfig},dailySummary:function(){var t=this;return this.days.map((function(e){return e.relhum+t.units.percent}))},data:function(){return{labels:this.dates.slice(24*this.startDay,24*this.endDay),datasets:[{label:"".concat(this.translations.relativeHumidity," (").concat(this.units.percent,")"),borderColor:this.themeColor,backgroundColor:this.themeColor,fill:!1,data:this.dataRelhum.slice(24*this.startDay,24*this.endDay),borderWidth:3,pointRadius:0}]}},tooltipFormat:function(){var t="YYYY-MM-DD H:mm";return this.translations.format.date&&""!==this.translations.format.date&&this.translations.format.time&&""!==this.translations.format.time&&(t="".concat(this.translations.format.date," ").concat(this.translations.format.time)),t},options:function(){var t=this.units;return{maintainAspectRatio:!1,legend:{labels:{boxWidth:20}},scales:{yAxes:[{type:"linear",ticks:{beginAtZero:!0,min:0,max:100,callback:function(e){return e+t.percent}}}],xAxes:[{type:"time",distribution:"series",gridLines:{drawOnChartArea:!0,tickMarkLength:0},ticks:{source:"labels",display:!1},time:{displayFormats:{hour:"H:mm"},tooltipFormat:this.tooltipFormat,unit:"hour"}},{id:"xAxis1",type:"time",distribution:"series",gridLines:{drawOnChartArea:!1,tickMarkLength:15},time:{displayFormats:{hour:"H:mm"},unit:"hour"}},{id:"xAxis2",position:"top",type:"time",distribution:"series",bounds:"data",gridLines:{lineWidth:2,drawBorder:!1,tickMarkLength:15},ticks:{labelOffset:35},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}}},{id:"xAxis4",position:"bottom",type:"time",distribution:"series",gridLines:{lineWidth:2,drawBorder:!1,drawOnChartArea:!1,tickMarkLength:15},ticks:{labelOffset:15},time:{unit:"day",displayFormats:{day:this.translations.format.day_weekday}},labels:this.dailySummary.slice(this.startDay,this.endDay+1)}]}}},plugins:function(){var t=this.times[0];return[{beforeDraw:function(e){var i=e.scales.xAxis4;i._ticks.forEach((function(e,a){var s="00:00"!==t?a+1:a;i._ticks[a].label=i.options.labels[s]}))}}]}
1,themeColor:function(){return P.themeColors[this.config.theme]}}};var W=function(t){i("Jfbw")},Z={components:{appTemperatureGraph:D,appPrecipitationGraph:z,appWindGraph:H,appHumidityGraph:Object(g.a)(G,(function(){var t=this.$createElement;return(this._self._c||t)("app-line-chart",{attrs:{"chart-data":this.data,options:this.options,plugins:this.plugins,"data-cucumber":"weatherResults_humidityChart_visible"}})}),[],!1,W,"data-v-74a62f9a",null).exports},props:{weatherData:{type:[Object,Array],default:function(){}},located:{type:Boolean,default:!1},tempLocated:{type:Boolean,default:!1}},data:function(){return{startDay:0,displayDays:4,scrollSize:3,windowWidth:window.innerWidth,isLocated:!1,graphTemperature:!1,graphPrecipitation:!1,graphWind:!1,graphHumidity:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.weather)&&window.snTranslations.weather},dates:function(){return this.weatherData.day1h.isotime}},watch:{windowWidth:function(){this.setDisplayDays()}},mounted:function(){var t=this,e=this;this.isLocated=this.located,this.setDisplayDays(),this.$nextTick((function(){window.addEventListener("resize",(function(){e.windowWidth=window.innerWidth}))})),F.a.$on("updateFromBar",(function(e){if("updateToogle"===e&&localStorage.getItem("isPz")){var i=localStorage.getItem("isPz");(i=JSON.parse(i)).isPz?localStorage.getItem("pzAddress")&&(t.isLocated=!0):t.isLocated=!1}})),this.renderElement("graphTemperature"),this.renderElement("graphPrecipitation"),this.renderElement("graphWind"),this.renderElement("graphHumidity")},methods:{renderElement:function(t){var e=this,i=this.$refs[t],a=function(){var s=i.getBoundingClientRect();s.width>0&&s.height>0&&s.top>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&(e[t]=!0,window.removeEventListener("scroll",a))};window.addEventListener("scroll",a),a()},isNextDisabled:function(){return this.weatherData&&this.weatherData.days&&this.startDay+this.displayDays>this.weatherData.days.length-1},scrollNext:function(){this.weatherData.days&&this.startDay+this.displayDays+this.scrollSize>this.weatherData.days.length?this.startDay=this.weatherData.days.length-this.displayDays:this.startDay+=this.scrollSize},scrollPrev:function(){this.startDay-this.scrollSize<0?this.startDay=0:this.startDay-=this.scrollSize},setDisplayDays:function(){this.windowWidth>=P.breakpoints.sm?(this.displayDays=4,void 0!==this.weatherData&&void 0!==this.weatherData.days&&this.displayDays+this.startDay>this.weatherData.days.length&&(this.startDay=this.weatherData.days.length-this.displayDays)):this.displayDays=3}}};var J=function(t){i("4dRW")},K=Object(g.a)(Z,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isLocated||t.tempLocated?i("div",[i("section",{ref:"graphTemperature"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("h2",[t._v(t._s(t.translations.temperature))])])]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.graphTemperature?i("div",{staticClass:"row chart-row justify-content-center"},[i("div",{staticClass:"col-11"},[i("div",{staticClass:"chart-wrapper-outer"},[i("button",{staticClass:"swiper-button-prev",class:{"swiper-button-disabled":0==t.startDay},on:{click:t.scrollPrev}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_before")])]),t._v(" "),i("button",{staticClass:"swiper-button-next",class:{"swiper-button-disabled":t.isNextDisabled()},on:{click:t.scrollNext}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_next")])]),t._v(" "),i("div",{staticClass:"chart-wrapper-inner"},[t.weatherData.day1h?i("app-temperature-graph",{attrs:{units:t.weatherData.units,dates:t.dates,times:t.weatherData.day1h.time,"data-temperature":t.weatherData.day1h.tair,"data-dewpoint":t.weatherData.day1h.tdew,days:t.weatherData.days,translations:t.translations,"start-day":t.startDay,"end-day":t.startDay+t.displayDays}}):t._e()],1)])])]):t._e()]),t._v(" "),t.graphTemperature?t._e():i("div",{staticClass:"chart-placeholder"})],1),t._v(" "),i("section",{ref:"graphPrecipitation"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("h2",[t._v(t._s(t.translations.precipitation))])])]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.graphPrecipitation?i("div",{staticClass:"row chart-row justify-content-center"},[i("div",{staticClass:"col-11"},[i("div",{staticClass:"chart-wrapper-outer"},[i("button",{staticClass:"swiper-button-prev",class:{"swiper-button-disabled":0==t.startDay},on:{click:t.scrollPrev}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_before")])]),t._v(" "),i("button",{staticClass:"swiper-button-next",class:{"swiper-button-disabled":t.isNextDisabled()},on:{click:t.scrollNext}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_next")])]),t._v(" "),i("div",{staticClass:"chart-wrapper-inner"},[t.weatherData.day1h?i("app-precipitation-graph",{attrs:{units:t.weatherData.units,dates:t.dates,times:t.weatherData.day1h.time,"data-
1precprob":t.weatherData.day1h.precprob,"data-prec":t.weatherData.day1h.prec,days:t.weatherData.days,translations:t.translations,"start-day":t.startDay,"end-day":t.startDay+t.displayDays}}):t._e()],1)])])]):t._e()]),t._v(" "),t.graphPrecipitation?t._e():i("div",{staticClass:"chart-placeholder"})],1),t._v(" "),i("section",{ref:"graphWind"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("h2",[t._v(t._s(t.translations.wind))])])]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.graphWind?i("div",{staticClass:"row chart-row justify-content-center"},[i("div",{staticClass:"col-11"},[i("div",{staticClass:"chart-wrapper-outer"},[i("button",{staticClass:"swiper-button-prev",class:{"swiper-button-disabled":0==t.startDay},on:{click:t.scrollPrev}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_before")])]),t._v(" "),i("button",{staticClass:"swiper-button-next",class:{"swiper-button-disabled":t.isNextDisabled()},on:{click:t.scrollNext}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_next")])]),t._v(" "),i("div",{staticClass:"chart-wrapper-inner"},[t.weatherData.day1h?i("app-wind-graph",{attrs:{units:t.weatherData.units,dates:t.dates,times:t.weatherData.day1h.time,"data-wsms":t.weatherData.day1h.wsms,"data-wgustms":t.weatherData.day1h.wgustms,"data-wdir":t.weatherData.day1h.wdir,"data-wdir-labels":t.weatherData.day1h.wdir_labels,days:t.weatherData.days,translations:t.translations,"start-day":t.startDay,"end-day":t.startDay+t.displayDays}}):t._e()],1)])])]):t._e()]),t._v(" "),t.graphWind?t._e():i("div",{staticClass:"chart-placeholder"})],1),t._v(" "),i("section",{ref:"graphHumidity"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("h2",[t._v(t._s(t.translations.humidity))])])]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.graphHumidity?i("div",{staticClass:"row chart-row justify-content-center"},[i("div",{staticClass:"col-11"},[i("div",{staticClass:"chart-wrapper-outer"},[i("button",{staticClass:"swiper-button-prev",class:{"swiper-button-disabled":0==t.startDay},on:{click:t.scrollPrev}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_before")])]),t._v(" "),i("button",{staticClass:"swiper-button-next",class:{"swiper-button-disabled":t.isNextDisabled()},on:{click:t.scrollNext}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("navigate_next")])]),t._v(" "),i("div",{staticClass:"chart-wrapper-inner"},[t.weatherData.day1h?i("app-humidity-graph",{attrs:{units:t.weatherData.units,dates:t.dates,times:t.weatherData.day1h.time,"data-relhum":t.weatherData.day1h.relhum,days:t.weatherData.days,translations:t.translations,"start-day":t.startDay,"end-day":t.startDay+t.displayDays}}):t._e()],1)])])]):t._e()]),t._v(" "),t.graphHumidity?t._e():i("div",{staticClass:"chart-placeholder"})],1)]):t._e()}),[],!1,J,"data-v-6ea6bb2e",null).exports,Y=i("pH9e"),Q=i("w9Lr"),X={name:"SectionHeader",props:{title:{type:String,default:""},titleHtml:{type:String,default:""},link:{type:String,default:""},linkText:{type:String,default:""},linkUrl:{type:String,default:""},className:{type:String,default:""},hasBorder:{type:Boolean,default:!1},useBrandColor:{type:Boolean,default:!1},hideLinkOnMobile:{type:Boolean,default:!1}},computed:{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}}};var tt=function(t){i("qJfJ")},et=Object(g.a)(X,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.title||t.titleHtml||t.$slots.text||t.$slots.title||t.$slots.titleMobile||t.link||t.linkUrl&&t.linkText?i("div",{staticClass:"fl-section-header d-flex flex-column flex-lg-row justify-content-between",class:[t.className,{"with-border":t.hasBorder}]},[t.title||t.titleHtml||t.$slots.text?i("div",{staticClass:"fl-section-header-item"},[t.title?i("h2",{class:{"theme-txt-color-brand":t.useBrandColor}},[t._v(t._s(t.title))]):t._e(),t._v(" "),t.titleHtml?i("div",{staticClass:"fl-section-title",domProps:{innerHTML:t._s(t.titleHtml)}}):t._e(),t._v(" "),t.$slots.text?i("div",{staticClass:"fl-section-text"},[t._t("text")],2):t._e()]):t._e(),t._v(" "),t.$slots.title?t._t("title"):t._e(),t._v(" "),t.$slots.titleMobile?t._t("titleMobile"):t._e(),t._v(" "),t.link?i("div",{staticClass:"fl-section-header-item",class:{"d-none d-lg-block":t.hideLinkOnMobile},domProps:{innerHTML:t._s(t.link)}}):t._e(),t._v(" "),t.linkUrl&&t.linkText?i("div",{staticClass:"fl-section-header-item",class:{"d-none d-lg-block":t.hideLinkOnMobile}},[i("a",{staticClass:"fl-btn fl-btn-icon-primary-lg-big",attrs:{href:t.linkUrl,title:t.functionHelper.formatTitle(t.translationsCommon.visit,t.linkText,t.linkUrl)}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")]),t._v("\n      "+t._s(t.linkText)+"\n    ")])]):t._e()],2):t._e()}),[],!1,tt,"data-v-2f516e16",null).exports,it=i("duae"),at={name:"TeaserPagination",components:{Fragment:it.a},props:{className:{type:String,default:""},navType:{type:String,default:"default"}}};var st=function(t){i("lZ7w")},nt=Object(g.a)(at,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[""===t.navType||"default"===t.navType?[i("div",{staticClass:"navigation",class:t.className},[i("div",{staticClass:"swiper-button-prev fl-btn fl-btn-primary-bkgr-action d-none d-lg-inline-flex"},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("west")])]),t._v(" "),i("div",{staticClass:"swiper-pagination"}),t._v(" "),i("div",{staticClass:"swiper-button-next fl-btn fl-btn-primary-bkgr-action d-none d-lg-inline-flex"},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")])])])]:"btnBkg"===t.navType?[i("div",{staticClass:"navigation",class:t.className},[i("div",{staticClass:"swiper-slide-buttons fl-container-fluid d-flex justify-content-end justify-content-lg-start"},[i("div",{staticClass:"swiper-button-prev fl-btn fl-btn-primary-action"},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("west")])]),t._v(" "),i("div",{staticClass:"swiper-button-next fl-btn fl-btn-primary-action"},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")])])])])]:"btnBkgRight"===t.navType?[i("div",{staticClass:"navigation",class:t.className},[i("div",{staticClass:"swiper-slide-buttons fl-container-fluid d-flex justify-content-end"},[i("div",{staticClass:"swiper-button-prev fl-btn fl-btn-primary-action"},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("west")])]),t._v(" "),i("div",{staticClass:"swiper-button-next fl-btn fl-btn-primary-action"},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")])])])])]:t._e()],2)}),[],!1,st,"data-v-4fbf01e8",null).exports,ot=i("e+jF"),rt=i.n(ot),lt={name:"Grid",components:{GridLayout:rt.a.GridLayout,GridItem:rt.a.GridItem,Fragment:it.a},props:{content:{type:Array,default:function(){return[]}},isMobile:{type:Boolean,default:!1},noTransition:{type:Boolean,default:!1}},data:function(){return{rlVar:"rl",draggable:!1,resizable:!1,mirrored:!1,responsive:!0,layoutsMobile:[],layoutsDesktop:[],rowHeight:88,grid1element:[{x:0,y:0,w:12,h:3,i:0}],grid2elements:[{x:0,y:0,w:6,h:6,i:0},{x:6,y:0,w:6,h:6,i:1}],grid3elements:[{x:0,y:0,w:6,h:6,i:0},{x:6,y:0,w:6,h:3,i:1},{x:6,y:3,w:6,h:3,i:2}],grid4elements:[{x:0,y:0,w:6,h:6,i:0},{x:6,y:0,w:6,h:3,i:1},{x:6,y:3,w:3,h:3,i:2},{x:9,y:3,w:3,h:3,i:3}]}},computed:{layouts:function(){return{lg:this.layoutsDesktop,xxs:this.layoutsMobile}},breakpoints:function(){return this.isMobile?{lg:992,xxs:0}:{lg:0}}},watch:{content:function(){var t=this;this.layoutsMobile=this.setLayoutMobile(),this.layoutsDesktop=this.setLayoutDesktop(),this.$nextTick((function(){t.$refs&&t.$refs.gridLayout&&t.$refs.gridLayout.onWindowResize()}))}},mounted:function(){var t=this;this.layoutsMobile=this.setLayoutMobile(),this.layoutsDesktop=this.setLayoutDesktop(),setTimeout((function(){t.$refs&&t.$refs.gridLayout&&t.$refs.gridLayout.onWindowResize()}),0)},methods:{setLayoutMobile:function(){return this.content.map((function(t,e){return{x:0,y:3*e,w:6,h:6,i:e}}))},setLayoutDesktop:function(){var t=this.content.length;switch(t){case 0:case 1:return this.grid1element;case 2:return this.grid2elements;case 3:return this.grid3elements;case 4:return this.grid4elements;default:return this.calculateGrid(t)}},calculateGrid:function(t){for(var e=this.grid4elements,i=4;i<this.content.length;i+=1){var a=this.calculateX(t,i),s=this.calculateW(t,i);e=[].concat(O()(e),[{x:a,y:6,w:s,h:3,i:i}])}return e},calculateX:function(t,e){return e%4==0?0:e%4==1?e===t-1?6:3:e%4==2?6:e%4==3?9:3},calculateW:function(t,e){return e%4==0&&e===t-1?12:e%4==0&&e===t-2||e%4==1&&e===t-1||e%4==2&&e===t-1?6:3},getRowHeight:function(){var t=document.getElementsByClassName("vue-grid-item")[0],e=this.rowHeight;return t&&(e=t.getBoundingClientRect().width),e/8}
1,getImageDependingOnSizeStyle:function(t,e,i){var a=null,s="teaser-image-square-high";12===e&&6===i?s="teaser-image-rectangle-high":6===e&&6===i?s="teaser-image-square-high":6===e&&3===i?s="teaser-image-rectangle-medium":3===e&&3===i?s="teaser-image-square-medium":12===e&&3===i&&(s="teaser-image-rectangle-high");var n=t[s],o=t["".concat(s,"-webp")];if(n){n=n.replace(/\(/g,"%28").replace(/\)/g,"%29");var r="u".concat(this.rlVar,"(").concat(n,")");if(o){o=o.replace(/\(/g,"%28").replace(/\)/g,"%29");var l="u".concat(this.rlVar,"(").concat(o,")");a={backgroundImage:"".concat(l,", ").concat(r)}}else a={backgroundImage:r}}return a}}};var ct=function(t){i("/TNg")},ut=Object(g.a)(lt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"grid-wrapper overflow-hidden",class:{"grid-no-transition":t.noTransition}},[i("grid-layout",{ref:"gridLayout",attrs:{layout:t.layoutsDesktop,"responsive-layouts":t.layouts,"col-num":12,"row-height":t.getRowHeight(),"is-draggable":t.draggable,"is-resizable":t.resizable,"is-mirrored":t.mirrored,responsive:t.responsive,breakpoints:t.breakpoints,"vertical-compact":!0,"use-css-transforms":!0,margin:[24,24]},on:{"update:layout":function(e){t.layoutsDesktop=e},"layout-ready":function(e){return t.$emit("gridReady")}}},[t._l(t.content,(function(e,a){return[t.layoutsDesktop[a]?i("grid-item",{key:a,staticClass:"overflow-hidden",class:{"fl-vue-grid-item-no-text":0!==a},style:t.getImageDependingOnSizeStyle(e,t.layoutsDesktop[a].w,t.layoutsDesktop[a].h),attrs:{x:t.layoutsDesktop[a].x,y:t.layoutsDesktop[a].y,w:t.layoutsDesktop[a].w,h:t.layoutsDesktop[a].h,i:t.layoutsDesktop[a].i}},[i("fragment",{domProps:{innerHTML:t._s(e["snippet-teaser"])}})],1):t._e()]}))],2)],1)}),[],!1,ct,"data-v-65fd8142",null).exports,dt={name:"DynamicTeasers",components:{SectionHeader:et,TeaserPagination:nt,Grid:ut},props:{topHeadline:{type:String,default:""},topSubline:{type:String,default:""},teasersSameHeightSlideId:{type:String,default:null},headline:{type:String,default:""},headlineHtml:{type:String,default:""},headlineLink:{type:String,default:""},headlineLinkText:{type:String,default:""},id:{type:String,default:""},usePzBar:{type:String,default:""},singleSlides:{type:String,default:""},resultType:{type:String,default:""},amount:{type:String,default:""},size:{type:String,default:""},activeIngredientId:{type:String,default:""},contactTypeId:{type:String,default:""},cropGroupId:{type:String,default:""},cropSubgroupId:{type:String,default:""},cropId:{type:String,default:""},eventCategoryId:{type:String,default:""},indicationId:{type:String,default:""},pestGroupId:{type:String,default:""},pestSubgroupId:{type:String,default:""},pestId:{type:String,default:""},productId:{type:String,default:""},crossCategoryId:{type:String,default:""},dtId:{type:String,default:""},newsId:{type:String,default:""},newsCategoryId:{type:String,default:""},newsCategoryLocalize:{type:String,default:""},newsCategoryCropfilter:{type:String,default:""},newsCategorySearch:{type:String,default:""},emptyMsg:{type:String,default:""},emptyMsgShow:{type:Boolean,default:!1},alignment:{type:String,default:""},useSlider:{type:Boolean,default:!0},rowCount:{type:String,default:""},hasBorder:{type:Boolean,default:!0},navType:{type:String,default:"default"}},data:function(){return{compId:null,currentTeaserData:[],page:0,errors:[],dynamicAmount:0,totalElements:0,windowWidth:window.innerWidth}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!!window.snTranslations&&window.snTranslations},dynamicTeaserConfig:function(){return void 0!==window.dynamicTeaserConfig&&window.dynamicTeaserConfig},showTopTexts:function(){return this.topHeadline||this.topSubline},topTexts:function(){var t="";return this.showTopTexts&&(t+='<div class="teaser-top-text">',this.topHeadline&&(t+="<h3>".concat(this.topHeadline,"</h3>")),this.topSubline&&(t+="<p>".concat(this.topSubline,"</p>")),t+="</div>"),t},isOnlyNews:function(){return"news"===this.resultType},isMobile:function(){return this.windowWidth<P.breakpoints.lg}},watch:{dynamicAmount:function(t,e){t!==e&&(this.reset(),this.fetchData(null))}},mounted:function(){var t=this;F.a.$on("updateFromBar",(function(){"true"===t.usePzBar&&(t.reset(),t.fetchData(null))}))},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},created:function(){this.compId="dynamic-teasers-".concat(this._uid),this.isOnlyNews?this.setDynamicAmount():this.useSlider?this.dynamicAmount=this.amount:this.setDynamicAmount(),window.addEventListener("resize",this.handleResize)},methods:{fetchData:function(t){var e=this,i="",a="",s="",n=[];if(this.cropGroupId&&n.push(this.cropGroupId),(Y.a.isPersonalizedWithAddress()||Y.a.isPersonalizedWithCrops())&&this.contactTypeId&&(i=this.contactTypeId),Y.a.isPersonalizedWithAddress()&&("news"===this.resultType&&"true"===this.newsCategoryLocalize||"contact"===this.resultType)){var o=!1,r=null;try{localStorage.getItem("pzAddress")&&(r=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){o=!0}!o&&r&&(a=r.latitude,s=r.longitude)}if("true"===this.usePzBar&&Y.a.isPersonalizedWithCrops()&&("news"===this.resultType&&"true"===this.newsCategoryCropfilter||"news"!==this.resultType)){var l=!1,c=null;try{localStorage.getItem("pzCrops")&&(c=JSON.parse(localStorage.getItem("pzCrops")))}catch(t){l=!0}
1!l&&c&&c.crops&&Object.keys(c.crops).forEach((function(t){n.push("".concat(c.crops[t]))}))}this.useSlider&&!this.isOnlyNews&&(this.currentTeaserData=[]);var u=!1;this.isOnlyNews&&(u=!0),this.$store.dispatch("main/fetchDynamicTeasers",{page:this.page,count:this.dynamicAmount,resultTypes:this.resultType,ignoreId:this.id,activeIngredientId:this.activeIngredientId,cropGroupId:[n],cropSubgroupId:this.cropSubgroupId,cropId:this.cropId,eventCategoryId:this.eventCategoryId,indicationId:this.indicationId,pestGroupId:this.pestGroupId,pestSubgroupId:this.pestSubgroupId,pestId:this.pestId,crossCategoryId:this.crossCategoryId,productId:this.productId,newsCategoryId:this.newsCategoryId,newsId:this.newsId,contactTypeId:i,latitude:a,longitude:s,useTeaser:u}).then((function(i){if(e.errors=[],i&&i.content){e.totalElements=i.totalElements;var a=JSON.parse(JSON.stringify(i.content));e.currentTeaserData=[].concat(O()(e.currentTeaserData),O()(a))}e.currentTeaserData.length>0&&document.getElementById(e.dtId)&&(document.getElementById(e.dtId).style.display="block"),t&&e.$nextTick((function(){t()}))})).catch((function(t){e.errors.push(t)}))},handleResize:function(){this.useSlider||this.setDynamicAmount()},setDynamicAmount:function(){this.isOnlyNews?this.dynamicAmount=4:window.innerWidth>=P.breakpoints.lg?this.dynamicAmount=3*this.rowCount:window.innerWidth>=P.breakpoints.md?this.dynamicAmount=2*this.rowCount:this.dynamicAmount=this.rowCount},showMore:function(t){this.page+=1;var e=t.pageY;this.fetchData(null),this.isOnlyNews?this.isMobile&&this.scrollToPosition(e):this.scrollToPosition(e)},showLess:function(){var t=this;this.reset();this.fetchData((function(){var e=document.getElementById(t.compId);if(e){var i=e.getBoundingClientRect().top+window.scrollY;t.scrollToPosition(i)}}))},scrollToPosition:function(t){setTimeout((function(){window.scrollTo({top:t-80,behavior:"smooth"})}),100)},reset:function(){this.page=0,this.currentTeaserData=[]}}};var pt=function(t){i("oDxd")},mt=Object(g.a)(dt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.currentTeaserData.length>0&&!t.emptyMsgShow||t.emptyMsgShow?i("div",{attrs:{id:t.compId}},[i("SectionHeader",{attrs:{title:t.headline,"title-html":t.headlineHtml,"link-text":t.headlineLinkText,"link-url":t.headlineLink,"has-border":t.hasBorder,"class-name":"align-items-lg-center"}}),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[t.isOnlyNews?[i("div",[i("Grid",{ref:"grid",attrs:{"is-mobile":t.isMobile,content:t.currentTeaserData,"no-transition":!0}})],1),t._v(" "),t.totalElements>4?i("div",{staticClass:"d-flex justify-content-center mt-3 mb-3"},[t.currentTeaserData.length<t.totalElements?i("a",{staticClass:"fl-btn fl-btn-primary-bkgr",attrs:{title:t.translations.news.showMore,href:"#"},on:{click:function(e){return e.preventDefault(),t.showMore.apply(null,arguments)}}},[t._v(t._s(t.translations.news.showMore))]):i("a",{staticClass:"fl-btn fl-btn-primary-bkgr",attrs:{title:t.translations.news.showLess,href:"#"},on:{click:function(e){return e.preventDefault(),t.showLess.apply(null,arguments)}}},[t._v(t._s(t.translations.news.showLess))])]):t._e()]:t.useSlider?[t.currentTeaserData.length>0?i("div",{staticClass:"swiper-wrapper-outer not-initialized",class:["slides-count-"+t.currentTeaserData.length,"true"==t.singleSlides?"singleSlides":""],attrs:{"data-size":t.size}},[i("div",{staticClass:"swiper"},[i("div",{staticClass:"swiper-wrapper"},[t._l(t.currentTeaserData,(function(e,a){return["horizontal"!==t.alignment&&t.showTopTexts?[e.snippet?i("div",{key:a,staticClass:"swiper-slide",class:t.teasersSameHeightSlideId},[i("div",{staticClass:"teaser-main-area",domProps:{innerHTML:t._s(t.topTexts+e.snippet)}})]):t._e()]:[e["snippet-horizontal"]||e.snippet?i("div",{key:a,staticClass:"swiper-slide",class:[{"w-100":"horizontal"==t.alignment},t.teasersSameHeightSlideId],domProps:{innerHTML:t._s("horizontal"===t.alignment?e["snippet-horizontal"]:e.snippet)}}):t._e()]]}))],2)]),t._v(" "),t.currentTeaserData.length>0?i("TeaserPagination",{attrs:{"class-name":"horizontal"==t.alignment?"horizontal":"","nav-type":t.navType}}):t._e()],1):t._e()]:[i("div",{staticClass:"row teaser teaser-row"},[t._l(t.currentTeaserData,(function(e,a){return["horizontal"!==t.alignment&&t.showTopTexts?[e.snippet?i("div",{key:a,staticClass:"teaser-box col-12 col-md-6 col-lg-4",class:t.teasersSameHeightSlideId},[i("div",{staticClass:"teaser-main-area",domProps:{innerHTML:t._s(t.to
1pTexts+e.snippet)}})]):t._e()]:[e.snippet?i("div",{key:a,staticClass:"teaser-box col-12 col-md-6 col-lg-4",class:t.teasersSameHeightSlideId,domProps:{innerHTML:t._s(e.snippet)}}):t._e()]]})),t._v(" "),t.currentTeaserData.length<t.totalElements?i("button",{staticClass:"button button-full-width",class:t.dtId,on:{click:function(e){return e.preventDefault(),t.showMore.apply(null,arguments)}}},[t._v("\n            "+t._s(t.translations.common.showMore)+"\n          ")]):t._e()],2)],t._v(" "),0===t.currentTeaserData.length&&t.emptyMsgShow?i("div",{staticClass:"alert alert-grey",attrs:{role:"alert"}},[t._v("\n        "+t._s(t.emptyMsg)+"\n      ")]):t._e()],2)])],1):t._e()}),[],!1,pt,"data-v-2a0ecf16",null).exports,ht={name:"Cockpit",components:{appDynamicTeasers:mt},props:{fsId:{type:String,default:""}},data:function(){return{cockpitConfigData:[],localized:!1,personalized:!1}},computed:{cockpitConfig:function(){return void 0!==window.cockpitConfig&&window.cockpitConfig[this.fsId]},config:function(){return void 0!==window.snConfig&&window.snConfig}},mounted:function(){var t=this;F.a.$on("updateFromBar",(function(){t.localized=t.isLocalized(),t.personalized=t.isPersonalized()}))},created:function(){this.localized=this.isLocalized(),this.personalized=this.isPersonalized()},methods:{showChecker:function(t){return!(!t.showIfLocalized||!this.localized)||(!(!t.showIfNotLocalized||this.localized)||(!(!t.showIfPersonalized||!this.personalized)||!(!t.showIfNotPersonalized||this.personalized)))},isLocalized:function(){var t=!1,e=null;try{localStorage.getItem("isPz")&&(e=JSON.parse(localStorage.getItem("isPz")))}catch(e){t=!0}return!(!localStorage.getItem("pzAddress")||(!localStorage.getItem("isPz")||t||!e||!1===e.isPz)&&localStorage.getItem("isPz"))},isPersonalized:function(){var t=!1,e=null;try{localStorage.getItem("pzCrops")&&(e=JSON.parse(localStorage.getItem("pzCrops")))}catch(e){t=!0}var i=!1,a=null;try{localStorage.getItem("isPz")&&(a=JSON.parse(localStorage.getItem("isPz")))}catch(t){i=!0}return!!(localStorage.getItem("pzCrops")&&!t&&e&&e.crops.length>0&&(localStorage.getItem("isPz")&&!i&&a&&!1!==a.isPz||!localStorage.getItem("isPz")))}}};var ft=function(t){i("2YRT")},gt=Object(g.a)(ht,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row"},t._l(t.cockpitConfig,(function(e,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:t.showChecker(e),expression:"showChecker(c)"}],key:a,class:t.localized?e.classIfLocalized:e.classIfNotLocalized,domProps:{innerHTML:t._s(e.html)}})})),0)}),[],!1,ft,"data-v-55286ba7",null).exports,vt=i("StfC");var bt=function(t){i("nVwl")},wt=Object(g.a)(vt.a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"calculator-template"},[i("div",{staticClass:"col-12 calculator-fields"},[[i("h2",[t._v(t._s(t.fsTexts.headline))]),t._v(" "),t.fsTexts.subheadline?i("div",{staticClass:"introText",domProps:{innerHTML:t._s(t.fsTexts.subheadline)}}):t._e(),t._v(" "),t._l(t.inputList,(function(e,a){return i("div",{key:a,staticClass:"row inputRow"},[i("div",{staticClass:"col-md-4"},[i("div",{staticClass:"label",domProps:{innerHTML:t._s(e.label)}}),t._v(" "),e.tooltip?i("div",{staticClass:"tooltipCalc"},[i("i",{staticClass:"icon icon-info",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{staticClass:"tooltipText",domProps:{innerHTML:t._s(e.tooltip)}})]):t._e()]),t._v(" "),i("div",{staticClass:"col-md-8"},[e.dropdown?i("div",{staticClass:"input-group"},[i("select",{class:["form-control inputField_"+t.fsid+"_"+a],on:{change:function(e){return t.onChange(e,a)}}},[i("option",{attrs:{value:"init",disabled:"",selected:""}},[t._v(t._s(t.translations.selectText))]),t._v(" "),t._l(e.dropdown,(function(a,s){return i("option",{key:e.id+"_"+s+"_"+a.value,domProps:{value:a.value,innerHTML:t._s(a.title)}})}))],2),t._v(" "),i("div",{staticClass:"invalid-feedback"},[t._v("\n              "+t._s(t.translations.errorMsg)+"\n            ")])]):i("div",{staticClass:"input-group"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.form.input_id[a],expression:"form.input_id[index]"}],class:["form-control inputField_"+t.fsid+"_"+a],attrs:{placeholder:e.unit,type:"text",required:""},domProps:{value:t.form.input_id[a]},on:{input:function(e){e.target.composing||t.$set(t.form.input_id,a,e.target.value)}}}),i("br"),t._v(" "),i("div",{staticClass:"invalid-feedback"},[t._v("\n              "+t._s(t.translations.errorMsg)+"\n            ")])])])])})),t._v(" "),i("div",{staticClass:"col-md-8 offset-md-4"},[i("button",{staticClass:"calcButton",attrs:{type:"submit"},on:{click:function(e){return t.calculate()}}},[t._v(t._s(t.translations.calculate))])]),t._v(" "),i("div",{staticClass:"results"},[i("h2",[t._v(t._s(t.translations.results))]),t._v(" "),t._l(t.formulaList,(function(e,a){return i("div",{key:a,staticClass:"row resultRows"},[i("div",{staticClass:"col-md-4"},[i("span",{staticClass:"resultText"},[t._v(t._s(e.name))])]),t._v(" "),i("div",{staticClass:"col-md-8"},[i("span",{class:["resVals resultValue_"+t.fsid+"_"+a]}),i("br")])])}))],2)]],2)])}),[],!1,bt,"data-v-210bc1ee",null).exports,yt=i("TaHA"),Ct=i("SXG0"),_t=i.n(Ct),St=i("xUtq"),Tt={extends:k.b,mixins:[k.d.reactiveProp],props:{chartData:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}}},watch:{options:{handler:function(){this.$data._chart&&this.$data._chart.destroy(),this.renderChart(this.chartData,this.options)},deep:!0}},mounted:function(){this.renderChart(this.chartData,this.options)}};var Pt=function(t){i("+h6n")},Ft=Object(g.a)(Tt,void 0,void 0,!1,Pt,"data-v-3f91e000",null).exports,xt={name:"CalculatorLWA",components:{Slider:_t.a,VueSelect:St.a,app
1DoughnutChart:Ft},props:{rowLabel:{type:String,default:""},growthStageLabel:{type:String,default:""},rowMetric:{type:String,default:""},colMetric:{type:String,default:""},resultMetric:{type:String,default:""},gsResultMetric:{type:String,default:""},resultMetricsJson:{type:String,default:""},productLabel:{type:String,default:""},productDefault:{type:String,default:""},json:{type:String,default:""},useSingleProduct:{type:Boolean,default:!0},pageHasSidebar:{type:Boolean,default:!1},showInfoMaxDosage:{type:Boolean,default:!0},showInfoMaxDosageExtra:{type:Boolean,default:!1},showInfoMinDosage:{type:Boolean,default:!1},selectFirstProduct:{type:Boolean,default:!1},selectFirstCrop:{type:Boolean,default:!1},selectFirstPest:{type:Boolean,default:!1},simpleResult:{type:Boolean,default:!1},hideProductName:{type:Boolean,default:!1},resultLabel:{type:String,default:""},infoLabel:{type:String,default:""},hideInfoLabel:{type:Boolean,default:!1},gsResultLabel:{type:String,default:""},gsInfoLabel:{type:String,default:""},gsHideInfoLabel:{type:Boolean,default:!1},distanceLabel:{type:String,default:""},heightLabel:{type:String,default:""},distanceHeadline:{type:String,default:""},heightHeadline:{type:String,default:""},growthStageHeadline:{type:String,default:""},resultTextAtEnd:{type:String,default:""},hidePestsSelect:{type:Boolean,default:!1},hideCropsSelect:{type:Boolean,default:!1}},data:function(){return{value_1:0,value_2:0,colFormatter:"{value} ".concat(this.colMetric),rowFormatter:"{value} ".concat(this.rowMetric),defaultValue:0,cropsOptions:[],currentCrop:{},pestsOptions:[],currentPest:{},productsOptions:[],currentProduct:{},crops:[],pests:[],products:[],table:[],infoMaxValue:"",gsInfoMaxValue:"",infoMaxValuePercentageDefault:"",gsInfoMaxValuePercentageDefault:"",infoMinValue:"",gsInfoMinValue:"",infoColLabel:"",maxValue:10,metrics:[],currentMetric:"",rowData:[],colData:[],growthStages:[],growthStageData:[],id:null,calcResultNumber:0,gsCalcResultNumber:null,selectedGrowthStage:null,gsTreatmentFrequencyIndex:null}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.calculator)&&window.snTranslations.calculator},config:function(){return window.snConfig},isDisabled:function(){return!this.currentPest.name},data:function(){return{datasets:[{data:[this.calculate(),this.maxValue-this.calculate()],backgroundColor:[this.themeColor,"#898989"],borderRadius:80,borderWidth:0}]}},hasGrowthStages:function(){var t=!1;return this.growthStages&&this.growthStages.length>0&&(t=!0),t},gsData:function(){return{datasets:[{data:[this.gsCalcResultNumber,this.gsMaxValue-this.gsCalcResultNumber],backgroundColor:[this.themeColor,"#898989"],borderRadius:80,borderWidth:0}]}},options:function(){return{cutoutPercentage:80,responsive:!0,aspectRatio:1,labels:{enabled:!1,display:!1},legend:{enabled:!1,display:!1},tooltips:{enabled:!1,display:!1},hover:{mode:null},layout:{padding:20},elements:{point:{radius:50}}}},gsOptions:function(){return{cutoutPercentage:80,responsive:!0,aspectRatio:1,labels:{enabled:!1,display:!1},legend:{enabled:!1,display:!1},tooltips:{enabled:!1,display:!1},hover:{mode:null},layout:{padding:20},elements:{point:{radius:50}}}},themeColor:function(){return P.themeColors[this.config.theme]},gsInfoLabelOutput:function(){var t="";return(t=this.isDisabled?this.gsInfoLabel?this.gsInfoLabel:this.translations.info.defaultMsg:this.gsInfoLabel?this.gsInfoLabel:this.translations.info.explanation)&&-1!==t.indexOf("%treatmentFrequencyIndex%")&&(t=t.replace(/%treatmentFrequencyIndex%/g,this.gsTreatmentFrequencyIndex?this.gsTreatmentFrequencyIndex:"")),t},heightLabelOut:function(){return this.isDisabled?this.heightLabel?this.heightLabel:this.translations.height:this.heightLabel?this.heightLabel:this.infoColLabel},distanceLabelOut:function(){return this.isDisabled?this.distanceLabel?this.distanceLabel:this.translations.distance:this.distanceLabel?this.distanceLabel:this.rowLabel}},watch:{calcResultNumber:function(){0!==this.value_1&&0!==this.value_2?this.updateGrowthStageResult():(this.selectedGrowthStage=null,this.gsCalcResultNumber=null,this.gsTreatmentFrequencyIndex=null)},gsCalcResultNumber:function(){this.updateGrowthStageTreatmentFrequencyIndex()}},created:function(){this.id="calulator_lwa_".concat(this._uid)},mounted:function(){var t,e,i,a=this;if(this.useSingleProduct)this.crops=(t=[]).concat.apply(t,O()(JSON.parse(this.json))),this.cropsOptions=this.createDropdownObject(this.crops),this.setInialValues();else if(this.products=(e=[]).concat.apply(e,O()(JSON.parse(this.json))),this.productsOptions=this.createDropdownObject(this.products),this.metrics=(i=[]).concat.apply(i,O()(JSON.parse(this.resultMetricsJson))),this.productDefault){var s=this.productsOptions.find((function(t){return t.name===a.productDefault}));s?this.updateProduct(s):this.updateProduct(this.productsOptions[0]),this.setInialValues()}else this.selectFirstProduct&&this.updateProduct(this.productsOptions[0]),this.selectFirstCrop&&this.updateCrop(this.cropsOptions[0]),this.selectFirstPest&&this.updatePest(this.pestsOptions[0])},methods:{setInialValues:function(){this.updateCrop(this.cropsOptions[0])},updateProduct:function(t){var e,i=this;this.currentCrop={},this.currentPest={},this.table=[],this.infoMaxValue="",this.infoMinValue="",this.gsInfoMaxValue="",this.gsInfoMinValue="",this.cropsOptions=[],this.pestsOptions=[],this.currentProduct=t,this.crops=null!==t.value?(e=[]).concat.apply(e,O()(Object.values(this.products[t.value]))):[],this.cropsOptions=this.createDropdownObject(this.crops),!this.useSingleProduct&&this.metrics.length&&(this.currentMetric=this.metrics.find((function(t){return t.product===i.currentProduct.name}))),this.productDefault&&this.updateCrop(this.cropsOptions[0]),this.get
1SliderData()},updateCrop:function(t){var e;this.currentPest={},this.table=[],this.infoMaxValue="",this.infoMinValue="",this.gsInfoMaxValue="",this.gsInfoMinValue="",this.pestsOptions=[],this.currentCrop=t,this.pests=null!==t.value?(e=[]).concat.apply(e,O()(Object.values(this.crops[t.value]))):[],this.pestsOptions=this.createDropdownObject(this.pests),(this.useSingleProduct||!this.useSingleProduct&&this.productDefault)&&this.updatePest(this.pestsOptions[0]),this.getSliderData()},updatePest:function(t){var e;this.table=[],this.infoMaxValue="",this.infoMinValue="",this.gsInfoMaxValue="",this.gsInfoMinValue="",this.currentPest=t;var i=Object.values(this.pests[t.value])[0];this.table=null!==t.value?(e=[]).concat.apply(e,O()(i.data)):[],this.infoMaxValue=i.infoMaxValue,this.infoMinValue=i.infoMinValue,this.infoMaxValuePercentageDefault=i.infoMaxValue,this.gsInfoMaxValue=i.gsInfoMaxValue,this.gsInfoMinValue=i.gsInfoMinValue,this.gsInfoMaxValuePercentageDefault=i.gsInfoMaxValue,this.infoColLabel=i.infoColLabel,this.maxValue=i.maxValue?+i.maxValue:this.maxValue,this.getSliderData()},getSliderData:function(){var t=this;!this.useSingleProduct&&this.currentProduct.name&&this.currentCrop.name&&this.currentPest.name&&JSON.parse(this.json).forEach((function(e){e[t.currentProduct.name]&&t.getSliderProductData(e[t.currentProduct.name])})),this.useSingleProduct&&this.currentCrop.name&&this.currentPest.name&&this.getSliderProductData(JSON.parse(this.json))},getSliderProductData:function(t){var e=this,i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;this.rowData=[],this.colData=[],t.forEach((function(t){t[e.currentCrop.name]&&t[e.currentCrop.name].forEach((function(t){t[e.currentPest.name]&&(t[e.currentPest.name].data.forEach((function(t){e.rowData.push(Number(t.row)),e.colData.push(Number(t.col)),Number(t.row)<i&&(i=Number(t.row)),Number(t.col)<a&&(a=Number(t.col))})),e.rowData=O()(new Set(e.rowData)),e.colData=O()(new Set(e.colData)),e.value_1=i,e.value_2=a,t[e.currentPest.name].growthStages?(e.growthStages=t[e.currentPest.name].growthStages,e.growthStageData=t[e.currentPest.name].growthStageData,e.gsMaxValue=Number(t[e.currentPest.name].gsMaxValue),e.$nextTick((function(){e.initGrowthStagesSlider(),e.selectGrowthStage(e.growthStages[0])}))):e.growthStages=[])}))}))},createDropdownObject:function(t){var e=[];return t&&t.length&&t.forEach((function(t,i){var a,s=(a="").concat.apply(a,O()(Object.keys(t)));e.push({name:s,value:i})})),e},calculate:function(){var t=this,e=this.table.find((function(e){return+e.row===t.value_1&&+e.col===t.value_2})),i=e&&e.value?+e.value:this.defaultValue;if(this.showInfoMaxDosageExtra){var a=this.maxValue?Number((100*i/this.maxValue).toFixed(2)):0;this.infoMaxValue=this.infoMaxValuePercentageDefault.replace("%3",a)}return this.calcResultNumber=i,i},getCount:function(t){return t?"(".concat(t,")"):""},triggerTealium:function(){"undefined"!=typeof utag&&utag.link({event_value:"lwa_calculator_used",event_type:"action",event_category:"content_interaction",event_action:"lwa_calculator_click"})},initGrowthStagesSlider:function(){var t=document.getElementById(this.id).querySelector(".growth-stages");if(t){var e=t.querySelector(".swiper");e&&new yt.d(e,{modules:[yt.a,yt.b,yt.c],grid:{rows:1,fill:"row"},simulateTouch:!1,slidesPerView:"auto",spaceBetween:5,observer:!0,observeParents:!0,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")}})}},selectGrowthStage:function(t){0!==this.value_1&&0!==this.value_2?(this.selectedGrowthStage=t,this.updateGrowthStageResult()):(this.selectedGrowthStage=null,this.gsCalcResultNumber=null,this.gsTreatmentFrequencyIndex=null)},updateGrowthStageResult:function(){var t=this;if(this.selectedGrowthStage){var e=""+this.calcResultNumber,i=this.growthStageData.find((function(i){return i.row===e&&i.col===t.selectedGrowthStage.number}));if(i)this.gsCalcResultNumber=Number(i.value);else{var a=this.growthStageData.filter((function(e){return e.col===t.selectedGrowthStage.number})),s=!1;a&&a.forEach((function(e){if(!s&&e.row&&0===e.row.indexOf(">")){var i=e.row.substring(1),a=Number(i);t.calcResultNumber>a&&(t.gsCalcResultNumber=Number(e.value),s=!0)}if(!s&&e.row&&0===e.row.indexOf("<")){var n=e.row.substring(1),o=Number(n);t.calcResultNumber<o&&(t.gsCalcResultNumber=Number(e.value),s=!0)}})),s||(this.gsCalcResultNumber=null,this.gsTreatmentFrequencyIndex=null)}if(this.showInfoMaxDosageExtra&&this.gsCalcResultNumber){var n=this.gsMaxValue?Number((100*this.gsCalcResultNumber/this.gsMaxValue).toFixed(2)):0;this.gsInfoMaxValue=this.gsInfoMaxValuePercentageDefault.replace("%3",n)}}},updateGrowthStageTreatmentFrequencyIndex:function(){if(this.selectedGrowthStage&&this.gsCalcResultNumber){var t=1-this.gsCalcResultNumber/2;this.gsTreatmentFrequencyIndex=t.toFixed(2)}}}};var Ot=function(t){i("3Bh/")},kt=Object(g.a)(xt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"calulator-lwa-wrapper",attrs:{id:t.id},on:{click:function(e){return t.triggerTealium()}}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12",class:[t.pageHasSidebar?"col-md-6":"col-md-8"]},[i("div",{staticClass:"calulator-lwa-filter",class:{small:t.pageHasSidebar}},[t.useSingleProduct?t._e():i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12 d-flex align-items-center",class:{"col-md-8":!t.pageHasSidebar}},[i("div",{staticClass:"calulator-lwa-filter-steps mr-2",class:{disabled:!t.productsOptions.length,"d-none d-lg-flex":t.pageHasSidebar,"d-none d-md-flex mr-md-4":!t.pageHasSidebar}},[i("span")]),t._v(" "),t.productsOptions.length?i("VueSelect",{attrs:{options:t.productsOptions,placeholder:t.translations.select.product+" "+t.getCount(t.productsOptions.length),"default-option":!1,selected:t.currentProduct.name,"is-disabled":!t.productsOptions.length},on:{callback:t.updateProduct}}):t._e()],1)]),t._v(" "),t.hideCropsSelect?t._e():i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12 d-flex align-items-center",class:{"col-md-8":!t.pageHasSidebar}},[i("div",{staticClass:"calulator-lwa-filter-steps mr-2",class:{disabled:!t.cropsOptions.length,"d-none d-lg-flex":t.pageHasSidebar,"d-none d-md-flex mr-md-4":!t.pageHasSidebar}},[i("span")]),t._v(" "),i("VueSelect",{attrs:{options:t.cropsOptions,placeholder:t.translations.select.crop+" "+t.getCount(t.cropsOptions.length),"default-option":!1,selected:t.currentCrop.name,"is-disabled":!t.cropsOptions.length},on:{callback:t.updateCrop}})],1)]),t._v(" "),t.hidePestsSelect?t._e():i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12 d-flex align-items-center",class:{"col-md-8":!t.pageHasSidebar}},[i("div",{staticClass:"calulator-lwa-filter-steps mr-2",class:{disabled:!t.pestsOptions.length,"d-none d-lg-flex":t.pageHasSidebar,"d-none d-md-flex mr-md-4":!t.pageHasSidebar}},[i("span")]),t._v(" "),i("VueSelect",{attrs:{options:t.pestsOptions,placeholder:t.translations.select.pest+" "+t.getCount(t.pestsOptions.length),"default-option":!1,selected:t.currentPest.name,"is-disabled":!t.pestsOptions.length},on:{callback:t.updatePest}})],1)]),t._v(" "),i("div",{staticClass:"row mb-2 mb-sm-0 slider-wrapper-outer",class:{disabled:t.isDisabled}},[i("div",{staticClass:"col-12 mb-5 mb-sm-0"},[i("div",{staticClass:"slider-wrapper"},[t.distanceHeadline?i("div",{staticClass:"d-flex"},[i("div",{staticClass:"calulator-lwa-filter-steps flex-grow-0 mr-2",class:{disabled:t.isDisabled,"d-none d-lg-flex":t.pageHasSidebar,"d-none d-md-flex mr-md-4":!t.pageHasSidebar}},[i("span")]),t._v(" "),i("div",{staticClass:"calulator-lwa-label bold",domProps:{innerHTML:t._s(t.distanceHeadline)}})]):t._e(),t._v(" "),t.distanceLabelOut?i("div",{staticClass:"calulator-lwa-label",domProps:{innerHTML:t._s(t.distanceLabelOut+":")}}):t._e(),t._v(" "),i("Slider",{staticClass:"slider",attrs:{height:8,data:t.rowData,"dot-size":25,"use-keyboard":!0,"tooltip-formatter":t.colFormatter,tooltip:t.isDisabled?"none":"always","tooltip-placement":"bottom"},model:{value:t.value_1,callback:function(e){t.value_1=e},expression:"value_1"}})],1),t._v(" "),i("div",{staticClass:"slider-wrapper"},[t.heightHeadline?i("div",{staticClass:"d-flex"},[i("div",{staticClass:"calulator-lwa-filter-steps flex-grow-0 mr-2",class:{disabled:t.isDisabled,"d-none d-lg-flex":t.pageHasSidebar,"d-none d-md-flex mr-md-4":!t.pageHasSidebar}},[i("span")]),t._v(" "),i("div",{staticClass:"calulator-lwa-label bold",domProps:{innerHTML:t._s(t.heightHeadline)}})]):t._e(),t._v(" "),t.heightLabelOut?i("div",{staticClass:"calulator-lwa-label",domProps:{innerHTML:t._s(t.heightLabelOut+":")}}):t._e(),t._v(" "),i("Slider",{staticClass:"slider",attrs:{height:8,data:t.colData,"dot-size":25,"use-keyboard":!0,"tooltip-formatter":t.rowF
1ormatter,tooltip:t.isDisabled?"none":"always","tooltip-placement":"bottom"},model:{value:t.value_2,callback:function(e){t.value_2=e},expression:"value_2"}})],1)])])])]),t._v(" "),i("div",{staticClass:"col-12",class:[t.pageHasSidebar?"col-md-6":"col-md-4"]},[i("div",{staticClass:"calulator-lwa-result",class:{small:t.pageHasSidebar}},[i("div",{staticClass:"calulator-lwa-label text-center"},[t.useSingleProduct&&!t.hideProductName?i("h2",[t._v(t._s(t.productLabel))]):t._e(),t._v("\n          "+t._s(t.resultLabel?t.resultLabel:t.translations.dosage.label)+"\n          "),i("h3")]),t._v(" "),i("div",{staticClass:"calulator-lwa-chart",class:{"mb-3 mt-3":!t.simpleResult,"mb-5 mb-lg-3 mt-4 mb-lg-3 simple-result":t.simpleResult}},[i("span",{staticClass:"result"},[t._v(t._s(t.calculate())+" "+t._s(t.useSingleProduct?t.resultMetric:t.currentMetric.metric))]),t._v(" "),t.simpleResult?t._e():[i("app-doughnut-chart",{attrs:{"chart-data":t.data?t.data:[0,0],options:t.options}})]],2),t._v(" "),t.showInfoMaxDosage&&(t.infoMaxValue||t.translations.info.defaultMsg)&&!t.hasGrowthStages?i("div",{staticClass:"calculator-lwa-footer"},[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n          "+t._s(t.isDisabled?t.translations.info.defaultMsg:t.infoMaxValue)+"\n        ")]):t._e(),t._v(" "),t.showInfoMinDosage&&(t.infoMinValue||t.translations.info.defaultMsg)&&!t.hasGrowthStages?i("div",{staticClass:"calculator-lwa-footer"},[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n          "+t._s(t.isDisabled?t.translations.info.defaultMsg:t.infoMinValue)+"\n        ")]):t._e(),t._v(" "),t.translations.info.explanation?i("div",{staticClass:"calculator-lwa-footer"},[t.hideInfoLabel?t._e():[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n            "+t._s(t.isDisabled?t.infoLabel?t.infoLabel:t.translations.info.defaultMsg:t.infoLabel?t.infoLabel:t.translations.info.explanation)+"\n          ")]],2):t._e(),t._v(" "),t.resultTextAtEnd&&!t.hasGrowthStages?i("div",{staticClass:"calculator-lwa-footer"},[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n          "+t._s(t.resultTextAtEnd)+"\n        ")]):t._e()])]),t._v(" "),t.hasGrowthStages?i("div",{staticClass:"col-12 col-md-8"},[i("div",{staticClass:"calulator-lwa-filter growth-stages"},[t.growthStageHeadline?i("div",{staticClass:"d-flex"},[i("div",{staticClass:"calulator-lwa-filter-steps flex-grow-0 mr-2",class:{"d-none d-lg-flex":t.pageHasSidebar,"d-none d-md-flex mr-md-4":!t.pageHasSidebar}},[i("span")]),t._v(" "),i("div",{staticClass:"calulator-lwa-label gs-headline bold",domProps:{innerHTML:t._s(t.growthStageHeadline)}})]):t._e(),t._v(" "),t.growthStageLabel?i("div",{staticClass:"calulator-lwa-label gs-headline",domProps:{innerHTML:t._s(t.growthStageLabel+":")}}):t._e(),t._v(" "),i("div",{staticClass:"gs-swiper-area"},[i("div",{staticClass:"swiper-wrapper-outer position-relative"},[i("div",{staticClass:"swiper h-100"},[i("div",{staticClass:"swiper-wrapper"},[t._l(t.growthStages,(function(e,a){return[i("div",{key:a,staticClass:"swiper-slide"},[i("div",{staticClass:"gs-entry",class:{selected:t.selectedGrowthStage===e},on:{click:function(i){return t.selectGrowthStage(e)}}},[e.image?i("img",{staticClass:"gs-image",attrs:{src:e.image,alt:e.name+" ("+e.number+")",title:t.translations.select.growthStage+" '"+e.name+"' ("+e.number+")",width:"100%",height:"100%"}}):t._e(),t._v(" "),i("div",{staticClass:"gs-text-area"},[e.name?i("div",[t._v("\n                          "+t._s(e.name)+"\n                        ")]):t._e(),t._v(" "),e.number?i("div",[t._v("\n                          "+t._s(e.number)+"\n                        ")]):t._e()])])])]}))],2)]),t._v(" "),t._m(0)])])])]):t._e(),t._v(" "),t.growthStages&&t.growthStages.length>0?i("div",{staticClass:"col-12 col-md-4"},[i("div",{staticClass:"mt-md-5 growth-stage-result"},[i("div",{staticClass:"calulator-lwa-result",class:{small:t.pageHasSidebar}},[i("div",{staticClass:"calulator-lwa-label text-center"},[t.currentProduct&&t.currentProduct.name&&!t.hideProductName?i("h2",[t._v(t._s(t.currentProduct.name))]):t._e(),t._v("\n            "+t._s(t.gsResultLabel?t.gsResultLabel:t.translations.dosage.label)+"\n            "),i("h3")]),t._v(" "),i("div",{staticClass:"calulator-lwa-chart-area"},[i("div",{staticClass:"calulator-lwa-chart mb-3 mt-3"},[i("span",{staticClass:"result"},[t._v(t._s(t.gsCalcResultNumber)+" "+t._s(t.useSingleProduct?t.gsResultMetric:t.currentMetric.gsMetric))]),t._v(" "),i("app-doughnut-chart",{attrs:{"chart
1-data":t.gsData?t.gsData:[0,0],options:t.gsOptions}})],1)]),t._v(" "),t.showInfoMaxDosage&&(t.gsInfoMaxValue||t.translations.info.defaultMsg)?i("div",{staticClass:"calculator-lwa-footer"},[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n            "+t._s(t.isDisabled?t.translations.info.defaultMsg:t.gsInfoMaxValue)+"\n          ")]):t._e(),t._v(" "),t.showInfoMinDosage&&(t.gsInfoMinValue||t.translations.info.defaultMsg)?i("div",{staticClass:"calculator-lwa-footer"},[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n            "+t._s(t.isDisabled?t.translations.info.defaultMsg:t.gsInfoMinValue)+"\n          ")]):t._e(),t._v(" "),t.translations.info.explanation?i("div",{staticClass:"calculator-lwa-footer"},[t.gsHideInfoLabel?t._e():[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n              "+t._s(t.gsInfoLabelOutput)+"\n            ")]],2):t._e(),t._v(" "),t.resultTextAtEnd?i("div",{staticClass:"calculator-lwa-footer"},[i("i",{staticClass:"icon icon-info mt-1",attrs:{"aria-hidden":"true"}}),t._v("\n            "+t._s(t.resultTextAtEnd)+"\n          ")]):t._e()])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"navigation"},[e("div",{staticClass:"swiper-button-prev position-absolute"}),this._v(" "),e("div",{staticClass:"swiper-button-next position-absolute"})])}],!1,Ot,"data-v-102dc3c5",null).exports,Lt=i("lSNA"),It=i.n(Lt),Et=i("L2JU"),Vt=function(){return S()((function t(){C()(this,t)}),null,[{key:"QUESTION",get:function(){return"question:"}}])}(),At=new(function(){return S()((function t(){C()(this,t)}),[{key:"isQuestionInLocalStorage",value:function(t,e){return localStorage.getItem(Vt.QUESTION+e[t].question.id)}},{key:"getAnswersFromLocalStorage",value:function(t,e){return JSON.parse(this.isQuestionInLocalStorage(t,e))}},{key:"setAnswersToLocalStorage",value:function(t,e){localStorage.setItem(Vt.QUESTION+e[t].question.id,JSON.stringify(e[t].question.answers))}}])}());function Dt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var Mt={components:{opinionPollHelper:At},props:{fsId:{type:String,default:""},fsLink:{type:String,default:""}},data:function(){return{selectedAnswerIndex:void 0,questionAnswered:!1,answersFromStorage:void 0}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Dt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({translations:function(){return void 0!==window.snTranslations&&window.snTranslations}},Object(Et.c)({question:function(t){return t.opinionPoll.currentQuestion},answersMapCount:function(t){return t.opinionPoll.answersMapCount}})),created:function(){this.setCurrentQuestionId(),this.init()},methods:{init:function(){var t=this.fsId;At.isQuestionInLocalStorage(t,this.question)&&(this.answersFromStorage=At.getAnswersFromLocalStorage(t,this.question),this.questionAnswered=!0)},setCurrentQuestionId:function(){var t=this.fsId;this.$store.dispatch("opinionPoll/configureCurrentQuestion",t)},getPollAnswersData:function(){var t=this,e=this.fsId,i=this.question[e].question.answers[this.selectedAnswerIndex].id,a=this.question[e].question.answers[this.selectedAnswerIndex].value,s=this.question[e].question.id,n=this.selectedAnswerIndex;this.$store.dispatch("opinionPoll/sendPollAnswerData",{answerId:i,answerValue:a,questionId:s,selectedAnswerIndex:n}).then((function(){t.answersMapping()}))},answersMapping:function(){var t=this,e=this.answersMapCount,i=this.fsId;this.questionAnswered=!0,e&&(Object.keys(e).forEach((function(a){var s=+a;t.question[i].question.answers.filter((function(t){return t.id===s}))[0].percentage=e[a]})),At.setAnswersToLocalStorage(i,this.question),this.init())}}};var Rt=function(t){i("8eTJ")},$t=Object(g.a)(Mt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"opinion-poll",attrs:{"data-poll-question-id":t.question[t.fsId].question.id}},[t.questionAnswered?i("div",[i("h2",[t._v(t._s(t.translations.opinionPoll.results))]),t._v(" "),i("div",{staticClass:"opinion-poll-question",domProps:{innerHTML:t._s(t.question[t.fsId].question.value)}}),t._v(" "),i("div",{staticClass:"answers-container-answered"},t._l(t.answersFromStorage,(function(e,a){return i("div",{key:a},[i("div",{staticClass:"answer-container"},[i("div",{staticClass:"answer-percentage-outer"},[i("div",{staticClass:"answer-percentage-inner",style:{width:(e.percentage?e.percentage:"0")+"%"}})]),t._v(" "),i("div",{staticClass:"answer-percentage-text"},[t._v(t._s(e.percentage?e.percentage:0)+"%")]),t._v(" "),i("div",{staticClass:"answer-value-text",domProps:{innerHTML:t._s(e.value)}})])])})),0),t._v(" "),t.fsLink.length?i("div",{domProps:{innerHTML:t._s(t.fsLink)}}):i("div",[t.question[t.fsId].link.text&&t.question[t.fsId].link.href?i("a",{attrs:{href:t.question[t.fsId].link.href,title:t.translations.common.linkTo+" "+t.question[t.fsId].link.href,target:t.question[t.fsId].link.target}},[i("span",{domProps:{innerHTML:t._s(t.question[t.fsId].link.text)}})]):t._e()])]):i("div",[i("h2",[t._v(t._s(t.translations.opinionPoll.headline))]),t._v(" "),i("div",{staticClass:"opinion-poll-question",domProps:{innerHTML:t._s(t.question[t.fsId].question.value)}}),t._v(" "),i("div",{staticClass:"answers-container"},t._l(t.question[t.fsId].question.answers,(function(e,a){return i("div",{key:a},[i("div",{staticClass:"answer-container"},[i("label",{attrs:{for:"pollAnswer"+e.id+"ForQuestion"+t.question[t.fsId].question.id}},[i("span",{domProps:{innerHTML:t._s(e.value)}}),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAnswerIndex,expression:"selectedAnswerIndex"}],attrs:{id:"pollAnswer"+e.id+"ForQuestion"+t.question[t.fsId].question.id,name:"pollAnswersForQuestion"+t.question[t.fsId].question.id,type:"radio"},domProps:{value:a,checked:t._q(t.selectedAnswerIndex,a)},on:{change:function(e){t.selectedAnswerIndex=a}}}),t._v(" "),i("span",{staticClass:"checkmark"})])])])})),0),t._v(" "),i("button",{staticClass:"button send-answer",on:{click:function(e){return t.getPollAnswersData()}}},[t._v("\n      "+t._s(t.translations.opinionPoll.buttonLabel)+"\n    ")])])])}),[],!1,Rt,"data-v-715369a0",null).exports,Nt={name:"CommodityGraph",components:{appLineChart:E},props:{datacommodity:{type:[Object,Array,String],default:function(){return{}}},datescommodity:{type:[Object,Array,String],default:function(){return{}}},customOptions:{type:[Object,Array],default:function(){return{}}}},data:function(){return{}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},data:function(){return{labels:this.datescommodity,datasets:[{borderColor:this.customOptions.borderColor,backgroundColor:this.customOptions.backgroundColor,fill:!1,data:this.datacommodity,borderWidth:3,pointRadius:0,lineTension:0}]}},options:function(){var t=this;return{responsive:!0,maintainAspectRatio:!1,bezierCurve:!1,legend:{dis
1play:!1,fontColor:this.customOptions.textColor},scales:{yAxes:[{position:"right",unit:"",ticks:{fontColor:this.customOptions.textColor,beginAtZero:!1,maxTicksLimit:8,callback:function(e){return"".concat(e," ").concat(t.customOptions.unit)}},gridLines:{color:this.customOptions.gridColor}}],xAxes:[{id:"xAxis1",offset:!0,gridLines:{color:this.customOptions.gridColor},ticks:{fontColor:this.customOptions.textColor,maxTicksLimit:8,autoSkip:!0,maxRotation:90,minRotation:90,labelOffset:3}}]}}}}};var jt=function(t){i("EDWV")},zt=Object(g.a)(Nt,(function(){var t=this.$createElement;return(this._self._c||t)("app-line-chart",{attrs:{"chart-data":this.data,options:this.options}})}),[],!1,jt,"data-v-894b633e",null).exports,Bt={name:"CommodityPrices",components:{appCommodityGraph:zt},data:function(){return{commodityData:[],commodityOverviewData:[],commodityTimerange:"t",lastUpdated:"",currentDetails:[],currentData:[],currentDates:[],errors:[],down:!0}},computed:{themeColor:function(){return P.themeColors[this.config.theme]},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.commodityPrices)&&window.snTranslations.commodityPrices},config:function(){return void 0!==window.snConfig&&window.snConfig},commodityConfig:function(){return void 0!==window.snCommodityConfig&&window.snCommodityConfig}},created:function(){this.fetchData(),this.fetchOverviewData()},methods:{fetchData:function(){var t=this;this.commodityData=[],this.currentData=[],this.currentDates=[],s.a.post("".concat(this.config.apiUrl,"/api/commodity-price/price?languagecode=").concat(this.config.language),{mode:this.commodityTimerange}).then((function(e){var i=JSON.parse(JSON.stringify(e.data));t.commodityData=i.p,t.lastUpdated=i.d})).catch((function(e){t.errors.push(e)}))},fetchOverviewData:function(){var t=this;this.commodityOverviewData=[],s.a.post("".concat(this.config.apiUrl,"/api/commodity-price/price?languagecode=").concat(this.config.language),{details:["c"]}).then((function(e){t.commodityOverviewData=JSON.parse(JSON.stringify(e.data)).p})).catch((function(e){t.errors.push(e)}))},getGraphData:function(t){var e=[];if(this.commodityData[t]&&this.commodityData[t].t)for(var i=0;i<this.commodityData[t].t.points.length;
1i+=1)e.push(this.commodityData[t].t.points[i].y);return e},getGraphDates:function(t){var e=[];if(this.commodityData[t]&&this.commodityData[t].t&&this.commodityData[t].t.points)for(var i=0;i<this.commodityData[t].t.points.length;i+=1)e.push(this.commodityData[t].t.points[i].x);return e},changeTimeRange:function(t){this.commodityTimerange=t,this.fetchData()},changeCommodity:function(t){this.commodity=t,this.fetchData()},hideGraph:function(t){var e=document.getElementById(t);"none"===e.style.display||"none !important"===e.style.display||""===e.style.display?e.style="display: block !important":e.style="display: none !important"}}};var qt=function(t){i("HzVE")},Ut=Object(g.a)(Bt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"commodity_prices_wrapper"},[t._l(t.commodityConfig.commodities,(function(e,a){return[i("div",{key:a,staticClass:"commodity_prices_teaser"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-sm-12 col-lg-4 commodity_data_wrapper_col"},[i("div",{staticClass:"commodity_data_wrapper"},[i("div",[i("div",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),t.commodityOverviewData[e.id]?i("div",{staticClass:"price"},[t._v("\n                "+t._s(t.commodityOverviewData[e.id].c[0])+" "+t._s(t.commodityOverviewData[e.id].c[1])+"\n              ")]):t._e(),t._v(" "),t.commodityOverviewData[e.id]?i("div",{staticClass:"trend"},[t._v("\n                "+t._s(t.translations.trend)+"\n                "+t._s(t.commodityOverviewData[e.id].c[2])+" %\n              ")]):t._e()]),t._v(" "),i("article",{staticClass:"additional_information"},[i("div",{staticClass:"updated"},[t._v(" "+t._s(t.translations.lastUpdate)+" "+t._s(t.lastUpdated)+" ")]),t._v(" "),i("div",{staticClass:"market"},[t._v(t._s(e.market))])])])]),t._v(" "),i("div",{staticClass:"col-sm-12 col-lg-8 d-none d-sm-block",attrs:{id:"c_"+e.id}},[i("div",{staticClass:"commodity_chart_wrapper"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"chart_buttons"},[i("div",{staticClass:"chart_button",class:{active:"t"==t.commodityTimerange},on:{click:function(e){return t.changeTimeRange("t")}}},[t._v(t._s(t.translations.all))]),t._v(" "),i("div",{staticClass:"chart_button",class:{active:"m"==t.commodityTimerange},on:{click:function(e){return t.changeTimeRange("m")}}},[t._v(t._s(t.translations.month))]),t._v(" "),i("div",{staticClass:"chart_button",class:{active:"w"==t.commodityTimerange},on:{click:function(e){return t.changeTimeRange("w")}}},[t._v(t._s(t.translations.week))])])]),t._v(" "),i("div",{staticClass:"col-12"},[t.commodityOverviewData[e.id]?i("div",{staticClass:"chart_wrapper"},[i("app-commodity-graph",{attrs:{datacommodity:t.getGraphData(e.id),datescommodity:t.getGraphDates(e.id),"custom-options":{unit:t.commodityOverviewData[e.id].c[1],borderColor:t.themeColor,gridColor:"#dcdcdc",textColor:t.themeColor,backgroundColor:"#fff"}}})],1):t._e()])])])]),t._v(" "),i("div",{staticClass:"show_more_button"},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.down?"south":"north"))]),t._v(" "),i("a",{staticClass:"fl-btn fl-btn-primary show_more_button",attrs:{title:t.down?t.translationsCommon.showLess+" "+e.name:t.translationsCommon.showMore+" "+e.name,href:"#"},on:{click:function(i){i.preventDefault(),t.down=!t.down,t.hideGraph("c_"+e.id)}}},[t._v(t._s(t.translations.showMore))])])])])]}))],2)}),[],!1,qt,"data-v-0349fd5c",null).exports,Ht={name:"CommodityPricesTeaser",components:{appCommodityGraph:zt,SectionHeader:et},props:{titleHtml:{type:String,default:""},link:{type:String,default:""}},data:function(){return{commodityData:[],commodityOverviewData:[],commodityTimerange:"t",commodity:"11000101",commodityName:"Wheat",lastUpdated:"",currentDetails:[],currentData:[],currentDates:[],errors:[]}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.commodityPrices)&&window.snTranslations.commodityPrices},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig},commodityConfig:function(){return void 0!==window.snCommodityConfig&&window.snCommodityConfig},themeColor:function(){return P.themeColors[this.config.theme]},functionHelper:function(){return Q.a}},created:function(){this.fetchData(),this.fetchOverviewData()},methods:{fetchData:function(){var t=this;this.commodityData=[],this.currentData=[],this.currentDates=[],s.a.post("".concat(this.config.apiUrl,"/api/commodity-price/price?languagecode=").concat(this.config.language),{ids:[this.commodity],mode:this.commodityTimerange}).then((function(e){var i=JSON.parse(JSON.stringify(e.data));t.lastUpdated=i.d,t.currentDetails=i.p[t.commodity].c;for(var a=0;a<i.p[t.commodity].t.points.length;a+=1)t.currentDates.push(i.p[t.commodity].t.points[a].x),t.currentData.push(i.p[t.commodity].t.points[a].y)})).catch((function(e){t.errors.push(e)}))},fetchOverviewData:function(){var t=this;this.commodityOverviewData=[],s.a.post("".concat(this.config.apiUrl,"/api/commodity-price/price?languagecode=").concat(this.config.language),{details:["c"]}).then((function(e){t.commodityOverviewData=JSON.parse(JSON.stringify(e.data)).p})).catch((function(e){t.errors.push(e)}))},changeTimeRange:function(t){this.commodityTimerange=t,this.fetchData()},changeCommodity:function(t){this.commodity=t,this.fetchData()}}};var Gt=function(t){i("joUw")},Wt=Object(g.a)(Ht,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"commodity_prices_teaser_wrapper"},[i("SectionHeader",{attrs:{"title-html":t.titleHtml,link:t.link,"class-name":t.$slots.text?"align-items-lg-end":"align-items-lg-center"}},[t._t("text",null,{slot:"text"})],2),t._v(" "),i("div",{staticClass:"commodity_prices_teaser",attrs:{"data-teal
1ium-category":"test_vue_div_category","data-tealium-value":"test_vue_div_value","data-tealium-type":"action","data-tealium-action":"test_vue_div_action"}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-lg-5 commodity_data_wrapper_col"},[i("div",{staticClass:"commodity_data_wrapper"},[i("div",[t._l(t.commodityConfig.commodities,(function(e){return[i("div",{key:e.id,staticClass:"commodity",class:{active:e.id==t.commodity},on:{click:function(i){return t.changeCommodity(e.id)}}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-4"},[t._v("\n                    "+t._s(e.name)+"\n                  ")]),t._v(" "),t.commodityOverviewData[e.id]?i("div",{staticClass:"col-8 d-flex justify-content-between"},[t._v("\n                    "+t._s(t.commodityOverviewData[e.id].c[0])+"\n                    "+t._s(t.commodityOverviewData[e.id].c[1])+"\n                    "),parseFloat(t.commodityOverviewData[e.id].c[2].replace(",",".").replace(" ",""))>0?i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("north_east")]):t._e(),t._v(" "),0==parseFloat(t.commodityOverviewData[e.id].c[2].replace(",",".").replace(" ",""))?i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")]):t._e(),t._v(" "),parseFloat(t.commodityOverviewData[e.id].c[2].replace(",",".").replace(" ",""))<0?i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("south_east")]):t._e()]):t._e()])])]}))],2),t._v(" "),i("article",{staticClass:"additional_information d-none d-lg-block mt-4"},[i("div",{staticClass:"updated"},[t._v("\n              "+t._s(t.translations.lastUpdate)+" "+t._s(t.lastUpdated)+"\n            ")]),t._v(" "),i("div",{staticClass:"source"},[t._v("\n              "+t._s(t.translations.source)+"\n              "),i("a",{staticClass:"fl-link fl-link-primary",attrs:{href:t.translations.sourceContent_link,title:t.functionHelper.formatTitle(t.translationsCommon.visit,t.translations.sourceContent_name,t.translations.sourceContent_link)}},[t._v(t._s(t.translations.sourceContent_name))]),t._v("\n              "+t._s(t.translations.sourceContent_slogan)+"\n            ")])])])]),t._v(" "),i("div",{staticClass:"col-12 col-lg-7"},[i("div",{staticClass:"commodity_chart_wrapper"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"chart_buttons"},[i("div",{staticClass:"chart_button",class:{active:"t"==t.commodityTimerange},on:{click:function(e){return t.changeTimeRange("t")}}},[t._v(t._s(t.translations.all))]),t._v(" "),i("div",{staticClass:"chart_button",class:{active:"m"==t.commodityTimerange},on:{click:function(e){return t.changeTimeRange("m")}}},[t._v(t._s(t.translations.month))]),t._v(" "),i("div",{staticClass:"chart_button",class:{active:"w"==t.commodityTimerange},on:{click:function(e){return t.changeTimeRange("w")}}},[t._v(t._s(t.translations.week))])])]),t._v(" "),i("div",{staticClass:"col-12"},[i("div",{staticClass:"chart_wrapper"},[i("app-commodity-graph",{attrs:{datacommodity:t.currentData,datescommodity:t.currentDates,"custom-options":{unit:t.currentDetails[1],borderColor:t.themeColor,gridColor:"#dcdcdc",textColor:t.themeColor,backgroundColor:"#fff"}}})],1)]),t._v(" "),i("div",{staticClass:"col-12 d-block d-lg-none"},[i("article",{staticClass:"additional_information"},[i("div",{staticClass:"updated"},[t._v("\n                  "+t._s(t.translations.lastUpdate)+" "+t._s(t.lastUpdated)+"\n                ")]),t._v(" "),i("div",{staticClass:"source"},[t._v("\n                  "+t._s(t.translations.source)+"\n                  "),i("a",{staticClass:"fl-link fl-link-primary",attrs:{href:t.translations.sourceContent_link,title:t.functionHelper.formatTitle(t.translationsCommon.visit,t.translations.sourceContent_name,t.translations.sourceContent_link)}},[t._v(t._s(t.translations.sourceContent_name))]),t._v("\n                  "+t._s(t.translations.sourceContent_slogan)+"\n                ")])])])])])])])])],1)}),[],!1,Gt,"data-v-8926f4a8",null).exports,Zt={data:function(){return{images:[],dataTimes:[],currentNumber:0,timer:null,startStop:!1,errors:[],prog4:window.snTranslations.rainydays.prog4,callMe:"".concat(window.snConfig.apiUrl,"/api/weather/germanRainradarInfo?lang=de"),urlBinding:window.snConfig.apiUrl}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.rainydays)&&window.snTranslations.rainydays},currentImage:function(){var t=this.images[Math.abs(this.currentNumber)%this.images.length];return this.urlBinding+t},currentImageTime:function(){return this.dataTimes[Math.abs(this.currentNumber)%this.dataTimes.length]}},watch:{"$data.startStop":{handler:function(t){t?this.startRotation():this.stopRotation()},deep:!0}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;this.images=[],this.dataTimes=[],s.a.get(this.callMe).then((function(e){t.images=e.data.files,t.dataTimes=e.data.time,t.dataLoaded=!0}
1)).catch((function(e){t.errors.push(e)}))},startRotation:function(){this.currentNumber+=1,this.timer=setInterval(this.next,3e3)},stopRotation:function(){clearTimeout(this.timer),this.timer=null},next:function(){this.currentNumber+=1},prev:function(){this.currentNumber-=1},startStopRotation:function(){this.startStop=!this.startStop}}};var Jt=function(t){i("6lsj")},Kt=Object(g.a)(Zt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container content-module weather"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("div",{attrs:{id:"basf-rainy"}},[i("div",{staticClass:"rainBar"},[i("a",{staticClass:"button",attrs:{title:t.translations.previous,href:""},on:{click:function(e){return e.preventDefault(),t.prev.apply(null,arguments)}}},[t._v(t._s(t.translations.previous))]),t._v("\n          ||\n          "),i("a",{staticClass:"button",attrs:{title:t.translations.next,href:""},on:{click:function(e){return e.preventDefault(),t.next.apply(null,arguments)}}},[t._v(t._s(t.translations.next))]),t._v("\n          ||\n          "),i("a",{staticClass:"button",attrs:{title:t.startStop?t.translations.stop:t.translations.start,href:""},on:{click:function(e){return e.preventDefault(),t.startStopRotation.apply(null,arguments)}}},[t.startStop?t._e():i("span",[t._v(t._s(t.translations.start))]),t._v(" "),t.startStop?i("span",[t._v(t._s(t.translations.stop))]):t._e()])]),t._v(" "),i("div",{staticClass:"rainForecast"},[t._m(0),t._v(" "),i("div",{staticClass:"rainyDays"},[i("transition-group",{attrs:{name:"fade",tag:"div"}},t._l([t.currentNumber],(function(e){return i("div",{key:e,staticClass:"transe"},[i("img",{attrs:{src:t.currentImage,title:"",alt:""}})])})),0)],1)]),t._v(" "),t._l([t.currentNumber],(function(e){return i("div",{key:e,staticClass:"currentImageTime"},[t._v("\n          "+t._s(t.prog4)+"\n          "),i("span",[t._v(t._s(t.moment(t.date).format("YYYY-MM-DD")))]),t._v(" "),i("span",[t._v(t._s(t.currentImageTime))])])}))],2)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"gCard"},[e("img",{attrs:{src:"http://agrocmsd04.agro.she.de/fs5preview_4770/preview/4770/media/CORP/current/95731/ORIGINAL/staticmap.jpg",title:"",alt:""}})])}],!1,Jt,"data-v-9528c0c6",null).exports,Yt=i("CmN8"),Qt=i("HA9I"),Xt={name:"WeatherTeaserTile",props:{title:{type:String,default:""},picture:{type:Number,default:null},dayTime:{type:String,default:""},tmax:{type:Number,default:null},tmin:{type:Number,default:null},temp:{type:Number,default:null},degree:{type:String,default:""},precprob:{type:Number,default:null},percent:{type:String,default:""},prec:{type:Number,default:null},mm:{type:String,default:""},ms:{type:String,default:""},wdir:{type:Number,default:null},wsmaxms:{type:Number,default:null},isHighlighted:{type:Boolean,default:!1}},methods:{styleWindDirection:function(t){return Q.a.styleWindDirection(t)}}};var te=function(t){i("UKT6")},ee=Object(g.a)(Xt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"weather-teaser-tile",class:{highlighted:t.isHighlighted}},[t.isHighlighted?i("div",{staticClass:"weather-teaser-tile-triangles"}):t._e(),t._v(" "),i("div",{staticClass:"w_content"},[i("div",{staticClass:"w_for"},[t._v(t._s(t.title))]),t._v(" "),i("div",{staticClass:"w_icon d-none d-lg-block"},[i("div",{staticClass:"weather-teaser-icon",class:"weather-icon-"+t.picture})]),t._v(" "),i("div",{staticClass:"w_degrees"},[null!==t.tmax?i("span",{staticClass:"w_max_temp"},[t._v(t._s(t.tmax)+t._s(t.degree))]):t._e(),t._v(" "),null!==t.tmin?i("span",{staticClass:"w_min_temp"},[t._v(t._s(t.tmin)+t._s(t.degree))]):t._e(),t._v(" "),null!==t.temp?i("span",{staticClass:"w_temp"},[t._v(t._s(t.temp)+t._s(t.degree))]):t._e()]),t._v(" "),i("div",{staticClass:"w_precipitations"},[i("div",{staticClass:"d-flex mb-1"},[i("div",{staticClass:"w_rain_drop"}),t._v(" "),i("div",[t._v("\n          "+t._s(t.precprob)+t._s(t.percent)+" /\n          "+t._s(t.prec)+t._s(t.mm)+"\n        ")])]),t._v(" "),i("div",{staticClass:"d-flex justify-content-start justify-content-lg-center"},[i("div",{staticClass:"w_wind_icon"}
1,[i("i",{staticClass:"wind-direction-icon icon icon-wind-arrow-0",style:t.styleWindDirection(t.wdir),attrs:{"aria-hidden":"true"}})]),t._v(" "),i("div",[t._v(t._s(t.wsmaxms)+" "+t._s(t.ms))])])])]),t._v(" "),i("div",{staticClass:"w_icon d-block d-lg-none"},[i("div",{staticClass:"weather-teaser-icon",class:"weather-icon-"+t.picture})])])}),[],!1,te,"data-v-6a36583f",null).exports,ie={name:"WeatherTeaser",components:{Carousel:Yt.Carousel,Slide:Yt.Slide,Loader:Qt.a,WeatherTeaserTile:ee,TeaserPagination:nt,SectionHeader:et},props:{isVertical:{type:Boolean,default:!0},titleHtml:{type:String,default:""},link:{type:String,default:""}},data:function(){return{cityWeatherTeaserData:[],localWeatherTeaserData:[],location:"",units:[],located:!0,ajaxBlocker:!1,errors:[],showLoader:!1,perPage:4}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.weather)&&window.snTranslations.weather},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig},teaserConfig:function(){return void 0!==window.weatherTeaserConfig&&window.weatherTeaserConfig}},mounted:function(){var t=this;F.a.$on("updateFromBar",(function(e){if("updateToogle"===e&&localStorage.getItem("isPz")){var i=!1,a=null;try{localStorage.getItem("isPz")&&(a=JSON.parse(localStorage.getItem("isPz")))}catch(t){i=!0}if(!i&&a&&a.isPz){if(localStorage.getItem("pzAddress")){var s=!1,n=null;try{localStorage.getItem("pzAddress")&&(n=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){s=!0}!s&&n?(t.located=!0,t.location=n.name,t.fetchLocalData(n.latitude,n.longitude)):(t.located=!1,t.fetchCityData())}}else t.located=!1,t.fetchCityData()}if("updateAddress"===e)if(localStorage.getItem("pzAddress")){var o=!1,r=null;try{localStorage.getItem("pzAddress")&&(r=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){o=!0}!o&&r?(t.located=!0,t.location=r.name,t.fetchLocalData(r.latitude,r.longitude)):(t.located=!1,t.fetchCityData())}else t.located=!1,t.fetchCityData()}))},created:function(){var t=!1,e=null;try{localStorage.getItem("isPz")&&(e=JSON.parse(localStorage.getItem("isPz")))}catch(e){t=!0}if(localStorage.getItem("pzAddress")&&localStorage.getItem("isPz")&&!t&&e&&!1!==e.isPz){if(localStorage.getItem("pzAddress")){var i=!1,a=null;try{localStorage.getItem("pzAddress")&&(a=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){i=!0}!i&&a?(this.located=!0,this.location=a.name,this.fetchLocalData(a.latitude,a.longitude)):(this.located=!1,this.fetchCityData())}}else this.located=!1,this.fetchCityData()},methods:{fetchCityData:function(){var t=this;this.ajaxBlocker=!1,this.cityWeatherTeaserData=[],this.showLoader=!0;for(var e="".concat(this.config.apiUrl,"/api/weather/teaserWeatherDetails?lang=").concat(this.config.languageTempConfig?this.config.languageTempConfig:this.config.language),i=0;i<this.teaserConfig.cities.length;i+=1)e="".concat(e,"&latitude=").concat(this.teaserConfig.cities[i].latitude),e="".concat(e,"&longitude=").concat(this.teaserConfig.cities[i].longitude);s.a.get(e).then((function(e){t.cityWeatherTeaserData=[],t.errors=[];for(var i=JSON.parse(JSON.stringify(e.data)),a=0;a<t.teaserConfig.cities.length;a+=1)t.cityWeatherTeaserData.push({name:t.teaserConfig.cities[a].name,weather:i.data[a]}),t.units=i.units;t.perPage=t.cityWeatherTeaserData.length,t.showLoader=!1,t.ajaxBlocker=!0,t.$nextTick((function(){document.dispatchEvent(new CustomEvent("chassis-init-Teaser"))}))})).catch((function(e){t.showLoader=!1,t.errors.push(e)}))},fetchLocalData:function(t,e){var i=this;this.showLoader=!0;var a="".concat(this.config.apiUrl,"/api/weather/teaserWeatherDetails?lang=").concat(this.config.languageTempConfig?this.config.languageTempConfig:this.config.language,"&latitude=").concat(t,"&longitude=").concat(e,"&dataFeed=daily-hourly");this.ajaxBlocker=!1,this.localWeatherTeaserData=[],s.a.get(a).then((function(t){i.localWeatherTeaserData=JSON.parse(JSON.stringify(t.data)),i.ajaxBlocker=!0,i.errors=[],i.showLoader=!1,i.$nextTick((function(){document.dispatchEvent(new CustomEvent("chassis-init-Teaser"))}))})).catch((function(t){i.showLoader=!1,i.errors.push(t)}))},styleWindDirection:function(t){return Q.a.styleWindDirection(t)}}};var ae=function(t){i("G2k1")},se=Object(g.a)(ie,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"weather-teaser-wrapper"},[i("SectionHeader",{attrs:{"title-html":t.titleHtml,link:t.link,"class-name":t.located&&t.ajaxBlocker?"align-items-lg-end":"align-items-lg-center"}},[t.located&&t.ajaxBlocker?i("h5",{staticClass:"w_title",attrs:{slot:"text"},slot:"text"},[t._v("\n      "+t._s(t.translations.yourweatherin)+"\n      "),i("span",{staticClass:"city_name",attrs:{"data-cucumber":"weatherTeaser_label_city"}},[t._v(t._s(t.location))])]):t._e()]),t._v(" "),t.isVertical&&!t.showLoader?[t.errors&&t.errors.length?i("div",{staticClass:"dynamic-match-height alert alert-grey",attrs:{role:"alert"}},[t._v("\n      "+t._s(t.translations.teaser.errorMsg)+"\n    ")]):i("div",{staticClass:"teaser weather-teaser dynamic-match-height"},[!t.located&&t.ajaxBlocker?i("div",{staticClass:"swiper-wrapper-outer not-initialized",class:["slides-count-"+t.cityWeatherTeaserData.length],attrs:{"data-size":"small"}},[i("div",{staticClass:"swiper"},[i("div",{staticClass:"swiper-wrapper"},[t._l(t.cityWeatherTeaserData,(function(e){return[i("div",{key:e.name,staticClass:"swiper-slide"},[i("WeatherTeaserTile",{attrs:{title:e.name,picture:e.weather.day.pic,dayTime:e.weather.day.dt,tmax:e.weather.day.tmax,tmin:e.weather.day.tmin,degree:t.units.degree,precprob:e.weather.day.precprob,percent:t.units.percent,prec:e.weather.day.prec,mm:t.units.mm,wdir:e.weather.day.wdir,wsmaxms:e.weather.day.wsmaxms,ms:t.units.m_s}}
1)],1)]}))],2)]),t._v(" "),i("TeaserPagination")],1):i("div",[t.ajaxBlocker?[i("div",{staticClass:"swiper-wrapper-outer not-initialized",class:["slides-count-"+(t.localWeatherTeaserData.data[0].detail3h.slice(0,3).length+1)],attrs:{"data-size":"small"}},[i("div",{staticClass:"swiper"},[i("div",{staticClass:"swiper-wrapper"},[t.localWeatherTeaserData.data[0].now?i("div",{staticClass:"swiper-slide"},[i("WeatherTeaserTile",{attrs:{title:t.translations.now,picture:t.localWeatherTeaserData.data[0].now.pic,temp:t.localWeatherTeaserData.data[0].now.tair,degree:t.localWeatherTeaserData.units.degree,precprob:t.localWeatherTeaserData.data[0].now.precprob,percent:t.localWeatherTeaserData.units.percent,prec:t.localWeatherTeaserData.data[0].now.prec,mm:t.localWeatherTeaserData.units.mm,wdir:t.localWeatherTeaserData.data[0].now.wdir,wsmaxms:t.localWeatherTeaserData.data[0].now.wsms,ms:t.localWeatherTeaserData.units.m_s,"is-highlighted":!0}})],1):t._e(),t._v(" "),t.localWeatherTeaserData.data[0].detail3h?t._l(t.localWeatherTeaserData.data[0].detail3h.slice(0,3),(function(e,a){return i("div",{key:a,staticClass:"swiper-slide"},[i("WeatherTeaserTile",{attrs:{title:e.time,picture:e.pic,dayTime:e.dt,temp:e.tair,degree:t.localWeatherTeaserData.units.degree,precprob:e.precprob,percent:t.localWeatherTeaserData.units.percent,prec:e.prec,mm:t.localWeatherTeaserData.units.mm,wdir:e.wdir,wsmaxms:e.wsms,ms:t.localWeatherTeaserData.units.m_s}})],1)})):t._e()],2)]),t._v(" "),i("TeaserPagination")],1)]:t._e()],2)])]:t._e(),t._v(" "),t.isVertical||t.showLoader?t._e():[i("div",{staticClass:"row weather-carousel"},[i("div",{staticClass:"col-12"},[i("carousel",{attrs:{scrollPerPage:!1,navigationEnabled:!0,perPage:t.perPage<4?t.perPage:4,paginationEnabled:!1,perPageCustom:[[0,1],[576,1],[768,2],[992,3],[1200,4]],navigationNextLabel:"",navigationPrevLabel:""}},[t._l(t.cityWeatherTeaserData,(function(e,a){return[i("slide",{key:a},[i("div",{staticClass:"day-col no-cursor"},[i("div",{staticClass:"row no-gutters"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center w_day"},[t._v("\n                        "+t._s(e.name)+"\n                      ")])]),t._v(" "),i("div",{staticClass:"row no-gutters"},[i("div",{staticClass:"col-6"},[i("div",{staticClass:"weather-icon",class:"weather-icon-"+e.weather.day.pic})]),t._v(" "),i("div",{staticClass:"col-6 temperaturs"},[i("div",{staticClass:"w_max_temp"},[t._v(t._s(e.weather.day.tmax)+" "+t._s(t.units.degree))]),t._v(" "),i("div",{staticClass:"w_min_temp"},[t._v(t._s(e.weather.day.tmin)+" "+t._s(t.units.degree))])])]),t._v(" "),i("div",{staticClass:"row no-gutters"},[i("div",{staticClass:"col-7 w_precipitations"},[i("div",{staticClass:"w_rain_drop"}),t._v(" "),i("div",{staticClass:"w_precipitation_prob"},[t._v(t._s(e.weather.day.precprob)+t._s(t.units.percent))]),t._v(" |\n                        "),i("div",{staticClass:"w_precipitation"},[t._v(t._s(e.weather.day.prec)+t._s(t.units.mm))])]),t._v(" "),i("div",{staticClass:"col-5 w_wind text-right"},[i("div",{staticClass:"w_wind_speed"},[t._v(t._s(e.weather.day.wsmaxms)+" "+t._s(t.units.m_s))]),t._v(" "),i("i",{staticClass:"wind-direction-icon icon icon-wind-arrow-0",style:t.styleWindDirection(e.weather.day.wdir),attrs:{"aria-hidden":"true"}})])])])])])])]}))],2)],1)])],t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader}})],2)}),[],!1,ae,"data-v-59080906",null).exports,ne=i("+4kH"),oe=i("c+Ka"),re=Object.freeze({LOCAL_STORAGE:"localStorage",SESSION_STORAGE:"sessionStorage"}),le={name:"WeatherWarning",components:{PzSessionStorage:oe.a,AgrobusEventType:ne.a,AgrobusEventValueLocalStorage:ne.b,AgrobusEventValueSessionStorage:ne.c},data:function(){return{weatherWarningData:[],SESSION_STORAGE:re.SESSION_STORAGE,errors:[]}},computed:{translations:function(){return void 0!==window.snTranslations&&window.snTranslations},config:function(){return void 0!==window.snConfig&&window.snConfig}},mounted:function(){var t=this;F.a.$on(ne.a.UPDATE_FROM_BAR,(function(e){e===ne.c.UPDATE_ADDRESS?t.processSessionStorage():e!==ne.b.UPDATE_ADDRESS&&"updateToogle"!==e||t.processLocalStorage()}))},created:function(){if(oe.a.hasPzAddress())this.processSessionStorage();else if(localStorage.getItem("pzAddress")&&(localStorage.getItem("isPz")&&!1!==JSON.parse(localStorage.getItem("isPz")).isPz||!localStorage.getItem("isPz"))&&localStorage.getItem("pzAddress")){var t=localStorage.getItem("pzAddress");t=JSON.parse(t),this.fetchData(t.latitude,t.longitude)}},methods:{fetchData:function(t,e){var i=this,a="".concat(this.config.apiUrl,"/api/weather-warnings/getWarnings?latitude=").concat(encodeURIComponent(t),"&longitude=").concat(encodeURIComponent(e));this.$store.dispatch("callOnce/callOnce",{key:"getWeatherWarnings",params:{dataUrl:a}
1,func:function(t,e,i){s.a.get(i.dataUrl).then((function(e){t(e)})).catch((function(t){e(t)}))}},{root:!0}).then((function(t){i.weatherWarningData=JSON.parse(JSON.stringify(t.data))})).catch((function(t){i.errors.push(t)}))},processSessionStorage:function(){if(oe.a.hasPzAddress()){var t=oe.a.extractCoordinatesFromStorage();this.fetchData(t.latitude,t.longitude),this.tempLocated=!0}},processLocalStorage:function(){var t=localStorage.getItem("pzAddress");t=JSON.parse(t);var e=localStorage.getItem("isPz");e=JSON.parse(e).isPz,t&&e&&this.fetchData(t.latitude,t.longitude)}}};var ce=function(t){i("tB/z")},ue=Object(g.a)(le,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.weatherWarningData.length>0?i("div",{staticClass:"weather-warning"},[i("div",{staticClass:"wrapper accordion"},[t._l(t.weatherWarningData,(function(e,a){return i("div",{key:a,staticClass:"accordion",class:0===a?"first-accordion":""},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("div",{staticClass:"accordion-toggle d-flex align-items-center justify-content-between mb-2 pr-0",class:0!==a?"collapsed":"",attrs:{href:"#weather-warning-"+a,"aria-controls":"weather-warning-"+a,"aria-expanded":0===a,"data-toggle":"collapse",role:"button"}},[i("h3",{staticClass:"mb-0"},[t._v(t._s(e.headline))]),t._v(" "),i("i",{staticClass:"icon",style:"color:"+e.areaColor+" !important",attrs:{"aria-hidden":0!==a}})]),t._v(" "),i("div",{staticClass:"collapse multi-collapse weather-warning-info",class:0===a?"show":"",attrs:{id:"weather-warning-"+a,role:"tabpanel"}},[i("p",[t._v(t._s(t.translations.weatherWarning.from)+" "),i("strong",[t._v(t._s(e.onSet))]),t._v(" "+t._s(t.translations.weatherWarning.to)+" "),i("strong",[t._v(t._s(e.expires))])]),t._v(" "),i("p",[t._v(t._s(e.description))])])])])])})),t._v(" "),i("hr"),t._v(" "),i("div",{staticClass:"text-right"},[t._v(t._s(t.translations.weatherWarning.source))])],2)]):t._e()}),[],!1,ce,"data-v-2b4a0eb3",null).exports,de={name:"WeatherOverview",components:{Carousel:Yt.Carousel,Slide:Yt.Slide,appGraphs:K,WeatherTeaser:se,PzSessionStorage:oe.a,AgrobusEventType:ne.a,AgrobusEventValueLocalStorage:ne.b,AgrobusEventValueSessionStorage:ne.c,WeatherWarning:ue,Loader:Qt.a},props:{showWarnings:{type:String,default:"true"}},data:function(){return{weatherData:[],startDay:0,displayDays:4,scrollSize:3,units:[],address:"",error:"",dataLoaded:!1,located:!0,tempLocated:!1,currentDayId:0,currentDay:[],currentDays1h:[],windspeedUnit:"ms",radiationUnit:"jcm2",countries:window.snApiCaller.countries,maxResults:window.snApiCaller.maxResults,errors:[]}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.weather)&&window.snTranslations.weather},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig}},mounted:function(){var t=this;F.a.$on(ne.a.UPDATE_FROM_BAR,(function(e){e===ne.c.UPDATE_ADDRESS&&t.processSessionStorage()})),F.a.$on("updateFromBar",(function(){if(localStorage.getItem("pzAddress")){var e=localStorage.getItem("pzAddress");e=JSON.parse(e),t.tempLocated=!0,t.fetchData(e.latitude,e.longitude)}else t.located=!1,t.tempLocated=!1}))},created:function(){var t=this;if(oe.a.hasPzAddress())this.tempLocated=!0,this.processSessionStorage();else if(localStorage.getItem("pzAddress")&&(localStorage.getItem("isPz")&&!1!==JSON.parse(localStorage.getItem("isPz")).isPz||!localStorage.getItem("isPz"))){if(this.located=!0,localStorage.getItem("pzAddress")){var e=localStorage.getItem("pzAddress");e=JSON.parse(e),this.tempLocated=!0,this.fetchData(e.latitude,e.longitude)}}else this.located=!1;var i=this;setTimeout((function(){var e=document.querySelector(".weather .VueCarousel-navigation-next");e&&e.addEventListener("click",(function(){window.innerWidth<768&&t&&t.classList&&!t.classList.contains("VueCarousel-navigation--disabled")&&i.changeDay(i.currentDayId+1)}))}),300),setTimeout((function(){var e=document.querySelector(".weather .VueCarousel-navigation-prev");e&&e.addEventListener("click",(function(){window.innerWidth<768&&t&&t.classList&&!t.classList.contains("VueCarousel-navigation--disabled")&&i.changeDay(i.currentDayId-1)}))}),300)},methods:{fetchData:function(t,e){var i=this;this.weatherData=[],this.dataLoaded=!1;var a="".concat(this.config.apiUrl,"/api/weather/weatherDetails?lang=").concat(this.config.languageTempConfig?this.config.languageTempConfig:this.config.language,"&latitude=").concat(t,"&longitude=").concat(e);s.a.get(a).then((function(t){i.weatherData=JSON.parse(JSON.stringify(t.data)),i.currentDays1h=i.weatherData.days1h[0]["1h"],i.currentDay=i.weatherData.days[0],i.units=i.weatherData.units,setTimeout((function(){i.dataLoaded=!0}),1e3)}
1)).catch((function(t){i.errors.push(t)}))},scrollNext:function(){this.weatherData.days&&this.startDay+this.displayDays+this.scrollSize>this.weatherData.days.length?this.startDay=this.weatherData.days.length-this.displayDays:this.startDay+=this.scrollSize},scrollPrev:function(){this.startDay-this.scrollSize<0?this.startDay=0:this.startDay-=this.scrollSize},changeDay:function(t){this.currentDayId=t,this.currentDays1h=this.weatherData.days1h[t]["1h"],this.currentDay=this.weatherData.days[t]},changeWindspeedUnit:function(t){this.windspeedUnit=t},changeRadiationUnit:function(t){this.radiationUnit=t},styleWindDirection:function(t){return Q.a.styleWindDirection(t)},getData:function(t){this.tempLocated=!0,this.fetchData(t.latitude,t.longitude)},processSessionStorage:function(){var t={};oe.a.hasPzAddress()&&(t=oe.a.extractCoordinatesFromStorage(),this.fetchData(t.latitude,t.longitude),this.tempLocated=!0)},isCurrentTime:function(t){var e=new Date,i=p()(e).format("HH:mm"),a=p()(e).subtract(1,"hours").format("HH:mm");return 0===this.currentDayId&&i>=t&&a<t},isMobile:function(){return window.innerWidth<P.breakpoints.md},daysCarouselPageChange:function(t){this.isMobile()&&this.changeDay(t)}}};var pe=function(t){i("04v1")},me=Object(g.a)(de,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"weather"},[t.located||t.tempLocated?t._e():[i("WeatherTeaser",{attrs:{"is-vertical":!1}})],t._v(" "),(t.located||t.tempLocated)&&t.dataLoaded?["true"==t.showWarnings?i("div",[i("WeatherWarning")],1):t._e(),t._v(" "),i("div",{staticClass:"row weather-carousel"},[i("div",{staticClass:"col-12"},[i("carousel",{attrs:{scrollPerPage:!1,navigationEnabled:!0,perPage:4,paginationEnabled:!1,perPageCustom:[[0,1],[576,1],[768,2],[992,3],[1200,4]],navigationNextLabel:"",navigationPrevLabel:""},on:{pageChange:t.daysCarouselPageChange}},[t._l(t.weatherData.days,(function(e,a){return[i("slide",{key:a},[i("div",{staticClass:"day-col",class:{active:t.currentDayId==a},on:{click:function(e){return t.changeDay(a)}}},[i("div",{staticClass:"row no-gutters"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center w_day"},[t._v("\n                        "+t._s(e.wd)+"\n                      ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center w_date"},[t._v("\n                        "+t._s(e.date)+"\n                      ")])]),t._v(" "),2===Object.keys(e).length?[i("div",{staticClass:"text-center py-4"},[t._v(t._s(t.commonTranslations.notAvailable))])]:[i("div",{staticClass:"row no-gutters"},[i("div",{staticClass:"col-6"},[i("div",{staticClass:"weather-icon",class:"weather-icon-"+e.pic})]),t._v(" "),i("div",{staticClass:"col-6 temperaturs"},[e.tmax||0===e.tmax?i("div",{staticClass:"w_max_temp"},[t._v(t._s(e.tmax)+" "+t._s(t.units.degree))]):t._e(),t._v(" "),e.tmin||0===e.tmax?i("div",{staticClass:"w_min_temp"},[t._v(t._s(e.tmin)+" "+t._s(t.units.degree))]):t._e()])]),t._v(" "),i("div",{staticClass:"row no-gutters"},[i("div",{staticClass:"col-7 w_precipitations"},[e.precprob||0===e.precprob||e.prec||0===e.prec?i("div",{staticClass:"w_rain_drop"}):t._e(),t._v(" "),e.precprob||0===e.precprob?i("div",{staticClass:"w_precipitation_prob"},[t._v(t._s(e.precprob)+" "+t._s(t.units.percent))]):t._e(),t._v(" "),!e.precprob&&0!==e.precprob||!e.prec&&0!==e.prec?t._e():[t._v(" | ")],t._v(" "),e.prec||0===e.prec?i("div",{staticClass:"w_precipitation"},[t._v(t._s(e.prec)+" "+t._s(t.units.mm))]):t._e()],2),t._v(" "),i("div",{staticClass:"col-5 w_wind text-right"},[e.wsmaxms||0===e.wsmaxms?i("div",{staticClass:"w_wind_speed"},[t._v(t._s(e.wsmaxms)+" "+t._s(t.units.m_s))]):t._e(),t._v(" "),e.wsmaxms||0===e.wsmaxms?i("i",{staticClass:"wind-direction-icon icon icon-wind-arrow-0",style:t.styleWindDirection(e.wdir),attrs:{"aria-hidden":"true"}}):t._e()])])]],2)])])])]}))],2)],1)]),t._v(" "),Object.keys(t.currentDay).length>2?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"row w_table no-gutters"},[i("div",{staticClass:"col-4"},[i("div",{staticClass:"w_table_head w_time"}),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.tair))])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.ws))]),t._v(" "),i("span",{staticClass:"unit_switch_container"},[i("small",[t._v("(")]),t._v(" "),i("small",{staticClass:"unit_switch",class:{active_unit:"bft"==t.windspeedUnit},on:{click:function(e){return t.changeWindspeedUnit("bft")}}},[t._v("bft")]),t._v(" "),i("small",[t._v("/")]),t._v(" "),i("small",{staticClass:"unit_switch",class:{active_unit:"ms"==t.windspeedUnit},on:{click:function(e){return t.changeWindspeedUnit("ms")}}},[t._v("ms")]),t._v(" "),i("small",[t._v("/")]),t._v(" "),i("small",{staticClass:"unit_switch",class:{active_unit:"kmh"==t.
1windspeedUnit},on:{click:function(e){return t.changeWindspeedUnit("kmh")}}},[t._v("kmh")]),t._v(" "),i("small",[t._v(")")])])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.wdir))])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.prec))])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.precprob))])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.rad))]),t._v(" "),i("span",{staticClass:"unit_switch_container"},[i("small",[t._v("(")]),t._v(" "),i("small",{staticClass:"unit_switch",class:{active_unit:"jcm2"==t.radiationUnit},on:{click:function(e){return t.changeRadiationUnit("jcm2")}}},[t._v("jcm2")]),t._v(" "),i("small",[t._v("/")]),t._v(" "),i("small",{staticClass:"unit_switch",class:{active_unit:"wm2"==t.radiationUnit},on:{click:function(e){return t.changeRadiationUnit("wm2")}}},[t._v("wm2")]),t._v(" "),i("small",[t._v(")")])])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.relhum))])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.eva))])]),t._v(" "),i("div",{staticClass:"w_table_head"},[i("span",[t._v(t._s(t.translations.tsoil))])])]),t._v(" "),i("div",{staticClass:"col-8"},[i("carousel",{attrs:{scrollPerPage:!1,navigationEnabled:!0,perPage:4,paginationEnabled:!1,perPageCustom:[[0,1],[576,2],[768,4],[992,6],[1200,7]],navigationNextLabel:"",navigationPrevLabel:""}},t._l(t.currentDays1h,(function(e,a){return i("slide",{key:a,staticClass:"text-center",class:{"current-time":t.isCurrentTime(e.time)}},[i("div",{staticClass:"w_table_content w_time"},[t._v(" "+t._s(e.time))]),t._v(" "),i("div",{staticClass:"w_table_content"},[t._v("\n                    "+t._s(e.tair)),e.tair||0===e.tair?[t._v(t._s(t.units.degree))]:t._e()],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:"kmh"==t.windspeedUnit,expression:"windspeedUnit == 'kmh'"}],staticClass:"w_table_content"},[t._v("\n                    "+t._s(e.wskmh)+" "),e.wskmh||0===e.wskmh?[t._v(t._s(t.units.km_h))]:t._e()],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:"bft"==t.windspeedUnit,expression:"windspeedUnit == 'bft'"}],staticClass:"w_table_content"},[t._v(t._s(e.wsbft)+" "),e.wsbft||0===e.wsbft?[t._v(t._s(t.units.bft))]:t._e()],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:"ms"==t.windspeedUnit,expression:"windspeedUnit == 'ms'"}],staticClass:"w_table_content"},[t._v(t._s(e.wsms)+" "),e.wsms||0===e.wsms?[t._v(t._s(t.units.m_s))]:t._e()],2),t._v(" "),i("div",{staticClass:"w_table_content"},[e.wdir||0===e.wdir?i("i",{staticClass:"wind-direction-icon icon icon-wind-arrow-0",style:t.styleWindDirection(e.wdir),attrs:{"aria-hidden":"true"}}):t._e()]),t._v(" "),i("div",{staticClass:"w_table_content"},[e.prec||0===e.prec?[t._v(t._s(Math.round(e.prec))+" "+t._s(t.units.mm))]:t._e()],2),t._v(" "),i("div",{staticClass:"w_table_content"},[t._v("\n                    "+t._s(e.precprob)),e.precprob||0===e.precprob?[t._v(t._s(t.units.percent))]:t._e()],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:"jcm2"==t.radiationUnit,expression:"radiationUnit == 'jcm2'"}],staticClass:"w_table_content"},[t._v(t._s(e.radjcm2)+"\n                    "),e.radjcm2||0===e.radjcm2?[t._v(t._s(t.units.j_cm2))]:t._e()],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:"wm2"==t.radiationUnit,expression:"radiationUnit == 'wm2'"}],staticClass:"w_table_content"},[t._v(t._s(e.radwm2)+"\n                    "),e.radwm2||0===e.radwm2?[t._v(t._s(t.units.w_m2))]:t._e()],2),t._v(" "),i("div",{staticClass:"w_table_content"},[t._v("\n                    "+t._s(e.relhum)),e.relhum||0===e.relhum?[t._v(t._s(t.units.percent))]:t._e()],2),t._v(" "),i("div",{staticClass:"w_table_content"},[t._v("\n                    "+t._s(e.evapo)),e.evapo||0===e.evapo?[t._v(" "+t._s(t.units.mm_h))]:t._e()],2),t._v(" "),i("div",{staticClass:"w_table_content"},[t._v("\n                    "+t._s(e.tsoil)),e.tsoil||0===e.tsoil?[t._v(t._s(t.units.degree))]:t._e()],2)])})),1)],1)])])]),t._v(" "),i("div",{staticClass:"w_full_day"},[i("hr"),t._v("\n        "+t._s(t.translations.lastUpdate)+": "+t._s(t.weatherData.lastUpdated)+"\n        "),i("hr")])]:t._e()]:t._e(),t._v(" "),(t.located||t.tempLocated)&&t.dataLoaded?[i("app-graphs",{attrs:{"weather-data":t.weatherData,located:t.located,"temp-located":t.tempLocated}})]:t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":(t.located||t.tempLocated)&&!t.dataLoaded}})],2)}),[],!1,pe,"data-v-448ef360",null).exports,he=i("dV7z"),fe=i("cCY5"),ge=i.n(fe);function ve(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function be(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?ve(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ve(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var we={name:"WeatherMapFilter",components:{Slider:_t.a,Treeselect:ge.a},props:{isTriggered:{type:Boolean,default:!1},dateFormat:{type:String,default:""},timeFormat:{type:String,default:""},defaultType:{type:String,default:""},options:{type:String,default:""}},data:function(){var t=this;return{selectedType:this.defaultType,selectedOptions:[],sliderValue:0,dateUTC:"",timeUTC:"",formatter2:function(e){return t.getTooltip(e)}}},computed:be(be({},Object(Et.c)({intervals:function(t){return t.weather.intervals}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return void 0!==window.snTranslations.weatherMap&&window.snTranslations.weatherMap}}),watch:{selectedType:{handler:function(t,e){t!==e&&(this.sliderValue=0,this.$store.commit("weather/setCurrentType",this.selectedType))}},intervals:function(){this.$store.commit("weather/setCurrentInterval",this.intervals[this.sliderValue])},sliderValue:function(){this.$store.commit("weather/setCurrentInterval",this.intervals[this.sliderValue])}},mounted:function(){this.setOptions(),this.$store.commit("weather/setCurrentType",this.selectedType)},methods:{getTooltip:function(t){return this.intervals[t]?(this.dateUTC=p.a.unix(this.intervals[t].time).format(this.dateFormat),this.timeUTC=p.a.unix(this.intervals[t].time).format(this.timeFormat),this.timeUTC):""},setOptions:function(){var t=this,e=JSON.parse(this.options);this.selectedOptions=e.map((function(e){return{id:e,label:Q.a.replaceCharacterCodes(t.translations.mapName[e])}})),this.selectedOptions.sort((function(t,e){return t.label>e.label?1:-1}))}}};var ye=function(t){i("s1DU")},Ce=Object(g.a)(we,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("form",{staticClass:"weather-map-filter color-theme"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-sm-12 col-md-4"},[i("label",[t._v(t._s(t.translations.filter.selectType))]),t._v(" "),i("treeselect",{attrs:{"auto-load-root-options":!1,multiple:!1,clearable:!1,searchable:!1,"open-on-click":!0,"clear-on-select":!0,options:t.selectedOptions,flat:!0,"open-direction":"below",placeholder:t.translations.filter.selectType},model:{value:t.selectedType,callback:function(e){t.selectedType=e},expression:"selectedType"}})],1),t._v(" "),t.isTriggered?i("div",{staticClass:"col-sm-12 col-md-8"},[i("label",[t._v(t._s(t.dateUTC))]),t._v(" "),i("Slider",{staticClass:"slider light",attrs:{interval:1,height:8,min:0,max:t.intervals.length-1,"dot-size":25,"use-keyboard":!0,"tooltip-formatter":t.formatter2,disabled:!t.intervals.length||1===t.intervals.length,tooltip:"always","tooltip-placement":"bottom"},model:{value:t.sliderValue,callback:function(e){t.sliderValue=e},expression:"sliderValue"}})],1):t._e()])])}),[],!1,ye,"data-v-697db011",null).exports;function _e(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Se(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):_e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Te={name:"WeatherMapLegend",components:{appBarChart:$},computed:Se(Se({},Object(Et.c)({type:function(t){return t.weather.currentType},legends:function(t){return t.weather.currentLegends}})),{},{options:function(){return{responsive:!0,maintainAspectRatio:!1,tooltips:{enabled:!1},legend:{position:"bottom",onClick:function(t){return t.stopPropagation()},labels:{boxWidth:20}},scales:{yAxes:[{ticks:{display:!1},gridLines:{display:!1,drawBorder:!1}}],xAxes:[{categoryPercentage:1,gridLines:{display:!1,drawBorder:!1}}]}}}}),methods:{getChartData:function(t){return{labels:this.renderLabels(t),datasets:[{type:"bar",label:this.renderLegendLabel(t),backgroundColor:this.renderColors(t),data:this.renderData(t),borderWidth:0,fill:!1,barPercentage:1}]}},renderLegendLabel:function(t){var e=this.legends[t].unit,i=e?"(".concat(e,")"):"";return"".concat(this.legends[t].label," ").concat(i)},renderLabels:function(t){return this.legends[t].values},renderColors:function(t){return this.legends[t].colors},renderData:function(t){for(var e=this.legends[t].values&&this.legends[t].values.length,i=[];e>0;)i.push(60),e-=1;return i}}};var Pe=function(t){i("5jCE")},Fe=Object(g.a)(Te,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"weather-map-legend"},t._l(t.legends,(function(e,a){return i("div",{key:a}
1,[i("app-bar-chart",{attrs:{"chart-data":t.getChartData(a),options:t.options,height:100}})],1)})),0)}),[],!1,Pe,"data-v-5b579710",null).exports,xe=i("f0Wu"),Oe=i.n(xe);function ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var Le={name:"WeatherGoogleMap",components:{Loader:Qt.a},props:{opacity:{type:Number,default:.5},center:{type:Object,default:function(){return{}}},zoom:{type:Number,default:8},width:{type:String,default:"100%"},height:{type:Number,default:400}},data:function(){return{map:null,isLoading:!1,timezone:"",apiData:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ke(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({google:he.gmapApi,config:function(){return void 0!==window.snConfig&&window.snConfig}},Object(Et.c)({currentInterval:function(t){return t.weather.currentInterval},type:function(t){return t.weather.currentType}})),watch:{opacity:function(){this.map.overlayMapTypes.getAt(0).setOpacity(this.opacity)},type:function(){this.init()},currentInterval:function(){var t=this;this.$refs.mapRef.$mapPromise.then((function(e){t.map=e,t.map.overlayMapTypes.clear(),t.setImage(t.apiData)}))}},mounted:function(){this.timezone=Oe.a.tz.guess(),this.init()},methods:{init:function(){var t=this;this.$refs.mapRef.$mapPromise.then((function(e){t.map=e,t.getOverlay()}))},getOverlay:function(){var t=this;this.map.overlayMapTypes.clear();var e="".concat(this.config.apiUrl,"/api/weather/gmap/").concat(this.type,"/index.json?timezone=").concat(this.timezone,"&lang=").concat(this.config.language);this.isLoading=!0,s.a.get(e).then((function(e){t.apiData=e.data,t.$store.commit("weather/setIntervals",t.apiData.intervals),t.$store.commit("weather/setCurrentLegends",t.apiData.legends)})).catch((function(){t.isLoading=!1,t.$emit("error")}))},setImage:function(t){var e=this.currentInterval.tile_url,i=this.currentInterval.tile_type,a={alt:this.type,getTileUrl:function(t,a){return"".concat(e).concat(a,"/").concat(t.x,"/").concat(t.y,".").concat(i)},opacity:this.opacity};a&&(this.isLoading=1===t),this.map.overlayMapTypes.push(new google.maps.ImageMapType(a)),this.$emit("success")}}};var Ie=function(t){i("xBNp")},Ee=Object(g.a)(Le,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"weather-google-map"},[i("gmap-map",{ref:"mapRef",style:{width:t.width,height:t.height+"px"},attrs:{id:"map",center:t.center,zoom:t.apiData.nativeZoom||t.zoom,options:{clickableIcons:!1,disableDefaultUI:!0,zoomControl:!0,scaleControl:!0,maxZoom:t.apiData.maxZoom||null},"map-type-id":"terrain"}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoading}})],1)}),[],!1,Ie,"data-v-14d22686",null).exports;function Ve(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var Ae={name:"GdprOverlayLocalStore",components:{Loader:Qt.a},props:{optinButton:{type:String,default:""},optinMessage:{type:String,default:""},optinMessageAccepted:{type:String,default:""},optinBackgroundImage:{type:String,default:""},optinBackgroundImageWebp:{type:String,default:""},type:{type:String,default:""},height:{type:String,default:"0"},codes:{type:Array,default:function(){return[]}}},data:function(){return{isGdprEnabled:!1,showLoader:!0,paddingBottom:"0",rlVar:"rl"}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ve(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(Et.c)({gdprAccepted:function(t){return t.gdpr.gdprAccepted}})),watch:{gdprAccepted:function(){this.checkGdprAcceptedForType()}},mounted:function(){this.init()},methods:{init:function(){var t=this;"youtube"===this.type||"0"===this.height?this.paddingBottom="56.25%":this.paddingBottom=this.height,window.addEventListener("resize",this.scaleMessgeContent,!0),this.checkGdprAcceptedForType(),this.showLoader=!1,this.$nextTick((function(){t.scaleMessgeContent()}))},checkGdprAcceptedForType:function(){-1!==this.gdprAccepted.indexOf(this.type)&&(this.isGdprEnabled=!0)},updateGdpr:function(){this.$store.commit("gdpr/addGdprAccepted",this.type)},scaleMessgeContent:function(){var t=this.$refs.section.clientHeight;if(this.$refs.messageContent){this.$refs.messageContent.style.width=null,this.$refs.messageContent.style.transform=null;var e=this.$refs.messageContent.clientHeight;if(e>t&&(this.$refs.messageContent.style.width="100%",(e=this.$refs.messageContent.clientHeight)>t)){var i=(e-(e-t))/e;0===(i=Math.floor(10*i)/10)&&(i=1),this.$refs.messageContent.style.transform="translate(-50%, -50%) scale(".concat(i,")")}}}}};var De=function(t){i("lxYK")},Me=Object(g.a)(Ae,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{ref:"section",staticClass:"gdpr-overlay-wrapper",class:{"show-overlay":!t.isGdprEnabled},style:[t.showLoader||t.isGdprEnabled?{}:{"padding-bottom":t.paddingBottom}]}
1,[!t.optinBackgroundImage||t.showLoader||t.isGdprEnabled?t._e():i("picture",{staticClass:"gdpr-overlay-background"},[t.optinBackgroundImageWebp?i("source",{attrs:{srcset:t.optinBackgroundImageWebp,type:"image/webp"}}):t._e(),t._v(" "),i("img",{attrs:{srcset:t.optinBackgroundImage,src:t.optinBackgroundImage,width:"100%",height:"100%",title:"",alt:""}})]),t._v(" "),t.showLoader?t._e():[i("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isGdprEnabled?[t._t("default")]:t._e()],2),t._v(" "),t.isGdprEnabled?t._e():i("transition",{attrs:{name:"fade",mode:"out-in"}},[i("div",{ref:"messageContent",staticClass:"gdpr-overlay-content bg-white"},[i("p",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.optinMessage)}}),t._v(" "),i("button",{staticClass:"link-button",domProps:{innerHTML:t._s(t.optinButton)},on:{click:t.updateGdpr}})])])],t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader}}),t._v(" "),t.isGdprEnabled?i("div",{staticClass:"gdpr-message-accepted d-flex align-items-center"},[i("i",{staticClass:"bi bi-info-circle-fill mr-2",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{domProps:{innerHTML:t._s(t.optinMessageAccepted)}})]):t._e()],2)}),[],!1,De,"data-v-a69bd348",null).exports,Re={name:"GdprOverlayOneTrust",components:{Loader:Qt.a},props:{optinButton:{type:String,default:""},optinMessage:{type:String,default:""},optinMessageAccepted:{type:String,default:""},optinBackgroundImage:{type:String,default:""},optinBackgroundImageWebp:{type:String,default:""},type:{type:String,default:""},isOneTrustEnabled:{type:Boolean,default:!1},codes:{type:Array,default:function(){return[]}},height:{type:String,default:"0"},hideMessageAccepted:{type:Boolean,default:!1}},data:function(){return{isGdprEnabled:!1,code:"",showLoader:!0,paddingBottom:"0",rlVar:"rl"}},computed:{snCookieCategory:function(){return window.snCookieCategory},isIframe:function(){return"iframe"===this.type}},watch:{isGdprEnabled:function(t){var e=this;t&&this.$nextTick((function(){var t=e.$refs.section.getElementsByTagName("iframe");if(t&&t.length>0)for(var i=0;i<t.length;i+=1){var a=t[i];a.getAttribute("data-src")&&a.setAttribute("src",a.getAttribute("data-src"))}document.dispatchEvent(new CustomEvent("chassis-init-iframe-resizer"))}))}},mounted:function(){var t=this;"1"===this.findGetParameter("manifest-cookies")||"googleMap"===this.type?(this.isGdprEnabled=!0,this.showLoader=!1):(this.isIframe||this.setYoutubeGoogleOverlay(),F.a.$on(ne.a.GDPR_OVERLAY_CHECK_ONETRUST_COOKIES,(function(){t.checkOneTrustCookies(),t.scaleMessgeContent()})),this.checkType())},methods:{setYoutubeGoogleOverlay:function(){"youtube"===this.type||"0"===this.height?this.paddingBottom="56.25%":this.paddingBottom=this.height,window.addEventListener("resize",this.scaleMessgeContent,!0),this.scaleMessgeContent()},checkType:function(){var t=this;if(this.isOneTrustEnabled)var e=0,i=setInterval((function(){e+=1,"undefined"!=typeof OnetrustActiveGroups&&"undefined"!=typeof OneTrust?(clearInterval(i),t.checkOneTrustCookies(),t.scaleMessgeContent(),OneTrust.OnConsentChanged((function(t){F.a.$emit(ne.a.GDPR_OVERLAY_CHECK_ONETRUST_COOKIES)}))):e>10&&(clearInterval(i),console.log("Error: OneTrust was not rendered after 10sec"),n.a.addFrontendMessage("error","OneTrustNotRendered","Error: OneTrust was not rendered after 10sec"))}),1e3);else console.log("Error: OneTrust is not enabled on this site"),this.isGdprEnabled=!0,this.showLoader=!1},checkOneTrustCookies:function(){if(this.isOneTrustEnabled){if("undefined"!=typeof OnetrustActiveGroups&&this.codes.length>0){var t=0;this.codes.forEach((function(e){OnetrustActiveGroups.includes(e)&&(t+=1)})),t===this.codes.length?this.isGdprEnabled=!0:this.isGdprEnabled=!1,this.showLoader=!1}}else console.log("Error: OneTrust is not enabled on this site"),this.isGdprEnabled=!0,this.showLoader=!1},updateGdpr:function(){this.isOneTrustEnabled?this.acceptCookies():console.log("Error: OneTrust is not enabled on this site")},acceptCookies:function(){var t=this,e=[];this.codes.forEach((function(i){var a=t.snCookieCategory.find((function(t){return t.code===i}));e.push({Id:a.id,TransactionType:"CONFIRMED"})}));try{OneTrust.setConsentProfile({purposes:e})}catch(t){console.log("Error oneTrust setConsentProfile:"+t.message),n.a.addFrontendMessage("error","OneTrustSetConsentProfile",t.message)}if(OneTrust.Init(),F.a.$emit(ne.a.GDPR_OVERLAY_CHECK_ONETRUST_COOKIES),!this.isGdprEnabled){this.showLoader=!0;var i="OnetrustActiveGroups:".concat(OnetrustActiveGroups," | IframeCookies:").concat(this.codes);n.a.addFrontendMessage("info","GdprCookieNotIncluded",i),this.showLoader=!1,this.isGdprEnabled=!0}},findGetParameter:function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e},scaleMessgeContent:function(){var t=this;this.$nextTick((function(){if(t.$refs&&t.$refs.section){var e=t.$refs.section.clientHeight;if(t.$refs.messageContent){t.$refs.messageContent.style.width=null,t.$refs.messageContent.style.transform=null;var i=t.$refs.messageContent.clientHeight;if(i>e&&(t.$refs.messageContent.style.width="100%",(i=t.$refs.messageContent.clientHeight)>e)){var a=(i-(i-e))/i;0===(a=Math.floor(10*a)/10)&&(a=1),t.$refs.messageContent.style.transform="translate(-50%, -50%) scale(".concat(a,")")}}}}))}}};var $e=function(t){i("ZXMN")},Ne={name:"GdprOverlay",components:{GdprOverlayLocalStore:Me,GdprOverlayOneTrust:Object(g.a)(Re,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{ref:"section",staticClass:"gdpr-overlay-wrapper gdpr-overlay-one-trust",class:{"show-overlay":!t.isGdprEnabled,isIframe:t.isIframe&&!t.isGdprEnabled},style:[t.isIframe||t.showLoader||t.isGdprEnabled?{}:{"padding-bottom":t.paddingBottom}]}
1,[t.isIframe?t._e():[!t.optinBackgroundImage||t.showLoader||t.isGdprEnabled?t._e():i("picture",{staticClass:"gdpr-overlay-background"},[t.optinBackgroundImageWebp?i("source",{attrs:{srcset:t.optinBackgroundImageWebp,type:"image/webp"}}):t._e(),t._v(" "),i("img",{attrs:{srcset:t.optinBackgroundImage,src:t.optinBackgroundImage,width:"100%",height:"100%",title:"",alt:""}})])],t._v(" "),t.showLoader?t._e():[t.isGdprEnabled?[t._t("default")]:t._e(),t._v(" "),t.isGdprEnabled?t._e():i("div",[t.isGdprEnabled?t._e():i("div",{ref:"messageContent",staticClass:"gdpr-overlay-content",class:{"bg-white":!t.isIframe}},[i("p",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.optinMessage)}}),t._v(" "),i("button",{staticClass:"link-button",domProps:{innerHTML:t._s(t.optinButton)},on:{click:t.updateGdpr}})])])],t._v(" "),t.isGdprEnabled&&!t.hideMessageAccepted?i("div",{staticClass:"gdpr-message-accepted d-flex"},[i("i",{staticClass:"material-symbols-sharp theme-color mr-2",attrs:{"aria-hidden":"true"}},[t._v("info")]),t._v(" "),i("span",{domProps:{innerHTML:t._s(t.optinMessageAccepted)}})]):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader}})],2)}),[],!1,$e,"data-v-570fffbc",null).exports},props:{optinButton:{type:String,default:""},optinMessage:{type:String,default:""},optinMessageAccepted:{type:String,default:""},optinBackgroundImage:{type:String,default:""},optinBackgroundImageWebp:{type:String,default:""},useOneTrust:{type:Boolean,default:!0},isOneTrustEnabled:{type:Boolean,default:!1},type:{type:String,default:""},height:{type:String,default:"0"},codes:{type:Array,default:function(){return[]}},hideMessageAccepted:{type:Boolean,default:!1}},computed:{compName:function(){return this.useOneTrust?"GdprOverlayOneTrust":"GdprOverlayLocalStore"},compKey:function(){return"".concat(this.compName,"_").concat(this._uid)}}};var je=function(t){i("aNhg")},ze=Object(g.a)(Ne,(function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.compName,{key:t.compKey,tag:"component",attrs:{"optin-button":t.optinButton,"optin-message":t.optinMessage,"optin-message-accepted":t.optinMessageAccepted,"optin-background-image":t.optinBackgroundImage,"optin-background-image-webp":t.optinBackgroundImageWebp,"is-one-trust-enabled":t.isOneTrustEnabled,type:t.type,height:t.height,codes:t.codes,"hide-message-accepted":t.hideMessageAccepted}},[t._t("default")],2)}),[],!1,je,"data-v-076c693e",null).exports,Be={name:"WeatherMap",components:{WeatherMapFilter:Ce,WeatherMapLegend:Fe,Slider:_t.a,WeatherGoogleMap:Ee,GdprOverlay:ze},props:{latitude:{type:Number,default:0},longitude:{type:Number,default:0},zoom:{type:Number,default:8},dateFormat:{type:String,default:""},timeFormat:{type:String,default:""},type:{type:String,default:""},typeOptions:{type:String,default:""},googleKey:{type:String,default:""},width:{type:String,default:"100%"},height:{type:Number,default:600},optInBackgroundImage:{type:String,default:""},optInBackgroundImageWebp:{type:String,default:""},useOneTrust:{type:Boolean,default:!0},isOneTrustEnabled:{type:Boolean,default:!1}},data:function(){return{opacity:.5,center:{},showFilter:!1,showError:!1,mapLatitude:0,mapLongitude:0,mapZoom:8,codes:["C0024"]}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return void 0!==window.snTranslations&&window.snTranslations}},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},mounted:function(){this.geolocate()},created:function(){this.setGoogleMapKey(),window.addEventListener("resize",this.handleResize),oe.a.hasPzAddress()?this.processSessionStorage():localStorage.getItem("pzAddress")?this.processLocalStorage():this.setMap(this.latitude,this.longitude,this.zoom)},methods:{setGoogleMapKey:function(){this.googleKey&&o.default.use(he,{load:{key:this.googleKey,libraries:"places"}})},geolocate:function(){var t=this;F.a.$on(ne.a.UPDATE_FROM_BAR,(function(e){if(e===ne.c.UPDATE_ADDRESS)t.processSessionStorage();else if(e===ne.b.UPDATE_ADDRESS)t.processLocalStorage();else if("updateToogle"===e){var i=localStorage.getItem("isPz");(i=JSON.parse(i))&&i.isPz?t.processLocalStorage():t.setMap(t.latitude,t.longitude,t.zoom)}else t.setMap(t.latitude,t.longitude,t.zoom)}
1))},processSessionStorage:function(){var t=oe.a.extractCoordinatesFromStorage();this.setMap(t.latitude,t.longitude,8)},processLocalStorage:function(){var t=localStorage.getItem("pzAddress");(t=JSON.parse(t))?(this.mapLatitude=t.latitude,this.mapLongitude=t.longitude,this.setMap(this.mapLatitude,this.mapLongitude,8)):this.setMap(this.latitude,this.longitude,this.zoom)},setMap:function(t,e,i){this.mapLatitude=t,this.mapLongitude=e,this.mapZoom=i,this.center={lat:t,lng:e}},success:function(){this.showFilter=!0,this.showError=!1},error:function(){this.showError=!0}}};var qe=function(t){i("SuDu")},Ue=Object(g.a)(Be,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"weather-map-wrapper"},[i("WeatherMapFilter",{attrs:{"is-triggered":t.showFilter,"date-format":t.dateFormat,"time-format":t.timeFormat,"default-type":t.type,options:t.typeOptions}}),t._v(" "),t.showFilter&&t.showError?i("div",{staticClass:"alert alert-grey",attrs:{role:"alert"}},[t._v("\n    "+t._s(t.translations.weatherMap.errorMsg)+"\n  ")]):t._e(),t._v(" "),i("div",{staticClass:"gdpr-overlay-outter-wrapper"},[i("GdprOverlay",{attrs:{height:t.height+"px","optin-button":t.translations.gdpr.googleMap.optinButton,"optin-message":t.translations.gdpr.googleMap.optinMessage,"optin-message-accepted":t.translations.gdpr.googleMap.optinMessageAccepted,"optin-background-image":t.optInBackgroundImage,"optin-background-image-webp":t.optInBackgroundImageWebp,"is-one-trust-enabled":t.isOneTrustEnabled,"use-one-trust":t.useOneTrust,codes:t.codes,type:"googleMap"}},[i("WeatherGoogleMap",{attrs:{opacity:t.opacity,center:t.center,zoom:t.mapZoom,width:t.width,height:t.height},on:{success:t.success,error:t.error}})],1)],1),t._v(" "),t.showError?t._e():i("div",[i("WeatherMapLegend"),t._v(" "),i("div",{staticClass:"tooltipInfo"},[i("i",{staticClass:"icon icon-info",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",[t._v(t._s(t.translations.weatherMap.infoSlider))])]),t._v(" "),i("Slider",{staticClass:"slider",attrs:{interval:.1,height:8,min:0,max:1,"dot-size":25,"use-keyboard":!0,tooltip:"always","tooltip-placement":"bottom"},model:{value:t.opacity,callback:function(e){t.opacity=e},expression:"opacity"}})],1)],1)}),[],!1,qe,"data-v-1fab63d2",null).exports,He=i("cWDk"),Ge=i("GdcW"),We=i("cuIY"),Ze={name:"CtaBox",props:{title:{type:String,default:""},content:{type:String,default:""},linkUrl:{type:String,default:""},linkText:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left"},isDark:{type:Boolean,default:!1},customColor:{type:String,default:""},id:{type:String,default:""},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""},showOnlyLink:{type:Boolean,default:!1}},computed:{customStyle:function(){return this.customColor?{backgroundColor:this.customColor}:{}},actionUrl:function(){return this.linkUrl},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}},methods:{handleClick:function(t){this.actionUrl||t.preventDefault()}}};var Je=function(t){i("fTxU")},Ke=Object(g.a)(Ze,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showOnlyLink?i("a",{staticClass:"fl-btn fl-btn-inline-icon-primary",attrs:{href:t.actionUrl,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,t.linkText,t.actionUrl),"data-tealium-value":t.tealiumValue,"data-tealium-type":t.tealiumType,"data-tealium-category":t.tealiumCategory,"data-tealium-action":t.tealiumAction,target:"_blank"},on:{click:function(e){return t.handleClick(e)}}},[t.icon?i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.icon))]):t._e(),t._v(" "),t.linkText?i("span",[t._v(t._s(t.linkText))]):t._e()]):i("section",{staticClass:"cta-box-wrapper",class:{grey:t.isDark},style:t.customStyle,attrs:{id:t.id}},[t.title?i("h2",[t._v(t._s(t.title))]):t._e(),t._v(" "),t.content?i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}}):t._e(),t._v(" "),i("a",{staticClass:"link",attrs:{href:t.actionUrl,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,t.linkText,t.actionUrl),"data-teal
1ium-value":t.tealiumValue,"data-tealium-type":t.tealiumType,"data-tealium-category":t.tealiumCategory,"data-tealium-action":t.tealiumAction,target:"_blank"},on:{click:function(e){return t.handleClick(e)}}},[t.icon?i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.icon))]):t._e(),t._v(" "),t.linkText?i("span",[t._v(t._s(t.linkText))]):t._e()])])}),[],!1,Je,"data-v-713cce16",null).exports;function Ye(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Qe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ye(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Xe={name:"CtaProductAdviceBox",extends:Ke,data:function(){return{country:window.snConfig.country,xarvio:"&requestingSystem=xarvio",agroportal:"&requestingSystem=agroportal"}},computed:Qe(Qe({},Object(Et.c)({cropGroupFilter:function(t){return t.search.currentCGFilter},cropSubGroupFilter:function(t){return t.search.currentCSGFilter},cropFilter:function(t){return t.search.currentCFilter},filterCropGroups:function(t){return t.search.filterCropGroups},filterCropSubGroups:function(t){return t.search.filterCropSubGroups},filterCrops:function(t){return t.search.filterCrops},pestGroupFilter:function(t){return t.search.currentPGFilter},pestSubGroupFilter:function(t){return t.search.currentPSGFilter},pestFilter:function(t){return t.search.currentPFilter},filterPestGroups:function(t){return t.search.filterPestGroups},filterPestSubGroups:function(t){return t.search.filterPestSubGroups},filterPests:function(t){return t.search.filterPests},eppoCodePest:function(t){return t.search.eppoCodePest},eppoCodeCrop:function(t){return t.search.eppoCodeCrop}})),{},{actionUrl:function(){var t=this.getParamsCrops(),e=this.getParamsPests(),i=this.eppoCodePest||this.eppoCodeCrop?this.xarvio:this.agroportal;return"".concat(this.linkUrl,"?country=").concat(this.country).concat(i).concat(t).concat(e)}}),methods:{getParamsCrops:function(){var t=O()(this.cropFilter.reduce((function(t,e){return[].concat(O()(t),[e.eppocode])}),[])),e=O()(this.cropSubGroupFilter.reduce((function(t,e){return[].concat(O()(t),[e.eppocode])}),[])),i=O()(this.cropGroupFilter.reduce((function(t,e){return[].concat(O()(t),[e.eppocode])}),[])),a="";if(t.length>0){var s=this.findFirstSelected(this.filterCrops,t,"eppocode");a=s?"&".concat("crop","=").concat(s.eppocode):""}else if(e.length>0){var n=this.findFirstSelected(this.filterCropSubGroups,e,"eppocode");a=n?"&".concat("crop","=").concat(n.eppocode):""}else if(i.length>0){var o=this.findFirstSelectedGroup(this.filterCropGroups,i,"eppocode");a=o?"&".concat("crop","=").concat(o.eppocode):""}return a},getParamsPests:function(){var t=O()(this.pestFilter.reduce((function(t,e){return[].concat(O()(t),[e.id])}),[])),e=O()(this.pestSubGroupFilter.reduce((function(t,e){return[].concat(O()(t),[e.id])}),[])),i=O()(this.pestGroupFilter.reduce((function(t,e){return[].concat(O()(t),[e.id])}),[])),a="";if(t.length>0){var s=this.findFirstSelected(this.filterPests,t,"id");a=s?"&".concat("target","=").concat(s.id):""}else if(e.length>0){var n=this.findFirstSelected(this.filterPestSubGroups,e,"id");a=n?"&".concat("target","=").concat(n.id):""}else if(i.length>0){var o=this.findFirstSelectedGroup(this.filterPestGroups,i,"id");a=o?"&".concat("target","=").concat(o.id):""}return a},findFirstSelected:function(t,e,i){var a=Object.entries(t).sort(),s=[];return a.forEach((function(t){var e;s=(e=s).concat.apply(e,O()(t[1]))})),s.find((function(t){return e.find((function(e){return e===t[i]}))}))},findFirstSelectedGroup:function(t,e,i){return t.find((function(t){return e.find((function(e){return e===t[i]}))}))}}};var ti=function(t){i("/BUg")},ei=Object(g.a)(Xe,void 0,void 0,!1,ti,"data-v-47badc12",null).exports;function ii(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function ai(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?ii(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ii(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var si={name:"ProductSearch",components:{ProductSearchCheckbox:He.a,ProductSearchTag:Ge.a,ProductSearchDropdown:We.a,CtaProductAdviceBox:ei},props:{recommendationActive:{type:Boolean,default:!1},recommendationTitle:{type:String,default:""},recommendationContent:{type:String,default:""},recommendationLinkText:{type:String,default:""},recommendationLinkUrl:{type:String,default:""},recommendationColor:{type:String,default:""},recommendationTealiumValue:{type:String,default:""},recommendationTealiumType:{type:String,default:""},recommendationTealiumCategory:{type:String,default:""},recommendationTealiumAction:{type:String,default:""},filterByType:{type:String,default:""},showIndication:{type:Boolean,default:!0}},data:function(){return{search:"",selectedUrlPest:null,selectedUrlPests:[],selectedUrlCrop:null,selectedUrlCrops:[],prefixPests:"pg_",groupPrefixPests:"pgid_",subGroupPrefixPests:"psgid_",prefixCrops:"cg_",groupPrefixCrops:"cgid_",subGroupPrefixCrops:"csgid_",flagUpdatedUrlPests:!1,flagUpdatedUrlCrops:!1,urlPest:"",urlCrop:"",callFetchPestStructure:"search/fetchPestStructure",callFetchCropStructure:"search/fetchCropStructure",callSetPreselectPestGroup:"search/setPreselectPestGroup",callSetPreselectCropGroup:"search/setPreselectCropGroup",callSetPreselectPestSubgroup:"search/setPreselectPestSubgroup",classChildVisible:"child-visible",page:0,showAmount:0}},computed:ai(ai({},Object(Et.c)({filterPestGroups:function(t){return t.search.filterPestGroups},filterPestSubGroups:function(t){return t.search.filterPestSubGroups},filterPests:function(t){return t.search.filterPests},filterCropGroups:function(t){return t.search.filterCropGroups},filterCropSubGroups:function(t){return t.search.filterCropSubGroups},filterCrops:function(t){return t.search.filterCrops},filterIndication:function(t){return t.search.filterIndication},filterActiveIngredient:function(t){return t.search.filterActiveIngredient},currentPGFilter:function(t){return t.search.currentPGFilter},currentPSGFilter:function(t){return t.search.currentPSGFilter},currentPFilter:function(t){return t.search.currentPFilter},currentCGFilter:function(t){return t.search.currentCGFilter},currentCSGFilter:function(t){return t.search.currentCSGFilter},currentCFilter:function(t){return t.search.currentCFilter},currentIFilter:function(t){return t.search.currentIFilter},currentAIFilter:function(t){return t.search.currentAIFilter},productSearch:function(t){return t.search.productSearch},searchText:function(t){return t.search.searchText},defaultShowAmount:function(t){return t.search.defaultShowAmount},preselectPestGroup:function(t){return t.search.preselectPestGroup},preselectPestSubgroup:function(t){return t.search.preselectPestSubgroup},preselectPests:function(t){return t.search.preselectPests},preselectCropGroup:function(t){return t.search.preselectCropGroup},preselectCropSubgroup:function(t){return t.search.preselectCropSubgroup},preselectCrops:function(t){return t.search.preselectCrops},preselectIndication:function(t){return t.search.preselectIndication},structurePest:function(t){return t.search.structurePest},structureCrop:function(t){return t.search.structureCrop},eppoCodePestError:function(t){return t.search.eppoCodePestError},eppoCodeCropError:function(t){return t.search.eppoCodeCropError}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.productSearch)&&window.snTranslations.productSearch},config:function(){return void 0!==window.snConfig&&window.snConfig},dynamicTeaserConfig:function(){return void 0!==window.dynamicTeaserConfig&&window.dynamicTeaserConfig}}),watch:{search:function(){this.resetSearchResults(),this.$store.commit("search/setSearchText",this.search),this.fetchData(!0)}},mounted:function(){var t=this;F.a.$on("updateFromBar",(function(e){"updateCrop"===e&&(t.$store.commit("search/setCurrentCGFilter",[]),t.$store.commit("search/setCurrentCSGFilter",[]),t.$store.commit("search/setCurrentCFilter",[]),t.fetchInitialCropGroupFilterItems(),t.init())}))},created:function(){this.$store.commit("search/updateShowAmount",this.defaultShowAmount),this.showAmount=this.defaultShowAmount,this.handleInitialUrlParams(),this.fetchInitialCropGroupFilterItems(),this.init()},methods:{init:function(){this.fetchFilterItems(),this.fetchData()},fetchInitialCropGroupFilterItems:function(){this.$store.dispatch("search/fetch
1InitialCropGroupFilterItems")},handleInitialUrlParams:function(){var t=this.$route.query.EPPO_P,e=this.$route.query.EPPO_C;t&&(this.$store.commit("search/setEppoCodePest",t),Q.a.isGroup(t)?this.fetchPestGroupStructure(t):Q.a.isSubgroup(t)?this.fetchPestSubgroupStructure(t):this.fetchPestStructure(t)),e&&(this.$store.commit("search/setEppoCodeCrop",e),Q.a.isGroup(e)?this.fetchCropGroupStructure(e):Q.a.isSubgroup(e)?this.fetchCropSubgroupStructure(e):this.fetchCropStructure(e))},fetchPestGroupStructure:function(t){var e=this;this.$store.dispatch(this.callFetchPestStructure,{pestGroupId:t}).then((function(){var t=e.structurePest.pestgroups[0].id;e.$store.commit(e.callSetPreselectPestGroup,t)}))},fetchPestSubgroupStructure:function(t){var e=this;this.$store.dispatch(this.callFetchPestStructure,{pestSubgroupId:t}).then((function(){var t=e.structurePest.pestgroups[0].id,i=e.structurePest.pestgroups[0].pestsubgroups[0].id;e.$store.commit(e.callSetPreselectPestGroup,t),e.$store.commit(e.callSetPreselectPestSubgroup,i)}))},fetchPestStructure:function(t){var e=this;this.$store.dispatch(this.callFetchPestStructure,{eppocode:t}).then((function(){var t=e.structurePest.pestgroups[0].id,i=e.structurePest.pestgroups[0].pestsubgroups[0].id,a=e.structurePest.pestgroups[0].pestsubgroups[0].pests.map((function(t){return t.id}));e.$store.commit(e.callSetPreselectPestGroup,t),e.$store.commit(e.callSetPreselectPestSubgroup,i),e.$store.commit("search/setPreselectPests",a)}))},fetchCropGroupStructure:function(t){var e=this;this.$store.dispatch(this.callFetchCropStructure,{cropGroupId:t}).then((function(){var t=e.structureCrop.cropgroups[0].basf_code;e.$store.commit(e.callSetPreselectCropGroup,t)}))},fetchCropSubgroupStructure:function(t){var e=this;this.$store.dispatch(this.callFetchCropStructure,{cropSubgroupId:t}).then((function(){var t=e.structureCrop.cropgroups[0].basf_code,i=e.structureCrop.cropgroups[0].cropsubgroups[0].basf_code;e.$store.commit(e.callSetPreselectCropGroup,t),e.$store.commit("search/setPreselectCropSubgroup",i)}))},fetchCropStructure:function(t){var e=this;this.$store.dispatch(this.callFetchCropStructure,{eppocode:t}).then((function(){var t=e.structureCrop.cropgroups[0].basf_code,i=e.structureCrop.cropgroups[0].cropsubgroups[0].basf_code,a=e.structureCrop.cropgroups[0].cropsubgroups[0].crops.map((function(t){return t.basf_code}));e.$store.commit(e.callSetPreselectCropGroup,t),e.$store.commit("search/setPreselectCropSubgroup",i),e.$store.commit("search/setPreselectCrops",a)}))},fetchFilterItems:function(){var t=this;this.$store.dispatch("search/fetchPestGroupFilterItems").then((function(){setTimeout((function(){t.handleUrlPests()}),100)})),this.$store.dispatch("search/fetchCropGroupFilterItems").then((function(){setTimeout((function(){t.handleUrlCrops()}),100)})),this.$store.dispatch("search/fetchIndicationFilterItems").then((function(){setTimeout((function(){t.handleUrlIndication()}),100)})),this.$store.dispatch("search/fetchActiveIngredientFilterItems")},fetchData:function(t){(this.flagUpdatedUrlPests||this.flagUpdatedUrlCrops)&&(this.$store.commit("search/setEppoCodePestError",!1),this.$store.commit("search/setEppoCodeCropError",!1));this.$store.dispatch("search/fetchData",{appendResults:!0,page:this.page,clearResultsAfterLoad:t})},scrollToAnchor:function(){var t=this.$router.currentRoute.hash;setTimeout((function(){var e=document.getElementById("results");t&&e.scrollIntoView({behavior:"smooth",block:"center"})}),500)},handleUrlPests:function(){if((this.preselectPests||this.preselectPestSubgroup||this.preselectPestGroup)&&!this.flagUpdatedUrlPests){this.openAccordion("pestGroupAcc","pestGroupAccHead");var t=[],e=this.preselectPestGroup;this.preselectPests.length?(t=["".concat(this.prefixPests).concat(this.preselectPestGroup),this.preselectPestSubgroup],e=this.preselectPests):this.preselectPestSubgroup&&(t=["".concat(this.prefixPests).concat(this.preselectPestGroup)],e=this.preselectPestSubgroup),this.$store.dispatch("search/updateMarkedParents",{elementId:e,parents:t}),this.openSubAccordion(this.prefixPests,this.preselectPests,this.groupPrefixPests,this.preselectPestGroup,this.subGroupPrefixPests,this.preselectPestSubgroup,e)}else this.scrollToAnchor()},handleUrlCrops:function(){if((this.preselectCrops||this.preselectCropSubgroup||this.preselectCropGroup)&&!this.flagUpdatedUrlCrops){this.openAccordion("cropAcc","cropAccHead");var t=[],e=this.preselectCropGroup;
1this.preselectCrops.length?(t=["".concat(this.prefixCrops).concat(this.preselectCropGroup),this.preselectCropSubgroup],e=this.preselectCrops):this.preselectCropSubgroup&&(t=["".concat(this.prefixCrops).concat(this.preselectCropGroup)],e=this.preselectCropSubgroup),this.$store.dispatch("search/updateMarkedParents",{elementId:e,parents:t}),this.openSubAccordion(this.prefixCrops,this.preselectCrops,this.groupPrefixCrops,this.preselectCropGroup,this.subGroupPrefixCrops,this.preselectCropSubgroup,e)}else this.scrollToAnchor()},handleUrlIndication:function(){var t=this;if(this.filterIndication){var e=this.filterIndication.find((function(e){return e.id===t.filterByType}));this.$store.commit("search/setPreselectIndication",e?e.id:""),this.preselectIndication?(this.openAccordion("indiAcc","indiAccHead"),this.updateFilter(e,this.currentIFilter,"setCurrentIFilter")):this.scrollToAnchor()}},checkIfCurrentFilterContainsItem:function(t,e){for(var i=0;i<e.length;i+=1)if(e[i].id===t.id)return!0;return!1},openAccordion:function(t,e){document.getElementById("".concat(t))&&document.getElementById("".concat(t)).classList.toggle("show"),document.getElementById("".concat(e))&&document.getElementById("".concat(e)).classList.toggle("collapsed")},openSubAccordion:function(t,e,i,a,s,n,o){var r=this;this.$store.dispatch("search/fetchSubItems",{prefix:i,id:a}).then((function(){var e="cg_"===t;o===a?e?r.updateUrlCropsSingle(r.filterCropGroups,o,i):r.updateUrlPestsSingle(r.filterPestGroups,o,i):o===n?(document.getElementById("".concat(i).concat(a)).classList.add(r.classChildVisible),e?r.updateUrlCropsSingle(r.filterCropSubGroups,o,s):r.updateUrlPestsSingle(r.filterPestSubGroups,o,s)):(document.getElementById("".concat(i).concat(a)).classList.add(r.classChildVisible),r.$store.dispatch("search/fetchSubItems",{prefix:s,id:n}).then((function(){document.getElementById("".concat(s).concat(n)).classList.add(r.classChildVisible),e?r.updateUrlCropsMultiple(r.filterCrops,r.preselectCrops,t):r.updateUrlPestsMultiple(r.filterPests,r.preselectPests,t)}))),r.eppoCodePestError||r.eppoCodeCropError||r.scrollToAnchor()}))},updateUrlPestsSingle:function(t,e,i){var a,s=this;(a=[]).concat.apply(a,O()(Object.values(t))).forEach((function(t){t.id===e&&(s.selectedUrlPest=t)})),this.selectedUrlPest&&(i===this.groupPrefixPests&&this.updatePestGroup(this.selectedUrlPest),i===this.subGroupPrefixPests&&this.updatePestSubGroup(this.selectedUrlPest))},updateUrlPestsMultiple:function(t,e,i){var a,s=this;(a=[]).concat.apply(a,O()(Object.values(t))).forEach((function(t){e.find((function(e){return e===t.id}))&&s.selectedUrlPests.push(t)})),this.selectedUrlPests.length&&i===this.prefixPests&&this.updateFilter(this.selectedUrlPests,this.currentPFilter,"setCurrentPFilter")},updateUrlCropsSingle:function(t,e,i){var a,s=this;(a=[]).concat.apply(a,O()(Object.values(t))).forEach((function(t){t.id===e&&(s.selectedUrlCrop=t)})),this.selectedUrlCrop&&(i===this.groupPrefixCrops&&this.updateCropGroup(this.selectedUrlCrop),i===this.subGroupPrefixCrops&&this.updateCropSubGroup(this.selectedUrlCrop))},updateUrlCropsMultiple:function(t,e,i){var a,s=this;(a=[]).concat.apply(a,O()(Object.values(t))).forEach((function(t){e.find((function(e){return e===t.id}))&&s.selectedUrlCrops.push(t)})),this.selectedUrlCrops.length&&i===this.prefixCrops&&this.updateFilter(this.selectedUrlCrops,this.currentCFilter,"setCurrentCFilter")},removeAll:function(){this.$store.dispatch("search/removeCurrentFilters",{showIndication:this.showIndication});for(var t=document.querySelectorAll("ul.filter-list .custom-checkbox input"),e=0;e<t.length;
1e+=1)t[e].checked=!1;this.resetSearchResults(),this.fetchData()},removeOne:function(){this.resetSearchResults(),this.fetchData()},showMore:function(){this.page=this.page+1,this.showAmount=this.showAmount+this.defaultShowAmount,this.fetchData()},resetSearchResults:function(){this.page=0,this.showAmount=this.defaultShowAmount,this.$store.commit("search/setProductSearch",[])},showResults:function(){return this.currentPGFilter.length>0||this.currentPSGFilter.length>0||this.currentPFilter.length>0||this.currentCGFilter.length>0||this.currentCSGFilter.length>0||this.currentCFilter.length>0||this.showIndication&&this.currentIFilter.length>0||this.currentAIFilter.length>0},getIndex:function(t,e){this.resetSearchResults();for(var i=-1,a=0;a<e.length;a+=1)e[a].id===t.id&&(i=a);return i},updatePestGroup:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getIndex(t,this.currentPGFilter);i>-1?(this.currentPGFilter.splice(i,1),this.$store.dispatch("search/removePestGroupChildren",t)):this.currentPGFilter.push(t),this.$store.commit("search/setCurrentPGFilter",this.currentPGFilter),this.flagUpdatedUrlPests=e,this.fetchData()},updatePestSubGroup:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getIndex(t,this.currentPSGFilter);i>-1?(this.currentPSGFilter.splice(i,1),this.$store.dispatch("search/removePestSubGroupChildren",t)):this.currentPSGFilter.push(t),this.$store.commit("search/setCurrentPSGFilter",this.currentPSGFilter),this.flagUpdatedUrlPests=e,this.fetchData()},updateCropGroup:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getIndex(t,this.currentCGFilter);i>-1?(this.currentCGFilter.splice(i,1),this.$store.dispatch("search/removeCropGroupChildren",t)):this.currentCGFilter.push(t),this.$store.commit("search/setCurrentCGFilter",this.currentCGFilter),this.flagUpdatedUrlCrops=e,this.fetchData()},updateCropSubGroup:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getIndex(t,this.currentCSGFilter);i>-1?(this.currentCSGFilter.splice(i,1),this.$store.dispatch("search/removeCropsSubGroupChildren",t)):this.currentCSGFilter.push(t),this.$store.commit("search/setCurrentCSGFilter",this.currentCSGFilter),this.flagUpdatedUrlCrops=e,this.fetchData()},updateFilter:function(t,e,i){var a=this;if(Array.isArray(t))t.forEach((function(t){var i=a.getIndex(t,e);i>-1?e.splice(i,1):e.push(t)}));else if(t){var s=this.getIndex(t,e);s>-1?e.splice(s,1):e.push(t)}this.$store.commit("search/".concat(i),e),this.fetchData()}}};var ni=function(t){i("JNoy")},oi=Object(g.a)(si,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-3 search-filter"},[i("form",{staticClass:"color-light-grey"},[i("div",{staticClass:"input-search"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"form-control",attrs:{id:"",placeholder:t.translations.search,type:"text"},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}}),t._v(" "),i("button",{staticClass:"disabled",attrs:{type:"submit"},on:{click:function(t){t.preventDefault()}}})])]),t._v(" "),t.filterCropGroups.length>0?i("div",{staticClass:"accordion-style"},[i("h2",{staticClass:"accordion-toggle collapsed",attrs:{id:"cropAccHead"},domProps:{innerHTML:t._s(t.translations.crops)},on:{click:function(e){return t.openAccordion("cropAcc","cropAccHead")}}}),t._v(" "),i("div",{staticClass:"collapse",attrs:{id:"cropAcc"}},[i("div",{staticClass:"content-module"},[i("ProductSearchDropdown",{attrs:{groups:t.filterCropGroups,"group-current":t.currentCGFilter,"group-prefix":t.groupPrefixCrops,"sub-groups":t.filterCropSubGroups,"sub-group-current":t.currentCSGFilter,"sub-group-prefix":t.subGroupPrefixCrops,elements:t.filterCrops,"element-current":t.currentCFilter,prefix:t.prefixCrops},on:{updateGroup:function(e){return t.updateCropGroup(e,!0)},updateSubGroup:function(e){return t.updateCropSubGroup(e,!0)},updateElement:function(e){return t.updateFilter(e,t.currentCFilter,"setCurrentCFilter")}}})],1)])]):t._e(),t._v(" "),t.filterPestGroups.length>0?i("div",{staticClass:"accordion-style"},[i("h2",{staticClass:"accordion-toggle collapsed",attrs:{id:"pestGroupAccHead"},domProps:{innerHTML:t._s(t.translations.pest)},on:{click:function(e){return t.openAccordion("pestGroupAcc","pestGroupAccHead")}}}),t._v(" "),i("div",{staticClass:"collapse",attrs:{id:"pestGroupAcc"}},[i("div",{staticClass:"content-module"},[i("ProductSearchDropdown",{attrs:{groups:t.filterPestGroups,"group-current":t.currentPGFilter,"group-prefix":t.groupPrefixPests,"sub-groups":t.filterPestSubGroups,"sub-group-current":t.currentPSGFilter,"sub-group-prefix":t.subGroupPrefixPests,elements:t.filterPests,"element-current":t.currentPFilter,prefix:t.prefixPests},on:{updateGroup:function(e){return t.updatePestGroup(e,!0)},updateSubGroup:function(e){return t.updatePestSubGroup(e,!0)},updateElement:function(e){return t.updateFilter(e,t.currentPFilter,"setCurrentPFilter")}}})],1)])]):t._e(),t._v(" "),t.showIndication&&t.filterIndication.length>0?i("div",{staticClass:"accordion-style"},[i("h2",{staticClass:"accordion-toggle collapsed",attrs:{id:"indiAccHead"},domProps:{innerHTML:t._s(t.translations.indication)},on:{click:function(e){return t.openAccordion("indiAcc","indiAccHead")}}}),t._v(" "),i("div",{staticClass:"collapse",attrs:{id:"indiAcc"}},[i("div",{staticClass:"content-module"},[i("ul",{staticClass:"filter-list"},[t._l(t.filterIndication,(function(e){return[i("li",{key:e.id,attrs:{id:"i_"+e.id}},[i("ProductSearchCheckbox",{attrs:{value:e,checked:t.checkIfCurrentFilterContainsItem(e,t.currentIFilter)},on:{"handle-click":function(i){return t.updateFilter(e,t.currentIFilter,"setCurrentIFilter")}}})],1)]}))],2)])])]):t._e(),t._v(" "),t.filterActiveIngredient.length>0?i("div",{staticClass:"accordion-style"},[i("h2",{staticClass:"accordion-toggle collapsed",attrs:{id:"activeIngAccHead"},domProps:{innerHTML:t._s(t.translations.activeIngredient)},on:{click:function(e){return t.openAccordion("activeIngAcc","activeIngAccHead")}}}),t._v(" "),i("div",{staticClass:"collapse",attrs:{id:"activeIngAcc"}},[i("div",{staticClass:"content-module"},[i("ul",{staticClass:"filter-list"},[t._l(t.filterActiveIngredient,(function(e){return[i("li",{key:e.id,attrs:{id:"ai_"+e.id}},[i("ProductSearchCheckbox",{attrs:{value:e},on:{"handle-click":function(i){return t.updateFilter(e,t.currentAIFilter,"setCurrentAIFilter")}}})],1)]}))],2)])])]):t._e()]),t._v(" "),i("div",{staticClass:"col-md-9 search-results",attrs:{id:"results"}},[t.recommendationActive?i("div",{staticClass:"d-block d-md-none mb-5"},[i("CtaProductAdviceBox",{attrs:{title:t.recommendationTitle,content:t.recommendationContent,"link-text":t.recommendationLinkText,"link-url":t.re
1commendationLinkUrl,"custom-color":t.recommendationColor,"tealium-value":t.recommendationTealiumValue,"tealium-type":t.recommendationTealiumType,"tealium-category":t.recommendationTealiumCategory,"tealium-action":t.recommendationTealiumAction}})],1):t._e(),t._v(" "),t.productSearch?i("h2",[t._v("\n      "+t._s(t.productSearch.totalElements)+" "+t._s(t.translations.results)+"\n    ")]):t._e(),t._v(" "),t.eppoCodePestError||t.eppoCodeCropError?i("div",{staticClass:"alert alert-danger error",attrs:{role:"alert"}},[t.eppoCodeCropError?i("span",[t._v(t._s(t.translations.eppoCodeErrorCrop))]):i("span",[t._v(t._s(t.translations.eppoCodeError))])]):t._e(),t._v(" "),t.showResults()?i("div",{staticClass:"filters"},[i("button",{staticClass:"button button-grey button-close",on:{click:function(e){return e.preventDefault(),t.removeAll.apply(null,arguments)}}},[t._v("\n        "+t._s(t.translations.removeAll)+"\n      ")]),t._v(" "),i("ProductSearchTag",{attrs:{"show-indication":t.showIndication},on:{remove:function(e){return t.removeOne()}}})],1):t._e(),t._v(" "),t.productSearch?i("div",{staticClass:"row teaser teaser-row"},[t._l(t.productSearch.content,(function(e,a){return[i("div",{key:a,staticClass:"col-md-4 col-sm-6"},[i("div",{staticClass:"swiper-slide",domProps:{innerHTML:t._s(e.snippet)}})])]}))],2):t._e(),t._v(" "),t.productSearch&&t.productSearch.totalElements>t.showAmount?i("button",{staticClass:"button button-full-width",on:{click:function(e){return t.showMore()}}},[t._v("\n      "+t._s(t.translations.showMore)+"\n    ")]):t._e(),t._v(" "),t.productSearch&&t.productSearch.numberOfElements<1?i("div",{staticClass:"alert alert-light",attrs:{role:"alert"}},[t._v("\n      "+t._s(t.translations.nothingFound)+"\n    ")]):t._e()])])}),[],!1,ni,null,null).exports,ri={name:"PestLibrary",components:{VueSelect:St.a},props:{showFilter:{type:Boolean,default:!0}},data:function(){return{search:"",showAmount:12,page:0,productSearchData:[],filterCropGroups:[],filterIndication:[],filterActiveIngredient:[],filterPest:[],filterPestGroups:[],filterPestSubgroups:[],currentCGFilter:{},currentPGFilter:{},currentPSGFilter:{},currentLetter:"",ajaxBlocker:!1,availableLetters:[]}},computed:{translations:function(){return void 0!==window.snTranslations.pestLibrary&&window.snTranslations.pestLibrary},config:function(){return void 0!==window.snConfig&&window.snConfig},letters:function(){return void 0!==window.snLetters&&window.snLetters}},watch:{search:function(){this.updateLetter(""),this.page=0,this.fetchData(!0,!0)}},mounted:function(){var t=this;F.a.$on("updateFromBar",(function(){t.init()}))},created:function(){this.init()},methods:{init:function(){this.page=0,this.fetchData(!0,!0),this.fetchCropGroupFilterItems(),this.fetchPestGroupFilterItems(),this.fetchPestSubgroupFilterItems()},removeItemFromCurrent:function(t,e){var i=t.indexOf(e);i>-1&&(t.splice(i,1),document.getElementById(e.id).checked=!1,this.page=0),this.init()},showMore:function(){this.page+=1,this.fetchData(!1,!0)},isActive:function(t){return t.toLowerCase()===this.currentLetter},isLetterAvailable:function(t){var e=t.toLowerCase();return this.availableLetters.indexOf(t)>=0||this.availableLetters.indexOf(e)>=0},updateLetter:function(t){var e=t.toLowerCase();(this.availableLetters.indexOf(e)>-1||""===e)&&this.currentLetter!==e&&(this.currentLetter=e,this.page=0,this.fetchData(!1,!0))},updateCGFilter:function(t){this.page=0,this.currentCGFilter=t,this.updateLetter(""),this.fetchData(!0,!0)},updatePGFilter:function(t){this.page=0,this.currentPGFilter=t,this.currentPSGFilter={},this.updateLetter(""),this.fetchData(!0,!0),this.fetchPestSubgroupFilterItems()},updatePSGFilter:function(t){this.page=0,this.currentPSGFilter=t,this.updateLetter(""),this.fetchData(!0,!0)},getPzBarCrops:function(){return Q.a.getPzBarCrops()},fetchCropGroupFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=cropgroup",e+=this.getPzBarCrops(),s.a.get(e).then((function(e){t.filterCropGroups=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},fetchPestGroupFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=pestgroup",e+=this.getPzBarCrops(),s.a.get(e).then((function(e){t.filterPestGroups=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},fetchPestSubgroupFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=pestsubgroup",0!==Object.keys(this.currentPGFilter).length&&(e+="&pestGroupId=".concat(this.currentPGFilter.id)),s.a.get(e).then((function(e){t.filterPestSubgroups=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},fetchData:function(t,e){var i=this;this.ajaxBlocker=!1;var a="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterSnippets?language=").concat(this.config.language,"&stage=").concat(this.config.stage);a+="&resultType=pest",a+="&page=".concat(this.page),a+="&count=".concat(this.showAmount),0!==Object.keys(this.currentCGFilter).length&&(a+="&cropGroupId=".concat(this.currentCGFilter.id)),0!==Object.keys(this.currentPGFilter).length&&(a+="&pestGroupId=".concat(this.currentPGFilter.id)),0!==Object.keys(this.currentPSGFilter).length&&(a+="&pestSubgroupId=".concat(this.currentPSGFilter.id)),this.search.length>0&&(a+="&fullText=".concat(this.search)),""!==this.currentLetter&&e&&(a+="&letter=".concat(this.currentLetter)),s.a.get(a).then((function(e){0===i.page&&(i.productSearchData=[]);var a=JSON.parse(JSON.stringify(e.data));i.productSearchData.content?Object.keys(a.content).forEach((function(t){i.productSearchData.content.push(a.content[t])})):i.productSearchData=a,(i.availableLetters.length<1||t)&&(i.availableLetters=i.productSearchData.letters),i.ajaxBlocker=!0})).catch((function(t){i.errors.push(t)}))}}};var li=function(t){i("QMHL")},ci=Object(g.a)(ri,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container content-module search"},[t.showFilter?i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("form",{staticClass:"search-bar color-theme"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-sm-12 col-md-6 col-lg-3"},[i("label",{attrs:{for:"select3"}},[t._v(t._s(t.translations.cropHeadline))]),t._v(" "),i("VueSelect",{attrs:{options:t.filterCropGroups,selected:t.currentCGFilter.name,placeholder:t.translations.cropLabel},on:{callback:t.updateCGFilter}})],1),t._v(" "),i("div",{staticClass:"col-sm-12 col-md-6 col-lg-3"},[i("label",{attrs:{for:"select4"}},[t._v(t._s(t.translations.pestHeadline))]),t._v(" "),i("VueSelect",{attrs:{options:t.filterPestGroups,selected:t.currentPGFilter.name,placeholder:t.translations.pestLabel},on:{callback:t.updatePGFilter}})],1),t._v(" "),i("div",{staticClass:"col-sm-12 col-md-6 col-lg-3"},[i("label",{attrs:{for:"select3"}},[t._v(t._s(t.translations.pestSubgroupHeadline))]),t._v(" "),i("VueSelect",{attrs:{options:t.filterPestSubgroups,selected:t.currentPSGFilter.name,placeholder:t.translations.pestSubgroupLabel},on:{callback:t.updatePSGFilter}})],1),t._v(" "),i("div",{staticClass:"col-sm-12 col-md-6 col-lg-3"},[i("label",{attrs:{for:"text2"}},[t._v(t._s(t.translations.searchHeadline))]),t._v(" "),i("div",{staticClass:"input-search"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"form-control",attrs:{id:"text2",placeholder:t.translations.searchLabel,type:"text"},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}}),t._v(" "),i("button",{staticClass:"disabled",attrs:{type:"submit"},on:{click:function(t){t.preventDefault()}}})])])])]),t._v(" "),i("ul",{staticClass:"letter-picker",attrs:{"data-item-count":t.letters.length}},[i("li",{class:{active:""==t.currentLetter},on:{click:function(e){return e.preventDefault(),t.updateLetter("")}}},[i("a",{attrs:{title:t.translations.showAllPests,href:"#"}},[t._v(t._s(t.translations.all))])]),t._v(" "),t._l(t.letters,(function(e){return[i("li",{key:e,class:{active:t.isActive(e)}}
1,[t.isLetterAvailable(e)?t._e():i("span",[t._v(t._s(e.toUpperCase()))]),t._v(" "),t.isLetterAvailable(e)?i("a",{attrs:{title:t.translations.showPestsStartingWith+" '"+e.toUpperCase()+"'",href:"#"},on:{click:function(i){return i.preventDefault(),t.updateLetter(e)}}},[t._v("\n              "+t._s(e.toUpperCase())+"\n            ")]):t._e()])]}))],2)])]):t._e(),t._v(" "),i("div",{staticClass:"row teaser teaser-row"},[t._l(t.productSearchData.content,(function(e,a){return[i("div",{key:a,staticClass:"col-md-3 col-sm-6",domProps:{innerHTML:t._s(e["snippet-slider"])}})]})),t._v(" "),i("div",{staticClass:"col-12"},[t.productSearchData.totalElements>t.showAmount*(t.page+1)?i("button",{staticClass:"button button-full-width",on:{click:function(e){return t.showMore()}}},[t._v(t._s(t.translations.showMore))]):t._e(),t._v(" "),t.productSearchData.numberOfElements<1?i("div",{staticClass:"alert alert-light",attrs:{role:"alert"}},[t._v("\n        "+t._s(t.translations.nothingFound)+"\n      ")]):t._e()])],2)])}),[],!1,li,"data-v-2c13cd99",null).exports,ui={components:{Treeselect:ge.a,PzLocalStorage:Y.a},props:{placeholder:{type:String,default:""}},data:function(){return{localCrops:[],multiple:!0,clearable:!1,searchable:!0,openOnClick:!0,clearOnSelect:!0,treeSelectOpened:!1,adjustedTreeOpenDirection:"below"}},computed:{translations:function(){return window.snConfig.translations},config:function(){return window.snConfig.config},snConfigCrops:function(){return window.snConfigCrops.crops}},created:function(){this.extractCrops()},mounted:function(){var t=this;F.a.$on(ne.a.UPDATE_FROM_BAR,(function(e){e===ne.b.UPDATE_CROP&&t.extractCrops()}))},methods:{customLabel:function(t){return"".concat(t.library," - ").concat(t.language)},updateFromBar:function(){this.$emit("localCropsUpdate",this.localCrops)},extractCrops:function(){if(!Y.a.isPzDisabled()&&Y.a.hasPzCrops()){var t=Y.a.extractCropsFromLocalStorage();this.localCrops=t.cropGroupId,this.updateFromBar()}},onTreeOpen:function(){this.treeSelectOpened=!0,this.adjustedTreeOpenDirection=this.$refs.treeSelect.prefferedOpenDirection}
1,onTreeClose:function(){this.treeSelectOpened=!1}}};var di=function(t){i("sVRk")},pi=Object(g.a)(ui,(function(){var t,e=this,i=e.$createElement,a=e._self._c||i;return a("div",{staticClass:"treeselect-wrapper",class:(t={},t["treeselect-open-"+e.adjustedTreeOpenDirection]=e.treeSelectOpened,t)},[a("div",{staticClass:"selectPlaceholder"},[e._v("\n    "+e._s(e.placeholder)+"\n  ")]),e._v(" "),a("treeselect",{ref:"treeSelect",attrs:{"auto-load-root-options":!0,multiple:e.multiple,clearable:e.clearable,searchable:!1,"open-on-click":e.openOnClick,"clear-on-select":e.clearOnSelect,options:e.snConfigCrops,flat:!0,"open-direction":"below",placeholder:""},on:{input:e.updateFromBar,open:e.onTreeOpen,close:e.onTreeClose},model:{value:e.localCrops,callback:function(t){e.localCrops=t},expression:"localCrops"}})],1)}),[],!1,di,"data-v-415d41f1",null).exports,mi={name:"SearchInput",props:{placeholder:{type:String,default:""},selected:{type:String,default:""}},data:function(){return{inputValue:""}},watch:{selected:function(){this.inputValue=this.selected}},methods:{emitSearchInputToBus:function(){this.$emit("search-input",this.inputValue)}}};var hi=function(t){i("PH1H")},fi=Object(g.a)(mi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],staticClass:"form-control",attrs:{id:"text2",placeholder:t.placeholder,type:"text"},domProps:{value:t.inputValue},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.emitSearchInputToBus.apply(null,arguments)},input:function(e){e.target.composing||(t.inputValue=e.target.value)}}}),t._v(" "),i("button",{attrs:{type:"submit"},on:{click:t.emitSearchInputToBus}})])}),[],!1,hi,"data-v-8decbdac",null).exports,gi=i("w7Cn");function vi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function bi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?vi(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):vi(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var wi={name:"EventsOverview",components:{VueSelect:St.a,SearchInput:fi,CropMultiSelection:pi,PzLocalStorage:Y.a,PzSessionStorage:oe.a,StorageType:re,AgrobusEventType:ne.a,AgrobusEventValueLocalStorage:ne.b,AgrobusEventValueSessionStorage:ne.c,Crop:gi.a},props:{hideFilter:{type:Boolean,default:!1},eventTypeFilterParam:{type:String,default:""},cropIdsFilterParam:{type:String,default:""},eventFormIdPrefix:{type:String,default:""},eventSortDesc:{type:Boolean,default:!1}},data:function(){return{isDistanceDropdownDisabled:!0,LOCAL_STORAGE:re.LOCAL_STORAGE,SESSION_STORAGE:re.SESSION_STORAGE,currentCropsFilter:{},currentDateFilter:"",currentEventTypeFilter:"",currentDistanceFilter:"",filter:{},eventTypeFilter:[],cropIdsFilter:[],eventRegistrationsCounts:{}}},computed:bi(bi({},Object(Et.c)({eventsContent:function(t){return t.events.eventsContent},distanceList:function(t){return t.events.distanceList},eventTypeList:function(t){return t.events.eventTypeList},dateList:function(t){return t.events.dateList},cropGroupList:function(t){return t.events.cropGroupList},isLastPage:function(t){return t.events.lastPage},serviceSubscriptions:function(t){return t.forms.serviceSubscriptions},isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.events)&&window.snTranslations.events},eventTypeListFiltered:function(){var t=this,e=this.eventTypeList;return this.eventTypeFilter&&""!==this.eventTypeFilter&&this.eventTypeFilter.length>0&&(e=this.eventTypeList.filter((function(e){return t.eventTypeFilter.includes(e.id)}
1))),e}}),watch:{isLoggedIn:{handler:function(t,e){t&&t!==e&&this.checkSubscription()}},eventsContent:{handler:function(t,e){t&&t!==e&&this.loadEventRegistrationsCounts(this.eventsContent)}}},created:function(){this.cropIdsFilterParam&&""!==this.cropIdsFilterParam&&(this.cropIdsFilter=this.cropIdsFilterParam.split(",")),this.eventTypeFilterParam&&""!==this.eventTypeFilterParam&&(this.eventTypeFilter=this.eventTypeFilterParam.split(",")),Y.a.isPersonalizedWithAddress()&&this.enableLocation(),this.init()},mounted:function(){var t=this;F.a.$on(ne.a.SEARCH_INPUT,(function(e){t.inputValue=e,t.search()})),F.a.$on(ne.a.UPDATE_FROM_BAR,(function(e){e!==ne.b.UPDATE_TOGGLE&&e!==ne.b.UPDATE_ADDRESS||(Y.a.isPersonalizedWithAddress()?t.enableLocation():t.disableLocation())})),F.a.$on(ne.a.REMOVE_CROP,(function(e){t.deleteCropOption(e)})),this.checkSubscription()},methods:{init:function(){this.getCropGroup(),this.getEventsFilterData()},handleSearch:function(t){F.a.$emit("searchInput",t)},enableLocation:function(){var t={};Y.a.hasPzAddress()&&(t=Y.a.extractCoordinatesFromStorage()),this.isDistanceDropdownDisabled=!1,this.$store.dispatch("events/enableOrDisableLocation",t)},disableLocation:function(){this.isDistanceDropdownDisabled=!0,this.$store.dispatch("events/enableOrDisableLocation",{latitude:null,longitude:null})},updateCropsFilter:function(t){this.currentCropsFilter=t,Object.keys(t).length?(o.default.set(this.filter,"crops",t),this.getEventsFilterData()):delete this.filter.crops},updateDateFilter:function(t){this.currentDateFilter=t.name,this.filter.date=t,this.getEventsFilterData()},updateDistanceFilter:function(t){this.currentDistanceFilter=t.name,this.filter.distance=t,this.getEventsFilterData()},updateEventTypeFilter:function(t){this.currentEventTypeFilter=t.name,this.filter.eventType=t,this.getEventsFilterData()},deleteFilterOption:function(t){switch(t){case"eventType":this.currentEventTypeFilter="";break;case"date":this.currentDateFilter="";break;case"distance":this.currentDistanceFilter="";break;default:return}delete this.filter[t],this.getEventsFilterData()},deleteCropOption:function(t){if(this.filter){var e=this.filter.crops.indexOf(t);this.filter.crops.splice(e,1),this.getEventsFilterData()}},getEventsFilterData:function(){var t,e,i;Object.prototype.hasOwnProperty.call(this.filter,"distance")&&Object.prototype.hasOwnProperty.call(this.filter.distance,"id")&&(t=this.filter.distance.id),Object.prototype.hasOwnProperty.call(this.filter,"date")&&Object.prototype.hasOwnProperty.call(this.filter.date,"id")&&(e=this.filter.date.id),Object.prototype.hasOwnProperty.call(this.filter,"eventType")&&Object.prototype.hasOwnProperty.call(this.filter.eventType,"id")&&(i=this.filter.eventType.id);var a=[];Object.prototype.hasOwnProperty.call(this.filter,"crops")&&(a=this.filter.crops);var s=this.eventTypeFilter,n=this.cropIdsFilter,o=this.eventSortDesc;this.$store.dispatch("events/fetchEventsByParams",{distance:t,date:e,eventType:i,crops:a,eventTypeFilter:s,cropIdsFilter:n,eventSortDesc:o})},getCropGroup:function(){this.$store.dispatch("events/fetchCropGroupFilterItems")},showMore:function(){this.$store.dispatch("events/loadMoreEvents")},search:function(){var t=this.inputValue;this.$store.dispatch("events/search",{inputValue:t})},isSubscribedTo:function(t){return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t&&"OK"===e.status}))},checkSubscription:function(){this.isLoggedIn&&this.$store.dispatch("forms/getSubscriptions")},loadEventRegistrationsCounts:function(t){var e=this;if(t&&t.length>0){var i=[];t.forEach((function(t){t.eventId&&(Object.prototype.hasOwnProperty.call(e.eventRegistrationsCounts,e.eventFormIdPrefix+t.eventId)||i.push(e.eventFormIdPrefix+t.eventId))})),i&&i.length>0&&(i.forEach((function(t){e.$set(e.eventRegistrationsCounts,t,{maxCount:-1})})),this.$store.dispatch("forms/getEventRegistrationsCounts",{formIdentifiers:i.join(",")}).then((function(t){t&&t.forEach((function(t){e.$set(e.eventRegistrationsCounts,t.id,t)}))})))}},hasLimitInfo:function(t){return this.eventRegistrationsCounts&&Object.prototype.hasOwnProperty.call(this.eventRegistrationsCounts,t)&&this.eventRegistrationsCounts[t].maxCount>0},isLimitReached:function(t){return this.eventRegistrationsCounts[t].limitReached},getLimitInfo:function(t){var e="";if(this.eventRegistrationsCounts[t].limitReached)e=this.translations.fullyBooked;else{var i=this.eventRegistrationsCounts[t].count,a=this.eventRegistrationsCounts[t].maxCount;e="".concat(a-i,"/").concat(a," ").concat(this.translations.placesAvailable)}return e}}};var yi=function(t){i("0Pi9")},Ci=Object(g.a)(wi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"events"},[t.hideFilter?t._e():i("div",{staticClass:"container content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("form",{staticClass:"color-theme",on:{submit:function(t){t.preventDefault()}}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-xs-12 col-sm-4 col-md-2"},[i("label",[t._v(t._s(t.translations.eventType))]),t._v(" "),i("VueSelect",{attrs:{options:t.eventTypeListFiltered,selected:t.currentEventTypeFilter},on:{callback:t.updateEventTypeFilter}})],1),t._v(" "),i("div",{staticClass:"col-xs-12 col-sm-4 col-md-2"},[i("label",[t._v(t._s(t.translations.distance)+" ")]),t._v(" "),i("VueSelect",{attrs:{options:t.distanceList,"is-disabled":t.isDistanceDropdownDisabled,selected:t.currentDistanceFilter},on:{callback:t.updateDistanceFilter}})],1),t._v(" "),i("div",{staticClass:"col-xs-12 col-sm-4 col-md-2"},[i("label",[t._v(t._s(t.translations.date))]),t._v(" "),i("VueSelect",{attrs:{options:t.dateList,selected:t.currentDateFilter},on:{callback:t.updateDateFilter}})],1),t._v(" "),i("div",{staticClass:"col-xs-12 col-sm-4 col-md-2"},[i("label",[t._v(t._s(t.translations.crop))]),t._v(" "),i("crop-multi-selection",{attrs:{placeholder:t.translations.crop},on:{localCropsUpdate:t.updateCropsFilter}})],1),t._v(" "),i("div",{staticClass:"col-xs-12 col-sm-6 col-md-3"},[i("label",{attrs:{for:"text2"}},[t._v(t._s(t.translations.search))]),t._v(" "),i("div",{staticClass:"input-search",on:{submit:function(t){t.preventDefault()}}},[i("search-input",{attrs:{id:"text2",placeholder:t.translations.search},on:{"search-input":t.handleSearch}}
1)],1)])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:Object.keys(t.filter).length,expression:"Object.keys(filter).length"}],staticClass:"selectedTagsArray col-md-12"},[i("p",{staticClass:"selected-tags-tittle"},[t._v(t._s(t.translations.selectedOptions))]),t._v(" "),i("div",{staticClass:"filters-tag-row"},[t._l(t.filter,(function(e,a){return["crops"===a?t._l(e,(function(e,a){return i("div",{key:a,staticClass:"filter-tag",on:{click:function(i){return t.deleteCropOption(e)}}},[i("Crop",{attrs:{data:e}})],1)})):[i("div",{key:a,staticClass:"filter-tag",on:{click:function(e){return t.deleteFilterOption(a)}}},[i("span",{staticClass:"button button-close"},[t._v(t._s(e.name))])])]]}))],2)])])]),t._v(" "),i("div",{staticClass:"container content-module"},[i("div",{staticClass:"row teaser teaser-row"},t._l(t.eventsContent,(function(e,a){return i("div",{key:a,staticClass:"col-md-3 col-sm-6"},[t.hasLimitInfo(t.eventFormIdPrefix+e.eventId)?i("div",{staticClass:"limit-info",class:[t.isLimitReached(t.eventFormIdPrefix+e.eventId)?"limit-reached":"",e.image?"":"no-image"]},[t._v("\n          "+t._s(t.getLimitInfo(t.eventFormIdPrefix+e.eventId))+"\n        ")]):t._e(),t._v(" "),t.isLoggedIn&&t.serviceSubscriptions&&t.isSubscribedTo(t.eventFormIdPrefix+e.eventId)?i("div",{staticClass:"event-registered",class:{"no-image":!e.image}},[t._v(t._s(t.translations.registered))]):t._e(),t._v(" "),i("div",{domProps:{innerHTML:t._s(e.snippet)}})])})),0),t._v(" "),t.eventsContent&&0===t.eventsContent.length&&t.translations.noResults?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4 text-center"},[t._v("\n        "+t._s(t.translations.noResults)+"\n      ")])]):t._e()]),t._v(" "),i("button",{directives:[{name:"show",rawName:"v-show",value:!t.isLastPage,expression:"!isLastPage"}],staticClass:"button button-full-width",on:{click:t.showMore}},[t._v("\n    "+t._s(t.translations.showMore)+"\n  ")])])}),[],!1,yi,"data-v-4c04feb4",null).exports;function _i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var Si={name:"NewsOverview",components:{PzLocalStorage:Y.a,PzSessionStorage:oe.a,AgrobusEventType:ne.a,AgrobusEventValueLocalStorage:ne.b,AgrobusEventValueSessionStorage:ne.c},props:{newsCategoryId:{type:String,default:""},count:{type:String,default:""},hasLocalization:{type:String,default:""},newsCategoryIdList:{type:String,default:""},usePersonalize:{type:Boolean,default:!1}},data:function(){return{isLocalizable:!1,isPreferenceBarActive:!1,point:{},selectedCrops:[],selectedNewsCategories:[],selectedIndication:[],localCrops:[],showInputInstructions:!0,id:null}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?_i(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):_i(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.news)&&window.snTranslations.news},translationsPz:function(){return!(!window.snConfigPz||void 0===window.snConfigPz.translationsPZ)&&window.snConfigPz.translationsPZ}},Object(Et.c)({highlightNews:function(t){return t.news.highlightNews},regularNews:function(t){return t.news.regularNews},totalNewsCount:function(t){return t.news.totalNewsCount},isLastPage:function(t){return t.news.lastPage},page:function(t){return t.news.page},filterCrop:function(t){return t.news.filterCrop},filterIndication:function(t){return t.news.filterIndication},filterNewsCategory:function(t){return t.news.filterNewsCategory}})),watch:{filterCrop:function(t,e){Q.a.areArraysEqual(t,e)||this.filter()},filterIndication:function(){this.filter()},filterNewsCategory:function(){this.filter(this.selectedCrops)},highlightNews:function(){var t=this;this.$nextTick((function(){window.jQuery("#".concat(t.id," .teaser-content p")).dotdotdot({watch:!0})}))},regularNews:function(){var t=this;this.$nextTick((function(){window.jQuery("#".concat(t.id," .teaser-content p")).dotdotdot({watch:!0})}))}},created:function(){this.id="news-overview-".concat(this._uid),this.configureView(),this.init()},mounted:function(){var t=this;F.a.$on(ne.a.UPDATE_FROM_BAR,(function(e){t.isLocalizable&&e===ne.b.UPDATE_ADDRESS&&t.resetLocalization(),e===ne.b.UPDATE_CROP&&t.filterByCropsFromLocalStorage(),e===ne.c.UPDATE_ADDRESS&&t.processStorage(oe.a)}))},methods:{configureView:function(){this.isLocalizable="true"===this.hasLocalization},init:function(){this.usePersonalize?this.processStorage(Y.a):this.handleNews()},processStorage:function(t){if(this.point={},t.hasPzAddress()&&this.isLocalizable&&this.usePersonalize&&(this.point=t.extractCoordinatesFromStorage(),this.showInputInstru
1ctions=!1),t.hasPzCrops()){var e=t.extractCropsFromStorage();this.selectedCrops=e.cropGroupId}this.handleNews()},handleNews:function(){this.isLocalizable?Y.a.isPersonalized()&&Y.a.isPersonalizedWithAddress()&&this.getNews():this.getNews()},getNews:function(){var t={},e=[],i=[],a=[];this.point&&(t=this.point,this.showInputInstructions=!1),this.selectedCrops&&(e=this.selectedCrops),this.selectedNewsCategories&&(i=this.selectedNewsCategories),this.selectedIndication&&(a=this.selectedIndication),this.$store.dispatch("news/fetchNewsByPoint",{point:t,crops:e,newsCategory:i,indicationId:a,newsCategoryId:this.newsCategoryIdList?this.newsCategoryIdList:this.newsCategoryId,count:this.count})},showMore:function(){this.$store.dispatch("news/loadMoreNews")},resetLocalization:function(){this.isPreferenceBarActive=Y.a.isPersonalized(),this.isPreferenceBarActive&&Y.a.isPersonalizedWithAddress()?this.processStorage(Y.a):(this.$store.dispatch("news/reset"),this.processStorage(Y.a),this.showInputInstructions=!0)},filterByCropsFromLocalStorage:function(){var t=localStorage.getItem("pzCrops");t=JSON.parse(t),this.selectedCrops=t.crops,this.handleNews()},filter:function(t){this.selectedCrops=t||this.filterCrop,this.selectedIndication=this.filterIndication,this.selectedNewsCategories=this.filterNewsCategory,this.getNews()}}};var Ti=function(t){i("fgYm")},Pi=Object(g.a)(Si,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container content-module search",attrs:{id:t.id}},[t.isLocalizable&&!t.showInputInstructions||!t.isLocalizable?i("h2",[t._v(t._s(t.totalNewsCount)+" "+t._s(t.translations.newsFound))]):t._e(),t._v(" "),t.isLocalizable&&t.showInputInstructions?i("h2",[t._v(" "+t._s(t.translations.inputLocation))]):t._e(),t._v(" "),t.highlightNews.length>0?i("div",{staticClass:"row teaser teaser-row"},t._l(t.highlightNews,(function(e,a){return i("div",{key:a,staticClass:"col-sm-6",domProps:{innerHTML:t._s(e)}})})),0):t._e(),t._v(" "),i("div",{staticClass:"teaser-list",class:{"has-border":t.regularNews.length}},t._l(t.regularNews,(function(e,a){return i("div",{key:a,staticClass:"row teaser-list-item",domProps:{innerHTML:t._s(e)}})})),0),t._v(" "),t.totalNewsCount>0?i("button",{directives:[{name:"show",rawName:"v-show",value:!t.isLastPage,expression:"!isLastPage"}],staticClass:"button button-full-width",on:{click:t.showMore}},[t._v("\n    "+t._s(t.translations.showMore)+"\n  ")]):t._e()])}),[],!1,Ti,"data-v-5b2ffdef",null).exports,Fi=i("cDf5"),xi=i.n(Fi),Oi={name:"DynamicSelectMulti",components:{Treeselect:ge.a},props:{placeholder:{type:String,default:""},isDisabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},list:{type:[Object,Array],default:function(){}},prefilled:{type:[Array],default:function(){}}},data:function(){return{selectedList:void 0,searchable:!0,openOnClick:!0,clearOnSelect:!0,treeSelectOpened:!1,adjustedTreeOpenDirection:"below"}},computed:{translations:function(){return window.snConfig.translations},config:function(){return window.snConfig.config}},watch:{selectedList:{handler:function(t,e){("string"==typeof t&&xi()(t)===xi()(e)&&t!==e||!Q.a.areArraysEqual(t,e)&&xi()(t)===xi()(e)||!e&&t.length)&&this.$emit("change",t)}},prefilled:{handler:function(t){t&&t.length&&(this.selectedList=this.prefilled)}}},created:function(){this.prefilled&&this.prefilled.length&&-1===this.prefilled.indexOf(void 0)&&(this.selectedList=this.prefilled)},methods:{clear:function(){this.selectedList=void 0,this.$emit("change",this.selectedList)},onTreeOpen:function(){this.treeSelectOpened=!0,this.adjustedTreeOpenDirection=this.$refs.treeSelect.prefferedOpenDirection}
1,onTreeClose:function(){this.treeSelectOpened=!1}}};var ki=function(t){i("glRN")},Li=Object(g.a)(Oi,(function(){var t,e=this,i=e.$createElement,a=e._self._c||i;return e.list&&e.list.length?a("div",{staticClass:"treeselect-wrapper",class:(t={},t["treeselect-open-"+e.adjustedTreeOpenDirection]=e.treeSelectOpened,t)},[e.multiple?a("div",{staticClass:"selectPlaceholder"},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),a("treeselect",{ref:"treeSelect",attrs:{"auto-load-root-options":!1,multiple:e.multiple,clearable:e.clearable,searchable:!1,"open-on-click":e.openOnClick,"clear-on-select":e.clearOnSelect,options:e.list,flat:!0,disabled:e.isDisabled,"open-direction":"below",placeholder:e.placeholder},on:{open:e.onTreeOpen,close:e.onTreeClose},model:{value:e.selectedList,callback:function(t){e.selectedList=t},expression:"selectedList"}}),e._v(" "),e.selectedList?a("span",{staticClass:"iconClose",on:{click:function(t){return e.clear()}}}):e._e()],1):e._e()}),[],!1,ki,"data-v-55afa93c",null).exports;function Ii(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ei(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ii(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ii(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Vi={name:"NewsOverviewFilter",components:{DynamicSelectMulti:Li},data:function(){return{newsCategories:[]}},computed:Ei(Ei({},Object(Et.c)({userId:function(t){return t.forms.userId}})),{},{translations:function(){return window.snTranslations},snConfigNewsCategories:function(){return window.snConfigNewsCategories.sort((function(t,e){return t.label.toLowerCase()-e.label.toLowerCase()}))}}),watch:{newsCategories:function(){this.$store.commit("news/setFilterNewsCategory",this.newsCategories)},userId:{handler:function(t,e){t&&t!==e&&this.retrieveData()}}},mounted:function(){this.retrieveData()},methods:{retrieveData:function(){var t=this;this.userId&&this.$store.dispatch("forms/getNewsCategories").then((function(e){t.newsCategories=e||[]}))}}};var Ai=function(t){i("10df")},Di=Object(g.a)(Vi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"preference-bar theme pzBarFrame"},[i("div",{staticClass:"container-fluid"},[i("div",{staticClass:"row d-flex align-items-start"},[i("div",{staticClass:"filter-crops col-12 col-sm-6"},[i("div",{staticClass:"label"},[t._v(t._s(t.translations.filter.news.category.label))]),t._v(" "),i("div",{staticClass:"input-group relativer"},[i("DynamicSelectMulti",{attrs:{placeholder:t.translations.filter.news.category.placeholder,list:t.snConfigNewsCategories,multiple:!1},on:{change:function(e){return t.newsCategories=e}}})],1)])])])])}),[],!1,Ai,"data-v-447a3263",null).exports;function Mi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var Ri={name:"NewsCampaignFilter",components:{Crop:gi.a,DynamicSelectMulti:Li},data:function(){return{error:"",crops:[],indications:[],urlCrops:[],urlIndications:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Mi(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Mi(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({translations:function(){return window.snTranslations},translationsPz:function(){return!(!window.snConfigPz||void 0===window.snConfigPz.translationsPZ)&&window.snConfigPz.translationsPZ},snConfigCrops:function(){return window.snConfigCrops.crops},snConfigIndications:function(){return void 0!==window.snConfigIndications&&window.snConfigIndications.sort((function(t,e){return t.label.toLowerCase()-e.label.toLowerCase()}))}},Object(Et.c)({structureCrop:function(t){return t.search.structureCrop}})),watch:{crops:function(){this.$store.commit("news/setFilterCrop",this.crops)},indications:function(){this.$store.commit("news/setFilterIndication",this.indications)}},created:function(){this.handleInitialUrlParams()},methods:{handleInitialUrlParams:function(){var t=this,e=this.$route.query.indication,i=this.$route.query.crops;if(e&&(this.urlIndications=[].concat(e)),i){var a=[];a="string"==typeof i?i.split(","):[].concat(i);var s=[],n=[],o=[];a.forEach((function(e){t.isGroup(e)?s.push(e):t.isSubgroup(e)?n.push(e):o.push(e)})),s.length&&(this.urlCrops=s),(n.length||o.length)&&this.$store.dispatch("search/fetchCropStructure",{cropSubgroupId:n||void 0,cropId:o||void 0}).then((function(e){var i=e.cropgroups.map((function(t){return t.basf_code})),a=s.concat(i);t.urlCrops=a}))}},isGroup:function(t){return new RegExp("^[Mm][Gg][0-9]*$").test(t)},isSubgroup:function(t){return new RegExp("^[Ss][Gg][0-9]*$").test(t)},removeCrops:function(t){this.crops&&this.crops.length&&t&&(this.crops=this.remove(this.crops,t),this.urlCrops=this.crops)},remove:function(t,e){return t.filter((function(t){return t!==e}))}}};var $i=function(t){i("OQyB")},Ni=Object(g.a)(Ri,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"preference-bar theme pzBarFrame"},[i("div",{staticClass:"container-fluid"},[i("div",{staticClass:"row d-flex align-items-start"},[i("div",{staticClass:"filter-crops col-12 col-sm-6 mb-3 mb-sm-0"},[i("div",{staticClass:"label"},[t._v(t._s(t.translationsPz.cropLabel))]),t._v(" "),i("div",{staticClass:"input-group relativer"},[i("DynamicSelectMulti",{attrs:{prefilled:t.urlCrops,placeholder:t.translationsPz.chCrop,list:t.snConfigCrops},on:{change:function(e){return t.crops=e}}})],1)]),t._v(" "),i("div",{staticClass:"filter-crops col-12 col-sm-6 mb-3 mb-sm-0"},[i("div",{staticClass:"label"},[t._v(t._s(t.translations.filter.news.indication.label))]),t._v(" "),i("div",{staticClass:"input-group relativer"},[i("DynamicSelectMulti",{attrs:{prefilled:t.urlIndications,placeholder:t.translations.filter.news.indication.placeholder,list:t.snConfigIndications,multiple:!1},on:{change:function(e){return t.indications=e}}})],1)])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.crops.length,expression:"crops.length"}],staticClass:"row cropSelector theme"},[i("div",{staticClass:"col-12"},[i("div",t._l(t.crops,(function(e,a){return i("Crop",{key:a,attrs:{data:e,"from-all":!0},on:{clicked:t.removeCrops}})})),1)])])])])}),[],!1,$i,"data-v-10ad909e",null).exports,ji={name:"QuickSearch",components:{VueSelect:St.a},props:{showCG:{type:String,default:"true"},showCSG:{type:String,default:"true"},showC:{type:String,default:"true"},showPG:{type:String,default:"true"},showPSG:{type:String,default:"true"},showP:{type:String,default:"true"},showI:{type:String,default:"false"},color:{type:String,default:""},headline:{type:String,default:""},subheadline:{type:String,default:""}},data:function(){return{filterCropGroups:[],currentCGFilter:{},filterCropSubGroups:[],currentCSGFilter:{},filterCrops:[],currentCFilter:{},filterPestGroups:[],currentPGFilter:{},filterPestSubGroups:[],currentPSGFilter:{},filterPests:[],currentPFilter:{},filterIndication:[],currentIFilter:{},filterProducts:[],errors:[],isOpen:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.productQuickSearch)&&window.snTranslations.productQuickSearch},config:function(){return void 0!==window.snConfig&&window.snConfig}}
1,mounted:function(){var t=this;document.addEventListener("click",this.autoClose,!1),F.a.$on("updateFromBar",(function(e){"updateToogle"!==e&&"updateCrop"!==e||t.init()}))},destroyed:function(){document.removeEventListener("click",this.autoClose,!1)},created:function(){this.init()},methods:{init:function(){"true"===this.showCG&&this.fetchCropGroupFilterItems(),"true"===this.showCSG&&this.fetchCropSubGroupFilterItems(),"true"===this.showC&&this.fetchCropFilterItems(),"true"===this.showPG&&this.fetchPestGroupFilterItems(),"true"===this.showPSG&&this.fetchPestSubGroupFilterItems(),"true"===this.showP&&this.fetchPestFilterItems(),"true"===this.showI&&this.fetchIndicationFilterItems(),this.fetchProductFilterItems()},autoClose:function(t){this.$el.contains(t.target)||(this.isOpen=!1)},getPzBarCrops:function(){return Q.a.getPzBarCrops()},fetchCropGroupFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=cropgroup&allowEmptyProductResults=false",e+=this.getPzBarCrops(),0!==Object.keys(this.currentCSGFilter).length&&(e+="&cropSubgroupId=".concat(this.currentCSGFilter.id)),0!==Object.keys(this.currentCFilter).length&&(e+="&cropid=".concat(this.currentCFilter.id)),s.a.get(e).then((function(e){t.filterCropGroups=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updateCGFilter:function(t){this.currentCGFilter=t,this.currentCSGFilter={},this.currentCFilter={},this.currentIFilter={},this.init()},fetchCropSubGroupFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=cropsubgroup&allowEmptyProductResults=false",0===Object.keys(this.currentCGFilter).length?e+=this.getPzBarCrops():e+="&cropGroupId=".concat(this.currentCGFilter.id),0!==Object.keys(this.currentCFilter).length&&(e+="&cropid=".concat(this.currentCFilter.id)),s.a.get(e).then((function(e){t.filterCropSubGroups=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updateCSGFilter:function(t){this.currentCSGFilter=t,this.currentCFilter={},this.currentIFilter={},this.init()},fetchCropFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=cropid&allowEmptyProductResults=false",0===Object.keys(this.currentCGFilter).length?e+=this.getPzBarCrops():e+="&cropGroupId=".concat(this.currentCGFilter.id),0!==Object.keys(this.currentCSGFilter).length&&(e+="&cropSubgroupId=".concat(this.currentCSGFilter.id)),s.a.get(e).then((function(e){t.filterCrops=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updateCFilter:function(t){this.currentCFilter=t,this.currentIFilter={},this.init()},fetchPestGroupFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=pestgroup&allowEmptyProductResults=false",0!==Object.keys(this.currentPSGFilter).length&&(e+="&pestSubgroupId=".concat(this.currentPSGFilter.id)),0!==Object.keys(this.currentPFilter).length&&(e+="&pest=".concat(this.currentPFilter.id)),s.a.get(e).then((function(e){t.filterPestGroups=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updatePGFilter:function(t){this.currentPGFilter=t,this.currentPSGFilter={},this.currentPFilter={},this.currentIFilter={},this.init()},fetchPestSubGroupFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=pestsubgroup&allowEmptyProductResults=false",0!==Object.keys(this.currentPGFilter).length&&(e+="&pestGroupId=".concat(this.currentPGFilter.id)),0!==Object.keys(this.currentPFilter).length&&(e+="&pest=".concat(this.currentPFilter.id)),s.a.get(e).then((function(e){t.filterPestSubGroups=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updatePSGFilter:function(t){this.currentPSGFilter=t,this.currentPFilter={},this.currentIFilter={},this.init()},fetchPestFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=pest&allowEmptyProductResults=false",0!==Object.keys(this.currentPGFilter).length&&(e+="&pestGroupId=".concat(this.currentPGFilter.id)),0!==Object.keys(this.currentPSGFilter).length&&(e+="&pestSubgroupId=".concat(this.currentPSGFilter.id)),s.a.get(e).then((function(e){t.filterPests=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updatePFilter:function(t){this.currentPFilter=t,this.currentIFilter={},this.init()},fetchIndicationFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=indication",0===Object.keys(this.currentCGFilter).length?e+=this.getPzBarCrops():e+="&cropGroupId=".concat(this.currentCGFilter.id),0!==Object.keys(this.currentCSGFilter).length&&(e+="&cropSubgroupId=".concat(this.currentCSGFilter.id)),0!==Object.keys(this.currentPGFilter).length&&(e+="&pestGroupId=".concat(this.currentPGFilter.id)),0!==Object.keys(this.currentPSGFilter).length&&(e+="&pestSubgroupId=".concat(this.currentPSGFilter.id)),s.a.get(e).then((function(e){t.filterIndication=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updateIFilter:function(t){this.currentIFilter=t,this.init()},fetchProductFilterItems:function(){var t=this,e="".concat(this.config.apiUrl,"/api/dynamiccontent/getPersonalizeFilterElements?language=").concat(this.config.language,"&stage=").concat(this.config.stage);e+="&filterElementType=product",0===Object.keys(this.currentCGFilter).length?e+=this.getPzBarCrops():e+="&cropGroupId=".concat(this.currentCGFilter.id),0!==Object.keys(this.currentCSGFilter).length&&(e+="&cropSubgroupId=".concat(this.currentCSGFilter.id)),0!==Object.keys(this.currentCFilter).length&&(e+="&cropid=".concat(this.currentCFilter.id)),0!==Object.keys(this.currentPGFilter).length&&(e+="&pestGroupId=".concat(this.currentPGFilter.id)),0!==Object.keys(this.currentPSGFilter).length&&(e+="&pestSubgroupId=".concat(this.currentPSGFilter.id)),0!==Object.keys(this.currentPFilter).length&&(e+="&pest=".concat(this.currentPFilter.id)),0!==Object.keys(this.currentIFilter).length&&(e+="&indicationId=".concat(encodeURIComponent(this.currentIFilter.id))),s.a.get(e).then((function(e){t.filterProducts=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updateProductFilter:function(t){"live"===this.config.stage&&this.triggerTealium(t.name),window.location.href=t.url},triggerTealium:function(t){"undefined"!=typeof utag&&utag.link({event_value:"product_selected_".concat(t),event_type:"action",event_category:"content_interaction",event_action:"click_option"})}}};var zi=function(t){i("offD")},Bi=Object(g.a)(ji,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"toggle-content-comp"},[i("div",{staticClass:"toggle-content",class:{open:t.isOpen}},[i("div",{staticClass:"content-button-area",on:{click:function(e){t.isOpen=!t.isOpen}}},[i("div",{staticClass:"content-button"},[i("i",{staticClass:"icons material-symbols-sharp align-top mr-2",attrs:{"aria-hidden":"true"}},[t._v("search")]),t._v(" "),i("span",{staticClass:"headline"},[t._v(t._s(t.headline))])])]),t._v(" "),i("div",{staticClass:"content-area"},[t._v("\n      "+t._s(t.subheadline)+"\n\n      "),i("div",{staticClass:"dynamic-match-height mt-3"},[i("form",{staticClass:"quick-search p-0 fl-select"},["true"==t.showCG?i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterCropGroups.length}},[i("VueSelect",{attrs:{options:t.filterCropGroups,selected:t.currentCGFilter.name,placeholder:t.translations.cropGroup+" ("+t.filterCropGroups.length+")","is-disabled":!t.filterCropGroups.length},on:{callback:t.updateCGFilter}})],1):t._e(),t._v(" "),"true"==t.showCSG?i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterCropSubGroups.length}},[i("VueSelect",{attrs:{options:t.filterCropSubGroups,selected:t.currentCSGFilter.name,placeholder:t.translations.cropSubGroup+" ("+t.filterCropSubGroups.length+")","is-disabled":!t.filterCropSubGroups.length},on:{callback:t.updateCSGFilter}})],1):t._e(),t._v(" "),"true"==t.showC?i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterCrops.length}},[i("VueSelect",{attrs:{options:t.filterCrops,selected:t.currentCFilter.name,placeholder:t.translations.crop+" ("+t.filterCrops.length+")","is-disabled":!t.filterCrops.length},on:{callback:t.updateCFilter}})],1):t._e(),t._v(" "),"true"==t.showPG?i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterPestGroups.length}},[i("VueSelect",{attrs:{options:t.filterPestGroups,selected:t.currentPGFilter.name,placeholder:t.translations.pestGroup+" ("+t.filterPestGroups.length+")","is-disabled":!t.filterPestGroups.length},on:{callback:t.updatePGFilter}})],1):t._e(),t._v(" "),"true"==t.showPSG?i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterPestSubGroups.length}},[i("VueSelect",{attrs:{options:t.filterPestSubGroups,selected:t.currentPSGFilter.name,placeholder:t.translations.pestSubGroup+" ("+t.filterPestSubGroups.length+")","is-disabled":!t.filterPestSubGroups.length},on:{callback:t.updatePSGFilter}})],1):t._e(),t._v(" "),"true"==t.showP?i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterPests.length}},[i("VueSelect",{attrs:{options:t.filterPests,selected:t.currentPFilter.name,placeholder:t.translations.pest+" ("+t.filterPests.length+")","is-disabled":!t.filterPests.length},on:{callback:t.updatePFilter}})],1):t._e(),t._v(" "),"true"==t.showI?i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterIndication.length}},[i("VueSelect",{attrs:{options:t.filterIndication,selected:t.currentIFilter.name,placeholder:t.translations.indication+" ("+t.filterIndication.length+")","is-disabled":!t.filterIndication.length},on:{callback:t.updateIFilter}})],1):t._e(),t._v(" "),i("div",{staticClass:"styled-select-wrapper",class:{disabled:!t.filterProducts.length}},[i("VueSelect",{attrs:{placeholder:t.translations.product+" ("+t.filterProducts.length+")","is-disabled":!t.filterProducts.length,options:t.filterProducts,selected:""},on:{callback:t.updateProductFilter}})],1)])])])])])}
1),[],!1,zi,"data-v-79eb5025",null).exports,qi={name:"GeneralSearch",components:{router:i("jE9Z").a,Loader:Qt.a},props:{dateFormat:{type:String,default:""}},data:function(){return{searchTerm:"",results:[],defaultShowAmount:12,showAmount:0,page:0,totalElements:0,loadingError:!1,errorAtLeastThreeCharacters:!1,showLoader:!1,filterTypes:[],typeProductsCount:-1,typeNewsCount:-1,typePagesCount:-1,dateTimeFormat:"",suggest:"",isSuggestSearch:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.generalSearch)&&window.snTranslations.generalSearch},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig},searchConfig:function(){return void 0!==window.searchConfig&&window.searchConfig},isLoaderVisible:function(){return this.showLoader&&!this.loadingError},functionHelper:function(){return Q.a}},created:function(){var t=this;this.dateTimeFormat=this.dateFormat,""===this.dateTimeFormat&&(this.dateTimeFormat="DD.MM.YYYY"),this.dateTimeFormat=this.dateTimeFormat.toUpperCase();var e=this.findGetParameter("searchTerm");if(e&&""!==e){this.searchTerm=e;var i=this.findGetParameter("searchTypes");i&&""!==i&&i.split(",").forEach((function(e){t.filterTypes.push(e)}))}this.searchTerm&&this.searchTerm.length>2&&this.processForm(!1)},methods:{fetchResults:function(){var t=this;if(this.searchTerm&&""!==this.searchTerm){var e="".concat(this.config.apiUrl,"/api/search/search?lang=").concat(this.config.language,"&text=").concat(encodeURIComponent(this.searchTerm),"&types=").concat(this.filterTypes.join(","),"&page=").concat(this.page,"&count=").concat(this.defaultShowAmount," "),i=setTimeout((function(){t.showLoader=!0}),1e3);s.a.get(e).then((function(e){var a=JSON.parse(JSON.stringify(e.data));t.results&&t.results.highlighted&&a&&a.highlighted?t.results.highlighted=t.results.highlighted.concat(a.highlighted):(t.results=a,t.totalElements=a.totalElements),t.typeProductsCount=0,t.typeNewsCount=0,t.typePagesCount=0,a.typesCount&&(a.typesCount.product&&(t.typeProductsCount=a.typesCount.product),a.typesCount.news&&(t.typeNewsCount=a.typesCount.news),a.typesCount["no-type"]&&(t.typePagesCount=a.typesCount["no-type"])),a.suggest&&(t.suggest=a.suggest),a.isSuggestSearch&&(t.isSuggestSearch=a.isSuggestSearch),t.showLoader=!1,clearTimeout(i),"undefined"!=typeof utag&&utag.link({event_category:"internal_search_result",event_action:"display",event_type:"action",event_value:t.searchTerm,search_term:t.searchTerm,search_results:t.totalElements,search_page_consulted:t.page+1})})).catch((function(){t.loadingError=!0,clearTimeout(i)}))}},showMore:function(){this.showAmount+=this.defaultShowAmount,this.page+=1,this.fetchResults()},processForm:function(t){this.searchTerm.length>2?(this.errorAtLeastThreeCharacters=!1,this.loadingError=!1,this.results=[],t&&(this.filterTypes=[]),this.page=0,this.showAmount=this.defaultShowAmount,this.totalElements=0,this.suggest="",this.isSuggestSearch=!1,this.fetchResults()):(this.errorAtLeastThreeCharacters=!0,this.results=[],t&&(this.filterTypes=[]),this.totalElements=0,this.suggest="",this.isSuggestSearch=!1,this.typeProductsCount=-1,this.typeNewsCount=-1,this.typePagesCount=-1)},selectType:function(t,e){e>0&&(-1===this.filterTypes.indexOf(t)?(this.filterTypes=[],this.filterTypes.push(t)):this.filterTypes=[],this.processForm(!1))},findGetParameter:function(t){var e=null;if(window.location.search&&""!==window.location.search)for(var i=window.location.search.substr(1).split("&"),a=[],s=0;s<i.length;s+=1)if((a=i[s].split("="))[0]===t){var n=a[1];n&&(n=n.replace(/\+/g,"%20")),e=decodeURIComponent(n)}return e},getResultCategoryAndAdditionalText:function(t){var e="";if(t&&t.entity){var i="no-type";t.entity.resultType&&(i=t.entity.resultType);var a=this.translations.pageSingular;"product"===i&&(a=this.translations.productSingular),"news"===i&&(a=this.translations.newsSingular),e+=a,"news"===i&&(t.entity.newsCategory&&(e+=" | ".concat(t.entity.newsCategory)),t.entity.publishingDate&&(e+=" | ".concat(this.getDateFormatted(t.entity.publishingDate))))}return e},getResultHighlight:function(t){var e="";if(t&&t.highlights&&t.highlights.length>0&&(t.highlights.length>1?t.highlights[0].field&&"title"!==t.highlights[0].field.name?t.highlights[0].snipplets&&t.highlights[0].snipplets.length>0&&(e=t.highlights[0].snipplets[0]):t.highlights[1].snipplets&&t.highlights[1].snipplets.length>0&&(e=t.highlights[1].snipplets[0]):t.highlights[0].snipplets&&t.highlights[0].snipplets.length>0&&(e=t.highlights[0].snipplets[0])),e&&""!==e){var i=e.trim().replace(/^\.+|\.+$/g,"");e="...".concat(i.trim(),"...")}return e},getDateFormatted:function(t){var e="";return t&&(e=p()(t).format(this.dateTimeFormat)),e},searchForSuggest:function(){this.searchTerm=this.suggest,this.processForm(!0)}}};var Ui=function(t){i("+M0h")},Hi=Object(g.a)(qi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"generalSearch"},[i("div",{staticClass:"container content-module search-form"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("h2",[t._v(t._s(t.translations.headline))]),t._v(" "),i("form",{staticClass:"search-bar color-theme",on:{submit:function(e){return e.preventDefault(),t.process
1Form(!0)}}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col text-center"},[i("div",{staticClass:"search-area"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTerm,expression:"searchTerm"}],staticClass:"form-control search-text tealium_search_term",attrs:{placeholder:t.translations.placeholder,"data-cucumber":"searchResults_input_search",type:"text"},domProps:{value:t.searchTerm},on:{input:function(e){e.target.composing||(t.searchTerm=e.target.value)}}}),t._v(" "),i("button",{staticClass:"search-submit tealium_search_submit",attrs:{type:"submit","data-cucumber":"searchResults_button_submit"}}),t._v(" "),t.totalElements>0?i("span",{staticClass:"tealium_search_results"},[t._v(t._s(t.totalElements))]):i("span",{staticClass:"tealium_search_results"},[t._v("0")])])])])]),t._v(" "),i("div",{staticClass:"search-filter-bar"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("div",{staticClass:"text-center"},[i("div",{staticClass:"search-filter"},[i("div",{staticClass:"search-filter-button",class:[t.typeProductsCount<=0?"disabled":"",-1!==t.filterTypes.indexOf("product")?"active":""],attrs:{"data-cucumber":"searchResults_filter_button_products"},on:{click:function(e){return t.selectType("product",t.typeProductsCount)}}},[t._v("\n                    "+t._s(t.translations.products)+"\n                    "),t.typeProductsCount>=0?i("span",[t._v(" ("+t._s(t.typeProductsCount)+")")]):t._e()]),t._v(" "),i("div",{staticClass:"search-filter-button",class:[t.typeNewsCount<=0?"disabled":"",-1!==t.filterTypes.indexOf("news")?"active":""],attrs:{"data-cucumber":"searchResults_filter_button_news"},on:{click:function(e){return t.selectType("news",t.typeNewsCount)}}},[t._v("\n                    "+t._s(t.translations.news)+"\n                    "),t.typeNewsCount>=0?i("span",[t._v(" ("+t._s(t.typeNewsCount)+")")]):t._e()]),t._v(" "),i("div",{staticClass:"search-filter-button",class:[t.typePagesCount<=0?"disabled":"",-1!==t.filterTypes.indexOf("no-type")?"active":""],attrs:{"data-cucumber":"searchResults_filter_button_pages"},on:{click:function(e){return t.selectType("no-type",t.typePagesCount)}}},[t._v("\n                    "+t._s(t.translations.pages)+"\n                    "),t.typePagesCount>=0?i("span",[t._v(" ("+t._s(t.typePagesCount)+")")]):t._e()])])])])])])])])]),t._v(" "),t.loadingError?[i("div",{staticClass:"container content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.commonTranslations.errorMsg))])])])])]:t._e(),t._v(" "),t.errorAtLeastThreeCharacters?i("div",{staticClass:"container content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("div",{staticClass:"mb-2"},[t._v("\n          "+t._s(t.translations.atLeastThreeCharacters)+"\n        ")])])])]):t._e(),t._v(" "),!t.errorAtLeastThreeCharacters&&t.searchTerm&&t.searchTerm.length>2&&t.totalElements<1?i("div",{staticClass:"container content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("div",{staticClass:"mb-2"},[t._v("\n          "+t._s(t.translations.nothingFound)+"\n        ")])])])]):t._e(),t._v(" "),t.totalElements>0?i("div",{staticClass:"container content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("div",{staticClass:"container content-module teaser-list"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[t.suggest&&t.isSuggestSearch&&t.translations.suggestDidYouMean?[i("div",{staticClass:"mb-2"},[t._v("\n                  "+t._s(t.translations.nothingFound)+"\n                ")]),t._v(" "),i("h2",[t._v(t._s(t.translations.suggestDidYouMean)+' "'+t._s(t.suggest)+'"?')])]:[t.suggest&&!t.isSuggestSearch&&t.translations.suggestInstead?i("div",{staticClass:"mb-2 search-suggest",on:{click:function(e){return t.searchForSuggest()}}},[t._v("\n                  "+t._s(t.translations.suggestInstead)+" "+t._s(t.suggest)+"\n                ")]):t._e(),t._v(" "),i("h2",[t._v(t._s(t.totalElements)+" "+t._s(t.translations.results))])]],2)])])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("div",{staticClass:"search-results mt-2"},[t._l(t.results.highlighted,(function(e,a){return e.entity.url?i("a",{key:a,staticClass:"sr-item",attrs:{href:e.entity.url,title:t.functionHelper.formatTitle(t.translationsCommon.visit,e.entity.title||t.translations.preliveTitleEmpty,t.config.apiUrlConfig)}},[e.entity.image?[i("span",{staticClass:"sr-image",domProps:{innerHTML:t._s(e.entity.image)}})]:t._e(),t._v(" "),i("span",{staticClass:"sr-content-area"},[i("span",{staticClass:"sr-category"},[t._v(t._s(t.getResultCategoryAndAdditionalText(e)))]),t._v(" "),i("h3",{staticClass:"sr-title"},[t._v(t._s(e.entity.title||t.translations.preliveTitleEmpty))]),t._v(" "),e.highlights?[i("p",{staticClass:"sr-text",domProps:{innerHTML:t._s(t.getResultHighlight(e))}})]:t._e()],2)],2):t._e()})),t._v(" "),t.totalElements>t.showAmount?i("button",{staticClass:"button button-full-width mt-3",on:{click:function(e){return t.showMore()}}},[t._v("\n            "+t._s(t.translations.showMore)+"\n          ")]):t._e()],2)])])]):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Ui,"data-v-4d2298c8",null).exports,Gi={name:"FarmerTable",props:{data:{type:Array,default:function(){return[]}}},data:function(){return{headers:[]}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||!window.snTranslations.fpt||void 0===window.snTranslations.fpt.table)&&window.snTranslations.fpt.table}},watch:{data:{handler:function(){this.roundNumbers()}}},created:function(){this.headers=[this.translations.indicator,this.translations.unit,this.translations.prodBasf,this.translations.prodCompare]}
1,mounted:function(){this.roundNumbers()},methods:{isDataVisualized:function(t){return"chart"!==t&&"difference"!==t},roundNumbers:function(){this.data.map((function(t){return t.difference=Math.round(100*t.difference)/100,t.comparisonValue=Math.round(100*t.comparisonValue)/100,t.basfValue=Math.round(100*t.basfValue)/100,t}))}}};var Wi=function(t){i("G1Rt")},Zi=Object(g.a)(Gi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("table",{staticClass:"table responsive-table"},[i("caption"),t._v(" "),i("thead",[i("tr",[i("th",{attrs:{scope:"col"}},[t._v(t._s(t.translations.indicator))]),t._v(" "),i("th",{attrs:{scope:"col"}},[t._v(t._s(t.translations.unit))]),t._v(" "),i("th",{attrs:{scope:"col"}},[t._v(t._s(t.translations.prodBasf))]),t._v(" "),i("th",{attrs:{scope:"col"}},[t._v(t._s(t.translations.prodCompare))])])]),t._v(" "),i("tbody",t._l(t.data,(function(e,a,s){return e?i("tr",{key:s},t._l(e,(function(e,a,s){return t.isDataVisualized(a)?i("td",{key:s,class:{highlight:"basfValue"===a},attrs:{"data-title":t.headers[s]}},[i("div",[t._v("\n          "+t._s(e)+"\n        ")])]):t._e()})),0):t._e()})),0)])}),[],!1,Wi,"data-v-1a163d80",null).exports,Ji={name:"FarmerPtChart",components:{appBarChart:$},props:{data:{type:Object,default:function(){return{}}},productName:{type:String,default:""},comparisonName:{type:String,default:""}},data:function(){return{datacollection:null,difference:0,basfValue:0,comparisonValue:0}},computed:{options:function(){return{scales:{yAxes:[{display:!0,gridLines:{drawBorder:!1,drawTicks:!1,lineWidth:2},ticks:{beginAtZero:!0,fontStyle:600,fontColor:"#868e96",suggestedMax:3.5,padding:15}}],xAxes:[{gridLines:{display:!1}}]},legend:{display:!0,position:"bottom",labels:{fontColor:"#868e96"},onClick:function(t){return t.stopPropagation()}},responsive:!0,maintainAspectRatio:!1}},config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return void 0!==window.snTranslations&&window.snTranslations},themeColor:function(){return P.themeColors[this.config.theme]}},watch:{data:{handler:function(){this.roundNumbers(),this.fillData()}}},mounted:function(){this.roundNumbers(),this.fillData()},methods:{roundNumbers:function(){this.basfValue=Math.round(100*this.data.basfValue)/100,this.comparisonValue=Math.round(100*this.data.comparisonValue)/100,this.difference=Math.round(100*this.data.difference)/100},fillData:function(){var t=P.lightenDarkenColor(this.themeColor,35);this.datacollection={datasets:[{label:this.productName,backgroundColor:this.themeColor,data:[this.basfValue]},{label:this.comparisonName,backgroundColor:t,data:[this.comparisonValue]}]}}}};var Ki=function(t){i("DQBJ")},Yi=Object(g.a)(Ji,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"fpt-chart-wrapper"},[i("div",{staticClass:"chart-wrapper"},[i("app-bar-chart",{attrs:{"chart-data":t.datacollection,options:t.options}}),t._v(" "),i("div",{staticClass:"bubble"},[i("div",{staticClass:"content"},[i("span",{staticClass:"title"},[t._v(t._s(t.difference))]),t._v(" "),i("span",[t._v(t._s(t.data.unit)+" "),i("br"),t._v(" "+t._s(t.translations.fpt.chart.difference))])])])],1),t._v(" "),i("div",{staticClass:"description"},[t.data.name&&t.data.name.length?i("p",[t._v(" "+t._s(t.data.name)+" ")]):t._e()])])}),[],!1,Ki,"data-v-1263f1fa",null).exports,Qi={name:"FarmerPtFilter",components:{Treeselect:ge.a,SearchInput:fi,VueSelect:St.a,CropMultiSelection:pi},props:{hasSeason:{type:Boolean,default:!1},season:{type:String,default:""},project:{type:String,default:""}},data:function(){return{selectedProject:"",selectedRegion1:"",selectedRegion2:"",selectedSeason:"",selectedZip:"",optionsProject:[],optionsRegion1:[],optionsRegion2:[],optionsSeason:[],filter:{},lastSeason:{},errors:[]}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||!window.snTranslations.fpt||void 0===window.snTranslations.fpt.filter)&&window.snTranslations.fpt.filter}},watch:{optionsSeason:function(t,e){if(t!==e)if(this.season){var i={id:this.season,name:this.season};this.updateSeason(i)}else this.updateSeason(this.optionsSeason[0])}},created:function(){this.preFillFilter()},mounted:function(){},methods:{preFillFilter:function(){if(localStorage.getItem("updateFptFilter")){var t=JSON.parse(localStorage.getItem("updateFptFilter")).updateFptFilter;this.selectedProject=t.project,this.selectedRegion1=t.region1,this.selectedRegion2=t.region2,this.selectedZip=t.zip}this.init(),this.filterBy()},init:function(){this.fetchOptionsProject(),this.fetchOptionsRegion("one"),this.fetchOptionsRegion("two"),this.hasSeason&&this.fetchOptionsSeason()},fetchOptionsProject:function(){var t=this,e="".concat(this.config.apiUrl,"/api/fpt/getProjectFilters?language=").concat(this.config.language);s.a.get(e).then((function(e){t.optionsProject=[],t.optionsProject=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},fetchOptionsRegion:function(t){var e=this,i="one"===t,a=i?"getRegion1Filters":"getRegion2Filters",n="".concat(this.config.apiUrl,"/api/fpt/").concat(a,"?language=").concat(this.config.language,"&siteType=").concat(this.hasSeason?"detailPage":"overviewPage");(this.selectedProject&&this.selectedProject.id||this.hasSeason)&&(n+="&projectId=".concat(this.selectedProject.id)),this.project&&(n+="&projectId=".concat(this.project)),!i&&this.selectedRegion1&&this.selectedRegion1.id&&(n+="&region1=".concat(this.selectedRegion1.id)),this.selectedSeason&&(n+="&season=".concat(this.selectedSeason.id)),s.a.get(n).then((function(t){i?(e.optionsRegion1=[],e.optionsRegion1=JSON.parse(JSON.stringify(t.data))):(e.optionsRegion2=[],e.optionsRegion2=JSON.parse(JSON.stringify(t.data)))})).catch((function(t){e.errors.push(t)}))},fetchOptionsSeason:function(){var t=this,e="".concat(this.config.apiUrl,"/api/fpt/getSeasonFilters?language=").concat(this.config.language,"&projectId=").concat(this.project?this.project:this.selectedProject.id);s.a.get(e).then((function(e){t.optionsSeason=[],t.optionsSeason=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},updateProject:function(t){this.selectedProject=t,this.selectedRegion1="",this.selectedRegion2="",this.selectedZip="",this.fetchOptionsRegion("one"),this.fetchOptionsRegion("two"),this.hasSeason&&this.fetchOptionsSeason(),this.filterBy()},updateRegion1:function(t){this.selectedRegion1=t,this.selectedRegion2="",this.selectedZip="",this.fetchOptionsRegion("two"),this.filterBy()},updateRegion2:function(t){this.selectedRegion2=t,this.selectedZip="",this.filterBy()},updateSeason:function(t){this.selectedSeason=t,this.fetchOptionsRegion("one"),this.fetchOptionsRegion("two"),this.filterBy()},updateZip:function(t){this.selectedZip=t,this.filterBy()},filterBy:function(){this.filter.season=this.selectedSeason,this.filter.project=this.selectedProject,this.filter.region1=this.selectedRegion1,this.filter.region2=this.selectedRegion2,this.filter.zip=this.selectedZip,this.$emit("filter-by",this.filter),this.processLocalStorage()},processLocalStorage:function(){localStorage.setItem("updateFptFilter",JSON.stringify({updateFptFilter:this.filter}))}}};var Xi=function(t){i("lU03")},ta=Object(g.a)(Qi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"fpt-filter"},[i("div",{staticClass:"row farmer-trial-filters"},[i("div",{staticClass:"col"},[i("form",{staticClass:"color-theme",on:{submit:function(t){t.preventDefault()}}},[i("div",{staticClass:"row"},[t.hasSeason&&t.optionsSeason.length?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("label",[t._v(t._s(t.translations.season.label))]),t._v(" "),i("VueSelect",{attrs:{options:t.optionsSeason,selected:t.selectedSeason&&t.selectedSeason.name,placeholder:t.translations.season.placeholder+" ("+t.optionsSeason.length+")","default-option":!1},on:{callback:t.updateSeason}}
1)],1):t._e(),t._v(" "),!t.hasSeason&&t.optionsProject.length?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("label",[t._v(t._s(t.translations.project.label))]),t._v(" "),i("VueSelect",{attrs:{options:t.optionsProject,selected:t.selectedProject&&t.selectedProject.name,placeholder:t.translations.project.placeholder+" ("+t.optionsProject.length+")"},on:{callback:t.updateProject}})],1):t._e(),t._v(" "),t.optionsRegion1.length?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("label",[t._v(t._s(t.translations.region1.label))]),t._v(" "),i("VueSelect",{attrs:{options:t.optionsRegion1,selected:t.selectedRegion1&&t.selectedRegion1.name,placeholder:t.translations.region1.placeholder+" ("+t.optionsRegion1.length+")"},on:{callback:t.updateRegion1}})],1):t._e(),t._v(" "),t.optionsRegion2.length?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("label",[t._v(t._s(t.translations.region2.label))]),t._v(" "),i("VueSelect",{attrs:{options:t.optionsRegion2,selected:t.selectedRegion2&&t.selectedRegion2.name,placeholder:t.translations.region2.placeholder+" ("+t.optionsRegion2.length+")"},on:{callback:t.updateRegion2}})],1):t._e()])])])]),t._v(" "),t.optionsRegion1.length||t.optionsRegion2.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("form",{staticClass:"search-bar color-grey",on:{submit:function(t){t.preventDefault()}}},[i("div",{staticClass:"row location justify-content-md-center"},[i("div",{staticClass:"col-sm-12 col-md-5"},[i("div",{staticClass:"input-search"},[i("search-input",{attrs:{selected:t.selectedZip,placeholder:t.translations.zip.placeholder},on:{"search-input":t.updateZip}})],1)])])])])]):t._e()])}),[],!1,Xi,"data-v-5148d02e",null).exports,ea={name:"FarmerPtOverview",components:{FarmerPtFilter:ta},data:function(){return{projectData:[],filter:{},defaultShowAmount:6,showAmount:6,page:0,errors:[],currentProject:"",currentRegionOne:"",currentRegionTwo:"",currentZip:""}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.fpt)&&window.snTranslations.fpt}},mounted:function(){this.fetchData()},methods:{setFilters:function(t){this.currentProject=t.project&&t.project.id,this.currentRegionOne=t.region1&&t.region1.id,this.currentRegionTwo=t.region2&&t.region2.id,this.currentZip=t.zip,this.fetchData()},fetchData:function(){var t=this,e="".concat(this.config.apiUrl,"/api/fpt/getProjects?language=").concat(this.config.language,"&page=").concat(this.page,"&count=").concat(this.showAmount,"&geodataCountries=").concat(window.snConfig.country);this.currentProject&&(e+="&projectId=".concat(this.currentProject)),this.currentRegionOne&&(e+="&region1=".concat(this.currentRegionOne)),this.currentRegionTwo&&(e+="&region2=".concat(this.currentRegionTwo)),this.currentZip&&(e+="&zipcode=".concat(this.currentZip)),s.a.get(e).then((function(e){t.errors=[],t.projectData=[],t.projectData=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},showMore:function(){this.showAmount+=this.defaultShowAmount,this.fetchData()}}};var ia=function(t){i("fbB/")},aa=Object(g.a)(ea,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FarmerPtFilter",{attrs:{"is-overview":!0},on:{"filter-by":t.setFilters}})],1)])]),t._v(" "),i("div",{staticClass:"content-module"},[t.projectData.content&&t.projectData.content.length&&!t.errors.length?i("div",{staticClass:"row teaser teaser-row"},[t._l(t.projectData.content,(function(e,a){return[i("div",{key:a,staticClass:"col-md-4 col-sm-6",domProps:{innerHTML:t._s(e.snippet)}})]}))],2):t._e(),t._v(" "),t.projectData.totalElements>t.showAmount?i("button",{staticClass:"button button-full-width",on:{click:t.showMore}},[t._v("\n      "+t._s(t.translations.showMore)+"\n    ")]):t._e(),t._v(" "),t.projectData.numberOfElements<1?i("div",{staticClass:"alert alert-light",attrs:{role:"alert"}},[t._v("\n      "+t._s(t.translations.noResults)+"\n    ")]):t._e(),t._v(" "),t.errors&&t.errors.length?i("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[t._v("\n      "+t._s(t.translations.errorMsg)+"\n    ")]):t._e()])])}),[],!1,ia,"data-v-1ab10367",null).exports,sa={name:"FarmerPtTrialsList",props:{isSlider:{type:Boolean,default:!1},project:{type:String,default:""},region1:{type:String,default:""},region2:{type:String,default:""},season:{type:String,default:""},zip:{type:String,default:""}},data:function(){return{trialData:[],defaultShowAmount:12,showAmount:12,page:0,errors:[]}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return void 0!==window.snTranslations&&window.snTranslations}},watch:{project:function(){this.fetchData()},region1:function(){this.fetchData()},region2:function(){this.fetchData()},season:function(){this.fetchData()},zip:function(){this.fetchData()}},mounted:function(){this.fetchData()},methods:{fetchData:function(){var t=this,e="".concat(this.config.apiUrl,"/api/fpt/getTrials?language=").concat(this.config.language,"&page=").concat(this.page,"&count=").concat(this.showAmount,"&geodataCountries=").concat(window.snConfig.country,"&projectId=").concat(this.project);this.region1&&(e+="&region1=".concat(this.region1)),this.region2&&(e+="&region2=".concat(this.region2)),this.season&&(e+="&season=".concat(this.season)),this.zip&&(e+="&zipcode=".concat(this.zip)),s.a.get(e).then((function(e){t.errors=[],t.trialData=[],t.trialData=JSON.parse(JSON.stringify(e.data))})).catch((function(e){t.errors.push(e)}))},showMore:function(){this.showAmount+=this.defaultShowAmount,this.fetchData()}}};var na=function(t){i("rICy")},oa=Object(g.a)(sa,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.trialData.content&&t.trialData.content.length&&!t.errors.length?i("div",{staticClass:"row teaser teaser-row"},[t._l(t.trialData.content,(function(e,a){return[i("div",{key:a,staticClass:"col-lg-3 col-md-3 col-sm-6 col-12",domProps:{innerHTML:t._s(e.snippet)}})]}))],2):t._e(),t._v(" "),t.trialData.totalElements>t.showAmount?i("button",{staticClass:"button button-full-width",on:{click:t.showMore}},[t._v("\n    "+t._s(t.translations.fpt.showMore)+"\n  ")]):t._e(),t._v(" "),!t.trialData.content||t.trialData.content.length||t.errors.length?t._e():i("div",{staticClass:"alert alert-light",attrs:{role:"alert"}},[t._v("\n    "+t._s(t.translations.fpt.noResults)+"\n  ")]),t._v(" "),t.errors&&t.errors.length?i("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[t._v("\n    "+t._s(t.translations.fpt.errorMsg)+"\n  ")]):t._e()])}),[],!1,na,"data-v-6ef0bba4",null).exports,ra={name:"FarmerPtProject",components:{FarmerPtFilter:ta,FarmerPtChart:Yi,FarmerPtTrialsList:o
1a,FarmerTable:Zi},props:{id:{type:String,default:""},productName:{type:String,default:""},comparisonName:{type:String,default:""}},data:function(){return{currentProject:"",currentRegion1:"",currentRegion2:"",currentSeason:"",currentZip:"",comparisonData:[],comparisonDataInGraph:[],errors:[],params:window.location.href.substr(window.location.href.indexOf("?")),isUrlSeason:!1}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return void 0!==window.snTranslations&&window.snTranslations}},created:function(){this.currentProject=this.id,this.checkUrl()},mounted:function(){this.fetchData()},methods:{checkUrl:function(){var t=new URLSearchParams(this.params);t.has("season")&&(this.isUrlSeason=!0,this.currentSeason=t.get("season"))},setFilters:function(t){this.currentRegion1=t.region1&&t.region1.id,this.currentRegion2=t.region2&&t.region2.id,this.currentZip=t.zip,this.isUrlSeason||(this.currentSeason=t.season.id),this.isUrlSeason=!1,this.fetchData()},fetchData:function(){var t=this;if(this.currentSeason){var e="".concat(this.config.apiUrl,"/api/fpt/getProjectDetails?language=").concat(this.config.language,"&geodataCountries=").concat(window.snConfig.country,"&projectId=").concat(this.currentProject,"&season=").concat(this.currentSeason);this.currentRegion1&&(e+="&region1=".concat(this.currentRegion1)),this.currentRegion2&&(e+="&region2=".concat(this.currentRegion2)),this.currentZip&&(e+="&zipcode=".concat(this.currentZip)),s.a.get(e).then((function(e){t.errors=[],t.comparisonData=[],t.comparisonDataInGraph=[],t.comparisonData=JSON.parse(JSON.stringify(e.data)).factors,t.comparisonDataInGraph=t.comparisonData.filter((function(t){return t.chart}))})).catch((function(e){t.errors.push(e)}))}}}};var la=function(t){i("O3r3")},ca=Object(g.a)(ra,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FarmerPtFilter",{attrs:{"has-season":!0,project:t.currentProject,season:t.currentSeason},on:{"filter-by":t.setFilters}})],1)])]),t._v(" "),t.comparisonDataInGraph&&t.comparisonDataInGraph.length?i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},t._l(t.comparisonDataInGraph,(function(e,a){return i("div",{key:a,staticClass:"col-sm-12 col-md-6"},[e?i("FarmerPtChart",{attrs:{data:e,"product-name":t.productName,"comparison-name":t.comparisonName}}):t._e()],1)})),0)]):t._e(),t._v(" "),t.comparisonData&&t.comparisonData.length?i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FarmerTable",{attrs:{data:t.comparisonData}})],1)])]):t._e(),t._v(" "),t.currentProject&&t.currentSeason?i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("h2",[t._v(t._s(t.translations.fpt.project.trials.title))])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("FarmerPtTrialsList",{attrs:{project:t.currentProject,region1:t.currentRegion1,region2:t.currentRegion2,season:t.currentSeason,zip:t.currentZip}})],1)])]):t._e()])}),[],!1,la,"data-v-db90239e",null).exports,ua={name:"FarmerPtTrial",components:{FarmerPtChart:Yi,FarmerTable:Zi},props:{id:{type:String,default:""},productName:{type:String,default:""},comparisonName:{type:String,default:""}},data:function(){return{currentTrial:"",comparisonData:[],comparisonDataInGraph:[],errors:[]}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig}},created:function(){this.currentTrial=this.id},mounted:function(){this.fetchData()},methods:{fetchData:function(){var t=this,e="".concat(this.config.apiUrl,"/api/fpt/getTrialDetails?language=").concat(this.config.language,"&trialId=").concat(this.currentTrial);s.a.get(e).then((function(e){t.errors=[],t.comparisonData=[],t.comparisonData=JSON.parse(JSON.stringify(e.data)).factors,t.comparisonDataInGraph=t.comparisonData.filter((function(t){return t.chart}))})).catch((function(e){t.errors.push(e)}))}}};var da=function(t){i("K3WY")},pa=Object(g.a)(ua,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.comparisonDataInGraph&&t.comparisonDataInGraph.length>0?i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},t._l(t.comparisonDataInGraph,(function(e,a){return i("div",{key:a,staticClass:"col-sm-12 col-md-6"},[e?i("FarmerPtChart",{attrs:{data:e,"product-name":t.productName,"comparison-name":t.comparisonName}}):t._e()],1)})),0)]):t._e(),t._v(" "),t.comparisonData&&t.comparisonData.length>0?i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FarmerTable",{attrs:{data:t.comparisonData}})],1)])]):t._e()])}),[],!1,da,"data-v-773bf9c0",null).exports,ma=i("rmaT"),ha=i.n(ma),fa={name:"GoogleMap
1Inner",components:{Loader:Qt.a,GmapCluster:ha.a},props:{center:{type:Object,default:function(){return{}}},markers:{type:Array,default:function(){return[]}},zoom:{type:Number,default:8},width:{type:String,default:"100%"},height:{type:Number,default:500},iconWidth:{type:Number,default:20},iconHeight:{type:Number,default:28},iconDefault:{type:String,default:""},iconHover:{type:String,default:""},iconActive:{type:String,default:""},iconCluster:{type:String,default:""},iconClusterWidth:{type:Number,default:53},iconClusterHeight:{type:Number,default:53},iconClusterTextColor:{type:String,default:"white"},mapIconDefault:{type:String,default:""},mapIconHover:{type:String,default:""},mapIconActive:{type:String,default:""},tealiumPageCategory:{type:String,default:""},tealiumSubPageCategory:{type:String,default:""},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""},linkText:{type:String,default:""},linkTargetBlank:{type:Boolean,default:!0},showSearchbox:{type:Boolean,default:!0},searchboxDescription:{type:String,default:""},handlePreferenceBarLocation:{type:Boolean,default:!0},showNameInPopup:{type:Boolean,default:!0}},data:function(){return{mapLoaded:!1,map:null,bounds:null,mapCenter:{},selectedMarker:null,searchBox:null,currentIconDefault:"",currenIconHover:"",iconSize:null,offset:0,googleMapStyles:[],city:"",clusterStyles:[{textColor:this.iconClusterTextColor,url:this.iconCluster,height:this.iconClusterHeight,width:this.iconClusterWidth}],clusterSamePositionInfoShow:!1,clusterSamePositionInfoPosition:{},clusterSamePositionInfoOffset:0,clusterSamePositionMarkers:[]}},computed:{google:he.gmapApi,translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.googleMap)&&window.snTranslations.googleMap},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig},functionHelper:function(){return Q.a}},watch:{city:function(){var t=document.getElementById("google-map-place-input");if(t){var e=new KeyboardEvent("keydown",{code:"Enter",key:"Enter",charKode:13,keyCode:13,view:window});t.value=this.city,t.focus(),t.dispatchEvent(e),t.blur()}},markers:function(){this.closePopup()}},created:function(){this.mapCenter=this.center,this.offset=-(this.iconHeight+1),this.googleMapStyles=P.googleMapStyles,this.iconClusterHeight&&(this.clusterSamePositionInfoOffset=-Math.round(this.iconClusterHeight/2+1))},mounted:function(){var t=this;this.$refs.mapRef.$mapPromise.then((function(e){t.mapLoaded=!0,t.map=e,t.iconSize=new google.maps.Size(t.iconWidth,t.iconHeight),t.handlePreferenceBarLocation?t.handlePreferenceBar():t.fitBoundsToMarkers(),t.handleSearchBox(),t.google.maps.event.addListener(e,"click",(function(){t.selectedMarker=null,t.clusterSamePositionInfoShow=!1}))}))},methods:{toogleClusterSamePositionMarker:function(t){this.clusterSamePositionInfoShow=!1,this.toogleMarker(t,-1)},closeClusterSamePositionInfoPopup:function(){this.clusterSamePositionInfoShow=!1},checkClusterMarkersSamePosition:function(t){var e=this;if(t&&t.getMarkers()){var i=-1,a=-1,s=t.getMarkers().length,n=0;if(t.getMarkers().forEach((function(t){t.position&&i===t.position.lat()&&a===t.position.lng()&&(0===n&&n++,n++),i=t.position.lat(),a=t.position.lng()})),n>=s){this.clusterSamePositionMarkers=[],t.getMarkers().forEach((function(t){if(t&&t.attribution&&t.attribution.source){var i=parseInt(t.attribution.source),a=e.markers[i];e.clusterSamePositionMarkers.push(a)}}));var o=t.getMarkers()[0];this.clusterSamePositionInfoPosition={lat:o.position.lat(),lng:o.position.lng()},this.clusterSamePositionInfoShow=!0,this.closePopup()}}},handlePreferenceBar:function(){var t=this;oe.a.hasPzAddress()?this.processSessionStorage():localStorage.getItem("pzAddress")?this.processLocalStorage():this.fitBoundsToMarkers(),F.a.$on(ne.a.UPDATE_FROM_BAR,(function(e){e===ne.c.UPDATE_ADDRESS?t.processSessionStorage():e===ne.b.UPDATE_ADDRESS||"updateToogle"===e?t.processLocalStorage():t.fitBoundsToMarkers()}))},processSessionStorage:function(){var t=oe.a.extractAddressFromStorage();this.city=t.name,this.map.panTo({lat:t.latitude,lng:t.longitude}),this.map.setZoom(9)},processLocalStorage:function(){var t=!1,e=null;try{localStorage.getItem("pzAddress")&&(e=JSON.parse(localStorage.getItem("pzAddress")))}catch(e){t=!0}var i=!1,a=null;try{localStorage.getItem("isPz")&&(a=JSON.parse(localStorage.getItem("isPz")))}catch(t){i=!0}var s=localStorage.getItem("isPz");!i&&a&&(s=a.isPz),!t&&e&&s?(this.city=e.name,this.map.panTo({lat:e.latitude,lng:e.longitude}),this.map.setZoom(9)):(this.city="",this.fitBoundsToMarkers())},fitBoundsToMarkers:function(){var t=this;this.markers&&this.markers.length?(this.bounds=new google.maps.LatLngBounds,this.iconSize=new google.maps.Size(this.iconWidth,this.iconHeight),this.markers.forEac
1h((function(e){var i=e.position;t.bounds.extend(i)})),this.map.fitBounds(this.bounds),this.map.panToBounds(this.bounds)):(this.map.panTo(this.center),this.map.setZoom(this.zoom))},handleSearchBox:function(){var t=this,e=document.getElementById("google-map-place-input");e&&(this.searchBox=new google.maps.places.SearchBox(e),this.google.maps.event.addListener(this.searchBox,"places_changed",(function(){var e=t.searchBox.getPlaces();0!==e.length&&(t.bounds=new google.maps.LatLngBounds,e.forEach((function(e){t.selectedMarker=null,e.geometry.viewport?t.bounds.union(e.geometry.viewport):t.bounds.extend(e.geometry.location)})),t.map.fitBounds(t.bounds),t.map.panToBounds(t.bounds),t.map.setZoom(9))})))},useIconDefault:function(t){return t.default?t.default:this.mapIconDefault?this.mapIconDefault:this.iconDefault},useIconHover:function(t){return t.hover?t.hover:this.mapIconHover?this.mapIconHover:this.iconHover},useIconActive:function(t){return t.active?t.active:this.mapIconActive?this.mapIconActive:this.iconActive},closePopup:function(){this.selectedMarker=null},toogleMarker:function(t,e){this.map.panTo(t.position),this.selectedMarker=t,"undefined"!=typeof utag&&utag.link({event_name:this.tealiumValue,event_value:this.tealiumValue,event_type:this.tealiumType,event_category:this.tealiumCategory,event_action:this.tealiumAction,page_category:this.tealiumPageCategory,page_subcategory:this.tealiumSubPageCategory})},hover:function(t,e){this.selectedMarker!==t&&this.$refs["markerRef-".concat(e)][0].$markerObject.setIcon({url:this.useIconHover(t.icons),scaledSize:this.iconSize})},leave:function(t,e){this.selectedMarker!==t&&this.$refs["markerRef-".concat(e)][0].$markerObject.setIcon({url:this.useIconDefault(t.icons),scaledSize:this.iconSize})},convertToHTML:function(t){var e=t.split("/"),i="";return e.forEach((function(t){t.length&&(i+="<p>".concat(t,"</p>"))})),i}}};var ga=function(t){i("XjXm")},va=Object(g.a)(fa,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"google-map"},[i("div",{staticClass:"position-relative"},[t._t("mapContentTop"),t._v(" "),i("gmap-map",{ref:"mapRef",style:{width:t.width,height:t.height+"px"},attrs:{id:"google-map",center:t.mapCenter,zoom:t.zoom,options:{clickableIcons:!1,disableDefaultUI:!0,zoomControl:!1,styles:t.googleMapStyles},"map-type-id":"terrain"}},[t.iconCluster?[i("gmap-cluster",{attrs:{styles:t.clusterStyles,"zoom-on-click":!0},on:{click:t.checkClusterMarkersSamePosition}},t._l(t.markers,(function(e,a){return i("gmap-marker",{key:"marker-"+a,ref:"markerRef-"+a,refInFor:!0,attrs:{attribution:{source:""+a},position:e.position,clickable:!0,draggable:!1,icon:{url:t.selectedMarker===e?t.useIconActive(e.icons):t.useIconDefault(e.icons),scaledSize:t.iconSize}},on:{click:function(i){return t.toogleMarker(e,a)},mouseover:function(i){return t.hover(e,a)},mouseout:function(i){return t.leave(e,a)}}})})),1)]:t._l(t.markers,(function(e,a){return i("gmap-marker",{key:"marker-"+a,ref:"markerRef-"+a,refInFor:!0,attrs:{position:e.position,clickable:!0,draggable:!1,icon:{url:t.selectedMarker===e?t.useIconActive(e.icons):t.useIconDefault(e.icons),scaledSize:t.iconSize}},on:{click:function(i){return t.toogleMarker(e,a)},mouseover:function(i){return t.hover(e,a)},mouseout:function(i){return t.leave(e,a)}}})})),t._v(" "),t.clusterSamePositionInfoShow?i("gmap-info-window",{attrs:{position:t.clusterSamePositionInfoPosition,options:{pixelOffset:{height:t.clusterSamePositionInfoOffset}}},on:{closeclick:function(e){return t.closeClusterSamePositionInfoPopup()}}},[i("div",{staticClass:"google-map-popup"},[i("span",{staticClass:"google-popover-close",on:{click:function(e){return t.closeClusterSamePositionInfoPopup()}}}),t._v(" "),i("div",{staticClass:"popup-details"},[i("div",{staticClass:"link"},[i("ul",{staticClass:"link-list"},t._l(t.clusterSamePositionMarkers,(function(e,a){return i("li",{key:"cspm-"+a,on:{click:function(i){return t.toogleClusterSamePositionMarker(e)}}},[i("a",{staticClass:"theme-txt-color-brand same-position-link",attrs:{title:t.functionHelper.formatTitle(t.translationsCommon.view,e.name,"","",e.location)}},[e.name?i("span",[t._v(t._s(e.name))]):e.location?i("span",[t._v(t._s(e.location))]):t._e()])])})),0)])])])]):t._e(),t._v(" "),t.selectedMarker&&t.selectedMarker.name?i("gmap-info-window",{attrs:{position:t.selectedMarker.position,options:{pixelOffset:{height:t.offset}}},on:{closeclick:function(e){return t.closePopup()}}},[i("div",{staticClass:"google-map-popup"},[i("span",{staticClass:"google-popover-close",on:{click:function(e){return t.closePopup()}}}),t._v(" "),i("div",{staticClass:"popup-header"},[t.selectedMarker.image?i("div",{staticClass:"popup-image"},[i("picture",[i("img",{attrs:{src:t.selectedMarker.image,alt:t.selectedMarker.name,title:t.selectedMarker.name}}
1)])]):t._e(),t._v(" "),i("div",{staticClass:"popup-details"},[t.showNameInPopup&&t.selectedMarker.name?i("div",{staticClass:"name"},[t._v("\n                "+t._s(t.selectedMarker.name)+"\n              ")]):t._e(),t._v(" "),t.selectedMarker.location?i("div",{staticClass:"location"},[t._v("\n                "+t._s(t.selectedMarker.location)+"\n              ")]):t._e(),t._v(" "),t.selectedMarker.description?i("div",{staticClass:"description",domProps:{innerHTML:t._s(t.selectedMarker.description)}}):t._e(),t._v(" "),t.selectedMarker.communication?i("div",{staticClass:"communication",domProps:{innerHTML:t._s(t.convertToHTML(t.selectedMarker.communication))}}):t._e(),t._v(" "),t.selectedMarker.htmlBeforeImg&&""!==t.selectedMarker.htmlBeforeImg?i("div",{domProps:{innerHTML:t._s(t.selectedMarker.htmlBeforeImg)}}):t._e(),t._v(" "),t.selectedMarker.imageSrc?i("picture",[i("img",{staticClass:"my-3",attrs:{src:t.selectedMarker.imageSrc,alt:t.selectedMarker.name,title:t.selectedMarker.name,width:"100%",height:"auto"}})]):t._e(),t._v(" "),t.selectedMarker.htmlAfterImg&&""!==t.selectedMarker.htmlAfterImg?i("div",{domProps:{innerHTML:t._s(t.selectedMarker.htmlAfterImg)}}):t._e(),t._v(" "),t.selectedMarker.link?i("div",{staticClass:"link"},[i("ul",{staticClass:"link-list"},[i("li",[i("a",{attrs:{href:t.selectedMarker.link,title:t.functionHelper.formatTitle(t.translationsCommon.visit,t.selectedMarker.link),"data-tealium-type":t.selectedMarker.linkTealiumType,"data-tealium-category":t.selectedMarker.linkTealiumCategory,"data-tealium-action":t.selectedMarker.linkTealiumAction,"data-tealium-value":t.selectedMarker.linkTealiumValue,target:t.linkTargetBlank?"_blank":"_self"}},[t._v("\n                      "+t._s(t.selectedMarker.linkText?t.selectedMarker.linkText:t.linkText?t.linkText:t.translations.popup.link)+"\n                    ")])])])]):t._e()])]),t._v(" "),i("div",{staticClass:"popup-details"})])]):t._e()],2)],2),t._v(" "),t.showSearchbox?i("div",{staticClass:"google-map-searchbox"},[i("div",{staticClass:"google-map-search"},[t._v("\n      "+t._s(t.searchboxDescription?t.searchboxDescription:t.translations.search.description)+"\n    ")]),t._v(" "),i("div",{staticClass:"google-map-place"},[i("div",[i("input",{attrs:{id:"google-map-place-input",placeholder:t.translations.search.placeholder,type:"text"}}),t._v(" "),i("i",{staticClass:"icon icon-location",attrs:{"aria-hidden":"true"}})])])]):t._e(),t._v(" "),t._t("contentBottom"),t._v(" "),i("Loader",{attrs:{"is-visible":!t.mapLoaded}})],2)}),[],!1,ga,"data-v-4e38be4b",null).exports,ba={name:"GoogleMap",components:{GoogleMapInner:va,GdprOverlay:ze},props:{latitude:{type:Number,default:0},longitude:{type:Number,default:0},zoom:{type:Number,default:8},width:{type:String,default:"100%"},height:{type:Number,default:500},googleKey:{type:String,default:""},markers:{type:String,default:""},markersObject:{type:Array,default:function(){return[]}},iconWidth:{type:Number,default:20},iconHeight:{type:Number,default:28},iconDefault:{type:String,default:""},iconHover:{type:String,default:""},iconActive:{type:String,default:""},iconCluster:{type:String,default:""},iconClusterWidth:{type:Number,default:53},iconClusterHeight:{type:Number,default:53},iconClusterTextColor:{type:String,default:"white"},mapIconDefault:{type:String,default:""},mapIconHover:{type:String,default:""},mapIconActive:{type:String,default:""},tealiumPageCategory:{type:String,default:""},tealiumSubPageCategory:{type:String,default:""},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""},optInBackgroundImage:{type:String,default:""},optInBackgroundImageWebp:{type:String,default:""},useOneTrust:{type:Boolean,default:!0},isOneTrustEnabled:{type:Boolean,default:!1}},data:function(){return{center:{},selectedMarkers:[],codes:["C0024"]}},computed:{translations:function(){return window.snTranslations||!1}},watch:{markersObject:function(){this.setMarkers()},markers:function(){this.setMarkers()}},created:function(){this.setGoogleMapKey(),this.setMap(this.latitude,this.longitude)}
1,mounted:function(){this.setMarkers()},methods:{setMarkers:function(){var t=this.markers?JSON.parse(this.markers):"";this.selectedMarkers=this.markersObject&&this.markersObject.length?this.markersObject:t},setGoogleMapKey:function(){this.googleKey&&o.default.use(he,{load:{key:this.googleKey,libraries:"places"}})},setMap:function(t,e){this.center={lat:t,lng:e}}}};var wa=function(t){i("T7xL")},ya=Object(g.a)(ba,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"google-map-wrapper"},[i("div",{staticClass:"gdpr-overlay-outter-wrapper"},[i("GdprOverlay",{attrs:{height:t.height+76+"px","optin-button":t.translations.gdpr.googleMap.optinButton,"optin-message":t.translations.gdpr.googleMap.optinMessage,"optin-message-accepted":t.translations.gdpr.googleMap.optinMessageAccepted,"optin-background-image":t.optInBackgroundImage,"optin-background-image-webp":t.optInBackgroundImageWebp,"is-one-trust-enabled":t.isOneTrustEnabled,"use-one-trust":t.useOneTrust,codes:t.codes,type:"googleMap"}},[i("GoogleMapInner",{attrs:{center:t.center,zoom:t.zoom,width:t.width,height:t.height,markers:t.selectedMarkers,"icon-width":t.iconWidth,"icon-height":t.iconHeight,"icon-default":t.iconDefault,"icon-hover":t.iconHover,"icon-active":t.iconActive,"icon-cluster":t.iconCluster,"icon-cluster-width":t.iconClusterWidth,"icon-cluster-height":t.iconClusterHeight,"icon-cluster-text-color":t.iconClusterTextColor,"map-icon-default":t.mapIconDefault,"map-icon-hover":t.mapIconHover,"map-icon-active":t.mapIconActive,"tealium-page-category":t.tealiumPageCategory,"tealium-sub-page-category":t.tealiumSubPageCategory,"tealium-value":t.tealiumValue,"tealium-type":t.tealiumType,"tealium-category":t.tealiumCategory,"tealium-action":t.tealiumAction}})],1)],1)])}),[],!1,wa,"data-v-d131abce",null).exports,Ca={props:{clickable:{type:Boolean,default:!0},title:{type:String,default:""}},data:function(){return{isPz:!0,toggleWidth:50}},computed:{translationsPz:function(){return!(!window.snConfigPz||void 0===window.snConfigPz.translationsPZ)&&window.snConfigPz.translationsPZ},config:function(){return window.snConfig},themeColor:function(){return P.themeColors[this.config.theme]}},created:function(){this.checkStatus()},mounted:function(){var t=this;F.a.$on("updateFromBar",(function(){t.checkStatus()})),this.checkLabelWidth()},methods:{checkStatus:function(){this.isPz=Q.a.setPzDependedCropsAddress()},checkLabelWidth:function(){var t=this.translationsPz.pzEnable?this.translationsPz.pzEnable.length:3,e=this.translationsPz.pzDisable?this.translationsPz.pzDisable.length:3,i=Math.max(t,e);i>4&&i<=6?this.toggleWidth=60:i>6&&(this.toggleWidth=70)}}};var _a=function(t){i("nojH")},Sa=Object(g.a)(Ca,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("form",{staticClass:"toggle-radio-button"},[i("toggle-button",{staticClass:"toggle-trigger",class:{"has-title":t.title},attrs:{id:"isPz",sync:!0,color:{checked:"#fff",unchecked:"#fff"},labels:{checked:t.translationsPz.pzEnable,unchecked:t.translationsPz.pzDisable},"switch-color":{checked:t.themeColor,unchecked:"#6c6c6c"},disabled:!0,width:t.toggleWidth,value:"isPz"},model:{value:t.isPz,callback:function(e){t.isPz=e},expression:"isPz"}}),t._v(" "),t.title?i("span",{staticClass:"title"},[t._v(t._s(t.title))]):t._e()],1)}),[],!1,_a,"data-v-0dc42e58",null).exports,Ta={components:{Treeselect:ge.a},props:{placeholder:{type:String,default:""},isDisabled:{type:Boolean,default:!1},localStorageTag:{type:String,default:""},list:{type:[Object,Array],default:function(){}},prefilled:{type:Array,default:function(){return[]}},cucumber:{type:String,default:null}},data:function(){return{crops:this.preFillCrops(),cropsEN:[],multiple:!0,clearable:!1,searchable:!0,openOnClick:!0,clearOnSelect:!0,treeSelectOpened:!1,adjustedTreeOpenDirection:"below"}},computed:{translations:function(){return window.snConfig.translations},config:function(){return window.snConfig.config},snConfigCrops:function(){return window.snConfigCrops.crops},isPzCrop:function(){return"pzCrops"===this.localStorageTag},isSSPCrop:function(){return"sspCrops"===this.localStorageTag}},watch:{crops:function(){Q.a.setLocalStoreValueByStorageTag(this.localStorageTag,{crops:this.crops,cropsEN:this.cropsEN})},cropsEN:function(){Q.a.setLocalStoreValueByStorageTag(this.localStorageTag,{crops:this.crops,cropsEN:this.cropsEN})},"$data.crops":{handler:function(t,e){this.updateCropsEN(t),Q.a.areArraysEqual(t,e)||xi()(t)!==xi()(e)||(this.isPzCrop?F.a.$emit("updateFromBar","updateCrop"):this.isSSPCrop&&F.a.$emit("updateSSP"))},deep:!1},list:{handler:function(){this.crops=[]},deep:!0},prefilled:function(t){t.length?this.crops=t:this.crops=[]}},created:function(){var t=Q.a.getLocalStoreValueByStorageTag(this.localStorageTag);t&&(t.crops&&(this.crops=t.crops),t.cropsEN&&(this.cropsEN=t.cropsEN))},mounted:function(){var t=this;F.a.$on("updateFromBar",(function(){t.crops=t.preFillCrops()})),this.isPzCrop?F.a.$on("removeCrop",(function(e){t.removeCrop(e)})):this.isSSPCrop&&F.a.$on("removeCropSSP",(function(e){t.removeCrop(e)}))},methods:{preFillCrops:function(){var t=!1,e=null;try{localStorage.getItem(this.localStorageTag)&&(e=JSON.parse(localStorage.getItem(this.localStorageTag)))}catch(e){t=!0}return!t&&e&&e.crops?e.crops:[]},customLabel:function(t){return"".concat(t.library," - ").concat(t.language)},remove:function(t,e){return t.filter((function(t){return t!==e}))},removeCrop:function(t){this.crops&&this.crops.length&&t&&(this.crops=this.remove(this.crops,t))},updateCropsEN:function(t){this.cropsEN=[],this.cropsEN=this.snConfigCrops.filter((function(e){return-1!==t.indexOf(e.id)})).map((function(t){return t.labelEN}))},onTreeOpen:function(){this.treeSelectOpened=!0,this.adjustedTreeOpenDirection=this.$refs.treeSelect.prefferedOpenDirection}
1,onTreeClose:function(){this.treeSelectOpened=!1}}};var Pa=function(t){i("SpqE")},Fa=Object(g.a)(Ta,(function(){var t,e=this,i=e.$createElement,a=e._self._c||i;return a("div",{staticClass:"treeselect-wrapper",class:(t={},t["treeselect-open-"+e.adjustedTreeOpenDirection]=e.treeSelectOpened,t),attrs:{"data-cucumber":e.cucumber}},[a("div",{staticClass:"selectPlaceholder"},[e._v("\n    "+e._s(e.placeholder)+"\n  ")]),e._v(" "),a("treeselect",{ref:"treeSelect",attrs:{"auto-load-root-options":!1,multiple:e.multiple,clearable:e.clearable,searchable:!1,"open-on-click":e.openOnClick,"clear-on-select":e.clearOnSelect,options:e.list&&e.list.length?e.list:e.snConfigCrops,flat:!0,disabled:e.isDisabled,"open-direction":"below",placeholder:""},on:{open:e.onTreeOpen,close:e.onTreeClose},model:{value:e.crops,callback:function(t){e.crops=t},expression:"crops"}})],1)}),[],!1,Pa,"data-v-05ecff8e",null).exports,xa=i("Kc5l"),Oa=i.n(xa),ka={name:"Geolocation",data:function(){return{geoLocationUrl:"".concat(window.location.origin,"/api/geodata/getByPosition?"),geolocationError:"geolocation-error",geolocationPassed:"geolocation-passed"}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.geolocation)&&window.snTranslations.geolocation},getCountries:function(){var t=window.snConfig.country;return"object"===xi()(t)&&(t=encodeURIComponent(t.join(","))),t}},methods:{requestGeolocation:function(){return navigator.geolocation?navigator.geolocation.getCurrentPosition(this.setCurrentLocation,this.userBlockedLocation):(this.$emit(this.geolocationError,this.translations.notSupported),!1)},userBlockedLocation:function(){this.$emit(this.geolocationError,this.translations.clearLocationData)},getLocationData:function(t){var e=this;s.a.get(this.geoLocationUrl,{params:t}).then((function(t){e.$emit(e.geolocationPassed,t.data)})).catch((function(){e.$emit(e.geolocationError,e.translations.requestErrors)}))},setCurrentLocation:function(t){var e={latitude:t.coords.latitude,longitude:t.coords.longitude,countries:this.getCountries};this.getLocationData(e)}}};var La=function(t){i("IEc1")},Ia=Object(g.a)(ka,(function(){var t=this.$createElement;return(this._self._c||t)("span",{on:{click:this.requestGeolocation}})}),[],!1,La,"data-v-37ae412e",null).exports,Ea={components:{Autocomplete:Oa.a,PzSessionStorage:oe.a,PzLocalStorage:Y.a,AgrobusEventType:ne.a,AgrobusEventValueLocalStorage:ne.b,AgrobusEventValueSessionStorage:ne.c,Geolocation:Ia},props:{storageType:{type:String,default:""},placeholder:{type:String,default:""},id:{type:String,default:""},maxResults:{type:Number,default:4},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},cucumber:{type:String,default:null}},data:function(){return{countries:window.snConfig.country,languages:window.snApiCaller.languages,currentAddress:"",apiUrl:"".concat(window.snConfig.apiUrl,"/api/geodata/getByAddress"),apiUrlGeodata:"".concat(window.snConfig.apiUrl,"/api/geodata/chooseGeodata"),eventUpdateAddressValue:"",storageHelper:{},showSuggestions:!1,error:"",isAutocomplete:!1}},computed:{translations:function(){return window.snConfig.translations},config:function(){return window.snConfig.config},translationsPz:function(){return!(!window.snConfigPz||void 0===window.snConfigPz.translationsPZ)&&window.snConfigPz.translationsPZ}},created:function(){this.determineStorage()},mounted:function(){var t=this;this.setAddressPlaceholderIfAvailable(!1),F.a.$on("update-pz-address",(function(){t.setAddressPlaceholderIfAvailable(!0)})),F.a.$on("updateFromBar",(function(){!localStorage.getItem("pzAddress")&&t.$refs.autocomplete&&t.$refs.autocomplete.clearInput()}))},methods:{renderChild:function(t){return Q.a.renderDropdownDOM(t,this.showZipcode,this.showRegion1,this.showRegion2)},determineStorage:function(){switch(this.storageType){case re.LOCAL_STORAGE:this.configureToLocalStorage();break;case re.SESSION_STORAGE:this.configureToSessionStorage();break;default:this.configureToLocalStorage()}},configureToLocalStorage:function(){this.storageHelper=Y.a,this.eventUpdateAddressValue=ne.b.UPDATE_ADDRESS},configureToSessionStorage:function(){this.storageHelper=oe.a,this.eventUpdateAddressValue=ne.c.UPDATE_ADDRESS},setAddressPlaceholderIfAvailable:function(t){if(this.storageHelper.hasPzAddress()){var e=this.storageHelper.extractAddressFromStorage();this.currentAddress=e.name,this.$refs.autocomplete&&this.$refs.autocomplete.setValue(this.currentAddress),t&&this.triggerGeodata(e.latitude,e.longitude)}},triggerGeodata:function(t,e){var i="".concat(this.apiUrlGeodata,"?latitude=").concat(t,"&longitude=").concat(e,"&countries=").concat(this.countries," ");s.a.get(i)},processPassedAddress:function(t){this.storageHelper.writeAddressToStorage(t),this.storageType!==re.SESSION_STORAGE||Y.a.hasPzAddress()||Y.a.writeAddressToStorage(t),Q.a.setPzDependedCropsAddress(),F.a.$emit("update-pz-address",{}),this.updateFromBar()},removeIfEmpty:function(t){null!==t.target._value&&""===t.target._value.trim()&&(this.storageHelper.deleteAddressFromStorage(),this.updateFromBar())},updateFromBar:function(){F.a.$emit(ne.a.UPDATE_FROM_BAR,this.eventUpdateAddressValue)},showHideSuggestions:function(t){0===t.length&&this.$refs.autocomplete.clearInput()},setErrorMessage:function(t){this.error=t,this.$emit("geolocation-error",this.error)},clear:function(){this.currentAddress="",this.storageHelper.deleteAddressFromStorage(),this.updateFromBar()}}};var Va=function(t){i("Xswn")},Aa=Object(g.a)(Ea,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"autocomplete-wrapper-outer"},[i("autocomplete",{ref:"autocomplete",attrs:{id:t.id,min:3,url:t.apiUrl,customParams:{countries:t.countries,maxresults:t.maxResults,languages:t.languages,autocomplete:t.isAutocomplete},initValue:t.currentAddress,"on-select":t.processPassedAddress,placeholder:t.placeholder?t.placeholder:t.translationsPz.plAddress,onBlur:t.removeIfEmpty,onShouldRenderChild:t.renderChild,onInput:t.showHideSuggestions,"data-cucumber":t.cucumber,className:"pzBarAddress",param:"address",anchor:"name",label:"zipcode"},model:{value:t.currentAddress,callback:function(e){t.currentAddress=e},expression:"currentAddress"}}),t._v(" "),t.currentAddress?i("span",{staticClass:"iconClose",attrs:{"data-cucumber":"preferenceBar_button_cityRemove"},on:{click:function(e){return t.clear()}}}):t._e(),t._v(" "),i("Geolocation",{staticClass:"cucumber-geo-location locationIco",attrs:{"data-cucumber":"preferenceBar_button_geoLocation"},on:{"geolocation-error":t.setErrorMessage,"geolocation-passed":t.processPassedAddress}})],1)}),[],!1,Va,"data-v-f50d0334",null).exports,Da={name:"CheckList",props:{title:{type:String,default:""},list:{type:String,default:""},useBrandColor:{type:Boolean,default:!0},isBenefit:{type:Boolean,default:!1}}};var Ma=function(t){i("g7y3")},Ra=Object(g.a)(Da,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"check-list-wrapper",class:{benefit:t.isBenefit}},[t.title?i("h2",{domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),i("div",{class:{"brand-color":t.useBrandColor},domProps:{innerHTML:t._s(t.list)}})])}),[],!1,Ma,"data-v-d0941d24",null).exports;function $a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Na(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?$a(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):$a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ja={name:"PreferenceBar",components:{GlobalSelectMulti:Fa,Toggle:Sa,Autocomplete:Aa,Crop:gi.a,CheckList:Ra},props:{inStickyHeader:{type:Boolean,default:!1},benefits:{type:String,default:""},id:{type:String,default:""},maxResults:{type:Number,default:4},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},isMini:{type:Boolean,default:!1}},data:function(){return{error:"",pzCrops:[],prefilledZip:"",prefilledCity:"",prefilledCrops:[],isOpen:!1}},computed:Na(Na({},Object(Et.c)({userId:function(t){return t.forms.userId}})),{},{translations:function(){return window.snConfig.translations},config:function(){return window.snConfig.config},snConfigCrops:function(){return window.snConfigCrops.crops},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},translationsPz:function(){return!(!window.snConfigPz||void 0===window.snConfigPz.translationsPZ)&&window.snConfigPz.translationsPZ}}),watch:{userId:{handler:function(t,e){t&&t!==e&&oe.a.extractPostLoginFromSessionStorage()&&this.retrieveData()}}},created:function(){localStorage.getItem("isPz")||localStorage.setItem("isPz",JSON.stringify({isPz:!1}))},mounted:function(){var t=this;document.addEventListener("click",this.autoClose,!1),F.a.$on(ne.a.UPDATE_FROM_BAR,(function(){t.getPzCrops(),t.setErrorMessage("")})),this.getPzCrops(),this.userId&&oe.a.extractPostLoginFromSessionStorage()&&this.retrieveData()},destroyed:function(){document.removeEventListener("click",this.autoClose,!1)},methods:{setErrorMessage:function(t){this.error=t},autoClose:function(t){this.$el.contains(t.target)||(this.isOpen=!1)},getPzCrops:function(){this.pzCrops=this.extractCropsFromLocalStorage()},removePzCrops:function(t){this.pzCrops&&this.pzCrops.length&&t&&F.a.$emit(ne.a.REMOVE_CROP,t)},extractCropsFromLocalStorage:function(){var t=!1,e=null;try{localStorage.getItem("pzCrops")&&(e=JSON.parse(localStorage.getItem("pzCrops")))}catch(e){t=!0}return!t&&e&&e.crops?e.crops:[]},retrieveData:function(){var t=this;Y.a.isPersonalizedWithAddress()||this.$store.dispatch("forms/fetchFormData",{formId:"ssp-personal-data"}).then((function(e){t.prefilledZip=Q.a.prefillLocation(e,"zipcode"),t.prefilledCity=Q.a.prefillLocation(e,"city"),(t.prefilledZip||t.prefilledCity)&&t.getLocation(t.prefilledZip,t.prefilledCity)})),Y.a.isPersonalizedWithCrops()||this.$store.dispatch("forms/fetchFormData",{formId:"ssp-occupation-information"}).then((function(e){if(e&&e.crops){var i=e.crops.map((function(e){return Q.a.getCropByAmigaCode(e,t.snConfigAllSSPCrops,"id")})).filter((function(t){return t})),a=[],s=[],n=[];i.forEach((function(t){Q.a.isGroup(t)?a.push(t):Q.a.isSubgroup(t)?s.push(t):n.push(t)})),a.length&&(t.prefilledCrops=a),(s.length||n.length)&&t.$store.dispatch("search/fetchCropStructure",{cropSubgroupId:s||void 0,cropId:n||void 0}).then((function(e){if(e){var i=e.cropgroups.map((function(t){return t.basf_code})),s=a.concat(i);t.prefilledCrops=s}}))}}))},getLocation:function(t,e){this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){Y.a.writeAddressToStorage(t),Q.a.setPzDependedCropsAddress(),F.a.$emit("update-pz-address")}))}}};var za=function(t){i("44qZ")},Ba=Object(g.a)(ja,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{class:[t.isMini?"preference-bar":"toggle-content-comp"],attrs:{id:t.id}},[t.isMini?i("div",{staticClass:"container-fluid preference-bar-mini"},[i("div",{staticClass:"d-flex flex-column flex-md-row justify-content-start justify-content-md-center align-items-start align-items-md-center"},[i("div",{staticClass:"label",domProps:{innerHTML:t._s(t.translationsPz.mini.label)}}),t._v(" "),i("div",{staticClass:"field fl-autocomplete"},[i("Autocomplete",{attrs:{id:"pzBarAddressAuto","max-results":t.maxResults,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"preferenceBar_input_city"},on:{"geolocation-error":t.setErrorMessage}}),t._v(" "),i("span",{staticClass:"error-message text-danger"},[t._v(t._s(t.error))])],1)])]):i("div",{staticClass:"toggle-content",class:{open:t.isOpen}},[i("div",{staticClass:"content-button-area",on:{click:function(e){t.isOpen=!t.isOpen}}},[i("div",{staticClass:"content-button"},[i("i",{staticClass:"icons material-symbols-sharp align-top mr-2",attrs:{"aria-hidden":"true"}},[t._v("edit")]),t._v(" "),i("span",{staticClass:"headline"},[t._v(t._s(t.translationsPz.label))])])]),t._v(" "),i("div",{staticClass:"content-area"},[t._v("\n      "+t._s(t.translationsPz.text)+"\n\n      "),i("div",{staticClass:"pzBarFrame fl-treeselect mt-2"},[i("div",{staticClass:"filter-crops"},[i("div",{staticClass:"label"},[t._v(t._s(t.translationsPz.cropLabel))]),t._v(" "),i("div",{staticClass:"input-group relativer"},[i("GlobalSelectMulti",{attrs:{placeholder:t.translationsPz.chCrop,"local-storage-tag":"pzCrops",prefilled:t.prefilledCrops,cucumber:"preferenceBar_select_crop"}})],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.pzCrops.length,expression:"pzCrops.length"}],staticClass:"row cropSelector"},[i("div",{staticClass:"col-12"},[i("div",{attrs:{"data-cucumber":"preferenceBar_element_cropList"}},t._l(t.pzCrops,(function(e,a){return i("Crop",{key:a,attrs:{data:e,cucumber:"preferenceBar_button_cropRemove"},on:{clicked:t.removePzCrops}})})),1)])])]),t._v(" "),i("div",{staticClass:"pzBarFrame fl-autocomplete mt-3"},[i("div",{staticClass:"filter-location"},[i("div",{staticClass:"label"},[t._v(t._s(t.translationsPz.locationLabel))]),t._v(" "),i("div",{staticClass:"input-group pzBarAddress-wrapper-outer"},[i("Autocomplete",{attrs:{id:t.inStickyHeader?"pzBarAddressAutoSticky":"pzBarAddressAuto","max-results":t.maxResults,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"preferenceBar_input_city"},on:{"geolocation-error":t.setErrorMessage}})],1),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("span",{staticClass:"error-message text-danger"},[t._v(t._s(t.error))])])])])])])])])}),[],!1,za,"data-v-b70083fa",null).exports;function qa(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ua(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?qa(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):qa(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ha={name:"LinkButton",props:{useLogState:{type:Boolean,default:!1},url:{type:String,default:""},urlLoggedIn:{type:String,default:""},urlLoggedOut:{type:String,default:""},target:{type:String,default:"_self"},alt:{type:String,default:""},buttonClass:{type:String,default:""},iconClass:{type:String,default:""},labelClass:{type:String,default:""},label:{type:String,default:""},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""}},computed:Ua(Ua({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{showAsLink:function(){return this.url||this.urlLoggedIn||this.urlLoggedOut},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}}),methods:{getHref:function(){var t=this.isLoggedIn?this.urlLoggedIn:this.urlLoggedOut;return this.useLogState?t:this.url},handleClick:function(){this.$emit("clicked")}}};var Ga=function(t){i("6TSK")},Wa=Object(g.a)(Ha,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.showAsLink?i("a",{class:"link-button "+t.buttonClass,attrs:{href:t.getHref(),alt:t.alt,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,t.label),target:t.target,"data-tealium-value":t.tealiumValue,"data-tealium-type":t.tealiumType,"data-tealium-category":t.tealiumCategory,"data-tealium-action":t.tealiumAction}},[t.iconClass?i("i",{class:t.iconClass,attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),i("span",{staticClass:"button-label",class:t.labelClass,domProps:{innerHTML:t._s(t.label)}})]):t._e(),t._v(" "),t.showAsLink?t._e():i("button",{class:"link-button "+t.buttonClass,attrs:{"data-tealium-value":t.tealiumValue,"data-tealium-type":t.tealiumType,"data-tealium-category":t.tealiumCategory,"data-tealium-action":t.tealiumAction},on:{click:function(e){return t.handleClick(e)}}},[t.iconClass?i("i",{class:t.iconClass,attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),i("span",{staticClass:"button-label",class:t.labelClass,domProps:{innerHTML:t._s(t.label)}})])])}),[],!1,Ga,"data-v-2721ebc6",null).exports;function Za(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ja(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Za(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Za(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ka={name:"PersonalizationSticky",components:{PreferenceBar:Ba,Toggle:Sa,LinkButton:Wa},props:{newsletterUrl:{type:String,default:""},newsletterVisible:{type:Boolean,default:!1},whereToBuyUrl:{type:String,default:""},whereToBuyVisible:{type:Boolean,default:!1},whereToBuyTealiumValue:{type:String,default:""},whereToBuyTealiumType:{type:String,default:""},whereToBuyTealiumCategory:{type:String,default:""},whereToBuyTealiumAction:{type:String,default:""},preferenceVisible:{type:Boolean,default:!1},benefits:{type:String,default:""},myServicesPrivate:{type:String,default:""},myServicesPublic:{type:String,default:""},myServicesVisible:{type:Boolean,default:!1}},data:function(){return{showBar:!1,showPreference:!1,lastScrollPosition:0,offset:80,stickyHeaderHeight:45}},computed:Ja(Ja({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{translationsPz:function(){return!(!window.snConfigPz||void 0===window.snConfigPz.translationsPZ)&&window.snConfigPz.translationsPZ}}),mounted:function(){window.addEventListener("scroll",this.onScroll),this.onScroll()},beforeDestroy:function(){window.removeEventListener("scroll",this.onScroll)},methods:{onScroll:function(){var t=this;setTimeout((function(){if(document.body.classList.contains("sticky-header")){var e=window.pageYOffset||document.documentElement.scrollTop;if(e<0)return;if(Math.abs(e-t.lastScrollPosition)<t.offset)return;var i=document.getElementById("sticky-trigger");if(i){var a=i.getBoundingClientRect();t.showBar=a.top+i.offsetHeight-t.stickyHeaderHeight<0}else t.showBar=e>t.offset;t.lastScrollPosition=e}else t.showBar=!1;t.showBar||(t.showPreference=!1)}),100)},triggerPreferenceBar:function(t){t&&t.preventDefault(),this.showPreference=!this.showPreference}}};var Ya=function(t){i("KBhG")},Qa=Object(g.a)(Ka,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"personalization-bar",class:{show:t.showBar}},[i("div",{staticClass:"container-fluid"},[i("div",{staticClass:"container"},[i("section",{staticClass:"personalization-bar-header justify-content-between"},[i("div",{staticClass:"link-wrapper"},[t.preferenceVisible?i("a",{staticClass:"link-button",class:{"theme-color":t.showPreference},attrs:{alt:t.translationsPz.button.settings,title:t.translationsPz.button.settings,target:"_blank"},on:{click:function(e){return t.triggerPreferenceBar(e)}}},[i("div",{staticClass:"arrow-down"}),t._v(" "),i("Toggle",{staticClass:"pzDisablePrefs",attrs:{clickable:!1}}),t._v(" "),i("i",{staticClass:"ml-2 d-block d-md-none",class:"icon icon-cog left",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{staticClass:"button-label d-none d-md-block",domProps:{innerHTML:t._s(t.translationsPz.button.settings)}})],1):t._e()]),t._v(" "),i("div",{staticClass:"link-wrapper"},[!t.myServicesVisible&&t.newsletterVisible&&t.newsletterUrl?i("LinkButton",{attrs:{url:t.newsletterUrl,alt:t.translationsPz.button.newsletter,"icon-class":"icon icon-mail left",label:t.translationsPz.button.newsletter,"label-class":"d-none d-md-block"}}):t._e(),t._v(" "),t.myServicesVisible&&t.myServicesPrivate&&t.myServicesPublic?i("LinkButton",{staticClass:"d-none d-md-block",attrs:{"use-log-state":!0,"url-logged-in":t.myServicesPrivate,"url-logged-out":t.myServicesPublic,alt:t.translationsPz.button.services,"button-class":"theme-color","icon-class":"icon icon-account1 left",label:t.translationsPz.button.services,"label-class":"d-none d-md-block"}}):t._e(),t._v(" "),t.whereToBuyVisible&&t.whereToBuyUrl?i("LinkButton",{attrs:{url:t.whereToBuyUrl,target:"_blank",alt:t.translationsPz.button.whereToBuy,"button-class":"theme-color","icon-class":"icon icon-location left",label:t.translationsPz.button.whereToBuy,"label-class":"d-none d-md-block","tealium-value":t.whereToBuyTealiumValue,"tealium-type":t.whereToBuyTealiumType,"tealium-category":t.whereToBuyTealiumCategory,"tealium-action":t.whereToBuyTealiumAction}}):t._e()],1)])])]),t._v(" "),i("transition",{attrs:{name:"slide"}},[t.showPreference?i("div",{staticClass:"preference-bar-wrapper"},[i("PreferenceBar",{attrs:{"in-sticky-header":!0,benefits:t.benefits},on:{close:function(e){return t.triggerPreferenceBar(e)}}})],1):t._e()])],1)}),[],!1,Ya,"data-v-624edd2d",null).exports,Xa={name:"ContactFilter",components:{Loader:Qt.a,VueSelect:St.a,GoogleMap:ya},props:{showMap:{type:Boolean,default:!1},showList:{type:Boolean,default:!1},showProductSearch:{type:Boolean,default:!0},showCountrySearch:{type:Boolean,default:!1},showContactTypeSearch:{type:Boolean,default:!1},showRegionSearch:{type:Boolean,default:!1},countryList:{type:Array,default:function(){return[]}},view:{type:String,default:""},latitude:{type:Number,default:0},longitude:{type:Number,default:0},zoom:{type:Number,default:8},width:{type:String,default:"100%"},height:{type:Number,default:500},googleKey:{type:String,default:""},iconWidth:{type:Number,default:20},iconHeight:{type:Number,default:28},iconDefault:{type:String,default:""},iconHover:{type:String,default:""},iconActive:{type:String,default:""},contactTypesList:{type:String,default:""},contactTypes:{type:Array,default:function(){return[]}}
1,optInBackgroundImage:{type:String,default:""},optInBackgroundImageWebp:{type:String,default:""},useOneTrust:{type:Boolean,default:!0},isOneTrustEnabled:{type:Boolean,default:!1}},data:function(){return{contactList:[],contactListAll:[],isLoaded:!1,flagMarkersLoaded:!1,showLoader:!1,selectedProduct:"",selectedCountry:"",selectedContactType:"",selectedMetaRegion:"",options:[],markers:[],defaultShowAmount:12,showAmount:12,totalElements:0,flagGetTotalElements:!1,showTable:!1,metaRegions:[],errors:[],initProductSearchFetched:!1,initMetaRegionsFetched:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations},config:function(){return void 0!==window.snConfig&&window.snConfig},useTeaser:function(){var t=!0;switch(this.view){case"teaser":t=!0;break;case"table":t=!1}return t},countryListSorted:function(){return Q.a.sortByText(this.countryList,"name")},contactTypesSorted:function(){return Q.a.sortByText(this.contactTypes,"name")},metaRegionsSorted:function(){return Q.a.sortByText(this.metaRegions,"metaregionName")},initFetchDone:function(){return this.initProductSearchFetched&&this.initMetaRegionsFetched}},watch:{selectedProduct:function(t,e){t!==e&&(this.flagGetTotalElements=!1)},selectedCountry:function(t,e){t!==e&&(this.flagGetTotalElements=!1)},selectedContactType:function(t,e){t!==e&&(this.flagGetTotalElements=!1)},selectedMetaRegion:function(t,e){t!==e&&(this.flagGetTotalElements=!1)},initFetchDone:function(){this.initFetchDone&&this.handleInitialContacts()}},created:function(){this.showProductSearch?this.fetchProducts():this.initProductSearchFetched=!0,this.showRegionSearch?this.fetchMetaRegions(!0):this.initMetaRegionsFetched=!0},methods:{fetchProducts:function(){var t=this;this.$store.dispatch("search/fetchProducts").then((function(e){t.options=e,t.initProductSearchFetched=!0}))},fetchMetaRegions:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.showRegionSearch&&this.$store.dispatch("main/fetchMetaRegions",{productId:this.selectedProduct.id,contactTypeId:this.selectedContactType.id,contactCountryCode:this.selectedCountry.id}).then((function(i){t.errors=[],e&&(t.initMetaRegionsFetched=!0),t.metaRegions=i})).catch((function(e){t.errors.push(e)}))},handleInitialContacts:function(){var t=this.$route.query.PRODUCT,e=null;t&&this.showProductSearch&&(e=this.options.find((function(e){return e.id===t}))),e?this.updateProduct(e):this.fetchContacts()},showMore:function(){this.showAmount+=this.defaultShowAmount,this.fetchContacts()},updateProduct:function(t){this.selectedProduct=t,this.selectedMetaRegion="",this.fetchMetaRegions(),this.fetchContacts()},updateCountry:function(t){this.selectedCountry=t,this.selectedMetaRegion="",this.fetchMetaRegions(),this.fetchContacts()},updateContactType:function(t){this.selectedContactType=t,this.selectedMetaRegion="",this.fetchMetaRegions(),this.fetchContacts()},updateMetaRegion:function(t){this.selectedMetaRegion=t,this.fetchContacts()},fetchContacts:function(){var t=this;this.isLoaded=!1;var e=Object.keys(this.selectedContactType).length?this.selectedContactType.id:this.contactTypesList;this.$store.dispatch("search/fetchContacts",{product:this.selectedProduct&&this.selectedProduct.id||"",page:0,count:this.showAmount,contactTypeId:e,contactCountryCode:this.selectedCountry&&this.selectedCountry.id||"",metaregion:this.selectedMetaRegion&&this.selectedMetaRegion.metaregionId||""}).then((function(i){t.contactList=i,t.totalElements=i.totalElements,t.useTeaser||(t.showTable=!!t.contactList.content.find((function(t){return void 0!==t["contact-address-type"]}))),t.totalElements?t.flagGetTotalElements||(t.flagGetTotalElements=!0,t.fetchContactsAll(e)):(t.markers=[],t.flagMarkersLoaded=!0),t.isLoaded=!0}))},fetchContactsAll:function(t){var e=this;this.flagMarkersLoaded=!1,this.isLoaded=!1,this.$store.dispatch("search/fetchContacts",{product:this.selectedProduct&&this.selectedProduct.id||"",page:0,count:this.totalElements,contactTypeId:t,contactCountryCode:this.selectedCountry&&this.selectedCountry.id||""}).then((function(t){e.contactListAll=t,t&&t.content&&t.content.length&&e.setMarkers(t.content),e.useTeaser||(e.showTable=!!e.contactList.content.find((function(t){return void 0!==t["contact-address-type"]}))),e.isLoaded=!0,e.flagMarkersLoaded=!0}))},setMarkers:function(t){var e=this;this.markers=[],t.forEach((function(t){t.latitude&&t.longitude&&e.markers.push({name:e.setName(t),location:e.setLocation(t),communication:e.setCommunication(t),link:t["contact-url"]||"",description:t["contact-description"]||"",image:t["contact-image"]||"",icons:{default:t["contact-type-icon-default"]||"",hover:t["contact-type-icon-hover"]||"",active:t["contact-type-icon-active"]||""},position:{lat:parseFloat(t.latitude)||"",lng:parseFloat(t.longitude)||""}})}))},setName:function(t){return("PERSON"===t["contact-address-type"]?"".concat(t["contact-salutation"]||""," ").concat(t["contact-title"]||""," ").concat(t["contact-firstname"]||""," ").concat(t["contact-patronymic"]||""," ").concat(t["contact-lastname"]||""):"".concat(t["contact-company"]||""," ").concat(t["contact-organization_unit"]||""," ").concat(t["contact-function"]||"")).trim()}
1,setLocation:function(t){return"".concat(t["contact-street-address"]||""," ").concat(t["contact-street-number"]||""," ").concat(t["contact-building"]||""," ").concat(t["contact-appartment"]||""," ").concat(t["contact-postal-code"]||""," ").concat(t["contact-village"]||""," ").concat(t["contact-locality"]||""," ").concat(t["contact-municipality"]||""," ").concat(t["contact-district"]||""," ").concat(t["contact-region"]||"").trim()},setCommunication:function(t){var e=t["contact-email"]?"".concat(t["contact-email"]," /"):"",i=t["contact-phone"]&&t["contact-phone-charge"]?"(".concat(t["contact-phone-charge"],")"):"",a=t["contact-mobile"]&&t["contact-mobile-charge"]?"(".concat(t["contact-mobile-charge"],")"):"",s=t["contact-fax"]&&t["contact-fax-charge"]?"(".concat(t["contact-fax-charge"],")"):"";return"".concat(e||""," ").concat(t["contact-phone"]||"").concat(i," ").concat(t["contact-mobile"]||"").concat(a," ").concat(t["contact-fax"]||"").concat(s).trim()},setImage:function(t){var e=t.substring(t.lastIndexOf("<picture>"),t.lastIndexOf("</picture>"));return"".concat(e)}}};var ts=function(t){i("Dh/Q")},es=Object(g.a)(Xa,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",[t.showProductSearch||t.showCountrySearch||t.showContactTypeSearch||t.showRegionSearch?i("div",{staticClass:"content-module"},[i("form",{staticClass:"color-theme",on:{submit:function(t){t.preventDefault()}}},[i("div",{staticClass:"row"},[t.showProductSearch?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("div",{staticClass:"p-3"},[i("VueSelect",{attrs:{options:t.options,selected:t.selectedProduct&&t.selectedProduct.name,placeholder:t.translations.productQuickSearch.product+" ("+t.options.length+")"},on:{callback:t.updateProduct}})],1)]):t._e(),t._v(" "),t.showCountrySearch?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("div",{staticClass:"p-3"},[i("VueSelect",{attrs:{options:t.countryListSorted,selected:t.selectedCountry&&t.selectedCountry.name,placeholder:t.translations.generalSearch.country+" ("+t.countryList.length+")"},on:{callback:t.updateCountry}})],1)]):t._e(),t._v(" "),t.showContactTypeSearch?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("div",{staticClass:"p-3"},[i("VueSelect",{attrs:{options:t.contactTypesSorted,selected:t.selectedContactType&&t.selectedContactType.name,placeholder:t.translations.generalSearch.contactType+" ("+t.contactTypes.length+")"},on:{callback:t.updateContactType}})],1)]):t._e(),t._v(" "),t.showRegionSearch?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("div",{staticClass:"p-3"},[i("VueSelect",{attrs:{options:t.metaRegionsSorted,selected:t.selectedMetaRegion&&t.selectedMetaRegion.metaregionName,placeholder:t.translations.generalSearch.region+" ("+t.metaRegions.length+")",label:"metaregionName"},on:{callback:t.updateMetaRegion}})],1)]):t._e()])])]):t._e(),t._v(" "),t.errors&&t.errors.length?i("div",{staticClass:"content-module"},[i("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[t._v("\n      "+t._s(t.translations.common.errorMsg)+"\n    ")])]):t._e(),t._v(" "),t.flagMarkersLoaded&&t.showMap&&t.contactList&&t.contactList.content&&t.contactList.content.length?i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("GoogleMap",{attrs:{latitude:t.latitude,longitude:t.longitude,zoom:t.zoom,width:t.width,height:t.height,"markers-object":t.markers,"google-key":t.googleKey,"icon-width":t.iconWidth,"icon-height":t.iconHeight,"icon-default":t.iconDefault,"icon-active":t.iconActive,"optin-background-image":t.optInBackgroundImage,"optin-background-image-webp":t.optInBackgroundImageWebp,"is-one-trust-enabled":t.isOneTrustEnabled,"use-one-trust":t.useOneTrust}})],1)])]):t._e(),t._v(" "),t.showList?i("div",{staticClass:"content-module"},[t.contactList&&t.contactList.content&&t.contactList.content.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[t.useTeaser?[t.isLoaded&&t.contactList.numberOfElements>0?i("div",{staticClass:"swiper-wrapper-outer not-initialized no-slide",class:["slides-count-"+t.contactList.numberOfElements],attrs:{"data-size":"small"}},[i("div",{staticClass:"swiper"},[i("div",{staticClass:"swiper-wrapper contact-teaser"},[t._l(t.contactList.content,(function(e,a){return[i("div",{key:a,staticClass:"swiper-slide",domProps:{innerHTML:t._s(e.snippet)}})]}))],2)])]):t._e()]:[t.showTable?i("table",{staticClass:"table responsive-table"},[i("caption"),t._v(" "),i("thead",[i("tr",[i("th",{attrs:{scope:"col"},domProps:{innerHTML:t._s(t.translations.common.name)}}),t._v(" "),i("th",{attrs:{scope:"col"},domProps:{innerHTML:t._s(t.translations.common.address.label)}}),t._v(" "),i("th",{attrs:{scope:"col"},domProps:{innerHTML:t._s(t.translations.common.communication)}}),t._v(" "),i("th",{attrs:{scope:"col"},domProps:{innerHTML:t._s(t.translations.common.picture)}})])]),t._v(" "),i("tbody",t._l(t.contactList.content,(function(e,a,s){return i("tr",{key:s},[i("td",{attrs:{"data-title":t.translations.common.name}},[i("div",[t._v(t._s(t.setName(e)))])]),t._v(" "),i("td",{attrs:{"data-title":t.translations.common.address.label}},[i("div",[e["contact-street-address"]||e["contact-street-number"]||e["contact-building"]||e["contact-appartment"]?i("p",[e["contact-street-address"]?i("span",[t._v(t._s(e["contact-street-address"])+" ")]):t._e(),t._v(" "),e["contact-street-number"]?i("span",[t._v(t._s(e["contact-street-number"])+" ")]):t._e(),t._v(" "),e["contact-building"]?i("span",[t._v(t._s(e["contact-building"])+" ")]):t._e(),t._v(" "),e["contact-appartment"]?i("span",[t._v(t._s(e["contact-appartment"])+" ")]):t._e()]):t._e(),t._v(" "),e["contact-postal-code"]||e["contact-village"]||e["contact-locality"]||e["contact-municipality"]||e["contact-district"]||e["contact-region"]?i("p",[e["contact-postal-code"]?i("span",[t._v(t._s(e["contact-postal-code"])+" ")]):t._e(),t._v(" "),e["contact-village"]?i("span",[t._v(t._s(e["contact-village"])+" ")]):t._e(),t._v(" "),e["contact-locality"]?i("span",[t._v(t._s(e["contact-locality"])+" ")]):t._e(),t._v(" "),e["contact-municipality"]?i("span",[t._v(t._s(e["contact-municipality"])+" ")]):t._e(),t._v(" "),e["contact-district"]?i("span",[t._v(t._s(e["contact-district"])+" ")]):t._e(),t._v(" "),e["contact-region"]?i("span",[t._v(t._s(e["contact-region"])+" ")]):t._e()]):t._e(),t._v(" "),e["meta-region-id"]?i("p",t._l(e["meta-region-id"],(function(a,s){return i("span",{key:s},[t._v(t._s(a)),s!==e["meta-region-id"].length-1?[t._v(", ")]:t._e()],2)})),0):t._e()])]),t._v(" "),i("td",{attrs:{"data-title":t.translations.common.communication}},[i("div",[e["contact-email"]?i("p",[i("a",{staticClass:"mail-link",attrs:{href:"mailto:"+e["contact-email"],title:t.translations.dynamicteaser.contactTeaser.titleAttribute.email,"data-teal
1ium-category":e["contact-type"]?"contact_"+e["contact-type"]:"contact","data-tealium-value":"contact_teaser_email","data-tealium-type":"action","data-tealium-action":"button_click"}},[t._v("\n                        "+t._s(e["contact-email"])+"\n                      ")])]):t._e(),t._v(" "),e["contact-phone"]?i("p",[i("a",{attrs:{href:"tel:"+e["contact-phone"],title:t.translations.dynamicteaser.contactTeaser.titleAttribute.phone,"data-tealium-category":e["contact-type"]?"contact_"+e["contact-type"]:"contact","data-tealium-value":"contact_teaser_phone","data-tealium-type":"action","data-tealium-action":"button_click"}},[i("i",{staticClass:"icon icon-phone",attrs:{"aria-hidden":"true"}}),t._v("\n                        "+t._s(e["contact-phone"])+"\n                      ")]),t._v(" "),e["contact-phone-charge"]?i("span",[t._v("("+t._s(e["contact-phone-charge"])+")")]):t._e()]):t._e(),t._v(" "),e["contact-mobile"]?i("p",[i("a",{attrs:{href:"tel:"+e["contact-mobile"],title:t.translations.dynamicteaser.contactTeaser.titleAttribute.mobile,"data-tealium-category":e["contact-type"]?"contact_"+e["contact-type"]:"contact","data-tealium-value":"contact_teaser_phone","data-tealium-type":"action","data-tealium-action":"button_click"}},[i("i",{staticClass:"icon icon-phone",attrs:{"aria-hidden":"true"}}),t._v("\n                        "+t._s(e["contact-mobile"])+"\n                      ")]),t._v(" "),e["contact-mobile-charge"]?i("span",[t._v("("+t._s(e["contact-mobile-charge"])+")")]):t._e()]):t._e(),t._v(" "),e["contact-fax"]?i("p",[i("i",{staticClass:"icon icon-print",attrs:{"aria-hidden":"true"}}),t._v("\n                      "+t._s(e["contact-fax"])+"\n                      "),e["contact-fax-charge"]?i("span",[t._v("("+t._s(e["contact-fax-charge"])+")")]):t._e()]):t._e(),t._v(" "),e["contact-url"]?i("p",[i("a",{staticClass:"external-link",attrs:{href:e["contact-url"],title:t.translations.dynamicteaser.contactTeaser.titleAttribute.url,"data-tealium-category":e["contact-type"]?"contact_"+e["contact-type"]:"contact",target:"_blank",rel:"noopener","data-tealium-value":"contact_teaser_url","data-tealium-type":"action","data-tealium-action":"button_click"}},[t._v("\n                        "+t._s(e["contact-url"])+"\n                      ")])]):t._e()])]),t._v(" "),i("td",{attrs:{"data-title":t.translations.common.picture}},[e["contact-image"]?i("div",{domProps:{innerHTML:t._s(t.setImage(e.snippet))}}):t._e()])])})),0)]):t._e()]],2)]):i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4 text-center"},[t._v("\n        "+t._s(t.translations.common.noResults)+"\n      ")])])]):t._e(),t._v(" "),t.isLoaded?i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[t.contactList&&t.contactList.totalElements>t.showAmount?i("button",{staticClass:"button button-full-width",on:{click:function(e){return t.showMore()}}},[t._v("\n          "+t._s(t.translations.generalSearch.showMore)+"\n        ")]):t._e()])])]):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":!t.isLoaded,"is-full-screen":!0}})],1)}),[],!1,ts,null,null).exports,is={name:"FarmerProfileSearchFilter",components:{},props:{regions:{type:Array,default:function(){return[]}}},data:function(){return{selectedRegion:[],selectedText:"",filter:{},errors:[]}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||!window.snTranslations.farmer)&&window.snTranslations.farmer}},methods:{updateRegion:function(t){this.isSelected(t)?this.selectedRegion=this.selectedRegion.filter((function(e){return e.id!==t.id})):this.selectedRegion.push(t),this.filterBy()},isSelected:function(t){return!!this.selectedRegion.find((function(e){return e.id===t.id}))},filterBy:function(){this.filter.region=this.selectedRegion,this.filter.text=this.selectedText.replaceAll(" ","\\ "),this.$emit("filter-by",this.filter)}}};var as=function(t){i("NDek")},ss={name:"FarmerProfileSearch",components:{FarmerProfileSearchFilter:Object(g.a)(is,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"farmer-search-filter-wrapper"},[i("div",{staticClass:"row farmer-search-filter"},[i("div",{staticClass:"col"},[i("form",{staticClass:"color-theme",on:{submit:function(t){t.preventDefault()}}},[i("div",{staticClass:"row"},[t.regions.length?i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-6"},[i("label",[t._v("\n              "+t._s(t.translations.search.label.regi
1on)+"\n              "),t.selectedRegion.length?i("span",[t._v("("+t._s(t.selectedRegion.length)+")")]):t._e()]),t._v(" "),[i("ul",{staticClass:"region-wrapper"},t._l(t.regions,(function(e,a){return i("li",{key:a,class:{active:t.isSelected(e)}},[i("span",{staticClass:"mr-3",on:{click:function(i){return i.preventDefault(),t.updateRegion(e)}}},[t._v("\n                    "+t._s(e.label)+"\n                  ")])])})),0)]],2):t._e(),t._v(" "),i("div",{staticClass:"col-xs-12 col-sm-6 col-lg-4"},[i("label",[t._v(t._s(t.translations.search.label.name))]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedText,expression:"selectedText"}],staticClass:"form-control",attrs:{placeholder:""+t.translations.search.placeholder.name,type:"text"},domProps:{value:t.selectedText},on:{input:[function(e){e.target.composing||(t.selectedText=e.target.value)},function(e){(t.selectedText.length>2||0===t.selectedText.length)&&t.filterBy()}]}})])])])])])])}),[],!1,as,"data-v-72d89414",null).exports},props:{metaregions:{type:String,default:""}},data:function(){return{farmerListData:{},farmerListDataContent:[],showAmount:9,page:0,errors:[],currentText:"",currentRegion:[],contactTypeList:["CONTACT_FARMER"],regions:[]}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return window.snTranslations||!1}},mounted:function(){this.fetchData()},methods:{setFilters:function(t){this.page=0,this.farmerListData=[],this.farmerListDataContent=[],this.currentRegion=t.region&&t.region.map((function(t){return t.id})),this.currentText=t.text,this.fetchData()},fetchData:function(){var t=this;this.regions=this.metaregions?JSON.parse(this.metaregions):"",this.$store.dispatch("search/fetchContacts",{page:this.page,count:this.showAmount,contactTypeList:this.contactTypeList,letterName:this.currentText,metaregion:this.currentRegion}).then((function(e){var i;(t.errors=[],t.farmerListData=[],t.farmerListData=JSON.parse(JSON.stringify(e)),t.farmerListData.numberOfElements)?t.farmerListDataContent=(i=t.farmerListDataContent).concat.apply(i,O()(Object.values(t.farmerListData.content))):t.farmerListDataContent=[]})).catch((function(e){t.errors.push(e)}))},showMore:function(t){this.page+=1,this.scrollToPosition(t),this.fetchData()},scrollToPosition:function(t){var e=t.target.offsetTop;window.scrollTo({top:e,behavior:"smooth"})}}};var ns=function(t){i("Cxdv")},os=Object(g.a)(ss,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"farmer-search-wrapper"},[i("div",{staticClass:"content-module"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FarmerProfileSearchFilter",{attrs:{regions:t.regions},on:{"filter-by":t.setFilters}})],1)])]),t._v(" "),i("div",{staticClass:"content-module"},[t.farmerListDataContent.length&&!t.errors.length?i("div",{staticClass:"row teaser teaser-row contact-teaser"},[t._l(t.farmerListDataContent,(function(e,a){return[i("div",{key:a,staticClass:"col-md-4 col-sm-6"},[i("div",{staticClass:"swiper-slide",domProps:{innerHTML:t._s(e["snippet-farmer"])}})])]}))],2):t._e(),t._v(" "),!t.farmerListData.last&&!t.errors.length&&t.farmerListData.numberOfElements>1?i("button",{staticClass:"button button-full-width",on:{click:function(e){return e.preventDefault(),t.showMore.apply(null,arguments)}}},[t._v("\n      "+t._s(t.translations.common.showMore)+"\n    ")]):t._e(),t._v(" "),t.farmerListData.numberOfElements<1?i("div",{staticClass:"alert alert-light",attrs:{role:"alert"}},[t._v("\n      "+t._s(t.translations.common.noResults)+"\n    ")]):t._e(),t._v(" "),t.errors&&t.errors.length?i("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[t._v("\n      "+t._s(t.translations.common.errorMsg)+"\n    ")]):t._e()])])}),[],!1,ns,"data-v-e7ba5c26",null).exports,rs={name:"VirtualFarmMapElement",props:{element:{type:Object,default:function(){return{}}},type:{type:String,default:""},label:{type:String,default:""},zIndexMap:{type:Object,default:function(){return{}}}},data:function(){return{clipPath:{crops_field_apple:"M259.2,132.8l5.9-4.1l2.6-6.7l1-6.9l-3.4
1-10v-6.3l-4.9-4.3l-6-1.8l-7.5,0.2l-5.7,2.1l-1-7.1l-2.1-3.8l-3.6-1l-7.8-1l-5.8,1 V78v-3.6l-4.1-3.4l-6.3-2.2h-5.1l-5,2.2l-1.4-4.3l-4.3-4l-4.3-2.3l-6.1-0.8h-4.3l-1-3.8l-2.6-6.3l-5.3-2.8l-8.1-1.5l-4.3,0.3 l-2.8-6.3l-5.1-2.5l-6-2.1l-4.3,2.1l-2.4-2.4l-0.8-6.5l-2.9-3.8l-5-0.9l-6.2-0.3l-5.2,1.2l-1.5-5.6l-3.1-2.6l-4.1-2.1H102l-4.3,2 l-2.4-3.1V8.2l-0.1-4.7L90.2,0H79.1l-6.2,2l-2.2,4.9v6.3h-8.6l-6.9,1.6l-6.9,5.1v5.6L45,28l-4.1-3.8H32l-9.9,3.7l-2.4,7.5l-2.4,1.3 l-1.5,12.9v8l2.6,3.2L0,71l0,0c0,0,0,6.2,0,9.3l201.6,110.5l73.4-40.1v-9.3L259.2,132.8z",crops_field_greenhouse_crops:"M276.6,118.7L157.1,53.4c0-1.9-0.5-3.2-1.1-4.2c-0.1-0.1-0.1-0.1-0.2-0.2c-0.5-0.6-1.1-1.1-1.8-1.4c-0.5-0.2-1-0.4-1.6-0.5c0,0-0.1,0-0.1-0.1c0.3,0,0.6,0.1,0.9,0.2l-7.9-3.9c-11.1-6-38.8-21.2-57.6-31.4l-1.1-0.6l-3.7-2l0,0l-1.2-0.6L69.1,1.9L69.1,2l-3.5-1.9l0,0l-0.2,0l0,0C65,0,64.5,0,63.9,0c-0.6,0-1.2,0.1-1.8,0.3c-0.6,0.2-1.1,0.4-1.6,0.7L60.3,1c-0.5,0.3-1.1,0.6-1.8,1c-0.7,0.4-1.4,0.9-2.1,1.4l-0.2,0.2c-1.2,1-2.4,2.1-3.4,3.3l0,0c-0.2,0.3-0.4,0.5-0.6,0.8c-0.7,1-1.3,2-1.8,3.1c-0.1,0.2-0.2,0.4-0.3,0.6c-0.2,0.5-0.4,1-0.6,1.5c-0.3,0.7-0.5,1.5-0.6,2.3c-0.2,0.9-0.3,1.9-0.3,2.8l0,0v0l0,0v0.2L42.5,15l0.1,0.1l-3.5-1.9l0,0l-0.2,0l0,0c-0.5-0.1-1-0.1-1.5-0.1c-0.6,0-1.2,0.1-1.8,0.3c-0.6,0.2-1.1,0.4-1.6,0.7l-0.2,0.1c-0.5,0.3-1.1,0.6-1.8,1c-0.7,0.4-1.4,0.9-2.1,1.4l-0.2,0.2c-1.2,1-2.4,2.1-3.4,3.3l0,0c-0.2,0.3-0.4,0.5-0.6,0.8c-0.7,1-1.3,2-1.8,3.1c-0.1,0.2-0.2,0.4-0.3,0.6c-0.2,0.5-0.4,1-0.6,1.5c-0.3,0.7-0.5,1.5-0.6,2.3c-0.2,0.9-0.3,1.9-0.3,2.8l0,0v0l0,0v6.1L1.6,48.6l0,0v9.3l201.6,110.1l73.4-39.9V118.7z",crops_field_citrus:"M252.4,89.1L80.4,0.2H62.1L20.3,24.4l-17,16.5l0.9,28.7L0,71.8l0,0c0,0,0,6.2,0,9.3l201.6,110.5l73.4-40.1v-6.7v-2.6V100L252.4,89.1z",crops_field_stone_fruits:"M266.9,134.4V97.5L81.9,0H60.4L10.3,37.6v25.2L0,68.4l0,0c0,0,0,6.2,0,9.3l201.6,110.5l73.4-40.1v-9.3L266.9,134.4z",center_topics_soil_nitrogen_management:"M0,40.1 0,49.4 201.6,159.9 275,119.8 275,110.5 274.2,107.5 263.1,101.5 259.6,102.1 73.4,0 64.8,4.7 61,3 45.7,11.3 46.7,14.6 13.4,32.8 9.5,31.2 2,35.5 0.9,39.6z",center_topics_trial_access_beachflags:"M201.4,181.4L-0.4,70.8v-9.3L65,25.8c0,0-2.1-4.8-1.5-6c0.6-1.2,2.1-1,1.8-1.9c-0.3-0.9-2-2.2-1.6-3.5s0.5-2.1,0-3.2c-0.5-1,1.6-5,2.8-5.3c1.2-0.3,4,0.1,5.7,2.2c0,0,2.2-1.4,1.9-1.9s-2.2-3.3,0.1-4.7c0,0,1.3-1.5,4-0.5c0,0,2.6,0.3,2.5,2.6c0,0,2.4,2.4,2.5,3c0.1,0.6,0.4,3.2,0.4,3.2s3.1-1,3.3-2.7c0,0,2.3-3.9,5-1.5c0,0,2.9,3.3,1.9,6.8c0,0-0.6,3.9-0.5,4.1s1.6,2.8,1.4,3.6s-1.8,7-5.9,9.7L118.3,46V27c0,0-1.2-18.8,11.2-20.2h3.5l-1,36.5c0,0,0.6,4.2-4.5,7.5L169.3,74V46.7c0,0,1.6-12.8,9.6-13.3h5.4l-1.2,38.7c0,0-3,6.3-5.3,6.3l0.3,0.7l42,22.9V77.7c0,0,1.1-18.2,10.8-17.9h4.6l-1.3,36.8c0,0-0.9,8.2-7.5,9l48,26.4v9.1L201.4,181.4z",fallback_images_flowering_strip_s:"M275.2,119.4 275.2,128.9 201.3,169 0.2,59.2 0.2,35.4 67,0.4 86.1,0.3 274.9,110.8z",fallback_images_land_bushes_trees_s:"M275,127.2v9.3l-73.4,40.1L0,66.1l0-9.5l4-2.7c0,0,0.2-5.8,0.8-6.5c0.4-0.5,1-0.8,1.7-0.9c0,0-1.9-6.3-1-8c0.8-1.6,3-2.5,3-2.5s-1.8-2.8-0.9-4.7s1.2-4.4,3.4-3.7s5.4,3.8,5.4,3.8l2.6,2.6l0.2-2.5c0,0-2-4.1-1.2-5.6c0.8-1.4,4.7-2.5,4.7-2.5l3.6,3l2.6,0.4l2.1-2.1c0,0-1.6-4.7-0.5-5.9s2.4-3.1,3.9-2.7c1.5,0.4,3.9,3.3,3.9,3.3l1.4,2.5l1.8,0.6v1.6l-0.4,1.2l2.1,1.2l-1.8,2.8l0.7,3.6c0,0,1.4-3.6,2.5-4.4c1.1-0.8,4-1,4-1s-1.1-3.6-0.3-3.9S48,17.2,48,17.2s-2-8-0.3-9.1c1.7-1.1,6.2-1.2,7.1,0c0.8,1.2,2.6,4.1,2.6,4.1l1.5,0.7c0,0-0.7-4.9-0.8-5.6s0.8-5.7,1.6-6.4c0.8-0.7,5.9,0,6.5,0.8c0.6,0.8,2,4,2,4l1.3-2.2c0,0-0.3-2.6,0.3-2.9C70.4,0.3,72.6,0,72.6,0h2.3l8.5,7.5c0,0,1.7-2.4,2.9-2.4s5.1,2.2,6.3,3.8s3,3.4,3,3.4l-0.7,1.5l2,2.2l-1.5,3.1l0.8,4.1l2-1l1.2,3.9c0,0,0.9,2,6.1,4.2l1.9,3.9l76.1,42.4l21.2,11.7c0,0,4.3-8.4,5.8-8.7c1.5-0.3,5.9,2.8,5.9,2.8l1.3,1.8c0,0-2.1-9.4-0.4-10.1c1.7-0.7,7.5-1.5,9.3,0c1.8,1.5,2.8,5,2.8,5l6.3,0.7l5.7,3.3l1.2,2.4l3.6,0.9l7.9,1.7l2.2,3.7l1.4,1.1l3.4-0.2l5.4,1l2.6,2.3l0.4,2.2l2.2,1l1.6-0.4l1.5,3.5v18.6l-4.1,2.4l0.6,1.9L275,127.2z",fallback_images_windmill_meadow_s:"M275,126.9v9.3l-73.4,40.1L0,65.8v-9.3l73-39.9L115.2,40l2.9,1.6l0.4-4.9l-8-5.7l0.2-5.3l2.9-0.2l7.4,4.2L108.1,0.4l2.6-0.4L125,29.9l-0.5,1.7c0,0,4.5,1.8,4.8,3.7l22.5,1.5l-0.3,2.1c0,0-18.6,2.1-23.1,0.6c0,0-2.9,1.1-3.9,0.5l-1,4.3l42.1,23.2l2.5-5.1v-3.7c0,0-8.2-5-8.7-6.2c-0.5-1.1,0.9-4.9,0.9-4.9l2.4,0.1l6.7,3.7l-12.2-29.1l1.5-0.5c0,0,15.1,27.3,15.2,29.5l-0.3,2.6c0,0,5.
11,1.9,5.1,3.4l21.8,1.5l0.2,2.1c0,0-19.5,1.7-23.5,0.6c0,0-3.7,0.7-4.2,0.5l-0.5,8.9l40.9,22.3l3.7-8.9l-0.1-3.7c0,0-7.7-5.1-8.3-6.5l0.2-4.5l1.7,0.1c0,0,6.2,2,7.9,3.7l-12.4-29.1l1.9-0.7c0,0,15.1,28.4,15.1,30l-0.5,2.2c0,0,3.9,1,4.8,3.1c0,0,20.6-0.1,21.8,1.8l-0.1,1.8c0,0-17.7,3.1-23.1,1c0,0-2.4,0.4-3.5,0.5l-1.2,13.7L275,126.9z",fallback_images_barley_and_wheat_field_s:"M15.4,32.4c2.8-1.7,5-3,6.6-3.9c2.6-1.5,3.7-2,4.1-2c1,0,3.8-1.5,3.8-1.5l2.3-2.2l2.8-0.3l1.2-2.8h4l1.3-1.7h1.9l1.3-3.3l1.9,1.1l2.1-1.1l2.3-3.1l3.8-1.3l1.6-1.6l3.5-1.3L63.1,5l3.7-1.3l4-2.4h2.9l2.7,2.7l4.5,0.5l1.6,0.8l4.3,2.1l2.4,1.9l2.4,1.3l2.2,1.3l2.6,1.1l2.1,2.9v6.9l2.4-1.6l3-1.5h4.1l2.7,2.5l3.5,2.1l4,1.1l2.9,2.4l3.9,1.6l2,1.3l3.1,1.9l1.2,3.6l1.1,4.9l3.2-1.5l2.1-1.2h2.3l8.5,2.7l3.1,2.2l4.5,2.4l4.2,2.7l4.2,2.6l0.4,10.6l1.6,2l1.9-3l1.3-1.9l1.9-1.7h5.6l5,1.7h8l2.1,2.7l1.6,2.8h2.1l1.6,3.4l0.3,5.3l-0.3,4.1l-0.5,5.7l2-1.5l2.8-1.4l1.3-2.8l3.7-2l2.7,2l2.7-2h6.7l1.9,2h6.9v3l2.6,1.1l3.5,3.1V103l1.2-2l3.3-1.6h2.9l1.3-3.4l1.9,1.8l5.3-1.8h3.7l2.4,1.5l3.7,0.3l2.4,1.6l2.2,1.1l2.8,2.7l1.6,4.1v15.1l6.6,3.7v9.3l-73.4,40.1L0,64.9v-9.3l3.3-1.8l-0.5-6.4L4,48.1l-1.2-8L15.4,32.4z",crops_field_corn:"M320,52L232.9,0c0,0-23.5,0-24.3,0S0,118.4,0,118.4v46.7l0,0l0,0v1.8v7.6l100.5,55.1L320,109.6v-9.3l0,0L320,52z",crops_field_potato:"M320,69.2 314.2,66 314.2,54.8 308.4,46.8 305.8,39.7 294.6,38.1 291.1,44.8 286.7,41.3 285.3,32.1 263.1,21 260.8,17.3 249.4,12.6 244.2,15.5 237.7,14.2 234.6,6.6 223.3,-0.1 208.7,-0.1 207.7,6.6 204.2,10.2 194.7,10.2 184.8,14.2 183.3,19.4 171,25.3 163.8,25.3 148.6,33.8 134.4,41.3 133.3,46.4 125,50.8 107.1,59.5 104.4,63.2 93.8,66.7 71.6,75.9 40,93.2 3.5,116.6 3.5,121 5.8,125 6.6,130.5 0.2,134 0.2,134 0.2,134 0.2,134 0.2,134 0.2,143.3 100.7,198.3 320,78.5z",crops_field_olive:"M320,43.6 237.4,0 199.6,0 0,108.2 0,147.5 0,147.5 0,147.5 0,149.9 0,156.7 100.5,211.8 320,91.9 320,82.7 320,82.7z",crops_field_sunflower:"M320,80.4 317.7,79.2 317.7,35.2 240.1,0 188.9,0 3.7,98.3 3.7,143.3 0,145.2 0,145.2 0,145.2 0,145.2 0,145.2 0,154.5 100.5,209.6 320,89.7z",crops_field_cotton:"M320,57.7 307.7,51 307.7,42 243,5.9 230.5,2.6 222.3,0 218.5,0 11.5,109.3 11.5,116.2 0,122.5 0,122.5 0,122.5 0,122.5 0,122.5 0,131.8 100.5,186.9 320,67z",crops_field_lettuce:"M320,55.1 219.5,0 0,119.9 0,119.9 0,119.9 0,119.9 0,119.9 0,129.2 100.5,184.3 320,64.4z",crops_field_rapeseed_osr:"M320,44.3 223.3,0 214.8,0 0,115.8 0,141.7 0,146.7 0,151 100.5,206.1 320,86.2 320,76.9 319.8,76.8z",crops_field_soybean:"M320,68.1 314.4,65.1 314.4,51.1 228.5,0 207.4,0.1 2.5,115.2 2.5,131.6 0,132.9 0,132.9 0,132.9 0,132.9 0,132.9 0,142.2 100.5,197.3 320,77.4z",crops_field_vegetables:"M316.4,57.3 315.4,45.7 231.8,0 218.2,0 13.4,111.1 13.4,116.8 0,124.1 0,124.1 0,133.4 100.5,188.5 320,68.6 320,59.3z",crops_field_wheat:"M320,68.2 316.1,66.1 316.1,50.1 226.8,1.1 211.6,1.2 4.7,111.6 4.7,130.5 0,133 0,133 0,133 0,133 0,133 0,142.3 100.5,197.4 320,77.5z",crops_field_wine_grapes:"M320,76 285.4,57 285.4,43.3 274.6,39 274.6,27.6 269,19.7 232,16.2 231,7.7 226.2,0 207.9,0 178.3,7.7 103.4,43.3 58.4,74.2 22.7,105.5 24.3,127.5 0,140.8 0,140.8 0,140.8 0,140.8 0,140.8 0,150.1 100.5,205.2 320,85.3z",crops_field_rye:"M320,68.2 316.1,66.1 316.1,50.1 226.8,1.1 211.6,1.2 4.7,111.6 4.7,130.5 0,133 0,133 0,133 0,133 0,133 0,142.3 100.5,197.4 320,77.5z",crops_field_triticale:"M320,68.2 316.1,66.1 316.1,50.1 226.8,1.1 211.6,1.2 4.7,111.6 4.7,130.5 0,133 0,133 0,133 0,133 0,133 0,142.3 100.5,197.4 320,77.5z",crops_field_sugar_beet:"М320,50.9 227.6,0 216.3,0 5.8,113.2 5.4,120.5 0,123.5 0,123.5 0,123.5 0,123.5 0,123.5 0,132.7 100.5,187.8 320,67.9 320,58.6 320,58.6z",crops_field_barley:"M320,75.4 315.7,73 316.2,56 223.6,0 213.9,0 1.9,123.3 1.9,139.2 0,140.2 0,140.2 0,140.2 0,140.2 0,140.2 0,149.5 100.5,204.6 320,84.7z",crops_field_tomato:"M320,55.1 219.5,0 0,119.9 0,119.9 0,119.9 0,119.9 0,119.9 0,129.2 100.5,184.3 320,64.4z",crops_field_rice:"M320,55.1 219.5,0 0,119.9 0,119.9 0,119.9 0,119.9 0,119.9 0,129.2 100.5,184.3 320,64.4z",center_topics_digital_services_xarvio:"M319.9,56.8v9.1L100.3,186L-0.1,130.8v-11.4l44.4-24.1c0,0-2.5-10.8,5.3-18.9s22.5-5,22.5-5l-1,3.7c0,0-14.4,1.3-17.3,5c-3.7,4.7-3.7,6.9-4.4,11.7l5.8-3.1c0,0,2.5-9.8,15.7-10.2l4.4,0.1L218.9,0.9l101,53.4L319.9,56.8z",center_topics_dlg_feldtage_de:"M316.46 71.55 307.56 66.66 307.42 27.95 259.42 0 234.95 0 213.09 21.72 165.22 47.91 164.95 46.12 162.63 45.63 159.25 46.12 158.13 48.65 158.78 51.42 149.94 56.26 148.76 54.98 145.23 55.8 144.48 59.25 140.16 61.61 140.16 56.95 137.79 56.95 131.93 51.4 130.55 48.92 130.55 46.12 109.68 27.04 108.62 26.54 108.62 25.76 107.57 24.3 105.34 24.3 103.09 25.05 101.45 28.32 70.59 37.05 69.41 39.52 53.6 43.47 53.6 108.64 53.6 108.96 46.74 112.71 46.74 111.04 46.74 108.86 46.09 106.24 43.78 105.87 40.8 106.38 39.16 108.64 39.94 109.98 39.94 111.94 39.51 113.11 38.85 117.03 34.81 119.24 34.1 116.33 33.07 115.18 32.04 114.63 31.29 112.71 30.47 112.65 29.8 111.25 27.88 111.25 25.59 110.69 24.23 112.37 21.51 111.94 20.17 112.94 19.05 112.81 18.54 113.76 17.52 117.01 16.14 121.31 17 122.6 15.88 123.04 14.45 122.95 13.16 123.5 10.84 123.77 10.4 125.6 9.46 126.4 8.87 129.18 7.12 129.54 6.81 133.11 8.46 133.65 7.25 134.31 0 138.28 0.02 139.15 0.02 147.67 100.52 202.76 320 82.86 320 73.58 316.46 71.55z",center_topics_carbon_farming:"M219,0l30,16,7-6,64,33V65L99,184,0,128v-8L73,81l8-10,7,1Z",fallback_images_flower_meadow_m:"M320,64.8 100.6,184.5 0,129.6 0,116.7 209.7,-0.1 223.1,-0.1 319.9,51 320,54.9z",fallback_images_flowering_strip_m:"M320.3,67.5 316.4,65.4 316.4,49.4 227.3,0.6 209.7,-0.1 0.3,112.4 0.6,133 1.1,132.9 1.1,141.4 101.3,196.4 320.3,76.8 320.3,67.5z",fallback_images_land_bushes_trees_m:"M320,74.4v9.3L100.5,203.6L0,148.5v-9.2l7.7-4.7c0,0-0.4-5-0.4-5.6s0.4-2.5-0.8-2.9s-2.8-2.7-2.7-3.5c0.1-0.8,1.2-1.9,1.1-2.8c-0.1-0.9-0.9-7.9,0.1-8.5c0.9-0.7,4.7-5.2,5.5-4.7c0.8,0.5,4.9,2,4.9,2l2.3,2.7l2-6.2l3.3-3.2l4.6,0.4l3.6,1.4l1.1,3.2v2.9l0.6-1.2l-0.6-6.3l4.1-6.6l4.4-0.3l4,1.8l2.4-6.7l5.6-2.1l5.1,1.7l2.4,4l0.5,7.8c0,0,3.1-8.1,3.8-8.1s5.3-0.7,5.3-0.7l3.3,7.2l113.3-62.9l2-4.7l5.7-3.5l1.3,0.6l0.9-2.6l-3-3.4l0.8-12.9l5.8-3.1l3.3,3.1l3.1-0.9c0,0,4-4.6,4.9-4.3c1,0.3,2.7-0.9,2.7-0.9s2.7-4.3,3.4-4c0.7,0.2,4.7,1.4,5,1.8s2.4,0.3,2.4,0.3l1.6,4.9l0.7,3.3c0.1,0.6,0.2,1.2,0.3,1.9c0.1,0.4,0.2,0.8,0.4,1.1l0.1-4l0.1-3.8c0,0,3.7-4.5,4.6-4.4c0.9,0.1,3.5,1.7,3.5,1.7l1.8,1.4l1.3-0.6l1.6,4.9l-0.9,1.6l1.5,2.4l-0.6,1.7l1.6,1.1l-1,2.3h1.5l0.3-3l3.3-3.8l2.3,0.3l0.6,1l1.6,0.4v1.3h1.9l0.8-0.9l0.8,1.8l1.3,2.3l-1.5,2.5l2,1.6l-0.3,2.1l1.6,1.8l-1.4,1.8l1.8-0.2c0,0,0.2-2.9,1.1-3.8s3.5,0.2,3.5,0.2s0-2.3,0.2-2.5c0.2-0.2,2.2-1.1,3-0.7c0.8,0.4,1.4,1.9,1.4,1.9l1,1.9l0.9,0.4c0,0,0.8-2,1.2-2.1c0.4-0.1,3,0.9,2.8,1.4s-0.4,1.7-0.4,1.7l1.9,0.7l0.3,0.9l1.8-0.2l0.2-0.7l1.1,1.1l-0.2,0.8l0.7,0.6c0,0-0.5,0.7-0.4,0.9c0.2,0.2,0.4,0.4,0.7,0.6c0,0,1.6-0.4,2-0.2c0.4,0.3,1.4,0.7,1.5,1c0.2,0.5,0.5,0.9,0.8,1.4c0.3,0.4,0.5,0.9,0.5,1.4c0,0.4,0.8,0.3,0.8,0.3s0.7-1.5,1.2-1.8c0.5-0.3,2.2-0.1,2.5,0.2s0.5,1.8,0.5,1.8s0.6,1,1.5,1c0.8-0.
11,1.2,1.1,1.2,1.1s1.3,0.2,2-0.5c0,0,1,0.9,1,1.2c0,0.4,0.3,2.1,0.3,2.1l0.8,1.4l-1.3,1.3c0.5,0.2,0.9,0.5,1.2,0.9c0.3,0.5,0.3,1.5,0.3,1.5l0.4,1.2l-0.8,0.5l1,0.2l0.6,1.2c0-0.5,0.1-1,0.3-1.4c0.2-0.3-0.1-1.5-0.1-1.5s1.2-1.6,1.5-1.8c0.3-0.1,1-2.7,2.2-2.8c1.2-0.1,2.9,0,3.1,0.7c0.2,0.7,0.9,0.9,1,1.1c0.1,0.2,1.9,0.8,1.9,0.8l1.2,0l0.3,1.4l0.7,1c0.4,0.2,0.9,0.2,1.4,0.3c1.3,0.1,2.6,0.6,3.7,1.3c0.9,0.7,1.8,3.2,1.8,4.8c-0.1,1.6,0.3,4.3,0,4.9s-2.3,2.1-2.3,2.1l-0.3,1.2c0,0,2.5,0.1,3.2,0.7c0.7,0.6,0.9,4.1,1.1,4.6c0.1,0.6,0.7,1.1,0.9,2c0.2,0.8-1.3,2.1-1.3,2.1c0.3,0.4,0.7,0.7,1.1,0.8c0.7,0.2,0.2,1.5,0,1.9c-0.2,0.4-0.7,1.1-0.7,1.1L320,74.4z",fallback_images_windmill_meadow_m:"M320,88.4v10.2L100.5,218.5L0,163.4v-9.3l89.5-49l1.9-1l-1.5-2.5l1.1-3.6l1.4-0.5l5.9,2.8l1.4-0.8c0,0-11.9-25.4-11.7-26.6c0.2-1.2,1.3-0.8,1.9-0.5S102.9,98,102.9,98l52.9-28.9l-3.1-2.8l0.2-3.6l1.4-1.2c0,0,6.8,2.2,7.6,3.2l0.4-1.1c0,0-11.8-25-11.6-26.9c0,0,0.9-0.7,1.5-0.5c0,0,14,25.3,14.2,26.8L220,34.1c0,0-4-3.2-4.6-4c-0.5-0.9,0.2-4.2,0.2-4.2l2.2-0.6l7.5,3.8c0,0-12.4-27.8-12-28.5l1.3-0.4c0,0,14.6,20,15.1,29.3l-0.3,1.9c0,0,4,1.2,4.8,3.1c0,0,22,1.1,22.1,1.9c0,0,0.1,1.5-0.4,1.9c0,0-19.3,1.8-22.2,1.2l-2.8,0.7L320,88.4z",center_topics_biodiversity:"M0,83.4 0,92.8 101.8,148.6 250,67.6 250,58.2 229.6,46.3 159.8,4.5 150.7,0 145,0 0,78.8z",center_topics_event_module:"M250,91.9l-37.7-20.7l0.1-20.4l10.5-5.7L178.8,0.9c0.2-0.2,0.2-0.4,0.1-0.6c-0.2-0.2-0.5-0.4-0.7-0.2l-0.9,0.5l-35.8-0.1L56.8,46.7l10.4,0.5v33.3L44.5,92.8L42,73.4l-5.4-4.7H26.6l-10.2,7.2l0.5,32L0,117.1l0,0v9.5l101.8,55.8L250,101.4V91.9L250,91.9L250,91.9z",center_topics_water_treatment:"M250,55.8 250,65.2 101.8,146.2 0,90.3 0,80.9 148.2,0z",center_topics_reward_center:"M250,107.6l-85.6-47c0,0,0.1-36.3,0.1-36.7c0,0,0.5-1.4,0.7-2.2l0,0l0,0c0.1-0.2,0.1-0.5,0.2-0.7V21v-0.1c0.1-0.3,0.1-0.6,0.1-0.9l-1-0.7c-9.1-5.9-17.6-11.5-17.6-11.5l-0.1-0.2l0,0l2.1-3.6V3.3l0.9-0.5c0.4-0.2,0.5-1,0.1-1.7s-1-1-1.4-0.8L146.3,0L142,2.3l-67,36.7l-1.3,2.1c-0.4,0.2-0.5,1-0.1,1.7c0.2,1.1,0.2,3.3,0.3,5.3c-3.3,2.1-7.7,5.1-12.8,8.4c0,0.2,0,0.3,0,0.5l-0.9,0.6c0,2,0.7,3.8,1.9,5.3c0,0-0.1,17.2,0,17.6c0,0-0.1,18-0.1,18.3L0,132.8l0,0v9.4L101.8,198L250,117V107.6L250,107.6z M83.8,178.7l18,9.8l0,0L83.8,178.7z",center_topics_sustainability:"M250,70.1 250,79.8 101.8,160.5 0,104.7 0,95.2 51.3,67.3 52.9,63.1 56.8,63.4 59.1,63 145,16 144.3,9.5 153.7,0 172.7,4.5 176.8,30z",center_topics_trial_access_greenhouse:"M0,114.6 0,124 101.8,179.8 250,98.8 250,89.5 217.5,71.4 220.4,57.3 209.2,48.8 209.1,37.2 181,0 153,6.4 55.6,59.8 39.7,66.6 40.3,92.6z",center_topics_user_guide:"M245.7,62.2 245.8,54.6 148.5,2 80.5,37.5 49.2,21 34.3,19.6 18.6,37.8 10.6,54.2 16.6,60.5 16.3,71.9 6.7,79.1 6.8,86.2 0,89.9 0,99.2 101.7,155 249.8,74.4 250,64.6z",center_topics_product_stewardship:"M250.3,55.2 250.1,65 102,145.6 0.3,89.9 0.3,80.6 148.9,0.2 199.4,27.6 199.7,24.9 203.1,20.3 208.9,20.3 210,26.3 211.6,34.2z",center_topics_campaign:"M0,114.5v9.4l101.8,55.8L250,98.8v-9.4l-35.8-19.8V38.7l10.7,0.7l1.8-22.9L227.3,0h-17l2.1,68.9l-33.1-18.2v-9.3l9.9,0.9l1.7-8.8l0.3-22l0.7-8.3l-12.3,0.5V2.1h-2.4L177,17l0.2,32.6l-22.6-12.4l1.1-21.1l-0.2-7.4l1.1-0.1V7.3l-12.7,0.5l-0.1-1.7l-2.1,0.2v17.7V37l-22.9,12.5l0.7-5.5l0.4-15.3l0.2-16c0.3-0.1,0.7-0.2,1-0.2c-0.1-0.4-0.2-0.8-0.2-1.1l-12.3,0.3l-0.2-1.5h-2l-0.2,20.5v25.6l-18.4,10l-15.3,8.4l-0.2-22l10.2,0.5l1.5-9.9l0.2-17.7v-9.8c0.4,0,0.7-0.1,1.1-0.2c0-0.1,0-1.2,0-1.2L72.7,15l-0.2-1.6l-2.1,0.2v18.6l0.1,43.6l-33,18.1l-0.1-37.7l9.8,0.4l1.1-7.1l1.9-32L37.2,18l-0.9-1.5l-2.2,0.2L34.8,95l-0.4,0.5L0,114.5z",center_topics_biggest_job_on_earth:"M250,106.8 215.3,87.9 214.5,84.1 192.2,71.8 151.1,49.6 152.8,44.5 152.9,43.2 167.1,38.2 173.2,25.8 174.3,19.6 170.8,14.8 170.6,8.1 165.8,6.3 161.7,3.5 155.5,2.8 149.8,0 140.2,0.5 134.7,6.1 130.6,5.7 126.3,6 125.3,8.3 126.2,14.1 123,17.4 123.2,21.6 123,24.3 123.7,27.5 124.4,31 127.8,34.4 132.3,38.4 143.5,43.1 142.6,50.3 100.8,72.2 90.3,79.2 88.2,83.9 0,132 0,141.4 101.8,197.3 250,116.6z",center_topics_biggest_job_on_earth_de:"M250,106.8 215.3,87.9 214.5,84.1 192.2,71.8 151.1,49.6 152.8,44.5 152.9,43.2 167.1,38.2 173.2,25.8 174.3,19.6 170.8,14.8 170.6,8.1 165.8,6.3 161.7,3.5 155.5,2.8 149.8,0 140.2,0.5 134.7,6.1 130.6,5.7 126.3,6 125.3,8.3 126.2,14.1 123,17.4 123.2,21.6 123,24.3 123.7,27.5 124.4,31 127.8,34.4 132.3,38.4 143.5,43.1 142.6,50.3 100.8,72.2 90.3,79.2 88.2,83.9 0,132 0,141.4 101.8,197.3 250,116.6z",center_topics_digital_services:"M102,146.5L0.3,90.7v-9.3l6.8-7.8L148.1,0h3.1l66.6,33.6l1.9,1c0,0,4.4-0.6,6.2,1.5s2.5,4.8,1.9,7l22.5,13.2l-0.2,9.7L102,146.5z",center_topics_webinar:"M189.6,1.1h3.2c10.3,14.9,23.8,25.4,30.3,44.8l-3.6,1.2v14.1l3.6,0.8c-0.1,5.8-0.3,11.6-0.4,17.4l27.5,14.9v9.7l-148.6,80.8L0.2,129.5V119l12.9-6.9c-0.2-14.9,1.2-28.8,4.4-39.2l8.5-2l-0.8,34.3l28.3-15.3c0.1-2.2,0.3-4.3,0.4-6.5L49.5,79l0.8-0.8c7.8-16.1,25.7-21.5,40.8-30.3l81.2-44.4L189.6,1.1z",fallback_images_land_bushes_trees_c:"M144.5,0.2c0,0,6.6,1.5,7.7,2.8c0,0,4-2.8,6.2-2.8c2.3,0.1,9.8,5,9.6,7.1s-0.4,4.8-0.4,4.8s4.1-3.9,5.1-3.5c1.1,0.4,8.5,5.5,7.8,6.6c-0.7,1,1.2,9.6,1.2,9.6s1.2-10.4,4.4-9.6c3.2,0.8,13.4,3.3,13.6,5.5c0,0,4.1,2.4,4.5,3.7c0,0,4.9,2,5,3.5c0,0,10.3,2.4,10.8,5.2c0,0,12.3,2.7,12.8,7c0,0,4.8,0.3,6.1,2.1c0.8,1.1,0.9,2.5,0.4,3.7c0,0,2.8-0.9,4.3-1s0.5,12.3,0,13.1l0.8,9.8l5.5,4.3l0,9.6l-148.2,81.2L0.1,106.8v-9.4l10-6.5c0,0-2.8-3.8-2.9-5.6S6.6,73.2,8.7,71.8s7.9-1.6,8,0c0,0,2.5-6.9,4-6.8c1.5,0.1,5.9,0.3,6.3,1.4c0,0,2-6,4.3-6.1s6.1,3.2,6.1,3.2s3.8-8.5,5-8.2c0,0,5.9,1.4,6.2,2.3c0,0,3.8,1.9,3.5,2.9c-0.3,1,0.9,4.2,0.9,4.2s2.6-4.6,3.2-4.8c0.7-0.2,4.4,3.4,4.7,3.7L116,32.4c0,0,2.7-5.2,3.9-5.2c0,0,2.3,0,2.7,0.6c-0.6-1.2-1.1-2.6-1.4-3.9c0,0,0.2-3,0.3-3.6s0.3-3.9-0.6-5.6c0,0,1.2-6.7,2.6-7c1.4-0.3,4.5-0.3,5,0.5s1.7,2.2,1.7,2.2
1s3.8-1.4,3.9-1.9c0,0,1.9-3.5,2.6-3.4l2.4,0.4C139.1,5.5,141,0.8,144.5,0.2z",farmhouse:"M519.9,180.6L363.6,94.9V41.8l-15.2-23.1h-46.8l0-11.4l0,0l-2-2.3l-25.7-5l-8.8,11.2l-39.1,6l-7.4-3.5l-10.4,6.2l-32.7,5l-0.1,0.2L165,33.1c-6.1-7-12.9-14.4-12.9-14.4L128,49.5l-13.5-0.9L97,43.9H68.8l-26.5,5.8L26.5,61.8l-4,23.8l2.3,36l-24.9,13.6l0,0l0,0l0,0l0,0v9.3l100.3,55l0,0l100.3,55l0,0l100.3,55l73-39.9l0,0l146-79.8V180.6L519.9,180.6z",farmhouse_de:"M1,129.6 1,120.4 27,106.2 27,29.9 47.9,31.1 46.4,92.7 30,91.6 30,104.3 46.7,95.6 43.1,42.4 65.8,43.2 65.4,85.3 66.9,83.2 66.9,51.9 86.5,52 86.1,73.8 109.3,60.5 155.5,20.2 179.1,20.7 218.5,0.6 233.6,4.9 242.8,0.7 250.3,0.7 254.7,4.9 254.7,11.1 258.7,15.9 258.7,20.7 286.1,35.8 286.8,28.4 291.1,26.3 300.4,24.1 306.8,28.1 310.4,32 311.1,36.8 311.1,40 312.3,46.8 313.3,49.9 320,53.4 324.8,53.5 329.3,56.5 330.4,58.6 358.2,73.8 453,125 453,55.5 475,55.5 474.6,118.2 457.6,117.4 457.7,129 473.4,139 473.4,62.7 494.2,63.3 492.6,123.3 484.2,124.6 477.2,124.5 477.3,140.1 492.9,148.9 492.5,73.4 513.4,73 512.8,134.7 496.9,134.6 496.8,150.9 521,165.7 521,174.9 301.9,294.6z"},gif:"_gif.gif"}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},isDisabled:function(){return!this.element.target},id:function(){return"".concat(this.type,"-element").concat(this.label?"-".concat(this.label.toLowerCase()):"")},getImageName:function(){var t=this.element.image.replace(".png","").replace(".webp","").replace("_250w","").replace("_275w","").replace("_320w","").replace("_520w",""),e=t.lastIndexOf("/"),i=t.slice(e+1,t.length),a=i.indexOf("?");a>-1&&(i=i.substring(0,a)),i.substring(i.length-8).toLowerCase()===this.gif&&(i=i.substring(0,i.length-8));var s=this.clipPath[i.toLowerCase()];return s?"path('".concat(s,"')"):""}},methods:{isMouseover:function(t,e){document.getElementById(e).classList.add("active")},isMouseleave:function(t,e){document.getElementById(e).classList.remove("active")},redirect:function(t){this.isDisabled||("live"===this.config.stage&&this.element.tealium&&"undefined"!=typeof utag&&utag.link({event_value:"vf_search_crop_selected_".concat(this.element.tealium),event_type:"action",event_category:"vf_content_interaction",event_action:"click_option"}),window.location.href=t)}}};var ls=function(t){i("SJrD")};function cs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function us(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?cs(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):cs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ds={name:"VirtualFarmMap",components:{VirtualFarmMapElement:Object(g.a)(rs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.element?i("div",{class:[t.type+"-element",{disabled:t.isDisabled}],attrs:{id:t.id}},[t.element.image?i("picture",[t.element.imageWebp?i("source",{attrs:{srcset:t.element.imageWebp,type:"image/webp"}}):t._e(),t._v(" "),t.element.image?i("img",{staticClass:"lazyload",class:t.type+"-image",attrs:{src:t.element.image,alt:t.type+(t.element.title?"-"+t.element.title:""),title:t.type+(t.element.title?"-"+t.element.title:""),width:"100%",height:"100%"}}):t._e()]):t._e(),t._v(" "),t.label&&"live"!==t.config.stage?i("span",{class:t.type+"-label"},[t._v(t._s(t.label))]):t._e(),t._v(" "),i("a",{class:[{disabled:t.isDisabled}],attrs:{href:t.element.target,title:""},on:{click:function(e){return e.preventDefault(),t.redirect(t.element.target)}}},[i("span",{class:[t.type+"-clip",{disabled:t.isDisabled,default:!t.isDisabled&&!t.getImageName.length}],style:{zIndex:t.zIndexMap[t.label.toLowerCase()],clipPath:t.getImageName},attrs:{id:t.type+"-clip-"+t.label.toLowerCase()},on:{mouseover:function(e){return t.isDisabled?"":t.isMouseover(e,t.id)},mouseleave:function(e){return t.isDisabled?"":t.isMouseleave(e,t.id)}}})]),t._v(" "),"locator"===t.element.typeHover&&t.element.imageHover&&!t.isDisabled?
1i("picture",[t.element.imageHoverWebp?i("source",{attrs:{srcset:t.element.imageHoverWebp,type:"image/webp"}}):t._e(),t._v(" "),"locator"===t.element.typeHover&&t.element.imageHover&&!t.isDisabled?i("img",{staticClass:"locator-image lazyload",class:t.type+"-locator-image",attrs:{src:t.element.imageHover,alt:t.type+"-locator",title:t.type+"-locator",width:"100%",height:"100%"}}):t._e()]):t._e(),t._v(" "),"tooltip"!==t.element.typeHover||!t.element.imageHover&&!t.element.textHover||t.isDisabled?t._e():i("div",{staticClass:"tooltip"},[i("picture",[t.element.imageHoverWebp?i("source",{attrs:{srcset:t.element.imageHoverWebp,type:"image/webp"}}):t._e(),t._v(" "),i("img",{staticClass:"tooltip-image lazyload",class:t.type+"-tooltip-image",attrs:{src:t.element.imageHover,alt:t.type+"-tooltip",title:t.type+"-tooltip",width:"100%",height:"100%"}})]),t._v(" "),t.element.textHover?i("div",{staticClass:"tooltip-text"},[t._v(t._s(t.element.textHover))]):t._e()])]):t._e()}),[],!1,ls,"data-v-7a3ac235",null).exports,Loader:Qt.a},props:{modelSize:{type:String,default:""},coreElements:{type:Array,default:function(){return[]}},mediumElements:{type:Array,default:function(){return[]}},smallElements:{type:Array,default:function(){return[]}},farmHouse:{type:Object,default:function(){return{}}},defaultImages:{type:Object,default:function(){return{}}},hasOverlay:{type:Boolean,default:!1},showClipPathToggle:{type:Boolean,default:!1}},data:function(){return{showClipPath:!1,isVisible:!1,zIndexMap:{a:{m1:3,fh:4,c2:5,c1:6,c4:7,c3:8,s1:9,s2:10,c5:11,m4:12,m5:13,m3:14,m2:15},b:{m2:1,m4:2,m1:3,m3:4,fh:5,c2:6,c1:7,c4:8,c3:9,s1:10,s2:11,s3:12,s4:13,c5:14,m8:15,m9:16,m6:17,m7:18,m5:19,s5:20},c:{m2:1,m4:2,m1:3,m3:4,fh:5,c2:6,c1:7,c4:8,c3:9,c6:10,c5:11,s1:12,s2:13,s3:14,s4:15,s5:16,m6:17,m5:18,m9:19,m11:20,m13:21,m8:22,m10:23,m12:24,s6:25,s7:26,s8:27,m7:28}},windowWidth:0,isScrollable:!1,showOverlay:!1,showHandHint:!0}},computed:us(us({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{defaultElement:function(){return{position:"",target:"",image:"",imageHover:"",textHover:"",typeHover:"",score:0}},translations:function(){return!!window.snTranslations&&window.snTranslations},config:function(){return void 0!==window.snConfig&&window.snConfig}}),watch:{windowWidth:function(){this.windowWidth>=P.breakpoints.xl?this.isScrollable=!1:this.isScrollable=!0},showOverlay:function(){var t=this;setTimeout((function(){if(t.isVisible){var e=document.querySelectorAll(".js-load-after-vue");if(e&&e.length)for(var i=0;i<e.length;i+=1)e[i].style.removeProperty("display")}}),0)}},mounted:function(){var t=this;setTimeout((function(){t.isVisible=!0,window.addEventListener("scroll",t.onScroll)}),2e3),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.handleResizing()},beforeDestroy:function(){window.removeEventListener("scroll",this.onScroll)},methods:{logIn:function(){this.$store.dispatch("forms/login")},register:function(){this.$store.dispatch("forms/register")},toggleOverlay:function(){this.showOverlay=!this.showOverlay},handleResizing:function(){this.windowWidth=window.innerWidth;var t=this;this.$nextTick((function(){window.addEventListener("resize",(function(){t.windowWidth=window.innerWidth}))}))},getElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e?t.find((function(t){return t.position.toLowerCase()===e.toLowerCase()})):t;return i&&0!==Object.keys(i).length?i:this.getDefaultElement(e)},getDefaultElement:function(t){var e="";switch(t.charAt(0).toLowerCase()){case"c":e=this.defaultImages.core;break;case"m":e=this.defaultImages.medium;break;case"s":e=this.defaultImages.small;break;default:e=this.defaultImages.farmHouse}var i=Object.assign({},this.defaultElement);return i.image=e,i},afterEnter:function(){document.dispatchEvent(new CustomEvent("chassis-init-ImageGallery")),document.dispatchEvent(new CustomEvent("vue-init-apps"))},onScroll:function(){var t=this;setTimeout((function(){t.showHandHint=!1}),2e3)}}};var ps,ms=function(t){i("bTK9")},hs=Object(g.a)(ds,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mb-5"},[t.showClipPathToggle&&"live"!==t.config.stage?[i("span",[t._v("Show clip-path")]),t._v(" "),i("toggle-button",{staticClass:"toggle-trigger",attrs:{sync:!0,labels:{checked:"yes",unchecked:"no"},width:50},model:{value:t.showClipPath,callback:function(e){t.showClipPath=e},expression:"showClipPath"}})]:t._e(),t._v(" "),i("div",{staticClass:"d-flex flex-column flex-lg-row justify-content-between"},[t._t("headline"),t._v(" "),i("div",{staticClass:"mt-4 mt-lg-2"},[!t.isLoggedIn&&t.translations&&t.translations.form?i("button",{staticClass:"vf2-button light mr-2 mb-2",on:{click:function(e){return t.logIn()}}},[i("i",{staticClass:"bi bi-lock mr-2",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",[t._v(t._s(t.translations.form.links.login))])]):t._e(),t._v(" "),!t.isLoggedIn&&t.translations&&t.translations.form?i("button",{staticClass:"vf2-button light mr-2 mb-2",on:{click:function(e){return t.register()}}},[i("span",[t._v(t._s(t.translations.form.links.register))])]):t._e()])],2),t._v(" "),i("div",{staticClass:"d-flex d-row justify-content-start mt-2"},[t.hasOverlay?i("button",{staticClass:"vf2-button dark",on:{click:function(e){return t.toggleOverlay()}}},[i("span",[t._v(t._s(t.showOverlay?t.translations.virtualFarm.landingPage.hideOverlayButton:t.translations.virtualFarm.landingPage.overlayButton))])]):t._e()]),t._v(" "),i("div",{ref:"virtualMap",staticClass:"virtual-farm-map-wrapper",class:{"hide-clip-path":!t.showClipPath}},[i("transition-group",{attrs:{name:"fade",mode:"out-in"}
1,on:{"after-enter":t.afterEnter}},[t.isVisible&&!t.showOverlay?i("div",{key:"map",staticClass:"virtual-farm-map",class:"model-"+t.modelSize},["a"===t.modelSize?[i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.farmHouse),type:"farmHouse",label:"FH",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M1"),type:"medium",label:"M1",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C2"),type:"core",label:"C2",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C4"),type:"core",label:"C4",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C1"),type:"core",label:"C1",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C3"),type:"core",label:"C3",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C5"),type:"core",label:"C5",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S1"),type:"small",label:"S1",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S2"),type:"small",label:"S2",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M3"),type:"medium",label:"M3",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M2"),type:"medium",label:"M2",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M4"),type:"medium",label:"M4",zIndexMap:t.zIndexMap.a}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M5"),type:"medium",label:"M5",zIndexMap:t.zIndexMap.a}})]:t._e(),t._v(" "),"b"===t.modelSize?[i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.farmHouse),type:"farmHouse",label:"FH",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M2"),type:"medium",label:"M2",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M1"),type:"medium",label:"M1",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M4"),type:"medium",label:"M4",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M3"),type:"medium",label:"M3",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C2"),type:"core",label:"C2",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C4"),type:"core",label:"C4",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C1"),type:"core",label:"C1",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C3"),type:"core",label:"C3",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C5"),type:"core",label:"C5",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S1"),type:"small",label:"S1",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S2"),type:"small",label:"S2",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S3"),type:"small",label:"S3",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S4"),type:"small",label:"S4",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M6"),type:"medium",label:"M6",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M5"),type:"medium",label:"M5",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M8"),type:"medium",label:"M8",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M9"),type:"medium",label:"M9",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M7"),type:"medium",label:"M7",zIndexMap:t.zIndexMap.b}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S5"),type:"small",label:"S5",zIndexMap:t.zIndexMap.b}})]:t._e(),t._v(" "),"c"===t.modelSize?[i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.farmHouse),type:"farmHouse",label:"FH",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M2"),type:"medium",label:"M2",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M1"),type:"medium",label:"M1",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M4"),type:"medium",label:"M4",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M3"),type:"medium",label:"M3",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C2"),type:"core",label:"C2",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C4"),type:"core",label:"C4",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C6"),type:"core",label:"C6",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C1"),type:"core",label:"C1",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C3"),type:"core",label:"C3",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.coreElements,"C5"),type:"core",label:"C5",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S1"),type:"small",label:"S1",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S2"),type:"small",label:"S2",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S3"),type:"small",label:"S3",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S4"),type:"small",label:"S4",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S5"),type:"small",label:"S5",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M6"),type:"medium",label:"M6",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M5"),type:"medium",label:"M5",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M9"),type:"medium",label:"M9",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M11"),type:"medium",label:"M11",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M13"),type:"medium",label:"M13",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M8"),type:"medium",label:"M8",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M10"),type:"medium",label:"M10",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M12"),type:"medium",label:"M12",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S6"),type:"small",label:"S6",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S7"),type:"small",label:"S7",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.smallElements,"S8"),type:"small",label:"S8",zIndexMap:t.zIndexMap.c}}),t._v(" "),i("VirtualFarmMapElement",{attrs:{element:t.getElement(t.mediumElements,"M7"),type:"medium",label:"M7",zIndexMap:t.zIndexMap.c}})]:t._e()],2):t._e(),t._v(" "),t.isVisible&&t.showOverlay?i("div",{key:"overlay",staticClass:"virtual-farm-map vf2-overlay"},[t._t("overlayTitle"),t._v(" "),t._t("overlayContent")],2):t._e()]),t._v(" "),t.isVisible&&t.isScrollable&&t.showHandHint?i("div",{staticClass:"vf2-hint-slide"},[i("i",{staticClass:"bi bi-hand-index-thumb-fill",attrs:{"aria-hidden":"true"}})]):t._e()],1),t._v(" "),i("Loader",{attrs:{"is-visible":!t.isVisible,"is-full-screen":!0}})],2)}),[],!1,ms,"data-v-61729dc8",null).exports,fs=i("NF/Z"),gs=i("cGzQ"),vs=(ps=gs.a,{getTrialLocationData:function(t,e,
1i,a,n){return new Promise((function(o,r){var l="".concat(ps.getBaseUrl()).concat("/api/trial-maintenance-frontend/getTrialLocationData");s.a.get(l,{params:{country:t,cropUIds:e,productUIds:i,pestUIds:a,lang:n}}).then((function(t){return o(t.data)}),(function(t){return r(t)}))}))},getProducts:function(t,e,i,a,n){return new Promise((function(o,r){var l="".concat(ps.getBaseUrl()).concat("/api/trial-maintenance-frontend/getProductData");s.a.get(l,{params:{country:t,cropUIds:e,productUIds:i,pestUIds:a,lang:n}}).then((function(t){return o(t.data)}),(function(t){return r(t)}))}))},getTargets:function(t,e,i,a,n){return new Promise((function(o,r){var l="".concat(ps.getBaseUrl()).concat("/api/trial-maintenance-frontend/getTargets");s.a.get(l,{params:{country:t,cropUIds:e,productUIds:i,pestUIds:a,lang:n}}).then((function(t){return o(t.data)}),(function(t){return r(t)}))}))}}),bs={name:"VirtualFarmGoogleMap",components:{GoogleMapInner:va,GdprOverlay:ze,SelectField:fs.a,Loader:Qt.a},props:{latitude:{type:Number,default:0},longitude:{type:Number,default:0},zoom:{type:Number,default:8},width:{type:String,default:"100%"},height:{type:Number,default:500},googleKey:{type:String,default:""},iconWidth:{type:Number,default:20},iconHeight:{type:Number,default:28},iconDefault:{type:String,default:""},iconHover:{type:String,default:""},iconActive:{type:String,default:""},iconCluster:{type:String,default:""},iconClusterWidth:{type:Number,default:53},iconClusterHeight:{type:Number,default:53},iconClusterTextColor:{type:String,default:"white"},mapIconDefault:{type:String,default:""},mapIconHover:{type:String,default:""},mapIconActive:{type:String,default:""},tealiumPageCategory:{type:String,default:""},tealiumSubPageCategory:{type:String,default:""},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""},optInBackgroundImage:{type:String,default:""},optInBackgroundImageWebp:{type:String,default:""},useOneTrust:{type:Boolean,default:!0},isOneTrustEnabled:{type:Boolean,default:!1},trialUrlsParam:{type:String,default:""},imagesSrcParam:{type:String,default:""},country:{type:String,default:""},cropUId:{type:String,default:""},language:{type:String,default:""},showSearchbox:{type:Boolean,default:!0},searchboxDescription:{type:String,default:""}},data:function(){return{center:{},selectedMarkers:[],selectProductValue:[],productOptions:[],selectTargetValue:[],targetOptions:[],hasError:!1,trialUrls:[],imagesSrc:[],trialsLoaded:!1,productsLoaded:!1,targetsLoaded:!1,selectedProductUId:"",selectedTargetUId:"",initLoadProducts:!0,initLoadTargets:!0,hideProductsSelect:!1,hideTargetsSelect:!1,codes:["C0024"]}},computed:{translations:function(){return window.snTranslations||!1},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},googleMapTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.googleMap)&&this.virtualFarmTranslations.googleMap},showLoader:function(){return!(this.trialsLoaded&&this.productsLoaded&&this.targetsLoaded||this.hasError)},config:function(){return void 0!==window.snConfig&&window.snConfig}},created:function(){this.trialUrls=this.trialUrlsParam?JSON.parse(this.trialUrlsParam):[],this.imagesSrc=this.imagesSrcParam?JSON.parse(this.imagesSrcParam):[],this.setGoogleMapKey(),this.setMap(this.latitude,this.longitude)},mounted:function(){this.load()},methods:{load:function(){var t=this;this.hasError=!1,this.trialsLoaded=!1,this.selectedMarkers=[],vs.getTrialLocationData(this.country,this.cropUId,this.selectedProductUId,this.selectedTargetUId,this.language).then((function(e){e.trials&&e.trials.forEach((function(e){if(e.latitude&&e.longitude&&e.trialId&&Object.prototype.hasOwnProperty.call(t.trialUrls,e.trialId)){var i=t.trialUrls[e.trialId],a=t.imagesSrc[e.trialId],s="";if(e.translated){var n=e.translated.find((function(e){return e.language===t.config.language.toLowerCase()}));n&&n.items&&n.items.title&&(s=n.items.title)}var o={name:e.location,description:s,link:i,imageSrc:a,linkTealiumType:"action",linkTealiumCategory:"vf_content_interaction",linkTealiumAction:"button_click",linkTealiumValue:"vf_map-click_".concat(e.trialId),icons:{default:t.iconDefault,hover:t.iconHover,active:t.iconActive},position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)}};t.selectedMarkers.push(o)}})),t.trialsLoaded=!0}),(function(){t.hasError=!0})),this.productsLoaded=!1,this.productOptions=[],vs.getProducts(this.country,this.cropUId,this.selectedProductUId,this.selectedTargetUId,this.language).then((function(e){e.products&&(e.products.forEac
1h((function(e){if(e.productUid){var i="";e.translated&&e.translated.length>0&&e.translated[0].items&&e.translated[0].items.productName&&(i=e.translated[0].items.productName);var a=null;e.type&&""!==e.type&&(a=e.type);var s=null;if(e.basfPrd&&""!==e.basfPrd&&(s=e.basfPrd),i)if(s){var n=t.productOptions.find((function(t){return t.basfPrd===s}));n?n.id="".concat(n.id,",").concat(e.productUid):t.productOptions.push({id:e.productUid,name:i,basfPrd:s,type:a})}else if(a&&"competitor"===a){var o=t.productOptions.find((function(t){return t.name===i&&"competitor"===t.type}));o?o.id="".concat(o.id,",").concat(e.productUid):t.productOptions.push({id:e.productUid,name:i,basfPrd:s,type:a})}else t.productOptions.push({id:e.productUid,name:i,basfPrd:s,type:a})}})),t.productOptions.sort((function(t,e){return t.name.localeCompare(e.name)})),t.initLoadProducts&&(t.productOptions.length<=1&&(t.hideProductsSelect=!0),t.initLoadProducts=!1)),t.productsLoaded=!0}),(function(){t.hasError=!0})),this.targetsLoaded=!1,this.targetOptions=[],vs.getTargets(this.country,this.cropUId,this.selectedProductUId,this.selectedTargetUId,this.language).then((function(e){e.targets&&(e.targets.forEach((function(e){e.name&&t.targetOptions.push({id:e.targetUid,name:e.name})})),t.targetOptions.sort((function(t,e){return t.name.localeCompare(e.name)})),t.initLoadTargets&&(t.targetOptions.length<=1&&(t.hideTargetsSelect=!0),t.initLoadTargets=!1)),t.targetsLoaded=!0}),(function(){t.hasError=!0}))},updateProduct:function(t){t&&t.id?(this.selectedProductUId=t.id,"undefined"!=typeof utag&&t.name&&""!==t.name&&utag.link({event_type:"action",event_category:"vf_content_interaction",event_action:"click_option",event_value:"vf_search_product_selected_".concat(t.name)})):this.selectedProductUId="",this.load()},updateTarget:function(t){t&&t.id?(this.selectedTargetUId=t.id,"undefined"!=typeof utag&&t.name&&""!==t.name&&utag.link({event_type:"action",event_category:"vf_content_interaction",event_action:"click_option",event_value:"vf_search_pest_selected_".concat(t.name)})):this.selectedTargetUId="",this.load()},setGoogleMapKey:function(){this.googleKey&&o.default.use(he,{load:{key:this.googleKey,libraries:"places"}})},setMap:function(t,e){this.center={lat:t,lng:e}}}};var ws=function(t){i("v9lL")},ys=Object(g.a)(bs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"google-map-wrapper vf-google-map-wrapper",class:t.selectedMarkers&&t.selectedMarkers.length>0?"vf-google-map-has-marker-list":""},[i("div",{staticClass:"gdpr-overlay-outter-wrapper"},[i("GdprOverlay",{attrs:{height:t.height+76+"px","optin-button":t.translations.gdpr.googleMap.optinButton,"optin-message":t.translations.gdpr.googleMap.optinMessage,"optin-message-accepted":t.translations.gdpr.googleMap.optinMessageAccepted,"optin-background-image":t.optInBackgroundImage,"optin-background-image-webp":t.optInBackgroundImageWebp,"is-one-trust-enabled":t.isOneTrustEnabled,"use-one-trust":t.useOneTrust,codes:t.codes,type:"googleMap"}},[i("div",[t.hasError?i("div",{staticClass:"mb-4"},[i("span",[t._v(t._s(t.commonTranslations.errorMsg))])]):t._e(),t._v(" "),t.hideProductsSelect&&t.hideTargetsSelect?t._e():i("div",{staticClass:"row"},[t.hideProductsSelect?t._e():i("div",{staticClass:"col-md-6"},[i("SelectField",{ref:"selectProductValueRef",attrs:{value:t.selectProductValue,name:"vfProduct",placeholder:t.googleMapTranslations.productSelectPlaceholder,options:t.productOptions,required:!1,disabled:!1},on:{"update:value":function(e){return t.updateProduct(e)}}})],1),t._v(" "),t.hideTargetsSelect?t._e():i("div",{staticClass:"col-md-6"},[i("SelectField",{ref:"selectTargetValueRef",attrs:{value:t.selectTargetValue,name:"vfTarget",placeholder:t.googleMapTranslations.targetSelectPlaceholder,options:t.targetOptions,required:!1,disabled:!1},on:{"update:value":function(e){return t.updateTarget(e)}}})],1)]),t._v(" "),i("GoogleMapInner",{attrs:{center:t.center,zoom:t.zoom,width:t.width,height:t.height,markers:t.selectedMarkers,"icon-width":t.iconWidth,"icon-height":t.iconHeight,"icon-default":t.iconDefault,"icon-hover":t.iconHover,"icon-active":t.iconActive,"icon-cluster":t.iconCluster,"icon-cluster-width":t.iconClusterWidth,"icon-cluster-height":t.iconClusterHeight,"icon-cluster-text-color":t.iconClusterTextColor,"map-icon-default":t.mapIconDefault,"map-icon-hover":t.mapIconHover,"map-icon-active":t.mapIconActive,"tealium-page-category":t.tealiumPageCategory,"tealium-sub-page-category":t.tealiumSubPageCategory,"tealium-value":t.tealiumValue,"tealium-type":t.tealiumType,"tealium-category":t.tealiumCategory,"tealium-action":t.tealiumAction,"link-text":t.googleMapTranslations.linkText,"link-target-blank":!1,"show-searchbox":t.showSearchbox,"searchbox-description":t.searchboxDescription,"handle-preference-bar-location":!1},scopedSlots:t._u([t.selectedMarkers&&t.selectedMarkers.length>0?{key:"mapContentTop",fn:function(){return[i("div",{staticClass:"vf-google-map-marker-list vf-marker-list-on-the-map"},t._l(t.selectedMarkers,(function(e,a){return i("div",{key:a,staticClass:"d-flex justify-content-between vf-google-map-marker-list-entry"},[i("div",[e.name?i("div",{staticClass:"d-flex justify-content-start align-items-center"},[i("i",{staticClass:"bi-geo-alt-fill",attrs:{"aria-hidden":"true"}}),t._v(" "),i("h6",{staticClass:"ml-2 mb-0 mt-0"}
1,[t._v(t._s(e.name))])]):t._e(),t._v(" "),e.link?i("a",{attrs:{href:e.link,title:""}},[t._v("\n                    "+t._s(e.description?e.description:t.googleMapTranslations.linkText)+"\n                  ")]):t._e()]),t._v(" "),e.imageSrc?i("div",{staticClass:"vf-google-map-marker-list-entry-img"},[i("img",{attrs:{src:e.imageSrc,alt:e.name,title:e.name,width:"100%",height:"auto"}})]):t._e()])})),0)]},proxy:!0}:null,t.selectedMarkers&&t.selectedMarkers.length>0?{key:"contentBottom",fn:function(){return[i("div",{staticClass:"mt-3 vf-google-map-marker-list d-md-none"},t._l(t.selectedMarkers,(function(e,a){return i("div",{key:a,staticClass:"d-flex justify-content-between vf-google-map-marker-list-entry"},[i("div",[e.name?i("div",{staticClass:"d-flex justify-content-start align-items-center"},[i("i",{staticClass:"bi-geo-alt-fill",attrs:{"aria-hidden":"true"}}),t._v(" "),i("h6",{staticClass:"ml-2 mb-0 mt-0"},[t._v(t._s(e.name))])]):t._e(),t._v(" "),e.link?i("a",{attrs:{href:e.link,title:""}},[t._v("\n                    "+t._s(e.description?e.description:t.googleMapTranslations.linkText)+"\n                  ")]):t._e()]),t._v(" "),e.imageSrc?i("div",{staticClass:"vf-google-map-marker-list-entry-img"},[i("img",{attrs:{src:e.imageSrc,alt:e.name,title:e.name,width:"100%",height:"auto"}})]):t._e()])})),0)]},proxy:!0}:null],null,!0)})],1)])],1),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],1)}),[],!1,ws,"data-v-29d6cdf8",null).exports;function Cs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function _s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Cs(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Cs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ss={name:"VFLogInOutButton",computed:_s(_s({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}}),methods:{logIn:function(){this.$store.dispatch("forms/login")},logOut:function(){this.$store.dispatch("forms/logout")}}};var Ts=function(t){i("iY5U")},Ps=Object(g.a)(Ss,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isLoggedIn?i("button",{staticClass:"vf2-button theme-light login mr-3",on:{click:function(e){return t.logOut()}}},[i("i",{staticClass:"bi bi-lock",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{staticClass:"d-none d-sm-inline ml-2"},[t._v(t._s(t.translations.links.logout))])]):i("button",{staticClass:"vf2-button theme-light login mr-3",on:{click:function(e){return t.logIn()}}},[i("i",{staticClass:"bi bi-lock",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{staticClass:"d-none d-sm-inline ml-2"},[t._v(t._s(t.translations.links.login))])])])}),[],!1,Ts,"data-v-39df1ae5",null).exports,Fs={name:"Compare2Images",data:function(){return{positionPct:.5,imageWidth:0,hover:!1,handleSize:40,sliderLineWidth:2}},computed:{leftImageStyle:function(){return{clip:"rect(auto, ".concat(this.imageWidth*this.positionPct,"px, auto, auto)")}},sliderStyle:function(){return{cursor:!this.hover&&"ew-resize",left:"".concat(this.imageWidth*this.positionPct-this.handleSize/2,"px"),width:"".concat(this.handleSize,"px")}},sliderLineStyle:function(){return{width:"".concat(this.sliderLineWidth,"px")}},sliderHandleStyle:function(){return{border:"".concat(this.sliderLineWidth,"px solid white"),height:"".concat(this.handleSize,"px"),width:"".concat(this.handleSize,"px")}},sliderLeftArrowStyle:function(){return{border:"inset ".concat(.15*this.handleSize,"px rgba(0,0,0,0)"),borderRight:"".concat(.15*this.handleSize,"px solid white"),marginLeft:"-".concat(.25*this.handleSize,"px"),marginRight:"".concat(.25*this.handleSize,"px")}},sliderRightArrowStyle:function(){return{border:"inset ".concat(.15*this.handleSize,"px rgba(0,0,0,0)"),borderLeft:"".concat(.15*this.handleSize,"px solid white"),marginRight:"-".concat(.25*this.handleSize,"px")}}},created:function(){window.addEventListener("resize",this.getAndSetImageWidth)},mounted:function(){this.getAndSetImageWidth();var t=this.$refs.containerRef;t.addEventListener("touchstart",this.startSliding),window.addEventListener("touchend",this.finishSliding),this.hover?(t.addEventListener("mouseenter",this.startSliding),t.addEventListener("mouseleave",this.finishSliding)):(t.addEventListener("mousedown",this.startSliding),window.addEventListener("mouseup",this.finishSliding))},beforeDestroy:function(){this.finishSliding(),window.removeEventListener("mouseup",this.finishSliding),window.removeEventListener("touchend",this.finishSliding),window.removeEventListener("resize",this.getAndSetImageWidth)},methods:{getAndSetImageWidth:function(){this.imageWidth=this.$refs.rightImageRef.getBoundingClientRect().width},startSliding:function(t){"touches"in t||t.preventDefault(),this.updateSliderPosition(t),window.addEventListener("mousemove",this.updateSliderPosition),window.addEventListener("touchmove",this.updateSliderPosition)},finishSliding:function(){window.removeEventListener("mousemove",this.updateSliderPosition),window.removeEventListener("touchmove",this.updateSliderPosition)},updateSliderPosition:function(t){var e=t||window.event,i=(e.touches?e.touches[0].pageX:e.pageX)-window.pageXOffset-this.$refs.rightImageRef.getBoundingClientRect().left,a=0+this.sliderLineWidth/2,s=this.imageWidth-this.sliderLineWidth/2;i<a&&(i=a),i>s&&(i=s),this.positionPct=i/this.imageWidth}}};var xs=function(t){i("5hlp")},Os=Object(g.a)(Fs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"containerRef",staticClass:"compare-2-images-container"},[i("div",{staticClass:"left-image",style:t.leftImageStyle},[t._t("imageLeft")],2),t._v(" "),i("div",{ref:"rightImageRef",staticClass:"right-image"},[t._t("imageRight")],2),t._v(" "),i("div",{staticClass:"compare-2-images-slider",style:t.sliderStyle},[i("div",{staticClass:"line",style:t.sliderLineStyle}),t._v(" "),i("div",{staticClass:"handle",style:t.sliderHandleStyle},[i("div",{staticClass:"left-arrow",style:t.sliderLeftArrowStyle}),t._v(" "),i("div",{staticClass:"right-arrow",style:t.sliderRightArrowStyle})]),t._v(" "),i("div",{staticClass:"line",style:t.sliderLineStyle})])])}),[],!1,xs,"data-v-1a238008",null).exports,ks={name:"Table",components:{VueSelect:St.a},props:{enableSort:{type:Boolean,default:!0},sortBy:{type:String,default:""},sortDir:{type:String,default:"asc"},elements:{type:Array,default:function(){return[]}}},data:function(){return{currentSort:"",currentSortDir:{},currentSortDirDefault:"asc",selectedSortOption:"",sortedElements:this.elements.map((function(t){return t})),removeKeys:["dateSort"]}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations},keys:function(){var t=Object.keys(this.elements[0]);return this.removeKeys.forEach((function(e){var i=t.indexOf(e);i>-1&&t.splice(i,1)})),t},sortOptions:function(){var t=this,e=[];return this.keys.forEach((function(i){if("url"!==i||"dateSort"!==i){var a={};a.id=i,a.name=t.translations.common[i],e.push(a)}})),e}},mounted:function(){var t=this;this.currentSort=this.sortBy||this.currentSort,this.keys.forEach((function(e){t.currentSortDir[e]=t.sortDir||t.currentSortDirDefault})),this.triggerSort(),this.selectedSortOption=this.sortOptions.find((function(e){return e.id===t.currentSort}))},methods:{sort:function(t){t===this.currentSort&&(this.currentSortDir[t]="asc"===this.currentSortDir[t]?"de
1sc":"asc"),this.currentSort=t,this.selectedSortOption=this.sortOptions.find((function(e){return e.id===t})),this.triggerSort()},sortDropdown:function(t){this.selectedSortOption=t,this.currentSortDir[t.id]="asc",this.currentSort=t.id,this.triggerSort()},triggerSort:function(){var t=this,e="date"===this.currentSort?"dateSort":this.currentSort;this.sortedElements.sort((function(i,a){var s=1;return"desc"===t.currentSortDir[t.currentSort]&&(s=-1),i[e]<a[e]?-1*s:i[e]>a[e]?1*s:0}))},renderElement:function(t){switch(xi()(t)){case"object":return t.join(" / ");default:return t}}}};var Ls=function(t){i("kJaR")},Is=Object(g.a)(ks,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",[i("div",{staticClass:"content-module"},[t.enableSort?i("div",{staticClass:"d-flex align-items-center d-lg-none mb-4"},[i("VueSelect",{attrs:{options:t.sortOptions,selected:t.selectedSortOption&&t.selectedSortOption.name,placeholder:"Sort by","show-empty-option":!1},on:{callback:t.sortDropdown}}),t._v(" "),t.currentSort?i("div",{staticClass:"ml-4"},[i("i",{staticClass:"bi theme-color",class:{"bi-sort-alpha-down":"asc"===t.currentSortDir[t.currentSort]&&"date"!==t.currentSort,"bi-sort-alpha-down-alt":"desc"===t.currentSortDir[t.currentSort]&&"date"!==t.currentSort,"bi-sort-down":"asc"===t.currentSortDir[t.currentSort]&&"date"===t.currentSort,"bi-sort-down-alt":"desc"===t.currentSortDir[t.currentSort]&&"date"===t.currentSort},attrs:{"aria-hidden":"true"},on:{click:function(e){return t.sort(t.currentSort)}}})]):t._e()],1):t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[i("table",{staticClass:"table responsive-table style-simple"},[i("caption"),t._v(" "),i("thead",[i("tr",t._l(t.keys,(function(e,a){return i("th",{key:a,class:{sortable:t.enableSort},attrs:{scope:"col"},on:{click:function(i){t.enableSort&&t.sort(e)}}},[i("span",[t._v(t._s(t.translations.common[e])+"\n                  "),"url"!==e?i("i",{staticClass:"icon",class:{"bi-sort-alpha-down":t.enableSort&&"asc"===t.currentSortDir[e]&&"date"!==e,"bi-sort-alpha-down-alt":t.enableSort&&"desc"===t.currentSortDir[e]&&"date"!==e,"bi-sort-down":t.enableSort&&"asc"===t.currentSortDir[e]&&"date"===e,"bi-sort-down-alt":t.enableSort&&"desc"===t.currentSortDir[e]&&"date"===e},attrs:{"aria-hidden":"true"}}):t._e()])])})),0)]),t._v(" "),i("tbody",t._l(t.sortedElements,(function(e,a){return i("tr",{key:a},t._l(t.keys,(function(a,s){return i("td",{key:s,class:{"no-data-title text-right":"url"===a},attrs:{"data-title":""+(t.translations.common[a]?t.translations.common[a]:"")}},["url"!==a?i("div",[t._v(t._s(t.renderElement(e[a])))]):t._e(),t._v(" "),"url"===a?i("a",{staticClass:"vf2-button d-block d-md-inline-block",attrs:{href:e[a],title:t.translations.common.showResults,target:"_self"}},[t._v(t._s(t.translations.common.showResults))]):t._e()])})),0)})),0)])])])])])}),[],!1,Ls,"data-v-185bcdc0",null).exports,Es={name:"VFTableVSTeaser",components:{Table:Is},props:{enableSort:{type:Boolean,default:!0},sortBy:{type:String,default:""},sortDir:{type:String,default:"asc"},view:{type:String,default:"teaser"},title:{type:String,default:""},elements:{type:Array,default:function(){return[]}}},data:function(){return{showTable:!1,initialElements:this.elements.map((function(t){return t}))}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations}},mounted:function(){this.showTable="table"===this.view},methods:{renderElement:function(t){switch(xi()(t)){case"object":return t.map((function(t){return"<div>".concat(t,"</div>")})).join("");default:return t}}}};var Vs=function(t){i("jHjH")},As=Object(g.a)(Es,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"vf2-table-vs-teaser-wrapper my-2"},[i("div",{staticClass:"vf2-table-vs-teaser-header"},[i("div",{staticClass:"row align-items-center mb-3"},[i("div",{staticClass:"col"},[i("h2",{staticClass:"theme-color m-0"},[t._v(t._s(t.title))])]),t._v(" "),i("div",{staticClass:"col text-right"},[i("i",{staticClass:"bi bi-grid",class:{"theme-color":!t.showTable},attrs:{"aria-hidden":"true"},on:{click:function(e){t.showTable=!1}}}),t._v(" "),i("i",{staticClass:"bi bi-list",class:{"theme-color":t.showTable},attrs:{"aria-hidden":"true"},on:{click:function(e){t.showTable=!0}}})])])]),t._v(" "),i("transition",{attrs:{name:"fade",mode:"out-in"}},[t.showTable?i("div",{key:"table"},[i("Table",{attrs:{"enable-sort":t.enableSort,"sort-by":t.sortBy,"sort-dir":t.sortDir,elements:t.elements}}
1)],1):i("div",{key:"teaser",staticClass:"vf-teasers vf2-teasers"},[i("div",{staticClass:"row"},t._l(t.initialElements,(function(e,a){return i("div",{key:a,staticClass:"col-sm-6 col-md-4 col-lg-3"},[i("article",{staticClass:"vf-entry"},[i("div",{staticClass:"vf-entry-area"},[i("div",{staticClass:"cf-content-top"},[i("div",{staticClass:"vf-content"},[i("h3",[t._v(t._s(e.name))]),t._v(" "),i("p",{staticClass:"date"},[t._v(t._s(e.date))]),t._v(" "),e.products.length>0?i("div",[i("div",[t._v(t._s(t.translations.common.products)+":")]),t._v(" "),i("div",{staticClass:"theme-color",domProps:{innerHTML:t._s(t.renderElement(e.products))}})]):t._e()])]),t._v(" "),i("div",{staticClass:"cf-content-bottom"},[i("a",{staticClass:"vf2-button",attrs:{href:e.url,title:t.translations.common.showResults,target:"_self"}},[t._v(t._s(t.translations.common.showResults))])])])])])})),0)])])],1)}),[],!1,Vs,"data-v-68bbee1e",null).exports,Ds={name:"VFTabNavigationTab",props:{active:{type:Boolean,default:!0},label:{type:String,default:""},icon:{type:String,default:""},isMobile:{type:Boolean,default:!0}}};var Ms=function(t){i("Rdr4")},Rs={name:"VFTabNavigation",components:{VFTabNavigationTab:Object(g.a)(Ds,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf2-tab-outer mb-1 mb-md-0"},[i("div",{staticClass:"vf2-tab",class:{active:t.active},on:{click:function(e){return t.$emit("trigger-click")}}},[i("div",{staticClass:"vf2-tab-inner"},[i("i",{staticClass:"bi mr-2",class:t.icon,attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",[t._v(t._s(t.label))])]),t._v(" "),i("transition",{attrs:{name:"slide-in-arrow",mode:"out-in"}},[t.active?i("div",{staticClass:"vf2-tab-arrow"}):t._e()])],1),t._v(" "),t.isMobile&&t.active?i("section",{staticClass:"vf2-tab-content p-4"},[t._t("default")],2):t._e()])}),[],!1,Ms,"data-v-8978c7c0",null).exports},props:{tabOneLabel:{type:String,default:""},tabTwoLabel:{type:String,default:""},tabThreeLabel:{type:String,default:""}},data:function(){return{windowWidth:0,isMobile:!1,active:"details"}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations}},watch:{windowWidth:function(t){t>=P.breakpoints.md?(this.isMobile=!1,this.active=this.active||"details"):this.isMobile=!0}},mounted:function(){var t=this;this.windowWidth=window.innerWidth,this.$nextTick((function(){window.addEventListener("resize",(function(){t.windowWidth=window.innerWidth}))}))},methods:{triggerClick:function(t){this.isMobile?this.active=this.active===t?"":t:this.active=t},tabAfterEnter:function(){document.dispatchEvent(new CustomEvent("chassis-init-ImageGallery")),document.dispatchEvent(new CustomEvent("vue-init-apps"))}}};var $s=function(t){i("71cE")},Ns=Object(g.a)(Rs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf2-tab-navigation-wrapper mb-4"},[i("article",{staticClass:"d-flex flex-column flex-md-row"},[t.$slots.tabOne?i("VFTabNavigationTab",{attrs:{active:"details"===t.active,label:t.tabOneLabel,icon:"bi-book","is-mobile":t.isMobile},on:{"trigger-click":function(e){return t.triggerClick("details")}}},[t._t("tabOne")],2):t._e(),t._v(" "),t.$slots.tabTwo?i("VFTabNavigationTab",{attrs:{active:"benefits"===t.active,label:t.tabTwoLabel,icon:"bi-star-fill","is-mobile":t.isMobile},on:{"trigger-click":function(e){return t.triggerClick("benefits")}}},[t._t("tabTwo")],2):t._e(),t._v(" "),t.$slots.tabThree?i("VFTabNavigationTab",{attrs:{active:"info"===t.active,label:t.tabThreeLabel,icon:"bi-info-square-fill","is-mobile":t.isMobile},on:{"trigger-click":function(e){return t.triggerClick("info")}}},[t._t("tabThree")],2):t._e()],1),t._v(" "),t.isMobile?t._e():i("section",{staticClass:"vf2-tab-content p-4"},[i("transition",{attrs:{name:"fade",mode:"out-in"},on:{"after-enter":t.tabAfterEnter}},["details"===t.active?i("div",{key:"details"},[t._t("tabOne")],2):"benefits"===t.active?i("div",{key:"benefits"},[t._t("tabTwo")],2):"info"===t.active?i("div",{key:"info"},[t._t("tabThree")],2):t._e()])],1)])}),[],!1,$s,"data-v-818a8638",null).exports,js={name:"VFLightbox",props:{images:{type:Array,default:function(){return[]}},initialSlideIndex:{type:Number,default:0},initialShowInfo:{type:Boolean,default:!1}},data:function(){return{activeSlideIndex:this.initialSlideIndex||
10,info:this.initialShowInfo||!1}},computed:{virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},comparisonPanelTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.comparisonPanel)&&this.virtualFarmTranslations.comparisonPanel}},mounted:function(){window.addEventListener("keyup",this.keyboardHandler)},beforeDestroy:function(){window.removeEventListener("keyup",this.keyboardHandler)},methods:{showInfo:function(){this.info=!0},hideInfo:function(){this.info=!1},goNext:function(){this.activeSlideIndex<this.images.length-1&&(this.activeSlideIndex=this.activeSlideIndex+1)},goPrev:function(){this.activeSlideIndex>0&&(this.activeSlideIndex=this.activeSlideIndex-1)},keyboardHandler:function(t){27===t.keyCode&&this.$emit("close"),39===t.keyCode&&this.goNext(),37===t.keyCode&&this.goPrev()}}};var zs=function(t){i("n9zR")},Bs=Object(g.a)(js,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"lightbox-wrapper"},[i("i",{staticClass:"bi-x-lg close-lightbox-btn",class:{"opacity-0":t.info},attrs:{"aria-hidden":"true"},on:{click:function(e){return t.$emit("close")}}}),t._v(" "),i("div",{staticClass:"lightbox-actions"},[i("button",{staticClass:"swiper-btn swiper-button-prev",class:{"swiper-button-disabled":0===t.activeSlideIndex,"opacity-0":1===t.images.length||t.info},on:{click:t.goPrev}}),t._v(" "),!t.info&&t.images[t.activeSlideIndex].showInfoOnLightbox?i("button",{staticClass:"d-lg-none info-btn",on:{click:t.showInfo}},[i("i",{staticClass:"bi-info-circle-fill mx-1",attrs:{"aria-hidden":"true"}})]):t.info&&t.images[t.activeSlideIndex].showInfoOnLightbox?i("button",{staticClass:"d-lg-none info-btn",on:{click:t.hideInfo}},[i("i",{staticClass:"bi-x-circle-fill mx-1",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),i("button",{staticClass:"swiper-btn swiper-button-next",class:{"swiper-button-disabled":t.activeSlideIndex===t.images.length-1,"opacity-0":1===t.images.length||t.info},staticStyle:{"margin-right":"20px"},on:{click:t.goNext}})]),t._v(" "),i("div",{staticClass:"lightbox-images-wrapper"},[i("div",{staticClass:"lightbox-image"},[!t.info&&t.images[t.activeSlideIndex].showInfoOnLightbox?i("button",{staticClass:"image-info info-btn",on:{click:t.showInfo}},[i("i",{staticClass:"bi-info-circle-fill mx-1",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),t.info&&t.images[t.activeSlideIndex].showInfoOnLightbox?i("button",{staticClass:"image-info info-btn",on:{click:t.hideInfo}},[i("i",{staticClass:"bi-x-circle-fill mx-1",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),i("picture",[t.images[t.activeSlideIndex].srcSetWebp?i("source",{attrs:{srcset:t.images[t.activeSlideIndex].srcSetWebp,type:"image/webp",sizes:"100vw"}}):t._e(),t._v(" "),i("img",{staticClass:"big-image w-auto",class:{"image-behind-info":t.info},attrs:{srcset:t.images[t.activeSlideIndex].srcSet,title:t.activeSlideIndex,sizes:"100vw",alt:""}})]),t._v(" "),i("div",{staticClass:"image-details",class:{show:t.info}},[i("h4",{staticClass:"h4"},[t._v(t._s(t.images[t.activeSlideIndex].name))]),t._v(" "),i("div",{staticClass:"image-description",domProps:{innerHTML:t._s(t.images[t.activeSlideIndex].description)}}),t._v(" "),t.images[t.activeSlideIndex].treatments&&t.images[t.activeSlideIndex].treatments.length?i("div",[i("h4",{staticClass:"mt-3"},[t._v("\n            "+t._s(t.comparisonPanelTranslations.treatments)+"\n          ")]),t._v(" "),i("table",{staticClass:"image-description"},t._l(t.images[t.activeSlideIndex].treatments,(function(e){return i("tr",{key:e.product},[i("td",{staticClass:"pr-3"},[t._v(t._s(e.product))]),i("td",[t._v(t._s(e.doseRate))])])})),0)]):t._e()]),t._v(" "),i("p",{staticClass:"image-date",class:{"opacity-0":t.info}},[i("i",{staticClass:"bi-calendar3 mr-1",attrs:{"aria-hidden":"true"}}),t._v("\n        "+t._s(t.images[t.activeSlideIndex].date)+"\n      ")])])])])}),[],!1,zs,"data-v-9246f670",null).exports,qs={name:"VFGallery",components:{VFLightbox:Bs},props:{slidesPerView:{type:Number,default:3},enableLightbox:{type:Boolean,default:!0},images:{type:Array,default:function(){return[]}}},data:function(){return{isLightboxOpen:!1,activeSlideIndex:0,mobileInfo:!1,id:null,navigationPosition:0}},created:function(){this.id="vfGallery_".concat(this._uid)},mounted:function(){this.initSlider(),window.addEventListener("resize",this.calculateImageHeight)},beforeDestroy:function(){window.removeEventListener("keyup",this.keyboardHandler),window.removeEventListener("resize",this.calculateImageHeight)},methods:{showMobileInfo:function(){this.mobileInfo=!0},hideMobileInfo:function(){this.mobileInfo=!1},goNext:function(){this.activeSlideIndex<this.images.length-1&&(this.activeSlideIndex=this.activeSlideIndex+1)},goPrev:function(){this.activeSlideIndex>0&&(this.activeSlideIndex=this.activeSlideIndex-1)},keyboardHandler:function(t){27===t.keyCode&&this.closeLightbox(),39===t.keyCode&&this.goNext(),37===t.keyCode&&this.goPrev()},openLightbox:function(t){this.isLightboxOpen=!0,this.activeSlideIndex=t,document.getElementsByTagName("body")[0].classList.add("overflow-hidden")},closeLightbox:function(){this.isLightboxOpen=!1,this.activeSlideIndex=0,document.getElementsByTagName("body")[0].classList.remove("overflow-hidden")},initSlider:function(){var t=document.getElementById(this.id);new yt.d(t.getElementsByClassName("swiper")[0],{modules:[yt.a,yt.b,yt.c],grid:{rows:1,fill:"row"},simulateTouch:!1,slidesPerGroup:1,slidesPerView:this.slidesPerView,spaceBetween:5,observer:!0,observeParents:!0,breakpoints:It()(It()({},P.breakpoints.md,{slidesPerView:1}),P.breakpoints.lg,{slidesPerView:2}),navigation:{nextEl:t.getElementsByClassName("swiper-button-next")[0],prevEl:t.getElementsByClassName("swiper-button-prev")[0]}}),this.calculateImageHeight(),window.addEventListener("keyup",this.keyboardHandler)},calculateImageHeight:function(){var t=this.$refs.imageContainer?this.$refs.imageContainer[0].offsetHeight:0;this.navigationPosition=t>50?(t-15)/2:60}}};var Us=function(t){i("kRcU")},Hs=Object(g.a)(qs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf-gallery-wrapper",attrs:{id:t.id}}
1,[i("div",{staticClass:"vf-swiper-slider position-relative"},[i("div",{staticClass:"swiper-wrapper-outer h-100"},[i("div",{staticClass:"swiper h-100"},[i("div",{staticClass:"swiper-wrapper"},[t._l(t.images,(function(e,a){return[i("div",{key:a,staticClass:"swiper-slide"},[i("div",{ref:"imageContainer",refInFor:!0,staticClass:"position-relative"},[i("picture",[e.srcSetWebp?i("source",{attrs:{srcset:e.srcSetWebp,type:"image/webp",sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 100vw"}}):t._e(),t._v(" "),i("img",{attrs:{srcset:e.srcSet,sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 100vw",width:"100%",height:"100%",title:"",alt:""}})]),t._v(" "),i("button",{staticClass:"lightbox-trigger-btn",on:{click:function(e){return t.openLightbox(a)}}},[i("i",{staticClass:"bi-search",attrs:{"aria-hidden":"true"}})])]),t._v(" "),e.tableEntries&&e.tableEntries.length>0||e.date?i("div",[i("table",{staticClass:"table responsive-table style-striped"},[i("caption"),t._v(" "),i("tbody",[i("tr",[i("td",{staticClass:"no-data-title text-center",attrs:{colspan:"2"}},[i("i",{staticClass:"bi-calendar3 theme-txt-color-brand mr-1",attrs:{"aria-hidden":"true"}}),t._v("\n                        "+t._s(e.date)+"\n                      ")])]),t._v(" "),e.tableEntries&&e.tableEntries.length>0?[t._l(e.tableEntries,(function(e,a){return[i("tr",{key:"tableEntry_"+a},[i("td",{staticClass:"no-data-title"},[e.leftIcon?i("i",{staticClass:"theme-txt-color-brand mr-1",class:e.leftIcon,attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),i("strong",[t._v(t._s(e.left))])]),t._v(" "),i("td",{staticClass:"no-data-title"},[e.rightIcon?i("i",{staticClass:"theme-txt-color-brand mr-1",class:e.rightIcon,attrs:{"aria-hidden":"true"}}):t._e(),t._v("\n                            "+t._s(e.right)+"\n                          ")])])]}))]:t._e()],2)])]):t._e()])]}))],2)]),t._v(" "),i("div",{staticClass:"navigation",class:{"d-none":t.images&&t.images.length<=1,"d-md-none":t.images&&2===t.images.length,"d-lg-none":t.images&&3===t.images.length}},[i("div",{ref:"navIcon",staticClass:"swiper-button-prev position-absolute",style:{top:t.navigationPosition+"px"}}),t._v(" "),i("div",{staticClass:"swiper-button-next position-absolute",style:{top:t.navigationPosition+"px"}})])])]),t._v(" "),t.isLightboxOpen?i("VFLightbox",{attrs:{images:t.images,"initial-slide-index":t.activeSlideIndex},on:{close:t.closeLightbox}}):t._e()],1)}),[],!1,Us,"data-v-58343860",null).exports;function Gs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ws(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Gs(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Gs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Zs={name:"VFCompareBtn",props:{image:{type:Object,default:function(){return{}}}},computed:Ws(Ws({},Object(Et.c)({comparisonList:function(t){return t.virtualFarm.comparisonList}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations},isAddedToComparison:function(){return-1!==this.comparisonList.indexOf(this.image)},virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},miniPlotTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.miniPlot)&&this.virtualFarmTranslations.miniPlot},isComparisonListFull:function(){return this.comparisonList.length>=4}}),methods:{addToComparison:function(){this.isComparisonListFull||this.$store.commit("virtualFarm/addToComparisonList",this.image)},removeFromComparison:function(){this.$store.commit("virtualFarm/removeFromComparisonList",this.image)}}};var Js=function(t){i("Fjmq")},Ks=Object(g.a)(Zs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf-miniplot-actions text-nowrap p-2"},[t.isAddedToComparison?i("button",{staticClass:"vf2-button secondary",on:{click:t.removeFromComparison}},[i("i",{staticClass:"bi-dash-circle mr-2",attrs:{"aria-hidden":"true"}}),t._v(t._s(t.miniPlotTranslations.remove)+"\n  ")]):i("button",{staticClass:"vf2-button",class:{disabled:t.isComparisonListFull},attrs:{disabled:t.isComparisonListFull},on:{click:t.addToComparison}},[i("i",{staticClass:"bi-plus-circle mr-2",attrs:{"aria-hidden":"true"}}),t._v(t._s(t.miniPlotTranslations.compare)+"\n  ")])])}),[],!1,Js,"data-v-e9355b54",null).exports;function Ys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Qs(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?Ys(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ys(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Xs={name:"VFMiniplot",components:{VFGallery:Hs,VFCompareBtn:Ks},props:{target:{type:String,default:""},products:{type:Array,default:function(){return[]}},enableLightbox:{type:Boolean,default:!0},efficacy:{type:String,default:""},growth:{type:String,default:""},date:{type:String,default:""},images:{type:Array,default:function(){return[]}}},data:function(){return{singleImage:[{name:"Test Single",src:"https://picsum.photos/seed/100/400/200"}]}},computed:Qs(Qs({},Object(Et.c)({comparisonList:function(t){return t.virtualFarm.comparisonList}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations},isAddedToComparison:function(){if(this.canAnyBeCompared){var t=this.images.findIndex((function(t){return t.canBeCompared}));return-1!==this.comparisonList.indexOf(this.images[t])}return!1},virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},miniPlotTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.miniPlot)&&this.virtualFarmTranslations.miniPlot},canAnyBeCompared:function(){return this.images.findIndex((function(t){return t.canBeCompared}))>-1},getFirstComparableImage:function(){var t=this.images.findIndex((function(t){return t.canBeCompared}));return t>-1?this.images[t]:null}}),methods:{addToComparison:function(){var t=this.images.findIndex((function(t){return t.canBeCompared}));this.$store.commit("virtualFarm/addToComparisonList",this.images[t])},removeFromComparison:function(){var t=this.images.findIndex((function(t){return t.canBeCompared}));this.$store.commit("virtualFarm/removeFromComparisonList",this.images[t])}}};var tn=function(t){i("DFYi")},en=Object(g.a)(Xs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf-miniplot-wrapper"},[i("div",{staticClass:"vf-miniplot-header d-flex justify-content-between"},[i("div",{staticClass:"vf-miniplot-info d-flex justify-content-start flex-wrap"},[t.growth?i("div",{staticClass:"vf-miniplot-growth p-3 mx-1"},[i("div",{staticClass:"d-inline-block"},[i("i",{staticClass:"bi-capslock mr-1 mb-1",attrs:{"aria-hidden":"true"}}),t._v("\n          "+t._s(t.growth)+"\n        ")])]):t._e(),t._v(" "),t.products&&t.products.length>0?i("div",{staticClass:"vf-miniplot-products mx-1 d-none d-sm-block"},t._l(t.products,(function(e,a){return i("div",{key:"product_"+a,staticClass:"d-inline-block p-3 mr-3 align-middle"},[i("i",{staticClass:"bi-box-seam mr-1",attrs:{"aria-hidden":"true"}}),t._v("\n          "+t._s(e)+"\n        ")])})),0):t._e()]),t._v(" "),t.canAnyBeCompared?i("VFCompareBtn",{attrs:{image:t.getFirstComparableImage}}):t._e()],1),t._v(" "),i("VFGallery",{attrs:{images:t.images,date:t.date,"enable-lightbox":t.enableLightbox}}),t._v(" "),i("div",{staticClass:"vf-miniplot-info p-1 mx-1 d-block d-sm-none"},[t.products&&t.products.length>0?i("div",{staticClass:"mobile-info-item"},t._l(t.products,(function(e,a){return i("div",{key:"product_"+a,staticClass:"d-block p-2"},[i("i",{staticClass:"bi-box-seam mr-1",attrs:{"aria-hidden":"true"}}),t._v("\n        "+t._s(e)+"\n      ")])})),0):t._e()])],1)}),[],!1,tn,"data-v-75de4339",null).exports,an={name:"VFMiniplotGrowthSelect",components:{SelectField:fs.a},data:function(){return{selectValue:[],entries:[],growthOptions:[]}},computed:{virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},comparisonToolTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.comparisonTool)&&this.virtualFarmTranslations.comparisonTool}},created:function(){var t=[];this.entries=document.querySelectorAll(".vf2-miniplot-teasers .vf2-miniplot-teaser");for(var e=0;e<this.entries.length;e+=1){var i=this.entries[e],a=i.getAttribute("data-growth"),s=i.getAttribute("data-name");a&&""!==a&&s&&""!==s&&-1===t.indexOf(a)&&(t.push(a),this.growthOptions.push({id:a,name:s}))}},mounted:function(){this.selectFirstGrowth()},methods:{selectFirstGrowth:function(){this.growthOptions&&this.growthOptions.length>0&&(this.selectValue=this.growthOptions[0],this.$refs.selectValueRef.handleUpdate(this.selectValue))},updateGrowth:function(t){this.$store.commit("virtualFarm/removeAllFromComparisonList");var e="";t&&t.id&&(e=t.id);for(var i=0;i<this.entries.length;i+=1){var a=this.entries[i],s=a.getAttribute("data-growth");a.style.display=s&&s===e?"block":"none"}}}};var sn=function(t){i("+4/P")},nn=Object(g.a)(an,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf2-miniplot-growth-select text-center mt-2"},[i("div",{staticClass:"d-flex justify-content-center"},[i("SelectField",{ref:"selectValueRef",attrs:{value:t.selectValue,name:"comparisonToolGrowth",placeholder:t.comparisonToolTranslations.growthSelectPlaceholder,options:t.growthOptions,required:!1,disabled:!1},on:{"update:value":function(e){return t.updateGrowth(e)}}})],1)])}),[],!1,sn,"data-v-143e1014",null).exports,on={name:"VFMiniplotCompareFilter",components:{SelectField:fs.a},props:{targets:{type:Array,default:function(){return[]}}},data:function(){return{targetSelectValue:[],dateSelectValue:[],targetOptions:[],dateOptions:[],entries:[]}},computed:{virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},comparisonToolTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.comparisonTool)&&this.virtualFarmTranslations.comparisonTool},dateSelectIsDisabled:function(){var t=!1;return 0===this.dateOptions.length&&(t=!0),t},targetSelectIsDisabled:function(){var t=!1;return 0===this.targetOptions.length&&(t=!0),t}},created:function(){this.entries=document.querySelectorAll(".vf2-miniplot-teasers .vf2-miniplot-teaser"),this.loadFilterValues(!1)},mounted:function(){this.filterEntries()},methods:{loadFilterValues:function(t){var e=this;this.targetOptions=[],this.dateOptions=[];for(var i=[],a=[],s=0;s<this.entries.length;s+=1){var n=this.entries[s],o=n.getAttribute("data-targets"),r=n.getAttribute("data-date");if(t&&!this.elementIsHidden(n)||!t){if(o){var l=o.split(",");l&&l.forEach((function(t){if(-1===i.indexOf(t)){i.push(t);var a="";if(e.targets){var s=e.targets.find((function(e){return e.id===t}));s&&s.name&&(a=s.name)}e.targetOptions.push({id:t,name:a})}}))}r&&-1===a.indexOf(r)&&(a.push(r),this.dateOptions.push({id:r,name:r}))}}this.targetOptions.sort((function(t,e){return t.name.localeCompare(e.name)}
1)),this.dateOptions.sort((function(t,e){return t.name.localeCompare(e.name)})),this.dateOptions.reverse()},elementIsHidden:function(t){return null===t.offsetParent},selectFirstDate:function(){this.dateOptions&&this.dateOptions.length>0&&(this.dateSelectValue=this.dateOptions[0],this.$refs.dateSelectValueRef.handleUpdate(this.dateSelectValue))},updateTarget:function(t){this.targetSelectValue=t,this.filterEntries()},updateDate:function(t){this.dateSelectValue=t,this.filterEntries()},filterEntries:function(){var t="";this.targetSelectValue&&this.targetSelectValue.id&&(t=this.targetSelectValue.id);var e="";this.dateSelectValue&&this.dateSelectValue.id&&(e=this.dateSelectValue.id);for(var i=0;i<this.entries.length;i+=1){var a=this.entries[i],s=a.getAttribute("data-targets"),n=a.getAttribute("data-date"),o=!1;t?s&&-1!==s.indexOf(t)&&(o=!0):o=!0;var r=!1;e?n&&n===e&&(r=!0):r=!0,a.style.display=o&&r?"block":"none"}this.loadFilterValues(!0)}}};var rn=function(t){i("M4n4")},ln=Object(g.a)(on,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf2-miniplot-compare-filter text-center mt-2"},[i("div",{staticClass:"d-block d-md-flex justify-content-center"},[i("SelectField",{ref:"dateSelectValueRef",attrs:{value:t.dateSelectValue,name:"comparisonToolDate",placeholder:t.comparisonToolTranslations.dateSelectPlaceholder,options:t.dateOptions,required:!1,disabled:t.dateSelectIsDisabled},on:{"update:value":function(e){return t.updateDate(e)}}}),t._v(" "),i("SelectField",{ref:"targetSelectValueRef",attrs:{value:t.targetSelectValue,name:"comparisonToolTarget",placeholder:t.comparisonToolTranslations.targetSelectPlaceholder,options:t.targetOptions,required:!1,disabled:t.targetSelectIsDisabled},on:{"update:value":function(e){return t.updateTarget(e)}}})],1)])}),[],!1,rn,"data-v-12ee20a7",null).exports;function cn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function un(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):cn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var dn={name:"VFComparisonPanel",components:{VFLightbox:Bs,Compare2Images:Os},props:{max:{type:String,default:""}},data:function(){return{isMinimized:!1,compareEnabled:!1,imagesToCompare:[],isLightboxOpen:!1,activeSlideIndex:0,lightboxShowInfo:!1}},computed:un(un({},Object(Et.c)({comparisonList:function(t){return t.virtualFarm.comparisonList}})),{},{isOpen:function(){return this.comparisonList.length>0},comparisonListFill:function(){if(this.comparisonList.length>0){var t=4-this.comparisonList.length;return Array.from(Array(t).keys())}return[]},virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},comparisonPanelTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.comparisonPanel)&&this.virtualFarmTranslations.comparisonPanel}}),watch:{isOpen:function(t){!1===t&&(this.compareEnabled=!1,this.isMinimized=!1),this.addRemoveMarginToBody()},isMinimized:function(){this.addRemoveMarginToBody()}},beforeDestroy:function(){window.removeEventListener("keyup",this.keyboardHandler)},methods:{removeImage:function(t){t>-1&&this.$store.commit("virtualFarm/removeFromComparisonList",this.comparisonList[t])},keyboardHandler:function(t){27===t.keyCode&&this.endCompare()},openLightbox:function(t,e){this.lightboxShowInfo=e,this.isLightboxOpen=!0,this.activeSlideIndex=t,Q.a.bodyAddClass("overflow-hidden")},closeLightbox:function(){this.lightboxShowInfo=!1,this.isLightboxOpen=!1,this.activeSlideIndex=0,this.compareEnabled||Q.a.bodyRemoveClass("overflow-hidden")},startCompare:function(){this.compareEnabled=!0,Q.a.bodyAddClass("overflow-hidden"),window.addEventListener("keyup",this.keyboardHandler)},endCompare:function(){this.compareEnabled=!1,Q.a.bodyRemoveClass("overflow-hidden")},addRemoveMarginToBody:function(){this.isOpen?Q.a.bodyAddClass("vf-comparison-panel-body-open"):Q.a.bodyRemoveClass("vf-comparison-panel-body-open"),this.isMinimized?Q.a.bodyAddClass("vf-comparison-panel-body-is-minimized"):Q.a.bodyRemoveClass("vf-comparison-panel-body-is-minimized")}}};var pn=function(t){i("Ixys")},mn=Object(g.a)(dn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"vf-comparison-panel-wrapper d-flex flex-column",class:{open:t.isOpen,minimized:t.isMinimized}},[i("div",{staticClass:"comparison-header justify-content-between my-3 mx-4"},[i("div",{staticClass:"d-flex align-items-center"},[t.isMinimized?t._e():i("button",{staticClass:"vf2-button secondary p-1 px-2 mr-1",on:{click:function(e){t.isMinimized=!0}}},[i("i",{staticClass:"bi-chevron-down",attrs:{"aria-hidden":"true"}})]),t._v(" "),t.isMinimized?i("button",{staticClass:"vf2-button secondary p-1 px-2 mr-1",on:{click:function(e){t.isMinimized=!1}}},[i("i",{staticClass:"bi-chevron-up",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),i("h3",{staticClass:"comparison-title m-0 ml-2 d-none d-md-block"},[t._v("\n          "+t._s(t.comparisonPanelTranslations.comparisonSelection)+" ("+t._s(t.comparisonList.length)+"/4)\n        ")]),t._v(" "),i("h3",{staticClass:"comparison-title m-0 ml-2 d-block d-md-none"},[t._v("\n          "+t._s(t.comparisonPanelTranslations.comparisonSelectionShort)+" ("+t._s(t.comparisonList.length)+"/4)\n        ")])]),t._v(" "),i("div",{staticClass:"d-flex align-items-center"},[i("button",{staticClass:"vf2-button ml-4",class:{disabled:1===t.comparisonList.length},attrs:{disabled:1===t.comparisonList.length},on:{click:t.startCompare}},[i("i",{staticClass:"bi-arrow-right-short mr-1",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.comparisonPanelTranslations.compare))]),t._v(" "),i("span",{staticClass:"d-none d-md-inline"},[t._v(t._s(t.comparisonPanelTranslations.compareSelection))])])])]),t._v(" "),i("div",{staticClass:"comparison-list d-flex justify-content-start my-2 mx-4"}
1,[t._l(t.comparisonList,(function(e,a){return i("div",{key:"compareList_"+a,staticClass:"col-10 col-sm-5 col-lg-3 p-0 comparison-image mr-1"},[i("picture",[e.srcSetWebp?i("source",{attrs:{srcset:e.srcSetWebp,type:"image/webp",sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 480px"}}):t._e(),t._v(" "),i("img",{staticClass:"panel-image",attrs:{srcset:e.srcSet,sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 480px",title:"",alt:""}})]),t._v(" "),i("p",{staticClass:"image-date"},[i("i",{staticClass:"bi-calendar3 mr-1",attrs:{"aria-hidden":"true"}}),t._v("\n          "+t._s(e.date)+"\n        ")]),t._v(" "),i("button",{staticClass:"vf2-button remove-panel-image-button d-flex align-items-center justify-content-center",on:{click:function(e){return t.removeImage(a)}}},[i("i",{staticClass:"bi bi-x",attrs:{title:t.comparisonPanelTranslations.removeImage,"aria-hidden":"true"}})])])})),t._v(" "),t._l(t.comparisonListFill,(function(t,e){return i("div",{key:"compareListFill_"+e,staticClass:"col-10 col-sm-5 col-lg-3 p-0 comparison-image-fill mr-1"},[i("i",{staticClass:"bi bi-image",attrs:{"aria-hidden":"true"}})])}))],2)]),t._v(" "),t.compareEnabled?i("div",{staticClass:"comparison-fullscreen"},[i("i",{staticClass:"bi-x-lg close-comparison-btn",attrs:{"aria-hidden":"true"},on:{click:t.endCompare}}),t._v(" "),i("div",{staticClass:"d-none d-md-block w-100"},[i("div",{staticClass:"row comparison-images"},[t.comparisonList.length<3?i("div",{staticClass:"single-image-wrapper compare-two-images"},[i("Compare2Images",[i("div",{attrs:{slot:"imageLeft"},slot:"imageLeft"},[i("picture",[t.comparisonList[0].srcSetWebp?i("source",{attrs:{srcset:t.comparisonList[0].srcSetWebp,type:"image/webp",sizes:"(min-width: 1200px) 2000px, (min-width: 992px) calc(100vw - 60px), calc(100vw - 30px)"}}):t._e(),t._v(" "),i("img",{staticClass:"comparison-img",attrs:{srcset:t.comparisonList[0].srcSet,sizes:"(min-width: 1200px) 2000px, (min-width: 992px) calc(100vw - 60px), calc(100vw - 30px)",title:"",alt:""}})])]),t._v(" "),i("div",{attrs:{slot:"imageRight"},slot:"imageRight"},[i("picture",[t.comparisonList[1].srcSetWebp?i("source",{attrs:{srcset:t.comparisonList[1].srcSetWebp,type:"image/webp",sizes:"(min-width: 1200px) 2000px, (min-width: 992px) calc(100vw - 60px), calc(100vw - 30px)"}}):t._e(),t._v(" "),i("img",{staticClass:"comparison-img",attrs:{srcset:t.comparisonList[1].srcSet,sizes:"(min-width: 1200px) 2000px, (min-width: 992px) calc(100vw - 60px), calc(100vw - 30px)",title:"",alt:""}})])])]),t._v(" "),i("button",{staticClass:"lightbox-trigger-btn compare-btn-1 vf2-button dark",on:{click:function(e){return t.openLightbox(0,!0)}}},[i("i",{staticClass:"bi-info-circle-fill",attrs:{"aria-hidden":"true"}}),t._v("\n            "+t._s(t.comparisonPanelTranslations.moreInfo)+"\n          ")]),t._v(" "),i("button",{staticClass:"lightbox-trigger-btn compare-btn-2 vf2-button dark",on:{click:function(e){return t.openLightbox(1,!0)}}},[i("i",{staticClass:"bi-info-circle-fill",attrs:{"aria-hidden":"true"}}),t._v("\n            "+t._s(t.comparisonPanelTranslations.moreInfo)+"\n          ")])],1):t._l(t.comparisonList,(function(e,a){return i("div",{key:a,staticClass:"col-6 mb-4"},[i("div",{staticClass:"single-image-wrapper"},[i("picture",[e.srcSetWebp?i("source",{attrs:{srcset:e.srcSetWebp,type:"image/webp",sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 100vw"}}):t._e(),t._v(" "),i("img",{staticClass:"comparison-img",attrs:{srcset:e.srcSet,sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 100vw",title:"",alt:""}})]),t._v(" "),i("button",{staticClass:"lightbox-trigger-btn details-btn",on:{click:function(e){return t.openLightbox(a,!1)}}},[i("i",{staticClass:"bi-search",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("button",{staticClass:"lightbox-trigger-btn info-btn vf2-button dark",on:{click:function(e){return t.openLightbox(a,!0)}}},[i("i",{staticClass:"bi-info-circle-fill",attrs:{"aria-hidden":"true"}}),t._v("\n              "+t._s(t.comparisonPanelTranslations.moreInfo)+"\n            ")])])])}))],2)]),t._v(" "),i("div",{staticClass:"d-sm-block d-md-none"},[i("div",{staticClass:"row comparison-images"},t._l(t.comparisonList,(function(e,a){return i("div",{key:a,staticClass:"col-12 mb-2"},[i("div",{staticClass:"single-image-wrapper",class:{"mt-70v":0==a&&t.comparisonList.length>3}}
1,[i("picture",[e.srcSetWebp?i("source",{attrs:{srcset:e.srcSetWebp,type:"image/webp",sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 100vw"}}):t._e(),t._v(" "),i("img",{staticClass:"comparison-img",attrs:{srcset:e.srcSet,sizes:"(min-width: 1200px) 480px, (min-width: 992px) 360px, (min-width: 768px) 360px, 100vw",title:"",alt:""}})]),t._v(" "),i("button",{staticClass:"lightbox-trigger-btn details-btn",on:{click:function(e){return t.openLightbox(a,!1)}}},[i("i",{staticClass:"bi-search",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("button",{staticClass:"lightbox-trigger-btn info-btn vf2-button dark",on:{click:function(e){return t.openLightbox(a,!0)}}},[i("i",{staticClass:"bi-info-circle-fill",attrs:{"aria-hidden":"true"}}),t._v("\n              "+t._s(t.comparisonPanelTranslations.moreInfo)+"\n            ")])])])})),0)])]):t._e(),t._v(" "),t.isLightboxOpen?i("VFLightbox",{attrs:{images:t.comparisonList,"initial-show-info":t.lightboxShowInfo,"initial-slide-index":t.activeSlideIndex},on:{close:t.closeLightbox}}):t._e()],1)}),[],!1,pn,"data-v-08deaddd",null).exports,hn={name:"VFImage",components:{VFLightbox:Bs},props:{enableLightbox:{type:Boolean,default:!0},image:{type:Object,default:function(){return{}}},sizes:{type:String,default:"100vw"}},data:function(){return{isLightboxOpen:!1,isMobile:!1,windowWidth:0}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations}},methods:{openLightbox:function(){this.isLightboxOpen=!0,document.getElementsByTagName("body")[0].classList.add("overflow-hidden")},closeLightbox:function(){this.isLightboxOpen=!1,document.getElementsByTagName("body")[0].classList.remove("overflow-hidden")}}};var fn=function(t){i("FqMi")},gn=Object(g.a)(hn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vf-image-wrapper"},[i("div",{ref:"slider",staticClass:"vf-slider d-flex justify-content-start"},[i("div",{staticClass:"slider-item d-flex align-items-center mx-auto"},[i("img",{staticClass:"single-image",attrs:{srcset:t.image.srcSet,sizes:t.sizes,title:"",alt:""}}),t._v(" "),t.enableLightbox?i("button",{staticClass:"single-image lightbox-trigger-btn",on:{click:t.openLightbox}},[i("i",{staticClass:"bi-search",attrs:{"aria-hidden":"true"}})]):t._e()])]),t._v(" "),t.isLightboxOpen?i("VFLightbox",{attrs:{images:[t.image]},on:{close:t.closeLightbox}}):t._e()],1)}),[],!1,fn,"data-v-28a6e415",null).exports,vn={name:"Wizard",props:{steps:{type:String,default:""},initialStep:{type:Number,default:1},showNext:{type:Boolean,default:!1},showPrevious:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!1},logoImgUrl:{type:String,default:""},logoImgAlt:{type:String,default:null},logoHrefUrl:{type:String,default:""},logoHrefTitle:{type:String,default:null}},data:function(){return{stepsName:[],step:1,id:null,hiddenStepIndexes:[],show:!0}},computed:{hasSlotOne:function(){return void 0!==this.stepsName[0]},hasSlotTwo:function(){return void 0!==this.stepsName[1]},hasSlotThree:function(){return void 0!==this.stepsName[2]},hasSlotFour:function(){return void 0!==this.stepsName[3]},hasSlotFive:function(){return void 0!==this.stepsName[4]},lastStep:function(){return this.hasSlotFive?5:this.hasSlotFour?4:this.hasSlotThree?3:this.hasSlotTwo?2:1}},mounted:function(){var t=this;this.stepsName=this.steps.split(","),this.initialStep&&(this.step=this.initialStep),F.a.$on(ne.a.WIZARD_PREVIOUS,(function(){t.step>0&&(t.step=t.step-1)})),F.a.$on(ne.a.WIZARD_NEXT,(function(){t.step<t.lastStep?t.step=t.step+1:(t.step=t.step+1,setTimeout((function(){F.a.$emit(ne.a.WIZARD_COMPLETE)}),1e3))})),F.a.$on(ne.a.WIZARD_ADD_ENTRY,(function(e){var i=!1;e.preventDuplicate&&t.stepsName.length>e.index&&t.stepsName[e.index]===e.name&&(i=!0),i||t.stepsName.splice(e.index,0,e.name)})),F.a.$on(ne.a.WIZARD_HIDE_ENTRY,(function(e){-1===t.hiddenStepIndexes.indexOf(e.index)&&t.hiddenStepIndexes.push(e.index)})),F.a.$on(ne.a.WIZARD_REFRESH_COMP,(function(){t.show=!1,t.$nextTick((function(){t.show=!0}))}))},beforeDestroy:function(){},methods:{getSlotTitle:function(t){return this.stepsName[t]?this.stepsName[t].replace('"',"").replace('"',"").replace("'","").replace("'","").replace("]","").replace("[",""):""},goNext:function(){F.a.$emit(ne.a.WIZARD_NEXT)},goPrevious:function(){F.a.$emit(ne.a.WIZARD_PREVIOUS)}}};var bn=function(t){i("3ud0")},wn=Object(g.a)(vn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",{staticClass:"wizard-wrapper"},[t.showHeader&&t.logoImgUrl?i("div",{staticClass:"wizard-header"},[i("div",{staticClass:"container-fluid"},[i("div",{staticClass:"container"},[i("a",{attrs:{href:t.logoHrefUrl,title:t.logoHrefTitle}},[i("img",{staticClass:"logo",attrs:{src:t.logoImgUrl,alt:t.logoImgAlt,title:t.logoImgAlt}})])])])]):t._e(),t._v(" "),i("div",{staticClass:"wizard"},[i("div",{staticClass:"container-fluid"},[i("div",{staticClass:"wizard-container"},[i("div",{staticClass:"wizard-steps"},[t.hasSlotOne?i("div",{staticClass:"step one",class:{complete:t.step>1,"in-progress":1===t.step,"d-none":-1!==t.hiddenStepIndexes.indexOf(0)}},[i("div",{staticClass:"node"}),t._v(" "),i("div",{staticClass:"step-name"},[t._v(t._s(t.getSlotTitle(0)))])]):t._e(),t._v(" "),t.hasSlotTwo?i("div",{staticClass:"step two",class:{complete:t.step>2,"in-progress":2===t.step,"d-none":-1!==t.hiddenStepIndexes.indexOf(1)}},[i("div",{staticClass:"node"}),t._v(" "),i("div",{staticClass:"step-name"},[t._v(t._s(t.getSlotTitle(1)))])]):t._e(),t._v(" "),t.hasSlotThree?i("div",{staticClass:"step three",class:{complete:t.step>3,"in-progress":3===t.step,"d-none":-1!==t.hiddenStepIndexes.indexOf(2)}},[i("div",{staticClass:"node"}),t._v(" "),i("div",{staticClass:"step-name"},[t._v(t._s(t.getSlotTitle(2)))])]):t._e(),t._v(" "),t.hasSlotFour?i("div",{staticClass:"step four",class:{complete:t.step>4,"in-progress":4===t.step,"d-none":-1!==t.hiddenStepIndexes.indexOf(3)}},[i("div",{staticClass:"node"}),t._v(" "),i("div",{staticClass:"step-name"},[t._v(t._s(t.getSlotTitle(3)))])]):t._e(),t._v(" "),t.hasSlotFive?i("div",{staticClass:"step five",class:{complete:t.step>5,"in-progress":5===t.step,"d-none":-1!==t.hiddenStepIndexes.indexOf(4)}},[i("div",{staticClass:"node"}),t._v(" "),i("div",{staticClass:"step-name"},[t._v(t._s(t.getSlotTitle(4)))])]):t._e()])])]),t._v(" "),i("div",{staticClass:"form mt-4"},[t.hasSlotOne&&1===t.step?t._t("one"):t._e(),t._v(" "),t.hasSlotTwo&&2===t.step?t._t("two"):t._e(),t._v(" "),t.hasSlotThree&&3===t.step?t._t("three"):t._e(),t._v(" "),t.hasSlotFour&&4===t.step?t._t("four"):t._e(),t._v(" "),t.hasSlotFive&&5===t.step?t._t("five"):t._e(),t._v(" "),i("div",{staticClass:"row mt-4"},[i("div",{staticClass:"col-1 col-sm-3 mt-4"}),t._v(" "),i("div",{staticClass:"col-5 col-sm-3 mt-4"},[t.showPrevious&&t.step>1&&t.step<=t.lastStep?i("button",{staticClass:"button button-light button-full-width prev-btn",on:{click:t.goPrevious}},[t._v("\n            Previous\n          ")]):t._e()]),t._v(" "),i("div",{staticClass:"col-5 col-sm-3 mt-4"},[t.showNext&&t.step<=t.lastStep?i("button",{staticClass:"button button-full-width next-btn",on:{click:t.goNext}},[t._v("\n            "+t._s(t.step<t.lastStep?"Next":"Finish")+"\n          ")]):t._e()])])],2)])]):t._e()}),[],!1,bn,"data-v-7d50a003",null).exports,yn=i("K4CH"),Cn=i.n(yn);function _n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Sn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?_n(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):_n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Tn={name:"SmartAppBanner",props:{title:{type:String,default:""},author:{type:String,default:""},icon:{type:String,default:""},idIos:{type:String,default:""},idAndroid:{type:String,default:""},priceIos:{type:String,default:""},priceAndroid:{type:String,default:""},tealiumIos:{type:String,default:""},tealiumAndroid:{type:String,default:""},storeLanguageIos:{type:String,default:""},daysHidden:{type:Number,default:15},daysReminder:{type:Number,default:90}},data:function(){return{agent:"",type:"",isSupported:!1,isVisible:!1,closeDate:0,installDate:0}},computed:Sn(Sn({},Object(Et.c)({apps:function(t){return t.smartAppBanner.apps}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations},config:function(){return void 0!==window.snConfig&&window.snConfig},options:function(){return{appStoreLanguage:this.storeLanguageIos||this.config.language,store:{ios:this.translations.app.store.ios,android:this.translations.app.store.android},price:{ios:this.priceIos,android:this.priceAndroid},force:"",icon:this.icon}},mixins:function(){return{ios:{appMeta:"apple-itunes-app",iconRels:["apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:this.getStoreLink("ios")},android:{appMeta:"google-play-app",iconRels:["android-touch-icon","apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:this.getStoreLink("android")}}}}),created:function(){var t=this;this.agent=Cn()(navigator.userAgent),this.options.force?this.type=this.options.force:"iOS"===this.agent.os.name?this.type="ios":"Android"===this.agent.os.name&&(this.type="android"),this.appId=this.getAppId();var e="IOS"===this.agent.os.name&&"Safari"===this.agent.browser.name;if(this.isSupported=!(!(this.appId&&this.type&&this.options.store[this.type])||e),this.isSupported){var i=(new Date).getTime(),a=this.apps.findIndex((function(e){return e.id===t.appId}));this.closeDate=a>-1&&this.apps[a].closeDate?this.apps[a].closeDate:0;var s=this.closeDate+1440*this.daysHidden*60*1e3<=i;this.installDate=a>-1&&this.apps[a].installDate?this.apps[a].installDate:0;var n=this.installDate+1440*this.daysReminder*60*1e3<=i;this.isVisible=s&&n}},mounted:function(){this.isSupported&&this.isVisible&&(this.init(),this.show())},methods:{getAppId:function(){switch(this.type){case"ios":return this.idIos;case"android":return this.idAndroid;default:return""}},getStoreLink:function(t){switch(t){case"ios":return"https://apps.apple.com/".concat(this.options.appStoreLanguage,"/app/id").concat(this.appId);case"android":return"https://play.google.com/store/apps/details?id=".concat(this.appId);default:return""}},getTealium:function(t){switch(t){case"ios":return this.tealiumIos||"";case"android":return this.tealiumAndroid||"";default:return""}},init:function(){var t=this,e=this.getStoreLink(this.type),i=this.getTealium(this.type),a=this.setIcon(),s=this.options.price[this.type],n=this.options.store[this.type],o=s&&n?"".concat(s," - ").concat(n):s||n,r=document.createElement("div"),l=this.options.theme||this.type;r.className="smartbanner smartbanner-".concat(l),r.innerHTML='\n        <div class="smartbanner-container">\n          <a href="javascript:void(0);" class="smartbanner-close" title="close">&times;</a>\n          <span class="smartbanner-icon" style="background-image: url(\''.concat(a,'\')"></span>\n          <div class="smartbanner-info">\n            <div class="smartbanner-title">').concat(this.title,"</div>\n            <div>").concat(this.author,'</div>\n            <span class="d-inline-block d-sm-none">').concat(s,'</span>\n            <span class="d-none d-sm-inline-block">').concat(o,'</span>\n          </div>\n          <a\n            href="').concat(e,'"\n            title="').concat(this.translations.common.visit," ").concat(this.title,'"\n            class="smartbanner-button"\n            ').concat(i?'data-teal
1ium-value="smart_banner_'.concat(i,'"\n                data-tealium-category="smart_banner"\n                data-tealium-type="action"\n                data-tealium-action="link_click"'):"",'\n          >\n            <span class="smartbanner-button-text">').concat(this.translations.common.view,"</span>\n          </a>\n        </div>"),document.body?document.body.appendChild(r):document&&document.addEventListener("DOMContentLoaded",(function(){document.body.appendChild(r)}));var c=document.querySelector(".smartbanner-close"),u=document.querySelector(".smartbanner-button");c.addEventListener("click",(function(){t.close()})),u.addEventListener("click",(function(){t.install()}))},setIcon:function(){if(this.options.icon)return this.options.icon;var t=document.getElementsByTagName("link");if(t)for(var e,i=this.mixins[this.type].iconRels,a=function(e){if(i.find((function(i){return i===t[e].rel})))return{v:t[e].href}},s=0;s<t.length;s+=1)if(e=a(s))return e.v},hide:function(t){document.body.classList.remove("smartbanner-show"),this.isVisible=!1;var e=(new Date).getTime();switch(t){case"close":this.$store.commit("smartAppBanner/setAppDate",{id:this.appId,closeDate:e});break;case"install":this.$store.commit("smartAppBanner/setAppDate",{id:this.appId,installDate:e})}},show:function(){document.body.classList.add("smartbanner-show")},close:function(){this.hide("close")},install:function(){this.hide("install")}}};var Pn=function(t){i("ULyy")},Fn=Object(g.a)(Tn,(function(){var t=this.$createElement;return(this._self._c||t)("section",{staticClass:"smart-banner-wrapper"})}),[],!1,Pn,"data-v-5395642b",null).exports,xn=i("cPsw"),On={name:"ProductMap",components:{GoogleMapInner:va,GdprOverlay:ze,SelectField:fs.a,SelectMultiField:xn.a},props:{latitude:{type:Number,default:0},longitude:{type:Number,default:0},zoom:{type:Number,default:8},width:{type:String,default:"100%"},height:{type:Number,default:500},googleKey:{type:String,default:""},iconWidth:{type:Number,default:20},iconHeight:{type:Number,default:28},iconDefault:{type:String,default:""},iconHover:{type:String,default:""},iconActive:{type:String,default:""},iconCluster:{type:String,default:""},iconClusterWidth:{type:Number,default:53},iconClusterHeight:{type:Number,default:53},iconClusterTextColor:{type:String,default:"white"},mapIconDefault:{type:String,default:""},mapIconHover:{type:String,default:""},mapIconActive:{type:String,default:""},tealiumPageCategory:{type:String,default:""},tealiumSubPageCategory:{type:String,default:""},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""},optInBackgroundImage:{type:String,default:""},optInBackgroundImageWebp:{type:String,default:""},useOneTrust:{type:Boolean,default:!0},isOneTrustEnabled:{type:Boolean,default:!1},showSearchbox:{type:Boolean,default:!0},searchboxDescription:{type:String,default:""},iconOrange:{type:String,default:""},iconLightGreen:{type:String,default:""},entriesParam:{type:String,default:""},regionsParam:{type:String,default:""},pestsParam:{type:String,default:""},cropsParam:{type:String,default:""},bottomText:{type:String,default:""}},data:function(){return{center:{},selectedMarkers:[],selectRegionValue:[],selectPestValue:[],selectCropValue:[],selectedRegionId:"",selectedPestId:"",selectedCropId:"",codes:["C0024"],entries:[],regions:[],pests:[],crops:[]}},computed:{translations:function(){return window.snTranslations||!1},productMapTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.productMap)&&window.snTranslations.productMap},config:function(){return void 0!==window.snConfig&&window.snConfig},shownFilterCount:function(){var t=0;return this.regions.length>1&&(t+=1),this.pests.length>1&&(t+=1),this.crops.length>1&&(t+=1),t}},created:function(){this.entries=this.entriesParam?JSON.parse(this.entriesParam):[],this.regions=this.regionsParam?JSON.parse(this.regionsParam):[],this.pests=this.pestsParam?JSON.parse(this.pestsParam):[],this.crops=this.cropsParam?JSON.parse(this.cropsParam):[],this.regions.sort((function(t,e){return t.name.localeCompare(e.name)}
1)),this.pests.sort((function(t,e){return t.name.localeCompare(e.name)})),this.crops.sort((function(t,e){return t.name.localeCompare(e.name)})),this.setGoogleMapKey(),this.setMap(this.latitude,this.longitude)},mounted:function(){this.load()},methods:{load:function(){var t=this;this.selectedMarkers=[],this.entries.filter((function(e){var i=!1;t.selectedRegionId&&""!==t.selectedRegionId?e.region===t.selectedRegionId&&(i=!0):i=!0;var a=!1;t.selectedPestId&&""!==t.selectedPestId?e.pest===t.selectedPestId&&(a=!0):a=!0;var s=!1;return t.selectedCropId&&""!==t.selectedCropId?e.crop===t.selectedCropId&&(s=!0):s=!0,i&&a&&s})).forEach((function(e){if(e.latitude&&e.longitude){var i=t.iconDefault;e.locatorColor&&"orange"===e.locatorColor?i=t.iconOrange:e.locatorColor&&"lightGreen"===e.locatorColor&&(i=t.iconLightGreen);var a="",s="",n="";if(e.pestName&&""!==e.pestName&&(a=e.pestName,s+='<div class="name">',s+=e.pestName,s+="</div>"),e.description&&""!==e.description){var o="";""!==s&&(o=" mt-3"),s+='<div class="description'.concat(o,'">'),s+=e.description,s+="</div>"}if(e.text&&""!==e.text&&(n+='<div class="description">',n+=e.text,n+="</div>"),e.products){var r="",l="";if(e.products.forEach((function(t){""!==r&&(r+=", "),r+=t.productName,l+="<li>",l+='<a data-tealium-type="action" data-tealium-category="pm_content_interaction" ',l+='data-tealium-action="button_click" data-tealium-value="',l+="pm_map-click_".concat(t.productName),l+='" ',l+='href="',l+=t.productUrl,l+='" title="',l+=t.productName,l+='">',l+=t.productName,l+="</a>",l+="</li>"})),""===a&&(a=r),""!==l){var c="";""!==n&&(c=" mt-3"),n+='<div class="link'.concat(c,'">'),n+='<ul class="link-list">',n+=l,n+="</ul>",n+="</div>"}}var u={name:a,htmlBeforeImg:s,htmlAfterImg:n,imageSrc:e.pictureUrl,icons:{default:i,hover:t.iconHover,active:t.iconActive},position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)}};t.selectedMarkers.push(u)}}))},updateRegion:function(t){t&&t.id?(this.selectedRegionId=t.id,"undefined"!=typeof utag&&t.name&&""!==t.name&&utag.link({event_type:"action",event_category:"pm_content_interaction",event_action:"click_option",event_value:"pm_search_region_selected_".concat(t.name)})):this.selectedRegionId="",this.load()},updatePest:function(t){t&&t.id?(this.selectedPestId=t.id,"undefined"!=typeof utag&&t.name&&""!==t.name&&utag.link({event_type:"action",event_category:"pm_content_interaction",event_action:"click_option",event_value:"pm_search_pest_selected_".concat(t.name)})):this.selectedPestId="",this.load()},updateCrop:function(t){t&&t.id?(this.selectedCropId=t.id,"undefined"!=typeof utag&&t.name&&""!==t.name&&utag.link({event_type:"action",event_category:"pm_content_interaction",event_action:"click_option",event_value:"pm_search_crop_selected_".concat(t.name)})):this.selectedCropId="",this.load()},setGoogleMapKey:function(){this.googleKey&&o.default.use(he,{load:{key:this.googleKey,libraries:"places"}})},setMap:function(t,e){this.center={lat:t,lng:e}}}};var kn=function(t){i("mSl/")},Ln=Object(g.a)(On,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"google-map-wrapper product-map-google-map-wrapper"},[i("div",{staticClass:"gdpr-overlay-outter-wrapper"},[i("GdprOverlay",{attrs:{height:t.height+76+"px","optin-button":t.translations.gdpr.googleMap.optinButton,"optin-message":t.translations.gdpr.googleMap.optinMessage,"optin-message-accepted":t.translations.gdpr.googleMap.optinMessageAccepted,"optin-background-image":t.optInBackgroundImage,"optin-background-image-webp":t.optInBackgroundImageWebp,"is-one-trust-enabled":t.isOneTrustEnabled,"use-one-trust":t.useOneTrust,codes:t.codes,type:"googleMap"}},[i("div",[t.regions.length>1||t.pests.length>1||t.crops.length>1?i("div",{staticClass:"row"},[t.regions.length>1?i("div",{staticClass:"fl-select",class:{"col-md-4":3===t.shownFilterCount,"col-md-6":2===t.shownFilterCount,"col-md-12":1===t.shownFilterCount}},[i("SelectField",{attrs:{value:t.selectRegionValue,name:"pmRegion",placeholder:t.productMapTranslations.regionSelectPlaceholder,options:t.regions,required:!1,disabled:!1},on:{"update:value":function(e){return t.updateRegion(e)}}})],1):t._e(),t._v(" "),t.crops.length>1?i("div",{staticClass:"fl-select",class:{"col-md-4":3===t.shownFilterCount,"col-md-6":2===t.shownFilterCount,"col-md-12":1===t.shownFilterCount}},[i("SelectField",{attrs:{value:t.selectCropValue,name:"pmCrop",placeholder:t.productMapTranslations.cropsSelectPlaceholder,options:t.crops,required:!1,disabled:!1},on:{"update:value":function(e){return t.updateCrop(e)}}})],1):t._e(),t._v(" "),t.pests.length>1?i("div",{staticClass:"fl-select",class:{"col-md-4":3===t.shownFilterCount,"col-md-6":2===t.shownFilterCount,"col-md-12":1===t.shownFilterCount}},[i("SelectField",{attrs:{value:t.selectPestValue,name:"pmPest",placeholder:t.productMapTranslations.pestsSelectPlaceholder,options:t.pests,required:!1,disabled:!1},on:{"update:value":function(e){return t.updatePest(e)}}}
1)],1):t._e()]):t._e(),t._v(" "),i("GoogleMapInner",{attrs:{center:t.center,zoom:t.zoom,width:t.width,height:t.height,markers:t.selectedMarkers,"icon-width":t.iconWidth,"icon-height":t.iconHeight,"icon-default":t.iconDefault,"icon-hover":t.iconHover,"icon-active":t.iconActive,"icon-cluster":t.iconCluster,"icon-cluster-width":t.iconClusterWidth,"icon-cluster-height":t.iconClusterHeight,"icon-cluster-text-color":t.iconClusterTextColor,"map-icon-default":t.mapIconDefault,"map-icon-hover":t.mapIconHover,"map-icon-active":t.mapIconActive,"tealium-page-category":t.tealiumPageCategory,"tealium-sub-page-category":t.tealiumSubPageCategory,"tealium-value":t.tealiumValue,"tealium-type":t.tealiumType,"tealium-category":t.tealiumCategory,"tealium-action":t.tealiumAction,"link-target-blank":!1,"show-searchbox":t.showSearchbox,"searchbox-description":t.searchboxDescription,"handle-preference-bar-location":!1,"show-name-in-popup":!1}}),t._v(" "),t.bottomText&&""!==t.bottomText?i("div",{staticClass:"row"},[i("div",{staticClass:"col mt-4",domProps:{innerHTML:t._s(t.bottomText)}})]):t._e()],1)])],1)])}),[],!1,kn,"data-v-5aa1ef12",null).exports,In={name:"AttentionModal",components:{PopupComp:i("YagJ").a},props:{inactivityTime:{type:Number,default:60}},data:function(){return{hasShownOnce:!1}},mounted:function(){this.setupActivityListeners(),this.resetInactivityTimer(),document.addEventListener("mouseleave",this.handleMouseLeave)},beforeUnmount:function(){this.removeActivityListeners(),clearTimeout(this.inactivityTimer),document.removeEventListener("mouseleave",this.handleMouseLeave)},methods:{open:function(){this.hasShownOnce||(this.hasShownOnce=!0,this.$refs.attentionModalRef.open())},close:function(){this.$refs.attentionModalRef.close()},cancel:function(){this.close()},resetInactivityTimer:function(){var t=this;clearTimeout(this.inactivityTimer),this.inactivityTimer=setTimeout((function(){t.open()}),1e3*this.inactivityTime)},setupActivityListeners:function(){var t=this;["mousemove","keydown","scroll","touchstart"].forEach((function(e){window.addEventListener(e,t.resetInactivityTimer)}))},removeActivityListeners:function(){var t=this;["mousemove","keydown","scroll","touchstart"].forEach((function(e){window.removeEventListener(e,t.resetInactivityTimer)}))},handleMouseLeave:function(t){t.clientY<=0&&this.open()}}};var En=function(t){i("quPu")},Vn=Object(g.a)(In,(function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"attention-modal-wrapper"},[e("PopupComp",{ref:"attentionModalRef"},[e("div",{staticClass:"mt-4 mx-lg-4"},[this._t("default")],2)])],1)}),[],!1,En,"data-v-6de4b0c9",null).exports,An=i("06iw"),Dn={name:"PrimaryButton",props:{isVisible:{type:Boolean,default:!0},isDisabled:{type:Boolean,default:!1},text:{type:String,default:""},icon:{type:String,default:""},color:{type:String,default:""},backgroundColor:{type:String,default:""},align:{type:String,default:"left"}},data:function(){return{styleObject:{color:this.color,backgroundColor:this.backgroundColor}}},mounted:function(){},methods:{handleClick:function(){this.isDisabled||this.$emit("clicked")},isAlignedRight:function(){return"right"===this.align}}};var Mn=function(t){i("8UxK")},Rn=Object(g.a)(Dn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isVisible?i("a",{staticClass:"button",class:{disabled:t.isDisabled,"float-sm-right":t.isAlignedRight()},style:t.styleObject,attrs:{title:"",href:"#"},on:{click:function(e){return e.preventDefault(),t.handleClick.apply(null,arguments)}}},[t.text.length?i("span",[t._v(t._s(t.text))]):t._e(),t._v(" "),t.icon.length?i("span",{staticClass:"button-icon",class:[t.icon]}):t._e()]):t._e()}),[],!1,Mn,"data-v-77a00a4d",null).exports,$n=i("GUe+"),Nn=i("tK4P"),jn=i("OCip"),zn={name:"MapIcon",components:{BButton:$n.a,BTooltip:Nn.a,BPopover:jn.a},props:{mapIconDefault:{type:String,default:""},mapIconHover:{type:String,default:""},mapIconActive:{type:String,default:""},mapIconSize:{type:String,default:""},hotspotIconDefault:{type:String,default:""},hotspotIconHover:{type:String,default:""},hotspotIconActive:{type:String,default:""},hotspotIconSize:{type:String,default:""},top:{type:String,default:"0"},left:{type:String,default:"0"},pictureAlt:{type:String,default:""},count:{type:String,default:"0"},popup:{type:String,default:""},popupLink:{type:String,default:""},soloMode:{type:String,default:"true"},tealiumPageCategory:{type:String,default:""},tealiumSubPageCategory:{type:String,default:""},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""},type:{type:String,default:""},shape:{type:String,default:""},imageWidth:{type:String,default:""},mapId:{type:String,default:""},tooltipSize:{type:String,default:""},tooltipColor:{type:String,default:""}},data:function(){return{hover:!1,active:!1,height:0,placement:"top",
1isSoloMode:!0,useHotspotSymbols:!1,useMapSymbols:!1,useDefaultSymbols:!0,showTooltip:!1,mapWidth:0,scale:1,initialAreaCoords:""}},mounted:function(){var t=this;this.isSoloMode="true"===this.soloMode,this.useHotspotSymbols=!!(this.hotspotIconDefault&&this.hotspotIconHover&&this.hotspotIconActive),this.useMapSymbols=!this.useHotspotSymbols&&!!(this.mapIconDefault&&this.mapIconHover&&this.mapIconActive),this.useDefaultSymbols=!this.useHotspotSymbols&&!this.useMapSymbols,"default"!==this.type&&(this.active=!0,this.showTooltip=!0),"overlay"===this.type&&this.mapId&&(this.initialAreaCoords=document.getElementById("map-area-".concat(this.count)).coords,this.setScaleValue(),window.addEventListener("resize",(function(){t.setScaleValue()})),window.addEventListener("vue-map-icon-resize",(function(){t.setScaleValue()})))},methods:{setScaleValue:function(){var t=this;this.mapWidth=document.getElementById("map-".concat(this.mapId)).offsetWidth,this.scale=this.mapWidth/this.imageWidth;var e=document.getElementById("map-area-".concat(this.count)),i=this.initialAreaCoords.split(",");i=(i=i.map((function(e){return Math.round(+e*t.scale)}))).join(","),e.coords=i;var a=document.getElementById("map-overlay-".concat(this.count));a&&(a.style.transform="scale(".concat(this.scale,")"))},toggle:function(){this.active=!this.active,this.showTooltip=!this.showTooltip,this.active&&"undefined"!=typeof utag&&utag.link({event_name:this.tealiumValue,event_value:this.tealiumValue,event_type:this.tealiumType,event_category:this.tealiumCategory,event_action:this.tealiumAction,page_category:this.tealiumPageCategory,page_subcategory:this.tealiumSubPageCategory})},getImage:function(){return this.useHotspotSymbols?this.active?this.hotspotIconActive:this.hover?this.hotspotIconHover:this.hotspotIconDefault:this.active?this.mapIconActive:this.hover?this.mapIconHover:this.mapIconDefault},getDefaultIcon:function(){return this.active?"icon icon-minus-alt active":"icon icon-plus-alt"},getIconWidth:function(){return"".concat(this.useHotspotSymbols?this.hotspotIconSize:this.mapIconSize,"px")}}};var Bn=function(t){i("IpQ+")},qn=Object(g.a)(zn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"interactive-map-icon",class:t.type,attrs:{id:"map-spot-"+t.count}},["default"!==t.type&&t.type?[i("div",{staticClass:"popover fixed",style:{position:"absolute",top:t.top+"%",left:t.left+"%"}},[i(t.popupLink?"a":"div",{tag:"component",attrs:{href:t.popupLink||""}},[i("div",{staticClass:"popover-content",domProps:{innerHTML:t._s(t.popup)}})])],1)]:[i("picture",{style:{position:"absolute",top:t.top+"%",left:t.left+"%"},on:{mouseover:function(e){t.hover=!0},mouseleave:function(e){t.hover=!1}}},[i("b-button",{ref:"button",staticClass:"popover-trigger",class:[t.useDefaultSymbols?t.getDefaultIcon():"",t.tooltipSize,t.tooltipColor],attrs:{id:"popover-"+t.count+"-"+t.placement,variant:"primary"},on:{click:function(e){return t.toggle()}}},[t.useDefaultSymbols?t._e():i("img",{style:{width:t.getIconWidth()},attrs:{src:t.getImage(),title:t.pictureAlt,alt:t.pictureAlt}})])],1),t._v(" "),i("b-tooltip",{attrs:{target:"popover-"+t.count+"-"+t.placement,container:"map-spot-"+t.count,show:t.showTooltip,placement:"bottom"},on:{"update:show":function(e){t.showTooltip=e}}}),t._v(" "),i("b-popover",{attrs:{target:"popover-"+t.count+"-"+t.placement,container:"map-spot-"+t.count,placement:t.placement,show:t.active,triggers:t.isSoloMode?"blur":"click"},on:{"update:show":function(e){t.active=e}}},[i("div",{staticClass:"popover-content"},["default"!==t.type&&t.type?t._e():i("span",{ref:"button",staticClass:"popover-close",on:{click:function(e){t.active=!1}}}),t._v(" "),i("div",{domProps:{innerHTML:t._s(t.popup)}})])])]],2)}),[],!1,Bn,"data-v-efd10cc2",null).exports;function Un(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Hn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?Un(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Un(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Gn={name:"CtaButton",components:{LinkButton:Wa},props:{flag:{type:String,default:""},actionLink:{type:String,default:""},subline:{type:String,default:""},isBasic:{type:Boolean,default:!1},isDependentOnLogin:{type:Boolean,default:!1},align:{type:String,default:"center"},tealiumValue:{type:String,default:""},tealiumType:{type:String,default:""},tealiumCategory:{type:String,default:""},tealiumAction:{type:String,default:""},reverseOrder:{type:Boolean,default:!1},tealiumLoginValue:{type:String,default:""},tealiumRegisterValue:{type:String,default:""},loginHeadline:{type:String,default:""},registerHeadline:{type:String,default:""}},computed:Hn(Hn({},Object(Et.c)({userId:function(t){return t.forms.userId}})),{},{isVisible:function(){return!this.isDependentOnLogin||this.userId},translations:function(){return void 0!==window.snTranslations&&window.snTranslations},config:function(){return void 0!==window.snConfig&&window.snConfig}}),methods:{register:function(){this.$store.dispatch("forms/register",{redirect:this.config.myServicesPrivateUrl})},login:function(){this.$store.dispatch("forms/login",{redirect:this.config.myServicesPrivateUrl})}}};var Wn=function(t){i("rlet")},Zn=Object(g.a)(Gn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isVisible?i("section",{staticClass:"cta-button-wrapper",class:{left:"left"===t.align,center:"center"===t.align,right:"right"===t.align}},["register"!==t.flag||t.actionLink?t._e():i("div",{staticClass:"action-button",class:{basic:t.isBasic}},[i("LinkButton",{attrs:{label:t.translations.form.links.register,"button-class":"theme-color m-0","tealium-value":t.tealiumValue,"tealium-type":t.tealiumType,"tealium-category":t.tealiumCategory,"tealium-action":t.tealiumAction},on:{clicked:function(e){return t.register()}}}
1)],1),t._v(" "),"registerAndLoginSideBySide"===t.flag?i("div",{staticClass:"d-flex flex-wrap flex-column flex-md-row",class:{basic:t.isBasic}},[i("div",{staticClass:"pb-3 d-flex flex-column justify-content-end",class:[t.reverseOrder?"order-3":"order-1",t.loginHeadline||t.registerHeadline?"pt-1":"pt-3"]},[t.loginHeadline?i("h2",{staticClass:"mb-4"},[i("strong",[t._v(t._s(t.loginHeadline))])]):t._e(),t._v(" "),i("LinkButton",{attrs:{label:t.translations.form.links.login,"button-class":"theme-color m-0","tealium-value":t.tealiumLoginValue,"tealium-type":t.tealiumType,"tealium-category":t.tealiumCategory,"tealium-action":t.tealiumAction},on:{clicked:function(e){return t.login()}}})],1),t._v(" "),i("div",{staticClass:"spacing-border-right d-none d-md-block order-2"}),t._v(" "),i("div",{staticClass:"pb-3 d-flex flex-column justify-content-end",class:[t.reverseOrder?"order-1":"order-3",t.loginHeadline||t.registerHeadline?"pt-1":"pt-3"]},[t.registerHeadline?i("h2",{staticClass:"mb-4"},[i("strong",[t._v(t._s(t.registerHeadline))])]):t._e(),t._v(" "),i("LinkButton",{attrs:{label:t.translations.form.links.register,"button-class":"theme-color m-0","tealium-value":t.tealiumRegisterValue,"tealium-type":t.tealiumType,"tealium-category":t.tealiumCategory,"tealium-action":t.tealiumAction},on:{clicked:function(e){return t.register()}}}
1)],1)]):i("div",{staticClass:"action-button",class:{basic:t.isBasic},domProps:{innerHTML:t._s(t.actionLink)}}),t._v(" "),t.subline?i("div",{staticClass:"subline mt-1",domProps:{innerHTML:t._s(t.subline)}}):t._e()]):t._e()}),[],!1,Wn,"data-v-23c9ca94",null).exports;function Jn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Kn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Jn(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Jn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Yn={name:"ProgressBar",components:{BProgress:i("SfWM").a},props:{value:{type:Number,default:0},max:{type:Number,default:100},precision:{type:Number,default:2},showProgress:{type:Boolean,default:!0},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1},isSsp:{type:Boolean,default:!1},subline:{type:String,default:""},cucumber:{type:String,default:null}},data:function(){return{currentValue:0,loadingError:!1}},computed:Kn(Kn({},Object(Et.c)({userId:function(t){return t.forms.userId},userProgress:function(t){return t.forms.userProgress}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}}),watch:{userId:{handler:function(t,e){t&&t!==e&&oe.a.extractPostLoginFromSessionStorage()&&this.getProgress()}},userProgress:function(){this.currentValue=this.userProgress}},mounted:function(){var t=this;this.value&&(this.currentValue=this.value),this.isSsp&&oe.a.extractPostLoginFromSessionStorage()&&this.getProgress(),F.a.$on(ne.a.UPDATE_SSP,(function(e){e===ne.c.UPDATE_ACCOUNT_LOOKUP&&t.getProgress()}))},methods:{getProgress:function(){var t=this;this.$store.dispatch("forms/getProfileProgressState").then((function(e){t.$store.commit("forms/setUserProgress",e.status)})).catch((function(){t.loadingError=!0}))}}};var Qn=function(t){i("SCOw")},Xn=Object(g.a)(Yn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"progress-bar-wrapper"},[t.loadingError?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:[t.showProgress?i("label",[i("span",{staticClass:"progress-label"},[t._v(t._s(t.currentValue))])]):t._e(),t._v(" "),i("b-progress",{staticClass:"mb-2",attrs:{value:t.currentValue,max:t.max,"show-progress":t.showProgress,precision:t.precision,striped:t.striped,animated:t.animated,"data-cucumber":t.cucumber,height:"15px"}}),t._v(" "),i("div",{staticClass:"progress-bar-subline",domProps:{innerHTML:t._s(t.subline)}})]],2)}),[],!1,Qn,"data-v-71fa77e0",null).exports,to=i("kZSG");function eo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function io(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?eo(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):eo(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ao={name:"LogInOutButton",components:{LinkButton:Wa},computed:io(io({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},config:function(){return void 0!==window.snConfig&&window.snConfig}}),methods:{logIn:function(){this.$store.dispatch("forms/login")},logOut:function(){this.$store.dispatch("forms/logout")}}};var so=function(t){i("1kpS")},no=Object(g.a)(ao,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isLoggedIn?i("LinkButton",{attrs:{"icon-class":"icon icon-account1 left","label-class":"d-none d-md-block",label:t.translations.links.logout,"tealium-value":"ssp_log-out","tealium-type":"action","tealium-category":"ssp","tealium-action":"button_click"},on:{clicked:function(e){return t.logOut()}}}):i("LinkButton",{attrs:{label:t.translations.links.login,"button-class":"theme-color","label-class":"d-none d-md-block","icon-class":"icon icon-account1 left","tealium-value":"ssp_log-in","tealium-type":"action","tealium-category":"ssp","tealium-action":"button_click"},on:{clicked:function(e){return t.logIn()}}}
1)],1)}),[],!1,so,"data-v-4b91ab00",null).exports,oo={name:"LoginRegisterModal",props:{redirectUrl:{default:"",type:String},registerUrl:{default:"",type:String},buttonClass:{default:"",type:String}},data:function(){return{id:null}},computed:{formTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},loginRegisterModalTranslations:function(){return!(!this.formTranslations||void 0===this.formTranslations.loginRegisterModal)&&this.formTranslations.loginRegisterModal},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}},mounted:function(){this.id="loginRegisterModal_".concat(this._uid)},methods:{triggerModal:function(){var t=!1;if(this.loginRegisterModalTranslations&&void 0!==this.loginRegisterModalTranslations.title&&""!==this.loginRegisterModalTranslations.title&&void 0!==this.loginRegisterModalTranslations.loginText&&""!==this.loginRegisterModalTranslations.loginText&&void 0!==this.loginRegisterModalTranslations.registerText&&""!==this.loginRegisterModalTranslations.registerText&&(t=!0),!0===t){var e=this.$refs.modalTrigger;e.dataset.target="#".concat(this.id),e.click((function(t){return t.preventDefault(),!1}))}else this.login()},login:function(){this.$store.dispatch("forms/login",{redirect:this.redirectUrl})},register:function(){this.$store.dispatch("forms/register",{redirect:this.redirectUrl})}}};var ro=function(t){i("CYzv")},lo=Object(g.a)(oo,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal fade basic-modal login-register-modal",attrs:{id:t.id,"data-backdrop":"static","data-keyboard":!1,tabindex:"-1",role:"dialog","aria-labelledby":"loginRegisterModalCenterTitle"}},[i("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[i("div",{staticClass:"modal-content"},[i("div",{staticClass:"modal-header"},[i("h5",{staticClass:"modal-title",domProps:{innerHTML:t._s(t.loginRegisterModalTranslations.title)}}),t._v(" "),t._m(0)]),t._v(" "),i("div",{staticClass:"modal-body"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-6 mb-4 mb-md-0 text-center"},[i("p",[t._v(t._s(t.loginRegisterModalTranslations.loginText))]),t._v(" "),i("button",{staticClass:"btn modal-save",class:t.buttonClass,attrs:{type:"button","data-dismiss":"modal"},domProps:{innerHTML:t._s(t.formTranslations.links.login)},on:{click:function(e){return t.login()}}})]),t._v(" "),i("div",{staticClass:"col-md-6 text-center"},[i("p",[t._v(t._s(t.loginRegisterModalTranslations.registerText))]),t._v(" "),t.registerUrl?[i("a",{staticClass:"btn modal-save",class:t.buttonClass,attrs:{href:t.registerUrl,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,t.formTranslations.links.register)},domProps:{innerHTML:t._s(t.formTranslations.links.register)}})]:[i("button",{staticClass:"btn modal-save",class:t.buttonClass,attrs:{type:"button","data-dismiss":"modal"},domProps:{innerHTML:t._s(t.formTranslations.links.register)},on:{click:function(e){return t.register()}}})]],2)])]),t._v(" "),i("div",{staticClass:"modal-footer"})])]),t._v(" "),i("input",{ref:"modalTrigger",attrs:{"data-toggle":"modal",type:"hidden"}})])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})])}],!1,ro,"data-v-8989750c",null).exports;function co(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function uo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?co(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):co(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var po={name:"RegisterServiceLink",components:{Fragment:it.a,LoginRegisterModal:lo},props:{cssClass:{type:String,default:null},target:{type:String,default:null},tealiumValue:{type:String,default:null},formId:{type:String,default:""},loggedInUrl:{type:String,default:""},registerUrl:{type:String,default:""}},computed:uo(uo({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}}
1)),{},{href:function(){var t="";return this.isLoggedIn&&(t=this.loggedInUrl),t},registerUrlWithFormId:function(){var t=this.registerUrl;return this.formId&&(t+="?formId=".concat(encodeURIComponent(this.formId))),t},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},loginRegisterModalTranslations:function(){return!(!this.translations||void 0===this.translations.loginRegisterModal)&&this.translations.loginRegisterModal}}),methods:{handleClick:function(t){this.isLoggedIn||(t.preventDefault(),this.$refs.modalLoginRegister.triggerModal())}}};var mo=function(t){i("yIRg")},ho=Object(g.a)(po,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[i("a",{class:t.cssClass,attrs:{target:t.target,"data-tealium-value":t.tealiumValue,href:t.href,title:t.loginRegisterModalTranslations.title},on:{click:function(e){return t.handleClick(e)}}},[t._t("default")],2),t._v(" "),i("LoginRegisterModal",{ref:"modalLoginRegister",attrs:{"register-url":t.registerUrlWithFormId}})],1)}),[],!1,mo,"data-v-1c6be0ca",null).exports,fo={name:"GdprCheckbox",props:{type:{type:String,default:""},code:{type:String,default:""},codeId:{type:String,default:""},isOneTrustEnabled:{type:Boolean,default:!1}},data:function(){return{id:null,checkboxValue:!1}},mounted:function(){var t=this;this.id="gdpr-checkbox-".concat(this._uid),F.a.$on(ne.a.GDPR_OVERLAY_CHECK_ONETRUST_COOKIES,(function(){t.checkOneTrustCookies()})),this.checkType()},methods:{checkType:function(){var t=this;if(this.isOneTrustEnabled)var e=0,i=setInterval((function(){e+=1,"undefined"!=typeof OnetrustActiveGroups&&"undefined"!=typeof OneTrust?(clearInterval(i),t.checkOneTrustCookies(),OneTrust.OnConsentChanged((function(){F.a.$emit(ne.a.GDPR_OVERLAY_CHECK_ONETRUST_COOKIES)}))):e>10&&(clearInterval(i),console.log("Error: OneTrust was not rendered after 10sec"),n.a.addFrontendMessage("error","OneTrustNotRendered","Error: OneTrust was not rendered after 10sec"))}),1e3);else console.log("Error: OneTrust is not enabled on this site"),this.checkboxValue=!0},checkOneTrustCookies:function(){this.isOneTrustEnabled?"undefined"!=typeof OnetrustActiveGroups&&this.code&&(OnetrustActiveGroups.includes(this.code)?this.checkboxValue=!0:this.checkboxValue=!1):console.log("Error: OneTrust is not enabled on this site")},updateGdpr:function(){this.checkboxValue=!this.checkboxValue,this.isOneTrustEnabled?this.checkboxValue?this.acceptCookies():this.removeCookies():console.log("Error: OneTrust is not enabled on this site")},acceptCookies:function(){var t=[];if(t.push({Id:this.codeId,TransactionType:"CONFIRMED"}),OneTrust.setConsentProfile({purposes:t}),OneTrust.Init(),F.a.$emit(ne.a.GDPR_OVERLAY_CHECK_ONETRUST_COOKIES),!this.checkboxValue){var e="OnetrustActiveGroups:".concat(OnetrustActiveGroups," | IframeCookies:").concat(this.codes);n.a.addFrontendMessage("info","GdprCookieNotIncluded",e)}},removeCookies:function(){var t=[];if(t.push({Id:this.codeId,TransactionType:"OPT_OUT"}),OneTrust.setConsentProfile({purposes:t}),OneTrust.Init(),F.a.$emit(ne.a.GDPR_OVERLAY_CHECK_ONETRUST_COOKIES),this.checkboxValue){var e="OnetrustActiveGroups:".concat(OnetrustActiveGroups," | IframeCookies:").concat(this.codes);n.a.addFrontendMessage("info","GdprCookieNotRemoved",e)}}}};var go=function(t){i("PVBf")},vo=Object(g.a)(fo,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"custom-control custom-checkbox gdpr-checkbox"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.checkboxValue,expression:"checkboxValue"}],staticClass:"custom-control-input",attrs:{id:t.id,type:"checkbox"},domProps:{checked:Array.isArray(t.checkboxValue)?t._i(t.checkboxValue,null)>-1:t.checkboxValue},on:{click:function(e){return t.updateGdpr()},change:function(e){var i=t.checkboxValue,a=e.target,s=!!a.checked;if(Array.isArray(i)){var n=t._i(i,null);a.checked?n<0&&(t.checkboxValue=i.concat([null])):n>-1&&(t.checkboxValue=i.slice(0,n).concat(i.slice(n+1)))}else t.checkboxValue=s}}}),t._v(" "),i("label",{staticClass:"custom-control-label",attrs:{for:t.id}},[t._t("default")],2)])}),[],!1,go,"data-v-10eb434a",null).exports,bo={name:"UrlErrorParameter",data:function(){return{urlParam
1s:{},error:"",errorDescription:"",azureEmailTokenIsExpired:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}},created:function(){this.handleInitialUrlParams()},methods:{handleInitialUrlParams:function(){if(this.urlParams=this.$route.query,this.urlParams&&(this.urlParams.error&&(this.error=this.urlParams.error.replaceAll("_"," ")),this.urlParams.error_description&&(this.errorDescription=this.urlParams.error_description)),this.errorDescription&&-1!==this.errorDescription.indexOf("AADB2C90208")){this.azureEmailTokenIsExpired=!0;var t=document.querySelectorAll("main .text-image");t&&t.forEach((function(t){t.style.display="none"}))}},resendEmail:function(){this.$store.dispatch("forms/resendEmail")}}};var wo=function(t){i("9oJ1")},yo=Object(g.a)(bo,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.error||t.errorDescription||t.azureEmailTokenIsExpired?i("div",[t.azureEmailTokenIsExpired?[i("div",{staticClass:"text-center"},[t._v("\n      "+t._s(t.translations.error.registration.link.expired.text)+"\n      "),i("div",{staticClass:"mt-3"},[i("button",{staticClass:"ssp-button d-inline",on:{click:function(e){return t.resendEmail()}}},[t._v(t._s(t.translations.error.registration.link.expired.button))])])])]:[i("div",{staticClass:"alert alert-danger"},[t.error?i("h2",{staticClass:"text-capitalize"},[t._v(t._s(t.error))]):t._e(),t._v(" "),t.errorDescription?i("samp",[t._v(t._s(t.errorDescription))]):t._e()])]],2):t._e()}),[],!1,wo,"data-v-13b3898e",null).exports,Co={name:"Podcast",props:{mediaUrl:{type:String,default:""},mini:{type:Boolean,default:!1}}};var _o=function(t){i("T1aQ")},So=Object(g.a)(Co,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.mediaUrl?i("div",{staticClass:"podcast"},[t.mini?t._e():i("vue-audio",{attrs:{"audio-source":t.mediaUrl,html5:!0}}),t._v(" "),t.mini?i("mini-audio",{attrs:{"audio-source":t.mediaUrl,html5:!0}}):t._e()],1):t._e()}),[],!1,_o,"data-v-470af73e",null).exports;function To(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var Po={name:"AlertBanner",props:{customClass:{type:String,default:""},showAfterMinutes:{type:Number,default:2880}},data:function(){return{show:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?To(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):To(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(Et.c)({closeDate:function(t){return t.alertBanner.closeDate}})),created:function(){var t=(new Date).getTime();this.closeDate+60*this.showAfterMinutes*1e3<=t?this.show=!0:this.show=!1},methods:{close:function(){this.show=!1;var t=(new Date).getTime();this.$store.commit("alertBanner/setCloseDate",t)}}};var Fo=function(t){i("LvDE")},xo=Object(g.a)(Po,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",{staticClass:"alert alert-danger alert-dismissible",class:t.customClass},[i("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(e){return t.close()}}},[i("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),t._t("default")],2):t._e()}),[],!1,Fo,"data-v-701fa91f",null).exports,Oo={name:"GdprSettingsLink",props:{isOneTrustEnabled:{type:Boolean,default:!1},linkClass:{type:String,default:""}},data:function(){return{oneTrustLoaded:!1}},computed:{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}},mounted:function(){this.checkOneTrustLoaded()},methods:{checkOneTrustLoaded:function(){var t=this;if(this.isOneTrustEnabled)var e=0,i=setInterval((function(){e+=1,"undefined"!=typeof OneTrust?(clearInterval(i),t.oneTrustLoaded=!0):e>10&&(clearInterval(i),console.log("Error: OneTrust was not rendered after 10sec"),n.a.addFrontendMessage("error","OneTrustNotRendered","Error: OneTrust was not rendered after 10sec"))}),1e3)},openOneTrustSettings:function(){"undefined"!=typeof OneTrust&&OneTrust.ToggleInfoDisplay()}}};var ko=function(t){i("DpYc")},Lo=Object(g.a)(Oo,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.oneTrustLoaded?i("li",[i("a",{class:t.linkClass,attrs:{title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,"OneTrust"),href:"#"},on:{click:function(e){return e.preventDefault(),t.openOneTrustSettings()}}},[t._t("default")],2)]):t._e()}),[],!1,ko,"data-v-2719dea0",null).exports,Io={name:"CampaignHeader",props:{text:{type:String,default:""},fontSize:{type:String,default:""},background:{type:String,default:""},opacity:{type:String,default:"1"},useDefault:{type:Boolean,default:!1},matchingHeaderHeightGroup:{type:String,default:""}}
1,data:function(){return{backgroundColor:"",hasBackground:!1,theme:!1}},computed:{config:function(){return window.snConfig},themeColor:function(){return P.themeColors[this.config.theme]}},mounted:function(){this.checkBackground()},methods:{checkBackground:function(){switch(this.background){case"none":this.hasBackground=!1;break;case"theme":this.hasBackground=!0,this.theme=!0;break;case"white":this.hasBackground=!0}this.backgroundColor=Q.a.setBackgroundColor(this.hasBackground,this.theme,this.themeColor,this.opacity)}}};var Eo=function(t){i("K0zB")},Vo=Object(g.a)(Io,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("h2",{staticClass:"campaign-header",class:{theme:t.theme,"no-background":!t.hasBackground,default:t.useDefault},style:{fontSize:t.fontSize+"px",backgroundColor:t.backgroundColor},attrs:{"data-mh":t.matchingHeaderHeightGroup||null},domProps:{innerHTML:t._s(t.text)}})}),[],!1,Eo,"data-v-af905cc2",null).exports,Ao={name:"CampaignContentBox",props:{header:{type:String,default:""},subHeader:{type:String,default:""},content:{type:String,default:""},textColor:{type:String,default:""},image:{type:String,default:""},imagePosition:{type:String,default:""},background:{type:String,default:""},opacity:{type:Number,default:1}},data:function(){return{backgroundColor:"",hasBackground:!1,theme:!1,isTextLight:!1,isTextDark:!1,isTextTheme:!1,isImageOnBottom:!1}},computed:{config:function(){return window.snConfig},themeColor:function(){return P.themeColors[this.config.theme]}},mounted:function(){this.isImageOnBottom="bottom"===this.imagePosition,this.checkBackground()},methods:{checkBackground:function(){switch(this.background){case"none":this.hasBackground=!1,this.isTextLight="light"===this.textColor,this.isTextDark="dark"===this.textColor,this.isTextTheme="theme"===this.textColor;break;case"theme":this.hasBackground=!0,this.isTextLight=!0,this.theme=!0;break;case"white":this.hasBackground=!0,this.isTextDark=!0}this.backgroundColor=Q.a.setBackgroundColor(this.hasBackground,this.theme,this.themeColor,this.opacity)}}};var Do=function(t){i("rGGp")},Mo=Object(g.a)(Ao,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"campaign-contentbox",class:{"no-background":!t.hasBackground,"txt-theme":!t.hasBackground&&t.isTextTheme,"txt-light":t.isTextLight,"txt-dark":t.isTextDark},style:{backgroundColor:t.backgroundColor}},[t.header?i("h2",{staticClass:"box-header",domProps:{innerHTML:t._s(t.header)}}):t._e(),t._v(" "),t.subHeader?i("h3",{staticClass:"box-subheader",class:{"m-0":!(t.image||t.content)},domProps:{innerHTML:t._s(t.subHeader)}}):t._e(),t._v(" "),t.image||t.content?i("article",[t.image?i("div",{staticClass:"box-image",class:{bottom:t.isImageOnBottom},domProps:{innerHTML:t._s(t.image)}}):t._e(),t._v(" "),t.content?i("div",{staticClass:"box-content",domProps:{innerHTML:t._s(t.content)}}):t._e()]):t._e()])}),[],!1,Do,"data-v-10c1941b",null).exports,Ro={name:"CampaignQuote",props:{content:{type:String,default:""},subContent:{type:String,default:""},image:{type:String,default:""},imageWidth:{type:Number,default:100},theme:{type:Boolean,default:!1},opacity:{type:String,default:""},fontSize:{type:Number,default:18}},data:function(){return{backgroundContent:"",backgroundSubcontent:"",imageWidthProcentage:100}},computed:{config:function(){return window.snConfig},themeColor:function(){return P.themeColors[this.config.theme]}},mounted:function(){this.calculateBackground(),this.checkImageWidth()},methods:{calculateBackground:function(){var t=this.themeColor.replace("#",""),e=parseInt(t.substring(0,2),16),i=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);this.theme?(this.backgroundContent="rgba(".concat(e,", ").concat(i,", ").concat(a,", ").concat(this.opacity,")"),this.backgroundSubcontent="rgba(255, 255, 255, ".concat(this.opacity,")")):(this.backgroundContent="rgba(255, 255, 255, ".concat(this.opacity,")"),this.backgroundSubcontent="rgba(".concat(e,", ").concat(i,", ").concat(a,", ").concat(this.opacity,")"))},checkImageWidth:function(){this.imageWidth>100||this.imageWidth<=0?this.imageWidthProcentage=100:this.imageWidthProcentage=this.imageWidth}}};var $o=function(t){i("JgV7")},No=Object(g.a)(Ro,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"campaign-quote",class:{theme:t.theme}},[i("div",{staticClass:"quote-image",style:{width:t.imageWidthProcentage+"%"},domProps:{innerHTML:t._s(t.image)}}),t._v(" "),i("article",{staticClass:"quote-inner"},[i("i",{staticClass:"quote-icon icon icon-quote",class:{"txt-light":t.theme,"txt-theme":!t.theme},attrs:{"aria-hidden":"true"}}),t._v(" "),t.content?i("div",{staticClass:"quote-content",class:{"txt-light":t.theme,"txt-theme":!t.theme},style:{backgroundColor:t.backgroundContent,fontSize:t.fontSize+"px"},domProps:{innerHTML:t._s(t.content)}}):t._e(),t._v(" "),t.subContent?i("div",{staticClass:"quote-subcontent",class:{"txt-light":!t.theme,"txt-dark":t.theme},style:{backgroundColor:t.backgroundSubcontent},domProps:{innerHTML:t._s(t.subContent)}}):t._e()])])}),[],!1,$o,"data-v-27ecf0f3",null).exports;function jo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function zo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?jo(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):jo(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Bo={name:"CampaignSearch",data:function(){return{search:"",page:0}},computed:zo(zo({},Object(Et.c)({campaigns:function(t){return t.filter.campaigns},campaignsSearchText:function(t){return t.filter.campaignsSearchText},campaignsShowAmount:function(t){return t.filter.campaignsShowAmount}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.campaignSearch)&&window.snTranslations.campaignSearch}}),watch:{search:function(){this.page=0,this.$store.commit("filter/setCampaignsSearchText",this.search),this.fetchCampaigns()}},mounted:function(){this.fetchCampaigns()},methods:{fetchCampaigns:function(){this.$store.commit("filter/updateCampaignsPage",this.page),this.$store.dispatch("filter/fetchCampaigns")},showMore:function(){this.page+=1,this.fetchCampaigns()}}};var qo=function(t){i("IiIG")},Uo=Object(g.a)(Bo,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 search-filter mb-4"},[i("form",{staticClass:"color-light-grey"},[i("div",{staticClass:"input-search"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"form-control",attrs:{id:"",placeholder:t.translations.search,type:"text"},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}}),t._v(" "),i("button",{staticClass:"disabled",attrs:{type:"submit"},on:{click:function(t){t.preventDefault()}}})])])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 search-results",attrs:{id:"results"}},[t.campaigns.totalElements>0?i("h2",[t._v("\n        "+t._s(t.campaigns.totalElements)+" "+t._s(t.translations.results)+"\n      ")]):t._e(),t._v(" "),t.campaigns?i("div",{staticClass:"row teaser teaser-row"},[t._l(t.campaigns.content,(function(e,a){return[i("div",{key:a,staticClass:"col-md-4 col-sm-6"},[i("div",{staticClass:"swiper-slide",domProps:{innerHTML:t._s(e.snippet)}})])]}))],2):t._e(),t._v(" "),t.campaigns&&t.campaigns.totalElements>t.campaignsShowAmount*(t.page+1)?i("button",{staticClass:"button button-full-width",on:{click:function(e){return t.showMore()}}},[t._v("\n        "+t._s(t.translations.showMore)+"\n      ")]):t._e(),t._v(" "),t.campaigns&&t.campaigns.numberOfElements<1?i("div",{staticClass:"alert alert-light",attrs:{role:"alert"}},[t._v("\n        "+t._s(t.translations.nothingFound)+"\n      ")]):t._e()])])])}),[],!1,qo,null,null).exports,Ho={name:"CampaignCountdown",props:{bgImageSrc:{type:String,default:""},bgImageSrcWebp:{type:String,default:""},endTime:{type:Number,default:0},customClass:{type:String,default:""},overlayOpacity:{type:Number,default:0},overlayInRoot:{type:Boolean,default:!1}},data:function(){return{id:null,showCountdown:!0,days:"",hours:"",minutes:"",seconds:""}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.campaignCountdown)&&window.snTranslations.campaignCountdown}},created:function(){this.id="campaign-countdown-".concat(this._uid)},mounted:function(){this.initCountdown()},methods:{initCountdown:function(){var t=this,e=new Date(this.endTime).getTime();if(t.updateCountdown(e,null))t.countdownEnded();else var i=setInterval((function(){t.updateCountdown(e,i)&&(clearInterval(i),t.countdownEnded())}),1e3)},updateCountdown:function(t){var e=!1,i=t-(new Date).getTime(),a=Math.floor(i/864e5),s=Math.floor(i%864e5/36e5),n=Math.floor(i%36e5/6e4),o=Math.floor(i%6e4/1e3);return this.days=this.formatNumber2Digits(a),this.hours=this.formatNumber2Digits(s),this.minutes=this.formatNumber2Digits(n),this.seconds=this.formatNumber2Digits(o),i<0&&(e=!0),e},formatNumber2Digits:function(t){return t.toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1})},findClosest:function(t,e){for(var i=t.parentElement;i&&!i.classList.contains(e);)i=i.parentElement;return i},countdownEnded:function(){var t=document.getElementById(this.id);if(t){var e=this.findClosest(t,"countdown-active");e&&e.classList.remove("countdown-active")}this.showCountdown=!1;var i=document.getElementById("countdownContentAfter");i&&i.style.removeProperty("display")}}};var Go=function(t){i("Rfbd")},Wo=Object(g.a)(Ho,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showCountdown?i("div",{staticClass:"campaign-countdown",class:t.customClass,attrs:{id:t.id}},[t.overlayOpacity>0&&t.overlayInRoot?i("div",{staticClass:"campaign-countdown-overlay",style:{opacity:"0."+t.overlayOpacity}}):t._e(),t._v(" "),i("div",{staticClass:"container content-module campaign-container"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col pl-0 pr-0"},[i("div",{staticClass:"campaign-countdown-area"},[t.overlayOpacity>0&&!t.overlayInRoot?i("div",{staticClass:"campaign-countdown-overlay",style:{opacity:"0."+t.overlayOpacity}}):t._e(),t._v(" "),t.bgImageSrc?i("picture",{staticClass:"campaign-countdown-picture"},[t.bgImageSrcWebp?i("source",{attrs:{srcset:t.bgImageSrcWebp,type:"image/webp"}}):t._e(),t._v(" "),i("img",{attrs:{srcset:t.bgImageSrc,src:t.bgImageSrc,width:"100%",height:"100%",title:"",alt:""}})]):t._e(),t._v(" "),i("div",{staticClass:"campaign-countdown-content"},[t.$slots.headline?i("div",{staticClass:"campaign-countdown-headline"},[t._t("headline")],2):t._e(),t._v(" "),t.$slots.text?i("div",{staticClass:"campaign-countdown-text mt-4"},[t._t("text")],2):t._e(),t._v(" "),i("div",{staticClass:"d-flex justify-content-center mt-3"},[i("div",{staticClass:"campaign-countdown-numbers"},[i("div",{staticClass:"campaign-countdown-number-area"},[i("div",[i("div",{staticClass:"campaign-countdown-number"},[t._v(t._s(t.days))])]),t._v(" "),i("div",{staticClass:"campaign-countdown-number-label"},[t._v(t._s(t.translations.days))])]),t._v(" "),i("div",{staticClass:"campaign-countdown-number-area"},[i("div",[i("div",{staticClass:"campaign-countdown-number"},[t._v(t._s(t.hours))])]),t._v(" "),i("div",{staticClass:"campaign-countdown-number-label"},[t._v(t._s(t.translations.hours))])]),t._v(" "),i("div",{staticClass:"campaign-countdown-number-area"},[i("div",[i("div",{staticClass:"campaign-countdown-number"},[t._v(t._s(t.minutes))])]),t._v(" "),i("div",{staticClass:"campaign-countdown-number-label"},[t._v(t._s(t.translations.minutes))])]),t._v(" "),i("div",{staticClass:"campaign-countdown-number-area"},[i("div",[i("div",{staticClass:"campaign-countdown-number"},[t._v(t._s(t.seconds))])]),t._v(" "),i("div",{staticClass:"campaign-countdown-number-label"},[t._v(t._s(t.translations.seconds))])])])]),t._v(" "),t.$slots.text?i("div",{staticClass:"d-flex justify-content-center mt-5"},[t._t("link")],2):t._e()])])])])])]):t._e()}),[],!1,Go,null,null).exports,Zo=i("k08Z"),Jo=i("hd29"),Ko=i("Qyje"),Yo=function(t){return{getQuestions:function(e){return new Promise((function(i,a){var n="".concat(t.getBaseUrl()).concat("/api/ssp/getMessageBoardQuestions");s.a.get(n,{params:{messageBoardIdentifier:e}}).then((function(t){return i(t.data)}),(function(t){return a(t)}))}))},getAnswers:function(e,i){return new Promise((function(a,n){var o="".concat(t.getBaseUrl()).concat("/api/ssp/getMessageBoardAnswers");s.a.get(o,{params:{messageBoardIdentifier:e,questionId:i}}).then((function(t){return a(t.data)}),(function(t){return n(t)}))}))},submitQuestion:function(e,i,a,n,o){return new Promise((function(r,l){var c="".concat(t.getBaseUrl()).concat("/api/ssp/submitMessageBoardQuestion");s.a.post(c,Ko.stringify({language:e,messageBoardIdentifier:i,title:a,question:n,formIdentifier:o,pageURL:window.location.href})).then((function(){r()})).catch((function(t){l(t)}))}
1))},submitAnswer:function(e,i,a,n,o){return new Promise((function(r,l){var c="".concat(t.getBaseUrl()).concat("/api/ssp/submitMessageBoardAnswer");s.a.post(c,Ko.stringify({language:e,messageBoardIdentifier:i,questionId:a,answer:n,formIdentifier:o,pageURL:window.location.href})).then((function(){r()})).catch((function(t){l(t)}))}))}}}(gs.a),Qo={name:"MessageBoardQuestionModal",components:{TextField:Zo.a,TextAreaField:Jo.a,Loader:Qt.a},props:{messageBoardIdentifier:{type:String,default:""},questionFormIdentifier:{type:String,default:""}},data:function(){return{id:null,title:"",question:"",fieldTypes:["TextField","TextAreaField"],fields:[],hasError:!1,showLoader:!1}},computed:{commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},messageBoardTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.messageBoard)&&this.virtualFarmTranslations.messageBoard},config:function(){return void 0!==window.snConfig&&window.snConfig}},mounted:function(){var t=this;this.id="messageBoardQuestionModal_".concat(this._uid),this.fields=this.$children.filter((function(e){return t.fieldTypes.includes(e.$options._componentTag)}))},methods:{triggerModal:function(){this.hasError=!1,this.title="",this.question="",this.fields.forEach((function(t){var e=t;e.valid=!0,e.errorMessage=""}));var t=this.$refs.modalTrigger;t.dataset.target="#".concat(this.id),t.click((function(t){return t.preventDefault(),!1}))},triggerSubmit:function(t){t.preventDefault(),this.fields.forEach((function(t){return t.validate()}));!1===!!this.fields.find((function(t){return!t.valid}))&&this.submitQuestion()},submitQuestion:function(){var t=this;this.showLoader=!0,Yo.submitQuestion(this.config.language,this.messageBoardIdentifier,this.title,this.question,this.questionFormIdentifier).then((function(){t.showLoader=!1,t.triggerModal(),t.$emit("submitDone")}),(function(){t.hasError=!0,t.showLoader=!1}))}}};var Xo=function(t){i("rUHH")},tr=Object(g.a)(Qo,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal fade basic-modal message-board-modal",attrs:{id:t.id,"data-backdrop":"static","data-keyboard":!1,tabindex:"-1",role:"dialog","aria-labelledby":"messageBoardQuestionModalCenterTitle"}},[i("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[i("div",{staticClass:"modal-content"},[i("div",{staticClass:"modal-header"},[i("h5",{staticClass:"modal-title"},[t._v("\n          "+t._s(t.messageBoardTranslations.questionModal.headline)+"\n        ")]),t._v(" "),t._m(0)]),t._v(" "),i("div",{staticClass:"modal-body"},[t.hasError?i("div",{staticClass:"mb-4"},[i("span",[t._v(t._s(t.commonTranslations.errorMsg))])]):t._e(),t._v(" "),i("form",{staticClass:"form-wrapper",attrs:{enctype:"multipart/form-data",novalidate:"",autocomplete:"off"},on:{submit:t.triggerSubmit}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.title,name:"title","label-name":t.messageBoardTranslations.questionModal.title,required:!0,"do-on-change-validation":!0,cucumber:"form_input_title"},on:{"update:value":function(e){t.title=e}}}),t._v(" "),i("TextAreaField",{attrs:{value:t.question,name:"question","label-name":t.messageBoardTranslations.questionModal.question,required:!0,"do-on-change-validation":!0,cucumber:"form_textarea_question"},on:{"update:value":function(e){t.question=e}}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("input",{staticClass:"ssp-button vf2-button",attrs:{"data-cucumber":"form_button_submit",type:"submit"},domProps:{value:t.messageBoardTranslations.questionModal.submitButton}})])])])])])]),t._v(" "),i("input",{ref:"modalTrigger",attrs:{"data-toggle":"modal",type:"hidden"}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})])}],!1,Xo,"data-v-311cdbc3",null).exports,er={name:"MessageBoardAnswerModal",components:{TextAreaField:Jo.a,Loader:Qt.a},props:{messageBoardIdentifier:{type:String,default:""},answerFormIdentifier:{type:String,default:""}},data:function(){return{id:null,question:{},answer:"",fieldTypes:["TextAreaField"],fields:[],hasError:!1,showLoader:!1}},computed:{commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},messageBoardTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.messageBoard)&&this.virtualFarmTranslations.messageBoard},config:function(){return void 0!==window.snConfig&&window.snConfig}}
1,mounted:function(){var t=this;this.id="messageBoardAnswerModal_".concat(this._uid),this.fields=this.$children.filter((function(e){return t.fieldTypes.includes(e.$options._componentTag)}))},methods:{triggerModal:function(t){this.question=t,this.hasError=!1,this.answer="",this.fields.forEach((function(t){var e=t;e.valid=!0,e.errorMessage=""}));var e=this.$refs.modalTrigger;e.dataset.target="#".concat(this.id),e.click((function(t){return t.preventDefault(),!1}))},triggerSubmit:function(t){t.preventDefault(),this.fields.forEach((function(t){return t.validate()}));!1===!!this.fields.find((function(t){return!t.valid}))&&this.submitAnswer()},submitAnswer:function(){var t=this;this.showLoader=!0,Yo.submitAnswer(this.config.language,this.messageBoardIdentifier,this.question.id,this.answer,this.answerFormIdentifier).then((function(){t.showLoader=!1,t.triggerModal(null),t.$emit("submitDone")}),(function(){t.hasError=!0,t.showLoader=!1}))}}};var ir=function(t){i("MWib")},ar=Object(g.a)(er,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal fade basic-modal message-board-modal",attrs:{id:t.id,"data-backdrop":"static","data-keyboard":!1,tabindex:"-1",role:"dialog","aria-labelledby":"messageBoardAnswerModalCenterTitle"}},[i("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[i("div",{staticClass:"modal-content"},[i("div",{staticClass:"modal-header"},[i("h5",{staticClass:"modal-title"},[t._v("\n          "+t._s(t.messageBoardTranslations.answerModal.headline)+"\n        ")]),t._v(" "),t._m(0)]),t._v(" "),i("div",{staticClass:"modal-body"},[t.hasError?i("div",{staticClass:"mb-4"},[i("span",[t._v(t._s(t.commonTranslations.errorMsg))])]):t._e(),t._v(" "),i("form",{staticClass:"form-wrapper",attrs:{enctype:"multipart/form-data",novalidate:"",autocomplete:"off"},on:{submit:t.triggerSubmit}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextAreaField",{attrs:{value:t.answer,name:"answer","label-name":t.messageBoardTranslations.answerModal.answer,required:!0,"do-on-change-validation":!0,"data-cucumber":"form_textarea_answer"},on:{"update:value":function(e){t.answer=e}}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("input",{staticClass:"ssp-button vf2-button",attrs:{"data-cucumber":"form_button_submit",type:"submit"},domProps:{value:t.messageBoardTranslations.answerModal.answer}})])])])])])]),t._v(" "),i("input",{ref:"modalTrigger",attrs:{"data-toggle":"modal",type:"hidden"}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})])}],!1,ir,"data-v-2801f417",null).exports;function sr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function nr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):sr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var or={name:"MessageBoard",components:{Loader:Qt.a,LoginRegisterModal:lo,MessageBoardQuestionModal:tr,MessageBoardAnswerModal:ar},props:{messageBoardIdentifier:{type:String,default:""},dateFormat:{type:String,default:""},headline:{type:String,default:""},questionFormIdentifier:{type:String,default:""},answerFormIdentifier:{type:String,default:""}},data:function(){return{currentUrlPath:"",questions:[],showLoader:!0,hasError:!1,dateTimeFormat:""}},computed:nr(nr({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},userId:function(t){return t.forms.userId},userRoles:function(t){return t.forms.userRoles}})),{},{commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},virtualFarmTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.virtualFarm)&&window.snTranslations.virtualFarm},messageBoardTranslations:function(){return!(!this.virtualFarmTranslations||void 0===this.virtualFarmTranslations.messageBoard)&&this.virtualFarmTranslations.messageBoard}}),created:function(){this.currentUrlPath=window.location.pathname},mounted:function(){this.dateTimeFormat=this.dateFormat,""===this.dateTimeFormat&&(this.dateTimeFormat="DD.MM.YYYY"),this.dateTimeFormat="".concat(this.dateTimeFormat.toUpperCase()," HH:mm"),this.loadQuestions()},methods:{getDateFormatted:function(t){var e="";return t&&(e=p()(t).format(this.dateTimeFormat)),e},submitDone:function(){this.loadQuestions()},loadQuestions:function(){var t=this;this.showLoader=!0,this.questions=[],Yo.getQuestions(this.messageBoardIdentifier).then((function(e){t.questions=e,t.showLoader=!1}),(function(){t.hasError=!0,t.showLoader=!1}))},openCloseQuestion:function(t){t.isOpen?this.$set(t,"isOpen",!1):(this.$set(t,"answers",[]),this.loadAnswersByQuestion(t),this.$set(t,"isOpen",!0))},loadAnswersByQuestion:function(t){var e=this;this.showLoader=!0;var i=t;Yo.getAnswers(this.messageBoardIdentifier,i.id).then((function(t){i.answers=t,e.showLoader=!1}),(function(){e.hasError=!0,e.showLoader=!1}))},submitQuestion:function(){this.isLoggedIn?this.$refs.modalMessageBoardQuestion.triggerModal():this.$refs.modalLoginRegister.triggerModal()},submitAnswer:function(t){this.isLoggedIn?this.$refs.modalMessageBoardAnswer.triggerModal(t):this.$refs.modalLoginRegister.triggerModal()},showAnswerButton:function(t){var e=!1;if(this.isLoggedIn){var i=!1;this.userId&&t&&t.userId&&this.userId===t.userId&&(i=!0);var a=!1;this.userRoles&&-1!==this.userRoles.indexOf("ROLE_MESSAGEBOARD ADMIN")&&(a=!0),e=i||a}else e=!0;return e}}};var rr=function(t){i("+QCA")},lr=Object(g.a)(or,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"message-board"},[t.headline?i("h2",[t._v(t._s(t.headline))]):t._e(),t._v(" "),t.hasError?i("div",{staticClass:"mb-4"},[i("span",[t._v(t._s(t.commonTranslations.errorMsg))])]):t._e(),t._v(" "),i("div",{staticClass:"submit-question-button text-right"},[i("button",{staticClass:"link-button vf2-button theme-color",on:{click:function(e){return t.submitQuestion()}}},[t._v(t._s(t.messageBoardTranslations.submitQuestionButton))])]),t._v(" "),i("div",{staticClass:"question-list"},[t._l(t.questions,(function(e,a){return[i("div",{key:a,staticClass:"question-row"},[i("div",{staticClass:"d-flex flex-row",on:{click:function(i){return t.openCloseQuestion(e)}}},[i("div",{staticClass:"icon-area"},[i("div",{staticClass:"arrow-circle-icon",class:{open:e.isOpen}})]),t._v(" "),i("div",{staticClass:"flex-grow-1"},[i("div",{staticClass:"d-sm-block d-md-flex flex-row"},[i("div",{staticClass:"flex-grow-1"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"question"},[t._v(t._s(e.question))])]),t._v(" "),i("div",{staticClass:"info-area mt-2 mt-md-0 pl-0 pl-md-2"},[i("div",[t._v(t._s(t.messageBoardTranslations.questionList.replies)+": "+t._s(e.answersSize))]),t._v(" "),i("div",[t._v(t._s(t.messageBoardTranslations.questionList.author)+":\n                  "+t._s(e.authorFirstName)+" "+t._s(e.authorLastName))]),t._v(" "),i("div",[t._v(t._s(t.messageBoardTranslations.questionList.updated)+": "+t._s(t.getDateFormatted(e.updateDate)))])])])])]),t._v(" "),e.isOpen?i("div",{staticClass:"answer-list mt-2"},[i("h2",[t._v(t._s(e.answers.length)+" "+t._s(t.messageBoardTranslations.questionList.answers
1))]),t._v(" "),t.showAnswerButton(e)?i("div",{staticClass:"submit-answer-button"},[i("button",{staticClass:"link-button vf2-button theme-color",on:{click:function(i){return t.submitAnswer(e)}}},[t._v(t._s(t.messageBoardTranslations.submitAnswerButton))])]):t._e(),t._v(" "),t._l(e.answers,(function(e,s){return[i("div",{key:a+"_"+s,staticClass:"answer-row"},[i("hr"),t._v(" "),i("div",[i("span",[t._v(t._s(e.authorFirstName)+" "+t._s(e.authorLastName))]),t._v(" "),i("span",[t._v(t._s(t.getDateFormatted(e.creationDate)))])]),t._v(" "),i("div",[t._v(t._s(e.answer))])])]}))],2):t._e()])]}))],2),t._v(" "),i("LoginRegisterModal",{ref:"modalLoginRegister",attrs:{"redirect-url":t.currentUrlPath,"button-class":"vf2-button"}}),t._v(" "),i("MessageBoardQuestionModal",{ref:"modalMessageBoardQuestion",attrs:{"message-board-identifier":t.messageBoardIdentifier,"question-form-identifier":t.questionFormIdentifier},on:{submitDone:t.submitDone}}),t._v(" "),i("MessageBoardAnswerModal",{ref:"modalMessageBoardAnswer",attrs:{"message-board-identifier":t.messageBoardIdentifier,"answer-form-identifier":t.answerFormIdentifier},on:{submitDone:t.submitDone}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],1)}),[],!1,rr,"data-v-e981e5fc",null).exports;var cr=function(t){i("/yCW")},ur=Object(g.a)({name:"TwitterSVG",data:function(){return{rlVar:"rl"}},computed:{clipPathVar:function(){return"u".concat(this.rlVar,"(#clip0_10927_423)")}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 1 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{"clip-path":this.clipPathVar}},[e("rect",{attrs:{width:"24",height:"24"}}),this._v(" "),e("path",{attrs:{d:"M18.244 2.25H21.552L14.325 10.51L22.827 21.75H16.17L10.956 14.933L4.99003 21.75H1.68003L9.41003 12.915L1.25403 2.25H8.08003L12.793 8.481L18.244 2.25ZM17.083 19.77H18.916L7.08403 4.126H5.11703L17.083 19.77Z",fill:"currentColor"}})]),this._v(" "),e("defs",[e("clipPath",{attrs:{id:"clip0_10927_423"}},[e("rect",{attrs:{width:"24",height:"24"}})])])])}),[],!1,cr,"data-v-c5df3654",null).exports;var dr=function(t){i("jfqE")},pr=Object(g.a)({name:"DirectFarmSVG",data:function(){return{rlVar:"rl"}},computed:{clipPathVar:function(){return"u".concat(this.rlVar,"(#clip0_10953_764)")}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 1 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{"clip-path":this.clipPathVar}},[e("path",{attrs:{d:"M16.1416 2H15.1962C14.8926 2 14.6462 2.24933 14.6462 2.55655C14.6462 2.66007 14.6748 2.76136 14.7287 2.84929L20.3304 12.0251L14.8783 21.192C14.7215 21.4558 14.8057 21.7975 15.0653 21.9561C15.1516 22.0079 15.2495 22.0357 15.3496 22.0357H16.2868C16.4793 22.0357 16.6586 21.9333 16.7582 21.7663L22.5579 12.0123L16.6097 2.26436C16.5096 2.10018 16.3319 2 16.1416 2Z",fill:"currentColor"}}),this._v(" "),e("path",{attrs:{d:"M11.6173 2H10.6719C10.3683 2 10.1219 2.24933 10.1219 2.55655C10.1219 2.66007 10.1505 2.76136 10.2044 2.84874L15.8039 12.0251L10.3534 21.192C10.1967 21.4558 10.2808 21.7975 10.541 21.9561C10.6268 22.0084 10.7247 22.0357 10.8248 22.0357H11.7636C11.9561 22.0357 12.1354 21.9333 12.235 21.7658L18.0331 12.0128L12.0848 2.26436C11.9847 2.10018 11.8076 2 11.6173 2Z",fill:"currentColor"}}),this._v(" "),e("path",{attrs:{d:"M7.09628 2H6.14808C5.84448 2 5.59808 2.24933 5.59808 2.55655C5.59808 2.66007 5.62668 2.76136 5.68058 2.84929L11.2796 12.0167L5.80378 21.1914C5.64703 21.4547 5.73008 21.797 5.99078 21.9556C6.07603 22.0079 6.17448 22.0357 6.27458 22.0357H7.23048C7.42353 22.0357 7.60228 21.9333 7.70183 21.7663L13.5098 12.0045L7.56433 2.2638C7.46368 2.10018 7.28658 2 7.09628 2Z",fill:"currentColor"}}),this._v(" "),e("path",{attrs:{d:"M5.27143 6.09842H4.33973C4.03613 6.09842 3.78973 6.3472 3.78973 6.65497C3.78973 6.75848 3.81833 6.85978 3.87223 6.94771L6.91208 11.9149L3.94703 16.8877C3.78973 17.1509 3.87333 17.4932 4.13403 17.6518C4.21928 17.7041 4.31773 17.7319 4.41783 17.7319H5.34568C5.53818 17.7319 5.71693 17.6295 5.81648 17.4626L9.13133 11.9027L5.73893 6.36167C5.63883 6.19804 5.46173 6.09842 5.27143 6.09842Z",fill:"currentColor"}}
1),this._v(" "),e("path",{attrs:{d:"M3.3992 10.4022H2.55C2.2464 10.4022 2 10.651 2 10.9587C2 11.0656 2.0308 11.1702 2.088 11.2593L2.60225 12.0691L2.16115 12.7814C1.99945 13.0419 2.07755 13.3853 2.33495 13.5484C2.4224 13.604 2.5236 13.6335 2.62645 13.6335H3.47125C3.66045 13.6335 3.83645 13.535 3.9371 13.373L4.7533 12.0574L3.86175 10.6571C3.76055 10.4979 3.58675 10.4022 3.39975 10.4022H3.3992Z",fill:"currentColor"}})]),this._v(" "),e("defs",[e("clipPath",{attrs:{id:"clip0_10953_764"}},[e("rect",{attrs:{width:"24",height:"24"}})])])])}),[],!1,dr,"data-v-227de17c",null).exports;var mr=function(t){i("wRAW")},hr=Object(g.a)({name:"TelegramSVG",data:function(){return{rlVar:"rl"}},computed:{clipPathVar:function(){return"u".concat(this.rlVar,"(#clip0_10953_773)")},clipPathVar2:function(){return"u".concat(this.rlVar,"(#clip1_10953_773)")}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 1 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{"clip-path":this.clipPathVar}},[e("g",{attrs:{"clip-path":this.clipPathVar2}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM6.34999 12.053L8.79049 12.8482C8.83162 12.8553 8.87386 12.8528 8.91382 12.8407L8.91541 12.8397C9.47849 12.4841 14.4994 9.3134 14.7893 9.20675C14.835 9.19291 14.869 9.2085 14.86 9.24008C14.7437 9.64775 10.3749 13.5311 10.3749 13.5311C10.3749 13.5311 10.3324 13.5795 10.3402 13.6186C10.3419 13.6336 10.3469 13.6481 10.3548 13.661C10.3626 13.674 10.3731 13.6851 10.3857 13.6936C10.9401 14.0644 13.4491 15.7506 14.175 16.375C14.2403 16.4383 14.3176 16.4879 14.4024 16.5207C14.4873 16.5535 14.5778 16.5689 14.6687 16.566C15.0387 16.5521 15.1419 16.1457 15.1419 16.1457C15.1419 16.1457 16.8676 9.20175 16.9252 8.27133C16.9275 8.23607 16.93 8.20575 16.9322 8.17819C16.9358 8.13458 16.9389 8.0979 16.9393 8.0595C16.9423 7.98706 16.9352 7.91455 16.9182 7.84408C16.9095 7.80418 16.8904 7.7673 16.8628 7.73721C16.8352 7.70712 16.8001 7.68491 16.7611 7.67283C16.6034 7.61291 16.3361 7.703 16.3361 7.703C16.3361 7.703 6.86799 11.1061 6.32724 11.483C6.21057 11.5639 6.17157 11.611 6.15224 11.6663C6.05832 11.9347 6.34999 12.053 6.34999 12.053Z",fill:"currentColor"}})])]),this._v(" "),e("defs",[e("clipPath",{attrs:{id:"clip0_10953_773"}},[e("rect",{attrs:{width:"24",height:"24"}})]),this._v(" "),e("clipPath",{attrs:{id:"clip1_10953_773"}},[e("rect",{attrs:{width:"20",height:"20",transform:"translate(2 2)"}})])])])}),[],!1,mr,"data-v-3f3dbafc",null).exports;var fr=function(t){i("8pDZ")},gr=Object(g.a)({name:"VKSVG",data:function(){return{rlVar:"rl"}},computed:{clipPathVar:function(){return"u".concat(this.rlVar,"(#clip0_10953_750)")},clipPathVar2:function(){return"u".concat(this.rlVar,"(#clip1_10953_750)")}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 1 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{"clip-path":this.clipPathVar}},[e("g",{attrs:{"clip-path":this.clipPathVar2}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4 3.4C2 4.81333 2 7.07333 2 11.6V12.4C2 16.92 2 19.18 3.4 20.6C4.81333 22 7.07333 22 11.6 22H12.4C16.92 22 19.18 22 20.6 20.6C22 19.1867 22 16.9267 22 12.4V11.
16C22 7.08 22 4.82 20.6 3.4C19.1867 2 16.9267 2 12.4 2H11.6C7.08 2 4.82 2 3.4 3.4ZM5.37335 8.08667C5.48002 13.2867 8.08002 16.4067 12.64 16.4067H12.6467H12.9067V13.4333C14.58 13.6 15.8467 14.8267 16.3534 16.4067H18.72C18.4773 15.5089 18.047 14.6727 17.4575 13.9533C16.868 13.234 16.1326 12.6478 15.3 12.2333C16.0461 11.779 16.6905 11.1756 17.1929 10.461C17.6953 9.7464 18.045 8.93585 18.22 8.08H16.0734C15.6067 9.73334 14.22 11.2333 12.9067 11.3733V8.08667H10.7534V13.8467C9.42002 13.5133 7.74002 11.9 7.66669 8.08667H5.37335Z",fill:"currentColor"}})])]),this._v(" "),e("defs",[e("clipPath",{attrs:{id:"clip0_10953_750"}},[e("rect",{attrs:{width:"24",height:"24"}})]),this._v(" "),e("clipPath",{attrs:{id:"clip1_10953_750"}},[e("rect",{attrs:{width:"20",height:"20",transform:"translate(2 2)"}})])])])}),[],!1,fr,"data-v-978583ce",null).exports;var vr=function(t){i("3jcs")},br=Object(g.a)({name:"YandexMusicSVG",data:function(){return{rlVar:"rl"}},computed:{maskVar:function(){return"u".concat(this.rlVar,"(#mask0_10953_755)")}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 1 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("mask",{staticStyle:{"mask-type":"luminance"},attrs:{id:"mask0_10953_755",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"20",height:"20"}},[e("path",{attrs:{d:"M12 22C17.5228 22 22 17.5229 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5229 6.47715 22 12 22Z",fill:"white"}})]),this._v(" "),e("g",{attrs:{mask:this.maskVar}},[e("path",{attrs:{d:"M6.01612 3.95113C7.49525 2.85494 9.2462 2.18744 11.0778 2.0215V5.04647C9.89236 5.19998 8.76558 5.65434 7.80406 6.36656C6.59701 7.26076 5.70871 8.52069 5.2704 9.96021C4.83257 11.3986 4.86868 12.9402 5.37337 14.3563C5.87884 15.7739 6.82546 16.9909 8.07338 17.8274C9.32293 18.6653 10.8073 19.0794 12.3087 19.0089C13.8101 18.9384 15.2495 18.3871 16.4156 17.4358C17.4001 16.632 18.1478 15.5744 18.5784 14.3765C19.0091 13.1787 19.1063 11.8858 18.8598 10.6367L21.398 8.59585L21.3969 8.57882C22.0831 10.467 22.1856 12.5189 21.6911 14.4664C21.1622 16.5497 19.9791 18.4071 18.3167 19.7638C16.6514 21.1236 14.5952 21.9119 12.4503 22.0128C10.3053 22.1137 8.18463 21.522 6.39974 20.3246C4.61656 19.1292 3.26406 17.3901 2.54209 15.3643C1.82111 13.3412 1.76953 11.1388 2.39498 9.08393C3.02165 7.02755 4.29124 5.22796 6.01612 3.95113Z",fill:"currentColor"}}),this._v(" "),e("path",{attrs:{d:"M19.4845 5.36208L19.4947 5.38932L17.7973 8.08398C17.1782 7.16632 16.3525 6.40769 15.387 5.86945V12.0023C15.3852 12.9068 15.0254 13.7736 14.3867 14.4121C13.748 15.0507 12.8826 15.4087 11.9808 15.4075C11.0791 15.4087 10.2137 15.0507 9.57502 14.4121C8.93631 13.7736 8.57651 12.9068 8.57471 12.0023C8.5753 11.5542 8.66387 11.1106 8.83537 10.6969C9.00686 10.2831 9.25792 9.90733 9.57421 9.59092C9.8905 9.2745 10.2658 9.02367 10.6788 8.85275C11.0917 8.68183 11.5341 8.59417 11.9808 8.59477C12.6858 8.59477 13.3399 8.80929 13.8842 9.17592V2.16344C16.0516 2.5822 18.0204 3.70748 19.4845 5.36435V5.36208Z",fill:"currentColor"}})])])}),[],!1,vr,"data-v-50d8ca74",null).exports,wr=i("QILm"),yr=i.n(wr),Cr={name:"MainNavLogo",props:{title:{type:String,default:""},linkHomepage:{type:String,default:""},linkLogo:{type:String,default:""}}};var _r=function(t){i("BUYH")},Sr=Object(g.a)(Cr,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"h-100"},[t.linkHomepage?i("a",{attrs:{href:t.linkHomepage,title:t.title,"data-cucumber":"header-img-logo"}},[i("img",{attrs:{src:t.linkLogo,alt:t.title,title:t.title,width:"100%",height:"100%"}})]):t._e(),t._v(" "),t.linkHomepage?t._e():i("img",{attrs:{src:t.linkLogo,alt:t.title,title:t.title,width:"100%",height:"100%"}})])}),[],!1,_r,"data-v-ec91a832",null).exports,Tr={name:"MainNavIconItem",props:{title:{type:String,default:""},cucumber:{type:String,default:""},iconDefault:{type:String,default:""},iconActive:{type:String,default:""},isActive:{type:Boolean,default:!1}}};var Pr=function(t){i("SCJe")},Fr=Object(g.a)(Tr,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{class:{active:t.isActive},attrs:{title:t.title},on:{click:function(e){return e.preventDefault(),t.$emit("click")}}},[t._t("default"),t._v(" "),i("span",{attrs:{"data-cucumber":t.cucumber}},[i("i",{staticClass:"icons material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.isActive?t.iconActive:t.iconDefault))])])],2)}),[],!1,Pr,"data-v-dc4aef7e",null).exports;function xr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Or(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?xr(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):xr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var kr={name:"MainNavLoginLogoutTextItem",props:{cucumber:{type:String,default:""}},computed:Or(Or({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},label:function(){var t=this.translations.links.loginText;return this.isLoggedIn&&(t=this.translations.links.logoutText),t}}),methods:{clickEntry:function(){this.isLoggedIn?this.$store.dispatch("forms/logout"):this.$store.dispatch("forms/login")}}};var Lr=function(t){i("M5ON")};function Ir(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Er(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ir(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ir(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Vr={name:"MainNavIcons",components:{MainNavIconItem:Fr,MainNavLoginLogoutTextItem:Object(g.a)(kr,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{attrs:{title:t.label},on:{click:function(e){return e.preventDefault(),t.clickEntry()}}},[t._t("default"),t._v(" "),i("span",{attrs:{"data-cucumber":t.cucumber}},[t._v("\n    "+t._s(t.label)+"\n  ")])],2)}),[],!1,Lr,"data-v-25f3568f",null).exports},props:{isSearchActive:{type:Boolean,default:!1},isSspMenuActive:{type:Boolean,default:!1},isNavigationActive:{type:Boolean,default:!1},hasVirtualFarm:{type:Boolean,default:!0},hideSsp:{type:Boolean,default:!1},useLoginLogoutText:{type:Boolean,default:!1}},computed:Er(Er({},Object(Et.c)({enableSSP:function(t){return t.forms.enableSSP},isMainNavVisible:function(t){return t.navigation.isMainNavVisible}})),{},{translations:function(){return window.snTranslations||!1}})};var Ar=function(t){i("uWx1")},Dr=Object(g.a)(Vr,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"icon-list"},[i("MainNavIconItem",{attrs:{title:t.translations.alternativeText.search,cucumber:"menu_button_search","is-active":t.isSearchActive,"icon-default":"search","icon-active":"close"},on:{click:function(e){return t.$emit("triggerSearch")}}}),t._v(" "),t.hasVirtualFarm?i("MainNavIconItem",{staticClass:"d-none d-xl-inline",attrs:{title:t.translations.alternativeText.virtualFarm,cucumber:"menu_button_virtual_farm","icon-default":"psychiatry"},on:{click:function(e){return t.$emit("redirectToVirtualFarm")}}}):t._e(),t._v(" "),!t.enableSSP||t.hideSsp||t.useLoginLogoutText?t._e():i("MainNavIconItem",{attrs:{title:t.translations.alternativeText.selfServicePortal,cucumber:"menu_button_myServices","is-active":t.isSspMenuActive,"icon-active":"close","icon-default":"person"},on:{click:function(e){return t.$emit("triggerSspMenu")}}}),t._v(" "),t.enableSSP&&!t.hideSsp&&t.useLoginLogoutText?i("MainNavLoginLogoutTextItem",{attrs:{cucumber:"menu_button_myServices"}}):t._e(),t._v(" "),i("MainNavIconItem",{staticClass:"hamburger-menu",class:[t.isMainNavVisible?"d-inline d-xl-none":"d-inline"],attrs:{title:t.translations.alternativeText.menu,cucumber:"menu_button_menu","is-active":t.isNavigationActive,"icon-default":"menu","icon-active":"close"},on:{click:function(e){return t.$emit("triggerNavigationMenu")}}},[i("span",{staticClass:"menu-label",class:[t.isMainNavVisible?"d-none d-lg-inline d-xl-none":"d-none d-lg-inline"]},[t._v(t._s(t.translations.alternativeText.menu))])])],1)}),[],!1,Ar,"data-v-05240c7c",null).exports,Mr={name:"WeatherInfo",props:{linkWeatherPage:{type:String,default:""}},data:function(){return{cityWeatherTeaserData:[],localWeatherTeaserData:[],location:"",units:[],located:!0,ajaxBlocker:!1,errors:[],perPage:4}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.weather)&&window.snTranslations.weather},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig},teaserConfig:function(){return void 0!==window.weatherTeaserConfig&&window.weatherTeaserConfig}}
1,mounted:function(){var t=this;F.a.$on("updateFromBar",(function(e){if("updateToogle"===e&&localStorage.getItem("isPz")){var i=!1,a=null;try{localStorage.getItem("isPz")&&(a=JSON.parse(localStorage.getItem("isPz")))}catch(t){i=!0}if(!i&&a&&a.isPz){if(localStorage.getItem("pzAddress")){var s=!1,n=null;try{localStorage.getItem("pzAddress")&&(n=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){s=!0}!s&&n?(t.located=!0,t.location=n.name,t.fetchLocalData(n.latitude,n.longitude)):(t.located=!1,t.fetchCityData())}}else t.located=!1,t.fetchCityData()}if("updateAddress"===e)if(localStorage.getItem("pzAddress")){var o=!1,r=null;try{localStorage.getItem("pzAddress")&&(r=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){o=!0}!o&&r?(t.located=!0,t.location=r.name,t.fetchLocalData(r.latitude,r.longitude)):(t.located=!1,t.fetchCityData())}else t.located=!1,t.fetchCityData()}))},created:function(){var t=!1,e=null;try{localStorage.getItem("isPz")&&(e=JSON.parse(localStorage.getItem("isPz")))}catch(e){t=!0}if(localStorage.getItem("pzAddress")&&localStorage.getItem("isPz")&&!t&&e&&!1!==e.isPz){if(localStorage.getItem("pzAddress")){var i=!1,a=null;try{localStorage.getItem("pzAddress")&&(a=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){i=!0}!i&&a?(this.located=!0,this.location=a.name,this.fetchLocalData(a.latitude,a.longitude)):(this.located=!1,this.fetchCityData())}}else this.located=!1,this.fetchCityData()},methods:{fetchCityData:function(){var t=this;this.ajaxBlocker=!1,this.cityWeatherTeaserData=[];for(var e="".concat(this.config.apiUrl,"/api/weather/teaserWeatherDetails?lang=").concat(this.config.languageTempConfig?this.config.languageTempConfig:this.config.language),i=0;i<this.teaserConfig.cities.length;i+=1)e="".concat(e,"&latitude=").concat(this.teaserConfig.cities[i].latitude),e="".concat(e,"&longitude=").concat(this.teaserConfig.cities[i].longitude);s.a.get(e).then((function(e){t.cityWeatherTeaserData=[],t.errors=[];for(var i=JSON.parse(JSON.stringify(e.data)),a=0;a<t.teaserConfig.cities.length;a+=1)t.cityWeatherTeaserData.push({name:t.teaserConfig.cities[a].name,weather:i.data[a]}),t.units=i.units;t.perPage=t.cityWeatherTeaserData.length,t.ajaxBlocker=!0})).catch((function(e){t.errors.push(e)}))},fetchLocalData:function(t,e){var i=this,a="".concat(this.config.apiUrl,"/api/weather/teaserWeatherDetails?lang=").concat(this.config.languageTempConfig?this.config.languageTempConfig:this.config.language,"&latitude=").concat(t,"&longitude=").concat(e,"&dataFeed=daily-hourly");this.ajaxBlocker=!1,this.localWeatherTeaserData=[],s.a.get(a).then((function(t){i.localWeatherTeaserData=JSON.parse(JSON.stringify(t.data)),i.ajaxBlocker=!0,i.errors=[]})).catch((function(t){i.errors.push(t)}))},styleWindDirection:function(t){return Q.a.styleWindDirection(t)},redirectToWeatherPage:function(){this.linkWeatherPage&&(window.location.href=this.linkWeatherPage)}}};var Rr=function(t){i("34Ok")};function $r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var Nr={name:"Panel",components:{WeatherInfo:Object(g.a)(Mr,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"weather-info-wrapper",on:{click:t.redirectToWeatherPage}},[t.errors&&t.errors.length?t._e():i("div",[!t.located&&t.ajaxBlocker?[t._l(t.cityWeatherTeaserData,(function(e,a){return[0===a?i("div",{key:e.name,staticClass:"weather-info-content"},[i("div",{staticClass:"weather-info-icon",class:"weather-icon-"+e.weather.day.pic}),t._v(" "),i("div",{staticClass:"w_location"},[t._v(t._s(e.name)+", "+t._s(e.weather.now.tair)+t._s(t.units.degree)+" ")])]):t._e()]}))]:[t.ajaxBlocker&&t.localWeatherTeaserData.data[0].now?i("div",{staticClass:"weather-info-content"},[i("div",{staticClass:"weather-info-icon",class:"weather-icon-"+t.localWeatherTeaserData.data[0].now.pic}),t._v(" "),i("div",{staticClass:"w_location"},[t._v(t._s(t.location)+", "+t._s(t.localWeatherTeaserData.data[0].now.tair)+t._s(t.localWeatherTeaserData.units.degree))])]):i("div",{staticClass:"d-none"},[t._v(t._s(t.commonTranslations.notAvailable))])]],2)])}),[],!1,Rr,"data-v-224d6b0e",null).exports},props:{isOpen:{type:Boolean,default:!1},isDesktop:{type:Boolean,default:!1},linkWeatherPage:{type:String,default:""}},data:function(){return{id:null,internalIsOpen:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?$r(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):$r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(Et.c)({level:function(t){return t.navigation.level},isMainNavVisible:function(t){return t.navigation.isMainNavVisible}})),watch:{isOpen:function(){this.animatePanel()}},created:function(){this.id="fl-nav-panel-".concat(this._uid)},mounted:function(){var t=this;F.a.$on("fl-nav-panel-animate",(function(){t.animatePanel()}))},methods:{close:function(){this.$emit("close")},back:function(){this.$store.commit("navigation/triggerBack")},animatePanel:function(){var t=this;if(this.isDesktop&&this.isMainNavVisible)if(this.isOpen){this.internalIsOpen=!0;var e=window.jQuery("#".concat(this.id)).height();this.$nextTick((function(){if(e){window.jQuery("#".concat(t.id)).css("height","");var i=window.jQuery("#".concat(t.id)).height();window.jQuery("#".concat(t.id)).animate({height:e},0,(function(){window.jQuery("#".concat(t.id)).animate({height:i},250,(function(){window.jQuery("#".concat(t.id)).css("height","")}))}))}else window.jQuery("#".concat(t.id)).animate({height:"hide"},0),window.jQuery("#".concat(t.id)).animate({height:"show"},250)}))}else window.jQuery("#".concat(this.id)).animate({height:"hide"},250,(function(){t.internalIsOpen=!1}));else this.internalIsOpen=this.isOpen}}};var jr=function(t){i("XERb")},zr=Object(g.a)(Nr,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"panel-wrapper",class:{"mobile-design-active":!t.isMainNavVisible}},[i("transition",{attrs:{name:"fade-backdrop"}},[t.isOpen?i("div",{staticClass:"panel-backdrop",on:{click:t.close}}):t._e()]),t._v(" "),i("transition",{attrs:{name:"slide-panel"}},[t.internalIsOpen?i("div",{staticClass:"panel",attrs:{id:t.id}},[i("div",{staticClass:"panel-padding"},[i("div",{staticClass:"panel-header"},[t.isDesktop&&t.isMainNavVisible||0===t.level?[i("WeatherInfo",{attrs:{"link-weather-page":t.linkWeatherPage}})]:[i("i",{staticClass:"material-symbols-sharp",class:[t.isMainNavVisible?"d-inline-block d-xl-none":"d-inline-block"],attrs:{"aria-hidden":"true"},on:{click:t.back}},[t._v("west")])],t._v(" "),i("i",{staticClass:"material-symbols-sharp",class:[t.isMainNavVisible?"d-inline-block d-xl-none":"d-inline-block"],attrs:{"aria-hidden":"true"},on:{click:t.close}},[t._v("close")])],2),t._v(" "),i("div",{staticClass:"panel-content"},[t._t("default")],2)])]):t._e()])],1)}),[],!1,jr,null,null).exports;function Br(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function qr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Br(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Br(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ur={name:"MainNavList",props:{navigation:{type:Array,default:function(){return[]}},level:{type:Number,default:0},isDesktop:{type:Boolean,default:!1},parentLink:{type:String,default:""},parentLinkText:{type:String,default:""},parentLinkNewWindow:{type:Boolean,default:!1}},computed:qr(qr({},Object(Et.c)({active:function(t){return t.navigation.active},isLoggedIn:function(t){return t.forms.userAuthenticated}})),{},{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}}),methods:{isNavigationVisible:function(t){return this.checkVirtualFarm(t)&&this.checkAuthenticated(t)&&this.checkUnauthenticated(t)},checkVirtualFarm:function(t){return t.isVirtualFarm&&!this.isDesktop||!t.isVirtualFarm},checkAuthenticated:function(t){return t.showAuthenticated&&this.isLoggedIn||!t.showAuthenticated},checkUnauthenticated:function(t){return t.showUnauthenticated&&!this.isLoggedIn||!t.showUnauthenticated},isActive:function(t){var e=2===this.level&&t.isActive,i=1===this.level&&!this.active[2]&&t.isActive,a=0===this.level&&!this.active[1]&&t.isActive,s=t.label===this.active[this.level+1];return e||i||a||s},handleNavigation:function(t){this.$emit("handleNavigation",this.navigation,t,this.level+1)}}};var Hr=function(t){i("Gl9T")},Gr=Object(g.a)(Ur,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("ul",{staticClass:"mb-0",class:{"level-0":0===t.level}},[t.level>0&&t.parentLink&&t.parentLinkText?i("li",{staticClass:"parent-link"},[i("a",{attrs:{href:t.parentLink,title:t.functionHelper.formatNavTitle(t.parentLinkText,t.translationsCommon),target:t.parentLinkNewWindow?"_blank":null}},[t._v("\n        "+t._s(t.parentLinkText)+"\n        "),t._m(0)])]):t._e()]),t._v(" "),i("ul",{staticClass:"main-nav-list",class:{"level-0":0===t.level}},[t._l(t.navigation,(function(e,a){return[t.isNavigationVisible(e)?i("li",{key:a,class:[{"has-children":e.children&&e.children.length},{active:t.isActive(e)}]},[e.isGroup?[i("div",{staticClass:"nav-group",class:{"mt-0":0===a}},[t._v(t._s(e.label))])]:[e.children&&e.children.length?i("a",{staticClass:"fl-link fl-link-span fl-link-hover-bg",class:[t.isActive(e)?"fl-link-primary":"fl-link-secondary"],attrs:{href:e.url,target:e.newWindow?"_blank":null,title:t.functionHelper.formatNavTitle(e.label,t.translationsCommon,e.children)},on:{click:function(i){return i.preventDefault(),t.handleNavigation(e.label)}}},[i("div",[i("span",[t._v(t._s(e.label))])]),t._v(" "),i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("chevron_right")])]):i("a",{staticClass:"fl-link fl-link-span fl-link-hover-bg",class:[t.isActive(e)?"fl-link-primary":"fl-link-secondary"],attrs:{href:e.url,target:e.newWindow?"_blank":null,title:t.functionHelper.formatNavTitle(e.label,t.translationsCommon)}},[i("div",[i("span",[t._v(t._s(e.label))])])])]],2):t._e()]}))],2)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"fl-btn fl-btn-primary-action"},[e("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[this._v("east")])])}],!1,Hr,"data-v-71a0ddfd",null).exports;function Wr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Zr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?Wr(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Wr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Jr={name:"SspMenu",props:{sspServicesLinkUrl:{type:String,default:""},logoutRedirectUrl:{type:String,default:""}},computed:Zr(Zr({},Object(Et.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},privateLink:function(t){return t.forms.privateLink},publicLink:function(t){return t.forms.publicLink}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}}),watch:{isPostLoginLoaded:function(){this.isPostLoginLoaded&&this.triggerAccountLookup()}},mounted:function(){this.saveLinksInState()},methods:{saveLinksInState:function(){this.$store.commit("forms/setPrivateLink",this.sspServicesLinkUrl),this.$store.commit("forms/setPublicLink",this.logoutRedirectUrl)},register:function(){this.$store.dispatch("forms/register")},logIn:function(){this.$store.dispatch("forms/login")},logOut:function(){this.$store.dispatch("forms/logout")}}};var Kr=function(t){i("WGuL")},Yr=Object(g.a)(Jr,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",[i("li",{staticClass:"parent-link"},[i("a",{attrs:{href:t.isLoggedIn?t.privateLink:t.publicLink,title:t.functionHelper.formatNavTitle(t.translations.myServices,t.translationsCommon)}},[t._v("\n      "+t._s(t.translations.myServices)+"\n      "),t._m(0)])]),t._v(" "),t.isLoggedIn?[i("li",[i("a",{staticClass:"fl-link fl-link-secondary fl-link-span",attrs:{title:t.translationsCommon.clickTo+" "+t.translations.links.logout,"data-tealium-value":"ssp_log-out","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return e.preventDefault(),t.logOut()}}},[i("span",[t._v(t._s(t.translations.links.logout))])])])]:[i("li",[i("a",{staticClass:"fl-link fl-link-secondary fl-link-span",attrs:{title:t.translationsCommon.clickTo+" "+t.translations.links.register,"data-tealium-value":"ssp_register","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return e.preventDefault(),t.register()}}},[i("span",[t._v(t._s(t.translations.links.register))])])]),t._v(" "),i("li",[i("a",{staticClass:"fl-link fl-link-secondary fl-link-span",attrs:{title:t.translationsCommon.clickTo+" "+t.translations.links.login,"data-tealium-value":"ssp_log-in","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return e.preventDefault(),t.logIn()}}},[i("span",[t._v(t._s(t.translations.links.login))])])])]],2)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"fl-btn fl-btn-primary-action"},[e("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[this._v("east")])])}],!1,Kr,"data-v-10265d65",null).exports,Qr=["children"];function Xr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function tl(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(i),!0).forEach((function(e){It()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Xr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var el={name:"MainNavigation",components:{MainNavLogo:Sr,MainNavIcons:Dr,Panel:zr,MainNavList:Gr,SspMenu:Yr},props:{title:{type:String,default:""},linkHomepage:{type:String,default:""},linkLogo:{type:String,default:""},linkWeatherPage:{type:String,default:""},linkVirtualFarm:{type:String,default:""},isMaintenancePage:{type:Boolean,default:!1},searchAction:{type:String,default:""},sspServicesLinkUrl:{type:String,default:""},logoutRedirectUrl:{type:String,default:""},navigation:{type:Array,default:function(){return[]}},languages:{type:Array,default:function(){return[]}},projectId:{type:String,default:""},hideSsp:{type:Boolean,default:!1},useLoginLogoutText:{type:Boolean,default:!1}},data:function(){return{id:null,isNavigationActive:!1,isSearchActive:!1,isSspMenuActive:!1,windowWidth:window.innerWidth,isNavigationSticky:!1,mainNavHasLessThan8:!1,lastScrollPosition:0,mainNavigationHeight:120,isLanguageNoticeShown:!1}},computed:tl(tl({},Object(Et.c)({level:function(t){return t.navigation.level},active:function(t){return t.navigation.active},activeLevels:function(t){return t.navigation.activeLevels},isMainNavVisible:function(t){return t.navigation.isMainNavVisible},languageNoticeShown:function(t){return t.navigation.languageNoticeShown},isLoggedIn:function(t){return t.forms.userAuthenticated}}
1)),{},{translations:function(){return window.snTranslations||!1},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},headerCountriesTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.header||void 0===window.snTranslations.header.countries)&&window.snTranslations.header.countries},enableSSP:function(){return gs.a.useSSP()},isDesktop:function(){return this.windowWidth>=P.breakpoints.xl},functionHelper:function(){return Q.a}}),watch:{isNavigationActive:function(){this.isNavigationActive?(document.body.classList.add("no-scroll"),document.getElementsByTagName("header")[0].style.zIndex="9999"):(document.getElementsByTagName("header")[0].style.zIndex="20",this.$store.commit("navigation/resetNavigation"),document.body.classList.remove("no-scroll"))},isSearchActive:function(){this.isSearchActive?(document.getElementsByTagName("header")[0].style.zIndex="9999",document.body.classList.add("no-scroll")):(document.body.classList.remove("no-scroll"),document.getElementsByTagName("header")[0].style.zIndex="20")},isSspMenuActive:function(){this.isSspMenuActive?(document.getElementsByTagName("header")[0].style.zIndex="9999",document.body.classList.add("no-scroll")):(document.body.classList.remove("no-scroll"),document.getElementsByTagName("header")[0].style.zIndex="20")},isDesktop:function(t,e){!e&&t&&0===this.level&&(this.isNavigationActive=!1)}},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.onScroll)},created:function(){this.id="fl-main-nav-".concat(this._uid),window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.onScroll)},mounted:function(){this.languages.length>1&&(-1!==this.languageNoticeShown.indexOf(this.projectId)?this.isLanguageNoticeShown=!0:this.$store.commit("navigation/addLanguageNoticeShown",this.projectId)),this.saveDataInState();var t=this.navigation.map((function(t){t.children;return yr()(t,Qr)}));this.setActiveLevels(0,t),this.onScroll()},methods:{handleResize:function(){this.windowWidth=window.innerWidth,this.checkMainNavigationResize()},checkMainNavigationResize:function(){var t=this;this.isDesktop&&this.mainNavHasLessThan8&&(this.$store.commit("navigation/setIsMainNavVisible",!0),this.$nextTick((function(){var e=document.getElementById("".concat(t.id,"-nav-list"));e&&(e.offsetHeight>70&&t.$store.commit("navigation/setIsMainNavVisible",!1))})))},onScroll:function(){var t=window.pageYOffset||document.documentElement.scrollTop;t<0||Math.abs(t-this.lastScrollPosition)<this.offset||(t>=this.mainNavigationHeight?this.isNavigationSticky=!0:this.isNavigationSticky=!1,this.lastScrollPosition=t)},isNavigationVisible:function(t){return this.checkVirtualFarm(t)&&this.checkAuthenticated(t)&&this.checkUnauthenticated(t)},checkVirtualFarm:function(t){return t.isVirtualFarm&&!this.isDesktop||!t.isVirtualFarm},checkAuthenticated:function(t){return t.showAuthenticated&&this.isLoggedIn||!t.showAuthenticated},checkUnauthenticated:function(t){return t.showUnauthenticated&&!this.isLoggedIn||!t.showUnauthenticated},isActive:function(t){return t.isActive&&!this.active[1]||this.active[1]===t.label},saveDataInState:function(){var t=this;this.$store.commit("forms/setStatusSSP",this.enableSSP);var e=this.navigation.filter((function(e){return t.isNavigationVisible(e)}));this.mainNavHasLessThan8=e.length<=8,this.$store.commit("navigation/setIsMainNavVisible",this.mainNavHasLessThan8),this.checkMainNavigationResize()},setActiveLevels:function(t,e){this.$store.commit("navigation/setActiveLevels",{level:t,value:e})},back:function(){this.$store.commit("navigation/triggerBack")},triggerNavigation:function(t,e,i){if(this.isSspMenuActive=!1,this.isSearchActive=!1,this.isDesktop&&this.isMainNavVisible){if(this.active[1]===e)return void(this.isNavigationActive=!1);0===this.level&&(this.isNavigationActive=!this.isNavigationActive)}this.active[i]!==e&&(i<this.level&&this.setActiveLevels(this.level,{}),this.$store.commit("navigation/setActive",{level:i,label:e}
1),this.$store.commit("navigation/setLevel",i),this.setActiveLevels(i,t.find((function(t){return t.label===e})))),1===i&&F.a.$emit("fl-nav-panel-animate")},triggerSearch:function(){this.isNavigationActive=!1,this.isSspMenuActive=!1,this.isSearchActive=!this.isSearchActive,F.a.$emit("fl-nav-panel-animate")},triggerSspMenu:function(){this.isNavigationActive=!1,this.isSearchActive=!1,this.isSspMenuActive=!this.isSspMenuActive,F.a.$emit("fl-nav-panel-animate")},triggerNavigationMenu:function(){this.isSearchActive=!1,this.isSspMenuActive=!1,this.isNavigationActive=!this.isNavigationActive},redirectToVirtualFarm:function(){window.location.href=this.linkVirtualFarm},getTeaserLink:function(t){var e=t.link;return this.isLoggedIn&&t.linkAuthenticated&&""!==t.linkAuthenticated&&(e=t.linkAuthenticated),e},getTeaserLinkTargetBlank:function(t){var e=!1;return this.isLoggedIn&&t.linkAuthenticated&&""!==t.linkAuthenticated?t.linkAuthenticatedNewWindow&&"true"===t.linkAuthenticatedNewWindow&&(e=!0):t.linkNewWindow&&"true"===t.linkNewWindow&&(e=!0),e}}};var il=function(t){i("+Qdj")},al=Object(g.a)(el,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"main-navigation-wrapper",class:{"sticky-navigation":t.isNavigationSticky}},[i("div",{staticClass:"main-navigation-bar",class:{"mobile-design-active":!t.isMainNavVisible}},[i("MainNavLogo",{attrs:{title:t.title,"link-homepage":t.isMaintenancePage?"":t.linkHomepage,"link-logo":t.linkLogo}}),t._v(" "),t.isMaintenancePage?t._e():[t.isMainNavVisible?i("nav",{staticClass:"d-none d-xl-block"},[i("ul",{staticClass:"navigation-list",attrs:{id:t.id+"-nav-list"}},[t._l(t.navigation,(function(e,a){return[t.isNavigationVisible(e)?i("li",{key:a,class:[{"has-children":e.children&&e.children.length},{active:t.isActive(e)}]},[e.children&&e.children.length?i("a",{staticClass:"fl-link fl-link-light fl-link-span",attrs:{href:e.url,target:e.newWindow?"_blank":null,title:t.functionHelper.formatNavTitle(e.label,t.translationsCommon,e.children)},on:{click:function(i){return i.preventDefault(),t.triggerNavigation(t.navigation,e.label,1)}}},[i("span",[t._v(t._s(e.label))])]):i("a",{staticClass:"fl-link fl-link-light fl-link-span",attrs:{href:e.url,target:e.newWindow?"_blank":null,title:t.functionHelper.formatNavTitle(e.label,t.translationsCommon)}},[i("span",[t._v(t._s(e.label))])])]):t._e()]}))],2)]):t._e(),t._v(" "),i("MainNavIcons",{attrs:{"enable-ssp":t.enableSSP,"is-search-active":t.isSearchActive,"is-ssp-menu-active":t.isSspMenuActive,"is-navigation-active":t.isNavigationActive,"has-virtual-farm":""!==t.linkVirtualFarm,"hide-ssp":t.hideSsp,"use-login-logout-text":t.useLoginLogoutText},on:{triggerSearch:t.triggerSearch,triggerSspMenu:t.triggerSspMenu,triggerNavigationMenu:t.triggerNavigationMenu,redirectToVirtualFarm:t.redirectToVirtualFarm}})]],2),t._v(" "),t.isMaintenancePage?t._e():[i("Panel",{class:[t.isNavigationActive?"main-nav":"",t.isSearchActive?"search":"",t.isSspMenuActive?"ssp":""],attrs:{"is-open":t.isNavigationActive||t.isSearchActive||t.isSspMenuActive,"link-weather-page":t.linkWeatherPage,"is-desktop":t.isDesktop},on:{close:function(e){t.isNavigationActive=!1,t.isSearchActive=!1,t.isSspMenuActive=!1}}},[t.isNavigationActive?i("div",{staticClass:"row"},[t.isDesktop&&t.isMainNavVisible||0!==t.level?t._e():i("div",{key:0,staticClass:"col-12",class:{"col-xl-3":t.isMainNavVisible}},[i("transition",{attrs:{name:"fade-nav-level",mode:"out-in",appear:""}},[i("MainNavList",{attrs:{navigation:t.navigation,level:0,"is-desktop":t.isDesktop},on:{handleNavigation:function(e,i,a){return t.triggerNavigation(e,i,a)}}})],1)],1),t._v(" "),t.isDesktop&&t.isMainNavVisible||(!t.isDesktop||!t.isMainNavVisible)&&1===t.level?i("div",{key:1,staticClass:"col-12",class:{"col-xl-3":t.isMainNavVisible}},[i("transition",{attrs:{name:"fade-nav-level",mode:"out-in",appear:""}},[i("MainNavList",{attrs:{navigation:t.activeLevels[1].children,level:1,"is-desktop":t.isDesktop,"parent-link":t.activeLevels[1].url,"parent-link-text":t.activeLevels[1].label,"parent-link-new-window":t.activeLevels[1].newWindow},on:{handleNavigation:function(e,i,a){return t.triggerNavigation(e,i,a)}}}
1)],1)],1):t._e(),t._v(" "),t.isDesktop&&t.isMainNavVisible||(!t.isDesktop||!t.isMainNavVisible)&&2===t.level?i("div",{key:2,staticClass:"col-12",class:{"col-xl-3":t.isMainNavVisible}},[i("transition",{attrs:{name:"fade-nav-level",mode:"out-in",appear:""}},[i("MainNavList",{attrs:{navigation:t.activeLevels[2].children,level:2,"is-desktop":t.isDesktop,"parent-link":t.activeLevels[2].url,"parent-link-text":t.activeLevels[2].label,"parent-link-new-window":t.activeLevels[2].newWindow},on:{handleNavigation:function(e,i,a){return t.triggerNavigation(e,i,a)}}})],1)],1):t._e(),t._v(" "),t.isDesktop&&t.isMainNavVisible?t._l(t.activeLevels[t.level].teasers,(function(e,a){return i("div",{key:"teaser-"+a,staticClass:"col-12 col-xl-3",class:{"offset-3":1===t.activeLevels[t.level].teasers.length}},[i("article",[i("div",{staticClass:"parent-empty"}),t._v(" "),i("div",{staticClass:"teaser-area main-nav-teaser-area"},[i("a",{attrs:{href:t.getTeaserLink(e),title:t.functionHelper.formatTitle(t.translationsCommon.visit,e.headline),target:t.getTeaserLinkTargetBlank(e)?"_blank":null}},[i("div",{staticClass:"teaser-top"},[e.picture?i("div",{staticClass:"teaser-image"},[i("div",{domProps:{innerHTML:t._s(e.picture)}})]):t._e(),t._v(" "),e.headline||e.text?i("div",{staticClass:"teaser-content"},[i("h3",{domProps:{innerHTML:t._s(e.headline)}}),t._v(" "),i("div",{domProps:{innerHTML:t._s(e.text)}})]):t._e()])])])])])})):t._e()],2):t.isSearchActive?i("div",{class:{"mobile-design-active":!t.isMainNavVisible},attrs:{id:"site-search"}},[i("form",{staticClass:"input-group align-items-center",attrs:{action:t.searchAction,method:"get"}},[i("input",{staticClass:"form-control",attrs:{id:"searchTerm",placeholder:t.translations.search.placeholder,type:"text",maxlength:"100",name:"searchTerm","data-cucumber":"menu_input_search"}}),t._v(" "),i("button",{staticClass:"fl-btn fl-btn-primary-action ml-2 ml-lg-3 ml-xl-4",attrs:{type:"submit","data-cucumber":"menu_button_searchSubmit"}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")])])])]):t.isSspMenuActive&&t.enableSSP?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12",class:{" col-xl-4":t.isMainNavVisible}},[i("SspMenu",{attrs:{"ssp-services-link-url":t.sspServicesLinkUrl,"logout-redirect-url":t.logoutRedirectUrl}})],1)]):t._e()])],t._v(" "),t.languages.length>1&&!t.isLanguageNoticeShown?i("div",{staticClass:"main-nav-languages-notice"},[i("div",{staticClass:"notice-area"},[i("div",{staticClass:"d-none d-md-inline-block"},[t._v(t._s(t.headerCountriesTranslations.availableLanguagesLong)+":")]),t._v(" "),i("div",{staticClass:"d-md-none"},[t._v(t._s(t.headerCountriesTranslations.availableLanguages)+":")]),t._v(" "),i("ul",[t._l(t.languages,(function(e,a){return[i("li",{key:a},["true"===e.active?[t._v("\n              "+t._s(e.name)+"\n            ")]:[i("a",{attrs:{href:e.url,title:t.functionHelper.formatTitle(t.translations.countrySwitch.switchLanguageTo,e.name)}},[t._v(t._s(e.name))])]],2)]}))],2)])]):t._e()],2)}),[],!1,il,"data-v-00c7e8eb",null).exports,sl={name:"FooterPrimaryNavColumn",props:{columnIdentifier:{type:String,default:function(){return(Math.random()+1).toString(36).substring(7)}},columnData:{type:Object,default:function(){return{}}}},computed:{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}},methods:{generateRandomString:function(){return(Math.random()+1).toString(36).substring(7)}}};var nl=function(t){i("XXx6")},ol=Object(g.a)(sl,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.columnData&&Object.keys(t.columnData).length>0&&t.columnData.items&&t.columnData.items.length>0?i("b-col",{attrs:{cols:"12",sm:"6",lg:"3"}},[i("div",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"collapseFooter-"+t.columnIdentifier,expression:"`collapseFooter-${columnIdentifier}`"}],staticClass:"footer-nav-headline"},[t._v(" "+t._s(t.columnData.headline)+"\n    "),i("i",{staticClass:"material-symbols-sharp d-block d-sm-none",attrs:{"aria-hidden":"true"}},[t._v("expand_more")])]),t._v(" "),i("b-collapse",{staticClass:"dont-collapse-sm",attrs:{id:"c
1ollapseFooter-"+t.columnIdentifier}},[i("ul",t._l(t.columnData.items,(function(e,a){return i("li",{key:a},[i("a",{staticClass:"fl-link fl-link-secondary fl-link-span fl-link-hover-bg",attrs:{href:e.targetUrl,target:e.target&&""!==e.target?e.target:null,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,e.text,e.targetUrl)}},[i("div",[i("span",[t._v(t._s(e.text))])])])])})),0)])],1):t._e()}),[],!1,nl,"data-v-69a2c97e",null).exports,rl={name:"FooterSecondaryNav",components:{GdprSettingsLink:Lo},props:{data:{type:Array,default:function(){return[]}}},computed:{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}},methods:{generateRandomString:function(){return(Math.random()+1).toString(36).substring(7)}}};var ll=function(t){i("WoLO")},cl=Object(g.a)(rl,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("b-col",{staticClass:"footer-secondary-nav",attrs:{cols:"12",lg:"9"}},[i("ul",{staticClass:"text-center text-lg-right"},[t._l(t.data,(function(e,a){return[e.type&&"GdprSettingsLink"===e.type?[i("GdprSettingsLink",{key:a,staticClass:"mb-2 mb-lg-0",attrs:{"is-one-trust-enabled":e.isOneTrustEnabled,"link-class":"fl-link fl-link-secondary fl-link-span fl-link-hover-bg"}},[i("div",[i("span",[t._v(t._s(e.text))])])])]:[i("li",{key:a,staticClass:"mb-2 mb-lg-0"},[i("a",{staticClass:"fl-link fl-link-secondary fl-link-span fl-link-hover-bg",attrs:{href:e.targetUrl,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,e.text,e.targetUrl)}},[i("div",[i("span",[t._v(t._s(e.text))])])])])]]}))],2)])}),[],!1,ll,"data-v-80a4f652",null).exports,ul={name:"FooterSocialMedia",components:{TwitterSVG:ur,DirectFarmSVG:pr,TelegramSVG:hr,VKSVG:gr,YandexMusicSVG:br},props:{data:{type:Array,default:function(){return[]}}},data:function(){return{classMap:{facebook:"icon-facebook",twitter:"icon-twitter-svg",instagram:"icon-instagram",youtube:"icon-youtube",linkedin:"icon-linkedin",slideshare:"icon-slideshare",flickr:"icon-flickr",google:"icon-google",directFarm:"icon-direct-farm-svg",telegram:"icon-telegram-svg",vk:"icon-vk-svg",yandexMusic:"icon-yandex-music-svg"}}},computed:{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return Q.a}}};var dl=function(t){i("n+E2")},pl=Object(g.a)(ul,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"footer-social-media"},t._l(t.data,(function(e,a){return i("a",{key:a,class:"footer-social-icon "+t.classMap[e.type],attrs:{href:e.targetUrl,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,e.type,e.targetUrl)}},["twitter"===e.type?[i("TwitterSVG")]:t._e(),t._v(" "),"directFarm"===e.type?[i("DirectFarmSVG")]:t._e(),t._v(" "),"telegram"===e.type?[i("TelegramSVG")]:t._e(),t._v(" "),"vk"===e.type?[i("VKSVG")]:t._e(),t._v(" "),"yandexMusic"===e.type?[i("YandexMusicSVG")]:t._e()],2)})),0)}),[],!1,dl,"data-v-460bf120",null).exports,ml={name:"DropDown",components:{Treeselect:ge.a},props:{value:{type:String,default:""},data:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},additionalClasses:{type:String,default:""}},data:function(){return{localValue:this.value}},computed:{},watch:{localValue:function(){this.$emit("input",this.localValue)},value:function(){this.localValue=this.value}},updated:function(){},mounted:function(){}};
1var hl=function(t){i("CUlV")},fl=Object(g.a)(ml,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("treeselect",{class:"facelift-dropdown "+t.additionalClasses,attrs:{multiple:!1,options:t.data,flat:!0,clearable:!1,searchable:!1,disabled:t.disabled,"open-direction":"below"},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}})],1)}),[],!1,hl,"data-v-9c463c7a",null).exports,gl={name:"FooterSocialMedia",components:{Treeselect:ge.a,DropDown:fl},props:{currentCountryProp:{type:String,default:""},currentLanguageProp:{type:String,default:""},data:{type:Array,default:function(){return[]}}},data:function(){return{test:[],currentContinent:"",currentCountry:"",currentLanguage:""}},computed:{translations:function(){return window.snTranslations||!1},countriesData:function(){return window.snCountryData||!1},continentData:function(){var t=this,e=[];return Object.keys(this.countriesData).forEach((function(i){e.push({id:i,label:t.countriesData[i].name})})),e},countryData:function(){var t=[];return this.currentContinent&&""!==this.currentContinent&&Object.keys(this.countriesData[this.currentContinent].countries).forEach((function(e){t.push({id:e,label:e})})),t},languageData:function(){var t=this,e=[];return this.currentContinent&&""!==this.currentContinent&&this.currentCountry&&""!==this.currentCountry&&Object.keys(this.countriesData[this.currentContinent].countries[this.currentCountry].languages).forEach((function(i){e.push({id:i,label:t.countriesData[t.currentContinent].countries[t.currentCountry].languages[i].name,disabled:!1})})),e},countryUrl:function(){var t="";return this.currentContinent&&""!==this.currentContinent&&this.currentCountry&&""!==this.currentCountry&&this.currentLanguage&&""!==this.currentLanguage&&(t=this.countriesData[this.currentContinent].countries[this.currentCountry].languages[this.currentLanguage].url),t}},created:function(){var t=this;if(this.currentCountryProp&&""!==this.currentCountryProp){var e="",i="";Object.keys(this.countriesData).forEach((function(a){Object.keys(t.countriesData[a].countries).forEach((function(s){var n=t.countriesData[a].countries[s];n&&n.code&&n.code===t.currentCountryProp&&(e=a,i=s)}))})),this.currentContinent=e,this.currentCountry=i}this.currentContinent&&""!==this.currentContinent&&this.currentCountry&&""!==this.currentCountry&&this.currentLanguageProp&&""!==this.currentLanguageProp&&this.countriesData[this.currentContinent].countries[this.currentCountry].languages[this.currentLanguageProp]&&(this.currentLanguage=this.currentLanguageProp),""===this.currentContinent&&(this.currentContinent=Object.keys(this.countriesData)[0]),""===this.currentCountry&&(this.currentCountry=Object.keys(this.countriesData[this.currentContinent].countries)[0]),""===this.currentLanguage&&(this.currentLanguage=Object.keys(this.countriesData[this.currentContinent].countries[this.currentCountry].languages)[0])},methods:{updateContinent:function(){},updateCountry:function(){this.currentCountry=Object.keys(this.countriesData[this.currentContinent].countries)[0],this.updateLanguage()},updateLanguage:function(){this.currentLanguage=Object.keys(this.countriesData[this.currentContinent].countries[this.currentCountry].languages)[0]},hideModal:function(){this.$refs.countrySwitch.hide()}}};var vl=function(t){i("kENl")},bl={name:"MainNavigation",components:{FooterPrimaryNavColumn:ol,FooterSecondaryNav:cl,FooterSocialMedia:pl,FooterCountrySwitch:Object(g.a)(gl,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("b-modal",{ref:"countrySwitch",attrs:{id:"countrySwitch","dialog-class":"countrySwitch",centered:"","hide-footer":"","hide-header":""}},[i("div",{staticClass:"countrySwitch-closeButton",on:{click:t.hideModal}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("close")])]),t._v(" "),i("h6",{staticClass:"font-weight-bold mb-3"},[t._v(t._s(t.translations.countrySwitch.chooseCountry||"Translate: countrySwitch.chooseCountry"))]),t._v(" "),i("DropDown",{attrs:{data:t.continentData,"additional-classes":"mb-3"},on:{input:function(e){return t.updateCountry()}},model:{value:t.currentContinent,callback:function(e){t.currentContinent=e},expression:"currentContinent"}}),t._v(" "),i("DropDown",{attrs:{data:t.countryData,"additional-classes":"mb-4"},on:{input:function(e){return t.updateLanguage()}},model:{value:t.currentCountry,callback:function(e){t.currentCountry=e},expression:"currentCountry"}}),t._v(" "),i("h6",{staticClass:"font-weight-bold mb-3"},[t._v("\n      "+t._s(t.translations.countrySwitch.availableLanguages||"Translate: countrySwitch.availableLanguages")+"\n    ")]),t._v(" "),i("DropDown",{attrs:{data:t.languageData,disabled:t.languageData.length<2,"additional-classes":"mb-4"},model:{value:t.currentLanguage,callback:function(e){t.currentLanguage=e},expression:"currentLanguage"}}),t._v(" "),i("a",{staticClass:"fl-btn fl-btn-primary w-100 font-weight-bold mb-4",attrs:{href:t.countryUrl,title:t.translations.countrySwitch.goTo+" "+t.currentCountry}},[t._v("\n      "+t._s(t.translations.countrySwitch.goTo||"Translate: countrySwitch.goTo")+" "+t._s(t.currentCountry)+"\n    ")]),t._v(" "),i("div",{staticClass:"countrySwitch-footer"},[i("ul",[i("li",[i("a",{staticClass:"fl-link fl-link-primary font-weight-bold",attrs:{href:"#",title:"BASF Global"}},[t._v("BASF Global")])]),t._v(" "),i("li",[i("a",{staticClass:"fl-link fl-link-primary font-weight-bold",attrs:{href:"#",title:"BASF Agriculture Global"}}
1,[t._v("BASF Agriculture Global")])])])])],1)],1)}),[],!1,vl,"data-v-36019b0d",null).exports},props:{warningText:{type:String,default:""},claimText:{type:String,default:""},socialMedia:{type:String,default:""},primaryNav:{type:String,default:""},copyrightText:{type:String,default:""},secondaryNav:{type:String,default:""},currentCountryProp:{type:String,default:""},currentLanguageProp:{type:String,default:""}},data:function(){return{primaryNavJson:{},secondaryNavJson:[],socialMediaJson:[]}},computed:{translations:function(){return window.snTranslations||!1},isDesktop:function(){return this.windowWidth>=P.breakpoints.xl}},watch:{},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},created:function(){window.addEventListener("resize",this.handleResize)},mounted:function(){this.primaryNavJson=JSON.parse(this.primaryNav),this.secondaryNavJson=JSON.parse(this.secondaryNav),this.socialMediaJson=JSON.parse(this.socialMedia)},methods:{}};var wl=function(t){i("KnpY")},yl=Object(g.a)(bl,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("footer",[i("div",{staticClass:"attention-box"},[i("b-container",[i("b-row",{staticClass:"align-items-center"},[i("b-col",{attrs:{cols:"12",lg:"9"}},[i("div",{staticClass:"footer-warning"},[i("i",{staticClass:"material-symbols-sharp"},[t._v("warning")]),t._v(" "),i("div",{staticClass:"footer-warning-text",domProps:{innerHTML:t._s(t.warningText)}})])]),t._v(" "),i("b-col",{staticClass:"d-none d-lg-block",attrs:{cols:"12",lg:"3"}},[i("div",{staticClass:"footer-country-switch text-right"},[i("button",{directives:[{name:"b-modal",rawName:"v-b-modal.countrySwitch",modifiers:{countrySwitch:!0}}],staticClass:"fl-btn fl-btn-icon-primary-small",attrs:{type:"button"}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("public")]),t._v("\n              "+t._s(t.translations.countrySwitch.changeCountry||"Translate: countrySwitch.changeCountry")+"\n            ")])])])],1)],1)],1),t._v(" "),i("div",{staticClass:"footer-primary-nav-wrapper"},[i("b-container",[i("b-row",[i("b-col",{attrs:{cols:"12",lg:"4"}},[i("div",{staticClass:"footer-claim"},[i("div",{domProps:{innerHTML:t._s(t.claimText)}})]),t._v(" "),i("FooterSocialMedia",{attrs:{data:t.socialMediaJson}})],1),t._v(" "),i("b-col",{staticClass:"d-block d-lg-none text-left",attrs:{cols:"12"}},[i("div",{staticClass:"footer-country-switch"},[i("button",{directives:[{name:"b-modal",rawName:"v-b-modal.countrySwitch",modifiers:{countrySwitch:!0}}],staticClass:"fl-btn fl-btn-icon-primary-small",attrs:{type:"button"}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("public")]),t._v("\n              "+t._s(t.translations.countrySwitch.changeCountry||"Translate: countrySwitch.changeCountry")+"\n            ")])])]),t._v(" "),i("div",{staticClass:"footer-mobile-separator d-block d-lg-none"}),t._v(" "),i("b-col",{staticClass:"footer-primary-nav",attrs:{cols:"12",lg:"8"}},[i("b-row",[i("FooterPrimaryNavColumn",{attrs:{"column-data":t.primaryNavJson.col1}}),t._v(" "),i("FooterPrimaryNavColumn",{attrs:{"column-data":t.primaryNavJson.col2}}),t._v(" "),i("FooterPrimaryNavColumn",{attrs:{"column-data":t.primaryNavJson.col3}}),t._v(" "),i("FooterPrimaryNavColumn",{attrs:{"column-data":t.primaryNavJson.col4}})],1)],1)],1)],1)],1),t._v(" "),i("div",{staticClass:"footer-secondary-nav-wrapper"},[i("b-container",[i("b-row",[i("b-col",{staticClass:"text-center text-lg-left mb-3 mb-lg-0",attrs:{cols:"12",lg:"3"}},[i("div",{staticClass:"footer-copyright"},[i("span",{domProps:{innerHTML:t._s(t.copyrightText)}})])]),t._v(" "),i("FooterSecondaryNav",{attrs:{data:t.secondaryNavJson}})],1)],1)],1),t._v(" "),i("FooterCountrySwitch",{attrs:{"current-country-prop":t.currentCountryProp,"current-language-prop":t.currentLanguageProp}})],1)}),[],!1,wl,"data-v-c2b8bf22",null).exports,Cl={name:"NewsTeasers",components:{SectionHeader:et,Grid:ut},props:{news:{type:Array,default:function(){return[]}}},data:function(){return{id:null,active:null,loadingError:!1,windowWidth:window.innerWidth,isPersonalized:!1,page:0,count:4,totalElements:0,currentTeaserData:[],visibleNews:[],showMobileDropdown:!1,showMobileDropdownInitial:!0}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations)&&window.snTranslations},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},isDesktop:function(){return this.windowWidth>=P.breakpoints.xl},isMobile:function(){return this.windowWidth<P.breakpoints.lg},functionHelper:function(){return Q.a}},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},created:function(){this.id="news-teaser-".concat(this._uid),window.addEventListener("resize",this.handleResize)},mounted:function(){var t=this;this.setNews(),F.a.$on("updateFromBar",(function(e){"updateAddress"===e&&t.setNews()}))},methods:{setNews:function(){this.isPersonalized=Y.a.isPersonalizedWithAddress(),this.visibleNews=this.isPersonalized?O()(this.news):this.news.filter((function(t){return!1===t.filterList.newsCategoryLocalize})),this.setActive(this.visibleNews[0])},setActiveClick:function(t,e){e>1&&(this.showMobileDropdownInitial=!1,this.setActive(t))}
1,setActive:function(t){this.active=t,this.reset(null)},handleResize:function(){this.windowWidth=window.innerWidth},showMore:function(){this.page+=1,this.fetchData(null)},showLess:function(){var t=this;this.reset((function(){var e=document.getElementById(t.id);if(e){var i=e.getBoundingClientRect().top+window.scrollY;t.scrollToPosition(i)}}))},scrollToPosition:function(t){window.scrollTo({top:t-80,behavior:"smooth"})},reset:function(t){this.page=0,this.currentTeaserData=[],this.showMobileDropdown=!1,this.fetchData(t)},fetchData:function(t){var e=this;if(this.active){var i="",a="";if(this.isPersonalized&&!0===this.active.filterList.newsCategoryLocalize){var s=!1,n=null;try{localStorage.getItem("pzAddress")&&(n=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){s=!0}!s&&n&&(i=n.latitude,a=n.longitude)}var o={page:this.page,count:this.count,resultTypes:"news",newsCategoryId:this.active.filterList.newsCategoryId,latitude:i,longitude:a,useTeaser:!0};this.$store.dispatch("callOnce/callOnce",{key:"fetchDynamicTeasersForNewsTeasersGrid",params:{paramsData:o},func:function(t,i,a){e.$store.dispatch("main/fetchDynamicTeasers",a.paramsData).then((function(e){t(e)})).catch((function(t){i(t)}))}},{root:!0}).then((function(i){if(i&&i.content){e.totalElements=i.totalElements;var a=JSON.parse(JSON.stringify(i.content));e.currentTeaserData=[].concat(O()(e.currentTeaserData),O()(a))}t&&e.$nextTick((function(){t()}))})).catch((function(){e.loadingError=!0}))}},triggerMobileDropdown:function(){this.visibleNews.length>1&&(this.showMobileDropdownInitial?(this.showMobileDropdownInitial=!1,this.showMobileDropdown=!1):this.showMobileDropdown=!this.showMobileDropdown)}}};var _l=function(t){i("RQ5M")},Sl=Object(g.a)(Cl,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.active?i("section",{staticClass:"news-teaser-wrapper",attrs:{id:t.id}},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.commonTranslations.errorMsg))])])])]:t._e(),t._v(" "),i("SectionHeader",{attrs:{"link-text":t.translations.dynamicteaser.viewall,"link-url":t.active.link,"has-border":t.isDesktop&&t.visibleNews.length>1,"hide-link-on-mobile":!0,"class-name":"align-items-lg-end"}},[i("ul",{staticClass:"nav nav-pills p-nav-pills d-none d-lg-flex",attrs:{slot:"title",id:"pills-news-tab",role:"tablist"},slot:"title"},t._l(t.visibleNews,(function(e,a){return i("li",{key:a,staticClass:"nav-item",class:{"mr-5":0===a},on:{click:function(i){return t.setActiveClick(e,t.visibleNews.length)}}},[i("a",{staticClass:"nav-link",class:{active:t.active.id===e.id,disabled:1===t.visibleNews.length,"border-bottom-0":1===t.visibleNews.length},attrs:{id:e.id+"-tab","aria-controls":e.id,"aria-selected":0===a,href:"#"+e.id,title:t.commonTranslations.view+" "+t.functionHelper.stripHtml(e.title),"data-toggle":"pill",role:"tab"}},[i("div",{domProps:{innerHTML:t._s(e.title)}})])])})),0),t._v(" "),i("div",{staticClass:"nav-dropdown d-flex d-lg-none",class:{"nav-dropdown-mb-one-item":t.showMobileDropdownInitial&&t.visibleNews.length>1},attrs:{slot:"titleMobile"},slot:"titleMobile"},[i("div",{staticClass:"nav-dropdown-item trigger",class:{"no-dropdown":1===t.visibleNews.length},on:{click:function(e){return t.triggerMobileDropdown()}}},[i("div",{staticClass:"nav-headline"},[t.visibleNews.length>1?i("i",{staticClass:"material-symbols-sharp mr-2",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.showMobileDropdown||t.showMobileDropdownInitial?"expand_less":"expand_more"))]):t._e(),t._v(" "),i("div",{domProps:{innerHTML:t._s(t.active.title)}})])]),t._v(" "),(t.showMobileDropdown||t.showMobileDropdownInitial)&&t.visibleNews.length>1?i("ul",{staticClass:"nav-dropdown-item dropdown"},[t._l(t.visibleNews,(function(e,a){return[t.active.id!==e.id?i("li",{key:a,on:{click:function(i){return t.setActiveClick(e,t.visibleNews.length)}}},[i("div",{domProps:{innerHTML:t._s(e.title)}})]):t._e()]}))],2):t._e()])]),t._v(" "),i("div",[i("Grid",{ref:"grid",attrs:{"is-mobile":t.isMobile,content:t.currentTeaserData,"no-transition":!0}})],1),t._v(" "),t.totalElements>4?i("div",{staticClass:"d-flex justify-content-center mt-3 mb-3"},[t.isDesktop?[t.currentTeaserData.length<t.totalElements?i("a",{staticClass:"fl-btn fl-btn-primary-bkgr",attrs:{title:t.translations.news.showMore,href:"#"},on:{click:function(e){return e.preventDefault(),t.showMore.apply(null,arguments)}}},[t._v(t._s(t.translations.news.showMore))]):i("a",{staticClass:"fl-btn fl-btn-primary-bkgr",attrs:{title:t.translations.news.showLess,href:"#"},on:{click:function(e){return e.preventDefault(),t.showLess.apply(null,arguments)}}},[t._v(t._s(t.translations.news.showLess))])]:[i("a",{staticClass:"fl-btn fl-btn-primary-bkgr",attrs:{href:t.active.link,title:t.translations.dynamicteaser.viewall}},[t._v(t._s(t.translations.dynamicteaser.viewall))])]],2):t._e()],2):t._e()}),[],!1,_l,"data-v-609b62b6",null).exports,Tl={name:"ProductDetailImageSlider",components:{Swiper:yt.d},props:{images:{type:String,default:""},imagesSmall:{type:String,default:""}},data:function(){return{id:null,imagesJson:[],imagesSmallJson:[],masterSlider:null,slaveSlider:null}},computed:{translations:function(){return window.snTranslations||!1},isDesktop:function(){return this.windowWidth>=P.breakpoints.xl}},watch:{},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},created:function(){this.id="productImageSlider_".concat(this._uid),window.addEventListener("resize",this.handleResize)},mounted:function(){var t=this;this.imagesJson=JSON.parse(this.images),this.imagesSmallJson=JSON.parse(this.imagesSmall),this.$nextTick((function(){t.initMasterSlider(),t.initSlaveSlider()}))},methods:{initMasterSlider:function(){var t=document.getElementById("".concat(this.id,"-master"));this.masterSlider=new yt.d(t,{modules:[yt.a,yt.b,yt.c],grid:{rows:1,fill:"row"},simulateTouch:!1,slidesPerGroup:1,slidesPerView:this.slidesPerView,spaceBetween:5,observer:!0,observeParents:!0,breakpoints:It()(It()({},P.breakpoints.xs,{slidesPerView:1}),P.breakpoints.lg,{slidesPerView:1})})},initSlaveSlider:function(){var t=document.getElementById("".concat(this.id,"-slave"));t&&(this.slaveSlider=new yt.d(t,{modules:[yt.a,yt.b,yt.c],grid:{rows:1,fill:"row"},simulateTouch:!1,slidesPerGroup:1,slidesPerView:this.slidesPerView,spaceBetween:12,observer:!0,observeParents:!0,breakpoints:It()(It()(It()({},P.breakpoints.xs,{slidesPerView:4}),P.breakpoints.md,{slidesPerView:4}),P.breakpoints.lg,{slidesPerView:4}),navigation:{nextEl:document.getElementById("".concat(this.id,"-slave-next")),prevEl:document.getElementById("".concat(this.id,"-slave-prev"))}}))},calculateImageHeight:function(){var t=this.$refs.imageContainer?this.$refs.imageContainer[0].offsetHeight:0;this.navigationPosition=t>50?(t-15)/2:60},slideMasterTo:function(t){this.masterSlider.slideTo(t)}}};var Pl=function(t){i("TWmx")},Fl=Object(g.a)(Tl,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-detail-image-slider",attrs:{id:t.id}}
1,[i("div",{staticClass:"row",attrs:{"data-slides-count":"4"}},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"swiper master",attrs:{id:t.id+"-master"}},[i("div",{staticClass:"swiper-wrapper"},t._l(t.imagesJson,(function(e,a){return i("div",{key:a,staticClass:"swiper-slide lightbox-trigger"},[i("div",{domProps:{innerHTML:t._s(e)}})])})),0)])])]),t._v(" "),t.imagesSmallJson&&t.imagesSmallJson.length>1?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"swiper-wrapper-outer"},[i("div",{staticClass:"swiper slave",attrs:{id:t.id+"-slave"}},[i("div",{staticClass:"swiper-wrapper"},t._l(t.imagesSmallJson,(function(e,a){return i("div",{key:a,staticClass:"swiper-slide",on:{click:function(e){return t.slideMasterTo(a)}}},[i("div",{domProps:{innerHTML:t._s(e)}})])})),0)]),t._v(" "),i("div",{staticClass:"swiper-button-prev",attrs:{id:t.id+"-slave-prev"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("west")])]),t._v(" "),i("div",{staticClass:"swiper-button-next",attrs:{id:t.id+"-slave-next"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("east")])])])])]):t._e()])}),[],!1,Pl,"data-v-43f3a980",null).exports,xl=i("yXPU"),Ol=i.n(xl),kl=i("o0o1"),Ll=i.n(kl),Il={name:"PopupModal",props:{windowFullWith:{type:Boolean,default:!1},parentId:{type:String,required:!0}},data:function(){return{isVisible:!1}},computed:{classList:function(){return{display:"flex","flex-direction":"column",width:this.windowFullWith?"100%":"85%","max-width":this.windowFullWith?"100%":"85%",overflow:"visible","max-height":"70vh"}}},methods:{open:function(){this.isVisible=!0},close:function(){this.isVisible=!1}}};var El=function(t){i("OKvn")},Vl={name:"ImageGallery",components:{Popup:Object(g.a)(Il,(function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"fade"}},[this.isVisible?e("div",{staticClass:"popup-modal"},[e("div",{style:this.classList},[e("div",{staticClass:"sizeBox"},[e("div",{staticClass:"close-btn fixed-position",on:{click:this.close}},[e("i",{staticClass:"material-symbols-sharp"},[this._v("close")])]),this._v(" "),this._t("default")],2)])]):this._e()])}),[],!1,El,"data-v-e0a857c2",null).exports,Swiper:yt.d,Fragment:it.a},props:{media:{type:String,default:""},mediaSmall:{type:String,default:""},mediaBig:{type:String,default:""},title:{type:String,default:""},copy:{type:String,default:""},note:{type:String,default:""},mediaTyp:{type:String,default:"Image",validator:function(t){return["","Image","Video"].includes(t)}},galleryStyle:{type:String,required:!0,validator:function(t){return["","Vertical","Horizontal","Single","Gallery"].includes(t)}},backgroundGrey:{type:String,default:""}},data:function(){return{id:null,noteJson:[],mediaJson:[],mediaSmallJson:[],mediaBigJson:[],mainSlider:null,teaserSlider:null,lightboxGallerySlider:null,activeSlide:0,mainSliderPictureHeight:0,mainSliderIframeHeight:0}},computed:{mediaJsonFit:function(){return"Gallery"===this.galleryStyle?"Video"===this.mediaTyp||this.mediaJson.length<6?this.mediaJson:this.mediaJson.slice(0,6):"Single"===this.galleryStyle?this.mediaJson.slice(0,1):this.mediaJson},mediaBigJsonFit:function(){return this.mediaBigJson.slice(0,this.mediaJsonFit.length)},showZoomBtn:function(){return this.showOnlyMainSlider&&"Video"!==this.mediaTyp},popUpFullWith:function(){return"Single"===this.galleryStyle},showOnlyMainSlider:function(){return["Gallery","Single"].includes(this.galleryStyle)},GalleryTypIsVertical:function(){return"Vertical"===this.galleryStyle||this.mediaJsonFit.length>2&&"Video"===this.mediaTyp},ContainerBackground:function(){return{"bg-highlight":"true"===this.backgroundGrey}},verticalTeaserSliderStyle:function(){var t=null;return"Video"===this.mediaTyp&&this.mainSliderIframeHeight>0?t={maxHeight:"".concat(this.mainSliderIframeHeight,"px")}:this.mainSliderPictureHeight>0&&(t={maxHeight:"".concat(this.mainSliderPictureHeight,"px")}),t}},watch:{activeSlide:function(t,e){this.mainSlider.slideTo(t),this.teaserSlider&&this.teaserSlider.slideTo(t),this.setActiveSlide(t,e)}},created:function(){this.id="imageGallery".concat(this._uid),this.mediaJson=JSON.parse(this.media),this.noteJson=JSON.parse(this.note),this.mediaSmallJson=JSON.parse(this.mediaSmall),this.mediaBigJson=JSON.parse(this.mediaBig)},mounted:function(){this.initMainSlider(),this.initTeaserSlider(),this.initGallerySlider(),this.showOnlyMainSlider||this.setActiveSlide(0,0),"Video"===this.mediaTyp&&setTimeout((function(){document.dispatchEvent(new CustomEvent("vue-init-apps"))}),0)},methods:{returnNoteToSliderIndex:function(t){return this.noteJson[t]?this.noteJson[t]:null},initMainSlider:function(){var t=this,e=document.getElementById("".concat(this.id,"-mainSlider")),i=this.showOnlyMainSlider?15:0,a="Gallery"===this.galleryStyle&&"Video"===this.mediaTyp?this.mediaJsonFit.length>2?1:this.mediaJsonFit.length:["Single","Vertical","Horizontal"].includes(this.galleryStyle)?1:this.mediaJsonFit.length>3?3:this.mediaJsonFit.length,s="Gallery"===this.galleryStyle&&"Image"===this.mediaTyp?2:1,n=It()({0:{slidesPerView:1,simulateTouch:!1,allowTouchMove:!1,grid:{rows:1,fill:"row"}}},P.breakpoints.sm,{slidesPerView:a,simulateTouch:!1,allowTouchMove:!1,grid:{rows:this.mediaJsonFit.length<2?1:s,fill:"row"}});this.mainSlider=new yt.d(e,{modules:[yt.a,yt.b,yt.c],direction:"horizontal",observer:!0,observeParents:!0,speed:800,spaceBetween:i,breakpoints:n,on:{afterInit:function(e){t.getAndSetMainSliderPictureIframeHeight(e)},resize:function(e){t.getAndSetMainSliderPictureIframeHeight(e)}}})},getAndSetMainSliderPictureIframeHeight:function(t){var e=this;if(t.$el&&t.$el.length>0){var i=t.$el[0];if(i){var a=i.querySelector(".swiper-slide.swiper-slide-active picture img");a&&(this.mainSliderPictureHeight=a.offsetHeight,a.addEventListener("load",(function(){e.getAndSetMainSliderPictureIframeHeight(t)})));var s=i.querySelector(".swiper-slide.swiper-slide-active iframe");s&&(this.mainSliderIframeHeight=s.offsetHeight,s.addEventListener("load",(function(){e.getAndSetMainSliderPictureIframeHeight(t)})))}}},initTeaserSlider:function(){var t=document.getElementById("".concat(this.id,"-teaser"));this.teaserSlider=new yt.d(t,{modules:[yt.a,yt.b,yt.c],slidesPerView:"auto",direction:this.GalleryTypIsVertical?"vertical":"horizontal",observer:!0,observeParents:!0,spaceBetween:12,navigation:{nextEl:document.getElementById("".concat(this.id,"-teaser-next")),prevEl:document.getElementById("".concat(this.id,"-teaser-prev"))}})},initGallerySlider:function(t){var e=document.getElementById("".concat(this.id,"-lightboxGallerySlider"));this.lightboxGallerySlider=new yt.d(e,{modules:[yt.a,yt.b,yt.c],slidesPerView:1,initialSlide:t,speed:800,observeParents:!0,observer:!0,navigation:{nextEl:document.getElementById("".concat(this.id,"-gallery-next")),prevEl:document.getElementById("".concat(this.id,"-gallery-prev"))}})},slideMainTo:function(t){this.activeSlide=t},setActiveSlide:function(t,e){var i=document.getElementById("".concat(this.id,"-teaser")).getElementsByClassName("swiper-slide")[e],a=document.getElementById("".concat(this.id,"-teaser")).getElementsByClassName("swiper-slide")[t];i.classList.remove("showBorder"),a.classList.add("showBorder")},openLightBoxGallery:function(t){var e=this;return Ol()(Ll.a.mark((function i(){return Ll.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=1,e.$refs.lightboxModal.open({});case 1:e.initGallerySlider(t);case 2:case"end":return i.stop()}}),i)})))()}}};var Al=function(t){i("S0+G")},Dl=Object(g.a)(Vl,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"py-3 image-gallery",class:t.ContainerBackgroun
1d,attrs:{id:t.id}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[t.title?i("h2",{staticClass:"bold"},[t._v(t._s(t.title))]):t._e(),t._v(" "),t.copy?i("p",[t._v(t._s(t.copy))]):t._e()])]),t._v(" "),t.showOnlyMainSlider&&!t.GalleryTypIsVertical?i("div",{staticClass:"image-gallery-slider"},[i("div",{staticClass:"swiper main",attrs:{id:t.id+"-mainSlider"}},[i("div",{staticClass:"swiper-wrapper"},t._l(t.mediaJsonFit,(function(e,a){return i("div",{key:a,staticClass:"swiper-slide"},[i("div",{staticClass:"slide-wrapper"},[i("div",{staticClass:"slide-content",domProps:{innerHTML:t._s(e)}}),t._v(" "),t.showZoomBtn?i("div",{staticClass:"zoom-btn",on:{click:function(e){return t.openLightBoxGallery(a)}}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("zoom_out_map")])]):t._e()]),t._v(" "),t.returnNoteToSliderIndex(a)?i("div",["Video"===t.mediaTyp?i("div",[i("div",{staticClass:"bg-light p-2 p-md-3 my-2 d-flex justify-content-start align-items-center"},[i("i",{staticClass:"icon-primary pr-2 material-symbols-sharp"},[t._v("info")]),t._v(" "),i("div",{domProps:{innerHTML:t._s(t.returnNoteToSliderIndex(a))}})])]):i("div",[i("div",{staticClass:"py-2 py-md-3 my-2 d-flex justify-content-start align-items-center"},[i("div",{domProps:{innerHTML:t._s(t.returnNoteToSliderIndex(a))}})])])]):t._e()])})),0)]),t._v(" "),t.mediaJsonFit.length>1?i("div",{staticClass:"py-2 d-flex flex-nowrap flex-row justify-content-center align-items-center d-sm-none"},t._l(t.mediaJsonFit,(function(e,a){return i("div",{key:a,staticClass:"swiper-square",class:[{active:a===t.activeSlide}],on:{click:function(e){return t.slideMainTo(a)}}})})),0):t._e()]):i("div",{staticClass:"row"},[t.GalleryTypIsVertical?t._e():i("div",{staticClass:"col-12 py-3 image-gallery-slider d-none d-md-block"},[i("div",{staticClass:"swiper-wrapper-outer"},[i("div",{staticClass:"swiper teaser",attrs:{id:t.id+"-teaser"}},[i("div",{staticClass:"swiper-wrapper"},t._l(t.mediaSmallJson,(function(e,a){return i("div",{key:a,staticClass:"swiper-slide col-md-3",on:{click:function(e){return t.slideMainTo(a)}}},[i("div",{staticClass:"slide-wrapper"},[i("div",{staticClass:"slide-content",domProps:{innerHTML:t._s(e)}}),t._v(" "),t.showZoomBtn?i("div",{staticClass:"zoom-btn",on:{click:function(e){return t.openLightBoxGallery(a)}}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("zoom_out_map")])]):t._e()])])})),0)]),t._v(" "),i("div",{staticClass:"swiper-button-prev horizontal",attrs:{id:t.id+"-teaser-prev"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("west")])]),t._v(" "),i("div",{staticClass:"swiper-button-next horizontal",attrs:{id:t.id+"-teaser-next"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("east")])])])]),t._v(" "),i("div",{staticClass:"image-gallery-slider",class:[t.GalleryTypIsVertical?"col-12 col-md-9":"col-12"]},[i("div",{staticClass:"swiper main",attrs:{id:t.id+"-mainSlider"}},[i("div",{staticClass:"swiper-wrapper"},t._l(t.mediaJsonFit,(function(e,a){return i("div",{key:a,staticClass:"swiper-slide"},[i("div",{staticClass:"slide-wrapper"},[i("div",{staticClass:"slide-content",domProps:{innerHTML:t._s(e)}}),t._v(" "),t.showZoomBtn?i("div",{staticClass:"zoom-btn",on:{click:function(e){return t.openLightBoxGallery(a)}}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("zoom_out_map")])]):t._e(),t._v(" "),i("div",{staticClass:"zoom-btn d-sm-none",on:{click:function(e){return t.openLightBoxGallery(a)}}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("zoom_out_map")])])]),t._v(" "),t.returnNoteToSliderIndex(a)?i("div",["Video"===t.mediaTyp?i("div",[i("div",{staticClass:"bg-light p-2 p-md-3 my-2 d-flex justify-content-start align-items-center"},[i("i",{staticClass:"icon-primary pr-2 material-symbols-sharp"},[t._v("info")]),t._v(" "),i("div",{domProps:{innerHTML:t._s(t.returnNoteToSliderIndex(a))}})])]):i("div",[i("div",{staticClass:"py-2 py-md-3 my-2 d-flex justify-content-start align-items-center"},[i("div",{domProps:{innerHTML:t._s(t.returnNoteToSliderIndex(a))}})])])]):t._e()])})),0)]),t._v(" "),t.mediaJsonFit.length>1?i("div",{staticClass:"py-2 d-flex flex-nowrap flex-row justify-content-center align-items-center d-md-none"},t._l(t.mediaJsonFit,(function(e,a){return i("div",{key:a,staticClass:"swiper-square",class:[{active:a===t.activeSlide}],on:{click:function(e){return t.slideMainTo(a)}}})})),0):t._e()]),t._v(" "),t.GalleryTypIsVertical?i("div",{staticClass:"col-3 image-gallery-slider d-none d-md-block"},[i("div",{staticClass:"swiper-wrapper-outer h-auto"},[i("div",{staticClass:"swiper teaser",style:t.verticalTeaserSliderStyle,attrs:{id:t.id+"-teaser"}},[i("div",{staticClass:"swiper-wrapper"},t._l(t.mediaSmallJson,(function(e,a){return i("div",{key:a,staticClass:"swiper-slide col-12",on:{click:function(e){return t.slideMainTo(a)}}},[i("div",{staticClass:"slide-wrapper"},["Video"===t.mediaTyp?[i("div",{staticClass:"slide-content"},[i("fragment",{domProps:{innerHTML:t._s(e)}}),t._v(" "),i("div",{staticClass:"image-gallery-video-click-overlay",on:{click:function(e){return t.slideMainTo(a)}}}
1)],1)]:[i("div",{staticClass:"slide-content",domProps:{innerHTML:t._s(e)}})],t._v(" "),t.showZoomBtn?i("div",{staticClass:"zoom-btn",on:{click:function(e){return t.openLightBoxGallery(a)}}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("zoom_out_map")])]):t._e()],2)])})),0)]),t._v(" "),i("div",{staticClass:"swiper-button-prev vertical",attrs:{id:t.id+"-teaser-prev"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("north")])]),t._v(" "),i("div",{staticClass:"swiper-button-next vertical",attrs:{id:t.id+"-teaser-next"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("south")])])])]):t._e()]),t._v(" "),i("popup",{ref:"lightboxModal",attrs:{"parent-id":t.id,"window-full-with":t.popUpFullWith}},[i("div",{staticClass:"swiper-gallery-wrapper-outer"},[i("div",{staticClass:"swiper gallery",attrs:{id:t.id+"-lightboxGallerySlider"}},[i("div",{staticClass:"swiper-wrapper"},t._l(t.mediaBigJsonFit,(function(e,a){return i("div",{key:a,staticClass:"swiper-slide position-relative"},[i("div",{domProps:{innerHTML:t._s(e)}}),t._v(" "),i("div",{staticClass:"position-absolute lightBoxCaption",domProps:{innerHTML:t._s(t.returnNoteToSliderIndex(a))}})])})),0)]),t._v(" "),i("div",{staticClass:"swiper-button-prev",attrs:{id:t.id+"-gallery-prev"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("west")])]),t._v(" "),i("div",{staticClass:"swiper-button-next",attrs:{id:t.id+"-gallery-next"}},[i("i",{staticClass:"material-symbols-sharp"},[t._v("east")])])])])],1)}),[],!1,Al,"data-v-1c00c563",null).exports,Ml=i("Q2AE"),Rl=i("ai3h"),$l={init:function(){var t=this;if(document.getElementById("vf2-nav")){var e=document.getElementById("vf2-nav-toggle-left"),i=document.getElementById("vf2-nav-toggle-right");i&&i.addEventListener("click",(function(){t.closeNav()})),e&&e.addEventListener("click",(function(){t.openNav()}))}},openNav:function(){var t=document.getElementById("vf2-nav"),e=document.getElementById("vf2-nav-toggle-left"),i=document.getElementById("vf2-nav-toggle-right"),a=document.getElementsByTagName("body")[0];e.classList.toggle("d-none"),i.classList.toggle("d-none"),t.classList.toggle("closed"),window.innerWidth<P.breakpoints.md&&a.classList.add("overflow-hidden"),this.setNavOpened(!0)},closeNav:function(){var t=document.getElementById("vf2-nav"),e=document.getElementById("vf2-nav-toggle-left"),i=document.getElementById("vf2-nav-toggle-right"),a=document.getElementsByTagName("body")[0];i.classList.toggle("d-none"),e.classList.toggle("d-none"),t.classList.toggle("closed"),window.innerWidth<P.breakpoints.md&&a.classList.remove("overflow-hidden"),this.setNavOpened(!1)},setNavOpened:function(t){window.localStorage.setItem("vf2-nav-opened",t.toString())}};s.a.defaults.timeout=12e4,n.a.init(),o.default.use(m.a),o.default.use(l.a),o.default.use(u.a),o.default.prototype.moment=p.a,o.default.config.productionTip=!1,f.a.init();var Nl="data-latitude",jl="data-longitude",zl="data-googleKey",Bl="data-newsCategoryId",ql="data-count",Ul="data-title",Hl="data-titleHtml",Gl="data-mapIconDefault",Wl="data-mapIconHover",Zl="data-mapIconActive",Jl="data-tealiumPageCategory",Kl="data-tealiumSubPageCategory",Yl="data-tealiumValue",Ql="data-tealiumType",Xl="data-tealiumCategory",tc="data-tealiumAction",ec="data-productName",ic="data-comparisonName",ac="data-content",sc="data-actionLink",nc="data-link",oc="data-linkUrl",rc="data-linkText",lc="data-iconPosition",cc="data-isDark",uc="data-customColor",dc="data-benefits",pc="data-fontSize",mc="data-background",hc="data-opacity",fc="data-image",gc="data-imagePosition",vc="data-headline",bc="data-subline",wc="data-isBasic",yc="data-align",Cc="data-dateFormat",_c="data-timeFormat",Sc="data-typeOptions",Tc="data-type",Pc="data-zoom",Fc="data-size",xc="data-label",Oc="data-height",kc="data-iconWidth",Lc="data-iconHeight",Ic="data-iconDefault",Ec="data-iconHover",Vc="data-iconActive",Ac="data-iconCluster",Dc="data-iconClusterWidth",Mc="data-iconClusterHeight",Rc="data-iconClusterTextColor",$c="data-optInBackgroundImage",Nc="data-optInBackgroundImageWebp",jc="data-isOneTrustEnabled",zc="data-useOneTrust",Bc="data-id",qc="data-cucumber",Uc=function(){Ml.a.commit("forms/setInitValuesFromFev"),Ml.a.commit("weather/setInitValuesFromFev"),Ml.a.commit("events/setInitValuesFromFev"),Ml.a.commit("opinionPoll/setInitValuesFromFev"),Ml.a.commit("news/setInitValuesFromFev"),Ml.a.commit("search/setInitValuesFromFev"),Ml.a.commit("virtualFarm/setInitValuesFromFev"),Ml.a.commit("filter/setInitValuesFromFev"),Ml.a.commit("main/setInitValuesFromFev"),Rl.a.setInitValuesFromFev(),$l.init(),new o.default({el:".app",components:{App:b},template:"<App/>"})},Hc=function(){i("XDNI");for(var t=document.querySelectorAll(".VFTabNavigation"),e=0;e<t.length;e+=1)new o.default({el:".VFTabNavigation",components:{VFTabNavigation:Ns},beforeMount:function(){this.tabOneLabel="",this.tabTwoLabel="",this.tabThreeLabel="",this.$el.attributes["data-tabOneLabel"]&&(this.tabOneLabel=this.$el.attributes["data-tabOneLabel"].value),this.$el.attributes["data-tabTwoLabel"]&&(this.tabTwoLabel=this.$el.attributes["data-tabTwoLabel"].value),this.$el.attributes["data-tabThreeLabel"]&&(this.tabThreeLabel=this.$el.attributes["data-tabThreeLabel"].value)},template:'\n        <VFTabNavigation\n          :tabOneLabel = "this.tabOneLabel"\n          :tabTwoLabel = "this.tabTwoLabel"\n          :tabThreeLabel = "this.tabThreeLabel">\n          '.concat(t[e].innerHTML,"\n        </VFTabNavigation>\n      "),store:Ml.a});for(var a=document.querySelectorAll(".VirtualFarmMap"),s=0;s<a.length;s+=1)new o.default({el:".VirtualFarmMap",components:{VirtualFarmMap:hs},beforeMount:function(){this.modelSize="",this.coreElements=[],this.mediumElements=[],this.smallElements=[],this.farmHouse={},this.defaultImages={},this.hasOverlay=!1,this.showClipPathToggle=!1,this.$el.attributes["data-modelSize"]&&(this.modelSize=this.$el.attributes["data-modelSize"].value.toLowerCase()),this.$el.attributes["data-coreElements"]&&(this.coreElements=this.$el.attributes["data-coreElements"].value,this.coreElements=JSON.parse(this.coreElements)),this.$el.attributes["data-mediumElements"]&&(this.mediumElements=this.$el.attributes["data-mediumElements"].value,this.mediumElements=JSON.parse(this.mediumElements)),this.$el.attributes["data-smallElements"]&&(this.smallElements=this.$el.attributes["data-smallElements"].value,this.smallElements=JSON.parse(this.smallElements)),this.$el.attributes["data-farmHouse"]&&(this.farmHouse=this.$el.attributes["data-farmHouse"].value,this.farmHouse=JSON.parse(this.farmHouse)),this.$el.attributes["data-defaultImages"]&&(this.defaultImages=this.$el.attributes["data-defaultImages"].value,this.defaultImages=JSON.parse(this.defaultImages)),this.$el.attributes["data-hasOverlay"]&&(this.hasOverlay="true"===this.$el.attributes["data-hasOverlay"].value),this.$el.attributes["data-showClipPathToggle"]&&(this.showClipPathToggle="true"===this.$el.attributes["data-showClipPathToggle"].value)},template:'\n        <VirtualFarmMap\n          :modelSize = "this.modelSize"\n          :coreElements = "this.coreElements"\n          :mediumElements = "this.mediumElements"\n          :smallElements = "this.smallElements"\n          :farmHouse = "this.farmHouse"\n          :defaultImages = "this.defaultImages"\n          :hasOverlay = "this.hasOverlay"\n          :sh
1owClipPathToggle = "this.showClipPathToggle"\n        >'.concat(a[s].innerHTML,"</VirtualFarmMap>\n      "),store:Ml.a});for(var n=document.querySelectorAll(".opinionPoll"),r=0;r<n.length;r+=1)new o.default({el:n[r],components:{OpinionPoll:$t},beforeMount:function(){this.fsid="",this.fsLink="",this.$el.attributes["data-fsId"]&&(this.fsid=this.$el.attributes["data-fsId"].value),this.$el.attributes["data-fsLink"]&&(this.fsLink=this.$el.attributes["data-fsLink"].value)},template:'<OpinionPoll :fsId="fsid" :fsLink="fsLink"/>',store:Ml.a});document.getElementsByClassName("graphs").length>0&&new o.default({el:".graphs",components:{Graphs:K},template:"<Graphs/>"});for(var l=document.querySelectorAll(".cockpit"),c=0;c<l.length;c+=1)new o.default({el:l[c],components:{Cockpit:gt},beforeMount:function(){this.fsid="",this.$el.attributes["data-fsId"]&&(this.fsid=this.$el.attributes["data-fsId"].value)},template:'<Cockpit :fsId="fsid" />'});for(var u=document.querySelectorAll(".CalculatorLWA"),d=0;d<u.length;d+=1)new o.default({el:".CalculatorLWA",components:{CalculatorLWA:kt},beforeMount:function(){this.rowLabel="",this.growthStageLabel="",this.rowMetric="",this.colMetric="",this.resultMetric="",this.gsResultMetric="",this.resultMetricsJson="",this.productLabel="",this.productDefault="",this.useSingleProduct=!0,this.pageHasSidebar=!1,this.showInfoMaxDosage=!0,this.showInfoMaxDosageExtra=!1,this.showInfoMinDosage=!1,this.selectFirstProduct=!1,this.selectFirstCrop=!1,this.selectFirstPest=!1,this.simpleResult=!1,this.hideProductName=!1,this.resultLabel="",this.infoLabel="",this.hideInfoLabel=!1,this.gsResultLabel="",this.gsInfoLabel="",this.gsHideInfoLabel=!1,this.distanceLabel="",this.heightLabel="",this.distanceHeadline="",this.heightHeadline="",this.growthStageHeadline="",this.resultTextAtEnd="",this.hidePestsSelect=!1,this.hideCropsSelect=!1,this.json="",this.$el.attributes["data-rowLabel"]&&(this.rowLabel=this.$el.attributes["data-rowLabel"].value),this.$el.attributes["data-growthStageLabel"]&&(this.growthStageLabel=this.$el.attributes["data-growthStageLabel"].value),this.$el.attributes["data-rowMetric"]&&(this.rowMetric=this.$el.attributes["data-rowMetric"].value),this.$el.attributes["data-colMetric"]&&(this.colMetric=this.$el.attributes["data-colMetric"].value),this.$el.attributes["data-resultMetric"]&&(this.resultMetric=this.$el.attributes["data-resultMetric"].value),this.$el.attributes["data-gsResultMetric"]&&(this.gsResultMetric=this.$el.attributes["data-gsResultMetric"].value),this.$el.attributes["data-resultMetricsJson"]&&(this.resultMetricsJson=this.$el.attributes["data-resultMetricsJson"].value),this.$el.attributes["data-productLabel"]&&(this.productLabel=this.$el.attributes["data-productLabel"].value),this.$el.attributes["data-productDefault"]&&(this.productDefault=this.$el.attributes["data-productDefault"].value),this.$el.attributes["data-useSingleProduct"]&&(this.useSingleProduct="true"===this.$el.attributes["data-useSingleProduct"].value),this.$el.attributes["data-pageHasSidebar"]&&(this.pageHasSidebar="true"===this.$el.attributes["data-pageHasSidebar"].value),this.$el.attributes["data-showInfoMaxDosage"]&&(this.showInfoMaxDosage="true"===this.$el.attributes["data-showInfoMaxDosage"].value),this.$el.attributes["data-showInfoMaxDosageExtra"]&&(this.showInfoMaxDosageExtra="true"===this.$el.attributes["data-showInfoMaxDosageExtra"].value),this.$el.attributes["data-showInfoMinDosage"]&&(this.showInfoMinDosage="true"===this.$el.attributes["data-showInfoMinDosage"].value),this.$el.attributes["data-selectFirstProduct"]&&(this.selectFirstProduct="true"===this.$el.attributes["data-selectFirstProduct"].value),this.$el.attributes["data-selectFirstCrop"]&&(this.selectFirstCrop="true"===this.$el.attributes["data-selectFirstCrop"].value),this.$el.attributes["data-selectFirstPest"]&&(this.selectFirstPest="true"===this.$el.attributes["data-selectFirstPest"].value),this.$el.attributes["data-simpleResult"]&&(this.simpleResult="true"===this.$el.attributes["data-simpleResult"].value),this.$el.attributes["data-hideProductName"]&&(this.hideProductName="true"===this.$el.attributes["data-hideProductName"].value),this.$el.attributes["data-resultLabel"]&&(this.resultLabel=this.$el.attributes["data-resultLabel"].value),this.$el.attributes["data-infoLabel"]&&(this.infoLabel=this.$el.attributes["data-infoLabel"].value),this.$el.attributes["data-hideInfoLabel"]&&(this.hideInfoLabel="true"===this.$el.attributes["data-hideInfoLabel"].value),this.$el.attributes["data-gsResultLabel"]&&(this.gsResultLabel=this.$el.attributes["data-gsResultLabel"].value),this.$el.attributes["data-gsInfoLabel"]&&(this.gsInfoLabel=this.$el.attributes["data-gsInfoLabel"].value),this.$el.attributes["data-gsHideInfoLabel"]&&(this.gsHideInfoLabel="true"===this.$el.attributes["data-gsHideInfoLabel"].value),this.$el.attributes["data-distanceLabel"]&&(this.distanceLabel=this.$el.attributes["data-distanceLabel"].value),this.$el.attributes["data-heightLabel"]&&(this.heightLabel=this.$el.attributes["data-heightLabel"].value),this.$el.attributes["data-distanceHeadline"]&&(this.distanceHeadline=this.$el.attributes["data-distanceHeadline"].value),this.$el.attributes["data-heightHeadline"]&&(this.heightHeadline=this.$el.attributes["data-heightHeadline"].value),this.$el.attributes["data-growthStageHeadline"]&&(this.growthStageHeadline=this.$el.attributes["data-growthStageHeadline"].value),this.$el.attributes["data-resultTextAtEnd"]&&(this.resultTextAtEnd=this.$el.attributes["data-resultTextAtEnd"].value),this.$el.attributes["data-hidePestsSelect"]&&(this.hidePestsSelect="true"===this.$el.attributes["data-hidePestsSelect"].value),this.$el.attributes["data-hideCropsSelect"]&&(this.hideCropsSelect="true"===this.$el.attributes["data-hideCropsSelect"].value),this.$el.attributes["data-json"]&&(this.json=this.$el.attributes["data-json"].value)},template:'\n        <CalculatorLWA\n          :rowLabel="this.rowLabel"\n          :growthStageLabel="this.growthStageLabel"\n          :rowMetric="this.rowMetric"\n          :colMetric="this.colMetric"\n          :resultMetric="this.resultMetric"\n          :gsResultMetric="this.gsResultMetric"\n          :resultMetricsJson = "this.resultMetricsJson"\n          :productLabel="this.productLabel"\n          :productDefault="this.productDefault"\n          :useSingleProduct="this.useSingleProduct"\n          :pageHasSidebar="this.pageHasSidebar"\n          :sh
1owInfoMaxDosage="this.showInfoMaxDosage"\n          :showInfoMaxDosageExtra="this.showInfoMaxDosageExtra"\n          :showInfoMinDosage="this.showInfoMinDosage"\n          :selectFirstProduct="this.selectFirstProduct"\n          :selectFirstCrop="this.selectFirstCrop"\n          :selectFirstPest="this.selectFirstPest"\n          :simpleResult="this.simpleResult"\n          :hideProductName="this.hideProductName"\n          :resultLabel="this.resultLabel"\n          :infoLabel="this.infoLabel"\n          :hideInfoLabel="this.hideInfoLabel"\n          :gsResultLabel="this.gsResultLabel"\n          :gsInfoLabel="this.gsInfoLabel"\n          :gsHideInfoLabel="this.gsHideInfoLabel"\n          :distanceLabel="this.distanceLabel"\n          :heightLabel="this.heightLabel"\n          :distanceHeadline="this.distanceHeadline"\n          :heightHeadline="this.heightHeadline"\n          :growthStageHeadline="this.growthStageHeadline"\n          :resultTextAtEnd="this.resultTextAtEnd"\n          :hidePestsSelect="this.hidePestsSelect"\n          :hideCropsSelect="this.hideCropsSelect"\n          :json="this.json"\n        />\n      '});for(var p=document.querySelectorAll(".calculator"),m=0;m<p.length;m+=1)new o.default({el:p[m],components:{Calculator:wt},beforeMount:function(){this.fsid="",this.$el.attributes["data-fsId"]&&(this.fsid=this.$el.attributes["data-fsId"].value)},template:'<Calculator :fsid="fsid" />'});for(var h=document.querySelectorAll(".quickSearch"),f=0;f<h.length;f+=1)new o.default({el:h[f],components:{QuickSearch:Bi},beforeMount:function(){this.tempCG="",this.tempCSG="",this.tempC="",this.tempPG="",this.tempPSG="",this.tempP="",this.tempI="",this.tempColor="",this.tempHeadline="",this.tempSubheadline="",this.$el.attributes["data-cg"]&&(this.tempCG=this.$el.attributes["data-cg"].value),this.$el.attributes["data-csg"]&&(this.tempCSG=this.$el.attributes["data-csg"].value),this.$el.attributes["data-c"]&&(this.tempC=this.$el.attributes["data-c"].value),this.$el.attributes["data-pg"]&&(this.tempPG=this.$el.attributes["data-pg"].value),this.$el.attributes["data-psg"]&&(this.tempPSG=this.$el.attributes["data-psg"].value),this.$el.attributes["data-p"]&&(this.tempP=this.$el.attributes["data-p"].value),this.$el.attributes["data-i"]&&(this.tempI=this.$el.attributes["data-i"].value),this.$el.attributes["data-color"]&&(this.tempColor=this.$el.attributes["data-color"].value),this.$el.attributes[vc]&&(this.tempHeadline=this.$el.attributes[vc].value),this.$el.attributes["data-subheadline"]&&(this.tempSubheadline=this.$el.attributes["data-subheadline"].value)},template:'\n        <QuickSearch\n          :showCG="tempCG"\n          :showCSG="tempCSG"\n          :showC="tempC"\n          :showPG="tempPG"\n          :showPSG="tempPSG"\n          :showP="tempP"\n          :showI="tempI"\n          :color="tempColor"\n          :headline="tempHeadline"\n          :subheadline="tempSubheadline"\n        />'});document.getElementsByClassName("CommodityPrices").length>0&&new o.default({el:".CommodityPrices",components:{CommodityPrices:Ut},template:"<CommodityPrices/>"});for(var g=document.querySelectorAll(".CommodityPricesTeaser"),v=0;v<g.length;v+=1)new o.default({el:".CommodityPricesTeaser",components:{CommodityPricesTeaser:Wt},beforeMount:function(){this.titleHtml="",this.link="",this.$el.attributes[Hl]&&(this.titleHtml=this.$el.attributes[Hl].value),this.$el.attributes[nc]&&(this.link=this.$el.attributes[nc].value)},template:'\n        <CommodityPricesTeaser\n          :titleHtml="this.titleHtml"\n          :link = "this.link">\n          '.concat(g[v].innerHTML,"\n        </CommodityPricesTeaser>")});document.getElementsByClassName("WeatherOverview").length>0&&new o.default({el:".WeatherOverview",components:{WeatherOverview:me},beforeMount:function(){this.tempShowWarnings="",this.$el.attributes["data-showWarnings"]&&(this.tempShowWarnings=this.$el.attributes["data-showWarnings"].value)},template:'<WeatherOverview :showWarnings="tempShowWarnings" />',store:Ml.a}),document.getElementsByClassName("WeatherTeaser").length>0&&new o.default({el:".WeatherTeaser",components:{WeatherTeaser:se},beforeMount:function(){this.isVertical=!0,this.titleHtml="",this.link="",this.$el.attributes["data-isVertical"]&&(this.isVertical="true"===this.$el.attributes["data-isVertical"].value),this.$el.attributes[Hl]&&(this.titleHtml=this.$el.attributes[Hl].value),this.$el.attributes[nc]&&(this.link=this.$el.attributes[nc].value)},template:'\n        <WeatherTeaser\n          :isVertical="this.isVertical"\n          :titleHtml="this.titleHtml"\n          :link="this.link"\n        />',store:Ml.a});for(var b=document.querySelectorAll(".WeatherMap"),y=0;y<b.length;y+=1)new o.default({el:".WeatherMap",components:{WeatherMap:Ue},beforeMount:function(){this.latitude="",this.longitude="",this.zoom="",this.googleKey="",this.dateFormat="",this.timeFormat="",this.type="",this.typeOptions="",this.optInBackgroun
1dImage="",this.optInBackgroundImageWebp="",this.isOneTrustEnabled=!1,this.useOneTrust=!0,this.$el.attributes[Nl]&&(this.latitude=+this.$el.attributes[Nl].value),this.$el.attributes[jl]&&(this.longitude=+this.$el.attributes[jl].value),this.$el.attributes[Pc]&&(this.zoom=+this.$el.attributes[Pc].value),this.$el.attributes[zl]&&(this.googleKey=this.$el.attributes[zl].value),this.$el.attributes[Cc]&&(this.dateFormat=this.$el.attributes[Cc].value),this.$el.attributes[_c]&&(this.timeFormat=this.$el.attributes[_c].value),this.$el.attributes[Tc]&&(this.type=this.$el.attributes[Tc].value),this.$el.attributes[Sc]&&(this.typeOptions=this.$el.attributes[Sc].value),this.$el.attributes[$c]&&(this.optInBackgroundImage=this.$el.attributes[$c].value),this.$el.attributes[Nc]&&(this.optInBackgroundImageWebp=this.$el.attributes[Nc].value),this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value),this.$el.attributes[zc]&&(this.useOneTrust="true"===this.$el.attributes[zc].value)},template:'\n        <WeatherMap\n          :latitude="this.latitude"\n          :longitude="this.longitude"\n          :zoom="this.zoom"\n          :googleKey="this.googleKey"\n          :dateFormat="this.dateFormat"\n          :timeFormat="this.timeFormat"\n          :type="this.type"\n          :typeOptions="this.typeOptions"\n          :optInBackgroundImage="this.optInBackgroundImage"\n          :optInBackgroundImageWebp="this.optInBackgroundImageWebp"\n          :isOneTrustEnabled="this.isOneTrustEnabled"\n          :useOneTrust="this.useOneTrust"\n        />\n      ',store:Ml.a});for(var C=document.querySelectorAll(".ProductSearch"),_=0;_<C.length;_+=1)new o.default({el:C[_],components:{ProductSearch:oi},beforeMount:function(){this.recommendationActive=!1,this.recommendationTitle="",this.recommendationContent="",this.recommendationLinkText="",this.recommendationLinkUrl="",this.recommendationColor="",this.recommendationTealiumValue="",this.recommendationTealiumType="",this.recommendationTealiumCategory="",this.recommendationTealiumAction="",this.filterByType="",this.showIndication=!0,this.$el.attributes["data-recommendationActive"]&&(this.recommendationActive="true"===this.$el.attributes["data-recommendationActive"].value),this.$el.attributes["data-recommendationTitle"]&&(this.recommendationTitle=this.$el.attributes["data-recommendationTitle"].value),this.$el.attributes["data-recommendationContent"]&&(this.recommendationContent=this.$el.attributes["data-recommendationContent"].value),this.$el.attributes["data-recommendationLinkText"]&&(this.recommendationLinkText=this.$el.attributes["data-recommendationLinkText"].value),this.$el.attributes["data-recommendationLinkUrl"]&&(this.recommendationLinkUrl=this.$el.attributes["data-recommendationLinkUrl"].value),this.$el.attributes["data-recommendationColor"]&&(this.recommendationColor=this.$el.attributes["data-recommendationColor"].value),this.$el.attributes["data-recommendationTealiumValue"]&&(this.recommendationTealiumValue=this.$el.attributes["data-recommendationTealiumValue"].value),this.$el.attributes["data-recommendationTealiumType"]&&(this.recommendationTealiumType=this.$el.attributes["data-recommendationTealiumType"].value),this.$el.attributes["data-recommendationTealiumCategory"]&&(this.recommendationTealiumCategory=this.$el.attributes["data-recommendationTealiumCategory"].value),this.$el.attributes["data-recommendationTealiumAction"]&&(this.recommendationTealiumAction=this.$el.attributes["data-recommendationTealiumAction"].value),this.$el.attributes["data-filterByType"]&&(this.filterByType=this.$el.attributes["data-filterByType"].value),this.$el.attributes["data-showIndication"]&&(this.showIndication="true"===this.$el.attributes["data-showIndication"].value)},template:'<ProductSearch\n        :recommendationActive="this.recommendationActive"\n        :recommendationTitle="this.recommendationTitle"\n        :recommendationContent="this.recommendationContent"\n        :recommendationLinkText="this.recommendationLinkText"\n        :recommendationLinkUrl="this.recommendationLinkUrl"\n        :recommendationColor="this.recommendationColor"\n        :recommendationTealiumValue="this.recommendationTealiumValue"\n        :recommendationTealiumType="this.recommendationTealiumType"\n        :recommendationTealiumCategory="this.recommendationTealiumCategory"\n        :recommendationTealiumAction="this.recommendationTealiumAction"\n        :filterByType="this.filterByType"\n        :sh
1owIndication="this.showIndication"\n      />',store:Ml.a,router:w.a});document.getElementsByClassName("ProductSearchCheckbox").length>0&&new o.default({el:".ProductSearchCheckbox",components:{ProductSearchCheckbox:He.a},template:"<ProductSearchCheckbox/>"}),document.getElementsByClassName("ProductSearchTag").length>0&&new o.default({el:".ProductSearchTag",components:{ProductSearchTag:Ge.a},template:"<ProductSearchTag/>"}),document.getElementsByClassName("ProductSearchDropdown").length>0&&new o.default({el:".ProductSearchDropdown",components:{ProductSearchDropdown:We.a},template:"<ProductSearchDropdown/>"});for(var S=document.querySelectorAll(".GeneralSearch"),T=0;T<S.length;T+=1)new o.default({el:S[T],components:{GeneralSearch:Hi},template:"<GeneralSearch />"});document.getElementsByClassName("NewsOverview").length>0&&new o.default({el:".NewsOverview",components:{NewsOverview:Pi},beforeMount:function(){this.tempNewsCategoryId="",this.tempCount="",this.tempHasLocalization="",this.newsCategoryIdList="",this.usePersonalize="",this.$el.attributes[Bl]&&(this.tempNewsCategoryId=this.$el.attributes[Bl].value),this.$el.attributes[ql]&&(this.tempCount=this.$el.attributes[ql].value),this.$el.attributes["data-hasLocalization"]&&(this.tempHasLocalization=this.$el.attributes["data-hasLocalization"].value),this.$el.attributes["data-newsCategoryIdList"]&&(this.newsCategoryIdList=this.$el.attributes["data-newsCategoryIdList"].value),this.$el.attributes["data-usePersonalize"]&&(this.usePersonalize="true"===this.$el.attributes["data-usePersonalize"].value)},template:'\n        <NewsOverview\n          :newsCategoryId="tempNewsCategoryId"\n          :count="tempCount"\n          :hasLocalization="tempHasLocalization"\n          :newsCategoryIdList="newsCategoryIdList"\n          :usePersonalize="usePersonalize"\n        />',store:Ml.a});for(var P=document.querySelectorAll(".NewsOverviewFilter"),F=0;F<P.length;F+=1)new o.default({el:".NewsOverviewFilter",components:{NewsOverviewFilter:Di},template:"\n        <NewsOverviewFilter />\n      ",store:Ml.a});for(var x=document.querySelectorAll(".NewsCampaignFilter"),O=0;O<x.length;O+=1)new o.default({el:".NewsCampaignFilter",components:{NewsCampaignFilter:Ni},beforeMount:function(){},template:"\n        <NewsCampaignFilter />\n      ",store:Ml.a,router:w.a});document.getElementsByClassName("PestLibrary").length>0&&new o.default({el:".PestLibrary",components:{PestLibrary:ci},beforeMount:function(){this.showFilter=!0,this.$el.attributes["data-showFilter"]&&(this.showFilter="true"===this.$el.attributes["data-showFilter"].value)},template:'<PestLibrary :showFilter="this.showFilter" />'}),document.getElementsByClassName("EventsOverview").length>0&&new o.default({el:".EventsOverview",components:{EventsOverview:Ci},beforeMount:function(){this.hideFilter=!1,this.eventTypeFilterParam="",this.cropIdsFilterParam="",this.eventFormIdPrefix="",this.eventSortDesc=!1,this.$el.attributes["data-hideFilter"]&&(this.hideFilter="true"===this.$el.attributes["data-hideFilter"].value),this.$el.attributes["data-eventTypeFilter"]&&(this.eventTypeFilterParam=this.$el.attributes["data-eventTypeFilter"].value),this.$el.attributes["data-cropIdsFilter"]&&(this.cropIdsFilterParam=this.$el.attributes["data-cropIdsFilter"].value),this.$el.attributes["data-eventFormIdPrefix"]&&(this.eventFormIdPrefix=this.$el.attributes["data-eventFormIdPrefix"].value),this.$el.attributes["data-eventSortDesc"]&&(this.eventSortDesc="true"===this.$el.attributes["data-eventSortDesc"].value)},template:'\n        <EventsOverview\n          :hideFilter="this.hideFilter"\n          :eventTypeFilterParam="this.eventTypeFilterParam"\n          :cropIdsFilterParam="this.cropIdsFilterParam"\n          :eventFormIdPrefix="this.eventFormIdPrefix"\n          :eventSortDesc="this.eventSortDesc"\n        />',store:Ml.a});for(var k=document.querySelectorAll(".DynamicTeasers"),L=0;L<k.length;L+=1)new o.default({el:k[L],components:{DynamicTeasers:mt},beforeMount:function(){this.topHeadline="",this.topSubline="",this.teasersSameHeightSlideId=null,this.headline="",this.headlineHtml="",this.headlineLink="",this.headlineLinkText="",this.id="",this.tempDtId="",this.tempUsePzBar="",this.tempResultType="",this.tempAmount="",this.tempSize="",this.tempactiveIngredientId="",this.tempcontactTypeId="",this.tempcropGroupId="",this.tempcropSubgroupId="",this.tempcropId="",this.tempeventCategoryId="",this.tempindicationId="",this.temppestGroupId="",this.temppestSubgroupId="",this.temppestId="",this.tempcrossCategoryId="",this.tempproductId="",this.tempsingleSlides="",this.tempnewsId="",this.tempnewsCategoryId="",this.tempnewsCategoryLocalize="",this.tempnewsCategoryCropfilter="",this.tempnewsCategorySearch="",this.tempEmptyMsg="",this.tempEmptyMsgShow=!1,this.alignment="",this.useSlider=!0,this.rowCount="",this.hasBorder=!0,this.navType="default",this.$el.attributes["data-topHeadline"]&&(this.topHeadline=this.$el.attributes["data-topHeadline"].value),this.$el.attributes["data-topSubline"]&&(this.topSubline=this.$el.attributes["data-topSubline"].value),this.$el.attributes["data-teasersSameHeightSlideId"]&&(this.teasersSameHeightSlideId=this.$el.attributes["data-teasersSameHeightSlideId"].value),this.$el.attributes[vc]&&(this.headline=this.$el.attributes[vc].value),this.$el.attributes["data-headlineHtml"]&&(this.headlineHtml=this.$el.attributes["data-headlineHtml"].value),this.$el.attributes["data-headlineLink"]&&(this.headlineLink=this.$el.attributes["data-headlineLink"].value),this.$el.attributes["data-headlineLinkText"]&&(this.headlineLinkText=this.$el.attributes["data-headlineLinkText"].value),this.$el.attributes["data-dtId"]&&(this.tempDtId=this.$el.attributes["data-dtId"].value),this.$el.attributes[Bc]&&(this.id=this.$el.attributes[Bc].value),this.$el.attributes["data-usePzBar"]&&(this.tempUsePzBar=this.$el.attributes["data-usePzBar"].value),this.$el.attributes["data-resultType"]&&(this.tempResultType=this.$el.attributes["data-resultType"].value),this.$el.attributes["data-amount"]&&(this.tempAmount=this.$el.attributes["data-amount"].value),this.$el.attributes[Fc]&&(this.tempSize=this.$el.attributes[Fc].value),this.$el.attributes["data-activeIngredientId"]&&(this.tempactiveIngredientId=this.$el.attributes["data-activeIngredientId"].value),this.$el.attributes["data-contactTypeId"]&&(this.tempcontactTypeId=this.$el.attributes["data-contactTypeId"].value),this.$el.attributes["data-cropGroupId"]&&(this.tempcropGroupId=this.$el.attributes["data-cropGroupId"].value),this.$el.attributes["data-cropSubgroupId"]&&(this.tempcropSubgroupId=this.$el.attributes["data-cropSubgroupId"].value),this.$el.attributes["data-cropId"]&&(this.tempcropId=this.$el.attributes["data-cropId"].value),this.$el.attributes["data-eventCategoryId"]&&(this.tempeventCategoryId=this.$el.attributes["data-eventCategoryId"].value),this.$el.attributes["data-indicationId"]&&(this.tempindicationId=this.$el.attributes["data-indicationId"].value),this.$el.attributes["data-pestGroupId"]&&(this.temppestGroupId=this.$el.attributes["data-pestGroupId"].value),this.$el.attributes["data-pestSubgroupId"]&&(this.temppestSubgroupId=this.$el.attributes["data-pestSubgroupId"].value),this.$el.attributes["data-pestId"]&&(this.temppestId=this.$el.attributes["data-pestId"].value),this.$el.attributes["data-crossCategoryId"]&&(this.tempcrossCategoryId=this.$el.attributes["data-crossCategoryId"].value),this.$el.attributes["data-productId"]&&(this.tempproductId=this.$el.attributes["data-productId"].value),this.$el.attributes["data-singleSlides"]&&(this.tempsingleSlides=this.$el.attributes["data-singleSlides"].value),this.$el.attributes["data-newsId"]&&(this.tempnewsId=this.$el.attributes["data-newsId"].value),this.$el.attributes[Bl]&&(this.tempnewsCategoryId=this.$el.attributes[Bl].value),this.$el.attributes["data-newsCategoryLocalize"]&&(this.tempnewsCategoryLocalize=this.$el.attributes["data-newsCategoryLocalize"].value),this.$el.attributes["data-newsCategoryCropfilter"]&&(this.tempnewsCategoryCropfilter=this.$el.attributes["data-newsCategoryCropfilter"].value),this.$el.attributes["data-newsCategorySearch"]&&(this.tempnewsCategorySearch=this.$el.attributes["data-newsCategorySearch"].value),this.$el.attributes["data-emptyMsg"]&&(this.tempEmptyMsg=this.$el.attributes["data-emptyMsg"].value),this.$el.attributes["data-emptyMsgShow"]&&(this.tempEmptyMsgShow="true"===this.$el.attributes["data-emptyMsgShow"].value),this.$el.attributes["data-alignment"]&&(this.alignment=this.$el.attributes["data-alignment"].value),this.$el.attributes["data-useSlider"]&&(this.useSlider="true"===this.$el.attributes["data-useSlider"].value),this.$el.attributes["data-rowCount"]&&(this.rowCount=this.$el.attributes["data-rowCount"].value),this.$el.attributes["data-hasBorder"]&&(this.hasBorder="true"===this.$el.attributes["data-hasBorder"].value),this.$el.attributes["data-navType"]&&(this.navType=this.$el.attributes["data-navType"].value)},template:'\n        <DynamicTeasers\n          :topHeadline="this.topHeadline"\n          :topSubline="this.topSubline"\n          :teasersSameHeightSlideId="this.teasersSameHeightSlideId"\n          :headline="this.headline"\n          :headlineHtml="this.headlineHtml"\n          :headlineLink="this.headlineLink"\n          :headlineLinkText="this.headlineLinkText"\n          :id="this.id"\n          :newsId="this.tempnewsId"\n          :newsCategoryId="this.tempnewsCategoryId"\n          :newsCategoryLocalize="this.tempnewsCategoryLocalize"\n          :newsCategoryCropfilter="this.tempnewsCategoryCropfilter"\n          :newsCategorySearch="this.tempnewsCategorySearch"\n          :singleSlides="this.tempsingleSlides"\n          :dtId="this.tempDtId"\n          :usePzBar="tempUsePzBar"\n          :resultType="tempResultType"\n          :amount="tempAmount"\n          :size="tempSize"\n          :activeIngredientId="tempactiveIngredientId"\n          :contactTypeId="tempcontactTypeId"\n          :cropGroupId="tempcropGroupId"\n          :cropSubgroupId="tempcropSubgroupId"\n          :cropId="tempcropId"\n          :eventCategoryId="tempeventCategoryId"\n          :indicationId="tempindicationId"\n          :pestGroupId="temppestGroupId"\n          :pestSubgroupId="temppestSubgroupId"\n          :pestId="temppestId"\n          :crossCategoryId="tempcrossCategoryId"\n          :productId="tempproductId"\n          :emptyMsg="this.tempEmptyMsg"\n          :emptyMsgShow="this.tempEmptyMsgShow"\n          :alignment="this.alignment"\n          :useSlider="this.useSlider"\n          :rowCount="this.rowCount"\n          :hasBorder="this.hasBorder"\n          :navType="this.navType"\n        />',store:Ml.a});document.getElementsByClassName("rainyDays").length>0&&new o.default({el:".rainyDays",components:{RainyDays:Kt},template:"<RainyDays/>"}
1),document.getElementsByClassName("Modal").length>0&&new o.default({el:".Modal",components:{Modal:An.a},beforeMount:function(){this.id="",this.title="",this.text="",this.textSave="",this.textCancel="",this.icon="",this.$el.attributes[Bc]&&(this.id=this.$el.attributes[Bc].value),this.$el.attributes[Ul]&&(this.title=this.$el.attributes[Ul].value),this.$el.attributes["data-text"]&&(this.text=this.$el.attributes["data-text"].value),this.$el.attributes["data-textSave"]&&(this.textSave=this.$el.attributes["data-textSave"].value),this.$el.attributes["data-textCancel"]&&(this.textCancel=this.$el.attributes["data-textCancel"].value),this.$el.attributes["data-icon"]&&(this.icon=this.$el.attributes["data-icon"].value)},template:'\n        <Modal\n          :id="this.id"\n          :title="this.title"\n          :text="this.text"\n          :textSave="this.textSave"\n          :textCancel="this.textCancel"\n          :icon="this.icon"\n        />'}),document.getElementsByClassName("PrimaryButton").length>0&&new o.default({el:".PrimaryButton",components:{PrimaryButton:Rn},template:"<PrimaryButton/>"});for(var I=document.querySelectorAll(".MapIcon"),E=0;E<I.length;E+=1)new o.default({el:".MapIcon",components:{MapIcon:qn},beforeMount:function(){this.mapIconDefault="",this.mapIconHover="",this.mapIconActive="",this.mapIconSize="",this.hotspotIconDefault="",this.hotspotIconHover="",this.hotspotIconActive="",this.hotspotIconSize="",this.top="",this.left="",this.tooltip="",this.pictureAlt="",this.count="",this.popup="",this.popupLink="",this.soloMode="",this.tealiumPageCategory="",this.tealiumSubPageCategory="",this.tealiumValue="",this.tealiumType="",this.tealiumCategory="",this.tealiumAction="",this.type="",this.shape="",this.imageWidth="",this.mapId="",this.tooltipSize="",this.tooltipColor="",this.$el.attributes[Gl]&&(this.mapIconDefault=this.$el.attributes[Gl].value),this.$el.attributes[Wl]&&(this.mapIconHover=this.$el.attributes[Wl].value),this.$el.attributes[Zl]&&(this.mapIconActive=this.$el.attributes[Zl].value),this.$el.attributes["data-mapIconSize"]&&(this.mapIconSize=this.$el.attributes["data-mapIconSize"].value),this.$el.attributes["data-hotspotIconDefault"]&&(this.hotspotIconDefault=this.$el.attributes["data-hotspotIconDefault"].value),this.$el.attributes["data-hotspotIconHover"]&&(this.hotspotIconHover=this.$el.attributes["data-hotspotIconHover"].value),this.$el.attributes["data-hotspotIconActive"]&&(this.hotspotIconActive=this.$el.attributes["data-hotspotIconActive"].value),this.$el.attributes["data-hotspotIconSize"]&&(this.hotspotIconSize=this.$el.attributes["data-hotspotIconSize"].value),this.$el.attributes["data-top"]&&(this.top=this.$el.attributes["data-top"].value),this.$el.attributes["data-left"]&&(this.left=this.$el.attributes["data-left"].value),this.$el.attributes["data-tooltip"]&&(this.tooltip=this.$el.attributes["data-tooltip"].value),this.$el.attributes["data-pictureAlt"]&&(this.pictureAlt=this.$el.attributes["data-pictureAlt"].value),this.$el.attributes[ql]&&(this.count=this.$el.attributes[ql].value),this.$el.attributes["data-popup"]&&(this.popup=this.$el.attributes["data-popup"].value),this.$el.attributes["data-popupLink"]&&(this.popupLink=this.$el.attributes["data-popupLink"].value),this.$el.attributes["data-soloMode"]&&(this.soloMode=this.$el.attributes["data-soloMode"].value),this.$el.attributes[Jl]&&(this.tealiumPageCategory=this.$el.attributes[Jl].value),this.$el.attributes[Kl]&&(this.tealiumSubPageCategory=this.$el.attributes[Kl].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes[Ql]&&(this.tealiumType=this.$el.attributes[Ql].value),this.$el.attributes[Xl]&&(this.tealiumCategory=this.$el.attributes[Xl].value),this.$el.attributes[tc]&&(this.tealiumAction=this.$el.attributes[tc].value),this.$el.attributes[Tc]&&(this.type=this.$el.attributes[Tc].value),this.$el.attributes["data-shape"]&&(this.shape=this.$el.attributes["data-shape"].value),this.$el.attributes["data-imageWidth"]&&(this.imageWidth=this.$el.attributes["data-imageWidth"].value),this.$el.attributes["data-mapId"]&&(this.mapId=this.$el.attributes["data-mapId"].value),this.$el.attributes["data-tooltipSize"]&&(this.tooltipSize=this.$el.attributes["data-tooltipSize"].value),this.$el.attributes["data-tooltipColor"]&&(this.tooltipColor=this.$el.attributes["data-tooltipColor"].value),this.$el.attributes["data-tooltipColor"]&&(this.tooltipColor=this.$el.attributes["data-tooltipColor"].value)},template:'\n        <MapIcon\n          :mapIconDefault="this.mapIconDefault"\n          :mapIconHover="this.mapIconHover"\n          :mapIconActive="this.mapIconActive"\n          :mapIconSize="this.mapIconSize"\n          :hotspotIconDefault="this.hotspotIconDefault"\n          :hotspotIconHover="this.hotspotIconHover"\n          :hotspotIconActive="this.hotspotIconActive"\n          :hotspotIconSize="this.hotspotIconSize"\n          :top="this.top"\n          :left="this.left"\n          :tooltip="this.tooltip"\n          :pictureAlt="this.pictureAlt"\n          :count="this.count"\n          :popup="this.popup"\n          :popupLink="this.popupLink"\n          :soloMode="this.soloMode"\n          :tealiumPageCategory="this.tealiumPageCategory"\n          :tealiumSubPageCategory="this.tealiumSubPageCategory"\n          :tealiumValue="this.tealiumValue"\n          :tealiumType="this.tealiumType"\n          :tealiumCategory="this.tealiumCategory"\n          :tealiumAction="this.tealiumAction"\n          :type = "this.type"\n          :shape = "this.shape"\n          :imageWidth = "this.imageWidth"\n          :mapId = "this.mapId"\n          :tooltipSize = "this.tooltipSize"\n          :tooltipColor = "this.tooltipColor"\n        />\n      '});document.getElementsByClassName("FarmerTable").length>0&&new o.default({el:".FarmerTable",components:{FarmerTable:Zi},template:"<FarmerTable />"}),document.getElementsByClassName("FarmerPtChart").length>0&&new o.default({el:".FarmerPtChart",components:{FarmerPtChart:Yi},template:"<FarmerPtChart />"}),document.getElementsByClassName("FarmerPtOverview").length>0&&new o.default({el:".FarmerPtOverview",components:{FarmerPtOverview:aa},template:"<FarmerPtOverview />"}),document.getElementsByClassName("FarmerPtFilter").length>0&&new o.default({el:".FarmerPtFilter",components:{FarmerPtFilter:ta},template:"<FarmerPtFilter />"}),document.getElementsByClassName("FarmerPtProject").length>0&&new o.default({el:".FarmerPtProject",components:{FarmerPtProject:ca},beforeMount:function(){this.id="",this.productName="",this.comparisonName="",this.season="",this.$el.attributes[Bc]&&(this.id=this.$el.attributes[Bc].value),this.$el.attributes[ec]&&(this.productName=this.$el.attributes[ec].value),this.$el.attributes[ic]&&(this.comparisonName=this.$el.attributes[ic].value),this.$el.attributes["data-season"]&&(this.season=this.$el.attributes["data-season"].value)},template:'\n        <FarmerPtProject\n          :id="this.id"\n          :productName="this.productName"\n          :comparisonName="this.comparisonName"\n          :season="this.season"\n        />\n      '}),document.getElementsByClassName("FarmerPtTrialsList").length>0&&new o.default({el:".FarmerPtTrialsList",components:{FarmerPtTrialsList:o
1a},template:"<FarmerPtTrialsList />"}),document.getElementsByClassName("FarmerPtTrial").length>0&&new o.default({el:".FarmerPtTrial",components:{FarmerPtTrial:pa},beforeMount:function(){this.id="",this.productName="",this.comparisonName="",this.$el.attributes[Bc]&&(this.id=this.$el.attributes[Bc].value),this.$el.attributes[ic]&&(this.comparisonName=this.$el.attributes[ic].value),this.$el.attributes[ec]&&(this.productName=this.$el.attributes[ec].value)},template:'\n        <FarmerPtTrial\n          :id="this.id"\n          :productName="this.productName"\n          :comparisonName="this.comparisonName"\n        />\n      '});for(var V=document.querySelectorAll(".GoogleMap"),A=0;A<V.length;A+=1)new o.default({el:".GoogleMap",components:{GoogleMap:ya},beforeMount:function(){this.latitude="",this.longitude="",this.zoom="",this.height="",this.googleKey="",this.markers="",this.markersObject=[],this.iconWidth="",this.iconHeight="",this.iconDefault="",this.iconHover="",this.iconActive="",this.iconCluster="",this.iconClusterWidth=53,this.iconClusterHeight=53,this.iconClusterTextColor="white",this.mapIconDefault="",this.mapIconHover="",this.mapIconActive="",this.tealiumPageCategory="",this.tealiumSubPageCategory="",this.tealiumValue="",this.tealiumType="",this.tealiumCategory="",this.tealiumAction="",this.optInBackgroundImage="",this.optInBackgroundImageWebp="",this.isOneTrustEnabled=!1,this.useOneTrust=!0,this.$el.attributes[Nl]&&(this.latitude=+this.$el.attributes[Nl].value),this.$el.attributes[jl]&&(this.longitude=+this.$el.attributes[jl].value),this.$el.attributes[Pc]&&(this.zoom=+this.$el.attributes[Pc].value),this.$el.attributes[Oc]&&(this.height=+this.$el.attributes[Oc].value),this.$el.attributes[zl]&&(this.googleKey=this.$el.attributes[zl].value),this.$el.attributes["data-markers"]&&(this.markers=this.$el.attributes["data-markers"].value),this.$el.attributes["data-markersObject"]&&(this.markersObject=this.$el.attributes["data-markersObject"].value),this.$el.attributes[kc]&&(this.iconWidth=+this.$el.attributes[kc].value),this.$el.attributes[Lc]&&(this.iconHeight=+this.$el.attributes[Lc].value),this.$el.attributes[Ic]&&(this.iconDefault=this.$el.attributes[Ic].value),this.$el.attributes[Ec]&&(this.iconHover=this.$el.attributes[Ec].value),this.$el.attributes[Vc]&&(this.iconActive=this.$el.attributes[Vc].value),this.$el.attributes[Ac]&&(this.iconCluster=this.$el.attributes[Ac].value),this.$el.attributes[Dc]&&(this.iconClusterWidth=+this.$el.attributes[Dc].value),this.$el.attributes[Mc]&&(this.iconClusterHeight=+this.$el.attributes[Mc].value),this.$el.attributes[Rc]&&(this.iconClusterTextColor=this.$el.attributes[Rc].value),this.$el.attributes[Gl]&&(this.mapIconDefault=this.$el.attributes[Gl].value),this.$el.attributes[Wl]&&(this.mapIconHover=this.$el.attributes[Wl].value),this.$el.attributes[Zl]&&(this.mapIconActive=this.$el.attributes[Zl].value),this.$el.attributes[Jl]&&(this.tealiumPageCategory=this.$el.attributes[Jl].value),this.$el.attributes[Kl]&&(this.tealiumSubPageCategory=this.$el.attributes[Kl].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes[Ql]&&(this.tealiumType=this.$el.attributes[Ql].value),this.$el.attributes[Xl]&&(this.tealiumCategory=this.$el.attributes[Xl].value),this.$el.attributes[tc]&&(this.tealiumAction=this.$el.attributes[tc].value),this.$el.attributes[$c]&&(this.optInBackgroundImage=this.$el.attributes[$c].value),this.$el.attributes[Nc]&&(this.optInBackgroundImageWebp=this.$el.attributes[Nc].value),this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value),this.$el.attributes[zc]&&(this.useOneTrust="true"===this.$el.attributes[zc].value)},template:'<GoogleMap\n        :latitude="this.latitude"\n        :longitude="this.longitude"\n        :zoom="this.zoom"\n        :height="this.height"\n        :googleKey="this.googleKey"\n        :markers="this.markers"\n        :markersObject="this.markersObject"\n        :iconWidth="this.iconWidth"\n        :iconHeight="this.iconHeight"\n        :iconDefault="this.iconDefault"\n        :iconHover="this.iconHover"\n        :iconActive="this.iconActive"\n        :iconCluster="this.iconCluster"\n        :iconClusterWidth="this.iconClusterWidth"\n        :iconClusterHeight="this.iconClusterHeight"\n        :iconClusterTextColor="this.iconClusterTextColor"\n        :mapIconDefault="this.mapIconDefault"\n        :mapIconHover="this.mapIconHover"\n        :mapIconActive="this.mapIconActive"\n        :tealiumPageCategory="this.tealiumPageCategory"\n        :tealiumSubPageCategory="this.tealiumSubPageCategory"\n        :tealiumValue="this.tealiumValue"\n        :tealiumType="this.tealiumType"\n        :tealiumCategory="this.tealiumCategory"\n        :tealiumAction="this.tealiumAction"\n        :optInBackgroun
1dImage="this.optInBackgroundImage"\n        :optInBackgroundImageWebp="this.optInBackgroundImageWebp"\n        :isOneTrustEnabled="this.isOneTrustEnabled"\n        :useOneTrust="this.useOneTrust"\n      />',store:Ml.a});document.getElementsByClassName("GoogleMapInner").length>0&&new o.default({el:".GoogleMapInner",components:{GoogleMapInner:va},template:"<GoogleMapInner />",store:Ml.a});for(var D={beforeMount:function(){this.title="",this.content="",this.linkUrl="",this.linkText="",this.icon="",this.iconPosition="",this.isDark=!1,this.id="",this.customColor="",this.tealiumValue="",this.tealiumType="",this.tealiumCategory="",this.tealiumAction="",this.showOnlyLink=!1,this.$el.attributes[Ul]&&(this.title=this.$el.attributes[Ul].value),this.$el.attributes[ac]&&(this.content=this.$el.attributes[ac].value),this.$el.attributes[oc]&&(this.linkUrl=this.$el.attributes[oc].value),this.$el.attributes[rc]&&(this.linkText=this.$el.attributes[rc].value),this.$el.attributes["data-icon"]&&(this.icon=this.$el.attributes["data-icon"].value),this.$el.attributes[lc]&&(this.iconPosition=this.$el.attributes[lc].value),this.$el.attributes[cc]&&(this.isDark="true"===this.$el.attributes[cc].value),this.$el.attributes[Bc]&&(this.id=this.$el.attributes[Bc].value),this.$el.attributes[uc]&&(this.customColor=this.$el.attributes[uc].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes[Ql]&&(this.tealiumType=this.$el.attributes[Ql].value),this.$el.attributes[Xl]&&(this.tealiumCategory=this.$el.attributes[Xl].value),this.$el.attributes[tc]&&(this.tealiumAction=this.$el.attributes[tc].value),this.$el.attributes["data-showOnlyLink"]&&(this.showOnlyLink="true"===this.$el.attributes["data-showOnlyLink"].value)}},M=document.querySelectorAll(".CtaBox"),R=0;R<M.length;R+=1)new o.default({el:".CtaBox",components:{CtaBox:Ke},mixins:[D],template:'\n        <CtaBox\n          :title="this.title"\n          :content="this.content"\n          :linkUrl="this.linkUrl"\n          :linkText="this.linkText"\n          :icon="this.icon"\n          :iconPosition="this.iconPosition"\n          :isDark="this.isDark"\n          :id="this.id"\n          :customColor="this.customColor"\n          :tealiumValue="this.tealiumValue"\n          :tealiumType="this.tealiumType"\n          :tealiumCategory="this.tealiumCategory"\n          :tealiumAction="this.tealiumAction"\n          :showOnlyLink="this.showOnlyLink"\n        />\n      '});for(var $=document.querySelectorAll(".CtaProductAdviceBox"),N=0;N<$.length;N+=1)new o.default({el:".CtaProductAdviceBox",components:{CtaProductAdviceBox:ei},mixins:[D],template:'\n        <CtaProductAdviceBox\n          :title="this.title"\n          :content="this.content"\n          :linkUrl="this.linkUrl"\n          :linkText="this.linkText"\n          :icon="this.icon"\n          :iconPosition="this.iconPosition"\n          :isDark="this.isDark"\n          :id="this.id"\n          :customColor="this.customColor"\n          :tealiumValue="this.tealiumValue"\n          :tealiumType="this.tealiumType"\n          :tealiumCategory="this.tealiumCategory"\n          :tealiumAction="this.tealiumAction"\n          :showOnlyLink="this.showOnlyLink"\n        />\n      ',store:Ml.a});document.getElementsByClassName("PersonalizationSticky").length>0&&new o.default({el:".PersonalizationSticky",components:{PersonalizationSticky:Qa},beforeMount:function(){this.newsletterUrl="",this.newsletterVisible=!1,this.whereToBuyUrl="",this.whereToBuyVisible=!1,this.whereToBuyTealiumValue="",this.whereToBuyTealiumType="",this.whereToBuyTealiumCategory="",this.whereToBuyTealiumAction="",this.preferenceVisible=!1,this.benefits="",this.myServicesPrivate="",this.myServicesPublic="",this.myServicesVisible=!1,this.$el.attributes["data-newsletterUrl"]&&(this.newsletterUrl=this.$el.attributes["data-newsletterUrl"].value),this.$el.attributes["data-newsletterVisible"]&&(this.newsletterVisible="true"===this.$el.attributes["data-newsletterVisible"].value),this.$el.attributes["data-whereToBuyUrl"]&&(this.whereToBuyUrl=this.$el.attributes["data-whereToBuyUrl"].value),this.$el.attributes["data-whereToBuyVisible"]&&(this.whereToBuyVisible="true"===this.$el.attributes["data-whereToBuyVisible"].value),this.$el.attributes["data-whereToBuyTealiumValue"]&&(this.whereToBuyTealiumValue=this.$el.attributes["data-whereToBuyTealiumValue"].value),this.$el.attributes["data-whereToBuyTealiumType"]&&(this.whereToBuyTealiumType=this.$el.attributes["data-whereToBuyTealiumType"].value),this.$el.attributes["data-whereToBuyTealiumCategory"]&&(this.whereToBuyTealiumCategory=this.$el.attributes["data-whereToBuyTealiumCategory"].value),this.$el.attributes["data-whereToBuyTealiumAction"]&&(this.whereToBuyTealiumAction=this.$el.attributes["data-whereToBuyTealiumAction"].value),this.$el.attributes["data-preferenceVisible"]&&(this.preferenceVisible="true"===this.$el.attributes["data-preferenceVisible"].value),this.$el.attributes[dc]&&(this.benefits=this.$el.attributes[dc].value),this.$el.attributes["data-myServicesPrivate"]&&(this.myServicesPrivate=this.$el.attributes["data-myServicesPrivate"].value),this.$el.attributes["data-myServicesPublic"]&&(this.myServicesPublic=this.$el.attributes["data-myServicesPublic"].value),this.$el.attributes["data-myServicesVisible"]&&(this.myServicesVisible="true"===this.$el.attributes["data-myServicesVisible"].value)},template:'<PersonalizationSticky\n        :newsletterUrl="this.newsletterUrl"\n        :newsletterVisible="this.newsletterVisible"\n        :whereToBuyUrl="this.whereToBuyUrl"\n        :whereToBuyVisible="this.whereToBuyVisible"\n        :whereToBuyTealiumValue="this.whereToBuyTealiumValue"\n        :whereToBuyTealiumType="this.whereToBuyTealiumType"\n        :whereToBuyTealiumCategory="this.whereToBuyTealiumCategory"\n        :whereToBuyTealiumAction="this.whereToBuyTealiumAction"\n        :preferenceVisible="this.preferenceVisible"\n        :benefits="this.benefits"\n        :myServicesPrivate="this.myServicesPrivate"\n        :myServicesPublic="this.myServicesPublic"\n        :myServicesVisible="this.myServicesVisible"\n      />',store:Ml.a});for(var j=document.querySelectorAll(".PreferenceBar"),z=0;z<j.length;z+=1)new o.default({el:".PreferenceBar",components:{PreferenceBar:Ba},beforeMount:function(){this.inStickyHeader=!1,this.benefits="",this.id="",this.maxResults=4,this.showZipcode=!0,this.showRegion1=!1,this.showRegion2=!1,this.isMini=!1,this.$el.attributes["data-inStickyHeader"]&&(this.inStickyHeader="true"===this.$el.attributes["data-inStickyHeader"].value),this.$el.attributes[dc]&&(this.benefits=this.$el.attributes[dc].value),this.$el.attributes[Bc]&&(this.id=this.$el.attributes[Bc].value),this.$el.attributes["data-maxResults"]&&(this.maxResults=+this.$el.attributes["data-maxResults"].value),this.$el.attributes["data-showZipcode"]&&(this.showZipcode="true"===this.$el.attributes["data-showZipcode"].value),this.$el.attributes["data-showRegion1"]&&(this.showRegion1="true"===this.$el.attributes["data-showRegion1"].value),this.$el.attributes["data-showRegion2"]&&(this.showRegion2="true"===this.$el.attributes["data-showRegion2"].value),this.$el.attributes["data-isMini"]&&(this.isMini="true"===this.$el.attributes["data-isMini"].value)},template:'\n        <PreferenceBar\n          :inStickyHeader="this.inStickyHeader"\n          :benefits="this.benefits"\n          :id="this.id"\n          :maxResults="this.maxResults"\n          :sh
1owZipcode="this.showZipcode"\n          :showRegion1="this.showRegion1"\n          :showRegion2="this.showRegion2"\n          :isMini="this.isMini"\n        />\n      ',store:Ml.a});for(var B=document.querySelectorAll(".CampaignHeader"),q=0;q<B.length;q+=1)new o.default({el:".CampaignHeader",components:{CampaignHeader:Vo},beforeMount:function(){this.text="",this.fontSize="",this.background="",this.opacity="1",this.useDefault=!1,this.matchingHeaderHeightGroup="",this.$el.attributes["data-text"]&&(this.text=this.$el.attributes["data-text"].value),this.$el.attributes[pc]&&(this.fontSize=this.$el.attributes[pc].value),this.$el.attributes[mc]&&(this.background=this.$el.attributes[mc].value),this.$el.attributes[hc]&&(this.opacity=this.$el.attributes[hc].value),this.$el.attributes["data-useDefault"]&&(this.useDefault="true"===this.$el.attributes["data-useDefault"].value),this.$el.attributes["data-matchingHeaderHeightGroup"]&&(this.matchingHeaderHeightGroup=this.$el.attributes["data-matchingHeaderHeightGroup"].value)},template:'\n        <CampaignHeader\n          :text="this.text"\n          :fontSize="this.fontSize"\n          :background="this.background"\n          :opacity="this.opacity"\n          :useDefault="this.useDefault"\n          :matchingHeaderHeightGroup="this.matchingHeaderHeightGroup"\n        />\n      '});for(var U=document.querySelectorAll(".CampaignContentBox"),H=0;H<U.length;H+=1)new o.default({el:".CampaignContentBox",components:{CampaignContentBox:Mo},beforeMount:function(){this.header="",this.subHeader="",this.content="",this.textColor="",this.image="",this.imagePosition="",this.background="",this.opacity=1,this.$el.attributes["data-header"]&&(this.header=this.$el.attributes["data-header"].value),this.$el.attributes["data-subHeader"]&&(this.subHeader=this.$el.attributes["data-subHeader"].value),this.$el.attributes[ac]&&(this.content=this.$el.attributes[ac].value),this.$el.attributes["data-textColor"]&&(this.textColor=this.$el.attributes["data-textColor"].value),this.$el.attributes[fc]&&(this.image=this.$el.attributes[fc].value),this.$el.attributes[gc]&&(this.imagePosition=this.$el.attributes[gc].value),this.$el.attributes[mc]&&(this.background=this.$el.attributes[mc].value),this.$el.attributes[hc]&&(this.opacity=+this.$el.attributes[hc].value)},template:'\n        <CampaignContentBox\n          :header="this.header"\n          :subHeader="this.subHeader"\n          :content="this.content"\n          :textColor="this.textColor"\n          :image="this.image"\n          :imagePosition="this.imagePosition"\n          :background="this.background"\n          :opacity="this.opacity"\n        />\n      '});for(var G=document.querySelectorAll(".CampaignQuote"),W=0;W<G.length;W+=1)new o.default({el:".CampaignQuote",components:{CampaignQuote:No},beforeMount:function(){this.content="",this.subContent="",this.image="",this.imageWidth=100,this.theme=!1,this.opacity="",this.fontSize=18,this.$el.attributes[ac]&&(this.content=this.$el.attributes[ac].value),this.$el.attributes["data-subContent"]&&(this.subContent=this.$el.attributes["data-subContent"].value),this.$el.attributes[fc]&&(this.image=this.$el.attributes[fc].value),this.$el.attributes["data-imageWidth"]&&(this.imageWidth=+this.$el.attributes["data-imageWidth"].value),this.$el.attributes["data-theme"]&&(this.theme="true"===this.$el.attributes["data-theme"].value),this.$el.attributes[hc]&&(this.opacity=this.$el.attributes[hc].value),this.$el.attributes[pc]&&(this.fontSize=+this.$el.attributes[pc].value)},template:'\n        <CampaignQuote\n          :content="this.content"\n          :subContent="this.subContent"\n          :image="this.image"\n          :imageWidth="this.imageWidth"\n          :theme="this.theme"\n          :opacity="this.opacity"\n          :fontSize="this.fontSize"\n        />\n      '});for(var Z=document.querySelectorAll(".CampaignSearch"),J=0;J<Z.length;J+=1)new o.default({el:".CampaignSearch",components:{CampaignSearch:Uo},template:"\n        <CampaignSearch/>\n      ",store:Ml.a,router:w.a});for(var Y=document.querySelectorAll(".CampaignCountdown"),Q=0;Q<Y.length;
1Q+=1)new o.default({el:".CampaignCountdown",components:{CampaignCountdown:Wo},beforeMount:function(){this.bgImageSrc="",this.bgImageSrcWebp="",this.endTime=0,this.customClass="",this.overlayOpacity=0,this.overlayInRoot=!1,this.$el.attributes["data-bgImageSrc"]&&(this.bgImageSrc=this.$el.attributes["data-bgImageSrc"].value),this.$el.attributes["data-bgImageSrcWebp"]&&(this.bgImageSrcWebp=this.$el.attributes["data-bgImageSrcWebp"].value),this.$el.attributes["data-endTime"]&&(this.endTime=+this.$el.attributes["data-endTime"].value),this.$el.attributes["data-customClass"]&&(this.customClass=this.$el.attributes["data-customClass"].value),this.$el.attributes["data-overlayOpacity"]&&(this.overlayOpacity=+this.$el.attributes["data-overlayOpacity"].value),this.$el.attributes["data-overlayInRoot"]&&(this.overlayInRoot="true"===this.$el.attributes["data-overlayInRoot"].value)},template:'\n        <CampaignCountdown\n          :bgImageSrc="this.bgImageSrc"\n          :bgImageSrcWebp="this.bgImageSrcWebp"\n          :endTime="this.endTime"\n          :customClass="this.customClass"\n          :overlayOpacity="this.overlayOpacity"\n          :overlayInRoot="this.overlayInRoot">\n          '.concat(Y[Q].innerHTML,"\n        </CampaignCountdown>\n      ")});for(var X=document.querySelectorAll(".CheckList"),tt=0;tt<X.length;tt+=1)new o.default({el:".CheckList",components:{CheckList:Ra},beforeMount:function(){this.list="",this.title="",this.useBrandColor=!0,this.isBenefit=!1,this.$el.attributes[Ul]&&(this.title=this.$el.attributes[Ul].value),this.$el.attributes["data-list"]&&(this.list=this.$el.attributes["data-list"].value),this.$el.attributes["data-useBrandColor"]&&(this.useBrandColor="true"===this.$el.attributes["data-useBrandColor"].value),this.$el.attributes["data-isBenefit"]&&(this.isBenefit="true"===this.$el.attributes["data-isBenefit"].value)},template:'\n        <CheckList\n          :title="this.title"\n          :list="this.list"\n          :useBrandColor="this.useBrandColor"\n          :isBenefit="this.isBenefit"\n        />\n      '});for(var it=document.querySelectorAll(".CtaButton"),at=0;at<it.length;at+=1)new o.default({el:".CtaButton",components:{CtaButton:Zn},beforeMount:function(){this.flag="",this.actionLink="",this.subline="",this.isBasic=!1,this.isDependentOnLogin=!1,this.align="",this.tealiumValue="",this.tealiumType="",this.tealiumCategory="",this.tealiumAction="",this.reverseOrder=!1,this.tealiumLoginValue="",this.tealiumRegisterValue="",this.loginHeadline="",this.registerHeadline="",this.$el.attributes["data-flag"]&&(this.flag=this.$el.attributes["data-flag"].value),this.$el.attributes[sc]&&(this.actionLink=this.$el.attributes[sc].value),this.$el.attributes[bc]&&(this.subline=this.$el.attributes[bc].value),this.$el.attributes[wc]&&(this.isBasic="true"===this.$el.attributes[wc].value),this.$el.attributes["data-isDependentOnLogin"]&&(this.isDependentOnLogin="true"===this.$el.attributes["data-isDependentOnLogin"].value),this.$el.attributes[yc]&&(this.align=this.$el.attributes[yc].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes[Ql]&&(this.tealiumType=this.$el.attributes[Ql].value),this.$el.attributes[Xl]&&(this.tealiumCategory=this.$el.attributes[Xl].value),this.$el.attributes[tc]&&(this.tealiumAction=this.$el.attributes[tc].value),this.$el.attributes["data-reverseOrder"]&&(this.reverseOrder="true"===this.$el.attributes["data-reverseOrder"].value),this.$el.attributes["data-tealiumLoginValue"]&&(this.tealiumLoginValue=this.$el.attributes["data-tealiumLoginValue"].value),this.$el.attributes["data-tealiumRegisterValue"]&&(this.tealiumRegisterValue=this.$el.attributes["data-tealiumRegisterValue"].value),this.$el.attributes["data-tealiumRegisterValue"]&&(this.tealiumRegisterValue=this.$el.attributes["data-tealiumRegisterValue"].value),this.$el.attributes["data-loginHeadline"]&&(this.loginHeadline=this.$el.attributes["data-loginHeadline"].value),this.$el.attributes["data-registerHeadline"]&&(this.registerHeadline=this.$el.attributes["data-registerHeadline"].value)},template:'\n        <CtaButton\n          :flag="this.flag"\n          :actionLink="this.actionLink"\n          :subline="this.subline"\n          :isBasic="this.isBasic"\n          :isDependentOnLogin="this.isDependentOnLogin"\n          :align="this.align"\n          :tealiumValue="this.tealiumValue"\n          :tealiumType="this.tealiumType"\n          :tealiumCategory="this.tealiumCategory"\n          :tealiumAction="this.tealiumAction"\n          :reverseOrder="this.reverseOrder"\n          :tealiumLoginValue="this.tealiumLoginValue"\n          :tealiumRegisterValue="this.tealiumRegisterValue"\n          :loginHeadline="this.loginHeadline"\n          :registerHeadline="this.registerHeadline"\n          /> ',store:Ml.a});for(var st=document.querySelectorAll(".ProgressBar"),ot=0;ot<st.length;ot+=1)new o.default({el:".ProgressBar",components:{ProgressBar:Xn},beforeMount:function(){this.value=0,this.max=100,this.precision=1,this.showProgress=!0,this.striped=!1,this.animated=!1,this.isSs
1p=!1,this.subline="",this.cucumber="",this.$el.attributes["data-value"]&&(this.value=+this.$el.attributes["data-value"].value),this.$el.attributes["data-max"]&&(this.max=+this.$el.attributes["data-max"].value),this.$el.attributes["data-precision"]&&(this.precision=+this.$el.attributes["data-precision"].value),this.$el.attributes["data-showProgress"]&&(this.showProgress="true"===this.$el.attributes["data-showProgress"].value),this.$el.attributes["data-striped"]&&(this.striped="true"===this.$el.attributes["data-striped"].value),this.$el.attributes["data-animated"]&&(this.animated="true"===this.$el.attributes["data-animated"].value),this.$el.attributes["data-isSsp"]&&(this.isSsp="true"===this.$el.attributes["data-isSsp"].value),this.$el.attributes[bc]&&(this.subline=this.$el.attributes[bc].value),this.$el.attributes[qc]&&(this.cucumber=this.$el.attributes[qc].value)},template:'\n        <ProgressBar\n          :value="this.value"\n          :max="this.max"\n          :precision="this.precision"\n          :showProgress="this.showProgress"\n          :striped="this.striped"\n          :animated="this.animated"\n          :isSsp="this.isSsp"\n          :subline="this.subline"\n          :cucumber="this.cucumber"\n        />\n      ',store:Ml.a});for(var rt=document.querySelectorAll(".CountdownButton"),lt=0;lt<rt.length;lt+=1)new o.default({el:".CountdownButton",components:{CountdownButton:to.a},beforeMount:function(){this.url="",this.label="",this.align="",this.isBasic=!1,this.time=0,this.$el.attributes["data-url"]&&(this.url=this.$el.attributes["data-url"].value),this.$el.attributes[xc]&&(this.label=this.$el.attributes[xc].value),this.$el.attributes[yc]&&(this.align=this.$el.attributes[yc].value),this.$el.attributes[wc]&&(this.isBasic="true"===this.$el.attributes[wc].value),this.$el.attributes["data-time"]&&(this.time=+this.$el.attributes["data-time"].value)},template:'\n        <CountdownButton\n          :url="this.url"\n          :label="this.label"\n          :align="this.align"\n          :isBasic="this.isBasic"\n          :time="this.time"\n        />\n      ',store:Ml.a});for(var ct=document.querySelectorAll(".RegisterServiceLink"),ut=0;ut<ct.length;ut+=1)new o.default({el:".RegisterServiceLink",components:{RegisterServiceLink:ho},beforeMount:function(){this.cssClass=null,this.target=null,this.tealiumValue=null,this.formId="",this.loggedInUrl="",this.registerUrl="",this.$el.attributes["data-cssClass"]&&(this.cssClass=this.$el.attributes["data-cssClass"].value),this.$el.attributes["data-target"]&&(this.target=this.$el.attributes["data-target"].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes["data-formId"]&&(this.formId=this.$el.attributes["data-formId"].value),this.$el.attributes["data-loggedInUrl"]&&(this.loggedInUrl=this.$el.attributes["data-loggedInUrl"].value),this.$el.attributes["data-registerUrl"]&&(this.registerUrl=this.$el.attributes["data-registerUrl"].value)},template:'\n        <RegisterServiceLink\n          :cssClass="this.cssClass"\n          :target="this.target"\n          :tealiumValue="this.tealiumValue"\n          :formId="this.formId"\n          :loggedInUrl="this.loggedInUrl"\n          :registerUrl="this.registerUrl"\n        >'.concat(ct[ut].innerHTML,"</RegisterServiceLink>\n      "),store:Ml.a});for(var dt=document.querySelectorAll(".LinkButton"),pt=0;pt<dt.length;pt+=1)new o.default({el:".LinkButton",components:{LinkButton:Wa},beforeMount:function(){this.useLogState=!1,this.url="",this.urlLoggedIn="",this.urlLoggedOut="",this.target="",this.alt="",this.buttonClass="",this.iconClass="",this.labelClass="",this.label="",this.tealiumValue="",this.tealiumType="",this.tealiumCategory="",this.tealiumAction="",this.$el.attributes["data-useLogState"]&&(this.useLogState="true"===this.$el.attributes["data-useLogState"].value),this.$el.attributes["data-url"]&&(this.url=this.$el.attributes["data-url"].value),this.$el.attributes["data-urlLoggedIn"]&&(this.urlLoggedIn=this.$el.attributes["data-urlLoggedIn"].value),this.$el.attributes["data-urlLoggedOut"]&&(this.urlLoggedOut=this.$el.attributes["data-urlLoggedOut"].value),this.$el.attributes["data-target"]&&(this.target=this.$el.attributes["data-target"].value),this.$el.attributes["data-alt"]&&(this.alt=this.$el.attributes["data-alt"].value),this.$el.attributes["data-buttonClass"]&&(this.buttonClass=this.$el.attributes["data-buttonClass"].value),this.$el.attributes["data-iconClass"]&&(this.iconClass=this.$el.attributes["data-iconClass"].value),this.$el.attributes["data-labelClass"]&&(this.labelClass=this.$el.attributes["data-labelClass"].value),this.$el.attributes[xc]&&(this.label=this.$el.attributes[xc].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes[Ql]&&(this.tealiumType=this.$el.attributes[Ql].value),this.$el.attributes[Xl]&&(this.tealiumCategory=this.$el.attributes[Xl].value),this.$el.attributes[tc]&&(this.tealiumAction=this.$el.attributes[tc].value)},template:'\n        <LinkButton\n          :useLogState="this.useLogState"\n          :url="this.url"\n          :urlLoggedIn="this.urlLoggedIn"\n          :urlLoggedOut="this.urlLoggedOut"\n          :target="this.target"\n          :alt="this.alt"\n          :buttonClass="this.buttonClass"\n          :iconClass="this.iconClass"\n          :labelClass="this.labelClass"\n          :label="this.label"\n          :tealiumValue="this.tealiumValue"\n          :tealiumType="this.tealiumType"\n          :tealiumCategory="this.tealiumCategory"\n          :tealiumAction="this.tealiumAction"\n        />\n      ',store:Ml.a});for(var ht=document.querySelectorAll(".LogInOutButton"),ft=0;ft<ht.length;ft+=1)new o.default({el:".LogInOutButton",components:{LogInOutButton:no},template:"\n        <LogInOutButton />\n      ",store:Ml.a});
1for(var vt=document.querySelectorAll(".Loader"),bt=0;bt<vt.length;bt+=1)new o.default({el:".Loader",components:{Loader:Qt.a},beforeMount:function(){this.size=50,this.width=40,this.isVisible=!1,this.isFullScreen=!1,this.dependentOn="",this.$el.attributes[Fc]&&(this.size=+this.$el.attributes[Fc].value),this.$el.attributes["data-width"]&&(this.width=+this.$el.attributes["data-width"].value),this.$el.attributes["data-isVisible"]&&(this.isVisible="true"===this.$el.attributes["data-isVisible"].value),this.$el.attributes["data-isFullScreen"]&&(this.isFullScreen="true"===this.$el.attributes["data-isFullScreen"].value),this.$el.attributes["data-dependentOn"]&&(this.dependentOn=this.$el.attributes["data-dependentOn"].value)},template:'\n        <Loader\n          :size="this.size"\n          :width="this.width"\n          :isVisible="this.isVisible"\n          :isFullScreen="this.isFullScreen"\n          :dependentOn="this.dependentOn"\n        />\n      ',store:Ml.a});for(var yt=document.querySelectorAll(".ContactFilter"),Ct=0;Ct<yt.length;Ct+=1)new o.default({el:".ContactFilter",components:{ContactFilter:es},beforeMount:function(){this.showMap=!1,this.showList=!1,this.showProductSearch=!0,this.showCountrySearch=!1,this.showContactTypeSearch=!1,this.showRegionSearch=!1,this.countryList=[],this.contactTypes=[],this.view="",this.latitude="",this.longitude="",this.zoom="",this.height="",this.googleKey="",this.iconWidth="",this.iconHeight="",this.iconDefault="",this.iconHover="",this.iconActive="",this.contactTypesList="",this.optInBackgroundImage="",this.optInBackgroundImageWebp="",this.useOneTrust=!0,this.isOneTrustEnabled=!1,this.$el.attributes["data-showMap"]&&(this.showMap="true"===this.$el.attributes["data-showMap"].value),this.$el.attributes["data-showList"]&&(this.showList="true"===this.$el.attributes["data-showList"].value),this.$el.attributes["data-showProductSearch"]&&(this.showProductSearch="true"===this.$el.attributes["data-showProductSearch"].value),this.$el.attributes["data-showCountrySearch"]&&(this.showCountrySearch="true"===this.$el.attributes["data-showCountrySearch"].value),this.$el.attributes["data-showContactTypeSearch"]&&(this.showContactTypeSearch="true"===this.$el.attributes["data-showContactTypeSearch"].value),this.$el.attributes["data-showRegionSearch"]&&(this.showRegionSearch="true"===this.$el.attributes["data-showRegionSearch"].value),this.$el.attributes["data-countryList"]&&(this.countryList=this.$el.attributes["data-countryList"].value,this.countryList=JSON.parse(this.countryList)),this.$el.attributes["data-view"]&&(this.view=this.$el.attributes["data-view"].value),this.$el.attributes[Nl]&&(this.latitude=+this.$el.attributes[Nl].value),this.$el.attributes[jl]&&(this.longitude=+this.$el.attributes[jl].value),this.$el.attributes[Pc]&&(this.zoom=+this.$el.attributes[Pc].value),this.$el.attributes[Oc]&&(this.height=+this.$el.attributes[Oc].value),this.$el.attributes[zl]&&(this.googleKey=this.$el.attributes[zl].value),this.$el.attributes[kc]&&(this.iconWidth=+this.$el.attributes[kc].value),this.$el.attributes[Lc]&&(this.iconHeight=+this.$el.attributes[Lc].value),this.$el.attributes[Ic]&&(this.iconDefault=this.$el.attributes[Ic].value),this.$el.attributes[Ec]&&(this.iconHover=this.$el.attributes[Ec].value),this.$el.attributes[Vc]&&(this.iconActive=this.$el.attributes[Vc].value),this.$el.attributes["data-contactTypesList"]&&(this.contactTypesList=this.$el.attributes["data-contactTypesList"].value),this.$el.attributes["data-contactTypes"]&&(this.contactTypes=this.$el.attributes["data-contactTypes"].value,this.contactTypes=JSON.parse(this.contactTypes)),this.$el.attributes[$c]&&(this.optInBackgroundImage=this.$el.attributes[$c].value),this.$el.attributes[Nc]&&(this.optInBackgroundImageWebp=this.$el.attributes[Nc].value),this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value),this.$el.attributes[zc]&&(this.useOneTrust="true"===this.$el.attributes[zc].value)},template:'<ContactFilter\n        :showMap="this.showMap"\n        :showList="this.showList"\n        :showProductSearch="this.showProductSearch"\n        :sh
1owCountrySearch="this.showCountrySearch"\n        :showContactTypeSearch="this.showContactTypeSearch"\n        :showRegionSearch="this.showRegionSearch"\n        :countryList="this.countryList"\n        :view="this.view"\n        :latitude="this.latitude"\n        :longitude="this.longitude"\n        :zoom="this.zoom"\n        :height="this.height"\n        :googleKey="this.googleKey"\n        :iconWidth="this.iconWidth"\n        :iconHeight="this.iconHeight"\n        :iconDefault="this.iconDefault"\n        :iconHover="this.iconHover"\n        :iconActive="this.iconActive"\n        :contactTypesList="this.contactTypesList"\n        :contactTypes="this.contactTypes"\n        :optInBackgroundImage="this.optInBackgroundImage"\n        :optInBackgroundImageWebp="this.optInBackgroundImageWebp"\n        :isOneTrustEnabled="this.isOneTrustEnabled"\n        :useOneTrust="this.useOneTrust"\n      />',store:Ml.a,router:w.a});for(var _t=document.querySelectorAll(".GdprOverlay"),St=0;St<_t.length;St+=1)new o.default({el:".GdprOverlay",components:{GdprOverlay:ze},beforeMount:function(){if(this.optinButton="",this.optinMessage="",this.optinMessageAccepted="",this.type="",this.optInBackgroundImage="",this.optInBackgroundImageWebp="",this.useOneTrust=!0,this.isOneTrustEnabled=!1,this.codes=[],this.hideMessageAccepted=!1,this.$el.attributes["data-optinButton"]&&(this.optinButton=this.$el.attributes["data-optinButton"].value),this.$el.attributes["data-optinMessage"]&&(this.optinMessage=this.$el.attributes["data-optinMessage"].value),this.$el.attributes["data-optinMessageAccepted"]&&(this.optinMessageAccepted=this.$el.attributes["data-optinMessageAccepted"].value),this.$el.attributes[Tc]&&(this.type=this.$el.attributes[Tc].value),this.$el.attributes[$c]&&(this.optInBackgroundImage=this.$el.attributes[$c].value),this.$el.attributes[Nc]&&(this.optInBackgroundImageWebp=this.$el.attributes[Nc].value),this.$el.attributes[zc]&&(this.useOneTrust="true"===this.$el.attributes[zc].value),this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value),this.$el.attributes["data-codes"]){var t=this.$el.attributes["data-codes"].value;this.codes=t.split(",")}this.$el.attributes["data-hideMessageAccepted"]&&(this.hideMessageAccepted="true"===this.$el.attributes["data-hideMessageAccepted"].value)},template:'\n        <GdprOverlay\n        :optinButton="this.optinButton"\n        :optinMessage="this.optinMessage"\n        :optinMessageAccepted="this.optinMessageAccepted"\n        :type="this.type"\n        :optinBackgroundImage="this.optInBackgroundImage"\n        :optinBackgroundImageWebp="this.optInBackgroundImageWebp"\n        :useOneTrust="this.useOneTrust"\n        :isOneTrustEnabled="this.isOneTrustEnabled"\n        :codes = "this.codes"\n        :hideMessageAccepted="this.hideMessageAccepted"\n        >'.concat(_t[St].innerHTML,"</GdprOverlay>\n      "),store:Ml.a});for(var Tt=document.querySelectorAll(".GdprCheckbox"),Pt=0;Pt<Tt.length;Pt+=1)new o.default({el:".GdprCheckbox",components:{GdprCheckbox:vo},beforeMount:function(){this.type="",this.code="",this.codeId="",this.isOneTrustEnabled=!1,this.$el.attributes[Tc]&&(this.type=this.$el.attributes[Tc].value),this.$el.attributes["data-code"]&&(this.code=this.$el.attributes["data-code"].value),this.$el.attributes["data-codeId"]&&(this.codeId=this.$el.attributes["data-codeId"].value),this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value)},template:'\n        <GdprCheckbox\n        :type="this.type"\n        :code="this.code"\n        :codeId="this.codeId"\n        :isOneTrustEnabled="this.isOneTrustEnabled"\n        >'.concat(Tt[Pt].innerHTML,"</GdprCheckbox>\n      "),store:Ml.a});for(var Ft=document.querySelectorAll(".AlertBanner"),xt=0;xt<Ft.length;xt+=1)new o.default({el:".AlertBanner",components:{AlertBanner:xo},beforeMount:function(){this.customClass="",this.showAfterMinutes=2880,this.$el.attributes["data-customClass"]&&(this.customClass=this.$el.attributes["data-customClass"].value),this.$el.attributes["data-showAfterMinutes"]&&(this.showAfterMinutes=+this.$el.attributes["data-showAfterMinutes"].value)},template:'\n        <AlertBanner\n        :customClass="this.customClass"\n        :sh
1owAfterMinutes="this.showAfterMinutes"\n        >'.concat(Ft[xt].innerHTML,"</AlertBanner>\n      "),store:Ml.a});for(var Ot=document.querySelectorAll(".GdprSettingsLink"),Lt=0;Lt<Ot.length;Lt+=1)new o.default({el:".GdprSettingsLink",components:{GdprSettingsLink:Lo},beforeMount:function(){this.isOneTrustEnabled=!1,this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value)},template:'\n        <GdprSettingsLink\n        :isOneTrustEnabled="this.isOneTrustEnabled"\n        >'.concat(Ot[Lt].innerHTML,"</GdprSettingsLink>\n      "),store:Ml.a});for(var It=document.querySelectorAll(".FarmerProfileSearch"),Et=0;Et<It.length;Et+=1)new o.default({el:".FarmerProfileSearch",components:{FarmerProfileSearch:os},beforeMount:function(){this.metaregions="",this.$el.attributes["data-metaregions"]&&(this.metaregions=this.$el.attributes["data-metaregions"].value)},template:'\n        <FarmerProfileSearch\n         :metaregions="this.metaregions"\n        />\n      ',store:Ml.a});for(var Vt=document.querySelectorAll(".MessageBoard"),At=0;At<Vt.length;At+=1)new o.default({el:".MessageBoard",components:{MessageBoard:lr},beforeMount:function(){this.messageBoardIdentifier="",this.dateFormat="",this.headline="",this.questionFormIdentifier="",this.answerFormIdentifier="",this.$el.attributes["data-messageBoardIdentifier"]&&(this.messageBoardIdentifier=this.$el.attributes["data-messageBoardIdentifier"].value),this.$el.attributes[Cc]&&(this.dateFormat=this.$el.attributes[Cc].value),this.$el.attributes[vc]&&(this.headline=this.$el.attributes[vc].value),this.$el.attributes["data-questionFormIdentifier"]&&(this.questionFormIdentifier=this.$el.attributes["data-questionFormIdentifier"].value),this.$el.attributes["data-answerFormIdentifier"]&&(this.answerFormIdentifier=this.$el.attributes["data-answerFormIdentifier"].value)},template:'\n        <MessageBoard\n          :messageBoardIdentifier="this.messageBoardIdentifier"\n          :dateFormat="this.dateFormat"\n          :headline="this.headline"\n          :questionFormIdentifier="this.questionFormIdentifier"\n          :answerFormIdentifier="this.answerFormIdentifier"\n        />\n      ',store:Ml.a});for(var Dt=document.querySelectorAll(".Podcast"),Mt=0;Mt<Dt.length;Mt+=1)new o.default({el:".Podcast",components:{Podcast:So},beforeMount:function(){this.mediaUrl="",this.mini=!1,this.$el.attributes["data-mediaUrl"]&&(this.mediaUrl=this.$el.attributes["data-mediaUrl"].value),this.$el.attributes["data-mini"]&&(this.mini="true"===this.$el.attributes["data-mini"].value)},template:'\n        <Podcast\n          :mediaUrl="this.mediaUrl"\n          :mini="this.mini"\n        />\n      ',store:Ml.a});for(var Rt=document.querySelectorAll(".UrlErrorParameter"),Nt=0;Nt<Rt.length;Nt+=1)new o.default({el:".UrlErrorParameter",components:{UrlErrorParameter:yo},beforeMount:function(){},template:"\n        <UrlErrorParameter />\n      ",router:w.a,store:Ml.a});for(var jt=document.querySelectorAll(".VFLogInOutButton"),zt=0;zt<jt.length;zt+=1)new o.default({el:".VFLogInOutButton",components:{VFLogInOutButton:Ps},template:"\n        <VFLogInOutButton />\n      ",store:Ml.a});for(var Bt=document.querySelectorAll(".Compare2Images"),qt=0;qt<Bt.length;qt+=1)new o.default({el:".Compare2Images",components:{Compare2Images:Os},template:"\n        <Compare2Images>\n          ".concat(Bt[qt].innerHTML,"\n        </Compare2Images>\n      "),store:Ml.a});for(var Ht=document.querySelectorAll(".VFMiniplotGrowthSelect"),Gt=0;Gt<Ht.length;Gt+=1)new o.default({el:".VFMiniplotGrowthSelect",components:{VFMiniplotGrowthSelect:nn},template:"\n        <VFMiniplotGrowthSelect/>\n      ",store:Ml.a});for(var Zt=document.querySelectorAll(".VFMiniplotCompareFilter"),Jt=0;Jt<Zt.length;Jt+=1)new o.default({el:".VFMiniplotCompareFilter",components:{VFMiniplotCompareFilter:ln},beforeMount:function(){this.targets=[],this.$el.attributes["data-targets"]&&(this.targets=JSON.parse(this.$el.attributes["data-targets"].value))},template:'\n        <VFMiniplotCompareFilter\n          :targets="this.targets"/>\n      ',store:Ml.a});for(var Yt=document.querySelectorAll(".VirtualFarmGoogleMap"),Xt=0;Xt<Yt.length;Xt+=1)new o.default({el:".VirtualFarmGoogleMap",components:{VirtualFarmGoogleMap:ys},beforeMount:function(){this.latitude="",this.longitude="",this.zoom="",this.height="",this.googleKey="",this.markers="",this.markersObject=[],this.iconWidth="",this.iconHeight="",this.iconDefault="",this.iconHover="",this.iconActive="",this.iconCluster="",this.iconClusterWidth=53,this.iconClusterHeight=53,this.iconClusterTextColor="white",this.mapIconDefault="",this.mapIconHover="",this.mapIconActive="",this.tealiumPageCategory="",this.tealiumSubPageCategory="",this.tealiumValue="",this.tealiumType="",this.tealiumCategory="",this.tealiumAction="",this.optInBackgroun
1dImage="",this.optInBackgroundImageWebp="",this.isOneTrustEnabled=!1,this.useOneTrust=!0,this.trialUrlsParam="",this.imagesSrcParam="",this.country="",this.cropUId="",this.language="",this.showSearchbox=!0,this.searchboxDescription="",this.$el.attributes[Nl]&&(this.latitude=+this.$el.attributes[Nl].value),this.$el.attributes[jl]&&(this.longitude=+this.$el.attributes[jl].value),this.$el.attributes[Pc]&&(this.zoom=+this.$el.attributes[Pc].value),this.$el.attributes[Oc]&&(this.height=+this.$el.attributes[Oc].value),this.$el.attributes[zl]&&(this.googleKey=this.$el.attributes[zl].value),this.$el.attributes["data-markers"]&&(this.markers=this.$el.attributes["data-markers"].value),this.$el.attributes["data-markersObject"]&&(this.markersObject=this.$el.attributes["data-markersObject"].value),this.$el.attributes[kc]&&(this.iconWidth=+this.$el.attributes[kc].value),this.$el.attributes[Lc]&&(this.iconHeight=+this.$el.attributes[Lc].value),this.$el.attributes[Ic]&&(this.iconDefault=this.$el.attributes[Ic].value),this.$el.attributes[Ec]&&(this.iconHover=this.$el.attributes[Ec].value),this.$el.attributes[Vc]&&(this.iconActive=this.$el.attributes[Vc].value),this.$el.attributes[Ac]&&(this.iconCluster=this.$el.attributes[Ac].value),this.$el.attributes[Dc]&&(this.iconClusterWidth=+this.$el.attributes[Dc].value),this.$el.attributes[Mc]&&(this.iconClusterHeight=+this.$el.attributes[Mc].value),this.$el.attributes[Rc]&&(this.iconClusterTextColor=this.$el.attributes[Rc].value),this.$el.attributes[Gl]&&(this.mapIconDefault=this.$el.attributes[Gl].value),this.$el.attributes[Wl]&&(this.mapIconHover=this.$el.attributes[Wl].value),this.$el.attributes[Zl]&&(this.mapIconActive=this.$el.attributes[Zl].value),this.$el.attributes[Jl]&&(this.tealiumPageCategory=this.$el.attributes[Jl].value),this.$el.attributes[Kl]&&(this.tealiumSubPageCategory=this.$el.attributes[Kl].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes[Ql]&&(this.tealiumType=this.$el.attributes[Ql].value),this.$el.attributes[Xl]&&(this.tealiumCategory=this.$el.attributes[Xl].value),this.$el.attributes[tc]&&(this.tealiumAction=this.$el.attributes[tc].value),this.$el.attributes[$c]&&(this.optInBackgroundImage=this.$el.attributes[$c].value),this.$el.attributes[Nc]&&(this.optInBackgroundImageWebp=this.$el.attributes[Nc].value),this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value),this.$el.attributes[zc]&&(this.useOneTrust="true"===this.$el.attributes[zc].value),this.$el.attributes["data-trialUrls"]&&(this.trialUrlsParam=this.$el.attributes["data-trialUrls"].value),this.$el.attributes["data-imagesSrc"]&&(this.imagesSrcParam=this.$el.attributes["data-imagesSrc"].value),this.$el.attributes["data-country"]&&(this.country=this.$el.attributes["data-country"].value),this.$el.attributes["data-cropUId"]&&(this.cropUId=this.$el.attributes["data-cropUId"].value),this.$el.attributes["data-language"]&&(this.language=this.$el.attributes["data-language"].value),this.$el.attributes["data-showSearchbox"]&&(this.showSearchbox="true"===this.$el.attributes["data-showSearchbox"].value),this.$el.attributes["data-searchboxDescription"]&&(this.searchboxDescription=this.$el.attributes["data-searchboxDescription"].value)},template:'<VirtualFarmGoogleMap\n        :latitude="this.latitude"\n        :longitude="this.longitude"\n        :zoom="this.zoom"\n        :height="this.height"\n        :googleKey="this.googleKey"\n        :markers="this.markers"\n        :markersObject="this.markersObject"\n        :iconWidth="this.iconWidth"\n        :iconHeight="this.iconHeight"\n        :iconDefault="this.iconDefault"\n        :iconHover="this.iconHover"\n        :iconActive="this.iconActive"\n        :iconCluster="this.iconCluster"\n        :iconClusterWidth="this.iconClusterWidth"\n        :iconClusterHeight="this.iconClusterHeight"\n        :iconClusterTextColor="this.iconClusterTextColor"\n        :mapIconDefault="this.mapIconDefault"\n        :mapIconHover="this.mapIconHover"\n        :mapIconActive="this.mapIconActive"\n        :tealiumPageCategory="this.tealiumPageCategory"\n        :tealiumSubPageCategory="this.tealiumSubPageCategory"\n        :tealiumValue="this.tealiumValue"\n        :tealiumType="this.tealiumType"\n        :tealiumCategory="this.tealiumCategory"\n        :tealiumAction="this.tealiumAction"\n        :optInBackgroun
1dImage="this.optInBackgroundImage"\n        :optInBackgroundImageWebp="this.optInBackgroundImageWebp"\n        :isOneTrustEnabled="this.isOneTrustEnabled"\n        :useOneTrust="this.useOneTrust"\n        :trialUrlsParam="this.trialUrlsParam"\n        :imagesSrcParam="this.imagesSrcParam"\n        :country="this.country"\n        :cropUId="this.cropUId"\n        :language="this.language"\n        :showSearchbox="this.showSearchbox"\n        :searchboxDescription="this.searchboxDescription"\n      />',store:Ml.a});for(var te=document.querySelectorAll(".ProductMap"),ee=0;ee<te.length;ee+=1)new o.default({el:".ProductMap",components:{ProductMap:Ln},beforeMount:function(){this.latitude="",this.longitude="",this.zoom="",this.height="",this.googleKey="",this.markers="",this.markersObject=[],this.iconWidth="",this.iconHeight="",this.iconDefault="",this.iconHover="",this.iconActive="",this.iconCluster="",this.iconClusterWidth=53,this.iconClusterHeight=53,this.iconClusterTextColor="white",this.mapIconDefault="",this.mapIconHover="",this.mapIconActive="",this.tealiumPageCategory="",this.tealiumSubPageCategory="",this.tealiumValue="",this.tealiumType="",this.tealiumCategory="",this.tealiumAction="",this.optInBackgroundImage="",this.optInBackgroundImageWebp="",this.isOneTrustEnabled=!1,this.useOneTrust=!0,this.showSearchbox=!0,this.searchboxDescription="",this.iconOrange="",this.iconLightGreen="",this.entriesParam="",this.regionsParam="",this.pestsParam="",this.cropsParam="",this.bottomText="",this.$el.attributes[Nl]&&(this.latitude=+this.$el.attributes[Nl].value),this.$el.attributes[jl]&&(this.longitude=+this.$el.attributes[jl].value),this.$el.attributes[Pc]&&(this.zoom=+this.$el.attributes[Pc].value),this.$el.attributes[Oc]&&(this.height=+this.$el.attributes[Oc].value),this.$el.attributes[zl]&&(this.googleKey=this.$el.attributes[zl].value),this.$el.attributes["data-markers"]&&(this.markers=this.$el.attributes["data-markers"].value),this.$el.attributes["data-markersObject"]&&(this.markersObject=this.$el.attributes["data-markersObject"].value),this.$el.attributes[kc]&&(this.iconWidth=+this.$el.attributes[kc].value),this.$el.attributes[Lc]&&(this.iconHeight=+this.$el.attributes[Lc].value),this.$el.attributes[Ic]&&(this.iconDefault=this.$el.attributes[Ic].value),this.$el.attributes[Ec]&&(this.iconHover=this.$el.attributes[Ec].value),this.$el.attributes[Vc]&&(this.iconActive=this.$el.attributes[Vc].value),this.$el.attributes[Ac]&&(this.iconCluster=this.$el.attributes[Ac].value),this.$el.attributes[Dc]&&(this.iconClusterWidth=+this.$el.attributes[Dc].value),this.$el.attributes[Mc]&&(this.iconClusterHeight=+this.$el.attributes[Mc].value),this.$el.attributes[Rc]&&(this.iconClusterTextColor=this.$el.attributes[Rc].value),this.$el.attributes[Gl]&&(this.mapIconDefault=this.$el.attributes[Gl].value),this.$el.attributes[Wl]&&(this.mapIconHover=this.$el.attributes[Wl].value),this.$el.attributes[Zl]&&(this.mapIconActive=this.$el.attributes[Zl].value),this.$el.attributes[Jl]&&(this.tealiumPageCategory=this.$el.attributes[Jl].value),this.$el.attributes[Kl]&&(this.tealiumSubPageCategory=this.$el.attributes[Kl].value),this.$el.attributes[Yl]&&(this.tealiumValue=this.$el.attributes[Yl].value),this.$el.attributes[Ql]&&(this.tealiumType=this.$el.attributes[Ql].value),this.$el.attributes[Xl]&&(this.tealiumCategory=this.$el.attributes[Xl].value),this.$el.attributes[tc]&&(this.tealiumAction=this.$el.attributes[tc].value),this.$el.attributes[$c]&&(this.optInBackgroundImage=this.$el.attributes[$c].value),this.$el.attributes[Nc]&&(this.optInBackgroundImageWebp=this.$el.attributes[Nc].value),this.$el.attributes[jc]&&(this.isOneTrustEnabled="true"===this.$el.attributes[jc].value),this.$el.attributes[zc]&&(this.useOneTrust="true"===this.$el.attributes[zc].value),this.$el.attributes["data-showSearchbox"]&&(this.showSearchbox="true"===this.$el.attributes["data-showSearchbox"].value),this.$el.attributes["data-searchboxDescription"]&&(this.searchboxDescription=this.$el.attributes["data-searchboxDescription"].value),this.$el.attributes["data-iconOrange"]&&(this.iconOrange=this.$el.attributes["data-iconOrange"].value),this.$el.attributes["data-iconLightGreen"]&&(this.iconLightGreen=this.$el.attributes["data-iconLightGreen"].value),this.$el.attributes["data-entries"]&&(this.entriesParam=this.$el.attributes["data-entries"].value),this.$el.attributes["data-regions"]&&(this.regionsParam=this.$el.attributes["data-regions"].value),this.$el.attributes["data-pests"]&&(this.pestsParam=this.$el.attributes["data-pests"].value),this.$el.attributes["data-crops"]&&(this.cropsParam=this.$el.attributes["data-crops"].value),this.$el.attributes["data-bottomText"]&&(this.bottomText=this.$el.attributes["data-bottomText"].value)},template:'<ProductMap\n        :latitude="this.latitude"\n        :longitude="this.longitude"\n        :zoom="this.zoom"\n        :height="this.height"\n        :googleKey="this.googleKey"\n        :markers="this.markers"\n        :markersObject="this.markersObject"\n        :iconWidth="this.iconWidth"\n        :iconHeight="this.iconHeight"\n        :iconDefault="this.iconDefault"\n        :iconHover="this.iconHover"\n        :iconActive="this.iconActive"\n        :iconCluster="this.iconCluster"\n        :iconClusterWidth="this.iconClusterWidth"\n        :iconClusterHeight="this.iconClusterHeight"\n        :iconClusterTextColor="this.iconClusterTextColor"\n        :mapIconDefault="this.mapIconDefault"\n        :mapIconHover="this.mapIconHover"\n        :mapIconActive="this.mapIconActive"\n        :tealiumPageCategory="this.tealiumPageCategory"\n        :tealiumSubPageCategory="this.tealiumSubPageCategory"\n        :tealiumValue="this.tealiumValue"\n        :tealiumType="this.tealiumType"\n        :tealiumCategory="this.tealiumCategory"\n        :tealiumAction="this.tealiumAction"\n        :optInBackgroun
1dImage="this.optInBackgroundImage"\n        :optInBackgroundImageWebp="this.optInBackgroundImageWebp"\n        :isOneTrustEnabled="this.isOneTrustEnabled"\n        :useOneTrust="this.useOneTrust"\n        :showSearchbox="this.showSearchbox"\n        :searchboxDescription="this.searchboxDescription"\n        :iconOrange="this.iconOrange"\n        :iconLightGreen="this.iconLightGreen"\n        :entriesParam="this.entriesParam"\n        :regionsParam="this.regionsParam"\n        :pestsParam="this.pestsParam"\n        :cropsParam="this.cropsParam"\n        :bottomText="this.bottomText"\n      />',store:Ml.a});for(var ie=document.querySelectorAll(".Table"),ae=0;ae<ie.length;ae+=1)new o.default({el:".Table",components:{Table:Is},beforeMount:function(){this.enableSort="true",this.sortBy="name",this.sortDir="asc",this.elements=[],this.$el.attributes["data-enableSort"]&&(this.enableSort="true"===this.$el.attributes["data-enableSort"].value),this.$el.attributes["data-sortBy"]&&(this.sortBy=this.$el.attributes["data-sortBy"].value),this.$el.attributes["data-sortDir"]&&(this.sortDir=this.$el.attributes["data-sortDir"].value),this.$el.attributes["data-elements"]&&(this.elements=this.$el.attributes["data-elements"].value,this.elements=JSON.parse(this.elements))},template:'\n        <Table\n          :enableSort="this.enableSort"\n          :sortBy="this.sortBy"\n          :sortDir="this.sortDir"\n          :elements="this.elements"\n        />\n      ',store:Ml.a});for(var ne=document.querySelectorAll(".VFTableVSTeaser"),oe=0;oe<ne.length;oe+=1)new o.default({el:".VFTableVSTeaser",components:{VFTableVSTeaser:As},beforeMount:function(){this.enableSort="true",this.sortBy="",this.sortDir="asc",this.view="teaser",this.title="",this.elements=[],this.$el.attributes["data-enableSort"]&&(this.enableSort="true"===this.$el.attributes["data-enableSort"].value),this.$el.attributes["data-sortBy"]&&(this.sortBy=this.$el.attributes["data-sortBy"].value),this.$el.attributes["data-sortDir"]&&(this.sortDir=this.$el.attributes["data-sortDir"].value),this.$el.attributes[Ul]&&(this.title=this.$el.attributes[Ul].value),this.$el.attributes["data-view"]&&(this.view=this.$el.attributes["data-view"].value),this.$el.attributes["data-elements"]&&(this.elements=this.$el.attributes["data-elements"].value,this.elements=JSON.parse(this.elements))},template:'\n        <VFTableVSTeaser\n          :enableSort="this.enableSort"\n          :sortBy="this.sortBy"\n          :sortDir="this.sortDir"\n          :title="this.title"\n          :view="this.view"\n          :elements="this.elements"\n        />\n      ',store:Ml.a});for(var re=document.querySelectorAll(".VFMiniplot"),le=0;le<re.length;le+=1)new o.default({el:".VFMiniplot",components:{VFMiniplot:en},beforeMount:function(){this.target="",this.products=[],this.efficacy="",this.growth="",this.date="",this.images=[],this.enableLightbox=!1,this.$el.attributes["data-enableLightbox"]&&(this.enableLightbox="true"===this.$el.attributes["data-enableLightbox"].value),this.$el.attributes["data-efficacy"]&&(this.efficacy=this.$el.attributes["data-efficacy"].value),this.$el.attributes["data-growth"]&&(this.growth=this.$el.attributes["data-growth"].value),this.$el.attributes["data-target"]&&(this.target=this.$el.attributes["data-target"].value),this.$el.attributes["data-products"]&&(this.products=JSON.parse(this.$el.attributes["data-products"].value)),this.$el.attributes["data-date"]&&(this.date=this.$el.attributes["data-date"].value),this.$el.attributes["data-images"]&&(this.images=this.$el.attributes["data-images"].value,this.images=JSON.parse(this.images))},template:'\n        <VFMiniplot\n          :enableLightbox="this.enableLightbox"\n          :target="this.target"\n          :products="this.products"\n          :efficacy="this.efficacy"\n          :growth="this.growth"\n          :date="this.date"\n          :images="this.images"\n        />\n      ',store:Ml.a});for(var ce=document.querySelectorAll(".VFComparisonPanel"),ue=0;ue<ce.length;ue+=1)new o.default({el:".VFComparisonPanel",components:{VFComparisonPanel:mn},beforeMount:function(){this.max="",this.$el.attributes["data-max"]&&(this.max=this.$el.attributes["data-max"].value)},template:'\n        <VFComparisonPanel\n          :max="this.max"\n        />\n      ',store:Ml.a});for(var de=document.querySelectorAll(".VFGallery"),pe=0;pe<de.length;pe+=1)new o.default({el:".VFGallery",components:{VFGallery:Hs},beforeMount:function(){this.images=[],this.enableLightbox=!1,this.$el.attributes["data-enableLightbox"]&&(this.enableLightbox="true"===this.$el.attributes["data-enableLightbox"].value),this.$el.attributes["data-images"]&&(this.images=this.$el.attributes["data-images"].value,this.images=JSON.parse(this.images))},template:'\n        <VFGallery\n          :images="this.images"\n          :enableLightbox="this.enableLightbox"\n        />\n      ',store:Ml.a});for(var he=document.querySelectorAll(".VFImage"),fe=0;fe<he.length;fe+=1)new o.default({el:".VFImage",components:{VFImage:gn},beforeMount:function(){this.image={},this.enableLightbox=!1,this.$el.attributes["data-enableLightbox"]&&(this.enableLightbox="true"===this.$el.attributes["data-enableLightbox"].value),this.$el.attributes["data-image"]&&(this.image=this.$el.attributes["data-image"].value,this.image=JSON.parse(this.image))},template:'\n        <VFImage\n          :image="this.image"\n          :enableLightbox="this.enableLightbox"\n        />\n      ',store:Ml.a});for(var ge=document.querySelectorAll(".VFCompareBtn"),ve=0;ve<ge.length;ve+=1)new o.default({el:".VFCompareBtn",components:{VFCompareBtn:Ks},beforeMount:function(){this.image={},this.$el.attributes["data-image"]&&(this.image=this.$el.attributes["data-image"].value,this.image=JSON.parse(this.image))},template:'\n        <VFCompareBtn\n          :image="this.image"\n        />\n      ',store:Ml.a});for(var be=document.querySelectorAll(".Wizard"),we=0;we<be.length;we+=1)new o.default({el:".Wizard",components:{Wizard:wn},beforeMount:function(){this.initialStep=1,this.showPrevious=!1,this.showNext=!1,this.steps=[],this.logoImgUrl="",this.logoImgAlt=null,this.logoHrefUrl="",this.logoHrefTitle=null,this.$el.attributes["data-initial-step"]&&(this.initialStep=parseInt(this.$el.attributes["data-initial-step"].value,0)),this.$el.attributes["data-show-previous"]&&(this.showPrevious=this.$el.attributes["data-show-previous"].value),this.$el.attributes["data-show-next"]&&(this.showNext=this.$el.attributes["data-show-next"].value),this.$el.attributes["data-show-header"]&&(this.showHeader=this.$el.attributes["data-show-header"].value),this.$el.attributes["data-steps"]&&(this.steps=this.$el.attributes["data-steps"].value.split(","),this.steps=this.steps.join()),this.$el.attributes["data-logoImgUrl"]&&(this.logoImgUrl=this.$el.attributes["data-logoImgUrl"].value),this.$el.attributes["data-logoImgAlt"]&&(this.logoImgAlt=this.$el.attributes["data-logoImgAlt"].value),this.$el.attributes["data-logoHrefUrl"]&&(this.logoHrefUrl=this.$el.attributes["data-logoHrefUrl"].value),this.$el.attributes["data-logoHrefTitle"]&&(this.logoHrefTitle=this.$el.attributes["data-logoHrefTitle"].value)},template:'\n        <Wizard\n          :steps="this.steps"\n          :initial-step="this.initialStep"\n          :sh
1ow-previous="this.showPrevious"\n          :show-header="this.showHeader"\n          :show-next="this.showNext"\n          :logoImgUrl="this.logoImgUrl"\n          :logoImgAlt="this.logoImgAlt"\n          :logoHrefUrl="this.logoHrefUrl"\n          :logoHrefTitle="this.logoHrefTitle">'.concat(be[we].innerHTML,"\n        </Wizard>\n      "),store:Ml.a});for(var ye=document.querySelectorAll(".SmartAppBanner"),Ce=0;Ce<ye.length;Ce+=1)new o.default({el:".SmartAppBanner",components:{SmartAppBanner:Fn},beforeMount:function(){this.title="",this.author="",this.icon="",this.idIos="",this.idAndroid="",this.priceIos="",this.priceAndroid="",this.tealiumIos="",this.tealiumAndroid="",this.storeLanguageIos="",this.daysHidden="",this.daysReminder="",this.$el.attributes[Ul]&&(this.title=this.$el.attributes[Ul].value),this.$el.attributes["data-author"]&&(this.author=this.$el.attributes["data-author"].value),this.$el.attributes["data-icon"]&&(this.icon=this.$el.attributes["data-icon"].value),this.$el.attributes["data-idIos"]&&(this.idIos=this.$el.attributes["data-idIos"].value),this.$el.attributes["data-idAndroid"]&&(this.idAndroid=this.$el.attributes["data-idAndroid"].value),this.$el.attributes["data-priceIos"]&&(this.priceIos=this.$el.attributes["data-priceIos"].value),this.$el.attributes["data-priceAndroid"]&&(this.priceAndroid=this.$el.attributes["data-priceAndroid"].value),this.$el.attributes["data-tealiumIos"]&&(this.tealiumIos=this.$el.attributes["data-tealiumIos"].value),this.$el.attributes["data-tealiumAndroid"]&&(this.tealiumAndroid=this.$el.attributes["data-tealiumAndroid"].value),this.$el.attributes["data-storeLanguageIos"]&&(this.storeLanguageIos=this.$el.attributes["data-storeLanguageIos"].value),this.$el.attributes["data-daysHidden"]&&(this.daysHidden=+this.$el.attributes["data-daysHidden"].value),this.$el.attributes["data-daysReminder"]&&(this.daysReminder=+this.$el.attributes["data-daysReminder"].value)},template:'\n        <SmartAppBanner\n          :title = "this.title"\n          :author = "this.author"\n          :icon = "this.icon"\n          :idIos = "this.idIos"\n          :idAndroid = "this.idAndroid"\n          :priceIos = "this.priceIos"\n          :priceAndroid = "this.priceAndroid"\n          :tealiumIos = "this.tealiumIos"\n          :tealiumAndroid = "this.tealiumAndroid"\n          :storeLanguageIos = "this.storeLanguageIos"\n          :daysHidden = "this.daysHidden"\n          :daysReminder = "this.daysReminder"\n        />\n      ',store:Ml.a});for(var _e=document.querySelectorAll(".MainNavigation"),Se=0;Se<_e.length;Se+=1)new o.default({el:".MainNavigation",components:{MainNavigation:al},beforeMount:function(){if(this.title="",this.linkHomepage="",this.linkLogo="",this.linkWeatherPage="",this.linkVirtualFarm="",this.isMaintenancePage=!1,this.searchAction="",this.sspServicesLinkUrl="",this.logoutRedirectUrl="",this.navigation=[],this.languages=[],this.projectId="",this.hideSsp=!1,this.useLoginLogoutText=!1,this.$el.attributes["data-title"]&&(this.title=this.$el.attributes["data-title"].value),this.$el.attributes["data-linkHomepage"]&&(this.linkHomepage=this.$el.attributes["data-linkHomepage"].value),this.$el.attributes["data-linkLogo"]&&(this.linkLogo=this.$el.attributes["data-linkLogo"].value),this.$el.attributes["data-linkWeatherPage"]&&(this.linkWeatherPage=this.$el.attributes["data-linkWeatherPage"].value),this.$el.attributes["data-linkVirtualFarm"]&&(this.linkVirtualFarm=this.$el.attributes["data-linkVirtualFarm"].value),this.$el.attributes["data-isMaintenancePage"]&&(this.isMaintenancePage="true"===this.$el.attributes["data-isMaintenancePage"].value),this.$el.attributes["data-searchAction"]&&(this.searchAction=this.$el.attributes["data-searchAction"].value),this.$el.attributes["data-sspServicesLinkUrl"]&&(this.sspServicesLinkUrl=this.$el.attributes["data-sspServicesLinkUrl"].value),this.$el.attributes["data-logoutRedirectUrl"]&&(this.logoutRedirectUrl=this.$el.attributes["data-logoutRedirectUrl"].value),this.$el.attributes["data-navigation"]&&(this.navigation=this.$el.attributes["data-navigation"].value,this.navigation=JSON.parse(this.navigation)),this.$el.attributes["data-languages"]){var t=this.$el.attributes["data-languages"].value;""!==t&&(this.languages=JSON.parse(t))}this.$el.attributes["data-projectId"]&&(this.projectId=this.$el.attributes["data-projectId"].value),this.$el.attributes["data-hideSsp"]&&(this.hideSsp="true"===this.$el.attributes["data-hideSsp"].value),this.$el.attributes["data-useLoginLogoutText"]&&(this.useLoginLogoutText="true"===this.$el.attributes["data-useLoginLogoutText"].value)},template:'\n        <MainNavigation\n          :title="this.title"\n          :linkHomepage="this.linkHomepage"\n          :linkLogo="this.linkLogo"\n          :linkWeatherPage="this.linkWeatherPage"\n          :linkVirtualFarm="this.linkVirtualFarm"\n          :isMaintenancePage="this.isMaintenancePage"\n          :searchAction="this.searchAction"\n          :sspServicesLinkUrl="this.sspServicesLinkUrl"\n          :logoutRedirectUrl="this.logoutRedirectUrl"\n          :navigation="this.navigation"\n          :languages="this.languages"\n          :projectId="this.projectId"\n          :hideSsp="this.hideSsp"\n          :useLoginLogoutText="this.useLoginLogoutText"\n        />\n      ',store:Ml.a});for(var Te=document.querySelectorAll(".Footer"),Pe=0;Pe<Te.length;Pe+=1)new o.default({el:".Footer",components:{Footer:yl},beforeMount:function(){this.warningText="",this.claimText="",this.socialMedia="",this.primaryNav="",this.copyrightText="",this.secondaryNav="",this.currentCountryProp="",this.currentLanguageProp="",this.$el.attributes["data-warningText"]&&(this.warningText=this.$el.attributes["data-warningText"].value),this.$el.attributes["data-claimText"]&&(this.claimText=this.$el.attributes["data-claimText"].value),this.$el.attributes["data-socialMedia"]&&(this.socialMedia=this.$el.attributes["data-socialMedia"].value),this.$el.attributes["data-primaryNav"]&&(this.primaryNav=this.$el.attributes["data-primaryNav"].value),this.$el.attributes["data-copyrightText"]&&(this.copyrightText=this.$el.attributes["data-copyrightText"].value),this.$el.attributes["data-secondaryNav"]&&(this.secondaryNav=this.$el.attributes["data-secondaryNav"].value),this.$el.attributes["data-currentCountry"]&&(this.currentCountryProp=this.$el.attributes["data-currentCountry"].value),this.$el.attributes["data-currentLanguage"]&&(this.currentLanguageProp=this.$el.attributes["data-currentLanguage"].value)},template:'\n        <Footer\n        :warningText="this.warningText"\n        :claimText="this.claimText"\n        :socialMedia="this.socialMedia"\n        :primaryNav = "this.primaryNav"\n        :copyrightText="this.copyrightText"\n        :secondaryNav = "this.secondaryNav"\n        :currentCountryProp = "this.currentCountryProp"\n        :currentLanguageProp = "this.currentLanguageProp"\n        />\n      ',store:Ml.a});for(var Fe=document.querySelectorAll(".SectionHeader"),xe=0;xe<Fe.length;xe+=1)new o.default({el:".SectionHeader",components:{SectionHeader:et},beforeMount:function(){this.title="",this.titleHtml="",this.link="",this.linkText="",this.linkUrl="",this.className="",this.hasBorder=!1,this.useBrandColor=!1,this.hideLinkOnMobile=!1,this.$el.attributes["data-title"]&&(this.title=this.$el.attributes["data-title"].value),this.$el.attributes[Hl]&&(this.titleHtml=this.$el.attributes[Hl].value),this.$el.attributes[nc]&&(this.link=this.$el.attributes[nc].value),this.$el.attributes["data-linkText"]&&(this.linkText=this.$el.attributes["data-linkText"].value),this.$el.attributes["data-linkUrl"]&&(this.linkUrl=this.$el.attributes["data-linkUrl"].value),this.$el.attributes["data-className"]&&(this.className=this.$el.attributes["data-className"].value),this.$el.attributes["data-hasBorder"]&&(this.hasBorder="true"===this.$el.attributes["data-hasBorder"].value),this.$el.attributes["data-useBrandColor"]&&(this.useBrandColor="true"===this.$el.attributes["data-useBrandColor"].value),this.$el.attributes["data-hideLinkOnMobile"]&&(this.hideLinkOnMobile="true"===this.$el.attributes["data-hideLinkOnMobile"].value)},template:'\n        <SectionHeader\n          :title="this.title"\n          :titleHtml="this.titleHtml"\n          :link="this.link"\n          :linkText="this.linkText"\n          :linkUrl="this.linkUrl"\n          :className="this.className"\n          :hasBorder="this.hasBorder"\n          :useBrandColor="this.useBrandColor"\n          :hideLinkOnMobile="this.hideLinkOnMobile"\n        >'.concat(Fe[xe].innerHTML,"</SectionHeader>\n      "),store:Ml.a});for(var Oe=document.querySelectorAll(".TeaserPagination"),ke=0;ke<Oe.length;ke+=1)new o.default({el:".TeaserPagination",components:{TeaserPagination:nt},beforeMount:function(){this.className="",this.$el.attributes["data-className"]&&(this.className=this.$el.attributes["data-className"].value)},template:'\n        <TeaserPagination\n          :className="this.className"\n        />',store:Ml.a});for(var Le=document.querySelectorAll(".NewsTeasers"),Ie=0;Ie<Le.length;Ie+=1)new o.default({el:".NewsTeasers",components:{NewsTeasers:Sl},beforeMount:function(){this.news=[],this.$el.attributes["data-news"]&&(this.news=JSON.parse(this.$el.attributes["data-news"].value))},template:'\n        <NewsTeasers\n          :news="this.news"\n        />',store:Ml.a});for(var Ee=document.querySelectorAll(".productDetailSlider"),Ve=0;Ve<Ee.length;Ve+=1)new o.default({el:".productDetailSlider",components:{ProductDetailSlider:Fl},beforeMount:function(){this.images="",this.imagesSmall="",this.$el.attributes["data-images"]&&(this.images=this.$el.attributes["data-images"].value),this.$el.attributes["data-imagesSmall"]&&(this.imagesSmall=this.$el.attributes["data-imagesSmall"].value)},template:'\n        <ProductDetailSlider\n        :images="this.images"\n        :imagesSmall="this.imagesSmall"\n        />\n      ',store:Ml.a});for(var Ae=document.querySelectorAll(".mediaGallery"),De=0;De<Ae.length;De+=1)new o.default({el:".mediaGallery",components:{MediaGallery:Dl},beforeMount:function(){this.media="",this.mediaSmall="",this.mediaBig="",this.mediaTyp="Image",this.galleryStyle="",this.title="",this.copy="",this.note="",this.backgroundGrey="",this.$el.attributes["data-media"]&&(this.media=this.$el.attributes["data-media"].value),this.$el.attributes["data-mediaSmall"]&&(this.mediaSmall=this.$el.attributes["data-mediaSmall"].value),this.$el.attributes["data-mediaBig"]&&(this.mediaBig=this.$el.attributes["data-mediaBig"].value),this.$el.attributes["data-title"]&&(this.title=this.$el.attributes["data-title"].value),this.$el.attributes["data-copy"]&&(this.copy=this.$el.attributes["data-copy"].value),this.$el.attributes["data-note"]&&(this.note=this.$el.attributes["data-note"].value),this.$el.attributes["data-mediaTyp"]&&(this.mediaTyp=this.$el.attributes["data-mediaTyp"].value),this.$el.attributes["data-galleryStyle"]&&(this.galleryStyle=this.$el.attributes["data-galleryStyle"].value),this.$el.attributes["data-backgroundGrey"]&&(this.backgroundGrey=this.$el.attributes["data-backgroundGrey"].value)},template:'\n        <MediaGallery\n          :gallery-style="this.galleryStyle"\n          :media="this.media"\n          :mediaSmall="this.mediaSmall"\n          :mediaBig="this.mediaBig"\n          :title="this.title"\n          :copy="this.copy"\n          :note="this.note"\n          :media-typ=\'this.mediaTyp\'\n          :background-grey=\'this.backgroundGrey\'\n        />\n      ',store:Ml.a});
1for(var Me=document.querySelectorAll(".TwitterSVG"),Re=0;Re<Me.length;Re+=1)new o.default({el:".TwitterSVG",components:{TwitterSVG:ur},template:"\n        <TwitterSVG/>\n      "});for(var $e=document.querySelectorAll(".DirectFarmSVG"),Ne=0;Ne<$e.length;Ne+=1)new o.default({el:".DirectFarmSVG",components:{DirectFarmSVG:pr},template:"\n        <DirectFarmSVG/>\n      "});for(var je=document.querySelectorAll(".TelegramSVG"),Be=0;Be<je.length;Be+=1)new o.default({el:".TelegramSVG",components:{TelegramSVG:hr},template:"\n        <TelegramSVG/>\n      "});for(var qe=document.querySelectorAll(".VKSVG"),Ze=0;Ze<qe.length;Ze+=1)new o.default({el:".VKSVG",components:{VKSVG:gr},template:"\n        <VKSVG/>\n      "});for(var Je=document.querySelectorAll(".YandexMusicSVG"),Ye=0;Ye<Je.length;Ye+=1)new o.default({el:".YandexMusicSVG",components:{YandexMusicSVG:br},template:"\n        <YandexMusicSVG/>\n      "});for(var Qe=document.querySelectorAll(".AttentionModal"),Xe=0;Xe<Qe.length;Xe+=1)new o.default({el:".AttentionModal",components:{AttentionModal:Vn},beforeMount:function(){this.inactivityTime="",this.$el.attributes["data-inactivityTime"]&&(this.inactivityTime=+this.$el.attributes["data-inactivityTime"].value)},template:'\n        <AttentionModal\n          :inactivityTime="this.inactivityTime"\n        >'.concat(Qe[Xe].innerHTML,"</AttentionModal>\n      "),store:Ml.a})};Ml.a.dispatch("fev/loadFevIfNecessary").then((function(){Uc(),Hc();var t=!!(Ml.a.state.main.stage&&"prelive"===Ml.a.state.main.stage)&&"true"===function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e}("DEBUG_MODE");Ml.a.commit("main/setDebugMode",t)})).catch((function(){Uc(),Hc()})),document.addEventListener("vue-init-apps",(function(){Hc()}))},WGuL:function(t,e){},WOew:function(t,e){},WXyN:function(t,e){},WbpR:function(t,e){},WoLO:function(t,e){},WozJ:function(t,e){},Wstq:function(t,e){},XDNI:function(t,e,i){"use strict";i.r(e);var a=i("oCYn"),s=i("Q2AE"),n=i("oYx3"),o=i("YagJ"),r={name:"ServiceTeaser",components:{PopupComp:o.a},props:{title:{type:String,default:""},content:{type:String,default:""},benefits:{type:String,default:""},formId:{type:String,default:""},image:{type:String,default:""},imagePosition:{type:String,default:"left"},hasForm:{type:Boolean,default:!0},redirectUrl:{type:String,default:""},tealiumValue:{type:String,default:""}},computed:{isImageOnRight:function(){return"right"===this.imagePosition},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common}},methods:{register:function(){var t=this;this.$refs.popupRef.close(),this.$nextTick((function(){t.formId&&""!==t.formId?t.$store.dispatch("forms/register",{formId:t.formId}):t.$store.dispatch("forms/register")}))},login:function(){var t=this;this.$refs.popupRef.close(),this.$nextTick((function(){t.$store.dispatch("forms/login")}))},openPopup:function(){this.$refs.popupRef.open()}}},l=i("JFUb");var c=function(t){i("hb7Y")},u=Object(l.a)(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"service-teaser-wrapper"},[i("div",{staticClass:"row"},[t.image?i("div",{staticClass:"col-sm-12 col-md-2 order-sm-first mb-4 mb-md-0",class:{"order-md-last":t.isImageOnRight}},[i("div",{staticClass:"ssp-picture-wrapper px-4 px-md-2",domProps:{innerHTML:t._s(t.image)}})]):t._e(),t._v(" "),i("div",{staticClass:"col-sm-12 col-md-10"},[t.title?i("h2",[i("a",{attrs:{title:t.translationsCommon.visit+" "+t.title,href:"#"},domProps:{innerHTML:t._s(t.title)},on:{click:function(e){return e.preventDefault(),t.openPopup()}}})]):t._e(),t._v(" "),t.content?i("div",{domProps:{innerHTML:t._s(t.content)}}):t._e(),t._v(" "),i("a",{staticClass:"icon-link",attrs:{"data-tealium-value":"ssp_more-info_"+t.tealiumValue,title:t.translationsCommon.visit+" "+t.title,href:"#","data-teal
1ium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return e.preventDefault(),t.openPopup()}}},[t._v(t._s(t.translations.learnMore))])])]),t._v(" "),i("PopupComp",{ref:"popupRef"},[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.title?i("h1",[t._v(t._s(t.title))]):t._e(),t._v(" "),t.content?i("div",{domProps:{innerHTML:t._s(t.content)}}):t._e(),t._v(" "),t.benefits?i("div",{staticClass:"mt-4",domProps:{innerHTML:t._s(t.benefits)}}):t._e()])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.links.register)},on:{click:function(e){return t.register()}}})])]),t._v(" "),i("div",{staticClass:"row mt-3"},[i("div",{staticClass:"col-12 text-center"},[t._v("\n        "+t._s(t.translations.loginRegisterModal.loginText)+"\n        "),i("a",{attrs:{title:t.translationsCommon.linkTo+" "+t.translations.links.login,href:"#"},on:{click:function(e){return e.preventDefault(),t.login()}}},[t._v(t._s(t.translations.links.login))])])])])],1)}),[],!1,c,"data-v-3230bd8c",null).exports,d=i("lSNA"),p=i.n(d),m=i("L2JU"),h=i("c+Ka"),f=i("+igm"),g=i("+4kH"),v=i("w9Lr"),b=i("EPxg");function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?w(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var C={name:"Service",components:{DebugMode:b.a},props:{id:{type:String,default:""},formId:{type:String,default:""},name:{type:String,default:""},introText:{type:String,default:""},image:{type:String,default:""},linkSubscribe:{type:String,default:""},linkUnsubscribe:{type:String,default:""},tealiumName:{type:String,default:""}},data:function(){return{isSubscribed:!1,isPendingSubscribe:!1,isPendingUnsubscribe:!1,loadingError:!1}},computed:y(y({},Object(m.c)({userId:function(t){return t.forms.userId}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},serviceName:function(){return v.a.formatToCamelCase(this.tealiumName)}}),watch:{userId:{handler:function(t,e){t&&t!==e&&h.a.extractPostLoginFromSessionStorage()&&this.fetchServiceStatus()}}},mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&t.fetchServiceStatus()}))},created:function(){this.userId&&h.a.extractPostLoginFromSessionStorage()&&this.fetchServiceStatus()},methods:{fetchServiceStatus:function(){var t=this;this.formId&&this.$store.dispatch("forms/getSubscriptions").then((function(e){t.handleSubscriptions(e)})).catch((function(){t.loadingError=!0}))},handleSubscriptions:function(t){var e=this,i=t?t.find((function(t){return t.id===e.formId})):{};if(i)switch(i.status){case"OK":this.isSubscribed=!0,this.isPendingSubscribe=!1,this.isPendingUnsubscribe=!1;break;case"PENDING_SUB":this.isSubscribed=!1,this.isPendingSubscribe=!0,this.isPendingUnsubscribe=!1;break;case"PENDING_UNSUB":this.isSubscribed=!1,this.isPendingSubscribe=!1,this.isPendingUnsubscribe=!0}else this.isSubscribed=!1,this.isPendingSubscribe=!1,this.isPendingUnsubscribe=!1}}};var _=function(t){i("TFDb")},S=Object(l.a)(C,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("article",{staticClass:"service-wrapper"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6 mb-4 mb-sm-0"},[i("div",{domProps:{innerHTML:t._s(t.image)}})]),t._v(" "),i("div",{staticClass:"col-12 col-sm-6"},[i("section",{staticClass:"mb-4"},[t.name?i("h3",[t._v("\n          "+t._s(t.name)+"\n          "),i("DebugMode",{attrs:{"form-id":t.formId}}
1)],1):t._e(),t._v(" "),t.introText?i("div",{domProps:{innerHTML:t._s(t.introText)}}):t._e()]),t._v(" "),t.loadingError?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:[i("section",{staticClass:"ssp-buttons-wrapper left"},[t.formId&&"ssp-ag-assist-app-service"!==t.formId?[t.isSubscribed||t.isPendingUnsubscribe?[t.isPendingUnsubscribe?t._e():i("a",{staticClass:"ssp-button",attrs:{id:"cucumber_edit_"+t.tealiumName,href:t.linkSubscribe,title:t.translationsCommon.linkTo+" "+t.linkSubscribe,"data-cucumber":t.serviceName+"_button_edit","data-tealium-value":"edit_"+t.tealiumName,"data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.editData)}}),t._v(" "),i("a",{staticClass:"ssp-button basic",class:{disabled:t.isPendingUnsubscribe},attrs:{id:"cucumber_unsubscribe_"+t.tealiumName,href:t.isPendingUnsubscribe?"":t.linkUnsubscribe,title:t.translationsCommon.linkTo+" "+(t.isPendingUnsubscribe?"":t.linkUnsubscribe),"data-cucumber":t.serviceName+"_button_unsubscribe","data-tealium-value":"unsubscribe_"+t.tealiumName,"data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.label)}})]:[i("a",{staticClass:"ssp-button",class:{disabled:t.isPendingSubscribe},attrs:{id:"cucumber_subscribe_"+t.tealiumName,href:t.isPendingSubscribe?"":t.linkSubscribe,title:t.translationsCommon.linkTo+" "+(t.isPendingSubscribe?"":t.linkSubscribe),"data-cucumber":t.serviceName+"_button_subscribe","data-tealium-value":"subscribe_"+t.tealiumName,"data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.subscribe.label)}})]]:[i("a",{staticClass:"ssp-button",attrs:{href:t.linkSubscribe,title:t.translationsCommon.linkTo+" "+t.linkSubscribe,"data-cucumber":t.serviceName+"_button_open","data-tealium-value":"learn_more_"+t.tealiumName,"data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.learnMore)}})]],2)]],2)])])}),[],!1,_,"data-v-1c7a7e4e",null).exports;function T(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var P={name:"InfoTeaser",props:{content:{type:String,default:""},image:{type:String,default:""},imageBackground:{type:String,default:""},imagePosition:{type:String,default:"left"},isSsp:{type:Boolean,default:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?T(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated}}))};var F=function(t){i("gbFj")},x=Object(l.a)(P,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isSsp&&!t.isLoggedIn||!t.isSsp?i("section",{staticClass:"info-teaser-wrapper",class:{"flex-md-row-reverse":"right"===t.imagePosition}},[t.imageBackground?i("div",{staticClass:"info-teaser-background",domProps:{innerHTML:t._s(t.imageBackground)}}):t._e(),t._v(" "),t.image?i("div",{staticClass:"info-teaser-image",domProps:{innerHTML:t._s(t.image)}}):t._e(),t._v(" "),t.content?i("div",{staticClass:"info-teaser-content",domProps:{innerHTML:t._s(t.content)}}):t._e()]):t._e()}),[],!1,F,"data-v-11197125",null).exports,O=i("YTp6");function k(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function L(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?k(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var I={name:"SspInitLoad",data:function(){return{isActive:!1,loadingError:!1,isPostLoginLoaded:!1}},computed:L(L({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},hasConsent:function(t){return t.forms.hasConsent},userId:function(t){return t.forms.userId},mobileChanged:function(t){return t.forms.mobileChanged},emailChanged:function(t){return t.forms.emailChanged}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}}),watch:{isPostLoginLoaded:function(){this.isPostLoginLoaded&&this.triggerAccountLookup()}},mounted:function(){this.checkLoggedIn()},methods:{checkLoggedIn:function(){var t=this;this.$store.dispatch("forms/user").then((function(e){e.authenticated&&!e.hasConsent?f.a.$emit("showSspConsentForm"):(t.$store.commit("forms/setUserId",e.id),t.$store.commit("forms/setUserRoles",e.roles),t.$store.commit("forms/setUserEmail",e.email),t.$store.commit("forms/setUserMobile",e.mobile),t.$store.commit("forms/setUserAuthenticatedStatus",e.authenticated),t.$store.commit("forms/setUserHasConsentStatus",e.hasConsent)),t.handleAuthenticationStatus(),t.checkSspCountryRedirect(),t.isLoggedIn?(t.userId&&t.updateTealium(t.userId),t.triggerLoadTealium(),t.triggerPostLogin()):(t.triggerLoadTealium(),sessionStorage.setItem("ssp",JSON.stringify({postLogin:!1})))})).catch((function(){t.loadingError=!0,t.triggerLoadTealium()}))},triggerLoadTealium:function(){document.dispatchEvent(new CustomEvent("tealium-fs-init"))},handleAuthenticationStatus:function(){this.isLoggedIn?window.app.authentication.setLoggedIn():window.app.authentication.setLoggedOut()},triggerPostLogin:function(){var t=this,e=this;h.a.extractPostLoginFromSessionStorage()?e.isPostLoginLoaded=!0:this.$store.dispatch("forms/triggerPostLogin").then((function(i){i&&i.billingAddressLocked?t.$store.commit("forms/setUserBillingAddressLocked",i.billingAddressLocked):t.$store.commit("forms/setUserBillingAddressLocked",!1),i&&i.mobileChanged?t.$store.commit("forms/setUserMobileChanged",i.mobileChanged):t.$store.commit("forms/setUserMobileChanged",!1),i&&i.emailChanged?t.$store.commit("forms/setUserEmailChanged",i.emailChanged):t.$store.commit("forms/setUserEmailChanged",!1),i&&Object.prototype.hasOwnProperty.call(i,"otEmailConsent")&&t.$store.commit("forms/setUserOtEmailConsent",i.otEmailConsent),i&&Object.prototype.hasOwnProperty.call(i,"otMobileConsent")&&t.$store.commit("forms/setUserOtMobileConsent",i.otMobileConsent),sessionStorage.setItem("ssp",JSON.stringify({postLogin:!0})),e.isPostLoginLoaded=!0})).catch((function(){e.loadingError=!0,e.isPostLoginLoaded=!0}))},triggerAccountLookup:function(){var t=this,e=this;this.$store.dispatch("forms/triggerAccountLookup").then((function(e){e&&e.loginType?t.$store.commit("forms/setUserLoginType",e.loginType):t.$store.commit("forms/setUserLoginType",null),e&&e.mobileVerified?t.$store.commit("forms/setUserMobileVerified",e.mobileVerified):t.$store.commit("forms/setUserMobileVerified",!1),e&&e.emailVerified?t.$store.commit("forms/setUserEmailVerified",e.emailVerified):t.$store.commit("forms/setUserEmailVerified",!1),t.mobileChanged?f.a.$emit("showSspEmailMobileChanged","mobile"):t.emailChanged&&f.a.$emit("showSspEmailMobileChanged","email"),f.a.$emit(g.a.UPDATE_SSP,g.c.UPDATE_ACCOUNT_LOOKUP)})).catch((function(){e.loadingError=!0,t.mobileChanged?f.a.$emit("showSspEmailMobileChanged","mobile"):t.emailChanged&&f.a.$emit("showSspEmailMobileChanged","email"),f.a.$emit(g.a.UPDATE_SSP,g.c.UPDATE_ACCOUNT_LOOKUP)}))},updateTealium:function(t){try{if(window.utag_data&&(window.utag_data.customer_id=t,window.utag_data.customer_type=""),document.getElementById("utag_data")){var e=document.getElementById("utag_data").innerHTML.replace('customer_id: ""','customer_id: "'.concat(t,'"'));document.getElementById("utag_data").innerHTML=e}}catch(t){var i="not set";t&&t.message&&(i=t.message);var a="Message:".concat(i);O.a.addFrontendMessage("error","SSPMenuUpdateTealium",a)}},checkSspCountryRedirect:function(){if(this.isLoggedIn){var t=this.findGetParameter("sspCountryRedirect");t&&"true"===t&&f.a.$emit("showSspCountryRedirectModal")}},findGetParameter:function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e}}};var E=function(t){i("lW1d")},V=Object(l.a)(I,(function(){var t=this.$createElement;this._self._c;return this._e()}),[],!1,E,"data-v-d4748cdc",null).exports,A={name:"SspSessionExpired",components:{PopupComp:o.a},data:function(){return{show:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}},mounted:function(){var t=this;document.addEventListener("vue-ssp-session-expired",(function(){t.show=!0;var e=document.querySelectorAll(".ssp-modal-main:not(.ssp-session-expired-popup)");e&&e.forEach((function(t){t.style.display="none"}))}))},methods:{sspSessionExpiredAction:function(){this.$store.dispatch("forms/logout")}}};var D=function(t){i("KAsr")},M=Object(l.a)(A,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",[i("PopupComp",{ref:"popupSspSessionExpiredRef",staticClass:"ssp-session-expired-popup",attrs:{"init-open":!0},on:{close:function(e){return t.sspSessionExpiredAction()}}},[i("div",{staticClass:"row mr-3"},[i("div",{staticClass:"col-12 text-center"},[i("div",{domProps:{innerHTML:t._s(t.translations.sessionTimedOut)}})])]),t._v(" "),i("div",{staticClass:"row mt-3"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.ok)},on:{click:function(e){return t.sspSessionExpiredAction()}}}
1)])])])],1):t._e()}),[],!1,D,"data-v-4e56c236",null).exports,R={name:"SspAccountSettings",props:{changePasswordContent:{type:String,default:""},deactivateContent:{type:String,default:""},deactivateLink:{type:String,default:""}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}},methods:{triggerChangePassword:function(){this.$store.dispatch("forms/resetPassword")},triggerOpenSurvey:function(){window.location.href=this.deactivateLink}}};var $=function(t){i("zuu9")},N=Object(l.a)(R,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"mb-5"},[i("div",{domProps:{innerHTML:t._s(t.changePasswordContent)}}),t._v(" "),i("section",{staticClass:"ssp-buttons-wrapper"},[i("input",{staticClass:"ssp-button",attrs:{id:"cucumber_change_password",value:t.translations.account.changePassword.label,"data-cucumber":"accountSettings_button_changePassword",type:"button"},on:{click:function(e){return t.triggerChangePassword()}}})])]),t._v(" "),i("div",[i("div",{domProps:{innerHTML:t._s(t.deactivateContent)}}),t._v(" "),i("section",{staticClass:"ssp-buttons-wrapper"},[i("input",{staticClass:"ssp-button",attrs:{id:"cucumber_deactivate",value:t.translations.account.deactivate.label,"data-cucumber":"accountSettings_button_deleteAccount",type:"button"},on:{click:function(e){return t.triggerOpenSurvey()}}})])])])}),[],!1,$,"data-v-6c035eaa",null).exports,j=i("HA9I"),z={name:"SspConsentForm",components:{Loader:j.a},data:function(){return{error:"",errorDescription:"",showLoader:!1,loadingError:!1,currentUrlPath:"",showSspConsentForm:!1}},computed:{translations:function(){return!(!window.snTranslations||!window.snTranslations.form)&&window.snTranslations.form}},created:function(){var t=this;this.currentUrlPath=window.location.pathname,f.a.$on("showSspConsentForm",(function(){t.showSspConsentForm=!0}))},methods:{acceptConsent:function(){var t=this,e=this;this.showLoader=!0,this.$store.dispatch("forms/submitConsentData").then((function(){setTimeout((function(){e.$store.dispatch("forms/login",{redirect:t.currentUrlPath})}),8e3)})).catch((function(){t.showLoader=!1,t.loadingError=!0}))},cancelConsent:function(){var t=this;this.showLoader=!0,this.$store.dispatch("forms/logout").catch((function(){t.showLoader=!1,t.loadingError=!0}))}}};var B=function(t){i("LCaU")},q=Object(l.a)(z,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showSspConsentForm?i("div",[i("div",{staticClass:"ssp-consent-form-modal"},[i("div",{staticClass:"ssp-consent-form-modal-inner"},[t.loadingError?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:[i("h2",{domProps:{innerHTML:t._s(t.translations.account.invalid.consentHeadline)}}),t._v(" "),i("div",{domProps:{innerHTML:t._s(t.translations.account.invalid.consent)}}),t._v(" "),i("button",{staticClass:"ssp-button",on:{click:function(e){return e.preventDefault(),t.acceptConsent.apply(null,arguments)}}},[t._v(t._s(t.translations.account.invalid.consentButtonAccept))]),t._v(" "),i("button",{staticClass:"ssp-button float-right",on:{click:function(e){return e.preventDefault(),t.cancelConsent.apply(null,arguments)}}},[t._v(t._s(t.translations.account.invalid.consentButtonCancel))])]],2),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],1),t._v(" "),i("div",{staticClass:"ssp-consent-form-modal-backdrop"})]):t._e()}),[],!1,B,"data-v-7fd61812",null).exports,U=i("k08Z"),H={name:"PopupInfo",props:{open:{type:Boolean,default:!1},headline:{type:String,default:""},text:{type:String,default:""},textButton:{type:String,default:""},icon:{type:String,default:""}},computed:{show:{get:function(){return this.open},set:function(t){return t}},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}},watch:{show:function(){this.show?v.a.bodyAddClass("overflow-hidden"):v.a.bodyRemoveClass("overflow-hidden")}},methods:{close:function(){this.show=!1,this.$emit("close")}}};var G=function(t){i("Unbf")},W=Object(l.a)(H,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-modal-main"},[i("transition",{attrs:{name:"fade",appear:""}},[t.show?i("div",{staticClass:"ssp-modal-overlay"}):t._e()]),t._v(" "),i("transition",{attrs:{name:"slide",appear:""}},[t.show?i("div",{staticClass:"ssp-modal-wrapper"},[i("div",{staticClass:"ssp-modal"},[t.headline?i("h2",{domProps:{innerHTML:t._s(t.headline)}}):t._e(),t._v(" "),i("div",{staticClass:"ssp-modal-close close",on:{click:function(e){return t.close()}}},[i("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})]),t._v(" "),t.text?i("div",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),t.textButton?i("button",{staticClass:"ssp-button m-auto",domProps:{innerHTML:t._s(t.textButton)},on:{click:function(e){return t.close()}}}):t._e()])]):t._e()])],1)}),[],!1,G,"data-v-21555104",null).exports;function Z(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function J(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?Z(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Z(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var K={name:"VerifyMobileCode",components:{TextField:U.a,Loader:j.a,PopupInfo:W},props:{sspRegistrationUrl:{type:String,default:""},sspMySubscriptionsUrl:{type:String,default:""},sspMyProfileUrl:{type:String,default:""},redirectsAfterOptin:{type:Object,default:function(){return{}}}},data:function(){return{codeValue:"",loaderVisible:!1,loadingError:!1,codeValueIsValid:!0,errorText:"",showSuccess:!1,mobile:"",backParam:"",redirectAfterOptinUrl:"",isVerfiyMobile:!1,isDeactivateUser:!1,optType:"",formIds:[],popupResendCodeSuccessInfoOpen:!1}},computed:J(J({},Object(m.c)({userMobile:function(t){return t.forms.userMobile}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},successText:function(){var t=this.translations.verifyMobileCode.successText;return this.isDeactivateUser&&(t=this.translations.account.deactivate.confirmPopup.successMobile),t}}),mounted:function(){this.backParam=this.findGetParameter("back");var t=this.findGetParameter("isVerfiyMobile");t&&"true"===t&&(this.isVerfiyMobile=!0);var e=this.findGetParameter("isDeactivateUser");e&&"true"===e&&(this.isDeactivateUser=!0),this.optType=this.findGetParameter("optType"),this.formIds=[];var i=this.findGetParameter("formIds");if(i)for(var a=i.split(","),s=0;s<a.length;s+=1)this.formIds.push(a[s]);if(this.isVerfiyMobile)this.loadVerifyMobile();else{if(this.optType&&"OPTIN"===this.optType&&this.formIds&&this.formIds.length>0)for(var n=0;n<this.formIds.length;n+=1)if(Object.prototype.hasOwnProperty.call(this.redirectsAfterOptin,this.formIds[n])){this.redirectAfterOptinUrl=this.redirectsAfterOptin[this.formIds[n]];break}this.load()}},methods:{load:function(){var t=this;this.mobile=this.userMobile,f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&(t.mobile=t.userMobile)}))},loadVerifyMobile:function(){var t=this;this.loaderVisible=!0,this.$store.dispatch("forms/verifyPending",{type:"mobile"}).then((function(e){e&&e.mobile&&e.mobile.length>0?(t.mobile=e.mobile,t.loaderVisible=!1):t.loadingError=!0})).catch((function(){t.loadingError=!0}))},back:function(){if(this.backParam&&"historyBack"===this.backParam)window.history.go(-1);else if(this.backParam&&"logout"===this.backParam)this.$store.dispatch("forms/logout");else{var t=this.sspMySubscriptionsUrl;this.backParam&&"registration"===this.backParam?t=this.sspRegistrationUrl:this.backParam&&"profile"===this.backParam&&(t=this.sspMyProfileUrl),window.location.href=t}},validate:function(){return this.codeValueIsValid=!0,this.errorText="",this.codeValueIsValid=this.codeValue&&this.codeValue.trim().length>0,this.errorText=this.codeValueIsValid?"":this.translations.requiredField,this.codeValueIsValid&&(this.codeValueIsValid=this.codeValue&&6===this.codeValue.trim().length,this.errorText=this.codeValueIsValid?"":this.translations.invalidFormat),this.codeValueIsValid},submit:function(){var t=this;this.loadingError=!1,this.validate()&&(this.loaderVisible=!0,this.$store.dispatch("forms/validateToken",{token:this.codeValue}).then((function(){t.showSuccess=!0,t.loaderVisible=!1,t.redirectAfterOptinUrl&&""!==t.redirectAfterOptinUrl&&(window.location.href=t.redirectAfterOptinUrl),t.isDeactivateUser&&window.app.authentication.setLoggedOut()})).catch((function(e){e.response&&e.response.status&&400===e.response.status&&e.response.data&&"already confirmed"===e.response.data?(t.showSuccess=!0,t.loaderVisible=!1,t.redirectAfterOptinUrl&&""!==t.redirectAfterOptinUrl&&(window.location.href=t.redirectAfterOptinUrl),t.isDeactivateUser&&window.app.authentication.setLoggedOut()):(t.loaderVisible=!1,t.codeValueIsValid=!1,t.errorText=t.translations.verifyMobileCode.wrongCode)})))},resend:function(){var t=this;this.loadingError=!1,this.isVerfiyMobile?(this.loaderVisible=!0,this.$store.dispatch("forms/verify",{type:"mobile",mobile:this.mobile}).then((function(){t.popupResendCodeSuccessInfoOpen=!0,t.loaderVisible=!1})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.codeValueIsValid=!1,t.errorText=t.translations.verifyLimitReached):t.loadingError=!0}))):(this.loaderVisible=!0,this.$store.dispatch("forms/resendMailOrCode",{formIds:this.formIds,optType:this.optType}).then((function(){t.popupResendCodeSuccessInfoOpen=!0,t.loaderVisible=!1})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.codeValueIsValid=!1,t.errorText=t.translations.verifyLimitReached):t.loadingError=!0})))},findGetParameter:function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e},closePopupResendCodeSuccessInfo:function(){this.popupResendCodeSuccessInfoOpen=!1}}};var Y=function(t){i("kmDF")},Q=Object(l.a)(K,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"ssp-verify-mobile-code"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.showSuccess?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"alert alert-info",domProps:{innerHTML:t._s(t.successText)}})])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.goBack)},on:{click:function(e){return t.back()}}})])])]:[t.translations.verifyMobileCode.headline?i("h1",[t._v(t._s(t.translations.verifyMobileCode.headline))]):t._e(),t._v(" "),i("p",[t._v(t._s(t.translations.verifyMobileCode.codeSent)+" "),i("b",[t._v(t._s(t.mobile))])]),t._v(" "),i("div",{staticClass:"row mb-4 form-wrapper"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"code-field mb-4"},[t.translations.verifyMobileCode.codeLabel?i("label",{attrs:{for:"code"}},[t._v(t._s(t.translations.verifyMobileCode.codeLabel))]):t._e(),t._v(" "),i("div",{staticClass:"code-field-input-area"},[i("div",{staticClass:"code-field-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.codeValue,expression:"codeValue"}],class:{error:!t.codeValueIsValid},attrs:{"data-cucumber":"form_input_code",type:"text",name:"code",maxlength:"6"},domProps:{value:t.codeValue},on:{input:function(e){e.target.composing||(t.codeValue=e.target.value)}}})])]),t._v(" "),!t.codeValueIsValid&&t.errorText?i("div",{staticClass:"error-text",domProps:{innerHTML:t._s(t.errorText)}}):t._e()])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"mb-3"}
1,[i("div",{staticClass:"d-inline theme-txt-color-brand cursor-pointer",on:{click:function(e){return t.resend()}}},[i("strong",[t._v(t._s(t.translations.account.resendMobile.label))])])]),t._v(" "),i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.next)},on:{click:function(e){return t.submit()}}})])])],t._v(" "),i("PopupInfo",{attrs:{open:t.popupResendCodeSuccessInfoOpen,headline:t.translations.account.resendMobile.label,text:t.translations.account.resendMobile.success,"text-button":t.translations.ok},on:{close:function(e){return t.closePopupResendCodeSuccessInfo()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Y,"data-v-be994040",null).exports,X=i("c+sh"),tt=i("3IOm"),et={name:"CheckboxField",components:{TemplateField:X.a},extends:tt.a,props:{value:{type:Boolean,default:!1},id:{type:String,default:""},checkboxLabel:{type:String,default:""},validationText:{type:String,default:""},hasError:{type:Boolean,default:!1},validateChildren:{type:Boolean,default:!1},hasSspMapping:{type:Boolean,default:!0}},data:function(){return{selected:!1}},computed:{elementId:function(){var t="checkbox-item-".concat(this._uid);return this.id&&(t="checkbox-item-".concat(this.id)),t},renderLabel:function(){return this.required&&this.displayRequiredFlag?"".concat(this.checkboxLabel," <span>*</span>"):"".concat(this.checkboxLabel)}},watch:{value:function(){this.selected=this.value},hasError:{handler:function(t,e){t!==e&&this.doOnChangeValidation&&this.validate()}}},mounted:function(){this.value&&(this.selected=this.value)},methods:{onClick:function(t,e){e||("a"!==t.srcElement.localName&&"a"!==t.srcElement.parentElement.localName&&(t.preventDefault(),t.stopPropagation(),this.selected=!this.selected,this.$emit("update:value",this.selected)),this.doOnChangeValidation&&this.validate())},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";this.required&&(e=(t=this.selected)?"":this.validationText||this.commonTranslations.requiredField),this.hasError&&(t=!1,e=this.validationText),this.valid=t,this.errorMessage=e}}}};var it=function(t){i("u2iM")},at=Object(l.a)(et,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"form-id":t.formId,"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,disabled:t.disabled,"display-required-flag":t.displayRequiredFlag,"has-ssp-mapping":t.hasSspMapping}},[i("div",{staticClass:"custom-control custom-checkbox"},[i("input",{staticClass:"custom-control-input",attrs:{id:t.elementId,disabled:t.disabled,"data-cucumber":t.cucumber,type:"checkbox"},domProps:{checked:t.selected}}),t._v(" "),i("label",{staticClass:"custom-control-label",class:{error:t.doOnChangeValidation&&t.validateChildren&&!t.valid,"inline-content":t.required&&t.displayRequiredFlag},attrs:{for:t.elementId},domProps:{innerHTML:t._s(t.renderLabel)},on:{click:function(e){return t.onClick(e,t.disabled)}}})])])}),[],!1,it,"data-v-fde00a16",null).exports;function st(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function nt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?st(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):st(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ot={name:"SspEmailMobileChanged",components:{Loader:j.a,CheckboxField:at},data:function(){return{showLoader:!1,loadingError:!1,show:!1,subscriptions:[],keepConsent:!1,subscriptionNames:[],type:""}},computed:nt(nt({},Object(m.c)({userMobile:function(t){return t.forms.userMobile},userEmail:function(t){return t.forms.userEmail}})),{},{sspServices:function(){return void 0!==window.sspServices&&window.sspServices},sspEvents:function(){return void 0!==window.sspEvents&&window.sspEvents},translations:function(){return!(!window.snTranslations||!window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},getDescription:function(){var t="";return"mobile"===this.type?t=(t=this.translations.emailMobileChanged.mobileDescription).replace("%1",this.userMobile):"email"===this.type&&(t=(t=this.translations.emailMobileChanged.emailDescription).replace("%1",this.userEmail)),t}}),created:function(){var t=this;f.a.$on("showSspEmailMobileChanged",(function(e){t.type=e,t.show=!0,t.load()}))},methods:{load:function(){var t=this;this.showLoader=!0,this.subscriptionNames=[],this.$store.dispatch("forms/getSubscriptions").then((function(e){t.subscriptions=e||[],t.subscriptions.forEach((function(e){if(e&&e.id){var i=t.getServiceEventName(e.id);i&&""!==i&&t.subscriptionNames.push(i)}})),t.showLoader=!1})).catch((function(){t.showLoader=!1,t.loadingError=!0}))},submit:function(){var t=this;this.showLoader=!0,this.$store.dispatch("forms/verifyConfirmConsent",{keepConsent:this.keepConsent}).then((function(){"mobile"===t.type?t.$store.commit("forms/setUserMobileChanged",!1):"email"===t.type&&t.$store.commit("forms/setUserEmailChanged",!1),window.location.reload()})).catch((function(){t.showLoader=!1,t.loadingError=!0}))},getServiceEventName:function(t){var e="";if(this.sspServices){var i=this.sspServices.find((function(e){return e.id===t}));i&&i.name&&(e=i.name)}if(""===e&&this.sspEvents){var a=this.sspEvents.find((function(e){return e.id===t}));a&&a.name&&(e=a.name)}return e}}};var rt=function(t){i("r/Ta")},lt=Object(l.a)(ot,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",[i("div",{staticClass:"ssp-email-mobile-changed-modal"},[i("div",{staticClass:"ssp-email-mobile-changed-modal-inner"},[t.loadingError?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:[i("h2",{domProps:{innerHTML:t._s(t.translations.emailMobileChanged.label)}}),t._v(" "),i("div",{domProps:{innerHTML:t._s(t.getDescription)}}),t._v(" "),i("div",{staticClass:"form-wrapper pb-0 mt-3"},[i("CheckboxField",{attrs:{value:t.keepConsent,name:"keepConsent","checkbox-label":t.translations.emailMobileChanged.keepConsent,required:!1,cucumber:"form_checkbox_keepConsent"},on:{"update:value":function(e){t.keepConsent=e}}})],1),t._v(" "),t.subscriptionNames&&t.subscriptionNames.length>0?i("div",{staticClass:"ssp-email-mobile-changed-list"},[i("div",[t._v(t._s(t.translations.emailMobileChanged.services))]),t._v(" "),i("ul",t._l(t.subscriptionNames,(function(e,a){return i("li",{key:a},[t._v("\n              "+t._s(e)+"\n            ")])})),0)]):t._e(),t._v(" "),i("div",{staticClass:"text-center"},[i("button",{staticClass:"ssp-button",on:{click:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t._v(t._s(t.commonTranslations.continue))])])]],2),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],1),t._v(" "),i("div",{staticClass:"ssp-email-mobile-changed-modal-backdrop"})]):t._e()}),[],!1,rt,"data-v-23d02474",null).exports,ct=Object.freeze(["TextField","TextFieldMulti","TextAreaField","RadioField","AdditionalAddressesField","SelectField","SelectMultiField","SelectMultiTagListField","SelectMultiCropField","CropsField","ProductsWithModalField","ProductsWithFilterField","CheckboxField","ChecklistField","FileUploadField","LocationField","TextListField","AddressSection","FrcField"]),ut=i("ai3h");function dt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function pt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?dt(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):dt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var mt={name:"SspOtConsentModal",components:{Loader:j.a,PopupComp:o.a,CheckboxField:at},data:function(){return{showLoader:!1,loadingError:!1,show:!1,otEmailConsent:!1,otMobileConsent:!1}},computed:pt(pt({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},loginType:function(t){return t.forms.loginType},userOtEmailConsent:function(t){return t.forms.otEmailConsent},userOtMobileConsent:function(t){return t.forms.otMobileConsent},otConsentModalShown:function(t){return t.forms.otConsentModalShown}})),{},{translations:function(){return!(!window.snTranslations||!window.snTranslations.form)&&window.snTranslations.form}}),mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&t.init()}))},methods:{init:function(){this.isLoggedIn&&(this.otConsentModalShown&&void 0!==this.otConsentModalShown||("email"!==this.loginType||null===this.userOtEmailConsent||this.userOtEmailConsent||(this.show=!0,this.$store.commit("forms/setOtConsentModalShown",!0)),"mobile"!==this.loginType||null===this.userOtMobileConsent||this.userOtMobileConsent||(this.show=!0,this.$store.commit("forms/setOtConsentModalShown",!0))))},validate:function(t){var e=!0,i=!1;return t.forEach((function(t){var e=t;e.forceValidation=!0,e.validate(),e.forceValidation=!1,e.valid||(i=!0)})),i&&(e=!1),e},submit:function(){var t=this,e=this.$refs.popupRef.$children.filter((function(t){return ct.includes(t.$options._componentTag)}));if(this.validate(e)){this.showLoader=!0;var i=ut.a.buildFormContent(e,null);delete i.country,this.$store.dispatch("forms/submitOtConsent",{content:i}).then((function(){t.showLoader=!1,t.$refs.popupRef.close()})).catch((function(){t.showLoader=!1,t.loadingError=!0}))}}}};var ht=function(t){i("2FlJ")},ft=Object(l.a)(mt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",[i("PopupComp",{ref:"popupRef",staticClass:"ssp-modal-width-auto",attrs:{"init-open":!0}},[t.translations.otConsentModal.headline?i("h2",{staticClass:"mr-4",domProps:{innerHTML:t._s(t.translations.otConsentModal.headline)}}):t._e(),t._v(" "),t.translations.otConsentModal.description?i("div",{domProps:{innerHTML:t._s(t.translations.otConsentModal.description)}}):t._e(),t._v(" "),i("div",{staticClass:"form-wrapper pb-0 mt-3"},["email"===t.loginType?i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:!0},on:{"update:value":function(e){t.otEmailConsent=e}}}):t._e(),t._v(" "),"mobile"===t.loginType?i("CheckboxField",{attrs:{value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:!0},on:{"update:value":function(e){t.otMobileConsent=e}}}):t._e()],1),t._v(" "),t.loadingError?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:t._e(),t._v(" "),i("div",{staticClass:"text-center"},[i("button",{staticClass:"ssp-button d-inline",on:{click:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t._v(t._s(t.translations.otConsentModal.submit))])]),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],2)],1):t._e()}),[],!1,ht,"data-v-48c07bf8",null).exports,gt={name:"SspCountryRedirectModal",components:{PopupComp:o.a},data:function(){return{show:!1}},computed:{translations:function(){return!(!window.snTranslations||!window.snTranslations.form)&&window.snTranslations.form}},created:function(){var t=this;f.a.$on("showSspCountryRedirectModal",(function(){t.show=!0}))},methods:{close:function(){this.$refs.popupRef.close()},onClose:function(){this.show=!1}}};var vt=function(t){i("E8DA")},bt=Object(l.a)(gt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",[i("PopupComp",{ref:"popupRef",staticClass:"ssp-modal-width-auto",attrs:{"init-open":!0},on:{close:function(e){return t.onClose()}}},[i("div",{staticClass:"row mr-3"},[i("div",{staticClass:"col-12 text-center"},[i("div",{domProps:{innerHTML:t._s(t.translations.countryRedirect)}})])]),t._v(" "),i("div",{staticClass:"row mt-3"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.ok)},on:{click:function(e){return t.close()}}}
1)])])])],1):t._e()}),[],!1,vt,"data-v-1b505fdc",null).exports,wt=i("cDf5"),yt=i.n(wt),Ct=i("RIqP"),_t=i.n(Ct),St=i("06iw");function Tt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Pt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Tt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ft={name:"TemplateForm",components:{Loader:j.a,Modal:St.a,sspService:ut.a,PopupInfo:W},props:{formId:{type:String,default:""},initButtonLabel:{type:String,default:""},buttonLabel:{type:String,default:""},benefits:{type:String,default:""},additionalDescription:{type:String,default:""},successRedirectLink:{type:String,default:""},additionalButton:{type:String,default:""},backButton:{type:String,default:""},backButtonVisible:{type:Boolean,default:!0},googlePlay:{type:String,default:""},appStore:{type:String,default:""},additionalInformation:{type:String,default:""},tealiumName:{type:String,default:""},linkUnsubscribe:{type:String,default:""},showUnsubscribe:{type:Boolean,default:!0},optType:{type:String,default:""},formOutsideMyServices:{type:Boolean,default:!1},fOMSUpdateSubscriptionRedirectLink:{type:String,default:""},fOMSNewSubscriptionRedirectLink:{type:String,default:""},useModal:{type:Boolean,default:!0},enableSubmit:{type:Boolean,default:!0},tealiumValue:{type:String,default:""},useParentValidate:{type:Boolean,default:!1}},data:function(){return{attemptSubmit:!1,isSubmitDisabled:!1,hasInvalidFields:!0,hasSubscribed:!1,fields:[],fieldTypes:["TextField","TextFieldMulti","TextAreaField","RadioField","AdditionalAddressesField","SelectField","SelectMultiField","SelectMultiTagListField","SelectMultiCropField","CropsField","ProductsWithModalField","ProductsWithFilterField","CheckboxField","ChecklistField","FileUploadField","LocationField","TextListField","AddressSection"],flagSubmit:0,showPopup:!1,popupTrigger:null,stickyHeaderHeight:45,loadingError:!1,doCheckFormDataChanged:!0,currentUrlPath:"",popupMobileSubscribeSuccessInfoOpen:!1}},computed:Pt(Pt({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},userId:function(t){return t.forms.userId},serviceSubscriptions:function(t){return t.forms.serviceSubscriptions},savedFields:function(t){return t.forms.savedFields},loginType:function(t){return t.forms.loginType}})),{},{submitButtonLabel:function(){var t=this.replaceCharacterCodes(this.translations.saveSubscription);return this.initButtonLabel&&(t=this.replaceCharacterCodes(this.initButtonLabel)),this.buttonLabel?t=this.replaceCharacterCodes(this.buttonLabel):this.formOutsideMyServices&&this.hasSubscribed&&(t=this.replaceCharacterCodes(this.commonTranslations.save)),t},linkUnsubscribeURL:function(){var t="";return this.isPendingUnsubscribe||(t=this.formOutsideMyServices?"".concat(this.linkUnsubscribe,"?historyBack=true"):this.linkUnsubscribe),t},showPendingOverlay:function(){return this.isLoggedIn&&this.formOutsideMyServices&&(this.isPendingSubscribe||this.isPendingUnsubscribe)},showLoginRegisterOverlay:function(){return!this.isLoggedIn&&this.formOutsideMyServices},config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},loginRegisterModalTranslations:function(){return!(!this.translations||void 0===this.translations.loginRegisterModal)&&this.translations.loginRegisterModal},serviceIntialSubmitSuccess:function(){return this.successRedirectLink&&!this.flagSubmit},otherFormsSubmitSuccess:function(){return!this.successRedirectLink},hasSubmitMethodListener:function(){return this.$listeners&&this.$listeners.submitMethod},hasErrorMethodListener:function(){return this.$listeners&&this.$listeners.errorMethod},hasAfterSubmitMethodListener:function(){return this.$listeners&&this.$listeners.afterSubmitMethod},hasLoadingErrors:function(){return this.loadingError||this.$parent.loadingError},isLoaderVisible:function(){return(this.attemptSubmit&&!this.hasInvalidFields&&0===this.flagSubmit||!this.$parent.is
1FormLoaded)&&!this.hasLoadingErrors},isPendingSubscribe:function(){var t=this;return!!this.formId&&(!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"PENDING_SUB"===e.status})))},isPendingUnsubscribe:function(){var t=this;return!!this.formId&&(!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"PENDING_UNSUB"===e.status})))},getVerificationMobilePageUrl:function(){var t=this.config.verificationMobilePageUrl;return t+="?optType=OPTIN",this.formId&&(t+="&formIds=".concat(encodeURIComponent(this.formId))),t},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return v.a}}),watch:{userId:{handler:function(t,e){(t&&t!==e&&this.otherFormsSubmitSuccess&&h.a.extractPostLoginFromSessionStorage()||t&&t!==e&&this.serviceIntialSubmitSuccess)&&this.checkSubscription()}}},created:function(){this.currentUrlPath=window.location.pathname,(this.otherFormsSubmitSuccess&&this.userId&&h.a.extractPostLoginFromSessionStorage()||this.serviceIntialSubmitSuccess&&this.userId)&&this.checkSubscription()},mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&t.otherFormsSubmitSuccess&&t.checkSubscription()}))},methods:{replaceCharacterCodes:function(t){return v.a.replaceCharacterCodes(t)},validate:function(){var t=this;this.fields=this.$children.filter((function(e){return t.fieldTypes.includes(e.$options._componentTag)})),this.fields.forEach((function(t){return t.validate()})),this.hasInvalidFields=this.fields.find((function(t){return!t.valid}))},triggerSubmit:function(t){if(this.$store.commit("forms/setSavedFields",{}),this.flagSubmit=0,this.attemptSubmit=!0,this.$emit("update:attemptSubmit",!0),this.popupTrigger=this.$refs["popup-trigger-".concat(this.formId)],this.useParentValidate?this.$parent.validate(this):this.validate(),this.hasInvalidFields)t.preventDefault(),this.useModal&&this.scrollToFirstError();else if(t.preventDefault(),this.enableSubmit)this.submit();else{var e=ut.a.buildFormContent(this.fields,this.config.country);this.$store.commit("forms/setSavedFields",e),this.$emit("saveInStateMethod"),this.attemptSubmit=!1,this.$emit("update:attemptSubmit",!1)}},scrollToFirstError:function(){var t=this.fields.find((function(t){return!t.valid})),e=window.pageYOffset+t.$el.getBoundingClientRect().top-this.stickyHeaderHeight;window.scrollTo(0,e)},submit:function(){var t=this;this.doCheckFormDataChanged=!1,this.hasSubmitMethodListener?this.$emit("submitMethod",this):this.$store.dispatch("forms/submitForm",{formId:this.formId,fields:this.fields}).then((function(){t.flagSubmit=1,t.hasAfterSubmitMethodListener?t.$emit("afterSubmitMethod"):t.updateProgressBar()})).catch((function(e){if(t.hasErrorMethodListener)t.$emit("errorMethod",e,t);else{var i=e.response.data;i&&"There are already contacts with the same mobile phone. Use an existing record 
1instead."===i.error?t.$emit("submit-error",t.translations.error.registration.phone):t.$emit("submit-error",""),t.flagSubmit=-1,t.triggerPopup("error")}}))},updateProgressBar:function(){var t=this;this.$store.dispatch("forms/getProfileProgressState").then((function(e){t.attemptSubmit=!1,t.$emit("update:attemptSubmit",!1),!t.hasSubscribed&&"OPTIN"===t.optType&&t.loginType&&"mobile"===t.loginType?t.popupMobileSubscribeSuccessInfoOpen=!0:t.successRedirectLink?t.hasSubscribed?t.triggerPopup():t.formOutsideMyServices?t.fOMSNewSubscriptionRedirectLink&&""!==t.fOMSNewSubscriptionRedirectLink?window.location.href=t.fOMSNewSubscriptionRedirectLink:window.location.href="".concat(t.successRedirectLink,"?historyBack=true"):window.location.href=t.successRedirectLink:(t.$store.commit("forms/setUserProgress",e.status),t.triggerPopup())})).catch((function(){t.loadingError=!0}))},closePopupMobileSubscribeSuccessInfoOpen:function(){window.location.href=this.getVerificationMobilePageUrl},triggerPopup:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success";this.useModal&&(this.showPopup=!0,this.popupTrigger.dataset.target="#popup-".concat(t,"-").concat(this.formId),this.popupTrigger.click((function(t){return t.preventDefault(),!1})))},checkSubscription:function(){var t=this;this.$store.dispatch("forms/getSubscriptions").then((function(e){var i=e?e.find((function(e){return e.id===t.formId})):{};t.hasSubscribed=!1,i&&"OK"===i.status&&(t.hasSubscribed=!0)})).catch((function(){t.loadingError=!0}))},goBack:function(){this.backButtonVisible&&!this.formOutsideMyServices?window.location.href=this.backButton:this.formOutsideMyServices&&this.fOMSUpdateSubscriptionRedirectLink&&""!==this.fOMSUpdateSubscriptionRedirectLink?window.location.href=this.fOMSUpdateSubscriptionRedirectLink:window.location.reload()},login:function(){this.$store.dispatch("forms/login",{redirect:this.currentUrlPath})},register:function(){this.$store.dispatch("forms/register",{redirect:this.currentUrlPath,formId:this.formId})}}};var xt=function(t){i("5E6e")},Ot=Object(l.a)(Ft,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"ssp-template-form"},[t.showLoginRegisterOverlay&&!t.hasLoadingErrors?i("div",{staticClass:"ssp-template-form-overlay"},[i("div",{staticClass:"ssp-template-form-overlay-content text-center"},[i("h5",{staticClass:"mb-3",domProps:{innerHTML:t._s(t.loginRegisterModalTranslations.title)}}),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-6 mb-4 mb-md-0 text-center"},[i("p",[t._v(t._s(t.loginRegisterModalTranslations.loginText))]),t._v(" "),i("button",{staticClass:"link-button theme-color d-inline-block ml-0",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.links.login)},on:{click:function(e){return t.login()}}})]),t._v(" "),i("div",{staticClass:"col-md-6 text-center"},[i("p",[t._v(t._s(t.loginRegisterModalTranslations.registerText))]),t._v(" "),i("button",{staticClass:"link-button theme-color d-inline-block ml-0",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.links.register)},on:{click:function(e){return t.register()}}})])])])]):t._e(),t._v(" "),t.showPendingOverlay&&!t.hasLoadingErrors?i("div",{staticClass:"ssp-template-form-overlay"},[i("div",{staticClass:"ssp-template-form-overlay-content text-center"},[i("p",{staticClass:"mb-0"},[t._v(t._s(t.translations.pendingOverlay))])])]):t._e(),t._v(" "),(t.serviceIntialSubmitSuccess||t.showPopup||t.otherFormsSubmitSuccess)&&!t.hasLoadingErrors?i("div",{class:{"blur-area":t.showLoginRegisterOverlay||t.showPendingOverlay}},[t.benefits||t.additionalDescription?i("section",{staticClass:"mb-4"},[t.benefits?i("div",{staticClass:"text-image",domProps:{innerHTML:t._s(t.benefits)}}):t._e(),t._v(" "),t.additionalDescription?i("div",{staticClass:"text-image additional-description",domProps:{innerHTML:t._s(t.additionalDescription)}}):t._e()]):t._e(),t._v(" "),i("form",{staticClass:"form-wrapper",attrs:{enctype:"multipart/form-data",novalidate:"",autocomplete:"off"},on:{submit:t.triggerSubmit}},[t._t("default"),t._v(" "),t.googlePlay||t.appStore?i("section",{staticClass:"mb-4"},[t.googlePlay?i("span",{domProps:{innerHTML:t._s(t.googlePlay)}}):t._e(),t._v(" "),t.appStore?i("span",{domProps:{innerHTML:t._s(t.appStore)}}):t._e()]):t._e(),t._v(" "),i("section",{staticClass:"ssp-buttons-wrapper"},[t.formId&&"ssp-ag-assist-app-service"!==t.formId?i("input",{staticClass:"ssp-button",class:{disabled:t.isSubmitDisabled},attrs:{"data-cucumber":"form_button_submit",disabled:t.isSubmitDisabled,"data-teal
1ium-value":"ssp_"+t.tealiumValue+"_save","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click",type:"submit"},domProps:{value:t.submitButtonLabel}}):t._e(),t._v(" "),t.formOutsideMyServices&&t.showUnsubscribe&&(t.hasSubscribed||t.isPendingUnsubscribe)?[i("a",{staticClass:"ssp-button basic",class:{disabled:t.isPendingUnsubscribe},attrs:{id:"cucumber_unsubscribe_"+t.tealiumName,href:t.linkUnsubscribeURL,title:t.functionHelper.formatTitle(t.translationsCommon.clickTo,t.translations.unsubscribe.label),"data-tealium-value":"ssp_"+t.tealiumName+"_unsubscribe","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.label)}})]:t._e(),t._v(" "),t.additionalButton?i("div",{staticClass:"ssp-button"},[i("div",{domProps:{innerHTML:t._s(t.additionalButton)}})]):t._e(),t._v(" "),t.backButtonVisible&&!t.formOutsideMyServices?i("input",{staticClass:"ssp-button basic",attrs:{value:t.replaceCharacterCodes(t.translations.backToServices),"data-cucumber":"form_button_back",type:"button"},on:{click:function(e){return t.goBack()}}}):t._e(),t._v(" "),t._t("additionalButtonsSlot"),t._v(" "),t.additionalInformation?i("div",{staticClass:"ssp-additional-information",domProps:{innerHTML:t._s(t.additionalInformation)}}):t._e()],2)],2)]):-1===t.flagSubmit?[i("div",{staticClass:"mb-4"},[i("div",{staticClass:"alert alert-danger",domProps:{innerHTML:t._s(t.translations.submit.service.error)}})]),t._v(" "),t.successRedirectLink?i("input",{staticClass:"ssp-button basic",attrs:{value:t.formOutsideMyServices?t.replaceCharacterCodes(t.translations.goBack):t.replaceCharacterCodes(t.translations.backToServices),"data-cucumber":"form_button_back",type:"button"},on:{click:function(e){return t.goBack()}}}):t._e()]:t._e(),t._v(" "),t.hasLoadingErrors?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:t._e(),t._v(" "),t.useModal?i("input",{ref:"popup-trigger-"+t.formId,attrs:{"data-toggle":"modal",type:"hidden"}}):t._e(),t._v(" "),t.useModal?i("Modal",{attrs:{id:"popup-success-"+t.formId,text:t.translations.submit.service.save,"text-save":t.formOutsideMyServices?t.translations.goBack:t.translations.backToServices,keyboard:!1,backdrop:"static",icon:"info"},on:{confirm:function(e){return t.goBack()}}}):t._e(),t._v(" "),t.useModal?i("Modal",{attrs:{id:"popup-error-"+t.formId,text:t.translations.submit.service.error,"text-save":t.formOutsideMyServices?t.translations.goBack:t.translations.backToServices,keyboard:!1,backdrop:"static",icon:"cancel-circle"},on:{confirm:function(e){return t.goBack()}}}):t._e(),t._v(" "),i("PopupInfo",{attrs:{open:t.popupMobileSubscribeSuccessInfoOpen,headline:t.translations.submit.service.success,text:t.translations.submit.service.mobile.subscribe,"text-button":t.commonTranslations.continue},on:{close:function(e){return t.closePopupMobileSubscribeSuccessInfoOpen()}}}),t._v(" "),t.enableSubmit?i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}}):t._e()],2)}),[],!1,xt,"data-v-358d719f",null).exports,kt={name:"TextFieldMulti",components:{TemplateField:X.a},extends:tt.a,props:{inputType:{type:String,default:"text"},list:{type:Array,default:function(){return[]}},customValidationRegExp:{type:RegExp,default:null},customErrorMessage:{type:String,default:""},preselected:{type:[Object,Array],default:function(){}},useCrmCrops:{type:Boolean,default:!1}},data:function(){return{invalidFields:[],currentPreselect:[],preselectedCRM:[],listIncludeCRM:[],listSendOnSubmit:[]}},watch:{doOnChangeValidation:function(){this.doOnChangeValidation&&this.validate()},list:{handler:function(){this.emitList()},deep:!0}},created:function(){var t=this;this.preselected&&this.preselected.length&&(this.currentPreselect=this.preselected.filter((function(e){return t.list.find((function(t){return t.id===e.id}))})),this.preselectedCRM=this.preselected.filter((function(e){return!t.list.find((function(t){return t.id===e.id}))})),this.currentPreselect.forEach((function(e){t.updateList(e.id,e.name,e.value)})))},mounted:function(){this.checkValidation()}
1,methods:{updateList:function(t,e,i){this.list.find((function(e){return e.id===t})).value=i,this.emitList(),this.checkValidation()},emitList:function(){this.listIncludeCRM=this.list.concat(this.preselectedCRM),this.listSendOnSubmit=this.useCrmCrops?this.listIncludeCRM:this.list,this.$emit("update",this.list)},checkValidation:function(){this.doOnChangeValidation&&this.validate()},validate:function(){var t=this;if(!this.disabled||this.forceValidation){var e=!0,i="";if(this.required){var a=this.list.map((function(t){return 0!==t.value.length})).filter((function(t){return!0===t}));i=(e=a&&a.length>0)?"":this.translations.minOneSelect}e&&this.customValidationRegExp&&(this.invalidFields=this.list.filter((function(e){return e.value&&!t.customValidationRegExp.test(e.value)})),e=!this.invalidFields.length),this.valid=e,this.errorMessage=i}},isValid:function(t){return!this.invalidFields.find((function(e){return e.id===t}))}}};var Lt=function(t){i("hqG1")},It=Object(l.a)(kt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required}},t._l(t.list,(function(e,a){return i("div",{key:e.id,staticClass:"field-wrapper-inner"},["all"!==e.id?[i("div",{staticClass:"text-right"},[t._v("("+t._s(e.name)+")")]),t._v(" "),i("input",{key:e.id,staticClass:"form-control mb-1",class:{error:!t.isValid(e.id)},attrs:{type:t.inputType,name:e.name,"data-cucumber":t.cucumber+"_"+a},domProps:{value:e.value},on:{input:function(i){return t.updateList(e.id,e.name,i.target.value)}}}),t._v(" "),t.isValid(e.id)?t._e():i("div",{staticClass:"error"},[t._v(t._s(t.customErrorMessage)+"\n      ")])]:t._e()],2)})),0)}),[],!1,Lt,"data-v-6f5d92f4",null).exports,Et=i("NF/Z"),Vt=i("cPsw"),At=i("cCY5"),Dt=i.n(At),Mt={name:"SelectMultiTagListField",components:{TemplateField:X.a,Treeselect:Dt.a},extends:tt.a,props:{value:{type:Array,default:function(){return[]}},options:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},hasError:{type:Boolean,default:!1},hasErrorMessage:{type:String,default:""},cucumber:{type:String,default:null}},data:function(){return{selectedElements:this.prefill(),multiple:!0,openOnClick:!0,clearOnSelect:!0,treeSelectOpened:!1,adjustedTreeOpenDirection:"below",normalizerId:function(t){return{id:t.code,label:t.name}}}},watch:{value:function(t,e){v.a.areArraysExactEqual(t,e)||(this.selectedElements=this.value)},selectedElements:function(){this.$emit("update:value",this.selectedElements),this.doOnChangeValidation&&this.validate()},hasError:function(){this.doOnChangeValidation&&this.validate()}},methods:{prefill:function(){return this.value&&this.value.length?this.value:[]},getNameByCode:function(t){var e="";if(this.options){var i=this.options.find((function(e){return e.code===t}));i&&i.name&&(e=i.name)}return e},onTreeOpen:function(){this.treeSelectOpened=!0,this.adjustedTreeOpenDirection=this.$refs["treeSelect_".concat(this.name)].prefferedOpenDirection}
1,onTreeClose:function(){this.treeSelectOpened=!1},remove:function(t){this.isDisabled||(this.selectedElements=this.selectedElements.filter((function(e){return e!==t})))},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";this.required&&(e=(t=this.selectedElements&&Object.keys(this.selectedElements).length>0)?"":this.commonTranslations.requiredField),this.hasError&&(t=!1,e=this.hasErrorMessage),this.valid=t,this.errorMessage=e}}}};var Rt=function(t){i("iirv")},$t=Object(l.a)(Mt,(function(){var t,e=this,i=e.$createElement,a=e._self._c||i;return a("TemplateField",{staticClass:"treeselect-fix-overlapping",attrs:{"label-name":e.labelName,"label-tag":e.name,error:e.errorMessage,tooltip:e.tooltip,"tooltip-is-html":e.tooltipIsHtml,"tooltip-placement":e.tooltipPlacement,"tooltip-class":e.tooltipClass,"tooltip-close":e.tooltipClose,required:e.required,disabled:e.disabled,superscript:e.superscript,subscript:e.subscript}},[a("div",[a("div",{staticClass:"treeselect-wrapper",class:(t={},t["treeselect-open-"+e.adjustedTreeOpenDirection]=e.treeSelectOpened,t.error=!e.valid,t),attrs:{"data-cucumber":e.cucumber}},[a("div",{staticClass:"selectPlaceholder"},[e._v(e._s(e.placeholder))]),e._v(" "),a("treeselect",{ref:"treeSelect_"+e.name,attrs:{options:e.options,multiple:e.multiple,clearable:e.clearable,"open-on-click":e.openOnClick,"clear-on-select":e.clearOnSelect,searchable:!1,normalizer:e.normalizerId,"open-direction":"below",placeholder:""},on:{open:e.onTreeOpen,close:e.onTreeClose},model:{value:e.selectedElements,callback:function(t){e.selectedElements=t},expression:"selectedElements"}})],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedElements&&e.selectedElements.length,expression:"selectedElements && selectedElements.length"}],staticClass:"cropSelector"},[a("div",[e._l(e.selectedElements,(function(t,i){return["all"!==t?a("span",{key:i,staticClass:"button button-close",attrs:{"data-cucumber":"form_button_itemRemove"},on:{click:function(i){return e.remove(t)}}},[e._v("\n            "+e._s(e.getNameByCode(t))+"\n          ")]):e._e()]}))],2)])])])}),[],!1,Rt,"data-v-137db3f8",null).exports,Nt=i("w7Cn"),jt={name:"SelectMultiCropField",components:{Treeselect:Dt.a,Crop:Nt.a},props:{placeholder:{type:String,default:""},isDisabled:{type:Boolean,default:!1},list:{type:[Object,Array],default:function(){}},preselected:{type:[Object,Array],default:function(){}},useAmigaCode:{type:Boolean,default:!1},cucumber:{type:String,default:null}},data:function(){return{preselectedCRM:[],selectedElements:[],multiple:!0,clearable:!1,searchable:!0,openOnClick:!0,clearOnSelect:!0,treeSelectOpened:!1,adjustedTreeOpenDirection:"below",normalizerAmigaCode:function(t){return{id:t.amigaCode,label:t.label}},normalizerId:function(t){return{id:t.id,label:t.label}},currentList:[]}},computed:{translations:function(){return window.snTranslations},config:function(){return window.snConfig.config},snConfigCrops:function(){return window.snConfigCrops.crops}},watch:{"$data.selectedElements":{handler:function(t,e){var i=t.filter((function(t){return!e.includes(t)})).concat(e.filter((function(e){return!t.includes(e)})));if(t.length!==e.length&&!v.a.areEqualShallow(t,e)&&i.length){this.selectedElements=t;var a=t.includes("all");if(i.includes("all"))this.selectedElements=a?this.currentList.map((function(t){return t.amigaCode})):[];else{if(a&&this.selectedElements.length!==this.currentList.length){var s=this.selectedElements.indexOf("all");s>-1&&this.selectedElements.splice(s,1)}var n=this.selectedElements.filter((function(t){return"all"!==t}));this.$emit("update",n,this.preselectedCRM)}}},deep:!1},list:{handler:function(){this.selectedElements=[],this.addAllOption()},deep:!0},preselected:function(){this.handlePreselected()}},created:function(){this.addAllOption(),this.handlePreselected()},methods:{handlePreselected:function(){var t=this;this.preselected&&this.preselected.length&&(this.selectedElements=this.preselected.filter((function(e){return t.list.find((function(t){return t.amigaCode===e}))})),this.preselectedCRM=this.preselected.filter((function(e){return!t.list.find((function(t){return t.amigaCode===e}))})),this.$emit("update",this.selectedElements,this.preselectedCRM))},addAllOption:function(){this.list.find((function(t){return"all"===t.id}))||(this.currentList=this.list.slice(),this.currentList.unshift({amigaCode:"all",id:"all",label:this.translations.form.allCrops}))},remove:function(t){this.isDisabled||(this.selectedElements=this.selectedElements.filter((function(e){return e!==t})))},onTreeOpen:function(){this.treeSelectOpened=!0,this.adjustedTreeOpenDirection=this.$refs.treeSelect.prefferedOpenDirection}
1,onTreeClose:function(){this.treeSelectOpened=!1}}};var zt=function(t){i("UpJQ")},Bt=Object(l.a)(jt,(function(){var t,e=this,i=e.$createElement,a=e._self._c||i;return a("div",[a("div",{staticClass:"treeselect-wrapper",class:(t={},t["treeselect-open-"+e.adjustedTreeOpenDirection]=e.treeSelectOpened,t),attrs:{"data-cucumber":e.cucumber}},[a("div",{staticClass:"selectPlaceholder"},[e._v(e._s(e.placeholder))]),e._v(" "),a("treeselect",{ref:"treeSelect",attrs:{"auto-load-root-options":!1,multiple:e.multiple,clearable:e.clearable,searchable:!1,"open-on-click":e.openOnClick,"clear-on-select":e.clearOnSelect,options:e.currentList&&e.currentList.length?e.currentList:e.snConfigCrops,flat:!0,disabled:e.isDisabled,"open-direction":"below",normalizer:e.useAmigaCode?e.normalizerAmigaCode:e.normalizerId,placeholder:""},on:{open:e.onTreeOpen,close:e.onTreeClose},model:{value:e.selectedElements,callback:function(t){e.selectedElements=t},expression:"selectedElements"}})],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedElements&&e.selectedElements.length,expression:"selectedElements && selectedElements.length"}],staticClass:"cropSelector"},[a("div",e._l(e.selectedElements,(function(t,i){return a("Crop",{key:i,attrs:{data:t,"from-all":!0,"from-ssp":!0,"use-amiga-code":e.useAmigaCode,cucumber:"form_button_cropRemove"},on:{clicked:e.remove}})})),1)])])}),[],!1,zt,"data-v-04b76bd0",null).exports,qt={name:"CropsField",components:{TemplateField:X.a,SelectMultiCropField:Bt},extends:tt.a,props:{cropList:{type:[Object,Array],default:function(){}},preselected:{type:[Object,Array],default:function(){}},useAmigaCode:{type:Boolean,default:!1},useCrmCrops:{type:Boolean,default:!1}},data:function(){return{isDisabled:!1,crops:[],cropsIncludeCRM:[],cropsSendOnSubmit:[]}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}},watch:{doOnChangeValidation:function(){this.validate()}},mounted:function(){this.crops=[]},methods:{update:function(t,e){this.crops=t,this.cropsIncludeCRM=t.concat(e),this.cropsSendOnSubmit=this.useCrmCrops?this.cropsIncludeCRM:this.crops,this.$emit("update",this.crops),this.doOnChangeValidation&&this.validate()},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";this.required&&(e=(t=this.crops&&this.crops.length>0)?"":this.commonTranslations.requiredField),this.valid=t,this.errorMessage=e}},handlePreselected:function(){this.$refs&&this.$refs.multiFieldRef&&this.$refs.multiFieldRef.handlePreselected()}}};var Ut=function(t){i("Dp+K")},Ht=Object(l.a)(qt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.cropList&&t.cropList.length?i("TemplateField",{attrs:{"form-id":t.formId,"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,disabled:t.disabled,superscript:t.superscript,subscript:t.subscript,"display-required-flag":t.displayRequiredFlag}},[i("div",{staticClass:"row field-wrapper-inner"},[i("div",{staticClass:"col-12 filter-crops"},[i("SelectMultiCropField",{ref:"multiFieldRef",class:{error:!t.valid},attrs:{"is-disabled":t.isDisabled,placeholder:t.placeholder,list:t.cropList,preselected:t.preselected,"use-amiga-code":t.useAmigaCode,cucumber:t.cucumber},on:{update:function(e,i){return t.update(e,i)}}})],1)])]):t._e()}),[],!1,Ut,"data-v-36a38814",null).exports,Gt=i("cuIY"),Wt=i("GdcW");function Zt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Jt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Zt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Kt={name:"ProductsWithModalFieldSelectModal",components:{ProductSearchDropdown:Gt.a,ProductSearchTag:Wt.a},data:function(){return{id:null,value:[],groupPrefixCrops:"cgid_",subGroupPrefixCrops:"csgid_",prefixCrops:"cg_",flagUpdatedUrlCrops:!1,showIndication:!0,initShowAmount:6,increaseShowAmount:3,showAmount:0,page:0,firstShowMoreUp:!0}},computed:Jt(Jt({},Object(m.c)({filterCropGroups:function(t){return t.search.filterCropGroups},currentCGFilter:function(t){return t.search.currentCGFilter},filterCropSubGroups:function(t){return t.search.filterCropSubGroups},currentCSGFilter:function(t){return t.search.currentCSGFilter},filterCrops:function(t){return t.search.filterCrops},currentCFilter:function(t){return t.search.currentCFilter},productSearch:function(t){return t.search.productSearch}})),{},{productSearchTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.productSearch)&&window.snTranslations.productSearch},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},fieldProductsTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form||void 0===window.snTranslations.form.field||void 0===window.snTranslations.form.field.products)&&window.snTranslations.form.field.products},parentValue:function(){return this.$parent.$parent.value},showMoreUpEnabled:function(){return this.productSearch&&this.showAmount>this.initShowAmount},showMoreDownEnabled:function(){return this.productSearch&&this.productSearch.totalElements>this.showAmount}}),mounted:function(){this.id="productsWithModalFieldSelectModal_".concat(this._uid),this.fetchFilterItems(!0)},methods:{triggerModal:function(){var t=this;this.value=[],this.parentValue.forEach((function(e){t.value.push(e)}));var e=this.$refs.modalTrigger;
1e.dataset.target="#".concat(this.id),e.click((function(t){return t.preventDefault(),!1}))},fetchFilterItems:function(t){var e=this;this.$store.commit("search/setCropFiltersUseInSSP",!0),this.$store.dispatch("search/fetchCropGroupFilterItems").then((function(){t&&e.fetchData(!0,!1)}))},showResults:function(){return this.currentCGFilter.length>0||this.currentCSGFilter.length>0||this.currentCFilter.length>0},getIndex:function(t,e){for(var i=-1,a=0;a<e.length;a+=1)e[a].id===t.id&&(i=a);return i},fetchData:function(t,e){t?(this.$store.commit("search/updateShowAmount",this.initShowAmount),this.page=0,this.$store.commit("search/setProductSearch",[])):this.$store.commit("search/updateShowAmount",this.increaseShowAmount),this.$store.commit("search/setProductsWithPrd",!0),this.flagUpdatedUrlCrops&&this.$store.commit("search/setEppoCodeCropError",!1);this.$store.dispatch("search/fetchData",{appendResults:!0,page:this.page,appendAtBegin:e}),t&&(this.page=this.initShowAmount/this.increaseShowAmount-1,this.showAmount=this.initShowAmount,this.firstShowMoreUp=!0)},updateCropGroup:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getIndex(t,this.currentCGFilter);i>-1?(this.currentCGFilter.splice(i,1),this.$store.dispatch("search/removeCropGroupChildren",t)):this.currentCGFilter.push(t),this.$store.commit("search/setCurrentCGFilter",this.currentCGFilter),this.flagUpdatedUrlCrops=e,this.fetchData(!0,!1)},updateCropSubGroup:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getIndex(t,this.currentCSGFilter);i>-1?(this.currentCSGFilter.splice(i,1),this.$store.dispatch("search/removeCropsSubGroupChildren",t)):this.currentCSGFilter.push(t),this.$store.commit("search/setCurrentCSGFilter",this.currentCSGFilter),this.flagUpdatedUrlCrops=e,this.fetchData(!0,!1)},updateFilter:function(t,e,i){var a=this;if(Array.isArray(t))t.forEach((function(t){var i=a.getIndex(t,e);i>-1?e.splice(i,1):e.push(t)}));else if(t){var s=this.getIndex(t,e);s>-1?e.splice(s,1):e.push(t)}this.$store.commit("search/".concat(i),e),this.fetchData(!0,!1)},showMoreDown:function(){this.showMoreDownEnabled&&(this.productSearch.content&&this.productSearch.content.length>=this.increaseShowAmount&&(this.productSearch.content.splice(0,this.increaseShowAmount),this.$store.commit("search/setProductSearch",this.productSearch)),this.page=this.page+1,this.firstShowMoreUp||(this.page=this.page+1,this.firstShowMoreUp=!0),this.showAmount=this.showAmount+this.increaseShowAmount,this.fetchData(!1,!1))},showMoreUp:function(){if(this.showMoreUpEnabled){if(this.productSearch.content&&this.productSearch.content.length>=this.increaseShowAmount){var t=this.productSearch.content.length-this.increaseShowAmount;this.productSearch.content=this.productSearch.content.slice(0,-1*t),this.$store.commit("search/setProductSearch",this.productSearch)}this.page=this.page-1,this.firstShowMoreUp&&(this.page=this.page-1,this.firstShowMoreUp=!1),this.showAmount=this.showAmount-this.increaseShowAmount;var e=!1;this.showAmount-this.initShowAmount==0&&(e=!0);this.fetchData(e,!0)}},removeAll:function(){this.$store.dispatch("search/removeCurrentFilters");for(var t=document.querySelectorAll("ul.filter-list .custom-checkbox input"),e=0;e<t.length;
1e+=1)t[e].checked=!1;this.fetchData(!0,!1)},selectProduct:function(t){var e=this,i=this.value.indexOf(t.prd);-1===i?this.value.push(t.prd):this.value.splice(i,1),this.parentValue.splice(0,this.parentValue.length),this.value.forEach((function(t){e.parentValue.push(t)}))},productIsSelected:function(t){var e=!1;return-1!==this.value.indexOf(t.prd)&&(e=!0),e}}};var Yt=function(t){i("r1a3")},Qt=Object(l.a)(Kt,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal fade basic-modal products-with-modal-field-select-modal",attrs:{id:t.id,"data-backdrop":"static","data-keyboard":!1,tabindex:"-1",role:"dialog","aria-labelledby":"productsWithModalFieldSelectModalCenterTitle"}},[i("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[i("div",{staticClass:"modal-content"},[i("div",{staticClass:"modal-header"},[i("h5",{staticClass:"modal-title",domProps:{innerHTML:t._s(t.fieldProductsTranslations.selectHeadline)}}),t._v(" "),t._m(0)]),t._v(" "),i("div",{staticClass:"modal-body"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-md-4 mb-4"},[i("ProductSearchDropdown",{attrs:{groups:t.filterCropGroups,"group-current":t.currentCGFilter,"group-prefix":t.groupPrefixCrops,"sub-groups":t.filterCropSubGroups,"sub-group-current":t.currentCSGFilter,"sub-group-prefix":t.subGroupPrefixCrops,elements:t.filterCrops,"element-current":t.currentCFilter,prefix:t.prefixCrops},on:{updateGroup:function(e){return t.updateCropGroup(e,!0)},updateSubGroup:function(e){return t.updateCropSubGroup(e,!0)},updateElement:function(e){return t.updateFilter(e,t.currentCFilter,"setCurrentCFilter")}}})],1),t._v(" "),i("div",{staticClass:"col-12 col-md-8"},[t.showResults()?i("div",{staticClass:"filters"},[i("button",{staticClass:"button button-grey button-close",on:{click:function(e){return e.preventDefault(),t.removeAll.apply(null,arguments)}}},[t._v("\n                "+t._s(t.productSearchTranslations.removeAll)+"\n              ")]),t._v(" "),i("ProductSearchTag",{attrs:{"show-indication":t.showIndication},on:{remove:function(e){return t.fetchData(!0,!1)}}})],1):t._e(),t._v(" "),i("div",{staticClass:"arrow-up",class:t.showMoreUpEnabled?"":"disabled"},[i("div",{on:{click:function(e){return t.showMoreUp()}}})]),t._v(" "),t.productSearch?i("div",{staticClass:"row teaser teaser-row"},[t._l(t.productSearch.content,(function(e,a){return[i("div",{key:a,staticClass:"col-md-4 col-sm-6"},[i("div",{staticClass:"swiper-slide product-select-entry",class:{"product-selected":t.productIsSelected(e)},domProps:{innerHTML:t._s(e.snippet)},on:{click:function(i){return i.preventDefault(),t.selectProduct(e)}}})])]}))],2):t._e(),t._v(" "),t.productSearch&&t.productSearch.numberOfElements<1?i("div",{staticClass:"alert alert-light no-results",attrs:{role:"alert"}},[t._v("\n              "+t._s(t.productSearchTranslations.nothingFound)+"\n            ")]):t._e(),t._v(" "),i("div",{staticClass:"arrow-down",class:t.showMoreDownEnabled?"":"disabled"},[i("div",{on:{click:function(e){return t.showMoreDown()}}})])])])]),t._v(" "),i("div",{staticClass:"modal-footer"},[i("input",{staticClass:"ssp-button d-inline save-close-btn",attrs:{value:t.fieldProductsTranslations.saveAndClose,type:"button","data-dismiss":"modal","aria-label":"Close"}})])])]),t._v(" "),i("input",{ref:"modalTrigger",attrs:{"data-toggle":"modal",type:"hidden"}})])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],!1,Yt,"data-v-c67a36f6",null).exports,Xt=i("yjzb"),te={name:"ProductsWithModalField",components:{TemplateField:X.a,ProductsWithModalFieldSelectModal:Qt},extends:tt.a,props:{value:{type:Array,default:function(){return[]}},isValid:{type:Boolean,default:!0},isNotValidMessage:{type:String,default:""},isValidMessage:{type:String,default:""}},data:function(){return{productNamePrdMapping:{}}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},fieldProductsTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form||void 0===window.snTranslations.form.field||void 0===window.snTranslations.form.field.products)&&window.snTranslations.form.field.products}},watch:{value:function(){this.doOnChangeValidation&&this.validate()}},created:function(){this.retrieveProductPrdNamesMapping()},methods:{validate:function(){this.disabled||(this.valid=!this.required||this.value&&this.value.length>0,this.errorMessage=this.valid?this.isValidMessage:this.commonTranslations.requiredField,this.isValid||(this.valid=!1,this.errorMessage=this.isNotValidMessage))},showSelect:function(){this.$refs.modalProductsFieldSelect.triggerModal()},deleteEntry:function(t){this.value.splice(t,1)},retrieveProductPrdNamesMapping:function(){var t=this;Xt.a.fetchMainFilterItems({language:this.config.language,type:"product",productsWithPrd:!0}).then((function(e){e&&e.forEach((function(e){t.$set(t.productNamePrdMapping,e.prd,e.name)}))}
1))},productNameByPrd:function(t){var e="not-found";return this.productNamePrdMapping[t]&&(e=this.productNamePrdMapping[t]),e}}};var ee=function(t){i("Vk46")},ie=Object(l.a)(te,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,required:t.required,disabled:t.disabled}},[i("div",{staticClass:"products-with-modal-field",class:{error:!t.valid}},[i("div",{staticClass:"select ssp-button",on:{click:function(e){return t.showSelect()}}},[t._v(t._s(t.fieldProductsTranslations.select))]),t._v(" "),t.value&&t.value.length>0?i("table",{staticClass:"list-entries-table"},[i("caption"),t._v(" "),t._l(t.value,(function(e,a){return i("tr",{key:"v_"+a},[i("td",[t._v(t._s(t.productNameByPrd(e)))]),t._v(" "),i("td",[i("div",{staticClass:"delete",on:{click:function(e){return t.deleteEntry(a)}}})])])}))],2):t._e(),t._v(" "),i("ProductsWithModalFieldSelectModal",{ref:"modalProductsFieldSelect"})],1)])}),[],!1,ee,"data-v-505d35d6",null).exports,ae={name:"ProductsWithFilterField",components:{TemplateField:X.a,Treeselect:Dt.a},extends:tt.a,props:{value:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},hasError:{type:Boolean,default:!1},hasErrorMessage:{type:String,default:""},selectAll:{type:Boolean,default:!1},cucumber:{type:String,default:null},cropList:{type:Array,default:function(){return[]}},preselectedCrops:{type:Array,default:function(){return[]}}},data:function(){return{loadingError:!1,multiple:!0,openOnClick:!0,clearOnSelect:!0,normalizerId:function(t){return{id:t.code,label:t.name}},productSelectedElements:[],productTreeSelectOpened:!1,productAdjustedTreeOpenDirection:"below",productOptions:null,productSearchQuery:"",allProductOptions:[],cropTreeSelectOpened:!1,cropAdjustedTreeOpenDirection:"below",cropSelectedElements:[],cropOptions:null,cropOptionsLoaded:!1,allCropElements:[],indicationTreeSelectOpened:!1,indicationAdjustedTreeOpenDirection:"below",indicationSelectedElements:[],indicationOptions:null,indicationOptionsLoaded:!1,initProductLoaded:!1}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},fieldProductsTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form||void 0===window.snTranslations.form.field||void 0===window.snTranslations.form.field.products)&&window.snTranslations.form.field.products},cropCucumber:function(){var t=null;return this.cucumber&&(t="".concat(this.cucumber,"_select_crop")),t},indicationCucumber:function(){var t=null;return this.cucumber&&(t="".concat(this.cucumber,"_select_indication")),t}},watch:{value:function(t,e){v.a.areArraysExactEqual(t,e)||(this.productSelectedElements=this.getCompValue())},productSelectedElements:function(t,e){if(-1!==t.indexOf("all")&&-1===e.indexOf("all")){var i=[];this.productOptions.forEach((function(t){i.push(t.code)})),this.productSelectedElements=i}-1===t.indexOf("all")&&-1!==e.indexOf("all")&&(this.productSelectedElements=[]);var a=this.productSelectedElements.indexOf("all");-1!==a&&this.productSelectedElements.length<this.productOptions.length&&this.productSelectedElements.splice(a,1),this.$emit("update:value",this.productSelectedElements),this.doOnChangeValidation&&this.initProductLoaded&&this.validate()},hasError:function(){this.doOnChangeValidation&&this.validate()},cropSelectedElements:function(){this.cropOptionsLoaded&&this.loadProducts()},indicationSelectedElements:function(){this.indicationOptionsLoaded&&this.loadProducts()}},created:function(){this.loadCrops()},methods:{handlePreselectedCrops:function(){var t=this;if(this.preselectedCrops&&this.preselectedCrops.length>0){var e=[];this.preselectedCrops.forEach((function(i){var a=t.allCropElements.find((function(t){var e=!1;if(t&&""!==t){var a=t.indexOf("#");if(-1!==a){var s=t.substring(a+1);s&&s===i&&(e=!0)}}return e}));a&&e.push(a)})),this.cropSelectedElements=e}},getCompValue:function(){var t=this;if(this.value&&this.value.length){var e=this.value;return this.allProductOptions&&(e=[],this.value.forEach((function(i){if(-1!==i.indexOf("{CODE}")){var a=t.allProductOptions.find((function(t){return t.sheCode===i}));a&&a.prd&&""!==a.prd?e.push(a.prd):e.push(i)}else e.push(i)}))),e}return[]},initProductLoadDone:function(){var t=this;this.productSelectedElements=this.getCompValue(),this.handlePreselectedCrops(),this.$nextTick((function(){t.initProductLoaded=!0}))},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";this.required&&(e=(t=this.productSelectedElements&&Object.keys(this.productSelectedElements).length>0)?"":this.commonTranslations.requiredField),this.hasError&&(t=!1,e=this.hasErrorMessage),this.valid=t,this.errorMessage=e}},getProductNameByCode:function(t){var e="";if(this.allProductOptions){var i=this.allProductOptions.find((function(e){return e.code===t}));i&&i.name&&(e=i.name)}return e},productLoadOptions:function(){this.loadProducts()},productSearchChange:function(t){this.productSearchQuery=t||"",this.loadProducts()},productOnTreeOpen:function(){this.productTreeSelectOpened=!0,this.productAdjustedTreeOpenDirection=this.$refs.productTreeSelect.prefferedOpenDirection},productOnTreeClose:function(){this.productTreeSelectOpened=!1},productRemove:function(t){this.isDisabled||(this.productSelectedElements=this.productSelectedElements.filter((function(e){return e!==t})))},loadProducts:function(){var t,e=this;t=0===this.cropSelectedElements.length?this.getCropsFilters(this.allCropElements):this.getCropsFilters(this.cropSelectedElements),Xt.a.fetchElements({language:this.config.language,filterElementType:"product",cropId:t.crops,cropGroupId:t.cropGroups,cropSubgroupId:t.cropSubgroups,indicationId:this.indicationSelectedElements,productSelectionSearchText:this.productSearchQuery,cropsFilterOr:"true"}).then((function(t){e.productOptions=[],t&&t.forEach((function(t){var i="{CODE}".concat(t.id);t.prd&&""!==t.prd&&(i=t.prd),e.productOptions.push({id:i,code:i,sheCode:"{CODE}".concat(t.id),prd:t.prd,name:t.name})})),e.selectAll&&e.productOptions.length>0&&e.fieldProductsTranslations.all&&""!==e.fieldProductsTranslations.all&&e.productOptions.unshift({id:"all",code:"all",name:e.fieldProductsTranslations.all}),0===e.allProductOptions.length&&(e.allProductOptions=e.productOptions.filter((function(t){return"all"!==t.code})),e.initProductLoadDone()),e.$refs&&e.$refs.productTreeSelect&&(e.$refs.productTreeSelect.searching=!1)}),(function(){e.loadingError=!0}))},getCropsFilters:function(t){var e={crops:[],cropGroups:[],cropSubgroups:[]};return t&&t.forEach((function(t){var i=t.indexOf("#");if(-1!==i){var a=t.substring(0,i),s=t.substring(i+1);a&&s&&("crop"===a?e.crops.push(s):"crop_group"===a?e.cropGroups.push(s):"crop_subgroup"===a&&e.cropSubgroups.push(s))}})),e},cropOnTreeOpen:function(){this.cropTreeSelectOpened=!0,this.cropAdjustedTreeOpenDirection=this.$refs.cropTreeSelect.prefferedOpenDirection},cropOnTreeClose:function(){this.cropTreeSelectOpened=!1},indicationOnTreeOpen:function(){this.indicationTreeSelectOpened=!0,this.indicationAdjustedTreeOpenDirection=this.$refs.indicationTreeSelect.prefferedOpenDirection},indicationOnTreeClose:function(){this.indicationTreeSelectOpened=!1},cropLoadOptions:function(){this.loadCrops()},loadCrops:function(){var t=this;this.cropOptions=[],this.cropList&&this.cropList.forEach((function(e){var i="".concat(e.type,"#").concat(e.id);t.cropOptions.push({id:i,code:i,name:e.label}),t.allCropElements.push(i)})),this.$nextTick((function(){t.cropOptionsLoaded=!0}))},indicationLoadOptions:function(){this.loadIndications()},loadIndications:function(){var t=this,e=this.getCropsFilters(this.allCropElements);Xt.a.fetchElements({language:this.config.language,filterElementType:"indication",cropId:e.crops,cropGroupId:e.cropGroups,cropSubgroupId:e.cropSubgroups,cropsFilterOr:"true",withProducts:"true"}).then((function(e){t.indicationOptions=[],e&&e.forEach((function(e){t.indicationOptions.push({id:e.id,code:e.id,name:e.name})})),t.$nextTick((function(){t.indicationOptionsLoaded=!0}))}),(function(){t.loadingError=!0}))}}};var se=function(t){i("WbpR")},ne=Object(l.a)(ae,(function(){var t,e,i,a=this,s=a.$createElement,n=a._self._c||s;return n("TemplateField",{staticClass:"products-with-filter-field treeselect-fix-overlapping",attrs:{"label-name":a.labelName,"label-tag":a.name,error:a.errorMessage,tooltip:a.tooltip,"tooltip-is-html":a.tooltipIsHtml,"tooltip-placement":a.tooltipPlacement,"tooltip-class":a.tooltipClass,"tooltip-close":a.tooltipClose,required:a.required,disabled:a.disabled,superscript:a.superscript,subscript:a.subscript}},[a.loadingError?[n("div",{staticClass:"col-12 mb-4"},[n("div",{staticClass:"alert alert-danger"},[a._v(a._s(a.translations.submit.error))])])]:a._e(),a._v(" "),n("div",{staticClass:"float-sm-right mb-3 filter-field"},[n("div",{staticClass:"treeselect-wrapper treeselect-filter",class:(t={},t["treeselect-open-"+a.cropAdjustedTreeOpenDirection]=a.cropTreeSelectOpened,t),attrs:{"data-cucumber":a.cropCucumber}},[n("div",{staticClass:"selectPlaceholder"},[a._v(a._s(a.fieldProductsTranslations.filterCrops)+"\n        "),a.cropSelectedElements&&a.cropSelectedElements.length>0?n("div",{staticClass:"treeselect-filter-count"},[a._v(a._s(a.cropSelectedElements.length))]):a._e()]),a._v(" "),n("treeselect",{ref:"cropTreeSelect",attrs:{options:a.cropOptions,"load-options":a.cropLoadOptions,multiple:a.multiple,clearable:a.clearable,"open-on-click":a.openOnClick,"clear-on-select":a.clearOnSelect,searchable:!1,normalizer
1:a.normalizerId,"open-direction":"below",placeholder:""},on:{open:a.cropOnTreeOpen,close:a.cropOnTreeClose},model:{value:a.cropSelectedElements,callback:function(t){a.cropSelectedElements=t},expression:"cropSelectedElements"}})],1)]),a._v(" "),n("div",{staticClass:"float-sm-right mr-3 mb-3 filter-field"},[n("div",{staticClass:"treeselect-wrapper treeselect-filter",class:(e={},e["treeselect-open-"+a.indicationAdjustedTreeOpenDirection]=a.indicationTreeSelectOpened,e),attrs:{"data-cucumber":a.indicationCucumber}},[n("div",{staticClass:"selectPlaceholder"},[a._v(a._s(a.fieldProductsTranslations.filterIndications)+"\n        "),a.indicationSelectedElements&&a.indicationSelectedElements.length>0?n("div",{staticClass:"treeselect-filter-count"},[a._v(a._s(a.indicationSelectedElements.length))]):a._e()]),a._v(" "),n("treeselect",{ref:"indicationTreeSelect",attrs:{options:a.indicationOptions,"load-options":a.indicationLoadOptions,multiple:a.multiple,clearable:a.clearable,"open-on-click":a.openOnClick,"clear-on-select":a.clearOnSelect,searchable:!1,normalizer:a.normalizerId,"open-direction":"below",placeholder:""},on:{open:a.indicationOnTreeOpen,close:a.indicationOnTreeClose},model:{value:a.indicationSelectedElements,callback:function(t){a.indicationSelectedElements=t},expression:"indicationSelectedElements"}})],1)]),a._v(" "),n("div",{staticClass:"clearfix"}),a._v(" "),n("div",[n("div",{staticClass:"treeselect-wrapper",class:(i={},i["treeselect-open-"+a.productAdjustedTreeOpenDirection]=a.productTreeSelectOpened,i.error=!a.valid,i),attrs:{"data-cucumber":a.cucumber}},[a.productSearchQuery?a._e():n("div",{staticClass:"selectPlaceholder"},[a._v(a._s(a.placeholder))]),a._v(" "),n("treeselect",{ref:"productTreeSelect",attrs:{options:a.productOptions,"load-options":a.productLoadOptions,multiple:a.multiple,clearable:a.clearable,"open-on-click":a.openOnClick,"clear-on-select":a.clearOnSelect,searchable:!0,normalizer:a.normalizerId,"open-direction":"below","no-options-text":a.commonTranslations.noResults,placeholder:""},on:{open:a.productOnTreeOpen,close:a.productOnTreeClose,"search-change":a.productSearchChange},model:{value:a.productSelectedElements,callback:function(t){a.productSelectedElements=t},expression:"productSelectedElements"}})],1),a._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:a.productSelectedElements&&a.productSelectedElements.length>0,expression:"productSelectedElements && productSelectedElements.length > 0"}],staticClass:"cropSelector"},[n("div",[a._l(a.productSelectedElements,(function(t,e){return["all"!==t?n("span",{key:e,staticClass:"button button-close",attrs:{"data-cucumber":"form_button_productRemove"},on:{click:function(e){return a.productRemove(t)}}},[a._v("\n            "+a._s(a.getProductNameByCode(t))+"\n          ")]):a._e()]}))],2)])])],2)}),[],!1,se,"data-v-5f31a776",null).exports,oe=i("Kc5l"),re={name:"LocationField",components:{Autocomplete:i.n(oe).a,TemplateField:X.a},extends:tt.a,props:{id:{type:String,default:""},value:{type:Object,default:function(){return{}}},anchor:{type:String,default:"name"},placeholder:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1}},data:function(){return{maxResults:window.snApiCaller.maxResults,countries:window.snConfig.country,languages:window.snApiCaller.languages,apiUrl:"".concat(window.snConfig.apiUrl,"/api/geodata/getByAddress"),currentValue:"",minSymbols:3,isAutocomplete:!1,locationFieldAllowCustom:window.snConfig.locationFieldAllowCustom}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},apiUrlDepended:function(){return"true"===this.locationFieldAllowCustom?"":this.apiUrl}},watch:{value:{handler:function(){this.updateCurrentValue(!1)}},doOnChangeValidation:function(){this.doOnChangeValidation&&this.validate()}},mounted:function(){this.$refs.autocomplete&&(this.$refs.autocomplete.$refs.input.autocomplete="newOff"),this.updateCurrentValue(!0)},methods:{updateCurrentValue:function(t){this.currentValue=this.value?this.value[this.anchor]:"",this.$refs.autocomplete&&(this.$refs.autocomplete.setValue(this.currentValue),this.$refs.autocomplete.$refs.input.autocomplete="newOff"),this.doOnChangeValidation&&!t&&this.validate()},updateLocation:function(t){this.$emit("update:value",t)}
1,renderChild:function(t,e,i,a){return v.a.renderDropdownDOM(t,e,i,a)},showHideSuggestions:function(t){0===t.length&&this.$refs.autocomplete.clearInput()},removeInvalidSelection:function(t){if("true"===this.locationFieldAllowCustom){this.currentValue=t.target._value;var e={};this.value&&(e=this.value),e[this.anchor]=this.currentValue,this.updateLocation(e),this.doOnChangeValidation&&this.validate()}else null!==t.target._value&&t.target._value!==this.currentValue&&(this.currentValue="",this.$refs.autocomplete.setValue(this.currentValue),this.updateLocation({}),this.doOnChangeValidation&&this.validate())},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";this.required&&(e=(t=this.currentValue&&this.currentValue.length>0)?"":this.commonTranslations.requiredField),this.valid=t,this.errorMessage=e}}}};var le=function(t){i("nEkI")},ce=Object(l.a)(re,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,"display-required-flag":t.displayRequiredFlag,disabled:t.disabled,superscript:t.superscript,subscript:t.subscript}},[i("autocomplete",{ref:"autocomplete",attrs:{min:t.minSymbols,url:t.apiUrlDepended,customParams:{countries:t.countries,maxresults:t.maxResults,languages:t.languages,autocomplete:t.isAutocomplete},classes:{input:"form-control "+(t.valid?"":"error")},initValue:t.currentValue,"on-select":t.updateLocation,placeholder:t.placeholder,onBlur:t.removeInvalidSelection,onShouldRenderChild:function(e){return t.renderChild(e,t.showZipcode,t.showRegion1,t.showRegion2)},onInput:t.showHideSuggestions,anchor:t.anchor,label:t.anchor,"data-cucumber":t.cucumber,className:"pzBarAddress",param:"address"},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}})],1)}),[],!1,le,"data-v-22ec60d7",null).exports,ue={name:"ChecklistField",components:{CheckboxField:at,TemplateField:X.a},extends:tt.a,props:{value:{type:Array,default:function(){return[]}},list:{type:Array,default:function(){return[]}},validationText:{type:String,default:""},tag:{type:String,default:"code"},multiple:{type:Boolean,default:!0},validateChildren:{type:Boolean,default:!1},childrenRequired:{type:Boolean,default:!0},hasSspMapping:{type:Boolean,default:!0},customClass:{type:String,default:null}},data:function(){return{selection:[]}},watch:{value:function(){var t=this;this.selection=_t()(this.value),this.$nextTick((function(){t.doOnChangeValidation&&t.validate()}))}},mounted:function(){this.value&&(this.selection=_t()(this.value))},methods:{isChecked:function(t,e){return void 0!==this.selection.find((function(i){return i[e]===t[e]}))},itemClicked:function(t,e,i){e?(this.multiple||(this.selection=[]),this.selection.push(t)):this.selection=this.selection.filter((function(e){return e[i]!==t[i]})),this.$emit("update:value",this.selection),this.doOnChangeValidation&&this.validate()},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";if(this.required&&(e=(t=this.selection.length>0)?"":this.validationText||this.commonTranslations.requiredField),this.required&&this.validateChildren)if(this.$refs&&this.$refs.checkboxFieldRef)this.$refs.checkboxFieldRef.forEach((function(t){return t.validate()})),this.$refs.checkboxFieldRef.find((function(t){return!t.valid}))&&(e=(t=!1)?"":this.validationText||this.commonTranslations.requiredField);this.valid=t,this.errorMessage=e}}}};var de=function(t){i("T7BK")},pe=Object(l.a)(ue,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"form-id":t.formId,"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,"display-required-flag":t.displayRequiredFlag,"has-ssp-mapping":t.hasSspMapping}},[i("div",{staticClass:"checklist-wrapper",class:t.customClass},t._l(t.list,(function(e,a){return i("CheckboxField",{key:a,ref:"checkboxFieldRef",refInFor:!0,attrs:{"form-id":t.formId,value:t.isChecked(e,t.tag),name:e[t.tag],id:e[t.tag],"checkbox-label":e["label-agreement"]?e["label-agreement"]:e.name,required:t.childrenRequired&&e.required,disabled:e.disabled,"display-required-flag":t.validateChildren&&t.displayRequiredFlag,"validate-children":t.validateChildren,"do-on-change-validation":t.doOnChangeValidation,cucumber:t.cucumber+"_"+a,"has-ssp-mapping":t.hasSspMapping},on:{"update:value":function(i){return t.itemClicked(e,i,t.tag)}}})})),1)])}),[],!1,de,"data-v-2db78648",null).exports,me={name:"VerifyMobilePopupComp",components:{PopupComp:o.a,TextField:U.a,Loader:j.a},props:{phonePattern:{type:RegExp,default:function(){}},back:{type:String,default:""}},data:function(){return{mobileValue:"",loaderVisible:!1,loadingError:!1,limitReachedError:!1}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError}},methods:{open:function(t){this.mobileValue=t,this.$refs.popupRef.open()},close:function(){this.$refs.popupRef.close()},cancel:function(){this.close()},emitClose:function(){this.$emit("close")},submit:function(){var t=this;this.$refs.mobileRef.validate(),this.$refs.mobileRef.valid&&(this.loaderVisible=!0,this.$store.dispatch("forms/verify",{type:"mobile",mobile:this.mobileValue,back:this.back}).then((function(){window.location.href="".concat(t.config.verificationMobilePageUrl,"?isVerfiyMobile=true&back=").concat(t.back)})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.limitReachedError=!0):t.loadingError=!0})))}}};var he=function(t){i("JXLB")},fe=Object(l.a)(me,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("PopupComp",{ref:"popupRef",on:{close:function(e){return t.emitClose()}}},[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.verifyMobilePopup.label?i("h2",[t._v("\n        "+t._s(t.translations.verifyMobilePopup.label)+"\n      ")]):t._e(),t._v(" "),t.translations.verifyMobilePopup.description?i("div",{domProps:{innerHTML:t._s(t.translations.verifyMobilePopup.description)}}):t._e()])]),t._v(" "),t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.limitReachedError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.verifyLimitReached))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row mb-4 form-wrapper"},[i("div",{staticClass:"col-12"},[i("TextField",{ref:"mobileRef",attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:!0,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline back-button mr-md-3",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.cancel)},on:{click:function(e){return t.cancel()}}}),t._v(" "),i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.verifyMobilePopup.confirm)},on:{click:function(e){return t.submit()}}})])]),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,he,"data-v-7276308a",null).exports,ge={name:"VerifyEmailPopupComp",components:{PopupComp:o.a,TextField:U.a,Loader:j.a},props:{emailPattern:{type:RegExp,default:function(){}},back:{type:String,default:""}},data:function(){return{emailValue:"",loaderVisible:!1,loadingError:!1,limitReachedError:!1}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError}},methods:{open:function(t){this.emailValue=t,this.$refs.popupRef.open()},close:function(){this.$refs.popupRef.close()},cancel:function(){this.close()},emitClose:function(){this.$emit("close")},submit:function(){var t=this;this.$refs.emailRef.validate(),this.$refs.emailRef.valid&&(this.loaderVisible=!0,this.$store.dispatch("forms/verify",{type:"email",email:this.emailValue,back:this.back}).then((function(){window.location.href=t.config.verificationEmailInfoPageUrl})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.limitReachedError=!0):t.loadingError=!0})))}}};var ve=function(t){i("HNo0")},be=Object(l.a)(ge,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("PopupComp",{ref:"popupRef",on:{close:function(e){return t.emitClose()}}},[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.verifyEmailPopup.label?i("h2",[t._v("\n        "+t._s(t.translations.verifyEmailPopup.label)+"\n      ")]):t._e(),t._v(" "),t.translations.verifyEmailPopup.description?i("div",{domProps:{innerHTML:t._s(t.translations.verifyEmailPopup.description)}}):t._e()])]),t._v(" "),t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.limitReachedError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.verifyLimitReached))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row mb-4 form-wrapper"},[i("div",{staticClass:"col-12"},[i("TextField",{ref:"emailRef",attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",required:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline back-button mr-md-3",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.cancel)},on:{click:function(e){return t.cancel()}}}),t._v(" "),i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.verifyEmailPopup.confirm)},on:{click:function(e){return t.submit()}}})])]),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,ve,"data-v-6cedb4ea",null).exports,we={name:"FileUploadField",components:{TemplateField:X.a},extends:tt.a,props:{value:{type:String,default:""},multiple:{type:Boolean,default:!1}},data:function(){return{fileList:[]}},computed:{fileNames:function(){return this.fileList.map((function(t){return t.name})).join(",")}},watch:{fileList:function(){this.doOnChangeValidation&&this.validate()}}
1,methods:{onChange:function(t){var e=[];Array.from(Array(t.length).keys()).forEach((function(i){return e.push(t[i])})),this.fileList=e,this.$emit("update",this.fileList)},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";this.required&&(e=(t=this.fileList&&this.fileList.length>0)?"":this.commonTranslations.requiredField),this.valid=t,this.errorMessage=e}}}};var ye=function(t){i("MFCk")},Ce=Object(l.a)(we,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,disabled:t.disabled,superscript:t.superscript,subscript:t.subscript}},[i("div",{staticClass:"file-input-wrapper form-control",class:{error:!t.valid}},[t.fileNames?i("span",[t._v(t._s(t.fileNames))]):i("span",{staticClass:"placeholder"},[t._v(t._s(t.placeholder))]),t._v(" "),t.disabled?t._e():i("input",{staticClass:"file-input",attrs:{name:t.name,multiple:t.multiple,type:"file",accept:"image/png, image/jpeg, application/pdf"},on:{change:function(e){return t.onChange(e.target.files)}}})])])}),[],!1,ye,"data-v-3727beb0",null).exports,_e=i("cGzQ"),Se=i("lwsE"),Te=i.n(Se),Pe=i("W8MJ"),Fe=i.n(Pe),xe=new(function(){return Fe()((function t(){Te()(this,t)}),[{key:"getInitFormData",value:function(t){var e={};if(t&&t.templateForm){var i=t.templateForm.$children.filter((function(e){return t.templateForm.fieldTypes.includes(e.$options._componentTag)}));e=this.getInitFormDataForFields(i)}return e}},{key:"getInitFormDataForFields",value:function(t){var e={};return t&&(e=ut.a.buildFormContent(t,""),Object.keys(e).forEach((function(t){Array.isArray(e[t])&&(e[t]=JSON.parse(JSON.stringify(e[t])))}))),e}},{key:"checkFormDataChanged",value:function(t,e){var i=!1;if(t&&t.templateForm){var a=t.templateForm.$children.filter((function(e){return t.templateForm.fieldTypes.includes(e.$options._componentTag)}));i=this.checkFormDataChangedForFields(a,t.templateForm.doCheckFormDataChanged,e)}return i}},{key:"checkFormDataChangedForFields",value:function(t,e,i){var a=!1;if(t&&e)for(var s=ut.a.buildFormContent(t,""),n=Object.keys(s),o=0;o<n.length;o+=1){var r=n[o];if(!Object.prototype.hasOwnProperty.call(i,r)){a=!0;break}if("object"===yt()(s[r])){if(JSON.stringify(s[r])!==JSON.stringify(i[r])){a=!0;break}}else if(s[r]!==i[r]){a=!0;break}}return a}},{key:"getInitFormDataForValue",value:function(t){var e=null;return t&&(e=JSON.parse(JSON.stringify(t))),e}},{key:"checkFormDataChangedForValue",value:function(t,e,i){var a=!1;return t&&t.templateForm&&t.templateForm.doCheckFormDataChanged&&(e?i?JSON.stringify(e)!==JSON.stringify(i)&&(a=!0):a=!0:i&&(a=!0)),a}}])}()),Oe={name:"DataSection",props:{enableEdit:{type:Boolean,default:!0},enableDelete:{type:Boolean,default:!1},tealiumValue:{type:String,default:""}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}}};var ke=function(t){i("Ryf5")},Le=Object(l.a)(Oe,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("article",{staticClass:"ssp-box-content"},[i("div",{staticClass:"ssp-box-data-wrapper"},[t._t("default")],2),t._v(" "),i("div",{staticClass:"ssp-buttons-wrapper justify-content-center"},[t.enableDelete?i("div",{staticClass:"ssp-button basic mb-3 mb-md-0",on:{click:function(e){return t.$emit("delete")}}},[t._m(0)]):t._e(),t._v(" "),t.enableEdit?i("div",{staticClass:"ssp-button mb-0",attrs:{"data-tealium-value":"ssp_"+t.tealiumValue+"_edit","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return t.$emit("edit")}}},[t._v("\n      "+t._s(t.translations.links.edit)+"\n    ")]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("i",{staticClass:"icon icon-trash",attrs:{"aria-hidden":"true"}})])}],!1,ke,"data-v-5db422b0",null).exports,Ie={name:"DataSectionEntry",props:{headline:{type:String,default:""},headlineSecondary:{type:String,default:""},hasData:{type:Boolean,default:!1},noDataText:{type:String,default:""},hasColumns:{type:Boolean,default:!1},addBoxMb:{type:Boolean,default:!0}}};var Ee=function(t){i("FPQu")},Ve=Object(l.a)(Ie,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-box-data",class:{"mb-3":t.addBoxMb}},[i("div",{staticClass:"row"},[i("div",{class:t.hasColumns?"col-6":"col-12"},[t.headline?i("h4",[t._v(t._s(t.headline))]):t._e(),t._v(" "),t.hasData?[t._t("default")]:[t.noDataText?i("div",[i("i",{staticClass:"icon icon-info mr-1",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",[t._v(t._s(t.noDataText))])]):t._e()]],2),t._v(" "),t.hasColumns?i("div",{staticClass:"col-6"},[t.headlineSecondary?i("h4",[t._v(t._s(t.headlineSecondary))]):t._e(),t._v(" "),t._t("secondary")],2):t._e(),t._v(" "),t._t("test_2")],2)])}),[],!1,Ee,"data-v-5335d8be",null).exports;function Ae(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function De(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?Ae(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ae(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Me={name:"PersonalAddressSection",components:{DataSection:Le,DataSectionEntry:Ve,DebugMode:b.a,CheckboxField:at},props:{formId:{type:String,default:""},headline:{type:String,default:""},company:{type:String,default:""},salutation:{type:String,default:""},title:{type:String,default:""},firstName:{type:String,default:""},lastName:{type:String,default:""},street:{type:String,default:""},streetNumber:{type:String,default:""},zipcode:{type:String,default:""},city:{type:String,default:""},eircode:{type:String,default:""},email:{type:String,default:""},mobile:{type:String,default:""},phone:{type:String,default:""},fax:{type:String,default:""},otEmailConsent:{type:Boolean,default:null},otMobileConsent:{type:Boolean,default:null},disableCompany:{type:Boolean,default:!1},tealiumValue:{type:String,default:""}},computed:De(De({},Object(m.c)({billingAddressLocked:function(t){return t.forms.billingAddressLocked}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}
1,useEircode:function(){return"IE"===this.config.country},hasAddressData:function(){return!!(this.salutation||this.title||this.firstName||this.lastName||this.street||this.streetNumber||this.city||!this.useEircode&&this.zipcode||this.useEircode&&this.eircode)}}),methods:{openEditPopup:function(){this.$emit("popup-edit")}}};var Re=function(t){i("nRv7")},$e=Object(l.a)(Me,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"ssp-box-wrapper"},[t.headline?i("h2",[t._v("\n    "+t._s(t.headline)+"\n    "),i("DebugMode",{attrs:{"form-id":t.formId}})],1):t._e(),t._v(" "),i("DataSection",{attrs:{"enable-edit":!0,"tealium-value":t.tealiumValue},on:{edit:function(e){return t.openEditPopup()}}},[t.company&&t.company!==t.firstName+" "+t.lastName?i("DataSectionEntry",{attrs:{"has-data":!!t.company,headline:t.translations.category.company}},[i("div",[i("p",{class:{disabled:t.disableCompany}},[t._v(t._s(t.company))])])]):t._e(),t._v(" "),i("DataSectionEntry",{attrs:{headline:t.translations.category.address,"has-data":t.hasAddressData,"no-data-text":t.translations.account.info.editData}},[i("div",[t.salutation?i("p",[t._v(t._s(t.salutation))]):t._e(),t._v(" "),t.title?i("p",[t._v(t._s(t.title))]):t._e(),t._v(" "),t.firstName||t.lastName?i("p",[t.firstName?[t._v(t._s(t.firstName))]:t._e(),t._v(" "),t.lastName?[t._v(t._s(t.lastName))]:t._e()],2):t._e(),t._v(" "),t.street||t.streetNumber?i("p",{class:{disabled:t.billingAddressLocked}},[t.street?[t._v(t._s(t.street))]:t._e(),t._v(" "),t.streetNumber?[t._v(t._s(t.streetNumber))]:t._e()],2):t._e(),t._v(" "),t.city||!t.useEircode&&t.zipcode||t.useEircode&&t.eircode?i("p",{class:{disabled:t.billingAddressLocked}},[!t.useEircode&&t.zipcode?[t._v(t._s(!t.useEircode&&t.zipcode))]:t._e(),t._v(" "),t.useEircode&&t.eircode?[t._v(t._s(t.useEircode&&t.eircode))]:t._e(),t._v(" "),t.city?[t._v(t._s(t.city))]:t._e()],2):t._e()])]),t._v(" "),i("DataSectionEntry",{attrs:{headline:t.translations.category.communication,"has-data":!!(t.email||t.mobile||t.phone||t.fax),"no-data-text":t.translations.account.info.editData}},[i("div",[t.email?i("p",{staticClass:"disabled"},[t._v("\n          "+t._s(t.email)+"\n        ")]):t._e(),t._v(" "),t.mobile?i("p",{staticClass:"disabled"},[t._v(t._s(t.mobile))]):t._e(),t._v(" "),t.phone?i("p",[t._v(t._s(t.phone))]):t._e(),t._v(" "),t.fax?i("p",[t._v(t._s(t.fax))]):t._e()])]),t._v(" "),null!==t.otEmailConsent||null!==t.otMobileConsent?i("DataSectionEntry",{attrs:{"has-data":!0,headline:t.translations.category.otConsent}},[i("div",[null!==t.otEmailConsent?i("CheckboxField",{staticClass:"pas-ot-checkbox-field",attrs:{value:t.otEmailConsent,disabled:!0,required:!1,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent}}):t._e(),t._v(" "),null!==t.otMobileConsent?i("CheckboxField",{staticClass:"pas-ot-checkbox-field",attrs:{value:t.otMobileConsent,disabled:!0,required:!1,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent}}):t._e()],1)]):t._e()],1)],1)}),[],!1,Re,"data-v-4abdbff8",null).exports;function Ne(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function je(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ne(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ze={name:"PostalAddressSection",components:{DataSection:Le,DataSectionEntry:Ve,DebugMode:b.a},props:{formId:{type:String,default:""},headline:{type:String,default:""},company:{type:String,default:""},salutation:{type:String,default:""},firstName:{type:String,default:""},lastName:{type:String,default:""},street:{type:String,default:""},streetNumber:{type:String,default:""},zipcode:{type:String,default:""},city:{type:String,default:""},eircode:{type:String,default:""},tealiumValue:{type:String,default:""}},computed:je(je({},Object(m.c)({billingAddressLocked:function(t){return t.forms.billingAddressLocked}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form}
1,useEircode:function(){return"IE"===this.config.country},hasAddressData:function(){return!!(this.salutation||this.firstName||this.lastName||this.street||this.streetNumber||this.city||this.company&&this.company!=="".concat(this.firstName," ").concat(this.lastName)||!this.useEircode&&this.zipcode||this.useEircode&&this.eircode)}}),methods:{openEditPopup:function(){this.$emit("popup-edit")}}};var Be=function(t){i("oFzM")},qe=Object(l.a)(ze,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"ssp-box-wrapper"},[t.headline?i("h2",[t._v("\n    "+t._s(t.headline)+"\n    "),i("DebugMode",{attrs:{"form-id":t.formId}})],1):t._e(),t._v(" "),i("DataSection",{attrs:{"enable-edit":!0,"tealium-value":t.tealiumValue},on:{edit:function(e){return t.openEditPopup()}}},[i("DataSectionEntry",{attrs:{"has-data":t.hasAddressData,"no-data-text":t.translations.account.info.editData}},[i("div",[t.company!==t.firstName+" "+t.lastName?i("p",[t._v(t._s(t.company))]):t._e(),t._v(" "),t.salutation?i("p",[t._v(t._s(t.salutation))]):t._e(),t._v(" "),t.firstName||t.lastName?i("p",[t.firstName?[t._v(t._s(t.firstName))]:t._e(),t._v(" "),t.lastName?[t._v(t._s(t.lastName))]:t._e()],2):t._e(),t._v(" "),t.street||t.streetNumber?i("p",{class:{disabled:t.billingAddressLocked}},[t.street?[t._v(t._s(t.street))]:t._e(),t._v(" "),t.streetNumber?[t._v(t._s(t.streetNumber))]:t._e()],2):t._e(),t._v(" "),t.city||!t.useEircode&&t.zipcode||t.useEircode&&t.eircode?i("p",{class:{disabled:t.billingAddressLocked}},[!t.useEircode&&t.zipcode?[t._v(t._s(!t.useEircode&&t.zipcode))]:t._e(),t._v(" "),t.useEircode&&t.eircode?[t._v(t._s(t.useEircode&&t.eircode))]:t._e(),t._v(" "),t.city?[t._v(t._s(t.city))]:t._e()],2):t._e()])])],1)],1)}),[],!1,Be,"data-v-49bd9c70",null).exports;function Ue(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function He(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ue(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ge={name:"Popup",components:{TemplateForm:Ot,TextField:U.a,CheckboxField:at,TextFieldMulti:It,SelectField:Et.a,CropsField:Ht,LocationField:ce,DebugMode:b.a},props:{id:{type:String,default:""},formId:{type:String,default:""},headline:{type:String,default:""},text:{type:String,default:""},open:{type:Boolean,default:!1},formDefinition:{type:Array,default:function(){return[]}},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},emailPattern:{type:RegExp,default:function(){}},phonePattern:{type:RegExp,default:function(){}},faxPattern:{type:RegExp,default:function(){}},numberPattern:{type:RegExp,default:function(){}},eircodePattern:{type:RegExp,default:function(){}},dateOfBirthPattern:{type:RegExp,default:function(){}},company:{type:String,default:""},salutation:{type:Object,default:function(){}},title:{type:Object,default:function(){}},firstName:{type:String,default:""},lastName:{type:String,default:""},street:{type:String,default:""},streetNumber:{type:String,default:""},location:{type:Object,default:function(){}},eircode:{type:String,default:""},email:{type:String,default:""},mobile:{type:String,default:""},phone:{type:String,default:""},fax:{type:String,default:""},dateOfBirth:{type:String,default:""},taxType:{type:Object,default:function(){}},taxNumber:{type:String,default:""},partitaIVA:{type:String,default:""},pecCode:{type:String,default:""},pecEmail:{type:String,default:""},officialFarmId:{type:String,default:""},contactStreet:{type:String,default:""},contactStreetNumber:{type:String,default:""},contactLocation:{type:Object,default:function(){}},contactEircode:{type:String,default:""},otMobileConsent:{type:Boolean,default:!1},otEmailConsent:{type:Boolean,default:!1},isFormLoaded:{type:Boolean,default:!1},showPersonalData:{type:Boolean,default:!1},showPostalData:{type:Boolean,default:!1},showTaxData:{type:Boolean,default:!1},showOccupationData:{type:Boolean,default:!1},disableCompany:{type:Boolean,default:!1},enableSubmit:{type:Boolean,default:!0},occupation:{type:Object,default:function(){}},jobTitle:{type:Object,default:function(){}},farmSize:{type:String,default:""},arableAreaSize:{type:String,default:""},organicAreaSize:{type:String,default:""},crops:{type:Array,default:function(){return[]}},areaPerCrop:{type:Array,default:function(){return[]}},disableOccupation:{type:Boolean,default:!1},tealiumValue:{type:String,default:""},optType:{type:String,default:""},formOutsideMyServices:{type:Boolean,default:!1}},data:function(){return this.initFormData={},{attemptSubmit:!1,salutationValue:{},titleValue:{},locationValue:{},contactLocationValue:{},companyValue:"",firstNameValue:"",lastNameValue:"",streetValue:"",streetNumberValue:"",eircodeValue:"",emailValue:"",mobileValue:"",phoneValue:"",faxValue:"",dateOfBirthValue:"",taxTypeValue:{},taxNumberValue:"",partitaIVAValue:"",pecTypeValue:{},pecCodeValue:"",pecEmailValue:"",officialFarmIdValue:"",contactStreetValue:"",contactStreetNumberValue:"",contactEircodeValue:"",otMobileConsentValue:null,otEmailConsentValue:null,occupationValue:{},occupationTypeValue:{},jobTitleValue:{},cropListByOccupation:[],farmSizeValue:"",arableAreaSizeValue:"",organicAreaSizeValue:"",cropsValue:[],cropAgriculturalAreaValue:[],cropListByArea:[],prefilledCrops:[],prefilledAreaPerCrop:[],errorFarmSize:!1,cropListCurrent:[],isEnabledCrops:!1,isRequiredCrops:!1,isEnabledFarmSize:!1,isEnabledArableAreaSize:!1,occupationOptionsFiltered:[]}},computed:He(He({},Object(m.c)({billingAddressLocked:function(t){return t.forms.billingAddressLocked},loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},hasInvalidFields:function(){var t=!0;
1return this.$refs&&this.$refs["templateForm_".concat(this.id)]&&(t=this.$refs["templateForm_".concat(this.id)].hasInvalidFields),t},show:{get:function(){return this.open},set:function(t){return t}},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},salutationOptions:function(){return void 0!==window.salutationConfig&&window.salutationConfig.sort((function(t,e){return e.ordering-t.ordering}))},titleOptions:function(){return void 0!==window.titleConfig&&window.titleConfig.sort((function(t,e){return e.ordering-t.ordering}))},jobTitleOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.jobTitle||!window.sspSelectFieldConfig.jobTitle.options.length)&&window.sspSelectFieldConfig.jobTitle.options.sort((function(t,e){return e.ordering-t.ordering}))},occupationOptions:function(){return void 0!==window.occupationConfig?window.occupationConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},occupationTypeOptions:function(){return void 0!==window.occupationTypeConfig?window.occupationTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},taxTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.taxType&&window.sspSelectFieldConfig.taxType.options.length?window.sspSelectFieldConfig.taxType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},pecTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.pecType&&window.sspSelectFieldConfig.pecType.options.length?window.sspSelectFieldConfig.pecType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},enableSalesForce:function(){return _e.a.useSalesForce()},useEircode:function(){return"IE"===this.config.country},isPartitaIVASpecialCase:function(){return this.isEnabled("partitaIVA")},partitaIVAFieldValidationRegExp:function(){return new RegExp("^(I|i)(T|t)[0-9]{11}$")},taxNumberFieldValidationRegExp:function(){var t=null;return this.isEnabled("taxType")&&this.taxTypeValue&&this.taxTypeValue.code?this.config&&this.config.fieldValidationRegExps&&this.config.fieldValidationRegExps["taxNumber_".concat(this.taxTypeValue.code)]&&(t=new RegExp(this.config.fieldValidationRegExps["taxNumber_".concat(this.taxTypeValue.code)])):this.isPartitaIVASpecialCase&&(t=new RegExp("(^[0-9]{11}$)|(^[A-Za-z0-9]{16}$)")),t},isFieldRequiredPartitaIVATaxNumberSpecialCase:function(){var t=!1;this.isPartitaIVASpecialCase&&(this.isEnabled("taxNumber")&&this.taxNumberValue&&new RegExp("^[0-9]{11}$").test(this.taxNumberValue)&&(t=!0));return t},pecCodeFieldValidationRegExp:function(){var t=null;return this.config&&this.config.fieldValidationRegExps&&this.config.fieldValidationRegExps.pecCode&&(t=new RegExp(this.config.fieldValidationRegExps.pecCode)),t},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},companyFieldValidationRegExp:function(){var t=null;return this.translations.companyValidationRegExp&&""!==this.translations.companyValidationRegExp&&(t=new RegExp(this.translations.companyValidationRegExp,"i")),t}}),watch:{show:function(){this.show?(v.a.bodyAddClass("overflow-hidden"),this.setInitFormData()):v.a.bodyRemoveClass("overflow-hidden")},location:{handler:function(t,e){t&&e&&t.zipcode!==e.zipcode&&t.name!==e.name&&(this.locationValue=this.location)}},contactLocation:{handler:function(t,e){t&&e&&t.zipcode!==e.zipcode&&t.name!==e.name&&(this.contactLocationValue=this.contactLocation)}},occupationTypeValue:function(){var t=this;this.isEnabled("occupationType")?this.occupationTypeValue&&this.occupationTypeValue.code?(this.occupationOptionsFiltered=this.occupationOptions.filter((function(e){return e.bpType===t.occupationTypeValue.code})),this.occupationValue&&this.occupationValue.accountDetail&&void 0===this.occupationOptionsFiltered.find((function(e){return e.accountDetail===t.occupationValue.accountDetail}))&&(this.occupationValue={})):this.occupationOptionsFiltered=this.occupationOptions:this.occupationOptionsFiltered=this.occupationOptions},occupationValue:{handler:function(t,e){v.a.areEqualShallow(t,e)&&e||(this.cropListByOccupation=this.snConfigAllSSPCrops?v.a.sortByText(this.snConfigAllSSPCrops):[],this.isEnabledCrops=this.occupationValue.showCrops,this.isRequiredCrops=this.occupationValue.mandatoryCrops,this.isEnabledFarmSize=this.occupationValue.showFarmSize,this.isEnabledArableAreaSize=this.occupationValue.showArableAreaSize,this.cropListByArea=[],e&&e.id&&(this.prefilledCrops=[],this.prefilledAreaPerCrop=[]))},deep:!1},cropsValue:{handler:function(t,e){var i=this;if(t&&e){var a=t.filter((function(t){return!e.includes(t)})),s=e.filter((function(e){return!t.includes(e)}));a.length&&a.forEach((function(t){i.cropListByArea.push({name:v.a.getCropByAmigaCode(t,i.snConfigAllSSPCrops),id:t,value:""})})),s.length&&(this.cropListByArea=this.cropListByArea.filter((function(t){return!s.includes(t.id)}))),this.errorFarmSize&&0===this.cropListByArea.length&&(this.errorFarmSize=!1)}},deep:!1},farmSizeValue:function(){this.updateAgriculturalArea(this.cropAgriculturalAreaValue)},$data:{handler:function(){this.checkFormDataChangedAndDisableSubmit()},deep:!0}},mounted:function(){var t=this;this.occupationOptionsFiltered=this.occupationOptions,this.$nextTick((function(){t.init()}))},methods:{init:function(){var t=this;this.salutationValue=this.salutation,this.titleValue=this.title,this.locationValue=this.location,this.contactLocationValue=this.contactLocation,this.firstNameValue=this.firstName,this.companyValue=this.company,this.lastNameValue=this.lastName,this.streetValue=this.street,this.streetNumberValue=this.streetNumber,this.eircodeValue=this.eircode,this.emailValue=this.email,this.mobileValue=this.mobile,this.phoneValue=this.phone,this.faxValue=this.fax,this.dateOfBirthValue=this.dateOfBirth,this.contactStreetValue=this.contactStreet,this.contactStreetNumberValue=this.contactStreetNumber,this.contactEircodeValue=this.contactEircode,this.taxTypeValue=this.taxType,this.taxNumberValue=this.taxNumber,this.partitaIVAValue=this.partitaIVA,this.pecCodeValue=this.pecCode,this.pecEmailValue=this.pecEmail,this.officialFarmIdValue=this.officialFarmId,this.otEmailConsentValue=this.otEmailConsent,this.otMobileConsentValue=this.otMobileConsent;var e="";if(this.pecCodeValue&&""!==this.pecCodeValue?e="pecCode":this.pecEmailValue&&""!==this.pecEmailValue&&(e="pecEmail"),e&&(this.pecTypeValue=v.a.retrieveValue(this.pecTypeOptions,e,"code",{})),this.occupationValue=this.occupation,this.occupation&&this.occupationTypeOptions&&this.occupation.bpType){var i=this.occupationTypeOptions.find((function(e){return e.code===t.occupation.bpType}));i&&(this.occupationTypeValue=i)}this.jobTitleValue=this.jobTitle,this.farmSizeValue=this.farmSize,this.arableAreaSizeValue=this.arableAreaSize,this.organicAreaSizeValue=this.organicAreaSize,this.prefilledCrops=this.crops,this.prefilledAreaPerCrop=this.areaPerCrop,this.cropsValue=this.crops,this.cropAgriculturalAreaValue=this.areaPerCrop,this.$refs&&this.$refs.cropsRef&&this.$refs.cropsRef.handlePreselected()},getFormDataFields:function(){var t=[];
1if(this.$refs&&this.$refs["templateForm_".concat(this.id)]){var e=this.$refs["templateForm_".concat(this.id)];t=e.$children.filter((function(t){return e.fieldTypes.includes(t.$options._componentTag)}))}return t},setInitFormData:function(){var t=this;setTimeout((function(){var e=t.getFormDataFields();t.initFormData=xe.getInitFormDataForFields(e)}),0),this.checkFormDataChangedAndDisableSubmit()},checkFormDataChangedAndDisableSubmit:function(){var t=this;setTimeout((function(){if(t.initFormData&&Object.keys(t.initFormData).length>0){var e=t.getFormDataFields();xe.checkFormDataChangedForFields(e,!0,t.initFormData)?t.setSubmitDisabled(!1):t.setSubmitDisabled(!0)}}),0)},triggerUpdateAddressSection:function(){this.close("saveInState")},triggerPopupInfo:function(){1===this.$refs["templateForm_".concat(this.id)].flagSubmit?this.close("success"):-1===this.$refs["templateForm_".concat(this.id)].flagSubmit&&this.close("error")},isEnabled:function(t){return(!_e.a.useSalesForce()||"streetNumber"!==t&&"contactStreetNumber"!==t)&&(!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display)},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},isMobileRequired:function(){return this.isRequired("mobile")&&!this.phoneValue||this.isRequired("mobile")&&!!this.phoneValue&&!!this.mobileValue},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.show=!1,this.$emit("close",{state:t,msg:e}),t||this.init()},validate:function(){this.$refs["templateForm_".concat(this.id)].triggerSubmit({preventDefault:function(){}})},updateAgriculturalArea:function(t){if(this.cropAgriculturalAreaValue=t,t)if(this.farmSizeValue&&""!==this.farmSizeValue){var e=0;this.cropAgriculturalAreaValue.forEach((function(t){e+=v.a.stringToDecimal(t.value)})),this.errorFarmSize=v.a.stringToDecimal(this.farmSizeValue)<e}else this.errorFarmSize=!1;else this.errorFarmSize=!1},isLessThanFarmSize:function(t){var e=!0;return t&&""!==t&&this.farmSizeValue&&""!==this.farmSizeValue&&(e=v.a.stringToDecimal(t)<=v.a.stringToDecimal(this.farmSizeValue)),e},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""},setSubmitDisabled:function(t){this.$refs&&this.$refs["templateForm_".concat(this.id)]&&(this.$refs["templateForm_".concat(this.id)].isSubmitDisabled=t)}}};var We=function(t){i("cc+j")},Ze=Object(l.a)(Ge,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-modal-main"},[i("transition",{attrs:{name:"fade",appear:""}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"ssp-modal-overlay"})]),t._v(" "),i("transition",{attrs:{name:"slide",appear:""}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"ssp-modal-wrapper"},[i("div",{staticClass:"ssp-modal"},[t.headline?i("h2",{class:{"mb-4":!t.text}},[t._v("\n          "+t._s(t.headline)+"\n          "),i("DebugMode",{attrs:{"form-id":t.formId}})],1):t._e(),t._v(" "),i("div",{staticClass:"ssp-modal-close close",attrs:{"data-tealium-value":"ssp_"+t.tealiumValue+"_cancel","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return t.close()}}},[i("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})]),t._v(" "),t.text?i("div",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),i("TemplateForm",{ref:"templateForm_"+t.id,attrs:{"form-id":t.formId,"button-label":t.translations.saveForm,"attempt-submit":t.attemptSubmit,"back-button-visible":!1,"use-modal":!1,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"enable-submit":t.enableSubmit,"tealium-value":t.tealiumValue},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e},afterSubmitMethod:t.triggerPopupInfo,saveInStateMethod:t.triggerUpdateAddressSection,"submit-error":function(e){return t.close("error",e)}}},[t.showPersonalData?[t.isEnabled("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.disableCompany,"custom-validation-reg-exp":t.companyFieldValidationRegExp,"custom-error-message":t.translations.companyValidationRegExpMessage,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("salutation")||t.isEnabled("title")?i("div",{staticClass:"row"},[t.isEnabled("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("firstName")||t.isEnabled("lastName")?i("div",{staticClass:"row"},[t.isEnabled("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("street")||t.isEnabled("streetNumber")?i("div",{staticClass:"row"},[t.isEnabled("street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.isEnabled("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.street,disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("zipcode")||t.isEnabled("city")?i("div",{staticClass:"row"},[t.isEnabled("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.isEnabled("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",subscript:t.translations.subscript.email.inProcess+" "+t.translations.subscript.email.change,disabled:!0,required:t.isRequired("email"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("mobile")||t.isEnabled("phone")?i("div",{staticClass:"row"},[t.isEnabled("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,subscript:t.translations.subscript.mobile.change,disabled:!0,required:t.isMobileRequired(),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:!(!t.isRequired("phone")||t.mobileValue),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsentValue,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsentValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otMobileConsentValue,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":t.attemptSubmit,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsentValue=e}}})],1)]):t._e()]:t._e(),t._v(" "),t.showPostalData?[t.isEnabled("contactStreet")||t.isEnabled("contactStreetNumber")?i("div",{staticClass:"row"},[t.isEnabled("contactStreet")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.isEnabled("contactStreetNumber")}},[i("TextField",{attrs:{value:t.contactStreetValue,name:"contactStreet","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("contactStreet"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreet"},on:{"update:value":function(e){t.contactStreetValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("contactStreetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.contactStreetNumberValue,name:"contactStreetNumber","label-name":t.translations.label.no,required:t.isRequired("contactStreetNumber"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreetNumber"},on:{"update:value":function(e){t.contactStreetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("contactZipcode")||t.isEnabled("contactCity")?i("div",{staticClass:"row"},[t.isEnabled("contactZipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactZipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){return t.contactLocationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.contactEircodeValue,name:"contactZipcode","label-name":t.translations.label.eircode,tooltip:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){t.contactEircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.isEnabled("contactCity")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactCity","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("contactCity"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactCity"},on:{"update:value":function(e){return t.contactLocationValue=e}}})],1):t._e()]):t._e()]:t._e(),t._v(" "),t.showTaxData?[t.isEnabled("taxType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.taxTypeValue,name:"taxType","label-name":t.getSelectFieldLabel("taxType"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.taxTypeOptions,required:t.isRequired("taxType"),cucumber:"form_select_taxType"},on:{"update:value":function(e){t.taxTypeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,required:t.isRequired("taxNumber"),"do-on-change-validation":t.attemptSubmit,"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("officialFarmId")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.officialFarmIdValue,name:"officialFarmId","label-name":t.translations.label.officialFarmId,required:t.isRequired("officialFarmId"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_officialFarmId"},on:{"update:value":function(e){t.officialFarmIdValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("partitaIVA")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.partitaIVAValue,name:"partitaIVA","label-name":t.translations.label.partitaIVA,required:t.isRequired("partitaIVA")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,"do-on-change-validation":t.attemptSubmit,"custom-validation-reg-exp":t.partitaIVAFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_partitaIVA"},on:{"update:value":function(e){t.partitaIVAValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("pecCode")&&t.isEnabled("pecEmail")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[t.translations.pecTypeHeadline?i("div",[i("b",[t._v(t._s(t.translations.pecTypeHeadline))])]):t._e(),t._v(" "),i("SelectField",{attrs:{value:t.pecTypeValue,name:"pecType","label-name":t.getSelectFieldLabel("pecType"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.pecTypeOptions,required:t.isRequired("pecCode")||t.isRequired("pecEmail")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,cucumber:"form_select_pecType"},on:{"update:value":function(e){t.pecTypeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("pecCode")&&t.pecTypeValue&&"pecCode"===t.pecTypeValue.code?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.pecCodeValue,name:"pecCode","label-name":t.translations.label.pecCode,required:t.isRequired("pecCode")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_pecCode","custom-validation-reg-exp":t.pecCodeFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat},on:{"update:value":function(e){t.pecCodeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("pecEmail")&&t.pecTypeValue&&"pecEmail"
1===t.pecTypeValue.code?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.pecEmailValue,name:"pecEmail","label-name":t.translations.label.pecEmail,required:t.isRequired("pecEmail")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_pecEmail","custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail},on:{"update:value":function(e){t.pecEmailValue=e}}})],1)]):t._e()]:t._e(),t._v(" "),t.showOccupationData?[t.isEnabled("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.disableOccupation||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.disableOccupation||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),cucumber:"form_select_jobTitle","do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabledFarmSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabledArableAreaSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.arableAreaSizeValue,name:"arableAreaSize","label-name":t.translations.label.arableAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.arableAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("arableAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.arableAreaSizeValue),"has-error-message":t.translations.invalid.arableAreaSize,cucumber:"form_input_arableAreaSize"},on:{"update:value":function(e){t.arableAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabledArableAreaSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabledCrops?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{ref:"cropsRef",attrs:{"form-id":t.formId,placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListByOccupation,required:t.isRequiredCrops&&t.cropListByOccupation.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,"use-crm-crops":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("areaPerCrop")&&t.occupationValue&&Object.keys(t.occupationValue).length&&t.cropListByArea&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,"use-crm-crops":!0,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}}
1)],1)]):t._e()]:t._e()],2)],1)])])],1)}),[],!1,We,"data-v-6bb50c9a",null).exports;function Je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ye={name:"AddressSection",components:{PersonalAddressSection:$e,PostalAddressSection:qe,Popup:Ze,PopupInfo:W,Loader:j.a},props:{formId:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},emailPattern:{type:RegExp,default:function(){}},phonePattern:{type:RegExp,default:function(){}},faxPattern:{type:RegExp,default:function(){}},eircodePattern:{type:RegExp,default:function(){}},numberPattern:{type:RegExp,default:function(){}},dateOfBirthPattern:{type:RegExp,default:function(){}},enableSubmit:{type:Boolean,default:!0}},data:function(){return this.initFormData={},{salutation:{},title:{},firstName:"",lastName:"",street:"",streetNumber:"",location:{},eircode:"",email:"",mobile:"",phone:"",fax:"",company:"",dateOfBirth:"",formDefinition:[],prefilledZip:"",prefilledCity:"",isDataRetrieved:!1,isFetchFormDefinitionRetrieved:!1,isLocationRetrieved:!1,isContactLocationRetrieved:!1,loadingError:!1,contactStreet:"",contactStreetNumber:"",contactPrefilledZip:"",contactPrefilledCity:"",contactLocation:{},contactEircode:"",companyIsDisabled:!1,showPersonalAddressPopup:!1,showPostalAddressPopup:!1,showSuccessPopup:!1,showErrorPopup:!1,state:"",currentForm:"",showPersonalAddressErrorMsg:!1,showPostalAddressErrorMsg:!1}},computed:Ke(Ke({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},userId:function(t){return t.forms.userId},userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},savedFields:function(t){return t.forms.savedFields},serviceSubscriptions:function(t){return t.forms.serviceSubscriptions}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},valid:function(){var t=!0,e=!0;return this.$refs&&this.$refs.popupFormPersonalAddress&&(t=!this.$refs.popupFormPersonalAddress.hasInvalidFields),this.$refs&&this.$refs.popupFormPostalAddress&&(e=!this.$refs.popupFormPostalAddress.hasInvalidFields),!(!t||!e)},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},salutationOptions:function(){return void 0!==window.salutationConfig&&window.salutationConfig.sort((function(t,e){return e.ordering-t.ordering}))},titleOptions:function(){return void 0!==window.titleConfig&&window.titleConfig.sort((function(t,e){return e.ordering-t.ordering}))},enableSalesForce:function(){return _e.a.useSalesForce()},isFormLoaded:function(){return this.isDataRetrieved&&this.isFetchFormDefinitionRetrieved&&(this.isLocationRetrieved||this.isContactLocationRetrieved)},useEircode:function(){return"IE"===this.config.country},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved&&(this.isLocationRetrieved||this.isContactLocationRetrieved)&&this.isFetchFormDefinitionRetrieved},isLoaderVisible:function(){return!this.isFormDataCompletelyRetrieved&&this.isLoggedIn&&!this.loadingError},isSubscribedToPostalOrCampaign:function(){return"ssp-postal-service"===this.formId||"ssp-campaigns-innovation-offer-service"===this.formId||"ssp-campaigns-service"===this.formId||!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(t){return"ssp-postal-service"===t.id&&"OK"===t.status}))},setHeadline:function(){return!this.company||this.company&&this.company==="".concat(this.firstName," ").concat(this.lastName)?this.translations.account.headline.personalAddress:this.translations.account.headline.companyAddress},setHeadlinePopup:function(){return"personal-data"===this.currentForm?this.translations.account.headline.personalAddress:"postal-data"===this.currentForm?this.translations.account.headline.postalAddress:""},isEnabledPostalAddress:function(){return this.isEnabled("contactStreet")||this.isEnabled("contactStreetNumber")||this.isEnabled("contactZipcode")||this.isEnabled("contactCity")}}),watch:{userId:{handler:function(t,e){t&&t!==e&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDefiniction(),this.retrieveData())}},isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormData(t.$refs)}),0)},savedFields:function(t){var e=this,i=this,a=!1,s=!1;Object.keys(t).forEach((function(n){switch(n){case"salutation":i[n]=t[n]&&v.a.retrieveValue(e.salutationOptions,t[n],"code",{});break;case"title":i[n]=t[n]&&v.a.retrieveValue(e.titleOptions,t[n],"code",{});break;
1case"zipcode":a=!0,e.useEircode?e.eircode=t[n]:e.prefilledZip=t[n];break;case"city":a=!0,e.prefilledCity=t[n];break;case"contactZipcode":s=!0,e.useEircode?e.contactEircode=t[n]:e.contactPrefilledZip=t[n];break;case"contactCity":s=!0,e.contactPrefilledCity=t[n];break;default:i[n]=t[n]}})),a&&(this.prefilledZip||this.prefilledCity)?this.getLocation(this.prefilledZip,this.prefilledCity,"location"):this.isLocationRetrieved=!0,s&&(this.contactPrefilledZip||this.contactPrefilledCity)?this.getLocation(this.contactPrefilledZip,this.contactPrefilledCity,"contactLocation"):this.isContactLocationRetrieved=!0}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChanged(t.$refs,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}})),this.userId&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDefiniction(),this.retrieveData())},mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&(t.fetchFormDefiniction(),t.retrieveData())}))},methods:{fetchFormDefiniction:function(){var t=this;this.isFetchFormDefinitionRetrieved=!1,this.$store.dispatch("forms/fetchFormDefiniction",{formId:this.formId}).then((function(e){t.formDefinition=e,t.isFetchFormDefinitionRetrieved=!0,t.formDefinition.length||(t.loadingError=!0)})).catch((function(){t.loadingError=!0}))},isEnabled:function(t){return(!_e.a.useSalesForce()||"streetNumber"!==t)&&(!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display)},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},isMobileRequired:function(){return this.isRequired("mobile")&&!this.phone||this.isRequired("mobile")&&!!this.phone&&!!this.mobile},validate:function(){this.validatePersonalAddress(),this.validatePostalAddress()},validatePersonalAddress:function(){this.$refs.popupFormPersonalAddress.validate(),this.$refs.popupFormPersonalAddress.hasInvalidFields?this.showPersonalAddressErrorMsg=!0:this.showPersonalAddressErrorMsg=!1},validatePostalAddress:function(){this.$refs.popupFormPostalAddress.validate(),this.$refs.popupFormPostalAddress.hasInvalidFields?this.showPostalAddressErrorMsg=!0:this.showPostalAddressErrorMsg=!1},retrieveData:function(){var t=this;this.userId&&(this.isDataRetrieved=!1,this.$store.dispatch("forms/fetchFormData",{formId:this.formId}).then((function(e){e.salutation&&(t.salutation=v.a.retrieveValue(t.salutationOptions,e.salutation,"code",{})),e.title&&(t.title=v.a.retrieveValue(t.titleOptions,e.title,"code",{})),t.firstName=e.firstName||"",t.lastName=e.lastName||"",t.street=e.street||"",t.streetNumber=e.streetNumber||"",t.useEircode?(t.eircode=e.zipcode||"",t.prefilledCity=v.a.prefillLocation(e,"city")):(t.prefilledZip=v.a.prefillLocation(e,"zipcode"),t.prefilledCity=v.a.prefillLocation(e,"city")),t.company=e.company||"",e.company&&""!==e.company&&e.company!=="".concat(t.firstName," ").concat(t.lastName)&&(t.companyIsDisabled=!0),t.contactStreet=e.contactStreet||"",t.contactStreetNumber=e.contactStreetNumber||"",t.contactPrefilledZip=e.contactZipcode||"",t.contactPrefilledCity=e.contactCity||"",t.contactPrefilledZip||t.contactPrefilledCity?t.useEircode?(t.contactEircode=e.contactPrefilledZip||"",t.getLocation(t.contactPrefilledZip,t.contactPrefilledCity,"contactLocation")):t.getLocation(t.contactPrefilledZip,t.contactPrefilledCity,"contactLocation"):t.isContactLocationRetrieved=!0,t.email=e.email?e.email:t.userEmail||"",t.fax=e.fax||"",t.mobile=e.mobile?e.mobile:t.userMobile||"",t.phone=e.phone||"",t.dateOfBirth=e.dateOfBirth||"",t.prefilledZip||t.prefilledCity?t.getLocation(t.prefilledZip,t.prefilledCity,"location"):t.isLocationRetrieved=!0,t.isDataRetrieved=!0})).catch((function(){t.loadingError=!0})))},getLocation:function(t,e,i){var a=this;this.isLocationRetrieved=!1,this.isContactLocationRetrieved=!1;var s=this;this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){s[i]=t,"contactLocation"===i?a.isContactLocationRetrieved=!0:a.isLocationRetrieved=!0}
1)).catch((function(){a.loadingError=!0}))},editPersonalAddress:function(){this.showPersonalAddressPopup=!0,this.currentForm="personal-data"},editPostalAddress:function(){this.showPostalAddressPopup=!0,this.currentForm="postal-data"},closePopup:function(t){switch(this.state=t,this.showPersonalAddressPopup?(this.showPersonalAddressPopup=!1,t&&this.validatePersonalAddress()):this.showPostalAddressPopup&&(this.showPostalAddressPopup=!1,t&&this.validatePostalAddress()),t){case"success":this.showSuccessPopup=!0;break;case"error":this.showErrorPopup=!0}},closePopupInfo:function(){switch(this.state){case"success":this.showSuccessPopup=!1;break;case"error":this.showErrorPopup=!1}this.currentForm="",this.state="",window.location.reload()}}};var Qe=function(t){i("7Nl1")},Xe=Object(l.a)(Ye,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container content-module ssp-data-wrapper"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.isDataRetrieved?i("div",{staticClass:"row"},[i("div",{staticClass:"mb-5 mb-md-0",class:[t.isSubscribedToPostalOrCampaign&&t.isEnabledPostalAddress?"col-md-6":"col-12"]},[i("PersonalAddressSection",{class:{error:t.showPersonalAddressErrorMsg},attrs:{"form-id":t.formId,headline:t.setHeadline,company:t.isEnabled("company")&&t.company?t.company:"",salutation:t.isEnabled("salutation")&&t.salutation?t.salutation.name:"",title:t.isEnabled("title")&&t.title?t.title.name:"","first-name":t.isEnabled("firstName")&&t.firstName?t.firstName:"","last-name":t.isEnabled("lastName")&&t.lastName?t.lastName:"",street:t.isEnabled("street")&&t.street?t.street:"","street-number":t.isEnabled("streetNumber")&&t.streetNumber?t.streetNumber:"",zipcode:t.isEnabled("zipcode")&&t.prefilledZip?t.prefilledZip:"",city:t.isEnabled("city")&&t.prefilledCity?t.prefilledCity:"",eircode:t.isEnabled("zipcode")&&t.eircode?t.eircode:"",email:t.isEnabled("email")&&t.email?t.email:"",mobile:t.isEnabled("mobile")&&t.mobile?t.mobile:"",phone:t.isEnabled("phone")&&t.phone?t.phone:"",fax:t.isEnabled("fax")&&t.fax?t.fax:"","disable-company":t.companyIsDisabled},on:{"popup-edit":function(e){return t.editPersonalAddress()}}}),t._v(" "),t.showPersonalAddressErrorMsg?i("div",{staticClass:"field-msg error"},[t._v(t._s(t.translations.invalid.missingData))]):t._e()],1),t._v(" "),t.isSubscribedToPostalOrCampaign&&t.isEnabledPostalAddress?i("div",{staticClass:"col-md-6"},[i("PostalAddressSection",{class:{error:t.showPostalAddressErrorMsg},attrs:{"form-id":t.formId,headline:t.translations.account.headline.postalAddress,company:t.isEnabled("company")&&t.company?t.company:"",salutation:t.isEnabled("salutation")&&t.salutation?t.salutation.name:"","first-name":t.isEnabled("firstName")&&t.firstName?t.firstName:"","last-name":t.isEnabled("lastName")&&t.lastName?t.lastName:"",street:t.isEnabled("contactStreet")&&t.contactStreet?t.contactStreet:"","street-number":t.isEnabled("contactStreetNumber")&&t.contactStreetNumber?t.contactStreetNumber:"",zipcode:t.isEnabled("contactZipcode")&&t.contactPrefilledZip?t.contactPrefilledZip:"",city:t.isEnabled("contactCity")&&t.contactPrefilledCity?t.contactPrefilledCity:"",eircode:t.isEnabled("contactZipcode")&&t.contactEircode?t.contactEircode:""},on:{"popup-edit":function(e){return t.editPostalAddress()}}}),t._v(" "),t.showPostalAddressErrorMsg?i("div",{staticClass:"field-msg error"},[t._v(t._s(t.translations.invalid.missingData))]):t._e()],1):t._e()]):t._e(),t._v(" "),t.isDataRetrieved?i("div",[i("Popup",{ref:"popupFormPersonalAddress",attrs:{id:"personalAddress","form-id":t.formId,headline:t.setHeadline,text:t.translations.account.info.personalAddress,open:t.showPersonalAddressPopup,"form-definition":t.formDefinition,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,"email-pattern":t.emailPattern,"phone-pattern":t.phonePattern,"fax-pattern":t.faxPattern,"eircode-pattern":t.eircodePattern,"number-pattern":t.numberPattern,"date-of-birth-pattern":t.dateOfBirthPattern,company:t.company,salutation:t.salutation,title:t.title,"first-name":t.firstName,"last-name":t.lastName,street:t.street,"street-number":t.streetNumber,location:t.location,eircode:t.eircode,email:t.email,mobile:t.mobile,phone:t.phone,fax:t.fax,"date-of-birth":t.dateOfBirth,"is-form-loaded":t.is
1FormLoaded,"show-personal-data":!0,"disable-company":t.companyIsDisabled,"enable-submit":t.enableSubmit},on:{close:function(e){return t.closePopup(e)}}}),t._v(" "),i("Popup",{ref:"popupFormPostalAddress",attrs:{id:"postalAddress","form-id":t.formId,headline:t.translations.account.headline.postalAddress,text:t.translations.account.info.postalAddress,open:t.showPostalAddressPopup,"form-definition":t.formDefinition,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,"eircode-pattern":t.eircodePattern,"contact-street":t.contactStreet,"contact-street-number":t.contactStreetNumber,"contact-location":t.contactLocation,"contact-eircode":t.contactEircode,"is-form-loaded":t.isFormLoaded,"show-postal-data":!0,"enable-submit":t.enableSubmit},on:{close:function(e){return t.closePopup(e)}}}),t._v(" "),i("PopupInfo",{attrs:{open:"success"===t.state?t.showSuccessPopup:t.showErrorPopup,headline:t.setHeadlinePopup,text:"success"===t.state?t.translations.submit.service.save:t.translations.submit.service.error,"text-button":t.translations.ok,icon:"success"===t.state?"info":"cancel-circle"},on:{close:function(e){return t.closePopupInfo()}}})],1):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Qe,"data-v-0f577b58",null).exports;function ti(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function ei(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ti(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ii={name:"BaseService",components:{TemplateForm:Ot,VerifyMobilePopupComp:fe,VerifyEmailPopupComp:be,TextField:U.a,TextFieldMulti:It,SelectField:Et.a,SelectMultiField:Vt.a,SelectMultiTagListField:$t,SelectMultiCropField:Bt,CropsField:Ht,ProductsWithModalField:ie,ProductsWithFilterField:ne,LocationField:ce,CheckboxField:at,ChecklistField:pe,FileUploadField:Ce,Loader:j.a,AddressSection:Xe},props:{formId:{type:String,default:""},benefits:{type:String,default:""},additionalDescription:{type:String,default:""},successRedirectLink:{type:String,default:""},tealiumName:{type:String,default:""},linkUnsubscribe:{type:String,default:""},additionalButton:{type:String,default:""},backButton:{type:String,default:""},googlePlay:{type:String,default:""},appStore:{type:String,default:""},agreementLabel:{type:String,default:""},additionalAgreementLabel:{type:String,default:""},agreementLabelNewsletter:{type:String,default:""},agreementLabelFax:{type:String,default:""},additionalInformation:{type:String,default:""},cropList:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},optType:{type:String,default:""},formOutsideMyServices:{type:Boolean,default:!1},fOMSUpdateSubscriptionRedirectLink:{type:String,default:""},fOMSNewSubscriptionRedirectLink:{type:String,default:""},newsCategories:{type:Object,default:function(){return{}}},newsCategoriesList:{type:Array,default:function(){return[]}},servicesList:{type:Array,default:function(){return[]}},dateOfBirthPattern:{type:RegExp,default:function(){return{}}},emailPattern:{type:RegExp,default:function(){return{}}}
1,phonePattern:{type:RegExp,default:function(){return{}}},faxPattern:{type:RegExp,default:function(){return{}}},numberPattern:{type:RegExp,default:function(){return{}}},eircodePattern:{type:RegExp,default:function(){return{}}},holdingCountryCode:{type:String,default:""}},data:function(){return this.initFormData={},{subscriptions:[],salutationValue:{},titleValue:{},jobTitleValue:{},firstNameValue:"",lastNameValue:"",locationValue:{},eircodeValue:"",streetValue:"",streetNumberValue:"",mobileValue:"",phoneValue:"",faxValue:"",taxNumberValue:"",partitaIVAValue:"",taxTypeValue:{},pecTypeValue:{},pecCodeValue:"",pecEmailValue:"",officialFarmIdValue:"",companyValue:"",emailValue:"",occupationValue:[],occupationTypeValue:{},occupationOptionsFiltered:[],occupationIsDisabled:!1,positionOnFarmValue:[],holdingValue:[],customHoldingValue:"",holdingIsDisabled:!1,dateOfBirthValue:"",productUsageProof:"",farmSizeValue:"",organicAreaSizeValue:"",arableAreaSizeValue:"",shoeSizeValue:"",gloveSizeValue:{},clothesSizeValue:{},cropsValue:[],productsValue:[],cropAgriculturalAreaValue:[],cropListByArea:[],attemptSubmit:!1,agreement:!1,additionalAgreement:!1,otEmailConsent:!1,otMobileConsent:!1,FC_I_am_farmer:!1,agreementTrackingConsent:!1,vegetarian:!1,agreementFax:!1,formDefinition:[],prefilledZip:"",prefilledCity:"",prefilledCrops:[],prefilledAreaPerCrop:[],isDataRetrieved:!1,isLocationRetrieved:!1,isContactLocationRetrieved:!1,isInforisqueParcelZIPRetrieved:!1,isHoldingRetrieved:!1,errorFarmSize:!1,servicesMultiConsent:[],showAgreementTrackingConsent:!1,servicesAgreementLabelNewsletter:"",formDefinitionInitial:[],formData:[],companyIsDisabled:!1,farmerRegNumber:"",inforisqueSeedDateValue:{},inforisqueParcelZIPValue:{},planttypeconsumerValue:{},personalityValue:{},prefersAdvicebyValue:{},categoriesSelected:[],categoriesListJSON:[],contactStreetValue:"",contactStreetNumberValue:"",contactPrefilledZip:"",contactPrefilledCity:"",contactLocationValue:{},contactEircodeValue:"",farmPartOfHolding:!1,customProducts:[],productFileTypes:[],retrievedHoldingOptions:[],salesRepresentative:{},bonusVizura:{},bonusLimusClear:{},bonusButisanComplete:{},bonusButisanAquaPack:{},servicesMultiConsentCheckAll:!1,purchasedProductVizura:"",purchasedProductLimusClear:"",purchasedProductButisanComplete:"",purchasedProductButisanAquaPack:"",loadingError:!1,isFormDefinitionRetrieved:!1}},computed:ei(ei({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},userId:function(t){return t.forms.userId},userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},serviceSubscriptions:function(t){return t.forms.serviceSubscriptions},billingAddressLocked:function(t){return t.forms.billingAddressLocked},mobileVerified:function(t){return t.forms.mobileVerified},emailVerified:function(t){return t.forms.emailVerified},loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},subscriptionOptions:function(){return void 0!==window.materialCategoryConfig&&window.materialCategoryConfig.sort((function(t,e){return e.ordering-t.ordering}))},salutationOptions:function(){return void 0!==window.salutationConfig?window.salutationConfig.sort((function(t,e){return e.ordering-t.ordering})):[]},titleOptions:function(){return void 0!==window.titleConfig?window.titleConfig.sort((function(t,e){return e.ordering-t.ordering})):[]},occupationOptions:function(){return void 0!==window.occupationConfig?window.occupationConfig.sort((function(t,e){return e.ordering-t.ordering})):[]},occupationTypeOptions:function(){return void 0!==window.occupationTypeConfig?window.occupationTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},positionOnFarmOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.positionOnFarm&&window.sspSelectFieldConfig.positionOnFarm.options.length?window.sspSelectFieldConfig.positionOnFarm.options.sort((function(t,e){return e.ordering-t.ordering})):[]},customProductsList:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.customProducts&&window.sspSelectFieldConfig.customProducts.options.length?window.sspSelectFieldConfig.customProducts.options.sort((function(t,e){return e.ordering-t.ordering})):[]},taxTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.taxType&&window.sspSelectFieldConfig.taxType.options.length?window.sspSelectFieldConfig.taxType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},pecTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.pecType&&window.sspSelectFieldConfig.pecType.options.length?window.sspSelectFieldConfig.pecType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},productFileTypesOptions:function(){return void 0!==window.sspProductFileTypeConfig?window.sspProductFileTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},holdingOptions:function(){var t=[];return(t=t.concat(this.retrievedHoldingOptions)).push({id:"not-listed",code:"not-listed",name:this.translations.label.holdingNotListed}),t},gloveSizeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.gloveSize&&window.sspSelectFieldConfig.gloveSize.options.length?window.sspSelectFieldConfig.gloveSize.options.sort((function(t,e){return e.ordering-t.ordering})):[]},clothesSizeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.clothesSize&&window.sspSelectFieldConfig.clothesSize.options.length?window.sspSelectFieldConfig.clothesSize.options.sort((function(t,e){return e.ordering-t.ordering})):[]},inforisqueSeedDateOptions:function(){var t=(new Date).getFullYear(),e=[];return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.inforisqueSeedDate&&window.sspSelectFieldConfig.inforisqueSeedDate.options.length&&(e=window.sspSelectFieldConfig.inforisqueSeedDate.options.sort((function(t,e){return e.ordering-t.ordering}))),e?e.map((function(e){return{id:e.id,name:e.name,code:"".concat(t,"-").concat(e.code),ordering:e.ordering}})):e},planttypeconsumerOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.planttypeconsumer&&window.sspSelectFieldConfig.planttypeconsumer.options.length?window.sspSelectFieldConfig.planttypeconsumer.options.sort((function(t,e){return e.ordering-t.ordering})):[]},personalityOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.personality&&window.sspSelectFieldConfig.personality.options.length?window.sspSelectFieldConfig.personality.options.sort((function(t,e){return e.ordering-t.ordering})):[]},prefersAdvicebyOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.prefersAdviceby&&window.sspSelectFieldConfig.prefersAdviceby.options.length?window.sspSelectFieldConfig.prefersAdviceby.options.sort((function(t,e){return e.ordering-t.ordering})):[]},salesRepresentativeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.salesRepresentative&&window.sspSelectFieldConfig.salesRepresentative.options.length?window.sspSelectFieldConfig.salesRepresentative.options.sort((function(t,e){return e.ordering-t.ordering})):[]},jobTitleOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.jobTitle&&window.sspSelectFieldConfig.jobTitle.options.length?window.sspSelectFieldConfig.jobTitle.options.sort((function(t,e){return e.ordering-t.ordering})):[]},isFormLoaded:function(){return!this.formId||this.isFormDefinitionRetrieved&&this.isDataRetrieved||!this.isLoggedIn&&this.isFormDefinitionRetrieved},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved&&this.isLocationRetrieved&&this.isContactLocationRetrieved&&this.isInforisqueParcelZIPRetrieved&&this.isHoldingRetrieved&&this.isFormDefinitionRetrieved},cropListByService:function(){var t;return this.cropList&&(t=[]).concat.apply(t,_t()(JSON.parse(this.cropList)))},cropListCurrent:function(){return this.cropListByService?v.a.sortByText(this.cropListByService):[]},isSubscribed:function(){var t=this;return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"OK"===e.status}))},isPendingSubscribe:function(){var t=this;return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"PENDING_SUB"===e.status}))},isPendingUnsubscribe:function(){var t=this;return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"PENDING_UNSUB"===e.status}))},isLoyaltySubscribed:function(){return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(t){return"ssp-customer-loyalty-service"===t.id&&"OK"===t.status}))},enableSalesForce:function(){return _e.a.useSalesForce()},enableMultiConsent:function(){return this.servicesMultiConsent&&this.servicesMultiConsent.length},enableMultiAddress:function(){return _e.a.useMultiAddress()},showPhoneOrMobileMsg:function(){return this.translations.superscript.phone&&this.showMultiConsentField("phone")&&this.showMultiConsentField("mobile")},isCallbackServiceIncluded:function(){return this.servicesMultiConsent.find((function(t){return"ssp-callback-service"===t.code}))}
1,isPartitaIVASpecialCase:function(){return this.showField("partitaIVA")},partitaIVAFieldValidationRegExp:function(){return new RegExp("^(I|i)(T|t)[0-9]{11}$")},taxNumberFieldValidationRegExp:function(){var t=null;return this.showField("taxType")&&this.taxTypeValue&&this.taxTypeValue.code?this.config&&this.config.fieldValidationRegExps&&this.config.fieldValidationRegExps["taxNumber_".concat(this.taxTypeValue.code)]&&(t=new RegExp(this.config.fieldValidationRegExps["taxNumber_".concat(this.taxTypeValue.code)])):this.isPartitaIVASpecialCase&&(t=new RegExp("(^[0-9]{11}$)|(^[A-Za-z0-9]{16}$)")),t},isFieldRequiredPartitaIVATaxNumberSpecialCase:function(){var t=!1;this.isPartitaIVASpecialCase&&(this.showField("taxNumber")&&this.taxNumberValue&&new RegExp("^[0-9]{11}$").test(this.taxNumberValue)&&(t=!0));return t},pecCodeFieldValidationRegExp:function(){var t=null;return this.config&&this.config.fieldValidationRegExps&&this.config.fieldValidationRegExps.pecCode&&(t=new RegExp(this.config.fieldValidationRegExps.pecCode)),t},useEircode:function(){return"IE"===this.config.country}}),watch:{userId:function(t,e){t&&t!==e&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDefiniction(),this.retrieveData())},occupationTypeValue:function(){var t=this;this.showField("occupationType")?this.occupationTypeValue&&this.occupationTypeValue.code?(this.occupationOptionsFiltered=this.occupationOptions.filter((function(e){return e.bpType===t.occupationTypeValue.code})),this.occupationValue&&this.occupationValue.accountDetail&&void 0===this.occupationOptionsFiltered.find((function(e){return e.accountDetail===t.occupationValue.accountDetail}))&&(this.occupationValue={})):this.occupationOptionsFiltered=this.occupationOptions:this.occupationOptionsFiltered=this.occupationOptions},serviceSubscriptions:function(t,e){var i=this;t.length!==e.length&&(this.servicesList=this.servicesList.filter((function(t){return!i.isSubscribedTo(t.code)})),this.handleServicesAgreementTrackingConsent())},servicesMultiConsent:function(t,e){this.handleServicesMultiConsent(t.length<e.length)},isFormLoaded:function(){this.isFormLoaded&&this.formId&&this.isLoggedIn&&(this.showField("mobile")&&!this.mobileVerified&&(this.$refs.templateForm&&(this.$refs.templateForm.isSubmitDisabled=!0),this.$refs.verifyMobilePopupCompRef&&this.$refs.verifyMobilePopupCompRef.open(this.mobileValue)),this.showField("email")&&!this.emailVerified&&(this.$refs.templateForm&&(this.$refs.templateForm.isSubmitDisabled=!0),this.$refs.verifyEmailPopupCompRef&&this.$refs.verifyEmailPopupCompRef.open(this.emailValue)))},farmSizeValue:function(){this.updateAgriculturalArea(this.cropAgriculturalAreaValue)},isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormData(t.$refs)}),0)},faxValue:{handler:function(t,e){t===e||t||(this.agreementFax=!1)}},cropsValue:{handler:function(t,e){var i=this;if(t.length&&t.length!==e.length){var a=t.filter((function(t){return!e.includes(t)})),s=e.filter((function(e){return!t.includes(e)}));a.length&&a.forEach((function(t){i.cropListByArea.push({name:v.a.getCropByAmigaCode(t,i.snConfigAllSSPCrops),id:t,value:""})})),s.length&&(this.cropListByArea=this.cropListByArea.filter((function(t){return t.id!==s[0]})))}else t.length||(this.cropListByArea=[]);this.errorFarmSize&&0===this.cropListByArea.length&&(this.errorFarmSize=!1)},deep:!1}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChanged(t.$refs,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}})),this.fetchFormDefiniction(),this.userId&&h.a.extractPostLoginFromSessionStorage()&&this.retrieveData()},mounted:function(){var t=this;this.occupationOptionsFiltered=this.occupationOptions,f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&(t.fetchFormDefiniction(),t.retrieveData(),t.handleServicesAgreementTrackingConsent())}))},methods:{fetchFormDefiniction:function(){var t=this;this.formId&&this.$store.dispatch("forms/fetchFormDefiniction",{formId:this.formId}).then((function(e){t.formDefinition=e,t.formDefinitionInitial=e,t.isFormDefinitionRetrieved=!0,t.formDefinition.length||(t.loadingError=!0)})).catch((function(){t.loadingError=!0}))},isEnabled:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(!_e.a.useSalesForce()||"streetNumber"!==t&&"contactStreetNumber"!==t)&&(e?!(!this.formDefinitionInitial||!this.formDefinitionInitial.find((function(e){return e.name===t})))&&this.formDefinitionInitial.find((function(e){return e.name===t})).display:!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display)},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},isInCRM:function(t){return!!this.formData[t]},showMultiConsentField:function(t){return this.isEnabled(t)&&this.isRequired(t)&&!this.isInCRM(t)},showField:function(t){return!this.enableMultiConsent&&this.isEnabled(t)||this.enableMultiConsent&&(this.showMultiConsentField(t)||this.isEnabled(t,!0))},isMobileRequired:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?this.showMultiConsentField("mobile")&&!this.phoneValue||this.showMultiConsentField("mobile")&&!!this.phoneValue&&!!this.mobileValue:this.isRequired("mobile")&&!this.phoneValue||this.isRequired("mobile")&&!!this.phoneValue&&!!this.mobileValue},isSubscribedTo:function(t){return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t}))},retrieveData:function(){var t=this;this.userId&&this.formId&&(this.isDataRetrieved=!1,this.$store.dispatch("forms/fetchFormData",{formId:this.formId}).then((function(e){t.formData=e,t.subscriptions=t.prefillArrayOptions(e.subscriptions,t.subscriptionOptions);var i=!(t.isSubscribed||t.isPendingSubscribe||t.isPendingUnsubscribe||1!==t.subscriptionOptions.length||t.subscriptions.length),a=t.isSubscribed&&1===t.subscriptionOptions.length&&!t.subscriptions.length;if((i||a)&&(t.subscriptions=t.subscriptionOptions.filter((function(e){return e.code===t.subscriptionOptions[0].code}))),t.salutationValue=e.salutation&&v.a.retrieveValue(t.salutationOptions,e.salutation,"code",{}),t.titleValue=e.title&&v.a.retrieveValue(t.titleOptions,e.title,"code",{}),t.jobTitleValue=e.jobTitle&&v.a.retrieveValue(t.jobTitleOptions,e.jobTitle,"code",{}),t.occupationValue=v.a.retrieveValue(t.occupationOptions,e.occupation,_e.a.useSalesForce()?"accountDetail":"bpType",[]),t.occupationValue&&""!==t.occupationValue&&t.isLoyaltySubscribed&&(t.occupationIsDisabled=!0),t.occupationValue&&""!==t.occupationValue&&t.occupationTypeOptions&&t.occupationValue.bpType){var s=t.occupationTypeOptions.find((function(e){return e.code===t.occupationValue.bpType}));s&&(t.occupationTypeValue=s)}t.firstNameValue=e.firstName||"",t.lastNameValue=e.lastName||"",t.useEirco
1de?(t.eircodeValue=e.zipcode||"",t.prefilledCity=v.a.prefillLocation(e,"city")):(t.prefilledZip=v.a.prefillLocation(e,"zipcode"),t.prefilledCity=v.a.prefillLocation(e,"city")),t.companyValue=e.company||"",e.company&&""!==e.company&&e.company!=="".concat(t.firstNameValue," ").concat(t.lastNameValue)&&(t.companyIsDisabled=!0),t.streetValue=e.street||"",t.streetNumberValue=e.streetNumber||"",t.mobileValue=e.mobile?e.mobile:t.userMobile||"",t.phoneValue=e.phone||"",t.faxValue=e.fax||"",t.taxNumberValue=e.taxNumber||"",t.partitaIVAValue=e.partitaIVA||"",t.taxTypeValue=e.taxType&&v.a.retrieveValue(t.taxTypeOptions,e.taxType,"code",{}),t.pecCodeValue=e.pecCode||"",t.pecEmailValue=e.pecEmail||"",t.officialFarmIdValue=e.officialFarmId||"";var n,o="";(t.pecCodeValue&&""!==t.pecCodeValue?o="pecCode":t.pecEmailValue&&""!==t.pecEmailValue&&(o="pecEmail"),o&&(t.pecTypeValue=v.a.retrieveValue(t.pecTypeOptions,o,"code",{})),t.dateOfBirthValue=e.dateOfBirth||"",t.farmSizeValue=e.farmSize||"",t.organicAreaSizeValue=e.organicAreaSize||"",t.arableAreaSizeValue=e.arableAreaSize||"",t.shoeSizeValue=e.shoeSize||"",t.prefilledCrops=v.a.prefillCrops(e.crops,t.snConfigAllSSPCrops),t.prefilledAreaPerCrop=e.areaPerCrop||[],t.agreement=e.agreement,t.additionalAgreement=e.additionalAgreement,t.otEmailConsent=e.otEmailConsent&&"true"===e.otEmailConsent,t.otMobileConsent=e.otMobileConsent&&"true"===e.otMobileConsent,t.FC_I_am_farmer=e.FC_I_am_farmer&&"true"===e.FC_I_am_farmer,t.agreementTrackingConsent=e.agreementTrackingConsent,t.vegetarian=e.vegetarian&&"true"===e.vegetarian,t.agreementFax=e.agreementFax,t.emailValue=e.email?e.email:t.userEmail||"",t.farmerRegNumber=e.farmerRegNumber||"",t.farmPartOfHolding=e.farmPartOfHolding&&"true"===e.farmPartOfHolding,t.customHoldingValue=e.customHolding||"",t.loadHoldings(e.holding),t.positionOnFarmValue=e.positionOnFarm&&v.a.retrieveValue(t.positionOnFarmOptions,e.positionOnFarm,"code",[]),t.bonusVizura=e.bonusVizura&&v.a.retrieveValue(t.bonusOptions("bonusVizura"),e.bonusVizura,"code",{}),t.bonusLimusClear=e.bonusLimusClear&&v.a.retrieveValue(t.bonusOptions("bonusLimusClear"),e.bonusLimusClear,"code",{}),t.bonusButisanComplete=e.bonusButisanComplete&&v.a.retrieveValue(t.bonusOptions("bonusButisanComplete"),e.bonusButisanComplete,"code",{}),t.bonusButisanAquaPack=e.bonusButisanAquaPack&&v.a.retrieveValue(t.bonusOptions("bonusButisanAquaPack"),e.bonusButisanAquaPack,"code",{}),t.salesRepresentative=e.salesRepresentative&&v.a.retrieveValue(t.salesRepresentativeOptions,e.salesRepresentative,"code",{}),t.purchasedProductVizura=e.purchasedProductVizura||"",t.purchasedProductLimusClear=e.purchasedProductLimusClear||"",t.purchasedProductButisanComplete=e.purchasedProductButisanComplete||"",t.purchasedProductButisanAquaPack=e.purchasedProductButisanAquaPack||"",t.contactStreetValue=e.contactStreet||"",t.contactStreetNumberValue=e.contactStreetNumber||"",t.contactPrefilledZip=e.contactZipcode||"",t.contactPrefilledCity=e.contactCity||"",t.farmSizeValue=v.a.formatFloatNumbers(t.farmSizeValue),t.arableAreaSizeValue=v.a.formatFloatNumbers(t.arableAreaSizeValue),t.organicAreaSizeValue=v.a.formatFloatNumbers(t.organicAreaSizeValue),t.prefilledAreaPerCrop&&t.prefilledAreaPerCrop.forEach((function(t){t.value&&(t.value=v.a.formatFloatNumbers(t.value))})),t.gloveSizeValue=e.gloveSize&&v.a.retrieveValue(t.gloveSizeOptions,e.gloveSize,"code",{}),t.clothesSizeValue=e.clothesSize&&v.a.retrieveValue(t.clothesSizeOptions,e.clothesSize,"code",{}),t.inforisqueSeedDateValue=e.inforisqueSeedDate&&v.a.retrieveValue(t.inforisqueSeedDateOptions,e.inforisqueSeedDate,"code",{}),t.planttypeconsumerValue=e.planttypeconsumer&&v.a.retrieveValue(t.planttypeconsumerOptions,e.planttypeconsumer,"code",{}),t.personalityValue=e.personality&&v.a.retrieveValue(t.personalityOptions,e.personality,"code",{}),t.prefersAdvicebyValue=e.prefersAdviceby&&v.a.retrieveValue(t.prefersAdvicebyOptions,e.prefersAdviceby,"code",{}),e.inforisqueParcelZIP?t.getInforisqueParcelZIP(e.inforisqueParcelZIP):t.isInforisqueParcelZIPRetrieved=!0,t.prefilledZip||t.prefilledCity?t.getLocation(t.prefilledZip,t.prefilledCity,"locationValue"):t.isLocationRetrieved=!0,t.contactPrefilledZip||t.contactPrefilledCity?t.useEirco
1de?(t.contactEircodeValue=e.contactPrefilledZip||"",t.getLocation(t.contactPrefilledZip,t.contactPrefilledCity,"contactLocationValue")):t.getLocation(t.contactPrefilledZip,t.contactPrefilledCity,"contactLocationValue"):t.isContactLocationRetrieved=!0,e["newsletter-services"]&&e["newsletter-services"].length)&&(t.categoriesListJSON=t.newsCategoriesList?(n=[]).concat.apply(n,_t()(t.newsCategoriesList)):[],t.categoriesSelected=t.prefillArrayOptions(e["newsletter-services"],t.categoriesListJSON),t.disabledPrefilledOptions(),t.handleSelectedCategories());if(e.customProducts&&e.customProducts.length>0){t.customProducts=[];var r=JSON.parse(e.customProducts);"object"===yt()(r)&&null!==r&&r.forEach((function(e){var i=v.a.retrieveValue(t.customProductsList,e,"code",{});i&&t.customProducts.push(i)}))}e.productFileTypes&&e.productFileTypes.length>0?t.productFileTypes=e.productFileTypes:t.productFileTypes=[],e.products&&e.products.length>0?t.productsValue=e.products:t.productsValue=[],t.isDataRetrieved=!0})).catch((function(){t.loadingError=!0})))},disabledPrefilledOptions:function(){var t=this;this.categoriesListJSON=this.categoriesListJSON.map((function(e){var i=Object.assign({},e);return i.disabled=t.categoriesSelected.find((function(t){return t.code===e.code})),i}))},getLocation:function(t,e,i){var a=this,s=this;this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){s[i]=t,"contactLocationValue"===i?a.isContactLocationRetrieved=!0:a.isLocationRetrieved=!0})).catch((function(){a.loadingError=!0}))},getInforisqueParcelZIP:function(t){var e=this;this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t}).then((function(t){e.inforisqueParcelZIPValue=t,e.isInforisqueParcelZIPRetrieved=!0})).catch((function(){e.loadingError=!0}))},updateAgriculturalArea:function(t){if(this.cropAgriculturalAreaValue=t,t){var e=0;this.cropAgriculturalAreaValue.forEach((function(t){e+=v.a.stringToDecimal(t.value)})),this.errorFarmSize=v.a.stringToDecimal(this.farmSizeValue)<e}else this.errorFarmSize=!1},isLessThanFarmSize:function(t){return v.a.stringToDecimal(t)<=v.a.stringToDecimal(this.farmSizeValue)},prefillArrayOptions:function(t,e){return t?e.filter((function(e){return t.find((function(t){return t===e.code}))})):[]},handleServicesMultiConsent:function(t){var e=this;if(this.servicesMultiConsent&&this.servicesList&&this.servicesMultiConsent.length===this.servicesList.length?this.servicesMultiConsentCheckAll=!0:this.servicesMultiConsentCheckAll=!1,this.servicesMultiConsent&&this.servicesMultiConsent.length){var i=this.servicesMultiConsent.map((function(t){return t.code})).reduce((function(t,i){return ei(ei({},t),{},p()({},i,v.a.getServiceName(i,e.servicesList)))}),{});this.$store.commit("forms/setServicesMultiConsent",i),t&&(this.formDefinition=this.formDefinitionInitial),this.servicesMultiConsent.find((function(t){return"ssp-newsletter-service"===t.code}))?this.$store.commit("forms/setNewsCategories",this.newsCategories):"ssp-newsletter-service"!==this.formId&&this.$store.commit("forms/setNewsCategories",{}),this.servicesMultiConsent.forEach((function(t){e.$store.dispatch("forms/fetchFormDefiniction",{formId:t.code}).then((function(t){var i=t.concat(e.formDefinition);e.updatedFormElements=e.mergeFormDefinition(i),e.newFormElements=e.updatedFormElements.filter((function(t){return!e.formDefinition.some((function(e){return e.name===t.name}))&&t.mandatory})),e.formDefinition=e.updatedFormElements})).catch((function(){e.loadingError=!0}))}))}else this.$store.commit("forms/setServicesMultiConsent",{}),this.$store.commit("forms/setNewsCategories",{}),this.formDefinition=this.formDefinitionInitial,this.newFormElements=[]},handleServicesAgreementTrackingConsent:function(){if(!this.agreementLabelNewsletter){var t=this.servicesList.find((function(t){return t["label-agreementNewsletter"]&&t["label-agreementNewsletter"].length}));this.showAgreementTrackingConsent=!(!this.servicesList||!this.servicesList.length)&&t,this.showAgreementTrackingConsent&&(this.servicesAgreementLabelNewsletter=t["label-agreementNewsletter"])}},mergeFormDefinition:function(t){var e=new Map;return t.forEach((function(t){var i=t.name;if(e.has(i)){var a=t.mandatory||e.get(i).mandatory,s=t.display||e.get(i).display,n=ei(ei({},t),e.get(i));n.mandatory=a,n.display=s,e.set(i,n)}else e.set(i,t)})),Array.from(e.values())},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""},loadHoldings:function(t){var e=this;this.isEnabled("holding")&&this.taxNumberValue&&""!==this.taxNumberValue&&this.holdingCountryCode&&""!==this.holdingCountryCode?this.$store.dispatch("forms/getHoldings",{countryCode:this.holdingCountryCode,taxNumber:this.taxNumberValue}).then((function(i){"object"===yt()(i)&&null!==i&&(e.retrievedHoldingOptions=[],i.forEac
1h((function(t){var i=t.name;t.billingCity&&""!==t.billingCity&&(i+=" (".concat(t.billingCity,")")),e.retrievedHoldingOptions.push({id:t.id,code:t.id,name:i})})),t&&(e.holdingValue=v.a.retrieveValue(e.holdingOptions,t,"code",[]),e.holdingValue&&""!==e.holdingValue&&(e.holdingIsDisabled=!0))),e.isHoldingRetrieved=!0})).catch((function(){e.loadingError=!0})):this.isHoldingRetrieved=!0},bonusOptions:function(t){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig[t]||!window.sspSelectFieldConfig[t].options.length)&&window.sspSelectFieldConfig[t].options.sort((function(t,e){return e.ordering-t.ordering}))},handleSelectedCategories:function(){var t=this,e=this.categoriesSelected.map((function(t){return t.code})).reduce((function(e,i){return ei(ei({},e),{},p()({},i,t.newsCategories[i]))}),{});this.$store.commit("forms/setNewsCategories",e)},servicesMultiConsentCheckAllUpdateValue:function(t){this.servicesMultiConsent=t?[].concat(this.servicesList):[]}}};var ai=function(t){i("+08B")},si=Object(l.a)(ii,void 0,void 0,!1,ai,"data-v-cfd730b2",null).exports,ni={name:"GlobalServiceForm",extends:si};var oi=function(t){i("9Iqx")},ri=Object(l.a)(ni,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"back-button":t.backButton,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("farmerRegNumber"),cucumber:"form_input_farmerRegNumber"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showField("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",subscript:t.translations.subscript.email.inProcess+" "+t.translations.subscript.email.change,superscript:t.translations.superscript.newsletter.default,required:t.isRequired("email"),"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("emailDisplay")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"emailDisplay","label-name":t.translations.label.email,"input-type":"email",required:!1,"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("street")||t.showField("streetNumber")?i("div",{staticClass:"row"},[t.showField("street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("contactZipcode")||t.showField("contactCity")||t.showField("contactStreet")||t.showField("contactStreetNumber")?i("fieldset",[i("legend",[t._v(t._s(t.translations.label.deliveryAddress))]),t._v(" "),t.showField("contactZipcode")||t.showField("contactCity")?i("div",{staticClass:"row"},[t.showField("contactZipcode")?i("div",{staticClass:"col-12 col-sm-4"},[t.useEircode?t._e():i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactZipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){return t.contactLocationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.contactEircodeValue,name:"contactZipcode","label-name":t.translations.label.eircode,tooltip:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){t.contactEircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("contactCity")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactCity","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("contactCity"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactCity"},on:{"update:value":function(e){return t.contactLocationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("contactStreet")||t.showField("contactStreetNumber")?i("div",{staticClass:"row"},[t.showField("contactStreet")?i("div",{staticClass:"col-12 col-sm-8"},[i("TextField",{attrs:{value:t.contactStreetValue,name:"contactStreet","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("contactStreet"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreet"},on:{"update:value":function(e){t.contactStreetValue=e}}})],1):t._e(),t._v(" "),t.showField("contactStreetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.contactStreetNumberValue,name:"contactStreetNumber","label-name":t.translations.label.no,required:t.isRequired("contactStreetNumber"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreetNumber"},on:{"update:value":function(e){t.contactStreetNumberValue=e}}})],1):t._e()]):t._e()]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("phone")||t.showField("mobile")||t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[t.showField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("mobile"),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,required:!1,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,tooltip:t.translations.tooltip.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,tooltip:t.translations.tooltip.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,superscript:t.translations.superscript.newsletter.fax,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax",value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_fax_agreement"},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showField("taxType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.taxTypeValue,name:"taxType","label-name":t.getSelectFieldLabel("taxType"),placeholder:t.translations.singleSelect,options:t.taxTypeOptions,required:t.isRequired("taxType"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_taxType"},on:{"update:value":function(e){t.taxTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,tooltip:t.translations.tooltip.taxNumber,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("taxNumber"),"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("officialFarmId")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.officialFarmIdValue,name:"officialFarmId","label-name":t.translations.label.officialFarmId,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("officialFarmId"),cucumber:"form_input_officialFarmId"},on:{"update:value":function(e){t.officialFarmIdValue=e}}})],1)]):t._e(),t._v(" "),t.showField("partitaIVA")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.partitaIVAValue,name:"partitaIVA","label-name":t.translations.label.partitaIVA,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("partitaIVA")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,"custom-validation-reg-exp":t.partitaIVAFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_partitaIVA"},on:{"update:value":function(e){t.partitaIVAValue=e}}})],1)]):t._e(),t._v(" "),t.showField("pecCode")||t.showField("pecEmail")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[t.translations.pecTypeHeadline?i("div",[i("b",[t._v(t._s(t.translations.pecTypeHeadline))])]):t._e(),t._v(" "),i("SelectField",{attrs:{value:t.pecTypeValue,name:"pecType","label-name":t.getSelectFieldLabel("pecType"),placeholder:t.translations.singleSelect,options:t.pecTypeOptions,required:t.isRequired("pecCode")||t.isRequired("pecEmail")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_pecType"},on:{"update:value":function(e){t.pecTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("pecCode")&&t.pecTypeValue&&"pecCode"===t.pecTypeValue.code?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.pecCodeValue,name:"pecCode","label-name":t.translations.label.pecCode,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("pecCode")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,cucumber:"form_input_pecCode","custom-validation-reg-exp":t.pecCodeFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat},on:{"update:value":function(e){t.pecCodeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("pecEmail")&&t.pecTypeValue&&"pecEmail"
1===t.pecTypeValue.code?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.pecEmailValue,name:"pecEmail","label-name":t.translations.label.pecEmail,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("pecEmail")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,cucumber:"form_input_pecEmail","custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail},on:{"update:value":function(e){t.pecEmailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.cropListCurrent,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("productUsageProof")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FileUploadField",{attrs:{value:t.productUsageProof,name:"productUsageProof",multiple:!0,"label-name":t.translations.label.productUsageProof,tooltip:t.translations.tooltip.productUsageProof,placeholder:t.translations.placeholder.productUsageProof,required:t.isRequired("productUsageProof"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.productUsageProof=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("gloveSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.gloveSizeValue,name:"gloveSize","label-name":t.getSelectFieldLabel("gloveSize"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.gloveSizeOptions,required:t.isRequired("gloveSize"),cucumber:"form_select_gloveSize"},on:{"update:value":function(e){t.gloveSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("shoeSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.shoeSizeValue,name:"shoeSize","label-name":t.translations.label.shoeSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("shoeSize"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_shoeSize"},on:{"update:value":function(e){t.shoeSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("clothesSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.clothesSizeValue,name:"clothesSize","label-name":t.getSelectFieldLabel("clothesSize"),tooltip:t.translations.tooltip.clothesSize,"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.clothesSizeOptions,required:t.isRequired("clothesSize"),cucumber:"form_select_clothesSize"},on:{"update:value":function(e){t.clothesSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("vegetarian")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"vegetarian",value:t.vegetarian,name:"vegetarian","checkbox-label":t.translations.label.vegetarian,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_vegetarian"},on:{"update:value":function(e){t.vegetarian=e}}})],1)]):t._e(),t._v(" "),t.showField("inforisqueSeedDate")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("SelectField",{attrs:{value:t.inforisqueSeedDateValue,name:"inforisqueSeedDate","label-name":t.getSelectFieldLabel("inforisqueSeedDate"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.inforisqueSeedDateOptions,required:t.isRequired("inforisqueSeedDate")},on:{"update:value":function(e){t.inforisqueSeedDateValue=e}}})],1)]):t._e(),t._v(" "),t.showField("inforisqueParcelZIP")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("LocationField",{attrs:{value:t.inforisqueParcelZIPValue,name:"inforisqueParcelZIP","label-name":t.translations.label.inforisqueParcelZIP,anchor:"zipcode",required:t.isRequired("inforisqueParcelZIP"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2},on:{"update:value":function(e){return t.inforisqueParcelZIPValue=e}}})],1)]):t._e(),t._v(" "),t.showField("planttypeconsumer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.planttypeconsumerValue,name:"planttypeconsumer","label-name":t.getSelectFieldLabel("planttypeconsumer"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.planttypeconsumerOptions,required:t.isRequired("planttypeconsumer")},on:{"update:value":function(e){t.planttypeconsumerValue=e}}})],1)]):t._e(),t._v(" "),t.showField("personality")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.personalityValue,name:"personality","label-name":t.getSelectFieldLabel("personality"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.personalityOptions,required:t.isRequired("personality")},on:{"update:value":function(e){t.personalityValue=e}}})],1)]):t._e(),t._v(" "),t.showField("prefersAdviceby")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.prefersAdvicebyValue,name:"prefersAdviceby","label-name":t.getSelectFieldLabel("prefersAdviceby"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.prefersAdvicebyOptions,required:t.isRequired("prefersAdviceby")},on:{"update:value":function(e){t.prefersAdvicebyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("salesRepresentative")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.salesRepresentative,name:"salesRepresentative","label-name":t.getSelectFieldLabel("salesRepresentative"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.salesRepresentativeOptions,required:t.isRequired("salesRepresentative")},on:{"update:value":function(e){t.salesRepresentative=e}}})],1)]):t._e(),t._v(" "),t.showField("productFileTypes")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectMultiTagListField",{attrs:{value:t.productFileTypes,name:"productFileTypes","label-name":t.translations.label.productFileTypes,"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.placeholder.productFileTypes,options:t.productFileTypesOptions,required:t.isRequired("productFileTypes"),clearable:!1},on:{"update:value":[function(e){t.productFileTypes=e},function(e){return t.productFileTypes=e}]}})],1)]):t._e(),t._v(" "),t.showField("products")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ProductsWithFilterField",{attrs:{value:t.productsValue,"crop-list":t.cropListCurrent,name:"products","label-name":t.translations.label.products,placeholder:t.translations.placeholder.products,required:t.isRequired("products"),clearable:!1,"do-on-change-validation":t.attemptSubmit},on:{"update:value":[function(e){t.productsValue=e},function(e){return t.productsValue=e}]}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent",value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.servicesList&&t.servicesList.length&&!t.isSubscribed?i("div",{staticClass:"row services-multi-consent"},[i("div",{staticClass:"col-12"},[i("hr"),t._v(" "),i("ChecklistField",{attrs:{value:t.servicesMultiConsent,name:"services",list:t.servicesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!1,multiple:!0,cucumber:"form_checkbox_services"},on:{"update:value":function(e){t.servicesMultiConsent=e}}}),t._v(" "),t.translations.servicesMultiConsentCheckAll?i("CheckboxField",{attrs:{id:"servicesMultiConsentCheckAll",value:t.servicesMultiConsentCheckAll,name:"servicesMultiConsentCheckAll","checkbox-label":t.translations.servicesMultiConsentCheckAll,required:!1},on:{"update:value":[function(e){t.servicesMultiConsentCheckAll=e},function(e){return t.servicesMultiConsentCheckAllUpdateValue(e)}]}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],1)}),[],!1,oi,"data-v-5f2b38d0",null).exports;function li(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function ci(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?li(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):li(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ui={name:"PersonalDataForm",components:{TemplateForm:Ot,TextField:U.a,SelectField:Et.a,LocationField:ce},props:{formId:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},emailPattern:{type:RegExp,default:function(){}},phonePattern:{type:RegExp,default:function(){}},faxPattern:{type:RegExp,default:function(){}},eircodePattern:{type:RegExp,default:function(){}}},data:function(){return this.initFormData={},{salutationValue:{},titleValue:{},firstNameValue:"",lastNameValue:"",streetValue:"",streetNumberValue:"",locationValue:{},eircodeValue:"",emailValue:"",mobileValue:"",phoneValue:"",faxValue:"",attemptSubmit:!1,formDefinition:[],prefilledZip:"",prefilledCity:"",isDataRetrieved:!1,isFetchFormDefinitionRetrieved:!1,isLocationRetrieved:!1,loadingError:!1}},computed:ci(ci({},Object(m.c)({userId:function(t){return t.forms.userId},userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},billingAddressLocked:function(t){return t.forms.billingAddressLocked}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},salutationOptions:function(){return void 0!==window.salutationConfig&&window.salutationConfig.sort((function(t,e){return e.ordering-t.ordering}))},titleOptions:function(){return void 0!==window.titleConfig&&window.titleConfig.sort((function(t,e){return e.ordering-t.ordering}))},enableSalesForce:function(){return _e.a.useSalesForce()},isFormLoaded:function(){return this.isDataRetrieved&&this.isFetchFormDefinitionRetrieved&&this.isLocationRetrieved}
1,useEircode:function(){return"IE"===this.config.country},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved&&this.isLocationRetrieved&&this.isFetchFormDefinitionRetrieved}}),watch:{userId:{handler:function(t,e){t&&t!==e&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDefiniction(),this.retrieveData())}},isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormData(t.$refs)}),0)}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChanged(t.$refs,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}})),this.userId&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDefiniction(),this.retrieveData())},mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&(t.fetchFormDefiniction(),t.retrieveData())}))},methods:{fetchFormDefiniction:function(){var t=this;this.isFetchFormDefinitionRetrieved=!1,this.$store.dispatch("forms/fetchFormDefiniction",{formId:this.formId}).then((function(e){t.formDefinition=e,t.isFetchFormDefinitionRetrieved=!0,t.formDefinition.length||(t.loadingError=!0)})).catch((function(){t.loadingError=!0}))},isEnabled:function(t){return(!_e.a.useSalesForce()||"streetNumber"!==t)&&(!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display)},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},isMobileRequired:function(){return this.isRequired("mobile")&&!this.phoneValue||this.isRequired("mobile")&&!!this.phoneValue&&!!this.mobileValue},retrieveData:function(){var t=this;this.userId&&(this.isDataRetrieved=!1,this.$store.dispatch("forms/fetchFormData",{formId:this.formId}).then((function(e){t.salutationValue=e.salutation&&v.a.retrieveValue(t.salutationOptions,e.salutation,"code",{}),t.titleValue=e.title&&v.a.retrieveValue(t.titleOptions,e.title,"code",{}),t.firstNameValue=e.firstName||"",t.lastNameValue=e.lastName||"",t.streetValue=e.street||"",t.streetNumberValue=e.streetNumber||"",t.useEircode?(t.eircodeValue=e.zipcode||"",t.prefilledCity=v.a.prefillLocation(e,"city")):(t.prefilledZip=v.a.prefillLocation(e,"zipcode"),t.prefilledCity=v.a.prefillLocation(e,"city")),t.emailValue=e.email?e.email:t.userEmail||"",t.faxValue=e.fax||"",t.mobileValue=e.mobile?e.mobile:t.userMobile||"",t.phoneValue=e.phone||"",t.prefilledZip||t.prefilledCity?t.getLocation(t.prefilledZip,t.prefilledCity):t.isLocationRetrieved=!0,t.isDataRetrieved=!0})).catch((function(){t.loadingError=!0})))},getLocation:function(t,e){var i=this;this.isLocationRetrieved=!1,this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){i.locationValue=t,i.isLocationRetrieved=!0})).catch((function(){i.loadingError=!0}))}}};var di=function(t){i("6/Lq")},pi=Object(l.a)(ui,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"button-label":t.translations.saveForm,"attempt-submit":t.attemptSubmit,"back-button-visible":!1},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.isEnabled("salutation")||t.isEnabled("title")?i("div",{staticClass:"row"},[t.isEnabled("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("firstName")||t.isEnabled("lastName")?i("div",{staticClass:"row"},[t.isEnabled("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("street")||t.isEnabled("streetNumber")?i("div",{staticClass:"row"},[t.isEnabled("street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.isEnabled("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("zipcode")||t.isEnabled("city")?i("div",{staticClass:"row"},[t.isEnabled("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.isEnabled("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.isEnabled("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",subscript:t.translations.subscript.email.inProcess+" "+t.translations.subscript.email.change,disabled:!0,required:t.isRequired("email"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("mobile")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isMobileRequired(),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("phone")||t.isEnabled("fax")?i("div",{staticClass:"row"},[t.isEnabled("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:!(!t.isRequired("phone")||t.mobileValue),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e(),t._v(" "),t.isEnabled("fax")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}})],1):t._e()]):t._e()])}),[],!1,di,"data-v-1cba4272",null).exports;function mi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function hi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?mi(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):mi(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var fi={name:"OccupationForm",components:{TemplateForm:Ot,TextField:U.a,TextFieldMulti:It,SelectField:Et.a,CropsField:Ht,FileUploadField:Ce},props:{formId:{type:String,default:""},numberPattern:{type:RegExp,default:function(){}}},data:function(){return this.initFormData={},{occupationValue:[],occupationIsDisabled:!1,productUsageProof:"",cropListByOccupation:[],farmSizeValue:"",arableAreaSizeValue:"",cropsValue:[],cropAgriculturalAreaValue:[],cropListByArea:[],attemptSubmit:!1,formDefinition:[],prefilledCrops:[],prefilledAreaPerCrop:[],errorFarmSize:!1,cropListCurrent:[],isEnabledCrops:!1,isRequiredCrops:!1,isEnabledFarmSize:!1,isEnabledArableAreaSize:!1,isDataRetrieved:!1,isFetchFormDefinitionRetrieved:!1,loadingError:!1,jobTitleValue:{}}},computed:hi(hi({},Object(m.c)({userId:function(t){return t.forms.userId},serviceSubscriptions:function(t){return t.forms.serviceSubscriptions}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},jobTitleOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.jobTitle||!window.sspSelectFieldConfig.jobTitle.options.length)&&window.sspSelectFieldConfig.jobTitle.options.sort((function(t,e){return e.ordering-t.ordering}))},occupationOptions:function(){return void 0!==window.occupationConfig&&window.occupationConfig.sort((function(t,e){return e.ordering-t.ordering}))},isFormLoaded:function(){return this.isDataRetrieved&&this.isFetchFormDefinitionRetrieved},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved&&this.isFetchFormDefinitionRetrieved},isLoyaltySubscribed:function(){return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(t){return"ssp-customer-loyalty-service"===t.id&&"OK"===t.status}))}}),watch:{occupationValue:{handler:function(t,e){v.a.areEqualShallow(t,e)&&e||(this.cropListByOccupation=this.snConfigAllSSPCrops?v.a.sortByText(this.snConfigAllSSPCrops):[],this.isEnabledCrops=this.occupationValue.showCrops,this.isRequiredCrops=this.occupationValue.mandatoryCrops,this.isEnabledFarmSize=this.occupationValue.showFarmSize,this.isEnabledArableAreaSize=this.occupationValue.showArableAreaSize,this.cropListByArea=[],e&&e.id&&(this.prefilledCrops=[],this.prefilledAreaPerCrop=[]))},deep:!1},cropsValue:{handler:function(t,e){var i=this;if(t&&e){var a=t.filter((function(t){return!e.includes(t)})),s=e.filter((function(e){return!t.includes(e)}));a.length&&a.forEach((function(t){i.cropListByArea.push({name:v.a.getCropByAmigaCode(t,i.snConfigAllSSPCrops),id:t,value:""})})),s.length&&(this.cropListByArea=this.cropListByArea.filter((function(t){return!s.includes(t.id)}))),this.errorFarmSize&&0===this.cropListByArea.length&&(this.errorFarmSize=!1)}},deep:!1},farmSizeValue:function(){this.updateAgriculturalArea(this.cropAgriculturalAreaValue)},userId:{handler:function(t,e){t&&t!==e&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDefiniction(),this.retrieveData())}},isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormData(t.$refs)}),0)}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChanged(t.$refs,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}})),this.userId&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDefiniction(),this.retrieveData())},mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&(t.fetchFormDefiniction(),t.retrieveData())}))},methods:{fetchFormDefiniction:function(){var t=this;this.isFetchFormDefinitionRetrieved=!1,this.$store.dispatch("forms/fetchFormDefiniction",{formId:this.formId}).then((function(e){t.formDefinition=e,t.isFetchFormDefinitionRetrieved=!0,t.formDefinition.length||(t.loadingError=!0)})).catch((function(){t.loadingError=!0}))},isEnabled:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},retrieveData:function(){var t=this;this.userId&&(this.isDataRetrieved=!1,this.$store.dispatch("forms/fetchFormData",{formId:this.formId}).then((function(e){e.occupation&&(t.occupationValue=v.a.retrieveValue(t.occupationOptions,e.occupation,_e.a.useSalesForce()?"accountDetail":"bpType",[])),t.occupationValue&&""!==t.occupationValue&&t.isLoyaltySubscribed&&(t.occupationIsDisabled=!0),e.jobTitle&&(t.jobTitleValue=v.a.retrieveValue(t.jobTitleOptions,e.jobTitle,"code",{})),t.farmSizeValue=e.farmSize||"",t.arableAreaSizeValue=e.arableAreaSize||"",t.prefilledCrops=v.a.prefillCrops(e.crops,t.cropListByOccupation),t.prefilledAreaPerCrop=e.areaPerCrop||[],t.agreement=e.agreement,t.farmSizeValue=v.a.formatFloatNumbers(t.farmSizeValue),t.arableAreaSizeValue=v.a.formatFloatNumbers(t.arableAreaSizeValue),t.prefilledAreaPerCrop&&t.prefilledAreaPerCrop.forEac
1h((function(t){t.value&&(t.value=v.a.formatFloatNumbers(t.value))})),t.isDataRetrieved=!0})).catch((function(){t.loadingError=!0})))},updateAgriculturalArea:function(t){if(this.cropAgriculturalAreaValue=t,t){var e=0;this.cropAgriculturalAreaValue.forEach((function(t){e+=v.a.stringToDecimal(t.value)})),this.errorFarmSize=v.a.stringToDecimal(this.farmSizeValue)<e}else this.errorFarmSize=!1},isLessThanFarmSize:function(t){return v.a.stringToDecimal(t)<=v.a.stringToDecimal(this.farmSizeValue)},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""}}};var gi=function(t){i("OfNU")},vi=Object(l.a)(fi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"button-label":t.translations.saveForm,"attempt-submit":t.attemptSubmit,"back-button-visible":!1},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.isEnabled("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptions,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("productUsageProof")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("FileUploadField",{attrs:{value:t.productUsageProof,name:"productUsageProof",multiple:!0,"label-name":t.translations.label.productUsageProof,tooltip:t.translations.tooltip.productUsageProof,placeholder:t.translations.placeholder.productUsageProof,required:t.isRequired("productUsageProof"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.productUsageProof=e}}})],1)]):t._e(),t._v(" "),t.isEnabledFarmSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabledArableAreaSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.arableAreaSizeValue,name:"arableAreaSize","label-name":t.translations.label.arableAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.arableAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("arableAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.arableAreaSizeValue),"has-error-message":t.translations.invalid.arableAreaSize,cucumber:"form_input_arableAreaSize"},on:{"update:value":function(e){t.arableAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabledCrops?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("CropsField",{attrs:{"form-id":t.formId,placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListByOccupation,required:t.isRequiredCrops&&t.cropListByOccupation.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,"use-crm-crops":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.isEnabled("areaPerCrop")&&t.occupationValue&&Object.keys(t.occupationValue).length&&t.cropListByArea&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,"use-crm-crops":!0,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e()])}),[],!1,gi,"data-v-0d1ff2ab",null).exports;function bi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function wi(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?bi(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):bi(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var yi={name:"NewsPreferencesForm",components:{TemplateForm:Ot,Treeselect:Dt.a},props:{formId:{type:String,default:""},newsCategories:{type:String,default:""}},data:function(){return this.initFormData={},{attemptSubmit:!1,adjustedTreeOpenDirection:"below",treeSelectOpened:!1,valid:!0,newsCategoriesList:[],selectedNewsCategories:[],isDataRetrieved:!1,loadingError:!1}},computed:wi(wi({},Object(m.c)({userId:function(t){return t.forms.userId}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isFormLoaded:function(){return this.isDataRetrieved},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved}}),watch:{userId:{handler:function(t,e){t&&t!==e&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchNewsCategoriesData(),this.retrieveData())}},isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormDataForValue(t.selectedNewsCategories)}),0)}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChangedForValue(t.$refs,t.selectedNewsCategories,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}})),this.userId&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchNewsCategoriesData(),this.retrieveData())},mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&(t.fetchNewsCategoriesData(),t.retrieveData())}))},methods:{fetchNewsCategoriesData:function(){this.newsCategoriesList=this.newsCategories?JSON.parse(this.newsCategories):[]},onTreeOpen:function(){this.treeSelectOpened=!0,this.adjustedTreeOpenDirection=this.$refs.treeSelect.prefferedOpenDirection}
1,onTreeClose:function(){this.treeSelectOpened=!1},removeSelectedNewsCategoryByID:function(t){this.selectedNewsCategories=this.selectedNewsCategories.filter((function(e){return e!==t}))},getNewsCategoryLabelByID:function(t){var e="",i=this.newsCategoriesList.find((function(e){return e.id===t}));return i&&(e=i.label),e},submitNewsCategories:function(){var t=this;this.$store.dispatch("forms/submitNewsCategories",this.selectedNewsCategories).then((function(){t.$refs.templateForm.flagSubmit=1,t.$refs.templateForm.updateProgressBar()}),(function(){t.$refs.templateForm.flagSubmit=-1,t.loadingError=!0}))},retrieveData:function(){var t=this;this.userId&&(this.isDataRetrieved=!1,this.$store.dispatch("forms/getNewsCategories").then((function(e){t.selectedNewsCategories=e||[],t.isDataRetrieved=!0})).catch((function(){t.loadingError=!0})))}}};var Ci=function(t){i("YJbh")},_i=Object(l.a)(yi,(function(){var t,e=this,i=e.$createElement,a=e._self._c||i;return a("TemplateForm",{ref:"templateForm",attrs:{"form-id":e.formId,"button-label":e.translations.saveForm,"attempt-submit":e.attemptSubmit,"back-button-visible":!1},on:{"update:attemptSubmit":function(t){e.attemptSubmit=t},"update:attempt-submit":function(t){e.attemptSubmit=t},submitMethod:e.submitNewsCategories}},[e.userId?a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-6 news-preferences"},[a("div",{staticClass:"treeselect-wrapper",class:(t={},t["treeselect-open-"+e.adjustedTreeOpenDirection]=e.treeSelectOpened,t)},[a("div",{staticClass:"selectPlaceholder"},[e._v(e._s(e.translations.placeholder.newsPreferences))]),e._v(" "),a("treeselect",{ref:"treeSelect",attrs:{"auto-load-root-options":!1,multiple:!0,clearable:!1,searchable:!1,"open-on-click":!0,"clear-on-select":!0,options:e.newsCategoriesList,flat:!0,disabled:!1,"open-direction":"below",placeholder:""},on:{open:e.onTreeOpen,close:e.onTreeClose},model:{value:e.selectedNewsCategories,callback:function(t){e.selectedNewsCategories=t},expression:"selectedNewsCategories"}})],1),e._v(" "),a("div",{staticClass:"news-categories-selector"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.selectedNewsCategories&&e.selectedNewsCategories.length>0,expression:"selectedNewsCategories && selectedNewsCategories.length > 0"}]},e._l(e.selectedNewsCategories,(function(t,i){return a("span",{key:i,staticClass:"button button-close",on:{click:function(i){return e.removeSelectedNewsCategoryByID(t)}}},[e._v("\n            "+e._s(e.getNewsCategoryLabelByID(t))+"\n          ")])})),0)])])]):e._e()])}),[],!1,Ci,"data-v-ea77a60e",null).exports;function Si(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ti(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Si(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Si(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Pi={name:"NewsCategoryAddToFavorite",components:{Loader:j.a},props:{loginLinkUrl:{type:String,default:""},sspServicesLinkUrl:{type:String,default:""},newsCategory:{type:String,default:""},headlineAdded:{type:String,default:""},headlineNotAdded:{type:String,default:""}},data:function(){return{showLoader:!0,newsCategoryAdded:!1,newsCategories:[]}},computed:Ti(Ti({},Object(m.c)({userId:function(t){return t.forms.userId}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.newsCategoryAddToFavorite)&&window.snTranslations.newsCategoryAddToFavorite},config:function(){return void 0!==window.snConfig&&window.snConfig}}),watch:{userId:{handler:function(t,e){t&&t!==e&&this.retrieveData()}}},created:function(){this.userId&&this.retrieveData()},mounted:function(){this.showLoader=!1},methods:{addNewsCategory:function(){var t=this;this.userId?-1===this.newsCategories.indexOf(this.newsCategory)&&(this.newsCategories.push(this.newsCategory),this.$store.dispatch("forms/submitNewsCategories",this.newsCategories).then((function(){t.newsCategoryAdded=!0}))):window.location.href="".concat(this.config.apiUrlConfig).concat(this.loginLinkUrl)},changeSettings:function(){this.userId?window.location.href="".concat(this.config.apiUrlConfig).concat(this.sspServicesLinkUrl):window.location.href="".concat(this.config.apiUrlConfig).concat(this.loginLinkUrl)},retrieveData:function(){var t=this;this.userId&&(this.showLoader=!0,this.$store.dispatch("forms/getNewsCategories").then((function(e){t.newsCategories=e||[],-1!==t.newsCategories.indexOf(t.newsCategory)&&(t.newsCategoryAdded=!0),t.showLoader=!1}),(function(){t.showLoader=!1})))}}};var Fi=function(t){i("twPk")},xi=Object(l.a)(Pi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content-module news-category-add-to-favorite"}
1,[t.newsCategoryAdded?t._e():i("div",{staticClass:"content"},[t.headlineNotAdded?i("h3",[t._v(t._s(t.headlineNotAdded))]):t._e(),t._v(" "),i("p",[t._v(t._s(t.translations.notAdded.text))]),t._v(" "),i("div",{staticClass:"button color-white",on:{click:t.addNewsCategory}},[i("span",{staticClass:"icon icon-star"}),t._v(t._s(t.translations.notAdded.button))])]),t._v(" "),t.newsCategoryAdded?i("div",{staticClass:"content"},[t.headlineAdded?i("h3",[t._v(t._s(t.headlineAdded))]):t._e(),t._v(" "),i("p",[t._v(t._s(t.translations.added.text))]),t._v(" "),i("div",{staticClass:"button color-white bg-grey",on:{click:t.changeSettings}},[t._v(t._s(t.translations.added.button))])]):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader}})],1)}),[],!1,Fi,"data-v-28769304",null).exports,Oi={name:"PostalServiceForm",extends:si,computed:{hasAdditionalFields:function(){return this.showField("taxNumber")||this.showField("jobTitle")||this.showField("occupation")||this.showField("productUsageProof")||this.showField("farmSize")||this.showField("crops")||this.showField("organicAreaSize")||this.showField("planttypeconsumer")||this.showField("personality")||this.showField("prefersAdviceby")||this.servicesMultiConsent&&this.servicesMultiConsent.length&&(this.showMultiConsentField("farmerRegNumber")||this.showMultiConsentField("fax")||this.showMultiConsentField("dateOfBirth")||this.showMultiConsentField("areaPerCrop")&&this.occupationValue&&this.cropListByArea.length)}}};var ki=function(t){i("mIlm")},Li=Object(l.a)(Oi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[i("section",{directives:[{name:"show",rawName:"v-show",value:t.subscriptionOptions&&t.subscriptionOptions.length>1,expression:"subscriptionOptions && (subscriptionOptions.length > 1)"}]},[i("div",{staticClass:"row mt-3 mb-3"},[i("div",{staticClass:"col-12 subscription-options"},[i("ChecklistField",{attrs:{value:t.subscriptions,name:"subscriptions","label-name":t.translations.label.materialCategory,list:t.subscriptionOptions,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,"validation-text":t.translations.invalid.materialCategory,cucumber:"form_checkbox_subscriptions"},on:{"update:value":function(e){t.subscriptions=e}}})],1)])]),t._v(" "),t.enableMultiAddress?[t.translations.postalService.addressInformation?i("section",{domProps:{innerHTML:t._s(t.translations.postalService.addressInformation)}}):t._e(),t._v(" "),i("AddressSection",{staticClass:"mb-5",attrs:{"form-id":t.formId,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,"email-pattern":t.emailPattern,"phone-pattern":t.phonePattern,"fax-pattern":t.faxPattern,"eircode-pattern":t.eircodePattern,"enable-submit":!1}}),t._v(" "),t.translations.postalService.additionalInformation&&t.hasAdditionalFields?i("section",{domProps:{innerHTML:t._s(t.translations.postalService.additionalInformation)}}):t._e()]:[t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("company")||t.showField("street")||t.showField("streetNumber")?i("div",{staticClass:"row"},[t.showField("company")?i("div",{staticClass:"col-12 col-sm-6 d-flex align-items-end"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1):t._e(),t._v(" "),t.showField("street")?i("div",{staticClass:"col-12 d-flex align-items-end",class:[t.showField("streetNumber")?"col-sm-4":"col-sm-6"]},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("streetNumber")?i("div",{staticClass:"col-12 col-sm-2 d-flex align-items-end"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("contactZipcode")||t.showField("contactCity")||t.showField("contactStreet")||t.showField("contactStreetNumber")?i("fieldset",[i("legend",[t._v(t._s(t.translations.label.deliveryAddress))]),t._v(" "),t.showField("contactZipcode")||t.showField("contactCity")?i("div",{staticClass:"row"},[t.showField("contactZipcode")?i("div",{staticClass:"col-12 col-sm-4"},[t.useEircode?t._e():i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactZipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){return t.contactLocationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.contactEircodeValue,name:"contactZipcode","label-name":t.translations.label.eircode,tooltip:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){t.contactEircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("contactCity")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactCity","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("contactCity"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactCity"},on:{"update:value":function(e){return t.contactLocationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("contactStreet")||t.showField("contactStreetNumber")?i("div",{staticClass:"row"},[t.showField("contactStreet")?i("div",{staticClass:"col-12 col-sm-8"},[i("TextField",{attrs:{value:t.contactStreetValue,name:"contactStreet","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("contactStreet"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreet"},on:{"update:value":function(e){t.contactStreetValue=e}}})],1):t._e(),t._v(" "),t.showField("contactStreetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.contactStreetNumberValue,name:"contactStreetNumber","label-name":t.translations.label.no,required:t.isRequired("contactStreetNumber"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreetNumber"},on:{"update:value":function(e){t.contactStreetNumberValue=e}}})],1):t._e()]):t._e()]):t._e(),t._v(" "),t.showField("phone")||t.showField("mobile")||t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[t.showField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("mobile"),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,required:!1,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()]):t._e()],t._v(" "),t.showField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,tooltip:t.translations.tooltip.taxNumber,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("taxNumber"),"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.cropListCurrent,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("productUsageProof")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("FileUploadField",{attrs:{value:t.productUsageProof,name:"productUsageProof",multiple:!0,"label-name":t.translations.label.productUsageProof,tooltip:t.translations.tooltip.productUsageProof,placeholder:t.translations.placeholder.productUsageProof,required:t.isRequired("productUsageProof"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.productUsageProof=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("planttypeconsumer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.planttypeconsumerValue,name:"planttypeconsumer","label-name":t.getSelectFieldLabel("planttypeconsumer"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.planttypeconsumerOptions,required:t.isRequired("planttypeconsumer")},on:{"update:value":function(e){t.planttypeconsumerValue=e}}})],1)]):t._e(),t._v(" "),t.showField("personality")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.personalityValue,name:"personality","label-name":t.getSelectFieldLabel("personality"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.personalityOptions,required:t.isRequired("personality")},on:{"update:value":function(e){t.personalityValue=e}}})],1)]):t._e(),t._v(" "),t.showField("prefersAdviceby")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.prefersAdvicebyValue,name:"prefersAdviceby","label-name":t.getSelectFieldLabel("prefersAdviceby"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.prefersAdvicebyOptions,required:t.isRequired("prefersAdviceby")},on:{"update:value":function(e){t.prefersAdvicebyValue=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent",value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.servicesList&&t.servicesList.length&&!t.isSubscribed?i("div",{staticClass:"row services-multi-consent"},[i("div",{staticClass:"col-12"},[i("hr"),t._v(" "),i("ChecklistField",{attrs:{value:t.servicesMultiConsent,name:"services",list:t.servicesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!1,multiple:!0,cucumber:"form_checkbox_services"},on:{"update:value":function(e){t.servicesMultiConsent=e}}}),t._v(" "),t.translations.servicesMultiConsentCheckAll?i("CheckboxField",{attrs:{id:"servicesMultiConsentCheckAll",value:t.servicesMultiConsentCheckAll,name:"servicesMultiConsentCheckAll","checkbox-label":t.translations.servicesMultiConsentCheckAll,required:!1},on:{"update:value":[function(e){t.servicesMultiConsentCheckAll=e},function(e){return t.servicesMultiConsentCheckAllUpdateValue(e)}]}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),t.servicesMultiConsent&&t.servicesMultiConsent.length?i("section",[t.showMultiConsentField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("farmerRegNumber"),cucumber:"form_input_farmerRegNumber"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showMultiConsentField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,tooltip:t.translations.tooltip.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,superscript:t.translations.superscript.newsletter.fax,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax",value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showMultiConsentField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e(),t._v(" "),t.showMultiConsentField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e()]):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],2)}),[],!1,ki,"data-v-3a86c6e4",null).exports,Ii={name:"CallBackServiceForm",extends:si,data:function(){return{updatedFormElements:[]}}};var Ei=function(t){i("yWg6")},Vi=Object(l.a)(Ii,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.showField("salutation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.zipcode,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("phone")||t.showField("mobile")||t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",[t.translations.superscript.phone?i("div",{staticClass:"row"},[i("div",{staticClass:"col",domProps:{innerHTML:t._s(t.translations.superscript.phone)}})]):t._e(),t._v(" "),i("div",{staticClass:"row"},[t.showField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isMobileRequired(),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,required:!1,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:!(!t.isRequired("phone")||t.mobileValue),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()])]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("occupation"),"service-crop-list":t.cropListCurrent,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"do-on-change-validation":t.attemptSubmit,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent",value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.servicesList&&t.servicesList.length&&!t.isSubscribed?i("div",{staticClass:"row services-multi-consent"},[i("div",{staticClass:"col-12"},[i("hr"),t._v(" "),i("ChecklistField",{attrs:{value:t.servicesMultiConsent,name:"services",list:t.servicesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!1,multiple:!0,cucumber:"form_checkbox_services"},on:{"update:value":function(e){t.servicesMultiConsent=e}}}),t._v(" "),t.translations.servicesMultiConsentCheckAll?i("CheckboxField",{attrs:{id:"servicesMultiConsentCheckAll",value:t.servicesMultiConsentCheckAll,name:"servicesMultiConsentCheckAll","checkbox-label":t.translations.servicesMultiConsentCheckAll,required:!1},on:{"update:value":[function(e){t.servicesMultiConsentCheckAll=e},function(e){return t.servicesMultiConsentCheckAllUpdateValue(e)}]}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),t.servicesMultiConsent&&t.servicesMultiConsent.length?i("section",[t.showMultiConsentField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("farmerRegNumber"),cucumber:"form_input_farmerRegNumber"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showMultiConsentField("title")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1)]):t._e(),t._v(" "),t.showMultiConsentField("street")||t.showMultiConsentField("streetNumber")?i("div",{staticClass:"row"},[t.showMultiConsentField("street")?i("div",{staticClass:"col-12 d-flex align-items-end",class:{"col-sm-8":t.showMultiConsentField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showMultiConsentField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4 d-flex align-items-end"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showMultiConsentField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,tooltip:t.translations.tooltip.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,superscript:t.translations.superscript.newsletter.fax,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax",value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showMultiConsentField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,tooltip:t.translations.tooltip.taxNumber,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("taxNumber"),"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showMultiConsentField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e()]):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],1)}),[],!1,Ei,"data-v-49b4d480",null).exports,Ai={name:"MessagingService",components:{TemplateForm:Ot},extends:si};var Di=function(t){i("ltg3")},Mi=Object(l.a)(Ai,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}})}),[],!1,Di,"data-v-d36968b0",null).exports,Ri={name:"AppService",components:{TemplateForm:Ot},extends:si};var $i=function(t){i("TWwr")},Ni=Object(l.a)(Ri,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}})}),[],!1,$i,"data-v-ca6683f0",null).exports,ji={name:"AppServiceForm",components:{TemplateForm:Ot},extends:si};var zi=function(t){i("WozJ")},Bi=Object(l.a)(ji,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row d-none"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("email")?i("div",{staticClass:"row d-none"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",subscript:t.translations.subscript.email.inProcess+" "+t.translations.subscript.email.change,superscript:t.translations.superscript.newsletter.default,required:t.isRequired("email"),"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("emailDisplay")&&"email"===t.loginType?i("div",{staticClass:"row d-none"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"emailDisplay","label-name":t.translations.label.email,"input-type":"email",required:!1,"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row d-none"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:!0,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:!0,cucumber:"form_input_zipcode","do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:!0,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],1)}),[],!1,zi,"data-v-6d82d3a6",null).exports,qi={name:"CampaignsServiceForm",extends:si,computed:{hasAdditionalFields:function(){return this.showField("dateOfBirth")||this.showField("taxNumber")||this.showField("jobTitle")||this.showField("occupation")||this.showField("customProducts")||this.showField("positionOnFarm")||this.showField("farmPartOfHolding")||this.showField("holding")&&this.farmPartOfHolding||this.showField("customHolding")&&this.farmPartOfHolding&&this.holdingValue&&this.holdingValue.id&&"not-listed"===this.holdingValue.id||this.showField("productUsageProof")||this.showField("farmSize")||this.showField("crops")||this.showField("areaPerCrop")&&this.occupationValue&&this.cropListByArea.length||this.showField("organicAreaSize")||this.showField("salesRepresentative")||this.showField("purchasedProductVizura")||this.showField("purchasedProductLimusClear")||this.showField("purchasedProductButisanComplete")||this.showField("purchasedProductButisanAquaPack")||this.showField("bonusVizura")||this.showField("bonusLimusClear")||this.showField("bonusButisanComplete")||this.showField("bonusButisanAquaPack")||this.servicesMultiConsent&&this.servicesMultiConsent.length&&(this.showMultiConsentField("farmerRegNumber")||this.showMultiConsentField("fax"))}}};var Ui=function(t){i("Cj/m")},Hi=Object(l.a)(qi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.enableMultiAddress?[t.translations.postalService.addressInformation?i("section",{domProps:{innerHTML:t._s(t.translations.postalService.addressInformation)}}):t._e(),t._v(" "),i("AddressSection",{staticClass:"mb-5",attrs:{"form-id":t.formId,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,"email-pattern":t.emailPattern,"phone-pattern":t.phonePattern,"fax-pattern":t.faxPattern,"eircode-pattern":t.eircodePattern,"enable-submit":!1}}),t._v(" "),t.translations.postalService.additionalInformation&&t.hasAdditionalFields?i("section",{domProps:{innerHTML:t._s(t.translations.postalService.additionalInformation)}}):t._e()]:[t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("street")||t.showField("streetNumber")?i("div",{staticClass:"row"},[t.showField("street")?i("div",{staticClass:"col-12",class:{"col-sm-6":t.showField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("streetNumber")?i("div",{staticClass:"col-6"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6 d-flex align-items-end"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("phone")||t.showField("mobile")||t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[t.showField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("mobile"),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,required:!1,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",subscript:t.translations.subscript.email.inProcess+" "+t.translations.subscript.email.change,superscript:t.translations.superscript.newsletter.default,required:t.isRequired("email"),"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("emailDisplay")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"emailDisplay","label-name":t.translations.label.email,"input-type":"email",required:!1,"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e()],t._v(" "),t.showField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e(),t._v(" "),t.showField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,tooltip:t.translations.tooltip.taxNumber,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("taxNumber"),"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e},blur:function(e){return t.loadHoldings()}}}
1)],1)]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.cropListCurrent,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("customProducts")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.customProducts,name:"customProducts",list:t.customProductsList,"label-name":t.getSelectFieldLabel("customProducts"),"display-required-flag":t.isRequired("customProducts"),"do-on-change-validation":t.attemptSubmit,required:t.isRequired("customProducts"),multiple:!0,cucumber:"form_checkbox_customProducts"},on:{"update:value":function(e){t.customProducts=e}}})],1)]):t._e(),t._v(" "),t.showField("positionOnFarm")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.positionOnFarmValue,name:"positionOnFarm","label-name":t.getSelectFieldLabel("positionOnFarm"),placeholder:t.translations.singleSelect,options:t.positionOnFarmOptions,required:t.isRequired("positionOnFarm"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_positionOnFarm"},on:{"update:value":function(e){return t.positionOnFarmValue=e}}})],1)]):t._e(),t._v(" "),t.showField("farmPartOfHolding")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"farmPartOfHolding",value:t.farmPartOfHolding,name:"farmPartOfHolding","checkbox-label":t.translations.label.farmPartOfHolding,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_farmPartOfHolding"},on:{"update:value":function(e){t.farmPartOfHolding=e}}})],1)]):t._e(),t._v(" "),t.showField("holding")&&t.farmPartOfHolding?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.holdingValue,name:"holding","label-name":t.translations.label.holding,placeholder:t.translations.singleSelect,options:t.holdingOptions,required:t.isRequired("holding"),disabled:t.holdingIsDisabled,"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_holding"},on:{"update:value":function(e){return t.holdingValue=e}}})],1)]):t._e(),t._v(" "),t.showField("customHolding")&&t.farmPartOfHolding&&t.holdingValue&&t.holdingValue.id&&"not-listed"===t.holdingValue.id?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.customHoldingValue,name:"customHolding","label-name":t.translations.label.customHolding,required:t.isRequired("customHolding"),disabled:t.holdingIsDisabled,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_customHolding"},on:{"update:value":function(e){t.customHoldingValue=e}}})],1)]):t._e(),t._v(" "),t.showField("productUsageProof")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FileUploadField",{attrs:{value:t.productUsageProof,name:"productUsageProof",multiple:!0,"label-name":t.translations.label.productUsageProof,tooltip:t.translations.tooltip.productUsageProof,placeholder:t.translations.placeholder.productUsageProof,required:t.isRequired("productUsageProof"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.productUsageProof=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("salesRepresentative")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.salesRepresentative,name:"salesRepresentative","label-name":t.getSelectFieldLabel("salesRepresentative"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.salesRepresentativeOptions,required:t.isRequired("salesRepresentative")},on:{"update:value":function(e){t.salesRepresentative=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductVizura")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductVizura,name:"purchasedProductVizura","label-name":t.translations.label.purchasedProductVizura,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductVizura"),"input-type":"number","do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.purchasedProductVizura=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductLimusClear")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductLimusClear,name:"purchasedProductLimusClear","label-name":t.translations.label.purchasedProductLimusClear,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductLimusClear"),"input-type":"number","do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.purchasedProductLimusClear=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductButisanComplete")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductButisanComplete,name:"purchasedProductButisanComplete","label-name":t.translations.label.purchasedProductButisanComplete,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductButisanComplete"),"input-type":"number","do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.purchasedProductButisanComplete=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductButisanAquaPack")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductButisanAquaPack,name:"purchasedProductButisanAquaPack","label-name":t.translations.label.purchasedProductButisanAquaPack,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductButisanAquaPack"),"input-type":"number","do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.purchasedProductButisanAquaPack=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusVizura")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusVizura,name:"bonusVizura","label-name":t.getSelectFieldLabel("bonusVizura"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusVizura"),required:t.isRequired("bonusVizura")},on:{"update:value":function(e){t.bonusVizura=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusLimusClear")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusLimusClear,name:"bonusLimusClear","label-name":t.getSelectFieldLabel("bonusLimusClear"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusLimusClear"),required:t.isRequired("bonusLimusClear")},on:{"update:value":function(e){t.bonusLimusClear=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusButisanComplete")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusButisanComplete,name:"bonusButisanComplete","label-name":t.getSelectFieldLabel("bonusButisanComplete"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusButisanComplete"),required:t.isRequired("bonusButisanComplete")},on:{"update:value":function(e){t.bonusButisanComplete=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusButisanAquaPack")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusButisanAquaPack,name:"bonusButisanAquaPack","label-name":t.getSelectFieldLabel("bonusButisanAquaPack"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusButisanAquaPack"),required:t.isRequired("bonusButisanAquaPack")},on:{"update:value":function(e){t.bonusButisanAquaPack=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent",value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.servicesList&&t.servicesList.length&&!t.isSubscribed?i("div",{staticClass:"row services-multi-consent"},[i("div",{staticClass:"col-12"},[i("hr"),t._v(" "),i("ChecklistField",{attrs:{value:t.servicesMultiConsent,name:"services",list:t.servicesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!1,multiple:!0,cucumber:"form_checkbox_services"},on:{"update:value":function(e){t.servicesMultiConsent=e}}}),t._v(" "),t.translations.servicesMultiConsentCheckAll?i("CheckboxField",{attrs:{id:"servicesMultiConsentCheckAll",value:t.servicesMultiConsentCheckAll,name:"servicesMultiConsentCheckAll","checkbox-label":t.translations.servicesMultiConsentCheckAll,required:!1,"display-required-flag":!1},on:{"update:value":[function(e){t.servicesMultiConsentCheckAll=e},function(e){return t.servicesMultiConsentCheckAllUpdateValue(e)}]}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),t.servicesMultiConsent&&t.servicesMultiConsent.length?i("section",[t.showMultiConsentField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("farmerRegNumber"),cucumber:"form_input_farmerRegNumber"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showMultiConsentField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,tooltip:t.translations.tooltip.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,superscript:t.translations.superscript.newsletter.fax,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax",value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],2)}),[],!1,Ui,"data-v-115ab1fe",null).exports,Gi={name:"CustomerLoyaltyServiceForm",extends:si,props:{linkUnsubscribe:{type:String,default:""},tealiumName:{type:String,default:""}},data:function(){return{occupationIsValid:!0,occupationIsNotValidMessage:"",occupationIsValidMessage:""}},computed:{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return v.a}},watch:{occupationValue:{handler:function(t){var e=this;this.occupationIsValid=!0,this.occupationIsNotValidMessage="",this.occupationIsValidMessage="",t&&t.bpType&&(0===t.bpType.indexOf("Distributor")?this.occupationIsValidMessage=this.translations.customerLoyaltyService.invalid.occupationRetailer:-1===t.bpType.indexOf("End User / Consumer")&&(this.occupationIsNotValidMessage=this.translations.customerLoyaltyService.invalid.occupationNotCustomer,this.occupationIsValid=!1)),this.$nextTick((function(){e.$refs&&e.$refs.occupationValueRef&&e.$refs.occupationValueRef.validate()}))},deep:!1}}};var Wi=function(t){i("YrhM")},Zi=Object(l.a)(Gi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",staticClass:"ssp-customer-loyalty-service",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"back-button-visible":!1,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"show-unsubscribe":!1},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}},scopedSlots:t._u([t.isSubscribed||t.isPendingUnsubscribe?{key:"additionalButtonsSlot",fn:function(){return[i("a",{staticClass:"ssp-button basic",class:{disabled:t.isPendingUnsubscribe},attrs:{id:"cucumber_unsubscribe_"+t.tealiumName,href:t.isPendingUnsubscribe?"":t.linkUnsubscribe,title:t.functionHelper.formatTitle(t.translationsCommon.clickTo,t.translations.unsubscribe.label),"data-teal
1ium-value":"unsubscribe_"+t.tealiumName,"data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.label)}})]},proxy:!0}:null],null,!0)},[t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{ref:"occupationValueRef",attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.cropListCurrent,"is-valid":t.occupationIsValid,"is-not-valid-message":t.occupationIsNotValidMessage,"is-valid-message":t.occupationIsValidMessage,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("farmerRegNumber"),cucumber:"form_input_farmerRegNumber"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("street")||t.showField("streetNumber")?i("div",{staticClass:"row"},[t.showField("street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("phone")||t.showField("mobile")||t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[t.showField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("mobile"),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,required:!1,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax",value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showField("productUsageProof")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FileUploadField",{attrs:{value:t.productUsageProof,name:"productUsageProof",multiple:!0,"label-name":t.translations.label.productUsageProof,tooltip:t.translations.tooltip.productUsageProof,placeholder:t.translations.placeholder.productUsageProof,required:t.isRequired("productUsageProof"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.productUsageProof=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent",value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.servicesList&&t.servicesList.length&&!t.isSubscribed?i("div",{staticClass:"row services-multi-consent"},[i("div",{staticClass:"col-12"},[i("hr"),t._v(" "),i("ChecklistField",{attrs:{value:t.servicesMultiConsent,name:"services",list:t.servicesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!1,multiple:!0,cucumber:"form_checkbox_services"},on:{"update:value":function(e){t.servicesMultiConsent=e}}}),t._v(" "),t.translations.servicesMultiConsentCheckAll?i("CheckboxField",{attrs:{id:"servicesMultiConsentCheckAll",value:t.servicesMultiConsentCheckAll,name:"servicesMultiConsentCheckAll","checkbox-label":t.translations.servicesMultiConsentCheckAll,required:!1},on:{"update:value":[function(e){t.servicesMultiConsentCheckAll=e},function(e){return t.servicesMultiConsentCheckAllUpdateValue(e)}]}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),t.servicesMultiConsent&&t.servicesMultiConsent.length?i("section",[t.showMultiConsentField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,tooltip:t.translations.tooltip.taxNumber,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("taxNumber"),"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e()]):t._e(),t._v(" "),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],1)}),[],!1,Wi,"data-v-83dd1f56",null).exports,Ji={name:"CustomerLoyaltyServiceSingleFormDE",components:{PopupComp:o.a},extends:si,props:{linkUnsubscribe:{type:String,default:""},tealiumName:{type:String,default:""}},data:function(){return{occupationIsValid:!0,occupationIsNotValidMessage:"",occupationIsValidMessage:"",showHelp:!1}},computed:{translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return v.a}},watch:{occupationValue:{handler:function(t){var e=this;this.occupationIsValid=!0,this.occupationIsNotValidMessage="",this.occupationIsValidMessage="",t&&t.bpType&&(0===t.bpType.indexOf("Distributor")?this.occupationIsValidMessage=this.translations.customerLoyaltyService.invalid.occupationRetailer:-1===t.bpType.indexOf("End User / Consumer")&&(this.occupationIsNotValidMessage=this.translations.customerLoyaltyService.invalid.occupationNotCustomer,this.occupationIsValid=!1)),this.$nextTick((function(){e.$refs&&e.$refs.occupationValueRef&&e.$refs.occupationValueRef.validate()}))},deep:!1}},methods:{toggleShowHelp:function(){var t=this;this.showHelp=!this.showHelp,this.showHelp&&this.$nextTick((function(){t.$refs.helpContentRef&&t.$refs.helpContentRef.scrollIntoView()}))},afterSubmit:function(){this.$refs.templateForm.hasSubscribed?this.$refs.templateForm.triggerPopup():this.$refs.popupSuccessRef.open()}}};var Ki=function(t){i("2YGV")},Yi=Object(l.a)(Ji,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container ssp-customer-loyalty-service-single-de"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col text-center image-container"},[i("div",{staticClass:"image-container__logo"}),t._v(" "),t.translations.sspCustomerLoyaltyServiceSingleDe.headline?i("h2",{staticClass:"mt-3 font-weight-normal"},[t._v("\n        "+t._s(t.translations.sspCustomerLoyaltyServiceSingleDe.headline)+"\n      ")]):t._e()])]),t._v(" "),i("div",{staticClass:"row mt-5"},[i("div",{staticClass:"col"},[i("TemplateForm",{ref:"templateForm",staticClass:"ssp-customer-loyalty-service",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.translations.sspCustomerLoyaltyServiceSingleDe.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"back-button-visible":!1,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"show-unsubscribe":!1,"init-button-label":t.translations.sspCustomerLoyaltyServiceSingleDe.continueButton},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e},afterSubmitMethod:t.afterSubmit},scopedSlots:t._u([{key:"additionalButtonsSlot",fn:function(){return[t.isSubscribed||t.isPendingUnsubscribe?[i("a",{staticClass:"ssp-button basic",class:{disabled:t.isPendingUnsubscribe},attrs:{id:"cucumber_unsubscribe_"+t.tealiumName,href:t.isPendingUnsubscribe?"":t.linkUnsubscribe,title:t.functionHelper.formatTitle(t.translationsCommon.clickTo,t.translations.unsubscribe.label),"data-teal
1ium-value":"unsubscribe_"+t.tealiumName,"data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.label)}})]:t._e(),t._v(" "),i("section",{staticClass:"d-flex align-items-center justify-content-center cursor-pointer",on:{click:function(e){return t.toggleShowHelp()}}},[i("span",{staticClass:"help-icon"}),t._v(" "),i("p",{staticClass:"mb-0 ml-2 help-text"},[t._v(t._s(t.translations.sspCustomerLoyaltyServiceSingleDe.helperTitle))])])]},proxy:!0}])},[t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company","display-required-flag":!1},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation","display-required-flag":!1},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title","display-required-flag":!1},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName","display-required-flag":!1},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName","display-required-flag":!1},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),i("hr",{staticClass:"divider mb-4 mt-3"}),t._v(" "),t.showField("street")||t.showField("streetNumber")?i("div",{staticClass:"row"},[t.showField("street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street","display-required-flag":!1},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber","display-required-flag":!1},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"},[i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode","display-required-flag":!1},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city","display-required-flag":!1},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("phone")?i("hr",{staticClass:"divider mb-4 mt-3"}):t._e(),t._v(" "),t.showField("emailDisplay")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.emailValue,name:"emailDisplay","label-name":t.translations.label.email,"input-type":"email",required:!1,"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("phone")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.sspCustomerLoyaltyServiceSingleDe.inputPhoneLabel,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone","display-required-flag":!1},on:{"update:value":function(e){t.phoneValue=e}}})],1)]):t._e(),t._v(" "),t.showField("arableAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.arableAreaSizeValue,name:"arableAreaSize","label-name":t.translations.sspCustomerLoyaltyServiceSingleDe.arableAreaSizeLabel+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.sspCustomerLoyaltyServiceSingleDe.arableAreaSizeTooltip,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("arableAreaSize"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_arableAreaSize","display-required-flag":!1},on:{"update:value":function(e){t.arableAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.showField("FC_I_am_farmer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"FC_I_am_farmer",value:t.FC_I_am_farmer,name:"FC_I_am_farmer","checkbox-label":t.translations.sspCustomerLoyaltyServiceSingleDe.FC_I_am_farmerLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_FC_I_am_farmer",required:t.isRequired("FC_I_am_farmer")},on:{"update:value":function(e){t.FC_I_am_farmer=e}}})],1)]):t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.translations.sspCustomerLoyaltyServiceSingleDe.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]),t._v(" "),t.translations.sspCustomerLoyaltyServiceSingleDe.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.translations.sspCustomerLoyaltyServiceSingleDe.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement",required:!1},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e()]):t._e(),t._v(" "),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],1),t._v(" "),t.showHelp?i("section",{ref:"helpContentRef",staticClass:"help-content"},[i("div",{staticClass:"d-flex align-items-center help-content__container"},[i("div",{staticClass:"help-content-icon mr-3"}),t._v(" "),i("div",{staticClass:"help-content__info",domProps:{innerHTML:t._s(t.translations.sspCustomerLoyaltyServiceSingleDe.helperContent)}})])]):t._e()],1)]),t._v(" "),i("PopupComp",{ref:"popupSuccessRef",staticClass:"ssp-customer-loyalty-service-single-de
1-popup",attrs:{"show-close":!1}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col text-center image-container"},[i("div",{staticClass:"image-container__logo_only"}),t._v(" "),i("div",{staticClass:"text"},[t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessHeadline?i("div",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessHeadline)}}):t._e(),t._v(" "),t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessText?i("div",{domProps:{innerHTML:t._s(t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessText)}}):t._e(),t._v(" "),t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessLinkUrl?i("a",{staticClass:"ssp-button mt-5 d-inline-block",attrs:{href:t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessLinkUrl,title:t.functionHelper.formatTitle(t.translationsCommon.visit,t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessLinkUrl)}},[t._v("\n            "+t._s(t.translations.sspCustomerLoyaltyServiceSingleDe.popupSuccessLinkText)+"\n          ")]):t._e()])])])])],1)}),[],!1,Ki,"data-v-2bd2b84b",null).exports,Qi={name:"TemplateNewsletterServiceForm",extends:si};var Xi=function(t){i("eCkw")},ta=Object(l.a)(Qi,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("farmerRegNumber"),cucumber:"form_input_farmerRegNumber"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[t.showField("company")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,tooltip:t.translations.tooltip.taxNumber,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("taxNumber"),"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",subscript:t.translations.subscript.email.inProcess+" "+t.translations.subscript.email.change,superscript:t.translations.superscript.newsletter.default,required:t.isRequired("email"),"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("emailDisplay")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"emailDisplay","label-name":t.translations.label.email,"input-type":"email",required:!1,"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,tooltip:t.translations.tooltip.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,superscript:t.translations.superscript.newsletter.fax,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax",value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.cropListCurrent,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("planttypeconsumer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.planttypeconsumerValue,name:"planttypeconsumer","label-name":t.getSelectFieldLabel("planttypeconsumer"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.planttypeconsumerOptions,required:t.isRequired("planttypeconsumer")},on:{"update:value":function(e){t.planttypeconsumerValue=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent",value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.servicesList&&t.servicesList.length&&!t.isSubscribed?i("div",{staticClass:"row services-multi-consent"},[i("div",{staticClass:"col-12"},[i("hr"),t._v(" "),i("ChecklistField",{attrs:{value:t.servicesMultiConsent,name:"services",list:t.servicesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!1,multiple:!0,cucumber:"form_checkbox_services"},on:{"update:value":function(e){t.servicesMultiConsent=e}}}),t._v(" "),t.translations.servicesMultiConsentCheckAll?i("CheckboxField",{attrs:{id:"servicesMultiConsentCheckAll",value:t.servicesMultiConsentCheckAll,name:"servicesMultiConsentCheckAll","checkbox-label":t.translations.servicesMultiConsentCheckAll,required:!1},on:{"update:value":[function(e){t.servicesMultiConsentCheckAll=e},function(e){return t.servicesMultiConsentCheckAllUpdateValue(e)}]}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),t.servicesMultiConsent&&t.servicesMultiConsent.length?i("section",[t.showMultiConsentField("street")||t.showMultiConsentField("streetNumber")?i("div",{staticClass:"row"},[t.showMultiConsentField("street")?i("div",{staticClass:"col-12 d-flex align-items-end",class:{"col-sm-8":t.showMultiConsentField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showMultiConsentField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4 d-flex align-items-end"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showMultiConsentField("phone")||t.showMultiConsentField("mobile")||t.showMultiConsentField("mobileDisplay")&&"mobile"===t.loginType?i("div",[t.isCallbackServiceIncluded&&t.showPhoneOrMobileMsg?i("div",{staticClass:"row"},[i("div",{staticClass:"col",domProps:{innerHTML:t._s(t.translations.superscript.phone)}})]):t._e(),t._v(" "),i("div",{staticClass:"row"},[t.showMultiConsentField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isCallbackServiceIncluded&&t.showPhoneOrMobileMsg?t.isMobileRequired(!0):t.isRequired("mobile"),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showMultiConsentField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,required:!1,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showMultiConsentField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isCallbackServiceIncluded&&t.showPhoneOrMobileMsg?!(!t.isRequired("phone")||t.mobileValue):t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()])]):t._e(),t._v(" "),t.showMultiConsentField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e()]):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],1)}),[],!1,Xi,"data-v-e3a8709c",null).exports,ea={name:"NewsletterServiceForm",extends:si,watch:{categoriesSelected:function(){this.handleSelectedCategories()}},mounted:function(){this.$store.commit("forms/setNewsCategories",this.newsCategories)}};
1var ia=function(t){i("B0YS")},aa=Object(l.a)(ea,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"opt-type":t.optType,"form-outside-my-services":t.formOutsideMyServices,"f-o-m-s-update-subscription-redirect-link":t.fOMSUpdateSubscriptionRedirectLink,"f-o-m-s-new-subscription-redirect-link":t.fOMSNewSubscriptionRedirectLink,"tealium-name":t.tealiumName,"link-unsubscribe":t.linkUnsubscribe},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e}}},[t.categoriesListJSON&&t.categoriesListJSON.length?i("section",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.categoriesSelected,name:"newsletter-services","label-name":t.translations.label.newsCategories,list:t.categoriesListJSON,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!0,multiple:!0,"validation-text":t.translations.invalid.newsCategories,cucumber:"form_checkbox_newsletter_services"},on:{"update:value":function(e){t.categoriesSelected=e}}})],1)]):t._e(),t._v(" "),t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("farmerRegNumber"),cucumber:"form_input_farmerRegNumber"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"},[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}
1),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,tooltip:t.translations.tooltip.taxNumber,"input-type":"text","do-on-change-validation":t.attemptSubmit,required:t.isRequired("taxNumber"),"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,cucumber:"form_input_tax"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",subscript:t.translations.subscript.email.inProcess+" "+t.translations.subscript.email.change,superscript:t.translations.superscript.newsletter.default,required:t.isRequired("email"),"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("emailDisplay")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"emailDisplay","label-name":t.translations.label.email,"input-type":"email",required:!1,"do-on-change-validation":t.attemptSubmit,disabled:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,tooltip:t.translations.tooltip.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,superscript:t.translations.superscript.newsletter.fax,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax",value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.cropListCurrent,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("planttypeconsumer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.planttypeconsumerValue,name:"planttypeconsumer","label-name":t.getSelectFieldLabel("planttypeconsumer"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.singleSelect,options:t.planttypeconsumerOptions,required:t.isRequired("planttypeconsumer")},on:{"update:value":function(e){t.planttypeconsumerValue=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement",value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"additionalAgreement",value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!1,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent",value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.servicesList&&t.servicesList.length&&!t.isSubscribed?i("div",{staticClass:"row services-multi-consent"},[i("div",{staticClass:"col-12"},[i("hr"),t._v(" "),i("ChecklistField",{attrs:{value:t.servicesMultiConsent,name:"services",list:t.servicesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!1,multiple:!0,cucumber:"form_checkbox_services"},on:{"update:value":function(e){t.servicesMultiConsent=e}}}),t._v(" "),t.translations.servicesMultiConsentCheckAll?i("CheckboxField",{attrs:{id:"servicesMultiConsentCheckAll",value:t.servicesMultiConsentCheckAll,name:"servicesMultiConsentCheckAll","checkbox-label":t.translations.servicesMultiConsentCheckAll,required:!1},on:{"update:value":[function(e){t.servicesMultiConsentCheckAll=e},function(e){return t.servicesMultiConsentCheckAllUpdateValue(e)}]}}):t._e()],1)]):t._e()]):t._e(),t._v(" "),t.servicesMultiConsent&&t.servicesMultiConsent.length?i("section",[t.showMultiConsentField("street")||t.showMultiConsentField("streetNumber")?i("div",{staticClass:"row"},[t.showMultiConsentField("street")?i("div",{staticClass:"col-12 d-flex align-items-end",class:{"col-sm-8":t.showMultiConsentField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showMultiConsentField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4 d-flex align-items-end"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showMultiConsentField("phone")||t.showMultiConsentField("mobile")||t.showMultiConsentField("mobileDisplay")&&"mobile"===t.loginType?i("div",[t.isCallbackServiceIncluded&&t.showPhoneOrMobileMsg?i("div",{staticClass:"row"},[i("div",{staticClass:"col",domProps:{innerHTML:t._s(t.translations.superscript.phone)}})]):t._e(),t._v(" "),i("div",{staticClass:"row"},[t.showMultiConsentField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isCallbackServiceIncluded&&t.showPhoneOrMobileMsg?t.isMobileRequired(!0):t.isRequired("mobile"),subscript:t.translations.subscript.mobile.change,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showMultiConsentField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,required:!1,disabled:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showMultiConsentField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isCallbackServiceIncluded&&t.showPhoneOrMobileMsg?!(!t.isRequired("phone")||t.mobileValue):t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()])]):t._e(),t._v(" "),t.showMultiConsentField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e()]):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern,back:"historyBack"}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.emailPattern}})],1)}),[],!1,ia,"data-v-1ef4432a",null).exports,sa=i("hd29");function na(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function oa(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?na(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):na(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ra={name:"SurveyForm",components:{Loader:j.a,ChecklistField:pe,TextAreaField:sa.a,Modal:St.a,PopupInfo:W},props:{formId:{type:String,default:""},optType:{type:String,default:""},loyaltyFormId:{type:String,default:""},json:{type:String,default:""},jsonNewsCategory:{type:Array,default:function(){return[]}},showSurvey:{type:Boolean,default:!1},useComment:{type:Boolean,default:!1},action:{type:String,default:""},submitRedirect:{type:String,default:""},cucumber:{type:String,default:null}},data:function(){return{attemptSubmit:!1,hasInvalidFields:!0,showLoader:!1,fields:[],fieldTypes:["ChecklistField","TextAreaField"],flagSubmit:0,surveyList:[],surveyAnswers:[],newsCategories:[],newsCategoriesList:[],comment:"",reasonCode:"",loadingError:!1,popupMobileUnsubscribeSuccessInfoOpen:!1}},computed:oa(oa({},Object(m.c)({userId:function(t){return t.forms.userId},loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},isNewsletterService:function(){return"ssp-newsletter-service"===this.formId},getVerificationMobilePageUrl:function(){var t=this.config.verificationMobilePageUrl;return t+="?optType=OPTOUT",this.formId&&(t+="&formIds=".concat(encodeURIComponent(this.formId))),t}}),watch:{userId:function(){this.isNewsletterService&&this.retrieveNewsCategories()}},mounted:function(){var t;this.json&&(this.surveyList=(t=[]).concat.apply(t,_t()(JSON.parse(this.json))));if(this.surveyList&&this.surveyList.length){var e=this.surveyList[0].id;this.reasonCode="".concat(e.substring(0,e.length-4),"0000")}},methods:{retrieveNewsCategories:function(){var t=this;this.userId&&(this.showLoader=!0,this.$store.dispatch("forms/fetchFormData",{formId:this.formId}).then((function(e){t.newsCategoriesList=[],e["newsletter-services"].forEach((function(e){var i=t.jsonNewsCategory.findIndex((function(t){return t.code===e}));-1!==i&&t.newsCategoriesList.push({code:e,name:t.jsonNewsCategory[i].label})})),t.showLoader=!1})).catch((function(){t.showLoader=!1,t.loadingError=!0})))},replaceCharacterCodes:function(t){return v.a.replaceCharacterCodes(t)},triggerSubmit:function(t){var e=this;this.flagSubmit=0,this.attemptSubmit=!0,this.$emit("update:attemptSubmit",!0),this.fields=this.$children.filter((function(t){return e.fieldTypes.includes(t.$options._componentTag)})),this.fields.forEach((function(t){return t.validate()})),this.hasInvalidFields=this.fields.find((function(t){return!t.valid})),this.hasInvalidFields?t.preventDefault():(t.preventDefault(),this.submit())},submit:function(){switch(this.action){case"unsubscribe":this.unsubscribe();break;case"deactivateUser":this.deactivateUserCheckLoyalty()}},unsubscribe:function(){var t=this,e={};this.newsCategories.forEach((function(t){var i=t.code;Object.assign(e,p()({},i,t.name))})),this.showLoader=!0,this.$store.dispatch("forms/triggerUnsubscription",{formId:this.formId,reason:this.surveyAnswers.length?this.surveyAnswers[0].id:this.reasonCode,reasonText:this.surveyAnswers.length?this.surveyAnswers[0].name:"",comment:this.comment,content:{"newsletter-services":e}}).then((function(){t.flagSubmit=1,t.showLoader=!1,"OPTIN"===t.optType&&t.loginType&&"mobile"===t.loginType?t.popupMobileUnsubscribeSuccessInfoOpen=!0:window.history.go(-1)})).catch((function(){t.flagSubmit=-1,t.showLoader=!1}))},triggerConfirmDeactivationPopup:function(){var t=this.$refs["popup-trigger-confirm-deactivation"];t.dataset.target="#popup-confirm-deactivation",t.click((function(t){return t.preventDefault(),!1}))},deactivateUserCheckLoyalty:function(){var t=this;if(this.showLoader=!0,this.loyaltyFormId&&""!==this.loyaltyFormId){var e=!1;this.$store.dispatch("forms/getSubscriptions").then((function(i){var a=i?i.find((function(e){return e.id===t.loyaltyFormId})):{};if(a)switch(a.status){case"OK":case"PENDING_SUB":e=!0;break;case"PENDING_UNSUB":e=!1}!0===e?(t.triggerConfirmDeactivationPopup(),t.showLoader=!1):t.deactivateUser()})).catch((function(){t.flagSubmit=-1,t.showLoader=!1}))}else this.deactivateUser()},deactivateUser:function(){var t=this;this.showLoader=!0,this.$store.dispatch("forms/deactivateUser",{reason:this.surveyAnswers.length?this.surveyAnswers[0].id:this.reasonCode,reasonText:this.surveyAnswers.length?this.surveyAnswers[0].name:"",comment:this.comment}).then((function(){t.flagSubmit=1,t.showLoader=!1,window.app.authentication.setLoggedOut(),t.logOut()})).catch((function(){t.flagSubmit=-1,t.showLoader=!1}))},logOut:function(){this.$store.dispatch("forms/logout")},goBack:function(){document.referrer&&""!==document.referrer&&window.location.href!==document.referrer?window.location.href=document.referrer:window.history.go(-1)},closePopupMobileUnsubscribeSuccessInfoOpen:function(){window.location.href=this.getVerificationMobilePageUrl}}};var la=function(t){i("IEP6")},ca=Object(l.a)(ra,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",[t.loadingError?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:[0===t.flagSubmit?[i("form",{staticClass:"form-wrapper",attrs:{enctype:"multipart/form-data",novalidate:"",autocomplete:"on"},on:{submit:t.triggerSubmit}},[t.newsCategoriesList&&t.newsCategoriesList.length&&t.isNewsletterService?i("section",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.newsCategories,name:"newsletter-services","label-name":t.translations.label.newsCategories,list:t.newsCategoriesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!0,multiple:!0,"validation-text":t.translations.invalid.newsCategories,cucumber:"form_checkbox_newsletter_services","has-ss
1p-mapping":!1},on:{"update:value":function(e){t.newsCategories=e}}})],1)]):t._e(),t._v(" "),t.showSurvey?i("section",{staticClass:"row"},[i("div",{staticClass:"col-12"},[t.surveyList.length?i("ChecklistField",{attrs:{value:t.surveyAnswers,name:"surveyAnswers","label-name":t.translations.label.survey,list:t.surveyList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,tag:"id",required:!1,multiple:!1,cucumber:(t.cucumber?t.cucumber:"form")+"_checkbox_reason","has-ssp-mapping":!1},on:{"update:value":function(e){t.surveyAnswers=e}}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.comment,name:"comment","label-name":t.translations.label.comment,placeholder:t.translations.placeholder.comment,required:!1,"do-on-change-validation":t.attemptSubmit,cucumber:(t.cucumber?t.cucumber:"form")+"_textarea_comment","has-ssp-mapping":!1},on:{"update:value":function(e){t.comment=e}}})],1)]):t._e(),t._v(" "),i("section",{staticClass:"ssp-buttons-wrapper"},[i("input",{staticClass:"ssp-button",attrs:{"data-cucumber":(t.cucumber?t.cucumber:"form")+"_button_submit",type:"submit"},domProps:{value:t.replaceCharacterCodes(t.formId?t.translations.unsubscribe.confirm:t.translations.account.deactivate.confirm)}}),t._v(" "),i("input",{staticClass:"ssp-button basic",attrs:{value:t.replaceCharacterCodes(t.translations.goBack),"data-cucumber":(t.cucumber?t.cucumber:"form")+"_button_back",type:"button"},on:{click:function(e){return t.goBack()}}})])])]:-1===t.flagSubmit?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))]),t._v(" "),i("input",{staticClass:"ssp-button basic",attrs:{value:t.translations.goBack,"data-cucumber":"form_button_back",type:"button"},on:{click:function(e){return t.goBack()}}})]:t._e(),t._v(" "),i("input",{ref:"popup-trigger-confirm-deactivation",attrs:{"data-toggle":"modal",type:"hidden"}}),t._v(" "),i("Modal",{attrs:{id:"popup-confirm-deactivation",text:t.translations.account.deactivate.confirmPopup.text,"text-save":t.translations.account.deactivate.confirmPopup.save,"text-cancel":t.translations.account.deactivate.confirmPopup.cancel,"buttons-left-right":!0,keyboard:!1,backdrop:"static"},on:{confirm:function(e){return t.deactivateUser()}}})],t._v(" "),i("PopupInfo",{attrs:{open:t.popupMobileUnsubscribeSuccessInfoOpen,headline:t.translations.unsubscribe.label,text:t.translations.submit.service.mobile.unsubscribe,"text-button":t.commonTranslations.continue},on:{close:function(e){return t.closePopupMobileUnsubscribeSuccessInfoOpen()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],2)}),[],!1,la,"data-v-5a78c60c",null).exports,ua=i("duae"),da={name:"TextListFieldAddEditModal",components:{TextField:U.a},data:function(){return{id:null,fieldTypes:["TextField"]}},computed:{fields:function(){return this.$parent.$parent.fields},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common}},mounted:function(){this.id="textListFieldAddEditModal_".concat(this._uid)},methods:{triggerModal:function(){var t=this;this.$children.filter((function(e){return t.fieldTypes.includes(e.$options._componentTag)})).forEach((function(t){var e=t;e.valid=!0,e.errorMessage=""}));var e=this.$refs.modalTrigger;e.dataset.target="#".concat(this.id),e.click((function(t){return t.preventDefault(),!1}))},triggerSubmit:function(t){var e=this;t.preventDefault();var i=this.$children.filter((function(t){return e.fieldTypes.includes(t.$options._componentTag)}));i.forEach((function(t){return t.validate()})),i.find((function(t){return!t.valid}))||(this.triggerModal(),this.$emit("submitDone"))}}};var pa=function(t){i("SK+V")},ma=Object(l.a)(da,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal fade basic-modal text-list-field-add-edit-modal",attrs:{id:t.id,"data-backdrop":"static","data-keyboard":!1,tabindex:"-1",role:"dialog","aria-labelledby":"textListFieldAddEditModalCenterTitle"}},[i("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[i("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),i("div",{staticClass:"modal-body"},[i("form",{staticClass:"form-wrapper",attrs:{enctype:"multipart/form-data",novalidate:"",autocomplete:"off"},on:{submit:t.triggerSubmit}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},t._l(t.fields,(function(e,a){return i("div",{key:"fi_"+a},[i("TextField",{attrs:{value:e.value,name:e.name,"label-name":e.label,required:e.required,disabled:e.disabled,"do-on-change-validation":!1}
1,on:{"update:value":function(i){return t.$set(e,"value",i)}}})],1)})),0)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("input",{staticClass:"ssp-button d-inline",attrs:{type:"submit"},domProps:{value:t.commonTranslations.save}})])])])])])]),t._v(" "),i("input",{ref:"modalTrigger",attrs:{"data-toggle":"modal",type:"hidden"}})])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})])])}],!1,pa,"data-v-41da9df0",null).exports,ha={name:"TextListField",components:{TemplateField:X.a,TextListFieldAddEditModal:ma},extends:tt.a,props:{value:{type:Array,default:function(){return[]}},fieldConfig:{type:Array,default:function(){return[]}},isValid:{type:Boolean,default:!0},isNotValidMessage:{type:String,default:""},isValidMessage:{type:String,default:""},maxEntries:{type:Number,default:-1},useEdit:{type:Boolean,default:!1},showAsTable:{type:Boolean,default:!1},showTableHeadlines:{type:Boolean,default:!0}},data:function(){return{fields:this.fieldConfig,editIndex:-1}},computed:{maxEntriesReached:function(){var t=!1;return-1!==this.maxEntries&&this.value.length>=this.maxEntries&&(t=!0),t}},watch:{value:function(){this.doOnChangeValidation&&this.validate()}},created:function(){var t=this;this.fields.forEach((function(e){t.$set(e,"value","")}))},methods:{validate:function(){this.disabled&&!this.forceValidation||(this.valid=!this.required||this.value&&this.value.length>0,this.errorMessage=this.valid?this.isValidMessage:this.commonTranslations.requiredField,this.isValid||(this.valid=!1,this.errorMessage=this.isNotValidMessage))},showAddEntry:function(){var t=this;this.editIndex=-1,this.fields.forEach((function(e){t.$set(e,"value","")})),this.$refs.modalTextListFieldAddEdit.triggerModal()},editEntry:function(t){var e=this;this.editIndex=t;var i=this.value[t];this.fields.forEach((function(t){e.$set(t,"value",i[t.name])})),this.$refs.modalTextListFieldAddEdit.triggerModal()},deleteEntry:function(t){this.value.splice(t,1)},modalSubmitDone:function(){var t={};this.fields.forEach((function(e){t[e.name]=e.value})),-1!==this.editIndex?this.$set(this.value,this.editIndex,t):this.value.push(t)}}};var fa=function(t){i("ZQ+q")},ga=Object(l.a)(ha,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,disabled:t.disabled}},[i("div",{staticClass:"text-list-field",class:{error:!t.valid}},[t.maxEntriesReached?t._e():i("div",{staticClass:"add ssp-button",on:{click:function(e){return t.showAddEntry()}}}),t._v(" "),t.maxEntriesReached?i("div",[t._v(t._s(t.translations.textListField.limitReached))]):t._e(),t._v(" "),t.showAsTable&&t.value&&t.value.length>0?i("table",{staticClass:"list-entries-table"},[i("caption"),t._v(" "),t.showTableHeadlines?i("tr",t._l(t.fields,(function(e,a){return i("th",{key:"fh_"+a,attrs:{scope:"col"}},[t._v(t._s(e.label))])})),0):t._e(),t._v(" "),t._l(t.value,(function(e,a){return i("tr",{key:"v_"+a},[t._l(t.fields,(function(a,s){return i("td",{key:"f_"+s},[t._v(t._s(e[a.name]))])})),t._v(" "),t.useEdit?i("td",[i("div",{staticClass:"edit",on:{click:function(e){return t.editEntry(a)}}})]):t._e(),t._v(" "),i("td",[i("div",{staticClass:"delete",on:{click:function(e){return t.deleteEntry(a)}}})])],2)}))],2):t._e(),t._v(" "),!t.showAsTable&&t.value&&t.value.length>0?i("div",{staticClass:"list-entries"},t._l(t.value,(function(e,a){return i("div",{key:"v_"+a,staticClass:"button text-nowrap"},[t._l(t.fields,(function(a,s){return i("div",{key:"f_"+s,staticClass:"field-value"},[t._v(t._s(e[a.name]))])})),t._v(" "),t.useEdit?i("div",{staticClass:"edit ml-1 mr-1",on:{click:function(e){return t.editEntry(a)}}}):t._e(),t._v(" "),i("div",{staticClass:"button-close d-inline-block",on:{click:function(e){return t.deleteEntry(a)}}})],2)})),0):t._e(),t._v(" "),i("TextListFieldAddEditModal",{ref:"modalTextListFieldAddEdit",on:{submitDone:t.modalSubmitDone}})],1)])}),[],!1,fa,"data-v-184a5152",null).exports,va={name:"RadioField",components:{TemplateField:X.a},extends:tt.a,props:{value:{type:[Object,Array],default:function(){}},options:{type:[Object,Array],default:function(){}},isValid:{type:Boolean,default:!0},isNotValidMessage:{type:String,default:""},isValidMessage:{type:String,default:""}},data:function(){return{selectedValue:""}},watch:{value:function(){this.value&&this.value.code?this.selectedValue=this.value.code:this.selectedValue=""},selectedValue:function(){var t=this,e=this.options.find((function(e){return e.code===t.selectedValue}));this.handleUpdate(e)}},mounted:function(){this.value&&this.value.code?this.selectedValue=this.value.code:this.selectedValue=""},methods:{handleUpdate:function(t){this.doOnChangeValidation&&this.validate(),this.$emit("update:value",t)},validate:function(){this.disabled&&!this.forceValidation||(this.valid=!this.required||this.selectedValue,this.errorMessage=this.valid?this.isValidMessage:this.commonTranslations.requiredField,this.isValid||(this.valid=!1,this.errorMessage=this.isNotValidMessage))}}};var ba=function(t){i("oASY")},wa=Object(l.a)(va,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,disabled:t.disabled}}
1,t._l(t.options,(function(e,a){return i("div",{key:a,staticClass:"custom-control custom-radio"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedValue,expression:"selectedValue"}],staticClass:"custom-control-input",attrs:{id:"radio_"+t._uid+"_"+a,disabled:t.disabled,"data-cucumber":t.cucumber+"_"+a,type:"radio"},domProps:{value:e.code,checked:t._q(t.selectedValue,e.code)},on:{change:function(i){t.selectedValue=e.code}}}),t._v(" "),i("label",{staticClass:"custom-control-label",attrs:{for:"radio_"+t._uid+"_"+a},domProps:{innerHTML:t._s(e.name)}})])})),0)}),[],!1,ba,"data-v-241b9502",null).exports;function ya(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ca(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ya(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ya(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var _a={name:"EventForm",components:{Fragment:ua.a,TemplateForm:Ot,TextField:U.a,TextFieldMulti:It,TextAreaField:sa.a,SelectField:Et.a,SelectMultiField:Vt.a,CropsField:Ht,RadioField:wa,LocationField:ce,CheckboxField:at,ChecklistField:pe,FileUploadField:Ce,TextListField:ga,DebugMode:b.a,PopupInfo:W},props:{formId:{type:String,default:""},benefits:{type:String,default:""},additionalDescription:{type:String,default:""},successRedirectLink:{type:String,default:""},additionalButton:{type:String,default:""},backButton:{type:String,default:""},googlePlay:{type:String,default:""},appStore:{type:String,default:""},agreementLabel:{type:String,default:""},agreementLabelNewsletter:{type:String,default:""},agreementLabelFax:{type:String,default:""},additionalInformation:{type:String,default:""},eventSuccessSubscribeText:{type:String,default:""},eventSuccessUnSubscribeText:{type:String,default:""},cropList:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},servicesList:{type:Array,default:function(){return[]}},dateOfBirthPattern:{type:RegExp,default:function(){}},emailPattern:{type:RegExp,default:function(){}},phonePattern:{type:RegExp,default:function(){}},faxPattern:{type:RegExp,default:function(){}},numberPattern:{type:RegExp,default:function(){}},tealiumName:{type:String,default:""},fsId:{type:String,default:""},eventName:{type:String,default:""},eventDate:{type:Object,default:function(){}},eventLocation:{type:Object,default:function(){}},changeCompanyMultipleTimes:{type:Boolean,default:!1},hasOpt:{type:Boolean,default:!1}},data:function(){return this.initFormData={},{salutationValue:{},titleValue:{},jobTitleValue:"",firstNameValue:"",lastNameValue:"",locationValue:{},eircodeValue:"",streetValue:"",streetNumberValue:"",mobileValue:"",phoneValue:"",faxValue:"",taxNumberValue:"",companyValue:"",emailValue:"",emailConfirmValue:"",occupationValue:[],occupationTypeValue:{},occupationOptionsFiltered:[],dateOfBirthValue:"",productUsageProof:"",farmSizeValue:"",organicAreaSizeValue:"",shoeSizeValue:"",cropsValue:[],cropAgriculturalAreaValue:[],cropListByArea:[],eventAdditionalParticipantsValue:[],attemptSubmit:!1,agreement:!1,additionalAgreement:!1,agreementTrackingConsent:!1,vegetarian:!1,practiceDay:!1,checkbox1:!1,checkbox2:!1,checkbox3:!1,checkboxList1:[],checkboxList2:[],checkboxList3:[],checkboxList4:[],checkboxList5:[],checkboxList6:[],emailCommunications:!1,emailCommunicationTopics:[],shuttleService:!1,practiceDayAdditionalOne:!1,practiceDayAdditionalTwo:!1,radio1Value:{},agreementFax:!1,formDefinition:[],prefilledZip:"",prefilledCity:"",prefilledCrops:[],prefilledAreaPerCrop:[],isDataRetrieved:!1,isLocationRetrieved:!1,isContactLocationRetrieved:!1,errorFarmSize:!1,showAgreementTrackingConsent:!1,servicesAgreementLabelNewsletter:"",formData:[],companyIsDisabled:!1,loadingError:!1,isFormDefinitionRetrieved:!1,occupationValueIsSet:!1,showSuccessSubscribe:!1,showSuccessUnSubscribe:!1,showLoader:!1,hasError:!1,showForm:!1,limitReached:!1,limitReachedLoaded:!1,limitCount:0,limitMaxCount:0,showNotLoggedInNoChange:!1,basisAccountNumberValue:"",nrosoMembershipNumberValue:"",timeSlotStonhamValue:{},timeSlotRawcliffeValue:{},timeSlotPotatoTrialHubWestValue:{},timeSlotPotatoTrialHubEastValue:{},timeSlotPotatoTrialHubScotlandValue:{},typeOfFarmValue:{},seedsCountValue:"",clothesSize1Value:{},clothesSize2Value:{}
1,whyFarmingBiggestJobOnEarthValue:"",freeText1Value:"",freeText2Value:"",freeText3Value:"",freeText4Value:"",freeText5Value:"",freeText6Value:"",freeText7Value:"",freeText8Value:"",useContactAddress:"",contactStreetValue:"",contactStreetNumberValue:"",contactLocationValue:{},contactEircodeValue:"",contactPrefilledZip:"",contactPrefilledCity:"",onlyContactAddress:!1,popupMobileUnsubscribeSuccessInfoOpen:!1,popupMobileSubscribeSuccessInfoOpen:!1,hasSubscribed:!1}},computed:Ca(Ca({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},userId:function(t){return t.forms.userId},userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},serviceSubscriptions:function(t){return t.forms.serviceSubscriptions},billingAddressLocked:function(t){return t.forms.billingAddressLocked},loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},salutationOptions:function(){return void 0!==window.salutationConfig&&window.salutationConfig.sort((function(t,e){return e.ordering-t.ordering}))},titleOptions:function(){return void 0!==window.titleConfig&&window.titleConfig.sort((function(t,e){return e.ordering-t.ordering}))},jobTitleOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.jobTitle||!window.sspSelectFieldConfig.jobTitle.options.length)&&window.sspSelectFieldConfig.jobTitle.options.sort((function(t,e){return e.ordering-t.ordering}))},occupationOptions:function(){return void 0!==window.occupationConfig&&window.occupationConfig.sort((function(t,e){return e.ordering-t.ordering}))},occupationTypeOptions:function(){return void 0!==window.occupationTypeConfig?window.occupationTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},positionOnFarmOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.positionOnFarm&&window.sspSelectFieldConfig.positionOnFarm.options.length?window.sspSelectFieldConfig.positionOnFarm.options.sort((function(t,e){return e.ordering-t.ordering})):[]},timeSlotStonhamOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.timeSlotStonham||!window.sspSelectFieldConfig.timeSlotStonham.options.length)&&window.sspSelectFieldConfig.timeSlotStonham.options.sort((function(t,e){return e.ordering-t.ordering}))},radio1Options:function(){var t="radio1",e=this.getEventSpecificTranslation("radio1Options");return e&&(t=e),void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].options.length?window.sspSelectFieldConfig[t].options.sort((function(t,e){return e.ordering-t.ordering})):[]},typeOfFarmOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.typeOfFarm&&window.sspSelectFieldConfig.typeOfFarm.options.length?window.sspSelectFieldConfig.typeOfFarm.options.sort((function(t,e){return e.ordering-t.ordering})):[]},emailCommunicationTopicsOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.emailCommunicationTopics||!window.sspSelectFieldConfig.emailCommunicationTopics.options.length)&&window.sspSelectFieldConfig.emailCommunicationTopics.options.sort((function(t,e){return e.ordering-t.ordering}))},checkboxList1Options:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.checkboxList1||!window.sspSelectFieldConfig.checkboxList1.options.length)&&window.sspSelectFieldConfig.checkboxList1.options.sort((function(t,e){return e.ordering-t.ordering}))},checkboxList2Options:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.checkboxList2||!window.sspSelectFieldConfig.checkboxList2.options.length)&&window.sspSelectFieldConfig.checkboxList2.options.sort((function(t,e){return e.ordering-t.ordering}))},checkboxList3Options:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.checkboxList3||!window.sspSelectFieldConfig.checkboxList3.options.length)&&window.sspSelectFieldConfig.checkboxList3.options.sort((function(t,e){return e.ordering-t.ordering}))},checkboxList4Options:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.checkboxList4||!window.sspSelectFieldConfig.checkboxList4.options.length)&&window.sspSelectFieldConfig.checkboxList4.options.sort((function(t,e){return e.ordering-t.ordering}))},checkboxList5Options:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.checkboxList5||!window.sspSelectFieldConfig.checkboxList5.options.length)&&window.sspSelectFieldConfig.checkboxList5.options.sort((function(t,e){return e.ordering-t.ordering}))},checkboxList6Options:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.checkboxList6||!window.sspSelectFieldConfig.checkboxList6.options.length)&&window.sspSelectFieldConfig.checkboxList6.options.sort((function(t,e){return e.ordering-t.ordering}))},timeSlotRawcliffeOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.timeSlotRawcliffe||!window.sspSelectFieldConfig.timeSlotRawcliffe.options.length)&&window.sspSelectFieldConfig.timeSlotRawcliffe.options.sort((function(t,e){return e.ordering-t.ordering}))},timeSlotPotatoTrialHubWestOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.timeSlotPotatoTrialHubWest||!window.sspSelectFieldConfig.timeSlotPotatoTrialHubWest.options.length)&&window.sspSelectFieldConfig.timeSlotPotatoTrialHubWest.options.sort((function(t,e){return e.ordering-t.ordering}))},timeSlotPotatoTrialHubEastOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.timeSlotPotatoTrialHubEast||!window.sspSelectFieldConfig.timeSlotPotatoTrialHubEast.options.length)&&window.sspSelectFieldConfig.timeSlotPotatoTrialHubEast.options.sort((function(t,e){return e.ordering-t.ordering}))},timeSlotPotatoTrialHubScotlandOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.timeSlotPotatoTrialHubScotland||!window.sspSelectFieldConfig.timeSlotPotatoTrialHubScotland.options.length)&&window.sspSelectFieldConfig.timeSlotPotatoTrialHubScotland.options.sort((function(t,e){return e.ordering-t.ordering}))},clothesSize1Options:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.clothesSize_1&&window.sspSelectFieldConfig.clothesSize_1.options.length?window.sspSelectFieldConfig.clothesSize_1.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},clothesSize2Options:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.clothesSize_2&&window.sspSelectFieldConfig.clothesSize_2.options.length?window.sspSelectFieldConfig.clothesSize_2.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},isFormLoaded:function(){return!this.formId||this.isFormDefinitionRetrieved&&(this.isLoggedIn&&this.isDataRetrieved||!this.isLoggedIn)&&!this.showLoader&&this.limitReachedLoaded},isFormDataCompletelyRetrieved:function(){return(this.isLoggedIn&&this.isDataRetrieved&&this.isLocationRetrieved&&this.isContactLocationRetrieved||!this.isLoggedIn)&&this.isFormDefinitionRetrieved},cropListByService:function(){var t;return this.cropList&&(t=[]).concat.apply(t,_t()(JSON.parse(this.cropList)))},cropListCurrent:function(){return this.cropListByService?v.a.sortByText(this.cropListByService):[]},isSubscribed:function(){var t=this;return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"OK"===e.status}))},isPendingSubscribe:function(){var t=this;return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"PENDING_SUB"===e.status}))},isPendingUnsubscribe:function(){var t=this;return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(e){return e.id===t.formId&&"PENDING_UNSUB"===e.status}))},isLoyaltySubscribed:function(){return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(t){return"ssp-customer-loyalty-service"===t.id&&"OK"===t.status}))},enableSalesForce:function(){return _e.a.useSalesForce()},formTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},eventTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.events)&&window.snTranslations.events},occupationIsDisabled:function(){return this.occupationValueIsSet&&this.isLoyaltySubscribed}
1,useEircode:function(){return"IE"===this.config.country},showEmail:function(){var t=!0;return this.isLoggedIn&&this.loginType&&"mobile"===this.loginType&&(t=!1),t},functionHelper:function(){return v.a}}),watch:{farmSizeValue:function(){this.updateAgriculturalArea(this.cropAgriculturalAreaValue)},isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormData(t.$refs)}),0)},occupationTypeValue:function(){var t=this;this.showField("occupationType")?this.occupationTypeValue&&this.occupationTypeValue.code?(this.occupationOptionsFiltered=this.occupationOptions.filter((function(e){return e.bpType===t.occupationTypeValue.code})),this.occupationValue&&this.occupationValue.accountDetail&&void 0===this.occupationOptionsFiltered.find((function(e){return e.accountDetail===t.occupationValue.accountDetail}))&&(this.occupationValue={})):this.occupationOptionsFiltered=this.occupationOptions:this.occupationOptionsFiltered=this.occupationOptions},faxValue:{handler:function(t,e){t===e||t||(this.agreementFax=!1)}},cropsValue:{handler:function(t,e){var i=this;if(t.length&&t.length!==e.length){var a=t.filter((function(t){return!e.includes(t)})),s=e.filter((function(e){return!t.includes(e)}));a.length&&a.forEach((function(t){i.cropListByArea.push({name:v.a.getCropByAmigaCode(t,i.snConfigAllSSPCrops),id:t,value:""})})),s.length&&(this.cropListByArea=this.cropListByArea.filter((function(t){return t.id!==s[0]})))}else t.length||(this.cropListByArea=[]);this.errorFarmSize&&0===this.cropListByArea.length&&(this.errorFarmSize=!1)},deep:!1},isLoggedIn:function(){this.isLoggedIn&&(this.retrieveData(),this.checkSubscription())}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChanged(t.$refs,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}})),this.loadEventRegistrationsCounts(),this.fetchFormDefiniction()},mounted:function(){this.occupationOptionsFiltered=this.occupationOptions},methods:{isEnabled:function(t){return(!_e.a.useSalesForce()||"streetNumber"!==t&&"contactStreetNumber"!==t)&&(!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display)},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},showField:function(t){return this.isEnabled(t)},hasField:function(t){return this.formDefinition&&this.formDefinition.find((function(e){return e.name===t}))},getEnabledFieldsWithCrm:function(){return this.formDefinition&&this.formDefinition.filter((function(t){var e=!1,i=t.name;return!_e.a.useSalesForce()||"streetNumber"!==i&&"contactStreetNumber"!==i?i&&""!==i&&t.crm&&""!==t.crm&&t.display&&(e=!0):e=!1,e}))},isLessThanFarmSize:function(t){return v.a.stringToDecimal(t)<=v.a.stringToDecimal(this.farmSizeValue)},scrollToTopOfEventForm:function(){var t=document.querySelector(".event-form");t&&window.scrollTo({top:t.offsetTop,behavior:"smooth"})},showHide:function(){this.showForm?this.showForm=!1:(this.showForm=!0,this.showSuccessSubscribe=!1,this.showSuccessUnSubscribe=!1)},loadEventRegistrationsCounts:function(){var t=this;this.$store.dispatch("forms/getEventRegistrationsCounts",{formIdentifiers:this.formId}).then((function(e){if(e){var i=e.find((function(e){return e.id===t.formId}));i&&i.limitReached&&(t.limitReached=!0),i&&(t.limitCount=i.count,t.limitMaxCount=i.maxCount)}t.limitReachedLoaded=!0}))},getLimitInfo:function(){return this.limitReached?this.eventTranslations.fullyBooked:"".concat(this.limitMaxCount-this.limitCount,"/").concat(this.limitMaxCount," ").concat(this.eventTranslations.placesAvailable)},fetchFormDefiniction:function(){var t=this;this.formId&&this.$store.dispatch("forms/fetchEventFormDefiniction",{formId:this.formId}).then((function(e){if(t.formDefinition=e,t.isFormDefinitionRetrieved=!0,t.formDefinition.length||(t.loadingError=!0),t.formDefinition){var i=t.showField("contactZipcode")||t.showField("contactCity")||t.showField("contactStreet")||t.showField("contactStreetNumber"),a=t.showField("zipcode")||t.showField("city")||t.showField("street")||t.showField("streetNumber");i&&!a&&(t.onlyContactAddress=!0)}})).catch((function(){t.loadingError=!0}))},retrieveData:function(){var t=this;this.userId&&this.formId&&(this.isDataRetrieved=!1,this.$store.dispatch("forms/fetchFormData",{formId:this.formId}).then((function(e){if(t.formData=e,t.salutationValue=e.salutation&&v.a.retrieveValue(t.salutationOptions,e.salutation,"code",{}),t.titleValue=e.title&&v.a.retrieveValue(t.titleOptions,e.title,"code",{}),t.jobTitleValue=e.jobTitle&&v.a.retrieveValue(t.jobTitleOptions,e.jobTitle,"code",{}),t.occupationValue=v.a.retrieveValue(t.occupationOptions,e.occupation,_e.a.useSalesForce()?"accountDetail":"bpType",[]),t.occupationValue&&""!==t.occupationValue?t.occupationValueIsSet=!0:t.occupationValueIsSet=!1,t.occupationValue&&""!==t.occupationValue&&t.occupationTypeOptions&&t.occupationValue.bpType){var i=t.occupationTypeOptions.find((function(e){return e.code===t.occupationValue.bpType}));i&&(t.occupationTypeValue=i)}if(t.firstNameValue=e.firstName||"",t.lastNameValue=e.lastName||"",t.useEirco
1de?(t.eircodeValue=e.zipcode||"",t.prefilledCity=v.a.prefillLocation(e,"city")):(t.prefilledZip=v.a.prefillLocation(e,"zipcode"),t.prefilledCity=v.a.prefillLocation(e,"city")),t.contactStreetValue=e.contactStreet||"",t.contactStreetNumberValue=e.contactStreetNumber||"",t.contactPrefilledZip=e.contactZipcode||"",t.contactPrefilledCity=e.contactCity||"",t.companyValue=e.company||"",e.company&&""!==e.company&&(e.company==="".concat(t.firstName," ").concat(t.lastName)||t.changeCompanyMultipleTimes||(t.companyIsDisabled=!0)),t.streetValue=e.street||"",t.streetNumberValue=e.streetNumber||"",t.mobileValue=e.mobile?e.mobile:t.userMobile||"",t.phoneValue=e.phone||"",t.faxValue=e.fax||"",t.taxNumberValue=e.taxNumber||"",t.dateOfBirthValue=e.dateOfBirth||"",t.farmSizeValue=e.farmSize||"",t.organicAreaSizeValue=e.organicAreaSize||"",t.shoeSizeValue=e.shoeSize||"",t.prefilledCrops=v.a.prefillCrops(e.crops,t.snConfigAllSSPCrops),t.prefilledAreaPerCrop=e.areaPerCrop||[],t.agreement=e.agreement,t.additionalAgreement=e.additionalAgreement,t.agreementTrackingConsent=e.agreementTrackingConsent,t.vegetarian=e.vegetarian&&"true"===e.vegetarian,t.practiceDay=e.practiceDay&&"true"===e.practiceDay,t.checkbox1=e.checkbox1&&"true"===e.checkbox1,t.checkbox2=e.checkbox2&&"true"===e.checkbox2,t.checkbox3=e.checkbox3&&"true"===e.checkbox3,t.shuttleService=e.shuttleService&&"true"===e.shuttleService,t.practiceDayAdditionalOne=e.practiceDayAdditionalOne&&"true"===e.practiceDayAdditionalOne,t.practiceDayAdditionalTwo=e.practiceDayAdditionalTwo&&"true"===e.practiceDayAdditionalTwo,t.radio1Value=e.radio1&&v.a.retrieveValue(t.radio1Options,e.radio1,"code",{}),t.agreementFax=e.agreementFax,t.emailValue=e.email?e.email:t.userEmail||"",t.basisAccountNumberValue=e.basisAccountNumber||"",t.nrosoMembershipNumberValue=e.nrosoMembershipNumber||"",t.timeSlotStonhamValue=e.timeSlotStonham&&v.a.retrieveValue(t.timeSlotStonhamOptions,e.timeSlotStonham,"code",{}),t.timeSlotRawcliffeValue=e.timeSlotRawcliffe&&v.a.retrieveValue(t.timeSlotRawcliffeOptions,e.timeSlotRawcliffe,"code",{}),t.timeSlotPotatoTrialHubWestValue=e.timeSlotPotatoTrialHubWest&&v.a.retrieveValue(t.timeSlotPotatoTrialHubWestOptions,e.timeSlotPotatoTrialHubWest,"code",{}),t.timeSlotPotatoTrialHubEastValue=e.timeSlotPotatoTrialHubEast&&v.a.retrieveValue(t.timeSlotPotatoTrialHubEastOptions,e.timeSlotPotatoTrialHubEast,"code",{}),t.timeSlotPotatoTrialHubScotlandValue=e.timeSlotPotatoTrialHubScotland&&v.a.retrieveValue(t.timeSlotPotatoTrialHubScotlandOptions,e.timeSlotPotatoTrialHubScotland,"code",{}),t.typeOfFarmValue=e.typeOfFarm&&v.a.retrieveValue(t.typeOfFarmOptions,e.typeOfFarm,"code",{}),t.whyFarmingBiggestJobOnEarthValue=e.whyFarmingBiggestJobOnEarth||"",t.freeText1Value=e.freeText1||"",t.freeText2Value=e.freeText2||"",t.freeText3Value=e.freeText3||"",t.freeText4Value=e.freeText4||"",t.freeText5Value=e.freeText5||"",t.freeText6Value=e.freeText6||"",t.freeText7Value=e.freeText7||"",t.freeText8Value=e.freeText8||"",t.clothesSize1Value=e.clothesSize_1&&v.a.retrieveValue(t.clothesSize1Options,e.clothesSize_1,"code",{}),t.clothesSize2Value=e.clothesSize_2&&v.a.retrieveValue(t.clothesSize2Options,e.clothesSize_2,"code",{}),t.emailCommunications=e.emailCommunications&&"true"===e.emailCommunications,e.emailCommunicationTopics&&e.emailCommunicationTopics.length>0){var a=JSON.parse(e.emailCommunicationTopics);a&&a.length>0&&(t.emailCommunicationTopics=[],a.forEach((function(e){var i=v.a.retrieveValue(t.emailCommunicationTopicsOptions,e,"code",null);i&&t.emailCommunicationTopics.push(i)})))}if(e.checkboxList1&&e.checkboxList1.length>0){var s=JSON.parse(e.checkboxList1);s&&s.length>0&&(t.checkboxList1=[],s.forEach((function(e){var i=v.a.retrieveValue(t.checkboxList1Options,e,"code",null);i&&t.checkboxList1.push(i)})))}if(e.checkboxList2&&e.checkboxList2.length>0){var n=JSON.parse(e.checkboxList2);n&&n.length>0&&(t.checkboxList2=[],n.forEach((function(e){var i=v.a.retrieveValue(t.checkboxList2Options,e,"code",null);i&&t.checkboxList2.push(i)})))}if(e.checkboxList3&&e.checkboxList3.length>0){var o=JSON.parse(e.checkboxList3);o&&o.length>0&&(t.checkboxList3=[],o.forEach((function(e){var i=v.a.retrieveValue(t.checkboxList3Options,e,"code",null);i&&t.checkboxList3.push(i)})))}if(e.checkboxList4&&e.checkboxList4.length>0){var r=JSON.parse(e.checkboxList4);r&&r.length>0&&(t.checkboxList4=[],r.forEach((function(e){var i=v.a.retrieveValue(t.checkboxList4Options,e,"code",null);i&&t.checkboxList4.push(i)})))}if(e.checkboxList5&&e.checkboxList5.length>0){var l=JSON.parse(e.checkboxList5);l&&l.length>0&&(t.checkboxList5=[],l.forEach((function(e){var i=v.a.retrieveValue(t.checkboxList5Options,e,"code",null);i&&t.checkboxList5.push(i)})))}if(e.checkboxList6&&e.checkboxList6.length>0){var c=JSON.parse(e.checkboxList6);c&&c.length>
10&&(t.checkboxList6=[],c.forEach((function(e){var i=v.a.retrieveValue(t.checkboxList6Options,e,"code",null);i&&t.checkboxList6.push(i)})))}t.seedsCountValue=e.seedsCount||"",t.farmSizeValue=v.a.formatFloatNumbers(t.farmSizeValue),t.organicAreaSizeValue=v.a.formatFloatNumbers(t.organicAreaSizeValue),t.prefilledAreaPerCrop&&t.prefilledAreaPerCrop.forEach((function(t){t.value&&(t.value=v.a.formatFloatNumbers(t.value))})),t.prefilledZip||t.prefilledCity?t.getLocation(t.prefilledZip,t.prefilledCity,"locationValue"):t.isLocationRetrieved=!0,t.contactPrefilledZip||t.contactPrefilledCity?t.useEircode?(t.contactEircodeValue=e.contactPrefilledZip||"",t.getLocation(t.contactPrefilledZip,t.contactPrefilledCity,"contactLocationValue")):t.getLocation(t.contactPrefilledZip,t.contactPrefilledCity,"contactLocationValue"):t.isContactLocationRetrieved=!0,e.eventAdditionalParticipants&&e.eventAdditionalParticipants.length>0&&(t.eventAdditionalParticipantsValue=JSON.parse(e.eventAdditionalParticipants));var u=!1;if(t.showField("zipcode")&&t.showField("contactZipcode")){var d=e.zipcode||"",p=e.contactZipcode||"";d!==p&&""!==p&&(u=!0)}if(t.showField("city")&&t.showField("contactCity")){var m=e.city||"",h=e.contactCity||"";m!==h&&""!==h&&(u=!0)}if(t.showField("street")&&t.showField("contactStreet")){var f=e.street||"",g=e.contactStreet||"";f!==g&&""!==g&&(u=!0)}if(t.showField("streetNumber")&&t.showField("contactStreetNumber")){var b=e.streetNumber||"",w=e.contactStreetNumber||"";b!==w&&""!==w&&(u=!0)}u&&(t.useContactAddress="yes"),t.isDataRetrieved=!0})).catch((function(){t.loadingError=!0})))},prefillArrayOptions:function(t,e){return t?e.filter((function(e){return t.find((function(t){return t===e.code}))})):""},updateAgriculturalArea:function(t){if(this.cropAgriculturalAreaValue=t,t){var e=0;this.cropAgriculturalAreaValue.forEach((function(t){e+=v.a.stringToDecimal(t.value)})),this.errorFarmSize=v.a.stringToDecimal(this.farmSizeValue)<e}else this.errorFarmSize=!1},getLocation:function(t,e,i){var a=this,s=this;this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){s[i]=t,"contactLocationValue"===i?a.isContactLocationRetrieved=!0:a.isLocationRetrieved=!0})).catch((function(){a.loadingError=!0}))},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""},errorMethod:function(t,e){var i=e,a=!1,s=!1;t.response&&t.response.status&&400===t.response.status&&"object"===yt()(t.response.data)&&null!==t.response.data&&t.response.data&&(t.response.data.code&&429===t.response.data.code?a=!0:t.response.data.code&&401===t.response.data.code&&(s=!0)),a?(this.limitReached=!0,i.flagSubmit=1):s?(this.showNotLoggedInNoChange=!0,i.flagSubmit=1):(i.flagSubmit=-1,this.hasError=!0)},validate:function(t){var e=this,i=t;i.fields=i.$children.filter((function(t){return i.fieldTypes.includes(t.$options._componentTag)})),i.fields.forEach((function(t){var i=t;e.onlyContactAddress||"yes"===e.useContactAddress||"contactZipcode"!==i.name&&"contactCity"!==i.name&&"contactStreet"!==i.name&&"contactStreetNumber"!==i.name?i.validate():(i.valid=!0,i.errorMessage="")})),i.hasInvalidFields=i.fields.find((function(t){return!t.valid}))},submitEvent:function(t){var e=this,i=t,a=t.fields;this.eventName&&a.push({name:"eventName",value:this.eventName}),this.eventDate&&Object.keys(this.eventDate).length>0&&a.push({name:"eventDate",value:this.eventDate}),this.eventLocation&&Object.keys(this.eventLocation).length>0&&a.push({name:"eventLocation",value:this.eventLocation});var s=ut.a.buildFormContent(a,this.config.country);if(this.onlyContactAddress||this.useContactAddress||(this.showField("contactZipcode")&&(s.contactZipcode=s.zipcode),this.showField("contactCity")&&(s.contactCity=s.city),this.showField("contactStreet")&&(s.contactStreet=s.street),this.showField("contactStreetNumber")&&(s.contactStreetNumber=s.streetNumber)),!this.isLoggedIn){var n=this.getEnabledFieldsWithCrm();n&&n.forEach((function(t){Object.prototype.hasOwnProperty.call(s,t.name)&&"string"==typeof s[t.name]&&""===s[t.name]&&delete s[t.n
1ame]}))}this.$store.dispatch("forms/submitEventForm",{formId:t.formId,content:s}).then((function(){i.flagSubmit=1,e.afterSubmit()})).catch((function(t){e.errorMethod(t,i)}))},afterSubmit:function(){!this.hasSubscribed&&this.hasOpt&&this.loginType&&"mobile"===this.loginType?this.popupMobileSubscribeSuccessInfoOpen=!0:(this.showSuccessSubscribe=!0,this.showForm=!1,this.scrollToTopOfEventForm())},unSubscribe:function(){var t=this;this.isPendingUnsubscribe||(this.showLoader=!0,this.$store.dispatch("forms/triggerUnsubscription",{formId:this.formId,reason:"",reasonText:"",comment:"",content:{"newsletter-services":{}}}).then((function(){t.showLoader=!1,t.isLoggedIn&&t.hasOpt&&t.loginType&&"mobile"===t.loginType?t.popupMobileUnsubscribeSuccessInfoOpen=!0:(t.showSuccessUnSubscribe=!0,t.showForm=!1,t.scrollToTopOfEventForm())})).catch((function(){t.hasError=!0,t.showLoader=!1,t.scrollToTopOfEventForm()})))},closePopupMobileUnsubscribeSuccessInfoOpen:function(){window.location.href=this.getVerificationMobilePageUrl("OPTOUT")},closePopupMobileSubscribeSuccessInfoOpen:function(){window.location.href=this.getVerificationMobilePageUrl("OPTIN")},emailConfirmAfterValidate:function(t){var e=t;if(e.valid){var i=!1;this.emailValue&&this.emailConfirmValue&&this.emailValue.toLowerCase()===this.emailConfirmValue.toLowerCase()&&(i=!0),i||(e.valid=!1,e.errorMessage=this.translations.emailConfirmNotMatch)}},getVerificationMobilePageUrl:function(t){var e=this.config.verificationMobilePageUrl;return e+="?optType=".concat(encodeURIComponent(t)),this.formId&&(e+="&formIds=".concat(encodeURIComponent(this.formId))),e},checkSubscription:function(){var t=this;this.$store.dispatch("forms/getSubscriptions").then((function(e){var i=e?e.find((function(e){return e.id===t.formId})):{};t.hasSubscribed=!1,i&&(t.hasSubscribed=!0)})).catch((function(){t.loadingError=!0}))},getEventSpecificTranslation:function(t){var e=null;return this.formId&&this.translations&&this.translations.event&&this.translations.event.perEvent&&Object.prototype.hasOwnProperty.call(this.translations.event.perEvent,this.formId)&&Object.prototype.hasOwnProperty.call(this.translations.event.perEvent[this.formId],t)&&this.translations.event.perEvent[this.formId][t]&&(e=this.translations.event.perEvent[this.formId][t]),e}}};var Sa=function(t){i("ohBD")},Ta=Object(l.a)(_a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"event-form"},[t.limitMaxCount>0||t.limitReached?i("div",{staticClass:"limit-info",class:{"limit-reached":t.limitReached}},[t._v("\n    "+t._s(t.getLimitInfo())+"\n    "),i("DebugMode",{attrs:{"form-id":t.formId}})],1):t._e(),t._v(" "),t.showNotLoggedInNoChange?i("div",{staticClass:"alert alert-danger"},[t._v("\n    "+t._s(t.translations.event.notLoggedInNoChange)+"\n  ")]):t._e(),t._v(" "),t.isLoggedIn&&t.isSubscribed?i("div",{staticClass:"already-registered"},[i("p",[t._v(t._s(t.translations.event.alreadyRegistered))]),t._v(" "),i("div",{staticClass:"ssp-buttons-wrapper"},[i("button",{staticClass:"ssp-button",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.event.editButton)},on:{click:function(e){return t.showHide()}}}),t._v(" "),i("a",{staticClass:"ssp-button basic",class:{disabled:t.isPendingUnsubscribe},attrs:{id:"cucumber_unsubscribe_"+t.tealiumName,href:"#",title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.unsubscribe.label),"data-tealium-value":"ssp_events_"+(t.tealiumName||t.fsId)+"_unsubscribe","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.label)},on:{click:function(e){return t.unSubscribe()}}})])]):t._e(),t._v(" "),t.limitReached&&!t.isSubscribed||t.showSuccessSubscribe||t.showSuccessUnSubscribe||!t.showForm&&t.isSubscribed||t.showNotLoggedInNoChange?t._e():i("TemplateForm",{ref:"templateForm",attrs:{"form-id":t.formId,"attempt-submit":t.attemptSubmit,benefits:t.benefits,"additional-description":t.additionalDescription,"success-redirect-link":t.successRedirectLink,"additional-button":t.additionalButton,"back-button":t.backButton,"google-play":t.googlePlay,"app-store":t.appStore,"additional-information":t.additionalInformation,"back-button-visible":!1,"tealium-value":"events_"+(t.tealiumName||t.fsId),"use-parent-validate":!0,"button-label":t.getEventSpecificTranslation("submitButtonLabel")?t.getEventSpecificTranslation("submitButtonLabel"):""},on:{"update:attemptSubmit":function(e){t.attemptSubmit=e},"update:attempt-submit":function(e){t.attemptSubmit=e},submitMethod:t.submitEvent},scopedSlots:t._u([t.isSubscribed||t.isPendingUnsubscribe?{key:"additionalButtonsSlot",fn:function(){return[i("a",{staticClass:"ssp-button basic",class:{disabled:t.isPendingUnsubscribe},attrs:{id:"cucumber_unsubscribe_"+t.tealiumName,href:"#",title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.unsubscribe.label),"data-teal
1ium-value":"ssp_events_"+(t.tealiumName||t.fsId)+"_unsubscribe","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.label)},on:{click:function(e){return t.unSubscribe()}}})]},proxy:!0}:null],null,!0)},[t.translations.event.hint?i("div",{staticClass:"row mb-3"},[i("div",{staticClass:"col",domProps:{innerHTML:t._s(t.translations.event.hint)}})]):t._e(),t._v(" "),t.showField("seedsCount")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.seedsCountValue,name:"seedsCount","label-name":""+t.translations.label.seedsCount,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("seedsCount"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_seedsCount"},on:{"update:value":function(e){t.seedsCountValue=e}}})],1)]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.jobTitle,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_jobTitle"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.snConfigAllSSPCrops,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.translations.tooltip.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":t.attemptSubmit,"service-crop-list":t.cropListCurrent,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.getEventSpecificTranslation("company")?t.getEventSpecificTranslation("company"):t.translations.label.company,tooltip:t.getEventSpecificTranslation("companyNoTooltip")?"":t.translations.tooltip.company,required:t.isRequired("company"),"do-on-change-validation":t.attemptSubmit,disabled:t.companyIsDisabled,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_salutation"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_title"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_firstName"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,tooltip:t.getEventSpecificTranslation("lastNameNoTooltip")?"":t.translations.tooltip.personalisation,required:t.isRequired("lastName"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_lastName"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_dateOfBirth"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e(),t._v(" "),t.onlyContactAddress?[t.showField("contactZipcode")||t.showField("contactCity")?i("div",{staticClass:"row"},[t.showField("contactZipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactZipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){return t.contactLocationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.contactEircodeValue,name:"contactZipcode","label-name":t.translations.label.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("contactZipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){t.contactEircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("contactCity")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactCity","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("contactCity"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactCity"},on:{"update:value":function(e){return t.contactLocationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("contactStreet")||t.showField("contactStreetNumber")?i("div",{staticClass:"row"},[t.showField("contactStreet")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("contactStreetNumber")}},[i("TextField",{attrs:{value:t.contactStreetValue,name:"contactStreet","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("contactStreet"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreet"},on:{"update:value":function(e){t.contactStreetValue=e}}})],1):t._e(),t._v(" "),t.showField("contactStreetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.contactStreetNumberValue,name:"contactStreetNumber","label-name":t.translations.label.no,required:t.isRequired("contactStreetNumber"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreetNumber"},on:{"update:value":function(e){t.contactStreetNumberValue=e}}})],1):t._e()]):t._e()]:[t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"},[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.eircode,"custom-validation-reg-exp":t.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_zipcode"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("street")||t.showField("streetNumber")?i("div",{staticClass:"row"},[t.showField("street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.getEventSpecificTranslation("streetNo")?t.getEventSpecificTranslation("streetNo"):t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.getEventSpecificTranslation("no")?t.getEventSpecificTranslation("no"):t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e()],t._v(" "),t.showField("phone")?i("div",{staticClass:"row"},[t.showField("phone")?i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.getEventSpecificTranslation("phone")?t.getEventSpecificTranslation("phone"):t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("phone"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_phone"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()]):t._e(),t._v(" "),!t.showField("email")&&t.isLoggedIn||!t.showEmail?t._e():i("div",{staticClass:"row"},[i("div",{staticClass:"col-12",class:{"field-wrapper-no-margin-bottom":t.showField("emailConfirm")&&!t.isLoggedIn&&t.showEmail}},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",required:t.isRequired("email")||!t.isLoggedIn,"do-on-change-validation":t.attemptSubmit,disabled:t.isLoggedIn,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e}}})],1)]),t._v(" "),t.showField("emailConfirm")&&!t.isLoggedIn&&t.showEmail?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailConfirmValue,name:"emailConfirm","label-name":t.translations.label.emailConfirm,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",required:!0,"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_emailConfirm"},on:{"update:value":function(e){t.emailConfirmValue=e},afterValidate:t.emailConfirmAfterValidate}})],1)]):t._e(),t._v(" "),t.showField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,"custom-validation-reg-exp":t.faxPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("fax"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_fax"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{id:"agreementFax","form-id":t.formId,value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showField("shoeSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.shoeSizeValue,name:"shoeSize","label-name":t.translations.label.shoeSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("shoeSize"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.shoeSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("eventAdditionalParticipants")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextListField",{attrs:{value:t.eventAdditionalParticipantsValue,"field-config":[{name:"firstName",label:t.translations.label.firstName,required:!0},{name:"lastName",label:t.translations.label.lastName,required:!0}],"max-entries":5,"use-edit":!1,name:"eventAdditionalParticipants","label-name":t.translations.label.eventAdditionalParticipants,required:t.isRequired("eventAdditionalParticipants"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.eventAdditionalParticipantsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("vegetarian")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"vegetarian",value:t.vegetarian,name:"vegetarian","checkbox-label":t.translations.label.vegetarian,"do-on-change-validation":t.attemptSubmit,required:!1},on:{"update:value":function(e){t.vegetarian=e}}})],1)]):t._e(),t._v(" "),t.showField("productUsageProof")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FileUploadField",{attrs:{value:t.productUsageProof,name:"productUsageProof",multiple:!0,"label-name":t.translations.label.productUsageProof,tooltip:t.translations.tooltip.productUsageProof,placeholder:t.translations.placeholder.productUsageProof,required:t.isRequired("productUsageProof"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.productUsageProof=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.farmSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":t.attemptSubmit,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.occupationValue&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":t.attemptSubmit,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.organicAreaSizeValue,name:"organicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.organicAreaSize,"custom-validation-reg-exp":t.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize"),"do-on-change-validation":t.attemptSubmit,"has-error":!t.isLessThanFarmSize(t.organicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.organicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText1")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText1NoDom")&&t.translations.label.freeText1Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText1Dom")?t.getEventSpecificTranslation("freeText1Dom"):t.translations.label.freeText1Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText1Value,name:"freeText1","label-name":t.getEventSpecificTranslation("freeText1")?t.getEventSpecificTranslation("freeText1"):t.translations.label.freeText1,required:t.isRequired("freeText1"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText1Value=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText2")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText2NoDom")&&t.translations.label.freeText2Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText2Dom")?t.getEventSpecificTranslation("freeText2Dom"):t.translations.label.freeText2Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText2Value,name:"freeText2","label-name":t.getEventSpecificTranslation("freeText2")?t.getEventSpecificTranslation("freeText2"):t.translations.label.freeText2,required:t.isRequired("freeText2"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText2Value=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText3")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText3NoDom")&&t.translations.label.freeText3Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText3Dom")?t.getEventSpecificTranslation("freeText3Dom"):t.translations.label.freeText3Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText3Value,name:"freeText3","label-name":t.getEventSpecificTranslation("freeText3")?t.getEventSpecificTranslation("freeText3"):t.translations.label.freeText3,required:t.isRequired("freeText3"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText3Value=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText4")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText4NoDom")&&t.translations.label.freeText4Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText4Dom")?t.getEventSpecificTranslation("freeText4Dom"):t.translations.label.freeText4Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText4Value,name:"freeText4","label-name":t.getEventSpecificTranslation("freeText4")?t.getEventSpecificTranslation("freeText4"):t.translations.label.freeText4,required:t.isRequired("freeText4"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText4Value=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText5")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText5NoDom")&&t.translations.label.freeText5Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText5Dom")?t.getEventSpecificTranslation("freeText5Dom"):t.translations.label.freeText5Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText5Value,name:"freeText5","label-name":t.getEventSpecificTranslation("freeText5")?t.getEventSpecificTranslation("freeText5"):t.translations.label.freeText5,required:t.isRequired("freeText5"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText5Value=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText6")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText6NoDom")&&t.translations.label.freeText6Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText6Dom")?t.getEventSpecificTranslation
1("freeText6Dom"):t.translations.label.freeText6Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText6Value,name:"freeText6","label-name":t.getEventSpecificTranslation("freeText6")?t.getEventSpecificTranslation("freeText6"):t.translations.label.freeText6,required:t.isRequired("freeText6"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText6Value=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText7")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText7NoDom")&&t.translations.label.freeText7Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText7Dom")?t.getEventSpecificTranslation("freeText7Dom"):t.translations.label.freeText7Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText7Value,name:"freeText7","label-name":t.getEventSpecificTranslation("freeText7")?t.getEventSpecificTranslation("freeText7"):t.translations.label.freeText7,required:t.isRequired("freeText7"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText7Value=e}}})],1)]):t._e(),t._v(" "),t.showField("freeText8")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[!t.getEventSpecificTranslation("freeText8NoDom")&&t.translations.label.freeText8Dom?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("freeText8Dom")?t.getEventSpecificTranslation("freeText8Dom"):t.translations.label.freeText8Dom)}}):t._e(),t._v(" "),i("TextAreaField",{attrs:{value:t.freeText8Value,name:"freeText8","label-name":t.getEventSpecificTranslation("freeText8")?t.getEventSpecificTranslation("freeText8"):t.translations.label.freeText8,required:t.isRequired("freeText8"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.freeText8Value=e}}})],1)]):t._e(),t._v(" "),t.showField("basisAccountNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.basisAccountNumberValue,name:"basisAccountNumber","label-name":t.translations.label.basisAccountNumber,required:t.isRequired("basisAccountNumber"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.basisAccountNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("nrosoMembershipNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.nrosoMembershipNumberValue,name:"nrosoMembershipNumber","label-name":t.translations.label.nrosoMembershipNumber,required:t.isRequired("nrosoMembershipNumber"),"do-on-change-validation":t.attemptSubmit},on:{"update:value":function(e){t.nrosoMembershipNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("timeSlotStonham")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.timeSlotStonhamValue,name:"timeSlotStonham","label-name":t.getSelectFieldLabel("timeSlotStonham"),placeholder:t.translations.singleSelect,options:t.timeSlotStonhamOptions,required:t.isRequired("timeSlotStonham"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_timeSlotStonham"},on:{"update:value":function(e){t.timeSlotStonhamValue=e}}})],1)]):t._e(),t._v(" "),t.showField("timeSlotRawcliffe")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.timeSlotRawcliffeValue,name:"timeSlotRawcliffe","label-name":t.getSelectFieldLabel("timeSlotRawcliffe"),placeholder:t.translations.singleSelect,options:t.timeSlotRawcliffeOptions,required:t.isRequired("timeSlotRawcliffe"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_timeSlotRawcliffe"},on:{"update:value":function(e){t.timeSlotRawcliffeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("timeSlotPotatoTrialHubWest")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.timeSlotPotatoTrialHubWestValue,name:"timeSlotPotatoTrialHubWest","label-name":t.getSelectFieldLabel("timeSlotPotatoTrialHubWest"),placeholder:t.translations.singleSelect,options:t.timeSlotPotatoTrialHubWestOptions,required:t.isRequired("timeSlotPotatoTrialHubWest"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_timeSlotPotatoTrialHubWest"},on:{"update:value":function(e){t.timeSlotPotatoTrialHubWestValue=e}}})],1)]):t._e(),t._v(" "),t.showField("timeSlotPotatoTrialHubEast")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.timeSlotPotatoTrialHubEastValue,name:"timeSlotPotatoTrialHubEast","label-name":t.getSelectFieldLabel("timeSlotPotatoTrialHubEast"),placeholder:t.translations.singleSelect,options:t.timeSlotPotatoTrialHubEastOptions,required:t.isRequired("timeSlotPotatoTrialHubEast"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_timeSlotPotatoTrialHubEast"},on:{"update:value":function(e){t.timeSlotPotatoTrialHubEastValue=e}}})],1)]):t._e(),t._v(" "),t.showField("timeSlotPotatoTrialHubScotland")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.timeSlotPotatoTrialHubScotlandValue,name:"timeSlotPotatoTrialHubScotland","label-name":t.getSelectFieldLabel("timeSlotPotatoTrialHubScotland"),placeholder:t.translations.singleSelect,options:t.timeSlotPotatoTrialHubScotlandOptions,required:t.isRequired("timeSlotPotatoTrialHubScotland"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_timeSlotPotatoTrialHubScotland"},on:{"update:value":function(e){t.timeSlotPotatoTrialHubScotlandValue=e}}})],1)]):t._e(),t._v(" "),t.showField("clothesSize_1")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.clothesSize1Value,name:"clothesSize_1","label-name":t.getSelectFieldLabel("clothesSize_1"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.placeholder.notSelected,options:t.clothesSize1Options,required:t.isRequired("clothesSize_1"),cucumber:"form_select_clothesSize_1"},on:{"update:value":function(e){t.clothesSize1Value=e}}})],1)]):t._e(),t._v(" "),t.showField("clothesSize_2")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.clothesSize2Value,name:"clothesSize_2","label-name":t.getSelectFieldLabel("clothesSize_2"),"do-on-change-validation":t.attemptSubmit,placeholder:t.translations.placeholder.notSelected,options:t.clothesSize2Options,required:t.isRequired("clothesSize_2"),cucumber:"form_select_clothesSize_2"},on:{"update:value":function(e){t.clothesSize2Value=e}}})],1)]):t._e(),t._v(" "),t.showField("whyFarmingBiggestJobOnEarth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextAreaField",{attrs:{value:t.whyFarmingBiggestJobOnEarthValue,name:"whyFarmingBiggestJobOnEarth","label-name":t.translations.label.whyFarmingBiggestJobOnEarth,required:t.isRequired("whyFarmingBiggestJobOnEarth"),"do-on-change-validation":t.attemptSubmit,rows:3},on:{"update:value":function(e){t.whyFarmingBiggestJobOnEarthValue=e}}})],1)]):t._e(),t._v(" "),t.showField("checkbox1")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"checkbox1",value:t.checkbox1,name:"checkbox1","checkbox-label":t.getEventSpecificTranslation("checkbox1")?t.getEventSpecificTranslation("checkbox1"):t.translations.label.checkbox1,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkbox1")},on:{"update:value":function(e){t.checkbox1=e}}})],1)]):t._e(),t._v(" "),t.showField("checkbox2")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"checkbox2",value:t.checkbox2,name:"checkbox2","checkbox-label":t.getEventSpecificTranslation("checkbox2")?t.getEventSpecificTranslation("checkbox2"):t.translations.label.checkbox2,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkbox2")},on:{"update:value":function(e){t.checkbox2=e}}})],1)]):t._e(),t._v(" "),t.showField("checkbox3")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"checkbox3",value:t.checkbox3,name:"checkbox3","checkbox-label":t.getEventSpecificTranslation("checkbox3")?t.getEventSpecificTranslation("checkbox3"):t.translations.label.checkbox3,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkbox3")},on:{"update:value":function(e){t.checkbox3=e}}
1})],1)]):t._e(),t._v(" "),t.showField("practiceDay")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"practiceDay",value:t.practiceDay,name:"practiceDay","checkbox-label":t.translations.label.practiceDay,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("practiceDay")},on:{"update:value":function(e){t.practiceDay=e}}})],1)]):t._e(),t._v(" "),t.showField("shuttleService")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"shuttleService",value:t.shuttleService,name:"shuttleService","checkbox-label":t.translations.label.shuttleService,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("shuttleService")},on:{"update:value":function(e){t.shuttleService=e}}})],1)]):t._e(),t._v(" "),t.showField("practiceDayAdditionalOne")||t.showField("practiceDayAdditionalTwo")?i("div",{staticClass:"row"},[t.translations.practiceDayAdditionalHeadline?i("div",{staticClass:"col-12"},[i("h3",[t._v(t._s(t.translations.practiceDayAdditionalHeadline))])]):t._e(),t._v(" "),i("div",{staticClass:"col-12 field-wrapper-no-margin-bottom"},[i("CheckboxField",{attrs:{id:"practiceDayAdditionalOne",value:t.practiceDayAdditionalOne,name:"practiceDayAdditionalOne","checkbox-label":t.translations.label.practiceDayAdditionalOne,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("practiceDayAdditionalOne")},on:{"update:value":function(e){t.practiceDayAdditionalOne=e}}})],1),t._v(" "),i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"practiceDayAdditionalTwo",value:t.practiceDayAdditionalTwo,name:"practiceDayAdditionalTwo","checkbox-label":t.translations.label.practiceDayAdditionalTwo,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("practiceDayAdditionalTwo")},on:{"update:value":function(e){t.practiceDayAdditionalTwo=e}}})],1)]):t._e(),t._v(" "),t.showField("radio1")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("RadioField",{attrs:{value:t.radio1Value,name:"radio1","label-name":t.getEventSpecificTranslation("radio1")?t.getEventSpecificTranslation("radio1"):t.translations.label.radio1,options:t.radio1Options,required:t.isRequired("radio1"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_radio1"},on:{"update:value":[function(e){t.radio1Value=e},function(e){return t.radio1Value=e}]}})],1)]):t._e(),t._v(" "),!t.onlyContactAddress&&(t.showField("contactZipcode")||t.showField("contactCity")||t.showField("contactStreet")||t.showField("contactStreetNumber"))?i("div",{class:{"mb-3":!t.useContactAddress}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("p",[t._v(t._s(t.translations.optionalData.registration.text))])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.useContactAddress,expression:"useContactAddress"}],attrs:{value:"",type:"radio"},domProps:{checked:t._q(t.useContactAddress,"")},on:{change:function(e){t.useContactAddress=""}}}),t._v(" "),i("span",[t._v(t._s(t.translations.optionalData.registration.no))])])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.useContactAddress,expression:"useContactAddress"}],attrs:{value:"yes",type:"radio"},domProps:{checked:t._q(t.useContactAddress,"yes")},on:{change:function(e){t.useContactAddress="yes"}}}),t._v(" "),i("span",[t._v(t._s(t.translations.optionalData.registration.yes))])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.useContactAddress,expression:"useContactAddress"}],staticClass:"mt-3"},[t.showField("contactZipcode")||t.showField("contactCity")?i("div",{staticClass:"row"},[t.showField("contactZipcode")?i("div",{staticClass:"col-12 col-sm-4"},[t.useEircode?t._e():i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactZipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){return t.contactLocationValue=e}}}
1),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.contactEircodeValue,name:"contactZipcode","label-name":t.translations.label.eircode,"custom-validation-reg-exp":t.settings.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("contactZipcode"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactZipcode"},on:{"update:value":function(e){t.contactEircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("contactCity")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactCity","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("contactCity"),"do-on-change-validation":t.attemptSubmit,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_contactCity"},on:{"update:value":function(e){return t.contactLocationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("contactStreet")||t.showField("contactStreetNumber")?i("div",{staticClass:"row"},[t.showField("contactStreet")?i("div",{staticClass:"col-12 col-sm-8"},[i("TextField",{attrs:{value:t.contactStreetValue,name:"contactStreet","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("contactStreet"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreet"},on:{"update:value":function(e){t.contactStreetValue=e}}})],1):t._e(),t._v(" "),t.showField("contactStreetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.contactStreetNumberValue,name:"contactStreetNumber","label-name":t.translations.label.no,required:t.isRequired("contactStreetNumber"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_input_contactStreetNumber"},on:{"update:value":function(e){t.contactStreetNumberValue=e}}})],1):t._e()]):t._e()])]):t._e(),t._v(" "),t.showField("typeOfFarm")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.typeOfFarmValue,name:"typeOfFarm","label-name":t.getSelectFieldLabel("typeOfFarm"),placeholder:t.translations.singleSelect,tooltip:t.translations.tooltip.typeOfFarm,options:t.typeOfFarmOptions,required:t.isRequired("typeOfFarm"),"do-on-change-validation":t.attemptSubmit,cucumber:"form_select_typeOfFarm"},on:{"update:value":function(e){t.typeOfFarmValue=e}}})],1)]):t._e(),t._v(" "),t.formDefinition&&t.formDefinition.length?i("section",[t.agreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12",class:{"field-wrapper-no-margin-bottom":t.showField("agreementTextBefore")&&t.translations.label.agreementTextBeforeDom}},[t.getEventSpecificTranslation("agreementTextBeforeDom")?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("agreementTextBeforeDom"))}}):t._e(),t._v(" "),t.showField("agreementTextBefore")&&t.translations.label.agreementTextBeforeDom?i("fragment",{domProps:{innerHTML:t._s(t.translations.label.agreementTextBeforeDom)}}):t._e(),t._v(" "),i("CheckboxField",{attrs:{id:"agreement","form-id":t.formId,value:t.agreement,name:"agreement","checkbox-label":t.agreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}}),t._v(" "),t.getEventSpecificTranslation("agreementTextAfterDom")?i("fragment",{domProps:{innerHTML:t._s(t.getEventSpecificTranslation("agreementTextAfterDom"))}}):t._e(),t._v(" "),t.showField("agreementTextAfter")&&t.translations.label.agreementTextAfterDom?i("fragment",{domProps:{innerHTML:t._s(t.translations.label.agreementTextAfterDom)}}):t._e()],1)]):t._e(),t._v(" "),t.agreementLabelNewsletter||!t.isSubscribed&&t.showAgreementTrackingConsent?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreementTrackingConsent","form-id":t.formId,value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.showAgreementTrackingConsent?t.servicesAgreementLabelNewsletter:t.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e()]):t._e(),t._v(" "),t.showField("checkboxList1")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.checkboxList1,name:"checkboxList1","custom-class":"two-cols","label-name":t.getSelectFieldLabel("checkboxList1"),list:t.checkboxList1Options,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkboxList1"),"display-required-flag":t.isRequired("checkboxList1"),"children-required":!1,multiple:!t.getEventSpecificTranslation("checkboxList1NotMultiple"),cucumber:"form_checkbox_list1"},on:{"update:value":function(e){t.checkboxList1=e}}})],1)]):t._e(),t._v(" "),t.showField("checkboxList2")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.checkboxList2,name:"checkboxList2","custom-class":"two-cols","label-name":t.getSelectFieldLabel("checkboxList2"),list:t.checkboxList2Options,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkboxList2"),"display-required-flag":t.isRequired("checkboxList2"),"children-required":!1,multiple:!t.getEventSpecificTranslation("checkboxList2NotMultiple"),cucumber:"form_checkbox_list2"},on:{"update:value":function(e){t.checkboxList2=e}}})],1)]):t._e(),t._v(" "),t.showField("checkboxList3")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.checkboxList3,name:"checkboxList3","custom-class":"two-cols","label-name":t.getSelectFieldLabel("checkboxList3"),list:t.checkboxList3Options,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkboxList3"),"dis
1play-required-flag":t.isRequired("checkboxList3"),"children-required":!1,multiple:!t.getEventSpecificTranslation("checkboxList3NotMultiple"),cucumber:"form_checkbox_list3"},on:{"update:value":function(e){t.checkboxList3=e}}})],1)]):t._e(),t._v(" "),t.showField("checkboxList4")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.checkboxList4,name:"checkboxList4","custom-class":"two-cols","label-name":t.getSelectFieldLabel("checkboxList4"),list:t.checkboxList4Options,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkboxList4"),"display-required-flag":t.isRequired("checkboxList4"),"children-required":!1,multiple:!t.getEventSpecificTranslation("checkboxList4NotMultiple"),cucumber:"form_checkbox_list4"},on:{"update:value":function(e){t.checkboxList4=e}}})],1)]):t._e(),t._v(" "),t.showField("checkboxList5")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.checkboxList5,name:"checkboxList5","custom-class":"two-cols","label-name":t.getSelectFieldLabel("checkboxList5"),list:t.checkboxList5Options,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkboxList5"),"display-required-flag":t.isRequired("checkboxList5"),"children-required":!1,multiple:!t.getEventSpecificTranslation("checkboxList5NotMultiple"),cucumber:"form_checkbox_list5"},on:{"update:value":function(e){t.checkboxList5=e}}})],1)]):t._e(),t._v(" "),t.showField("checkboxList6")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.checkboxList6,name:"checkboxList6","custom-class":"two-cols","label-name":t.getSelectFieldLabel("checkboxList6"),list:t.checkboxList6Options,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("checkboxList6"),"display-required-flag":t.isRequired("checkboxList6"),"children-required":!1,multiple:!t.getEventSpecificTranslation("checkboxList6NotMultiple"),cucumber:"form_checkbox_list6"},on:{"update:value":function(e){t.checkboxList6=e}}})],1)]):t._e(),t._v(" "),t.showField("emailCommunications")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12",class:{"field-wrapper-no-margin-bottom":t.translations.label.emailCommunicationsTextAfterDom}},[t.translations.label.emailCommunicationsTextBeforeDom?i("fragment",{domProps:{innerHTML:t._s(t.translations.label.emailCommunicationsTextBeforeDom)}}):t._e(),t._v(" "),i("CheckboxField",{attrs:{id:"emailCommunications",value:t.emailCommunications,name:"emailCommunications","checkbox-label":t.translations.label.emailCommunications,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("emailCommunications")},on:{"update:value":function(e){t.emailCommunications=e}}}),t._v(" "),t.translations.label.emailCommunicationsTextAfterDom?i("fragment",{domProps:{innerHTML:t._s(t.translations.label.emailCommunicationsTextAfterDom)}}):t._e()],1)]):t._e(),t._v(" "),!t.showField("emailCommunicationTopics")||!t.emailCommunications&&t.showField("emailCommunications")?t._e():i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.emailCommunicationTopics,name:"emailCommunicationTopics","label-name":t.getSelectFieldLabel("emailCommunicationTopics"),list:t.emailCommunicationTopicsOptions,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:t.isRequired("emailCommunicationTopics"),"children-required":t.isRequired("emailCommunicationTopics"),multiple:!0},on:{"update:value":function(e){t.emailCommunicationTopics=e}}})],1)])],2),t._v(" "),t.hasError?i("div",{staticClass:"alert alert-danger"},[t._v("\n    "+t._s(t.commonTranslations.errorMsg)+"\n  ")]):t._e(),t._v(" "),t.showSuccessSubscribe?i("div",{staticClass:"alert alert-info"},[t._v("\n    "+t._s(t.eventSuccessSubscribeText?t.eventSuccessSubscribeText:t.translations.event.successSubscribe)+"\n  ")]):t._e(),t._v(" "),t.showSuccessUnSubscribe?i("div",{staticClass:"alert alert-info"},[t._v("\n    "+t._s(t.eventSuccessUnSubscribeText?t.eventSuccessUnSubscribeText:t.translations.event.successUnSubscribe)+"\n  ")]):t._e(),t._v(" "),i("PopupInfo",{attrs:{open:t.popupMobileUnsubscribeSuccessInfoOpen,headline:t.translations.unsubscribe.label,text:t.translations.submit.service.mobile.unsubscribe,"text-button":t.commonTranslations.continue},on:{close:function(e){return t.closePopupMobileUnsubscribeSuccessInfoOpen()}}}),t._v(" "),i("PopupInfo",{attrs:{open:t.popupMobileSubscribeSuccessInfoOpen,headline:t.translations.subscribe.label,text:t.translations.submit.service.mobile.subscribe,"text-button":t.commonTranslations.continue},on:{close:function(e){return t.closePopupMobileSubscribeSuccessInfoOpen()}}}
1)],1)}),[],!1,Sa,"data-v-0f0de5d7",null).exports,Pa=new(function(){return Fe()((function t(){Te()(this,t)}),[{key:"removeStyle",value:function(t,e){t&&e&&t[e]&&t[e].forEach((function(t){var e=t;e&&e.data&&e.data.staticStyle&&(e.data.staticStyle=null)}))}}])}()),Fa={name:"TaxSection",components:{DataSection:Le,DataSectionEntry:Ve,DebugMode:b.a},props:{formId:{type:String,default:""},headline:{type:String,default:""},taxNumber:{type:String,default:""},partitaIVA:{type:String,default:""},taxType:{type:String,default:""},pecEmail:{type:String,default:""},pecCode:{type:String,default:""},personTypeValue:{type:Object,default:null},tealiumValue:{type:String,default:""},subscriptions:{type:Array,default:function(){return[]}}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},hasData:function(){return!!(this.taxNumber||this.partitaIVA||this.taxType||this.pecEmail||this.pecCode)},isLoyaltyBenefitoSubscribed:function(){return!!this.subscriptions&&!!this.subscriptions.find((function(t){return"ssp-customer-loyalty-benefito-service"===t.id}))},isLoyaltyVictoriaSubscribed:function(){return!!this.subscriptions&&!!this.subscriptions.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.id}))},enableEdit:function(){var t=!0;return(this.isLoyaltyVictoriaSubscribed||this.isLoyaltyBenefitoSubscribed)&&(t=!1),t},taxNumberFieldLabel:function(){var t=this.translations.label.taxNumber;return this.personTypeValue&&this.personTypeValue.code&&(t=this.translations.label.nipTaxNumber,"individualFarmer"===this.personTypeValue.code&&(t=this.translations.label.peselTaxNumber)),t}},methods:{openEditPopup:function(){this.enableEdit&&this.$emit("popup-edit")},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""}}};var xa=function(t){i("rH1k")};function Oa(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function ka(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Oa(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Oa(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var La={name:"AddressSectionV2",components:{PersonalAddressSection:$e,PostalAddressSection:qe,TaxSection:Object(l.a)(Fa,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"ssp-box-wrapper"},[t.headline?i("h2",[t._v("\n    "+t._s(t.headline)+"\n    "),i("DebugMode",{attrs:{"form-id":t.formId}})],1):t._e(),t._v(" "),i("DataSection",{attrs:{"enable-edit":t.enableEdit,"tealium-value":t.tealiumValue},on:{edit:function(e){return t.openEditPopup()}}},[i("DataSectionEntry",{attrs:{"has-data":t.hasData,"no-data-text":t.translations.account.info.editData,"add-box-mb":t.enableEdit}},[i("div",[t.taxType?i("div",[t.getSelectFieldLabel("taxType")?i("h4",{staticClass:"d-inline-block"},[t._v(t._s(t.getSelectFieldLabel("taxType"))+":")]):t._e(),t._v(" "),t.taxType?i("p",{staticClass:"d-inline-block"},[t._v(t._s(t.taxType))]):t._e()]):t._e(),t._v(" "),t.taxNumber?i("div",[t.taxNumberFieldLabel?i("h4",{staticClass:"d-inline-block"},[t._v(t._s(t.taxNumberFieldLabel)+":")]):t._e(),t._v(" "),t.taxNumber?i("p",{staticClass:"d-inline-block"},[t._v(t._s(t.taxNumber))]):t._e()]):t._e(),t._v(" "),t.partitaIVA?i("div",[t.translations.label.partitaIVA?i("h4",{staticClass:"d-inline-block"},[t._v(t._s(t.translations.label.partitaIVA)+":")]):t._e(),t._v(" "),t.partitaIVA?i("p",{staticClass:"d-inline-block"},[t._v(t._s(t.partitaIVA))]):t._e()]):t._e(),t._v(" "),t.pecCode?i("div",[t.translations.label.pecCode?i("h4",{staticClass:"d-inline-block"},[t._v(t._s(t.translations.label.pecCode)+":")]):t._e(),t._v(" "),t.pecCode?i("p",{staticClass:"d-inline-block"},[t._v(t._s(t.pecCode))]):t._e()]):t._e(),t._v(" "),t.pecEmail?i("div",[t.translations.label.pecEmail?i("h4",{staticClass:"d-inline-block"},[t._v(t._s(t.translations.label.pecEmail)+":")]):t._e(),t._v(" "),t.pecEmail?i("p",{staticClass:"d-inline-block"}
1,[t._v(t._s(t.pecEmail))]):t._e()]):t._e()])])],1)],1)}),[],!1,xa,"data-v-28669577",null).exports,Popup:Ze,PopupInfo:W,Loader:j.a,VerifyMobilePopupComp:fe},props:{formId:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},emailPattern:{type:RegExp,default:function(){}},phonePattern:{type:RegExp,default:function(){}},faxPattern:{type:RegExp,default:function(){}},eircodePattern:{type:RegExp,default:function(){}},numberPattern:{type:RegExp,default:function(){}},dateOfBirthPattern:{type:RegExp,default:function(){}},enableSubmit:{type:Boolean,default:!0},formDefinition:{type:Array,default:function(){return[]}},formData:{type:Object,default:function(){}},isFormDefinitionRetrieved:{type:Boolean,default:!1},isDataRetrieved:{type:Boolean,default:!1},hasLoadingError:{type:Boolean,default:!1},tealiumValue:{type:String,default:""},subscriptions:{type:Array,default:function(){return[]}},changeCompanyMultipleTimes:{type:Boolean,default:!1},formIdsWithMobile:{type:Array,default:function(){return[]}},hidePostalAddress:{type:Boolean,default:!1}},data:function(){return this.initFormData={},{salutation:{},title:{},firstName:"",lastName:"",street:"",streetNumber:"",location:{},eircode:"",email:"",mobile:"",phone:"",fax:"",company:"",dateOfBirth:"",taxType:{},taxNumber:"",personTypeValue:{},partitaIVA:"",pecCode:"",pecEmail:"",otEmailConsent:null,otMobileConsent:null,officialFarmId:"",prefilledZip:"",prefilledCity:"",isLocationRetrieved:!1,isContactLocationRetrieved:!1,loadingError:!1,contactStreet:"",contactStreetNumber:"",contactPrefilledZip:"",contactPrefilledCity:"",contactLocation:{},contactEircode:"",companyIsDisabled:!1,showPersonalAddressPopup:!1,showPostalAddressPopup:!1,showTaxPopup:!1,showSuccessPopup:!1,showErrorPopup:!1,state:"",currentForm:"",showPersonalAddressErrorMsg:!1,showPostalAddressErrorMsg:!1,successMsg:"",errorMsg:""}},computed:ka(ka({},Object(m.c)({userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},loginType:function(t){return t.forms.loginType},mobileVerified:function(t){return t.forms.mobileVerified},savedFields:function(t){return t.forms.savedFields},serviceSubscriptions:function(t){return t.forms.serviceSubscriptions}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},valid:function(){var t=!0,e=!0;return this.$refs&&this.$refs.popupFormPersonalAddress&&(t=!this.$refs.popupFormPersonalAddress.hasInvalidFields),this.$refs&&this.$refs.popupFormPostalAddress&&(e=!this.$refs.popupFormPostalAddress.hasInvalidFields),!(!t||!e)},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},salutationOptions:function(){return void 0!==window.salutationConfig&&window.salutationConfig.slice().sort((function(t,e){return e.ordering-t.ordering}))},titleOptions:function(){return void 0!==window.titleConfig&&window.titleConfig.slice().sort((function(t,e){return e.ordering-t.ordering}))},taxTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.taxType&&window.sspSelectFieldConfig.taxType.options.length?window.sspSelectFieldConfig.taxType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},personTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.personType&&window.sspSelectFieldConfig.personType.options.length?window.sspSelectFieldConfig.personType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},enableSalesForce:function(){return _e.a.useSalesForce()},isFormLoaded:function(){return this.isDataRetrieved&&this.isFormDefinitionRetrieved&&(this.isLocationRetrieved||this.isContactLocationRetrieved)},useEircode:function(){return"IE"===this.config.country},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved&&(this.isLocationRetrieved||this.isContactLocationRetrieved)&&this.isFormDefinitionRetrieved},isLoaderVisible:function(){return!this.isFormDataCompletelyRetrieved&&!this.loadingError},setHeadline:function(){return!this.company||this.company&&this.company==="".concat(this.firstName," ").concat(this.lastName)?this.translations.account.headline.personalAddress:this.translations.account.headline.companyAddress},setHeadlinePopup:function(){return"personal-data"===this.currentForm?this.translations.account.headline.personalAddress:"postal-data"===this.currentForm?this.translations.account.headline.postalAddress:"tax-data"===this.currentForm?this.translations.account.headline.tax:""},isEnabledPostalAddress:function(){var t=this.isEnabled("contactStreet")||this.isEnabled("contactStreetNumber")||this.isEnabled("contactZipcode")||this.isEnabled("contactCity"),e=!1;return(this.formData.contactStreet&&""!==this.formData.contactStreet||this.formData.contactStreetNumber&&""!==this.formData.contactStreetNumber||this.formData.contactZipcode&&""!==this.formData.contactZipcode||this.formData.contactCity&&""!==this.formData.contactCity)&&(e=!0),t&&e},isEnabledTax:function(){var t=this.isEnabled("taxNumber")||this.isEnabled("partitaIVA")||this.isEnabled("taxType")||this.isEnabled("pecEmail")||this.isEnabled("pecCode")||this.isEnabled("officialFarmId"),e=!1;return(this.formData.taxNumber&&""!==this.formData.taxNumber||this.formData.partitaIVA&&""!==this.formData.partitaIVA||this.formData.taxType&&""!==this.formData.taxType||this.formData.pecEmail&&""!==this.formData.pecEmail||this.formData.pecCode&&""!==this.formData.pecCode||this.formData.officialFarmId&&""!==this.formData.officialFarmId)&&(e=!0),t&&e}}),watch:{isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormData(t.$refs)}),0)},savedFields:function(t){var e=this,i=this,a=!1,s=!1;Object.keys(t).forEach((function(n){switch(n){case"salutation":i[n]=t[n]&&v.a.retrieveValue(e.salutationOptions,t[n],"code",{});break;case"title":i[n]=t[n]&&v.a.retrieveValue(e.titleOptions,t[n],"code",{});break;
1case"zipcode":a=!0,e.useEircode?e.eircode=t[n]:e.prefilledZip=t[n];break;case"city":a=!0,e.prefilledCity=t[n];break;case"contactZipcode":s=!0,e.useEircode?e.contactEircode=t[n]:e.contactPrefilledZip=t[n];break;case"contactCity":s=!0,e.contactPrefilledCity=t[n];break;default:i[n]=t[n]}})),a&&(this.prefilledZip||this.prefilledCity)?this.getLocation(this.prefilledZip,this.prefilledCity,"location"):this.isLocationRetrieved=!0,s&&(this.contactPrefilledZip||this.contactPrefilledCity)?this.getLocation(this.contactPrefilledZip,this.contactPrefilledCity,"contactLocation"):this.isContactLocationRetrieved=!0},formData:{handler:function(t){Object.keys(t).length&&this.handleData()}},hasLoadingError:{handler:function(t,e){t!==e&&(this.loadingError=this.hasLoadingError)}}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChanged(t.$refs,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}}))},mounted:function(){this.handleData()},methods:{isEnabled:function(t){return(!_e.a.useSalesForce()||"streetNumber"!==t)&&(!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display)},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},isMobileRequired:function(){return this.isRequired("mobile")&&!this.phone||this.isRequired("mobile")&&!!this.phone&&!!this.mobile},validate:function(){this.validatePersonalAddress(),this.validatePostalAddress()},validatePersonalAddress:function(){this.$refs.popupFormPersonalAddress.validate(),this.$refs.popupFormPersonalAddress.hasInvalidFields?this.showPersonalAddressErrorMsg=!0:this.showPersonalAddressErrorMsg=!1},validatePostalAddress:function(){this.$refs.popupFormPostalAddress.validate(),this.$refs.popupFormPostalAddress.hasInvalidFields?this.showPostalAddressErrorMsg=!0:this.showPostalAddressErrorMsg=!1},handleData:function(){var t=this.formData;t.salutation&&(this.salutation=v.a.retrieveValue(this.salutationOptions,t.salutation,"code",{})),t.title&&(this.title=v.a.retrieveValue(this.titleOptions,t.title,"code",{})),this.firstName=t.firstName||"",this.lastName=t.lastName||"",this.street=t.street||"",this.streetNumber=t.streetNumber||"",this.useEircode?(this.eircode=t.zipcode||"",this.prefilledCity=v.a.prefillLocation(t,"city")):(this.prefilledZip=v.a.prefillLocation(t,"zipcode"),this.prefilledCity=v.a.prefillLocation(t,"city")),this.company=t.company||"",t.company&&""!==t.company&&(t.company==="".concat(this.firstName," ").concat(this.lastName)||this.changeCompanyMultipleTimes||(this.companyIsDisabled=!0)),this.contactStreet=t.contactStreet||"",this.contactStreetNumber=t.contactStreetNumber||"",this.contactPrefilledZip=t.contactZipcode||"",this.contactPrefilledCity=t.contactCity||"",this.contactPrefilledZip||this.contactPrefilledCity?this.useEircode?(this.contactEircode=t.contactPrefilledZip||"",this.getLocation(this.contactPrefilledZip,this.contactPrefilledCity,"contactLocation")):this.getLocation(this.contactPrefilledZip,this.contactPrefilledCity,"contactLocation"):this.isContactLocationRetrieved=!0,this.email=t.email?t.email:this.userEmail||"",this.fax=t.fax||"",this.mobile=t.mobile?t.mobile:this.userMobile||"",this.phone=t.phone||"",this.dateOfBirth=t.dateOfBirth||"",this.isEnabled("otEmailConsent")&&"email"===this.loginType&&(t.otEmailConsent&&"true"===t.otEmailConsent?this.otEmailConsent=!0:this.otEmailConsent=!1),this.isEnabled("otMobileConsent")&&"mobile"===this.loginType&&(t.otMobileConsent&&"true"===t.otMobileConsent?this.otMobileConsent=!0:this.otMobileConsent=!1),this.taxNumber=t.taxNumber||"",this.partitaIVA=t.partitaIVA||"",t.taxType&&(this.taxType=v.a.retrieveValue(this.taxTypeOptions,t.taxType,"code",{})),this.pecEmail=t.pecEmail||"",this.pecCode=t.pecCode||"",this.officialFarmId=t.officialFarmId||"",this.personTypeValue=t.personType&&v.a.retrieveValue(this.personTypeOptions,t.personType,"code",{}),this.prefilledZip||this.prefilledCity?this.getLocation(this.prefilledZip,this.prefilledCity,"location"):this.isLocationRetrieved=!0}
1,getLocation:function(t,e,i){var a=this;this.isLocationRetrieved=!1,this.isContactLocationRetrieved=!1;var s=this;this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){s[i]=t,"contactLocation"===i?a.isContactLocationRetrieved=!0:a.isLocationRetrieved=!0})).catch((function(){a.loadingError=!0}))},editPersonalAddress:function(){var t=this,e=!1;this.mobile&&""!==this.mobile&&!this.mobileVerified&&this.formIdsWithMobile.find((function(e){return t.subscriptions.find((function(t){return t.id===e}))}))&&(e=!0),e?this.$refs.verifyMobilePopupCompRef.open(this.mobile):(this.showPersonalAddressPopup=!0,this.currentForm="personal-data")},editPostalAddress:function(){this.showPostalAddressPopup=!0,this.currentForm="postal-data"},editTax:function(){this.showTaxPopup=!0,this.currentForm="tax-data"},closePopup:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(this.state=t,this.showPersonalAddressPopup?this.showPersonalAddressPopup=!1:this.showPostalAddressPopup?this.showPostalAddressPopup=!1:this.showTaxPopup&&(this.showTaxPopup=!1),t){case"success":this.showSuccessPopup=!0,this.successMsg=e;break;case"error":this.showErrorPopup=!0,this.errorMsg=e}},closePopupInfo:function(){switch(this.state){case"success":this.showSuccessPopup=!1;break;case"error":this.showErrorPopup=!1}this.currentForm="",this.state="",window.location.reload()}}};var Ia=function(t){i("xm0s")},Ea=Object(l.a)(La,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-data-wrapper"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.isDataRetrieved?i("div",{staticClass:"row justify-content-center"},[i("div",{staticClass:"mb-5 mb-md-0",class:[t.isEnabledPostalAddress&&!t.hidePostalAddress?"col-md-6":"col-12 col-md-10"]},[i("PersonalAddressSection",{class:{error:t.showPersonalAddressErrorMsg},attrs:{"form-id":t.formId,headline:t.setHeadline,company:t.isEnabled("company")&&t.company?t.company:"",salutation:t.isEnabled("salutation")&&t.salutation?t.salutation.name:"",title:t.isEnabled("title")&&t.title?t.title.name:"","first-name":t.isEnabled("firstName")&&t.firstName?t.firstName:"","last-name":t.isEnabled("lastName")&&t.lastName?t.lastName:"",street:t.isEnabled("street")&&t.street?t.street:"","street-number":t.isEnabled("streetNumber")&&t.streetNumber?t.streetNumber:"",zipcode:t.isEnabled("zipcode")&&t.prefilledZip?t.prefilledZip:"",city:t.isEnabled("city")&&t.prefilledCity?t.prefilledCity:"",eircode:t.isEnabled("zipcode")&&t.eircode?t.eircode:"",email:t.isEnabled("email")&&t.email?t.email:"",mobile:t.isEnabled("mobile")&&t.mobile?t.mobile:"",phone:t.isEnabled("phone")&&t.phone?t.phone:"",fax:t.isEnabled("fax")&&t.fax?t.fax:"","ot-email-consent":t.otEmailConsent,"ot-mobile-consent":t.otMobileConsent,"disable-company":t.companyIsDisabled,"tealium-value":t.tealiumValue},on:{"popup-edit":function(e){return t.editPersonalAddress()}}}),t._v(" "),t.showPersonalAddressErrorMsg?i("div",{staticClass:"field-msg error"},[t._v(t._s(t.translations.invalid.missingData))]):t._e()],1),t._v(" "),t.isEnabledPostalAddress&&!t.hidePostalAddress?i("div",{staticClass:"col-md-6"},[i("PostalAddressSection",{class:{error:t.showPostalAddressErrorMsg},attrs:{"form-id":t.formId,headline:t.translations.account.headline.postalAddress,company:t.isEnabled("company")&&t.company?t.company:"",salutation:t.isEnabled("salutation")&&t.salutation?t.salutation.name:"","first-name":t.isEnabled("firstName")&&t.firstName?t.firstName:"","last-name":t.isEnabled("lastName")&&t.lastName?t.lastName:"",street:t.isEnabled("contactStreet")&&t.contactStreet?t.contactStreet:"","street-number":t.isEnabled("contactStreetNumber")&&t.contactStreetNumber?t.contactStreetNumber:"",zipcode:t.isEnabled("contactZipcode")&&t.contactPrefilledZip?t.contactPrefilledZip:"",city:t.isEnabled("contactCity")&&t.contactPrefilledCity?t.contactPrefilledCity:"",eircode:t.isEnabled("contactZipcode")&&t.contactEircode?t.contactEircode:"","tealium-value":t.tealiumValue},on:{"popup-edit":function(e){return t.editPostalAddress()}}}),t._v(" "),t.showPostalAddressErrorMsg?i("div",{staticClass:"field-msg error"},[t._v(t._s(t.translations.invalid.missingData))]):t._e()],1):t._e()]):t._e(),t._v(" "),t.isDataRetrieved&&t.isEnabledTax?i("div",{staticClass:"row mt-5 mt-md-3 justify-content-center"},[i("div",{staticClass:"col-12 col-md-10"},[i("TaxSection",{attrs:{"form-id":t.formId,headline:t.translations.account.headline.tax,"tax-number":t.isEnabled("taxNumber")&&t.taxNumber?t.taxNumber:"","partita-i-v-a":t.isEnabled("partitaIVA")&&t.partitaIVA?t.partitaIVA:"","tax-type":t.isEnabled("taxType")&&t.taxType?t.taxType.name:"","pec-email":t.isEnabled("pecEmail")&&t.pecEmail?t.pecEmail:"","pec-code":t.isEnabled("pecCode")&&t.pecCode?t.pecCode:"","official-farm-id":t.isEnabled("officialFarmId")&&t.officialFarmId?t.officialFarmId:"","person-type-value":t.isEnabled("personType")?t.personTypeValue:null,"tealium-value":t.tealiumValue,subscriptions:t.subscriptions},on:{"popup-edit":function(e){return t.editTax()}}}
1)],1)]):t._e(),t._v(" "),t.isDataRetrieved?i("div",[i("Popup",{ref:"popupFormPersonalAddress",attrs:{id:"personalAddress","form-id":t.formId,headline:t.setHeadline,text:t.translations.account.info.personalAddress,open:t.showPersonalAddressPopup,"form-definition":t.formDefinition,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,"email-pattern":t.emailPattern,"phone-pattern":t.phonePattern,"fax-pattern":t.faxPattern,"eircode-pattern":t.eircodePattern,"number-pattern":t.numberPattern,"date-of-birth-pattern":t.dateOfBirthPattern,company:t.company,salutation:t.salutation,title:t.title,"first-name":t.firstName,"last-name":t.lastName,street:t.street,"street-number":t.streetNumber,location:t.location,eircode:t.eircode,email:t.email,mobile:t.mobile,phone:t.phone,fax:t.fax,"ot-email-consent":t.otEmailConsent,"ot-mobile-consent":t.otMobileConsent,"date-of-birth":t.dateOfBirth,"is-form-loaded":t.isFormLoaded,"show-personal-data":!0,"disable-company":t.companyIsDisabled,"enable-submit":t.enableSubmit,"tealium-value":t.tealiumValue},on:{close:function(e){return t.closePopup(e.state,e.msg)}}}),t._v(" "),i("Popup",{ref:"popupFormPostalAddress",attrs:{id:"postalAddress","form-id":t.formId,headline:t.translations.account.headline.postalAddress,text:t.translations.account.info.postalAddress,open:t.showPostalAddressPopup,"form-definition":t.formDefinition,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,"eircode-pattern":t.eircodePattern,"contact-street":t.contactStreet,"contact-street-number":t.contactStreetNumber,"contact-location":t.contactLocation,"contact-eircode":t.contactEircode,"is-form-loaded":t.isFormLoaded,"show-postal-data":!0,"enable-submit":t.enableSubmit,"tealium-value":t.tealiumValue},on:{close:function(e){return t.closePopup(e.state,e.msg)}}}),t._v(" "),i("Popup",{ref:"popupFormTax",attrs:{id:"tax","form-id":t.formId,headline:t.translations.account.headline.tax,open:t.showTaxPopup,"form-definition":t.formDefinition,"email-pattern":t.emailPattern,"phone-pattern":t.phonePattern,"fax-pattern":t.faxPattern,"eircode-pattern":t.eircodePattern,"number-pattern":t.numberPattern,"date-of-birth-pattern":t.dateOfBirthPattern,"tax-number":t.taxNumber,"partita-i-v-a":t.partitaIVA,"tax-type":t.taxType,"pec-email":t.pecEmail,"pec-code":t.pecCode,"official-farm-id":t.officialFarmId,"is-form-loaded":t.isFormLoaded,"show-tax-data":!0,"enable-submit":t.enableSubmit,"tealium-value":t.tealiumValue},on:{close:function(e){return t.closePopup(e.state,e.msg)}}}),t._v(" "),i("PopupInfo",{attrs:{open:"success"===t.state?t.showSuccessPopup:t.showErrorPopup,headline:t.setHeadlinePopup,text:"success"===t.state?t.successMsg||t.translations.submit.service.save:t.errorMsg||t.translations.submit.service.error,"text-button":t.translations.ok,icon:"success"===t.state?"info":"cancel-circle"},on:{close:function(e){return t.closePopupInfo()}}})],1):t._e(),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.phonePattern}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Ia,"data-v-8d717918",null).exports,Va=i("OCip"),Aa={name:"AdditionalAddressesField",components:{TemplateField:X.a,TextField:U.a,LocationField:ce},extends:tt.a,props:{value:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){}},isValid:{type:Boolean,default:!0},isNotValidMessage:{type:String,default:""},isValidMessage:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},addAddressLabel:{type:String,default:""},showOfficialFarmId:{type:Boolean,default:!1}},data:function(){return{entries:[],loadingError:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},fieldAdditionalAddressesTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form||void 0===window.snTranslations.form.field||void 0===window.snTranslations.form.field.additionalAddresses)&&window.snTranslations.form.field.additionalAddresses}},watch:{value:function(){this.entries=this.value,this.getLocationForAllEntries()}
1,entries:{handler:function(){this.handleUpdate(this.entries)},deep:!0}},mounted:function(){this.entries=this.value,this.getLocationForAllEntries()},methods:{handleUpdate:function(t){this.doOnChangeValidation&&this.validate(),this.$emit("update:value",t)},addEntry:function(){this.disabled||(this.showOfficialFarmId?this.entries.push({street:"",locationValue:{},officialFarmId:""}):this.entries.push({street:"",locationValue:{}}))},deleteEntry:function(t){this.disabled||this.entries.splice(t,1)},getLocationForAllEntries:function(){var t=this;this.entries.forEach((function(e){if(e.zipcode||e.city){var i=e.zipcode,a=e.city;t.$delete(e,"zipcode"),t.$delete(e,"city"),t.getLocation(i,a,e)}}))},getLocation:function(t,e,i){var a=this;this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){a.$set(i,"locationValue",t)})).catch((function(){a.loadingError=!0}))},validate:function(){if((!this.disabled||this.forceValidation)&&(this.valid=!this.required||this.entries&&this.entries.length>0,this.errorMessage=this.valid?this.isValidMessage:this.commonTranslations.requiredField,this.isValid||(this.valid=!1,this.errorMessage=this.isNotValidMessage),this.$refs&&this.$refs.templateFieldRef)){var t=this.$refs.templateFieldRef.$children.filter((function(t){return ct.includes(t.$options._componentTag)}));t.forEach((function(t){return t.validate()})),t.find((function(t){return!t.valid}))&&(this.valid=!1)}}}};var Da=function(t){i("iwgO")},Ma=Object(l.a)(Aa,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{ref:"templateFieldRef",attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,disabled:t.disabled,"label-class-name":t.labelClassName}},[t.loadingError?[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])]:t._e(),t._v(" "),i("div",{staticClass:"additional-addresses-field"},[t._l(t.entries,(function(e,a){return i("div",{key:a,staticClass:"entry"},[i("div",[t._v(t._s(a+2)+" "+t._s(t.fieldAdditionalAddressesTranslations.address)+"\n        "),t.disabled?t._e():i("div",{staticClass:"delete",on:{click:function(e){return t.deleteEntry(a)}}})]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-4"},[i("LocationField",{attrs:{value:e.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:!0,"do-on-change-validation":!0,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_zipcode",disabled:t.disabled},on:{"update:value":function(t){return e.locationValue=t}}})],1),t._v(" "),i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:e.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:!0,"do-on-change-validation":!0,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_input_city",disabled:t.disabled},on:{"update:value":function(t){return e.locationValue=t}}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:e.street,name:"street","label-name":t.translations.label.streetNo,tooltip:t.translations.tooltip.additionalAddressStreet,required:!0,"do-on-change-validation":!0,cucumber:"form_input_street",disabled:t.disabled},on:{"update:value":function(i){return t.$set(e,"street",i)}}})],1)]),t._v(" "),t.showOfficialFarmId?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:e.officialFarmId,name:"officialFarmId","label-name":t.translations.label.officialFarmId,required:!0,"do-on-change-validation":!0,cucumber:"form_input_officialFarmId",disabled:t.disabled},on:{"update:value":function(i){return t.$set(e,"officialFarmId",i)}}})],1)]):t._e()])})),t._v(" "),t.disabled?t._e():i("label",[t._v(t._s(t.fieldAdditionalAddressesTranslations.furtherAddresses))]),t._v(" "),t.disabled?t._e():i("div",{staticClass:"add",on:{click:function(e){return t.addEntry()}}},[i("div",{staticClass:"add-icon"}),t._v(" "),i("div",{staticClass:"add-text"},[t._v(t._s(t.addAddressLabel?t.addAddressLabel:t.fieldAdditionalAddressesTranslations.addAddress))])])],2)],2)}
1),[],!1,Da,"data-v-0ef0e00c",null).exports;function Ra(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function $a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ra(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ra(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Na={name:"LegalEntitesSection",components:{PopupComp:o.a,CheckboxField:at,AdditionalAddressesField:Ma,CropsField:Ht,RadioField:wa,TextField:U.a,TextFieldMulti:It,SelectField:Et.a,SelectMultiField:Vt.a,SelectMultiTagListField:$t,ProductsWithFilterField:ne,LocationField:ce,ChecklistField:pe,Loader:j.a,BPopover:Va.a,DebugMode:b.a},props:{formId:{type:String,default:""},showZipcode:{type:Boolean,default:!0},showRegion1:{type:Boolean,default:!1},showRegion2:{type:Boolean,default:!1},formDefinition:{type:Array,default:function(){return[]}},formData:{type:Object,default:function(){}},isFormDefinitionRetrieved:{type:Boolean,default:!1},isDataRetrieved:{type:Boolean,default:!1},hasLoadingError:{type:Boolean,default:!1},tealiumValue:{type:String,default:""},subscriptions:{type:Array,default:function(){return[]}}},data:function(){return{serviceFormDefinition:[],isServiceFormDefinitionRetrieved:!1,isLocationRetrieved:!0,loadingError:!1,legalEntites:[],showForm:!1,editIndex:-1,parentPlayer:!1,companyValue:"",locationValue:{},streetValue:"",streetNumberValue:"",shopProfileValue:{},officialFarmIdValue:"",uniqueViewCodeValue:"",personTypeValue:{},personTypeDefaultSet:!1,taxNumberValue:"",consentProductFlow:!1,consentLegalEntity:!1,additionalAddressesValue:[],loaderVisible:!1,errorMsg:"",serviceFormId:""}},computed:$a($a({},Object(m.c)({billingAddressLocked:function(t){return t.forms.billingAddressLocked}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},config:function(){return void 0!==window.snConfig&&window.snConfig},enableSalesForce:function(){return _e.a.useSalesForce()},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved&&this.isFormDefinitionRetrieved&&this.isServiceFormDefinitionRetrieved},isLoaderVisible:function(){return(!this.isFormDataCompletelyRetrieved||this.loaderVisible||!this.isLocationRetrieved)&&!this.loadingError},addLegalEntityTranslation:function(){var t=this.translations.addLegalEntity;return this.legalEntites&&this.legalEntites.length>0&&(t=this.translations.addFurtherLegalEntity),t},isLoyaltyVictoriaSubscribed:function(){return!!this.subscriptions&&!!this.subscriptions.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.id}))},isLoyaltyBenefitoSubscribed:function(){return!!this.subscriptions&&!!this.subscriptions.find((function(t){return"ssp-customer-loyalty-benefito-service"===t.id}))},shopProfileOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.shopProfile&&window.sspSelectFieldConfig.shopProfile.options.length?window.sspSelectFieldConfig.shopProfile.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},personTypeOptions:function(){if(void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.personType&&window.sspSelectFieldConfig.personType.options.length){var t=window.sspSelectFieldConfig.personType.options.slice().sort((function(t,e){return e.ordering-t.ordering}));if(this.isLoyaltyVictoriaSubscribed){var e=t.find((function(t){return"individualFarmer"===t.code}));e&&t.splice(t.indexOf(e),1)}return t}return[]},taxNumberFieldLabel:function(){var t=this.translations.label.taxNumber;return this.personTypeValue&&this.personTypeValue.code&&(t=this.translations.label.nipTaxNumber,"individualFarmer"===this.personTypeValue.code&&(t=this.translations.label.peselTaxNumber)),t},taxNumberFieldValidationFunc:function(){var t=null;return this.personTypeValue&&this.personTypeValue.code&&(t=this.validateNIPTaxNumber,"individualFarmer"===this.personTypeValue.code&&(t=this.validatePESELTaxNumber)),t},isPersonTypeNaturalPerson:function(){var t=!1;return this.personTypeValue&&this.personTypeValue.code&&"naturalPerson"===this.personTypeValue.code&&(t=!0),t},showAdditionalAddressesDependedOnFarmType:function(){return!0},isFarmTypeIndividualFarm:function(){return!1},companyFieldValidationRegExp:function(){var t=null;return this.translations.companyValidationRegExp&&""!==this.translations.companyValidationRegExp&&(t=new RegExp(this.translations.companyValidationRegExp,"i")),t}}),watch:{isFormDataCompletelyRetrieved:function(){this.init()},formData:{handler:function(t){Object.keys(t).length&&this.handleData()}},hasLoadingError:{handler:function(t,e){t!==e&&(this.loadingError=this.hasLoadingError)}},parentPlayer:function(){this.parentPlayer&&(""===this.companyValue&&this.formData&&this.formData.company&&(this.companyValue=this.formData.company),0===Object.keys(this.locationValue).length&&this.formData&&(this.formData.zipcode||this.formData.city)&&this.getLocation(this.formData.zipcode,this.formData.city),""===this.streetValue&&this.formData&&this.formData.street&&(this.streetValue=this.formData.street))}},mounted:function(){this.fetchServiceFormDefiniction()},methods:{init:function(){this.handleData(),this.isFarmTypeIndividualFarm&&(this.legalEntites&&this.legalEntites.length>0?this.editEntry(0):this.addEntry())},fetchServiceFormDefiniction:function(){var t=this;this.serviceFormId="ssp-customer-loyalty-benefito-service",this.isLoyaltyVictoriaSubscribed&&(this.serviceFormId="ssp-customer-loyalty-victoria-service"),this.isServiceFormDefinitionRetrieved=!1,this.$store.dispatch("forms/fetchFormDefiniction",{formId:this.serviceFormId}).then((function(e){t.serviceFormDefinition=e,t.isServiceFormDefinitionRetrieved=!0,t.serviceFormDefinition.length||(t.loadingError=!0)})).catch((function(){t.loadingError=!0}))},showField:function(t){return(!_e.a.useSalesForce()||"streetNumber"!==t&&"legalEntites.streetNumber"!==t)&&(!(!this.serviceFormDefinition||!this.serviceFormDefinition.find((function(e){return e.name===t})))&&this.serviceFormDefinition.find((function(e){return e.name===t})).display)},isRequired:function(t){return!(!this.serviceFormDefinition||!this.serviceFormDefinition.find((function(e){return e.name===t})))&&this.serviceFormDefinition.find((function(e){return e.name===t})).mandatory},handleData:function(){this.legalEntites=[],this.formData.legalEntites&&(this.legalEntites=JSON.parse(JSON.stringify(this.formData.legalEntites)),this.legalEntites&&this.legalEntites.forEac
1h((function(t){t.loaded=!0})))},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""},validateNIPTaxNumber:function(t){if(!/^\d+$/.test(t))return!1;var e=[6,5,7,2,3,4,5,6,7],i=t;if(10===(i=i.replace(/[\s-]/g,"")).length&&parseInt(i,10)>0){for(var a=0,s=0;s<9;s+=1)a+=i[s]*e[s];return a%11===Number(i[9])}return!1},validatePESELTaxNumber:function(t){if(!/^\d+$/.test(t))return!1;if(["00000000000","11111111111","22222222222","33333333333","44444444444","55555555555","66666666666","77777777777","88888888888","99999999999"].includes(t))return!1;var e=t;if(null===e||11!==e.length)return!1;for(var i=e.split(""),a=0,s=0;s<i.length-1;s+=1)a+=+i[s]*this.validatePESELTaxNumberGetMultiplier(s+1);var n=a%10,o=Number(e.substr(e.length-1));return 0===n&&0===o||o===10-n},validatePESELTaxNumberGetMultiplier:function(t){switch(t%4){case 1:return 1;case 2:return 3;case 3:return 7;case 0:return 9}throw"Something went wrong with the index calculation"},getLegalEntityListName:function(t,e){var i="";if(t){var a=e+1;a<10&&(i+="0"),i+=a,i+=" ",t.company&&(i+=t.company),t.company&&t.city&&(i+=", "),t.city&&(i+=t.city)}return i},loadEntityData:function(t){var e=t;this.parentPlayer=e.parentPlayer&&("true"===e.parentPlayer||!0===e.parentPlayer),this.companyValue=e.company||"",this.locationValue={},this.prefilledZip=v.a.prefillLocation(e,"zipcode"),this.prefilledCity=v.a.prefillLocation(e,"city"),this.prefilledZip||this.prefilledCity?this.getLocation(this.prefilledZip,this.prefilledCity):this.isLocationRetrieved=!0,this.streetValue=e.street||"",this.streetNumberValue=e.streetNumber||"",this.shopProfileValue=e.shopProfile&&v.a.retrieveValue(this.shopProfileOptions,e.shopProfile,"code",{}),this.officialFarmIdValue=e.officialFarmId||"",this.uniqueViewCodeValue=e.uniqueViewCode||"",this.personTypeValue=e.personType&&v.a.retrieveValue(this.personTypeOptions,e.personType,"code",{}),this.setPersonTypeDefaultValue(),this.taxNumberValue=e.taxNumber||"",this.consentProductFlow=e.consentProductFlow&&("true"===e.consentProductFlow||!0===e.consentProductFlow),this.consentLegalEntity=e.consentLegalEntity&&("true"===e.consentLegalEntity||!0===e.consentLegalEntity),e.additionalAddresses&&e.additionalAddresses.length>0?this.additionalAddressesValue=e.additionalAddresses:this.additionalAddressesValue=[]},setPersonTypeDefaultValue:function(){if(this.personTypeDefaultSet=!1,this.showField("legalEntites.personType")&&(void 0===this.personTypeValue||0===Object.keys(this.personTypeValue).length)){var t=this.personTypeOptions.find((function(t){return"individualFarmer"===t.code}));(t||(t=this.personTypeOptions.find((function(t){return"legalPerson"===t.code}))))&&(this.personTypeValue=t,this.personTypeDefaultSet=!0)}},getLocation:function(t,e){var i=this;this.isLocationRetrieved=!1,this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){i.locationValue=t,i.isLocationRetrieved=!0})).catch((function(){i.loadingError=!0}))},deleteEntry:function(t){this.legalEntites.splice(t,1),this.submit()},editEntry:function(t){this.editIndex=t;var e=this.legalEntites[this.editIndex];this.loadEntityData(e),this.showForm=!0},addEntry:function(){var t=this;this.editIndex=-1,this.parentPlayer=!1,this.companyValue="",this.locationValue={},this.streetValue="",this.streetNumberValue="",this.shopProfileValue={},this.officialFarmIdValue="",this.uniqueViewCodeValue="",this.personTypeValue={},this.setPersonTypeDefaultValue(),this.taxNumberValue="",this.consentProductFlow=!1,this.consentLegalEntity=!1,this.additionalAddressesValue=[],0===this.legalEntites.length&&this.$nextTick((function(){t.parentPlayer=!0})),this.showForm=!0},cancelForm:function(){this.showForm=!1},saveLegalEntity:function(){if(this.validateEntity()){var t=this.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),e=ut.a.buildFormContent(t,null);delete e.country,e.parentPlayer&&this.legalEntites.forEach((function(t){t.parentPlayer=!1})),-1===this.editIndex?this.legalEntites.push(e):(this.legalEntites[this.editIndex].loaded&&(e.loaded=this.legalEntites[this.editIndex].loaded),this.legalEntites[this.editIndex].accountId&&(e.accountId=this.legalEntites[this.editIndex].accountId),this.legalEntites[this.editIndex]=e),this.submit()}},validateEntity:function(){var t=!0,e=this.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),i=!1,a=null;return e.forEach((function(t){var e=t;e.forceValidation=!0,e.validate(),e.forceValidation=!1,e.valid||(i=!0,null===a&&(a=e))})),i&&(t=!1,this.scrollToFirstError(a)),t},scrollToFirstError:function(t){if(t)if("PopupComp"===this.$parent.$options.name){var e=this.$parent.getModalWrapperRef(),i=this.$parent.getModalRef();if(e&&i){var a=-1*(i.getBoundingClientRect().top-t.$el.getBoundingClientRect().top);e.scrollTo(0,a)}}else{var s=window.pageYOffset+t.$el.getBoundingClientRect().top-this.stickyHeaderHeight;window.scrollTo(0,s)}},submit:function(){var t=this;this.loaderVisible=!0;var e=this.legalEntites,i={},a=ut.a.buildFormContent([],this.config.country);a.legalEntites=e,i[this.formId]=a,this.$store.dispatch("forms/submitForms",{content:i}).then((function(){t.$refs.popupSuccessRef.open(),t.loaderVisible=!1})).catch((function(e){t.loadingError=!0;var i=e.response.data;t.errorMsg="",i&&"There are already contacts with the same mobile phone. Use an existing record 
1instead."===i.error&&(t.errorMsg=t.translations.error.registration.phone),t.$refs.popupErrorRef.open()}))},closeSuccessErrorPopup:function(){window.location.reload()}}};var ja=function(t){i("Kd3F")},za=Object(l.a)(Na,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-data-wrapper"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.isFormDataCompletelyRetrieved&&!t.showForm?i("div",{staticClass:"row justify-content-center"},[i("div",{staticClass:"col-12 col-md-10"},[i("h2",[t._v("\n        "+t._s(t.translations.legalEntitiesHeadline)+"\n        "),i("DebugMode",{attrs:{"form-id":t.serviceFormId}})],1),t._v(" "),i("div",{staticClass:"entities-list"},[i("ul",[t._l(t.legalEntites,(function(e,a){return i("li",{key:a,staticClass:"has-icon",class:[!0!==e.loaded?"has-delete":"",!e.consentLegalEntity||"true"!==e.consentLegalEntity&&!0!==e.consentLegalEntity?"text-secondary":""],on:{click:function(e){return t.editEntry(a)}}},[i("div",{staticClass:"entry-icon",class:[!e.parentPlayer||"true"!==e.parentPlayer&&!0!==e.parentPlayer?"":"icon-parent-player",!e.consentLegalEntity||"true"!==e.consentLegalEntity&&!0!==e.consentLegalEntity?"":"icon-check"],attrs:{id:"legalEntity-icon-"+a}}),t._v("\n            "+t._s(t.getLegalEntityListName(e,a))+"\n            "),t._v(" "),!0!==e.loaded?i("div",{staticClass:"entry-delete",on:{click:function(e){return e.stopPropagation(),t.deleteEntry(a)}}}):t._e(),t._v(" "),!1==("true"===e.consentLegalEntity||!0===e.consentLegalEntity)&&t.translations.legalEntityInactive?i("b-popover",{attrs:{target:"legalEntity-icon-"+a,placement:"top",triggers:"hover"}},[i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.translations.legalEntityInactive)}})]):t._e()],1)})),t._v(" "),t.isLoyaltyVictoriaSubscribed?t._e():i("li",{staticClass:"has-icon",on:{click:function(e){return t.addEntry()}}},[i("div",{staticClass:"entry-icon icon-plus"}),t._v("\n            "+t._s(t.addLegalEntityTranslation)+"\n          ")])],2)])])]):t._e(),t._v(" "),t.isFormDataCompletelyRetrieved&&t.showForm?i("div",{staticClass:"row justify-content-center form-wrapper"},[i("div",{staticClass:"col-12 col-md-10"},[t.showField("legalEntites.parentPlayer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.parentPlayer,name:"parentPlayer","checkbox-label":t.translations.label.parentPlayer,"do-on-change-validation":!0,required:!1,cucumber:"form_checkbox_parentPlayer"},on:{"update:value":function(e){t.parentPlayer=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("legalEntites.company"),"do-on-change-validation":!0,"custom-validation-reg-exp":t.companyFieldValidationRegExp,"custom-error-message":t.translations.companyValidationRegExpMessage,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.zipcode")||t.showField("legalEntites.city")?i("div",{staticClass:"row"},[t.showField("legalEntites.zipcode")?i("div",{staticClass:"col-12 col-sm-4"},[i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("legalEntites.zipcode"),"do-on-change-validation":!0,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e(),t._v(" "),t.showField("legalEntites.city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("legalEntites.city"),"do-on-change-validation":!0,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("legalEntites.street")||t.showField("legalEntites.streetNumber")?i("div",{staticClass:"row"},[t.showField("legalEntites.street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("legalEntites.streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("legalEntites.street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.legalEntityStreet,disabled:t.billingAddressLocked,"do-on-change-validation":!0,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("legalEntites.streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("legalEntites.streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":!0,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("legalEntites.shopProfile")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.shopProfileValue,name:"shopProfile","label-name":t.getSelectFieldLabel("shopProfile"),placeholder:t.translations.singleSelect,options:t.shopProfileOptions,required:t.isRequired("legalEntites.shopProfile"),"do-on-change-validation":!0,cucumber:"form_select_shopProfile"},on:{"update:value":function(e){t.shopProfileValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.officialFarmId")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.officialFarmIdValue,name:"officialFarmId","label-name":t.translations.label.officialFarmId,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("legalEntites.officialFarmId"),cucumber:"form_input_officialFarmId"},on:{"update:value":function(e){t.officialFarmIdValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.uniqueViewCode")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.uniqueViewCodeValue,name:"uniqueViewCode","label-name":t.translations.label.uniqueViewCode,"
1input-type":"text","do-on-change-validation":!0,required:t.isRequired("legalEntites.uniqueViewCode"),disabled:-1!=t.editIndex,cucumber:"form_input_uniqueViewCode"},on:{"update:value":function(e){t.uniqueViewCodeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.personType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("RadioField",{attrs:{value:t.personTypeValue,name:"personType",options:t.personTypeOptions,required:t.isRequired("legalEntites.personType"),"do-on-change-validation":!0,cucumber:"form_select_personType",disabled:-1!=t.editIndex},on:{"update:value":[function(e){t.personTypeValue=e},function(e){return t.personTypeValue=e}]}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.taxNumberFieldLabel,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("legalEntites.taxNumber"),cucumber:"form_input_tax","custom-validation-func":t.taxNumberFieldValidationFunc,"custom-error-message":t.translations.invalidFormat,disabled:-1!=t.editIndex},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.consentProductFlow")&&t.isPersonTypeNaturalPerson?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.consentProductFlow,name:"consentProductFlow","checkbox-label":t.translations.label.consentProductFlow,"do-on-change-validation":!0,required:t.isRequired("legalEntites.consentProductFlow"),cucumber:"form_checkbox_consentProductFlow"},on:{"update:value":function(e){t.consentProductFlow=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.additionalAddresses")&&t.showAdditionalAddressesDependedOnFarmType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("AdditionalAddressesField",{attrs:{value:t.additionalAddressesValue,name:"additionalAddresses","label-name":t.translations.label.additionalAddresses,"add-address-label":t.translations.field.additionalAddresses.addAddress,required:t.isRequired("legalEntites.additionalAddresses"),"do-on-change-validation":!0,"show-zipcode":t.showZipcode,"show-region1":t.showRegion1,"show-region2":t.showRegion2,cucumber:"form_select_additionalAddresses",tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"label-class-name":"field-additional-addresses-label"},on:{"update:value":[function(e){t.additionalAddressesValue=e},function(e){return t.additionalAddressesValue=e}]}})],1)]):t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.consentLegalEntity,name:"consentLegalEntity","checkbox-label":t.translations.label.consentLegalEntity,"do-on-change-validation":!0,required:!1,cucumber:"form_checkbox_consentLegalEntity"},on:{"update:value":function(e){t.consentLegalEntity=e}}})],1)])])]):t._e(),t._v(" "),t.isFarmTypeIndividualFarm?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.saveForm)},on:{click:function(e){return t.saveLegalEntity()}}})])]):t.showForm?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline back-button mr-md-3",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.cancel)},on:{click:function(e){return t.cancelForm()}}}),t._v(" "),i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.saveLegalEntity)},on:{click:function(e){return t.saveLegalEntity()}}})])]):t._e(),t._v(" "),i("PopupComp",{ref:"popupSuccessRef",on:{close:function(e){return t.closeSuccessErrorPopup()}}},[t.translations.legalEntitiesHeadline?i("h2",{domProps:{innerHTML:t._s(t.translations.legalEntitiesHeadline)}}):t._e(),t._v(" "),t.translations.submit.service.save?i("div",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.translations.submit.service.save)}}):t._e(),t._v(" "),t.translations.ok?i("button",{staticClass:"ssp-button m-auto",domProps:{innerHTML:t._s(t.translations.ok)},on:{click:function(e){return t.closeSuccessErrorPopup()}}}):t._e()]),t._v(" "),i("PopupComp",{ref:"popupErrorRef",on:{close:function(e){return t.closeSuccessErrorPopup()}}},[t.translations.legalEntitiesHeadline?i("h2",{domProps:{innerHTML:t._s(t.translations.legalEntitiesHeadline)}}):t._e(),t._v(" "),t.errorMsg||t.translations.submit.service.error?i("div",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.errorMsg||t.translations.submit.service.error)}}):t._e(),t._v(" "),t.translations.ok?i("button",{staticClass:"ssp-button m-auto",domProps:{innerHTML:t._s(t.translations.ok)},on:{click:function(e){return t.closeSuccessErrorPopup()}}}):t._e()]),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,ja,"data-v-1c19b966",null).exports,Ba={name:"EmptySection",props:{icon:{type:String,default:""},headline:{type:String,default:""},text:{type:String,default:""}}};var qa=function(t){i("wsbR")},Ua={name:"OccupationSection",components:{DataSection:Le,DataSectionEntry:Ve,EmptySection:Object(l.a)(Ba,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-box-content empty",on:{click:function(e){return t.$emit("click")}}},[t.icon?i("div",[i("i",{staticClass:"icon mb-3",class:"icon-"+t.icon,attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),i("div",{staticClass:"headline text-center mb-4"},[t.headline?i("h2",[t._v(t._s(t.headline))]):t._e()]),t._v(" "),t.text?i("div",{staticClass:"text"},[i("i",{staticClass:"icon icon-info mr-1",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",[t._v(t._s(t.text))])]):t._e()])}),[],!1,qa,"data-v-595eb9ec",null).exports,DebugMode:b.a},props:{formId:{type:String,default:""},headline:{type:String,default:""},occupationType:{type:String,default:""},occupation:{type:String,default:""},jobTitle:{type:String,default:""},farmSize:{type:String,default:""},arableAreaSize:{type:String,default:""},organicAreaSize:{type:String,default:""},crops:{type:Array,default:function(){return[]}},areaPerCrop:{type:Array,default:function(){return[]}},disableOccupation:{type:Boolean,default:!1},tealiumValue:{type:String,default:""}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},occupationExists:function(){return this.occupation||this.jobTitle},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},realCrops:function(){var t=this,e=[];return this.crops&&this.crops.length>0&&(e=this.crops.filter((function(e){return t.snConfigAllSSPCrops.find((function(t){return t.amigaCode===e.id}))}))),e},hasAreaPerCrop:function(){var t=this,e=!1;if(this.realCrops&&this.realCrops.length>0&&this.areaPerCrop&&this.areaPerCrop.length>0){var i=this.realCrops.filter((function(e){return t.getAreaPerCropByCrop(e.id)}
1));i&&i.length>0&&(e=!0)}return e}},methods:{openEditPopup:function(){this.$emit("popup-edit")},getAreaPerCropByCrop:function(t){var e=null;return this.areaPerCrop&&this.areaPerCrop.length>0&&(e=this.areaPerCrop.find((function(e){return e.id===t}))),e}}};var Ha=function(t){i("ftm9")};function Ga(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Wa(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ga(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ga(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Za={name:"OccupationInformationSectionV2",components:{OccupationSection:Object(l.a)(Ua,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"ssp-box-wrapper"},[t.headline?i("h2",[t._v("\n    "+t._s(t.headline)+"\n    "),i("DebugMode",{attrs:{"form-id":t.formId}})],1):t._e(),t._v(" "),t.occupationExists?i("DataSection",{attrs:{"enable-edit":!0,"tealium-value":t.tealiumValue},on:{edit:function(e){return t.openEditPopup()}}},[t.occupationType?i("DataSectionEntry",{attrs:{"has-data":!!t.occupationType,headline:t.translations.label.occupationType}},[i("div",[i("p",{class:{disabled:t.disableOccupation}},[t._v(t._s(t.occupationType))])])]):t._e(),t._v(" "),t.occupation?i("DataSectionEntry",{attrs:{"has-data":!!t.occupation,headline:t.translations.label.occupation}},[i("div",[i("p",{class:{disabled:t.disableOccupation}},[t._v(t._s(t.occupation))])])]):t._e(),t._v(" "),t.jobTitle?i("DataSectionEntry",{attrs:{headline:t.translations.label.jobTitle,"has-data":!!t.jobTitle}},[i("div",[i("p",[t._v(t._s(t.jobTitle))])])]):t._e(),t._v(" "),t.occupation&&t.farmSize?i("DataSectionEntry",{attrs:{headline:t.translations.label.farmSize,"has-data":!!t.farmSize}},[i("div",[i("p",[t._v(t._s(t.farmSize))])])]):t._e(),t._v(" "),t.occupation&&t.arableAreaSize?i("DataSectionEntry",{attrs:{headline:t.translations.label.arableAreaSize,"has-data":!!t.arableAreaSize}},[i("div",[i("p",[t._v(t._s(t.arableAreaSize))])])]):t._e(),t._v(" "),t.occupation&&t.organicAreaSize?i("DataSectionEntry",{attrs:{headline:t.translations.label.organicAreaSize,"has-data":!!t.organicAreaSize}},[i("div",[i("p",[t._v(t._s(t.organicAreaSize))])])]):t._e(),t._v(" "),t.realCrops&&t.realCrops.length?i("DataSectionEntry",{attrs:{"has-data":!0}},[t.realCrops&&t.realCrops.length?i("div",[i("table",{staticClass:"w-100"},[i("tr",[i("td",{staticClass:"w-50"},[i("h4",{domProps:{innerHTML:t._s(t.translations.label.crops)}})]),t._v(" "),t.occupation&&t.hasAreaPerCrop?i("td",{staticClass:"w-50"},[i("h4",{domProps:{innerHTML:t._s(t.translations.label.cropAgriculturalAreaPerCrop)}})]):t._e()]),t._v(" "),t._l(t.realCrops,(function(e,a){return[i("tr",{key:"crop_"+a+"_"+e.id},[i("td",[i("p",[i("span",[t._v(t._s(e.name))])])]),t._v(" "),t.occupation&&t.hasAreaPerCrop?i("td",[t.getAreaPerCropByCrop(e.id)?[i("p",[i("span",[t._v(t._s(t.getAreaPerCropByCrop(e.id).value)+" "+t._s(t.translations.label.ha))])])]:t._e()],2):t._e()])]}))],2)]):t._e()]):t._e()],1):t._e(),t._v(" "),t.occupationExists?t._e():i("EmptySection",{attrs:{icon:"plus",headline:t.translations.account.occupation.empty.label,text:t.translations.account.occupation.empty.info},on:{click:function(e){return t.openEditPopup()}}})],1)}),[],!1,Ha,"data-v-4b4589f7",null).exports,Popup:Ze,PopupInfo:W},props:{formId:{type:String,default:""},numberPattern:{type:RegExp,default:function(){}},enableSubmit:{type:Boolean,default:!0},formDefinition:{type:Array,default:function(){return[]}},formData:{type:Object,default:function(){}},isFormDefinitionRetrieved:{type:Boolean,default:!1},isDataRetrieved:{type:Boolean,default:!1},hasLoadingError:{type:Boolean,default:!1},tealiumValue:{type:String,default:""}},data:function(){return this.initFormData={},{occupation:{},occupationType:{},occupationIsDisabled:!1,cropListByOccupation:[],farmSize:"",arableAreaSize:"",organicAreaSize:"",crops:[],cropAgriculturalArea:[],cropListByArea:[],prefilledCrops:[],prefilledAreaPerCrop:[],errorFarmSize:!1,cropListCurrent:[],jobTitle:{},isEnabledCrops:!1,isRequiredCrops:!1,isEnabledFarmSize:!1,isEnabledArableAreaSize:!1,loadingError:!1,showPopup:!1,showSuccessPopup:!1,showErrorPopup:!1,state:""}}
1,computed:Wa(Wa({},Object(m.c)({serviceSubscriptions:function(t){return t.forms.serviceSubscriptions}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},valid:function(){var t=!0;return this.$refs&&this.$refs.popupFormOccupation&&(t=!this.$refs.popupFormOccupation.hasInvalidFields),!!t},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},jobTitleOptions:function(){return!(void 0===window.sspSelectFieldConfig||void 0===window.sspSelectFieldConfig.jobTitle||!window.sspSelectFieldConfig.jobTitle.options.length)&&window.sspSelectFieldConfig.jobTitle.options.slice().sort((function(t,e){return e.ordering-t.ordering}))},occupationOptions:function(){return void 0!==window.occupationConfig&&window.occupationConfig.slice().sort((function(t,e){return e.ordering-t.ordering}))},occupationTypeOptions:function(){return void 0!==window.occupationTypeConfig?window.occupationTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},isFormLoaded:function(){return this.isDataRetrieved&&this.isFormDefinitionRetrieved},isFormDataCompletelyRetrieved:function(){return this.isDataRetrieved&&(this.isLocationRetrieved||this.isContactLocationRetrieved)&&this.isFormDefinitionRetrieved},isLoyaltySubscribed:function(){return!!this.serviceSubscriptions&&!!this.serviceSubscriptions.find((function(t){return("ssp-customer-loyalty-service"===t.id||"ssp-customer-loyalty-victoria-service"===t.id||"ssp-customer-loyalty-benefito-service"===t.id)&&"OK"===t.status}))},isEnableAreaPerCrop:function(){return this.isEnabled("areaPerCrop")&&this.occupation&&Object.keys(this.occupation).length&&this.cropListByArea&&this.cropListByArea.length&&this.prefilledAreaPerCrop}}),watch:{occupation:{handler:function(t,e){v.a.areEqualShallow(t,e)&&e||(this.cropListByOccupation=this.snConfigAllSSPCrops?v.a.sortByText(this.snConfigAllSSPCrops):[],this.isEnabledCrops=this.occupation.showCrops,this.isRequiredCrops=this.occupation.mandatoryCrops,this.isEnabledFarmSize=this.occupation.showFarmSize,this.isEnabledArableAreaSize=this.occupation.showArableAreaSize,this.cropListByArea=[],e&&e.id&&(this.prefilledCrops=[],this.prefilledAreaPerCrop=[]))},deep:!1},prefilledCrops:{handler:function(t,e){var i=this;if(t&&e){var a=t.filter((function(t){return!e.includes(t)})),s=e.filter((function(e){return!t.includes(e)}));a.length&&a.forEach((function(t){i.cropListByArea.push({name:v.a.getCropByAmigaCode(t,i.snConfigAllSSPCrops),id:t,value:""})})),s.length&&(this.cropListByArea=this.cropListByArea.filter((function(t){return!s.includes(t.id)}))),this.errorFarmSize&&0===this.cropListByArea.length&&(this.errorFarmSize=!1)}},deep:!1},isFormDataCompletelyRetrieved:function(){var t=this;this.isFormDataCompletelyRetrieved&&setTimeout((function(){t.initFormData=xe.getInitFormData(t.$refs)}),0)}},created:function(){var t=this;window.addEventListener("beforeunload",(function(e){if(t.isFormDataCompletelyRetrieved&&xe.checkFormDataChanged(t.$refs,t.initFormData)){var i=e;i.preventDefault(),i.returnValue=""}}))},mounted:function(){this.handleData()},methods:{isEnabled:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).display},isRequired:function(t){return!(!this.formDefinition||!this.formDefinition.find((function(e){return e.name===t})))&&this.formDefinition.find((function(e){return e.name===t})).mandatory},handleData:function(){var t=this,e=this.formData;if(e.occupation&&(this.occupation=v.a.retrieveValue(this.occupationOptions,e.occupation,_e.a.useSalesForce()?"accountDetail":"bpType",[]),this.occupation&&this.occupation.bpType)){var i=this.occupationTypeOptions.find((function(e){return e.code===t.occupation.bpType}));i&&(this.occupationType=i)}this.occupation&&""!==this.occupation&&this.isLoyaltySubscribed&&(this.occupationIsDisabled=!0),e.jobTitle&&(this.jobTitle=v.a.retrieveValue(this.jobTitleOptions,e.jobTitle,"code",{})),this.farmSize=e.farmSize||"",this.arableAreaSize=e.arableAreaSize||"",this.organicAreaSize=e.organicAreaSize||"",this.prefilledCrops=v.a.prefillCrops(e.crops,this.cropListByOccupation),this.prefilledAreaPerCrop=e.areaPerCrop||[],this.farmSize=v.a.formatFloatNumbers(this.farmSize),this.arableAreaSize=v.a.formatFloatNumbers(this.arableAreaSize),this.organicAreaSize=v.a.formatFloatNumbers(this.organicAreaSize),this.prefilledAreaPerCrop&&this.prefilledAreaPerCrop.forEac
1h((function(t){t.value&&(t.value=v.a.formatFloatNumbers(t.value))}))},edit:function(){this.showPopup=!0},closePopup:function(t){switch(this.state=t,this.showPopup=!1,t){case"success":this.showSuccessPopup=!0;break;case"error":this.showErrorPopup=!0}},closePopupInfo:function(){switch(this.state){case"success":this.showSuccessPopup=!1;break;case"error":this.showErrorPopup=!1}this.state="",window.location.reload()}}};var Ja=function(t){i("klFR")},Ka=Object(l.a)(Za,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isDataRetrieved?i("div",{staticClass:"ssp-data-wrapper"},[i("div",{staticClass:"row justify-content-center"},[i("div",{staticClass:"col-12 col-md-10"},[i("OccupationSection",{attrs:{"form-id":t.formId,headline:t.translations.account.headline.occupationInformation,occupation:t.isEnabled("occupation")&&t.occupation?t.occupation.name:"","occupation-type":t.isEnabled("occupationType")&&t.occupationType?t.occupationType.name:"","job-title":t.isEnabled("jobTitle")&&t.jobTitle?t.jobTitle.name:"","farm-size":t.isEnabledFarmSize&&t.farmSize?t.farmSize:"","arable-area-size":t.isEnabledArableAreaSize&&t.arableAreaSize?t.arableAreaSize:"","organic-area-size":t.isEnabledArableAreaSize&&t.organicAreaSize?t.organicAreaSize:"",crops:t.isEnabledCrops&&t.cropListByArea&&t.cropListByArea.length?t.cropListByArea:[],"area-per-crop":t.isEnableAreaPerCrop?t.prefilledAreaPerCrop:[],"disable-occupation":t.occupationIsDisabled,"tealium-value":t.tealiumValue},on:{"popup-edit":function(e){return t.edit()}}})],1)]),t._v(" "),i("Popup",{ref:"popupFormOccupation",attrs:{id:"occupation","form-id":t.formId,headline:t.translations.account.headline.occupationInformation,text:t.translations.account.info.occupationInformation,open:t.showPopup,"form-definition":t.formDefinition,"number-pattern":t.numberPattern,occupation:t.occupation,"job-title":t.jobTitle,"farm-size":t.farmSize,"arable-area-size":t.arableAreaSize,"organic-area-size":t.organicAreaSize,crops:t.prefilledCrops,"area-per-crop":t.prefilledAreaPerCrop,"is-form-loaded":t.isFormLoaded,"show-postal-data":!1,"enable-submit":t.enableSubmit,"disable-occupation":t.occupationIsDisabled,"show-occupation-data":!0,"tealium-value":t.tealiumValue},on:{close:function(e){return t.closePopup(e.state,e.msg)}}}),t._v(" "),i("PopupInfo",{attrs:{open:"success"===t.state?t.showSuccessPopup:t.showErrorPopup,headline:t.translations.account.headline.occupationInformation,text:"success"===t.state?t.translations.submit.service.save:t.translations.submit.service.error,"text-button":t.translations.ok,icon:"success"===t.state?"info":"cancel-circle"},on:{close:function(e){return t.closePopupInfo()}}})],1):t._e()}),[],!1,Ja,"data-v-59891efc",null).exports,Ya={name:"CtaSection",props:{icon:{type:String,default:""},headline:{type:String,default:""},text:{type:String,default:""},tealiumValue:{type:String,default:""}}};var Qa=function(t){i("Fx2M")},Xa=Object(l.a)(Ya,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-box-content cta"},[t.icon?i("div",[i("i",{staticClass:"icon mb-3",class:"icon-"+t.icon,attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),i("div",{staticClass:"headline text-center mb-4"},[t.headline?i("h2",{domProps:{innerHTML:t._s(t.headline)}}):t._e()]),t._v(" "),t.text?i("div",{staticClass:"text mb-4"},[i("i",{staticClass:"icon icon-info mr-1",attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{domProps:{innerHTML:t._s(t.text)}})]):t._e(),t._v(" "),t.headline?i("div",{staticClass:"ssp-button mb-0",attrs:{"data-tealium-value":"ssp_"+t.tealiumValue+"_edit","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return t.$emit("click")}}},[i("span",{domProps:{innerHTML:t._s(t.headline)}})]):t._e()])}),[],!1,Qa,"data-v-1c9f93ce",null).exports;function ts(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function es(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?ts(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ts(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var is={name:"SurveyFormV2",components:{Loader:j.a,ChecklistField:pe,TextAreaField:sa.a,CheckboxField:at},props:{formId:{type:String,default:""},surveyList:{type:Array,default:function(){return[]}},jsonNewsCategory:{type:Array,default:function(){return[]}},showSurvey:{type:Boolean,default:!1},useComment:{type:Boolean,default:!1},action:{type:String,default:""},loyaltyFormId:{type:String,default:""},tealiumValue:{type:String,default:""},cucumber:{type:String,default:null}},data:function(){return{attemptSubmit:!1,hasInvalidFields:!0,showLoader:!1,fields:[],fieldTypes:["ChecklistField","TextAreaField"],flagSubmit:0,surveyAnswers:[],newsCategories:[],newsCategoriesList:[],comment:"",reasonCode:"",loadingError:!1,showDeactivationConfirmationtion:!1,confirmDeactivation:!1}},computed:es(es({},Object(m.c)({userId:function(t){return t.forms.userId}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isNewsletterService:function(){return"ssp-newsletter-service"===this.formId},showAgreement:function(){return"deactivateUser"===this.action&&this.showDeactivationConfirmationtion}}),watch:{userId:function(){this.isNewsletterService&&this.retrieveNewsCategories()}},mounted:function(){if(this.surveyList&&this.surveyList.length){var t=this.surveyList[0].id;this.reasonCode="".concat(t.substring(0,t.length-4),"0000")}"deactivateUser"===this.action&&this.deactivateUserCheckLoyalty()},methods:{retrieveNewsCategories:function(){var t=this;this.userId&&(this.showLoader=!0,this.$store.dispatch("forms/fetchFormData",{formId:this.formId}).then((function(e){t.newsCategoriesList=[],e["newsletter-services"].forEach((function(e){var i=t.jsonNewsCategory.findIndex((function(t){return t.code===e}));-1!==i&&t.newsCategoriesList.push({code:e,name:t.jsonNewsCategory[i].label})})),t.showLoader=!1})).catch((function(){t.showLoader=!1,t.loadingError=!0})))},replaceCharacterCodes:function(t){return v.a.replaceCharacterCodes(t)},triggerSubmit:function(t){var e=this;this.flagSubmit=0,this.attemptSubmit=!0,this.$emit("update:attemptSubmit",!0),this.fields=this.$children.filter((function(t){return e.fieldTypes.includes(t.$options._componentTag)})),this.fields.forEach((function(t){return t.validate()})),this.hasInvalidFields=this.fields.find((function(t){return!t.valid})),this.hasInvalidFields?t.preventDefault():(t.preventDefault(),this.submit())},submit:function(){switch(this.action){case"unsubscribe":this.unsubscribe();break;case"deactivateUser":(this.showAgreement&&this.showDeactivationConfirmationtion&&this.confirmDeactivation||!this.showAgreement)&&this.deactivateUser()}},unsubscribe:function(){var t=this,e={};this.newsCategories.forEach((function(t){var i=t.code;Object.assign(e,p()({},i,t.name))})),this.showLoader=!0,this.$store.dispatch("forms/triggerUnsubscription",{formId:this.formId,reason:this.surveyAnswers.length?this.surveyAnswers[0].id:this.reasonCode,reasonText:this.surveyAnswers.length?this.surveyAnswers[0].name:"",comment:this.comment,content:{"newsletter-services":e}}).then((function(){t.flagSubmit=1,t.showLoader=!1,t.$emit("close","success")})).catch((function(){t.flagSubmit=-1,t.showLoader=!1,t.$emit("close","error")}))},deactivateUserCheckLoyalty:function(){var t=this;if(this.loyaltyFormId&&""!==this.loyaltyFormId){this.showLoader=!0;var e=!1;this.$store.dispatch("forms/getSubscriptions").then((function(i){var a=i?i.find((function(e){return e.id===t.loyaltyFormId})):{};if(a)switch(a.status){case"OK":case"PENDING_SUB":e=!0;break;case"PENDING_UNSUB":e=!1}!0===e&&(t.showDeactivationConfirmationtion=!0),t.showLoader=!1})).catch((function(){t.flagSubmit=-1,t.showLoader=!1}))}},deactivateUser:function(){var t=this;this.showLoader=!0,this.$store.dispatch("forms/deactivateUser",{reason:this.surveyAnswers.length?this.surveyAnswers[0].id:this.reasonCode,reasonText:this.surveyAnswers.length?this.surveyAnswers[0].name:"",comment:this.comment}).then((function(){t.flagSubmit=1,t.showLoader=!1,t.$emit("close","success")})).catch((function(){t.flagSubmit=-1,t.showLoader=!1,t.$emit("close","error")}))}}};var as=function(t){i("BYgX")},ss=Object(l.a)(is,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",[t.loadingError?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:[0===t.flagSubmit?[i("form",{staticClass:"form-wrapper",attrs:{enctype:"multipart/form-data",novalidate:"",autocomplete:"on"},on:{submit:t.triggerSubmit}},[t.newsCategoriesList&&t.newsCategoriesList.length&&t.isNewsletterService?i("section",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{"form-id":t.formId,value:t.newsCategories,name:"newsletter-services","label-name":t.translations.label.newsCategories,list:t.newsCategoriesList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,required:!0,multiple:!0,"validation-text":t.translations.invalid.newsCategories,cucumber:"form_checkbox_newsletter_services","has-ss
1p-mapping":!1},on:{"update:value":function(e){t.newsCategories=e}}})],1)]):t._e(),t._v(" "),t.showSurvey?i("section",{staticClass:"row"},[i("div",{staticClass:"col-12"},[t.surveyList.length?i("ChecklistField",{attrs:{"form-id":t.formId,value:t.surveyAnswers,name:"surveyAnswers",list:t.surveyList,"display-required-flag":!1,"do-on-change-validation":t.attemptSubmit,tag:"id",required:!1,multiple:!1,cucumber:(t.cucumber?t.cucumber:"form")+"_checkbox_reason","has-ssp-mapping":!1},on:{"update:value":function(e){t.surveyAnswers=e}}}):t._e(),t._v(" "),t.useComment?i("TextAreaField",{attrs:{value:t.comment,name:"comment","label-name":t.translations.label.comment,placeholder:t.translations.placeholder.comment,required:!1,"do-on-change-validation":t.attemptSubmit,cucumber:(t.cucumber?t.cucumber:"form")+"_textarea_comment","has-ssp-mapping":!1},on:{"update:value":function(e){t.comment=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showAgreement?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{id:"agreement","form-id":t.formId,value:t.confirmDeactivation,name:"agreement","checkbox-label":t.translations.account.deactivate.confirmPopup.text,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":t.attemptSubmit,"display-required-flag":!1,required:!0,cucumber:(t.cucumber?t.cucumber:"form")+"_checkbox_agreement"},on:{"update:value":function(e){t.confirmDeactivation=e}}})],1)]):t._e(),t._v(" "),i("section",{staticClass:"ssp-buttons-wrapper"},[i("input",{staticClass:"ssp-button",class:{disabled:t.showAgreement&&!t.confirmDeactivation,"border-0 theme-bkgr-color-red":"deactivateUser"===t.action},attrs:{"data-cucumber":(t.cucumber?t.cucumber:"form")+"_button_submit","data-tealium-value":"ssp_"+t.tealiumValue+"_confirm","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click",type:"submit"},domProps:{value:t.replaceCharacterCodes(t.formId?t.translations.unsubscribe.confirm:t.translations.account.deactivate.confirm)}})])])]:-1===t.flagSubmit?[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])]:t._e()],t._v(" "),i("Loader",{attrs:{"is-visible":t.showLoader,"is-full-screen":!0}})],2)}),[],!1,as,"data-v-0432a204",null).exports,ns={name:"PopupUnsubscribe",components:{SurveyForm:ss,DebugMode:b.a},props:{formId:{type:String,default:""},surveyList:{type:Array,default:function(){return[]}},useComment:{type:Boolean,default:!1},open:{type:Boolean,default:!1},headline:{type:String,default:""},text:{type:String,default:""},textButton:{type:String,default:""},action:{type:String,default:""},tealiumValue:{type:String,default:""},cucumber:{type:String,default:null}},computed:{show:{get:function(){return this.open},set:function(t){return t}},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isService:function(){return"unsubscribe"===this.action&&this.formId},snConfigServiceSurvey:function(){var t=this;return void 0!==window.sspServiceSurveyConfig&&this.formId?window.sspServiceSurveyConfig.find((function(e){return e.id===t.formId})):{}}},watch:{show:function(){this.show?v.a.bodyAddClass("overflow-hidden"):v.a.bodyRemoveClass("overflow-hidden")}},methods:{close:function(t){this.show=!1,this.$emit("close",t)}}};var os=function(t){i("qDDM")},rs=Object(l.a)(ns,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-modal-main"},[i("transition",{attrs:{name:"fade",appear:""}},[t.show?i("div",{staticClass:"ssp-modal-overlay"}):t._e()]),t._v(" "),i("transition",{attrs:{name:"slide",appear:""}},[t.show?i("div",{staticClass:"ssp-modal-wrapper"},[i("div",{staticClass:"ssp-modal"},[t.headline?i("h2",[t._v("\n          "+t._s(t.headline)+"\n          "),i("DebugMode",{attrs:{"form-id":t.formId}})],1):t._e(),t._v(" "),i("div",{staticClass:"ssp-modal-close close",attrs:{"data-tealium-value":"ssp_"+t.tealiumValue+"_cancel","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return t.close()}}},[i("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})]),t._v(" "),t.text?i("div",{staticClass:"mb-4",domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),i("SurveyForm",{attrs:{"form-id":t.formId,"survey-list":t.isService?t.snConfigServiceSurvey.list:t.surveyList,"show-survey":t.isService?Object.keys(t.snConfigServiceSurvey).length>0:t.surveyList.length>0,"use-comment":t.isService?t.snConfigServiceSurvey.useComment:t.useComment,action:t.action,"loyalty-form-id":"ssp-customer-loyalty-service","tealium-value":t.tealiumValue,cucumber:t.cucumber},on:{close:function(e){return t.close(e)}}}),t._v(" "),i("div",{staticClass:"d-flex justify-content-center"},[t._t("additional_link")],2)],1)]):t._e()])],1)}),[],!1,os,"data-v-79cd0a79",null).exports;function ls(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function cs(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?ls(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ls(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var us={name:"AccountSettingsSection",components:{CtaSection:Xa,PopupUnsubscribe:rs,PopupInfo:W,PopupComp:o.a,TextField:U.a,Loader:j.a},props:{surveyDeleteAccount:{type:Array,default:function(){return[]}},surveyDeleteAccountUseComment:{type:Boolean,default:!1},tealiumValue:{type:String,default:""},emailPattern:{type:RegExp,default:function(){}},phonePattern:{type:RegExp,default:function(){}},formData:{type:Object,default:function(){}}},data:function(){return{showPopup:!1,showSuccessPopup:!1,showErrorPopup:!1,popupDeactivateUserMobileInfoOpen:!1,state:"",emailValue:"",emailValid:!1,initEmailValue:"",mobileValue:"",mobileValid:!1,initMobileValue:"",loaderVisible:!1,loadingError:!1,limitReachedError:!1}},computed:cs(cs({},Object(m.c)({userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},billingAddressLocked:function(t){return t.forms.billingAddressLocked},loginType:function(t){return t.forms.loginType},mobileVerified:function(t){return t.forms.mobileVerified},emailVerified:function(t){return t.forms.emailVerified}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},showChangeEmail:function(){return"email"!==this.loginType&&this.emailVerified},showChangeMobile:function(){return"mobile"!==this.loginType&&this.mobileVerified},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},isEmailSubmitEnabled:function(){var t=!1;return this.emailValid&&this.emailValue&&this.emailValue!==this.initEmailValue&&(t=!0),t},isMobileSubmitEnabled:function(){var t=!1;return this.mobileValid&&this.mobileValue&&this.mobileValue!==this.initMobileValue&&(t=!0),t}}),methods:{emailConfirmAfterValidate:function(t){this.emailValid=t.valid&&!t.errorMsg},mobileConfirmAfterValidate:function(t){this.mobileValid=t.valid&&!t.errorMsg},triggerChangeMobile:function(){var t=this;this.formData&&this.formData.mobile?this.mobileValue=this.formData.mobile:this.mobileValue=this.userMobile,this.initMobileValue=this.mobileValue,this.$refs.popupChangeMobileRef.open(),this.$nextTick((function(){t.mobileValue&&t.$refs.textFieldMobile.validate()}))},triggerChangeEmail:function(){var t=this;this.formData&&this.formData.email?this.emailValue=this.formData.email:this.emailValue=this.userEmail,this.initEmailValue=this.emailValue,this.$refs.popupChangeEmailRef.open(),this.$nextTick((function(){t.emailValue&&t.$refs.textFieldEmail.validate()}))},sendMobileVerification:function(){var t=this;this.mobileValid&&(this.$refs.popupChangeMobileRef.close(),this.loaderVisible=!0,this.$store.dispatch("forms/verify",{type:"mobile",mobile:this.mobileValue,back:"profile"}).then((function(){window.location.href="".concat(t.config.verificationMobilePageUrl,"?isVerfiyMobile=true&back=profile")})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.$refs.popupChangeMobileRef.open(),t.loaderVisible=!1,t.limitReachedError=!0):(t.$refs.popupChangeMobileRef.open(),t.loadingError=!0)})))},sendEmailVerification:function(){var t=this;this.emailValid&&(this.$refs.popupChangeEmailRef.close(),this.loaderVisible=!0,this.$store.dispatch("forms/verify",{type:"email",email:this.emailValue,back:"profile"}).then((function(){window.location.href=t.config.verificationEmailInfoPageUrl})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.$refs.popupChangeEmailRef.open(),t.loaderVisible=!1,t.limitReachedError=!0):(t.$refs.popupChangeEmailRef.open(),t.loadingError=!0)})))},triggerChangePassword:function(){this.$store.dispatch("forms/resetPassword")},triggerSurvey:function(){this.showPopup=!0},closePopup:function(t){switch(this.state=t,this.showPopup=!1,t){case"success":"mobile"===this.loginType?this.popupDeactivateUserMobileInfoOpen=!0:(window.app.authentication.setLoggedOut(),this.showSuccessPopup=!0);break;case"error":this.showErrorPopup=!0}},closePopupDeactivateUserMobileInfo:function(){var t=this;this.popupDeactivateUserMobileInfoOpen=!1,this.$nextTick((function(){window.location.href="".concat(t.config.verificationMobilePageUrl,"?isDeactivateUser=true&back=logout&formIds=ssp-deactivate-account")}
1))},closePopupInfo:function(){switch(this.state){case"success":this.showSuccessPopup=!1,this.logOut();break;case"error":this.showErrorPopup=!1}this.state=""},logOut:function(){this.$store.dispatch("forms/logout")}}};var ds=function(t){i("eh5q")},ps=Object(l.a)(us,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-data-wrapper"},[i("div",{staticClass:"row justify-content-center"},[i("div",{staticClass:"col-12 col-md-5 mb-5 mb-md-0"},[i("section",{staticClass:"ssp-box-wrapper"},[t.translations.account.changePassword.label?i("h2",{domProps:{innerHTML:t._s(t.translations.account.changePassword.label)}}):t._e(),t._v(" "),i("CtaSection",{attrs:{icon:"edit",headline:t.translations.account.changePassword.label,text:t.translations.account.changePassword.info,"tealium-value":t.tealiumValue+"_change-password"},on:{click:function(e){return t.triggerChangePassword()}}})],1)]),t._v(" "),i("div",{staticClass:"col-12 col-md-5"},[i("section",{staticClass:"ssp-box-wrapper"},[t.translations.account.deactivate.label?i("h2",{domProps:{innerHTML:t._s(t.translations.account.deactivate.label)}}):t._e(),t._v(" "),i("CtaSection",{attrs:{icon:"trash",headline:t.translations.account.deactivate.label,text:t.translations.account.deactivate.info,"tealium-value":t.tealiumValue+"_delete-account"},on:{click:function(e){return t.triggerSurvey()}}})],1),t._v(" "),i("PopupUnsubscribe",{attrs:{action:"deactivateUser","survey-list":t.surveyDeleteAccount,"use-comment":t.surveyDeleteAccountUseComment,open:t.showPopup,headline:t.translations.account.deactivate.label,text:t.translations.account.deactivate.description,"text-button":t.translations.account.deactivate.confirm,"tealium-value":t.tealiumValue+"_delete-account",cucumber:"accountSettingsModal"},on:{close:function(e){return t.closePopup(e)}}},[i("template",{slot:"additional_link"},[t._t("additional_link_popup_unsubscribe")],2)],2),t._v(" "),i("PopupInfo",{attrs:{open:"success"===t.state?t.showSuccessPopup:t.showErrorPopup,headline:t.translations.account.deactivate.label,text:"success"===t.state?t.translations.account.deactivate.confirmPopup.success:t.translations.account.deactivate.confirmPopup.error,"text-button":t.translations.ok,icon:"success"===t.state?"info":"cancel-circle"},on:{close:function(e){return t.closePopupInfo()}}}),t._v(" "),i("PopupInfo",{attrs:{open:t.popupDeactivateUserMobileInfoOpen,headline:t.translations.account.deactivate.label,text:t.translations.submit.service.mobile.deactivateUser,"text-button":t.commonTranslations.continue},on:{close:function(e){return t.closePopupDeactivateUserMobileInfo()}}})],1)]),t._v(" "),i("div",{staticClass:"row justify-content-center mt-5 mt-md-3"},[t.showChangeMobile?i("div",{staticClass:"col-12 col-md-5"},[i("section",{staticClass:"ssp-box-wrapper"},[t.translations.account.changeMobile.label?i("h2",{domProps:{innerHTML:t._s(t.translations.account.changeMobile.label)}}):t._e(),t._v(" "),i("CtaSection",{attrs:{icon:"edit",headline:t.translations.account.changeMobile.label,text:t.translations.account.changeMobile.info,"tealium-value":t.tealiumValue+"_change-mobile"},on:{click:function(e){return t.triggerChangeMobile()}}})],1),t._v(" "),i("PopupComp",{ref:"popupChangeMobileRef"},[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.account.changeMobile.label?i("h2",[t._v("\n              "+t._s(t.translations.account.changeMobile.label)+"\n            ")]):t._e(),t._v(" "),t.translations.account.changeMobile.description?i("div",{domProps:{innerHTML:t._s(t.translations.account.changeMobile.description)}}):t._e()])]),t._v(" "),t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.limitReachedError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.verifyLimitReached))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[i("TextField",{ref:"textFieldMobile",attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:!0,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e},afterValidate:t.mobileConfirmAfterValidate}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",class:{disabled:!t.isMobileSubmitEnabled},attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.account.changeMobile.confirm)},on:{click:function(e){return t.sendMobileVerification()}}})])])],2)],1):t._e(),t._v(" "),t.showChangeEmail?i("div",{staticClass:"col-12 col-md-5"},[i("section",{staticClass:"ssp-box-wrapper"},[t.translations.account.changeEmail.label?i("h2",{domProps:{innerHTML:t._s(t.translations.account.changeEmail.label)}}):t._e(),t._v(" "),i("CtaSection",{attrs:{icon:"edit",headline:t.translations.account.changeEmail.label,text:t.translations.account.changeEmail.info,"tealium-value":t.tealiumValue+"_change-email"},on:{click:function(e){return t.triggerChangeEmail()}}}
1)],1),t._v(" "),i("PopupComp",{ref:"popupChangeEmailRef"},[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.account.changeEmail.label?i("h2",[t._v("\n              "+t._s(t.translations.account.changeEmail.label)+"\n            ")]):t._e(),t._v(" "),t.translations.account.changeEmail.description?i("div",{domProps:{innerHTML:t._s(t.translations.account.changeEmail.description)}}):t._e()])]),t._v(" "),t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.limitReachedError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.verifyLimitReached))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[i("TextField",{ref:"textFieldEmail",attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",required:!0,cucumber:"form_input_email"},on:{"update:value":function(e){t.emailValue=e},afterValidate:t.emailConfirmAfterValidate}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",class:{disabled:!t.isEmailSubmitEnabled},attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.account.changeEmail.confirm)},on:{click:function(e){return t.sendEmailVerification()}}})])])],2)],1):t._e(),t._v(" "),t.showChangeEmail||t.showChangeMobile?i("div",{staticClass:"col-12 col-md-5 d-none d-md-block"}):t._e()]),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],1)}),[],!1,ds,"data-v-f1d30676",null).exports;function ms(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function hs(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ms(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ms(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var fs={name:"MultiConsentService",components:{CheckboxField:at,CropsField:Ht,TextField:U.a,TextFieldMulti:It,SelectField:Et.a,SelectMultiField:Vt.a,SelectMultiTagListField:$t,ProductsWithFilterField:ne,LocationField:ce,ChecklistField:pe,VerifyMobilePopupComp:fe,VerifyEmailPopupComp:be,Loader:j.a,DebugMode:b.a},props:{service:{type:Object,default:function(){return{}}},settings:{type:Object,default:function(){return{}}},loadData:{type:Boolean,default:!1},showPicture:{type:Boolean,default:!0},editCase:{type:Boolean,default:!1},doSetPrefilledCropsOfFirst:{type:Boolean,default:!1},doSetPrefilledAreaPerCropOfFirst:{type:Boolean,default:!1},showIntroText:{type:Boolean,default:!1},showBenefits:{type:Boolean,default:!1},verifyBack:{type:String,default:""},showImportData:{type:Boolean,default:!1}},data:function(){return{hideImportData:!0,agreement:!1,agreementDisabled:!1,additionalAgreement:!1,FC_I_am_farmer:!1,agreementTrackingConsent:!1,importData:!1,loaderVisible:!1,loadingError:!1,formElements:[],data:{},prefilledCrops:[],cropsValue:[],cropListByArea:[],cropAgriculturalAreaValue:[],prefilledAreaPerCrop:[],subscriptions:[],newsCategoriesSelected:[],productFileTypes:[],productsValue:[],productsPrefilledCrops:[],stickyHeaderHeight:45,shoeSizeValue:"",gloveSizeValue:{},clothesSizeValue:{},inforisqueSeedDateValue:{},inforisqueParcelZIPValue:{},isInforisqueParcelZIPRetrieved:!0,planttypeconsumerValue:{},personalityValue:{},prefersAdvicebyValue:{}}},computed:hs(hs({},Object(m.c)({mobileVerified:function(t){return t.forms.mobileVerified},emailVerified:function(t){return t.forms.emailVerified}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},isLoaderVisible:function(){return(this.loaderVisible||!this.isInforisqueParcelZIPRetrieved)&&!this.loadingError},cropListCurrent:function(){return this.service.cropList?v.a.sortByText(this.service.cropList):[]},subscriptionOptions:function(){return void 0!==window.materialCategoryConfig&&window.materialCategoryConfig.slice().sort((function(t,e){return e.ordering-t.ordering}))},inforisqueSeedDateOptions:function(){var t=(new Date).getFullYear(),e=[];return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.inforisqueSeedDate&&window.sspSelectFieldConfig.inforisqueSeedDate.options.length&&(e=window.sspSelectFieldConfig.inforisqueSeedDate.options.slice().sort((function(t,e){return e.ordering-t.ordering}))),e?e.map((function(e){return{id:e.id,name:e.name,code:"".concat(t,"-").concat(e.code),ordering:e.ordering}})):e},planttypeconsumerOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.planttypeconsumer&&window.sspSelectFieldConfig.planttypeconsumer.options.length?window.sspSelectFieldConfig.planttypeconsumer.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},personalityOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.personality&&window.sspSelectFieldConfig.personality.options.length?window.sspSelectFieldConfig.personality.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},prefersAdvicebyOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.prefersAdviceby&&window.sspSelectFieldConfig.prefersAdviceby.options.length?window.sspSelectFieldConfig.prefersAdviceby.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},gloveSizeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.gloveSize&&window.sspSelectFieldConfig.gloveSize.options.length?window.sspSelectFieldConfig.gloveSize.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},clothesSizeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.clothesSize&&window.sspSelectFieldConfig.clothesSize.options.length?window.sspSelectFieldConfig.clothesSize.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},productFileTypesOptions:function(){return void 0!==window.sspProductFileTypeConfig?window.sspProductFileTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},isLoyaltyVictoriaService:function(){var t=!1;return this.service.formId&&"ssp-customer-loyalty-victoria-service"===this.service.formId&&(t=!0),t},isLoyaltyBenefitoService:function(){var t=!1;return this.service.formId&&"ssp-customer-loyalty-benefito-service"===this.service.formId&&(t=!0),t}}),watch:{agreement:function(){var t=this;this.$emit("changedAgreement"),this.agreement&&(this.resetAllValues(),this.loaderVisible=!0,this.$store.dispatch("forms/fetchFormDataDefinition",{formIds:this.service.formId}).then((function(e){if(e&&e[t.service.formId]&&e[t.service.formId].definition&&e[t.service.formId].definition.formelement&&e[t.service.formId].definition.formelement.length>0){if(t.formElements=e[t.service.formId].definition.formelement,e[t.service.formId].data&&(t.data=e[t.service.formId].data),t.showField("mobile")&&!t.mobileVerified){t.agreement=!1;var i="";t.data&&(i=t.data.mobile),t.$refs.verifyMobilePopupCompRef.open(i)}if(t.showField("email")&&!t.emailVerified){t.agreement=!1;var a="";t.data&&(a=t.data.email),t.$refs.verifyEmailPopupCompRef.open(a)}t.loadData&&t.loadDataIntoFields(),t.doSetPrefilledCropsOfFirst&&t.setPrefilledCropsOfFirst(),t.doSetPrefilledAreaPerCropOfFirst&&t.setPrefilledAreaPerCropOfFirst(),t.showField("subscriptions")&&t.subscriptionOptions&&1===t.subscriptionOptions.length&&(t.subscriptions=t.subscriptionOptions.filter((function(e){return e.code===t.subscriptionOptions[0].code}))),t.newsCategoriesSelected&&0!==t.newsCategoriesSelected.length||(t.newsCategoriesSelected=t.service.newsCategoriesList),t.$nextTick((function(){t.resetValidation()})),t.$nextTick((function(){t.$emit("dataLoaded")}))}else t.loadingError=!0;t.loaderVisible=!1})).catch((function(){t.loadingError=!0})))},cropsValue:{handler:function(t,e){var i=this;if(t.length&&t.length!==e.length){var a=t.filter((function(t){return!e.includes(t)})),s=e.filter((function(e){return!t.includes(e)}));a.length&&a.forEach((function(t){i.cropListByArea.push({name:v.a.getCropByAmigaCode(t,i.snConfigAllSSPCrops),id:t,value:""})})),s.length&&(this.cropListByArea=this.cropListByArea.filter((function(t){return t.id!==s[0]})))}else t.length||(this.cropListByArea=[])},deep:!1}},mounted:function(){this.editCase&&(this.agreement=!0)},methods:{resetAllValues:function(){this.cropsValue=[],this.cropAgriculturalAreaValue=[],this.subscriptions=[],this.newsCategoriesSelected=[],this.agreementTrackingConsent=!1,this.additionalAgreement=!1,this.FC_I_am_farmer=!1},onlyLoadFormDataDefinition:function(t){var e=this;this.loaderVisible=!0,this.$store.dispatch("forms/fetchFormDataDefinition",{formIds:this.service.formId}).then((function(i){i&&i[e.service.formId]&&i[e.service.formId].definition&&i[e.service.formId].definition.formelement&&i[e.service.formId].definition.formelement.length>0?(e.formElements=i[e.service.formId].definition.formelement,i[e.service.formId].data&&(e.data=i[e.service.formId].data),t&&e.$nextTick((function(){t()}))):e.loadingError=!0,e.loaderVisible=!1})).catch((function(){e.loadingError=!0}))}
1,loadDataIntoFields:function(){var t=this.data;this.additionalAgreement=t.additionalAgreement,this.FC_I_am_farmer=t.FC_I_am_farmer&&"true"===t.FC_I_am_farmer,this.agreementTrackingConsent=t.agreementTrackingConsent,this.subscriptions=this.prefillArrayOptions(t.subscriptions,this.subscriptionOptions),this.newsCategoriesSelected=this.prefillArrayOptions(t["newsletter-services"],this.service.newsCategoriesList),this.prefilledCrops=v.a.prefillCrops(t.crops,this.snConfigAllSSPCrops),this.prefilledAreaPerCrop=t.areaPerCrop||[],this.formatPrefilledAreaPerCrop(),this.shoeSizeValue=t.shoeSize||"",t.productFileTypes&&t.productFileTypes.length>0?this.productFileTypes=t.productFileTypes:this.productFileTypes=[],t.products&&t.products.length>0?this.productsValue=t.products:this.productsValue=[],this.gloveSizeValue=t.gloveSize&&v.a.retrieveValue(this.gloveSizeOptions,t.gloveSize,"code",{}),this.clothesSizeValue=t.clothesSize&&v.a.retrieveValue(this.clothesSizeOptions,t.clothesSize,"code",{}),this.inforisqueSeedDateValue=t.inforisqueSeedDate&&v.a.retrieveValue(this.inforisqueSeedDateOptions,t.inforisqueSeedDate,"code",{}),this.planttypeconsumerValue=t.planttypeconsumer&&v.a.retrieveValue(this.planttypeconsumerOptions,t.planttypeconsumer,"code",{}),this.personalityValue=t.personality&&v.a.retrieveValue(this.personalityOptions,t.personality,"code",{}),this.prefersAdvicebyValue=t.prefersAdviceby&&v.a.retrieveValue(this.prefersAdvicebyOptions,t.prefersAdviceby,"code",{}),t.inforisqueParcelZIP?this.getInforisqueParcelZIP(t.inforisqueParcelZIP):this.isInforisqueParcelZIPRetrieved=!0},getInforisqueParcelZIP:function(t){var e=this;this.isInforisqueParcelZIPRetrieved=!1,this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t}).then((function(t){e.inforisqueParcelZIPValue=t,e.isInforisqueParcelZIPRetrieved=!0})).catch((function(){e.loadingError=!0}))},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""},formatPrefilledAreaPerCrop:function(){this.prefilledAreaPerCrop&&this.prefilledAreaPerCrop.forEach((function(t){t.value&&(t.value=v.a.formatFloatNumbers(t.value))}))},setPrefilledCropsOfFirst:function(){var t=this.$parent.allServiceRefs;if(t){var e=t.find((function(t){return!0===t.agreement&&t.cropsValue.length>0}));e&&(0===this.prefilledCrops.length&&(this.prefilledCrops=e.cropsValue),this.productsPrefilledCrops=e.cropsValue)}},setPrefilledAreaPerCropOfFirst:function(){if(0===this.prefilledAreaPerCrop.length){var t=this.$parent.allServiceRefs;if(t){var e=t.find((function(t){return!0===t.agreement&&t.cropAgriculturalAreaValue.length>0}));e&&(this.prefilledAreaPerCrop=e.cropAgriculturalAreaValue,this.formatPrefilledAreaPerCrop())}}},prefillArrayOptions:function(t,e){var i=[];return t&&e&&(i=e.filter((function(e){return t.find((function(t){return t===e.code}))}))),i},showField:function(t){var e=!1,i=this.formElements.find((function(e){return e.name===t}));return i&&i.display&&(e=!0),e},isRequired:function(t){var e=!1,i=this.formElements.find((function(e){return e.name===t}));return i&&i.mandatory&&(e=!0),e},updateAgriculturalArea:function(t){this.cropAgriculturalAreaValue=t},validate:function(){var t=!0;if(this.agreement){var e=this.$children.filter((function(t){return ct.includes(t.$options._componentTag)}));e.forEach((function(t){return t.validate()})),e.find((function(t){return!t.valid}))&&(t=!1,this.scrollToFirstError())}return t},resetValidation:function(){this.$children.filter((function(t){return ct.includes(t.$options._componentTag)})).forEach((function(t){var e=t;e.valid=!0,e.errorMessage=""}))},scrollToFirstError:function(){var t=this.$children.filter((function(t){return ct.includes(t.$options._componentTag)})).find((function(t){return!t.valid}));if("PopupComp"===this.$parent.$options.name){var e=this.$parent.getModalWrapperRef(),i=this.$parent.getModalRef();if(e&&i){var a=-1*(i.getBoundingClientRect().top-t.$el.getBoundingClientRect().top);e.scrollTo(0,a)}}else{var s=window.pageYOffset+t.$el.getBoundingClientRect().top-this.stickyHeaderHeight;window.scrollTo(0,s)}},setAgreementDisabled:function(t){this.agreementDisabled=t},getAgreementDisabled:function(){return this.agreementDisabled},emitVerifyPopupClose:function(){this.$emit("verifyPopupClose")}}};var gs=function(t){i("lSGv")},vs=Object(l.a)(fs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("article",{staticClass:"row mb-2 mb-md-4 multi-consent-service"},[t.loadingError?[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])]:t._e(),t._v(" "),t.showPicture?i("div",{staticClass:"col-12 col-md-2 mb-3 mb-md-0"},[t.service.picture?i("div",{staticClass:"ssp-picture-wrapper px-4 px-md-2",domProps:{innerHTML:t._s(t.service.picture)}}):t._e()]):t._e(),t._v(" "),i("div",{staticClass:"col-12",class:{"col-md-10":t.showPicture}},[t.service.name?i("h2",[t._v("\n      "+t._s(t.service.name)+"\n      "),i("DebugMode",{attrs:{"form-id":t.
1service.formId}})],1):t._e(),t._v(" "),(t.showIntroText?t.service.introText&&t.service.introText.length:t.service.teaserTextLoggedIn&&t.service.teaserTextLoggedIn.length)?i("div",{domProps:{innerHTML:t._s(t.showIntroText?t.service.introText:t.service.teaserTextLoggedIn)}}):t._e(),t._v(" "),t.showBenefits&&t.service.benefits?i("div",{domProps:{innerHTML:t._s(t.service.benefits)}}):t._e(),t._v(" "),i("div",{staticClass:"form-wrapper"},[t.service.agreementLabel?i("div",{directives:[{name:"show",rawName:"v-show",value:!t.editCase,expression:"!editCase"}],staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.agreement,name:"agreement","checkbox-label":t.service.agreementLabel,disabled:t.agreementDisabled,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":!1,required:!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){t.agreement=e}}})],1)]):t._e(),t._v(" "),t.showField("FC_I_am_farmer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.FC_I_am_farmer,name:"FC_I_am_farmer","checkbox-label":t.translations.sspCustomerLoyaltyServiceSingleDe.FC_I_am_farmerLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":!1,required:t.isRequired("FC_I_am_farmer"),cucumber:"form_checkbox_FC_I_am_farmer"},on:{"update:value":function(e){t.FC_I_am_farmer=e}}})],1)]):t._e(),t._v(" "),t.service.additionalAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.additionalAgreement,name:"additionalAgreement","checkbox-label":t.service.additionalAgreementLabel,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":!1,cucumber:"form_checkbox_additionalAgreement"},on:{"update:value":function(e){t.additionalAgreement=e}}})],1)]):t._e(),t._v(" "),t.service.agreementLabelNewsletter?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.agreementTrackingConsent,name:"agreementTrackingConsent","checkbox-label":t.service.agreementLabelNewsletter,"validation-text":t.translations.invalid.agreement,"do-on-change-validation":!1,required:!1,cucumber:"form_checkbox_agreementTrackingConsent"},on:{"update:value":function(e){t.agreementTrackingConsent=e}}})],1)]):t._e(),t._v(" "),t.agreement?i("div",[!t.isLoyaltyVictoriaService&&!t.isLoyaltyBenefitoService||t.editCase||!t.showImportData||t.hideImportData?t._e():i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"pl-4"},[i("CheckboxField",{attrs:{"form-id":t.service.formId,value:t.importData,name:"importData","checkbox-label":t.isLoyaltyVictoriaService?t.translations.label.loyaltyVictoriaImportData:t.translations.label.loyaltyBenefitoImportData,"do-on-change-validation":!1,required:!1,cucumber:"form_checkbox_importData"},on:{"update:value":function(e){t.importData=e}}})],1)])]),t._v(" "),t.showField("subscriptions")?i("div",{directives:[{name:"show",rawName:"v-show",value:t.subscriptionOptions&&t.subscriptionOptions.length>1,expression:"subscriptionOptions && subscriptionOptions.length > 1"}],staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{"form-id":t.service.formId,value:t.subscriptions,name:"subscriptions","label-name":t.translations.label.materialCategory,list:t.subscriptionOptions,"display-required-flag":!1,"children-required":!1,"do-on-change-validation":!0,required:t.isRequired("subscriptions"),"validation-text":t.translations.invalid.materialCategory,cucumber:"form_checkbox_subscriptions"},on:{"update:value":function(e){t.subscriptions=e}}})],1)]):t._e(),t._v(" "),t.service.newsCategoriesList&&t.service.newsCategoriesList.length?i("div",{directives:[{name:"show",rawName:"v-show",value:t.service.newsCategoriesList&&t.service.newsCategoriesList.length>1,expression:"service.newsCategoriesList && service.newsCategoriesList.length > 1"}],staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("ChecklistField",{attrs:{"form-id":t.service.formId,value:t.newsCategoriesSelected,name:"newsletter-services","label-name":t.translations.label.newsCategories,list:t.service.newsCategoriesList,"display-required-flag":!1,"children-required":!1,"do-on-change-validation":!0,required:!0,multiple:!0,"validation-text":t.translations.invalid.newsCategories,cucumber:"form_checkbox_newsletter_services","has-ssp-mapping":!1},on:{"update:value":function(e){t.newsCategoriesSelected=e}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{"form-id":t.service.formId,placeholder:t.translations.placeholder.crops,name:"crops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":!0,preselected:t.prefilledCrops,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.cropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("areaPerCrop")&&t.cropListByArea.length?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-sm-6"},[i("TextFieldMulti",{attrs:{name:"areaPerCrop","label-name":t.translations.label.cropAgriculturalAreaPerCrop+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.crops,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,list:t.cropListByArea,required:t.isRequired("areaPerCrop"),"do-on-change-validation":!0,preselected:t.prefilledAreaPerCrop,cucumber:"form_input_areaPerCrop"},on:{update:function(e){return t.updateAgriculturalArea(e)}}})],1)]):t._e(),t._v(" "),t.showField("productFileTypes")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectMultiTagListField",{attrs:{value:t.productFileTypes,name:"productFileTypes","label-name":t.translations.label.productFileTypes,"do-on-change-validation":!0,placeholder:t.translations.placeholder.productFileTypes,options:t.productFileTypesOptions,required:t.isRequired("productFileTypes"),clearable:!1},on:{"update:value":[function(e){t.productFileTypes=e},function(e){return t.productFileTypes=e}]}})],1)]):t._e(),t._v(" "),t.showField("products")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ProductsWithFilterField",{attrs:{value:t.productsValue,"crop-list":t.cropListCurrent,"preselected-crops":t.productsPrefilledCrops,name:"products","label-name":t.translations.label.products,placeholder:t.translations.placeholder.products,required:t.isRequired("products"),clearable:!1,"select-all":!0,"do-on-change-validation":!0},on:{"update:value":[function(e){t.productsValue=e},function(e){return t.productsValue=e}]}})],1)]):t._e(),t._v(" "),t.showField("inforisqueSeedDate")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.inforisqueSeedDateValue,name:"inforisqueSeedDate","label-name":t.getSelectFieldLabel("inforisqueSeedDate"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.inforisqueSeedDateOptions,required:t.isRequired("inforisqueSeedDate")},on:{"update:value":function(e){t.inforisqueSeedDateValue=e}}})],1)]):t._e(),t._v(" "),t.showField("inforisqueParcelZIP")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("LocationField",{attrs:{value:t.inforisqueParcelZIPValue,name:"inforisqueParcelZIP","label-name":t.translations.label.inforisqueParcelZIP,anchor:"zipcode",required:t.isRequired("inforisqueParcelZIP"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2},on:{"update:value":function(e){return t.inforisqueParcelZIPValue=e}}})],1)]):t._e(),t._v(" "),t.showField("personality")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.personalityValue,name:"personality","label-name":t.getSelectFieldLabel("personality"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.personalityOptions,required:t.isRequired("personality")},on:{"update:value":function(e){t.personalityValue=e}}})],1)]):t._e(),t._v(" "),t.showField("prefersAdviceby")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.prefersAdvicebyValue,name:"prefersAdviceby","label-name":t.getSelectFieldLabel("prefersAdviceby"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.prefersAdvicebyOptions,required:t.isRequired("prefersAdviceby")},on:{"update:value":function(e){t.prefersAdvicebyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("planttypeconsumer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.planttypeconsumerValue,name:"planttypeconsumer","label-name":t.getSelectFieldLabel("planttypeconsumer"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.planttypeconsumerOptions,required:t.isRequired("planttypeconsumer")},on:{"update:value":function(e){t.planttypeconsumerValue=e}}})],1)]):t._e(),t._v(" "),t.showField("gloveSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.gloveSizeValue,name:"gloveSize","label-name":t.getSelectFieldLabel("gloveSize"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.gloveSizeOptions,required:t.isRequired("gloveSize"),cucumber:"form_select_gloveSize"},on:{"update:value":function(e){t.gloveSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("shoeSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.shoeSizeValue,name:"shoeSize","label-name":t.translations.label.shoeSize,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("shoeSize"),"do-on-change-validation":!0,cucumber:"form_select_shoeSize"},on:{"update:value":function(e){t.shoeSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("clothesSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.clothesSizeValue,name:"clothesSize","label-name":t.getSelectFieldLabel("clothesSize"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.clothesSizeOptions,required:t.isRequired("clothesSize"),cucumber:"form_select_clothesSize"},on:{"update:value":function(e){t.clothesSizeValue=e}}})],1)]):t._e()]):t._e()])]),t._v(" "),i("VerifyMobilePopupComp",{ref:"verifyMobilePopupCompRef",attrs:{"phone-pattern":t.settings.phonePattern,back:t.verifyBack},on:{close:function(e){return t.emitVerifyPopupClose()}}}),t._v(" "),i("VerifyEmailPopupComp",{ref:"verifyEmailPopupCompRef",attrs:{"email-pattern":t.settings.emailPattern,back:t.verifyBack},on:{close:function(e){return t.emitVerifyPopupClose()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,gs,"data-v-275c95cc",null).exports;function bs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function ws(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?bs(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):bs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ys={name:"ServiceV2",components:{PopupUnsubscribe:rs,PopupInfo:W,PopupComp:o.a,Loader:j.a,MultiConsentService:vs,DebugMode:b.a},props:{service:{type:Object,default:function(){return{}}},settings:{type:Object,default:function(){return{}}},status:{type:String,default:""},tealiumValue:{type:String,default:""}},data:function(){return{isSubscribed:!1,isPendingSubscribe:!1,isPendingUnsubscribe:!1,showPopup:!1,showSuccessPopup:!1,showErrorPopup:!1,popupSaveServiceSuccessInfoOpen:!1,popupResendEmailSuccessInfoOpen:!1,popupResendCodeSuccessInfoOpen:!1,popupResendCodeErrorInfoOpen:!1,serviceNoFields:!1,state:"",loaderVisible:!1,loadingError:!1,errorMsg:"",resendCodeOptType:"",resendCodeFormId:""}},computed:ws(ws({},Object(m.c)({loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},subscriptionInfo:function(){return this.isPendingSubscribe?this.translations.subscribe.info.pendingSubscription:this.isPendingUnsubscribe?this.translations.unsubscribe.info.pendingUnsubscription:""},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},serviceName:function(){return v.a.formatToCamelCase(this.service.tealiumName)},selectedServiceHasOpt:function(){var t=!1;return this.service&&"OPTIN"===this.service.optType&&(t=!0),t},popupInfoSuccessText:function(){var t="";return"success"===this.state?this.selectedServiceHasOpt?(t=this.translations.account.unsubscribe.confirmPopup.success,this.loginType&&"mobile"===this.loginType&&(t=this.translations.submit.service.mobile.unsubscribe)):t=this.translations.submit.service.optNone.unsubscribe:t=this.translations.account.unsubscribe.confirmPopup.error,t},popupInfoSuccessTextButton:function(){var t=this.translations.ok;return this.selectedServiceHasOpt&&this.loginType&&"mobile"===this.loginType&&(t=this.commonTranslations.continue),t},getVerificationMobilePageUrl:function(){var t=this.config.verificationMobilePageUrl;if(t+="?optType=OPTOUT",this.service&&this.service.formId){var e=[];e.push(this.service.formId),e&&e.length>0&&(t+="&formIds=".concat(encodeURIComponent(e.join(","))))}return t},functionHelper:function(){return v.a}}),mounted:function(){this.handleSubscriptions(this.status)},methods:{handleSubscriptions:function(t){if(t)switch(t){case"OK":this.isSubscribed=!0,this.isPendingSubscribe=!1,this.isPendingUnsubscribe=!1;break;case"PENDING_SUB":this.isSubscribed=!1,this.isPendingSubscribe=!0,this.isPendingUnsubscribe=!1;break;case"PENDING_UNSUB":this.isSubscribed=!1,this.isPendingSubscribe=!1,this.isPendingUnsubscribe=!0}else this.isSubscribed=!1,this.isPendingSubscribe=!1,this.isPendingUnsubscribe=!1},triggerEdit:function(){this.$refs.popupServiceRef.open()},serviceDataLoaded:function(){var t=this.$refs.serviceRef.$children.filter((function(t){return ct.includes(t.$options._componentTag)&&"agreement"!==t.name}));t&&0===t.length?this.serviceNoFields=!0:this.serviceNoFields=!1},closePopupService:function(){this.$refs.popupServiceRef.close()},saveService:function(){var t=this;if(this.$refs.serviceRef.validate()){this.$refs.popupServiceRef.close(),this.loaderVisible=!0;var e={},i=this.$refs.serviceRef.service.formId,a=this.$refs.serviceRef.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),s=ut.a.buildFormContent(a,this.config.country),n=this.$refs.serviceRef.data;Object.keys(s).forEach((function(t){var e=s[t];n[t]=e})),e[i]=n,this.$store.dispatch("forms/submitForms",{content:e}).then((function(){t.popupSaveServiceSuccessInfoOpen=!0,t.loaderVisible=!1})).catch((function(e){t.loadingError=!0;var i=e.response.data;i&&"There are already contacts with the same mobile phone. Use an existing record 
1instead."===i.error&&(t.errorMsg=t.translations.error.registration.phone)}))}},closePopupSaveServiceSuccessInfo:function(){this.popupSaveServiceSuccessInfoOpen=!1},closePopupResendEmailSuccessInfo:function(){this.popupResendEmailSuccessInfoOpen=!1},closePopupResendCodeSuccessInfo:function(){this.loaderVisible=!0,window.location.href="".concat(this.config.verificationMobilePageUrl,"?optType=").concat(this.resendCodeOptType,"&formIds=").concat(this.resendCodeFormId)},closePopupResendCodeErrorInfo:function(){this.popupResendCodeErrorInfoOpen=!1},triggerUnsubscribe:function(){this.showPopup=!0},triggerSendEmail:function(t,e){var i=this;this.loaderVisible=!0,this.$store.dispatch("forms/resendMailOrCode",{formIds:t,optType:e}).then((function(){i.popupResendEmailSuccessInfoOpen=!0,i.loaderVisible=!1})).catch((function(){i.loadingError=!0}))},triggerSendCode:function(t,e){var i=this;this.loaderVisible=!0,this.$store.dispatch("forms/resendMailOrCode",{formIds:t,optType:e}).then((function(){i.resendCodeOptType=e,i.resendCodeFormId=t,i.popupResendCodeSuccessInfoOpen=!0,i.loaderVisible=!1})).catch((function(t){t.response&&t.response.status&&402===t.response.status?(i.popupResendCodeErrorInfoOpen=!0,i.loaderVisible=!1):i.loadingError=!0}))},closePopup:function(t){switch(this.state=t,this.showPopup=!1,t){case"success":this.showSuccessPopup=!0;break;case"error":this.showErrorPopup=!0}},closePopupInfo:function(){var t=this;switch(this.state){case"success":this.showSuccessPopup=!1,this.$nextTick((function(){t.selectedServiceHasOpt&&t.loginType&&"mobile"===t.loginType?window.location.href=t.getVerificationMobilePageUrl:t.$emit("fetch-subscriptions")}));break;case"error":this.showErrorPopup=!1}this.state=""}}};var Cs=function(t){i("ZgLt")},_s={name:"ActiveSubscriptions",components:{Service:Object(l.a)(ys,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("article",{staticClass:"service-wrapper"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.errorMsg||t.translations.submit.error))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-md-2 mb-3 mb-md-0"},[i("div",{staticClass:"ssp-picture-wrapper px-4 px-md-2",domProps:{innerHTML:t._s(t.service.picture)}})]),t._v(" "),i("div",{staticClass:"col-12 col-md-10 d-flex flex-column justify-content-between"},[i("section",{staticClass:"mb-4"},[t.service.name?i("h3",[t._v("\n          "+t._s(t.service.name)+"\n          "),i("DebugMode",{attrs:{"form-id":t.service.formId}})],1):t._e(),t._v(" "),t.service.teaserTextLoggedIn?i("div",{domProps:{innerHTML:t._s(t.service.teaserTextLoggedIn)}}):t._e()]),t._v(" "),i("section",[i("div",{staticClass:"ssp-buttons-wrapper left"},[t.isSubscribed||t.isPendingUnsubscribe?[t.service.showUnsubscribe?i("a",{staticClass:"ssp-button secondary",class:{disabled:t.isPendingUnsubscribe},attrs:{id:"cucumber_unsubscribe_"+t.service.tealiumName,"data-cucumber":t.serviceName+"_button_unsubscribe","data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_unsubscribe",title:t.functionHelper.formatTitle("",t.isPendingUnsubscribe?t.translations.unsubscribe.labelPending:t.translations.unsubscribe.label),href:"","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.isPendingUnsubscribe?t.translations.unsubscribe.labelPending:t.translations.unsubscribe.label)},on:{click:function(e){return e.preventDefault(),t.triggerUnsubscribe()}}}):t._e(),t._v(" "),t.isPendingUnsubscribe?[t.loginType&&"mobile"===t.loginType?[i("a",{staticClass:"ssp-button",attrs:{id:"cucumber_unsubscribe_sendCode_"+t.service.tealiumName,"data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_unsubscribe_resend-code","data-cucumber":t.serviceName+"_button_unsubscribeSendCode",title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.account.resendMobile.label),href:"","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.account.resendMobile.label)},on:{click:function(e){return e.preventDefault(),t.triggerSendCode(t.service.formId,"OPTOUT")}}})]:[i("a",{staticClass:"ssp-button",attrs:{id:"cucumber_unsubscribe_sendEmail_"+t.service.tealiumName,"data-teal
1ium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_unsubscribe_resend-email","data-cucumber":t.serviceName+"_button_unsubscribeSendEmail",title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.sendEmail),href:"","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.sendEmail)},on:{click:function(e){return e.preventDefault(),t.triggerSendEmail(t.service.formId,"OPTOUT")}}})]]:[t.service.showEdit?i("a",{staticClass:"ssp-button",attrs:{id:"cucumber_edit_"+t.service.tealiumName,"data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_edit","data-cucumber":t.serviceName+"_button_edit",title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.unsubscribe.editData),href:"","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.unsubscribe.editData)},on:{click:function(e){return e.preventDefault(),t.triggerEdit()}}}):t._e()]]:[t.isPendingSubscribe?i("a",{staticClass:"ssp-button",class:{"disabled secondary":t.isPendingSubscribe},attrs:{id:"cucumber_subscribe_"+t.service.tealiumName,"data-cucumber":t.serviceName+"_button_subscribe","data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_subscribe",title:t.translations.subscribe.labelPending,href:"","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.subscribe.labelPending)}}):t._e(),t._v(" "),t.loginType&&"mobile"===t.loginType?[t.isPendingSubscribe?i("a",{staticClass:"ssp-button",attrs:{id:"cucumber_subscribe_sendCode_"+t.service.tealiumName,"data-cucumber":t.serviceName+"_button_subscribeSendCode","data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_subscribe_resend-code",title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.account.resendMobile.label),href:"","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.account.resendMobile.label)},on:{click:function(e){return e.preventDefault(),t.triggerSendCode(t.service.formId,"OPTIN")}}}):t._e()]:[t.isPendingSubscribe?i("a",{staticClass:"ssp-button",attrs:{id:"cucumber_subscribe_sendEmail_"+t.service.tealiumName,"data-cucumber":t.serviceName+"_button_subscribeSendEmail","data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_subscribe_resend-email",title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.sendEmail),href:"","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.translations.sendEmail)},on:{click:function(e){return e.preventDefault(),t.triggerSendEmail(t.service.formId,"OPTIN")}}}):t._e()]]],2),t._v(" "),t.subscriptionInfo?i("div",{staticClass:"info-msg mt-2 mt-md-0",domProps:{innerHTML:t._s(t.subscriptionInfo)}}):t._e()])])]),t._v(" "),i("PopupComp",{ref:"popupServiceRef",attrs:{"tealium-value":t.tealiumValue+"_"+t.service.tealiumName}},[i("div",{staticClass:"multi-consent-service-form service-edit-form"},[i("MultiConsentService",{ref:"serviceRef",attrs:{service:t.service,settings:t.settings,"show-picture":!1,"load-data":!0,"edit-case":!0,"show-intro-text":!0,"show-benefits":!0},on:{dataLoaded:function(e){return t.serviceDataLoaded()},verifyPopupClose:function(e){return t.closePopupService()}}}),t._v(" "),t.serviceNoFields?[i("div",{staticClass:"row mb-2 mb-md-4"},[i("div",{staticClass:"col-12 text-center"},[t._v("\n            "+t._s(t.translations.submit.service.noFields)+"\n          ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.ok)},on:{click:function(e){return t.closePopupService()}}})])])]:[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{"data-teal
1ium-value":"ssp_"+t.tealiumValue+"_"+t.service.tealiumName+"_save","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click",type:"button"},domProps:{innerHTML:t._s(t.translations.saveForm)},on:{click:function(e){return t.saveService()}}})])])]],2)]),t._v(" "),i("PopupUnsubscribe",{attrs:{"form-id":t.service.formId,action:"unsubscribe",open:t.showPopup,headline:t.service.unsubscriptionHeadline,text:t.service.unsubscriptionDescription+" "+t.translations.label.survey,"text-button":t.translations.unsubscribe.confirm,"tealium-value":t.tealiumValue+"_"+t.service.tealiumName+"_unsubscribe"},on:{close:function(e){return t.closePopup(e)}}},[i("template",{slot:"additional_link"},[t._t("additional_link_popup_unsubscribe")],2)],2),t._v(" "),i("PopupInfo",{attrs:{open:"success"===t.state?t.showSuccessPopup:t.showErrorPopup,headline:t.service.unsubscriptionHeadline,text:t.popupInfoSuccessText,"text-button":t.popupInfoSuccessTextButton,icon:"success"===t.state?"info":"cancel-circle"},on:{close:function(e){return t.closePopupInfo()}}}),t._v(" "),i("PopupInfo",{attrs:{open:t.popupSaveServiceSuccessInfoOpen,headline:t.translations.submit.service.success,text:t.translations.submit.service.save,"text-button":t.translations.ok},on:{close:function(e){return t.closePopupSaveServiceSuccessInfo()}}}),t._v(" "),i("PopupInfo",{attrs:{open:t.popupResendEmailSuccessInfoOpen,headline:t.translations.account.resendEmail.label,text:t.translations.account.resendEmail.confirmPopup.success,"text-button":t.translations.ok},on:{close:function(e){return t.closePopupResendEmailSuccessInfo()}}}),t._v(" "),i("PopupInfo",{attrs:{open:t.popupResendCodeSuccessInfoOpen,headline:t.translations.account.resendMobile.label,text:t.translations.account.resendMobile.success,"text-button":t.commonTranslations.continue},on:{close:function(e){return t.closePopupResendCodeSuccessInfo()}}}),t._v(" "),i("PopupInfo",{attrs:{open:t.popupResendCodeErrorInfoOpen,headline:t.translations.account.resendMobile.label,text:t.translations.verifyLimitReached,"text-button":t.translations.ok},on:{close:function(e){return t.closePopupResendCodeErrorInfo()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Cs,"data-v-dc9c0ec0",null).exports},props:{headline:{type:String,default:""},text:{type:String,default:""},subscriptions:{type:Array,default:function(){return[]}},services:{type:Array,default:function(){return[]}},settings:{type:Object,default:function(){return{}}},tealiumValue:{type:String,default:""}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},activeSubscriptions:function(){var t=this;return this.services.filter((function(e){return t.subscriptions.find((function(t){return t.id===e.formId}))}))}},methods:{checkStatus:function(t){return this.subscriptions.find((function(e){return e.id===t})).status}}};var Ss=function(t){i("e2Rk")},Ts=Object(l.a)(_s,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ssp-data-wrapper"},[i("section",{staticClass:"ssp-box-wrapper"},[t.headline?i("h2",[t._v(t._s(t.headline))]):t._e(),t._v(" "),t.text?i("div",{domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),t.activeSubscriptions&&t.activeSubscriptions.length?i("div",{staticClass:"ssp-box-content default-style"},t._l(t.activeSubscriptions,(function(e,a){return i("Service",{key:a,attrs:{service:e,settings:t.settings,status:t.checkStatus(e.formId),"tealium-value":t.tealiumValue},on:{"fetch-subscriptions":function(e){return t.$emit("fetch-subscriptions")}}})})),1):i("div",{staticClass:"alert alert-primary",domProps:{innerHTML:t._s(t.translations.subscriptions.info.noActiveSubscriptions)}})])])}),[],!1,Ss,"data-v-5c4c25c2",null).exports,Ps={name:"HorizontalTeasers",props:{headline:{type:String,default:""},text:{type:String,default:""},teasers:{type:Array,default:function(){return[]}}}};var Fs=function(t){i("95ta")},xs=Object(l.a)(Ps,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.teasers&&t.teasers.length?i("div",{staticClass:"ssp-data-wrapper"},[i("section",{staticClass:"ssp-box-wrapper"},[t.headline?i("h2",[t._v(t._s(t.headline))]):t._e(),t._v(" "),t.text?i("div",{domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),i("div",{staticClass:"ssp-box-content default-style"},t._l(t.teasers,(function(e,a){return i("article",{key:a,staticClass:"ssp-horizontal-teaser-wrapper"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 col-md-2 mb-3 mb-md-0"},[i("div",{staticClass:"ssp-picture-wrapper px-4 px-md-2",domProps:{innerHTML:t._s(e.picture)}})]),t._v(" "),i("div",{staticClass:"col-12 col-md-10 d-flex flex-column justify-content-between"},[i("section",{staticClass:"mb-4"},[e.headline?i("h3",{domProps:{innerHTML:t._s(e.headline)}}):t._e(),t._v(" "),e.text?i("div",{domProps:{innerHTML:t._s(e.text)}}):t._e()]),t._v(" "),i("section",[i("div",{staticClass:"ssp-buttons-wrapper arrow-circle-left-area left"},[i("div",{domProps:{innerHTML:t._s(e.link)}})])])])])])})),0)])]):t._e()}),[],!1,Fs,"data-v-1130a5f1",null).exports;function Os(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function ks(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?Os(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Os(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ls={name:"Events",components:{Fragment:ua.a,Loader:j.a,PopupComp:o.a,PopupInfo:W},props:{content:{type:Object,default:function(){}},settings:{type:Object,default:function(){return{}}},subscriptions:{type:Array,default:function(){return[]}},tealiumValue:{type:String,default:""}},data:function(){return{loaderVisible:!1,loadingError:!1,popupSuccessUnsubscribeInfoOpen:!1,subscribedEvents:[],notSubscribedEvents:[],selectedUnsubscribeEvent:{}}},computed:ks(ks({},Object(m.c)({loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},eventsTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.events)&&window.snTranslations.events},linkTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.link)&&window.snTranslations.link},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},popupSuccessUnsubscribeInfoText:function(){var t=this.translations.event.successUnSubscribe;return this.hasSelectedUnsubscribeEventOpt&&this.loginType&&"mobile"===this.loginType&&(t=this.translations.submit.service.mobile.unsubscribe),t},popupSuccessUnsubscribeInfoTextButton:function(){var t=this.translations.ok;return this.hasSelectedUnsubscribeEventOpt&&this.loginType&&"mobile"===this.loginType&&(t=this.commonTranslations.continue),t},hasSelectedUnsubscribeEventOpt:function(){var t=!1;return this.selectedUnsubscribeEvent&&this.selectedUnsubscribeEvent.eventId&&this.settings.eventOptIds&&-1!==this.settings.eventOptIds.indexOf(this.selectedUnsubscribeEvent.eventId)&&(t=!0),t},functionHelper:function(){return v.a}}),mounted:function(){this.init()},methods:{init:function(){var t=this;this.subscribedEvents=[],this.notSubscribedEvents=[],this.loaderVisible=!0,this.$store.dispatch("events/fetchEventsByOwnParams",{useHorizontal:!0,eventSortDesc:this.settings.eventSortDesc,page:0,count:1e3}).then((function(e){e.content&&e.content.forEach((function(e){e.eventId&&t.isSubscribedTo(t.settings.eventFormIdPrefix+e.eventId)?t.subscribedEvents.push(e):t.notSubscribedEvents.push(e)})),t.loaderVisible=!1})).catch((function(){t.loadingError=!0}))},isSubscribedTo:function(t){return!!this.subscriptions&&!!this.subscriptions.find((function(e){return e.id===t&&("OK"===e.status||"PENDING_UNSUB"===e.status)}))},showConfirmUnsubscribeEvent:function(t){this.selectedUnsubscribeEvent=t,this.$refs.popupConfirmUnsubscribeEventRef.open()},unsubscribeEvent:function(){var t=this;this.$refs.popupConfirmUnsubscribeEventRef.close();var e=this.settings.eventFormIdPrefix+this.selectedUnsubscribeEvent.eventId;this.loaderVisible=!0,this.$store.dispatch("forms/triggerUnsubscription",{formId:e,reason:"",reasonText:"",comment:"",content:{"newsletter-services":{}}}).then((function(){t.popupSuccessUnsubscribeInfoOpen=!0,t.loaderVisible=!1})).catch((function(){t.loadingError=!0}))},closePopupSuccessUnsubscribeInfo:function(){var t=this;this.popupSuccessUnsubscribeInfoOpen=!1;var e=this.settings.eventFormIdPrefix+this.selectedUnsubscribeEvent.eventId;this.$nextTick((function(){t.hasSelectedUnsubscribeEventOpt&&t.loginType&&"mobile"===t.loginType?window.location.href=t.getVerificationMobilePageUrl(e):t.$emit("fetch-subscriptions")}))},getTealiumName:function(t){return t.eventTealiumName?t.eventTealiumName.split(" ").join("-"):t.eventCrmId?t.eventCrmId:t.eventId},getVerificationMobilePageUrl:function(t){var e=this.config.verificationMobilePageUrl;return e+="?optType=OPTOUT",t&&(e+="&formIds=".concat(encodeURIComponent(t))),e}}};var Is=function(t){i("N9w/")},Es=Object(l.a)(Ls,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.subscribedEvents.length>0?i("div",{staticClass:"ssp-data-wrapper events-form"},[i("section",{staticClass:"ssp-box-wrapper"},[t.content.upcomingEvents.headline?i("h2",[t._v(t._s(t.content.upcomingEvents.headline))]):t._e(),t._v(" "),t.content.upcomingEvents.text?i("div",{domProps:{innerHTML:t._s(t.content.upcomingEvents.text)}}):t._e(),t._v(" "),i("article",{staticClass:"ssp-box-content default-style"},t._l(t.subscribedEvents,(function(e,a){return i("div",{key:a,staticClass:"row mb-2 mb-md-4"},[i("fragment",{domProps:{innerHTML:t._s(e["snippet-horizontal"])}}),t._v(" "),i("div",{staticClass:"col-12 col-md-3 mt-3 mt-md-0"},[i("div",{staticClass:"d-flex align-items-end h-100 w-100"},[i("div",{staticClass:"w-100"},[e.url?i("a",{staticClass:"ssp-button w-100",attrs:{href:e.url,title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.linkTranslations.readMore),"data-teal
1ium-value":"ssp_"+t.tealiumValue+"_"+t.getTealiumName(e)+"_read-more","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.linkTranslations.readMore)}}):t._e(),t._v(" "),i("button",{staticClass:"ssp-button w-100 secondary",attrs:{"data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.getTealiumName(e)+"_unsubscribe","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click",type:"button"},domProps:{innerHTML:t._s(t.translations.unsubscribe.label)},on:{click:function(i){return t.showConfirmUnsubscribeEvent(e)}}})])])])],1)})),0)])]):t._e(),t._v(" "),t.notSubscribedEvents.length>0?i("div",{staticClass:"ssp-data-wrapper events-form"},[i("section",{staticClass:"ssp-box-wrapper"},[t.content.otherEvents.headline?i("h2",[t._v(t._s(t.content.otherEvents.headline))]):t._e(),t._v(" "),t.content.otherEvents.text?i("div",{domProps:{innerHTML:t._s(t.content.otherEvents.text)}}):t._e(),t._v(" "),i("article",{staticClass:"ssp-box-content default-style"},t._l(t.notSubscribedEvents,(function(e,a){return i("div",{key:a,staticClass:"row mb-2 mb-md-4"},[i("fragment",{domProps:{innerHTML:t._s(e["snippet-horizontal"])}}),t._v(" "),i("div",{staticClass:"col-12 col-md-3 mt-3 mt-md-0"},[i("div",{staticClass:"d-flex align-items-end h-100 w-100"},[i("div",{staticClass:"w-100"},[e.url?i("a",{staticClass:"ssp-button w-100",attrs:{href:e.url,title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.linkTranslations.readMore),"data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.getTealiumName(e)+"_read-more","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.linkTranslations.readMore)}}):t._e()])])])],1)})),0)])]):t._e(),t._v(" "),0===t.subscribedEvents.length&&0===t.notSubscribedEvents.length?i("div",{staticClass:"alert alert-primary",domProps:{innerHTML:t._s(t.eventsTranslations.noResults)}}):t._e(),t._v(" "),i("PopupComp",{ref:"popupConfirmUnsubscribeEventRef"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("h2",[t._v(t._s(t.translations.event.unsubscribe.popup.headline))]),t._v(" "),i("div",{domProps:{innerHTML:t._s(t.translations.event.unsubscribe.popup.text)}})])]),t._v(" "),i("section",{staticClass:"ssp-box-wrapper event-unsubscribe-popup-content h-auto mb-3"},[i("article",{staticClass:"ssp-box-content default-style"},[i("div",{staticClass:"row"},[i("fragment",{domProps:{innerHTML:t._s(t.selectedUnsubscribeEvent["snippet-horizontal"])}})],1)])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{"data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.getTealiumName(t.selectedUnsubscribeEvent)+"_unsubscribe_confirm","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click",type:"button"},domProps:{innerHTML:t._s(t.translations.event.unsubscribe.popup.confirm)},on:{click:function(e){return t.unsubscribeEvent()}}})])])]),t._v(" "),i("PopupInfo",{attrs:{open:t.popupSuccessUnsubscribeInfoOpen,headline:t.translations.event.unsubscribe.popup.headline,text:t.popupSuccessUnsubscribeInfoText,"text-button":t.popupSuccessUnsubscribeInfoTextButton},on:{close:function(e){return t.closePopupSuccessUnsubscribeInfo()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Is,"data-v-4baa40f0",null).exports;function Vs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function As(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Vs(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Ds={name:"MultiConsentPersonalData",components:{TextField:U.a,TextFieldMulti:It,RadioField:wa,SelectField:Et.a,SelectMultiField:Vt.a,SelectMultiTagListField:$t,LocationField:ce,CheckboxField:at,ChecklistField:pe,CropsField:Ht,Loader:j.a},props:{settings:{type:Object,default:function(){return{}}},subscriptions:{type:Array,default:function(){return[]}},personalDataHeadline:{type:String,default:""},personalDataText:{type:String,default:""},loadData:{type:Boolean,default:!1},hideValidFields:{type:Boolean,default:!1},doSetOccupationPrefilledCropsOfFirst:{type:Boolean,default:!1},changeCompanyMultipleTimes:{type:Boolean,default:!1}},data:function(){return{serviceRefs:[],serviceRefsWithContactFields:[],fieldsToShow:[],fieldsRequired:[],showContactAddressArea:!0,loadingError:!1,isHoldingRetrieved:!1,isLocationRetrieved:!1,isContactLocationRetrieved:!1,salutationValue:{},farmTypeValue:{},farmTypeDefaultSet:!1,titleValue:{},jobTitleValue:{},firstNameValue:"",lastNameValue:"",locationValue:{},eircodeValue:"",prefilledZip:"",prefilledCity:"",streetValue:"",streetNumberValue:"",mobileValue:"",phoneValue:"",faxValue:"",taxNumberValue:"",partitaIVAValue:"",taxTypeValue:{},pecTypeValue:{},pecCodeValue:"",pecEmailValue:"",companyValue:"",companyIsDisabled:!1,emailValue:"",arableAreaSizeValue:"",occupationValue:[],occupationTypeValue:{},occupationOptionsFiltered:[],occupationIsDisabled:!1,showOccupationFields:!1,hideOccupation:!1,positionOnFarmValue:[],holdingValue:[],retrievedHoldingOptions:[],customHoldingValue:"",holdingIsDisabled:!1,farmPartOfHolding:!1,dateOfBirthValue:"",farmSizeValue:"",vegetarian:!1,otEmailConsent:!1,otMobileConsent:!1,agreementFax:!1,farmerRegNumber:"",contactStreetValue:"",contactStreetNumberValue:"",contactLocationValue:{},contactEircodeValue:"",contactPrefilledZip:"",contactPrefilledCity:"",salesRepresentative:{},bonusVizura:{},bonusLimusClear:{},bonusButisanComplete:{},bonusButisanAquaPack:{},purchasedProductVizura:"",purchasedProductLimusClear:"",purchasedProductButisanComplete:"",purchasedProductButisanAquaPack:"",customProducts:[],agreementLabelFax:"",sumOfAllCropAgriculturalAreaValues:-1,stickyHeaderHeight:45,useContactAddress:"",occupationIsEnabledCrops:!1,occupationIsRequiredCrops:!1,occupationIsEnabledFarmSize:!1,occupationIsEnabledArableAreaSize:!1,occupationFormId:"ssp-occupation-information",occupationFormElements:[],occupationData:{},isOccupationFormRetrieved:!1,occupationArableAreaSizeValue:"",occupationOrganicAreaSizeValue:"",occupationCropList:[],occupationPrefilledCrops:[],occupationCropsValue:[],occupationIsValid:!0,occupationIsNotValidMessage:"",occupationIsValidMessage:"",isLoyaltyInSelectedServices:!1,isLoyaltyVictoriaInSelectedServices:!1,isLoyaltyBenefitoInSelectedServices:!1}},computed:As(As({},Object(m.c)({isLoggedIn:function(t){return t.forms.userAuthenticated},billingAddressLocked:function(t){return t.forms.billingAddressLocked},userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},loginType:function(t){return t.forms.loginType}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isDataCompletelyLoaded:function(){return(this.loadData&&this.isHoldingRetrieved&&this.isLocationRetrieved&&this.isContactLocationRetrieved||!this.loadData)&&this.isOccupationFormRetrieved},isLoaderVisible:function(){return!this.isDataCompletelyLoaded&&!this.loadingError},config:function(){return void 0!==window.snConfig&&window.snConfig},enableSalesForce:function(){return _e.a.useSalesForce()}
1,useEircode:function(){return"IE"===this.config.country},salutationOptions:function(){return void 0!==window.salutationConfig?window.salutationConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},titleOptions:function(){return void 0!==window.titleConfig?window.titleConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},occupationOptions:function(){return void 0!==window.occupationConfig?window.occupationConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},occupationTypeOptions:function(){return void 0!==window.occupationTypeConfig?window.occupationTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},farmTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.farmType&&window.sspSelectFieldConfig.farmType.options.length?window.sspSelectFieldConfig.farmType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},positionOnFarmOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.positionOnFarm&&window.sspSelectFieldConfig.positionOnFarm.options.length?window.sspSelectFieldConfig.positionOnFarm.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},customProductsList:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.customProducts&&window.sspSelectFieldConfig.customProducts.options.length?window.sspSelectFieldConfig.customProducts.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},taxTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.taxType&&window.sspSelectFieldConfig.taxType.options.length?window.sspSelectFieldConfig.taxType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},pecTypeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.pecType&&window.sspSelectFieldConfig.pecType.options.length?window.sspSelectFieldConfig.pecType.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},holdingOptions:function(){var t=[];return(t=t.concat(this.retrievedHoldingOptions)).push({id:"not-listed",code:"not-listed",name:this.translations.label.holdingNotListed}),t},salesRepresentativeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.salesRepresentative&&window.sspSelectFieldConfig.salesRepresentative.options.length?window.sspSelectFieldConfig.salesRepresentative.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},jobTitleOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.jobTitle&&window.sspSelectFieldConfig.jobTitle.options.length?window.sspSelectFieldConfig.jobTitle.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},isPartitaIVASpecialCase:function(){return this.showField("partitaIVA")},partitaIVAFieldValidationRegExp:function(){return new RegExp("^(I|i)(T|t)[0-9]{11}$")},taxNumberFieldValidationRegExp:function(){var t=null;return this.showField("taxType")&&this.taxTypeValue&&this.taxTypeValue.code?this.config&&this.config.fieldValidationRegExps&&this.config.fieldValidationRegExps["taxNumber_".concat(this.taxTypeValue.code)]&&(t=new RegExp(this.config.fieldValidationRegExps["taxNumber_".concat(this.taxTypeValue.code)])):this.isPartitaIVASpecialCase&&(t=new RegExp("(^[0-9]{11}$)|(^[A-Za-z0-9]{16}$)")),t},isFieldRequiredPartitaIVATaxNumberSpecialCase:function(){var t=!1;
1this.isPartitaIVASpecialCase&&(this.showField("taxNumber")&&this.taxNumberValue&&new RegExp("^[0-9]{11}$").test(this.taxNumberValue)&&(t=!0));return t},pecCodeFieldValidationRegExp:function(){var t=null;return this.config&&this.config.fieldValidationRegExps&&this.config.fieldValidationRegExps.pecCode&&(t=new RegExp(this.config.fieldValidationRegExps.pecCode)),t},errorFarmSize:function(){var t=!1;return this.farmSizeValue&&""!==this.farmSizeValue&&-1!==this.sumOfAllCropAgriculturalAreaValues&&(t=v.a.stringToDecimal(this.farmSizeValue)<this.sumOfAllCropAgriculturalAreaValues),t},isLoyaltySubscribed:function(){return!!this.subscriptions&&!!this.subscriptions.find((function(t){return("ssp-customer-loyalty-service"===t.id||"ssp-customer-loyalty-victoria-service"===t.id||"ssp-customer-loyalty-benefito-service"===t.id)&&"OK"===t.status}))},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},companyFieldValidationRegExp:function(){var t=null;return this.translations.companyValidationRegExp&&""!==this.translations.companyValidationRegExp&&(t=new RegExp(this.translations.companyValidationRegExp,"i")),t}}),watch:{isDataCompletelyLoaded:function(){this.isDataCompletelyLoaded&&this.doHideValidFields()},occupationTypeValue:function(){var t=this;this.showField("occupationType")?this.occupationTypeValue&&this.occupationTypeValue.code?(this.occupationOptionsFiltered=this.occupationOptions.filter((function(e){return e.bpType===t.occupationTypeValue.code})),this.occupationValue&&this.occupationValue.accountDetail&&void 0===this.occupationOptionsFiltered.find((function(e){return e.accountDetail===t.occupationValue.accountDetail}))&&(this.occupationValue={})):this.occupationOptionsFiltered=this.occupationOptions:this.occupationOptionsFiltered=this.occupationOptions},occupationValue:{handler:function(t,e){var i=this;v.a.areEqualShallow(t,e)&&e||this.showField("occupation")&&(this.occupationCropList=this.snConfigAllSSPCrops?v.a.sortByText(this.snConfigAllSSPCrops):[],this.occupationIsEnabledCrops=this.occupationValue.showCrops,this.occupationIsRequiredCrops=this.occupationValue.mandatoryCrops,this.occupationIsEnabledFarmSize=this.occupationValue.showFarmSize,this.occupationIsEnabledArableAreaSize=this.occupationValue.showArableAreaSize,e&&e.id&&(this.occupationPrefilledCrops=[])),this.isLoyaltyInSelectedServices&&(this.occupationIsValid=!0,this.occupationIsNotValidMessage="",this.occupationIsValidMessage="",t&&t.bpType&&(0===t.bpType.indexOf("Distributor")?this.occupationIsValidMessage=this.translations.customerLoyaltyService.invalid.occupationRetailer:-1===t.bpType.indexOf("End User / Consumer")&&(this.occupationIsNotValidMessage=this.translations.customerLoyaltyService.invalid.occupationNotCustomer,this.occupationIsValid=!1)),this.$nextTick((function(){i.$refs&&i.$refs.occupationValueRef&&i.$refs.occupationValueRef.validate()})))},deep:!1}},mounted:function(){this.occupationOptionsFiltered=this.occupationOptions},methods:{init:function(t,e,i){var a=this;this.showOccupationFields=e,this.hideOccupation=i,this.serviceRefs=t.filter((function(t){return t.agreement})),this.serviceRefsWithContactFields=[],this.sumOfAllCropAgriculturalAreaValues=-1,this.fieldsToShow=[],this.fieldsRequired=[],this.occupationIsValid=!0,this.occupationIsNotValidMessage="",this.occupationIsValidMessage="";var s=this.serviceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-service"===t.service.formId}));this.isLoyaltyInSelectedServices=!!s;var n=this.serviceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-victoria-service"===t.service.formId}));this.isLoyaltyVictoriaInSelectedServices=!!n;var o=this.serviceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-benefito-service"===t.service.formId}));this.isLoyaltyBenefitoInSelectedServices=!!o;var r=[];this.serviceRefs.forEach((function(t){(t.cropListByArea&&t.cropListByArea.length>0&&t.cropAgriculturalAreaValue&&t.cropAgriculturalAreaValue.length>0&&t.cropAgriculturalAreaValue.forEach((function(t){var e=r.find((function(e){return e.id===t.id}));e?v.a.stringToDecimal(e.value)<v.a.stringToDecimal(t.value)&&(e.value=t.value):r.push(t)}
1)),t.formElements)&&(t.formElements.forEach((function(t){var e=t.name;t.display&&(-1===a.fieldsToShow.indexOf(e)&&a.fieldsToShow.push(e),"fax"===e&&-1===a.fieldsToShow.indexOf("agreementFax")&&a.fieldsToShow.push("agreementFax")),t.mandatory&&-1===a.fieldsRequired.indexOf(e)&&a.fieldsRequired.push(e)})),t.formElements.find((function(t){return t.display&&("contactZipcode"===t.name||"contactCity"===t.name||"contactStreet"===t.name||"contactStreetNumber"===t.name)}))&&a.serviceRefsWithContactFields.push(t))})),r&&r.length>0&&(-1===this.sumOfAllCropAgriculturalAreaValues&&(this.sumOfAllCropAgriculturalAreaValues=0),r.forEach((function(t){a.sumOfAllCropAgriculturalAreaValues+=v.a.stringToDecimal(t.value)}))),this.showOccupationFields?this.loadOccupationForm():this.isOccupationFormRetrieved=!0,this.loadData&&this.loadDataIntoFields()},loadOccupationForm:function(){var t=this;this.$store.dispatch("forms/fetchFormDataDefinition",{formIds:this.occupationFormId}).then((function(e){if(e&&e[t.occupationFormId]&&e[t.occupationFormId].definition&&e[t.occupationFormId].definition.formelement&&e[t.occupationFormId].definition.formelement.length>0){t.occupationFormElements=e[t.occupationFormId].definition.formelement,e[t.occupationFormId].data&&(t.occupationData=e[t.occupationFormId].data);var i=t.occupationFormElements.find((function(t){return"arableAreaSize"===t.name}));i&&i.mandatory&&-1===t.fieldsRequired.indexOf("occupationArableAreaSize")&&t.fieldsRequired.push("occupationArableAreaSize");var a=t.occupationFormElements.find((function(t){return"organicAreaSize"===t.name}));a&&a.mandatory&&-1===t.fieldsRequired.indexOf("occupationOrganicAreaSize")&&t.fieldsRequired.push("occupationOrganicAreaSize"),t.loadData&&t.loadOccupationDataIntoFields(),t.doSetOccupationPrefilledCropsOfFirst&&t.setOccupationPrefilledCropsOfFirst()}else t.loadingError=!0;t.isOccupationFormRetrieved=!0})).catch((function(){t.loadingError=!0}))},doHideValidFields:function(){var t=this;this.hideValidFields&&this.$nextTick((function(){var e=!0,i=!1;t.$children.filter((function(t){return ct.includes(t.$options._componentTag)})).forEach((function(a){var s=a;if(s.forceValidation=!0,s.validate(),s.forceValidation=!1,s.valid){var n=!0;"farmType"===s.name&&t.farmTypeDefaultSet&&(n=!1,e=!1),n&&(s.$el.parentElement.style.display="none")}else s.$el.parentElement.className="col-12",s.valid=!0,s.errorMessage="","contactZipcode"!==s.name&&"contactCity"!==s.name&&"contactStreet"!==s.name&&"contactStreetNumber"!==s.name||(i=!0),e=!1})),i||(t.showContactAddressArea=!1),e&&t.$emit("allValid")}))},loadOccupationDataIntoFields:function(){var t=this.occupationData;this.occupationPrefilledCrops=v.a.prefillCrops(t.crops,this.snConfigAllSSPCrops),this.occupationArableAreaSizeValue=t.arableAreaSize||"",this.occupationOrganicAreaSizeValue=t.organicAreaSize||"",this.occupationArableAreaSizeValue=v.a.formatFloatNumbers(this.occupationArableAreaSizeValue),this.occupationOrganicAreaSizeValue=v.a.formatFloatNumbers(this.occupationOrganicAreaSizeValue),null!==this.farmSizeValue&&""!==this.farmSizeValue||(this.farmSizeValue=t.farmSize||"",this.farmSizeValue=v.a.formatFloatNumbers(this.farmSizeValue))},setOccupationPrefilledCropsOfFirst:function(){if(0===this.occupationPrefilledCrops.length){var t=this.$parent.allServiceRefs;if(t){var e=t.find((function(t){return!0===t.agreement&&t.cropsValue.length>0}));e&&(this.occupationPrefilledCrops=e.cropsValue)}}},loadDataIntoFields:function(){var t=this,e=[];this.serviceRefs.forEach((function(t){t.data&&e.push(t.data)}));var i=ut.a.mergeDatas(e);if(this.salutationValue=i.salutation&&v.a.retrieveValue(this.salutationOptions,i.salutation,"code",{}),this.farmTypeValue=i.farmType&&v.a.retrieveValue(this.farmTypeOptions,i.farmType,"code",{}),this.showField("farmType")&&(void 0===this.farmTypeValue||null===this.farmTypeValue||""===this.farmTypeValue||this.farmTypeValue&&0===Object.keys(this.farmTypeValue).length)){var a=this.farmTypeOptions.find((function(t){return"iManageManyFarms"===t.code}));a&&(this.farmTypeValue=a,this.farmTypeDefaultSet=!0)}if(this.titleValue=i.title&&v.a.retrieveValue(this.titleOptions,i.title,"code",{}),this.jobTitleValue=i.jobTitle&&v.a.retrieveValue(this.jobTitleOptions,i.jobTitle,"code",{}),this.occupationValue=v.a.retrieveValue(this.occupationOptions,i.occupation,_e.a.useSalesForce()?"accountDetail":"bpType",[]),this.occupationValue&&""!==this.occupationValue&&this.isLoyaltySubscribed&&(this.occupationIsDisabled=!0),(void 0===this.occupationValue||this.occupationValue&&0===this.occupationValue.length||this.occupationValue&&0===Object.keys(this.occupationValue).length)&&(this.isLoyaltyBenefitoInSelectedServices&&(this.occupationValue=v.a.retrieveValue(this.occupationOptions,"Farmer","accountDetail",[])),this.isLoyaltyVictoriaInSelectedServices&&(this.occupationValue=v.a.retrieveValue(this.occupationOptions,"Retailer- Independent","accountDetail",[]))),this.occupationValue&&""!==this.occupationValue&&this.occupationTypeOptions&&this.occupationValue.bpType){var s=this.occupationTypeOptions.find((function(e){return e.code===t.occupationValue.bpType}));s&&(this.occupationTypeValue=s)}this.firstNameValue=i.firstName||"",this.lastNameValue=i.lastName||"",this.useEirco
1de?(this.eircodeValue=i.zipcode||"",this.prefilledCity=v.a.prefillLocation(i,"city")):(this.prefilledZip=v.a.prefillLocation(i,"zipcode"),this.prefilledCity=v.a.prefillLocation(i,"city")),this.companyValue=i.company||"",i.company&&""!==i.company&&(i.company==="".concat(this.firstName," ").concat(this.lastName)||this.changeCompanyMultipleTimes||(this.companyIsDisabled=!0)),this.streetValue=i.street||"",this.streetNumberValue=i.streetNumber||"",this.mobileValue=i.mobile?i.mobile:this.userMobile||"",this.phoneValue=i.phone||"",this.faxValue=i.fax||"",this.taxNumberValue=i.taxNumber||"",this.partitaIVAValue=i.partitaIVA||"",this.taxTypeValue=i.taxType&&v.a.retrieveValue(this.taxTypeOptions,i.taxType,"code",{}),this.pecCodeValue=i.pecCode||"",this.pecEmailValue=i.pecEmail||"";var n="";if(this.pecCodeValue&&""!==this.pecCodeValue?n="pecCode":this.pecEmailValue&&""!==this.pecEmailValue&&(n="pecEmail"),n&&(this.pecTypeValue=v.a.retrieveValue(this.pecTypeOptions,n,"code",{})),this.dateOfBirthValue=i.dateOfBirth||"",this.farmSizeValue=i.farmSize||"",this.vegetarian=i.vegetarian&&"true"===i.vegetarian,this.otEmailConsent=i.otEmailConsent&&"true"===i.otEmailConsent,this.otMobileConsent=i.otMobileConsent&&"true"===i.otMobileConsent,this.agreementFax=i.agreementFax,this.emailValue=i.email?i.email:this.userEmail||"",this.farmerRegNumber=i.farmerRegNumber||"",this.arableAreaSizeValue=i.arableAreaSize||"",this.farmPartOfHolding=i.farmPartOfHolding&&"true"===i.farmPartOfHolding,this.customHoldingValue=i.customHolding||"",this.loadHoldings(i.holding),this.positionOnFarmValue=i.positionOnFarm&&v.a.retrieveValue(this.positionOnFarmOptions,i.positionOnFarm,"code",[]),this.bonusVizura=i.bonusVizura&&v.a.retrieveValue(this.bonusOptions("bonusVizura"),i.bonusVizura,"code",{}),this.bonusLimusClear=i.bonusLimusClear&&v.a.retrieveValue(this.bonusOptions("bonusLimusClear"),i.bonusLimusClear,"code",{}),this.bonusButisanComplete=i.bonusButisanComplete&&v.a.retrieveValue(this.bonusOptions("bonusButisanComplete"),i.bonusButisanComplete,"code",{}),this.bonusButisanAquaPack=i.bonusButisanAquaPack&&v.a.retrieveValue(this.bonusOptions("bonusButisanAquaPack"),i.bonusButisanAquaPack,"code",{}),this.salesRepresentative=i.salesRepresentative&&v.a.retrieveValue(this.salesRepresentativeOptions,i.salesRepresentative,"code",{}),this.purchasedProductVizura=i.purchasedProductVizura||"",this.purchasedProductLimusClear=i.purchasedProductLimusClear||"",this.purchasedProductButisanComplete=i.purchasedProductButisanComplete||"",this.purchasedProductButisanAquaPack=i.purchasedProductButisanAquaPack||"",this.contactStreetValue=i.contactStreet||"",this.contactStreetNumberValue=i.contactStreetNumber||"",this.contactPrefilledZip=i.contactZipcode||"",this.contactPrefilledCity=i.contactCity||"",this.farmSizeValue=v.a.formatFloatNumbers(this.farmSizeValue),this.arableAreaSizeValue=v.a.formatFloatNumbers(this.arableAreaSizeValue),this.prefilledZip||this.prefilledCity?this.getLocation(this.prefilledZip,this.prefilledCity,"locationValue"):this.isLocationRetrieved=!0,this.contactPrefilledZip||this.contactPrefilledCity?this.useEircode?(this.contactEircodeValue=i.contactPrefilledZip||"",this.getLocation(this.contactPrefilledZip,this.contactPrefilledCity,"contactLocationValue")):this.getLocation(this.contactPrefilledZip,this.contactPrefilledCity,"contactLocationValue"):this.isContactLocationRetrieved=!0,i.customProducts&&i.customProducts.length>0){this.customProducts=[];var o=JSON.parse(i.customProducts);"object"===yt()(o)&&null!==o&&o.forEach((function(e){var i=v.a.retrieveValue(t.customProductsList,e,"code",{});i&&t.customProducts.push(i)}))}var r=!1;if(this.showField("zipcode")&&this.showField("contactZipcode")){var l=i.zipcode||"",c=i.contactZipcode||"";l!==c&&""!==c&&(r=!0)}
1if(this.showField("city")&&this.showField("contactCity")){var u=i.city||"",d=i.contactCity||"";u!==d&&""!==d&&(r=!0)}if(this.showField("street")&&this.showField("contactStreet")){var p=i.street||"",m=i.contactStreet||"";p!==m&&""!==m&&(r=!0)}if(this.showField("streetNumber")&&this.showField("contactStreetNumber")){var h=i.streetNumber||"",f=i.contactStreetNumber||"";h!==f&&""!==f&&(r=!0)}r&&(this.useContactAddress="yes")},getLocation:function(t,e,i){var a=this;"contactLocationValue"===i?this.isContactLocationRetrieved=!1:this.isLocationRetrieved=!1;var s=this;this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){s[i]=t,"contactLocationValue"===i?a.isContactLocationRetrieved=!0:a.isLocationRetrieved=!0})).catch((function(){a.loadingError=!0}))},loadHoldings:function(t){var e=this;this.isHoldingRetrieved=!1,this.showField("holding")&&this.taxNumberValue&&""!==this.taxNumberValue&&this.settings.holdingCountryCode&&""!==this.settings.holdingCountryCode?this.$store.dispatch("forms/getHoldings",{countryCode:this.settings.holdingCountryCode,taxNumber:this.taxNumberValue}).then((function(i){"object"===yt()(i)&&null!==i&&(e.retrievedHoldingOptions=[],i.forEach((function(t){var i=t.name;t.billingCity&&""!==t.billingCity&&(i+=" (".concat(t.billingCity,")")),e.retrievedHoldingOptions.push({id:t.id,code:t.id,name:i})})),t&&(e.holdingValue=v.a.retrieveValue(e.holdingOptions,t,"code",[]),e.holdingValue&&""!==e.holdingValue&&(e.holdingIsDisabled=!0))),e.isHoldingRetrieved=!0})).catch((function(){e.loadingError=!0})):this.isHoldingRetrieved=!0},showField:function(t){var e=!1;return-1!==this.fieldsToShow.indexOf(t)&&(e=!0),!_e.a.useSalesForce()||"streetNumber"!==t&&"contactStreetNumber"!==t||(e=!1),e},isRequired:function(t){var e=!1;return-1!==this.fieldsRequired.indexOf(t)&&(e=!0),e},tooltip:function(t){var e=null;return this.serviceRefs&&this.serviceRefs.length>1&&(e="",e+="<h2>".concat(this.translations.subscriptions.tooltipServices.headline,"</h2>"),e+="<p>".concat(this.translations.subscriptions.tooltipServices.text,"</p>"),e+="<ul>",this.serviceRefs.forEach((function(i){if(i.formElements){var a=i.formElements.find((function(e){return e.name===t}));a&&a.display&&(e+="<li><b>".concat(i.service.name,"</b></li>"))}})),e+="</ul>"),e},bonusOptions:function(t){var e=[];void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].options.length&&(e=window.sspSelectFieldConfig[t].options.slice().sort((function(t,e){return e.ordering-t.ordering})));return e},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""},isLessThanFarmSize:function(t){var e=!0;return t&&""!==t&&this.farmSizeValue&&""!==this.farmSizeValue&&(e=v.a.stringToDecimal(t)<=v.a.stringToDecimal(this.farmSizeValue)),e},validate:function(){var t=this,e=!0,i=this.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),a=!1,s=null;return i.forEach((function(e){var i=e;i.forceValidation=!0,i.validate(),i.forceValidation=!1,i.valid||("yes"===t.useContactAddress||"contactZipcode"!==i.name&&"contactCity"!==i.name&&"contactStreet"!==i.name&&"contactStreetNumber"!==i.name)&&(a=!0,null===s&&(s=i))})),a&&(e=!1,this.scrollToFirstError(s)),e},scrollToFirstError:function(t){if(t)if("PopupComp"===this.$parent.$options.name){var e=this.$parent.getModalWrapperRef(),i=this.$parent.getModalRef();if(e&&i){var a=-1*(i.getBoundingClientRect().top-t.$el.getBoundingClientRect().top);e.scrollTo(0,a)}}else{var s=window.pageYOffset+t.$el.getBoundingClientRect().top-this.stickyHeaderHeight;window.scrollTo(0,s)}}}};var Ms=function(t){i("5ss+")},Rs=Object(l.a)(Ds,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row multi-consent-personal-data"},[t.loadingError?[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])]:t._e(),t._v(" "),i("div",{staticClass:"col-12"},[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.personalDataHeadline?i("h1",[t._v(t._s(t.personalDataHeadline))]):t._e(),t._v(" "),t.personalDataText?i("div",{domProps:{innerHTML:t._s(t.personalDataText)}}):t._e()])]),t._v(" "),t.serviceRefs&&t.serviceRefs.length>0?i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[i("h2",[t._v(t._s(t.translations.subscriptions.selectedServices.headline))]),t._v(" "),i("div",{staticClass:"selected-services"},t._l(t.serviceRefs,(function(e,a){return i("div",{key:a},[t._v(t._s(e.service.name))])})),0)])]):t._e(),t._v(" "),i("div",{staticClass:"row form-wrapper"},[i("div",{staticClass:"col-12"},[t.showField("farmType")?i("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"row"},[i("div",{staticClass:"col-12"},[i("RadioField",{attrs:{value:t.farmTypeValue,name:"farmType",options:t.farmTypeOptions,required:t.isRequired("farmType"),"do-on-change-validation":!0,cucumber:"form_select_farmType",tooltip:t.tooltip("farmType"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":[function(e){t.farmTypeValue=e},function(e){return t.farmTypeValue=e}]}})],1)]):t._e(),t._v(" "),t.showField("salutation")||t.showField("title")?i("div",{staticClass:"row"},[t.showField("salutation")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.salutationValue,name:"salutation","label-name":t.translations.label.salutation,placeholder:t.translations.singleSelect,options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":!0,cucumber:"form_select_salutation",tooltip:t.tooltip("salutation"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.salutationValue=e}}})],1):t._e(),t._v(" "),t.showField("title")?i("div",{staticClass:"col-12 col-sm-4"},[i("SelectField",{attrs:{value:t.titleValue,name:"title","label-name":t.translations.label.title,placeholder:t.translations.singleSelect,options:t.titleOptions,required:t.isRequired("title"),"do-on-change-validation":!0,cucumber:"form_select_title",tooltip:t.tooltip("title"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.titleValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("firstName")||t.showField("lastName")?i("div",{staticClass:"row"},[t.showField("firstName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.firstNameValue,name:"firstName","label-name":t.translations.label.firstName,required:t.isRequired("firstName"),"do-on-change-validation":!0,cucumber:"form_input_firstName",tooltip:t.tooltip("firstName"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.firstNameValue=e}}})],1):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.lastNameValue,name:"lastName","label-name":t.translations.label.lastName,required:t.isRequired("lastName"),"do-on-change-validation":!0,cucumber:"form_input_lastName",tooltip:t.tooltip("lastName"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.lastNameValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("farmerRegNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmerRegNumber,name:"farmerRegNumber","label-name":t.translations.label.farmerRegNumber,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,"input-type":"text","do-on-change-validation":!0,cucumber:"form_input_farmerRegNumber",required:t.isRequired("farmerRegNumber"),tooltip:t.tooltip("farmerRegNumber"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.farmerRegNumber=e}}})],1)]):t._e(),t._v(" "),t.showField("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"email","label-name":t.translations.label.email,"custom-validation-reg-exp":t.settings.emailPattern,"custom-error-message":t.translations.enterValidEmail,"input-type":"email",required:t.isRequired("email")||!t.isLoggedIn,"do-on-change-validation":!0,subscript:t.translations.subscript.email.change,disabled:!0,cucumber:"form_input_email",tooltip:t.tooltip("email"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("emailDisplay")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.emailValue,name:"emailDisplay","label-name":t.translations.label.email,"input-type":"email",required:!1,"do-on-change-validation":!0,disabled:!0,cucumber:"form_input_email",tooltip:t.tooltip("email"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.emailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("dateOfBirth")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.dateOfBirthValue,name:"dateOfBirth","label-name":t.translations.label.dateOfBirth,"custom-validation-reg-exp":t.settings.dateOfBirthPattern,"custom-error-message":t.translations.invalidFormat,placeholder:t.translations.placeholder.dateOfBirth,required:t.isRequired("dateOfBirth"),"do-on-change-validation":!0,cucumber:"form_input_dateOfBirth",tooltip:t.tooltip("dateOfBirth"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.dateOfBirthValue=e}}})],1)]):t._e(),t._v(" "),(t.showField("zipcode")||t.showField("city")||t.showField("street")||t.showField("streetNumber"))&&t.translations.superscript.address?i("div",{staticClass:"row"},[i("div",{staticClass:"col"},[t._v(t._s(t.translations.superscript.address))])]):t._e(),t._v(" "),t.showField("zipcode")||t.showField("city")?i("div",{staticClass:"row"},[t.showField("zipcode")?i("div",{staticClass:"col-12 col-sm-4"}
1,[t.useEircode?t._e():i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.tooltip("zipcode"),"tooltip-is-html":!t.billingAddressLocked,"tooltip-close":!0,disabled:t.billingAddressLocked,cucumber:"form_input_zipcode","tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.locationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.eircodeValue,name:"zipcode","label-name":t.translations.label.eircode,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.tooltip("zipcode"),"tooltip-is-html":!t.billingAddressLocked,"tooltip-close":!0,"custom-validation-reg-exp":t.settings.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("zipcode"),disabled:t.billingAddressLocked,"do-on-change-validation":!0,cucumber:"form_input_zipcode","tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.eircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("city"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.tooltip("city"),"tooltip-is-html":!t.billingAddressLocked,"tooltip-close":!0,disabled:t.billingAddressLocked,cucumber:"form_input_city","tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("street")||t.showField("streetNumber")?i("div",{staticClass:"row"},[t.showField("street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.street?t.translations.tooltip.street:t.tooltip("street"),"tooltip-is-html":!t.billingAddressLocked&&!t.translations.tooltip.street,"tooltip-close":!0,disabled:t.billingAddressLocked,"do-on-change-validation":!0,cucumber:"form_input_street","tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.tooltip("streetNumber"),"tooltip-is-html":!t.billingAddressLocked,"tooltip-close":!0,disabled:t.billingAddressLocked,"do-on-change-validation":!0,cucumber:"form_input_streetNumber","tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,required:t.isRequired("company"),"do-on-change-validation":!0,disabled:t.companyIsDisabled,tooltip:t.isLoyaltyVictoriaInSelectedServices||t.isLoyaltyBenefitoInSelectedServices?t.translations.tooltip.company:t.tooltip("company"),"tooltip-is-html":!t.isLoyaltyVictoriaInSelectedServices&&!t.isLoyaltyBenefitoInSelectedServices,"tooltip-close":!0,"custom-validation-reg-exp":t.companyFieldValidationRegExp,"custom-error-message":t.translations.companyValidationRegExpMessage,cucumber:"form_input_company","tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("phone")||t.showField("mobile")||t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[t.showField("mobile")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.settings.phonePattern,"custom-error-message":t.translations.invalidFormat,subscript:t.translations.subscript.mobile.change,disabled:!0,required:t.isRequired("mobile"),"do-on-change-validation":!0,cucumber:"form_input_mobile",tooltip:t.tooltip("mobile"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("mobileDisplay")&&"mobile"===t.loginType?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.mobileValue,name:"mobileDisplay","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,disabled:!0,required:!1,"do-on-change-validation":!0,cucumber:"form_input_mobile",tooltip:t.tooltip("mobile"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.mobileValue=e}}})],1):t._e(),t._v(" "),t.showField("phone")?i("div",{staticClass:"col-12 col-sm-6"},[i("TextField",{attrs:{value:t.phoneValue,name:"phone","label-name":t.translations.label.phone,placeholder:t.translations.placeholder.phone,"custom-validation-reg-exp":t.settings.phonePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("phone"),"do-on-change-validation":!0,cucumber:"form_input_phone",tooltip:t.tooltip("phone"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.phoneValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("fax")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.faxValue,name:"fax","label-name":t.translations.label.fax,placeholder:t.translations.placeholder.fax,"custom-validation-reg-exp":t.settings.faxPattern,"custom-error-message":t.translations.invalidFormat,superscript:t.translations.superscript.newsletter.fax,required:t.isRequired("fax"),"do-on-change-validation":!0,cucumber:"form_input_fax",tooltip:t.tooltip("fax"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.faxValue=e}}}),t._v(" "),t.agreementLabelFax?i("CheckboxField",{attrs:{value:t.agreementFax,name:"agreementFax","checkbox-label":t.agreementLabelFax,"validation-text":t.translations.invalid.agreementFax,"has-error":t.agreementFax&&!t.faxValue,"do-on-change-validation":!0,required:!1,cucumber:"form_checkbox_fax_agreement",tooltip:t.tooltip("fax"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.agreementFax=e}}}):t._e()],1)]):t._e(),t._v(" "),t.showField("taxType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.taxTypeValue,name:"taxType","label-name":t.getSelectFieldLabel("taxType"),placeholder:t.translations.singleSelect,options:t.taxTypeOptions,required:t.isRequired("taxType"),"do-on-change-validation":!0,cucumber:"form_select_taxType",tooltip:t.tooltip("taxType"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.taxTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.translations.label.taxNumber,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("taxNumber"),cucumber:"form_input_tax",tooltip:t.tooltip("taxNumber"),"tooltip-is-html":!0,"tooltip-close":!0,"custom-validation-reg-exp":t.taxNumberFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("partitaIVA")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.partitaIVAValue,name:"partitaIVA","label-name":t.translations.label.partitaIVA,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("partitaIVA")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,cucumber:"form_input_partitaIVA",tooltip:t.tooltip("partitaIVA"),"tooltip-is-html":!0,"tooltip-close":!0,"custom-validation-reg-exp":t.partitaIVAFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.partitaIVAValue=e}}})],1)]):t._e(),t._v(" "),t.showField("pecCode")||t.showField("pecEmail")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[t.translations.pecTypeHeadline?i("div",[i("b",[t._v(t._s(t.translations.pecTypeHeadline))])]):t._e(),t._v(" "),i("SelectField",{attrs:{value:t.pecTypeValue,name:"pecType","label-name":t.getSelectFieldLabel("pecType"),placeholder:t.translations.singleSelect,options:t.pecTypeOptions,required:t.isRequired("pecCode")||t.isRequired("pecEmail")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,"do-on-change-validation":!0,cucumber:"form_select_pecType",tooltip:t.tooltip("pecType"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.pecTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("pecCode")&&t.pecTypeValue&&"pecCode"===t.pecTypeValue.code?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.pecCodeValue,name:"pecCode","label-name":t.translations.label.pecCode,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("pecCode")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,cucumber:"form_input_pecCode","custom-validation-reg-exp":t.pecCodeFieldValidationRegExp,"custom-error-message":t.translations.invalidFormat,tooltip:t.tooltip("pecCode"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.pecCodeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("pecEmail")&&t.pecTypeValue&&"pecEmail"
1===t.pecTypeValue.code?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.pecEmailValue,name:"pecEmail","label-name":t.translations.label.pecEmail,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("pecEmail")||t.isFieldRequiredPartitaIVATaxNumberSpecialCase,cucumber:"form_input_pecEmail","custom-validation-reg-exp":t.settings.emailPattern,"custom-error-message":t.translations.enterValidEmail,tooltip:t.tooltip("pecEmail"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.pecEmailValue=e}}})],1)]):t._e(),t._v(" "),t.showField("jobTitle")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.jobTitleValue,name:"jobTitle","label-name":t.getSelectFieldLabel("jobTitle"),placeholder:t.translations.singleSelect,options:t.jobTitleOptions,required:t.isRequired("jobTitle"),"do-on-change-validation":!0,cucumber:"form_select_jobTitle",tooltip:t.tooltip("jobTitle"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.jobTitleValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.occupationTypeValue,name:"occupationType","label-name":t.translations.label.occupationType,placeholder:t.translations.singleSelect,options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":!0,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupationType",tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.tooltip("occupationType"),"tooltip-is-html":!t.billingAddressLocked,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.occupationTypeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideOccupation,expression:"!hideOccupation"}],staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{ref:"occupationValueRef",attrs:{value:t.occupationValue,name:"occupation","label-name":t.translations.label.occupation,placeholder:t.translations.singleSelect,options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":!0,"is-valid":t.occupationIsValid,"is-not-valid-message":t.occupationIsNotValidMessage,"is-valid-message":t.occupationIsValidMessage,disabled:t.occupationIsDisabled||t.billingAddressLocked,cucumber:"form_select_occupation",tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.occupation:t.tooltip("occupation"),"tooltip-is-html":!t.billingAddressLocked,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.occupationValue=e}}})],1)]):t._e(),t._v(" "),t.showOccupationFields&&t.occupationIsEnabledArableAreaSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.occupationArableAreaSizeValue,name:"occupationArableAreaSize","label-name":t.translations.label.arableAreaSize+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.tooltip.arableAreaSize,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("occupationArableAreaSize"),"do-on-change-validation":!0,"has-error":!t.isLessThanFarmSize(t.occupationArableAreaSizeValue),"has-error-message":t.translations.invalid.arableAreaSize},on:{"update:value":function(e){t.occupationArableAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),!t.showField("arableAreaSize")||!t.isLoyaltyInSelectedServices||t.showOccupationFields&&t.occupationIsEnabledArableAreaSize?t._e():i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.arableAreaSizeValue,name:"arableAreaSize","label-name":t.translations.sspCustomerLoyaltyServiceSingleDe.arableAreaSizeLabel+" ("+t.translations.label.unit.ha+")",tooltip:t.translations.sspCustomerLoyaltyServiceSingleDe.arableAreaSizeTooltip,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("arableAreaSize"),"do-on-change-validation":!0},on:{"update:value":function(e){t.arableAreaSizeValue=e}}})],1)]),t._v(" "),t.showOccupationFields&&t.occupationIsEnabledCrops?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{placeholder:t.translations.placeholder.crops,name:"occupationCrops","label-name":t.translations.label.crops,tooltip:t.translations.tooltip.crops,"crop-list":t.occupationCropList,required:t.occupationIsRequiredCrops&&t.occupationCropList.length>0,"do-on-change-validation":!0,preselected:t.occupationPrefilledCrops,"use-amiga-code":!0,"use-crm-crops":!0},on:{update:function(e){return t.occupationCropsValue=e}}})],1)]):t._e(),t._v(" "),t.showField("customProducts")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("ChecklistField",{attrs:{value:t.customProducts,name:"customProducts",list:t.customProductsList,"label-name":t.getSelectFieldLabel("customProducts"),"display-required-flag":t.isRequired("customProducts"),"children-required":!1,"do-on-change-validation":!0,required:t.isRequired("customProducts"),multiple:!0,cucumber:"form_checkbox_customProducts",tooltip:t.tooltip("customProducts"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.customProducts=e}}})],1)]):t._e(),t._v(" "),t.showField("positionOnFarm")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.positionOnFarmValue,name:"positionOnFarm","label-name":t.getSelectFieldLabel("positionOnFarm"),placeholder:t.translations.singleSelect,options:t.positionOnFarmOptions,required:t.isRequired("positionOnFarm"),"do-on-change-validation":!0,cucumber:"form_select_positionOnFarm",tooltip:t.tooltip("positionOnFarm"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.positionOnFarmValue=e}}})],1)]):t._e(),t._v(" "),t.showField("farmPartOfHolding")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.farmPartOfHolding,name:"farmPartOfHolding","checkbox-label":t.translations.label.farmPartOfHolding,"do-on-change-validation":!0,required:!1,cucumber:"form_checkbox_farmPartOfHolding",tooltip:t.tooltip("farmPartOfHolding"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.farmPartOfHolding=e}}})],1)]):t._e(),t._v(" "),t.showField("holding")&&t.farmPartOfHolding?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.holdingValue,name:"holding","label-name":t.translations.label.holding,placeholder:t.translations.singleSelect,options:t.holdingOptions,required:t.isRequired("holding"),disabled:t.holdingIsDisabled,"do-on-change-validation":!0,cucumber:"form_select_holding",tooltip:t.tooltip("holding"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.holdingValue=e}}})],1)]):t._e(),t._v(" "),t.showField("customHolding")&&t.farmPartOfHolding&&t.holdingValue&&t.holdingValue.id&&"not-listed"===t.holdingValue.id?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.customHoldingValue,name:"customHolding","label-name":t.translations.label.customHolding,required:t.isRequired("customHolding"),disabled:t.holdingIsDisabled,"do-on-change-validation":!0,cucumber:"form_input_customHolding",tooltip:t.tooltip("customHolding"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.customHoldingValue=e}}})],1)]):t._e(),t._v(" "),t.showField("farmSize")||t.showOccupationFields&&t.occupationIsEnabledFarmSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.farmSizeValue,name:"farmSize","label-name":t.translations.label.farmSize,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("farmSize"),"do-on-change-validation":!0,"has-error":t.errorFarmSize,"has-error-message":t.translations.invalid.farmSize,cucumber:"form_input_farmSize",tooltip:t.tooltip("farmSize"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.farmSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("organicAreaSize")||t.showOccupationFields&&t.occupationIsEnabledArableAreaSize?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.occupationOrganicAreaSizeValue,name:"occupationOrganicAreaSize","label-name":t.translations.label.organicAreaSize+" ("+t.translations.label.unit.ha+")","custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("organicAreaSize")||t.isRequired("occupationOrganicAreaSize"),"do-on-change-validation":!0,"has-error":!t.isLessThanFarmSize(t.occupationOrganicAreaSizeValue),"has-error-message":t.translations.invalid.organicAreaSize,cucumber:"form_input_organicArea"},on:{"update:value":function(e){t.occupationOrganicAreaSizeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("vegetarian")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.vegetarian,name:"vegetarian","checkbox-label":t.translations.label.vegetarian,"do-on-change-validation":!0,required:!1,cucumber:"form_checkbox_vegetarian",tooltip:t.tooltip("vegetarian"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.vegetarian=e}}})],1)]):t._e(),t._v(" "),t.showField("salesRepresentative")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.salesRepresentative,name:"salesRepresentative","label-name":t.getSelectFieldLabel("salesRepresentative"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.salesRepresentativeOptions,required:t.isRequired("salesRepresentative"),tooltip:t.tooltip("salesRepresentative"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.salesRepresentative=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductVizura")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductVizura,name:"purchasedProductVizura","label-name":t.translations.label.purchasedProductVizura,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductVizura"),"input-type":"number","do-on-change-validation":!0,tooltip:t.tooltip("purchasedProductVizura"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.purchasedProductVizura=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductLimusClear")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductLimusClear,name:"purchasedProductLimusClear","label-name":t.translations.label.purchasedProductLimusClear,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductLimusClear"),"input-type":"number","do-on-change-validation":!0,tooltip:t.tooltip("purchasedProductLimusClear"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.purchasedProductLimusClear=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductButisanComplete")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductButisanComplete,name:"purchasedProductButisanComplete","label-name":t.translations.label.purchasedProductButisanComplete,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductButisanComplete"),"input-type":"number","do-on-change-validation":!0,tooltip:t.tooltip("purchasedProductButisanComplete"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.purchasedProductButisanComplete=e}}})],1)]):t._e(),t._v(" "),t.showField("purchasedProductButisanAquaPack")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.purchasedProductButisanAquaPack,name:"purchasedProductButisanAquaPack","label-name":t.translations.label.purchasedProductButisanAquaPack,"custom-validation-reg-exp":t.settings.numberPattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("purchasedProductButisanAquaPack"),"input-type":"number","do-on-change-validation":!0,tooltip:t.tooltip("purchasedProductButisanAquaPack"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.purchasedProductButisanAquaPack=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusVizura")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusVizura,name:"bonusVizura","label-name":t.getSelectFieldLabel("bonusVizura"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusVizura"),required:t.isRequired("bonusVizura"),tooltip:t.tooltip("bonusVizura"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.bonusVizura=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusLimusClear")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusLimusClear,name:"bonusLimusClear","label-name":t.getSelectFieldLabel("bonusLimusClear"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusLimusClear"),required:t.isRequired("bonusLimusClear"),tooltip:t.tooltip("bonusLimusClear"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.bonusLimusClear=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusButisanComplete")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusButisanComplete,name:"bonusButisanComplete","label-name":t.getSelectFieldLabel("bonusButisanComplete"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusButisanComplete"),required:t.isRequired("bonusButisanComplete"),tooltip:t.tooltip("bonusButisanComplete"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.bonusButisanComplete=e}}})],1)]):t._e(),t._v(" "),t.showField("bonusButisanAquaPack")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.bonusButisanAquaPack,name:"bonusButisanAquaPack","label-name":t.getSelectFieldLabel("bonusButisanAquaPack"),"do-on-change-validation":!0,placeholder:t.translations.singleSelect,options:t.bonusOptions("bonusButisanAquaPack"),required:t.isRequired("bonusButisanAquaPack"),tooltip:t.tooltip("bonusButisanAquaPack"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.bonusButisanAquaPack=e}}})],1)]):t._e(),t._v(" "),(t.showField("contactZipcode")||t.showField("contactCity")||t.showField("contactStreet")||t.showField("contactStreetNumber"))&&t.showContactAddressArea?i("div",[t.serviceRefsWithContactFields&&t.serviceRefsWithContactFields.length>0?i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[i("h2",[t._v(t._s(t.translations.optionalData.registration.headline))]),t._v(" "),i("div",{staticClass:"optional-services"},t._l(t.serviceRefsWithContactFields,(function(e,a){return i("div",{key:a},[t._v(t._s(e.service.name))])})),0)])]):t._e(),t._v(" 
1"),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("p",[t._v(t._s(t.translations.optionalData.registration.text))])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.useContactAddress,expression:"useContactAddress"}],attrs:{value:"",type:"radio"},domProps:{checked:t._q(t.useContactAddress,"")},on:{change:function(e){t.useContactAddress=""}}}),t._v(" "),i("span",[t._v(t._s(t.translations.optionalData.registration.no))])])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("label",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.useContactAddress,expression:"useContactAddress"}],attrs:{value:"yes",type:"radio"},domProps:{checked:t._q(t.useContactAddress,"yes")},on:{change:function(e){t.useContactAddress="yes"}}}),t._v(" "),i("span",[t._v(t._s(t.translations.optionalData.registration.yes))])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.useContactAddress,expression:"useContactAddress"}],staticClass:"mt-3"},[t.showField("contactZipcode")||t.showField("contactCity")?i("div",{staticClass:"row"},[t.showField("contactZipcode")?i("div",{staticClass:"col-12 col-sm-4"},[t.useEircode?t._e():i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactZipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("contactZipcode"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,cucumber:"form_input_contactZipcode",tooltip:t.tooltip("contactZipcode"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.contactLocationValue=e}}}),t._v(" "),t.useEircode?i("TextField",{attrs:{value:t.contactEircodeValue,name:"contactZipcode","label-name":t.translations.label.eircode,"custom-validation-reg-exp":t.settings.eircodePattern,"custom-error-message":t.translations.invalidFormat,required:t.isRequired("contactZipcode"),"do-on-change-validation":!0,cucumber:"form_input_contactZipcode",tooltip:t.tooltip("contactZipcode"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.contactEircodeValue=e}}}):t._e()],1):t._e(),t._v(" "),t.showField("contactCity")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.contactLocationValue,name:"contactCity","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("contactCity"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,cucumber:"form_input_contactCity",tooltip:t.tooltip("contactCity"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){return t.contactLocationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("contactStreet")||t.showField("contactStreetNumber")?i("div",{staticClass:"row"},[t.showField("contactStreet")?i("div",{staticClass:"col-12 col-sm-8"},[i("TextField",{attrs:{value:t.contactStreetValue,name:"contactStreet","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("contactStreet"),"do-on-change-validation":!0,cucumber:"form_input_contactStreet",tooltip:t.tooltip("contactStreet"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.contactStreetValue=e}}})],1):t._e(),t._v(" "),t.showField("contactStreetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.contactStreetNumberValue,name:"contactStreetNumber","label-name":t.translations.label.no,required:t.isRequired("contactStreetNumber"),"do-on-change-validation":!0,cucumber:"form_input_contactStreetNumber",tooltip:t.tooltip("contactStreetNumber"),"tooltip-is-html":!0,"tooltip-close":!0,"tooltip-class":"multi-consent-personal-data-tooltip"},on:{"update:value":function(e){t.contactStreetNumberValue=e}}})],1):t._e()]):t._e()])]):t._e(),t._v(" "),t.showField("otEmailConsent")&&"email"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otEmailConsent,name:"otEmailConsent","checkbox-label":t.translations.label.otEmailConsent,"do-on-change-validation":!0,cucumber:"form_checkbox_otEmailConsent",required:t.isRequired("otEmailConsent")},on:{"update:value":function(e){t.otEmailConsent=e}}})],1)]):t._e(),t._v(" "),t.showField("otMobileConsent")&&"mobile"===t.loginType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.otMobileConsent,name:"otMobileConsent","checkbox-label":t.translations.label.otMobileConsent,"do-on-change-validation":!0,cucumber:"form_checkbox_otMobileConsent",required:t.isRequired("otMobileConsent")},on:{"update:value":function(e){t.otMobileConsent=e}}})],1)]):t._e()])])]),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Ms,"data-v-42c2acca",null).exports;function $s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Ns(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?$s(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):$s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var js={name:"MultiConsentLegalEntities",components:{CheckboxField:at,AdditionalAddressesField:Ma,CropsField:Ht,RadioField:wa,TextField:U.a,TextFieldMulti:It,SelectField:Et.a,SelectMultiField:Vt.a,SelectMultiTagListField:$t,ProductsWithFilterField:ne,LocationField:ce,ChecklistField:pe,Loader:j.a,BPopover:Va.a,DebugMode:b.a},props:{settings:{type:Object,default:function(){return{}}},subscriptions:{type:Array,default:function(){return[]}},legalEntitiesHeadline:{type:String,default:""},legalEntitiesText:{type:String,default:""}},data:function(){return{showForm:!1,isLoyaltyVictoriaInSelectedServices:!1,serviceRefs:[],personalDataRef:{},fieldsToShow:[],fieldsRequired:[],parentPlayer:!1,companyValue:"",locationValue:{},streetValue:"",streetNumberValue:"",shopProfileValue:{},officialFarmIdValue:"",uniqueViewCodeValue:"",personTypeValue:{},personTypeDefaultSet:!1,taxNumberValue:"",consentProductFlow:!1,consentLegalEntity:!1,additionalAddressesValue:[],legalEntites:[],editIndex:-1,loadingError:!1,isLocationRetrieved:!0,isValid:!1,hideBackButton:!1}},computed:Ns(Ns({},Object(m.c)({billingAddressLocked:function(t){return t.forms.billingAddressLocked}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},addLegalEntityTranslation:function(){var t=this.translations.addLegalEntity;return this.legalEntites&&this.legalEntites.length>0&&(t=this.translations.addFurtherLegalEntity),t},enableSalesForce:function(){return _e.a.useSalesForce()},isLoaderVisible:function(){return!this.isDataCompletelyLoaded&&!this.loadingError},isDataCompletelyLoaded:function(){return this.isLocationRetrieved},isSubmitDisabled:function(){var t=!1;return this.isValid||(t=!0),this.isFarmTypeIndividualFarm&&(t=!1),t},shopProfileOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.shopProfile&&window.sspSelectFieldConfig.shopProfile.options.length?window.sspSelectFieldConfig.shopProfile.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},personTypeOptions:function(){if(void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.personType&&window.sspSelectFieldConfig.personType.options.length){var t=window.sspSelectFieldConfig.personType.options.slice().sort((function(t,e){return e.ordering-t.ordering}));if(this.isLoyaltyVictoriaInSelectedServices){var e=t.find((function(t){return"individualFarmer"===t.code}));e&&t.splice(t.indexOf(e),1)}return t}return[]},taxNumberFieldLabel:function(){var t=this.translations.label.taxNumber;return this.personTypeValue&&this.personTypeValue.code&&(t=this.translations.label.nipTaxNumber,"individualFarmer"===this.personTypeValue.code&&(t=this.translations.label.peselTaxNumber)),t},taxNumberFieldValidationFunc:function(){var t=null;return this.personTypeValue&&this.personTypeValue.code&&(t=this.validateNIPTaxNumber,"individualFarmer"===this.personTypeValue.code&&(t=this.validatePESELTaxNumber)),t},isPersonTypeNaturalPerson:function(){var t=!1;return this.personTypeValue&&this.personTypeValue.code&&"naturalPerson"===this.personTypeValue.code&&(t=!0),t},showAdditionalAddressesDependedOnFarmType:function(){return!0},isFarmTypeIndividualFarm:function(){var t=!1;return this.showField("farmType")&&this.personalDataRef.farmTypeValue&&this.personalDataRef.farmTypeValue.code&&"individualFarm"===this.personalDataRef.farmTypeValue.code&&(t=!0),t},companyFieldValidationRegExp:function(){var t=null;return this.translations.companyValidationRegExp&&""!==this.translations.companyValidationRegExp&&(t=new RegExp(this.translations.companyValidationRegExp)),t}}),watch:{legalEntites:function(){this.legalEntites&&this.legalEntites.length>0?this.isValid=!0:this.isValid=!1},parentPlayer:function(){this.parentPlayer&&(""===this.companyValue&&this.personalDataRef.companyValue&&(this.companyValue=this.personalDataRef.companyValue),0===Object.keys(this.locationValue).length&&this.personalDataRef.locationValue&&(this.locationValue=this.personalDataRef.locationValue),""===this.streetValue&&this.personalDataRef.streetValue&&(this.streetValue=this.personalDataRef.streetValue))}}
1,methods:{init:function(t,e,i){var a=this;this.personalDataRef=e,this.hideBackButton=i,this.showForm=!1,this.loadingError=!1,this.serviceRefs=t.filter((function(t){return t.agreement})),this.fieldsToShow=[],this.fieldsRequired=[];var s=this.serviceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-victoria-service"===t.service.formId}));this.isLoyaltyVictoriaInSelectedServices=!!s,this.serviceRefs.forEach((function(t){t.formElements&&t.formElements.forEach((function(t){var e=t.name;t.display&&(-1===a.fieldsToShow.indexOf(e)&&a.fieldsToShow.push(e),"fax"===e&&-1===a.fieldsToShow.indexOf("agreementFax")&&a.fieldsToShow.push("agreementFax")),t.mandatory&&-1===a.fieldsRequired.indexOf(e)&&a.fieldsRequired.push(e)}))})),this.loadEntitesData(),this.isFarmTypeIndividualFarm&&(this.legalEntites&&this.legalEntites.length>0?this.editEntry(0):this.addEntry())},loadEntitesData:function(){var t=[];this.serviceRefs.forEach((function(e){e.data&&t.push(e.data)}));var e=ut.a.mergeDatas(t);this.legalEntites=[],e.legalEntites&&(this.legalEntites=JSON.parse(JSON.stringify(e.legalEntites)),this.legalEntites&&this.legalEntites.forEach((function(t){t.loaded=!0})))},loadEntityData:function(t){var e=t;this.parentPlayer=e.parentPlayer&&("true"===e.parentPlayer||!0===e.parentPlayer),this.companyValue=e.company||"",this.locationValue={},this.prefilledZip=v.a.prefillLocation(e,"zipcode"),this.prefilledCity=v.a.prefillLocation(e,"city"),this.prefilledZip||this.prefilledCity?this.getLocation(this.prefilledZip,this.prefilledCity):this.isLocationRetrieved=!0,this.streetValue=e.street||"",this.streetNumberValue=e.streetNumber||"",this.shopProfileValue=e.shopProfile&&v.a.retrieveValue(this.shopProfileOptions,e.shopProfile,"code",{}),this.officialFarmIdValue=e.officialFarmId||"",this.uniqueViewCodeValue=e.uniqueViewCode||"",this.personTypeValue=e.personType&&v.a.retrieveValue(this.personTypeOptions,e.personType,"code",{}),this.setPersonTypeDefaultValue(),this.taxNumberValue=e.taxNumber||"",this.consentProductFlow=e.consentProductFlow&&("true"===e.consentProductFlow||!0===e.consentProductFlow),this.consentLegalEntity=e.consentLegalEntity&&("true"===e.consentLegalEntity||!0===e.consentLegalEntity),e.additionalAddresses&&e.additionalAddresses.length>0?this.additionalAddressesValue=e.additionalAddresses:this.additionalAddressesValue=[]},setPersonTypeDefaultValue:function(){if(this.personTypeDefaultSet=!1,this.showField("legalEntites.personType")&&(void 0===this.personTypeValue||0===Object.keys(this.personTypeValue).length)){var t=this.personTypeOptions.find((function(t){return"individualFarmer"===t.code}));(t||(t=this.personTypeOptions.find((function(t){return"legalPerson"===t.code}))))&&(this.personTypeValue=t,this.personTypeDefaultSet=!0)}},getLocation:function(t,e){var i=this;this.isLocationRetrieved=!1,this.$store.dispatch("forms/getByAddressPrefilled",{zipcode:t,name:e}).then((function(t){i.locationValue=t,i.isLocationRetrieved=!0})).catch((function(){i.loadingError=!0}))},showField:function(t){var e=!1;return-1!==this.fieldsToShow.indexOf(t)&&(e=!0),!_e.a.useSalesForce()||"streetNumber"!==t&&"contactStreetNumber"!==t&&"legalEntites.streetNumber"!==t||(e=!1),e},isRequired:function(t){var e=!1;return-1!==this.fieldsRequired.indexOf(t)&&(e=!0),e},getSelectFieldLabel:function(t){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig[t]&&window.sspSelectFieldConfig[t].label?window.sspSelectFieldConfig[t].label:""},validateNIPTaxNumber:function(t){if(!/^\d+$/.test(t))return!1;var e=[6,5,7,2,3,4,5,6,7],i=t;if(10===(i=i.replace(/[\s-]/g,"")).length&&parseInt(i,10)>0){for(var a=0,s=0;s<9;s+=1)a+=i[s]*e[s];return a%11===Number(i[9])}return!1},validatePESELTaxNumber:function(t){if(!/^\d+$/.test(t))return!1;if(["00000000000","11111111111","22222222222","33333333333","44444444444","55555555555","66666666666","77777777777","88888888888","99999999999"].includes(t))return!1;var e=t;if(null===e||11!==e.length)return!1;for(var i=e.split(""),a=0,s=0;s<i.length-1;s+=1)a+=+i[s]*this.validatePESELTaxNumberGetMultiplier(s+1);var n=a%10,o=Number(e.substr(e.length-1));return 0===n&&0===o||o===10-n},validatePESELTaxNumberGetMultiplier:function(t){switch(t%4){case 1:return 1;case 2:return 3;case 3:return 7;case 0:return 9}throw"Something went wrong with the index calculation"}
1,back:function(){this.showForm=!1,this.$emit("back")},cancelForm:function(){this.showForm=!1},submit:function(){this.isFarmTypeIndividualFarm?this.saveLegalEntity()&&this.$emit("submit"):this.isValid&&this.$emit("submit")},getLegalEntityListName:function(t,e){var i="";if(t){var a=e+1;a<10&&(i+="0"),i+=a,i+=" ",t.company&&(i+=t.company),t.company&&t.city&&(i+=", "),t.city&&(i+=t.city)}return i},editEntry:function(t){this.editIndex=t;var e=this.legalEntites[this.editIndex];this.loadEntityData(e),this.showForm=!0},addEntry:function(){var t=this;this.editIndex=-1,this.parentPlayer=!1,this.companyValue="",this.locationValue={},this.streetValue="",this.streetNumberValue="",this.shopProfileValue={},this.officialFarmIdValue="",this.uniqueViewCodeValue="",this.personTypeValue={},this.setPersonTypeDefaultValue(),this.taxNumberValue="",this.consentProductFlow=!1,this.consentLegalEntity=!1,this.additionalAddressesValue=[],0===this.legalEntites.length&&this.$nextTick((function(){t.parentPlayer=!0})),this.showForm=!0},deleteEntry:function(t){this.legalEntites.splice(t,1)},saveLegalEntity:function(){var t=this.validateEntity();if(t){var e=this.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),i=ut.a.buildFormContent(e,null);delete i.country,i.parentPlayer&&this.legalEntites.forEach((function(t){t.parentPlayer=!1})),-1===this.editIndex?this.legalEntites.push(i):(this.legalEntites[this.editIndex].loaded&&(i.loaded=this.legalEntites[this.editIndex].loaded),this.legalEntites[this.editIndex].accountId&&(i.accountId=this.legalEntites[this.editIndex].accountId),this.legalEntites[this.editIndex]=i),this.showForm=!1}return t},validateEntity:function(){var t=!0,e=this.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),i=!1,a=null;return e.forEach((function(t){var e=t;e.forceValidation=!0,e.validate(),e.forceValidation=!1,e.valid||(i=!0,null===a&&(a=e))})),i&&(t=!1,this.scrollToFirstError(a)),t},scrollToFirstError:function(t){if(t)if("PopupComp"===this.$parent.$options.name){var e=this.$parent.getModalWrapperRef(),i=this.$parent.getModalRef();if(e&&i){var a=-1*(i.getBoundingClientRect().top-t.$el.getBoundingClientRect().top);e.scrollTo(0,a)}}else{var s=window.pageYOffset+t.$el.getBoundingClientRect().top-this.stickyHeaderHeight;window.scrollTo(0,s)}}}};var zs=function(t){i("mE0S")},Bs=Object(l.a)(js,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"row multi-consent-legal-entities"},[t.loadingError?[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])]:t._e(),t._v(" "),i("div",{staticClass:"col-12"},[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.legalEntitiesHeadline?i("h1",[t._v(t._s(t.legalEntitiesHeadline))]):t._e(),t._v(" "),t.legalEntitiesText?i("div",{domProps:{innerHTML:t._s(t.legalEntitiesText)}}):t._e()])]),t._v(" "),t.showForm?i("div",{staticClass:"row form-wrapper"},[i("div",{staticClass:"col-12"},[t.showField("legalEntites.parentPlayer")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.parentPlayer,name:"parentPlayer","checkbox-label":t.translations.label.parentPlayer,"do-on-change-validation":!0,required:!1,cucumber:"form_checkbox_parentPlayer"},on:{"update:value":function(e){t.parentPlayer=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.company")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.companyValue,name:"company","label-name":t.translations.label.company,tooltip:t.translations.tooltip.company,required:t.isRequired("legalEntites.company"),"do-on-change-validation":!0,"custom-validation-reg-exp":t.companyFieldValidationRegExp,"custom-error-message":t.translations.companyValidationRegExpMessage,cucumber:"form_input_company"},on:{"update:value":function(e){t.companyValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.zipcode")||t.showField("legalEntites.city")?i("div",{staticClass:"row"},[t.showField("legalEntites.zipcode")?i("div",{staticClass:"col-12 col-sm-4"},[i("LocationField",{attrs:{value:t.locationValue,name:"zipcode","label-name":t.translations.label.zipcode,anchor:"zipcode",required:t.isRequired("legalEntites.zipcode"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e(),t._v(" "),t.showField("legalEntites.city")?i("div",{staticClass:"col-12 col-sm-8"},[i("LocationField",{attrs:{value:t.locationValue,name:"city","label-name":t.translations.label.city,anchor:"name",required:t.isRequired("legalEntites.city"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,cucumber:"form_input_city"},on:{"update:value":function(e){return t.locationValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("legalEntites.street")||t.showField("legalEntites.streetNumber")?i("div",{staticClass:"row"},[t.showField("legalEntites.street")?i("div",{staticClass:"col-12",class:{"col-sm-8":t.showField("legalEntites.streetNumber")}},[i("TextField",{attrs:{value:t.streetValue,name:"street","label-name":t.enableSalesForce?t.translations.label.streetNo:t.translations.label.street,required:t.isRequired("legalEntites.street"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:t.translations.tooltip.legalEntityStreet,disabled:t.billingAddressLocked,"do-on-change-validation":!0,cucumber:"form_input_street"},on:{"update:value":function(e){t.streetValue=e}}})],1):t._e(),t._v(" "),t.showField("legalEntites.streetNumber")?i("div",{staticClass:"col-12 col-sm-4"},[i("TextField",{attrs:{value:t.streetNumberValue,name:"streetNumber","label-name":t.translations.label.no,required:t.isRequired("legalEntites.streetNumber"),tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"do-on-change-validation":!0,cucumber:"form_input_streetNumber"},on:{"update:value":function(e){t.streetNumberValue=e}}})],1):t._e()]):t._e(),t._v(" "),t.showField("legalEntites.shopProfile")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.shopProfileValue,name:"shopProfile","label-name":t.getSelectFieldLabel("shopProfile"),placeholder:t.translations.singleSelect,options:t.shopProfileOptions,required:t.isRequired("legalEntites.shopProfile"),"do-on-change-validation":!0,cucumber:"form_select_shopProfile"},on:{"update:value":function(e){t.shopProfileValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.officialFarmId")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.officialFarmIdValue,name:"officialFarmId","label-name":t.translations.label.officialFarmId,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("legalEntites.officialFarmId"),cucumber:"form_input_officialFarmId"},on:{"update:value":function(e){t.officialFarmIdValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.uniqueViewCode")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.uniqueViewCodeValue,name:"uniqueViewCode","label-name":t.translations.label.uniqueViewCode,"
1input-type":"text","do-on-change-validation":!0,required:t.isRequired("legalEntites.uniqueViewCode"),cucumber:"form_input_uniqueViewCode"},on:{"update:value":function(e){t.uniqueViewCodeValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.personType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("RadioField",{attrs:{value:t.personTypeValue,name:"personType",options:t.personTypeOptions,required:t.isRequired("legalEntites.personType"),"do-on-change-validation":!0,cucumber:"form_select_personType"},on:{"update:value":[function(e){t.personTypeValue=e},function(e){return t.personTypeValue=e}]}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.taxNumber")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.taxNumberValue,name:"taxNumber","label-name":t.taxNumberFieldLabel,"input-type":"text","do-on-change-validation":!0,required:t.isRequired("legalEntites.taxNumber"),cucumber:"form_input_tax","custom-validation-func":t.taxNumberFieldValidationFunc,"custom-error-message":t.translations.invalidFormat},on:{"update:value":function(e){t.taxNumberValue=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.consentProductFlow")&&t.isPersonTypeNaturalPerson?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.consentProductFlow,name:"consentProductFlow","checkbox-label":t.translations.label.consentProductFlow,"do-on-change-validation":!0,required:t.isRequired("legalEntites.consentProductFlow"),cucumber:"form_checkbox_consentProductFlow"},on:{"update:value":function(e){t.consentProductFlow=e}}})],1)]):t._e(),t._v(" "),t.showField("legalEntites.additionalAddresses")&&t.showAdditionalAddressesDependedOnFarmType?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("AdditionalAddressesField",{attrs:{value:t.additionalAddressesValue,name:"additionalAddresses","label-name":t.translations.label.additionalAddresses,"add-address-label":t.translations.field.additionalAddresses.addAddress,required:t.isRequired("legalEntites.additionalAddresses"),"do-on-change-validation":!0,"show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,cucumber:"form_select_additionalAddresses",tooltip:t.billingAddressLocked?t.translations.tooltip.billingAddressLocked.address:"",disabled:t.billingAddressLocked,"label-class-name":"field-additional-addresses-label"},on:{"update:value":[function(e){t.additionalAddressesValue=e},function(e){return t.additionalAddressesValue=e}]}})],1)]):t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.consentLegalEntity,name:"consentLegalEntity","checkbox-label":t.translations.label.consentLegalEntity,"do-on-change-validation":!0,required:!0,cucumber:"form_checkbox_consentLegalEntity"},on:{"update:value":function(e){t.consentLegalEntity=e}}})],1)])])]):i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"entities-list"},[i("ul",[t._l(t.legalEntites,(function(e,a){return i("li",{key:a,staticClass:"has-icon",class:[!0!==e.loaded?"has-delete":"",!e.consentLegalEntity||"true"!==e.consentLegalEntity&&!0!==e.consentLegalEntity?"text-secondary":""],on:{click:function(e){return t.editEntry(a)}}},[i("div",{staticClass:"entry-icon",class:[!e.parentPlayer||"true"!==e.parentPlayer&&!0!==e.parentPlayer?"":"icon-parent-player",!e.consentLegalEntity||"true"!==e.consentLegalEntity&&!0!==e.consentLegalEntity?"":"icon-check"],attrs:{id:"legalEntity-icon-"+a}}),t._v("\n              "+t._s(t.getLegalEntityListName(e,a))+"\n              "),t._v(" "),!0!==e.loaded?i("div",{staticClass:"entry-delete",on:{click:function(e){return e.stopPropagation(),t.deleteEntry(a)}}}):t._e(),t._v(" "),!1==("true"===e.consentLegalEntity||!0===e.consentLegalEntity)&&t.translations.legalEntityInactive?i("b-popover",{attrs:{target:"legalEntity-icon-"+a,placement:"top",triggers:"hover"}},[i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.translations.legalEntityInactive)}})]):t._e()],1)})),t._v(" "),i("li",{staticClass:"has-icon",on:{click:function(e){return t.addEntry()}}},[i("div",{staticClass:"entry-icon icon-plus"}),t._v("\n              "+t._s(t.addLegalEntityTranslation)+"\n            ")])],2)])])]),t._v(" "),t._t("before_buttons"),t._v(" "),!t.showForm||t.isFarmTypeIndividualFarm?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"}
1,[t.hideBackButton?t._e():i("button",{staticClass:"ssp-button d-inline back-button mr-md-3",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.goBack)},on:{click:function(e){return t.back()}}}),t._v(" "),i("button",{staticClass:"ssp-button d-inline",class:{disabled:t.isSubmitDisabled},attrs:{disabled:t.isSubmitDisabled,type:"button"},domProps:{innerHTML:t._s(t.translations.saveSubscription)},on:{click:function(e){return t.submit()}}})])]):i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline back-button mr-md-3",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.cancel)},on:{click:function(e){return t.cancelForm()}}}),t._v(" "),i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.saveLegalEntity)},on:{click:function(e){return t.saveLegalEntity()}}})])])],2),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,zs,"data-v-136b4e6a",null).exports;function qs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function Us(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?qs(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):qs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Hs={name:"SignUpForm",components:{MultiConsentService:vs,MultiConsentPersonalData:Rs,MultiConsentLegalEntities:Bs,PopupComp:o.a,PopupInfo:W,Loader:j.a,Fragment:ua.a},props:{services:{type:Array,default:function(){return[]}},mobileServices:{type:Array,default:function(){return[]}},settings:{type:Object,default:function(){return{}}},subscriptions:{type:Array,default:function(){return[]}},headline:{type:String,default:""},text:{type:String,default:""},mobileServicesHeadline:{type:String,default:""},mobileServicesText:{type:String,default:""},personalDataHeadline:{type:String,default:""},personalDataText:{type:String,default:""},activeSubscriptionsTabId:{type:String,default:null},tealiumValue:{type:String,default:""},changeCompanyMultipleTimes:{type:Boolean,default:!1}},data:function(){return{isSubmitServiceDisabled:!0,loaderVisible:!1,loadingError:!1,doCheckFormDataChanged:!0,popupSuccessInfoOpen:!1,errorMsg:"",isShowLegalEntities:!1}},computed:Us(Us({},Object(m.c)({loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},allServiceRefs:function(){var t=[];return this.$refs&&this.$refs.serviceRefs&&(t=this.$refs.serviceRefs),t},servicesWithoutSubscribed:function(){var t=this;return this.services.filter((function(e){return!t.subscriptions.find((function(t){return t.id===e.formId}))}))},isLoyaltyBenefitoInSubscribedOrSelected:function(){var t=!1;return(this.subscriptions.find((function(t){return"ssp-customer-loyalty-benefito-service"===t.id}))||this.allServiceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-benefito-service"===t.service.formId})))&&(t=!0),t},isLoyaltyVictoriaInSubscribedOrSelected:function(){var t=!1;return(this.subscriptions.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.id}))||this.allServiceRefs&&this.allServiceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-victoria-service"===t.service.formId})))&&(t=!0),t},isLoyaltyVictoriaOrBenefitoSelected:function(){var t=!1;return!this.isSubmitServiceDisabled&&this.allServiceRefs&&this.allServiceRefs.find((function(t){return!0===t.agreement&&("ssp-customer-loyalty-victoria-service"===t.service.formId||"ssp-customer-loyalty-benefito-service"===t.service.formId)}))&&(t=!0),t},oneSelectedServiceHasOpt:function(){var t=!1;return!this.isSubmitServiceDisabled&&this.allServiceRefs&&this.allServiceRefs.find((function(t){return!0===t.agreement&&"OPTIN"===t.service.optType}))&&(t=!0),t},hasLegalEntitesData:function(){var t=!1;if(this.isLoyaltyVictoriaOrBenefitoSelected){var e=[];
1this.allServiceRefs.forEach((function(t){t.data&&e.push(t.data)}));var i=ut.a.mergeDatas(e);i.legalEntites&&i.legalEntites.length>0&&(t=!0)}return t},popupSuccessText:function(){var t=this.translations.submit.service.optNone.subscribe;return this.oneSelectedServiceHasOpt&&(t=this.translations.submit.service.subscribe,this.loginType&&"mobile"===this.loginType&&(t=this.translations.submit.service.mobile.subscribe)),t},popupSuccessTextButton:function(){var t=this.translations.ok;return this.oneSelectedServiceHasOpt&&this.loginType&&"mobile"===this.loginType&&(t=this.commonTranslations.continue),t},getVerificationMobilePageUrl:function(){var t=this.config.verificationMobilePageUrl;if(t+="?optType=OPTIN",!this.isSubmitServiceDisabled&&this.allServiceRefs){var e=[];this.allServiceRefs.filter((function(t){return!0===t.agreement})).forEach((function(t){t.service&&t.service.formId&&e.push(t.service.formId)})),e&&e.length>0&&(t+="&formIds=".concat(encodeURIComponent(e.join(","))))}return t},functionHelper:function(){return v.a}}),mounted:function(){var t=this;window.addEventListener("beforeunload",(function(e){var i=t.allServiceRefs.find((function(t){return!0===t.agreement}));if(t.doCheckFormDataChanged&&i){var a=e;a.preventDefault(),a.returnValue=""}})),this.checkAndDisableAgreementForServices()},methods:{serviceChangedAgreement:function(){(this.isSubmitServiceDisabled=!0,this.allServiceRefs)&&(this.allServiceRefs.find((function(t){return!0===t.agreement}))&&(this.isSubmitServiceDisabled=!1));this.checkAndDisableAgreementForServices()},showActiveSubscriptions:function(){if(this.activeSubscriptionsTabId){var t=document.getElementById(this.activeSubscriptionsTabId);t&&t.click()}},submitService:function(){var t=this;if(!this.isSubmitServiceDisabled&&this.allServiceRefs){var e=!0;this.allServiceRefs.forEach((function(t){t.validate()||(e=!1)})),e&&(this.isShowLegalEntities=!1,this.$refs.popupPersonalDataLegalEntitesRef.open((function(){t.$refs.personalDataRef.init(t.allServiceRefs,!1,t.isLoyaltyVictoriaOrBenefitoSelected)})),window.scrollTo(0,0))}},personalDataAllValid:function(){if(this.isLoyaltyVictoriaOrBenefitoSelected)if(this.hasLegalEntitesData)this.$refs.legalEntitiesRef.init(this.allServiceRefs,this.$refs.personalDataRef,!1),this.submitPersonalData();else{this.isShowLegalEntities=!0;this.$refs.legalEntitiesRef.init(this.allServiceRefs,this.$refs.personalDataRef,!0)}else this.submitPersonalData()},submitPersonalDataShowLegalEntities:function(){this.$refs&&this.$refs.personalDataRef&&(this.$refs.personalDataRef.validate()&&(this.hasLegalEntitesData?(this.$refs.legalEntitiesRef.init(this.allServiceRefs,this.$refs.personalDataRef,!1),this.submitPersonalData()):(this.isShowLegalEntities=!0,this.$refs.legalEntitiesRef.init(this.allServiceRefs,this.$refs.personalDataRef,!1))))},submitLegalEntities:function(){this.submitPersonalData()},backToPersonalData:function(){this.isShowLegalEntities=!1},submitPersonalData:function(){var t=this;if(this.$refs&&this.$refs.personalDataRef&&this.$refs.personalDataRef.validate()){this.$refs.popupPersonalDataLegalEntitesRef.close(),this.loaderVisible=!0,this.loadingError=!1;var e={};this.allServiceRefs.forEach((function(i){if(i.agreement){var a=i.service.formId,s=i.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),n=ut.a.buildFormContent(s,t.config.country),o=t.$refs.personalDataRef.$children.filter((function(t){return ct.includes(t.$options._componentTag)&&i.showField(t.name)})),r=Us(Us({},ut.a.buildFormContent(o,t.config.country)),n);t.$refs.personalDataRef.useContactAddress||(i.showField("contactZipcode")&&(r.contactZipcode=r.zipcode),i.showField("contactCity")&&(r.contactCity=r.city),i.showField("contactStreet")&&(r.contactStreet=r.street),i.showField("contactStreetNumber")&&(r.contactStreetNumber=r.streetNumber)),i.showField("legalEntites")&&(r.legalEntites=t.$refs.legalEntitiesRef.legalEntites),e[a]=r}})),this.doCheckFormDataChanged=!1,this.$store.dispatch("forms/submitForms",{content:e}).then((function(){t.popupSuccessInfoOpen=!0,t.loaderVisible=!1})).catch((function(e){t.loadingError=!0;var i=e.response.data;i&&"There are already contacts with the same mobile phone. Use an existing record 
1instead."===i.error&&(t.errorMsg=t.translations.error.registration.phone)}))}},closePopupSuccessInfo:function(){var t=this;this.popupSuccessInfoOpen=!1,this.$nextTick((function(){t.oneSelectedServiceHasOpt&&t.loginType&&"mobile"===t.loginType?window.location.href=t.getVerificationMobilePageUrl:window.location.reload()}))},checkAndDisableAgreementForServices:function(){var t=this;this.$nextTick((function(){if(t.allServiceRefs){var e=t.allServiceRefs.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.service.formId}));t.isLoyaltyBenefitoInSubscribedOrSelected?e&&e.setAgreementDisabled(!0):e&&e.setAgreementDisabled(!1);var i=t.allServiceRefs.find((function(t){return"ssp-customer-loyalty-benefito-service"===t.service.formId}));t.isLoyaltyVictoriaInSubscribedOrSelected?i&&i.setAgreementDisabled(!0):i&&i.setAgreementDisabled(!1)}}))}}};var Gs=function(t){i("4Aon")},Ws=Object(l.a)(Hs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[i("div",{staticClass:"ssp-data-wrapper multi-consent-service-form sign-up-form"},[i("section",{staticClass:"ssp-box-wrapper"},[t.headline?i("h2",[t._v(t._s(t.headline))]):t._e(),t._v(" "),t.text?i("div",{domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.errorMsg||t.translations.submit.error))])])])]:t._e(),t._v(" "),t.servicesWithoutSubscribed&&t.servicesWithoutSubscribed.length>0?i("div",{staticClass:"ssp-box-content default-style"},[t._l(t.servicesWithoutSubscribed,(function(e,a){return i("MultiConsentService",{key:a,ref:"serviceRefs",refInFor:!0,attrs:{service:e,settings:t.settings,"load-data":!0},on:{changedAgreement:t.serviceChangedAgreement}})})),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 offset-md-2 col-md-10"},[i("button",{staticClass:"ssp-button d-inline",class:{disabled:t.isSubmitServiceDisabled},attrs:{disabled:t.isSubmitServiceDisabled,"data-tealium-value":"ssp_"+t.tealiumValue+"_subscribe","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click",type:"button"},domProps:{innerHTML:t._s(t.translations.subscribe.label)},on:{click:function(e){return t.submitService()}}}),t._v(" "),i("a",{staticClass:"ml-4",attrs:{title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.account.navigation.seeActiveSubscriptions),href:""},on:{click:function(e){return e.preventDefault(),t.showActiveSubscriptions()}}},[t._v(t._s(t.translations.account.navigation.seeActiveSubscriptions))])])]),t._v(" "),t.translations.concerns?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("div",{domProps:{innerHTML:t._s(t.translations.concerns)}})])]):t._e()],2):i("div",{staticClass:"alert alert-primary",domProps:{innerHTML:t._s(t.translations.subscriptions.info.noServices)}})],2)]),t._v(" "),i("div",{staticClass:"ssp-data-wrapper multi-consent-service-form sign-up-form"},[t.mobileServices&&t.mobileServices.length?i("section",{staticClass:"ssp-box-wrapper mt-5"},[t.mobileServicesHeadline?i("h2",[t._v(t._s(t.mobileServicesHeadline))]):t._e(),t._v(" "),t.mobileServicesText?i("div",{domProps:{innerHTML:t._s(t.mobileServicesText)}}):t._e(),t._v(" "),i("div",{staticClass:"ssp-box-content default-style no-background"},t._l(t.mobileServices,(function(e,a){return i("article",{key:a,staticClass:"row mb-2 mb-md-4 multi-consent-service"},[i("div",{staticClass:"col-12 col-md-2 mb-3 mb-md-0"},[e.picture?i("div",{staticClass:"ssp-picture-wrapper px-4 px-md-2",domProps:{innerHTML:t._s(e.picture)}}):t._e()]),t._v(" "),i("div",{staticClass:"col-12 col-md-10"},[e.name?i("h2",[t._v(t._s(e.name))]):t._e(),t._v(" "),e.teaserTextLoggedIn?i("div",{domProps:{innerHTML:t._s(e.teaserTextLoggedIn)}}):t._e(),t._v(" "),e.additionalButton?i("div",{staticClass:"mobile-service-link-area mb-3",domProps:{innerHTML:t._s(e.additionalButton)}}):t._e(),t._v(" "),e.googlePlay||e.appStore?i("div",{staticClass:"mobile-service-img-area"},[e.googlePlay?i("div",{staticClass:"d-inline-block",domProps:{innerHTML:t._s(e.googlePlay)}}):t._e(),t._v(" "),e.appStore?i("div",{staticClass:"d-inline-block",domProps:{innerHTML:t._s(e.appStore)}}):t._e()]):t._e()])])})),0)]):t._e(),t._v(" "),i("PopupComp",{ref:"popupPersonalDataLegalEntitesRef"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowLegalEntities,expression:"!isShowLegalEntities"}]},[i("MultiConsentPersonalData",{ref:"personalDataRef",attrs:{settings:t.settings,subscriptions:t.subscriptions,"personal-data-headline":t.personalDataHeadline,"personal-data-text":t.personalDataText,"load-data":!0,"hide-valid-fields":!0,"change-company-multiple-times":t.changeCompanyMultipleTimes},on:{allValid:t.personalDataAllValid}}),t._v(" "),t.translations.hint.signUp?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"hint-text-color",domProps:{innerHTML:t._s(t.translations.hint.signUp)}})])]):t._e(),t._v(" "),t.translations.concerns?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"hint-text-color",domProps:{innerHTML:t._s(t.translations.concerns)}})])]):t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[t.isLoyaltyVictoriaOrBenefitoSelected&&!t.hasLegalEntitesData?[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.next)},on:{click:function(e){return t.submitPersonalDataShowLegalEntities()}}})]:[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.saveSubscription)},on:{click:function(e){return t.submitPersonalData()}}})]],2)])],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowLegalEntities,expression:"isShowLegalEntities"}]},[i("MultiConsentLegalEntities",{directives:[{name:"show",rawName:"v-show",value:t.isLoyaltyVictoriaOrBenefitoSelected,expression:"isLoyaltyVictoriaOrBenefitoSelected"}],ref:"legalEntitiesRef",attrs:{settings:t.settings,subscriptions:t.subscriptions,"legal-entities-headline":t.translations.legalEntitiesHeadline,"legal-entities-text":t.translations.legalEntitiesText},on:{back:function(e){return t.backToPersonalData()},submit:function(e){return t.submitLegalEntities()}}},[i("template",{slot:"before_buttons"},[t.translations.hint.signUp?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"hint-text-color",domProps:{innerHTML:t._s(t.translations.hint.signUp)}})])]):t._e(),t._v(" "),t.translations.concerns?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"hint-text-color",domProps:{innerHTML:t._s(t.translations.concerns)}})])]):t._e()])],2)],1)]),t._v(" "),i("PopupInfo",{attrs:{open:t.popupSuccessInfoOpen,headline:t.translations.submit.service.success,text:t.popupSuccessText,"text-button":t.popupSuccessTextButton},on:{close:function(e){return t.closePopupSuccessInfo()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],1)])}),[],!1,Gs,"data-v-16df15ec",null).exports,Zs={name:"ProductInformation",components:{Fragment:ua.a,Loader:j.a},props:{content:{type:Object,default:function(){}},subscriptions:{type:Array,default:function(){return[]}}},data:function(){return{loaderVisible:!1,loadingError:!1,showBorderAround:!0,changedDays:7,products:[],hasDocumentAlertServiceSubscribed:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},config:function(){return void 0!==window.snConfig&&window.snConfig},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError}},created:function(){var t=this;setTimeout((function(){t.showBorderAround=!1}),5e3),this.hasDocumentAlertServiceSubscribed=this.isSubscribedTo("ssp-document-alert-service"),this.hasDocumentAlertServiceSubscribed&&(this.loaderVisible=!0,ut.a.getDocumentAlertProductMedias({country:this.config.country,language:this.config.language,changedDays:this.changedDays}).then((function(e){e&&e.products&&(t.products=e.products),t.loaderVisible=!1}),(function(){t.loadingError=!0})))},methods:{isSubscribedTo:function(t){return!!this.subscriptions&&!!this.subscriptions.find((function(e){return e.id===t&&("OK"===e.status||"PENDING_UNSUB"===e.status)}))}}};var Js=function(t){i("ILfn")}
1,Ks=Object(l.a)(Zs,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[i("div",{staticClass:"ssp-data-wrapper"},[i("section",{staticClass:"ssp-box-wrapper"},[t.content.main.headline?i("h2",[t._v(t._s(t.content.main.headline))]):t._e(),t._v(" "),t.hasDocumentAlertServiceSubscribed?[t.content.main.text?i("div",{domProps:{innerHTML:t._s(t.content.main.text)}}):t._e(),t._v(" "),t.content.main.link?i("section",[i("div",{staticClass:"ssp-buttons-wrapper arrow-chevron-circle-right-area"},[i("div",{domProps:{innerHTML:t._s(t.content.main.link)}})])]):t._e()]:[t.content.main.textNotSubscribed?i("div",{domProps:{innerHTML:t._s(t.content.main.textNotSubscribed)}}):t._e(),t._v(" "),t.content.main.linkNotSubscribed?i("section",[i("div",{staticClass:"ssp-buttons-wrapper arrow-chevron-circle-right-area"},[i("div",{domProps:{innerHTML:t._s(t.content.main.linkNotSubscribed)}})])]):t._e()]],2)]),t._v(" "),t.hasDocumentAlertServiceSubscribed?i("div",{staticClass:"ssp-data-wrapper"},[i("section",{staticClass:"ssp-box-wrapper"},[t.content.secondary.headline?i("h2",{staticClass:"mb-3"},[t._v(t._s(t.content.secondary.headline))]):t._e(),t._v(" "),t.content.secondary.text?i("div",{domProps:{innerHTML:t._s(t.content.secondary.text)}}):t._e(),t._v(" "),t.loadingError?[i("div",[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])]:t._e(),t._v(" "),i("div",{staticClass:"row teaser teaser-row"},[t._l(t.products,(function(e,a){return[i("div",{key:"p_"+a,staticClass:"col-md-4 col-sm-6"},[i("div",{staticClass:"ssp-box-teaser teaser-content position-relative updated-transition",class:{updated:e.changed&&t.showBorderAround}},[e.countChanged>0?i("div",{staticClass:"count-flag-area"},[i("div",{staticClass:"count-icon"}),t._v(" "),i("div",{staticClass:"count-flag"},[i("span",[t._v("\n                    "+t._s(e.countChanged)+"\n                  ")])])]):t._e(),t._v(" "),e.name?i("h2",[t._v(t._s(e.name))]):t._e(),t._v(" "),i("div",{staticClass:"d-flex flex-column"},[t._l(e.productFileTypes,(function(a,s){return t._l(a.medias,(function(a,n){return i("div",{key:"pft_m_"+s+"_"+n,staticClass:"position-relative",class:{"media-changed":a.changed}},[a.changed?i("span",{staticClass:"dot-flag"}):t._e(),t._v(" "),i("a",{staticClass:"download-link",attrs:{href:a.url,title:e.name+" || "+a.name+" || "+a.url,"data-tealium-value":e.name+"||"+a.name+"||"+a.url,"data-tealium-type":"download","data-tealium-category":"download","data-tealium-action":"link_click",target:"_blank"}},[i("b",[t._v(t._s(a.name))]),t._v(" - "+t._s(a.changeDate))])])}))}))],2)])])]}))],2)],2)]):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],1)}),[],!1,Js,"data-v-f6b572e4",null).exports,Ys={name:"RecordedWebinars",components:{Fragment:ua.a,Loader:j.a},props:{content:{type:Object,default:function(){}},settings:{type:Object,default:function(){return{}}},tealiumValue:{type:String,default:""}},data:function(){return{loaderVisible:!1,loadingError:!1,events:[],page:0,count:3,totalElements:0,hasSlot:!0}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},linkTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.link)&&window.snTranslations.link},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},functionHelper:function(){return v.a}},mounted:function(){this.$refs&&this.$refs.slotHtml?(this.hasSlot=!0,this.$refs.slotHtml.querySelectorAll(".swiper-initialized").forEach((function(t){t.classList.remove("swiper-initialized")})),document.dispatchEvent(new CustomEvent("chassis-init-Teaser"))):this.hasSlot=!1;this.reset(),this.init()},methods:{init:function(){var t=this;this.loaderVisible=!0,this.$store.dispatch("events/fetchEventsByOwnParams",{useHorizontal:!0,eventSortDesc:this.settings.eventSortDesc,eventCategoryId:this.settings.eventCategoryId,page:this.page,count:this.count}).then((function(e){t.totalElements=e.totalElements,e.content&&e.content.forEach((function(e){t.events.push(e)})),t.loaderVisible=!1})).catch((function(){t.loadingError=!0}))},showMore:function(t){this.page+=1;var e=t.pageY;this.init(),this.scrollToPosition(e)},scrollToPosition:function(t){setTimeout((function(){window.scrollTo({top:t,behavior:"smooth"})}),100)},reset:function(){this.page=0,this.events=[]},getTealiumName:function(t){return t.eventTealiumName?t.eventTealiumName.split(" ").join("-"):t.eventCrmId?t.eventCrmId:t.eventId}}};var Qs=function(t){i("zRwW")},Xs=Object(l.a)(Ys,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.content.main.headline||t.content.main.text||t.hasSlot?i("div",{staticClass:"ssp-data-wrapper"},[i("section",{staticClass:"ssp-box-wrapper"},[t.content.main.headline?i("h2",[t._v(t._s(t.content.main.headline))]):t._e(),t._v(" "),t.content.main.text?i("div",{domProps:{innerHTML:t._s(t.content.main.text)}}):t._e(),t._v(" "),t.hasSlot?i("div",{ref:"slotHtml",staticClass:"mt-5"},[t._t("recordedWebinars_main_videoOnDemand")],2):t._e()])]):t._e(),t._v(" "),t.content.digital
1Events.headline||t.content.digitalEvents.text||t.events&&t.events.length?i("div",{staticClass:"ssp-data-wrapper"},[i("section",{staticClass:"ssp-box-wrapper"},[t.content.digitalEvents.headline?i("h2",[t._v(t._s(t.content.digitalEvents.headline))]):t._e(),t._v(" "),t.content.digitalEvents.text?i("div",{domProps:{innerHTML:t._s(t.content.digitalEvents.text)}}):t._e(),t._v(" "),t.events&&t.events.length?i("article",{staticClass:"ssp-box-content default-style"},t._l(t.events,(function(e,a){return i("div",{key:a,staticClass:"row mb-2 mb-md-4"},[i("fragment",{domProps:{innerHTML:t._s(e["snippet-horizontal"])}}),t._v(" "),i("div",{staticClass:"col-12 col-md-3 mt-3 mt-md-0"},[i("div",{staticClass:"d-flex align-items-end h-100 w-100"},[i("div",{staticClass:"w-100"},[e.url?i("a",{staticClass:"ssp-button w-100",attrs:{href:e.url,title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.linkTranslations.readMore),"data-tealium-value":"ssp_"+t.tealiumValue+"_"+t.getTealiumName(e)+"_read-more","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},domProps:{innerHTML:t._s(t.linkTranslations.readMore)}}):t._e()])])])],1)})),0):t._e(),t._v(" "),t.events.length<t.totalElements?i("div",{staticClass:"ssp-buttons-wrapper single-line justify-content-center my-5"},[i("button",{staticClass:"ssp-button secondary",on:{click:function(e){return e.preventDefault(),t.showMore.apply(null,arguments)}}},[t._v("\n          "+t._s(t.commonTranslations.showMore)+"\n        ")])]):t._e()])]):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,Qs,"data-v-10dd7482",null).exports,tn={name:"Elearnings",components:{Fragment:ua.a,Loader:j.a},props:{content:{type:Object,default:function(){}},tealiumValue:{type:String,default:""}},data:function(){return{loaderVisible:!1,loadingError:!1,list:[]}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},functionHelper:function(){return v.a}},mounted:function(){this.init()},methods:{init:function(){var t=this;this.loaderVisible=!0,this.$store.dispatch("forms/getUserElearningDetails").then((function(e){t.list=e,t.loaderVisible=!1,0===t.list.length&&t.$emit("hide-tab")})).catch((function(){t.loadingError=!0}))}}};var en=function(t){i("fGAw")},an=Object(l.a)(tn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[i("div",{staticClass:"ssp-data-wrapper"},[i("section",{staticClass:"ssp-box-wrapper"},[t.content.easylearn.headline?i("h2",[t._v(t._s(t.content.easylearn.headline))]):t._e(),t._v(" "),t.content.easylearn.text?i("div",{domProps:{innerHTML:t._s(t.content.easylearn.text)}}):t._e(),t._v(" "),t.loadingError?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])]):i("div",{staticClass:"row teaser teaser-row"},[t._l(t.list,(function(e,a){return[i("div",{key:"element_"+a,staticClass:"col-md-4 col-sm-6"},[i("div",{staticClass:"teaser-area ssp-box-teaser"},[i("div",{staticClass:"teaser-top"},[e.images&&e.images.length>0?i("picture",[e.images[0]?i("img",{attrs:{srcset:e.images[0].url,src:e.images[0].url,title:e.title||e.description,alt:e.title||e.description}}):i("img",{attrs:{srcset:t.content.easylearn.image,src:t.content.easylearn.image,title:e.title||e.description,alt:e.title||e.description}})]):t._e(),t._v(" "),i("div",{staticClass:"teaser-content"},[e.title?i("h3",[t._v(t._s(e.title))]):t._e(),t._v(" "),e.description?i("p",[t._v(t._s(e.description))]):t._e()])]),t._v(" "),i("div",{staticClass:"teaser-bottom"},[e.activityUrl?i("a",{staticClass:"external-link",attrs:{href:e.activityUrl,title:t.functionHelper.formatTitle(t.translationsCommon.clickTo,t.translations.links.watchOnEasylearn),"data-tealium-value":e.activityUrl,target:"_blank","data-teal
1ium-type":"action","data-tealium-category":"external_link","data-tealium-action":"link_click"}},[t._v(t._s(t.translations.links.watchOnEasylearn))]):t._e()])])])]}))],2)])]),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],1)}),[],!1,en,"data-v-0d1d0996",null).exports;function sn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function nn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?sn(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):sn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var on={name:"HeaderElement",components:{Loader:j.a,AddressSection:Ea,LegalEntitesSection:za,OccupationInformationSection:Ka,AccountSettingsSection:ps,ActiveSubscriptions:Ts,HorizontalTeasers:xs,Events:Es,SignUpForm:Ws,ProductInformation:Ks,RecordedWebinars:Xs,Elearnings:an,Fragment:ua.a},props:{id:{type:String,default:""},headline:{type:String,default:""},text:{type:String,default:""},navigation:{type:String,default:""},showUserName:{type:Boolean,default:!1},showUserSalutation:{type:Boolean,default:!0},surveyDeleteAccount:{type:Array,default:function(){return[]}},surveyDeleteAccountUseComment:{type:Boolean,default:!1},services:{type:Array,default:function(){return[]}},mobileServices:{type:Array,default:function(){return[]}},settings:{type:Object,default:function(){}},content:{type:Object,default:function(){}},showEventTab:{type:Boolean,default:!0},showProductInformationTab:{type:Boolean,default:!0},showRecordedWebinarsTab:{type:Boolean,default:!0},showElearningsTab:{type:Boolean,default:!0},changeCompanyMultipleTimes:{type:Boolean,default:!1},formIdsWithMobile:{type:Array,default:function(){return[]}},profileNoTabs:{type:Boolean,default:!1},profileHideOccupation:{type:Boolean,default:!1},profileHidePostalAddress:{type:Boolean,default:!1}},data:function(){return{formDefinition:[],formDefinitionOccupation:[],formData:{},subscriptions:[],isFormDefinitionRetrieved:!1,isDataRetrieved:!1,isServiceStatusRetrieved:!1,loadingError:!1,hasElearningsResults:!0}},computed:nn(nn({},Object(m.c)({userId:function(t){return t.forms.userId}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},salutationOptions:function(){return void 0!==window.salutationConfig?window.salutationConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},titleOptions:function(){return void 0!==window.titleConfig?window.titleConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},getName:function(){var t="";return this.showUserSalutation&&(t+="".concat(this.getDataElement("salutation")," ").concat(this.getDataElement("title"))),this.formData&&this.formData.firstName&&(t+=" ".concat(this.formData.firstName)),this.formData&&this.formData.lastName&&(t+=" ".concat(this.formData.lastName)),t},getWelcome:function(){return this.translations.account.welcome.replace("%1",this.getName)},contentProfile:function(){var t=[];return t.push(this.getNavigationElement("address","address")),(this.isLoyaltyVictoriaSubscribed||this.isLoyaltyBenefitoSubscribed)&&t.push(this.getNavigationElement("legalEntites","legalEntites")),t.push(this.getNavigationElement("occupation","occupation")),t.push(this.getNavigationElement("accountSettings","account-settings")),t},contentSubscription:function(){var t=[this.getNavigationElement("signUp","sign-up"),this.getNavigationElement("activeSubscriptions","active-subscriptions")];return this.showEventTab&&t.push(this.getNavigationElement("events","events")),t},contentContent:function(){var t=[];return this.showProductInformationTab&&t.push(this.getNavigationElement("productInformation","product-information")),this.showRecordedWebinarsTab&&t.push(this.getNavigationElement("recordedWebinars","re
1corded-webinars")),this.showElearningsTab&&this.hasElearningsResults&&t.push(this.getNavigationElement("elearnings","elearnings")),t},activeSubscriptionsTabId:function(){return this.getTabId("activeSubscriptions",this.contentSubscription)},eventsTabId:function(){return this.getTabId("events",this.contentSubscription)},showNavigationProfile:function(){return"profile"===this.navigation},showNavigationSubscription:function(){return"subscription"===this.navigation},showNavigationContent:function(){return"content"===this.navigation},isLoyaltyVictoriaSubscribed:function(){return!!this.subscriptions&&!!this.subscriptions.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.id}))},isLoyaltyBenefitoSubscribed:function(){return!!this.subscriptions&&!!this.subscriptions.find((function(t){return"ssp-customer-loyalty-benefito-service"===t.id}))}}),watch:{$route:function(t,e){t.hash!==e.hash&&this.checkAndSelectActiveTab()}},created:function(){if(Pa.removeStyle(this.$slots,"additional_link_popup_unsubscribe"),Pa.removeStyle(this.$slots,"recordedWebinars_main_videoOnDemand"),Pa.removeStyle(this.$slots,"elearnings_easylearn_teasers"),void 0!==window.location.hash&&null!==window.location.hash&&""!==window.location.hash||this.checkAndSelectActiveTabByGetParameter(),this.userId&&h.a.extractPostLoginFromSessionStorage()&&(this.fetchFormDataDefinition(),this.fetchServiceStatus()),!this.$router.currentRoute.hash)switch(this.navigation){case"profile":window.location.hash="address";break;case"subscription":window.location.hash="signUp"}},mounted:function(){var t=this;f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&(t.fetchFormDataDefinition(),t.fetchServiceStatus())}))},methods:{getTabId:function(t,e){var i=null,a=t,s=e.findIndex((function(t){return t.id===a}));return-1!==s&&(i="pills-".concat(s,"-").concat(a,"-tab")),i},clickTab:function(t,e){window.location.hash=e,document.getElementById(t).scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},getNavigationElement:function(t,e){var i=t,a=e;return"legalEntites"===t&&(this.isLoyaltyVictoriaSubscribed&&(i="legalEntitesVictoria",a="legalEntitesVictoria"),this.isLoyaltyBenefitoSubscribed&&(i="legalEntitesBenefito",a="legalEntitesBenefito")),{label:this.translations.account.navigation[i]||"",id:t,tealium:a}},getDataElement:function(t){var e="",i="";if(this.formDefinition.find((function(e){return e.name===t&&!0===e.display}))&&this.formData&&this.formData[t])switch(i=this.formData[t],t){case"salutation":e=v.a.retrieveValue(this.salutationOptions,i,"code",{}).name;break;case"title":e=v.a.retrieveValue(this.titleOptions,i,"code",{}).name}return e},fetchFormDataDefinition:function(t){var e=this;this.isFormDefinitionRetrieved=!1,this.isDataRetrieved=!1,this.$store.dispatch("forms/fetchFormDataDefinition",{formIds:["ssp-personal-data","ssp-occupation-information"]}).then((function(i){i&&i["ssp-personal-data"]&&i["ssp-personal-data"].definition&&i["ssp-personal-data"].definition.formelement&&(e.formDefinition=i["ssp-personal-data"].definition.formelement),i&&i["ssp-occupation-information"]&&i["ssp-occupation-information"].definition&&i["ssp-occupation-information"].definition.formelement&&(e.formDefinitionOccupation=i["ssp-occupation-information"].definition.formelement);var a={},s={};i&&i["ssp-personal-data"]&&i["ssp-personal-data"].data&&(a=i["ssp-personal-data"].data),i&&i["ssp-occupation-information"]&&i["ssp-occupation-information"].data&&(s=i["ssp-occupation-information"].data);var n=[];n=[].concat(_t()(n),[a,s]),e.formData=ut.a.mergeDatas(n),e.formDefinition.length&&e.formDefinitionOccupation.length||(e.loadingError=!0),e.isFormDefinitionRetrieved=!0,e.isDataRetrieved=!0,e.checkAndSelectActiveTab(t)})).catch((function(){e.loadingError=!0}))},fetchServiceStatus:function(t){var e=this,i=!1;t&&(i=!0),this.isServiceStatusRetrieved=!1,this.$store.dispatch("forms/getSubscriptions",{forceLoad:i}).then((function(i){e.subscriptions=i||[],e.isServiceStatusRetrieved=!0,e.checkAndSelectActiveTab(t)})).catch((function(){e.loadingError=!0}))},checkAndSelectActiveTab:function(t){var e=null;if(t)e=t;else if(window.location.hash){var i=window.location.hash.substr(1);this.showNavigationSubscription&&(e=this.getTabId(i,this.contentSubscription)),this.showNavigationProfile&&(e=this.getTabId(i,this.contentProfile)),this.showNavigationContent&&(e=this.getTabId(i,this.contentContent))}e&&setTimeout((function(){var t=document.getElementById(e);t&&t.click()}),10)},checkAndSelectActiveTabByGetParameter:function(){var t=this;this.showNavigationSubscription&&this.contentSubscription.forEach((function(e){t.checkGetParameterExists(e.id)&&(window.location.hash=e.id)}
1)),this.showNavigationProfile&&this.contentProfile.forEach((function(e){t.checkGetParameterExists(e.id)&&(window.location.hash=e.id)})),this.showNavigationContent&&this.contentContent.forEach((function(e){t.checkGetParameterExists(e.id)&&(window.location.hash=e.id)}))},checkGetParameterExists:function(t){var e=!1,i=window.location.search;return i&&-1!==i.indexOf(t)&&(e=!0),e}}};var rn=function(t){i("eeUo")},ln=Object(l.a)(on,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content-module"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),t.isFormDefinitionRetrieved&&t.isDataRetrieved&&t.isServiceStatusRetrieved&&!t.loadingError?i("div",{staticClass:"content-module ssp-header-element-wrapper"},[i("div",{staticClass:"container-with-background pt-5",class:{"pb-4":!t.navigation}},[i("section",{staticClass:"container d-flex flex-column align-items-center"},[t.headline?[-1!==t.headline.indexOf("<h1>")?[i("fragment",{domProps:{innerHTML:t._s(t.headline)}})]:[i("h1",{staticClass:"text-center"},[t._v(t._s(t.headline))])]]:t._e(),t._v(" "),t.showUserName?i("h1",{staticClass:"text-center"},[t._v(t._s(t.getWelcome))]):t._e(),t._v(" "),t.text?i("div",{staticClass:"col-12 col-md-6 text-center mt-3 pl-0 pr-0",domProps:{innerHTML:t._s(t.text)}}):t._e()],2),t._v(" "),t.showNavigationProfile&&!t.profileNoTabs?i("section",{staticClass:"tab-navigation-wrapper horizontal mt-3"},[i("ul",{staticClass:"nav nav-pills align-content-center flex-row justify-content-md-center",attrs:{id:"pills-tab-"+t.id,role:"tablist"}},t._l(t.contentProfile,(function(e,a){return i("li",{key:a,staticClass:"nav-item"},[i("a",{staticClass:"nav-link",class:{active:0===a},attrs:{id:"pills-"+a+"-"+e.id+"-tab",href:"#pills-"+a+"-"+e.id,title:e.label,"aria-controls":"pills-"+a+"-"+e.id,"aria-selected":""+(0===a),"data-tealium-value":"ssp_"+e.tealium+"_tab","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click","data-toggle":"pill",role:"tab"},domProps:{innerHTML:t._s(e.label)},on:{click:function(i){return t.clickTab("pills-"+a+"-"+e.id+"-tab",e.id)}}})])})),0)]):t._e(),t._v(" "),t.showNavigationSubscription?i("section",{staticClass:"tab-navigation-wrapper horizontal mt-3"},[i("ul",{staticClass:"nav nav-pills align-content-center flex-row justify-content-md-center",attrs:{id:"pills-tab-"+t.id,role:"tablist"}},t._l(t.contentSubscription,(function(e,a){return i("li",{key:a,staticClass:"nav-item"},[i("a",{staticClass:"nav-link",class:{active:0===a},attrs:{id:"pills-"+a+"-"+e.id+"-tab",href:"#pills-"+a+"-"+e.id,title:e.label,"aria-controls":"pills-"+a+"-"+e.id,"aria-selected":""+(0===a),"data-tealium-value":"ssp_"+e.tealium+"_tab","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click","data-toggle":"pill",role:"tab"},domProps:{innerHTML:t._s(e.label)},on:{click:function(i){return t.clickTab("pills-"+a+"-"+e.id+"-tab",e.id)}}})])})),0)]):t._e(),t._v(" "),t.showNavigationContent?i("section",{staticClass:"tab-navigation-wrapper horizontal mt-3"},[i("ul",{staticClass:"nav nav-pills align-content-center flex-row justify-content-md-center",attrs:{id:"pills-tab-"+t.id,role:"tablist"}},t._l(t.contentContent,(function(e,a){return i("li",{key:a,staticClass:"nav-item"},[i("a",{staticClass:"nav-link",class:{active:0===a},attrs:{id:"pills-"+a+"-"+e.id+"-tab",href:"#pills-"+a+"-"+e.id,title:e.label,"aria-controls":"pills-"+a+"-"+e.id,"aria-selected":""+(0===a),"data-tealium-value":"ssp_"+e.tealium+"_tab","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click","data-toggle":"pill",role:"tab"},domProps:{innerHTML:t._s(e.label)},on:{click:function(i){return t.clickTab("pills-"+a+"-"+e.id+"-tab",e.id)}}})])})),0)]):t._e()]),t._v(" "),t.showNavigationProfile?i("div",{staticClass:"container pt-5 pb-5"},[i("section",[i("div",{staticClass:"tab-content"},t._l(t.contentProfile,(function(e,a){return i("div",{key:a,staticClass:"tab-pane fade",class:{"show active":0===a},attrs:{id:"pills-"+a+"-"+e.id,"aria-labelledby":"pills-"+a+"-"+e.id+"-tab",role:"tabpanel"}},["address"===e.id||t.profileNoTabs?[i("AddressSection",{attrs:{"form-id":"ssp-personal-data","show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,"email-pattern":t.settings.emailPattern,"phone-pattern":t.settings.phonePattern,"fax-pattern":t.settings.faxPattern,"number-pattern":t.settings.numberPattern,"eircode-pattern":t.settings.eircodePattern,"date-of-birth-pattern":t.settings.dateOfBirthPattern,"form-definition":t.formDefinition,"form-data":t.formData,"is-form-definition-retrieved":t.isFormDefinitionRetrieved,"is-data-retrieved":t.isDataRetrieved,"has-loading-error":t.loadingError,"tealium-value":""+e.tealium,"change-company-multiple-times":t.changeCompanyMultipleTimes,subscriptions:t.subscriptions,"form-ids-with-mobile":t.formIdsWithMobile,"hide-postal-address":t.profileHidePostalAddress}}
1)]:t._e(),t._v(" "),"legalEntites"!==e.id&&!t.profileNoTabs||!t.isLoyaltyVictoriaSubscribed&&!t.isLoyaltyBenefitoSubscribed?t._e():[i("LegalEntitesSection",{attrs:{"form-id":"ssp-personal-data","show-zipcode":t.settings.showZipcode,"show-region1":t.settings.showRegion1,"show-region2":t.settings.showRegion2,"form-definition":t.formDefinition,"form-data":t.formData,"is-form-definition-retrieved":t.isFormDefinitionRetrieved,"is-data-retrieved":t.isDataRetrieved,"has-loading-error":t.loadingError,"tealium-value":""+e.tealium,subscriptions:t.subscriptions}}),t._v(" "),t.translations.account.afterLegalEntitesDom?i("div",{staticClass:"ssp-data-wrapper"},[i("div",{staticClass:"row justify-content-center"},[i("div",{staticClass:"col-12 col-md-10",domProps:{innerHTML:t._s(t.translations.account.afterLegalEntitesDom)}})])]):t._e()],t._v(" "),"occupation"!==e.id&&!t.profileNoTabs||t.profileHideOccupation?t._e():[i("OccupationInformationSection",{attrs:{"form-id":"ssp-occupation-information","number-pattern":t.settings.numberPattern,"form-definition":t.formDefinitionOccupation,"form-data":t.formData,"is-form-definition-retrieved":t.isFormDefinitionRetrieved,"is-data-retrieved":t.isDataRetrieved,"has-loading-error":t.loadingError,"tealium-value":""+e.tealium}})],t._v(" "),"accountSettings"===e.id||t.profileNoTabs?[i("AccountSettingsSection",{attrs:{"survey-delete-account":t.surveyDeleteAccount,"survey-delete-account-use-comment":t.surveyDeleteAccountUseComment,"tealium-value":""+e.tealium,"email-pattern":t.settings.emailPattern,"phone-pattern":t.settings.phonePattern,"form-data":t.formData}},[i("template",{slot:"additional_link_popup_unsubscribe"},[t._t("additional_link_popup_unsubscribe")],2)],2)]:t._e()],2)})),0)])]):t._e(),t._v(" "),t.showNavigationSubscription?i("div",{staticClass:"container pt-5 pb-5"},[i("section",[i("div",{staticClass:"tab-content"},t._l(t.contentSubscription,(function(e,a){return i("div",{key:a,staticClass:"tab-pane fade",class:{"show active":0===a},attrs:{id:"pills-"+a+"-"+e.id,"aria-labelledby":"pills-"+a+"-"+e.id+"-tab",role:"tabpanel"}},[0===a?[i("SignUpForm",{attrs:{headline:t.content.signUp.mainServices.headline,text:t.content.signUp.mainServices.text,"mobile-services-headline":t.content.signUp.secondaryServices.headline,"mobile-services-text":t.content.signUp.secondaryServices.text,"personal-data-headline":t.content.signUp.popupEnterData.headline,"personal-data-text":t.content.signUp.popupEnterData.text,subscriptions:t.subscriptions,services:t.services,"mobile-services":t.mobileServices,settings:t.settings,"active-subscriptions-tab-id":t.activeSubscriptionsTabId,"tealium-value":""+e.tealium,"change-company-multiple-times":t.changeCompanyMultipleTimes}})]:1===a?[i("ActiveSubscriptions",{attrs:{headline:t.content.activeSubscriptions.services.headline,text:t.content.activeSubscriptions.services.text,subscriptions:t.subscriptions,services:t.services,settings:t.settings,"tealium-value":""+e.tealium},on:{"fetch-data-definition":function(e){return t.fetchFormDataDefinition(t.activeSubscriptionsTabId)},"fetch-subscriptions":function(e){return t.fetchServiceStatus(t.activeSubscriptionsTabId)}}}),t._v(" "),i("HorizontalTeasers",{attrs:{headline:t.content.activeSubscriptions.personalData.headline,text:t.content.activeSubscriptions.personalData.text,teasers:t.content.activeSubscriptions.personalData.teasers}})]:[t.showEventTab?[i("Events",{attrs:{content:t.content.events,settings:t.settings,subscriptions:t.subscriptions,"tealium-value":""+e.tealium},on:{"fetch-subscriptions":function(e){return t.fetchServiceStatus(t.eventsTabId)}}})]:t._e()]],2)})),0)])]):t._e(),t._v(" "),t.showNavigationContent?i("div",{staticClass:"container pt-5 pb-5"},[i("section",[i("div",{staticClass:"tab-content"},t._l(t.contentContent,(function(e,a){return i("div",{key:a,staticClass:"tab-pane fade",class:{"show active":0===a},attrs:{id:"pills-"+a+"-"+e.id,"aria-labelledby":"pills-"+a+"-"+e.id+"-tab",role:"tabpanel"}},["productInformation"===e.id?[t.showProductInformationTab?[i("ProductInformation",{attrs:{content:t.content.productInformation,subscriptions:t.subscriptions,"tealium-value":""+e.tealium}})]:t._e()]:"recordedWebinars"===e.id?[t.showRecordedWebinarsTab?[i("RecordedWebinars",{attrs:{content:t.content.recordedWebinars,settings:t.settings,"tealium-value":""+e.tealium}},[i("template",{slot:"recordedWebinars_main_videoOnDemand"}
1,[t._t("recordedWebinars_main_videoOnDemand")],2)],2)]:t._e()]:"elearnings"===e.id?[t.showElearningsTab&&t.hasElearningsResults?[i("Elearnings",{attrs:{content:t.content.elearnings,"tealium-value":""+e.tealium},on:{"hide-tab":function(e){t.hasElearningsResults=!1}}})]:t._e()]:t._e()],2)})),0)])]):t._e()]):t._e(),t._v(" "),i("Loader",{attrs:{"is-visible":!(t.isFormDefinitionRetrieved&&t.isDataRetrieved&&t.isServiceStatusRetrieved||t.loadingError),"is-full-screen":!0}})],2)}),[],!1,rn,"data-v-149eae24",null).exports;function cn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function un(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):cn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var dn={name:"ImportDataPopupComp",components:{PopupComp:o.a,PopupInfo:W,TextField:U.a,Loader:j.a},props:{phonePattern:{type:RegExp,default:function(){}}},data:function(){return{step:"",loaderVisible:!1,loadingError:!1,limitReachedError:!1,mobileValue:"",codeValue:"",codeValueIsValid:!0,codeValueErrorText:"",popupResendCodeSuccessInfoOpen:!1}},computed:un(un({},Object(m.c)({userEmail:function(t){return t.forms.userEmail},userMobile:function(t){return t.forms.userMobile},mobileVerified:function(t){return t.forms.mobileVerified},loginType:function(t){return t.forms.loginType}})),{},{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},getNoDataVerifyMobileDescription:function(){var t=this.translations.importDataPopup.noDataVerifyMobile.description;return t=t.replace("%1",this.userEmail)},hidePopup:function(){var t=!0;return(this.step&&""!==this.step||this.loadingError)&&(t=!1),t}}),watch:{hidePopup:function(){this.$refs&&this.$refs.popupRef&&(this.$refs.popupRef.hide=this.hidePopup)}},methods:{open:function(){this.$refs.popupRef.open(),this.$refs.popupRef.hide=!0,this.init()},close:function(){this.$refs.popupRef.close()},emitClose:function(){this.$emit("close")},init:function(){var t=this;this.loaderVisible=!1,this.loadingError=!1,this.limitReachedError=!1,this.mobileValue="",this.codeValue="",this.codeValueIsValid=!0,this.codeValueErrorText="",this.popupResendCodeSuccessInfoOpen=!1,this.step="","email"===this.loginType&&(this.loaderVisible=!0,this.$store.dispatch("forms/contactExists",{email:this.userEmail}).then((function(e){e&&e.exists?t.assignContactAndShowSuccess():t.mobileVerified?(t.loaderVisible=!0,t.$store.dispatch("forms/contactExists",{useUserDataMobile:!0}).then((function(e){e&&e.exists?t.assignContactAndShowSuccess():(t.step="mobileNotExists",t.loaderVisible=!1)})).catch((function(){t.loadingError=!0}))):(t.step="noDataVerifyMobile",t.loaderVisible=!1)})).catch((function(){t.loadingError=!0}))),"mobile"===this.loginType&&(this.loaderVisible=!0,this.$store.dispatch("forms/contactExists",{mobile:this.userMobile}).then((function(e){e&&e.exists?t.assignContactAndShowSuccess():(t.step="mobileNotExists",t.loaderVisible=!1)})).catch((function(){t.loadingError=!0})))},noDataVerifyMobileNext:function(){var t=this;this.$refs.mobileRef.validate(),this.$refs.mobileRef.valid&&(this.loaderVisible=!0,this.$store.dispatch("forms/verify",{type:"mobile",mobile:this.mobileValue}).then((function(){t.step="verifyMobileCode",t.loaderVisible=!1,t.codeValue="",t.codeValueIsValid=!0,t.codeValueErrorText=""})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.limitReachedError=!0):t.loadingError=!0})))},validateCode:function(){return this.codeValueIsValid=!0,this.codeValueErrorText="",this.codeValueIsValid=this.codeValue&&this.codeValue.trim().length>0,this.codeValueErrorText=this.codeValueIsValid?"":this.translations.requiredField,this.codeValueIsValid&&
1(this.codeValueIsValid=this.codeValue&&6===this.codeValue.trim().length,this.codeValueErrorText=this.codeValueIsValid?"":this.translations.invalidFormat),this.codeValueIsValid},verifyMobileCodeNext:function(){var t=this;this.validateCode()&&(this.loaderVisible=!0,this.$store.dispatch("forms/validateToken",{token:this.codeValue}).then((function(){t.$store.commit("forms/setUserMobileVerified",!0),t.verifyMobileCodeContactExists()})).catch((function(e){e.response&&e.response.status&&400===e.response.status&&e.response.data&&"already confirmed"===e.response.data?(t.$store.commit("forms/setUserMobileVerified",!0),t.verifyMobileCodeContactExists()):(t.loaderVisible=!1,t.codeValueIsValid=!1,t.codeValueErrorText=t.translations.verifyMobileCode.wrongCode)})))},verifyMobileCodeContactExists:function(){var t=this;this.loaderVisible=!0,this.$store.dispatch("forms/contactExists",{mobile:this.mobileValue}).then((function(e){e&&e.exists?t.assignContactAndShowSuccess():(t.step="mobileNotExists",t.loaderVisible=!1)})).catch((function(){t.loadingError=!0}))},verifyMobileCodeBack:function(){this.step="noDataVerifyMobile"},verifyMobileCodeResend:function(){var t=this;this.loaderVisible=!0,this.$store.dispatch("forms/verify",{type:"mobile",mobile:this.mobileValue}).then((function(){t.popupResendCodeSuccessInfoOpen=!0,t.loaderVisible=!1})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.codeValueIsValid=!1,t.codeValueErrorText=t.translations.verifyLimitReached):t.loadingError=!0}))},closePopupResendCodeSuccessInfo:function(){this.popupResendCodeSuccessInfoOpen=!1},assignContactAndShowSuccess:function(){var t=this;this.loaderVisible=!0,this.$store.dispatch("forms/assignContact").then((function(){t.step="success",t.loaderVisible=!1})).catch((function(){t.loadingError=!0}))},reviewData:function(){this.close(),this.$emit("continue")}}};var pn=function(t){i("Fn+1")},mn=Object(l.a)(dn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("PopupComp",{ref:"popupRef",on:{close:function(e){return t.emitClose()}}},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mt-4 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),"success"===t.step?[i("div",{staticClass:"pl-5 pr-5 position-relative"},[i("div",{staticClass:"left-area-icon-check"}),t._v(" "),i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.importDataPopup.success.label?i("h2",[t._v("\n              "+t._s(t.translations.importDataPopup.success.label)+"\n            ")]):t._e(),t._v(" "),t.translations.importDataPopup.success.description?i("div",{domProps:{innerHTML:t._s(t.translations.importDataPopup.success.description)}}):t._e()])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.importDataPopup.reviewData)},on:{click:function(e){return t.reviewData()}}})])])])]:t._e(),t._v(" "),"noDataVerifyMobile"===t.step?[i("div",{staticClass:"pl-5 pr-5 position-relative"},[i("div",{staticClass:"left-area-icon-close"}),t._v(" "),i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.importDataPopup.noDataVerifyMobile.label?i("h2",[t._v("\n              "+t._s(t.translations.importDataPopup.noDataVerifyMobile.label)+"\n            ")]):t._e(),t._v(" "),t.getNoDataVerifyMobileDescription?i("div",{domProps:{innerHTML:t._s(t.getNoDataVerifyMobileDescription)}}):t._e()])]),t._v(" "),t.limitReachedError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.verifyLimitReached))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row mb-4 form-wrapper"},[i("div",{staticClass:"col-12"},[i("TextField",{ref:"mobileRef",attrs:{value:t.mobileValue,name:"mobile","label-name":t.translations.label.mobilePhone,placeholder:t.translations.placeholder.mobile,"custom-validation-reg-exp":t.phonePattern,"custom-error-message":t.translations.invalidFormat,required:!0,cucumber:"form_input_mobile"},on:{"update:value":function(e){t.mobileValue=e}}})],1)]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.next)},on:{click:function(e){return t.noDataVerifyMobileNext()}}})])])],2)]:t._e(),t._v(" "),"verifyMobileCode"===t.step?[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.verifyMobileCode.headline?i("h2",[t._v("\n            "+t._s(t.translations.verifyMobileCode.headline)+"\n          ")]):t._e(),t._v(" "),i("p",[t._v(t._s(t.translations.verifyMobileCode.codeSent)+" "),i("b",[t._v(t._s(t.mobileValue))])])])]),t._v(" "),i("div",{staticClass:"row mb-4 form-wrapper ssp-verify-mobile-code"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"code-field mb-4"},[t.translations.verifyMobileCode.codeLabel?i("label",{attrs:{for:"code"}},[t._v(t._s(t.translations.verifyMobileCode.codeLabel))]):t._e(),t._v(" "),i("div",{staticClass:"code-field-input-area"},[i("div",{staticClass:"code-field-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.codeValue,expression:"codeValue"}],class:{error:!t.codeValueIsValid},attrs:{"data-cucumber":"form_input_code",type:"text",name:"code",maxlength:"6"},domProps:{value:t.codeValue},on:{input:function(e){e.target.composing||(t.codeValue=e.target.value)}}})])]),t._v(" "),!t.codeValueIsValid&&t.codeValueErrorText?i("div",{staticClass:"error-text",domProps:{innerHTML:t._s(t.codeValueErrorText)}}):t._e()])])]),t._v(" "),i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"}
1,[i("div",{staticClass:"d-inline theme-txt-color-brand cursor-pointer",on:{click:function(e){return t.verifyMobileCodeResend()}}},[i("strong",[t._v(t._s(t.translations.account.resendMobile.label))])])])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline back-button mr-md-3",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.goBack)},on:{click:function(e){return t.verifyMobileCodeBack()}}}),t._v(" "),i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.next)},on:{click:function(e){return t.verifyMobileCodeNext()}}})])])]:t._e(),t._v(" "),"mobileNotExists"===t.step?[i("div",{staticClass:"pl-5 pr-5 position-relative"},[i("div",{staticClass:"left-area-icon-close"}),t._v(" "),i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.translations.importDataPopup.mobileNotExists.label?i("h2",[t._v("\n              "+t._s(t.translations.importDataPopup.mobileNotExists.label)+"\n            ")]):t._e(),t._v(" "),t.translations.importDataPopup.mobileNotExists.description?i("div",{domProps:{innerHTML:t._s(t.translations.importDataPopup.mobileNotExists.description)}}):t._e()])])])]:t._e()],2),t._v(" "),i("PopupInfo",{attrs:{open:t.popupResendCodeSuccessInfoOpen,headline:t.translations.account.resendMobile.label,text:t.translations.account.resendMobile.success,"text-button":t.translations.ok},on:{close:function(e){return t.closePopupResendCodeSuccessInfo()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],1)}),[],!1,pn,"data-v-3a7c44b2",null).exports,hn=i("kZSG");function fn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function gn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(i),!0).forEach((function(e){p()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var vn={name:"MultiConsentServiceForm",components:{MultiConsentService:vs,MultiConsentPersonalData:Rs,MultiConsentLegalEntities:Bs,Loader:j.a,CountdownButton:hn.a,ImportDataPopupComp:mn,Fragment:ua.a},props:{services:{type:Array,default:function(){return[]}},settings:{type:Object,default:function(){return{}}},serviceFormHeadline:{type:String,default:""},serviceFormText:{type:String,default:""},serviceFormOneServiceHeadline:{type:String,default:""},serviceFormOneServiceText:{type:String,default:""},serviceFormOtherServicesHeadline:{type:String,default:""},serviceFormOtherServicesText:{type:String,default:""},personalDataHeadline:{type:String,default:""},personalDataText:{type:String,default:""},afterRegisterRedirectUrl:{type:String,default:""},afterRegisterLabel:{type:String,default:""},changeCompanyMultipleTimes:{type:Boolean,default:!1},useFirstService:{type:Boolean,default:!1},useFirstServiceShowAgreementLabel:{type:Boolean,default:!1}},data:function(){return{isServiceSelectedForSubmit:!1,isShowPersonalData:!1,isShowLegalEntities:!1,isShowValidation:!1,loaderVisible:!1,isServiceStatusRetrieved:!1,loadingError:!1,topService:null,showOnlyTopService:!1,doCheckFormDataChanged:!0,subscriptions:[],errorMsg:"",forceFormIds:[],forceOnlyFormIds:[],callbackFuncAfterServiceDataLoaded:null,isUseFirstService:!1,useFirstServiceAgreementLabel:""}},computed:gn(gn({},Object(m.c)({userId:function(t){return t.forms.userId},loginType:function(t){return t.forms.loginType}})),{},{config:function(){return void 0!==window.snConfig&&window.snConfig},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},isLoaderVisible:function(){return(this.loaderVisible||!this.isServiceStatusRetrieved)&&!this.loadingError},allServiceRefs:function(){var t=[];return this.$refs&&this.$refs.topServiceRef&&t.push(this.$refs.topServiceRef),this.$refs&&this.$refs.serviceRefs&&(t=t.concat(this.$refs.serviceRefs)),t},servicesWithoutSubscribed:function(){var t=this;return this.services.filter((function(e){return!t.subscriptions.find((function(t){return t.id===e.formId}))}))},servicesWithoutTop:function(){var t=this;return this.topService?this.forceOnlyFormIds&&this.forceOnlyFormIds.length>0?this.servicesWithoutSubscribed.filter((function(e){return-1!==t.forceOnlyFormIds.indexOf(e.formId)})).filter((function(e){return e.formId!==t.topService.formId})):this.servicesWithoutSubscribed.filter((function(e){return!e.hideInWizard||-1!==t.forceFormIds.indexOf(e.formId)})).filter((function(e){return e.formId!==t.topService.formId})):this.forceOnlyFormIds&&this.forceOnlyFormIds.length>0?this.servicesWithoutSubscribed.filter((function(e){return-1!==t.forceOnlyFormIds.indexOf(e.formId)})):this.servicesWithoutSubscribed.filter((function(e){return!e.hideInWizard||-1!==t.forceFormIds.indexOf(e.formId)}))},isLoyaltyBenefitoInSubscribedOrSelected:function(){var t=!1;return(this.subscriptions.find((function(t){return"ssp-customer-loyalty-benefito-service"===t.id}))||this.allServiceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-benefito-service"===t.service.formId})))&&(t=!0),t},isLoyaltyVictoriaInSubscribedOrSelected:function(){var t=!1;return(this.subscriptions.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.id}))||this.allServiceRefs&&this.allServiceRefs.find((function(t){return!0===t.agreement&&"ssp-customer-loyalty-victoria-service"===t.service.formId})))&&(t=!0),t},isLoyaltyVictoriaOrBenefitoSelected:function(){var t=!1;return this.isServiceSelectedForSubmit&&this.allServiceRefs&&this.allServiceRefs.find((function(t){return!0===t.agreement&&("ssp-customer-loyalty-victoria-service"===t.service.formId||"ssp-customer-loyalty-benefito-service"===t.service.formId)}))&&(t=!0),t},isLoyaltyVictoriaOrBenefitoShown:function(){var t=!1;return!this.topService||"ssp-customer-loyalty-victoria-service"!==this.topService.formId&&"ssp-customer-loyalty-benefito-service"!==this.topService.formId?this.servicesWithoutTop&&this.servicesWithoutTop.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.formId||"ssp-customer-loyalty-benefito-service"===t.formId}))&&(t=!0):t=!0,t},oneSelectedServiceHasOpt:function(){var t=!1;return this.isServiceSelectedForSubmit&&this.allServiceRefs&&this.allServiceRefs.find((function(t){return!0===t.agreement&&"OPTIN"===t.service.optType}))&&(t=!0),t}
1,getServiceFormOneServiceHeadline:function(){var t="";return this.topService&&this.topService.name&&(t=this.topService.name),this.serviceFormOneServiceHeadline.replace("%1",t)},getServiceFormOneServiceText:function(){var t="";return this.topService&&this.topService.name&&(t=this.topService.name),this.serviceFormOneServiceText.replace("%1",t)},getVerificationMobilePageUrl:function(){var t=this.config.verificationMobilePageUrl;if(t+="?optType=OPTIN",this.isServiceSelectedForSubmit&&this.allServiceRefs){var e=[];this.allServiceRefs.filter((function(t){return!0===t.agreement})).forEach((function(t){t.service&&t.service.formId&&e.push(t.service.formId)})),e&&e.length>0&&(t+="&formIds=".concat(encodeURIComponent(e.join(","))))}return t}}),mounted:function(){var t=this;this.userId&&h.a.extractPostLoginFromSessionStorage()&&this.fetchServiceStatus(),this.$store.commit("forms/setOtConsentModalShown",!0),f.a.$on(g.a.UPDATE_SSP,(function(e){e===g.c.UPDATE_ACCOUNT_LOOKUP&&t.fetchServiceStatus()})),window.addEventListener("beforeunload",(function(e){var i=t.allServiceRefs.find((function(t){return!0===t.agreement}));if(t.doCheckFormDataChanged&&i){var a=e;a.preventDefault(),a.returnValue=""}}))},methods:{findGetParameter:function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e},serviceChangedAgreement:function(){(this.isServiceSelectedForSubmit=!1,this.allServiceRefs)&&(this.allServiceRefs.find((function(t){return!0===t.agreement}))&&(this.isServiceSelectedForSubmit=!0));this.checkAndDisableAgreementForServices()},serviceDataLoaded:function(){this.callbackFuncAfterServiceDataLoaded&&this.callbackFuncAfterServiceDataLoaded()},submitService:function(){if(this.isServiceSelectedForSubmit&&this.allServiceRefs){var t=!0;if(this.allServiceRefs.forEach((function(e){e.validate()||(t=!1)})),t)this.allServiceRefs&&this.allServiceRefs.find((function(t){return!0===t.agreement&&!0===t.importData&&("ssp-customer-loyalty-victoria-service"===t.service.formId||"ssp-customer-loyalty-benefito-service"===t.service.formId)}))?this.$refs.importDataPopupCompRef.open():(this.isShowPersonalData=!0,this.$refs.personalDataRef.init(this.allServiceRefs,!this.isLoyaltyVictoriaOrBenefitoSelected,this.isLoyaltyVictoriaOrBenefitoSelected),f.a.$emit(g.a.WIZARD_NEXT),window.scrollTo(0,0))}else f.a.$emit(g.a.WIZARD_NEXT),f.a.$emit(g.a.WIZARD_NEXT),this.isLoyaltyVictoriaOrBenefitoShown&&f.a.$emit(g.a.WIZARD_NEXT),window.scrollTo(0,0),this.isShowValidation=!0},submitPersonalDataShowLegalEntities:function(){this.$refs&&this.$refs.personalDataRef&&(this.$refs.personalDataRef.validate()&&(this.isShowLegalEntities=!0,this.$refs.legalEntitiesRef.init(this.allServiceRefs,this.$refs.personalDataRef,!1),f.a.$emit(g.a.WIZARD_NEXT),window.scrollTo(0,0)))},submitLegalEntities:function(){this.submitPersonalData()},submitPersonalData:function(){var t=this;if(this.$refs&&this.$refs.personalDataRef&&this.$refs.personalDataRef.validate()){this.loaderVisible=!0,this.loadingError=!1;var e={},i=[],a=[],s=null;this.allServiceRefs.forEach((function(n){if(n.agreement){var o=n.service.formId,r=n.$children.filter((function(t){return ct.includes(t.$options._componentTag)})),l=ut.a.buildFormContent(r,t.config.country);n.service.redirectAfterOptin&&""!==n.service.redirectAfterOptin&&null===s&&(s=n.service.redirectAfterOptin);var c=t.$refs.personalDataRef.$children.filter((function(t){return ct.includes(t.$options._componentTag)&&n.showField(t.name)})),u=gn(gn({},ut.a.buildFormContent(c,t.config.country)),l);t.$refs.personalDataRef.useContactAddress||(n.showField("contactZipcode")&&(u.contactZipcode=u.zipcode),n.showField("contactCity")&&(u.contactCity=u.city),n.showField("contactStreet")&&(u.contactStreet=u.street),n.showField("contactStreetNumber")&&(u.contactStreetNumber=u.streetNumber)),l.crops&&l.crops.forEach((function(t){-1===i.indexOf(t)&&i.push(t)})),l.areaPerCrop&&l.areaPerCrop.forEach((function(t){-1===a.indexOf(t)&&a.push(t)})),n.showField("legalEntites")&&(u.legalEntites=t.$refs.legalEntitiesRef.legalEntites),e[o]=u}}));var n=["occupation","occupationArableAreaSize","occupationOrganicAreaSize","occupationCrops","farmSize"],o=this.$refs.personalDataRef.$children.filter((function(t){return ct.includes(t.$options._componentTag)&&-1!==n.indexOf(t.name)})),r=ut.a.buildFormContent(o,this.config.country);if(r.occupation){if(r.crops=[],r.areaPerCrop=[],Object.prototype.hasOwnProperty.call(r,"occupationArableAreaSize")&&(r.arableAreaSize=r.occupationArableAreaSize,delete r.occupationArableAreaSize),Object.prototype.hasOwnProperty.call(r,"occupationOrganicAreaSize")&&(r.organicAreaSize=r.occupationOrganicAreaSize,delete r.occupationOrganicAreaSize),Object.prototype.hasOwnProperty.call(r,"occupationCrops")&&(r.crops=r.occupationCrops,delete r.occupationCrops),i&&i.length>
10&&i.forEach((function(t){-1===r.crops.indexOf(t)&&r.crops.push(t)})),a&&a.length>0&&(r.areaPerCrop=a),this.$refs.personalDataRef.occupationData){var l=this.$refs.personalDataRef.occupationData;void 0!==r.farmSize&&""!==r.farmSize||l.farmSize&&(r.farmSize=l.farmSize),void 0!==r.arableAreaSize&&""!==r.arableAreaSize||l.arableAreaSize&&(r.arableAreaSize=l.arableAreaSize),void 0!==r.organicAreaSize&&""!==r.organicAreaSize||l.organicAreaSize&&(r.organicAreaSize=l.organicAreaSize),l.crops&&l.crops.length>0&&l.crops.forEach((function(t){-1===r.crops.indexOf(t)&&r.crops.push(t)})),l.areaPerCrop&&l.areaPerCrop.length>0&&l.areaPerCrop.forEach((function(t){t.id&&(void 0===r.areaPerCrop.find((function(e){return e.id===t.id}))&&r.areaPerCrop.push(t))}))}e["ssp-occupation-information"]=r}this.doCheckFormDataChanged=!1,this.$store.dispatch("forms/submitForms",{content:e}).then((function(){f.a.$emit(g.a.WIZARD_NEXT),window.scrollTo(0,0),s&&""!==s?window.location.href=s:t.isShowValidation=!0,t.loaderVisible=!1})).catch((function(e){t.loadingError=!0;var i=e.response.data;i&&"There are already contacts with the same mobile phone. Use an existing record 
1instead."===i.error&&(t.errorMsg=t.translations.error.registration.phone)}))}},backToSelection:function(){this.loadingError=!1,this.isShowPersonalData=!1,f.a.$emit(g.a.WIZARD_PREVIOUS)},backToPersonalData:function(){this.loadingError=!1,this.isShowLegalEntities=!1,f.a.$emit(g.a.WIZARD_PREVIOUS)},selectTopServiceFromParam:function(){var t=this.findGetParameter("formId");t&&""!==t&&(-1!==t.indexOf(",")?this.forceFormIds=t.split(","):this.topService=this.servicesWithoutSubscribed.find((function(e){return e.formId===t})));var e=this.findGetParameter("onlyFormId");e&&""!==e&&(-1!==e.indexOf(",")?this.forceOnlyFormIds=e.split(","):(this.topService=this.servicesWithoutSubscribed.find((function(t){return t.formId===e})),this.topService&&(this.showOnlyTopService=!0)))},checkAndDisableAgreementForServices:function(){var t=this;this.$nextTick((function(){if(t.allServiceRefs){var e=t.allServiceRefs.find((function(t){return"ssp-customer-loyalty-victoria-service"===t.service.formId}));t.isLoyaltyBenefitoInSubscribedOrSelected?e&&e.setAgreementDisabled(!0):e&&e.setAgreementDisabled(!1);var i=t.allServiceRefs.find((function(t){return"ssp-customer-loyalty-benefito-service"===t.service.formId}));if(t.isLoyaltyVictoriaInSubscribedOrSelected?i&&i.setAgreementDisabled(!0):i&&i.setAgreementDisabled(!1),t.useFirstService&&1===t.allServiceRefs.length){var a=t.allServiceRefs[0];if(a&&!a.getAgreementDisabled()){t.isUseFirstService=!0,t.useFirstServiceShowAgreementLabel&&(t.useFirstServiceAgreementLabel=a.service.agreementLabel);t.callbackFuncAfterServiceDataLoaded=function(){f.a.$emit(g.a.WIZARD_HIDE_ENTRY,{index:1}),f.a.$emit(g.a.WIZARD_REFRESH_COMP),t.submitService()},a.agreement=!0}}}}))},fetchServiceStatus:function(){var t=this;this.isServiceStatusRetrieved=!1,this.$store.dispatch("forms/getSubscriptions").then((function(e){t.subscriptions=e||[],t.selectTopServiceFromParam(),t.checkAndDisableAgreementForServices(),t.isLoyaltyVictoriaOrBenefitoShown&&f.a.$emit(g.a.WIZARD_ADD_ENTRY,{name:t.translations.wizard.registration.step.legalEntities,index:3,preventDuplicate:!0}),t.isServiceStatusRetrieved=!0})).catch((function(){t.loadingError=!0}))},importDataContinue:function(){var t=this,e=[],i=0,a=function(){(i+=1)>=e.length&&t.submitService()};this.allServiceRefs.forEach((function(t){var i=t;if(i.agreement){i.importData=!1;e.push((function(){i.onlyLoadFormDataDefinition(a)}))}})),e.forEach((function(t){t()}))}}};var bn=function(t){i("Z+/j")},wn=Object(l.a)(vn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"multi-consent-service-form"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.errorMsg||t.translations.submit.error))])])])]:t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowPersonalData&&!t.isShowValidation,expression:"!isShowPersonalData && !isShowValidation"}]},[t.topService||t.servicesWithoutTop&&t.servicesWithoutTop.length>0?[t.topService?[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.getServiceFormOneServiceHeadline?i("h1",[t._v(t._s(t.getServiceFormOneServiceHeadline))]):t._e(),t._v(" "),t.getServiceFormOneServiceText?i("div",{domProps:{innerHTML:t._s(t.getServiceFormOneServiceText)}}):t._e()])]),t._v(" "),i("MultiConsentService",{ref:"topServiceRef",attrs:{service:t.topService,settings:t.settings,"load-data":!0,"do-set-prefilled-crops-of-first":!0,"do-set-prefilled-area-per-crop-of-first":!0,"show-import-data":!0,"verify-back":"registration"},on:{changedAgreement:t.serviceChangedAgreement,dataLoaded:t.serviceDataLoaded}}),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center mb-4"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.commonTranslations.continue)},on:{click:function(e){return t.submitService()}}})])]),t._v(" "),t.servicesWithoutTop&&t.servicesWithoutTop.length>0&&!t.showOnlyTopService?i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.serviceFormOtherServicesHeadline?i("h1",[t._v(t._s(t.serviceFormOtherServicesHeadline))]):t._e(),t._v(" "),t.serviceFormOtherServicesText?i("div",{domProps:{innerHTML:t._s(t.serviceFormOtherServicesText)}}):t._e()])]):t._e()]:[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[t.serviceFormHeadline?[-1!==t.serviceFormHeadline.indexOf("<h1>")?[i("fragment",{domProps:{innerHTML:t._s(t.serviceFormHeadline)}})]:[i("h1",[t._v(t._s(t.serviceFormHeadline))])]]:t._e(),t._v(" "),t.serviceFormText?i("div",{domProps:{innerHTML:t._s(t.serviceFormText)}}):t._e()],2)])],t._v(" "),t.showOnlyTopService?t._e():[t._l(t.servicesWithoutTop,(function(e,a){return i("MultiConsentService",{key:a,ref:"serviceRefs",refInFor:!0,attrs:{service:e,settings:t.settings,"load-data":!0,"do-set-prefilled-crops-of-first":!0,"do-set-prefilled-area-per-crop-of-first":!0,"show-import-data":!0,"verify-back":"registration"},on:{changedAgreement:t.serviceChangedAgreement,dataLoaded:t.serviceDataLoaded}})})),t._v(" "),t.servicesWithoutTop&&t.servicesWithoutTop.length>0?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.commonTranslations.continue)},on:{click:function(e){return t.submitService()}}})])]):t._e()]]:[i("div",{staticClass:"alert alert-primary",domProps:{innerHTML:t._s(t.translations.subscriptions.info.noServices)}}),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.commonTranslations.continue)},on:{click:function(e){return t.submitService()}}})])])]],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowPersonalData&&!t.isShowLegalEntities&&!t.isShowValidation,expression:"isShowPersonalData && !isShowLegalEntities && !isShowValidation"}]},[i("MultiConsentPersonalData",{ref:"personalDataRef",attrs:{settings:t.settings,subscriptions:t.subscriptions,"load-data":!0,"do-set-occupation-prefilled-crops-of-first":!0,"personal-data-headline":t.personalDataHeadline,"personal-data-text":t.personalDataText,"change-company-multiple-times":t.changeCompanyMultipleTimes}}),t._v(" "),t.isUseFirstService&&t.useFirstServiceAgreementLabel?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"hint-text-color",domProps:{innerHTML:t._s(t.useFirstServiceAgreementLabel)}})])]):t._e(),t._v(" "),t.translations.hint.registration?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"hint-text-color",domProps:{innerHTML:t._s(t.translations.hint.registration)}})])]):t._e(),t._v(" "),t.translations.concerns?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"hint-text-color",domProps:{innerHTML:t._s(t.translations.concerns)}})])]):t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[t.isUseFirstService?t._e():i("button",{staticClass:"ssp-button d-inline back-button mr-md-3",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.backToSelection)},on:{click:function(e){return t.backToSelection()}}}),t._v(" "),t.isLoyaltyVictoriaOrBenefitoSelected?[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.next)},on:{click:function(e){return t.submitPersonalDataShowLegalEntities()}}})]:[i("button",{staticClass:"ssp-button d-inline",attrs:{type:"button"},domProps:{innerHTML:t._s(t.translations.saveSubscription)},on:{click:function(e){return t.submitPersonalData()}}})]],2)])],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowLegalEntities&&!t.isShowValidation,expression:"isShowLegalEntities && !isShowValidation"}]},[i("MultiConsentLegalEntities",{ref:"legalEntitiesRef",attrs:{settings:t.settings,subscriptions:t.subscriptions,"legal-entities-headline":t.translations.legalEntitiesHeadline,"legal-entities-text":t.translations.legalEntitiesText},on:{back:function(e){return t.backToPersonalData()},submit:function(e){return t.submitLegalEntities()}}}
1)],1),t._v(" "),t.isShowValidation?i("div",[i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[i("h1",[t._v(t._s(t.translations.wizard.registration.step.four))]),t._v(" "),t.oneSelectedServiceHasOpt&&t.loginType&&"mobile"===t.loginType?[i("div",{staticClass:"mb-3",domProps:{innerHTML:t._s(t.translations.submit.service.mobile.subscribe)}}),t._v(" "),i("CountdownButton",{attrs:{url:t.getVerificationMobilePageUrl,time:15,label:t.commonTranslations.continue}})]:[i("div",{staticClass:"mb-3",domProps:{innerHTML:t._s(t.oneSelectedServiceHasOpt?t.translations.submit.service.subscribe:t.translations.submit.service.optNone.subscribe)}}),t._v(" "),i("CountdownButton",{attrs:{url:t.afterRegisterRedirectUrl,time:15,label:t.afterRegisterLabel}})]],2)])]):t._e(),t._v(" "),i("ImportDataPopupComp",{ref:"importDataPopupCompRef",attrs:{"phone-pattern":t.settings.phonePattern},on:{continue:function(e){return t.importDataContinue()}}}),t._v(" "),i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],2)}),[],!1,bn,"data-v-6cc2654c",null).exports,yn={name:"MultiConsentRegistrationCompletion",props:{redirectUrl:{type:String,default:""},size:{type:Number,default:50},width:{type:Number,default:40}},data:function(){return{loaderVisible:!1,loadingError:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError}}
1,mounted:function(){var t=this;this.loaderVisible=!0;var e=this.findGetParameter("token");e&&""!==e?this.$store.dispatch("forms/submitRegistrationCompletion",{token:e}).then((function(){window.location.href=t.redirectUrl})).catch((function(){t.loadingError=!0})):this.loadingError=!0},methods:{findGetParameter:function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e}}};var Cn=function(t){i("VlDw")},_n=Object(l.a)(yn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"multi-consent-registration-validation"},[t.loadingError?[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.submit.error))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12 text-center"},[i("h2",[t._v(t._s(t.translations.registration.completion.text))])])]),t._v(" "),t.isLoaderVisible?i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12 text-center"},[i("div",{staticClass:"loader-wrap position-relative"},[i("div",{staticClass:"loader-style",style:{width:t.size+"px",height:t.size+"px"}},[i("svg",{attrs:{viewBox:"0 0 100 100"}},[i("polyline",{staticClass:"stroke-still",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 100,100 100,0"}}),t._v(" "),i("polyline",{staticClass:"stroke-still",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 0,0 100,0"}}),t._v(" "),i("polyline",{staticClass:"stroke-animation",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 100,100 100,0"}}),t._v(" "),i("polyline",{staticClass:"stroke-animation",style:{strokeWidth:t.width+"px"},attrs:{points:"0,100 0,0 100,0"}})])])])])]):t._e()],2)}),[],!1,Cn,"data-v-21106412",null).exports,Sn={name:"LightRegistrationLink",components:{Fragment:ua.a,RadioField:wa},props:{linkStyle:{type:String,default:"inline"},text:{type:String,default:""},entries:{type:Array,default:function(){return[]}},useTeaser:{type:Boolean,default:!1}},data:function(){return{consentValue:{},consentOptions:[]}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.lightRegistration)&&window.snTranslations.lightRegistration}},mounted:function(){var t=this,e=this;this.entries&&this.entries.forEach((function(e){t.consentOptions.push({id:e.formId,name:t.translations.consent[e.consent],code:e.formId,entry:e})})),this.consentOptions&&this.consentOptions.length>0&&(this.consentValue=this.consentOptions[0]);var i=this.findGetParameter("lr");if(i&&""!==i){var a=this.consentOptions.find((function(t){return t.entry.trackingKey===i}));a&&(this.consentValue=a,setTimeout((function(){e.open()}),0))}},methods:{open:function(){f.a.$emit("openLightRegistrationFormPopup",this.consentValue.entry)},findGetParameter:function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e}}};var Tn=function(t){i("pbIK")},Pn=Object(l.a)(Sn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[t.useTeaser?i("a",{staticClass:"light-registration-link-teaser",attrs:{title:"","data-tealium-value":"teaser_newsletter-registration_register-button","data-tealium-category":"cta","data-tealium-type":"action","data-tealium-action":"button_click","data-cucumber":"cta"},on:{click:function(e){return e.preventDefault(),t.open()}}},[t._t("default")],2):i("span",{staticClass:"light-registration-link",class:t.linkStyle},[t.consentOptions&&t.consentOptions.length>1?[i("div",{staticClass:"lr-options"},[i("RadioField",{attrs:{value:t.consentValue,name:"consent",options:t.consentOptions,required:!0,"do-on-change-validation":!0,cucumber:"form_select_consent"},on:{"update:value":[function(e){t.consentValue=e},function(e){return t.consentValue=e}]}})],1)]:t._e(),t._v(" "),"primary"===t.linkStyle?[i("a",{staticClass:"fl-btn fl-btn-icon-primary-lg-big",attrs:{title:t.text,"data-teal
1ium-value":"teaser_newsletter-registration_register-button","data-tealium-category":"cta","data-tealium-type":"action","data-tealium-action":"button_click","data-cucumber":"cta"},on:{click:function(e){return t.open()}}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")]),t._v("\n        "+t._s(t.text)+"\n      ")])]:t._e(),t._v(" "),"primary-small"===t.linkStyle?[i("a",{staticClass:"fl-btn fl-btn-icon-primary-small",attrs:{title:t.text,"data-tealium-value":"teaser_newsletter-registration_register-button","data-tealium-category":"cta","data-tealium-type":"action","data-tealium-action":"button_click","data-cucumber":"cta"},on:{click:function(e){return t.open()}}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")]),t._v("\n        "+t._s(t.text)+"\n      ")])]:t._e(),t._v(" "),"secondary"===t.linkStyle?[i("a",{staticClass:"fl-btn fl-btn-icon-secondary",attrs:{title:t.text,"data-tealium-value":"teaser_newsletter-registration_register-button","data-tealium-category":"cta","data-tealium-type":"action","data-tealium-action":"button_click","data-cucumber":"cta"},on:{click:function(e){return t.open()}}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")]),t._v("\n        "+t._s(t.text)+"\n      ")])]:t._e(),t._v(" "),"inline"===t.linkStyle?[i("a",{staticClass:"fl-btn fl-btn-icon-primary-lg-big lr-inline",attrs:{title:t.text,"data-tealium-value":"teaser_newsletter-registration_register-button","data-tealium-category":"cta","data-tealium-type":"action","data-tealium-action":"button_click","data-cucumber":"cta"},on:{click:function(e){return t.open()}}},[t.consentValue&&t.consentValue.entry&&("EMAIL"===t.consentValue.entry.consent||"POSTAL"===t.consentValue.entry.consent)?i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("mail")]):t._e(),t._v(" "),t.consentValue&&t.consentValue.entry&&"MOBILE"===t.consentValue.entry.consent?i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("smartphone")]):t._e(),t._v("\n        "+t._s(t.text)+"\n      ")])]:t._e()],2)])}),[],!1,Tn,"data-v-1a650f9a",null).exports,Fn=i("oNTl"),xn={name:"FrcField",extends:tt.a,data:function(){return{frcId:null,value:{type:String,default:""}}},computed:{config:function(){return void 0!==window.snConfig&&window.snConfig}},created:function(){this.frcId="frc_field_".concat(this._uid)},mounted:function(){this.initFrc()},methods:{initFrc:function(){var t=document.getElementById(this.frcId);if(t){var e={language:this.config.language,startMode:"auto",sitekey:this.config.frcSiteKey,doneCallback:this.doneCallbackFrc};new Fn.a(t,e)}},doneCallbackFrc:function(t){this.value=t,this.$emit("update:value",this.value),this.$emit("doneFrc")}}};var On=function(t){i("Uruq")},kn=Object(l.a)(xn,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"frc-field",attrs:{id:this.frcId}})}),[],!1,On,"data-v-4803c1be",null).exports,Ln={name:"LightRegistrationFormField",components:{Fragment:ua.a,TextField:U.a,LocationField:ce,SelectField:Et.a,CropsField:Ht,CheckboxField:at,FrcField:kn},props:{field:{type:Object,default:function(){}},entry:{type:Object,default:function(){}},allowFrcField:{type:Boolean,default:!1}},data:function(){return{occupationOptions:[],occupationOptionsFiltered:[]}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.lightRegistration)&&window.snTranslations.lightRegistration},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig},salutationOptions:function(){return void 0!==window.salutationConfig?window.salutationConfig.sort((function(t,e){return e.ordering-t.ordering})):[]},cropListCurrent:function(){return this.entry.cropList?v.a.sortByText(this.entry.cropList):[]},allOccupationOptions:function(){return void 0!==window.occupationConfig?window.occupationConfig.sort((function(t,e){return e.ordering-t.ordering})):[]},occupationTypeOptions:function(){return void 0!==window.occupationTypeConfig?window.occupationTypeConfig.slice().sort((function(t,e){return e.ordering-t.ordering})):[]},inforisqueSeedDateOptions:function(){var t=(new Date).getFullYear(),e=[];return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.inforisqueSeedDate&&window.sspSelectFieldConfig.inforisqueSeedDate.options.length&&(e=window.sspSelectFieldConfig.inforisqueSeedDate.options.slice().sort((function(t,e){return e.ordering-t.ordering}))),e?e.map((function(e){return{id:e.id,name:e.name,code:"".concat(t,"-").concat(e.code),ordering:e.ordering}})):e},jacketSizeOptions:function(){return void 0!==window.sspSelectFieldConfig&&void 0!==window.sspSelectFieldConfig.jacketSize&&window.sspSelectFieldConfig.jacketSize.options.length?window.sspSelectFieldConfig.jacketSize.options.slice().sort((function(t,e){return e.ordering-t.ordering})):[]}},mounted:function(){var t=this;this.entry&&this.entry.occupationWhitelist&&this.entry.occupationWhitelist.length>0?this.occupationOptions=this.allOccupationOptions.filter((function(e){return-1!==t.entry.occupationWhitelist.indexOf(e.id)})):this.occupationOptions=this.allOccupationOptions,this.occupationOptionsFiltered=this.occupationOptions},methods:{showField:function(t){var e=!1;return t===this.field.name&&(e=!0),e},isRequired:function(t){var e=!1;return t===this.field.name&&!0===this.field.mandatory&&(e=!0),e},doneFrc:function(){this.$emit("doneFrc")},setLocationValue:function(t,e){"zipcode"!==this.field.name&&"city"!==this.field.name&&"inforisqueParcelZIP"!==this.field.name||(this.field.value=t,e&&this.$emit("updateLocationValue",t))},setOccupationTypeValue:function(t,e){var i=this;("occupationType"===this.field.name&&(this.field.value=t,e&&this.$emit("updateOccupationTypeValue",t)),"occupation"===this.field.name)&&(t&&t.code?(this.occupationOptionsFiltered=this.occupationOptions.filter((function(e){return e.bpType===t.code})),this.field.value&&this.field.value.accountDetail&&void 0===this.occupationOptionsFiltered.find((function(t){return t.accountDetail===i.field.value.accountDetail}))&&(this.field.value={})):this.occupationOptionsFiltered=this.occupationOptions)},getPlaceholder:function(t){var e=this.translations.field[t].name;return this.isRequired(t)||(e="".concat(this.translations.field[t].name," ").concat(this.translations.form.optional)),e},getPlaceholderSelect:function(t){var e=this.commonTranslations.singleSelect;return this.isRequired(t)||(e="".concat(this.commonTranslations.singleSelect," ").concat(this.translations.form.optional)),e}}};var In=function(t){i("oJCB")},En=Object(l.a)(Ln,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[t.showField("firstName")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("TextField",{attrs:{value:t.field.value,name:"firstName","label-name":t.translations.field.firstName.name,tooltip:t.translations.field.firstName.tooltip,placeholder:t.getPlaceholder("firstName"),required:t.isRequired("firstName"),"do-on-change-validation":!0,cucumber:"form_input_firstName"},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("lastName")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.field.value,name:"lastName","label-name":t.translations.field.lastName.name,tooltip:t.translations.field.lastName.tooltip,placeholder:t.getPlaceholder("lastName"),required:t.isRequired("lastName"),"do-on-change-validation":!0,cucumber:"form_input_lastName"},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("email")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.field.value,name:"email","label-name":t.translations.field.email.name,tooltip:t.translations.field.email.tooltip,placeholder:t.getPlaceholder("email"),"custom-validation-reg-exp":t.config.emailPattern,"custom-error-message":t.translations.validation.enterValidEmail,"input-type":"email",required:t.isRequired("email"),"do-on-change-validation":!0,cucumber:"form_input_email"},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("mobile")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.field.value,name:"mobile","label-name":t.translations.field.mobile.name,tooltip:t.translations.field.mobile.tooltip,placeholder:t.getPlaceholder("mobile"),"custom-validation-reg-exp":t.config.phonePattern,"custom-error-message":t.translations.validation.invalidFormat,required:t.isRequired("mobile"),"do-on-change-validation":!0,cucumber:"form_input_mobile"},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("zipcode")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("LocationField",{attrs:{value:t.field.value,name:"zipcode","label-name":t.translations.field.zipcode.name,tooltip:t.translations.field.zipcode.tooltip,placeholder:t.getPlaceholder("zipcode"),anchor:"zipcode",required:t.isRequired("zipcode"),"do-on-change-validation":!0,"show-zipcode":t.config.showZipcode,"show-region1":t.config.showRegion1,"show-region2":t.config.showRegion2,cucumber:"form_input_zipcode"},on:{"update:value":function(e){return t.setLocationValue(e,!0)}}})],1)]):t._e(),t._v(" "),t.showField("city")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("LocationField",{attrs:{value:t.field.value,name:"city","label-name":t.translations.field.city.name,tooltip:t.translations.field.city.tooltip,placeholder:t.getPlaceholder("city"),anchor:"name",required:t.isRequired("city"),"do-on-change-validation":!0,"show-zipcode":t.config.showZipcode,"show-region1":t.config.showRegion1,"show-region2":t.config.showRegion2,cucumber:"form_input_city"},on:{"update:value":function(e){return t.setLocationValue(e,!0)}}})],1)]):t._e(),t._v(" "),t.showField("street")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("TextField",{attrs:{value:t.field.value,name:"street","label-name":t.translations.field.street.name,tooltip:t.translations.field.street.tooltip,placeholder:t.getPlaceholder("street"),required:t.isRequired("street"),"do-on-change-validation":!0,cucumber:"form_input_street"},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("salutation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.field.value,name:"salutation","label-name":t.translations.field.salutation.name,tooltip:t.translations.field.salutation.tooltip,placeholder:t.getPlaceholderSelect("salutation"),options:t.salutationOptions,required:t.isRequired("salutation"),"do-on-change-validation":!0,cucumber:"form_select_salutation"},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("crops")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CropsField",{attrs:{name:"crops","label-name":t.translations.field.crops.name,tooltip:t.translations.field.crops.tooltip,placeholder:t.getPlaceholder("crops"),"crop-list":t.cropListCurrent,required:t.isRequired("crops")&&t.cropListCurrent.length>0,"do-on-change-validation":!0,"use-amiga-code":!0,cucumber:"form_select_crops"},on:{update:function(e){return t.field.value=e}}})],1)]):t._e(),t._v(" "),t.showField("occupationType")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"}
1,[i("SelectField",{attrs:{value:t.field.value,name:"occupationType","label-name":t.translations.field.occupationType.name,tooltip:t.translations.field.occupationType.tooltip,placeholder:t.getPlaceholderSelect("occupationType"),options:t.occupationTypeOptions,required:t.isRequired("occupationType"),"do-on-change-validation":!0,cucumber:"form_select_occupationType"},on:{"update:value":function(e){return t.setOccupationTypeValue(e,!0)}}})],1)]):t._e(),t._v(" "),t.showField("occupation")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.field.value,name:"occupation","label-name":t.translations.field.occupation.name,tooltip:t.translations.field.occupation.tooltip,placeholder:t.getPlaceholderSelect("occupation"),options:t.occupationOptionsFiltered,required:t.isRequired("occupation"),"do-on-change-validation":!0,cucumber:"form_select_occupation"},on:{"update:value":function(e){return t.field.value=e}}})],1)]):t._e(),t._v(" "),t.showField("inforisqueSeedDate")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.field.value,name:"inforisqueSeedDate","label-name":t.translations.field.inforisqueSeedDate.name,tooltip:t.translations.field.inforisqueSeedDate.tooltip,"do-on-change-validation":!0,placeholder:t.getPlaceholderSelect("inforisqueSeedDate"),options:t.inforisqueSeedDateOptions,required:t.isRequired("inforisqueSeedDate")},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("inforisqueParcelZIP")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("LocationField",{attrs:{value:t.field.value,name:"inforisqueParcelZIP","label-name":t.translations.field.inforisqueParcelZIP.name,tooltip:t.translations.field.inforisqueSeedDate.tooltip,anchor:"zipcode",required:t.isRequired("inforisqueParcelZIP"),"do-on-change-validation":!0,"show-zipcode":t.config.showZipcode,"show-region1":t.config.showRegion1,"show-region2":t.config.showRegion2},on:{"update:value":function(e){return t.setLocationValue(e,!1)}}})],1)]):t._e(),t._v(" "),t.showField("jacketSize")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("SelectField",{attrs:{value:t.field.value,name:"jacketSize","label-name":t.translations.field.jacketSize.name,tooltip:t.translations.field.jacketSize.tooltip,"do-on-change-validation":!0,placeholder:t.getPlaceholderSelect("jacketSize"),options:t.jacketSizeOptions,required:t.isRequired("jacketSize")},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e(),t._v(" "),t.showField("frc")&&t.allowFrcField?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("FrcField",{attrs:{name:"frc"},on:{"update:value":function(e){return t.field.value=e},doneFrc:function(e){return t.doneFrc()}}})],1)]):t._e(),t._v(" "),t.showField("agreement")?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("CheckboxField",{attrs:{value:t.field.value,name:"agreement","checkbox-label":t.entry.agreement,required:t.isRequired("agreement"),"do-on-change-validation":!0,"display-required-flag":!1,cucumber:"form_checkbox_agreement"},on:{"update:value":function(e){return t.$set(t.field,"value",e)}}})],1)]):t._e()])}),[],!1,In,"data-v-3da14233",null).exports,Vn={name:"LightRegistrationVerifyEmailPopup",components:{PopupComp:o.a},props:{entry:{type:Object,default:function(){}}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.lightRegistration)&&window.snTranslations.lightRegistration}},methods:{open:function(){this.$refs.popupRef.open()},close:function(){this.$refs.popupRef.close()}}};var An=function(t){i("MQMZ")},Dn=Object(l.a)(Vn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("PopupComp",{ref:"popupRef",staticClass:"light-registration-form-modal"},[t.translations.verifyEmail.headline?i("div",{staticClass:"row mr-3 mb-4"},[i("div",{staticClass:"col-12"},[i("h2",{staticClass:"lr-headline"},[t._v("\n        "+t._s(t.translations.verifyEmail.headline)+"\n      ")])])]):t._e(),t._v(" "),i("div",{staticClass:"row mr-3 mb-4"},[t.translations.verifyEmail.subHeadline?i("div",{staticClass:"col-12"},[i("p",[i("b",[t._v(t._s(t.translations.verifyEmail.subHeadline))])])]):t._e(),t._v(" "),t.translations.verifyEmail.text?i("div",{staticClass:"col-12",domProps:{innerHTML:t._s(t.translations.verifyEmail.text.replace(/%name%/g,t.entry.name))}}):t._e()]),t._v(" "),i("hr",{staticClass:"lr-separator"}),t._v(" "),i("div",{staticClass:"row mr-3 mt-3"},[i("div",{staticClass:"col-12 text-right"},[i("a",{staticClass:"fl-btn fl-btn-icon-primary-lg-big light-registration-button",attrs:{title:t.translations.verifyEmail.submit},on:{click:function(e){return t.close()}}},[t._v("\n        "+t._s(t.translations.verifyEmail.submit)+"\n      ")])])])])}),[],!1,An,"data-v-3048f1b8",null).exports,Mn={name:"LightRegistrationVerifyMobilePopup",components:{Fragment:ua.a,PopupComp:o.a,Loader:j.a},props:{entry:{type:Object,default:function(){}},successpage:{type:String,default:""}},data:function(){return{loaderVisible:!1,loadingError:!1,codeEntries:[{value:""},{value:""},{value:""},{value:""},{value:""},{value:""}],codeErrorText:"",numberRegEx:new RegExp("^([0-9])$"),mobile:"",showResendCodeSuccess:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.lightRegistration)&&window.snTranslations.lightRegistration},commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},config:function(){return void 0!==window.snConfig&&window.snConfig},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},codeValue:function(){var t="";
1return this.codeEntries.forEach((function(e){t+=e.value})),t},functionHelper:function(){return v.a}},watch:{showResendCodeSuccess:function(){var t=this;this.showResendCodeSuccess&&setTimeout((function(){t.showResendCodeSuccess=!1}),3e3)}},methods:{open:function(t){this.loadingError=!1,this.codeErrorText="",this.mobile=t,this.$refs.popupRef.open()},codeFieldHandleKeyDown:function(t,e,i){var a=e;"Tab"!==t.key&&"ArrowRight"!==t.key&&"ArrowLeft"!==t.key&&t.preventDefault(),"Backspace"===t.key?(a.value="",0!==i&&this.$refs.codeEntryRef[i-1].focus()):this.numberRegEx.test(t.key)&&(a.value=t.key,i!==this.codeEntries.length-1&&this.$refs.codeEntryRef[i+1].focus()),this.codeValue&&this.codeValue.length===this.codeEntries.length&&(this.codeErrorText="")},validate:function(){var t=!1;return this.codeErrorText="",this.codeValue&&this.codeValue.length===this.codeEntries.length?t=!0:this.codeErrorText=this.commonTranslations.requiredField,t},submit:function(){var t=this;this.loadingError=!1,this.validate()&&(this.loaderVisible=!0,this.$store.dispatch("forms/lrValidateToken",{token:this.codeValue}).then((function(){t.redirectToSuccesspage()})).catch((function(e){e.response&&e.response.status&&400===e.response.status&&e.response.data&&"already confirmed"===e.response.data?t.redirectToSuccesspage():(t.loaderVisible=!1,t.codeErrorText=t.translations.verifyMobile.wrongCode)})))},redirectToSuccesspage:function(){var t="registration_".concat(encodeURIComponent(this.entry.trackingKey));window.location.href="".concat(this.successpage,"?service=").concat(t,"&formIds=").concat(encodeURIComponent(this.entry.formId))},resendCode:function(){var t=this;this.loadingError=!1;var e={};e.language=this.config.language,e.mobile=this.mobile,this.loaderVisible=!0,this.$store.dispatch("forms/lrResendCode",{formId:this.entry.formId,optType:"OPTIN",content:e}).then((function(){t.showResendCodeSuccess=!0,t.loaderVisible=!1})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.codeErrorText=t.translations.validation.limitReached):t.loadingError=!0}))}}};var Rn=function(t){i("z6xR")},$n=Object(l.a)(Mn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[i("PopupComp",{ref:"popupRef",staticClass:"light-registration-form-modal"},[t.translations.verifyMobile.headline?i("div",{staticClass:"row mr-3 mb-4"},[i("div",{staticClass:"col-12"},[i("h2",{staticClass:"lr-headline"},[t._v("\n          "+t._s(t.translations.verifyMobile.headline)+"\n        ")])])]):t._e(),t._v(" "),t.loadingError?[i("div",{staticClass:"row mr-3"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.commonTranslations.errorMsg))])])])]:t._e(),t._v(" "),i("div",{staticClass:"row mr-3 mb-4"},[t.translations.verifyMobile.subHeadline?i("div",{staticClass:"col-12"},[i("p",[i("b",[t._v(t._s(t.translations.verifyMobile.subHeadline))])])]):t._e(),t._v(" "),t.translations.verifyMobile.text?i("div",{staticClass:"col-12",domProps:{innerHTML:t._s(t.translations.verifyMobile.text.replace(/%name%/g,t.entry.name))}}):t._e()]),t._v(" "),i("div",{staticClass:"row mb-4"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"code-field-area mb-4"},[i("div",[t.showResendCodeSuccess?[i("div",{staticClass:"alert alert-success alert-dismissible fade show"},[t._v("\n                "+t._s(t.translations.verifyMobile.reSendSuccess)+"\n                "),i("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(e){t.showResendCodeSuccess=!1}}},[i("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])]:t._e(),t._v(" "),i("div",{staticClass:"code-field"},[i("label",[t._v(t._s(t.translations.verifyMobile.field.code.name))]),t._v(" "),i("div",{staticClass:"code-field-inputs"},[t._l(t.codeEntries,(function(e,a){return[i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"codeEntry.value"}],key:a,ref:"codeEntryRef",refInFor:!0,attrs:{maxlength:"1",type:"text",placeholder:"_","data-cucumber":"form_input_code"},domProps:{value:e.value},on:{keydown:function(i){return t.codeFieldHandleKeyDown(i,e,a)},input:function(i){i.target.composing||t.$set(e,"value",i.target.value)}}})]}))],2),t._v(" "),i("div",{staticClass:"field-msg error"},[t._v("\n                "+t._s(t.codeErrorText)+"\n              ")])]),t._v(" "),i("a",{staticClass:"fl-btn fl-btn-icon-primary-small",attrs:{title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.verifyMobile.reSend)},on:{click:function(e){return t.resendCode()}}},[i("i",{staticClass:"material-symbols-sharp",attrs:{"aria-hidden":"true"}},[t._v("east")]),t._v("\n              "+t._s(t.translations.verifyMobile.reSend)+"\n            ")])],2)])])]),t._v(" "),i("hr",{staticClass:"lr-separator"}),t._v(" "),i("div",{staticClass:"row mr-3 mt-3"},[i("div",{staticClass:"col-12 text-right"},[i("a",{staticClass:"fl-btn fl-btn-icon-primary-lg-big light-registration-button",attrs:{title:t.translations.verifyMobile.submit},on:{click:function(e){return t.submit()}}},[t._v("\n          "+t._s(t.translations.verifyMobile.submit)+"\n        ")])])])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoaderVisible,expression:"isLoaderVisible"}]},[i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0,"is-in-modal":!0}})],1)],1)}),[],!1,Rn,"data-v-51b2ba82",null).exports,Nn={name:"LightRegistrationFormPopup",components:{Fragment:ua.a,PopupComp:o.a,LightRegistrationFormField:En,LightRegistrationVerifyEmailPopup:Dn,LightRegistrationVerifyMobilePopup:$n,Loader:j.a},props:{successpage:{type:String,default:""}},data:function(){return{entry:{},loaderVisible:!1,loadingError:!1,limitReached:!1,isSubmitEnabled:!0,fields:[],agreementField:{name:"agreement",crm:"agreement",value:null,mandatory:!0,display:!0},frcField:null}},computed:{commonTranslations:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.lightRegistration)&&window.snTranslations.lightRegistration},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError},config:function(){return void 0!==window.snConfig&&window.snConfig},functionHelper:function(){return v.a}},created:function(){var t=this;f.a.$on("openLightRegistrationFormPopup",(function(e){t.open(e)}))},methods:{open:function(t){var e=this;this.loadingError=!1,this.limitReached=!1,this.entry=t,this.agreementField.value=null,this.loaderVisible=!0,this.isSubmitEnabled=!0,this.$store.dispatch("forms/fetchLrFormDefiniction",{formId:this.entry.formId}).then((function(t){e.fields=t,e.fields.forEach((function(t){e.$set(t,"value",null)}));var i=e.fields.find((function(t){return"frc"===t.name}));i&&(e.isSubmitEnabled=!1,e.frcField=i),e.loaderVisible=!1,t.length||(e.loadingError=!0,e.scrollToTop())})).catch((function(){e.loadingError=!0,e.scrollToTop()})),this.$refs.popupRef.open()},doneFrc:function(){this.isSubmitEnabled=!0}
1,validate:function(){var t=!0,e=this.getAllFields(),i=!1,a=null;return e.forEach((function(t){var e=t;e.forceValidation=!0,e.validate(),e.forceValidation=!1,e.valid||(i=!0,null===a&&(a=e))})),i&&(t=!1,this.scrollToFirstError(a)),t},scrollToFirstError:function(t){if(t){var e=this.$refs.popupRef.getModalWrapperRef(),i=this.$refs.popupRef.getModalRef();if(e&&i){var a=-1*(i.getBoundingClientRect().top-t.$el.getBoundingClientRect().top);e.scrollTo(0,a)}}},scrollToTop:function(){var t=this.$refs.popupRef.getModalWrapperRef();t&&t.scrollTo(0,0)},getAllFields:function(){var t=[];this.$refs.fieldRef.forEach((function(e){var i=e.$children[0].$children.filter((function(t){return ct.includes(t.$options._componentTag)}));t=t.concat(i)}));var e=this.$refs.agreementFieldRef.$children[0].$children.filter((function(t){return ct.includes(t.$options._componentTag)}));if(t=t.concat(e),this.frcField){var i=this.$refs.frcFieldRef.$children[0].$children.filter((function(t){return ct.includes(t.$options._componentTag)}));t=t.concat(i)}return t},submit:function(){var t=this;if(this.isSubmitEnabled&&(this.loadingError=!1,this.limitReached=!1,this.validate())){this.loaderVisible=!0;var e=this.getAllFields(),i=ut.a.buildFormContent(e,this.config.country);i.language=this.config.language,i.sspPrefLanguage=this.config.sspPrefLanguage,i.service_OPTIN="registration_".concat(encodeURIComponent(this.entry.trackingKey)),i.service_OPTOUT="deregistration_".concat(encodeURIComponent(this.entry.trackingKey)),this.$store.dispatch("forms/lrSubmitForm",{formId:this.entry.formId,content:i}).then((function(){t.loaderVisible=!1,t.$refs.popupRef.close(),_e.a.lrNoOpt()?t.redirectToSuccesspage():"MOBILE"===t.entry.consent?t.$refs.verifyMobilePopupRef.open(i.mobile):t.$refs.verifyEmailPopupRef.open()})).catch((function(e){e.response&&e.response.status&&402===e.response.status?(t.loaderVisible=!1,t.limitReached=!0,t.scrollToTop()):(t.loadingError=!0,t.scrollToTop())}))}},updateLocationValue:function(t){this.$refs.fieldRef.forEach((function(e){e.setLocationValue(t,!1)}))},updateOccupationTypeValue:function(t){this.$refs.fieldRef.forEach((function(e){e.setOccupationTypeValue(t,!1)}))},redirectToSuccesspage:function(){var t="registration_".concat(encodeURIComponent(this.entry.trackingKey));window.location.href="".concat(this.successpage,"?service=").concat(t,"&formIds=").concat(encodeURIComponent(this.entry.formId))}}};var jn=function(t){i("aXay")},zn=Object(l.a)(Nn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[i("PopupComp",{ref:"popupRef",staticClass:"light-registration-form-modal"},[t.entry&&t.entry.name?i("div",{staticClass:"row mr-3 mb-4"},[i("div",{staticClass:"col-12"},[i("h2",{staticClass:"lr-headline"},[t._v("\n          "+t._s(t.entry.name)+"\n        ")])])]):t._e(),t._v(" "),t.loadingError?[i("div",{staticClass:"row mr-3"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.commonTranslations.errorMsg))])])])]:t._e(),t._v(" "),t.limitReached?[i("div",{staticClass:"row mr-3"},[i("div",{staticClass:"col-12 mb-4"},[i("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.translations.validation.limitReached))])])])]:t._e(),t._v(" "),t.fields?i("div",{staticClass:"row mr-3"},[i("div",{staticClass:"col-12"},[t._l(t.fields,(function(e,a){return[i("LightRegistrationFormField",{key:a,ref:"fieldRef",refInFor:!0,attrs:{field:e,entry:t.entry},on:{updateLocationValue:function(e){return t.updateLocationValue(e)},updateOccupationTypeValue:function(e){return t.updateOccupationTypeValue(e)},doneFrc:function(e){return t.doneFrc()}}})]})),t._v(" "),t.entry.text_b_agreement?i("div",{staticClass:"row"},[i("div",{staticClass:"col-12",domProps:{innerHTML:t._s(t.entry.text_b_agreement)}})]):t._e(),t._v(" "),i("LightRegistrationFormField",{ref:"agreementFieldRef",attrs:{field:t.agreementField,entry:t.entry},on:{updateLocationValue:function(e){return t.updateLocationValue(e)},updateOccupationTypeValue:function(e){return t.updateOccupationTypeValue(e)}}}),t._v(" "),t.commonTranslations.requiredText?i("div",{domProps:{innerHTML:t._s(t.commonTranslations.requiredText)}}):t._e(),t._v(" "),t.frcField?i("LightRegistrationFormField",{ref:"frcFieldRef",attrs:{"allow-frc-field":!0,field:t.frcField,entry:t.entry},on:{updateLocationValue:function(e){return t.updateLocationValue(e)},updateOccupationTypeValue:function(e){return t.updateOccupationTypeValue(e)},doneFrc:function(e){return t.doneFrc()}}}):t._e()],2)]):t._e(),t._v(" "),i("hr",{staticClass:"lr-separator"}),t._v(" "),i("div",{staticClass:"row mr-3 mt-3"},[i("div",{staticClass:"col-12 text-right"},[i("a",{staticClass:"fl-btn fl-btn-icon-primary-lg-big light-registration-button",class:{disabled:!t.isSubmitEnabled},attrs:{title:t.functionHelper.formatTitle(t.commonTranslations.clickTo,t.translations.form.submit),"data-teal
1ium-value":"form_newsletter-registration_confirm-registration-button","data-tealium-category":"cta","data-tealium-type":"action","data-tealium-action":"button_click","data-cucumber":"cta"},on:{click:function(e){return t.submit()}}},[t._v("\n          "+t._s(t.translations.form.submit)+"\n        ")])])])],2),t._v(" "),i("LightRegistrationVerifyEmailPopup",{ref:"verifyEmailPopupRef",attrs:{entry:t.entry}}),t._v(" "),i("LightRegistrationVerifyMobilePopup",{ref:"verifyMobilePopupRef",attrs:{entry:t.entry,successpage:t.successpage}}),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoaderVisible,expression:"isLoaderVisible"}]},[i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0,"is-in-modal":!0}})],1)],1)}),[],!1,jn,"data-v-3ad1970e",null).exports,Bn={name:"LightRegistrationOptinOptout",components:{Fragment:ua.a,Loader:j.a},props:{consents:{type:Array,default:function(){return[]}},entries:{type:Array,default:function(){return[]}},startpage:{type:String,default:""},optType:{type:String,default:"OPTIN"}},data:function(){return{entry:null,consent:null,loaderVisible:!1,loadingError:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.lightRegistration)&&window.snTranslations.lightRegistration},isLoaderVisible:function(){return this.loaderVisible&&!this.loadingError}}
1,mounted:function(){var t=this.findGetParameter("formIds"),e=this.findGetParameter("token");e?this.submitToken(t,e):this.setEntryConsent(t,!1)},methods:{setEntryConsent:function(t,e){var i=this;t?e?this.consent=this.consents.find((function(t){return"ERROR"===t.consent})):(this.entry=this.entries.find((function(e){return e.formId===t})),this.entry&&(this.consent=this.consents.find((function(t){return t.consent===i.entry.consent})))):this.consent=this.consents.find((function(t){return"ERROR"===t.consent}))},submitToken:function(t,e){var i=this;this.loaderVisible=!0,this.$store.dispatch("forms/lrValidateToken",{token:e}).then((function(){i.loaderVisible=!1,i.setEntryConsent(t,!1)})).catch((function(e){e.response&&e.response.status&&400===e.response.status&&e.response.data&&"already confirmed"===e.response.data?(i.loaderVisible=!1,i.setEntryConsent(t,!1)):(i.loadingError=!0,i.setEntryConsent(t,!0))}))},findGetParameter:function(t){var e=null,i=window.location.search;if(i)for(var a=i.substr(1).split("&"),s=0;s<a.length;s+=1){var n=a[s].split("=");if(n.length>0&&n[0]===t){if(n.length>1){var o=n[1];o&&(o=o.replace(/\+/g,"%20")),e=decodeURIComponent(o)}break}}return e}}};var qn=function(t){i("Snkk")},Un=Object(l.a)(Bn,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("fragment",[t.consent?i("div",{staticClass:"container content-module teaser lr-success-teaser"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("div",{staticClass:"lr-success-area"},[i("div",{staticClass:"teaser-area"},[t.consent.picture?i("div",{staticClass:"teaser-top",domProps:{innerHTML:t._s(t.consent.picture)}}):t._e()]),t._v(" "),i("div",{staticClass:"lr-content"},[t.consent.headline?i("h2",[t._v("\n              "+t._s(t.consent.headline)+"\n            ")]):t._e(),t._v(" "),t.consent.text?i("div",{domProps:{innerHTML:t._s(t.entry?t.consent.text.replace(/%name%/g,t.entry.name):t.consent.text)}}):t._e(),t._v(" "),t.startpage?i("a",{staticClass:"fl-btn fl-btn-icon-primary-lg-big light-registration-button mt-4",attrs:{href:t.startpage,title:t.translations.opt.back}},[t._v("\n              "+t._s(t.translations.opt.back)+"\n            ")]):t._e()])])])])]):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoaderVisible,expression:"isLoaderVisible"}]},[i("Loader",{attrs:{"is-visible":t.isLoaderVisible,"is-full-screen":!0}})],1)])}),[],!1,qn,"data-v-7eead7e4",null).exports,Hn="data-title",Gn="data-content",Wn="data-image",Zn="data-imagePosition",Jn="data-tealiumValue",Kn="data-tealiumName",Yn="data-dateOfBirthPattern",Qn="data-emailPattern",Xn="data-phonePattern",to="data-faxPattern",eo="data-eircodePattern",io="data-numberPattern",ao="data-benefits",so="data-additionalDescription",no="data-formId",oo="data-successRedirectLink",ro="data-additionalButton",lo="data-backButton",co="data-googlePlay",uo="data-appStore",po="data-agreementLabel",mo="data-additionalAgreementLabel",ho="data-agreementLabelNewsletter",fo="data-agreementLabelFax",go="data-additionalInformation",vo="data-isSsp",bo="data-cropList",wo="data-linkUnsubscribe",yo="data-showZipcode",Co="data-showRegion1",_o="data-showRegion2",So="data-newsCategories",To="data-newsCategoriesList",Po="data-newsCategory",Fo="data-servicesList",xo="data-holdingCountryCode",Oo="data-formOutsideMyServices",ko="data-optType",Lo="data-fOMSUpdateSubscriptionRedirectLink",Io="data-fOMSNewSubscriptionRedirectLink",Eo="data-cucumber",Vo="data-id",Ao="data-settings",Do="data-services",Mo="data-mobileServices",Ro="data-fsId";function $o(t){var e=t;return"/"===t[0]&&(e=e.substring(1)),"/"===t[t.length-1]&&(e=e.substring(0,e.length-1)),e}for(var No={beforeMount:function(){if(this.fsId="",this.formId="",this.benefits="",this.additionalDescription="",this.successRedirectLink="",this.additionalButton="",this.backButton="",this.googlePlay="",this.appStore="",this.agreementLabel="",this.additionalAgreementLabel="",this.agreementLabelNewsletter="",this.agreementLabelFax="",this.appStore="",this.additionalInformation="",this.cropList="",this.showZipcode=!0,this.showRegion1=!1,this.showRegion2=!1,this.newsCategories={},this.newsCategoriesList="",this.servicesList=[],this.dateOfBirthPattern=new RegExp,this.emailPattern=new RegExp,this.phonePattern=new RegExp,this.faxPattern=new RegExp,this.numberPattern=new RegExp,this.eircodePattern=new RegExp,this.linkUnsubscribe="",this.tealiumName="",this.holdingCountryCode="",this.optType="",this.formOutsideMyServices=!1,this.fOMSUpdateSubscriptionRedirectLink="",this.fOMSNewSubscriptionRedirectLink="",this.$el.attributes[Ro]&&(this.fsId=this.$el.attributes[Ro].value),this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[ao]&&(this.benefits=this.$el.attributes[ao].value),this.$el.attributes[so]&&(this.additionalDescription=this.$el.attributes[so].value),this.$el.attributes[oo]&&(this.successRedirectLink=this.$el.attributes[oo].value),this.$el.attributes[ro]&&(this.additionalButton=this.$el.attributes[ro].value),this.$el.attributes[lo]&&(this.backButton=this.$el.attributes[lo].value),this.$el.attributes[co]&&(this.googlePlay=this.$el.attributes[co].value),this.$el.attributes[uo]&&(this.appStore=this.$el.attributes[uo].value),this.$el.attributes[po]&&(this.agreementLabel=this.$el.attributes[po].value),this.$el.attributes[mo]&&(this.additionalAgreementLabel=this.$el.attributes[mo].value),this.$el.attributes[ho]&&(this.agreementLabelNewsletter=this.$el.attributes[ho].value),this.$el.attributes[fo]&&(this.agreementLabelFax=this.$el.attributes[fo].value),this.$el.attributes[go]&&(this.additionalInformation=this.$el.attributes[go].value),this.$el.attributes[bo]&&(this.cropList=this.$el.attributes[bo].value),this.$el.attributes[yo]&&(this.showZipcode="true"===this.$el.attributes[yo].value),this.$el.attributes[Co]&&(this.showRegion1="true"===this.$el.attributes[Co].value),this.$el.attributes[_o]&&(this.showRegion2="true"===this.$el.attributes[_o].value),this.$el.attributes[So]&&(this.newsCategories=this.$el.attributes[So].value,this.newsCategories=JSON.parse(this.newsCategories)||{}),this.$el.attributes[To]&&(this.newsCategoriesList=this.$el.attributes[To].value,this.newsCategoriesList=JSON.parse(this.newsCategoriesList)),this.$el.attributes[Fo]&&(this.servicesList=this.$el.attributes[Fo].value,this.servicesList=JSON.parse(this.servicesList)),this.$el.attributes[Yn]){var t=this.$el.attributes[Yn].value;this.dateOfBirthPattern=new RegExp($o(t))}if(this.$el.attributes[Qn]){var e=this.$el.attributes[Qn].value;this.emailPattern=new RegExp($o(e))}if(this.$el.attributes[Xn]){var i=this.$el.attributes[Xn].value;this.phonePattern=new RegExp($o(i))}if(this.$el.attributes[to]){var a=this.$el.attributes[to].value;this.faxPattern=new RegExp($o(a))}if(this.$el.attributes[io]){var s=this.$el.attributes[io].value;this.numberPattern=new RegExp($o(s))}if(this.$el.attributes[eo]){var n=this.$el.attributes[eo].value;this.eircodePattern=new RegExp($o(n))}this.$el.attributes[wo]&&(this.linkUnsubscribe=this.$el.attributes[wo].value),this.$el.attributes[Kn]&&(this.tealiumName=this.$el.attributes[Kn].value),this.$el.attributes[xo]&&(this.holdingCountryCode=this.$el.attributes[xo].value),this.$el.attributes[ko]&&(this.optType=this.$el.attributes[ko].value),this.$el.attributes[Oo]&&(this.formOutsideMyServices="true"===this.$el.attributes[Oo].value),this.$el.attributes[Lo]&&(this.fOMSUpdateSubscriptionRedirectLink=this.$el.attributes[Lo].value),this.$el.attributes[Io]&&(this.fOMSNewSubscriptionRedirectLink=this.$el.attributes[Io].value)}},jo={beforeMount:function(){if(this.services=[],this.mobileServices=[],this.settings={},this.$el.attributes[Do]){var t=this.$el.attributes[Do].value;t&&(this.services=JSON.parse(t))}if(this.$el.attributes[Mo]){var e=this.$el.attributes[Mo].value;e&&(this.mobileServices=JSON.parse(e))}if(this.$el.attributes[Ao]){var i=this.$el.attributes[Ao].value;i&&(this.settings=JSON.parse(i),this.settings.showRegion1&&(this.settings.showRegion1="true"===this.settings.showRegion1),this.settings.showRegion2&&(this.settings.showRegion2="true"===this.settings.showRegion2),this.settings.showZipcode&&(this.settings.showZipcode="true"===this.settings.showZipcode),this.settings.numberPattern&&(this.settings.numberPattern=new RegExp($o(this.settings.numberPattern))),this.settings.emailPattern&&(this.settings.emailPattern=new RegExp($o(this.settings.emailPattern))),this.settings.phonePattern&&(this.settings.phonePattern=new RegExp($o(this.settings.phonePattern))),this.settings.faxPattern&&(this.settings.faxPattern=new RegExp($o(this.settings.faxPattern))),this.settings.eircodePattern&&(this.settings.eircodePattern=new RegExp($o(this.settings.eircodePattern))),this.settings.dateOfBirthPattern&&(this.settings.dateOfBirthPattern=new RegExp($o(this.settings.dateOfBirthPattern))))}}},zo=document.querySelectorAll(".ServiceTeaser"),Bo=0;Bo<zo.length;Bo+=1)new a.default({el:".ServiceTeaser",components:{ServiceTeaser:u},beforeMount:function(){this.title="",this.content="",this.benefits="",this.formId="",this.image="",this.imagePosition="",this.hasForm=!0,this.redirectUrl="",this.tealiumValue="",this.$el.attributes[Hn]&&(this.title=this.$el.attributes[Hn].value),this.$el.attributes[Gn]&&(this.content=this.$el.attributes[Gn].value),this.$el.attributes[ao]&&(this.benefits=this.$el.attributes[ao].value),this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[Wn]&&(this.image=this.$el.attributes[Wn].value),this.$el.attributes[Zn]&&
1(this.imagePosition=this.$el.attributes[Zn].value),this.$el.attributes["data-hasForm"]&&(this.hasForm="true"===this.$el.attributes["data-hasForm"].value),this.$el.attributes["data-redirectUrl"]&&(this.redirectUrl=this.$el.attributes["data-redirectUrl"].value),this.$el.attributes[Jn]&&(this.tealiumValue=this.$el.attributes[Jn].value)},template:'\n      <ServiceTeaser\n        :title="this.title"\n        :content="this.content"\n        :benefits="this.benefits"\n        :formId="this.formId"\n        :image="this.image"\n        :imagePosition="this.imagePosition"\n        :hasForm="this.hasForm"\n        :redirectUrl="this.redirectUrl"\n        :tealiumValue="this.tealiumValue"\n      /> ',store:s.a});for(var qo=document.querySelectorAll(".Service"),Uo=0;Uo<qo.length;Uo+=1)new a.default({el:".Service",components:{Service:S},beforeMount:function(){this.id="",this.formId="",this.name="",this.introText="",this.image="",this.linkSubscribe="",this.linkUnsubscribe="",this.popupUnsubscribeHeadline="",this.popupUnsubscribeDescription="",this.tealiumName="",this.$el.attributes[Vo]&&(this.id=this.$el.attributes[Vo].value),this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes["data-name"]&&(this.name=this.$el.attributes["data-name"].value),this.$el.attributes["data-introText"]&&(this.introText=this.$el.attributes["data-introText"].value),this.$el.attributes[Wn]&&(this.image=this.$el.attributes[Wn].value),this.$el.attributes["data-linkSubscribe"]&&(this.linkSubscribe=this.$el.attributes["data-linkSubscribe"].value),this.$el.attributes[wo]&&(this.linkUnsubscribe=this.$el.attributes[wo].value),this.$el.attributes["data-popupUnsubscribeHeadline"]&&(this.popupUnsubscribeHeadline=this.$el.attributes["data-popupUnsubscribeHeadline"].value),this.$el.attributes["data-popupUnsubscribeDescription"]&&(this.popupUnsubscribeDescription=this.$el.attributes["data-popupUnsubscribeDescription"].value),this.$el.attributes[Kn]&&(this.tealiumName=this.$el.attributes[Kn].value)},template:'\n      <Service\n        :id="this.id"\n        :formId="this.formId"\n        :name="this.name"\n        :introText="this.introText"\n        :image="this.image"\n        :linkSubscribe="this.linkSubscribe"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :popupUnsubscribeHeadline="this.popupUnsubscribeHeadline"\n        :popupUnsubscribeDescription="this.popupUnsubscribeDescription"\n        :tealiumName="this.tealiumName"\n      /> ',store:s.a});for(var Ho=document.querySelectorAll(".InfoTeaser"),Go=0;Go<Ho.length;Go+=1)new a.default({el:".InfoTeaser",components:{InfoTeaser:x},beforeMount:function(){this.content="",this.image="",this.imageBackground="",this.imagePosition="",this.isSsp=!0,this.$el.attributes[Gn]&&(this.content=this.$el.attributes[Gn].value),this.$el.attributes[Wn]&&(this.image=this.$el.attributes[Wn].value),this.$el.attributes["data-imageBackground"]&&(this.imageBackground=this.$el.attributes["data-imageBackground"].value),this.$el.attributes[Zn]&&(this.imagePosition=this.$el.attributes[Zn].value),this.$el.attributes[vo]&&(this.isSsp="true"===this.$el.attributes[vo].value)},template:'\n      <InfoTeaser\n        :content="this.content"\n        :image="this.image"\n        :imageBackground="this.imageBackground"\n        :imagePosition="this.imagePosition"\n        :isSsp="this.isSsp"\n        /> ',store:s.a});for(var Wo=document.querySelectorAll(".GlobalServiceForm"),Zo=0;Zo<Wo.length;Zo+=1)new a.default({el:".GlobalServiceForm",components:{GlobalServiceForm:ri},mixins:[No],template:'\n      <GlobalServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :sh
1owZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a});document.getElementsByClassName("PersonalDataForm").length>0&&new a.default({el:".PersonalDataForm",components:{PersonalDataForm:pi},beforeMount:function(){if(this.formId="",this.showZipcode=!0,this.showRegion1=!1,this.showRegion2=!1,this.emailPattern=new RegExp,this.phonePattern=new RegExp,this.faxPattern=new RegExp,this.eircodePattern=new RegExp,this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[yo]&&(this.showZipcode="true"===this.$el.attributes[yo].value),this.$el.attributes[Co]&&(this.showRegion1="true"===this.$el.attributes[Co].value),this.$el.attributes[_o]&&(this.showRegion2="true"===this.$el.attributes[_o].value),this.$el.attributes[Qn]){var t=this.$el.attributes[Qn].value;this.emailPattern=new RegExp($o(t))}if(this.$el.attributes[Xn]){var e=this.$el.attributes[Xn].value;this.phonePattern=new RegExp($o(e))}if(this.$el.attributes[to]){var i=this.$el.attributes[to].value;this.faxPattern=new RegExp($o(i))}if(this.$el.attributes[eo]){var a=this.$el.attributes[eo].value;this.eircodePattern=new RegExp($o(a))}},template:'\n      <PersonalDataForm\n        :formId="this.formId"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :eircodePattern="this.eircodePattern"\n      />\n    ',store:s.a}),document.getElementsByClassName("OccupationForm").length>0&&new a.default({el:".OccupationForm",components:{OccupationForm:vi},beforeMount:function(){if(this.formId="",this.numberPattern=new RegExp,this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[io]){var t=this.$el.attributes[io].value;this.numberPattern=new RegExp($o(t))}},template:'\n      <OccupationForm\n        :formId="this.formId"\n        :numberPattern="this.numberPattern"\n      />\n    ',store:s.a}),document.getElementsByClassName("VerifyMobileCode").length>0&&new a.default({el:".VerifyMobileCode",components:{VerifyMobileCode:Q},beforeMount:function(){if(this.sspRegistrationUrl="",this.sspMySubscriptionsUrl="",this.sspMyProfileUrl="",this.redirectsAfterOptin={},this.$el.attributes["data-sspRegistrationUrl"]&&(this.sspRegistrationUrl=this.$el.attributes["data-sspRegistrationUrl"].value),this.$el.attributes["data-sspMySubscriptionsUrl"]&&(this.sspMySubscriptionsUrl=this.$el.attributes["data-sspMySubscriptionsUrl"].value),this.$el.attributes["data-sspMyProfileUrl"]&&(this.sspMyProfileUrl=this.$el.attributes["data-sspMyProfileUrl"].value),this.$el.attributes["data-redirectsAfterOptin"]){var t=this.$el.attributes["data-redirectsAfterOptin"].value;t&&(this.redirectsAfterOptin=JSON.parse(t))}},template:'\n      <VerifyMobileCode\n        :sspRegistrationUrl="this.sspRegistrationUrl"\n        :sspMySubscriptionsUrl="this.sspMySubscriptionsUrl"\n        :sspMyProfileUrl="this.sspMyProfileUrl"\n        :redirectsAfterOptin="this.redirectsAfterOptin"\n      />\n    ',store:s.a}),document.getElementsByClassName("NewsPreferencesForm").length>0&&new a.default({el:".NewsPreferencesForm",components:{NewsPreferencesForm:_i},beforeMount:function(){this.formId="",this.newsCategories="",this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[So]&&(this.newsCategories=this.$el.attributes[So].value)},template:'\n      <NewsPreferencesForm\n        :formId="this.formId"\n        :newsCategories="this.newsCategories"\n      />\n    ',store:s.a}),document.getElementsByClassName("NewsCategoryAddToFavorite").length>0&&new a.default({el:".NewsCategoryAddToFavorite",components:{NewsCategoryAddToFavorite:xi},beforeMount:function(){this.newsCategory="",this.loginLinkUrl="",this.sspServicesLinkUrl="",this.headlineAdded="",this.headlineNotAdded="",this.$el.attributes[Po]&&(this.newsCategory=this.$el.attributes[Po].value),this.$el.attributes["data-loginLinkUrl"]&&(this.loginLinkUrl=this.$el.attributes["data-loginLinkUrl"].value),this.$el.attributes["data-sspServicesLinkUrl"]&&(this.sspServicesLinkUrl=this.$el.attributes["data-sspServicesLinkUrl"].value),this.$el.attributes["data-headlineAdded"]&&(this.headlineAdded=this.$el.attributes["data-headlineAdded"].value),this.$el.attributes["data-headlineNotAdded"]&&(this.headlineNotAdded=this.$el.attributes["data-headlineNotAdded"].value)},template:'\n      <NewsCategoryAddToFavorite\n        :newsCategory="this.newsCategory"\n        :loginLinkUrl="this.loginLinkUrl"\n        :sspServicesLinkUrl="this.sspServicesLinkUrl"\n        :headlineAdded="this.headlineAdded"\n        :headlineNotAdded="this.headlineNotAdded"\n      />\n    ',store:s.a}),document.getElementsByClassName("PostalServiceForm").length>0&&new a.default({el:".PostalServiceForm",components:{PostalServiceForm:Li},mixins:[No],template:'\n      <PostalServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :sh
1owZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a}),document.getElementsByClassName("CallBackServiceForm").length>0&&new a.default({el:".CallBackServiceForm",components:{CallBackServiceForm:Vi},mixins:[No],template:'\n      <CallBackServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a});for(var Jo=document.querySelectorAll(".TemplateNewsletterServiceForm"),Ko=0;Ko<Jo.length;Ko+=1)new a.default({el:".TemplateNewsletterServiceForm",components:{TemplateNewsletterServiceForm:ta},mixins:[No],template:'\n      <TemplateNewsletterServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUp
1dateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a});for(var Yo=document.querySelectorAll(".NewsletterServiceForm"),Qo=0;Qo<Yo.length;Qo+=1)new a.default({el:".NewsletterServiceForm",components:{NewsletterServiceForm:aa},mixins:[No],template:'\n      <NewsletterServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :newsCategoriesList="this.newsCategoriesList"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a});document.getElementsByClassName("MessagingService").length>0&&new a.default({el:".MessagingService",components:{MessagingService:Mi},mixins:[No],template:'\n      <MessagingService\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :additionalInformation="this.additionalInformation"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a}),document.getElementsByClassName("AppService").length>0&&new a.default({el:".AppService",components:{AppService:Ni},mixins:[No],template:'\n      <AppService\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :additionalInformation="this.additionalInformation"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a}),document.getElementsByClassName("AppServiceForm").length>0&&new a.default({el:".AppServiceForm",components:{AppServiceForm:Bi},mixins:[No],template:'\n      <AppServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :additionalInformation="this.additionalInformation"\n        :sh
1owZipcode = "this.showZipcode"\n        :showRegion1 = "this.showRegion1"\n        :showRegion2 = "this.showRegion2"\n        :dateOfBirthPattern = "this.dateOfBirthPattern"\n        :emailPattern = "this.emailPattern"\n        :phonePattern = "this.phonePattern"\n        :faxPattern = "this.faxPattern"\n        :numberPattern = "this.numberPattern"\n        :eircodePattern = "this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n      ',store:s.a}),document.getElementsByClassName("CampaignsServiceForm").length>0&&new a.default({el:".CampaignsServiceForm",components:{CampaignsServiceForm:Hi},mixins:[No],template:'\n      <CampaignsServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :holdingCountryCode="this.holdingCountryCode"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a});for(var Xo=document.querySelectorAll(".CustomerLoyaltyServiceForm"),tr=0;tr<Xo.length;tr+=1)new a.default({el:".CustomerLoyaltyServiceForm",components:{CustomerLoyaltyServiceForm:Zi},mixins:[No],template:'\n      <CustomerLoyaltyServiceForm\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUp
1dateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a});for(var er=document.querySelectorAll(".CustomerLoyaltyServiceSingleFormDE"),ir=0;ir<er.length;ir+=1)new a.default({el:".CustomerLoyaltyServiceSingleFormDE",components:{CustomerLoyaltyServiceSingleFormDE:Yi},mixins:[No],template:'\n      <CustomerLoyaltyServiceSingleFormDE\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :additionalAgreementLabel="this.additionalAgreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :newsCategories="this.newsCategories"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :optType="this.optType"\n        :formOutsideMyServices="this.formOutsideMyServices"\n        :fOMSUpdateSubscriptionRedirectLink="this.fOMSUpdateSubscriptionRedirectLink"\n        :fOMSNewSubscriptionRedirectLink="this.fOMSNewSubscriptionRedirectLink"\n      />\n    ',store:s.a});if(document.getElementsByClassName("EventForm").length>0&&new a.default({el:".EventForm",components:{EventForm:Ta},mixins:[No],beforeMount:function(){if(this.eventName="",this.eventDate={},this.eventLocation={},this.eventSuccessSubscribeText="",this.eventSuccessUnSubscribeText="",this.changeCompanyMultipleTimes=!1,this.hasOpt=!1,this.$el.attributes["data-eventName"]&&(this.eventName=this.$el.attributes["data-eventName"].value),this.$el.attributes["data-eventDate"]){var t=this.$el.attributes["data-eventDate"].value;t&&(this.eventDate=JSON.parse(t))}if(this.$el.attributes["data-eventLocation"]){var e=this.$el.attributes["data-eventLocation"].value;e&&(this.eventLocation=JSON.parse(e))}this.$el.attributes["data-eventSuccessSubscribeText"]&&(this.eventSuccessSubscribeText=this.$el.attributes["data-eventSuccessSubscribeText"].value),this.$el.attributes["data-eventSuccessUnSubscribeText"]&&(this.eventSuccessUnSubscribeText=this.$el.attributes["data-eventSuccessUnSubscribeText"].value),this.$el.attributes["data-changeCompanyMultipleTimes"]&&(this.changeCompanyMultipleTimes="true"===this.$el.attributes["data-changeCompanyMultipleTimes"].value),this.$el.attributes["data-hasOpt"]&&(this.hasOpt="true"===this.$el.attributes["data-hasOpt"].value)},template:'\n      <EventForm\n        :fsId="this.fsId"\n        :formId="this.formId"\n        :benefits="this.benefits"\n        :additionalDescription="this.additionalDescription"\n        :successRedirectLink="this.successRedirectLink"\n        :additionalButton="this.additionalButton"\n        :backButton="this.backButton"\n        :googlePlay="this.googlePlay"\n        :appStore="this.appStore"\n        :agreementLabel="this.agreementLabel"\n        :agreementLabelNewsletter="this.agreementLabelNewsletter"\n        :agreementLabelFax="this.agreementLabelFax"\n        :additionalInformation="this.additionalInformation"\n        :cropList="this.cropList"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :servicesList="this.servicesList"\n        :dateOfBirthPattern="this.dateOfBirthPattern"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :numberPattern="this.numberPattern"\n        :eircodePattern="this.eircodePattern"\n        :linkUnsubscribe="this.linkUnsubscribe"\n        :tealiumName="this.tealiumName"\n        :eventName="this.eventName"\n        :eventDate="this.eventDate"\n        :eventLocation="this.eventLocation"\n        :eventSuccessSubscribeText="this.eventSuccessSubscribeText"\n        :eventSuccessUnSubscribeText="this.eventSuccessUnSubscribeText"\n        :changeCompanyMultipleTimes="this.changeCompanyMultipleTimes"\n        :hasOpt="this.hasOpt"\n      />\n    ',store:s.a}),document.getElementsByClassName("SspInitLoad").length>0&&new a.default({el:".SspInitLoad",components:{SspInitLoad:V},template:"\n      <SspInitLoad/>\n        ",store:s.a}),document.getElementsByClassName("SspSessionExpired").length>0&&new a.default({el:".SspSessionExpired",components:{SspSessionExpired:M},template:"\n      <SspSessionExpired/>\n        ",store:s.a}),document.getElementsByClassName("SspAccountSettings").length>0)new a.default({el:".SspAccountSettings",components:{SspAccountSettings:N},beforeMount:function(){this.changePasswordContent="",this.deactivateContent="",this.deactivateLink="",this.$el.attributes["data-changePasswordContent"]&&(this.changePasswordContent=this.$el.attributes["data-changePasswordContent"].value),this.$el.attributes["data-deactivateContent"]&&(this.deactivateContent=this.$el.attributes["data-deactivateContent"].value),this.$el.attributes["data-deactivateLink"]&&(this.deactivateLink=this.$el.attributes["data-deactivateLink"].value)},template:'\n      <SspAccountSettings\n        :changePasswordContent="this.changePasswordContent"\n        :deactivateContent="this.deactivateContent"\n        :deactivateLink="this.deactivateLink"\n      />\n    ',store:s.a});for(var ar=document.querySelectorAll(".SurveyForm"),sr=0;sr<ar.length;sr+=1)new a.default({el:".SurveyForm",components:{SurveyForm:ca},beforeMount:function(){this.formId="",this.optType="",this.loyaltyFormId="",this.json="",this.jsonNewsCategory="",this.showSurvey=!1,this.useComment=!1,this.action="",this.submitRedirect="",this.cucumber="",this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[ko]&&(this.optType=this.$el.attributes[ko].value),this.$el.attributes["data-loyaltyFormId"]&&(this.loyaltyFormId=this.$el.attributes["data-loyaltyFormId"].value),this.$el.attributes["data-json"]&&(this.json=this.$el.attributes["data-json"].value),this.$el.attributes["data-jsonNewsCategory"]&&(this.jsonNewsCategory=this.$el.attributes["data-jsonNewsCategory"].value,this.jsonNewsCategory=JSON.parse(this.jsonNewsCategory)),this.$el.attributes["data-showSurvey"]&&(this.showSurvey="true"===this.$el.attributes["data-showSurvey"].value),this.$el.attributes["data-useComment"]&&(this.useComment="true"===this.$el.attributes["data-useComment"].value),this.$el.attributes["data-action"]&&(this.action=this.$el.attributes["data-action"].value),this.$el.attributes["data-submitRedirect"]&&(this.submitRedirect=this.$el.attributes["data-submitRedirect"].value),this.$el.attributes[Eo]&&(this.cucumber=this.$el.attributes[Eo].value)},template:'\n      <SurveyForm\n        :formId="this.formId"\n        :optType="this.optType"\n        :loyaltyFormId="this.loyaltyFormId"\n        :json="this.json"\n        :jsonNewsCategory="this.jsonNewsCategory"\n        :sh
1owSurvey="this.showSurvey"\n        :useComment="this.useComment"\n        :action="this.action"\n        :submitRedirect="this.submitRedirect"\n        :cucumber="this.cucumber"\n      />\n    ',store:s.a});for(var nr=document.querySelectorAll(".SspEmailMobileChanged"),or=0;or<nr.length;or+=1)new a.default({el:".SspEmailMobileChanged",components:{SspEmailMobileChanged:lt},template:"\n      <SspEmailMobileChanged />\n    ",store:s.a});for(var rr=document.querySelectorAll(".SspOtConsentModal"),lr=0;lr<rr.length;lr+=1)new a.default({el:".SspOtConsentModal",components:{SspOtConsentModal:ft},template:"\n      <SspOtConsentModal />\n    ",store:s.a});for(var cr=document.querySelectorAll(".SspCountryRedirectModal"),ur=0;ur<cr.length;ur+=1)new a.default({el:".SspCountryRedirectModal",components:{SspCountryRedirectModal:bt},template:"\n      <SspCountryRedirectModal />\n    ",store:s.a});for(var dr=document.querySelectorAll(".SspConsentForm"),pr=0;pr<dr.length;pr+=1)new a.default({el:".SspConsentForm",components:{SspConsentForm:q},template:"\n      <SspConsentForm />\n    ",store:s.a});for(var mr=document.querySelectorAll(".AddressSection"),hr=0;hr<mr.length;hr+=1)new a.default({el:".AddressSection",components:{AddressSection:Xe},beforeMount:function(){if(this.formId="",this.showZipcode=!0,this.showRegion1=!1,this.showRegion2=!1,this.emailPattern=new RegExp,this.phonePattern=new RegExp,this.faxPattern=new RegExp,this.eircodePattern=new RegExp,this.numberPattern=new RegExp,this.dateOfBirthPattern=new RegExp,this.enableSubmit=!0,this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[yo]&&(this.showZipcode="true"===this.$el.attributes[yo].value),this.$el.attributes[Co]&&(this.showRegion1="true"===this.$el.attributes[Co].value),this.$el.attributes[_o]&&(this.showRegion2="true"===this.$el.attributes[_o].value),this.$el.attributes[Qn]){var t=this.$el.attributes[Qn].value;this.emailPattern=new RegExp($o(t))}if(this.$el.attributes[Xn]){var e=this.$el.attributes[Xn].value;this.phonePattern=new RegExp($o(e))}if(this.$el.attributes[to]){var i=this.$el.attributes[to].value;this.faxPattern=new RegExp($o(i))}if(this.$el.attributes[eo]){var a=this.$el.attributes[eo].value;this.eircodePattern=new RegExp($o(a))}if(this.$el.attributes[io]){var s=this.$el.attributes[io].value;this.numberPattern=new RegExp($o(s))}if(this.$el.attributes[Yn]){var n=this.$el.attributes[Yn].value;this.dateOfBirthPattern=new RegExp($o(n))}this.$el.attributes["data-enableSubmit"]&&(this.enableSubmit="true"===this.$el.attributes["data-enableSubmit"].value)},template:'\n      <AddressSection\n        :formId="this.formId"\n        :showZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :eircodePattern="this.eircodePattern"\n        :numberPattern = "this.numberPattern"\n        :dateOfBirthPattern = "this.dateOfBirthPattern"\n        :enableSubmit="this.enableSubmit"\n      />\n    ',store:s.a});for(var fr=document.querySelectorAll(".AddressSectionV2"),gr=0;gr<fr.length;gr+=1)new a.default({el:".AddressSectionV2",components:{AddressSectionV2:Ea},beforeMount:function(){if(this.formId="",this.showZipcode=!0,this.showRegion1=!1,this.showRegion2=!1,this.emailPattern=new RegExp,this.phonePattern=new RegExp,this.faxPattern=new RegExp,this.eircodePattern=new RegExp,this.numberPattern=new RegExp,this.dateOfBirthPattern=new RegExp,this.enableSubmit=!0,this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes[yo]&&(this.showZipcode="true"===this.$el.attributes[yo].value),this.$el.attributes[Co]&&(this.showRegion1="true"===this.$el.attributes[Co].value),this.$el.attributes[_o]&&(this.showRegion2="true"===this.$el.attributes[_o].value),this.$el.attributes[Qn]){var t=this.$el.attributes[Qn].value;this.emailPattern=new RegExp($o(t))}if(this.$el.attributes[Xn]){var e=this.$el.attributes[Xn].value;this.phonePattern=new RegExp($o(e))}if(this.$el.attributes[to]){var i=this.$el.attributes[to].value;this.faxPattern=new RegExp($o(i))}if(this.$el.attributes[eo]){var a=this.$el.attributes[eo].value;this.eircodePattern=new RegExp($o(a))}if(this.$el.attributes[io]){var s=this.$el.attributes[io].value;this.numberPattern=new RegExp($o(s))}if(this.$el.attributes[Yn]){var n=this.$el.attributes[Yn].value;this.dateOfBirthPattern=new RegExp($o(n))}this.$el.attributes["data-enableSubmit"]&&(this.enableSubmit="true"===this.$el.attributes["data-enableSubmit"].value)},template:'\n      <AddressSectionV2\n        :formId="this.formId"\n        :sh
1owZipcode="this.showZipcode"\n        :showRegion1="this.showRegion1"\n        :showRegion2="this.showRegion2"\n        :emailPattern="this.emailPattern"\n        :phonePattern="this.phonePattern"\n        :faxPattern="this.faxPattern"\n        :eircodePattern="this.eircodePattern"\n        :numberPattern = "this.numberPattern"\n        :dateOfBirthPattern = "this.dateOfBirthPattern"\n        :enableSubmit="this.enableSubmit"\n      />\n    ',store:s.a});for(var vr=document.querySelectorAll(".HeaderElement"),br=0;br<vr.length;br+=1)new a.default({el:".HeaderElement",components:{HeaderElement:ln},mixins:[jo],beforeMount:function(){if(this.id="",this.headline="",this.text="",this.navigation="",this.showUserName=!1,this.showUserSalutation=!0,this.surveyDeleteAccount=[],this.surveyDeleteAccountUseComment=!1,this.content={},this.showEventTab=!0,this.showProductInformationTab=!0,this.showRecordedWebinarsTab=!0,this.showElearningsTab=!0,this.changeCompanyMultipleTimes=!1,this.formIdsWithMobile=[],this.profileNoTabs=!1,this.profileHideOccupation=!1,this.profileHidePostalAddress=!1,this.$el.attributes[Vo]&&(this.id=this.$el.attributes[Vo].value),this.$el.attributes["data-headline"]&&(this.headline=this.$el.attributes["data-headline"].value),this.$el.attributes["data-text"]&&(this.text=this.$el.attributes["data-text"].value),this.$el.attributes["data-navigation"]&&(this.navigation=this.$el.attributes["data-navigation"].value),this.$el.attributes["data-showUserName"]&&(this.showUserName="true"===this.$el.attributes["data-showUserName"].value),this.$el.attributes["data-showUserSalutation"]&&(this.showUserSalutation="true"===this.$el.attributes["data-showUserSalutation"].value),this.$el.attributes["data-surveyDeleteAccount"]){var t=this.$el.attributes["data-surveyDeleteAccount"].value;t&&(this.surveyDeleteAccount=JSON.parse(t))}if(this.$el.attributes["data-surveyDeleteAccountUseComment"]&&(this.surveyDeleteAccountUseComment="true"===this.$el.attributes["data-surveyDeleteAccountUseComment"].value),this.$el.attributes["data-content"]){var e=this.$el.attributes["data-content"].value;e&&(this.content=JSON.parse(e))}if(this.$el.attributes["data-showEventTab"]&&(this.showEventTab="true"===this.$el.attributes["data-showEventTab"].value),this.$el.attributes["data-showProductInformationTab"]&&(this.showProductInformationTab="true"===this.$el.attributes["data-showProductInformationTab"].value),this.$el.attributes["data-showRecordedWebinarsTab"]&&(this.showRecordedWebinarsTab="true"===this.$el.attributes["data-showRecordedWebinarsTab"].value),this.$el.attributes["data-showElearningsTab"]&&(this.showElearningsTab="true"===this.$el.attributes["data-showElearningsTab"].value),this.$el.attributes["data-changeCompanyMultipleTimes"]&&(this.changeCompanyMultipleTimes="true"===this.$el.attributes["data-changeCompanyMultipleTimes"].value),this.$el.attributes["data-formIdsWithMobile"]){var i=this.$el.attributes["data-formIdsWithMobile"].value;i&&(this.formIdsWithMobile=JSON.parse(i))}this.$el.attributes["data-profileNoTabs"]&&(this.profileNoTabs="true"===this.$el.attributes["data-profileNoTabs"].value),this.$el.attributes["data-profileHideOccupation"]&&(this.profileHideOccupation="true"===this.$el.attributes["data-profileHideOccupation"].value),this.$el.attributes["data-profileHidePostalAddress"]&&(this.profileHidePostalAddress="true"===this.$el.attributes["data-profileHidePostalAddress"].value)},template:'\n      <HeaderElement\n        :id = "this.id"\n        :headline = "this.headline"\n        :text = "this.text"\n        :navigation = "this.navigation"\n        :showUserName = "this.showUserName"\n        :showUserSalutation = "this.showUserSalutation"\n        :surveyDeleteAccount = "this.surveyDeleteAccount"\n        :surveyDeleteAccountUseComment = "this.surveyDeleteAccountUseComment"\n        :services = "this.services"\n        :mobileServices = "this.mobileServices"\n        :settings = "this.settings"\n        :content = "this.content"\n        :showEventTab = "this.showEventTab"\n        :showProductInformationTab = "this.showProductInformationTab"\n        :sh
1owRecordedWebinarsTab = "this.showRecordedWebinarsTab"\n        :showElearningsTab = "this.showElearningsTab"\n        :changeCompanyMultipleTimes = "this.changeCompanyMultipleTimes"\n        :formIdsWithMobile = "this.formIdsWithMobile"\n        :profileNoTabs = "this.profileNoTabs"\n        :profileHideOccupation = "this.profileHideOccupation"\n        :profileHidePostalAddress = "this.profileHidePostalAddress"\n      >'.concat(vr[br].innerHTML,"</HeaderElement>\n    "),store:s.a,router:n.a});for(var wr=document.querySelectorAll(".MultiConsentServiceForm"),yr=0;yr<wr.length;yr+=1)new a.default({el:".MultiConsentServiceForm",components:{MultiConsentServiceForm:wn},mixins:[jo],beforeMount:function(){this.serviceFormHeadline="",this.serviceFormText="",this.serviceFormOneServiceHeadline="",this.serviceFormOneServiceText="",this.serviceFormOtherServicesHeadline="",this.serviceFormOtherServicesText="",this.personalDataHeadline="",this.personalDataText="",this.afterRegisterRedirectUrl="",this.afterRegisterLabel="",this.changeCompanyMultipleTimes=!1,this.useFirstService=!1,this.useFirstServiceShowAgreementLabel=!1,this.$el.attributes["data-serviceFormHeadline"]&&(this.serviceFormHeadline=this.$el.attributes["data-serviceFormHeadline"].value),this.$el.attributes["data-serviceFormText"]&&(this.serviceFormText=this.$el.attributes["data-serviceFormText"].value),this.$el.attributes["data-serviceFormOneServiceHeadline"]&&(this.serviceFormOneServiceHeadline=this.$el.attributes["data-serviceFormOneServiceHeadline"].value),this.$el.attributes["data-serviceFormOneServiceText"]&&(this.serviceFormOneServiceText=this.$el.attributes["data-serviceFormOneServiceText"].value),this.$el.attributes["data-serviceFormOtherServicesHeadline"]&&(this.serviceFormOtherServicesHeadline=this.$el.attributes["data-serviceFormOtherServicesHeadline"].value),this.$el.attributes["data-serviceFormOtherServicesText"]&&(this.serviceFormOtherServicesText=this.$el.attributes["data-serviceFormOtherServicesText"].value),this.$el.attributes["data-personalDataHeadline"]&&(this.personalDataHeadline=this.$el.attributes["data-personalDataHeadline"].value),this.$el.attributes["data-personalDataText"]&&(this.personalDataText=this.$el.attributes["data-personalDataText"].value),this.$el.attributes["data-afterRegisterRedirectUrl"]&&(this.afterRegisterRedirectUrl=this.$el.attributes["data-afterRegisterRedirectUrl"].value),this.$el.attributes["data-afterRegisterLabel"]&&(this.afterRegisterLabel=this.$el.attributes["data-afterRegisterLabel"].value),this.$el.attributes["data-changeCompanyMultipleTimes"]&&(this.changeCompanyMultipleTimes="true"===this.$el.attributes["data-changeCompanyMultipleTimes"].value),this.$el.attributes["data-useFirstService"]&&(this.useFirstService="true"===this.$el.attributes["data-useFirstService"].value),this.$el.attributes["data-useFirstServiceShowAgreementLabel"]&&(this.useFirstServiceShowAgreementLabel="true"===this.$el.attributes["data-useFirstServiceShowAgreementLabel"].value)},template:'\n      <MultiConsentServiceForm\n        :services="this.services"\n        :settings="this.settings"\n        :serviceFormHeadline="this.serviceFormHeadline"\n        :serviceFormText="this.serviceFormText"\n        :serviceFormOneServiceHeadline="this.serviceFormOneServiceHeadline"\n        :serviceFormOneServiceText="this.serviceFormOneServiceText"\n        :serviceFormOtherServicesHeadline="this.serviceFormOtherServicesHeadline"\n        :serviceFormOtherServicesText="this.serviceFormOtherServicesText"\n        :personalDataHeadline="this.personalDataHeadline"\n        :personalDataText="this.personalDataText"\n        :afterRegisterRedirectUrl="this.afterRegisterRedirectUrl"\n        :afterRegisterLabel="this.afterRegisterLabel"\n        :changeCompanyMultipleTimes="this.changeCompanyMultipleTimes"\n        :useFirstService="this.useFirstService"\n        :useFirstServiceShowAgreementLabel="this.useFirstServiceShowAgreementLabel"\n      />\n    ',store:s.a});for(var Cr=document.querySelectorAll(".MultiConsentRegistrationCompletion"),_r=0;_r<Cr.length;_r+=1)new a.default({el:".MultiConsentRegistrationCompletion",components:{MultiConsentRegistrationCompletion:_n},beforeMount:function(){this.redirectUrl="",this.$el.attributes["data-redirectUrl"]&&(this.redirectUrl=this.$el.attributes["data-redirectUrl"].value)},template:'\n      <MultiConsentRegistrationCompletion\n        :redirectUrl="this.redirectUrl"\n      />\n    ',store:s.a});for(var Sr=document.querySelectorAll(".SurveyFormV2"),Tr=0;Tr<Sr.length;Tr+=1)new a.default({el:".SurveyFormV2",components:{SurveyFormV2:ss},beforeMount:function(){this.formId="",this.loyaltyFormId="",this.surveyList=[],this.jsonNewsCategory="",this.showSurvey=!1,this.useComment=!1,this.action="",this.submitRedirect="",this.$el.attributes[no]&&(this.formId=this.$el.attributes[no].value),this.$el.attributes["data-loyaltyFormId"]&&(this.loyaltyFormId=this.$el.attributes["data-loyaltyFormId"].value),this.$el.attributes["data-surveyList"]&&(this.surveyList=this.$el.attributes["data-surveyList"].value),this.$el.attributes["data-jsonNewsCategory"]&&(this.jsonNewsCategory=this.$el.attributes["data-jsonNewsCategory"].value,this.jsonNewsCategory=JSON.parse(this.jsonNewsCategory)),this.$el.attributes["data-showSurvey"]&&(this.showSurvey="true"===this.$el.attributes["data-showSurvey"].value),this.$el.attributes["data-useComment"]&&(this.useComment="true"===this.$el.attributes["data-useComment"].value),this.$el.attributes["data-action"]&&(this.action=this.$el.attributes["data-action"].value)},template:'\n      <SurveyFormV2\n        :formId = "this.formId"\n        :loyaltyFormId = "this.loyaltyFormId"\n        :surveyList = "this.surveyList"\n        :jsonNewsCategory = "this.jsonNewsCategory"\n        :sh
1owSurvey = "this.showSurvey"\n        :useComment = "this.useComment"\n        :action = "this.action"\n      />\n    ',store:s.a});for(var Pr=document.querySelectorAll(".LightRegistrationLink"),Fr=0;Fr<Pr.length;Fr+=1)new a.default({el:".LightRegistrationLink",components:{LightRegistrationLink:Pn},beforeMount:function(){this.linkStyle="inline",this.text="",this.entries=[],this.useTeaser=!1,this.$el.attributes["data-linkStyle"]&&(this.linkStyle=this.$el.attributes["data-linkStyle"].value),this.$el.attributes["data-text"]&&(this.text=this.$el.attributes["data-text"].value),this.$el.attributes["data-entries"]&&(this.entries=JSON.parse(this.$el.attributes["data-entries"].value)),this.$el.attributes["data-useTeaser"]&&(this.useTeaser="true"===this.$el.attributes["data-useTeaser"].value)},template:'\n      <LightRegistrationLink\n        :linkStyle = "this.linkStyle"\n        :text = "this.text"\n        :entries = "this.entries"\n        :useTeaser = "this.useTeaser"\n      >'.concat(Pr[Fr].innerHTML,"</LightRegistrationLink>\n    "),store:s.a});for(var xr=document.querySelectorAll(".LightRegistrationFormPopup"),Or=0;Or<xr.length;Or+=1)new a.default({el:".LightRegistrationFormPopup",components:{LightRegistrationFormPopup:zn},beforeMount:function(){this.successpage="",this.$el.attributes["data-successpage"]&&(this.successpage=this.$el.attributes["data-successpage"].value)},template:'\n      <LightRegistrationFormPopup\n        :successpage = "this.successpage"\n      />\n    ',store:s.a});for(var kr=document.querySelectorAll(".LightRegistrationOptinOptout"),Lr=0;Lr<kr.length;Lr+=1)new a.default({el:".LightRegistrationOptinOptout",components:{LightRegistrationOptinOptout:Un},beforeMount:function(){this.consents=[],this.entries=[],this.startpage="",this.optType="OPTIN",this.$el.attributes["data-consents"]&&(this.consents=JSON.parse(this.$el.attributes["data-consents"].value)),this.$el.attributes["data-entries"]&&(this.entries=JSON.parse(this.$el.attributes["data-entries"].value)),this.$el.attributes["data-startpage"]&&(this.startpage=this.$el.attributes["data-startpage"].value),this.$el.attributes["data-optType"]&&(this.optType=this.$el.attributes["data-optType"].value)},template:'\n      <LightRegistrationOptinOptout\n        :consents = "this.consents"\n        :entries = "this.entries"\n        :startpage = "this.startpage"\n        :optType = "this.optType"\n      />\n    ',store:s.a})},XERb:function(t,e){},XXx6:function(t,e){},XjXm:function(t,e){},Xswn:function(t,e){},YJbh:function(t,e){},YTp6:function(t,e,i){"use strict";var a=i("oCYn"),s=i("vDqi"),n=i.n(s),o=i("Qyje");e.a={init:function(){var t=this;window.onerror=function(e,i,a,s,n){var o="Message:".concat(e," source:").concat(i," lineno:").concat(a," colno:").concat(s," error:").concat(n);t.addFrontendMessage("error","GeneralJSError",o)},window.onunhandledrejection=function(e){var i="";e&&(e.reason.message&&(i+="Message:".concat(e.reason.message)),e.reason.columnNumber&&(i+=" colno:".concat(e.reason.columnNumber)),e.reason.lineNumber&&(i+=" lineno:".concat(e.reason.lineNumber)),e.reason.fileName&&(i+=" fileName:".concat(e.reason.fileName))),""!==i&&t.addFrontendMessage("error","GeneralJSRejectionError","Message:".concat(i))},a.default.config.errorHandler=function(e,i,a){"undefined"!=typeof console&&console.error(e);var s="";i&&i.$options&&i.$options._componentTag&&(s=i.$options._componentTag),t.addFrontendMessage("error","GeneralVUEError","Message:".concat(e," info:").concat(a," componentTag:").concat(s))},a.default.config.warnHandler=function(e,i,a){"undefined"!=typeof console&&console.error("[Vue warn]: "+e+a);var s="";i&&i.$options&&i.$options._componentTag&&(s=i.$options._componentTag),t.addFrontendMessage("warn","GeneralVUEWarn","Message:".concat(e," trace:").concat(a," componentTag:").concat(s))},n.a.interceptors.response.use(void 0,(function(e){var i="",a="not set",s="not set";throw e&&(i+=e,e.response&&e.response.status&&(i+=" status:".concat(e.response.status),a=e.response.status),e.config&&e.config.url&&(i+=" url:".concat(e.config.url),-1!==(s=e.config.url).indexOf("?")&&(s=s.split("?")[0]))),""===i&&(i="No error / was set."),t.addFrontendMessage("error","GeneralAxiosError","Message:".concat(i),null,null,s,a),e}))}
1,addFrontendMessage:function(t,e,i,a,s,r,l){try{if("/notifications/addFrontendMessage"!==r)if(i&&0===i.indexOf("Message:Message:"))console.log("Error sending addFrontendMessage repeated: ".concat(i));else{var c=a;c||(c=window.location.href);var u=s;u||(u=window.location.hostname);var d="";window&&window.navigator&&window.navigator.userAgent&&(d=window.navigator.userAgent),n.a.post("/notifications/addFrontendMessage",o.stringify({type:t,messageType:e,message:i,url:c,host:u,apiURL:r,statusCode:l,browserUserAgent:d}),{validateStatus:function(t){return t>=200&&t<300||console.log("Error sending addFrontendMessage status: ".concat(t)),!0}})}else console.log("Error sending addFrontendMessage by apiURL: ".concat(i))}catch(t){console.log(t)}}}},YagJ:function(t,e,i){"use strict";var a=i("w9Lr"),s={name:"PopupComp",props:{initOpen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},tealiumValue:{type:String,default:""}},data:function(){return{show:!1,hide:!1}},mounted:function(){this.initOpen&&this.open()},methods:{open:function(t){a.a.bodyAddClass("overflow-hidden"),this.show=!0,this.$emit("open"),t&&this.$nextTick((function(){t()}))},close:function(){a.a.bodyRemoveClass("overflow-hidden"),this.show=!1,this.$emit("close")},getModalWrapperRef:function(){var t=null;return this.$refs&&this.$refs.modalWrapperRef&&(t=this.$refs.modalWrapperRef),t},getModalRef:function(){var t=null;return this.$refs&&this.$refs.modalRef&&(t=this.$refs.modalRef),t}}},n=i("JFUb");var o=function(t){i("oK/P")},r=Object(n.a)(s,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hide,expression:"!hide"}],staticClass:"ssp-modal-main"},[i("transition",{attrs:{name:"fade",appear:""}},[t.show?i("div",{staticClass:"ssp-modal-overlay"}):t._e()]),t._v(" "),i("transition",{attrs:{name:"slide",appear:""}},[t.show?i("div",{ref:"modalWrapperRef",staticClass:"ssp-modal-wrapper"},[i("div",{ref:"modalRef",staticClass:"ssp-modal"},[t.showClose?i("div",{staticClass:"ssp-modal-close close",attrs:{"data-tealium-value":"ssp_"+t.tealiumValue+"_cancel","data-tealium-type":"action","data-tealium-category":"ssp","data-tealium-action":"button_click"},on:{click:function(e){return t.close()}}},[i("i",{staticClass:"icon icon-close",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),t._t("default")],2)]):t._e()])],1)}),[],!1,o,"data-v-1651ad2c",null);e.a=r.exports},YrhM:function(t,e){},"Z+/j":function(t,e){},"ZQ+q":function(t,e){},ZXMN:function(t,e){},ZgLt:function(t,e){},aNhg:function(t,e){},aXay:function(t,e){},ai3h:function(t,e,i){"use strict";var a,s=i("cDf5"),n=i.n(s),o=i("RIqP"),r=i.n(o),l=i("vDqi"),c=i.n(l),u=i("cGzQ"),d=i("w9Lr"),p=i("Qyje"),m="",h="",f="",g="",v="",b="",w="",y="",C="",_="",S="",T="",P="",F="",x="",O="",k="",L="",I="",E="",V="",A="",D="",M="",R="",$="",N="",j="",z="",B="",q="";e.a=(a=u.a,{setInitValuesFromFev:function(){var t=u.a.useSalesForce()?"ssp":"ssp-registration";m="/api/".concat(t,"-public/formDefinition"),h="/api/".concat(t,"-public/eventFormDefinition"),f="/api/".concat(t,"/formData"),g="/api/".concat(t,"/subscriptions"),v="/api/".concat(t,"/unsubscribe"),b="/api/".concat(t,"/submitForm"),w="/api/".concat(t,"/submitForms"),y="/api/".concat(t,"-public/submitEventRegistration"),C="/api/".concat(t,"/progressState"),_="/api/".concat(t,"/deactivateUser"),S="/api/".concat(t,"/accountLookup"),T="/api/".concat(t,"/postLogin"),P="/api/".concat(t,"/submitConsentData"),F="/api/".concat(t,"/getHoldings"),x="/api/".concat(t,"/formDataDefinition"),O="/api/".concat(t,"-public/submitRegistrationContent"),k="/api/".concat(t,"/completeRegistration"),L="/api/".concat(t,"/resendMailOrCode"),I="/api/".concat(t,"/documentAlert/getDocumentAlertProductMedias"),E="/api/".concat(t,"/getUserElearningDetails"),V="/api/".concat(t,"/verify"),A="/api/".concat(t,"/validateToken"),D="/api/".concat(t,"/verify/pending"),M="/api/".concat(t,"/verify/confirmConsent"),R="/api/".concat(t,"/submitOtConsent"),$="/api/".concat(t,"/contactExists"),N="/api/".concat(t,"/assignContact"),j="/api/".concat(t,"-public/lr/formDefinition"),z="/api/".concat(t,"-public/lr/submitForm"),B="/api/".concat(t,"-public/lr/validateToken"),q="/api/".concat(t,"-public/lr/resendCode")},getProfileProgressState:function(){var t=this;return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(C);c.a.get(s).then((function(i){t.checkResponseWasRedirected(i),e(i.data)})).catch((function(t){i(t)}))}))},getSubscriptions:function(){var t=this;return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(g):"http://localhost:8080/static/db/subscriptions.json";c.a.get(s).then((function(i){t.checkResponseWasRedirected(i),e(i.data)})).catch((function(t){i(t)}))}))},triggerUnsubscription:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(v);c.a.post(n,p.stringify({formIdentifier:t.formIdentifier,reason:t.reason,reasonText:d.a.replaceCharacterCodes(t.reasonText),comment:t.comment,content:JSON.stringify(t.content)})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},fetchFormDefiniction:function(t){return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(m):"http://localhost:8080/static/db/formDefinitionVictoriaService.json";c.a.get(s,{params:{formIdentifier:t.formIdentifier}}).then((function(t){e(t.data)})).catch((function(t){i(t)}))}))},fetchEventFormDefiniction:function(t){return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(h):"http://localhost:8080/static/db/eventFormDefinition.json";c.a.get(s,{params:{formIdentifier:t.formIdentifier}}).then((function(t){e(t.data)})).catch((function(t){i(t)}))}))},fetchLrFormDefiniction:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(j);c.a.get(s,{params:{formIdentifier:t.formIdentifier}}).then((function(t){e(t.data)})).catch((function(t){i(t)}))}))},lrSubmitForm:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(z);c.a.post(s,p.stringify({formIdentifier:t.formIdentifier,content:JSON.stringify(t.content)})).then((function(){e()})).catch((function(t){i(t)}))}))},lrValidateToken:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(B);c.a.post(s,p.stringify({token:t.token})).then((function(){e()})).catch((function(t){i(t)}))}))},lrResendCode:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(q);c.a.post(s,p.stringify({formIdentifier:t.formIdentifier,optType:t.optType,content:JSON.stringify(t.content)})).then((function(){e()})).catch((function(t){i(t)}))}))},fetchFormData:function(t){var e=this;return new Promise((function(i,s){var n="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(f):"http://localhost:8080/static/db/formDataDefinition.json";c.a.get(n,{params:{formIdentifier:t.formIdentifier}}).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},fetchFormDataDefinition:function(t){var e=this;return new Promise((function(i,s){var n="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(x):"http://localhost:8080/static/db/formDataDefinition.json";c.a.get(n,{params:{formIdentifier:t.formIdentifiers},paramsSerializer:function(t){return p.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},submitForm:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(b);c.a.post(n,p.stringify({formIdentifier:t.formIdentifier,language:t.language,sspPrefLanguage:t.sspPrefLanguage,content:JSON.stringify(t.content),files:t.files})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},submitEventForm:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(y);c.a.post(s,p.stringify({formIdentifier:t.formIdentifier,language:t.language,sspPrefLanguage:t.sspPrefLanguage,content:JSON.stringify(t.content),files:t.files})).then((function(){e()})).catch((function(t){i(t)}))}))},submitRegistrationContent:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(O);c.a.post(s,p.stringify({language:t.language,sspPrefLanguage:t.sspPrefLanguage,content:JSON.stringify(t.content)})).then((function(t){e(t.data)})).catch((function(t){i(t)}))}))},submitRegistrationCompletion:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(k);c.a.post(n,p.stringify({language:t.language,sspPrefLanguage:t.sspPrefLanguage,token:t.token})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},submitForms:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(w);c.a.post(n,p.stringify({language:t.language,sspPrefLanguage:t.sspPrefLanguage,content:JSON.stringify(t.content)})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},deactivateUser:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(_);c.a.post(n,p.stringify({reason:t.reason,reasonText:d.a.replaceCharacterCodes(t.reasonText),comment:t.comment})).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},getByAddressPrefilled:function(t){return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat("/api/geodata/getByAddress"):"http://localhost:8080/static/db/getByAddress.json",n=t.zipcode?"zipcode":"name",o="zipcode"===n?"name":"zipcode";c.a.get(s,{params:{countries:t.countries,languages:t.languages,address:t[n]}}).then((function(i){var a=i.data.find((function(e){return e[o]===t[o]}));e(a||i.data[0])})).catch((function(t){i(t)}))}))},getDocumentAlertProductMedias:function(t){var e=this;return new Promise((function(i,s){var n="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(I
1):"http://localhost:8080/static/db/getDocumentAlertProductMedias.json";c.a.get(n,{params:t}).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},user:function(){return new Promise((function(t,e){var i="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat("/userAuthentication/user"):"http://localhost:8080/static/db/user.json";c.a.get(i).then((function(e){t(e.data)})).catch((function(t){e(t)}))}))},login:function(t){var e=t.redirect;a&&a.getAfterLoginUrl()&&""!==a.getAfterLoginUrl()&&(e=a.getAfterLoginUrl());var i="".concat(a.getBaseUrl()).concat("/userAuthentication/login","/").concat(t.language,"/"),s=this.setAuthenticationParams(i,e,t.errorFallback);window.location.href=s},resendEmail:function(t){var e="".concat(a.getBaseUrl()).concat("/userAuthentication/resendEmail","/").concat(t.language,"/");window.location.href=e},register:function(t){var e=a.getMyServicesPrivateUrl();if(a&&a.getAfterLoginUrl()&&""!==a.getAfterLoginUrl()&&(e=a.getAfterLoginUrl()),e&&""!==e){var i=e;t&&t.formId&&""!==t.formId&&(i+="?formId=".concat(encodeURIComponent(t.formId)));var s="".concat(a.getBaseUrl()).concat("/userAuthentication/registerV2","/").concat(t.language,"/"),n=this.setAuthenticationParams(s,i,t.errorFallback);window.location.href=n}else{var o="".concat(a.getBaseUrl()).concat("/userAuthentication/register","/").concat(t.language,"/"),r=this.setAuthenticationParams(o,t.redirect,t.errorFallback);window.location.href=r}},registerWithToken:function(t){var e="".concat(a.getBaseUrl()).concat("/userAuthentication/registerV2","/").concat(t.language,"/");t.redirect&&(e+="?redirect=".concat(encodeURIComponent(t.redirect))),t.token&&(e+="".concat(encodeURIComponent("?token=")).concat(encodeURIComponent(t.token))),window.location.href=e},resetPassword:function(t){var e="".concat(a.getBaseUrl()).concat("/userAuthentication/forgotPassword","/").concat(t.language,"/"),i=this.setAuthenticationParams(e,t.redirect,t.errorFallback);window.location.href=i},logout:function(){window.location.href="".concat(a.getBaseUrl()).concat("/userAuthentication/logout")},setAuthenticationParams:function(t,e,i){var a=t;return e&&(a+="?redirect=".concat(encodeURIComponent(e))),i&&(a+="".concat(e?"&":"?","errorFallback=").concat(encodeURIComponent(i))),a},triggerAccountLookup:function(){var t=this;return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(S):"http://localhost:8080/static/db/accountLookup.json";c.a.get(s).then((function(a){t.checkResponseWasRedirected(a),a&&a.data?e(a.data):i(new Error("Error wrong data."))})).catch((function(t){i(t)}))}))},triggerPostLogin:function(){var t=this;return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(T):"http://localhost:8080/static/db/postLogin.json";c.a.get(s).then((function(a){t.checkResponseWasRedirected(a),a&&a.data&&a.data.UserData?e(a.data):i(new Error("Error wrong data."))})).catch((function(t){i(t)}))}))},submitConsentData:function(){var t=this;return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(P);c.a.post(s).then((function(i){t.checkResponseWasRedirected(i),e()})).catch((function(t){i(t)}))}))},getNewsCategories:function(){var t=this;return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat("/api/ssp-registration/getNewsCategories");c.a.get(s).then((function(i){t.checkResponseWasRedirected(i),e(i.data)})).catch((function(t){i(t)}))}))},submitNewsCategories:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat("/api/ssp-registration/submitNewsCategories");c.a.post(n,p.stringify({categories:JSON.stringify(t)})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},getHoldings:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(F);c.a.get(n,{params:{countryCode:t.countryCode,taxNumber:t.taxNumber}}).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},getEventRegistrationsCounts:function(t){return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat("/api/ssp-public/getEventRegistrationsCounts"):"http://localhost:8080/static/db/getEventRegistrationsCounts.json";c.a.get(s,{params:{formIdentifiers:t.formIdentifiers}}).then((function(t){e(t.data)})).catch((function(t){i(t)}))}))},checkResponseWasRedirected:function(t){if(t&&t.config&&t.config.url&&t.request&&t.request.responseURL){var e=t.request.responseURL,i=e.indexOf("?");-1!==i&&(e=e.substring(0,i)),t.config.url!==t.request.responseURL&&-1===e.indexOf(t.config.url,e.length-t.config.url.length)&&document.dispatchEvent(new CustomEvent("vue-ssp-session-expired"))}},buildFormContent:function(t,e){var i={};return t.forEach((function(t){if("crops"===t.name||"occupationCrops"===t.name)i[t.name]=r()(t.cropsSendOnSubmit);else if("eventAdditionalParticipants"===t.name||"productFileTypes"===t.name)i[t.name]=t.value?t.value:[];else if("additionalAddresses"===t.name){var a=[];t.value&&t.value.length>0&&t.value.forEach((function(t){var e={};e.street=t.street,e.officialFarmId=t.officialFarmId,t.locationValue&&(e.city=t.locationValue.name,e.zipcode=t.locationValue.zipcode),t.accountId&&(e.accountId=t.accountId),a.push(e)})),i[t.name]=a}else"products"===t.name?i[t.name]=t.value?t.value.filter((function(t){return"all"!==t})):[]:Array.isArray(t.value)?i[t.name]=t.value?t.value.map((function(t){return t.code})):"":"object"===n()(t.value)?"zipcode"===t.name||"inforisqueParcelZIP"===t.name||"contactZipcode"===t.name?i[t.name]=t.value?t.value.zipcode:void 0:"city"===t.name||"contactCity"===t.name?i[t.name]=t.value?t.value.name:void 0:"occupation"===t.name||"occupationType"===t.name?"occupation"===t.name&&(i[t.name]={BPROLE:t.value?t.value.bpRole:void 0,BPTYPE:t.value?t.value.bpType:void 0,BSEG:t.value?t.value.bSeg:void 0,ABCCLASS:t.value?t.value.abcClass:void 0},u.a.useSalesForce()&&(i[t.name].DETAIL=t.value?t.value.accountDetail:void 0)):"eventDate"===t.name||"eventLocation"===t.name?i[t.name]=t.value||"":"pecType"!==t.name&&(i[t.name]=t.value?t.value.code:""):"emailConfirm"!==t.name&&"emailDisplay"!==t.name&&"mobileDisplay"!==t.name&&(i[t.name]="areaPerCrop"===t.name?t.listSendOnSubmit:t.value);i.country=e})),i},mergeDatas:function(t){var e={};return t.forEach((function(t){Object.keys(t).forEach((function(i){var a=t[i];void 0===e[i]||null===e[i]?e[i]=a:a&&Array.isArray(a)&&a.forEach((function(t){-1===e[
1i].indexOf(t)&&e[i].push(t)}))}))})),e},resendMailOrCode:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(L);c.a.post(n,p.stringify({formIdentifiers:t.formIdentifiers,optType:t.optType,language:t.language})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},getUserElearningDetails:function(){var t=this;return new Promise((function(e,i){var s="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(E):"http://localhost:8080/static/db/getUserElearningDetails.json";c.a.get(s).then((function(i){t.checkResponseWasRedirected(i),e(i.data)})).catch((function(t){i(t)}))}))},verify:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(V);c.a.post(n,p.stringify({type:t.type,mobile:t.mobile,email:t.email,back:t.back,language:t.language})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},validateToken:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(A);c.a.post(n,p.stringify({token:t.token})).then((function(t){e.checkResponseWasRedirected(t),i()})).catch((function(t){s(t)}))}))},verifyPending:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(D);c.a.get(n,{params:{type:t.type}}).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},verifyConfirmConsent:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(M);c.a.get(n,{params:{keepConsent:t.keepConsent}}).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},submitOtConsent:function(t){var e=this;return new Promise((function(i,s){var n="".concat(a.getBaseUrl()).concat(R);c.a.post(n,p.stringify({language:t.language,content:JSON.stringify(t.content)})).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},contactExists:function(t){var e=this;return new Promise((function(i,s){var n="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat($):"http://localhost:8080/static/db/contactExists.json";c.a.post(n,p.stringify({email:t.email,mobile:t.mobile,useUserDataMobile:t.useUserDataMobile})).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))},assignContact:function(t){var e=this;return new Promise((function(i,s){var n="localhost"!==location.hostname?"".concat(a.getBaseUrl()).concat(N):"http://localhost:8080/static/db/assignContact.json";c.a.get(n,{params:{language:t.language}}).then((function(t){e.checkResponseWasRedirected(t),i(t.data)})).catch((function(t){s(t)}))}))}})},bTK9:function(t,e){},"c+Ka":function(t,e,i){"use strict";var a=i("lwsE"),s=i.n(a),n=i("W8MJ"),o=i.n(n),r=i("a1gu"),l=i.n(r),c=i("Nsbk"),u=i.n(c),d=i("7W2i"),p=i.n(d),m=i("O9WD"),h=i("ogDd");function f(t,e,i){return e=u()(e),l()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],u()(t).constructor):e.apply(t,i))}var g=function(t){function e(){return s()(this,e),f(this,e,arguments)}return p()(e,t),o()(e,[{key:"storage",get:function(){return sessionStorage}},{key:"extractPostLoginFromSessionStorage",value:function(){var t=!1;if(this.hasSsp()){var e=!1,i=null;try{this.storage.getItem(h.a.SSP)&&(i=JSON.parse(this.storage.getItem(h.a.SSP)))}catch(t){e=!0}!e&&i&&(t=i.postLogin)}return t}}])}(m.a);e.a=new g},"c+sh":function(t,e,i){"use strict";var a=i("lSNA"),s=i.n(a),n=i("OCip"),o=i("L2JU"),r=i("EPxg");function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){s()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u={name:"TemplateField",components:{BPopover:n.a,DebugMode:r.a},props:{formId:{type:String,default:""},labelName:{type:String,default:""},labelClassName:{type:String,default:null},labelTag:{type:String,default:""},error:{type:String,default:""},tooltip:{type:String,default:""},tooltipIsHtml:{type:Boolean,default:!1},tooltipClass:{type:String,default:""},tooltipPlacement:{type:String,default:"top"},tooltipClose:{type:Boolean,default:!1},required:{type:Boolean,default:!1},displayRequiredFlag:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},superscript:{type:String,default:""},subscript:{type:String,default:""},hasSspMapping:{type:Boolean,default:!0}},computed:c(c({},Object(o.c)({debugMode:function(t){return t.main.debugMode}})),{},{SFMapping:function(){return!(!window.debugModeConfig||void 0===window.debugModeConfig.salesforceMapping)&&window.debugModeConfig.salesforceMapping},tooltipCustomClasses:function(){var t="field-tooltip";return this.tooltipClass&&(t+=" ",t+=this.tooltipClass),t},getSalesforceCode:function(){var t=this,e=this.SFMapping&&this.SFMapping.find((function(e){return e.id===t.labelTag}));if(!e)return"";if(["crops","agreement","agreementFax","surveyAnswers","comment"].includes(e.id)){var i=e.codeList&&e.codeList.find((function(e){return e.id===t.formId}));return i&&i.code}return e.code||""}}),methods:{closeTooltip:function(){this.$refs.tooltip.$emit("close")}}},d=i("JFUb");var p=function(t){i("WOew")},m=Object(d.a)(u,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"form-group form-row"},[i("div",{staticClass:"col field-wrapper",class:{disabled:t.disabled}},[t.superscript?i("div",{staticClass:"superscript",domProps:{innerHTML:t._s(t.superscript)}}):t._e(),t._v(" "),t.labelName||t.tooltip?i("label",{class:t.labelClassName,attrs:{for:t.labelTag}},[i("div",{staticClass:"field-label d-inline"},[i("span",{domProps:{innerHTML:t._s(t.labelName)}}),t._v(" "),t.required&&t.displayRequiredFlag?i("span",[t._v("*")]):t._e()]),t._v(" "),t.tooltip?i("span",{staticClass:"icon-tooltip",attrs:{id:"field-tooltip-"+t._uid}},[t.tooltipIsHtml?t._e():i("i",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:t._s(t.tooltip)}})]):t._e(),t._v(" "),t.tooltip&&t.tooltipIsHtml?i("b-popover",{ref:"tooltip",attrs:{target:"field-tooltip-"+t._uid,placement:t.tooltipPlacement,"custom-class":t.tooltipCustomClasses,triggers:"hover"}},[t.tooltipClose?i("div",{staticClass:"tooltip-close",on:{click:t.closeTooltip}},[t._v("×")]):t._e(),t._v(" "),i("div",{staticClass:"content",class:{"has-close":t.tooltipClose},domProps:{innerHTML:t._s(t.tooltip)}})]):t._e()],1):t._e(),t._v(" "),t.debugMode?[i("DebugMode",{attrs:{"field-id":t.hasSspMapping?t.labelTag:"","backend-attr":t.hasSspMapping?"":t.labelTag,"salesforce-attr":t.getSalesforceCode,position:t.labelName||t.tooltip?"back":"front"}},[t._t("default")],2)]:[t._t("default")],t._v(" "),t.error?i("div",{staticClass:"field-msg error",domProps:{innerHTML:t._s(t.error)}}):t._e(),t._v(" "),t.subscript?i("div",{staticClass:"subscript",domProps:{innerHTML:t._s(t.subscript)}}):t._e()],2)])}),[],!1,p,"data-v-1c88b1fe",null);e.a=m.exports},cGzQ:function(t,e,i){"use strict";var a=i("vDqi"),s=i.n(a);e.a={init:function(){s.a.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"}},getBaseUrl:function(){var t=window.snConfig||{},e="";return t.apiUrl&&(e=t.apiUrl),e},getStage:function(){return(window.snConfig||{}).stage},getLanguage:function(){return(window.snConfig||{}).language},getRegPageUrl:function(){return(window.snConfig||{}).regPageUrl},getMyServicesPrivateUrl:function(){return(window.snConfig||{}).myServicesPrivateUrl},getAfterLoginUrl:function(){return(window.snConfig||{}).afterLoginUrl},useSalesForce:function(){return"true"===(window.snConfig||{}).useSalesForce},useSSP:function(){return"true"===(window.snConfig||{}).useSSP},useMultiAddress:function(){return"true"===(window.snConfig||{}).useMultiAddress},lrNoOpt:function(){return!0}}},cPsw:function(t,e,i){"use strict";var a=i("cCY5"),s=i.n(a),n=i("c+sh"),o=i("3IOm"),r={name:"SelectMultiField",components:{TemplateField:n.a,Treeselect:s.a},extends:o.a,props:{value:{type:Array,default:function(){return[]}},options:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},hasError:{type:Boolean,default:!1},hasErrorMessage:{type:String,default:""},cucumber:{type:String,default:null},showSelectedValues:{type:Boolean,default:!0}},data:function(){return{selectedElements:this.prefill(),multiple:!0,openOnClick:!0,clearOnSelect:!0,treeSelectOpened:!1,adjustedTreeOpenDirection:"below",normalizerId:function(t){return{id:t.code,label:t.name}}}},watch:{value:function(){this.selectedElements=this.value},selectedElements:function(){this.$emit("update:value",this.selectedElements),this.doOnChangeValidation&&this.validate()},hasError:function(){this.doOnChangeValidation&&this.validate()}},methods:{prefill:function(){return this.value&&this.value.length?this.value:[]},onTreeOpen:function(){this.treeSelectOpened=!0,this.adjustedTreeOpenDirection=this.$refs["treeSelect_".concat(this.name)].prefferedOpenDirection}
1,onTreeClose:function(){this.treeSelectOpened=!1},validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e="";this.required&&(e=(t=this.selectedElements&&Object.keys(this.selectedElements).length>0)?"":this.commonTranslations.requiredField),this.hasError&&(t=!1,e=this.hasErrorMessage),this.valid=t,this.errorMessage=e}}}},l=i("JFUb");var c=function(t){i("VLtD")},u=Object(l.a)(r,(function(){var t,e=this,i=e.$createElement,a=e._self._c||i;return a("TemplateField",{attrs:{"label-name":e.labelName,"label-tag":e.name,error:e.errorMessage,tooltip:e.tooltip,"tooltip-is-html":e.tooltipIsHtml,"tooltip-placement":e.tooltipPlacement,"tooltip-class":e.tooltipClass,"tooltip-close":e.tooltipClose,required:e.required,disabled:e.disabled,superscript:e.superscript,subscript:e.subscript}},[a("div",{staticClass:"treeselect-wrapper treeselect-multi-field",class:(t={},t["treeselect-open-"+e.adjustedTreeOpenDirection]=e.treeSelectOpened,t.error=!e.valid,t["treeselect-multi-field-show-values"]=e.showSelectedValues,t),attrs:{"data-cucumber":e.cucumber}},[a("div",{staticClass:"selectPlaceholder"},[e._v(e._s(e.placeholder))]),e._v(" "),a("treeselect",{ref:"treeSelect_"+e.name,attrs:{options:e.options,multiple:e.multiple,clearable:e.clearable,"open-on-click":e.openOnClick,"clear-on-select":e.clearOnSelect,searchable:!1,normalizer:e.normalizerId,"open-direction":"below",placeholder:""},on:{open:e.onTreeOpen,close:e.onTreeClose},model:{value:e.selectedElements,callback:function(t){e.selectedElements=t},expression:"selectedElements"}})],1)])}),[],!1,c,"data-v-09f7ae56",null);e.a=u.exports},cWDk:function(t,e,i){"use strict";var a={name:"ProductSearchCheckbox",props:{value:{type:Object,default:function(){return{}}},idPrefix:{type:String,default:""},checked:{type:Boolean,default:!1},marked:{type:Boolean,default:!1}},watch:{checked:function(t,e){this.checked&&t!==e?this.$refs.inputRef.checked=t:this.$refs.inputRef.checked=!1}},mounted:function(){this.checked&&(this.$refs.inputRef.checked=this.checked)},methods:{handleClick:function(){this.$emit("handle-click")},handleArrowClick:function(){this.$emit("handle-arrow-click")}}},s=i("JFUb");var n=function(t){i("/lPZ")},o=Object(s.a)(a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.value&&t.value.id&&t.value.name?i("div",{staticClass:"custom-control custom-checkbox"},[i("input",{ref:"inputRef",staticClass:"custom-control-input",class:{marked:t.marked&&!t.checked},attrs:{id:t.idPrefix+t.value.id,type:"checkbox"},domProps:{value:t.value.id},on:{click:function(e){return t.handleClick()}}}),t._v(" "),i("label",{staticClass:"custom-control-label",attrs:{for:t.idPrefix+t.value.id}},[t._v(t._s(t.value.name))])]):t._e(),t._v(" "),t.value.count>0?i("span",{staticClass:"arrow",on:{click:function(e){return t.handleArrowClick()}}}):t._e()])}),[],!1,n,"data-v-3837dd93",null);e.a=o.exports},"cc+j":function(t,e){},cuIY:function(t,e,i){"use strict";var a=i("RIqP"),s=i.n(a),n=i("lSNA"),o=i.n(n),r=i("L2JU");function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var c={name:"ProductSearchDropdown",components:{ProductSearchCheckbox:i("cWDk").a},props:{groups:{type:[Object,Array],default:function(){}},groupCurrent:{type:[Object,Array],default:function(){}},groupPrefix:{type:String,default:""},subGroups:{type:[Object,Array],default:function(){}},subGroupCurrent:{type:[Object,Array],default:function(){}},subGroupPrefix:{type:String,default:""},prefix:{type:String,default:""},elements:{type:[Object,Array],default:function(){}},elementCurrent:{type:[Object,Array],default:function(){}}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){o()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(r.c)({markedParents:function(t){return t.search.markedParents}}
1)),methods:{click:function(t,e,i,a){a?this.$store.dispatch("search/updateMarkedParents",{elementId:i.id,parents:a}):this.$store.dispatch("search/updateMarkedParents",{elementId:i.id,parents:["".concat(e).concat(i.id)]}),this.$emit("".concat(t),i)},checkMarked:function(t){var e;return-1!==(e=[]).concat.apply(e,s()(Object.values(this.markedParents))).indexOf(t)},checkIfCurrentFilterContainsItem:function(t,e){for(var i=0;i<e.length;i+=1)if(e[i].id===t.id)return!0;return!1},openSubAccordion:function(t,e){var i=document.getElementById("".concat(t).concat(e)).classList;i.contains("child-visible")||this.$store.dispatch("search/fetchSubItems",{prefix:t,id:e}),i.toggle("child-visible")}}},u=i("JFUb");var d=function(t){i("pKn5")},p=Object(u.a)(c,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"filter-list"},[t._l(t.groups,(function(e){return[i("li",{key:e.id,staticClass:"has-child",attrs:{id:t.groupPrefix+e.id}},[i("ProductSearchCheckbox",{attrs:{value:e,checked:t.checkIfCurrentFilterContainsItem(e,t.groupCurrent),marked:t.checkMarked(t.prefix+e.id),"id-prefix":t.prefix},on:{"handle-click":function(i){return t.click("updateGroup",t.prefix,e)},"handle-arrow-click":function(i){return t.openSubAccordion(t.groupPrefix,e.id)}}}),t._v(" "),t.subGroups[e.id]&&t.subGroups[e.id].length>0?i("ul",[t._l(t.subGroups[e.id],(function(a){return[i("li",{key:a.id,staticClass:"has-child",attrs:{id:t.subGroupPrefix+a.id}},[i("ProductSearchCheckbox",{attrs:{value:a,checked:t.checkIfCurrentFilterContainsItem(a,t.subGroupCurrent),"id-prefix":t.prefix,marked:t.checkMarked(a.id)},on:{"handle-click":function(i){return t.click("updateSubGroup",t.prefix,a,[""+t.prefix+e.id])},"handle-arrow-click":function(e){return t.openSubAccordion(t.subGroupPrefix,a.id)}}}),t._v(" "),t.elements[a.id]&&t.elements[a.id].length>0?i("ul",[t._l(t.elements[a.id],(function(s){return[i("li",{key:s.id},[i("ProductSearchCheckbox",{attrs:{value:s,checked:t.checkIfCurrentFilterContainsItem(s,t.elementCurrent),"id-prefix":t.prefix},on:{"handle-click":function(i){return t.click("updateElement",t.prefix,s,[""+t.prefix+e.id,a.id])}}})],1)]}))],2):t._e()],1)]}))],2):t._e()],1)]}))],2)}),[],!1,d,"data-v-b344d77c",null);e.a=p.exports},e2Rk:function(t,e){},eCkw:function(t,e){},eeUo:function(t,e){},eh5q:function(t,e){},fGAw:function(t,e){},fTxU:function(t,e){},"fbB/":function(t,e){},fgYm:function(t,e){},ftm9:function(t,e){},g7y3:function(t,e){},gbFj:function(t,e){},glRN:function(t,e){},h19j:function(t,e){},hb7Y:function(t,e){},hd29:function(t,e,i){"use strict";var a=i("c+sh"),s=i("3IOm"),n={name:"TextAreaField",components:{TemplateField:a.a},extends:s.a,props:{value:{type:String,default:""},customValidationRegExp:{type:RegExp,default:null},customErrorMessage:{type:String,default:""},hasError:{type:Boolean,default:!1},rows:{type:Number,default:5},hasSspMapping:{type:Boolean,default:!0}},watch:{value:function(){this.doOnChangeValidation&&this.validate()},hasError:{handler:function(t,e){t!==e&&this.validate()}}},methods:{validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e=!0,i="";this.required&&(i=(t=this.value&&this.value.trim().length>0)?"":this.commonTranslations.requiredField),this.hasError&&(t=!1,i=this.translations.invalid.farmSize),t&&this.customValidationRegExp&&this.value.length&&(i=(e=this.customValidationRegExp.test(this.value))?"":this.customErrorMessage),this.valid=t&&e,this.errorMessage=i}}}},o=i("JFUb");var r=function(t){i("x38e")},l=Object(o.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,disabled:t.disabled,superscript:t.superscript,subscript:t.subscript,"has-ssp-mapping":t.hasSspMapping}},[i("textarea",{staticClass:"form-control w-100",class:{error:!t.valid},attrs:{name:t.name,placeholder:t.placeholder,readonly:t.disabled,"data-cucumber":t.cucumber,rows:t.rows},domProps:{value:t.value},on:{input:function(e){return t.$emit("update:value",e.target.value)},blur:function(e){t.$emit("update:value",e.target.value.trim())}}})])}),[],!1,r,"data-v-15921d78",null);e.a=l.exports},hqG1:function(t,e){},iY5U:function(t,e){},iirv:function(t,e){},iwgO:function(t,e){},jHjH:function(t,e){},jfqE:function(t,e){},joUw:function(t,e){}
1,k08Z:function(t,e,i){"use strict";var a=i("c+sh"),s=i("3IOm"),n={name:"TextField",components:{TemplateField:a.a},extends:s.a,props:{id:{type:String,default:""},value:{type:String,default:""},inputType:{type:String,default:"text"},customValidationRegExp:{type:RegExp,default:null},customValidationFunc:{type:Function,default:null},customErrorMessage:{type:String,default:""},hasError:{type:Boolean,default:!1},hasErrorMessage:{type:String,default:""},icon:{type:String,default:""}},watch:{value:function(){this.doOnChangeValidation&&this.validate()},hasError:{handler:function(t,e){t!==e&&this.validate()}},customValidationRegExp:{handler:function(t,e){t&&t!==e&&this.doOnChangeValidation&&this.validate()}}},methods:{validate:function(){if(!this.disabled||this.forceValidation){var t=!0,e=!0,i=!0,a="";this.required&&(a=(t=this.value&&this.value.trim().length>0)?"":this.commonTranslations.requiredField),this.hasError&&(t=!1,a=this.hasErrorMessage),this.customValidationRegExp&&this.value&&this.value.length&&(a=(e=this.customValidationRegExp.test(this.value))?a:this.customErrorMessage),this.customValidationFunc&&this.value&&this.value.length&&(a=(i=this.customValidationFunc(this.value))?a:this.customErrorMessage),this.valid=t&&e&&i,this.errorMessage=a,this.$emit("afterValidate",this)}}}},o=i("JFUb");var r=function(t){i("4p+F")},l=Object(o.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("TemplateField",{attrs:{"label-name":t.labelName,"label-tag":t.name,error:t.errorMessage,tooltip:t.tooltip,"tooltip-is-html":t.tooltipIsHtml,"tooltip-placement":t.tooltipPlacement,"tooltip-class":t.tooltipClass,"tooltip-close":t.tooltipClose,required:t.required,"display-required-flag":t.displayRequiredFlag,disabled:t.disabled,superscript:t.superscript,subscript:t.subscript}},[i("div",{staticClass:"field-wrapper-inner position-relative"},[i("input",{staticClass:"form-control",class:{error:!t.valid},attrs:{id:t.id,type:t.inputType,name:t.name,placeholder:t.placeholder,readonly:t.disabled,"data-cucumber":t.cucumber},domProps:{value:t.value},on:{input:function(e){return t.$emit("update:value",e.target.value)},blur:function(e){t.$emit("update:value",e.target.value.trim()),t.$emit("blur")}}}),t._v(" "),t.icon?i("span",{staticClass:"icon",class:t.icon,on:{click:function(e){return t.$emit("clickIcon")}}}):t._e()])])}),[],!1,r,"data-v-10bf286e",null);e.a=l.exports},kENl:function(t,e){},kJaR:function(t,e){},kRcU:function(t,e){},kZSG:function(t,e,i){"use strict";var a=i("w9Lr"),s={name:"CountdownButton",props:{time:{type:Number,default:0},isBasic:{type:Boolean,default:!0},url:{type:String,default:""},label:{type:String,default:""},align:{type:String,default:"center"}},data:function(){return{timeLeft:0,useHistoryBack:!1}},computed:{translations:function(){return!(!window.snTranslations||void 0===window.snTranslations.form)&&window.snTranslations.form},translationsCommon:function(){return!(!window.snTranslations||void 0===window.snTranslations.common)&&window.snTranslations.common},functionHelper:function(){return a.a}},created:function(){this.timeLeft=this.time;var t=window.location.search;t&&-1!==t.indexOf("historyBack=true")&&(this.useHistoryBack=!0)},mounted:function(){var t=this,e=setInterval((function(){t.timeLeft-=1,t.timeLeft<=0&&(clearInterval(e),t.useHistoryBack?t.goHistoryBack():window.location.href=t.url)}),1e3)},methods:{goHistoryBack:function(){window.history.go(-1)}}},n=i("JFUb");var o=function(t){i("Wstq")},r=Object(n.a)(s,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"cta-button-wrapper",class:{left:"left"===t.align,center:"center"===t.align,right:"right"===t.align}},[i("div",{staticClass:"action-button",class:{basic:t.isBasic}},[t.useHistoryBack?t._e():i("a",{attrs:{href:t.url,title:t.functionHelper.formatTitle(t.translationsCommon.linkTo,t.label,t.url)}},[t._v("\n      "+t._s(t.label)+"\n      "),t.timeLeft?i("span",{staticClass:"ml-2"},[t._v(t._s(t.timeLeft))]):t._e()]),t._v(" "),t.useHistoryBack?i("a",{attrs:{title:t.translations.goBack,href:"#"},on:{click:function(e){return t.goHistoryBack()}}},[t._v("\n      "+t._s(t.translations.goBack)+"\n      "),t.timeLeft?i("span",{staticClass:"ml-2"},[t._v(t._s(t.timeLeft))]):t._e()]):t._e()])])}),[],!1,o,"data-v-d3d672c0",null);e.a=r.exports},klFR:function(t,e){},kmDF:function(t,e){},lSGv:function(t,e){},lU03:function(t,e){},lW1d:function(t,e){},lZ7w:function(t,e){},ltg3:function(t,e){},lxYK:function(t,e){},"m+ud":function(t,e){},mE0S:function(t,e){},mIlm:function(t,e){},"mSl/":function(t,e){},"n+E2":function(t,e){},n9zR:function(t,e){},nEkI:function(t,e){},nRv7:function(t,e){},nVwl:function(t,e){},nojH:function(t,e){},o1Lm:function(t,e){},o6xU:function(t,e){},oASY:function(t,e){},oDxd:function(t,e){},oFzM:function(t,e){},oJCB:function(t,e){},"oK/P":function(t,e){}
1,oYx3:function(t,e,i){"use strict";var a=i("oCYn"),s=i("jE9Z"),n=i("lSNA"),o=i.n(n),r=i("L2JU");function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}var c={name:"HomeView",components:{},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){o()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(r.b)({})),mounted:function(){}},u=i("JFUb");var d=function(t){i("xyiz")},p=Object(u.a)(c,(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"container content-module text-image"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("h1",[this._v("BASF Agro-Vue Components")]),this._v(" "),e("div",{staticClass:"intro"},[e("small",[this._v("Init Vue:")]),this._v(" "),e("div",[e("textarea",{staticClass:"vueConsole"})])])])])])}],!1,d,"data-v-4254e98e",null).exports;a.default.use(s.a);var m=new s.a({mode:"history",routes:[{path:"/",name:"Home",component:p}],scrollBehavior:function(t,e,i){return t.hash?{selector:t.hash}:i||{x:0,y:0}}});e.a=m},offD:function(t,e){},ogDd:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var a=i("lwsE"),s=i.n(a),n=i("W8MJ"),o=i.n(n),r=function(){return o()((function t(){s()(this,t)}),null,[{key:"IS_PERSONALIZED",get:function(){return"isPz"}},{key:"PZ_ADDRESS",get:function(){return"pzAddress"}},{key:"PZ_CROPS",get:function(){return"pzCrops"}},{key:"FILTER",get:function(){return"filter"}},{key:"SSP_CROPS",get:function(){return"sspCrops"}},{key:"SSP",get:function(){return"ssp"}},{key:"WEATHER_MAP_FILTER",get:function(){return"weatherMapFilter"}}])}()},ohBD:function(t,e){},pH9e:function(t,e,i){"use strict";var a=i("lwsE"),s=i.n(a),n=i("W8MJ"),o=i.n(n),r=i("a1gu"),l=i.n(r),c=i("Nsbk"),u=i.n(c),d=i("7W2i"),p=i.n(d),m=i("O9WD"),h=i("ogDd");function f(t,e,i){return e=u()(e),l()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],u()(t).constructor):e.apply(t,i))}var g=function(t){function e(){return s()(this,e),f(this,e,arguments)}return p()(e,t),o()(e,[{key:"storage",get:function(){return localStorage.setItem("unused_key",null),localStorage}},{key:"isPzDisabled",value:function(){try{return!1===this.extractIsPzFromLocalStorage()}catch(t){return!1}}},{key:"isPersonalized",value:function(){return Boolean(this.storage.getItem(h.a.IS_PERSONALIZED))}},{key:"hasSSPCrops",value:function(){return Boolean(this.storage.getItem(h.a.SSP_CROPS))}},{key:"isPersonalizedWithAddress",value:function(){return this.hasPzAddress()&&this.isPersonalized()}},{key:"isPersonalizedWithCrops",value:function(){return this.hasPzCrops()&&this.isPersonalized()}},{key:"isWeatherMapFiltered",value:function(){return this.hasWeatherMapFilter()}},{key:"extractWeatherMapFilter",value:function(){return JSON.parse(this.storage.getItem(h.a.WEATHER_MAP_FILTER))}},{key:"extractCropsFromLocalStorage",value:function(){var t=!1,e=null;try{this.storage.getItem(h.a.PZ_CROPS)&&(e=JSON.parse(this.storage.getItem(h.a.PZ_CROPS)))}catch(e){t=!0}return{cropGroupId:!t&&e&&e.crops}}},{key:"extractIsPzFromLocalStorage",value:function(){var t=!1;return this.isPersonalized()&&(t=JSON.parse(this.storage.getItem(h.a.IS_PERSONALIZED)).isPz),t}}])}(m.a);e.a=new g},pKn5:function(t,e){},pbIK:function(t,e){},qDDM:function(t,e){},qJfJ:function(t,e){},qQ7T:function(t,e){},quPu:function(t,e){},"r/Ta":function(t,e){},r1a3:function(t,e){},rGGp:function(t,e){},rH1k:function(t,e){},rICy:function(t,e){},rUHH:function(t,e){},reTc:function(t,e){},rlet:function(t,e){},rtzq:function(t,e){},s1DU:function(t,e){},sVRk:function(t,e){},sXUz:function(t,e){},"tB/z":function(t,e){},twPk:function(t,e){},u2iM:function(t,e){},uWx1:function(t,e){},v9lL:function(t,e){},vtjR:function(t,e){}
1,w7Cn:function(t,e,i){"use strict";var a=i("w9Lr"),s={name:"Crop",props:{data:{type:String,default:""},fromAll:{type:Boolean,default:!1},fromSsp:{type:Boolean,default:!1},useAmigaCode:{type:Boolean,default:!1},cucumber:{type:String,default:null}},computed:{snConfigCrops:function(){return window.snConfigCrops.crops},snConfigAllCrops:function(){return window.snConfigAllCrops},snConfigAllSSPCrops:function(){return window.snConfigAllSSPCrops},cropName:function(){var t=[];return t=this.fromAll?this.fromSsp?this.snConfigAllSSPCrops:this.snConfigAllCrops:this.snConfigCrops,this.useAmigaCode?a.a.getCropByAmigaCode(this.data,t):a.a.getCropById(this.data,t)}},methods:{clickedHandler:function(){this.$emit("clicked",this.data)}}},n=i("JFUb");var o=function(t){i("o1Lm")},r=Object(n.a)(s,(function(){var t=this.$createElement,e=this._self._c||t;return"all"!==this.data?e("span",{staticClass:"button button-close",attrs:{"data-cucumber":this.cucumber},on:{click:this.clickedHandler}},[this._v("\n  "+this._s(this.cropName)+"\n")]):this._e()}),[],!1,o,"data-v-62c0579e",null);e.a=r.exports},w9Lr:function(t,e,i){"use strict";var a=i("RIqP"),s=i.n(a),n=i("lwsE"),o=i.n(n),r=i("W8MJ"),l=i.n(r),c=i("pH9e"),u=function(){return l()((function t(){o()(this,t)}),[{key:"setBackgroundColor",value:function(t,e,i,a){var s="";if(t)if(e){var n=i.replace("#",""),o=parseInt(n.substring(0,2),16),r=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);s="rgba(".concat(o,", ").concat(r,", ").concat(l,", ").concat(a,")")}else s="rgba(255, 255, 255, ".concat(a,")");return s}},{key:"setPz",value:function(t){var e=JSON.stringify({isPz:t});localStorage.setItem("isPz",e)}},{key:"setPzDependedCropsAddress",value:function(){var t=!1;return t=!(!this.hasPzBarCrops()&&!this.hasPzBarAddress()),this.setPz(t),t}},{key:"getLocalStoreValueByStorageTag",value:function(t){var e=!1,i=null;try{localStorage.getItem(t)&&(i=JSON.parse(localStorage.getItem(t)))}catch(t){e=!0}var a=null;return!e&&i&&(a=i),a}},{key:"setLocalStoreValueByStorageTag",value:function(t,e){var i=JSON.stringify(e);localStorage.setItem(t,i)}},{key:"getPzBarCrops",value:function(){var t="",e=!1,i=null;try{localStorage.getItem("isPz")&&(i=JSON.parse(localStorage.getItem("isPz")))}catch(t){e=!0}if(localStorage.getItem("pzCrops")&&(localStorage.getItem("isPz")&&!e&&i&&!1!==i.isPz||!localStorage.getItem("isPz"))&&localStorage.getItem("pzCrops")){var a=!1,s=null;try{localStorage.getItem("pzCrops")&&(s=JSON.parse(localStorage.getItem("pzCrops")))}catch(t){a=!0}!a&&s&&Object.keys(s.crops).forEach((function(e){t+="&cropGroupId=".concat(s.crops[e])}))}return t}},{key:"hasPzBarCrops",value:function(){return c.a.hasPzCrops()}},{key:"hasPzBarAddress",value:function(){return c.a.hasPzAddress()}},{key:"getCropById",value:function(t,e){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",n=(i=[]).concat.apply(i,s()(Object.values(e))),o=n.find((function(e){return e.id===t}));return o?o[a]:""}},{key:"getCropByAmigaCode",value:function(t,e){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",n=(i=[]).concat.apply(i,s()(Object.values(e))),o=n.find((function(e){return e.amigaCode===t}));return o?o[a]:""}},{key:"areEqualShallow",value:function(t,e){var i=!0;return t&&e?(Object.keys(t).forEach((function(a){a in e&&t[a]===e[a]||(i=!1)})),Object.keys(e).forEach((function(a){a in t&&t[a]===e[a]||(i=!1)})),i):i}},{key:"areArraysEqual",value:function(t,e){if(Array.isArray(t)&&Array.isArray(e)&&t.length===e.length){var i=t.filter((function(t){return-1===e.indexOf(t)})),a=e.filter((function(e){return-1===t.indexOf(e)}));if(!i.length&&!a.length)return!0}return!1}},{key:"areArraysExactEqual",value:function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(t.length!==e.length)return!1;for(var i=0;i<t.length;i+=1)if(t[i]!==e[i])return!1;return!0}},{key:"renderDropdownDOM",value:function(t,e,i,a){var s=e&&t.zipcode?"".concat(t.zipcode):"",n=i&&t.region1?"".concat(t.region1):"",o=a&&t.region2?"".concat(t.region2):"",r="".concat(s).concat(s&&(n||o)?" | ":"").concat(n).concat(n&&o?" | ":"").concat(o),l='<b class="autocomplete-anchor-text">'.concat(t.name);return l+=t.area1?" (".concat(t.area1,")</b>"):"</b>",l+=e&&t.zipcode||i&&t.region1||a&&t.region2?'<span class="autocomplete-anchor-label">'.concat(r,"</span>"):""}}
1,{key:"retrieveValue",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=i||"code";return t?t.find((function(t){return t[s]===e||!t[s].length&&!e})):a}},{key:"prefillLocation",value:function(t,e){var i=t[e]||"";if(!i&&c.a.isPersonalizedWithAddress()){var a=!1,s=null;try{localStorage.getItem("pzAddress")&&(s=JSON.parse(localStorage.getItem("pzAddress")))}catch(t){a=!0}!a&&s&&s[e]&&(i=s[e])}return i}},{key:"prefillCrops",value:function(t,e){if(t&&t.length)return t;if(c.a.isPersonalizedWithCrops()){var i=JSON.parse(localStorage.getItem("pzCrops")).crops;return e.filter((function(t){return i.includes(t.id)})).map((function(t){return t.amigaCode}))||[]}return[]}},{key:"sortByText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return t.sort((function(t,i){var a=t[e]&&t[e].toUpperCase(),s=i[e]&&i[e].toUpperCase();return a<s?-1:a>s?1:0}))}},{key:"replaceCharacterCodes",value:function(t){return t?t.split("&#34;").join('"').split("&#39;").join("'"):t}},{key:"styleWindDirection",value:function(t){var e=t;return{transform:"rotate(".concat(e+=180,"deg)")}}},{key:"getServiceName",value:function(t,e){return e.find((function(e){return e.code===t})).name}},{key:"isGroup",value:function(t){return new RegExp("^[Mm][Gg][0-9]*$").test(t)}},{key:"isSubgroup",value:function(t){return new RegExp("^[Ss][Gg][0-9]*$").test(t)}},{key:"stringToDecimal",value:function(t){return+t.replace(",",".")}},{key:"formatFloatNumbers",value:function(t){var e=t;return e&&window.snConfig&&window.snConfig.floatNumbersUseComma&&(e=e.replace(".",",")),e}},{key:"bodyAddClass",value:function(t){document.getElementsByTagName("body")&&document.getElementsByTagName("body").length>0&&document.getElementsByTagName("body")[0].classList.add(t)}},{key:"bodyRemoveClass",value:function(t){document.getElementsByTagName("body")&&document.getElementsByTagName("body").length>0&&document.getElementsByTagName("body")[0].classList.remove(t)}},{key:"formatToCamelCase",value:function(t){return t.split("_").map((function(t,e){return e?t.charAt(0).toUpperCase()+t.slice(1):t})).join("")}},{key:"formatTitle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",n=[];if("string"==typeof t&&t.trim()&&n.push(t.trim()),"string"==typeof e&&e.trim()&&n.push(e.trim()),"string"==typeof i&&i.trim()){var o=i.trim();if(!o.startsWith("http")&&a&&"string"==typeof a){var r=a.endsWith("/")?a.slice(0,-1):a,l=o.startsWith("/")?o:"/".concat(o);o="".concat(r).concat(l)}n.push("(".concat(o,")"))}return"string"==typeof s&&s.trim()&&n.push("(".concat(s.trim(),")")),n.join(" ").trim()}},{key:"formatNavTitle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t||!e)return"";var a=Array.isArray(i)&&i.length>0;return a?"".concat(e.view," ").concat(t," ").concat(e.section):"".concat(e.visit," ").concat(t," ").concat(e.page)}},{key:"stripHtml",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""}}])}();e.a=new u},wEpW:function(t,e){},wRAW:function(t,e){},wsbR:function(t,e){},x38e:function(t,e){},xBNp:function(t,e){},xUtq:function(t,e,i){"use strict";var a={name:"VueSelect",props:{options:{type:[Object,Array],default:function(){}},selected:{type:String,default:""},label:{type:String,default:"name"},placeholder:{type:String,default:""},callback:{type:[Object,Function],default:null},isDisabled:{type:Boolean,default:!1},defaultOption:{type:Boolean,default:!0},hasError:{type:Boolean,default:!1},showEmptyOption:{type:Boolean,default:!0},serviceCropList:{type:[Object,Array],default:function(){}},cucumber:{type:String,default:null}},data:function(){return{isActive:!1}},methods:{showDropdown:function(){var t=this;!this.$refs.ul||"none"!==this.$refs.ul.style.display&&""!==this.$refs.ul.style.display?(this.$refs.ul.style.display="none",this.isActive=!1,document.removeEventListener("click",this.showDropdown)):(this.$refs.ul.style.display="block",this.isActive=!0,setTimeout((function(){return document.addEventListener("click",t.showDropdown)}),0))},clicked:function(t){t[this.label]!==this.selected&&this.$emit("callback",t)}}},s=i("JFUb");var n=function(t){i("o6xU")},o=Object(s.a)(a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"styled-select-wrapper",attrs:{"data-cucumber":t.cucumber}}
1,[i("div",{staticClass:"select-styled",class:{"is-disabled":t.isDisabled,active:t.isActive,error:t.hasError},on:{click:function(e){return t.isDisabled?null:t.showDropdown(e)}}},[t._v("\n    "+t._s(t.selected)+" "),t.selected?t._e():i("span",[t._v(t._s(t.placeholder))])]),t._v(" "),i("ul",{ref:"ul",staticClass:"select-options"},[t.selected&&t.defaultOption&&t.showEmptyOption?i("li",{on:{click:function(e){return t.clicked({})}}},[t._v(t._s(t.placeholder))]):t._e(),t._v(" "),t._l(t.options,(function(e,a){return[e[t.label]?i("li",{key:a,ref:a,refInFor:!0,class:{"cucumber-has-crops":e.showCrops&&t.serviceCropList&&t.serviceCropList.length},on:{click:function(i){return t.clicked(e)}}},[t._v(t._s(e[t.label]))]):t._e()]}))],2)])}),[],!1,n,"data-v-7f343b8a",null);e.a=o.exports},xm0s:function(t,e){},xyiz:function(t,e){},yIRg:function(t,e){},yWg6:function(t,e){},yZIc:function(t,e){},ycvR:function(t,e){},yjzb:function(t,e,i){"use strict";var a,s=i("vDqi"),n=i.n(s),o=i("cGzQ"),r=i("Qyje"),l="/api/dynamiccontent/getPersonalizeFilterElements";e.a=(a=o.a,{fetchInitialCropGroupFilterItems:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l);n.a.get(s,{params:{language:t.language,filterElementType:t.type,cropGroupId:t.cropGroups,allowEmptyProductResults:!!t.allowEmptyProductResults&&t.allowEmptyProductResults,stage:a.getStage()},paramsSerializer:function(t){return r.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},fetchMainFilterItems:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l),o={language:t.language,filterElementType:t.type,allowEmptyProductResults:!!t.allowEmptyProductResults&&t.allowEmptyProductResults,stage:a.getStage()};t.useInSSP&&(o.useInSSP=t.useInSSP),t.productsWithPrd&&(o.productsWithPrd=t.productsWithPrd),n.a.get(s,{params:o}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},fetchData:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat("/api/dynamiccontent/getPersonalizeFilterSnippets"),o={language:t.language,resultType:t.type,page:t.page,count:t.count,pestGroupId:t.pestGroupId,pestSubgroupId:t.pestSubgroupId,pestId:t.pestId,cropGroupId:t.cropGroupId,cropSubgroupId:t.cropSubgroupId,cropId:t.cropId,indicationId:t.indicationId,activeIngredientId:t.activeIngredientId,fullText:t.fullText,useOrderingProducts:t.useOrderingProducts,stage:a.getStage()};t.productsWithPrd&&(o.productsWithPrd=t.productsWithPrd),n.a.get(s,{params:o,paramsSerializer:function(t){return r.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},getPestSubGroups:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l);n.a.get(s,{params:{language:t.language,filterElementType:t.type,pestGroupId:t.id,allowEmptyProductResults:!!t.allowEmptyProductResults&&t.allowEmptyProductResults,stage:a.getStage()}}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},getPests:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l);n.a.get(s,{params:{language:t.language,filterElementType:t.type,pestSubgroupId:t.id,allowEmptyProductResults:!!t.allowEmptyProductResults&&t.allowEmptyProductResults,stage:a.getStage()}}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},getCropSubGroups:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l),o={language:t.language,filterElementType:t.type,cropGroupId:t.id,allowEmptyProductResults:!!t.allowEmptyProductResults&&t.allowEmptyProductResults,stage:a.getStage()};t.useInSSP&&(o.useInSSP=t.useInSSP),n.a.get(s,{params:o}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},getCrops:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l),o={language:t.language,filterElementType:t.type,cropSubgroupId:t.id,allowEmptyProductResults:!!t.allowEmptyProductResults&&t.allowEmptyProductResults,stage:a.getStage()};t.useInSSP&&(o.useInSSP=t.useInSSP),n.a.get(s,{params:o}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},fetchStructure:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l);n.a.get(s,{params:{language:t.language,filterElementType:t.type,eppocode:t.eppocode,cropId:t.cropId,cropGroupId:t.cropGroupId,cropSubgroupId:t.cropSubgroupId,pestGroupId:t.pestGroupId,pestSubgroupId:t.pestSubgroupId,stage:a.getStage()},paramsSerializer:function(t){return r.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){e(t.data)}),(function(t){return i(t)}))}))},fetchContacts:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat("/api/dynamiccontent/getTeasers");n.a.get(s,{params:{language:t.language,country:t.country,resultTypes:t.resultTypes,page:t.page,count:t.count,productId:t.product,contactJson:t.contactJson,contactTypeId:t.contactTypeId,contactTypeList:t.contactTypeList,contactCountryCode:t.contactCountryCode,letterName:t.letterName,metaregion:t.metaregion,stage:a.getStage()},paramsSerializer:function(t){var e=JSON.parse(JSON.stringify(t));return r.stringify(e,{arrayFormat:"repeat"})}}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},fetchProducts:function(t){return new Promise((function(e,i){var s="".concat(a.getBaseUrl()).concat(l);n.a.get(s,{params:{language:t.language,filterElementType:t.type,stage:a.getStage()},paramsSerializer:function(t){return r.stringify(t,{arrayFormat:"repeat"})}}).then((function(t){return e(t.data)}),(function(t){return i(t)}))}))},fetchElements:function(t){var e=t;return e.stage=a.getStage(),new Promise((function(t,i){var s="".concat(a.getBaseUrl()).concat(l);n.a.get(s,{params:e,paramsSerializer:function(t){return r.stringify(t,{arrayFormat:"repeat"})}}).then((function(e){return t(e.data)}),(function(t){return i(t)}))}))}})},z6xR:function(t,e){},zRwW:function(t,e){},zuu9:function(t,e){}});

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.