adp-web-components 0.1.86 → 0.1.87
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/dead-stock-lookup_3.cjs.entry.js +5 -5
- package/dist/cjs/flexible-container.cjs.entry.js +1 -1
- package/dist/cjs/form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/form-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/form-dialog_13.cjs.entry.js +13 -13
- package/dist/cjs/form-input_5.cjs.entry.js +5 -5
- package/dist/cjs/form-switch.cjs.entry.js +1 -1
- package/dist/cjs/form-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/{functions-D5J5cdK2.js → functions-B8zuvn0I.js} +5 -5
- package/dist/cjs/general-form.cjs.entry.js +2 -2
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
- package/dist/cjs/{get-local-language-CWfRQqOw.js → get-local-language-DgKmTOw3.js} +1 -1
- package/dist/cjs/{get-mock-files-DG4Nk29D.js → get-mock-files-B0LOwG9Y.js} +1 -1
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/service-booking-form.cjs.entry.js +2 -2
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +2 -2
- package/dist/cjs/ssc-lookup-form.cjs.entry.js +2 -2
- package/dist/cjs/test-drive-form.cjs.entry.js +2 -2
- package/dist/cjs/vehicle-accessories_7.cjs.entry.js +8 -8
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +9 -8
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-select.css +1 -1
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation.js +7 -6
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
- package/dist/collection/features/form-hook/functions.js +4 -4
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-date-picker.js +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-file.js +1 -1
- package/dist/components/form-input-preview.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.js +1 -1
- package/dist/components/form-picker-input.js +1 -1
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.js +1 -1
- package/dist/components/form-stepper-control.js +1 -1
- package/dist/components/form-stepper-submit.js +1 -1
- package/dist/components/form-stepper.js +1 -1
- package/dist/components/form-structure-error.js +1 -1
- package/dist/components/form-structure.js +1 -1
- package/dist/components/form-submit.js +1 -1
- package/dist/components/form-switch.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/form-time-picker.js +1 -1
- package/dist/components/form-vin-input.js +1 -1
- package/dist/components/general-form.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/manufacturer-part-lookup.js +1 -1
- package/dist/components/{p-DqaISuxu.js → p-B3i0qlmP.js} +1 -1
- package/dist/components/{p-D1sSrUE7.js → p-BR17GwMP.js} +1 -1
- package/dist/components/{p-CQ1pe5_N.js → p-BStdaKUW.js} +1 -1
- package/dist/components/{p-04wNXJ_q.js → p-Beal8HBv.js} +1 -1
- package/dist/components/{p-E1MRBxpY.js → p-BjxXpALJ.js} +1 -1
- package/dist/components/{p-R9s5HIai.js → p-ByIyuTgY.js} +1 -1
- package/dist/components/{p-BgttkHzs.js → p-C5Adm0yQ.js} +1 -1
- package/dist/components/{p-NC__PzEk.js → p-C8273fhq.js} +1 -1
- package/dist/components/{p-CAvWNw8_.js → p-CBVOlWDR.js} +1 -1
- package/dist/components/{p-DEniRp-Y.js → p-CETtCq5M.js} +1 -1
- package/dist/components/{p-Toqpa7YK.js → p-CEaAolsJ.js} +1 -1
- package/dist/components/{p-BFxBL1n-.js → p-COPmj7B5.js} +1 -1
- package/dist/components/p-CS7DsoSo.js +5 -0
- package/dist/components/{p-Rs-gwVEC.js → p-CWIhyBXh.js} +1 -1
- package/dist/components/{p-ajNVZbZb.js → p-CfywqPfb.js} +1 -1
- package/dist/components/{p-EVz2SQxD.js → p-Cliso0Jh.js} +1 -1
- package/dist/components/{p-C2TMzq3P.js → p-Cp10Giyv.js} +1 -1
- package/dist/components/{p-nzjwgyi2.js → p-D-ggy6RV.js} +1 -1
- package/dist/components/{p-DNT9N8sa.js → p-D8zdewea.js} +1 -1
- package/dist/components/{p-D5Vp16LE.js → p-DCUQa1ZS.js} +1 -1
- package/dist/components/{p-OMoAsmX4.js → p-DKKol0I_.js} +1 -1
- package/dist/components/{p-C5obPa8c.js → p-DPWPJwpz.js} +1 -1
- package/dist/components/{p-BY5Ji84D.js → p-DVg1741_.js} +1 -1
- package/dist/components/{p-CO0Weo2C.js → p-DZK4ppw-.js} +1 -1
- package/dist/components/{p-CJbV4CRN.js → p-DcuHEGLP.js} +1 -1
- package/dist/components/{p-BDgNqOMe.js → p-DwGcu-Ri.js} +1 -1
- package/dist/components/{p-CX0MCoJm.js → p-DwV8tgOD.js} +1 -1
- package/dist/components/{p-CHjkTvcK.js → p-Gs02yoj7.js} +1 -1
- package/dist/components/{p-CZPaKPho.js → p-KSM2f2w0.js} +1 -1
- package/dist/components/{p-DdJblbUj.js → p-R4_FgQZu.js} +1 -1
- package/dist/components/{p-CKWUV8sc.js → p-ctr68qXa.js} +1 -1
- package/dist/components/{p-4n_cgPjf.js → p-luk3AfIc.js} +1 -1
- package/dist/components/{p-CSltLdDZ.js → p-nrYXPNI2.js} +1 -1
- package/dist/components/{p-rgNGWak-.js → p-oGV1BqdG.js} +1 -1
- package/dist/components/{p-8XSbLgc1.js → p-q3l-s-M2.js} +1 -1
- package/dist/components/{p-CVP-Kfuq.js → p-qJP_AdCB.js} +1 -1
- package/dist/components/{p-DAOx9Qnb.js → p-tnQIP2O8.js} +1 -1
- package/dist/components/{p-BUnCuQVo.js → p-y0aCpCQj.js} +1 -1
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-select.js +1 -1
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/ssc-lookup-form.js +1 -1
- package/dist/components/test-drive-form.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-quotation-form.js +1 -1
- package/dist/components/vehicle-sale-information.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +5 -5
- package/dist/esm/flexible-container.entry.js +1 -1
- package/dist/esm/form-checkbox.entry.js +1 -1
- package/dist/esm/form-date-picker.entry.js +1 -1
- package/dist/esm/form-dialog_13.entry.js +13 -13
- package/dist/esm/form-input_5.entry.js +5 -5
- package/dist/esm/form-switch.entry.js +1 -1
- package/dist/esm/form-time-picker.entry.js +1 -1
- package/dist/esm/{functions-DtSiZ2w7.js → functions-BV-8Zxxg.js} +5 -5
- package/dist/esm/general-form.entry.js +2 -2
- package/dist/esm/general-inquiry-form.entry.js +2 -2
- package/dist/esm/{get-local-language-TggqJhkD.js → get-local-language-fnTvjsMh.js} +1 -1
- package/dist/esm/{get-mock-files-CqnoWX3h.js → get-mock-files-I7xQDKOi.js} +1 -1
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/manufacturer-part-lookup.entry.js +2 -2
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/service-booking-form.entry.js +2 -2
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +2 -2
- package/dist/esm/ssc-lookup-form.entry.js +2 -2
- package/dist/esm/test-drive-form.entry.js +2 -2
- package/dist/esm/vehicle-accessories_7.entry.js +8 -8
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +9 -8
- package/dist/mocks/generated/broker-dealer/vehicle-lookup.json +4 -4
- package/dist/mocks/generated/standard-dealer/vehicle-lookup.json +112 -2
- package/dist/shift-components/{p-e225d38c.entry.js → p-012dc118.entry.js} +1 -1
- package/dist/shift-components/{p-5db9ae4b.entry.js → p-13a74448.entry.js} +1 -1
- package/dist/shift-components/{p-1c18a25e.entry.js → p-30f2f132.entry.js} +1 -1
- package/dist/shift-components/{p-ccb80e4d.entry.js → p-3a1a1268.entry.js} +1 -1
- package/dist/shift-components/{p-cc033f27.entry.js → p-3d196be4.entry.js} +1 -1
- package/dist/shift-components/{p-8882ac0f.entry.js → p-4312c6d8.entry.js} +1 -1
- package/dist/shift-components/{p-5ce126f7.entry.js → p-5de5f71b.entry.js} +1 -1
- package/dist/shift-components/{p-d6dfb9bd.entry.js → p-5eb48275.entry.js} +1 -1
- package/dist/shift-components/{p-a4abc248.entry.js → p-6662f17d.entry.js} +1 -1
- package/dist/shift-components/{p-b6518621.entry.js → p-6eed1668.entry.js} +1 -1
- package/dist/shift-components/{p-d6619b20.entry.js → p-72ada566.entry.js} +1 -1
- package/dist/shift-components/{p-411f777f.entry.js → p-767a92e1.entry.js} +1 -1
- package/dist/shift-components/{p-cf23180a.entry.js → p-78034d50.entry.js} +1 -1
- package/dist/shift-components/{p-29cb1041.entry.js → p-7e86111e.entry.js} +1 -1
- package/dist/shift-components/{p-800d78fe.entry.js → p-8b18d680.entry.js} +1 -1
- package/dist/shift-components/{p-a9f6c258.entry.js → p-93f1056f.entry.js} +1 -1
- package/dist/shift-components/{p-3123d3fd.entry.js → p-96e667e2.entry.js} +1 -1
- package/dist/shift-components/p-DEWpW9-h.js +5 -0
- package/dist/shift-components/{p-EubhneKo.js → p-DhsHmr8w.js} +1 -1
- package/dist/shift-components/{p-0f6a4a2c.entry.js → p-a206829d.entry.js} +1 -1
- package/dist/shift-components/{p-7a69c2a0.entry.js → p-a2593afd.entry.js} +1 -1
- package/dist/shift-components/{p-adb7282c.entry.js → p-ad30afe7.entry.js} +1 -1
- package/dist/shift-components/{p-f6b6e66e.entry.js → p-b83498ac.entry.js} +1 -1
- package/dist/shift-components/p-ce9bfd94.entry.js +5 -0
- package/dist/shift-components/{p-Bvk_2TgY.js → p-h5_mqJ-3.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/package.json +2 -1
- package/dist/components/p-lM8Wndby.js +0 -5
- package/dist/shift-components/p-YbxvNbN5.js +0 -5
- package/dist/shift-components/p-ca014643.entry.js +0 -5
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import{F as o}from"./p-B8X9IaVO.js";import"./p-YQJevg3-.js";import{b as i}from"./p-DqaISuxu.js";import{d as t}from"./p-BILW0yP6.js";const n=async o=>{try{const i=await fetch(`https://api.github.com/gists/${o}`,{headers:{Accept:"application/vnd.github+json"}});if(!i.ok)throw new Error(`GitHub API error: ${i.status} ${i.statusText}`);const t=await i.json(),n=Object.values(t.files).find((o=>null==o?void 0:o.filename.endsWith(".json")));if(!n)throw new Error("No JSON file found in this gist");return function(o){try{let i=o.trim();return i=i.replace(/,\s*([}\]])/g,"$1"),i=i.replace(/([{,]\s*)([A-Za-z_]\w*)\s*:/g,'$1"$2":'),i=i.replace(/'([^'\\]*(?:\\.[^'\\]*)*)'/g,((o,i)=>`"${i.replace(/"/g,'\\"')}"`)),JSON.parse(i)}catch(o){return console.error("Failed to parse loose JSON content:",o.message),null}}(null==n?void 0:n.content)}catch(o){console.error("Error fetching gist JSON:",o.message)}};async function l(o){const i=await fetch(o);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}const e=async(o,t)=>{var n,l,e,d,a;const r=await i(t),c=null===(l=null===(n=o.structure)||void 0===n?void 0:n.data)||void 0===l?void 0:l.localization,v="object"==typeof c&&null!==(d=null!==(e=null==c?void 0:c[t])&&void 0!==e?e:null==c?void 0:c.en)&&void 0!==d?d:{};o.locale=Object.assign(Object.assign({},v),{sharedFormLocales:Object.assign(Object.assign({},r),null==v?void 0:v.sharedFormLocales)}),o.localeLanguage=t,null===(a=o.form)||void 0===a||a.rerender({rerenderAll:!0})},d=async(o,i)=>{var t,n,l;const e=i.message||(null===(l=null===(n=null===(t=o.locale)||void 0===t?void 0:t.sharedFormLocales)||void 0===n?void 0:n.errors)||void 0===l?void 0:l.wildCard)||"";(null==o?void 0:o.errorCallback)?o.errorCallback(i,e):o.errorMessage=e},a=async(o,i)=>{o.isLoading=i,o.loadingChanges&&o.loadingChanges(i)},r=async(o,i)=>{if(o.successCallback?o.successCallback(i,o.locale["Form submitted successfully."]||""):o.form.openDialog(),!o.disableScrollToTop){const i=o.el.shadowRoot||o.el,t=-100,n=(i instanceof ShadowRoot?i.firstElementChild:i).getBoundingClientRect().top+window.pageYOffset+t;window.scrollTo({top:Math.max(n,0),behavior:"smooth"})}},c=async(i,t)=>{var e,d;if(!i.structure)if(i.gistId){const[o]=await Promise.all([n(i.gistId),i.changeLanguage(i.language)]);i.structure=o}else if(i.structureUrl){const[o]=await Promise.all([l(i.structureUrl),i.changeLanguage(i.language)]);i.structure=o}if(i.localeLanguage=i.language,await i.changeLanguage(i.language),!i.isMobileForm)try{const o=null===(d=null===(e=i.structure)||void 0===e?void 0:e.data)||void 0===d?void 0:d.recaptchaKey;if(o){const t=document.createElement("script");t.src=`https://www.google.com/recaptcha/api.js?render=${o}&hl=${i.language}`,t.async=!0,t.defer=!0,document.head.appendChild(t)}}catch(o){console.log(o)}i.form=new o(i,t)},v=async o=>{if(o.form)return o.form},u=async o=>{if(o.form)return o.form.submit()},s=async(o,i)=>{var t;i&&(null===(t=o.formReadyCallback)||void 0===t||t.call(o))},f=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid"],m=o=>{var i;if(null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.disableUTMLog)return{};const t=new URLSearchParams(window.location.search);if("string"==typeof t.get("disable_utm_log")&&"true"===t.get("disable_utm_log"))return{};const n={};return f.forEach((o=>{t.get(o)&&(n[o]=t.get(o))})),n},b={formLanguageChange:e,formErrorHandler:d,handleFormSubmit:u,formLoadingHandler:a,formSuccessHandler:r,formDidLoadHandler:c,formGetFormHandler:v,onFormSubmit:async({context:o,formValues:i,middleware:n,afterSuccess:l})=>{var e,d,a,r,c,v,u,s,f,b,w,j,p,O,h,g,y,S,$,_,H,P,A,E,F,L,J,N,T,I,R,x,B,D,q,C;try{o.setIsLoading(!0),Object.keys(i).forEach((t=>{o[`${t}-format`]&&(i[t]=o[`${t}-format`])}));const G=!!(null===(d=null===(e=o.structure)||void 0===e?void 0:e.data)||void 0===d?void 0:d.truncatedFields)&&!!(null===(c=Object.keys(null===(r=null===(a=o.structure)||void 0===a?void 0:a.data)||void 0===r?void 0:r.truncatedFields))||void 0===c?void 0:c.length);let V={};const z=m(null==o?void 0:o.structure);let M=Object.assign({},i);(null===(u=null===(v=o.structure)||void 0===v?void 0:v.data)||void 0===u?void 0:u.extraPayload)&&(M=Object.assign(Object.assign({},M),null===(f=null===(s=o.structure)||void 0===s?void 0:s.data)||void 0===f?void 0:f.extraPayload)),G&&(M.additionalData=Object.assign({},V)),(null==o?void 0:o.extraPayload)&&(M=Object.assign(Object.assign({},M),null==o?void 0:o.extraPayload)),G&&Object.entries(null===(w=null===(b=o.structure)||void 0===b?void 0:b.data)||void 0===w?void 0:w.truncatedFields).forEach((([o,i])=>{if(Array.isArray(i)){let t="";i.forEach((o=>{t+=M[o.toString()]||o.toString()})),M=Object.assign(Object.assign({},M),{[o]:t})}else if("string"==typeof i&&i)if(o.startsWith("parse date: ")){let n=o.replaceAll("parse date: ","");M[n]=t.parse(M[n],i,new Date)}else if(o.startsWith("format date: ")){let i=o.replaceAll("format date: ","");M[i]=t.formatISO(M[i])}else V[i]=M[o],delete M[o]}));let Q={"Content-Type":"application/json",Brand:null===(p=null===(j=o.structure)||void 0===j?void 0:j.data)||void 0===p?void 0:p.brandId,"Accept-Language":o.localeLanguage||"en"};(null==o?void 0:o.extraHeader)&&(Q=Object.assign(Object.assign({},Q),null==o?void 0:o.extraHeader)),(null===(h=null===(O=o.structure)||void 0===O?void 0:O.data)||void 0===h?void 0:h.extraHeader)&&(Q=Object.assign(Object.assign({},Q),null===(y=null===(g=o.structure)||void 0===g?void 0:g.data)||void 0===y?void 0:y.extraHeader));let U="";if(o.isMobileForm){const i=await o.getMobileToken();i.toLowerCase().startsWith("bearer")?(Q.Authorization=i,U=null===($=null===(S=o.structure)||void 0===S?void 0:S.data)||void 0===$?void 0:$.requestAppUrl):(Q["verification-token"]=i,U=null===(H=null===(_=o.structure)||void 0===_?void 0:_.data)||void 0===H?void 0:H.requestAppCheckUrl)}else if(U=null===(A=null===(P=o.structure)||void 0===P?void 0:P.data)||void 0===A?void 0:A.requestUrl,null===(F=null===(E=o.structure)||void 0===E?void 0:E.data)||void 0===F?void 0:F.recaptchaKey){const i=await grecaptcha.execute(null===(J=null===(L=o.structure)||void 0===L?void 0:L.data)||void 0===J?void 0:J.recaptchaKey,{action:"submit"});Q["Recaptcha-Token"]=i}if(o.isDev&&(U=U.replaceAll("production=true","production=false")),!U)throw new Error("Request endpoint is not configured");const W=(null===(T=null===(N=o.structure)||void 0===N?void 0:N.data)||void 0===T?void 0:T.requestMethod)||"POST";if(["get","head"].includes(W.toLowerCase())?Q=Object.assign(Object.assign({},Q),z):M=Object.assign(Object.assign({},M),z),n){const o=n(M,Q,U);M=Object.assign({},o.payload),Q=Object.assign({},o.header),U=o.url}Object.values(o.form.pendingRequests).forEach((async o=>{try{await o()}catch(o){console.error(o)}}));const X=await fetch(U,Object.assign({headers:Q,method:(null===(R=null===(I=o.structure)||void 0===I?void 0:I.data)||void 0===R?void 0:R.requestMethod)||"POST"},"get"===(null===(D=null===(B=null===(x=o.structure)||void 0===x?void 0:x.data)||void 0===B?void 0:B.requestMethod)||void 0===D?void 0:D.toLowerCase())?{}:{body:JSON.stringify(M)}));if(!X.ok){const o=X.headers.get("content-type"),i=(null==o?void 0:o.includes("application/json"))?null===(C=null===(q=await X.json())||void 0===q?void 0:q.message)||void 0===C?void 0:C.body:await X.text();throw new Error(i)}{const i=await(null==X?void 0:X.json());l&&await l(M,Q),o.setSuccessCallback(i),setTimeout((()=>{o.form.reset(),o.form.rerender({rerenderForm:!0,rerenderAll:!0})}),100)}}catch(i){console.error(i),o.setErrorCallback(i)}finally{o.setIsLoading(!1)}},formStructureRenderedHandler:s};export{e as a,a as b,d as c,r as d,c as e,b as f,m as g,v as h,u as i,s as j}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import{F as o}from"./p-DlOwT0yg.js";import"./p-BDhR4pDq.js";import{b as i}from"./p-Bvk_2TgY.js";import{d as t}from"./p-BffuX06w.js";const n=async o=>{try{const i=await fetch(`https://api.github.com/gists/${o}`,{headers:{Accept:"application/vnd.github+json"}});if(!i.ok)throw new Error(`GitHub API error: ${i.status} ${i.statusText}`);const t=await i.json(),n=Object.values(t.files).find((o=>null==o?void 0:o.filename.endsWith(".json")));if(!n)throw new Error("No JSON file found in this gist");return function(o){try{let i=o.trim();return i=i.replace(/,\s*([}\]])/g,"$1"),i=i.replace(/([{,]\s*)([A-Za-z_]\w*)\s*:/g,'$1"$2":'),i=i.replace(/'([^'\\]*(?:\\.[^'\\]*)*)'/g,((o,i)=>`"${i.replace(/"/g,'\\"')}"`)),JSON.parse(i)}catch(o){return console.error("Failed to parse loose JSON content:",o.message),null}}(null==n?void 0:n.content)}catch(o){console.error("Error fetching gist JSON:",o.message)}};async function l(o){const i=await fetch(o);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}const e=async(o,t)=>{var n,l,e,d,r;const a=await i(t),c=null===(l=null===(n=o.structure)||void 0===n?void 0:n.data)||void 0===l?void 0:l.localization,v="object"==typeof c&&null!==(d=null!==(e=null==c?void 0:c[t])&&void 0!==e?e:null==c?void 0:c.en)&&void 0!==d?d:{};o.locale=Object.assign(Object.assign({},v),{sharedFormLocales:Object.assign(Object.assign({},a),null==v?void 0:v.sharedFormLocales)}),o.localeLanguage=t,null===(r=o.form)||void 0===r||r.rerender({rerenderAll:!0})},d=async(o,i)=>{var t,n,l;const e=i.message||(null===(l=null===(n=null===(t=o.locale)||void 0===t?void 0:t.sharedFormLocales)||void 0===n?void 0:n.errors)||void 0===l?void 0:l.wildCard)||"";(null==o?void 0:o.errorCallback)?o.errorCallback(i,e):o.errorMessage=e},r=async(o,i)=>{o.isLoading=i,o.loadingChanges&&o.loadingChanges(i)},a=async(o,i)=>{if(o.successCallback?o.successCallback(i,o.locale["Form submitted successfully."]||""):o.form.openDialog(),!o.disableScrollToTop){const i=o.el.shadowRoot||o.el,t=-100,n=(i instanceof ShadowRoot?i.firstElementChild:i).getBoundingClientRect().top+window.pageYOffset+t;window.scrollTo({top:Math.max(n,0),behavior:"smooth"})}},c=async(i,t)=>{var e,d;if(!i.structure)if(i.gistId){const[o]=await Promise.all([n(i.gistId),i.changeLanguage(i.language)]);i.structure=o}else if(i.structureUrl){const[o]=await Promise.all([l(i.structureUrl),i.changeLanguage(i.language)]);i.structure=o}if(i.localeLanguage=i.language,await i.changeLanguage(i.language),!i.isMobileForm)try{const o=null===(d=null===(e=i.structure)||void 0===e?void 0:e.data)||void 0===d?void 0:d.recaptchaKey;if(o){const t=document.createElement("script");t.src=`https://www.google.com/recaptcha/api.js?render=${o}&hl=${i.language}`,t.async=!0,t.defer=!0,document.head.appendChild(t)}}catch(o){console.log(o)}i.form=new o(i,t)},v=async o=>{if(o.form)return o.form},s=async o=>{if(o.form)return o.form.submit()},u=async(o,i)=>{var t;i&&(null===(t=o.formReadyCallback)||void 0===t||t.call(o))},f=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid"],m=o=>{var i;if(null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.disableUTMLog)return{};const t=new URLSearchParams(window.location.search);if("string"==typeof t.get("disable_utm_log")&&"true"===t.get("disable_utm_log"))return{};const n={};return f.forEach((o=>{t.get(o)&&(n[o]=t.get(o))})),n},b={formLanguageChange:e,formErrorHandler:d,handleFormSubmit:s,formLoadingHandler:r,formSuccessHandler:a,formDidLoadHandler:c,formGetFormHandler:v,onFormSubmit:async({context:o,formValues:i,middleware:n,afterSuccess:l})=>{var e,d,r,a,c,v,s,u,f,b,w,j,p,h,O,g,y,S,$,_,H,T,A,E,F,P,L,N,D,J,R,B,q,x,C,G;try{o.setIsLoading(!0),Object.keys(i).forEach((t=>{o[`${t}-format`]&&(i[t]=o[`${t}-format`])}));const k=!!(null===(d=null===(e=o.structure)||void 0===e?void 0:e.data)||void 0===d?void 0:d.truncatedFields)&&!!(null===(c=Object.keys(null===(a=null===(r=o.structure)||void 0===r?void 0:r.data)||void 0===a?void 0:a.truncatedFields))||void 0===c?void 0:c.length);let z={};const I=m(null==o?void 0:o.structure);let M=Object.assign({},i);(null===(s=null===(v=o.structure)||void 0===v?void 0:v.data)||void 0===s?void 0:s.extraPayload)&&(M=Object.assign(Object.assign({},M),null===(f=null===(u=o.structure)||void 0===u?void 0:u.data)||void 0===f?void 0:f.extraPayload)),k&&(M.additionalData=Object.assign({},z)),(null==o?void 0:o.extraPayload)&&(M=Object.assign(Object.assign({},M),null==o?void 0:o.extraPayload)),k&&Object.entries(null===(w=null===(b=o.structure)||void 0===b?void 0:b.data)||void 0===w?void 0:w.truncatedFields).forEach((([o,i])=>{if(Array.isArray(i)){let t="";i.forEach((o=>{t+=M[o.toString()]||o.toString()})),M=Object.assign(Object.assign({},M),{[o]:t})}else if("string"==typeof i&&i)if(o.startsWith("parse date: ")){let n=o.replaceAll("parse date: ","");M[n]=t.parse(M[n],i,new Date)}else if(o.startsWith("format date: ")){let i=o.replaceAll("format date: ","");M[i]=t.formatISO(M[i])}else z[i]=M[o],delete M[o]}));let U={"Content-Type":"application/json",Brand:null===(p=null===(j=o.structure)||void 0===j?void 0:j.data)||void 0===p?void 0:p.brandId,"Accept-Language":o.localeLanguage||"en"};(null==o?void 0:o.extraHeader)&&(U=Object.assign(Object.assign({},U),null==o?void 0:o.extraHeader)),(null===(O=null===(h=o.structure)||void 0===h?void 0:h.data)||void 0===O?void 0:O.extraHeader)&&(U=Object.assign(Object.assign({},U),null===(y=null===(g=o.structure)||void 0===g?void 0:g.data)||void 0===y?void 0:y.extraHeader));let V="";if(o.isMobileForm){const i=await o.getMobileToken();i.toLowerCase().startsWith("bearer")?(U.Authorization=i,V=null===($=null===(S=o.structure)||void 0===S?void 0:S.data)||void 0===$?void 0:$.requestAppUrl):(U["verification-token"]=i,V=null===(H=null===(_=o.structure)||void 0===_?void 0:_.data)||void 0===H?void 0:H.requestAppCheckUrl)}else if(V=null===(A=null===(T=o.structure)||void 0===T?void 0:T.data)||void 0===A?void 0:A.requestUrl,null===(F=null===(E=o.structure)||void 0===E?void 0:E.data)||void 0===F?void 0:F.recaptchaKey){const i=await grecaptcha.execute(null===(L=null===(P=o.structure)||void 0===P?void 0:P.data)||void 0===L?void 0:L.recaptchaKey,{action:"submit"});U["Recaptcha-Token"]=i}if(o.isDev&&(V=V.replaceAll("production=true","production=false")),!V)throw new Error("Request endpoint is not configured");const X=(null===(D=null===(N=o.structure)||void 0===N?void 0:N.data)||void 0===D?void 0:D.requestMethod)||"POST";if(["get","head"].includes(X.toLowerCase())?U=Object.assign(Object.assign({},U),I):M=Object.assign(Object.assign({},M),I),n){const o=n(M,U,V);M=Object.assign({},o.payload),U=Object.assign({},o.header),V=o.url}Object.values(o.form.pendingRequests).forEach((async o=>{try{await o()}catch(o){console.error(o)}}));const Y=await fetch(V,Object.assign({headers:U,method:(null===(R=null===(J=o.structure)||void 0===J?void 0:J.data)||void 0===R?void 0:R.requestMethod)||"POST"},"get"===(null===(x=null===(q=null===(B=o.structure)||void 0===B?void 0:B.data)||void 0===q?void 0:q.requestMethod)||void 0===x?void 0:x.toLowerCase())?{}:{body:JSON.stringify(M)}));if(!Y.ok){const o=Y.headers.get("content-type"),i=(null==o?void 0:o.includes("application/json"))?null===(G=null===(C=await Y.json())||void 0===C?void 0:C.message)||void 0===G?void 0:G.body:await Y.text();throw new Error(i)}{const i=await(null==Y?void 0:Y.json());l&&await l(M,U),o.setSuccessCallback(i),setTimeout((()=>{o.form.reset(),o.form.rerender({rerenderForm:!0,rerenderAll:!0})}),100)}}catch(i){console.error(i),o.setErrorCallback(i)}finally{o.setIsLoading(!1)}},formStructureRenderedHandler:u};export{e as a,r as b,d as c,a as d,c as e,b as f,m as g,v as h,s as i,u as j}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import{h as e,r as t,H as i,a}from"./p-Bf4Ol6Qt.js";import{L as o}from"./p-BffuX06w.js";import{c as n}from"./p-BK16Cn81.js";import{c as l,b as r,s}from"./p-BDhR4pDq.js";import{a as c,b as d,c as h,d as u,g as p,e as v,h as m,i as w,j as f}from"./p-YbxvNbN5.js";import{g as b}from"./p-DlOwT0yg.js";import"./p-Bvk_2TgY.js";const g={};let y="";const x=({form:t})=>{var i,a,l,r;t.addWatcher("vehicle");let s=t.getValue("vehicle"),c=!!s;const d=null===(i=t.context.vehicleList)||void 0===i?void 0:i.find((e=>e.value===s));let h;d?(h=null===(a=null==d?void 0:d.meta)||void 0===a?void 0:a.image,s=d.value):t.context.vehicleList&&t.context.vehicleList[0]&&(h=null===(r=null===(l=t.context.vehicleList[0])||void 0===l?void 0:l.meta)||void 0===r?void 0:r.image,s=t.context.vehicleList[0].value);let u=!1;return g[s]?y=g[s]:t&&h&&s&&(((e,t,i)=>{fetch(t).then((e=>e.blob())).then((t=>{const a=new FileReader;a.onloadend=()=>{g[i]=a.result,e.rerender({rerenderForm:!0})},a.readAsDataURL(t)})).catch((e=>{console.log(e)}))})(t,h,s),u=!0),e("flexible-container",{isOpened:c},e("div",{style:{"min-height":"60px"},part:"vehicle-image-wrapper",class:n("vehicle-image-wrapper",{loading:u})},e("div",{part:n("vehicle-image-loading-wrapper",{"vehicle-image-active-loading-wrapper":u}),class:"loading-wrapper"},e(o,{part:"vehicle-image-loader-icon",class:"img"})),e("img",{alt:"vehicle image",part:"vehicle-image",src:y,style:{"border-radius":"6px",transition:"opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);",opacity:u?"0":"1"}})))},k={submit:({props:t})=>e("form-submit",Object.assign({},t)),name:({props:t})=>e("form-input",Object.assign({},t)),phone:({props:t,isLoading:i})=>e("form-phone-number",Object.assign({isLoading:i},t)),vehicle:({form:t,language:i,props:a})=>{var o;let n;return n=a.defaultValue?a.defaultValue:new URLSearchParams(window.location.search).get(null===(o=t.context.structure.data)||void 0===o?void 0:o.vehicleIdQueryParam),e("form-select",Object.assign({},a,{defaultValue:n,searchable:!0,fetcher:async({signal:e})=>{var a,o,n;const l=null===(a=t.context.structure)||void 0===a?void 0:a.data.vehicleApi,r=await fetch(l,{signal:e,headers:{"Accept-Language":i}});return(null===(n=null===(o=t.context.structure)||void 0===o?void 0:o.data)||void 0===n?void 0:n.vehiclesApiStrapiFormat)?(await r.json()).data.map((e=>{var t,i,a,o,n,l;return{label:(null==e?void 0:e.GradeName)||(null===(t=null==e?void 0:e.attributes)||void 0===t?void 0:t.GradeName),value:`${e.id}`,meta:Object.assign(Object.assign({},e),{image:(null===(i=null==e?void 0:e.Cover)||void 0===i?void 0:i.url)||(null===(l=null===(n=null===(o=null===(a=null==e?void 0:e.attributes)||void 0===a?void 0:a.Cover)||void 0===o?void 0:o.data)||void 0===n?void 0:n.attributes)||void 0===l?void 0:l.url)})}})):(await r.json()).map((e=>({label:e.Title,value:`${e.ID}`,meta:Object.assign(Object.assign({},e),{image:e.Image})})))},language:i}))},dealer:({form:t,language:i,props:a})=>e("form-select",Object.assign({},a,{clearable:!0,searchable:!0,fetcher:async({signal:e})=>{var a;const o=null===(a=t.context.structure)||void 0===a?void 0:a.data.dealerApi,n=await fetch(o,{signal:e,headers:{"Accept-Language":i}});return(await n.json()).map((e=>({label:e.Name,value:`${e.ID}`,meta:Object.assign({},e)})))},language:i})),paymentType:({language:t,props:i,locale:a})=>e("form-select",Object.assign({},i,{clearable:!0,fetcher:async({})=>[{value:"Cash",label:null==a?void 0:a.Cash},{value:"Installments",label:a.Installments},{value:"Flexible",label:a.Flexible}],language:t})),contactTime:({language:t,props:i,locale:a})=>e("form-select",Object.assign({},i,{clearable:!0,fetcher:async({})=>[{value:"Morning",label:null==a?void 0:a.Morning},{value:"Noon",label:null==a?void 0:a.Noon},{value:"Afternoon",label:null==a?void 0:a.Afternoon}],language:t})),ownVehicle:({language:t,props:i,locale:a})=>e("form-select",Object.assign({},i,{fetcher:async({})=>[{value:"yes",label:null==a?void 0:a.Yes},{value:"no",label:null==a?void 0:a.No}],language:t})),currentVehicleBrand:({form:t,language:i,props:a,locale:o})=>{t.addWatcher("ownVehicle");const n="yes"===t.getValue("ownVehicle");return e("form-select",Object.assign({},a,{searchable:!0,fetcher:async({signal:e})=>{var i;const a=null===(i=t.context.structure)||void 0===i?void 0:i.data.currentVehiclesApi,n=await fetch(a,{signal:e,headers:{"Accept-Language":"en"}});return[...(await n.json()).filter((e=>"Other"!==e.name)).map((e=>({label:e.Name,value:`${e.ID}`,meta:Object.assign({},e)}))),{value:"Other",label:o.Other}]},language:i,resetKey:n,isRequired:n,isDisabled:!n}))},currentVehicleModel:({form:t,language:i,props:a,locale:o})=>{t.addWatcher("ownVehicle"),t.addWatcher("currentVehicleBrand");const n="yes"===t.getValue("ownVehicle"),l=t.getValue("currentVehicleBrand");return e("form-select",Object.assign({},a,{searchable:!0,fetcher:async({})=>{var e,i;if(!l)return[];const a=null===(i=null===(e=t.context.currentVehicleBrandList)||void 0===e?void 0:e.find((e=>e.value===l)))||void 0===i?void 0:i.meta;return a?[...null==a?void 0:a.Models.map((e=>({label:e.Name,value:`${e.ID}`}))),{value:"Other",label:o.Other}]:[]},language:i,resetKey:l,fetcherKey:l,isRequired:n&&"Other"!==l,isDisabled:!l||"Other"===l}))},vehicleImage:({form:t})=>e(x,{form:t}),choose:({locale:t})=>e("h1",{part:"section-title"},t.Choose),"current car":({locale:t})=>e("h1",{part:"section-title"},t["Your current car"]),"contact information":({locale:t})=>e("h1",{part:"section-title"},t["Contact Information"]),city:({form:t,language:i,props:a})=>e("form-select",Object.assign({},a,{clearable:!0,searchable:!0,fetcher:async({signal:e})=>{var a;const o=null===(a=t.context.structure)||void 0===a?void 0:a.data.cityApi,n=await fetch(o,{signal:e,headers:{"Accept-Language":i}});return(await n.json()).map((e=>({label:e.Name,value:`${e.ID}`,meta:Object.assign({},e)})))},language:i}))},j=l({vehicle:r().meta({label:"Vehicle",placeholder:"Please select a Vehicle"}).required("This field is required."),name:r().meta({label:"Full name",placeholder:"Full name"}).required("Full name is required").min(3,"Full name minimum"),dealer:r().meta({label:"Dealer",placeholder:"Select a dealer"}).required("Dealer is required"),city:r().meta({label:"City",placeholder:"Select a City"}).required("This field is required."),paymentType:r().meta({label:"Preferred purchasing method",placeholder:"Select the purchasing method"}).when("$paymentTypeRequired",{is:!0,otherwise:e=>e.optional(),then:e=>e.required("This field is required.")}),contactTime:r().meta({label:"Preferred contact time",placeholder:"Please select a time"}).when("$contactTimeRequired",{is:!0,otherwise:e=>e.optional(),then:e=>e.required("This field is required.")}),ownVehicle:r().meta({label:"Do you own a vehicle?",placeholder:"Do you own a vehicle?"}).when("$ownVehicleRequired",{is:!0,otherwise:e=>e.optional(),then:e=>e.required("This field is required.")}),currentVehicleBrand:r().meta({label:"Your current vehicle",placeholder:"Your current vehicle"}).when("ownVehicle",{is:e=>"yes"===e,then:e=>e.required("Please answer this field"),otherwise:e=>e.optional()}),currentVehicleModel:r().meta({label:"Vehicle Model",placeholder:"Vehicle Model"}).when(["ownVehicle","currentVehicleBrand"],{is:(e,t)=>"yes"===e&&"Other"!==t,then:e=>e.required("Please answer this field"),otherwise:e=>e.optional()})}),O=class{constructor(e){t(this,e),this.locale={sharedFormLocales:s.getDefault()},this.isLoading=!1,this.structureRendered=!1,this.isDev=!1,this.isMobileForm=!1}async changeLanguage(e){await c(this,e)}setIsLoading(e){d(this,e)}setErrorCallback(e){h(this,e)}setSuccessCallback(e){u(this,e)}async componentWillLoad(){this.language||(this.language=b())}async formSubmit(e){var t,i,a,o,n,l,r,s,c,d,h,u,v,m,w,f,b,g,y,x,k,j,O,V;try{this.setIsLoading(!0);const z=null===(i=null===(t=this.structure)||void 0===t?void 0:t.data)||void 0===i?void 0:i.nameContactedVehicles,L=p(this.structure);let T=Object.assign({name:e.name,phone:e.phone,companyBranchId:e.dealer,cityId:null==e?void 0:e.city,vehicleQuotationType:null===(o=null===(a=this.structure)||void 0===a?void 0:a.data)||void 0===o?void 0:o.quotationType,preferredContactTime:(null==e?void 0:e.contactTime)||"NotSpecified",preferredPaymentMethod:(null==e?void 0:e.paymentType)||"Flexible"},L);if(z){if(T.vehicle=(null===(n=this.vehicleList.find((t=>t.value===e.vehicle)))||void 0===n?void 0:n.label)||"","yes"===(null==e?void 0:e.ownVehicle)){const t=(null===(l=this.currentVehicleBrandList.find((t=>t.value===e.currentVehicleBrand)))||void 0===l?void 0:l.meta)||!1;let i;t&&(i=t.Models.find((t=>`${t.ID}`===e.currentVehicleModel))||!1),T.currentOrTradeInVehicle=`${(null==t?void 0:t.Name)||this.locale.Other} - ${(null==i?void 0:i.Name)||this.locale.Other}`}}else T.vehicle=e.vehicle,T.additionalData={DoYouOwnAVehicle:"yes"===(null==e?void 0:e.ownVehicle)},"yes"===(null==e?void 0:e.ownVehicle)&&(T.additionalData.yourCurrentVehicle=(null==e?void 0:e.currentVehicleBrand)||this.locale.Other,T.additionalData.vehicleModel=(null==e?void 0:e.currentVehicleModel)||this.locale.Other);const q={Brand:null===(s=null===(r=this.structure)||void 0===r?void 0:r.data)||void 0===s?void 0:s.brandId,"Accept-Language":this.localeLanguage||"en","Content-Type":"application/json"};let M="";if(this.isMobileForm){const e=await this.getMobileToken();e.toLowerCase().startsWith("bearer")?(q.Authorization=e,M=null===(d=null===(c=this.structure)||void 0===c?void 0:c.data)||void 0===d?void 0:d.requestAppUrl):(q["verification-token"]=e,M=null===(u=null===(h=this.structure)||void 0===h?void 0:h.data)||void 0===u?void 0:u.requestAppCheckUrl)}else{M=null===(m=null===(v=this.structure)||void 0===v?void 0:v.data)||void 0===m?void 0:m.requestUrl;const e=await grecaptcha.execute(null===(f=null===(w=this.structure)||void 0===w?void 0:w.data)||void 0===f?void 0:f.recaptchaKey,{action:"submit"});q["Recaptcha-Token"]=e}this.isDev&&(M=M.replaceAll("production=true","production=false")),(null===(g=null===(b=this.structure)||void 0===b?void 0:b.data)||void 0===g?void 0:g.extraPayload)&&(T=Object.assign(Object.assign({},T),null===(x=null===(y=this.structure)||void 0===y?void 0:y.data)||void 0===x?void 0:x.extraPayload));const C=await fetch(M,{headers:q,method:"POST",body:JSON.stringify(T)});if(!C.ok){const e=await(null==C?void 0:C.text());throw new Error(e)}{const t=await(null==C?void 0:C.json()),i=null===(j=null===(k=this.structure)||void 0===k?void 0:k.data)||void 0===j?void 0:j.pushAnalyticsEventTo;i&&(window[i]=window[i]||[],window[i].push({event:"get_a_quote",phone:e.phone,fullname:e.name,dealer:null===(O=this.dealerList.find((t=>t.value===e.dealer)))||void 0===O?void 0:O.label,vehicle:null===(V=this.vehicleList.find((t=>t.value===e.vehicle)))||void 0===V?void 0:V.label})),this.setSuccessCallback(t),setTimeout((()=>{this.form.reset(),this.form.rerender({rerenderForm:!0,rerenderAll:!0})}),100)}}catch(e){console.error(e),this.setErrorCallback(e)}finally{this.setIsLoading(!1)}}async componentDidLoad(){await v(this,j)}async getForm(){return await m(this)}async submit(){await w(this)}async structureChanged(e){await f(this,e)}render(){var t,a;return e(i,{key:"f9a63d75d7cdeac79ec72cc095c64d0c83971422",translate:"no"},e("div",{key:"45c63fac5495929a02cde138dc65162f9973a362",part:`vehicle-quotation-${null===(a=null===(t=this.structure)||void 0===t?void 0:t.data)||void 0===a?void 0:a.theme}`},e("div",{key:"9a290fd1518cb84b5ac96f149c6188bb64283c05",part:"form-container",class:"relative min-h-[150px]"},e("div",{key:"473de1f6a0cc4a8a7f8d5de2524ca1628cb615bd",part:"form-loader-container",class:n("form-loader-container absolute top-0 left-0 w-full h-full pointer-events-none flex justify-center items-center transition-opacity duration-500",{"opacity-0":this.structureRendered})},e(o,{key:"e13e9d91494cb1a758bc30e42230eb5ff66791a6",part:"form-loader-icon",class:"img"})),e("flexible-container",{key:"eaed2b9ffb37fd675bfba7150026597bab95125d",onlyForMounting:!0,isOpened:this.structureRendered},!!this.form&&e("form-structure",{key:"935abc99253030bcf52e70a4674ad3cd14011e44",form:this.form,fields:this.fields,formId:this.formId,formLocale:this.locale,structure:this.structure,isLoading:this.isLoading,language:this.localeLanguage,errorMessage:this.errorMessage,formElementMapper:k,successMessage:this.locale["Form submitted successfully."]},e("slot",{key:"7714c753956c69f310bd5a26c7330c41bc37df28"}))))))}get el(){return a(this)}static get watchers(){return{language:["changeLanguage"],structureRendered:["structureChanged"]}}};O.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.17 | 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}.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))}:host{all:initial!important;display:block;font-family:inherit!important}@keyframes spin{to{transform:rotate(1turn)}}.form-loader-container .img{animation:spin 2s linear infinite;height:32px;width:32px}*{-webkit-user-select:none;-moz-user-select:none;user-select:none}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.flex{display:flex}.h-full{height:100%}.min-h-\\[150px\\]{min-height:150px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.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-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.\\!h-auto{height:auto!important}.min-w-full{min-width:100%}.resize{resize:both}.overflow-hidden{overflow:hidden}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\\!transition-none{transition-property:none!important}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\!duration-0{transition-duration:0s!important}.\\!duration-500{transition-duration:.5s!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.cursor-pointer{cursor:pointer}';export{O as vehicle_quotation_form}
|