"use strict";var e=require("react/jsx-runtime"),x=require("../icons/ico-checkmark-circle-fill.js");require("react"),require("../../lib/cn.js"),require("../feedback/callout.js");var v=require("../feedback/loading-spinner.js");require("../primitives/button.js"),require("../primitives/checkbox.js"),require("../primitives/dropdown-selector.js"),require("../primitives/popover.js"),require("../primitives/radio.js"),require("../primitives/segmented-control.js"),require("../primitives/switch.js");var p=require("../primitives/text.js");require("../primitives/portal.js"),require("../../hooks/useToast.js"),require("../feedback/tooltip.js"),require("../inputs/phone-input.js");var f=require("../inputs/pincode-input.js");require("../inputs/text-input.js");var n=require("create-slots");const t=n.createSlot(({children:r})=>r),j=r=>{const{isPending:s,isSuccess:o,onChange:u,onComplete:a,originName:c,pinLength:l,id:d,autoFocus:q,errorMessage:i,children:g}=r,h=()=>s?e.jsx(v.LoadingSpinner,{size:36,strokeWidth:4}):o?e.jsx(x.default,{color:"var(--color-brand-base)",width:36,height:36}):e.jsx(f.PinCodeInput,{originName:c,onChange:u,pinLength:l,onComplete:a,id:d,autoFocus:q});return n.createHost(g,m=>e.jsxs("div",{className:"flex flex-col gap-3 my-3",children:[e.jsx("div",{className:"flex items-center justify-center h-12",children:h()}),i&&e.jsx(p.default,{variant:"error",size:"sm",styles:{textAlign:"center"},children:i}),m.get(t)]}))},C=Object.assign(j,{RetryContent:t});exports.VerifyPincode=C;
//# sourceMappingURL=verify-pincode.js.map
