@world-vision-canada/wvc-design-system
Version:
WVC Vue Design system is a fork of Vue Design System, an open-source tool for building Design Systems with Vue.js
2 lines • 21.9 kB
JavaScript
(("undefined"!==typeof self?self:this)["webpackJsonpwvc"]=("undefined"!==typeof self?self:this)["webpackJsonpwvc"]||[]).push([[2,10,17],{"079d":function(t,e){t.exports={functional:!0,render(t,e){const{_c:a,_v:o,data:n,children:r=[]}=e,{class:i,staticClass:s,style:c,staticStyle:d,attrs:l={},...f}=n;return a("svg",{class:[i,s],style:[c,d],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",fill:"none"},l),...f},r.concat([a("path",{attrs:{fill:"currentColor","fill-rule":"evenodd",d:"M4.823 6L0 1.487 1.589 0 8 6l-6.411 6L0 10.513 4.823 6z","clip-rule":"evenodd"}})]))}}},"1bdd":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Karla:wght@700&family=Lato:ital,wght@0,400;0,700;1,400&display=swap);",""]),e.push([t.i,".loader .loader-dot1[data-v-7018eb6e]{animation:anim1-data-v-7018eb6e 1s linear infinite}.loader .loader-dot2[data-v-7018eb6e]{animation:anim2-data-v-7018eb6e 1s linear infinite}.loader .loader-dot3[data-v-7018eb6e]{animation:anim3-data-v-7018eb6e 1s linear infinite}@keyframes anim1-data-v-7018eb6e{0%{opacity:1}65%{opacity:1}66%{opacity:0}to{opacity:0}}@keyframes anim2-data-v-7018eb6e{0%{opacity:0}21%{opacity:0}22%{opacity:1}65%{opacity:1}66%{opacity:0}to{opacity:0}}@keyframes anim3-data-v-7018eb6e{0%{opacity:0}43%{opacity:0}44%{opacity:1}65%{opacity:1}66%{opacity:0}to{opacity:0}}",""])},2350:function(t,e){function a(t,e){var a=t[1]||"",n=t[3];if(!n)return a;if(e&&"function"===typeof btoa){var r=o(n),i=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[a].concat(i).concat([r]).join("\n")}return[a].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+a+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=a(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,a){"string"===typeof t&&(t=[[null,t,""]]);for(var o={},n=0;n<this.length;n++){var r=this[n][0];"number"===typeof r&&(o[r]=!0)}for(n=0;n<t.length;n++){var i=t[n];"number"===typeof i[0]&&o[i[0]]||(a&&!i[2]?i[2]=a:a&&(i[2]="("+i[2]+") and ("+a+")"),e.push(i))}},e}},2877:function(t,e,a){"use strict";function o(t,e,a,o,n,r,i,s){var c,d="function"===typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=a,d._compiled=!0),o&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},d._ssrRegister=c):n&&(c=s?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(t,e){return c.call(e),l(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:d}}a.d(e,"a",(function(){return o}))},"35d6":function(t,e,a){"use strict";function o(t,e){for(var a=[],o={},n=0;n<e.length;n++){var r=e[n],i=r[0],s=r[1],c=r[2],d=r[3],l={id:t+":"+n,css:s,media:c,sourceMap:d};o[i]?o[i].parts.push(l):a.push(o[i]={id:i,parts:[l]})}return a}function n(t,e,a){var n=o(t,e);r(n,a)}function r(t,e){for(var a=e._injectedStyles||(e._injectedStyles={}),o=0;o<t.length;o++){var n=t[o],r=a[n.id];if(!r){for(var i=0;i<n.parts.length;i++)s(n.parts[i],e);a[n.id]=!0}}}function i(t){var e=document.createElement("style");return e.type="text/css",t.appendChild(e),e}function s(t,e){var a=i(e),o=t.css,n=t.media,r=t.sourceMap;if(n&&a.setAttribute("media",n),r&&(o+="\n/*# sourceURL="+r.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),a.styleSheet)a.styleSheet.cssText=o;else{while(a.firstChild)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(o))}}a.r(e),a.d(e,"default",(function(){return n}))},"3bf1":function(t,e,a){var o=a("9cb4");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=a("35d6").default;t.exports.__inject__=function(t){n("5c5f313e",o,t)}},"40a8":function(t,e){t.exports={functional:!0,render(t,e){const{_c:a,_v:o,data:n,children:r=[]}=e,{class:i,staticClass:s,style:c,staticStyle:d,attrs:l={},...f}=n;return a("svg",{class:[i,s],style:[c,d],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"6",height:"9",fill:"none"},l),...f},r.concat([a("path",{attrs:{fill:"currentColor","fill-rule":"evenodd",d:"M3.617 4.5L0 1.115 1.192 0 6 4.5 1.192 9 0 7.885 3.617 4.5z","clip-rule":"evenodd"}})]))}}},4466:function(t,e){t.exports={functional:!0,render(t,e){const{_c:a,_v:o,data:n,children:r=[]}=e,{class:i,staticClass:s,style:c,staticStyle:d,attrs:l={},...f}=n;return a("svg",{class:[i,s],style:[c,d],attrs:Object.assign({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),...f},r.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 8A8 8 0 110 8a8 8 0 0116 0zm-8 7A7 7 0 108 1a7 7 0 000 14z",fill:"currentColor"}}),a("path",{attrs:{d:"M8.71 3v3.596c0 .242-.005.478-.016.708a15.636 15.636 0 01-.096 1.416c-.022.241-.048.501-.08.78h-.972l-.089-.78a32.468 32.468 0 01-.096-1.416 30.47 30.47 0 01-.008-.708V3H8.71zM7 11.514c0-.14.024-.271.072-.395.054-.123.123-.23.21-.321.09-.091.197-.164.32-.218a.976.976 0 01.394-.08c.14 0 .27.027.394.08.123.054.23.127.32.218.092.09.161.198.21.321.053.124.08.255.08.395a1 1 0 01-.29.715.927.927 0 01-.32.21.976.976 0 01-.394.08.976.976 0 01-.394-.08.927.927 0 01-.32-.21 1.147 1.147 0 01-.21-.313A1.096 1.096 0 017 11.514z",fill:"currentColor"}})]))}}},5595:function(t,e,a){"use strict";a.r(e);var o=a("de6c"),n=a.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(r);e["default"]=n.a},"594b":function(t,e){t.exports={functional:!0,render(t,e){const{_c:a,_v:o,data:n,children:r=[]}=e,{class:i,staticClass:s,style:c,staticStyle:d,attrs:l={},...f}=n;return a("svg",{class:[i,s],style:[c,d],attrs:Object.assign({width:"21",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),...f},r.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.003 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10zm-10 8.75a8.75 8.75 0 100-17.5 8.75 8.75 0 000 17.5z",fill:"currentColor"}}),a("path",{attrs:{d:"M10.891 3.75v4.495c0 .302-.007.597-.02.885a19.547 19.547 0 01-.12 1.77c-.027.301-.06.626-.1.975H9.434l-.11-.975a40.598 40.598 0 01-.12-1.77c-.007-.288-.01-.583-.01-.885V3.75h1.696zM8.753 14.392c0-.174.03-.339.09-.493.067-.154.154-.288.261-.402a1.29 1.29 0 01.402-.271c.154-.068.318-.101.492-.101s.338.034.492.1c.154.068.288.158.402.272.113.114.2.248.26.402.068.154.1.319.1.493 0 .18-.033.348-.1.503a1.182 1.182 0 01-.662.653 1.22 1.22 0 01-.492.1 1.22 1.22 0 01-.492-.1 1.156 1.156 0 01-.402-.261 1.432 1.432 0 01-.26-.392 1.37 1.37 0 01-.091-.503z",fill:"currentColor"}})]))}}},"91e2":function(t,e,a){"use strict";a.r(e);var o=a("a89e"),n=a.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(r);e["default"]=n.a},"9cb4":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Karla:wght@700&family=Lato:ital,wght@0,400;0,700;1,400&display=swap);",""]),e.push([t.i,".feedback[data-v-6c887ef1]{font-family:Lato;font-size:16px;line-height:24px;display:inline-flex;text-align:left}.feedback.theme-light[data-v-6c887ef1]{color:#007a00;background-color:transparent}.feedback.theme-dark[data-v-6c887ef1]{color:#fff;background-color:#007a00}.feedback.small[data-v-6c887ef1]{font-family:Lato;font-size:16px;line-height:24px}.feedback.contextual[data-v-6c887ef1],.feedback.contextual.small[data-v-6c887ef1]{font-family:Lato;font-size:14px;line-height:24px}.feedback.contextual .feedback__icon[data-v-6c887ef1]{min-width:16px;height:16px}.feedback.error.theme-light[data-v-6c887ef1]{color:#d0021b;background-color:transparent}.feedback.error.theme-dark[data-v-6c887ef1]{color:#fff;background-color:#d0021b}.feedback__icon[data-v-6c887ef1]{min-width:20px;height:20px;margin:4px 4px 28px;display:inline-flex}.feedback__text[data-v-6c887ef1]{text-align:left}",""])},a89e:function(t,e,a){var o=a("1bdd");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=a("35d6").default;t.exports.__inject__=function(t){n("fc6c3d9a",o,t)}},cbb2:function(t,e){t.exports={functional:!0,render(t,e){const{_c:a,_v:o,data:n,children:r=[]}=e,{class:i,staticClass:s,style:c,staticStyle:d,attrs:l={},...f}=n;return a("svg",{class:[i,s],style:[c,d],attrs:Object.assign({width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),...f},r.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10zm-10 8.75a8.75 8.75 0 100-17.5 8.75 8.75 0 000 17.5z",fill:"currentColor"}}),a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.451 5.251l1.352 1.041-5.862 8.313-3.83-4.325 1.224-1.165 2.444 2.761 4.672-6.625z",fill:"currentColor"}})]))}}},d849:function(t,e){t.exports={functional:!0,render(t,e){const{_c:a,_v:o,data:n,children:r=[]}=e,{class:i,staticClass:s,style:c,staticStyle:d,attrs:l={},...f}=n;return a("svg",{class:[i,s],style:[c,d],attrs:Object.assign({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),...f},r.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 8A8 8 0 110 8a8 8 0 0116 0zm-8 7A7 7 0 108 1a7 7 0 000 14z",fill:"currentColor"}}),a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.76 4.2l1.082.834-4.69 6.65-3.064-3.46.979-.932 1.955 2.21L10.76 4.2z",fill:"currentColor"}})]))}}},dc3a:function(t,e,a){"use strict";a.r(e);var o=a("3bf1"),n=a.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(r);e["default"]=n.a},de6c:function(t,e,a){var o=a("ef59");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=a("35d6").default;t.exports.__inject__=function(t){n("4dbeb35a",o,t)}},dfbb:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["feedback",t.classes,t.themeClass]},[t.contextual?[t.error?a("NotificationErrorSm",{class:["feedback__icon"],attrs:{"aria-hidden":"true"}}):a("NotificationSuccessSm",{class:["feedback__icon"],attrs:{"aria-hidden":"true"}})]:[t.error?a("NotificationError",{class:["feedback__icon"],attrs:{"aria-hidden":"true"}}):a("NotificationSuccess",{class:["feedback__icon"],attrs:{"aria-hidden":"true"}})],a("span",{staticClass:"feedback__text",attrs:{id:t.id,role:"alert"}},[t._t("default")],2)],2)},n=[],r=a("594b"),i=a.n(r),s=a("cbb2"),c=a.n(s),d=a("4466"),l=a.n(d),f=a("d849"),u=a.n(f),b={name:"WvcFeedback",components:{NotificationError:i.a,NotificationSuccess:c.a,NotificationErrorSm:l.a,NotificationSuccessSm:u.a},props:{contextual:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},error:{type:Boolean,default:!1},id:{type:String,default:""},small:{type:Boolean,default:!1}},computed:{themeClass:function(){return{"theme-light":!this.dark,"theme-dark":this.dark}},classes:function(){return{error:this.error,small:this.small,contextual:this.contextual}}}},h=b,p=a("2877");function v(t){var e=a("dc3a");e.__inject__&&e.__inject__(t)}var m=Object(p["a"])(h,o,n,!1,v,"6c887ef1",null,!0);e["default"]=m.exports},ef59:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,"@import url(https://fonts.googleapis.com/css2?family=Karla:wght@700&family=Lato:ital,wght@0,400;0,700;1,400&display=swap);",""]),e.push([t.i,'.button[data-v-1b6fe3e5]{box-sizing:border-box;padding:0;margin:0;will-change:transform;transition:all .2s ease;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;font-family:Karla,Lato,Arial,sans-serif;text-transform:uppercase;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;cursor:pointer;font-family:Karla;font-size:16px;letter-spacing:2.4px;line-height:24px;text-align:center;padding:12px 16px}.button[data-v-1b6fe3e5]:before{content:"";display:block;height:0;width:0;margin-top:-.1em}@media (max-width:1024px){.button[data-v-1b6fe3e5]{font-family:Karla;font-size:14px;letter-spacing:2.1px;line-height:24px;text-align:center;padding:8px 16px}}.button .icon-wrapper[data-v-1b6fe3e5],.button .icon-wrapper-sm[data-v-1b6fe3e5]{padding-left:8px;overflow:visible;align-items:center;height:100%}.button .icon-wrapper-sm>svg[data-v-1b6fe3e5],.button .icon-wrapper>svg[data-v-1b6fe3e5]{display:block;margin:0 auto;text-align:center}.button .icon-wrapper[data-v-1b6fe3e5]{display:flex}@media (max-width:1024px){.button .icon-wrapper[data-v-1b6fe3e5]{display:none}}.button .icon-wrapper-sm[data-v-1b6fe3e5]{display:none}@media (max-width:1024px){.button .icon-wrapper-sm[data-v-1b6fe3e5]{display:flex}}.button-primary.theme-light[data-v-1b6fe3e5],.button.theme-light[data-v-1b6fe3e5]{color:#fff;background-color:#0c6699;box-shadow:none;border:none}.button-primary.theme-light.hover[data-v-1b6fe3e5],.button-primary.theme-light[data-v-1b6fe3e5]:hover,.button.theme-light.hover[data-v-1b6fe3e5],.button.theme-light[data-v-1b6fe3e5]:hover{color:#fff;background-color:#0d4773;box-shadow:none}.button-primary.theme-light.focus[data-v-1b6fe3e5],.button-primary.theme-light[data-v-1b6fe3e5]:focus,.button.theme-light.focus[data-v-1b6fe3e5],.button.theme-light[data-v-1b6fe3e5]:focus{background-color:#0d4773;color:#fff;box-shadow:0 0 0 4px #0c6699;outline:none}.button-primary.theme-light.active[data-v-1b6fe3e5],.button-primary.theme-light.visited[data-v-1b6fe3e5],.button-primary.theme-light[data-v-1b6fe3e5]:active,.button-primary.theme-light[data-v-1b6fe3e5]:visited,.button.theme-light.active[data-v-1b6fe3e5],.button.theme-light.visited[data-v-1b6fe3e5],.button.theme-light[data-v-1b6fe3e5]:active,.button.theme-light[data-v-1b6fe3e5]:visited{transition:none;background-color:#337ab7;color:#fff;box-shadow:none}.button-primary.theme-light.disabled[data-v-1b6fe3e5],.button-primary.theme-light[data-v-1b6fe3e5]:disabled,.button.theme-light.disabled[data-v-1b6fe3e5],.button.theme-light[data-v-1b6fe3e5]:disabled{background-color:transparent;color:#999;box-shadow:none}.button-primary.theme-dark[data-v-1b6fe3e5],.button.theme-dark[data-v-1b6fe3e5]{color:#0c6699;background-color:#fff;box-shadow:none;border:none}.button-primary.theme-dark.hover[data-v-1b6fe3e5],.button-primary.theme-dark[data-v-1b6fe3e5]:hover,.button.theme-dark.hover[data-v-1b6fe3e5],.button.theme-dark[data-v-1b6fe3e5]:hover{color:#0d4773;background-color:#fff;box-shadow:none}.button-primary.theme-dark.focus[data-v-1b6fe3e5],.button-primary.theme-dark[data-v-1b6fe3e5]:focus,.button.theme-dark.focus[data-v-1b6fe3e5],.button.theme-dark[data-v-1b6fe3e5]:focus{background-color:#fff;color:#0d4773;box-shadow:0 0 0 4px #00acca;outline:none}.button-primary.theme-dark.active[data-v-1b6fe3e5],.button-primary.theme-dark.visited[data-v-1b6fe3e5],.button-primary.theme-dark[data-v-1b6fe3e5]:active,.button-primary.theme-dark[data-v-1b6fe3e5]:visited,.button.theme-dark.active[data-v-1b6fe3e5],.button.theme-dark.visited[data-v-1b6fe3e5],.button.theme-dark[data-v-1b6fe3e5]:active,.button.theme-dark[data-v-1b6fe3e5]:visited{transition:none;background-color:#0c6699;color:#fff;box-shadow:inset 0 0 0 2px #fff}.button-primary.theme-dark.disabled[data-v-1b6fe3e5],.button-primary.theme-dark[data-v-1b6fe3e5]:disabled,.button.theme-dark.disabled[data-v-1b6fe3e5],.button.theme-dark[data-v-1b6fe3e5]:disabled{background-color:transparent;color:#999;box-shadow:inset 0 0 0 2px #999}.button-secondary[data-v-1b6fe3e5]{text-align:left}.button-secondary.theme-light[data-v-1b6fe3e5]{color:#0c6699;background-color:#fff;box-shadow:inset 0 0 0 2px #0c6699;border:none}.button-secondary.theme-light.hover[data-v-1b6fe3e5],.button-secondary.theme-light[data-v-1b6fe3e5]:hover{color:#0d4773;background-color:#fff;box-shadow:inset 0 0 0 2px #0d4773}.button-secondary.theme-light.focus[data-v-1b6fe3e5],.button-secondary.theme-light[data-v-1b6fe3e5]:focus{background-color:#0d4773;color:#fff;box-shadow:0 0 0 4px #0c6699;outline:none}.button-secondary.theme-light.active[data-v-1b6fe3e5],.button-secondary.theme-light[data-v-1b6fe3e5]:active{transition:none;background-color:#fff;color:#337ab7;box-shadow:inset 0 0 0 2px #337ab7}.button-secondary.theme-light.disabled[data-v-1b6fe3e5],.button-secondary.theme-light[data-v-1b6fe3e5]:disabled{background-color:transparent;color:#999;box-shadow:inset 0 0 0 2px #999}.button-secondary.theme-dark[data-v-1b6fe3e5]{color:#fff;background-color:transparent;box-shadow:inset 0 0 0 2px #fff;border:none}.button-secondary.theme-dark.hover[data-v-1b6fe3e5],.button-secondary.theme-dark[data-v-1b6fe3e5]:hover{color:#333;background-color:#fff;box-shadow:inset 0 0 0 2px #fff}.button-secondary.theme-dark.focus[data-v-1b6fe3e5],.button-secondary.theme-dark[data-v-1b6fe3e5]:focus{background-color:#fff;box-shadow:0 0 0 4px #00acca;outline:none}.button-secondary.theme-dark.active[data-v-1b6fe3e5],.button-secondary.theme-dark[data-v-1b6fe3e5]:active{transition:none;background-color:transparent;color:#ccc;box-shadow:inset 0 0 0 2px #ccc}.button-secondary.theme-dark.disabled[data-v-1b6fe3e5],.button-secondary.theme-dark[data-v-1b6fe3e5]:disabled{background-color:transparent;color:#999;box-shadow:inset 0 0 0 2px #999}.full-width[data-v-1b6fe3e5]{width:100%}.button-submit-disabled.theme-light[data-v-1b6fe3e5]{color:#666!important;background-color:#f5f5f5!important;box-shadow:inset 0 0 0 2px #f5f5f5!important}.button-submit-disabled.theme-dark[data-v-1b6fe3e5]{color:#ccc!important;background-color:transparent!important;box-shadow:inset 0 0 0 2px #ccc!important}',""])},f5ae:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.hasErrorMsgSlot&&t.isError?a("WvcFeedback",{staticStyle:{"margin-bottom":"8px"},attrs:{error:!0,dark:t.dark}},[t._t("error-msg")],2):t._e(),t.isProcessing?a("WvcButton",{attrs:{dark:t.dark,disabled:!0,"full-width":!0,submit:!0}},[t._v("\n "+t._s(t.labelProcessing)+"\n "),a("span",{staticClass:"loader"},[a("span",{staticClass:"loader-dot1"},[t._v(".")]),a("span",{staticClass:"loader-dot2"},[t._v(".")]),a("span",{staticClass:"loader-dot3"},[t._v(".")])])]):a("WvcButton",{attrs:{dark:t.dark,disabled:t.isError,"full-width":!0,submit:!0},nativeOn:{click:function(e){return t.onClickSubmit.apply(null,arguments)}}},[t._v("\n "+t._s(t.label)+"\n ")]),!t.hasSuccesMsgSlot||t.isProcessing||"success"!==t.state&&!t.success?t._e():a("WvcFeedback",{staticStyle:{"margin-top":"8px"},attrs:{dark:t.dark}},[t._t("success-msg")],2)],1)},n=[],r=a("f9fd"),i=a("dfbb"),s={name:"WvcSubmitButton",components:{WvcButton:r["default"],WvcFeedback:i["default"]},props:{dark:{type:Boolean,default:!1},label:{type:String,default:"submit"},labelProcessing:{type:String,default:"submitting"},state:{type:String,default:null,validator:function(t){return t.match(/(processing|error|success)/)}}},data:function(){return{error:!1,processing:!1,success:!1}},computed:{hasSuccesMsgSlot:function(){return!!this.$slots["success-msg"]},hasErrorMsgSlot:function(){return!!this.$slots["error-msg"]},themeClass:function(){return{"theme-light":!this.dark,"theme-dark":this.dark}},isError:function(){return"error"===this.state||this.error&&!this.isProcessing},isProcessing:function(){return"processing"===this.state||this.processing}},methods:{onClickSubmit:function(){this.processing=!0,this.$emit("on-click-submit")},onFormSubmit:function(){this.processing=!0,this.success=!1,this.error=!1},onFormError:function(){this.error=!0,this.success=!1,this.processing=!1},onFormSuccess:function(){this.success=!0,this.error=!1,this.processing=!1}}},c=s,d=a("2877");function l(t){var e=a("91e2");e.__inject__&&e.__inject__(t)}var f=Object(d["a"])(c,o,n,!1,l,"7018eb6e",null,!0);e["default"]=f.exports},f9fd:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{class:["button",t.themeClass,t.state,t.classes],style:{backgroundColor:t.backgroundColor,color:t.color},attrs:{"aria-describedby":t.ariaDescribedby,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabeledby,disabled:t.disabled,type:t.submit?"submit":"button",role:"button"}},[t._t("default"),t.hasIcon?[a("span",{staticClass:"icon-wrapper"},[t._t("icon")],2),a("span",{staticClass:"icon-wrapper-sm"},[t._t("icon-sm")],2)]:t._e(),!t.hasIcon&&t.secondary?[a("span",{staticClass:"icon-wrapper"},[a("IconChevron",{attrs:{"aria-hidden":"true"}})],1),a("span",{staticClass:"icon-wrapper-sm"},[a("IconChevronSm",{attrs:{"aria-hidden":"true"}})],1)]:t._e()],2)},n=[],r=a("079d"),i=a.n(r),s=a("40a8"),c=a.n(s),d={name:"WvcButton",components:{IconChevron:i.a,IconChevronSm:c.a},props:{ariaDescribedby:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabeledby:{type:String,default:null},dark:{type:Boolean,default:!1},backgroundColor:{type:String,default:null},color:{type:String,default:null},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},state:{type:String,default:null,validator:function(t){return t.match(/(hover|focus|active|visited|disabled)/)}},submit:{type:Boolean,default:!1}},computed:{classes:function(){return{"button-primary":!this.secondary,"button-secondary":this.secondary,"full-width":this.fullWidth,"button-submit-disabled":this.disabled&&this.submit}},themeClass:function(){return{"theme-light":!this.dark,"theme-dark":this.dark}},hasIcon:function(){return this.$slots.icon}}},l=d,f=a("2877");function u(t){var e=a("5595");e.__inject__&&e.__inject__(t)}var b=Object(f["a"])(l,o,n,!1,u,"1b6fe3e5",null,!0);e["default"]=b.exports}}]);
//# sourceMappingURL=wvc.umd.min.2.js.map