@vergelijkdirect/comparison-forms 1.2.41-VER-7909.2 → 1.2.41-VER-7909.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22835,10 +22835,12 @@ const iM = Gg.exports, oM = (t) => {
22835
22835
  streetName: u
22836
22836
  };
22837
22837
  }, zu = () => {
22838
- const t = ft.companyData, e = t._embedded.hoofdvestiging.adressen, r = oM(e), n = t.sbiActiviteiten, { mainSbiCode: a, otherSbiCodes: i } = n.reduce(
22839
- (u, c) => (c.indHoofdactiviteit === "Ja" ? u.mainSbiCode = c.sbiCode : u.otherSbiCodes.push(c.sbiCode), u),
22840
- { mainSbiCode: null, otherSbiCodes: [] }
22841
- ), o = {
22838
+ const t = ft.companyData, e = t._embedded.hoofdvestiging.adressen, r = oM(e), n = t.sbiActiviteiten;
22839
+ let a = null;
22840
+ const i = [];
22841
+ for (const u of n)
22842
+ u.indHoofdactiviteit === "Ja" && (a = u.sbiCode), i.push(u.sbiCode);
22843
+ const o = {
22842
22844
  name: t.naam,
22843
22845
  kvkNumber: t.kvkNummer,
22844
22846
  industry: t.sbiIndustryId,
@@ -46,7 +46,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46
46
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
47
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48
48
  * SOFTWARE.
49
- */var qa=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",cE=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(qa&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function dE(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function fE(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},cE))}}var pE=qa&&window.Promise,hE=pE?dE:fE;function Hv(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function tn(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function oc(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Ha(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=tn(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(r+a+n)?t:Ha(oc(t))}function Vv(t){return t&&t.referenceNode?t.referenceNode:t}var zv=qa&&!!(window.MSInputMethodContext&&document.documentMode),Uv=qa&&/MSIE 10/.test(navigator.userAgent);function Fn(t){return t===11?zv:t===10?Uv:zv||Uv}function $n(t){if(!t)return document.documentElement;for(var e=Fn(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&tn(r,"position")==="static"?$n(r):r}function mE(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||$n(t.firstElementChild)===t}function sc(t){return t.parentNode!==null?sc(t.parentNode):t}function os(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,a=r?e:t,i=document.createRange();i.setStart(n,0),i.setEnd(a,0);var o=i.commonAncestorContainer;if(t!==o&&e!==o||n.contains(a))return mE(o)?o:$n(o);var u=sc(t);return u.host?os(u.host,e):os(t,sc(e).host)}function Ln(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=e==="top"?"scrollTop":"scrollLeft",n=t.nodeName;if(n==="BODY"||n==="HTML"){var a=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||a;return i[r]}return t[r]}function vE(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Ln(e,"top"),a=Ln(e,"left"),i=r?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=a*i,t.right+=a*i,t}function Yv(t,e){var r=e==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function Wv(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],Fn(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function Gv(t){var e=t.body,r=t.documentElement,n=Fn(10)&&getComputedStyle(r);return{height:Wv("Height",e,r,n),width:Wv("Width",e,r,n)}}var gE=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_E=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Bn=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},wt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function Mr(t){return wt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function uc(t){var e={};try{if(Fn(10)){e=t.getBoundingClientRect();var r=Ln(t,"top"),n=Ln(t,"left");e.top+=r,e.left+=n,e.bottom+=r,e.right+=n}else e=t.getBoundingClientRect()}catch(d){}var a={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i=t.nodeName==="HTML"?Gv(t.ownerDocument):{},o=i.width||t.clientWidth||a.width,u=i.height||t.clientHeight||a.height,c=t.offsetWidth-o,l=t.offsetHeight-u;if(c||l){var s=tn(t);c-=Yv(s,"x"),l-=Yv(s,"y"),a.width-=c,a.height-=l}return Mr(a)}function lc(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Fn(10),a=e.nodeName==="HTML",i=uc(t),o=uc(e),u=Ha(t),c=tn(e),l=parseFloat(c.borderTopWidth),s=parseFloat(c.borderLeftWidth);r&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Mr({top:i.top-o.top-l,left:i.left-o.left-s,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&a){var p=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);d.top-=l-p,d.bottom-=l-p,d.left-=s-f,d.right-=s-f,d.marginTop=p,d.marginLeft=f}return(n&&!r?e.contains(u):e===u&&u.nodeName!=="BODY")&&(d=vE(d,e)),d}function yE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=lc(t,r),a=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),o=e?0:Ln(r),u=e?0:Ln(r,"left"),c={top:o-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:a,height:i};return Mr(c)}function Zv(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(tn(t,"position")==="fixed")return!0;var r=oc(t);return r?Zv(r):!1}function Kv(t){if(!t||!t.parentElement||Fn())return document.documentElement;for(var e=t.parentElement;e&&tn(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function cc(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},o=a?Kv(t):os(t,Vv(e));if(n==="viewport")i=yE(o,a);else{var u=void 0;n==="scrollParent"?(u=Ha(oc(e)),u.nodeName==="BODY"&&(u=t.ownerDocument.documentElement)):n==="window"?u=t.ownerDocument.documentElement:u=n;var c=lc(u,o,a);if(u.nodeName==="HTML"&&!Zv(o)){var l=Gv(t.ownerDocument),s=l.height,d=l.width;i.top+=c.top-c.marginTop,i.bottom=s+c.top,i.left+=c.left-c.marginLeft,i.right=d+c.left}else i=c}r=r||0;var p=typeof r=="number";return i.left+=p?r:r.left||0,i.top+=p?r:r.top||0,i.right-=p?r:r.right||0,i.bottom-=p?r:r.bottom||0,i}function bE(t){var e=t.width,r=t.height;return e*r}function Qv(t,e,r,n,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var o=cc(r,n,i,a),u={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},c=Object.keys(u).map(function(p){return wt({key:p},u[p],{area:bE(u[p])})}).sort(function(p,f){return f.area-p.area}),l=c.filter(function(p){var f=p.width,h=p.height;return f>=r.clientWidth&&h>=r.clientHeight}),s=l.length>0?l[0].key:c[0].key,d=t.split("-")[1];return s+(d?"-"+d:"")}function Xv(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=n?Kv(e):os(e,Vv(r));return lc(r,a,n)}function Jv(t){var e=t.ownerDocument.defaultView,r=e.getComputedStyle(t),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),a=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),i={width:t.offsetWidth+a,height:t.offsetHeight+n};return i}function ss(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(r){return e[r]})}function eg(t,e,r){r=r.split("-")[0];var n=Jv(t),a={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,o=i?"top":"left",u=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return a[o]=e[o]+e[c]/2-n[c]/2,r===u?a[u]=e[u]-n[l]:a[u]=e[ss(u)],a}function Va(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function wE(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(a){return a[e]===r});var n=Va(t,function(a){return a[e]===r});return t.indexOf(n)}function tg(t,e,r){var n=r===void 0?t:t.slice(0,wE(t,"name",r));return n.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=a.function||a.fn;a.enabled&&Hv(i)&&(e.offsets.popper=Mr(e.offsets.popper),e.offsets.reference=Mr(e.offsets.reference),e=i(e,a))}),e}function SE(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Xv(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Qv(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=eg(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=tg(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function rg(t,e){return t.some(function(r){var n=r.name,a=r.enabled;return a&&n===e})}function dc(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var a=e[n],i=a?""+a+r:t;if(typeof document.body.style[i]!="undefined")return i}return null}function CE(){return this.state.isDestroyed=!0,rg(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[dc("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ng(t){var e=t.ownerDocument;return e?e.defaultView:window}function ag(t,e,r,n){var a=t.nodeName==="BODY",i=a?t.ownerDocument.defaultView:t;i.addEventListener(e,r,{passive:!0}),a||ag(Ha(i.parentNode),e,r,n),n.push(i)}function OE(t,e,r,n){r.updateBound=n,ng(t).addEventListener("resize",r.updateBound,{passive:!0});var a=Ha(t);return ag(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function kE(){this.state.eventsEnabled||(this.state=OE(this.reference,this.options,this.state,this.scheduleUpdate))}function xE(t,e){return ng(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(r){r.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function PE(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=xE(this.reference,this.state))}function fc(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function pc(t,e){Object.keys(e).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&fc(e[r])&&(n="px"),t.style[r]=e[r]+n})}function RE(t,e){Object.keys(e).forEach(function(r){var n=e[r];n!==!1?t.setAttribute(r,e[r]):t.removeAttribute(r)})}function DE(t){return pc(t.instance.popper,t.styles),RE(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&pc(t.arrowElement,t.arrowStyles),t}function AE(t,e,r,n,a){var i=Xv(a,e,t,r.positionFixed),o=Qv(r.placement,i,e,t,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return e.setAttribute("x-placement",o),pc(e,{position:r.positionFixed?"fixed":"absolute"}),r}function TE(t,e){var r=t.offsets,n=r.popper,a=r.reference,i=Math.round,o=Math.floor,u=function(m){return m},c=i(a.width),l=i(n.width),s=["left","right"].indexOf(t.placement)!==-1,d=t.placement.indexOf("-")!==-1,p=c%2===l%2,f=c%2===1&&l%2===1,h=e?s||d||p?i:o:u,v=e?i:u;return{left:h(f&&!d&&e?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:h(n.right)}}var EE=qa&&/Firefox/i.test(navigator.userAgent);function ME(t,e){var r=e.x,n=e.y,a=t.offsets.popper,i=Va(t.instance.modifiers,function(w){return w.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=i!==void 0?i:e.gpuAcceleration,u=$n(t.instance.popper),c=uc(u),l={position:a.position},s=TE(t,window.devicePixelRatio<2||!EE),d=r==="bottom"?"top":"bottom",p=n==="right"?"left":"right",f=dc("transform"),h=void 0,v=void 0;if(d==="bottom"?u.nodeName==="HTML"?v=-u.clientHeight+s.bottom:v=-c.height+s.bottom:v=s.top,p==="right"?u.nodeName==="HTML"?h=-u.clientWidth+s.right:h=-c.width+s.right:h=s.left,o&&f)l[f]="translate3d("+h+"px, "+v+"px, 0)",l[d]=0,l[p]=0,l.willChange="transform";else{var y=d==="bottom"?-1:1,m=p==="right"?-1:1;l[d]=v*y,l[p]=h*m,l.willChange=d+", "+p}var g={"x-placement":t.placement};return t.attributes=wt({},g,t.attributes),t.styles=wt({},l,t.styles),t.arrowStyles=wt({},t.offsets.arrow,t.arrowStyles),t}function ig(t,e,r){var n=Va(t,function(u){var c=u.name;return c===e}),a=!!n&&t.some(function(u){return u.name===r&&u.enabled&&u.order<n.order});if(!a){var i="`"+e+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function NE(t,e){var r;if(!ig(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if(typeof n=="string"){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var a=t.placement.split("-")[0],i=t.offsets,o=i.popper,u=i.reference,c=["left","right"].indexOf(a)!==-1,l=c?"height":"width",s=c?"Top":"Left",d=s.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",h=Jv(n)[l];u[f]-h<o[d]&&(t.offsets.popper[d]-=o[d]-(u[f]-h)),u[d]+h>o[f]&&(t.offsets.popper[d]+=u[d]+h-o[f]),t.offsets.popper=Mr(t.offsets.popper);var v=u[d]+u[l]/2-h/2,y=tn(t.instance.popper),m=parseFloat(y["margin"+s]),g=parseFloat(y["border"+s+"Width"]),w=v-t.offsets.popper[d]-m-g;return w=Math.max(Math.min(o[l]-h,w),0),t.arrowElement=n,t.offsets.arrow=(r={},Bn(r,d,Math.round(w)),Bn(r,p,""),r),t}function IE(t){return t==="end"?"start":t==="start"?"end":t}var og=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],hc=og.slice(3);function sg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=hc.indexOf(t),n=hc.slice(r+1).concat(hc.slice(0,r));return e?n.reverse():n}var mc={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function jE(t,e){if(rg(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=cc(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],a=ss(n),i=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case mc.FLIP:o=[n,a];break;case mc.CLOCKWISE:o=sg(n);break;case mc.COUNTERCLOCKWISE:o=sg(n,!0);break;default:o=e.behavior}return o.forEach(function(u,c){if(n!==u||o.length===c+1)return t;n=t.placement.split("-")[0],a=ss(n);var l=t.offsets.popper,s=t.offsets.reference,d=Math.floor,p=n==="left"&&d(l.right)>d(s.left)||n==="right"&&d(l.left)<d(s.right)||n==="top"&&d(l.bottom)>d(s.top)||n==="bottom"&&d(l.top)<d(s.bottom),f=d(l.left)<d(r.left),h=d(l.right)>d(r.right),v=d(l.top)<d(r.top),y=d(l.bottom)>d(r.bottom),m=n==="left"&&f||n==="right"&&h||n==="top"&&v||n==="bottom"&&y,g=["top","bottom"].indexOf(n)!==-1,w=!!e.flipVariations&&(g&&i==="start"&&f||g&&i==="end"&&h||!g&&i==="start"&&v||!g&&i==="end"&&y),S=!!e.flipVariationsByContent&&(g&&i==="start"&&h||g&&i==="end"&&f||!g&&i==="start"&&y||!g&&i==="end"&&v),k=w||S;(p||m||k)&&(t.flipped=!0,(p||m)&&(n=o[c+1]),k&&(i=IE(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=wt({},t.offsets.popper,eg(t.instance.popper,t.offsets.reference,t.placement)),t=tg(t.instance.modifiers,t,"flip"))}),t}function FE(t){var e=t.offsets,r=e.popper,n=e.reference,a=t.placement.split("-")[0],i=Math.floor,o=["top","bottom"].indexOf(a)!==-1,u=o?"right":"bottom",c=o?"left":"top",l=o?"width":"height";return r[u]<i(n[c])&&(t.offsets.popper[c]=i(n[c])-r[l]),r[c]>i(n[u])&&(t.offsets.popper[c]=i(n[u])),t}function $E(t,e,r,n){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return t;if(o.indexOf("%")===0){var u=void 0;switch(o){case"%p":u=r;break;case"%":case"%r":default:u=n}var c=Mr(u);return c[e]/100*i}else if(o==="vh"||o==="vw"){var l=void 0;return o==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*i}else return i}function LE(t,e,r,n){var a=[0,0],i=["right","left"].indexOf(n)!==-1,o=t.split(/(\+|\-)/).map(function(s){return s.trim()}),u=o.indexOf(Va(o,function(s){return s.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=u!==-1?[o.slice(0,u).concat([o[u].split(c)[0]]),[o[u].split(c)[1]].concat(o.slice(u+1))]:[o];return l=l.map(function(s,d){var p=(d===1?!i:i)?"height":"width",f=!1;return s.reduce(function(h,v){return h[h.length-1]===""&&["+","-"].indexOf(v)!==-1?(h[h.length-1]=v,f=!0,h):f?(h[h.length-1]+=v,f=!1,h):h.concat(v)},[]).map(function(h){return $E(h,p,e,r)})}),l.forEach(function(s,d){s.forEach(function(p,f){fc(p)&&(a[d]+=p*(s[f-1]==="-"?-1:1))})}),a}function BE(t,e){var r=e.offset,n=t.placement,a=t.offsets,i=a.popper,o=a.reference,u=n.split("-")[0],c=void 0;return fc(+r)?c=[+r,0]:c=LE(r,i,o,u),u==="left"?(i.top+=c[0],i.left-=c[1]):u==="right"?(i.top+=c[0],i.left+=c[1]):u==="top"?(i.left+=c[0],i.top-=c[1]):u==="bottom"&&(i.left+=c[0],i.top+=c[1]),t.popper=i,t}function qE(t,e){var r=e.boundariesElement||$n(t.instance.popper);t.instance.reference===r&&(r=$n(r));var n=dc("transform"),a=t.instance.popper.style,i=a.top,o=a.left,u=a[n];a.top="",a.left="",a[n]="";var c=cc(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);a.top=i,a.left=o,a[n]=u,e.boundaries=c;var l=e.priority,s=t.offsets.popper,d={primary:function(f){var h=s[f];return s[f]<c[f]&&!e.escapeWithReference&&(h=Math.max(s[f],c[f])),Bn({},f,h)},secondary:function(f){var h=f==="right"?"left":"top",v=s[h];return s[f]>c[f]&&!e.escapeWithReference&&(v=Math.min(s[h],c[f]-(f==="right"?s.width:s.height))),Bn({},h,v)}};return l.forEach(function(p){var f=["left","top"].indexOf(p)!==-1?"primary":"secondary";s=wt({},s,d[f](p))}),t.offsets.popper=s,t}function HE(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var a=t.offsets,i=a.reference,o=a.popper,u=["bottom","top"].indexOf(r)!==-1,c=u?"left":"top",l=u?"width":"height",s={start:Bn({},c,i[c]),end:Bn({},c,i[c]+i[l]-o[l])};t.offsets.popper=wt({},o,s[n])}return t}function VE(t){if(!ig(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=Va(t.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(e.bottom<r.top||e.left>r.right||e.top>r.bottom||e.right<r.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function zE(t){var e=t.placement,r=e.split("-")[0],n=t.offsets,a=n.popper,i=n.reference,o=["left","right"].indexOf(r)!==-1,u=["top","left"].indexOf(r)===-1;return a[o?"left":"top"]=i[r]-(u?a[o?"width":"height"]:0),t.placement=ss(e),t.offsets.popper=Mr(a),t}var UE={shift:{order:100,enabled:!0,fn:HE},offset:{order:200,enabled:!0,fn:BE,offset:0},preventOverflow:{order:300,enabled:!0,fn:qE,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:FE},arrow:{order:500,enabled:!0,fn:NE,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:jE,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:zE},hide:{order:800,enabled:!0,fn:VE},computeStyle:{order:850,enabled:!0,fn:ME,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:DE,onLoad:AE,gpuAcceleration:void 0}},YE={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:UE},us=function(){function t(e,r){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};gE(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=hE(this.update.bind(this)),this.options=wt({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(wt({},t.Defaults.modifiers,a.modifiers)).forEach(function(o){n.options.modifiers[o]=wt({},t.Defaults.modifiers[o]||{},a.modifiers?a.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return wt({name:o},n.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&Hv(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return _E(t,[{key:"update",value:function(){return SE.call(this)}},{key:"destroy",value:function(){return CE.call(this)}},{key:"enableEventListeners",value:function(){return kE.call(this)}},{key:"disableEventListeners",value:function(){return PE.call(this)}}]),t}();us.Utils=(typeof window!="undefined"?window:global).PopperUtils,us.placements=og,us.Defaults=YE;const WE=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"}));function GE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ug(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ZE(t,e,r){return e&&ug(t.prototype,e),r&&ug(t,r),t}var KE=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(GE(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));JA(this,t.Defaults,this.constructor.Defaults,r,{type:e}),Qm(this,{type:Dr(),cancelable:Dr(),nativeEvent:Dr(),target:Dr(),relatedTarget:Dr(),vueTarget:Dr(),componentId:Dr()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},eT(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return ZE(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),QE='Setting prop "options" to an object is deprecated. Use the array format instead.',lg=rt({options:{type:[Array,Object],default:function(){return[]}},valueField:{type:String,default:"value"},textField:{type:String,default:"text"},htmlField:{type:String,default:"html"},disabledField:{type:String,default:"disabled"}},"formOptionControls");const XE={props:lg,computed:{formOptions:function(){return this.normalizeOptions(this.options)}},methods:{normalizeOption:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Jr(e)){var n=Qo(e,this.valueField),a=Qo(e,this.textField);return{value:Tn(n)?r||a:n,text:Bv(String(Tn(a)?r:a)),html:Qo(e,this.htmlField),disabled:!!Qo(e,this.disabledField)}}return{value:r||e,text:Bv(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return Et(e)?e.map(function(n){return r.normalizeOption(n)}):Jr(e)?(tv(QE,this.$options.name),Mt(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}};var cg=function(e,r){for(var n=0;n<e.length;n++)if(Jt(e[n],r))return n;return-1};function dg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function JE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dg(Object(r),!0).forEach(function(n){eM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fg="input, textarea, select",ls=JE({id:{type:String},name:{type:String}},rt({disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1}},"formControls"));const vc={props:ls,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var e=this;this.$nextTick(function(){Nn(function(){var r=e.$el;e.autofocus&&hv(r)&&(mv(r,fg)||(r=Xl(fg,r)),Tr(r))})})}}};var gc=rt({plain:{type:Boolean,default:!1}},"formControls");const pg={props:gc,computed:{custom:function(){return!this.plain}}};function hg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function cs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hg(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _c=rt(cs(cs({},gc),{},{value:{},checked:{},inline:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String},ariaLabel:{type:String},ariaLabelledby:{type:String}}),"formRadioCheckControls");const mg={mixins:[ac,pg,Fa],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:_c,data:function(){return{localChecked:this.isGroup?this.bvGroup.checked:this.checked,hasFocus:!1}},computed:{computedLocalChecked:{get:function(){return this.isGroup?this.bvGroup.localChecked:this.localChecked},set:function(e){this.isGroup?this.bvGroup.localChecked=e:this.localChecked=e}},isGroup:function(){return!!this.bvGroup},isBtnMode:function(){return this.isGroup?this.bvGroup.buttons:this.button},isPlain:function(){return this.isBtnMode?!1:this.isGroup?this.bvGroup.plain:this.plain},isCustom:function(){return this.isBtnMode?!1:!this.isPlain},isSwitch:function(){return this.isBtnMode||this.isRadio||this.isPlain?!1:this.isGroup?this.bvGroup.switches:this.switch},isInline:function(){return this.isGroup?this.bvGroup.inline:this.inline},isDisabled:function(){return this.isGroup?this.bvGroup.disabled||this.disabled:this.disabled},isRequired:function(){return this.getName&&(this.isGroup?this.bvGroup.required:this.required)},getName:function(){return(this.isGroup?this.bvGroup.groupName:this.name)||null},getForm:function(){return(this.isGroup?this.bvGroup.form:this.form)||null},getSize:function(){return(this.isGroup?this.bvGroup.size:this.size)||""},getState:function(){return this.isGroup?this.bvGroup.computedState:this.computedState},getButtonVariant:function(){return this.buttonVariant?this.buttonVariant:this.isGroup&&this.bvGroup.buttonVariant?this.bvGroup.buttonVariant:"secondary"},buttonClasses:function(){var e;return["btn","btn-".concat(this.getButtonVariant),(e={},qn(e,"btn-".concat(this.getSize),this.getSize),qn(e,"disabled",this.isDisabled),qn(e,"active",this.isChecked),qn(e,"focus",this.hasFocus),e)]},computedAttrs:function(){return cs(cs({},this.bvAttrs),{},{id:this.safeId(),type:this.isRadio?"radio":"checkbox",name:this.getName,form:this.getForm,disabled:this.isDisabled,required:this.isRequired,"aria-required":this.isRequired||null,"aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||null})}},watch:{checked:function(e){Jt(e,this.computedLocalChecked)||(this.computedLocalChecked=e)}},methods:{handleFocus:function(e){e.target&&(e.type==="focus"?this.hasFocus=!0:e.type==="blur"&&(this.hasFocus=!1))},focus:function(){this.isDisabled||Tr(this.$refs.input)},blur:function(){this.isDisabled||gv(this.$refs.input)}},render:function(e){var r=this.normalizeSlot(),n={change:this.handleChange};this.isBtnMode&&(n.focus=n.blur=this.handleFocus);var a=e("input",{ref:"input",key:"input",on:n,class:{"form-check-input":this.isPlain,"custom-control-input":this.isCustom,"is-valid":this.getState===!0&&!this.isBtnMode,"is-invalid":this.getState===!1&&!this.isBtnMode,"position-static":this.isPlain&&!r},directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:this.computedAttrs,domProps:{value:this.value,checked:this.isChecked}});if(this.isBtnMode){var i=e("label",{class:this.buttonClasses},[a,r]);return this.isGroup||(i=e("div",{class:["btn-group-toggle","d-inline-block"]},[i])),i}else{var o=e();return this.isPlain&&!r||(o=e("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},r)),e("div",{class:qn({"form-check":this.isPlain,"form-check-inline":this.isPlain&&this.isInline,"custom-control":this.isCustom,"custom-control-inline":this.isCustom&&this.isInline,"custom-checkbox":this.isCustom&&this.isCheck&&!this.isSwitch,"custom-switch":this.isSwitch,"custom-radio":this.isCustom&&this.isRadio},"b-custom-control-".concat(this.getSize),!!(this.getSize&&!this.isBtnMode))},[a,o])}}};var ds=rt({size:{type:String}},"formControls");const yc={props:ds,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}};var fs=rt({state:{type:Boolean,default:null}},"formState");const bc={props:fs,computed:{computedState:function(){return Wl(this.state)?this.state:null},stateClass:function(){var e=this.computedState;return e===!0?"is-valid":e===!1?"is-invalid":null},computedAriaInvalid:function(){var e=this.ariaInvalid;return e===!0||e==="true"||e===""||this.computedState===!1?"true":e}}};function vg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function za(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vg(Object(r),!0).forEach(function(n){tM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function tM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rM=_.extend({name:av,mixins:[mg,is,vc,yc,bc],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:rt(za(za(za(za(za({},ls),_c),ds),fs),{},{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}}),av),computed:{isChecked:function(){var e=this.value,r=this.computedLocalChecked;return Et(r)?cg(r,e)>-1:Jt(r,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(e,r){if(!Jt(e,r)){this.$emit("input",e);var n=this.$refs.input;n&&this.$emit("update:indeterminate",n.indeterminate)}},indeterminate:function(e){this.setIndeterminate(e)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(e){var r=this,n=e.target,a=n.checked,i=n.indeterminate,o=this.value,u=this.uncheckedValue,c=this.computedLocalChecked;if(Et(c)){var l=cg(c,o);a&&l<0?c=c.concat(o):!a&&l>-1&&(c=c.slice(0,l).concat(c.slice(l+1)))}else c=a?o:u;this.computedLocalChecked=c,this.$nextTick(function(){r.$emit("change",c),r.isGroup&&r.bvGroup.$emit("change",c),r.$emit("update:indeterminate",i)})},setIndeterminate:function(e){Et(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit("update:indeterminate",e))}}});function gg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ua(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gg(Object(r),!0).forEach(function(n){nM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function nM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var aM=_.extend({name:iv,mixins:[is,mg,vc,yc,bc],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:rt(Ua(Ua(Ua(Ua(Ua({},ls),_c),ds),fs),{},{checked:{default:null}}),iv),computed:{isChecked:function(){return Jt(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(e,r){Jt(e,r)||this.$emit("input",e)}},methods:{handleChange:function(e){var r=this,n=e.target.checked,a=this.value,i=n?a:null;this.computedLocalChecked=a,this.$nextTick(function(){r.$emit("change",i),r.isGroup&&r.bvGroup.$emit("change",i)})}}});function _g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Hn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_g(Object(r),!0).forEach(function(n){yg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bg=rt(Hn(Hn(Hn(Hn(Hn(Hn({},ls),lg),ds),fs),gc),{},{checked:{default:null},validated:{type:Boolean,default:!1},ariaInvalid:{type:[Boolean,String],default:!1},stacked:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},buttonVariant:{type:String}}),"formRadioCheckGroups");const iM={mixins:[is,Fa,vc,XE,yc,bc,pg],model:{prop:"checked",event:"input"},props:bg,data:function(){return{localChecked:this.checked}},computed:{inline:function(){return!this.stacked},groupName:function(){return this.name||this.safeId()},groupClasses:function(){var e=this.inline,r=this.size,n=this.validated,a={"was-validated":n};return this.buttons&&(a=[a,"btn-group-toggle",yg({"btn-group":e,"btn-group-vertical":!e},"btn-group-".concat(r),!!r)]),a}},watch:{checked:function(e){Jt(e,this.localChecked)||(this.localChecked=e)},localChecked:function(e,r){Jt(e,r)||this.$emit("input",e)}},render:function(e){var r=this,n=this.isRadioGroup,a=n?aM:rM,i=this.formOptions.map(function(o,u){var c="BV_option_".concat(u);return e(a,{props:{id:r.safeId(c),value:o.value,disabled:o.disabled||!1},key:c},[e("span",{domProps:as(o.html,o.text)})])});return e("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:{id:this.safeId(),role:n?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot(MT),i,this.normalizeSlot()])}};var oM=rt(bg,ov),je=_.extend({name:ov,mixins:[iM],provide:function(){return{bvRadioGroup:this}},props:oM,computed:{isRadioGroup:function(){return!0}}}),sM=_.extend({abstract:!0,name:vT,props:{nodes:{type:[Array,Function]}},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){xT(this.$el)},render:function(e){var r=Xt(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return r=hr(r).filter(Boolean),r&&r.length>0&&!r[0].text?r[0]:e()}}),uM=_.extend({name:mT,mixins:[Fa],props:{disabled:{type:Boolean,default:!1},container:{type:[String,Ym],default:"body"},tag:{type:String,default:"div"}},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(ct){var e=this.container;return Xr(e)?Xl(e):e}else return null},mountTarget:function(){if(!this.$_target){var e=this.getContainer();if(e){var r=document.createElement("div");e.appendChild(r),this.$_target=new sM({el:r,parent:this,propsData:{nodes:hr(this.normalizeSlot())}})}}},updateTarget:function(){if(ct&&this.$_target){var e=this.$scopedSlots.default;this.disabled||(e&&this.$_defaultFn!==e?this.$_target.updatedNodes=e:e||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=e}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(e){if(this.disabled){var r=hr(this.normalizeSlot()).filter(Mn);if(r.length>0&&!r[0].text)return r[0]}return e()}}),Nt="$_bv_documentHandlers_";const lM={created:function(){var e=this;ct&&(this[Nt]={},this.$once("hook:beforeDestroy",function(){var r=e[Nt]||{};delete e[Nt],Mt(r).forEach(function(n){var a=r[n]||[];a.forEach(function(i){return $a(document,n,i,Er)})})}))},methods:{listenDocument:function(e,r,n){e?this.listenOnDocument(r,n):this.listenOffDocument(r,n)},listenOnDocument:function(e,r){this[Nt]&&Xr(e)&&Xt(r)&&(this[Nt][e]=this[Nt][e]||[],Ql(this[Nt][e],r)||(this[Nt][e].push(r),nc(document,e,r,Er)))},listenOffDocument:function(e,r){this[Nt]&&Xr(e)&&Xt(r)&&($a(document,e,r,Er),this[Nt][e]=(this[Nt][e]||[]).filter(function(n){return n!==r}))}}};var It="$_bv_windowHandlers_";const cM={beforeCreate:function(){this[It]={}},beforeDestroy:function(){if(ct){var e=this[It];delete this[It],Mt(e).forEach(function(r){var n=e[r]||[];n.forEach(function(a){return $a(window,r,a,Er)})})}},methods:{listenWindow:function(e,r,n){e?this.listenOnWindow(r,n):this.listenOffWindow(r,n)},listenOnWindow:function(e,r){ct&&this[It]&&Xr(e)&&Xt(r)&&(this[It][e]=this[It][e]||[],Ql(this[It][e],r)||(this[It][e].push(r),nc(window,e,r,Er)))},listenOffWindow:function(e,r){ct&&this[It]&&Xr(e)&&Xt(r)&&($a(window,e,r,Er),this[It][e]=(this[It][e]||[]).filter(function(n){return n!==r}))}}};var dM=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function fM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const pM={computed:{scopedStyleAttrs:function(){var e=dM(this.$parent);return e?fM({},e,""):{}}}};var wg=1040,wc={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},hM=_.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(e,r){ct&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),Ea(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),vv(document.body,"modal-open")),Ma(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),Nn(function(){r.updateModals(e||[])})}},methods:{registerModal:function(e){var r=this;e&&this.modals.indexOf(e)===-1&&(this.modals.push(e),e.$once("hook:beforeDestroy",function(){r.unregisterModal(e)}))},unregisterModal:function(e){var r=this.modals.indexOf(e);r>-1&&(this.modals.splice(r,1),e._isBeingDestroyed||e._isDestroyed||this.resetModal(e))},getBaseZIndex:function(){if(Rr(this.baseZIndex)&&ct){var e=document.createElement("div");Ea(e,"modal-backdrop"),Ea(e,"d-none"),Ar(e,"display","none"),document.body.appendChild(e),this.baseZIndex=wT(Ia(e).zIndex,wg),document.body.removeChild(e)}return this.baseZIndex||wg},getScrollbarWidth:function(){if(Rr(this.scrollbarWidth)&&ct){var e=document.createElement("div");Ea(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=rc(e).width-e.clientWidth,document.body.removeChild(e)}return this.scrollbarWidth||0},updateModals:function(e){var r=this,n=this.getBaseZIndex(),a=this.getScrollbarWidth();e.forEach(function(i,o){i.zIndex=n+o,i.scrollbarWidth=a,i.isTop=o===r.modals.length-1,i.isBodyOverflowing=r.isBodyOverflowing})},resetModal:function(e){e&&(e.zIndex=this.getBaseZIndex(),e.isTop=!0,e.isBodyOverflowing=!1)},checkScrollbar:function(){var e=rc(document.body),r=e.left,n=e.right;this.isBodyOverflowing=r+n<window.innerWidth},setScrollbar:function(){var e=document.body;if(e._paddingChangedForModal=e._paddingChangedForModal||[],e._marginChangedForModal=e._marginChangedForModal||[],this.isBodyOverflowing){var r=this.scrollbarWidth;rs(wc.FIXED_CONTENT).forEach(function(a){var i=Na(a,"paddingRight")||"";Ma(a,"data-padding-right",i),Ar(a,"paddingRight","".concat(Xo(Ia(a).paddingRight,0)+r,"px")),e._paddingChangedForModal.push(a)}),rs(wc.STICKY_CONTENT).forEach(function(a){var i=Na(a,"marginRight")||"";Ma(a,"data-margin-right",i),Ar(a,"marginRight","".concat(Xo(Ia(a).marginRight,0)-r,"px")),e._marginChangedForModal.push(a)}),rs(wc.NAVBAR_TOGGLER).forEach(function(a){var i=Na(a,"marginRight")||"";Ma(a,"data-margin-right",i),Ar(a,"marginRight","".concat(Xo(Ia(a).marginRight,0)+r,"px")),e._marginChangedForModal.push(a)});var n=Na(e,"paddingRight")||"";Ma(e,"data-padding-right",n),Ar(e,"paddingRight","".concat(Xo(Ia(e).paddingRight,0)+r,"px"))}},resetScrollbar:function(){var e=document.body;e._paddingChangedForModal&&e._paddingChangedForModal.forEach(function(r){tc(r,"data-padding-right")&&(Ar(r,"paddingRight",ec(r,"data-padding-right")||""),Jl(r,"data-padding-right"))}),e._marginChangedForModal&&e._marginChangedForModal.forEach(function(r){tc(r,"data-margin-right")&&(Ar(r,"marginRight",ec(r,"data-margin-right")||""),Jl(r,"data-margin-right"))}),e._paddingChangedForModal=null,e._marginChangedForModal=null,tc(e,"data-padding-right")&&(Ar(e,"paddingRight",ec(e,"data-padding-right")||""),Jl(e,"data-padding-right"))}}}),Ya=new hM;function ps(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ps=function(r){return typeof r}:ps=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ps(t)}function Sg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Cg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sg(Object(r),!0).forEach(function(n){mM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Og(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gM(t,e,r){return e&&Og(t.prototype,e),r&&Og(t,r),t}function hs(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?hs=Reflect.get:hs=function(a,i,o){var u=_M(a,i);if(u){var c=Object.getOwnPropertyDescriptor(u,i);return c.get?c.get.call(o):c.value}},hs(t,e,r||t)}function _M(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Vn(t),t!==null););return t}function yM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sc(t,e)}function Sc(t,e){return Sc=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Sc(t,e)}function bM(t){var e=SM();return function(){var n=Vn(t),a;if(e){var i=Vn(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return wM(this,a)}}function wM(t,e){return e&&(ps(e)==="object"||typeof e=="function")?e:kg(t)}function kg(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Vn(t){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vn(t)}var CM=function(t){yM(r,t);var e=bM(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return vM(this,r),a=e.call(this,n,i),Qm(kg(a),{trigger:Dr()}),a}return gM(r,null,[{key:"Defaults",get:function(){return Cg(Cg({},hs(Vn(r),"Defaults",this)),{},{trigger:null})}}]),r}(KE);function xg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xg(Object(r),!0).forEach(function(n){St(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function St(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var OM={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},kM=rt({size:{type:String,default:"md"},centered:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},buttonSize:{type:String},noStacking:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noEnforceFocus:{type:Boolean,default:!1},ignoreEnforceFocusSelector:{type:[Array,String],default:""},title:{type:String,default:""},titleHtml:{type:String},titleTag:{type:String,default:"h5"},titleClass:{type:[String,Array,Object]},titleSrOnly:{type:Boolean,default:!1},ariaLabel:{type:String},headerBgVariant:{type:String},headerBorderVariant:{type:String},headerTextVariant:{type:String},headerCloseVariant:{type:String},headerClass:{type:[String,Array,Object]},bodyBgVariant:{type:String},bodyTextVariant:{type:String},modalClass:{type:[String,Array,Object]},dialogClass:{type:[String,Array,Object]},contentClass:{type:[String,Array,Object]},bodyClass:{type:[String,Array,Object]},footerBgVariant:{type:String},footerBorderVariant:{type:String},footerTextVariant:{type:String},footerClass:{type:[String,Array,Object]},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},hideBackdrop:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},okDisabled:{type:Boolean,default:!1},cancelDisabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},returnFocus:{type:[Ym,String,Object],default:null},headerCloseContent:{type:String,default:"&times;"},headerCloseLabel:{type:String,default:"Close"},cancelTitle:{type:String,default:"Cancel"},cancelTitleHtml:{type:String},okTitle:{type:String,default:"OK"},okTitleHtml:{type:String},cancelVariant:{type:String,default:"secondary"},okVariant:{type:String,default:"primary"},lazy:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},static:{type:Boolean,default:!1},autoFocusButton:{type:String,default:null,validator:function(e){return Zo(e)||Ql(["ok","cancel","close"],e)}}},uv),Cc=_.extend({name:uv,mixins:[ac,is,lM,lE,cM,Fa,pM],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:kM,data:function(){return{isHidden:!0,isVisible:!1,isTransitioning:!1,isShow:!1,isBlock:!1,isOpening:!1,isClosing:!1,ignoreBackdropClick:!1,isModalOverflowing:!1,return_focus:this.returnFocus||null,scrollbarWidth:0,zIndex:Ya.getBaseZIndex(),isTop:!0,isBodyOverflowing:!1}},computed:{modalId:function(){return this.safeId()},modalOuterId:function(){return this.safeId("__BV_modal_outer_")},modalHeaderId:function(){return this.safeId("__BV_modal_header_")},modalBodyId:function(){return this.safeId("__BV_modal_body_")},modalTitleId:function(){return this.safeId("__BV_modal_title_")},modalContentId:function(){return this.safeId("__BV_modal_content_")},modalFooterId:function(){return this.safeId("__BV_modal_footer_")},modalBackdropId:function(){return this.safeId("__BV_modal_backdrop_")},modalClasses:function(){return[{fade:!this.noFade,show:this.isShow},this.modalClass]},modalStyles:function(){var e="".concat(this.scrollbarWidth,"px");return{paddingLeft:!this.isBodyOverflowing&&this.isModalOverflowing?e:"",paddingRight:this.isBodyOverflowing&&!this.isModalOverflowing?e:"",display:this.isBlock?"block":"none"}},dialogClasses:function(){var e;return[(e={},St(e,"modal-".concat(this.size),this.size),St(e,"modal-dialog-centered",this.centered),St(e,"modal-dialog-scrollable",this.scrollable),e),this.dialogClass]},headerClasses:function(){var e;return[(e={},St(e,"bg-".concat(this.headerBgVariant),this.headerBgVariant),St(e,"text-".concat(this.headerTextVariant),this.headerTextVariant),St(e,"border-".concat(this.headerBorderVariant),this.headerBorderVariant),e),this.headerClass]},titleClasses:function(){return[{"sr-only":this.titleSrOnly},this.titleClass]},bodyClasses:function(){var e;return[(e={},St(e,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),St(e,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),e),this.bodyClass]},footerClasses:function(){var e;return[(e={},St(e,"bg-".concat(this.footerBgVariant),this.footerBgVariant),St(e,"text-".concat(this.footerTextVariant),this.footerTextVariant),St(e,"border-".concat(this.footerBorderVariant),this.footerBorderVariant),e),this.footerClass]},modalOuterStyle:function(){return{position:"absolute",zIndex:this.zIndex}},slotScope:function(){return{ok:this.onOk,cancel:this.onCancel,close:this.onClose,hide:this.hide,visible:this.isVisible}},computeIgnoreEnforceFocusSelector:function(){return hr(this.ignoreEnforceFocusSelector).filter(Mn).join(",").trim()},computedAttrs:function(){var e=this.static?{}:this.scopedStyleAttrs;return Wa(Wa(Wa({},e),this.bvAttrs),{},{id:this.modalOuterId})},computedModalAttrs:function(){var e=this.isVisible,r=this.ariaLabel;return{id:this.modalId,role:"dialog","aria-hidden":e?null:"true","aria-modal":e?"true":null,"aria-label":r,"aria-labelledby":this.hideHeader||r||!(this.hasNormalizedSlot("modal-title")||this.titleHtml||this.title)?null:this.modalTitleId,"aria-describedby":this.modalBodyId}}},watch:{visible:function(e,r){e!==r&&this[e?"show":"hide"]()}},created:function(){this.$_observer=null},mounted:function(){this.zIndex=Ya.getBaseZIndex(),this.listenOnRoot("bv::show::modal",this.showHandler),this.listenOnRoot("bv::hide::modal",this.hideHandler),this.listenOnRoot("bv::toggle::modal",this.toggleHandler),this.listenOnRoot("bv::modal::show",this.modalListener),this.visible===!0&&this.$nextTick(this.show)},beforeDestroy:function(){this.setObserver(!1),this.isVisible&&(this.isVisible=!1,this.isShow=!1,this.isTransitioning=!1)},methods:{setObserver:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=uE(this.$refs.content,this.checkModalOverflow.bind(this),OM))},updateModel:function(e){e!==this.visible&&this.$emit("change",e)},buildEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new CM(e,Wa(Wa({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},r),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!(this.isVisible||this.isOpening)){if(this.isClosing){this.$once("hidden",this.show);return}this.isOpening=!0,this.return_focus=this.return_focus||this.getActiveElement();var e=this.buildEvent("show",{cancelable:!0});if(this.emitEvent(e),e.defaultPrevented||this.isVisible){this.isOpening=!1,this.updateModel(!1);return}this.doShow()}},hide:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(!(!this.isVisible||this.isClosing)){this.isClosing=!0;var r=this.buildEvent("hide",{cancelable:e!=="FORCE",trigger:e||null});if(e==="ok"?this.$emit("ok",r):e==="cancel"?this.$emit("cancel",r):e==="headerclose"&&this.$emit("close",r),this.emitEvent(r),r.defaultPrevented||!this.isVisible){this.isClosing=!1,this.updateModel(!0);return}this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(e){e&&(this.return_focus=e),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){var e=fv(ct?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(Ya.modalsAreOpen&&this.noStacking){this.listenOnRootOnce("bv::modal::hidden",this.doShow);return}Ya.registerModal(this),this.isHidden=!1,this.$nextTick(function(){e.isVisible=!0,e.isOpening=!1,e.updateModel(!0),e.$nextTick(function(){e.setObserver(!0)})})},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var e=this;this.isBlock=!0,Nn(function(){Nn(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,Nn(function(){e.emitEvent(e.buildEvent("shown")),e.setEnforceFocus(!0),e.$nextTick(function(){e.focusFirst()})})},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var e=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick(function(){e.isClosing=!1,Ya.unregisterModal(e),e.returnFocusTo(),e.emitEvent(e.buildEvent("hidden"))})},emitEvent:function(e){var r=e.type;this.emitOnRoot("bv::modal::".concat(r),e,e.componentId),this.$emit(r,e)},onDialogMousedown:function(){var e=this,r=this.$refs.modal,n=function a(i){$a(r,"mouseup",a,Er),i.target===r&&(e.ignoreBackdropClick=!0)};nc(r,"mouseup",n,Er)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!Ta(document.body,e.target)||Ta(this.$refs.content,e.target)||this.hide("backdrop")},onOk:function(){this.hide("ok")},onCancel:function(){this.hide("cancel")},onClose:function(){this.hide("headerclose")},onEsc:function(e){e.keyCode===zT&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(e){var r=this.$refs.content,n=e.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!r||document===n||Ta(r,n)||this.computeIgnoreEnforceFocusSelector&&PT(this.computeIgnoreEnforceFocusSelector,n,!0))){var a=RT(this.$refs.content),i=this.$refs,o=i.bottomTrap,u=i.topTrap;if(o&&n===o){if(Tr(a[0]))return}else if(u&&n===u&&Tr(a[a.length-1]))return;Tr(r,{preventScroll:!0})}},setEnforceFocus:function(e){this.listenDocument(e,"focusin",this.focusHandler)},setResizeEvent:function(e){this.listenWindow(e,"resize",this.checkModalOverflow),this.listenWindow(e,"orientationchange",this.checkModalOverflow)},showHandler:function(e,r){e===this.modalId&&(this.return_focus=r||this.getActiveElement(),this.show())},hideHandler:function(e){e===this.modalId&&this.hide("event")},toggleHandler:function(e,r){e===this.modalId&&this.toggle(r)},modalListener:function(e){this.noStacking&&e.vueTarget!==this&&this.hide()},focusFirst:function(){var e=this;ct&&Nn(function(){var r=e.$refs.modal,n=e.$refs.content,a=e.getActiveElement();if(r&&n&&!(a&&Ta(n,a))){var i=e.$refs["ok-button"],o=e.$refs["cancel-button"],u=e.$refs["close-button"],c=e.autoFocusButton,l=c==="ok"&&i?i.$el||i:c==="cancel"&&o?o.$el||o:c==="close"&&u?u.$el||u:n;Tr(l),l===n&&e.$nextTick(function(){r.scrollTop=0})}})},returnFocusTo:function(){var e=this.returnFocus||this.return_focus||null;this.return_focus=null,this.$nextTick(function(){e=Xr(e)?Xl(e):e,e&&(e=e.$el||e,Tr(e))})},checkModalOverflow:function(){if(this.isVisible){var e=this.$refs.modal;this.isModalOverflowing=e.scrollHeight>document.documentElement.clientHeight}},makeModal:function(e){var r=e();if(!this.hideHeader){var n=this.normalizeSlot("modal-header",this.slotScope);if(!n){var a=e();this.hideHeaderClose||(a=e(jT,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot("modal-header-close")])),n=[e(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot("modal-title")?{}:as(this.titleHtml,this.title)},this.normalizeSlot("modal-title",this.slotScope)),a]}r=e("header",{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var i=e("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(ja,this.slotScope)),o=e();if(!this.hideFooter){var u=this.normalizeSlot("modal-footer",this.slotScope);if(!u){var c=e();this.okOnly||(c=e(Lv,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:as(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=e(Lv,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:as(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));u=[c,l]}o=e("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[u])}var s=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[r,i,o]),d=e(),p=e();this.isVisible&&!this.noEnforceFocus&&(d=e("span",{ref:"topTrap",attrs:{tabindex:"0"}}),p=e("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,s,p]),h=e("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);h=e("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[h]);var v=e();return!this.hideBackdrop&&this.isVisible&&(v=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),v=e(ET,{props:{noFade:this.noFade}},[v]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[h,v])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(uM,[this.makeModal(e)])}});const xM=_.defineComponent({name:"BikeForm",components:{SimpleCard:U,DefaultSelect:se,DefaultInput:ee,ZipcodeInput:Dn,BirthdateInput:Ce,ErrorHandler:Y,BFormRadioGroup:je},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:P.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=$l(t,e);return{bikeState:Tt,userState:C,bikeKinds:Ll,bikeConditions:Bl,errors:H,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Pg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("default-select",{class:{"select-empty-value":!e.bikeState.kind},attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Maak een keuze",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},PM=[];Pg._withStripped=!0;var Rg=T(xM,Pg,PM,!1,null,null,null,null);Rg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/bike/components/forms/BikeForm.vue";const RM=Rg.exports,DM=_.defineComponent({name:"BikeFormHorizontal",components:{SimpleCard:U,DefaultSelect:se,DefaultInput:ee,ZipcodeInput:Dn,BirthdateInput:Ce,ErrorHandler:Y,BFormRadioGroup:je},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:P.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=$l(t,e);return{bikeState:Tt,userState:C,bikeKinds:Ll,bikeConditions:Bl,errors:H,hasNewDesign:F,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Dg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-bike"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons mt-md-3 mt-xl-0",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer"},[e._v(" Vergelijken ")])])],1)])])},AM=[];Dg._withStripped=!0;var Ag=T(DM,Dg,AM,!1,null,null,null,null);Ag.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/bike/components/forms/BikeFormHorizontal.vue";const TM=Ag.exports,EM=_.defineComponent({name:"BikeFormOld",components:{SimpleCard:U,DefaultSelect:se,DefaultInput:ee,ZipcodeInput:Dn,BirthdateInput:Ce,ErrorHandler:Y,BFormRadioGroup:je},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:P.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=$l(t,e);return{bikeState:Tt,userState:C,bikeKinds:Ll,bikeConditions:Bl,errors:H,hasNewDesign:F,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Tg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-card",class:{[e.classes]:!!e.classes}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content"},[r("div",{staticClass:"vd-form-group"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[e.errors.has("kind:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Selecteer je fiets ")]):e._e()]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}})],1),r("div",{staticClass:"vd-form-group"},[r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}})],1),r("div",{staticClass:"vd-form-group"},[e._m(0),r("b-form-radio-group",{attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),e.hasBikeConditionError?r("p",{staticClass:"vd-form-error"},[e._v(" Is je fiets nieuw of tweedehands gekocht? ")]):e._e()],1),r("div",{staticClass:"vd-form-group"},[r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[e.errors.has("price:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Vul de aankoopprijs in (afgerond bedrag) ")]):e._e()])],2)],1),r("button",{staticClass:"btn-a btn-a--success btn-a--bold btn-block mt-2"},[e._v(" Vergelijken ")])])])])},MM=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[t._v(" Gekocht als "),e("span",{staticClass:"text-danger mr-3 mt-2"},[t._v("*")])])}];Tg._withStripped=!0;var Eg=T(EM,Tg,MM,!1,null,null,null,null);Eg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/bike/components/forms/BikeFormOld.vue";const NM=Eg.exports,IM=t=>{const e=t.find(l=>l.type==="bezoekadres"),{huisnummer:r,huisletter:n="",huisnummerToevoeging:a="",plaats:i,postcode:o,straatnaam:u}=e;return{houseNumber:r,houseNumberAddition:n||a,city:i,zipCode:o,streetName:u}},Oc=()=>{const t=lt.companyData,e=t._embedded.hoofdvestiging.adressen,r=IM(e),n=t.sbiActiviteiten,{mainSbiCode:a,otherSbiCodes:i}=n.reduce((u,c)=>(c.indHoofdactiviteit==="Ja"?u.mainSbiCode=c.sbiCode:u.otherSbiCodes.push(c.sbiCode),u),{mainSbiCode:null,otherSbiCodes:[]}),o={name:t.naam,kvkNumber:t.kvkNummer,industry:t.sbiIndustryId,numberOfEmployees:t.totaalWerkzamePersonen,legalForm:t._embedded.eigenaar.rechtsvorm,mainSBI:a,otherSBI:i};return pt(pt({},o),r)},jM=()=>{const t={name:"car",data:Ee},e={name:"companyData",data:Oc()};return[t,e]};function FM(t,e,r,n=!1){const a=n&&typeof r=="string"?r.toLowerCase():r;return t.find(i=>(n&&typeof r=="string"?i[e].toLowerCase():i[e])===a)}function rn(t){if(t.length===1)return t;const e=[];for(const r of t)e.some(n=>JSON.stringify(r)===JSON.stringify(n))||e.push(r);return e}const kc=_.ref(!1),Mg=(t,e)=>{const r=_.ref(!1);let n=_.ref(!1);const{submitFormAndUpdateFormData:a,submitFormAndCreateComparison:i,removeSessionState:o,openQuotationModal:u}=Xe(e),c=()=>`${t.link}#/<<COMPARISONID>>`,l=()=>{Object.assign(Ee,t.insuranceState)},s=()=>{kc.value=!1},d=()=>{kc.value=!0},p=()=>N(this,null,function*(){return r.value=!Object.keys(lt.companyData).length||!lt.companyData.naam,(yield Be(["license","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!kc.value&&!r.value});function f(){return N(this,null,function*(){try{if(yield p())if(t.formLocation===P.isOnCoveragePage){const v=Oc();a({companyData:v,carState:Ee})}else yield i("car-business",jM(),c())}catch(v){h(v)}})}const h=v=>{console.error(v);const y=Oc();z.refId="192",z.notes.push({text:"Kan geen comparison ID aanmaken voor zakelijk autoverzekering vergelijking"}),z.notes.push({text:`Kenteken: ${Ee.LicensePlate} | Postcode: ${y.zipCode} | Huisnummer: ${y.houseNumber} | Huisnummer toevoeging: ${y.houseNumberAddition}`}),z.notes=rn(z.notes),u()};return _.onMounted(()=>{n.value=!0,t.formLocation===P.isOnCoveragePage&&l(),t.formLocation===P.isBeforeFlow&&o("car-business-storage","car-business-path")}),{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:f}};function $M(t){return t=t.split("-").join(""),t}function LM(t,e){return t.split("").reduce((r,n,a)=>(n===e&&r.push(a),r),[])}function BM(t){const e=parseInt(t);return!!(e==0||e&&!isNaN(e))}const xc=["XX-99-XX","99-99-XX","99-XX-XX","XX-XX-99","99-XX-99","XX-99-99","99-XXX-9","XX-999-X","X-999-XX","9-XXX-99","XXX-99-X","X-99-XXX","9-XX-999","999-XX-9"];function ms(t){let e="";if(e=$M(t),e.length>=6){const r=HM(e).join("");let n=[];for(let a=0;a<xc.length;a++){const i=xc[a],o=i.split("-").join("");if(o===r){n=o.split(""),n=qM(i,n,e);break}if(xc.length===a+1)return"no-template-found"}if(n.length===8)return n.join("")}return e}function qM(t,e,r){return e.map((n,a)=>e[a]=r[a]),LM(t,"-").forEach(n=>e.splice(n,0,"-")),e}function HM(t){let e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&(BM(n)?e=[...e,"9"]:e=[...e,"X"])}return e}const VM=_.defineComponent({name:"LicensePlate",components:{ErrorHandler:Y},props:{label:{type:String,required:!1,default:"Kenteken"},name:{type:String,required:!0},placeholder:{type:String,required:!1,default:""},id:{type:String,required:!0},disabled:{type:Boolean,required:!1,default:!1},value:{type:String,required:!0},vehicleTypes:{type:Array[String],required:!1,default:()=>[]},insuranceDutchNaming:{type:String,required:!0},propVehicleInformation:{required:!1,default:()=>{}},vehicleType:{type:String,required:!0,validator:t=>["motor","car","moped"].includes(t)}},setup(t,{emit:e}){let r=_.ref("");const n=_.ref({});let a=_.ref(!1),i=_.ref(!1),o=_.ref(!1),u=_.ref(!1),c=_.ref(!1);const l={motor:"fa-motorcycle",car:"fa-car",Brommobiel:"fa-car-side","Speed Pedelec":"fa-bicycle"},s=_.computed(()=>[{rule:"required",text:"Dit veld is verplicht"},{rule:"minlength",text:"Kenteken is incorrect"},{rule:p.value,text:"Kenteken is incorrect"},{rule:u.value,text:"Kenteken is incorrect"},{rule:o.value,text:"Kenteken onbekend"},{rule:i.value,text:`Het ingevoerde kenteken is geen ${t.insuranceDutchNaming.toLowerCase()}`},{rule:!a.value&&h(t.value)&&!n.value.VehicleType&&Object.keys(n.value).length!==0,text:"Voertuig onbekend - Voer ander kenteken in of neem contact op"}]),d=_.computed(()=>o.value||i.value||p.value),p=_.computed(()=>ms(r.value)==="no-template-found"&&h(r.value)),f=_.computed(()=>!a.value&&n.value.Brand&&n.value.Model&&t.vehicleTypes.includes(n.value.VehicleType)&&t.value.length>=6&&!H.has(t.name)&&!p.value&&!u.value),h=k=>k.length===8,v=k=>{c.value=!0,e("focus")},y=k=>{c.value=!1,e("blur");let A=k.srcElement.name;const $=J.fields.find({name:A});($!==null||$!==void 0&&$)&&J.validate($.name)},m=(k,A,$)=>{A==="input"&&(o.value=!1,u.value=!1),k||(i.value=!1),k.length<8&&(n.value={});let L=ms(k);if(L==="no-template-found"){r.value=k,J.validate(t.name),e(A,k),e("on-error");return}e(A,L.toUpperCase()),r.value=L.toUpperCase(),h(L)&&A==="input"&&(J.validate(t.name),$&&S(L.toUpperCase()))},g=k=>{u.value=!1;let A=(k.clipboardData||window.clipboardData).getData("text");if(A=A.trim(),typeof A=="string"&&A){let $=ms(A);if($==="no-template-found"){r.value=A,e("input",A),e("on-error"),k.preventDefault();return}e("input",$.toUpperCase()),r.value=$.toUpperCase(),e("license-correct"),h($)&&(J.validate(t.name),S($.toUpperCase())),k.preventDefault()}},w=(k,A)=>N(this,null,function*(){const $=k.toLocaleLowerCase(),L=yield $e.dataService.findVehicle(A,$);return L||null}),S=k=>N(this,null,function*(){try{j.value=!0,a.value=!0,i.value=!1,o.value=!1,n.value={};let A=yield w(t.vehicleType,k);if(Array.isArray(A)&&!A.length){a.value=!1,o.value=!0,J.validate("unknownLicensePlateHiddenField");return}if(t.vehicleTypes.length!==0&&!t.vehicleTypes.includes(A.VehicleType)){e("incorrect-vehicle-type"),i.value=!0,a.value=!1,J.validate("incorrectLicensePlateHiddenField"),J.validate("noLicensePlateHiddenField"),J.validate("unknownLicensePlateHiddenField");return}n.value=A,e("on-vehicle-information-update",A),a.value=!1}catch(A){u.value=!0,a.value=!1,J.validate("unknownLicensePlateHiddenField"),console.error(A)}finally{j.value=!1}});return _.onMounted(()=>{_.nextTick(()=>{if(r.value=t.value,!r.value)return;let k=!0;h(ms(r.value))&&Object.keys(t.propVehicleInformation).length!==0&&(n.value=t.propVehicleInformation,J.validate(t.name),k=!1),m(r.value,"input",k)})}),{errors:H,userState:C,motorState:fr,hasNewDesign:F,isRequestIsHandling:j,license:r,vehicleInformation:n,isLicenseUnknown:o,isLicenseTemplateIncorrect:p,isRetrievingVehicleInformation:a,incorrectLicensePlate:i,isLicensePlateCantBeRetrieved:u,vehicleIcons:l,errorsData:s,isVehicleInfoShowed:f,isFocused:c,hasLicensePlateAnyErrors:d,isLicenseFull:h,resetFieldValidation:v,validateField:y,onPasteEvent:g,retrieveLicensePlateInformation:S,setValue:m}}}),zM="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.3%204.49961C12.3%204.00086%2012.7012%203.59961%2013.2%203.59961H14.7487C15.6412%203.59961%2016.44%204.16586%2016.7325%205.00961L17.0362%205.88336L18.9487%204.92711C19.1137%204.84461%2019.2975%204.79961%2019.485%204.79961H19.8C20.13%204.79961%2020.4%205.06961%2020.4%205.39961V7.79961C20.4%208.12961%2020.13%208.39961%2019.8%208.39961H19.485C19.2975%208.39961%2019.1137%208.35461%2018.9487%208.27211L17.64%207.61586L18.75%2010.8146C18.9%2010.8034%2019.05%2010.7996%2019.2%2010.7996C20.8387%2010.7996%2022.3237%2011.4559%2023.4037%2012.5171C23.76%2012.8659%2023.7637%2013.4359%2023.415%2013.7884C23.0662%2014.1409%2022.4962%2014.1484%2022.1437%2013.7996C21.3825%2013.0571%2020.3475%2012.5996%2019.2%2012.5996C17.1337%2012.5996%2015.4125%2014.0921%2015.0637%2016.0609C14.9887%2016.4921%2014.6137%2016.8034%2014.1787%2016.8034H12.6C12.5662%2016.8034%2012.5362%2016.8034%2012.5025%2016.7996H9.6C9.6%2018.7871%207.9875%2020.3996%206%2020.3996C4.0125%2020.3996%202.4%2018.7871%202.4%2016.7996H1.2C0.53625%2016.7996%200%2016.2634%200%2015.5996V14.3996C0%2011.7484%202.14875%209.59961%204.8%209.59961H8.4C9.06375%209.59961%209.6%2010.1359%209.6%2010.7996V13.1996C9.6%2013.8634%2010.1362%2014.3996%2010.8%2014.3996H13.6987C14.3287%2012.9559%2015.5137%2011.8046%2016.9837%2011.2234L15.03%205.60211C14.9887%205.48211%2014.8725%205.39961%2014.745%205.39961H13.2C12.7012%205.39961%2012.3%204.99836%2012.3%204.49961ZM4.8%205.99961H8.4C9.06375%205.99961%209.6%206.53586%209.6%207.19961C9.6%207.86336%209.06375%208.39961%208.4%208.39961H4.8C4.13625%208.39961%203.6%207.86336%203.6%207.19961C3.6%206.53586%204.13625%205.99961%204.8%205.99961ZM6%2018.5996C6.99375%2018.5996%207.8%2017.7934%207.8%2016.7996H4.2C4.2%2017.7934%205.00625%2018.5996%206%2018.5996ZM19.2%2018.5996C19.6774%2018.5996%2020.1352%2018.41%2020.4728%2018.0724C20.8104%2017.7348%2021%2017.277%2021%2016.7996C21%2016.3222%2020.8104%2015.8644%2020.4728%2015.5268C20.1352%2015.1893%2019.6774%2014.9996%2019.2%2014.9996C18.7226%2014.9996%2018.2648%2015.1893%2017.9272%2015.5268C17.5896%2015.8644%2017.4%2016.3222%2017.4%2016.7996C17.4%2017.277%2017.5896%2017.7348%2017.9272%2018.0724C18.2648%2018.41%2018.7226%2018.5996%2019.2%2018.5996ZM19.2%2013.1996C20.1548%2013.1996%2021.0705%2013.5789%2021.7456%2014.254C22.4207%2014.9292%2022.8%2015.8448%2022.8%2016.7996C22.8%2017.7544%2022.4207%2018.6701%2021.7456%2019.3452C21.0705%2020.0203%2020.1548%2020.3996%2019.2%2020.3996C18.2452%2020.3996%2017.3295%2020.0203%2016.6544%2019.3452C15.9793%2018.6701%2015.6%2017.7544%2015.6%2016.7996C15.6%2015.8448%2015.9793%2014.9292%2016.6544%2014.254C17.3295%2013.5789%2018.2452%2013.1996%2019.2%2013.1996Z'%20fill='%23076CD9'/%3e%3c/svg%3e";var Ng=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v(" *")])]),r("div",{staticClass:"license",class:[{license_disabled:e.disabled}]},[e.hasNewDesign?r("div",{staticClass:"license__wrapper",class:[{license__wrapper_error:e.errors.has(e.name)||e.hasLicensePlateAnyErrors},{license__wrapper_focus:e.isFocused}]},[r("div",{staticClass:"license__country"}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]):e._e(),e.hasNewDesign?e._e():r("div",{staticClass:"license__country"}),e.hasNewDesign?e._e():r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"incorrectLicensePlateHiddenField"},domProps:{value:e.incorrectLicensePlate}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"noLicensePlateHiddenField"},domProps:{value:!e.isRetrievingVehicleInformation&&e.isLicenseFull(e.value)&&!e.vehicleInformation.VehicleType&&Object.keys(e.vehicleInformation).length!==0}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"unknownLicensePlateHiddenField"},domProps:{value:e.isLicenseUnknown}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicenseTemplateIncorrectHiddenField"},domProps:{value:e.isLicenseTemplateIncorrect}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicensePlateCantBeRetrievedHiddenField"},domProps:{value:e.isLicensePlateCantBeRetrieved}}),e._t("errors",function(){return[r("ErrorHandler",{attrs:{name:e.name,"errors-data":e.errorsData}})]},{errors:e.errors,incorrectLicenseplate:e.incorrectLicensePlate}),e._t("vehicle-information",function(){return[e.isVehicleInfoShowed?r("div",{staticClass:"vd-form-vehicle-name"},[e.vehicleType!=="moped"?r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleIcons[e.vehicleType]]}):r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleIcons[e.vehicleInformation.Model]?e.vehicleIcons[e.vehicleInformation.Model]:""]},[["Brommobiel","Speed Pedelec"].includes(e.vehicleInformation.Model)?e._e():r("img",{attrs:{src:zM,width:"20px",height:"20px",alt:"scooter"}})]),r("span",{staticClass:"mr-1"},[e._v(e._s(e.vehicleInformation.Brand))]),r("span",{staticClass:"mr-1"},[e._v(e._s(e.vehicleInformation.Model))]),r("span",[e._v("("+e._s(e.vehicleInformation.ManufacturingYear)+")")])]):e._e(),e.isRetrievingVehicleInformation?r("div",{staticClass:"license-loader"},[r("span",{staticClass:"license-loader__icon",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"license-loader__text"},[e._v(" Voertuig gegevens ophalen... ")])]):e._e()]},{loading:e.isRetrievingVehicleInformation,vehicleInformation:e.vehicleInformation})],2)},UM=[];Ng._withStripped=!0;var Ig=T(VM,Ng,UM,!1,null,null,null,null);Ig.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/inputs/LicensePlate.vue";const jt=Ig.exports;function Pc(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function YM(t){return(...e)=>!t(...e)}function WM(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function jg(t,e,r,n){return t.filter(a=>WM(n(a,r),e))}function GM(t){return t.filter(e=>!e.$isLabel)}function Rc(t,e){return r=>r.reduce((n,a)=>a[t]&&a[t].length?(n.push({$groupLabel:a[e],$isLabel:!0}),n.concat(a[t])):n,[])}function ZM(t,e,r,n,a){return i=>i.map(o=>{if(!o[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=jg(o[r],t,e,a);return u.length?{[n]:o[n],[r]:u}:[]})}const Fg=(...t)=>e=>t.reduce((r,n)=>n(r),e),KM={name:"vue-multiselect",mixins:[{data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default(){return[]}},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return Pc(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.value||this.value===0?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let r=this.options.concat();return this.internalSearch?r=this.groupValues?this.filterAndFlat(r,e,this.label):jg(r,e,this.label,this.customLabel):r=this.groupValues?Rc(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(YM(this.isSelected)):r,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?r.push({isTag:!0,label:t}):r.unshift({isTag:!0,label:t})),r.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))},search(){this.$emit("search-change",this.search,this.id)}},methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,r){return Fg(ZM(e,r,this.groupValues,this.groupLabel,this.customLabel),Rc(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Fg(Rc(this.groupValues,this.groupLabel),GM)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(Pc(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;let e=this.customLabel(t,this.label);return Pc(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const r=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],n=this.internalValue.filter(a=>r.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("input",n,this.id)}else{let r=e[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&r.splice(this.max-this.internalValue.length),this.$emit("select",r,this.id),this.$emit("input",this.internalValue.concat(r),this.id)}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const r=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const n=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("input",n,this.id)}else this.$emit("input",null,this.id);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el!="undefined"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search!="undefined"&&this.$refs.search.blur():typeof this.$el!="undefined"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window=="undefined")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},{data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer,"vd-multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["vd-multiselect__option--disabled",{"vd-multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["vd-multiselect__option--group",{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer},{"vd-multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"vd-multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}}],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)&&!this.search},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.value&&this.value.length?this.search?(this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1),""):this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};var $g=function(){var e=this,r=e._self._c;return r("div",{staticClass:"vd-multiselect",class:{"vd-multiselect--active":e.isOpen,"vd-multiselect--disabled":e.disabled,"vd-multiselect--above":e.isAbove,"vd-multiselect--has-options-group":e.hasOptionGroup},attrs:{tabindex:e.searchable?-1:e.tabindex,role:"combobox","aria-owns":"listbox-"+e.id},on:{focus:function(n){return e.activate()},blur:function(n){e.searchable||e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerBackward())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")&&e._k(n.keyCode,"tab",9,n.key,"Tab")||(n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()}}},[e._t("caret",function(){return[r("div",{staticClass:"vd-multiselect__select",on:{mousedown:function(n){return n.preventDefault(),n.stopPropagation(),e.toggle()}}})]},{toggle:e.toggle}),e._t("clear",null,{search:e.search}),r("div",{ref:"tags",staticClass:"vd-multiselect__tags"},[e._t("selection",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"vd-multiselect__tags-wrap"},[e._l(e.visibleValues,function(n,a){return[e._t("tag",function(){return[r("span",{key:a,staticClass:"vd-multiselect__tag"},[r("span",{domProps:{textContent:e._s(e.getOptionLabel(n))}}),r("i",{staticClass:"vd-multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.removeElement(n))},mousedown:function(i){return i.preventDefault(),e.removeElement(n)}}})])]},{option:n,search:e.search,remove:e.removeElement})]})],2),e.internalValue&&e.internalValue.length>e.limit?[e._t("limit",function(){return[r("strong",{staticClass:"vd-multiselect__strong",domProps:{textContent:e._s(e.limitText(e.internalValue.length-e.limit))}})]})]:e._e()]},{search:e.search,remove:e.removeElement,values:e.visibleValues,isOpen:e.isOpen}),r("transition",{attrs:{name:"vd-multiselect__loading"}},[e._t("loading",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"vd-multiselect__spinner"})]})],2),e.searchable?r("input",{ref:"search",staticClass:"vd-multiselect__input",style:e.inputStyle,attrs:{name:e.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,disabled:e.disabled,tabindex:e.tabindex,"aria-controls":"listbox-"+e.id},domProps:{value:e.search},on:{input:function(n){return e.updateSearch(n.target.value)},focus:function(n){return n.preventDefault(),e.activate()},blur:function(n){return n.preventDefault(),e.deactivate()},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.pointerBackward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"])?null:(n.stopPropagation(),e.removeLastElement())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")||(n.preventDefault(),n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)}}}):e._e(),e.isSingleLabelVisible?r("span",{staticClass:"vd-multiselect__single",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("singleLabel",function(){return[[e._v(e._s(e.currentOptionLabel))]]},{option:e.singleValue})],2):e._e(),e.isPlaceholderVisible?r("span",{staticClass:"vd-multiselect__placeholder",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("placeholder",function(){return[e._v(" "+e._s(e.placeholder)+" ")]})],2):e._e()],2),r("transition",{attrs:{name:"multiselect"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen&&!e.loading,expression:"isOpen && !loading"}],staticClass:"vd-multiselect__tab-wrapper",style:{borderColor:e.filteredOptions.length!==0||e.options.length!==0||e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading||e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading?"":"transparent"}},[r("div",{ref:"list",staticClass:"vd-multiselect__content-wrapper",style:{maxHeight:103*5+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(n){n.preventDefault()}}},[r("ul",{staticClass:"vd-multiselect__content",style:e.contentStyle,attrs:{role:"listbox",id:"listbox-"+e.id}},[e._t("beforeList"),e.multiple&&e.max===e.internalValue.length?r("li",[r("span",{staticClass:"vd-multiselect__option"},[e._t("maxElements",function(){return[e._v("Maximum of "+e._s(e.max)+" options selected. First remove a selected option to select another.")]})],2)]):e._e(),!e.max||e.internalValue.length<e.max?e._l(e.filteredOptions,function(n,a){return r("li",{key:a,staticClass:"vd-multiselect__element",attrs:{id:e.id+"-"+a,role:n&&(n.$isLabel||n.$isDisabled)?null:"option"}},[n&&(n.$isLabel||n.$isDisabled)?e._e():r("span",{staticClass:"vd-multiselect__option",class:e.optionHighlight(a,n),attrs:{"data-select":n&&n.isTag?e.tagPlaceholder:e.selectLabelText,"data-selected":e.selectedLabelText,"data-deselect":e.deselectLabelText},on:{click:function(i){return i.stopPropagation(),e.select(n)},mouseenter:function(i){return i.target!==i.currentTarget?null:e.pointerSet(a)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2),n&&(n.$isLabel||n.$isDisabled)?r("span",{staticClass:"vd-multiselect__option",class:e.groupHighlight(a,n),attrs:{"data-select":e.groupSelect&&e.selectGroupLabelText,"data-deselect":e.groupSelect&&e.deselectGroupLabelText},on:{mouseenter:function(i){if(i.target!==i.currentTarget)return null;e.groupSelect&&e.pointerSet(a)},mousedown:function(i){return i.preventDefault(),e.selectGroup(n)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2):e._e()])}):e._e(),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noResult",function(){return[e._v("No elements found. Consider changing the search query.")]},{search:e.search})],2)]),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading,expression:"showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noOptions",function(){return[e._v("List is empty.")]})],2)]),e._t("afterList")],2)])])])],2)},QM=[];$g._withStripped=!0;var Lg=T(KM,$g,QM,!1,null,null,null,null);Lg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/extended/Multiselect.vue";const XM=Lg.exports,JM=_.defineComponent({name:"CompaniesListSelect",components:{ErrorHandler:Y,Multiselect:XM},props:{hasCompaniesListValidationError:{required:!1}},setup(t,{attrs:e,listeners:r,emit:n}){let a=_.reactive({kvk_number:"",company_name:"",legal_entity:"",rsin:"",branch_number:"",postcode:"",city:"",street:"",house_number:"",house_number_addition:"",full_address:"",sbi_activities:""}),i=_.ref(null),o=_.ref([]),u=_.ref(!1),c=_.ref(null),l=_.ref(!1),s=_.ref(!1),d=_.ref(!1);const p=()=>{Object.keys(a).map(S=>{a[S]=""})},f=()=>{p(),n("update-company-data",a),l.value=!1},h=()=>{l.value=!0},v=()=>{d.value=!1,s.value=!0},y=()=>{s.value=!1};_.watch(i,S=>N(this,null,function*(){S&&S.kvkNummer&&(j.value=!0,yield $e.dataService.getProfileInfo(S.kvkNummer).then(k=>{h();let A=k._embedded.hoofdvestiging.adressen.find(L=>L.type==="bezoekadres"||L.type==="correspondentieadres"),$=A.huisletter||"";$+=A.huisnummerToevoeging||"",a.kvk_number=k.kvkNummer,a.company_name=k.naam,a.legal_entity=k._embedded.eigenaar.rechtsvorm,a.rsin=k._embedded.eigenaar.rsin||null,a.branch_number=k._embedded.hoofdvestiging.vestigingsnummer,a.postcode=A.postcode||null,a.city=A.plaats||null,a.street=A.straatnaam||null,a.house_number=A.huisnummer||null,a.house_number_addition=$||null,a.full_address=A.volledigAdres||null,a.sbi_activities=k.sbiActiviteiten.map(L=>({code:L.sbiCode,description:L.sbiOmschrijving,is_main:L.indHoofdactiviteit==="Ja"})),n("update-company-data",k)}).catch(k=>{console.error(k)}).finally(()=>{j.value=!1}))}));const m=S=>{j.value=!0,u.value=!0,S.aantal=30,$e.dataService.searchBusinessInfoV2({companyName:S.naam,kvkNumber:S.kvkNummer},1,S.aantal).then(k=>{u.value=!1;let A=k.resultaten;A.length>0?o.value=A.filter($=>$.type==="hoofdvestiging"||$.type==="nevenvestiging").map($=>($.name=`${$.naam}`,$)):o.value=[]}).catch(k=>{o.value=[],u.value=!1}).finally(()=>{j.value=!1})},g=S=>{!S.length&&o.value.length&&(o.value=[]),S.length>2&&(clearTimeout(c.value),c.value=setTimeout(()=>{S.length==8&&/^\d+$/.test(S)?m({kvkNummer:S}):w(S)?m(w(S)):m({naam:S})},700))},w=S=>{if(S.length>7){let k=S.split(" ");if(k.length>1&&/^([0-9]{4}[A-Z]{2}|[0-9]{4}[a-z]{2})$/.test(k[0])){let A={postcode:k[0],huisnummer:k[1]};return k[2]&&(A.huisnummerToevoeging=k[2]),A}}return null};return{isRequestIsHandling:j,companyName:i,companies:o,businessInfoModel:a,isOptionSelected:l,isDropdownFocused:s,isErrorShowed:d,isLoading:u,attrs:e,listeners:r,findCompanies:g,selectOption:h,removeOption:f,setDropdownOpened:v,setDropdownClosed:y}}});var Bg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("multiselect",{class:{"vd-multiselect__chosen-option":e.isOptionSelected&&!e.isDropdownFocused},attrs:{options:e.companies,label:"name","track-by":"name",multiple:!1,"options-limit":30,placeholder:"Typ je bedrijfsnaam of KvK-nummer","selected-label":"Selected","select-label":"Select","preserve-search":!0,loading:e.isLoading,"internal-search":!1,deselectLabel:"",selectedLabel:"",hideSelected:!0,openDirection:"bottom",showNoOptions:!1},on:{"search-change":e.findCompanies,remove:e.removeOption,open:e.setDropdownOpened,close:e.setDropdownClosed},scopedSlots:e._u([{key:"option",fn:function({option:n}){return[r("div",{staticClass:"vd-multiselect__option-external-wrapper"},[r("div",{staticClass:"vd-multiselect__option-wrapper"},[r("p",[r("b",[e._v(e._s(n.naam))]),r("br")]),r("p",[e._v(e._s("Kvk: "+n.kvkNummer)),r("br")]),r("p",[e._v(e._s(n.adres.binnenlandsAdres.plaats+", "+n.adres.binnenlandsAdres.straatnaam)),r("br")])])])]}}]),model:{value:e.companyName,callback:function(n){e.companyName=n},expression:"companyName"}},[r("template",{slot:"noResult"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je KvK-nummer.")])]),r("template",{slot:"noOptions"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Bedrijfsnaam of KVK-nummer")])])],2),e.isOptionSelected&&!e.isDropdownFocused?r("div",{staticClass:"vd-multiselect__address-info mt-1"},[r("i",{staticClass:"fas fa-info-circle vd-tip-icon vd-tip-icon_additional-text"}),r("span",[e._v("Kvk: "+e._s(e.businessInfoModel.kvk_number)+" "+e._s(e.businessInfoModel.full_address))])]):e._e(),r("error-handler",{attrs:{"errors-data":[{rule:!e.isOptionSelected&&!e.isDropdownFocused&&e.hasCompaniesListValidationError,text:"Bedrijfsnaam of KVK-nummer is verplicht"}]}})],1)},eN=[];Bg._withStripped=!0;var qg=T(JM,Bg,eN,!1,null,null,null,null);qg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/inputs/CompaniesListSelect.vue";const Dc=qg.exports,tN=_.defineComponent({name:"Loader",props:{isActive:{type:Boolean,required:!1,default:!0},small:{type:Boolean,required:!1,default:!1}}});var Hg=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.isActive?r("div",{staticClass:"loader-container",class:{"loader-container--small":e.small}},[r("div",{staticClass:"loader",class:{"loader--small":e.small}})]):e._e()},rN=[];Hg._withStripped=!0;var Vg=T(tN,Hg,rN,!1,null,"3514e0e8",null,null);Vg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/Loader.vue";const Ac=Vg.exports,nN=_.defineComponent({name:"BusinessCarForm",components:{SimpleCard:U,LicensePlate:jt,CompaniesListSelect:Dc,Loader:Ac},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=Mg(t,e);return{businessState:lt,carState:Ee,errors:H,isRequestIsHandling:j,hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,updateCompanyData:c=>{lt.companyData=pt({},c)},validateBeforeSubmit:o}}});var zg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license","vd-form-version":"1"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"search-select-input"}},[e._v(" Selecteer de naam van je bedrijf "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),e.isMultiselectReady?r("companies-list-select",{attrs:{"has-companies-list-validation-error":e.hasCompaniesListValidationError},on:{"update-company-data":e.updateCompanyData},model:{value:e.businessState.companyData,callback:function(n){e.$set(e.businessState,"companyData",n)},expression:"businessState.companyData"}}):r("loader")],1)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},aN=[];zg._withStripped=!0;var Ug=T(nN,zg,aN,!1,null,null,null,null);Ug.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/business/businessCar/components/BusinessCarForm.vue";const iN=Ug.exports,oN=_.defineComponent({name:"BusinessCarFormHorizontal",components:{SimpleCard:U,LicensePlate:jt,CompaniesListSelect:Dc,Loader:Ac},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=Mg(t,e);return{businessState:lt,carState:Ee,errors:H,isRequestIsHandling:j,hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,updateCompanyData:c=>{lt.companyData=pt({},c)},validateBeforeSubmit:o}}});var Yg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form vd-form-card--horizontal",class:{[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-car-business"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"search-select-input"}},[e._v(" Selecteer de naam van je bedrijf "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),e.isMultiselectReady?r("companies-list-select",{attrs:{"has-companies-list-validation-error":e.hasCompaniesListValidationError},on:{"update-company-data":e.updateCompanyData},model:{value:e.businessState.companyData,callback:function(n){e.$set(e.businessState,"companyData",n)},expression:"businessState.companyData"}}):r("loader")],1),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},sN=[];Yg._withStripped=!0;var Wg=T(oN,Yg,sN,!1,null,null,null,null);Wg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/business/businessCar/components/BusinessCarFormHorizontal.vue";const uN=Wg.exports,lN=()=>[{name:"car",data:Object.assign(Ee,{LicensePlate:Ee.LicensePlate,Brand:Ee.Brand,Model:Ee.Model,Type:Ee.Type,VehicleType:Ee.VehicleType,ManufacturingYear:Ee.ManufacturingYear})},{name:"comparison",data:{ClaimFreeYears:"0",Coverage:null,Deductables:300,Kilometrage:"12000"}}],Gg=_.ref(!1),Tc=_.ref(!1),Ec=(t,e)=>{const{submitFormAndUpdateFormData:r,submitFormAndCreateComparison:n,setInitialUserInfoInStore:a,removeSessionState:i,openQuotationModal:o}=Xe(e),u=()=>`${t.link}#/<<COMPARISONID>>/dekkingen/`,c=()=>N(this,null,function*(){return(yield Be(["license","zipcode","housenumber","housenumberaddition","birthdate","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!Gg.value&&Ee.VehicleType==="Car"&&!Tc.value}),l=()=>{Object.assign(Ee,t.insuranceState)},s=()=>{Tc.value=!1},d=()=>{Tc.value=!0},p=()=>N(this,null,function*(){try{if(yield c())if(t.formLocation===P.isOnResultPage)r({userInformation:C,carState:Ee});else{const h=lN();yield n("car",h,u())}}catch(h){f(h)}}),f=h=>{console.error(h),z.refId="192",z.notes.push({text:"Kan geen comparison ID aanmaken voor autoverzekering vergelijking"}),z.notes.push({text:`Kenteken: ${Ee.LicensePlate} | Postcode: ${C.zipcode} | Huisnummer: ${C.houseNumber} | Huisnummer toevoeging: ${C.houseNumberAddition} | Geboortedatum: ${C.birthdate}`}),z.notes=rn(z.notes),o()};return _.onMounted(()=>{t.formLocation===P.isOnResultPage&&(a(t),l()),t.formLocation===P.isBeforeFlow&&i("car-storage","car-path")}),{houseError:Gg,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:p}};var Zg={exports:{}};const cN=Gn(WE);(function(t,e){(function(r,n){t.exports=n(cN)})(b,function(r){function n(u,c,l){u&&c&&l&&(document.addEventListener?u.addEventListener(c,l,!1):u.attachEvent("on"+c,l))}function a(u,c,l){u&&c&&(document.removeEventListener?u.removeEventListener(c,l,!1):u.detachEvent("on"+c,l))}r=r&&r.hasOwnProperty("default")?r.default:r;var i={props:{tagName:{type:String,default:"span"},trigger:{type:String,default:"hover",validator:function(u){return["clickToOpen","click","clickToToggle","hover","focus"].indexOf(u)>-1}},delayOnMouseOver:{type:Number,default:10},delayOnMouseOut:{type:Number,default:10},disabled:{type:Boolean,default:!1},content:String,enterActiveClass:String,leaveActiveClass:String,boundariesSelector:String,reference:{},forceShow:{type:Boolean,default:!1},dataValue:{default:null},appendToBody:{type:Boolean,default:!1},visibleArrow:{type:Boolean,default:!0},transition:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},rootClass:{type:String,default:""}},data:function(){return{referenceElm:null,popperJS:null,showPopper:!1,currentPlacement:"",popperOptions:{placement:"bottom",computeStyle:{gpuAcceleration:!1}}}},watch:{showPopper:function(u){u?(this.$emit("show",this),this.popperJS&&this.popperJS.enableEventListeners(),this.updatePopper()):(this.popperJS&&this.popperJS.disableEventListeners(),this.$emit("hide",this))},forceShow:{handler:function(u){this[u?"doShow":"doClose"]()},immediate:!0},disabled:function(u){u&&(this.showPopper=!1)}},created:function(){this.appendedArrow=!1,this.appendedToBody=!1,this.popperOptions=Object.assign(this.popperOptions,this.options)},mounted:function(){switch(this.referenceElm=this.reference||this.$slots.reference[0].elm,this.popper=this.$slots.default[0].elm,this.trigger){case"clickToOpen":n(this.referenceElm,"click",this.doShow),n(document,"click",this.handleDocumentClick);break;case"click":case"clickToToggle":n(this.referenceElm,"click",this.doToggle),n(document,"click",this.handleDocumentClick);break;case"hover":n(this.referenceElm,"mouseover",this.onMouseOver),n(this.popper,"mouseover",this.onMouseOver),n(this.referenceElm,"mouseout",this.onMouseOut),n(this.popper,"mouseout",this.onMouseOut);break;case"focus":n(this.referenceElm,"focus",this.onMouseOver),n(this.popper,"focus",this.onMouseOver),n(this.referenceElm,"blur",this.onMouseOut),n(this.popper,"blur",this.onMouseOut)}},methods:{doToggle:function(u){this.stopPropagation&&u.stopPropagation(),this.preventDefault&&u.preventDefault(),this.forceShow||(this.showPopper=!this.showPopper)},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},doDestroy:function(){this.showPopper||(this.popperJS&&(this.popperJS.destroy(),this.popperJS=null),this.appendedToBody&&(this.appendedToBody=!1,document.body.removeChild(this.popper.parentElement)))},createPopper:function(){var u=this;this.$nextTick(function(){if(u.visibleArrow&&u.appendArrow(u.popper),u.appendToBody&&!u.appendedToBody&&(u.appendedToBody=!0,document.body.appendChild(u.popper.parentElement)),u.popperJS&&u.popperJS.destroy&&u.popperJS.destroy(),u.boundariesSelector){var c=document.querySelector(u.boundariesSelector);c&&(u.popperOptions.modifiers=Object.assign({},u.popperOptions.modifiers),u.popperOptions.modifiers.preventOverflow=Object.assign({},u.popperOptions.modifiers.preventOverflow),u.popperOptions.modifiers.preventOverflow.boundariesElement=c)}u.popperOptions.onCreate=function(){u.$emit("created",u),u.$nextTick(u.updatePopper)},u.popperJS=new r(u.referenceElm,u.popper,u.popperOptions)})},destroyPopper:function(){a(this.referenceElm,"click",this.doToggle),a(this.referenceElm,"mouseup",this.doClose),a(this.referenceElm,"mousedown",this.doShow),a(this.referenceElm,"focus",this.doShow),a(this.referenceElm,"blur",this.doClose),a(this.referenceElm,"mouseout",this.onMouseOut),a(this.referenceElm,"mouseover",this.onMouseOver),a(document,"click",this.handleDocumentClick),this.showPopper=!1,this.doDestroy()},appendArrow:function(u){if(!this.appendedArrow){this.appendedArrow=!0;var c=document.createElement("div");c.setAttribute("x-arrow",""),c.className="popper__arrow",u.appendChild(c)}},updatePopper:function(){this.popperJS?this.popperJS.scheduleUpdate():this.createPopper()},onMouseOver:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!0},this.delayOnMouseOver)},onMouseOut:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!1},this.delayOnMouseOut)},handleDocumentClick:function(u){this.$el&&this.referenceElm&&!this.elementContains(this.$el,u.target)&&!this.elementContains(this.referenceElm,u.target)&&this.popper&&!this.elementContains(this.popper,u.target)&&(this.$emit("documentClick",this),this.forceShow||(this.showPopper=!1))},elementContains:function(u,c){return typeof u.contains=="function"&&u.contains(c)}},destroyed:function(){this.destroyPopper()}};const o=i;return i.__file="popper.js.vue",function(u,c,l,s,d,p,f,h,v,y){typeof f=="function"&&(v=h,h=f,f=!1);const m=typeof l=="function"?l.options:l;let g;if(u&&u.render&&(m.render=u.render,m.staticRenderFns=u.staticRenderFns,m._compiled=!0,d&&(m.functional=!0)),s&&(m._scopeId=s),p?(g=function(w){(w=w||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__=="undefined"||(w=__VUE_SSR_CONTEXT__),c&&c.call(this,v(w)),w&&w._registeredComponents&&w._registeredComponents.add(p)},m._ssrRegister=g):c&&(g=f?function(){c.call(this,y(this.$root.$options.shadowRoot))}:function(w){c.call(this,h(w))}),g)if(m.functional){const w=m.render;m.render=function(S,k){return g.call(k),w(S,k)}}else{const w=m.beforeCreate;m.beforeCreate=w?[].concat(w,g):[g]}return l}({render:function(){var u=this,c=u.$createElement,l=u._self._c||c;return l(u.tagName,{tag:"component"},[l("transition",{attrs:{name:u.transition,"enter-active-class":u.enterActiveClass,"leave-active-class":u.leaveActiveClass},on:{"after-leave":u.doDestroy}},[l("span",{directives:[{name:"show",rawName:"v-show",value:!u.disabled&&u.showPopper,expression:"!disabled && showPopper"}],ref:"popper",class:u.rootClass},[u._t("default",[u._v(u._s(u.content))])],2)]),u._v(" "),u._t("reference")],2)},staticRenderFns:[]},void 0,o,void 0,!1,void 0,void 0,void 0)})})(Zg);var dN=Zg.exports;const zn=Ka(dN),fN=_.defineComponent({components:{DefaultInput:ee,DefaultSelect:se,ErrorHandler:Y,Popper:zn},props:{template:{type:String,default:"FORM",validator:t=>["FORM","USER_INFORMATION","NEW_USER_INFORMATION","PACKAGE","FORM_HORIZONTAL"].includes(t)},zipcode:{type:String,required:!0},houseNumber:{type:String,required:!0},houseNumberAddition:{type:String,required:!0},zipcodeName:{type:String,required:!0},houseNumberName:{type:String,required:!0},houseNumberAdditionName:{type:String,required:!0},showStreetAndCity:{type:Boolean,default:!0}},setup(t,{emit:e}){const r=_.ref(!1),n=_.ref(!1),a=_.ref(!1),i=_.ref(!0),o=_.ref(!1),u=_.ref(""),c=_.ref(""),l=_.ref(""),s=_.ref([]),d=_.ref({street:"",city:""}),p=_.ref(!1),f=[{rule:"required",text:"Vul je postcode in"},{rule:"regex",text:"Postcode is incorrect"}],h=[{rule:"required",text:"Huisnummer is verplicht"}],v=_.computed(()=>[{rule:H.has(t.houseNumberAdditionName),text:"Een toevoeging is verplicht"}]),y=_.computed(()=>[{rule:a.value,text:"Postcode en huisnummer combinatie onbekend."}]),m=_.computed(()=>r.value?"-":"Kies toevoeging"),g=_.computed(()=>`${o.value?"":"required"}|is_not:CHOOSE_OPTION`),w=(W,q,Ze)=>N(this,null,function*(){try{if(j.value=!0,!W||!q){$(""),l.value="CHOOSE_OPTION",a.value=!1,d.value.street="",d.value.city="",s.value=[{title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}];return}s.value=[],Ze&&(l.value="CHOOSE_OPTION"),s.value.push({title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}),o.value=yield S(W,q),o.value&&(s.value=[...s.value,{title:"Geen toevoeging",value:""}]),$e.homeService.getAddition({zipcode:W,houseNumber:q}).then(He=>{const Ft=He;if(i.value=!0,V(t.houseNumberAdditionName),Ft.length){r.value=!1;for(let vr=0;vr<Ft.length;vr++)s.value=[...s.value,{title:Ft[vr],value:Fe(Ft[vr])}];a.value=!1,Ze||_.nextTick(()=>{l.value=t.houseNumberAddition,L(W,q,t.houseNumberAddition)})}else s.value[1]&&(s.value[1].title="Geen toevoeging"),r.value=!0,l.value="",$(""),L(W,q)}).catch(He=>{a.value=!0,d.value.street="",d.value.city="",e("address-correct",!a.value),V("housenumberaddition"),console.error("Error fetching additions:",He)})}catch(He){console.error("Error in getHouseNumberAdditions:",He)}finally{j.value=!1}}),S=(W,q)=>N(this,null,function*(){return yield $e.dataValidationService.validateZipCode(W,q).then(()=>!0).catch(()=>!1)}),k=W=>{p.value=!0,u.value=W.toUpperCase(),e("update-zipcode",W.toUpperCase()),_.nextTick(()=>{w(W.toUpperCase(),t.houseNumber,!0)})},A=W=>{p.value=!0,e("update-house-number",W),_.nextTick(()=>{w(t.zipcode,W,!0)})},$=W=>{e("update-house-number-addition",W),L(t.zipcode,t.houseNumber,W)},L=(W,q,Ze="")=>N(this,null,function*(){try{if(j.value=!0,!W||!q)return;n.value=!0,a.value=!1,d.value.street="",d.value.city="",e("address-correct",!a.value);const{Street:He,Place:Ft}=yield $e.dataValidationService.validateZipCode(W,q,Ze);p.value=!1,d.value.street=He,d.value.city=Ft,e("update-house-information",d.value),n.value=!1}catch(He){a.value=!0,n.value=!1,e("address-correct",!a.value),V("housenumberaddition"),console.error("Error getting house information:",He)}finally{j.value=!1}}),V=W=>{var Ze;const q=J.fields.find({name:W});(q!==null||q!==void 0&&q)&&(q==null||q.reset(),(Ze=J==null?void 0:J.errors)==null||Ze.remove(q==null?void 0:q.name,q==null?void 0:q.scope))},Fe=W=>W.includes("-")?W.replace("-",""):W;return _.onMounted(()=>{_.nextTick(()=>{u.value=t.zipcode,c.value=t.houseNumber,w(t.zipcode,t.houseNumber,!1)})}),{errors:H,hasNewDesign:F,additionLabel:m,additionValidationRules:g,disableAdditionField:r,isLoading:n,addressError:a,firstTimeCalled:i,canBeWithoutAddition:o,zipcodeModel:u,houseNumberModel:c,houseAdditionNumberModel:l,additions:s,houseInformation:d,isAddressEditing:p,props:t,zipcodeErrorsData:f,houseNumberErrorsData:h,houseNumberAdditionErrorsData:v,addressErrorsData:y,getHouseNumberAdditions:w,getHouseInformationWithoutAddition:S,updateZipcode:k,updateHouseNumber:A,updateHouseNumberAddition:$,getHouseInformation:L,resetFieldValidation:V}}});var Kg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("span",[e.template==="FORM"?r("div",{class:e.hasNewDesign?"":"component-mb-1"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[r("default-input",{attrs:{id:e.zipcodeName,mask:"####AA","autocomplete-off":!0,placeholder:"bv. 1234 AZ",validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1)]),r("div",{staticClass:"row"},[r("div",{class:e.hasNewDesign?"house-number-field":"col-md-6"},[r("default-input",{staticClass:"mb-md-0",attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{style:{"white-space":e.errors.has(e.houseNumberAdditionName)?"":"nowrap"},attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{class:e.hasNewDesign?"house-number-addition-field":"col-md-6"},[r("default-select",{staticClass:"mb-0",class:{"select-empty-value":e.houseAdditionNumberModel==="CHOOSE_OPTION"},attrs:{id:"additions",validation:e.additionValidationRules,"no-default-placeholder":!0,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper vd-popover"},[r("div",{staticClass:"popover-header vd-popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e(),!e.disableAdditionField&&!e.addressError&&e.additions.length>2?r("span",{staticClass:"text-danger ml-1"},[e._v(" *")]):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,1041804111),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[e.isLoading?e._e():r("div",[e.showStreetAndCity&&!e.isAddressEditing&&e.houseInformation.street&&e.houseInformation.city?r("div",{staticClass:"fz-medium mt-1"},[r("i",{staticClass:"fa-map-marker-alt",class:e.hasNewDesign?"fas vd-tip-icon":"fad text-primary"}),e._v(" "+e._s(e.houseInformation.street)+", "+e._s(e.houseInformation.city)+" ")]):e._e(),e.addressError?r("div",{staticClass:"vd-form-error mb-0"},[r("i",{staticClass:"fas fa-info-circle"}),e._v(" Postcode en huisnummer combinatie onbekend. ")]):e._e()]),e.isLoading?r("div",{staticClass:"d-flex align-items-center mt-1"},[r("span",{staticClass:"spinner-border spinner-small fz-medium spinner-border-sm mr-1 text-primary",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"fz-medium"},[e._v(" Adres ophalen ")])]):e._e()])])]):e._e(),e.template==="FORM_HORIZONTAL"?r("div",{class:e.hasNewDesign?"":"component-mb-1"},[r("span",{staticClass:"vd-form-card__content p-0"},[r("div",{staticClass:"vd-form-group mb-0"},[r("default-input",{staticClass:"mx-0 mb-lg-0",attrs:{id:e.zipcodeName,mask:"####AA",placeholder:"bv. 1234 AZ","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1),r("div",{staticClass:"vd-form-group mb-0"},[r("default-input",{staticClass:"mx-0 mb-lg-0",attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"vd-form-group mb-0"},[r("default-select",{staticClass:"mx-0",class:{"mb-0":e.houseInformation.street&&e.houseInformation.city},attrs:{id:"additions",validation:e.additionValidationRules,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,"no-default-placeholder":!0,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),e.isLoading?e._e():r("div",[e.showStreetAndCity&&e.houseInformation.street&&e.houseInformation.city?r("div",{staticClass:"fz-medium mt-1"},[r("i",{staticClass:"fa-map-marker-alt",class:e.hasNewDesign?"fas vd-tip-icon":"fad text-primary"}),e._v(" "+e._s(e.houseInformation.street)+", "+e._s(e.houseInformation.city)+" ")]):e._e(),e.addressError?r("div",{staticClass:"vd-form-error position-relative"},[r("i",{staticClass:"fas fa-exclamation-circle"}),e._v(" Postcode en huisnummer combinatie onbekend. ")]):e._e()]),e.isLoading?r("div",{staticClass:"d-flex align-items-center mt-1"},[r("span",{staticClass:"spinner-border spinner-small fz-medium spinner-border-sm mr-1 text-primary",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"fz-medium"},[e._v(" Adres ophalen ")])]):e._e()]):e._e(),e.template==="USER_INFORMATION"?r("div",[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:e.zipcodeName,mask:"####AA","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-6"},[r("default-select",{attrs:{id:"additions",validation:e.additionValidationRules,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,"no-default-placeholder":!0,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[r("div",{staticClass:"mb-2"},[e.addressError?r("div",{staticClass:"vd-form-error position-relative"},[r("i",{staticClass:"fas fa-info-circle"}),e._v(" Postcode en huisnummer combinatie onbekend. ")]):e._e()])])])]):e._e(),e.template==="NEW_USER_INFORMATION"?r("div",[r("div",{staticClass:"row mt-2"},[r("div",{staticClass:"col-xl-4 col-lg-5 col-md-5"},[r("label",{staticClass:"mt-2 font-weight-bold cursor-pointer",attrs:{for:e.zipcodeName}},[e._v(" Postcode ")])]),r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:e.zipcodeName,"hide-label":!0,mask:"####AA",placeholder:"bv. 1234 AZ","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1)]),r("div",{staticClass:"row mt-2"},[r("div",{staticClass:"col-xl-4 col-lg-5 col-md-5"},[r("label",{staticClass:"mt-2 font-weight-bold cursor-pointer",attrs:{for:e.houseNumberName}},[e._v(" Huisnummer en toevoeging ")])]),r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:"houseNumber","hide-label":!0,"autocomplete-off":!0,validation:"required|numeric",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-3"},[r("default-select",{attrs:{id:"additions",validation:e.additionValidationRules,"hide-label":!0,"no-default-placeholder":!0,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)])]):e._e(),e.template==="PACKAGE"?r("div",[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-4"},[r("default-input",{staticClass:"mx-0",attrs:{id:e.zipcodeName,mask:"####AA",placeholder:"bv. 1234 AZ","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-4"},[r("default-input",{staticClass:"mx-0",attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-4"},[r("default-select",{staticClass:"mx-0",attrs:{id:"additions",validation:e.additionValidationRules,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,"no-default-placeholder":!0,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[r("div",{staticClass:"mb-2"},[e.showStreetAndCity&&e.houseInformation.street&&e.houseInformation.city?r("div",{staticClass:"text-success fz-small font-weight-bold"},[r("i",{staticClass:"fas fa-info-circle"}),e._v(" "+e._s(e.houseInformation.street)+", "+e._s(e.houseInformation.city)+" ")]):e._e(),r("ErrorHandler",{attrs:{"errors-data":e.addressErrorsData}})],1)])])]):e._e(),r("input",{directives:[{name:"model",rawName:"v-model",value:e.addressError,expression:"addressError"},{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"hidden-adress-error"},domProps:{value:e.addressError},on:{input:function(n){n.target.composing||(e.addressError=n.target.value)}}})])},pN=[];Kg._withStripped=!0;var Qg=T(fN,Kg,pN,!1,null,null,null,null);Qg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/AddressHandler.vue";const qe=Qg.exports,hN=_.defineComponent({name:"CarForm",components:{LicensePlate:jt,AddressHandler:qe,DefaultInput:ee,SimpleCard:U,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Ec(t,e);return{userState:C,carState:Ee,hasNewDesign:F,errors:H,isRequestIsHandling:j,houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var Xg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},mN=[];Xg._withStripped=!0;var Jg=T(hN,Xg,mN,!1,null,null,null,null);Jg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/car/components/forms/CarForm.vue";const vN=Jg.exports,gN=_.defineComponent({name:"CarFormHorizontal",components:{LicensePlate:jt,AddressHandler:qe,DefaultInput:ee,SimpleCard:U,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=Ec(t,e);return{userState:C,carState:Ee,hasNewDesign:F,errors:H,isRequestIsHandling:j,licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}}});var e_=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-car"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-block"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,template:"FORM_HORIZONTAL","house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}}),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},_N=[];e_._withStripped=!0;var t_=T(gN,e_,_N,!1,null,null,null,null);t_.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/car/components/forms/CarFormHorizontal.vue";const yN=t_.exports,bN=_.defineComponent({name:"CarFormOld",components:{LicensePlate:jt,AddressHandler:qe,DefaultInput:ee,SimpleCard:U,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Ec(t,e);return{userState:C,carState:Ee,hasNewDesign:F,errors:H,isRequestIsHandling:j,houseError:r,FormLocations:P,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var r_=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("simple-card",{staticClass:"vd-form-card vd-form-card--border-box",class:{"vd-form-card--flat w-100":e.formLocation===e.FormLocations.isOnResultPage,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content p-0"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-moped"},[r("address-handler",{staticClass:"mx-0",attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("div",{staticClass:"vd-form-group"},[r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-group"},[r("div",{staticClass:"btn-a btn-a--success btn-a--bold btn-block btn-a--horizontal cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])],1)},wN=[];r_._withStripped=!0;var n_=T(bN,r_,wN,!1,null,null,null,null);n_.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/car/components/forms/CarFormOld.vue";const SN=n_.exports,CN="192";function ON(t){const e={CreationForm:"CreationForm",Aanvragen:"Aanvragen",Common:"Common"};let r=_.ref([]);const n={[e.CreationForm]:{title:"Oeps... er gaat iets mis!",refId:CN,notes:[{text:"Kan geen comparison ID aanmaken voor geld lenen vergelijking"}],description:"Door een technische storing kunnen we op dit moment geen premies vergelijken. Laat je gegevens achter en we helpen je zo snel mogelijk telefonisch verder!"},[e.Aanvragen]:{description:"Er gaat iets niet helemaal goed. Je kunt op dit moment niet verder met je vergelijking of aanvraag. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."},[e.Common]:{description:"Momenteel kunnen we je lening online niet berekenen. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."}},a=(l="Common")=>{t("emit-event-hub",{event:"open-quotation-modal",data:c(l)})},i=l=>{const s=u(l);r.value.push(s)},o=()=>{r.value=[]},u=l=>({text:l}),c=l=>{const{title:s,refId:d,notes:p,description:f}=n[l];return{title:s,refId:d,notes:[...p||[],...r.value],description:f}};return{QuotationType:e,openQuotationModal:a,addNote:i,resetNotes:o,convertToNote:u,renderQuotationData:c}}let Mc=_.ref(!1);const a_=(t,e)=>{const{QuotationType:r,openQuotationModal:n,addNote:a,resetNotes:i}=ON(e),o=_.computed(()=>t.formOrientation===ba.Horizontal),u=f=>`${t.link}#/${f}`,c=f=>N(this,null,function*(){i();try{const h=yield $e.comparisonService.create("loan",f);return yield $e.comparisonService.update(h),h}catch(h){console.error(h),a(`
49
+ */var qa=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",cE=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(qa&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function dE(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function fE(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},cE))}}var pE=qa&&window.Promise,hE=pE?dE:fE;function Hv(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function tn(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function oc(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Ha(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=tn(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(r+a+n)?t:Ha(oc(t))}function Vv(t){return t&&t.referenceNode?t.referenceNode:t}var zv=qa&&!!(window.MSInputMethodContext&&document.documentMode),Uv=qa&&/MSIE 10/.test(navigator.userAgent);function Fn(t){return t===11?zv:t===10?Uv:zv||Uv}function $n(t){if(!t)return document.documentElement;for(var e=Fn(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&tn(r,"position")==="static"?$n(r):r}function mE(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||$n(t.firstElementChild)===t}function sc(t){return t.parentNode!==null?sc(t.parentNode):t}function os(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,a=r?e:t,i=document.createRange();i.setStart(n,0),i.setEnd(a,0);var o=i.commonAncestorContainer;if(t!==o&&e!==o||n.contains(a))return mE(o)?o:$n(o);var u=sc(t);return u.host?os(u.host,e):os(t,sc(e).host)}function Ln(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=e==="top"?"scrollTop":"scrollLeft",n=t.nodeName;if(n==="BODY"||n==="HTML"){var a=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||a;return i[r]}return t[r]}function vE(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Ln(e,"top"),a=Ln(e,"left"),i=r?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=a*i,t.right+=a*i,t}function Yv(t,e){var r=e==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function Wv(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],Fn(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function Gv(t){var e=t.body,r=t.documentElement,n=Fn(10)&&getComputedStyle(r);return{height:Wv("Height",e,r,n),width:Wv("Width",e,r,n)}}var gE=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_E=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Bn=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},wt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function Mr(t){return wt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function uc(t){var e={};try{if(Fn(10)){e=t.getBoundingClientRect();var r=Ln(t,"top"),n=Ln(t,"left");e.top+=r,e.left+=n,e.bottom+=r,e.right+=n}else e=t.getBoundingClientRect()}catch(d){}var a={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i=t.nodeName==="HTML"?Gv(t.ownerDocument):{},o=i.width||t.clientWidth||a.width,u=i.height||t.clientHeight||a.height,c=t.offsetWidth-o,l=t.offsetHeight-u;if(c||l){var s=tn(t);c-=Yv(s,"x"),l-=Yv(s,"y"),a.width-=c,a.height-=l}return Mr(a)}function lc(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Fn(10),a=e.nodeName==="HTML",i=uc(t),o=uc(e),u=Ha(t),c=tn(e),l=parseFloat(c.borderTopWidth),s=parseFloat(c.borderLeftWidth);r&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Mr({top:i.top-o.top-l,left:i.left-o.left-s,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&a){var p=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);d.top-=l-p,d.bottom-=l-p,d.left-=s-f,d.right-=s-f,d.marginTop=p,d.marginLeft=f}return(n&&!r?e.contains(u):e===u&&u.nodeName!=="BODY")&&(d=vE(d,e)),d}function yE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=lc(t,r),a=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),o=e?0:Ln(r),u=e?0:Ln(r,"left"),c={top:o-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:a,height:i};return Mr(c)}function Zv(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(tn(t,"position")==="fixed")return!0;var r=oc(t);return r?Zv(r):!1}function Kv(t){if(!t||!t.parentElement||Fn())return document.documentElement;for(var e=t.parentElement;e&&tn(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function cc(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},o=a?Kv(t):os(t,Vv(e));if(n==="viewport")i=yE(o,a);else{var u=void 0;n==="scrollParent"?(u=Ha(oc(e)),u.nodeName==="BODY"&&(u=t.ownerDocument.documentElement)):n==="window"?u=t.ownerDocument.documentElement:u=n;var c=lc(u,o,a);if(u.nodeName==="HTML"&&!Zv(o)){var l=Gv(t.ownerDocument),s=l.height,d=l.width;i.top+=c.top-c.marginTop,i.bottom=s+c.top,i.left+=c.left-c.marginLeft,i.right=d+c.left}else i=c}r=r||0;var p=typeof r=="number";return i.left+=p?r:r.left||0,i.top+=p?r:r.top||0,i.right-=p?r:r.right||0,i.bottom-=p?r:r.bottom||0,i}function bE(t){var e=t.width,r=t.height;return e*r}function Qv(t,e,r,n,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var o=cc(r,n,i,a),u={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},c=Object.keys(u).map(function(p){return wt({key:p},u[p],{area:bE(u[p])})}).sort(function(p,f){return f.area-p.area}),l=c.filter(function(p){var f=p.width,h=p.height;return f>=r.clientWidth&&h>=r.clientHeight}),s=l.length>0?l[0].key:c[0].key,d=t.split("-")[1];return s+(d?"-"+d:"")}function Xv(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=n?Kv(e):os(e,Vv(r));return lc(r,a,n)}function Jv(t){var e=t.ownerDocument.defaultView,r=e.getComputedStyle(t),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),a=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),i={width:t.offsetWidth+a,height:t.offsetHeight+n};return i}function ss(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(r){return e[r]})}function eg(t,e,r){r=r.split("-")[0];var n=Jv(t),a={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,o=i?"top":"left",u=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return a[o]=e[o]+e[c]/2-n[c]/2,r===u?a[u]=e[u]-n[l]:a[u]=e[ss(u)],a}function Va(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function wE(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(a){return a[e]===r});var n=Va(t,function(a){return a[e]===r});return t.indexOf(n)}function tg(t,e,r){var n=r===void 0?t:t.slice(0,wE(t,"name",r));return n.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=a.function||a.fn;a.enabled&&Hv(i)&&(e.offsets.popper=Mr(e.offsets.popper),e.offsets.reference=Mr(e.offsets.reference),e=i(e,a))}),e}function SE(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Xv(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Qv(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=eg(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=tg(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function rg(t,e){return t.some(function(r){var n=r.name,a=r.enabled;return a&&n===e})}function dc(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var a=e[n],i=a?""+a+r:t;if(typeof document.body.style[i]!="undefined")return i}return null}function CE(){return this.state.isDestroyed=!0,rg(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[dc("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ng(t){var e=t.ownerDocument;return e?e.defaultView:window}function ag(t,e,r,n){var a=t.nodeName==="BODY",i=a?t.ownerDocument.defaultView:t;i.addEventListener(e,r,{passive:!0}),a||ag(Ha(i.parentNode),e,r,n),n.push(i)}function OE(t,e,r,n){r.updateBound=n,ng(t).addEventListener("resize",r.updateBound,{passive:!0});var a=Ha(t);return ag(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function kE(){this.state.eventsEnabled||(this.state=OE(this.reference,this.options,this.state,this.scheduleUpdate))}function xE(t,e){return ng(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(r){r.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function PE(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=xE(this.reference,this.state))}function fc(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function pc(t,e){Object.keys(e).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&fc(e[r])&&(n="px"),t.style[r]=e[r]+n})}function RE(t,e){Object.keys(e).forEach(function(r){var n=e[r];n!==!1?t.setAttribute(r,e[r]):t.removeAttribute(r)})}function DE(t){return pc(t.instance.popper,t.styles),RE(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&pc(t.arrowElement,t.arrowStyles),t}function AE(t,e,r,n,a){var i=Xv(a,e,t,r.positionFixed),o=Qv(r.placement,i,e,t,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return e.setAttribute("x-placement",o),pc(e,{position:r.positionFixed?"fixed":"absolute"}),r}function TE(t,e){var r=t.offsets,n=r.popper,a=r.reference,i=Math.round,o=Math.floor,u=function(m){return m},c=i(a.width),l=i(n.width),s=["left","right"].indexOf(t.placement)!==-1,d=t.placement.indexOf("-")!==-1,p=c%2===l%2,f=c%2===1&&l%2===1,h=e?s||d||p?i:o:u,v=e?i:u;return{left:h(f&&!d&&e?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:h(n.right)}}var EE=qa&&/Firefox/i.test(navigator.userAgent);function ME(t,e){var r=e.x,n=e.y,a=t.offsets.popper,i=Va(t.instance.modifiers,function(w){return w.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=i!==void 0?i:e.gpuAcceleration,u=$n(t.instance.popper),c=uc(u),l={position:a.position},s=TE(t,window.devicePixelRatio<2||!EE),d=r==="bottom"?"top":"bottom",p=n==="right"?"left":"right",f=dc("transform"),h=void 0,v=void 0;if(d==="bottom"?u.nodeName==="HTML"?v=-u.clientHeight+s.bottom:v=-c.height+s.bottom:v=s.top,p==="right"?u.nodeName==="HTML"?h=-u.clientWidth+s.right:h=-c.width+s.right:h=s.left,o&&f)l[f]="translate3d("+h+"px, "+v+"px, 0)",l[d]=0,l[p]=0,l.willChange="transform";else{var y=d==="bottom"?-1:1,m=p==="right"?-1:1;l[d]=v*y,l[p]=h*m,l.willChange=d+", "+p}var g={"x-placement":t.placement};return t.attributes=wt({},g,t.attributes),t.styles=wt({},l,t.styles),t.arrowStyles=wt({},t.offsets.arrow,t.arrowStyles),t}function ig(t,e,r){var n=Va(t,function(u){var c=u.name;return c===e}),a=!!n&&t.some(function(u){return u.name===r&&u.enabled&&u.order<n.order});if(!a){var i="`"+e+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function NE(t,e){var r;if(!ig(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if(typeof n=="string"){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var a=t.placement.split("-")[0],i=t.offsets,o=i.popper,u=i.reference,c=["left","right"].indexOf(a)!==-1,l=c?"height":"width",s=c?"Top":"Left",d=s.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",h=Jv(n)[l];u[f]-h<o[d]&&(t.offsets.popper[d]-=o[d]-(u[f]-h)),u[d]+h>o[f]&&(t.offsets.popper[d]+=u[d]+h-o[f]),t.offsets.popper=Mr(t.offsets.popper);var v=u[d]+u[l]/2-h/2,y=tn(t.instance.popper),m=parseFloat(y["margin"+s]),g=parseFloat(y["border"+s+"Width"]),w=v-t.offsets.popper[d]-m-g;return w=Math.max(Math.min(o[l]-h,w),0),t.arrowElement=n,t.offsets.arrow=(r={},Bn(r,d,Math.round(w)),Bn(r,p,""),r),t}function IE(t){return t==="end"?"start":t==="start"?"end":t}var og=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],hc=og.slice(3);function sg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=hc.indexOf(t),n=hc.slice(r+1).concat(hc.slice(0,r));return e?n.reverse():n}var mc={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function jE(t,e){if(rg(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=cc(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],a=ss(n),i=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case mc.FLIP:o=[n,a];break;case mc.CLOCKWISE:o=sg(n);break;case mc.COUNTERCLOCKWISE:o=sg(n,!0);break;default:o=e.behavior}return o.forEach(function(u,c){if(n!==u||o.length===c+1)return t;n=t.placement.split("-")[0],a=ss(n);var l=t.offsets.popper,s=t.offsets.reference,d=Math.floor,p=n==="left"&&d(l.right)>d(s.left)||n==="right"&&d(l.left)<d(s.right)||n==="top"&&d(l.bottom)>d(s.top)||n==="bottom"&&d(l.top)<d(s.bottom),f=d(l.left)<d(r.left),h=d(l.right)>d(r.right),v=d(l.top)<d(r.top),y=d(l.bottom)>d(r.bottom),m=n==="left"&&f||n==="right"&&h||n==="top"&&v||n==="bottom"&&y,g=["top","bottom"].indexOf(n)!==-1,w=!!e.flipVariations&&(g&&i==="start"&&f||g&&i==="end"&&h||!g&&i==="start"&&v||!g&&i==="end"&&y),S=!!e.flipVariationsByContent&&(g&&i==="start"&&h||g&&i==="end"&&f||!g&&i==="start"&&y||!g&&i==="end"&&v),k=w||S;(p||m||k)&&(t.flipped=!0,(p||m)&&(n=o[c+1]),k&&(i=IE(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=wt({},t.offsets.popper,eg(t.instance.popper,t.offsets.reference,t.placement)),t=tg(t.instance.modifiers,t,"flip"))}),t}function FE(t){var e=t.offsets,r=e.popper,n=e.reference,a=t.placement.split("-")[0],i=Math.floor,o=["top","bottom"].indexOf(a)!==-1,u=o?"right":"bottom",c=o?"left":"top",l=o?"width":"height";return r[u]<i(n[c])&&(t.offsets.popper[c]=i(n[c])-r[l]),r[c]>i(n[u])&&(t.offsets.popper[c]=i(n[u])),t}function $E(t,e,r,n){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return t;if(o.indexOf("%")===0){var u=void 0;switch(o){case"%p":u=r;break;case"%":case"%r":default:u=n}var c=Mr(u);return c[e]/100*i}else if(o==="vh"||o==="vw"){var l=void 0;return o==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*i}else return i}function LE(t,e,r,n){var a=[0,0],i=["right","left"].indexOf(n)!==-1,o=t.split(/(\+|\-)/).map(function(s){return s.trim()}),u=o.indexOf(Va(o,function(s){return s.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=u!==-1?[o.slice(0,u).concat([o[u].split(c)[0]]),[o[u].split(c)[1]].concat(o.slice(u+1))]:[o];return l=l.map(function(s,d){var p=(d===1?!i:i)?"height":"width",f=!1;return s.reduce(function(h,v){return h[h.length-1]===""&&["+","-"].indexOf(v)!==-1?(h[h.length-1]=v,f=!0,h):f?(h[h.length-1]+=v,f=!1,h):h.concat(v)},[]).map(function(h){return $E(h,p,e,r)})}),l.forEach(function(s,d){s.forEach(function(p,f){fc(p)&&(a[d]+=p*(s[f-1]==="-"?-1:1))})}),a}function BE(t,e){var r=e.offset,n=t.placement,a=t.offsets,i=a.popper,o=a.reference,u=n.split("-")[0],c=void 0;return fc(+r)?c=[+r,0]:c=LE(r,i,o,u),u==="left"?(i.top+=c[0],i.left-=c[1]):u==="right"?(i.top+=c[0],i.left+=c[1]):u==="top"?(i.left+=c[0],i.top-=c[1]):u==="bottom"&&(i.left+=c[0],i.top+=c[1]),t.popper=i,t}function qE(t,e){var r=e.boundariesElement||$n(t.instance.popper);t.instance.reference===r&&(r=$n(r));var n=dc("transform"),a=t.instance.popper.style,i=a.top,o=a.left,u=a[n];a.top="",a.left="",a[n]="";var c=cc(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);a.top=i,a.left=o,a[n]=u,e.boundaries=c;var l=e.priority,s=t.offsets.popper,d={primary:function(f){var h=s[f];return s[f]<c[f]&&!e.escapeWithReference&&(h=Math.max(s[f],c[f])),Bn({},f,h)},secondary:function(f){var h=f==="right"?"left":"top",v=s[h];return s[f]>c[f]&&!e.escapeWithReference&&(v=Math.min(s[h],c[f]-(f==="right"?s.width:s.height))),Bn({},h,v)}};return l.forEach(function(p){var f=["left","top"].indexOf(p)!==-1?"primary":"secondary";s=wt({},s,d[f](p))}),t.offsets.popper=s,t}function HE(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var a=t.offsets,i=a.reference,o=a.popper,u=["bottom","top"].indexOf(r)!==-1,c=u?"left":"top",l=u?"width":"height",s={start:Bn({},c,i[c]),end:Bn({},c,i[c]+i[l]-o[l])};t.offsets.popper=wt({},o,s[n])}return t}function VE(t){if(!ig(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=Va(t.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(e.bottom<r.top||e.left>r.right||e.top>r.bottom||e.right<r.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function zE(t){var e=t.placement,r=e.split("-")[0],n=t.offsets,a=n.popper,i=n.reference,o=["left","right"].indexOf(r)!==-1,u=["top","left"].indexOf(r)===-1;return a[o?"left":"top"]=i[r]-(u?a[o?"width":"height"]:0),t.placement=ss(e),t.offsets.popper=Mr(a),t}var UE={shift:{order:100,enabled:!0,fn:HE},offset:{order:200,enabled:!0,fn:BE,offset:0},preventOverflow:{order:300,enabled:!0,fn:qE,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:FE},arrow:{order:500,enabled:!0,fn:NE,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:jE,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:zE},hide:{order:800,enabled:!0,fn:VE},computeStyle:{order:850,enabled:!0,fn:ME,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:DE,onLoad:AE,gpuAcceleration:void 0}},YE={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:UE},us=function(){function t(e,r){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};gE(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=hE(this.update.bind(this)),this.options=wt({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(wt({},t.Defaults.modifiers,a.modifiers)).forEach(function(o){n.options.modifiers[o]=wt({},t.Defaults.modifiers[o]||{},a.modifiers?a.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return wt({name:o},n.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&Hv(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return _E(t,[{key:"update",value:function(){return SE.call(this)}},{key:"destroy",value:function(){return CE.call(this)}},{key:"enableEventListeners",value:function(){return kE.call(this)}},{key:"disableEventListeners",value:function(){return PE.call(this)}}]),t}();us.Utils=(typeof window!="undefined"?window:global).PopperUtils,us.placements=og,us.Defaults=YE;const WE=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"}));function GE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ug(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ZE(t,e,r){return e&&ug(t.prototype,e),r&&ug(t,r),t}var KE=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(GE(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));JA(this,t.Defaults,this.constructor.Defaults,r,{type:e}),Qm(this,{type:Dr(),cancelable:Dr(),nativeEvent:Dr(),target:Dr(),relatedTarget:Dr(),vueTarget:Dr(),componentId:Dr()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},eT(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return ZE(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),QE='Setting prop "options" to an object is deprecated. Use the array format instead.',lg=rt({options:{type:[Array,Object],default:function(){return[]}},valueField:{type:String,default:"value"},textField:{type:String,default:"text"},htmlField:{type:String,default:"html"},disabledField:{type:String,default:"disabled"}},"formOptionControls");const XE={props:lg,computed:{formOptions:function(){return this.normalizeOptions(this.options)}},methods:{normalizeOption:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Jr(e)){var n=Qo(e,this.valueField),a=Qo(e,this.textField);return{value:Tn(n)?r||a:n,text:Bv(String(Tn(a)?r:a)),html:Qo(e,this.htmlField),disabled:!!Qo(e,this.disabledField)}}return{value:r||e,text:Bv(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return Et(e)?e.map(function(n){return r.normalizeOption(n)}):Jr(e)?(tv(QE,this.$options.name),Mt(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}};var cg=function(e,r){for(var n=0;n<e.length;n++)if(Jt(e[n],r))return n;return-1};function dg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function JE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dg(Object(r),!0).forEach(function(n){eM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fg="input, textarea, select",ls=JE({id:{type:String},name:{type:String}},rt({disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1}},"formControls"));const vc={props:ls,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var e=this;this.$nextTick(function(){Nn(function(){var r=e.$el;e.autofocus&&hv(r)&&(mv(r,fg)||(r=Xl(fg,r)),Tr(r))})})}}};var gc=rt({plain:{type:Boolean,default:!1}},"formControls");const pg={props:gc,computed:{custom:function(){return!this.plain}}};function hg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function cs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hg(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _c=rt(cs(cs({},gc),{},{value:{},checked:{},inline:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String},ariaLabel:{type:String},ariaLabelledby:{type:String}}),"formRadioCheckControls");const mg={mixins:[ac,pg,Fa],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:_c,data:function(){return{localChecked:this.isGroup?this.bvGroup.checked:this.checked,hasFocus:!1}},computed:{computedLocalChecked:{get:function(){return this.isGroup?this.bvGroup.localChecked:this.localChecked},set:function(e){this.isGroup?this.bvGroup.localChecked=e:this.localChecked=e}},isGroup:function(){return!!this.bvGroup},isBtnMode:function(){return this.isGroup?this.bvGroup.buttons:this.button},isPlain:function(){return this.isBtnMode?!1:this.isGroup?this.bvGroup.plain:this.plain},isCustom:function(){return this.isBtnMode?!1:!this.isPlain},isSwitch:function(){return this.isBtnMode||this.isRadio||this.isPlain?!1:this.isGroup?this.bvGroup.switches:this.switch},isInline:function(){return this.isGroup?this.bvGroup.inline:this.inline},isDisabled:function(){return this.isGroup?this.bvGroup.disabled||this.disabled:this.disabled},isRequired:function(){return this.getName&&(this.isGroup?this.bvGroup.required:this.required)},getName:function(){return(this.isGroup?this.bvGroup.groupName:this.name)||null},getForm:function(){return(this.isGroup?this.bvGroup.form:this.form)||null},getSize:function(){return(this.isGroup?this.bvGroup.size:this.size)||""},getState:function(){return this.isGroup?this.bvGroup.computedState:this.computedState},getButtonVariant:function(){return this.buttonVariant?this.buttonVariant:this.isGroup&&this.bvGroup.buttonVariant?this.bvGroup.buttonVariant:"secondary"},buttonClasses:function(){var e;return["btn","btn-".concat(this.getButtonVariant),(e={},qn(e,"btn-".concat(this.getSize),this.getSize),qn(e,"disabled",this.isDisabled),qn(e,"active",this.isChecked),qn(e,"focus",this.hasFocus),e)]},computedAttrs:function(){return cs(cs({},this.bvAttrs),{},{id:this.safeId(),type:this.isRadio?"radio":"checkbox",name:this.getName,form:this.getForm,disabled:this.isDisabled,required:this.isRequired,"aria-required":this.isRequired||null,"aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||null})}},watch:{checked:function(e){Jt(e,this.computedLocalChecked)||(this.computedLocalChecked=e)}},methods:{handleFocus:function(e){e.target&&(e.type==="focus"?this.hasFocus=!0:e.type==="blur"&&(this.hasFocus=!1))},focus:function(){this.isDisabled||Tr(this.$refs.input)},blur:function(){this.isDisabled||gv(this.$refs.input)}},render:function(e){var r=this.normalizeSlot(),n={change:this.handleChange};this.isBtnMode&&(n.focus=n.blur=this.handleFocus);var a=e("input",{ref:"input",key:"input",on:n,class:{"form-check-input":this.isPlain,"custom-control-input":this.isCustom,"is-valid":this.getState===!0&&!this.isBtnMode,"is-invalid":this.getState===!1&&!this.isBtnMode,"position-static":this.isPlain&&!r},directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:this.computedAttrs,domProps:{value:this.value,checked:this.isChecked}});if(this.isBtnMode){var i=e("label",{class:this.buttonClasses},[a,r]);return this.isGroup||(i=e("div",{class:["btn-group-toggle","d-inline-block"]},[i])),i}else{var o=e();return this.isPlain&&!r||(o=e("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},r)),e("div",{class:qn({"form-check":this.isPlain,"form-check-inline":this.isPlain&&this.isInline,"custom-control":this.isCustom,"custom-control-inline":this.isCustom&&this.isInline,"custom-checkbox":this.isCustom&&this.isCheck&&!this.isSwitch,"custom-switch":this.isSwitch,"custom-radio":this.isCustom&&this.isRadio},"b-custom-control-".concat(this.getSize),!!(this.getSize&&!this.isBtnMode))},[a,o])}}};var ds=rt({size:{type:String}},"formControls");const yc={props:ds,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}};var fs=rt({state:{type:Boolean,default:null}},"formState");const bc={props:fs,computed:{computedState:function(){return Wl(this.state)?this.state:null},stateClass:function(){var e=this.computedState;return e===!0?"is-valid":e===!1?"is-invalid":null},computedAriaInvalid:function(){var e=this.ariaInvalid;return e===!0||e==="true"||e===""||this.computedState===!1?"true":e}}};function vg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function za(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vg(Object(r),!0).forEach(function(n){tM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function tM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rM=_.extend({name:av,mixins:[mg,is,vc,yc,bc],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:rt(za(za(za(za(za({},ls),_c),ds),fs),{},{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}}),av),computed:{isChecked:function(){var e=this.value,r=this.computedLocalChecked;return Et(r)?cg(r,e)>-1:Jt(r,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(e,r){if(!Jt(e,r)){this.$emit("input",e);var n=this.$refs.input;n&&this.$emit("update:indeterminate",n.indeterminate)}},indeterminate:function(e){this.setIndeterminate(e)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(e){var r=this,n=e.target,a=n.checked,i=n.indeterminate,o=this.value,u=this.uncheckedValue,c=this.computedLocalChecked;if(Et(c)){var l=cg(c,o);a&&l<0?c=c.concat(o):!a&&l>-1&&(c=c.slice(0,l).concat(c.slice(l+1)))}else c=a?o:u;this.computedLocalChecked=c,this.$nextTick(function(){r.$emit("change",c),r.isGroup&&r.bvGroup.$emit("change",c),r.$emit("update:indeterminate",i)})},setIndeterminate:function(e){Et(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit("update:indeterminate",e))}}});function gg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ua(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gg(Object(r),!0).forEach(function(n){nM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function nM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var aM=_.extend({name:iv,mixins:[is,mg,vc,yc,bc],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:rt(Ua(Ua(Ua(Ua(Ua({},ls),_c),ds),fs),{},{checked:{default:null}}),iv),computed:{isChecked:function(){return Jt(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(e,r){Jt(e,r)||this.$emit("input",e)}},methods:{handleChange:function(e){var r=this,n=e.target.checked,a=this.value,i=n?a:null;this.computedLocalChecked=a,this.$nextTick(function(){r.$emit("change",i),r.isGroup&&r.bvGroup.$emit("change",i)})}}});function _g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Hn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_g(Object(r),!0).forEach(function(n){yg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bg=rt(Hn(Hn(Hn(Hn(Hn(Hn({},ls),lg),ds),fs),gc),{},{checked:{default:null},validated:{type:Boolean,default:!1},ariaInvalid:{type:[Boolean,String],default:!1},stacked:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},buttonVariant:{type:String}}),"formRadioCheckGroups");const iM={mixins:[is,Fa,vc,XE,yc,bc,pg],model:{prop:"checked",event:"input"},props:bg,data:function(){return{localChecked:this.checked}},computed:{inline:function(){return!this.stacked},groupName:function(){return this.name||this.safeId()},groupClasses:function(){var e=this.inline,r=this.size,n=this.validated,a={"was-validated":n};return this.buttons&&(a=[a,"btn-group-toggle",yg({"btn-group":e,"btn-group-vertical":!e},"btn-group-".concat(r),!!r)]),a}},watch:{checked:function(e){Jt(e,this.localChecked)||(this.localChecked=e)},localChecked:function(e,r){Jt(e,r)||this.$emit("input",e)}},render:function(e){var r=this,n=this.isRadioGroup,a=n?aM:rM,i=this.formOptions.map(function(o,u){var c="BV_option_".concat(u);return e(a,{props:{id:r.safeId(c),value:o.value,disabled:o.disabled||!1},key:c},[e("span",{domProps:as(o.html,o.text)})])});return e("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:{id:this.safeId(),role:n?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot(MT),i,this.normalizeSlot()])}};var oM=rt(bg,ov),je=_.extend({name:ov,mixins:[iM],provide:function(){return{bvRadioGroup:this}},props:oM,computed:{isRadioGroup:function(){return!0}}}),sM=_.extend({abstract:!0,name:vT,props:{nodes:{type:[Array,Function]}},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){xT(this.$el)},render:function(e){var r=Xt(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return r=hr(r).filter(Boolean),r&&r.length>0&&!r[0].text?r[0]:e()}}),uM=_.extend({name:mT,mixins:[Fa],props:{disabled:{type:Boolean,default:!1},container:{type:[String,Ym],default:"body"},tag:{type:String,default:"div"}},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(ct){var e=this.container;return Xr(e)?Xl(e):e}else return null},mountTarget:function(){if(!this.$_target){var e=this.getContainer();if(e){var r=document.createElement("div");e.appendChild(r),this.$_target=new sM({el:r,parent:this,propsData:{nodes:hr(this.normalizeSlot())}})}}},updateTarget:function(){if(ct&&this.$_target){var e=this.$scopedSlots.default;this.disabled||(e&&this.$_defaultFn!==e?this.$_target.updatedNodes=e:e||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=e}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(e){if(this.disabled){var r=hr(this.normalizeSlot()).filter(Mn);if(r.length>0&&!r[0].text)return r[0]}return e()}}),Nt="$_bv_documentHandlers_";const lM={created:function(){var e=this;ct&&(this[Nt]={},this.$once("hook:beforeDestroy",function(){var r=e[Nt]||{};delete e[Nt],Mt(r).forEach(function(n){var a=r[n]||[];a.forEach(function(i){return $a(document,n,i,Er)})})}))},methods:{listenDocument:function(e,r,n){e?this.listenOnDocument(r,n):this.listenOffDocument(r,n)},listenOnDocument:function(e,r){this[Nt]&&Xr(e)&&Xt(r)&&(this[Nt][e]=this[Nt][e]||[],Ql(this[Nt][e],r)||(this[Nt][e].push(r),nc(document,e,r,Er)))},listenOffDocument:function(e,r){this[Nt]&&Xr(e)&&Xt(r)&&($a(document,e,r,Er),this[Nt][e]=(this[Nt][e]||[]).filter(function(n){return n!==r}))}}};var It="$_bv_windowHandlers_";const cM={beforeCreate:function(){this[It]={}},beforeDestroy:function(){if(ct){var e=this[It];delete this[It],Mt(e).forEach(function(r){var n=e[r]||[];n.forEach(function(a){return $a(window,r,a,Er)})})}},methods:{listenWindow:function(e,r,n){e?this.listenOnWindow(r,n):this.listenOffWindow(r,n)},listenOnWindow:function(e,r){ct&&this[It]&&Xr(e)&&Xt(r)&&(this[It][e]=this[It][e]||[],Ql(this[It][e],r)||(this[It][e].push(r),nc(window,e,r,Er)))},listenOffWindow:function(e,r){ct&&this[It]&&Xr(e)&&Xt(r)&&($a(window,e,r,Er),this[It][e]=(this[It][e]||[]).filter(function(n){return n!==r}))}}};var dM=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function fM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const pM={computed:{scopedStyleAttrs:function(){var e=dM(this.$parent);return e?fM({},e,""):{}}}};var wg=1040,wc={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},hM=_.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(e,r){ct&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),Ea(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),vv(document.body,"modal-open")),Ma(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),Nn(function(){r.updateModals(e||[])})}},methods:{registerModal:function(e){var r=this;e&&this.modals.indexOf(e)===-1&&(this.modals.push(e),e.$once("hook:beforeDestroy",function(){r.unregisterModal(e)}))},unregisterModal:function(e){var r=this.modals.indexOf(e);r>-1&&(this.modals.splice(r,1),e._isBeingDestroyed||e._isDestroyed||this.resetModal(e))},getBaseZIndex:function(){if(Rr(this.baseZIndex)&&ct){var e=document.createElement("div");Ea(e,"modal-backdrop"),Ea(e,"d-none"),Ar(e,"display","none"),document.body.appendChild(e),this.baseZIndex=wT(Ia(e).zIndex,wg),document.body.removeChild(e)}return this.baseZIndex||wg},getScrollbarWidth:function(){if(Rr(this.scrollbarWidth)&&ct){var e=document.createElement("div");Ea(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=rc(e).width-e.clientWidth,document.body.removeChild(e)}return this.scrollbarWidth||0},updateModals:function(e){var r=this,n=this.getBaseZIndex(),a=this.getScrollbarWidth();e.forEach(function(i,o){i.zIndex=n+o,i.scrollbarWidth=a,i.isTop=o===r.modals.length-1,i.isBodyOverflowing=r.isBodyOverflowing})},resetModal:function(e){e&&(e.zIndex=this.getBaseZIndex(),e.isTop=!0,e.isBodyOverflowing=!1)},checkScrollbar:function(){var e=rc(document.body),r=e.left,n=e.right;this.isBodyOverflowing=r+n<window.innerWidth},setScrollbar:function(){var e=document.body;if(e._paddingChangedForModal=e._paddingChangedForModal||[],e._marginChangedForModal=e._marginChangedForModal||[],this.isBodyOverflowing){var r=this.scrollbarWidth;rs(wc.FIXED_CONTENT).forEach(function(a){var i=Na(a,"paddingRight")||"";Ma(a,"data-padding-right",i),Ar(a,"paddingRight","".concat(Xo(Ia(a).paddingRight,0)+r,"px")),e._paddingChangedForModal.push(a)}),rs(wc.STICKY_CONTENT).forEach(function(a){var i=Na(a,"marginRight")||"";Ma(a,"data-margin-right",i),Ar(a,"marginRight","".concat(Xo(Ia(a).marginRight,0)-r,"px")),e._marginChangedForModal.push(a)}),rs(wc.NAVBAR_TOGGLER).forEach(function(a){var i=Na(a,"marginRight")||"";Ma(a,"data-margin-right",i),Ar(a,"marginRight","".concat(Xo(Ia(a).marginRight,0)+r,"px")),e._marginChangedForModal.push(a)});var n=Na(e,"paddingRight")||"";Ma(e,"data-padding-right",n),Ar(e,"paddingRight","".concat(Xo(Ia(e).paddingRight,0)+r,"px"))}},resetScrollbar:function(){var e=document.body;e._paddingChangedForModal&&e._paddingChangedForModal.forEach(function(r){tc(r,"data-padding-right")&&(Ar(r,"paddingRight",ec(r,"data-padding-right")||""),Jl(r,"data-padding-right"))}),e._marginChangedForModal&&e._marginChangedForModal.forEach(function(r){tc(r,"data-margin-right")&&(Ar(r,"marginRight",ec(r,"data-margin-right")||""),Jl(r,"data-margin-right"))}),e._paddingChangedForModal=null,e._marginChangedForModal=null,tc(e,"data-padding-right")&&(Ar(e,"paddingRight",ec(e,"data-padding-right")||""),Jl(e,"data-padding-right"))}}}),Ya=new hM;function ps(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ps=function(r){return typeof r}:ps=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ps(t)}function Sg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Cg(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sg(Object(r),!0).forEach(function(n){mM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Og(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gM(t,e,r){return e&&Og(t.prototype,e),r&&Og(t,r),t}function hs(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?hs=Reflect.get:hs=function(a,i,o){var u=_M(a,i);if(u){var c=Object.getOwnPropertyDescriptor(u,i);return c.get?c.get.call(o):c.value}},hs(t,e,r||t)}function _M(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Vn(t),t!==null););return t}function yM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sc(t,e)}function Sc(t,e){return Sc=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Sc(t,e)}function bM(t){var e=SM();return function(){var n=Vn(t),a;if(e){var i=Vn(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return wM(this,a)}}function wM(t,e){return e&&(ps(e)==="object"||typeof e=="function")?e:kg(t)}function kg(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Vn(t){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vn(t)}var CM=function(t){yM(r,t);var e=bM(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return vM(this,r),a=e.call(this,n,i),Qm(kg(a),{trigger:Dr()}),a}return gM(r,null,[{key:"Defaults",get:function(){return Cg(Cg({},hs(Vn(r),"Defaults",this)),{},{trigger:null})}}]),r}(KE);function xg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xg(Object(r),!0).forEach(function(n){St(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function St(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var OM={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},kM=rt({size:{type:String,default:"md"},centered:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},buttonSize:{type:String},noStacking:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noEnforceFocus:{type:Boolean,default:!1},ignoreEnforceFocusSelector:{type:[Array,String],default:""},title:{type:String,default:""},titleHtml:{type:String},titleTag:{type:String,default:"h5"},titleClass:{type:[String,Array,Object]},titleSrOnly:{type:Boolean,default:!1},ariaLabel:{type:String},headerBgVariant:{type:String},headerBorderVariant:{type:String},headerTextVariant:{type:String},headerCloseVariant:{type:String},headerClass:{type:[String,Array,Object]},bodyBgVariant:{type:String},bodyTextVariant:{type:String},modalClass:{type:[String,Array,Object]},dialogClass:{type:[String,Array,Object]},contentClass:{type:[String,Array,Object]},bodyClass:{type:[String,Array,Object]},footerBgVariant:{type:String},footerBorderVariant:{type:String},footerTextVariant:{type:String},footerClass:{type:[String,Array,Object]},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},hideBackdrop:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},okDisabled:{type:Boolean,default:!1},cancelDisabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},returnFocus:{type:[Ym,String,Object],default:null},headerCloseContent:{type:String,default:"&times;"},headerCloseLabel:{type:String,default:"Close"},cancelTitle:{type:String,default:"Cancel"},cancelTitleHtml:{type:String},okTitle:{type:String,default:"OK"},okTitleHtml:{type:String},cancelVariant:{type:String,default:"secondary"},okVariant:{type:String,default:"primary"},lazy:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},static:{type:Boolean,default:!1},autoFocusButton:{type:String,default:null,validator:function(e){return Zo(e)||Ql(["ok","cancel","close"],e)}}},uv),Cc=_.extend({name:uv,mixins:[ac,is,lM,lE,cM,Fa,pM],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:kM,data:function(){return{isHidden:!0,isVisible:!1,isTransitioning:!1,isShow:!1,isBlock:!1,isOpening:!1,isClosing:!1,ignoreBackdropClick:!1,isModalOverflowing:!1,return_focus:this.returnFocus||null,scrollbarWidth:0,zIndex:Ya.getBaseZIndex(),isTop:!0,isBodyOverflowing:!1}},computed:{modalId:function(){return this.safeId()},modalOuterId:function(){return this.safeId("__BV_modal_outer_")},modalHeaderId:function(){return this.safeId("__BV_modal_header_")},modalBodyId:function(){return this.safeId("__BV_modal_body_")},modalTitleId:function(){return this.safeId("__BV_modal_title_")},modalContentId:function(){return this.safeId("__BV_modal_content_")},modalFooterId:function(){return this.safeId("__BV_modal_footer_")},modalBackdropId:function(){return this.safeId("__BV_modal_backdrop_")},modalClasses:function(){return[{fade:!this.noFade,show:this.isShow},this.modalClass]},modalStyles:function(){var e="".concat(this.scrollbarWidth,"px");return{paddingLeft:!this.isBodyOverflowing&&this.isModalOverflowing?e:"",paddingRight:this.isBodyOverflowing&&!this.isModalOverflowing?e:"",display:this.isBlock?"block":"none"}},dialogClasses:function(){var e;return[(e={},St(e,"modal-".concat(this.size),this.size),St(e,"modal-dialog-centered",this.centered),St(e,"modal-dialog-scrollable",this.scrollable),e),this.dialogClass]},headerClasses:function(){var e;return[(e={},St(e,"bg-".concat(this.headerBgVariant),this.headerBgVariant),St(e,"text-".concat(this.headerTextVariant),this.headerTextVariant),St(e,"border-".concat(this.headerBorderVariant),this.headerBorderVariant),e),this.headerClass]},titleClasses:function(){return[{"sr-only":this.titleSrOnly},this.titleClass]},bodyClasses:function(){var e;return[(e={},St(e,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),St(e,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),e),this.bodyClass]},footerClasses:function(){var e;return[(e={},St(e,"bg-".concat(this.footerBgVariant),this.footerBgVariant),St(e,"text-".concat(this.footerTextVariant),this.footerTextVariant),St(e,"border-".concat(this.footerBorderVariant),this.footerBorderVariant),e),this.footerClass]},modalOuterStyle:function(){return{position:"absolute",zIndex:this.zIndex}},slotScope:function(){return{ok:this.onOk,cancel:this.onCancel,close:this.onClose,hide:this.hide,visible:this.isVisible}},computeIgnoreEnforceFocusSelector:function(){return hr(this.ignoreEnforceFocusSelector).filter(Mn).join(",").trim()},computedAttrs:function(){var e=this.static?{}:this.scopedStyleAttrs;return Wa(Wa(Wa({},e),this.bvAttrs),{},{id:this.modalOuterId})},computedModalAttrs:function(){var e=this.isVisible,r=this.ariaLabel;return{id:this.modalId,role:"dialog","aria-hidden":e?null:"true","aria-modal":e?"true":null,"aria-label":r,"aria-labelledby":this.hideHeader||r||!(this.hasNormalizedSlot("modal-title")||this.titleHtml||this.title)?null:this.modalTitleId,"aria-describedby":this.modalBodyId}}},watch:{visible:function(e,r){e!==r&&this[e?"show":"hide"]()}},created:function(){this.$_observer=null},mounted:function(){this.zIndex=Ya.getBaseZIndex(),this.listenOnRoot("bv::show::modal",this.showHandler),this.listenOnRoot("bv::hide::modal",this.hideHandler),this.listenOnRoot("bv::toggle::modal",this.toggleHandler),this.listenOnRoot("bv::modal::show",this.modalListener),this.visible===!0&&this.$nextTick(this.show)},beforeDestroy:function(){this.setObserver(!1),this.isVisible&&(this.isVisible=!1,this.isShow=!1,this.isTransitioning=!1)},methods:{setObserver:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=uE(this.$refs.content,this.checkModalOverflow.bind(this),OM))},updateModel:function(e){e!==this.visible&&this.$emit("change",e)},buildEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new CM(e,Wa(Wa({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},r),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!(this.isVisible||this.isOpening)){if(this.isClosing){this.$once("hidden",this.show);return}this.isOpening=!0,this.return_focus=this.return_focus||this.getActiveElement();var e=this.buildEvent("show",{cancelable:!0});if(this.emitEvent(e),e.defaultPrevented||this.isVisible){this.isOpening=!1,this.updateModel(!1);return}this.doShow()}},hide:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(!(!this.isVisible||this.isClosing)){this.isClosing=!0;var r=this.buildEvent("hide",{cancelable:e!=="FORCE",trigger:e||null});if(e==="ok"?this.$emit("ok",r):e==="cancel"?this.$emit("cancel",r):e==="headerclose"&&this.$emit("close",r),this.emitEvent(r),r.defaultPrevented||!this.isVisible){this.isClosing=!1,this.updateModel(!0);return}this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(e){e&&(this.return_focus=e),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){var e=fv(ct?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(Ya.modalsAreOpen&&this.noStacking){this.listenOnRootOnce("bv::modal::hidden",this.doShow);return}Ya.registerModal(this),this.isHidden=!1,this.$nextTick(function(){e.isVisible=!0,e.isOpening=!1,e.updateModel(!0),e.$nextTick(function(){e.setObserver(!0)})})},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var e=this;this.isBlock=!0,Nn(function(){Nn(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,Nn(function(){e.emitEvent(e.buildEvent("shown")),e.setEnforceFocus(!0),e.$nextTick(function(){e.focusFirst()})})},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var e=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick(function(){e.isClosing=!1,Ya.unregisterModal(e),e.returnFocusTo(),e.emitEvent(e.buildEvent("hidden"))})},emitEvent:function(e){var r=e.type;this.emitOnRoot("bv::modal::".concat(r),e,e.componentId),this.$emit(r,e)},onDialogMousedown:function(){var e=this,r=this.$refs.modal,n=function a(i){$a(r,"mouseup",a,Er),i.target===r&&(e.ignoreBackdropClick=!0)};nc(r,"mouseup",n,Er)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!Ta(document.body,e.target)||Ta(this.$refs.content,e.target)||this.hide("backdrop")},onOk:function(){this.hide("ok")},onCancel:function(){this.hide("cancel")},onClose:function(){this.hide("headerclose")},onEsc:function(e){e.keyCode===zT&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(e){var r=this.$refs.content,n=e.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!r||document===n||Ta(r,n)||this.computeIgnoreEnforceFocusSelector&&PT(this.computeIgnoreEnforceFocusSelector,n,!0))){var a=RT(this.$refs.content),i=this.$refs,o=i.bottomTrap,u=i.topTrap;if(o&&n===o){if(Tr(a[0]))return}else if(u&&n===u&&Tr(a[a.length-1]))return;Tr(r,{preventScroll:!0})}},setEnforceFocus:function(e){this.listenDocument(e,"focusin",this.focusHandler)},setResizeEvent:function(e){this.listenWindow(e,"resize",this.checkModalOverflow),this.listenWindow(e,"orientationchange",this.checkModalOverflow)},showHandler:function(e,r){e===this.modalId&&(this.return_focus=r||this.getActiveElement(),this.show())},hideHandler:function(e){e===this.modalId&&this.hide("event")},toggleHandler:function(e,r){e===this.modalId&&this.toggle(r)},modalListener:function(e){this.noStacking&&e.vueTarget!==this&&this.hide()},focusFirst:function(){var e=this;ct&&Nn(function(){var r=e.$refs.modal,n=e.$refs.content,a=e.getActiveElement();if(r&&n&&!(a&&Ta(n,a))){var i=e.$refs["ok-button"],o=e.$refs["cancel-button"],u=e.$refs["close-button"],c=e.autoFocusButton,l=c==="ok"&&i?i.$el||i:c==="cancel"&&o?o.$el||o:c==="close"&&u?u.$el||u:n;Tr(l),l===n&&e.$nextTick(function(){r.scrollTop=0})}})},returnFocusTo:function(){var e=this.returnFocus||this.return_focus||null;this.return_focus=null,this.$nextTick(function(){e=Xr(e)?Xl(e):e,e&&(e=e.$el||e,Tr(e))})},checkModalOverflow:function(){if(this.isVisible){var e=this.$refs.modal;this.isModalOverflowing=e.scrollHeight>document.documentElement.clientHeight}},makeModal:function(e){var r=e();if(!this.hideHeader){var n=this.normalizeSlot("modal-header",this.slotScope);if(!n){var a=e();this.hideHeaderClose||(a=e(jT,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot("modal-header-close")])),n=[e(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot("modal-title")?{}:as(this.titleHtml,this.title)},this.normalizeSlot("modal-title",this.slotScope)),a]}r=e("header",{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var i=e("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(ja,this.slotScope)),o=e();if(!this.hideFooter){var u=this.normalizeSlot("modal-footer",this.slotScope);if(!u){var c=e();this.okOnly||(c=e(Lv,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:as(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=e(Lv,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:as(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));u=[c,l]}o=e("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[u])}var s=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[r,i,o]),d=e(),p=e();this.isVisible&&!this.noEnforceFocus&&(d=e("span",{ref:"topTrap",attrs:{tabindex:"0"}}),p=e("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,s,p]),h=e("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);h=e("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[h]);var v=e();return!this.hideBackdrop&&this.isVisible&&(v=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),v=e(ET,{props:{noFade:this.noFade}},[v]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[h,v])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(uM,[this.makeModal(e)])}});const xM=_.defineComponent({name:"BikeForm",components:{SimpleCard:U,DefaultSelect:se,DefaultInput:ee,ZipcodeInput:Dn,BirthdateInput:Ce,ErrorHandler:Y,BFormRadioGroup:je},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:P.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=$l(t,e);return{bikeState:Tt,userState:C,bikeKinds:Ll,bikeConditions:Bl,errors:H,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Pg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("default-select",{class:{"select-empty-value":!e.bikeState.kind},attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Maak een keuze",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},PM=[];Pg._withStripped=!0;var Rg=T(xM,Pg,PM,!1,null,null,null,null);Rg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/bike/components/forms/BikeForm.vue";const RM=Rg.exports,DM=_.defineComponent({name:"BikeFormHorizontal",components:{SimpleCard:U,DefaultSelect:se,DefaultInput:ee,ZipcodeInput:Dn,BirthdateInput:Ce,ErrorHandler:Y,BFormRadioGroup:je},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:P.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=$l(t,e);return{bikeState:Tt,userState:C,bikeKinds:Ll,bikeConditions:Bl,errors:H,hasNewDesign:F,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Dg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-bike"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons mt-md-3 mt-xl-0",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer"},[e._v(" Vergelijken ")])])],1)])])},AM=[];Dg._withStripped=!0;var Ag=T(DM,Dg,AM,!1,null,null,null,null);Ag.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/bike/components/forms/BikeFormHorizontal.vue";const TM=Ag.exports,EM=_.defineComponent({name:"BikeFormOld",components:{SimpleCard:U,DefaultSelect:se,DefaultInput:ee,ZipcodeInput:Dn,BirthdateInput:Ce,ErrorHandler:Y,BFormRadioGroup:je},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:P.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=$l(t,e);return{bikeState:Tt,userState:C,bikeKinds:Ll,bikeConditions:Bl,errors:H,hasNewDesign:F,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Tg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-card",class:{[e.classes]:!!e.classes}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content"},[r("div",{staticClass:"vd-form-group"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[e.errors.has("kind:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Selecteer je fiets ")]):e._e()]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}})],1),r("div",{staticClass:"vd-form-group"},[r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}})],1),r("div",{staticClass:"vd-form-group"},[e._m(0),r("b-form-radio-group",{attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),e.hasBikeConditionError?r("p",{staticClass:"vd-form-error"},[e._v(" Is je fiets nieuw of tweedehands gekocht? ")]):e._e()],1),r("div",{staticClass:"vd-form-group"},[r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[e.errors.has("price:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Vul de aankoopprijs in (afgerond bedrag) ")]):e._e()])],2)],1),r("button",{staticClass:"btn-a btn-a--success btn-a--bold btn-block mt-2"},[e._v(" Vergelijken ")])])])])},MM=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[t._v(" Gekocht als "),e("span",{staticClass:"text-danger mr-3 mt-2"},[t._v("*")])])}];Tg._withStripped=!0;var Eg=T(EM,Tg,MM,!1,null,null,null,null);Eg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/bike/components/forms/BikeFormOld.vue";const NM=Eg.exports,IM=t=>{const e=t.find(l=>l.type==="bezoekadres"),{huisnummer:r,huisletter:n="",huisnummerToevoeging:a="",plaats:i,postcode:o,straatnaam:u}=e;return{houseNumber:r,houseNumberAddition:n||a,city:i,zipCode:o,streetName:u}},Oc=()=>{const t=lt.companyData,e=t._embedded.hoofdvestiging.adressen,r=IM(e),n=t.sbiActiviteiten;let a=null;const i=[];for(const u of n)u.indHoofdactiviteit==="Ja"&&(a=u.sbiCode),i.push(u.sbiCode);const o={name:t.naam,kvkNumber:t.kvkNummer,industry:t.sbiIndustryId,numberOfEmployees:t.totaalWerkzamePersonen,legalForm:t._embedded.eigenaar.rechtsvorm,mainSBI:a,otherSBI:i};return pt(pt({},o),r)},jM=()=>{const t={name:"car",data:Ee},e={name:"companyData",data:Oc()};return[t,e]};function FM(t,e,r,n=!1){const a=n&&typeof r=="string"?r.toLowerCase():r;return t.find(i=>(n&&typeof r=="string"?i[e].toLowerCase():i[e])===a)}function rn(t){if(t.length===1)return t;const e=[];for(const r of t)e.some(n=>JSON.stringify(r)===JSON.stringify(n))||e.push(r);return e}const kc=_.ref(!1),Mg=(t,e)=>{const r=_.ref(!1);let n=_.ref(!1);const{submitFormAndUpdateFormData:a,submitFormAndCreateComparison:i,removeSessionState:o,openQuotationModal:u}=Xe(e),c=()=>`${t.link}#/<<COMPARISONID>>`,l=()=>{Object.assign(Ee,t.insuranceState)},s=()=>{kc.value=!1},d=()=>{kc.value=!0},p=()=>N(this,null,function*(){return r.value=!Object.keys(lt.companyData).length||!lt.companyData.naam,(yield Be(["license","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!kc.value&&!r.value});function f(){return N(this,null,function*(){try{if(yield p())if(t.formLocation===P.isOnCoveragePage){const v=Oc();a({companyData:v,carState:Ee})}else yield i("car-business",jM(),c())}catch(v){h(v)}})}const h=v=>{console.error(v);const y=Oc();z.refId="192",z.notes.push({text:"Kan geen comparison ID aanmaken voor zakelijk autoverzekering vergelijking"}),z.notes.push({text:`Kenteken: ${Ee.LicensePlate} | Postcode: ${y.zipCode} | Huisnummer: ${y.houseNumber} | Huisnummer toevoeging: ${y.houseNumberAddition}`}),z.notes=rn(z.notes),u()};return _.onMounted(()=>{n.value=!0,t.formLocation===P.isOnCoveragePage&&l(),t.formLocation===P.isBeforeFlow&&o("car-business-storage","car-business-path")}),{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:f}};function $M(t){return t=t.split("-").join(""),t}function LM(t,e){return t.split("").reduce((r,n,a)=>(n===e&&r.push(a),r),[])}function BM(t){const e=parseInt(t);return!!(e==0||e&&!isNaN(e))}const xc=["XX-99-XX","99-99-XX","99-XX-XX","XX-XX-99","99-XX-99","XX-99-99","99-XXX-9","XX-999-X","X-999-XX","9-XXX-99","XXX-99-X","X-99-XXX","9-XX-999","999-XX-9"];function ms(t){let e="";if(e=$M(t),e.length>=6){const r=HM(e).join("");let n=[];for(let a=0;a<xc.length;a++){const i=xc[a],o=i.split("-").join("");if(o===r){n=o.split(""),n=qM(i,n,e);break}if(xc.length===a+1)return"no-template-found"}if(n.length===8)return n.join("")}return e}function qM(t,e,r){return e.map((n,a)=>e[a]=r[a]),LM(t,"-").forEach(n=>e.splice(n,0,"-")),e}function HM(t){let e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&(BM(n)?e=[...e,"9"]:e=[...e,"X"])}return e}const VM=_.defineComponent({name:"LicensePlate",components:{ErrorHandler:Y},props:{label:{type:String,required:!1,default:"Kenteken"},name:{type:String,required:!0},placeholder:{type:String,required:!1,default:""},id:{type:String,required:!0},disabled:{type:Boolean,required:!1,default:!1},value:{type:String,required:!0},vehicleTypes:{type:Array[String],required:!1,default:()=>[]},insuranceDutchNaming:{type:String,required:!0},propVehicleInformation:{required:!1,default:()=>{}},vehicleType:{type:String,required:!0,validator:t=>["motor","car","moped"].includes(t)}},setup(t,{emit:e}){let r=_.ref("");const n=_.ref({});let a=_.ref(!1),i=_.ref(!1),o=_.ref(!1),u=_.ref(!1),c=_.ref(!1);const l={motor:"fa-motorcycle",car:"fa-car",Brommobiel:"fa-car-side","Speed Pedelec":"fa-bicycle"},s=_.computed(()=>[{rule:"required",text:"Dit veld is verplicht"},{rule:"minlength",text:"Kenteken is incorrect"},{rule:p.value,text:"Kenteken is incorrect"},{rule:u.value,text:"Kenteken is incorrect"},{rule:o.value,text:"Kenteken onbekend"},{rule:i.value,text:`Het ingevoerde kenteken is geen ${t.insuranceDutchNaming.toLowerCase()}`},{rule:!a.value&&h(t.value)&&!n.value.VehicleType&&Object.keys(n.value).length!==0,text:"Voertuig onbekend - Voer ander kenteken in of neem contact op"}]),d=_.computed(()=>o.value||i.value||p.value),p=_.computed(()=>ms(r.value)==="no-template-found"&&h(r.value)),f=_.computed(()=>!a.value&&n.value.Brand&&n.value.Model&&t.vehicleTypes.includes(n.value.VehicleType)&&t.value.length>=6&&!H.has(t.name)&&!p.value&&!u.value),h=k=>k.length===8,v=k=>{c.value=!0,e("focus")},y=k=>{c.value=!1,e("blur");let A=k.srcElement.name;const $=J.fields.find({name:A});($!==null||$!==void 0&&$)&&J.validate($.name)},m=(k,A,$)=>{A==="input"&&(o.value=!1,u.value=!1),k||(i.value=!1),k.length<8&&(n.value={});let L=ms(k);if(L==="no-template-found"){r.value=k,J.validate(t.name),e(A,k),e("on-error");return}e(A,L.toUpperCase()),r.value=L.toUpperCase(),h(L)&&A==="input"&&(J.validate(t.name),$&&S(L.toUpperCase()))},g=k=>{u.value=!1;let A=(k.clipboardData||window.clipboardData).getData("text");if(A=A.trim(),typeof A=="string"&&A){let $=ms(A);if($==="no-template-found"){r.value=A,e("input",A),e("on-error"),k.preventDefault();return}e("input",$.toUpperCase()),r.value=$.toUpperCase(),e("license-correct"),h($)&&(J.validate(t.name),S($.toUpperCase())),k.preventDefault()}},w=(k,A)=>N(this,null,function*(){const $=k.toLocaleLowerCase(),L=yield $e.dataService.findVehicle(A,$);return L||null}),S=k=>N(this,null,function*(){try{j.value=!0,a.value=!0,i.value=!1,o.value=!1,n.value={};let A=yield w(t.vehicleType,k);if(Array.isArray(A)&&!A.length){a.value=!1,o.value=!0,J.validate("unknownLicensePlateHiddenField");return}if(t.vehicleTypes.length!==0&&!t.vehicleTypes.includes(A.VehicleType)){e("incorrect-vehicle-type"),i.value=!0,a.value=!1,J.validate("incorrectLicensePlateHiddenField"),J.validate("noLicensePlateHiddenField"),J.validate("unknownLicensePlateHiddenField");return}n.value=A,e("on-vehicle-information-update",A),a.value=!1}catch(A){u.value=!0,a.value=!1,J.validate("unknownLicensePlateHiddenField"),console.error(A)}finally{j.value=!1}});return _.onMounted(()=>{_.nextTick(()=>{if(r.value=t.value,!r.value)return;let k=!0;h(ms(r.value))&&Object.keys(t.propVehicleInformation).length!==0&&(n.value=t.propVehicleInformation,J.validate(t.name),k=!1),m(r.value,"input",k)})}),{errors:H,userState:C,motorState:fr,hasNewDesign:F,isRequestIsHandling:j,license:r,vehicleInformation:n,isLicenseUnknown:o,isLicenseTemplateIncorrect:p,isRetrievingVehicleInformation:a,incorrectLicensePlate:i,isLicensePlateCantBeRetrieved:u,vehicleIcons:l,errorsData:s,isVehicleInfoShowed:f,isFocused:c,hasLicensePlateAnyErrors:d,isLicenseFull:h,resetFieldValidation:v,validateField:y,onPasteEvent:g,retrieveLicensePlateInformation:S,setValue:m}}}),zM="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.3%204.49961C12.3%204.00086%2012.7012%203.59961%2013.2%203.59961H14.7487C15.6412%203.59961%2016.44%204.16586%2016.7325%205.00961L17.0362%205.88336L18.9487%204.92711C19.1137%204.84461%2019.2975%204.79961%2019.485%204.79961H19.8C20.13%204.79961%2020.4%205.06961%2020.4%205.39961V7.79961C20.4%208.12961%2020.13%208.39961%2019.8%208.39961H19.485C19.2975%208.39961%2019.1137%208.35461%2018.9487%208.27211L17.64%207.61586L18.75%2010.8146C18.9%2010.8034%2019.05%2010.7996%2019.2%2010.7996C20.8387%2010.7996%2022.3237%2011.4559%2023.4037%2012.5171C23.76%2012.8659%2023.7637%2013.4359%2023.415%2013.7884C23.0662%2014.1409%2022.4962%2014.1484%2022.1437%2013.7996C21.3825%2013.0571%2020.3475%2012.5996%2019.2%2012.5996C17.1337%2012.5996%2015.4125%2014.0921%2015.0637%2016.0609C14.9887%2016.4921%2014.6137%2016.8034%2014.1787%2016.8034H12.6C12.5662%2016.8034%2012.5362%2016.8034%2012.5025%2016.7996H9.6C9.6%2018.7871%207.9875%2020.3996%206%2020.3996C4.0125%2020.3996%202.4%2018.7871%202.4%2016.7996H1.2C0.53625%2016.7996%200%2016.2634%200%2015.5996V14.3996C0%2011.7484%202.14875%209.59961%204.8%209.59961H8.4C9.06375%209.59961%209.6%2010.1359%209.6%2010.7996V13.1996C9.6%2013.8634%2010.1362%2014.3996%2010.8%2014.3996H13.6987C14.3287%2012.9559%2015.5137%2011.8046%2016.9837%2011.2234L15.03%205.60211C14.9887%205.48211%2014.8725%205.39961%2014.745%205.39961H13.2C12.7012%205.39961%2012.3%204.99836%2012.3%204.49961ZM4.8%205.99961H8.4C9.06375%205.99961%209.6%206.53586%209.6%207.19961C9.6%207.86336%209.06375%208.39961%208.4%208.39961H4.8C4.13625%208.39961%203.6%207.86336%203.6%207.19961C3.6%206.53586%204.13625%205.99961%204.8%205.99961ZM6%2018.5996C6.99375%2018.5996%207.8%2017.7934%207.8%2016.7996H4.2C4.2%2017.7934%205.00625%2018.5996%206%2018.5996ZM19.2%2018.5996C19.6774%2018.5996%2020.1352%2018.41%2020.4728%2018.0724C20.8104%2017.7348%2021%2017.277%2021%2016.7996C21%2016.3222%2020.8104%2015.8644%2020.4728%2015.5268C20.1352%2015.1893%2019.6774%2014.9996%2019.2%2014.9996C18.7226%2014.9996%2018.2648%2015.1893%2017.9272%2015.5268C17.5896%2015.8644%2017.4%2016.3222%2017.4%2016.7996C17.4%2017.277%2017.5896%2017.7348%2017.9272%2018.0724C18.2648%2018.41%2018.7226%2018.5996%2019.2%2018.5996ZM19.2%2013.1996C20.1548%2013.1996%2021.0705%2013.5789%2021.7456%2014.254C22.4207%2014.9292%2022.8%2015.8448%2022.8%2016.7996C22.8%2017.7544%2022.4207%2018.6701%2021.7456%2019.3452C21.0705%2020.0203%2020.1548%2020.3996%2019.2%2020.3996C18.2452%2020.3996%2017.3295%2020.0203%2016.6544%2019.3452C15.9793%2018.6701%2015.6%2017.7544%2015.6%2016.7996C15.6%2015.8448%2015.9793%2014.9292%2016.6544%2014.254C17.3295%2013.5789%2018.2452%2013.1996%2019.2%2013.1996Z'%20fill='%23076CD9'/%3e%3c/svg%3e";var Ng=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v(" *")])]),r("div",{staticClass:"license",class:[{license_disabled:e.disabled}]},[e.hasNewDesign?r("div",{staticClass:"license__wrapper",class:[{license__wrapper_error:e.errors.has(e.name)||e.hasLicensePlateAnyErrors},{license__wrapper_focus:e.isFocused}]},[r("div",{staticClass:"license__country"}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]):e._e(),e.hasNewDesign?e._e():r("div",{staticClass:"license__country"}),e.hasNewDesign?e._e():r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"incorrectLicensePlateHiddenField"},domProps:{value:e.incorrectLicensePlate}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"noLicensePlateHiddenField"},domProps:{value:!e.isRetrievingVehicleInformation&&e.isLicenseFull(e.value)&&!e.vehicleInformation.VehicleType&&Object.keys(e.vehicleInformation).length!==0}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"unknownLicensePlateHiddenField"},domProps:{value:e.isLicenseUnknown}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicenseTemplateIncorrectHiddenField"},domProps:{value:e.isLicenseTemplateIncorrect}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicensePlateCantBeRetrievedHiddenField"},domProps:{value:e.isLicensePlateCantBeRetrieved}}),e._t("errors",function(){return[r("ErrorHandler",{attrs:{name:e.name,"errors-data":e.errorsData}})]},{errors:e.errors,incorrectLicenseplate:e.incorrectLicensePlate}),e._t("vehicle-information",function(){return[e.isVehicleInfoShowed?r("div",{staticClass:"vd-form-vehicle-name"},[e.vehicleType!=="moped"?r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleIcons[e.vehicleType]]}):r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleIcons[e.vehicleInformation.Model]?e.vehicleIcons[e.vehicleInformation.Model]:""]},[["Brommobiel","Speed Pedelec"].includes(e.vehicleInformation.Model)?e._e():r("img",{attrs:{src:zM,width:"20px",height:"20px",alt:"scooter"}})]),r("span",{staticClass:"mr-1"},[e._v(e._s(e.vehicleInformation.Brand))]),r("span",{staticClass:"mr-1"},[e._v(e._s(e.vehicleInformation.Model))]),r("span",[e._v("("+e._s(e.vehicleInformation.ManufacturingYear)+")")])]):e._e(),e.isRetrievingVehicleInformation?r("div",{staticClass:"license-loader"},[r("span",{staticClass:"license-loader__icon",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"license-loader__text"},[e._v(" Voertuig gegevens ophalen... ")])]):e._e()]},{loading:e.isRetrievingVehicleInformation,vehicleInformation:e.vehicleInformation})],2)},UM=[];Ng._withStripped=!0;var Ig=T(VM,Ng,UM,!1,null,null,null,null);Ig.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/inputs/LicensePlate.vue";const jt=Ig.exports;function Pc(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function YM(t){return(...e)=>!t(...e)}function WM(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function jg(t,e,r,n){return t.filter(a=>WM(n(a,r),e))}function GM(t){return t.filter(e=>!e.$isLabel)}function Rc(t,e){return r=>r.reduce((n,a)=>a[t]&&a[t].length?(n.push({$groupLabel:a[e],$isLabel:!0}),n.concat(a[t])):n,[])}function ZM(t,e,r,n,a){return i=>i.map(o=>{if(!o[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=jg(o[r],t,e,a);return u.length?{[n]:o[n],[r]:u}:[]})}const Fg=(...t)=>e=>t.reduce((r,n)=>n(r),e),KM={name:"vue-multiselect",mixins:[{data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default(){return[]}},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return Pc(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.value||this.value===0?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let r=this.options.concat();return this.internalSearch?r=this.groupValues?this.filterAndFlat(r,e,this.label):jg(r,e,this.label,this.customLabel):r=this.groupValues?Rc(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(YM(this.isSelected)):r,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?r.push({isTag:!0,label:t}):r.unshift({isTag:!0,label:t})),r.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))},search(){this.$emit("search-change",this.search,this.id)}},methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,r){return Fg(ZM(e,r,this.groupValues,this.groupLabel,this.customLabel),Rc(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Fg(Rc(this.groupValues,this.groupLabel),GM)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(Pc(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;let e=this.customLabel(t,this.label);return Pc(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const r=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],n=this.internalValue.filter(a=>r.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("input",n,this.id)}else{let r=e[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&r.splice(this.max-this.internalValue.length),this.$emit("select",r,this.id),this.$emit("input",this.internalValue.concat(r),this.id)}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const r=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const n=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("input",n,this.id)}else this.$emit("input",null,this.id);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el!="undefined"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search!="undefined"&&this.$refs.search.blur():typeof this.$el!="undefined"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window=="undefined")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},{data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer,"vd-multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["vd-multiselect__option--disabled",{"vd-multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["vd-multiselect__option--group",{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer},{"vd-multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"vd-multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}}],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)&&!this.search},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.value&&this.value.length?this.search?(this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1),""):this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};var $g=function(){var e=this,r=e._self._c;return r("div",{staticClass:"vd-multiselect",class:{"vd-multiselect--active":e.isOpen,"vd-multiselect--disabled":e.disabled,"vd-multiselect--above":e.isAbove,"vd-multiselect--has-options-group":e.hasOptionGroup},attrs:{tabindex:e.searchable?-1:e.tabindex,role:"combobox","aria-owns":"listbox-"+e.id},on:{focus:function(n){return e.activate()},blur:function(n){e.searchable||e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerBackward())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")&&e._k(n.keyCode,"tab",9,n.key,"Tab")||(n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()}}},[e._t("caret",function(){return[r("div",{staticClass:"vd-multiselect__select",on:{mousedown:function(n){return n.preventDefault(),n.stopPropagation(),e.toggle()}}})]},{toggle:e.toggle}),e._t("clear",null,{search:e.search}),r("div",{ref:"tags",staticClass:"vd-multiselect__tags"},[e._t("selection",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"vd-multiselect__tags-wrap"},[e._l(e.visibleValues,function(n,a){return[e._t("tag",function(){return[r("span",{key:a,staticClass:"vd-multiselect__tag"},[r("span",{domProps:{textContent:e._s(e.getOptionLabel(n))}}),r("i",{staticClass:"vd-multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.removeElement(n))},mousedown:function(i){return i.preventDefault(),e.removeElement(n)}}})])]},{option:n,search:e.search,remove:e.removeElement})]})],2),e.internalValue&&e.internalValue.length>e.limit?[e._t("limit",function(){return[r("strong",{staticClass:"vd-multiselect__strong",domProps:{textContent:e._s(e.limitText(e.internalValue.length-e.limit))}})]})]:e._e()]},{search:e.search,remove:e.removeElement,values:e.visibleValues,isOpen:e.isOpen}),r("transition",{attrs:{name:"vd-multiselect__loading"}},[e._t("loading",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"vd-multiselect__spinner"})]})],2),e.searchable?r("input",{ref:"search",staticClass:"vd-multiselect__input",style:e.inputStyle,attrs:{name:e.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,disabled:e.disabled,tabindex:e.tabindex,"aria-controls":"listbox-"+e.id},domProps:{value:e.search},on:{input:function(n){return e.updateSearch(n.target.value)},focus:function(n){return n.preventDefault(),e.activate()},blur:function(n){return n.preventDefault(),e.deactivate()},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.pointerBackward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"])?null:(n.stopPropagation(),e.removeLastElement())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")||(n.preventDefault(),n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)}}}):e._e(),e.isSingleLabelVisible?r("span",{staticClass:"vd-multiselect__single",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("singleLabel",function(){return[[e._v(e._s(e.currentOptionLabel))]]},{option:e.singleValue})],2):e._e(),e.isPlaceholderVisible?r("span",{staticClass:"vd-multiselect__placeholder",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("placeholder",function(){return[e._v(" "+e._s(e.placeholder)+" ")]})],2):e._e()],2),r("transition",{attrs:{name:"multiselect"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen&&!e.loading,expression:"isOpen && !loading"}],staticClass:"vd-multiselect__tab-wrapper",style:{borderColor:e.filteredOptions.length!==0||e.options.length!==0||e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading||e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading?"":"transparent"}},[r("div",{ref:"list",staticClass:"vd-multiselect__content-wrapper",style:{maxHeight:103*5+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(n){n.preventDefault()}}},[r("ul",{staticClass:"vd-multiselect__content",style:e.contentStyle,attrs:{role:"listbox",id:"listbox-"+e.id}},[e._t("beforeList"),e.multiple&&e.max===e.internalValue.length?r("li",[r("span",{staticClass:"vd-multiselect__option"},[e._t("maxElements",function(){return[e._v("Maximum of "+e._s(e.max)+" options selected. First remove a selected option to select another.")]})],2)]):e._e(),!e.max||e.internalValue.length<e.max?e._l(e.filteredOptions,function(n,a){return r("li",{key:a,staticClass:"vd-multiselect__element",attrs:{id:e.id+"-"+a,role:n&&(n.$isLabel||n.$isDisabled)?null:"option"}},[n&&(n.$isLabel||n.$isDisabled)?e._e():r("span",{staticClass:"vd-multiselect__option",class:e.optionHighlight(a,n),attrs:{"data-select":n&&n.isTag?e.tagPlaceholder:e.selectLabelText,"data-selected":e.selectedLabelText,"data-deselect":e.deselectLabelText},on:{click:function(i){return i.stopPropagation(),e.select(n)},mouseenter:function(i){return i.target!==i.currentTarget?null:e.pointerSet(a)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2),n&&(n.$isLabel||n.$isDisabled)?r("span",{staticClass:"vd-multiselect__option",class:e.groupHighlight(a,n),attrs:{"data-select":e.groupSelect&&e.selectGroupLabelText,"data-deselect":e.groupSelect&&e.deselectGroupLabelText},on:{mouseenter:function(i){if(i.target!==i.currentTarget)return null;e.groupSelect&&e.pointerSet(a)},mousedown:function(i){return i.preventDefault(),e.selectGroup(n)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2):e._e()])}):e._e(),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noResult",function(){return[e._v("No elements found. Consider changing the search query.")]},{search:e.search})],2)]),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading,expression:"showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noOptions",function(){return[e._v("List is empty.")]})],2)]),e._t("afterList")],2)])])])],2)},QM=[];$g._withStripped=!0;var Lg=T(KM,$g,QM,!1,null,null,null,null);Lg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/extended/Multiselect.vue";const XM=Lg.exports,JM=_.defineComponent({name:"CompaniesListSelect",components:{ErrorHandler:Y,Multiselect:XM},props:{hasCompaniesListValidationError:{required:!1}},setup(t,{attrs:e,listeners:r,emit:n}){let a=_.reactive({kvk_number:"",company_name:"",legal_entity:"",rsin:"",branch_number:"",postcode:"",city:"",street:"",house_number:"",house_number_addition:"",full_address:"",sbi_activities:""}),i=_.ref(null),o=_.ref([]),u=_.ref(!1),c=_.ref(null),l=_.ref(!1),s=_.ref(!1),d=_.ref(!1);const p=()=>{Object.keys(a).map(S=>{a[S]=""})},f=()=>{p(),n("update-company-data",a),l.value=!1},h=()=>{l.value=!0},v=()=>{d.value=!1,s.value=!0},y=()=>{s.value=!1};_.watch(i,S=>N(this,null,function*(){S&&S.kvkNummer&&(j.value=!0,yield $e.dataService.getProfileInfo(S.kvkNummer).then(k=>{h();let A=k._embedded.hoofdvestiging.adressen.find(L=>L.type==="bezoekadres"||L.type==="correspondentieadres"),$=A.huisletter||"";$+=A.huisnummerToevoeging||"",a.kvk_number=k.kvkNummer,a.company_name=k.naam,a.legal_entity=k._embedded.eigenaar.rechtsvorm,a.rsin=k._embedded.eigenaar.rsin||null,a.branch_number=k._embedded.hoofdvestiging.vestigingsnummer,a.postcode=A.postcode||null,a.city=A.plaats||null,a.street=A.straatnaam||null,a.house_number=A.huisnummer||null,a.house_number_addition=$||null,a.full_address=A.volledigAdres||null,a.sbi_activities=k.sbiActiviteiten.map(L=>({code:L.sbiCode,description:L.sbiOmschrijving,is_main:L.indHoofdactiviteit==="Ja"})),n("update-company-data",k)}).catch(k=>{console.error(k)}).finally(()=>{j.value=!1}))}));const m=S=>{j.value=!0,u.value=!0,S.aantal=30,$e.dataService.searchBusinessInfoV2({companyName:S.naam,kvkNumber:S.kvkNummer},1,S.aantal).then(k=>{u.value=!1;let A=k.resultaten;A.length>0?o.value=A.filter($=>$.type==="hoofdvestiging"||$.type==="nevenvestiging").map($=>($.name=`${$.naam}`,$)):o.value=[]}).catch(k=>{o.value=[],u.value=!1}).finally(()=>{j.value=!1})},g=S=>{!S.length&&o.value.length&&(o.value=[]),S.length>2&&(clearTimeout(c.value),c.value=setTimeout(()=>{S.length==8&&/^\d+$/.test(S)?m({kvkNummer:S}):w(S)?m(w(S)):m({naam:S})},700))},w=S=>{if(S.length>7){let k=S.split(" ");if(k.length>1&&/^([0-9]{4}[A-Z]{2}|[0-9]{4}[a-z]{2})$/.test(k[0])){let A={postcode:k[0],huisnummer:k[1]};return k[2]&&(A.huisnummerToevoeging=k[2]),A}}return null};return{isRequestIsHandling:j,companyName:i,companies:o,businessInfoModel:a,isOptionSelected:l,isDropdownFocused:s,isErrorShowed:d,isLoading:u,attrs:e,listeners:r,findCompanies:g,selectOption:h,removeOption:f,setDropdownOpened:v,setDropdownClosed:y}}});var Bg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("multiselect",{class:{"vd-multiselect__chosen-option":e.isOptionSelected&&!e.isDropdownFocused},attrs:{options:e.companies,label:"name","track-by":"name",multiple:!1,"options-limit":30,placeholder:"Typ je bedrijfsnaam of KvK-nummer","selected-label":"Selected","select-label":"Select","preserve-search":!0,loading:e.isLoading,"internal-search":!1,deselectLabel:"",selectedLabel:"",hideSelected:!0,openDirection:"bottom",showNoOptions:!1},on:{"search-change":e.findCompanies,remove:e.removeOption,open:e.setDropdownOpened,close:e.setDropdownClosed},scopedSlots:e._u([{key:"option",fn:function({option:n}){return[r("div",{staticClass:"vd-multiselect__option-external-wrapper"},[r("div",{staticClass:"vd-multiselect__option-wrapper"},[r("p",[r("b",[e._v(e._s(n.naam))]),r("br")]),r("p",[e._v(e._s("Kvk: "+n.kvkNummer)),r("br")]),r("p",[e._v(e._s(n.adres.binnenlandsAdres.plaats+", "+n.adres.binnenlandsAdres.straatnaam)),r("br")])])])]}}]),model:{value:e.companyName,callback:function(n){e.companyName=n},expression:"companyName"}},[r("template",{slot:"noResult"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je KvK-nummer.")])]),r("template",{slot:"noOptions"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Bedrijfsnaam of KVK-nummer")])])],2),e.isOptionSelected&&!e.isDropdownFocused?r("div",{staticClass:"vd-multiselect__address-info mt-1"},[r("i",{staticClass:"fas fa-info-circle vd-tip-icon vd-tip-icon_additional-text"}),r("span",[e._v("Kvk: "+e._s(e.businessInfoModel.kvk_number)+" "+e._s(e.businessInfoModel.full_address))])]):e._e(),r("error-handler",{attrs:{"errors-data":[{rule:!e.isOptionSelected&&!e.isDropdownFocused&&e.hasCompaniesListValidationError,text:"Bedrijfsnaam of KVK-nummer is verplicht"}]}})],1)},eN=[];Bg._withStripped=!0;var qg=T(JM,Bg,eN,!1,null,null,null,null);qg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/inputs/CompaniesListSelect.vue";const Dc=qg.exports,tN=_.defineComponent({name:"Loader",props:{isActive:{type:Boolean,required:!1,default:!0},small:{type:Boolean,required:!1,default:!1}}});var Hg=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.isActive?r("div",{staticClass:"loader-container",class:{"loader-container--small":e.small}},[r("div",{staticClass:"loader",class:{"loader--small":e.small}})]):e._e()},rN=[];Hg._withStripped=!0;var Vg=T(tN,Hg,rN,!1,null,"3514e0e8",null,null);Vg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/Loader.vue";const Ac=Vg.exports,nN=_.defineComponent({name:"BusinessCarForm",components:{SimpleCard:U,LicensePlate:jt,CompaniesListSelect:Dc,Loader:Ac},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=Mg(t,e);return{businessState:lt,carState:Ee,errors:H,isRequestIsHandling:j,hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,updateCompanyData:c=>{lt.companyData=pt({},c)},validateBeforeSubmit:o}}});var zg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license","vd-form-version":"1"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"search-select-input"}},[e._v(" Selecteer de naam van je bedrijf "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),e.isMultiselectReady?r("companies-list-select",{attrs:{"has-companies-list-validation-error":e.hasCompaniesListValidationError},on:{"update-company-data":e.updateCompanyData},model:{value:e.businessState.companyData,callback:function(n){e.$set(e.businessState,"companyData",n)},expression:"businessState.companyData"}}):r("loader")],1)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},aN=[];zg._withStripped=!0;var Ug=T(nN,zg,aN,!1,null,null,null,null);Ug.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/business/businessCar/components/BusinessCarForm.vue";const iN=Ug.exports,oN=_.defineComponent({name:"BusinessCarFormHorizontal",components:{SimpleCard:U,LicensePlate:jt,CompaniesListSelect:Dc,Loader:Ac},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=Mg(t,e);return{businessState:lt,carState:Ee,errors:H,isRequestIsHandling:j,hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,updateCompanyData:c=>{lt.companyData=pt({},c)},validateBeforeSubmit:o}}});var Yg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form vd-form-card--horizontal",class:{[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-car-business"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"search-select-input"}},[e._v(" Selecteer de naam van je bedrijf "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),e.isMultiselectReady?r("companies-list-select",{attrs:{"has-companies-list-validation-error":e.hasCompaniesListValidationError},on:{"update-company-data":e.updateCompanyData},model:{value:e.businessState.companyData,callback:function(n){e.$set(e.businessState,"companyData",n)},expression:"businessState.companyData"}}):r("loader")],1),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},sN=[];Yg._withStripped=!0;var Wg=T(oN,Yg,sN,!1,null,null,null,null);Wg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/business/businessCar/components/BusinessCarFormHorizontal.vue";const uN=Wg.exports,lN=()=>[{name:"car",data:Object.assign(Ee,{LicensePlate:Ee.LicensePlate,Brand:Ee.Brand,Model:Ee.Model,Type:Ee.Type,VehicleType:Ee.VehicleType,ManufacturingYear:Ee.ManufacturingYear})},{name:"comparison",data:{ClaimFreeYears:"0",Coverage:null,Deductables:300,Kilometrage:"12000"}}],Gg=_.ref(!1),Tc=_.ref(!1),Ec=(t,e)=>{const{submitFormAndUpdateFormData:r,submitFormAndCreateComparison:n,setInitialUserInfoInStore:a,removeSessionState:i,openQuotationModal:o}=Xe(e),u=()=>`${t.link}#/<<COMPARISONID>>/dekkingen/`,c=()=>N(this,null,function*(){return(yield Be(["license","zipcode","housenumber","housenumberaddition","birthdate","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!Gg.value&&Ee.VehicleType==="Car"&&!Tc.value}),l=()=>{Object.assign(Ee,t.insuranceState)},s=()=>{Tc.value=!1},d=()=>{Tc.value=!0},p=()=>N(this,null,function*(){try{if(yield c())if(t.formLocation===P.isOnResultPage)r({userInformation:C,carState:Ee});else{const h=lN();yield n("car",h,u())}}catch(h){f(h)}}),f=h=>{console.error(h),z.refId="192",z.notes.push({text:"Kan geen comparison ID aanmaken voor autoverzekering vergelijking"}),z.notes.push({text:`Kenteken: ${Ee.LicensePlate} | Postcode: ${C.zipcode} | Huisnummer: ${C.houseNumber} | Huisnummer toevoeging: ${C.houseNumberAddition} | Geboortedatum: ${C.birthdate}`}),z.notes=rn(z.notes),o()};return _.onMounted(()=>{t.formLocation===P.isOnResultPage&&(a(t),l()),t.formLocation===P.isBeforeFlow&&i("car-storage","car-path")}),{houseError:Gg,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:p}};var Zg={exports:{}};const cN=Gn(WE);(function(t,e){(function(r,n){t.exports=n(cN)})(b,function(r){function n(u,c,l){u&&c&&l&&(document.addEventListener?u.addEventListener(c,l,!1):u.attachEvent("on"+c,l))}function a(u,c,l){u&&c&&(document.removeEventListener?u.removeEventListener(c,l,!1):u.detachEvent("on"+c,l))}r=r&&r.hasOwnProperty("default")?r.default:r;var i={props:{tagName:{type:String,default:"span"},trigger:{type:String,default:"hover",validator:function(u){return["clickToOpen","click","clickToToggle","hover","focus"].indexOf(u)>-1}},delayOnMouseOver:{type:Number,default:10},delayOnMouseOut:{type:Number,default:10},disabled:{type:Boolean,default:!1},content:String,enterActiveClass:String,leaveActiveClass:String,boundariesSelector:String,reference:{},forceShow:{type:Boolean,default:!1},dataValue:{default:null},appendToBody:{type:Boolean,default:!1},visibleArrow:{type:Boolean,default:!0},transition:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},rootClass:{type:String,default:""}},data:function(){return{referenceElm:null,popperJS:null,showPopper:!1,currentPlacement:"",popperOptions:{placement:"bottom",computeStyle:{gpuAcceleration:!1}}}},watch:{showPopper:function(u){u?(this.$emit("show",this),this.popperJS&&this.popperJS.enableEventListeners(),this.updatePopper()):(this.popperJS&&this.popperJS.disableEventListeners(),this.$emit("hide",this))},forceShow:{handler:function(u){this[u?"doShow":"doClose"]()},immediate:!0},disabled:function(u){u&&(this.showPopper=!1)}},created:function(){this.appendedArrow=!1,this.appendedToBody=!1,this.popperOptions=Object.assign(this.popperOptions,this.options)},mounted:function(){switch(this.referenceElm=this.reference||this.$slots.reference[0].elm,this.popper=this.$slots.default[0].elm,this.trigger){case"clickToOpen":n(this.referenceElm,"click",this.doShow),n(document,"click",this.handleDocumentClick);break;case"click":case"clickToToggle":n(this.referenceElm,"click",this.doToggle),n(document,"click",this.handleDocumentClick);break;case"hover":n(this.referenceElm,"mouseover",this.onMouseOver),n(this.popper,"mouseover",this.onMouseOver),n(this.referenceElm,"mouseout",this.onMouseOut),n(this.popper,"mouseout",this.onMouseOut);break;case"focus":n(this.referenceElm,"focus",this.onMouseOver),n(this.popper,"focus",this.onMouseOver),n(this.referenceElm,"blur",this.onMouseOut),n(this.popper,"blur",this.onMouseOut)}},methods:{doToggle:function(u){this.stopPropagation&&u.stopPropagation(),this.preventDefault&&u.preventDefault(),this.forceShow||(this.showPopper=!this.showPopper)},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},doDestroy:function(){this.showPopper||(this.popperJS&&(this.popperJS.destroy(),this.popperJS=null),this.appendedToBody&&(this.appendedToBody=!1,document.body.removeChild(this.popper.parentElement)))},createPopper:function(){var u=this;this.$nextTick(function(){if(u.visibleArrow&&u.appendArrow(u.popper),u.appendToBody&&!u.appendedToBody&&(u.appendedToBody=!0,document.body.appendChild(u.popper.parentElement)),u.popperJS&&u.popperJS.destroy&&u.popperJS.destroy(),u.boundariesSelector){var c=document.querySelector(u.boundariesSelector);c&&(u.popperOptions.modifiers=Object.assign({},u.popperOptions.modifiers),u.popperOptions.modifiers.preventOverflow=Object.assign({},u.popperOptions.modifiers.preventOverflow),u.popperOptions.modifiers.preventOverflow.boundariesElement=c)}u.popperOptions.onCreate=function(){u.$emit("created",u),u.$nextTick(u.updatePopper)},u.popperJS=new r(u.referenceElm,u.popper,u.popperOptions)})},destroyPopper:function(){a(this.referenceElm,"click",this.doToggle),a(this.referenceElm,"mouseup",this.doClose),a(this.referenceElm,"mousedown",this.doShow),a(this.referenceElm,"focus",this.doShow),a(this.referenceElm,"blur",this.doClose),a(this.referenceElm,"mouseout",this.onMouseOut),a(this.referenceElm,"mouseover",this.onMouseOver),a(document,"click",this.handleDocumentClick),this.showPopper=!1,this.doDestroy()},appendArrow:function(u){if(!this.appendedArrow){this.appendedArrow=!0;var c=document.createElement("div");c.setAttribute("x-arrow",""),c.className="popper__arrow",u.appendChild(c)}},updatePopper:function(){this.popperJS?this.popperJS.scheduleUpdate():this.createPopper()},onMouseOver:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!0},this.delayOnMouseOver)},onMouseOut:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!1},this.delayOnMouseOut)},handleDocumentClick:function(u){this.$el&&this.referenceElm&&!this.elementContains(this.$el,u.target)&&!this.elementContains(this.referenceElm,u.target)&&this.popper&&!this.elementContains(this.popper,u.target)&&(this.$emit("documentClick",this),this.forceShow||(this.showPopper=!1))},elementContains:function(u,c){return typeof u.contains=="function"&&u.contains(c)}},destroyed:function(){this.destroyPopper()}};const o=i;return i.__file="popper.js.vue",function(u,c,l,s,d,p,f,h,v,y){typeof f=="function"&&(v=h,h=f,f=!1);const m=typeof l=="function"?l.options:l;let g;if(u&&u.render&&(m.render=u.render,m.staticRenderFns=u.staticRenderFns,m._compiled=!0,d&&(m.functional=!0)),s&&(m._scopeId=s),p?(g=function(w){(w=w||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__=="undefined"||(w=__VUE_SSR_CONTEXT__),c&&c.call(this,v(w)),w&&w._registeredComponents&&w._registeredComponents.add(p)},m._ssrRegister=g):c&&(g=f?function(){c.call(this,y(this.$root.$options.shadowRoot))}:function(w){c.call(this,h(w))}),g)if(m.functional){const w=m.render;m.render=function(S,k){return g.call(k),w(S,k)}}else{const w=m.beforeCreate;m.beforeCreate=w?[].concat(w,g):[g]}return l}({render:function(){var u=this,c=u.$createElement,l=u._self._c||c;return l(u.tagName,{tag:"component"},[l("transition",{attrs:{name:u.transition,"enter-active-class":u.enterActiveClass,"leave-active-class":u.leaveActiveClass},on:{"after-leave":u.doDestroy}},[l("span",{directives:[{name:"show",rawName:"v-show",value:!u.disabled&&u.showPopper,expression:"!disabled && showPopper"}],ref:"popper",class:u.rootClass},[u._t("default",[u._v(u._s(u.content))])],2)]),u._v(" "),u._t("reference")],2)},staticRenderFns:[]},void 0,o,void 0,!1,void 0,void 0,void 0)})})(Zg);var dN=Zg.exports;const zn=Ka(dN),fN=_.defineComponent({components:{DefaultInput:ee,DefaultSelect:se,ErrorHandler:Y,Popper:zn},props:{template:{type:String,default:"FORM",validator:t=>["FORM","USER_INFORMATION","NEW_USER_INFORMATION","PACKAGE","FORM_HORIZONTAL"].includes(t)},zipcode:{type:String,required:!0},houseNumber:{type:String,required:!0},houseNumberAddition:{type:String,required:!0},zipcodeName:{type:String,required:!0},houseNumberName:{type:String,required:!0},houseNumberAdditionName:{type:String,required:!0},showStreetAndCity:{type:Boolean,default:!0}},setup(t,{emit:e}){const r=_.ref(!1),n=_.ref(!1),a=_.ref(!1),i=_.ref(!0),o=_.ref(!1),u=_.ref(""),c=_.ref(""),l=_.ref(""),s=_.ref([]),d=_.ref({street:"",city:""}),p=_.ref(!1),f=[{rule:"required",text:"Vul je postcode in"},{rule:"regex",text:"Postcode is incorrect"}],h=[{rule:"required",text:"Huisnummer is verplicht"}],v=_.computed(()=>[{rule:H.has(t.houseNumberAdditionName),text:"Een toevoeging is verplicht"}]),y=_.computed(()=>[{rule:a.value,text:"Postcode en huisnummer combinatie onbekend."}]),m=_.computed(()=>r.value?"-":"Kies toevoeging"),g=_.computed(()=>`${o.value?"":"required"}|is_not:CHOOSE_OPTION`),w=(W,q,Ze)=>N(this,null,function*(){try{if(j.value=!0,!W||!q){$(""),l.value="CHOOSE_OPTION",a.value=!1,d.value.street="",d.value.city="",s.value=[{title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}];return}s.value=[],Ze&&(l.value="CHOOSE_OPTION"),s.value.push({title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}),o.value=yield S(W,q),o.value&&(s.value=[...s.value,{title:"Geen toevoeging",value:""}]),$e.homeService.getAddition({zipcode:W,houseNumber:q}).then(He=>{const Ft=He;if(i.value=!0,V(t.houseNumberAdditionName),Ft.length){r.value=!1;for(let vr=0;vr<Ft.length;vr++)s.value=[...s.value,{title:Ft[vr],value:Fe(Ft[vr])}];a.value=!1,Ze||_.nextTick(()=>{l.value=t.houseNumberAddition,L(W,q,t.houseNumberAddition)})}else s.value[1]&&(s.value[1].title="Geen toevoeging"),r.value=!0,l.value="",$(""),L(W,q)}).catch(He=>{a.value=!0,d.value.street="",d.value.city="",e("address-correct",!a.value),V("housenumberaddition"),console.error("Error fetching additions:",He)})}catch(He){console.error("Error in getHouseNumberAdditions:",He)}finally{j.value=!1}}),S=(W,q)=>N(this,null,function*(){return yield $e.dataValidationService.validateZipCode(W,q).then(()=>!0).catch(()=>!1)}),k=W=>{p.value=!0,u.value=W.toUpperCase(),e("update-zipcode",W.toUpperCase()),_.nextTick(()=>{w(W.toUpperCase(),t.houseNumber,!0)})},A=W=>{p.value=!0,e("update-house-number",W),_.nextTick(()=>{w(t.zipcode,W,!0)})},$=W=>{e("update-house-number-addition",W),L(t.zipcode,t.houseNumber,W)},L=(W,q,Ze="")=>N(this,null,function*(){try{if(j.value=!0,!W||!q)return;n.value=!0,a.value=!1,d.value.street="",d.value.city="",e("address-correct",!a.value);const{Street:He,Place:Ft}=yield $e.dataValidationService.validateZipCode(W,q,Ze);p.value=!1,d.value.street=He,d.value.city=Ft,e("update-house-information",d.value),n.value=!1}catch(He){a.value=!0,n.value=!1,e("address-correct",!a.value),V("housenumberaddition"),console.error("Error getting house information:",He)}finally{j.value=!1}}),V=W=>{var Ze;const q=J.fields.find({name:W});(q!==null||q!==void 0&&q)&&(q==null||q.reset(),(Ze=J==null?void 0:J.errors)==null||Ze.remove(q==null?void 0:q.name,q==null?void 0:q.scope))},Fe=W=>W.includes("-")?W.replace("-",""):W;return _.onMounted(()=>{_.nextTick(()=>{u.value=t.zipcode,c.value=t.houseNumber,w(t.zipcode,t.houseNumber,!1)})}),{errors:H,hasNewDesign:F,additionLabel:m,additionValidationRules:g,disableAdditionField:r,isLoading:n,addressError:a,firstTimeCalled:i,canBeWithoutAddition:o,zipcodeModel:u,houseNumberModel:c,houseAdditionNumberModel:l,additions:s,houseInformation:d,isAddressEditing:p,props:t,zipcodeErrorsData:f,houseNumberErrorsData:h,houseNumberAdditionErrorsData:v,addressErrorsData:y,getHouseNumberAdditions:w,getHouseInformationWithoutAddition:S,updateZipcode:k,updateHouseNumber:A,updateHouseNumberAddition:$,getHouseInformation:L,resetFieldValidation:V}}});var Kg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("span",[e.template==="FORM"?r("div",{class:e.hasNewDesign?"":"component-mb-1"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[r("default-input",{attrs:{id:e.zipcodeName,mask:"####AA","autocomplete-off":!0,placeholder:"bv. 1234 AZ",validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1)]),r("div",{staticClass:"row"},[r("div",{class:e.hasNewDesign?"house-number-field":"col-md-6"},[r("default-input",{staticClass:"mb-md-0",attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{style:{"white-space":e.errors.has(e.houseNumberAdditionName)?"":"nowrap"},attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{class:e.hasNewDesign?"house-number-addition-field":"col-md-6"},[r("default-select",{staticClass:"mb-0",class:{"select-empty-value":e.houseAdditionNumberModel==="CHOOSE_OPTION"},attrs:{id:"additions",validation:e.additionValidationRules,"no-default-placeholder":!0,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper vd-popover"},[r("div",{staticClass:"popover-header vd-popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e(),!e.disableAdditionField&&!e.addressError&&e.additions.length>2?r("span",{staticClass:"text-danger ml-1"},[e._v(" *")]):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,1041804111),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[e.isLoading?e._e():r("div",[e.showStreetAndCity&&!e.isAddressEditing&&e.houseInformation.street&&e.houseInformation.city?r("div",{staticClass:"fz-medium mt-1"},[r("i",{staticClass:"fa-map-marker-alt",class:e.hasNewDesign?"fas vd-tip-icon":"fad text-primary"}),e._v(" "+e._s(e.houseInformation.street)+", "+e._s(e.houseInformation.city)+" ")]):e._e(),e.addressError?r("div",{staticClass:"vd-form-error mb-0"},[r("i",{staticClass:"fas fa-info-circle"}),e._v(" Postcode en huisnummer combinatie onbekend. ")]):e._e()]),e.isLoading?r("div",{staticClass:"d-flex align-items-center mt-1"},[r("span",{staticClass:"spinner-border spinner-small fz-medium spinner-border-sm mr-1 text-primary",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"fz-medium"},[e._v(" Adres ophalen ")])]):e._e()])])]):e._e(),e.template==="FORM_HORIZONTAL"?r("div",{class:e.hasNewDesign?"":"component-mb-1"},[r("span",{staticClass:"vd-form-card__content p-0"},[r("div",{staticClass:"vd-form-group mb-0"},[r("default-input",{staticClass:"mx-0 mb-lg-0",attrs:{id:e.zipcodeName,mask:"####AA",placeholder:"bv. 1234 AZ","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1),r("div",{staticClass:"vd-form-group mb-0"},[r("default-input",{staticClass:"mx-0 mb-lg-0",attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"vd-form-group mb-0"},[r("default-select",{staticClass:"mx-0",class:{"mb-0":e.houseInformation.street&&e.houseInformation.city},attrs:{id:"additions",validation:e.additionValidationRules,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,"no-default-placeholder":!0,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),e.isLoading?e._e():r("div",[e.showStreetAndCity&&e.houseInformation.street&&e.houseInformation.city?r("div",{staticClass:"fz-medium mt-1"},[r("i",{staticClass:"fa-map-marker-alt",class:e.hasNewDesign?"fas vd-tip-icon":"fad text-primary"}),e._v(" "+e._s(e.houseInformation.street)+", "+e._s(e.houseInformation.city)+" ")]):e._e(),e.addressError?r("div",{staticClass:"vd-form-error position-relative"},[r("i",{staticClass:"fas fa-exclamation-circle"}),e._v(" Postcode en huisnummer combinatie onbekend. ")]):e._e()]),e.isLoading?r("div",{staticClass:"d-flex align-items-center mt-1"},[r("span",{staticClass:"spinner-border spinner-small fz-medium spinner-border-sm mr-1 text-primary",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"fz-medium"},[e._v(" Adres ophalen ")])]):e._e()]):e._e(),e.template==="USER_INFORMATION"?r("div",[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:e.zipcodeName,mask:"####AA","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-6"},[r("default-select",{attrs:{id:"additions",validation:e.additionValidationRules,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,"no-default-placeholder":!0,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[r("div",{staticClass:"mb-2"},[e.addressError?r("div",{staticClass:"vd-form-error position-relative"},[r("i",{staticClass:"fas fa-info-circle"}),e._v(" Postcode en huisnummer combinatie onbekend. ")]):e._e()])])])]):e._e(),e.template==="NEW_USER_INFORMATION"?r("div",[r("div",{staticClass:"row mt-2"},[r("div",{staticClass:"col-xl-4 col-lg-5 col-md-5"},[r("label",{staticClass:"mt-2 font-weight-bold cursor-pointer",attrs:{for:e.zipcodeName}},[e._v(" Postcode ")])]),r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:e.zipcodeName,"hide-label":!0,mask:"####AA",placeholder:"bv. 1234 AZ","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1)]),r("div",{staticClass:"row mt-2"},[r("div",{staticClass:"col-xl-4 col-lg-5 col-md-5"},[r("label",{staticClass:"mt-2 font-weight-bold cursor-pointer",attrs:{for:e.houseNumberName}},[e._v(" Huisnummer en toevoeging ")])]),r("div",{staticClass:"col-md-3"},[r("default-input",{attrs:{id:"houseNumber","hide-label":!0,"autocomplete-off":!0,validation:"required|numeric",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-3"},[r("default-select",{attrs:{id:"additions",validation:e.additionValidationRules,"hide-label":!0,"no-default-placeholder":!0,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)])]):e._e(),e.template==="PACKAGE"?r("div",[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-4"},[r("default-input",{staticClass:"mx-0",attrs:{id:e.zipcodeName,mask:"####AA",placeholder:"bv. 1234 AZ","autocomplete-off":!0,validation:{rules:{required:"required",regex:/^\d{4}(\s|)[a-z]{2}$/i}},type:"text",label:"Postcode",name:e.zipcodeName,"is-required":!0},on:{change:e.updateZipcode},model:{value:e.zipcodeModel,callback:function(n){e.zipcodeModel=n},expression:"zipcodeModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.zipcodeName,"errors-data":e.zipcodeErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-4"},[r("default-input",{staticClass:"mx-0",attrs:{id:"houseNumber","autocomplete-off":!0,placeholder:"bv. 1",validation:"required|numeric",label:"Huisnummer",type:"text",name:e.houseNumberName,"is-required":!0},on:{change:e.updateHouseNumber},model:{value:e.houseNumberModel,callback:function(n){e.houseNumberModel=n},expression:"houseNumberModel"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:e.houseNumberName,"errors-data":e.houseNumberErrorsData}})],1)],2)],1),r("div",{staticClass:"col-md-4"},[r("default-select",{staticClass:"mx-0",attrs:{id:"additions",validation:e.additionValidationRules,disabled:e.disableAdditionField,name:e.houseNumberAdditionName,"no-default-placeholder":!0,placeholder:e.additionLabel,options:e.additions},on:{input:e.updateHouseNumberAddition},scopedSlots:e._u([{key:"title",fn:function(){return[r("popper",{attrs:{options:{placement:"auto",modifiers:{offset:{offset:"0,10px"}}},disabled:e.addressError||!e.disableAdditionField,"visible-arrow":!e.hasNewDesign,trigger:"hover"}},[r("div",{staticClass:"popover popper"},[r("div",{staticClass:"popover-header"},[e._v(" Toevoeging ")]),e._v(" Voor "),e.houseInformation.street&&e.houseInformation.city?r("span",[e._v(" "+e._s(e.houseInformation.street)+" "+e._s(e.houseNumberModel)+", "+e._s(e.houseInformation.city)+" ")]):r("span",[e._v(" dit adres ")]),e._v(" hebben we geen toevoegingen kunnen vinden. ")]),r("span",{attrs:{slot:"reference"},slot:"reference"},[e._v(" Toevoeging "),e.disableAdditionField&&!e.addressError?r("i",{staticClass:"fas fa-info-circle",class:e.hasNewDesign?"vd-info-icon":"text-primary cursor-pointer",attrs:{id:"popover-target"}}):e._e()])])]},proxy:!0},{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{"errors-data":e.houseNumberAdditionErrorsData}})]},proxy:!0}],null,!1,3736528882),model:{value:e.houseAdditionNumberModel,callback:function(n){e.houseAdditionNumberModel=n},expression:"houseAdditionNumberModel"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[r("div",{staticClass:"mb-2"},[e.showStreetAndCity&&e.houseInformation.street&&e.houseInformation.city?r("div",{staticClass:"text-success fz-small font-weight-bold"},[r("i",{staticClass:"fas fa-info-circle"}),e._v(" "+e._s(e.houseInformation.street)+", "+e._s(e.houseInformation.city)+" ")]):e._e(),r("ErrorHandler",{attrs:{"errors-data":e.addressErrorsData}})],1)])])]):e._e(),r("input",{directives:[{name:"model",rawName:"v-model",value:e.addressError,expression:"addressError"},{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"hidden-adress-error"},domProps:{value:e.addressError},on:{input:function(n){n.target.composing||(e.addressError=n.target.value)}}})])},pN=[];Kg._withStripped=!0;var Qg=T(fN,Kg,pN,!1,null,null,null,null);Qg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/components/common/AddressHandler.vue";const qe=Qg.exports,hN=_.defineComponent({name:"CarForm",components:{LicensePlate:jt,AddressHandler:qe,DefaultInput:ee,SimpleCard:U,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Ec(t,e);return{userState:C,carState:Ee,hasNewDesign:F,errors:H,isRequestIsHandling:j,houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var Xg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},mN=[];Xg._withStripped=!0;var Jg=T(hN,Xg,mN,!1,null,null,null,null);Jg.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/car/components/forms/CarForm.vue";const vN=Jg.exports,gN=_.defineComponent({name:"CarFormHorizontal",components:{LicensePlate:jt,AddressHandler:qe,DefaultInput:ee,SimpleCard:U,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=Ec(t,e);return{userState:C,carState:Ee,hasNewDesign:F,errors:H,isRequestIsHandling:j,licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}}});var e_=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-car"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-block"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,template:"FORM_HORIZONTAL","house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}}),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},_N=[];e_._withStripped=!0;var t_=T(gN,e_,_N,!1,null,null,null,null);t_.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/car/components/forms/CarFormHorizontal.vue";const yN=t_.exports,bN=_.defineComponent({name:"CarFormOld",components:{LicensePlate:jt,AddressHandler:qe,DefaultInput:ee,SimpleCard:U,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:P.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Ec(t,e);return{userState:C,carState:Ee,hasNewDesign:F,errors:H,isRequestIsHandling:j,houseError:r,FormLocations:P,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var r_=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("simple-card",{staticClass:"vd-form-card vd-form-card--border-box",class:{"vd-form-card--flat w-100":e.formLocation===e.FormLocations.isOnResultPage,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content p-0"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-moped"},[r("address-handler",{staticClass:"mx-0",attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("div",{staticClass:"vd-form-group"},[r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-group"},[r("div",{staticClass:"btn-a btn-a--success btn-a--bold btn-block btn-a--horizontal cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])],1)},wN=[];r_._withStripped=!0;var n_=T(bN,r_,wN,!1,null,null,null,null);n_.options.__file="/Users/davenieberg/AllRepos/comparison-forms/src/insurances/car/components/forms/CarFormOld.vue";const SN=n_.exports,CN="192";function ON(t){const e={CreationForm:"CreationForm",Aanvragen:"Aanvragen",Common:"Common"};let r=_.ref([]);const n={[e.CreationForm]:{title:"Oeps... er gaat iets mis!",refId:CN,notes:[{text:"Kan geen comparison ID aanmaken voor geld lenen vergelijking"}],description:"Door een technische storing kunnen we op dit moment geen premies vergelijken. Laat je gegevens achter en we helpen je zo snel mogelijk telefonisch verder!"},[e.Aanvragen]:{description:"Er gaat iets niet helemaal goed. Je kunt op dit moment niet verder met je vergelijking of aanvraag. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."},[e.Common]:{description:"Momenteel kunnen we je lening online niet berekenen. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."}},a=(l="Common")=>{t("emit-event-hub",{event:"open-quotation-modal",data:c(l)})},i=l=>{const s=u(l);r.value.push(s)},o=()=>{r.value=[]},u=l=>({text:l}),c=l=>{const{title:s,refId:d,notes:p,description:f}=n[l];return{title:s,refId:d,notes:[...p||[],...r.value],description:f}};return{QuotationType:e,openQuotationModal:a,addNote:i,resetNotes:o,convertToNote:u,renderQuotationData:c}}let Mc=_.ref(!1);const a_=(t,e)=>{const{QuotationType:r,openQuotationModal:n,addNote:a,resetNotes:i}=ON(e),o=_.computed(()=>t.formOrientation===ba.Horizontal),u=f=>`${t.link}#/${f}`,c=f=>N(this,null,function*(){i();try{const h=yield $e.comparisonService.create("loan",f);return yield $e.comparisonService.update(h),h}catch(h){console.error(h),a(`
50
50
  Leendoel: ${Zt.loanPurpose} |
51
51
  Leenbedrag: ${Zt.loanAmount} |
52
52
  Geboortedatum: ${C.birthdate} |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vergelijkdirect/comparison-forms",
3
- "version": "1.2.41-VER-7909.2",
3
+ "version": "1.2.41-VER-7909.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "watch": "node server",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@vergelijkdirect/insurance-transmission-client": "1.3.38",
26
- "@vergelijkdirect/styles": "1.0.18-VER-7909.0",
26
+ "@vergelijkdirect/styles": "1.0.20-VER-7909.0",
27
27
  "axios": "^1.6.8",
28
28
  "bootstrap": "^4.5.3",
29
29
  "bootstrap-vue": "^2.20.1",