{"version":3,"sources":["../../registry/new-york/ui/input-otp.tsx","../../../../node_modules/.pnpm/@radix-ui+react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/src/DashIcon.tsx","../../lib/utils.ts"],"names":["input_otp_exports","__export","InputOTP","InputOTPGroup","InputOTPSeparator","InputOTPSlot","__toCommonJS","React","DashIcon","_ref","forwardedRef","color","_ref$color","props","width","height","viewBox","fill","xmlns","ref","d","fillRule","clipRule","import_input_otp","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","className","containerClassName","index","inputOTPContext","char","hasFakeCaret","isActive"],"mappings":";;;;;;;0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,EAAA,kBAAAC,EAAA,sBAAAC,EAAA,iBAAAC,IAAA,eAAAC,EAAAN,GAEA,IAAAO,EAAuB,sMCCVC,KAAWD,cACtB,SAAAE,EAAuCC,EAAvC,SAAGC,MAAAA,EAAAA,IAAAA,OAAQ,eAAAC,EAAmBC,EAAAA,EAAAA,EAAAA,CAAAA,EAC5B,SACEN,iBAAA,MAAA,OAAA,OAAA,CACEO,MAAM,KACNC,OAAO,KACPC,QAAQ,YACRC,KAAK,OACLC,MAAM,8BACFL,EAAAA,CACJM,IAAKT,OAELH,iBAAA,OAAA,CACEa,EAAE,6HACFH,KAAMN,EACNU,SAAS,UACTC,SAAS,UAJX,CATF,CAiBH,CApBqB,EDCxB,IAAAC,EAA0C,qBEH1C,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CFME,IAAAC,EAAA,6BAJI1B,EAAiB,aAGrB,CAAC,CAAE,UAAA2B,EAAW,mBAAAC,EAAoB,GAAGjB,CAAM,EAAGM,OAC9C,OAAC,YACC,IAAKA,EACL,mBAAoBO,EAClB,qDACAI,CACF,EACA,UAAWJ,EAAG,8BAA+BG,CAAS,EACrD,GAAGhB,EACN,CACD,EACDX,EAAS,YAAc,WAEvB,IAAMC,EAAsB,aAG1B,CAAC,CAAE,UAAA0B,EAAW,GAAGhB,CAAM,EAAGM,OAC1B,OAAC,OAAI,IAAKA,EAAK,UAAWO,EAAG,oBAAqBG,CAAS,EAAI,GAAGhB,EAAO,CAC1E,EACDV,EAAc,YAAc,gBAE5B,IAAME,EAAqB,aAGzB,CAAC,CAAE,MAAA0B,EAAO,UAAAF,EAAW,GAAGhB,CAAM,EAAGM,IAAQ,CACzC,IAAMa,EAAwB,aAAW,iBAAe,EAClD,CAAE,KAAAC,EAAM,aAAAC,EAAc,SAAAC,CAAS,EAAIH,EAAgB,MAAMD,CAAK,EAEpE,SACE,QAAC,OACC,IAAKZ,EACL,UAAWO,EACT,wKACAS,GAAY,wBACZN,CACF,EACC,GAAGhB,EAEH,UAAAoB,EACAC,MACC,OAAC,OAAI,UAAU,wEACb,mBAAC,OAAI,UAAU,2DAA2D,EAC5E,GAEJ,CAEJ,CAAC,EACD7B,EAAa,YAAc,eAE3B,IAAMD,EAA0B,aAG9B,CAAC,CAAE,GAAGS,CAAM,EAAGM,OACf,OAAC,OAAI,IAAKA,EAAK,KAAK,YAAa,GAAGN,EAClC,mBAACL,EAAA,EAAS,EACZ,CACD,EACDJ,EAAkB,YAAc","sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { DashIcon } from \"@radix-ui/react-icons\"\nimport { OTPInput, OTPInputContext } from \"input-otp\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst InputOTP = React.forwardRef<\n  React.ElementRef<typeof OTPInput>,\n  React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n  <OTPInput\n    ref={ref}\n    containerClassName={cn(\n      \"flex items-center gap-2 has-[:disabled]:opacity-50\",\n      containerClassName\n    )}\n    className={cn(\"disabled:cursor-not-allowed\", className)}\n    {...props}\n  />\n))\nInputOTP.displayName = \"InputOTP\"\n\nconst InputOTPGroup = React.forwardRef<\n  React.ElementRef<\"div\">,\n  React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"flex items-center\", className)} {...props} />\n))\nInputOTPGroup.displayName = \"InputOTPGroup\"\n\nconst InputOTPSlot = React.forwardRef<\n  React.ElementRef<\"div\">,\n  React.ComponentPropsWithoutRef<\"div\"> & { index: number }\n>(({ index, className, ...props }, ref) => {\n  const inputOTPContext = React.useContext(OTPInputContext)\n  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]\n\n  return (\n    <div\n      ref={ref}\n      className={cn(\n        \"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md\",\n        isActive && \"z-10 ring-1 ring-ring\",\n        className\n      )}\n      {...props}\n    >\n      {char}\n      {hasFakeCaret && (\n        <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n          <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n        </div>\n      )}\n    </div>\n  )\n})\nInputOTPSlot.displayName = \"InputOTPSlot\"\n\nconst InputOTPSeparator = React.forwardRef<\n  React.ElementRef<\"div\">,\n  React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n  <div ref={ref} role=\"separator\" {...props}>\n    <DashIcon />\n  </div>\n))\nInputOTPSeparator.displayName = \"InputOTPSeparator\"\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }\n","import * as React from 'react';\nimport { IconProps } from './types';\n\nexport const DashIcon = React.forwardRef<SVGSVGElement, IconProps>(\n  ({ color = 'currentColor', ...props }, forwardedRef) => {\n    return (\n      <svg\n        width=\"15\"\n        height=\"15\"\n        viewBox=\"0 0 15 15\"\n        fill=\"none\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n        {...props}\n        ref={forwardedRef}\n      >\n        <path\n          d=\"M5 7.5C5 7.22386 5.22386 7 5.5 7H9.5C9.77614 7 10 7.22386 10 7.5C10 7.77614 9.77614 8 9.5 8H5.5C5.22386 8 5 7.77614 5 7.5Z\"\n          fill={color}\n          fillRule=\"evenodd\"\n          clipRule=\"evenodd\"\n        />\n      </svg>\n    );\n  }\n);\n\nexport default DashIcon;\n","import * as React from \"react\"\nimport { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs))\n}\n\nexport function formatDate(input: string | number): string {\n  const date = new Date(input)\n  return date.toLocaleDateString(\"en-US\", {\n    month: \"long\",\n    day: \"numeric\",\n    year: \"numeric\",\n  })\n}\n\nexport function absoluteUrl(path: string) {\n  return `${process.env.NEXT_PUBLIC_APP_URL}${path}`\n}\n"]}