{"version":3,"file":"CMSYouTubeTutorial.2KGFFlER.mjs","names":["React.forwardRef","React.useMemo","__esmMin","init_npm_react_18_3_1","pe","init_jsx_runtime","J","c","p","motion","addPropertyControls","init_framer_BkYB2Gqq","withCSS","useSVGTemplate","cx","ControlType","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_gXjG4ReaI","props","rest","animated","width1","color","restProps","href","className","P_DcoRcrY","JEeZYcamG","style","getYouTubeVideoId","value","input","parsed","host","pathSegments","CMSYouTubeTutorial","videoId","videoUrl","embedUrl","init_CMSYouTubeTutorial"],"sources":["https:/framerusercontent.com/modules/4G0pHPXdxDC0q34eFfFr/oq0PkaqnOfre09AZeL9M/gXjG4ReaI.js","https:/framerusercontent.com/modules/hMMKoaiEyZo6ZQHIo6FV/hLL36axjuMPFhUyaakSa/CMSYouTubeTutorial.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 0 L 14 0\" fill=\"transparent\" height=\"1px\" id=\"h3fQSrHEV\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(5 12)\" width=\"14px\"/><path d=\"M 0 0 L 7 7 L 0 14\" fill=\"transparent\" height=\"14px\" id=\"DAe82Eor1\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(12 5)\" width=\"7px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"1175957644\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-SYorz\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-SYorz { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Arrow Right\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-SYorz\");Icon.displayName=\"Arrow Right\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"Arrow Right\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function getYouTubeVideoId(input){const value=input.trim();if(!value)return null;let parsed;try{parsed=new URL(value);}catch{return null;}const host=parsed.hostname.toLowerCase().replace(/^www\\./,\"\");const pathSegments=parsed.pathname.split(\"/\").filter(Boolean);if(host===\"youtu.be\"){const id=pathSegments[0];return id?id:null;}if(host===\"youtube.com\"||host===\"m.youtube.com\"){if(parsed.pathname===\"/watch\"){const id=parsed.searchParams.get(\"v\");return id?id:null;}if(pathSegments[0]===\"shorts\"||pathSegments[0]===\"embed\"){const id=pathSegments[1];return id?id:null;}}return null;}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CMSYouTubeTutorial(props){const{videoUrl,style}=props;const videoId=React.useMemo(()=>getYouTubeVideoId(videoUrl),[videoUrl]);const embedUrl=React.useMemo(()=>{if(!videoId)return\"\";return`https://www.youtube.com/embed/${videoId}`;},[videoId]);if(!embedUrl)return null;return /*#__PURE__*/_jsx(\"section\",{dir:\"rtl\",style:{position:\"relative\",width:\"100%\",background:\"#F5F5F5\",color:\"#000000\",padding:\"72px 24px\",fontFamily:'\"Tajawal\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',...style},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:\"1170px\",margin:\"0 auto\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",background:\"#ff8200\",color:\"#ffffff\",padding:\"6px 12px\",borderRadius:\"999px\",fontSize:\"13px\",fontWeight:700,lineHeight:1,marginBottom:\"16px\",whiteSpace:\"nowrap\"},children:\"فيديو تعليمي\"}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:\"40px\",lineHeight:1.1,letterSpacing:\"-0.02em\",marginBottom:\"12px\"},children:\"شاهد فيديو سيزر لفت\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:\"18px\",lineHeight:1.6,color:\"#222222\",marginBottom:\"32px\"},children:\"تعرّف على طريقة الاستخدام والمزايا الأساسية للمعدة.\"}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",paddingTop:\"56.25%\",borderRadius:\"14px\",overflow:\"hidden\",background:\"#000000\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:embedUrl,title:\"فيديو تعليمي عن سيزر لفت\",loading:\"lazy\",allow:\"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\",allowFullScreen:true,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0}})})]})});}addPropertyControls(CMSYouTubeTutorial,{videoUrl:{type:ControlType.String,title:\"YouTube Link\",defaultValue:\"\",placeholder:\"https://youtu.be/...\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSYouTubeTutorial\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSYouTubeTutorial.map"],"mappings":"A,qTACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGwB,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUf,EAAO,OAAOQ,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,6lBAAmmB,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,SAAO,GAAGD,MAAgB,CAAC,GAAGA,EAAM,UAAUG,GAAQH,EAAM,WAAW,EAAE,UAAUI,GAAOJ,EAAM,WAAW,cAAc,GASz4C,EAAKZ,EATq6CZ,kBAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,GAAG6B,GAAWR,EAASG,CAAK,EAAQM,EAAKjB,EAAe,aAAaO,CAAG,EAAE,MAAoB,gBAAKD,EAAI,CAAC,GAAGU,EAAU,UAAUf,EAAG,eAAeiB,CAAS,EAAW,WAAa,MAAI,KAAK,eAAe,MAAM,CAAC,YAAYC,EAAU,WAAWC,EAAU,GAAGC,CAAK,EAAE,QAAQ,YAAY,SAAsB,gBAAK,MAAM,CAAM,MAAI,CAAC,CAAC,CAAC,CAAE,CAS/zD,EAAE,CAT20D,iCAAiClB,EAAK,2CAA2CA,EAA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