@flarehr/salpac-cars-calculator 1.0.13 → 1.0.16
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,n,_,o,r,l,i={},u=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,c=Array.isArray;function f(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function a(t,n,_){var o,r,l,i={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:i[l]=n[l];if(arguments.length>2&&(i.children=arguments.length>3?e.call(arguments,2):_),"function"==typeof t&&null!=t.defaultProps)for(l in t.defaultProps)void 0===i[l]&&(i[l]=t.defaultProps[l]);return d(t,i,o,r,null)}function d(e,_,o,r,l){var i={type:e,props:_,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++n:l};return null==l&&null!=t.vnode&&t.vnode(i),i}function h(e){return e.children}function v(e,t){this.props=e,this.context=t}function y(e,t){if(null==t)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?y(e):null}function m(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return m(e)}}function b(e){(!e.__d&&(e.__d=!0)&&_.push(e)&&!g.__r++||o!==t.debounceRendering)&&((o=t.debounceRendering)||r)(g)}function g(){var e,t,n,o,r,i,u,s,c;for(_.sort(l);e=_.shift();)e.__d&&(t=_.length,o=void 0,r=void 0,i=void 0,s=(u=(n=e).__v).__e,(c=n.__P)&&(o=[],r=[],(i=f({},u)).__v=u.__v+1,L(c,u,i,n.__n,void 0!==c.ownerSVGElement,null!=u.__h?[s]:null,o,null==s?y(u):s,u.__h,r),D(o,u,r),u.__e!=s&&m(u)),_.length>t&&_.sort(l));g.__r=0}function k(e,t,n,_,o,r,l,s,f,p,a){var v,y,m,b,g,k,w,S,E,T,D=0,U=_&&_.__k||u,O=U.length,A=O,H=t.length;for(n.__k=[],v=0;v<H;v++)null!=(b=n.__k[v]=null==(b=t[v])||"boolean"==typeof b||"function"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?d(null,b,null,null,b):c(b)?d(h,{children:b},null,null,null):b.__b>0?d(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)&&(b.__=n,b.__b=n.__b+1,-1===(S=P(b,U,w=v+D,A))?m=i:(m=U[S]||i,U[S]=void 0,A--),L(e,b,m,o,r,l,s,f,p,a),g=b.__e,(y=b.ref)&&m.ref!=y&&(m.ref&&M(m.ref,null,b),a.push(y,b.__c||g,b)),null!=g&&(null==k&&(k=g),T=!(E=m===i||null===m.__v)&&S===w,E?-1==S&&D--:S!==w&&(S===w+1?(D++,T=!0):S>w?A>H-w?(D+=S-w,T=!0):D--:D=S<w&&S==w-1?S-w:0),w=v+D,T=T||S==v&&!E,"function"!=typeof b.type||S===w&&m.__k!==b.__k?"function"==typeof b.type||T?void 0!==b.__d?(f=b.__d,b.__d=void 0):f=g.nextSibling:f=x(e,g,f):f=C(b,f,e),"function"==typeof n.type&&(n.__d=f)));for(n.__e=k,v=O;v--;)null!=U[v]&&("function"==typeof n.type&&null!=U[v].__e&&U[v].__e==n.__d&&(n.__d=U[v].__e.nextSibling),N(U[v],U[v]))}function C(e,t,n){for(var _,o=e.__k,r=0;o&&r<o.length;r++)(_=o[r])&&(_.__=e,t="function"==typeof _.type?C(_,t,n):x(n,_.__e,t));return t}function x(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function P(e,t,n,_){var o=e.key,r=e.type,l=n-1,i=n+1,u=t[n];if(null===u||u&&o==u.key&&r===u.type)return n;if(_>(null!=u?1:0))for(;l>=0||i<t.length;){if(l>=0){if((u=t[l])&&o==u.key&&r===u.type)return l;l--}if(i<t.length){if((u=t[i])&&o==u.key&&r===u.type)return i;i++}}return-1}function w(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||s.test(t)?n:n+"px"}function S(e,t,n,_,o){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||w(e.style,t,"");if(n)for(t in n)_&&n[t]===_[t]||w(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?_||e.addEventListener(t,r?T:E,r):e.removeEventListener(t,r?T:E,r);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function E(e){return this.l[e.type+!1](t.event?t.event(e):e)}function T(e){return this.l[e.type+!0](t.event?t.event(e):e)}function L(e,n,_,o,r,l,i,u,s,p){var a,d,y,m,b,g,C,x,P,w,S,E,T,L,D,M=n.type;if(void 0!==n.constructor)return null;null!=_.__h&&(s=_.__h,u=n.__e=_.__e,n.__h=null,l=[u]),(a=t.__b)&&a(n);try{e:if("function"==typeof M){if(x=n.props,P=(a=M.contextType)&&o[a.__c],w=a?P?P.props.value:a.__:o,_.__c?C=(d=n.__c=_.__c).__=d.__E:("prototype"in M&&M.prototype.render?n.__c=d=new M(x,w):(n.__c=d=new v(x,w),d.constructor=M,d.render=O),P&&P.sub(d),d.props=x,d.state||(d.state={}),d.context=w,d.__n=o,y=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=M.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,M.getDerivedStateFromProps(x,d.__s))),m=d.props,b=d.state,d.__v=n,y)null==M.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==M.getDerivedStateFromProps&&x!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(x,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(x,d.__s,w)||n.__v===_.__v)){for(n.__v!==_.__v&&(d.props=x,d.state=d.__s,d.__d=!1),n.__e=_.__e,n.__k=_.__k,n.__k.forEach((function(e){e&&(e.__=n)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(x,d.__s,w),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,b,g)}))}if(d.context=w,d.props=x,d.__P=e,d.__e=!1,E=t.__r,T=0,"prototype"in M&&M.prototype.render){for(d.state=d.__s,d.__d=!1,E&&E(n),a=d.render(d.props,d.state,d.context),L=0;L<d._sb.length;L++)d.__h.push(d._sb[L]);d._sb=[]}else do{d.__d=!1,E&&E(n),a=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(o=f(f({},o),d.getChildContext())),y||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(m,b)),k(e,c(D=null!=a&&a.type===h&&null==a.key?a.props.children:a)?D:[D],n,_,o,r,l,i,u,s,p),d.base=n.__e,n.__h=null,d.__h.length&&i.push(d),C&&(d.__E=d.__=null)}else null==l&&n.__v===_.__v?(n.__k=_.__k,n.__e=_.__e):n.__e=U(_.__e,n,_,o,r,l,i,s,p);(a=t.diffed)&&a(n)}catch(e){n.__v=null,(s||null!=l)&&(n.__e=u,n.__h=!!s,l[l.indexOf(u)]=null),t.__e(e,n,_)}}function D(e,n,_){for(var o=0;o<_.length;o++)M(_[o],_[++o],_[++o]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function U(t,n,_,o,r,l,u,s,f){var a,d,h,v=_.props,m=n.props,b=n.type,g=0;if("svg"===b&&(r=!0),null!=l)for(;g<l.length;g++)if((a=l[g])&&"setAttribute"in a==!!b&&(b?a.localName===b:3===a.nodeType)){t=a,l[g]=null;break}if(null==t){if(null===b)return document.createTextNode(m);t=r?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,m.is&&m),l=null,s=!1}if(null===b)v===m||s&&t.data===m||(t.data=m);else{if(l=l&&e.call(t.childNodes),d=(v=_.props||i).dangerouslySetInnerHTML,h=m.dangerouslySetInnerHTML,!s){if(null!=l)for(v={},g=0;g<t.attributes.length;g++)v[t.attributes[g].name]=t.attributes[g].value;(h||d)&&(h&&(d&&h.__html==d.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(e,t,n,_,o){var r;for(r in n)"children"===r||"key"===r||r in t||S(e,r,null,n[r],_);for(r in t)o&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||S(e,r,t[r],n[r],_)}(t,m,v,r,s),h)n.__k=[];else if(k(t,c(g=n.props.children)?g:[g],n,_,o,r&&"foreignObject"!==b,l,u,l?l[0]:_.__k&&y(_,0),s,f),null!=l)for(g=l.length;g--;)null!=l[g]&&p(l[g]);s||("value"in m&&void 0!==(g=m.value)&&(g!==t.value||"progress"===b&&!g||"option"===b&&g!==v.value)&&S(t,"value",g,v.value,!1),"checked"in m&&void 0!==(g=m.checked)&&g!==t.checked&&S(t,"checked",g,v.checked,!1))}return t}function M(e,n,_){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,_)}}function N(e,n,_){var o,r;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||M(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&N(o[r],n,_||"function"!=typeof e.type);_||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function O(e,t,n){return this.constructor(e,n)}function A(n,_,o){var r,l,u,s;t.__&&t.__(n,_),l=(r="function"==typeof o)?null:o&&o.__k||_.__k,u=[],s=[],L(_,n=(!r&&o||_).__k=a(h,null,[n]),l||i,i,void 0!==_.ownerSVGElement,!r&&o?[o]:l?null:_.firstChild?e.call(_.childNodes):null,u,!r&&o?o:l?l.__e:_.firstChild,r,s),D(u,n,s)}function H(e,t){A(e,t,H)}function W(t,n,_){var o,r,l,i,u=f({},t.props);for(l in t.type&&t.type.defaultProps&&(i=t.type.defaultProps),n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=void 0===n[l]&&void 0!==i?i[l]:n[l];return arguments.length>2&&(u.children=arguments.length>3?e.call(arguments,2):_),d(t.type,u,o||t.key,r||t.ref,null)}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var _ in n)Object.prototype.hasOwnProperty.call(n,_)&&(e[_]=n[_])}return e}).apply(this,arguments)}function F(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,_,o={},r=Object.keys(e);for(_=0;_<r.length;_++)t.indexOf(n=r[_])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return W(t,n)}function R(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=a(F,j({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var _=[],o={},r=0,l=t.attributes,i=t.childNodes;for(r=l.length;r--;)"slot"!==l[r].name&&(o[l[r].name]=l[r].value,o[B(l[r].name)]=l[r].value);for(r=i.length;r--;){var u=e(i[r],null),s=i[r].slot;s?o[s]=a(G,{name:s},u):_[r]=u}var c=n?a(G,null,_):_;return a(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?H:A)(this._vdom,this._root)}function B(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function I(e,t,n){if(this._vdom){var _={};_[e]=n=null==n?void 0:n,_[B(e)]=n,this._vdom=W(this._vdom,_),A(this._vdom,this._root)}}function $(){A(this._vdom=null,this._root)}function G(e,t){var n=this;return a("slot",j({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}e=u.slice,t={__e:function(e,t,n,_){for(var o,r,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(e)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,_||{}),l=o.__d),l)return o.__E=o}catch(t){e=t}throw e}},n=0,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),b(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},v.prototype.render=h,_=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},g.__r=0;var V=0;function z(e,n,_,o,r,l){var i,u,s={};for(u in n)"ref"==u?i=n[u]:s[u]=n[u];var c={type:e,props:s,key:_,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--V,__source:r,__self:l};if("function"==typeof e&&(i=e.defaultProps))for(u in i)void 0===s[u]&&(s[u]=i[u]);return t.vnode&&t.vnode(c),c}!function(e,t,n,_){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=R,o.prototype.attributeChangedCallback=I,o.prototype.disconnectedCallback=$,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("cars-calculator",o)}((function(e){return z("div",{children:z("h3",{children:"Hello World!"})})}),0,["backend-url"])})();
|
|
1
|
+
(()=>{"use strict";var e,t,n,r,l,o,i,u={},_=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,c=Array.isArray;function s(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function p(t,n,r){var l,o,i,u={};for(i in n)"key"==i?l=n[i]:"ref"==i?o=n[i]:u[i]=n[i];if(arguments.length>2&&(u.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return d(t,u,l,o,null)}function d(e,r,l,o,i){var u={type:e,props:r,key:l,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++n:i};return null==i&&null!=t.vnode&&t.vnode(u),u}function h(e){return e.children}function v(e,t){this.props=e,this.context=t}function y(e,t){if(null==t)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?y(e):null}function m(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!b.__r++||l!==t.debounceRendering)&&((l=t.debounceRendering)||o)(b)}function b(){var e,t,n,l,o,u,_,a,c;for(r.sort(i);e=r.shift();)e.__d&&(t=r.length,l=void 0,o=void 0,u=void 0,a=(_=(n=e).__v).__e,(c=n.__P)&&(l=[],o=[],(u=s({},_)).__v=_.__v+1,j(c,_,u,n.__n,void 0!==c.ownerSVGElement,null!=_.__h?[a]:null,l,null==a?y(_):a,_.__h,o),T(l,_,o),_.__e!=a&&m(_)),r.length>t&&r.sort(i));b.__r=0}function k(e,t,n,r,l,o,i,a,s,f,p){var v,y,m,g,b,k,S,A,E,N,T=0,H=r&&r.__k||_,O=H.length,U=O,F=t.length;for(n.__k=[],v=0;v<F;v++)null!=(g=n.__k[v]=null==(g=t[v])||"boolean"==typeof g||"function"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?d(null,g,null,null,g):c(g)?d(h,{children:g},null,null,null):g.__b>0?d(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)&&(g.__=n,g.__b=n.__b+1,-1===(A=C(g,H,S=v+T,U))?m=u:(m=H[A]||u,H[A]=void 0,U--),j(e,g,m,l,o,i,a,s,f,p),b=g.__e,(y=g.ref)&&m.ref!=y&&(m.ref&&P(m.ref,null,g),p.push(y,g.__c||b,g)),null!=b&&(null==k&&(k=b),N=!(E=m===u||null===m.__v)&&A===S,E?-1==A&&T--:A!==S&&(A===S+1?(T++,N=!0):A>S?U>F-S?(T+=A-S,N=!0):T--:T=A<S&&A==S-1?A-S:0),S=v+T,N=N||A==v&&!E,"function"!=typeof g.type||A===S&&m.__k!==g.__k?"function"==typeof g.type||N?void 0!==g.__d?(s=g.__d,g.__d=void 0):s=b.nextSibling:s=x(e,b,s):s=w(g,s,e),"function"==typeof n.type&&(n.__d=s)));for(n.__e=k,v=O;v--;)null!=H[v]&&("function"==typeof n.type&&null!=H[v].__e&&H[v].__e==n.__d&&(n.__d=H[v].__e.nextSibling),L(H[v],H[v]))}function w(e,t,n){for(var r,l=e.__k,o=0;l&&o<l.length;o++)(r=l[o])&&(r.__=e,t="function"==typeof r.type?w(r,t,n):x(n,r.__e,t));return t}function x(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function C(e,t,n,r){var l=e.key,o=e.type,i=n-1,u=n+1,_=t[n];if(null===_||_&&l==_.key&&o===_.type)return n;if(r>(null!=_?1:0))for(;i>=0||u<t.length;){if(i>=0){if((_=t[i])&&l==_.key&&o===_.type)return i;i--}if(u<t.length){if((_=t[u])&&l==_.key&&o===_.type)return u;u++}}return-1}function S(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||a.test(t)?n:n+"px"}function A(e,t,n,r,l){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?N:E,o):e.removeEventListener(t,o?N:E,o);else if("dangerouslySetInnerHTML"!==t){if(l)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function E(e){return this.l[e.type+!1](t.event?t.event(e):e)}function N(e){return this.l[e.type+!0](t.event?t.event(e):e)}function j(e,n,r,l,o,i,u,_,a,f){var p,d,y,m,g,b,w,x,C,S,A,E,N,j,T,P=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(a=r.__h,_=n.__e=r.__e,n.__h=null,i=[_]),(p=t.__b)&&p(n);try{e:if("function"==typeof P){if(x=n.props,C=(p=P.contextType)&&l[p.__c],S=p?C?C.props.value:p.__:l,r.__c?w=(d=n.__c=r.__c).__=d.__E:("prototype"in P&&P.prototype.render?n.__c=d=new P(x,S):(n.__c=d=new v(x,S),d.constructor=P,d.render=O),C&&C.sub(d),d.props=x,d.state||(d.state={}),d.context=S,d.__n=l,y=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=s({},d.__s)),s(d.__s,P.getDerivedStateFromProps(x,d.__s))),m=d.props,g=d.state,d.__v=n,y)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&x!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(x,S),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(x,d.__s,S)||n.__v===r.__v)){for(n.__v!==r.__v&&(d.props=x,d.state=d.__s,d.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[],d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(x,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,g,b)}))}if(d.context=S,d.props=x,d.__P=e,d.__e=!1,E=t.__r,N=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,E&&E(n),p=d.render(d.props,d.state,d.context),j=0;j<d._sb.length;j++)d.__h.push(d._sb[j]);d._sb=[]}else do{d.__d=!1,E&&E(n),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++N<25);d.state=d.__s,null!=d.getChildContext&&(l=s(s({},l),d.getChildContext())),y||null==d.getSnapshotBeforeUpdate||(b=d.getSnapshotBeforeUpdate(m,g)),k(e,c(T=null!=p&&p.type===h&&null==p.key?p.props.children:p)?T:[T],n,r,l,o,i,u,_,a,f),d.base=n.__e,n.__h=null,d.__h.length&&u.push(d),w&&(d.__E=d.__=null)}else null==i&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=H(r.__e,n,r,l,o,i,u,a,f);(p=t.diffed)&&p(n)}catch(e){n.__v=null,(a||null!=i)&&(n.__e=_,n.__h=!!a,i[i.indexOf(_)]=null),t.__e(e,n,r)}}function T(e,n,r){for(var l=0;l<r.length;l++)P(r[l],r[++l],r[++l]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function H(t,n,r,l,o,i,_,a,s){var p,d,h,v=r.props,m=n.props,g=n.type,b=0;if("svg"===g&&(o=!0),null!=i)for(;b<i.length;b++)if((p=i[b])&&"setAttribute"in p==!!g&&(g?p.localName===g:3===p.nodeType)){t=p,i[b]=null;break}if(null==t){if(null===g)return document.createTextNode(m);t=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),i=null,a=!1}if(null===g)v===m||a&&t.data===m||(t.data=m);else{if(i=i&&e.call(t.childNodes),d=(v=r.props||u).dangerouslySetInnerHTML,h=m.dangerouslySetInnerHTML,!a){if(null!=i)for(v={},b=0;b<t.attributes.length;b++)v[t.attributes[b].name]=t.attributes[b].value;(h||d)&&(h&&(d&&h.__html==d.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(e,t,n,r,l){var o;for(o in n)"children"===o||"key"===o||o in t||A(e,o,null,n[o],r);for(o in t)l&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||A(e,o,t[o],n[o],r)}(t,m,v,o,a),h)n.__k=[];else if(k(t,c(b=n.props.children)?b:[b],n,r,l,o&&"foreignObject"!==g,i,_,i?i[0]:r.__k&&y(r,0),a,s),null!=i)for(b=i.length;b--;)null!=i[b]&&f(i[b]);a||("value"in m&&void 0!==(b=m.value)&&(b!==t.value||"progress"===g&&!b||"option"===g&&b!==v.value)&&A(t,"value",b,v.value,!1),"checked"in m&&void 0!==(b=m.checked)&&b!==t.checked&&A(t,"checked",b,v.checked,!1))}return t}function P(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function L(e,n,r){var l,o;if(t.unmount&&t.unmount(e),(l=e.ref)&&(l.current&&l.current!==e.__e||P(l,null,n)),null!=(l=e.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(e){t.__e(e,n)}l.base=l.__P=null,e.__c=void 0}if(l=e.__k)for(o=0;o<l.length;o++)l[o]&&L(l[o],n,r||"function"!=typeof e.type);r||null==e.__e||f(e.__e),e.__=e.__e=e.__d=void 0}function O(e,t,n){return this.constructor(e,n)}function U(n,r,l){var o,i,_,a;t.__&&t.__(n,r),i=(o="function"==typeof l)?null:l&&l.__k||r.__k,_=[],a=[],j(r,n=(!o&&l||r).__k=p(h,null,[n]),i||u,u,void 0!==r.ownerSVGElement,!o&&l?[l]:i?null:r.firstChild?e.call(r.childNodes):null,_,!o&&l?l:i?i.__e:r.firstChild,o,a),T(_,n,a)}function F(e,t){U(e,t,F)}function M(t,n,r){var l,o,i,u,_=s({},t.props);for(i in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),n)"key"==i?l=n[i]:"ref"==i?o=n[i]:_[i]=void 0===n[i]&&void 0!==u?u[i]:n[i];return arguments.length>2&&(_.children=arguments.length>3?e.call(arguments,2):r),d(t.type,_,l||t.key,o||t.ref,null)}function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function D(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(l[n]=e[n]);return l}(e,["context","children"]);return M(t,n)}function W(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(D,V({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],l={},o=0,i=t.attributes,u=t.childNodes;for(o=i.length;o--;)"slot"!==i[o].name&&(l[i[o].name]=i[o].value,l[I(i[o].name)]=i[o].value);for(o=u.length;o--;){var _=e(u[o],null),a=u[o].slot;a?l[a]=p($,{name:a},_):r[o]=_}var c=n?p($,null,r):r;return p(n||t.nodeName.toLowerCase(),l,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?F:U)(this._vdom,this._root)}function I(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[I(e)]=n,this._vdom=M(this._vdom,r),U(this._vdom,this._root)}}function R(){U(this._vdom=null,this._root)}function $(e,t){var n=this;return p("slot",V({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}e=_.slice,t={__e:function(e,t,n,r){for(var l,o,i;t=t.__;)if((l=t.__c)&&!l.__)try{if((o=l.constructor)&&null!=o.getDerivedStateFromError&&(l.setState(o.getDerivedStateFromError(e)),i=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e,r||{}),i=l.__d),i)return l.__E=l}catch(t){e=t}throw e}},n=0,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof e&&(e=e(s({},n),this.props)),e&&s(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),g(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},v.prototype.render=h,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,i=function(e,t){return e.__v.__b-t.__v.__b},b.__r=0;let B,z,G,Q={data:""},Y=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Q,Z=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,J=/\/\*[^]*?\*\/| +/g,K=/\n+/g,X=(e,t)=>{let n="",r="",l="";for(let o in e){let i=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+i+";":r+="f"==o[1]?X(i,o):o+"{"+X(i,"k"==o[1]?"":t)+"}":"object"==typeof i?r+=X(i,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=i&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=X.p?X.p(o,i):o+":"+i+";")}return n+(t&&l?t+"{"+l+"}":l)+r},ee={},te=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+te(e[n]);return t}return e},ne=(e,t,n,r,l)=>{let o=te(e),i=ee[o]||(ee[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(o));if(!ee[i]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=Z.exec(e.replace(J,""));)t[4]?r.shift():t[3]?(n=t[3].replace(K," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(K," ").trim();return r[0]})(e);ee[i]=X(l?{["@keyframes "+i]:t}:t,n?"":"."+i)}let u=n&&ee.g?ee.g:null;return n&&(ee.g=ee[i]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(ee[i],t,r,u),i},re=(e,t,n)=>e.reduce(((e,r,l)=>{let o=t[l];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":X(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");function le(e){let t=this||{},n=e.call?e(t.p):e;return ne(n.unshift?n.raw?re(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Y(t.target),t.g,t.o,t.k)}function oe(e,t){let n=this||{};return function(){let r=arguments;function l(o,i){let u=Object.assign({},o),_=u.className||l.className;n.p=Object.assign({theme:z&&z()},u),n.o=/ *go\d+/.test(_),u.className=le.apply(n,r)+(_?" "+_:""),t&&(u.ref=i);let a=e;return e[0]&&(a=u.as||e,delete u.as),G&&a[0]&&G(u),B(a,u)}return t?t(l):l}}le.bind({g:1}),le.bind({k:1});var ie=oe("div")([{display:"grid","@media (min-width: 768px)":{gridTemplateColumns:"repeat(1, minmax(0, 1fr))"},"@media (min-width: 1024px)":{gridTemplateColumns:"repeat(3, minmax(0, 1fr))"}}]),ue=oe("div")([{"@media (min-width: 1024px)":{order:"9999"}}]),_e=oe("div")([{padding:"5rem","@media (min-width: 1024px)":{gridColumn:"span 2 / span 2"}}]),ae=oe("button")([{width:"fit-content",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.625rem",paddingBottom:"0.625rem","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"}}]),ce=oe("select")([{marginTop:"1.25rem",display:"block",width:"100%",borderRadius:"0.375rem",borderWidth:"4px",padding:"0.75rem",fontSize:"1.125rem",lineHeight:"1.75rem"}]);const se=function(e){var t=e.inputLabel,n=e.items;return p("label",{class:"block"},p("span",null,t),p(ce,null,n.map((function(e){return p("option",{key:e.key},e.value)}))))};var fe,pe,de,he,ve=oe("h2")([{fontSize:"1.5rem",lineHeight:"2rem"}]),ye=oe("div")([{}]),me=oe("div")([{marginTop:"2.5rem"}]),ge=0,be=[],ke=[],we=t.__b,xe=t.__r,Ce=t.diffed,Se=t.__c,Ae=t.unmount;function Ee(e){return ge=1,function(e,n,r){var l=function(e,n){t.__h&&t.__h(pe,e,ge||n),ge=0;var r=pe.__H||(pe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:ke}),r.__[e]}(fe++,2);if(l.t=e,!l.__c&&(l.__=[Le(void 0,n),function(e){var t=l.__N?l.__N[0]:l.__[0],n=l.t(t,e);t!==n&&(l.__N=[n,l.__[1]],l.__c.setState({}))}],l.__c=pe,!pe.u)){var o=function(e,t,n){if(!l.__c.__H)return!0;var r=l.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&l.__c.props===e)&&(!i||i.call(this,e,t,n))};pe.u=!0;var i=pe.shouldComponentUpdate,u=pe.componentWillUpdate;pe.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}u&&u.call(this,e,t,n)},pe.shouldComponentUpdate=o}return l.__N||l.__}(Le,e)}function Ne(){for(var e;e=be.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(He),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}}t.__b=function(e){pe=null,we&&we(e)},t.__r=function(e){xe&&xe(e),fe=0;var t=(pe=e.__c).__H;t&&(de===pe?(t.__h=[],pe.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ke,e.__N=e.i=void 0}))):(t.__h.forEach(He),t.__h.forEach(Pe),t.__h=[],fe=0)),de=pe},t.diffed=function(e){Ce&&Ce(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==be.push(n)&&he===t.requestAnimationFrame||((he=t.requestAnimationFrame)||Te)(Ne)),n.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ke&&(e.__=e.__V),e.i=void 0,e.__V=ke}))),de=pe=null},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(He),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),Se&&Se(e,n)},t.unmount=function(e){Ae&&Ae(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{He(e)}catch(e){n=e}})),r.__H=void 0,n&&t.__e(n,r.__v))};var je="function"==typeof requestAnimationFrame;function Te(e){var t,n=function(){clearTimeout(r),je&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);je&&(t=requestAnimationFrame(n))}function He(e){var t=pe,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),pe=t}function Pe(e){var t=pe;e.__c=e.__(),pe=t}function Le(e,t){return"function"==typeof t?t(e):t}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const Ue=function(e){var t=e.label,n=e.defaultValue,r=e.max,l=e.rangeAdjustment,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,i,u=[],_=!0,a=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_=!1}else for(;!(_=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);_=!0);}catch(e){a=!0,l=e}finally{try{if(!_&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw l}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Ee(n),2),i=o[0],u=o[1];return p("div",null,p("label",{htmlFor:"quantity"},t),p("div",{class:"flex"},p("input",{class:"block text-lg w-full border-4 mt-5 p-3 rounded-md",type:"number",value:i,min:"0",max:r}),p("button",{onClick:function(){u((function(e){return e>0?e-l:e}))}},"-"),p("button",{onClick:function(){u((function(e){return e<r?e+l:e}))}},"+")))};function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const Me=function(e){var t=e.label,n=e.items,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,i,u=[],_=!0,a=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_=!1}else for(;!(_=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);_=!0);}catch(e){a=!0,l=e}finally{try{if(!_&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw l}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Ee(""),2),l=r[0],o=r[1],i=function(e){o(e.target.value)};return p("div",null,p("label",{htmlFor:"quantity"},t),p("div",{className:"button-group w-full mt-5"},n.map((function(e,t){return p(h,{key:t},p("input",{type:"radio",value:e.key,checked:l===e.key,onChange:i,id:e.key}),p("label",{htmlFor:e.key},e.value))}))))};var Ve=[{key:"Electric or PHEV",value:"Electric or PHEV"},{key:"Petrol, Diesel or Hybrid",value:"Petrol, Diesel or Hybrid"},{key:"Not Sure",value:"Not Sure"}],De=[{key:"small",value:"Small"},{key:"medium",value:"Medium"},{key:"SUV",value:"SUV"},{key:"Ute",value:"Ute"},{key:"Luxury",value:"Luxury"}],We=[{key:"1",value:"1"},{key:"2",value:"2"},{key:"3",value:"3"},{key:"4",value:"4"},{key:"5",value:"5"}];const Ie=function(){return p(ye,null,p(ve,null,"What type of car are you interested in?"),p(me,null,p("div",{class:"grid grid-cols-2 gap-x-8"},p(se,{inputLabel:"Vehicle size",items:De}),p(se,{inputLabel:"Engine type",items:Ve}))),p(me,null,p(Ue,{defaultValue:0,label:"Vehical cost",max:1e7,rangeAdjustment:5e3})),p(me,null,p(Ue,{defaultValue:0,label:"Annual kms",max:1e6,rangeAdjustment:5e3})),p(me,null,p(Me,{label:"Lease Term",items:We})))},qe=function(e){return p("div",null,p("label",null,e.label),p("input",{class:"block text-lg w-full border-4 mt-5 p-3 rounded-md",type:"text"}))};var Re=[{key:"monthly",value:"Monthly"},{key:"weekly",value:"Weekly"},{key:"fortnightly",value:"Fortnightly"}],$e=[{key:"fulltime",value:"Full time"},{key:"parttime",value:"Part time"},{key:"contract",value:"Contract"}],Be=[{key:"NSW",value:"New South Wales"},{key:"VIC",value:"Victoria"},{key:"QLD",value:"Queensland"},{key:"WA",value:"Western Australia"},{key:"SA",value:"South Australia"},{key:"TAS",value:"Tasmania"},{key:"NT",value:"Northern Territory"},{key:"ACT",value:"Australian Capital Territory"}];const ze=function(){return p(ye,null,p(ve,null,"Employment Details"),p(me,null,p(Ue,{defaultValue:0,label:"Annual Salary",max:1e6,rangeAdjustment:5e3})),p(me,null,p("div",{class:"grid grid-cols-2 gap-x-8"},p(se,{inputLabel:"Pay frequency",items:Re}),p(se,{inputLabel:"Employment type",items:$e}))),p(me,null,p(qe,{label:"Employer Name"})),p(me,null,p(se,{inputLabel:"Location",items:Be})))},Ge=function(){return p(ye,null,p(ve,null,"Contact Details"),p(me,null,p("div",{class:"grid grid-cols-2 gap-x-8"},p(qe,{label:"First Name"}),p(qe,{label:"Last Name"}))),p(me,null,p(qe,{label:"Email"})),p(me,null,p("div",{class:"grid grid-cols-2 gap-x-8"},p(qe,{label:"Mobile"}),p(qe,{label:"Postcode"}))))};function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const Ye=function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,o,i,u=[],_=!0,a=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_=!1}else for(;!(_=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);_=!0);}catch(e){a=!0,l=e}finally{try{if(!_&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw l}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Ee(1),2),t=e[0],n=e[1],r="";return p(ie,null,p(ue,null,p("img",{src:"https://placehold.co/900x1600/webp",alt:"Placeholder"})),p(_e,null,function(e){switch(e){case 1:return r="Employment Name",p(Ie,null);case 2:return r="Contact Details",p(ze,null);case 3:return r="Your Estimate",p(Ge,null);default:return p(Fragment,null)}}(t),p("div",{className:"mt-10"},p("div",{className:t>1?"flex justify-between":"flex justify-end"},t>1&&p("button",{onClick:function(){n((function(e){return Math.max(e-1,1)}))}},"Previous"),t<=3&&p(ae,{onClick:function(){n((function(e){return Math.min(e+1,3)}))}},p("span",{className:"text-blue-500/50 text-sm"},"Next:")," ",r)))))};var Ze;Ze=p,X.p=void 0,B=Ze,z=void 0,G=void 0,function(e,t,n,r){function l(){var t=Reflect.construct(HTMLElement,[],l);return t._vdomComponent=e,t._root=t,t}(l.prototype=Object.create(HTMLElement.prototype)).constructor=l,l.prototype.connectedCallback=W,l.prototype.attributeChangedCallback=q,l.prototype.disconnectedCallback=R,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),l.observedAttributes=n,n.forEach((function(e){Object.defineProperty(l.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("cars-calculator",l)}((function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),p("div",{class:"overflow-hidden lg:h-screen"},p(Ye,null))}),0,["backend-url"])})();
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/salpac-cars-calculator",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "Flare Cars Calculator",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/"
|
|
8
8
|
],
|
|
9
|
+
"babelMacros": {
|
|
10
|
+
"twin": {
|
|
11
|
+
"preset": "goober"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
9
14
|
"scripts": {
|
|
10
15
|
"start": "webpack serve --mode development",
|
|
11
16
|
"build": "webpack --mode production --node-env production",
|
|
@@ -21,7 +26,9 @@
|
|
|
21
26
|
},
|
|
22
27
|
"devDependencies": {
|
|
23
28
|
"@babel/core": "^7.22.8",
|
|
29
|
+
"@babel/plugin-transform-react-jsx": "^7.22.5",
|
|
24
30
|
"@babel/preset-env": "^7.22.7",
|
|
31
|
+
"@babel/preset-flow": "^7.22.5",
|
|
25
32
|
"@svgr/webpack": "^6.3.1",
|
|
26
33
|
"@tailwindcss/forms": "^0.5.2",
|
|
27
34
|
"@testing-library/jest-dom": "^5.16.5",
|
|
@@ -31,6 +38,11 @@
|
|
|
31
38
|
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
32
39
|
"@typescript-eslint/parser": "^5.33.0",
|
|
33
40
|
"autoprefixer": "^10.4.7",
|
|
41
|
+
"babel-jest": "^29.6.1",
|
|
42
|
+
"babel-loader": "^9.1.3",
|
|
43
|
+
"babel-plugin-macros": "^3.1.0",
|
|
44
|
+
"babel-plugin-transform-goober": "^1.2.0",
|
|
45
|
+
"babel-plugin-twin": "^1.1.0",
|
|
34
46
|
"css-loader": "^6.7.1",
|
|
35
47
|
"cssnano": "^5.1.12",
|
|
36
48
|
"eslint": "^8.21.0",
|
|
@@ -41,10 +53,10 @@
|
|
|
41
53
|
"jest": "^27.5.1",
|
|
42
54
|
"postcss": "^8.4.14",
|
|
43
55
|
"postcss-loader": "^7.0.1",
|
|
44
|
-
"preact-cli": "^3.4.6",
|
|
45
56
|
"prettier": "^2.7.1",
|
|
46
|
-
"tailwindcss": "^3.3.
|
|
57
|
+
"tailwindcss": "^3.3.3",
|
|
47
58
|
"ts-loader": "^9.3.1",
|
|
59
|
+
"twin.macro": "^3.3.1",
|
|
48
60
|
"typescript": "^4.7.4",
|
|
49
61
|
"webpack": "^5.74.0",
|
|
50
62
|
"webpack-cli": "^4.10.0",
|