adp-web-components 0.0.13 → 0.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.
- package/dist/cjs/{loader-baf2418b.js → Loading-20e4ef35.js} +9 -0
- package/dist/cjs/app-globals-26499410.js +33 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +3 -4
- package/dist/cjs/distributor-lookup.cjs.entry.js +3 -4
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +1046 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +5 -5
- package/dist/cjs/form-input.cjs.entry.js +2 -2
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
- package/dist/cjs/{index-d4b5214c.js → index-97b8da6d.js} +289 -8
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +3 -4
- package/dist/cjs/shift-components.cjs.js +3 -3
- package/dist/cjs/vehicle-lookup.cjs.entry.js +168 -0
- package/dist/collection/collection-manifest.json +8 -6
- package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -1
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +2 -2
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -1
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +3 -3
- package/dist/collection/components/form-input/form-input.js +1 -1
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.css +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -1
- package/dist/collection/components/service-history/service-history.css +1 -1
- package/dist/collection/components/service-history/service-history.js +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -3
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +366 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +1 -1
- package/dist/collection/components/warranty-details/warranty-details.css +1 -1
- package/dist/collection/components/warranty-details/warranty-details.js +1 -1
- package/dist/collection/global/lib/middleware.js +26 -0
- package/dist/collection/global/lib/validate-vin.js +62 -0
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/dynamic-claim.js +1 -1
- package/dist/components/dynamic-redeem.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-05871c28.js +5 -0
- package/dist/components/p-23551e81.js +5 -0
- package/dist/components/p-325b6857.js +5 -0
- package/dist/components/{p-50f73226.js → p-3bf0339d.js} +1 -1
- package/dist/components/p-514c4736.js +5 -0
- package/dist/components/{p-2b0cc0c6.js → p-8385e385.js} +1 -1
- package/dist/components/p-be0a5ab5.js +5 -0
- package/dist/components/p-c8eef708.js +5 -0
- package/dist/components/p-da533bd7.js +5 -0
- package/dist/components/p-e46b126e.js +5 -0
- package/dist/components/p-f1ffc23d.js +5 -0
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-lookup.d.ts +11 -0
- package/dist/components/vehicle-lookup.js +5 -0
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/{loader-027b88af.js → Loading-d050617c.js} +9 -1
- package/dist/esm/app-globals-7790014c.js +31 -0
- package/dist/esm/dead-stock-lookup.entry.js +3 -4
- package/dist/esm/distributor-lookup.entry.js +3 -4
- package/dist/esm/dynamic-claim_6.entry.js +1037 -0
- package/dist/esm/dynamic-redeem.entry.js +5 -5
- package/dist/esm/form-input.entry.js +2 -2
- package/dist/esm/general-inquiry-form.entry.js +2 -2
- package/dist/esm/{index-ef54644b.js → index-ff1dab22.js} +289 -8
- package/dist/esm/loader.js +4 -4
- package/dist/esm/manufacturer-lookup.entry.js +3 -4
- package/dist/esm/shift-components.js +4 -4
- package/dist/esm/vehicle-lookup.entry.js +164 -0
- package/dist/shift-components/{p-894e7518.entry.js → p-15e82b1a.entry.js} +1 -1
- package/dist/shift-components/p-1a727cfd.entry.js +5 -0
- package/dist/shift-components/p-2bb4415e.entry.js +5 -0
- package/dist/shift-components/p-3f3b41b4.entry.js +5 -0
- package/dist/shift-components/{p-8e818568.entry.js → p-4c3f2850.entry.js} +1 -1
- package/dist/shift-components/p-4ca95c3d.entry.js +5 -0
- package/dist/shift-components/p-65939a2f.js +5 -0
- package/dist/shift-components/p-7177b6f0.entry.js +5 -0
- package/dist/shift-components/p-8b198a04.entry.js +5 -0
- package/dist/shift-components/p-a92f02d4.js +5 -0
- package/dist/shift-components/p-f37b60d5.js +6 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +32 -0
- package/dist/types/components.d.ts +46 -2
- package/dist/types/global/lib/middleware.d.ts +0 -0
- package/dist/types/global/lib/validate-vin.d.ts +1 -0
- package/dist/types/global/types/components.d.ts +3 -0
- package/package.json +1 -1
- package/readme.md +2 -91
- package/dist/cjs/Loading-ee1a2ceb.js +0 -16
- package/dist/cjs/app-globals-3813fb46.js +0 -9
- package/dist/cjs/dynamic-claim.cjs.entry.js +0 -306
- package/dist/cjs/image-expansion-a9c9c6f7.js +0 -77
- package/dist/cjs/paint-thickness.cjs.entry.js +0 -118
- package/dist/cjs/service-history.cjs.entry.js +0 -103
- package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -122
- package/dist/cjs/vehicle-specification.cjs.entry.js +0 -98
- package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
- package/dist/cjs/warranty-details.cjs.entry.js +0 -257
- package/dist/components/p-4dc47f5f.js +0 -5
- package/dist/components/p-8375923d.js +0 -5
- package/dist/components/p-a454210b.js +0 -5
- package/dist/esm/Loading-61648252.js +0 -14
- package/dist/esm/app-globals-8befa224.js +0 -7
- package/dist/esm/dynamic-claim.entry.js +0 -302
- package/dist/esm/image-expansion-08c4bf0d.js +0 -73
- package/dist/esm/paint-thickness.entry.js +0 -114
- package/dist/esm/service-history.entry.js +0 -99
- package/dist/esm/vehicle-accessories.entry.js +0 -118
- package/dist/esm/vehicle-specification.entry.js +0 -94
- package/dist/esm/vehicleInformation-f7290628.js +0 -50
- package/dist/esm/warranty-details.entry.js +0 -253
- package/dist/shift-components/p-517b3e04.js +0 -5
- package/dist/shift-components/p-65e6ab8e.js +0 -5
- package/dist/shift-components/p-6b21ce2d.entry.js +0 -5
- package/dist/shift-components/p-7d85e912.entry.js +0 -5
- package/dist/shift-components/p-7f258017.entry.js +0 -5
- package/dist/shift-components/p-9653e992.entry.js +0 -5
- package/dist/shift-components/p-a21e2e2e.js +0 -5
- package/dist/shift-components/p-c4fad245.js +0 -5
- package/dist/shift-components/p-ca1e2e5b.entry.js +0 -5
- package/dist/shift-components/p-d1b9cd93.entry.js +0 -5
- package/dist/shift-components/p-d5ff7544.js +0 -5
- package/dist/shift-components/p-d6f40c8d.entry.js +0 -5
- package/dist/shift-components/p-e05acce1.entry.js +0 -5
- package/dist/shift-components/p-e97316d2.js +0 -6
- package/dist/shift-components/p-faa8070a.entry.js +0 -5
- package/dist/shift-components/p-feb3df85.entry.js +0 -5
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,h as e,H as r,g as i}from"./p-e97316d2.js";function n(t){this._maxSize=t,this.clear()}n.prototype.clear=function(){this._size=0,this._values=Object.create(null)},n.prototype.get=function(t){return this._values[t]},n.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var s=/[^.^\]^[]+|(?=\[\]|\.\.)/g,a=/^\d+$/,o=/^\d/,u=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,h=new n(512),f=new n(512),c=new n(512),d={Cache:n,split:m,normalizePath:p,setter:function(t){var e=p(t);return f.get(t)||f.set(t,(function(t,r){for(var i=0,n=e.length,s=t;i<n-1;){var a=e[i];if("__proto__"===a||"constructor"===a||"prototype"===a)return t;s=s[e[i++]]}s[e[i]]=r}))},getter:function(t,e){var r=p(t);return c.get(t)||c.set(t,(function(t){for(var i=0,n=r.length;i<n;){if(null==t&&e)return;t=t[r[i++]]}return t}))},join:function(t){return t.reduce((function(t,e){return t+(b(e)||a.test(e)?"["+e+"]":(t?".":"")+e)}),"")},forEach:function(t,e,r){!function(t,e,r){var i,n,s,a,o=t.length;for(n=0;n<o;n++)(i=t[n])&&(x(i)&&(i='"'+i+'"'),s=!(a=b(i))&&/^\d+$/.test(i),e.call(r,i,a,s,n,t))}(Array.isArray(t)?t:m(t),e,r)}};function p(t){return h.get(t)||h.set(t,m(t).map((function(t){return t.replace(l,"$2")})))}function m(t){return t.match(s)||[""]}function b(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function x(t){return!b(t)&&(function(t){return t.match(o)&&!t.match(a)}(t)||function(t){return u.test(t)}(t))}const w=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,v=t=>t.match(w)||[];var g=t=>v(t).reduce(((t,e)=>`${t}${t?e[0].toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()}`),""),y=t=>((t,e)=>v(t).join(e).toLowerCase())(t,"_"),F={exports:{}};function $(t,e){var r=t.length,i=new Array(r),n={},s=r,a=function(t){for(var e=new Map,r=0,i=t.length;r<i;r++){var n=t[r];e.has(n[0])||e.set(n[0],new Set),e.has(n[1])||e.set(n[1],new Set),e.get(n[0]).add(n[1])}return e}(e),o=function(t){for(var e=new Map,r=0,i=t.length;r<i;r++)e.set(t[r],r);return e}(t);for(e.forEach((function(t){if(!o.has(t[0])||!o.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));s--;)n[s]||u(t[s],s,new Set);return i;function u(t,e,s){if(s.has(t)){var l;try{l=", node was:"+JSON.stringify(t)}catch(t){l=""}throw new Error("Cyclic dependency"+l)}if(!o.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!n[e]){n[e]=!0;var h=a.get(t)||new Set;if(e=(h=Array.from(h)).length){s.add(t);do{var f=h[--e];u(f,o.get(f),s)}while(e);s.delete(t)}i[--r]=t}}}F.exports=function(t){return $(function(t){for(var e=new Set,r=0,i=t.length;r<i;r++){var n=t[r];e.add(n[0]),e.add(n[1])}return Array.from(e)}(t),t)},F.exports.array=$;const O=F.exports,E=Object.prototype.toString,k=Error.prototype.toString,j=RegExp.prototype.toString,A="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",D=/^Symbol\((.*)\)(.*)$/;function S(t,e=!1){if(null==t||!0===t||!1===t)return""+t;const r=typeof t;if("number"===r)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===r)return e?`"${t}"`:t;if("function"===r)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===r)return A.call(t).replace(D,"Symbol($1)");const i=E.call(t).slice(8,-1);return"Date"===i?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===i||t instanceof Error?"["+k.call(t)+"]":"RegExp"===i?j.call(t):null}function z(t,e){let r=S(t,e);return null!==r?r:JSON.stringify(t,(function(t,r){let i=S(this[t],e);return null!==i?i:r}),2)}function T(t){return null==t?[]:[].concat(t)}let _,C,N,V=/\$\{\s*(\w+)\s*\}/g;_=Symbol.toStringTag;class Z{constructor(t,e,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_]="Error",this.name="ValidationError",this.value=e,this.path=r,this.type=i,this.errors=[],this.inner=[],T(t).forEach((t=>{M.isError(t)?(this.errors.push(...t.errors),this.inner.push(...t.inner.length?t.inner:[t])):this.errors.push(t)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}C=Symbol.hasInstance,N=Symbol.toStringTag;class M extends Error{static formatError(t,e){return e=Object.assign({},e,{path:e.label||e.path||"this",originalPath:e.path}),"string"==typeof t?t.replace(V,((t,r)=>z(e[r]))):"function"==typeof t?t(e):t}static isError(t){return t&&"ValidationError"===t.name}constructor(t,e,r,i,n){const s=new Z(t,e,r,i);if(n)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[N]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,M)}static[C](t){return Z[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let q={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:i})=>{const n=null!=i&&i!==r?` (cast from the value \`${z(i,!0)}\`).`:".";return"mixed"!==e?`${t} must be a \`${e}\` type, but the final value was: \`${z(r,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${z(r,!0)}\``+n}},U={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},P={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},R={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},I={notType:t=>{const{path:e,value:r,spec:i}=t,n=i.types.length;if(Array.isArray(r)){if(r.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${z(r,!0)}\``;if(r.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${z(r,!0)}\``}return M.formatError(q.notType,t)}};Object.assign(Object.create(null),{mixed:q,string:U,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:P,object:R,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"},tuple:I});const L=t=>t&&t.__isYupSchema__;class J{static fromOptions(t,e){if(!e.then&&!e.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:n}=e,s="function"==typeof r?r:(...t)=>t.every((t=>t===r));return new J(t,((t,e)=>{var r;let a=s(...t)?i:n;return null!=(r=null==a?void 0:a(e))?r:e}))}constructor(t,e){this.fn=void 0,this.refs=t,this.refs=t,this.fn=e}resolve(t,e){let r=this.refs.map((t=>t.getValue(null==e?void 0:e.value,null==e?void 0:e.parent,null==e?void 0:e.context))),i=this.fn(r,t,e);if(void 0===i||i===t)return t;if(!L(i))throw new TypeError("conditions must return a schema object");return i.resolve(e)}}class Y{constructor(t,e={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue,this.path=this.key.slice((this.isContext?"$":this.isValue?".":"").length),this.getter=this.path&&d.getter(this.path,!0),this.map=e.map}getValue(t,e,r){let i=this.isContext?r:this.isValue?t:e;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,e){return this.getValue(t,null==e?void 0:e.parent,null==e?void 0:e.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Y.prototype.__isYupRef=!0;const H=t=>null==t;function K(t){function e({value:e,path:r="",options:i,originalValue:n,schema:s},a,o){const{name:u,test:l,params:h,message:f,skipAbsent:c}=t;let{parent:d,context:p,abortEarly:m=s.spec.abortEarly,disableStackTrace:b=s.spec.disableStackTrace}=i;function x(t){return Y.isRef(t)?t.getValue(e,d,p):t}function w(t={}){const i=Object.assign({value:e,originalValue:n,label:s.spec.label,path:t.path||r,spec:s.spec,disableStackTrace:t.disableStackTrace||b},h,t.params);for(const t of Object.keys(i))i[t]=x(i[t]);const a=new M(M.formatError(t.message||f,i),e,i.path,t.type||u,i.disableStackTrace);return a.params=i,a}const v=m?a:o;let g={path:r,parent:d,type:u,from:i.from,createError:w,resolve:x,options:i,originalValue:n,schema:s};const y=t=>{M.isError(t)?v(t):t?o(null):v(w())},F=t=>{M.isError(t)?v(t):a(t)};if(c&&H(e))return y(!0);let $;try{var O;if($=l.call(g,e,g),"function"==typeof(null==(O=$)?void 0:O.then)){if(i.sync)throw new Error(`Validation test of type: "${g.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve($).then(y,F)}}catch(t){return void F(t)}y($)}return e.OPTIONS=t,e}function B(t,e,r,i=r){let n,s,a;return e?(d.forEach(e,((o,u,l)=>{let h=u?o.slice(1,o.length-1):o,f="tuple"===(t=t.resolve({context:i,parent:n,value:r})).type,c=l?parseInt(h,10):0;if(t.innerType||f){if(f&&!l)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&c>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${e}. because there is no value at that index. `);n=r,r=r&&r[c],t=f?t.spec.types[c]:t.innerType}if(!l){if(!t.fields||!t.fields[h])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t.type}")`);n=r,r=r&&r[h],t=t.fields[h]}s=h,a=u?"["+o+"]":"."+o})),{schema:t,parent:n,parentPath:s}):{parent:n,parentPath:e,schema:t}}class G extends Set{describe(){const t=[];for(const e of this.values())t.push(Y.isRef(e)?e.describe():e);return t}resolveAll(t){let e=[];for(const r of this.values())e.push(t(r));return e}clone(){return new G(this.values())}merge(t,e){const r=this.clone();return t.forEach((t=>r.add(t))),e.forEach((t=>r.delete(t))),r}}function Q(t,e=new Map){if(L(t)||!t||"object"!=typeof t)return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let i=0;i<t.length;i++)r[i]=Q(t[i],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(const[i,n]of t.entries())r.set(i,Q(n,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(const i of t)r.add(Q(i,e))}else{if(!(t instanceof Object))throw Error(`Unable to clone ${t}`);r={},e.set(t,r);for(const[i,n]of Object.entries(t))r[i]=Q(n,e)}return r}class W{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new G,this._blacklist=new G,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(q.notType)})),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==t?void 0:t.spec),this.withMutation((t=>{t.nonNullable()}))}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const e=Object.create(Object.getPrototypeOf(this));return e.type=this.type,e._typeCheck=this._typeCheck,e._whitelist=this._whitelist.clone(),e._blacklist=this._blacklist.clone(),e.internalTests=Object.assign({},this.internalTests),e.exclusiveTests=Object.assign({},this.exclusiveTests),e.deps=[...this.deps],e.conditions=[...this.conditions],e.tests=[...this.tests],e.transforms=[...this.transforms],e.spec=Q(Object.assign({},this.spec,t)),e}label(t){let e=this.clone();return e.spec.label=t,e}meta(...t){if(0===t.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},t[0]),e}withMutation(t){let e=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=e,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let e=this,r=t.clone();const i=Object.assign({},e.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},e.internalTests,r.internalTests),r._whitelist=e._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=e._blacklist.merge(t._blacklist,t._whitelist),r.tests=e.tests,r.exclusiveTests=e.exclusiveTests,r.withMutation((e=>{t.tests.forEach((t=>{e.test(t.OPTIONS)}))})),r.transforms=[...e.transforms,...r.transforms],r}isType(t){return null==t?!(!this.spec.nullable||null!==t)||!(!this.spec.optional||void 0!==t):this._typeCheck(t)}resolve(t){let e=this;if(e.conditions.length){let r=e.conditions;e=e.clone(),e.conditions=[],e=r.reduce(((e,r)=>r.resolve(e,t)),e),e=e.resolve(t)}return e}resolveOptions(t){var e,r,i,n;return Object.assign({},t,{from:t.from||[],strict:null!=(e=t.strict)?e:this.spec.strict,abortEarly:null!=(r=t.abortEarly)?r:this.spec.abortEarly,recursive:null!=(i=t.recursive)?i:this.spec.recursive,disableStackTrace:null!=(n=t.disableStackTrace)?n:this.spec.disableStackTrace})}cast(t,e={}){let r=this.resolve(Object.assign({value:t},e)),i="ignore-optionality"===e.assert,n=r._cast(t,e);if(!1!==e.assert&&!r.isType(n)){if(i&&H(n))return n;let s=z(t),a=z(n);throw new TypeError(`The value of ${e.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${s} \n`+(a!==s?`result of cast: ${a}`:""))}return n}_cast(t,e){let r=void 0===t?t:this.transforms.reduce(((e,r)=>r.call(this,e,t,this)),t);return void 0===r&&(r=this.getDefault(e)),r}_validate(t,e={},r,i){let{path:n,originalValue:s=t,strict:a=this.spec.strict}=e,o=t;a||(o=this._cast(o,Object.assign({assert:!1},e)));let u=[];for(let t of Object.values(this.internalTests))t&&u.push(t);this.runTests({path:n,value:o,originalValue:s,options:e,tests:u},r,(t=>{if(t.length)return i(t,o);this.runTests({path:n,value:o,originalValue:s,options:e,tests:this.tests},r,i)}))}runTests(t,e,r){let i=!1,{tests:n,value:s,originalValue:a,path:o,options:u}=t,l=t=>{i||(i=!0,e(t,s))},h=t=>{i||(i=!0,r(t,s))},f=n.length,c=[];if(!f)return h([]);let d={value:s,originalValue:a,path:o,options:u,schema:this};for(let t=0;t<n.length;t++)(0,n[t])(d,l,(function(t){t&&(Array.isArray(t)?c.push(...t):c.push(t)),--f<=0&&h(c)}))}asNestedTest({key:t,index:e,parent:r,parentPath:i,originalParent:n,options:s}){const a=null!=t?t:e;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");const o="number"==typeof a;let u=r[a];const l=Object.assign({},s,{strict:!0,parent:r,value:u,originalValue:n[a],key:void 0,[o?"index":"key"]:a,path:o||a.includes(".")?`${i||""}[${o?a:`"${a}"`}]`:(i?`${i}.`:"")+t});return(t,e,r)=>this.resolve(l)._validate(u,l,e,r)}validate(t,e){var r;let i=this.resolve(Object.assign({},e,{value:t})),n=null!=(r=null==e?void 0:e.disableStackTrace)?r:i.spec.disableStackTrace;return new Promise(((r,s)=>i._validate(t,e,((t,e)=>{M.isError(t)&&(t.value=e),s(t)}),((t,e)=>{t.length?s(new M(t,e,void 0,void 0,n)):r(e)}))))}validateSync(t,e){var r;let i,n=this.resolve(Object.assign({},e,{value:t})),s=null!=(r=null==e?void 0:e.disableStackTrace)?r:n.spec.disableStackTrace;return n._validate(t,Object.assign({},e,{sync:!0}),((t,e)=>{throw M.isError(t)&&(t.value=e),t}),((e,r)=>{if(e.length)throw new M(e,t,void 0,void 0,s);i=r})),i}isValid(t,e){return this.validate(t,e).then((()=>!0),(t=>{if(M.isError(t))return!1;throw t}))}isValidSync(t,e){try{return this.validateSync(t,e),!0}catch(t){if(M.isError(t))return!1;throw t}}_getDefault(t){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this,t):Q(e)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return 0===arguments.length?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,e){const r=this.clone({nullable:t});return r.internalTests.nullable=K({message:e,name:"nullable",test(t){return null!==t||this.schema.spec.nullable}}),r}optionality(t,e){const r=this.clone({optional:t});return r.internalTests.optionality=K({message:e,name:"optionality",test(t){return void 0!==t||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(t=q.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=q.notNull){return this.nullability(!1,t)}required(t=q.required){return this.clone().withMutation((e=>e.nonNullable(t).defined(t)))}notRequired(){return this.clone().withMutation((t=>t.nullable().optional()))}transform(t){let e=this.clone();return e.transforms.push(t),e}test(...t){let e;if(e=1===t.length?"function"==typeof t[0]?{test:t[0]}:t[0]:2===t.length?{name:t[0],test:t[1]}:{name:t[0],message:t[1],test:t[2]},void 0===e.message&&(e.message=q.default),"function"!=typeof e.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),i=K(e),n=e.exclusive||e.name&&!0===r.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(r.exclusiveTests[e.name]=!!e.exclusive),r.tests=r.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(n)return!1;if(t.OPTIONS.test===i.OPTIONS.test)return!1}return!0})),r.tests.push(i),r}when(t,e){Array.isArray(t)||"string"==typeof t||(e=t,t=".");let r=this.clone(),i=T(t).map((t=>new Y(t)));return i.forEach((t=>{t.isSibling&&r.deps.push(t.key)})),r.conditions.push("function"==typeof e?new J(i,e):J.fromOptions(i,e)),r}typeError(t){let e=this.clone();return e.internalTests.typeError=K({message:t,name:"typeError",skipAbsent:!0,test(t){return!!this.schema._typeCheck(t)||this.createError({params:{type:this.schema.type}})}}),e}oneOf(t,e=q.oneOf){let r=this.clone();return t.forEach((t=>{r._whitelist.add(t),r._blacklist.delete(t)})),r.internalTests.whiteList=K({message:e,name:"oneOf",skipAbsent:!0,test(t){let e=this.schema._whitelist,r=e.resolveAll(this.resolve);return!!r.includes(t)||this.createError({params:{values:Array.from(e).join(", "),resolved:r}})}}),r}notOneOf(t,e=q.notOneOf){let r=this.clone();return t.forEach((t=>{r._blacklist.add(t),r._whitelist.delete(t)})),r.internalTests.blacklist=K({message:e,name:"notOneOf",test(t){let e=this.schema._blacklist,r=e.resolveAll(this.resolve);return!r.includes(t)||this.createError({params:{values:Array.from(e).join(", "),resolved:r}})}}),r}strip(t=!0){let e=this.clone();return e.spec.strip=t,e}describe(t){const e=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:n,nullable:s}=e.spec;return{meta:i,label:r,optional:n,nullable:s,default:e.getDefault(t),type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((t=>({name:t.OPTIONS.name,params:t.OPTIONS.params}))).filter(((t,e,r)=>r.findIndex((e=>e.name===t.name))===e))}}}W.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])W.prototype[`${t}At`]=function(e,r,i={}){const{parent:n,parentPath:s,schema:a}=B(this,e,r,i.context);return a[t](n&&n[s],Object.assign({},i,{parent:n,path:e}))};for(const t of["equals","is"])W.prototype[t]=W.prototype.oneOf;for(const t of["not","nope"])W.prototype[t]=W.prototype.notOneOf;const X=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function tt(t){var e,r;const i=X.exec(t);return i?{year:et(i[1]),month:et(i[2],1)-1,day:et(i[3],1),hour:et(i[4]),minute:et(i[5]),second:et(i[6]),millisecond:i[7]?et(i[7].substring(0,3)):0,precision:null!=(e=null==(r=i[7])?void 0:r.length)?e:void 0,z:i[8]||void 0,plusMinus:i[9]||void 0,hourOffset:et(i[10]),minuteOffset:et(i[11])}:null}function et(t,e=0){return Number(t)||e}let rt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,it=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,nt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,st=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),at=t=>H(t)||t===t.trim(),ot={}.toString();function ut(){return new lt}class lt extends W{constructor(){super({type:"string",check:t=>(t instanceof String&&(t=t.valueOf()),"string"==typeof t)}),this.withMutation((()=>{this.transform(((t,e,r)=>{if(!r.spec.coerce||r.isType(t))return t;if(Array.isArray(t))return t;const i=null!=t&&t.toString?t.toString():t;return i===ot?t:i}))}))}required(t){return super.required(t).withMutation((e=>e.test({message:t||q.required,name:"required",skipAbsent:!0,test:t=>!!t.length})))}notRequired(){return super.notRequired().withMutation((t=>(t.tests=t.tests.filter((t=>"required"!==t.OPTIONS.name)),t)))}length(t,e=U.length){return this.test({message:e,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(e){return e.length===this.resolve(t)}})}min(t,e=U.min){return this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(e){return e.length>=this.resolve(t)}})}max(t,e=U.max){return this.test({name:"max",exclusive:!0,message:e,params:{max:t},skipAbsent:!0,test(e){return e.length<=this.resolve(t)}})}matches(t,e){let r,i,n=!1;return e&&("object"==typeof e?({excludeEmptyString:n=!1,message:r,name:i}=e):r=e),this.test({name:i||"matches",message:r||U.matches,params:{regex:t},skipAbsent:!0,test:e=>""===e&&n||-1!==e.search(t)})}email(t=U.email){return this.matches(rt,{name:"email",message:t,excludeEmptyString:!0})}url(t=U.url){return this.matches(it,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=U.uuid){return this.matches(nt,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let e,r,i="";return t&&("object"==typeof t?({message:i="",allowOffset:e=!1,precision:r}=t):i=t),this.matches(st,{name:"datetime",message:i||U.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:i||U.datetime_offset,params:{allowOffset:e},skipAbsent:!0,test:t=>{if(!t||e)return!0;const r=tt(t);return!!r&&!!r.z}}).test({name:"datetime_precision",message:i||U.datetime_precision,params:{precision:r},skipAbsent:!0,test:t=>{if(!t||null==r)return!0;const e=tt(t);return!!e&&e.precision===r}})}ensure(){return this.default("").transform((t=>null===t?"":t))}trim(t=U.trim){return this.transform((t=>null!=t?t.trim():t)).test({message:t,name:"trim",test:at})}lowercase(t=U.lowercase){return this.transform((t=>H(t)?t:t.toLowerCase())).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>H(t)||t===t.toLowerCase()})}uppercase(t=U.uppercase){return this.transform((t=>H(t)?t:t.toUpperCase())).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>H(t)||t===t.toUpperCase()})}}ut.prototype=lt.prototype;let ht=new Date("");class ft extends W{constructor(){super({type:"date",check:t=>"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())}),this.withMutation((()=>{this.transform(((t,e,r)=>!r.spec.coerce||r.isType(t)||null===t?t:(t=function(t){const e=tt(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(void 0===e.z&&void 0===e.plusMinus)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let r=0;return"Z"!==e.z&&void 0!==e.plusMinus&&(r=60*e.hourOffset+e.minuteOffset,"+"===e.plusMinus&&(r=0-r)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+r,e.second,e.millisecond)}(t),isNaN(t)?ft.INVALID_DATE:new Date(t))))}))}prepareParam(t,e){let r;if(Y.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${e}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,e=P.min){let r=this.prepareParam(t,"min");return this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(t){return t>=this.resolve(r)}})}max(t,e=P.max){let r=this.prepareParam(t,"max");return this.test({message:e,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(t){return t<=this.resolve(r)}})}}function ct(t,e){let r=1/0;return t.some(((t,i)=>{var n;if(null!=(n=e.path)&&n.includes(t))return r=i,!0})),r}function dt(t){return(e,r)=>ct(t,e)-ct(t,r)}ft.INVALID_DATE=ht;const pt=(t,e,r)=>{if("string"!=typeof t)return t;let i=t;try{i=JSON.parse(t)}catch(t){}return r.isType(i)?i:t};function mt(t){if("fields"in t){const e={};for(const[r,i]of Object.entries(t.fields))e[r]=mt(i);return t.setFields(e)}if("array"===t.type){const e=t.optional();return e.innerType&&(e.innerType=mt(e.innerType)),e}return"tuple"===t.type?t.optional().clone({types:t.spec.types.map(mt)}):"optional"in t?t.optional():t}let bt=t=>"[object Object]"===Object.prototype.toString.call(t);function xt(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter((t=>-1===r.indexOf(t)))}const wt=dt([]);function vt(t){return new gt(t)}class gt extends W{constructor(t){super({type:"object",check:t=>bt(t)||"function"==typeof t}),this.fields=Object.create(null),this._sortErrors=wt,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{t&&this.shape(t)}))}_cast(t,e={}){var r;let i=super._cast(t,e);if(void 0===i)return this.getDefault(e);if(!this._typeCheck(i))return i;let n=this.fields,s=null!=(r=e.stripUnknown)?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter((t=>!this._nodes.includes(t)))),o={},u=Object.assign({},e,{parent:o,__validating:e.__validating||!1}),l=!1;for(const t of a){let r=n[t],a=t in i;if(r){let n,s=i[t];u.path=(e.path?`${e.path}.`:"")+t,r=r.resolve({value:s,context:e.context,parent:o});let a=r instanceof W?r.spec:void 0,h=null==a?void 0:a.strict;if(null!=a&&a.strip){l=l||t in i;continue}n=e.__validating&&h?i[t]:r.cast(i[t],u),void 0!==n&&(o[t]=n)}else a&&!s&&(o[t]=i[t]);a===t in o&&o[t]===i[t]||(l=!0)}return l?o:i}_validate(t,e={},r,i){let{from:n=[],originalValue:s=t,recursive:a=this.spec.recursive}=e;e.from=[{schema:this,value:s},...n],e.__validating=!0,e.originalValue=s,super._validate(t,e,r,((t,n)=>{if(!a||!bt(n))return void i(t,n);s=s||n;let o=[];for(let t of this._nodes){let r=this.fields[t];r&&!Y.isRef(r)&&o.push(r.asNestedTest({options:e,key:t,parent:n,parentPath:e.path,originalParent:s}))}this.runTests({tests:o,value:n,originalValue:s,options:e},r,(e=>{i(e.sort(this._sortErrors).concat(t),n)}))}))}clone(t){const e=super.clone(t);return e.fields=Object.assign({},this.fields),e._nodes=this._nodes,e._excludedEdges=this._excludedEdges,e._sortErrors=this._sortErrors,e}concat(t){let e=super.concat(t),r=e.fields;for(let[t,e]of Object.entries(this.fields)){const i=r[t];r[t]=void 0===i?e:i}return e.withMutation((e=>e.setFields(r,[...this._excludedEdges,...t._excludedEdges])))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let e={};return this._nodes.forEach((r=>{var i;const n=this.fields[r];let s=t;null!=(i=s)&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),e[r]=n&&"getDefault"in n?n.getDefault(s):void 0})),e}setFields(t,e){let r=this.clone();return r.fields=t,r._nodes=function(t,e=[]){let r=[],i=new Set,n=new Set(e.map((([t,e])=>`${t}-${e}`)));function s(t,e){let s=d.split(t)[0];i.add(s),n.has(`${e}-${s}`)||r.push([e,s])}for(const e of Object.keys(t)){let r=t[e];i.add(e),Y.isRef(r)&&r.isSibling?s(r.path,e):L(r)&&"deps"in r&&r.deps.forEach((t=>s(t,e)))}return O.array(Array.from(i),r).reverse()}(t,e),r._sortErrors=dt(Object.keys(t)),e&&(r._excludedEdges=e),r}shape(t,e=[]){return this.clone().withMutation((r=>{let i=r._excludedEdges;return e.length&&(Array.isArray(e[0])||(e=[e]),i=[...r._excludedEdges,...e]),r.setFields(Object.assign(r.fields,t),i)}))}partial(){const t={};for(const[e,r]of Object.entries(this.fields))t[e]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return mt(this)}pick(t){const e={};for(const r of t)this.fields[r]&&(e[r]=this.fields[r]);return this.setFields(e,this._excludedEdges.filter((([e,r])=>t.includes(e)&&t.includes(r))))}omit(t){const e=[];for(const r of Object.keys(this.fields))t.includes(r)||e.push(r);return this.pick(e)}from(t,e,r){let i=d.getter(t,!0);return this.transform((n=>{if(!n)return n;let s=n;return((t,e)=>{const r=[...d.normalizePath(e)];if(1===r.length)return r[0]in t;let i=r.pop(),n=d.getter(d.join(r),!0)(t);return!(!n||!(i in n))})(n,t)&&(s=Object.assign({},n),r||delete s[t],s[e]=i(n)),s}))}json(){return this.transform(pt)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||R.exact,test(t){if(null==t)return!0;const e=xt(this.schema,t);return 0===e.length||this.createError({params:{properties:e.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,e=R.noUnknown){"boolean"!=typeof t&&(e=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:e,test(e){if(null==e)return!0;const r=xt(this.schema,e);return!t||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,e=R.noUnknown){return this.noUnknown(!t,e)}transformKeys(t){return this.transform((e=>{if(!e)return e;const r={};for(const i of Object.keys(e))r[t(i)]=e[i];return r}))}camelCase(){return this.transformKeys(g)}snakeCase(){return this.transformKeys(y)}constantCase(){return this.transformKeys((t=>y(t).toUpperCase()))}describe(t){const e=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[n,s]of Object.entries(e.fields)){var i;let e=t;null!=(i=e)&&i.value&&(e=Object.assign({},e,{parent:e.value,value:e.value[n]})),r.fields[n]=s.describe(e)}return r}}vt.prototype=gt.prototype;class yt{constructor(t,e,r){this.isSubmitted=!1,this.validationType="onSubmit",this.subscribedFields={},this.formErrors={},this.getFormErrors=()=>this.formErrors,this.getValues=()=>{const t=this.context.el.shadowRoot.querySelector("form"),e=new FormData(t);return Object.fromEntries(e.entries())},this.focusFirstInput=t=>{if(t.length){const e=t.map((t=>this.context.el.shadowRoot.querySelector(`input[name="${t.name}"]`))).filter((t=>t)).sort(((t,e)=>t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?-1:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING?1:0));e[0]&&e[0].focus()}},this.onSubmit=t=>{t.preventDefault(),(async()=>{try{this.isSubmitted=!0,this.context.isLoading=!0,this.signal({isError:!1});const t=this.getValues(),e=await this.schemaObject.validate(t,{abortEarly:!1,strict:!0});await this.context.formSubmit(e)}catch(t){if("ValidationError"===t.name){this.formErrors={};const e=[];t.inner.forEach((t=>{t.path&&(this.formErrors[t.path]=t.message,e.find((e=>e.name===t.path))||e.push({isError:!0,name:t.path,errorMessage:t.message}))})),this.signal(e),this.focusFirstInput(e)}else console.error("Unexpected Error:",t)}finally{this.context.isLoading=!1}})()},this.newController=(t,e)=>("text"===e&&(this.subscribedFields[t]={name:t,isError:!1,disabled:!1,errorMessage:"",onInput:e=>{this.onChanges(t,e.target.value)}}),this.subscribedFields[t]),this.signal=t=>{Array.isArray(t)?t.forEach((t=>{this.subscribedFields[t.name]&&Object.assign(this.subscribedFields[t.name],t)})):Object.values(this.subscribedFields).forEach((e=>Object.assign(e,t)))},this.onChanges=async(t,e)=>{if(!this.isSubmitted&&"always"!==this.validationType)return;const r=this.subscribedFields[t].isError;try{this.schemaObject.fields[t].validateSync(e),this.signal([{name:t,isError:!1}]),!1!==r&&(this.context.renderControl={})}catch(e){e.message&&(this.signal([{name:t,isError:!0,errorMessage:e.message}]),this.context.renderControl={})}},this.context=t,this.schemaObject=e,this.formController={onSubmit:this.onSubmit},(null==r?void 0:r.validationType)&&(this.validationType=r.validationType)}}const Ft=vt({name:ut().required("r").min(4,"kd").max(7,"kk"),name2:ut().required()}),$t=class{constructor(e){t(this,e),this.form=new yt(this,Ft),this.nameController=this.form.newController("name","text"),this.name2Controller=this.form.newController("name2","text"),this.isLoading=void 0,this.renderControl={}}async formSubmit(t){console.log(t)}render(){const{formController:t}=this.form;return e(r,{key:"5f5e6a4941fbdc8a1aecc1d2ac02d7c8b7900768"},e("form",Object.assign({key:"b6ae1e217a2a1813774e875540675d9cbfaaea56"},t),e("form-input",Object.assign({key:"2ead4bfe5bd5c8d5add2b4269b0e64ff15321715"},this.nameController,{label:"Name",name:"name"})),e("form-input",Object.assign({key:"1cc8b20cf7bd6c169bd93807b4b9e6c28afc7a8c"},this.name2Controller,{label:"Name2",name:"name2"})),e("button",{key:"57bd612321902d39add1f4922cd09445e56fe7a2",type:"submit"},"sd")))}get el(){return i(this)}};$t.style='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}';export{$t as general_inquiry_form}
|
|
5
|
+
import{r as t,h as e,H as r,g as i}from"./p-f37b60d5.js";function n(t){this._maxSize=t,this.clear()}n.prototype.clear=function(){this._size=0,this._values=Object.create(null)},n.prototype.get=function(t){return this._values[t]},n.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var s=/[^.^\]^[]+|(?=\[\]|\.\.)/g,a=/^\d+$/,o=/^\d/,u=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,h=new n(512),f=new n(512),c=new n(512),d={Cache:n,split:m,normalizePath:p,setter:function(t){var e=p(t);return f.get(t)||f.set(t,(function(t,r){for(var i=0,n=e.length,s=t;i<n-1;){var a=e[i];if("__proto__"===a||"constructor"===a||"prototype"===a)return t;s=s[e[i++]]}s[e[i]]=r}))},getter:function(t,e){var r=p(t);return c.get(t)||c.set(t,(function(t){for(var i=0,n=r.length;i<n;){if(null==t&&e)return;t=t[r[i++]]}return t}))},join:function(t){return t.reduce((function(t,e){return t+(b(e)||a.test(e)?"["+e+"]":(t?".":"")+e)}),"")},forEach:function(t,e,r){!function(t,e,r){var i,n,s,a,o=t.length;for(n=0;n<o;n++)(i=t[n])&&(x(i)&&(i='"'+i+'"'),s=!(a=b(i))&&/^\d+$/.test(i),e.call(r,i,a,s,n,t))}(Array.isArray(t)?t:m(t),e,r)}};function p(t){return h.get(t)||h.set(t,m(t).map((function(t){return t.replace(l,"$2")})))}function m(t){return t.match(s)||[""]}function b(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function x(t){return!b(t)&&(function(t){return t.match(o)&&!t.match(a)}(t)||function(t){return u.test(t)}(t))}const w=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,v=t=>t.match(w)||[];var g=t=>v(t).reduce(((t,e)=>`${t}${t?e[0].toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()}`),""),y=t=>((t,e)=>v(t).join(e).toLowerCase())(t,"_"),F={exports:{}};function $(t,e){var r=t.length,i=new Array(r),n={},s=r,a=function(t){for(var e=new Map,r=0,i=t.length;r<i;r++){var n=t[r];e.has(n[0])||e.set(n[0],new Set),e.has(n[1])||e.set(n[1],new Set),e.get(n[0]).add(n[1])}return e}(e),o=function(t){for(var e=new Map,r=0,i=t.length;r<i;r++)e.set(t[r],r);return e}(t);for(e.forEach((function(t){if(!o.has(t[0])||!o.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));s--;)n[s]||u(t[s],s,new Set);return i;function u(t,e,s){if(s.has(t)){var l;try{l=", node was:"+JSON.stringify(t)}catch(t){l=""}throw new Error("Cyclic dependency"+l)}if(!o.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!n[e]){n[e]=!0;var h=a.get(t)||new Set;if(e=(h=Array.from(h)).length){s.add(t);do{var f=h[--e];u(f,o.get(f),s)}while(e);s.delete(t)}i[--r]=t}}}F.exports=function(t){return $(function(t){for(var e=new Set,r=0,i=t.length;r<i;r++){var n=t[r];e.add(n[0]),e.add(n[1])}return Array.from(e)}(t),t)},F.exports.array=$;const O=F.exports,E=Object.prototype.toString,k=Error.prototype.toString,j=RegExp.prototype.toString,A="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",D=/^Symbol\((.*)\)(.*)$/;function S(t,e=!1){if(null==t||!0===t||!1===t)return""+t;const r=typeof t;if("number"===r)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===r)return e?`"${t}"`:t;if("function"===r)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===r)return A.call(t).replace(D,"Symbol($1)");const i=E.call(t).slice(8,-1);return"Date"===i?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===i||t instanceof Error?"["+k.call(t)+"]":"RegExp"===i?j.call(t):null}function z(t,e){let r=S(t,e);return null!==r?r:JSON.stringify(t,(function(t,r){let i=S(this[t],e);return null!==i?i:r}),2)}function T(t){return null==t?[]:[].concat(t)}let _,C,N,V=/\$\{\s*(\w+)\s*\}/g;_=Symbol.toStringTag;class Z{constructor(t,e,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_]="Error",this.name="ValidationError",this.value=e,this.path=r,this.type=i,this.errors=[],this.inner=[],T(t).forEach((t=>{M.isError(t)?(this.errors.push(...t.errors),this.inner.push(...t.inner.length?t.inner:[t])):this.errors.push(t)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}C=Symbol.hasInstance,N=Symbol.toStringTag;class M extends Error{static formatError(t,e){return e=Object.assign({},e,{path:e.label||e.path||"this",originalPath:e.path}),"string"==typeof t?t.replace(V,((t,r)=>z(e[r]))):"function"==typeof t?t(e):t}static isError(t){return t&&"ValidationError"===t.name}constructor(t,e,r,i,n){const s=new Z(t,e,r,i);if(n)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[N]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,M)}static[C](t){return Z[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let q={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:i})=>{const n=null!=i&&i!==r?` (cast from the value \`${z(i,!0)}\`).`:".";return"mixed"!==e?`${t} must be a \`${e}\` type, but the final value was: \`${z(r,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${z(r,!0)}\``+n}},U={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},P={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},R={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},I={notType:t=>{const{path:e,value:r,spec:i}=t,n=i.types.length;if(Array.isArray(r)){if(r.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${z(r,!0)}\``;if(r.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${z(r,!0)}\``}return M.formatError(q.notType,t)}};Object.assign(Object.create(null),{mixed:q,string:U,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:P,object:R,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"},tuple:I});const L=t=>t&&t.__isYupSchema__;class J{static fromOptions(t,e){if(!e.then&&!e.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:n}=e,s="function"==typeof r?r:(...t)=>t.every((t=>t===r));return new J(t,((t,e)=>{var r;let a=s(...t)?i:n;return null!=(r=null==a?void 0:a(e))?r:e}))}constructor(t,e){this.fn=void 0,this.refs=t,this.refs=t,this.fn=e}resolve(t,e){let r=this.refs.map((t=>t.getValue(null==e?void 0:e.value,null==e?void 0:e.parent,null==e?void 0:e.context))),i=this.fn(r,t,e);if(void 0===i||i===t)return t;if(!L(i))throw new TypeError("conditions must return a schema object");return i.resolve(e)}}class Y{constructor(t,e={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue,this.path=this.key.slice((this.isContext?"$":this.isValue?".":"").length),this.getter=this.path&&d.getter(this.path,!0),this.map=e.map}getValue(t,e,r){let i=this.isContext?r:this.isValue?t:e;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,e){return this.getValue(t,null==e?void 0:e.parent,null==e?void 0:e.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Y.prototype.__isYupRef=!0;const H=t=>null==t;function K(t){function e({value:e,path:r="",options:i,originalValue:n,schema:s},a,o){const{name:u,test:l,params:h,message:f,skipAbsent:c}=t;let{parent:d,context:p,abortEarly:m=s.spec.abortEarly,disableStackTrace:b=s.spec.disableStackTrace}=i;function x(t){return Y.isRef(t)?t.getValue(e,d,p):t}function w(t={}){const i=Object.assign({value:e,originalValue:n,label:s.spec.label,path:t.path||r,spec:s.spec,disableStackTrace:t.disableStackTrace||b},h,t.params);for(const t of Object.keys(i))i[t]=x(i[t]);const a=new M(M.formatError(t.message||f,i),e,i.path,t.type||u,i.disableStackTrace);return a.params=i,a}const v=m?a:o;let g={path:r,parent:d,type:u,from:i.from,createError:w,resolve:x,options:i,originalValue:n,schema:s};const y=t=>{M.isError(t)?v(t):t?o(null):v(w())},F=t=>{M.isError(t)?v(t):a(t)};if(c&&H(e))return y(!0);let $;try{var O;if($=l.call(g,e,g),"function"==typeof(null==(O=$)?void 0:O.then)){if(i.sync)throw new Error(`Validation test of type: "${g.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve($).then(y,F)}}catch(t){return void F(t)}y($)}return e.OPTIONS=t,e}function B(t,e,r,i=r){let n,s,a;return e?(d.forEach(e,((o,u,l)=>{let h=u?o.slice(1,o.length-1):o,f="tuple"===(t=t.resolve({context:i,parent:n,value:r})).type,c=l?parseInt(h,10):0;if(t.innerType||f){if(f&&!l)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&c>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${e}. because there is no value at that index. `);n=r,r=r&&r[c],t=f?t.spec.types[c]:t.innerType}if(!l){if(!t.fields||!t.fields[h])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t.type}")`);n=r,r=r&&r[h],t=t.fields[h]}s=h,a=u?"["+o+"]":"."+o})),{schema:t,parent:n,parentPath:s}):{parent:n,parentPath:e,schema:t}}class G extends Set{describe(){const t=[];for(const e of this.values())t.push(Y.isRef(e)?e.describe():e);return t}resolveAll(t){let e=[];for(const r of this.values())e.push(t(r));return e}clone(){return new G(this.values())}merge(t,e){const r=this.clone();return t.forEach((t=>r.add(t))),e.forEach((t=>r.delete(t))),r}}function Q(t,e=new Map){if(L(t)||!t||"object"!=typeof t)return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let i=0;i<t.length;i++)r[i]=Q(t[i],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(const[i,n]of t.entries())r.set(i,Q(n,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(const i of t)r.add(Q(i,e))}else{if(!(t instanceof Object))throw Error(`Unable to clone ${t}`);r={},e.set(t,r);for(const[i,n]of Object.entries(t))r[i]=Q(n,e)}return r}class W{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new G,this._blacklist=new G,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(q.notType)})),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==t?void 0:t.spec),this.withMutation((t=>{t.nonNullable()}))}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const e=Object.create(Object.getPrototypeOf(this));return e.type=this.type,e._typeCheck=this._typeCheck,e._whitelist=this._whitelist.clone(),e._blacklist=this._blacklist.clone(),e.internalTests=Object.assign({},this.internalTests),e.exclusiveTests=Object.assign({},this.exclusiveTests),e.deps=[...this.deps],e.conditions=[...this.conditions],e.tests=[...this.tests],e.transforms=[...this.transforms],e.spec=Q(Object.assign({},this.spec,t)),e}label(t){let e=this.clone();return e.spec.label=t,e}meta(...t){if(0===t.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},t[0]),e}withMutation(t){let e=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=e,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let e=this,r=t.clone();const i=Object.assign({},e.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},e.internalTests,r.internalTests),r._whitelist=e._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=e._blacklist.merge(t._blacklist,t._whitelist),r.tests=e.tests,r.exclusiveTests=e.exclusiveTests,r.withMutation((e=>{t.tests.forEach((t=>{e.test(t.OPTIONS)}))})),r.transforms=[...e.transforms,...r.transforms],r}isType(t){return null==t?!(!this.spec.nullable||null!==t)||!(!this.spec.optional||void 0!==t):this._typeCheck(t)}resolve(t){let e=this;if(e.conditions.length){let r=e.conditions;e=e.clone(),e.conditions=[],e=r.reduce(((e,r)=>r.resolve(e,t)),e),e=e.resolve(t)}return e}resolveOptions(t){var e,r,i,n;return Object.assign({},t,{from:t.from||[],strict:null!=(e=t.strict)?e:this.spec.strict,abortEarly:null!=(r=t.abortEarly)?r:this.spec.abortEarly,recursive:null!=(i=t.recursive)?i:this.spec.recursive,disableStackTrace:null!=(n=t.disableStackTrace)?n:this.spec.disableStackTrace})}cast(t,e={}){let r=this.resolve(Object.assign({value:t},e)),i="ignore-optionality"===e.assert,n=r._cast(t,e);if(!1!==e.assert&&!r.isType(n)){if(i&&H(n))return n;let s=z(t),a=z(n);throw new TypeError(`The value of ${e.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${s} \n`+(a!==s?`result of cast: ${a}`:""))}return n}_cast(t,e){let r=void 0===t?t:this.transforms.reduce(((e,r)=>r.call(this,e,t,this)),t);return void 0===r&&(r=this.getDefault(e)),r}_validate(t,e={},r,i){let{path:n,originalValue:s=t,strict:a=this.spec.strict}=e,o=t;a||(o=this._cast(o,Object.assign({assert:!1},e)));let u=[];for(let t of Object.values(this.internalTests))t&&u.push(t);this.runTests({path:n,value:o,originalValue:s,options:e,tests:u},r,(t=>{if(t.length)return i(t,o);this.runTests({path:n,value:o,originalValue:s,options:e,tests:this.tests},r,i)}))}runTests(t,e,r){let i=!1,{tests:n,value:s,originalValue:a,path:o,options:u}=t,l=t=>{i||(i=!0,e(t,s))},h=t=>{i||(i=!0,r(t,s))},f=n.length,c=[];if(!f)return h([]);let d={value:s,originalValue:a,path:o,options:u,schema:this};for(let t=0;t<n.length;t++)(0,n[t])(d,l,(function(t){t&&(Array.isArray(t)?c.push(...t):c.push(t)),--f<=0&&h(c)}))}asNestedTest({key:t,index:e,parent:r,parentPath:i,originalParent:n,options:s}){const a=null!=t?t:e;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");const o="number"==typeof a;let u=r[a];const l=Object.assign({},s,{strict:!0,parent:r,value:u,originalValue:n[a],key:void 0,[o?"index":"key"]:a,path:o||a.includes(".")?`${i||""}[${o?a:`"${a}"`}]`:(i?`${i}.`:"")+t});return(t,e,r)=>this.resolve(l)._validate(u,l,e,r)}validate(t,e){var r;let i=this.resolve(Object.assign({},e,{value:t})),n=null!=(r=null==e?void 0:e.disableStackTrace)?r:i.spec.disableStackTrace;return new Promise(((r,s)=>i._validate(t,e,((t,e)=>{M.isError(t)&&(t.value=e),s(t)}),((t,e)=>{t.length?s(new M(t,e,void 0,void 0,n)):r(e)}))))}validateSync(t,e){var r;let i,n=this.resolve(Object.assign({},e,{value:t})),s=null!=(r=null==e?void 0:e.disableStackTrace)?r:n.spec.disableStackTrace;return n._validate(t,Object.assign({},e,{sync:!0}),((t,e)=>{throw M.isError(t)&&(t.value=e),t}),((e,r)=>{if(e.length)throw new M(e,t,void 0,void 0,s);i=r})),i}isValid(t,e){return this.validate(t,e).then((()=>!0),(t=>{if(M.isError(t))return!1;throw t}))}isValidSync(t,e){try{return this.validateSync(t,e),!0}catch(t){if(M.isError(t))return!1;throw t}}_getDefault(t){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this,t):Q(e)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return 0===arguments.length?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,e){const r=this.clone({nullable:t});return r.internalTests.nullable=K({message:e,name:"nullable",test(t){return null!==t||this.schema.spec.nullable}}),r}optionality(t,e){const r=this.clone({optional:t});return r.internalTests.optionality=K({message:e,name:"optionality",test(t){return void 0!==t||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(t=q.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=q.notNull){return this.nullability(!1,t)}required(t=q.required){return this.clone().withMutation((e=>e.nonNullable(t).defined(t)))}notRequired(){return this.clone().withMutation((t=>t.nullable().optional()))}transform(t){let e=this.clone();return e.transforms.push(t),e}test(...t){let e;if(e=1===t.length?"function"==typeof t[0]?{test:t[0]}:t[0]:2===t.length?{name:t[0],test:t[1]}:{name:t[0],message:t[1],test:t[2]},void 0===e.message&&(e.message=q.default),"function"!=typeof e.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),i=K(e),n=e.exclusive||e.name&&!0===r.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(r.exclusiveTests[e.name]=!!e.exclusive),r.tests=r.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(n)return!1;if(t.OPTIONS.test===i.OPTIONS.test)return!1}return!0})),r.tests.push(i),r}when(t,e){Array.isArray(t)||"string"==typeof t||(e=t,t=".");let r=this.clone(),i=T(t).map((t=>new Y(t)));return i.forEach((t=>{t.isSibling&&r.deps.push(t.key)})),r.conditions.push("function"==typeof e?new J(i,e):J.fromOptions(i,e)),r}typeError(t){let e=this.clone();return e.internalTests.typeError=K({message:t,name:"typeError",skipAbsent:!0,test(t){return!!this.schema._typeCheck(t)||this.createError({params:{type:this.schema.type}})}}),e}oneOf(t,e=q.oneOf){let r=this.clone();return t.forEach((t=>{r._whitelist.add(t),r._blacklist.delete(t)})),r.internalTests.whiteList=K({message:e,name:"oneOf",skipAbsent:!0,test(t){let e=this.schema._whitelist,r=e.resolveAll(this.resolve);return!!r.includes(t)||this.createError({params:{values:Array.from(e).join(", "),resolved:r}})}}),r}notOneOf(t,e=q.notOneOf){let r=this.clone();return t.forEach((t=>{r._blacklist.add(t),r._whitelist.delete(t)})),r.internalTests.blacklist=K({message:e,name:"notOneOf",test(t){let e=this.schema._blacklist,r=e.resolveAll(this.resolve);return!r.includes(t)||this.createError({params:{values:Array.from(e).join(", "),resolved:r}})}}),r}strip(t=!0){let e=this.clone();return e.spec.strip=t,e}describe(t){const e=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:n,nullable:s}=e.spec;return{meta:i,label:r,optional:n,nullable:s,default:e.getDefault(t),type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((t=>({name:t.OPTIONS.name,params:t.OPTIONS.params}))).filter(((t,e,r)=>r.findIndex((e=>e.name===t.name))===e))}}}W.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])W.prototype[`${t}At`]=function(e,r,i={}){const{parent:n,parentPath:s,schema:a}=B(this,e,r,i.context);return a[t](n&&n[s],Object.assign({},i,{parent:n,path:e}))};for(const t of["equals","is"])W.prototype[t]=W.prototype.oneOf;for(const t of["not","nope"])W.prototype[t]=W.prototype.notOneOf;const X=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function tt(t){var e,r;const i=X.exec(t);return i?{year:et(i[1]),month:et(i[2],1)-1,day:et(i[3],1),hour:et(i[4]),minute:et(i[5]),second:et(i[6]),millisecond:i[7]?et(i[7].substring(0,3)):0,precision:null!=(e=null==(r=i[7])?void 0:r.length)?e:void 0,z:i[8]||void 0,plusMinus:i[9]||void 0,hourOffset:et(i[10]),minuteOffset:et(i[11])}:null}function et(t,e=0){return Number(t)||e}let rt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,it=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,nt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,st=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),at=t=>H(t)||t===t.trim(),ot={}.toString();function ut(){return new lt}class lt extends W{constructor(){super({type:"string",check:t=>(t instanceof String&&(t=t.valueOf()),"string"==typeof t)}),this.withMutation((()=>{this.transform(((t,e,r)=>{if(!r.spec.coerce||r.isType(t))return t;if(Array.isArray(t))return t;const i=null!=t&&t.toString?t.toString():t;return i===ot?t:i}))}))}required(t){return super.required(t).withMutation((e=>e.test({message:t||q.required,name:"required",skipAbsent:!0,test:t=>!!t.length})))}notRequired(){return super.notRequired().withMutation((t=>(t.tests=t.tests.filter((t=>"required"!==t.OPTIONS.name)),t)))}length(t,e=U.length){return this.test({message:e,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(e){return e.length===this.resolve(t)}})}min(t,e=U.min){return this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(e){return e.length>=this.resolve(t)}})}max(t,e=U.max){return this.test({name:"max",exclusive:!0,message:e,params:{max:t},skipAbsent:!0,test(e){return e.length<=this.resolve(t)}})}matches(t,e){let r,i,n=!1;return e&&("object"==typeof e?({excludeEmptyString:n=!1,message:r,name:i}=e):r=e),this.test({name:i||"matches",message:r||U.matches,params:{regex:t},skipAbsent:!0,test:e=>""===e&&n||-1!==e.search(t)})}email(t=U.email){return this.matches(rt,{name:"email",message:t,excludeEmptyString:!0})}url(t=U.url){return this.matches(it,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=U.uuid){return this.matches(nt,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let e,r,i="";return t&&("object"==typeof t?({message:i="",allowOffset:e=!1,precision:r}=t):i=t),this.matches(st,{name:"datetime",message:i||U.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:i||U.datetime_offset,params:{allowOffset:e},skipAbsent:!0,test:t=>{if(!t||e)return!0;const r=tt(t);return!!r&&!!r.z}}).test({name:"datetime_precision",message:i||U.datetime_precision,params:{precision:r},skipAbsent:!0,test:t=>{if(!t||null==r)return!0;const e=tt(t);return!!e&&e.precision===r}})}ensure(){return this.default("").transform((t=>null===t?"":t))}trim(t=U.trim){return this.transform((t=>null!=t?t.trim():t)).test({message:t,name:"trim",test:at})}lowercase(t=U.lowercase){return this.transform((t=>H(t)?t:t.toLowerCase())).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>H(t)||t===t.toLowerCase()})}uppercase(t=U.uppercase){return this.transform((t=>H(t)?t:t.toUpperCase())).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>H(t)||t===t.toUpperCase()})}}ut.prototype=lt.prototype;let ht=new Date("");class ft extends W{constructor(){super({type:"date",check:t=>"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())}),this.withMutation((()=>{this.transform(((t,e,r)=>!r.spec.coerce||r.isType(t)||null===t?t:(t=function(t){const e=tt(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(void 0===e.z&&void 0===e.plusMinus)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let r=0;return"Z"!==e.z&&void 0!==e.plusMinus&&(r=60*e.hourOffset+e.minuteOffset,"+"===e.plusMinus&&(r=0-r)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+r,e.second,e.millisecond)}(t),isNaN(t)?ft.INVALID_DATE:new Date(t))))}))}prepareParam(t,e){let r;if(Y.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${e}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,e=P.min){let r=this.prepareParam(t,"min");return this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(t){return t>=this.resolve(r)}})}max(t,e=P.max){let r=this.prepareParam(t,"max");return this.test({message:e,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(t){return t<=this.resolve(r)}})}}function ct(t,e){let r=1/0;return t.some(((t,i)=>{var n;if(null!=(n=e.path)&&n.includes(t))return r=i,!0})),r}function dt(t){return(e,r)=>ct(t,e)-ct(t,r)}ft.INVALID_DATE=ht;const pt=(t,e,r)=>{if("string"!=typeof t)return t;let i=t;try{i=JSON.parse(t)}catch(t){}return r.isType(i)?i:t};function mt(t){if("fields"in t){const e={};for(const[r,i]of Object.entries(t.fields))e[r]=mt(i);return t.setFields(e)}if("array"===t.type){const e=t.optional();return e.innerType&&(e.innerType=mt(e.innerType)),e}return"tuple"===t.type?t.optional().clone({types:t.spec.types.map(mt)}):"optional"in t?t.optional():t}let bt=t=>"[object Object]"===Object.prototype.toString.call(t);function xt(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter((t=>-1===r.indexOf(t)))}const wt=dt([]);function vt(t){return new gt(t)}class gt extends W{constructor(t){super({type:"object",check:t=>bt(t)||"function"==typeof t}),this.fields=Object.create(null),this._sortErrors=wt,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{t&&this.shape(t)}))}_cast(t,e={}){var r;let i=super._cast(t,e);if(void 0===i)return this.getDefault(e);if(!this._typeCheck(i))return i;let n=this.fields,s=null!=(r=e.stripUnknown)?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter((t=>!this._nodes.includes(t)))),o={},u=Object.assign({},e,{parent:o,__validating:e.__validating||!1}),l=!1;for(const t of a){let r=n[t],a=t in i;if(r){let n,s=i[t];u.path=(e.path?`${e.path}.`:"")+t,r=r.resolve({value:s,context:e.context,parent:o});let a=r instanceof W?r.spec:void 0,h=null==a?void 0:a.strict;if(null!=a&&a.strip){l=l||t in i;continue}n=e.__validating&&h?i[t]:r.cast(i[t],u),void 0!==n&&(o[t]=n)}else a&&!s&&(o[t]=i[t]);a===t in o&&o[t]===i[t]||(l=!0)}return l?o:i}_validate(t,e={},r,i){let{from:n=[],originalValue:s=t,recursive:a=this.spec.recursive}=e;e.from=[{schema:this,value:s},...n],e.__validating=!0,e.originalValue=s,super._validate(t,e,r,((t,n)=>{if(!a||!bt(n))return void i(t,n);s=s||n;let o=[];for(let t of this._nodes){let r=this.fields[t];r&&!Y.isRef(r)&&o.push(r.asNestedTest({options:e,key:t,parent:n,parentPath:e.path,originalParent:s}))}this.runTests({tests:o,value:n,originalValue:s,options:e},r,(e=>{i(e.sort(this._sortErrors).concat(t),n)}))}))}clone(t){const e=super.clone(t);return e.fields=Object.assign({},this.fields),e._nodes=this._nodes,e._excludedEdges=this._excludedEdges,e._sortErrors=this._sortErrors,e}concat(t){let e=super.concat(t),r=e.fields;for(let[t,e]of Object.entries(this.fields)){const i=r[t];r[t]=void 0===i?e:i}return e.withMutation((e=>e.setFields(r,[...this._excludedEdges,...t._excludedEdges])))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let e={};return this._nodes.forEach((r=>{var i;const n=this.fields[r];let s=t;null!=(i=s)&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),e[r]=n&&"getDefault"in n?n.getDefault(s):void 0})),e}setFields(t,e){let r=this.clone();return r.fields=t,r._nodes=function(t,e=[]){let r=[],i=new Set,n=new Set(e.map((([t,e])=>`${t}-${e}`)));function s(t,e){let s=d.split(t)[0];i.add(s),n.has(`${e}-${s}`)||r.push([e,s])}for(const e of Object.keys(t)){let r=t[e];i.add(e),Y.isRef(r)&&r.isSibling?s(r.path,e):L(r)&&"deps"in r&&r.deps.forEach((t=>s(t,e)))}return O.array(Array.from(i),r).reverse()}(t,e),r._sortErrors=dt(Object.keys(t)),e&&(r._excludedEdges=e),r}shape(t,e=[]){return this.clone().withMutation((r=>{let i=r._excludedEdges;return e.length&&(Array.isArray(e[0])||(e=[e]),i=[...r._excludedEdges,...e]),r.setFields(Object.assign(r.fields,t),i)}))}partial(){const t={};for(const[e,r]of Object.entries(this.fields))t[e]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return mt(this)}pick(t){const e={};for(const r of t)this.fields[r]&&(e[r]=this.fields[r]);return this.setFields(e,this._excludedEdges.filter((([e,r])=>t.includes(e)&&t.includes(r))))}omit(t){const e=[];for(const r of Object.keys(this.fields))t.includes(r)||e.push(r);return this.pick(e)}from(t,e,r){let i=d.getter(t,!0);return this.transform((n=>{if(!n)return n;let s=n;return((t,e)=>{const r=[...d.normalizePath(e)];if(1===r.length)return r[0]in t;let i=r.pop(),n=d.getter(d.join(r),!0)(t);return!(!n||!(i in n))})(n,t)&&(s=Object.assign({},n),r||delete s[t],s[e]=i(n)),s}))}json(){return this.transform(pt)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||R.exact,test(t){if(null==t)return!0;const e=xt(this.schema,t);return 0===e.length||this.createError({params:{properties:e.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,e=R.noUnknown){"boolean"!=typeof t&&(e=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:e,test(e){if(null==e)return!0;const r=xt(this.schema,e);return!t||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,e=R.noUnknown){return this.noUnknown(!t,e)}transformKeys(t){return this.transform((e=>{if(!e)return e;const r={};for(const i of Object.keys(e))r[t(i)]=e[i];return r}))}camelCase(){return this.transformKeys(g)}snakeCase(){return this.transformKeys(y)}constantCase(){return this.transformKeys((t=>y(t).toUpperCase()))}describe(t){const e=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[n,s]of Object.entries(e.fields)){var i;let e=t;null!=(i=e)&&i.value&&(e=Object.assign({},e,{parent:e.value,value:e.value[n]})),r.fields[n]=s.describe(e)}return r}}vt.prototype=gt.prototype;class yt{constructor(t,e,r){this.isSubmitted=!1,this.validationType="onSubmit",this.subscribedFields={},this.formErrors={},this.getFormErrors=()=>this.formErrors,this.getValues=()=>{const t=this.context.el.shadowRoot.querySelector("form"),e=new FormData(t);return Object.fromEntries(e.entries())},this.focusFirstInput=t=>{if(t.length){const e=t.map((t=>this.context.el.shadowRoot.querySelector(`input[name="${t.name}"]`))).filter((t=>t)).sort(((t,e)=>t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?-1:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING?1:0));e[0]&&e[0].focus()}},this.onSubmit=t=>{t.preventDefault(),(async()=>{try{this.isSubmitted=!0,this.context.isLoading=!0,this.signal({isError:!1});const t=this.getValues(),e=await this.schemaObject.validate(t,{abortEarly:!1,strict:!0});await this.context.formSubmit(e)}catch(t){if("ValidationError"===t.name){this.formErrors={};const e=[];t.inner.forEach((t=>{t.path&&(this.formErrors[t.path]=t.message,e.find((e=>e.name===t.path))||e.push({isError:!0,name:t.path,errorMessage:t.message}))})),this.signal(e),this.focusFirstInput(e)}else console.error("Unexpected Error:",t)}finally{this.context.isLoading=!1}})()},this.newController=(t,e)=>("text"===e&&(this.subscribedFields[t]={name:t,isError:!1,disabled:!1,errorMessage:"",onInput:e=>{this.onChanges(t,e.target.value)}}),this.subscribedFields[t]),this.signal=t=>{Array.isArray(t)?t.forEach((t=>{this.subscribedFields[t.name]&&Object.assign(this.subscribedFields[t.name],t)})):Object.values(this.subscribedFields).forEach((e=>Object.assign(e,t)))},this.onChanges=async(t,e)=>{if(!this.isSubmitted&&"always"!==this.validationType)return;const r=this.subscribedFields[t].isError;try{this.schemaObject.fields[t].validateSync(e),this.signal([{name:t,isError:!1}]),!1!==r&&(this.context.renderControl={})}catch(e){e.message&&(this.signal([{name:t,isError:!0,errorMessage:e.message}]),this.context.renderControl={})}},this.context=t,this.schemaObject=e,this.formController={onSubmit:this.onSubmit},(null==r?void 0:r.validationType)&&(this.validationType=r.validationType)}}const Ft=vt({name:ut().required("r").min(4,"kd").max(7,"kk"),name2:ut().required()}),$t=class{constructor(e){t(this,e),this.form=new yt(this,Ft),this.nameController=this.form.newController("name","text"),this.name2Controller=this.form.newController("name2","text"),this.isLoading=void 0,this.renderControl={}}async formSubmit(t){console.log(t)}render(){const{formController:t}=this.form;return e(r,{key:"d9b4b093c809a56b5ee8cd07b691006bcb1fec1b"},e("form",Object.assign({key:"d2b869ff5a69287a5134d9a886b0f47619acd548"},t),e("form-input",Object.assign({key:"3be3ab63fa20ba896200a325251d9ebc934e524f"},this.nameController,{label:"Name",name:"name"})),e("form-input",Object.assign({key:"845fad4ee5c0f7b0295068a5019b24285f619ce6"},this.name2Controller,{label:"Name2",name:"name2"})),e("button",{key:"2502a1e8daeeab52567eac7103f68aeefeb5c862",type:"submit"},"sd")))}get el(){return i(this)}};$t.style='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}';export{$t as general_inquiry_form}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import{r as t,h as e,H as i,g as a}from"./p-f37b60d5.js";import{L as o}from"./p-65939a2f.js";import{c as r}from"./p-98d9e7ab.js";import{g as n}from"./p-4f08bcb8.js";let s={};const d=class{constructor(e){t(this,e),this.baseUrl="",this.isDev=!1,this.queryString="",this.headerTitle="Manufacturer",this.loadingStateChange=void 0,this.loadedResponse=void 0,this.state="idle",this.externalPartNumber=null,this.errorMessage=null,this.partInformation=void 0}handleSettingData(t){this.partInformation=t}async setData(t,e={}){let i;clearTimeout(this.networkTimeoutRef),this.abortController&&this.abortController.abort(),this.abortController=new AbortController;const a="string"==typeof t,o=a?t:null==t?void 0:t.partNumber;this.externalPartNumber=o;try{if(!o||0===o.trim().length)return void(this.state="idle");this.state="data"===this.state||"error"===this.state?this.state+"-loading":"loading",await new Promise((t=>{i=setTimeout(t,700),this.networkTimeoutRef=i}));const r=a?await n(this,{scopedTimeoutRef:i,partNumber:o,mockData:s},e):t;if(this.networkTimeoutRef===i){if(!r)throw new Error("Wrong response format");this.handleSettingData(r)}this.errorMessage=null,this.state="data"}catch(t){if(t&&"AbortError"===(null==t?void 0:t.name))return;this.state="error",this.partInformation=null,this.errorMessage=t.message}}async fetchData(t=this.externalPartNumber,e={}){await this.setData(t,e)}async loadingListener(){this.loadingStateChange&&this.loadingStateChange(this.state.includes("loading"))}async setMockData(t){s=t}render(){return e(i,{key:"2796ee666656f17a5f8003e3aef0eccc375f9a1e"},e("div",{key:"ffc13581fe7c55099237df50eb59dcff361cd309",class:"min-h-[100px] relative transition-all duration-300 overflow-hidden"},e("div",{key:"bdd73d42532770c55ba77ea2f36ee050188682fd"},e(o,{key:"0ed5c3a8a69d7b598ab2e8748884de8383b1a2a6",isLoading:this.state.includes("loading")}),e("div",{key:"2262bcf4726e9ceaea6c99135fd7cf20c4512bed",class:r("transition-all duration-700",{"scale-0":this.state.includes("loading")||"idle"===this.state,"opacity-0":this.state.includes("loading")})},["error","error-loading"].includes(this.state)&&e("div",{key:"ccfcf127f404ecc6013f80d22ec90aadfb4a49e4",class:"py-[16px]"},e("div",{key:"e207d4ddb4cc91175bb6e82ea1604f8a1e5f740b",class:" px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto"},this.errorMessage)),["data","data-loading"].includes(this.state)&&e("div",{key:"1af79d581ecd24f5cb02d347640d60320a72e322"},e("div",{key:"47d2f26bb14a60837aea54d5cb4b5524e4bd7f7c",class:"flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]"},e("div",{key:"576cfd6e3dd323a2f1504ad794314b5f4bc36bf6",class:"w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]"},this.headerTitle),e("div",{key:"ab4b39b5f189604a00610717c12b64f7c9376785",class:"px-[30px] py-[10px] flex flex-col gap-[15px]"},e("div",{key:"d8663ed569051635bd5c6e661acaca67effe01a4",class:"flex gap-[50px]"},e("div",{key:"3daf1a7ea0ce5650dc0fccacc24073546b5cba0f",class:"flex flex-col flex-1"},e("strong",{key:"3d3c0920eb5b6fc0be35e30b567a5c4809054676",class:"py-[10px] border-b border-b-[grey]"},"Description"),e("div",{key:"fec76ebc8d7bd61e96236ad81ee2cb6a181d43bf",class:"py-[10px]"},this.partInformation.tmcPart.partDescription)),e("div",{key:"9c65eeb1afe501d20b3c74b24f3cfe11f0cccc4a",class:"flex flex-col flex-1"},e("strong",{key:"adf74255acbc1437a291b4782e00c977a9fb4a50",class:"py-[10px] border-b border-b-[grey]"},"Product Group"),e("div",{key:"b98db7431c781d3bdf122b5b4b89eed1b8af8d3e",class:"py-[10px]"},this.partInformation.tmcPart.group)),e("div",{key:"5c1ccd95bfeb9ce0963c27a509bdef054a538e8e",class:"flex-1"})))))))))}get el(){return a(this)}static get watchers(){return{state:["loadingListener"]}}};d.style='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.h-\\[40px\\]{height:40px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-\\[15px\\]{gap:15px}.gap-\\[50px\\]{gap:50px}.overflow-hidden{overflow:hidden}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.border-b-\\[grey\\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[30px\\]{padding-left:30px;padding-right:30px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.py-\\[16px\\]{padding-bottom:16px;padding-top:16px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\\[40px\\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}.duration-100{transition-duration:.1s}';export{d as manufacturer_lookup}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import{h as I}from"./p-f37b60d5.js";import{c as i}from"./p-98d9e7ab.js";const g="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIKICAgIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1sb2FkZXIiPgogICAgPHBhdGggZD0iTTEyIDJ2NCIgLz4KICAgIDxwYXRoIGQ9Im0xNi4yIDcuOCAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTE4IDEyaDQiIC8+CiAgICA8cGF0aCBkPSJtMTYuMiAxNi4yIDIuOSAyLjkiIC8+CiAgICA8cGF0aCBkPSJNMTIgMTh2NCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgMTkuMSAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTIgMTJoNCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgNC45IDIuOSAyLjkiIC8+Cjwvc3ZnPg==";function a({isLoading:a}){return I("div",{class:i("size-full transition-all z-50 duration-100 flex items-center justify-center pointer-events-none absolute ",{"opacity-0":!a})},I("img",{class:"animate-spin-2s size-[40px]",src:g}))}export{a as L,g as l}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import{r as t,h as e,H as i,g as a}from"./p-f37b60d5.js";import{c as o}from"./p-98d9e7ab.js";const r=class{constructor(e){t(this,e),this.activeLookupIndex="0",this.baseUrl="",this.isDev=!1,this.queryString="",this.loadingStateChanged=void 0,this.blazorOnLoadingStateChange="",this.wrapperErrorState="",this.errorStateListener=void 0,this.blazorErrorStateListener="",this.blazorRef=void 0}async componentDidLoad(){const t=this.el.getElementsByTagName("vehicle-specification")[0],e=this.el.getElementsByTagName("vehicle-accessories")[0],i=this.el.getElementsByTagName("warranty-details")[0],a=this.el.getElementsByTagName("service-history")[0],o=this.el.getElementsByTagName("paint-thickness")[0],r=this.el.getElementsByTagName("dynamic-claim")[0];this.componentsList=[t,e,i,a,o,r],this.componentsList.forEach((t=>{t&&(this.loadingStateChanged&&(t.loadingStateChange=this.loadingStateChanged),t.loadedResponse=e=>this.handleLoadData(e,t))}))}async errorListener(t){this.errorStateListener&&this.errorStateListener(t),this.blazorRef&&this.blazorErrorStateListener&&this.blazorRef.invokeMethodAsync(this.blazorErrorStateListener,t)}async handleLoadingListenerPropChange(t){this.componentsList.forEach((e=>{e&&(e.loadingStateChange=t)}))}async handleBlazorLoadingRefChange(t){this.blazorRef&&this.componentsList.forEach((e=>{e&&(e.loadingStateChange=e=>this.blazorRef.invokeMethodAsync(t,e))}))}async setBlazorRef(t){this.blazorRef=t,this.blazorOnLoadingStateChange&&this.componentsList.forEach((t=>{t&&(t.loadingStateChange=t=>this.blazorRef.invokeMethodAsync(this.blazorOnLoadingStateChange,t))}))}async fetchVin(t,e={}){const i=this.componentsList[this.activeLookupIndex]||null;if(this.wrapperErrorState="",i)return""==t?this.wrapperErrorState="VIN is required":function(t){const e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9},i=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2];let a=0,o=!0;for(let r=0;r<t.length;r++){const s=e[t[r].toUpperCase()];if(void 0===s){o=!1;break}a+=s*i[r]}let r=(a%11).toString();return"10"===r&&(r="X"),t[8]!=r&&(o=!1),o}(t)?void i.fetchData(t,e):this.wrapperErrorState="Invalid VIN"}async getPageContext(){return{componentsList:this.componentsList}}handleLoadData(t,e){this.componentsList.forEach((i=>{null!==i&&i!==e&&t&&i.setData(t)}))}render(){return e(i,{key:"a4d959364edc8724222e9c86e235c9fea7a841e8"},e("div",{key:"a7bb216fab47a8f43eca1869287bcab3ce22abad",class:o("w-full",{hidden:"0"!==this.activeLookupIndex})},e("vehicle-specification",{key:"83b6a1ac41c1c8ebed52eb2e1b80e22cf3a2a682",isDev:this.isDev,"base-url":this.baseUrl,"query-string":this.queryString})),e("div",{key:"206baae65524d3d5f9fc55e16c8be070ddcef2ab",class:o("w-full",{hidden:"1"!==this.activeLookupIndex})},e("vehicle-accessories",{key:"91c6b7efd35569fe9f263ddf03b48dbdb3fff486",isDev:this.isDev,"base-url":this.baseUrl,"query-string":this.queryString})),e("div",{key:"c0a84686eec26167cffe814decccc2dddef38b44",class:o("w-full",{hidden:"2"!==this.activeLookupIndex})},e("warranty-details",{key:"79e5ca9febb221b5cb6e68f09f8fb62e32ed81a1","show-ssc":"true","show-warranty":"true",isDev:this.isDev,"base-url":this.baseUrl,"query-string":this.queryString},e("slot",{key:"21142a5eba6e79da1a0e0dfe57cea14ca312c6ef"}))),e("div",{key:"9aad6683a820af6bbbf97cfa3caa1459835902da",class:o("w-full",{hidden:"3"!==this.activeLookupIndex})},e("service-history",{key:"e2347128a60dcb2941043526e37bf61d58353684",isDev:this.isDev,"base-url":this.baseUrl,"query-string":this.queryString})),e("div",{key:"dd860e09c94add2795aa31d90be25de5974a51d0",class:o("w-full",{hidden:"4"!==this.activeLookupIndex})},e("paint-thickness",{key:"53309a1e95589257164c4cc8e8effa68a5996466",isDev:this.isDev,"base-url":this.baseUrl,"query-string":this.queryString})),e("div",{key:"1a19942869e935d7803877fae4bf6346c63c3011",class:o("w-full",{hidden:"5"!==this.activeLookupIndex})},e("dynamic-claim",{key:"f3e9bd8e57dda6f3b686ff09b6ec6ac20bb28d93",isDev:this.isDev,"base-url":this.baseUrl,"query-string":this.queryString})))}get el(){return a(this)}static get watchers(){return{wrapperErrorState:["errorListener"],onLoadingStateChanged:["handleLoadingListenerPropChange"],blazorOnLoadingStateChange:["handleBlazorLoadingRefChange"]}}};r.style='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{display:block}.static{position:static}.hidden{display:none}.w-full{width:100%}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-0{height:0}.h-\\[40px\\]{height:40px}.h-\\[80px\\]{height:80px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\\[20px\\]{padding-bottom:20px;padding-top:20px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.pt-\\[4px\\]{padding-top:4px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.font-bold{font-weight:700}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.success-card{background-color:#d0e7de;border-color:#a2d0bb;color:#0b3521}';export{r as vehicle_lookup}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import{r as t,h as e,H as o,g as i}from"./p-f37b60d5.js";import{L as a}from"./p-65939a2f.js";import{c as r}from"./p-98d9e7ab.js";import{g as s}from"./p-4f08bcb8.js";let n={};const l=class{constructor(e){t(this,e),this.baseUrl="",this.isDev=!1,this.queryString="",this.loadingStateChange=void 0,this.loadedResponse=void 0,this.state="idle",this.externalPartNumber=null,this.errorMessage=null,this.partInformation=void 0}handleSettingData(t){this.partInformation=t}async setData(t,e={}){let o;clearTimeout(this.networkTimeoutRef),this.abortController&&this.abortController.abort(),this.abortController=new AbortController;const i="string"==typeof t,a=i?t:null==t?void 0:t.partNumber;this.externalPartNumber=a;try{if(!a||0===a.trim().length)return void(this.state="idle");this.state="data"===this.state||"error"===this.state?this.state+"-loading":"loading",await new Promise((t=>{o=setTimeout(t,700),this.networkTimeoutRef=o}));const r=i?await s(this,{scopedTimeoutRef:o,partNumber:a,mockData:n},e):t;if(this.networkTimeoutRef===o){if(!r)throw new Error("Wrong response format");this.handleSettingData(r)}this.errorMessage=null,this.state="data"}catch(t){if(t&&"AbortError"===(null==t?void 0:t.name))return;this.state="error",this.partInformation=null,this.errorMessage=t.message}}async fetchData(t=this.externalPartNumber,e={}){await this.setData(t,e)}async loadingListener(){this.loadingStateChange&&this.loadingStateChange(this.state.includes("loading"))}async setMockData(t){n=t}render(){var t;const i=this.partInformation?[{label:"Description",value:this.partInformation.stockParts[0].partDescription},{label:"Product Group",value:this.partInformation.stockParts[0].group},{label:"Price",value:this.partInformation.stockParts[0].price}]:[],s=this.partInformation?[{label:"Superseded To",value:this.partInformation.stockParts[0].supersededTo},{label:"Superseded From",value:this.partInformation.stockParts[0].supersededFrom}]:[],n=!!this.partInformation&&!this.partInformation.stockParts.some((({quantityLookUpResult:t})=>"LookupIsSkipped"===t||"QuantityNotWithinLookupThreshold"===t));return e(o,{key:"79c2ce86ba515ef9bc26e6ee0d337be842cee5f1"},e("div",{key:"f48591eaa1b5440d50ac9566907e1d771022de7c",class:"min-h-[100px] relative transition-all duration-300 overflow-hidden"},e("div",{key:"381e363eec8c71ca7a639338c4ffb99a483542aa"},e(a,{key:"5f59b51bff60f4a2ffb840c6e61697e67577074e",isLoading:this.state.includes("loading")}),e("div",{key:"8b7dc79b0731e99139720ab43153070279437991",class:r("transition-all duration-700",{"scale-0":this.state.includes("loading")||"idle"===this.state,"opacity-0":this.state.includes("loading")})},["error","error-loading"].includes(this.state)&&e("div",{key:"dd1701dcb27b0436b1c6d13c6e35f603911eb373",class:"py-[16px]"},e("div",{key:"8a94e43ebfaff59a1000b6fd253b2c8b1172c87c",class:" px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto"},this.errorMessage)),["data","data-loading"].includes(this.state)&&e("div",{key:"9ac28a4b1fddea36b41cdad10244f95aa94bc400"},e("div",{key:"1e1e65f06b0e30d6d7a087d412c9d5e54337ee17",class:"flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]"},e("div",{key:"7b675eb6ca2cd95dbbaebb3aebbbc54ac7340417",class:"w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]"},"Info"),e("div",{key:"a4c2b16157f953406c5f14f7fd1e04112455b1eb",class:"py-[10px] flex flex-col gap-[15px]"},e("div",{key:"9e0f362dcb01d78b78fbc3b27af289721fe7b1d7",class:"flex gap-[50px]"},i.map((({label:t,value:o})=>e("div",{key:t,class:"flex flex-col flex-1"},e("strong",{class:"py-[10px] px-0 border-b-[gray] border-b"},t),e("div",{class:"py-[10px] px-0"},o))))),e("div",{key:"6f031fb75275a7e91d76a9af02f2beb205dd2537",class:"flex gap-[50px]"},s.map((({label:t,value:o})=>e("div",{key:t,class:"flex flex-col flex-1"},e("strong",{class:"py-[10px] px-0 border-b border-b-[grey]"},t),e("div",{class:"py-[10px] px-0"},o)))),e("div",{key:"7a442c3e03c340e85810930ad0b47bf6f9e02619",class:"flex-1"})))),n&&e("div",{key:"6fd4a90e0606586f300d49f224a4e2d43dacfd59",class:"flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]"},e("div",{key:"edd8c06e7f8e88507005bb5c0349985251161cf2",class:"w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]"},"Distributor Stock"),e("div",{key:"482ebf02eb1bcb4f179d71d9b9d0ee68b1df0765",class:"flex flex-col gap-[15px]"},e("table",{key:"6df53c5a8af361cfb9b7805d904894774465eca2",class:"w-full overflow-auto relative border-collapse"},e("thead",{key:"80de5117fb5c3d88df9f3b2d978ab53b0a3d1ab6",class:"top-0 font-bold sticky bg-white"},e("tr",{key:"6a41439bc02d475cd8b3f3f5aeb6d8893219a164"},["Location","Availability"].map((t=>e("th",{key:t,class:"px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]"},t))))),e("tbody",{key:"a0752f0ac86dbc23f1a44fcef1a258bffc37cb6c"},null===(t=this.partInformation)||void 0===t?void 0:t.stockParts.map((t=>e("tr",{class:"transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100",key:t.locationID},e("td",{class:r("px-[10px] py-[20px] text-center whitespace-nowrap")},t.locationName),e("td",{class:r("px-[10px] py-[20px] text-center whitespace-nowrap")},e("div",{class:r("text-[red]",{"text-[green]":"Available"===t.quantityLookUpResult,"text-[orange]":"PartiallyAvailable"===t.quantityLookUpResult})},e("strong",null,"Available"===t.quantityLookUpResult?"Available":"PartiallyAvailable"===t.quantityLookUpResult?"Partially Available":"Not Available")))))))))))))))}get el(){return i(this)}static get watchers(){return{state:["loadingListener"]}}};l.style='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.table{display:table}.h-\\[40px\\]{height:40px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-\\[15px\\]{gap:15px}.gap-\\[50px\\]{gap:50px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.border-b-\\[gray\\],.border-b-\\[grey\\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-0{padding-left:0;padding-right:0}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.py-\\[16px\\]{padding-bottom:16px;padding-top:16px}.py-\\[20px\\]{padding-bottom:20px;padding-top:20px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.font-bold{font-weight:700}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-\\[green\\]{--tw-text-opacity:1;color:rgb(0 128 0/var(--tw-text-opacity,1))}.text-\\[orange\\]{--tw-text-opacity:1;color:rgb(255 165 0/var(--tw-text-opacity,1))}.text-\\[red\\]{--tw-text-opacity:1;color:rgb(255 0 0/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.last\\:border-none:last-child{border-style:none}.hover\\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\\[40px\\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}';export{l as distributor_lookup}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
window.blazorInvoke||(window.blazorInvoke=function(n,o,...e){const t=document.querySelector(n);if(t)if("function"==typeof t[o])try{return t[o](...e)}catch(e){console.error(`Error invoking function "${o}" on element "${n}":`,e)}else console.error(`Function "${o}" not found on the element.`);else console.error(`Element with selector "${n}" not found.`)},console.log("Global blazorInvoke initialized."));const n=()=>{};export{n as g}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",f="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},h={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},d=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&h.o?g(b):h.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(v),$(y),(m=v.length>0)&&h.raf(b)},g=e=>d().then(e),S=w(y,!0),k={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>C,ok:()=>E,unwrap:()=>A,unwrapErr:()=>T});var E=e=>({isOk:!0,isErr:!1,value:e}),x=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return x(e.value);throw"should never get here"}var M,P,R,A=e=>{if(e.isOk)return e.value;throw e.value},T=e=>{if(e.isErr)return e.value;throw e.value},H=(e,t,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?D(null,o):o),r=i)};if(f(n),t){t.key&&(l=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,L);const u=D(e,null);return u.u=t,c.length>0&&(u.h=c),u.p=l,u.m=s,u},D=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},L={forEach:(e,t)=>e.map(U).forEach(t),map:(e,t)=>e.map(U).map(t).map(F)},U=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),F=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),H(e.vtag,t,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},W=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=W(e);return{emit:e=>G(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const o=h.ce(t,n);return e.dispatchEvent(o),o},I=new WeakMap,V=e=>"sc-"+e.S,_=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=B(n),s=B(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,u=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(f,t):e.removeAttribute(t)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,u?e.setAttributeNS(f,t,o):e.setAttribute(t,o))}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&h.rel(e,t,n,l),o&&h.ael(e,t,o,l)}}},z=/\s/,B=e=>e?e.split(z):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||k,s=t.u||k;for(const e of X(Object.keys(l)))e in s||_(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))_(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let i,r,c,f=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=a.createTextNode(s.i);else if(1&s.o)i=s.$=a.createTextNode("");else{if(te||(te="svg"===s.v),i=s.$=a.createElementNS(te?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Y&&2&s.o?"slot-fb":s.v),te&&"foreignObject"===s.v&&(te=!1),Q(null,s,te),i.getRootNode().querySelector("body"),s.h)for(f=0;f<s.h.length;++f)r=ne(e,s,f,i),r&&i.appendChild(r);"svg"===s.v?te=!1:"foreignObject"===i.tagName&&(te=!0)}return i["s-hn"]=R,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=P,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),i},oe=(e,t)=>{h.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==R&&o["s-ol"]&&(me(ce(o),o,re(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}h.o&=-2},le=(e,t,n,o,l,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===R&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=ne(null,n,l,e),i&&(o[l].$=i,me(r,i,re(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},ie=(e,t,n=!1)=>!(e.v!==t.v||("slot"===e.v?"k"in e&&n&&8!==e.$.nodeType||e.m!==t.m:!n&&e.p!==t.p)),re=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,fe=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.v,r=t.i;let c;null===r?(te="svg"===i||"foreignObject"!==i&&te,("slot"!==i||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=t.length-1,h=t[0],d=t[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ie(h,m,l))fe(h,m,l),h=t[++r],m=o[++c];else if(ie(d,v,l))fe(d,v,l),d=t[--a],v=o[--p];else if(ie(h,v,l))"slot"!==h.v&&"slot"!==v.v||oe(h.$.parentNode,!1),fe(h,v,l),me(e,h.$,d.$.nextSibling),h=t[++r],v=o[--p];else if(ie(d,m,l))"slot"!==h.v&&"slot"!==v.v||oe(d.$.parentNode,!1),fe(d,m,l),me(e,d.$,h.$),d=t[--a],m=o[++c];else{for(f=-1,u=r;u<=a;++u)if(t[u]&&null!==t[u].p&&t[u].p===m.p){f=u;break}f>=0?(i=t[f],i.v!==m.v?s=ne(t&&t[c],n,f,e):(fe(i,m,l),t[f]=void 0,s=i.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(h.$),s,re(h.$))}r>a?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):!n&&null!==l&&se(l,0,l.length-1),te&&"svg"===i&&(te=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:e.i!==r&&(o.data=r)},ue=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}ue(e)}},ae=[],he=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(de(t,e)){let n=ae.find((e=>e.j===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.j["s-sh"]=l["s-hn"],n.O=l):(t["s-sh"]=l["s-hn"],ae.push({O:l,j:t})),t["s-sr"]&&ae.map((e=>{de(e.j,t["s-sn"])&&(n=ae.find((e=>e.j===t)),n&&!e.O&&(e.O=n.O))}))}else ae.some((e=>e.j===t))||ae.push({j:t})}1===l.nodeType&&he(l)}},de=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ve=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ye=(e,t)=>{if(e.o|=16,!(4&e.o))return ve(e,e.M),S((()=>we(e,t)));e.o|=512},we=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return $e(void 0,(()=>ge(e,n,t)))},$e=(e,t)=>be(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),be=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ge=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.P,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=V(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=I.get(e=e.head||e);if(i||I.set(e,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=h.R)?n:O(a);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Se(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ke(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Se=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,i;const r=e.$hostElement$,c=e.P,f=e.A||D(null,null),u=(e=>e&&e.v===N)(t)?t:H(null,null,t);if(R=r.tagName,n&&u.u)for(const e of Object.keys(u.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.u[e]=r[e]);if(u.v=null,u.o|=4,e.A=u,u.$=f.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),P=r["s-cr"],Z=!1,fe(f,u,n),h.o|=1,ee){he(u.$);for(const e of ae){const t=e.j;if(!t["s-ol"]){const e=a.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ae){const t=e.j,r=e.O;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Z&&ue(u.$),h.o&=-2,ae.length=0,P=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},ke=e=>{const t=e.$hostElement$,n=e.t,o=e.M;64&e.o||(e.o|=64,Ee(t),Oe(n,"componentDidLoad"),e.T(t),o||je()),e.H(t),e.C&&(e.C(),e.C=void 0),512&e.o&&g((()=>ye(e,!1))),e.o&=-517},je=()=>{Ee(a.documentElement),g((()=>G(u,"appload",{detail:{namespace:"shift-components"}})))},Oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Ee=e=>e.classList.add("hydrated"),xe=(e,t,o)=>{var l,i;const r=e.prototype;if(t.D||t.N||e.watchers){e.watchers&&!t.N&&(t.N=e.watchers);const c=Object.entries(null!=(l=t.D)?l:{});if(c.map((([e,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,e,{get(){return((e,t)=>n(this).L.get(t))(0,e)},set(o){((e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.L.get(t),f=i.o,u=i.t;if(o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(o,l.D[t][0]),(!(8&f)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.L.set(t,o),u)){if(l.N&&128&f){const e=l.N[t];e&&e.map((e=>{try{u[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&f)&&ye(i,!1)}})(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.U)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){h.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.N)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.N)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},Ce=(e,o={})=>{var l;const f=[],d=o.exclude||[],m=u.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(h,o),h.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],S:o[1],D:o[2],F:o[3]};4&c.o&&(S=!0),c.D=o[2],c.N=null!=(l=o[4])?l:{};const u=c.S,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,P:n,L:new Map};o.U=new Promise((e=>o.H=e)),o.W=new Promise((e=>o.T=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):h.jmp((()=>(e=>{if(!(1&h.o)){const t=n(e),o=t.P,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.W)&&t.W.then((()=>{}));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.M=n);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.q){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.q;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
6
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.G}" was not found`);o.isProxied||(n.N=o.watchers,xe(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,t.o|=128,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.M,c=()=>ye(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}))}})()))}componentOnReady(){return n(this).W}};c.q=e[0],d.includes(u)||m.get(u)||(f.push(u),m.define(u,xe(v,c,1)))}))})),f.length>0&&(S&&(w.textContent+=c),w.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(l=h.R)?l:O(a);null!=e&&w.setAttribute("nonce",e),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):h.jmp((()=>b=setTimeout(je,30)))},Me=e=>h.R=e;export{N as H,Ce as b,q as c,W as g,H as h,d as p,o as r,Me as s}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import{p as e,b as a}from"./p-
|
|
5
|
+
import{p as e,b as a}from"./p-f37b60d5.js";export{s as setNonce}from"./p-f37b60d5.js";import{g as t}from"./p-a92f02d4.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-7177b6f0",[[4,"vehicle-lookup",{activeLookupIndex:[1,"active-lookup-index"],baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChanged:[16],blazorOnLoadingStateChange:[1,"blazor-on-loading-state-change"],errorStateListener:[16],blazorErrorStateListener:[1,"blazor-error-state-listener"],wrapperErrorState:[32],blazorRef:[32],setBlazorRef:[64],fetchVin:[64],getPageContext:[64]},null,{wrapperErrorState:["errorListener"],onLoadingStateChanged:["handleLoadingListenerPropChange"],blazorOnLoadingStateChange:["handleBlazorLoadingRefChange"]}]]],["p-4c3f2850",[[1,"general-inquiry-form",{isLoading:[32],renderControl:[32]}]]],["p-1a727cfd",[[1,"dead-stock-lookup",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalPartNumber:[32],errorMessage:[32],partInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]],["p-8b198a04",[[1,"distributor-lookup",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalPartNumber:[32],errorMessage:[32],partInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]],["p-4ca95c3d",[[1,"manufacturer-lookup",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],headerTitle:[1,"header-title"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalPartNumber:[32],errorMessage:[32],partInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]],["p-15e82b1a",[[0,"form-input",{name:[1],label:[1],class:[1],isError:[4,"is-error"],disabled:[4],labelClass:[1,"label-class"],errorClass:[1,"error-class"],errorMessage:[1,"error-message"],containerClass:[1,"container-class"]}]]],["p-2bb4415e",[[1,"dynamic-redeem",{vin:[1],item:[16],canceledItems:[16],unInvoicedByBrokerName:[1,"un-invoiced-by-broker-name"],handleScanner:[16],handleQrChanges:[16],loadingStateChange:[16],confirmServiceCancellation:[32],confirmUnInvoicedTBPVehicles:[32],internalVin:[32],isOpened:[32],internalItem:[32],internalCanceledItem:[32],isLoading:[32],quite:[64],getQrValue:[64]},null,{isLoading:["onIsLoadingChange"],canceledItems:["changeInternalCanceledItem"],unInvoicedByBrokerName:["changeConfirmUnInvoicedTBPVehicles"],vin:["changeInternalVin"],item:["changeInternalItem"]}]]],["p-3f3b41b4",[[1,"dynamic-claim",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],isIdle:[32],popupClasses:[32],externalVin:[32],activePopupIndex:[32],vehicleInformation:[32],errorMessage:[32],isLoading:[32],setMockData:[64],setData:[64],fetchData:[64],completeClaim:[64]},null,{isLoading:["onLoadingChange"],vehicleInformation:["resetProgressBar"],popupClasses:["windowScrollListener"]}],[1,"paint-thickness",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],expandedImage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"service-history",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"vehicle-accessories",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],expandedImage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"vehicle-specification",{baseUrl:[1,"base-url"],isDev:[4,"is-dev"],queryString:[1,"query-string"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],vehicleInformation:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}],[1,"warranty-details",{baseUrl:[1,"base-url"],unauthorizedSscLookupBaseUrl:[1,"unauthorized-ssc-lookup-base-url"],isDev:[4,"is-dev"],showSsc:[4,"show-ssc"],queryString:[1,"query-string"],unauthorizedSscLookupQueryString:[1,"unauthorized-ssc-lookup-query-string"],recaptchaKey:[1,"recaptcha-key"],showWarranty:[4,"show-warranty"],cityId:[1,"city-id"],cityIntegrationId:[1,"city-integration-id"],companyId:[1,"company-id"],companyIntegrationId:[1,"company-integration-id"],companyBranchId:[1,"company-branch-id"],companyBranchIntegrationId:[1,"company-branch-integration-id"],userId:[1,"user-id"],brandIntegrationId:[1,"brand-integration-id"],customerName:[1,"customer-name"],customerPhone:[1,"customer-phone"],customerEmail:[1,"customer-email"],loadingStateChange:[16],loadedResponse:[16],state:[32],externalVin:[32],errorMessage:[32],showRecaptcha:[32],unInvoicedByBrokerName:[32],vehicleInformation:[32],checkingUnauthorizedSSC:[32],recaptchaRes:[32],headers:[32],setData:[64],fetchData:[64],setMockData:[64]},null,{state:["loadingListener"]}]]]],e))));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { WarrantyDetails } from "../warranty-details/warranty-details";
|
|
2
|
+
import { VehicleAccessories } from "../vehicle-accessories/vehicle-accessories";
|
|
3
|
+
import { VehicleSpecification } from "../vehicle-specification/vehicle-specification";
|
|
4
|
+
import { ServiceHistory } from "../service-history/service-history";
|
|
5
|
+
import { PaintThickness } from "../paint-thickness/paint-thickness";
|
|
6
|
+
import { DynamicClaim } from "../dynamic-claim/dynamic-claim";
|
|
7
|
+
import { DotNetObjectReference } from "../../global/types/components";
|
|
8
|
+
export declare class VehicleLookup {
|
|
9
|
+
activeLookupIndex?: string;
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
isDev: boolean;
|
|
12
|
+
queryString: string;
|
|
13
|
+
loadingStateChanged?: (isLoading: boolean) => void;
|
|
14
|
+
blazorOnLoadingStateChange: string;
|
|
15
|
+
wrapperErrorState: string;
|
|
16
|
+
errorStateListener?: (newError: string) => void;
|
|
17
|
+
blazorErrorStateListener: string;
|
|
18
|
+
blazorRef?: DotNetObjectReference;
|
|
19
|
+
el: HTMLElement;
|
|
20
|
+
private componentsList;
|
|
21
|
+
componentDidLoad(): Promise<void>;
|
|
22
|
+
errorListener(newState: any): Promise<void>;
|
|
23
|
+
handleLoadingListenerPropChange(newProp: any): Promise<void>;
|
|
24
|
+
handleBlazorLoadingRefChange(loadingInvokeRef: any): Promise<void>;
|
|
25
|
+
setBlazorRef(newBlazorRef: DotNetObjectReference): Promise<void>;
|
|
26
|
+
fetchVin(vin: string, headers?: any): Promise<"VIN is required" | "Invalid VIN">;
|
|
27
|
+
getPageContext(): Promise<{
|
|
28
|
+
componentsList: [VehicleSpecification, VehicleAccessories, WarrantyDetails, ServiceHistory, PaintThickness, DynamicClaim];
|
|
29
|
+
}>;
|
|
30
|
+
private handleLoadData;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -6,11 +6,23 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { PartInformation } from "./global/types/part-information";
|
|
9
|
-
import { MockJson } from "./global/types/components";
|
|
9
|
+
import { DotNetObjectReference, MockJson } from "./global/types/components";
|
|
10
10
|
import { ServiceItem, VehicleInformation } from "./global/types/vehicle-information";
|
|
11
|
+
import { VehicleSpecification } from "./components/vehicle-specification/vehicle-specification";
|
|
12
|
+
import { VehicleAccessories } from "./components/vehicle-accessories/vehicle-accessories";
|
|
13
|
+
import { WarrantyDetails } from "./components/warranty-details/warranty-details";
|
|
14
|
+
import { ServiceHistory } from "./components/service-history/service-history";
|
|
15
|
+
import { PaintThickness } from "./components/paint-thickness/paint-thickness";
|
|
16
|
+
import { DynamicClaim } from "./components/dynamic-claim/dynamic-claim";
|
|
11
17
|
export { PartInformation } from "./global/types/part-information";
|
|
12
|
-
export { MockJson } from "./global/types/components";
|
|
18
|
+
export { DotNetObjectReference, MockJson } from "./global/types/components";
|
|
13
19
|
export { ServiceItem, VehicleInformation } from "./global/types/vehicle-information";
|
|
20
|
+
export { VehicleSpecification } from "./components/vehicle-specification/vehicle-specification";
|
|
21
|
+
export { VehicleAccessories } from "./components/vehicle-accessories/vehicle-accessories";
|
|
22
|
+
export { WarrantyDetails } from "./components/warranty-details/warranty-details";
|
|
23
|
+
export { ServiceHistory } from "./components/service-history/service-history";
|
|
24
|
+
export { PaintThickness } from "./components/paint-thickness/paint-thickness";
|
|
25
|
+
export { DynamicClaim } from "./components/dynamic-claim/dynamic-claim";
|
|
14
26
|
export namespace Components {
|
|
15
27
|
interface DeadStockLookup {
|
|
16
28
|
"baseUrl": string;
|
|
@@ -108,6 +120,19 @@ export namespace Components {
|
|
|
108
120
|
"setData": (newData: VehicleInformation | string, headers?: any) => Promise<void>;
|
|
109
121
|
"setMockData": (newMockData: MockJson<VehicleInformation>) => Promise<void>;
|
|
110
122
|
}
|
|
123
|
+
interface VehicleLookup {
|
|
124
|
+
"activeLookupIndex"?: string;
|
|
125
|
+
"baseUrl": string;
|
|
126
|
+
"blazorErrorStateListener": string;
|
|
127
|
+
"blazorOnLoadingStateChange": string;
|
|
128
|
+
"errorStateListener"?: (newError: string) => void;
|
|
129
|
+
"fetchVin": (vin: string, headers?: any) => Promise<"VIN is required" | "Invalid VIN">;
|
|
130
|
+
"getPageContext": () => Promise<{ componentsList: [VehicleSpecification, VehicleAccessories, WarrantyDetails, ServiceHistory, PaintThickness, DynamicClaim]; }>;
|
|
131
|
+
"isDev": boolean;
|
|
132
|
+
"loadingStateChanged"?: (isLoading: boolean) => void;
|
|
133
|
+
"queryString": string;
|
|
134
|
+
"setBlazorRef": (newBlazorRef: DotNetObjectReference) => Promise<void>;
|
|
135
|
+
}
|
|
111
136
|
interface VehicleSpecification {
|
|
112
137
|
"baseUrl": string;
|
|
113
138
|
"fetchData": (requestedVin?: string, headers?: any) => Promise<void>;
|
|
@@ -221,6 +246,12 @@ declare global {
|
|
|
221
246
|
prototype: HTMLVehicleAccessoriesElement;
|
|
222
247
|
new (): HTMLVehicleAccessoriesElement;
|
|
223
248
|
};
|
|
249
|
+
interface HTMLVehicleLookupElement extends Components.VehicleLookup, HTMLStencilElement {
|
|
250
|
+
}
|
|
251
|
+
var HTMLVehicleLookupElement: {
|
|
252
|
+
prototype: HTMLVehicleLookupElement;
|
|
253
|
+
new (): HTMLVehicleLookupElement;
|
|
254
|
+
};
|
|
224
255
|
interface HTMLVehicleSpecificationElement extends Components.VehicleSpecification, HTMLStencilElement {
|
|
225
256
|
}
|
|
226
257
|
var HTMLVehicleSpecificationElement: {
|
|
@@ -244,6 +275,7 @@ declare global {
|
|
|
244
275
|
"paint-thickness": HTMLPaintThicknessElement;
|
|
245
276
|
"service-history": HTMLServiceHistoryElement;
|
|
246
277
|
"vehicle-accessories": HTMLVehicleAccessoriesElement;
|
|
278
|
+
"vehicle-lookup": HTMLVehicleLookupElement;
|
|
247
279
|
"vehicle-specification": HTMLVehicleSpecificationElement;
|
|
248
280
|
"warranty-details": HTMLWarrantyDetailsElement;
|
|
249
281
|
}
|
|
@@ -322,6 +354,16 @@ declare namespace LocalJSX {
|
|
|
322
354
|
"loadingStateChange"?: (isLoading: boolean) => void;
|
|
323
355
|
"queryString"?: string;
|
|
324
356
|
}
|
|
357
|
+
interface VehicleLookup {
|
|
358
|
+
"activeLookupIndex"?: string;
|
|
359
|
+
"baseUrl"?: string;
|
|
360
|
+
"blazorErrorStateListener"?: string;
|
|
361
|
+
"blazorOnLoadingStateChange"?: string;
|
|
362
|
+
"errorStateListener"?: (newError: string) => void;
|
|
363
|
+
"isDev"?: boolean;
|
|
364
|
+
"loadingStateChanged"?: (isLoading: boolean) => void;
|
|
365
|
+
"queryString"?: string;
|
|
366
|
+
}
|
|
325
367
|
interface VehicleSpecification {
|
|
326
368
|
"baseUrl"?: string;
|
|
327
369
|
"isDev"?: boolean;
|
|
@@ -363,6 +405,7 @@ declare namespace LocalJSX {
|
|
|
363
405
|
"paint-thickness": PaintThickness;
|
|
364
406
|
"service-history": ServiceHistory;
|
|
365
407
|
"vehicle-accessories": VehicleAccessories;
|
|
408
|
+
"vehicle-lookup": VehicleLookup;
|
|
366
409
|
"vehicle-specification": VehicleSpecification;
|
|
367
410
|
"warranty-details": WarrantyDetails;
|
|
368
411
|
}
|
|
@@ -381,6 +424,7 @@ declare module "@stencil/core" {
|
|
|
381
424
|
"paint-thickness": LocalJSX.PaintThickness & JSXBase.HTMLAttributes<HTMLPaintThicknessElement>;
|
|
382
425
|
"service-history": LocalJSX.ServiceHistory & JSXBase.HTMLAttributes<HTMLServiceHistoryElement>;
|
|
383
426
|
"vehicle-accessories": LocalJSX.VehicleAccessories & JSXBase.HTMLAttributes<HTMLVehicleAccessoriesElement>;
|
|
427
|
+
"vehicle-lookup": LocalJSX.VehicleLookup & JSXBase.HTMLAttributes<HTMLVehicleLookupElement>;
|
|
384
428
|
"vehicle-specification": LocalJSX.VehicleSpecification & JSXBase.HTMLAttributes<HTMLVehicleSpecificationElement>;
|
|
385
429
|
"warranty-details": LocalJSX.WarrantyDetails & JSXBase.HTMLAttributes<HTMLWarrantyDetailsElement>;
|
|
386
430
|
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function validateVin(vin: any): boolean;
|