@vergelijkdirect/comparison-forms 1.2.26 → 1.2.28
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.
|
@@ -21444,17 +21444,33 @@ function LA(t) {
|
|
|
21444
21444
|
}
|
|
21445
21445
|
const Qs = [
|
|
21446
21446
|
"XX-99-XX",
|
|
21447
|
+
// 1978
|
|
21447
21448
|
"99-99-XX",
|
|
21449
|
+
// 1965
|
|
21448
21450
|
"99-XX-XX",
|
|
21451
|
+
// 1999
|
|
21449
21452
|
"XX-XX-99",
|
|
21453
|
+
// 1991
|
|
21450
21454
|
"99-XX-99",
|
|
21455
|
+
// 1973
|
|
21451
21456
|
"XX-99-99",
|
|
21457
|
+
// 1951
|
|
21452
21458
|
"99-XXX-9",
|
|
21459
|
+
// 2005
|
|
21453
21460
|
"XX-999-X",
|
|
21461
|
+
// 2006
|
|
21454
21462
|
"X-999-XX",
|
|
21463
|
+
// 2008
|
|
21455
21464
|
"9-XXX-99",
|
|
21465
|
+
// 2009
|
|
21456
21466
|
"XXX-99-X",
|
|
21457
|
-
|
|
21467
|
+
// 2015
|
|
21468
|
+
"X-99-XXX",
|
|
21469
|
+
// 2021
|
|
21470
|
+
"9-XX-999",
|
|
21471
|
+
// 2016
|
|
21472
|
+
"999-XX-9"
|
|
21473
|
+
// 2019
|
|
21458
21474
|
];
|
|
21459
21475
|
function Ji(t) {
|
|
21460
21476
|
let e = "";
|
|
@@ -41,7 +41,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
41
41
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
42
42
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
43
43
|
* SOFTWARE.
|
|
44
|
-
*/var Ia=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",zT=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Ia&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function VT(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function UT(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},zT))}}var YT=Ia&&window.Promise,WT=YT?VT:UT;function av(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function tn(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function Vl(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Fa(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=tn(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(r+a+n)?t:Fa(Vl(t))}function iv(t){return t&&t.referenceNode?t.referenceNode:t}var ov=Ia&&!!(window.MSInputMethodContext&&document.documentMode),sv=Ia&&/MSIE 10/.test(navigator.userAgent);function En(t){return t===11?ov:t===10?sv:ov||sv}function An(t){if(!t)return document.documentElement;for(var e=En(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&tn(r,"position")==="static"?An(r):r}function GT(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||An(t.firstElementChild)===t}function Ul(t){return t.parentNode!==null?Ul(t.parentNode):t}function Ko(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,a=r?e:t,i=document.createRange();i.setStart(n,0),i.setEnd(a,0);var o=i.commonAncestorContainer;if(t!==o&&e!==o||n.contains(a))return GT(o)?o:An(o);var u=Ul(t);return u.host?Ko(u.host,e):Ko(t,Ul(e).host)}function Mn(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 ZT(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Mn(e,"top"),a=Mn(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 uv(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 lv(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],En(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function cv(t){var e=t.body,r=t.documentElement,n=En(10)&&getComputedStyle(r);return{height:lv("Height",e,r,n),width:lv("Width",e,r,n)}}var KT=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},XT=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}}(),Nn=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function Mr(t){return yt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Yl(t){var e={};try{if(En(10)){e=t.getBoundingClientRect();var r=Mn(t,"top"),n=Mn(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"?cv(t.ownerDocument):{},o=i.width||t.clientWidth||a.width,u=i.height||t.clientHeight||a.height,c=t.offsetWidth-o,l=t.offsetHeight-u;if(c||l){var s=tn(t);c-=uv(s,"x"),l-=uv(s,"y"),a.width-=c,a.height-=l}return Mr(a)}function Wl(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=En(10),a=e.nodeName==="HTML",i=Yl(t),o=Yl(e),u=Fa(t),c=tn(e),l=parseFloat(c.borderTopWidth),s=parseFloat(c.borderLeftWidth);r&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Mr({top:i.top-o.top-l,left:i.left-o.left-s,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&a){var p=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);d.top-=l-p,d.bottom-=l-p,d.left-=s-f,d.right-=s-f,d.marginTop=p,d.marginLeft=f}return(n&&!r?e.contains(u):e===u&&u.nodeName!=="BODY")&&(d=ZT(d,e)),d}function JT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=Wl(t,r),a=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),o=e?0:Mn(r),u=e?0:Mn(r,"left"),c={top:o-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:a,height:i};return Mr(c)}function dv(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(tn(t,"position")==="fixed")return!0;var r=Vl(t);return r?dv(r):!1}function fv(t){if(!t||!t.parentElement||En())return document.documentElement;for(var e=t.parentElement;e&&tn(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function Gl(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},o=a?fv(t):Ko(t,iv(e));if(n==="viewport")i=JT(o,a);else{var u=void 0;n==="scrollParent"?(u=Fa(Vl(e)),u.nodeName==="BODY"&&(u=t.ownerDocument.documentElement)):n==="window"?u=t.ownerDocument.documentElement:u=n;var c=Wl(u,o,a);if(u.nodeName==="HTML"&&!dv(o)){var l=cv(t.ownerDocument),s=l.height,d=l.width;i.top+=c.top-c.marginTop,i.bottom=s+c.top,i.left+=c.left-c.marginLeft,i.right=d+c.left}else i=c}r=r||0;var p=typeof r=="number";return i.left+=p?r:r.left||0,i.top+=p?r:r.top||0,i.right-=p?r:r.right||0,i.bottom-=p?r:r.bottom||0,i}function QT(t){var e=t.width,r=t.height;return e*r}function pv(t,e,r,n,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var o=Gl(r,n,i,a),u={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},c=Object.keys(u).map(function(p){return yt({key:p},u[p],{area:QT(u[p])})}).sort(function(p,f){return f.area-p.area}),l=c.filter(function(p){var f=p.width,h=p.height;return f>=r.clientWidth&&h>=r.clientHeight}),s=l.length>0?l[0].key:c[0].key,d=t.split("-")[1];return s+(d?"-"+d:"")}function hv(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=n?fv(e):Ko(e,iv(r));return Wl(r,a,n)}function mv(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 Xo(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 vv(t,e,r){r=r.split("-")[0];var n=mv(t),a={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,o=i?"top":"left",u=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return a[o]=e[o]+e[c]/2-n[c]/2,r===u?a[u]=e[u]-n[l]:a[u]=e[Xo(u)],a}function ja(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function eE(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(a){return a[e]===r});var n=ja(t,function(a){return a[e]===r});return t.indexOf(n)}function gv(t,e,r){var n=r===void 0?t:t.slice(0,eE(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&&av(i)&&(e.offsets.popper=Mr(e.offsets.popper),e.offsets.reference=Mr(e.offsets.reference),e=i(e,a))}),e}function tE(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=hv(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=pv(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=vv(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=gv(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function yv(t,e){return t.some(function(r){var n=r.name,a=r.enabled;return a&&n===e})}function Zl(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 rE(){return this.state.isDestroyed=!0,yv(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[Zl("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function _v(t){var e=t.ownerDocument;return e?e.defaultView:window}function bv(t,e,r,n){var a=t.nodeName==="BODY",i=a?t.ownerDocument.defaultView:t;i.addEventListener(e,r,{passive:!0}),a||bv(Fa(i.parentNode),e,r,n),n.push(i)}function nE(t,e,r,n){r.updateBound=n,_v(t).addEventListener("resize",r.updateBound,{passive:!0});var a=Fa(t);return bv(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function aE(){this.state.eventsEnabled||(this.state=nE(this.reference,this.options,this.state,this.scheduleUpdate))}function iE(t,e){return _v(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 oE(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=iE(this.reference,this.state))}function Kl(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function Xl(t,e){Object.keys(e).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&Kl(e[r])&&(n="px"),t.style[r]=e[r]+n})}function sE(t,e){Object.keys(e).forEach(function(r){var n=e[r];n!==!1?t.setAttribute(r,e[r]):t.removeAttribute(r)})}function uE(t){return Xl(t.instance.popper,t.styles),sE(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&Xl(t.arrowElement,t.arrowStyles),t}function lE(t,e,r,n,a){var i=hv(a,e,t,r.positionFixed),o=pv(r.placement,i,e,t,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return e.setAttribute("x-placement",o),Xl(e,{position:r.positionFixed?"fixed":"absolute"}),r}function cE(t,e){var r=t.offsets,n=r.popper,a=r.reference,i=Math.round,o=Math.floor,u=function(m){return m},c=i(a.width),l=i(n.width),s=["left","right"].indexOf(t.placement)!==-1,d=t.placement.indexOf("-")!==-1,p=c%2===l%2,f=c%2===1&&l%2===1,h=e?s||d||p?i:o:u,v=e?i:u;return{left:h(f&&!d&&e?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:h(n.right)}}var dE=Ia&&/Firefox/i.test(navigator.userAgent);function fE(t,e){var r=e.x,n=e.y,a=t.offsets.popper,i=ja(t.instance.modifiers,function(w){return w.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=i!==void 0?i:e.gpuAcceleration,u=An(t.instance.popper),c=Yl(u),l={position:a.position},s=cE(t,window.devicePixelRatio<2||!dE),d=r==="bottom"?"top":"bottom",p=n==="right"?"left":"right",f=Zl("transform"),h=void 0,v=void 0;if(d==="bottom"?u.nodeName==="HTML"?v=-u.clientHeight+s.bottom:v=-c.height+s.bottom:v=s.top,p==="right"?u.nodeName==="HTML"?h=-u.clientWidth+s.right:h=-c.width+s.right:h=s.left,o&&f)l[f]="translate3d("+h+"px, "+v+"px, 0)",l[d]=0,l[p]=0,l.willChange="transform";else{var b=d==="bottom"?-1:1,m=p==="right"?-1:1;l[d]=v*b,l[p]=h*m,l.willChange=d+", "+p}var g={"x-placement":t.placement};return t.attributes=yt({},g,t.attributes),t.styles=yt({},l,t.styles),t.arrowStyles=yt({},t.offsets.arrow,t.arrowStyles),t}function wv(t,e,r){var n=ja(t,function(u){var c=u.name;return c===e}),a=!!n&&t.some(function(u){return u.name===r&&u.enabled&&u.order<n.order});if(!a){var i="`"+e+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function pE(t,e){var r;if(!wv(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if(typeof n=="string"){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var a=t.placement.split("-")[0],i=t.offsets,o=i.popper,u=i.reference,c=["left","right"].indexOf(a)!==-1,l=c?"height":"width",s=c?"Top":"Left",d=s.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",h=mv(n)[l];u[f]-h<o[d]&&(t.offsets.popper[d]-=o[d]-(u[f]-h)),u[d]+h>o[f]&&(t.offsets.popper[d]+=u[d]+h-o[f]),t.offsets.popper=Mr(t.offsets.popper);var v=u[d]+u[l]/2-h/2,b=tn(t.instance.popper),m=parseFloat(b["margin"+s]),g=parseFloat(b["border"+s+"Width"]),w=v-t.offsets.popper[d]-m-g;return w=Math.max(Math.min(o[l]-h,w),0),t.arrowElement=n,t.offsets.arrow=(r={},Nn(r,d,Math.round(w)),Nn(r,p,""),r),t}function hE(t){return t==="end"?"start":t==="start"?"end":t}var Sv=["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"],Jl=Sv.slice(3);function Cv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Jl.indexOf(t),n=Jl.slice(r+1).concat(Jl.slice(0,r));return e?n.reverse():n}var Ql={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function mE(t,e){if(yv(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=Gl(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],a=Xo(n),i=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case Ql.FLIP:o=[n,a];break;case Ql.CLOCKWISE:o=Cv(n);break;case Ql.COUNTERCLOCKWISE:o=Cv(n,!0);break;default:o=e.behavior}return o.forEach(function(u,c){if(n!==u||o.length===c+1)return t;n=t.placement.split("-")[0],a=Xo(n);var l=t.offsets.popper,s=t.offsets.reference,d=Math.floor,p=n==="left"&&d(l.right)>d(s.left)||n==="right"&&d(l.left)<d(s.right)||n==="top"&&d(l.bottom)>d(s.top)||n==="bottom"&&d(l.top)<d(s.bottom),f=d(l.left)<d(r.left),h=d(l.right)>d(r.right),v=d(l.top)<d(r.top),b=d(l.bottom)>d(r.bottom),m=n==="left"&&f||n==="right"&&h||n==="top"&&v||n==="bottom"&&b,g=["top","bottom"].indexOf(n)!==-1,w=!!e.flipVariations&&(g&&i==="start"&&f||g&&i==="end"&&h||!g&&i==="start"&&v||!g&&i==="end"&&b),S=!!e.flipVariationsByContent&&(g&&i==="start"&&h||g&&i==="end"&&f||!g&&i==="start"&&b||!g&&i==="end"&&v),O=w||S;(p||m||O)&&(t.flipped=!0,(p||m)&&(n=o[c+1]),O&&(i=hE(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=yt({},t.offsets.popper,vv(t.instance.popper,t.offsets.reference,t.placement)),t=gv(t.instance.modifiers,t,"flip"))}),t}function vE(t){var e=t.offsets,r=e.popper,n=e.reference,a=t.placement.split("-")[0],i=Math.floor,o=["top","bottom"].indexOf(a)!==-1,u=o?"right":"bottom",c=o?"left":"top",l=o?"width":"height";return r[u]<i(n[c])&&(t.offsets.popper[c]=i(n[c])-r[l]),r[c]>i(n[u])&&(t.offsets.popper[c]=i(n[u])),t}function gE(t,e,r,n){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return t;if(o.indexOf("%")===0){var u=void 0;switch(o){case"%p":u=r;break;case"%":case"%r":default:u=n}var c=Mr(u);return c[e]/100*i}else if(o==="vh"||o==="vw"){var l=void 0;return o==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*i}else return i}function yE(t,e,r,n){var a=[0,0],i=["right","left"].indexOf(n)!==-1,o=t.split(/(\+|\-)/).map(function(s){return s.trim()}),u=o.indexOf(ja(o,function(s){return s.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=u!==-1?[o.slice(0,u).concat([o[u].split(c)[0]]),[o[u].split(c)[1]].concat(o.slice(u+1))]:[o];return l=l.map(function(s,d){var p=(d===1?!i:i)?"height":"width",f=!1;return s.reduce(function(h,v){return h[h.length-1]===""&&["+","-"].indexOf(v)!==-1?(h[h.length-1]=v,f=!0,h):f?(h[h.length-1]+=v,f=!1,h):h.concat(v)},[]).map(function(h){return gE(h,p,e,r)})}),l.forEach(function(s,d){s.forEach(function(p,f){Kl(p)&&(a[d]+=p*(s[f-1]==="-"?-1:1))})}),a}function _E(t,e){var r=e.offset,n=t.placement,a=t.offsets,i=a.popper,o=a.reference,u=n.split("-")[0],c=void 0;return Kl(+r)?c=[+r,0]:c=yE(r,i,o,u),u==="left"?(i.top+=c[0],i.left-=c[1]):u==="right"?(i.top+=c[0],i.left+=c[1]):u==="top"?(i.left+=c[0],i.top-=c[1]):u==="bottom"&&(i.left+=c[0],i.top+=c[1]),t.popper=i,t}function bE(t,e){var r=e.boundariesElement||An(t.instance.popper);t.instance.reference===r&&(r=An(r));var n=Zl("transform"),a=t.instance.popper.style,i=a.top,o=a.left,u=a[n];a.top="",a.left="",a[n]="";var c=Gl(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);a.top=i,a.left=o,a[n]=u,e.boundaries=c;var l=e.priority,s=t.offsets.popper,d={primary:function(f){var h=s[f];return s[f]<c[f]&&!e.escapeWithReference&&(h=Math.max(s[f],c[f])),Nn({},f,h)},secondary:function(f){var h=f==="right"?"left":"top",v=s[h];return s[f]>c[f]&&!e.escapeWithReference&&(v=Math.min(s[h],c[f]-(f==="right"?s.width:s.height))),Nn({},h,v)}};return l.forEach(function(p){var f=["left","top"].indexOf(p)!==-1?"primary":"secondary";s=yt({},s,d[f](p))}),t.offsets.popper=s,t}function wE(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var a=t.offsets,i=a.reference,o=a.popper,u=["bottom","top"].indexOf(r)!==-1,c=u?"left":"top",l=u?"width":"height",s={start:Nn({},c,i[c]),end:Nn({},c,i[c]+i[l]-o[l])};t.offsets.popper=yt({},o,s[n])}return t}function SE(t){if(!wv(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=ja(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 CE(t){var e=t.placement,r=e.split("-")[0],n=t.offsets,a=n.popper,i=n.reference,o=["left","right"].indexOf(r)!==-1,u=["top","left"].indexOf(r)===-1;return a[o?"left":"top"]=i[r]-(u?a[o?"width":"height"]:0),t.placement=Xo(e),t.offsets.popper=Mr(a),t}var OE={shift:{order:100,enabled:!0,fn:wE},offset:{order:200,enabled:!0,fn:_E,offset:0},preventOverflow:{order:300,enabled:!0,fn:bE,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:vE},arrow:{order:500,enabled:!0,fn:pE,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:mE,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:CE},hide:{order:800,enabled:!0,fn:SE},computeStyle:{order:850,enabled:!0,fn:fE,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:uE,onLoad:lE,gpuAcceleration:void 0}},kE={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:OE},Jo=function(){function t(e,r){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};KT(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=WT(this.update.bind(this)),this.options=yt({},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(yt({},t.Defaults.modifiers,a.modifiers)).forEach(function(o){n.options.modifiers[o]=yt({},t.Defaults.modifiers[o]||{},a.modifiers?a.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return yt({name:o},n.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&av(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return XT(t,[{key:"update",value:function(){return tE.call(this)}},{key:"destroy",value:function(){return rE.call(this)}},{key:"enableEventListeners",value:function(){return aE.call(this)}},{key:"disableEventListeners",value:function(){return oE.call(this)}}]),t}();Jo.Utils=(typeof window!="undefined"?window:global).PopperUtils,Jo.placements=Sv,Jo.Defaults=kE;const xE=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"}));function PE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ov(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 DE(t,e,r){return e&&Ov(t.prototype,e),r&&Ov(t,r),t}var RE=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(PE(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));AR(this,t.Defaults,this.constructor.Defaults,r,{type:e}),pm(this,{type:Rr(),cancelable:Rr(),nativeEvent:Rr(),target:Rr(),relatedTarget:Rr(),vueTarget:Rr(),componentId:Rr()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},MR(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return DE(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),TE='Setting prop "options" to an object is deprecated. Use the array format instead.',kv=tt({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 EE={props:kv,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(Qr(e)){var n=qo(e,this.valueField),a=qo(e,this.textField);return{value:kn(n)?r||a:n,text:rv(String(kn(a)?r:a)),html:qo(e,this.htmlField),disabled:!!qo(e,this.disabledField)}}return{value:r||e,text:rv(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return At(e)?e.map(function(n){return r.normalizeOption(n)}):Qr(e)?(gm(TE,this.$options.name),Mt(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}};var xv=function(e,r){for(var n=0;n<e.length;n++)if(Kt(e[n],r))return n;return-1};function Pv(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 AE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pv(Object(r),!0).forEach(function(n){ME(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ME(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Dv="input, textarea, select",Qo=AE({id:{type:String},name:{type:String}},tt({disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1}},"formControls"));const ec={props:Qo,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var e=this;this.$nextTick(function(){Dn(function(){var r=e.$el;e.autofocus&&Tm(r)&&(Em(r,Dv)||(r=Fl(Dv,r)),Er(r))})})}}};var tc=tt({plain:{type:Boolean,default:!1}},"formControls");const Rv={props:tc,computed:{custom:function(){return!this.plain}}};function Tv(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?Tv(Object(r),!0).forEach(function(n){In(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function In(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rc=tt(es(es({},tc),{},{value:{},checked:{},inline:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String},ariaLabel:{type:String},ariaLabelledby:{type:String}}),"formRadioCheckControls");const Ev={mixins:[Hl,Rv,Ea],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:rc,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={},In(e,"btn-".concat(this.getSize),this.getSize),In(e,"disabled",this.isDisabled),In(e,"active",this.isChecked),In(e,"focus",this.hasFocus),e)]},computedAttrs:function(){return es(es({},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){Kt(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||Er(this.$refs.input)},blur:function(){this.isDisabled||Mm(this.$refs.input)}},render:function(e){var r=this.normalizeSlot(),n={change:this.handleChange};this.isBtnMode&&(n.focus=n.blur=this.handleFocus);var a=e("input",{ref:"input",key:"input",on:n,class:{"form-check-input":this.isPlain,"custom-control-input":this.isCustom,"is-valid":this.getState===!0&&!this.isBtnMode,"is-invalid":this.getState===!1&&!this.isBtnMode,"position-static":this.isPlain&&!r},directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:this.computedAttrs,domProps:{value:this.value,checked:this.isChecked}});if(this.isBtnMode){var i=e("label",{class:this.buttonClasses},[a,r]);return this.isGroup||(i=e("div",{class:["btn-group-toggle","d-inline-block"]},[i])),i}else{var o=e();return this.isPlain&&!r||(o=e("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},r)),e("div",{class:In({"form-check":this.isPlain,"form-check-inline":this.isPlain&&this.isInline,"custom-control":this.isCustom,"custom-control-inline":this.isCustom&&this.isInline,"custom-checkbox":this.isCustom&&this.isCheck&&!this.isSwitch,"custom-switch":this.isSwitch,"custom-radio":this.isCustom&&this.isRadio},"b-custom-control-".concat(this.getSize),!!(this.getSize&&!this.isBtnMode))},[a,o])}}};var ts=tt({size:{type:String}},"formControls");const nc={props:ts,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}};var rs=tt({state:{type:Boolean,default:null}},"formState");const ac={props:rs,computed:{computedState:function(){return El(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 Av(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 $a(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Av(Object(r),!0).forEach(function(n){NE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function NE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var IE=y.extend({name:bm,mixins:[Ev,Zo,ec,nc,ac],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:tt($a($a($a($a($a({},Qo),rc),ts),rs),{},{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}}),bm),computed:{isChecked:function(){var e=this.value,r=this.computedLocalChecked;return At(r)?xv(r,e)>-1:Kt(r,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(e,r){if(!Kt(e,r)){this.$emit("input",e);var n=this.$refs.input;n&&this.$emit("update:indeterminate",n.indeterminate)}},indeterminate:function(e){this.setIndeterminate(e)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(e){var r=this,n=e.target,a=n.checked,i=n.indeterminate,o=this.value,u=this.uncheckedValue,c=this.computedLocalChecked;if(At(c)){var l=xv(c,o);a&&l<0?c=c.concat(o):!a&&l>-1&&(c=c.slice(0,l).concat(c.slice(l+1)))}else c=a?o:u;this.computedLocalChecked=c,this.$nextTick(function(){r.$emit("change",c),r.isGroup&&r.bvGroup.$emit("change",c),r.$emit("update:indeterminate",i)})},setIndeterminate:function(e){At(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit("update:indeterminate",e))}}});function Mv(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 La(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Mv(Object(r),!0).forEach(function(n){FE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function FE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jE=y.extend({name:wm,mixins:[Zo,Ev,ec,nc,ac],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:tt(La(La(La(La(La({},Qo),rc),ts),rs),{},{checked:{default:null}}),wm),computed:{isChecked:function(){return Kt(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(e,r){Kt(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 Nv(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 Fn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nv(Object(r),!0).forEach(function(n){Iv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Iv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Fv=tt(Fn(Fn(Fn(Fn(Fn(Fn({},Qo),kv),ts),rs),tc),{},{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 $E={mixins:[Zo,Ea,ec,EE,nc,ac,Rv],model:{prop:"checked",event:"input"},props:Fv,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",Iv({"btn-group":e,"btn-group-vertical":!e},"btn-group-".concat(r),!!r)]),a}},watch:{checked:function(e){Kt(e,this.localChecked)||(this.localChecked=e)},localChecked:function(e,r){Kt(e,r)||this.$emit("input",e)}},render:function(e){var r=this,n=this.isRadioGroup,a=n?jE:IE,i=this.formOptions.map(function(o,u){var c="BV_option_".concat(u);return e(a,{props:{id:r.safeId(c),value:o.value,disabled:o.disabled||!1},key:c},[e("span",{domProps:Go(o.html,o.text)})])});return e("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:{id:this.safeId(),role:n?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot(fT),i,this.normalizeSlot()])}};var LE=tt(Fv,Sm),Le=y.extend({name:Sm,mixins:[$E],provide:function(){return{bvRadioGroup:this}},props:LE,computed:{isRadioGroup:function(){return!0}}}),BE=y.extend({abstract:!0,name:ZR,props:{nodes:{type:[Array,Function]}},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){iT(this.$el)},render:function(e){var r=Zt(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return r=fr(r).filter(Boolean),r&&r.length>0&&!r[0].text?r[0]:e()}}),qE=y.extend({name:GR,mixins:[Ea],props:{disabled:{type:Boolean,default:!1},container:{type:[String,um],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(lt){var e=this.container;return Jr(e)?Fl(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 BE({el:r,parent:this,propsData:{nodes:fr(this.normalizeSlot())}})}}},updateTarget:function(){if(lt&&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=fr(this.normalizeSlot()).filter(Pn);if(r.length>0&&!r[0].text)return r[0]}return e()}}),Nt="$_bv_documentHandlers_";const HE={created:function(){var e=this;lt&&(this[Nt]={},this.$once("hook:beforeDestroy",function(){var r=e[Nt]||{};delete e[Nt],Mt(r).forEach(function(n){var a=r[n]||[];a.forEach(function(i){return Aa(document,n,i,Ar)})})}))},methods:{listenDocument:function(e,r,n){e?this.listenOnDocument(r,n):this.listenOffDocument(r,n)},listenOnDocument:function(e,r){this[Nt]&&Jr(e)&&Zt(r)&&(this[Nt][e]=this[Nt][e]||[],Il(this[Nt][e],r)||(this[Nt][e].push(r),ql(document,e,r,Ar)))},listenOffDocument:function(e,r){this[Nt]&&Jr(e)&&Zt(r)&&(Aa(document,e,r,Ar),this[Nt][e]=(this[Nt][e]||[]).filter(function(n){return n!==r}))}}};var It="$_bv_windowHandlers_";const zE={beforeCreate:function(){this[It]={}},beforeDestroy:function(){if(lt){var e=this[It];delete this[It],Mt(e).forEach(function(r){var n=e[r]||[];n.forEach(function(a){return Aa(window,r,a,Ar)})})}},methods:{listenWindow:function(e,r,n){e?this.listenOnWindow(r,n):this.listenOffWindow(r,n)},listenOnWindow:function(e,r){lt&&this[It]&&Jr(e)&&Zt(r)&&(this[It][e]=this[It][e]||[],Il(this[It][e],r)||(this[It][e].push(r),ql(window,e,r,Ar)))},listenOffWindow:function(e,r){lt&&this[It]&&Jr(e)&&Zt(r)&&(Aa(window,e,r,Ar),this[It][e]=(this[It][e]||[]).filter(function(n){return n!==r}))}}};var VE=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function UE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const YE={computed:{scopedStyleAttrs:function(){var e=VE(this.$parent);return e?UE({},e,""):{}}}};var jv=1040,ic={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},WE=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){lt&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),xa(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),Am(document.body,"modal-open")),Pa(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),Dn(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(Dr(this.baseZIndex)&<){var e=document.createElement("div");xa(e,"modal-backdrop"),xa(e,"d-none"),Tr(e,"display","none"),document.body.appendChild(e),this.baseZIndex=eT(Ra(e).zIndex,jv),document.body.removeChild(e)}return this.baseZIndex||jv},getScrollbarWidth:function(){if(Dr(this.scrollbarWidth)&<){var e=document.createElement("div");xa(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=Bl(e).width-e.clientWidth,document.body.removeChild(e)}return this.scrollbarWidth||0},updateModals:function(e){var r=this,n=this.getBaseZIndex(),a=this.getScrollbarWidth();e.forEach(function(i,o){i.zIndex=n+o,i.scrollbarWidth=a,i.isTop=o===r.modals.length-1,i.isBodyOverflowing=r.isBodyOverflowing})},resetModal:function(e){e&&(e.zIndex=this.getBaseZIndex(),e.isTop=!0,e.isBodyOverflowing=!1)},checkScrollbar:function(){var e=Bl(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;Yo(ic.FIXED_CONTENT).forEach(function(a){var i=Da(a,"paddingRight")||"";Pa(a,"data-padding-right",i),Tr(a,"paddingRight","".concat(Ho(Ra(a).paddingRight,0)+r,"px")),e._paddingChangedForModal.push(a)}),Yo(ic.STICKY_CONTENT).forEach(function(a){var i=Da(a,"marginRight")||"";Pa(a,"data-margin-right",i),Tr(a,"marginRight","".concat(Ho(Ra(a).marginRight,0)-r,"px")),e._marginChangedForModal.push(a)}),Yo(ic.NAVBAR_TOGGLER).forEach(function(a){var i=Da(a,"marginRight")||"";Pa(a,"data-margin-right",i),Tr(a,"marginRight","".concat(Ho(Ra(a).marginRight,0)+r,"px")),e._marginChangedForModal.push(a)});var n=Da(e,"paddingRight")||"";Pa(e,"data-padding-right",n),Tr(e,"paddingRight","".concat(Ho(Ra(e).paddingRight,0)+r,"px"))}},resetScrollbar:function(){var e=document.body;e._paddingChangedForModal&&e._paddingChangedForModal.forEach(function(r){Ll(r,"data-padding-right")&&(Tr(r,"paddingRight",$l(r,"data-padding-right")||""),jl(r,"data-padding-right"))}),e._marginChangedForModal&&e._marginChangedForModal.forEach(function(r){Ll(r,"data-margin-right")&&(Tr(r,"marginRight",$l(r,"data-margin-right")||""),jl(r,"data-margin-right"))}),e._paddingChangedForModal=null,e._marginChangedForModal=null,Ll(e,"data-padding-right")&&(Tr(e,"paddingRight",$l(e,"data-padding-right")||""),jl(e,"data-padding-right"))}}}),Ba=new WE;function ns(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ns=function(r){return typeof r}:ns=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ns(t)}function $v(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 Lv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$v(Object(r),!0).forEach(function(n){GE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function GE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bv(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 KE(t,e,r){return e&&Bv(t.prototype,e),r&&Bv(t,r),t}function as(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?as=Reflect.get:as=function(a,i,o){var u=XE(a,i);if(u){var c=Object.getOwnPropertyDescriptor(u,i);return c.get?c.get.call(o):c.value}},as(t,e,r||t)}function XE(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=jn(t),t!==null););return t}function JE(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&&oc(t,e)}function oc(t,e){return oc=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},oc(t,e)}function QE(t){var e=tA();return function(){var n=jn(t),a;if(e){var i=jn(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return eA(this,a)}}function eA(t,e){return e&&(ns(e)==="object"||typeof e=="function")?e:qv(t)}function qv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tA(){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 jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jn(t)}var rA=function(t){JE(r,t);var e=QE(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ZE(this,r),a=e.call(this,n,i),pm(qv(a),{trigger:Rr()}),a}return KE(r,null,[{key:"Defaults",get:function(){return Lv(Lv({},as(jn(r),"Defaults",this)),{},{trigger:null})}}]),r}(RE);function Hv(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 qa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hv(Object(r),!0).forEach(function(n){_t(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nA={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},aA=tt({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:[um,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 Lo(e)||Il(["ok","cancel","close"],e)}}},Om),sc=y.extend({name:Om,mixins:[Hl,Zo,HE,HT,zE,Ea,YE],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:aA,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:Ba.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={},_t(e,"modal-".concat(this.size),this.size),_t(e,"modal-dialog-centered",this.centered),_t(e,"modal-dialog-scrollable",this.scrollable),e),this.dialogClass]},headerClasses:function(){var e;return[(e={},_t(e,"bg-".concat(this.headerBgVariant),this.headerBgVariant),_t(e,"text-".concat(this.headerTextVariant),this.headerTextVariant),_t(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={},_t(e,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),_t(e,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),e),this.bodyClass]},footerClasses:function(){var e;return[(e={},_t(e,"bg-".concat(this.footerBgVariant),this.footerBgVariant),_t(e,"text-".concat(this.footerTextVariant),this.footerTextVariant),_t(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 fr(this.ignoreEnforceFocusSelector).filter(Pn).join(",").trim()},computedAttrs:function(){var e=this.static?{}:this.scopedStyleAttrs;return qa(qa(qa({},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=Ba.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=qT(this.$refs.content,this.checkModalOverflow.bind(this),nA))},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 rA(e,qa(qa({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=Dm(lt?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(Ba.modalsAreOpen&&this.noStacking){this.listenOnRootOnce("bv::modal::hidden",this.doShow);return}Ba.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,Dn(function(){Dn(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,Dn(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,Ba.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){Aa(r,"mouseup",a,Ar),i.target===r&&(e.ignoreBackdropClick=!0)};ql(r,"mouseup",n,Ar)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!ka(document.body,e.target)||ka(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===CT&&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||ka(r,n)||this.computeIgnoreEnforceFocusSelector&&oT(this.computeIgnoreEnforceFocusSelector,n,!0))){var a=sT(this.$refs.content),i=this.$refs,o=i.bottomTrap,u=i.topTrap;if(o&&n===o){if(Er(a[0]))return}else if(u&&n===u&&Er(a[a.length-1]))return;Er(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;lt&&Dn(function(){var r=e.$refs.modal,n=e.$refs.content,a=e.getActiveElement();if(r&&n&&!(a&&ka(n,a))){var i=e.$refs["ok-button"],o=e.$refs["cancel-button"],u=e.$refs["close-button"],c=e.autoFocusButton,l=c==="ok"&&i?i.$el||i:c==="cancel"&&o?o.$el||o:c==="close"&&u?u.$el||u:n;Er(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=Jr(e)?Fl(e):e,e&&(e=e.$el||e,Er(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(mT,{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")?{}:Go(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(Ta,this.slotScope)),o=e();if(!this.hideFooter){var u=this.normalizeSlot("modal-footer",this.slotScope);if(!u){var c=e();this.okOnly||(c=e(tv,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:Go(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=e(tv,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:Go(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));u=[c,l]}o=e("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[u])}var s=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[r,i,o]),d=e(),p=e();this.isVisible&&!this.noEnforceFocus&&(d=e("span",{ref:"topTrap",attrs:{tabindex:"0"}}),p=e("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,s,p]),h=e("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);h=e("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[h]);var v=e();return!this.hideBackdrop&&this.isVisible&&(v=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),v=e(dT,{props:{noFade:this.noFade}},[v]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[h,v])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(qE,[this.makeModal(e)])}});const iA=y.defineComponent({name:"BikeForm",components:{SimpleCard:W,DefaultSelect:se,DefaultInput:ne,ZipcodeInput:Cn,BirthdateInput:Ce,ErrorHandler:G,BFormRadioGroup:Le},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:D.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=Sl(t,e);return{bikeState:Tt,userState:k,bikeKinds:Cl,bikeConditions:Ol,errors:z,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var zv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("default-select",{class:{"select-empty-value":!e.bikeState.kind},attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Maak een keuze",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},oA=[];zv._withStripped=!0;var Vv=E(iA,zv,oA,!1,null,null,null,null);Vv.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeForm.vue";const sA=Vv.exports,uA=y.defineComponent({name:"BikeFormHorizontal",components:{SimpleCard:W,DefaultSelect:se,DefaultInput:ne,ZipcodeInput:Cn,BirthdateInput:Ce,ErrorHandler:G,BFormRadioGroup:Le},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:D.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=Sl(t,e);return{bikeState:Tt,userState:k,bikeKinds:Cl,bikeConditions:Ol,errors:z,hasNewDesign:$,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Uv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-bike"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons mt-md-3 mt-xl-0",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer"},[e._v(" Vergelijken ")])])],1)])])},lA=[];Uv._withStripped=!0;var Yv=E(uA,Uv,lA,!1,null,null,null,null);Yv.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormHorizontal.vue";const cA=Yv.exports,dA=y.defineComponent({name:"BikeFormOld",components:{SimpleCard:W,DefaultSelect:se,DefaultInput:ne,ZipcodeInput:Cn,BirthdateInput:Ce,ErrorHandler:G,BFormRadioGroup:Le},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:D.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=Sl(t,e);return{bikeState:Tt,userState:k,bikeKinds:Cl,bikeConditions:Ol,errors:z,hasNewDesign:$,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Wv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-card",class:{[e.classes]:!!e.classes}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content"},[r("div",{staticClass:"vd-form-group"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[e.errors.has("kind:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Selecteer je fiets ")]):e._e()]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}})],1),r("div",{staticClass:"vd-form-group"},[r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}})],1),r("div",{staticClass:"vd-form-group"},[e._m(0),r("b-form-radio-group",{attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),e.hasBikeConditionError?r("p",{staticClass:"vd-form-error"},[e._v(" Is je fiets nieuw of tweedehands gekocht? ")]):e._e()],1),r("div",{staticClass:"vd-form-group"},[r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[e.errors.has("price:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Vul de aankoopprijs in (afgerond bedrag) ")]):e._e()])],2)],1),r("button",{staticClass:"btn-a btn-a--success btn-a--bold btn-block mt-2"},[e._v(" Vergelijken ")])])])])},fA=[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("*")])])}];Wv._withStripped=!0;var Gv=E(dA,Wv,fA,!1,null,null,null,null);Gv.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormOld.vue";const pA=Gv.exports,hA=t=>{const e=t.find(l=>l.type==="bezoekadres"),{huisnummer:r,huisletter:n="",huisnummerToevoeging:a="",plaats:i,postcode:o,straatnaam:u}=e;return{houseNumber:r,houseNumberAddition:n||a,city:i,zipCode:o,streetName:u}},uc=()=>{const t=Et.companyData,e=t._embedded.hoofdvestiging.adressen,r=hA(e),n={name:t.naam,kvkNumber:t.kvkNummer,industry:t.sbiIndustryId,numberOfEmployees:t.totaalWerkzamePersonen,legalForm:t._embedded.eigenaar.rechtsvorm};return Ct(Ct({},n),r)},mA=()=>{const t={name:"car",data:Ie},e={name:"companyData",data:uc()};return[t,e]};function vA(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 $n(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 lc=y.ref(!1),gA=(t,e)=>{const r=y.ref(!1);let n=y.ref(!1);const{submitFormAndUpdateFormData:a,submitFormAndCreateComparison:i,removeSessionState:o,openQuotationModal:u}=ut(e),c=()=>`${t.link}#/<<COMPARISONID>>`,l=()=>{Object.assign(Ie,t.insuranceState)},s=()=>{lc.value=!1},d=()=>{lc.value=!0},p=()=>I(this,null,function*(){return r.value=!Object.keys(Et.companyData).length||!Et.companyData.naam,(yield Ge(["license","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!lc.value&&!r.value});function f(){return I(this,null,function*(){try{if(yield p())if(t.formLocation===D.isOnCoveragePage){const v=uc();a({companyData:v,carState:Ie})}else yield i("car-business",mA(),c())}catch(v){h(v)}})}const h=v=>{console.error(v);const b=uc();J.refId="192",J.notes.push({text:"Kan geen comparison ID aanmaken voor zakelijk autoverzekering vergelijking"}),J.notes.push({text:`Kenteken: ${Ie.LicensePlate} | Postcode: ${b.zipCode} | Huisnummer: ${b.houseNumber} | Huisnummer toevoeging: ${b.houseNumberAddition}`}),J.notes=$n(J.notes),u()};return y.onMounted(()=>{n.value=!0,t.formLocation===D.isOnCoveragePage&&l(),t.formLocation===D.isBeforeFlow&&o("car-business-storage","car-business-path")}),{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:f}};function yA(t){return t=t.split("-").join(""),t}function _A(t,e){return t.split("").reduce((r,n,a)=>(n===e&&r.push(a),r),[])}function bA(t){const e=parseInt(t);return!!(e==0||e&&!isNaN(e))}const cc=["XX-99-XX","99-99-XX","99-XX-XX","XX-XX-99","99-XX-99","XX-99-99","99-XXX-9","XX-999-X","X-999-XX","9-XXX-99","XXX-99-X","X-99-XXX"];function is(t){let e="";if(e=yA(t),e.length>=6){const r=SA(e).join("");let n=[];for(let a=0;a<cc.length;a++){const i=cc[a],o=i.split("-").join("");if(o===r){n=o.split(""),n=wA(i,n,e);break}if(cc.length===a+1)return"no-template-found"}if(n.length===8)return n.join("")}return e}function wA(t,e,r){return e.map((n,a)=>e[a]=r[a]),_A(t,"-").forEach(n=>e.splice(n,0,"-")),e}function SA(t){let e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&(bA(n)?e=[...e,"9"]:e=[...e,"X"])}return e}const CA=y.defineComponent({name:"LicensePlate",components:{ErrorHandler:G},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),o=y.ref(!1),u=y.ref(!1),c=y.ref(!1);const l={motor:"fa-motorcycle",car:"fa-car",brommobiel:"fa-car-side"},s=y.computed(()=>[{rule:"required",text:"Dit veld is verplicht"},{rule:"minlength",text:"Kenteken is incorrect"},{rule:p.value,text:"Kenteken is incorrect"},{rule:u.value,text:"Kenteken is incorrect"},{rule:o.value,text:"Kenteken onbekend"},{rule:i.value,text:`Het ingevoerde kenteken is geen ${t.insuranceDutchNaming.toLowerCase()}`},{rule:!a.value&&h(t.value)&&!n.value.VehicleType&&Object.keys(n.value).length!==0,text:"Voertuig onbekend - Voer ander kenteken in of neem contact op"}]),d=y.computed(()=>o.value||i.value||p.value),p=y.computed(()=>is(r.value)==="no-template-found"&&h(r.value)),f=y.computed(()=>!a.value&&n.value.Brand&&n.value.Model&&t.vehicleTypes.includes(n.value.VehicleType)&&t.value.length>=6&&!z.has(t.name)&&!p.value&&!u.value),h=O=>O.length===8,v=O=>{c.value=!0,e("focus")},b=O=>{c.value=!1,e("blur");let T=O.srcElement.name;const j=oe.fields.find({name:T});(j!==null||j!==void 0&&j)&&oe.validate(j.name)},m=(O,T,j)=>{T==="input"&&(o.value=!1,u.value=!1),O||(i.value=!1),O.length<8&&(n.value={});let L=is(O);if(L==="no-template-found"){r.value=O,oe.validate(t.name),e(T,O),e("on-error");return}e(T,L.toUpperCase()),r.value=L.toUpperCase(),h(L)&&T==="input"&&(oe.validate(t.name),j&&S(L.toUpperCase()))},g=O=>{u.value=!1;let T=(O.clipboardData||window.clipboardData).getData("text");if(T=T.trim(),typeof T=="string"&&T){let j=is(T);if(j==="no-template-found"){r.value=T,e("input",T),e("on-error"),O.preventDefault();return}e("input",j.toUpperCase()),r.value=j.toUpperCase(),e("license-correct"),h(j)&&(oe.validate(t.name),S(j.toUpperCase())),O.preventDefault()}},w=(O,T)=>I(this,null,function*(){const j=O.toLocaleLowerCase(),L=yield je.dataService.findVehicle(T,j);return L||null}),S=O=>I(this,null,function*(){try{F.value=!0,a.value=!0,i.value=!1,o.value=!1,n.value={};let T=yield w(t.vehicleType,O);if(Array.isArray(T)&&!T.length){a.value=!1,o.value=!0,oe.validate("unknownLicensePlateHiddenField");return}if(console.warn(t.vehicleTypes),t.vehicleTypes.length!==0&&!t.vehicleTypes.includes(T.VehicleType)){e("incorrect-vehicle-type"),i.value=!0,a.value=!1,oe.validate("incorrectLicensePlateHiddenField"),oe.validate("noLicensePlateHiddenField"),oe.validate("unknownLicensePlateHiddenField");return}n.value=T,e("on-vehicle-information-update",T),a.value=!1}catch(T){u.value=!0,a.value=!1,oe.validate("unknownLicensePlateHiddenField"),console.error(T)}finally{F.value=!1}});return y.onMounted(()=>{y.nextTick(()=>{if(r.value=t.value,!r.value)return;let O=!0;h(is(r.value))&&Object.keys(t.propVehicleInformation).length!==0&&(n.value=t.propVehicleInformation,oe.validate(t.name),O=!1),m(r.value,"input",O)})}),{errors:z,userState:k,motorState:xr,hasNewDesign:$,isRequestIsHandling:F,license:r,vehicleInformation:n,isLicenseUnknown:o,isLicenseTemplateIncorrect:p,isRetrievingVehicleInformation:a,incorrectLicensePlate:i,isLicensePlateCantBeRetrieved:u,vehicleIcons:l,errorsData:s,isVehicleInfoShowed:f,isFocused:c,hasLicensePlateAnyErrors:d,isLicenseFull:h,resetFieldValidation:v,validateField:b,onPasteEvent:g,retrieveLicensePlateInformation:S,setValue:m}}}),OA="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 Zv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v(" *")])]),r("div",{staticClass:"license",class:[{license_disabled:e.disabled}]},[e.hasNewDesign?r("div",{staticClass:"license__wrapper",class:[{license__wrapper_error:e.errors.has(e.name)||e.hasLicensePlateAnyErrors},{license__wrapper_focus:e.isFocused}]},[r("div",{staticClass:"license__country"}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]):e._e(),e.hasNewDesign?e._e():r("div",{staticClass:"license__country"}),e.hasNewDesign?e._e():r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"incorrectLicensePlateHiddenField"},domProps:{value:e.incorrectLicensePlate}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"noLicensePlateHiddenField"},domProps:{value:!e.isRetrievingVehicleInformation&&e.isLicenseFull(e.value)&&!e.vehicleInformation.VehicleType&&Object.keys(e.vehicleInformation).length!==0}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"unknownLicensePlateHiddenField"},domProps:{value:e.isLicenseUnknown}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicenseTemplateIncorrectHiddenField"},domProps:{value:e.isLicenseTemplateIncorrect}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicensePlateCantBeRetrievedHiddenField"},domProps:{value:e.isLicensePlateCantBeRetrieved}}),e._t("errors",function(){return[r("ErrorHandler",{attrs:{name:e.name,"errors-data":e.errorsData}})]},{errors:e.errors,incorrectLicenseplate:e.incorrectLicensePlate}),e._t("vehicle-information",function(){return[e.isVehicleInfoShowed?r("div",{staticClass:"vd-form-vehicle-name"},[e.vehicleType!=="moped"?r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleIcons[e.vehicleType]]}):r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleInformation.Model==="Brommobiel"?e.vehicleIcons.brommobiel:""]},[e.vehicleInformation.Model!=="Brommobiel"?r("img",{attrs:{src:OA,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:"license-loader"},[r("span",{staticClass:"license-loader__icon",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"license-loader__text"},[e._v(" Voertuig gegevens ophalen... ")])]):e._e()]},{loading:e.isRetrievingVehicleInformation,vehicleInformation:e.vehicleInformation})],2)},kA=[];Zv._withStripped=!0;var Kv=E(CA,Zv,kA,!1,null,null,null,null);Kv.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/LicensePlate.vue";const Xt=Kv.exports;function dc(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function xA(t){return(...e)=>!t(...e)}function PA(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function Xv(t,e,r,n){return t.filter(a=>PA(n(a,r),e))}function DA(t){return t.filter(e=>!e.$isLabel)}function fc(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 RA(t,e,r,n,a){return i=>i.map(o=>{if(!o[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=Xv(o[r],t,e,a);return u.length?{[n]:o[n],[r]:u}:[]})}const Jv=(...t)=>e=>t.reduce((r,n)=>n(r),e),TA={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 dc(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):Xv(r,e,this.label,this.customLabel):r=this.groupValues?fc(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(xA(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 Jv(RA(e,r,this.groupValues,this.groupLabel,this.customLabel),fc(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Jv(fc(this.groupValues,this.groupLabel),DA)(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(dc(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;let e=this.customLabel(t,this.label);return dc(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const r=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],n=this.internalValue.filter(a=>r.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("input",n,this.id)}else{let r=e[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&r.splice(this.max-this.internalValue.length),this.$emit("select",r,this.id),this.$emit("input",this.internalValue.concat(r),this.id)}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const r=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const n=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("input",n,this.id)}else this.$emit("input",null,this.id);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el!="undefined"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search!="undefined"&&this.$refs.search.blur():typeof this.$el!="undefined"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window=="undefined")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},{data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer,"vd-multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["vd-multiselect__option--disabled",{"vd-multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["vd-multiselect__option--group",{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer},{"vd-multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"vd-multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}}],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)&&!this.search},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.value&&this.value.length?this.search?(this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1),""):this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};var Qv=function(){var e=this,r=e._self._c;return r("div",{staticClass:"vd-multiselect",class:{"vd-multiselect--active":e.isOpen,"vd-multiselect--disabled":e.disabled,"vd-multiselect--above":e.isAbove,"vd-multiselect--has-options-group":e.hasOptionGroup},attrs:{tabindex:e.searchable?-1:e.tabindex,role:"combobox","aria-owns":"listbox-"+e.id},on:{focus:function(n){return e.activate()},blur:function(n){e.searchable||e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerBackward())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")&&e._k(n.keyCode,"tab",9,n.key,"Tab")||(n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()}}},[e._t("caret",function(){return[r("div",{staticClass:"vd-multiselect__select",on:{mousedown:function(n){return n.preventDefault(),n.stopPropagation(),e.toggle()}}})]},{toggle:e.toggle}),e._t("clear",null,{search:e.search}),r("div",{ref:"tags",staticClass:"vd-multiselect__tags"},[e._t("selection",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"vd-multiselect__tags-wrap"},[e._l(e.visibleValues,function(n,a){return[e._t("tag",function(){return[r("span",{key:a,staticClass:"vd-multiselect__tag"},[r("span",{domProps:{textContent:e._s(e.getOptionLabel(n))}}),r("i",{staticClass:"vd-multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.removeElement(n))},mousedown:function(i){return i.preventDefault(),e.removeElement(n)}}})])]},{option:n,search:e.search,remove:e.removeElement})]})],2),e.internalValue&&e.internalValue.length>e.limit?[e._t("limit",function(){return[r("strong",{staticClass:"vd-multiselect__strong",domProps:{textContent:e._s(e.limitText(e.internalValue.length-e.limit))}})]})]:e._e()]},{search:e.search,remove:e.removeElement,values:e.visibleValues,isOpen:e.isOpen}),r("transition",{attrs:{name:"vd-multiselect__loading"}},[e._t("loading",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"vd-multiselect__spinner"})]})],2),e.searchable?r("input",{ref:"search",staticClass:"vd-multiselect__input",style:e.inputStyle,attrs:{name:e.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,disabled:e.disabled,tabindex:e.tabindex,"aria-controls":"listbox-"+e.id},domProps:{value:e.search},on:{input:function(n){return e.updateSearch(n.target.value)},focus:function(n){return n.preventDefault(),e.activate()},blur:function(n){return n.preventDefault(),e.deactivate()},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.pointerBackward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"])?null:(n.stopPropagation(),e.removeLastElement())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")||(n.preventDefault(),n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)}}}):e._e(),e.isSingleLabelVisible?r("span",{staticClass:"vd-multiselect__single",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("singleLabel",function(){return[[e._v(e._s(e.currentOptionLabel))]]},{option:e.singleValue})],2):e._e(),e.isPlaceholderVisible?r("span",{staticClass:"vd-multiselect__placeholder",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("placeholder",function(){return[e._v(" "+e._s(e.placeholder)+" ")]})],2):e._e()],2),r("transition",{attrs:{name:"multiselect"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen&&!e.loading,expression:"isOpen && !loading"}],staticClass:"vd-multiselect__tab-wrapper",style:{borderColor:e.filteredOptions.length!==0||e.options.length!==0||e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading||e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading?"":"transparent"}},[r("div",{ref:"list",staticClass:"vd-multiselect__content-wrapper",style:{maxHeight:103*5+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(n){n.preventDefault()}}},[r("ul",{staticClass:"vd-multiselect__content",style:e.contentStyle,attrs:{role:"listbox",id:"listbox-"+e.id}},[e._t("beforeList"),e.multiple&&e.max===e.internalValue.length?r("li",[r("span",{staticClass:"vd-multiselect__option"},[e._t("maxElements",function(){return[e._v("Maximum of "+e._s(e.max)+" options selected. First remove a selected option to select another.")]})],2)]):e._e(),!e.max||e.internalValue.length<e.max?e._l(e.filteredOptions,function(n,a){return r("li",{key:a,staticClass:"vd-multiselect__element",attrs:{id:e.id+"-"+a,role:n&&(n.$isLabel||n.$isDisabled)?null:"option"}},[n&&(n.$isLabel||n.$isDisabled)?e._e():r("span",{staticClass:"vd-multiselect__option",class:e.optionHighlight(a,n),attrs:{"data-select":n&&n.isTag?e.tagPlaceholder:e.selectLabelText,"data-selected":e.selectedLabelText,"data-deselect":e.deselectLabelText},on:{click:function(i){return i.stopPropagation(),e.select(n)},mouseenter:function(i){return i.target!==i.currentTarget?null:e.pointerSet(a)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2),n&&(n.$isLabel||n.$isDisabled)?r("span",{staticClass:"vd-multiselect__option",class:e.groupHighlight(a,n),attrs:{"data-select":e.groupSelect&&e.selectGroupLabelText,"data-deselect":e.groupSelect&&e.deselectGroupLabelText},on:{mouseenter:function(i){if(i.target!==i.currentTarget)return null;e.groupSelect&&e.pointerSet(a)},mousedown:function(i){return i.preventDefault(),e.selectGroup(n)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2):e._e()])}):e._e(),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noResult",function(){return[e._v("No elements found. Consider changing the search query.")]},{search:e.search})],2)]),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading,expression:"showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noOptions",function(){return[e._v("List is empty.")]})],2)]),e._t("afterList")],2)])])])],2)},EA=[];Qv._withStripped=!0;var eg=E(TA,Qv,EA,!1,null,null,null,null);eg.options.__file="/Users/mac/Work/comparison-forms/src/components/common/extended/Multiselect.vue";const AA=eg.exports,MA=y.defineComponent({name:"CompaniesListSelect",components:{ErrorHandler:G,Multiselect:AA},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),o=y.ref([]),u=y.ref(!1),c=y.ref(null),l=y.ref(!1),s=y.ref(!1),d=y.ref(!1);const p=()=>{Object.keys(a).map(S=>{a[S]=""})},f=()=>{p(),n("update-company-data",a),l.value=!1},h=()=>{l.value=!0},v=()=>{d.value=!1,s.value=!0},b=()=>{s.value=!1};y.watch(i,S=>I(this,null,function*(){S&&S.kvkNummer&&(F.value=!0,yield je.dataService.getProfileInfo(S.kvkNummer).then(O=>{h();let T=O._embedded.hoofdvestiging.adressen.find(L=>L.type==="bezoekadres"||L.type==="correspondentieadres"),j=T.huisletter||"";j+=T.huisnummerToevoeging||"",a.kvk_number=O.kvkNummer,a.company_name=O.naam,a.legal_entity=O._embedded.eigenaar.rechtsvorm,a.rsin=O._embedded.eigenaar.rsin||null,a.branch_number=O._embedded.hoofdvestiging.vestigingsnummer,a.postcode=T.postcode||null,a.city=T.plaats||null,a.street=T.straatnaam||null,a.house_number=T.huisnummer||null,a.house_number_addition=j||null,a.full_address=T.volledigAdres||null,a.sbi_activities=O.sbiActiviteiten.map(L=>({code:L.sbiCode,description:L.sbiOmschrijving,is_main:L.indHoofdactiviteit==="Ja"})),n("update-company-data",O)}).catch(O=>{console.error(O)}).finally(()=>{F.value=!1}))}));const m=S=>{F.value=!0,u.value=!0,S.aantal=30,je.dataService.searchBusinessInfoV2({companyName:S.naam,kvkNumber:S.kvkNummer},1,S.aantal).then(O=>{u.value=!1;let T=O.resultaten;T.length>0?o.value=T.filter(j=>j.type==="hoofdvestiging"||j.type==="nevenvestiging").map(j=>(j.name=`${j.naam}`,j)):o.value=[]}).catch(O=>{o.value=[],u.value=!1}).finally(()=>{F.value=!1})},g=S=>{!S.length&&o.value.length&&(o.value=[]),S.length>2&&(clearTimeout(c.value),c.value=setTimeout(()=>{S.length==8&&/^\d+$/.test(S)?m({kvkNummer:S}):w(S)?m(w(S)):m({naam:S})},700))},w=S=>{if(S.length>7){let O=S.split(" ");if(O.length>1&&/^([0-9]{4}[A-Z]{2}|[0-9]{4}[a-z]{2})$/.test(O[0])){let T={postcode:O[0],huisnummer:O[1]};return O[2]&&(T.huisnummerToevoeging=O[2]),T}}return null};return{isRequestIsHandling:F,companyName:i,companies:o,businessInfoModel:a,isOptionSelected:l,isDropdownFocused:s,isErrorShowed:d,isLoading:u,attrs:e,listeners:r,findCompanies:g,selectOption:h,removeOption:f,setDropdownOpened:v,setDropdownClosed:b}}});var tg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("multiselect",{class:{"vd-multiselect__chosen-option":e.isOptionSelected&&!e.isDropdownFocused},attrs:{options:e.companies,label:"name","track-by":"name",multiple:!1,"options-limit":30,placeholder:"Typ je bedrijfsnaam of KvK-nummer","selected-label":"Selected","select-label":"Select","preserve-search":!0,loading:e.isLoading,"internal-search":!1,deselectLabel:"",selectedLabel:"",hideSelected:!0,openDirection:"bottom",showNoOptions:!1},on:{"search-change":e.findCompanies,remove:e.removeOption,open:e.setDropdownOpened,close:e.setDropdownClosed},scopedSlots:e._u([{key:"option",fn:function({option:n}){return[r("div",{staticClass:"vd-multiselect__option-external-wrapper"},[r("div",{staticClass:"vd-multiselect__option-wrapper"},[r("p",[r("b",[e._v(e._s(n.naam))]),r("br")]),r("p",[e._v(e._s("Kvk: "+n.kvkNummer)),r("br")]),r("p",[e._v(e._s(n.adres.binnenlandsAdres.plaats+", "+n.adres.binnenlandsAdres.straatnaam)),r("br")])])])]}}]),model:{value:e.companyName,callback:function(n){e.companyName=n},expression:"companyName"}},[r("template",{slot:"noResult"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je KvK-nummer.")])]),r("template",{slot:"noOptions"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Bedrijfsnaam of KVK-nummer")])])],2),e.isOptionSelected&&!e.isDropdownFocused?r("div",{staticClass:"vd-multiselect__address-info mt-1"},[r("i",{staticClass:"fas fa-info-circle vd-tip-icon vd-tip-icon_additional-text"}),r("span",[e._v("Kvk: "+e._s(e.businessInfoModel.kvk_number)+" "+e._s(e.businessInfoModel.full_address))])]):e._e(),r("error-handler",{attrs:{"errors-data":[{rule:!e.isOptionSelected&&!e.isDropdownFocused&&e.hasCompaniesListValidationError,text:"Bedrijfsnaam of KVK-nummer is verplicht"}]}})],1)},NA=[];tg._withStripped=!0;var rg=E(MA,tg,NA,!1,null,null,null,null);rg.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/CompaniesListSelect.vue";const ng=rg.exports,IA=y.defineComponent({name:"Loader",props:{isActive:{type:Boolean,required:!1,default:!0},small:{type:Boolean,required:!1,default:!1}}});var ag=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()},FA=[];ag._withStripped=!0;var ig=E(IA,ag,FA,!1,null,"3514e0e8",null,null);ig.options.__file="/Users/mac/Work/comparison-forms/src/components/common/Loader.vue";const pc=ig.exports,jA=y.defineComponent({name:"BusinessCarForm",components:{SimpleCard:W,LicensePlate:Xt,CompaniesListSelect:ng,Loader:pc},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=gA(t,e);return{businessState:Et,carState:Ie,errors:z,isRequestIsHandling:F,hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,updateCompanyData:c=>{Et.companyData=Ct({},c)},validateBeforeSubmit:o}}});var og=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license","vd-form-version":"1"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"search-select-input"}},[e._v(" Selecteer de naam van je bedrijf "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),e.isMultiselectReady?r("companies-list-select",{attrs:{"has-companies-list-validation-error":e.hasCompaniesListValidationError},on:{"update-company-data":e.updateCompanyData},model:{value:e.businessState.companyData,callback:function(n){e.$set(e.businessState,"companyData",n)},expression:"businessState.companyData"}}):r("loader")],1)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},$A=[];og._withStripped=!0;var sg=E(jA,og,$A,!1,null,null,null,null);sg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/business/businessCar/components/BusinessCarForm.vue";const LA=sg.exports,BA=()=>[{name:"car",data:Object.assign(Ie,{LicensePlate:Ie.LicensePlate,Brand:Ie.Brand,Model:Ie.Model,Type:Ie.Type,VehicleType:Ie.VehicleType,ManufacturingYear:Ie.ManufacturingYear})},{name:"comparison",data:{ClaimFreeYears:"0",Coverage:null,Deductables:300,Kilometrage:"12000"}}],ug=y.ref(!1),hc=y.ref(!1),mc=(t,e)=>{const{submitFormAndUpdateFormData:r,submitFormAndCreateComparison:n,setInitialUserInfoInStore:a,removeSessionState:i,openQuotationModal:o}=ut(e),u=()=>`${t.link}#/<<COMPARISONID>>/dekkingen/`,c=()=>I(this,null,function*(){return(yield Ge(["license","zipcode","housenumber","housenumberaddition","birthdate","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!ug.value&&Ie.VehicleType==="Car"&&!hc.value}),l=()=>{Object.assign(Ie,t.insuranceState)},s=()=>{hc.value=!1},d=()=>{hc.value=!0},p=()=>I(this,null,function*(){try{if(yield c())if(t.formLocation===D.isOnResultPage)r({userInformation:k,carState:Ie});else{const h=BA();yield n("car",h,u())}}catch(h){f(h)}}),f=h=>{console.error(h),J.refId="192",J.notes.push({text:"Kan geen comparison ID aanmaken voor autoverzekering vergelijking"}),J.notes.push({text:`Kenteken: ${Ie.LicensePlate} | Postcode: ${k.zipcode} | Huisnummer: ${k.houseNumber} | Huisnummer toevoeging: ${k.houseNumberAddition} | Geboortedatum: ${k.birthdate}`}),J.notes=$n(J.notes),o()};return y.onMounted(()=>{t.formLocation===D.isOnResultPage&&(a(t),l()),t.formLocation===D.isBeforeFlow&&i("car-storage","car-path")}),{houseError:ug,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:p}};var lg={exports:{}};const qA=Un(xE);(function(t,e){(function(r,n){t.exports=n(qA)})(_,function(r){function n(u,c,l){u&&c&&l&&(document.addEventListener?u.addEventListener(c,l,!1):u.attachEvent("on"+c,l))}function a(u,c,l){u&&c&&(document.removeEventListener?u.removeEventListener(c,l,!1):u.detachEvent("on"+c,l))}r=r&&r.hasOwnProperty("default")?r.default:r;var i={props:{tagName:{type:String,default:"span"},trigger:{type:String,default:"hover",validator:function(u){return["clickToOpen","click","clickToToggle","hover","focus"].indexOf(u)>-1}},delayOnMouseOver:{type:Number,default:10},delayOnMouseOut:{type:Number,default:10},disabled:{type:Boolean,default:!1},content:String,enterActiveClass:String,leaveActiveClass:String,boundariesSelector:String,reference:{},forceShow:{type:Boolean,default:!1},dataValue:{default:null},appendToBody:{type:Boolean,default:!1},visibleArrow:{type:Boolean,default:!0},transition:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},rootClass:{type:String,default:""}},data:function(){return{referenceElm:null,popperJS:null,showPopper:!1,currentPlacement:"",popperOptions:{placement:"bottom",computeStyle:{gpuAcceleration:!1}}}},watch:{showPopper:function(u){u?(this.$emit("show",this),this.popperJS&&this.popperJS.enableEventListeners(),this.updatePopper()):(this.popperJS&&this.popperJS.disableEventListeners(),this.$emit("hide",this))},forceShow:{handler:function(u){this[u?"doShow":"doClose"]()},immediate:!0},disabled:function(u){u&&(this.showPopper=!1)}},created:function(){this.appendedArrow=!1,this.appendedToBody=!1,this.popperOptions=Object.assign(this.popperOptions,this.options)},mounted:function(){switch(this.referenceElm=this.reference||this.$slots.reference[0].elm,this.popper=this.$slots.default[0].elm,this.trigger){case"clickToOpen":n(this.referenceElm,"click",this.doShow),n(document,"click",this.handleDocumentClick);break;case"click":case"clickToToggle":n(this.referenceElm,"click",this.doToggle),n(document,"click",this.handleDocumentClick);break;case"hover":n(this.referenceElm,"mouseover",this.onMouseOver),n(this.popper,"mouseover",this.onMouseOver),n(this.referenceElm,"mouseout",this.onMouseOut),n(this.popper,"mouseout",this.onMouseOut);break;case"focus":n(this.referenceElm,"focus",this.onMouseOver),n(this.popper,"focus",this.onMouseOver),n(this.referenceElm,"blur",this.onMouseOut),n(this.popper,"blur",this.onMouseOut)}},methods:{doToggle:function(u){this.stopPropagation&&u.stopPropagation(),this.preventDefault&&u.preventDefault(),this.forceShow||(this.showPopper=!this.showPopper)},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},doDestroy:function(){this.showPopper||(this.popperJS&&(this.popperJS.destroy(),this.popperJS=null),this.appendedToBody&&(this.appendedToBody=!1,document.body.removeChild(this.popper.parentElement)))},createPopper:function(){var u=this;this.$nextTick(function(){if(u.visibleArrow&&u.appendArrow(u.popper),u.appendToBody&&!u.appendedToBody&&(u.appendedToBody=!0,document.body.appendChild(u.popper.parentElement)),u.popperJS&&u.popperJS.destroy&&u.popperJS.destroy(),u.boundariesSelector){var c=document.querySelector(u.boundariesSelector);c&&(u.popperOptions.modifiers=Object.assign({},u.popperOptions.modifiers),u.popperOptions.modifiers.preventOverflow=Object.assign({},u.popperOptions.modifiers.preventOverflow),u.popperOptions.modifiers.preventOverflow.boundariesElement=c)}u.popperOptions.onCreate=function(){u.$emit("created",u),u.$nextTick(u.updatePopper)},u.popperJS=new r(u.referenceElm,u.popper,u.popperOptions)})},destroyPopper:function(){a(this.referenceElm,"click",this.doToggle),a(this.referenceElm,"mouseup",this.doClose),a(this.referenceElm,"mousedown",this.doShow),a(this.referenceElm,"focus",this.doShow),a(this.referenceElm,"blur",this.doClose),a(this.referenceElm,"mouseout",this.onMouseOut),a(this.referenceElm,"mouseover",this.onMouseOver),a(document,"click",this.handleDocumentClick),this.showPopper=!1,this.doDestroy()},appendArrow:function(u){if(!this.appendedArrow){this.appendedArrow=!0;var c=document.createElement("div");c.setAttribute("x-arrow",""),c.className="popper__arrow",u.appendChild(c)}},updatePopper:function(){this.popperJS?this.popperJS.scheduleUpdate():this.createPopper()},onMouseOver:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!0},this.delayOnMouseOver)},onMouseOut:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!1},this.delayOnMouseOut)},handleDocumentClick:function(u){this.$el&&this.referenceElm&&!this.elementContains(this.$el,u.target)&&!this.elementContains(this.referenceElm,u.target)&&this.popper&&!this.elementContains(this.popper,u.target)&&(this.$emit("documentClick",this),this.forceShow||(this.showPopper=!1))},elementContains:function(u,c){return typeof u.contains=="function"&&u.contains(c)}},destroyed:function(){this.destroyPopper()}};const o=i;return i.__file="popper.js.vue",function(u,c,l,s,d,p,f,h,v,b){typeof f=="function"&&(v=h,h=f,f=!1);const m=typeof l=="function"?l.options:l;let g;if(u&&u.render&&(m.render=u.render,m.staticRenderFns=u.staticRenderFns,m._compiled=!0,d&&(m.functional=!0)),s&&(m._scopeId=s),p?(g=function(w){(w=w||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__=="undefined"||(w=__VUE_SSR_CONTEXT__),c&&c.call(this,v(w)),w&&w._registeredComponents&&w._registeredComponents.add(p)},m._ssrRegister=g):c&&(g=f?function(){c.call(this,b(this.$root.$options.shadowRoot))}:function(w){c.call(this,h(w))}),g)if(m.functional){const w=m.render;m.render=function(S,O){return g.call(O),w(S,O)}}else{const w=m.beforeCreate;m.beforeCreate=w?[].concat(w,g):[g]}return l}({render:function(){var u=this,c=u.$createElement,l=u._self._c||c;return l(u.tagName,{tag:"component"},[l("transition",{attrs:{name:u.transition,"enter-active-class":u.enterActiveClass,"leave-active-class":u.leaveActiveClass},on:{"after-leave":u.doDestroy}},[l("span",{directives:[{name:"show",rawName:"v-show",value:!u.disabled&&u.showPopper,expression:"!disabled && showPopper"}],ref:"popper",class:u.rootClass},[u._t("default",[u._v(u._s(u.content))])],2)]),u._v(" "),u._t("reference")],2)},staticRenderFns:[]},void 0,o,void 0,!1,void 0,void 0,void 0)})})(lg);var HA=lg.exports;const Ln=Ga(HA),zA=y.defineComponent({components:{DefaultInput:ne,DefaultSelect:se,ErrorHandler:G,Popper:Ln},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),o=y.ref(!1),u=y.ref(""),c=y.ref(""),l=y.ref(""),s=y.ref([]),d=y.ref({street:"",city:""}),p=y.ref(!1),f=[{rule:"required",text:"Vul je postcode in"},{rule:"regex",text:"Postcode is incorrect"}],h=[{rule:"required",text:"Huisnummer is verplicht"}],v=y.computed(()=>[{rule:z.has(t.houseNumberAdditionName),text:"Een toevoeging is verplicht"}]),b=y.computed(()=>[{rule:a.value,text:"Postcode en huisnummer combinatie onbekend."}]),m=y.computed(()=>r.value?"-":"Kies toevoeging"),g=y.computed(()=>`${o.value?"":"required"}|is_not:CHOOSE_OPTION`),w=(V,q,Ze)=>I(this,null,function*(){try{if(F.value=!0,!V||!q){j(""),l.value="CHOOSE_OPTION",a.value=!1,d.value.street="",d.value.city="",s.value=[{title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}];return}s.value=[],Ze&&(l.value="CHOOSE_OPTION"),s.value.push({title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}),o.value=yield S(V,q),o.value&&(s.value=[...s.value,{title:"Geen toevoeging",value:""}]),je.homeService.getAddition({zipcode:V,houseNumber:q}).then(qe=>{const Ft=qe;if(i.value=!0,H(t.houseNumberAdditionName),Ft.length){r.value=!1;for(let mr=0;mr<Ft.length;mr++)s.value=[...s.value,{title:Ft[mr],value:Fe(Ft[mr])}];a.value=!1,Ze||y.nextTick(()=>{l.value=t.houseNumberAddition,L(V,q,t.houseNumberAddition)})}else s.value[1]&&(s.value[1].title="Geen toevoeging"),r.value=!0,l.value="",j(""),L(V,q)}).catch(qe=>{a.value=!0,d.value.street="",d.value.city="",e("address-correct",!a.value),H("housenumberaddition"),console.error("Error fetching additions:",qe)})}catch(qe){console.error("Error in getHouseNumberAdditions:",qe)}finally{F.value=!1}}),S=(V,q)=>I(this,null,function*(){return yield je.dataValidationService.validateZipCode(V,q).then(()=>!0).catch(()=>!1)}),O=V=>{p.value=!0,u.value=V.toUpperCase(),e("update-zipcode",V.toUpperCase()),y.nextTick(()=>{w(V.toUpperCase(),t.houseNumber,!0)})},T=V=>{p.value=!0,e("update-house-number",V),y.nextTick(()=>{w(t.zipcode,V,!0)})},j=V=>{e("update-house-number-addition",V),L(t.zipcode,t.houseNumber,V)},L=(V,q,Ze="")=>I(this,null,function*(){try{if(F.value=!0,!V||!q)return;n.value=!0,a.value=!1,d.value.street="",d.value.city="",e("address-correct",!a.value);const{Street:qe,Place:Ft}=yield je.dataValidationService.validateZipCode(V,q,Ze);p.value=!1,d.value.street=qe,d.value.city=Ft,e("update-house-information",d.value),n.value=!1}catch(qe){a.value=!0,n.value=!1,e("address-correct",!a.value),H("housenumberaddition"),console.error("Error getting house information:",qe)}finally{F.value=!1}}),H=V=>{var Ze;const q=oe.fields.find({name:V});(q!==null||q!==void 0&&q)&&(q==null||q.reset(),(Ze=oe==null?void 0:oe.errors)==null||Ze.remove(q==null?void 0:q.name,q==null?void 0:q.scope))},Fe=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:$,additionLabel:m,additionValidationRules:g,disableAdditionField:r,isLoading:n,addressError:a,firstTimeCalled:i,canBeWithoutAddition:o,zipcodeModel:u,houseNumberModel:c,houseAdditionNumberModel:l,additions:s,houseInformation:d,isAddressEditing:p,props:t,zipcodeErrorsData:f,houseNumberErrorsData:h,houseNumberAdditionErrorsData:v,addressErrorsData:b,getHouseNumberAdditions:w,getHouseInformationWithoutAddition:S,updateZipcode:O,updateHouseNumber:T,updateHouseNumberAddition:j,getHouseInformation:L,resetFieldValidation:H}}});var cg=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)}}})])},VA=[];cg._withStripped=!0;var dg=E(zA,cg,VA,!1,null,null,null,null);dg.options.__file="/Users/mac/Work/comparison-forms/src/components/common/AddressHandler.vue";const Be=dg.exports,UA=y.defineComponent({name:"CarForm",components:{LicensePlate:Xt,AddressHandler:Be,DefaultInput:ne,SimpleCard:W,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=mc(t,e);return{userState:k,carState:Ie,hasNewDesign:$,errors:z,isRequestIsHandling:F,houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var fg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},YA=[];fg._withStripped=!0;var pg=E(UA,fg,YA,!1,null,null,null,null);pg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarForm.vue";const WA=pg.exports,GA=y.defineComponent({name:"CarFormHorizontal",components:{LicensePlate:Xt,AddressHandler:Be,DefaultInput:ne,SimpleCard:W,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=mc(t,e);return{userState:k,carState:Ie,hasNewDesign:$,errors:z,isRequestIsHandling:F,licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}}});var hg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-car"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-block"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,template:"FORM_HORIZONTAL","house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}}),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},ZA=[];hg._withStripped=!0;var mg=E(GA,hg,ZA,!1,null,null,null,null);mg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormHorizontal.vue";const KA=mg.exports,XA=y.defineComponent({name:"CarFormOld",components:{LicensePlate:Xt,AddressHandler:Be,DefaultInput:ne,SimpleCard:W,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=mc(t,e);return{userState:k,carState:Ie,hasNewDesign:$,errors:z,isRequestIsHandling:F,houseError:r,FormLocations:D,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var vg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("simple-card",{staticClass:"vd-form-card vd-form-card--border-box",class:{"vd-form-card--flat w-100":e.formLocation===e.FormLocations.isOnResultPage,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content p-0"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-moped"},[r("address-handler",{staticClass:"mx-0",attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("div",{staticClass:"vd-form-group"},[r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-group"},[r("div",{staticClass:"btn-a btn-a--success btn-a--bold btn-block btn-a--horizontal cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])],1)},JA=[];vg._withStripped=!0;var gg=E(XA,vg,JA,!1,null,null,null,null);gg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormOld.vue";const QA=gg.exports,eM="192";function tM(t){const e={CreationForm:"CreationForm",Aanvragen:"Aanvragen",Common:"Common"};let r=y.ref([]);const n={[e.CreationForm]:{title:"Oeps... er gaat iets mis!",refId:eM,notes:[{text:"Kan geen comparison ID aanmaken voor geld lenen vergelijking"}],description:"Door een technische storing kunnen we op dit moment geen premies vergelijken. Laat je gegevens achter en we helpen je zo snel mogelijk telefonisch verder!"},[e.Aanvragen]:{description:"Er gaat iets niet helemaal goed. Je kunt op dit moment niet verder met je vergelijking of aanvraag. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."},[e.Common]:{description:"Momenteel kunnen we je lening online niet berekenen. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."}},a=(l="Common")=>{t("emit-event-hub",{event:"open-quotation-modal",data:c(l)})},i=l=>{const s=u(l);r.value.push(s)},o=()=>{r.value=[]},u=l=>({text:l}),c=l=>{const{title:s,refId:d,notes:p,description:f}=n[l];return{title:s,refId:d,notes:[...p||[],...r.value],description:f}};return{QuotationType:e,openQuotationModal:a,addNote:i,resetNotes:o,convertToNote:u,renderQuotationData:c}}let vc=y.ref(!1);const yg=(t,e)=>{const{QuotationType:r,openQuotationModal:n,addNote:a,resetNotes:i}=tM(e),o=y.computed(()=>t.formOrientation===ya.Horizontal),u=f=>`${t.link}#/${f}`,c=f=>I(this,null,function*(){i();try{const h=yield je.comparisonService.create("loan",f);return yield je.comparisonService.update(h),h}catch(h){console.error(h),a(`
|
|
44
|
+
*/var Ia=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",zT=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Ia&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function VT(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function UT(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},zT))}}var YT=Ia&&window.Promise,WT=YT?VT:UT;function av(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function tn(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function Vl(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Fa(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=tn(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(r+a+n)?t:Fa(Vl(t))}function iv(t){return t&&t.referenceNode?t.referenceNode:t}var ov=Ia&&!!(window.MSInputMethodContext&&document.documentMode),sv=Ia&&/MSIE 10/.test(navigator.userAgent);function En(t){return t===11?ov:t===10?sv:ov||sv}function An(t){if(!t)return document.documentElement;for(var e=En(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&tn(r,"position")==="static"?An(r):r}function GT(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||An(t.firstElementChild)===t}function Ul(t){return t.parentNode!==null?Ul(t.parentNode):t}function Ko(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,a=r?e:t,i=document.createRange();i.setStart(n,0),i.setEnd(a,0);var o=i.commonAncestorContainer;if(t!==o&&e!==o||n.contains(a))return GT(o)?o:An(o);var u=Ul(t);return u.host?Ko(u.host,e):Ko(t,Ul(e).host)}function Mn(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 ZT(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Mn(e,"top"),a=Mn(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 uv(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 lv(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],En(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function cv(t){var e=t.body,r=t.documentElement,n=En(10)&&getComputedStyle(r);return{height:lv("Height",e,r,n),width:lv("Width",e,r,n)}}var KT=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},XT=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}}(),Nn=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function Mr(t){return yt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Yl(t){var e={};try{if(En(10)){e=t.getBoundingClientRect();var r=Mn(t,"top"),n=Mn(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"?cv(t.ownerDocument):{},o=i.width||t.clientWidth||a.width,u=i.height||t.clientHeight||a.height,c=t.offsetWidth-o,l=t.offsetHeight-u;if(c||l){var s=tn(t);c-=uv(s,"x"),l-=uv(s,"y"),a.width-=c,a.height-=l}return Mr(a)}function Wl(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=En(10),a=e.nodeName==="HTML",i=Yl(t),o=Yl(e),u=Fa(t),c=tn(e),l=parseFloat(c.borderTopWidth),s=parseFloat(c.borderLeftWidth);r&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Mr({top:i.top-o.top-l,left:i.left-o.left-s,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&a){var p=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);d.top-=l-p,d.bottom-=l-p,d.left-=s-f,d.right-=s-f,d.marginTop=p,d.marginLeft=f}return(n&&!r?e.contains(u):e===u&&u.nodeName!=="BODY")&&(d=ZT(d,e)),d}function JT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=Wl(t,r),a=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),o=e?0:Mn(r),u=e?0:Mn(r,"left"),c={top:o-n.top+n.marginTop,left:u-n.left+n.marginLeft,width:a,height:i};return Mr(c)}function dv(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(tn(t,"position")==="fixed")return!0;var r=Vl(t);return r?dv(r):!1}function fv(t){if(!t||!t.parentElement||En())return document.documentElement;for(var e=t.parentElement;e&&tn(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function Gl(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},o=a?fv(t):Ko(t,iv(e));if(n==="viewport")i=JT(o,a);else{var u=void 0;n==="scrollParent"?(u=Fa(Vl(e)),u.nodeName==="BODY"&&(u=t.ownerDocument.documentElement)):n==="window"?u=t.ownerDocument.documentElement:u=n;var c=Wl(u,o,a);if(u.nodeName==="HTML"&&!dv(o)){var l=cv(t.ownerDocument),s=l.height,d=l.width;i.top+=c.top-c.marginTop,i.bottom=s+c.top,i.left+=c.left-c.marginLeft,i.right=d+c.left}else i=c}r=r||0;var p=typeof r=="number";return i.left+=p?r:r.left||0,i.top+=p?r:r.top||0,i.right-=p?r:r.right||0,i.bottom-=p?r:r.bottom||0,i}function QT(t){var e=t.width,r=t.height;return e*r}function pv(t,e,r,n,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var o=Gl(r,n,i,a),u={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},c=Object.keys(u).map(function(p){return yt({key:p},u[p],{area:QT(u[p])})}).sort(function(p,f){return f.area-p.area}),l=c.filter(function(p){var f=p.width,h=p.height;return f>=r.clientWidth&&h>=r.clientHeight}),s=l.length>0?l[0].key:c[0].key,d=t.split("-")[1];return s+(d?"-"+d:"")}function hv(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=n?fv(e):Ko(e,iv(r));return Wl(r,a,n)}function mv(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 Xo(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 vv(t,e,r){r=r.split("-")[0];var n=mv(t),a={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,o=i?"top":"left",u=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return a[o]=e[o]+e[c]/2-n[c]/2,r===u?a[u]=e[u]-n[l]:a[u]=e[Xo(u)],a}function ja(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function eE(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(a){return a[e]===r});var n=ja(t,function(a){return a[e]===r});return t.indexOf(n)}function gv(t,e,r){var n=r===void 0?t:t.slice(0,eE(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&&av(i)&&(e.offsets.popper=Mr(e.offsets.popper),e.offsets.reference=Mr(e.offsets.reference),e=i(e,a))}),e}function tE(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=hv(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=pv(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=vv(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=gv(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function yv(t,e){return t.some(function(r){var n=r.name,a=r.enabled;return a&&n===e})}function Zl(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 rE(){return this.state.isDestroyed=!0,yv(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[Zl("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function _v(t){var e=t.ownerDocument;return e?e.defaultView:window}function bv(t,e,r,n){var a=t.nodeName==="BODY",i=a?t.ownerDocument.defaultView:t;i.addEventListener(e,r,{passive:!0}),a||bv(Fa(i.parentNode),e,r,n),n.push(i)}function nE(t,e,r,n){r.updateBound=n,_v(t).addEventListener("resize",r.updateBound,{passive:!0});var a=Fa(t);return bv(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function aE(){this.state.eventsEnabled||(this.state=nE(this.reference,this.options,this.state,this.scheduleUpdate))}function iE(t,e){return _v(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 oE(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=iE(this.reference,this.state))}function Kl(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function Xl(t,e){Object.keys(e).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&Kl(e[r])&&(n="px"),t.style[r]=e[r]+n})}function sE(t,e){Object.keys(e).forEach(function(r){var n=e[r];n!==!1?t.setAttribute(r,e[r]):t.removeAttribute(r)})}function uE(t){return Xl(t.instance.popper,t.styles),sE(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&Xl(t.arrowElement,t.arrowStyles),t}function lE(t,e,r,n,a){var i=hv(a,e,t,r.positionFixed),o=pv(r.placement,i,e,t,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return e.setAttribute("x-placement",o),Xl(e,{position:r.positionFixed?"fixed":"absolute"}),r}function cE(t,e){var r=t.offsets,n=r.popper,a=r.reference,i=Math.round,o=Math.floor,u=function(m){return m},c=i(a.width),l=i(n.width),s=["left","right"].indexOf(t.placement)!==-1,d=t.placement.indexOf("-")!==-1,p=c%2===l%2,f=c%2===1&&l%2===1,h=e?s||d||p?i:o:u,v=e?i:u;return{left:h(f&&!d&&e?n.left-1:n.left),top:v(n.top),bottom:v(n.bottom),right:h(n.right)}}var dE=Ia&&/Firefox/i.test(navigator.userAgent);function fE(t,e){var r=e.x,n=e.y,a=t.offsets.popper,i=ja(t.instance.modifiers,function(w){return w.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=i!==void 0?i:e.gpuAcceleration,u=An(t.instance.popper),c=Yl(u),l={position:a.position},s=cE(t,window.devicePixelRatio<2||!dE),d=r==="bottom"?"top":"bottom",p=n==="right"?"left":"right",f=Zl("transform"),h=void 0,v=void 0;if(d==="bottom"?u.nodeName==="HTML"?v=-u.clientHeight+s.bottom:v=-c.height+s.bottom:v=s.top,p==="right"?u.nodeName==="HTML"?h=-u.clientWidth+s.right:h=-c.width+s.right:h=s.left,o&&f)l[f]="translate3d("+h+"px, "+v+"px, 0)",l[d]=0,l[p]=0,l.willChange="transform";else{var b=d==="bottom"?-1:1,m=p==="right"?-1:1;l[d]=v*b,l[p]=h*m,l.willChange=d+", "+p}var g={"x-placement":t.placement};return t.attributes=yt({},g,t.attributes),t.styles=yt({},l,t.styles),t.arrowStyles=yt({},t.offsets.arrow,t.arrowStyles),t}function wv(t,e,r){var n=ja(t,function(u){var c=u.name;return c===e}),a=!!n&&t.some(function(u){return u.name===r&&u.enabled&&u.order<n.order});if(!a){var i="`"+e+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function pE(t,e){var r;if(!wv(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if(typeof n=="string"){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var a=t.placement.split("-")[0],i=t.offsets,o=i.popper,u=i.reference,c=["left","right"].indexOf(a)!==-1,l=c?"height":"width",s=c?"Top":"Left",d=s.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",h=mv(n)[l];u[f]-h<o[d]&&(t.offsets.popper[d]-=o[d]-(u[f]-h)),u[d]+h>o[f]&&(t.offsets.popper[d]+=u[d]+h-o[f]),t.offsets.popper=Mr(t.offsets.popper);var v=u[d]+u[l]/2-h/2,b=tn(t.instance.popper),m=parseFloat(b["margin"+s]),g=parseFloat(b["border"+s+"Width"]),w=v-t.offsets.popper[d]-m-g;return w=Math.max(Math.min(o[l]-h,w),0),t.arrowElement=n,t.offsets.arrow=(r={},Nn(r,d,Math.round(w)),Nn(r,p,""),r),t}function hE(t){return t==="end"?"start":t==="start"?"end":t}var Sv=["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"],Jl=Sv.slice(3);function Cv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Jl.indexOf(t),n=Jl.slice(r+1).concat(Jl.slice(0,r));return e?n.reverse():n}var Ql={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function mE(t,e){if(yv(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=Gl(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],a=Xo(n),i=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case Ql.FLIP:o=[n,a];break;case Ql.CLOCKWISE:o=Cv(n);break;case Ql.COUNTERCLOCKWISE:o=Cv(n,!0);break;default:o=e.behavior}return o.forEach(function(u,c){if(n!==u||o.length===c+1)return t;n=t.placement.split("-")[0],a=Xo(n);var l=t.offsets.popper,s=t.offsets.reference,d=Math.floor,p=n==="left"&&d(l.right)>d(s.left)||n==="right"&&d(l.left)<d(s.right)||n==="top"&&d(l.bottom)>d(s.top)||n==="bottom"&&d(l.top)<d(s.bottom),f=d(l.left)<d(r.left),h=d(l.right)>d(r.right),v=d(l.top)<d(r.top),b=d(l.bottom)>d(r.bottom),m=n==="left"&&f||n==="right"&&h||n==="top"&&v||n==="bottom"&&b,g=["top","bottom"].indexOf(n)!==-1,w=!!e.flipVariations&&(g&&i==="start"&&f||g&&i==="end"&&h||!g&&i==="start"&&v||!g&&i==="end"&&b),S=!!e.flipVariationsByContent&&(g&&i==="start"&&h||g&&i==="end"&&f||!g&&i==="start"&&b||!g&&i==="end"&&v),O=w||S;(p||m||O)&&(t.flipped=!0,(p||m)&&(n=o[c+1]),O&&(i=hE(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=yt({},t.offsets.popper,vv(t.instance.popper,t.offsets.reference,t.placement)),t=gv(t.instance.modifiers,t,"flip"))}),t}function vE(t){var e=t.offsets,r=e.popper,n=e.reference,a=t.placement.split("-")[0],i=Math.floor,o=["top","bottom"].indexOf(a)!==-1,u=o?"right":"bottom",c=o?"left":"top",l=o?"width":"height";return r[u]<i(n[c])&&(t.offsets.popper[c]=i(n[c])-r[l]),r[c]>i(n[u])&&(t.offsets.popper[c]=i(n[u])),t}function gE(t,e,r,n){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return t;if(o.indexOf("%")===0){var u=void 0;switch(o){case"%p":u=r;break;case"%":case"%r":default:u=n}var c=Mr(u);return c[e]/100*i}else if(o==="vh"||o==="vw"){var l=void 0;return o==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*i}else return i}function yE(t,e,r,n){var a=[0,0],i=["right","left"].indexOf(n)!==-1,o=t.split(/(\+|\-)/).map(function(s){return s.trim()}),u=o.indexOf(ja(o,function(s){return s.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=u!==-1?[o.slice(0,u).concat([o[u].split(c)[0]]),[o[u].split(c)[1]].concat(o.slice(u+1))]:[o];return l=l.map(function(s,d){var p=(d===1?!i:i)?"height":"width",f=!1;return s.reduce(function(h,v){return h[h.length-1]===""&&["+","-"].indexOf(v)!==-1?(h[h.length-1]=v,f=!0,h):f?(h[h.length-1]+=v,f=!1,h):h.concat(v)},[]).map(function(h){return gE(h,p,e,r)})}),l.forEach(function(s,d){s.forEach(function(p,f){Kl(p)&&(a[d]+=p*(s[f-1]==="-"?-1:1))})}),a}function _E(t,e){var r=e.offset,n=t.placement,a=t.offsets,i=a.popper,o=a.reference,u=n.split("-")[0],c=void 0;return Kl(+r)?c=[+r,0]:c=yE(r,i,o,u),u==="left"?(i.top+=c[0],i.left-=c[1]):u==="right"?(i.top+=c[0],i.left+=c[1]):u==="top"?(i.left+=c[0],i.top-=c[1]):u==="bottom"&&(i.left+=c[0],i.top+=c[1]),t.popper=i,t}function bE(t,e){var r=e.boundariesElement||An(t.instance.popper);t.instance.reference===r&&(r=An(r));var n=Zl("transform"),a=t.instance.popper.style,i=a.top,o=a.left,u=a[n];a.top="",a.left="",a[n]="";var c=Gl(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);a.top=i,a.left=o,a[n]=u,e.boundaries=c;var l=e.priority,s=t.offsets.popper,d={primary:function(f){var h=s[f];return s[f]<c[f]&&!e.escapeWithReference&&(h=Math.max(s[f],c[f])),Nn({},f,h)},secondary:function(f){var h=f==="right"?"left":"top",v=s[h];return s[f]>c[f]&&!e.escapeWithReference&&(v=Math.min(s[h],c[f]-(f==="right"?s.width:s.height))),Nn({},h,v)}};return l.forEach(function(p){var f=["left","top"].indexOf(p)!==-1?"primary":"secondary";s=yt({},s,d[f](p))}),t.offsets.popper=s,t}function wE(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var a=t.offsets,i=a.reference,o=a.popper,u=["bottom","top"].indexOf(r)!==-1,c=u?"left":"top",l=u?"width":"height",s={start:Nn({},c,i[c]),end:Nn({},c,i[c]+i[l]-o[l])};t.offsets.popper=yt({},o,s[n])}return t}function SE(t){if(!wv(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=ja(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 CE(t){var e=t.placement,r=e.split("-")[0],n=t.offsets,a=n.popper,i=n.reference,o=["left","right"].indexOf(r)!==-1,u=["top","left"].indexOf(r)===-1;return a[o?"left":"top"]=i[r]-(u?a[o?"width":"height"]:0),t.placement=Xo(e),t.offsets.popper=Mr(a),t}var OE={shift:{order:100,enabled:!0,fn:wE},offset:{order:200,enabled:!0,fn:_E,offset:0},preventOverflow:{order:300,enabled:!0,fn:bE,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:vE},arrow:{order:500,enabled:!0,fn:pE,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:mE,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:CE},hide:{order:800,enabled:!0,fn:SE},computeStyle:{order:850,enabled:!0,fn:fE,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:uE,onLoad:lE,gpuAcceleration:void 0}},kE={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:OE},Jo=function(){function t(e,r){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};KT(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=WT(this.update.bind(this)),this.options=yt({},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(yt({},t.Defaults.modifiers,a.modifiers)).forEach(function(o){n.options.modifiers[o]=yt({},t.Defaults.modifiers[o]||{},a.modifiers?a.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return yt({name:o},n.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&av(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return XT(t,[{key:"update",value:function(){return tE.call(this)}},{key:"destroy",value:function(){return rE.call(this)}},{key:"enableEventListeners",value:function(){return aE.call(this)}},{key:"disableEventListeners",value:function(){return oE.call(this)}}]),t}();Jo.Utils=(typeof window!="undefined"?window:global).PopperUtils,Jo.placements=Sv,Jo.Defaults=kE;const xE=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"}));function PE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ov(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 DE(t,e,r){return e&&Ov(t.prototype,e),r&&Ov(t,r),t}var RE=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(PE(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));AR(this,t.Defaults,this.constructor.Defaults,r,{type:e}),pm(this,{type:Rr(),cancelable:Rr(),nativeEvent:Rr(),target:Rr(),relatedTarget:Rr(),vueTarget:Rr(),componentId:Rr()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},MR(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return DE(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),TE='Setting prop "options" to an object is deprecated. Use the array format instead.',kv=tt({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 EE={props:kv,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(Qr(e)){var n=qo(e,this.valueField),a=qo(e,this.textField);return{value:kn(n)?r||a:n,text:rv(String(kn(a)?r:a)),html:qo(e,this.htmlField),disabled:!!qo(e,this.disabledField)}}return{value:r||e,text:rv(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return At(e)?e.map(function(n){return r.normalizeOption(n)}):Qr(e)?(gm(TE,this.$options.name),Mt(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}};var xv=function(e,r){for(var n=0;n<e.length;n++)if(Kt(e[n],r))return n;return-1};function Pv(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 AE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pv(Object(r),!0).forEach(function(n){ME(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ME(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Dv="input, textarea, select",Qo=AE({id:{type:String},name:{type:String}},tt({disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1}},"formControls"));const ec={props:Qo,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var e=this;this.$nextTick(function(){Dn(function(){var r=e.$el;e.autofocus&&Tm(r)&&(Em(r,Dv)||(r=Fl(Dv,r)),Er(r))})})}}};var tc=tt({plain:{type:Boolean,default:!1}},"formControls");const Rv={props:tc,computed:{custom:function(){return!this.plain}}};function Tv(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?Tv(Object(r),!0).forEach(function(n){In(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function In(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rc=tt(es(es({},tc),{},{value:{},checked:{},inline:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String},ariaLabel:{type:String},ariaLabelledby:{type:String}}),"formRadioCheckControls");const Ev={mixins:[Hl,Rv,Ea],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:rc,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={},In(e,"btn-".concat(this.getSize),this.getSize),In(e,"disabled",this.isDisabled),In(e,"active",this.isChecked),In(e,"focus",this.hasFocus),e)]},computedAttrs:function(){return es(es({},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){Kt(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||Er(this.$refs.input)},blur:function(){this.isDisabled||Mm(this.$refs.input)}},render:function(e){var r=this.normalizeSlot(),n={change:this.handleChange};this.isBtnMode&&(n.focus=n.blur=this.handleFocus);var a=e("input",{ref:"input",key:"input",on:n,class:{"form-check-input":this.isPlain,"custom-control-input":this.isCustom,"is-valid":this.getState===!0&&!this.isBtnMode,"is-invalid":this.getState===!1&&!this.isBtnMode,"position-static":this.isPlain&&!r},directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:this.computedAttrs,domProps:{value:this.value,checked:this.isChecked}});if(this.isBtnMode){var i=e("label",{class:this.buttonClasses},[a,r]);return this.isGroup||(i=e("div",{class:["btn-group-toggle","d-inline-block"]},[i])),i}else{var o=e();return this.isPlain&&!r||(o=e("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},r)),e("div",{class:In({"form-check":this.isPlain,"form-check-inline":this.isPlain&&this.isInline,"custom-control":this.isCustom,"custom-control-inline":this.isCustom&&this.isInline,"custom-checkbox":this.isCustom&&this.isCheck&&!this.isSwitch,"custom-switch":this.isSwitch,"custom-radio":this.isCustom&&this.isRadio},"b-custom-control-".concat(this.getSize),!!(this.getSize&&!this.isBtnMode))},[a,o])}}};var ts=tt({size:{type:String}},"formControls");const nc={props:ts,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}};var rs=tt({state:{type:Boolean,default:null}},"formState");const ac={props:rs,computed:{computedState:function(){return El(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 Av(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 $a(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Av(Object(r),!0).forEach(function(n){NE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function NE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var IE=y.extend({name:bm,mixins:[Ev,Zo,ec,nc,ac],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:tt($a($a($a($a($a({},Qo),rc),ts),rs),{},{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}}),bm),computed:{isChecked:function(){var e=this.value,r=this.computedLocalChecked;return At(r)?xv(r,e)>-1:Kt(r,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(e,r){if(!Kt(e,r)){this.$emit("input",e);var n=this.$refs.input;n&&this.$emit("update:indeterminate",n.indeterminate)}},indeterminate:function(e){this.setIndeterminate(e)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(e){var r=this,n=e.target,a=n.checked,i=n.indeterminate,o=this.value,u=this.uncheckedValue,c=this.computedLocalChecked;if(At(c)){var l=xv(c,o);a&&l<0?c=c.concat(o):!a&&l>-1&&(c=c.slice(0,l).concat(c.slice(l+1)))}else c=a?o:u;this.computedLocalChecked=c,this.$nextTick(function(){r.$emit("change",c),r.isGroup&&r.bvGroup.$emit("change",c),r.$emit("update:indeterminate",i)})},setIndeterminate:function(e){At(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit("update:indeterminate",e))}}});function Mv(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 La(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Mv(Object(r),!0).forEach(function(n){FE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function FE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jE=y.extend({name:wm,mixins:[Zo,Ev,ec,nc,ac],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:tt(La(La(La(La(La({},Qo),rc),ts),rs),{},{checked:{default:null}}),wm),computed:{isChecked:function(){return Kt(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(e,r){Kt(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 Nv(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 Fn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nv(Object(r),!0).forEach(function(n){Iv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Iv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Fv=tt(Fn(Fn(Fn(Fn(Fn(Fn({},Qo),kv),ts),rs),tc),{},{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 $E={mixins:[Zo,Ea,ec,EE,nc,ac,Rv],model:{prop:"checked",event:"input"},props:Fv,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",Iv({"btn-group":e,"btn-group-vertical":!e},"btn-group-".concat(r),!!r)]),a}},watch:{checked:function(e){Kt(e,this.localChecked)||(this.localChecked=e)},localChecked:function(e,r){Kt(e,r)||this.$emit("input",e)}},render:function(e){var r=this,n=this.isRadioGroup,a=n?jE:IE,i=this.formOptions.map(function(o,u){var c="BV_option_".concat(u);return e(a,{props:{id:r.safeId(c),value:o.value,disabled:o.disabled||!1},key:c},[e("span",{domProps:Go(o.html,o.text)})])});return e("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:{id:this.safeId(),role:n?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot(fT),i,this.normalizeSlot()])}};var LE=tt(Fv,Sm),Le=y.extend({name:Sm,mixins:[$E],provide:function(){return{bvRadioGroup:this}},props:LE,computed:{isRadioGroup:function(){return!0}}}),BE=y.extend({abstract:!0,name:ZR,props:{nodes:{type:[Array,Function]}},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){iT(this.$el)},render:function(e){var r=Zt(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return r=fr(r).filter(Boolean),r&&r.length>0&&!r[0].text?r[0]:e()}}),qE=y.extend({name:GR,mixins:[Ea],props:{disabled:{type:Boolean,default:!1},container:{type:[String,um],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(lt){var e=this.container;return Jr(e)?Fl(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 BE({el:r,parent:this,propsData:{nodes:fr(this.normalizeSlot())}})}}},updateTarget:function(){if(lt&&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=fr(this.normalizeSlot()).filter(Pn);if(r.length>0&&!r[0].text)return r[0]}return e()}}),Nt="$_bv_documentHandlers_";const HE={created:function(){var e=this;lt&&(this[Nt]={},this.$once("hook:beforeDestroy",function(){var r=e[Nt]||{};delete e[Nt],Mt(r).forEach(function(n){var a=r[n]||[];a.forEach(function(i){return Aa(document,n,i,Ar)})})}))},methods:{listenDocument:function(e,r,n){e?this.listenOnDocument(r,n):this.listenOffDocument(r,n)},listenOnDocument:function(e,r){this[Nt]&&Jr(e)&&Zt(r)&&(this[Nt][e]=this[Nt][e]||[],Il(this[Nt][e],r)||(this[Nt][e].push(r),ql(document,e,r,Ar)))},listenOffDocument:function(e,r){this[Nt]&&Jr(e)&&Zt(r)&&(Aa(document,e,r,Ar),this[Nt][e]=(this[Nt][e]||[]).filter(function(n){return n!==r}))}}};var It="$_bv_windowHandlers_";const zE={beforeCreate:function(){this[It]={}},beforeDestroy:function(){if(lt){var e=this[It];delete this[It],Mt(e).forEach(function(r){var n=e[r]||[];n.forEach(function(a){return Aa(window,r,a,Ar)})})}},methods:{listenWindow:function(e,r,n){e?this.listenOnWindow(r,n):this.listenOffWindow(r,n)},listenOnWindow:function(e,r){lt&&this[It]&&Jr(e)&&Zt(r)&&(this[It][e]=this[It][e]||[],Il(this[It][e],r)||(this[It][e].push(r),ql(window,e,r,Ar)))},listenOffWindow:function(e,r){lt&&this[It]&&Jr(e)&&Zt(r)&&(Aa(window,e,r,Ar),this[It][e]=(this[It][e]||[]).filter(function(n){return n!==r}))}}};var VE=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function UE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const YE={computed:{scopedStyleAttrs:function(){var e=VE(this.$parent);return e?UE({},e,""):{}}}};var jv=1040,ic={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},WE=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){lt&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),xa(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),Am(document.body,"modal-open")),Pa(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),Dn(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(Dr(this.baseZIndex)&<){var e=document.createElement("div");xa(e,"modal-backdrop"),xa(e,"d-none"),Tr(e,"display","none"),document.body.appendChild(e),this.baseZIndex=eT(Ra(e).zIndex,jv),document.body.removeChild(e)}return this.baseZIndex||jv},getScrollbarWidth:function(){if(Dr(this.scrollbarWidth)&<){var e=document.createElement("div");xa(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=Bl(e).width-e.clientWidth,document.body.removeChild(e)}return this.scrollbarWidth||0},updateModals:function(e){var r=this,n=this.getBaseZIndex(),a=this.getScrollbarWidth();e.forEach(function(i,o){i.zIndex=n+o,i.scrollbarWidth=a,i.isTop=o===r.modals.length-1,i.isBodyOverflowing=r.isBodyOverflowing})},resetModal:function(e){e&&(e.zIndex=this.getBaseZIndex(),e.isTop=!0,e.isBodyOverflowing=!1)},checkScrollbar:function(){var e=Bl(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;Yo(ic.FIXED_CONTENT).forEach(function(a){var i=Da(a,"paddingRight")||"";Pa(a,"data-padding-right",i),Tr(a,"paddingRight","".concat(Ho(Ra(a).paddingRight,0)+r,"px")),e._paddingChangedForModal.push(a)}),Yo(ic.STICKY_CONTENT).forEach(function(a){var i=Da(a,"marginRight")||"";Pa(a,"data-margin-right",i),Tr(a,"marginRight","".concat(Ho(Ra(a).marginRight,0)-r,"px")),e._marginChangedForModal.push(a)}),Yo(ic.NAVBAR_TOGGLER).forEach(function(a){var i=Da(a,"marginRight")||"";Pa(a,"data-margin-right",i),Tr(a,"marginRight","".concat(Ho(Ra(a).marginRight,0)+r,"px")),e._marginChangedForModal.push(a)});var n=Da(e,"paddingRight")||"";Pa(e,"data-padding-right",n),Tr(e,"paddingRight","".concat(Ho(Ra(e).paddingRight,0)+r,"px"))}},resetScrollbar:function(){var e=document.body;e._paddingChangedForModal&&e._paddingChangedForModal.forEach(function(r){Ll(r,"data-padding-right")&&(Tr(r,"paddingRight",$l(r,"data-padding-right")||""),jl(r,"data-padding-right"))}),e._marginChangedForModal&&e._marginChangedForModal.forEach(function(r){Ll(r,"data-margin-right")&&(Tr(r,"marginRight",$l(r,"data-margin-right")||""),jl(r,"data-margin-right"))}),e._paddingChangedForModal=null,e._marginChangedForModal=null,Ll(e,"data-padding-right")&&(Tr(e,"paddingRight",$l(e,"data-padding-right")||""),jl(e,"data-padding-right"))}}}),Ba=new WE;function ns(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ns=function(r){return typeof r}:ns=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ns(t)}function $v(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 Lv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$v(Object(r),!0).forEach(function(n){GE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function GE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bv(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 KE(t,e,r){return e&&Bv(t.prototype,e),r&&Bv(t,r),t}function as(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?as=Reflect.get:as=function(a,i,o){var u=XE(a,i);if(u){var c=Object.getOwnPropertyDescriptor(u,i);return c.get?c.get.call(o):c.value}},as(t,e,r||t)}function XE(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=jn(t),t!==null););return t}function JE(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&&oc(t,e)}function oc(t,e){return oc=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},oc(t,e)}function QE(t){var e=tA();return function(){var n=jn(t),a;if(e){var i=jn(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return eA(this,a)}}function eA(t,e){return e&&(ns(e)==="object"||typeof e=="function")?e:qv(t)}function qv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tA(){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 jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jn(t)}var rA=function(t){JE(r,t);var e=QE(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ZE(this,r),a=e.call(this,n,i),pm(qv(a),{trigger:Rr()}),a}return KE(r,null,[{key:"Defaults",get:function(){return Lv(Lv({},as(jn(r),"Defaults",this)),{},{trigger:null})}}]),r}(RE);function Hv(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 qa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hv(Object(r),!0).forEach(function(n){_t(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nA={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},aA=tt({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:[um,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 Lo(e)||Il(["ok","cancel","close"],e)}}},Om),sc=y.extend({name:Om,mixins:[Hl,Zo,HE,HT,zE,Ea,YE],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:aA,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:Ba.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={},_t(e,"modal-".concat(this.size),this.size),_t(e,"modal-dialog-centered",this.centered),_t(e,"modal-dialog-scrollable",this.scrollable),e),this.dialogClass]},headerClasses:function(){var e;return[(e={},_t(e,"bg-".concat(this.headerBgVariant),this.headerBgVariant),_t(e,"text-".concat(this.headerTextVariant),this.headerTextVariant),_t(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={},_t(e,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),_t(e,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),e),this.bodyClass]},footerClasses:function(){var e;return[(e={},_t(e,"bg-".concat(this.footerBgVariant),this.footerBgVariant),_t(e,"text-".concat(this.footerTextVariant),this.footerTextVariant),_t(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 fr(this.ignoreEnforceFocusSelector).filter(Pn).join(",").trim()},computedAttrs:function(){var e=this.static?{}:this.scopedStyleAttrs;return qa(qa(qa({},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=Ba.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=qT(this.$refs.content,this.checkModalOverflow.bind(this),nA))},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 rA(e,qa(qa({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=Dm(lt?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(Ba.modalsAreOpen&&this.noStacking){this.listenOnRootOnce("bv::modal::hidden",this.doShow);return}Ba.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,Dn(function(){Dn(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,Dn(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,Ba.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){Aa(r,"mouseup",a,Ar),i.target===r&&(e.ignoreBackdropClick=!0)};ql(r,"mouseup",n,Ar)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!ka(document.body,e.target)||ka(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===CT&&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||ka(r,n)||this.computeIgnoreEnforceFocusSelector&&oT(this.computeIgnoreEnforceFocusSelector,n,!0))){var a=sT(this.$refs.content),i=this.$refs,o=i.bottomTrap,u=i.topTrap;if(o&&n===o){if(Er(a[0]))return}else if(u&&n===u&&Er(a[a.length-1]))return;Er(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;lt&&Dn(function(){var r=e.$refs.modal,n=e.$refs.content,a=e.getActiveElement();if(r&&n&&!(a&&ka(n,a))){var i=e.$refs["ok-button"],o=e.$refs["cancel-button"],u=e.$refs["close-button"],c=e.autoFocusButton,l=c==="ok"&&i?i.$el||i:c==="cancel"&&o?o.$el||o:c==="close"&&u?u.$el||u:n;Er(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=Jr(e)?Fl(e):e,e&&(e=e.$el||e,Er(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(mT,{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")?{}:Go(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(Ta,this.slotScope)),o=e();if(!this.hideFooter){var u=this.normalizeSlot("modal-footer",this.slotScope);if(!u){var c=e();this.okOnly||(c=e(tv,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:Go(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=e(tv,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:Go(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));u=[c,l]}o=e("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[u])}var s=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[r,i,o]),d=e(),p=e();this.isVisible&&!this.noEnforceFocus&&(d=e("span",{ref:"topTrap",attrs:{tabindex:"0"}}),p=e("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,s,p]),h=e("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);h=e("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[h]);var v=e();return!this.hideBackdrop&&this.isVisible&&(v=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),v=e(dT,{props:{noFade:this.noFade}},[v]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[h,v])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(qE,[this.makeModal(e)])}});const iA=y.defineComponent({name:"BikeForm",components:{SimpleCard:W,DefaultSelect:se,DefaultInput:ne,ZipcodeInput:Cn,BirthdateInput:Ce,ErrorHandler:G,BFormRadioGroup:Le},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:D.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=Sl(t,e);return{bikeState:Tt,userState:k,bikeKinds:Cl,bikeConditions:Ol,errors:z,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var zv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("default-select",{class:{"select-empty-value":!e.bikeState.kind},attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Maak een keuze",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},oA=[];zv._withStripped=!0;var Vv=E(iA,zv,oA,!1,null,null,null,null);Vv.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeForm.vue";const sA=Vv.exports,uA=y.defineComponent({name:"BikeFormHorizontal",components:{SimpleCard:W,DefaultSelect:se,DefaultInput:ne,ZipcodeInput:Cn,BirthdateInput:Ce,ErrorHandler:G,BFormRadioGroup:Le},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:D.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=Sl(t,e);return{bikeState:Tt,userState:k,bikeKinds:Cl,bikeConditions:Ol,errors:z,hasNewDesign:$,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Uv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-bike"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[r("ErrorHandler",{attrs:{name:"kind","errors-data":[{rule:"required",text:"Selecteer je fiets"}]}})]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}}),r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}}),r("div",{staticClass:"vd-form-group vd-radio-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"condition"}},[e._v(" Gekocht als "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),r("b-form-radio-group",{staticClass:"vd-radio-buttons mt-md-3 mt-xl-0",attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),r("ErrorHandler",{attrs:{"errors-data":[{rule:e.hasBikeConditionError,text:"Is je fiets nieuw of tweedehands gekocht?"}]}})],1),r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[r("ErrorHandler",{attrs:{name:"price","errors-data":[{rule:"required",text:"Vul de aankoopprijs in (afgerond bedrag)"}]}})],1)],2),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer"},[e._v(" Vergelijken ")])])],1)])])},lA=[];Uv._withStripped=!0;var Yv=E(uA,Uv,lA,!1,null,null,null,null);Yv.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormHorizontal.vue";const cA=Yv.exports,dA=y.defineComponent({name:"BikeFormOld",components:{SimpleCard:W,DefaultSelect:se,DefaultInput:ne,ZipcodeInput:Cn,BirthdateInput:Ce,ErrorHandler:G,BFormRadioGroup:Le},props:{link:{type:String,required:!0},formLocation:{type:String,required:!1,default:D.isBeforeFlow},title:{type:String,default:"Fietsverzekering vergelijken"},showTitle:{type:Boolean,default:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String}},setup(t,{emit:e}){const{hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}=Sl(t,e);return{bikeState:Tt,userState:k,bikeKinds:Cl,bikeConditions:Ol,errors:z,hasNewDesign:$,hasBikeConditionError:r,checkBikeCondition:n,validateBeforeSubmit:a}}});var Wv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-card",class:{[e.classes]:!!e.classes}},[r("form",{ref:"bike-form",attrs:{action:e.link,method:"GET"},on:{submit:function(n){return n.preventDefault(),e.validateBeforeSubmit.apply(null,arguments)}}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content"},[r("div",{staticClass:"vd-form-group"},[r("default-select",{attrs:{id:"kind",label:"Soort fiets",name:"kind",placeholder:"Selecteer je fiets",options:e.bikeKinds,"is-required":""},scopedSlots:e._u([{key:"error-messages",fn:function(){return[e.errors.has("kind:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Selecteer je fiets ")]):e._e()]},proxy:!0}]),model:{value:e.bikeState.kind,callback:function(n){e.$set(e.bikeState,"kind",e._n(n))},expression:"bikeState.kind"}})],1),r("div",{staticClass:"vd-form-group"},[r("zipcode-input",{attrs:{"is-required":""},model:{value:e.userState.zipcode,callback:function(n){e.$set(e.userState,"zipcode",n)},expression:"userState.zipcode"}})],1),r("div",{staticClass:"vd-form-group"},[e._m(0),r("b-form-radio-group",{attrs:{options:e.bikeConditions,"text-field":"label",name:"condition"},on:{change:e.checkBikeCondition},model:{value:e.bikeState.condition,callback:function(n){e.$set(e.bikeState,"condition",n)},expression:"bikeState.condition"}}),e.hasBikeConditionError?r("p",{staticClass:"vd-form-error"},[e._v(" Is je fiets nieuw of tweedehands gekocht? ")]):e._e()],1),r("div",{staticClass:"vd-form-group"},[r("default-input",{attrs:{id:"price",mask:"####","has-prepend":!0,"prepend-text":"€",name:"price",label:"Aankoopprijs",placeholder:"bv. 1 000",type:"text","is-required":""},model:{value:e.bikeState.price,callback:function(n){e.$set(e.bikeState,"price",n)},expression:"bikeState.price"}},[r("template",{slot:"error-messages"},[e.errors.has("price:required")?r("p",{staticClass:"vd-form-error"},[e._v(" Vul de aankoopprijs in (afgerond bedrag) ")]):e._e()])],2)],1),r("button",{staticClass:"btn-a btn-a--success btn-a--bold btn-block mt-2"},[e._v(" Vergelijken ")])])])])},fA=[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("*")])])}];Wv._withStripped=!0;var Gv=E(dA,Wv,fA,!1,null,null,null,null);Gv.options.__file="/Users/mac/Work/comparison-forms/src/insurances/bike/components/forms/BikeFormOld.vue";const pA=Gv.exports,hA=t=>{const e=t.find(l=>l.type==="bezoekadres"),{huisnummer:r,huisletter:n="",huisnummerToevoeging:a="",plaats:i,postcode:o,straatnaam:u}=e;return{houseNumber:r,houseNumberAddition:n||a,city:i,zipCode:o,streetName:u}},uc=()=>{const t=Et.companyData,e=t._embedded.hoofdvestiging.adressen,r=hA(e),n={name:t.naam,kvkNumber:t.kvkNummer,industry:t.sbiIndustryId,numberOfEmployees:t.totaalWerkzamePersonen,legalForm:t._embedded.eigenaar.rechtsvorm};return Ct(Ct({},n),r)},mA=()=>{const t={name:"car",data:Ie},e={name:"companyData",data:uc()};return[t,e]};function vA(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 $n(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 lc=y.ref(!1),gA=(t,e)=>{const r=y.ref(!1);let n=y.ref(!1);const{submitFormAndUpdateFormData:a,submitFormAndCreateComparison:i,removeSessionState:o,openQuotationModal:u}=ut(e),c=()=>`${t.link}#/<<COMPARISONID>>`,l=()=>{Object.assign(Ie,t.insuranceState)},s=()=>{lc.value=!1},d=()=>{lc.value=!0},p=()=>I(this,null,function*(){return r.value=!Object.keys(Et.companyData).length||!Et.companyData.naam,(yield Ge(["license","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!lc.value&&!r.value});function f(){return I(this,null,function*(){try{if(yield p())if(t.formLocation===D.isOnCoveragePage){const v=uc();a({companyData:v,carState:Ie})}else yield i("car-business",mA(),c())}catch(v){h(v)}})}const h=v=>{console.error(v);const b=uc();J.refId="192",J.notes.push({text:"Kan geen comparison ID aanmaken voor zakelijk autoverzekering vergelijking"}),J.notes.push({text:`Kenteken: ${Ie.LicensePlate} | Postcode: ${b.zipCode} | Huisnummer: ${b.houseNumber} | Huisnummer toevoeging: ${b.houseNumberAddition}`}),J.notes=$n(J.notes),u()};return y.onMounted(()=>{n.value=!0,t.formLocation===D.isOnCoveragePage&&l(),t.formLocation===D.isBeforeFlow&&o("car-business-storage","car-business-path")}),{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:f}};function yA(t){return t=t.split("-").join(""),t}function _A(t,e){return t.split("").reduce((r,n,a)=>(n===e&&r.push(a),r),[])}function bA(t){const e=parseInt(t);return!!(e==0||e&&!isNaN(e))}const cc=["XX-99-XX","99-99-XX","99-XX-XX","XX-XX-99","99-XX-99","XX-99-99","99-XXX-9","XX-999-X","X-999-XX","9-XXX-99","XXX-99-X","X-99-XXX","9-XX-999","999-XX-9"];function is(t){let e="";if(e=yA(t),e.length>=6){const r=SA(e).join("");let n=[];for(let a=0;a<cc.length;a++){const i=cc[a],o=i.split("-").join("");if(o===r){n=o.split(""),n=wA(i,n,e);break}if(cc.length===a+1)return"no-template-found"}if(n.length===8)return n.join("")}return e}function wA(t,e,r){return e.map((n,a)=>e[a]=r[a]),_A(t,"-").forEach(n=>e.splice(n,0,"-")),e}function SA(t){let e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&(bA(n)?e=[...e,"9"]:e=[...e,"X"])}return e}const CA=y.defineComponent({name:"LicensePlate",components:{ErrorHandler:G},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),o=y.ref(!1),u=y.ref(!1),c=y.ref(!1);const l={motor:"fa-motorcycle",car:"fa-car",brommobiel:"fa-car-side"},s=y.computed(()=>[{rule:"required",text:"Dit veld is verplicht"},{rule:"minlength",text:"Kenteken is incorrect"},{rule:p.value,text:"Kenteken is incorrect"},{rule:u.value,text:"Kenteken is incorrect"},{rule:o.value,text:"Kenteken onbekend"},{rule:i.value,text:`Het ingevoerde kenteken is geen ${t.insuranceDutchNaming.toLowerCase()}`},{rule:!a.value&&h(t.value)&&!n.value.VehicleType&&Object.keys(n.value).length!==0,text:"Voertuig onbekend - Voer ander kenteken in of neem contact op"}]),d=y.computed(()=>o.value||i.value||p.value),p=y.computed(()=>is(r.value)==="no-template-found"&&h(r.value)),f=y.computed(()=>!a.value&&n.value.Brand&&n.value.Model&&t.vehicleTypes.includes(n.value.VehicleType)&&t.value.length>=6&&!z.has(t.name)&&!p.value&&!u.value),h=O=>O.length===8,v=O=>{c.value=!0,e("focus")},b=O=>{c.value=!1,e("blur");let T=O.srcElement.name;const j=oe.fields.find({name:T});(j!==null||j!==void 0&&j)&&oe.validate(j.name)},m=(O,T,j)=>{T==="input"&&(o.value=!1,u.value=!1),O||(i.value=!1),O.length<8&&(n.value={});let L=is(O);if(L==="no-template-found"){r.value=O,oe.validate(t.name),e(T,O),e("on-error");return}e(T,L.toUpperCase()),r.value=L.toUpperCase(),h(L)&&T==="input"&&(oe.validate(t.name),j&&S(L.toUpperCase()))},g=O=>{u.value=!1;let T=(O.clipboardData||window.clipboardData).getData("text");if(T=T.trim(),typeof T=="string"&&T){let j=is(T);if(j==="no-template-found"){r.value=T,e("input",T),e("on-error"),O.preventDefault();return}e("input",j.toUpperCase()),r.value=j.toUpperCase(),e("license-correct"),h(j)&&(oe.validate(t.name),S(j.toUpperCase())),O.preventDefault()}},w=(O,T)=>I(this,null,function*(){const j=O.toLocaleLowerCase(),L=yield je.dataService.findVehicle(T,j);return L||null}),S=O=>I(this,null,function*(){try{F.value=!0,a.value=!0,i.value=!1,o.value=!1,n.value={};let T=yield w(t.vehicleType,O);if(Array.isArray(T)&&!T.length){a.value=!1,o.value=!0,oe.validate("unknownLicensePlateHiddenField");return}if(console.warn(t.vehicleTypes),t.vehicleTypes.length!==0&&!t.vehicleTypes.includes(T.VehicleType)){e("incorrect-vehicle-type"),i.value=!0,a.value=!1,oe.validate("incorrectLicensePlateHiddenField"),oe.validate("noLicensePlateHiddenField"),oe.validate("unknownLicensePlateHiddenField");return}n.value=T,e("on-vehicle-information-update",T),a.value=!1}catch(T){u.value=!0,a.value=!1,oe.validate("unknownLicensePlateHiddenField"),console.error(T)}finally{F.value=!1}});return y.onMounted(()=>{y.nextTick(()=>{if(r.value=t.value,!r.value)return;let O=!0;h(is(r.value))&&Object.keys(t.propVehicleInformation).length!==0&&(n.value=t.propVehicleInformation,oe.validate(t.name),O=!1),m(r.value,"input",O)})}),{errors:z,userState:k,motorState:xr,hasNewDesign:$,isRequestIsHandling:F,license:r,vehicleInformation:n,isLicenseUnknown:o,isLicenseTemplateIncorrect:p,isRetrievingVehicleInformation:a,incorrectLicensePlate:i,isLicensePlateCantBeRetrieved:u,vehicleIcons:l,errorsData:s,isVehicleInfoShowed:f,isFocused:c,hasLicensePlateAnyErrors:d,isLicenseFull:h,resetFieldValidation:v,validateField:b,onPasteEvent:g,retrieveLicensePlateInformation:S,setValue:m}}}),OA="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 Zv=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v(" *")])]),r("div",{staticClass:"license",class:[{license_disabled:e.disabled}]},[e.hasNewDesign?r("div",{staticClass:"license__wrapper",class:[{license__wrapper_error:e.errors.has(e.name)||e.hasLicensePlateAnyErrors},{license__wrapper_focus:e.isFocused}]},[r("div",{staticClass:"license__country"}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]):e._e(),e.hasNewDesign?e._e():r("div",{staticClass:"license__country"}),e.hasNewDesign?e._e():r("input",{directives:[{name:"model",rawName:"v-model",value:e.license,expression:"license"},{name:"validate",rawName:"v-validate",value:"required|minlength:8",expression:"'required|minlength:8'"}],ref:"license-field",staticClass:"vd-form-group__input form-control license__input",class:{"vd-form-group__input--error":e.errors.has(e.name)},attrs:{id:e.id,maxlength:"8",placeholder:e.placeholder,name:e.name,type:"text",autocomplete:"off","data-vv-validate-on":"none"},domProps:{value:e.license},on:{input:[function(n){n.target.composing||(e.license=n.target.value)},function(n){return e.setValue(n.target.value,"input",!0)}],change:function(n){return e.setValue(n.target.value,"change",!0)},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"]))return null;n.preventDefault()},paste:e.onPasteEvent,focus:e.resetFieldValidation,blur:e.validateField}})]),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"incorrectLicensePlateHiddenField"},domProps:{value:e.incorrectLicensePlate}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"noLicensePlateHiddenField"},domProps:{value:!e.isRetrievingVehicleInformation&&e.isLicenseFull(e.value)&&!e.vehicleInformation.VehicleType&&Object.keys(e.vehicleInformation).length!==0}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"unknownLicensePlateHiddenField"},domProps:{value:e.isLicenseUnknown}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicenseTemplateIncorrectHiddenField"},domProps:{value:e.isLicenseTemplateIncorrect}}),r("input",{directives:[{name:"validate",rawName:"v-validate",value:{isValue:"false"},expression:"{ isValue: 'false' }"}],attrs:{type:"hidden",name:"isLicensePlateCantBeRetrievedHiddenField"},domProps:{value:e.isLicensePlateCantBeRetrieved}}),e._t("errors",function(){return[r("ErrorHandler",{attrs:{name:e.name,"errors-data":e.errorsData}})]},{errors:e.errors,incorrectLicenseplate:e.incorrectLicensePlate}),e._t("vehicle-information",function(){return[e.isVehicleInfoShowed?r("div",{staticClass:"vd-form-vehicle-name"},[e.vehicleType!=="moped"?r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleIcons[e.vehicleType]]}):r("i",{staticClass:"fas mr-1",class:[e.hasNewDesign?"vd-tip-icon":"text-primary mt-1",e.vehicleInformation.Model==="Brommobiel"?e.vehicleIcons.brommobiel:""]},[e.vehicleInformation.Model!=="Brommobiel"?r("img",{attrs:{src:OA,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:"license-loader"},[r("span",{staticClass:"license-loader__icon",attrs:{role:"status","aria-hidden":"true"}}),r("span",{staticClass:"license-loader__text"},[e._v(" Voertuig gegevens ophalen... ")])]):e._e()]},{loading:e.isRetrievingVehicleInformation,vehicleInformation:e.vehicleInformation})],2)},kA=[];Zv._withStripped=!0;var Kv=E(CA,Zv,kA,!1,null,null,null,null);Kv.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/LicensePlate.vue";const Xt=Kv.exports;function dc(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function xA(t){return(...e)=>!t(...e)}function PA(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function Xv(t,e,r,n){return t.filter(a=>PA(n(a,r),e))}function DA(t){return t.filter(e=>!e.$isLabel)}function fc(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 RA(t,e,r,n,a){return i=>i.map(o=>{if(!o[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const u=Xv(o[r],t,e,a);return u.length?{[n]:o[n],[r]:u}:[]})}const Jv=(...t)=>e=>t.reduce((r,n)=>n(r),e),TA={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 dc(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):Xv(r,e,this.label,this.customLabel):r=this.groupValues?fc(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(xA(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 Jv(RA(e,r,this.groupValues,this.groupLabel,this.customLabel),fc(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Jv(fc(this.groupValues,this.groupLabel),DA)(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(dc(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;let e=this.customLabel(t,this.label);return dc(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const r=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],n=this.internalValue.filter(a=>r.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("input",n,this.id)}else{let r=e[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&r.splice(this.max-this.internalValue.length),this.$emit("select",r,this.id),this.$emit("input",this.internalValue.concat(r),this.id)}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const r=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const n=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("input",n,this.id)}else this.$emit("input",null,this.id);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el!="undefined"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search!="undefined"&&this.$refs.search.blur():typeof this.$el!="undefined"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window=="undefined")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},{data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer,"vd-multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["vd-multiselect__option--disabled",{"vd-multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["vd-multiselect__option--group",{"vd-multiselect__option--highlight":t===this.pointer&&this.showPointer},{"vd-multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"vd-multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}}],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)&&!this.search},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.value&&this.value.length?this.search?(this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1),""):this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};var Qv=function(){var e=this,r=e._self._c;return r("div",{staticClass:"vd-multiselect",class:{"vd-multiselect--active":e.isOpen,"vd-multiselect--disabled":e.disabled,"vd-multiselect--above":e.isAbove,"vd-multiselect--has-options-group":e.hasOptionGroup},attrs:{tabindex:e.searchable?-1:e.tabindex,role:"combobox","aria-owns":"listbox-"+e.id},on:{focus:function(n){return e.activate()},blur:function(n){e.searchable||e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])||n.target!==n.currentTarget?null:(n.preventDefault(),e.pointerBackward())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")&&e._k(n.keyCode,"tab",9,n.key,"Tab")||(n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()}}},[e._t("caret",function(){return[r("div",{staticClass:"vd-multiselect__select",on:{mousedown:function(n){return n.preventDefault(),n.stopPropagation(),e.toggle()}}})]},{toggle:e.toggle}),e._t("clear",null,{search:e.search}),r("div",{ref:"tags",staticClass:"vd-multiselect__tags"},[e._t("selection",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"vd-multiselect__tags-wrap"},[e._l(e.visibleValues,function(n,a){return[e._t("tag",function(){return[r("span",{key:a,staticClass:"vd-multiselect__tag"},[r("span",{domProps:{textContent:e._s(e.getOptionLabel(n))}}),r("i",{staticClass:"vd-multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.removeElement(n))},mousedown:function(i){return i.preventDefault(),e.removeElement(n)}}})])]},{option:n,search:e.search,remove:e.removeElement})]})],2),e.internalValue&&e.internalValue.length>e.limit?[e._t("limit",function(){return[r("strong",{staticClass:"vd-multiselect__strong",domProps:{textContent:e._s(e.limitText(e.internalValue.length-e.limit))}})]})]:e._e()]},{search:e.search,remove:e.removeElement,values:e.visibleValues,isOpen:e.isOpen}),r("transition",{attrs:{name:"vd-multiselect__loading"}},[e._t("loading",function(){return[r("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"vd-multiselect__spinner"})]})],2),e.searchable?r("input",{ref:"search",staticClass:"vd-multiselect__input",style:e.inputStyle,attrs:{name:e.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,disabled:e.disabled,tabindex:e.tabindex,"aria-controls":"listbox-"+e.id},domProps:{value:e.search},on:{input:function(n){return e.updateSearch(n.target.value)},focus:function(n){return n.preventDefault(),e.activate()},blur:function(n){return n.preventDefault(),e.deactivate()},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.deactivate()},keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.pointerForward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.pointerBackward())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"])?null:(n.stopPropagation(),e.removeLastElement())}],keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")||(n.preventDefault(),n.stopPropagation(),n.target!==n.currentTarget)?null:e.addPointerElement(n)}}}):e._e(),e.isSingleLabelVisible?r("span",{staticClass:"vd-multiselect__single",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("singleLabel",function(){return[[e._v(e._s(e.currentOptionLabel))]]},{option:e.singleValue})],2):e._e(),e.isPlaceholderVisible?r("span",{staticClass:"vd-multiselect__placeholder",on:{mousedown:function(n){return n.preventDefault(),e.toggle.apply(null,arguments)}}},[e._t("placeholder",function(){return[e._v(" "+e._s(e.placeholder)+" ")]})],2):e._e()],2),r("transition",{attrs:{name:"multiselect"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen&&!e.loading,expression:"isOpen && !loading"}],staticClass:"vd-multiselect__tab-wrapper",style:{borderColor:e.filteredOptions.length!==0||e.options.length!==0||e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading||e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading?"":"transparent"}},[r("div",{ref:"list",staticClass:"vd-multiselect__content-wrapper",style:{maxHeight:103*5+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(n){n.preventDefault()}}},[r("ul",{staticClass:"vd-multiselect__content",style:e.contentStyle,attrs:{role:"listbox",id:"listbox-"+e.id}},[e._t("beforeList"),e.multiple&&e.max===e.internalValue.length?r("li",[r("span",{staticClass:"vd-multiselect__option"},[e._t("maxElements",function(){return[e._v("Maximum of "+e._s(e.max)+" options selected. First remove a selected option to select another.")]})],2)]):e._e(),!e.max||e.internalValue.length<e.max?e._l(e.filteredOptions,function(n,a){return r("li",{key:a,staticClass:"vd-multiselect__element",attrs:{id:e.id+"-"+a,role:n&&(n.$isLabel||n.$isDisabled)?null:"option"}},[n&&(n.$isLabel||n.$isDisabled)?e._e():r("span",{staticClass:"vd-multiselect__option",class:e.optionHighlight(a,n),attrs:{"data-select":n&&n.isTag?e.tagPlaceholder:e.selectLabelText,"data-selected":e.selectedLabelText,"data-deselect":e.deselectLabelText},on:{click:function(i){return i.stopPropagation(),e.select(n)},mouseenter:function(i){return i.target!==i.currentTarget?null:e.pointerSet(a)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2),n&&(n.$isLabel||n.$isDisabled)?r("span",{staticClass:"vd-multiselect__option",class:e.groupHighlight(a,n),attrs:{"data-select":e.groupSelect&&e.selectGroupLabelText,"data-deselect":e.groupSelect&&e.deselectGroupLabelText},on:{mouseenter:function(i){if(i.target!==i.currentTarget)return null;e.groupSelect&&e.pointerSet(a)},mousedown:function(i){return i.preventDefault(),e.selectGroup(n)}}},[e._t("option",function(){return[r("span",[e._v(e._s(e.getOptionLabel(n)))])]},{option:n,search:e.search,index:a})],2):e._e()])}):e._e(),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoResults&&e.filteredOptions.length===0&&e.search&&!e.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noResult",function(){return[e._v("No elements found. Consider changing the search query.")]},{search:e.search})],2)]),r("li",{directives:[{name:"show",rawName:"v-show",value:e.showNoOptions&&(e.options.length===0||e.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!e.loading,expression:"showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)"}]},[r("span",{staticClass:"vd-multiselect__option"},[e._t("noOptions",function(){return[e._v("List is empty.")]})],2)]),e._t("afterList")],2)])])])],2)},EA=[];Qv._withStripped=!0;var eg=E(TA,Qv,EA,!1,null,null,null,null);eg.options.__file="/Users/mac/Work/comparison-forms/src/components/common/extended/Multiselect.vue";const AA=eg.exports,MA=y.defineComponent({name:"CompaniesListSelect",components:{ErrorHandler:G,Multiselect:AA},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),o=y.ref([]),u=y.ref(!1),c=y.ref(null),l=y.ref(!1),s=y.ref(!1),d=y.ref(!1);const p=()=>{Object.keys(a).map(S=>{a[S]=""})},f=()=>{p(),n("update-company-data",a),l.value=!1},h=()=>{l.value=!0},v=()=>{d.value=!1,s.value=!0},b=()=>{s.value=!1};y.watch(i,S=>I(this,null,function*(){S&&S.kvkNummer&&(F.value=!0,yield je.dataService.getProfileInfo(S.kvkNummer).then(O=>{h();let T=O._embedded.hoofdvestiging.adressen.find(L=>L.type==="bezoekadres"||L.type==="correspondentieadres"),j=T.huisletter||"";j+=T.huisnummerToevoeging||"",a.kvk_number=O.kvkNummer,a.company_name=O.naam,a.legal_entity=O._embedded.eigenaar.rechtsvorm,a.rsin=O._embedded.eigenaar.rsin||null,a.branch_number=O._embedded.hoofdvestiging.vestigingsnummer,a.postcode=T.postcode||null,a.city=T.plaats||null,a.street=T.straatnaam||null,a.house_number=T.huisnummer||null,a.house_number_addition=j||null,a.full_address=T.volledigAdres||null,a.sbi_activities=O.sbiActiviteiten.map(L=>({code:L.sbiCode,description:L.sbiOmschrijving,is_main:L.indHoofdactiviteit==="Ja"})),n("update-company-data",O)}).catch(O=>{console.error(O)}).finally(()=>{F.value=!1}))}));const m=S=>{F.value=!0,u.value=!0,S.aantal=30,je.dataService.searchBusinessInfoV2({companyName:S.naam,kvkNumber:S.kvkNummer},1,S.aantal).then(O=>{u.value=!1;let T=O.resultaten;T.length>0?o.value=T.filter(j=>j.type==="hoofdvestiging"||j.type==="nevenvestiging").map(j=>(j.name=`${j.naam}`,j)):o.value=[]}).catch(O=>{o.value=[],u.value=!1}).finally(()=>{F.value=!1})},g=S=>{!S.length&&o.value.length&&(o.value=[]),S.length>2&&(clearTimeout(c.value),c.value=setTimeout(()=>{S.length==8&&/^\d+$/.test(S)?m({kvkNummer:S}):w(S)?m(w(S)):m({naam:S})},700))},w=S=>{if(S.length>7){let O=S.split(" ");if(O.length>1&&/^([0-9]{4}[A-Z]{2}|[0-9]{4}[a-z]{2})$/.test(O[0])){let T={postcode:O[0],huisnummer:O[1]};return O[2]&&(T.huisnummerToevoeging=O[2]),T}}return null};return{isRequestIsHandling:F,companyName:i,companies:o,businessInfoModel:a,isOptionSelected:l,isDropdownFocused:s,isErrorShowed:d,isLoading:u,attrs:e,listeners:r,findCompanies:g,selectOption:h,removeOption:f,setDropdownOpened:v,setDropdownClosed:b}}});var tg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("multiselect",{class:{"vd-multiselect__chosen-option":e.isOptionSelected&&!e.isDropdownFocused},attrs:{options:e.companies,label:"name","track-by":"name",multiple:!1,"options-limit":30,placeholder:"Typ je bedrijfsnaam of KvK-nummer","selected-label":"Selected","select-label":"Select","preserve-search":!0,loading:e.isLoading,"internal-search":!1,deselectLabel:"",selectedLabel:"",hideSelected:!0,openDirection:"bottom",showNoOptions:!1},on:{"search-change":e.findCompanies,remove:e.removeOption,open:e.setDropdownOpened,close:e.setDropdownClosed},scopedSlots:e._u([{key:"option",fn:function({option:n}){return[r("div",{staticClass:"vd-multiselect__option-external-wrapper"},[r("div",{staticClass:"vd-multiselect__option-wrapper"},[r("p",[r("b",[e._v(e._s(n.naam))]),r("br")]),r("p",[e._v(e._s("Kvk: "+n.kvkNummer)),r("br")]),r("p",[e._v(e._s(n.adres.binnenlandsAdres.plaats+", "+n.adres.binnenlandsAdres.straatnaam)),r("br")])])])]}}]),model:{value:e.companyName,callback:function(n){e.companyName=n},expression:"companyName"}},[r("template",{slot:"noResult"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je KvK-nummer.")])]),r("template",{slot:"noOptions"},[r("p",{staticClass:"vd-multiselect__option-non-result mb-0"},[e._v("Bedrijfsnaam of KVK-nummer")])])],2),e.isOptionSelected&&!e.isDropdownFocused?r("div",{staticClass:"vd-multiselect__address-info mt-1"},[r("i",{staticClass:"fas fa-info-circle vd-tip-icon vd-tip-icon_additional-text"}),r("span",[e._v("Kvk: "+e._s(e.businessInfoModel.kvk_number)+" "+e._s(e.businessInfoModel.full_address))])]):e._e(),r("error-handler",{attrs:{"errors-data":[{rule:!e.isOptionSelected&&!e.isDropdownFocused&&e.hasCompaniesListValidationError,text:"Bedrijfsnaam of KVK-nummer is verplicht"}]}})],1)},NA=[];tg._withStripped=!0;var rg=E(MA,tg,NA,!1,null,null,null,null);rg.options.__file="/Users/mac/Work/comparison-forms/src/components/common/inputs/CompaniesListSelect.vue";const ng=rg.exports,IA=y.defineComponent({name:"Loader",props:{isActive:{type:Boolean,required:!1,default:!0},small:{type:Boolean,required:!1,default:!1}}});var ag=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()},FA=[];ag._withStripped=!0;var ig=E(IA,ag,FA,!1,null,"3514e0e8",null,null);ig.options.__file="/Users/mac/Work/comparison-forms/src/components/common/Loader.vue";const pc=ig.exports,jA=y.defineComponent({name:"BusinessCarForm",components:{SimpleCard:W,LicensePlate:Xt,CompaniesListSelect:ng,Loader:pc},props:{link:{type:String,required:!1},classes:{required:!1,type:String,default:""},title:{type:String,required:!1,default:"Zakelijke autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},buttonOptions:{required:!1},insuranceState:{required:!1,default(){return{}}},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=gA(t,e);return{businessState:Et,carState:Ie,errors:z,isRequestIsHandling:F,hasCompaniesListValidationError:r,isMultiselectReady:n,onLicenseInput:a,onLicenseError:i,updateCompanyData:c=>{Et.companyData=Ct({},c)},validateBeforeSubmit:o}}});var og=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license","vd-form-version":"1"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("label",{staticClass:"vd-form-group__label",attrs:{for:"search-select-input"}},[e._v(" Selecteer de naam van je bedrijf "),r("span",{staticClass:"text-danger mr-3 mt-2"},[e._v("*")])]),e.isMultiselectReady?r("companies-list-select",{attrs:{"has-companies-list-validation-error":e.hasCompaniesListValidationError},on:{"update-company-data":e.updateCompanyData},model:{value:e.businessState.companyData,callback:function(n){e.$set(e.businessState,"companyData",n)},expression:"businessState.companyData"}}):r("loader")],1)],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},$A=[];og._withStripped=!0;var sg=E(jA,og,$A,!1,null,null,null,null);sg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/business/businessCar/components/BusinessCarForm.vue";const LA=sg.exports,BA=()=>[{name:"car",data:Object.assign(Ie,{LicensePlate:Ie.LicensePlate,Brand:Ie.Brand,Model:Ie.Model,Type:Ie.Type,VehicleType:Ie.VehicleType,ManufacturingYear:Ie.ManufacturingYear})},{name:"comparison",data:{ClaimFreeYears:"0",Coverage:null,Deductables:300,Kilometrage:"12000"}}],ug=y.ref(!1),hc=y.ref(!1),mc=(t,e)=>{const{submitFormAndUpdateFormData:r,submitFormAndCreateComparison:n,setInitialUserInfoInStore:a,removeSessionState:i,openQuotationModal:o}=ut(e),u=()=>`${t.link}#/<<COMPARISONID>>/dekkingen/`,c=()=>I(this,null,function*(){return(yield Ge(["license","zipcode","housenumber","housenumberaddition","birthdate","isLicenseTemplateIncorrectHiddenField","unknownLicensePlateHiddenField","noLicensePlateHiddenField","incorrectLicensePlateHiddenField","isLicensePlateCantBeRetrievedHiddenField"]))&&!ug.value&&Ie.VehicleType==="Car"&&!hc.value}),l=()=>{Object.assign(Ie,t.insuranceState)},s=()=>{hc.value=!1},d=()=>{hc.value=!0},p=()=>I(this,null,function*(){try{if(yield c())if(t.formLocation===D.isOnResultPage)r({userInformation:k,carState:Ie});else{const h=BA();yield n("car",h,u())}}catch(h){f(h)}}),f=h=>{console.error(h),J.refId="192",J.notes.push({text:"Kan geen comparison ID aanmaken voor autoverzekering vergelijking"}),J.notes.push({text:`Kenteken: ${Ie.LicensePlate} | Postcode: ${k.zipcode} | Huisnummer: ${k.houseNumber} | Huisnummer toevoeging: ${k.houseNumberAddition} | Geboortedatum: ${k.birthdate}`}),J.notes=$n(J.notes),o()};return y.onMounted(()=>{t.formLocation===D.isOnResultPage&&(a(t),l()),t.formLocation===D.isBeforeFlow&&i("car-storage","car-path")}),{houseError:ug,onLicenseInput:s,onLicenseError:d,validateBeforeSubmit:p}};var lg={exports:{}};const qA=Un(xE);(function(t,e){(function(r,n){t.exports=n(qA)})(_,function(r){function n(u,c,l){u&&c&&l&&(document.addEventListener?u.addEventListener(c,l,!1):u.attachEvent("on"+c,l))}function a(u,c,l){u&&c&&(document.removeEventListener?u.removeEventListener(c,l,!1):u.detachEvent("on"+c,l))}r=r&&r.hasOwnProperty("default")?r.default:r;var i={props:{tagName:{type:String,default:"span"},trigger:{type:String,default:"hover",validator:function(u){return["clickToOpen","click","clickToToggle","hover","focus"].indexOf(u)>-1}},delayOnMouseOver:{type:Number,default:10},delayOnMouseOut:{type:Number,default:10},disabled:{type:Boolean,default:!1},content:String,enterActiveClass:String,leaveActiveClass:String,boundariesSelector:String,reference:{},forceShow:{type:Boolean,default:!1},dataValue:{default:null},appendToBody:{type:Boolean,default:!1},visibleArrow:{type:Boolean,default:!0},transition:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},rootClass:{type:String,default:""}},data:function(){return{referenceElm:null,popperJS:null,showPopper:!1,currentPlacement:"",popperOptions:{placement:"bottom",computeStyle:{gpuAcceleration:!1}}}},watch:{showPopper:function(u){u?(this.$emit("show",this),this.popperJS&&this.popperJS.enableEventListeners(),this.updatePopper()):(this.popperJS&&this.popperJS.disableEventListeners(),this.$emit("hide",this))},forceShow:{handler:function(u){this[u?"doShow":"doClose"]()},immediate:!0},disabled:function(u){u&&(this.showPopper=!1)}},created:function(){this.appendedArrow=!1,this.appendedToBody=!1,this.popperOptions=Object.assign(this.popperOptions,this.options)},mounted:function(){switch(this.referenceElm=this.reference||this.$slots.reference[0].elm,this.popper=this.$slots.default[0].elm,this.trigger){case"clickToOpen":n(this.referenceElm,"click",this.doShow),n(document,"click",this.handleDocumentClick);break;case"click":case"clickToToggle":n(this.referenceElm,"click",this.doToggle),n(document,"click",this.handleDocumentClick);break;case"hover":n(this.referenceElm,"mouseover",this.onMouseOver),n(this.popper,"mouseover",this.onMouseOver),n(this.referenceElm,"mouseout",this.onMouseOut),n(this.popper,"mouseout",this.onMouseOut);break;case"focus":n(this.referenceElm,"focus",this.onMouseOver),n(this.popper,"focus",this.onMouseOver),n(this.referenceElm,"blur",this.onMouseOut),n(this.popper,"blur",this.onMouseOut)}},methods:{doToggle:function(u){this.stopPropagation&&u.stopPropagation(),this.preventDefault&&u.preventDefault(),this.forceShow||(this.showPopper=!this.showPopper)},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},doDestroy:function(){this.showPopper||(this.popperJS&&(this.popperJS.destroy(),this.popperJS=null),this.appendedToBody&&(this.appendedToBody=!1,document.body.removeChild(this.popper.parentElement)))},createPopper:function(){var u=this;this.$nextTick(function(){if(u.visibleArrow&&u.appendArrow(u.popper),u.appendToBody&&!u.appendedToBody&&(u.appendedToBody=!0,document.body.appendChild(u.popper.parentElement)),u.popperJS&&u.popperJS.destroy&&u.popperJS.destroy(),u.boundariesSelector){var c=document.querySelector(u.boundariesSelector);c&&(u.popperOptions.modifiers=Object.assign({},u.popperOptions.modifiers),u.popperOptions.modifiers.preventOverflow=Object.assign({},u.popperOptions.modifiers.preventOverflow),u.popperOptions.modifiers.preventOverflow.boundariesElement=c)}u.popperOptions.onCreate=function(){u.$emit("created",u),u.$nextTick(u.updatePopper)},u.popperJS=new r(u.referenceElm,u.popper,u.popperOptions)})},destroyPopper:function(){a(this.referenceElm,"click",this.doToggle),a(this.referenceElm,"mouseup",this.doClose),a(this.referenceElm,"mousedown",this.doShow),a(this.referenceElm,"focus",this.doShow),a(this.referenceElm,"blur",this.doClose),a(this.referenceElm,"mouseout",this.onMouseOut),a(this.referenceElm,"mouseover",this.onMouseOver),a(document,"click",this.handleDocumentClick),this.showPopper=!1,this.doDestroy()},appendArrow:function(u){if(!this.appendedArrow){this.appendedArrow=!0;var c=document.createElement("div");c.setAttribute("x-arrow",""),c.className="popper__arrow",u.appendChild(c)}},updatePopper:function(){this.popperJS?this.popperJS.scheduleUpdate():this.createPopper()},onMouseOver:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!0},this.delayOnMouseOver)},onMouseOut:function(){var u=this;clearTimeout(this._timer),this._timer=setTimeout(function(){u.showPopper=!1},this.delayOnMouseOut)},handleDocumentClick:function(u){this.$el&&this.referenceElm&&!this.elementContains(this.$el,u.target)&&!this.elementContains(this.referenceElm,u.target)&&this.popper&&!this.elementContains(this.popper,u.target)&&(this.$emit("documentClick",this),this.forceShow||(this.showPopper=!1))},elementContains:function(u,c){return typeof u.contains=="function"&&u.contains(c)}},destroyed:function(){this.destroyPopper()}};const o=i;return i.__file="popper.js.vue",function(u,c,l,s,d,p,f,h,v,b){typeof f=="function"&&(v=h,h=f,f=!1);const m=typeof l=="function"?l.options:l;let g;if(u&&u.render&&(m.render=u.render,m.staticRenderFns=u.staticRenderFns,m._compiled=!0,d&&(m.functional=!0)),s&&(m._scopeId=s),p?(g=function(w){(w=w||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__=="undefined"||(w=__VUE_SSR_CONTEXT__),c&&c.call(this,v(w)),w&&w._registeredComponents&&w._registeredComponents.add(p)},m._ssrRegister=g):c&&(g=f?function(){c.call(this,b(this.$root.$options.shadowRoot))}:function(w){c.call(this,h(w))}),g)if(m.functional){const w=m.render;m.render=function(S,O){return g.call(O),w(S,O)}}else{const w=m.beforeCreate;m.beforeCreate=w?[].concat(w,g):[g]}return l}({render:function(){var u=this,c=u.$createElement,l=u._self._c||c;return l(u.tagName,{tag:"component"},[l("transition",{attrs:{name:u.transition,"enter-active-class":u.enterActiveClass,"leave-active-class":u.leaveActiveClass},on:{"after-leave":u.doDestroy}},[l("span",{directives:[{name:"show",rawName:"v-show",value:!u.disabled&&u.showPopper,expression:"!disabled && showPopper"}],ref:"popper",class:u.rootClass},[u._t("default",[u._v(u._s(u.content))])],2)]),u._v(" "),u._t("reference")],2)},staticRenderFns:[]},void 0,o,void 0,!1,void 0,void 0,void 0)})})(lg);var HA=lg.exports;const Ln=Ga(HA),zA=y.defineComponent({components:{DefaultInput:ne,DefaultSelect:se,ErrorHandler:G,Popper:Ln},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),o=y.ref(!1),u=y.ref(""),c=y.ref(""),l=y.ref(""),s=y.ref([]),d=y.ref({street:"",city:""}),p=y.ref(!1),f=[{rule:"required",text:"Vul je postcode in"},{rule:"regex",text:"Postcode is incorrect"}],h=[{rule:"required",text:"Huisnummer is verplicht"}],v=y.computed(()=>[{rule:z.has(t.houseNumberAdditionName),text:"Een toevoeging is verplicht"}]),b=y.computed(()=>[{rule:a.value,text:"Postcode en huisnummer combinatie onbekend."}]),m=y.computed(()=>r.value?"-":"Kies toevoeging"),g=y.computed(()=>`${o.value?"":"required"}|is_not:CHOOSE_OPTION`),w=(V,q,Ze)=>I(this,null,function*(){try{if(F.value=!0,!V||!q){j(""),l.value="CHOOSE_OPTION",a.value=!1,d.value.street="",d.value.city="",s.value=[{title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}];return}s.value=[],Ze&&(l.value="CHOOSE_OPTION"),s.value.push({title:"Kies een toevoeging",value:"CHOOSE_OPTION",disabled:!0,selected:!0}),o.value=yield S(V,q),o.value&&(s.value=[...s.value,{title:"Geen toevoeging",value:""}]),je.homeService.getAddition({zipcode:V,houseNumber:q}).then(qe=>{const Ft=qe;if(i.value=!0,H(t.houseNumberAdditionName),Ft.length){r.value=!1;for(let mr=0;mr<Ft.length;mr++)s.value=[...s.value,{title:Ft[mr],value:Fe(Ft[mr])}];a.value=!1,Ze||y.nextTick(()=>{l.value=t.houseNumberAddition,L(V,q,t.houseNumberAddition)})}else s.value[1]&&(s.value[1].title="Geen toevoeging"),r.value=!0,l.value="",j(""),L(V,q)}).catch(qe=>{a.value=!0,d.value.street="",d.value.city="",e("address-correct",!a.value),H("housenumberaddition"),console.error("Error fetching additions:",qe)})}catch(qe){console.error("Error in getHouseNumberAdditions:",qe)}finally{F.value=!1}}),S=(V,q)=>I(this,null,function*(){return yield je.dataValidationService.validateZipCode(V,q).then(()=>!0).catch(()=>!1)}),O=V=>{p.value=!0,u.value=V.toUpperCase(),e("update-zipcode",V.toUpperCase()),y.nextTick(()=>{w(V.toUpperCase(),t.houseNumber,!0)})},T=V=>{p.value=!0,e("update-house-number",V),y.nextTick(()=>{w(t.zipcode,V,!0)})},j=V=>{e("update-house-number-addition",V),L(t.zipcode,t.houseNumber,V)},L=(V,q,Ze="")=>I(this,null,function*(){try{if(F.value=!0,!V||!q)return;n.value=!0,a.value=!1,d.value.street="",d.value.city="",e("address-correct",!a.value);const{Street:qe,Place:Ft}=yield je.dataValidationService.validateZipCode(V,q,Ze);p.value=!1,d.value.street=qe,d.value.city=Ft,e("update-house-information",d.value),n.value=!1}catch(qe){a.value=!0,n.value=!1,e("address-correct",!a.value),H("housenumberaddition"),console.error("Error getting house information:",qe)}finally{F.value=!1}}),H=V=>{var Ze;const q=oe.fields.find({name:V});(q!==null||q!==void 0&&q)&&(q==null||q.reset(),(Ze=oe==null?void 0:oe.errors)==null||Ze.remove(q==null?void 0:q.name,q==null?void 0:q.scope))},Fe=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:$,additionLabel:m,additionValidationRules:g,disableAdditionField:r,isLoading:n,addressError:a,firstTimeCalled:i,canBeWithoutAddition:o,zipcodeModel:u,houseNumberModel:c,houseAdditionNumberModel:l,additions:s,houseInformation:d,isAddressEditing:p,props:t,zipcodeErrorsData:f,houseNumberErrorsData:h,houseNumberAdditionErrorsData:v,addressErrorsData:b,getHouseNumberAdditions:w,getHouseInformationWithoutAddition:S,updateZipcode:O,updateHouseNumber:T,updateHouseNumberAddition:j,getHouseInformation:L,resetFieldValidation:H}}});var cg=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)}}})])},VA=[];cg._withStripped=!0;var dg=E(zA,cg,VA,!1,null,null,null,null);dg.options.__file="/Users/mac/Work/comparison-forms/src/components/common/AddressHandler.vue";const Be=dg.exports,UA=y.defineComponent({name:"CarForm",components:{LicensePlate:Xt,AddressHandler:Be,DefaultInput:ne,SimpleCard:W,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=mc(t,e);return{userState:k,carState:Ie,hasNewDesign:$,errors:z,isRequestIsHandling:F,houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var fg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-new-form",class:{[e.classes]:!!e.classes}},[r("div",{staticClass:"vd-form-card__header"},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e()]),r("div",{staticClass:"vd-form-card__content"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-card__footer"},[r("button",{staticClass:"vd-btn vd-btn-green vd-btn-w-100",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])])},YA=[];fg._withStripped=!0;var pg=E(UA,fg,YA,!1,null,null,null,null);pg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarForm.vue";const WA=pg.exports,GA=y.defineComponent({name:"CarFormHorizontal",components:{LicensePlate:Xt,AddressHandler:Be,DefaultInput:ne,SimpleCard:W,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}=mc(t,e);return{userState:k,carState:Ie,hasNewDesign:$,errors:z,isRequestIsHandling:F,licensePlate:r,houseError:n,onLicenseInput:a,onLicenseError:i,validateBeforeSubmit:o}}});var hg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("simple-card",{staticClass:"vd-form-card vd-form-card--horizontal",class:{"vd-new-form":e.hasNewDesign,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[e.showTitle?r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("div",{staticClass:"vd-form-card__content vd-form-card__content-car"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-block"},[r("address-handler",{attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,template:"FORM_HORIZONTAL","house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}}),r("div",{staticClass:"vd-form-group vd-form-group__button"},[r("button",{class:e.hasNewDesign?"vd-btn vd-btn-green vd-btn-w-100":"btn-a btn-a--success btn-a--bold btn-block cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])},ZA=[];hg._withStripped=!0;var mg=E(GA,hg,ZA,!1,null,null,null,null);mg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormHorizontal.vue";const KA=mg.exports,XA=y.defineComponent({name:"CarFormOld",components:{LicensePlate:Xt,AddressHandler:Be,DefaultInput:ne,SimpleCard:W,BirthdateInput:Ce},props:{title:{type:String,default:"Autoverzekering vergelijken"},showTitle:{required:!1,type:Boolean,default:!0},link:{type:String,required:!0},userInformation:{required:!1},insuranceState:{required:!1},classes:{type:String},formLocation:{type:String,required:!1,default:D.isBeforeFlow}},setup(t,{emit:e}){const{houseError:r,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}=mc(t,e);return{userState:k,carState:Ie,hasNewDesign:$,errors:z,isRequestIsHandling:F,houseError:r,FormLocations:D,onLicenseInput:n,onLicenseError:a,validateBeforeSubmit:i}}});var vg=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("simple-card",{staticClass:"vd-form-card vd-form-card--border-box",class:{"vd-form-card--flat w-100":e.formLocation===e.FormLocations.isOnResultPage,[e.classes]:!!e.classes},attrs:{"has-new-style":!0}},[r("p",{staticClass:"vd-form-card__title"},[e._v(" "+e._s(e.title)+" ")]),r("div",{staticClass:"vd-form-card__content p-0"},[r("license-plate",{attrs:{id:"license","vehicle-types":["Car","Van"],"vehicle-type":"car","insurance-dutch-naming":"auto","prop-vehicle-information":e.carState,name:"license"},on:{input:e.onLicenseInput,"on-error":e.onLicenseError,"on-vehicle-information-update":n=>Object.assign(e.carState,n)},model:{value:e.carState.LicensePlate,callback:function(n){e.$set(e.carState,"LicensePlate",n)},expression:"carState.LicensePlate"}}),r("div",{staticClass:"vd-form-group vd-form-group--address-handler-moped"},[r("address-handler",{staticClass:"mx-0",attrs:{"zipcode-name":"zipcode","show-street-and-city":!0,"house-number-name":"housenumber","house-number-addition-name":"housenumberaddition",zipcode:e.userState.zipcode,"house-number":e.userState.houseNumber,"house-number-addition":e.userState.houseNumberAddition},on:{"update-zipcode":n=>e.userState.zipcode=n,"update-house-number":n=>e.userState.houseNumber=n,"update-house-number-addition":n=>e.userState.houseNumberAddition=n,"address-correct":n=>e.houseError=!n}})],1),r("div",{staticClass:"vd-form-group"},[r("birthdate-input",{model:{value:e.userState.birthdate,callback:function(n){e.$set(e.userState,"birthdate",n)},expression:"userState.birthdate"}})],1),r("div",{staticClass:"vd-form-group"},[r("div",{staticClass:"btn-a btn-a--success btn-a--bold btn-block btn-a--horizontal cursor-pointer",attrs:{disabled:e.isRequestIsHandling},on:{click:e.validateBeforeSubmit}},[e._v(" Vergelijken ")])])],1)])],1)},JA=[];vg._withStripped=!0;var gg=E(XA,vg,JA,!1,null,null,null,null);gg.options.__file="/Users/mac/Work/comparison-forms/src/insurances/car/components/forms/CarFormOld.vue";const QA=gg.exports,eM="192";function tM(t){const e={CreationForm:"CreationForm",Aanvragen:"Aanvragen",Common:"Common"};let r=y.ref([]);const n={[e.CreationForm]:{title:"Oeps... er gaat iets mis!",refId:eM,notes:[{text:"Kan geen comparison ID aanmaken voor geld lenen vergelijking"}],description:"Door een technische storing kunnen we op dit moment geen premies vergelijken. Laat je gegevens achter en we helpen je zo snel mogelijk telefonisch verder!"},[e.Aanvragen]:{description:"Er gaat iets niet helemaal goed. Je kunt op dit moment niet verder met je vergelijking of aanvraag. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."},[e.Common]:{description:"Momenteel kunnen we je lening online niet berekenen. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."}},a=(l="Common")=>{t("emit-event-hub",{event:"open-quotation-modal",data:c(l)})},i=l=>{const s=u(l);r.value.push(s)},o=()=>{r.value=[]},u=l=>({text:l}),c=l=>{const{title:s,refId:d,notes:p,description:f}=n[l];return{title:s,refId:d,notes:[...p||[],...r.value],description:f}};return{QuotationType:e,openQuotationModal:a,addNote:i,resetNotes:o,convertToNote:u,renderQuotationData:c}}let vc=y.ref(!1);const yg=(t,e)=>{const{QuotationType:r,openQuotationModal:n,addNote:a,resetNotes:i}=tM(e),o=y.computed(()=>t.formOrientation===ya.Horizontal),u=f=>`${t.link}#/${f}`,c=f=>I(this,null,function*(){i();try{const h=yield je.comparisonService.create("loan",f);return yield je.comparisonService.update(h),h}catch(h){console.error(h),a(`
|
|
45
45
|
Leendoel: ${Gt.loanPurpose} |
|
|
46
46
|
Leenbedrag: ${Gt.loanAmount} |
|
|
47
47
|
Geboortedatum: ${k.birthdate} |
|