@anpayeras/agnostic-checkout 0.1.4 → 0.1.6
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.cjs +3 -2
- package/dist/index.js +141 -140
- package/package.json +4 -8
- package/dist/style.css +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('/*! tailwindcss v4.2.1 | 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-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking: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-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size: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-orange-500:oklch(70.5% .213 47.604);--color-emerald-400:oklch(76.5% .177 163.223);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-700:oklch(45.7% .24 277.023);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-900:oklch(20.8% .042 265.755);--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-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--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-primary:var(--ac-primary,#6366f1);--color-background:var(--ac-background,#f8fafc);--color-surface:var(--ac-surface,#fff);--color-text:var(--ac-text,#0f172a);--color-border:var(--ac-border,#e2e8f0);--color-success:var(--ac-success,#22c55e);--color-error:var(--ac-error,#ef4444);--radius-DEFAULT:var(--ac-radius,.75rem)}}@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;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}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::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}::-webkit-calendar-picker-indicator{line-height:1}:-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{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.mx-auto{margin-inline:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.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-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-auto{margin-top:auto}.-mr-1{margin-right:calc(var(--spacing) * -1)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-20{height:calc(var(--spacing) * 20)}.h-56{height:calc(var(--spacing) * 56)}.h-\\[80vh\\]{height:80vh}.h-full{height:100%}.max-h-0{max-height:calc(var(--spacing) * 0)}.max-h-52{max-height:calc(var(--spacing) * 52)}.max-h-\\[70vh\\]{max-height:70vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-20{width:calc(var(--spacing) * 20)}.w-80{width:calc(var(--spacing) * 80)}.w-\\[320px\\]{width:320px}.w-full{width:100%}.w-px{width:1px}.max-w-\\[280px\\]{max-width:280px}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border\\/30>:not(:last-child)){border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){:where(.divide-border\\/30>:not(:last-child)){border-color:color-mix(in oklab,var(--color-border) 30%,transparent)}}:where(.divide-border\\/40>:not(:last-child)){border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){:where(.divide-border\\/40>:not(:last-child)){border-color:color-mix(in oklab,var(--color-border) 40%,transparent)}}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\(--theme-radius\\){border-radius:var(--theme-radius)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[var\\(--radius-DEFAULT\\)\\]{border-radius:var(--radius-DEFAULT)}.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)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-\\[var\\(--radius-DEFAULT\\)\\]{border-top-left-radius:var(--radius-DEFAULT);border-top-right-radius:var(--radius-DEFAULT)}.rounded-b-\\[var\\(--radius-DEFAULT\\)\\]{border-bottom-right-radius:var(--radius-DEFAULT);border-bottom-left-radius:var(--radius-DEFAULT)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-border,.border-border\\/30{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.border-border\\/30{border-color:color-mix(in oklab,var(--color-border) 30%,transparent)}}.border-border\\/40{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.border-border\\/40{border-color:color-mix(in oklab,var(--color-border) 40%,transparent)}}.border-border\\/50{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.border-border\\/50{border-color:color-mix(in oklab,var(--color-border) 50%,transparent)}}.border-border\\/60{border-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.border-border\\/60{border-color:color-mix(in oklab,var(--color-border) 60%,transparent)}}.border-primary,.border-primary\\/20{border-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\\/20{border-color:color-mix(in oklab,var(--color-primary) 20%,transparent)}}.border-success\\/20{border-color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.border-success\\/20{border-color:color-mix(in oklab,var(--color-success) 20%,transparent)}}.border-surface\\/30{border-color:var(--color-surface)}@supports (color:color-mix(in lab,red,red)){.border-surface\\/30{border-color:color-mix(in oklab,var(--color-surface) 30%,transparent)}}.border-text\\/20{border-color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.border-text\\/20{border-color:color-mix(in oklab,var(--color-text) 20%,transparent)}}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.border-t-surface{border-top-color:var(--color-surface)}.bg-background,.bg-background\\/30{background-color:var(--color-background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/30{background-color:color-mix(in oklab,var(--color-background) 30%,transparent)}}.bg-background\\/50{background-color:var(--color-background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/50{background-color:color-mix(in oklab,var(--color-background) 50%,transparent)}}.bg-background\\/60{background-color:var(--color-background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/60{background-color:color-mix(in oklab,var(--color-background) 60%,transparent)}}.bg-background\\/80{background-color:var(--color-background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/80{background-color:color-mix(in oklab,var(--color-background) 80%,transparent)}}.bg-border\\/60{background-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.bg-border\\/60{background-color:color-mix(in oklab,var(--color-border) 60%,transparent)}}.bg-error\\/10{background-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.bg-error\\/10{background-color:color-mix(in oklab,var(--color-error) 10%,transparent)}}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-orange-500\\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-primary,.bg-primary\\/5{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/5{background-color:color-mix(in oklab,var(--color-primary) 5%,transparent)}}.bg-primary\\/10{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/10{background-color:color-mix(in oklab,var(--color-primary) 10%,transparent)}}.bg-primary\\/40{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/40{background-color:color-mix(in oklab,var(--color-primary) 40%,transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-success\\/10{background-color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.bg-success\\/10{background-color:color-mix(in oklab,var(--color-success) 10%,transparent)}}.bg-surface{background-color:var(--color-surface)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.object-cover{object-fit:cover}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\\.5{padding:calc(var(--spacing) * 3.5)}.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-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.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-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.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-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-border{color:var(--color-border)}.text-emerald-400{color:var(--color-emerald-400)}.text-error{color:var(--color-error)}.text-indigo-700{color:var(--color-indigo-700)}.text-orange-500{color:var(--color-orange-500)}.text-primary{color:var(--color-primary)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-success{color:var(--color-success)}.text-surface,.text-surface\\/60{color:var(--color-surface)}@supports (color:color-mix(in lab,red,red)){.text-surface\\/60{color:color-mix(in oklab,var(--color-surface) 60%,transparent)}}.text-text,.text-text\\/20{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/20{color:color-mix(in oklab,var(--color-text) 20%,transparent)}}.text-text\\/30{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/30{color:color-mix(in oklab,var(--color-text) 30%,transparent)}}.text-text\\/40{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/40{color:color-mix(in oklab,var(--color-text) 40%,transparent)}}.text-text\\/50{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/50{color:color-mix(in oklab,var(--color-text) 50%,transparent)}}.text-text\\/60{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/60{color:color-mix(in oklab,var(--color-text) 60%,transparent)}}.text-text\\/70{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/70{color:color-mix(in oklab,var(--color-text) 70%,transparent)}}.text-text\\/80{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/80{color:color-mix(in oklab,var(--color-text) 80%,transparent)}}.text-text\\/90{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.text-text\\/90{color:color-mix(in oklab,var(--color-text) 90%,transparent)}}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.accent-indigo-500{accent-color:var(--color-indigo-500)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_-4px_20px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow:0 -4px 20px 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)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px 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)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px 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)}.shadow-none{--tw-shadow:0 0 #0000;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)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.shadow-primary\\/20{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.shadow-primary\\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-primary{--tw-ring-color:var(--color-primary)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;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-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.placeholder\\:text-text\\/30::placeholder{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-text\\/30::placeholder{color:color-mix(in oklab,var(--color-text) 30%,transparent)}}.placeholder\\:text-text\\/40::placeholder{color:var(--color-text)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-text\\/40::placeholder{color:color-mix(in oklab,var(--color-text) 40%,transparent)}}.focus-within\\:border-primary:focus-within,.focus-within\\:border-primary\\/50:focus-within{border-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.focus-within\\:border-primary\\/50:focus-within{border-color:color-mix(in oklab,var(--color-primary) 50%,transparent)}}.focus-within\\:ring-2:focus-within{--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-within\\:ring-primary\\/5:focus-within{--tw-ring-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.focus-within\\:ring-primary\\/5:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-primary) 5%, transparent)}}.focus-within\\:ring-primary\\/20:focus-within{--tw-ring-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.focus-within\\:ring-primary\\/20:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-primary) 20%, transparent)}}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:border-primary\\/50:hover{border-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:border-primary\\/50:hover{border-color:color-mix(in oklab,var(--color-primary) 50%,transparent)}}.hover\\:bg-background:hover{background-color:var(--color-background)}.hover\\:bg-border\\/30:hover{background-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-border\\/30:hover{background-color:color-mix(in oklab,var(--color-border) 30%,transparent)}}.hover\\:bg-border\\/50:hover{background-color:var(--color-border)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-border\\/50:hover{background-color:color-mix(in oklab,var(--color-border) 50%,transparent)}}.hover\\:bg-error\\/10:hover{background-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-error\\/10:hover{background-color:color-mix(in oklab,var(--color-error) 10%,transparent)}}.hover\\:bg-primary\\/5:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/5:hover{background-color:color-mix(in oklab,var(--color-primary) 5%,transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:text-error:hover{color:var(--color-error)}.hover\\:text-primary:hover{color:var(--color-primary)}.hover\\:text-text:hover{color:var(--color-text)}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:48rem){.md\\:block{display:block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-full{height:100%}.md\\:flex-row{flex-direction:row}}}@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-divide-y-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-tracking{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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
2
|
import { jsx as s, jsxs as m, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import Et, { forwardRef as Ke, createElement as
|
|
3
|
+
import Et, { forwardRef as Ke, createElement as he, useState as z, createContext as ye, useReducer as Pt, useEffect as Ze, useCallback as et, useContext as ve, useMemo as At, Fragment as tt } from "react";
|
|
3
4
|
function J(e) {
|
|
4
5
|
const t = e.replace("#", ""), o = t.length === 3 ? t.split("").map((r) => r + r).join("") : t;
|
|
5
6
|
return {
|
|
@@ -124,15 +125,15 @@ function De(e, t) {
|
|
|
124
125
|
}
|
|
125
126
|
function Dt(e) {
|
|
126
127
|
return {
|
|
127
|
-
"--
|
|
128
|
-
"--
|
|
129
|
-
"--
|
|
130
|
-
"--
|
|
131
|
-
"--
|
|
132
|
-
"--
|
|
133
|
-
"--
|
|
134
|
-
"--
|
|
135
|
-
"--
|
|
128
|
+
"--ac-primary": e.colors.primary,
|
|
129
|
+
"--ac-background": e.colors.background,
|
|
130
|
+
"--ac-surface": e.colors.surface,
|
|
131
|
+
"--ac-text": e.colors.text,
|
|
132
|
+
"--ac-border": e.colors.border,
|
|
133
|
+
"--ac-success": e.colors.success,
|
|
134
|
+
"--ac-error": e.colors.error,
|
|
135
|
+
"--ac-radius": e.radius,
|
|
136
|
+
"--ac-font": e.fontFamily
|
|
136
137
|
};
|
|
137
138
|
}
|
|
138
139
|
function Ot(e) {
|
|
@@ -168,14 +169,14 @@ const st = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t
|
|
|
168
169
|
* This source code is licensed under the ISC license.
|
|
169
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
170
171
|
*/
|
|
171
|
-
const
|
|
172
|
+
const Ft = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
172
173
|
/**
|
|
173
174
|
* @license lucide-react v0.575.0 - ISC
|
|
174
175
|
*
|
|
175
176
|
* This source code is licensed under the ISC license.
|
|
176
177
|
* See the LICENSE file in the root directory of this source tree.
|
|
177
178
|
*/
|
|
178
|
-
const
|
|
179
|
+
const jt = (e) => e.replace(
|
|
179
180
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
180
181
|
(t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
181
182
|
);
|
|
@@ -186,7 +187,7 @@ const Ft = (e) => e.replace(
|
|
|
186
187
|
* See the LICENSE file in the root directory of this source tree.
|
|
187
188
|
*/
|
|
188
189
|
const Oe = (e) => {
|
|
189
|
-
const t =
|
|
190
|
+
const t = jt(e);
|
|
190
191
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
191
192
|
};
|
|
192
193
|
/**
|
|
@@ -234,7 +235,7 @@ const Gt = Ke(
|
|
|
234
235
|
children: l,
|
|
235
236
|
iconNode: i,
|
|
236
237
|
...c
|
|
237
|
-
}, a) =>
|
|
238
|
+
}, a) => he(
|
|
238
239
|
"svg",
|
|
239
240
|
{
|
|
240
241
|
ref: a,
|
|
@@ -248,7 +249,7 @@ const Gt = Ke(
|
|
|
248
249
|
...c
|
|
249
250
|
},
|
|
250
251
|
[
|
|
251
|
-
...i.map(([d,
|
|
252
|
+
...i.map(([d, h]) => he(d, h)),
|
|
252
253
|
...Array.isArray(l) ? l : [l]
|
|
253
254
|
]
|
|
254
255
|
)
|
|
@@ -261,11 +262,11 @@ const Gt = Ke(
|
|
|
261
262
|
*/
|
|
262
263
|
const E = (e, t) => {
|
|
263
264
|
const o = Ke(
|
|
264
|
-
({ className: r, ...n }, l) =>
|
|
265
|
+
({ className: r, ...n }, l) => he(Gt, {
|
|
265
266
|
ref: l,
|
|
266
267
|
iconNode: t,
|
|
267
268
|
className: st(
|
|
268
|
-
`lucide-${
|
|
269
|
+
`lucide-${Ft(Oe(e))}`,
|
|
269
270
|
`lucide-${e}`,
|
|
270
271
|
r
|
|
271
272
|
),
|
|
@@ -408,14 +409,14 @@ const mr = [["path", { d: "M5 12h14", key: "1ays0h" }]], ur = E("minus", mr);
|
|
|
408
409
|
const pr = [
|
|
409
410
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
410
411
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
411
|
-
],
|
|
412
|
+
], fr = E("plus", pr);
|
|
412
413
|
/**
|
|
413
414
|
* @license lucide-react v0.575.0 - ISC
|
|
414
415
|
*
|
|
415
416
|
* This source code is licensed under the ISC license.
|
|
416
417
|
* See the LICENSE file in the root directory of this source tree.
|
|
417
418
|
*/
|
|
418
|
-
const
|
|
419
|
+
const hr = [
|
|
419
420
|
[
|
|
420
421
|
"path",
|
|
421
422
|
{
|
|
@@ -424,7 +425,7 @@ const fr = [
|
|
|
424
425
|
}
|
|
425
426
|
],
|
|
426
427
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
427
|
-
], br = E("shield-check",
|
|
428
|
+
], br = E("shield-check", hr);
|
|
428
429
|
/**
|
|
429
430
|
* @license lucide-react v0.575.0 - ISC
|
|
430
431
|
*
|
|
@@ -469,7 +470,7 @@ const vr = [
|
|
|
469
470
|
}
|
|
470
471
|
],
|
|
471
472
|
["path", { d: "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4", key: "xoc0q4" }]
|
|
472
|
-
],
|
|
473
|
+
], Fe = E("wallet", vr);
|
|
473
474
|
/**
|
|
474
475
|
* @license lucide-react v0.575.0 - ISC
|
|
475
476
|
*
|
|
@@ -479,7 +480,7 @@ const vr = [
|
|
|
479
480
|
const wr = [
|
|
480
481
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
481
482
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
482
|
-
], kr = E("x", wr),
|
|
483
|
+
], kr = E("x", wr), je = ({ onApply: e, t, compact: o }) => {
|
|
483
484
|
const [r, n] = z(""), [l, i] = z("idle"), c = () => {
|
|
484
485
|
r.trim() && (i("loading"), e(r.trim()), n(""), setTimeout(() => i("idle"), 500));
|
|
485
486
|
}, a = l === "loading" || !r.trim();
|
|
@@ -524,7 +525,7 @@ function Wo(e) {
|
|
|
524
525
|
id: "discount",
|
|
525
526
|
slots: {
|
|
526
527
|
sidebarBeforeTotals: ({ step: t, t: o }) => t !== "review" ? null : /* @__PURE__ */ s("div", { className: "mb-6", children: /* @__PURE__ */ s(
|
|
527
|
-
|
|
528
|
+
je,
|
|
528
529
|
{
|
|
529
530
|
onApply: (r) => e({ type: "COUPON_APPLY_REQUESTED", code: r }),
|
|
530
531
|
t: o,
|
|
@@ -532,7 +533,7 @@ function Wo(e) {
|
|
|
532
533
|
}
|
|
533
534
|
) }),
|
|
534
535
|
mobileBarExpanded: ({ step: t, t: o }) => t !== "review" ? null : /* @__PURE__ */ s("div", { className: "mb-3 pb-3 border-b border-border/40", children: /* @__PURE__ */ s(
|
|
535
|
-
|
|
536
|
+
je,
|
|
536
537
|
{
|
|
537
538
|
onApply: (r) => e({ type: "COUPON_APPLY_REQUESTED", code: r }),
|
|
538
539
|
t: o
|
|
@@ -568,7 +569,7 @@ const Cr = ({ quantity: e, min: t, max: o, loading: r, onChange: n }) => /* @__P
|
|
|
568
569
|
onClick: () => n(e + 1),
|
|
569
570
|
disabled: r || e >= o,
|
|
570
571
|
className: "w-8 h-8 flex items-center justify-center text-text/60 hover:bg-border/30 rounded-lg transition-colors disabled:opacity-30",
|
|
571
|
-
children: /* @__PURE__ */ s(
|
|
572
|
+
children: /* @__PURE__ */ s(fr, { className: "w-3.5 h-3.5" })
|
|
572
573
|
}
|
|
573
574
|
)
|
|
574
575
|
] }),
|
|
@@ -637,7 +638,7 @@ function Ho(e, t) {
|
|
|
637
638
|
}
|
|
638
639
|
};
|
|
639
640
|
}
|
|
640
|
-
const at =
|
|
641
|
+
const at = ye(null), Ar = (e, t) => {
|
|
641
642
|
switch (t.type) {
|
|
642
643
|
case "SET_STEP":
|
|
643
644
|
return { ...e, step: t.step };
|
|
@@ -673,14 +674,14 @@ const at = ve(null), Ar = (e, t) => {
|
|
|
673
674
|
const [i, c] = Et.useState([]), a = et(
|
|
674
675
|
(d) => {
|
|
675
676
|
r == null || r(d), c(
|
|
676
|
-
(
|
|
677
|
+
(h) => [`[${(/* @__PURE__ */ new Date()).toLocaleTimeString()}] ${d.type}`, ...h].slice(0, 20)
|
|
677
678
|
);
|
|
678
679
|
},
|
|
679
680
|
[r]
|
|
680
681
|
);
|
|
681
682
|
return /* @__PURE__ */ s(at.Provider, { value: { state: n, dispatch: l, emitEvent: a, eventLog: i }, children: e });
|
|
682
683
|
}, ke = () => {
|
|
683
|
-
const e =
|
|
684
|
+
const e = ve(at);
|
|
684
685
|
if (!e)
|
|
685
686
|
throw new Error("useCheckoutContext must be used within a CheckoutProvider");
|
|
686
687
|
return e;
|
|
@@ -819,9 +820,9 @@ const Mr = (e, t) => {
|
|
|
819
820
|
return;
|
|
820
821
|
const c = t === 0 ? e.join(ie) : e.slice(t).join(ie), a = i.length;
|
|
821
822
|
for (let d = 0; d < a; d++) {
|
|
822
|
-
const
|
|
823
|
-
if (
|
|
824
|
-
return
|
|
823
|
+
const h = i[d];
|
|
824
|
+
if (h.validator(c))
|
|
825
|
+
return h.classGroupId;
|
|
825
826
|
}
|
|
826
827
|
}, Dr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
827
828
|
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
@@ -843,11 +844,11 @@ const Mr = (e, t) => {
|
|
|
843
844
|
const n = e.length;
|
|
844
845
|
for (let l = 0; l < n; l++) {
|
|
845
846
|
const i = e[l];
|
|
846
|
-
|
|
847
|
+
Fr(i, t, o, r);
|
|
847
848
|
}
|
|
848
|
-
},
|
|
849
|
+
}, Fr = (e, t, o, r) => {
|
|
849
850
|
if (typeof e == "string") {
|
|
850
|
-
|
|
851
|
+
jr(e, t, o);
|
|
851
852
|
return;
|
|
852
853
|
}
|
|
853
854
|
if (typeof e == "function") {
|
|
@@ -855,7 +856,7 @@ const Mr = (e, t) => {
|
|
|
855
856
|
return;
|
|
856
857
|
}
|
|
857
858
|
Br(e, t, o, r);
|
|
858
|
-
},
|
|
859
|
+
}, jr = (e, t, o) => {
|
|
859
860
|
const r = e === "" ? t : dt(t, e);
|
|
860
861
|
r.classGroupId = o;
|
|
861
862
|
}, $r = (e, t, o, r) => {
|
|
@@ -917,8 +918,8 @@ const Mr = (e, t) => {
|
|
|
917
918
|
let r = (n) => {
|
|
918
919
|
const l = [];
|
|
919
920
|
let i = 0, c = 0, a = 0, d;
|
|
920
|
-
const
|
|
921
|
-
for (let g = 0; g <
|
|
921
|
+
const h = n.length;
|
|
922
|
+
for (let g = 0; g < h; g++) {
|
|
922
923
|
const k = n[g];
|
|
923
924
|
if (i === 0 && c === 0) {
|
|
924
925
|
if (k === Be) {
|
|
@@ -983,25 +984,25 @@ const Mr = (e, t) => {
|
|
|
983
984
|
} = t, i = [], c = e.trim().split(Wr);
|
|
984
985
|
let a = "";
|
|
985
986
|
for (let d = c.length - 1; d >= 0; d -= 1) {
|
|
986
|
-
const
|
|
987
|
+
const h = c[d], {
|
|
987
988
|
isExternal: N,
|
|
988
989
|
modifiers: y,
|
|
989
990
|
hasImportantModifier: v,
|
|
990
991
|
baseClassName: w,
|
|
991
992
|
maybePostfixModifierPosition: g
|
|
992
|
-
} = o(
|
|
993
|
+
} = o(h);
|
|
993
994
|
if (N) {
|
|
994
|
-
a =
|
|
995
|
+
a = h + (a.length > 0 ? " " + a : a);
|
|
995
996
|
continue;
|
|
996
997
|
}
|
|
997
998
|
let k = !!g, O = r(k ? w.substring(0, g) : w);
|
|
998
999
|
if (!O) {
|
|
999
1000
|
if (!k) {
|
|
1000
|
-
a =
|
|
1001
|
+
a = h + (a.length > 0 ? " " + a : a);
|
|
1001
1002
|
continue;
|
|
1002
1003
|
}
|
|
1003
1004
|
if (O = r(w), !O) {
|
|
1004
|
-
a =
|
|
1005
|
+
a = h + (a.length > 0 ? " " + a : a);
|
|
1005
1006
|
continue;
|
|
1006
1007
|
}
|
|
1007
1008
|
k = !1;
|
|
@@ -1015,7 +1016,7 @@ const Mr = (e, t) => {
|
|
|
1015
1016
|
const H = Q[B];
|
|
1016
1017
|
i.push(R + H);
|
|
1017
1018
|
}
|
|
1018
|
-
a =
|
|
1019
|
+
a = h + (a.length > 0 ? " " + a : a);
|
|
1019
1020
|
}
|
|
1020
1021
|
return a;
|
|
1021
1022
|
}, Xr = (...e) => {
|
|
@@ -1033,32 +1034,32 @@ const Mr = (e, t) => {
|
|
|
1033
1034
|
}, Jr = (e, ...t) => {
|
|
1034
1035
|
let o, r, n, l;
|
|
1035
1036
|
const i = (a) => {
|
|
1036
|
-
const d = t.reduce((
|
|
1037
|
+
const d = t.reduce((h, N) => N(h), e());
|
|
1037
1038
|
return o = Yr(d), r = o.cache.get, n = o.cache.set, l = c, c(a);
|
|
1038
1039
|
}, c = (a) => {
|
|
1039
1040
|
const d = r(a);
|
|
1040
1041
|
if (d)
|
|
1041
1042
|
return d;
|
|
1042
|
-
const
|
|
1043
|
-
return n(a,
|
|
1043
|
+
const h = Hr(a, o);
|
|
1044
|
+
return n(a, h), h;
|
|
1044
1045
|
};
|
|
1045
1046
|
return l = i, (...a) => l(Xr(...a));
|
|
1046
1047
|
}, Kr = [], S = (e) => {
|
|
1047
1048
|
const t = (o) => o[e] || Kr;
|
|
1048
1049
|
return t.isThemeGetter = !0, t;
|
|
1049
|
-
}, ut = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, pt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Zr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, to = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ro = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, oo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, so = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
1050
|
+
}, ut = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, pt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Zr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, to = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ro = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, oo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, so = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, F = (e) => Zr.test(e), x = (e) => !!e && !Number.isNaN(Number(e)), j = (e) => !!e && Number.isInteger(Number(e)), fe = (e) => e.endsWith("%") && x(e.slice(0, -1)), D = (e) => eo.test(e), ft = () => !0, no = (e) => (
|
|
1050
1051
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1051
1052
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1052
1053
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1053
1054
|
to.test(e) && !ro.test(e)
|
|
1054
|
-
), Ce = () => !1, ao = (e) => oo.test(e), io = (e) => so.test(e), lo = (e) => !u(e) && !p(e), co = (e) => $(e, gt, Ce), u = (e) => ut.test(e), U = (e) => $(e, xt, no), Ue = (e) => $(e, xo, x), mo = (e) => $(e, vt,
|
|
1055
|
+
), Ce = () => !1, ao = (e) => oo.test(e), io = (e) => so.test(e), lo = (e) => !u(e) && !p(e), co = (e) => $(e, gt, Ce), u = (e) => ut.test(e), U = (e) => $(e, xt, no), Ue = (e) => $(e, xo, x), mo = (e) => $(e, vt, ft), uo = (e) => $(e, yt, Ce), Ve = (e) => $(e, ht, Ce), po = (e) => $(e, bt, io), ne = (e) => $(e, wt, ao), p = (e) => pt.test(e), X = (e) => q(e, xt), fo = (e) => q(e, yt), qe = (e) => q(e, ht), ho = (e) => q(e, gt), bo = (e) => q(e, bt), ae = (e) => q(e, wt, !0), go = (e) => q(e, vt, !0), $ = (e, t, o) => {
|
|
1055
1056
|
const r = ut.exec(e);
|
|
1056
1057
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1057
1058
|
}, q = (e, t, o = !1) => {
|
|
1058
1059
|
const r = pt.exec(e);
|
|
1059
1060
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
1060
|
-
},
|
|
1061
|
-
const e = S("color"), t = S("font"), o = S("text"), r = S("font-weight"), n = S("tracking"), l = S("leading"), i = S("breakpoint"), c = S("container"), a = S("spacing"), d = S("radius"),
|
|
1061
|
+
}, ht = (e) => e === "position" || e === "percentage", bt = (e) => e === "image" || e === "url", gt = (e) => e === "length" || e === "size" || e === "bg-size", xt = (e) => e === "length", xo = (e) => e === "number", yt = (e) => e === "family-name", vt = (e) => e === "number" || e === "weight", wt = (e) => e === "shadow", yo = () => {
|
|
1062
|
+
const e = S("color"), t = S("font"), o = S("text"), r = S("font-weight"), n = S("tracking"), l = S("leading"), i = S("breakpoint"), c = S("container"), a = S("spacing"), d = S("radius"), h = S("shadow"), N = S("inset-shadow"), y = S("text-shadow"), v = S("drop-shadow"), w = S("blur"), g = S("perspective"), k = S("aspect"), O = S("ease"), C = S("animate"), R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [
|
|
1062
1063
|
"center",
|
|
1063
1064
|
"top",
|
|
1064
1065
|
"bottom",
|
|
@@ -1076,15 +1077,15 @@ const Mr = (e, t) => {
|
|
|
1076
1077
|
"bottom-left",
|
|
1077
1078
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1078
1079
|
"left-bottom"
|
|
1079
|
-
], Q = () => [...L(), p, u], B = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"],
|
|
1080
|
-
span: ["full",
|
|
1081
|
-
},
|
|
1080
|
+
], Q = () => [...L(), p, u], B = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], f = () => [p, u, a], M = () => [F, "full", "auto", ...f()], Ee = () => [j, "none", "subgrid", p, u], Pe = () => ["auto", {
|
|
1081
|
+
span: ["full", j, p, u]
|
|
1082
|
+
}, j, p, u], ee = () => [j, "auto", p, u], Ae = () => ["auto", "min", "max", "fr", p, u], ce = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...f()], G = () => [F, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], de = () => [F, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...f()], me = () => [F, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...f()], b = () => [e, p, u], Te = () => [...L(), qe, Ve, {
|
|
1082
1083
|
position: [p, u]
|
|
1083
1084
|
}], Re = () => ["no-repeat", {
|
|
1084
1085
|
repeat: ["", "x", "y", "space", "round"]
|
|
1085
|
-
}], Me = () => ["auto", "cover", "contain",
|
|
1086
|
+
}], Me = () => ["auto", "cover", "contain", ho, co, {
|
|
1086
1087
|
size: [p, u]
|
|
1087
|
-
}], ue = () => [
|
|
1088
|
+
}], ue = () => [fe, X, U], A = () => [
|
|
1088
1089
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1089
1090
|
"",
|
|
1090
1091
|
"none",
|
|
@@ -1092,14 +1093,14 @@ const Mr = (e, t) => {
|
|
|
1092
1093
|
d,
|
|
1093
1094
|
p,
|
|
1094
1095
|
u
|
|
1095
|
-
], T = () => ["", x, X, U], te = () => ["solid", "dashed", "dotted", "double"], _e = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => [x,
|
|
1096
|
+
], T = () => ["", x, X, U], te = () => ["solid", "dashed", "dotted", "double"], _e = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => [x, fe, qe, Ve], Ie = () => [
|
|
1096
1097
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1097
1098
|
"",
|
|
1098
1099
|
"none",
|
|
1099
1100
|
w,
|
|
1100
1101
|
p,
|
|
1101
1102
|
u
|
|
1102
|
-
], re = () => ["none", x, p, u], oe = () => ["none", x, p, u], pe = () => [x, p, u], se = () => [
|
|
1103
|
+
], re = () => ["none", x, p, u], oe = () => ["none", x, p, u], pe = () => [x, p, u], se = () => [F, "full", ...f()];
|
|
1103
1104
|
return {
|
|
1104
1105
|
cacheSize: 500,
|
|
1105
1106
|
theme: {
|
|
@@ -1107,7 +1108,7 @@ const Mr = (e, t) => {
|
|
|
1107
1108
|
aspect: ["video"],
|
|
1108
1109
|
blur: [D],
|
|
1109
1110
|
breakpoint: [D],
|
|
1110
|
-
color: [
|
|
1111
|
+
color: [ft],
|
|
1111
1112
|
container: [D],
|
|
1112
1113
|
"drop-shadow": [D],
|
|
1113
1114
|
ease: ["in", "out", "in-out"],
|
|
@@ -1132,7 +1133,7 @@ const Mr = (e, t) => {
|
|
|
1132
1133
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1133
1134
|
*/
|
|
1134
1135
|
aspect: [{
|
|
1135
|
-
aspect: ["auto", "square",
|
|
1136
|
+
aspect: ["auto", "square", F, u, p, k]
|
|
1136
1137
|
}],
|
|
1137
1138
|
/**
|
|
1138
1139
|
* Container
|
|
@@ -1371,7 +1372,7 @@ const Mr = (e, t) => {
|
|
|
1371
1372
|
* @see https://tailwindcss.com/docs/z-index
|
|
1372
1373
|
*/
|
|
1373
1374
|
z: [{
|
|
1374
|
-
z: [
|
|
1375
|
+
z: [j, "auto", p, u]
|
|
1375
1376
|
}],
|
|
1376
1377
|
// ------------------------
|
|
1377
1378
|
// --- Flexbox and Grid ---
|
|
@@ -1381,7 +1382,7 @@ const Mr = (e, t) => {
|
|
|
1381
1382
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1382
1383
|
*/
|
|
1383
1384
|
basis: [{
|
|
1384
|
-
basis: [
|
|
1385
|
+
basis: [F, "full", "auto", c, ...f()]
|
|
1385
1386
|
}],
|
|
1386
1387
|
/**
|
|
1387
1388
|
* Flex Direction
|
|
@@ -1402,7 +1403,7 @@ const Mr = (e, t) => {
|
|
|
1402
1403
|
* @see https://tailwindcss.com/docs/flex
|
|
1403
1404
|
*/
|
|
1404
1405
|
flex: [{
|
|
1405
|
-
flex: [x,
|
|
1406
|
+
flex: [x, F, "auto", "initial", "none", u]
|
|
1406
1407
|
}],
|
|
1407
1408
|
/**
|
|
1408
1409
|
* Flex Grow
|
|
@@ -1423,7 +1424,7 @@ const Mr = (e, t) => {
|
|
|
1423
1424
|
* @see https://tailwindcss.com/docs/order
|
|
1424
1425
|
*/
|
|
1425
1426
|
order: [{
|
|
1426
|
-
order: [
|
|
1427
|
+
order: [j, "first", "last", "none", p, u]
|
|
1427
1428
|
}],
|
|
1428
1429
|
/**
|
|
1429
1430
|
* Grid Template Columns
|
|
@@ -1507,21 +1508,21 @@ const Mr = (e, t) => {
|
|
|
1507
1508
|
* @see https://tailwindcss.com/docs/gap
|
|
1508
1509
|
*/
|
|
1509
1510
|
gap: [{
|
|
1510
|
-
gap:
|
|
1511
|
+
gap: f()
|
|
1511
1512
|
}],
|
|
1512
1513
|
/**
|
|
1513
1514
|
* Gap X
|
|
1514
1515
|
* @see https://tailwindcss.com/docs/gap
|
|
1515
1516
|
*/
|
|
1516
1517
|
"gap-x": [{
|
|
1517
|
-
"gap-x":
|
|
1518
|
+
"gap-x": f()
|
|
1518
1519
|
}],
|
|
1519
1520
|
/**
|
|
1520
1521
|
* Gap Y
|
|
1521
1522
|
* @see https://tailwindcss.com/docs/gap
|
|
1522
1523
|
*/
|
|
1523
1524
|
"gap-y": [{
|
|
1524
|
-
"gap-y":
|
|
1525
|
+
"gap-y": f()
|
|
1525
1526
|
}],
|
|
1526
1527
|
/**
|
|
1527
1528
|
* Justify Content
|
|
@@ -1596,77 +1597,77 @@ const Mr = (e, t) => {
|
|
|
1596
1597
|
* @see https://tailwindcss.com/docs/padding
|
|
1597
1598
|
*/
|
|
1598
1599
|
p: [{
|
|
1599
|
-
p:
|
|
1600
|
+
p: f()
|
|
1600
1601
|
}],
|
|
1601
1602
|
/**
|
|
1602
1603
|
* Padding Inline
|
|
1603
1604
|
* @see https://tailwindcss.com/docs/padding
|
|
1604
1605
|
*/
|
|
1605
1606
|
px: [{
|
|
1606
|
-
px:
|
|
1607
|
+
px: f()
|
|
1607
1608
|
}],
|
|
1608
1609
|
/**
|
|
1609
1610
|
* Padding Block
|
|
1610
1611
|
* @see https://tailwindcss.com/docs/padding
|
|
1611
1612
|
*/
|
|
1612
1613
|
py: [{
|
|
1613
|
-
py:
|
|
1614
|
+
py: f()
|
|
1614
1615
|
}],
|
|
1615
1616
|
/**
|
|
1616
1617
|
* Padding Inline Start
|
|
1617
1618
|
* @see https://tailwindcss.com/docs/padding
|
|
1618
1619
|
*/
|
|
1619
1620
|
ps: [{
|
|
1620
|
-
ps:
|
|
1621
|
+
ps: f()
|
|
1621
1622
|
}],
|
|
1622
1623
|
/**
|
|
1623
1624
|
* Padding Inline End
|
|
1624
1625
|
* @see https://tailwindcss.com/docs/padding
|
|
1625
1626
|
*/
|
|
1626
1627
|
pe: [{
|
|
1627
|
-
pe:
|
|
1628
|
+
pe: f()
|
|
1628
1629
|
}],
|
|
1629
1630
|
/**
|
|
1630
1631
|
* Padding Block Start
|
|
1631
1632
|
* @see https://tailwindcss.com/docs/padding
|
|
1632
1633
|
*/
|
|
1633
1634
|
pbs: [{
|
|
1634
|
-
pbs:
|
|
1635
|
+
pbs: f()
|
|
1635
1636
|
}],
|
|
1636
1637
|
/**
|
|
1637
1638
|
* Padding Block End
|
|
1638
1639
|
* @see https://tailwindcss.com/docs/padding
|
|
1639
1640
|
*/
|
|
1640
1641
|
pbe: [{
|
|
1641
|
-
pbe:
|
|
1642
|
+
pbe: f()
|
|
1642
1643
|
}],
|
|
1643
1644
|
/**
|
|
1644
1645
|
* Padding Top
|
|
1645
1646
|
* @see https://tailwindcss.com/docs/padding
|
|
1646
1647
|
*/
|
|
1647
1648
|
pt: [{
|
|
1648
|
-
pt:
|
|
1649
|
+
pt: f()
|
|
1649
1650
|
}],
|
|
1650
1651
|
/**
|
|
1651
1652
|
* Padding Right
|
|
1652
1653
|
* @see https://tailwindcss.com/docs/padding
|
|
1653
1654
|
*/
|
|
1654
1655
|
pr: [{
|
|
1655
|
-
pr:
|
|
1656
|
+
pr: f()
|
|
1656
1657
|
}],
|
|
1657
1658
|
/**
|
|
1658
1659
|
* Padding Bottom
|
|
1659
1660
|
* @see https://tailwindcss.com/docs/padding
|
|
1660
1661
|
*/
|
|
1661
1662
|
pb: [{
|
|
1662
|
-
pb:
|
|
1663
|
+
pb: f()
|
|
1663
1664
|
}],
|
|
1664
1665
|
/**
|
|
1665
1666
|
* Padding Left
|
|
1666
1667
|
* @see https://tailwindcss.com/docs/padding
|
|
1667
1668
|
*/
|
|
1668
1669
|
pl: [{
|
|
1669
|
-
pl:
|
|
1670
|
+
pl: f()
|
|
1670
1671
|
}],
|
|
1671
1672
|
/**
|
|
1672
1673
|
* Margin
|
|
@@ -1750,7 +1751,7 @@ const Mr = (e, t) => {
|
|
|
1750
1751
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1751
1752
|
*/
|
|
1752
1753
|
"space-x": [{
|
|
1753
|
-
"space-x":
|
|
1754
|
+
"space-x": f()
|
|
1754
1755
|
}],
|
|
1755
1756
|
/**
|
|
1756
1757
|
* Space Between X Reverse
|
|
@@ -1762,7 +1763,7 @@ const Mr = (e, t) => {
|
|
|
1762
1763
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1763
1764
|
*/
|
|
1764
1765
|
"space-y": [{
|
|
1765
|
-
"space-y":
|
|
1766
|
+
"space-y": f()
|
|
1766
1767
|
}],
|
|
1767
1768
|
/**
|
|
1768
1769
|
* Space Between Y Reverse
|
|
@@ -1912,14 +1913,14 @@ const Mr = (e, t) => {
|
|
|
1912
1913
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1913
1914
|
*/
|
|
1914
1915
|
"font-stretch": [{
|
|
1915
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1916
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", fe, u]
|
|
1916
1917
|
}],
|
|
1917
1918
|
/**
|
|
1918
1919
|
* Font Family
|
|
1919
1920
|
* @see https://tailwindcss.com/docs/font-family
|
|
1920
1921
|
*/
|
|
1921
1922
|
"font-family": [{
|
|
1922
|
-
font: [
|
|
1923
|
+
font: [fo, uo, t]
|
|
1923
1924
|
}],
|
|
1924
1925
|
/**
|
|
1925
1926
|
* Font Feature Settings
|
|
@@ -1980,7 +1981,7 @@ const Mr = (e, t) => {
|
|
|
1980
1981
|
leading: [
|
|
1981
1982
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1982
1983
|
l,
|
|
1983
|
-
...
|
|
1984
|
+
...f()
|
|
1984
1985
|
]
|
|
1985
1986
|
}],
|
|
1986
1987
|
/**
|
|
@@ -2081,7 +2082,7 @@ const Mr = (e, t) => {
|
|
|
2081
2082
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2082
2083
|
*/
|
|
2083
2084
|
indent: [{
|
|
2084
|
-
indent:
|
|
2085
|
+
indent: f()
|
|
2085
2086
|
}],
|
|
2086
2087
|
/**
|
|
2087
2088
|
* Vertical Alignment
|
|
@@ -2178,9 +2179,9 @@ const Mr = (e, t) => {
|
|
|
2178
2179
|
bg: ["none", {
|
|
2179
2180
|
linear: [{
|
|
2180
2181
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2181
|
-
},
|
|
2182
|
+
}, j, p, u],
|
|
2182
2183
|
radial: ["", p, u],
|
|
2183
|
-
conic: [
|
|
2184
|
+
conic: [j, p, u]
|
|
2184
2185
|
}, bo, po]
|
|
2185
2186
|
}],
|
|
2186
2187
|
/**
|
|
@@ -2579,7 +2580,7 @@ const Mr = (e, t) => {
|
|
|
2579
2580
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2580
2581
|
"",
|
|
2581
2582
|
"none",
|
|
2582
|
-
|
|
2583
|
+
h,
|
|
2583
2584
|
ae,
|
|
2584
2585
|
ne
|
|
2585
2586
|
]
|
|
@@ -3073,21 +3074,21 @@ const Mr = (e, t) => {
|
|
|
3073
3074
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3074
3075
|
*/
|
|
3075
3076
|
"border-spacing": [{
|
|
3076
|
-
"border-spacing":
|
|
3077
|
+
"border-spacing": f()
|
|
3077
3078
|
}],
|
|
3078
3079
|
/**
|
|
3079
3080
|
* Border Spacing X
|
|
3080
3081
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3081
3082
|
*/
|
|
3082
3083
|
"border-spacing-x": [{
|
|
3083
|
-
"border-spacing-x":
|
|
3084
|
+
"border-spacing-x": f()
|
|
3084
3085
|
}],
|
|
3085
3086
|
/**
|
|
3086
3087
|
* Border Spacing Y
|
|
3087
3088
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3088
3089
|
*/
|
|
3089
3090
|
"border-spacing-y": [{
|
|
3090
|
-
"border-spacing-y":
|
|
3091
|
+
"border-spacing-y": f()
|
|
3091
3092
|
}],
|
|
3092
3093
|
/**
|
|
3093
3094
|
* Table Layout
|
|
@@ -3379,154 +3380,154 @@ const Mr = (e, t) => {
|
|
|
3379
3380
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3380
3381
|
*/
|
|
3381
3382
|
"scroll-m": [{
|
|
3382
|
-
"scroll-m":
|
|
3383
|
+
"scroll-m": f()
|
|
3383
3384
|
}],
|
|
3384
3385
|
/**
|
|
3385
3386
|
* Scroll Margin Inline
|
|
3386
3387
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3387
3388
|
*/
|
|
3388
3389
|
"scroll-mx": [{
|
|
3389
|
-
"scroll-mx":
|
|
3390
|
+
"scroll-mx": f()
|
|
3390
3391
|
}],
|
|
3391
3392
|
/**
|
|
3392
3393
|
* Scroll Margin Block
|
|
3393
3394
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3394
3395
|
*/
|
|
3395
3396
|
"scroll-my": [{
|
|
3396
|
-
"scroll-my":
|
|
3397
|
+
"scroll-my": f()
|
|
3397
3398
|
}],
|
|
3398
3399
|
/**
|
|
3399
3400
|
* Scroll Margin Inline Start
|
|
3400
3401
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3401
3402
|
*/
|
|
3402
3403
|
"scroll-ms": [{
|
|
3403
|
-
"scroll-ms":
|
|
3404
|
+
"scroll-ms": f()
|
|
3404
3405
|
}],
|
|
3405
3406
|
/**
|
|
3406
3407
|
* Scroll Margin Inline End
|
|
3407
3408
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3408
3409
|
*/
|
|
3409
3410
|
"scroll-me": [{
|
|
3410
|
-
"scroll-me":
|
|
3411
|
+
"scroll-me": f()
|
|
3411
3412
|
}],
|
|
3412
3413
|
/**
|
|
3413
3414
|
* Scroll Margin Block Start
|
|
3414
3415
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3415
3416
|
*/
|
|
3416
3417
|
"scroll-mbs": [{
|
|
3417
|
-
"scroll-mbs":
|
|
3418
|
+
"scroll-mbs": f()
|
|
3418
3419
|
}],
|
|
3419
3420
|
/**
|
|
3420
3421
|
* Scroll Margin Block End
|
|
3421
3422
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3422
3423
|
*/
|
|
3423
3424
|
"scroll-mbe": [{
|
|
3424
|
-
"scroll-mbe":
|
|
3425
|
+
"scroll-mbe": f()
|
|
3425
3426
|
}],
|
|
3426
3427
|
/**
|
|
3427
3428
|
* Scroll Margin Top
|
|
3428
3429
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3429
3430
|
*/
|
|
3430
3431
|
"scroll-mt": [{
|
|
3431
|
-
"scroll-mt":
|
|
3432
|
+
"scroll-mt": f()
|
|
3432
3433
|
}],
|
|
3433
3434
|
/**
|
|
3434
3435
|
* Scroll Margin Right
|
|
3435
3436
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3436
3437
|
*/
|
|
3437
3438
|
"scroll-mr": [{
|
|
3438
|
-
"scroll-mr":
|
|
3439
|
+
"scroll-mr": f()
|
|
3439
3440
|
}],
|
|
3440
3441
|
/**
|
|
3441
3442
|
* Scroll Margin Bottom
|
|
3442
3443
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3443
3444
|
*/
|
|
3444
3445
|
"scroll-mb": [{
|
|
3445
|
-
"scroll-mb":
|
|
3446
|
+
"scroll-mb": f()
|
|
3446
3447
|
}],
|
|
3447
3448
|
/**
|
|
3448
3449
|
* Scroll Margin Left
|
|
3449
3450
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3450
3451
|
*/
|
|
3451
3452
|
"scroll-ml": [{
|
|
3452
|
-
"scroll-ml":
|
|
3453
|
+
"scroll-ml": f()
|
|
3453
3454
|
}],
|
|
3454
3455
|
/**
|
|
3455
3456
|
* Scroll Padding
|
|
3456
3457
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3457
3458
|
*/
|
|
3458
3459
|
"scroll-p": [{
|
|
3459
|
-
"scroll-p":
|
|
3460
|
+
"scroll-p": f()
|
|
3460
3461
|
}],
|
|
3461
3462
|
/**
|
|
3462
3463
|
* Scroll Padding Inline
|
|
3463
3464
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3464
3465
|
*/
|
|
3465
3466
|
"scroll-px": [{
|
|
3466
|
-
"scroll-px":
|
|
3467
|
+
"scroll-px": f()
|
|
3467
3468
|
}],
|
|
3468
3469
|
/**
|
|
3469
3470
|
* Scroll Padding Block
|
|
3470
3471
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3471
3472
|
*/
|
|
3472
3473
|
"scroll-py": [{
|
|
3473
|
-
"scroll-py":
|
|
3474
|
+
"scroll-py": f()
|
|
3474
3475
|
}],
|
|
3475
3476
|
/**
|
|
3476
3477
|
* Scroll Padding Inline Start
|
|
3477
3478
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3478
3479
|
*/
|
|
3479
3480
|
"scroll-ps": [{
|
|
3480
|
-
"scroll-ps":
|
|
3481
|
+
"scroll-ps": f()
|
|
3481
3482
|
}],
|
|
3482
3483
|
/**
|
|
3483
3484
|
* Scroll Padding Inline End
|
|
3484
3485
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3485
3486
|
*/
|
|
3486
3487
|
"scroll-pe": [{
|
|
3487
|
-
"scroll-pe":
|
|
3488
|
+
"scroll-pe": f()
|
|
3488
3489
|
}],
|
|
3489
3490
|
/**
|
|
3490
3491
|
* Scroll Padding Block Start
|
|
3491
3492
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3492
3493
|
*/
|
|
3493
3494
|
"scroll-pbs": [{
|
|
3494
|
-
"scroll-pbs":
|
|
3495
|
+
"scroll-pbs": f()
|
|
3495
3496
|
}],
|
|
3496
3497
|
/**
|
|
3497
3498
|
* Scroll Padding Block End
|
|
3498
3499
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3499
3500
|
*/
|
|
3500
3501
|
"scroll-pbe": [{
|
|
3501
|
-
"scroll-pbe":
|
|
3502
|
+
"scroll-pbe": f()
|
|
3502
3503
|
}],
|
|
3503
3504
|
/**
|
|
3504
3505
|
* Scroll Padding Top
|
|
3505
3506
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3506
3507
|
*/
|
|
3507
3508
|
"scroll-pt": [{
|
|
3508
|
-
"scroll-pt":
|
|
3509
|
+
"scroll-pt": f()
|
|
3509
3510
|
}],
|
|
3510
3511
|
/**
|
|
3511
3512
|
* Scroll Padding Right
|
|
3512
3513
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3513
3514
|
*/
|
|
3514
3515
|
"scroll-pr": [{
|
|
3515
|
-
"scroll-pr":
|
|
3516
|
+
"scroll-pr": f()
|
|
3516
3517
|
}],
|
|
3517
3518
|
/**
|
|
3518
3519
|
* Scroll Padding Bottom
|
|
3519
3520
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3520
3521
|
*/
|
|
3521
3522
|
"scroll-pb": [{
|
|
3522
|
-
"scroll-pb":
|
|
3523
|
+
"scroll-pb": f()
|
|
3523
3524
|
}],
|
|
3524
3525
|
/**
|
|
3525
3526
|
* Scroll Padding Left
|
|
3526
3527
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3527
3528
|
*/
|
|
3528
3529
|
"scroll-pl": [{
|
|
3529
|
-
"scroll-pl":
|
|
3530
|
+
"scroll-pl": f()
|
|
3530
3531
|
}],
|
|
3531
3532
|
/**
|
|
3532
3533
|
* Scroll Snap Align
|
|
@@ -3695,8 +3696,8 @@ const ge = (e) => e === "payment_method" || e === "payment_details", xe = (e) =>
|
|
|
3695
3696
|
return /* @__PURE__ */ s(
|
|
3696
3697
|
"div",
|
|
3697
3698
|
{
|
|
3698
|
-
style: l,
|
|
3699
|
-
className: "bg-background text-text
|
|
3699
|
+
style: { ...l, fontFamily: "var(--ac-font)" },
|
|
3700
|
+
className: "bg-background text-text h-full w-full",
|
|
3700
3701
|
children: r
|
|
3701
3702
|
}
|
|
3702
3703
|
);
|
|
@@ -3856,18 +3857,18 @@ function Ao(e, t) {
|
|
|
3856
3857
|
const o = Po(e);
|
|
3857
3858
|
return t ? { ...o, ...t } : o;
|
|
3858
3859
|
}
|
|
3859
|
-
const Ct =
|
|
3860
|
+
const Ct = ye(null), To = ({ locale: e, currency: t, messages: o, formatters: r, children: n }) => {
|
|
3860
3861
|
const l = Ao(e, o), i = r != null && r.currency ? r.currency : (c) => wo(c, t);
|
|
3861
3862
|
return /* @__PURE__ */ s(Ct.Provider, { value: { t: l, fmt: i }, children: n });
|
|
3862
3863
|
}, W = () => {
|
|
3863
|
-
const e =
|
|
3864
|
+
const e = ve(Ct);
|
|
3864
3865
|
if (!e)
|
|
3865
3866
|
throw new Error("useI18n must be used within an I18nProvider");
|
|
3866
3867
|
return e;
|
|
3867
|
-
}, St =
|
|
3868
|
+
}, St = ye({ plugins: [] }), Ro = ({ plugins: e, children: t }) => {
|
|
3868
3869
|
const o = At(() => ({ plugins: e }), [e]);
|
|
3869
3870
|
return /* @__PURE__ */ s(St.Provider, { value: o, children: t });
|
|
3870
|
-
}, Se = () =>
|
|
3871
|
+
}, Se = () => ve(St);
|
|
3871
3872
|
function le(e, t, o) {
|
|
3872
3873
|
return e.filter((r) => r.slots[t]).map((r) => {
|
|
3873
3874
|
const n = r.slots[t];
|
|
@@ -3885,7 +3886,7 @@ const We = () => {
|
|
|
3885
3886
|
return /* @__PURE__ */ m("div", { className: "flex flex-col h-full animate-in fade-in slide-in-from-bottom-4 duration-500 overflow-hidden", children: [
|
|
3886
3887
|
/* @__PURE__ */ s("h2", { className: "text-xl font-bold mb-6 shrink-0", children: o.orderSummary }),
|
|
3887
3888
|
/* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto pr-3 custom-scrollbar flex flex-col divide-y divide-border/30", children: e.map((a) => {
|
|
3888
|
-
const d = !!a.discount,
|
|
3889
|
+
const d = !!a.discount, h = { ...c, item: a };
|
|
3889
3890
|
return /* @__PURE__ */ m(
|
|
3890
3891
|
"div",
|
|
3891
3892
|
{
|
|
@@ -3901,7 +3902,7 @@ const We = () => {
|
|
|
3901
3902
|
),
|
|
3902
3903
|
/* @__PURE__ */ m("div", { className: "flex-1 min-w-0", children: [
|
|
3903
3904
|
/* @__PURE__ */ s("span", { className: "font-bold text-lg text-text/90 block truncate leading-tight mb-1", children: a.name }),
|
|
3904
|
-
l ? Ye(n, "orderItemActions",
|
|
3905
|
+
l ? Ye(n, "orderItemActions", h) : /* @__PURE__ */ m("span", { className: "text-sm text-text/40 mt-1 block font-semibold uppercase tracking-wider", children: [
|
|
3905
3906
|
o.quantityShort,
|
|
3906
3907
|
": ",
|
|
3907
3908
|
a.quantity
|
|
@@ -3912,7 +3913,7 @@ const We = () => {
|
|
|
3912
3913
|
] })
|
|
3913
3914
|
] }),
|
|
3914
3915
|
/* @__PURE__ */ m("div", { className: "flex flex-col items-end gap-2 shrink-0", children: [
|
|
3915
|
-
i && Ye(n, "orderItemEnd",
|
|
3916
|
+
i && Ye(n, "orderItemEnd", h),
|
|
3916
3917
|
d ? /* @__PURE__ */ m("div", { className: I("flex flex-col items-end", i ? "" : "mt-1"), children: [
|
|
3917
3918
|
/* @__PURE__ */ s("span", { className: "text-xs line-through text-text/30 font-medium tracking-tight", children: r(a.unitPrice * a.quantity) }),
|
|
3918
3919
|
/* @__PURE__ */ s("span", { className: "text-lg font-black text-success tracking-tight", children: r(a.total) })
|
|
@@ -3929,14 +3930,14 @@ const We = () => {
|
|
|
3929
3930
|
case "card":
|
|
3930
3931
|
return /* @__PURE__ */ s(nr, { className: "w-5 h-5" });
|
|
3931
3932
|
case "wallet":
|
|
3932
|
-
return /* @__PURE__ */ s(
|
|
3933
|
+
return /* @__PURE__ */ s(Fe, { className: "w-5 h-5" });
|
|
3933
3934
|
case "bank":
|
|
3934
3935
|
return /* @__PURE__ */ s(cr, { className: "w-5 h-5" });
|
|
3935
3936
|
default:
|
|
3936
|
-
return /* @__PURE__ */ s(
|
|
3937
|
+
return /* @__PURE__ */ s(Fe, { className: "w-5 h-5" });
|
|
3937
3938
|
}
|
|
3938
3939
|
}, _o = () => {
|
|
3939
|
-
const { paymentMethods: e, selectedMethodId: t, selectMethod: o, setStep: r, submitPayment: n, totals: l, error: i } = Z(), { t: c, fmt: a } = W(), [d,
|
|
3940
|
+
const { paymentMethods: e, selectedMethodId: t, selectMethod: o, setStep: r, submitPayment: n, totals: l, error: i } = Z(), { t: c, fmt: a } = W(), [d, h] = z(!1), [N, y] = z({}), v = e.find((C) => C.id === t), w = v ? v.renderComponent ? !!N[v.id] : !0 : !1, g = (C) => {
|
|
3940
3941
|
o(C);
|
|
3941
3942
|
}, k = et(
|
|
3942
3943
|
(C) => (R) => {
|
|
@@ -3949,7 +3950,7 @@ const We = () => {
|
|
|
3949
3950
|
{
|
|
3950
3951
|
id: "checkout-payment-form",
|
|
3951
3952
|
onSubmit: async (C) => {
|
|
3952
|
-
C.preventDefault(), !(!t || !w) && (
|
|
3953
|
+
C.preventDefault(), !(!t || !w) && (h(!0), await n({ methodId: t }), h(!1));
|
|
3953
3954
|
},
|
|
3954
3955
|
className: "flex flex-col gap-3 animate-in fade-in slide-in-from-right-4 duration-500",
|
|
3955
3956
|
children: [
|
|
@@ -4076,7 +4077,7 @@ const We = () => {
|
|
|
4076
4077
|
return Ze(() => {
|
|
4077
4078
|
if (r !== "redirect") return;
|
|
4078
4079
|
if (i <= 0) {
|
|
4079
|
-
const d = o.find((
|
|
4080
|
+
const d = o.find((h) => !h.variant || h.variant === "solid");
|
|
4080
4081
|
d == null || d.onPress();
|
|
4081
4082
|
return;
|
|
4082
4083
|
}
|
|
@@ -4183,7 +4184,7 @@ const We = () => {
|
|
|
4183
4184
|
pending: "⏳ Pendiente",
|
|
4184
4185
|
error: "❌ Error",
|
|
4185
4186
|
redirect: "↗️ Redirect"
|
|
4186
|
-
},
|
|
4187
|
+
}, Fo = () => {
|
|
4187
4188
|
const { state: e, eventLog: t } = ke(), [o, r] = z(!1), [n, l] = z("success");
|
|
4188
4189
|
return /* @__PURE__ */ m(K, { children: [
|
|
4189
4190
|
/* @__PURE__ */ s(
|
|
@@ -4250,8 +4251,8 @@ const We = () => {
|
|
|
4250
4251
|
}
|
|
4251
4252
|
)
|
|
4252
4253
|
] });
|
|
4253
|
-
},
|
|
4254
|
-
const { items: o, totals: r, step: n, setStep: l, selectedMethodId: i } = Z(), { t: c, fmt: a } = W(), { plugins: d } = Se(),
|
|
4254
|
+
}, jo = ({ showItems: e, isLoading: t }) => {
|
|
4255
|
+
const { items: o, totals: r, step: n, setStep: l, selectedMethodId: i } = Z(), { t: c, fmt: a } = W(), { plugins: d } = Se(), h = e ?? n !== "review", N = () => {
|
|
4255
4256
|
if (n === "review")
|
|
4256
4257
|
l("payment_method");
|
|
4257
4258
|
else {
|
|
@@ -4261,7 +4262,7 @@ const We = () => {
|
|
|
4261
4262
|
}, y = n === "review" ? c.continueToPay : c.payNow, v = n === "review" || !!i, w = { items: o, totals: r, step: n, t: c, fmt: a }, g = d.some((k) => k.slots.totalsDiscountAction);
|
|
4262
4263
|
return /* @__PURE__ */ m("div", { className: "flex flex-col h-full animate-in fade-in duration-500", children: [
|
|
4263
4264
|
/* @__PURE__ */ s("h3", { className: "text-xs font-bold text-text/40 uppercase tracking-widest mb-6", children: c.orderSummaryTitle }),
|
|
4264
|
-
|
|
4265
|
+
h && /* @__PURE__ */ s("div", { className: "flex flex-col gap-4 overflow-y-auto pr-2 custom-scrollbar", children: o.map((k) => /* @__PURE__ */ m("div", { className: "flex items-start gap-3", children: [
|
|
4265
4266
|
k.image && /* @__PURE__ */ s(
|
|
4266
4267
|
"img",
|
|
4267
4268
|
{
|
|
@@ -4336,7 +4337,7 @@ const We = () => {
|
|
|
4336
4337
|
isSubmitting: r,
|
|
4337
4338
|
showItems: n = !1
|
|
4338
4339
|
}) => {
|
|
4339
|
-
const { totals: l, items: i, step: c } = Z(), { t: a, fmt: d } = W(), { plugins:
|
|
4340
|
+
const { totals: l, items: i, step: c } = Z(), { t: a, fmt: d } = W(), { plugins: h } = Se(), [N, y] = z(!1), v = { items: i, totals: l, step: c, t: a, fmt: d }, w = h.some((g) => g.slots.totalsDiscountAction);
|
|
4340
4341
|
return /* @__PURE__ */ m("div", { className: "fixed bottom-0 left-0 right-0 z-30 md:hidden", children: [
|
|
4341
4342
|
/* @__PURE__ */ s(
|
|
4342
4343
|
"div",
|
|
@@ -4369,7 +4370,7 @@ const We = () => {
|
|
|
4369
4370
|
/* @__PURE__ */ s("span", { className: "text-sm font-semibold text-success", children: d(g.total) })
|
|
4370
4371
|
] }) : /* @__PURE__ */ s("span", { className: "text-sm font-medium", children: d(g.total) }) })
|
|
4371
4372
|
] }, g.id)) }),
|
|
4372
|
-
le(
|
|
4373
|
+
le(h, "mobileBarExpanded", v),
|
|
4373
4374
|
/* @__PURE__ */ m("div", { className: `flex flex-col gap-1.5 text-sm pb-3 ${n ? "border-t border-border/50 pt-3" : "pt-1"}`, children: [
|
|
4374
4375
|
/* @__PURE__ */ m("div", { className: "flex justify-between text-text/60", children: [
|
|
4375
4376
|
/* @__PURE__ */ s("span", { children: a.subtotal }),
|
|
@@ -4380,7 +4381,7 @@ const We = () => {
|
|
|
4380
4381
|
/* @__PURE__ */ m("span", { className: "flex items-center gap-1.5", children: [
|
|
4381
4382
|
"-",
|
|
4382
4383
|
d(l.discount),
|
|
4383
|
-
w && le(
|
|
4384
|
+
w && le(h, "totalsDiscountAction", v)
|
|
4384
4385
|
] })
|
|
4385
4386
|
] }),
|
|
4386
4387
|
l.shipping !== void 0 && /* @__PURE__ */ m("div", { className: "flex justify-between text-text/60", children: [
|
|
@@ -4474,14 +4475,14 @@ const We = () => {
|
|
|
4474
4475
|
}
|
|
4475
4476
|
);
|
|
4476
4477
|
case "redirect": {
|
|
4477
|
-
const d = (n == null ? void 0 : n.status) === "redirect" ? n : void 0,
|
|
4478
|
+
const d = (n == null ? void 0 : n.status) === "redirect" ? n : void 0, h = d == null ? void 0 : d.feedback;
|
|
4478
4479
|
return /* @__PURE__ */ s(
|
|
4479
4480
|
Xe,
|
|
4480
4481
|
{
|
|
4481
4482
|
variant: "redirect",
|
|
4482
|
-
title: (
|
|
4483
|
-
description: (
|
|
4484
|
-
actions: (
|
|
4483
|
+
title: (h == null ? void 0 : h.title) ?? o.redirecting,
|
|
4484
|
+
description: (h == null ? void 0 : h.description) ?? o.redirectDescription,
|
|
4485
|
+
actions: (h == null ? void 0 : h.actions) ?? [
|
|
4485
4486
|
{
|
|
4486
4487
|
label: o.continueNow,
|
|
4487
4488
|
variant: "solid",
|
|
@@ -4498,9 +4499,9 @@ const We = () => {
|
|
|
4498
4499
|
}
|
|
4499
4500
|
};
|
|
4500
4501
|
return /* @__PURE__ */ m("div", { className: "h-[80vh] md:h-full w-full flex flex-col", children: [
|
|
4501
|
-
/* @__PURE__ */ s(Do, { sidebar: xe(r) || ge(r) ? /* @__PURE__ */ s(
|
|
4502
|
+
/* @__PURE__ */ s(Do, { sidebar: xe(r) || ge(r) ? /* @__PURE__ */ s(jo, {}) : void 0, children: l() }),
|
|
4502
4503
|
(xe(r) || ge(r)) && /* @__PURE__ */ s($o, { step: r }),
|
|
4503
|
-
e && /* @__PURE__ */ s(
|
|
4504
|
+
e && /* @__PURE__ */ s(Fo, {})
|
|
4504
4505
|
] });
|
|
4505
4506
|
}, Xo = ({
|
|
4506
4507
|
items: e,
|
|
@@ -4513,7 +4514,7 @@ const We = () => {
|
|
|
4513
4514
|
brandColor: c,
|
|
4514
4515
|
customTheme: a,
|
|
4515
4516
|
onEvent: d,
|
|
4516
|
-
cartController:
|
|
4517
|
+
cartController: h,
|
|
4517
4518
|
initialState: N,
|
|
4518
4519
|
devTools: y,
|
|
4519
4520
|
messages: v,
|
|
@@ -4522,7 +4523,7 @@ const We = () => {
|
|
|
4522
4523
|
}) => /* @__PURE__ */ s(ko, { theme: i, brandColor: c, customTheme: a, children: /* @__PURE__ */ s(To, { locale: l, currency: n, messages: v, formatters: w, children: /* @__PURE__ */ s(Ro, { plugins: g, children: /* @__PURE__ */ s(
|
|
4523
4524
|
Tr,
|
|
4524
4525
|
{
|
|
4525
|
-
config: { items: e, totals: t, paymentMethods: o, provider: r, currency: n, locale: l, cartController:
|
|
4526
|
+
config: { items: e, totals: t, paymentMethods: o, provider: r, currency: n, locale: l, cartController: h },
|
|
4526
4527
|
initialStatus: N,
|
|
4527
4528
|
onEvent: d,
|
|
4528
4529
|
children: /* @__PURE__ */ s(Bo, { devTools: y })
|