@invoice-sdk/widget 1.3.0 → 1.4.0

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/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(j,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(j=typeof globalThis<"u"?globalThis:j||self,P(j.InvoiceRegisterWidget={}))})(this,function(j){"use strict";function P({steps:f=[],currentStep:p=1}={}){const o=document.createElement("div");o.className=["relative","flex","bg-weak-50","rounded-[10px]","overflow-hidden","shadow-sm","justify-between"].join(" ");const l=document.createElement("div");l.className=["absolute","inset-0","h-full","bg-primary/16","transition-all","duration-250"].join(" ");const c=document.createElement("div");c.className="relative flex w-full z-10";const e=[];f.forEach((t,s)=>{const n=s+1,a=document.createElement("div");a.setAttribute("role","listitem"),a.setAttribute("aria-label",`Step ${n} of ${f.length}: ${t.label}${p===n?" (current)":""}`),a.className=["relative","flex-1","flex","items-center","justify-center","py-5","pr-9","px-4"].join(" ");const i=document.createElement("div");i.className=["flex","items-center","justify-center","w-8","h-8","rounded-full","flex-shrink-0","mr-4"].join(" ");const r=document.createElement("span");r.innerText=String(n),r.className="text-white font-medium",i.appendChild(r);const m=document.createElement("span");m.innerText=t.label,m.className="font-medium whitespace-nowrap",a.appendChild(i),a.appendChild(m),c.appendChild(a),e.push({wrapper:a,circle:i,textSpan:m})}),o.appendChild(l),o.appendChild(c);function d(t){const s=o.getBoundingClientRect(),n=s.width||0;let a=0;if(t>0&&t<=e.length){const m=e[t-1].wrapper.getBoundingClientRect(),x=s.left;a=m.left-x+m.width}const i=n>0?Math.min(a/n*100,100):0;l.style.width=`${i}%`,e.forEach((r,m)=>{const x=m+1,v=x<t,g=x===t;v||g?(r.textSpan.classList.add("text-primary-dark"),r.textSpan.classList.remove("text-soft-400")):(r.textSpan.classList.add("text-soft-400"),r.textSpan.classList.remove("text-primary-dark")),v||g?(r.circle.classList.add("bg-icon-primary"),r.circle.classList.remove("bg-icon-soft-400")):(r.circle.classList.add("bg-icon-soft-400"),r.circle.classList.remove("bg-icon-primary"))})}return setTimeout(()=>d(p),0),{container:o,update(t){d(t)}}}function q({steps:f=[],currentStep:p=1}={}){const o=document.createElement("div");o.className=["flex","flex-col","h-fit","gap-6","items-center","justify-start"].join(" ");const l=document.createElement("h1");l.className=["text-[28px]","font-bold","leading-[30px]","text-strong-950"].join(" "),l.innerText="Đăng ký hóa đơn điện tử";const c=document.createElement("div");c.className=["w-[1320px]","flex-1","mx-auto","p-6","flex","flex-col","border","border-[#E1E4EA]","rounded-3xl","gap-6","shadow-[0px_1px_8px_0px_rgba(82,88,102,0.06)]"].join(" ");const e=P({steps:f.map(t=>({label:t})),currentStep:p});c.appendChild(e.container);const d=document.createElement("div");return d.className="flex-1",c.appendChild(d),o.appendChild(l),o.appendChild(c),{container:o,setStep(t){e.update(t)},setContent(t){d.replaceChildren(t)}}}function R({checked:f=!1,onChange:p}){const o=document.createElement("label");o.className="relative inline-flex cursor-pointer items-center";const l=document.createElement("input");l.type="checkbox",l.checked=f,l.className="peer sr-only",l.addEventListener("change",t=>{const s=t.target.checked;typeof p=="function"&&p(s),l.checked=s,e(s)});const c=document.createElement("div");c.className=["border-grey-6","relative","h-5","w-5","rounded-full","border-2"].join(" ");function e(t){t?(c.classList.add("border-primary"),d.style.display="block"):(c.classList.remove("border-primary"),d.style.display="none")}const d=document.createElement("div");return d.className=["absolute","left-1/2","top-1/2","h-2.5","w-2.5","-translate-x-1/2","-translate-y-1/2","rounded-full","bg-primary"].join(" "),d.style.display=f?"block":"none",c.appendChild(d),o.appendChild(l),o.appendChild(c),{container:o,setChecked(t){l.checked=t,e(t),typeof p=="function"&&p(t)}}}function I({providers:f=[],selectedRoute:p=null,onProviderChange:o}){const l=document.createElement("div");l.className="w-full flex flex-col gap-4";const c=document.createElement("h2");c.className="heading",c.innerText="Nhà cung cấp",l.appendChild(c);const e=document.createElement("div");e.className="grid grid-cols-3 gap-4",l.appendChild(e);function d(){e.innerHTML="",f.forEach(t=>{const s=t.route===p,n=document.createElement("div");n.dataset.checked=s?"true":"false",n.className=["flex","items-center","justify-between","gap-2","p-4","border","border-border-light","rounded-xl","hover:bg-gray-100","cursor-pointer","transition-colors","duration-200",s?"border-primary":""].filter(Boolean).join(" "),n.addEventListener("click",()=>{p=t.route,typeof o=="function"&&o(t),d()});const a=document.createElement("div");a.className="flex items-center gap-3";const i=document.createElement("img");i.src=t.logoUrl,i.alt=t.name,i.className="h-8 object-contain";const r=document.createElement("div");r.className="w-[1px] h-8 bg-border-light";const m=document.createElement("label");m.className="text-base font-semibold leading-5 text-black uppercase",m.innerText=t.name,a.appendChild(i),a.appendChild(r),a.appendChild(m);const{container:x}=R({checked:s,onChange:v=>{v&&(p=t.route,typeof o=="function"&&o(t),d())}});n.appendChild(a),n.appendChild(x),e.appendChild(n)})}return d(),{container:l,setSelectedRoute(t){p=t,d()}}}function H({name:f,value:p="",type:o="text",placeholder:l="",label:c,required:e=!1,error:d=null,onInput:t=null}){const s=document.createElement("div");s.className="flex flex-col";const n=document.createElement("label");if(n.htmlFor=f,n.className="font-medium mb-2 text-text-black",n.innerText=c,e){const r=document.createElement("span");r.className="text-red-500 ml-1",r.innerText="*",n.appendChild(r)}const a=document.createElement("input");a.type=o,a.name=f,a.id=f,a.value=p,a.placeholder=l,a.className=["border","rounded","px-3","py-2","focus:outline-none","focus:ring-2","focus:ring-blue-500",d?"border-red-500":"border-gray-300"].join(" "),e&&a.setAttribute("required","true"),typeof t=="function"&&a.addEventListener("input",t);const i=document.createElement("span");return i.className="text-red-500 text-sm mt-1",i.innerText=d||"",d||(i.style.display="none"),s.appendChild(n),s.appendChild(a),s.appendChild(i),{container:s,inputEl:a,setError(r){r?(i.innerText=r,i.style.display="block",a.classList.remove("border-gray-300"),a.classList.add("border-red-500")):(i.innerText="",i.style.display="none",a.classList.remove("border-red-500"),a.classList.add("border-gray-300"))},getValue(){return a.value}}}function B({name:f,value:p="",options:o=[],label:l,disabled:c=!1,error:e=null,onChange:d=null}){const t=document.createElement("div");t.className="flex flex-col";const s=document.createElement("label");s.htmlFor=f,s.className="font-medium mb-1 text-gray-700",s.innerText=l;const n=document.createElement("select");n.id=f,n.name=f,n.disabled=c,n.className=["border","rounded","px-3","py-2","bg-white","focus:outline-none","focus:ring-2","focus:ring-blue-500",e?"border-red-500":"border-gray-300"].join(" ");const a=document.createElement("option");a.value="",a.disabled=!0,a.selected=p===""||p==null,a.innerText=`-- Chọn ${l.toLowerCase()} --`,n.appendChild(a),o.forEach(r=>{const m=document.createElement("option");m.value=r.value,m.innerText=r.label,r.value===p&&(m.selected=!0),n.appendChild(m)}),typeof d=="function"&&n.addEventListener("change",d);const i=document.createElement("span");return i.className="text-red-500 text-sm mt-1",i.innerText=e||"",e||(i.style.display="none"),t.appendChild(n),t.appendChild(i),{container:t,selectEl:n,setError(r){r?(i.innerText=r,i.style.display="block",n.classList.remove("border-gray-300"),n.classList.add("border-red-500")):(i.innerText="",i.style.display="none",n.classList.remove("border-red-500"),n.classList.add("border-gray-300"))},getValue(){return n.value},setOptions(r){for(;n.options.length>1;)n.remove(1);r.forEach(m=>{const x=document.createElement("option");x.value=m.value,x.innerText=m.label,n.appendChild(x)})},setDisabled(r){n.disabled=!!r}}}function U({label:f,required:p=!1,file:o=null,onFileChange:l,error:c=null}){const e=document.createElement("div");e.className="flex flex-col";const d=document.createElement("label");if(d.className="font-medium mb-1 text-gray-700",d.innerText=f,p){const u=document.createElement("span");u.className="text-red-500 ml-1",u.innerText="*",d.appendChild(u)}e.appendChild(d);const t=document.createElement("div");t.className=["h-fit","py-4","w-full","rounded","overflow-hidden","flex","items-center","cursor-pointer","justify-center","border","border-dashed","border-grey-6","flex-col","gap-2"].join(" "),t.addEventListener("click",()=>{s.click()});const s=document.createElement("input");s.type="file",s.accept="image/*,.pdf",s.className="hidden",s.addEventListener("change",u=>{const C=u.target.files&&u.target.files[0]?u.target.files[0]:null;N(C)});const n=document.createElement("div");n.className="w-full flex flex-col gap-2 items-center justify-center";const a=document.createElement("span");a.className="text-red-500 text-sm mt-1",a.innerText=c||"",c||(a.style.display="none");let i=null;function r(){if(!o||i)return;i=document.createElement("div"),i.className=["fixed","inset-0","bg-black","bg-opacity-75","z-50","flex","items-center","justify-center"].join(" "),i.addEventListener("click",()=>m());const u=document.createElement("div");u.className="relative w-full h-screen bg-white overflow-auto";const C=document.createElement("button");C.innerHTML="&times;",C.className="absolute w-8 h-8 top-2 right-2 text-gray-600 text-2xl cursor-pointer",C.setAttribute("aria-label","Close preview"),C.addEventListener("click",h=>{h.stopPropagation(),m()}),u.appendChild(C);const y=document.createElement("div");if(y.className="px-10 w-full h-full flex flex-col items-center justify-center",o.type==="application/pdf"){const h=document.createElement("object");h.data=g,h.type="application/pdf",h.className="w-full h-full object-contain",y.appendChild(h)}else{const h=document.createElement("img");h.src=g,h.alt="Full Preview",h.className="max-h-screen object-contain",y.appendChild(h)}u.appendChild(y),i.appendChild(u),document.body.appendChild(i)}function m(){i&&(document.body.removeChild(i),i=null)}const x=document.createElement("button");x.type="button",x.className="bg-primary hover:bg-primary-dark text-white px-4 py-1 rounded-md cursor-pointer",x.innerText="Upload file",x.addEventListener("click",u=>{u.stopPropagation(),s.click()});function v(u,C=2){if(u===0)return"0 Bytes";const y=1024,h=Math.max(0,C),w=["Bytes","KB","MB","GB","TB"],b=Math.floor(Math.log(u)/Math.log(y));return parseFloat((u/Math.pow(y,b)).toFixed(h))+" "+w[b]}let g=null;function E(u){g&&(URL.revokeObjectURL(g),g=null),u&&(g=URL.createObjectURL(u))}function N(u){if(E(u),n.innerHTML="",u){const C=document.createElement("div");C.className="flex w-full items-center justify-between";const y=document.createElement("div");if(y.className="flex space-x-4 w-full justify-start items-center px-4",u.type==="application/pdf"){const T=document.createElement("div");T.className="flex-shrink-0 flex items-center justify-center rounded",T.innerHTML=`
1
+ (function(P,F){typeof exports=="object"&&typeof module<"u"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(P=typeof globalThis<"u"?globalThis:P||self,F(P.InvoiceRegisterWidget={}))})(this,function(P){"use strict";function F({steps:m=[],currentStep:e=1}={}){const s=document.createElement("div");s.className=["wgt:relative","wgt:flex","wgt:bg-weak-50","wgt:rounded-[10px]","wgt:overflow-hidden","wgt:shadow-sm","wgt:justify-between"].join(" ");const o=document.createElement("div");o.className=["wgt:absolute","wgt:inset-0","wgt:h-full","wgt:bg-primary/16","wgt:transition-all","wgt:duration-250"].join(" ");const c=document.createElement("div");c.className="wgt:relative wgt:flex wgt:w-full wgt:z-10";const t=[];m.forEach((n,r)=>{const l=r+1,a=document.createElement("div");a.setAttribute("role","listitem"),a.setAttribute("aria-label",`Step ${l} of ${m.length}: ${n.label}${e===l?" (current)":""}`),a.className=["wgt:relative","wgt:flex-1","wgt:flex","wgt:items-center","wgt:justify-center","wgt:py-5","wgt:pr-9","wgt:px-4"].join(" ");const g=document.createElement("div");g.className=["wgt:flex","wgt:items-center","wgt:justify-center","wgt:w-8","wgt:h-8","wgt:rounded-full","wgt:flex-shrink-0","wgt:mr-4"].join(" ");const i=document.createElement("span");i.innerText=String(l),i.className="wgt:text-white wgt:font-medium",g.appendChild(i);const p=document.createElement("span");p.innerText=n.label,p.className="wgt:font-medium wgt:whitespace-nowrap",a.appendChild(g),a.appendChild(p),c.appendChild(a),t.push({wrapper:a,circle:g,textSpan:p})}),s.appendChild(o),s.appendChild(c);function d(n){const r=s.getBoundingClientRect(),l=r.width||0;let a=0;if(n>0&&n<=t.length){const p=t[n-1].wrapper.getBoundingClientRect(),u=r.left;a=p.left-u+p.width}const g=l>0?Math.min(a/l*100,100):0;o.style.width=`${g}%`,t.forEach((i,p)=>{const u=p+1,T=u<n,f=u===n;T||f?(i.textSpan.classList.add("wgt:text-primary-dark"),i.textSpan.classList.remove("wgt:text-soft-400")):(i.textSpan.classList.add("wgt:text-soft-400"),i.textSpan.classList.remove("wgt:text-primary-dark")),T||f?(i.circle.classList.add("wgt:bg-icon-primary"),i.circle.classList.remove("wgt:bg-icon-soft-400")):(i.circle.classList.add("wgt:bg-icon-soft-400"),i.circle.classList.remove("wgt:bg-icon-primary"))})}return setTimeout(()=>d(e),0),{container:s,update(n){d(n)}}}function O({steps:m=[],currentStep:e=1}={}){const s=document.createElement("div");s.className=["wgt:flex","wgt:flex-col","wgt:h-fit","wgt:gap-6","wgt:items-center","wgt:justify-start","wgt:fixed","wgt:w-full","wgt:h-screen","wgt:inset-0","wgt:py-8","wgt:overflow-auto"].join(" ");const o=document.createElement("h1");o.className=["wgt:text-[28px]","wgt:font-bold","wgt:leading-[30px]","wgt:text-strong-950"].join(" "),o.innerText="Đăng ký hóa đơn điện tử";const c=document.createElement("div");c.className=["wgt:w-[1320px]","wgt:flex-1","wgt:mx-auto","wgt:p-6","wgt:flex","wgt:flex-col","wgt:border","wgt:border-[#E1E4EA]","wgt:rounded-3xl","wgt:gap-6","wgt:shadow-[0px_1px_8px_0px_rgba(82,88,102,0.06)]"].join(" ");const t=F({steps:m.map(n=>({label:n})),currentStep:e});c.appendChild(t.container);const d=document.createElement("div");return d.className="wgt:flex-1",c.appendChild(d),s.appendChild(o),s.appendChild(c),{container:s,setStep(n){t.update(n)},setContent(n){d.replaceChildren(n)}}}function _({checked:m=!1,onChange:e}){const s=document.createElement("label");s.className="wgt:relative wgt:inline-flex wgt:cursor-pointer wgt:items-center";const o=document.createElement("input");o.type="checkbox",o.checked=m,o.className="wgt:peer wgt:sr-only",o.addEventListener("change",n=>{const r=n.target.checked;typeof e=="function"&&e(r),o.checked=r,t(r)});const c=document.createElement("div");c.className=["wgt:border-grey-6","wgt:relative","wgt:h-5","wgt:w-5","wgt:rounded-full","wgt:border-2"].join(" ");function t(n){n?(c.classList.add("wgt:border-primary"),d.style.display="block"):(c.classList.remove("wgt:border-primary"),d.style.display="none")}const d=document.createElement("div");return d.className=["wgt:absolute","wgt:left-1/2","wgt:top-1/2","wgt:h-2.5","wgt:w-2.5","wgt:-translate-x-1/2","wgt:-translate-y-1/2","wgt:rounded-full","wgt:bg-primary"].join(" "),d.style.display=m?"block":"none",c.appendChild(d),s.appendChild(o),s.appendChild(c),{container:s,setChecked(n){o.checked=n,t(n),typeof e=="function"&&e(n)}}}function $({providers:m=[],selectedRoute:e=null,onProviderChange:s}){const o=document.createElement("div");o.className="wgt:w-full wgt:flex wgt:flex-col wgt:gap-4";const c=document.createElement("h2");c.className="heading",c.innerText="Nhà cung cấp",o.appendChild(c);const t=document.createElement("div");t.className="wgt:grid wgt:grid-cols-3 wgt:gap-4",o.appendChild(t);function d(){t.innerHTML="",m.forEach(n=>{const r=n.route===e,l=document.createElement("div");l.dataset.checked=r?"true":"false",l.className=["wgt:flex","wgt:items-center","wgt:justify-between","wgt:gap-2","wgt:p-4","wgt:border","wgt:border-border-light","wgt:rounded-xl","wgt:hover:bg-gray-100","wgt:cursor-pointer","wgt:transition-colors","wgt:duration-200",r?"wgt:border-primary":""].filter(Boolean).join(" "),l.addEventListener("click",()=>{e=n.route,typeof s=="function"&&s(n),d()});const a=document.createElement("div");a.className="wgt:flex wgt:items-center wgt:gap-3";const g=document.createElement("img");g.src=n.logoUrl,g.alt=n.name,g.className="wgt:h-8 wgt:object-contain";const i=document.createElement("div");i.className="wgt:w-[1px] wgt:h-8 wgt:bg-border-light";const p=document.createElement("label");p.className="wgt:text-base wgt:font-semibold wgt:leading-5 wgt:text-black wgt:uppercase",p.innerText=n.name,a.appendChild(g),a.appendChild(i),a.appendChild(p);const{container:u}=_({checked:r,onChange:T=>{T&&(e=n.route,typeof s=="function"&&s(n),d())}});l.appendChild(a),l.appendChild(u),t.appendChild(l)})}return d(),{container:o,setSelectedRoute(n){e=n,d()}}}function j({name:m,value:e="",type:s="text",placeholder:o="",label:c,required:t=!1,error:d=null,onInput:n=null}){const r=document.createElement("div");r.className="wgt:flex wgt:flex-col";const l=document.createElement("label");if(l.htmlFor=m,l.className="wgt:font-medium wgt:mb-2 wgt:text-text-black",l.innerText=c,t){const i=document.createElement("span");i.className="wgt:text-red-500 wgt:ml-1",i.innerText="*",l.appendChild(i)}const a=document.createElement("input");a.type=s,a.name=m,a.id=m,a.value=e,a.placeholder=o,a.className=["wgt:border","wgt:rounded","wgt:px-3","wgt:py-2","wgt:focus:outline-none","wgt:focus:ring-2","wgt:focus:ring-blue-500",d?"wgt:border-red-500":"wgt:border-gray-300"].join(" "),t&&a.setAttribute("required","true"),typeof n=="function"&&a.addEventListener("input",n);const g=document.createElement("span");return g.className="wgt:text-red-500 wgt:text-sm mt-1",g.innerText=d||"",d||(g.style.display="none"),r.appendChild(l),r.appendChild(a),r.appendChild(g),{container:r,inputEl:a,setError(i){i?(g.innerText=i,g.style.display="block",a.classList.remove("wgt:border-gray-300"),a.classList.add("wgt:border-red-500")):(g.innerText="",g.style.display="none",a.classList.remove("wgt:border-red-500"),a.classList.add("wgt:border-gray-300"))},getValue(){return a.value}}}function W({name:m,value:e="",options:s=[],label:o,disabled:c=!1,error:t=null,onChange:d=null}){const n=document.createElement("div");n.className="wgt:flex wgt:flex-col";const r=document.createElement("label");r.htmlFor=m,r.className="wgt:font-medium wgt:mb-1 wgt:text-gray-700",r.innerText=o;const l=document.createElement("select");l.id=m,l.name=m,l.disabled=c,l.className=["wgt:border","wgt:rounded","wgt:px-3","wgt:py-2","wgt:bg-white","wgt:focus:outline-none","wgt:focus:ring-2","wgt:focus:ring-blue-500",t?"wgt:border-red-500":"wgt:border-gray-300"].join(" ");const a=document.createElement("option");a.value="",a.disabled=!0,a.selected=e===""||e==null,a.innerText=`-- Chọn ${o.toLowerCase()} --`,l.appendChild(a),s.forEach(i=>{const p=document.createElement("option");p.value=i.value,p.innerText=i.label,i.value===e&&(p.selected=!0),l.appendChild(p)}),typeof d=="function"&&l.addEventListener("change",d);const g=document.createElement("span");return g.className="wgt:text-red-500 wgt:text-sm wgt:mt-1",g.innerText=t||"",t||(g.style.display="none"),n.appendChild(l),n.appendChild(g),{container:n,selectEl:l,setError(i){i?(g.innerText=i,g.style.display="block",l.classList.remove("wgt:border-gray-300"),l.classList.add("wgt:border-red-500")):(g.innerText="",g.style.display="none",l.classList.remove("wgt:border-red-500"),l.classList.add("wgt:border-gray-300"))},getValue(){return l.value},setOptions(i){for(;l.options.length>1;)l.remove(1);i.forEach(p=>{const u=document.createElement("option");u.value=p.value,u.innerText=p.label,l.appendChild(u)})},setDisabled(i){l.disabled=!!i}}}function z({label:m,required:e=!1,file:s=null,onFileChange:o,error:c=null}){const t=document.createElement("form");t.className="wgt:flex wgt:flex-col";const d=document.createElement("label");if(d.htmlFor="upload",d.className="wgt:font-medium wgt:mb-1 wgt:text-gray-700",d.innerText=m,e){const w=document.createElement("span");w.className="wgt:text-red-500 wgt:ml-1",w.innerText="*",d.appendChild(w)}t.appendChild(d);const n=document.createElement("div");n.className=["wgt:h-fit","wgt:py-4","wgt:w-full","wgt:rounded","wgt:overflow-hidden","wgt:flex","wgt:items-center","wgt:cursor-pointer","wgt:justify-center","wgt:border","wgt:border-dashed","wgt:border-grey-6","wgt:flex-col","wgt:gap-2"].join(" ");const r=document.createElement("input");r.id="upload",r.type="file",r.accept="image/*,.pdf",r.className="wgt:hidden",r.addEventListener("change",w=>{const b=w.target.files&&w.target.files[0]?w.target.files[0]:null;x(b),s=b});const l=document.createElement("div");l.className="wgt:w-full wgt:flex wgt:flex-col wgt:gap-2 wgt:items-center wgt:justify-center";const a=document.createElement("span");a.className="wgt:text-red-500 wgt:text-sm wgt:mt-1",a.innerText=c||"",c||(a.style.display="none");let g=null;function i(){if(!s||g)return;g=document.createElement("div"),g.className=["wgt:fixed","wgt:inset-0","wgt:bg-black","wgt:bg-opacity-75","wgt:z-50","wgt:flex","wgt:items-center","wgt:justify-center"].join(" "),g.addEventListener("click",()=>p());const w=document.createElement("div");w.className="wgt:relative wgt:w-full wgt:h-screen wgt:bg-white wgt:overflow-auto";const b=document.createElement("button");b.innerHTML="&times;",b.className="wgt:absolute wgt:w-8 wgt:h-8 wgt:top-2 wgt:right-2 wgt:text-gray-600 wgt:text-2xl wgt:cursor-pointer",b.setAttribute("aria-label","Close preview"),b.addEventListener("click",h=>{h.stopPropagation(),p()}),w.appendChild(b);const C=document.createElement("div");if(C.className="wgt:px-10 wgt:w-full wgt:h-full wgt:flex wgt:flex-col wgt:items-center wgt:justify-center",s.type==="application/pdf"){const h=document.createElement("object");h.data=f,h.type="application/pdf",h.className="wgt:w-full wgt:h-full wgt:object-contain",C.appendChild(h)}else{const h=document.createElement("img");h.src=f,h.alt="Full Preview",h.className="wgt:max-h-screen wgt:object-contain",C.appendChild(h)}w.appendChild(C),g.appendChild(w),document.body.appendChild(g)}function p(){g&&(document.body.removeChild(g),g=null)}const u=document.createElement("button");u.type="button",u.className="wgt:bg-primary wgt:hover:bg-primary-dark wgt:text-white wgt:px-4 wgt:py-1 wgt:rounded-md wgt:cursor-pointer",u.innerText="Upload file",u.addEventListener("click",w=>{w.stopPropagation(),r.click()});function T(w,b=2){if(w===0)return"0 Bytes";const C=1024,h=Math.max(0,b),H=["Bytes","KB","MB","GB","TB"],y=Math.floor(Math.log(w)/Math.log(C));return parseFloat((w/Math.pow(C,y)).toFixed(h))+" "+H[y]}let f=null;function E(w){f&&(URL.revokeObjectURL(f),f=null),w&&(f=URL.createObjectURL(w))}function x(w){if(E(w),l.innerHTML="",w){const b=document.createElement("div");b.className="wgt:flex wgt:w-full wgt:items-center wgt:justify-between";const C=document.createElement("div");if(C.className="wgt:flex wgt:space-x-4 wgt:w-full wgt:justify-start wgt:items-center wgt:px-4",C.addEventListener("click",()=>{r.click()}),w.type==="application/pdf"){const N=document.createElement("div");N.className="wgt:flex-shrink-0 wgt:flex wgt:items-center wgt:justify-center wgt:rounded",N.innerHTML=`
2
2
  <svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 text-gray-500" fill="currentColor" viewBox="0 0 24 24">
3
3
  <path d="M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"/>
4
4
  <path d="M14 2v5h5"/>
5
5
  </svg>
6
- `,y.appendChild(T)}else{const T=document.createElement("img");T.src=g,T.alt="Preview thumbnail",T.className="object-contain h-20 w-20 rounded",y.appendChild(T)}const h=document.createElement("div");h.className="flex-1";const w=document.createElement("p");w.className="text-sm font-medium text-gray-800 truncate",w.innerText=u.name;const b=document.createElement("p");b.className="text-sm text-gray-500",b.innerText=v(u.size),h.appendChild(w),h.appendChild(b),y.appendChild(h),C.appendChild(y);const k=document.createElement("button");k.type="button",k.innerText="Preview",k.className="px-2 text-xs font-medium text-text-black",k.addEventListener("click",T=>{T.preventDefault(),r()}),C.appendChild(k),n.appendChild(C)}else{n.innerHTML=`
6
+ `,C.appendChild(N)}else{const N=document.createElement("img");N.src=f,N.alt="Preview thumbnail",N.className="wgt:object-contain wgt:h-20 wgt:w-20 wgt:rounded",C.appendChild(N)}const h=document.createElement("div");h.className="wgt:flex-1";const H=document.createElement("p");H.className="wgt:text-sm wgt:font-medium wgt:text-gray-800 wgt:truncate",H.innerText=w.name;const y=document.createElement("p");y.className="wgt:text-sm wgt:text-gray-500",y.innerText=T(w.size),h.appendChild(H),h.appendChild(y),C.appendChild(h),b.appendChild(C);const v=document.createElement("button");v.type="button",v.innerText="Preview",v.className="wgt:p-2 wgt:text-xs wgt:font-medium wgt:text-text-black wgt:cursor:pointer",v.addEventListener("click",N=>{N.stopPropagation(),i()}),b.appendChild(v),l.appendChild(b)}else{l.innerHTML=`
7
7
  <svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
8
8
  <path d="M13.1313 9.25809L13.1313 22.2754" stroke="#595959" stroke-width="0.810811" stroke-linecap="round" stroke-linejoin="round"/>
9
9
  <path d="M16.2832 12.4238L13.1308 9.25842L9.97834 12.4238" stroke="#595959" stroke-width="0.810811" stroke-linecap="round" stroke-linejoin="round"/>
@@ -11,9 +11,9 @@
11
11
  </svg>
12
12
  <span class="text-sm font-semibold leading-4 text-grey-8">Tải tệp lên</span>
13
13
  <span class="text-xs font-normal leading-3 text-grey-7">(Tối thiểu 400x400px, PNG hoặc JPEG)</span>
14
- `;const C=document.createElement("div");C.className="flex items-center",C.appendChild(x),n.appendChild(C)}}return N(o),t.appendChild(n),t.appendChild(s),e.appendChild(t),e.appendChild(a),{container:e,setFile(u){o=u,N(u)},clearFile(){o=null,N(null)},setError(u){u?(a.innerText=u,a.style.display="block"):(a.innerText="",a.style.display="none")}}}const Z=[{value:"VN",label:"Việt Nam"}],W={VN:[{value:"HN",label:"Hà Nội"},{value:"HCM",label:"TP. Hồ Chí Minh"},{value:"DN",label:"Đà Nẵng"}]},Q={HN:[{value:"QL",label:"Quận Ba Đình"},{value:"TL",label:"Quận Tây Hồ"}],HCM:[{value:"PN",label:"Quận Phú Nhuận"},{value:"1",label:"Quận 1"}],DN:[{value:"HP",label:"Hải Châu"},{value:"S0",label:"Sơn Trà"}]},A={QL:[{value:"PD",label:"Phường Điện Biên"},{value:"NT",label:"Phường Ngọc Hà"}],TL:[{value:"TD",label:"Phường Tứ Liên"},{value:"TT",label:"Phường Thụy Khuê"}],PN:[{value:"PP",label:"Phường Phú Nhuận"},{value:"TN",label:"Phường Tân Định"}],1:[{value:"BD",label:"Phường Bến Nghé"},{value:"BT",label:"Phường Bến Thành"}],HP:[{value:"TH",label:"Phường Thạch Thang"},{value:"KT",label:"Phường Khuê Trung"}],S0:[{value:"ST",label:"Phường Sơn Trà"},{value:"NB",label:"Phường Nại Hiên Đông"}]};function O({onSubmit:f}){const p=document.createElement("form");p.className="w-full",p.addEventListener("submit",h=>{h.preventDefault();const w=y();typeof f=="function"&&f(w)});const o=document.createElement("div");o.className="grid grid-cols-1 md:grid-cols-2 gap-8",p.appendChild(o);const l=document.createElement("div");l.className="space-y-4";const c=document.createElement("div");c.className="space-y-4",o.appendChild(l),o.appendChild(c);const e=H({name:"taxCode",label:"Mã số thuế",required:!0,error:null,placeholder:"",type:"text"});l.appendChild(e.container);const d=H({name:"representative",label:"Người đại diện",required:!0,error:null,placeholder:"",type:"text"});l.appendChild(d.container);const t=H({name:"email",label:"Email",required:!0,error:null,placeholder:"",type:"email"});l.appendChild(t.container);const s=H({name:"phone",label:"Số điện thoại",required:!0,error:null,placeholder:"",type:"tel"});l.appendChild(s.container);const n=U({label:"Giấy phép đăng ký kinh doanh",required:!0,file:null,onFileChange:h=>{},error:null});l.appendChild(n.container);const a=H({name:"companyName",label:"Tên công ty",required:!1,error:null,placeholder:"",type:"text"});c.appendChild(a.container);const i=H({name:"position",label:"Chức vụ",required:!1,error:null,placeholder:"",type:"text"});c.appendChild(i.container);const r=document.createElement("div");r.className="w-full flex flex-col gap-2",c.appendChild(r);const m=document.createElement("span");m.className="font-medium text-text-black",m.innerText="Địa chỉ",r.appendChild(m);const x=B({name:"country",label:"Quốc gia",options:Z,value:"",disabled:!1,error:null,onChange:h=>{const w=h.target.value;W[w]?(v.setOptions(W[w]),v.setDisabled(!1)):(v.setOptions([]),v.setDisabled(!0)),v.selectEl.value="",g.setOptions([]),g.selectEl.value="",g.setDisabled(!0),E.setOptions([]),E.selectEl.value="",E.setDisabled(!0)}});r.appendChild(x.container);const v=B({name:"province",label:"Tỉnh/Thành phố",options:[],value:"",disabled:!0,error:null,onChange:h=>{const w=h.target.value;Q[w]?(g.setOptions(Q[w]),g.setDisabled(!1)):(g.setOptions([]),g.setDisabled(!0)),E.setOptions([]),E.selectEl.value="",E.setDisabled(!0)}});r.appendChild(v.container);const g=B({name:"district",label:"Quận/Huyện",options:[],value:"",disabled:!0,error:null,onChange:h=>{const w=h.target.value;A[w]?(E.setOptions(A[w]),E.setDisabled(!1)):(E.setOptions([]),E.setDisabled(!0))}});r.appendChild(g.container);const E=B({name:"ward",label:"Phường/Xã",options:[],value:"",disabled:!0,error:null,onChange:()=>{}});r.appendChild(E.container);const N=H({name:"detail",label:"Địa chỉ cụ thể",required:!1,error:null,placeholder:"",type:"text"});r.appendChild(N.container);const u=document.createElement("div");u.className="flex items-center justify-end gap-2";const C=document.createElement("button");C.type="submit",C.innerText="Tiếp theo",C.className=["bg-primary","hover:bg-primary-dark","text-white","px-6","py-2","rounded","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer"].join(" "),u.appendChild(C),p.appendChild(u);function y(){return{taxCode:e.getValue().trim(),representative:d.getValue().trim(),email:t.getValue().trim(),phone:s.getValue().trim(),license:n?n.file:null,companyName:a.getValue().trim(),position:i.getValue().trim(),address:{country:x.getValue(),province:v.getValue(),district:g.getValue(),ward:E.getValue(),detail:N.getValue().trim()}}}return{container:p,getValues:y}}function _({providerProps:f,formProps:p}){const o=document.createElement("div");o.className="flex flex-col gap-4 w-full max-w-[1072px] mx-auto";const l=I(f);o.appendChild(l.container);const c=O(p);return o.appendChild(c.container),{container:o}}function $({value:f="",onInputChange:p}={}){const o=document.createElement("div");o.className="flex flex-col";const l=document.createElement("label");l.className="font-medium mb-1 text-gray-700",l.innerHTML='Chọn gói đăng ký <span class="text-red-500">*</span>',o.appendChild(l);const c=document.createElement("div");c.className="flex rounded-lg border border-gray-300 overflow-hidden";const e=document.createElement("input");e.type="text",e.inputMode="numeric",e.value=f,e.placeholder="Số đơn/tháng",e.className=["flex-1","px-4","py-2","text-gray-700","placeholder-gray-400","bg-white","focus:outline-none"].join(" "),typeof p=="function"&&e.addEventListener("input",p);const d=document.createElement("span");return d.className="px-4 py-2 bg-gray-100 text-gray-600 flex-shrink-0",d.innerText="đơn/tháng",c.appendChild(e),c.appendChild(d),o.appendChild(c),{container:o,inputEl:e,getValue(){return e.value},setValue(t){e.value=t}}}function z({packageOptions:f=[],selectedPackageId:p="",onPackageSelect:o}={}){const l=document.createElement("div");l.className="space-y-6";const c=document.createElement("h3");c.className="text-lg font-medium text-gray-800 mb-2",c.innerText="Gói phù hợp nhất",l.appendChild(c);const e=document.createElement("div");e.className="w-full grid grid-cols-3 gap-6",l.appendChild(e);function d(){e.innerHTML="",f.forEach(t=>{const s=t.id===p,n=document.createElement("label");n.className=["relative","border","rounded-xl","p-4","flex-shrink-0","cursor-pointer","bg-white",s?"border-primary":"border-grey-6 hover:border-gray-300"].filter(Boolean).join(" ");const a=document.createElement("div");a.className="flex justify-between items-center";const i=document.createElement("span");i.className=["text-base","font-semibold",s?"text-green-700":"text-gray-800"].join(" "),i.innerText=t.code,a.appendChild(i);const{container:r}=R({checked:s,onChange:u=>{u&&(p=t.id,typeof o=="function"&&o(t.id),d())}});a.appendChild(r),n.appendChild(a);const m=document.createElement("div");m.className="flex items-center text-gray-600 mt-2";const x=document.createElement("svg");x.setAttribute("xmlns","http://www.w3.org/2000/svg"),x.setAttribute("class","w-5 h-5 text-green-500 flex-shrink-0"),x.setAttribute("fill","none"),x.setAttribute("viewBox","0 0 24 24"),x.setAttribute("stroke","currentColor"),x.setAttribute("stroke-width","3"),x.innerHTML=`
14
+ `;const b=document.createElement("div");b.className="wgt:flex wgt:items-center",b.appendChild(u),l.appendChild(b)}}return x(s),n.appendChild(l),n.appendChild(r),t.appendChild(n),t.appendChild(a),{container:t,getValues(){return s},setFile(w){s=w,x(w)},clearFile(){s=null,x(null)},setError(w){w?(a.innerText=w,a.style.display="block"):(a.innerText="",a.style.display="none")}}}const G=[{value:"VN",label:"Việt Nam"}],I={VN:[{value:"HN",label:"Hà Nội"},{value:"HCM",label:"TP. Hồ Chí Minh"},{value:"DN",label:"Đà Nẵng"}]},Q={HN:[{value:"QL",label:"Quận Ba Đình"},{value:"TL",label:"Quận Tây Hồ"}],HCM:[{value:"PN",label:"Quận Phú Nhuận"},{value:"1",label:"Quận 1"}],DN:[{value:"HP",label:"Hải Châu"},{value:"S0",label:"Sơn Trà"}]},A={QL:[{value:"PD",label:"Phường Điện Biên"},{value:"NT",label:"Phường Ngọc Hà"}],TL:[{value:"TD",label:"Phường Tứ Liên"},{value:"TT",label:"Phường Thụy Khuê"}],PN:[{value:"PP",label:"Phường Phú Nhuận"},{value:"TN",label:"Phường Tân Định"}],1:[{value:"BD",label:"Phường Bến Nghé"},{value:"BT",label:"Phường Bến Thành"}],HP:[{value:"TH",label:"Phường Thạch Thang"},{value:"KT",label:"Phường Khuê Trung"}],S0:[{value:"ST",label:"Phường Sơn Trà"},{value:"NB",label:"Phường Nại Hiên Đông"}]};function K({onSubmit:m,registrationData:e}){var H,y,v,N,V,M,S;const s=document.createElement("form");s.className="wgt:w-full",s.addEventListener("submit",k=>{k.preventDefault();const L=h();typeof m=="function"&&m(L)});const o=document.createElement("div");o.className="wgt:grid wgt:grid-cols-1 wgt:md:grid-cols-2 wgt:gap-8",s.appendChild(o);const c=document.createElement("div");c.className="wgt:space-y-4";const t=document.createElement("div");t.className="wgt:space-y-4",o.appendChild(c),o.appendChild(t);const d=j({name:"taxCode",label:"Mã số thuế",required:!0,error:null,placeholder:"",type:"text",value:(e==null?void 0:e.taxCode)??""});c.appendChild(d.container);const n=j({name:"representative",label:"Người đại diện",required:!0,error:null,placeholder:"",type:"text",value:(e==null?void 0:e.representative)??""});c.appendChild(n.container);const r=j({name:"email",label:"Email",required:!0,error:null,placeholder:"",type:"email",value:(e==null?void 0:e.email)??""});c.appendChild(r.container);const l=j({name:"phone",label:"Số điện thoại",required:!0,error:null,placeholder:"",type:"tel",value:(e==null?void 0:e.phone)??""});c.appendChild(l.container);const a=z({label:"Giấy phép đăng ký kinh doanh",required:!0,file:(e==null?void 0:e.license)??null,onFileChange:k=>{},error:null});c.appendChild(a.container);const g=j({name:"companyName",label:"Tên công ty",required:!1,error:null,placeholder:"",type:"text",value:(e==null?void 0:e.companyName)??""});t.appendChild(g.container);const i=j({name:"position",label:"Chức vụ",required:!1,error:null,placeholder:"",type:"text",value:(e==null?void 0:e.position)??""});t.appendChild(i.container);const p=document.createElement("div");p.className="wgt:w-full wgt:flex wgt:flex-col wgt:gap-2",t.appendChild(p);const u=document.createElement("span");u.className="wgt:font-medium wgt:text-text-black",u.innerText="Địa chỉ",p.appendChild(u);const T=W({name:"country",label:"Quốc gia",options:G,value:"",disabled:!1,error:null,onChange:k=>{const L=k.target.value;I[L]?(f.setOptions(I[L]),f.setDisabled(!1)):(f.setOptions([]),f.setDisabled(!0)),f.selectEl.value="",E.setOptions([]),E.selectEl.value="",E.setDisabled(!0),x.setOptions([]),x.selectEl.value="",x.setDisabled(!0)}});p.appendChild(T.container);const f=W({name:"province",label:"Tỉnh/Thành phố",options:[],value:"",disabled:!0,error:null,onChange:k=>{const L=k.target.value;Q[L]?(E.setOptions(Q[L]),E.setDisabled(!1)):(E.setOptions([]),E.setDisabled(!0)),x.setOptions([]),x.selectEl.value="",x.setDisabled(!0)}});p.appendChild(f.container);const E=W({name:"district",label:"Quận/Huyện",options:[],value:"",disabled:!0,error:null,onChange:k=>{const L=k.target.value;A[L]?(x.setOptions(A[L]),x.setDisabled(!1)):(x.setOptions([]),x.setDisabled(!0))}});p.appendChild(E.container);const x=W({name:"ward",label:"Phường/Xã",options:[],value:"",disabled:!0,error:null,onChange:()=>{}});p.appendChild(x.container);const w=j({name:"detail",label:"Địa chỉ cụ thể",required:!1,error:null,placeholder:"",type:"text",value:((H=e==null?void 0:e.address)==null?void 0:H.detail)??""});p.appendChild(w.container);const b=document.createElement("div");b.className="wgt:flex wgt:mt-4 wgt:items-center wgt:justify-end wgt:gap-2 ";const C=document.createElement("button");if(C.type="submit",C.innerText="Tiếp theo",C.className=["wgt:bg-primary","wgt:hover:bg-primary-dark","wgt:text-white","wgt:px-6","wgt:py-2","wgt:rounded","wgt:disabled:opacity-50","wgt:disabled:cursor-not-allowed","wgt:cursor-pointer"].join(" "),b.appendChild(C),s.appendChild(b),(y=e==null?void 0:e.address)!=null&&y.country){const k=e==null?void 0:e.address.country;T.selectEl.value=k;const L=I[k]||[];if(L.length>0){f.setOptions(L),f.setDisabled(!1);const B=(v=e==null?void 0:e.address)==null?void 0:v.province;B&&(f.selectEl.value=B)}const U=(N=e==null?void 0:e.address)==null?void 0:N.province;if(U&&Q[U]){const B=Q[U];E.setOptions(B),E.setDisabled(!1);const R=(V=e==null?void 0:e.address)==null?void 0:V.district;R&&(E.selectEl.value=R)}const Z=(M=e==null?void 0:e.address)==null?void 0:M.district;if(Z&&A[Z]){const B=A[Z];x.setOptions(B),x.setDisabled(!1);const R=(S=e==null?void 0:e.address)==null?void 0:S.ward;R&&(x.selectEl.value=R)}}function h(){return{taxCode:d.getValue().trim(),representative:n.getValue().trim(),email:r.getValue().trim(),phone:l.getValue().trim(),license:a.getValues(),companyName:g.getValue().trim(),position:i.getValue().trim(),address:{country:T.getValue(),province:f.getValue(),district:E.getValue(),ward:x.getValue(),detail:w.getValue().trim()}}}return{container:s,getValues:h}}function X({providerProps:m,formProps:e}){const s=document.createElement("div");s.className="wgt:flex wgt:flex-col wgt:gap-4 wgt:w-full wgt:max-w-[1072px] wgt:mx-auto";const o=$(m);s.appendChild(o.container);const c=K(e);return s.appendChild(c.container),{container:s}}function J({value:m="",onInputChange:e}={}){const s=document.createElement("div");s.className="wgt:flex wgt:flex-col";const o=document.createElement("label");o.className="wgt:font-medium wgt:mb-1 wgt:text-gray-700",o.innerHTML='Chọn gói đăng ký <span class="wgt:text-red-500">*</span>',s.appendChild(o);const c=document.createElement("div");c.className="wgt:flex wgt:rounded-lg wgt:border wgt:border-gray-300 wgt:overflow-hidden";const t=document.createElement("input");t.type="text",t.inputMode="numeric",t.value=m,t.placeholder="Số đơn/tháng",t.className=["wgt:flex-1","wgt:px-4","wgt:py-2","wgt:text-gray-700","wgt:placeholder-gray-400","wgt:bg-white","wgt:focus:outline-none"].join(" "),typeof e=="function"&&t.addEventListener("input",e);const d=document.createElement("span");return d.className="wgt:px-4 wgt:py-2 wgt:bg-gray-100 wgt:text-gray-600 wgt:flex-shrink-0",d.innerText="đơn/tháng",c.appendChild(t),c.appendChild(d),s.appendChild(c),{container:s,inputEl:t,getValue(){return t.value},setValue(n){t.value=n}}}function Y({packageOptions:m=[],selectedPackageId:e="",handlePackageSelect:s}={}){const o=document.createElement("div");o.className="space-y-6";const c=document.createElement("h3");c.className="wgt:text-lg wgt:font-medium wgt:text-gray-800 wgt:mb-2",c.innerText="Gói phù hợp nhất",o.appendChild(c);const t=document.createElement("div");t.className="wgt:w-full wgt:grid wgt:grid-cols-3 wgt:gap-6",o.appendChild(t);function d(){t.innerHTML="",m.forEach(n=>{const r=n.id===e,l=document.createElement("label");l.className=["wgt:relative","wgt:border","wgt:rounded-xl","wgt:p-4","wgt:flex-shrink-0","wgt:cursor-pointer","wgt:bg-white",r?"wgt:border-primary":"wgt:border-grey-6 wgt:hover:border-gray-300"].filter(Boolean).join(" ");const a=document.createElement("div");a.className="wgt:flex wgt:justify-between wgt:items-center";const g=document.createElement("span");g.className=["wgt:text-base","wgt:font-semibold",r?"wgt:text-green-700":"wgt:text-gray-800"].join(" "),g.innerText=n.code,a.appendChild(g);const{container:i}=_({checked:r,onChange:w=>{w&&(e=n.id,typeof s=="function"&&s(n.id),d())}});a.appendChild(i),l.appendChild(a);const p=document.createElement("div");p.className="wgt:flex wgt:items-center wgt:text-gray-600 wgt:mt-2";const u=document.createElement("svg");u.setAttribute("xmlns","http://www.w3.org/2000/svg"),u.setAttribute("class","w-5 h-5 text-green-500 flex-shrink-0"),u.setAttribute("fill","none"),u.setAttribute("viewBox","0 0 24 24"),u.setAttribute("stroke","currentColor"),u.setAttribute("stroke-width","3"),u.innerHTML=`
15
15
  <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
16
- `,m.appendChild(x);const v=document.createElement("span");v.className="ml-2 text-sm",v.innerText=`${t.unitsPerMonth.toLocaleString("vi-VN")} hóa đơn điện tử / tháng`,m.appendChild(v),n.appendChild(m);const g=document.createElement("div");g.className="mt-4";const E=document.createElement("span");E.className=["block","text-2xl","font-bold",s?"text-green-700":"text-gray-900"].join(" "),E.innerText=t.priceVND.toLocaleString("vi-VN"),g.appendChild(E);const N=document.createElement("span");N.className="text-sm text-gray-600",N.innerText="VND/Gói",g.appendChild(N),n.appendChild(g),e.appendChild(n)})}return d(),{container:l,setSelectedPackageId(t){p=t,d()}}}function D({title:f,isDisabled:p=!1,handleClick:o=null,type:l="button",className:c=""}={}){const e=document.createElement("button");return e.type=l,e.disabled=p,e.className=["bg-primary","hover:bg-primary-dark","text-white","px-6","py-2","rounded","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer",c].filter(Boolean).join(" "),e.innerText=f,typeof o=="function"&&e.addEventListener("click",d=>{e.disabled||o(d)}),e}function G({onNext:f,onPrev:p,setSelectedOption:o}){const l=[{id:"pkg-300-a",code:"DT-300",unitsPerMonth:300,priceVND:45e4},{id:"pkg-500",code:"DT-500",unitsPerMonth:500,priceVND:75e4},{id:"pkg-1000-b",code:"DT-1000",unitsPerMonth:1e3,priceVND:105e4}],c=document.createElement("div");c.className="flex flex-col gap-6";const e=document.createElement("div");e.className="w-full max-w-[1070px] mx-auto flex flex-col gap-6",c.appendChild(e);const d=document.createElement("div");d.className="w-full px-6 pb-6 pt-4 rounded-3xl bg-weak-50 flex flex-col gap-6",e.appendChild(d);let t="",s=[...l],n=l[1].id;const a=$({value:t,onInputChange:b=>{t=b.target.value.replace(/\D/g,""),v()}});d.appendChild(a.container);const i=document.createElement("div");d.appendChild(i);let r=null;function m(){if(i.innerHTML="",s.length>0)r=z({packageOptions:s,selectedPackageId:n}),i.appendChild(r.container);else{const b=document.createElement("span");b.className="text-gray-500",b.innerText="No package found.",i.appendChild(b),r=null}}let x=null;function v(){x&&clearTimeout(x),t!==""?x=setTimeout(()=>{const b=l.find(k=>k.code.endsWith(t));b?(n=b.id,s=[b]):s=[],m()},500):(s=[...l],m())}m();const g=document.createElement("div");g.className="flex items-center gap-4";const E=document.createElement("span");E.className="text-sm font-semibold leading-[18px] text-text-black",E.innerText="Hình thức thanh toán:",g.appendChild(E);const N=document.createElement("div");N.className="p-2 w-fit rounded-[10px] border border-soft-200 flex items-center gap-2";const u=document.createElement("div");u.innerHTML=`
16
+ `,p.appendChild(u);const T=document.createElement("span");T.className="wgt:ml-2 wgt:text-sm",T.innerText=`${n.unitsPerMonth.toLocaleString("vi-VN")} hóa đơn điện tử / tháng`,p.appendChild(T),l.appendChild(p);const f=document.createElement("div");f.className="wgt:mt-4";const E=document.createElement("span");E.className=["wgt:block","wgt:text-2xl","wgt:font-bold",r?"wgt:text-green-700":"wgt:text-gray-900"].join(" "),E.innerText=n.priceVND.toLocaleString("vi-VN"),f.appendChild(E);const x=document.createElement("span");x.className="wgt:text-sm wgt:text-gray-600",x.innerText="VND/Gói",f.appendChild(x),l.appendChild(f),t.appendChild(l)})}return d(),{container:o,setSelectedPackageId(n){e=n,d()}}}function q({title:m,isDisabled:e=!1,handleClick:s=null,type:o="button",className:c=""}={}){const t=document.createElement("button");return t.type=o,t.disabled=e,t.className=["wgt:bg-primary","wgt:hover:bg-primary-dark","wgt:text-white","wgt:px-6","wgt:py-2","wgt:rounded","wgt:disabled:opacity-50","wgt:disabled:cursor-not-allowed","wgt:cursor-pointer",c].filter(Boolean).join(" "),t.innerText=m,typeof s=="function"&&t.addEventListener("click",d=>{t.disabled||s(d)}),t}function D({onNext:m,onPrev:e,setSelectedOption:s,selectedOption:o}){const c=[{id:"pkg-300-a",code:"DT-300",unitsPerMonth:300,priceVND:45e4},{id:"pkg-500",code:"DT-500",unitsPerMonth:500,priceVND:75e4},{id:"pkg-1000-b",code:"DT-1000",unitsPerMonth:1e3,priceVND:105e4}],t=document.createElement("div");t.className="wgt:flex wgt:flex-col wgt:gap-6 wgt:h-full wgt:justify-between";const d=document.createElement("div");d.className="wgt:w-full wgt:max-w-[1070px] wgt:mx-auto wgt:flex wgt:flex-col wgt:gap-6",t.appendChild(d);const n=document.createElement("div");n.className="wgt:w-full wgt:px-6 wgt:pb-6 wgt:pt-4 wgt:rounded-3xl wgt:bg-weak-50 wgt:flex wgt:flex-col wgt:gap-6",d.appendChild(n);let r="",l=[...c],a=(o==null?void 0:o.id)??c[1].id;const g=J({value:r,onInputChange:v=>{r=v.target.value.replace(/\D/g,""),f()}});n.appendChild(g.container);const i=document.createElement("div");n.appendChild(i);let p=null;function u(){if(i.innerHTML="",l.length>0)p=Y({packageOptions:l,selectedPackageId:a,handlePackageSelect:v=>{a=v,u()}}),i.appendChild(p.container);else{const v=document.createElement("span");v.className="wgt:text-gray-500",v.innerText="No package found.",i.appendChild(v),p=null}}let T=null;function f(){T&&clearTimeout(T),r!==""?T=setTimeout(()=>{const v=c.find(N=>N.code.endsWith(r));v?(a=v.id,l=[v]):l=[],u()},500):(l=[...c],u())}u();const E=document.createElement("div");E.className="wgt:flex wgt:items-center wgt:gap-4";const x=document.createElement("span");x.className="wgt:text-sm wgt:font-semibold wgt:leading-[18px] wgt:text-text-black",x.innerText="Hình thức thanh toán:",E.appendChild(x);const w=document.createElement("div");w.className="wgt:p-2 wgt:w-fit wgt:rounded-[10px] wgt:border wgt:border-soft-200 wgt:flex wgt:items-center wgt:gap-2";const b=document.createElement("div");b.innerHTML=`
17
17
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
18
18
  xmlns="http://www.w3.org/2000/svg">
19
19
  <rect width="24" height="24" rx="8" fill="#379DF1" />
@@ -33,7 +33,7 @@
33
33
  </clipPath>
34
34
  </defs>
35
35
  </svg>
36
- `,N.appendChild(u);const C=document.createElement("span");C.className="text-base font-semibold leading-5 text-strong-950",C.innerText="Thanh toán qua mã QR",N.appendChild(C),g.appendChild(N),e.appendChild(g);const y=document.createElement("div");y.className="flex items-center justify-between gap-2 px-6";const h=D({type:"button",title:"Quay lại",className:"bg-transparent !text-primary hover:bg-transparent underline",handleClick:p});y.appendChild(h);const w=D({type:"button",title:"Tiếp theo",className:"",handleClick:()=>{const b=l.find(k=>k.id===n);b&&(o(b),f())}});return y.appendChild(w),c.appendChild(y),{container:c}}function K({qrSrc:f="",logos:p=[],accountName:o="",accountNumber:l="",bankName:c="",instructions:e=[],illustrationSrc:d=""}={}){const t=document.createElement("div");t.className="flex flex-col md:flex-row gap-6 p-6 bg-gray-50 rounded-xl";const s=document.createElement("div"),n=document.createElement("h3");n.className="text-lg font-semibold text-gray-800 mb-4 text-center",n.innerText="Quét mã QR để thanh toán",s.appendChild(n);const a=document.createElement("div");a.className="bg-white rounded-md p-6 flex flex-col gap-4 border border-[#E4E7EC]";const i=document.createElement("div");i.className="flex justify-center";const r=document.createElement("img");r.src=f,r.alt="QR code",r.className="w-full max-w-[200px] aspect-square object-contain",i.appendChild(r),a.appendChild(i);const m=document.createElement("div");m.className="flex justify-center items-center gap-4 flex-wrap",p.forEach(b=>{const k=document.createElement("img");k.src=b,k.alt="Logo",k.className="w-8 object-contain",m.appendChild(k)}),a.appendChild(m);const x=document.createElement("div");x.className="text-center flex flex-col gap-1";const v=document.createElement("h3");v.className="text-lg font-bold text-text-black",v.innerText=o,x.appendChild(v);const g=document.createElement("p");g.className="text-sm text-grey-8",g.innerHTML=`Số tài khoản: <span class="font-medium">${l}</span>`,x.appendChild(g);const E=document.createElement("p");E.className="text-sm text-grey-8",E.innerHTML=`Ngân hàng thụ hưởng: <span class="font-medium">${c}</span>`,x.appendChild(E),a.appendChild(x),s.appendChild(a),t.appendChild(s);const N=document.createElement("div");N.className="flex flex-col justify-between md:w-1/2";const u=document.createElement("div"),C=document.createElement("h3");C.className="text-lg font-semibold text-gray-800 mb-4",C.innerText="Hướng dẫn thanh toán QR",u.appendChild(C);const y=document.createElement("ol");y.className="space-y-4",e.forEach((b,k)=>{const T=document.createElement("li");T.className="flex items-start";const L=document.createElement("div");L.className="flex-shrink-0 mt-0.5";const M=document.createElement("div");M.className="w-6 h-6 rounded-full bg-primary flex items-center justify-center";const V=document.createElement("span");V.className="text-white text-sm font-semibold",V.innerText=String(k+1),M.appendChild(V),L.appendChild(M);const S=document.createElement("p");S.className="ml-3 text-gray-700",S.innerText=b,T.appendChild(L),T.appendChild(S),y.appendChild(T)}),u.appendChild(y),N.appendChild(u);const h=document.createElement("div");h.className="h-[300px] flex justify-center";const w=document.createElement("img");return w.src=d,w.alt="QR payment illustration",w.className="h-full object-contain",h.appendChild(w),N.appendChild(h),t.appendChild(N),{container:t,update(b={}){b.qrSrc!=null&&(r.src=b.qrSrc),b.logos&&(m.innerHTML="",b.logos.forEach(k=>{const T=document.createElement("img");T.src=k,T.alt="Logo",T.className="w-8 object-contain",m.appendChild(T)})),b.accountName!=null&&(v.innerText=b.accountName),b.accountNumber!=null&&(g.innerHTML=`Số tài khoản: <span class="font-medium">${b.accountNumber}</span>`),b.bankName!=null&&(E.innerHTML=`Ngân hàng thụ hưởng: <span class="font-medium">${b.bankName}</span>`),b.instructions&&(y.innerHTML="",b.instructions.forEach((k,T)=>{const L=document.createElement("li");L.className="flex items-start";const M=document.createElement("div");M.className="flex-shrink-0 mt-0.5";const V=document.createElement("div");V.className="w-6 h-6 rounded-full bg-primary flex items-center justify-center";const S=document.createElement("span");S.className="text-white text-sm font-semibold",S.innerText=String(T+1),V.appendChild(S),M.appendChild(V);const F=document.createElement("p");F.className="ml-3 text-gray-700",F.innerText=k,L.appendChild(M),L.appendChild(F),y.appendChild(L)})),b.illustrationSrc!=null&&(w.src=b.illustrationSrc)}}}function X({qrSrc:f,logos:p=[],accountName:o="",accountNumber:l="",bankName:c="",instructions:e=[],illustrationSrc:d}={}){const{container:t}=K({qrSrc:f,logos:p,accountName:o,accountNumber:l,bankName:c,instructions:e,illustrationSrc:d});return{container:t}}function J({selectedProvider:f=null,selectedOption:p=null,totalAmountText:o="",onCancel:l}={}){const c=document.createElement("div");c.className=["w-[440px]","flex","flex-col","rounded-2xl","border","border-soft-200","overflow-hidden"].join(" ");const e=document.createElement("div");e.className="p-4 w-full flex items-center justify-center gap-2 bg-primary/10";const d=document.createElement("p");d.className="text-base font-medium leading-6 text-primary",d.innerHTML='Hoàn tất thanh toán của bạn trong <span class="font-bold">01:00:00</span>',e.appendChild(d);const t=document.createElement("svg");t.setAttribute("width","24"),t.setAttribute("height","24"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.innerHTML=`
36
+ `,w.appendChild(b);const C=document.createElement("span");C.className="wgt:text-base wgt:font-semibold wgt:leading-5 wgt:text-strong-950",C.innerText="Thanh toán qua mã QR",w.appendChild(C),E.appendChild(w),d.appendChild(E);const h=document.createElement("div");h.className="wgt:flex wgt:items-center wgt:justify-between wgt:gap-2 wgt:px-6";const H=q({type:"button",title:"Quay lại",className:"wgt:bg-transparent wgt:!text-primary wgt:hover:bg-transparent wgt:underline",handleClick:e});h.appendChild(H);const y=q({type:"button",title:"Tiếp theo",className:"",handleClick:()=>{const v=c.find(N=>N.id===a);v&&(s(v),m())}});return h.appendChild(y),t.appendChild(h),{container:t}}function ee({qrSrc:m="",logos:e=[],accountName:s="",accountNumber:o="",bankName:c="",instructions:t=[],illustrationSrc:d=""}={}){const n=document.createElement("div");n.className="wgt:flex wgt:flex-col wgt:md:flex-row wgt:gap-6 wgt:p-6 wgt:bg-gray-50 wgt:rounded-xl";const r=document.createElement("div"),l=document.createElement("h3");l.className="wgt:text-lg wgt:font-semibold wgt:text-gray-800 wgt:mb-4 wgt:text-center",l.innerText="Quét mã QR để thanh toán",r.appendChild(l);const a=document.createElement("div");a.className="wgt:bg-white wgt:rounded-md wgt:p-6 wgt:flex wgt:flex-col wgt:gap-4 wgt:border wgt:border-[#E4E7EC]";const g=document.createElement("div");g.className="wgt:flex wgt:justify-center";const i=document.createElement("img");i.src=m,i.alt="QR code",i.className="wgt:w-full wgt:max-w-[200px] wgt:aspect-square wgt:object-contain",g.appendChild(i),a.appendChild(g);const p=document.createElement("div");p.className="wgt:flex wgt:justify-center wgt:items-center wgt:gap-4 wgt:flex-wrap",e.forEach(y=>{const v=document.createElement("img");v.src=y,v.alt="Logo",v.className="wgt:w-8 wgt:object-contain",p.appendChild(v)}),a.appendChild(p);const u=document.createElement("div");u.className="wgt:text-center wgt:flex wgt:flex-col wgt:gap-1";const T=document.createElement("h3");T.className="wgt:text-lg wgt:font-bold wgt:text-text-black",T.innerText=s,u.appendChild(T);const f=document.createElement("p");f.className="wgt:text-sm wgt:text-grey-8",f.innerHTML=`Số tài khoản: <span class="wgt:font-medium">${o}</span>`,u.appendChild(f);const E=document.createElement("p");E.className="wgt:text-sm wgt:text-grey-8",E.innerHTML=`Ngân hàng thụ hưởng: <span class="wgt:font-medium">${c}</span>`,u.appendChild(E),a.appendChild(u),r.appendChild(a),n.appendChild(r);const x=document.createElement("div");x.className="wgt:flex wgt:flex-col wgt:justify-between wgt:md:w-1/2";const w=document.createElement("div"),b=document.createElement("h3");b.className="wgt:text-lg wgt:font-semibold wgt:text-gray-800 mb-4",b.innerText="Hướng dẫn thanh toán QR",w.appendChild(b);const C=document.createElement("ol");C.className="wgt:space-y-4",t.forEach((y,v)=>{const N=document.createElement("li");N.className="wgt:flex wgt:items-start";const V=document.createElement("div");V.className="wgt:flex-shrink-0 wgt:mt-0.5";const M=document.createElement("div");M.className="wgt:w-6 wgt:h-6 wgt:rounded-full wgt:bg-primary wgt:flex wgt:items-center wgt:justify-center";const S=document.createElement("span");S.className="wgt:text-white wgt:text-sm wgt:font-semibold",S.innerText=String(v+1),M.appendChild(S),V.appendChild(M);const k=document.createElement("p");k.className="wgt:ml-3 wgt:text-gray-700",k.innerText=y,N.appendChild(V),N.appendChild(k),C.appendChild(N)}),w.appendChild(C),x.appendChild(w);const h=document.createElement("div");h.className="wgt:h-[300px] wgt:flex wgt:justify-center";const H=document.createElement("img");return H.src=d,H.alt="QR payment illustration",H.className="wgt:h-full wgt:object-contain",h.appendChild(H),x.appendChild(h),n.appendChild(x),{container:n,update(y={}){y.qrSrc!=null&&(i.src=y.qrSrc),y.logos&&(p.innerHTML="",y.logos.forEach(v=>{const N=document.createElement("img");N.src=v,N.alt="Logo",N.className="wgt:w-8 wgt:object-contain",p.appendChild(N)})),y.accountName!=null&&(T.innerText=y.accountName),y.accountNumber!=null&&(f.innerHTML=`Số tài khoản: <span class="wgt:font-medium">${y.accountNumber}</span>`),y.bankName!=null&&(E.innerHTML=`Ngân hàng thụ hưởng: <span class="wgt:font-medium">${y.bankName}</span>`),y.instructions&&(C.innerHTML="",y.instructions.forEach((v,N)=>{const V=document.createElement("li");V.className="wgt:flex wgt:items-start";const M=document.createElement("div");M.className="wgt:flex-shrink-0 wgt:mt-0.5";const S=document.createElement("div");S.className="wgt:w-6 wgt:h-6 wgt:rounded-full wgt:bg-primary wgt:flex wgt:items-center wgt:justify-center";const k=document.createElement("span");k.className="wgt:text-white wgt:text-sm wgt:font-semibold",k.innerText=String(N+1),S.appendChild(k),M.appendChild(S);const L=document.createElement("p");L.className="wgt:ml-3 wgt:text-gray-700",L.innerText=v,V.appendChild(M),V.appendChild(L),C.appendChild(V)})),y.illustrationSrc!=null&&(H.src=y.illustrationSrc)}}}function te({qrSrc:m,logos:e=[],accountName:s="",accountNumber:o="",bankName:c="",instructions:t=[],illustrationSrc:d}={}){const{container:n}=ee({qrSrc:m,logos:e,accountName:s,accountNumber:o,bankName:c,instructions:t,illustrationSrc:d});return{container:n}}function ne({selectedProvider:m=null,selectedOption:e=null,totalAmountText:s="",onCancel:o}={}){const c=document.createElement("div");c.className=["wgt:w-[440px]","wgt:flex","wgt:flex-col","wgt:rounded-2xl","wgt:border","wgt:border-soft-200","wgt:overflow-hidden"].join(" ");const t=document.createElement("div");t.className="wgt:p-4 wgt:w-full wgt:flex wgt:items-center wgt:justify-center wgt:gap-2 wgt:bg-primary/10";const d=document.createElement("p");d.className="wgt:text-base wgt:font-medium wgt:leading-6 wgt:text-primary",d.innerHTML='Hoàn tất thanh toán của bạn trong <span class="font-bold">01:00:00</span>',t.appendChild(d);const n=document.createElement("svg");n.setAttribute("width","24"),n.setAttribute("height","24"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("fill","none"),n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.innerHTML=`
37
37
  <path
38
38
  d="M12 1.40039C17.8537 1.40039 22.5996 6.14633 22.5996 12C22.5996 17.8537 17.8537 22.5996 12 22.5996C6.14633 22.5996 1.40039 17.8537 1.40039 12C1.40039 6.14633 6.14633 1.40039 12 1.40039ZM12 3.38086C7.24117 3.38086 3.38086 7.24117 3.38086 12C3.38086 16.7588 7.24117 20.6191 12 20.6191C16.7588 20.6191 20.6191 16.7588 20.6191 12C20.6191 7.24117 16.7588 3.38086 12 3.38086Z"
39
39
  fill="#1D963E"
@@ -44,4 +44,4 @@
44
44
  d="M16.0945 14.9672L12.7523 12.5508V6.75C12.7523 6.64687 12.668 6.5625 12.5648 6.5625H11.4375C11.3344 6.5625 11.25 6.64687 11.25 6.75V13.2047C11.25 13.2656 11.2781 13.3219 11.3273 13.357L15.2039 16.1836C15.2883 16.2445 15.4055 16.2258 15.4664 16.1437L16.1367 15.2297C16.1976 15.1429 16.1789 15.0258 16.0945 14.9672Z"
45
45
  fill="#1D963E"
46
46
  />
47
- `,e.appendChild(t),c.appendChild(e);const s=document.createElement("div");s.className=["p-6","w-full","flex","flex-col","gap-10","shadow-[0px_2px_6px_0px_rgba(31,34,41,0.04)]"].join(" ");const n=document.createElement("div");n.className="w-full flex flex-col gap-4";const a=document.createElement("h2");a.className="text-xl font-semibold leading-6 text-black",a.innerText="Thông tin đơn hàng",n.appendChild(a);const i=document.createElement("div");i.className="w-full flex items-center justify-between";const r=document.createElement("h4");r.className="text-sm font-normal leading-5 text-[#475467]",r.innerText="Nhà cung cấp";const m=document.createElement("img");f&&f.logo&&(m.src=f.logo,m.alt=f.name,m.className="h-6 object-contain"),i.appendChild(r),i.appendChild(m),n.appendChild(i);const x=document.createElement("div");x.className="w-full flex items-center justify-between";const v=document.createElement("h4");v.className="text-sm font-normal leading-5 text-[#475467]",v.innerText="Gói đăng ký";const g=document.createElement("span");g.className="text-base font-semibold leading-6 text-text-blackF",g.innerText=p?String(p.unitsPerMonth):"",x.appendChild(v),x.appendChild(g),n.appendChild(x);const E=document.createElement("hr");n.appendChild(E);const N=document.createElement("div");N.className="w-full flex items-center justify-between";const u=document.createElement("h4");u.className="text-sm font-normal leading-5 text-[#475467]",u.innerText="Số tiền thanh toán";const C=document.createElement("span");C.className="text-2xl font-bold leading-6 text-[#ED1C24]",C.innerText=o,N.appendChild(u),N.appendChild(C),n.appendChild(N),s.appendChild(n);const y=D({title:"Hủy giao dịch",className:"bg-transparent border border-primary !text-primary hover:bg-transparent",handleClick:()=>{typeof l=="function"&&l()}});return s.appendChild(y),c.appendChild(s),{container:c,setSelectedProvider(h){f=h,m.src=(h==null?void 0:h.logo)||"",m.alt=(h==null?void 0:h.name)||""},setSelectedOption(h){p=h,g.innerText=h?String(h.unitsPerMonth):""},setTotalAmountText(h){o=h,C.innerText=h}}}function Y({onPrev:f,checkoutProps:p,orderInfoProps:o}){const l=document.createElement("div");l.className="flex flex-col gap-6";const c=document.createElement("div");c.className="w-full flex items-start gap-6";const e=document.createElement("div");e.className="flex-1";const{container:d}=X(p);e.appendChild(d),c.appendChild(e);const{container:t}=J(o);c.appendChild(t),l.appendChild(c);const s=document.createElement("div");s.className="flex items-center justify-between gap-2 px-6";const n=D({type:"button",title:"Quay lại",className:"bg-transparent !text-primary hover:bg-transparent underline",handleClick:f});return s.appendChild(n),l.appendChild(s),{container:l}}function ee(f){const p=["Thông Tin","Gói Hóa Đơn","Xác Nhận Và Thanh Toán"],{container:o,setStep:l,setContent:c}=q({steps:p.map(n=>n),currentStep:1});f.appendChild(o);let e=1,d=null,t=null;function s(n){if(n===1){const{container:a}=_({providerProps:{providers:[{name:"Misa",route:"misa",logoUrl:"./assets/misa.svg"},{name:"M-Invoice",route:"minvoice",logoUrl:"./assets/m-invoice.svg"},{name:"FPT",route:"fpt",logoUrl:"./assets/fpt.svg"}],selectedRoute:d?d.route:null,onProviderChange:i=>{d=i}},formProps:{onSubmit:i=>{e=2,l(e),s(e)}}});c(a)}else if(n===2){const{container:a}=G({onNext:()=>{e=3,l(e),s(e)},onPrev:()=>{e=1,l(e),s(e)},setSelectedOption:i=>{t=i}});c(a)}else if(n===3){const{container:a}=Y({onPrev:()=>{e=2,l(e),s(e)},checkoutProps:{qrSrc:"./assets/qrcode.png",logos:["./assets/momo.png","./assets/vietqr.png","./assets/vcb.png","./assets/mb.png","./assets/bidv.png"],accountName:"ATOM SOLUTION",accountNumber:"0973886570",bankName:"Techcombank",instructions:["Mở ứng dụng Ngân hàng hoặc Ví điện tử trên điện thoại","Trên ứng dụng chọn tính năng Quét mã QR","Quét mã QR ở trang này và thanh toán"],illustrationSrc:"./assets/qr.png"},orderInfoProps:{selectedProvider:d||{name:"",logo:""},selectedOption:t||{unitsPerMonth:0},totalAmountText:t?t.priceVND.toLocaleString("vi-VN")+" VND":"0 VND",onCancel:()=>{e=2,l(e),s(e)}}});c(a)}}s(e)}j.InvoiceRegisterWidget=ee,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
47
+ `,t.appendChild(n),c.appendChild(t);const r=document.createElement("div");r.className=["wgt:p-6","wgt:w-full","wgt:flex","wgt:flex-col","wgt:gap-10","wgt:shadow-[0px_2px_6px_0px_rgba(31,34,41,0.04)]"].join(" ");const l=document.createElement("div");l.className="wgt:w-full wgt:flex wgt:flex-col wgt:gap-4";const a=document.createElement("h2");a.className="wgt:text-xl wgt:font-semibold wgt:leading-6 wgt:text-black",a.innerText="Thông tin đơn hàng",l.appendChild(a);const g=document.createElement("div");g.className="wgt:w-full wgt:flex wgt:items-center wgt:justify-between";const i=document.createElement("h4");i.className="wgt:text-sm wgt:font-normal wgt:leading-5 wgt:text-[#475467]",i.innerText="Nhà cung cấp";const p=document.createElement("img");m&&m.logoUrl&&(p.src=m.logoUrl,p.alt=m.name,p.className="wgt:h-6 wgt:object-contain"),g.appendChild(i),g.appendChild(p),l.appendChild(g);const u=document.createElement("div");u.className="wgt:w-full wgt:flex wgt:items-center wgt:justify-between";const T=document.createElement("h4");T.className="wgt:text-sm wgt:font-normal wgt:leading-5 wgt:text-[#475467]",T.innerText="Gói đăng ký";const f=document.createElement("span");f.className="wgt:text-base wgt:font-semibold wgt:leading-6 wgt:text-text-black",f.innerText=e?String(e.unitsPerMonth):"",u.appendChild(T),u.appendChild(f),l.appendChild(u);const E=document.createElement("hr");l.appendChild(E);const x=document.createElement("div");x.className="wgt:w-full wgt:flex wgt:items-center wgt:justify-between";const w=document.createElement("h4");w.className="wgt:text-sm wgt:font-normal wgt:leading-5 wgt:text-[#475467]",w.innerText="Số tiền thanh toán";const b=document.createElement("span");b.className="wgt:text-2xl wgt:font-bold wgt:leading-6 wgt:text-[#ED1C24]",b.innerText=s,x.appendChild(w),x.appendChild(b),l.appendChild(x),r.appendChild(l);const C=q({title:"Hủy giao dịch",className:"wgt:bg-transparent wgt:border wgt:border-primary wgt:!text-primary wgt:hover:bg-transparent",handleClick:()=>{typeof o=="function"&&o()}});return r.appendChild(C),c.appendChild(r),{container:c,setSelectedProvider(h){m=h,p.src=(h==null?void 0:h.logo)||"",p.alt=(h==null?void 0:h.name)||""},setSelectedOption(h){e=h,f.innerText=h?String(h.unitsPerMonth):""},setTotalAmountText(h){s=h,b.innerText=h}}}function le({onPrev:m,checkoutProps:e,orderInfoProps:s}){const o=document.createElement("div");o.className="wgt:flex wgt:flex-col wgt:gap-6";const c=document.createElement("div");c.className="wgt:w-full wgt:flex wgt:items-start wgt:gap-6";const t=document.createElement("div");t.className="wgt:flex-1";const{container:d}=te(e);t.appendChild(d),c.appendChild(t);const{container:n}=ne(s);c.appendChild(n),o.appendChild(c);const r=document.createElement("div");r.className="wgt:flex wgt:items-center wgt:justify-between wgt:gap-2 wgt:px-6";const l=q({type:"button",title:"Quay lại",className:"wgt:bg-transparent wgt:!text-primary wgt:hover:bg-transparent wgt:underline",handleClick:m});return r.appendChild(l),o.appendChild(r),{container:o}}function ae(m){const e=["Thông Tin","Gói Hóa Đơn","Xác Nhận Và Thanh Toán"],{container:s,setStep:o,setContent:c}=O({steps:e.map(a=>a),currentStep:1});m.appendChild(s);let t=1,d=null,n=null,r=null;function l(a){if(a===1){const{container:g}=X({providerProps:{providers:[{name:"Misa",route:"misa",logoUrl:"./assets/misa.svg"},{name:"M-Invoice",route:"minvoice",logoUrl:"./assets/m-invoice.svg"},{name:"FPT",route:"fpt",logoUrl:"./assets/fpt.svg"}],selectedRoute:d?d.route:null,onProviderChange:i=>{d=i}},formProps:{onSubmit:i=>{n=i,t=2,o(t),l(t)},registrationData:n}});c(g)}else if(a===2){const{container:g}=D({onNext:()=>{t=3,o(t),l(t)},onPrev:()=>{t=1,o(t),l(t)},setSelectedOption:i=>{r=i},selectedOption:r});c(g)}else if(a===3){const{container:g}=le({onPrev:()=>{t=2,o(t),l(t)},checkoutProps:{qrSrc:"./assets/qrcode.png",logos:["./assets/momo.png","./assets/vietqr.png","./assets/vcb.png","./assets/mb.png","./assets/bidv.png"],accountName:"ATOM SOLUTION",accountNumber:"0973886570",bankName:"Techcombank",instructions:["Mở ứng dụng Ngân hàng hoặc Ví điện tử trên điện thoại","Trên ứng dụng chọn tính năng Quét mã QR","Quét mã QR ở trang này và thanh toán"],illustrationSrc:"./assets/qr.png"},orderInfoProps:{selectedProvider:d||{name:"",logo:""},selectedOption:r||{unitsPerMonth:0},totalAmountText:r?r.priceVND.toLocaleString("vi-VN")+" VND":"0 VND",onCancel:()=>{t=2,o(t),l(t)}}});c(g)}}l(t)}P.InvoiceRegisterWidget=ae,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
package/dist/widget.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-green-50:oklch(98.2% .018 155.826);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-strong-950:#0e121b;--color-primary:#008c44;--color-primary-dark:#085f3b;--color-weak-50:#f5f7fa;--color-soft-400:#99a0ae;--color-icon-primary:#008c4f;--color-icon-soft-400:#99a0ae;--color-text-black:#2c2c2c;--color-border-light:#e3e3e3;--color-grey-6:#bfbfbf;--color-grey-7:#8c8c8c;--color-grey-8:#595959;--color-soft-200:#e1e4ea}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.right-2{right:calc(var(--spacing)*2)}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-3{margin-right:calc(var(--spacing)*3)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-20{height:calc(var(--spacing)*20)}.h-\[300px\]{height:300px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-screen{max-height:100vh}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-20{width:calc(var(--spacing)*20)}.w-\[1px\]{width:1px}.w-\[440px\]{width:440px}.w-\[1320px\]{width:1320px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[200px\]{max-width:200px}.max-w-\[1070px\]{max-width:1070px}.max-w-\[1072px\]{max-width:1072px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-10{gap:calc(var(--spacing)*10)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[\#E1E4EA\]{border-color:#e1e4ea}.border-\[\#E4E7EC\]{border-color:#e4e7ec}.border-border-light{border-color:var(--color-border-light)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-green-500{border-color:var(--color-green-500)}.border-grey-6{border-color:var(--color-grey-6)}.border-primary{border-color:var(--color-primary)}.border-red-500{border-color:var(--color-red-500)}.border-soft-200{border-color:var(--color-soft-200)}.bg-black{background-color:var(--color-black)}.bg-border-light{background-color:var(--color-border-light)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-icon-primary{background-color:var(--color-icon-primary)}.bg-icon-soft-400{background-color:var(--color-icon-soft-400)}.bg-primary{background-color:var(--color-primary)}.bg-primary\/10{background-color:#008c441a}@supports (color:color-mix(in lab,red,red)){.bg-primary\/10{background-color:color-mix(in oklab,var(--color-primary)10%,transparent)}}.bg-primary\/16{background-color:#008c4429}@supports (color:color-mix(in lab,red,red)){.bg-primary\/16{background-color:color-mix(in oklab,var(--color-primary)16%,transparent)}}.bg-transparent{background-color:#0000}.bg-weak-50{background-color:var(--color-weak-50)}.bg-white{background-color:var(--color-white)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-9{padding-right:calc(var(--spacing)*9)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[28px\]{font-size:28px}.leading-3{--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.leading-\[18px\]{--tw-leading:18px;line-height:18px}.leading-\[30px\]{--tw-leading:30px;line-height:30px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.\!text-primary{color:var(--color-primary)!important}.text-\[\#475467\]{color:#475467}.text-\[\#ED1C24\]{color:#ed1c24}.text-black{color:var(--color-black)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-700{color:var(--color-green-700)}.text-grey-7{color:var(--color-grey-7)}.text-grey-8{color:var(--color-grey-8)}.text-primary{color:var(--color-primary)}.text-primary-dark{color:var(--color-primary-dark)}.text-red-500{color:var(--color-red-500)}.text-soft-400{color:var(--color-soft-400)}.text-strong-950{color:var(--color-strong-950)}.text-text-black{color:var(--color-text-black)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.placeholder-gray-400::-moz-placeholder{color:var(--color-gray-400)}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.shadow-\[0px_1px_8px_0px_rgba\(82\,88\,102\,0\.06\)\]{--tw-shadow:0px 1px 8px 0px var(--tw-shadow-color,#5258660f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0px_2px_6px_0px_rgba\(31\,34\,41\,0\.04\)\]{--tw-shadow:0px 2px 6px 0px var(--tw-shadow-color,#1f22290a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-250{--tw-duration:.25s;transition-duration:.25s}@media (hover:hover){.hover\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-primary-dark:hover{background-color:var(--color-primary-dark)}.hover\:bg-transparent:hover{background-color:#0000}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:48rem){.md\:w-1\/2{width:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-20{gap:calc(var(--spacing)*20)}}}.heading{text-color:var(--color-text-black);font-size:14px;font-weight:600}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}
1
+ /*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--wgt-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--wgt-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--wgt-color-red-500:oklch(63.7% .237 25.331);--wgt-color-green-50:oklch(98.2% .018 155.826);--wgt-color-green-500:oklch(72.3% .219 149.579);--wgt-color-green-700:oklch(52.7% .154 150.069);--wgt-color-blue-500:oklch(62.3% .214 259.815);--wgt-color-gray-50:oklch(98.5% .002 247.839);--wgt-color-gray-100:oklch(96.7% .003 264.542);--wgt-color-gray-300:oklch(87.2% .01 258.338);--wgt-color-gray-400:oklch(70.7% .022 261.325);--wgt-color-gray-500:oklch(55.1% .027 264.364);--wgt-color-gray-600:oklch(44.6% .03 256.802);--wgt-color-gray-700:oklch(37.3% .034 259.733);--wgt-color-gray-800:oklch(27.8% .033 256.848);--wgt-color-gray-900:oklch(21% .034 264.665);--wgt-color-black:#000;--wgt-color-white:#fff;--wgt-spacing:.25rem;--wgt-text-xs:.75rem;--wgt-text-xs--line-height:calc(1/.75);--wgt-text-sm:.875rem;--wgt-text-sm--line-height:calc(1.25/.875);--wgt-text-base:1rem;--wgt-text-base--line-height: 1.5 ;--wgt-text-lg:1.125rem;--wgt-text-lg--line-height:calc(1.75/1.125);--wgt-text-xl:1.25rem;--wgt-text-xl--line-height:calc(1.75/1.25);--wgt-text-2xl:1.5rem;--wgt-text-2xl--line-height:calc(2/1.5);--wgt-font-weight-normal:400;--wgt-font-weight-medium:500;--wgt-font-weight-semibold:600;--wgt-font-weight-bold:700;--wgt-radius-md:.375rem;--wgt-radius-lg:.5rem;--wgt-radius-xl:.75rem;--wgt-radius-2xl:1rem;--wgt-radius-3xl:1.5rem;--wgt-default-transition-duration:.15s;--wgt-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--wgt-default-font-family:var(--wgt-font-sans);--wgt-default-mono-font-family:var(--wgt-font-mono);--wgt-color-strong-950:#0e121b;--wgt-color-primary:#008c44;--wgt-color-primary-dark:#085f3b;--wgt-color-weak-50:#f5f7fa;--wgt-color-soft-400:#99a0ae;--wgt-color-icon-primary:#008c4f;--wgt-color-icon-soft-400:#99a0ae;--wgt-color-text-black:#2c2c2c;--wgt-color-border-light:#e3e3e3;--wgt-color-grey-6:#bfbfbf;--wgt-color-grey-8:#595959;--wgt-color-soft-200:#e1e4ea}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wgt-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--wgt-default-font-feature-settings,normal);font-variation-settings:var(--wgt-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--wgt-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--wgt-default-mono-font-feature-settings,normal);font-variation-settings:var(--wgt-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.wgt\:sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wgt\:absolute{position:absolute}.wgt\:fixed{position:fixed}.wgt\:relative{position:relative}.wgt\:inset-0{inset:calc(var(--wgt-spacing)*0)}.wgt\:top-1\/2{top:50%}.wgt\:top-2{top:calc(var(--wgt-spacing)*2)}.wgt\:right-2{right:calc(var(--wgt-spacing)*2)}.wgt\:left-1\/2{left:50%}.wgt\:z-10{z-index:10}.wgt\:z-50{z-index:50}.wgt\:mx-auto{margin-inline:auto}.wgt\:mt-0\.5{margin-top:calc(var(--wgt-spacing)*.5)}.wgt\:mt-1{margin-top:calc(var(--wgt-spacing)*1)}.wgt\:mt-2{margin-top:calc(var(--wgt-spacing)*2)}.wgt\:mt-4{margin-top:calc(var(--wgt-spacing)*4)}.wgt\:mr-3{margin-right:calc(var(--wgt-spacing)*3)}.wgt\:mr-4{margin-right:calc(var(--wgt-spacing)*4)}.wgt\:mb-1{margin-bottom:calc(var(--wgt-spacing)*1)}.wgt\:mb-2{margin-bottom:calc(var(--wgt-spacing)*2)}.wgt\:mb-4{margin-bottom:calc(var(--wgt-spacing)*4)}.wgt\:ml-1{margin-left:calc(var(--wgt-spacing)*1)}.wgt\:ml-2{margin-left:calc(var(--wgt-spacing)*2)}.wgt\:ml-3{margin-left:calc(var(--wgt-spacing)*3)}.wgt\:block{display:block}.wgt\:flex{display:flex}.wgt\:grid{display:grid}.wgt\:hidden{display:none}.wgt\:inline-flex{display:inline-flex}.wgt\:aspect-square{aspect-ratio:1}.wgt\:h-2{height:calc(var(--wgt-spacing)*2)}.wgt\:h-2\.5{height:calc(var(--wgt-spacing)*2.5)}.wgt\:h-4{height:calc(var(--wgt-spacing)*4)}.wgt\:h-5{height:calc(var(--wgt-spacing)*5)}.wgt\:h-6{height:calc(var(--wgt-spacing)*6)}.wgt\:h-8{height:calc(var(--wgt-spacing)*8)}.wgt\:h-20{height:calc(var(--wgt-spacing)*20)}.wgt\:h-\[300px\]{height:300px}.wgt\:h-fit{height:-moz-fit-content;height:fit-content}.wgt\:h-full{height:100%}.wgt\:h-screen{height:100vh}.wgt\:max-h-screen{max-height:100vh}.wgt\:w-2{width:calc(var(--wgt-spacing)*2)}.wgt\:w-2\.5{width:calc(var(--wgt-spacing)*2.5)}.wgt\:w-4{width:calc(var(--wgt-spacing)*4)}.wgt\:w-5{width:calc(var(--wgt-spacing)*5)}.wgt\:w-6{width:calc(var(--wgt-spacing)*6)}.wgt\:w-8{width:calc(var(--wgt-spacing)*8)}.wgt\:w-20{width:calc(var(--wgt-spacing)*20)}.wgt\:w-\[1px\]{width:1px}.wgt\:w-\[440px\]{width:440px}.wgt\:w-\[1320px\]{width:1320px}.wgt\:w-fit{width:-moz-fit-content;width:fit-content}.wgt\:w-full{width:100%}.wgt\:max-w-\[200px\]{max-width:200px}.wgt\:max-w-\[1070px\]{max-width:1070px}.wgt\:max-w-\[1072px\]{max-width:1072px}.wgt\:flex-1{flex:1}.wgt\:flex-shrink-0{flex-shrink:0}.wgt\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.wgt\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.wgt\:cursor-pointer{cursor:pointer}.wgt\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.wgt\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wgt\:flex-col{flex-direction:column}.wgt\:flex-wrap{flex-wrap:wrap}.wgt\:items-center{align-items:center}.wgt\:items-start{align-items:flex-start}.wgt\:justify-between{justify-content:space-between}.wgt\:justify-center{justify-content:center}.wgt\:justify-end{justify-content:flex-end}.wgt\:justify-start{justify-content:flex-start}.wgt\:gap-1{gap:calc(var(--wgt-spacing)*1)}.wgt\:gap-2{gap:calc(var(--wgt-spacing)*2)}.wgt\:gap-3{gap:calc(var(--wgt-spacing)*3)}.wgt\:gap-4{gap:calc(var(--wgt-spacing)*4)}.wgt\:gap-6{gap:calc(var(--wgt-spacing)*6)}.wgt\:gap-8{gap:calc(var(--wgt-spacing)*8)}.wgt\:gap-10{gap:calc(var(--wgt-spacing)*10)}:where(.wgt\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wgt-spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wgt-spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.wgt\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--wgt-spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--wgt-spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.wgt\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wgt\:overflow-auto{overflow:auto}.wgt\:overflow-hidden{overflow:hidden}.wgt\:rounded{border-radius:.25rem}.wgt\:rounded-2xl{border-radius:var(--wgt-radius-2xl)}.wgt\:rounded-3xl{border-radius:var(--wgt-radius-3xl)}.wgt\:rounded-\[10px\]{border-radius:10px}.wgt\:rounded-full{border-radius:3.40282e38px}.wgt\:rounded-lg{border-radius:var(--wgt-radius-lg)}.wgt\:rounded-md{border-radius:var(--wgt-radius-md)}.wgt\:rounded-xl{border-radius:var(--wgt-radius-xl)}.wgt\:border{border-style:var(--tw-border-style);border-width:1px}.wgt\:border-2{border-style:var(--tw-border-style);border-width:2px}.wgt\:border-dashed{--tw-border-style:dashed;border-style:dashed}.wgt\:border-\[\#E1E4EA\]{border-color:#e1e4ea}.wgt\:border-\[\#E4E7EC\]{border-color:#e4e7ec}.wgt\:border-border-light{border-color:var(--wgt-color-border-light)}.wgt\:border-gray-300{border-color:var(--wgt-color-gray-300)}.wgt\:border-gray-400{border-color:var(--wgt-color-gray-400)}.wgt\:border-green-500{border-color:var(--wgt-color-green-500)}.wgt\:border-grey-6{border-color:var(--wgt-color-grey-6)}.wgt\:border-primary{border-color:var(--wgt-color-primary)}.wgt\:border-red-500{border-color:var(--wgt-color-red-500)}.wgt\:border-soft-200{border-color:var(--wgt-color-soft-200)}.wgt\:bg-black{background-color:var(--wgt-color-black)}.wgt\:bg-border-light{background-color:var(--wgt-color-border-light)}.wgt\:bg-gray-50{background-color:var(--wgt-color-gray-50)}.wgt\:bg-gray-100{background-color:var(--wgt-color-gray-100)}.wgt\:bg-green-50{background-color:var(--wgt-color-green-50)}.wgt\:bg-green-500{background-color:var(--wgt-color-green-500)}.wgt\:bg-icon-primary{background-color:var(--wgt-color-icon-primary)}.wgt\:bg-icon-soft-400{background-color:var(--wgt-color-icon-soft-400)}.wgt\:bg-primary,.wgt\:bg-primary\/10{background-color:var(--wgt-color-primary)}@supports (color:color-mix(in lab,red,red)){.wgt\:bg-primary\/10{background-color:color-mix(in oklab,var(--wgt-color-primary)10%,transparent)}}.wgt\:bg-primary\/16{background-color:var(--wgt-color-primary)}@supports (color:color-mix(in lab,red,red)){.wgt\:bg-primary\/16{background-color:color-mix(in oklab,var(--wgt-color-primary)16%,transparent)}}.wgt\:bg-transparent{background-color:#0000}.wgt\:bg-weak-50{background-color:var(--wgt-color-weak-50)}.wgt\:bg-white{background-color:var(--wgt-color-white)}.wgt\:object-contain{-o-object-fit:contain;object-fit:contain}.wgt\:p-2{padding:calc(var(--wgt-spacing)*2)}.wgt\:p-4{padding:calc(var(--wgt-spacing)*4)}.wgt\:p-6{padding:calc(var(--wgt-spacing)*6)}.wgt\:px-3{padding-inline:calc(var(--wgt-spacing)*3)}.wgt\:px-4{padding-inline:calc(var(--wgt-spacing)*4)}.wgt\:px-6{padding-inline:calc(var(--wgt-spacing)*6)}.wgt\:px-10{padding-inline:calc(var(--wgt-spacing)*10)}.wgt\:py-1{padding-block:calc(var(--wgt-spacing)*1)}.wgt\:py-2{padding-block:calc(var(--wgt-spacing)*2)}.wgt\:py-4{padding-block:calc(var(--wgt-spacing)*4)}.wgt\:py-5{padding-block:calc(var(--wgt-spacing)*5)}.wgt\:py-8{padding-block:calc(var(--wgt-spacing)*8)}.wgt\:pt-4{padding-top:calc(var(--wgt-spacing)*4)}.wgt\:pr-9{padding-right:calc(var(--wgt-spacing)*9)}.wgt\:pb-6{padding-bottom:calc(var(--wgt-spacing)*6)}.wgt\:text-center{text-align:center}.wgt\:text-2xl{font-size:var(--wgt-text-2xl);line-height:var(--tw-leading,var(--wgt-text-2xl--line-height))}.wgt\:text-base{font-size:var(--wgt-text-base);line-height:var(--tw-leading,var(--wgt-text-base--line-height))}.wgt\:text-lg{font-size:var(--wgt-text-lg);line-height:var(--tw-leading,var(--wgt-text-lg--line-height))}.wgt\:text-sm{font-size:var(--wgt-text-sm);line-height:var(--tw-leading,var(--wgt-text-sm--line-height))}.wgt\:text-xl{font-size:var(--wgt-text-xl);line-height:var(--tw-leading,var(--wgt-text-xl--line-height))}.wgt\:text-xs{font-size:var(--wgt-text-xs);line-height:var(--tw-leading,var(--wgt-text-xs--line-height))}.wgt\:text-\[28px\]{font-size:28px}.wgt\:leading-5{--tw-leading:calc(var(--wgt-spacing)*5);line-height:calc(var(--wgt-spacing)*5)}.wgt\:leading-6{--tw-leading:calc(var(--wgt-spacing)*6);line-height:calc(var(--wgt-spacing)*6)}.wgt\:leading-\[18px\]{--tw-leading:18px;line-height:18px}.wgt\:leading-\[30px\]{--tw-leading:30px;line-height:30px}.wgt\:font-bold{--tw-font-weight:var(--wgt-font-weight-bold);font-weight:var(--wgt-font-weight-bold)}.wgt\:font-medium{--tw-font-weight:var(--wgt-font-weight-medium);font-weight:var(--wgt-font-weight-medium)}.wgt\:font-normal{--tw-font-weight:var(--wgt-font-weight-normal);font-weight:var(--wgt-font-weight-normal)}.wgt\:font-semibold{--tw-font-weight:var(--wgt-font-weight-semibold);font-weight:var(--wgt-font-weight-semibold)}.wgt\:whitespace-nowrap{white-space:nowrap}.wgt\:\!text-primary{color:var(--wgt-color-primary)!important}.wgt\:text-\[\#475467\]{color:#475467}.wgt\:text-\[\#ED1C24\]{color:#ed1c24}.wgt\:text-black{color:var(--wgt-color-black)}.wgt\:text-gray-500{color:var(--wgt-color-gray-500)}.wgt\:text-gray-600{color:var(--wgt-color-gray-600)}.wgt\:text-gray-700{color:var(--wgt-color-gray-700)}.wgt\:text-gray-800{color:var(--wgt-color-gray-800)}.wgt\:text-gray-900{color:var(--wgt-color-gray-900)}.wgt\:text-green-700{color:var(--wgt-color-green-700)}.wgt\:text-grey-8{color:var(--wgt-color-grey-8)}.wgt\:text-primary{color:var(--wgt-color-primary)}.wgt\:text-primary-dark{color:var(--wgt-color-primary-dark)}.wgt\:text-red-500{color:var(--wgt-color-red-500)}.wgt\:text-soft-400{color:var(--wgt-color-soft-400)}.wgt\:text-strong-950{color:var(--wgt-color-strong-950)}.wgt\:text-text-black{color:var(--wgt-color-text-black)}.wgt\:text-white{color:var(--wgt-color-white)}.wgt\:uppercase{text-transform:uppercase}.wgt\:underline{text-decoration-line:underline}.wgt\:placeholder-gray-400::-moz-placeholder{color:var(--wgt-color-gray-400)}.wgt\:placeholder-gray-400::placeholder{color:var(--wgt-color-gray-400)}.wgt\:shadow-\[0px_1px_8px_0px_rgba\(82\,88\,102\,0\.06\)\]{--tw-shadow:0px 1px 8px 0px var(--tw-shadow-color,#5258660f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.wgt\:shadow-\[0px_2px_6px_0px_rgba\(31\,34\,41\,0\.04\)\]{--tw-shadow:0px 2px 6px 0px var(--tw-shadow-color,#1f22290a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.wgt\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.wgt\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--wgt-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wgt-default-transition-duration))}.wgt\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--wgt-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wgt-default-transition-duration))}.wgt\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wgt-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wgt-default-transition-duration))}.wgt\:duration-200{--tw-duration:.2s;transition-duration:.2s}.wgt\:duration-250{--tw-duration:.25s;transition-duration:.25s}@media (hover:hover){.wgt\:hover\:border-gray-300:hover{border-color:var(--wgt-color-gray-300)}.wgt\:hover\:bg-gray-50:hover{background-color:var(--wgt-color-gray-50)}.wgt\:hover\:bg-gray-100:hover{background-color:var(--wgt-color-gray-100)}.wgt\:hover\:bg-primary-dark:hover{background-color:var(--wgt-color-primary-dark)}.wgt\:hover\:bg-transparent:hover{background-color:#0000}}.wgt\:focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.wgt\:focus\:ring-blue-500:focus{--tw-ring-color:var(--wgt-color-blue-500)}.wgt\:focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.wgt\:disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.wgt\:disabled\:opacity-50:disabled{opacity:.5}@media (min-width:48rem){.wgt\:md\:w-1\/2{width:50%}.wgt\:md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wgt\:md\:flex-row{flex-direction:row}.wgt\:md\:gap-20{gap:calc(var(--wgt-spacing)*20)}}}.heading{text-color:var(--color-text-black);font-size:14px;font-weight:600}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}
package/package.json CHANGED
@@ -28,10 +28,14 @@
28
28
  "license": "MIT",
29
29
  "main": "dist/index.umd.js",
30
30
  "module": "dist/index.esm.js",
31
+ "style": "dist/widget.css",
31
32
  "exports": {
32
33
  ".": {
33
34
  "import": "./dist/index.esm.js",
34
35
  "require": "./dist/index.umd.js"
36
+ },
37
+ "./dist/widget.css": {
38
+ "default": "./dist/widget.css"
35
39
  }
36
40
  },
37
41
  "name": "@invoice-sdk/widget",
@@ -41,5 +45,5 @@
41
45
  "prepare": "npm run build"
42
46
  },
43
47
  "type": "module",
44
- "version": "1.3.0"
48
+ "version": "1.4.0"
45
49
  }