@swan-admin/swan-web-component 1.0.75 → 1.0.76

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.
@@ -0,0 +1,2 @@
1
+ import{useMemo as s}from"react";import{jsxs as t,jsx as e,Fragment as a}from"react/jsx-runtime";const o=t=>{const e="https://staging.scan.swanvision.ai/static/media/logo-icon-black.18f18f6cf0f9cd829f66d9b1d3a6e2f9.svg",a={base:{brandColor:"#5932F3",backgroundColor:"#FFFFFF",primaryColor:"#000000",secondaryColor:"#D9D9D9",baseTextColor:"#1E1E1E",baseFontSize:"16px",baseFontFamily:"'Inter', sans-serif"},logo:{logoWidth:"30px",logoHeight:"30px"},heading:{headingColor:"#000000",headingFontSize:"32px",headingFontWeight:"normal",headingFontFamily:"'SeriouslyNostalgic Fn', serif"},subheading:{subheadingColor:"#4b5563",subheadingFontSize:"14px",subheadingFontWeight:"normal",subheadingFontFamily:"'Inter', sans-serif"},button:{buttonBackground:"#220B12",buttonFontSize:"14px",buttonFontFamily:"'Inter', sans-serif",buttonDisabledBackground:"#D9D9D9",buttonDisabledTextColor:"#000000",buttonTextColor:"#FFFFFF",buttonBorderRadius:"9999px"},input:{inputBackgroundColor:"#F9FAFC",inputTextColor:"#000000",inputPlaceholderColor:"#000000",inputBorderColor:"#F9FAFC",inputFontSize:"14px",inputFontWeight:"500",inputBorderRadius:"8px",inputErrorColor:"#000000",inputErrorFontSize:"4px"}};return s(()=>({logo:t?.logo??e,loader:t?.loader||"",style:{...a,...t?.style||{}}}),[t])},i=({buttonFunc:s,prefix:a,postfixIcon:o,className:i="",buttonText:n,btnSecondary:l,loading:r=!1,disabled:p=!1,type:c="button",id:u="button",resolvedConfig:g,...d})=>t("button",{...d,id:u,type:c,disabled:p,onClick:s,className:`${i} flex min-h-[33px] gap-[5px] border-none cursor-pointer items-center shadow-[0_1px_1px_rgba(0,0,0,0.251)] justify-center [&_svg]:size-[16px] [&_svg]:shrink-0 rounded-[9999px] min-w-[120px] text-[14px] px-6 disabled:shadow-none py-[6px]`,style:{fontFamily:g?.style?.button?.buttonFontFamily||"Inter, sans-serif",fontSize:g?.style?.button?.buttonFontSize||"14px",background:p?g?.style?.button?.buttonDisabledBackground:(l?g?.style?.base?.brandColor:g?.style?.button?.buttonBackground)||"#000",color:p?g?.style?.button?.buttonDisabledTextColor:g?.style?.button?.buttonTextColor||"#fff",fontWeight:g?.style?.button?.headingFontWeight||"normal",pointerEvents:p?"none":"auto",borderRadius:g?.style?.button?.buttonBorderRadius||"9999px"},children:[a&&e("img",{className:"w-[20px] h-[20px]",src:a,alt:"icon"}),n,o&&o]}),n={email:"What is your email?",name:"What is your name?",height:"How tall are you?",gender:"Where do you shop?"},l=["https://scan.syze.ai/publicAssets/outfit-1.png","https://scan.syze.ai/publicAssets/outfit-2.png","https://scan.syze.ai/publicAssets/outfit-3.png","https://scan.syze.ai/publicAssets/outfit-4.png","https://scan.syze.ai/publicAssets/outfit-5.png"],r="https://scan.syze.ai/publicAssets/new-voices-over/",p="https://scan.syze.ai/publicAssets/male-scan-mesh.mp4",c="https://scan.syze.ai/publicAssets/scan-mesh.mp4",u="https://scan.syze.ai/publicAssets/face-scan-zoom.mp4",g="https://scan.syze.ai/publicAssets/male-face-scan-zoom.mp4",d="https://scan.syze.ai/publicAssets/body-scan-person.png",h="https://scan.syze.ai/publicAssets/face-scan-person.png",_="https://scan.syze.ai/publicAssets/form-fitting-guide.png",b="https://scan.syze.ai/publicAssets/le-sable-dress-new.png",m="https://scan.syze.ai/publicAssets/sizing-suggestions.mp4",y="https://scan.syze.ai/publicAssets/male-sizing-suggestions.mp4",f="https://scan.syze.ai/publicAssets/male-form-fitting.mp4",A="https://scan.syze.ai/publicAssets/form-fitting.mp4",F="Based on your bust measurement of 85.0 cm and waist measurement of 68.7 cm, a size S is suggested for the Le Sable Dress. This size corresponds to a bust of 86 cm and a waist of 67 cm, closely matching your measurements. The Le Sable Dress is designed for a slim fit & features a slightly stretchy fabric.",S="https://scan.syze.ai/publicAssets/phone-on-table.mp4",z="https://scan.syze.ai/publicAssets/male-phone-on-table.mp4",x="https://scan.syze.ai/publicAssets/pause-icon.svg",C="https://scan.syze.ai/publicAssets/loader.gif",N="https://scan.syze.ai/publicAssets/loader-black.gif",W="https://scan.syze.ai/publicAssets/video-poster.jpg",v="https://scan.syze.ai/publicAssets/measurement-progress.mp4",w="https://scan.syze.ai/publicAssets/male-measurement-progress.mp4",E=["video/webm","video/mp4","video/mpeg"],I="clothing_custom_fit_scan",k="clothing_custom_scan",P="clothing_banner_scan",V="phc_S1Z71u2vBqoH9LhrpckEJoroobYhvHzM1fnjIqse41A",T="https://app.posthog.com",B={Scan_s:"Scan_s",vision_model:"vision_model",is_at_capacity:"is_at_capacity",We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon:"We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon",Start_Scan:"Start_Scan",Please_check_your_setting_for_camera_permission:"Please_check_your_setting_for_camera_permission",Settings:"Settings",Enable_the_camera_permissions:"Enable_the_camera_permissions"},D={width:1280,height:720,facingMode:"user"},L={male:{PRE_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_MALE_V02/SWAN_AI_Video_02_PRESCAN_MALE_V02-output.m3u8",POST_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_MALE_V02/SWAN_AI_Video_03_POSTS0CAN_MALE_V02-output.m3u8"},female:{PRE_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_V02/SWAN_AI_Video_02_PRESCAN_V02-output.m3u8",POST_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_V02/SWAN_AI_Video_03_POSTS0CAN_V02-output.m3u8"}},R={male:"https://scan.syze.ai/publicAssets/male-video-poster.png",female:"https://scan.syze.ai/publicAssets/female-video-poster.png"},O=({title:s,subtitle:o,resolvedConfig:i,noTitle:n})=>t(a,{children:[i?.logo&&e("div",{className:"flex justify-start w-full",children:e("img",{src:i.logo,alt:"logo",style:{height:i?.style?.logo?.logoHeight,width:i?.style?.logo?.logoWidth}})}),!n&&e("h1",{style:{fontFamily:i?.style?.heading?.headingFontFamily||"SeriouslyNostalgic Fn",fontSize:i?.style?.heading?.headingFontSize||"32px",color:i?.style?.heading?.headingColor||"#000",fontWeight:i?.style?.heading?.headingFontWeight||"normal"},className:"text-center",children:s||"Welcome to Swan"}),o&&e("p",{style:{fontFamily:i?.style?.subheading?.subheadingFontFamily||"'Inter', sans-serif",fontSize:i?.style?.subheading?.subheadingFontSize||"14px",color:i?.style?.subheading?.subheadingColor||"#4b5563",fontWeight:i?.style?.subheading?.subheadingFontWeight||"normal"},children:o})]});export{V as A,T as B,k as C,N as D,C as E,L as G,O as H,B as L,l as O,i as S,R as V,n as a,d as b,_ as c,A as d,y as e,h as f,g,u as h,p as i,c as j,F as k,b as l,f as m,z as n,S as o,x as p,r as q,E as r,m as s,W as t,o as u,D as v,P as w,I as x,w as y,v as z};
2
+ //# sourceMappingURL=Header-BhrDARhH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header-BhrDARhH.js","sources":["../src/config/useLocalConfig.ts","../src/atoms/specificButton/SpecificButton.tsx","../src/utils/constants.ts","../src/components/Header.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { Config } from \"../types/interfaces\";\n\n\n/**\n * Ensures default style values are available even when config or nested properties are missing.\n * Merges deeply and memoizes the result for consistent performance.\n */\nexport const useLocalConfig = (config?: Config): Required<Config> => {\n const defaultConfig: Required<Config> = {\n logo: \"https://staging.scan.swanvision.ai/static/media/logo-icon-black.18f18f6cf0f9cd829f66d9b1d3a6e2f9.svg\",\n loader: \"../loader-black.gif\",\n style: {\n base:{\n brandColor: \"#5932F3\",\n backgroundColor: \"#FFFFFF\",\n primaryColor: \"#000000\",\n secondaryColor: \"#D9D9D9\",\n baseTextColor: \"#1E1E1E\",\n baseFontSize: \"16px\",\n baseFontFamily: \"'Inter', sans-serif\",\n },\n logo:{\n logoWidth: \"30px\",\n logoHeight: \"30px\",\n },\n heading:{\n headingColor: \"#000000\",\n headingFontSize: \"32px\",\n headingFontWeight: \"normal\",\n headingFontFamily: \"'SeriouslyNostalgic Fn', serif\",\n },\n subheading:{\n subheadingColor: \"#4b5563\",\n subheadingFontSize: \"14px\",\n subheadingFontWeight: \"normal\",\n subheadingFontFamily: \"'Inter', sans-serif\",\n },\n button:{\n buttonBackground: \"#220B12\",\n buttonFontSize: \"14px\",\n buttonFontFamily: \"'Inter', sans-serif\",\n buttonDisabledBackground: \"#D9D9D9\",\n buttonDisabledTextColor: \"#000000\",\n buttonTextColor: \"#FFFFFF\",\n buttonBorderRadius: \"9999px\",\n },\n input:{\n inputBackgroundColor: \"#F9FAFC\",\n inputTextColor: \"#000000\",\n inputPlaceholderColor: \"#000000\",\n inputBorderColor: \"#F9FAFC\",\n inputFontSize: \"14px\",\n inputFontWeight: \"500\",\n inputBorderRadius: \"8px\",\n inputErrorColor: \"#000000\",\n inputErrorFontSize:\"4px\"\n },\n },\n };\n\n return useMemo(() => ({\n logo: config?.logo ?? defaultConfig.logo,\n loader: config?.loader||\"\",\n style: {\n ...defaultConfig.style,\n ...(config?.style || {}),\n },\n }), [config]);\n};\n","/* eslint-disable react/button-has-type */\nimport React from \"react\";\n\ninterface SpecificButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n buttonFunc?: React.MouseEventHandler<HTMLButtonElement>;\n prefix?: string;\n postfixIcon?: React.ReactNode;\n className?: string;\n buttonText?: string;\n btnSecondary?: boolean;\n loading?: boolean;\n disabled?: boolean;\n type?: \"button\" | \"submit\" | \"reset\";\n id?: string;\n resolvedConfig?: any;\n}\n\nconst SpecificButton: React.FC<SpecificButtonProps> = ({\n buttonFunc,\n prefix,\n postfixIcon,\n className = \"\",\n buttonText,\n btnSecondary,\n loading = false,\n disabled = false,\n type = \"button\",\n id = \"button\",\n resolvedConfig,\n ...props\n}) => {\n\n return (\n <button\n {...props}\n id={id}\n type={type}\n disabled={disabled}\n onClick={buttonFunc}\n className={`${className} ${\"flex min-h-[33px] gap-[5px] border-none cursor-pointer items-center shadow-[0_1px_1px_rgba(0,0,0,0.251)] justify-center [&_svg]:size-[16px] [&_svg]:shrink-0 rounded-[9999px] min-w-[120px] text-[14px] px-6 disabled:shadow-none py-[6px]\"\n }`}\n style={{\n fontFamily: resolvedConfig?.style?.button?.buttonFontFamily || 'Inter, sans-serif',\n fontSize: resolvedConfig?.style?.button?.buttonFontSize || '14px',\n background:disabled?(resolvedConfig?.style?.button?.buttonDisabledBackground) :(btnSecondary? resolvedConfig?.style?.base?.brandColor :resolvedConfig?.style?.button?.buttonBackground) || '#000',\n color:disabled?resolvedConfig?.style?.button?.buttonDisabledTextColor : resolvedConfig?.style?.button?.buttonTextColor || '#fff',\n fontWeight: resolvedConfig?.style?.button?.headingFontWeight || 'normal',\n pointerEvents: disabled ? 'none' : 'auto',\n borderRadius: resolvedConfig?.style?.button?.buttonBorderRadius || '9999px',\n }}\n >\n {prefix && <img className=\"w-[20px] h-[20px]\" src={prefix} alt=\"icon\" />}\n {buttonText}\n {postfixIcon && postfixIcon}\n {/* {loading && disabled && <CircularProgress size={15} />} */}\n </button>\n );\n};\n\nexport default SpecificButton;\n","import { StepType } from \"../types/interfaces\";\n\nexport const STEPS: Record<StepType, string> = {\n email: \"What is your email?\",\n name: \"What is your name?\",\n height: \"How tall are you?\",\n gender: \"Where do you shop?\",\n};\n\nexport const OUTFIT_IMAGES = [\n \"https://scan.syze.ai/publicAssets/outfit-1.png\",\n \"https://scan.syze.ai/publicAssets/outfit-2.png\",\n \"https://scan.syze.ai/publicAssets/outfit-3.png\",\n \"https://scan.syze.ai/publicAssets/outfit-4.png\",\n \"https://scan.syze.ai/publicAssets/outfit-5.png\",\n];\nexport const voiceOverAssetsPath =\n \"https://scan.syze.ai/publicAssets/new-voices-over/\";\nexport const maleScanVideo =\n \"https://scan.syze.ai/publicAssets/male-scan-mesh.mp4\";\nexport const femaleScanVideo =\n \"https://scan.syze.ai/publicAssets/scan-mesh.mp4\";\nexport const faceScanVideo =\n \"https://scan.syze.ai/publicAssets/face-scan-zoom.mp4\";\nexport const maleFaceScanVideo =\n \"https://scan.syze.ai/publicAssets/male-face-scan-zoom.mp4\";\nexport const bodyScanPerson =\n \"https://scan.syze.ai/publicAssets/body-scan-person.png\";\nexport const faceScanPerson =\n \"https://scan.syze.ai/publicAssets/face-scan-person.png\";\nexport const fittingGuide =\n \"https://scan.syze.ai/publicAssets/form-fitting-guide.png\";\nexport const leSableDress =\n \"https://scan.syze.ai/publicAssets/le-sable-dress-new.png\";\nexport const sizeSuggestions =\n \"https://scan.syze.ai/publicAssets/sizing-suggestions.mp4\";\nexport const maleSizeSuggestions =\n \"https://scan.syze.ai/publicAssets/male-sizing-suggestions.mp4\";\nexport const maleFormFittingGuide =\n \"https://scan.syze.ai/publicAssets/male-form-fitting.mp4\";\nexport const formFittingGuide =\n \"https://scan.syze.ai/publicAssets/form-fitting.mp4\";\nexport const fullText =\n \"Based on your bust measurement of 85.0 cm and waist measurement of 68.7 cm, a size S is suggested for the Le Sable Dress. This size corresponds to a bust of 86 cm and a waist of 67 cm, closely matching your measurements. The Le Sable Dress is designed for a slim fit & features a slightly stretchy fabric.\";\nexport const setupVideo =\n \"https://scan.syze.ai/publicAssets/phone-on-table.mp4\";\nexport const maleSetupVideo =\n \"https://scan.syze.ai/publicAssets/male-phone-on-table.mp4\";\nexport const pauseIcon = \"https://scan.syze.ai/publicAssets/pause-icon.svg\";\nexport const loaderGif = \"https://scan.syze.ai/publicAssets/loader.gif\";\nexport const loaderBlackGif =\n \"https://scan.syze.ai/publicAssets/loader-black.gif\";\nexport const qrError = \"https://scan.syze.ai/publicAssets/qrError.svg\";\nexport const videoPoster = \"https://scan.syze.ai/publicAssets/video-poster.jpg\";\nexport const measurementProgress =\n \"https://scan.syze.ai/publicAssets/measurement-progress.mp4\";\nexport const maleMeasurementProgress =\n \"https://scan.syze.ai/publicAssets/male-measurement-progress.mp4\";\nconst maleVideoPoster =\n \"https://scan.syze.ai/publicAssets/male-video-poster.png\";\nconst femaleVideoPoster =\n \"https://scan.syze.ai/publicAssets/female-video-poster.png\";\n\nexport const videoTypes = [\"video/webm\", \"video/mp4\", \"video/mpeg\"];\n\nexport const CLOTHING_CUSTOM_FIT_SCAN = \"clothing_custom_fit_scan\";\nexport const CLOTHING_SCAN_WITH_TRY_ON = \"clothing_scan_with_try_on\";\nexport const CLOTHING_SCAN_ONLY = \"clothing_scan_only\";\nexport const CLOTHING_CUSTOM_SCAN = \"clothing_custom_scan\";\nexport const CLOTHING_TRY_ON_SCAN = \"clothing_try_on_scan\";\nexport const CLOTHING_SCAN = \"clothing_scan\";\nexport const CLOTHING_BANNER_SCAN = \"clothing_banner_scan\";\nexport const CLOTHING_TRYON_CONSUMER_SCAN = \"clothing_tryon_consumer_scan\";\n\nexport const TENSORFLOW_SOLUTION_PATH =\n \"https://cdn.jsdelivr.net/npm/@mediapipe/pose\";\n\nexport const posthogPublicKey =\n \"phc_S1Z71u2vBqoH9LhrpckEJoroobYhvHzM1fnjIqse41A\";\nexport const posthogPublicHost = \"https://app.posthog.com\";\n\nexport const LanguageKeys = {\n Custom_Scan: \"Custom_Scan\",\n Find_your_perfect_fit: \"Find_your_perfect_fit\",\n One_time_setup_in_2_min_or_less: \"One_time_setup_in_2_min_or_less\",\n PRIVACY: \"PRIVACY\",\n Swan_encrypts_your_data_with_Ever_vault_and_ensures_your_video_is_not_seen_by_anyone:\n \"Swan_encrypts_your_data_with_Ever_vault_and_ensures_your_video_is_not_seen_by_anyone\",\n By_ticking_this_box_you_are_agreeing_to_our:\n \"By_ticking_this_box_you_are_agreeing_to_our\",\n privacy_policy: \"privacy_policy\",\n Get_Measured: \"Get_Measured\",\n Login: \"Login\",\n Where_do_you_shop: \"Where_do_you_shop\",\n Men_s: \"Men_s\",\n Women_s: \"Women_s\",\n Next: \"Next\",\n Preferred_language: \"Preferred_language\",\n Hindi: \"Hindi\",\n English: \"English\",\n French: \"French\",\n Spanish: \"Spanish\",\n German: \"German\",\n Italian: \"Italian\",\n Arabic: \"Arabic\",\n Phone_Model: \"Phone_Model\",\n Select_phone_brand: \"Select_phone_brand\",\n Select_phone_model: \"Select_phone_model\",\n Measurement_tips: \"Measurement_tips\",\n Tips_for_your_scan: \"Tips_for_your_scan\",\n Watch_this_video_to_know_how_to_scan: \"Watch_this_video_to_know_how_to_scan\",\n How_to_use_Swan: \"How_to_use_Swan\",\n Watch_this_short_video_to_know_how_to_use:\n \"Watch_this_short_video_to_know_how_to_use\",\n Shop: \"Shop\",\n Skip: \"Skip\",\n Form_fitting_clothing: \"Form_fitting_clothing\",\n How_form_is_fitting_your_outfit: \"How_form_is_fitting_your_outfit\",\n For_accurate_scan_please_wear_tight_clothing_Here_s_an_example:\n \"For_accurate_scan_please_wear_tight_clothing_Here_s_an_example\",\n Scan_with_form_fitting: \"Scan_with_form_fitting\",\n Scan_with_form_loose_fit: \"Scan_with_form_loose_fit\",\n Turn_up_your_volume: \"Turn_up_your_volume\",\n For_smart_voice_guide: \"For_smart_voice_guide\",\n Place_your_phone_on_a_table_at: \"Place_your_phone_on_a_table_at\",\n a_hip_height: \"a_hip_height\",\n Scan: \"Scan\",\n Height: \"Height\",\n Height_in_ft: \"Height_in_ft\",\n Height_in_inch: \"Height_in_inch\",\n How_tall_are_you: \"How_tall_are_you\",\n We_are_sorry_we_currently_do_not_support_this_heights_outside_of_5_ft_and_7_ft_We_are_working_on_new_models_that_do:\n \"We_are_sorry_we_currently_do_not_support_this_heights_outside_of_5_ft_and_7_ft_We_are_working_on_new_models_that_do\",\n Confirm: \"Confirm\",\n To_start_your_measurement: \"To_start_your_measurement\",\n Scan_this_QR_code_with_your_phone: \"Scan_this_QR_code_with_your_phone\",\n You_can_continue_from_here_after_your_scan:\n \"You_can_continue_from_here_after_your_scan\",\n Failed_to_get_measurements: \"Failed_to_get_measurements\",\n No_data_found_Go_back_to: \"No_data_found_Go_back_to\",\n back: \"back\",\n Profile: \"Profile\",\n shopify: \"shopify\",\n fit_view_result: \"fit_view_result\",\n Nest: \"Nest\",\n Scan_again: \"Scan_again\",\n Provide_feedback: \"Provide_feedback\",\n Add_to_cart: \"Add_to_cart\",\n Back_to_product: \"Back_to_product\",\n Fit_Notes: \"Fit_Notes\",\n Fitted: \"Fitted\",\n Ideal_fit: \"Ideal_fit\",\n Relaxed: \"Relaxed\",\n Wrong_email_format: \"Wrong_email_format\",\n Something_went_wrong: \"Something_went_wrong\",\n Email_is_required: \"Email_is_required\",\n Scan_status: \"Scan_status\",\n Uploading: \"Uploading\",\n Processing: \"Processing\",\n Finishing: \"Finishing\",\n Complete: \"Complete\",\n You_re_logged_in: \"You_re_logged_in\",\n Swan_will_load_on_every_supported_page:\n \"Swan_will_load_on_every_supported_page\",\n Happy_Shopping: \"Happy_Shopping\",\n Email_verification_failed: \"Email_verification_failed\",\n Email_Confirmed: \"Email_Confirmed\",\n Measurements_saved: \"Measurements_saved\",\n Login_anywhere_you_see_the_Swan_logo_to_load_your_measurements:\n \"Login_anywhere_you_see_the_Swan_logo_to_load_your_measurements\",\n Check_your_email: \"Check_your_email\",\n Tap_on_the_verification_link_sent_to: \"Tap_on_the_verification_link_sent_to\",\n Email_Confirmation: \"Email_Confirmation\",\n Save_your_scan: \"Save_your_scan\",\n Confirm_with_a_single_tap_from_your_email_inbox:\n \"Confirm_with_a_single_tap_from_your_email_inbox\",\n Saving_your_scan_means_you_can_load_your_measurements_anywhere_you_see_the_Swan_logo:\n \"Saving_your_scan_means_you_can_load_your_measurements_anywhere_you_see_the_Swan_logo\",\n Passwordless_Just_one_tap_via_email: \"Passwordless_Just_one_tap_via_email\",\n Join_2000_shoppers: \"Join_2000_shoppers\",\n Your_measurements_will_be_shared_only_once_your_email_is_confirmed:\n \"Your_measurements_will_be_shared_only_once_your_email_is_confirmed\",\n Enter_your_email: \"Enter_your_email\",\n Send_confirmation_email: \"Send_confirmation_email\",\n No_thanks: \"No_thanks\",\n We_are_sorry: \"We're_sorry\",\n Video_tips_for_scanning: \"Video_tips_for_scanning\",\n Please_make_sure_to: \"Please_make_sure_to\",\n one_Complete_a_full_spin_Starting_and_finishing_with_your_feet_facing_your_phone:\n \"one_Complete_a_full_spin_Starting_and_finishing_with_your_feet_facing_your_phone\",\n two_Rotate_slowly_throughout_your_spin:\n \"two_Rotate_slowly_throughout_your_spin\",\n three_Make_sure_your_full_body_including_feet_and_hands_are_visible_in_frame:\n \"three_Make_sure_your_full_body_including_feet_and_hands_are_visible_in_frame\",\n Scan_s: \"Scan_s\",\n vision_model: \"vision_model\",\n is_at_capacity: \"is_at_capacity\",\n We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon:\n \"We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon\",\n Oops: \"Oops\",\n Looks_like_this_QR_code_is_not_valid: \"Looks_like_this_QR_code_is_not_valid\",\n Reload_your_desktop_tab_to_generate_a_new_code:\n \"Reload_your_desktop_tab_to_generate_a_new_code\",\n Magic_link: \"Magic_link\",\n We_have_sent_you_a_magic_link_via_email:\n \"We_have_sent_you_a_magic_link_via_email\",\n Please_confirm_your_email_load_your_measurements_on_any_partner_brand:\n \"Please_confirm_your_email_load_your_measurements_on_any_partner_brand\",\n Welcome_back: \"Welcome_back\",\n Load_my_account: \"Load_my_account\",\n Back_to_home: \"Back_to_home\",\n Enter_a_valid_email: \"Enter_a_valid_email\",\n No_measurement_found_for_this_email: \"No_measurement_found_for_this_email\",\n Reset: \"Reset\",\n Resume: \"Resume\",\n Start_Scan: \"Start_Scan\",\n Scanning: \"Scanning\",\n Detecting_Body: \"Detecting_Body\",\n Stop: \"Stop\",\n Generating_Measurements: \"Generating_Measurements\",\n Help: \"Help\",\n Scan_tips: \"Scan_tips\",\n Watch_instructions_video: \"Watch_instructions_video\",\n Wear_form_fitting_clothing_for_the_most_accurate_results:\n \"Wear_form_fitting_clothing_for_the_most_accurate_results\",\n Position_yourself_in_a_brightly_lit_room:\n \"Position_yourself_in_a_brightly_lit_room\",\n Tie_up_long_hair_and_slip_off_your_shoes:\n \"Tie_up_long_hair_and_slip_off_your_shoes\",\n Back: \"Back\",\n Swan: \"Swan\",\n Please_check_your_setting_for_camera_permission:\n \"Please_check_your_setting_for_camera_permission\",\n Settings: \"Settings\",\n Enable_the_camera_permissions: \"Enable_the_camera_permissions\",\n Go_Back: \"Go_Back\",\n Measurements_have_been_shared: \"Measurements_have_been_shared\",\n For_helping_in_getting: \"For_helping_in_getting\",\n Thank_You: \"Thank_You\",\n live: \"live\",\n Your: \"Your\",\n Check_back_soon_to_use_Swan: \"Check_back_soon_to_use_Swan\",\n custom_for_your_next_order: \"custom_for_your_next_order\",\n sevenTillEight: \"7till8\",\n Rhodes_and_Beckett: \"Rhodes_and_Beckett\",\n Send_invite: \"Send_invite\",\n Your_Nest: \"Your_Nest\",\n Share_your_measurements_to_shop_and_gift_for_those_close_to_you:\n \"Share_your_measurements_to_shop_and_gift_for_those_close_to_you\",\n Invite_to_Swan: \"Invite_to_Swan\",\n Name: \"Name\",\n Enter_their_name: \"Enter_their_name\",\n Enter_their_email: \"Enter_their_email\",\n Message: \"Message\",\n Join_Swan: \"Join_Swan\",\n Email: \"Email\",\n Invite: \"Invite\",\n Your_Login: \"Your_Login\",\n Your_Scans: \"Your_Scans\",\n Talk_with_the_CEO: \"Talk_with_the_CEO\",\n Send_me_an_email: \"Send_me_an_email\",\n At_Swan_we_are_here_to_make_shopping_about_you_I_would_love_to_hear_what_you_think_of_Swan_and_what_you_want_to_see_next_I_am_excited_to_hear_your_feedback:\n \"At_Swan_we_are_here_to_make_shopping_about_you_I_would_love_to_hear_what_you_think_of_Swan_and_what_you_want_to_see_next_I_am_excited_to_hear_your_feedback\",\n Eoin: \"Eoin\",\n You_can_close_this_tab_and_return_to_the_original_to_get_your_sizing_suggestion:\n \"You_can_close_this_tab_and_return_to_the_original_to_get_your_sizing_suggestion\",\n Try_On: \"Try_On\",\n Invite_friends: \"Invite_friends\",\n Pending: \"Pending\",\n Decline: \"Decline\",\n gifting_simple: \"gifting_simple\",\n Invite_friends_and_make: \"Invite_friends_and_make\",\n Nest_will_be_able_to_see_and_size_clothes_on_you:\n \"Nest_will_be_able_to_see_and_size_clothes_on_you\",\n By_sharing_your_Swan_profile_those_in_your:\n \"By_sharing_your_Swan_profile_those_in_your\",\n Enter_your_name: \"Enter_your_name\",\n Failed_to_get_tryon: \"Failed_to_get_tryon\",\n In_Progress: \"In_Progress\",\n Go_back_to: \"Go_back_to\",\n};\n\nexport const videoConstraints = {\n width: 1280,\n height: 720,\n facingMode: \"user\",\n};\n\nexport const GENDER = {\n male: {\n PRE_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_MALE_V02/SWAN_AI_Video_02_PRESCAN_MALE_V02-output.m3u8\",\n POST_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_MALE_V02/SWAN_AI_Video_03_POSTS0CAN_MALE_V02-output.m3u8\",\n },\n female: {\n PRE_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_V02/SWAN_AI_Video_02_PRESCAN_V02-output.m3u8\",\n POST_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_V02/SWAN_AI_Video_03_POSTS0CAN_V02-output.m3u8\",\n },\n};\n\nexport const VIDEO_POSTER_GENDER_BASED = {\n male: maleVideoPoster,\n female: femaleVideoPoster,\n};\n\nexport const FACE_SCAN_HEADSHOT = {\n male: {\n forward: \"https://scan.syze.ai/publicAssets/male-face-forward.mp4\",\n left: \"https://scan.syze.ai/publicAssets/male-face-left.mp4\",\n right: \"https://scan.syze.ai/publicAssets/male-face-right.mp4\",\n smile: \"https://scan.syze.ai/publicAssets/male-face-smile.mp4\",\n },\n female: {\n forward: \"https://scan.syze.ai/publicAssets/face-forward.mp4\",\n left: \"https://scan.syze.ai/publicAssets/face-left.mp4\",\n right: \"https://scan.syze.ai/publicAssets/face-right.mp4\",\n smile: \"https://scan.syze.ai/publicAssets/face-smile.mp4\",\n },\n};\n\nexport const glassesOffVideo =\n \"https://scan.syze.ai/publicAssets/glasses-off.mp4\";\nexport const maleGlassesOffVideo =\n \"https://scan.syze.ai/publicAssets/male-glasses-off.mp4\";\n\nexport const heroMaleModel = \"https://scan.syze.ai/publicAssets/hero-male.glb\";\nexport const heroFemaleModel =\n \"https://scan.syze.ai/publicAssets/hero-female.glb\";\n\nexport const directionMessages = [\n \"Face front\",\n \"Turn head fully left\",\n \"Turn head fully right\",\n \"Smile facing front\",\n];\n","import React from \"react\";\n\ninterface HeaderProps {\ntitle?: string;\nsubtitle?: string;\nresolvedConfig?: any;\nnoTitle?: boolean;\n}\n\nconst Header: React.FC<HeaderProps> = ({ title, subtitle, resolvedConfig, noTitle }) => {\n return (\n <>\n {resolvedConfig?.logo && (\n <div className=\"flex justify-start w-full\">\n <img\n src={resolvedConfig.logo}\n alt=\"logo\"\n style={{\n height: resolvedConfig?.style?.logo?.logoHeight,\n width: resolvedConfig?.style?.logo?.logoWidth,\n }}\n />\n </div>\n \n )}\n {!noTitle && <h1\n style={{\n fontFamily: resolvedConfig?.style?.heading?.headingFontFamily || \"SeriouslyNostalgic Fn\",\n fontSize: resolvedConfig?.style?.heading?.headingFontSize || \"32px\",\n color: resolvedConfig?.style?.heading?.headingColor || \"#000\",\n fontWeight: resolvedConfig?.style?.heading?.headingFontWeight || \"normal\",\n }}\n className=\"text-center\"\n >\n {title ? title :\"Welcome to Swan\"} \n </h1>}\n {subtitle && <p\n style={{\n fontFamily:\n resolvedConfig?.style?.subheading?.subheadingFontFamily ||\n \"'Inter', sans-serif\",\n fontSize:\n resolvedConfig?.style?.subheading?.subheadingFontSize || \"14px\",\n color:\n resolvedConfig?.style?.subheading?.subheadingColor || \"#4b5563\",\n fontWeight:\n resolvedConfig?.style?.subheading?.subheadingFontWeight || \"normal\",\n }}\n >{subtitle}</p>} \n </>\n );\n};\n\nexport default Header;\n"],"names":["useLocalConfig","config","defaultConfig","base","brandColor","backgroundColor","primaryColor","secondaryColor","baseTextColor","baseFontSize","baseFontFamily","logo","logoWidth","logoHeight","heading","headingColor","headingFontSize","headingFontWeight","headingFontFamily","subheading","subheadingColor","subheadingFontSize","subheadingFontWeight","subheadingFontFamily","button","buttonBackground","buttonFontSize","buttonFontFamily","buttonDisabledBackground","buttonDisabledTextColor","buttonTextColor","buttonBorderRadius","input","inputBackgroundColor","inputTextColor","inputPlaceholderColor","inputBorderColor","inputFontSize","inputFontWeight","inputBorderRadius","inputErrorColor","inputErrorFontSize","useMemo","loader","style","SpecificButton","buttonFunc","prefix","postfixIcon","className","buttonText","btnSecondary","loading","disabled","type","id","resolvedConfig","props","_jsxs","onClick","fontFamily","fontSize","background","color","fontWeight","pointerEvents","borderRadius","children","_jsx","src","alt","STEPS","email","name","height","gender","OUTFIT_IMAGES","voiceOverAssetsPath","maleScanVideo","femaleScanVideo","faceScanVideo","maleFaceScanVideo","bodyScanPerson","faceScanPerson","fittingGuide","leSableDress","sizeSuggestions","maleSizeSuggestions","maleFormFittingGuide","formFittingGuide","fullText","setupVideo","maleSetupVideo","pauseIcon","loaderGif","loaderBlackGif","videoPoster","measurementProgress","maleMeasurementProgress","videoTypes","CLOTHING_CUSTOM_FIT_SCAN","CLOTHING_CUSTOM_SCAN","CLOTHING_BANNER_SCAN","posthogPublicKey","posthogPublicHost","LanguageKeys","Scan_s","vision_model","is_at_capacity","We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon","Start_Scan","Please_check_your_setting_for_camera_permission","Settings","Enable_the_camera_permissions","videoConstraints","width","facingMode","GENDER","male","PRE_LINK","POST_LINK","female","VIDEO_POSTER_GENDER_BASED","Header","title","subtitle","noTitle","_Fragment"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ "use strict";var s=require("react"),e=require("react/jsx-runtime");const t={male:"https://scan.syze.ai/publicAssets/male-video-poster.png",female:"https://scan.syze.ai/publicAssets/female-video-poster.png"};exports.CLOTHING_BANNER_SCAN="clothing_banner_scan",exports.CLOTHING_CUSTOM_FIT_SCAN="clothing_custom_fit_scan",exports.CLOTHING_CUSTOM_SCAN="clothing_custom_scan",exports.GENDER={male:{PRE_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_MALE_V02/SWAN_AI_Video_02_PRESCAN_MALE_V02-output.m3u8",POST_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_MALE_V02/SWAN_AI_Video_03_POSTS0CAN_MALE_V02-output.m3u8"},female:{PRE_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_V02/SWAN_AI_Video_02_PRESCAN_V02-output.m3u8",POST_LINK:"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_V02/SWAN_AI_Video_03_POSTS0CAN_V02-output.m3u8"}},exports.Header=({title:s,subtitle:t,resolvedConfig:o,noTitle:i})=>e.jsxs(e.Fragment,{children:[o?.logo&&e.jsx("div",{className:"flex justify-start w-full",children:e.jsx("img",{src:o.logo,alt:"logo",style:{height:o?.style?.logo?.logoHeight,width:o?.style?.logo?.logoWidth}})}),!i&&e.jsx("h1",{style:{fontFamily:o?.style?.heading?.headingFontFamily||"SeriouslyNostalgic Fn",fontSize:o?.style?.heading?.headingFontSize||"32px",color:o?.style?.heading?.headingColor||"#000",fontWeight:o?.style?.heading?.headingFontWeight||"normal"},className:"text-center",children:s||"Welcome to Swan"}),t&&e.jsx("p",{style:{fontFamily:o?.style?.subheading?.subheadingFontFamily||"'Inter', sans-serif",fontSize:o?.style?.subheading?.subheadingFontSize||"14px",color:o?.style?.subheading?.subheadingColor||"#4b5563",fontWeight:o?.style?.subheading?.subheadingFontWeight||"normal"},children:t})]}),exports.LanguageKeys={Scan_s:"Scan_s",vision_model:"vision_model",is_at_capacity:"is_at_capacity",We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon:"We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon",Start_Scan:"Start_Scan",Please_check_your_setting_for_camera_permission:"Please_check_your_setting_for_camera_permission",Settings:"Settings",Enable_the_camera_permissions:"Enable_the_camera_permissions"},exports.OUTFIT_IMAGES=["https://scan.syze.ai/publicAssets/outfit-1.png","https://scan.syze.ai/publicAssets/outfit-2.png","https://scan.syze.ai/publicAssets/outfit-3.png","https://scan.syze.ai/publicAssets/outfit-4.png","https://scan.syze.ai/publicAssets/outfit-5.png"],exports.STEPS={email:"What is your email?",name:"What is your name?",height:"How tall are you?",gender:"Where do you shop?"},exports.SpecificButton=({buttonFunc:s,prefix:t,postfixIcon:o,className:i="",buttonText:a,btnSecondary:n,loading:r=!1,disabled:p=!1,type:l="button",id:c="button",resolvedConfig:u,...d})=>e.jsxs("button",{...d,id:c,type:l,disabled:p,onClick:s,className:`${i} flex min-h-[33px] gap-[5px] border-none cursor-pointer items-center shadow-[0_1px_1px_rgba(0,0,0,0.251)] justify-center [&_svg]:size-[16px] [&_svg]:shrink-0 rounded-[9999px] min-w-[120px] text-[14px] px-6 disabled:shadow-none py-[6px]`,style:{fontFamily:u?.style?.button?.buttonFontFamily||"Inter, sans-serif",fontSize:u?.style?.button?.buttonFontSize||"14px",background:p?u?.style?.button?.buttonDisabledBackground:(n?u?.style?.base?.brandColor:u?.style?.button?.buttonBackground)||"#000",color:p?u?.style?.button?.buttonDisabledTextColor:u?.style?.button?.buttonTextColor||"#fff",fontWeight:u?.style?.button?.headingFontWeight||"normal",pointerEvents:p?"none":"auto",borderRadius:u?.style?.button?.buttonBorderRadius||"9999px"},children:[t&&e.jsx("img",{className:"w-[20px] h-[20px]",src:t,alt:"icon"}),a,o&&o]}),exports.VIDEO_POSTER_GENDER_BASED=t,exports.bodyScanPerson="https://scan.syze.ai/publicAssets/body-scan-person.png",exports.faceScanPerson="https://scan.syze.ai/publicAssets/face-scan-person.png",exports.faceScanVideo="https://scan.syze.ai/publicAssets/face-scan-zoom.mp4",exports.femaleScanVideo="https://scan.syze.ai/publicAssets/scan-mesh.mp4",exports.fittingGuide="https://scan.syze.ai/publicAssets/form-fitting-guide.png",exports.formFittingGuide="https://scan.syze.ai/publicAssets/form-fitting.mp4",exports.fullText="Based on your bust measurement of 85.0 cm and waist measurement of 68.7 cm, a size S is suggested for the Le Sable Dress. This size corresponds to a bust of 86 cm and a waist of 67 cm, closely matching your measurements. The Le Sable Dress is designed for a slim fit & features a slightly stretchy fabric.",exports.leSableDress="https://scan.syze.ai/publicAssets/le-sable-dress-new.png",exports.loaderBlackGif="https://scan.syze.ai/publicAssets/loader-black.gif",exports.loaderGif="https://scan.syze.ai/publicAssets/loader.gif",exports.maleFaceScanVideo="https://scan.syze.ai/publicAssets/male-face-scan-zoom.mp4",exports.maleFormFittingGuide="https://scan.syze.ai/publicAssets/male-form-fitting.mp4",exports.maleMeasurementProgress="https://scan.syze.ai/publicAssets/male-measurement-progress.mp4",exports.maleScanVideo="https://scan.syze.ai/publicAssets/male-scan-mesh.mp4",exports.maleSetupVideo="https://scan.syze.ai/publicAssets/male-phone-on-table.mp4",exports.maleSizeSuggestions="https://scan.syze.ai/publicAssets/male-sizing-suggestions.mp4",exports.measurementProgress="https://scan.syze.ai/publicAssets/measurement-progress.mp4",exports.pauseIcon="https://scan.syze.ai/publicAssets/pause-icon.svg",exports.posthogPublicHost="https://app.posthog.com",exports.posthogPublicKey="phc_S1Z71u2vBqoH9LhrpckEJoroobYhvHzM1fnjIqse41A",exports.setupVideo="https://scan.syze.ai/publicAssets/phone-on-table.mp4",exports.sizeSuggestions="https://scan.syze.ai/publicAssets/sizing-suggestions.mp4",exports.useLocalConfig=e=>{const t="https://staging.scan.swanvision.ai/static/media/logo-icon-black.18f18f6cf0f9cd829f66d9b1d3a6e2f9.svg",o={base:{brandColor:"#5932F3",backgroundColor:"#FFFFFF",primaryColor:"#000000",secondaryColor:"#D9D9D9",baseTextColor:"#1E1E1E",baseFontSize:"16px",baseFontFamily:"'Inter', sans-serif"},logo:{logoWidth:"30px",logoHeight:"30px"},heading:{headingColor:"#000000",headingFontSize:"32px",headingFontWeight:"normal",headingFontFamily:"'SeriouslyNostalgic Fn', serif"},subheading:{subheadingColor:"#4b5563",subheadingFontSize:"14px",subheadingFontWeight:"normal",subheadingFontFamily:"'Inter', sans-serif"},button:{buttonBackground:"#220B12",buttonFontSize:"14px",buttonFontFamily:"'Inter', sans-serif",buttonDisabledBackground:"#D9D9D9",buttonDisabledTextColor:"#000000",buttonTextColor:"#FFFFFF",buttonBorderRadius:"9999px"},input:{inputBackgroundColor:"#F9FAFC",inputTextColor:"#000000",inputPlaceholderColor:"#000000",inputBorderColor:"#F9FAFC",inputFontSize:"14px",inputFontWeight:"500",inputBorderRadius:"8px",inputErrorColor:"#000000",inputErrorFontSize:"4px"}};return s.useMemo(()=>({logo:e?.logo??t,loader:e?.loader||"",style:{...o,...e?.style||{}}}),[e])},exports.videoConstraints={width:1280,height:720,facingMode:"user"},exports.videoPoster="https://scan.syze.ai/publicAssets/video-poster.jpg",exports.videoTypes=["video/webm","video/mp4","video/mpeg"],exports.voiceOverAssetsPath="https://scan.syze.ai/publicAssets/new-voices-over/";
2
+ //# sourceMappingURL=Header-BiYtGF6l.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header-BiYtGF6l.js","sources":["../src/config/useLocalConfig.ts","../src/utils/constants.ts","../src/components/Header.tsx","../src/atoms/specificButton/SpecificButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { Config } from \"../types/interfaces\";\n\n\n/**\n * Ensures default style values are available even when config or nested properties are missing.\n * Merges deeply and memoizes the result for consistent performance.\n */\nexport const useLocalConfig = (config?: Config): Required<Config> => {\n const defaultConfig: Required<Config> = {\n logo: \"https://staging.scan.swanvision.ai/static/media/logo-icon-black.18f18f6cf0f9cd829f66d9b1d3a6e2f9.svg\",\n loader: \"../loader-black.gif\",\n style: {\n base:{\n brandColor: \"#5932F3\",\n backgroundColor: \"#FFFFFF\",\n primaryColor: \"#000000\",\n secondaryColor: \"#D9D9D9\",\n baseTextColor: \"#1E1E1E\",\n baseFontSize: \"16px\",\n baseFontFamily: \"'Inter', sans-serif\",\n },\n logo:{\n logoWidth: \"30px\",\n logoHeight: \"30px\",\n },\n heading:{\n headingColor: \"#000000\",\n headingFontSize: \"32px\",\n headingFontWeight: \"normal\",\n headingFontFamily: \"'SeriouslyNostalgic Fn', serif\",\n },\n subheading:{\n subheadingColor: \"#4b5563\",\n subheadingFontSize: \"14px\",\n subheadingFontWeight: \"normal\",\n subheadingFontFamily: \"'Inter', sans-serif\",\n },\n button:{\n buttonBackground: \"#220B12\",\n buttonFontSize: \"14px\",\n buttonFontFamily: \"'Inter', sans-serif\",\n buttonDisabledBackground: \"#D9D9D9\",\n buttonDisabledTextColor: \"#000000\",\n buttonTextColor: \"#FFFFFF\",\n buttonBorderRadius: \"9999px\",\n },\n input:{\n inputBackgroundColor: \"#F9FAFC\",\n inputTextColor: \"#000000\",\n inputPlaceholderColor: \"#000000\",\n inputBorderColor: \"#F9FAFC\",\n inputFontSize: \"14px\",\n inputFontWeight: \"500\",\n inputBorderRadius: \"8px\",\n inputErrorColor: \"#000000\",\n inputErrorFontSize:\"4px\"\n },\n },\n };\n\n return useMemo(() => ({\n logo: config?.logo ?? defaultConfig.logo,\n loader: config?.loader||\"\",\n style: {\n ...defaultConfig.style,\n ...(config?.style || {}),\n },\n }), [config]);\n};\n","import { StepType } from \"../types/interfaces\";\n\nexport const STEPS: Record<StepType, string> = {\n email: \"What is your email?\",\n name: \"What is your name?\",\n height: \"How tall are you?\",\n gender: \"Where do you shop?\",\n};\n\nexport const OUTFIT_IMAGES = [\n \"https://scan.syze.ai/publicAssets/outfit-1.png\",\n \"https://scan.syze.ai/publicAssets/outfit-2.png\",\n \"https://scan.syze.ai/publicAssets/outfit-3.png\",\n \"https://scan.syze.ai/publicAssets/outfit-4.png\",\n \"https://scan.syze.ai/publicAssets/outfit-5.png\",\n];\nexport const voiceOverAssetsPath =\n \"https://scan.syze.ai/publicAssets/new-voices-over/\";\nexport const maleScanVideo =\n \"https://scan.syze.ai/publicAssets/male-scan-mesh.mp4\";\nexport const femaleScanVideo =\n \"https://scan.syze.ai/publicAssets/scan-mesh.mp4\";\nexport const faceScanVideo =\n \"https://scan.syze.ai/publicAssets/face-scan-zoom.mp4\";\nexport const maleFaceScanVideo =\n \"https://scan.syze.ai/publicAssets/male-face-scan-zoom.mp4\";\nexport const bodyScanPerson =\n \"https://scan.syze.ai/publicAssets/body-scan-person.png\";\nexport const faceScanPerson =\n \"https://scan.syze.ai/publicAssets/face-scan-person.png\";\nexport const fittingGuide =\n \"https://scan.syze.ai/publicAssets/form-fitting-guide.png\";\nexport const leSableDress =\n \"https://scan.syze.ai/publicAssets/le-sable-dress-new.png\";\nexport const sizeSuggestions =\n \"https://scan.syze.ai/publicAssets/sizing-suggestions.mp4\";\nexport const maleSizeSuggestions =\n \"https://scan.syze.ai/publicAssets/male-sizing-suggestions.mp4\";\nexport const maleFormFittingGuide =\n \"https://scan.syze.ai/publicAssets/male-form-fitting.mp4\";\nexport const formFittingGuide =\n \"https://scan.syze.ai/publicAssets/form-fitting.mp4\";\nexport const fullText =\n \"Based on your bust measurement of 85.0 cm and waist measurement of 68.7 cm, a size S is suggested for the Le Sable Dress. This size corresponds to a bust of 86 cm and a waist of 67 cm, closely matching your measurements. The Le Sable Dress is designed for a slim fit & features a slightly stretchy fabric.\";\nexport const setupVideo =\n \"https://scan.syze.ai/publicAssets/phone-on-table.mp4\";\nexport const maleSetupVideo =\n \"https://scan.syze.ai/publicAssets/male-phone-on-table.mp4\";\nexport const pauseIcon = \"https://scan.syze.ai/publicAssets/pause-icon.svg\";\nexport const loaderGif = \"https://scan.syze.ai/publicAssets/loader.gif\";\nexport const loaderBlackGif =\n \"https://scan.syze.ai/publicAssets/loader-black.gif\";\nexport const qrError = \"https://scan.syze.ai/publicAssets/qrError.svg\";\nexport const videoPoster = \"https://scan.syze.ai/publicAssets/video-poster.jpg\";\nexport const measurementProgress =\n \"https://scan.syze.ai/publicAssets/measurement-progress.mp4\";\nexport const maleMeasurementProgress =\n \"https://scan.syze.ai/publicAssets/male-measurement-progress.mp4\";\nconst maleVideoPoster =\n \"https://scan.syze.ai/publicAssets/male-video-poster.png\";\nconst femaleVideoPoster =\n \"https://scan.syze.ai/publicAssets/female-video-poster.png\";\n\nexport const videoTypes = [\"video/webm\", \"video/mp4\", \"video/mpeg\"];\n\nexport const CLOTHING_CUSTOM_FIT_SCAN = \"clothing_custom_fit_scan\";\nexport const CLOTHING_SCAN_WITH_TRY_ON = \"clothing_scan_with_try_on\";\nexport const CLOTHING_SCAN_ONLY = \"clothing_scan_only\";\nexport const CLOTHING_CUSTOM_SCAN = \"clothing_custom_scan\";\nexport const CLOTHING_TRY_ON_SCAN = \"clothing_try_on_scan\";\nexport const CLOTHING_SCAN = \"clothing_scan\";\nexport const CLOTHING_BANNER_SCAN = \"clothing_banner_scan\";\nexport const CLOTHING_TRYON_CONSUMER_SCAN = \"clothing_tryon_consumer_scan\";\n\nexport const TENSORFLOW_SOLUTION_PATH =\n \"https://cdn.jsdelivr.net/npm/@mediapipe/pose\";\n\nexport const posthogPublicKey =\n \"phc_S1Z71u2vBqoH9LhrpckEJoroobYhvHzM1fnjIqse41A\";\nexport const posthogPublicHost = \"https://app.posthog.com\";\n\nexport const LanguageKeys = {\n Custom_Scan: \"Custom_Scan\",\n Find_your_perfect_fit: \"Find_your_perfect_fit\",\n One_time_setup_in_2_min_or_less: \"One_time_setup_in_2_min_or_less\",\n PRIVACY: \"PRIVACY\",\n Swan_encrypts_your_data_with_Ever_vault_and_ensures_your_video_is_not_seen_by_anyone:\n \"Swan_encrypts_your_data_with_Ever_vault_and_ensures_your_video_is_not_seen_by_anyone\",\n By_ticking_this_box_you_are_agreeing_to_our:\n \"By_ticking_this_box_you_are_agreeing_to_our\",\n privacy_policy: \"privacy_policy\",\n Get_Measured: \"Get_Measured\",\n Login: \"Login\",\n Where_do_you_shop: \"Where_do_you_shop\",\n Men_s: \"Men_s\",\n Women_s: \"Women_s\",\n Next: \"Next\",\n Preferred_language: \"Preferred_language\",\n Hindi: \"Hindi\",\n English: \"English\",\n French: \"French\",\n Spanish: \"Spanish\",\n German: \"German\",\n Italian: \"Italian\",\n Arabic: \"Arabic\",\n Phone_Model: \"Phone_Model\",\n Select_phone_brand: \"Select_phone_brand\",\n Select_phone_model: \"Select_phone_model\",\n Measurement_tips: \"Measurement_tips\",\n Tips_for_your_scan: \"Tips_for_your_scan\",\n Watch_this_video_to_know_how_to_scan: \"Watch_this_video_to_know_how_to_scan\",\n How_to_use_Swan: \"How_to_use_Swan\",\n Watch_this_short_video_to_know_how_to_use:\n \"Watch_this_short_video_to_know_how_to_use\",\n Shop: \"Shop\",\n Skip: \"Skip\",\n Form_fitting_clothing: \"Form_fitting_clothing\",\n How_form_is_fitting_your_outfit: \"How_form_is_fitting_your_outfit\",\n For_accurate_scan_please_wear_tight_clothing_Here_s_an_example:\n \"For_accurate_scan_please_wear_tight_clothing_Here_s_an_example\",\n Scan_with_form_fitting: \"Scan_with_form_fitting\",\n Scan_with_form_loose_fit: \"Scan_with_form_loose_fit\",\n Turn_up_your_volume: \"Turn_up_your_volume\",\n For_smart_voice_guide: \"For_smart_voice_guide\",\n Place_your_phone_on_a_table_at: \"Place_your_phone_on_a_table_at\",\n a_hip_height: \"a_hip_height\",\n Scan: \"Scan\",\n Height: \"Height\",\n Height_in_ft: \"Height_in_ft\",\n Height_in_inch: \"Height_in_inch\",\n How_tall_are_you: \"How_tall_are_you\",\n We_are_sorry_we_currently_do_not_support_this_heights_outside_of_5_ft_and_7_ft_We_are_working_on_new_models_that_do:\n \"We_are_sorry_we_currently_do_not_support_this_heights_outside_of_5_ft_and_7_ft_We_are_working_on_new_models_that_do\",\n Confirm: \"Confirm\",\n To_start_your_measurement: \"To_start_your_measurement\",\n Scan_this_QR_code_with_your_phone: \"Scan_this_QR_code_with_your_phone\",\n You_can_continue_from_here_after_your_scan:\n \"You_can_continue_from_here_after_your_scan\",\n Failed_to_get_measurements: \"Failed_to_get_measurements\",\n No_data_found_Go_back_to: \"No_data_found_Go_back_to\",\n back: \"back\",\n Profile: \"Profile\",\n shopify: \"shopify\",\n fit_view_result: \"fit_view_result\",\n Nest: \"Nest\",\n Scan_again: \"Scan_again\",\n Provide_feedback: \"Provide_feedback\",\n Add_to_cart: \"Add_to_cart\",\n Back_to_product: \"Back_to_product\",\n Fit_Notes: \"Fit_Notes\",\n Fitted: \"Fitted\",\n Ideal_fit: \"Ideal_fit\",\n Relaxed: \"Relaxed\",\n Wrong_email_format: \"Wrong_email_format\",\n Something_went_wrong: \"Something_went_wrong\",\n Email_is_required: \"Email_is_required\",\n Scan_status: \"Scan_status\",\n Uploading: \"Uploading\",\n Processing: \"Processing\",\n Finishing: \"Finishing\",\n Complete: \"Complete\",\n You_re_logged_in: \"You_re_logged_in\",\n Swan_will_load_on_every_supported_page:\n \"Swan_will_load_on_every_supported_page\",\n Happy_Shopping: \"Happy_Shopping\",\n Email_verification_failed: \"Email_verification_failed\",\n Email_Confirmed: \"Email_Confirmed\",\n Measurements_saved: \"Measurements_saved\",\n Login_anywhere_you_see_the_Swan_logo_to_load_your_measurements:\n \"Login_anywhere_you_see_the_Swan_logo_to_load_your_measurements\",\n Check_your_email: \"Check_your_email\",\n Tap_on_the_verification_link_sent_to: \"Tap_on_the_verification_link_sent_to\",\n Email_Confirmation: \"Email_Confirmation\",\n Save_your_scan: \"Save_your_scan\",\n Confirm_with_a_single_tap_from_your_email_inbox:\n \"Confirm_with_a_single_tap_from_your_email_inbox\",\n Saving_your_scan_means_you_can_load_your_measurements_anywhere_you_see_the_Swan_logo:\n \"Saving_your_scan_means_you_can_load_your_measurements_anywhere_you_see_the_Swan_logo\",\n Passwordless_Just_one_tap_via_email: \"Passwordless_Just_one_tap_via_email\",\n Join_2000_shoppers: \"Join_2000_shoppers\",\n Your_measurements_will_be_shared_only_once_your_email_is_confirmed:\n \"Your_measurements_will_be_shared_only_once_your_email_is_confirmed\",\n Enter_your_email: \"Enter_your_email\",\n Send_confirmation_email: \"Send_confirmation_email\",\n No_thanks: \"No_thanks\",\n We_are_sorry: \"We're_sorry\",\n Video_tips_for_scanning: \"Video_tips_for_scanning\",\n Please_make_sure_to: \"Please_make_sure_to\",\n one_Complete_a_full_spin_Starting_and_finishing_with_your_feet_facing_your_phone:\n \"one_Complete_a_full_spin_Starting_and_finishing_with_your_feet_facing_your_phone\",\n two_Rotate_slowly_throughout_your_spin:\n \"two_Rotate_slowly_throughout_your_spin\",\n three_Make_sure_your_full_body_including_feet_and_hands_are_visible_in_frame:\n \"three_Make_sure_your_full_body_including_feet_and_hands_are_visible_in_frame\",\n Scan_s: \"Scan_s\",\n vision_model: \"vision_model\",\n is_at_capacity: \"is_at_capacity\",\n We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon:\n \"We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon\",\n Oops: \"Oops\",\n Looks_like_this_QR_code_is_not_valid: \"Looks_like_this_QR_code_is_not_valid\",\n Reload_your_desktop_tab_to_generate_a_new_code:\n \"Reload_your_desktop_tab_to_generate_a_new_code\",\n Magic_link: \"Magic_link\",\n We_have_sent_you_a_magic_link_via_email:\n \"We_have_sent_you_a_magic_link_via_email\",\n Please_confirm_your_email_load_your_measurements_on_any_partner_brand:\n \"Please_confirm_your_email_load_your_measurements_on_any_partner_brand\",\n Welcome_back: \"Welcome_back\",\n Load_my_account: \"Load_my_account\",\n Back_to_home: \"Back_to_home\",\n Enter_a_valid_email: \"Enter_a_valid_email\",\n No_measurement_found_for_this_email: \"No_measurement_found_for_this_email\",\n Reset: \"Reset\",\n Resume: \"Resume\",\n Start_Scan: \"Start_Scan\",\n Scanning: \"Scanning\",\n Detecting_Body: \"Detecting_Body\",\n Stop: \"Stop\",\n Generating_Measurements: \"Generating_Measurements\",\n Help: \"Help\",\n Scan_tips: \"Scan_tips\",\n Watch_instructions_video: \"Watch_instructions_video\",\n Wear_form_fitting_clothing_for_the_most_accurate_results:\n \"Wear_form_fitting_clothing_for_the_most_accurate_results\",\n Position_yourself_in_a_brightly_lit_room:\n \"Position_yourself_in_a_brightly_lit_room\",\n Tie_up_long_hair_and_slip_off_your_shoes:\n \"Tie_up_long_hair_and_slip_off_your_shoes\",\n Back: \"Back\",\n Swan: \"Swan\",\n Please_check_your_setting_for_camera_permission:\n \"Please_check_your_setting_for_camera_permission\",\n Settings: \"Settings\",\n Enable_the_camera_permissions: \"Enable_the_camera_permissions\",\n Go_Back: \"Go_Back\",\n Measurements_have_been_shared: \"Measurements_have_been_shared\",\n For_helping_in_getting: \"For_helping_in_getting\",\n Thank_You: \"Thank_You\",\n live: \"live\",\n Your: \"Your\",\n Check_back_soon_to_use_Swan: \"Check_back_soon_to_use_Swan\",\n custom_for_your_next_order: \"custom_for_your_next_order\",\n sevenTillEight: \"7till8\",\n Rhodes_and_Beckett: \"Rhodes_and_Beckett\",\n Send_invite: \"Send_invite\",\n Your_Nest: \"Your_Nest\",\n Share_your_measurements_to_shop_and_gift_for_those_close_to_you:\n \"Share_your_measurements_to_shop_and_gift_for_those_close_to_you\",\n Invite_to_Swan: \"Invite_to_Swan\",\n Name: \"Name\",\n Enter_their_name: \"Enter_their_name\",\n Enter_their_email: \"Enter_their_email\",\n Message: \"Message\",\n Join_Swan: \"Join_Swan\",\n Email: \"Email\",\n Invite: \"Invite\",\n Your_Login: \"Your_Login\",\n Your_Scans: \"Your_Scans\",\n Talk_with_the_CEO: \"Talk_with_the_CEO\",\n Send_me_an_email: \"Send_me_an_email\",\n At_Swan_we_are_here_to_make_shopping_about_you_I_would_love_to_hear_what_you_think_of_Swan_and_what_you_want_to_see_next_I_am_excited_to_hear_your_feedback:\n \"At_Swan_we_are_here_to_make_shopping_about_you_I_would_love_to_hear_what_you_think_of_Swan_and_what_you_want_to_see_next_I_am_excited_to_hear_your_feedback\",\n Eoin: \"Eoin\",\n You_can_close_this_tab_and_return_to_the_original_to_get_your_sizing_suggestion:\n \"You_can_close_this_tab_and_return_to_the_original_to_get_your_sizing_suggestion\",\n Try_On: \"Try_On\",\n Invite_friends: \"Invite_friends\",\n Pending: \"Pending\",\n Decline: \"Decline\",\n gifting_simple: \"gifting_simple\",\n Invite_friends_and_make: \"Invite_friends_and_make\",\n Nest_will_be_able_to_see_and_size_clothes_on_you:\n \"Nest_will_be_able_to_see_and_size_clothes_on_you\",\n By_sharing_your_Swan_profile_those_in_your:\n \"By_sharing_your_Swan_profile_those_in_your\",\n Enter_your_name: \"Enter_your_name\",\n Failed_to_get_tryon: \"Failed_to_get_tryon\",\n In_Progress: \"In_Progress\",\n Go_back_to: \"Go_back_to\",\n};\n\nexport const videoConstraints = {\n width: 1280,\n height: 720,\n facingMode: \"user\",\n};\n\nexport const GENDER = {\n male: {\n PRE_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_MALE_V02/SWAN_AI_Video_02_PRESCAN_MALE_V02-output.m3u8\",\n POST_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_MALE_V02/SWAN_AI_Video_03_POSTS0CAN_MALE_V02-output.m3u8\",\n },\n female: {\n PRE_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_02_PRESCAN_V02/SWAN_AI_Video_02_PRESCAN_V02-output.m3u8\",\n POST_LINK:\n \"https://swan-video-assets.getswan.co/SWAN_AI_Video_03_POSTS0CAN_V02/SWAN_AI_Video_03_POSTS0CAN_V02-output.m3u8\",\n },\n};\n\nexport const VIDEO_POSTER_GENDER_BASED = {\n male: maleVideoPoster,\n female: femaleVideoPoster,\n};\n\nexport const FACE_SCAN_HEADSHOT = {\n male: {\n forward: \"https://scan.syze.ai/publicAssets/male-face-forward.mp4\",\n left: \"https://scan.syze.ai/publicAssets/male-face-left.mp4\",\n right: \"https://scan.syze.ai/publicAssets/male-face-right.mp4\",\n smile: \"https://scan.syze.ai/publicAssets/male-face-smile.mp4\",\n },\n female: {\n forward: \"https://scan.syze.ai/publicAssets/face-forward.mp4\",\n left: \"https://scan.syze.ai/publicAssets/face-left.mp4\",\n right: \"https://scan.syze.ai/publicAssets/face-right.mp4\",\n smile: \"https://scan.syze.ai/publicAssets/face-smile.mp4\",\n },\n};\n\nexport const glassesOffVideo =\n \"https://scan.syze.ai/publicAssets/glasses-off.mp4\";\nexport const maleGlassesOffVideo =\n \"https://scan.syze.ai/publicAssets/male-glasses-off.mp4\";\n\nexport const heroMaleModel = \"https://scan.syze.ai/publicAssets/hero-male.glb\";\nexport const heroFemaleModel =\n \"https://scan.syze.ai/publicAssets/hero-female.glb\";\n\nexport const directionMessages = [\n \"Face front\",\n \"Turn head fully left\",\n \"Turn head fully right\",\n \"Smile facing front\",\n];\n","import React from \"react\";\n\ninterface HeaderProps {\ntitle?: string;\nsubtitle?: string;\nresolvedConfig?: any;\nnoTitle?: boolean;\n}\n\nconst Header: React.FC<HeaderProps> = ({ title, subtitle, resolvedConfig, noTitle }) => {\n return (\n <>\n {resolvedConfig?.logo && (\n <div className=\"flex justify-start w-full\">\n <img\n src={resolvedConfig.logo}\n alt=\"logo\"\n style={{\n height: resolvedConfig?.style?.logo?.logoHeight,\n width: resolvedConfig?.style?.logo?.logoWidth,\n }}\n />\n </div>\n \n )}\n {!noTitle && <h1\n style={{\n fontFamily: resolvedConfig?.style?.heading?.headingFontFamily || \"SeriouslyNostalgic Fn\",\n fontSize: resolvedConfig?.style?.heading?.headingFontSize || \"32px\",\n color: resolvedConfig?.style?.heading?.headingColor || \"#000\",\n fontWeight: resolvedConfig?.style?.heading?.headingFontWeight || \"normal\",\n }}\n className=\"text-center\"\n >\n {title ? title :\"Welcome to Swan\"} \n </h1>}\n {subtitle && <p\n style={{\n fontFamily:\n resolvedConfig?.style?.subheading?.subheadingFontFamily ||\n \"'Inter', sans-serif\",\n fontSize:\n resolvedConfig?.style?.subheading?.subheadingFontSize || \"14px\",\n color:\n resolvedConfig?.style?.subheading?.subheadingColor || \"#4b5563\",\n fontWeight:\n resolvedConfig?.style?.subheading?.subheadingFontWeight || \"normal\",\n }}\n >{subtitle}</p>} \n </>\n );\n};\n\nexport default Header;\n","/* eslint-disable react/button-has-type */\nimport React from \"react\";\n\ninterface SpecificButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n buttonFunc?: React.MouseEventHandler<HTMLButtonElement>;\n prefix?: string;\n postfixIcon?: React.ReactNode;\n className?: string;\n buttonText?: string;\n btnSecondary?: boolean;\n loading?: boolean;\n disabled?: boolean;\n type?: \"button\" | \"submit\" | \"reset\";\n id?: string;\n resolvedConfig?: any;\n}\n\nconst SpecificButton: React.FC<SpecificButtonProps> = ({\n buttonFunc,\n prefix,\n postfixIcon,\n className = \"\",\n buttonText,\n btnSecondary,\n loading = false,\n disabled = false,\n type = \"button\",\n id = \"button\",\n resolvedConfig,\n ...props\n}) => {\n\n return (\n <button\n {...props}\n id={id}\n type={type}\n disabled={disabled}\n onClick={buttonFunc}\n className={`${className} ${\"flex min-h-[33px] gap-[5px] border-none cursor-pointer items-center shadow-[0_1px_1px_rgba(0,0,0,0.251)] justify-center [&_svg]:size-[16px] [&_svg]:shrink-0 rounded-[9999px] min-w-[120px] text-[14px] px-6 disabled:shadow-none py-[6px]\"\n }`}\n style={{\n fontFamily: resolvedConfig?.style?.button?.buttonFontFamily || 'Inter, sans-serif',\n fontSize: resolvedConfig?.style?.button?.buttonFontSize || '14px',\n background:disabled?(resolvedConfig?.style?.button?.buttonDisabledBackground) :(btnSecondary? resolvedConfig?.style?.base?.brandColor :resolvedConfig?.style?.button?.buttonBackground) || '#000',\n color:disabled?resolvedConfig?.style?.button?.buttonDisabledTextColor : resolvedConfig?.style?.button?.buttonTextColor || '#fff',\n fontWeight: resolvedConfig?.style?.button?.headingFontWeight || 'normal',\n pointerEvents: disabled ? 'none' : 'auto',\n borderRadius: resolvedConfig?.style?.button?.buttonBorderRadius || '9999px',\n }}\n >\n {prefix && <img className=\"w-[20px] h-[20px]\" src={prefix} alt=\"icon\" />}\n {buttonText}\n {postfixIcon && postfixIcon}\n {/* {loading && disabled && <CircularProgress size={15} />} */}\n </button>\n );\n};\n\nexport default SpecificButton;\n"],"names":["VIDEO_POSTER_GENDER_BASED","male","female","PRE_LINK","POST_LINK","title","subtitle","resolvedConfig","noTitle","_jsxs","_Fragment","children","logo","_jsx","className","src","alt","style","height","logoHeight","width","logoWidth","fontFamily","heading","headingFontFamily","fontSize","headingFontSize","color","headingColor","fontWeight","headingFontWeight","subheading","subheadingFontFamily","subheadingFontSize","subheadingColor","subheadingFontWeight","Scan_s","vision_model","is_at_capacity","We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon","Start_Scan","Please_check_your_setting_for_camera_permission","Settings","Enable_the_camera_permissions","email","name","gender","buttonFunc","prefix","postfixIcon","buttonText","btnSecondary","loading","disabled","type","id","props","onClick","button","buttonFontFamily","buttonFontSize","background","buttonDisabledBackground","base","brandColor","buttonBackground","buttonDisabledTextColor","buttonTextColor","pointerEvents","borderRadius","buttonBorderRadius","config","defaultConfig","backgroundColor","primaryColor","secondaryColor","baseTextColor","baseFontSize","baseFontFamily","input","inputBackgroundColor","inputTextColor","inputPlaceholderColor","inputBorderColor","inputFontSize","inputFontWeight","inputBorderRadius","inputErrorColor","inputErrorFontSize","useMemo","loader","facingMode"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingScreen-B5M1cok3.js","sources":["../src/components/LoadingScreen.tsx"],"sourcesContent":["import { loaderBlackGif, loaderGif } from \"../utils/constants\";\n\nfunction LoadingScreen({ size = 60, loaderType = \"default\", url }: { size?: number; loaderType?: string; url?: string }) {\n\treturn (\n\t\t<div className=\"flex items-center justify-center h-full w-full\">\n\t\t\t<img src={url || (loaderType === \"black\" ? loaderBlackGif : loaderGif)} alt=\"Swan logo\" className={`w-[${size}px]`} width={size} />\n\t\t</div>\n\t);\n}\n\nexport default LoadingScreen;\n"],"names":["size","loaderType","url","_jsx","className","children","src","loaderBlackGif","loaderGif","alt","width"],"mappings":"wGAEA,UAAuBA,KAAEA,EAAO,GAAEC,WAAEA,EAAa,UAASC,IAAEA,IAC3D,OACCC,MAAA,MAAA,CAAKC,UAAU,iDAAgDC,SAC9DF,EAAAA,WAAKG,IAAKJ,IAAuB,UAAfD,EAAyBM,iBAAiBC,EAAAA,WAAYC,IAAI,YAAYL,UAAW,MAAMJ,OAAWU,MAAOV,KAG9H"}
1
+ {"version":3,"file":"LoadingScreen-B5M1cok3.js","sources":["../src/components/LoadingScreen.tsx"],"sourcesContent":["import { loaderBlackGif, loaderGif } from \"../utils/constants\";\n\nfunction LoadingScreen({ size = 60, loaderType = \"default\", url }: { size?: number; loaderType?: string; url?: string }) {\n\treturn (\n\t\t<div className=\"flex items-center justify-center h-full w-full\">\n\t\t\t<img src={url ? url: (loaderType === \"black\" ? loaderBlackGif : loaderGif)} alt=\"Swan logo\" className={`w-[${size}px]`} width={size} />\n\t\t</div>\n\t);\n}\n\nexport default LoadingScreen;\n"],"names":["size","loaderType","url","_jsx","className","children","src","loaderBlackGif","loaderGif","alt","width"],"mappings":"wGAEA,UAAuBA,KAAEA,EAAO,GAAEC,WAAEA,EAAa,UAASC,IAAEA,IAC3D,OACCC,EAAAA,WAAKC,UAAU,iDAAgDC,SAC9DF,MAAA,MAAA,CAAKG,IAAKJ,IAA2B,UAAfD,EAAyBM,EAAAA,eAAiBC,EAAAA,WAAYC,IAAI,YAAYL,UAAW,MAAMJ,OAAWU,MAAOV,KAGlI"}
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingScreen-BAi9IQ7c.js","sources":["../src/components/LoadingScreen.tsx"],"sourcesContent":["import { loaderBlackGif, loaderGif } from \"../utils/constants\";\n\nfunction LoadingScreen({ size = 60, loaderType = \"default\", url }: { size?: number; loaderType?: string; url?: string }) {\n\treturn (\n\t\t<div className=\"flex items-center justify-center h-full w-full\">\n\t\t\t<img src={url || (loaderType === \"black\" ? loaderBlackGif : loaderGif)} alt=\"Swan logo\" className={`w-[${size}px]`} width={size} />\n\t\t</div>\n\t);\n}\n\nexport default LoadingScreen;\n"],"names":["LoadingScreen","size","loaderType","url","_jsx","className","children","src","loaderBlackGif","loaderGif","alt","width"],"mappings":"wFAEA,SAASA,GAAcC,KAAEA,EAAO,GAAEC,WAAEA,EAAa,UAASC,IAAEA,IAC3D,OACCC,EAAA,MAAA,CAAKC,UAAU,iDAAgDC,SAC9DF,SAAKG,IAAKJ,IAAuB,UAAfD,EAAyBM,EAAiBC,GAAYC,IAAI,YAAYL,UAAW,MAAMJ,OAAWU,MAAOV,KAG9H"}
1
+ {"version":3,"file":"LoadingScreen-BAi9IQ7c.js","sources":["../src/components/LoadingScreen.tsx"],"sourcesContent":["import { loaderBlackGif, loaderGif } from \"../utils/constants\";\n\nfunction LoadingScreen({ size = 60, loaderType = \"default\", url }: { size?: number; loaderType?: string; url?: string }) {\n\treturn (\n\t\t<div className=\"flex items-center justify-center h-full w-full\">\n\t\t\t<img src={url ? url: (loaderType === \"black\" ? loaderBlackGif : loaderGif)} alt=\"Swan logo\" className={`w-[${size}px]`} width={size} />\n\t\t</div>\n\t);\n}\n\nexport default LoadingScreen;\n"],"names":["LoadingScreen","size","loaderType","url","_jsx","className","children","src","loaderBlackGif","loaderGif","alt","width"],"mappings":"wFAEA,SAASA,GAAcC,KAAEA,EAAO,GAAEC,WAAEA,EAAa,UAASC,IAAEA,IAC3D,OACCC,SAAKC,UAAU,iDAAgDC,SAC9DF,EAAA,MAAA,CAAKG,IAAKJ,IAA2B,UAAfD,EAAyBM,EAAiBC,GAAYC,IAAI,YAAYL,UAAW,MAAMJ,OAAWU,MAAOV,KAGlI"}
@@ -0,0 +1,2 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{D as r,E as a}from"./Header-BhrDARhH.js";function l({size:l=60,loaderType:t="default",url:s}){return e("div",{className:"flex items-center justify-center h-full w-full",children:e("img",{src:s||("black"===t?r:a),alt:"Swan logo",className:`w-[${l}px]`,width:l})})}export{l as L};
2
+ //# sourceMappingURL=LoadingScreen-BXF96hkf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingScreen-BXF96hkf.js","sources":["../src/components/LoadingScreen.tsx"],"sourcesContent":["import { loaderBlackGif, loaderGif } from \"../utils/constants\";\n\nfunction LoadingScreen({ size = 60, loaderType = \"default\", url }: { size?: number; loaderType?: string; url?: string }) {\n\treturn (\n\t\t<div className=\"flex items-center justify-center h-full w-full\">\n\t\t\t<img src={url ? url: (loaderType === \"black\" ? loaderBlackGif : loaderGif)} alt=\"Swan logo\" className={`w-[${size}px]`} width={size} />\n\t\t</div>\n\t);\n}\n\nexport default LoadingScreen;\n"],"names":["LoadingScreen","size","loaderType","url","_jsx","className","children","src","loaderBlackGif","loaderGif","alt","width"],"mappings":"wFAEA,SAASA,GAAcC,KAAEA,EAAO,GAAEC,WAAEA,EAAa,UAASC,IAAEA,IAC3D,OACCC,SAAKC,UAAU,iDAAgDC,SAC9DF,EAAA,MAAA,CAAKG,IAAKJ,IAA2B,UAAfD,EAAyBM,EAAiBC,GAAYC,IAAI,YAAYL,UAAW,MAAMJ,OAAWU,MAAOV,KAGlI"}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("./Header-BiYtGF6l.js");exports.LoadingScreen=function({size:l=60,loaderType:a="default",url:i}){return e.jsx("div",{className:"flex items-center justify-center h-full w-full",children:e.jsx("img",{src:i||("black"===a?r.loaderBlackGif:r.loaderGif),alt:"Swan logo",className:`w-[${l}px]`,width:l})})};
2
+ //# sourceMappingURL=LoadingScreen-D7OUJo45.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingScreen-D7OUJo45.js","sources":["../src/components/LoadingScreen.tsx"],"sourcesContent":["import { loaderBlackGif, loaderGif } from \"../utils/constants\";\n\nfunction LoadingScreen({ size = 60, loaderType = \"default\", url }: { size?: number; loaderType?: string; url?: string }) {\n\treturn (\n\t\t<div className=\"flex items-center justify-center h-full w-full\">\n\t\t\t<img src={url ? url: (loaderType === \"black\" ? loaderBlackGif : loaderGif)} alt=\"Swan logo\" className={`w-[${size}px]`} width={size} />\n\t\t</div>\n\t);\n}\n\nexport default LoadingScreen;\n"],"names":["size","loaderType","url","_jsx","className","children","src","loaderBlackGif","loaderGif","alt","width"],"mappings":"wGAEA,UAAuBA,KAAEA,EAAO,GAAEC,WAAEA,EAAa,UAASC,IAAEA,IAC3D,OACCC,EAAAA,WAAKC,UAAU,iDAAgDC,SAC9DF,MAAA,MAAA,CAAKG,IAAKJ,IAA2B,UAAfD,EAAyBM,EAAAA,eAAiBC,EAAAA,WAAYC,IAAI,YAAYL,UAAW,MAAMJ,OAAWU,MAAOV,KAGlI"}