@vergelijkdirect/comparison-forms 1.1.27-rc.2 → 1.1.27-rc.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.
|
@@ -25008,7 +25008,15 @@ const Wb = (t) => {
|
|
|
25008
25008
|
submitFormAndCreateComparison: a,
|
|
25009
25009
|
setInitialUserInfoInStore: (l) => {
|
|
25010
25010
|
Object.keys(S).map((d) => {
|
|
25011
|
-
|
|
25011
|
+
if (d === "zipcode") {
|
|
25012
|
+
S[d] = l.userInformation.zipCode || vt()[d] || S[d];
|
|
25013
|
+
return;
|
|
25014
|
+
}
|
|
25015
|
+
if (d === "houseNumber") {
|
|
25016
|
+
S[d] = String(l.userInformation[d]) || vt()[d] || S[d];
|
|
25017
|
+
return;
|
|
25018
|
+
}
|
|
25019
|
+
S[d] = l.userInformation[d] || vt()[d] || S[d];
|
|
25012
25020
|
});
|
|
25013
25021
|
},
|
|
25014
25022
|
removeSessionState: (l, o) => {
|
|
@@ -50,7 +50,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
50
50
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
51
51
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
52
52
|
* SOFTWARE.
|
|
53
|
-
*/var Gi=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",WI=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Gi&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function GI(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function ZI(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},WI))}}var KI=Gi&&window.Promise,XI=KI?GI:ZI;function d_(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function Jn(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function nf(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Zi(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Jn(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(r+a+n)?t:Zi(nf(t))}function f_(t){return t&&t.referenceNode?t.referenceNode:t}var h_=Gi&&!!(window.MSInputMethodContext&&document.documentMode),p_=Gi&&/MSIE 10/.test(navigator.userAgent);function Fa(t){return t===11?h_:t===10?p_:h_||p_}function ja(t){if(!t)return document.documentElement;for(var e=Fa(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&&Jn(r,"position")==="static"?ja(r):r}function JI(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||ja(t.firstElementChild)===t}function af(t){return t.parentNode!==null?af(t.parentNode):t}function Mu(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 s=i.commonAncestorContainer;if(t!==s&&e!==s||n.contains(a))return JI(s)?s:ja(s);var u=af(t);return u.host?Mu(u.host,e):Mu(t,af(e).host)}function La(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 QI(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=La(e,"top"),a=La(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 m_(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 v_(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],Fa(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function g_(t){var e=t.body,r=t.documentElement,n=Fa(10)&&getComputedStyle(r);return{height:v_("Height",e,r,n),width:v_("Width",e,r,n)}}var eF=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},tF=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}}(),Ba=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},qt=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 Cn(t){return qt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function sf(t){var e={};try{if(Fa(10)){e=t.getBoundingClientRect();var r=La(t,"top"),n=La(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"?g_(t.ownerDocument):{},s=i.width||t.clientWidth||a.width,u=i.height||t.clientHeight||a.height,c=t.offsetWidth-s,l=t.offsetHeight-u;if(c||l){var o=Jn(t);c-=m_(o,"x"),l-=m_(o,"y"),a.width-=c,a.height-=l}return Cn(a)}function of(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Fa(10),a=e.nodeName==="HTML",i=sf(t),s=sf(e),u=Zi(t),c=Jn(e),l=parseFloat(c.borderTopWidth),o=parseFloat(c.borderLeftWidth);r&&a&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=Cn({top:i.top-s.top-l,left:i.left-s.left-o,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&a){var h=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);d.top-=l-h,d.bottom-=l-h,d.left-=o-f,d.right-=o-f,d.marginTop=h,d.marginLeft=f}return(n&&!r?e.contains(u):e===u&&u.nodeName!=="BODY")&&(d=QI(d,e)),d}function rF(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=of(t,r),a=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),s=e?0:La(r),u=e?0:La(r,"left"),c={top:s-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:a,height:i};return Cn(c)}function y_(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(Jn(t,"position")==="fixed")return!0;var r=nf(t);return r?y_(r):!1}function __(t){if(!t||!t.parentElement||Fa())return document.documentElement;for(var e=t.parentElement;e&&Jn(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function uf(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},s=a?__(t):Mu(t,f_(e));if(n==="viewport")i=rF(s,a);else{var u=void 0;n==="scrollParent"?(u=Zi(nf(e)),u.nodeName==="BODY"&&(u=t.ownerDocument.documentElement)):n==="window"?u=t.ownerDocument.documentElement:u=n;var c=of(u,s,a);if(u.nodeName==="HTML"&&!y_(s)){var l=g_(t.ownerDocument),o=l.height,d=l.width;i.top+=c.top-c.marginTop,i.bottom=o+c.top,i.left+=c.left-c.marginLeft,i.right=d+c.left}else i=c}r=r||0;var h=typeof r=="number";return i.left+=h?r:r.left||0,i.top+=h?r:r.top||0,i.right-=h?r:r.right||0,i.bottom-=h?r:r.bottom||0,i}function nF(t){var e=t.width,r=t.height;return e*r}function b_(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 s=uf(r,n,i,a),u={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},c=Object.keys(u).map(function(h){return qt({key:h},u[h],{area:nF(u[h])})}).sort(function(h,f){return f.area-h.area}),l=c.filter(function(h){var f=h.width,p=h.height;return f>=r.clientWidth&&p>=r.clientHeight}),o=l.length>0?l[0].key:c[0].key,d=t.split("-")[1];return o+(d?"-"+d:"")}function w_(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=n?__(e):Mu(e,f_(r));return of(r,a,n)}function S_(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 Ru(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 O_(t,e,r){r=r.split("-")[0];var n=S_(t),a={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,s=i?"top":"left",u=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return a[s]=e[s]+e[c]/2-n[c]/2,r===u?a[u]=e[u]-n[l]:a[u]=e[Ru(u)],a}function Ki(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function aF(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(a){return a[e]===r});var n=Ki(t,function(a){return a[e]===r});return t.indexOf(n)}function C_(t,e,r){var n=r===void 0?t:t.slice(0,aF(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&&d_(i)&&(e.offsets.popper=Cn(e.offsets.popper),e.offsets.reference=Cn(e.offsets.reference),e=i(e,a))}),e}function iF(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=w_(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=b_(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=O_(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=C_(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function k_(t,e){return t.some(function(r){var n=r.name,a=r.enabled;return a&&n===e})}function lf(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 sF(){return this.state.isDestroyed=!0,k_(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[lf("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function x_(t){var e=t.ownerDocument;return e?e.defaultView:window}function P_(t,e,r,n){var a=t.nodeName==="BODY",i=a?t.ownerDocument.defaultView:t;i.addEventListener(e,r,{passive:!0}),a||P_(Zi(i.parentNode),e,r,n),n.push(i)}function oF(t,e,r,n){r.updateBound=n,x_(t).addEventListener("resize",r.updateBound,{passive:!0});var a=Zi(t);return P_(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function uF(){this.state.eventsEnabled||(this.state=oF(this.reference,this.options,this.state,this.scheduleUpdate))}function lF(t,e){return x_(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 cF(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=lF(this.reference,this.state))}function cf(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function df(t,e){Object.keys(e).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&cf(e[r])&&(n="px"),t.style[r]=e[r]+n})}function dF(t,e){Object.keys(e).forEach(function(r){var n=e[r];n!==!1?t.setAttribute(r,e[r]):t.removeAttribute(r)})}function fF(t){return df(t.instance.popper,t.styles),dF(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&df(t.arrowElement,t.arrowStyles),t}function hF(t,e,r,n,a){var i=w_(a,e,t,r.positionFixed),s=b_(r.placement,i,e,t,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return e.setAttribute("x-placement",s),df(e,{position:r.positionFixed?"fixed":"absolute"}),r}function pF(t,e){var r=t.offsets,n=r.popper,a=r.reference,i=Math.round,s=Math.floor,u=function(m){return m},c=i(a.width),l=i(n.width),o=["left","right"].indexOf(t.placement)!==-1,d=t.placement.indexOf("-")!==-1,h=c%2===l%2,f=c%2===1&&l%2===1,p=e?o||d||h?i:s:u,v=e?i:u;return{left:p(f&&!d&&e?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:p(n.right)}}var mF=Gi&&/Firefox/i.test(navigator.userAgent);function vF(t,e){var r=e.x,n=e.y,a=t.offsets.popper,i=Ki(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 s=i!==void 0?i:e.gpuAcceleration,u=ja(t.instance.popper),c=sf(u),l={position:a.position},o=pF(t,window.devicePixelRatio<2||!mF),d=r==="bottom"?"top":"bottom",h=n==="right"?"left":"right",f=lf("transform"),p=void 0,v=void 0;if(d==="bottom"?u.nodeName==="HTML"?v=-u.clientHeight+o.bottom:v=-c.height+o.bottom:v=o.top,h==="right"?u.nodeName==="HTML"?p=-u.clientWidth+o.right:p=-c.width+o.right:p=o.left,s&&f)l[f]="translate3d("+p+"px, "+v+"px, 0)",l[d]=0,l[h]=0,l.willChange="transform";else{var _=d==="bottom"?-1:1,m=h==="right"?-1:1;l[d]=v*_,l[h]=p*m,l.willChange=d+", "+h}var g={"x-placement":t.placement};return t.attributes=qt({},g,t.attributes),t.styles=qt({},l,t.styles),t.arrowStyles=qt({},t.offsets.arrow,t.arrowStyles),t}function D_(t,e,r){var n=Ki(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+"`",s="`"+r+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function gF(t,e){var r;if(!D_(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,s=i.popper,u=i.reference,c=["left","right"].indexOf(a)!==-1,l=c?"height":"width",o=c?"Top":"Left",d=o.toLowerCase(),h=c?"left":"top",f=c?"bottom":"right",p=S_(n)[l];u[f]-p<s[d]&&(t.offsets.popper[d]-=s[d]-(u[f]-p)),u[d]+p>s[f]&&(t.offsets.popper[d]+=u[d]+p-s[f]),t.offsets.popper=Cn(t.offsets.popper);var v=u[d]+u[l]/2-p/2,_=Jn(t.instance.popper),m=parseFloat(_["margin"+o]),g=parseFloat(_["border"+o+"Width"]),w=v-t.offsets.popper[d]-m-g;return w=Math.max(Math.min(s[l]-p,w),0),t.arrowElement=n,t.offsets.arrow=(r={},Ba(r,d,Math.round(w)),Ba(r,h,""),r),t}function yF(t){return t==="end"?"start":t==="start"?"end":t}var T_=["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"],ff=T_.slice(3);function M_(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ff.indexOf(t),n=ff.slice(r+1).concat(ff.slice(0,r));return e?n.reverse():n}var hf={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function _F(t,e){if(k_(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=uf(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],a=Ru(n),i=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case hf.FLIP:s=[n,a];break;case hf.CLOCKWISE:s=M_(n);break;case hf.COUNTERCLOCKWISE:s=M_(n,!0);break;default:s=e.behavior}return s.forEach(function(u,c){if(n!==u||s.length===c+1)return t;n=t.placement.split("-")[0],a=Ru(n);var l=t.offsets.popper,o=t.offsets.reference,d=Math.floor,h=n==="left"&&d(l.right)>d(o.left)||n==="right"&&d(l.left)<d(o.right)||n==="top"&&d(l.bottom)>d(o.top)||n==="bottom"&&d(l.top)<d(o.bottom),f=d(l.left)<d(r.left),p=d(l.right)>d(r.right),v=d(l.top)<d(r.top),_=d(l.bottom)>d(r.bottom),m=n==="left"&&f||n==="right"&&p||n==="top"&&v||n==="bottom"&&_,g=["top","bottom"].indexOf(n)!==-1,w=!!e.flipVariations&&(g&&i==="start"&&f||g&&i==="end"&&p||!g&&i==="start"&&v||!g&&i==="end"&&_),S=!!e.flipVariationsByContent&&(g&&i==="start"&&p||g&&i==="end"&&f||!g&&i==="start"&&_||!g&&i==="end"&&v),P=w||S;(h||m||P)&&(t.flipped=!0,(h||m)&&(n=s[c+1]),P&&(i=yF(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=qt({},t.offsets.popper,O_(t.instance.popper,t.offsets.reference,t.placement)),t=C_(t.instance.modifiers,t,"flip"))}),t}function bF(t){var e=t.offsets,r=e.popper,n=e.reference,a=t.placement.split("-")[0],i=Math.floor,s=["top","bottom"].indexOf(a)!==-1,u=s?"right":"bottom",c=s?"left":"top",l=s?"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 wF(t,e,r,n){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],s=a[2];if(!i)return t;if(s.indexOf("%")===0){var u=void 0;switch(s){case"%p":u=r;break;case"%":case"%r":default:u=n}var c=Cn(u);return c[e]/100*i}else if(s==="vh"||s==="vw"){var l=void 0;return s==="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 SF(t,e,r,n){var a=[0,0],i=["right","left"].indexOf(n)!==-1,s=t.split(/(\+|\-)/).map(function(o){return o.trim()}),u=s.indexOf(Ki(s,function(o){return o.search(/,|\s/)!==-1}));s[u]&&s[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?[s.slice(0,u).concat([s[u].split(c)[0]]),[s[u].split(c)[1]].concat(s.slice(u+1))]:[s];return l=l.map(function(o,d){var h=(d===1?!i:i)?"height":"width",f=!1;return o.reduce(function(p,v){return p[p.length-1]===""&&["+","-"].indexOf(v)!==-1?(p[p.length-1]=v,f=!0,p):f?(p[p.length-1]+=v,f=!1,p):p.concat(v)},[]).map(function(p){return wF(p,h,e,r)})}),l.forEach(function(o,d){o.forEach(function(h,f){cf(h)&&(a[d]+=h*(o[f-1]==="-"?-1:1))})}),a}function OF(t,e){var r=e.offset,n=t.placement,a=t.offsets,i=a.popper,s=a.reference,u=n.split("-")[0],c=void 0;return cf(+r)?c=[+r,0]:c=SF(r,i,s,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 CF(t,e){var r=e.boundariesElement||ja(t.instance.popper);t.instance.reference===r&&(r=ja(r));var n=lf("transform"),a=t.instance.popper.style,i=a.top,s=a.left,u=a[n];a.top="",a.left="",a[n]="";var c=uf(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);a.top=i,a.left=s,a[n]=u,e.boundaries=c;var l=e.priority,o=t.offsets.popper,d={primary:function(f){var p=o[f];return o[f]<c[f]&&!e.escapeWithReference&&(p=Math.max(o[f],c[f])),Ba({},f,p)},secondary:function(f){var p=f==="right"?"left":"top",v=o[p];return o[f]>c[f]&&!e.escapeWithReference&&(v=Math.min(o[p],c[f]-(f==="right"?o.width:o.height))),Ba({},p,v)}};return l.forEach(function(h){var f=["left","top"].indexOf(h)!==-1?"primary":"secondary";o=qt({},o,d[f](h))}),t.offsets.popper=o,t}function kF(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var a=t.offsets,i=a.reference,s=a.popper,u=["bottom","top"].indexOf(r)!==-1,c=u?"left":"top",l=u?"width":"height",o={start:Ba({},c,i[c]),end:Ba({},c,i[c]+i[l]-s[l])};t.offsets.popper=qt({},s,o[n])}return t}function xF(t){if(!D_(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=Ki(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 PF(t){var e=t.placement,r=e.split("-")[0],n=t.offsets,a=n.popper,i=n.reference,s=["left","right"].indexOf(r)!==-1,u=["top","left"].indexOf(r)===-1;return a[s?"left":"top"]=i[r]-(u?a[s?"width":"height"]:0),t.placement=Ru(e),t.offsets.popper=Cn(a),t}var DF={shift:{order:100,enabled:!0,fn:kF},offset:{order:200,enabled:!0,fn:OF,offset:0},preventOverflow:{order:300,enabled:!0,fn:CF,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:bF},arrow:{order:500,enabled:!0,fn:gF,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:_F,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:PF},hide:{order:800,enabled:!0,fn:xF},computeStyle:{order:850,enabled:!0,fn:vF,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:fF,onLoad:hF,gpuAcceleration:void 0}},TF={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:DF},Eu=function(){function t(e,r){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};eF(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=XI(this.update.bind(this)),this.options=qt({},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(qt({},t.Defaults.modifiers,a.modifiers)).forEach(function(s){n.options.modifiers[s]=qt({},t.Defaults.modifiers[s]||{},a.modifiers?a.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return qt({name:s},n.options.modifiers[s])}).sort(function(s,u){return s.order-u.order}),this.modifiers.forEach(function(s){s.enabled&&d_(s.onLoad)&&s.onLoad(n.reference,n.popper,n.options,s,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return tF(t,[{key:"update",value:function(){return iF.call(this)}},{key:"destroy",value:function(){return sF.call(this)}},{key:"enableEventListeners",value:function(){return uF.call(this)}},{key:"disableEventListeners",value:function(){return cF.call(this)}}]),t}();Eu.Utils=(typeof window!="undefined"?window:global).PopperUtils,Eu.placements=T_,Eu.Defaults=TF;const MF=Object.freeze(Object.defineProperty({__proto__:null,default:Eu},Symbol.toStringTag,{value:"Module"}));function RF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R_(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 EF(t,e,r){return e&&R_(t.prototype,e),r&&R_(t,r),t}var AF=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(RF(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));I2(this,t.Defaults,this.constructor.Defaults,r,{type:e}),by(this,{type:bn(),cancelable:bn(),nativeEvent:bn(),target:bn(),relatedTarget:bn(),vueTarget:bn(),componentId:bn()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},F2(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return EF(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),$F='Setting prop "options" to an object is deprecated. Use the array format instead.',E_=_t({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 NF={props:E_,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(Kn(e)){var n=wu(e,this.valueField),a=wu(e,this.textField);return{value:Ra(n)?r||a:n,text:l_(String(Ra(a)?r:a)),html:wu(e,this.htmlField),disabled:!!wu(e,this.disabledField)}}return{value:r||e,text:l_(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return ar(e)?e.map(function(n){return r.normalizeOption(n)}):Kn(e)?(Cy($F,this.$options.name),ir(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}};var A_=function(e,r){for(var n=0;n<e.length;n++)if(xr(e[n],r))return n;return-1};function $_(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 IF(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$_(Object(r),!0).forEach(function(n){FF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function FF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var N_="input, textarea, select",Au=IF({id:{type:String},name:{type:String}},_t({disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1}},"formControls"));const pf={props:Au,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var e=this;this.$nextTick(function(){$a(function(){var r=e.$el;e.autofocus&&Fy(r)&&(jy(r,N_)||(r=Zd(N_,r)),Sn(r))})})}}};var mf=_t({plain:{type:Boolean,default:!1}},"formControls");const I_={props:mf,computed:{custom:function(){return!this.plain}}};function F_(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 $u(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?F_(Object(r),!0).forEach(function(n){qa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vf=_t($u($u({},mf),{},{value:{},checked:{},inline:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String},ariaLabel:{type:String},ariaLabelledby:{type:String}}),"formRadioCheckControls");const j_={mixins:[tf,I_,zi],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:vf,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={},qa(e,"btn-".concat(this.getSize),this.getSize),qa(e,"disabled",this.isDisabled),qa(e,"active",this.isChecked),qa(e,"focus",this.hasFocus),e)]},computedAttrs:function(){return $u($u({},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){xr(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||Sn(this.$refs.input)},blur:function(){this.isDisabled||By(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 s=e();return this.isPlain&&!r||(s=e("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},r)),e("div",{class:qa({"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,s])}}};var Nu=_t({size:{type:String}},"formControls");const gf={props:Nu,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}};var Iu=_t({state:{type:Boolean,default:null}},"formState");const yf={props:Iu,computed:{computedState:function(){return zd(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 L_(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 Xi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?L_(Object(r),!0).forEach(function(n){jF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function jF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var LF=y.extend({name:Py,mixins:[j_,Tu,pf,gf,yf],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:_t(Xi(Xi(Xi(Xi(Xi({},Au),vf),Nu),Iu),{},{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}}),Py),computed:{isChecked:function(){var e=this.value,r=this.computedLocalChecked;return ar(r)?A_(r,e)>-1:xr(r,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(e,r){if(!xr(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,s=this.value,u=this.uncheckedValue,c=this.computedLocalChecked;if(ar(c)){var l=A_(c,s);a&&l<0?c=c.concat(s):!a&&l>-1&&(c=c.slice(0,l).concat(c.slice(l+1)))}else c=a?s: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){ar(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit("update:indeterminate",e))}}});function B_(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 Ji(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?B_(Object(r),!0).forEach(function(n){BF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function BF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qF=y.extend({name:Dy,mixins:[Tu,j_,pf,gf,yf],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:_t(Ji(Ji(Ji(Ji(Ji({},Au),vf),Nu),Iu),{},{checked:{default:null}}),Dy),computed:{isChecked:function(){return xr(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(e,r){xr(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 q_(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 Ya(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?q_(Object(r),!0).forEach(function(n){Y_(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Y_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var H_=_t(Ya(Ya(Ya(Ya(Ya(Ya({},Au),E_),Nu),Iu),mf),{},{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 YF={mixins:[Tu,zi,pf,NF,gf,yf,I_],model:{prop:"checked",event:"input"},props:H_,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",Y_({"btn-group":e,"btn-group-vertical":!e},"btn-group-".concat(r),!!r)]),a}},watch:{checked:function(e){xr(e,this.localChecked)||(this.localChecked=e)},localChecked:function(e,r){xr(e,r)||this.$emit("input",e)}},render:function(e){var r=this,n=this.isRadioGroup,a=n?qF:LF,i=this.formOptions.map(function(s,u){var c="BV_option_".concat(u);return e(a,{props:{id:r.safeId(c),value:s.value,disabled:s.disabled||!1},key:c},[e("span",{domProps:Du(s.html,s.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(vI),i,this.normalizeSlot()])}};var HF=_t(H_,Ty),et=y.extend({name:Ty,mixins:[YF],provide:function(){return{bvRadioGroup:this}},props:HF,computed:{isRadioGroup:function(){return!0}}}),zF=y.extend({abstract:!0,name:Q2,props:{nodes:{type:[Array,Function]}},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){lI(this.$el)},render:function(e){var r=kr(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return r=en(r).filter(Boolean),r&&r.length>0&&!r[0].text?r[0]:e()}}),UF=y.extend({name:J2,mixins:[zi],props:{disabled:{type:Boolean,default:!1},container:{type:[String,my],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(Dt){var e=this.container;return Zn(e)?Zd(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 zF({el:r,parent:this,propsData:{nodes:en(this.normalizeSlot())}})}}},updateTarget:function(){if(Dt&&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=en(this.normalizeSlot()).filter(Aa);if(r.length>0&&!r[0].text)return r[0]}return e()}}),sr="$_bv_documentHandlers_";const VF={created:function(){var e=this;Dt&&(this[sr]={},this.$once("hook:beforeDestroy",function(){var r=e[sr]||{};delete e[sr],ir(r).forEach(function(n){var a=r[n]||[];a.forEach(function(i){return Ui(document,n,i,On)})})}))},methods:{listenDocument:function(e,r,n){e?this.listenOnDocument(r,n):this.listenOffDocument(r,n)},listenOnDocument:function(e,r){this[sr]&&Zn(e)&&kr(r)&&(this[sr][e]=this[sr][e]||[],Gd(this[sr][e],r)||(this[sr][e].push(r),ef(document,e,r,On)))},listenOffDocument:function(e,r){this[sr]&&Zn(e)&&kr(r)&&(Ui(document,e,r,On),this[sr][e]=(this[sr][e]||[]).filter(function(n){return n!==r}))}}};var or="$_bv_windowHandlers_";const WF={beforeCreate:function(){this[or]={}},beforeDestroy:function(){if(Dt){var e=this[or];delete this[or],ir(e).forEach(function(r){var n=e[r]||[];n.forEach(function(a){return Ui(window,r,a,On)})})}},methods:{listenWindow:function(e,r,n){e?this.listenOnWindow(r,n):this.listenOffWindow(r,n)},listenOnWindow:function(e,r){Dt&&this[or]&&Zn(e)&&kr(r)&&(this[or][e]=this[or][e]||[],Gd(this[or][e],r)||(this[or][e].push(r),ef(window,e,r,On)))},listenOffWindow:function(e,r){Dt&&this[or]&&Zn(e)&&kr(r)&&(Ui(window,e,r,On),this[or][e]=(this[or][e]||[]).filter(function(n){return n!==r}))}}};var GF=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function ZF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const KF={computed:{scopedStyleAttrs:function(){var e=GF(this.$parent);return e?ZF({},e,""):{}}}};var z_=1040,_f={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},XF=y.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){Dt&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),Li(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),Ly(document.body,"modal-open")),Bi(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),$a(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(_n(this.baseZIndex)&&Dt){var e=document.createElement("div");Li(e,"modal-backdrop"),Li(e,"d-none"),wn(e,"display","none"),document.body.appendChild(e),this.baseZIndex=aI(Yi(e).zIndex,z_),document.body.removeChild(e)}return this.baseZIndex||z_},getScrollbarWidth:function(){if(_n(this.scrollbarWidth)&&Dt){var e=document.createElement("div");Li(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=Qd(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,s){i.zIndex=n+s,i.scrollbarWidth=a,i.isTop=s===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=Qd(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;xu(_f.FIXED_CONTENT).forEach(function(a){var i=qi(a,"paddingRight")||"";Bi(a,"data-padding-right",i),wn(a,"paddingRight","".concat(Su(Yi(a).paddingRight,0)+r,"px")),e._paddingChangedForModal.push(a)}),xu(_f.STICKY_CONTENT).forEach(function(a){var i=qi(a,"marginRight")||"";Bi(a,"data-margin-right",i),wn(a,"marginRight","".concat(Su(Yi(a).marginRight,0)-r,"px")),e._marginChangedForModal.push(a)}),xu(_f.NAVBAR_TOGGLER).forEach(function(a){var i=qi(a,"marginRight")||"";Bi(a,"data-margin-right",i),wn(a,"marginRight","".concat(Su(Yi(a).marginRight,0)+r,"px")),e._marginChangedForModal.push(a)});var n=qi(e,"paddingRight")||"";Bi(e,"data-padding-right",n),wn(e,"paddingRight","".concat(Su(Yi(e).paddingRight,0)+r,"px"))}},resetScrollbar:function(){var e=document.body;e._paddingChangedForModal&&e._paddingChangedForModal.forEach(function(r){Jd(r,"data-padding-right")&&(wn(r,"paddingRight",Xd(r,"data-padding-right")||""),Kd(r,"data-padding-right"))}),e._marginChangedForModal&&e._marginChangedForModal.forEach(function(r){Jd(r,"data-margin-right")&&(wn(r,"marginRight",Xd(r,"data-margin-right")||""),Kd(r,"data-margin-right"))}),e._paddingChangedForModal=null,e._marginChangedForModal=null,Jd(e,"data-padding-right")&&(wn(e,"paddingRight",Xd(e,"data-padding-right")||""),Kd(e,"data-padding-right"))}}}),Qi=new XF;function Fu(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fu=function(r){return typeof r}:Fu=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fu(t)}function U_(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 V_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?U_(Object(r),!0).forEach(function(n){JF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function JF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W_(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 ej(t,e,r){return e&&W_(t.prototype,e),r&&W_(t,r),t}function ju(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?ju=Reflect.get:ju=function(a,i,s){var u=tj(a,i);if(u){var c=Object.getOwnPropertyDescriptor(u,i);return c.get?c.get.call(s):c.value}},ju(t,e,r||t)}function tj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ha(t),t!==null););return t}function rj(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&&bf(t,e)}function bf(t,e){return bf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},bf(t,e)}function nj(t){var e=ij();return function(){var n=Ha(t),a;if(e){var i=Ha(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return aj(this,a)}}function aj(t,e){return e&&(Fu(e)==="object"||typeof e=="function")?e:G_(t)}function G_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ij(){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 Ha(t){return Ha=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ha(t)}var sj=function(t){rj(r,t);var e=nj(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return QF(this,r),a=e.call(this,n,i),by(G_(a),{trigger:bn()}),a}return ej(r,null,[{key:"Defaults",get:function(){return V_(V_({},ju(Ha(r),"Defaults",this)),{},{trigger:null})}}]),r}(AF);function Z_(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 es(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Z_(Object(r),!0).forEach(function(n){Yt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oj={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},uj=_t({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:[my,String,Object],default:null},headerCloseContent:{type:String,default:"×"},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 _u(e)||Gd(["ok","cancel","close"],e)}}},Ry),wf=y.extend({name:Ry,mixins:[tf,Tu,VF,VI,WF,zi,KF],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:uj,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:Qi.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={},Yt(e,"modal-".concat(this.size),this.size),Yt(e,"modal-dialog-centered",this.centered),Yt(e,"modal-dialog-scrollable",this.scrollable),e),this.dialogClass]},headerClasses:function(){var e;return[(e={},Yt(e,"bg-".concat(this.headerBgVariant),this.headerBgVariant),Yt(e,"text-".concat(this.headerTextVariant),this.headerTextVariant),Yt(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={},Yt(e,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),Yt(e,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),e),this.bodyClass]},footerClasses:function(){var e;return[(e={},Yt(e,"bg-".concat(this.footerBgVariant),this.footerBgVariant),Yt(e,"text-".concat(this.footerTextVariant),this.footerTextVariant),Yt(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 en(this.ignoreEnforceFocusSelector).filter(Aa).join(",").trim()},computedAttrs:function(){var e=this.static?{}:this.scopedStyleAttrs;return es(es(es({},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=Qi.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=UI(this.$refs.content,this.checkModalOverflow.bind(this),oj))},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 sj(e,es(es({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=Ny(Dt?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(Qi.modalsAreOpen&&this.noStacking){this.listenOnRootOnce("bv::modal::hidden",this.doShow);return}Qi.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,$a(function(){$a(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,$a(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,Qi.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){Ui(r,"mouseup",a,On),i.target===r&&(e.ignoreBackdropClick=!0)};ef(r,"mouseup",n,On)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!ji(document.body,e.target)||ji(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===PI&&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||ji(r,n)||this.computeIgnoreEnforceFocusSelector&&cI(this.computeIgnoreEnforceFocusSelector,n,!0))){var a=dI(this.$refs.content),i=this.$refs,s=i.bottomTrap,u=i.topTrap;if(s&&n===s){if(Sn(a[0]))return}else if(u&&n===u&&Sn(a[a.length-1]))return;Sn(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;Dt&&$a(function(){var r=e.$refs.modal,n=e.$refs.content,a=e.getActiveElement();if(r&&n&&!(a&&ji(n,a))){var i=e.$refs["ok-button"],s=e.$refs["cancel-button"],u=e.$refs["close-button"],c=e.autoFocusButton,l=c==="ok"&&i?i.$el||i:c==="cancel"&&s?s.$el||s:c==="close"&&u?u.$el||u:n;Sn(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=Zn(e)?Zd(e):e,e&&(e=e.$el||e,Sn(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(_I,{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")?{}:Du(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(Hi,this.slotScope)),s=e();if(!this.hideFooter){var u=this.normalizeSlot("modal-footer",this.slotScope);if(!u){var c=e();this.okOnly||(c=e(u_,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:Du(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=e(u_,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:Du(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));u=[c,l]}s=e("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[u])}var o=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[r,i,s]),d=e(),h=e();this.isVisible&&!this.noEnforceFocus&&(d=e("span",{ref:"topTrap",attrs:{tabindex:"0"}}),h=e("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,o,h]),p=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]);p=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}},[p]);var v=e();return!this.hideBackdrop&&this.isVisible&&(v=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),v=e(mI,{props:{noFade:this.noFade}},[v]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[p,v])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(UF,[this.makeModal(e)])}});const lj=y.defineComponent({name:"BikeForm",components:{SimpleCard:te,DefaultSelect:pe,DefaultInput:ce,ZipcodeInput:Ta,BirthdateInput:Ae,ErrorHandler:K,BFormRadioGroup:et},props:{link:{type:String,required:!0},isOnResultPage:{type:Boolean,default:!1},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{conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}=Nd(t,e);return{bikeState:Wn,bikeKinds:Id,bikeConditions:Fd,errors:z,conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}}});var K_=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.bikeState.zipcode,callback:function(n){e.$set(e.bikeState,"zipcode",n)},expression:"bikeState.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.checkCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.conditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:e.maxPriceLength,"has-prepend":e.hasPricePrepend,"prepend-text":e.prependText,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 ")])])])},cj=[];K_._withStripped=!0;var X_=E(lj,K_,cj,!1,null,null,null,null);X_.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeForm.vue";const dj=X_.exports,fj=y.defineComponent({name:"BikeFormHorizontal",components:{SimpleCard:te,DefaultSelect:pe,DefaultInput:ce,ZipcodeInput:Ta,BirthdateInput:Ae,ErrorHandler:K,BFormRadioGroup:et},props:{link:{type:String,required:!0},isOnResultPage:{type:Boolean,default:!1},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{conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}=Nd(t,e);return{bikeState:Wn,bikeKinds:Id,bikeConditions:Fd,errors:z,hasNewDesign:L,conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}}});var J_=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:"bikeFormRef",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.bikeState.zipcode,callback:function(n){e.$set(e.bikeState,"zipcode",n)},expression:"bikeState.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.checkCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.conditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:e.maxPriceLength,"has-prepend":e.hasPricePrepend,"prepend-text":e.prependText,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)])])},hj=[];J_._withStripped=!0;var Q_=E(fj,J_,hj,!1,null,null,null,null);Q_.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormHorizontal.vue";const pj=Q_.exports,mj=y.defineComponent({name:"BikeFormOld",components:{SimpleCard:te,DefaultSelect:pe,DefaultInput:ce,ZipcodeInput:Ta,BirthdateInput:Ae,ErrorHandler:K,BFormRadioGroup:et},props:{link:{type:String,required:!0},isOnResultPage:{type:Boolean,default:!1},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{conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}=Nd(t,e);return{bikeState:Wn,bikeKinds:Id,bikeConditions:Fd,errors:z,hasNewDesign:L,conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}}});var eb=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:"bikeFormRef",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.bikeState.zipcode,callback:function(n){e.$set(e.bikeState,"zipcode",n)},expression:"bikeState.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.checkCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),e.conditionError?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:e.maxPriceLength,"has-prepend":e.hasPricePrepend,"prepend-text":e.prependText,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 ")])])])])},vj=[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("*")])])}];eb._withStripped=!0;var tb=E(mj,eb,vj,!1,null,null,null,null);tb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormOld.vue";const gj=tb.exports,yj=(t,e)=>{const r=y.ref(""),n=y.ref(!1);y.ref([]),y.ref("");const a=y.ref(!1);let i=y.ref(!1);function s(){return F(this,null,function*(){const o=yield dt(["license"]);if(a.value=!Object.keys(Bt.companyData).length||!Bt.companyData.company_name,o&&!n.value&&!a.value)if(console.warn("submitted!"),console.warn(Bt.companyData),console.warn(Je),t.isOnResultPage||t.isOnCoveragePage)e("submit-form",{businessState:Bt});else{const d=yield u();d&&e("redirect-page",{link:`${t.link}#/${d.getId()}/dekkingen/`})}})}function u(){return F(this,null,function*(){console.warn("Comparison for business car is created !")})}function c(){n.value=!1}function l(){n.value=!0}return y.onMounted(()=>{var o;i.value=!0,(t.isOnResultPage||t.isOnCoveragePage)&&(Object.assign(Je,t.insuranceState),r.value=(o=Je.LicensePlate)!=null?o:""),!t.isOnResultPage||t.isOnCoveragePage}),{licensePlate:r,hasCompaniesListValidationError:a,isMultiselectReady:i,onLicenseInput:c,onLicenseError:l,validateBeforeSubmit:s}};function _j(t){return t=t.split("-").join(""),t}function bj(t,e){return t.split("").reduce((r,n,a)=>(n===e&&r.push(a),r),[])}function wj(t){const e=parseInt(t);return!!(e==0||e&&!isNaN(e))}const Sf=["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"];function Lu(t){let e="";if(e=_j(t),e.length>=6){const r=Oj(e).join("");let n=[];for(let a=0;a<Sf.length;a++){const i=Sf[a],s=i.split("-").join("");if(s===r){n=s.split(""),n=Sj(i,n,e);break}if(Sf.length===a+1)return"no-template-found"}if(n.length===8)return n.join("")}return e}function Sj(t,e,r){return e.map((n,a)=>e[a]=r[a]),bj(t,"-").forEach(n=>e.splice(n,0,"-")),e}function Oj(t){let e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&(wj(n)?e=[...e,"9"]:e=[...e,"X"])}return e}const Cj=y.defineComponent({name:"LicensePlate",components:{ErrorHandler:K},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=y.ref("");const n=y.ref({});let a=y.ref(!1),i=y.ref(!1),s=y.ref(!1);const u={motor:"fa-motorcycle",car:"fa-car",brommobiel:"fa-car-side"},c=y.computed(()=>[{rule:"required",text:"Dit veld is verplicht"},{rule:"minlength",text:"Kenteken is incorrect"},{rule:l.value,text:"Kenteken is incorrect"},{rule:s.value,text:"Kenteken onbekend"},{rule:i.value,text:`Het ingevoerde kenteken is geen ${t.insuranceDutchNaming.toLowerCase()}`},{rule:!a.value&&d(t.value)&&!n.value.VehicleType&&Object.keys(n.value).length!==0,text:"Voertuig onbekend - Voer ander kenteken in of neem contact op"}]),l=y.computed(()=>Lu(r.value)==="no-template-found"&&d(r.value)),o=y.computed(()=>!a.value&&n.value.Brand&&n.value.Model&&t.vehicleTypes.includes(n.value.VehicleType)&&t.value.length>=6&&!z.has(t.name)&&!l.value),d=g=>g.length===8,h=g=>{e("focus");let w=g.srcElement.name;const S=he.fields.find({name:w});(S!==null||S!==void 0&&S)&&(S.reset(),he.errors.remove(S.name,S.scope))},f=g=>{e("blur");let w=g.srcElement.name;const S=he.fields.find({name:w});(S!==null||S!==void 0&&S)&&he.validate(S.name)},p=(g,w,S)=>{w==="input"&&(s.value=!1),g||(i.value=!1),g.length<8&&(n.value={});let P=Lu(g);if(P==="no-template-found"){r.value=g,e(w,g),e("on-error");return}e(w,P.toUpperCase()),r.value=P.toUpperCase(),d(P)&&w==="input"&&(he.validate(t.name),S&&m(P.toUpperCase()))},v=g=>{let w=(g.clipboardData||window.clipboardData).getData("text");if(w=w.trim(),typeof w=="string"&&w){let S=Lu(w);if(S==="no-template-found"){r.value=w,e("input",w),e("on-error"),g.preventDefault();return}e("input",S.toUpperCase()),r.value=S.toUpperCase(),e("license-correct"),d(S)&&(he.validate(t.name),m(S.toUpperCase())),g.preventDefault()}},_=(g,w)=>F(this,null,function*(){const S=g.toLocaleLowerCase(),P=yield ye.dataService.findVehicle(w,S);return P||null}),m=g=>{a.value=!0,i.value=!1,s.value=!1,n.value={},_(t.vehicleType,g).then(w=>{if(Array.isArray(w)&&!w.length){a.value=!1,s.value=!0,he.validate("unknownLicensePlateHiddenField");return}if(t.vehicleTypes.length!==0&&!t.vehicleTypes.includes(w.VehicleType)){e("incorrect-vehicle-type"),i.value=!0,a.value=!1,he.validate("incorrectLicensePlateHiddenField"),he.validate("noLicensePlateHiddenField"),he.validate("unknownLicensePlateHiddenField");return}n.value=w,e("on-vehicle-information-update",w),a.value=!1})};return y.onMounted(()=>{y.nextTick(()=>{if(r.value=t.value,!r.value)return;let g=!0;d(Lu(r.value))&&Object.keys(t.propVehicleInformation).length!==0&&(n.value=t.propVehicleInformation,he.validate(t.name),g=!1),p(r.value,"input",g)})}),{errors:z,userState:O,motorState:Jr,hasNewDesign:L,license:r,vehicleInformation:n,isLicenseUnknown:s,isLicenseTemplateIncorrect:l,isRetrievingVehicleInformation:a,incorrectLicensePlate:i,vehicleIcons:u,errorsData:c,isVehicleInfoShowed:o,isLicenseFull:d,resetFieldValidation:h,validateField:f,onPasteEvent:v,retrieveLicensePlateInformation:m,setValue:p}}}),kj="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 rb=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"},[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}})]),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}}),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:"d-flex flex-wrap align-items-center fz-medium mt-1",class:e.hasNewDesign?"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.vehicleInformation.Model==="Brommobiel"?e.vehicleIcons.brommobiel:""]},[e.vehicleInformation.Model!=="Brommobiel"?r("img",{attrs:{src:kj,width:"20px",height:"20px",alt:"scooter"}}):e._e()]),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:"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(" Voertuig gegevens ophalen ")])]):e._e()]},{loading:e.isRetrievingVehicleInformation,vehicleInformation:e.vehicleInformation})],2)},xj=[];rb._withStripped=!0;var nb=E(Cj,rb,xj,!1,null,null,null,null);nb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/LicensePlate.vue";const Pr=nb.exports;function Of(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function Pj(t){return(...e)=>!t(...e)}function Dj(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function ab(t,e,r,n){return t.filter(a=>Dj(n(a,r),e))}function Tj(t){return t.filter(e=>!e.$isLabel)}function Cf(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 Mj(t,e,r,n,a){return i=>i.map(s=>{if(!s[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=ab(s[r],t,e,a);return u.length?{[n]:s[n],[r]:u}:[]})}const ib=(...t)=>e=>t.reduce((r,n)=>n(r),e),Rj={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 Of(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):ab(r,e,this.label,this.customLabel):r=this.groupValues?Cf(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(Pj(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 ib(Mj(e,r,this.groupValues,this.groupLabel,this.customLabel),Cf(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return ib(Cf(this.groupValues,this.groupLabel),Tj)(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(Of(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;let e=this.customLabel(t,this.label);return Of(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{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"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)},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.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 sb=function(){var e=this,r=e._self._c;return r("div",{staticClass:"multiselect",class:{"multiselect--active":e.isOpen,"multiselect--disabled":e.disabled,"multiselect--above":e.isAbove,"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:"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:"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:"multiselect__tags-wrap"},[e._l(e.visibleValues,function(n,a){return[e._t("tag",function(){return[r("span",{key:a,staticClass:"multiselect__tag"},[r("span",{domProps:{textContent:e._s(e.getOptionLabel(n))}}),r("i",{staticClass:"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:"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:"multiselect__loading"}},[e._t("loading",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"multiselect__spinner"})]})],2),e.searchable?r("input",{ref:"search",staticClass:"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:"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:"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:"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:"multiselect__content-wrapper",style:{maxHeight:103*5+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(n){n.preventDefault()}}},[r("ul",{staticClass:"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:"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:"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:"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:"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:"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:"multiselect__option"},[e._t("noOptions",function(){return[e._v("List is empty.")]})],2)]),e._t("afterList")],2)])])])],2)},Ej=[];sb._withStripped=!0;var ob=E(Rj,sb,Ej,!1,null,null,null,null);ob.options.__file="/Users/mac/Work/comparison-forms/src/components/common/extended/Multiselect.vue";const Aj=ob.exports,$j=y.defineComponent({name:"CompaniesListSelect",components:{ErrorHandler:K,Multiselect:Aj},props:{hasCompaniesListValidationError:{required:!1}},setup(t,{attrs:e,listeners:r,emit:n}){let a=y.reactive({kvk_number:"",company_name:"",legal_entity:"",rsin:"",branch_number:"",postcode:"",city:"",street:"",house_number:"",house_number_addition:"",full_address:"",sbi_activities:""}),i=y.ref(null),s=y.ref([]),u=y.ref(!1),c=y.ref(null),l=y.ref(!1),o=y.ref(!1),d=y.ref(!1);const h=()=>{Object.keys(a).map(S=>{a[S]=""})},f=()=>{h(),n("update-company-data",a),l.value=!1},p=()=>{l.value=!0},v=()=>{d.value=!1,o.value=!0},_=()=>{o.value=!1};y.watch(i,S=>F(this,null,function*(){S&&S.kvkNummer&&(yield ye.dataService.getProfileInfo(S.kvkNummer).then(P=>{p();let j=P._embedded.hoofdvestiging.adressen.find(X=>X.type==="bezoekadres"),ue=j.huisletter||"";ue+=j.huisnummerToevoeging||"",a.kvk_number=P.kvkNummer,a.company_name=P.naam,a.legal_entity=P._embedded.eigenaar.rechtsvorm,a.rsin=P._embedded.eigenaar.rsin||null,a.branch_number=P._embedded.hoofdvestiging.vestigingsnummer,a.postcode=j.postcode||null,a.city=j.plaats||null,a.street=j.straatnaam||null,a.house_number=j.huisnummer||null,a.house_number_addition=ue||null,a.full_address=j.volledigAdres||null,a.sbi_activities=P.sbiActiviteiten.map(X=>({code:X.sbiCode,description:X.sbiOmschrijving,is_main:X.indHoofdactiviteit==="Ja"})),n("update-company-data",P)}))}));const m=S=>{u.value=!0,S.aantal=30,ye.dataService.searchBusinessInfo({companyName:S.handelsnaam,kvkNumber:S.kvkNummer},1,S.aantal).then(P=>{u.value=!1;let j=P.resultaten.filter(ue=>ue.type==="hoofdvestiging");j.length>0?s.value=j.map(ue=>(ue.name=`${ue.handelsnaam}`,ue)):s.value=[]}).catch(P=>{s.value=[],u.value=!1})},g=S=>{S.length>2&&(clearTimeout(c.value),c.value=setTimeout(()=>{S.length==8&&/^\d+$/.test(S)?m({kvkNummer:S}):w(S)?m(w(S)):m({handelsnaam:S})},700))},w=S=>{if(S.length>7){let P=S.split(" ");if(P.length>1&&/^([0-9]{4}[A-Z]{2}|[0-9]{4}[a-z]{2})$/.test(P[0])){let j={postcode:P[0],huisnummer:P[1]};return P[2]&&(j.huisnummerToevoeging=P[2]),j}}return null};return{attrs:e,listeners:r,companyName:i,companies:s,businessInfoModel:a,isOptionSelected:l,isDropdownFocused:o,isErrorShowed:d,isLoading:u,findCompanies:g,selectOption:p,removeOption:f,setDropdownOpened:v,setDropdownClosed:_}}});var ub=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("multiselect",{class:{"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",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:"multiselect__option-external-wrapper"},[r("div",{staticClass:"multiselect__option-wrapper"},[r("p",[r("b",[e._v(e._s(n.handelsnaam))]),r("br")]),r("p",[e._v(e._s("Kvk: "+n.kvkNummer)),r("br")]),r("p",[e._v(e._s(n.plaats+", "+n.straatnaam)),r("br")])])])]}}]),model:{value:e.companyName,callback:function(n){e.companyName=n},expression:"companyName"}},[r("template",{slot:"noResult"},[r("p",{staticClass:"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:"multiselect__option-non-result mb-0"},[e._v("Bedrijfsnaam of KVK-nummer")])])],2),e.isOptionSelected&&!e.isDropdownFocused?r("div",{staticClass:"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)},Nj=[];ub._withStripped=!0;var lb=E($j,ub,Nj,!1,null,null,null,null);lb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/CompaniesListSelect.vue";const cb=lb.exports,Ij=y.defineComponent({name:"Loader",props:{isActive:{type:Boolean,required:!1,default:!0},small:{type:Boolean,required:!1,default:!1}}});var db=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()},Fj=[];db._withStripped=!0;var fb=E(Ij,db,Fj,!1,null,"3514e0e8",null,null);fb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/Loader.vue";const kf=fb.exports,jj=y.defineComponent({name:"BusinessCarForm",components:{SimpleCard:te,LicensePlate:Pr,CompaniesListSelect:cb,Loader:kf},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},isOnResultPage:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}}},setup(t,{emit:e}){const{licensePlate:r,hasCompaniesListValidationError:n,isMultiselectReady:a,onLicenseInput:i,onLicenseError:s,validateBeforeSubmit:u}=yj(t,e);return{businessState:Bt,carState:Je,errors:z,licensePlate:r,hasCompaniesListValidationError:n,isMultiselectReady:a,onLicenseInput:i,onLicenseError:s,updateCompanyData:l=>{Bt.companyData=Vt({},l)},validateBeforeSubmit:u}}});var hb=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"],"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.licensePlate,callback:function(n){e.licensePlate=n},expression:"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},Lj=[];hb._withStripped=!0;var pb=E(jj,hb,Lj,!1,null,null,null,null);pb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/business/businessCar/components/BusinessCarForm.vue";const Bj=pb.exports,mb=()=>{const t=new J.User({}),e=(a,i)=>F(this,null,function*(){try{return t.setDetail(null,{}),r(i),n(t),yield ye.comparisonService1.create(a,t)}catch(s){throw s}}),r=a=>{a.map(i=>{t.setDetail(i.name,i.data)})},n=a=>{a.setZipCode(O.zipcode),a.setHouseNumber(Number(O.houseNumber)),a.setHouseNumberAddition(O.houseNumberAddition),a.setBirthDate(O.birthdate),a.setFamilyComposition(O.familyComposition)};return{generateComparisonId:e}};function qj(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 Bu(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 vb=t=>{const{generateComparisonId:e}=mb(),r=(l,o)=>{t("redirect-page",{link:l,data:o})},n=l=>{t("submit-form",l)},a=(l,o,d)=>F(this,null,function*(){try{const h=yield e(l,o);h&&r(i(d,h.getId()))}catch(h){throw h}}),i=(l,o)=>l.replace("<<COMPARISONID>>",o);return{submitFormAndRedirect:r,submitFormAndUpdateFormData:n,submitFormAndCreateComparison:a,setInitialUserInfoInStore:l=>{Object.keys(O).map(d=>{d==="zipcode"&&(O[d]=l.userInformation.zipCode||ht()[d]||O[d]),d==="houseNumber"&&(O[d]=String(l.userInformation[d])||ht()[d]||O[d]),O[d]=l.userInformation[d]||ht()[d]||O[d]})},removeSessionState:(l,o)=>{nr.removeSessionState(l,o)},openQuotationModal:()=>{const{refId:l,notes:o,description:d,headerTitle:h}=Da;t("emit-event-hub",{event:"open-quotation-modal",data:{refId:l,notes:o,description:d,headerTitle:h}})}}},Yj=()=>[{name:"car",data:Object.assign(Je,{LicensePlate:Je.LicensePlate,Brand:Je.Brand,Model:Je.Model,Type:Je.Type,VehicleType:Je.VehicleType,ManufacturingYear:Je.ManufacturingYear})},{name:"comparison",data:{ClaimFreeYears:"0",Coverage:null,Deductables:300,Kilometrage:"12000"}}],gb=y.ref(!1),xf=y.ref(!1),Pf=(t,e)=>{mb();const{submitFormAndRedirect:r,submitFormAndUpdateFormData:n,submitFormAndCreateComparison:a,setInitialUserInfoInStore:i,removeSessionState:s,openQuotationModal:u}=vb(e),c=()=>F(this,null,function*(){return(yield dt(["license","zipcode","housenumber","housenumberaddition","birthdate","isLicenseTemplateIncorrectHiddenField"]))&&!gb.value&&Je.VehicleType==="Car"&&!xf.value}),l=()=>{Object.assign(Je,t.insuranceState)},o=()=>`${t.link}#/<<COMPARISONID>>/dekkingen/`;function d(){return F(this,null,function*(){if(yield c())if(t.formLocation===Qe.isOnResultPage)n({userInformation:O,carState:Je});else try{const p=Yj();yield a("car",p,o())}catch(p){console.error(p),Da.refId="192",Da.notes.push({text:"Kan geen comparison ID aanmaken voor rechtsbijstandverzekering vergelijking"}),Da.notes.push({text:`Kenteken: ${Je.LicensePlate} | Postcode: ${O.zipcode} | Huisnummer: ${O.houseNumber} | Huisnummer toevoeging: ${O.houseNumberAddition} | Geboortedatum: ${O.birthdate}`}),Da.notes=Bu(Da.notes),u()}})}function h(){xf.value=!1}function f(){xf.value=!0}return y.onMounted(()=>{t.formLocation===Qe.isOnResultPage&&(i(t),l()),t.formLocation===Qe.isBeforeFlow&&s("car-storage","car-path")}),{houseError:gb,onLicenseInput:h,onLicenseError:f,validateBeforeSubmit:d}};var yb={exports:{}};const Hj=Za(MF);(function(t,e){(function(r,n){t.exports=n(Hj)})(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 s=i;return i.__file="popper.js.vue",function(u,c,l,o,d,h,f,p,v,_){typeof f=="function"&&(v=p,p=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)),o&&(m._scopeId=o),h?(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(h)},m._ssrRegister=g):c&&(g=f?function(){c.call(this,_(this.$root.$options.shadowRoot))}:function(w){c.call(this,p(w))}),g)if(m.functional){const w=m.render;m.render=function(S,P){return g.call(P),w(S,P)}}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,s,void 0,!1,void 0,void 0,void 0)})})(yb);var zj=yb.exports;const za=pt(zj),Uj=y.defineComponent({components:{DefaultInput:ce,DefaultSelect:pe,ErrorHandler:K,Popper:za},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=y.ref(!1),n=y.ref(!1),a=y.ref(!1),i=y.ref(!0),s=y.ref(!1),u=y.ref(""),c=y.ref(""),l=y.ref(""),o=y.ref([]),d=y.ref({street:"",city:""}),h=y.ref(!1),f=[{rule:"required",text:"Vul je postcode in"},{rule:"regex",text:"Postcode is incorrect"}],p=[{rule:"required",text:"Huisnummer is verplicht"}],v=y.computed(()=>[{rule:z.has(t.houseNumberAdditionName),text:"Een toevoeging is verplicht"}]),_=y.computed(()=>[{rule:a.value,text:"Postcode en huisnummer combinatie onbekend."}]),m=y.computed(()=>r.value?"-":"Kies toevoeging"),g=y.computed(()=>`${s.value?"":"required"}|is_not:CHOOSE_OPTION`),w=(V,B,Ze)=>F(this,null,function*(){try{if(!V||!B){ue(""),l.value="CHOOSE_OPTION",a.value=!1,d.value.street="",d.value.city="",o.value=[{title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}];return}o.value=[],Ze&&(l.value="CHOOSE_OPTION"),o.value.push({title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}),s.value=yield S(V,B),s.value&&(o.value=[...o.value,{title:"Geen toevoeging",value:""}]),ye.homeService.getAddition({zipcode:V,houseNumber:B}).then(Ke=>{const Ut=Ke;if(i.value=!0,U(t.houseNumberAdditionName),Ut.length){r.value=!1;for(let Rr=0;Rr<Ut.length;Rr++)o.value=[...o.value,{title:Ut[Rr],value:Be(Ut[Rr])}];a.value=!1,Ze||y.nextTick(()=>{l.value=t.houseNumberAddition,X(V,B,t.houseNumberAddition)})}else o.value[1]&&(o.value[1].title="Geen toevoeging"),r.value=!0,l.value="",ue(""),X(V,B)}).catch(Ke=>{a.value=!0,d.value.street="",d.value.city="",e("address-correct",!a.value),U("housenumberaddition"),console.error("Error fetching additions:",Ke)})}catch(Ke){console.error("Error in getHouseNumberAdditions:",Ke)}}),S=(V,B)=>F(this,null,function*(){return yield ye.dataValidationService.validateZipCode(V,B).then(()=>!0).catch(()=>!1)}),P=V=>{h.value=!0,u.value=V.toUpperCase(),e("update-zipcode",V.toUpperCase()),y.nextTick(()=>{w(V.toUpperCase(),t.houseNumber,!0)})},j=V=>{h.value=!0,e("update-house-number",V),y.nextTick(()=>{w(t.zipcode,V,!0)})},ue=V=>{e("update-house-number-addition",V),X(t.zipcode,t.houseNumber,V)},X=(V,B,Ze="")=>F(this,null,function*(){try{if(!V||!B)return;n.value=!0,a.value=!1,d.value.street="",d.value.city="",e("address-correct",!a.value);const{Street:Ke,Place:Ut}=yield ye.dataValidationService.validateZipCode(V,B,Ze);h.value=!1,d.value.street=Ke,d.value.city=Ut,e("update-house-information",d.value),n.value=!1}catch(Ke){a.value=!0,n.value=!1,e("address-correct",!a.value),U("housenumberaddition"),console.error("Error getting house information:",Ke)}}),U=V=>{var Ze;const B=he.fields.find({name:V});(B!==null||B!==void 0&&B)&&(B==null||B.reset(),(Ze=he==null?void 0:he.errors)==null||Ze.remove(B==null?void 0:B.name,B==null?void 0:B.scope))},Be=V=>V.includes("-")?V.replace("-",""):V;return y.onMounted(()=>{y.nextTick(()=>{u.value=t.zipcode,c.value=t.houseNumber,w(t.zipcode,t.houseNumber,!1)})}),{errors:z,hasNewDesign:L,additionLabel:m,additionValidationRules:g,disableAdditionField:r,isLoading:n,addressError:a,firstTimeCalled:i,canBeWithoutAddition:s,zipcodeModel:u,houseNumberModel:c,houseAdditionNumberModel:l,additions:o,houseInformation:d,isAddressEditing:h,props:t,zipcodeErrorsData:f,houseNumberErrorsData:p,houseNumberAdditionErrorsData:v,addressErrorsData:_,getHouseNumberAdditions:w,getHouseInformationWithoutAddition:S,updateZipcode:P,updateHouseNumber:j,updateHouseNumberAddition:ue,getHouseInformation:X,resetFieldValidation:U}}});var _b=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)}}})])},Vj=[];_b._withStripped=!0;var bb=E(Uj,_b,Vj,!1,null,null,null,null);bb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/AddressHandler.vue";const tt=bb.exports,Wj=y.defineComponent({name:"CarForm",components:{LicensePlate:Pr,AddressHandler:tt,DefaultInput:ce,SimpleCard:te,BirthdateInput:Ae},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:Qe.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Pf(t,e);return{userState:O,carState:Je,hasNewDesign:L,errors:z,houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var wb=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"],"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},Gj=[];wb._withStripped=!0;var Sb=E(Wj,wb,Gj,!1,null,null,null,null);Sb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarForm.vue";const Zj=Sb.exports,Kj=y.defineComponent({name:"CarFormHorizontal",components:{LicensePlate:Pr,AddressHandler:tt,DefaultInput:ce,SimpleCard:te,BirthdateInput:Ae},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:Qe.isBeforeFlow}},setup(t,{emit:e}){const{licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:s}=Pf(t,e);return{userState:O,carState:Je,hasNewDesign:L,errors:z,licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:s}}});var Ob=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"],"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.licensePlate,callback:function(n){e.licensePlate=n},expression:"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},Xj=[];Ob._withStripped=!0;var Cb=E(Kj,Ob,Xj,!1,null,null,null,null);Cb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormHorizontal.vue";const Jj=Cb.exports,Qj=y.defineComponent({name:"CarFormOld",components:{LicensePlate:Pr,AddressHandler:tt,DefaultInput:ce,SimpleCard:te,BirthdateInput:Ae},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:Qe.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Pf(t,e);return{userState:O,carState:Je,hasNewDesign:L,errors:z,houseError:r,FormLocations:Qe,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var kb=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"],"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])],1)},eL=[];kb._withStripped=!0;var xb=E(Qj,kb,eL,!1,null,null,null,null);xb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormOld.vue";const tL=xb.exports,rL="192";function nL(t){const e={CreationForm:"CreationForm",Aanvragen:"Aanvragen",Common:"Common"};let r=y.ref([]);const n={[e.CreationForm]:{title:"Oeps... er gaat iets mis!",refId:rL,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 o=u(l);r.value.push(o)},s=()=>{r.value=[]},u=l=>({text:l}),c=l=>{const{title:o,refId:d,notes:h,description:f}=n[l];return{title:o,refId:d,notes:[...h||[],...r.value],description:f}};return{QuotationType:e,openQuotationModal:a,addNote:i,resetNotes:s,convertToNote:u,renderQuotationData:c}}class aL{static render(e){const{AlimonyType:r,AnotherMonthlyExpenses:n,BenefitType:a,CarMonthlyContributionExpenses:i,CarMonthlyTaxAdditionExpenses:s,CarOwnershipType:u,DesiredDuration:c,DesiredRepayment:l,HouseSituation:o,IncomeSituation:d,IncomeType:h,IndependentYears:f,LoanAmount:p,LoanPurpose:v,MonthlyAlimonyAllowance:_,MonthlyCarRentalExpenses:m,MonthlyChildcareAllowance:g,MonthlyChildcareExpenses:w,MonthlyCurrentLoansExpenses:S,MonthlyHouseExpenses:P,MonthlyNetIncome:j,MonthlyStudentLoansExpenses:ue,OwnedBuilding:X,PartnerIncomeType:U,PartnerMonthlyNetIncome:Be,Sorting:V,TemporaryWorkPhase:B,WorkedLastThreeYears:Ze}=e.loanData,qe=e,{loanData:Ke,filters:Ut,aanvragen:Rr}=qe,xn=X0(qe,["loanData","filters","aanvragen"]);return Vt({loanData:{AlimonyType:r,AnotherMonthlyExpenses:n,BenefitType:a,CarMonthlyContributionExpenses:i,CarMonthlyTaxAdditionExpenses:s,CarOwnershipType:u,DesiredDuration:c,DesiredRepayment:l,HouseSituation:o,IncomeSituation:d,IncomeType:h,IndependentYears:f,LoanAmount:p,LoanPurpose:v,MonthlyAlimonyAllowance:_,MonthlyCarRentalExpenses:m,MonthlyChildcareAllowance:g,MonthlyChildcareExpenses:w,MonthlyCurrentLoansExpenses:S,MonthlyHouseExpenses:P,MonthlyNetIncome:j,MonthlyStudentLoansExpenses:ue,OwnedBuilding:X,PartnerIncomeType:U,PartnerMonthlyNetIncome:Be,Sorting:V,TemporaryWorkPhase:B,WorkedLastThreeYears:Ze}},xn)}}let Df=y.ref(!1);const Pb=(t,e)=>{const{QuotationType:r,openQuotationModal:n,addNote:a,resetNotes:i}=nL(e),s=y.computed(()=>aL.render(t.comparison.getUser().getDetail())),u=y.computed(()=>t.formOrientation===Ri.Horizontal),c=_=>`${t.baseUrl}#/${_}`,l=_=>F(this,null,function*(){i();try{const m=yield ye.comparisonService.create("loan",_);return yield ye.comparisonService.update(m),m}catch(m){console.error(m),a(`
|
|
53
|
+
*/var Gi=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",WI=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Gi&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function GI(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function ZI(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},WI))}}var KI=Gi&&window.Promise,XI=KI?GI:ZI;function d_(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function Jn(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function nf(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Zi(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Jn(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(r+a+n)?t:Zi(nf(t))}function f_(t){return t&&t.referenceNode?t.referenceNode:t}var h_=Gi&&!!(window.MSInputMethodContext&&document.documentMode),p_=Gi&&/MSIE 10/.test(navigator.userAgent);function Fa(t){return t===11?h_:t===10?p_:h_||p_}function ja(t){if(!t)return document.documentElement;for(var e=Fa(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&&Jn(r,"position")==="static"?ja(r):r}function JI(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||ja(t.firstElementChild)===t}function af(t){return t.parentNode!==null?af(t.parentNode):t}function Mu(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 s=i.commonAncestorContainer;if(t!==s&&e!==s||n.contains(a))return JI(s)?s:ja(s);var u=af(t);return u.host?Mu(u.host,e):Mu(t,af(e).host)}function La(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 QI(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=La(e,"top"),a=La(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 m_(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 v_(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],Fa(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function g_(t){var e=t.body,r=t.documentElement,n=Fa(10)&&getComputedStyle(r);return{height:v_("Height",e,r,n),width:v_("Width",e,r,n)}}var eF=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},tF=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}}(),Ba=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},qt=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 Cn(t){return qt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function sf(t){var e={};try{if(Fa(10)){e=t.getBoundingClientRect();var r=La(t,"top"),n=La(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"?g_(t.ownerDocument):{},s=i.width||t.clientWidth||a.width,u=i.height||t.clientHeight||a.height,c=t.offsetWidth-s,l=t.offsetHeight-u;if(c||l){var o=Jn(t);c-=m_(o,"x"),l-=m_(o,"y"),a.width-=c,a.height-=l}return Cn(a)}function of(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Fa(10),a=e.nodeName==="HTML",i=sf(t),s=sf(e),u=Zi(t),c=Jn(e),l=parseFloat(c.borderTopWidth),o=parseFloat(c.borderLeftWidth);r&&a&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=Cn({top:i.top-s.top-l,left:i.left-s.left-o,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&a){var h=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);d.top-=l-h,d.bottom-=l-h,d.left-=o-f,d.right-=o-f,d.marginTop=h,d.marginLeft=f}return(n&&!r?e.contains(u):e===u&&u.nodeName!=="BODY")&&(d=QI(d,e)),d}function rF(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=of(t,r),a=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),s=e?0:La(r),u=e?0:La(r,"left"),c={top:s-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:a,height:i};return Cn(c)}function y_(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(Jn(t,"position")==="fixed")return!0;var r=nf(t);return r?y_(r):!1}function __(t){if(!t||!t.parentElement||Fa())return document.documentElement;for(var e=t.parentElement;e&&Jn(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function uf(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},s=a?__(t):Mu(t,f_(e));if(n==="viewport")i=rF(s,a);else{var u=void 0;n==="scrollParent"?(u=Zi(nf(e)),u.nodeName==="BODY"&&(u=t.ownerDocument.documentElement)):n==="window"?u=t.ownerDocument.documentElement:u=n;var c=of(u,s,a);if(u.nodeName==="HTML"&&!y_(s)){var l=g_(t.ownerDocument),o=l.height,d=l.width;i.top+=c.top-c.marginTop,i.bottom=o+c.top,i.left+=c.left-c.marginLeft,i.right=d+c.left}else i=c}r=r||0;var h=typeof r=="number";return i.left+=h?r:r.left||0,i.top+=h?r:r.top||0,i.right-=h?r:r.right||0,i.bottom-=h?r:r.bottom||0,i}function nF(t){var e=t.width,r=t.height;return e*r}function b_(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 s=uf(r,n,i,a),u={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},c=Object.keys(u).map(function(h){return qt({key:h},u[h],{area:nF(u[h])})}).sort(function(h,f){return f.area-h.area}),l=c.filter(function(h){var f=h.width,p=h.height;return f>=r.clientWidth&&p>=r.clientHeight}),o=l.length>0?l[0].key:c[0].key,d=t.split("-")[1];return o+(d?"-"+d:"")}function w_(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=n?__(e):Mu(e,f_(r));return of(r,a,n)}function S_(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 Ru(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 O_(t,e,r){r=r.split("-")[0];var n=S_(t),a={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,s=i?"top":"left",u=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return a[s]=e[s]+e[c]/2-n[c]/2,r===u?a[u]=e[u]-n[l]:a[u]=e[Ru(u)],a}function Ki(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function aF(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(a){return a[e]===r});var n=Ki(t,function(a){return a[e]===r});return t.indexOf(n)}function C_(t,e,r){var n=r===void 0?t:t.slice(0,aF(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&&d_(i)&&(e.offsets.popper=Cn(e.offsets.popper),e.offsets.reference=Cn(e.offsets.reference),e=i(e,a))}),e}function iF(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=w_(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=b_(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=O_(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=C_(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function k_(t,e){return t.some(function(r){var n=r.name,a=r.enabled;return a&&n===e})}function lf(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 sF(){return this.state.isDestroyed=!0,k_(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[lf("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function x_(t){var e=t.ownerDocument;return e?e.defaultView:window}function P_(t,e,r,n){var a=t.nodeName==="BODY",i=a?t.ownerDocument.defaultView:t;i.addEventListener(e,r,{passive:!0}),a||P_(Zi(i.parentNode),e,r,n),n.push(i)}function oF(t,e,r,n){r.updateBound=n,x_(t).addEventListener("resize",r.updateBound,{passive:!0});var a=Zi(t);return P_(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function uF(){this.state.eventsEnabled||(this.state=oF(this.reference,this.options,this.state,this.scheduleUpdate))}function lF(t,e){return x_(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 cF(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=lF(this.reference,this.state))}function cf(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function df(t,e){Object.keys(e).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&cf(e[r])&&(n="px"),t.style[r]=e[r]+n})}function dF(t,e){Object.keys(e).forEach(function(r){var n=e[r];n!==!1?t.setAttribute(r,e[r]):t.removeAttribute(r)})}function fF(t){return df(t.instance.popper,t.styles),dF(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&df(t.arrowElement,t.arrowStyles),t}function hF(t,e,r,n,a){var i=w_(a,e,t,r.positionFixed),s=b_(r.placement,i,e,t,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return e.setAttribute("x-placement",s),df(e,{position:r.positionFixed?"fixed":"absolute"}),r}function pF(t,e){var r=t.offsets,n=r.popper,a=r.reference,i=Math.round,s=Math.floor,u=function(m){return m},c=i(a.width),l=i(n.width),o=["left","right"].indexOf(t.placement)!==-1,d=t.placement.indexOf("-")!==-1,h=c%2===l%2,f=c%2===1&&l%2===1,p=e?o||d||h?i:s:u,v=e?i:u;return{left:p(f&&!d&&e?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:p(n.right)}}var mF=Gi&&/Firefox/i.test(navigator.userAgent);function vF(t,e){var r=e.x,n=e.y,a=t.offsets.popper,i=Ki(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 s=i!==void 0?i:e.gpuAcceleration,u=ja(t.instance.popper),c=sf(u),l={position:a.position},o=pF(t,window.devicePixelRatio<2||!mF),d=r==="bottom"?"top":"bottom",h=n==="right"?"left":"right",f=lf("transform"),p=void 0,v=void 0;if(d==="bottom"?u.nodeName==="HTML"?v=-u.clientHeight+o.bottom:v=-c.height+o.bottom:v=o.top,h==="right"?u.nodeName==="HTML"?p=-u.clientWidth+o.right:p=-c.width+o.right:p=o.left,s&&f)l[f]="translate3d("+p+"px, "+v+"px, 0)",l[d]=0,l[h]=0,l.willChange="transform";else{var _=d==="bottom"?-1:1,m=h==="right"?-1:1;l[d]=v*_,l[h]=p*m,l.willChange=d+", "+h}var g={"x-placement":t.placement};return t.attributes=qt({},g,t.attributes),t.styles=qt({},l,t.styles),t.arrowStyles=qt({},t.offsets.arrow,t.arrowStyles),t}function D_(t,e,r){var n=Ki(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+"`",s="`"+r+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function gF(t,e){var r;if(!D_(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,s=i.popper,u=i.reference,c=["left","right"].indexOf(a)!==-1,l=c?"height":"width",o=c?"Top":"Left",d=o.toLowerCase(),h=c?"left":"top",f=c?"bottom":"right",p=S_(n)[l];u[f]-p<s[d]&&(t.offsets.popper[d]-=s[d]-(u[f]-p)),u[d]+p>s[f]&&(t.offsets.popper[d]+=u[d]+p-s[f]),t.offsets.popper=Cn(t.offsets.popper);var v=u[d]+u[l]/2-p/2,_=Jn(t.instance.popper),m=parseFloat(_["margin"+o]),g=parseFloat(_["border"+o+"Width"]),w=v-t.offsets.popper[d]-m-g;return w=Math.max(Math.min(s[l]-p,w),0),t.arrowElement=n,t.offsets.arrow=(r={},Ba(r,d,Math.round(w)),Ba(r,h,""),r),t}function yF(t){return t==="end"?"start":t==="start"?"end":t}var T_=["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"],ff=T_.slice(3);function M_(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ff.indexOf(t),n=ff.slice(r+1).concat(ff.slice(0,r));return e?n.reverse():n}var hf={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function _F(t,e){if(k_(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=uf(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],a=Ru(n),i=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case hf.FLIP:s=[n,a];break;case hf.CLOCKWISE:s=M_(n);break;case hf.COUNTERCLOCKWISE:s=M_(n,!0);break;default:s=e.behavior}return s.forEach(function(u,c){if(n!==u||s.length===c+1)return t;n=t.placement.split("-")[0],a=Ru(n);var l=t.offsets.popper,o=t.offsets.reference,d=Math.floor,h=n==="left"&&d(l.right)>d(o.left)||n==="right"&&d(l.left)<d(o.right)||n==="top"&&d(l.bottom)>d(o.top)||n==="bottom"&&d(l.top)<d(o.bottom),f=d(l.left)<d(r.left),p=d(l.right)>d(r.right),v=d(l.top)<d(r.top),_=d(l.bottom)>d(r.bottom),m=n==="left"&&f||n==="right"&&p||n==="top"&&v||n==="bottom"&&_,g=["top","bottom"].indexOf(n)!==-1,w=!!e.flipVariations&&(g&&i==="start"&&f||g&&i==="end"&&p||!g&&i==="start"&&v||!g&&i==="end"&&_),S=!!e.flipVariationsByContent&&(g&&i==="start"&&p||g&&i==="end"&&f||!g&&i==="start"&&_||!g&&i==="end"&&v),P=w||S;(h||m||P)&&(t.flipped=!0,(h||m)&&(n=s[c+1]),P&&(i=yF(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=qt({},t.offsets.popper,O_(t.instance.popper,t.offsets.reference,t.placement)),t=C_(t.instance.modifiers,t,"flip"))}),t}function bF(t){var e=t.offsets,r=e.popper,n=e.reference,a=t.placement.split("-")[0],i=Math.floor,s=["top","bottom"].indexOf(a)!==-1,u=s?"right":"bottom",c=s?"left":"top",l=s?"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 wF(t,e,r,n){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],s=a[2];if(!i)return t;if(s.indexOf("%")===0){var u=void 0;switch(s){case"%p":u=r;break;case"%":case"%r":default:u=n}var c=Cn(u);return c[e]/100*i}else if(s==="vh"||s==="vw"){var l=void 0;return s==="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 SF(t,e,r,n){var a=[0,0],i=["right","left"].indexOf(n)!==-1,s=t.split(/(\+|\-)/).map(function(o){return o.trim()}),u=s.indexOf(Ki(s,function(o){return o.search(/,|\s/)!==-1}));s[u]&&s[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?[s.slice(0,u).concat([s[u].split(c)[0]]),[s[u].split(c)[1]].concat(s.slice(u+1))]:[s];return l=l.map(function(o,d){var h=(d===1?!i:i)?"height":"width",f=!1;return o.reduce(function(p,v){return p[p.length-1]===""&&["+","-"].indexOf(v)!==-1?(p[p.length-1]=v,f=!0,p):f?(p[p.length-1]+=v,f=!1,p):p.concat(v)},[]).map(function(p){return wF(p,h,e,r)})}),l.forEach(function(o,d){o.forEach(function(h,f){cf(h)&&(a[d]+=h*(o[f-1]==="-"?-1:1))})}),a}function OF(t,e){var r=e.offset,n=t.placement,a=t.offsets,i=a.popper,s=a.reference,u=n.split("-")[0],c=void 0;return cf(+r)?c=[+r,0]:c=SF(r,i,s,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 CF(t,e){var r=e.boundariesElement||ja(t.instance.popper);t.instance.reference===r&&(r=ja(r));var n=lf("transform"),a=t.instance.popper.style,i=a.top,s=a.left,u=a[n];a.top="",a.left="",a[n]="";var c=uf(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);a.top=i,a.left=s,a[n]=u,e.boundaries=c;var l=e.priority,o=t.offsets.popper,d={primary:function(f){var p=o[f];return o[f]<c[f]&&!e.escapeWithReference&&(p=Math.max(o[f],c[f])),Ba({},f,p)},secondary:function(f){var p=f==="right"?"left":"top",v=o[p];return o[f]>c[f]&&!e.escapeWithReference&&(v=Math.min(o[p],c[f]-(f==="right"?o.width:o.height))),Ba({},p,v)}};return l.forEach(function(h){var f=["left","top"].indexOf(h)!==-1?"primary":"secondary";o=qt({},o,d[f](h))}),t.offsets.popper=o,t}function kF(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var a=t.offsets,i=a.reference,s=a.popper,u=["bottom","top"].indexOf(r)!==-1,c=u?"left":"top",l=u?"width":"height",o={start:Ba({},c,i[c]),end:Ba({},c,i[c]+i[l]-s[l])};t.offsets.popper=qt({},s,o[n])}return t}function xF(t){if(!D_(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=Ki(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 PF(t){var e=t.placement,r=e.split("-")[0],n=t.offsets,a=n.popper,i=n.reference,s=["left","right"].indexOf(r)!==-1,u=["top","left"].indexOf(r)===-1;return a[s?"left":"top"]=i[r]-(u?a[s?"width":"height"]:0),t.placement=Ru(e),t.offsets.popper=Cn(a),t}var DF={shift:{order:100,enabled:!0,fn:kF},offset:{order:200,enabled:!0,fn:OF,offset:0},preventOverflow:{order:300,enabled:!0,fn:CF,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:bF},arrow:{order:500,enabled:!0,fn:gF,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:_F,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:PF},hide:{order:800,enabled:!0,fn:xF},computeStyle:{order:850,enabled:!0,fn:vF,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:fF,onLoad:hF,gpuAcceleration:void 0}},TF={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:DF},Eu=function(){function t(e,r){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};eF(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=XI(this.update.bind(this)),this.options=qt({},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(qt({},t.Defaults.modifiers,a.modifiers)).forEach(function(s){n.options.modifiers[s]=qt({},t.Defaults.modifiers[s]||{},a.modifiers?a.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return qt({name:s},n.options.modifiers[s])}).sort(function(s,u){return s.order-u.order}),this.modifiers.forEach(function(s){s.enabled&&d_(s.onLoad)&&s.onLoad(n.reference,n.popper,n.options,s,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return tF(t,[{key:"update",value:function(){return iF.call(this)}},{key:"destroy",value:function(){return sF.call(this)}},{key:"enableEventListeners",value:function(){return uF.call(this)}},{key:"disableEventListeners",value:function(){return cF.call(this)}}]),t}();Eu.Utils=(typeof window!="undefined"?window:global).PopperUtils,Eu.placements=T_,Eu.Defaults=TF;const MF=Object.freeze(Object.defineProperty({__proto__:null,default:Eu},Symbol.toStringTag,{value:"Module"}));function RF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R_(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 EF(t,e,r){return e&&R_(t.prototype,e),r&&R_(t,r),t}var AF=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(RF(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));I2(this,t.Defaults,this.constructor.Defaults,r,{type:e}),by(this,{type:bn(),cancelable:bn(),nativeEvent:bn(),target:bn(),relatedTarget:bn(),vueTarget:bn(),componentId:bn()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},F2(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return EF(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),$F='Setting prop "options" to an object is deprecated. Use the array format instead.',E_=_t({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 NF={props:E_,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(Kn(e)){var n=wu(e,this.valueField),a=wu(e,this.textField);return{value:Ra(n)?r||a:n,text:l_(String(Ra(a)?r:a)),html:wu(e,this.htmlField),disabled:!!wu(e,this.disabledField)}}return{value:r||e,text:l_(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return ar(e)?e.map(function(n){return r.normalizeOption(n)}):Kn(e)?(Cy($F,this.$options.name),ir(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}};var A_=function(e,r){for(var n=0;n<e.length;n++)if(xr(e[n],r))return n;return-1};function $_(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 IF(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$_(Object(r),!0).forEach(function(n){FF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function FF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var N_="input, textarea, select",Au=IF({id:{type:String},name:{type:String}},_t({disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1}},"formControls"));const pf={props:Au,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var e=this;this.$nextTick(function(){$a(function(){var r=e.$el;e.autofocus&&Fy(r)&&(jy(r,N_)||(r=Zd(N_,r)),Sn(r))})})}}};var mf=_t({plain:{type:Boolean,default:!1}},"formControls");const I_={props:mf,computed:{custom:function(){return!this.plain}}};function F_(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 $u(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?F_(Object(r),!0).forEach(function(n){qa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vf=_t($u($u({},mf),{},{value:{},checked:{},inline:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String},ariaLabel:{type:String},ariaLabelledby:{type:String}}),"formRadioCheckControls");const j_={mixins:[tf,I_,zi],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:vf,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={},qa(e,"btn-".concat(this.getSize),this.getSize),qa(e,"disabled",this.isDisabled),qa(e,"active",this.isChecked),qa(e,"focus",this.hasFocus),e)]},computedAttrs:function(){return $u($u({},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){xr(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||Sn(this.$refs.input)},blur:function(){this.isDisabled||By(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 s=e();return this.isPlain&&!r||(s=e("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},r)),e("div",{class:qa({"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,s])}}};var Nu=_t({size:{type:String}},"formControls");const gf={props:Nu,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}};var Iu=_t({state:{type:Boolean,default:null}},"formState");const yf={props:Iu,computed:{computedState:function(){return zd(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 L_(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 Xi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?L_(Object(r),!0).forEach(function(n){jF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function jF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var LF=y.extend({name:Py,mixins:[j_,Tu,pf,gf,yf],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:_t(Xi(Xi(Xi(Xi(Xi({},Au),vf),Nu),Iu),{},{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}}),Py),computed:{isChecked:function(){var e=this.value,r=this.computedLocalChecked;return ar(r)?A_(r,e)>-1:xr(r,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(e,r){if(!xr(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,s=this.value,u=this.uncheckedValue,c=this.computedLocalChecked;if(ar(c)){var l=A_(c,s);a&&l<0?c=c.concat(s):!a&&l>-1&&(c=c.slice(0,l).concat(c.slice(l+1)))}else c=a?s: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){ar(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit("update:indeterminate",e))}}});function B_(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 Ji(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?B_(Object(r),!0).forEach(function(n){BF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function BF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qF=y.extend({name:Dy,mixins:[Tu,j_,pf,gf,yf],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:_t(Ji(Ji(Ji(Ji(Ji({},Au),vf),Nu),Iu),{},{checked:{default:null}}),Dy),computed:{isChecked:function(){return xr(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(e,r){xr(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 q_(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 Ya(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?q_(Object(r),!0).forEach(function(n){Y_(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Y_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var H_=_t(Ya(Ya(Ya(Ya(Ya(Ya({},Au),E_),Nu),Iu),mf),{},{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 YF={mixins:[Tu,zi,pf,NF,gf,yf,I_],model:{prop:"checked",event:"input"},props:H_,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",Y_({"btn-group":e,"btn-group-vertical":!e},"btn-group-".concat(r),!!r)]),a}},watch:{checked:function(e){xr(e,this.localChecked)||(this.localChecked=e)},localChecked:function(e,r){xr(e,r)||this.$emit("input",e)}},render:function(e){var r=this,n=this.isRadioGroup,a=n?qF:LF,i=this.formOptions.map(function(s,u){var c="BV_option_".concat(u);return e(a,{props:{id:r.safeId(c),value:s.value,disabled:s.disabled||!1},key:c},[e("span",{domProps:Du(s.html,s.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(vI),i,this.normalizeSlot()])}};var HF=_t(H_,Ty),et=y.extend({name:Ty,mixins:[YF],provide:function(){return{bvRadioGroup:this}},props:HF,computed:{isRadioGroup:function(){return!0}}}),zF=y.extend({abstract:!0,name:Q2,props:{nodes:{type:[Array,Function]}},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){lI(this.$el)},render:function(e){var r=kr(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return r=en(r).filter(Boolean),r&&r.length>0&&!r[0].text?r[0]:e()}}),UF=y.extend({name:J2,mixins:[zi],props:{disabled:{type:Boolean,default:!1},container:{type:[String,my],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(Dt){var e=this.container;return Zn(e)?Zd(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 zF({el:r,parent:this,propsData:{nodes:en(this.normalizeSlot())}})}}},updateTarget:function(){if(Dt&&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=en(this.normalizeSlot()).filter(Aa);if(r.length>0&&!r[0].text)return r[0]}return e()}}),sr="$_bv_documentHandlers_";const VF={created:function(){var e=this;Dt&&(this[sr]={},this.$once("hook:beforeDestroy",function(){var r=e[sr]||{};delete e[sr],ir(r).forEach(function(n){var a=r[n]||[];a.forEach(function(i){return Ui(document,n,i,On)})})}))},methods:{listenDocument:function(e,r,n){e?this.listenOnDocument(r,n):this.listenOffDocument(r,n)},listenOnDocument:function(e,r){this[sr]&&Zn(e)&&kr(r)&&(this[sr][e]=this[sr][e]||[],Gd(this[sr][e],r)||(this[sr][e].push(r),ef(document,e,r,On)))},listenOffDocument:function(e,r){this[sr]&&Zn(e)&&kr(r)&&(Ui(document,e,r,On),this[sr][e]=(this[sr][e]||[]).filter(function(n){return n!==r}))}}};var or="$_bv_windowHandlers_";const WF={beforeCreate:function(){this[or]={}},beforeDestroy:function(){if(Dt){var e=this[or];delete this[or],ir(e).forEach(function(r){var n=e[r]||[];n.forEach(function(a){return Ui(window,r,a,On)})})}},methods:{listenWindow:function(e,r,n){e?this.listenOnWindow(r,n):this.listenOffWindow(r,n)},listenOnWindow:function(e,r){Dt&&this[or]&&Zn(e)&&kr(r)&&(this[or][e]=this[or][e]||[],Gd(this[or][e],r)||(this[or][e].push(r),ef(window,e,r,On)))},listenOffWindow:function(e,r){Dt&&this[or]&&Zn(e)&&kr(r)&&(Ui(window,e,r,On),this[or][e]=(this[or][e]||[]).filter(function(n){return n!==r}))}}};var GF=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function ZF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const KF={computed:{scopedStyleAttrs:function(){var e=GF(this.$parent);return e?ZF({},e,""):{}}}};var z_=1040,_f={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},XF=y.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){Dt&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),Li(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),Ly(document.body,"modal-open")),Bi(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),$a(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(_n(this.baseZIndex)&&Dt){var e=document.createElement("div");Li(e,"modal-backdrop"),Li(e,"d-none"),wn(e,"display","none"),document.body.appendChild(e),this.baseZIndex=aI(Yi(e).zIndex,z_),document.body.removeChild(e)}return this.baseZIndex||z_},getScrollbarWidth:function(){if(_n(this.scrollbarWidth)&&Dt){var e=document.createElement("div");Li(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=Qd(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,s){i.zIndex=n+s,i.scrollbarWidth=a,i.isTop=s===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=Qd(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;xu(_f.FIXED_CONTENT).forEach(function(a){var i=qi(a,"paddingRight")||"";Bi(a,"data-padding-right",i),wn(a,"paddingRight","".concat(Su(Yi(a).paddingRight,0)+r,"px")),e._paddingChangedForModal.push(a)}),xu(_f.STICKY_CONTENT).forEach(function(a){var i=qi(a,"marginRight")||"";Bi(a,"data-margin-right",i),wn(a,"marginRight","".concat(Su(Yi(a).marginRight,0)-r,"px")),e._marginChangedForModal.push(a)}),xu(_f.NAVBAR_TOGGLER).forEach(function(a){var i=qi(a,"marginRight")||"";Bi(a,"data-margin-right",i),wn(a,"marginRight","".concat(Su(Yi(a).marginRight,0)+r,"px")),e._marginChangedForModal.push(a)});var n=qi(e,"paddingRight")||"";Bi(e,"data-padding-right",n),wn(e,"paddingRight","".concat(Su(Yi(e).paddingRight,0)+r,"px"))}},resetScrollbar:function(){var e=document.body;e._paddingChangedForModal&&e._paddingChangedForModal.forEach(function(r){Jd(r,"data-padding-right")&&(wn(r,"paddingRight",Xd(r,"data-padding-right")||""),Kd(r,"data-padding-right"))}),e._marginChangedForModal&&e._marginChangedForModal.forEach(function(r){Jd(r,"data-margin-right")&&(wn(r,"marginRight",Xd(r,"data-margin-right")||""),Kd(r,"data-margin-right"))}),e._paddingChangedForModal=null,e._marginChangedForModal=null,Jd(e,"data-padding-right")&&(wn(e,"paddingRight",Xd(e,"data-padding-right")||""),Kd(e,"data-padding-right"))}}}),Qi=new XF;function Fu(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fu=function(r){return typeof r}:Fu=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fu(t)}function U_(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 V_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?U_(Object(r),!0).forEach(function(n){JF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function JF(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W_(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 ej(t,e,r){return e&&W_(t.prototype,e),r&&W_(t,r),t}function ju(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?ju=Reflect.get:ju=function(a,i,s){var u=tj(a,i);if(u){var c=Object.getOwnPropertyDescriptor(u,i);return c.get?c.get.call(s):c.value}},ju(t,e,r||t)}function tj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ha(t),t!==null););return t}function rj(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&&bf(t,e)}function bf(t,e){return bf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},bf(t,e)}function nj(t){var e=ij();return function(){var n=Ha(t),a;if(e){var i=Ha(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return aj(this,a)}}function aj(t,e){return e&&(Fu(e)==="object"||typeof e=="function")?e:G_(t)}function G_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ij(){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 Ha(t){return Ha=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ha(t)}var sj=function(t){rj(r,t);var e=nj(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return QF(this,r),a=e.call(this,n,i),by(G_(a),{trigger:bn()}),a}return ej(r,null,[{key:"Defaults",get:function(){return V_(V_({},ju(Ha(r),"Defaults",this)),{},{trigger:null})}}]),r}(AF);function Z_(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 es(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Z_(Object(r),!0).forEach(function(n){Yt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oj={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},uj=_t({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:[my,String,Object],default:null},headerCloseContent:{type:String,default:"×"},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 _u(e)||Gd(["ok","cancel","close"],e)}}},Ry),wf=y.extend({name:Ry,mixins:[tf,Tu,VF,VI,WF,zi,KF],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:uj,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:Qi.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={},Yt(e,"modal-".concat(this.size),this.size),Yt(e,"modal-dialog-centered",this.centered),Yt(e,"modal-dialog-scrollable",this.scrollable),e),this.dialogClass]},headerClasses:function(){var e;return[(e={},Yt(e,"bg-".concat(this.headerBgVariant),this.headerBgVariant),Yt(e,"text-".concat(this.headerTextVariant),this.headerTextVariant),Yt(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={},Yt(e,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),Yt(e,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),e),this.bodyClass]},footerClasses:function(){var e;return[(e={},Yt(e,"bg-".concat(this.footerBgVariant),this.footerBgVariant),Yt(e,"text-".concat(this.footerTextVariant),this.footerTextVariant),Yt(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 en(this.ignoreEnforceFocusSelector).filter(Aa).join(",").trim()},computedAttrs:function(){var e=this.static?{}:this.scopedStyleAttrs;return es(es(es({},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=Qi.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=UI(this.$refs.content,this.checkModalOverflow.bind(this),oj))},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 sj(e,es(es({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=Ny(Dt?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(Qi.modalsAreOpen&&this.noStacking){this.listenOnRootOnce("bv::modal::hidden",this.doShow);return}Qi.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,$a(function(){$a(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,$a(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,Qi.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){Ui(r,"mouseup",a,On),i.target===r&&(e.ignoreBackdropClick=!0)};ef(r,"mouseup",n,On)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!ji(document.body,e.target)||ji(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===PI&&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||ji(r,n)||this.computeIgnoreEnforceFocusSelector&&cI(this.computeIgnoreEnforceFocusSelector,n,!0))){var a=dI(this.$refs.content),i=this.$refs,s=i.bottomTrap,u=i.topTrap;if(s&&n===s){if(Sn(a[0]))return}else if(u&&n===u&&Sn(a[a.length-1]))return;Sn(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;Dt&&$a(function(){var r=e.$refs.modal,n=e.$refs.content,a=e.getActiveElement();if(r&&n&&!(a&&ji(n,a))){var i=e.$refs["ok-button"],s=e.$refs["cancel-button"],u=e.$refs["close-button"],c=e.autoFocusButton,l=c==="ok"&&i?i.$el||i:c==="cancel"&&s?s.$el||s:c==="close"&&u?u.$el||u:n;Sn(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=Zn(e)?Zd(e):e,e&&(e=e.$el||e,Sn(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(_I,{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")?{}:Du(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(Hi,this.slotScope)),s=e();if(!this.hideFooter){var u=this.normalizeSlot("modal-footer",this.slotScope);if(!u){var c=e();this.okOnly||(c=e(u_,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:Du(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=e(u_,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:Du(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));u=[c,l]}s=e("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[u])}var o=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[r,i,s]),d=e(),h=e();this.isVisible&&!this.noEnforceFocus&&(d=e("span",{ref:"topTrap",attrs:{tabindex:"0"}}),h=e("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,o,h]),p=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]);p=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}},[p]);var v=e();return!this.hideBackdrop&&this.isVisible&&(v=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),v=e(mI,{props:{noFade:this.noFade}},[v]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[p,v])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(UF,[this.makeModal(e)])}});const lj=y.defineComponent({name:"BikeForm",components:{SimpleCard:te,DefaultSelect:pe,DefaultInput:ce,ZipcodeInput:Ta,BirthdateInput:Ae,ErrorHandler:K,BFormRadioGroup:et},props:{link:{type:String,required:!0},isOnResultPage:{type:Boolean,default:!1},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{conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}=Nd(t,e);return{bikeState:Wn,bikeKinds:Id,bikeConditions:Fd,errors:z,conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}}});var K_=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.bikeState.zipcode,callback:function(n){e.$set(e.bikeState,"zipcode",n)},expression:"bikeState.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.checkCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.conditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:e.maxPriceLength,"has-prepend":e.hasPricePrepend,"prepend-text":e.prependText,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 ")])])])},cj=[];K_._withStripped=!0;var X_=E(lj,K_,cj,!1,null,null,null,null);X_.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeForm.vue";const dj=X_.exports,fj=y.defineComponent({name:"BikeFormHorizontal",components:{SimpleCard:te,DefaultSelect:pe,DefaultInput:ce,ZipcodeInput:Ta,BirthdateInput:Ae,ErrorHandler:K,BFormRadioGroup:et},props:{link:{type:String,required:!0},isOnResultPage:{type:Boolean,default:!1},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{conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}=Nd(t,e);return{bikeState:Wn,bikeKinds:Id,bikeConditions:Fd,errors:z,hasNewDesign:L,conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}}});var J_=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:"bikeFormRef",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.bikeState.zipcode,callback:function(n){e.$set(e.bikeState,"zipcode",n)},expression:"bikeState.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.checkCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.conditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:e.maxPriceLength,"has-prepend":e.hasPricePrepend,"prepend-text":e.prependText,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)])])},hj=[];J_._withStripped=!0;var Q_=E(fj,J_,hj,!1,null,null,null,null);Q_.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormHorizontal.vue";const pj=Q_.exports,mj=y.defineComponent({name:"BikeFormOld",components:{SimpleCard:te,DefaultSelect:pe,DefaultInput:ce,ZipcodeInput:Ta,BirthdateInput:Ae,ErrorHandler:K,BFormRadioGroup:et},props:{link:{type:String,required:!0},isOnResultPage:{type:Boolean,default:!1},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{conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}=Nd(t,e);return{bikeState:Wn,bikeKinds:Id,bikeConditions:Fd,errors:z,hasNewDesign:L,conditionError:r,maxPriceLength:n,hasPricePrepend:a,prependText:i,bikeFormRef:s,validateBeforeSubmit:u,checkCondition:c}}});var eb=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:"bikeFormRef",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.bikeState.zipcode,callback:function(n){e.$set(e.bikeState,"zipcode",n)},expression:"bikeState.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.checkCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),e.conditionError?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:e.maxPriceLength,"has-prepend":e.hasPricePrepend,"prepend-text":e.prependText,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 ")])])])])},vj=[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("*")])])}];eb._withStripped=!0;var tb=E(mj,eb,vj,!1,null,null,null,null);tb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormOld.vue";const gj=tb.exports,yj=(t,e)=>{const r=y.ref(""),n=y.ref(!1);y.ref([]),y.ref("");const a=y.ref(!1);let i=y.ref(!1);function s(){return F(this,null,function*(){const o=yield dt(["license"]);if(a.value=!Object.keys(Bt.companyData).length||!Bt.companyData.company_name,o&&!n.value&&!a.value)if(console.warn("submitted!"),console.warn(Bt.companyData),console.warn(Je),t.isOnResultPage||t.isOnCoveragePage)e("submit-form",{businessState:Bt});else{const d=yield u();d&&e("redirect-page",{link:`${t.link}#/${d.getId()}/dekkingen/`})}})}function u(){return F(this,null,function*(){console.warn("Comparison for business car is created !")})}function c(){n.value=!1}function l(){n.value=!0}return y.onMounted(()=>{var o;i.value=!0,(t.isOnResultPage||t.isOnCoveragePage)&&(Object.assign(Je,t.insuranceState),r.value=(o=Je.LicensePlate)!=null?o:""),!t.isOnResultPage||t.isOnCoveragePage}),{licensePlate:r,hasCompaniesListValidationError:a,isMultiselectReady:i,onLicenseInput:c,onLicenseError:l,validateBeforeSubmit:s}};function _j(t){return t=t.split("-").join(""),t}function bj(t,e){return t.split("").reduce((r,n,a)=>(n===e&&r.push(a),r),[])}function wj(t){const e=parseInt(t);return!!(e==0||e&&!isNaN(e))}const Sf=["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"];function Lu(t){let e="";if(e=_j(t),e.length>=6){const r=Oj(e).join("");let n=[];for(let a=0;a<Sf.length;a++){const i=Sf[a],s=i.split("-").join("");if(s===r){n=s.split(""),n=Sj(i,n,e);break}if(Sf.length===a+1)return"no-template-found"}if(n.length===8)return n.join("")}return e}function Sj(t,e,r){return e.map((n,a)=>e[a]=r[a]),bj(t,"-").forEach(n=>e.splice(n,0,"-")),e}function Oj(t){let e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&(wj(n)?e=[...e,"9"]:e=[...e,"X"])}return e}const Cj=y.defineComponent({name:"LicensePlate",components:{ErrorHandler:K},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=y.ref("");const n=y.ref({});let a=y.ref(!1),i=y.ref(!1),s=y.ref(!1);const u={motor:"fa-motorcycle",car:"fa-car",brommobiel:"fa-car-side"},c=y.computed(()=>[{rule:"required",text:"Dit veld is verplicht"},{rule:"minlength",text:"Kenteken is incorrect"},{rule:l.value,text:"Kenteken is incorrect"},{rule:s.value,text:"Kenteken onbekend"},{rule:i.value,text:`Het ingevoerde kenteken is geen ${t.insuranceDutchNaming.toLowerCase()}`},{rule:!a.value&&d(t.value)&&!n.value.VehicleType&&Object.keys(n.value).length!==0,text:"Voertuig onbekend - Voer ander kenteken in of neem contact op"}]),l=y.computed(()=>Lu(r.value)==="no-template-found"&&d(r.value)),o=y.computed(()=>!a.value&&n.value.Brand&&n.value.Model&&t.vehicleTypes.includes(n.value.VehicleType)&&t.value.length>=6&&!z.has(t.name)&&!l.value),d=g=>g.length===8,h=g=>{e("focus");let w=g.srcElement.name;const S=he.fields.find({name:w});(S!==null||S!==void 0&&S)&&(S.reset(),he.errors.remove(S.name,S.scope))},f=g=>{e("blur");let w=g.srcElement.name;const S=he.fields.find({name:w});(S!==null||S!==void 0&&S)&&he.validate(S.name)},p=(g,w,S)=>{w==="input"&&(s.value=!1),g||(i.value=!1),g.length<8&&(n.value={});let P=Lu(g);if(P==="no-template-found"){r.value=g,e(w,g),e("on-error");return}e(w,P.toUpperCase()),r.value=P.toUpperCase(),d(P)&&w==="input"&&(he.validate(t.name),S&&m(P.toUpperCase()))},v=g=>{let w=(g.clipboardData||window.clipboardData).getData("text");if(w=w.trim(),typeof w=="string"&&w){let S=Lu(w);if(S==="no-template-found"){r.value=w,e("input",w),e("on-error"),g.preventDefault();return}e("input",S.toUpperCase()),r.value=S.toUpperCase(),e("license-correct"),d(S)&&(he.validate(t.name),m(S.toUpperCase())),g.preventDefault()}},_=(g,w)=>F(this,null,function*(){const S=g.toLocaleLowerCase(),P=yield ye.dataService.findVehicle(w,S);return P||null}),m=g=>{a.value=!0,i.value=!1,s.value=!1,n.value={},_(t.vehicleType,g).then(w=>{if(Array.isArray(w)&&!w.length){a.value=!1,s.value=!0,he.validate("unknownLicensePlateHiddenField");return}if(t.vehicleTypes.length!==0&&!t.vehicleTypes.includes(w.VehicleType)){e("incorrect-vehicle-type"),i.value=!0,a.value=!1,he.validate("incorrectLicensePlateHiddenField"),he.validate("noLicensePlateHiddenField"),he.validate("unknownLicensePlateHiddenField");return}n.value=w,e("on-vehicle-information-update",w),a.value=!1})};return y.onMounted(()=>{y.nextTick(()=>{if(r.value=t.value,!r.value)return;let g=!0;d(Lu(r.value))&&Object.keys(t.propVehicleInformation).length!==0&&(n.value=t.propVehicleInformation,he.validate(t.name),g=!1),p(r.value,"input",g)})}),{errors:z,userState:O,motorState:Jr,hasNewDesign:L,license:r,vehicleInformation:n,isLicenseUnknown:s,isLicenseTemplateIncorrect:l,isRetrievingVehicleInformation:a,incorrectLicensePlate:i,vehicleIcons:u,errorsData:c,isVehicleInfoShowed:o,isLicenseFull:d,resetFieldValidation:h,validateField:f,onPasteEvent:v,retrieveLicensePlateInformation:m,setValue:p}}}),kj="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 rb=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"},[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}})]),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}}),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:"d-flex flex-wrap align-items-center fz-medium mt-1",class:e.hasNewDesign?"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.vehicleInformation.Model==="Brommobiel"?e.vehicleIcons.brommobiel:""]},[e.vehicleInformation.Model!=="Brommobiel"?r("img",{attrs:{src:kj,width:"20px",height:"20px",alt:"scooter"}}):e._e()]),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:"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(" Voertuig gegevens ophalen ")])]):e._e()]},{loading:e.isRetrievingVehicleInformation,vehicleInformation:e.vehicleInformation})],2)},xj=[];rb._withStripped=!0;var nb=E(Cj,rb,xj,!1,null,null,null,null);nb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/LicensePlate.vue";const Pr=nb.exports;function Of(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function Pj(t){return(...e)=>!t(...e)}function Dj(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function ab(t,e,r,n){return t.filter(a=>Dj(n(a,r),e))}function Tj(t){return t.filter(e=>!e.$isLabel)}function Cf(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 Mj(t,e,r,n,a){return i=>i.map(s=>{if(!s[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=ab(s[r],t,e,a);return u.length?{[n]:s[n],[r]:u}:[]})}const ib=(...t)=>e=>t.reduce((r,n)=>n(r),e),Rj={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 Of(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):ab(r,e,this.label,this.customLabel):r=this.groupValues?Cf(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(Pj(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 ib(Mj(e,r,this.groupValues,this.groupLabel,this.customLabel),Cf(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return ib(Cf(this.groupValues,this.groupLabel),Tj)(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(Of(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;let e=this.customLabel(t,this.label);return Of(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{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"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)},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.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 sb=function(){var e=this,r=e._self._c;return r("div",{staticClass:"multiselect",class:{"multiselect--active":e.isOpen,"multiselect--disabled":e.disabled,"multiselect--above":e.isAbove,"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:"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:"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:"multiselect__tags-wrap"},[e._l(e.visibleValues,function(n,a){return[e._t("tag",function(){return[r("span",{key:a,staticClass:"multiselect__tag"},[r("span",{domProps:{textContent:e._s(e.getOptionLabel(n))}}),r("i",{staticClass:"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:"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:"multiselect__loading"}},[e._t("loading",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"multiselect__spinner"})]})],2),e.searchable?r("input",{ref:"search",staticClass:"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:"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:"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:"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:"multiselect__content-wrapper",style:{maxHeight:103*5+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(n){n.preventDefault()}}},[r("ul",{staticClass:"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:"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:"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:"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:"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:"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:"multiselect__option"},[e._t("noOptions",function(){return[e._v("List is empty.")]})],2)]),e._t("afterList")],2)])])])],2)},Ej=[];sb._withStripped=!0;var ob=E(Rj,sb,Ej,!1,null,null,null,null);ob.options.__file="/Users/mac/Work/comparison-forms/src/components/common/extended/Multiselect.vue";const Aj=ob.exports,$j=y.defineComponent({name:"CompaniesListSelect",components:{ErrorHandler:K,Multiselect:Aj},props:{hasCompaniesListValidationError:{required:!1}},setup(t,{attrs:e,listeners:r,emit:n}){let a=y.reactive({kvk_number:"",company_name:"",legal_entity:"",rsin:"",branch_number:"",postcode:"",city:"",street:"",house_number:"",house_number_addition:"",full_address:"",sbi_activities:""}),i=y.ref(null),s=y.ref([]),u=y.ref(!1),c=y.ref(null),l=y.ref(!1),o=y.ref(!1),d=y.ref(!1);const h=()=>{Object.keys(a).map(S=>{a[S]=""})},f=()=>{h(),n("update-company-data",a),l.value=!1},p=()=>{l.value=!0},v=()=>{d.value=!1,o.value=!0},_=()=>{o.value=!1};y.watch(i,S=>F(this,null,function*(){S&&S.kvkNummer&&(yield ye.dataService.getProfileInfo(S.kvkNummer).then(P=>{p();let j=P._embedded.hoofdvestiging.adressen.find(X=>X.type==="bezoekadres"),ue=j.huisletter||"";ue+=j.huisnummerToevoeging||"",a.kvk_number=P.kvkNummer,a.company_name=P.naam,a.legal_entity=P._embedded.eigenaar.rechtsvorm,a.rsin=P._embedded.eigenaar.rsin||null,a.branch_number=P._embedded.hoofdvestiging.vestigingsnummer,a.postcode=j.postcode||null,a.city=j.plaats||null,a.street=j.straatnaam||null,a.house_number=j.huisnummer||null,a.house_number_addition=ue||null,a.full_address=j.volledigAdres||null,a.sbi_activities=P.sbiActiviteiten.map(X=>({code:X.sbiCode,description:X.sbiOmschrijving,is_main:X.indHoofdactiviteit==="Ja"})),n("update-company-data",P)}))}));const m=S=>{u.value=!0,S.aantal=30,ye.dataService.searchBusinessInfo({companyName:S.handelsnaam,kvkNumber:S.kvkNummer},1,S.aantal).then(P=>{u.value=!1;let j=P.resultaten.filter(ue=>ue.type==="hoofdvestiging");j.length>0?s.value=j.map(ue=>(ue.name=`${ue.handelsnaam}`,ue)):s.value=[]}).catch(P=>{s.value=[],u.value=!1})},g=S=>{S.length>2&&(clearTimeout(c.value),c.value=setTimeout(()=>{S.length==8&&/^\d+$/.test(S)?m({kvkNummer:S}):w(S)?m(w(S)):m({handelsnaam:S})},700))},w=S=>{if(S.length>7){let P=S.split(" ");if(P.length>1&&/^([0-9]{4}[A-Z]{2}|[0-9]{4}[a-z]{2})$/.test(P[0])){let j={postcode:P[0],huisnummer:P[1]};return P[2]&&(j.huisnummerToevoeging=P[2]),j}}return null};return{attrs:e,listeners:r,companyName:i,companies:s,businessInfoModel:a,isOptionSelected:l,isDropdownFocused:o,isErrorShowed:d,isLoading:u,findCompanies:g,selectOption:p,removeOption:f,setDropdownOpened:v,setDropdownClosed:_}}});var ub=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("multiselect",{class:{"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",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:"multiselect__option-external-wrapper"},[r("div",{staticClass:"multiselect__option-wrapper"},[r("p",[r("b",[e._v(e._s(n.handelsnaam))]),r("br")]),r("p",[e._v(e._s("Kvk: "+n.kvkNummer)),r("br")]),r("p",[e._v(e._s(n.plaats+", "+n.straatnaam)),r("br")])])])]}}]),model:{value:e.companyName,callback:function(n){e.companyName=n},expression:"companyName"}},[r("template",{slot:"noResult"},[r("p",{staticClass:"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:"multiselect__option-non-result mb-0"},[e._v("Bedrijfsnaam of KVK-nummer")])])],2),e.isOptionSelected&&!e.isDropdownFocused?r("div",{staticClass:"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)},Nj=[];ub._withStripped=!0;var lb=E($j,ub,Nj,!1,null,null,null,null);lb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/CompaniesListSelect.vue";const cb=lb.exports,Ij=y.defineComponent({name:"Loader",props:{isActive:{type:Boolean,required:!1,default:!0},small:{type:Boolean,required:!1,default:!1}}});var db=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()},Fj=[];db._withStripped=!0;var fb=E(Ij,db,Fj,!1,null,"3514e0e8",null,null);fb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/Loader.vue";const kf=fb.exports,jj=y.defineComponent({name:"BusinessCarForm",components:{SimpleCard:te,LicensePlate:Pr,CompaniesListSelect:cb,Loader:kf},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},isOnResultPage:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}}},setup(t,{emit:e}){const{licensePlate:r,hasCompaniesListValidationError:n,isMultiselectReady:a,onLicenseInput:i,onLicenseError:s,validateBeforeSubmit:u}=yj(t,e);return{businessState:Bt,carState:Je,errors:z,licensePlate:r,hasCompaniesListValidationError:n,isMultiselectReady:a,onLicenseInput:i,onLicenseError:s,updateCompanyData:l=>{Bt.companyData=Vt({},l)},validateBeforeSubmit:u}}});var hb=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"],"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.licensePlate,callback:function(n){e.licensePlate=n},expression:"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},Lj=[];hb._withStripped=!0;var pb=E(jj,hb,Lj,!1,null,null,null,null);pb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/business/businessCar/components/BusinessCarForm.vue";const Bj=pb.exports,mb=()=>{const t=new J.User({}),e=(a,i)=>F(this,null,function*(){try{return t.setDetail(null,{}),r(i),n(t),yield ye.comparisonService1.create(a,t)}catch(s){throw s}}),r=a=>{a.map(i=>{t.setDetail(i.name,i.data)})},n=a=>{a.setZipCode(O.zipcode),a.setHouseNumber(Number(O.houseNumber)),a.setHouseNumberAddition(O.houseNumberAddition),a.setBirthDate(O.birthdate),a.setFamilyComposition(O.familyComposition)};return{generateComparisonId:e}};function qj(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 Bu(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 vb=t=>{const{generateComparisonId:e}=mb(),r=(l,o)=>{t("redirect-page",{link:l,data:o})},n=l=>{t("submit-form",l)},a=(l,o,d)=>F(this,null,function*(){try{const h=yield e(l,o);h&&r(i(d,h.getId()))}catch(h){throw h}}),i=(l,o)=>l.replace("<<COMPARISONID>>",o);return{submitFormAndRedirect:r,submitFormAndUpdateFormData:n,submitFormAndCreateComparison:a,setInitialUserInfoInStore:l=>{Object.keys(O).map(d=>{if(d==="zipcode"){O[d]=l.userInformation.zipCode||ht()[d]||O[d];return}if(d==="houseNumber"){O[d]=String(l.userInformation[d])||ht()[d]||O[d];return}O[d]=l.userInformation[d]||ht()[d]||O[d]})},removeSessionState:(l,o)=>{nr.removeSessionState(l,o)},openQuotationModal:()=>{const{refId:l,notes:o,description:d,headerTitle:h}=Da;t("emit-event-hub",{event:"open-quotation-modal",data:{refId:l,notes:o,description:d,headerTitle:h}})}}},Yj=()=>[{name:"car",data:Object.assign(Je,{LicensePlate:Je.LicensePlate,Brand:Je.Brand,Model:Je.Model,Type:Je.Type,VehicleType:Je.VehicleType,ManufacturingYear:Je.ManufacturingYear})},{name:"comparison",data:{ClaimFreeYears:"0",Coverage:null,Deductables:300,Kilometrage:"12000"}}],gb=y.ref(!1),xf=y.ref(!1),Pf=(t,e)=>{mb();const{submitFormAndRedirect:r,submitFormAndUpdateFormData:n,submitFormAndCreateComparison:a,setInitialUserInfoInStore:i,removeSessionState:s,openQuotationModal:u}=vb(e),c=()=>F(this,null,function*(){return(yield dt(["license","zipcode","housenumber","housenumberaddition","birthdate","isLicenseTemplateIncorrectHiddenField"]))&&!gb.value&&Je.VehicleType==="Car"&&!xf.value}),l=()=>{Object.assign(Je,t.insuranceState)},o=()=>`${t.link}#/<<COMPARISONID>>/dekkingen/`;function d(){return F(this,null,function*(){if(yield c())if(t.formLocation===Qe.isOnResultPage)n({userInformation:O,carState:Je});else try{const p=Yj();yield a("car",p,o())}catch(p){console.error(p),Da.refId="192",Da.notes.push({text:"Kan geen comparison ID aanmaken voor rechtsbijstandverzekering vergelijking"}),Da.notes.push({text:`Kenteken: ${Je.LicensePlate} | Postcode: ${O.zipcode} | Huisnummer: ${O.houseNumber} | Huisnummer toevoeging: ${O.houseNumberAddition} | Geboortedatum: ${O.birthdate}`}),Da.notes=Bu(Da.notes),u()}})}function h(){xf.value=!1}function f(){xf.value=!0}return y.onMounted(()=>{t.formLocation===Qe.isOnResultPage&&(i(t),l()),t.formLocation===Qe.isBeforeFlow&&s("car-storage","car-path")}),{houseError:gb,onLicenseInput:h,onLicenseError:f,validateBeforeSubmit:d}};var yb={exports:{}};const Hj=Za(MF);(function(t,e){(function(r,n){t.exports=n(Hj)})(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 s=i;return i.__file="popper.js.vue",function(u,c,l,o,d,h,f,p,v,_){typeof f=="function"&&(v=p,p=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)),o&&(m._scopeId=o),h?(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(h)},m._ssrRegister=g):c&&(g=f?function(){c.call(this,_(this.$root.$options.shadowRoot))}:function(w){c.call(this,p(w))}),g)if(m.functional){const w=m.render;m.render=function(S,P){return g.call(P),w(S,P)}}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,s,void 0,!1,void 0,void 0,void 0)})})(yb);var zj=yb.exports;const za=pt(zj),Uj=y.defineComponent({components:{DefaultInput:ce,DefaultSelect:pe,ErrorHandler:K,Popper:za},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=y.ref(!1),n=y.ref(!1),a=y.ref(!1),i=y.ref(!0),s=y.ref(!1),u=y.ref(""),c=y.ref(""),l=y.ref(""),o=y.ref([]),d=y.ref({street:"",city:""}),h=y.ref(!1),f=[{rule:"required",text:"Vul je postcode in"},{rule:"regex",text:"Postcode is incorrect"}],p=[{rule:"required",text:"Huisnummer is verplicht"}],v=y.computed(()=>[{rule:z.has(t.houseNumberAdditionName),text:"Een toevoeging is verplicht"}]),_=y.computed(()=>[{rule:a.value,text:"Postcode en huisnummer combinatie onbekend."}]),m=y.computed(()=>r.value?"-":"Kies toevoeging"),g=y.computed(()=>`${s.value?"":"required"}|is_not:CHOOSE_OPTION`),w=(V,B,Ze)=>F(this,null,function*(){try{if(!V||!B){ue(""),l.value="CHOOSE_OPTION",a.value=!1,d.value.street="",d.value.city="",o.value=[{title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}];return}o.value=[],Ze&&(l.value="CHOOSE_OPTION"),o.value.push({title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}),s.value=yield S(V,B),s.value&&(o.value=[...o.value,{title:"Geen toevoeging",value:""}]),ye.homeService.getAddition({zipcode:V,houseNumber:B}).then(Ke=>{const Ut=Ke;if(i.value=!0,U(t.houseNumberAdditionName),Ut.length){r.value=!1;for(let Rr=0;Rr<Ut.length;Rr++)o.value=[...o.value,{title:Ut[Rr],value:Be(Ut[Rr])}];a.value=!1,Ze||y.nextTick(()=>{l.value=t.houseNumberAddition,X(V,B,t.houseNumberAddition)})}else o.value[1]&&(o.value[1].title="Geen toevoeging"),r.value=!0,l.value="",ue(""),X(V,B)}).catch(Ke=>{a.value=!0,d.value.street="",d.value.city="",e("address-correct",!a.value),U("housenumberaddition"),console.error("Error fetching additions:",Ke)})}catch(Ke){console.error("Error in getHouseNumberAdditions:",Ke)}}),S=(V,B)=>F(this,null,function*(){return yield ye.dataValidationService.validateZipCode(V,B).then(()=>!0).catch(()=>!1)}),P=V=>{h.value=!0,u.value=V.toUpperCase(),e("update-zipcode",V.toUpperCase()),y.nextTick(()=>{w(V.toUpperCase(),t.houseNumber,!0)})},j=V=>{h.value=!0,e("update-house-number",V),y.nextTick(()=>{w(t.zipcode,V,!0)})},ue=V=>{e("update-house-number-addition",V),X(t.zipcode,t.houseNumber,V)},X=(V,B,Ze="")=>F(this,null,function*(){try{if(!V||!B)return;n.value=!0,a.value=!1,d.value.street="",d.value.city="",e("address-correct",!a.value);const{Street:Ke,Place:Ut}=yield ye.dataValidationService.validateZipCode(V,B,Ze);h.value=!1,d.value.street=Ke,d.value.city=Ut,e("update-house-information",d.value),n.value=!1}catch(Ke){a.value=!0,n.value=!1,e("address-correct",!a.value),U("housenumberaddition"),console.error("Error getting house information:",Ke)}}),U=V=>{var Ze;const B=he.fields.find({name:V});(B!==null||B!==void 0&&B)&&(B==null||B.reset(),(Ze=he==null?void 0:he.errors)==null||Ze.remove(B==null?void 0:B.name,B==null?void 0:B.scope))},Be=V=>V.includes("-")?V.replace("-",""):V;return y.onMounted(()=>{y.nextTick(()=>{u.value=t.zipcode,c.value=t.houseNumber,w(t.zipcode,t.houseNumber,!1)})}),{errors:z,hasNewDesign:L,additionLabel:m,additionValidationRules:g,disableAdditionField:r,isLoading:n,addressError:a,firstTimeCalled:i,canBeWithoutAddition:s,zipcodeModel:u,houseNumberModel:c,houseAdditionNumberModel:l,additions:o,houseInformation:d,isAddressEditing:h,props:t,zipcodeErrorsData:f,houseNumberErrorsData:p,houseNumberAdditionErrorsData:v,addressErrorsData:_,getHouseNumberAdditions:w,getHouseInformationWithoutAddition:S,updateZipcode:P,updateHouseNumber:j,updateHouseNumberAddition:ue,getHouseInformation:X,resetFieldValidation:U}}});var _b=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)}}})])},Vj=[];_b._withStripped=!0;var bb=E(Uj,_b,Vj,!1,null,null,null,null);bb.options.__file="/Users/mac/Work/comparison-forms/src/components/common/AddressHandler.vue";const tt=bb.exports,Wj=y.defineComponent({name:"CarForm",components:{LicensePlate:Pr,AddressHandler:tt,DefaultInput:ce,SimpleCard:te,BirthdateInput:Ae},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:Qe.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Pf(t,e);return{userState:O,carState:Je,hasNewDesign:L,errors:z,houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var wb=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"],"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},Gj=[];wb._withStripped=!0;var Sb=E(Wj,wb,Gj,!1,null,null,null,null);Sb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarForm.vue";const Zj=Sb.exports,Kj=y.defineComponent({name:"CarFormHorizontal",components:{LicensePlate:Pr,AddressHandler:tt,DefaultInput:ce,SimpleCard:te,BirthdateInput:Ae},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:Qe.isBeforeFlow}},setup(t,{emit:e}){const{licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:s}=Pf(t,e);return{userState:O,carState:Je,hasNewDesign:L,errors:z,licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:s}}});var Ob=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"],"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.licensePlate,callback:function(n){e.licensePlate=n},expression:"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},Xj=[];Ob._withStripped=!0;var Cb=E(Kj,Ob,Xj,!1,null,null,null,null);Cb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormHorizontal.vue";const Jj=Cb.exports,Qj=y.defineComponent({name:"CarFormOld",components:{LicensePlate:Pr,AddressHandler:tt,DefaultInput:ce,SimpleCard:te,BirthdateInput:Ae},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:Qe.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=Pf(t,e);return{userState:O,carState:Je,hasNewDesign:L,errors:z,houseError:r,FormLocations:Qe,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var kb=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"],"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",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])],1)},eL=[];kb._withStripped=!0;var xb=E(Qj,kb,eL,!1,null,null,null,null);xb.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormOld.vue";const tL=xb.exports,rL="192";function nL(t){const e={CreationForm:"CreationForm",Aanvragen:"Aanvragen",Common:"Common"};let r=y.ref([]);const n={[e.CreationForm]:{title:"Oeps... er gaat iets mis!",refId:rL,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 o=u(l);r.value.push(o)},s=()=>{r.value=[]},u=l=>({text:l}),c=l=>{const{title:o,refId:d,notes:h,description:f}=n[l];return{title:o,refId:d,notes:[...h||[],...r.value],description:f}};return{QuotationType:e,openQuotationModal:a,addNote:i,resetNotes:s,convertToNote:u,renderQuotationData:c}}class aL{static render(e){const{AlimonyType:r,AnotherMonthlyExpenses:n,BenefitType:a,CarMonthlyContributionExpenses:i,CarMonthlyTaxAdditionExpenses:s,CarOwnershipType:u,DesiredDuration:c,DesiredRepayment:l,HouseSituation:o,IncomeSituation:d,IncomeType:h,IndependentYears:f,LoanAmount:p,LoanPurpose:v,MonthlyAlimonyAllowance:_,MonthlyCarRentalExpenses:m,MonthlyChildcareAllowance:g,MonthlyChildcareExpenses:w,MonthlyCurrentLoansExpenses:S,MonthlyHouseExpenses:P,MonthlyNetIncome:j,MonthlyStudentLoansExpenses:ue,OwnedBuilding:X,PartnerIncomeType:U,PartnerMonthlyNetIncome:Be,Sorting:V,TemporaryWorkPhase:B,WorkedLastThreeYears:Ze}=e.loanData,qe=e,{loanData:Ke,filters:Ut,aanvragen:Rr}=qe,xn=X0(qe,["loanData","filters","aanvragen"]);return Vt({loanData:{AlimonyType:r,AnotherMonthlyExpenses:n,BenefitType:a,CarMonthlyContributionExpenses:i,CarMonthlyTaxAdditionExpenses:s,CarOwnershipType:u,DesiredDuration:c,DesiredRepayment:l,HouseSituation:o,IncomeSituation:d,IncomeType:h,IndependentYears:f,LoanAmount:p,LoanPurpose:v,MonthlyAlimonyAllowance:_,MonthlyCarRentalExpenses:m,MonthlyChildcareAllowance:g,MonthlyChildcareExpenses:w,MonthlyCurrentLoansExpenses:S,MonthlyHouseExpenses:P,MonthlyNetIncome:j,MonthlyStudentLoansExpenses:ue,OwnedBuilding:X,PartnerIncomeType:U,PartnerMonthlyNetIncome:Be,Sorting:V,TemporaryWorkPhase:B,WorkedLastThreeYears:Ze}},xn)}}let Df=y.ref(!1);const Pb=(t,e)=>{const{QuotationType:r,openQuotationModal:n,addNote:a,resetNotes:i}=nL(e),s=y.computed(()=>aL.render(t.comparison.getUser().getDetail())),u=y.computed(()=>t.formOrientation===Ri.Horizontal),c=_=>`${t.baseUrl}#/${_}`,l=_=>F(this,null,function*(){i();try{const m=yield ye.comparisonService.create("loan",_);return yield ye.comparisonService.update(m),m}catch(m){console.error(m),a(`
|
|
54
54
|
Leendoel: ${Or.loanPurpose} |
|
|
55
55
|
Leenbedrag: ${Or.loanAmount} |
|
|
56
56
|
Geboortedatum: ${O.birthdate} |
|