{"version":3,"file":"PortraitServiceVideo.C5qGtFsF.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_BpuvUAiZ","addPropertyControls","useLocaleInfo","PortraitServiceVideo","l","activeLocale","isThai","src","thai","english","style","title","init_PortraitServiceVideo","ControlType"],"sources":["https:/framerusercontent.com/modules/DK7fmlDReWaI1X3mFRkZ/RcmOVw30wcjJljy7iAS0/PortraitServiceVideo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useLocaleInfo}from\"framer\";/** @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any */export default function PortraitServiceVideo({english,thai,title=\"Service video\",style}){const{activeLocale}=useLocaleInfo();const l=activeLocale;const isThai=String(l?.code||\"\").toLowerCase().startsWith(\"th\")||String(l?.slug||\"\").toLowerCase()===\"th\"||String(l?.name||\"\").toLowerCase().includes(\"thai\");const src=isThai?thai:english;return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:16,background:\"#0e0b12\",color:\"#fff\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:\"Inter, sans-serif\"},children:src?/*#__PURE__*/_jsx(\"video\",{src:src,controls:true,playsInline:true,preload:\"metadata\",\"aria-label\":title,style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}},src):/*#__PURE__*/_jsx(\"span\",{style:{padding:24,textAlign:\"center\",opacity:.7,fontSize:14},children:isThai?\"เพิ่มวิดีโอภาษาไทย\":\"Add a portrait video\"})});}addPropertyControls(PortraitServiceVideo,{title:{type:ControlType.String,title:\"Title\"},english:{type:ControlType.File,title:\"English Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},thai:{type:ControlType.File,title:\"Thai Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PortraitServiceVideo\",\"slots\":[],\"annotations\":{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