"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[536],{50517:function(e,t,s){s.d(t,{Z:function(){return social_icons}});var a=s(85893),r=s(7395);let l={facebook:function(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})},youtube:function(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{d:"M23.499 6.203a3.008 3.008 0 00-2.089-2.089c-1.87-.501-9.4-.501-9.4-.501s-7.509-.01-9.399.501a3.008 3.008 0 00-2.088 2.09A31.258 31.26 0 000 12.01a31.258 31.26 0 00.523 5.785 3.008 3.008 0 002.088 2.089c1.869.502 9.4.502 9.4.502s7.508 0 9.399-.502a3.008 3.008 0 002.089-2.09 31.258 31.26 0 00.5-5.784 31.258 31.26 0 00-.5-5.808zm-13.891 9.4V8.407l6.266 3.604z"})})},linkedin:function(e){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})},twitter:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})})},tiktok:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"})})},podcast:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M5.0056.0056c-.2362.0208-.4667.1034-.6462.2366C1.7274 2.2537.1728 4.9759.2924 8.289c.1197 3.1949 1.6743 6.2709 4.067 8.0458.2393.1183.4795.2366.7188.2366.3589 0 .7172-.1182.9564-.4732.4786-.5917.3594-1.3013-.2388-1.6563-1.9142-1.3016-3.1105-3.7863-3.1105-6.1529 0-2.4848 1.0767-4.6157 3.1105-6.154.5982-.355.5977-1.183.2388-1.6562-.2243-.3698-.6353-.508-1.029-.4732Zm13.7533 0c-.314.0295-.613.1774-.7924.4732-.3589.4733-.3593 1.3012.2389 1.6562 2.0338 1.5383 3.1105 3.6692 3.1105 6.154 0 2.3666-1.1964 4.8513-3.1105 6.153-.5982.355-.7174 1.0645-.2389 1.6562.2393.355.5987.4732.9576.4732.2393 0 .4784-.1183.7176-.2366 2.5124-1.775 4.067-4.851 4.067-8.0458.1077-3.3131-1.435-6.0353-4.067-8.0468-.2392-.1775-.5687-.2662-.8828-.2366ZM16.4944 3.558c-.3065.0118-.609.1395-.8303.3761-.4546.4733-.4183 1.2307.0602 1.6686 1.5314 1.408 1.6627 3.7978-.0122 5.3716-.4666.4615-.4904 1.2075-.0357 1.6808.4546.4733 1.2078.4965 1.6863.0469 2.7158-2.5559 2.4881-6.5196-.0122-8.827-.2393-.2248-.5495-.3288-.856-.317zm-8.9933.0067c-.305-.0118-.6167.0914-.856.3103-2.5004 2.3074-2.7269 6.2711-.0111 8.827.4785.4496 1.2317.4264 1.6863-.0469.4547-.4733.4306-1.2189-.048-1.6685-1.6749-1.5738-1.5316-3.9647-.0122-5.3728.4785-.4496.5148-1.194.0602-1.6674-.2153-.2426-.514-.3699-.8192-.3817Zm4.499 2.1496a2.5714 2.5714 0 0 0-2.5715 2.5714 2.5714 2.5714 0 0 0 1.193 2.1696L7.7144 24h2.5246l2.8772-13.4018a2.5714 2.5714 0 0 0 1.4553-2.3125A2.5714 2.5714 0 0 0 12 5.7143Z"})})},snapchat:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M12.206.793c.99 0 4.347.276 5.93 3.821.529 1.193.403 3.219.299 4.847l-.003.06c-.012.18-.022.345-.03.51.075.045.203.09.401.09.3-.016.659-.12 1.033-.301.165-.088.344-.104.464-.104.182 0 .359.029.509.09.45.149.734.479.734.838.015.449-.39.839-1.213 1.168-.089.029-.209.075-.344.119-.45.135-1.139.36-1.333.81-.09.224-.061.524.12.868l.015.015c.06.136 1.526 3.475 4.791 4.014.255.044.435.27.42.509 0 .075-.015.149-.045.225-.24.569-1.273.988-3.146 1.271-.059.091-.12.375-.164.57-.029.179-.074.36-.134.553-.076.271-.27.405-.555.405h-.03c-.135 0-.313-.031-.538-.074-.36-.075-.765-.135-1.273-.135-.3 0-.599.015-.913.074-.6.104-1.123.464-1.723.884-.853.599-1.826 1.288-3.294 1.288-.06 0-.119-.015-.18-.015h-.149c-1.468 0-2.427-.675-3.279-1.288-.599-.42-1.107-.779-1.707-.884-.314-.045-.629-.074-.928-.074-.54 0-.958.089-1.272.149-.211.043-.391.074-.54.074-.374 0-.523-.224-.583-.42-.061-.192-.09-.389-.135-.567-.046-.181-.105-.494-.166-.57-1.918-.222-2.95-.642-3.189-1.226-.031-.063-.052-.15-.055-.225-.015-.243.165-.465.42-.509 3.264-.54 4.73-3.879 4.791-4.02l.016-.029c.18-.345.224-.645.119-.869-.195-.434-.884-.658-1.332-.809-.121-.029-.24-.074-.346-.119-1.107-.435-1.257-.93-1.197-1.273.09-.479.674-.793 1.168-.793.146 0 .27.029.383.074.42.194.789.3 1.104.3.234 0 .384-.06.465-.105l-.046-.569c-.098-1.626-.225-3.651.307-4.837C7.392 1.077 10.739.807 11.727.807l.419-.015h.06z"})})},telegram:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})})},whatsapp:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"})})},instagram:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})})},soundcloud:function(e){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M1.175 12.225c-.051 0-.094.046-.101.1l-.233 2.154.233 2.105c.007.058.05.098.101.098.05 0 .09-.04.099-.098l.255-2.105-.27-2.154c0-.057-.045-.1-.09-.1m-.899.828c-.06 0-.091.037-.104.094L0 14.479l.165 1.308c0 .055.045.094.09.094s.089-.045.104-.104l.21-1.319-.21-1.334c0-.061-.044-.09-.09-.09m1.83-1.229c-.061 0-.12.045-.12.104l-.21 2.563.225 2.458c0 .06.045.12.119.12.061 0 .105-.061.121-.12l.254-2.474-.254-2.548c-.016-.06-.061-.12-.121-.12m.945-.089c-.075 0-.135.06-.15.135l-.193 2.64.21 2.544c.016.077.075.138.149.138.075 0 .135-.061.15-.15l.24-2.532-.24-2.623c0-.075-.06-.135-.135-.135l-.031-.017zm1.155.36c-.005-.09-.075-.149-.159-.149-.09 0-.158.06-.164.149l-.217 2.43.2 2.563c0 .09.075.157.159.157.074 0 .148-.068.148-.158l.227-2.563-.227-2.444.033.015zm.809-1.709c-.101 0-.18.09-.18.181l-.21 3.957.187 2.563c0 .09.08.164.18.164.094 0 .174-.09.18-.18l.209-2.563-.209-3.972c-.008-.104-.088-.18-.18-.18m.959-.914c-.105 0-.195.09-.203.194l-.18 4.872.165 2.548c0 .12.09.209.195.209.104 0 .194-.089.21-.209l.193-2.548-.192-4.856c-.016-.12-.105-.21-.21-.21m.989-.449c-.121 0-.211.089-.225.209l-.165 5.275.165 2.52c.014.119.104.225.225.225.119 0 .225-.105.225-.225l.195-2.52-.196-5.275c0-.12-.105-.225-.225-.225m1.245.045c0-.135-.105-.24-.24-.24-.119 0-.24.105-.24.24l-.149 5.441.149 2.503c.016.135.121.24.256.24s.24-.105.24-.24l.164-2.503-.164-5.456-.016.015zm.749-.134c-.135 0-.255.119-.255.254l-.15 5.322.15 2.473c0 .15.12.255.255.255s.255-.12.255-.27l.15-2.474-.165-5.307c0-.148-.12-.27-.271-.27m1.005.166c-.164 0-.284.135-.284.285l-.103 5.143.135 2.474c0 .149.119.277.284.277.149 0 .271-.12.284-.285l.121-2.443-.135-5.112c-.012-.164-.135-.285-.285-.285m1.184-.945c-.045-.029-.105-.044-.165-.044s-.119.015-.165.044c-.09.054-.149.15-.149.255v.061l-.104 6.048.115 2.449v.008c.008.06.03.135.074.18.058.061.142.104.234.104.08 0 .158-.044.209-.09.058-.06.091-.135.091-.225l.015-.24.117-2.203-.135-6.086c0-.104-.061-.193-.135-.239l-.002-.022zm1.006-.547c-.045-.045-.09-.061-.15-.061-.074 0-.149.016-.209.061-.075.061-.119.15-.119.24v.029l-.137 6.609.076 1.215.061 1.185c0 .164.148.314.328.314.181 0 .33-.15.33-.329l.15-2.414-.15-6.637c0-.12-.074-.221-.165-.277m8.934 3.777c-.405 0-.795.086-1.139.232-.24-2.654-2.46-4.736-5.188-4.736-.659 0-1.305.135-1.889.359-.225.09-.27.18-.285.359v9.368c.016.18.15.33.33.345h8.185C22.681 17.218 24 15.914 24 14.28s-1.319-2.952-2.938-2.952"})})},maroof:function(e){return(0,a.jsx)("svg",{viewBox:"1 1 13 13",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M7.03743 2.0473C6.29648 2.14496 5.57918 2.39149 4.90544 2.77958C4.22438 3.17242 3.6476 3.67961 3.19113 4.28699C2.7333 4.89693 2.40118 5.56813 2.20434 6.28117C2.008 6.99319 1.95288 7.73738 2.04015 8.49279C2.12726 9.24666 2.36648 9.97791 2.75099 10.6661C2.91517 10.9419 3.12903 11.1721 3.38186 11.3419C3.64233 11.5168 3.9268 11.639 4.22743 11.705C4.53198 11.772 4.84793 11.7841 5.16711 11.7414C5.47964 11.6995 5.77943 11.5942 6.05879 11.4283L6.21566 11.3353C6.25208 11.3135 6.28219 11.2919 6.30566 11.2708L6.32252 11.2562C6.59507 11.0387 6.80876 10.7827 6.95849 10.4948L7.08081 10.2593L7.34215 10.3037C7.93677 10.4053 8.49278 10.3068 9.04249 10.0029C9.08265 9.97894 9.12995 9.94814 9.17333 9.91684C9.23067 9.87617 9.28238 9.84164 9.33189 9.81168C9.57791 9.61926 9.78072 9.3923 9.9347 9.13693C10.0939 8.87305 10.2057 8.58977 10.2665 8.29491C10.3272 8.00177 10.3347 7.69909 10.2887 7.39523C10.243 7.09154 10.1414 6.796 9.98625 6.51647C9.8076 6.21584 9.57791 5.95433 9.30944 5.74847C9.04216 5.54328 8.74918 5.39748 8.43901 5.3153C8.12562 5.23193 7.79454 5.20914 7.45579 5.24657C7.123 5.28366 6.79992 5.39441 6.4952 5.57544L6.33833 5.66868C6.2992 5.69165 6.26092 5.71921 6.224 5.75001L6.21311 5.75885C5.9676 5.95009 5.76123 6.17773 5.60044 6.43583C5.44018 6.69359 5.32789 6.97328 5.26697 7.26627C5.20658 7.56043 5.19807 7.86787 5.24231 8.18042C5.2862 8.48632 5.38965 8.77895 5.55042 9.04931L5.57646 9.09711C5.74269 9.45832 5.63975 9.80472 5.30781 10.0021C5.13393 10.105 4.94473 10.1304 4.75963 10.0751C4.58625 10.0223 4.44368 9.90867 4.3467 9.74551C4.08095 9.27406 3.91812 8.77726 3.85875 8.26174C3.79971 7.74741 3.83901 7.24126 3.97546 6.75739C4.1109 6.27658 4.33547 5.82316 4.64291 5.40956C4.9541 4.99067 5.34847 4.64496 5.81482 4.38193C6.75312 3.85263 7.75336 3.72231 8.78814 3.99453C9.29497 4.13268 9.7581 4.36031 10.168 4.67184C10.581 4.98574 10.9203 5.37604 11.1772 5.83167C11.4375 6.29342 11.6036 6.78291 11.6698 7.28618C11.737 7.79318 11.6956 8.30989 11.5476 8.82167C11.4123 9.31881 11.167 9.76542 10.8805 10.1877C10.2372 11.136 9.96872 11.6869 7.74094 13.5277C7.74094 13.5277 8.37198 13.4954 8.64421 13.4485C9.02259 13.3832 9.35707 13.3054 9.63849 13.217C9.91684 13.1299 10.1429 13.0442 10.3109 12.9619C10.5402 12.8495 10.6198 12.8057 10.6467 12.7897C10.8609 12.6625 11.07 12.5199 11.2679 12.3663C12.2998 11.5842 12.9941 10.5557 13.3345 9.30656C13.5403 8.55795 13.595 7.80321 13.4972 7.06261C13.3992 6.31928 13.157 5.59756 12.7768 4.91769C12.3993 4.24156 11.9042 3.66888 11.305 3.2158C10.702 2.75933 10.0196 2.42042 9.27711 2.20876C8.77248 2.06993 8.26275 2 7.75575 2C7.51551 2 7.27562 2.01566 7.03743 2.0473ZM7.51718 8.69077C7.26044 8.62544 7.06275 8.47129 6.94484 8.24433C6.83187 8.04833 6.79478 7.82851 6.83765 7.60767C6.88172 7.38463 6.994 7.19748 7.17214 7.05065L7.21774 7.01883L7.28886 6.9763C7.50408 6.84818 7.75078 6.81449 8.00275 6.87847C8.25404 6.94261 8.4548 7.09029 8.58241 7.30551L8.59483 7.32797C8.70287 7.54269 8.73281 7.76182 8.68398 7.97925C8.63958 8.179 8.53732 8.351 8.38029 8.49052C8.34183 8.53527 8.29471 8.57457 8.23925 8.60741L8.21661 8.61983C8.07897 8.68908 7.92994 8.72395 7.77732 8.72395C7.69141 8.72395 7.6043 8.71289 7.51718 8.69077Z"})})}};var social_icons=e=>{let{kind:t,href:s,className:n}=e,o=l[t];return s?(0,a.jsxs)("a",{target:"_blank",rel:"noopener noreferrer",href:s,children:[(0,a.jsx)("span",{className:"sr-only",children:t}),(0,a.jsx)(o,{className:(0,r.cn)("h-4 w-4 fill-current text-gray-700 hover:text-primary","icon-".concat(t),n)})]}):(0,a.jsx)(o,{className:(0,r.cn)("h-4 w-4 fill-current text-gray-700 hover:text-primary","icon-".concat(t),n)})}},54246:function(e,t,s){var a=s(85893),r=s(67294),l=s(25018),n=s(64765),o=s(39218),i=s(11408),c=s(53866),d=s(68856);s(43676),s(27816),t.Z=e=>{let{src:t,title:s,loop:u=!1,...m}=e,p=(0,r.useRef)(null),x=(0,r.useRef)(null),{}=(0,l.oR4)(n.bj,x),h=null==t?void 0:t.match(/vimeo\.com\/(\d+)\/(\w+)/);return(0,a.jsxs)(l.Syo,{title:s,src:h?"https://vimeo.com/video/".concat(h[1],"?hash=").concat(h[2]):t,ref:p,loop:u,...m,playsInline:!0,className:"video-player-wrapper ",children:[(0,a.jsx)(l.ZNi,{className:"video-player"}),(0,a.jsx)(i.kk,{icons:c.K,slots:{timeSlider:(0,a.jsxs)(o.UH.Root,{ref:x,className:"vds-time-slider vds-slider",children:[(0,a.jsx)(o.UH.Track,{className:"vds-slider-track"}),(0,a.jsx)(o.UH.TrackFill,{className:"vds-slider-track-fill vds-slider-track"}),(0,a.jsx)(o.UH.Progress,{className:"vds-slider-progress vds-slider-track"}),(0,a.jsx)(o.UH.Thumb,{className:"vds-slider-thumb"})]}),pipButton:null,googleCastButton:null}}),(0,a.jsx)(i.aj,{translations:(null===d.ag||void 0===d.ag?void 0:d.ag.language)=="ar"?{Audio:"الصوت",Auto:"تلقائي",Continue:"استكمال",Default:"","Enter Fullscreen":"وضع الشاشة الكاملة","Exit Fullscreen":"الخروج من الشاشة الكاملة",LIVE:"بث حي",Mute:"كتم الصوت",Normal:"طبيعي",Off:"إيقاف",Pause:"إيقاف",Play:"تشغيل",Quality:"الجودة",Replay:"إعادة تشغيل",Reset:"إعادة تعيين",Seek:"بحث",Settings:"الإعدادات","Seek Backward":"","Seek Forward":"","Skip To Live":"",Speed:"السرعة",Unmute:"إلغاء كتم الصوت",Volume:"الصوت",Connected:"متصل",Connecting:"جار الاتصال",Disconnected:"غير متصل",Fullscreen:"شاشة كاملة"}:{Audio:"Audio",Auto:"Auto",Continue:"Continue",Default:"","Enter Fullscreen":"Enter Fullscreen","Exit Fullscreen":"Exit Fullscreen",LIVE:"Live",Mute:"Mute",Normal:"Normal",Off:"Off",Pause:"Pause",Play:"Play",Quality:"Quality",Replay:"Replay",Reset:"Reset",Seek:"Seek",Settings:"Settings","Seek Backward":"Seek Backward","Seek Forward":"Seek Forward","Skip To Live":"Skip to live",Speed:"Speed",Unmute:"Unmute",Volume:"Volume",Connected:"Connected",Connecting:"Connecting",Disconnected:"Disconnected",Fullscreen:"Fullscreen"},icons:c.K,slots:{timeSlider:(0,a.jsxs)(o.UH.Root,{ref:x,className:"vds-time-slider vds-slider",children:[(0,a.jsx)(o.UH.Track,{className:"vds-slider-track"}),(0,a.jsx)(o.UH.TrackFill,{className:"vds-slider-track-fill vds-slider-track"}),(0,a.jsx)(o.UH.Progress,{className:"vds-slider-progress vds-slider-track"}),(0,a.jsx)(o.UH.Thumb,{className:"vds-slider-thumb ltr:-ml-3 rtl:-ml-3"})]}),pipButton:null,googleCastButton:null}})]})}},58035:function(e,t,s){s.d(t,{V:function(){return SEO_CommonSEO}});var a=s(85893),r=s(67294),l=s(9008),n=s.n(l),o=s(11163),i=s(97192),SEO_CommonSEO=e=>{var t;let{title:s,description:l,keywords:c,image:d,children:u,showTenantTitle:m=!0}=e,p=(0,o.useRouter)(),{data:x}=(0,i.G)(),h=(0,r.useMemo)(()=>s?m?"".concat(s," - ").concat(null==x?void 0:x.title):s:null==x?void 0:x.title,[s,null==x?void 0:x.title]),C=(0,r.useMemo)(()=>null==x?void 0:x.title,[x]),f=(0,r.useMemo)(()=>null!=l?l:null==x?void 0:x.meta_description,[l,null==x?void 0:x.meta_description]),g=(0,r.useMemo)(()=>{var e;return(null!==(e=null!=c?c:null==x?void 0:x.meta_keywords)&&void 0!==e?e:[]).join(", ")},[c,null==x?void 0:x.meta_keywords]),j=(0,r.useMemo)(()=>null!=d?d:null==x?void 0:x.meta_image,[d,null==x?void 0:x.meta_image]),v=(0,r.useMemo)(()=>"https://".concat(null==x?void 0:x.domain).concat(p.asPath),[null==x?void 0:x.domain,p.asPath]);return x?(0,a.jsxs)(n(),{children:[(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0,maximum-scale=1.0, viewport-fit=cover"}),(0,a.jsx)("title",{children:h}),(0,a.jsx)("meta",{name:"application-name",content:C}),(0,a.jsx)("meta",{name:"generator",content:"msaaq.com"}),(0,a.jsx)("meta",{name:"robots",content:"follow, index"}),(0,a.jsx)("link",{rel:"shortcut icon",href:null!==(t=null==x?void 0:x.favicon)&&void 0!==t?t:""}),(0,a.jsx)("meta",{name:"description",content:f}),(0,a.jsx)("meta",{name:"keywords",content:g}),(0,a.jsx)("meta",{property:"og:url",content:v}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:site_name",content:h}),(0,a.jsx)("meta",{property:"og:description",content:f}),(0,a.jsx)("meta",{property:"og:title",content:h}),(0,a.jsx)("meta",{property:"og:image",content:j}),(0,a.jsx)("meta",{property:"og:locale",content:null==x?void 0:x.locale}),(0,a.jsx)("meta",{itemProp:"name",content:h}),(0,a.jsx)("meta",{itemProp:"image",content:j}),(0,a.jsx)("meta",{itemProp:"description",content:f}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@msaaqcom"}),(0,a.jsx)("meta",{name:"twitter:title",content:h}),(0,a.jsx)("meta",{name:"twitter:description",content:f}),(0,a.jsx)("meta",{name:"twitter:image",content:j}),(0,a.jsx)("meta",{name:"twitter:image:src",content:j}),(0,a.jsx)("link",{rel:"canonical",href:v}),u]}):null}},28214:function(e,t,s){var a=s(85893),r=s(50517);t.Z=e=>{let{links:t}=e;return(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-4",children:Object.entries(t).map(e=>{let[t,s]=e;return s&&(0,a.jsx)(r.Z,{kind:t,href:s},t)})})}},53487:function(e,t,s){s.d(t,{T:function(){return articles_ArticleCard}});var a=s(85893),r=s(41664),l=s.n(r),n=s(6316),o=s(47810),i=s(74820),articles_ArticleCard=e=>{var t;let{article:s}=e;return(0,a.jsx)(i.J,{className:"blog-card group h-full transform duration-150 ease-linear hover:-translate-y-2 hover:shadow-[12px_32px_32px_0px_rgba(0,0,0,0.12)]",children:(0,a.jsxs)(i.J.Body,{className:"blog-card-body relative flex h-full flex-col p-4",children:[(0,a.jsx)(n.Thumbnail,{src:s.thumbnail,alt:s.title,className:"blog-card-thumbnail"}),(0,a.jsxs)("div",{className:"blog-card-content mt-3 flex flex-1 flex-col space-y-3",children:[(null===(t=s.taxonomies)||void 0===t?void 0:t.length)>0&&(0,a.jsx)("div",{className:"blog-card-taxonomies flex flex-wrap gap-x-1 gap-y-2",children:s.taxonomies.map((e,t)=>(0,a.jsx)(i.x,{as:l(),href:"/blog/categories/".concat(e.slug),rounded:"full",color:"gray",variant:"soft",className:"blog-card-taxonomy-badge z-50 px-5",children:e.name},t))}),(0,a.jsxs)("div",{className:"blog-card-details flex flex-col space-y-2",children:[(0,a.jsx)(i.u.Body,{as:"h3",size:"base",className:"blog-card-title break-words font-semibold group-hover:text-primary",children:(0,a.jsxs)(l(),{href:"/blog/".concat(s.slug),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0"}),s.title]})}),s.excerpt&&(0,a.jsx)(i.u.Body,{as:"p",size:"sm",className:"blog-card-description line-clamp-3 font-normal text-gray-700",dangerouslySetInnerHTML:{__html:s.excerpt}}),(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"blog-card-published-date font-normal text-gray-700",children:(0,o.Z)(s.published_at).format("DD/MM/YYYY")})]}),s.created_by&&(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"blog-card-author-name flex flex-1 flex-col justify-end font-semibold text-primary",children:s.created_by.name})]})]})})}},87704:function(e,t,s){s.r(t),s.d(t,{AddToCartButton:function(){return cart_AddToCartButton},Cart:function(){return cart_CartModal},CartItem:function(){return cart_CartItem},CheckoutAnimation:function(){return cart_CheckoutAnimation},CheckoutBase:function(){return checkout_Base},CheckoutHeader:function(){return A},CouponInput:function(){return cart_CouponInput},ExpressCheckoutButton:function(){return cart_ExpressCheckoutButton},RemoveFromCartButton:function(){return cart_RemoveFromCartButton}});var a=s(85893),r=s(67294),l=s(77032),n=s(62683),o=s(55924),i=s(97192),c=s(21729),d=s(74820),u=s(7395),cart_AddToCartButton=e=>{let{product:t,product_id:s,product_type:m,size:p,icon:x,variant:h,label:C,className:f,color:g}=e,[j,{data:v,isLoading:y,isSuccess:_}]=(0,o.$B)(),{data:b}=(0,i.G)(),{data:w}=(0,o.NS)(),{formatPlainPrice:N,currentCurrency:k}=(0,l.pA)(),[M]=(0,l.pm)(),{t:L}=(0,n.Y)(["common"]),z=(0,l.TL)();return(0,r.useEffect)(()=>{if(_&&v){z((0,c.u5)(!0));let a=t;if(!a){var e;a=null===(e=v.items.find(e=>e.type===m&&e.product.id===s))||void 0===e?void 0:e.product}a&&window.APP_EVENTS.ADD_TO_CART.map(e=>{if(e&&a)try{var t,r,l;return e({currency:null!==(r=null==b?void 0:b.currency)&&void 0!==r?r:k,price:"".concat(N(a.price)),type:m,title:a.title,id:"".concat(s),items:[{id:a.id,price:N(a.price),quantity:1,name:a.title,category:null!==(l=null===(t=a.category)||void 0===t?void 0:t.name)&&void 0!==l?l:""}]})}catch(e){console.error(e)}})}},[v,_]),(0,a.jsx)(d.B,{variant:null!=h?h:"solid",color:null!=g?g:"primary",size:null!=p?p:"md",icon:x,isLoading:y,className:(0,u.cn)(y&&"cursor-not-allowed",f,"add-to-cart-btn"),onClick:async()=>{if(w&&w.items.find(e=>e.type===m&&e.product.id===s)){M.success({message:L("common:product_already_in_cart")});return}await j({product_id:s,product_type:m,quantity:1})},children:C})},m=s(11163),cart_ExpressCheckoutButton=e=>{let{product_id:t,product_type:s,size:r,icon:n,disabled:i,variant:c,label:p,className:x,rounded:h,color:C,meta:f}=e,g=(0,m.useRouter)(),[j,{isLoading:v}]=(0,o.k)(),{displayErrors:y}=(0,l.ah)({});return(0,a.jsx)(d.B,{rounded:null!=h?h:"md",variant:null!=c?c:"solid",color:null!=C?C:"primary",size:null!=r?r:"md",icon:n,isLoading:v,disabled:i,className:(0,u.cn)(v&&"cursor-not-allowed",x,"express-checkout-btn"),onClick:async()=>{if(i)return;let e=await j({product_id:t,product_type:s,meta:f});y(e)||await g.push("/cart/checkout/express/".concat(s,"/").concat(t))},children:p})},cart_RemoveFromCartButton=e=>{let{product_id:t,product_type:s,variant:l,color:n,size:i,icon:c,className:m,label:p}=e,[x]=(0,o.EU)(),[h,C]=(0,r.useTransition)();return(0,a.jsx)(d.B,{variant:null!=l?l:"solid",color:null!=n?n:"primary",size:null!=i?i:"md",icon:c,isLoading:h,className:(0,u.cn)(h&&"cursor-not-allowed",m,"remove-from-cart-btn"),onClick:()=>{C(async()=>{await x({product_id:t,product_type:s})})},children:p})},p=s(47533),x=s(87536),h=s(16310),C=s(70878),cart_CouponInput=e=>{let{coupon:t,className:s}=e,{t:l}=(0,n.Y)(["shopping_cart"]),i=h.Ry({coupon:h.Z_().required()}),[c,{isError:m,isSuccess:f}]=(0,o.qv)(),[g,j]=(0,r.useState)(null),[v,y]=(0,r.useState)(null),{reset:_,control:b,handleSubmit:w,watch:N,formState:{isValid:k,isSubmitting:M}}=(0,x.cI)({resolver:(0,p.X)(i),mode:"onSubmit"});(0,r.useEffect)(()=>{t&&(_({coupon:t}),j(l("shopping_cart:coupon_redeem_success")))},[t]),(0,r.useEffect)(()=>{m?y(l("shopping_cart:coupon_redeem_error")):f&&j(l("shopping_cart:coupon_redeem_success"))},[m,f]),(0,r.useEffect)(()=>{N("coupon")!==t&&(j(null),y(null))},[N("coupon")]);let onSubmit=async e=>{M||(j(null),y(null),await c(e.coupon))};return(0,a.jsxs)(d.W,{onSubmit:w(onSubmit),className:(0,u.cn)("flex flex-wrap items-center justify-between gap-3.5",s),children:[(0,a.jsx)(x.Qr,{render:e=>{let{field:t}=e;return(0,a.jsx)(d.W.Input,{autoComplete:"off",prepend:(0,a.jsx)(d.s,{size:"md",color:"warning",children:(0,a.jsx)(C.Z,{})}),"aria-labelledby":"coupon-input",placeholder:l("shopping_cart:coupon_input_placeholder"),classNames:{inputWrapper:"bg-white"},error:v||void 0,clearable:!0,onClear:async()=>{await w(()=>onSubmit({coupon:""}))(),t.onChange("")},className:"mb-0 shrink grow basis-auto",feedback:g||void 0,...t})},name:"coupon",control:b}),(0,a.jsx)(d.B,{variant:"solid",color:"gray",type:"submit",className:"mb-auto shrink grow basis-auto xs:grow-0",disabled:!k||M,isLoading:M,children:l("shopping_cart:coupon_redeem")})]})},f=s(45218),cart_CheckoutAnimation=e=>{let{show:t,children:s}=e,l=(0,f.Z)(t,300),n=(0,r.useRef)(document.body);(0,r.useEffect)(()=>{t?n.current.style.overflow="hidden":n.current.style.overflow=""},[t]);let handleKeyDown=e=>{let t="Tab"===e.key||9===e.keyCode;t&&e.preventDefault()};return((0,r.useEffect)(()=>(document.addEventListener("keydown",handleKeyDown),()=>{document.removeEventListener("keydown",handleKeyDown)}),[]),l||t)?(0,a.jsxs)("div",{tabIndex:0,"aria-hidden":t?"false":"true",className:(0,u.cn)("checkout-animation",t&&"open",l&&"in"),children:[(0,a.jsxs)("div",{className:"child",style:{display:"flex",gap:"2rem",justifyContent:"center",alignItems:"center",flexDirection:"column",margin:"auto",position:"absolute",inset:0,zIndex:9999},children:[(0,a.jsx)("div",{style:{backgroundImage:"url('/images/msaaq-logo.svg')",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"fit-content",display:"flex"},children:(0,a.jsx)("svg",{className:"spinner",width:"90",height:"90",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("circle",{className:"path",fill:"none",strokeWidth:"4",strokeLinecap:"round",cx:"33",cy:"33",r:"30"})})}),s]}),(0,a.jsx)("div",{className:"backdrop"})]}):null},g=s(6316),j=s(43451),v=s(76249),cart_CartModal=e=>{let{showMobileToggle:t}=e,{t:s}=(0,n.Y)(["common"]),r=(0,m.useRouter)(),{data:i,isLoading:p}=(0,o.NS)(),{openCartModal:x}=(0,l.CG)(e=>e.app),h=(0,l.TL)(),openCart=()=>h((0,c.u5)(!0)),closeCart=()=>h((0,c.u5)(!1)),C=i&&0===i.items.length;return(0,a.jsxs)(a.Fragment,{children:[!t&&(0,a.jsx)(d.B,{variant:"link",color:"gray",size:"sm",isFetching:p,icon:(0,a.jsxs)(d.s,{className:"relative",children:[!C&&(0,a.jsx)(d.x,{variant:"solid",color:"danger",rounded:"full",size:"sm",className:"absolute -top-2 left-4 flex items-center justify-center text-xs",children:null==i?void 0:i.items.length}),(0,a.jsx)(j.Z,{})]}),className:"shopping-cart-btn",onClick:openCart}),t&&(0,a.jsxs)("div",{onClick:openCart,role:"button",className:"shopping-cart-btn group relative inline-flex flex-col items-center justify-center gap-1 rounded p-1 text-center hover:bg-gray-200 md:!hidden",children:[(0,a.jsxs)(d.s,{className:"relative",children:[(0,a.jsx)(j.Z,{}),!C&&(0,a.jsx)(d.x,{variant:"solid",color:"danger",rounded:"full",size:"sm",className:"absolute -top-2 left-4 flex items-center justify-center text-xs",children:null==i?void 0:i.items.length})]}),(0,a.jsx)(d.u.Body,{size:"sm",className:"text-[12px] font-normal text-gray-800",children:s("common:shopping_cart")})]}),(0,a.jsx)(g.Drawer,{styleClass:"drawer md:!rounded-t-none rounded-t-2xl",isOpen:x,onClose:closeCart,title:s("common:cart_title"),action:!C&&(0,a.jsx)(d.B,{onClick:async()=>{await r.push("/cart/checkout"),closeCart()},className:"w-full",children:s("common:cart_checkout")}),children:i?(0,a.jsx)("div",{className:(0,u.cn)("flex h-full flex-col justify-between overflow-hidden p-4",C&&"justify-center"),children:C?(0,a.jsx)(g.EmptyState,{className:"p-0",iconClassName:"text-gray-700",title:s("common:cart_empty_state_title"),description:s("common:cart_empty_state_description"),icon:(0,a.jsx)(j.Z,{}),actions:(0,a.jsx)(d.B,{onClick:async()=>{closeCart(),await r.push("/")},className:"w-full md:!w-auto",children:s("common:browse_academy")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-4 flex-grow space-y-4 overflow-auto px-1",children:null==i?void 0:i.items.map(e=>(0,a.jsxs)("div",{className:"flex rounded-xl border border-gray-300",children:[(0,a.jsx)("div",{className:"w-auto p-2 md:w-full",children:(0,a.jsx)(g.Thumbnail,{rounded:"lg",className:"w-24 md:w-auto",src:e.product.thumbnail,alt:e.product.title})}),(0,a.jsxs)("div",{className:"flex w-full flex-row justify-between gap-2 py-2 pe-4 ps-2 md:!flex-col md:!items-start",children:[(0,a.jsxs)("div",{className:"mb-3 flex flex-col space-y-1",children:[(0,a.jsx)(d.u.Body,{size:"base",className:"font-medium",children:e.product.title}),(0,a.jsx)(g.Price,{price:e.product.price})]}),(0,a.jsx)(cart_RemoveFromCartButton,{product_id:e.product.id,product_type:e.type,label:s("common:remove"),color:"gray",size:"sm",className:"hidden md:!mt-auto md:!flex",icon:(0,a.jsx)(d.s,{size:"md",children:(0,a.jsx)(v.Z,{})})}),(0,a.jsx)(cart_RemoveFromCartButton,{product_id:e.product.id,product_type:e.type,color:"gray",size:"sm",className:"flex md:!hidden",icon:(0,a.jsx)(d.s,{size:"md",children:(0,a.jsx)(v.Z,{})})})]})]},e.product.id))}),(0,a.jsxs)("div",{className:"mx-1 rounded-lg bg-gray-200 p-4",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Body,{className:"font-medium text-gray-800",children:s("common:subtotal")}),(0,a.jsx)(g.Price,{useSymbol:!0,price:i.subtotal})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Body,{className:"font-medium text-gray-800",children:s("common:vat",{vat:i.tax.percent})}),(0,a.jsx)(g.Price,{useSymbol:!0,price:i.tax.value})]})]}),(0,a.jsx)("div",{className:"my-6 h-px bg-gray-400"}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"font-semibold",children:s("common:total")}),(0,a.jsx)(g.Price,{useSymbol:!0,price:i.total})]})]})]})}):(0,a.jsx)(g.LoadingScreen,{})})]})},y=s(41664),_=s.n(y),b=s(45085),w=s(47810),N=s(78943),k=s(86702),M=s(7105),L=s(20445),z=s(79111),Z=s(44475),S=s(94855),H=s(18087);let ProductAction=e=>{let{product:t}=e,{downloadFile:s,isDownloading:r}=(0,l.O6)(),{t:o}=(0,n.Y)(["common"]);return t.meta.custom_url?(0,a.jsx)(d.B,{as:"a",href:t.meta.custom_url,target:"_blank",variant:"solid",color:"primary",children:o("common:download_file")}):(0,a.jsx)(d.B,{onClick:()=>s("/products/".concat(t.slug,"/download"),t.title),isLoading:r("/products/".concat(t.slug,"/download")),icon:(0,a.jsx)(d.s,{size:"md",children:(0,a.jsx)(S.Z,{})}),color:"gray",children:o("common:download_file")})},CarItemProduct=e=>{let{className:t,thumbnail:s,title:l,price:o,type:i,product:c}=e,{t:m}=(0,n.Y)(["common"]),{authenticated:p}=(0,r.useContext)(b.Vo);return(0,a.jsxs)("div",{className:(0,u.cn)("flex flex-col gap-4 rounded-xl p-3 lg:!flex-row lg:items-center",t),children:[(0,a.jsxs)("div",{className:"flex w-full items-center gap-4 rounded-xl p-3",children:[(0,a.jsx)("div",{className:"h-20 w-20",children:(0,a.jsx)(H.pl,{rounded:"md",className:"h-20 w-20",src:s,alt:l})}),(0,a.jsxs)("div",{className:"flex w-full flex-col",children:[(0,a.jsxs)("div",{className:"flex w-full items-start justify-between gap-2.5",children:[(0,a.jsx)(d.u.Text,{as:"h3",size:"sm",className:"break-words font-medium lg:w-3/4",children:l}),!p&&(0,a.jsx)(H.jF,{classNames:{price:o?"text-gray-800":"",currency:o?"text-gray-800":""},price:o})]}),(0,a.jsx)(d.u.Body,{size:"sm",className:"font-normal text-gray-800",children:i})]})]}),p?"course"===c.type?(0,a.jsx)(g.ContinueCourseAction,{course:c,color:"gray"}):c.type===N.kv.DIGITAL?(0,a.jsx)(ProductAction,{product:c}):c.type===N.kv.COACHING_SESSION?(0,a.jsx)(d.B,{as:_(),href:c.appointment?"/coaching-sessions/".concat(c.slug,"/").concat(c.appointment.id,"/booking-details"):"/coaching-sessions/".concat(c.slug,"/booking-details"),icon:(0,a.jsx)(d.s,{size:"md",children:(0,a.jsx)(M.Z,{})}),color:"gray",children:m("common:book_it_for_free")}):null:null]})},CarItemSession=e=>{let{start_at:t,member_timezone:s,duration:l}=e,o=(0,r.useMemo)(()=>l?(0,k.BE)(l):{hours:0,minutes:0},[l]);return(0,a.jsx)(d.J,{children:(0,a.jsx)(d.J.Body,{children:(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{className:"flex gap-2 py-2",children:[(0,a.jsx)(d.s,{size:"sm",children:(0,a.jsx)(M.Z,{})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(d.u.Body,{size:"md",dir:"auto",className:"font-normal text-black",children:(0,w.Z)(t).format("dddd، D MMMM، YYYY")}),(0,a.jsx)(d.u.Body,{size:"md",dir:"auto",className:"font-normal text-black",children:(0,w.Z)(t).format("h:mm A")})]})]}),(0,a.jsxs)("li",{className:"flex gap-2 py-2",children:[(0,a.jsx)(d.s,{size:"sm",children:(0,a.jsx)(L.Z,{})}),(0,a.jsx)("div",{className:"flex flex-col",children:(0,a.jsx)(d.u.Body,{size:"md",dir:"auto",className:"font-normal text-black",children:(0,a.jsx)(n.C,{i18nKey:"sessions:session_time",components:{strong:(0,a.jsx)("strong",{})},values:{hour:o.hours,minute:o.minutes}})})})]}),(0,a.jsxs)("li",{className:"flex gap-2 py-2",children:[(0,a.jsx)(d.s,{size:"sm",children:(0,a.jsx)(z.Z,{})}),(0,a.jsx)("div",{className:"flex flex-col",children:(0,a.jsx)(d.u.Body,{size:"md",dir:"auto",className:"font-normal text-black",children:(0,a.jsx)(n.C,{i18nKey:"sessions:place",components:{strong:(0,a.jsx)("strong",{})}})})})]}),(0,a.jsxs)("li",{className:"flex gap-2 py-2",children:[(0,a.jsx)(d.s,{size:"sm",children:(0,a.jsx)(Z.Z,{})}),(0,a.jsx)("div",{className:"flex flex-col",children:(0,a.jsx)(d.u.Body,{size:"md",dir:"auto",className:"font-normal text-black",children:(0,a.jsx)(n.C,{i18nKey:"sessions:time_zone",components:{strong:(0,a.jsx)("strong",{})},values:{tz:s}})})})]})]})})})};var cart_CartItem=e=>{let{className:t,item:s}=e,{t:r}=(0,n.Y)(["common"]);return s.product.type===N.kv.BUNDLE?(0,a.jsx)(a.Fragment,{children:s.product.items.map(e=>(0,a.jsx)(CarItemProduct,{className:t,thumbnail:e.thumbnail,title:e.title,price:e.price,type:r("common:".concat(e.type)),product:e},e.id))}):s.meta?(0,a.jsx)(CarItemSession,{start_at:s.meta.appointment.start_at,member_timezone:s.meta.appointment.member_timezone,duration:s.meta.appointment.duration}):(0,a.jsx)(CarItemProduct,{className:t,thumbnail:s.product.thumbnail,title:s.product.title,price:s.product.price,type:"course"==s.type?r("common:".concat(s.product.course_type,"_course")):r("common:".concat(s.type)),product:s.product})},B=s(75012);let E=(0,r.forwardRef)((e,t)=>{let{activeStep:s,className:r}=e,{t:l}=(0,n.Y)(["shopping_cart"]);return(0,a.jsx)("header",{ref:t,className:(0,u.cn)("border-gray-400 bg-white px-6 py-0 md:border-b md:!px-8 md:!py-6",r),children:(0,a.jsxs)("div",{className:"flex !flex-col !items-center justify-center gap-4 md:!flex-row md:!justify-between",children:[(0,a.jsx)("div",{className:"hidden md:!block",children:(0,a.jsx)(g.AcademyLogo,{className:"me-2 md:!me-6"})}),(0,a.jsxs)("div",{className:"ms-auto flex w-full items-center justify-between rounded-lg bg-gray-100 p-4",children:[(0,a.jsxs)("div",{className:"flex !flex-col items-center gap-x-1 lg:!flex-row",children:[(0,a.jsx)(d.s,{className:"text-success",children:(0,a.jsx)(B.Z,{})}),(0,a.jsx)(d.u.Body,{size:"sm",className:"text-gray-700",children:l("shopping_cart:checkout_step_1")})]}),(0,a.jsxs)("div",{className:"flex !flex-col items-center gap-x-1 lg:!flex-row",children:["2"===s?(0,a.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-gray-900 text-sm text-white",children:"2"}):(0,a.jsx)(d.s,{className:"text-success",children:(0,a.jsx)(B.Z,{})}),(0,a.jsx)(d.u.Body,{size:"sm",className:(0,u.cn)("2"===s?"":"text-gray-700"),children:l("shopping_cart:checkout_step_2")})]}),(0,a.jsxs)("div",{className:"flex !flex-col items-center gap-x-1 lg:!flex-row",children:[(0,a.jsx)("div",{className:(0,u.cn)("3"===s?"bg-gray-900":"bg-gray-700","flex h-5 w-5 items-center justify-center rounded-full text-sm text-white"),children:"3"}),(0,a.jsx)(d.u.Body,{size:"sm",className:(0,u.cn)("3"===s?"":"text-gray-700"),children:l("shopping_cart:checkout_step_3")})]})]})]})})});var A=E,I=s(5152),P=s.n(I),T=s(68856),R=s(10798),V=s(31934);let BankField=e=>{let{label:t,value:s}=e,[r,n]=(0,l.m9)();return(0,a.jsx)(d.W.Input,{className:"relative mb-0",label:t,value:s,append:(0,a.jsx)(d.B,{onClick:()=>r(s),variant:"link",className:"absolute left-3 z-10 bg-white px-0",color:"gray",icon:n.includes(s)?(0,a.jsx)(d.s,{size:"sm",className:"text-success",children:(0,a.jsx)(V.Z,{})}):(0,a.jsx)(d.s,{size:"sm",children:(0,a.jsx)(R.Z,{})})}),readOnly:!0})};var PaymentMethods_BankDetails=e=>{let{bank:t}=e,{t:s,i18n:n}=(0,T.$G)(),{currencies:o}=(0,l.CG)(e=>e.app),i=(0,r.useMemo)(()=>{let e=null;try{e=o[n.language][t.currency]}catch(s){e=t.currency}return e},[o,n.language]);return t?(0,a.jsx)(d.G,{columns:{md:2,sm:2,xs:1},gap:{xl:"1rem",lg:"1rem",md:"1rem",sm:"1rem",xs:"1rem"},children:[{value:t.bank_name,label:s("bank:bank_name")},{value:t.account_number,label:s("bank:account_number")},{value:t.account_name,label:s("bank:account_name")},{value:t.iban,label:s("bank:iban_number")},{value:t.bic,label:"Swift / BIC"},{value:i,label:s("bank:account_currency")}].map((e,t)=>{let{value:s,label:r}=e;return(0,a.jsx)(d.G.Cell,{children:(0,a.jsx)(BankField,{label:r,value:s})},t)})}):null},PaymentMethods_MemberInfo=e=>{let{control:t,errors:s,className:l}=e,{t:o,i18n:i}=(0,n.Y)(["common"]),{member:c,authenticated:m}=(0,r.useContext)(b.Vo);return c||m?null:(0,a.jsx)("div",{className:(0,u.cn)("flex flex-col space-y-4 border-t border-gray-300 p-4",l),children:(0,a.jsx)(x.Qr,{name:"email",control:t,render:e=>{var t,r;let{field:l}=e;return(0,a.jsx)(d.W.Input,{isRequired:!0,type:"email",autoComplete:"email",dir:l.value?"ltr":i.dir(),label:o("common:email"),className:"mb-0",placeholder:o("common:email_input_placeholder"),error:null!==(r=null===(t=s.email)||void 0===t?void 0:t.message)&&void 0!==r?r:"",...l})}})})},q=s(82741),F=s(66610),PaymentMethods_PrivacyPolicyText=()=>{let{data:e,isLoading:t}=(0,i.G)();return t?null:(0,a.jsx)("div",{className:"mt-2 w-full text-center text-sm text-gray-800",children:(0,a.jsx)(n.C,{i18nKey:"shopping_cart:privacy_text",values:{academy:null==e?void 0:e.title},components:{a:(0,a.jsx)("a",{target:"_blank",className:"text-primary underline underline-offset-4",href:"/terms"})}})})},PaymentMethods_BankTransferCheckout=e=>{let{app:t}=e,{t:s}=(0,n.Y)(["shopping_cart","bank"]),i=(0,m.useRouter)(),[c]=(0,o.Dd)(),{member:u}=(0,r.useContext)(b.Vo),C=(0,l.Bv)(),f=(0,l.TL)(),g=h.Ry({account_owner:h.Z_().required(),receipt:h.IX().min(1).required(),email:h.Z_().when((e,t)=>{let[]=e;return u?t.nullable().notRequired():t.email().required()})}),{handleSubmit:j,control:v,setError:y,formState:{errors:_,isValid:w,isSubmitting:k}}=(0,x.cI)({defaultValues:{account_owner:"",receipt:[]},resolver:(0,p.X)(g)}),{displayErrors:M}=(0,l.ah)({setError:y}),L=j(async e=>{await f((0,q.O8)(!0));let t=await c({payment_gateway:N.Bn.BANK_TRANSFER,account_owner:e.account_owner,receipt:e.receipt[0].file,email:e.email});if(await f((0,q.O8)(!1)),M(t))return;let s=t.data.data.cart.uuid;s&&(C(),await i.replace("/cart/".concat(t.data.data.cart.uuid,"/thank-you")))});return t.banks[0]?(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4 py-4",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-4 rounded border border-gray-300 p-4",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"font-bold",children:s("shopping_cart:bank_transfer_account_details")}),(0,a.jsx)(d.u.Body,{size:"md",className:"font-normal text-gray-700",children:s("shopping_cart:bank_transfer_account_details_description")})]}),t.banks.length>1?t.banks.map((e,t)=>(0,a.jsx)(d.D,{className:"rounded-lg border border-gray-300",defaultOpen:0===t,children:t=>{let{isOpen:s}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.D.Button,{className:"!px-4 !py-6",children:(0,a.jsxs)("div",{className:"flex flex-grow flex-row justify-between",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(d.u.Body,{size:"md",children:e.bank_name})}),(0,a.jsx)(d.s,{className:"".concat(s?"rotate-180 transform":""," text-purple-500 transition-all duration-300 ease-in-out"),children:(0,a.jsx)(F.Z,{})})]})}),(0,a.jsx)(d.D.Content,{className:"px-4 pb-6",children:(0,a.jsx)(PaymentMethods_BankDetails,{bank:e})})]})}},e.id)):(0,a.jsx)(PaymentMethods_BankDetails,{bank:t.banks[t.banks.length-1]})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,a.jsx)(d.A,{title:(0,a.jsx)(d.u.Text,{size:"sm",className:"font-normal",children:s("shopping_cart:bank_transfer_alert")}),variant:"soft",color:"info"}),(0,a.jsx)(x.Qr,{name:"account_owner",control:v,render:e=>{var t;let{field:r}=e;return(0,a.jsx)(d.W.Input,{isRequired:!0,label:s("bank:account_name"),placeholder:s("bank:account_name_input_placeholder"),error:null===(t=_.account_owner)||void 0===t?void 0:t.message,...r})}}),(0,a.jsx)(PaymentMethods_MemberInfo,{className:"border-t-0 p-0",control:v,errors:_}),(0,a.jsx)(d.W.Group,{label:s("shopping_cart:bank_transfer_receipt_input_label"),required:!0,className:"mb-0",children:(0,a.jsx)(x.Qr,{name:"receipt",control:v,render:e=>{let{field:{onChange:t,...s}}=e;return(0,a.jsx)(d.W.File,{maxFiles:1,onChange:e=>{t(e)},...s,accept:["image/*","application/pdf"],className:"mt-2"})}})})]})]}),(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{disabled:!w||k,isLoading:k,onClick:L,className:"w-full",children:s("shopping_cart:checkout")}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]}):null},PaymentMethods_MyfatoorahCheckout=e=>{let{app:t}=e,{t:s}=(0,n.Y)(["validation","shopping_cart"]),[i]=(0,o.Dd)(),[c,m]=(0,r.useState)(""),[p,x]=(0,r.useState)(null);(0,r.useEffect)(()=>{t.methods.length>0&&x(t.methods[0].id)},[t.methods]);let h=(0,l.TL)(),{useFormApi:C,isMemberValid:f}=(0,l.jJ)(),{handleSubmit:g,control:j,formState:{errors:v}}=C,{displayErrors:y}=(0,l.ah)({}),_=(0,l.Bv)(),b=g(async()=>{if(!p)return;let e=f();if(!e)return;await h((0,q.O8)(!0));let t=await i({payment_gateway:N.Bn.MY_FATOORAH,payment_method_id:p,...e});if(y(t)){console.log(t),await h((0,q.O8)(!1));return}let a=t.data.data.redirect_url;a?(_(),window.location.href=a):(m(s("validation:unexpected_error")),await h((0,q.O8)(!1)))});return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4",children:[(0,a.jsx)(PaymentMethods_MemberInfo,{className:"border-t-0  p-0",control:j,errors:v}),(0,a.jsx)(d.G,{columns:{md:2,sm:1},gap:{xs:"0.75rem",sm:"0.75rem",md:"0.75rem",lg:"0.75rem",xl:"0.75rem"},children:t.methods.map(e=>(0,a.jsx)(d.G.Cell,{children:(0,a.jsxs)("label",{htmlFor:e.name_en,className:(0,u.cn)("w-full rounded-lg border p-4 transition-colors","flex items-center justify-between gap-8",p===e.id?"border-primary bg-primary-50":"border-gray"),children:[(0,a.jsx)(d.W.Radio,{id:e.name_en,color:"primary",value:e.id,classNames:{label:(0,u.cn)(p===e.id?"text-black":"text-black/40")},checked:p===e.id,label:e.name_ar,description:e.name_en,onChange:()=>{x(e.id)}}),(0,a.jsx)(d.s,{className:"text-gray-900",size:"xl",children:(0,a.jsx)("img",{src:e.logo,alt:e.name_ar})})]})},e.id))})]}),(0,a.jsxs)("div",{className:"space-y-2 border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{onClick:b,disabled:!p,className:"w-full",children:s("shopping_cart:checkout")}),(0,a.jsx)(d.W.Errors,{errors:c}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},use_paddle=e=>{let{environment:t,vendor:a,eventCallback:l=()=>{}}=e,[n,o]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(n)return;if(document.getElementById("paddle")){let e=s.g.Paddle;o(e);return}let e=document.createElement("script");e.src="https://cdn.paddle.com/paddle/paddle.js",document.body.appendChild(e),e.addEventListener("load",()=>{let e=s.g.Paddle||null;t&&e.Environment.set(t),e.Setup({vendor:a,eventCallback:l}),o(e)})},[t,a,n]),{paddle:n}},PaymentMethods_PaddleCheckout=e=>{let{app:t}=e,{t:s}=(0,n.Y)(["validation","shopping_cart"]),[i]=(0,o.Dd)(),{appLocale:c}=(0,l.CG)(e=>e.app),[u,m]=(0,r.useState)(""),p=(0,l.TL)(),{displayErrors:x}=(0,l.ah)({}),{useFormApi:h,isMemberValid:C}=(0,l.jJ)(),f=(0,l.Bv)(),{handleSubmit:g,control:j,formState:{errors:v}}=h,{paddle:y}=use_paddle({vendor:Number(t.vendor_id),environment:t.sandbox?"sandbox":void 0}),_=g(async()=>{let e=C();if(!e)return;await p((0,q.O8)(!0));let t=await i({payment_gateway:N.Bn.PADDLE,...e});if(x(t)){console.log(t),await p((0,q.O8)(!1));return}let a=t.data.data.pay_link;a?(f(),y.Checkout.open({method:"inline",override:a,locale:c,allowQuantity:!1,disableLogout:!0,frameTarget:"paddle-checkout-container",frameInitialHeight:416,frameStyle:"width:100%; min-width:312px; background-color: transparent; border: none;",loadCallback:function(){p((0,q.O8)(!1))},successCallback:function(e){window.location.href=e.checkout.redirect_url},closeCallback:function(){}})):(await p((0,q.O8)(!1)),m(s("validation:unexpected_error")))});return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(PaymentMethods_MemberInfo,{className:"border-t-0  p-0",control:j,errors:v}),(0,a.jsx)("div",{className:"paddle-checkout-container"})]}),(0,a.jsxs)("div",{className:"space-y-2 border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{onClick:_,className:"w-full",children:s("shopping_cart:checkout")}),(0,a.jsx)(d.W.Errors,{errors:u}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},PaymentMethods_PaylinkCheckout=()=>{let{t:e}=(0,n.Y)(["validation","shopping_cart"]),[t]=(0,o.Dd)(),[s,i]=(0,r.useState)(""),{member:c,authenticated:u}=(0,r.useContext)(b.Vo),m=(0,l.TL)(),{displayErrors:p}=(0,l.ah)({}),{useFormApi:x,isMemberValid:h}=(0,l.jJ)(),C=(0,l.Bv)(),{handleSubmit:f,control:g,formState:{errors:j}}=x,v=f(async()=>{let s=h();if(!s)return;await m((0,q.O8)(!0));let a=await t({payment_gateway:N.Bn.PAY_LINK,...s});if(p(a)){console.log(a),await m((0,q.O8)(!1));return}let r=a.data.data.redirect_url;r?(C(),window.location.href=r):(i(e("validation:unexpected_error")),await m((0,q.O8)(!1)))});return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsx)(PaymentMethods_MemberInfo,{control:g,errors:j}),(0,a.jsxs)("div",{className:"space-y-2 border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{onClick:v,className:"w-full",children:e("shopping_cart:checkout")}),(0,a.jsx)(d.W.Errors,{errors:s}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},D=s(75021);let ButtonWrapper=e=>{let{setErrorMessage:t,isMemberValid:s,isValid:i}=e,c=(0,r.useRef)(""),{t:d}=(0,n.Y)(["validation"]),u=(0,m.useRouter)(),p=(0,l.TL)(),x=(0,l.Bv)(),[{isPending:h}]=(0,D.Up)(),[C]=(0,o.F2)(),[f]=(0,o.dB)();return(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)("div",{className:"spinner",children:"loading paypal buttons"}):(0,a.jsx)(D.ch,{disabled:!i,createOrder:()=>{let e=s();return e?C({...e}).then(e=>{if(e.data){var t,s,a;return c.current=null===(a=e.data)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:null===(t=s.cart)||void 0===t?void 0:t.uuid,x(),e.data.data.paypal_order_id}e.error&&console.log("Paypal createOrder error: ",e.error)}):Promise.reject("Member info is not valid")},onApprove:async(e,s)=>(await p((0,q.O8)(!0)),f({cart_id:c.current,paypal_order_id:e.orderID}).then(async e=>{await p((0,q.O8)(!1));let a=e.data,r=Array.isArray(a.details)&&a.details[0];if(r&&"INSTRUMENT_DECLINED"===r.issue)return s.restart();if(r){let e="";r.description&&(e+="\n\n"+r.description),a.debug_id&&(e+=" ("+a.debug_id+")"),console.log(e),t(d("validation:unexpected_error"))}await u.replace("/cart/".concat(c.current,"/thank-you"))})),onError:e=>{console.error(e),t(d("validation:unexpected_error"))}})})};var PaymentMethods_PayPalCheckout=e=>{let{app:t}=e,[s,n]=(0,r.useState)(""),{data:o}=(0,i.G)(),{useFormApi:c,isMemberValid:u}=(0,l.jJ)(),{control:m,formState:{isValid:p,errors:x}}=c;return t.client_id?(0,a.jsx)("div",{className:"overflow-hidden",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4 py-4",children:[(!o||!o.msaaqpay_enabled)&&(0,a.jsx)(PaymentMethods_MemberInfo,{className:"border-t-0 p-0",control:m,errors:x}),(0,a.jsx)(D.Vv,{options:{clientId:t.client_id,currency:"USD",locale:"ar_SA",components:"buttons",dataNamespace:"paypal_sdk"},children:(0,a.jsx)(ButtonWrapper,{isValid:p,isMemberValid:u,setErrorMessage:n})}),(0,a.jsx)(d.W.Errors,{errors:s})]})}):null},PaymentMethods_StripeCheckout=()=>{let{t:e}=(0,n.Y)(["validation","shopping_cart"]),[t]=(0,o.Dd)(),[s,i]=(0,r.useState)(""),c=(0,l.TL)(),{displayErrors:u}=(0,l.ah)({}),{useFormApi:m,isMemberValid:p}=(0,l.jJ)(),x=(0,l.Bv)(),{handleSubmit:h,control:C,formState:{errors:f}}=m,g=h(async()=>{let s=p();if(!s)return;await c((0,q.O8)(!0));let a=await t({payment_gateway:N.Bn.STRIPE,...s});if(u(a)){console.log(a),await c((0,q.O8)(!1));return}let r=a.data.data.checkout_url;r?(x(),window.location.href=r):i(e("validation:unexpected_error")),await c((0,q.O8)(!1))});return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsx)(PaymentMethods_MemberInfo,{control:C,errors:f}),(0,a.jsxs)("div",{className:"space-y-2 border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{onClick:g,className:"w-full",children:e("shopping_cart:checkout")}),(0,a.jsx)(d.W.Errors,{errors:s}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},O=s(43854),W=s(28854),PaymentMethods_TamaraCheckout=e=>{var t;let{app:s}=e,{t:i,i18n:c}=(0,n.Y)(["countries","common","shopping_cart"]),[u]=(0,o.MF)(),{data:m}=(0,o.NS)(),{formatPlainPrice:C}=(0,l.pA)(),{member:f}=(0,r.useContext)(b.Vo),j=(0,l.Bv)(),v=(0,l.TL)(),y=h.Ry({name:h.Z_().when((e,t)=>{let[]=e;return f&&(!f||f.name)?t.nullable().notRequired():t.required()}),email:h.Z_().when((e,t)=>{let[]=e;return f&&(!f||f.email)?t.nullable().notRequired():t.required()}),phone:h.Ry().when((e,t)=>{let[]=e;return f&&(!f||f.phone)?t.shape({phone:h.Z_().notRequired(),phone_code:h.Z_().notRequired()}):t.shape({phone:h.Z_().required(),phone_code:h.Z_().required()})}),address:h.Ry().shape({country:h.Ry().shape({label:h.Z_().required(),value:h.Z_().required()}).required(),city:h.Z_().required(),line:h.Z_().required()})}),{handleSubmit:_,control:w,setError:N,formState:{errors:k,isValid:M,isSubmitting:L}}=(0,x.cI)({resolver:(0,p.X)(y)}),{displayErrors:z}=(0,l.ah)({setError:N}),Z=_(async e=>{await v((0,q.O8)(!0));let t=await u({...e,address:{...e.address,country:e.address.country.value},phone:e.phone.phone,phone_code:e.phone.phone_code});if(z(t)){await v((0,q.O8)(!1));return}let s=t.data.data.redirect_url;if(s)j(),window.location.href=s;else{await v((0,q.O8)(!1));return}});return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsx)(g.TamaraWidget,{price:C(null!==(t=null==m?void 0:m.total)&&void 0!==t?t:0),type:g.TamaraWidgetType.SPILT_AMOUNT_CART_PAGE}),(0,a.jsx)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4 py-4",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(!f||f&&!f.name)&&(0,a.jsx)(x.Qr,{name:"name",control:w,render:e=>{var t;let{field:s}=e;return(0,a.jsx)(d.W.Input,{className:"mb-0",isRequired:!0,label:i("common:the_name"),placeholder:i("common:the_name_input_placeholder"),error:null===(t=k.name)||void 0===t?void 0:t.message,...s})}}),(!f||f&&!f.email)&&(0,a.jsx)(x.Qr,{name:"email",control:w,render:e=>{var t;let{field:s}=e;return(0,a.jsx)(d.W.Input,{className:"mb-0",type:"email",isRequired:!0,dir:s.value?"ltr":c.dir(),label:i("common:email"),placeholder:i("common:email_input_placeholder"),error:null===(t=k.email)||void 0===t?void 0:t.message,...s})}}),(!f||f&&!f.phone)&&(0,a.jsx)(x.Qr,{name:"phone",control:w,render:e=>{var t;let{field:s}=e;return(0,a.jsx)(W.Z,{className:"h-12 grow",onlyCountries:["sa","ae","kw"],label:i("common:phone"),placeholder:i("phone"),error:null===(t=k.phone)||void 0===t?void 0:t.message,...s})}}),(0,a.jsxs)(d.G,{columns:{xs:1,sm:1,md:2,lg:2},gap:{xs:"0.75rem",sm:"0.75rem",md:"0.75rem",lg:"0.75rem",xl:"0.75rem"},children:[(0,a.jsx)(d.G.Cell,{children:(0,a.jsx)(x.Qr,{name:"address.country",control:w,render:e=>{var t,s;let{field:r}=e;return(0,a.jsx)(d.W.Group,{label:i("shopping_cart:tamara_country_input_label"),errors:null===(s=k.address)||void 0===s?void 0:null===(t=s.country)||void 0===t?void 0:t.message,required:!0,className:"mb-0 space-y-2",children:(0,a.jsx)(O.P,{placeholder:i("shopping_cart:tamara_country_input_placeholder"),options:[{label:i("countries:SA"),value:"SA"},{label:i("countries:AE"),value:"AE"},{label:i("countries:KW"),value:"KW"}],...r})})}})}),(0,a.jsx)(d.G.Cell,{children:(0,a.jsx)(x.Qr,{name:"address.city",control:w,render:e=>{var t,s;let{field:r}=e;return(0,a.jsx)(d.W.Input,{className:"mb-0",isRequired:!0,label:i("shopping_cart:tamara_city_input_label"),placeholder:i("shopping_cart:tamara_city_input_placeholder"),error:null===(s=k.address)||void 0===s?void 0:null===(t=s.city)||void 0===t?void 0:t.message,...r})}})})]}),(0,a.jsx)(x.Qr,{name:"address.line",control:w,render:e=>{var t,s;let{field:r}=e;return(0,a.jsx)(d.W.Input,{className:"mb-0",isRequired:!0,label:i("shopping_cart:tamara_address_input_label"),placeholder:i("shopping_cart:tamara_address_input_placeholder"),error:null===(s=k.address)||void 0===s?void 0:null===(t=s.line)||void 0===t?void 0:t.message,...r})}})]})}),(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{disabled:!M||L,isLoading:L,onClick:Z,className:"w-full",children:i("shopping_cart:checkout")}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},PaymentMethods_TapPaymentApplePayCheckout=()=>{let{t:e}=(0,n.Y)(["shopping_cart","validation"]),[t,{isLoading:s}]=(0,o.Dd)(),i=(0,l.TL)(),[c,u]=(0,r.useState)(""),{displayErrors:m}=(0,l.ah)({}),{useFormApi:p,isMemberValid:x}=(0,l.jJ)(),h=(0,l.Bv)(),{handleSubmit:C,control:f,formState:{errors:g}}=p,j=C(async()=>{let s=x();if(!s)return;await i((0,q.O8)(!0));let a=await t({payment_gateway:N.Bn.TAP_PAYMENT,source:"src_apple_pay",...s});if(m(a)){console.log(a),await i((0,q.O8)(!1));return}let r=a.data.data.redirect_url;r?(h(),window.location.href=r):(u(e("validation:unexpected_error")),await i((0,q.O8)(!1)))});return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsx)(PaymentMethods_MemberInfo,{control:f,errors:g}),(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{className:"w-full",disabled:s,onClick:j,children:e("shopping_cart:checkout")}),(0,a.jsx)(d.W.Errors,{errors:c}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},PaymentMethods_TapPaymentCreditCheckout=e=>{let{app:t}=e,{t:s}=(0,n.Y)(["validation","shopping_cart"]),[i,{isLoading:c}]=(0,o.Dd)(),{appLocale:u}=(0,l.CG)(e=>e.app),m=(0,l.TL)(),[p,x]=(0,r.useState)(""),h=(0,r.useRef)(!1),{useFormApi:C,isMemberValid:f}=(0,l.jJ)(),g=(0,l.Bv)(),{handleSubmit:j,control:v,formState:{errors:y}}=C;(0,r.useEffect)(()=>{!h.current&&t.publishable_key&&window.goSell&&(goSell.goSellElements({containerID:"element-container",gateway:{publicKey:t.publishable_key,language:u,supportedCurrencies:["AED","SAR","BHD","EGP","KWD","OMR","QAR","EUR","USD","GBP"],callback:tapTokenHandler,notifications:"msg",style:{base:{color:"#444",lineHeight:"18px",fontFamily:"tahoma, sans-serif",fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"rgba(0, 0, 0, 0.4)",fontSize:"15px"}},invalid:{color:"red"}}}}),h.current=!0)},[window,window.goSell]);let{displayErrors:_}=(0,l.ah)({}),tapTokenHandler=async e=>{if(e.error){var t,a;console.log(e),x(null!==(a=null==e?void 0:null===(t=e.error)||void 0===t?void 0:t.message)&&void 0!==a?a:"")}else e.id?onCardTokenized(e.id):(console.log(e),x(s("validation:unexpected_error")))},onCardTokenized=async e=>{let t=f();if(!t)return;await m((0,q.O8)(!0));let a=await i({payment_gateway:N.Bn.TAP_PAYMENT,tapToken:e,...t});if(_(a)){console.log(a),await m((0,q.O8)(!1));return}let r=a.data.data.redirect_url;r?(g(),window.location.href=r):(x(s("validation:unexpected_error")),await m((0,q.O8)(!1)))},b=j(async()=>{window&&window.goSell&&t.publishable_key?goSell.submit():await onCardTokenized()});return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsx)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4 py-4",children:(0,a.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,a.jsx)(PaymentMethods_MemberInfo,{className:"border-t-0 p-0",control:v,errors:y}),(0,a.jsx)("div",{id:"element-container"}),(0,a.jsx)("p",{id:"msg",className:"text-danger"}),(0,a.jsx)(d.W.Errors,{errors:p})]})}),(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{className:"w-full",disabled:c,onClick:b,children:s("shopping_cart:checkout")}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},PaymentMethods_FreeCheckout=e=>{let{cart:t}=e,{t:s,i18n:i}=(0,n.Y)(["common","shopping_cart"]),c=(0,m.useRouter)(),{member:u,authenticated:C}=(0,r.useContext)(b.Vo),f=h.Ry({email:h.Z_().when((e,t)=>{let[]=e;return u?t.nullable().notRequired():t.email().required()})}),[g]=(0,o.Dd)(),j=(0,l.TL)(),{control:v,formState:{errors:y},setError:_,handleSubmit:w}=(0,x.cI)({mode:"onSubmit",resolver:(0,p.X)(f)}),{displayErrors:k}=(0,l.ah)({setError:_}),M=w(async e=>{await j((0,q.O8)(!0));let t=await g({payment_gateway:N.Bn.FREE,...e});if(await j((0,q.O8)(!1)),k(t))return;let s=t.data.data.cart.uuid;s&&await c.replace("/cart/".concat(t.data.data.cart.uuid,"/thank-you"))});return(0,a.jsx)(d.J,{className:"mx-auto my-auto border-0 bg-gray-100 sm:w-[418px] md:my-0 md:w-[518px] lg:w-[618px]",children:(0,a.jsx)(d.W,{onSubmit:M,children:(0,a.jsxs)(d.J.Body,{className:"p-8",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"mb-6 flex font-semibold",children:(0,a.jsx)(n.C,{i18nKey:"shopping_cart:title_with_count",components:{span:(0,a.jsx)("span",{className:"font-normal text-gray-700 ltr:ml-1 rtl:mr-1"})},values:{count:t.items.length}})}),(0,a.jsx)("div",{className:"flex flex-col space-y-2",children:t.items.map(e=>(0,a.jsx)(cart_CartItem,{item:e},e.product.id))}),(0,a.jsx)("div",{className:"my-6 h-px bg-gray-400"}),!(u||C)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.Qr,{name:"email",control:v,render:e=>{var t,r;let{field:l}=e;return(0,a.jsx)(d.W.Input,{isRequired:!0,type:"email",autoComplete:"email",dir:l.value?"ltr":i.dir(),label:s("common:email"),className:"mb-0",placeholder:s("shopping_cart:email_input_placeholder"),description:s("shopping_cart:email_input_description"),error:null!==(r=null===(t=y.email)||void 0===t?void 0:t.message)&&void 0!==r?r:"",...l})}}),(0,a.jsx)("div",{className:"my-6 h-px bg-gray-400"})]}),(0,a.jsx)(d.B,{variant:"solid",color:"primary",className:"w-full",type:"submit",children:s("shopping_cart:free_checkout")})]})})})},Y=s(58035),checkout_DesktopCartItems=e=>{let{cart:t}=e,{t:s}=(0,n.Y)(["common","shopping_cart"]);return(0,a.jsxs)("div",{className:"flex flex-col space-y-6 py-8 ps-8",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"font-semibold",children:(0,a.jsx)(n.C,{i18nKey:"shopping_cart:title_with_count",components:{span:(0,a.jsx)("span",{className:"font-normal text-gray-700 ltr:ml-1 rtl:mr-1"})},values:{count:t.items.length}})}),(0,a.jsx)("div",{className:"relative before:absolute before:bottom-0 before:h-10 before:w-full before:bg-gradient-to-b before:from-transparent before:via-transparent before:to-gray-100",children:(0,a.jsx)("div",{className:"flex flex-col space-y-2",children:t.items.map(e=>(0,a.jsx)(cart_CartItem,{item:e},e.product.id))})}),(0,a.jsx)("div",{className:"h-px bg-gray-400"}),(0,a.jsx)(cart_CouponInput,{coupon:t.coupon,className:"hidden lg:!flex"}),(0,a.jsx)("div",{className:"h-px bg-gray-400"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Body,{className:"font-medium text-gray-800",children:s("common:subtotal")}),t.coupon?(0,a.jsx)(g.ProductPrice,{price:t.total,salesPrice:t.subtotal}):(0,a.jsx)(g.Price,{useSymbol:!0,price:t.subtotal})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Body,{className:"font-medium text-gray-800",children:s("common:vat",{vat:t.tax.percent})}),(0,a.jsx)(g.Price,{useSymbol:!0,price:t.tax.value})]})]}),(0,a.jsx)("div",{className:"h-px bg-gray-400"}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"font-semibold",children:s("common:total")}),t.is_free?(0,a.jsx)(g.ProductPrice,{price:0,salesPrice:0}):(0,a.jsx)(g.Price,{useSymbol:!0,price:t.total})]}),"included"===t.tax.type&&(0,a.jsx)(d.u.Body,{size:"sm",className:"text-gray-800",children:s("shopping_cart:vat_included")})]})},Q=s(13245),checkout_MobileCartItems=e=>{let{cart:t}=e,{t:s}=(0,n.Y)(["shopping_cart","common"]),{formatPriceWithoutCurrency:o,currentCurrency:i}=(0,l.pA)(),[c,m]=(0,r.useState)(!1);return(0,a.jsx)("div",{className:(0,u.cn)("fixed top-0 z-20 w-full",c?"h-screen w-full overflow-auto":""),children:(0,a.jsxs)("div",{className:"block lg:!hidden",children:[(0,a.jsx)("div",{className:"relative z-20 w-full bg-gray-100 py-6",onClick:()=>{m(!c)},children:(0,a.jsx)("div",{className:"container mx-auto !px-4 lg:!px-0",children:(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsxs)("div",{className:"relative flex",children:[(0,a.jsx)("div",{className:"h-14 w-14 before:absolute before:left-0 before:top-0 before:-z-0 before:h-full before:w-full before:rotate-6 before:rounded-md before:bg-[#e7e7e7] after:absolute after:left-0 after:top-0 after:-z-0 after:h-full after:w-full after:-rotate-6 after:rounded-md after:bg-[#e7e7e7]"}),t.items.length>0&&t.items[0]&&(0,a.jsx)(g.Thumbnail,{className:"absolute h-14 w-14",rounded:"md",src:t.items[0].product.thumbnail,alt:t.items[0].product.title})]}),(0,a.jsxs)("div",{className:"z-10 flex -translate-y-2 transform items-center gap-1 rounded-full border border-gray-400 bg-white px-2 py-1",children:[(0,a.jsx)("span",{children:s("shopping_cart:items",{count:t.items.length})}),(0,a.jsx)(d.s,{size:"xs",children:c?(0,a.jsx)(F.Z,{}):(0,a.jsx)(Q.Z,{})})]})]}),(0,a.jsx)("div",{className:"flex flex-col items-end justify-center",children:t.is_free?(0,a.jsx)(g.ProductPrice,{price:0,salesPrice:0}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.u.Text,{children:o(t.total),className:"font-bold",size:"lg"}),(0,a.jsx)(d.u.Body,{children:i,className:"font-medium text-black opacity-40",size:"sm"})]})})]})})}),(0,a.jsxs)("div",{className:(0,k.AK)("absolute z-10 flex w-full transform flex-col bg-white transition-all !duration-300 ease-linear",c?"h-[calc(100vh-138px)] translate-y-0":"-translate-y-full"),children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-6 bg-white px-4 py-6",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"font-semibold",children:(0,a.jsx)(n.C,{i18nKey:"shopping_cart:title_with_count",components:{span:(0,a.jsx)("span",{className:"font-normal text-gray-700 ltr:ml-1 rtl:mr-1"})},values:{count:t.items.length}})}),(0,a.jsx)("div",{className:"relative before:absolute before:bottom-0 before:h-10 before:w-full before:bg-gradient-to-b before:from-transparent before:via-transparent before:to-gray-100",children:(0,a.jsx)("div",{className:"flex flex-col space-y-2",children:t.items.map(e=>(0,a.jsx)(cart_CartItem,{item:e},e.product.id))})}),(0,a.jsx)("div",{className:"h-px bg-gray-400"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Body,{className:"font-medium text-gray-800",children:s("common:subtotal")}),t.coupon?(0,a.jsx)(g.ProductPrice,{price:t.total,salesPrice:t.subtotal}):(0,a.jsx)(g.Price,{useSymbol:!0,price:t.subtotal})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Body,{className:"font-medium text-gray-800",children:s("common:vat",{vat:t.tax.percent})}),(0,a.jsx)(g.Price,{useSymbol:!0,price:t.tax.value})]})]}),(0,a.jsx)("div",{className:"h-px bg-gray-400"}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"font-semibold",children:s("common:total")}),t.is_free?(0,a.jsx)(g.ProductPrice,{price:0,salesPrice:0}):(0,a.jsx)(g.Price,{useSymbol:!0,price:t.total})]}),"included"===t.tax.type&&(0,a.jsx)(d.u.Body,{size:"sm",className:"text-gray-800",children:s("shopping_cart:vat_included")})]}),(0,a.jsxs)("div",{className:"mt-auto border-t border-gray-400 bg-white p-4",children:[(0,a.jsx)(d.B,{onClick:()=>m(!c),className:"w-full",children:s("shopping_cart:checkout")}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})]})})},PaymentMethods_FreeByCouponCheckout=()=>{let{t:e,i18n:t}=(0,n.Y)(["shopping_cart","common"]),s=(0,m.useRouter)(),{member:i,authenticated:c}=(0,r.useContext)(b.Vo),u=h.Ry({email:h.Z_().when((e,t)=>{let[]=e;return i?t.nullable().notRequired():t.email().required()})}),[C]=(0,o.Dd)(),f=(0,l.TL)(),{control:g,formState:{errors:j},setError:v,handleSubmit:y}=(0,x.cI)({mode:"onChange",resolver:(0,p.X)(u)}),{displayErrors:_}=(0,l.ah)({setError:v}),w=y(async e=>{await f((0,q.O8)(!0));let t=await C({payment_gateway:N.Bn.FREE,...e});if(await f((0,q.O8)(!1)),_(t))return;let a=t.data.data.cart.uuid;a&&await s.replace("/cart/".concat(t.data.data.cart.uuid,"/thank-you"))});return(0,a.jsxs)("div",{className:"rounded-lg border border-gray-300",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-4 p-4",children:[(0,a.jsx)(d.A,{variant:"soft",color:"success",title:e("shopping_cart:free_checkout_alert")}),!(i||c)&&(0,a.jsx)(x.Qr,{name:"email",control:g,render:s=>{var r,l;let{field:n}=s;return(0,a.jsx)(d.W.Input,{isRequired:!0,type:"email",dir:n.value?"ltr":t.dir(),autoComplete:"email",label:e("common:email"),className:"mb-0",placeholder:e("common:email_input_placeholder"),error:null!==(l=null===(r=j.email)||void 0===r?void 0:r.message)&&void 0!==l?l:"",...n})}})]}),(0,a.jsx)("div",{className:"space-y-2 border-t border-gray-300 p-4",children:(0,a.jsx)(d.B,{variant:"solid",color:"primary",className:"w-full",onClick:w,children:e("shopping_cart:free_checkout")})})]})},msaaqPay_CardCheckout=e=>{let{app:t}=e,{t:s}=(0,n.Y)(["shopping_cart"]),i=(0,m.useRouter)(),[c,{isLoading:u}]=(0,o.Dd)(),p=(0,l.TL)(),[x,h]=(0,r.useState)(!1),[C,f]=(0,r.useState)(""),j=(0,r.useRef)(!1),{isMemberValid:v}=(0,l.qx)(),y=(0,l.Bv)(),{displayErrors:_}=(0,l.ah)({}),onCardTokenized=async e=>{var t;let s=v();if(u||!s)return;await p((0,q.O8)(!0));let a=await c({payment_gateway:N.Bn.MSAAQ_PAY,source:e,save_card:j.current?"1":"0",...s});if(_(a)){await p((0,q.O8)(!1)),h(!0),g.Frames.enableSubmitForm();return}let r=a.data.data.redirect_url,l=null===(t=a.data.data.cart)||void 0===t?void 0:t.uuid;r?(y(),window.location.href=r):(l&&(y(),await i.replace("/cart/".concat(l,"/thank-you"))),await p((0,q.O8)(!1)))};return(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsx)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4 py-4",children:(0,a.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,a.jsx)(d.W.Label,{required:!0,children:s("shopping_cart:card_input_label")}),(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,a.jsx)(g.Frames,{config:{publicKey:t.public_key,localization:{cardNumberPlaceholder:"0000 0000 0000 0000",expiryMonthPlaceholder:"MM",expiryYearPlaceholder:"YY",cvvPlaceholder:"CVC"},style:{base:{height:"46px",color:"#000000",fontSize:".875rem",lineHeight:"1.7",fontWeight:"500"},invalid:{color:"#ef4444"},placeholder:{base:{color:"#000000",opacity:"28%"}}}},cardValidationChanged:e=>{h(e.isValid)},frameValidationChanged:e=>{e.isValid&&!e.isEmpty?f(""):f(s("shopping_cart:".concat(e.element)))},cardSubmitted:()=>{h(!1),p((0,q.O8)(!0))},cardTokenizationFailed:()=>{h(!0),g.Frames.enableSubmitForm(),p((0,q.O8)(!1))},cardTokenized:e=>{onCardTokenized(e)},children:(0,a.jsx)(g.Frames.Card,{})}),(0,a.jsx)(d.W.Checkbox,{id:s("shopping_cart:save_card"),name:"save_card",label:s("shopping_cart:save_card"),onChange:e=>{j.current=e.target.checked}})]}),(0,a.jsx)(d.W.Errors,{errors:C})]})}),(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{disabled:!x,className:"w-full",onClick:()=>{v()&&g.Frames.submitCard()},children:s("shopping_cart:checkout")}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},MemberInfoCheckout=()=>{let{t:e,i18n:t}=(0,n.Y)(["common"]),s=(0,l.TL)(),{member:o,authenticated:i}=(0,r.useContext)(b.Vo),{errors:c}=(0,l.CG)(e=>e.checkout),u=h.Ry({email:h.Z_().when((e,t)=>{let[]=e;return o?t.nullable().notRequired():t.email().required()})}),{control:m,setError:C,watch:f,formState:{errors:g}}=(0,x.cI)({mode:"onSubmit",resolver:(0,p.X)(u)});return((0,r.useEffect)(()=>{var e;s((0,q.z6)(null!==(e=f("email"))&&void 0!==e?e:null))},[f("email")]),(0,r.useEffect)(()=>{(null==c?void 0:c.email.message)&&C("email",{type:"required",message:c.email.message},{shouldFocus:!0})},[c]),o||i)?null:(0,a.jsx)("div",{className:"mt-8 flex flex-col space-y-4",id:"member-info",children:(0,a.jsx)(x.Qr,{name:"email",control:m,render:s=>{var r,l;let{field:n}=s;return(0,a.jsx)(d.W.Input,{isRequired:!0,type:"email",autoComplete:"email",label:e("common:email"),dir:n.value?"ltr":t.dir(),className:"mb-0",placeholder:e("common:email_input_placeholder"),error:null!==(l=null===(r=g.email)||void 0===r?void 0:r.message)&&void 0!==l?l:"",...n})}})})},G=s(86873),msaaqPay_SavedCardsCheckout=()=>{var e;let{t}=(0,n.Y)(["shopping_cart","validation"]),s=(0,m.useRouter)(),[i,{isLoading:c}]=(0,o.Dd)(),u=(0,l.TL)(),{member:p}=(0,r.useContext)(b.Vo),[x,h]=(0,r.useState)(null),C=(0,r.useRef)([]),[f,g]=(0,r.useState)(""),[j,v]=(0,r.useState)(""),{displayErrors:y}=(0,l.ah)({});(0,r.useEffect)(()=>{if(x){let e=C.current.find(e=>e&&e.id==="cvv".concat(x.last_four,"_").concat(x.id));e&&e.focus()}},[x,C,C.current]);let onSubmit=async()=>{var e;if(c||!x)return;await u((0,q.O8)(!0));let a=await i({payment_gateway:N.Bn.MSAAQ_PAY,source:{...x,cvv:j,token:"src_".concat(x.id)}});if(y(a)){await u((0,q.O8)(!1)),g(t("validation:unexpected_error"));return}let r=a.data.data.redirect_url,l=null===(e=a.data.data.cart)||void 0===e?void 0:e.uuid;r?window.location.href=r:(l&&await s.replace("/cart/".concat(l,"/thank-you")),await u((0,q.O8)(!1)))};return(0,a.jsxs)("div",{className:"rounded-lg border border-gray-300",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 p-4",children:[null==p?void 0:null===(e=p.saved_cards)||void 0===e?void 0:e.map((e,s)=>(0,a.jsxs)("div",{className:"flex h-12 items-center justify-between gap-4",children:[(0,a.jsx)(d.W.Radio,{id:"".concat(e.last_four).concat(e.id),name:"saved_card",label:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("span",{children:[e.last_four,"****"]}),(0,a.jsx)(G.w,{methods:[e.scheme.toUpperCase()],bordered:!0})]}),checked:e.id===(null==x?void 0:x.id),onChange:()=>{h(e),v("")},value:e.id}),e.id===(null==x?void 0:x.id)&&(0,a.jsx)(d.W.Input,{ref:e=>C.current[s]=e,id:"cvv".concat(e.last_four,"_").concat(e.id),className:"mb-0","aria-labelledby":"".concat(e.last_four).concat(e.id),placeholder:t("shopping_cart:saved_card_input_label"),value:j,onChange:e=>{v(e.target.value.substring(0,3).replace(/^!\d+$/,""))}})]},e.id)),(0,a.jsx)(d.W.Errors,{errors:f})]}),(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{disabled:3!==j.length,className:"w-full",onClick:onSubmit,children:t("shopping_cart:checkout")}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]})},J=s(40456),U=s(66692);let K=["visa","mastercard","discover","mada"];var msaaqPay_ApplePayWallet=e=>{let{app:t}=e,s=(0,m.useRouter)(),n=(0,r.useRef)(!0),{member:c}=(0,r.useContext)(b.Vo),{isMemberValid:u}=(0,l.qx)(),p=(0,l.Bv)(),{isForeignerLink:x}=(0,l.df)(),[h,C]=(0,l.m9)(),[f,g]=(0,r.useState)(!1),[j]=(0,l.pm)(),{data:v}=(0,o.NS)(),{data:y}=(0,i.G)(),[_]=(0,o.jF)(),[w]=(0,o.nN)(),N=(0,r.useMemo)(()=>t.gateways.filter(e=>K.includes(e)).map(e=>e).map(e=>"mastercard"===e?"masterCard":e),[t]),k=(0,r.useMemo)(()=>{var e;return null!==(e=window.ApplePaySession&&ApplePaySession.canMakePayments())&&void 0!==e&&e},[window,window.ApplePaySession]),{displayErrors:M,displaySuccess:L}=(0,l.ah)({});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(null==N?void 0:N.length)?"apple-pay-container w-100":"",children:(0,a.jsx)("button",{onClick:()=>{var e,t;if(!k){g(!0);return}if(!v||!y)return;let a=u();if(!a||(null==v?void 0:v.is_free))return;let r=new ApplePaySession(6,{countryCode:null!==(t=null!==(e=null==c?void 0:c.country_code)&&void 0!==e?e:J.Z.getItem("country_code"))&&void 0!==t?t:"SA",currencyCode:y.currency,supportedNetworks:N,merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],total:{label:y.title,amount:(v.total/100).toFixed(2),type:"final"}});n.current=!1,r.oncancel=()=>{n.current=!0},r.begin(),r.onvalidatemerchant=async e=>{console.log("onvalidatemerchant",e.validationURL),await _({validation_url:e.validationURL}).then(e=>{let{data:t}=e;console.log("then.data",t),t?(p(),r.completeMerchantValidation(t)):(console.error("onvalidatemerchant",t),j.error({message:"حدث خطأ أثناء تحقق البائع"}),r.abort())}).catch(e=>{var t;let{response:s}=e;console.log("catch.response",s),console.error("onvalidatemerchant",null==s?void 0:s.data),j.error({message:null!==(t=null==s?void 0:s.data)&&void 0!==t?t:"حدث خطأ أثناء تحقق البائع"}),r.abort()})},r.onpaymentauthorized=async e=>{var t,l;let n=await w({uuid:v.uuid,token:e.payment.token,card_network:null===(l=e.payment.token.paymentMethod)||void 0===l?void 0:null===(t=l.network)||void 0===t?void 0:t.toLowerCase(),...a});if(M(n)){r.completePayment(ApplePaySession.STATUS_FAILURE),r.abort();return}L(n),r.completePayment(ApplePaySession.STATUS_SUCCESS);let{redirect_url:o}=n.data.data;x(o)?window.location=o:s.push(o)}},disabled:!n.current,className:"apple-pay-button apple-pay-button-black",children:(0,a.jsx)("img",{src:"https://cdn.msaaq.com/assets/images/payments/light/applepay.svg",alt:"Apple Pay",className:"apple-pay-img"})})}),!k&&(0,a.jsxs)(d.M,{className:"md:!max-w-[550px]",open:f,onDismiss:()=>{g(!1)},children:[(0,a.jsx)(d.M.Header,{className:"items-center",dismissible:!0,title:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(d.s,{children:(0,a.jsx)(U.Z,{})}),(0,a.jsx)(d.u.Text,{className:"font-semibold",children:"الجهاز أو المتصفح لا يدعم Apple Pay"})]})}),(0,a.jsxs)(d.M.Body,{className:"md:!ps-12",children:["يمكنك الدفع باستخدام Apple Pay من خلال متصفح Safari على أحد أجهزة Apple المدعومة فقط.",(0,a.jsx)(d.W.Input,{readOnly:!0,value:"".concat(null==y?void 0:y.domain).concat(s.asPath),append:(0,a.jsx)(d.B,{onClick:()=>h("".concat(null==y?void 0:y.domain).concat(s.asPath)),variant:"link",className:"px-0",color:"gray",icon:C.includes("".concat(null==y?void 0:y.domain).concat(s.asPath))?(0,a.jsx)(d.s,{size:"sm",className:"text-success",children:(0,a.jsx)(V.Z,{})}):(0,a.jsx)(d.s,{size:"sm",children:(0,a.jsx)(R.Z,{})})}),className:"mb-2 mt-3"}),(0,a.jsx)("p",{className:"mb-0 text-start text-sm text-gray-700",children:"تلميح: انسخ هذا الرابط إلى متصفح سفاري لإكمال الدفع عبر Apple Pay."})]})]})]})};let X={APPLE_PAY:"applepay",GOOGLE_PAY:"googlepay"},$=Object.keys(X).map(e=>X[e]);var WalletCheckout=function(e){var t;let{app:s}=e,l=(0,r.useMemo)(()=>s.gateways.filter(e=>$.includes(e)),[s,$]);return l.length>0?(0,a.jsx)("div",{className:"grid gap-4 grid-cols-".concat(1),children:(t=X.APPLE_PAY,s.gateways.some(e=>e===t)&&(0,a.jsx)(msaaqPay_ApplePayWallet,{app:s}))}):null},msaaqPay_BankTransferCheckout=e=>{let{app:t}=e,{t:s}=(0,n.Y)(["shopping_cart","bank"]),r=(0,m.useRouter)(),[i]=(0,o.Dd)(),{isMemberValid:c}=(0,l.qx)(),u=(0,l.Bv)(),C=(0,l.TL)(),f=h.Ry({account_owner:h.Z_().required(),receipt:h.IX().min(1).required()}),{handleSubmit:g,control:j,setError:v,formState:{errors:y,isValid:_,isSubmitting:b}}=(0,x.cI)({defaultValues:{account_owner:"",receipt:[]},resolver:(0,p.X)(f)}),{displayErrors:w}=(0,l.ah)({setError:v}),k=g(async e=>{let t=c();if(!t)return;await C((0,q.O8)(!0));let s=await i({payment_gateway:N.Bn.BANK_TRANSFER,account_owner:e.account_owner,receipt:e.receipt[0].file,...t});if(await C((0,q.O8)(!1)),w(s))return;u();let a=s.data.data.cart.uuid;a&&await r.replace("/cart/".concat(s.data.data.cart.uuid,"/thank-you"))});return t.banks[0]?(0,a.jsxs)("div",{className:"overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4 py-4",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-4 rounded border border-gray-300 p-4",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(d.u.Text,{size:"sm",className:"font-bold",children:s("shopping_cart:bank_transfer_account_details")}),(0,a.jsx)(d.u.Body,{size:"md",className:"font-normal text-gray-700",children:s("shopping_cart:bank_transfer_account_details_description")})]}),t.banks.length>1?t.banks.map((e,t)=>(0,a.jsx)(d.D,{className:"rounded-lg border border-gray-300",defaultOpen:0===t,children:t=>{let{isOpen:s}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.D.Button,{className:"!px-4 !py-6",children:(0,a.jsxs)("div",{className:"flex flex-grow flex-row justify-between",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(d.u.Body,{size:"md",children:e.bank_name})}),(0,a.jsx)(d.s,{className:"".concat(s?"rotate-180 transform":""," text-purple-500 transition-all duration-300 ease-in-out"),children:(0,a.jsx)(F.Z,{})})]})}),(0,a.jsx)(d.D.Content,{className:"px-4 pb-6",children:(0,a.jsx)(PaymentMethods_BankDetails,{bank:e})})]})}},e.id)):(0,a.jsx)(PaymentMethods_BankDetails,{bank:t.banks[t.banks.length-1]})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,a.jsx)(d.A,{title:(0,a.jsx)(d.u.Text,{size:"sm",className:"font-normal",children:s("shopping_cart:bank_transfer_alert")}),variant:"soft",color:"info"}),(0,a.jsx)(x.Qr,{name:"account_owner",control:j,render:e=>{var t;let{field:r}=e;return(0,a.jsx)(d.W.Input,{isRequired:!0,label:s("bank:account_name"),placeholder:s("bank:account_name_input_placeholder"),error:null===(t=y.account_owner)||void 0===t?void 0:t.message,...r})}}),(0,a.jsx)(d.W.Group,{label:s("shopping_cart:bank_transfer_receipt_input_label"),required:!0,className:"mb-0",children:(0,a.jsx)(x.Qr,{name:"receipt",control:j,render:e=>{let{field:{onChange:t,...s}}=e;return(0,a.jsx)(d.W.File,{maxFiles:1,onChange:e=>{t(e)},...s,accept:["image/*","application/pdf"],className:"mt-2"})}})})]})]}),(0,a.jsxs)("div",{className:"border-t border-gray-300 p-4",children:[(0,a.jsx)(d.B,{disabled:!_||b,isLoading:b,onClick:k,className:"w-full",children:s("shopping_cart:checkout")}),(0,a.jsx)(PaymentMethods_PrivacyPolicyText,{})]})]}):null};let PayPalCheckout_ButtonWrapper=e=>{let{setErrorMessage:t,isMemberValid:s}=e,i=(0,r.useRef)(""),{t:c}=(0,n.Y)(["validation"]),d=(0,l.Bv)(),u=(0,m.useRouter)(),p=(0,l.TL)(),[{isPending:x}]=(0,D.Up)(),[h]=(0,o.F2)(),[C]=(0,o.dB)();return(0,a.jsx)(a.Fragment,{children:x?(0,a.jsx)("div",{className:"spinner",children:"loading paypal buttons"}):(0,a.jsx)(D.ch,{onClick:(e,t)=>{let a=s();return a?t.resolve():t.reject()},createOrder:()=>{let e=s();return e?h({...e}).then(e=>{if(e.data){var t,s,a;return i.current=null===(a=e.data)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:null===(t=s.cart)||void 0===t?void 0:t.uuid,d(),e.data.data.paypal_order_id}e.error&&console.log("Paypal createOrder error: ",e.error)}):Promise.reject("Member info is not valid")},onApprove:async(e,s)=>(await p((0,q.O8)(!0)),C({cart_id:i.current,paypal_order_id:e.orderID}).then(async e=>{await p((0,q.O8)(!1));let a=e.data,r=Array.isArray(a.details)&&a.details[0];if(r&&"INSTRUMENT_DECLINED"===r.issue)return s.restart();if(r){let e="";r.description&&(e+="\n\n"+r.description),a.debug_id&&(e+=" ("+a.debug_id+")"),console.log(e),t(c("validation:unexpected_error"))}await u.replace("/cart/".concat(i.current,"/thank-you"))})),onError:e=>{console.error(e),t(c("validation:unexpected_error"))}})})};var msaaqPay_PayPalCheckout=e=>{let{app:t}=e,[s,n]=(0,r.useState)(""),{isMemberValid:o}=(0,l.qx)();return t.client_id?(0,a.jsx)("div",{className:"overflow-hidden",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 border-t border-gray-300 p-4 py-4",children:[(0,a.jsx)(D.Vv,{options:{clientId:t.client_id,currency:"USD",locale:"ar_SA",components:"buttons",dataNamespace:"paypal_sdk"},children:(0,a.jsx)(PayPalCheckout_ButtonWrapper,{isMemberValid:o,setErrorMessage:n})}),(0,a.jsx)(d.W.Errors,{errors:s})]})}):null},checkout_MsaaqPayPaymentGateways=e=>{let{msaaqpayApp:t,cart:s,authenticated:l,bankTransferApp:o,payPalApp:i,tamaraApp:c}=e,{t:d}=(0,n.Y)(["shopping_cart"]),{member:u}=(0,r.useContext)(b.Vo);return t?(0,a.jsxs)("div",{className:"relative flex flex-col",children:[s.is_free&&(0,a.jsx)(PaymentMethods_FreeByCouponCheckout,{}),!s.is_free&&!l&&(0,a.jsx)(MemberInfoCheckout,{}),(0,a.jsxs)("div",{className:"relative flex flex-col space-y-6 py-8",children:[s.is_free&&(0,a.jsx)("div",{className:"pointer-events-auto absolute inset-0 z-50 bg-white bg-opacity-40"}),(0,a.jsx)(cart_CouponInput,{coupon:s.coupon,className:"flex lg:!hidden"}),(0,a.jsxs)("div",{className:"relative rounded-lg border border-gray-300 px-4 pb-4 pt-8",children:[(0,a.jsx)("span",{className:"absolute left-2/4 top-[-13px] w-fit -translate-x-2/4 translate-y-0 whitespace-nowrap bg-white px-2",children:d("shopping_cart:checkout_with_wallets")}),(0,a.jsx)(WalletCheckout,{app:t})]}),(0,a.jsx)("div",{className:"relative border-t border-gray-300",children:(0,a.jsx)("span",{className:"absolute left-2/4 top-[-13px] w-fit -translate-x-2/4 translate-y-0 whitespace-nowrap bg-white px-2",children:d("shopping_cart:checkout_with_other_methods")})}),u&&u.saved_cards&&u.saved_cards.length>0&&(0,a.jsx)(msaaqPay_SavedCardsCheckout,{}),(0,a.jsx)(g.Accordion,{name:"payment",title:d("shopping_cart:card_checkout"),payment_logo:["MADA","VISA","MASTER"],id:"msaaq-pay",children:s.is_free?void 0:(0,a.jsx)(msaaqPay_CardCheckout,{app:t})}),c&&(0,a.jsx)(g.Accordion,{name:"payment",title:d("shopping_cart:tamara_checkout"),payment_logo:["Tamara"],id:"tamara",children:s.is_free?void 0:(0,a.jsx)(PaymentMethods_TamaraCheckout,{app:c})}),i&&(0,a.jsx)(g.Accordion,{name:"payment",title:d("shopping_cart:paypal_checkout"),payment_logo:["PayPal"],id:"paypal",children:s.is_free?void 0:(0,a.jsx)(msaaqPay_PayPalCheckout,{app:i})}),o&&(0,a.jsx)(g.Accordion,{name:"payment",title:d("shopping_cart:bank_transfer_checkout"),payment_logo:["bankTransfer"],id:"bank_transfer_checkout",children:s.is_free?void 0:(0,a.jsx)(msaaqPay_BankTransferCheckout,{app:o})})]})]}):null},checkout_OtherPaymentGateways=e=>{let{tapApp:t,paylinkApp:s,myfatoorah:r,stripeApp:l,paddleApp:o,cart:i,isMoreThanOnePaymentMethodAvailable:c,bankTransferApp:u,payPalApp:m,tamaraApp:p}=e,{t:x}=(0,n.Y)(["shopping_cart"]);return(0,a.jsxs)(a.Fragment,{children:[i.is_free&&(0,a.jsx)(PaymentMethods_FreeByCouponCheckout,{}),(0,a.jsxs)("div",{className:"relative flex flex-col space-y-6 py-8",children:[i.is_free&&(0,a.jsx)("div",{className:"pointer-events-auto absolute inset-0 z-50 bg-white bg-opacity-40"}),(0,a.jsx)(cart_CouponInput,{coupon:i.coupon,className:"flex lg:!hidden"}),(0,a.jsx)(d.u.Title,{size:"sm",className:"font-semibold lg:!mt-0",children:x("shopping_cart:payment_method")}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Accordion,{name:"payment",title:x(c?"shopping_cart:tap_checkout":"shopping_cart:card_checkout"),payment_logo:["MADA","VISA","MASTER"],id:"tap",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_TapPaymentCreditCheckout,{app:t})}),(0,a.jsx)(g.Accordion,{name:"payment",title:x("shopping_cart:tap_apply_pay_checkout"),payment_logo:["Apple Pay"],id:"tap_apply_pay",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_TapPaymentApplePayCheckout,{})})]}),s&&(0,a.jsx)(g.Accordion,{name:"payment",title:x(c?"shopping_cart:paylink_checkout":"shopping_cart:card_checkout"),payment_logo:["MADA","Apple Pay","VISA","MASTER"],id:"paylink",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_PaylinkCheckout,{})}),r&&(0,a.jsx)(g.Accordion,{name:"payment",title:x(c?"shopping_cart:myfatoorah_checkout":"shopping_cart:card_checkout"),payment_logo:["MADA","KNET","STC Pay","Apple Pay","Google Pay","VISA","MASTER"],id:"myfatoorah",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_MyfatoorahCheckout,{app:r})}),l&&(0,a.jsx)(g.Accordion,{name:"payment",title:x(c?"shopping_cart:stripe_checkout":"shopping_cart:card_checkout"),payment_logo:["Apple Pay","VISA","MASTER"],id:"stripe-checkout",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_StripeCheckout,{})}),o&&(0,a.jsx)(g.Accordion,{name:"payment",title:x(c?"shopping_cart:paddle_checkout":"shopping_cart:card_checkout"),payment_logo:["Apple Pay","VISA","MASTER","PayPal"],id:"paddle-checkout",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_PaddleCheckout,{app:o})}),u&&(0,a.jsx)(g.Accordion,{name:"payment",title:x("shopping_cart:bank_transfer_checkout"),payment_logo:["bankTransfer"],id:"payment",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_BankTransferCheckout,{app:u})}),p&&(0,a.jsx)(g.Accordion,{name:"payment",title:x(c?"shopping_cart:tamara_checkout":"shopping_cart:card_checkout"),payment_logo:["Tamara"],id:"tamara",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_TamaraCheckout,{app:p})}),m&&(0,a.jsx)(g.Accordion,{name:"payment",title:x(c?"shopping_cart:paypal_checkout":"shopping_cart:card_checkout"),payment_logo:["PayPal"],id:"paypal",children:i.is_free?void 0:(0,a.jsx)(PaymentMethods_PayPalCheckout,{app:m})})]})]})},ee=s(73268);let et=P()(()=>Promise.resolve().then(s.bind(s,87704)).then(e=>e.CheckoutAnimation),{loadableGenerated:{webpack:()=>[87704]},ssr:!1});var checkout_Base=e=>{var t;let{showAnimation:s}=e,{t:c}=(0,n.Y)(["shopping_cart","common"]),m=(0,r.useRef)(null),[p,x]=(0,r.useState)(0),{formatPlainPrice:h}=(0,l.pA)(),{data:C}=(0,i.G)(),{data:f,isLoading:v}=(0,o.NS)(),{checkoutProcessing:y}=(0,l.CG)(e=>e.checkout),{authenticated:w}=(0,r.useContext)(b.Vo),M=(0,l.ns)(),L=(0,r.useCallback)(e=>{var t;return null==C?void 0:null===(t=C.apps)||void 0===t?void 0:t.find(t=>t.slug===e)},[C]),z=(0,r.useMemo)(()=>{var e;let t=null!==(e=null==C?void 0:C.apps)&&void 0!==e?e:[],s=t.filter(e=>e.category&&"payment"===e.category);return s.length>1},[C]),Z=s||v,S=f&&0===f.items.length;(0,r.useEffect)(()=>{if(f&&C){var e;let t={coupon_code:null!==(e=f.coupon)&&void 0!==e?e:"",currency:C.currency,price:"".concat(h(f.total)),title:"Cart #".concat(f.id),ids:f.items.map(e=>"".concat(e.product.id)),items:f.items.map(e=>({id:e.product.id,price:h(e.total),quantity:1,name:e.product.title,category:e.type}))};window.APP_EVENTS.BEGIN_CHECKOUT.map(e=>{try{return e(t)}catch(e){console.error(e)}})}},[f,C]),(0,r.useEffect)(()=>{m.current&&x(m.current.offsetHeight)},[m,m.current,x]);let H=(0,r.useMemo)(()=>(0,k.IQ)(M),[M]);return(0,a.jsxs)(g.Layout,{hasHeader:null!=f&&!!f.is_free,hasFooter:!1,hasMobileNavigation:!1,classNames:{layout:"my-0 h-screen overflow-x-hidden",header:"md:!hidden block"},children:[(0,a.jsx)(Y.V,{title:c("shopping_cart:title",{count:null!==(t=null==f?void 0:f.items.length)&&void 0!==t?t:0})}),(0,a.jsx)(A,{className:(0,u.cn)((null==f?void 0:f.is_free)?"":"hidden md:!block"),activeStep:"2",ref:m}),C&&f&&!Z?S?(0,a.jsx)(g.Layout.Container,{layout:"center",children:(0,a.jsx)(g.EmptyState,{className:"p-0",iconClassName:"text-gray-700",title:c("common:cart_empty_state_title"),description:c("common:cart_empty_state_description"),icon:(0,a.jsx)(j.Z,{}),actions:(0,a.jsx)(d.B,{as:_(),href:"/",className:"w-full md:!w-auto",children:c("common:browse_academy")})})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(et,{show:y,children:(0,a.jsxs)("div",{className:"flex flex-col justify-center text-center",children:[(0,a.jsx)(d.u.Body,{size:"base",className:"dots-animate font-bold",children:c("shopping_cart:checkout_loading")}),(0,a.jsx)(d.u.Body,{size:"md",className:"font-medium text-gray-700",children:c("shopping_cart:checkout_loading_description")})]})}),!f.is_free&&(0,a.jsx)(checkout_MobileCartItems,{cart:f}),(0,a.jsx)(g.Layout.Container,{layout:"default",style:{height:0==p?"auto":"calc(100% - ".concat(p,"px)")},className:(0,u.cn)("relative z-10 mt-[138px] lg:mt-0 lg:pt-0",f.is_free?"mt-6 lg:mt-12":""),children:f.is_free&&!f.is_free_due_to_coupon?(0,a.jsx)(PaymentMethods_FreeCheckout,{cart:f}):(0,a.jsxs)("div",{className:"grid h-full grid-cols-1 gap-10 lg:grid-cols-2",children:[(0,a.jsxs)("div",{className:"mb-6 flex flex-col space-y-6",children:[C.msaaqpay_enabled?(0,a.jsx)(checkout_MsaaqPayPaymentGateways,{cart:f,msaaqpayApp:L(N.VC.Msaaqpay),authenticated:w,bankTransferApp:L(N.VC.BankTransfer),tamaraApp:H?L(N.VC.Tamara):void 0,payPalApp:L(N.VC.PayPal)}):(0,a.jsx)(checkout_OtherPaymentGateways,{cart:f,isMoreThanOnePaymentMethodAvailable:z,tamaraApp:H?L(N.VC.Tamara):void 0,payPalApp:L(N.VC.PayPal),bankTransferApp:L(N.VC.BankTransfer),paylinkApp:L(N.VC.Paylink),myfatoorah:L(N.VC.Myfatoorah),paddleApp:L(N.VC.Paddle),stripeApp:L(N.VC.Stripe),tapApp:L(N.VC.Tap)}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,a.jsx)(d.s,{variant:"soft",color:"gray",size:"xs",rounded:"full",children:(0,a.jsx)(ee.Z,{})}),(0,a.jsx)(d.u.Body,{size:"md",className:"font-medium",children:c("shopping_cart:secure_payment")})]})]}),(0,a.jsx)("div",{className:"relative hidden before:absolute before:-z-[1] before:hidden before:h-full before:w-screen before:bg-gray-100 lg:!block lg:before:!block",children:(0,a.jsx)(checkout_DesktopCartItems,{cart:f})})]})})]}):(0,a.jsx)(et,{show:Z})]})}},19204:function(e,t,s){var a=s(85893),r=s(67294);t.Z=e=>{let{videoId:t,iframeClass:s}=e,l=(0,r.useRef)(null);return(0,a.jsx)("div",{className:"abjad-player-wrapper",children:(0,a.jsx)("div",{className:"abjad-player",children:(0,a.jsx)("iframe",{className:s,src:"https://play.gumlet.io/embed/".concat(t,"?preload=false&autoplay=false&loop=false&disable_player_controls=false"),style:{border:"none",position:"absolute",top:"0",left:"0",height:"100%",width:"100%"},allow:"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture; fullscreen;",allowFullScreen:!0,ref:l})})})}},6316:function(e,t,s){s.r(t),s.d(t,{AboutInstructor:function(){return modals_AboutInstructor},AcademyLogo:function(){return eN.hJ},AccessSection:function(){return eN.yq},Accordion:function(){return eN.UQ},AccountLayout:function(){return account_AccountLayout},AppMenu:function(){return en.AppMenu},AppMenuDropdown:function(){return en.AppMenuDropdown},AppMenuItem:function(){return en.AppMenuItem},AppMenuLink:function(){return en.AppMenuLink},AppointmentCard:function(){return library_AppointmentCard},ArticleCard:function(){return eD.T},AssignmentContent:function(){return eN.zZ},AudioContent:function(){return eN.D5},BankAccountModal:function(){return modals_BankAccountModal},BookingDetailsBase:function(){return BookingDetails},BundleCard:function(){return eN.Sk},CertificateLibraryCard:function(){return eN.Lr},ChapterItem:function(){return eN.mS},CoachingSessionAppointmentCard:function(){return library_CoachingSessionAppointmentCard},CommentCard:function(){return eN.p8},CommentInput:function(){return eN._D},CommentItem:function(){return eN.HI},Comments:function(){return eN.HW},CompletedCourseModal:function(){return eN.sG},ContentAttachments:function(){return eN.e4},ContentFooter:function(){return eN.jB},ContentHeader:function(){return eN.yW},ContentItem:function(){return eN.SM},ContentLayout:function(){return eN.Dv},ContinueCourseAction:function(){return ContinueCourseAction},CourseCard:function(){return eN.Pg},CourseHeader:function(){return eN.yg},CourseLibraryCard:function(){return eN.k0},CourseSideCard:function(){return courses_CourseSideCard},CourseSidebar:function(){return eN.jv},Datatable:function(){return datatable_Datatable},Drawer:function(){return eN.dy},DripContentSection:function(){return eN.UR},EditEmailInput:function(){return inputs_EditEmailInput},EditPasswordInput:function(){return inputs_EditPasswordInput},EditPhoneInput:function(){return inputs_EditPhoneInput},EmptyState:function(){return common_EmptyState},EmptyStateImage:function(){return eN.ox},EmptyStateTable:function(){return EmptyData},FileItem:function(){return eN.jU},FilteringCard:function(){return store_FilteringCard},FilteringSection:function(){return store_FilteringSection},Footer:function(){return en.Footer},Frames:function(){return eU},Header:function(){return en.Header},LangSwitcher:function(){return en.LangSwitcher},Layout:function(){return en.Layout},LoadingScreen:function(){return components_LoadingScreen},LoginData:function(){return forms_LoginData},MeetingAppointmentCard:function(){return library_MeetingAppointmentCard},MeetingContent:function(){return eN.St},MemberAssignments:function(){return library_MemberAssignments},MemberAssignmentsState:function(){return library_MemberAssignmentsState},MemberQuizzes:function(){return library_MemberQuizzes},MemberRejectedAssignments:function(){return library_MemberRejectedAssignments},MentorDetailsCard:function(){return mentor_MentorDetailsCard},MobileNavigation:function(){return en.MobileNavigation},ModifyLoginDataModal:function(){return modals_ModifyLoginDataModal},OrderDetailsCard:function(){return common_OrderDetailsCard},OrderDetailsModal:function(){return modals_OrderDetailsModal},OtherProductsCard:function(){return common_OtherProductsCard},OtpModal:function(){return modals_OtpModal},PDFContent:function(){return eN.io},PageLayout:function(){return en.PageLayout},PaymentMethodLogo:function(){return eN.wP},PayoutDetailsModal:function(){return modals_PayoutDetailsModal},PersonalData:function(){return forms_PersonalData},Player:function(){return e5.Z},PrevNextContentButtons:function(){return eN.gb},Price:function(){return eN.tA},ProductCard:function(){return eN.Il},ProductFilesModal:function(){return account_ProductFilesModal},ProductImages:function(){return products_ProductImages},ProductMobileImages:function(){return products_ProductMobileImages},ProductPrice:function(){return eN.jF},ProductProfileCard:function(){return eN.pL},ProductReviewsDistribution:function(){return reviews_ProductReviewsDistribution},ProductSectionCard:function(){return eN.dX},ProductSideCard:function(){return products_ProductSideCard},QuizContent:function(){return eN.bg},QuizForm:function(){return eN.C2},QuizInformation:function(){return eN.CZ},QuizQuestion:function(){return eN.qH},QuizQuestionChoice:function(){return eN.T$},QuizResult:function(){return eN.MI},RatingCourseModal:function(){return eN.nw},ReviewCard:function(){return common_ReviewCard},ReviewsSection:function(){return reviews_ReviewsSection},SearchModal:function(){return modals_SearchModal},SessionSideCard:function(){return products_SessionSideCard},ShareCourseModal:function(){return eN.sx},StarsRating:function(){return common_StarsRating},StatsCard:function(){return library_StatsCard},SurveyContent:function(){return eN.MA},SurveyForm:function(){return eN.Pb},SurveyInformation:function(){return eN.D},SurveyQuestion:function(){return eN.T6},SurveyQuestionChoice:function(){return eN.HK},SurveyResult:function(){return eN.bK},SwiperButtons:function(){return swiper_SwiperButtons},TableEmptyState:function(){return common_TableEmptyState},TamaraWidget:function(){return components_TamaraWidget},TamaraWidgetType:function(){return r},TextContent:function(){return eN.D7},Thumbnail:function(){return eN.pl},Time:function(){return eN.qp},TimeOutSection:function(){return eN.xO},VideoContent:function(){return eN.zP},WalletLayout:function(){return wallet_WalletLayout},WithdrawEarningsModal:function(){return modals_WithdrawEarningsModal}});var a,r,l=s(85893),n=s(41664),o=s.n(n),i=s(11163),c=s(58035),d=s(77032),u=s(62683),m=s(74820),p=s(81701),x=s(1037),h=s(73365),C=s(80439),f=s(16382),account_AccountLayout=e=>{let{children:t,actions:s}=e,{t:a}=(0,u.Y)(["common","account"]),{isActive:r}=(0,d.BM)(),n=(0,i.useRouter)();return(0,l.jsxs)(en.Layout,{className:n.pathname.substring(1).replace(/\//g,"-"),children:[(0,l.jsx)(c.V,{title:a("common:my_library")}),(0,l.jsxs)(en.Layout.Container,{layout:"center",className:"lg:!w-4/5 xl:!w-3/5",children:[(0,l.jsxs)("div",{className:"mb-6 flex flex-col space-y-6 md:mb-0",children:[(0,l.jsx)(m.u.Title,{size:"sm",className:"font-bold",children:a("common:my_library")}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsxs)(m.N,{className:"scrollbar-hide w-fit overflow-x-scroll",children:[(0,l.jsx)(m.N.Item,{as:o(),href:"/library",isActive:r(["/library"]),className:"account-library",iconAlign:"start",icon:(0,l.jsx)(p.Z,{className:"h-6 w-6 text-inherit"}),children:a("account:tabs_library")}),(0,l.jsx)(m.N.Item,{as:o(),href:"/library/courses",isActive:r(["/library/courses"]),className:"account-courses",iconAlign:"start",icon:(0,l.jsx)(x.Z,{className:"h-6 w-6 text-inherit"}),children:a("account:tabs_courses")}),(0,l.jsx)(m.N.Item,{as:o(),href:"/library/products",isActive:r(["/library/products"]),className:"account-products",iconAlign:"start",icon:(0,l.jsx)(h.Z,{className:"h-6 w-6 text-inherit"}),children:a("account:tabs_products")}),(0,l.jsx)(m.N.Item,{as:o(),href:"/library/coaching-sessions",isActive:r(["/library/coaching-sessions"]),className:"account-coaching-sessions",iconAlign:"start",icon:(0,l.jsx)(C.Z,{className:"h-6 w-6 text-inherit"}),children:a("account:tabs_coaching_sessions")}),(0,l.jsx)(m.N.Item,{as:o(),href:"/library/certificates",isActive:r(["/library/certificates"]),className:"account-certificates",iconAlign:"start",icon:(0,l.jsx)(f.Z,{className:"h-6 w-6 text-inherit"}),children:a("account:tabs_certificates")})]}),s]})]}),(0,l.jsx)("div",{className:"my-6 hidden h-px w-full bg-gray-400 md:block"}),t]})]})},g=s(65133),j=s(98523),account_ProductFilesModal=e=>{let{showModal:t,toggleModal:s,attachments:a,product:r}=e,{t:n}=(0,u.Y)(["account"]),{downloadFile:o,isDownloading:i}=(0,d.O6)();return(0,l.jsxs)(m.M,{size:"xl",open:t,onDismiss:s,bordered:!0,children:[(0,l.jsx)(m.M.Header,{title:n("account:download_files",{count:a.length}),className:"flex justify-between",children:(0,l.jsx)(m.B,{color:"gray",size:"sm",variant:"solid",icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(g.Z,{})}),onClick:async()=>{r&&await o("/products/".concat(r.slug,"/download"),r.title)},isLoading:!!r&&i("/products/".concat(r.slug,"/download")),children:n("account:download_all_files")})}),(0,l.jsx)(m.M.Body,{className:"space-y-2.5",children:a.map((e,t)=>(0,l.jsx)(m.J,{className:"rotate-0 border-0",children:(0,l.jsxs)(m.J.Body,{className:"flex items-center justify-between px-4 py-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,l.jsx)(m.s,{size:"sm",variant:"soft",color:"primary",className:"text-gray-900",rounded:"full",children:(0,l.jsx)(j.Z,{})}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(m.u.Body,{size:"base",className:"font-medium text-gray-950",children:e.file_name}),(0,l.jsx)(m.u.Body,{size:"md",className:"text-right font-normal text-gray-700",dir:"ltr",children:"".concat((e.size/1048576).toFixed(2)," MB")})]})]}),(0,l.jsx)(m.B,{onClick:async()=>{r&&await o("/products/".concat(r.slug,"/download/").concat(e.uuid),e.file_name)},isLoading:!!r&&i("/products/".concat(r.slug,"/download/").concat(e.uuid)),rounded:"full",size:"sm",variant:"solid",color:"gray",icon:(0,l.jsx)(m.s,{children:(0,l.jsx)(g.Z,{})})})]})},t))})]})},v=s(7395),common_EmptyState=e=>{let{title:t,description:s,icon:a,actions:r,color:n="gray",bordered:o=!1,variant:i="transparent",className:c,iconClassName:d}=e;return(0,l.jsx)(m.J,{className:(0,v.cn)(!o&&"border-0",c),children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col items-center gap-4",children:[a&&(0,l.jsx)(m.s,{color:n,rounded:"base",size:"xl",variant:i,className:d,children:a}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,l.jsx)(m.u.Body,{as:"h3",size:"lg",children:t,className:"font-bold"}),s&&(0,l.jsx)(m.u.Body,{as:"p",className:"font-normal text-gray-800",size:"md",children:s})]}),r]})})},y=s(94135),_=s(2261),b=s(4055),common_OtherProductsCard=e=>{let{fetcher:t,slug:s,type:a}=e,{t:r}=(0,u.Y)(["common"]),{data:n}=t({limit:3,slug:s});return(null==n?void 0:n.length)?(0,l.jsx)("div",{className:"mt-8 hidden md:block",children:(0,l.jsx)(eN.dX,{align:"center",vertical:!0,title:r("product"==a?"common:other_products":"common:other_courses"),icon:(0,l.jsx)(b.Z,{}),children:(0,l.jsxs)(_.tq,{spaceBetween:16,navigation:!0,breakpoints:{640:{slidesPerView:1,spaceBetween:16},768:{slidesPerView:2,spaceBetween:16},1024:{slidesPerView:3,spaceBetween:16}},modules:[y.W_,y.Qr],className:"px-0 pb-12 pt-2 md:!px-8",children:[null==n?void 0:n.map((e,t)=>(0,l.jsx)(_.o5,{children:"product"==a?(0,l.jsx)(eN.Il,{product:e}):(0,l.jsx)(eN.Pg,{course:e})},t)),(0,l.jsx)(swiper_SwiperButtons,{})]}),hasDivider:!0,dividerPosition:"top",className:"!px-8 !py-12"})}):null},w=s(67294),N=s(61646),common_StarsRating=e=>{let{color:t="secondary",onChange:s,value:a=0,isReadOnly:r,size:n="xl",label:o,className:i,children:c}=e,[d,u]=(0,w.useState)(0),onStarsHover=e=>{u(null!=e?e+1:0)};return(0,l.jsxs)("div",{className:(0,v.cn)("rating-container flex items-center gap-1",i),children:[o&&(0,l.jsx)(m.u.Body,{size:"md",children:o,className:(0,v.cn)("rating-label text-".concat(t))}),(0,l.jsx)("div",{className:"rating-stars flex items-center",children:[void 0,void 0,void 0,void 0,void 0].map((e,o)=>(0,l.jsx)(m.s,{size:n,className:(0,v.cn)(d>o||a>o?"rating-star-filled text-".concat(t):"rating-star-empty text-gray-400","rating-star-".concat(o+1)),...r?{}:{onClick:()=>{null==s||s(o+1)},onMouseEnter:()=>{onStarsHover(o)},onMouseLeave:()=>{onStarsHover()}},children:(0,l.jsx)(N.Z,{})},o))}),c]})};let k=(0,w.forwardRef)((e,t)=>{let{}=e;return(0,l.jsxs)("svg",{width:"58",height:"46",viewBox:"0 0 58 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M57.127 14.4802V12.4294C57.127 12.0383 56.9716 11.6632 56.695 11.3867C56.4185 11.1101 56.0434 10.9548 55.6523 10.9548H50.4471C50.2534 10.9548 50.0616 10.9166 49.8827 10.8425C49.7038 10.7684 49.5412 10.6598 49.4043 10.5229C49.2674 10.386 49.1587 10.2234 49.0846 10.0445C49.0105 9.86561 48.9724 9.67386 48.9724 9.48022V7.42936C48.9724 7.23571 49.0105 7.04396 49.0846 6.86506C49.1587 6.68616 49.2674 6.5236 49.4043 6.38668C49.5412 6.24975 49.7038 6.14114 49.8827 6.06703C50.0616 5.99293 50.2534 5.95479 50.4471 5.95479H50.6114C51.0025 5.95479 51.3776 5.79943 51.6542 5.5229C51.9308 5.24636 52.0861 4.8713 52.0861 4.48022V2.42936C52.0861 2.03828 51.9308 1.66322 51.6542 1.38668C51.3776 1.11014 51.0025 0.954788 50.6114 0.954788H12.0617C11.6705 0.954788 11.2955 1.11014 11.0189 1.38668C10.7423 1.66322 10.587 2.03828 10.587 2.42936V4.48022C10.587 4.8713 10.7423 5.24636 11.0189 5.5229C11.2955 5.79943 11.6705 5.95479 12.0617 5.95479C12.4528 5.95479 12.8279 6.11014 13.1044 6.38668C13.381 6.66321 13.5364 7.03828 13.5364 7.42936V9.48022C13.5364 9.8713 13.381 10.2464 13.1044 10.5229C12.8279 10.7994 12.4528 10.9548 12.0617 10.9548H6.35888C5.96776 10.9548 5.59267 11.1101 5.31611 11.3867C5.03955 11.6632 4.88418 12.0383 4.88418 12.4294V14.4802C4.88418 14.8713 5.03955 15.2464 5.31611 15.5229C5.59267 15.7994 5.96776 15.9548 6.35888 15.9548H8.59656C8.79022 15.9548 8.98199 15.9929 9.16091 16.067C9.33982 16.1411 9.50239 16.2497 9.63933 16.3867C9.77627 16.5236 9.8849 16.6862 9.95901 16.8651C10.0331 17.044 10.0713 17.2357 10.0713 17.4294V19.4802C10.0713 19.6739 10.0331 19.8656 9.95901 20.0445C9.8849 20.2234 9.77627 20.386 9.63933 20.5229C9.50239 20.6598 9.33982 20.7684 9.16091 20.8425C8.98199 20.9167 8.79022 20.9548 8.59656 20.9548H8.59115C8.20004 20.9548 7.82494 21.1102 7.54839 21.3867C7.27183 21.6632 7.11646 22.0383 7.11646 22.4294V24.4802C7.11646 24.6739 7.1546 24.8656 7.22872 25.0445C7.30283 25.2234 7.41145 25.386 7.54839 25.5229C7.68533 25.6598 7.8479 25.7684 8.02682 25.8425C8.20573 25.9166 8.3975 25.9548 8.59116 25.9548H8.9149C9.30602 25.9548 9.68111 26.1101 9.95767 26.3867C10.2342 26.6632 10.3896 27.0383 10.3896 27.4294V29.4802C10.3896 29.8713 10.2342 30.2464 9.95767 30.5229C9.68111 30.7994 9.30602 30.9548 8.9149 30.9548H3.60165C3.21054 30.9548 2.83544 31.1101 2.55888 31.3867C2.28232 31.6632 2.12695 32.0383 2.12695 32.4294V34.4802C2.12695 34.8713 2.28232 35.2464 2.55888 35.5229C2.83544 35.7994 3.21054 35.9548 3.60165 35.9548H51.4031C51.7943 35.9548 52.1693 35.7994 52.4459 35.5229C52.7225 35.2464 52.8778 34.8713 52.8778 34.4802V32.4294C52.8778 32.0383 52.7225 31.6632 52.4459 31.3867C52.1693 31.1101 51.7943 30.9548 51.4031 30.9548H50.1245C49.7334 30.9548 49.3583 30.7994 49.0817 30.5229C48.8052 30.2464 48.6498 29.8713 48.6498 29.4802V27.4294C48.6498 27.0383 48.8052 26.6632 49.0817 26.3867C49.3583 26.1101 49.7334 25.9548 50.1245 25.9548H53.1394C53.3331 25.9548 53.5248 25.9166 53.7038 25.8425C53.8827 25.7684 54.0452 25.6598 54.1822 25.5229C54.3191 25.386 54.4277 25.2234 54.5018 25.0445C54.576 24.8656 54.6141 24.6739 54.6141 24.4802V22.4294C54.6141 22.0383 54.4587 21.6632 54.1822 21.3867C53.9056 21.1101 53.5305 20.9548 53.1394 20.9548H52.2248C52.0312 20.9548 51.8394 20.9167 51.6605 20.8425C51.4816 20.7684 51.319 20.6598 51.1821 20.5229C51.0451 20.386 50.9365 20.2234 50.8624 20.0445C50.7883 19.8656 50.7501 19.6739 50.7501 19.4802V17.4294C50.7501 17.2357 50.7883 17.044 50.8624 16.8651C50.9365 16.6862 51.0451 16.5236 51.1821 16.3867C51.319 16.2497 51.4816 16.1411 51.6605 16.067C51.8394 15.9929 52.0312 15.9548 52.2248 15.9548H55.6523C56.0434 15.9548 56.4185 15.7994 56.695 15.5229C56.9716 15.2464 57.127 14.8713 57.127 14.4802Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M33.635 11.7888H19.3555V21.8858H33.635V11.7888Z",fill:"#ED702D"}),(0,l.jsx)("path",{d:"M26.0774 22.508H22.1488C22.073 22.508 21.9985 22.488 21.9328 22.4501C21.8671 22.4122 21.8126 22.3576 21.7747 22.2919C21.7368 22.2262 21.7168 22.1517 21.7168 22.0759C21.7168 22 21.7368 21.9255 21.7747 21.8598L23.739 18.4567L25.7033 15.0537C25.7412 14.988 25.7957 14.9334 25.8614 14.8955C25.9271 14.8576 26.0016 14.8376 26.0774 14.8376C26.1533 14.8376 26.2278 14.8576 26.2934 14.8955C26.3591 14.9334 26.4136 14.988 26.4516 15.0537L28.4159 18.4567L30.3801 21.8598C30.4181 21.9255 30.438 22 30.438 22.0759C30.438 22.1517 30.4181 22.2262 30.3801 22.2919C30.3422 22.3576 30.2877 22.4122 30.222 22.4501C30.1563 22.488 30.0818 22.508 30.006 22.508H26.0774Z",fill:"white"}),(0,l.jsx)("path",{d:"M26.2936 16.962C26.2936 16.8426 26.1968 16.7458 26.0775 16.7458C25.9581 16.7458 25.8613 16.8426 25.8613 16.962V20.1847C25.8613 20.3041 25.9581 20.4008 26.0775 20.4008C26.1968 20.4008 26.2936 20.3041 26.2936 20.1847V16.962Z",fill:"#1D3430"}),(0,l.jsx)("path",{d:"M26.5928 21.2999C26.6209 21.0156 26.4133 20.7624 26.1292 20.7342C25.845 20.7061 25.5918 20.9137 25.5636 21.1979C25.5355 21.4822 25.7431 21.7354 26.0273 21.7636C26.3114 21.7917 26.5646 21.5841 26.5928 21.2999Z",fill:"#1D3430"}),(0,l.jsx)("path",{d:"M48.6475 36.5626C49.1356 36.5626 49.1356 36.8203 49.6238 36.8203C50.1118 36.8203 50.1118 36.5626 50.5998 36.5626C51.0882 36.5626 51.0882 36.8203 51.5765 36.8203C52.0649 36.8203 52.0648 36.5626 52.5532 36.5626",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M48.6475 37.6907C49.1356 37.6907 49.1356 37.9484 49.6238 37.9484C50.1118 37.9484 50.1118 37.6907 50.5998 37.6907C51.0882 37.6907 51.0882 37.9484 51.5765 37.9484C52.0649 37.9484 52.0648 37.6907 52.5532 37.6907",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M48.6475 38.813C49.1356 38.813 49.1356 39.0707 49.6238 39.0707C50.1118 39.0707 50.1118 38.813 50.5998 38.813C51.0882 38.813 51.0882 39.0707 51.5765 39.0707C52.0649 39.0707 52.0648 38.813 52.5532 38.813",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M1.87402 30.608C2.36219 30.608 2.36219 30.8657 2.85035 30.8657C3.33836 30.8657 3.33836 30.608 3.82637 30.608C4.31472 30.608 4.31472 30.8657 4.80306 30.8657C5.29141 30.8657 5.29141 30.608 5.77975 30.608",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M1.87402 31.7341C2.36219 31.7341 2.36219 31.9918 2.85035 31.9918C3.33836 31.9918 3.33836 31.7341 3.82637 31.7341C4.31472 31.7341 4.31472 31.9918 4.80306 31.9918C5.29141 31.9918 5.29141 31.7341 5.77975 31.7341",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M1.87402 32.8622C2.36219 32.8622 2.36219 33.1199 2.85035 33.1199C3.33836 33.1199 3.33836 32.8622 3.82637 32.8622C4.31472 32.8622 4.31472 33.1199 4.80306 33.1199C5.29141 33.1199 5.29141 32.8622 5.77975 32.8622",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M23.6084 8.50052C24.0966 8.50052 24.0966 8.75821 24.5847 8.75821C25.0727 8.75821 25.0727 8.50052 25.5607 8.50052C26.0491 8.50052 26.0491 8.75821 26.5374 8.75821C27.0258 8.75821 27.0258 8.50052 27.5141 8.50052",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M23.6084 9.62666C24.0966 9.62666 24.0966 9.88435 24.5847 9.88435C25.0727 9.88435 25.0727 9.62666 25.5607 9.62666C26.0491 9.62666 26.0491 9.88435 26.5374 9.88435C27.0258 9.88435 27.0258 9.62666 27.5141 9.62666",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M23.6084 10.7575C24.0966 10.7575 24.0966 11.0152 24.5847 11.0152C25.0727 11.0152 25.0727 10.7575 25.5607 10.7575C26.0491 10.7575 26.0491 11.0152 26.5374 11.0152C27.0258 11.0152 27.0258 10.7575 27.5141 10.7575",stroke:"#F2F4F4",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,l.jsx)("path",{d:"M11.2163 45.0452C12.1383 45.0452 12.8857 44.2976 12.8857 43.3754C12.8857 42.4532 12.1383 41.7056 11.2163 41.7056C10.2943 41.7056 9.54688 42.4532 9.54688 43.3754C9.54688 44.2976 10.2943 45.0452 11.2163 45.0452Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M12.4272 39.8359C12.9052 39.8359 13.2928 39.4482 13.2928 38.97C13.2928 38.4918 12.9052 38.1042 12.4272 38.1042C11.9491 38.1042 11.5615 38.4918 11.5615 38.97C11.5615 39.4482 11.9491 39.8359 12.4272 39.8359Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M9.57517 22.3616C10.6722 22.3616 11.5615 21.4721 11.5615 20.3749C11.5615 19.2776 10.6722 18.3881 9.57517 18.3881C8.47817 18.3881 7.58887 19.2776 7.58887 20.3749C7.58887 21.4721 8.47817 22.3616 9.57517 22.3616Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M5.77975 19.9948C6.35116 19.9948 6.81438 19.5315 6.81438 18.9599C6.81438 18.3884 6.35116 17.9251 5.77975 17.9251C5.20834 17.9251 4.74512 18.3884 4.74512 18.9599C4.74512 19.5315 5.20834 19.9948 5.77975 19.9948Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M6.73059 16.0378C7.0602 16.0378 7.32739 15.7705 7.32739 15.4408C7.32739 15.1111 7.0602 14.8439 6.73059 14.8439C6.40099 14.8439 6.13379 15.1111 6.13379 15.4408C6.13379 15.7705 6.40099 16.0378 6.73059 16.0378Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M10.0342 17.2943C10.8243 17.2943 11.4649 16.6536 11.4649 15.8633C11.4649 15.073 10.8243 14.4323 10.0342 14.4323C9.24405 14.4323 8.60352 15.073 8.60352 15.8633C8.60352 16.6536 9.24405 17.2943 10.0342 17.2943Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M44.1006 12.7275C45.1976 12.7275 46.0869 11.838 46.0869 10.7407C46.0869 9.64346 45.1976 8.75395 44.1006 8.75395C43.0036 8.75395 42.1143 9.64346 42.1143 10.7407C42.1143 11.838 43.0036 12.7275 44.1006 12.7275Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M47.2612 9.24024C47.8326 9.24024 48.2958 8.77691 48.2958 8.20536C48.2958 7.63382 47.8326 7.17049 47.2612 7.17049C46.6898 7.17049 46.2266 7.63382 46.2266 8.20536C46.2266 8.77691 46.6898 9.24024 47.2612 9.24024Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M51.2129 14.7812C51.7074 14.7812 52.1083 14.3802 52.1083 13.8855C52.1083 13.3909 51.7074 12.9899 51.2129 12.9899C50.7183 12.9899 50.3174 13.3909 50.3174 13.8855C50.3174 14.3802 50.7183 14.7812 51.2129 14.7812Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M49.7931 11.4227C50.1227 11.4227 50.3899 11.1554 50.3899 10.8257C50.3899 10.4961 50.1227 10.2288 49.7931 10.2288C49.4635 10.2288 49.1963 10.4961 49.1963 10.8257C49.1963 11.1554 49.4635 11.4227 49.7931 11.4227Z",fill:"#F2F4F4"}),(0,l.jsx)("path",{d:"M47.7373 14.8763C48.5275 14.8763 49.168 14.2356 49.168 13.4453C49.168 12.6549 48.5275 12.0142 47.7373 12.0142C46.9472 12.0142 46.3066 12.6549 46.3066 13.4453C46.3066 14.2356 46.9472 14.8763 47.7373 14.8763Z",fill:"#F2F4F4"})]})});var common_TableEmptyState=e=>{let{title:t,content:s,className:a,children:r,icon:n,...o}=e;return(0,l.jsxs)("div",{className:(0,v.cn)("m-auto flex flex-col items-center justify-center space-y-6 py-10",a),...o,children:[n&&(0,l.jsx)("div",{className:"flex flex-col items-center justify-center",children:(null==n?void 0:n.type)===m.s?n:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(k,{}),(0,l.jsx)(m.s,{size:"md",className:"-mt-6 ml-2",children:n})]})}),(0,l.jsxs)("div",{className:"flex flex-col text-center",children:[t&&(0,l.jsx)(m.u.Body,{as:"p",size:"base",className:"mb-2 font-semibold",children:t}),s&&(0,l.jsx)(m.u.Body,{as:"p",size:"md",children:s,style:{maxWidth:"450px"},className:"font-normal text-gray-800"})]}),r]})},M=s(27484),L=s.n(M),z=s(45085),Z=s(52423),S=s(71831),H=s(89032),B=s(78943),E=s(86702),A=s(66812),I=s(76249),common_ReviewCard=e=>{let{review:t,queryParams:s,setCanReview:a}=e,{t:r}=(0,u.Y)(["reviews"]),n=(0,i.useRouter)(),o=(0,d.TL)(),{member:c}=(0,w.useContext)(z.Vo),[p]=(0,d.pU)({mutation:H.hI}),x=(0,w.useMemo)(()=>{var e;return!!((null===(e=t.user)||void 0===e?void 0:e.type)==="member"&&c&&c.id===t.user.id)},[t,c]);return(0,l.jsx)(m.J,{className:"mb-4 last:mb-0",children:(0,l.jsxs)(m.J.Body,{className:(0,v.cn)("!px-6 !pb-4 !pt-6",t.replies.length>0&&"after:absolute after:right-10 after:top-16 after:h-[calc(100%_-_160px)] after:border-r-2 after:border-dashed after:border-gray"),children:[(0,l.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[t.user&&(0,l.jsx)(m.w,{prepend:(0,l.jsx)(m.v,{size:"lg",imageUrl:t.user.avatar,name:t.user.name}),title:(0,l.jsx)(m.u.Body,{as:"h6",size:"base",className:"font-medium",children:t.user.name}),subtitle:(0,l.jsx)(m.u.Body,{size:"md",className:"font-normal text-gray-700",children:L()(t.created_at).fromNow(!1)})}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(m.x,{icon:(0,l.jsx)(m.s,{color:"warning",children:(0,l.jsx)(N.Z,{})}),color:"gray",rounded:"full",children:"".concat(t.rating,".0")}),x&&(0,l.jsxs)(m.E,{children:[(0,l.jsx)(m.E.Trigger,{children:(0,l.jsx)(m.B,{color:"gray",size:"sm",icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(A.Z,{})})})}),(0,l.jsx)(m.E.Menu,{children:(0,l.jsx)(m.E.Item,{children:(0,l.jsx)(m.u.Body,{size:"md",className:"text-danger",children:r("reviews:delete_review")}),icon:(0,l.jsx)(m.s,{size:"sm",children:(0,l.jsx)(I.Z,{})}),className:"text-danger",onClick:()=>p({id:t.id,title:r("reviews:delete_review"),description:r("reviews:verify_delete_alert_description"),okLabel:r("reviews:verify_delete_alert_confirm"),callback:()=>{a&&a(!0);let{relation_slug:e,...r}=s;o((0,H.Q7)("fetchReviews",r,e=>{e.data=e.data.filter(e=>t.id!==e.id)})),(null==s?void 0:s.relation_type)===B.ED.COURSE?o((0,Z.Qi)("fetchCourse",{slug:e},e=>{e.ratings[t.rating]-=1,e.reviews_count-=1,e.avg_rating=(0,E.Y8)(e.ratings,e.reviews_count)})):o((0,S.Kj)("fetchProduct",{slug:e,filters:{type:n.pathname.includes("coaching-sessions")?B.kv.COACHING_SESSION:B.kv.DIGITAL}},e=>{e.ratings[t.rating]-=1,e.reviews_count-=1,e.avg_rating=(0,E.Y8)(e.ratings,e.reviews_count)}))}})})})]})]})]}),(0,l.jsx)("div",{className:(0,v.cn)(t.replies.length>0&&"ms-16"),children:(0,l.jsx)(m.u.Body,{as:"p",size:"md",className:"font-normal text-gray-800",children:t.content})}),t.replies.map(e=>(0,l.jsx)("div",{className:"relative ms-16 mt-4 after:absolute after:-right-10 after:top-4 after:z-[1] after:h-[calc(100%_-_100px)] after:w-10 after:border-b-2 after:border-dashed after:border-gray",children:(0,l.jsx)(eN.HI,{comment:e})},e.id))]})})},common_OrderDetailsCard=e=>{let{title:t,children:s,hasBorder:a=!0,className:r}=e;return(0,l.jsxs)("div",{className:(0,v.cn)("grid grow gap-2 border-gray-400 pb-3 md:!me-4 md:!pb-0",a&&"border-b-2 md:!border-b-0 md:!border-s-2 md:ps-4",r),children:[(0,l.jsx)(m.u.Body,{size:"sm",className:"text-gray-800",children:t}),s]})},reviews_ProductReviewsDistribution=e=>{let{product:t,titleKey:s}=e,{t:a}=(0,u.Y)(["reviews"]);return(0,l.jsx)(m.J,{children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col justify-between gap-6 p-6 md:!flex-row",children:[(0,l.jsxs)("div",{className:"grid grow items-start justify-start",children:[(0,l.jsx)(m.u.Heading,{level:"h2",as:"h5",children:t.avg_rating}),(0,l.jsx)(common_StarsRating,{value:t.avg_rating,isReadOnly:!0,size:"md"}),(0,l.jsx)(m.u.Body,{size:"md",className:"mt-2 font-normal text-gray-700",children:a("reviews:".concat(s),{review:t.reviews_count})})]}),(0,l.jsx)("div",{className:"grid grow items-center gap-4",children:Object.entries(t.ratings).sort((e,t)=>{let[s]=e,[a]=t;return Number(a)-Number(s)}).map(e=>{let[s,r]=e;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(m.u.Body,{size:"sm",className:"font-normal text-gray-700",children:a("reviews:stars",{star:s})}),(0,l.jsx)("div",{className:"grow",children:(0,l.jsx)(m.P.Bar,{color:"warning",value:t.reviews_count>0?Math.round(r/t.reviews_count*100):0})})]},s)})})]})})},P=s(25675),T=s.n(P),R=s(86049),V=s(53901),reviews_ReviewsSection=e=>{let{title:t,product:s,reviewsEnabled:a}=e,{t:r}=(0,u.Y)(["reviews","common"]),[n,c]=(0,w.useState)(!1),{authenticated:p}=(0,w.useContext)(z.Vo),x=(0,d.TL)(),h=(0,i.useRouter)(),C=(0,w.useMemo)(()=>(0,B.rC)(s),[s]),{data:f,canLoadMore:g,loadMore:j,currentPage:v,isFetching:y}=(0,d.MQ)(H.QM,{limit:3,relation_type:C,relation_id:s.id}),{percentageCompleted:_}=(0,d.CG)(e=>e.courses);return((0,w.useEffect)(()=>{C===B.ED.PRODUCT?c(s.can_download&&s.meta.reviews_enabled&&p&&!s.is_reviewed):c(s.enrolled&&s.settings.reviews_enabled&&p&&_>50&&!s.is_reviewed)},[s,p]),(null==f?void 0:f.length)||a)?(0,l.jsx)(eN.dX,{title:r("reviews:title"),icon:(0,l.jsx)(V.Z,{}),children:(0,l.jsxs)(l.Fragment,{children:[(null==f?void 0:f.length)>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(reviews_ProductReviewsDistribution,{titleKey:C===B.ED.PRODUCT?"product_reviews_count":"course_reviews_count",product:s}),(0,l.jsxs)("div",{className:"relative flex items-center gap-3 py-5",children:[(0,l.jsx)("div",{className:"flex-grow border-t border-gray-400"}),(0,l.jsx)(m.u.Body,{as:"h6",size:"sm",children:r("reviews:label")}),(0,l.jsx)("div",{className:"flex-grow border-t border-gray-400"})]}),f.map(e=>(0,l.jsx)(common_ReviewCard,{setCanReview:c,review:e,queryParams:{limit:3,relation_type:C,relation_id:s.id,relation_slug:s.slug,page:v}},e.id)),(n||g)&&(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-8 md:!flex-row",children:[n&&a&&(0,l.jsx)(m.B,{disabled:!n,icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(V.Z,{})}),className:"w-full md:!w-auto",children:r("reviews:review_now"),onClick:()=>x((0,R.UH)(!0))}),g&&(0,l.jsx)(m.B,{size:"md",isLoading:y,disabled:y,onClick:j,children:r("reviews:load_more"),color:"gray",className:"w-full md:!w-auto"})]})]}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-8",children:[(0,l.jsx)("div",{className:"mx-auto w-60 md:!w-96",children:(0,l.jsx)(T(),{width:1e3,height:1e3,src:"/images/no-reviews.png",alt:"no-reviews"})}),(0,l.jsx)(m.u.Title,{as:"p",className:"text-center",children:null!=t?t:r(p?"reviews:empty":"reviews:empty_guest")}),p?n&&a&&(0,l.jsx)(m.B,{icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(V.Z,{})}),disabled:!n,children:r("reviews:review_now"),onClick:()=>x((0,R.UH)(!0))}):(0,l.jsx)(m.B,{as:o(),href:"/login",children:r("common:join_now")})]}),(0,l.jsx)(eN.nw,{product:s,callback:e=>{c(!1),x((0,H.Q7)("fetchReviews",{limit:3,relation_type:C,relation_id:s.id,page:v},t=>{t.data.push({...e,replies:[]})})),C===B.ED.COURSE?x((0,Z.Qi)("fetchCourse",{slug:s.slug},t=>{t.ratings[e.rating]+=1,t.reviews_count+=1,t.avg_rating=(0,E.Y8)(t.ratings,t.reviews_count)})):x((0,S.Kj)("fetchProduct",{slug:s.slug,filters:{type:h.pathname.includes("coaching-sessions")?B.kv.COACHING_SESSION:B.kv.DIGITAL}},t=>{t.ratings[e.rating]+=1,t.reviews_count+=1,t.avg_rating=(0,E.Y8)(t.ratings,t.reviews_count)}))}})]})}):null},q=s(87704),F=s(47810),D=s(89871),O=s(20445),W=s(33955),Y=s(7543),Q=s(54510),G=s(85755),J=s(79111),U=s(80682),K=s(43451),X=s(19204),courses_CourseSideCard=e=>{var t,s;let{course:a}=e,{t:n}=(0,u.Y)(["common","course_page","students"]),[i,c]=(0,w.useState)(),{formatPlainPrice:p}=(0,d.pA)(),getMeetingAndQuiz=()=>{let e=null==a?void 0:a.chapters.flatMap(e=>e.contents.filter(e=>"quiz"===e.type||"meeting"===e.type)).filter(e=>void 0!==e),t=e.filter(e=>"quiz"===e.type).length,s=e.filter(e=>"meeting"===e.type).length;return c({quizzesLength:t,meetingsLength:s}),i};return(0,w.useEffect)(()=>{getMeetingAndQuiz()},[a]),(0,l.jsx)(eN.pL,{reviewsEnabled:a.settings.reviews_enabled,course:a,append:a.intro_video?"gumlet"==a.intro_video.provider?(0,l.jsx)(X.Z,{iframeClass:"rounded-2xl",videoId:a.intro_video.provider_id}):(0,l.jsx)("div",{dir:"ltr",className:"ms-player-wrapper-toggled-width overflow-hidden rounded-2xl",children:(0,l.jsx)(e5.Z,{rel:"0",src:a.intro_video.url})}):(0,l.jsx)(eN.pl,{alt:a.title,src:a.thumbnail,size:"lg"}),badge:a.sales_price>0?(0,l.jsx)(m.x,{color:"warning",variant:"soft",size:"md",rounded:"full",children:n("common:discount",{discount:(0,E.Et)(a.sales_price,a.price)})}):void 0,title:a.title,summary:a.summary,category:a.category,categoryHref:a.category?"/courses/categories/".concat(a.category.slug):"",ratings:null!==(t=null==a?void 0:a.avg_rating)&&void 0!==t?t:0,totalReviews:null!==(s=null==a?void 0:a.reviews_count)&&void 0!==s?s:0,ratingsDetails:a.settings.show_enrollments_count&&(0,l.jsx)(m.u.Body,{size:"sm",className:"text-gray-700",children:n("students:WithCount",{count:a.enrollments_count})}),list:{label:n("course_page:course_details"),className:"course-details-list",items:[...a.timing?[{icon:(0,l.jsx)(D.Z,{}),text:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.C,{i18nKey:"course_page:course_date",components:{strong:(0,l.jsx)("strong",{}),code:(0,l.jsx)(m.x,{color:"gray",variant:"soft",size:"sm"})},values:{from:a.timing.from,to:a.timing.to}})}),className:"course-timing-item"}]:[],..."online"==a.course_type?[{icon:(0,l.jsx)(O.Z,{}),text:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.C,{i18nKey:(0,E.BE)(a.duration).hours>0?"course_page:duration_with_hours":"course_page:duration",components:{strong:(0,l.jsx)("strong",{})},values:(0,E.BE)(a.duration).hours>0?{hour:(0,E.BE)(a.duration).hours,minute:(0,E.BE)(a.duration).minutes}:{minute:(0,E.BE)(a.duration).minutes}})}),className:"course-duration-item"}]:[],..."on_site"==a.course_type?[{icon:(0,l.jsx)(W.Z,{}),text:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.C,{i18nKey:"course_page:days_WithCount",components:{strong:(0,l.jsx)("strong",{})},values:{count:(0,F.Z)(a.timing.to).diff((0,F.Z)(a.timing.from),"days")}})}),className:"course-days-item"}]:[],..."on_site"==a.course_type&&a.enrollments_count?[{icon:(0,l.jsx)(Y.Z,{}),text:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.C,{i18nKey:"course_page:enrollments_WithCount",components:{strong:(0,l.jsx)("strong",{})},values:{count:a.enrollments_count}})}),className:"course-enrollments-count-item"}]:[],..."online"==a.course_type?[{icon:(0,l.jsx)(W.Z,{}),text:(0,l.jsx)(u.C,{i18nKey:"course_page:contents_WithCount",components:{strong:(0,l.jsx)("strong",{})},values:{count:a.contents_count}}),className:"course-contents-count-item"}]:[],...a.difficulty?[{icon:(0,l.jsx)(Q.Z,{}),text:(0,l.jsx)(u.C,{i18nKey:"course_page:difficulty",components:{strong:(0,l.jsx)("strong",{})},values:{difficulty:a.difficulty.name}}),className:"course-difficulty-item"}]:[],...a.settings.certificate_enabled&&"on_site"!==a.course_type?[{icon:(0,l.jsx)(G.Z,{}),text:n("course_page:certification"),className:"course-certification-item"}]:[],...i&&(null==i?void 0:i.meetingsLength)>0?[{icon:(0,l.jsx)(J.Z,{}),text:n("course_page:meeting_WithCount",{count:null==i?void 0:i.meetingsLength}),className:"course-meetings-count-item"}]:[],...i&&(null==i?void 0:i.quizzesLength)>0?[{icon:(0,l.jsx)(U.Z,{}),text:n("course_page:quiz_WithCount",{count:null==i?void 0:i.quizzesLength}),className:"course-quizzes-count-item"}]:[],...a.settings.limit_seats?[{icon:(0,l.jsx)(Y.Z,{}),text:n("course_page:seats_WithCount",{count:a.settings.seats}),className:"course-seats-count-item"}]:[]]},price:(0,l.jsx)(eN.jF,{price:a.price,salesPrice:a.sales_price}),actions:a.enrolled?(0,l.jsx)(l.Fragment,{children:"online"==a.course_type?a.is_started?(0,l.jsx)(ContinueCourseAction,{course:a,variant:"solid",color:"primary",className:"w-full"}):(0,l.jsx)(m.A,{variant:"soft",color:"gray",children:n("common:course_starts_at",{date:(0,F.Z)(a.publish_at).format(B.i2)})}):(0,l.jsx)(m.B,{variant:"solid",as:o(),href:a.location.url,target:"_blank",color:"primary",className:"w-full",children:n("common:show_on_google_map")})}):(0,l.jsx)(l.Fragment,{children:a.settings.close_enrollments||!a.in_stock?(0,l.jsx)(m.B,{disabled:!0,color:"primary",size:"md",variant:"solid",className:"w-full",children:n("common:course_enrollment_closed")}):(a.is_started||!a.is_started&&a.settings.early_access)&&(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,l.jsx)(q.ExpressCheckoutButton,{product_type:"course",product_id:a.id,color:"primary",size:"md",variant:"solid",className:"shrink grow basis-auto break-words",label:n(0==a.price?"common:join_now_for_free":"common:buy_now")}),(0,l.jsx)(q.AddToCartButton,{product:a,product_type:"course",product_id:a.id,color:"gray",size:"md",icon:(0,l.jsx)(m.s,{children:(0,l.jsx)(K.Z,{})})})]})}),children:(0,l.jsx)(components_TamaraWidget,{className:"mt-4",price:p(a.price),type:r.SPILT_AMOUNT_PRODUCT_PAGE})})};let ContinueCourseLinkAction=e=>{let{course:t,children:s,...a}=e,r=(0,w.useMemo)(()=>(0,E.Kx)(t),[t]),{t:n}=(0,u.Y)(["common"]);return(0,l.jsx)(m.B,{as:o(),href:r,icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(J.Z,{})}),...a,children:s||n("common:continue_course")})},ContinueCourseBtnAction=e=>{let{course:t,children:s,...a}=e,{t:r}=(0,u.Y)(["common"]),[n,o]=(0,Z.yO)(),c=(0,i.useRouter)();return((0,w.useEffect)(()=>{o.isSuccess&&c.push((0,E.Kx)(o.data))},[o]),"on_site"==t.course_type)?(0,l.jsx)(m.B,{variant:"outline",onClick:()=>n({slug:t.slug}),children:r("common:continue_course")}):(0,l.jsx)(m.B,{icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(J.Z,{})}),onClick:()=>n({slug:t.slug}),...a,children:s||r("common:continue_course")})},ContinueCourseAction=e=>{var t;let{course:s,...a}=e;return(null===(t=s.enrollment)||void 0===t?void 0:t.last_viewed)?(0,l.jsx)(ContinueCourseLinkAction,{course:s,...a}):(0,l.jsx)(ContinueCourseBtnAction,{course:s,...a})};var $=s(82313),ee=s(62940),modals_AboutInstructor=e=>{var t;let{instructor:s,open:a,onDismiss:r}=e,{t:n}=(0,u.Y)(["instructors","common","students","course_page"]),[i,c]=(0,w.useState)(!1);return((0,w.useEffect)(()=>{c(null!=a&&a)},[a]),s)?(0,l.jsx)(m.M,{open:i,onDismiss:r,size:"3xl",children:(0,l.jsxs)(m.M.Body,{children:[(0,l.jsx)(m.J,{className:"rounded-2xl border-0",children:(0,l.jsx)(m.J.Body,{className:"bg-gray-100",children:(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(m.v,{size:"lg",name:s.name,imageUrl:s.avatar}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(m.u.Body,{size:"base",className:"font-medium",children:n("instructors:about_instructor")}),s.job_title&&(0,l.jsx)(m.u.Body,{size:"md",className:"font-normal text-gray-700",children:s.job_title})]})]})})}),(0,l.jsxs)(m.G,{columns:{md:s.bio?2:1,sm:1},gap:{md:"1rem",lg:"1rem",xl:"1rem"},className:"mt-8",children:[s.bio&&(0,l.jsx)(m.G.Cell,{className:"h-full",children:(0,l.jsx)(eN.dX,{title:n("instructors:about_trainer"),icon:(0,l.jsx)($.Z,{}),children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.u.Body,{className:"text-gray-900",children:s.bio}),s.username&&(0,l.jsx)(m.B,{as:o(),href:"/@".concat(null!==(t=s.username)&&void 0!==t?t:s.uuid),color:"gray",className:"w-full font-normal",children:n("instructors:show_profile")})]}),vertical:!0})}),(0,l.jsxs)(m.G.Cell,{className:"grid h-full gap-4",children:[(0,l.jsx)(m.J,{className:"rounded-2xl",children:(0,l.jsxs)(m.J.Body,{className:"flex items-center justify-start gap-6",children:[(0,l.jsx)(m.s,{size:"lg",color:"info",rounded:"full",variant:"solid",className:"p-4",children:(0,l.jsx)(J.Z,{})}),(0,l.jsxs)("div",{className:"grid",children:[(0,l.jsx)(m.u.Text,{className:"font-semibold",children:n("common:courses_count_WithCount",{count:2})}),(0,l.jsx)(m.u.Text,{size:"xs",className:"font-normal text-gray-700",children:n("instructors:course_count")})]})]})}),(0,l.jsx)(m.J,{className:"rounded-2xl",children:(0,l.jsxs)(m.J.Body,{className:"flex items-center justify-start gap-6",children:[(0,l.jsx)(m.s,{size:"lg",color:"info",rounded:"full",variant:"solid",className:"p-4",children:(0,l.jsx)(Y.Z,{})}),(0,l.jsxs)("div",{className:"grid",children:[(0,l.jsx)(m.u.Text,{className:"font-semibold",children:n("students:WithCount",{count:2})}),(0,l.jsx)(m.u.Text,{size:"xs",className:"font-normal text-gray-700",children:n("instructors:student_count")})]})]})}),(0,l.jsx)(m.J,{className:"rounded-2xl",children:(0,l.jsxs)(m.J.Body,{className:"flex items-center justify-start gap-6",children:[(0,l.jsx)(m.s,{size:"lg",color:"info",rounded:"full",variant:"solid",className:"p-4",children:(0,l.jsx)(ee.Z,{})}),(0,l.jsxs)("div",{className:"grid",children:[(0,l.jsx)(m.u.Text,{className:"font-semibold",children:n("course_page:views_WithCount",{count:2})}),(0,l.jsx)(m.u.Text,{size:"xs",className:"font-normal text-gray-700",children:n("instructors:views_count")})]})]})})]})]})]})}):null},et=s(50361),es=s.n(et),ea=s(20582),EmptyData=e=>{let{title:t,content:s,children:a,icon:r,...n}=e,o=(0,i.useRouter)(),{search:c,filters:p}=o.query,[x,h]=(0,w.useState)(t),[C,f]=(0,w.useState)(s),{t:g}=(0,u.Y)(["empty_sections"]),j=(0,d.ry)();return(0,w.useEffect)(()=>(c||p?(h("ليس لديك أي طلبات!"),f("لم يتمّ العثور على أي طلبات حتى الآن، يمكنك العودة للمنصة لشراء منتجك الأول.")):(h(t),f(s)),()=>{h(t),f(s)}),[t,s,c,p]),(0,l.jsx)(common_TableEmptyState,{title:x,content:C,className:"min-h-[theme(spacing.64)]",icon:c||p?(0,l.jsx)(m.s,{children:(0,l.jsx)(ea.Z,{}),className:"h-12 w-12 text-gray-600"}):r,...n,children:c||p?(0,l.jsx)(m.B,{children:g("empty_sections:no_results_found"),onClick:()=>j.clear()}):a})},er=s(49560),el=s(89396),datatable_Datatable=e=>{var t,s,a,r,n,o,c,p,x;let{toolbar:h,fetcher:C,filter:f,params:g={},args:j,columns:v,dataFormatter:y=e=>e,hasSearch:_=!1,hasFilter:b=!0,defaultPerPage:N=10,emptyState:k,setIsTableEmpty:M,scrollOnRouteChange:L=!0,isShallow:z=!1,...Z}=e,S=(0,i.useRouter)(),{page:H}=S.query,{t:B}=(0,u.Y)(["empty_sections"]),A=(0,w.useMemo)(()=>({...S.query,...g}),[g,S.query]),I=(0,d.ry)(),{data:P={},isLoading:T}=C(A,j),R=null!==(o=null==P?void 0:null===(t=P.meta)||void 0===t?void 0:t.sortable)&&void 0!==o?o:[],V=(0,w.useMemo)(()=>{var e;return v.columns({sortables:R,...null!==(e=null==v?void 0:v.props)&&void 0!==e?e:{}})},[R]);(0,w.useEffect)(()=>{var e;null==M||M(!!(null==P?void 0:null===(e=P.data)||void 0===e?void 0:e.length))},[P]);let handlePagination=(e,t)=>{S.replace({query:(0,E.nZ)({...S.query,page:t})},void 0,{scroll:L,shallow:z})},[q,F]=(0,w.useState)(0),handleSearch=e=>{let{value:t}=e.target;q&&clearTimeout(q),F(setTimeout(async()=>{I.set({search:t.trim(),page:1})},400))},D=Math.ceil((null===(s=P.meta)||void 0===s?void 0:s.total)/(null!==(c=null===(a=P.meta)||void 0===a?void 0:a.per_page)&&void 0!==c?c:N));return(0,w.useEffect)(()=>{D<parseInt(A.page)&&handlePagination(0,1)},[P]),(0,l.jsx)(m.z,{isLoading:T,columns:V,data:y(null!==(p=null==P?void 0:P.data)&&void 0!==p?p:[]),hasPagination:(null==P?void 0:null===(r=P.data)||void 0===r?void 0:r.length)>0&&D>1,pageCount:D,pageSize:null!==(x=null===(n=P.meta)||void 0===n?void 0:n.per_page)&&void 0!==x?x:N,pageIndex:H?parseInt(H)-1:0,onPageChange:handlePagination,onSortChange:(e,t)=>{let s=es()(S.query);e?(s.sort=e,s.sort_direction=null!=t?t:"desc"):(delete s.sort,delete s.sort_direction),S.replace({query:(0,E.nZ)(s)})},renderToolbar:e=>{var t;return h||f?(0,l.jsxs)("div",{className:"mb-6 flex flex-row items-center",children:[(0,l.jsx)("div",{className:"flex gap-3",children:_&&(0,l.jsx)(m.W.Input,{placeholder:null!==(t=B("".concat(S.pathname.replace("/","").replaceAll("-","_").replaceAll("/",".").replaceAll(/[\[\]]/g,"").split("?")[0],".search_input_placeholder")))&&void 0!==t?t:"",onChange:handleSearch,className:"h-[42px] lg:min-w-[390px]",prepend:(0,l.jsx)(m.s,{className:"text-gray-700 ltr:ml-3 rtl:mr-3",children:(0,l.jsx)(el.Z,{})})})}),h&&(0,l.jsx)("div",{className:"flex ltr:ml-auto rtl:mr-auto",children:h(e)})]}):null},messages:{emptyState:null!=k?k:(0,l.jsx)(EmptyData,{title:B("empty_sections:no_data_title"),content:B("empty_sections:no_data_label"),icon:(0,l.jsx)(er.Z,{})})},...Z})},en=s(91520),eo=s(68856),ei=s(60341),ec=s(38832),modals_OtpModal=e=>{var t,s;let{method:a,open:r,resendOTP:n,onDismiss:o,verify:i,data:c,disabled:d,isLoading:p,onChangeDataClick:x}=e,{t:h}=(0,u.Y)(["otp"]),[C,f]=(0,w.useState)(!1),[g,j]=(0,w.useState)("");(0,w.useEffect)(()=>{f(null!=r&&r)},[r]);let[v,y]=(0,w.useState)(!1),{startCountdown:_,currentTimeFormatted:b,resetCountdown:N}=(0,ei.Z)(60,()=>y(!1),()=>y(!0));(0,w.useEffect)(()=>{N(),_()},[C]);let verifyOTP=e=>{let t=e.replace(/[^0-9٠-٩]/g,"");return t=(0,E.D1)(t),(0,E.vO)(t)||(t=""),(0,E.kE)(t)||(t=""),t},handler=e=>{let t=verifyOTP(e);j(t),6===t.length&&i(t)},k=p&&(0,l.jsx)("div",{className:"p-3",children:(0,l.jsx)("div",{className:"dot-flashing"})});return(0,l.jsx)(m.M,{open:C,onDismiss:o,size:"sm",rounded:"2xl",children:(0,l.jsxs)(m.M.Body,{className:"flex flex-col items-center p-6",children:[(0,l.jsx)(m.s,{size:"xl",color:"gray",variant:"soft",rounded:"full",children:(0,l.jsx)(ec.Z,{})}),(0,l.jsx)("div",{className:"mt-4 flex flex-col items-center space-y-2",children:"email"==a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.u.Text,{as:"h3",size:"md",className:"font-bold",children:h("otp:verify_email")}),(0,l.jsx)(m.u.Body,{size:"sm",as:"span",className:"text-center text-gray-700",id:"otp_description",children:h("otp:verify_email_description",{email:c.email})}),(0,l.jsx)(m.B,{color:"primary",size:"sm",variant:"link",children:h("otp:change_email"),onClick:null!=x?x:o})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.u.Text,{as:"h3",size:"md",className:"font-bold",children:h("otp:verify_phone")}),(0,l.jsx)(m.u.Body,{size:"sm",as:"span",className:"text-gray-700",id:"otp_description",children:h("otp:verify_phone_description",{phone:"".concat(null===(t=c.phone)||void 0===t?void 0:t.phone_code).concat(null===(s=c.phone)||void 0===s?void 0:s.phone,"+")})}),(0,l.jsx)(m.B,{color:"primary",size:"sm",variant:"link",children:h("otp:change_phone"),onClick:null!=x?x:o})]})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-col items-center space-y-2",children:[(0,l.jsx)(m.W.Input,{"aria-label":"otp_description",placeholder:h("otp:otp_input_placeholder"),inputMode:"numeric",disabled:d,value:g,className:"m-0 w-full",dir:g||(null===eo.ag||void 0===eo.ag?void 0:eo.ag.language)=="en"?"ltr":"rtl",maxLength:6,onPasteCapture:e=>{handler(e.clipboardData.getData("text"))},onChange:e=>{handler(e.target.value)},...(null===eo.ag||void 0===eo.ag?void 0:eo.ag.language)=="en"?{append:k}:{prepend:k}}),(0,l.jsx)(m.B,{color:"primary",variant:"link",size:"sm",disabled:!v,onClick:()=>{n(),N(),_()},children:(0,l.jsx)(u.C,{i18nKey:"otp:resend_after_secs",components:{span:(0,l.jsx)("span",{className:"text-gray-700"})},values:{secs:b}})})]})]})})},ed=s(47533),eu=s(87536),em=s(16310),ep=s(43854),modals_SearchModal=e=>{let{open:t,onDismiss:s}=e,{t:a}=(0,u.Y)(["common"]),[r,n]=(0,w.useState)(!1),o=(0,i.useRouter)(),c=em.Ry({q:em.Z_().required(),type:em.Ry({label:em.Z_().required(),value:em.Z_().required()}).required()}),{control:d,handleSubmit:p,setFocus:x,formState:{isValid:h,isSubmitting:C}}=(0,eu.cI)({resolver:(0,ed.X)(c),mode:"onSubmit",defaultValues:{type:{label:a("common:courses_title"),value:"courses"}}});return(0,w.useEffect)(()=>{x("q")},[x]),(0,w.useEffect)(()=>{n(null!=t&&t)},[t]),(0,l.jsx)(m.M,{open:r,onDismiss:s,size:"2xl",rounded:"2xl",children:(0,l.jsx)(m.M.Body,{children:(0,l.jsx)(m.W,{onSubmit:p(e=>{C||(o.push("/search?q=".concat(e.q,"&type=").concat(e.type.value)),null==s||s())}),className:"w-full",children:(0,l.jsxs)("div",{className:"flex flex-col items-center gap-4 md:!flex-row",children:[(0,l.jsx)(m.W.Group,{className:"!mb-0 w-full md:!w-[250px]",children:(0,l.jsx)(eu.Qr,{name:"type",control:d,render:e=>{let{field:t}=e;return(0,l.jsx)(ep.P,{isSearchable:!1,autoFocus:!1,placeholder:a("common:search_type"),options:[{label:a("common:courses_title"),value:"courses"},{label:a("common:products_title"),value:"products"},{label:a("common:articles_title"),value:"posts"}],...t})}})}),(0,l.jsx)(eu.Qr,{name:"q",control:d,render:e=>{let{field:t}=e;return(0,l.jsx)(m.W.Input,{className:"!mb-0 w-full",type:"text",autoFocus:!0,"aria-labelledby":"search",onClear:()=>t.onChange(""),placeholder:a("common:search_modal_placeholder"),prepend:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(el.Z,{})}),clearable:!0,...t})}}),(0,l.jsx)(m.B,{color:"primary",size:"md",className:"w-full md:!w-auto",type:"submit",children:a("common:search"),disabled:!h||C})]})})})})},modals_ModifyLoginDataModal=e=>{let{control:t,show:s,toggleModifyLoginDataModal:a}=e,{t:r}=(0,u.Y)(["profile","common"]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(m.M,{open:s,onDismiss:a,bordered:!0,children:[(0,l.jsx)(m.M.Header,{title:r("profile:login_data_edit")}),(0,l.jsxs)(m.M.Body,{children:[(0,l.jsx)(m.u.Text,{size:"xs",className:"mb-4 block font-normal text-gray-700",children:r("profile:login_data_confirm_message")}),(0,l.jsx)(eu.Qr,{name:"confirmPassword",control:t,render:e=>{let{field:t}=e;return(0,l.jsx)(m.W.Password,{label:r("common:password"),...t})}})]}),(0,l.jsxs)(m.M.Footer,{className:"flex items-center justify-between",children:[(0,l.jsx)(m.B,{color:"primary",children:r("common:edit"),onClick:()=>{a()}}),(0,l.jsx)(m.B,{color:"gray",children:r("common:cancel"),onClick:a})]})]})})},ex=s(79648);let eh=(0,w.forwardRef)((e,t)=>{let{...s}=e,a=(0,w.useMemo)(()=>E.nh.map(e=>({label:e.ar_name,value:e.iso_3166_1_alpha2})),[E.nh]);return(0,l.jsx)(ep.P,{ref:t,options:a,components:{Option:e=>{var t;return(0,l.jsx)(ex.c.Option,{...e,children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{style:e.data.value?{backgroundImage:"url(https://cdn.msaaq.com/assets/flags/".concat(null===(t=e.data.value)||void 0===t?void 0:t.toLowerCase(),".svg)")}:{},className:"h-5 w-7 rounded bg-cover bg-center bg-no-repeat"}),(0,l.jsx)("span",{className:"mr-2",children:e.data.label})]})})},SingleValue:e=>{var t;return(0,l.jsx)(ex.c.SingleValue,{...e,children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{style:e.data.value?{backgroundImage:"url(https://cdn.msaaq.com/assets/flags/".concat(null===(t=e.data.value)||void 0===t?void 0:t.toLowerCase(),".svg)")}:{},className:"h-5 w-7 rounded bg-cover bg-center bg-no-repeat"}),(0,l.jsx)("span",{className:"mr-2",children:e.data.label})]})})}},...s})});var eC=s(75758),ef=s(68192),eg=s(97192),ej=s(41113);let ev=[{value:"male",label:"common:male"},{value:"female",label:"common:female"}],ey=[{value:"primary",label:"profile:personal_data_primary"},{value:"intermediate",label:"profile:personal_data_intermediate"},{value:"bachelor",label:"profile:personal_data_bachelor"},{value:"prof",label:"profile:personal_data_prof"}];var forms_PersonalData=()=>{var e,t,s,a,r,n,o;let{t:i}=(0,u.Y)(["profile","validation","common"]),{member:c}=(0,d.CG)(e=>e.auth),{data:p}=(0,eg.G)(),[x,h]=(0,w.useState)(null),C=(0,d.TL)(),[f]=(0,ef.TG)(),g=/^[\u0600-\u06FF\s]+$/,j=(0,eC.N5)(p).shape({avatar:em.nK().nullable().notRequired(),name:em.Z_().when("$tenant",(e,t)=>{let s=e[0].meta.enable_arabic_characters_only;return s?t.matches(g,()=>i("validation:name_must_be_in_arabic")).required():t.required()}),username:em.Z_().required(),national_id:em.Z_().when(["country_code"],(e,t)=>{let[s]=e;return p&&p.nelc_compliant&&(null==s?void 0:s.value.toLowerCase())==="sa"?t.required():t.nullable().notRequired()}),dob:em.Z_().nullable(),country_code:em.Ry().shape({label:em.Z_().required(),value:em.Z_().required()}).required(),job_title:em.Z_().nullable(),bio:em.Z_().nullable(),gender:em.Ry().shape({label:em.Z_().nullable(),value:em.Z_().nullable()}).nullable(),education:em.Ry().shape({label:em.Z_().nullable(),value:em.Z_().nullable()}).nullable()}),{handleSubmit:v,control:y,setValue:_,watch:b,setError:N,reset:k,formState:{errors:M,isSubmitting:L}}=(0,eu.cI)({resolver:(0,ed.X)(j),context:{tenant:p},mode:"onSubmit"}),z=(0,w.useMemo)(()=>{var e;return p&&p.nelc_compliant&&(null===(e=b("country_code"))||void 0===e?void 0:e.value.toLowerCase())==="sa"},[b("country_code")]),{displayErrors:Z,displaySuccess:S}=(0,d.ah)({setError:N});(0,w.useEffect)(()=>{if(h(null==c?void 0:c.avatar),c){var e,t;let s=ev.find(e=>e.value===c.gender),a=ey.find(e=>e.value===c.education),r=E.nh.find(e=>e.iso_3166_1_alpha2===c.country_code);k({name:c.name,username:c.username,national_id:c.national_id,country_code:{label:null==r?void 0:r.ar_name,value:null==r?void 0:r.iso_3166_1_alpha2},dob:c.dob,job_title:c.job_title,bio:c.bio,gender:{label:i(null!==(e=null==s?void 0:s.label)&&void 0!==e?e:""),value:null==s?void 0:s.value},education:{label:i(null!==(t=null==a?void 0:a.label)&&void 0!==t?t:""),value:null==a?void 0:a.value},...(0,eC.tn)(p,c)})}},[c]);let onProfilePictureChange=e=>{if(e.files&&e.files[0]){let t=new FileReader;t.onload=function(e){var t,s;h(null!==(s=null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.result)&&void 0!==s?s:"")},t.readAsDataURL(e.files[0]),_("avatar",e.files[0],{shouldDirty:!0})}},onSubmit=async e=>{let t=await f({...e,national_id:z?e.national_id:void 0,country_code:e.country_code.value.toLowerCase(),gender:e.gender.value,education:e.education.value});Z(t)||(S(t),C({type:"auth/setMember",payload:t.data.data}))};return c?(0,l.jsxs)(m.W,{onSubmit:v(onSubmit),children:[(0,l.jsxs)("label",{className:"mb-10 flex flex-col items-center",children:[(0,l.jsx)("input",{type:"file",className:"hidden",accept:"image/*",onChange:e=>onProfilePictureChange(e.target)}),!x&&(0,l.jsx)("div",{className:"flex items-center justify-center rounded-full border border-gray bg-gray-50 p-5",children:(0,l.jsx)(m.s,{size:"lg",children:(0,l.jsx)(ej.Z,{})})}),x&&(0,l.jsx)(m.v,{size:"xl",name:null!==(o=null==c?void 0:c.name)&&void 0!==o?o:"",imageUrl:x}),(0,l.jsx)(m.B,{as:"span",size:"sm",color:"gray",children:i("profile:personal_data_upload_avatar"),className:"mt-4"})]}),(0,l.jsx)(eu.Qr,{control:y,name:"name",render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,error:null===(t=M.name)||void 0===t?void 0:t.message,label:i("profile:personal_data_student_name"),description:i("common:name_in_arabic_helper"),placeholder:i("profile:personal_data_student_name_input_placeholder"),...s})}}),(0,l.jsx)(eu.Qr,{render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,error:null===(t=M.username)||void 0===t?void 0:t.message,label:i("common:username"),placeholder:i("profile:personal_data_username_input_placeholder"),...s})},control:y,name:"username"}),(0,l.jsx)(m.W.Group,{required:!0,className:"space-y-2",label:i("common:country"),errors:null===(t=M.country_code)||void 0===t?void 0:null===(e=t.value)||void 0===e?void 0:e.message,children:(0,l.jsx)(eu.Qr,{render:e=>{let{field:t}=e;return(0,l.jsx)(eh,{placeholder:i("common:search_country_name"),...t})},name:"country_code",control:y})}),z&&(0,l.jsx)(eu.Qr,{control:y,name:"national_id",render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,type:"number",error:null===(t=M.national_id)||void 0===t?void 0:t.message,label:i("profile:personal_data_id_number"),placeholder:i("profile:personal_data_id_number_input_placeholder"),description:i("profile:personal_data_id_number_message"),...s})}}),(0,l.jsx)(m.W.Group,{className:"space-y-2",label:i("common:gender"),errors:null===(a=M.gender)||void 0===a?void 0:null===(s=a.value)||void 0===s?void 0:s.message,children:(0,l.jsx)(eu.Qr,{control:y,name:"gender",render:e=>{let{field:t}=e;return(0,l.jsx)(ep.P,{placeholder:i("common:select"),options:ev.map(e=>({label:i(e.label),value:e.value})),...t})}})}),(0,l.jsx)(eu.Qr,{control:y,name:"dob",render:e=>{let{field:t}=e;return(0,l.jsx)(m.W.Input,{label:i("common:dob"),type:"date",...t})}}),(0,l.jsx)(eu.Qr,{control:y,name:"job_title",render:e=>{let{field:t}=e;return(0,l.jsx)(m.W.Input,{label:i("profile:personal_data_job_title"),placeholder:i("profile:personal_data_job_title_input_placeholder"),...t})}}),(0,l.jsx)(eu.Qr,{control:y,name:"bio",render:e=>{let{field:t}=e;return(0,l.jsx)(m.W.Input,{label:i("profile:personal_data_introduction"),placeholder:i("profile:personal_data_introduction_input_placeholder"),...t})}}),(0,l.jsx)(m.W.Group,{className:"space-y-2",label:i("profile:personal_data_educational_level"),errors:null===(n=M.education)||void 0===n?void 0:null===(r=n.value)||void 0===r?void 0:r.message,children:(0,l.jsx)(eu.Qr,{control:y,name:"education",render:e=>{let{field:t}=e;return(0,l.jsx)(ep.P,{menuPlacement:"top",placeholder:i("common:select"),options:ey.map(e=>({label:i(e.label),value:e.value})),...t})}})}),(0,l.jsx)(eC.ZP,{className:"mb-6",control:y,errors:M}),(0,l.jsx)(m.B,{type:"submit",children:i("common:save_modifications"),disabled:L,isLoading:L})]}):(0,l.jsx)(components_LoadingScreen,{})},forms_LoginData=()=>{let{member:e}=(0,d.CG)(e=>e.auth);return e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(inputs_EditPhoneInput,{}),(0,l.jsx)(inputs_EditEmailInput,{}),(0,l.jsx)(inputs_EditPasswordInput,{})]}):(0,l.jsx)(components_LoadingScreen,{})},inputs_EditPasswordInput=()=>{let{t:e}=(0,u.Y)(["common"]),[t]=(0,ef.a3)(),[s,a]=(0,w.useState)(!1),r=em.Ry({password:em.Z_().min(8)}),{handleSubmit:n,setError:o,control:i,reset:c,formState:{isDirty:p,isValid:x,isSubmitting:h}}=(0,eu.cI)({defaultValues:{password:""},resolver:(0,ed.X)(r)}),{displayErrors:C,displaySuccess:f}=(0,d.ah)({setError:o});(0,w.useEffect)(()=>{c({password:""})},[s]);let g=n(async e=>{let{password:s}=e,r=await t({password:s});C(r)||(f(r),a(!1))});return(0,l.jsx)(m.W,{onSubmit:g,children:(0,l.jsx)(m.J,{className:"rounded-xl border-0",children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col items-end gap-4 bg-gray-100 p-4 md:!flex-row",children:[(0,l.jsx)(eu.Qr,{name:"password",control:i,render:t=>{let{field:a}=t;return(0,l.jsx)(m.W.Password,{isDisabled:!s,label:e("common:password"),className:"mb-0 w-full",...a})}}),(0,l.jsxs)("div",{className:"flex gap-4",children:[(0,l.jsx)(m.B,{type:"submit",isLoading:h,disabled:h||!p&&s||!x&&s,color:s?"primary":"gray",children:e(s?"common:save_modifications":"common:edit"),onClick:e=>{p&&s||(e.preventDefault(),a(!0))}}),s&&(0,l.jsx)(m.B,{type:"button",disabled:h,color:"gray",children:e("common:cancel"),onClick:e=>{e.preventDefault(),c({password:""}),a(!1)}})]})]})})})},inputs_EditEmailInput=()=>{let{t:e,i18n:t}=(0,u.Y)(["common"]),[s,a]=(0,w.useState)(!1),[r,n]=(0,w.useState)(!1),o=(0,d.TL)(),{member:i}=(0,d.CG)(e=>e.auth),[c]=(0,ef.qf)(),[p]=(0,ef.dB)(),x=em.Ry({email:em.Z_().required()}),{handleSubmit:h,getValues:C,setError:f,control:g,reset:j,setFocus:v,formState:{isDirty:y,isSubmitting:_}}=(0,eu.cI)({resolver:(0,ed.X)(x)});(0,w.useEffect)(()=>{i&&j({email:i.email})},[i]);let{displayErrors:b,displaySuccess:N}=(0,d.ah)({setError:f}),k=h(async e=>{let{email:t}=e,s=await c({type:"email",email:t});b(s)||(N(s),a(!0))}),verifyCredentials=async e=>{if(_)return;let t=await p({type:"email",email:e.email,otp_code:e.otp});b(t)||(N(t),o({type:"auth/setMember",payload:{...i,email:e.email}}),j({email:e.email}),a(!1),n(!1))};return(0,l.jsxs)(m.W,{onSubmit:k,children:[(0,l.jsx)(m.J,{className:"mb-4 rounded-xl border-0",children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col items-end gap-4 bg-gray-100 p-4 md:!flex-row",children:[(0,l.jsx)(eu.Qr,{control:g,name:"email",render:s=>{let{field:a}=s;return(0,l.jsx)(m.W.Input,{label:e("common:email"),clearable:!0,onClear:()=>{a.onChange("")},isDisabled:!r,isRequired:!0,placeholder:"Hello@msaaq.com",type:"email",dir:a.value?"ltr":t.dir(),className:"mb-0 w-full",...a})}}),(0,l.jsxs)("div",{className:"flex gap-4",children:[(0,l.jsx)(m.B,{type:"submit",isLoading:_,disabled:_||!y&&r,color:r?"primary":"gray",children:e(r?"common:save_modifications":"common:edit"),onClick:e=>{y&&r||(e.preventDefault(),n(!0))}}),r&&(0,l.jsx)(m.B,{type:"button",disabled:_,color:"gray",children:e("common:cancel"),onClick:e=>{e.preventDefault(),j({email:null==i?void 0:i.email}),n(!1)}})]})]})}),(0,l.jsx)(modals_OtpModal,{open:s,method:"email",isLoading:_,disabled:_,onDismiss:()=>{a(!1),n(!1)},onChangeDataClick:()=>{a(!1),n(!0),v("email")},resendOTP:k,verify:e=>{h(t=>verifyCredentials({...t,otp:e}))()},data:{email:C("email")}})]})},e_=s(45220),eb=s.n(e_),ew=s(28854),inputs_EditPhoneInput=()=>{let{t:e}=(0,u.Y)(["common"]),[t,s]=(0,w.useState)(!1),[a,r]=(0,w.useState)(!1),{member:n}=(0,d.CG)(e=>e.auth),[o]=(0,ef.qf)(),[i]=(0,ef.dB)(),{data:c}=(0,eg.G)(),p=(0,d.TL)(),x=em.Ry({phone:em.Ry({phone:em.Rx().required(),phone_code:em.Rx().required()})}),{handleSubmit:h,setError:C,control:f,reset:g,getValues:j,setFocus:v,formState:{isDirty:y,isSubmitting:_}}=(0,eu.cI)({resolver:(0,ed.X)(x)});(0,w.useEffect)(()=>{n&&g({phone:{phone:n.phone,phone_code:n.phone_code}})},[n]);let{displayErrors:b,displaySuccess:N}=(0,d.ah)({setError:C}),k=h(async e=>{let t=await o({type:"phone",phone:e.phone.phone.toString(),phone_code:e.phone.phone_code.toString()});b(t)||(N(t),(null==c?void 0:c.sms_available)?s(!0):r(!1))}),verifyCredentials=async e=>{if(_)return;let t=await i({type:"phone",phone:e.phone.phone,phone_code:e.phone.phone_code,otp_code:e.otp});b(t)||(N(t),p({type:"auth/setMember",payload:{...n,phone:e.phone.phone,phone_code:e.phone.phone_code}}),g({phone:{phone:e.phone.phone,phone_code:e.phone.phone_code}}),s(!1),r(!1))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.W,{onSubmit:k,children:(0,l.jsx)(m.J,{className:"mb-4 overflow-visible rounded-xl border-0",children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col items-end gap-4 rounded-xl bg-gray-100 p-4 md:!flex-row",children:[(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(eu.Qr,{render:t=>{let{field:s}=t;return(0,l.jsx)(ew.Z,{autoDetectedCountry:eb()((null==n?void 0:n.phone_code)||(null==n?void 0:n.phone)),isDisabled:!a,className:"h-12 grow",placeholder:e("common:phone_input_placeholder"),label:e("common:phone"),...s})},name:"phone",control:f})}),(0,l.jsxs)("div",{className:"flex gap-4",children:[(0,l.jsx)(m.B,{type:"submit",isLoading:_,disabled:_,color:a?"primary":"gray",children:e(a?"common:save_modifications":"common:edit"),onClick:e=>{y&&a||(e.preventDefault(),r(!0))}}),a&&(0,l.jsx)(m.B,{type:"button",disabled:_,color:"gray",children:e("common:cancel"),onClick:e=>{e.preventDefault(),n&&g({phone:{phone:n.phone,phone_code:n.phone_code}}),r(!1)}})]})]})})}),(0,l.jsx)(modals_OtpModal,{open:t,method:"phone",onDismiss:()=>{s(!1),r(!1)},onChangeDataClick:()=>{s(!1),r(!0),v("phone")},isLoading:_,resendOTP:k,verify:e=>{h(t=>verifyCredentials({...t,otp:e}))()},disabled:_,data:{phone:j("phone")}})]})},eN=s(18087),wallet_WalletLayout=e=>{let{children:t}=e,{t:s}=(0,u.Y)(["wallet"]),{isActive:a}=(0,d.BM)(),{member:r}=(0,w.useContext)(z.Vo),n=(0,i.useRouter)();return(0,l.jsxs)(en.Layout,{className:n.pathname.substring(1).replace(/\//g,"-"),children:[(0,l.jsx)(c.V,{title:s("wallet:title")}),(0,l.jsxs)(en.Layout.Container,{layout:"center",children:[(0,l.jsx)(m.u.Text,{as:"h1",size:"lg",children:s("wallet:title"),className:"md:!px-auto -mx-4 block border-b border-gray-400 px-4 pb-6 md:mx-auto md:!border-b-0 md:!pb-8"}),(0,l.jsx)(m.J,{className:"mb-10 border-0 md:!border",children:(0,l.jsxs)(m.J.Body,{className:"px-0 md:!p-4",children:[(0,l.jsxs)(m.N,{"aria-label":"Tabs example",classNames:{base:"mb-6"},children:[(null==r?void 0:r.is_affiliate_open)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.N.Item,{as:o(),href:"/account/affiliates",children:s("wallet:affiliates_title"),isActive:a(["/account/affiliates"])}),(0,l.jsx)(m.N.Item,{as:o(),href:"/account/billing",children:s("wallet:withdraw_earnings_title"),isActive:a(["/account/billing"])})]}),(0,l.jsx)(m.N.Item,{as:o(),href:"/account/orders",children:s("wallet:orders_title"),isActive:a(["/account/orders"])})]}),t]})})]})]})},ek=s(53771),eM=s(74738);let eL=eM.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchBank:e.query({query:()=>({url:"/account/bank",method:"GET"}),transformResponse:e=>Array.isArray(e.data)?0===e.data.length?{}:e.data[0]:e.data,providesTags:["bank.show"]}),createBank:e.mutation({query:e=>({url:"/account/bank",method:"POST",body:e}),invalidatesTags:["bank.show"]}),updateBank:e.mutation({query:e=>({url:"/account/bank",method:"POST",params:{_method:"PATCH"},body:e}),invalidatesTags:["bank.show"]})})}),{useFetchBankQuery:ez,useUpdateBankMutation:eZ,useCreateBankMutation:eS}=eL;var eH=s(77495),modals_WithdrawEarningsModal=e=>{var t;let{open:s,onDismiss:a,callback:r}=e,{t:n}=(0,u.Y)(["wallet","common"]),[o,i]=(0,w.useState)(!1),[c,p]=(0,w.useState)(!1),{isAuthReady:x}=(0,w.useContext)(z.Vo);(0,w.useEffect)(()=>{p(null!=s&&s)},[s]);let{data:h}=ez(void 0,{skip:!x}),{data:C}=(0,ek.ll)(void 0,{skip:!x}),[f]=(0,ek.qN)(),{result:g}=(0,d.E_)(null==h?void 0:h.account_number),{formatPrice:j}=(0,d.pA)(),toggleBankAccountModal=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&p(!1),i(e=>!e)},y=em.Ry({withdraw:em.Z_(),method:em.Z_(),paypal_email:em.Z_(),amount:em.Rx().min(0)}),{handleSubmit:_,watch:b,control:N,setError:k,reset:M,formState:{isSubmitting:L,isValid:Z}}=(0,eu.cI)({resolver:(0,ed.X)(y),mode:"all"}),S=(0,w.useCallback)(()=>{var e;M({withdraw:"full",method:null!==(e=null==C?void 0:C.payout.methods[0])&&void 0!==e?e:"wire",paypal_email:"",amount:0})},[C]);(0,w.useEffect)(()=>{C&&S()},[C]);let{displayErrors:H,displaySuccess:B}=(0,d.ah)({setError:k}),E="paypal"===b("method"),onSubmit=async e=>{let t=await f({..."paypal"===e.method&&{paypal_email:e.paypal_email},..."wire"===e.method&&{bank_id:null==h?void 0:h.id},method:e.method,amount:"full"===e.withdraw&&C?(null==C?void 0:C.balance.earnings)/100:e.amount});H(t)||(B(t),p(!1),S(),null==r||r())};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(m.M,{open:c,size:"lg",onDismiss:a,bordered:!0,children:[(0,l.jsx)(m.M.Header,{title:n("wallet:affiliates_withdraw_earnings")}),(0,l.jsxs)(m.M.Body,{className:"p-0",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between bg-gray-100 p-4",children:[(0,l.jsx)(m.u.Body,{size:"md",className:"font-normal",children:n("wallet:affiliates_withdrawable_earnings")}),(0,l.jsx)(m.u.Body,{size:"md",className:"font-normal",children:j(null!==(t=null==C?void 0:C.balance.earnings)&&void 0!==t?t:"")})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-y-6 p-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(m.u.Text,{size:"sm",children:n("wallet:affiliates_select_withdrawal_amount")}),(0,l.jsx)(eu.Qr,{name:"withdraw",control:N,render:e=>{var t;let{field:{value:s,...a}}=e;return(0,l.jsxs)("label",{className:(0,v.cn)("w-full rounded-lg border p-4 transition-colors","flex items-center justify-between gap-8","full"===s?"border-primary bg-primary-50":"border-gray"),children:[(0,l.jsx)(m.W.Radio,{id:"withdraw-full",color:"primary",value:"full",checked:"full"===s,label:n("wallet:affiliates_withdraw_all_earnings"),...a}),(0,l.jsx)(m.u.Body,{size:"md",className:(0,v.cn)("font-normal","full"===s&&"text-primary"),children:j(null!==(t=null==C?void 0:C.balance.earnings)&&void 0!==t?t:"")})]})}}),(0,l.jsx)(eu.Qr,{name:"withdraw",control:N,render:e=>{let{field:{value:t,...s}}=e;return(0,l.jsxs)("label",{className:(0,v.cn)("w-full rounded-lg border p-4 transition-colors","grid gap-4","partial"===t?"border-primary bg-primary-50":"border-gray"),children:[(0,l.jsx)(m.W.Radio,{id:"withdraw-partial",color:"primary",value:"partial",checked:"partial"===t,label:n("wallet:affiliates_withdraw_partial_earnings"),...s}),(0,l.jsx)(eu.Qr,{name:"amount",control:N,render:e=>{let{field:s}=e;return(0,l.jsx)(m.W.Number,{isRequired:!0,isDisabled:"partial"!==t,minValue:0,label:n("wallet:affiliates_enter_withdrawal_amount"),className:"mb-0",classNames:{inputWrapper:"bg-white"},...s})}})]})}})]}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(m.u.Text,{size:"sm",children:n("wallet:affiliates_withdraw_method"),className:"mb-4 block"}),C&&C.payout.methods.length>1&&(0,l.jsx)("div",{className:"mb-6 flex gap-4",children:C.payout.methods.map((e,t)=>(0,l.jsx)(eu.Qr,{name:"method",control:N,render:t=>{let{field:{value:s,...a}}=t;return(0,l.jsx)("label",{className:(0,v.cn)("w-full rounded-lg border p-4 transition-colors","flex items-center justify-between gap-8",s===e?"border-primary bg-primary-50":"border-gray"),children:(0,l.jsx)(m.W.Radio,{id:e,color:"primary",value:e,checked:s===e,label:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(m.u.Body,{as:"p",size:"md",children:n("wallet:affiliates_withdraw_".concat("paypal"==e?"paypal":"bank_transfers"))})}),...a,name:"withdraw-way"})})}},t))}),E?(0,l.jsx)(eu.Qr,{name:"paypal_email",control:N,render:e=>{let{field:t}=e;return(0,l.jsx)(m.W.Input,{label:n("wallet:affiliates_paypal_input_label"),isRequired:E,placeholder:n("wallet:affiliates_paypal_input_placeholder"),description:n("wallet:affiliates_paypal_input_description"),type:"email",className:"mb-0",...t})}}):(0,l.jsx)(m.J,{className:"rounded-lg",children:(0,l.jsxs)(m.J.Body,{children:[(null==h?void 0:h.id)&&(0,l.jsxs)("div",{className:"mb-8 flex",children:[(0,l.jsxs)("div",{className:"flex grow flex-col",children:[(0,l.jsx)(m.u.Body,{size:"sm",className:"font-normal text-gray-800",children:n("bank:bank_name")}),(0,l.jsx)(m.u.Body,{size:"sm",className:"font-medium",children:null==h?void 0:h.bank_name})]}),(0,l.jsxs)("div",{className:"flex grow flex-col",children:[(0,l.jsx)(m.u.Body,{size:"sm",className:"font-normal text-gray-800",children:n("bank:account_number")}),(0,l.jsx)(m.u.Body,{size:"sm",className:"font-medium",children:g})]})]}),(0,l.jsx)(m.B,{color:"gray",onClick:()=>{toggleBankAccountModal(!0)},className:"w-full",icon:(null==h?void 0:h.id)?void 0:(0,l.jsx)(m.s,{children:(0,l.jsx)(eH.Z,{})}),children:n((null==h?void 0:h.id)?"bank:change_account":"bank:add_account")})]})})]})]})]}),(0,l.jsxs)(m.M.Footer,{className:"flex items-center justify-between",children:[(0,l.jsx)(m.B,{onClick:_(onSubmit),disabled:L||!Z,isLoading:L,children:n("wallet:affiliates_withdraw_button_title")}),(0,l.jsx)(m.B,{color:"gray",onClick:a,children:n("common:cancel")})]})]}),(0,l.jsx)(modals_BankAccountModal,{onDismiss:()=>{null==a||a(),i(!1)},open:o})]})};let eB=eM.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchCurrencies:e.query({query:()=>({url:"/currencies",method:"GET"})})})}),{useFetchCurrenciesQuery:eE}=eB;var modals_BankAccountModal=e=>{let{open:t,onDismiss:s}=e,{t:a}=(0,u.Y)(["common","wallet"]),[r,n]=(0,w.useState)(!1),{isAuthReady:o}=(0,w.useContext)(z.Vo),{data:i}=eE(void 0,{skip:!o});(0,w.useEffect)(()=>{n(null!=t&&t)},[t]);let[c]=eZ(),[p]=eS(),{data:x}=ez(void 0,{skip:!o}),h=em.Ry({bank_name:em.Z_().required(),account_name:em.Z_().required(),account_number:em.Z_().required(),currency:em.Z_().required(),iban:em.Z_().required(),bic:em.Z_().required()}),{handleSubmit:C,control:f,setError:g,reset:j,formState:{errors:v,isDirty:y,isSubmitting:_,isValid:b}}=(0,eu.cI)({resolver:(0,ed.X)(h),mode:"onSubmit"});(0,w.useEffect)(()=>{var e,t;j({bank_name:null==x?void 0:x.bank_name,account_name:null==x?void 0:x.account_name,account_number:null==x?void 0:x.account_number,currency:null!==(t=null==i?void 0:null===(e=i.data.find(e=>e.country_code===(null==x?void 0:x.currency)))||void 0===e?void 0:e.country_code)&&void 0!==t?t:null==i?void 0:i.data[0].country_code,iban:null==x?void 0:x.iban,bic:null==x?void 0:x.bic})},[x,i]);let{displayErrors:N,displaySuccess:k}=(0,d.ah)({setError:g}),onSubmit=async e=>{let t=await ((null==x?void 0:x.id)?c(e):p(e));N(t)||(k(t),null==s||s())};return(0,l.jsx)(m.M,{open:r,size:"3xl",onDismiss:s,bordered:!0,children:(0,l.jsxs)(m.W,{onSubmit:C(onSubmit),children:[(0,l.jsx)(m.M.Header,{title:a((null==x?void 0:x.id)?"bank:change_account":"bank:add_account")}),(0,l.jsxs)(m.M.Body,{children:[(0,l.jsx)(m.u.Body,{children:a("bank:details"),className:"mb-4 block text-gray-800"}),(0,l.jsxs)(m.G,{columns:{lg:12,xl:12,md:12},gap:{md:"1rem",lg:"1rem",xl:"1rem"},children:[(0,l.jsx)(m.G.Cell,{columnSpan:{md:6},children:(0,l.jsx)(eu.Qr,{name:"bank_name",control:f,render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,error:null===(t=v.bank_name)||void 0===t?void 0:t.message,label:a("bank:bank_name"),type:"text",placeholder:a("bank:name_input_placeholder"),className:"mb-0",...s})}})}),(0,l.jsx)(m.G.Cell,{columnSpan:{md:6},children:(0,l.jsx)(eu.Qr,{name:"account_name",control:f,render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,error:null===(t=v.account_name)||void 0===t?void 0:t.message,label:a("bank:account_name"),type:"text",placeholder:a("bank:account_name_input_placeholder"),className:"mb-0",...s})}})}),(0,l.jsx)(m.G.Cell,{columnSpan:{md:6},children:(0,l.jsx)(eu.Qr,{name:"account_number",control:f,render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,error:null===(t=v.account_number)||void 0===t?void 0:t.message,label:a("bank:account_number"),type:"text",placeholder:a("bank:account_number_input_placeholder"),className:"mb-0",...s})}})}),(0,l.jsx)(m.G.Cell,{columnSpan:{md:6},children:(0,l.jsx)(m.W.Group,{required:!0,label:a("bank:account_currency"),className:"mb-0",children:(0,l.jsx)(eu.Qr,{name:"currency",control:f,render:e=>{let{field:t}=e;return(0,l.jsx)("select",{className:"mb-0 mt-2 w-full rounded-md border border-gray px-3 py-[.63rem]",...t,value:t.value,children:null==i?void 0:i.data.map(e=>(0,l.jsx)("option",{value:e.country_code,children:e.name},e.id))})}})})}),(0,l.jsx)(m.G.Cell,{columnSpan:{md:6},children:(0,l.jsx)(eu.Qr,{name:"iban",control:f,render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,error:null===(t=v.iban)||void 0===t?void 0:t.message,label:a("bank:iban_number"),type:"text",placeholder:a("bank:iban_number"),className:"mb-0",...s})}})}),(0,l.jsx)(m.G.Cell,{columnSpan:{md:6},children:(0,l.jsx)(eu.Qr,{name:"bic",control:f,render:e=>{var t;let{field:s}=e;return(0,l.jsx)(m.W.Input,{isRequired:!0,error:null===(t=v.bic)||void 0===t?void 0:t.message,label:a("bank:swift_number"),type:"text",placeholder:a("bank:swift_number_input_placeholder"),className:"mb-0",...s})}})})]})]}),(0,l.jsxs)(m.M.Footer,{className:"flex items-center justify-between",children:[(0,l.jsx)(m.B,{type:"submit",disabled:!y||_||!b,isLoading:_,children:a((null==x?void 0:x.id)?"common:edit":"common:add")}),(0,l.jsx)(m.B,{color:"gray",onClick:s,children:a("common:cancel")})]})]})})},modals_OrderDetailsModal=e=>{let{open:t,onDismiss:s,order:a}=e,{t:r}=(0,u.Y)(["wallet"]),{formatPrice:n}=(0,d.pA)(),{downloading:o,downloadFile:i}=(0,d.O6)();return a&&a.transaction?(0,l.jsxs)(m.M,{open:t,size:"2xl",onDismiss:s,bordered:!0,children:[(0,l.jsx)(m.M.Header,{dismissible:!0,title:r("wallet:orders_order_details_title",{order_id:null==a?void 0:a.id})}),(0,l.jsxs)(m.M.Body,{children:[(0,l.jsx)(m.J,{className:"rounded-lg",children:(0,l.jsxs)(m.J.Body,{className:"!py-8 px-4",children:[(0,l.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(m.u.Text,{as:"span",size:"md",className:"me-2 font-normal text-gray-700",children:n(a.total,a.currency,"name",!1)}),(0,l.jsx)(m.x,{color:(0,E.z2)(a.status),rounded:"full",variant:"soft",children:r("wallet:statuses_".concat(a.status))})]}),(0,l.jsx)(m.B,{isLoading:o,onClick:()=>i("/account/orders/".concat(a.uuid,"/invoice"),String(a.id)),size:"sm",color:"gray",children:r("wallet:invoice")})]}),(0,l.jsx)("div",{className:"my-8 h-px w-full bg-gray-400"}),(0,l.jsxs)("div",{className:"card-divide-x grid grid-cols-4",children:[(0,l.jsx)(m.w,{reverse:!0,title:L()(null==a?void 0:a.created_at).fromNow(),subtitle:r("wallet:created_at")}),(0,l.jsx)(m.w,{reverse:!0,title:(0,l.jsx)(eN.wP,{method:null==a?void 0:a.payment_method}),subtitle:r("wallet:orders_payment_method")}),(0,l.jsx)(m.w,{reverse:!0,subtitle:r("wallet:id"),title:null==a?void 0:a.id}),(0,l.jsx)(m.w,{reverse:!0,subtitle:r("wallet:orders_transaction_number"),title:"#".concat(null==a?void 0:a.transaction.id)})]})]})}),(0,l.jsxs)("div",{className:"mt-6",children:[(0,l.jsx)(m.u.Text,{size:"sm",className:"mb-2 block font-semibold",children:r("wallet:orders_products")}),(0,l.jsx)(m.J,{className:"rounded-lg",children:(0,l.jsx)(m.J.Body,{className:"grid gap-8",children:null==a?void 0:a.items.map(e=>{var t,s,r,o;return(0,l.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-400 pb-8 last:border-none last:pb-0",children:[(0,l.jsxs)("div",{className:"flex gap-4",children:[(0,l.jsx)(T(),{src:null!==(o=null===(t=e.product)||void 0===t?void 0:t.thumbnail)&&void 0!==o?o:"/images/check-success.gif",width:48,height:48,className:"rounded-md border border-black object-cover",alt:""}),(0,l.jsxs)("div",{className:"grid",children:[(0,l.jsx)(m.u.Body,{as:"span",children:null===(s=e.product)||void 0===s?void 0:s.title}),(0,l.jsx)(m.u.Body,{as:"span",size:"md",children:n(null===(r=e.product)||void 0===r?void 0:r.price,a.currency,"name",!1),className:"font-normal text-gray-800"})]})]}),!e.product&&(0,l.jsx)(m.x,{color:"danger",rounded:"full",variant:"soft",children:"منتج محذوف"})]},e.id)})})})]})]})]}):null},eA=s(75012),eI=s(20472),modals_PayoutDetailsModal=e=>{let{payout:t,open:s,onDismiss:a}=e,{t:r}=(0,u.Y)(["wallet"]),{formatPrice:n}=(0,d.pA)();return(0,l.jsxs)(m.M,{open:s,size:"3xl",onDismiss:a,bordered:!0,children:[(0,l.jsx)(m.M.Header,{title:r("wallet:withdraw_earnings_transaction_details_title"),className:"rounded-none border-0 !pb-0"}),(0,l.jsxs)(m.M.Body,{children:[(0,l.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(m.u.Text,{as:"span",size:"md",className:"me-2 font-normal text-gray-700",children:n(null==t?void 0:t.amount)}),(0,l.jsx)(m.x,{color:"withdraw"===t.type?"purple":"info",rounded:"full",variant:"soft",children:r("wallet:withdraw_earnings_transaction_type")})]}),t.receipt&&(0,l.jsx)(m.B,{as:"a",href:t.receipt.url,target:"_blank",download:!0,size:"sm",color:"gray",children:r("wallet:invoice")})]}),(0,l.jsxs)("div",{className:"card-divide-x grid grid-cols-2",children:[(0,l.jsx)(m.w,{reverse:!0,title:null==t?void 0:t.id,subtitle:r("wallet:id")}),(0,l.jsx)(m.w,{reverse:!0,title:L()(null==t?void 0:t.created_at).fromNow(!1),subtitle:r("wallet:created_at")})]}),(0,l.jsx)("div",{className:"my-6 h-px w-full bg-gray-400"}),(0,l.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,l.jsx)(m.u.Body,{size:"md",children:r("wallet:withdraw_earnings_transaction_timeline")}),(0,l.jsxs)("div",{className:"flex flex-col space-y-6",children:[t.confirmed&&(0,l.jsx)(m.w,{title:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)(m.s,{color:"success",size:"sm",children:(0,l.jsx)(eA.Z,{})}),(0,l.jsx)(u.C,{i18nKey:"wallet:withdraw_earnings_transaction_success"})]}),subtitle:(0,l.jsx)("span",{className:"pr-[calc(theme(spacing.5)+theme(spacing.3))]",children:L()(null==t?void 0:t.updated_at).format(B.wB)})}),(0,l.jsx)(m.w,{title:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)(m.s,{color:"inherit",className:"text-gray-600",size:"sm",children:(0,l.jsx)(eI.Z,{})}),(0,l.jsx)(u.C,{i18nKey:"wallet:withdraw_earnings_transaction_created"})]}),subtitle:(0,l.jsx)("span",{className:"pr-[calc(theme(spacing.5)+theme(spacing.3))]",children:L()(null==t?void 0:t.created_at).format(B.wB)})})]})]})]})]})},products_ProductSideCard=e=>{var t,s;let{product:a}=e,{t:n}=(0,u.Y)(["product_page","common","students"]),{downloadFile:o,isDownloading:i}=(0,d.O6)(),{formatPlainPrice:c}=(0,d.pA)(),[p,x]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{x(!0);let e=setTimeout(()=>{x(!1),clearInterval(e)},3950)},[]),(0,l.jsx)(eN.pL,{reviewsEnabled:a.meta.reviews_enabled,append:(0,l.jsx)(products_ProductMobileImages,{product:a}),badge:a.sales_price>0?(0,l.jsx)(m.x,{color:"warning",variant:"soft",size:"md",rounded:"full",children:n("common:discount",{discount:(0,E.Et)(a.sales_price,a.price)})}):void 0,title:a.title,summary:a.summary,ratings:null!==(t=null==a?void 0:a.avg_rating)&&void 0!==t?t:0,category:a.category,categoryHref:a.category?"/products/categories/".concat(a.category.slug):"",totalReviews:null!==(s=null==a?void 0:a.reviews_count)&&void 0!==s?s:0,ratingsDetails:a.meta.show_downloads_count&&(0,l.jsx)(m.u.Body,{size:"sm",className:"text-gray-700",children:n("students:WithCount",{count:a.downloads_count})}),list:{items:[...a.meta.show_downloads_count?[{icon:(0,l.jsx)(ej.Z,{}),text:(0,l.jsx)(u.C,{i18nKey:"product_page:downloads_count",components:{strong:(0,l.jsx)("strong",{})},values:{count:a.downloads_count}})}]:[],...a.meta.custom_url?[]:[{icon:(0,l.jsx)(g.Z,{}),text:(0,l.jsx)(u.C,{i18nKey:"product_page:downloadable_attachments",components:{strong:(0,l.jsx)("strong",{})},values:{count:a.attachments.length}})}],{icon:(0,l.jsx)(Q.Z,{}),text:(0,l.jsx)(u.C,{i18nKey:"product_page:lifetime_access"})}]},price:(0,l.jsx)(eN.jF,{price:a.price,salesPrice:a.sales_price}),actions:a.can_download?a.meta.custom_url?(0,l.jsx)(m.B,{as:"a",href:a.meta.custom_url,target:"_blank",variant:"solid",color:"primary",className:"w-full",children:n("product_page:download_attachments")}):(0,l.jsx)(m.B,{onClick:()=>o("/products/".concat(a.slug,"/download"),a.title),isLoading:i("/products/".concat(a.slug,"/download")),variant:"solid",color:"primary",className:"w-full",children:n("product_page:download_attachments")}):(0,l.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,l.jsx)(q.ExpressCheckoutButton,{className:"shrink grow basis-auto break-words",product_type:"product",product_id:a.id,color:"primary",size:"md",variant:"solid",label:n(0==a.price?"common:get_it_for_free":"common:buy_now")}),(0,l.jsx)(q.AddToCartButton,{product:a,product_type:"product",product_id:a.id,color:"gray",size:"md",icon:(0,l.jsx)(m.s,{children:(0,l.jsx)(K.Z,{})})})]}),children:(0,l.jsx)(components_TamaraWidget,{price:c(a.price),type:r.SPILT_AMOUNT_PRODUCT_PAGE})})},products_SessionSideCard=e=>{var t,s;let{product:a,pendingAppointments:n}=e,{t:i}=(0,u.Y)(["common","students","sessions"]),{formatPlainPrice:c}=(0,d.pA)(),p=(0,E.BE)(a.duration);return(0,l.jsx)(eN.pL,{reviewsEnabled:a.meta.reviews_enabled,append:(0,l.jsx)(products_ProductMobileImages,{product:a}),badge:(null==a?void 0:a.sales_price)>0?(0,l.jsx)(m.x,{color:"warning",variant:"soft",size:"md",rounded:"full",children:i("common:discount",{discount:(0,E.Et)(a.sales_price,a.price)})}):null,title:null==a?void 0:a.title,summary:null==a?void 0:a.summary,ratings:null!==(t=null==a?void 0:a.avg_rating)&&void 0!==t?t:0,category:a.category,categoryHref:a.category?"/coaching-sessions/categories/".concat(a.category.slug):void 0,totalReviews:null!==(s=null==a?void 0:a.reviews_count)&&void 0!==s?s:0,ratingsDetails:a.meta.show_downloads_count&&(0,l.jsx)(m.u.Body,{size:"sm",className:"text-gray-700",children:i("students:WithCount",{count:a.appointments_count})}),list:{items:[{icon:(0,l.jsx)(O.Z,{}),text:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.C,{i18nKey:"sessions:session_time",components:{strong:(0,l.jsx)("strong",{})},values:{hour:p.hours,minute:p.minutes}})})},...a.meta.show_downloads_count?[{icon:(0,l.jsx)(Y.Z,{}),text:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.C,{i18nKey:"sessions:booking_number",components:{strong:(0,l.jsx)("strong",{})},values:{count:a.appointments_count}})})}]:[],{icon:(0,l.jsx)(J.Z,{}),text:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.C,{i18nKey:"sessions:place",components:{strong:(0,l.jsx)("strong",{})}})})}]},price:(0,l.jsx)(eN.jF,{price:null==a?void 0:a.price,salesPrice:null==a?void 0:a.sales_price}),actions:n&&n.length>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.A,{variant:"soft",color:"info",className:"mb-4",children:(0,l.jsx)(m.u.Text,{size:"sm",className:"font-bold text-gray-950",children:(0,l.jsx)(u.C,{i18nKey:"sessions:pending_session_alert",values:{count:n.length}})})}),(0,l.jsx)(m.B,{as:o(),href:"/coaching-sessions/".concat(a.slug,"/").concat(n[0].id,"/booking-details"),className:"w-full",children:i("common:confirm_session")})]}):(0,l.jsx)(m.B,{as:o(),href:"/coaching-sessions/".concat(a.slug,"/booking-details"),className:"w-full",children:i(a.can_download?"sessions:book_new_session":"common:book_it_for_free")}),children:(0,l.jsx)(components_TamaraWidget,{className:"mt-4",price:c(a.price),type:r.SPILT_AMOUNT_PRODUCT_PAGE})})},eP=s(69884),eT=s(77122),components_DatePicker=e=>{let{onChange:t,value:s,className:a,numberOfMonths:r=2,onNavigate:n,activeDays:o}=e,[i,c]=(0,w.useState)();return(0,w.useEffect)(()=>{c(s)},[s]),(0,l.jsx)("div",{className:"range-date-picker",children:(0,l.jsx)(eT._W,{className:a,mode:"single",selected:i,disabled:e=>!!(0,F.Z)(e).isBefore((0,F.Z)(),"day")||!(null==o?void 0:o.includes((0,F.Z)(e).format("YYYY-MM-DD"))),onSelect:e=>{c(e),t(e)},locale:eP.Z,dir:"rtl",numberOfMonths:r,pagedNavigation:!0,month:i,fixedWeeks:!0,onMonthChange:e=>{null==n||n(e)}})})},eR=s(85837),eV=s(47950);function BookingDetails(e){var t,s,a;let{renderBookActions:r}=e,[n,d]=(0,w.useState)(void 0),[p,x]=(0,w.useState)(void 0),[h,C]=(0,w.useState)((0,F.Z)().format("YYYY-MM")),[f,g]=(0,w.useState)([]),[j,y]=(0,w.useState)(void 0),{t:_}=(0,u.Y)(["common","sessions"]),b=(0,i.useRouter)(),{query:N}=b,{data:k}=(0,S.r_)({slug:N.slug,filters:{type:B.kv.COACHING_SESSION}}),[M,{data:L,isFetching:z}]=(0,S.yr)(),Z=(0,w.useMemo)(()=>Object.keys(null!=L?L:{}),[L]);(0,w.useEffect)(()=>{p&&h&&M({slug:N.slug,month:h,user_id:p})},[h,p]),(0,w.useEffect)(()=>{if(Z.length>0){let e=Z.filter(e=>(0,F.Z)(e).isSameOrAfter((0,F.Z)(),"day")).sort((e,t)=>(0,F.Z)(e).diff((0,F.Z)(t)));d((0,F.Z)(e[0]).toDate())}},[Z,d]),(0,w.useEffect)(()=>{if(n){let e=(0,F.Z)(n).format("YYYY-MM-DD"),t=Z.find(t=>(0,F.Z)(t).isSame(e,"day"));t&&L&&g(L[t].map(e=>(0,F.Z)(e).format("h:mm A")))}},[n,g]);let H=(0,w.useMemo)(()=>k?(0,E.BE)(k.duration):{hours:0,minutes:0},[k]),A=(0,w.useMemo)(()=>!!(n&&j&&p),[n,j,p]);return(0,w.useEffect)(()=>{k&&k.consultants&&k.consultants.length>0&&x(k.consultants[0].id)},[k,x]),(0,l.jsx)(en.Layout,{children:(0,l.jsx)(en.Layout.Container,{children:k?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.V,{showTenantTitle:!k.meta_title,title:null!==(t=k.meta_title)&&void 0!==t?t:k.title,description:k.meta_description,keywords:k.meta_keywords,image:null!==(s=k.thumbnail)&&void 0!==s?s:void 0}),(0,l.jsxs)(m.J,{className:"mx-auto max-w-full lg:!max-w-[1050px]",children:[(0,l.jsx)(m.J.Body,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 lg:!flex-row",children:[(0,l.jsx)("div",{className:"w-full lg:!w-[35%]",children:(0,l.jsx)(m.J,{className:"border-0 bg-gray-50",children:(0,l.jsxs)(m.J.Body,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-col",children:[(0,l.jsx)(m.u.Body,{className:"text-xl font-semibold",children:k.title}),(0,l.jsx)(m.u.Body,{className:"text-gray-750 text-sm",children:_("sessions:chose_consultants")})]}),k.consultants&&(0,l.jsx)("div",{className:"mb-4 flex flex-col gap-4",children:k.consultants.map(e=>(0,l.jsx)("div",{className:(0,v.cn)("flex cursor-pointer rounded-2xl bg-white p-4",p===e.id&&"ring-1 ring-primary"),children:(0,l.jsx)(m.W.Radio,{id:e.id.toString(),value:e.id.toString(),name:"instructors",checked:p===e.id,onChange:()=>{x(e.id)},classNames:{base:"flex-grow"},label:(0,l.jsxs)("div",{className:"flex cursor-pointer gap-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)(m.v,{size:"lg",imageUrl:e.avatar,name:e.name})}),(0,l.jsx)(m.u.Body,{as:"h6",size:"base",className:"ms-2 font-medium",children:e.name})]})})},e.uuid))}),(0,l.jsxs)("div",{className:"rounded-2xl bg-white p-4",children:[(0,l.jsx)(m.w,{className:"items-center p-2",title:(0,l.jsx)(eN.jF,{classNames:{price:"text-primary",currency:"text-primary"},price:null==k?void 0:k.price,salesPrice:null==k?void 0:k.sales_price}),prepend:(0,l.jsx)(m.s,{size:"sm",color:"primary",children:(0,l.jsx)(eR.Z,{})})}),(0,l.jsx)(m.w,{className:"p-2",title:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(m.u.Body,{size:"md",as:"span",className:"font-normal text-primary",children:(0,l.jsx)(u.C,{i18nKey:"sessions:session_time",components:{strong:(0,l.jsx)("strong",{})},values:{hour:H.hours,minute:H.minutes}})})}),prepend:(0,l.jsx)(m.s,{size:"sm",color:"primary",children:(0,l.jsx)(O.Z,{})})}),(0,l.jsx)(m.w,{className:"p-2",title:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(m.u.Body,{size:"md",as:"span",className:"font-normal text-primary",children:(0,l.jsx)(u.C,{i18nKey:"sessions:place",components:{strong:(0,l.jsx)("strong",{})}})})}),prepend:(0,l.jsx)(m.s,{size:"sm",color:"primary",children:(0,l.jsx)(J.Z,{})})}),(0,l.jsx)(m.w,{className:"p-2",title:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(m.u.Body,{size:"md",as:"span",className:"font-normal text-primary",children:(0,l.jsx)(u.C,{i18nKey:"sessions:time_zone",suppressHydrationWarning:!0,components:{strong:(0,l.jsx)("strong",{})},values:{tz:F.Z.tz.guess()}})})}),prepend:(0,l.jsx)(m.s,{size:"sm",color:"primary",children:(0,l.jsx)(eV.Z,{})})})]})]})})}),(0,l.jsx)("div",{className:"w-full lg:!w-[65%]",children:(0,l.jsxs)(m.J,{className:"h-full border-0 bg-gray-50",children:[(0,l.jsx)(m.J.Header,{children:_("sessions:select_date_and_time")}),(0,l.jsx)(m.J.Body,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-6 lg:!flex-row",children:[(0,l.jsxs)("div",{className:"range-date-picker relative w-full lg:!w-[60%]",children:[(0,l.jsx)(components_DatePicker,{className:"w-full rounded-lg bg-white p-4",numberOfMonths:1,value:n,onChange:d,onNavigate:e=>{C((0,F.Z)(e).format("YYYY-MM"))},activeDays:Z}),z&&(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-white/70",children:(0,l.jsx)(components_LoadingScreen,{})})]}),(0,l.jsx)("div",{className:"relative flex max-h-[400px] w-full  flex-col gap-4 overflow-y-auto lg:!w-[40%]",children:f.map(e=>(0,l.jsx)(m.B,{className:"w-full",size:"sm",dir:"auto",isFetching:z,variant:j===e?"solid":"outline",children:e,onClick:()=>y(e)},e))})]})})]})})]})}),(0,l.jsx)(m.J.Footer,{children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(m.B,{color:"gray",as:o(),href:"/coaching-sessions/".concat(k.slug),children:_("common:cancel")}),r({canConfirm:A,product_id:k.id,user_id:null!==(a=null==p?void 0:p.toString())&&void 0!==a?a:"",start_at:(0,F.Z)(n).format("YYYY-MM-DD")+" "+j,member_timezone:F.Z.tz.guess()})]})})]})]}):(0,l.jsx)(components_LoadingScreen,{})})})}var products_ProductImages=e=>{let{product:t}=e;return t.thumbnail||(null==t?void 0:t.images.length)>1?(0,l.jsx)("div",{className:"hidden lg:!block",children:(null==t?void 0:t.images.length)>1?(0,l.jsxs)(_.tq,{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:87,depth:70,modifier:4.85},breakpoints:{768:{coverflowEffect:{rotate:0,stretch:80,depth:110,modifier:3.15}},1024:{coverflowEffect:{rotate:0,stretch:91.5,depth:110,modifier:3.15}},1440:{coverflowEffect:{rotate:0,stretch:87,depth:70,modifier:4.85}}},modules:[y.lI,y.tl,y.W_],className:"product-slider hidden lg:!block",children:[null==t?void 0:t.images.map((e,s)=>(0,l.jsx)(_.o5,{children:(0,l.jsx)(eN.pl,{alt:t.title,src:e.url,size:"lg"})},s)),(0,l.jsx)(swiper_SwiperButtons,{color:"primary",leftClassName:"lg:left-20 left-32",rightClassName:"lg:right-20 right-32"})]}):(0,l.jsx)(eN.pl,{alt:t.title,src:t.thumbnail,size:"lg"})}):null},products_ProductMobileImages=e=>{let{product:t}=e,[s,a]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if((null==t?void 0:t.images.length)>1){a(!0);let e=setTimeout(()=>{a(!1),clearInterval(e)},3950)}},[t]),t.images.length?(0,l.jsxs)("div",{className:"relative mb-4",children:[s&&(0,l.jsx)(T(),{width:150,height:150,src:"/images/movetl.gif",alt:"movetl",className:"absolute left-1/2 top-1/2 z-10 w-1/2 -translate-x-1/2 -translate-y-1/2",placeholder:"empty",priority:!0}),(null==t?void 0:t.images.length)>1?(0,l.jsx)(_.tq,{pagination:!0,modules:[y.tl],spaceBetween:10,className:"block lg:!hidden",children:null==t?void 0:t.images.map((e,s)=>(0,l.jsx)(_.o5,{children:(0,l.jsx)(eN.pl,{alt:t.title,src:e.url})},s))}):(0,l.jsx)(eN.pl,{alt:t.title,src:t.thumbnail,className:"mb-9"})]}):null},eq=s(45485),eF=s(44414),swiper_SwiperButtons=e=>{let{color:t,className:s,leftClassName:a,rightClassName:r,slidesLength:n}=e,o=(0,_.oc)(),[i,c]=(0,w.useState)(!1),[d,u]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{o.on("slideChange",()=>{o.isBeginning?u(!1):u(!0),o.isEnd?c(!1):c(!0)})},[o]),(0,w.useEffect)(()=>{void 0!==n?n>2&&c(!0):c(!0)},[n]),(0,l.jsxs)("div",{className:s,children:[i&&(0,l.jsx)(m.B,{rounded:"full",color:null!=t?t:"gray",size:"sm",className:(0,v.cn)("absolute top-1/2 z-10 -translate-y-1/2 ltr:right-0 rtl:left-0",a),icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(eq.Z,{className:"transform ltr:rotate-180"})}),onClick:()=>{o.slideNext()}}),d&&(0,l.jsx)(m.B,{rounded:"full",color:null!=t?t:"gray",size:"sm",className:(0,v.cn)("absolute top-1/2 z-10 -translate-y-1/2 ltr:left-0 rtl:right-0",r),icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(eF.Z,{className:"transform ltr:rotate-180"})}),onClick:()=>{o.slidePrev()}})]})},mentor_MentorDetailsCard=e=>{let{title:t,icon:s,descriptions:a}=e;return(0,l.jsx)(m.J,{children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col items-start",children:[(0,l.jsx)(m.s,{rounded:"full",size:"xs",color:"primary",variant:"solid",className:"mb-4",children:s}),(0,l.jsx)(m.u.Text,{size:"md",children:t,className:"font-semibold"}),(0,l.jsx)(m.u.Text,{size:"xs",children:a,className:"text-gray-700"})]})})},eD=s(53487),eO=s(90512);let eW=w.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)("div",{ref:t,className:(0,eO.Z)("card-frame",s),...a})});eW.displayName="CardFrame";let eY=w.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)("div",{ref:t,className:(0,eO.Z)("card-number-frame",s),...a})});eY.displayName="CardNumber";let eQ=w.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)("div",{ref:t,className:(0,eO.Z)("cvv-frame",s),...a})});eQ.displayName="Cvv";let eG=w.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)("div",{ref:t,className:(0,eO.Z)("expiry-date-frame",s),...a})});eG.displayName="ExpiryDate";let loadScript=()=>new Promise((e,t)=>{let s=document.createElement("script");s.src="https://cdn.checkout.com/js/framesv2.min.js",s.onload=t=>e(t),s.onerror=e=>t(e),document.head.appendChild(s)}),eJ=(0,w.memo)(function(e){let initializeFrames=()=>{let t={publicKey:e.config.publicKey,debug:e.config.debug||!1,style:e.config.style,acceptedPaymentMethods:e.config.acceptedPaymentMethods,cardholder:e.config.cardholder,localization:e.config.localization,modes:e.config.modes,schemeChoice:e.config.schemeChoice,cardNumber:e.config.cardNumber,expiryDate:e.config.expiryDate,cvv:e.config.cvv,ready:e.ready,frameActivated:e.frameActivated,frameFocus:e.frameFocus,frameBlur:e.frameBlur,frameValidationChanged:e.frameValidationChanged,paymentMethodChanged:e.paymentMethodChanged,cardValidationChanged:e.cardValidationChanged,cardSubmitted:e.cardSubmitted,cardTokenized:e.cardTokenized,cardTokenizationFailed:e.cardTokenizationFailed,cardBinChanged:e.cardBinChanged};e.config.cardholder||delete t.cardholder,e.config.schemeChoice||delete t.schemeChoice,e.config.cardNumber||delete t.cardNumber,e.config.expiryDate||delete t.expiryDate,e.config.cvv||delete t.cvv,e.config.modes||delete t.modes,e.config.localization||delete t.localization;try{window.Frames&&window.Frames.init(t)}catch(e){throw e}},loadFrames=async()=>{try{await loadScript(),initializeFrames()}catch(e){throw e}},cleanupFrames=()=>{window.Frames&&(window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_SUBMITTED),window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_TOKENIZATION_FAILED),window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_TOKENIZED),window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_VALIDATION_CHANGED),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_ACTIVATED),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_BLUR),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_FOCUS),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_VALIDATION_CHANGED),window.Frames.removeAllEventHandlers(window.Frames.Events.PAYMENT_METHOD_CHANGED),window.Frames.removeAllEventHandlers(window.Frames.Events.READY))};return(0,w.useEffect)(()=>(loadFrames(),()=>{cleanupFrames()}),[]),(0,w.useEffect)(()=>{var t;(null===(t=window)||void 0===t?void 0:t.Frames)&&(e.config.cardholder&&e.config.cardholder.name&&(window.Frames.cardholder.name=e.config.cardholder.name),e.config.cardholder&&e.config.cardholder.billingAddress&&(window.Frames.cardholder.billingAddress=e.config.cardholder.billingAddress),e.config.cardholder&&e.config.cardholder.phone&&(window.Frames.cardholder.phone=e.config.cardholder.phone))},[e.config]),(0,l.jsx)(l.Fragment,{children:e.children})},()=>!0);var eU=eJ;let eK=w.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)("div",{ref:t,className:(0,eO.Z)("scheme-choice-frame",s),...a})});eK.displayName="SchemeChoice",eU.init=e=>{var t;(null===(t=window)||void 0===t?void 0:t.Frames)&&(window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_SUBMITTED),window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_TOKENIZATION_FAILED),window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_TOKENIZED),window.Frames.removeAllEventHandlers(window.Frames.Events.CARD_VALIDATION_CHANGED),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_ACTIVATED),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_BLUR),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_FOCUS),window.Frames.removeAllEventHandlers(window.Frames.Events.FRAME_VALIDATION_CHANGED),window.Frames.removeAllEventHandlers(window.Frames.Events.PAYMENT_METHOD_CHANGED),window.Frames.removeAllEventHandlers(window.Frames.Events.READY),e?window.Frames.init(e):window.Frames.init())},eU.isCardValid=()=>{var e;return null!==(e=window)&&void 0!==e&&!!e.Frames&&window.Frames.isCardValid()},eU.submitCard=()=>{var e;return(null===(e=window)||void 0===e?void 0:e.Frames)?window.Frames.submitCard():Promise.reject("Frames isn't initialized yet or doesn't exist")},eU.addEventHandler=(e,t)=>{var s;(null===(s=window)||void 0===s?void 0:s.Frames)&&window.Frames.addEventHandler(e,t)},eU.removeEventHandler=(e,t)=>{var s;return null!==(s=window)&&void 0!==s&&!!s.Frames&&window.Frames.removeEventHandler(e,t)},eU.removeAllEventHandlers=e=>{var t;return null!==(t=window)&&void 0!==t&&!!t.Frames&&window.Frames.removeAllEventHandlers(e)},eU.enableSubmitForm=()=>{var e;if(null===(e=window)||void 0===e?void 0:e.Frames)return window.Frames.enableSubmitForm()},eU.CardNumber=eY,eU.ExpiryDate=eG,eU.Cvv=eQ,eU.Card=eW,eU.SchemeChoice=eK;var eX=s(33999),store_FilteringCard=e=>{let{setFilters:t,handleFilter:s,filters:a={}}=e,{t:r}=(0,u.Y)(["store","common"]),{data:n}=(0,eX.x1)({filters:a}),{data:o}=(0,eX.x1)({filters:"course_category"===a.type?{type:"course_difficulty"}:{}},{skip:"course_category"!==a.type}),c=(0,i.useRouter)(),[d,p]=(0,w.useState)(""),[x,h]=(0,w.useState)(!1),handleParams=(e,s,a)=>{t(t=>{let r="rating"!==a&&(null==t?void 0:t[a])||[];return e?{...t,[a]:[...r,s]}:{...t,[a]:r.filter(e=>"object"==typeof e&&"object"==typeof s?JSON.stringify(e)!==JSON.stringify(s):e!==s)}})},handleCheckboxInput=(e,t)=>{var s,a,r,l;return"object"==typeof t?null===(l=(0,E.dD)(c.asPath).filters)||void 0===l?void 0:null===(r=l.duration)||void 0===r?void 0:r.some(e=>JSON.stringify(e)===JSON.stringify(t)):null===(a=(0,E.dD)(c.asPath).filters)||void 0===a?void 0:null===(s=a[e])||void 0===s?void 0:s.includes(t)};return(0,w.useEffect)(()=>{var e;p(null===(e=(0,E.dD)(c.asPath).filters)||void 0===e?void 0:e.rating),h(c.asPath.includes("products"))},[c.asPath]),(0,l.jsx)(m.J,{children:(0,l.jsxs)(m.W,{onSubmit:e=>{e.preventDefault(),s()},children:[(0,l.jsxs)(m.J.Body,{children:[(0,l.jsx)(store_FilteringSection,{title:r("store:rating"),className:"rating-filter-section",children:(0,l.jsx)(l.Fragment,{children:[{id:"1",value:"4"},{id:"2",value:"3"},{id:"3",value:"2"}].map(e=>(0,l.jsx)(m.W.Radio,{id:e.id,name:"rating",label:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(common_StarsRating,{isReadOnly:!0,value:+e.value,size:"sm"}),(0,l.jsx)(m.u.Body,{size:"md",children:r("store:stars_count",{count:+e.value})})]}),onChange:e=>{let{value:s}=e.target;p(s),t(e=>({...e,rating:s}))},checked:d===e.value,value:e.value},e.id))})}),x&&(0,l.jsx)(store_FilteringSection,{title:r("store:product_type_title"),className:"product-type-filter-section",children:(0,l.jsx)(l.Fragment,{children:[{id:"digital_product",value:"digital",label:"digital_product"},{id:"products_package",value:"bundle",label:"products_package"},{id:"sessions",value:"coaching_session",label:"sessions"},{id:"podcast",value:"podcast",label:"podcast"}].map(e=>(0,l.jsx)(m.W.Checkbox,{id:e.id,label:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.u.Text,{size:"xs",className:(0,v.cn)("text-gray-700","podcast"==e.label&&"opacity-50"),children:r("store:product_type_".concat(e.label))}),"podcast"==e.label&&(0,l.jsx)(m.x,{color:"gray",rounded:"full",children:r("common:soon"),className:"ms-2"})]}),disabled:"podcast"==e.label,className:(0,v.cn)("podcast"==e.label&&"opacity-50"),onChange:e=>{let{checked:t,value:s}=e.target;handleParams(t,s,"type")},checked:handleCheckboxInput("type",e.value),value:e.value},e.id))})}),!x&&(0,l.jsx)(store_FilteringSection,{title:r("store:course_time_title"),className:"course-duration-filter-section",children:(0,l.jsx)(l.Fragment,{children:[{id:"one_hour",value:{from:"0",to:"60"},label:"0-1"},{id:"three_hours",value:{from:"60",to:"180"},label:"1-3"},{id:"other",value:{from:"180"},label:"3<"}].map(e=>(0,l.jsx)(m.W.Checkbox,{id:e.id,label:(0,l.jsx)(m.u.Text,{size:"xs",className:"text-gray-700",children:r("store:course_time_time",{hour:e.label})}),onChange:t=>{let{checked:s}=t.target;handleParams(s,e.value,"duration")},checked:handleCheckboxInput("duration",e.value)},e.id))})}),n&&(null==n?void 0:n.data.length)>0&&(0,l.jsx)(store_FilteringSection,{title:r("store:category"),className:"category-filter-section",children:null==n?void 0:n.data.map(e=>(0,l.jsx)(m.W.Checkbox,{id:e.name,label:(0,l.jsx)(m.u.Text,{size:"xs",className:"text-gray-700",children:e.name}),onChange:e=>{let{checked:t,value:s}=e.target;handleParams(t,s,"category")},checked:handleCheckboxInput("category",e.id.toString()),value:e.id},e.id))}),(0,l.jsx)(store_FilteringSection,{title:r("store:price_title"),className:"price-filter-section",children:[{id:"paid",value:"paid",label:"paid"},{id:"discounted",value:"discounted",label:"discounted"},{id:"free",value:"free",label:"free"}].map(e=>(0,l.jsx)(m.W.Checkbox,{id:e.id,label:(0,l.jsx)(m.u.Text,{size:"xs",className:"text-gray-700",children:r("store:price_".concat(e.label))}),onChange:e=>{let{checked:t,value:s}=e.target;handleParams(t,s,"price")},checked:handleCheckboxInput("price",e.value),value:e.value},e.id))}),!x&&o&&o.data.length>0&&(0,l.jsx)(store_FilteringSection,{title:r("store:level_title"),className:"difficulty-filter-section",children:(0,l.jsx)(l.Fragment,{children:o.data.map((e,t)=>(0,l.jsx)(m.W.Checkbox,{id:e.name,label:(0,l.jsx)(m.u.Text,{size:"xs",className:"text-gray-700",children:e.name}),onChange:e=>{let{checked:t,value:s}=e.target;handleParams(t,s,"difficulty")},checked:handleCheckboxInput("category",e.id.toString()),value:e.id},e.id))})})]}),(0,l.jsx)(m.J.Footer,{children:(0,l.jsx)(m.B,{size:"lg",children:r("store:filter_results"),className:"w-full",type:"submit"})})]})})},e$=s(78957),store_FilteringSection=e=>{let{title:t,children:s,className:a}=e;return(0,l.jsx)(m.D,{defaultOpen:!0,className:(0,v.cn)("mb-4 rounded-none border-b border-gray-400 pb-4 last:mb-0 last:border-0",a),children:e=>{let{isOpen:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.D.Button,{className:"!p-0",children:(0,l.jsxs)("div",{className:"flex flex-grow flex-row items-center justify-between",children:[(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)("div",{className:"flex flex-col items-start",children:(0,l.jsx)(m.u.Text,{size:"sm",className:"line-clamp-1 font-bold",children:t})})}),(0,l.jsx)(m.s,{size:"sm",variant:"soft",color:"gray",children:(0,l.jsx)(e$.Z,{className:(0,v.cn)("transition-all duration-300 ease-in-out",a?"":"rotate-180 transform")})})]})}),(0,l.jsx)(m.D.Content,{className:"mt-2 gap-3",children:s})]})}})},library_AppointmentCard=e=>{let{appointment:t,buttonText:s,badgeColor:a,badgeLabel:r,dateTimeDetails:n}=e,o=(0,w.useCallback)(e=>{let t=(0,F.Z)(e),s=(0,F.Z)().add(30,"minute");return t.isSameOrBefore(s,"minute")},[]);return(0,l.jsx)(m.J,{className:"h-full border-0 bg-gray-100",children:(0,l.jsxs)(m.J.Body,{className:"flex h-full flex-col",children:[(0,l.jsxs)("div",{className:"mb-3 flex items-start justify-between",children:[(0,l.jsx)(m.x,{color:a,variant:"soft",children:r}),("coaching_session"!==t.type||"coaching_session"===t.type&&o(t.start_at))&&(0,l.jsx)(m.B,{variant:"solid",color:"primary",size:"sm",as:"a",href:t.join_url,target:"_blank",children:s})]}),(0,l.jsxs)("div",{className:"mt-auto flex flex-col",children:[(0,l.jsx)(m.u.Body,{size:"base",className:"font-semibold",children:t.title}),n]})]})})},e1=s(69695),e2=s.n(e1),library_CoachingSessionAppointmentCard=e=>{let{appointment:t}=e,{t:s}=(0,u.Y)(["library","common"]);return(0,l.jsx)(library_AppointmentCard,{appointment:t,buttonText:s("library:attend_session"),badgeColor:"purple",badgeLabel:s("common:product_types_coaching_session"),dateTimeDetails:(0,l.jsxs)("div",{className:"mt-1 flex items-center gap-1",children:[(0,l.jsx)(m.u.Body,{size:"md",dir:"auto",className:"font-normal text-gray-700",children:(0,F.Z)(t.start_at).format("DD/MM/YYYY")}),(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,l.jsx)("path",{d:"M1.77616 3.44006C0.816164 3.44006 0.368164 2.89606 0.368164 2.16006V1.84006C0.368164 1.10406 0.816164 0.560059 1.77616 0.560059C2.73616 0.560059 3.18416 1.10406 3.18416 1.84006V2.16006C3.18416 2.89606 2.73616 3.44006 1.77616 3.44006Z",fill:"#171717"})}),(0,l.jsx)(m.u.Body,{size:"md",dir:"auto",className:"font-normal text-gray-700",children:(0,F.Z)(t.start_at).format("h:mm A")}),(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,l.jsx)("path",{d:"M1.77616 3.44006C0.816164 3.44006 0.368164 2.89606 0.368164 2.16006V1.84006C0.368164 1.10406 0.816164 0.560059 1.77616 0.560059C2.73616 0.560059 3.18416 1.10406 3.18416 1.84006V2.16006C3.18416 2.89606 2.73616 3.44006 1.77616 3.44006Z",fill:"#171717"})}),(0,l.jsx)(m.u.Body,{size:"md",dir:"auto",className:"font-normal text-gray-700",children:e2()(1e3*t.duration,{digitReplacements:["0","1","2","3","4","5","6","7","8","9"],language:"ar"})})]})})},library_MeetingAppointmentCard=e=>{var t,s;let{appointment:a}=e,{t:r}=(0,u.Y)(["library"]);return(0,l.jsx)(library_AppointmentCard,{appointment:a,buttonText:r("library:join_meeting"),badgeColor:"danger",badgeLabel:r("library:meeting"),dateTimeDetails:(0,l.jsxs)("div",{className:"mt-1 flex items-center gap-1",children:[(0,l.jsx)(m.u.Body,{size:"md",dir:"auto",className:"font-normal text-gray-700",children:(0,F.Z)(a.start_at).format("DD/MM/YYYY")}),(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,l.jsx)("path",{d:"M1.77616 3.44006C0.816164 3.44006 0.368164 2.89606 0.368164 2.16006V1.84006C0.368164 1.10406 0.816164 0.560059 1.77616 0.560059C2.73616 0.560059 3.18416 1.10406 3.18416 1.84006V2.16006C3.18416 2.89606 2.73616 3.44006 1.77616 3.44006Z",fill:"#171717"})}),(0,l.jsx)(m.u.Body,{size:"md",dir:"auto",className:"font-normal text-gray-700",children:"".concat((0,F.Z)(a.end_at).format("hh:mm A")," - ").concat((0,F.Z)(a.start_at).format("hh:mm A"))}),a.is_recurring&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,l.jsx)("path",{d:"M1.77616 3.44006C0.816164 3.44006 0.368164 2.89606 0.368164 2.16006V1.84006C0.368164 1.10406 0.816164 0.560059 1.77616 0.560059C2.73616 0.560059 3.18416 1.10406 3.18416 1.84006V2.16006C3.18416 2.89606 2.73616 3.44006 1.77616 3.44006Z",fill:"#171717"})}),(0,l.jsx)(m.u.Body,{size:"md",dir:"auto",className:"font-normal text-gray-700",children:r("meeting:occurrence",{current:null===(t=a.occurrence)||void 0===t?void 0:t.current,total:null===(s=a.occurrence)||void 0===s?void 0:s.total})})]})]})})};let e0={gray:"bg-gray-100",orange:"bg-orange",success:"bg-success",black:"bg-black"},e3={gray:"text-black",orange:"text-white",success:"text-white",black:"text-white"};var library_StatsCard=e=>{let{title:t,amount:s,icon:a,variant:r}=e,n=e0[r],o=e3[r];return(0,l.jsx)(m.J,{className:(0,v.cn)("h-full border-0",n),children:(0,l.jsxs)(m.J.Body,{className:"flex items-center",children:[(0,l.jsx)("div",{className:"rounded-full bg-white p-5",children:a}),(0,l.jsxs)("div",{className:"ms-4 flex flex-col",children:[(0,l.jsx)(m.u.Body,{size:"md",className:(0,v.cn)("font-medium",o),children:t}),(0,l.jsx)(m.u.Title,{size:"lg",className:(0,v.cn)("font-bold",o),children:s})]})]})})},library_MemberQuizzes=()=>{let{t:e}=(0,u.Y)(["common","account","library","empty_sections","library","meeting"]),{isAuthReady:t}=(0,w.useContext)(z.Vo),{data:s,canLoadMore:a,isLoading:r,isFetching:n,loadMore:i}=(0,d.MQ)(ef.HB,{limit:3},{skip:!t});return r||!s?(0,l.jsx)(components_LoadingScreen,{}):s.length>0?(0,l.jsxs)("div",{className:"flex flex-col space-y-4",children:[null==s?void 0:s.map(t=>(0,l.jsx)(m.J,{className:"border-0 bg-gray-100",children:(0,l.jsxs)(m.J.Body,{className:"flex justify-between gap-4",children:[t.course.thumbnail&&(0,l.jsx)("div",{className:"hidden h-20 w-20 md:block",children:(0,l.jsx)(eN.pl,{rounded:"xl",className:"h-20 w-20",src:t.course.thumbnail,alt:t.title})}),(0,l.jsxs)("div",{className:"flex shrink grow basis-auto flex-col items-start",children:[(0,l.jsx)(m.x,{color:"primary",variant:"soft",children:e("library:upcoming_quiz")}),(0,l.jsxs)("div",{className:"mt-2 flex flex-col",children:[(0,l.jsx)(m.u.Body,{size:"base",className:"font-semibold text-black",children:t.title}),(0,l.jsx)(m.u.Body,{size:"md",className:"text-gray-800",children:t.course.title})]})]}),(0,l.jsx)(m.B,{as:o(),color:"gray",href:"/courses/".concat(t.course.slug,"/chapters/").concat(t.chapter_id,"/contents/").concat(t.content_id),children:e("library:quiz_start")})]})},t.id)),a&&(0,l.jsx)(m.B,{isLoading:n,disabled:n,onClick:i,color:"primary",variant:"outline",className:"mx-auto w-full md:!w-auto",children:e("common:load_more")})]}):(0,l.jsx)(m.J,{className:"border-0",children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col items-center justify-center space-y-8 p-8 text-center",children:[(0,l.jsx)(eN.ox,{className:"h-56 w-56 text-primary md:!h-64 md:!w-64"}),(0,l.jsx)(m.u.Title,{as:"p",size:"lg",className:"font-semibold",children:e("empty_sections:no_quizzes_in_library")}),(0,l.jsx)(m.B,{as:o(),href:"/account/courses",children:e("library:review_courses")})]})})},e4=s(68300),library_MemberAssignments=()=>{var e;let{t}=(0,u.Y)(["library","course_player"]),{memberAssignmentsState:{data:s,canLoadMore:a,isFetching:r,loadMore:n,refetch:c}}=(0,z.z8)(),[p,x]=(0,Z.yO)(),h=(0,i.useRouter)();(0,w.useEffect)(()=>{x.isSuccess&&h.push((0,E.Kx)(x.data))},[x]);let[C,f]=(0,w.useState)(!1),[g,j]=(0,w.useState)(void 0),[v]=(0,e4.r)(),y=em.Ry().shape({attachment:em.IX().of(em.nK()).min(1).required(),message:em.Z_().min(6).required()}),{handleSubmit:_,control:b,setError:N,formState:{errors:k,isSubmitting:M}}=(0,eu.cI)({defaultValues:{attachment:[],message:""},resolver:(0,ed.X)(y)}),{displayErrors:L,displaySuccess:S}=(0,d.ah)({setError:N}),onSubmit=async e=>{if(!g)return;let t=await v({slug:g.course.slug,chapterId:g.chapter_id,contentId:g.content_id,attachment:e.attachment.map(e=>e.file).pop(),message:e.message});L(t)||(S(t),await c(),f(!1))};return s&&s.length?(0,l.jsxs)("div",{className:"flex flex-col space-y-6",children:[s.map(e=>{var s;return(0,l.jsx)(m.J,{className:"border-0 bg-gray-100",children:(0,l.jsxs)(m.J.Body,{className:"flex justify-between gap-4",children:[e.course.thumbnail&&(0,l.jsx)("div",{className:"hidden h-20 w-20 md:block",children:(0,l.jsx)(eN.pl,{rounded:"xl",className:"h-20 w-20",src:e.course.thumbnail,alt:e.course.title})}),(0,l.jsxs)("div",{className:"flex shrink grow basis-auto flex-col items-start",children:[(0,l.jsx)(m.x,{color:"primary",variant:"soft",children:t("library:upcoming_assignment")}),(0,l.jsxs)("div",{className:"mt-2 flex flex-col",children:[(0,l.jsx)(m.u.Body,{size:"base",className:"font-semibold text-black",children:e.title}),(0,l.jsx)(m.u.Body,{size:"md",className:"text-gray-800",children:e.course.title})]})]}),(0,l.jsxs)(m.E,{children:[(0,l.jsx)(m.E.Trigger,{children:(0,l.jsx)(m.B,{color:"gray",variant:"solid",icon:(0,l.jsx)(m.s,{size:"md",children:(0,l.jsx)(A.Z,{})})})}),(0,l.jsxs)(m.E.Menu,{children:[(0,l.jsx)(m.E.Item,{wrapperClassName:"relative",children:(0,l.jsxs)(o(),{href:"/courses/".concat(e.course.slug,"/chapters/").concat(e.chapter_id,"/contents/").concat(e.content_id),className:"w-full",children:[(0,l.jsx)("span",{className:"absolute inset-0"}),t("library:view_assignment")]})}),(0,l.jsx)(m.E.Divider,{}),(0,l.jsx)(m.E.Item,{children:(0,l.jsx)(m.u.Body,{size:"md",children:t("course_player:assignment_submit")}),onClick:()=>{j(e),f(!0)}}),(0,l.jsx)(m.E.Divider,{}),(null===(s=e.course.enrollment)||void 0===s?void 0:s.last_viewed)?(0,l.jsx)(m.E.Item,{wrapperClassName:"relative",children:(0,l.jsxs)(o(),{href:(0,E.Kx)(e.course),className:"w-full",children:[(0,l.jsx)("span",{className:"absolute inset-0"}),t("library:continue_course")]})}):(0,l.jsx)(m.E.Item,{onClick:()=>p({slug:e.course.slug}),children:t("library:continue_course")})]})]})]})},e.id)}),a&&(0,l.jsx)(m.B,{isLoading:r,disabled:r,onClick:n,color:"primary",variant:"outline",className:"mx-auto w-full md:!w-auto",children:t("common:load_more")}),(0,l.jsxs)(m.M,{size:"lg",open:C,onDismiss:()=>f(!1),bordered:!0,children:[(0,l.jsx)(m.M.Header,{dismissible:!0,title:t("course_player:assignment_submit")}),(0,l.jsxs)(m.W,{onSubmit:_(onSubmit),children:[(0,l.jsxs)(m.M.Body,{children:[(0,l.jsx)(m.W.Group,{label:t("course_player:assignment_upload"),required:!0,errors:null===(e=k.attachment)||void 0===e?void 0:e.message,children:(0,l.jsx)(eu.Qr,{name:"attachment",control:b,render:e=>{let{field:{onChange:t,...s}}=e;return(0,l.jsx)(m.W.File,{maxFiles:1,className:"mt-2",onChange:e=>{t(e)},...s,accept:["*"]})}})}),(0,l.jsx)(eu.Qr,{name:"message",control:b,render:e=>{var s;let{field:a}=e;return(0,l.jsx)(m.W.Textarea,{className:"mb-0",classNames:{inputWrapper:"rounded-lg"},error:null===(s=k.message)||void 0===s?void 0:s.message,label:t("course_player:assignment_message_input_label"),placeholder:t("course_player:assignment_message_input_placeholder"),rows:5,style:{resize:"none"},...a})}})]}),(0,l.jsxs)(m.M.Footer,{className:"flex justify-between",children:[(0,l.jsx)(m.B,{as:"button",type:"submit",color:"primary",variant:"solid",children:t("course_player:assignment_submit"),isLoading:M,disabled:M}),(0,l.jsx)(m.B,{as:"button",color:"gray",variant:"solid",onClick:()=>{f(!1)},children:t("common:cancel")})]})]})]})]}):null},library_MemberRejectedAssignments=()=>{let{t:e}=(0,u.Y)(["library"]),{memberRejectedAssignmentsState:{data:t}}=(0,z.z8)();return t&&t.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mb-6 flex flex-col space-y-6 md:mb-0",children:t.map(t=>(0,l.jsx)(m.J,{className:"border-0 bg-gray-100",children:(0,l.jsxs)(m.J.Body,{className:"flex justify-between gap-4",children:[t.course.thumbnail&&(0,l.jsx)("div",{className:"hidden h-20 w-20 md:block",children:(0,l.jsx)(eN.pl,{rounded:"xl",className:"h-20 w-20",src:t.course.thumbnail,alt:t.course.title})}),(0,l.jsxs)("div",{className:"flex shrink grow basis-auto flex-col items-start",children:[(0,l.jsx)(m.x,{color:"danger",variant:"soft",children:e("library:rejected_assignment")}),(0,l.jsxs)("div",{className:"mt-2 flex flex-col",children:[(0,l.jsx)(m.u.Body,{size:"base",className:"font-semibold text-black",children:t.title}),(0,l.jsx)(m.u.Body,{size:"md",className:"text-gray-800",children:t.course.title})]})]}),(0,l.jsx)(m.B,{as:o(),color:"gray",href:"/courses/".concat(t.course.slug,"/chapters/").concat(t.chapter_id,"/contents/").concat(t.content_id),children:e("library:view_assignment")})]})},t.id))}),(0,l.jsx)("div",{className:"my-6 hidden h-px w-full bg-gray-400 md:block"})]}):null},library_MemberAssignmentsState=e=>{let{children:t}=e,{isAuthReady:s}=(0,w.useContext)(z.Vo),{t:a}=(0,u.Y)(["library","empty_sections"]),{data:r,canLoadMore:n,isLoading:i,isFetching:c,loadMore:p,refetch:x}=(0,d.MQ)(ef.Ln,{limit:3},{skip:!s}),{data:h,isLoading:C}=(0,ef.vi)({limit:3},{skip:!s});return!h||!r||i||C?(0,l.jsx)(components_LoadingScreen,{}):r.length||h.length?(0,l.jsx)(z.uB.Provider,{value:{memberAssignmentsState:{data:r,canLoadMore:n,isLoading:i,isFetching:c,loadMore:p,refetch:x},memberRejectedAssignmentsState:{data:h,isLoading:C}},children:t}):(0,l.jsx)(m.J,{className:"border-0",children:(0,l.jsxs)(m.J.Body,{className:"flex flex-col items-center justify-center space-y-8 p-8 text-center",children:[(0,l.jsx)(eN.ox,{className:"h-56 w-56 text-primary md:!h-64 md:!w-64"}),(0,l.jsx)(m.u.Title,{as:"p",size:"lg",className:"font-semibold",children:a("empty_sections:no_assignments_in_library")}),(0,l.jsx)(m.B,{as:o(),href:"/account/courses",className:"md:px-10",children:a("library:review_courses")})]})})},components_LoadingScreen=()=>(0,l.jsx)("div",{className:"relative flex flex-col items-center justify-center p-8",children:(0,l.jsx)("div",{"aria-label":"Loading...",role:"status",children:(0,l.jsxs)("svg",{className:"h-8 w-8 animate-spin stroke-primary",viewBox:"0 0 256 256",children:[(0,l.jsx)("line",{x1:"128",y1:"32",x2:"128",y2:"64",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,l.jsx)("line",{x1:"195.9",y1:"60.1",x2:"173.3",y2:"82.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,l.jsx)("line",{x1:"224",y1:"128",x2:"192",y2:"128",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,l.jsx)("line",{x1:"195.9",y1:"195.9",x2:"173.3",y2:"173.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,l.jsx)("line",{x1:"128",y1:"224",x2:"128",y2:"192",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,l.jsx)("line",{x1:"60.1",y1:"195.9",x2:"82.7",y2:"173.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,l.jsx)("line",{x1:"32",y1:"128",x2:"64",y2:"128",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),(0,l.jsx)("line",{x1:"60.1",y1:"60.1",x2:"82.7",y2:"82.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"})]})})}),e5=s(54246);(a=r||(r={}))[a.CUSTOM_TEMPLATE=0]="CUSTOM_TEMPLATE",a[a.BADGE_ONLY=1]="BADGE_ONLY",a[a.SPILT_AMOUNT_PRODUCT_PAGE=2]="SPILT_AMOUNT_PRODUCT_PAGE",a[a.SPILT_AMOUNT_CART_PAGE=3]="SPILT_AMOUNT_CART_PAGE";let e6="https://cdn.tamara.co/widget-v2/tamara-widget.js",e7=/https:\/\/cdn.tamara.co\/widget-v2\/tamara-widget.js/,e9=null,findScript=()=>{let e=document.querySelectorAll('script[src^="'.concat(e6,'"]'));for(let t=0;t<e.length;t++){let s=e[t];if(e7.test(s.src))return s}return null},injectScript=()=>{let e=document.createElement("script");e.src=e6;let t=document.head||document.body;if(!t)throw Error("Expected document.body not to be null. tamara.js requires a <body> element.");return t.appendChild(e),e},TamaraWidget_loadScript=()=>null!==e9?e9:e9=new Promise((e,t)=>{if("undefined"==typeof document){e(null);return}if(window.TamaraWidgetV2&&console.warn("TamaraWidget already loaded on the page."),window.TamaraWidgetV2){e(!0);return}try{let s=findScript();s?console.warn("TamaraWidget already loaded on the page."):s||(s=injectScript()),s.addEventListener("load",()=>{window.TamaraWidgetV2?e(!0):t(Error("TamaraWidgetV2 not available"))}),s.addEventListener("error",()=>{t(Error("Failed to load TamaraWidgetV2"))})}catch(e){t(e);return}});var components_TamaraWidget=e=>{let[t,s]=(0,w.useState)(!1),{data:a}=(0,eg.G)(),r=(0,w.useMemo)(()=>{var e;return null==a?void 0:null===(e=a.apps)||void 0===e?void 0:e.find(e=>e.slug===B.VC.Tamara)},[a]),n=(0,d.ns)(),o=(0,w.useMemo)(()=>(0,E.IQ)(n),[n]);return(0,w.useEffect)(()=>{r&&o&&(window.tamaraWidgetConfig={country:n,publicKey:r.public_key,lang:null==a?void 0:a.locale},TamaraWidget_loadScript().then(t=>{var a;s(null!==(a=e.price>=100&&t)&&void 0!==a&&a)}))},[n]),t?(0,l.jsx)("div",{className:e.className,children:(0,l.jsx)("tamara-widget",{type:"tamara-summary",amount:e.price,"inline-type":e.type})}):null}},91520:function(e,t,s){s.r(t),s.d(t,{AppMenu:function(){return Menus_AppMenu},AppMenuDropdown:function(){return Menus_AppMenuDropdown},AppMenuItem:function(){return Menus_AppMenuItem},AppMenuLink:function(){return Menus_AppMenuLink},Footer:function(){return layouts_Footer},Header:function(){return layouts_Header},LangSwitcher:function(){return LangSwitcher},Layout:function(){return layouts_Layout},MobileNavigation:function(){return layouts_MobileNavigation},PageLayout:function(){return layouts_PageLayout}});var a=s(85893),r=s(67294),l=s(7395),n=s(5152),o=s.n(n),i=s(6316),c=s(47533),d=s(2078),u=s(45220),m=s.n(u),p=s(66678),x=s.n(p),h=s(87536),C=s(16310),f=s(75758),g=s(28854),j=s(45085),v=s(77032),y=s(62683),_=s(68192),b=s(97192),w=s(21729),N=s(86702),k=s(57292),M=s(66692),L=s(74820),shared_CompleteProfileModal=()=>{let{t:e,i18n:t}=(0,y.Y)(["validation","common"]),s=(0,v.TL)(),{member:l}=(0,r.useContext)(j.Vo),{data:n}=(0,b.G)(),[o]=(0,_.TG)(),{openCompleteProfileModal:i,completedProfilePercentage:u}=(0,v.CG)(e=>e.app),p=(0,r.useMemo)(()=>n&&n.nelc_compliant&&l&&l.country_code&&!l.national_id&&"sa"===l.country_code.toLowerCase(),[n,l]),z=/^[\u0600-\u06FF\s]+$/,Z=(0,f.N5)(n).shape({name:C.Z_().when("$tenant",(t,s)=>{let a=t[0].meta.enable_arabic_characters_only;return a?s.matches(z,()=>e("validation:name_must_be_in_arabic")).required():s.required()}),email:C.Z_().required(),phone:C.Ry().shape({phone_code:C.Z_().required(),phone:C.Z_().required()}),national_id:C.Z_().when((e,t)=>{let[]=e;return p?t.required():t.nullable().notRequired()})}),S=(0,r.useMemo)(()=>{var e;return null===(e=N.nh.find(e=>e.calling_code==(null==l?void 0:l.phone_code)))||void 0===e?void 0:e.iso_3166_1_alpha2},[l]),{control:H,formState:{errors:B,isSubmitting:E},handleSubmit:A,reset:I,setError:P}=(0,h.cI)({resolver:(0,c.X)(Z),context:{tenant:n},mode:"onSubmit"}),{displayErrors:T,displaySuccess:R}=(0,v.ah)({setError:P}),{profileRequiredFieldsCompleted:V}=(0,v.tI)();(0,r.useEffect)(()=>{l&&n&&I({name:l.name,email:l.email,phone:{phone_code:l.phone_code,phone:l.phone},national_id:l.national_id,...(0,f.tn)(n,l)})},[I,l,n]);let q=A(async e=>{var t,a,r;let l=x()(e);Object.keys(null!==(r=null==l?void 0:null===(t=l.meta)||void 0===t?void 0:t.complete_profile)&&void 0!==r?r:{}).map(e=>{var t,s,a;if("object"==typeof(null==l?void 0:null===(t=l.meta)||void 0===t?void 0:t.complete_profile[e])&&(null==l?void 0:null===(s=l.meta)||void 0===s?void 0:s.complete_profile[e])!==null){let t=null==l?void 0:null===(a=l.meta)||void 0===a?void 0:a.complete_profile[e];"label"in t&&(l.meta.complete_profile[e]=t.value)}});let n=await o({...l,meta:{complete_profile:null===(a=l.meta)||void 0===a?void 0:a.complete_profile},phone_code:l.phone.phone_code,phone:l.phone.phone});T(n)||(R(n),s((0,w.Dw)(!1)),s((0,w.D0)(100)),s({type:"auth/setMember",payload:n.data.data}))});return(0,a.jsxs)(L.M,{open:i,onDismiss:()=>{s((0,w.Dw)(!1))},bordered:!0,size:"xl",className:"lg:my-4",dismissible:V,children:[(0,a.jsx)(L.M.Header,{dismissible:V,title:e("common:complete_your_profile")}),(0,a.jsxs)(L.M.Body,{className:"flex flex-col space-y-6 overflow-y-auto lg:max-h-[600px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3.5 rounded-xl bg-gray-100 p-4",children:[(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsx)(L.s,{size:"sm",children:(0,a.jsx)(M.Z,{})}),e("common:complete_your_profile_description"),(0,a.jsx)(L.s,{size:"xs",className:"ms-auto",children:(0,a.jsx)(k.Z,{className:"rtl:rotate-180"})})]}),(0,a.jsx)(L.P.Bar,{value:u,color:u>=100?"success":"warning"})]}),(0,a.jsx)(h.Qr,{render:t=>{var s;let{field:r}=t;return(0,a.jsx)(L.W.Input,{isRequired:!0,error:null===(s=B.name)||void 0===s?void 0:s.message,label:(null==n?void 0:n.meta.enable_arabic_characters_only)?e("common:name_in_arabic"):e("common:the_name"),placeholder:(null==n?void 0:n.meta.enable_arabic_characters_only)?e("common:name_in_arabic_input_placeholder"):e("common:the_name_input_placeholder"),description:e("common:name_in_arabic_helper"),className:"mb-0",...r})},name:"name",control:H}),(0,a.jsx)(h.Qr,{render:s=>{var r;let{field:n}=s;return(0,a.jsx)(L.W.Input,{isRequired:!0,error:null===(r=B.email)||void 0===r?void 0:r.message,disabled:!!(null==l?void 0:l.email),dir:n.value?"ltr":t.dir(),label:e("common:email"),placeholder:e("common:email_input_placeholder"),className:"mb-0",...n})},name:"email",control:H}),(0,a.jsx)(h.Qr,{name:"phone",control:H,render:t=>{var s;let{field:r}=t;return(0,a.jsx)(g.Z,{autoDetectedCountry:m()((null==l?void 0:l.phone_code)||(null==l?void 0:l.phone)),isRequired:!0,disabled:null!=l&&!!l.country_code&&null!=l&&!!l.phone_code&&null!=l&&!!l.phone&&(0,d.y)(String(null==l?void 0:l.phone),S),className:"h-12 grow",label:e("common:phone"),placeholder:e("common:phone_input_placeholder"),error:null===(s=B.phone)||void 0===s?void 0:s.message,...r})}}),p&&(0,a.jsx)(h.Qr,{control:H,name:"national_id",render:t=>{var s;let{field:r}=t;return(0,a.jsx)(L.W.Input,{className:"mb-0",isRequired:!0,error:null===(s=B.national_id)||void 0===s?void 0:s.message,label:e("common:national_id"),placeholder:e("common:national_id_input_placeholder"),description:e("common:national_id_message"),...r})}}),(0,a.jsx)(f.ZP,{control:H,errors:B})]}),(0,a.jsxs)(L.M.Footer,{className:"flex flex-col justify-between space-y-4 sm:!flex-row sm:!space-y-0",children:[(0,a.jsx)(L.B,{disabled:E,isLoading:E,onClick:q,children:e("common:save_edits")}),V&&(0,a.jsx)(L.B,{color:"gray",onClick:()=>s((0,w.Dw)(!1)),children:e("common:cancel")})]})]})};let z=o()(()=>Promise.resolve().then(s.bind(s,91520)).then(e=>e.MobileNavigation),{loadableGenerated:{webpack:()=>[91520]},ssr:!1});var layouts_Layout=e=>{let{children:t,classNames:s,className:r,hasFooter:n=!0,hasHeader:o=!0,hasMobileNavigation:c=!0,...d}=e;return(0,a.jsxs)("div",{className:(0,l.cn)("flex min-h-screen flex-col justify-between",r),children:[o&&(0,a.jsx)(i.Header,{className:null==s?void 0:s.header}),(0,a.jsx)("main",{className:(0,l.cn)("my-auto",null==s?void 0:s.layout),...d,children:t}),n&&(0,a.jsx)(i.Footer,{className:null==s?void 0:s.footer}),c&&(0,a.jsx)(z,{}),(0,a.jsx)(shared_CompleteProfileModal,{})]})},Z=s(41664),S=s.n(Z),H=s(13245),Menus_AppMenuDropdown=e=>{let{link:t,location:s}=e;return(0,a.jsxs)(L.E,{children:[(0,a.jsx)(L.E.Trigger,{children:(0,a.jsxs)(L.u.Body,{as:"button",size:"base",className:"header"==s?"flex items-center gap-3 rounded-full px-6 py-2 font-medium text-gray-700 hover:bg-gray-300 hover:text-gray-900":"flex items-center gap-3 px-3 py-2 font-medium text-primary hover:text-primary-600",children:[t.title,(0,a.jsx)(L.s,{size:"sm",className:"rotate-180 transition-transform duration-300",children:(0,a.jsx)(H.Z,{})})]})}),(0,a.jsx)(L.E.Menu,{className:"!z-[1000] !min-w-[170px]",children:t.children.map(e=>{var s;return(0,a.jsx)(L.E.Item,{as:"div",className:"block px-4 py-1",children:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(S(),{className:"w-full",href:null!==(s=e.url)&&void 0!==s?s:"#",target:t.new_tab?"_blank":"_self",children:e.title})})},e.id)})})]})},Menus_AppMenuItem=e=>{let{link:t,location:s}=e;return(0,a.jsx)("li",{children:t.children.length?(0,a.jsx)(i.AppMenuDropdown,{location:s,link:t}):(0,a.jsx)(i.AppMenuLink,{location:s,link:t})})},Menus_AppMenu=e=>{let{location:t,className:s}=e,{data:r}=(0,b.G)(),l=null==r?void 0:r.menus.find(e=>e.location.includes(t));if(!l)return null;if("footer"===t){let e=function(e,t){let s=[];for(let a=0;a<e.length;a+=t)s.push(e.slice(a,a+t));return s}(l.links,3);return(0,a.jsx)("div",{className:s,children:e.map((e,s)=>(0,a.jsx)("ul",{className:"grid auto-rows-min grid-cols-1 items-start gap-2",children:e.map((e,s)=>(0,a.jsx)(i.AppMenuItem,{link:e,location:t},s))},s))})}return(0,a.jsx)("ul",{className:s,children:l.links.map(e=>(0,a.jsx)(i.AppMenuItem,{location:t,link:e},e.id))})},Menus_AppMenuLink=e=>{var t;let{link:s,location:r}=e,{isActive:n}=(0,v.BM)();return(0,a.jsx)(L.u.Body,{as:S(),size:"base",href:null!==(t=s.url)&&void 0!==t?t:"#",target:s.new_tab?"_blank":"_self",className:"header"==r?(0,l.cn)("block rounded-full px-6 py-2 font-medium text-gray-700",n(s.url)?"bg-gray-300 text-gray-900":"hover:bg-gray-300 hover:text-gray-900"):(0,l.cn)("block px-3 py-2 font-medium text-primary",n(s.url)?"":"hover:text-primary-600"),children:s.title})},layouts_PageLayout=e=>{let{children:t,sideCard:s}=e;return(0,a.jsxs)(L.G,{columns:{lg:3,md:1},gap:{xs:"2rem",sm:"2rem",md:"2rem",lg:"2rem",xl:"2rem"},children:[(0,a.jsx)(L.G.Cell,{columnSpan:{lg:2},className:"order-2 flex flex-col gap-y-8 md:!order-1",children:t}),(0,a.jsx)(L.G.Cell,{className:"order-1 md:!order-2",children:s})]})},B=s(85837),E=s(30097),A=s(62940),I=s(11467),P=s(39514),T=s(42237),R=s(85755);let V=o()(()=>Promise.resolve().then(s.bind(s,87704)).then(e=>e.Cart),{loadableGenerated:{webpack:()=>[87704]},ssr:!1}),q=o()(()=>Promise.resolve().then(s.bind(s,6316)).then(e=>e.Drawer),{loadableGenerated:{webpack:()=>[6316]},ssr:!1});var layouts_MobileNavigation=()=>{let{t:e}=(0,y.Y)(["common"]),[t,s]=(0,r.useState)(!1),{member:l,logout:n}=(0,r.useContext)(j.Vo),o=(0,r.useRef)(null),i=l?"button":S();return(0,r.useEffect)(()=>{let e=document.getElementById("floating-actions"),detectCollisions=()=>{e&&o.current&&(e.style.bottom="".concat(o.current.getBoundingClientRect().height,"px"))};return detectCollisions(),window.addEventListener("scroll",detectCollisions),window.addEventListener("resize",detectCollisions),()=>{window.removeEventListener("scroll",detectCollisions),window.removeEventListener("resize",detectCollisions)}},[]),(0,a.jsxs)(a.Fragment,{children:[l&&(0,a.jsx)(q,{styleClass:"drawer rounded-t-2xl",isOpen:t,onClose:()=>s(!1),title:e("common:profile"),children:(0,a.jsxs)("div",{className:"w-full divide-y divide-gray-300",children:[(0,a.jsx)("button",{className:"group relative w-full p-2",children:(0,a.jsxs)("div",{className:"flex w-full items-center justify-start gap-2 rounded-lg p-4 group-hover:bg-gray-200 group-focus:bg-gray-200",children:[(0,a.jsx)(L.s,{size:"sm",children:(0,a.jsx)(B.Z,{})}),(0,a.jsxs)(S(),{href:"/account/affiliates",children:[(0,a.jsx)("span",{className:"absolute inset-0"}),(0,a.jsx)(L.u.Body,{as:"span",children:e("common:wallet")})]})]})}),(0,a.jsx)("button",{className:"group relative w-full p-2",children:(0,a.jsxs)("div",{className:"flex w-full items-center justify-start gap-2 rounded-lg p-4 group-hover:bg-gray-200 group-focus:bg-gray-200",children:[(0,a.jsx)(L.s,{size:"sm",children:(0,a.jsx)(E.Z,{})}),(0,a.jsx)(L.u.Body,{as:"span",children:(0,a.jsxs)(S(),{href:"/account",children:[(0,a.jsx)("span",{className:"absolute inset-0"}),e("common:profile")]})})]})}),(0,a.jsx)("button",{className:"group relative w-full p-2",children:(0,a.jsxs)("div",{className:"flex w-full items-center justify-start gap-2 rounded-lg p-4 group-hover:bg-gray-200 group-focus:bg-gray-200",children:[(0,a.jsx)(L.s,{size:"sm",children:(0,a.jsx)(A.Z,{})}),(0,a.jsx)(L.u.Body,{as:"span",className:"flex-1",children:(0,a.jsxs)(S(),{href:"/",className:"flex w-full items-center justify-between",children:[(0,a.jsx)("span",{className:"absolute inset-0"}),e("common:browse_academy")]})}),(0,a.jsx)(L.s,{size:"sm",children:(0,a.jsx)(I.Z,{})})]})}),(0,a.jsx)("button",{onClick:()=>n(),className:"group relative w-full p-2",children:(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 rounded-lg p-4 group-hover:bg-gray-200 group-focus:bg-gray-200",children:[(0,a.jsx)(L.u.Body,{as:"span",className:"text-danger",children:e("common:logout")}),(0,a.jsx)(L.s,{color:"danger",size:"sm",children:(0,a.jsx)(P.Z,{})})]})}),(0,a.jsx)("div",{className:"h-8"})]})}),(0,a.jsx)("div",{id:"mobile-actions",ref:o,className:"sticky left-0 z-50 w-full border-t border-gray-300 bg-white min-[768px]:hidden",style:{bottom:"0",paddingBottom:"calc(env(safe-area-inset-bottom,0) + 0.75rem)"},children:(0,a.jsxs)("div",{className:"mobile-nav mx-auto grid h-full max-w-lg grid-cols-4 px-4 pt-3",children:[(0,a.jsxs)(S(),{href:"/",className:"group inline-flex flex-col items-center justify-center gap-1 rounded p-1 text-center hover:bg-gray-200",children:[(0,a.jsx)(L.s,{children:(0,a.jsx)(T.Z,{})}),(0,a.jsx)(L.u.Body,{size:"sm",className:"text-[12px] font-normal text-gray-800",children:e("common:section_titles_home_page")})]}),(0,a.jsxs)(i,{href:l?void 0:"/login",className:"group inline-flex flex-col items-center justify-center gap-1 rounded p-1 text-center hover:bg-gray-200",onClick:l?()=>s(!0):void 0,children:[(0,a.jsx)(L.s,{children:(0,a.jsx)(E.Z,{})}),(0,a.jsx)(L.u.Body,{size:"sm",className:"text-[12px] font-normal text-gray-800",children:e(l?"common:profile":"common:login")})]}),(0,a.jsxs)(S(),{href:l?"/library":"/login?callbackUrl=/library",className:"group inline-flex flex-col items-center justify-center gap-1 rounded p-1 text-center hover:bg-gray-200",children:[(0,a.jsx)(L.s,{children:(0,a.jsx)(R.Z,{})}),(0,a.jsx)(L.u.Body,{size:"sm",className:"text-[12px] font-normal text-gray-800",children:e("common:my_library")})]}),(0,a.jsx)(V,{showMobileToggle:!0})]})})]})},F=s(25675),D=s.n(F),O=s(79648),W=s(28214),Y=s(43854),Q=s(86873),G=s(40456),J=s(587),U=s(78957),layouts_Footer=e=>{var t;let{className:s}=e,{t:n}=(0,y.Y)(["common","currencies"]),{data:o}=(0,b.G)(),{currencies:c}=(0,v.Dt)(),{academyCurrency:d,appLocale:u}=(0,v.CG)(e=>e.app),m=(0,v.TL)(),p=(0,r.useMemo)(()=>c.find(e=>e.code===d),[c,d]),x=(0,r.useMemo)(()=>o&&Object.entries(o.links).map(e=>{let[,t]=e;return t}).filter(e=>null!=e&&""!==e).length>0,[o]);return(0,a.jsxs)("footer",{className:(0,l.cn)("mt-16",s),children:[(0,a.jsx)("div",{className:"footer-container w-full border-t-2 border-gray-200 px-8 py-12",children:(0,a.jsxs)("div",{className:"footer-grid grid md:grid-cols-3",children:[(0,a.jsxs)("div",{className:"footer-branding mb-6 flex flex-col md:col-span-1 md:mb-0",children:[(0,a.jsx)(i.AcademyLogo,{className:"me-2 md:!me-6"}),(0,a.jsxs)("div",{className:"footer-info mt-6 flex flex-col gap-2",children:[(0,a.jsx)(L.u.Body,{size:"md",children:null==o?void 0:o.title}),(0,a.jsx)(Q.w,{bordered:!0,className:"footer-payment-logos"}),(0,a.jsx)(L.u.Body,{size:"md",children:n("common:all_rights_reserved",{year:new Date().getFullYear(),title:null==o?void 0:o.title})})]})]}),(0,a.jsx)(i.AppMenu,{className:"footer-links grid grid-cols-1 gap-4 sm:grid-cols-2 md:col-span-2 md:grid-cols-3",location:"footer"})]})}),(0,a.jsxs)("div",{className:"footer-bottom flex flex-col-reverse items-start gap-4 border-t-2 border-gray-200 px-8 py-4 empty:hidden md:!flex-row md:!items-center md:gap-8",children:[!(null==o?void 0:null===(t=o.meta)||void 0===t?void 0:t.unbranded)&&(0,a.jsxs)(S(),{className:"flex min-h-[48px] w-full items-center justify-center gap-2 rounded-full border border-gray-400 px-3 py-2 md:!w-fit",href:"https://msaaq.com?utm_source=".concat(null==o?void 0:o.domain,"&utm_medium=poweredby&utm_campaign=AcademyFooter"),target:"_blank",title:"أنشئ موقعك التعليمي الخاص وابدأ بيع دوراتك التدريبية أونلاين - مساق",children:[(0,a.jsx)(L.u.Body,{size:"md",className:"font-semibold",children:"ar"===u?"يعمل بواسطة":"Powered by"}),(0,a.jsx)(D(),{src:"https://cdn.msaaq.com/assets/images/logo/logo.svg",width:"50",height:"22",alt:"أنشئ موقعك التعليمي الخاص وابدأ بيع دوراتك التدريبية أونلاين - مساق",style:{width:"50px",height:"22px"}})]}),(null==o?void 0:o.tax_number)&&(0,a.jsxs)("div",{className:"flex min-h-[48px] w-full items-center justify-center gap-2 rounded-full border border-gray-400 px-3 py-2 md:!w-fit",children:[(0,a.jsx)(L.s,{size:"md",color:"primary",children:(0,a.jsx)(J.Z,{})}),(0,a.jsx)(L.u.Body,{size:"md",className:"font-semibold",children:n("common:tax_number",{tax_number:null==o?void 0:o.tax_number})})]}),(null==o?void 0:o.nelc_compliant)&&(0,a.jsxs)("div",{className:"group flex min-h-[48px] w-full items-center justify-center gap-2 rounded-full border border-gray-400 px-4 md:!w-fit",children:[(0,a.jsx)(D(),{src:"/images/nelc-icon.svg",width:14,height:14,alt:"nelc icon"}),(0,a.jsx)(L.u.Body,{size:"md",className:"block font-semibold lg:!hidden group-hover:lg:!block ",children:n("common:nelc_compliant")})]}),(null==o?void 0:o.msaaqpay_enabled)&&c.length>1&&(0,a.jsx)("div",{className:"currency-select w-full md:!w-fit",children:(0,a.jsx)(Y.P,{isSearchable:!1,classNames:{menu:()=>"w-full md:!w-[200px]",control:()=>"w-full md:!w-fit",dropdownIndicator:()=>"!pl-3 !pr-0 !py-0",valueContainer:()=>"!px-3 !flex"},value:{label:null==p?void 0:p.name,value:null==p?void 0:p.code,...p},rounded:!0,onChange:e=>{G.Z.setItem("currency",e.value),m((0,w.XY)(e.value))},options:c.map(e=>({label:n("currencies:".concat(e.code)),value:e.code,...e})),components:{DropdownIndicator:e=>{let{menuIsOpen:t}=e.selectProps;return O.c.DropdownIndicator({...e,children:(0,a.jsx)(L.s,{size:"sm",className:"".concat(t?"rotate-0 transform":"rotate-180","   text-black transition-transform duration-300 ease-in-out"),children:(0,a.jsx)(U.Z,{})})})},Option:e=>{var t;return(0,a.jsx)(O.c.Option,{...e,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{style:e.data.country_code?{backgroundImage:"url(https://cdn.msaaq.com/assets/flags/".concat(null===(t=e.data.country_code)||void 0===t?void 0:t.toLowerCase(),".svg)")}:{},className:"h-5 w-7 rounded bg-cover bg-center bg-no-repeat"}),(0,a.jsx)("span",{children:e.data.label})]})})},SingleValue:e=>{var t;return(0,a.jsx)(O.c.SingleValue,{...e,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{style:e.data.country_code?{backgroundImage:"url(https://cdn.msaaq.com/assets/flags/".concat(null===(t=e.data.country_code)||void 0===t?void 0:t.toLowerCase(),".svg)")}:{},className:"h-5 w-7 rounded bg-cover bg-center bg-no-repeat"}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:e.data.symbol}})]})})}}})}),o&&x&&(0,a.jsx)("div",{className:"footer-social-links mx-auto md:!me-0 md:!ms-auto",children:(0,a.jsx)(W.Z,{links:o.links})})]})]})},K=s(5379),X=s.n(K),$=s(11163),ee=s(43407),et=s(35871);let es=o()(()=>Promise.resolve().then(s.bind(s,6316)).then(e=>e.Drawer),{loadableGenerated:{webpack:()=>[6316]},ssr:!1}),DropdownMenu=e=>{var t;let{link:s,isActive:n}=e,[o,i]=(0,r.useState)(!1);return s.children.length?(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)(L.u.Body,{onClick:e=>{e.preventDefault(),i(!o)},size:"base",className:(0,l.cn)("flex cursor-pointer p-6 hover:bg-gray-200",o&&"bg-gray-200"),children:(0,a.jsxs)("span",{className:"flex w-full items-center justify-between",children:[s.title,(0,a.jsx)(L.s,{children:o?(0,a.jsx)(U.Z,{}):(0,a.jsx)(et.Z,{})})]})}),o&&(0,a.jsx)("ul",{children:s.children.map(e=>{var t;return(0,a.jsx)("li",{children:(0,a.jsx)(L.u.Body,{as:S(),size:"base",href:null!==(t=e.url)&&void 0!==t?t:"#",target:e.new_tab?"_blank":"_self",className:(0,l.cn)("block bg-gray-200 px-6 py-3"),children:e.title})},e.id)})})]}):(0,a.jsx)(L.u.Body,{as:S(),size:"base",href:null!==(t=s.url)&&void 0!==t?t:"#",target:s.new_tab?"_blank":"_self",className:(0,l.cn)("flex cursor-pointer p-6 hover:bg-gray-200",n(s.url)?"bg-gray-200":""),children:s.title})};var Menus_AppMenuMobile=e=>{let{location:t,className:s}=e,l=(0,$.useRouter)(),{isActive:n}=(0,v.BM)(),{data:o}=(0,b.G)(),i=null==o?void 0:o.menus.find(e=>e.location.includes(t)),[c,d]=(0,r.useState)(!1),closeNav=()=>d(!1);return((0,r.useEffect)(()=>(l.events.on("routeChangeComplete",closeNav),()=>{l.events.off("routeChangeComplete",closeNav)}),[l.events]),i&&i.links.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(L.B,{variant:"link",color:"gray",size:"sm",className:"mobile-menu-toggle block lg:!hidden",onClick:()=>d(!0),icon:(0,a.jsx)(L.s,{children:(0,a.jsx)(ee.Z,{})})}),(0,a.jsx)(es,{styleClass:"navbar-drawer",onClose:closeNav,isOpen:c,children:(0,a.jsx)("ul",{className:s,children:i.links.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(DropdownMenu,{link:e,isActive:n})},t))})})]}):null},ea=s(78943),er=s(89396);let el=o()(()=>Promise.resolve().then(s.bind(s,87704)).then(e=>e.Cart),{loadableGenerated:{webpack:()=>[87704]},ssr:!1});var layouts_Header=e=>{var t;let{className:s}=e,n=(0,r.useRef)(null),{t:o}=(0,y.Y)(["common"]),[c,d]=(0,r.useState)(0),u=(0,r.useRef)(null),[m,p]=(0,r.useState)(0),[x,h]=(0,r.useState)(0),{completedProfilePercentage:C}=(0,v.CG)(e=>e.app),f=(0,v.TL)(),{logout:g,member:_,status:z}=(0,r.useContext)(j.Vo),[Z,T]=(0,r.useState)(!1),V=(0,v.ac)(ea.j$.md),{profileFieldsCompleted:q}=(0,v.tI)(),{data:F}=(0,b.G)(),D=(0,r.useCallback)(()=>{u.current&&p(u.current.getBoundingClientRect().height)},[u,u.current,p]);return(0,r.useEffect)(()=>(D(),window.addEventListener("resize",D),()=>{window.removeEventListener("resize",D)}),[u,u.current,p]),(0,r.useEffect)(()=>{let handleScroll=()=>{let e=window.scrollY;u&&u.current&&(c>e?(u.current.style.top="0",h(m)):(u.current.style.top="-".concat(u.current.clientHeight+20,"px"),h(0))),d(e)};return window.addEventListener("scroll",handleScroll),()=>{window.removeEventListener("scroll",handleScroll)}},[c,u,m]),(0,a.jsxs)("header",{ref:u,className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" "+((0,l.cn)("sticky top-0 z-[999] mb-4 flex !min-h-[48px] items-center border-b border-gray-400 bg-white px-4 py-2 transition-all md:!min-h-[90px] md:!px-8 lg:!min-h-[98px] lg:!px-6",s)||""),children:[(0,a.jsx)(X(),{id:"372fc6bf3ab7b53c",dynamic:[m,x],children:":root{--header-height:".concat(m,"px;--header-placement:").concat(x,"px}")}),(0,a.jsxs)("div",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" mx-auto flex w-full items-center justify-between",children:[(0,a.jsx)(i.AcademyLogo,{className:"header-logo me-2 !h-8 md:!me-6 lg:h-10"}),(0,a.jsxs)("div",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" header-actions ms-auto flex items-center gap-2 md:order-2 md:!gap-6",children:[_&&V&&(0,a.jsx)(L.B,{variant:"solid",color:"gray",size:"sm",className:"library-button",as:S(),href:"/library",children:o("common:my_library")}),(0,a.jsx)(i.LangSwitcher,{}),(0,a.jsx)(L.B,{variant:"link",color:"gray",size:"sm",className:"search-button",onClick:()=>T(!0),icon:(0,a.jsx)(L.s,{size:"sm",className:"relative",children:(0,a.jsx)(er.Z,{})})}),(0,a.jsx)(i.SearchModal,{open:Z,onDismiss:()=>{T(!1)}}),V&&(0,a.jsx)(el,{showMobileToggle:!1}),_?(0,a.jsx)(a.Fragment,{children:V&&(0,a.jsxs)(L.E,{children:[(0,a.jsx)(L.E.Trigger,{className:"member-dropdown-trigger",children:(0,a.jsx)("button",{role:"button","aria-expanded":"false",className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" member-dropdown-button",children:(0,a.jsx)(L.w,{className:"member-dropdown-title",title:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" member-dropdown-greetings flex flex-col text-start",children:[(0,a.jsx)(L.u.Body,{children:o("common:greetings"),as:"span",size:"md",className:"member-dropdown-greeting-text"}),(0,a.jsx)(L.u.Body,{children:(0,N.BV)(null==_?void 0:_.name),as:"span",size:"base",className:"member-dropdown-name max-w-[6rem] truncate font-medium"})]})}),prepend:(0,a.jsx)(L.v,{name:null==_?void 0:_.name,imageUrl:null==_?void 0:_.avatar,className:"member-dropdown-avatar"}),append:(0,a.jsx)(L.s,{className:"rotate-180 transition-transform duration-300",children:(0,a.jsx)(H.Z,{})})})})}),(0,a.jsxs)(L.E.Menu,{className:"member-dropdown-menu !z-[1000]",children:[(0,a.jsx)(L.E.Item,{onClick:()=>f((0,w.Dw)(!0)),wrapperClassName:"relative bg-gray-100 member-dropdown-item",as:"div",iconAlign:"start",className:"member-dropdown-profile-status-item flex w-full flex-col gap-2 !p-2",children:(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("div",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" member-dropdown-profile-status flex w-full items-center gap-2",children:[(0,a.jsx)(L.s,{size:"sm",className:"member-dropdown-profile-status-icon",children:(0,a.jsx)(M.Z,{})}),(0,a.jsx)("span",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" member-dropdown-profile-status-text",children:o(q?"common:your_profile_is_completed":"common:complete_your_profile")}),(0,a.jsx)(L.s,{size:"xs",className:"member-dropdown-profile-status-arrow ms-auto",children:(0,a.jsx)(k.Z,{className:"rtl:rotate-180"})})]}),(0,a.jsx)(L.P.Bar,{value:C,color:C>=100?"success":"warning"})]})}),(0,a.jsx)(L.E.Item,{wrapperClassName:"relative member-dropdown-item",as:"div",iconAlign:"start",className:"member-dropdown-library-item !justify-start gap-2",icon:(0,a.jsx)(L.s,{size:"sm",className:"member-dropdown-library-icon",children:(0,a.jsx)(R.Z,{})}),children:(0,a.jsxs)(S(),{href:"/library",className:"member-dropdown-library-link w-full",children:[(0,a.jsx)("span",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" absolute inset-0"}),o("common:to_library")]})}),(0,a.jsx)(L.E.Divider,{}),(0,a.jsx)(L.E.Item,{wrapperClassName:"relative member-dropdown-item",iconAlign:"start",className:"member-dropdown-wallet-item !justify-start gap-2",icon:(0,a.jsx)(L.s,{size:"sm",className:"member-dropdown-wallet-icon",children:(0,a.jsx)(B.Z,{})}),children:(0,a.jsxs)(S(),{href:(null==_?void 0:_.is_affiliate_open)?"/account/affiliates":"/account/orders",className:"member-dropdown-wallet-link w-full",children:[(0,a.jsx)("span",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" absolute inset-0"}),o("common:wallet")]})}),(0,a.jsx)(L.E.Divider,{}),(0,a.jsx)(L.E.Item,{wrapperClassName:"relative member-dropdown-item",iconAlign:"start",className:"member-dropdown-account-item !justify-start gap-2",icon:(0,a.jsx)(L.s,{size:"sm",className:"member-dropdown-account-icon",children:(0,a.jsx)(E.Z,{})}),children:(0,a.jsxs)(S(),{href:"/account",className:"member-dropdown=account-link w-full",children:[(0,a.jsx)("span",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" absolute inset-0"}),o("common:profile")]})}),(0,a.jsx)(L.E.Divider,{}),(0,a.jsx)(L.E.Item,{wrapperClassName:"relative member-dropdown-item",iconAlign:"start",className:"member-dropdown-academy-item !justify-start gap-2",icon:(0,a.jsx)(L.s,{size:"sm",className:"member-dropdown-academy-icon",children:(0,a.jsx)(A.Z,{})}),children:(0,a.jsx)(r.Fragment,{children:(0,a.jsxs)(S(),{href:"/",className:"member-dropdown-academy-link flex w-full items-center justify-between",children:[(0,a.jsx)("span",{className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" absolute inset-0"}),(0,a.jsx)(L.u.Body,{as:"span",className:"member-dropdown-academy-text",children:o("common:browse_academy")}),(0,a.jsx)(L.s,{size:"sm",className:"member-dropdown-academy-arrow",children:(0,a.jsx)(I.Z,{})})]})})}),(0,a.jsx)(L.E.Divider,{}),(0,a.jsx)(L.E.Item,{icon:(0,a.jsx)(L.s,{size:"sm",color:"danger",className:"member-dropdown-logout-icon",children:(0,a.jsx)(P.Z,{})}),onClick:()=>g(),wrapperClassName:"member-dropdown-item",className:"member-dropdown-logout-item",children:(0,a.jsx)(r.Fragment,{children:(0,a.jsx)(L.u.Body,{as:"span",className:"member-dropdown-logout-text text-danger",children:o("common:logout")})})})]})]})}):(0,a.jsx)(L.B,{isFetching:"loading"===z,variant:"solid",color:"primary",size:"sm",className:"login-button hidden md:!flex",as:S(),"data-testid":"login-button",href:"/login",children:o((null==F?void 0:null===(t=F.meta)||void 0===t?void 0:t.disable_members_registration)?"common:login":"common:login_register")}),(0,a.jsx)(Menus_AppMenuMobile,{location:"header"})]}),(0,a.jsx)("nav",{ref:n,id:"navbar-default",className:X().dynamic([["372fc6bf3ab7b53c",[m,x]]])+" hidden w-auto lg:!flex",children:(0,a.jsx)(i.AppMenu,{className:"flex flex-row flex-wrap items-center gap-x-2 gap-y-3.5  rounded-lg bg-white",location:"header"})})]})]})},en=s(47041);function LangSwitcher(e){let{btnClassNames:t=""}=e,{t:s,i18n:r}=(0,y.Y)(["common"]),{data:l}=(0,b.G)(),n=(0,v.TL)();return(null==l?void 0:l.multi_lang_enabled)?(0,a.jsxs)(L.T,{children:[(0,a.jsx)(L.T.Trigger,{children:(0,a.jsx)(L.B,{variant:"solid",color:"gray",size:"sm",dir:"".concat((null==r?void 0:r.language)=="ar"?"ltr":"rtl"),className:t,icon:(0,a.jsx)("div",{className:"pe-1",children:(0,a.jsx)(L.s,{size:"md",children:(0,a.jsx)("div",{style:{backgroundImage:"url(https://cdn.msaaq.com/assets/flags/".concat((null==r?void 0:r.language)=="ar"?"us":"sa",".svg)")},className:"my-[3px] h-5 w-7 rounded bg-cover bg-center bg-no-repeat"})})}),onClick:async()=>{await r.changeLanguage("en"===r.language?"ar":"en"),document.documentElement.setAttribute("dir","ar"===r.language?"rtl":"ltr"),document.documentElement.setAttribute("lang",r.language),(0,en.setCookie)("NEXT_LOCALE",r.language,{path:"/",sameSite:"strict",secure:!0}),(0,en.setCookie)("PREF_LOCALE",r.language,{path:"/",sameSite:"strict",secure:!0}),n((0,w._2)(r.language))},children:"en"===r.language?"عربي":"English"})}),(0,a.jsx)(L.T.Content,{children:s("common:click_to_change_language")})]}):null}layouts_Layout.Container=e=>{let{children:t,layout:s="default",className:r,style:n}=e;return(0,a.jsx)("div",{className:(0,l.cn)("center"===s&&"mx-auto w-full px-4 lg:!w-3/5 lg:!px-0","fluid"===s&&"!px-4 md:!px-8","default"===s&&"!container !mx-auto !px-4 md:!px-0",r),style:n,children:t})}},43854:function(e,t,s){s.d(t,{P:function(){return y}});var a=s(85893),r=s(67294),l=s(23157),n=s(79648),o=s(66244),i=s(92332),c=s(39301),d=s(86926),u=s.n(d),m=s(49341),p=s.n(m);let{theme:x}=u()(p()),h={container:(e,t)=>({...e,width:"100%"}),control:(e,t)=>{var s;return{...e,minHeight:48,borderRadius:(null===(s=t.selectProps)||void 0===s?void 0:s.rounded)?x.borderRadius.full:x.borderRadius.md,borderColor:t.isDisabled?"hsl(var(--abjad-gray))":t.isFocused?"transparent":"hsl(var(--abjad-gray))",boxShadow:t.isFocused?"0 0 0 2px hsl(var(--abjad-primary-300)) , 0 0 #0000":"none","&:hover":{borderColor:t.isFocused?"":"hsl(var(--abjad-gray-600))"},"&:focus":{borderColor:"0 0 0 2px hsl(var(--abjad-primary-300)) , 0 0 #0000"}}},placeholder:e=>({...e,fontSize:14,color:"#C7C7C7",fontWeight:400}),valueContainer:(e,t)=>({...e,paddingInlineStart:".75rem"}),menu:(e,t)=>({...e,zIndex:"9999999",borderRadius:x.borderRadius.md,boxShadow:"0px 4px 6px rgba(0, 0, 0, 0.1)",border:"1px solid ".concat(x.colors.gray[300]),borderColor:t.isDisabled?x.colors.gray[600]:t.isFocused?"var(--bs-primary)":x.colors.gray.DEFAULT}),menuList:(e,t)=>({...e,padding:8,display:"flex",flexDirection:"column",gap:4}),option:(e,t)=>({...e,fontSize:14,borderRadius:x.borderRadius.md,color:t.isSelected?"hsl(var(--abjad-primary))":"hsl(var(--abjad-gray-950))",backgroundColor:t.isSelected?"hsl(var(--abjad-primary)/0.1)":"transparent","&:active":{backgroundColor:t.isSelected?"hsl(var(--abjad-primary)/0.1)":"transparent"},"&:hover":{color:"hsl(var(--abjad-primary))",backgroundColor:"hsl(var(--abjad-primary)/0.1)"}}),multiValue:(e,t)=>({...e,borderRadius:"0.25rem",overflow:"hidden",backgroundColor:x.colors.gray[200],"&:first-of-type":{marginInlineStart:0}}),multiValueLabel:(e,t)=>({...e,paddingInlineStart:8,backgroundColor:x.colors.gray[200]}),multiValueRemove:(e,t)=>({...e,borderRadius:0,backgroundColor:x.colors.gray[200],"&:hover":{backgroundColor:"red",color:"white"}}),indicatorSeparator:()=>({display:"none"}),dropdownIndicator:e=>({...e,cursor:"pointer",paddingInlineEnd:".75rem"}),clearIndicator:(e,t)=>({...e,cursor:"pointer",paddingInlineEnd:"var(--ms-form-control-padding-x)"}),loadingIndicator:(e,t)=>({...e,cursor:"progress",paddingInlineEnd:t.hasValue?"var(--ms-form-control-padding-x)":""})};h.multiValueLabel,h.multiValueLabel;var C=s(57349),f=s(96445),g=s(74820);let j=(0,r.forwardRef)((e,t)=>{let{isCreatable:s,options:r,...n}=e,d=s?n.loadOptions?i.Z:c.Z:n.loadOptions?o.Z:l.ZP;return(0,a.jsx)(d,{ref:t,options:r,defaultOptions:r||!0,...n})}),v=(0,r.forwardRef)((e,t)=>{let{name:s,value:l,isCreatable:o,isClearable:i=!1,className:c,styles:d=h,options:u,disabled:m=!1,hasDropdownIndicator:p=!0,loadOptions:x,...v}=e,y=null!=t?t:(0,r.createRef)(),[_,b]=(0,r.useState)(0);return(0,a.jsx)(j,{isCreatable:o,classNamePrefix:"select",name:s,value:l,isDisabled:m,menuPlacement:"auto",styles:d,isClearable:i,noOptionsMessage:()=>"لا يوجد نتائج",loadingMessage:()=>"جاري التحميل...",formatCreateLabel:e=>"إنشاء "+'"'.concat(e,'"'),components:{DropdownIndicator:e=>p?i&&e.hasValue?"":n.c.DropdownIndicator({...e,children:(0,a.jsx)(g.s,{size:"md",children:(0,a.jsx)(C.Z,{})})}):null,MultiValueRemove:e=>n.c.MultiValueRemove({...e,children:(0,a.jsx)(g.s,{children:(0,a.jsx)(f.Z,{}),size:"sm"})}),ClearIndicator:e=>n.c.ClearIndicator({...e,children:(0,a.jsx)(g.s,{children:(0,a.jsx)(f.Z,{})})})},cacheOptions:!0,loadOptions:x?(e,t)=>{_&&clearTimeout(_),b(setTimeout(()=>{x&&x(e,t)},400))}:void 0,options:u,ref:y,instanceId:(0,r.useId)(),...v})});var y=v},75758:function(e,t,s){s.d(t,{N5:function(){return customProfileFieldsSchema},tn:function(){return resetCustomProfileFields}});var a=s(85893);s(67294);var r=s(87536),l=s(16310),n=s(43854),o=s(28854),i=s(97192),c=s(74820),d=s(7395);let customProfileFieldsSchema=e=>l.Ry().shape({meta:l.Ry().when((t,s)=>{let[]=t;return e?s.shape({complete_profile:l.Ry().shape(e.complete_profile_fields.map(e=>e.required?"select"===e.type?{[e.name]:l.Ry().shape({value:l.Z_().required(),label:l.Z_().required()}).required()}:{[e.name]:l.nK().required()}:{[e.name]:l.nK().notRequired()}).reduce((e,t)=>({...e,...t}),{}))}):s.nullable().notRequired()})}),resetCustomProfileFields=(e,t)=>{var s,a,r;return t&&e?{meta:{complete_profile:null===(s=Object.keys(null!==(r=null==t?void 0:null===(a=t.meta)||void 0===a?void 0:a.complete_profile)&&void 0!==r?r:{}))||void 0===s?void 0:s.map(s=>{var a,r,l,n,o,i;let c=e.complete_profile_fields.find(e=>e.name===s);if(!c)return{};if("select"===c.type){let e=null==c?void 0:null===(r=c.options)||void 0===r?void 0:r.find(e=>{var a;return e.value===(null===(a=t.meta)||void 0===a?void 0:a.complete_profile[s])});return e?{[c.name]:{value:e.value,label:e.label}}:{[c.name]:{value:null==c?void 0:null===(n=c.options)||void 0===n?void 0:null===(l=n[0])||void 0===l?void 0:l.value,label:null==c?void 0:null===(i=c.options)||void 0===i?void 0:null===(o=i[0])||void 0===o?void 0:o.label}}}return{[c.name]:null===(a=t.meta)||void 0===a?void 0:a.complete_profile[s]}}).reduce((e,t)=>({...e,...t}),{})}}:{}};t.ZP=e=>{let{control:t,errors:s,className:l}=e,{data:u}=(0,i.G)();return u?(0,a.jsx)("div",{className:(0,d.cn)("space-y-6",l),children:u.complete_profile_fields.map((e,l)=>{var i,d,u;let m="metaField-".concat(e.type,"-").concat(l),p="meta.complete_profile.".concat(e.name),x=null===(u=s.meta)||void 0===u?void 0:null===(d=u.complete_profile)||void 0===d?void 0:null===(i=d[e.name])||void 0===i?void 0:i.message;return"select"===e.type?(0,a.jsx)(c.W.Group,{className:"mb-0 space-y-2",label:e.label,required:e.required,errors:x,children:(0,a.jsx)(r.Qr,{control:t,name:p,render:t=>{let{field:s}=t;return(0,a.jsx)(n.P,{placeholder:e.placeholder,options:e.options,...s})}})},m):"phone"===e.type?(0,a.jsx)(r.Qr,{name:p,control:t,render:t=>{let{field:s}=t;return(0,a.jsx)(o.Z,{className:"mb-0 h-12 grow",label:e.label,isRequired:e.required,placeholder:e.placeholder,error:x,...s})}},m):"text"===e.type||"email"===e.type?(0,a.jsx)(r.Qr,{name:p,control:t,render:t=>{let{field:s}=t;return(0,a.jsx)(c.W.Input,{className:"mb-0",label:e.label,placeholder:e.placeholder,isRequired:e.required,error:x,...s})}},m):"number"===e.type?(0,a.jsx)(r.Qr,{name:p,control:t,render:t=>{let{field:s}=t;return(0,a.jsx)(c.W.Input,{type:"number",className:"mb-0",label:e.label,placeholder:e.placeholder,isRequired:e.required,error:x,...s})}},m):null})}):null}},86873:function(e,t,s){s.d(t,{w:function(){return PaymentLogos}});var a=s(85893);s(67294);var r=s(25675),l=s.n(r),n=s(97192),o=s(66159),i=s(74820),c=s(7395);let d="https://cdn.msaaq.com/assets/images/payments",u={MASTER:"".concat(d,"/master.svg"),VISA:"".concat(d,"/visa.svg"),MADA:"".concat(d,"/mada.svg"),"STC Pay":"".concat(d,"/stcpay.svg"),KNET:"".concat(d,"/knet.svg"),"Apple Pay":"".concat(d,"/applepay.svg"),"Google Pay":"".concat(d,"/googlepay.svg"),Tamara:"".concat(d,"/tamara-bordered.svg"),PayPal:"".concat(d,"/paypal.svg"),bankTransfer:"bankTransfer"},m={tamara:["Tamara"],tap:["MADA","Apple Pay","VISA","MASTER"],paylink:["MADA","Apple Pay","VISA","MASTER"],myfatoorah:["MADA","KNET","STC Pay","Apple Pay","Google Pay","VISA","MASTER"],paddle:["Apple Pay","VISA","MASTER","PayPal"],stripe:["Apple Pay","VISA","MASTER"],paypal:["PayPal"],msaaqpay:["MADA","VISA","MASTER","Apple Pay"],bankTransfer:["bankTransfer"]},Logo=e=>{let{logo:t,bordered:s}=e;return(0,a.jsx)("div",{className:(0,c.cn)("flex h-6 w-9 items-center justify-center rounded",s&&"border border-gray-300"),children:"bankTransfer"!==t?(0,a.jsx)(l(),{src:u[t],alt:t,width:30,height:10,style:{maxWidth:"30px",height:"auto"}}):(0,a.jsx)(i.s,{color:"gray",children:(0,a.jsx)(o.Z,{})})})},PaymentLogos=e=>{let{bordered:t,methods:s,className:r}=e,{data:l}=(0,n.G)();return(null==s?void 0:s.length)?(0,a.jsx)("div",{className:(0,c.cn)("flex flex-wrap items-center gap-1 md:!gap-3",r),children:s.map(e=>(0,a.jsx)(Logo,{logo:e,bordered:t},e))}):(0,a.jsx)("div",{className:(0,c.cn)("flex flex-wrap items-center gap-1 md:!gap-3",r),children:l&&(()=>{let e=new Set;return l.apps.flatMap(s=>m[s.slug]?m[s.slug].flatMap(s=>e.has(s)?[]:(e.add(s),(0,a.jsx)(Logo,{logo:s,bordered:t},s))):[])})()})}},28854:function(e,t,s){var a=s(85893),r=s(67294),l=s(73935),n=s(67555),o=s.n(n);s(99566);var i=s(77032),c=s(62683),d=s(86702),u=s(74820);let m=(0,r.forwardRef)((e,t)=>{let{onChange:s,value:n,label:m,error:p,name:x,onlyCountries:h,autoDetectedCountry:C=!0,...f}=e,{t:g}=(0,c.Y)(["validation","common"]),j=(0,i.ns)(),[v,y]=(0,r.useState)(null),[_,b]=(0,r.useState)(""),[w,N]=(0,r.useState)(""),[k,M]=(0,r.useState)(!1),L=Object.fromEntries(d.nh.map(e=>[e.iso_3166_1_alpha2.toLocaleLowerCase(),e.ar_name]));return(0,r.useEffect)(()=>{b(p)},[p]),(0,r.useEffect)(()=>("string"==typeof n?(0,l.flushSync)(()=>{y(n)}):"object"==typeof n&&(0,l.flushSync)(()=>{y("".concat(null==n?void 0:n.phone_code).concat(null==n?void 0:n.phone))}),M(!0),()=>{M(!1)}),[n]),(0,r.useEffect)(()=>{j&&C&&(h&&!h.includes(j)?N(h[0]):N(j.toLowerCase()))},[N,j]),k?(0,a.jsxs)("div",{className:"flex flex-col space-y-2 overflow-visible ".concat(!f.isReadOnly&&f.isDisabled?"opacity-30":""),children:[m&&(0,a.jsx)(u.W.Label,{required:f.isRequired,children:m}),(0,a.jsx)(o(),{disabled:f.isDisabled,searchPlaceholder:g("common:search_country_name"),country:w,onlyCountries:h,localization:L,disableSearchIcon:!0,jumpCursorToEnd:!0,containerStyle:{direction:"ltr"},searchStyle:{margin:0,border:0,borderRadius:"0"},buttonClass:"!bg-transparent !border-0 rounded-md",dropdownClass:"!shadow-md  border border-gray-400 !rounded-md !px-3",inputClass:(0,d.AK)("!h-full outline-0 !bg-transparent !w-full focus:ring-2 border",_?"focus:ring-danger-300 !bg-danger-50 !border-danger hover:border-danger-600":"focus:ring-primary-300 border-gray hover:border-gray-600"),inputProps:{ref:t,name:x},enableSearch:!0,countryCodeEditable:!0,onKeyDown:e=>{e.key>="؀"&&e.key<="ۿ"||e.key>="ﹰ"&&e.key<="\uFEFF"?b(g("validation:filed_must_be_valid_en_number")):b("")},onChange:(e,t)=>{var a,r;y(e);let l=e.slice(null===(a=t.dialCode)||void 0===a?void 0:a.length);if(!l){null==s||s(null);return}null==s||s({phone:e.slice(null===(r=t.dialCode)||void 0===r?void 0:r.length),phone_code:t.dialCode})},value:v,...f}),_&&(0,a.jsx)(u.W.Errors,{errors:_})]}):null});t.Z=m},9332:function(e,t,s){var a=s(85893),r=s(41664),l=s.n(r),n=s(11163),o=s(21789),i=s(62683),c=s(20445),d=s(66610),u=s(74820),m=s(7395),p=s(99971);t.Z=e=>{let{chapter:t,displayAccessIcon:s=!1,reverseContrast:r=!1,showActions:x=!1,defaultOpen:h,className:C,courseRef:f}=e,{t:g}=(0,i.Y)(["common","chapter_contents"]),{query:j}=(0,n.useRouter)(),{chapterId:v}=j,y=(0,o.Z)(t);return(0,a.jsx)(u.D,{defaultOpen:null!=h?h:t.id.toString()===j.chapterId,className:(0,m.cn)("rounded-lg ",r?"bg-white":"bg-gray-200",C),children:e=>{let{isOpen:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.D.Button,{className:(0,m.cn)(t.contents.length>0&&"hover:bg-gray-400transition-all transition-all hover:bg-gray-400"),children:(0,a.jsxs)("div",{className:"flex flex-grow flex-row items-center justify-between",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)(u.u.Text,{as:"h3",size:"sm",className:"line-clamp-1",children:t.title}),(0,a.jsx)(u.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:g("chapter_contents:WithCount",{count:t.contents.length})})]})}),(0,a.jsxs)("div",{className:"flex items-center",children:[y&&(0,a.jsxs)(u.T,{placement:"bottom-end",children:[(0,a.jsx)(u.T.Trigger,{children:(0,a.jsx)(u.s,{size:"sm",className:(0,m.cn)(r?"px-3":"px-1"),children:(0,a.jsx)(c.Z,{})})}),(0,a.jsx)(u.T.Content,{children:y})]}),(0,a.jsx)(u.s,{size:"md",variant:r?"soft":"transparent",color:"gray",children:(0,a.jsx)(d.Z,{className:(0,m.cn)("transition-all duration-300 ease-in-out",n?"":"rotate-180 transform")})})]})]})}),(0,a.jsx)(u.D.Content,{className:"gap-3 p-4",children:t.contents.map(e=>e.can_access?(0,a.jsx)(l(),{href:"/courses/".concat(f,"/chapters/").concat(t.id,"/contents/").concat(e.id),children:(0,a.jsx)(p.Z,{reverseContrast:r,displayAccessIcon:s,content:e,prepend:x&&!j.contentId&&!v&&"video"==e.type&&e.can_access&&(0,a.jsx)(u.B,{color:"gray",children:g("common:display_video")})})},e.id):(0,a.jsx)(p.Z,{reverseContrast:r,displayAccessIcon:s,content:e,prepend:x&&!j.contentId&&!v&&"video"==e.type&&e.can_access&&(0,a.jsx)(u.B,{color:"gray",children:g("common:display_video")})},e.id))})]})}})}},99971:function(e,t,s){var a=s(85893),r=s(67294),l=s(11163),n=s(47810),o=s(62683),i=s(86702),c=s(79111),d=s(98523),u=s(89814),m=s(89871),p=s(77473),x=s(31934),h=s(16799),C=s(10798),f=s(47950),g=s(56186),j=s(75012),v=s(74820),y=s(7395);let MeetingStatus=e=>{let{content:t,className:s}=e,{t:r}=(0,o.Y)(["meeting"]);return t.contentable?t.contentable.is_upcoming?(0,a.jsx)(v.x,{className:s,rounded:"full",variant:"soft",color:"primary",size:"sm",children:r("meeting:is_upcoming")}):t.contentable.is_live?(0,a.jsx)(v.x,{className:s,rounded:"full",variant:"soft",color:"secondary",size:"sm",children:r("meeting:is_live")}):(0,a.jsx)(v.x,{rounded:"full",variant:"soft",color:"success",size:"sm",className:s,children:r("meeting:is_ended")}):null},MeetingTime=e=>{let{content:t}=e,s=(0,r.useMemo)(()=>(0,n.Z)(t.contentable.start_at).tz(t.contentable.timezone),[t]);return(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(v.u.Body,{dir:"ltr",as:"span",size:"sm",className:"font-normal text-gray-700",children:s.format("D/M/YYYY")}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,a.jsx)("path",{d:"M1.77616 3.44006C0.816164 3.44006 0.368164 2.89606 0.368164 2.16006V1.84006C0.368164 1.10406 0.816164 0.560059 1.77616 0.560059C2.73616 0.560059 3.18416 1.10406 3.18416 1.84006V2.16006C3.18416 2.89606 2.73616 3.44006 1.77616 3.44006Z",fill:"#171717"})}),(0,a.jsx)(v.u.Body,{dir:"ltr",as:"span",size:"sm",className:"font-normal text-gray-700",children:s.format("h:mm A")}),"-",(0,a.jsx)(v.u.Body,{dir:"ltr",as:"span",size:"sm",className:"font-normal text-gray-700",children:s.add(t.contentable.duration,"seconds").format("h:mm A")})]})};t.Z=e=>{var t,s,n;let{content:_,displayAccessIcon:b,reverseContrast:w,prepend:N,joinUrl:k,className:M,titleClassName:L,showIcon:z=!0}=e,{t:Z}=(0,o.Y)(["meeting"]),S=(0,r.useMemo)(()=>({video:(0,a.jsx)(c.Z,{}),pdf:(0,a.jsx)(d.Z,{}),audio:(0,a.jsx)(u.Z,{}),meeting:(0,a.jsx)(m.Z,{}),text:(0,a.jsx)(p.Z,{}),quiz:(0,a.jsx)(x.Z,{}),survey:(0,a.jsx)(h.Z,{}),assignment:(0,a.jsx)(C.Z,{})}),[]),{query:H}=(0,l.useRouter)(),B=_.id.toString()==H.contentId;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(v.J,{className:(0,y.cn)("rounded-xl transition-all",B?"border border-primary":"border border-transparent",w?"bg-gray-100 hover:bg-gray-400 ":"bg-white hover:bg-gray-400"),children:(0,a.jsxs)(v.J.Body,{className:(0,y.cn)("flex items-center justify-between",M),children:[(0,a.jsxs)("div",{className:"flex w-full items-center gap-4",children:[z&&(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(v.s,{className:(0,y.cn)(B?"border border-dashed border-primary":"border border-transparent"),color:"gray",rounded:"full",size:"md",variant:"soft",children:S[_.type]}),_.completed&&(0,a.jsx)(v.s,{size:"xs",color:"success",className:"absolute bottom-0 left-0 rounded-full bg-white",children:(0,a.jsx)(j.Z,{})})]}),b&&(0,a.jsx)(v.s,{size:"sm",color:"gray",children:_.can_access?(0,a.jsx)(f.Z,{}):(0,a.jsx)(g.Z,{})}),(0,a.jsxs)("div",{className:"flex w-full flex-col",children:[(0,a.jsxs)("div",{className:(0,y.cn)("flex w-full flex-row justify-between",L),children:["meeting"!==_.type&&(0,a.jsx)(v.u.Text,{as:"h4",size:"sm",className:"font-semibold",children:_.title}),"meeting"===_.type&&_.contentable&&(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"mb-1 flex w-full items-center gap-2",children:[(0,a.jsx)(MeetingStatus,{content:_}),_.contentable.is_recurring&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,a.jsx)("path",{d:"M1.77616 3.44006C0.816164 3.44006 0.368164 2.89606 0.368164 2.16006V1.84006C0.368164 1.10406 0.816164 0.560059 1.77616 0.560059C2.73616 0.560059 3.18416 1.10406 3.18416 1.84006V2.16006C3.18416 2.89606 2.73616 3.44006 1.77616 3.44006Z",fill:"#171717"})}),(0,a.jsx)(v.u.Body,{dir:"ltr",as:"span",size:"sm",className:"font-normal text-gray-700",children:Z("meeting:occurrence",{current:null===(t=_.contentable.occurrence)||void 0===t?void 0:t.current,total:null===(s=_.contentable.occurrence)||void 0===s?void 0:s.total})})]}),k]}),(0,a.jsx)(v.u.Text,{as:"h4",size:"sm",className:"font-semibold",children:_.title})]})]}),"meeting"===_.type&&_.contentable&&(0,a.jsx)(MeetingTime,{content:_}),"video"===_.type&&(null===(n=_.contentable)||void 0===n?void 0:n.duration)&&(0,a.jsx)(v.u.Body,{as:"span",size:"sm",className:"font-normal text-gray-700",children:(0,i.BE)(_.contentable.duration).formatted}),_.description&&(0,a.jsx)(v.u.Body,{as:"span",size:"sm",className:"font-normal text-gray-700",children:(0,i.ju)(_.description)})]})]}),N]})})})}},73252:function(e,t,s){var a=s(85893),r=s(21789),l=s(62683),n=s(20445),o=s(74820),i=s(7395);t.Z=e=>{let{chapter:t,reverseContrast:s=!1,className:c}=e,{t:d}=(0,l.Y)(["chapter_contents"]),u=(0,r.Z)(t);return(0,a.jsx)(o.J,{className:(0,i.cn)("rounded-lg border-0",s?"bg-white":"bg-gray-200",c),children:(0,a.jsx)(o.J.Body,{children:(0,a.jsx)("div",{className:"flex flex-grow flex-row items-center justify-between",children:(0,a.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)(o.u.Text,{as:"h3",size:"sm",className:"line-clamp-1",children:t.title}),(0,a.jsx)(o.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:d("chapter_contents:WithCount",{count:0})})]}),u&&(0,a.jsxs)(o.T,{placement:"bottom-end",children:[(0,a.jsx)(o.T.Trigger,{children:(0,a.jsx)(o.s,{size:"sm",className:(0,i.cn)(s?"px-3":"px-1"),children:(0,a.jsx)(n.Z,{})})}),(0,a.jsx)(o.T.Content,{children:u})]})]})})})})}},18087:function(e,t,s){s.d(t,{hJ:function(){return AcademyLogo},yq:function(){return contents_AccessSection},UQ:function(){return Accordion},zZ:function(){return contents_AssignmentContent},D5:function(){return contents_AudioContent},Sk:function(){return products_BundleCard},Lr:function(){return shared_CertificateLibraryCard},mS:function(){return ec.Z},p8:function(){return CommentsCard},_D:function(){return comments_CommentInput},HI:function(){return comments_CommentItem},HW:function(){return comments_Comments},sG:function(){return modals_CompletedCourseModal},e4:function(){return attachments_ContentAttachments},jB:function(){return course_ContentFooter},yW:function(){return course_ContentHeader},SM:function(){return ed.Z},Dv:function(){return course_ContentLayout},Pg:function(){return course_CourseCard},yg:function(){return CourseHeader},k0:function(){return course_CourseLibraryCard},jv:function(){return sidebar_CourseSidebar},dy:function(){return Drawer_Drawer},UR:function(){return contents_DripContentSection},ox:function(){return EmptyStateImage},jU:function(){return attachments_FileItem},St:function(){return MeetingContent},io:function(){return contents_PDFContent},wP:function(){return PaymentMethodLogo},gb:function(){return PrevNextContentButtons},tA:function(){return Price},Il:function(){return eK.Z},jF:function(){return ProductPrice},pL:function(){return ProductProfileCard},dX:function(){return ProductSectionCard},bg:function(){return Quiz_QuizContent},C2:function(){return Quiz_QuizForm},CZ:function(){return Quiz_QuizInformation},qH:function(){return Quiz_QuizQuestion},T$:function(){return Quiz_QuizQuestionChoice},MI:function(){return Quiz_QuizResult},nw:function(){return modals_RatingCourseModal},sx:function(){return modals_ShareCourseModal},MA:function(){return Survey_SurveyContent},Pb:function(){return Survey_SurveyForm},D:function(){return Survey_SurveyInformation},T6:function(){return Survey_SurveyQuestion},HK:function(){return Survey_SurveyQuestionChoice},bK:function(){return Survey_SurveyResult},D7:function(){return contents_TextContent},pl:function(){return Thumbnail},qp:function(){return shared_Time},xO:function(){return Quiz_TimeOutSection},zP:function(){return contents_VideoContent}});var a=s(85893),r=s(67294),l=s(55066),n=s(12435),o=s(77495),i=s(74820);let PaymentMethodLogo=e=>{let{method:t,last4:s}=e,[c,d]=(0,r.useState)([]);return(0,r.useEffect)(()=>{if(!t)return;let e=t.toLowerCase().replaceAll(" / ","_").replaceAll("/","_").replace(/[^a-z0-9_\s]/g,"").replace("apple pay","applepay").replaceAll(" ","_").toLowerCase();switch(e){case"applepay":case"apple_pay":return d(["applepay"]);case"googlepay":return d(["googlepay"]);case"knet":return d(["knet"]);case"applepay_mada":return d(["applepay","mada"]);case"applepay_mastercard":return d(["applepay","master"]);case"applepay_visa":return d(["applepay","visa"]);case"card_mada":case"mada":return d(["mada"]);case"card_visa":case"visa":return d(["visa"]);case"paypal":return d(["paypal"]);case"card_mastercard":case"card_master":case"mastercard":case"master":return d(["master"]);case"visa_master":return d(["visa","master"]);case"pay_by_instalments":case"tamara":return d(["tamara"]);case"wallet":return d([(0,a.jsx)(l.Z,{},"wallet")]);case"bank_transfer":return d([(0,a.jsx)(n.Z,{},"bank_transfer")]);case"card":case"credit_debit_card":return d([(0,a.jsx)(o.Z,{},"card")])}},[t]),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"flex items-center",children:c.length?(0,a.jsx)("span",{className:"flex h-[30px] items-center divide-x divide-gray rounded p-1",title:t,dir:"ltr",children:c.map((e,t)=>(0,a.jsx)("span",{className:"px-1",children:"string"==typeof e?(0,a.jsx)("img",{src:"https://cdn.msaaq.com/assets/images/payments/".concat(e,".svg"),alt:e,width:"30"}):(0,a.jsx)(i.s,{children:e})},t))}):"—"}),s&&(0,a.jsx)("span",{className:"text-sm text-gray-900",children:s})]})};var c=s(47810),shared_Time=e=>{let{date:t,format:s,title:l,titleFormat:n="DD/MM/YYYY HH:mm [GMT]Z",interval:o=6e4,withoutSuffix:i=!1,className:d,...u}=e,[m,p]=(0,r.useState)(c.Z.tz(t));return(0,r.useEffect)(()=>{let e=setInterval(()=>p(c.Z.tz(t)),o);return p(c.Z.tz(t)),()=>clearInterval(e)},[t]),(0,a.jsx)("time",{dir:"auto",title:null!=l?l:m.fromNow(null!=i&&i),className:d,children:m.format(null!=s?s:"D MMM YYYY. h:mmA"),...u})},d=s(87536),u=s(6316),m=s(45085),p=s(82099),x=s(62683),h=s(25675),C=s.n(h),f=s(11163),g=s(77032),j=s(60341),modals_MediaContentCompletedModal=e=>{let{open:t,onDismiss:s,...l}=e,n=(0,f.useRouter)(),{t:o}=(0,x.Y)(["course_player"]),{query:c}=n,[d,u]=(0,r.useState)(!1),{content:m}=(0,g.CG)(e=>e.courses),{startCountdown:p,stopCountdown:h,currentTime:v,resetCountdown:y}=(0,j.Z)(3,()=>{},async()=>{u(!1),m.next.nextable&&await n.push("/courses/".concat(c.slug,"/chapters/").concat(m.next.chapter_id,"/contents/").concat(m.next.content_id))});return(0,r.useEffect)(()=>{u(null!=t&&t)},[t]),(0,r.useEffect)(()=>{if(!d){h();return}y(),p()},[d]),(0,a.jsx)(i.M,{open:d,onDismiss:s,...l,size:"sm",rounded:"2xl",children:(0,a.jsxs)(i.M.Body,{className:"flex flex-col items-center justify-center gap-5",children:[(0,a.jsx)(C(),{src:"/images/check-success.gif",alt:"check-success",width:250,height:250}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3",children:[(0,a.jsx)(i.u.Body,{as:"h3",size:"lg",children:o("course_player:content_completed_alert_title")}),(0,a.jsx)(i.u.Body,{as:"span",className:"text-center font-normal text-gray-700",children:(0,a.jsx)(x.C,{i18nKey:"course_player:content_completed_alert_description",components:{strong:(0,a.jsx)("strong",{})},values:{seconds:v}})})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,a.jsx)(i.B,{className:"w-full",children:o("course_player:content_completed_alert_confirm")}),(0,a.jsx)(i.B,{as:"button",color:"gray",className:"w-full",onClick:s,children:o("course_player:content_completed_alert_cancel")})]})]})})},course_ContentFooter=e=>{let{contentCompleted:t,content:s}=e,{t:l}=(0,x.Y)(["course_player"]),[n]=(0,p.Z)(),[o,c]=(0,r.useState)(!1),{control:h,handleSubmit:C,formState:{isSubmitting:f},reset:g}=(0,d.cI)();(0,r.useEffect)(()=>{g({completed:t})},[t]);let{authenticated:j}=(0,r.useContext)(m.Vo),v=C(async e=>{await n(e.completed),g({completed:e.completed})}),y=(0,r.useMemo)(()=>{var e;return(null==s?void 0:s.type)!=="meeting"||null!==(e=null==s?void 0:s.contentable)&&void 0!==e&&!!e.is_ended},[s]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"md:flex-center mb-10 mt-8 flex flex-col justify-between py-2 md:!flex-row md:items-center",children:[j&&(null==s?void 0:s.type)!=="video"&&(null==s?void 0:s.type)!=="audio"&&y&&(0,a.jsx)(d.Qr,{render:e=>{let{field:{value:t,onChange:s,...r}}=e;return(0,a.jsx)(i.W.Checkbox,{id:"completed",label:l("course_player:complete_content"),checked:t,value:t?"true":"false",disabled:f,onChange:async e=>{s(e),await v(e)},...r})},name:"completed",control:h}),(0,a.jsx)(u.PrevNextContentButtons,{}),(0,a.jsx)(modals_MediaContentCompletedModal,{open:o,onDismiss:()=>c(!1)})]})})},v=s(52423),y=s(86049),_=s(983),b=s(36731),course_ContentHeader=e=>{let{title:t}=e,{t:s}=(0,x.Y)(["course_player"]),{query:l}=(0,f.useRouter)(),{chapterId:n,contentId:o}=l,{toggleContentSideBar:c}=(0,g.CG)(e=>e.courses),d=(0,g.TL)(),[u,m]=(0,r.useState)(),{data:p}=(0,v.IE)({slug:l.slug});return(0,r.useEffect)(()=>{let e=null==p?void 0:p.chapters.find(e=>e.id.toString()===n);m(e)},[n,p,m]),(0,a.jsxs)("div",{className:"mb-4 mr-auto flex items-center justify-between",children:[o?(0,a.jsxs)("div",{className:"flex flex-col items-start justify-start gap-2",children:[(0,a.jsx)(i.u.Body,{size:"lg",className:"font-medium",children:s("course_player:content_title",{title:t})}),(0,a.jsx)(i.u.Text,{as:"span",size:"xs",className:"font-normal text-gray-700",children:s("course_player:content_subtitle",{subtitle:null==u?void 0:u.title})})]}):(0,a.jsx)(i.u.Body,{size:"lg",className:"font-medium",children:s("course_player:content_subtitle",{subtitle:null==u?void 0:u.title})}),(0,a.jsxs)(i.T,{placement:"bottom-end",children:[(0,a.jsx)(i.T.Trigger,{children:(0,a.jsx)(i.B,{as:"button",color:"gray",size:"sm",icon:(0,a.jsx)(i.s,{children:c?(0,a.jsx)(_.Z,{}):(0,a.jsx)(b.Z,{})}),onClick:()=>d((0,y.OR)(!c)),className:"ms-4 hidden lg:!block"})}),(0,a.jsx)(i.T.Content,{children:s(c?"course_player:exit_full_screen":"course_player:full_screen")})]})]})},w=s(41664),N=s.n(w),modals_CompletedCourseModal=()=>{let{query:e}=(0,f.useRouter)(),{t}=(0,x.Y)(["course_player"]),{data:s}=(0,v.IE)({slug:e.slug}),r=(0,g.TL)(),onDismissModal=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r((0,y.WE)(!1)),e&&r((0,y.UH)(!0))};return(0,a.jsx)(i.M,{open:!0,onDismiss:onDismissModal,size:"sm",rounded:"2xl",children:(0,a.jsxs)(i.M.Body,{className:"flex flex-col items-center justify-center gap-5",children:[(0,a.jsx)(C(),{src:"/images/check-success.gif",alt:"check-success",width:250,height:250}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3",children:[(0,a.jsx)(i.u.Body,{as:"h3",size:"lg",children:t("course_player:course_completed_alert_title")}),(0,a.jsx)(i.u.Body,{as:"span",children:t("course_player:course_completed_alert_description"),className:"text-center font-normal text-gray-700"})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,a.jsx)(i.B,{as:N(),href:"/library/certificates",color:"primary",className:"w-full",children:t("course_player:course_completed_alert_confirm")}),(null==s?void 0:s.settings.reviews_enabled)&&(0,a.jsx)(i.B,{as:"button",color:"gray",className:"w-full",onClick:()=>onDismissModal(!0),children:t("course_player:course_completed_alert_cancel")})]})]})})},k=s(47533),M=s(16310),L=s(89032),z=s(78943),modals_RatingCourseModal=e=>{let{product:t,title:s,callback:l}=e,{t:n}=(0,x.Y)(["common","reviews"]),o=(0,g.TL)(),{editingReview:c,openRatingModal:m}=(0,g.CG)(e=>e.courses),[p]=(0,L.F3)(),[h]=(0,L.we)(),C=M.Ry().shape({content:M.Z_().required(),rating:M.Rx().required()}),{handleSubmit:f,control:j,setError:v,reset:_,formState:{isDirty:b,isSubmitting:w,isValid:N}}=(0,d.cI)({defaultValues:{content:"",rating:0},resolver:(0,k.X)(C)});(0,r.useEffect)(()=>{c&&_({content:c.content,rating:c.rating})},[c]);let{displayErrors:Z,displaySuccess:S}=(0,g.ah)({setError:v}),onSubmit=async e=>{let s=await (c?h({id:c.id,rating:e.rating,content:e.content}):p({content:e.content,rating:e.rating,relation_id:t.id,relation_type:(0,z.rC)(t)}));Z(s)||(S(s),null==l||l(s.data.data),_({content:"",rating:0}),o((0,y.UH)(!1)),o((0,y.dm)(null)))};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.M,{open:m,onDismiss:()=>{o((0,y.UH)(!1)),o((0,y.dm)(null))},bordered:!0,children:[(0,a.jsx)(i.M.Header,{dismissible:!0,title:null!=s?s:n("reviews:review_course")}),(0,a.jsxs)(i.M.Body,{className:"grid gap-8",children:[(0,a.jsx)(d.Qr,{render:e=>{let{field:{value:t,onChange:s}}=e;return(0,a.jsx)(u.StarsRating,{value:t,onChange:s,className:"justify-center"})},name:"rating",control:j}),(0,a.jsx)(d.Qr,{render:e=>{let{field:t}=e;return(0,a.jsx)(i.W.Textarea,{id:"content",isRequired:!0,label:n(c?"reviews:review_content":"reviews:review_input_label"),placeholder:n("reviews:review_input_placeholder"),rows:5,...t})},name:"content",control:j})]}),(0,a.jsxs)(i.M.Footer,{className:"flex justify-between",children:[(0,a.jsx)(i.B,{as:"button",type:"submit",color:"primary",variant:"solid",onClick:f(onSubmit),disabled:!b||w||!N,children:n(c?"common:save_modifications":"reviews:add_review")}),(0,a.jsx)(i.B,{as:"button",color:"gray",variant:"solid",onClick:()=>{o((0,y.UH)(!1)),o((0,y.dm)(null))},children:n("common:cancel")})]})]})})},Z=s(50517),S=s(97192),H=s(10798),B=s(31934),modals_ShareCourseModal=e=>{let{openModal:t,setOpenModal:s}=e,{query:r}=(0,f.useRouter)(),{t:l}=(0,x.Y)(["course_player","share"]),[n,o]=(0,g.m9)(),{data:c}=(0,v.IE)({slug:r.slug}),{data:d}=(0,S.G)(),u="".concat(null==d?void 0:d.domain,"/courses/").concat(null==c?void 0:c.slug),m="".concat(null==d?void 0:d.domain,"/cart/checkout/express/course/").concat(null==c?void 0:c.id);return(0,a.jsxs)(i.M,{open:t,onDismiss:()=>{s(!t)},bordered:!0,children:[(0,a.jsx)(i.M.Header,{dismissible:!0,title:l("share:title")}),(0,a.jsxs)(i.M.Body,{children:[(0,a.jsx)(i.W.Input,{readOnly:!0,value:u,label:l("course_player:course_link"),dir:"ltr",append:(0,a.jsx)(i.B,{onClick:()=>n(u),variant:"link",className:"px-0",color:"gray",icon:o.includes(u)?(0,a.jsx)(i.s,{size:"sm",className:"text-success",children:(0,a.jsx)(B.Z,{})}):(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(H.Z,{})})}),className:"mb-0 mt-3"}),(0,a.jsx)(i.W.Input,{readOnly:!0,value:m,label:l("course_player:direct_checkout_url"),dir:"ltr",append:(0,a.jsx)(i.B,{onClick:()=>n(m),variant:"link",className:"px-0",color:"gray",icon:o.includes(m)?(0,a.jsx)(i.s,{size:"sm",className:"text-success",children:(0,a.jsx)(B.Z,{})}):(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(H.Z,{})})}),className:"mb-0 mt-3"}),(0,a.jsxs)("div",{className:"mt-4 space-y-4 rounded bg-gray-100 p-4",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"sm",children:l("share:share_on_social_media")}),(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)(i.B,{as:"a",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURI(u)),size:"md",className:"px-0 text-primary",target:"_blank",variant:"link",icon:(0,a.jsx)(Z.Z,{className:"h-5 w-5 text-primary",kind:"facebook"}),children:l("share:share_on_facebook")}),(0,a.jsx)(i.B,{as:"a",href:"https://twitter.com/intent/tweet?url=".concat(u),size:"md",className:"px-0 text-primary",target:"_blank",variant:"link",icon:(0,a.jsx)(Z.Z,{className:"h-5 w-5 text-primary",kind:"twitter"}),children:l("share:share_on_twitter")})]})]})]})]})},E=s(32433),A=s(52913),I=s(28771),P=s(53901),T=s(85755),R=s(52743),V=s(14394);function CourseHeader(){let{query:e}=(0,f.useRouter)(),{t,i18n:s}=(0,x.Y)(["course_player","common"]),l="rtl"===s.dir(),{downloading:n,downloadFile:o}=(0,g.O6)(),{data:c}=(0,v.IE)({slug:e.slug}),{percentageCompleted:d}=(0,g.CG)(e=>e.courses),m=(0,g.TL)(),[p,h]=(0,r.useState)(!1);return(0,E.Z)(["course-player-page"]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("nav",{className:"course-player-nav sticky top-0 z-10 max-h-[105px] w-full border-b border-b-gray-400 bg-white",children:(0,a.jsx)("div",{className:"mx-auto px-6 py-4 md:!px-8 md:!py-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(u.AcademyLogo,{className:"me-2 md:!me-10"}),c&&(0,a.jsxs)("div",{className:"hidden w-full items-center md:!flex",children:[(0,a.jsx)("div",{className:"relative ml-4 mr-12 hidden md:!flex",children:(0,a.jsx)(i.P.Ring,{color:"success",value:d,size:60})}),(0,a.jsx)(i.u.Text,{size:"sm",children:null==c?void 0:c.title,className:"font-bold text-success"})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(i.B,{as:N(),href:"/library",color:"gray",icon:(0,a.jsx)(i.s,{size:"md",children:l?(0,a.jsx)(R.Z,{}):(0,a.jsx)(A.Z,{})}),variant:"solid",size:"sm",children:t("common:my_library")}),(0,a.jsxs)(i.E,{children:[(0,a.jsx)(i.E.Trigger,{children:(0,a.jsx)(i.B,{color:"gray",variant:"outline",icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(V.Z,{})}),size:"sm",className:"ms-2"})}),(0,a.jsxs)(i.E.Menu,{children:[(0,a.jsx)(i.E.Item,{children:t("course_player:share_course"),icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(I.Z,{})}),onClick:()=>{h(!p)}}),(0,a.jsx)(i.E.Divider,{}),(null==c?void 0:c.is_reviewed)?(0,a.jsxs)(i.T,{children:[(0,a.jsx)(i.T.Trigger,{children:(0,a.jsx)(i.E.Item,{children:t("course_player:review_course"),icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(P.Z,{})}),disabled:!0})}),(0,a.jsx)(i.T.Content,{children:t("course_player:already_reviewed_course_tooltip")})]}):d<50?(0,a.jsxs)(i.T,{children:[(0,a.jsx)(i.T.Trigger,{children:(0,a.jsx)(i.E.Item,{children:t("course_player:review_course"),icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(P.Z,{})}),disabled:!0})}),(0,a.jsx)(i.T.Content,{children:t("course_player:review_course_tooltip")})]}):(null==c?void 0:c.settings.reviews_enabled)&&(0,a.jsx)(i.E.Item,{children:t("course_player:review_course"),icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(P.Z,{})}),onClick:()=>{m((0,y.UH)(!0))}}),(null==c?void 0:c.eligible_for_certificate)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.E.Divider,{}),d<100?(0,a.jsxs)(i.T,{children:[(0,a.jsx)(i.T.Trigger,{children:(0,a.jsx)(i.E.Item,{children:t("course_player:course_certificate"),icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(T.Z,{})}),disabled:!0})}),(0,a.jsx)(i.T.Content,{children:t("course_player:course_certificate_tooltip")})]}):(0,a.jsx)(i.E.Item,{onClick:async()=>{c&&await o("/courses/".concat(c.slug,"/certificate"),"".concat(c.title,"-certificate"))},children:t("course_player:course_certificate"),icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(T.Z,{})}),disabled:n})]})]})]})]})]})})}),(0,a.jsx)(u.ShareCourseModal,{openModal:p,setOpenModal:h}),(0,a.jsx)(u.RatingCourseModal,{product:c})]})}var q=s(68192),course_ContentLayout=e=>{let{children:t}=e,{query:s}=(0,f.useRouter)(),{courseIsCompleted:l,percentageCompleted:n}=(0,g.CG)(e=>e.courses),o=(0,g.TL)(),{data:c}=(0,v.IE)({slug:s.slug});return(0,r.useEffect)(()=>{o((0,y.DH)(c))},[c]),(0,r.useEffect)(()=>{l&&o((0,q.Yt)(["account"]))},[l]),(0,r.useEffect)(()=>{let e=null==c?void 0:c.chapters.flatMap(e=>{let{id:t}=e;return e.drip_enabled?[]:e.contents.map(e=>({...e,chapter_id:t}))}).filter(e=>void 0!==e);if(null==e?void 0:e.length){var t,a,r,l;let n=e.findIndex(e=>e.id.toString()===s.contentId),i=0===n,c=n===e.length-1,d=e[i?n:n-1],u=e[c?n:n+1],m=e[n];o((0,y.Us)({current:{chapter_id:null==m?void 0:m.chapter_id,content_id:null==m?void 0:m.id,type:null==m?void 0:m.type},prev:{chapter_id:null!==(t=null==d?void 0:d.chapter_id)&&void 0!==t?t:-1,content_id:null!==(a=null==d?void 0:d.id)&&void 0!==a?a:-1,is_first:i,prevable:null==d?void 0:d.can_access,type:null==m?void 0:m.type},next:{chapter_id:null!==(r=null==u?void 0:u.chapter_id)&&void 0!==r?r:-1,content_id:null!==(l=null==u?void 0:u.id)&&void 0!==l?l:-1,is_last:c,nextable:null==u?void 0:u.can_access,type:null==m?void 0:m.type}}))}},[c,s]),(0,a.jsxs)(u.Layout,{classNames:{layout:"mb-0"},hasHeader:!1,hasFooter:!1,children:[(0,a.jsx)(u.CourseHeader,{}),(0,a.jsxs)(u.Layout.Container,{layout:"fluid",children:[(0,a.jsxs)("div",{className:"mt-5 grid gap-3 md:!hidden",children:[(0,a.jsx)(i.u.Text,{as:"h1",size:"lg",children:null==c?void 0:c.title}),(0,a.jsx)(i.P.Bar,{color:"success",value:n})]}),(0,a.jsxs)("div",{className:"h-[calc(100vh_-_108px)] overflow-hidden lg:!flex",children:[(0,a.jsx)(u.CourseSidebar,{}),(0,a.jsx)("div",{className:"scrollbar-hide flex h-full w-full flex-col overflow-y-scroll transition-all lg:!flex-row",children:(0,a.jsx)("div",{className:"z-0 mr-auto w-full py-2 transition-all lg:!mt-0",children:t})})]}),l&&(0,a.jsx)(u.CompletedCourseModal,{})]})]})},F=s(87704),D=s(86702),O=s(76850),W=s(8662),Y=s(43451),course_CourseCard=e=>{var t,s;let{course:r,hasFooter:l=!0,hasBadge:n=!0}=e,{t:o}=(0,x.Y)(["chapter_contents","common"]);return(0,a.jsxs)(i.J,{className:"group relative h-full transform duration-150 ease-linear hover:-translate-y-2 hover:shadow-[12px_32px_32px_0px_rgba(0,0,0,0.12)]",children:["on_site"==r.course_type&&(0,a.jsx)(i.x,{color:"primary",className:" absolute left-6 top-6 z-10",children:(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(i.s,{className:"text-white",children:(0,a.jsx)(O.Z,{})}),(0,a.jsx)("span",{className:"text-sm text-white",children:o("common:on_site_course")})]})})}),(0,a.jsxs)(i.J.Body,{className:"relative flex h-full flex-col p-4",children:[(0,a.jsx)(u.Thumbnail,{src:r.thumbnail,alt:r.title}),(0,a.jsxs)("div",{className:"mt-4 flex flex-1 flex-col space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)(i.u.Body,{as:"h3",size:"base",className:"break-words font-semibold group-hover:text-primary",children:(0,a.jsxs)(N(),{href:"/courses/[slug]",as:"/courses/".concat(r.slug),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0"}),r.title]})}),n&&(0,a.jsx)(i.x,{rounded:"full",variant:"soft",color:"gray",size:"md",className:"flex-shrink-0 px-5",children:o("common:course")})]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-end space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[r.contents_count?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.s,{className:"text-gray-700",size:"sm",children:(0,a.jsx)(W.Z,{})}),(0,a.jsx)(i.u.Body,{size:"md",className:"font-medium text-gray-700",children:o("chapter_contents:WithCount",{count:r.contents_count})})]}):null,r.settings.reviews_enabled&&(0,a.jsx)(u.StarsRating,{className:(0,D.AK)("mr-auto"),value:null!==(s=null==r?void 0:r.avg_rating)&&void 0!==s?s:0,size:"sm",isReadOnly:!0})]}),(0,a.jsx)(u.ProductPrice,{className:"py-2",price:r.price,salesPrice:r.sales_price})]})]})]}),l&&(0,a.jsx)(i.J.Footer,{className:"mt-auto flex-col space-y-4",children:r.enrolled?"online"==r.course_type?r.is_started?(0,a.jsxs)(u.ContinueCourseAction,{course:r,variant:"outline",className:"w-full",children:[(0,a.jsx)("span",{className:"absolute -inset-2.5 z-10"}),(0,a.jsx)("span",{className:"relative",children:o("common:continue_course")})]}):(0,a.jsx)(i.A,{variant:"soft",color:"gray",children:o("common:course_starts_at",{date:(0,c.Z)(r.publish_at).format(z.i2)})}):(0,a.jsx)(i.B,{variant:"solid",as:N(),href:r.location.url,target:"_blank",color:"primary",className:"w-full",children:o("common:show_on_google_map")}):(null===(t=r.settings)||void 0===t?void 0:t.close_enrollments)||!r.in_stock?(0,a.jsx)(i.B,{disabled:!0,color:"primary",size:"md",variant:"solid",className:"w-full",children:o("common:course_enrollment_closed")}):(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(F.ExpressCheckoutButton,{product_type:"course",product_id:r.id,color:"primary",size:"md",variant:"solid",className:"w-full",label:o(0==r.price?"common:join_now_for_free":"common:buy_now")}),(0,a.jsx)(F.AddToCartButton,{product:r,product_type:"course",product_id:r.id,color:"gray",size:"md",icon:(0,a.jsx)(i.s,{children:(0,a.jsx)(Y.Z,{})})})]})})]})},course_CourseLibraryCard=e=>{var t,s;let{course:l}=e,{t:n}=(0,x.Y)(["account","common"]),o=(0,g.TL)(),{downloading:c,downloadFile:d}=(0,g.O6)(),m=(0,r.useMemo)(()=>!l.is_reviewed&&l.settings.reviews_enabled,[l]),ContinueCourseBtn=()=>(0,a.jsxs)(u.ContinueCourseAction,{course:l,variant:"outline",className:"shrink grow basis-auto break-words",children:[(0,a.jsx)("span",{className:"absolute -inset-2.5 z-10"}),(0,a.jsx)("span",{className:"relative",children:n("common:continue_course")})]}),DownloadCertificateBtn=()=>(0,a.jsx)(i.B,{isLoading:c,onClick:()=>d("/courses/".concat(l.slug,"/certificate"),"".concat(l.title,"-certificate")),className:"shrink grow basis-auto break-words",icon:(0,a.jsx)(i.s,{children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66699 3.66211C6.87207 3.66211 5.41699 5.11718 5.41699 6.91211V14.9121C5.41699 16.1141 6.06915 17.1647 7.04254 17.7278C7.40108 17.9352 7.5236 18.394 7.3162 18.7525C7.10879 19.1111 6.64999 19.2336 6.29145 19.0262C4.87363 18.206 3.91699 16.6712 3.91699 14.9121V6.91211C3.91699 4.28876 6.04364 2.16211 8.66699 2.16211H16.667C19.2903 2.16211 21.417 4.28876 21.417 6.91211V14.9121C21.417 16.6712 20.4604 18.206 19.0425 19.0262C18.684 19.2336 18.2252 19.1111 18.0178 18.7525C17.8104 18.394 17.9329 17.9352 18.2914 17.7278C19.2648 17.1647 19.917 16.1141 19.917 14.9121V6.91211C19.917 5.11718 18.4619 3.66211 16.667 3.66211H8.66699ZM7.91699 6.91211C7.91699 6.4979 8.25278 6.16211 8.66699 6.16211H16.667C17.0812 6.16211 17.417 6.4979 17.417 6.91211C17.417 7.32632 17.0812 7.66211 16.667 7.66211H8.66699C8.25278 7.66211 7.91699 7.32632 7.91699 6.91211ZM7.91699 10.9121C7.91699 10.4979 8.25278 10.1621 8.66699 10.1621H12.667C13.0812 10.1621 13.417 10.4979 13.417 10.9121C13.417 11.3263 13.0812 11.6621 12.667 11.6621H8.66699C8.25278 11.6621 7.91699 11.3263 7.91699 10.9121ZM12.667 14.6621C11.4244 14.6621 10.417 15.6695 10.417 16.9121C10.417 18.1547 11.4244 19.1621 12.667 19.1621C13.9096 19.1621 14.917 18.1547 14.917 16.9121C14.917 15.6695 13.9096 14.6621 12.667 14.6621ZM8.91699 16.9121C8.91699 14.841 10.5959 13.1621 12.667 13.1621C14.7381 13.1621 16.417 14.841 16.417 16.9121C16.417 17.5939 16.235 18.2333 15.917 18.7842V22.9121C15.917 23.161 15.7935 23.3936 15.5875 23.5332C15.3814 23.6727 15.1195 23.7009 14.8884 23.6085L12.667 22.7199L10.4455 23.6085C10.2145 23.7009 9.9526 23.6727 9.74652 23.5332C9.54044 23.3936 9.41699 23.161 9.41699 22.9121V18.7842C9.09896 18.2333 8.91699 17.5939 8.91699 16.9121ZM10.917 20.2296V21.8043L12.3884 21.2158C12.5673 21.1442 12.7667 21.1442 12.9455 21.2158L14.417 21.8043V20.2296C13.8946 20.5057 13.299 20.6621 12.667 20.6621C12.0349 20.6621 11.4394 20.5057 10.917 20.2296Z",fill:"currentColor"})})}),children:n("account:download_certificate")});return(0,a.jsxs)(i.J,{className:"group h-full transform duration-150 ease-linear hover:-translate-y-2 hover:shadow-[12px_32px_32px_0px_rgba(0,0,0,0.12)]",children:[(0,a.jsxs)(i.J.Body,{className:"relative flex h-full flex-col p-4",children:[(0,a.jsx)(u.Thumbnail,{src:l.thumbnail,alt:l.title}),(0,a.jsxs)("div",{className:"mt-4 flex flex-1 flex-col space-y-2",children:[(0,a.jsx)(i.u.Body,{as:"h3",size:"base",className:"break-words font-semibold group-hover:text-primary",children:(0,a.jsxs)(N(),{href:"/courses/[slug]",as:"/courses/".concat(l.slug),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0"}),l.title]})}),"online"==l.course_type&&(0,a.jsx)(i.P.Bar,{value:null!==(s=null==l?void 0:null===(t=l.enrollment)||void 0===t?void 0:t.percentage_completed)&&void 0!==s?s:0,color:"primary"})]})]}),(0,a.jsx)(i.J.Footer,{className:"mt-auto flex-col space-y-4",children:(0,a.jsx)(()=>"online"!=l.course_type?(0,a.jsx)(i.B,{variant:"outline",icon:(0,a.jsx)(i.s,{children:(0,a.jsx)(O.Z,{})}),as:N(),href:l.location.url,target:"_blank",color:"primary",className:"w-full",children:n("common:show_on_google_map")}):l.enrollment.completed_at?l.eligible_for_certificate||m?(0,a.jsxs)("div",{className:"flex flex-wrap gap-4",children:[l.eligible_for_certificate&&(0,a.jsx)(DownloadCertificateBtn,{}),!l.is_reviewed&&l.settings.reviews_enabled&&(0,a.jsx)(i.B,{variant:"outline",className:"shrink grow basis-auto break-words",children:n("common:course_review"),onClick:()=>{o((0,y.UH)(!0)),o((0,y.xz)(l))}})]}):(0,a.jsx)(ContinueCourseBtn,{}):(0,a.jsxs)("div",{className:"flex flex-wrap gap-4",children:[l.eligible_for_certificate&&(0,a.jsx)(DownloadCertificateBtn,{}),(0,a.jsx)(ContinueCourseBtn,{})]}),{})})]})},Q=s(25071),G=s(88360);function PrevNextContentButtons(){let e=(0,f.useRouter)(),{query:t}=e,{t:s}=(0,x.Y)(["common"]),{content:r}=(0,g.CG)(e=>e.courses),{appLocale:l}=(0,g.CG)(e=>e.app),handleNextPrevButtonIcons=e=>"ar"===l?e?(0,a.jsx)(Q.Z,{}):(0,a.jsx)(G.Z,{}):e?(0,a.jsx)(G.Z,{}):(0,a.jsx)(Q.Z,{});return(0,a.jsxs)("div",{className:"mt-5 flex items-center justify-between md:mt-0 md:!justify-end md:gap-x-4",children:[!r.prev.is_first&&r.prev.prevable&&(0,a.jsx)(i.B,{as:N(),href:"/courses/".concat(t.slug,"/chapters/").concat(r.prev.chapter_id,"/contents/").concat(r.prev.content_id),color:"gray",variant:"link",size:"sm",className:"gap-2 md:!gap-0",icon:(0,a.jsx)(i.s,{className:"flex md:hidden",children:handleNextPrevButtonIcons(!0)}),children:s("common:prev")}),!r.next.is_last&&r.next.nextable&&(0,a.jsx)(i.B,{as:N(),href:"/courses/".concat(t.slug,"/chapters/").concat(r.next.chapter_id,"/contents/").concat(r.next.content_id),color:"gray",size:"sm",className:"gap-2 md:!gap-0",icon:(0,a.jsx)(i.s,{className:"flex md:hidden",children:handleNextPrevButtonIcons(!1)}),iconAlign:"end",children:s("common:next")})]})}var J=s(80434),U=s(65133),attachments_ContentAttachments=e=>{let{attachments:t,content:s}=e,{t:r}=(0,x.Y)(["course_player"]),{query:l}=(0,f.useRouter)(),{downloadFile:n,isDownloading:o}=(0,g.O6)();return(0,a.jsxs)(i.J,{children:[(0,a.jsx)(i.J.Body,{className:"grid gap-3",children:t.map((e,t)=>(0,a.jsx)(u.FileItem,{title:e.file_name,children:(0,a.jsx)(i.B,{color:"gray",size:"sm",variant:"solid",className:"w-full md:!w-auto",icon:(0,a.jsx)(i.s,{size:"md",children:(0,a.jsx)(J.Z,{})}),isLoading:o("/courses/".concat(l.slug,"/chapters/").concat(l.chapterId,"/contents/").concat(l.contentId,"/download/").concat(e.uuid)),onClick:()=>n("/courses/".concat(l.slug,"/chapters/").concat(l.chapterId,"/contents/").concat(l.contentId,"/download/").concat(e.uuid),e.file_name),children:r("course_player:attachments_download")})},t))}),(0,a.jsx)(i.J.Footer,{children:(0,a.jsx)(i.B,{onClick:()=>n("/courses/".concat(l.slug,"/chapters/").concat(l.chapterId,"/contents/").concat(l.contentId,"/download"),s.title),isLoading:o("/courses/".concat(l.slug,"/chapters/").concat(l.chapterId,"/contents/").concat(l.contentId,"/download")),icon:(0,a.jsx)(i.s,{size:"md",children:(0,a.jsx)(U.Z,{})}),children:r("course_player:attachments_download_all_attachments")})})]})},K=s(18499),X=s(7395),attachments_FileItem=e=>{let{title:t,className:s,color:r,children:l}=e;return(0,a.jsx)(i.J,{className:(0,X.cn)("rounded-xl bg-gray-100",s),children:(0,a.jsxs)(i.J.Body,{className:"flex flex-col items-start justify-between gap-3 md:mb-0 md:!flex-row md:!items-center",children:[(0,a.jsxs)("div",{className:"flex w-full items-center justify-start gap-3",children:[(0,a.jsx)(i.s,{color:"gray",rounded:"full",size:"sm",variant:"soft",children:(0,a.jsx)(K.Z,{})}),(0,a.jsx)(i.u.Text,{as:"h6",size:"xs",className:(0,X.cn)("text-".concat(null!=r?r:"black"),"truncate"),children:t})]}),l]})})},$=s(5152),ee=s.n($),et=s(41609),es=s.n(et),ea=s(73252),er=s(89871),el=s(66610),en=s(43407),eo=s(49633),ei=s(20582),ec=s(9332),ed=s(99971);let eu=ee()(()=>Promise.resolve().then(s.bind(s,6316)).then(e=>e.Drawer),{loadableGenerated:{webpack:()=>[6316]},ssr:!1}),Meetings=()=>{let{query:e}=(0,f.useRouter)(),{t}=(0,x.Y)(["meeting"]),{data:s}=(0,v.IE)({slug:e.slug}),[l,n]=(0,r.useState)({today:[],all:[]});return((0,r.useEffect)(()=>{if(s){let e=s.chapters.flatMap(e=>e.contents.filter(e=>"meeting"===e.type).map(t=>({...t,chapter_id:e.id})));n({today:e.filter(e=>(0,c.Z)(e.contentable.start_at).isToday()),all:e})}},[s]),l.today.length>0)?(0,a.jsx)(i.D,{className:(0,X.cn)("rounded-lg bg-gray-200"),children:s=>{let{isOpen:r}=s;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.D.Button,{children:(0,a.jsxs)("div",{className:"flex flex-grow flex-row items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center  gap-4",children:[(0,a.jsx)(i.s,{color:"primary",rounded:"full",size:"md",variant:"solid",children:(0,a.jsx)(er.Z,{})}),(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)(i.u.Text,{as:"h3",size:"sm",className:"line-clamp-1",children:t("meeting:contents")}),(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:t("meeting:count",{count:l.today.length})})]})]}),(0,a.jsx)(i.s,{size:"md",variant:"transparent",color:"gray",children:(0,a.jsx)(el.Z,{className:(0,X.cn)("transition-all duration-300 ease-in-out",r?"":"rotate-180 transform")})})]})}),(0,a.jsx)(i.D.Content,{className:"gap-3 p-4",children:l.today.map(s=>s.can_access?(0,a.jsx)(N(),{href:s.contentable.is_live?s.contentable.join_url:"/courses/".concat(e.slug,"/chapters/").concat(s.chapter_id,"/contents/").concat(s.id),target:s.contentable.is_live?"_blank":"_self",children:(0,a.jsx)(ed.Z,{reverseContrast:!1,displayAccessIcon:!1,content:s,className:"flex-col items-end space-y-3",titleClassName:"flex-col-reverse items-start justify-start",showIcon:!1,joinUrl:s.contentable.is_live&&(0,a.jsx)(i.B,{color:"primary",size:"sm",as:"a",className:"mr-auto",href:s.contentable.join_url,target:"_blank",disabled:s.contentable.is_upcoming,children:t("meeting:start")})})},s.id):(0,a.jsx)(ed.Z,{reverseContrast:!1,displayAccessIcon:!1,content:s},s.id))})]})}}):l.all.length>0?(0,a.jsx)("div",{className:"flex flex-row items-center justify-between rounded-lg bg-gray-200 p-4",children:(0,a.jsxs)("div",{className:"flex items-center  gap-4",children:[(0,a.jsx)(i.s,{color:"gray",rounded:"full",size:"md",variant:"solid",children:(0,a.jsx)(er.Z,{})}),(0,a.jsx)("div",{className:"flex flex-col items-start",children:(0,a.jsx)(i.u.Text,{as:"h3",size:"sm",className:"line-clamp-1",children:t("meeting:empty_contents")})})]})}):null};var sidebar_CourseSidebar=()=>{let{query:e}=(0,f.useRouter)(),{t}=(0,x.Y)(["common","empty_sections","course_player"]),s=(0,f.useRouter)(),{toggleContentSideBar:l,content:n,attemptQuiz:o}=(0,g.CG)(e=>e.courses),{data:c}=(0,v.IE)({slug:e.slug}),[d,m]=(0,r.useState)([]),[p,h]=(0,r.useState)(""),[C,j]=(0,r.useState)(!1),closeCart=()=>j(!1);return(0,r.useEffect)(()=>{var e;if(p){let e=d.filter(e=>e.title.includes(p)||e.contents.some(e=>e.title.includes(p)));m(e)}else m(null!==(e=null==c?void 0:c.chapters)&&void 0!==e?e:[])},[p]),(0,r.useEffect)(()=>{c&&m(null==c?void 0:c.chapters)},[c]),(0,r.useEffect)(()=>(s.events.on("routeChangeComplete",closeCart),()=>{s.events.off("routeChangeComplete",closeCart)}),[s.events]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-4 block lg:!hidden",children:[es()(o)&&(0,a.jsx)(i.B,{rounded:"full",icon:(0,a.jsx)(i.s,{children:(0,a.jsx)(en.Z,{})}),onClick:()=>j(!0),className:"fixed bottom-[110px] left-4 z-10",children:t("course_player:course_contents")}),(0,a.jsx)(eu,{styleClass:"drawer md:!rounded-t-none rounded-t-2xl",isOpen:C,onClose:closeCart,title:t("course_player:course_contents"),children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 px-4 pb-12 pt-4",children:[(0,a.jsx)(i.W.Input,{id:"search","aria-describedby":"search",clearable:!0,placeholder:t("course_player:search_input_placeholder"),prepend:(0,a.jsx)(i.s,{size:"md",children:(0,a.jsx)(eo.Z,{})}),type:"text",className:"mb-4","aria-label":"chapter-search",value:p,onValueChange:e=>h(e),onClear:()=>h("")}),(0,a.jsx)(Meetings,{}),d.length>0?d.map(e=>{var t;return e.contents.length>0?(0,a.jsx)(ec.Z,{showActions:!0,courseRef:null!==(t=null==c?void 0:c.slug)&&void 0!==t?t:"",chapter:e},e.id):(0,a.jsx)(ea.Z,{chapter:e},e.id)}):(0,a.jsx)(u.EmptyState,{className:"mt-4",iconClassName:"text-gray-700",title:t("empty_sections:no_products"),description:t("empty_sections:no_products_description"),icon:(0,a.jsx)(ei.Z,{})})]})})]}),(0,a.jsx)("div",{className:(0,X.cn)("hidden h-full pt-2 transition-all lg:!block",l?"w-0":"me-4 w-full max-w-[450px]"),children:(0,a.jsxs)("div",{className:(0,X.cn)("scrollbar-hide border-gray-300 ps-2 lg:!border-e lg:!pe-4",l&&"hidden"),children:[(0,a.jsx)(i.W.Input,{id:"search","aria-describedby":"search",clearable:!0,placeholder:t("course_player:search_input_placeholder"),prepend:(0,a.jsx)(i.s,{size:"md",children:(0,a.jsx)(eo.Z,{})}),type:"text",className:"mb-4","aria-label":"chapter-search",value:p,onValueChange:e=>h(e),onClear:()=>h("")}),(0,a.jsxs)("div",{className:"scrollbar-hide flex flex-col gap-3 overflow-y-scroll pb-10 md:h-[calc(100vh-175px)] [&>*:last-child]:mb-10",children:[(0,a.jsx)(Meetings,{}),d.length>0?d.map(e=>{var t;return e.contents.length>0?(0,a.jsx)(ec.Z,{showActions:!0,courseRef:null!==(t=null==c?void 0:c.slug)&&void 0!==t?t:"",chapter:e},e.id):(0,a.jsx)(ea.Z,{chapter:e},e.id)}):(0,a.jsx)(u.EmptyState,{iconClassName:"text-gray-700",title:t("common:no_results_found"),icon:(0,a.jsx)(ei.Z,{})})]})]})})]})},em=s(74738);let ep=em.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchComments:e.query({query:e=>{let{slug:t,chapterId:s,contentId:a}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/comments"),method:"GET"}},providesTags:["comments"]}),createComment:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,...r}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/comments"),method:"POST",body:r}}}),createCommentReplay:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,commentId:r,...l}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/comments/").concat(r,"/replies"),method:"POST",body:l}}}),updateComment:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,id:r,...l}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/comments/").concat(r),method:"PATCH",body:l}}}),deleteComment:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,id:r}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/comments/").concat(r),method:"DELETE"}}})})}),{useFetchCommentsQuery:ex,useCreateCommentMutation:eh,useCreateCommentReplayMutation:eC,useUpdateCommentMutation:ef,useDeleteCommentMutation:eg,util:{updateQueryData:ej}}=ep;var comments_Comments=()=>{let{t:e}=(0,x.Y)(["common","comments"]),{query:t}=(0,f.useRouter)(),{slug:s,chapterId:l,contentId:n}=t,{data:o}=(0,v.IE)({slug:t.slug}),{authenticated:c,member:p}=(0,r.useContext)(m.Vo),h=(0,g.TL)(),{data:j,isLoading:y}=ex({slug:s,chapterId:l,contentId:n}),[_]=eh(),b=M.Ry().shape({content:M.Z_().min(3).required()}),w=(0,d.cI)({mode:"onSubmit",defaultValues:{content:""},resolver:(0,k.X)(b)}),{handleSubmit:L,reset:z,setError:Z}=w,{displayErrors:S}=(0,g.ah)({setError:Z}),onSubmit=async e=>{let a=e.content,r=(0,D.HP)();z({content:""});let o=h(ej("fetchComments",{slug:s,chapterId:l,contentId:n},t=>{t.data.push({user:null!=p?p:{},content:e.content,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),id:r})})),i=await _({slug:t.slug,chapterId:t.chapterId,contentId:t.contentId,content:a});if(S(i)){o.undo(),z({content:a});return}h(ej("fetchComments",{slug:s,chapterId:l,contentId:n},e=>{let t=e.data.findIndex(e=>e.id===r);e.data[t]={...i.data.data}}))},H=(null==j?void 0:j.data.length)===0;return y?(0,a.jsx)(u.LoadingScreen,{}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex min-h-[450px] flex-col space-y-6",children:[!(null==o?void 0:o.settings.disable_comments)&&c&&(0,a.jsx)(i.W,{onSubmit:L(onSubmit),children:(0,a.jsx)(u.CommentInput,{form:w})}),H&&!c?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-8 rounded-3xl bg-gray-100 px-8 py-12",children:[(0,a.jsx)("div",{className:"mx-auto w-60 md:!w-96",children:(0,a.jsx)(C(),{width:1e3,height:1e3,src:"/images/no-reviews.png",alt:"no-reviews"})}),(0,a.jsx)(i.u.Title,{as:"p",className:"text-center",children:e("comments:empty")}),(0,a.jsx)(i.B,{as:N(),href:"/login",children:e("common:login")})]}):null==j?void 0:j.data.map((e,t)=>(0,a.jsx)(u.CommentCard,{comment:e},t))]})})},ev=s(311),ey=s(76249),comments_CommentItem=e=>{let{comment:t,toggleReplayInput:s}=e,{t:l}=(0,x.Y)(["comments"]),{query:n}=(0,f.useRouter)(),{slug:o,chapterId:u,contentId:p}=n,h=(0,g.TL)(),[C,j]=(0,r.useState)(!1),{member:v}=(0,r.useContext)(m.Vo),toggleUpdateCommentInput=()=>{j(e=>!e)},[y]=ef(),[_]=(0,g.pU)({mutation:eg}),b=(0,r.useMemo)(()=>!!("member"===t.user.type&&v&&v.id===t.user.id),[t]),w=(0,r.useMemo)(()=>"user"===t.user.type,[t]),N=M.Ry().shape({content:M.Z_().required()}),{handleSubmit:L,control:z,setError:Z,reset:S}=(0,d.cI)({resolver:(0,k.X)(N)});(0,r.useEffect)(()=>{S({content:t.content})},[t]);let{displayErrors:H}=(0,g.ah)({setError:Z}),onSubmit=async e=>{let s=e.content;S({content:""}),j(!1);let a=h(ej("fetchComments",{slug:o,chapterId:u,contentId:p},e=>{let a=t.id,r=e.data.findIndex(e=>e.id===a);if(-1!==r&&void 0!==r)e.data[r].content=s;else for(let t=0;t<e.data.length;t++){var l;let r=null===(l=e.data[t].replies)||void 0===l?void 0:l.findIndex(e=>e.id===a);if(-1!==r&&void 0!==r){e.data[t].replies[r].content=s;break}}})),r=await y({id:t.id,slug:o,chapterId:u,contentId:p,content:e.content});H(r)&&(a.undo(),S({content:s}),j(!0)),S({content:r.data.data.content})};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:(0,X.cn)("gap-3 md:!bg-transparent",t.replies&&t.replies.length>0&&"!z-10 first:!-mx-4 first:!-mt-4 first:bg-gray-100 first:px-4 first:py-4"),children:(0,a.jsxs)("div",{className:"grid grid-cols-12",children:[(0,a.jsx)("div",{className:"col-span-12 mb-3 flex md:col-span-8",children:(0,a.jsxs)("div",{className:(0,X.cn)("comment-border-item flex items-center gap-3",t.replies&&t.replies.length>0&&"after:!border-0"),children:[(0,a.jsx)(i.v,{imageUrl:t.user.avatar,name:t.user.username,size:"md",className:"z-10 flex-shrink-0"}),(0,a.jsx)(i.u.Body,{as:"h6",children:t.user.name}),(b||w)&&(0,a.jsx)(i.x,{color:b?"gray":"info",rounded:"full",size:"sm",variant:"soft",className:"px-4",children:l(b?"comments:my_comment":"comments:instructor")})]})}),(0,a.jsxs)("div",{className:"order-3 col-span-12 mt-3 flex flex-wrap md:order-2 md:col-span-4 md:ms-auto md:mt-0 md:justify-end",children:[b&&(C?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.B,{as:"button",color:"primary",onClick:L(onSubmit),size:"sm",variant:"solid",children:l("common:save")}),(0,a.jsx)(i.B,{as:"button",color:"gray",variant:"outline",size:"sm",className:"ms-2",onClick:toggleUpdateCommentInput,children:l("common:cancel")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.B,{color:"gray",type:"button",size:"sm",variant:"outline",icon:(0,a.jsx)(i.s,{size:"xs",children:(0,a.jsx)(ev.Z,{})}),iconAlign:"start",onClick:toggleUpdateCommentInput,children:l("common:edit")}),(0,a.jsx)(i.B,{color:"gray",variant:"outline",size:"sm",icon:(0,a.jsx)(i.s,{size:"xs",children:(0,a.jsx)(ey.Z,{})}),iconAlign:"start",className:"ms-2 text-danger",onClick:()=>_({id:t.id,payload:{slug:o,chapterId:u,contentId:p},title:l("comments:comment_confirm_delete_alert_title"),description:l("comments:comment_confirm_delete_alert_description"),okLabel:l("comments:comment_confirm_delete_alert_confirm"),callback:()=>{h(ej("fetchComments",{slug:o,chapterId:u,contentId:p},e=>{e.data=e.data.filter(e=>e.id!==t.id),e.data=e.data.map(e=>(e.replies&&(e.replies=e.replies.filter(e=>e.id!==t.id)),e))}))}}),children:l("common:delete")})]})),v&&s&&(0,a.jsx)(i.B,{as:"button",type:"submit",color:"gray",variant:"outline",size:"sm",className:"ms-2",onClick:s,children:l("comments:reply")})]}),(0,a.jsx)("div",{className:"order-2 col-span-12 ps-0 md:ps-11 lg:order-3",children:C?(0,a.jsx)(i.W,{onSubmit:L(onSubmit),children:(0,a.jsx)(d.Qr,{name:"content",control:z,render:e=>{let{field:t}=e;return(0,a.jsx)(i.W.Input,{clearable:!0,onClear:()=>{t.onChange("")},id:"content",type:"text",placeholder:l("comments:edit_comment_input_placeholder"),className:"mb-0 bg-white","aria-label":"reply",...t})}})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"text-gray-700",children:(0,c.Z)(t.created_at).fromNow(!1)}),(0,a.jsx)(i.u.Body,{as:"p",size:"md",className:"break-words font-normal text-gray-800",children:t.content})]})})]})})})},CommentsCard=e=>{var t;let{comment:s}=e,{query:l}=(0,f.useRouter)(),{slug:n,chapterId:o,contentId:c}=l,p=(0,g.TL)(),[x,h]=(0,r.useState)(!1),{authenticated:C,member:j}=(0,r.useContext)(m.Vo),[v]=eC(),y=M.Ry().shape({content:M.Z_().min(3).trim().required()}),toggleReplayInput=()=>{C&&h(e=>!e)},_=(0,d.cI)({mode:"onSubmit",defaultValues:{content:""},resolver:(0,k.X)(y)}),{handleSubmit:b,setError:w,reset:N}=_,{displayErrors:L,displaySuccess:z}=(0,g.ah)({setError:w}),onSubmit=async e=>{let t=e.content,a=(0,D.HP)();N({content:""}),h(!1);let r=p(ej("fetchComments",{slug:n,chapterId:o,contentId:c},t=>{let r=t.data.findIndex(e=>e.id===s.id);if(t.data[r].replies){var l;null===(l=t.data[r].replies)||void 0===l||l.push({user:null!=j?j:{},content:e.content,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),id:a})}else t.data[r].replies=[{user:null!=j?j:{},content:e.content,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),id:a}]})),l=await v({slug:n,chapterId:o,contentId:c,commentId:s.id,content:e.content});if(L(l)){r.undo(),N({content:t}),h(!0);return}z(l),h(!1),p(ej("fetchComments",{slug:n,chapterId:o,contentId:c},e=>{var t,r;let n=e.data.findIndex(e=>e.id===s.id),o=null===(t=e.data[n].replies)||void 0===t?void 0:t.findIndex(e=>e.id===a);-1!==o&&(e.data[n].replies[o]={...null===(r=l.data.data.replies)||void 0===r?void 0:r[l.data.data.replies.length-1]})}))};return(0,a.jsx)(i.J,{className:"bg-transparent",children:(0,a.jsx)(i.J.Body,{children:(0,a.jsxs)("div",{className:(0,X.cn)("relative grid gap-5",s.replies&&s.replies.length>0&&"comment-border-body"),children:[(0,a.jsx)(comments_CommentItem,{comment:s,toggleReplayInput:toggleReplayInput}),null===(t=s.replies)||void 0===t?void 0:t.map(e=>(0,a.jsx)("div",{className:"ms-11",children:(0,a.jsx)(comments_CommentItem,{comment:e,toggleReplayInput:toggleReplayInput})},e.id)),x&&(0,a.jsx)(i.W,{onSubmit:b(onSubmit),children:(0,a.jsx)(u.CommentInput,{form:_})})]})})})},e_=s(78340),comments_CommentInput=e=>{var t;let{form:s}=e,{t:l}=(0,x.Y)(["comments"]),{member:n}=(0,r.useContext)(m.Vo),{formState:{isDirty:o,isValid:c,isSubmitting:u,errors:p},control:h}=s;return(0,a.jsxs)("div",{className:"md!:items-center flex !flex-col items-start gap-4 md:!flex-row",children:[(0,a.jsx)(i.v,{size:"lg",className:"!h-8 !w-8 flex-shrink-0 md:!h-12 md:!w-12",imageUrl:null==n?void 0:n.avatar,name:null!==(t=null==n?void 0:n.name)&&void 0!==t?t:""}),(0,a.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,a.jsx)(d.Qr,{name:"content",control:h,render:e=>{var t;let{field:s}=e;return(0,a.jsx)(i.W.Input,{id:"content","aria-label":"content",clearable:!0,onClear:()=>{s.onChange("")},error:null===(t=p.content)||void 0===t?void 0:t.message,type:"text",placeholder:l("comments:comment_input_placeholder"),className:"mb-0 flex-grow",...s})}}),(0,a.jsx)(i.B,{as:"button",type:"submit",color:"primary",size:"md",disabled:!o||u||!c,className:"mb-auto flex-shrink-0",icon:(0,a.jsx)(i.s,{size:"md",children:(0,a.jsx)(e_.Z,{className:"transform rtl:-scale-100"})})})]})]})},eb=s(54246),ew=s(19204),eN=s(77473),ek=s(39267);async function getUserIp(){let e=null;if(await fetch("https://api.ipify.org/?format=json").then(e=>e.json()).then(e=>e.ip).then(t=>{e=t}),!e)throw Error("No ip founded");return e}var shared_DynamicWatermark=e=>{let{children:t,tenant:s,provider:l}=e,n=(0,r.useRef)(),o=(0,r.useRef)(null),[i,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(!1),{member:p}=(0,r.useContext)(m.Vo);(0,r.useEffect)(()=>{p||getUserIp().then(e=>{c(e)})},[p]);let x={position:"absolute",top:"50%",left:"50%",zIndex:8,width:"fit-content",whiteSpace:"nowrap",borderRadius:"0.375rem",backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"0.5rem 0.75rem",fontSize:"0.875rem",fontWeight:"600",color:"#fff",transition:"all 0.3s ease-in-out",display:"block",visibility:"visible",userSelect:"none",pointerEvents:"none"},createOrUpdateWatermarkElement=e=>{var t,a,r,l,c,u;let{top:m,left:h}=e;if(n.current){Object.assign(n.current.style,{}),n.current.className="",n.current.id="";try{d?(n.current.popover="",n.current.showPopover()):n.current.removeAttribute("popover")}catch(e){console.warn("popover is not supported")}let e=null==o?void 0:null===(a=o.current)||void 0===a?void 0:null===(t=a.children[0])||void 0===t?void 0:t.contains(n.current);Object.assign(n.current.style,x),n.current.style.top="".concat(m,"%"),n.current.style.left="".concat(h,"%"),n.current.innerHTML="".concat(null==s?void 0:s.title,": ").concat(p?null==p?void 0:p.id:i),e||null===(l=o.current)||void 0===l||null===(r=l.children[0])||void 0===r||r.appendChild(n.current)}else{let e=document.createElement("div");Object.assign(e.style,{}),Object.assign(e.style,x),e.style.top="".concat(m,"%"),e.style.left="".concat(h,"%"),e.innerHTML="".concat(null==s?void 0:s.title,": ").concat(p?null==p?void 0:p.id:i),n.current=e,null===(u=o.current)||void 0===u||null===(c=u.children[0])||void 0===c||c.appendChild(e)}},handleFullScreenChange=()=>{let e=null!==document.fullscreenElement;u(e)};return(0,r.useEffect)(()=>(document.addEventListener("fullscreenchange",handleFullScreenChange),()=>{document.removeEventListener("fullscreenchange",handleFullScreenChange)}),[]),(0,r.useEffect)(()=>{if(null==s?void 0:s.meta.enable_watermark){let updatePosition=()=>{createOrUpdateWatermarkElement({top:90*Math.random(),left:90*Math.random()})};updatePosition();let e=setInterval(updatePosition,2e3);return()=>clearInterval(e)}},[n.current,s,l,d]),(0,a.jsx)("div",{className:"relative h-full w-full",ref:o,id:"watermark-wrapper",children:t})},contents_VideoContent=e=>{let{content:t}=e,{query:s}=(0,f.useRouter)(),{t:l}=(0,x.Y)(["course_player"]),[n]=(0,p.Z)(),[o,c]=(0,r.useState)(!1),{toggleContentSideBar:d}=(0,g.CG)(e=>e.courses),{data:u}=(0,v.IE)({slug:s.slug}),{data:m}=(0,S.G)();return(0,a.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,a.jsx)("div",{className:(0,D.AK)("gumlet"!=t.contentable.provider&&"flex","mb-2 items-center justify-center overflow-hidden rounded-3xl bg-black",d?"ms-player-wrapper-full-width":"ms-player-wrapper-toggled-width"),dir:"ltr",children:m&&(0,a.jsx)(shared_DynamicWatermark,{tenant:m,provider:t.contentable.provider,children:"gumlet"==t.contentable.provider?(0,a.jsx)(ew.Z,{videoId:t.contentable.provider_id}):(0,a.jsx)(eb.Z,{rel:"0",title:t.title,src:t.contentable.url,onEnded:async()=>{await n(!0)&&c(!0)}})})}),(0,a.jsxs)(i.R,{"aria-label":"content_details",className:"my-4 w-full sm:!w-fit",children:[(0,a.jsx)(i.V,{title:l("course_player:content_tab"),iconAlign:"start",icon:(0,a.jsx)(eN.Z,{}),children:(0,a.jsx)("article",{className:"prose prose-sm prose-stone sm:prose-base lg:prose-lg h-full max-w-full p-4",dangerouslySetInnerHTML:{__html:t.description}})},"content"),(null==u?void 0:u.settings.disable_comments)?null:(0,a.jsx)(i.V,{title:l("course_player:comments_tab"),iconAlign:"start",icon:(0,a.jsx)(ek.Z,{}),children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(comments_Comments,{})})},"comments"),(null==t?void 0:t.attachments)&&t.attachments.length>0&&(0,a.jsx)(i.V,{title:l("course_player:attachments_tab"),iconAlign:"start",icon:(0,a.jsx)(J.Z,{}),children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(attachments_ContentAttachments,{content:t,attachments:t.attachments})})},"attachments")]}),(0,a.jsx)(modals_MediaContentCompletedModal,{open:o,onDismiss:()=>c(!1)})]})};let eM=ee()(()=>s.e(675).then(s.bind(s,60675)).then(e=>e.Player),{loadableGenerated:{webpack:()=>[null]},ssr:!1});var contents_AudioContent=e=>{let{content:t}=e,{query:s}=(0,f.useRouter)(),{t:l}=(0,x.Y)(["course_player"]),[n,o]=(0,r.useState)(!1),[c]=(0,p.Z)(),{data:d}=(0,v.IE)({slug:s.slug});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.R,{"aria-label":"content_details",className:"mx-auto my-4 w-full sm:!w-fit",children:[(0,a.jsx)(i.V,{title:l("course_player:content_tab"),iconAlign:"start",icon:(0,a.jsx)(eN.Z,{}),children:(0,a.jsx)("div",{dir:"ltr",children:(0,a.jsx)(eM,{onEnded:async()=>{await c(!0)&&o(!0)},url:t.contentable.file.url,wrapperClassName:"overflow-unset",className:"audio"})})},"content"),(null==d?void 0:d.settings.disable_comments)?null:(0,a.jsx)(i.V,{title:l("course_player:comments_tab"),iconAlign:"start",icon:(0,a.jsx)(ek.Z,{}),children:(0,a.jsx)(u.Comments,{})},"comments")]}),(0,a.jsx)(modals_MediaContentCompletedModal,{open:n,onDismiss:()=>o(!1)})]})},contents_PDFContent=e=>{let{content:t}=e,{query:s}=(0,f.useRouter)(),{t:r}=(0,x.Y)(["course_player"]),{data:l}=(0,v.IE)({slug:s.slug});return(0,a.jsxs)(i.R,{"aria-label":"content_details",className:"mx-auto my-4 w-full sm:!w-fit",children:[(0,a.jsx)(i.V,{title:r("course_player:content_tab"),iconAlign:"start",icon:(0,a.jsx)(eN.Z,{}),children:(0,a.jsx)("iframe",{src:"https://cdn.msaaq.com/assets/js/pdf.js/web/viewer.html?file=".concat(t.contentable.file.url),frameBorder:"0",className:"print-container mb-9 h-[600px] w-full",onContextMenu:e=>e.preventDefault(),children:r("course_player:pdf_not_supported")})},"content"),(null==l?void 0:l.settings.disable_comments)?null:(0,a.jsx)(i.V,{title:r("course_player:comments_tab"),iconAlign:"start",icon:(0,a.jsx)(ek.Z,{}),children:(0,a.jsx)(u.Comments,{})},"comments")]})},contents_TextContent=e=>{let{content:t}=e,{query:s}=(0,f.useRouter)(),{t:l}=(0,x.Y)(["course_player"]),{data:n}=(0,v.IE)({slug:s.slug});return(0,r.useEffect)(()=>{try{let e=document.getElementById("text-content-".concat(t.id));if(e){let t=e.getElementsByTagName("a");for(let e=0;e<t.length;e++)t[e].hasAttribute("target")||t[e].setAttribute("target","_blank")}}catch(e){}},[t]),(0,a.jsxs)(i.R,{"aria-label":"content_details",className:"mx-auto my-4 w-full sm:!w-fit",children:[(0,a.jsx)(i.V,{title:l("course_player:content_tab"),iconAlign:"start",icon:(0,a.jsx)(eN.Z,{}),children:(0,a.jsx)("article",{id:"text-content-".concat(t.id),className:"prose prose-sm prose-stone sm:prose-base lg:prose-lg h-full max-w-full p-4 [&_iframe]:h-48 [&_iframe]:max-w-full sm:[&_iframe]:h-64 md:[&_iframe]:h-64 lg:[&_iframe]:h-80",dangerouslySetInnerHTML:{__html:t.description}})},"content"),(null==n?void 0:n.settings.disable_comments)?null:(0,a.jsx)(i.V,{title:l("course_player:comments_tab"),iconAlign:"start",icon:(0,a.jsx)(ek.Z,{}),children:(0,a.jsx)(u.Comments,{})},"comments"),(null==t?void 0:t.attachments)&&t.attachments.length>0&&(0,a.jsx)(i.V,{title:l("course_player:attachments_tab"),iconAlign:"start",icon:(0,a.jsx)(J.Z,{}),children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(u.ContentAttachments,{content:t,attachments:t.attachments})})},"attachments")]})},eL=s(68300),ez=s(28210),eZ=s(55562),eS=s(94855);let eH={accepted:"success",processing:"warning",rejected:"danger",default:"info"},eB={accepted:"course_player:assignment_status_accepted",processing:"course_player:assignment_status_processing",rejected:"course_player:assignment_status_rejected",default:"course_player:assignment_status_default"};var contents_AssignmentContent=e=>{var t,s,l;let{content:n}=e,{t:o}=(0,x.Y)(["course_player"]),{query:c}=(0,f.useRouter)(),{slug:m,chapterId:p,contentId:h}=c,{data:C}=(0,v.IE)({slug:c.slug}),{refetch:j}=(0,ez.uA)({slug:m,chapterId:p,contentId:h}),[y,_]=(0,r.useState)(!1),b=(0,r.useRef)(null),[w]=(0,eL.r)(),N=(0,r.useMemo)(()=>n.contentable.submissions[n.contentable.submissions.length-1],[n]),L=M.Ry().shape({attachment:M.IX().of(M.nK()).min(1).required(),message:M.Z_().notRequired()}),{handleSubmit:z,control:Z,setValue:S,setError:H,formState:{isDirty:B,isValid:E,isSubmitting:A}}=(0,d.cI)({defaultValues:{attachment:[],message:""},resolver:(0,k.X)(L)}),{displayErrors:I,displaySuccess:P}=(0,g.ah)({setError:H});(0,r.useEffect)(()=>{C&&_(!N||N&&"rejected"===N.status&&C.settings.resubmit_assignment)},[C,N,_]);let onSubmit=async e=>{let t=await w({slug:c.slug,chapterId:c.chapterId,contentId:c.contentId,attachment:e.attachment.map(e=>e.file).pop(),message:e.message,...(null==N?void 0:N.status)==="rejected"&&{params:{_method:"PATCH"}}});I(t)||(P(t),j())};return(0,a.jsxs)("div",{className:"grid gap-4 border-t border-gray-400 pt-4",children:[(0,a.jsx)(i.A,{color:null!==(t=eH[null==N?void 0:N.status])&&void 0!==t?t:eH.default,title:o(null!==(s=eB[null==N?void 0:N.status])&&void 0!==s?s:eB.default),description:(null==N?void 0:N.status)==="processing"?null==N?void 0:N.message:null!==(l=null==N?void 0:N.notes)&&void 0!==l?l:o("course_player:assignment_default_message"),variant:"soft"}),(0,a.jsx)(i.W,{onSubmit:z(onSubmit),children:(0,a.jsxs)(i.J,{children:[(0,a.jsx)(i.J.Body,{children:(0,a.jsxs)("div",{className:"grid gap-7",children:[(0,a.jsx)("div",{className:"prose prose-sm prose-stone sm:prose-base lg:prose-lg h-full max-w-full [&_iframe]:h-48 [&_iframe]:max-w-full sm:[&_iframe]:h-64 md:[&_iframe]:h-64 lg:[&_iframe]:h-80",dangerouslySetInnerHTML:{__html:n.contentable.content}}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)(i.u.Text,{size:"xs",className:"font-medium",children:o("course_player:assignment_attachments")}),n.contentable.attachments.map((e,t)=>(0,a.jsx)(u.FileItem,{title:e.file_name,children:(0,a.jsx)(i.B,{as:"a",target:"_blank",href:e.url,download:!0,color:"gray",size:"sm",variant:"solid",className:"w-full md:!w-auto",icon:(0,a.jsx)(i.s,{size:"md",children:(0,a.jsx)(eS.Z,{})}),children:o("course_player:assignment_download")})},t))]}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)(i.u.Text,{size:"xs",children:o("course_player:assignment_upload")}),N&&(0,a.jsx)(u.FileItem,{className:"bg-white",title:N.attachment.file_name,color:"rejected"===N.status?"danger":void 0,children:"rejected"===N.status&&y?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.B,{as:"button",color:"primary",size:"sm",variant:"outline",className:"w-full md:!w-auto",icon:(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(eZ.Z,{})}),children:o("course_player:assignment_retry_upload"),onClick:()=>{b.current&&b.current.click()}}),(0,a.jsx)("input",{ref:b,type:"file",className:"hidden",name:"attachment",id:"attachment",onChange:e=>{e.target.files&&S("attachment",[{id:N.id,name:e.target.files[0].name,file:e.target.files[0],size:e.target.files[0].size,mime:e.target.files[0].type}])}})]}):(0,a.jsx)(i.B,{as:"a",target:"_blank",href:N.attachment.url,download:!0,color:"gray",size:"sm",variant:"solid",className:"w-full md:!w-auto",icon:(0,a.jsx)(i.s,{size:"md",children:(0,a.jsx)(J.Z,{})}),children:o("course_player:assignment_download")})}),y&&(0,a.jsxs)(a.Fragment,{children:[!N&&(0,a.jsx)(d.Qr,{name:"attachment",control:Z,render:e=>{let{field:{onChange:t,...s}}=e;return(0,a.jsx)(i.W.File,{maxFiles:1,className:"",onChange:e=>{t(e)},...s,accept:["*"]})}}),(0,a.jsx)(d.Qr,{name:"message",control:Z,render:e=>{let{field:t}=e;return(0,a.jsx)(i.W.Textarea,{className:"mb-0",classNames:{inputWrapper:"rounded-lg"},label:o("course_player:assignment_message_input_label"),placeholder:o("course_player:assignment_message_input_placeholder"),rows:5,style:{resize:"none"},...t})}})]})]})]})}),y&&(0,a.jsx)(i.J.Footer,{children:(0,a.jsx)(i.B,{color:"primary",isLoading:A,type:"submit",disabled:!B||!E||A,children:o((null==N?void 0:N.status)==="rejected"?"course_player:assignment_resubmit":"course_player:assignment_submit")})})]})})]})};let MeetingStatus=e=>{let{content:t,className:s}=e,{t:r}=(0,x.Y)(["meeting"]);return t.contentable.is_upcoming?(0,a.jsx)(i.x,{className:s,rounded:"full",variant:"soft",color:"primary",size:"sm",children:r("meeting:is_upcoming")}):t.contentable.is_live?(0,a.jsx)(i.x,{className:s,rounded:"full",variant:"soft",color:"secondary",size:"sm",children:r("meeting:is_live")}):(0,a.jsx)(i.x,{rounded:"full",variant:"soft",color:"success",className:s,size:"sm",children:r("meeting:is_ended")})};var MeetingContent=e=>{let{content:t}=e,{t:s}=(0,x.Y)(["common","meeting"]),[r,l]=(0,g.m9)(),n=t.contentable.is_ended?t.contentable.replay_url:t.contentable.join_url,o=t.contentable.is_ended&&t.contentable.replay_url||!t.contentable.is_ended&&t.contentable.join_url;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.J,{className:"rounded-none rounded-b-lg",children:[(0,a.jsx)(i.J.Header,{className:"rounded-none",children:(0,a.jsx)(i.u.Text,{as:"h3",size:"sm",className:"font-semibold",children:s("meeting:zoom_link")})}),(0,a.jsxs)(i.J.Body,{children:[(0,a.jsx)(C(),{src:"/images/zoom_logo.svg",alt:"zoom-logo",width:80,height:80,className:"mb-6 h-auto w-20"}),(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,a.jsxs)("div",{className:"flex gap-10",children:[(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"text-gray-700",children:s("common:a_day")}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"md",children:(0,c.Z)(t.contentable.start_at).format("DD MMMM")}),(0,a.jsx)(MeetingStatus,{className:"hidden md:block",content:t})]})]}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"text-gray-700",children:s("common:an_hour")}),(0,a.jsx)(i.u.Body,{as:"span",size:"md",dir:"ltr",children:(0,c.Z)(t.contentable.start_at).tz(t.contentable.timezone).format("h:mm A [UTC] Z")})]})]}),(0,a.jsxs)("div",{className:"grid gap-2 md:hidden",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"text-gray-700",children:s("meeting:status")}),(0,a.jsx)(MeetingStatus,{className:"inline-block w-fit",content:t})]}),o&&(0,a.jsx)(i.W.Input,{dir:"ltr",className:"mb-0","aria-label":t.title,value:n,append:(0,a.jsx)(i.B,{onClick:()=>r(n),variant:"link",className:"px-0",color:"gray",icon:l.includes(n)?(0,a.jsx)(i.s,{size:"sm",className:"text-success",children:(0,a.jsx)(B.Z,{})}):(0,a.jsx)(i.s,{size:"sm",children:(0,a.jsx)(H.Z,{})})}),readOnly:!0})]})]}),o&&(0,a.jsx)(i.J.Footer,{children:t.contentable.is_ended?(0,a.jsx)(i.B,{color:"primary",size:"sm",as:"a",href:t.contentable.replay_url,target:"_blank",children:s("meeting:watch_replay")}):(0,a.jsx)(i.B,{color:"primary",size:"sm",as:"a",href:t.contentable.join_url,target:"_blank",disabled:t.contentable.is_upcoming,children:s("meeting:start")})})]})})},eE=s(73268),contents_AccessSection=()=>(0,a.jsx)(i.J,{children:(0,a.jsxs)(i.J.Body,{className:"flex flex-col items-center gap-6 py-6",children:[(0,a.jsx)(i.s,{color:"info",rounded:"base",size:"xl",variant:"solid",children:(0,a.jsx)(eE.Z,{})}),(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)(i.u.Body,{children:"هذا الدرس معتمد على الدروس السابقة"}),(0,a.jsx)(i.u.Body,{className:"text-gray-700",size:"md",children:"هناك بعض الدروس المرتبطة بالدروس التي تسبقها، لذا لا يمكنك مشاهدة هذا الدرس الا اذا أكملت الدرس السابق."})]}),(0,a.jsx)(i.B,{color:"gray",children:"الدرس السابق"})]})}),eA=s(20445),contents_DripContentSection=e=>{let{dripableAt:t,enrolledCourse:s=!1}=e,{t:r}=(0,x.Y)(["drip_content"]);return(0,a.jsx)("div",{className:"border-t border-gray-400 pt-4",children:(0,a.jsx)(u.EmptyState,{bordered:!0,color:"gray",variant:"solid",title:r("drip_content:title"),description:s?(0,a.jsx)(x.C,{i18nKey:"drip_content:description",components:{strong:(0,a.jsx)("strong",{className:"text-black"})},values:{date:(0,c.Z)(t).format("D MMMM، YYYY")}}):"",icon:(0,a.jsx)(eA.Z,{}),actions:(0,a.jsx)(u.PrevNextContentButtons,{})})})},eI=s(75012),eP=s(70256),Quiz_QuizQuestionChoice=e=>{var t,s;let{choice:r,question:l,onChange:n,checked:o,readOnly:c,memberQuiz:d}=e,{t:u}=(0,x.Y)(["course_player"]),isChoiceAnswerCorrect=(e,t)=>(null!=d&&!!d.completed_at||null==d||!d.quiz.show_results_at_end)&&null!=d&&!!d.quiz.show_results&&!!e.answer&&e.answer.correct&&e.answer.choice_id===t.id,isChoiceAfterAnswerCorrect=(e,t)=>(null!=d&&!!d.completed_at||null==d||!d.quiz.show_results_at_end)&&null!=d&&!!d.quiz.show_results&&!!e.answer&&e.answer.correct_choice_id===t.id,isChoiceIncorrect=(e,t)=>(null!=d&&!!d.completed_at||null==d||!d.quiz.show_results_at_end)&&null!=d&&!!d.quiz.show_results&&!!e.answer&&!e.answer.correct&&e.answer.choice_id===t.id;return(0,a.jsxs)("label",{htmlFor:"choice-".concat(r.id),className:(0,X.cn)("w-full rounded-lg border p-4 transition-colors","flex flex-col gap-4",o?"border-primary bg-primary-50":"border-gray",(isChoiceAnswerCorrect(l,r)||!(null==d?void 0:d.quiz.allow_question_navigation)&&isChoiceAfterAnswerCorrect(l,r))&&"border-success bg-success-50",isChoiceIncorrect(l,r)&&"border-danger bg-danger-50"),children:[(0,a.jsx)(i.W.Radio,{id:"choice-".concat(r.id),name:"question-".concat(l.id,"-choice"),description:(0,a.jsx)("span",{className:"prose prose-sm prose-stone sm:prose-base max-w-full",dir:"auto",dangerouslySetInnerHTML:{__html:r.content}}),classNames:{description:(0,X.cn)(o?"!text-black":"text-gray-700","font-medium")},checked:o,readOnly:(null==d||!d.quiz.allow_question_navigation)&&c,onChange:()=>{n&&n({question_id:l.id,choice_id:r.id})}}),isChoiceAfterAnswerCorrect(l,r)&&(0,a.jsx)("div",{className:"flex items-start gap-1",children:isChoiceAnswerCorrect(l,r)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(i.s,{size:"sm",className:"text-success",children:(0,a.jsx)(eI.Z,{})}),(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"whitespace-nowrap font-normal text-success",children:u("course_player:quiz_student_answer_correct")})]}),(null==l?void 0:null===(t=l.answer)||void 0===t?void 0:t.explanation)&&(0,a.jsxs)(a.Fragment,{children:["-",(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"font-bold text-success",children:null==l?void 0:null===(s=l.answer)||void 0===s?void 0:s.explanation})]})]}):(null==d?void 0:d.quiz.allow_question_navigation)?void 0:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(i.s,{size:"sm",className:"text-success",children:(0,a.jsx)(eI.Z,{})}),(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"whitespace-nowrap font-normal text-success",children:u("course_player:quiz_question_answer_correct")})]})}),isChoiceIncorrect(l,r)&&(0,a.jsx)("div",{className:"flex items-start gap-1",children:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(i.s,{size:"sm",className:"text-danger",children:(0,a.jsx)(eP.Z,{})}),(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"whitespace-nowrap font-normal text-danger",children:u("course_player:quiz_student_answer_wrong")})]})})]})},eT=s(4511);let eR=em.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchMemberQuiz:e.query({query:e=>{let{slug:t,chapterId:s,contentId:a}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/quizzes/attempts"),method:"GET"}},transformResponse:e=>e.data,providesTags:["memberQuiz.index"]}),attemptMemberQuiz:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,retake:r}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/quizzes/attempts"),method:"POST",body:{retake:r}}}}),closeMemberQuiz:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/quizzes/attempts/close"),method:"POST"}}}),submitMemberQuizAnswer:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,...r}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/quizzes/attempts/answers"),method:"POST",body:r}}})})}),{useFetchMemberQuizQuery:eV,useAttemptMemberQuizMutation:eq,useCloseMemberQuizMutation:eF,useSubmitMemberQuizAnswerMutation:eD,util:{updateQueryData:eO}}=eR;var Quiz_QuizStatus=()=>{let{query:e}=(0,f.useRouter)(),{slug:t,chapterId:s,contentId:l}=e,{isAuthReady:n}=(0,r.useContext)(m.Vo),{showBoundary:o}=(0,eT.cO)(),{data:i,isLoading:c,isError:d,error:p}=eV({slug:t,chapterId:s,contentId:l},{skip:!n});return((0,r.useEffect)(()=>{d&&p&&500===p.status&&o(p)},[d]),!i||c)?(0,a.jsx)(u.LoadingScreen,{}):i.completed_at?(0,a.jsx)(u.QuizResult,{}):(0,a.jsx)(u.QuizForm,{})},Quiz_QuizContent=e=>{let{content:t}=e;return t.contentable.attempted?(0,a.jsx)(Quiz_QuizStatus,{}):(0,a.jsx)(u.QuizInformation,{content:t})};let PreventNavigation=e=>{let{isPreventing:t,backHref:s,onNavigate:l,icon:n=(0,a.jsx)(eP.Z,{}),title:o,description:c,isSubmitting:d,okLabel:u,cancelLabel:m}=e,[p,x]=(0,r.useState)(!1),[h,C]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let handleClick=e=>{let s=e.target.closest("a");t&&s&&(e.preventDefault(),C(s.href),x(!0))},handlePopState=()=>{t?(window.history.pushState(null,document.title,window.location.href),x(!0),C(s)):window.history.back()},handleBeforeUnload=e=>{t&&(e.preventDefault(),e.returnValue=!0)};return document.querySelectorAll("a").forEach(e=>{e.addEventListener("click",handleClick)}),window.addEventListener("popstate",handlePopState),window.addEventListener("beforeunload",handleBeforeUnload),()=>{document.querySelectorAll("a").forEach(e=>{e.removeEventListener("click",handleClick)}),window.removeEventListener("popstate",handlePopState),window.removeEventListener("beforeunload",handleBeforeUnload)}},[t]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.M,{open:p||d&&p,dismissible:!1,size:"sm",rounded:"2xl",className:"border border-orange bg-orange-100",children:[(0,a.jsx)(i.M.Header,{dismissible:!1,title:(0,a.jsxs)("div",{className:"flex items-start",children:[(0,a.jsx)(i.s,{className:(0,X.cn)("ml-3","text-orange"),children:n}),(0,a.jsxs)("div",{className:"grid gap-3",children:[(0,a.jsx)(i.u.Body,{children:o,className:"!text-base font-bold"}),(0,a.jsx)(i.u.Body,{size:"md",children:c,className:"font-normal text-gray-800"})]})]}),className:"items-start [&>button]:h-[30px] [&>button]:min-w-[30px]"}),(0,a.jsxs)(i.M.Footer,{className:"flex !ps-[3.25rem] !pt-0",children:[(0,a.jsx)(i.B,{className:"bg-orange hover:bg-orange-400 focus:bg-orange focus-visible:ring-orange active:bg-orange-400",size:"sm",disabled:d,onClick:()=>{l(h)},children:u}),m&&(0,a.jsx)(i.B,{color:"gray",variant:"link",size:"sm",onClick:()=>{x(!1),l(null)},children:m})]})]})})};var Quiz_QuizForm=()=>{var e,t,s,l,n;let{t:o}=(0,x.Y)(["course_player"]),{query:c,push:h}=(0,f.useRouter)(),{slug:C,chapterId:v,contentId:_}=c,{isAuthReady:b}=(0,r.useContext)(m.Vo),[w]=(0,p.Z)(),[N]=eD(),[L]=eF(),{data:z,refetch:Z}=eV({slug:C,chapterId:v,contentId:_},{skip:!b}),[S,H]=(0,r.useState)(!1),[B,E]=(0,r.useState)(!1),[A,I]=(0,r.useState)(0),{displayErrors:P,displaySuccess:T}=(0,g.ah)({}),R=(0,g.TL)(),{setCountdown:V,currentTimeFormatted:q,startCountdown:F}=(0,j.Z)(0,()=>{},async()=>{console.log("onEnd memberQuiz",z);let e=await L({slug:c.slug,chapterId:c.chapterId,contentId:c.contentId});P(e)||(R(eO("fetchMemberQuiz",{slug:C,chapterId:v,contentId:_},t=>{Object.assign(t,{...e.data.data,completed_at:null})})),H(!0),E(!1),await w(!0))}),D=M.Ry().shape({answer:M.Ry().shape({question_id:M.Rx().required(),choice_id:M.Rx().required()})}),{handleSubmit:O,reset:W,control:Y,getValues:Q,watch:G,formState:{isSubmitting:J,isValid:U,isDirty:K,isSubmitSuccessful:X}}=(0,d.cI)({defaultValues:{answer:void 0},resolver:(0,k.X)(D)});(0,r.useEffect)(()=>{if(z){R((0,y.Uw)(z)),W({questions:z.questions}),I(z.questions.findIndex(e=>!e.answer));let e=new Date,t=new Date(z.started_at),s=Math.floor((new Date(e).getTime()-new Date(t).getTime())/1e3),a=z.quiz.duration-s;a>0&&(console.log("remainingTimeInSeconds",a),console.log("memberQuiz.quiz.duration",z.quiz.duration),console.log("timeDifferenceInSeconds",s),console.log("startedTime",t),console.log("today",e),console.log("memberQuiz",z),V(a),E(!0),F())}},[z]);let $=null!==(s=Q("questions"))&&void 0!==s?s:[],ee=(0,r.useMemo)(()=>$[A],[z,A,$]),onSubmit=async e=>{if(!e.answer)return;let t=await N({slug:c.slug,chapterId:c.chapterId,contentId:c.contentId,...e.answer});!P(t)&&ee&&($[A]={...ee,answer:(null==z?void 0:z.quiz.show_results_at_end)||!(null==z?void 0:z.quiz.show_results)?{choice_id:e.answer.choice_id}:t.data.data},W({questions:$,answer:void 0}))},isChecked=(e,t)=>e?e.choice_id==t.id:null!=ee&&!!ee.answer&&ee.answer.choice_id==t.id;return(0,a.jsx)("div",{className:"pb-1",children:S?(0,a.jsx)(u.TimeOutSection,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.W,{onSubmit:O(onSubmit),children:(0,a.jsxs)(i.J,{className:"!mb-10",children:[(0,a.jsx)(i.J.Body,{children:(0,a.jsx)(u.QuizQuestion,{index:A,title:null!==(l=null==ee?void 0:ee.title)&&void 0!==l?l:"",questionsLength:null!==(n=null==z?void 0:z.questions.length)&&void 0!==n?n:0,children:null==ee?void 0:ee.choices.map(e=>(0,a.jsx)(d.Qr,{render:t=>{let{field:{onChange:s,value:r}}=t;return(0,a.jsx)(u.QuizQuestionChoice,{memberQuiz:z,readOnly:null!==ee.answer,checked:isChecked(r,e),choice:e,question:ee,onChange:s},e.id)},name:"answer",control:Y},e.id))})}),(0,a.jsx)(i.J.Footer,{children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-between lg:!flex-row lg:items-center",children:[!(null==ee?void 0:ee.answer)||(null==z?void 0:z.quiz.allow_question_navigation)&&K&&(null==ee?void 0:ee.answer.choice_id)!==(null===(e=G("answer"))||void 0===e?void 0:e.choice_id)?(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.B,{as:"button",type:"button",onClick:O(onSubmit),color:"primary",disabled:!K||!U||J,className:"w-full md:!w-auto",children:o("course_player:quiz_submit_answer"),isLoading:J}),(null==z?void 0:z.quiz.allow_question_navigation)&&void 0!==$[A-1]&&(0,a.jsx)(i.B,{type:"button",variant:"outline",color:"primary",className:"w-full md:!w-auto",onClick:()=>{if($[A-1]){I(e=>e-1),W({questions:$,answer:void 0});return}},children:o("course_player:quiz_prev_question")})]}):(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.B,{type:"button",color:"primary",className:"w-full md:!w-auto",onClick:async()=>{if($[A+1]){I(e=>e+1);return}if(null==z?void 0:z.quiz.allow_question_navigation){let e=await L({slug:c.slug,chapterId:c.chapterId,contentId:c.contentId});if(P(e))return;T(e)}else R((0,y.Uw)(null)),await w(!0);Z()},children:o(z&&A==(null==z?void 0:z.questions.length)-1?"course_player:quiz_results":"course_player:quiz_next_question")}),(null==z?void 0:z.quiz.allow_question_navigation)&&void 0!==$[A-1]&&(0,a.jsx)(i.B,{type:"button",variant:"outline",color:"primary",className:"w-full md:!w-auto",onClick:()=>{if($[A-1]){I(e=>e-1);return}},children:o("course_player:quiz_prev_question")})]}),z&&(null==z?void 0:null===(t=z.quiz)||void 0===t?void 0:t.duration)>0&&(0,a.jsx)("div",{className:"mt-2 lg:mt-0",children:(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"text-gray-700",children:(0,a.jsx)(x.C,{i18nKey:"course_player:quiz_quiz_duration",components:{bold:(0,a.jsx)("strong",{className:"text-black"})},values:{time:q}})})})]})})]})}),(0,a.jsx)(PreventNavigation,{title:o("course_player:prevent_title"),okLabel:o("course_player:prevent_ok_label"),onNavigate:async e=>{if(G("answer"))O(onSubmit)().then(async()=>{if(e){let t=await L({slug:c.slug,chapterId:c.chapterId,contentId:c.contentId});P(t)||(Z(),h(e))}});else if(e){let t=await L({slug:c.slug,chapterId:c.chapterId,contentId:c.contentId});if(P(t))return;Z(),h(e)}},isSubmitSuccessful:X,isSubmitting:J,cancelLabel:o("course_player:prevent_cancel_label"),description:o("course_player:prevent_description"),backHref:"/courses/".concat(C,"/chapter/").concat(v,"/content/").concat(_),isPreventing:B})]})})};let IntroImage=e=>{let{className:t}=e;return(0,a.jsxs)("svg",{width:"336",height:"270",viewBox:"0 0 336 270",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_2789_110377)",children:[(0,a.jsx)("path",{d:"M220.311 214.836H166.532V263.32H220.311V214.836Z",fill:"#FAFAFA"}),(0,a.jsx)("path",{d:"M197.653 139.934H192.326C191.879 139.934 191.516 139.571 191.516 139.123C191.516 138.675 191.879 138.312 192.326 138.312H197.653C198.1 138.312 198.463 138.675 198.463 139.123C198.463 139.571 198.1 139.934 197.653 139.934Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M210.756 42.9678H210.723C210.276 42.9678 209.913 42.6043 209.913 42.1565C209.913 41.7087 210.276 41.3452 210.723 41.3452C211.17 41.3452 211.55 41.7087 211.55 42.1565C211.55 42.6043 211.203 42.9678 210.756 42.9678Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M299.72 116.998C299.72 151.173 277.156 180.081 246.103 189.641V205.114H219.922V189.609C250.976 180.081 273.54 151.173 273.54 116.965C273.54 75.008 239.551 40.9951 197.617 40.9951H223.798C265.76 41.0276 299.72 75.0404 299.72 116.998Z",fill:"black"}),(0,a.jsx)("path",{d:"M246.102 205.925H219.922C219.475 205.925 219.112 205.562 219.112 205.114V189.608C219.112 189.252 219.346 188.937 219.686 188.833C234.726 184.218 248.238 174.707 257.728 162.054C267.542 148.972 272.73 133.379 272.73 116.965C272.73 96.8901 264.918 78.016 250.729 63.8183C236.544 49.6239 217.68 41.8062 197.617 41.8062C197.17 41.8062 196.807 41.4427 196.807 40.9949C196.807 40.5471 197.17 40.1836 197.617 40.1836H223.798C244.307 40.1998 263.58 48.196 278.066 62.702C292.55 77.2048 300.527 96.4877 300.527 117.001C300.527 133.755 295.226 149.673 285.201 163.04C275.626 175.803 262.044 185.448 246.909 190.241V205.117C246.909 205.565 246.546 205.929 246.099 205.929L246.102 205.925ZM220.732 204.303H245.292V189.641C245.292 189.284 245.526 188.969 245.866 188.865C260.907 184.234 274.418 174.716 283.908 162.06C293.722 148.979 298.91 133.395 298.91 116.994C298.91 96.916 291.101 78.0388 276.922 63.8443C262.74 49.6466 243.873 41.8192 223.798 41.8029H213.432C227.896 44.8177 241.184 51.9701 251.876 62.6695C266.369 77.1723 274.35 96.452 274.35 116.965C274.35 133.733 269.049 149.663 259.024 163.027C249.45 175.794 235.867 185.425 220.732 190.206V204.303Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M219.958 205.925H192.358C191.911 205.925 191.548 205.562 191.548 205.114C191.548 204.666 191.911 204.303 192.358 204.303H219.958C220.405 204.303 220.768 204.666 220.768 205.114C220.768 205.562 220.405 205.925 219.958 205.925Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M210.724 99.136C205.235 103.173 201.684 109.667 201.684 116.998H175.504C175.504 104.757 185.415 94.8394 197.647 94.8394C202.552 94.8394 207.072 96.4555 210.72 99.136H210.724Z",fill:"black"}),(0,a.jsx)("path",{d:"M201.687 117.809H175.507C175.06 117.809 174.697 117.445 174.697 116.997C174.697 104.331 184.994 94.0278 197.65 94.0278C202.552 94.0278 207.237 95.5693 211.203 98.4802C211.411 98.6328 211.534 98.8762 211.534 99.1358C211.534 99.3954 211.411 99.6355 211.203 99.7913C205.669 103.864 202.494 110.137 202.494 117.001C202.494 117.448 202.131 117.812 201.684 117.812L201.687 117.809ZM176.333 116.186H200.89C201.126 109.582 204.237 103.342 209.356 99.1682C205.87 96.8641 201.846 95.6504 197.65 95.6504C186.157 95.6504 176.758 104.789 176.33 116.186H176.333Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M175.507 117.809H147.907C147.46 117.809 147.097 117.445 147.097 116.997C147.097 116.549 147.46 116.186 147.907 116.186H175.507C175.954 116.186 176.317 116.549 176.317 116.997C176.317 117.445 175.954 117.809 175.507 117.809Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M246.135 214.837H219.955V263.32H246.135V214.837Z",fill:"black"}),(0,a.jsx)("path",{d:"M246.135 264.131H219.955C219.507 264.131 219.145 263.768 219.145 263.32V214.837C219.145 214.389 219.507 214.025 219.955 214.025H246.135C246.582 214.025 246.945 214.389 246.945 214.837V263.32C246.945 263.768 246.582 264.131 246.135 264.131ZM220.765 262.509H245.325V215.648H220.765V262.509Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M272.992 116.997C272.992 151.172 250.428 180.081 219.375 189.641V205.114H165.595V139.155H197.067C209.301 139.155 219.21 129.238 219.21 116.997C219.21 109.666 215.658 103.173 210.17 99.1358C206.489 96.4228 201.972 94.8391 197.096 94.8391C184.861 94.8391 174.953 104.756 174.953 116.997H121.144C121.144 75.0402 155.133 41.0273 197.067 41.0273C239 41.0273 272.989 75.0402 272.989 116.997H272.992Z",fill:"#FAFAFA"}),(0,a.jsx)("path",{d:"M219.958 205.925H166.178C165.731 205.925 165.368 205.562 165.368 205.114V188.06C165.368 187.612 165.731 187.249 166.178 187.249C166.626 187.249 166.988 187.612 166.988 188.06V204.302H219.148V189.641C219.148 189.284 219.381 188.969 219.721 188.865C234.762 184.234 248.273 174.716 257.764 162.06C267.578 148.978 272.765 133.395 272.765 116.997C272.765 96.9223 264.953 78.045 250.765 63.8506C236.58 49.6561 217.716 41.8384 197.653 41.8384C179.207 41.8384 161.471 48.6014 147.707 60.8845C147.373 61.183 146.861 61.1538 146.563 60.8195C146.265 60.4853 146.294 59.9726 146.628 59.674C160.686 47.1281 178.808 40.2158 197.653 40.2158C218.15 40.2158 237.419 48.2022 251.912 62.705C266.405 77.2078 274.385 96.4875 274.385 117C274.385 133.752 269.085 149.673 259.06 163.04C249.485 175.803 235.902 185.448 220.768 190.241V205.117C220.768 205.565 220.405 205.928 219.958 205.928V205.925Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M197.653 139.967H180.61C180.162 139.967 179.8 139.603 179.8 139.155C179.8 138.708 180.162 138.344 180.61 138.344H197.653C209.417 138.344 218.986 128.768 218.986 116.997C218.986 110.134 215.81 103.861 210.276 99.788C206.605 97.0815 202.25 95.6504 197.682 95.6504C185.917 95.6504 176.349 105.227 176.349 116.997C176.349 117.445 175.986 117.809 175.539 117.809H121.73C121.283 117.809 120.92 117.445 120.92 116.997C120.92 102.215 125.116 87.8911 133.058 75.5691C133.301 75.1927 133.803 75.0856 134.179 75.3257C134.555 75.5691 134.661 76.0721 134.422 76.4486C126.794 88.2838 122.699 102.004 122.547 116.186H174.745C175.173 103.893 185.298 94.0278 197.685 94.0278C202.6 94.0278 207.285 95.5692 211.238 98.4802C217.103 102.796 220.606 109.718 220.606 116.997C220.606 129.663 210.308 139.967 197.653 139.967Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M206.142 264.131H166.179C165.732 264.131 165.369 263.768 165.369 263.32V214.837C165.369 214.389 165.732 214.025 166.179 214.025C166.626 214.025 166.989 214.389 166.989 214.837V262.509H206.142C206.589 262.509 206.952 262.872 206.952 263.32C206.952 263.768 206.589 264.131 206.142 264.131Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M219.958 264.131C219.511 264.131 219.148 263.768 219.148 263.32V215.648H197.653C197.206 215.648 196.843 215.285 196.843 214.837C196.843 214.389 197.206 214.025 197.653 214.025H219.958C220.405 214.025 220.768 214.389 220.768 214.837V263.32C220.768 263.768 220.405 264.131 219.958 264.131Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M55.7163 66.9303H223.473C228.508 66.9303 232.575 62.8608 232.575 57.8211V35.955C232.575 30.9152 228.508 26.8457 223.473 26.8457H55.7163C50.6812 26.8457 46.6116 30.9152 46.6116 35.955V57.8211C46.6116 62.8608 50.6779 66.9303 55.7163 66.9303Z",fill:"white"}),(0,a.jsx)("path",{d:"M223.185 66.9303H176.123V26.8457H223.185C228.382 26.8457 232.611 31.0774 232.611 36.2762V57.4965C232.611 62.7278 228.382 66.9271 223.185 66.9271V66.9303Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M223.509 67.7419H213.05C212.603 67.7419 212.24 67.3784 212.24 66.9306C212.24 66.4827 212.603 66.1193 213.05 66.1193H223.509C228.081 66.1193 231.801 62.397 231.801 57.8213V35.9552C231.801 31.3795 228.081 27.6573 223.509 27.6573H148.199C147.752 27.6573 147.389 27.2938 147.389 26.846C147.389 26.3981 147.752 26.0347 148.199 26.0347H223.509C228.975 26.0347 233.421 30.4838 233.421 35.9552V57.8213C233.421 63.2895 228.975 67.7419 223.509 67.7419Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M197.653 67.7419H55.7162C50.2501 67.7419 45.8047 63.2927 45.8047 57.8213V47.7742C45.8047 47.3264 46.1676 46.9629 46.6147 46.9629C47.0619 46.9629 47.4247 47.3264 47.4247 47.7742V57.8213C47.4247 62.397 51.1444 66.1193 55.7162 66.1193H197.649C198.097 66.1193 198.46 66.4827 198.46 66.9306C198.46 67.3784 198.097 67.7419 197.649 67.7419H197.653Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M46.6147 38.996C46.1676 38.996 45.8047 38.6325 45.8047 38.1847V35.9552C45.8047 30.4838 50.2501 26.0347 55.7162 26.0347H128.603C129.05 26.0347 129.413 26.3981 129.413 26.846C129.413 27.2938 129.05 27.6573 128.603 27.6573H55.7162C51.1444 27.6573 47.4247 31.3795 47.4247 35.9552V38.1847C47.4247 38.6325 47.0619 38.996 46.6147 38.996Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M176.123 58.0517C175.675 58.0517 175.312 57.6883 175.312 57.2404V26.846C175.312 26.3981 175.675 26.0347 176.123 26.0347C176.57 26.0347 176.933 26.3981 176.933 26.846V57.2404C176.933 57.6883 176.57 58.0517 176.123 58.0517Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M201.243 55.0694C198.35 55.0694 195.456 53.966 193.253 51.7625C191.118 49.6272 189.942 46.7844 189.942 43.7631C189.942 40.7418 191.118 37.9023 193.253 35.7637C197.66 31.3535 204.83 31.3535 209.237 35.7637C211.372 37.8991 212.548 40.7418 212.548 43.7631C212.548 46.7844 211.372 49.6239 209.237 51.7625C207.033 53.966 204.14 55.0694 201.246 55.0694H201.243ZM201.243 34.7285C198.93 34.7285 196.616 35.6079 194.854 37.3733C193.146 39.0803 192.207 41.3487 192.207 43.7631C192.207 46.1775 193.146 48.4459 194.854 50.1529C198.376 53.6772 204.107 53.6772 207.629 50.1529C209.337 48.4459 210.277 46.1775 210.277 43.7631C210.277 41.3487 209.337 39.0803 207.629 37.3733C205.867 35.6112 203.553 34.7285 201.24 34.7285H201.243Z",fill:"white"}),(0,a.jsx)("path",{d:"M217.664 61.3165C217.373 61.3165 217.084 61.2062 216.864 60.9855L207.633 51.7465C207.189 51.3019 207.189 50.5847 207.633 50.1401C208.077 49.6955 208.793 49.6955 209.237 50.1401L218.468 59.3791C218.912 59.8237 218.912 60.5409 218.468 60.9855C218.247 61.2062 217.956 61.3198 217.664 61.3198V61.3165Z",fill:"white"}),(0,a.jsx)("path",{d:"M79.0552 51.9442C77.5064 50.6526 75.9901 49.2962 74.7297 47.6476C74.4056 47.229 74.1173 46.7746 73.8581 46.2911C73.7285 46.0315 73.5989 45.7751 73.5017 45.4831C73.4045 45.191 73.3396 44.9022 73.3072 44.5127C73.3072 44.1558 73.372 43.7047 73.6313 43.3185C73.7609 43.1238 73.9553 42.9615 74.114 42.835C74.3084 42.7376 74.5028 42.6403 74.6616 42.5754C75.4036 42.3807 75.9836 42.5105 76.5344 42.6403C77.6328 42.9323 78.5692 43.4483 79.4408 43.9968C80.3124 44.5452 81.1192 45.191 81.8936 45.8692C82.6679 46.5475 83.3451 47.2906 84.0255 48.0662C84.7027 48.8418 85.3151 49.6823 85.8335 50.6494C86.3163 51.5873 86.7051 52.6841 86.6403 53.9108C86.6403 54.2029 86.5431 54.5242 86.4783 54.8162C86.4459 54.9785 86.3487 55.1083 86.3163 55.2349L86.2191 55.462C86.1867 55.5269 86.1219 55.5918 86.0895 55.6567C85.9923 55.7865 85.9275 55.9164 85.8303 56.0429L85.5063 56.3999C85.4091 56.5297 85.2795 56.627 85.1823 56.692C85.0527 56.7893 84.9555 56.8867 84.8259 56.9516C83.8571 57.5974 82.7587 57.8894 81.6959 58.016C80.6299 58.1458 79.5672 58.1133 78.5336 57.9835C74.4024 57.4351 70.6568 55.5302 67.4621 53.0736C67.1057 52.8139 67.0441 52.298 67.3001 51.9442C67.5593 51.5873 68.0745 51.5256 68.4309 51.782C69.9472 52.9438 71.5932 53.9465 73.304 54.7546C75.0472 55.5302 76.8552 56.1435 78.728 56.3707C79.6644 56.5005 80.6007 56.5005 81.4723 56.4031C82.3763 56.3058 83.2155 56.0462 83.8927 55.5951C84.5375 55.144 84.9587 54.4982 84.9911 53.7551C85.0559 52.9795 84.7967 52.1389 84.3787 51.3633C83.9608 50.5553 83.4099 49.8121 82.7975 49.1014C82.1852 48.3908 81.5047 47.6801 80.7952 47.0667C80.0856 46.4209 79.3436 45.84 78.566 45.3208C77.7916 44.8373 76.9524 44.3829 76.1456 44.1915C75.7568 44.0941 75.3388 44.0617 75.112 44.1266C74.9824 44.159 74.95 44.1915 74.95 44.2239C74.95 44.2239 74.9176 44.3213 74.9176 44.4511C74.9176 44.7107 75.0796 45.1293 75.274 45.5155C75.4684 45.9017 75.7244 46.2911 76.016 46.6448C77.1468 48.1311 78.5984 49.4227 80.0823 50.6819C80.4387 50.9739 80.4679 51.4899 80.1795 51.8112C79.9203 52.1974 79.4051 52.2298 79.0487 51.941L79.0552 51.9442Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M98.7451 50.5226C96.3895 49.0363 94.0955 47.4527 92.0316 45.5477C90.998 44.6099 89.9968 43.5779 89.1252 42.4161C88.704 41.8352 88.3184 41.1894 87.9944 40.5112C87.8324 40.1542 87.7028 39.7681 87.638 39.3819C87.5408 38.9632 87.5084 38.5089 87.6056 38.0578C87.638 37.8307 87.7352 37.5743 87.8648 37.3471C87.9944 37.12 88.1564 36.8961 88.3476 36.7338C88.7364 36.3768 89.1868 36.1854 89.608 36.088C90.4796 35.8933 91.254 35.9907 91.9959 36.1529C93.4799 36.4774 94.7727 37.0908 96.0299 37.8015C98.4827 39.2553 100.647 41.0629 102.614 43.0652C103.583 44.1004 104.519 45.1324 105.326 46.3266C106.133 47.5208 106.81 48.8124 107.199 50.2987C107.328 50.6557 107.328 51.0419 107.393 51.428C107.425 51.6227 107.393 51.8142 107.425 52.0089C107.425 52.2036 107.458 52.3951 107.393 52.5898C107.328 53.3979 107.069 54.1735 106.651 54.8842C106.23 55.5624 105.682 56.1757 105.037 56.6301C104.875 56.7599 104.713 56.8572 104.555 56.9546C104.393 57.0519 104.231 57.1493 104.072 57.2467L103.557 57.4738C103.459 57.5063 103.395 57.5712 103.297 57.6036L103.038 57.701C101.651 58.217 100.164 58.4117 98.7451 58.4441C97.3259 58.4766 95.8711 58.3468 94.4843 58.0872C93.0976 57.8276 91.74 57.4738 90.3856 57.0227C89.0636 56.5717 87.7708 56.02 86.4813 55.4066C86.0925 55.2119 85.9013 54.7284 86.0924 54.339C86.2869 53.9528 86.7696 53.7581 87.1584 53.9528H87.1909C88.3865 54.5337 89.6112 55.0821 90.904 55.504C92.1644 55.9226 93.454 56.2796 94.7468 56.5068C96.0364 56.7339 97.3616 56.8637 98.6835 56.828C99.9764 56.7956 101.266 56.6009 102.462 56.1822C103.657 55.7636 104.655 55.0529 105.271 54.0826C105.53 53.5991 105.721 53.0506 105.786 52.4665C105.818 52.3367 105.786 52.1744 105.786 52.0154V51.5643C105.721 51.2723 105.721 50.9834 105.624 50.6589C105.332 49.4647 104.72 48.2997 103.978 47.2352C103.236 46.1384 102.364 45.1681 101.46 44.1653C99.5875 42.2604 97.5236 40.5144 95.2296 39.158C94.0988 38.5122 92.9064 37.9637 91.6784 37.6717C91.0984 37.5419 90.4828 37.5094 90 37.6068C89.7732 37.6717 89.5788 37.769 89.4524 37.8664C89.3228 37.9637 89.258 38.126 89.2256 38.3175C89.1284 38.7036 89.2904 39.2878 89.5173 39.8362C89.7765 40.3846 90.0972 40.9331 90.486 41.4523C91.2604 42.4843 92.1968 43.4546 93.1656 44.36C95.1356 46.1676 97.3616 47.7188 99.6523 49.1402C100.041 49.3673 100.135 49.8833 99.9115 50.237C99.6199 50.6232 99.1372 50.753 98.7483 50.5291L98.7451 50.5226Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M121.245 51.8143C118.662 50.1333 116.209 48.3257 113.919 46.226C112.788 45.1941 111.693 44.0615 110.724 42.8348C110.241 42.2215 109.787 41.5757 109.402 40.865C109.013 40.1543 108.66 39.3787 108.53 38.4733C108.465 38.0222 108.465 37.503 108.692 36.9545C108.789 36.6949 108.952 36.4385 109.146 36.2114C109.34 36.0167 109.596 35.8252 109.823 35.7278C110.306 35.4682 110.792 35.4358 111.242 35.4033C111.693 35.4033 112.114 35.4358 112.532 35.5331C114.178 35.8901 115.597 36.6008 116.955 37.4056C119.634 39.0217 121.957 41.0889 124.122 43.2502C125.188 44.3503 126.221 45.5121 127.158 46.7712C128.062 48.0304 128.901 49.4193 129.384 51.0354C129.61 51.8435 129.74 52.7164 129.643 53.5861C129.513 54.4915 129.128 55.3937 128.512 56.0395C127.9 56.7177 127.125 57.1688 126.351 57.4933C125.577 57.8146 124.77 58.0093 123.995 58.1391C122.414 58.3988 120.833 58.3663 119.281 58.204C117.732 58.0418 116.216 57.7854 114.696 57.396C111.696 56.6528 108.79 55.5884 106.013 54.326C105.592 54.1313 105.433 53.6802 105.624 53.2616C105.818 52.843 106.269 52.6807 106.69 52.8754C109.402 54.1021 112.211 55.1373 115.082 55.848C116.533 56.2018 117.988 56.4614 119.44 56.6236C120.891 56.7534 122.379 56.7859 123.765 56.5587C124.475 56.4614 125.152 56.2991 125.768 56.0103C126.38 55.7507 126.931 55.397 127.349 54.9459C127.77 54.4948 127.994 53.9431 128.091 53.3298C128.156 52.7164 128.091 52.0706 127.896 51.3924C127.508 50.0683 126.766 48.8092 125.926 47.6442C125.087 46.45 124.086 45.3498 123.052 44.2854C120.953 42.1858 118.695 40.1835 116.209 38.6647C114.949 37.9216 113.627 37.2758 112.305 36.9837C111.66 36.8539 110.98 36.8539 110.594 37.0486C110.4 37.146 110.303 37.2758 110.205 37.4348C110.141 37.6295 110.108 37.8859 110.141 38.178C110.205 38.7589 110.497 39.4046 110.818 40.018C111.142 40.6313 111.56 41.2122 112.013 41.7931C112.917 42.9224 113.951 43.9901 115.046 44.9896C117.24 46.9919 119.663 48.7703 122.148 50.4156C122.505 50.6427 122.602 51.1263 122.375 51.4832C122.084 51.9343 121.601 52.0317 121.245 51.8045V51.8143Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M140.582 51.1685C140.034 50.8115 139.548 50.4578 139.033 50.1041L137.517 49.0364C137.001 48.6794 136.515 48.3257 136 47.9395C135.741 47.7448 135.517 47.5533 135.258 47.3586C134.999 47.1639 134.775 46.94 134.516 46.7453C133.58 45.9048 132.676 44.9994 131.869 44.0323C131.062 43.0295 130.32 41.9651 129.931 40.5437C129.899 40.349 129.834 40.1868 129.834 39.9953C129.834 39.8979 129.802 39.8006 129.802 39.7032L129.834 39.3787V39.2164L129.867 39.0542C129.899 38.9568 129.931 38.827 129.964 38.7329C130.029 38.6356 130.061 38.5057 130.126 38.4084C130.191 38.311 130.288 38.2137 130.353 38.1163L130.482 37.9865L130.644 37.8892C130.741 37.8243 130.839 37.7269 130.968 37.6945C131.195 37.5971 131.389 37.5322 131.613 37.4997C131.71 37.4673 131.807 37.4673 131.937 37.4673H132.229C132.423 37.4673 132.614 37.4997 132.776 37.4997C134.195 37.6945 135.359 38.3078 136.489 38.9211C137.588 39.5669 138.618 40.3101 139.587 41.1181C140.556 41.9262 141.492 42.7667 142.396 43.6364C143.268 44.5418 144.107 45.5089 144.816 46.609C145.526 47.6767 146.138 48.8709 146.462 50.1949C146.527 50.5162 146.624 50.8407 146.624 51.1977L146.657 51.7137V52.4893L146.624 52.7489L146.527 53.2649C146.43 53.6219 146.333 53.9756 146.171 54.2676C145.879 54.9459 145.429 55.4943 144.91 55.9811L144.525 56.3381C144.395 56.4354 144.233 56.5328 144.104 56.6269C143.812 56.8216 143.524 56.9839 143.2 57.1429C141.972 57.7238 140.65 57.9509 139.36 58.0483C138.067 58.1456 136.778 58.0483 135.517 57.8536C134.26 57.6589 133.032 57.3701 131.837 56.9806C130.641 56.6237 129.449 56.1726 128.318 55.689C127.9 55.5268 127.705 55.0432 127.867 54.6246C128.029 54.206 128.512 54.0113 128.933 54.1735H128.966C130.064 54.6246 131.195 55.0789 132.323 55.4002C133.453 55.7572 134.613 56.046 135.777 56.2083C136.94 56.403 138.132 56.4679 139.263 56.403C140.394 56.3381 141.554 56.1109 142.522 55.6598C143.491 55.2087 144.33 54.4981 144.748 53.5602C144.878 53.333 144.91 53.0767 145.008 52.8495L145.072 52.4601L145.105 52.2654V51.6845L145.072 51.2983C145.072 51.0387 144.975 50.7499 144.943 50.4902C144.684 49.4226 144.168 48.3906 143.524 47.4203C142.879 46.45 142.105 45.5478 141.298 44.7073C139.619 43.0263 137.747 41.4459 135.744 40.2484C134.743 39.6675 133.645 39.1515 132.647 39.0217C132.164 38.9568 131.71 39.0542 131.581 39.2164C131.419 39.3138 131.386 39.7649 131.516 40.216C131.645 40.6995 131.872 41.1863 132.161 41.6698C132.452 42.1533 132.773 42.6401 133.162 43.0912C133.904 43.9966 134.743 44.8371 135.615 45.6419C135.841 45.8366 136.065 46.0281 136.292 46.2228C136.519 46.4175 136.742 46.5765 137.001 46.7713C137.484 47.125 137.97 47.4819 138.485 47.8357L139.969 48.9033C140.452 49.2603 140.97 49.614 141.453 49.9061H141.486C141.842 50.1333 141.939 50.6168 141.712 50.9705C141.421 51.295 140.938 51.3892 140.582 51.1652V51.1685Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M157.592 47.521C158.075 49.0073 158.431 50.6201 158.14 52.3011C157.978 53.1416 157.625 54.0114 157.009 54.6896C156.397 55.4003 155.525 55.7865 154.686 55.9812C152.975 56.3382 151.394 56.0461 149.877 55.6599C148.393 55.2413 146.971 54.6571 145.584 54.0113C145.195 53.8166 145.004 53.3331 145.195 52.9437C145.39 52.5575 145.873 52.3628 146.261 52.5575C147.583 53.2033 148.909 53.7517 150.295 54.1412C151.65 54.5273 153.072 54.7545 154.297 54.4657C154.909 54.3034 155.46 54.0795 155.813 53.6252C156.202 53.2065 156.458 52.6549 156.555 52.0415C156.782 50.7824 156.523 49.361 156.073 48.037C155.943 47.6183 156.137 47.1964 156.555 47.0374C156.977 46.8752 157.427 47.1348 157.589 47.521H157.592Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M59.3324 17.5484C59.125 17.5484 58.9177 17.4705 58.7589 17.3115C58.4414 16.9935 58.4414 16.4807 58.7589 16.1627L74.6743 0.238522C74.9919 -0.0795072 75.5038 -0.0795072 75.8213 0.238522C76.1389 0.556551 76.1389 1.06929 75.8213 1.38732L59.9059 17.3115C59.7471 17.4705 59.5398 17.5484 59.3324 17.5484Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M75.2478 17.5484C75.0405 17.5484 74.8331 17.4705 74.6743 17.3115L58.7589 1.38732C58.4414 1.06929 58.4414 0.556551 58.7589 0.238522C59.0764 -0.0795072 59.5884 -0.0795072 59.9059 0.238522L75.8213 16.1627C76.1389 16.4807 76.1389 16.9935 75.8213 17.3115C75.6626 17.4705 75.4552 17.5484 75.2478 17.5484Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M106.301 17.5484H88.707C88.2599 17.5484 87.897 17.1849 87.897 16.7371C87.897 16.2892 88.2599 15.9258 88.707 15.9258H106.301C106.748 15.9258 107.111 16.2892 107.111 16.7371C107.111 17.1849 106.748 17.5484 106.301 17.5484Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M279.32 269.262C282.353 269.262 284.096 266.613 283.257 263.352L235.741 81.2091C234.902 77.9477 231.739 75.2964 228.703 75.2964C225.667 75.2964 223.927 77.9445 224.767 81.2091L272.283 263.352C273.154 266.646 276.284 269.262 279.32 269.262Z",fill:"white"}),(0,a.jsx)("path",{d:"M280.545 96.6822L276.511 81.1766C276.09 79.5281 276.317 78.0742 277.026 76.9774C277.736 75.9129 278.931 75.2314 280.448 75.2314C283.48 75.2314 286.614 77.8795 287.485 81.1409L334.969 263.251C335.808 266.513 334.065 269.161 331.032 269.161C328 269.161 324.866 266.513 323.995 263.251L319.961 247.746",fill:"white"}),(0,a.jsx)("path",{d:"M264.889 193.652C264.529 193.652 264.202 193.412 264.104 193.045L234.956 81.3165C234.218 78.4413 231.353 76.0106 228.703 76.0106C227.592 76.0106 226.688 76.4227 226.085 77.1983C225.375 78.1167 225.178 79.47 225.547 80.9076C225.657 81.3425 225.398 81.7838 224.964 81.8941C224.53 82.0045 224.089 81.7449 223.979 81.31C223.483 79.3824 223.784 77.5196 224.802 76.2021C225.709 75.0306 227.093 74.3848 228.7 74.3848C232.089 74.3848 235.595 77.3087 236.521 80.9044L265.669 192.63C265.783 193.065 265.524 193.506 265.089 193.62C265.021 193.639 264.953 193.646 264.885 193.646L264.889 193.652Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M279.32 270.008C275.931 270.008 272.425 267.084 271.499 263.489L237.896 134.677C237.782 134.242 238.041 133.801 238.476 133.687C238.91 133.574 239.35 133.833 239.464 134.268L273.067 263.083C273.806 265.958 276.67 268.389 279.32 268.389C280.432 268.389 281.336 267.977 281.938 267.201C282.648 266.283 282.846 264.929 282.476 263.492L267.112 204.579C266.998 204.144 267.257 203.702 267.692 203.589C268.126 203.475 268.566 203.735 268.68 204.17L284.045 263.086C284.54 265.017 284.239 266.876 283.222 268.197C282.314 269.369 280.931 270.015 279.324 270.015L279.32 270.008Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M308.663 205.085C308.303 205.085 307.976 204.845 307.879 204.478L300.456 176.086C300.342 175.651 300.601 175.21 301.036 175.096C301.47 174.982 301.91 175.242 302.024 175.677L309.447 204.069C309.56 204.504 309.301 204.945 308.867 205.059C308.799 205.078 308.728 205.085 308.663 205.085Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M289.906 133.314C289.546 133.314 289.219 133.071 289.121 132.707L281.731 104.283C281.617 103.848 281.877 103.406 282.311 103.293C282.745 103.179 283.186 103.439 283.299 103.874L290.69 132.298C290.803 132.733 290.544 133.175 290.11 133.288C290.042 133.304 289.974 133.314 289.906 133.314Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M331.032 269.911C327.624 269.911 324.189 267.052 323.211 263.398L319.174 247.889C319.06 247.454 319.319 247.013 319.754 246.899C320.188 246.785 320.628 247.045 320.742 247.48L324.776 262.985C325.557 265.909 328.363 268.291 331.029 268.291C332.137 268.291 333.045 267.879 333.644 267.104C334.354 266.185 334.551 264.832 334.182 263.394L320.301 210.199C320.188 209.764 320.447 209.323 320.881 209.209C321.312 209.096 321.756 209.355 321.869 209.79L335.75 262.989C336.246 264.92 335.944 266.782 334.927 268.1C334.02 269.271 332.636 269.917 331.032 269.917V269.911Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M314.31 184.77C313.95 184.77 313.623 184.53 313.526 184.163L310.428 172.341C310.315 171.906 310.574 171.464 311.005 171.351C311.439 171.237 311.88 171.497 311.993 171.929L315.091 183.751C315.204 184.186 314.945 184.627 314.514 184.741C314.446 184.76 314.375 184.767 314.307 184.767L314.31 184.77Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M308.662 163.063C308.303 163.063 307.976 162.823 307.878 162.456L286.704 81.2514C285.923 78.3275 283.117 75.9455 280.451 75.9455C279.275 75.9455 278.296 76.4355 277.703 77.3279C277.091 78.2755 276.948 79.5055 277.298 80.8749L281.332 96.374C281.445 96.8088 281.186 97.2502 280.752 97.3638C280.318 97.4773 279.877 97.2177 279.764 96.7829L275.73 81.2773C275.273 79.4795 275.493 77.7596 276.349 76.4323C277.246 75.0855 278.74 74.3164 280.451 74.3164C283.859 74.3164 287.294 77.1754 288.269 80.8295L309.447 162.037C309.56 162.472 309.301 162.913 308.867 163.027C308.798 163.046 308.73 163.053 308.662 163.053V163.063Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M299.27 169.2C298.91 169.2 298.583 168.956 298.485 168.593L291.095 140.201C290.981 139.766 291.241 139.324 291.675 139.211C292.109 139.097 292.55 139.357 292.663 139.792L300.054 168.184C300.167 168.619 299.908 169.06 299.474 169.174C299.406 169.193 299.338 169.2 299.27 169.2Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M318.023 241.003C317.664 241.003 317.336 240.763 317.239 240.396L309.816 212.004C309.703 211.569 309.962 211.128 310.396 211.014C310.83 210.9 311.271 211.16 311.384 211.595L318.807 239.987C318.921 240.422 318.661 240.863 318.227 240.977C318.159 240.996 318.088 241.003 318.023 241.003Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M241.747 104.143L282.518 104.078H285.1C287.005 104.078 288.133 102.397 287.585 100.33C287.326 99.2979 286.681 98.3601 285.874 97.6818C285.068 97.0036 284.099 96.585 283.13 96.585H280.548L239.777 96.6499L241.747 104.143Z",fill:"white"}),(0,a.jsx)("path",{d:"M251.108 140.061L291.879 139.996H294.461C296.366 139.996 297.494 138.315 296.946 136.248C296.687 135.216 296.042 134.278 295.236 133.6C294.429 132.922 293.46 132.503 292.491 132.503H289.909L249.138 132.568L251.108 140.061Z",fill:"white"}),(0,a.jsx)("path",{d:"M260.469 175.946L301.24 175.881H303.822C305.727 175.881 306.858 174.204 306.307 172.137C306.048 171.105 305.403 170.167 304.596 169.488C303.79 168.81 302.821 168.392 301.852 168.392H299.27L258.499 168.457L260.469 175.95V175.946Z",fill:"white"}),(0,a.jsx)("path",{d:"M269.862 211.864L310.633 211.799H313.215C315.12 211.799 316.251 210.118 315.7 208.051C315.441 207.019 314.796 206.081 313.989 205.403C313.183 204.725 312.214 204.306 311.245 204.306H308.663L267.892 204.371L269.862 211.864Z",fill:"white"}),(0,a.jsx)("path",{d:"M279.223 247.749L319.993 247.685H322.575C324.477 247.685 325.608 246.004 325.061 243.936C324.801 242.904 324.157 241.967 323.35 241.288C322.543 240.61 321.574 240.191 320.605 240.191H318.023L277.253 240.256L279.223 247.749Z",fill:"white"}),(0,a.jsx)("path",{d:"M241.712 104.987C241.352 104.987 241.025 104.747 240.928 104.383L238.958 96.89C238.893 96.6467 238.945 96.387 239.101 96.1891C239.253 95.9911 239.489 95.8743 239.742 95.8711L280.512 95.8062H283.095C284.213 95.8062 285.369 96.2637 286.358 97.0945C287.343 97.922 288.046 99.0156 288.334 100.168C288.678 101.459 288.473 102.728 287.77 103.643C287.135 104.468 286.176 104.922 285.062 104.922H282.479L252.557 104.954C252.11 104.954 251.747 104.591 251.747 104.143C251.747 103.695 252.11 103.332 252.557 103.332L285.065 103.299C285.671 103.299 286.163 103.075 286.49 102.654C286.883 102.144 286.983 101.385 286.769 100.573C286.565 99.7491 286.037 98.941 285.321 98.3374C284.624 97.7533 283.834 97.4287 283.098 97.4287H280.516L240.798 97.4904L242.499 103.968C242.613 104.403 242.354 104.844 241.923 104.958C241.855 104.977 241.783 104.984 241.715 104.984L241.712 104.987Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M251.108 140.872C250.661 140.872 250.298 140.509 250.298 140.061C250.298 139.613 250.661 139.249 251.108 139.249L291.879 139.185H294.461C295.067 139.185 295.56 138.961 295.887 138.539C296.279 138.026 296.379 137.27 296.165 136.459C295.958 135.634 295.433 134.823 294.717 134.223C294.02 133.639 293.23 133.314 292.494 133.314H266.444C265.997 133.314 265.634 132.951 265.634 132.503C265.634 132.055 265.997 131.691 266.444 131.691H292.494C293.612 131.691 294.769 132.149 295.76 132.98C296.745 133.807 297.448 134.901 297.737 136.053C298.08 137.345 297.876 138.613 297.173 139.529C296.538 140.353 295.579 140.81 294.464 140.81H291.882L251.115 140.875L251.108 140.872Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M260.469 176.757C260.1 176.757 259.779 176.507 259.685 176.154L257.715 168.661C257.65 168.417 257.702 168.158 257.858 167.96C258.01 167.762 258.247 167.645 258.499 167.642L299.27 167.577H301.852C302.97 167.577 304.127 168.034 305.118 168.865C306.103 169.696 306.806 170.786 307.095 171.938C307.438 173.23 307.234 174.499 306.531 175.414C305.896 176.238 304.937 176.692 303.822 176.692H301.24L260.473 176.757H260.469ZM259.549 169.261L261.091 175.131L301.237 175.067H303.819C304.425 175.067 304.917 174.843 305.245 174.421C305.637 173.911 305.737 173.152 305.523 172.341C305.319 171.516 304.791 170.705 304.075 170.105C303.378 169.521 302.588 169.196 301.852 169.196H299.27L259.549 169.258V169.261Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M269.862 212.643C269.493 212.643 269.172 212.393 269.078 212.039L267.108 204.546C267.043 204.303 267.095 204.043 267.25 203.845C267.403 203.647 267.639 203.53 267.892 203.527L289.905 203.495C290.352 203.495 290.715 203.858 290.715 204.306C290.715 204.754 290.352 205.117 289.905 205.117L268.939 205.146L270.481 211.017L310.626 210.952H313.208C313.814 210.952 314.307 210.728 314.634 210.306C315.026 209.797 315.126 209.037 314.913 208.226C314.705 207.402 314.18 206.591 313.464 205.99C312.768 205.406 311.977 205.082 311.241 205.082H308.659L297.105 205.114C296.658 205.114 296.295 204.754 296.295 204.306C296.295 203.858 296.654 203.495 297.102 203.491L311.241 203.459C312.359 203.459 313.516 203.917 314.504 204.747C315.489 205.575 316.192 206.668 316.481 207.821C316.824 209.112 316.62 210.381 315.917 211.296C315.282 212.12 314.323 212.575 313.208 212.575H310.626L269.859 212.64L269.862 212.643Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M279.223 248.561C278.853 248.561 278.532 248.311 278.439 247.957L276.469 240.464C276.355 240.029 276.614 239.588 277.045 239.474C277.479 239.361 277.92 239.62 278.033 240.052L279.845 246.941L319.99 246.876H322.572C323.178 246.876 323.671 246.653 323.995 246.231C324.387 245.718 324.49 244.962 324.273 244.15C324.066 243.326 323.538 242.515 322.825 241.915C322.128 241.327 321.338 241.006 320.602 241.006H318.02L287.773 241.038C287.326 241.038 286.963 240.675 286.963 240.227C286.963 239.779 287.326 239.416 287.773 239.416L320.602 239.383C321.72 239.383 322.88 239.841 323.868 240.672C324.853 241.499 325.556 242.59 325.845 243.745C326.188 245.036 325.981 246.309 325.281 247.22C324.646 248.045 323.687 248.499 322.572 248.499H319.99L279.223 248.564V248.561Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M79.1848 139.931V153.175C79.1848 165.708 85.0267 177.562 94.9707 185.185L105.203 193.035C107.173 194.554 107.173 197.524 105.203 199.042L94.9707 206.892C85.03 214.515 79.1848 226.37 79.1848 238.903V252.147H148.199V238.903C148.199 226.37 142.357 214.515 132.413 206.892L122.181 199.042C120.211 197.524 120.211 194.551 122.181 193.035L132.413 185.185C142.354 177.562 148.199 165.708 148.199 153.175V139.931H79.1848Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M136.224 244.78C136.224 243.424 135.546 242.1 134.383 241.259C132.834 240.13 130.317 238.676 127.184 237.965C125.57 237.612 123.794 237.287 122.051 237.027C116.498 236.219 110.883 236.219 105.329 237.027C103.586 237.287 101.81 237.576 100.197 237.965C97.0667 238.676 94.5491 240.13 92.9971 241.259C91.8339 242.1 91.1567 243.391 91.1567 244.78H136.22H136.224Z",fill:"white"}),(0,a.jsx)("path",{d:"M136.223 245.591H91.1599C90.7127 245.591 90.3499 245.228 90.3499 244.78C90.3499 243.125 91.1437 241.6 92.524 240.6C93.8071 239.666 96.4866 237.975 100.018 237.173C101.726 236.764 103.602 236.463 105.212 236.226C110.84 235.408 116.543 235.408 122.168 236.226C123.947 236.489 125.738 236.816 127.358 237.173C130.893 237.975 133.576 239.669 134.859 240.603C136.22 241.587 137.033 243.148 137.033 244.78C137.033 245.228 136.671 245.591 136.223 245.591ZM92.0671 243.969H135.313C135.112 243.164 134.62 242.43 133.91 241.918C132.724 241.051 130.252 239.494 127.005 238.757C125.427 238.41 123.671 238.088 121.934 237.832C116.465 237.037 110.918 237.037 105.449 237.832C103.877 238.066 102.047 238.358 100.388 238.754C97.1314 239.494 94.6624 241.051 93.4766 241.914C92.754 242.437 92.2648 243.161 92.0671 243.969Z",fill:"white"}),(0,a.jsx)("path",{d:"M110.141 184.666C112.367 185.893 115.014 185.893 117.211 184.666C123.668 181.048 136.191 171.906 136.191 163.316C136.191 161.862 134.804 160.7 133.126 160.7H94.196C92.4852 160.7 91.1309 161.862 91.1309 163.316C91.1633 171.909 103.686 181.048 110.144 184.666H110.141Z",fill:"white"}),(0,a.jsx)("path",{d:"M113.689 186.402C112.341 186.402 110.99 186.061 109.752 185.38C109.752 185.38 109.749 185.38 109.745 185.38C102.546 181.346 90.35 172.159 90.3176 163.326C90.3176 161.401 92.0219 159.896 94.1928 159.896H133.123C135.261 159.896 136.998 161.434 136.998 163.322C136.998 172.156 124.805 181.346 117.603 185.38C116.381 186.065 115.033 186.405 113.685 186.405L113.689 186.402ZM110.536 183.959C112.519 185.049 114.865 185.049 116.815 183.959C123.237 180.36 135.381 171.416 135.381 163.316C135.381 162.32 134.37 161.512 133.126 161.512H94.196C92.9518 161.512 91.9409 162.323 91.9409 163.316C91.9701 171.416 104.117 180.36 110.536 183.959Z",fill:"white"}),(0,a.jsx)("path",{d:"M148.166 253.02H79.1518C78.7047 253.02 78.3418 252.656 78.3418 252.208V238.965C78.3418 226.25 84.3619 214.042 94.4452 206.312L104.677 198.461C105.413 197.894 105.837 197.034 105.837 196.102C105.837 195.171 105.413 194.311 104.677 193.74L94.4452 185.893C94.0888 185.62 94.024 185.111 94.2961 184.757C94.5683 184.403 95.077 184.335 95.4302 184.608L105.662 192.458C106.803 193.337 107.457 194.668 107.457 196.105C107.457 197.543 106.803 198.874 105.666 199.753L95.4302 207.603C85.7455 215.028 79.9619 226.753 79.9619 238.968V251.4H147.356V238.968C147.356 237.501 147.272 236.008 147.104 234.402C147.055 233.957 147.379 233.558 147.823 233.51C148.267 233.461 148.665 233.785 148.714 234.23C148.892 235.891 148.976 237.443 148.976 238.968V252.212C148.976 252.659 148.613 253.023 148.166 253.023V253.02Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M83.8668 172.915C83.5784 172.915 83.2965 172.759 83.1507 172.483C80.0272 166.597 78.3748 159.944 78.3748 153.239V139.996C78.3748 139.548 78.7376 139.185 79.1848 139.185H102.264C102.711 139.185 103.074 139.548 103.074 139.996C103.074 140.444 102.711 140.807 102.264 140.807H79.9948V153.239C79.9948 159.678 81.5792 166.071 84.5796 171.721C84.7902 172.117 84.6411 172.607 84.2458 172.818C84.126 172.883 83.9931 172.912 83.8668 172.912V172.915Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M145.325 224.854C145.004 224.854 144.699 224.66 144.573 224.342C141.952 217.757 137.578 211.977 131.92 207.629L121.688 199.782C120.548 198.903 119.893 197.572 119.893 196.134C119.893 194.694 120.548 193.366 121.685 192.487L131.92 184.637C141.605 177.212 147.389 165.487 147.389 153.272V147.489C147.389 147.041 147.752 146.678 148.199 146.678C148.646 146.678 149.009 147.041 149.009 147.489V153.272C149.009 165.987 142.989 178.195 132.905 185.925L122.673 193.775C121.938 194.343 121.513 195.203 121.513 196.134C121.513 197.066 121.938 197.926 122.673 198.497L132.905 206.344C138.796 210.871 143.348 216.884 146.076 223.741C146.242 224.157 146.041 224.631 145.623 224.796C145.526 224.835 145.422 224.854 145.325 224.854Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M150.587 140.807H117.308C116.861 140.807 116.498 140.444 116.498 139.996C116.498 139.548 116.861 139.185 117.308 139.185H150.587C153.186 139.185 155.298 137.072 155.298 134.473C155.298 131.873 153.186 129.761 150.587 129.761H76.7645C74.166 129.761 72.0534 131.873 72.0534 134.473C72.0534 137.072 74.166 139.185 76.7645 139.185H99.2639C99.711 139.185 100.074 139.548 100.074 139.996C100.074 140.444 99.711 140.807 99.2639 140.807H76.7645C73.2749 140.807 70.4333 137.965 70.4333 134.473C70.4333 130.981 73.2717 128.138 76.7645 128.138H150.587C154.077 128.138 156.919 130.981 156.919 134.473C156.919 137.965 154.08 140.807 150.587 140.807Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M150.62 264.131C150.173 264.131 149.81 263.768 149.81 263.32C149.81 262.872 150.173 262.509 150.62 262.509C153.218 262.509 155.331 260.396 155.331 257.797C155.331 255.197 153.218 253.085 150.62 253.085H76.7645C74.166 253.085 72.0534 255.197 72.0534 257.797C72.0534 260.396 74.166 262.509 76.7645 262.509H136.224C136.671 262.509 137.034 262.872 137.034 263.32C137.034 263.768 136.671 264.131 136.224 264.131H76.7645C73.2749 264.131 70.4333 261.288 70.4333 257.797C70.4333 254.305 73.2717 251.462 76.7645 251.462H150.62C154.109 251.462 156.951 254.305 156.951 257.797C156.951 261.288 154.113 264.131 150.62 264.131Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M18.1118 137.056V103.367C18.1118 97.3931 22.9525 92.5156 28.9565 92.5156H81.6375L105.718 76.7861V137.059C105.718 143.033 100.877 147.911 94.8734 147.911H28.9597C22.9558 147.911 18.1151 143.033 18.1151 137.059L18.1118 137.056Z",fill:"white"}),(0,a.jsx)("path",{d:"M41.965 148.268H28.7292C22.3008 148.268 17.0745 143.037 17.0745 136.605V102.949C17.0745 96.5169 22.304 91.2857 28.7292 91.2857H81.1704L105.05 75.686C105.426 75.4427 105.928 75.5465 106.171 75.9229C106.414 76.2994 106.31 76.8024 105.935 77.0458L81.8541 92.7752C81.7213 92.8629 81.569 92.9083 81.4102 92.9083H28.7324C23.1983 92.9083 18.6978 97.4126 18.6978 102.949V136.605C18.6978 142.141 23.2015 146.645 28.7324 146.645H41.9683C42.4154 146.645 42.7783 147.009 42.7783 147.457C42.7783 147.905 42.4154 148.268 41.9683 148.268H41.965Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M94.679 148.268H56.7502C56.3031 148.268 55.9402 147.905 55.9402 147.457C55.9402 147.009 56.3031 146.645 56.7502 146.645H94.679C100.213 146.645 104.714 142.141 104.714 136.605V88.4754C104.714 88.0275 105.077 87.6641 105.524 87.6641C105.971 87.6641 106.334 88.0275 106.334 88.4754V136.605C106.334 143.037 101.104 148.268 94.679 148.268Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M87.5118 109.121H35.9292C35.482 109.121 35.1191 108.758 35.1191 108.31C35.1191 107.862 35.482 107.499 35.9292 107.499H87.5118C87.959 107.499 88.3218 107.862 88.3218 108.31C88.3218 108.758 87.959 109.121 87.5118 109.121Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M87.5117 121.103H55.7812C55.3341 121.103 54.9712 120.739 54.9712 120.291C54.9712 119.843 55.3341 119.48 55.7812 119.48H87.5117C87.9588 119.48 88.3217 119.843 88.3217 120.291C88.3217 120.739 87.9588 121.103 87.5117 121.103Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M46.6151 121.103H35.9292C35.482 121.103 35.1191 120.739 35.1191 120.291C35.1191 119.843 35.482 119.48 35.9292 119.48H46.6151C47.0622 119.48 47.4251 119.843 47.4251 120.291C47.4251 120.739 47.0622 121.103 46.6151 121.103Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M61.7205 133.087H35.9292C35.482 133.087 35.1191 132.723 35.1191 132.276C35.1191 131.828 35.482 131.464 35.9292 131.464H61.7205C62.1676 131.464 62.5305 131.828 62.5305 132.276C62.5305 132.723 62.1676 133.087 61.7205 133.087Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M63.593 179.827C63.1459 179.827 62.783 179.464 62.783 179.016V169.679C62.783 169.232 63.1459 168.868 63.593 168.868C64.0401 168.868 64.403 169.232 64.403 169.679V179.016C64.403 179.464 64.0401 179.827 63.593 179.827Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M59.0765 181.054C58.7978 181.054 58.5256 180.908 58.3733 180.648L53.6914 172.542C53.4678 172.152 53.6007 171.659 53.9862 171.432C54.375 171.208 54.8675 171.341 55.0943 171.727L59.7763 179.834C59.9999 180.223 59.867 180.717 59.4815 180.944C59.3551 181.018 59.2158 181.054 59.0765 181.054Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M55.7811 184.348C55.645 184.348 55.5057 184.312 55.3761 184.238L47.2726 179.555C46.8837 179.331 46.7509 178.834 46.9745 178.448C47.198 178.059 47.6938 177.926 48.0794 178.15L56.1829 182.833C56.5717 183.056 56.7045 183.553 56.481 183.939C56.3319 184.199 56.0598 184.345 55.7779 184.345L55.7811 184.348Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M54.5563 188.872H45.228C44.7809 188.872 44.418 188.508 44.418 188.06C44.418 187.612 44.7809 187.249 45.228 187.249H54.5563C55.0034 187.249 55.3663 187.612 55.3663 188.06C55.3663 188.508 55.0034 188.872 54.5563 188.872Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M47.6807 198.043C47.4021 198.043 47.1299 197.896 46.9776 197.637C46.7541 197.247 46.8869 196.754 47.2757 196.53L55.3793 191.847C55.7681 191.624 56.2606 191.757 56.4841 192.146C56.7077 192.535 56.5749 193.029 56.1861 193.253L48.0825 197.935C47.9562 198.01 47.8168 198.046 47.6775 198.046L47.6807 198.043Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M54.3912 204.763C54.2551 204.763 54.1158 204.728 53.9862 204.653C53.5974 204.429 53.4678 203.932 53.6914 203.543L58.3733 195.437C58.5969 195.047 59.0926 194.917 59.4814 195.141C59.8703 195.365 59.9999 195.862 59.7763 196.251L55.0943 204.358C54.9453 204.617 54.6731 204.763 54.3912 204.763Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M63.593 207.217C63.1459 207.217 62.783 206.853 62.783 206.406V197.069C62.783 196.621 63.1459 196.258 63.593 196.258C64.0401 196.258 64.403 196.621 64.403 197.069V206.406C64.403 206.853 64.0401 207.217 63.593 207.217Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M72.7627 204.763C72.4841 204.763 72.2119 204.617 72.0596 204.358L67.3777 196.251C67.1541 195.862 67.2869 195.369 67.6725 195.142C68.0613 194.918 68.5571 195.051 68.7806 195.437L73.4626 203.543C73.6862 203.933 73.5533 204.426 73.1678 204.653C73.0414 204.728 72.9021 204.763 72.7627 204.763Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M77.4739 196.881C77.3346 196.881 77.1952 196.845 77.0689 196.77L71.0001 193.249C70.6146 193.025 70.4817 192.529 70.7053 192.139C70.9289 191.753 71.4246 191.62 71.8134 191.844L77.8822 195.365C78.2677 195.589 78.4006 196.086 78.177 196.475C78.028 196.735 77.7558 196.881 77.4739 196.881Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M77.4739 188.872H72.6008C72.1537 188.872 71.7908 188.508 71.7908 188.06C71.7908 187.612 72.1537 187.249 72.6008 187.249H77.4739C77.9211 187.249 78.284 187.612 78.284 188.06C78.284 188.508 77.9211 188.872 77.4739 188.872Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M71.4051 184.348C71.1265 184.348 70.8511 184.202 70.702 183.942C70.4784 183.553 70.6113 183.06 71.0001 182.836L72.6785 181.866C73.0673 181.642 73.5598 181.775 73.7834 182.164C74.0069 182.554 73.8741 183.047 73.4853 183.271L71.8069 184.241C71.6805 184.316 71.5412 184.348 71.4019 184.348H71.4051Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M13.4945 89.2868C13.2871 89.2868 13.0797 89.2089 12.921 89.0499L0.786733 76.9064C0.469201 76.5883 0.469201 76.0756 0.786733 75.7576C1.10426 75.4395 1.6162 75.4395 1.93373 75.7576L14.0712 87.9043C14.3887 88.2223 14.3887 88.7351 14.0712 89.0531C13.9124 89.2121 13.7051 89.29 13.4977 89.29L13.4945 89.2868Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M8.91285 97.4936C8.83833 97.4936 8.76381 97.4839 8.68928 97.4612L0.585754 95.1344C0.154819 95.011 -0.0914299 94.5632 0.0316945 94.1316C0.154819 93.7 0.605195 93.4533 1.03289 93.5767L9.13642 95.9035C9.56736 96.0268 9.8136 96.4746 9.69048 96.9062C9.59004 97.2632 9.26602 97.4936 8.91285 97.4936Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M21.6954 84.7011C21.3454 84.7011 21.0214 84.4706 20.9177 84.1169L18.5622 76.0104C18.4358 75.5788 18.6853 75.131 19.113 75.0044C19.5407 74.8811 19.9911 75.1277 20.1174 75.5561L22.473 83.6626C22.5994 84.0942 22.3499 84.542 21.9222 84.6686C21.8476 84.6913 21.7699 84.7011 21.6954 84.7011Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M104.59 213.48H22.5668C20.2113 213.48 18.2737 215.385 18.2737 217.777V224.916C18.2737 227.275 20.1789 229.213 22.5668 229.213H104.59C106.946 229.213 108.884 227.308 108.884 224.916V217.777C108.884 215.388 106.978 213.48 104.59 213.48Z",fill:"white"}),(0,a.jsx)("path",{d:"M90.1913 230.053H22.5668C19.7544 230.053 17.4636 227.762 17.4636 224.945V217.806C17.4636 214.989 19.7544 212.698 22.5668 212.698H56.75C57.1972 212.698 57.5601 213.061 57.5601 213.509C57.5601 213.957 57.1972 214.32 56.75 214.32H22.5668C20.6454 214.32 19.0837 215.885 19.0837 217.806V224.945C19.0837 226.866 20.6454 228.43 22.5668 228.43H90.1945C90.6416 228.43 91.0045 228.794 91.0045 229.242C91.0045 229.69 90.6416 230.053 90.1945 230.053H90.1913Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M104.591 230.053H101.169C100.722 230.053 100.359 229.69 100.359 229.242C100.359 228.794 100.722 228.43 101.169 228.43H104.591C106.512 228.43 108.074 226.866 108.074 224.945V217.806C108.074 215.885 106.512 214.32 104.591 214.32H65.4663C65.0191 214.32 64.6562 213.957 64.6562 213.509C64.6562 213.061 65.0191 212.698 65.4663 212.698H104.591C107.403 212.698 109.694 214.989 109.694 217.806V224.945C109.694 227.762 107.403 230.053 104.591 230.053Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M26.7626 217.744H22.7935V224.948H26.7626V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M26.7626 225.757H22.7934C22.3463 225.757 21.9834 225.393 21.9834 224.945V217.741C21.9834 217.293 22.3463 216.93 22.7934 216.93H26.7626C27.2097 216.93 27.5726 217.293 27.5726 217.741V224.945C27.5726 225.393 27.2097 225.757 26.7626 225.757ZM23.6035 224.134H25.9525V218.552H23.6035V224.134Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M35.349 217.744H31.3799V224.948H35.349V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M35.349 225.757H31.3799C30.9327 225.757 30.5698 225.393 30.5698 224.945V217.741C30.5698 217.293 30.9327 216.93 31.3799 216.93H35.349C35.7961 216.93 36.159 217.293 36.159 217.741V224.945C36.159 225.393 35.7961 225.757 35.349 225.757ZM32.1899 224.134H34.539V218.552H32.1899V224.134Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M43.9352 217.744H39.9661V224.948H43.9352V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M43.9352 225.757H39.966C39.5189 225.757 39.156 225.393 39.156 224.945V217.741C39.156 217.293 39.5189 216.93 39.966 216.93H43.9352C44.3823 216.93 44.7452 217.293 44.7452 217.741V224.945C44.7452 225.393 44.3823 225.757 43.9352 225.757ZM40.7761 224.134H43.1252V218.552H40.7761V224.134Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M52.5216 217.744H48.5525V224.948H52.5216V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M52.5216 225.757H48.5525C48.1053 225.757 47.7424 225.393 47.7424 224.945V217.741C47.7424 217.293 48.1053 216.93 48.5525 216.93H52.5216C52.9687 216.93 53.3316 217.293 53.3316 217.741V224.945C53.3316 225.393 52.9687 225.757 52.5216 225.757ZM49.3625 224.134H51.7116V218.552H49.3625V224.134Z",fill:"currentColor"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2789_110377",children:(0,a.jsx)("rect",{width:"336",height:"270",fill:"white"})})})]})};var Quiz_QuizInformation=e=>{let{content:t}=e,{t:s}=(0,x.Y)(["course_player"]),{query:l}=(0,f.useRouter)(),{slug:n,chapterId:o,contentId:c}=l,[d,u]=(0,r.useState)(),{data:m}=(0,v.IE)({slug:l.slug}),p=(0,g.TL)(),{displayErrors:h}=(0,g.ah)({});(0,r.useEffect)(()=>{let e=null==m?void 0:m.chapters.find(e=>e.id.toString()===o);u(e)},[m,o]);let[C]=eq();return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)(IntroImage,{className:"mb-8 text-primary"}),(0,a.jsxs)("div",{className:"grid w-full grid-cols-1 gap-8 sm:!w-3/4 sm:!grid-cols-3",children:[(0,a.jsx)(i.J,{className:"bg-gray-100",children:(0,a.jsx)(i.J.Body,{className:"p-6",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center gap-2",children:[(0,a.jsx)(i.u.Body,{size:"md",className:"font-normal text-gray-700",children:s("course_player:quiz_passing_score")}),(0,a.jsx)(i.u.Body,{className:"text-base font-semibold text-success",children:"".concat(t.contentable.passing_score,"%")})]})})}),(0,a.jsx)(i.J,{className:"bg-gray-100",children:(0,a.jsx)(i.J.Body,{className:"p-6",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center gap-2",children:[(0,a.jsx)(i.u.Body,{size:"md",className:"font-normal text-gray-700",children:s("course_player:quiz_total_questions_count")}),(0,a.jsx)(i.u.Body,{className:"text-base font-semibold",children:s("course_player:quiz_questions_WithCount",{count:t.contentable.questions_count})})]})})}),(0,a.jsx)(i.J,{className:"bg-gray-100",children:(0,a.jsx)(i.J.Body,{className:"p-6",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center gap-2",children:[(0,a.jsx)(i.u.Body,{size:"md",className:"font-normal text-gray-700",children:s("course_player:quiz_quiz_time")}),(0,a.jsx)(i.u.Body,{className:"text-base font-semibold",children:s("course_player:quiz_minutes_WithCount",{count:Math.floor(t.contentable.duration/60)})})]})})})]}),(0,a.jsxs)("div",{className:"mb-8 mt-6 flex w-full flex-col text-center sm:!w-3/4",children:[(0,a.jsx)(i.u.Text,{as:"h2",size:"lg",className:"font-semibold",children:s("course_player:quiz_title",{title:t.contentable.title})}),t.description?(0,a.jsx)(i.u.Text,{size:"xs",as:"p",className:"mb-6 mt-4 font-normal text-gray-700",children:t.description}):(0,a.jsx)(i.u.Text,{size:"xs",className:"mb-6 mt-4 font-normal text-gray-700",children:s("course_player:content_subtitle",{subtitle:null==d?void 0:d.title})}),(0,a.jsx)(i.B,{color:"primary",variant:"solid",className:"mx-auto px-12",children:s("course_player:>"),onClick:async()=>{let e=await C({slug:l.slug,chapterId:l.chapterId,contentId:l.contentId});h(e)||p((0,ez.dH)("fetchContent",{slug:n,chapterId:o,contentId:c},e=>{e.contentable.attempted=!0}))}})]})]})},Quiz_QuizQuestion=e=>{let{title:t,questionsLength:s,index:r=0,children:l}=e;return(0,a.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:(0,a.jsx)(x.C,{i18nKey:"course_player:quiz_question",components:{span:(0,a.jsx)("span",{className:"text-black"})},values:{number:null!=s?s:0,question:r+1}})}),(0,a.jsx)("span",{className:"prose prose-sm prose-stone sm:prose-base max-w-full",dir:"auto",dangerouslySetInnerHTML:{__html:t}})]}),(0,a.jsx)("div",{className:"flex flex-col space-y-4",children:l})]})};let TimeOutSection_Time=e=>{let{className:t}=e;return(0,a.jsxs)("svg",{width:"450",height:"250",viewBox:"0 0 450 250",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_1300_75874)",children:[(0,a.jsx)("path",{d:"M396.12 79.5498L261.9 79.2498C261.9 79.2498 247.46 63.7298 261.59 51.1798C272.06 41.8798 295.88 57.0598 295.88 57.0598C295.88 57.0598 303.18 39.8098 318.83 45.9898C334.12 51.9898 336.69 69.6198 336.69 69.6198C336.69 69.6198 373.54 75.4898 396.12 79.5498ZM237.53 200L63.3102 199.7C63.3102 199.7 49.0102 184.7 63.0002 171.62C71.6002 163.62 85.8802 171.25 85.8802 171.25C85.8802 171.25 88.3902 157.55 106.15 157.7C133.7 157.93 137.29 177.5 137.29 177.5C137.29 177.5 144.58 160.26 160.29 166.43C175.58 172.43 178.14 190.06 178.14 190.06C178.14 190.06 215 196 237.53 200Z",fill:"#F5F5F5"}),(0,a.jsx)("path",{d:"M264.15 119.4C264.153 132.436 259.307 145.006 250.555 154.667C241.803 164.328 229.77 170.388 216.798 171.668C203.825 172.948 190.84 169.358 180.368 161.594C169.896 153.831 162.686 142.45 160.141 129.666C157.595 116.881 159.896 103.606 166.596 92.4242C173.296 81.242 183.915 72.9516 196.389 69.1655C208.863 65.3794 222.299 66.3683 234.084 71.9399C245.869 77.5116 255.16 87.2675 260.15 99.3101C262.788 105.68 264.147 112.506 264.15 119.4ZM263.15 119.4C263.101 106.576 258.284 94.2293 249.635 84.7612C240.986 75.293 229.124 69.3809 216.357 68.1751C203.59 66.9693 190.831 70.5561 180.562 78.2376C170.293 85.919 163.249 97.1459 160.801 109.734C158.352 122.322 160.674 135.37 167.314 146.341C173.954 157.312 184.438 165.42 196.726 169.088C209.014 172.756 222.228 171.722 233.795 166.187C245.363 160.651 254.458 151.01 259.31 139.14C261.879 132.877 263.193 126.17 263.18 119.4H263.15Z",className:"text-danger"}),(0,a.jsx)("path",{d:"M261.18 125V123.35L267.18 123.67C267.038 110.115 261.609 97.1516 252.049 87.5411C242.489 77.9306 229.554 72.4332 216 72.2202L215.68 78.2202H214.68L214.36 72.2202C200.808 72.4411 187.877 77.9447 178.323 87.5586C168.769 97.1725 163.346 110.137 163.21 123.69L169.21 123.53V124.87L163.21 124.7C163.349 138.267 168.786 151.242 178.359 160.856C187.932 170.471 200.884 175.963 214.45 176.16L214.68 170.16H215.68L215.91 176.16C229.474 175.963 242.425 170.472 251.997 160.86C261.57 151.248 267.008 138.275 267.15 124.71L261.18 125ZM215.18 128.83C214.844 128.83 214.508 128.793 214.18 128.72L197 132.59C196.811 132.63 196.614 132.602 196.444 132.511C196.274 132.42 196.141 132.272 196.07 132.092C195.998 131.913 195.992 131.714 196.052 131.531C196.113 131.348 196.236 131.192 196.4 131.09L211 122.25C211.1 122.017 211.22 121.793 211.36 121.58L214.52 88.0602C214.52 87.8586 214.6 87.6653 214.743 87.5228C214.885 87.3803 215.078 87.3002 215.28 87.3002C215.482 87.3002 215.675 87.3803 215.817 87.5228C215.96 87.6653 216.04 87.8586 216.04 88.0602L219.23 121.85C219.65 122.555 219.875 123.358 219.882 124.178C219.89 124.998 219.679 125.805 219.273 126.517C218.866 127.229 218.277 127.821 217.567 128.23C216.856 128.64 216.05 128.854 215.23 128.85L215.18 128.83Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M316.17 161.86L289.75 116.11C288.709 114.307 287.212 112.811 285.409 111.77C283.606 110.729 281.562 110.182 279.48 110.182C277.399 110.182 275.354 110.729 273.551 111.77C271.748 112.811 270.251 114.307 269.21 116.11L242.79 161.86C241.749 163.663 241.201 165.708 241.201 167.79C241.201 169.871 241.749 171.916 242.79 173.719C243.831 175.522 245.328 177.019 247.13 178.06C248.933 179.101 250.978 179.65 253.06 179.65H305.9C307.982 179.65 310.027 179.101 311.83 178.06C313.633 177.019 315.13 175.522 316.17 173.719C317.211 171.916 317.759 169.871 317.759 167.79C317.759 165.708 317.211 163.663 316.17 161.86ZM279.48 170.12C278.59 170.12 277.719 169.856 276.979 169.361C276.239 168.866 275.662 168.162 275.322 167.34C274.981 166.517 274.893 165.611 275.067 164.738C275.242 163.865 275.671 163.063 276.302 162.434C276.932 161.805 277.735 161.378 278.608 161.205C279.482 161.033 280.387 161.123 281.209 161.465C282.031 161.807 282.733 162.386 283.227 163.127C283.72 163.868 283.982 164.739 283.98 165.63C283.977 166.822 283.502 167.964 282.659 168.805C281.815 169.647 280.672 170.12 279.48 170.12ZM284.1 151.59C284.1 152.815 283.613 153.99 282.747 154.857C281.881 155.723 280.705 156.21 279.48 156.21C278.255 156.21 277.08 155.723 276.213 154.857C275.347 153.99 274.86 152.815 274.86 151.59L274.29 134.38C274.269 133.76 274.372 133.142 274.595 132.563C274.817 131.983 275.154 131.455 275.585 131.009C276.017 130.563 276.533 130.208 277.104 129.966C277.676 129.724 278.29 129.599 278.91 129.6H280.05C280.671 129.599 281.285 129.724 281.856 129.966C282.427 130.208 282.944 130.563 283.375 131.009C283.806 131.455 284.143 131.983 284.365 132.563C284.588 133.142 284.692 133.76 284.67 134.38L284.1 151.59Z",fill:"black"}),(0,a.jsx)("path",{d:"M243.81 205.05C241.49 205.17 238.01 205.25 234.32 205.27L223.32 205.36C215.9 205.36 208.4 205.36 200.9 205.36L156.67 205.17L69.3102 205C69.2739 205 69.2381 204.991 69.2053 204.976C69.1725 204.96 69.1435 204.938 69.1202 204.91C67.5453 203.151 66.2011 201.199 65.1202 199.1C63.9999 197.016 63.1913 194.779 62.7202 192.46C62.3024 190.106 62.4083 187.689 63.0302 185.38C64.4121 180.777 67.4607 176.855 71.5802 174.38C73.6998 173.286 76.0451 172.7 78.4302 172.67C80.7921 172.62 83.1491 172.906 85.4302 173.52C87.6958 174.131 89.8963 174.961 92.0002 176L91.5402 176.22C92.1942 173.448 93.5101 170.875 95.3753 168.723C97.2405 166.57 99.5994 164.902 102.25 163.86C104.893 162.858 107.685 162.307 110.51 162.23C113.306 162.163 116.102 162.327 118.87 162.72C121.64 163.096 124.362 163.766 126.99 164.72C129.622 165.703 132.102 167.049 134.36 168.72C136.608 170.414 138.567 172.46 140.16 174.78C141.775 177.094 142.945 179.688 143.61 182.43L142.93 182.36C143.996 180.08 145.384 177.966 147.05 176.08C148.695 174.177 150.683 172.599 152.91 171.43C155.168 170.288 157.682 169.744 160.21 169.85C162.721 169.983 165.181 170.608 167.45 171.69C172.009 173.786 175.892 177.115 178.66 181.3C181.434 185.45 183.333 190.122 184.24 195.03L184.09 194.88L213.83 199.7L228.7 202.18L236.12 203.43L239.88 204.08C241.26 204.35 242.6 204.76 243.81 205.05ZM243.25 205C241.99 204.85 240.85 204.82 239.73 204.62L236.07 203.96L228.65 202.65L213.8 200.13C203.89 198.48 193.99 196.82 184.07 195.27C184.033 195.266 183.999 195.25 183.972 195.225C183.945 195.2 183.927 195.166 183.92 195.13C183.006 190.282 181.107 185.674 178.34 181.59C175.6 177.486 171.77 174.228 167.28 172.18C165.064 171.138 162.666 170.54 160.22 170.42C157.792 170.337 155.383 170.874 153.22 171.98C151.064 173.127 149.149 174.678 147.58 176.55C145.983 178.396 144.656 180.46 143.64 182.68C143.601 182.765 143.53 182.832 143.442 182.866C143.354 182.899 143.257 182.897 143.17 182.86C143.122 182.837 143.081 182.803 143.048 182.762C143.015 182.72 142.992 182.672 142.98 182.62C142.312 179.987 141.159 177.501 139.58 175.29C138.014 173.062 136.099 171.1 133.91 169.48C131.703 167.885 129.287 166.599 126.73 165.66C124.164 164.733 121.505 164.086 118.8 163.73C113.41 163.04 107.75 162.89 102.71 164.88C100.195 165.852 97.9318 167.38 96.0902 169.35C94.2401 171.325 92.9132 173.731 92.2302 176.35C92.2197 176.391 92.2013 176.429 92.176 176.463C92.1508 176.496 92.1191 176.524 92.0829 176.546C92.0467 176.567 92.0066 176.581 91.965 176.587C91.9233 176.593 91.8809 176.59 91.8402 176.58H91.7702C89.719 175.526 87.5553 174.708 85.3202 174.14C83.0925 173.553 80.7935 173.28 78.4902 173.33C76.1879 173.372 73.9262 173.943 71.8802 175C69.9006 176.151 68.1784 177.696 66.8202 179.54C65.4052 181.335 64.3647 183.396 63.7602 185.6C63.4777 186.699 63.3135 187.826 63.2702 188.96C63.2535 190.097 63.3271 191.234 63.4902 192.36C64.2857 196.913 66.3677 201.143 69.4902 204.55L69.2802 204.46L156.13 204.62C170.5 204.62 185.03 204.62 199.01 204.62C206.01 204.62 213.01 204.62 220.14 204.68L230.93 204.8C234.53 204.78 238.31 204.87 243.25 205ZM403.41 84.58C401.83 84.69 399.24 84.77 396.41 84.8L387.93 84.8899C382.25 84.8899 376.39 84.8899 370.57 84.8899L353.28 84.76H336.28L302.52 84.68C291.287 84.68 280.064 84.72 268.85 84.8C268.778 84.8026 268.705 84.7897 268.638 84.7621C268.571 84.7345 268.51 84.6929 268.46 84.6399C266.604 82.4024 265.066 79.9189 263.89 77.26C262.689 74.6078 262.062 71.7315 262.05 68.82C262.091 65.894 262.887 63.0283 264.36 60.5C265.135 59.2696 266.04 58.1264 267.06 57.09C267.6 56.6 268.06 56.0899 268.67 55.6199C269.242 55.1541 269.859 54.7455 270.51 54.4C273.157 53.1429 276.093 52.6246 279.01 52.9C281.882 53.1302 284.715 53.7043 287.45 54.61C292.937 56.3094 298.202 58.6595 303.13 61.61L302.35 61.8499C303.42 59.5552 304.811 57.4239 306.48 55.52C308.14 53.5942 310.148 51.9996 312.4 50.82C314.69 49.6661 317.238 49.1187 319.8 49.23C322.33 49.3725 324.807 50.0113 327.09 51.11C331.662 53.2377 335.55 56.5965 338.32 60.81C341.097 64.9716 342.993 69.6579 343.89 74.58L343.69 74.37L373.41 79.3L388.28 81.76L395.74 83L399.5 83.6299C400.85 83.8799 402.19 84.28 403.41 84.58ZM402.84 84.58C401.59 84.43 400.45 84.39 399.33 84.18L395.67 83.5199L388.25 82.2099L373.4 79.6299L343.65 74.86C343.598 74.8541 343.55 74.8314 343.512 74.7953C343.474 74.7591 343.449 74.7116 343.44 74.66C342.517 69.8274 340.619 65.2339 337.86 61.16C335.108 57.0947 331.283 53.8721 326.81 51.8499C324.611 50.8273 322.233 50.2431 319.81 50.13C317.402 50.0439 315.013 50.5776 312.87 51.68C308.61 53.91 305.4 57.95 303.38 62.28C303.315 62.4115 303.202 62.5131 303.064 62.5633C302.927 62.6136 302.775 62.6088 302.64 62.55H302.59C297.75 59.69 292.75 56.8499 287.32 55.1899C284.63 54.315 281.842 53.771 279.02 53.57C276.23 53.2917 273.418 53.7864 270.89 55C270.287 55.3319 269.715 55.7167 269.18 56.15C268.65 56.59 268.18 57.15 267.65 57.59C266.686 58.6017 265.825 59.7072 265.08 60.89C264.329 62.0653 263.725 63.328 263.28 64.65C262.887 65.9908 262.695 67.3827 262.71 68.7799C262.79 71.5951 263.472 74.3605 264.71 76.8899C265.885 79.4472 267.447 81.8082 269.34 83.8899L268.95 83.72C280.08 83.88 291.25 83.9599 302.39 83.9899L335.73 84.0599H352.34L368.55 84C373.92 84 379.25 83.9999 384.75 84.0999L393.05 84.23C395.82 84.31 398.82 84.3999 402.84 84.5299V84.58ZM303.78 139.72L297.31 128.82L294.11 123.36L292.51 120.63C291.992 119.752 291.378 118.934 290.68 118.19C289.271 116.728 287.498 115.67 285.543 115.123C283.588 114.576 281.523 114.561 279.56 115.08C277.604 115.596 275.824 116.633 274.41 118.08C274.09 118.47 273.72 118.81 273.41 119.23C273.1 119.65 272.84 120.06 272.57 120.5L271 123.26L258.3 145.19L251.95 156.19L248.77 161.67L247.18 164.41C246.65 165.32 246.1 166.23 245.68 167.14C244.819 168.99 244.473 171.039 244.68 173.07C244.909 175.102 245.672 177.038 246.89 178.68C248.103 180.331 249.746 181.618 251.64 182.4C252.12 182.55 252.59 182.76 253.08 182.88C253.57 183 254.08 183.11 254.58 183.17L256.11 183.27H257.69H283.03L308.36 183.34C310.443 183.416 312.51 182.95 314.36 181.99C315.733 181.263 316.945 180.268 317.925 179.063C318.906 177.859 319.634 176.469 320.067 174.978C320.5 173.486 320.628 171.923 320.445 170.381C320.262 168.838 319.77 167.349 319 166C318.977 165.954 318.971 165.901 318.984 165.852C318.997 165.802 319.028 165.759 319.07 165.73C319.117 165.705 319.171 165.699 319.222 165.714C319.272 165.729 319.315 165.764 319.34 165.81C320.149 167.211 320.67 168.76 320.87 170.366C321.071 171.971 320.949 173.601 320.51 175.158C320.071 176.716 319.324 178.169 318.314 179.434C317.305 180.698 316.052 181.747 314.63 182.52C312.713 183.536 310.569 184.045 308.4 184L283.07 184.08H257.73H256.15L254.51 183.98C253.97 183.92 253.44 183.78 252.91 183.67C252.38 183.56 251.91 183.33 251.35 183.16C249.31 182.319 247.54 180.936 246.23 179.16C244.921 177.404 244.093 175.335 243.83 173.16C243.578 170.972 243.924 168.757 244.83 166.75C245.29 165.75 245.83 164.85 246.36 163.93L247.94 161.19L251.1 155.7L257.41 144.7L270.04 122.7L271.62 119.96C271.9 119.5 272.23 119.04 272.53 118.59C272.866 118.149 273.226 117.729 273.61 117.33C274.77 116.145 276.158 115.206 277.69 114.57C279.222 113.935 280.866 113.615 282.524 113.63C284.183 113.644 285.821 113.994 287.341 114.657C288.861 115.321 290.231 116.284 291.37 117.49C292.109 118.296 292.756 119.182 293.3 120.13L294.86 122.89L297.99 128.39L304.2 139.44C304.233 139.5 304.24 139.57 304.222 139.635C304.203 139.701 304.159 139.756 304.1 139.79C304.047 139.817 303.986 139.824 303.928 139.812C303.87 139.799 303.817 139.767 303.78 139.72Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M287.28 169.63C287.312 170.588 287.062 171.534 286.56 172.35C286.028 173.167 285.271 173.813 284.38 174.21C283.246 174.723 281.959 174.786 280.781 174.384C279.603 173.983 278.621 173.149 278.036 172.051C277.45 170.952 277.305 169.672 277.629 168.471C277.953 167.269 278.722 166.236 279.78 165.58C280.591 165.086 281.531 164.842 282.48 164.88C282.544 164.885 282.604 164.915 282.647 164.964C282.69 165.012 282.713 165.075 282.71 165.14C282.703 165.199 282.677 165.254 282.635 165.296C282.593 165.337 282.539 165.364 282.48 165.37C281.66 165.412 280.87 165.689 280.203 166.168C279.537 166.647 279.022 167.307 278.72 168.07C278.431 168.811 278.365 169.621 278.529 170.399C278.693 171.177 279.081 171.891 279.644 172.452C280.208 173.014 280.923 173.399 281.702 173.56C282.481 173.721 283.29 173.652 284.03 173.36C284.781 173.056 285.43 172.543 285.9 171.882C286.369 171.221 286.64 170.44 286.68 169.63C286.681 169.591 286.69 169.552 286.706 169.516C286.723 169.48 286.746 169.448 286.775 169.421C286.804 169.394 286.837 169.373 286.874 169.359C286.911 169.345 286.95 169.339 286.99 169.34C287.066 169.343 287.138 169.374 287.192 169.428C287.246 169.482 287.277 169.554 287.28 169.63ZM287.39 155.6C287.403 156.684 287.054 157.74 286.399 158.603C285.743 159.465 284.817 160.084 283.77 160.36C282.71 160.647 281.586 160.576 280.57 160.16C279.557 159.742 278.705 159.009 278.14 158.07C277.859 157.602 277.653 157.092 277.53 156.56C277.436 156.045 277.389 155.523 277.39 155L277.3 152L277.13 146.08L277 140.2V138.71C276.963 138.188 277 137.662 277.11 137.15C277.345 136.099 277.913 135.152 278.73 134.45C279.545 133.751 280.568 133.339 281.64 133.28C282.18 133.28 282.64 133.28 283.14 133.28C283.667 133.289 284.19 133.381 284.69 133.55C285.688 133.895 286.549 134.552 287.145 135.423C287.741 136.295 288.041 137.335 288 138.39C288.007 138.426 288.006 138.464 287.997 138.5C287.989 138.536 287.972 138.569 287.948 138.598C287.925 138.627 287.895 138.65 287.862 138.666C287.828 138.682 287.792 138.69 287.755 138.69C287.718 138.69 287.681 138.682 287.648 138.666C287.614 138.65 287.585 138.627 287.561 138.598C287.538 138.569 287.521 138.536 287.512 138.5C287.503 138.464 287.502 138.426 287.51 138.39C287.527 137.457 287.245 136.543 286.705 135.782C286.165 135.021 285.396 134.453 284.51 134.16C284.07 134.021 283.611 133.95 283.15 133.95C282.67 133.95 282.15 133.95 281.69 133.95C280.779 134.018 279.913 134.368 279.21 134.95C278.525 135.558 278.049 136.366 277.85 137.26C277.757 137.714 277.73 138.179 277.77 138.64L277.82 140.12L278.04 146.04L278.27 151.96L278.38 154.96C278.376 155.426 278.416 155.892 278.5 156.35C278.609 156.783 278.781 157.197 279.01 157.58C279.478 158.343 280.179 158.936 281.01 159.27C281.841 159.595 282.753 159.655 283.62 159.44C284.497 159.206 285.282 158.711 285.87 158.019C286.457 157.328 286.82 156.473 286.91 155.57C286.912 155.532 286.922 155.496 286.939 155.462C286.957 155.428 286.98 155.398 287.009 155.374C287.038 155.35 287.072 155.331 287.108 155.321C287.144 155.31 287.182 155.306 287.22 155.31C287.274 155.336 287.319 155.377 287.349 155.429C287.38 155.481 287.394 155.54 287.39 155.6ZM409.94 116.93C409.12 117.01 407.16 117.02 405.59 117.04L400.67 117.1L390.72 117.18H370.85H351.29H341.53C339.91 117.18 338.27 117.12 336.65 117.05C335.03 116.98 333.41 117.05 331.79 117.05C331.761 117.05 331.734 117.043 331.709 117.029C331.684 117.015 331.664 116.995 331.65 116.97C330.745 115.067 330.105 113.048 329.75 110.97C329.332 108.856 329.48 106.669 330.18 104.63C330.979 102.583 332.542 100.926 334.54 100.01C336.499 99.1157 338.609 98.5999 340.76 98.4901C345.045 98.1047 349.355 98.8892 353.23 100.76C355.143 101.727 356.907 102.963 358.47 104.43C360.047 105.874 361.381 107.562 362.42 109.43L362.22 109.28L386.08 113L409.94 116.93ZM408.94 116.86L385.54 113.43L362.14 109.81C362.098 109.8 362.058 109.782 362.024 109.756C361.99 109.73 361.961 109.698 361.94 109.66C359.735 106.139 356.595 103.3 352.87 101.46C349.123 99.6571 344.966 98.8773 340.82 99.2001C338.754 99.2645 336.719 99.7157 334.82 100.53C332.929 101.344 331.432 102.866 330.65 104.77C329.944 106.719 329.761 108.819 330.12 110.86C330.434 112.935 331.04 114.955 331.92 116.86L331.79 116.78C333.4 116.78 335.02 116.78 336.63 116.78C338.24 116.78 339.84 116.63 341.45 116.65H351.11H370.36H389.36L398.82 116.73L403.61 116.79C405.23 116.77 406.5 116.78 408.93 116.86H408.94Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M129.43 120.85L123.55 131.02H135.3L129.43 120.85Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M106.57 120.85L100.7 131.02H112.45L106.57 120.85Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M118 100.86L112.13 111.04H123.87L118 100.86Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M376 159.26H364.25C364.183 159.259 364.118 159.241 364.06 159.208C364.002 159.175 363.954 159.127 363.92 159.07C363.89 159.011 363.874 158.946 363.874 158.88C363.874 158.814 363.89 158.749 363.92 158.69L369.8 148.52C369.835 148.464 369.884 148.418 369.941 148.386C369.999 148.355 370.064 148.338 370.13 148.338C370.196 148.338 370.261 148.355 370.318 148.386C370.376 148.418 370.425 148.464 370.46 148.52L376.33 158.69C376.364 158.747 376.382 158.813 376.382 158.88C376.382 158.947 376.364 159.013 376.33 159.07C376.297 159.129 376.249 159.177 376.191 159.211C376.133 159.244 376.067 159.261 376 159.26ZM364.91 158.5H375.34L370.13 149.5L364.91 158.5ZM166.82 55.26H155.08C155.013 55.2624 154.946 55.2458 154.888 55.2122C154.829 55.1787 154.782 55.1294 154.75 55.07C154.715 55.0126 154.697 54.947 154.697 54.88C154.697 54.8131 154.715 54.7475 154.75 54.69L160.62 44.52C160.655 44.4643 160.704 44.4183 160.761 44.3865C160.819 44.3546 160.884 44.3379 160.95 44.3379C161.016 44.3379 161.081 44.3546 161.138 44.3865C161.196 44.4183 161.245 44.4643 161.28 44.52L167.15 54.69C167.184 54.7475 167.202 54.8131 167.202 54.88C167.202 54.947 167.184 55.0126 167.15 55.07C167.117 55.1287 167.069 55.1773 167.011 55.2108C166.953 55.2442 166.887 55.2613 166.82 55.26ZM155.73 54.5H166.17L160.95 45.5L155.73 54.5Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M213.75 95.9999L214.5 87.9999C214.519 87.8565 214.578 87.7213 214.67 87.6099C208.71 87.693 202.861 89.2337 197.633 92.0975C192.406 94.9613 187.958 99.0611 184.68 104.039C181.401 109.017 179.391 114.722 178.824 120.656C178.258 126.589 179.153 132.571 181.43 138.08L189.13 134.9C187.415 130.73 186.725 126.21 187.117 121.718C187.509 117.227 188.972 112.895 191.383 109.085C193.795 105.275 197.084 102.099 200.975 99.8223C204.867 97.5456 209.247 96.2349 213.75 95.9999Z",fill:"white"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_1300_75874",children:(0,a.jsx)("rect",{width:"450",height:"250",fill:"white"})})})]})};var Quiz_TimeOutSection=()=>{let{t:e}=(0,x.Y)(["course_player"]),t=(0,g.TL)(),{query:s}=(0,f.useRouter)(),{slug:r,chapterId:l,contentId:n}=s;return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)(TimeOutSection_Time,{className:"mb-8 text-primary"}),(0,a.jsxs)("div",{className:"mb-4 flex flex-col items-center justify-center space-y-4",children:[(0,a.jsx)(i.u.Text,{as:"h3",size:"lg",children:e("course_player:quiz_timeout_title"),className:"mb-3 font-semibold"}),(0,a.jsx)(i.u.Text,{as:"p",size:"sm",className:"font-normal text-gray-700",children:e("course_player:quiz_timeout_description")})]}),(0,a.jsx)(i.B,{variant:"solid",color:"primary",onClick:()=>{t(eO("fetchMemberQuiz",{slug:r,chapterId:l,contentId:n},e=>{Object.assign(e,{completed_at:new Date().toISOString()})}))},children:e("course_player:quiz_view_results")})]})},Quiz_QuizResult=()=>{var e;let{t}=(0,x.Y)(["course_player","common"]),{query:s}=(0,f.useRouter)(),{slug:l,chapterId:n,contentId:o}=s,{isAuthReady:c}=(0,r.useContext)(m.Vo),{data:d}=(0,v.IE)({slug:s.slug}),[u]=eq(),{data:p,refetch:h}=eV({slug:l,chapterId:n,contentId:o},{skip:!c}),j=(0,g.TL)(),{displayErrors:y}=(0,g.ah)({}),retakeExam=async()=>{let e=await u({slug:l,chapterId:n,contentId:o,retake:!0});y(e)||(h(),j(eO("fetchMemberQuiz",{slug:l,chapterId:n,contentId:o},t=>{Object.assign(t,e.data.data)})))},isQuestionAnsweredCorrectly=e=>{var t,s;return!!e.answer&&(null===(t=e.answer)||void 0===t?void 0:t.choice_id)===(null===(s=e.answer)||void 0===s?void 0:s.correct_choice_id)},isChoiceAnswerCorrect=(e,t)=>(null!=p&&!!p.completed_at||null==p||!p.quiz.show_results_at_end)&&!!e.answer&&e.answer.correct&&e.answer.choice_id===t.id,isChoiceAfterAnswerCorrect=(e,t)=>(!!(null==p?void 0:p.completed_at)||null==p||!p.quiz.show_results_at_end)&&(!e.answer&&!!t.credited||!!e.answer&&e.answer.correct_choice_id===t.id),isChoiceIncorrect=(e,t)=>(null!=p&&!!p.completed_at||null==p||!p.quiz.show_results_at_end)&&!!e.answer&&!e.answer.correct&&e.answer.choice_id===t.id,{content:_}=(0,g.CG)(e=>e.courses);return(null==p?void 0:p.quiz.show_results)?(0,a.jsxs)("div",{className:"pb-1",children:[(0,a.jsxs)(i.J,{className:"mb-4",children:[(0,a.jsxs)(i.J.Body,{children:[(null==p?void 0:p.quiz.passing_score)?(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(i.P.Ring,{color:(null==p?void 0:p.passed)?"success":"danger",value:null!==(e=null==p?void 0:p.percent_correct)&&void 0!==e?e:0,size:60}),(0,a.jsx)(i.u.Body,{as:"span",size:"base",className:(0,X.cn)("font-medium",(null==p?void 0:p.passed)?"text-success":"text-danger"),children:t((null==p?void 0:p.passed)?"course_player:quiz_passed_message":"course_player:quiz_failed_message")})]}):null,(0,a.jsxs)(i.G,{columns:{lg:(null==p?void 0:p.quiz.passing_score)?4:3,md:2,sm:2,xs:2},className:"mt-5",children:[(null==p?void 0:p.quiz.passing_score)?(0,a.jsx)(i.G.Cell,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:t("course_player:quiz_passing_score")}),(0,a.jsx)(i.u.Body,{as:"span",size:"base",className:"font-medium text-success",children:"".concat(null==p?void 0:p.quiz.passing_score,"%")})]})}):null,(0,a.jsx)(i.G.Cell,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:t("course_player:quiz_total_questions_count")}),(0,a.jsx)(i.u.Body,{as:"span",size:"base",className:"font-medium",children:t("course_player:quiz_questions_WithCount",{count:null==p?void 0:p.questions.length})})]})}),(0,a.jsx)(i.G.Cell,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:t("course_player:quiz_correct_questions_count")}),(0,a.jsx)(i.u.Body,{as:"span",size:"base",className:(0,X.cn)("font-medium",p&&(null==p?void 0:p.correct_answers)>0?"text-success":"text-gray-950"),children:t("course_player:quiz_questions_WithCount",{count:null==p?void 0:p.correct_answers})})]})}),(0,a.jsx)(i.G.Cell,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:t("course_player:quiz_wrong_questions_count")}),(0,a.jsx)(i.u.Body,{as:"span",size:"base",className:(0,X.cn)("font-medium",p&&(null==p?void 0:p.questions.length)-(null==p?void 0:p.correct_answers)>0?"text-danger":"text-gray-950"),children:t("course_player:quiz_questions_WithCount",{count:p&&(null==p?void 0:p.questions.length)-(null==p?void 0:p.correct_answers)})})]})})]})]}),(null==d?void 0:d.settings.can_retake_exam)&&(0,a.jsx)(i.J.Footer,{children:(0,a.jsx)(i.B,{variant:"solid",color:"primary",children:t("course_player:quiz_retake"),onClick:retakeExam})})]}),(0,a.jsx)(i.J,{className:"mb-20",children:(0,a.jsxs)(i.J.Body,{children:[(0,a.jsx)(i.u.Body,{size:"lg",className:"mb-3 block font-bold",children:t("course_player:quiz_answers")}),(0,a.jsx)("div",{className:"flex flex-col space-y-5",children:null==p?void 0:p.questions.map((e,s)=>{var r;return(0,a.jsxs)("div",{className:"flex flex-col space-y-4 rounded-2xl bg-gray-100 p-4",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[isQuestionAnsweredCorrectly(e)?(0,a.jsx)(i.s,{size:"md",color:"success",children:(0,a.jsx)(eI.Z,{})}):(0,a.jsx)(i.s,{size:"md",color:"danger",children:(0,a.jsx)(eP.Z,{})}),(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:(0,a.jsx)(x.C,{i18nKey:"course_player:quiz_question",components:{span:(0,a.jsx)("span",{className:"text-black"})},values:{number:null!==(r=null==p?void 0:p.questions.length)&&void 0!==r?r:0,question:s+1}})}),!e.answer&&(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"font-bold text-danger",children:t("course_player:quiz_question_skipped")})]}),(0,a.jsx)("span",{className:"prose",dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}})]}),(0,a.jsx)("div",{className:"flex flex-col space-y-4",children:null==e?void 0:e.choices.map(s=>{var r,l;return(0,a.jsxs)("div",{className:(0,X.cn)("rounded-lg border border-transparent bg-white p-4",isChoiceAnswerCorrect(e,s)&&isChoiceAfterAnswerCorrect(e,s)&&"border-success bg-success-50",isChoiceIncorrect(e,s)&&"border-danger bg-danger-50"),children:[(0,a.jsx)("span",{className:"prose",dangerouslySetInnerHTML:{__html:s.content}}),isChoiceAfterAnswerCorrect(e,s)&&(0,a.jsxs)("div",{className:"flex items-start gap-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(i.s,{size:"sm",className:"text-success",children:(0,a.jsx)(eI.Z,{})}),(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"whitespace-nowrap font-normal text-success",children:isChoiceAnswerCorrect(e,s)?t("course_player:quiz_student_answer_correct"):t("course_player:quiz_question_answer_correct")})]}),((null==e?void 0:null===(r=e.answer)||void 0===r?void 0:r.explanation)||!e.answer&&s.credited)&&(0,a.jsxs)(a.Fragment,{children:["-",(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"font-bold text-success",children:(null==e?void 0:null===(l=e.answer)||void 0===l?void 0:l.explanation)||s.explanation})]})]}),isChoiceIncorrect(e,s)&&(0,a.jsx)("div",{className:"flex items-start gap-1",children:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(i.s,{size:"sm",className:"text-danger",children:(0,a.jsx)(eP.Z,{})}),(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:"whitespace-nowrap font-normal text-danger",children:t("course_player:quiz_student_answer_wrong")})]})})]},s.id)})})]},s)})})]})})]}):(0,a.jsx)(i.J,{children:(0,a.jsxs)(i.J.Body,{className:"flex flex-col justify-center space-y-6 !px-6 !py-16",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-2.5 text-center",children:[(0,a.jsx)(C(),{src:"/images/check-success.gif",alt:"check-success",width:120,height:120}),(0,a.jsx)("div",{className:"flex flex-col gap-1",children:(0,a.jsx)(i.u.Title,{size:"md",className:"font-semibold",children:t("course_player:quiz_submitted_message")})})]}),!_.next.is_last&&_.next.nextable&&(0,a.jsx)(i.B,{as:N(),href:"/courses/".concat(s.slug,"/chapters/").concat(_.next.chapter_id,"/contents/").concat(_.next.content_id),children:t("common:next"),className:"mx-auto"})]})})},Survey_SurveyQuestionChoice=e=>{let{choice:t,question:s,onChange:r,checked:l,readOnly:n,memberSurvey:o}=e;return(0,a.jsx)("label",{htmlFor:"choice-".concat(t.id),className:(0,X.cn)("w-full rounded-lg border p-4 transition-colors","flex flex-col gap-4",l?"border-primary bg-primary-50":"border-gray"),children:(0,a.jsx)(i.W.Radio,{id:"choice-".concat(t.id),name:"question-".concat(s.id,"-choice"),description:(0,a.jsx)("span",{className:"prose prose-sm prose-stone sm:prose-base max-w-full",dir:"auto",dangerouslySetInnerHTML:{__html:t.content}}),classNames:{description:(0,X.cn)(l?"!text-black":"text-gray-700","font-medium")},checked:l,readOnly:n,onChange:()=>{r&&r({question_id:s.id,choice_id:t.id})}})})};let eW=em.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchMemberSurvey:e.query({query:e=>{let{slug:t,chapterId:s,contentId:a}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/surveys/attempts"),method:"GET"}},transformResponse:e=>e.data,providesTags:["memberSurvey.index"]}),attemptMemberSurvey:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,retake:r}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/surveys/attempts"),method:"POST",body:{retake:r}}}}),closeMemberSurvey:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/surveys/attempts/close"),method:"POST"}}}),submitMemberSurveyAnswer:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,...r}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/surveys/attempts/answers"),method:"POST",body:r}}})})}),{useFetchMemberSurveyQuery:eY,useAttemptMemberSurveyMutation:eQ,useCloseMemberSurveyMutation:eG,useSubmitMemberSurveyAnswerMutation:eJ,util:{updateQueryData:eU}}=eW;var Survey_SurveyStatus=()=>{let{query:e}=(0,f.useRouter)(),{slug:t,chapterId:s,contentId:l}=e,{isAuthReady:n}=(0,r.useContext)(m.Vo),{data:o,isLoading:i}=eY({slug:t,chapterId:s,contentId:l},{skip:!n});return!o||i?(0,a.jsx)(u.LoadingScreen,{}):o.completed_at?(0,a.jsx)(u.SurveyResult,{}):(0,a.jsx)(u.SurveyForm,{})},Survey_SurveyContent=e=>{let{content:t}=e;return t.contentable.attempted?(0,a.jsx)(Survey_SurveyStatus,{}):(0,a.jsx)(u.SurveyInformation,{content:t})},Survey_SurveyForm=()=>{var e,t,s,l;let{t:n}=(0,x.Y)(["course_player"]),{query:o}=(0,f.useRouter)(),{slug:c,chapterId:h,contentId:C}=o,{isAuthReady:j}=(0,r.useContext)(m.Vo),[v]=eJ(),[_]=(0,p.Z)(),b=(0,g.TL)(),{data:w,refetch:N}=eY({slug:c,chapterId:h,contentId:C},{skip:!j}),[L,z]=(0,r.useState)(0),{displayErrors:Z}=(0,g.ah)({}),S=M.Ry().shape({answer:M.Ry().shape({question_id:M.Rx().required(),choice_id:M.Rx().required()})}),{handleSubmit:H,reset:B,watch:E,control:A,setValue:I,getValues:P,formState:{isSubmitting:T}}=(0,d.cI)({defaultValues:{answer:void 0},resolver:(0,k.X)(S)});(0,r.useEffect)(()=>{w&&(b((0,y.Uw)(w)),B({questions:w.questions}),z(w.questions.findIndex(e=>!e.answer)))},[w]);let R=null!==(e=P("questions"))&&void 0!==e?e:[],V=(0,r.useMemo)(()=>R[L],[w,L,R]);(0,r.useEffect)(()=>{if(V&&V.answer){var e;I("answer",{question_id:V.id,choice_id:null===(e=V.answer)||void 0===e?void 0:e.choice_id})}else I("answer",void 0)},[L]);let onSubmit=async e=>{if(!e.answer)return;let t=await v({slug:o.slug,chapterId:o.chapterId,contentId:o.contentId,...e.answer});!Z(t)&&V&&(R[L]={...V,answer:t.data.data},B({questions:R,answer:void 0}))},isChecked=(e,t)=>e?e.choice_id==t.id:null!=V&&!!V.answer&&V.answer.choice_id==t.id;return(0,a.jsx)("div",{className:"mb-10",children:(0,a.jsxs)(i.J,{children:[(0,a.jsx)(i.J.Body,{children:(0,a.jsx)(u.SurveyQuestion,{index:L,title:null!==(t=null==V?void 0:V.title)&&void 0!==t?t:"",explanation:null!==(s=null==V?void 0:V.explanation)&&void 0!==s?s:"",questionsLength:null!==(l=null==w?void 0:w.questions.length)&&void 0!==l?l:0,children:null==V?void 0:V.choices.map(e=>(0,a.jsx)(d.Qr,{render:t=>{let{field:{onChange:s,value:r}}=t;return(0,a.jsx)(u.SurveyQuestionChoice,{memberSurvey:w,readOnly:null!==V.answer,checked:isChecked(r,e),choice:e,question:V,onChange:s},e.id)},name:"answer",control:A},e.id))})}),(0,a.jsx)(i.J.Footer,{children:(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.B,{type:"button",color:"primary",disabled:T||void 0===E("answer"),className:"w-full md:!w-auto",onClick:async()=>{if(w){let e=L==w.questions.length-1;if((null==V?void 0:V.answer)||await H(onSubmit)(),e){await _(!0),b((0,y.Uw)(null)),N();return}}if(R[L+1]){z(e=>e+1);return}N()},children:n(w&&L==(null==w?void 0:w.questions.length)-1?"course_player:survey_results":"course_player:survey_next_question")}),void 0!==R[L-1]&&(0,a.jsx)(i.B,{type:"button",variant:"outline",color:"primary",className:"w-full md:!w-auto",onClick:()=>{if(R[L-1]){z(e=>e-1);return}},children:n("course_player:quiz_prev_question")})]})})})]})})};let SurveyInformation_IntroImage=e=>{let{className:t}=e;return(0,a.jsxs)("svg",{width:"336",height:"270",viewBox:"0 0 336 270",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_2789_110377)",children:[(0,a.jsx)("path",{d:"M220.311 214.836H166.532V263.32H220.311V214.836Z",fill:"#FAFAFA"}),(0,a.jsx)("path",{d:"M197.653 139.934H192.326C191.879 139.934 191.516 139.571 191.516 139.123C191.516 138.675 191.879 138.312 192.326 138.312H197.653C198.1 138.312 198.463 138.675 198.463 139.123C198.463 139.571 198.1 139.934 197.653 139.934Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M210.756 42.9678H210.723C210.276 42.9678 209.913 42.6043 209.913 42.1565C209.913 41.7087 210.276 41.3452 210.723 41.3452C211.17 41.3452 211.55 41.7087 211.55 42.1565C211.55 42.6043 211.203 42.9678 210.756 42.9678Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M299.72 116.998C299.72 151.173 277.156 180.081 246.103 189.641V205.114H219.922V189.609C250.976 180.081 273.54 151.173 273.54 116.965C273.54 75.008 239.551 40.9951 197.617 40.9951H223.798C265.76 41.0276 299.72 75.0404 299.72 116.998Z",fill:"black"}),(0,a.jsx)("path",{d:"M246.102 205.925H219.922C219.475 205.925 219.112 205.562 219.112 205.114V189.608C219.112 189.252 219.346 188.937 219.686 188.833C234.726 184.218 248.238 174.707 257.728 162.054C267.542 148.972 272.73 133.379 272.73 116.965C272.73 96.8901 264.918 78.016 250.729 63.8183C236.544 49.6239 217.68 41.8062 197.617 41.8062C197.17 41.8062 196.807 41.4427 196.807 40.9949C196.807 40.5471 197.17 40.1836 197.617 40.1836H223.798C244.307 40.1998 263.58 48.196 278.066 62.702C292.55 77.2048 300.527 96.4877 300.527 117.001C300.527 133.755 295.226 149.673 285.201 163.04C275.626 175.803 262.044 185.448 246.909 190.241V205.117C246.909 205.565 246.546 205.929 246.099 205.929L246.102 205.925ZM220.732 204.303H245.292V189.641C245.292 189.284 245.526 188.969 245.866 188.865C260.907 184.234 274.418 174.716 283.908 162.06C293.722 148.979 298.91 133.395 298.91 116.994C298.91 96.916 291.101 78.0388 276.922 63.8443C262.74 49.6466 243.873 41.8192 223.798 41.8029H213.432C227.896 44.8177 241.184 51.9701 251.876 62.6695C266.369 77.1723 274.35 96.452 274.35 116.965C274.35 133.733 269.049 149.663 259.024 163.027C249.45 175.794 235.867 185.425 220.732 190.206V204.303Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M219.958 205.925H192.358C191.911 205.925 191.548 205.562 191.548 205.114C191.548 204.666 191.911 204.303 192.358 204.303H219.958C220.405 204.303 220.768 204.666 220.768 205.114C220.768 205.562 220.405 205.925 219.958 205.925Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M210.724 99.136C205.235 103.173 201.684 109.667 201.684 116.998H175.504C175.504 104.757 185.415 94.8394 197.647 94.8394C202.552 94.8394 207.072 96.4555 210.72 99.136H210.724Z",fill:"black"}),(0,a.jsx)("path",{d:"M201.687 117.809H175.507C175.06 117.809 174.697 117.445 174.697 116.997C174.697 104.331 184.994 94.0278 197.65 94.0278C202.552 94.0278 207.237 95.5693 211.203 98.4802C211.411 98.6328 211.534 98.8762 211.534 99.1358C211.534 99.3954 211.411 99.6355 211.203 99.7913C205.669 103.864 202.494 110.137 202.494 117.001C202.494 117.448 202.131 117.812 201.684 117.812L201.687 117.809ZM176.333 116.186H200.89C201.126 109.582 204.237 103.342 209.356 99.1682C205.87 96.8641 201.846 95.6504 197.65 95.6504C186.157 95.6504 176.758 104.789 176.33 116.186H176.333Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M175.507 117.809H147.907C147.46 117.809 147.097 117.445 147.097 116.997C147.097 116.549 147.46 116.186 147.907 116.186H175.507C175.954 116.186 176.317 116.549 176.317 116.997C176.317 117.445 175.954 117.809 175.507 117.809Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M246.135 214.837H219.955V263.32H246.135V214.837Z",fill:"black"}),(0,a.jsx)("path",{d:"M246.135 264.131H219.955C219.507 264.131 219.145 263.768 219.145 263.32V214.837C219.145 214.389 219.507 214.025 219.955 214.025H246.135C246.582 214.025 246.945 214.389 246.945 214.837V263.32C246.945 263.768 246.582 264.131 246.135 264.131ZM220.765 262.509H245.325V215.648H220.765V262.509Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M272.992 116.997C272.992 151.172 250.428 180.081 219.375 189.641V205.114H165.595V139.155H197.067C209.301 139.155 219.21 129.238 219.21 116.997C219.21 109.666 215.658 103.173 210.17 99.1358C206.489 96.4228 201.972 94.8391 197.096 94.8391C184.861 94.8391 174.953 104.756 174.953 116.997H121.144C121.144 75.0402 155.133 41.0273 197.067 41.0273C239 41.0273 272.989 75.0402 272.989 116.997H272.992Z",fill:"#FAFAFA"}),(0,a.jsx)("path",{d:"M219.958 205.925H166.178C165.731 205.925 165.368 205.562 165.368 205.114V188.06C165.368 187.612 165.731 187.249 166.178 187.249C166.626 187.249 166.988 187.612 166.988 188.06V204.302H219.148V189.641C219.148 189.284 219.381 188.969 219.721 188.865C234.762 184.234 248.273 174.716 257.764 162.06C267.578 148.978 272.765 133.395 272.765 116.997C272.765 96.9223 264.953 78.045 250.765 63.8506C236.58 49.6561 217.716 41.8384 197.653 41.8384C179.207 41.8384 161.471 48.6014 147.707 60.8845C147.373 61.183 146.861 61.1538 146.563 60.8195C146.265 60.4853 146.294 59.9726 146.628 59.674C160.686 47.1281 178.808 40.2158 197.653 40.2158C218.15 40.2158 237.419 48.2022 251.912 62.705C266.405 77.2078 274.385 96.4875 274.385 117C274.385 133.752 269.085 149.673 259.06 163.04C249.485 175.803 235.902 185.448 220.768 190.241V205.117C220.768 205.565 220.405 205.928 219.958 205.928V205.925Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M197.653 139.967H180.61C180.162 139.967 179.8 139.603 179.8 139.155C179.8 138.708 180.162 138.344 180.61 138.344H197.653C209.417 138.344 218.986 128.768 218.986 116.997C218.986 110.134 215.81 103.861 210.276 99.788C206.605 97.0815 202.25 95.6504 197.682 95.6504C185.917 95.6504 176.349 105.227 176.349 116.997C176.349 117.445 175.986 117.809 175.539 117.809H121.73C121.283 117.809 120.92 117.445 120.92 116.997C120.92 102.215 125.116 87.8911 133.058 75.5691C133.301 75.1927 133.803 75.0856 134.179 75.3257C134.555 75.5691 134.661 76.0721 134.422 76.4486C126.794 88.2838 122.699 102.004 122.547 116.186H174.745C175.173 103.893 185.298 94.0278 197.685 94.0278C202.6 94.0278 207.285 95.5692 211.238 98.4802C217.103 102.796 220.606 109.718 220.606 116.997C220.606 129.663 210.308 139.967 197.653 139.967Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M206.142 264.131H166.179C165.732 264.131 165.369 263.768 165.369 263.32V214.837C165.369 214.389 165.732 214.025 166.179 214.025C166.626 214.025 166.989 214.389 166.989 214.837V262.509H206.142C206.589 262.509 206.952 262.872 206.952 263.32C206.952 263.768 206.589 264.131 206.142 264.131Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M219.958 264.131C219.511 264.131 219.148 263.768 219.148 263.32V215.648H197.653C197.206 215.648 196.843 215.285 196.843 214.837C196.843 214.389 197.206 214.025 197.653 214.025H219.958C220.405 214.025 220.768 214.389 220.768 214.837V263.32C220.768 263.768 220.405 264.131 219.958 264.131Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M55.7163 66.9303H223.473C228.508 66.9303 232.575 62.8608 232.575 57.8211V35.955C232.575 30.9152 228.508 26.8457 223.473 26.8457H55.7163C50.6812 26.8457 46.6116 30.9152 46.6116 35.955V57.8211C46.6116 62.8608 50.6779 66.9303 55.7163 66.9303Z",fill:"white"}),(0,a.jsx)("path",{d:"M223.185 66.9303H176.123V26.8457H223.185C228.382 26.8457 232.611 31.0774 232.611 36.2762V57.4965C232.611 62.7278 228.382 66.9271 223.185 66.9271V66.9303Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M223.509 67.7419H213.05C212.603 67.7419 212.24 67.3784 212.24 66.9306C212.24 66.4827 212.603 66.1193 213.05 66.1193H223.509C228.081 66.1193 231.801 62.397 231.801 57.8213V35.9552C231.801 31.3795 228.081 27.6573 223.509 27.6573H148.199C147.752 27.6573 147.389 27.2938 147.389 26.846C147.389 26.3981 147.752 26.0347 148.199 26.0347H223.509C228.975 26.0347 233.421 30.4838 233.421 35.9552V57.8213C233.421 63.2895 228.975 67.7419 223.509 67.7419Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M197.653 67.7419H55.7162C50.2501 67.7419 45.8047 63.2927 45.8047 57.8213V47.7742C45.8047 47.3264 46.1676 46.9629 46.6147 46.9629C47.0619 46.9629 47.4247 47.3264 47.4247 47.7742V57.8213C47.4247 62.397 51.1444 66.1193 55.7162 66.1193H197.649C198.097 66.1193 198.46 66.4827 198.46 66.9306C198.46 67.3784 198.097 67.7419 197.649 67.7419H197.653Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M46.6147 38.996C46.1676 38.996 45.8047 38.6325 45.8047 38.1847V35.9552C45.8047 30.4838 50.2501 26.0347 55.7162 26.0347H128.603C129.05 26.0347 129.413 26.3981 129.413 26.846C129.413 27.2938 129.05 27.6573 128.603 27.6573H55.7162C51.1444 27.6573 47.4247 31.3795 47.4247 35.9552V38.1847C47.4247 38.6325 47.0619 38.996 46.6147 38.996Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M176.123 58.0517C175.675 58.0517 175.312 57.6883 175.312 57.2404V26.846C175.312 26.3981 175.675 26.0347 176.123 26.0347C176.57 26.0347 176.933 26.3981 176.933 26.846V57.2404C176.933 57.6883 176.57 58.0517 176.123 58.0517Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M201.243 55.0694C198.35 55.0694 195.456 53.966 193.253 51.7625C191.118 49.6272 189.942 46.7844 189.942 43.7631C189.942 40.7418 191.118 37.9023 193.253 35.7637C197.66 31.3535 204.83 31.3535 209.237 35.7637C211.372 37.8991 212.548 40.7418 212.548 43.7631C212.548 46.7844 211.372 49.6239 209.237 51.7625C207.033 53.966 204.14 55.0694 201.246 55.0694H201.243ZM201.243 34.7285C198.93 34.7285 196.616 35.6079 194.854 37.3733C193.146 39.0803 192.207 41.3487 192.207 43.7631C192.207 46.1775 193.146 48.4459 194.854 50.1529C198.376 53.6772 204.107 53.6772 207.629 50.1529C209.337 48.4459 210.277 46.1775 210.277 43.7631C210.277 41.3487 209.337 39.0803 207.629 37.3733C205.867 35.6112 203.553 34.7285 201.24 34.7285H201.243Z",fill:"white"}),(0,a.jsx)("path",{d:"M217.664 61.3165C217.373 61.3165 217.084 61.2062 216.864 60.9855L207.633 51.7465C207.189 51.3019 207.189 50.5847 207.633 50.1401C208.077 49.6955 208.793 49.6955 209.237 50.1401L218.468 59.3791C218.912 59.8237 218.912 60.5409 218.468 60.9855C218.247 61.2062 217.956 61.3198 217.664 61.3198V61.3165Z",fill:"white"}),(0,a.jsx)("path",{d:"M79.0552 51.9442C77.5064 50.6526 75.9901 49.2962 74.7297 47.6476C74.4056 47.229 74.1173 46.7746 73.8581 46.2911C73.7285 46.0315 73.5989 45.7751 73.5017 45.4831C73.4045 45.191 73.3396 44.9022 73.3072 44.5127C73.3072 44.1558 73.372 43.7047 73.6313 43.3185C73.7609 43.1238 73.9553 42.9615 74.114 42.835C74.3084 42.7376 74.5028 42.6403 74.6616 42.5754C75.4036 42.3807 75.9836 42.5105 76.5344 42.6403C77.6328 42.9323 78.5692 43.4483 79.4408 43.9968C80.3124 44.5452 81.1192 45.191 81.8936 45.8692C82.6679 46.5475 83.3451 47.2906 84.0255 48.0662C84.7027 48.8418 85.3151 49.6823 85.8335 50.6494C86.3163 51.5873 86.7051 52.6841 86.6403 53.9108C86.6403 54.2029 86.5431 54.5242 86.4783 54.8162C86.4459 54.9785 86.3487 55.1083 86.3163 55.2349L86.2191 55.462C86.1867 55.5269 86.1219 55.5918 86.0895 55.6567C85.9923 55.7865 85.9275 55.9164 85.8303 56.0429L85.5063 56.3999C85.4091 56.5297 85.2795 56.627 85.1823 56.692C85.0527 56.7893 84.9555 56.8867 84.8259 56.9516C83.8571 57.5974 82.7587 57.8894 81.6959 58.016C80.6299 58.1458 79.5672 58.1133 78.5336 57.9835C74.4024 57.4351 70.6568 55.5302 67.4621 53.0736C67.1057 52.8139 67.0441 52.298 67.3001 51.9442C67.5593 51.5873 68.0745 51.5256 68.4309 51.782C69.9472 52.9438 71.5932 53.9465 73.304 54.7546C75.0472 55.5302 76.8552 56.1435 78.728 56.3707C79.6644 56.5005 80.6007 56.5005 81.4723 56.4031C82.3763 56.3058 83.2155 56.0462 83.8927 55.5951C84.5375 55.144 84.9587 54.4982 84.9911 53.7551C85.0559 52.9795 84.7967 52.1389 84.3787 51.3633C83.9608 50.5553 83.4099 49.8121 82.7975 49.1014C82.1852 48.3908 81.5047 47.6801 80.7952 47.0667C80.0856 46.4209 79.3436 45.84 78.566 45.3208C77.7916 44.8373 76.9524 44.3829 76.1456 44.1915C75.7568 44.0941 75.3388 44.0617 75.112 44.1266C74.9824 44.159 74.95 44.1915 74.95 44.2239C74.95 44.2239 74.9176 44.3213 74.9176 44.4511C74.9176 44.7107 75.0796 45.1293 75.274 45.5155C75.4684 45.9017 75.7244 46.2911 76.016 46.6448C77.1468 48.1311 78.5984 49.4227 80.0823 50.6819C80.4387 50.9739 80.4679 51.4899 80.1795 51.8112C79.9203 52.1974 79.4051 52.2298 79.0487 51.941L79.0552 51.9442Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M98.7451 50.5226C96.3895 49.0363 94.0955 47.4527 92.0316 45.5477C90.998 44.6099 89.9968 43.5779 89.1252 42.4161C88.704 41.8352 88.3184 41.1894 87.9944 40.5112C87.8324 40.1542 87.7028 39.7681 87.638 39.3819C87.5408 38.9632 87.5084 38.5089 87.6056 38.0578C87.638 37.8307 87.7352 37.5743 87.8648 37.3471C87.9944 37.12 88.1564 36.8961 88.3476 36.7338C88.7364 36.3768 89.1868 36.1854 89.608 36.088C90.4796 35.8933 91.254 35.9907 91.9959 36.1529C93.4799 36.4774 94.7727 37.0908 96.0299 37.8015C98.4827 39.2553 100.647 41.0629 102.614 43.0652C103.583 44.1004 104.519 45.1324 105.326 46.3266C106.133 47.5208 106.81 48.8124 107.199 50.2987C107.328 50.6557 107.328 51.0419 107.393 51.428C107.425 51.6227 107.393 51.8142 107.425 52.0089C107.425 52.2036 107.458 52.3951 107.393 52.5898C107.328 53.3979 107.069 54.1735 106.651 54.8842C106.23 55.5624 105.682 56.1757 105.037 56.6301C104.875 56.7599 104.713 56.8572 104.555 56.9546C104.393 57.0519 104.231 57.1493 104.072 57.2467L103.557 57.4738C103.459 57.5063 103.395 57.5712 103.297 57.6036L103.038 57.701C101.651 58.217 100.164 58.4117 98.7451 58.4441C97.3259 58.4766 95.8711 58.3468 94.4843 58.0872C93.0976 57.8276 91.74 57.4738 90.3856 57.0227C89.0636 56.5717 87.7708 56.02 86.4813 55.4066C86.0925 55.2119 85.9013 54.7284 86.0924 54.339C86.2869 53.9528 86.7696 53.7581 87.1584 53.9528H87.1909C88.3865 54.5337 89.6112 55.0821 90.904 55.504C92.1644 55.9226 93.454 56.2796 94.7468 56.5068C96.0364 56.7339 97.3616 56.8637 98.6835 56.828C99.9764 56.7956 101.266 56.6009 102.462 56.1822C103.657 55.7636 104.655 55.0529 105.271 54.0826C105.53 53.5991 105.721 53.0506 105.786 52.4665C105.818 52.3367 105.786 52.1744 105.786 52.0154V51.5643C105.721 51.2723 105.721 50.9834 105.624 50.6589C105.332 49.4647 104.72 48.2997 103.978 47.2352C103.236 46.1384 102.364 45.1681 101.46 44.1653C99.5875 42.2604 97.5236 40.5144 95.2296 39.158C94.0988 38.5122 92.9064 37.9637 91.6784 37.6717C91.0984 37.5419 90.4828 37.5094 90 37.6068C89.7732 37.6717 89.5788 37.769 89.4524 37.8664C89.3228 37.9637 89.258 38.126 89.2256 38.3175C89.1284 38.7036 89.2904 39.2878 89.5173 39.8362C89.7765 40.3846 90.0972 40.9331 90.486 41.4523C91.2604 42.4843 92.1968 43.4546 93.1656 44.36C95.1356 46.1676 97.3616 47.7188 99.6523 49.1402C100.041 49.3673 100.135 49.8833 99.9115 50.237C99.6199 50.6232 99.1372 50.753 98.7483 50.5291L98.7451 50.5226Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M121.245 51.8143C118.662 50.1333 116.209 48.3257 113.919 46.226C112.788 45.1941 111.693 44.0615 110.724 42.8348C110.241 42.2215 109.787 41.5757 109.402 40.865C109.013 40.1543 108.66 39.3787 108.53 38.4733C108.465 38.0222 108.465 37.503 108.692 36.9545C108.789 36.6949 108.952 36.4385 109.146 36.2114C109.34 36.0167 109.596 35.8252 109.823 35.7278C110.306 35.4682 110.792 35.4358 111.242 35.4033C111.693 35.4033 112.114 35.4358 112.532 35.5331C114.178 35.8901 115.597 36.6008 116.955 37.4056C119.634 39.0217 121.957 41.0889 124.122 43.2502C125.188 44.3503 126.221 45.5121 127.158 46.7712C128.062 48.0304 128.901 49.4193 129.384 51.0354C129.61 51.8435 129.74 52.7164 129.643 53.5861C129.513 54.4915 129.128 55.3937 128.512 56.0395C127.9 56.7177 127.125 57.1688 126.351 57.4933C125.577 57.8146 124.77 58.0093 123.995 58.1391C122.414 58.3988 120.833 58.3663 119.281 58.204C117.732 58.0418 116.216 57.7854 114.696 57.396C111.696 56.6528 108.79 55.5884 106.013 54.326C105.592 54.1313 105.433 53.6802 105.624 53.2616C105.818 52.843 106.269 52.6807 106.69 52.8754C109.402 54.1021 112.211 55.1373 115.082 55.848C116.533 56.2018 117.988 56.4614 119.44 56.6236C120.891 56.7534 122.379 56.7859 123.765 56.5587C124.475 56.4614 125.152 56.2991 125.768 56.0103C126.38 55.7507 126.931 55.397 127.349 54.9459C127.77 54.4948 127.994 53.9431 128.091 53.3298C128.156 52.7164 128.091 52.0706 127.896 51.3924C127.508 50.0683 126.766 48.8092 125.926 47.6442C125.087 46.45 124.086 45.3498 123.052 44.2854C120.953 42.1858 118.695 40.1835 116.209 38.6647C114.949 37.9216 113.627 37.2758 112.305 36.9837C111.66 36.8539 110.98 36.8539 110.594 37.0486C110.4 37.146 110.303 37.2758 110.205 37.4348C110.141 37.6295 110.108 37.8859 110.141 38.178C110.205 38.7589 110.497 39.4046 110.818 40.018C111.142 40.6313 111.56 41.2122 112.013 41.7931C112.917 42.9224 113.951 43.9901 115.046 44.9896C117.24 46.9919 119.663 48.7703 122.148 50.4156C122.505 50.6427 122.602 51.1263 122.375 51.4832C122.084 51.9343 121.601 52.0317 121.245 51.8045V51.8143Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M140.582 51.1685C140.034 50.8115 139.548 50.4578 139.033 50.1041L137.517 49.0364C137.001 48.6794 136.515 48.3257 136 47.9395C135.741 47.7448 135.517 47.5533 135.258 47.3586C134.999 47.1639 134.775 46.94 134.516 46.7453C133.58 45.9048 132.676 44.9994 131.869 44.0323C131.062 43.0295 130.32 41.9651 129.931 40.5437C129.899 40.349 129.834 40.1868 129.834 39.9953C129.834 39.8979 129.802 39.8006 129.802 39.7032L129.834 39.3787V39.2164L129.867 39.0542C129.899 38.9568 129.931 38.827 129.964 38.7329C130.029 38.6356 130.061 38.5057 130.126 38.4084C130.191 38.311 130.288 38.2137 130.353 38.1163L130.482 37.9865L130.644 37.8892C130.741 37.8243 130.839 37.7269 130.968 37.6945C131.195 37.5971 131.389 37.5322 131.613 37.4997C131.71 37.4673 131.807 37.4673 131.937 37.4673H132.229C132.423 37.4673 132.614 37.4997 132.776 37.4997C134.195 37.6945 135.359 38.3078 136.489 38.9211C137.588 39.5669 138.618 40.3101 139.587 41.1181C140.556 41.9262 141.492 42.7667 142.396 43.6364C143.268 44.5418 144.107 45.5089 144.816 46.609C145.526 47.6767 146.138 48.8709 146.462 50.1949C146.527 50.5162 146.624 50.8407 146.624 51.1977L146.657 51.7137V52.4893L146.624 52.7489L146.527 53.2649C146.43 53.6219 146.333 53.9756 146.171 54.2676C145.879 54.9459 145.429 55.4943 144.91 55.9811L144.525 56.3381C144.395 56.4354 144.233 56.5328 144.104 56.6269C143.812 56.8216 143.524 56.9839 143.2 57.1429C141.972 57.7238 140.65 57.9509 139.36 58.0483C138.067 58.1456 136.778 58.0483 135.517 57.8536C134.26 57.6589 133.032 57.3701 131.837 56.9806C130.641 56.6237 129.449 56.1726 128.318 55.689C127.9 55.5268 127.705 55.0432 127.867 54.6246C128.029 54.206 128.512 54.0113 128.933 54.1735H128.966C130.064 54.6246 131.195 55.0789 132.323 55.4002C133.453 55.7572 134.613 56.046 135.777 56.2083C136.94 56.403 138.132 56.4679 139.263 56.403C140.394 56.3381 141.554 56.1109 142.522 55.6598C143.491 55.2087 144.33 54.4981 144.748 53.5602C144.878 53.333 144.91 53.0767 145.008 52.8495L145.072 52.4601L145.105 52.2654V51.6845L145.072 51.2983C145.072 51.0387 144.975 50.7499 144.943 50.4902C144.684 49.4226 144.168 48.3906 143.524 47.4203C142.879 46.45 142.105 45.5478 141.298 44.7073C139.619 43.0263 137.747 41.4459 135.744 40.2484C134.743 39.6675 133.645 39.1515 132.647 39.0217C132.164 38.9568 131.71 39.0542 131.581 39.2164C131.419 39.3138 131.386 39.7649 131.516 40.216C131.645 40.6995 131.872 41.1863 132.161 41.6698C132.452 42.1533 132.773 42.6401 133.162 43.0912C133.904 43.9966 134.743 44.8371 135.615 45.6419C135.841 45.8366 136.065 46.0281 136.292 46.2228C136.519 46.4175 136.742 46.5765 137.001 46.7713C137.484 47.125 137.97 47.4819 138.485 47.8357L139.969 48.9033C140.452 49.2603 140.97 49.614 141.453 49.9061H141.486C141.842 50.1333 141.939 50.6168 141.712 50.9705C141.421 51.295 140.938 51.3892 140.582 51.1652V51.1685Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M157.592 47.521C158.075 49.0073 158.431 50.6201 158.14 52.3011C157.978 53.1416 157.625 54.0114 157.009 54.6896C156.397 55.4003 155.525 55.7865 154.686 55.9812C152.975 56.3382 151.394 56.0461 149.877 55.6599C148.393 55.2413 146.971 54.6571 145.584 54.0113C145.195 53.8166 145.004 53.3331 145.195 52.9437C145.39 52.5575 145.873 52.3628 146.261 52.5575C147.583 53.2033 148.909 53.7517 150.295 54.1412C151.65 54.5273 153.072 54.7545 154.297 54.4657C154.909 54.3034 155.46 54.0795 155.813 53.6252C156.202 53.2065 156.458 52.6549 156.555 52.0415C156.782 50.7824 156.523 49.361 156.073 48.037C155.943 47.6183 156.137 47.1964 156.555 47.0374C156.977 46.8752 157.427 47.1348 157.589 47.521H157.592Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M59.3324 17.5484C59.125 17.5484 58.9177 17.4705 58.7589 17.3115C58.4414 16.9935 58.4414 16.4807 58.7589 16.1627L74.6743 0.238522C74.9919 -0.0795072 75.5038 -0.0795072 75.8213 0.238522C76.1389 0.556551 76.1389 1.06929 75.8213 1.38732L59.9059 17.3115C59.7471 17.4705 59.5398 17.5484 59.3324 17.5484Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M75.2478 17.5484C75.0405 17.5484 74.8331 17.4705 74.6743 17.3115L58.7589 1.38732C58.4414 1.06929 58.4414 0.556551 58.7589 0.238522C59.0764 -0.0795072 59.5884 -0.0795072 59.9059 0.238522L75.8213 16.1627C76.1389 16.4807 76.1389 16.9935 75.8213 17.3115C75.6626 17.4705 75.4552 17.5484 75.2478 17.5484Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M106.301 17.5484H88.707C88.2599 17.5484 87.897 17.1849 87.897 16.7371C87.897 16.2892 88.2599 15.9258 88.707 15.9258H106.301C106.748 15.9258 107.111 16.2892 107.111 16.7371C107.111 17.1849 106.748 17.5484 106.301 17.5484Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M279.32 269.262C282.353 269.262 284.096 266.613 283.257 263.352L235.741 81.2091C234.902 77.9477 231.739 75.2964 228.703 75.2964C225.667 75.2964 223.927 77.9445 224.767 81.2091L272.283 263.352C273.154 266.646 276.284 269.262 279.32 269.262Z",fill:"white"}),(0,a.jsx)("path",{d:"M280.545 96.6822L276.511 81.1766C276.09 79.5281 276.317 78.0742 277.026 76.9774C277.736 75.9129 278.931 75.2314 280.448 75.2314C283.48 75.2314 286.614 77.8795 287.485 81.1409L334.969 263.251C335.808 266.513 334.065 269.161 331.032 269.161C328 269.161 324.866 266.513 323.995 263.251L319.961 247.746",fill:"white"}),(0,a.jsx)("path",{d:"M264.889 193.652C264.529 193.652 264.202 193.412 264.104 193.045L234.956 81.3165C234.218 78.4413 231.353 76.0106 228.703 76.0106C227.592 76.0106 226.688 76.4227 226.085 77.1983C225.375 78.1167 225.178 79.47 225.547 80.9076C225.657 81.3425 225.398 81.7838 224.964 81.8941C224.53 82.0045 224.089 81.7449 223.979 81.31C223.483 79.3824 223.784 77.5196 224.802 76.2021C225.709 75.0306 227.093 74.3848 228.7 74.3848C232.089 74.3848 235.595 77.3087 236.521 80.9044L265.669 192.63C265.783 193.065 265.524 193.506 265.089 193.62C265.021 193.639 264.953 193.646 264.885 193.646L264.889 193.652Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M279.32 270.008C275.931 270.008 272.425 267.084 271.499 263.489L237.896 134.677C237.782 134.242 238.041 133.801 238.476 133.687C238.91 133.574 239.35 133.833 239.464 134.268L273.067 263.083C273.806 265.958 276.67 268.389 279.32 268.389C280.432 268.389 281.336 267.977 281.938 267.201C282.648 266.283 282.846 264.929 282.476 263.492L267.112 204.579C266.998 204.144 267.257 203.702 267.692 203.589C268.126 203.475 268.566 203.735 268.68 204.17L284.045 263.086C284.54 265.017 284.239 266.876 283.222 268.197C282.314 269.369 280.931 270.015 279.324 270.015L279.32 270.008Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M308.663 205.085C308.303 205.085 307.976 204.845 307.879 204.478L300.456 176.086C300.342 175.651 300.601 175.21 301.036 175.096C301.47 174.982 301.91 175.242 302.024 175.677L309.447 204.069C309.56 204.504 309.301 204.945 308.867 205.059C308.799 205.078 308.728 205.085 308.663 205.085Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M289.906 133.314C289.546 133.314 289.219 133.071 289.121 132.707L281.731 104.283C281.617 103.848 281.877 103.406 282.311 103.293C282.745 103.179 283.186 103.439 283.299 103.874L290.69 132.298C290.803 132.733 290.544 133.175 290.11 133.288C290.042 133.304 289.974 133.314 289.906 133.314Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M331.032 269.911C327.624 269.911 324.189 267.052 323.211 263.398L319.174 247.889C319.06 247.454 319.319 247.013 319.754 246.899C320.188 246.785 320.628 247.045 320.742 247.48L324.776 262.985C325.557 265.909 328.363 268.291 331.029 268.291C332.137 268.291 333.045 267.879 333.644 267.104C334.354 266.185 334.551 264.832 334.182 263.394L320.301 210.199C320.188 209.764 320.447 209.323 320.881 209.209C321.312 209.096 321.756 209.355 321.869 209.79L335.75 262.989C336.246 264.92 335.944 266.782 334.927 268.1C334.02 269.271 332.636 269.917 331.032 269.917V269.911Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M314.31 184.77C313.95 184.77 313.623 184.53 313.526 184.163L310.428 172.341C310.315 171.906 310.574 171.464 311.005 171.351C311.439 171.237 311.88 171.497 311.993 171.929L315.091 183.751C315.204 184.186 314.945 184.627 314.514 184.741C314.446 184.76 314.375 184.767 314.307 184.767L314.31 184.77Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M308.662 163.063C308.303 163.063 307.976 162.823 307.878 162.456L286.704 81.2514C285.923 78.3275 283.117 75.9455 280.451 75.9455C279.275 75.9455 278.296 76.4355 277.703 77.3279C277.091 78.2755 276.948 79.5055 277.298 80.8749L281.332 96.374C281.445 96.8088 281.186 97.2502 280.752 97.3638C280.318 97.4773 279.877 97.2177 279.764 96.7829L275.73 81.2773C275.273 79.4795 275.493 77.7596 276.349 76.4323C277.246 75.0855 278.74 74.3164 280.451 74.3164C283.859 74.3164 287.294 77.1754 288.269 80.8295L309.447 162.037C309.56 162.472 309.301 162.913 308.867 163.027C308.798 163.046 308.73 163.053 308.662 163.053V163.063Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M299.27 169.2C298.91 169.2 298.583 168.956 298.485 168.593L291.095 140.201C290.981 139.766 291.241 139.324 291.675 139.211C292.109 139.097 292.55 139.357 292.663 139.792L300.054 168.184C300.167 168.619 299.908 169.06 299.474 169.174C299.406 169.193 299.338 169.2 299.27 169.2Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M318.023 241.003C317.664 241.003 317.336 240.763 317.239 240.396L309.816 212.004C309.703 211.569 309.962 211.128 310.396 211.014C310.83 210.9 311.271 211.16 311.384 211.595L318.807 239.987C318.921 240.422 318.661 240.863 318.227 240.977C318.159 240.996 318.088 241.003 318.023 241.003Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M241.747 104.143L282.518 104.078H285.1C287.005 104.078 288.133 102.397 287.585 100.33C287.326 99.2979 286.681 98.3601 285.874 97.6818C285.068 97.0036 284.099 96.585 283.13 96.585H280.548L239.777 96.6499L241.747 104.143Z",fill:"white"}),(0,a.jsx)("path",{d:"M251.108 140.061L291.879 139.996H294.461C296.366 139.996 297.494 138.315 296.946 136.248C296.687 135.216 296.042 134.278 295.236 133.6C294.429 132.922 293.46 132.503 292.491 132.503H289.909L249.138 132.568L251.108 140.061Z",fill:"white"}),(0,a.jsx)("path",{d:"M260.469 175.946L301.24 175.881H303.822C305.727 175.881 306.858 174.204 306.307 172.137C306.048 171.105 305.403 170.167 304.596 169.488C303.79 168.81 302.821 168.392 301.852 168.392H299.27L258.499 168.457L260.469 175.95V175.946Z",fill:"white"}),(0,a.jsx)("path",{d:"M269.862 211.864L310.633 211.799H313.215C315.12 211.799 316.251 210.118 315.7 208.051C315.441 207.019 314.796 206.081 313.989 205.403C313.183 204.725 312.214 204.306 311.245 204.306H308.663L267.892 204.371L269.862 211.864Z",fill:"white"}),(0,a.jsx)("path",{d:"M279.223 247.749L319.993 247.685H322.575C324.477 247.685 325.608 246.004 325.061 243.936C324.801 242.904 324.157 241.967 323.35 241.288C322.543 240.61 321.574 240.191 320.605 240.191H318.023L277.253 240.256L279.223 247.749Z",fill:"white"}),(0,a.jsx)("path",{d:"M241.712 104.987C241.352 104.987 241.025 104.747 240.928 104.383L238.958 96.89C238.893 96.6467 238.945 96.387 239.101 96.1891C239.253 95.9911 239.489 95.8743 239.742 95.8711L280.512 95.8062H283.095C284.213 95.8062 285.369 96.2637 286.358 97.0945C287.343 97.922 288.046 99.0156 288.334 100.168C288.678 101.459 288.473 102.728 287.77 103.643C287.135 104.468 286.176 104.922 285.062 104.922H282.479L252.557 104.954C252.11 104.954 251.747 104.591 251.747 104.143C251.747 103.695 252.11 103.332 252.557 103.332L285.065 103.299C285.671 103.299 286.163 103.075 286.49 102.654C286.883 102.144 286.983 101.385 286.769 100.573C286.565 99.7491 286.037 98.941 285.321 98.3374C284.624 97.7533 283.834 97.4287 283.098 97.4287H280.516L240.798 97.4904L242.499 103.968C242.613 104.403 242.354 104.844 241.923 104.958C241.855 104.977 241.783 104.984 241.715 104.984L241.712 104.987Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M251.108 140.872C250.661 140.872 250.298 140.509 250.298 140.061C250.298 139.613 250.661 139.249 251.108 139.249L291.879 139.185H294.461C295.067 139.185 295.56 138.961 295.887 138.539C296.279 138.026 296.379 137.27 296.165 136.459C295.958 135.634 295.433 134.823 294.717 134.223C294.02 133.639 293.23 133.314 292.494 133.314H266.444C265.997 133.314 265.634 132.951 265.634 132.503C265.634 132.055 265.997 131.691 266.444 131.691H292.494C293.612 131.691 294.769 132.149 295.76 132.98C296.745 133.807 297.448 134.901 297.737 136.053C298.08 137.345 297.876 138.613 297.173 139.529C296.538 140.353 295.579 140.81 294.464 140.81H291.882L251.115 140.875L251.108 140.872Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M260.469 176.757C260.1 176.757 259.779 176.507 259.685 176.154L257.715 168.661C257.65 168.417 257.702 168.158 257.858 167.96C258.01 167.762 258.247 167.645 258.499 167.642L299.27 167.577H301.852C302.97 167.577 304.127 168.034 305.118 168.865C306.103 169.696 306.806 170.786 307.095 171.938C307.438 173.23 307.234 174.499 306.531 175.414C305.896 176.238 304.937 176.692 303.822 176.692H301.24L260.473 176.757H260.469ZM259.549 169.261L261.091 175.131L301.237 175.067H303.819C304.425 175.067 304.917 174.843 305.245 174.421C305.637 173.911 305.737 173.152 305.523 172.341C305.319 171.516 304.791 170.705 304.075 170.105C303.378 169.521 302.588 169.196 301.852 169.196H299.27L259.549 169.258V169.261Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M269.862 212.643C269.493 212.643 269.172 212.393 269.078 212.039L267.108 204.546C267.043 204.303 267.095 204.043 267.25 203.845C267.403 203.647 267.639 203.53 267.892 203.527L289.905 203.495C290.352 203.495 290.715 203.858 290.715 204.306C290.715 204.754 290.352 205.117 289.905 205.117L268.939 205.146L270.481 211.017L310.626 210.952H313.208C313.814 210.952 314.307 210.728 314.634 210.306C315.026 209.797 315.126 209.037 314.913 208.226C314.705 207.402 314.18 206.591 313.464 205.99C312.768 205.406 311.977 205.082 311.241 205.082H308.659L297.105 205.114C296.658 205.114 296.295 204.754 296.295 204.306C296.295 203.858 296.654 203.495 297.102 203.491L311.241 203.459C312.359 203.459 313.516 203.917 314.504 204.747C315.489 205.575 316.192 206.668 316.481 207.821C316.824 209.112 316.62 210.381 315.917 211.296C315.282 212.12 314.323 212.575 313.208 212.575H310.626L269.859 212.64L269.862 212.643Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M279.223 248.561C278.853 248.561 278.532 248.311 278.439 247.957L276.469 240.464C276.355 240.029 276.614 239.588 277.045 239.474C277.479 239.361 277.92 239.62 278.033 240.052L279.845 246.941L319.99 246.876H322.572C323.178 246.876 323.671 246.653 323.995 246.231C324.387 245.718 324.49 244.962 324.273 244.15C324.066 243.326 323.538 242.515 322.825 241.915C322.128 241.327 321.338 241.006 320.602 241.006H318.02L287.773 241.038C287.326 241.038 286.963 240.675 286.963 240.227C286.963 239.779 287.326 239.416 287.773 239.416L320.602 239.383C321.72 239.383 322.88 239.841 323.868 240.672C324.853 241.499 325.556 242.59 325.845 243.745C326.188 245.036 325.981 246.309 325.281 247.22C324.646 248.045 323.687 248.499 322.572 248.499H319.99L279.223 248.564V248.561Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M79.1848 139.931V153.175C79.1848 165.708 85.0267 177.562 94.9707 185.185L105.203 193.035C107.173 194.554 107.173 197.524 105.203 199.042L94.9707 206.892C85.03 214.515 79.1848 226.37 79.1848 238.903V252.147H148.199V238.903C148.199 226.37 142.357 214.515 132.413 206.892L122.181 199.042C120.211 197.524 120.211 194.551 122.181 193.035L132.413 185.185C142.354 177.562 148.199 165.708 148.199 153.175V139.931H79.1848Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M136.224 244.78C136.224 243.424 135.546 242.1 134.383 241.259C132.834 240.13 130.317 238.676 127.184 237.965C125.57 237.612 123.794 237.287 122.051 237.027C116.498 236.219 110.883 236.219 105.329 237.027C103.586 237.287 101.81 237.576 100.197 237.965C97.0667 238.676 94.5491 240.13 92.9971 241.259C91.8339 242.1 91.1567 243.391 91.1567 244.78H136.22H136.224Z",fill:"white"}),(0,a.jsx)("path",{d:"M136.223 245.591H91.1599C90.7127 245.591 90.3499 245.228 90.3499 244.78C90.3499 243.125 91.1437 241.6 92.524 240.6C93.8071 239.666 96.4866 237.975 100.018 237.173C101.726 236.764 103.602 236.463 105.212 236.226C110.84 235.408 116.543 235.408 122.168 236.226C123.947 236.489 125.738 236.816 127.358 237.173C130.893 237.975 133.576 239.669 134.859 240.603C136.22 241.587 137.033 243.148 137.033 244.78C137.033 245.228 136.671 245.591 136.223 245.591ZM92.0671 243.969H135.313C135.112 243.164 134.62 242.43 133.91 241.918C132.724 241.051 130.252 239.494 127.005 238.757C125.427 238.41 123.671 238.088 121.934 237.832C116.465 237.037 110.918 237.037 105.449 237.832C103.877 238.066 102.047 238.358 100.388 238.754C97.1314 239.494 94.6624 241.051 93.4766 241.914C92.754 242.437 92.2648 243.161 92.0671 243.969Z",fill:"white"}),(0,a.jsx)("path",{d:"M110.141 184.666C112.367 185.893 115.014 185.893 117.211 184.666C123.668 181.048 136.191 171.906 136.191 163.316C136.191 161.862 134.804 160.7 133.126 160.7H94.196C92.4852 160.7 91.1309 161.862 91.1309 163.316C91.1633 171.909 103.686 181.048 110.144 184.666H110.141Z",fill:"white"}),(0,a.jsx)("path",{d:"M113.689 186.402C112.341 186.402 110.99 186.061 109.752 185.38C109.752 185.38 109.749 185.38 109.745 185.38C102.546 181.346 90.35 172.159 90.3176 163.326C90.3176 161.401 92.0219 159.896 94.1928 159.896H133.123C135.261 159.896 136.998 161.434 136.998 163.322C136.998 172.156 124.805 181.346 117.603 185.38C116.381 186.065 115.033 186.405 113.685 186.405L113.689 186.402ZM110.536 183.959C112.519 185.049 114.865 185.049 116.815 183.959C123.237 180.36 135.381 171.416 135.381 163.316C135.381 162.32 134.37 161.512 133.126 161.512H94.196C92.9518 161.512 91.9409 162.323 91.9409 163.316C91.9701 171.416 104.117 180.36 110.536 183.959Z",fill:"white"}),(0,a.jsx)("path",{d:"M148.166 253.02H79.1518C78.7047 253.02 78.3418 252.656 78.3418 252.208V238.965C78.3418 226.25 84.3619 214.042 94.4452 206.312L104.677 198.461C105.413 197.894 105.837 197.034 105.837 196.102C105.837 195.171 105.413 194.311 104.677 193.74L94.4452 185.893C94.0888 185.62 94.024 185.111 94.2961 184.757C94.5683 184.403 95.077 184.335 95.4302 184.608L105.662 192.458C106.803 193.337 107.457 194.668 107.457 196.105C107.457 197.543 106.803 198.874 105.666 199.753L95.4302 207.603C85.7455 215.028 79.9619 226.753 79.9619 238.968V251.4H147.356V238.968C147.356 237.501 147.272 236.008 147.104 234.402C147.055 233.957 147.379 233.558 147.823 233.51C148.267 233.461 148.665 233.785 148.714 234.23C148.892 235.891 148.976 237.443 148.976 238.968V252.212C148.976 252.659 148.613 253.023 148.166 253.023V253.02Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M83.8668 172.915C83.5784 172.915 83.2965 172.759 83.1507 172.483C80.0272 166.597 78.3748 159.944 78.3748 153.239V139.996C78.3748 139.548 78.7376 139.185 79.1848 139.185H102.264C102.711 139.185 103.074 139.548 103.074 139.996C103.074 140.444 102.711 140.807 102.264 140.807H79.9948V153.239C79.9948 159.678 81.5792 166.071 84.5796 171.721C84.7902 172.117 84.6411 172.607 84.2458 172.818C84.126 172.883 83.9931 172.912 83.8668 172.912V172.915Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M145.325 224.854C145.004 224.854 144.699 224.66 144.573 224.342C141.952 217.757 137.578 211.977 131.92 207.629L121.688 199.782C120.548 198.903 119.893 197.572 119.893 196.134C119.893 194.694 120.548 193.366 121.685 192.487L131.92 184.637C141.605 177.212 147.389 165.487 147.389 153.272V147.489C147.389 147.041 147.752 146.678 148.199 146.678C148.646 146.678 149.009 147.041 149.009 147.489V153.272C149.009 165.987 142.989 178.195 132.905 185.925L122.673 193.775C121.938 194.343 121.513 195.203 121.513 196.134C121.513 197.066 121.938 197.926 122.673 198.497L132.905 206.344C138.796 210.871 143.348 216.884 146.076 223.741C146.242 224.157 146.041 224.631 145.623 224.796C145.526 224.835 145.422 224.854 145.325 224.854Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M150.587 140.807H117.308C116.861 140.807 116.498 140.444 116.498 139.996C116.498 139.548 116.861 139.185 117.308 139.185H150.587C153.186 139.185 155.298 137.072 155.298 134.473C155.298 131.873 153.186 129.761 150.587 129.761H76.7645C74.166 129.761 72.0534 131.873 72.0534 134.473C72.0534 137.072 74.166 139.185 76.7645 139.185H99.2639C99.711 139.185 100.074 139.548 100.074 139.996C100.074 140.444 99.711 140.807 99.2639 140.807H76.7645C73.2749 140.807 70.4333 137.965 70.4333 134.473C70.4333 130.981 73.2717 128.138 76.7645 128.138H150.587C154.077 128.138 156.919 130.981 156.919 134.473C156.919 137.965 154.08 140.807 150.587 140.807Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M150.62 264.131C150.173 264.131 149.81 263.768 149.81 263.32C149.81 262.872 150.173 262.509 150.62 262.509C153.218 262.509 155.331 260.396 155.331 257.797C155.331 255.197 153.218 253.085 150.62 253.085H76.7645C74.166 253.085 72.0534 255.197 72.0534 257.797C72.0534 260.396 74.166 262.509 76.7645 262.509H136.224C136.671 262.509 137.034 262.872 137.034 263.32C137.034 263.768 136.671 264.131 136.224 264.131H76.7645C73.2749 264.131 70.4333 261.288 70.4333 257.797C70.4333 254.305 73.2717 251.462 76.7645 251.462H150.62C154.109 251.462 156.951 254.305 156.951 257.797C156.951 261.288 154.113 264.131 150.62 264.131Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M18.1118 137.056V103.367C18.1118 97.3931 22.9525 92.5156 28.9565 92.5156H81.6375L105.718 76.7861V137.059C105.718 143.033 100.877 147.911 94.8734 147.911H28.9597C22.9558 147.911 18.1151 143.033 18.1151 137.059L18.1118 137.056Z",fill:"white"}),(0,a.jsx)("path",{d:"M41.965 148.268H28.7292C22.3008 148.268 17.0745 143.037 17.0745 136.605V102.949C17.0745 96.5169 22.304 91.2857 28.7292 91.2857H81.1704L105.05 75.686C105.426 75.4427 105.928 75.5465 106.171 75.9229C106.414 76.2994 106.31 76.8024 105.935 77.0458L81.8541 92.7752C81.7213 92.8629 81.569 92.9083 81.4102 92.9083H28.7324C23.1983 92.9083 18.6978 97.4126 18.6978 102.949V136.605C18.6978 142.141 23.2015 146.645 28.7324 146.645H41.9683C42.4154 146.645 42.7783 147.009 42.7783 147.457C42.7783 147.905 42.4154 148.268 41.9683 148.268H41.965Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M94.679 148.268H56.7502C56.3031 148.268 55.9402 147.905 55.9402 147.457C55.9402 147.009 56.3031 146.645 56.7502 146.645H94.679C100.213 146.645 104.714 142.141 104.714 136.605V88.4754C104.714 88.0275 105.077 87.6641 105.524 87.6641C105.971 87.6641 106.334 88.0275 106.334 88.4754V136.605C106.334 143.037 101.104 148.268 94.679 148.268Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M87.5118 109.121H35.9292C35.482 109.121 35.1191 108.758 35.1191 108.31C35.1191 107.862 35.482 107.499 35.9292 107.499H87.5118C87.959 107.499 88.3218 107.862 88.3218 108.31C88.3218 108.758 87.959 109.121 87.5118 109.121Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M87.5117 121.103H55.7812C55.3341 121.103 54.9712 120.739 54.9712 120.291C54.9712 119.843 55.3341 119.48 55.7812 119.48H87.5117C87.9588 119.48 88.3217 119.843 88.3217 120.291C88.3217 120.739 87.9588 121.103 87.5117 121.103Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M46.6151 121.103H35.9292C35.482 121.103 35.1191 120.739 35.1191 120.291C35.1191 119.843 35.482 119.48 35.9292 119.48H46.6151C47.0622 119.48 47.4251 119.843 47.4251 120.291C47.4251 120.739 47.0622 121.103 46.6151 121.103Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M61.7205 133.087H35.9292C35.482 133.087 35.1191 132.723 35.1191 132.276C35.1191 131.828 35.482 131.464 35.9292 131.464H61.7205C62.1676 131.464 62.5305 131.828 62.5305 132.276C62.5305 132.723 62.1676 133.087 61.7205 133.087Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M63.593 179.827C63.1459 179.827 62.783 179.464 62.783 179.016V169.679C62.783 169.232 63.1459 168.868 63.593 168.868C64.0401 168.868 64.403 169.232 64.403 169.679V179.016C64.403 179.464 64.0401 179.827 63.593 179.827Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M59.0765 181.054C58.7978 181.054 58.5256 180.908 58.3733 180.648L53.6914 172.542C53.4678 172.152 53.6007 171.659 53.9862 171.432C54.375 171.208 54.8675 171.341 55.0943 171.727L59.7763 179.834C59.9999 180.223 59.867 180.717 59.4815 180.944C59.3551 181.018 59.2158 181.054 59.0765 181.054Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M55.7811 184.348C55.645 184.348 55.5057 184.312 55.3761 184.238L47.2726 179.555C46.8837 179.331 46.7509 178.834 46.9745 178.448C47.198 178.059 47.6938 177.926 48.0794 178.15L56.1829 182.833C56.5717 183.056 56.7045 183.553 56.481 183.939C56.3319 184.199 56.0598 184.345 55.7779 184.345L55.7811 184.348Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M54.5563 188.872H45.228C44.7809 188.872 44.418 188.508 44.418 188.06C44.418 187.612 44.7809 187.249 45.228 187.249H54.5563C55.0034 187.249 55.3663 187.612 55.3663 188.06C55.3663 188.508 55.0034 188.872 54.5563 188.872Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M47.6807 198.043C47.4021 198.043 47.1299 197.896 46.9776 197.637C46.7541 197.247 46.8869 196.754 47.2757 196.53L55.3793 191.847C55.7681 191.624 56.2606 191.757 56.4841 192.146C56.7077 192.535 56.5749 193.029 56.1861 193.253L48.0825 197.935C47.9562 198.01 47.8168 198.046 47.6775 198.046L47.6807 198.043Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M54.3912 204.763C54.2551 204.763 54.1158 204.728 53.9862 204.653C53.5974 204.429 53.4678 203.932 53.6914 203.543L58.3733 195.437C58.5969 195.047 59.0926 194.917 59.4814 195.141C59.8703 195.365 59.9999 195.862 59.7763 196.251L55.0943 204.358C54.9453 204.617 54.6731 204.763 54.3912 204.763Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M63.593 207.217C63.1459 207.217 62.783 206.853 62.783 206.406V197.069C62.783 196.621 63.1459 196.258 63.593 196.258C64.0401 196.258 64.403 196.621 64.403 197.069V206.406C64.403 206.853 64.0401 207.217 63.593 207.217Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M72.7627 204.763C72.4841 204.763 72.2119 204.617 72.0596 204.358L67.3777 196.251C67.1541 195.862 67.2869 195.369 67.6725 195.142C68.0613 194.918 68.5571 195.051 68.7806 195.437L73.4626 203.543C73.6862 203.933 73.5533 204.426 73.1678 204.653C73.0414 204.728 72.9021 204.763 72.7627 204.763Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M77.4739 196.881C77.3346 196.881 77.1952 196.845 77.0689 196.77L71.0001 193.249C70.6146 193.025 70.4817 192.529 70.7053 192.139C70.9289 191.753 71.4246 191.62 71.8134 191.844L77.8822 195.365C78.2677 195.589 78.4006 196.086 78.177 196.475C78.028 196.735 77.7558 196.881 77.4739 196.881Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M77.4739 188.872H72.6008C72.1537 188.872 71.7908 188.508 71.7908 188.06C71.7908 187.612 72.1537 187.249 72.6008 187.249H77.4739C77.9211 187.249 78.284 187.612 78.284 188.06C78.284 188.508 77.9211 188.872 77.4739 188.872Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M71.4051 184.348C71.1265 184.348 70.8511 184.202 70.702 183.942C70.4784 183.553 70.6113 183.06 71.0001 182.836L72.6785 181.866C73.0673 181.642 73.5598 181.775 73.7834 182.164C74.0069 182.554 73.8741 183.047 73.4853 183.271L71.8069 184.241C71.6805 184.316 71.5412 184.348 71.4019 184.348H71.4051Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M13.4945 89.2868C13.2871 89.2868 13.0797 89.2089 12.921 89.0499L0.786733 76.9064C0.469201 76.5883 0.469201 76.0756 0.786733 75.7576C1.10426 75.4395 1.6162 75.4395 1.93373 75.7576L14.0712 87.9043C14.3887 88.2223 14.3887 88.7351 14.0712 89.0531C13.9124 89.2121 13.7051 89.29 13.4977 89.29L13.4945 89.2868Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M8.91285 97.4936C8.83833 97.4936 8.76381 97.4839 8.68928 97.4612L0.585754 95.1344C0.154819 95.011 -0.0914299 94.5632 0.0316945 94.1316C0.154819 93.7 0.605195 93.4533 1.03289 93.5767L9.13642 95.9035C9.56736 96.0268 9.8136 96.4746 9.69048 96.9062C9.59004 97.2632 9.26602 97.4936 8.91285 97.4936Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M21.6954 84.7011C21.3454 84.7011 21.0214 84.4706 20.9177 84.1169L18.5622 76.0104C18.4358 75.5788 18.6853 75.131 19.113 75.0044C19.5407 74.8811 19.9911 75.1277 20.1174 75.5561L22.473 83.6626C22.5994 84.0942 22.3499 84.542 21.9222 84.6686C21.8476 84.6913 21.7699 84.7011 21.6954 84.7011Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M104.59 213.48H22.5668C20.2113 213.48 18.2737 215.385 18.2737 217.777V224.916C18.2737 227.275 20.1789 229.213 22.5668 229.213H104.59C106.946 229.213 108.884 227.308 108.884 224.916V217.777C108.884 215.388 106.978 213.48 104.59 213.48Z",fill:"white"}),(0,a.jsx)("path",{d:"M90.1913 230.053H22.5668C19.7544 230.053 17.4636 227.762 17.4636 224.945V217.806C17.4636 214.989 19.7544 212.698 22.5668 212.698H56.75C57.1972 212.698 57.5601 213.061 57.5601 213.509C57.5601 213.957 57.1972 214.32 56.75 214.32H22.5668C20.6454 214.32 19.0837 215.885 19.0837 217.806V224.945C19.0837 226.866 20.6454 228.43 22.5668 228.43H90.1945C90.6416 228.43 91.0045 228.794 91.0045 229.242C91.0045 229.69 90.6416 230.053 90.1945 230.053H90.1913Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M104.591 230.053H101.169C100.722 230.053 100.359 229.69 100.359 229.242C100.359 228.794 100.722 228.43 101.169 228.43H104.591C106.512 228.43 108.074 226.866 108.074 224.945V217.806C108.074 215.885 106.512 214.32 104.591 214.32H65.4663C65.0191 214.32 64.6562 213.957 64.6562 213.509C64.6562 213.061 65.0191 212.698 65.4663 212.698H104.591C107.403 212.698 109.694 214.989 109.694 217.806V224.945C109.694 227.762 107.403 230.053 104.591 230.053Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M26.7626 217.744H22.7935V224.948H26.7626V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M26.7626 225.757H22.7934C22.3463 225.757 21.9834 225.393 21.9834 224.945V217.741C21.9834 217.293 22.3463 216.93 22.7934 216.93H26.7626C27.2097 216.93 27.5726 217.293 27.5726 217.741V224.945C27.5726 225.393 27.2097 225.757 26.7626 225.757ZM23.6035 224.134H25.9525V218.552H23.6035V224.134Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M35.349 217.744H31.3799V224.948H35.349V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M35.349 225.757H31.3799C30.9327 225.757 30.5698 225.393 30.5698 224.945V217.741C30.5698 217.293 30.9327 216.93 31.3799 216.93H35.349C35.7961 216.93 36.159 217.293 36.159 217.741V224.945C36.159 225.393 35.7961 225.757 35.349 225.757ZM32.1899 224.134H34.539V218.552H32.1899V224.134Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M43.9352 217.744H39.9661V224.948H43.9352V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M43.9352 225.757H39.966C39.5189 225.757 39.156 225.393 39.156 224.945V217.741C39.156 217.293 39.5189 216.93 39.966 216.93H43.9352C44.3823 216.93 44.7452 217.293 44.7452 217.741V224.945C44.7452 225.393 44.3823 225.757 43.9352 225.757ZM40.7761 224.134H43.1252V218.552H40.7761V224.134Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M52.5216 217.744H48.5525V224.948H52.5216V217.744Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M52.5216 225.757H48.5525C48.1053 225.757 47.7424 225.393 47.7424 224.945V217.741C47.7424 217.293 48.1053 216.93 48.5525 216.93H52.5216C52.9687 216.93 53.3316 217.293 53.3316 217.741V224.945C53.3316 225.393 52.9687 225.757 52.5216 225.757ZM49.3625 224.134H51.7116V218.552H49.3625V224.134Z",fill:"currentColor"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2789_110377",children:(0,a.jsx)("rect",{width:"336",height:"270",fill:"white"})})})]})};var Survey_SurveyInformation=e=>{let{content:t}=e,{t:s}=(0,x.Y)(["course_player"]),{query:l}=(0,f.useRouter)(),{slug:n,chapterId:o,contentId:c}=l,[d,u]=(0,r.useState)(),{data:m}=(0,v.IE)({slug:l.slug}),p=(0,g.TL)(),{displayErrors:h}=(0,g.ah)({});(0,r.useEffect)(()=>{let e=null==m?void 0:m.chapters.find(e=>e.id.toString()===o);u(e)},[m,o]);let[C]=eQ();return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,a.jsx)(SurveyInformation_IntroImage,{className:"mb-8 text-primary"}),(0,a.jsxs)("div",{className:"grid w-full grid-cols-1 gap-8 sm:!w-3/4 sm:!grid-cols-2",children:[(0,a.jsx)(i.J,{className:"bg-gray-100",children:(0,a.jsx)(i.J.Body,{className:"p-6",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center gap-2",children:[(0,a.jsx)(i.u.Body,{size:"md",className:"font-normal text-gray-700",children:s("course_player:survey_total_questions_count")}),(0,a.jsx)(i.u.Body,{className:"text-base font-semibold",children:s("course_player:survey_questions_WithCount",{count:t.contentable.questions_count})})]})})}),(0,a.jsx)(i.J,{className:"bg-gray-100",children:(0,a.jsx)(i.J.Body,{className:"p-6",children:(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center gap-2",children:[(0,a.jsx)(i.u.Body,{size:"md",className:"font-normal text-gray-700",children:s("course_player:survey_quiz_time")}),(0,a.jsx)(i.u.Body,{className:"text-base font-semibold",children:s("course_player:survey_minutes_WithCount",{count:Math.floor(t.contentable.duration/60)})})]})})})]}),(0,a.jsxs)("div",{className:"my-6 flex  w-full flex-col text-center sm:!w-3/4",children:[(0,a.jsx)(i.u.Text,{as:"h2",size:"lg",className:"font-semibold",children:s("course_player:survey_title",{title:t.contentable.title})}),t.description?(0,a.jsx)(i.u.Text,{size:"xs",as:"p",className:"mb-6 mt-4 font-normal text-gray-700",children:t.description}):(0,a.jsx)(i.u.Text,{size:"xs",className:"mb-6 mt-4 font-normal text-gray-700",children:s("course_player:content_subtitle",{subtitle:null==d?void 0:d.title})}),(0,a.jsx)(i.B,{color:"primary",variant:"solid",className:"mx-auto px-12",children:s("course_player:survey_start"),onClick:async()=>{let e=await C({slug:l.slug,chapterId:l.chapterId,contentId:l.contentId});h(e)||p((0,ez.dH)("fetchContent",{slug:n,chapterId:o,contentId:c},e=>{e.contentable.attempted=!0}))}})]})]})})},Survey_SurveyQuestion=e=>{let{title:t,explanation:s,questionsLength:r,index:l=0,children:n}=e;return(0,a.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,a.jsx)(i.u.Body,{as:"span",size:"md",className:"font-normal text-gray-700",children:(0,a.jsx)(x.C,{i18nKey:"course_player:quiz_question",components:{span:(0,a.jsx)("span",{className:"text-black"})},values:{number:null!=r?r:0,question:l+1}})}),(0,a.jsx)("span",{className:"prose prose-sm prose-stone sm:prose-base max-w-full",dir:"auto",dangerouslySetInnerHTML:{__html:t}}),s&&(0,a.jsx)("span",{className:"!my-1 text-sm text-gray-700",children:s})]}),(0,a.jsx)("div",{className:"flex flex-col space-y-4",children:n})]})},Survey_SurveyResult=()=>{let{t:e}=(0,x.Y)(["course_player","common"]),{query:t}=(0,f.useRouter)(),{content:s}=(0,g.CG)(e=>e.courses);return(0,a.jsx)(i.J,{children:(0,a.jsxs)(i.J.Body,{className:"flex flex-col justify-center space-y-6 !px-6 !py-16",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-2.5 text-center",children:[(0,a.jsx)(C(),{src:"/images/check-success.gif",alt:"check-success",width:120,height:120}),(0,a.jsx)("div",{className:"flex flex-col gap-1",children:(0,a.jsx)(i.u.Title,{size:"md",className:"font-semibold",children:e("course_player:survey_submitted_message")})})]}),!s.next.is_last&&s.next.nextable&&(0,a.jsx)(i.B,{as:N(),href:"/courses/".concat(t.slug,"/chapters/").concat(s.next.chapter_id,"/contents/").concat(s.next.content_id),children:e("common:next"),className:"mx-auto"})]})})};let ProductSectionCard=e=>{let{align:t="default",title:s,icon:r,children:l,vertical:n,hasDivider:o,dividerPosition:c="bottom",className:d,id:u}=e;return(0,a.jsxs)("div",{id:u,className:"flex h-full flex-col",children:["top"==c&&o&&(0,a.jsx)("div",{className:"mb-8 h-px bg-gray-400"}),(0,a.jsx)(i.J,{className:"h-full border-0 bg-gray-100",children:(0,a.jsxs)(i.J.Body,{className:(0,X.cn)("p-6",d),children:[(0,a.jsxs)("div",{className:(0,X.cn)("mb-4 flex items-start gap-x-4 gap-y-6","center"===t&&"items-center justify-center",n?"flex-col":"flex-row"),children:[r&&(0,a.jsx)(i.s,{size:"md",className:"p-4",variant:"solid",color:"gray",rounded:"full",children:r}),s&&(0,a.jsx)(i.u.Title,{as:"h2",size:"lg",className:"font-medium",children:s})]}),l]})}),"bottom"==c&&o&&(0,a.jsx)("div",{className:"mt-8 h-px bg-gray-400"})]})},ProductProfileCard=e=>{let{course:t,badge:s,title:r,reviewsEnabled:l,summary:n,ratings:o,ratingsDetails:c,totalReviews:d,category:m,list:p,price:h,children:C,actions:f,append:g,categoryHref:j}=e,{t:v}=(0,x.Y)(["reviews"]);return(0,a.jsxs)(i.J,{className:"sticky top-[calc(var(--header-placement)+theme(spacing.4))] transition-all",children:[(0,a.jsxs)(i.J.Header,{children:[(0,a.jsxs)("div",{className:"hidden flex-col items-start border-b-0 lg:!flex",children:[s,(0,a.jsx)(i.u.Body,{as:"h1",size:"lg",className:"mb-4 mt-1 font-bold text-black",children:r}),n&&(0,a.jsx)("span",{className:"prose-gray prose-sm prose mb-4",dangerouslySetInnerHTML:{__html:n}}),m&&j&&(0,a.jsx)(i.x,{as:N(),href:j,variant:"soft",color:"gray",rounded:"full",size:"base",children:m.name})]}),(0,a.jsxs)("div",{className:"block md:!hidden",children:[g,(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[s,(0,a.jsx)(i.u.Body,{as:"h2",size:"lg",className:"mb-4 mt-1 font-bold text-black",children:r}),n&&(0,a.jsx)(i.u.Body,{as:"p",size:"md",className:"mb-4 font-normal text-gray-800",children:n}),m&&j&&(0,a.jsx)(i.x,{as:N(),href:j,variant:"soft",color:"gray",rounded:"full",size:"base",children:m.name})]})]}),h&&(0,a.jsx)("div",{className:"hidden py-2 md:block",children:h}),f&&(0,a.jsx)("div",{className:"mt-2 hidden md:block",children:f})]}),(0,a.jsxs)(i.J.Body,{className:"!px-4 !pb-4 !pt-2",children:[(l||c)&&(0,a.jsxs)("div",{className:"mb-4 flex w-fit items-center gap-2 py-2",children:[(0,a.jsx)("div",{onClick:()=>{let e=document.getElementById("reviews-section");if(e&&(null==t?void 0:t.settings.reviews_enabled)){let t=e.getBoundingClientRect().top+window.scrollY+-32;window.scrollTo({top:t,behavior:"smooth"})}},className:"cursor-pointer",children:l&&(0,a.jsx)(u.StarsRating,{value:o,isReadOnly:!0,size:"sm",label:String(o),children:(0,a.jsx)(i.u.Body,{size:"sm",children:v("reviews:reviews_count",{count:d})})})}),c]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[p.label&&(0,a.jsx)(i.u.Body,{as:"h3",size:"md",className:"font-medium text-black",children:p.label}),(0,a.jsx)("ul",{className:(0,X.cn)(p.className),children:p.items.map((e,t)=>(0,a.jsxs)("li",{className:(0,X.cn)("flex items-center gap-2",e.className),children:[e.icon&&(0,a.jsx)(i.s,{size:"sm",children:e.icon}),(0,a.jsx)(i.u.Body,{size:"md",className:"font-normal text-black",children:e.text})]},t))})]}),C]})]})},ProductPrice=e=>{let{salesPrice:t,price:s,className:r,classNames:l}=e,{formatPrice:n}=(0,g.pA)(),{t:o}=(0,x.Y)(["common"]);return s?(0,a.jsxs)("div",{className:(0,X.cn)("product-price-wrapper flex items-center gap-2",r),suppressHydrationWarning:!0,children:[(0,a.jsx)(u.Price,{price:s,classNames:{price:(0,X.cn)("text-success",null==l?void 0:l.price),currency:(0,X.cn)("text-success",null==l?void 0:l.currency)}}),t&&t>0?(0,a.jsx)(i.u.Body,{as:"del",size:"sm",className:"product-sales-price font-normal text-gray-600 line-through",dir:"auto",children:n(t)}):null]}):(0,a.jsx)(i.u.Body,{size:"base",className:(0,X.cn)("product-free-price font-medium text-success",null==l?void 0:l.price),children:o("common:free_price")})};var products_BundleCard=e=>{let{product:t}=e,{t:s}=(0,x.Y)(["common"]);return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col justify-between md:!flex-row md:!items-center",children:[(0,a.jsxs)("div",{className:"flex flex-col-reverse items-start justify-start gap-4 md:!flex-row md:!items-center",children:[(0,a.jsx)(i.u.Body,{as:"h1",size:"lg",className:"mb-4 font-bold text-black md:!mb-0",children:t.title}),t.sales_price>0?(0,a.jsx)(i.x,{className:"flex-shrink-0",color:"warning",variant:"soft",size:"md",rounded:"full",children:s("common:discount",{discount:(0,D.Et)(t.sales_price,t.price)})}):void 0]}),(0,a.jsx)("div",{className:"hidden flex-row items-center gap-2 md:!flex",children:t.can_download?(0,a.jsx)(i.B,{variant:"solid",color:"primary",size:"md",className:"mx-auto",as:N(),href:"/library/courses",children:s("common:to_library")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.ExpressCheckoutButton,{product_id:t.id,product_type:"product",label:s(0==t.price?"common:get_collection_for_free":"common:buy_now"),className:"w-full px-10"}),(0,a.jsx)(F.AddToCartButton,{product:t,product_id:t.id,product_type:"product",variant:"solid",color:"gray",icon:(0,a.jsx)(i.s,{children:(0,a.jsx)(Y.Z,{})})})]})})]}),(0,a.jsx)("div",{className:"mt-8 h-px bg-gray-400"})]})},eK=s(65325);let BaseImage=e=>{let{src:t,alt:s,className:r,bordered:l=!0,rounded:n="2xl",objectFit:o="cover"}=e;return(0,a.jsx)("div",{className:(0,X.cn)("aspect-h-9 aspect-w-16 overflow-hidden","rounded-".concat(n),l&&"border border-gray-300",r),children:(0,a.jsx)(C(),{alt:s,src:t,placeholder:"empty",fill:!0,sizes:"100%, 100%",style:{position:"absolute",width:"100%",height:"100%",inset:0,maxWidth:"100%",objectFit:o}})})},PlaceHolderImage=e=>{let{size:t="md",alt:s,className:r,rounded:l="2xl"}=e;return(0,a.jsx)("div",{className:(0,X.cn)("place-holder-image aspect-h-9 aspect-w-16 overflow-hidden","rounded-".concat(l),r),children:(0,a.jsxs)("div",{className:(0,X.cn)("absolute bottom-0 left-0 right-0 top-0 flex h-full w-full items-center justify-center bg-gray-100"),children:[(0,a.jsx)("span",{className:"sr-only",children:s}),(0,a.jsxs)("svg",{width:"md"===t?64:96,height:"md"===t?64:96,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M41.3332 18.6665H22.6665C20.4574 18.6665 18.6665 20.4574 18.6665 22.6665V37.3332C18.6665 39.5423 20.4574 41.3332 22.6665 41.3332H41.3332C43.5423 41.3332 45.3332 39.5423 45.3332 37.3332V22.6665C45.3332 20.4574 43.5423 18.6665 41.3332 18.6665Z",fill:"#C7C7C7"}),(0,a.jsx)("path",{d:"M43.333 45.3332H20.6663C20.3127 45.3332 19.9736 45.1927 19.7235 44.9426C19.4735 44.6926 19.333 44.3535 19.333 43.9998C19.333 43.6462 19.4735 43.3071 19.7235 43.057C19.9736 42.807 20.3127 42.6665 20.6663 42.6665H43.333C43.6866 42.6665 44.0258 42.807 44.2758 43.057C44.5259 43.3071 44.6663 43.6462 44.6663 43.9998C44.6663 44.3535 44.5259 44.6926 44.2758 44.9426C44.0258 45.1927 43.6866 45.3332 43.333 45.3332Z",fill:"#C7C7C7"}),(0,a.jsx)("path",{d:"M40.9714 34.7004L38.9154 28.5318C38.8118 28.2187 38.6323 27.9362 38.3929 27.7093C38.1535 27.4825 37.8617 27.3185 37.5435 27.2318C37.2253 27.1452 36.8906 27.1386 36.5693 27.2128C36.2479 27.287 35.9499 27.4395 35.7019 27.6568L31.935 30.9511L30.5951 29.9472C30.2092 29.6608 29.7335 29.522 29.2541 29.5561C28.7747 29.5901 28.3234 29.7947 27.9818 30.1327L24.1954 33.9186C23.9158 34.1983 23.7254 34.5547 23.6483 34.9427C23.5711 35.3306 23.6107 35.7327 23.7621 36.0981C23.9134 36.4636 24.1697 36.7759 24.4985 36.9958C24.8273 37.2156 25.2139 37.333 25.6094 37.3332H39.0756C39.3925 37.3332 39.7048 37.2578 39.9868 37.1134C40.2689 36.9689 40.5125 36.7594 40.6977 36.5023C40.8828 36.2451 41.0042 35.9477 41.0518 35.6344C41.0994 35.3211 41.0719 35.001 40.9714 34.7004Z",fill:"#FAFAFA"}),(0,a.jsx)("path",{d:"M26.6667 27.9998C28.1394 27.9998 29.3333 26.8059 29.3333 25.3332C29.3333 23.8604 28.1394 22.6665 26.6667 22.6665C25.1939 22.6665 24 23.8604 24 25.3332C24 26.8059 25.1939 27.9998 26.6667 27.9998Z",fill:"#E6E6E6"})]})]})})},Thumbnail=e=>{let{src:t,bordered:s=!0,...r}=e;return t?(0,a.jsx)(BaseImage,{src:t,bordered:s,...r}):(0,a.jsx)(PlaceHolderImage,{...r,src:null})},Price=e=>{let{price:t,as:s="ins",classNames:r,useSymbol:l=!1}=e,{formatPriceWithoutCurrency:n,currentCurrencyLocalizeSymbol:o,currentCurrency:c}=(0,g.pA)();return(0,a.jsxs)("div",{className:"product-price flex flex-shrink-0 items-center gap-1",children:[(0,a.jsx)(i.u.Body,{as:s,size:"base",dir:"auto",className:(0,X.cn)("font-bold no-underline",null==r?void 0:r.price),children:n(t)}),(0,a.jsx)(i.u.Body,{as:"span",size:"sm",className:(0,X.cn)("font-medium",null==r?void 0:r.currency),children:l?o:c})]})};var eX=s(73935),e$=s(45218),e1=s(96445);let Drawer_Drawer=e=>{let{isOpen:t,children:s,className:l,onClose:n,title:o,styleClass:c,action:d,removeWhenClosed:u=!0}=e,m=(0,r.useRef)(document.body),p=(0,r.useId)(),h=(0,r.useRef)(document.getElementById(p)||function(e){let t=document.createElement("div");return t.setAttribute("id",e),t}(p)),C=(0,e$.Z)(t,300),{i18n:f}=(0,x.Y)([]),g="rtl"===f.dir();return((0,r.useEffect)(()=>{m.current.appendChild(h.current);let e=h.current,t=m.current;return()=>{e.remove(),t.style.overflow=""}},[]),(0,r.useEffect)(()=>{t?m.current.style.overflow="hidden":m.current.style.overflow=""},[t]),(0,r.useEffect)(()=>{let onKeyPress=e=>{"Escape"===e.key&&n()};return t&&window.addEventListener("keyup",onKeyPress),()=>{window.removeEventListener("keyup",onKeyPress)}},[t,n]),C||!u||t)?(0,eX.createPortal)((0,a.jsxs)("div",{"aria-hidden":t?"false":"true",className:(0,X.cn)("drawer-container",t&&"open",C&&"in",l),children:[(0,a.jsxs)("div",{className:(0,D.AK)(c,"flex flex-col bg-white",g?"drawer--right":"drawer--left"),role:"dialog",children:[(0,a.jsxs)("div",{className:"flex justify-between border-b border-gray-200 bg-white p-4",children:[(0,a.jsx)(i.u.Title,{size:"sm",className:"font-semibold",children:o}),(0,a.jsx)(i.B,{variant:"solid",rounded:"full",size:"sm",color:"gray",onClick:n,icon:(0,a.jsx)(i.s,{children:(0,a.jsx)(e1.Z,{})})})]}),s,d&&(0,a.jsx)("div",{className:"mt-auto flex justify-between border-t border-gray-200 bg-white p-4",children:d})]}),(0,a.jsx)("div",{className:"backdrop",onClick:n})]}),h.current):null},AcademyLogo=e=>{var t,s,r;let{className:l}=e,{data:n}=(0,S.G)();return(0,a.jsx)(N(),{href:"/",children:(null==n?void 0:n.logo)?(0,a.jsx)(C(),{src:null!==(t=null==n?void 0:n.logo)&&void 0!==t?t:"",width:65,height:40,alt:null!==(s=null==n?void 0:n.title)&&void 0!==s?s:"",className:(0,X.cn)("max-h-[3.8rem] w-auto",l)}):(0,a.jsx)(i.u.Text,{as:"div",size:"md",className:(0,X.cn)("font-bold text-primary",l),children:null!==(r=null==n?void 0:n.title)&&void 0!==r?r:""})})};var e2=s(86873);let Accordion=e=>{let{children:t,name:s,id:r,payment_logo:l,title:n}=e;return(0,a.jsxs)("div",{className:"flex flex-col rounded-lg border border-gray-300",children:[(0,a.jsx)("input",{type:"radio",name:s,id:r,className:"peer sr-only"}),(0,a.jsx)("label",{htmlFor:r,className:"group !mt-0 cursor-pointer p-4",children:(0,a.jsx)("div",{className:"flex justify-between gap-4",children:(0,a.jsx)("div",{className:"flex w-full",children:(0,a.jsxs)("div",{className:"flex flex-grow flex-row justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"h-5 w-5 rounded-full border-2 border-gray-600 peer-checked:group-[]:border-[6px] peer-checked:group-[]:border-primary"}),(0,a.jsx)(i.u.Text,{size:"xs",children:n})]}),(0,a.jsx)(e2.w,{methods:l,bordered:!0})]})})})}),(0,a.jsx)("div",{className:"grid grid-rows-[0fr] transition-[grid-template-rows] duration-150 ease-linear peer-checked:grid-rows-[1fr]",children:t})]})};var EmptyStateImage=e=>{let{className:t}=e;return(0,a.jsxs)("svg",{width:"460",height:"386",viewBox:"0 0 460 386",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_5491_128536)",children:[(0,a.jsx)("path",{d:"M310.064 34.4996L359.498 152.677L315.065 171.298L318.383 179.238C322.952 190.112 317.806 202.623 306.939 207.146C301.505 209.407 295.686 209.263 290.637 207.194C285.588 205.125 281.308 201.131 279.048 195.694L275.73 187.754L231.298 206.376L212.688 161.915L220.623 158.595C231.49 154.024 236.587 141.561 232.067 130.687C229.807 125.25 225.527 121.256 220.478 119.187C215.429 117.118 209.611 116.973 204.177 119.235L196.242 122.555L177.633 78.0942L295.734 28.6293C301.313 26.3196 307.708 28.918 310.064 34.4996Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M177.191 77.3235C177.776 77.0789 178.449 77.3552 178.694 77.9406L183.358 89.1039C183.603 89.6893 183.326 90.3622 182.741 90.6068C182.155 90.8514 181.483 90.5751 181.238 89.9897L176.573 78.8264C176.329 78.241 176.605 77.5681 177.191 77.3235Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M186.229 98.9293C186.814 98.6842 187.487 98.9601 187.732 99.5453L196.858 121.342L203.735 118.464C209.46 116.081 215.594 116.234 220.913 118.414C226.231 120.593 230.744 124.802 233.128 130.536C237.89 141.994 232.519 155.127 221.067 159.944L214.191 162.821L231.914 205.163L253.07 196.319C253.656 196.075 254.329 196.351 254.573 196.936C254.818 197.521 254.542 198.194 253.957 198.439L231.74 207.726C231.155 207.97 230.482 207.694 230.238 207.109L211.628 162.649C211.51 162.368 211.509 162.051 211.625 161.769C211.74 161.487 211.963 161.263 212.244 161.145L220.177 157.826C220.177 157.826 220.177 157.826 220.177 157.826C230.46 153.5 235.283 141.709 231.006 131.418C228.869 126.277 224.823 122.499 220.042 120.54C215.263 118.581 209.761 118.445 204.618 120.585C204.618 120.585 204.618 120.585 204.618 120.585L196.685 123.905C196.1 124.15 195.427 123.874 195.182 123.289L185.613 100.433C185.368 99.8474 185.644 99.1743 186.229 98.9293Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M276.168 186.98C276.45 187.096 276.675 187.319 276.792 187.6L280.111 195.542C282.248 200.683 286.294 204.461 291.075 206.42C295.852 208.378 301.354 208.514 306.495 206.376C308.642 205.461 310.505 204.277 312.14 202.823C312.614 202.402 313.34 202.444 313.762 202.918C314.184 203.392 314.141 204.118 313.667 204.54C311.84 206.165 309.762 207.482 307.391 208.492L307.382 208.495C301.657 210.878 295.523 210.726 290.204 208.546C284.887 206.367 280.373 202.158 277.99 196.425C277.99 196.425 277.989 196.424 277.989 196.424L275.115 189.547L265.597 193.53C265.011 193.775 264.338 193.499 264.093 192.914C263.848 192.328 264.124 191.655 264.71 191.41L275.289 186.984C275.57 186.866 275.886 186.865 276.168 186.98Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M360.559 152.521C360.804 153.107 360.529 153.78 359.944 154.025L316.57 172.203L319.443 179.078C319.443 179.079 319.444 179.08 319.444 179.081C321.421 183.75 321.673 188.721 320.509 193.329C320.353 193.944 319.729 194.317 319.114 194.161C318.498 194.006 318.126 193.381 318.281 192.766C319.329 188.617 319.1 184.159 317.327 179.975L317.325 179.969L317.325 179.969L314.007 172.03C313.763 171.445 314.038 170.773 314.623 170.528L359.055 151.906C359.641 151.661 360.314 151.936 360.559 152.521Z",fill:"black"}),(0,a.jsx)("path",{d:"M306.315 226.105V354.195C306.315 360.258 301.41 365.166 295.351 365.166H167.344V317H158.784C152.918 317 147.58 314.594 143.685 310.744C139.838 306.895 137.434 301.554 137.434 295.636C137.434 283.847 147.003 274.271 158.784 274.271H167.344V226.105H215.479V234.67C215.479 240.541 217.883 245.882 221.73 249.779C225.577 253.629 230.915 256.035 236.829 256.035C248.611 256.035 258.18 246.459 258.18 234.67V226.105H306.315Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M137.434 295.635C137.434 301.505 139.838 306.846 143.685 310.744C147.532 314.593 152.869 316.999 158.784 316.999H167.344V365.165H39.288C33.2291 365.165 28.3242 360.257 28.3242 354.194V226.105H76.4593V217.54C76.4593 205.751 86.0286 196.176 97.8099 196.176C103.677 196.176 109.014 198.582 112.909 202.431C116.756 206.28 119.16 211.622 119.16 217.54V226.105H167.344V274.271H158.784C147.003 274.319 137.434 283.846 137.434 295.635Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M197.253 156.575C197.253 168.364 187.683 177.939 175.902 177.939H167.342V226.105H119.159V217.54C119.159 211.67 116.755 206.329 112.908 202.431C109.061 198.582 103.723 196.176 97.8087 196.176C86.0274 196.176 76.4581 205.751 76.4581 217.54V226.105H28.3711V98.0158C28.3711 91.9529 33.276 87.0449 39.3349 87.0449H167.342V135.211H175.902C181.769 135.211 187.106 137.617 191.001 141.466C194.848 145.364 197.253 150.705 197.253 156.575Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M257.03 226.393C257.03 225.758 257.544 225.244 258.179 225.244H306.314C306.948 225.244 307.463 225.758 307.463 226.393C307.463 227.027 306.948 227.542 306.314 227.542H259.328V234.958C259.328 247.38 249.245 257.471 236.828 257.471C230.596 257.471 224.969 254.934 220.916 250.879C217.678 247.638 215.393 243.427 214.632 238.651C214.532 238.025 214.959 237.436 215.585 237.336C216.212 237.236 216.801 237.663 216.901 238.29C217.582 242.56 219.625 246.336 222.542 249.255C226.183 252.898 231.232 255.173 236.828 255.173C247.974 255.173 257.03 246.113 257.03 234.958V226.393Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M166.195 226.393C166.195 225.758 166.71 225.244 167.344 225.244H191.436C192.07 225.244 192.585 225.758 192.585 226.393C192.585 227.027 192.07 227.542 191.436 227.542H167.344C166.71 227.542 166.195 227.027 166.195 226.393Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M167.344 351.217C167.979 351.217 168.493 351.731 168.493 352.366V365.454C168.493 366.088 167.979 366.602 167.344 366.602C166.71 366.602 166.195 366.088 166.195 365.454V352.366C166.195 351.731 166.71 351.217 167.344 351.217Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M167.344 240.209C167.979 240.209 168.493 240.723 168.493 241.358V274.559C168.493 275.193 167.979 275.708 167.344 275.708H158.785C147.639 275.708 138.583 284.768 138.583 295.923C138.583 301.472 140.854 306.527 144.5 310.223C148.141 313.864 153.189 316.139 158.785 316.139H167.344C167.979 316.139 168.493 316.653 168.493 317.287V342.79C168.493 343.424 167.979 343.939 167.344 343.939C166.71 343.939 166.195 343.424 166.195 342.79V318.436H158.785C152.552 318.436 146.926 315.9 142.873 311.844L142.868 311.839C138.821 307.74 136.285 302.114 136.285 295.923C136.285 283.501 146.368 273.41 158.785 273.41H166.195V241.358C166.195 240.723 166.71 240.209 167.344 240.209Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M131.426 226.393C131.426 225.758 131.94 225.244 132.575 225.244H167.342C167.976 225.244 168.49 225.758 168.49 226.393C168.49 227.027 167.976 227.542 167.342 227.542H132.575C131.94 227.542 131.426 227.027 131.426 226.393Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M96.707 196.465C96.707 195.831 97.2214 195.316 97.8559 195.316C104.043 195.316 109.666 197.855 113.763 201.903L113.768 201.908C117.821 205.964 120.355 211.594 120.355 217.829V226.394C120.355 227.029 119.841 227.543 119.206 227.543C118.572 227.543 118.058 227.029 118.058 226.394V217.829C118.058 212.23 115.785 207.178 112.145 203.535C108.452 199.887 103.401 197.614 97.8559 197.614C97.2214 197.614 96.707 197.1 96.707 196.465Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.5361 200.374C85.9285 200.873 85.8424 201.595 85.3437 201.987C80.6568 205.675 77.6554 211.41 77.6554 217.829V226.394C77.6554 227.029 77.1411 227.543 76.5066 227.543H28.3715C27.737 227.543 27.2227 227.029 27.2227 226.394C27.2227 225.76 27.737 225.245 28.3715 225.245H75.3577V217.829C75.3577 210.679 78.7038 204.289 83.9228 200.182C84.4214 199.789 85.1437 199.875 85.5361 200.374Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M197.254 155.715C197.889 155.715 198.403 156.229 198.403 156.864C198.403 169.286 188.32 179.377 175.904 179.377H168.493V217.588C168.493 218.223 167.979 218.737 167.344 218.737C166.71 218.737 166.195 218.223 166.195 217.588V178.228C166.195 177.593 166.71 177.079 167.344 177.079H175.904C187.05 177.079 196.105 168.019 196.105 156.864C196.105 156.229 196.62 155.715 197.254 155.715Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M167.344 86.1855C167.979 86.1855 168.493 86.6999 168.493 87.3344V134.351H175.904C178.735 134.351 181.425 134.858 183.917 135.825C184.509 136.054 184.802 136.72 184.572 137.311C184.343 137.903 183.677 138.196 183.086 137.967C180.865 137.105 178.458 136.649 175.904 136.649H167.344C166.71 136.649 166.195 136.135 166.195 135.5V87.3344C166.195 86.6999 166.71 86.1855 167.344 86.1855Z",fill:"black"}),(0,a.jsx)("path",{d:"M130.603 151.09C130.603 151.09 104.252 178.613 65.7822 178.613C27.3126 178.613 0.960938 151.09 0.960938 151.09C0.960938 151.09 27.3126 123.566 65.7822 123.566C104.252 123.566 130.603 151.09 130.603 151.09Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M111.829 136.348C112.157 135.805 112.863 135.631 113.407 135.958C119.165 139.435 123.709 142.912 126.818 145.523C128.372 146.829 129.569 147.92 130.379 148.686C130.785 149.07 131.094 149.372 131.303 149.581C131.407 149.685 131.487 149.765 131.541 149.821C131.555 149.835 131.567 149.847 131.577 149.858C131.588 149.868 131.596 149.877 131.603 149.884L131.62 149.902L131.626 149.908L131.627 149.909C131.627 149.909 131.627 149.909 130.797 150.704C131.627 151.498 131.627 151.498 131.626 151.499L131.62 151.505L131.603 151.523C131.589 151.538 131.568 151.559 131.541 151.587C131.487 151.642 131.407 151.723 131.303 151.827C131.094 152.035 130.785 152.337 130.379 152.721C129.569 153.488 128.372 154.578 126.818 155.884C123.709 158.495 119.165 161.972 113.407 165.449C101.897 172.398 85.4857 179.376 65.976 179.376C40.8614 179.376 20.8574 167.768 9.84538 159.564C9.33656 159.185 9.23138 158.465 9.61044 157.957C9.98951 157.448 10.7093 157.343 11.2181 157.722C22.0375 165.782 41.5611 177.078 65.976 177.078C84.9359 177.078 100.936 170.294 112.219 163.482C117.857 160.078 122.305 156.674 125.34 154.125C126.857 152.85 128.02 151.79 128.8 151.052C128.933 150.926 129.055 150.81 129.165 150.704C129.055 150.597 128.933 150.481 128.8 150.356C128.02 149.617 126.857 148.557 125.34 147.283C122.305 144.733 117.857 141.33 112.219 137.925C111.676 137.597 111.501 136.891 111.829 136.348ZM130.797 150.704L131.627 151.498C132.052 151.054 132.052 150.353 131.627 149.909L130.797 150.704Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.03339 151.5L2.03346 151.5L2.03593 151.497L2.04805 151.485C2.05931 151.473 2.07693 151.455 2.10086 151.43C2.14871 151.382 2.22178 151.308 2.31962 151.21C2.51531 151.015 2.81007 150.727 3.20043 150.357C3.98121 149.619 5.14403 148.559 6.66106 147.284C9.69592 144.735 14.1437 141.331 19.7819 137.927C31.0653 131.115 47.0648 124.331 66.0248 124.331C71.2378 124.331 76.2632 124.852 81.0057 125.754C81.629 125.873 82.2304 125.463 82.3489 124.84C82.4674 124.217 82.0582 123.615 81.4348 123.497C76.56 122.57 71.3909 122.033 66.0248 122.033C46.5151 122.033 30.1041 129.011 18.5943 135.96C12.8358 139.437 8.29134 142.914 5.18309 145.525C3.62857 146.831 2.43211 147.921 1.62152 148.688C1.21619 149.071 0.907234 149.374 0.69813 149.582C0.593575 149.686 0.513973 149.767 0.459759 149.822C0.432651 149.85 0.411889 149.871 0.397528 149.886L0.380791 149.903L0.376036 149.908L0.374563 149.91C0.374079 149.91 0.373695 149.911 1.20354 150.705L0.373695 149.911C-0.0650902 150.369 -0.0492613 151.096 0.40905 151.535C0.867268 151.974 1.59431 151.958 2.03312 151.5",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0241 109.077C60.4214 109.077 55.1536 109.6 50.2678 110.501C49.6438 110.617 49.0446 110.204 48.9294 109.58C48.8143 108.956 49.2267 108.357 49.8507 108.242C54.8708 107.315 60.2782 106.779 66.0241 106.779C81.1498 106.779 93.8928 110.642 102.85 114.5C107.331 116.429 110.87 118.36 113.294 119.813C114.507 120.539 115.441 121.146 116.075 121.574C116.392 121.787 116.634 121.957 116.799 122.073C116.881 122.132 116.944 122.177 116.987 122.209C117.009 122.224 117.026 122.237 117.037 122.245L117.051 122.255L117.055 122.258L117.056 122.259C117.057 122.26 117.057 122.26 116.371 123.181L117.057 122.26C117.566 122.639 117.672 123.359 117.293 123.868C116.914 124.376 116.194 124.482 115.685 124.103C115.685 124.103 115.685 124.103 115.685 124.103L115.684 124.102L115.675 124.096C115.671 124.093 115.666 124.089 115.659 124.084C115.653 124.079 115.645 124.073 115.636 124.067C115.599 124.04 115.544 124 115.469 123.947C115.319 123.84 115.092 123.682 114.79 123.478C114.188 123.072 113.288 122.487 112.113 121.784C109.763 120.376 106.315 118.494 101.941 116.61C93.1909 112.841 80.7604 109.077 66.0241 109.077Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6957 112.141C38.8932 112.744 38.5646 113.393 37.9617 113.59C31.2151 115.801 25.8005 118.427 22.0772 120.498C20.2161 121.533 18.7791 122.428 17.8113 123.062C17.3274 123.378 16.961 123.63 16.7176 123.8C16.5959 123.885 16.505 123.951 16.4456 123.993C16.4158 124.015 16.394 124.031 16.3801 124.041L16.3653 124.052L16.3624 124.054C15.8536 124.433 15.1337 124.328 14.7548 123.819C14.3759 123.31 14.4812 122.59 14.9901 122.211L15.6763 123.133C14.9901 122.211 14.9903 122.211 14.9906 122.211L14.9932 122.209L14.9993 122.204L15.0207 122.189C15.0389 122.175 15.0652 122.156 15.0994 122.131C15.1678 122.082 15.2679 122.01 15.3991 121.919C15.6613 121.735 16.0478 121.47 16.5527 121.139C17.5625 120.478 19.0468 119.554 20.9605 118.49C24.7869 116.362 30.3361 113.671 37.2462 111.407C37.8491 111.209 38.4981 111.538 38.6957 112.141Z",fill:"black"}),(0,a.jsx)("path",{d:"M84.6347 175.244C95.9832 175.244 105.168 166.053 105.168 154.697C105.168 151.425 104.398 148.298 103.004 145.555C101.754 149.26 98.2433 151.955 94.0598 151.955C88.8664 151.955 84.6347 147.72 84.6347 142.524C84.6347 139.252 86.3177 136.316 88.8664 134.632C87.5199 134.344 86.0773 134.199 84.6347 134.199C73.2862 134.199 64.1016 143.39 64.1016 154.745C64.1496 166.053 73.3343 175.244 84.6347 175.244Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.9492 154.746C62.9492 142.756 72.6475 133.051 84.6312 133.051C86.1482 133.051 87.6719 133.202 89.1037 133.509C89.5561 133.606 89.9061 133.965 89.9918 134.42C90.0775 134.874 89.8822 135.336 89.4962 135.591C87.2599 137.069 85.7801 139.649 85.7801 142.524C85.7801 147.087 89.4981 150.806 94.0563 150.806C97.7318 150.806 100.814 148.441 101.912 145.188C102.06 144.75 102.456 144.443 102.917 144.41C103.379 144.376 103.815 144.622 104.025 145.035C105.501 147.939 106.313 151.246 106.313 154.698C106.313 166.687 96.615 176.393 84.6312 176.393C72.6946 176.393 63 166.687 62.9492 154.751L62.9492 154.746ZM65.2469 154.743C65.2936 165.421 73.9677 174.095 84.6312 174.095C95.3445 174.095 104.015 165.42 104.015 154.698C104.015 152.464 103.636 150.306 102.931 148.306C101.05 151.187 97.7921 153.104 94.0563 153.104C88.2276 153.104 83.4824 148.354 83.4824 142.524C83.4824 139.807 84.5169 137.297 86.2158 135.41C85.6922 135.369 85.1622 135.348 84.6312 135.348C73.9187 135.348 65.2482 144.022 65.2469 154.743Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M428.964 146.521C429.467 146.908 429.561 147.63 429.174 148.133L423.548 155.446C423.161 155.949 422.44 156.043 421.937 155.657C421.434 155.27 421.34 154.548 421.727 154.046L427.353 146.732C427.74 146.229 428.461 146.135 428.964 146.521Z",fill:"black"}),(0,a.jsx)("path",{d:"M66.0252 384.844C97.7351 384.844 123.441 359.122 123.441 327.392C123.441 295.662 97.7351 269.939 66.0252 269.939C34.3153 269.939 8.60938 295.662 8.60938 327.392C8.60938 359.122 34.3153 384.844 66.0252 384.844Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0217 271.089C34.9189 271.089 9.75473 296.269 9.75473 327.344C9.75473 358.42 34.9676 383.648 66.0217 383.648C87.225 383.648 105.652 371.909 115.268 354.598C115.576 354.044 116.276 353.844 116.83 354.152C117.385 354.46 117.585 355.159 117.277 355.714C107.274 373.721 88.0968 385.946 66.0217 385.946C33.6972 385.946 7.45703 359.687 7.45703 327.344C7.45703 295 33.6497 268.791 66.0217 268.791C90.9898 268.791 112.325 284.449 120.712 306.437C120.938 307.029 120.641 307.693 120.048 307.919C119.455 308.146 118.791 307.848 118.565 307.256C110.507 286.13 90.0062 271.089 66.0217 271.089Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.8624 285.734C25.308 285.283 26.0354 285.278 26.487 285.724C36.6692 295.771 50.617 301.993 66.0251 301.993C81.4346 301.993 95.4291 295.77 105.561 285.726C106.012 285.279 106.739 285.282 107.186 285.733C107.633 286.183 107.629 286.911 107.179 287.357C96.6336 297.811 82.0644 304.291 66.0251 304.291C49.9843 304.291 35.4646 297.81 24.8732 287.359C24.4215 286.913 24.4167 286.186 24.8624 285.734Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.8713 367.381C35.4165 356.927 49.9858 350.447 66.0251 350.447C82.0658 350.447 96.5856 356.928 107.177 367.379C107.629 367.825 107.633 368.552 107.188 369.004C106.742 369.455 106.015 369.46 105.563 369.014C95.3809 358.967 81.4332 352.745 66.0251 352.745C50.6155 352.745 36.6211 358.968 26.4889 369.013C26.0383 369.459 25.3109 369.456 24.8642 369.005C24.4175 368.555 24.4207 367.828 24.8713 367.381Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2446 295.228C39.8416 295.443 40.1513 296.101 39.9364 296.698C36.7631 305.513 34.9071 316.015 34.9071 327.345C34.9071 343.04 38.4915 357.202 44.221 367.4C49.9712 377.635 57.7295 383.649 66.0246 383.649C74.5 383.649 82.3676 377.398 88.1464 366.828C88.4508 366.271 89.1488 366.067 89.7055 366.371C90.2623 366.675 90.4668 367.373 90.1625 367.93C84.208 378.821 75.7261 385.947 66.0246 385.947C56.5275 385.947 48.1526 379.089 42.2177 368.525C36.262 357.924 32.6094 343.36 32.6094 327.345C32.6094 315.772 34.5041 305.005 37.7745 295.92C37.9894 295.323 38.6476 295.013 39.2446 295.228Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0243 271.042C57.7294 271.042 49.9593 277.068 44.2336 287.295C43.9236 287.849 43.2235 288.046 42.6699 287.737C42.1163 287.427 41.9187 286.727 42.2286 286.173C48.1399 275.614 56.5271 268.744 66.0243 268.744C75.5205 268.744 83.8956 275.589 89.831 286.147C95.787 296.742 99.4395 311.307 99.4395 327.345C99.4395 338.434 97.6904 348.809 94.6651 357.647C94.4596 358.247 93.8064 358.567 93.2061 358.362C92.6058 358.156 92.2857 357.503 92.4912 356.903C95.4287 348.322 97.1418 338.199 97.1418 327.345C97.1418 311.626 93.5573 297.465 87.8281 287.273C82.0784 277.045 74.3203 271.042 66.0243 271.042Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M97.0938 327.393C97.0938 326.758 97.6081 326.244 98.2426 326.244H123.44C124.075 326.244 124.589 326.758 124.589 327.393C124.589 328.027 124.075 328.542 123.44 328.542H98.2426C97.6081 328.542 97.0938 328.027 97.0938 327.393Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.6094 327.393C32.6094 326.758 33.1237 326.244 33.7582 326.244H87.279C87.9135 326.244 88.4279 326.758 88.4279 327.393C88.4279 328.027 87.9135 328.542 87.279 328.542H33.7582C33.1237 328.542 32.6094 328.027 32.6094 327.393Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.45703 327.393C7.45703 326.758 7.97139 326.244 8.60588 326.244H25.6768C26.3113 326.244 26.8256 326.758 26.8256 327.393C26.8256 328.027 26.3113 328.542 25.6768 328.542H8.60588C7.97139 328.542 7.45703 328.027 7.45703 327.393Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.0239 268.791C66.6583 268.791 67.1727 269.305 67.1727 269.94V384.797C67.1727 385.431 66.6583 385.946 66.0239 385.946C65.3894 385.946 64.875 385.431 64.875 384.797V269.94C64.875 269.305 65.3894 268.791 66.0239 268.791Z",fill:"black"}),(0,a.jsx)("path",{d:"M207.59 51.5342C233.509 51.5342 244.424 37.532 244.424 1.20312C244.424 37.532 255.34 51.5342 281.259 51.5342C255.34 51.5342 244.424 65.5365 244.424 101.865C244.424 65.5365 233.557 51.5342 207.59 51.5342Z",fill:"white"}),(0,a.jsx)("path",{d:"M262.844 104.126C277.174 104.126 283.185 96.3795 283.185 76.3145C283.185 96.3795 289.195 104.126 303.525 104.126C289.195 104.126 283.185 111.873 283.185 131.938C283.185 111.873 277.174 104.126 262.844 104.126Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M244.425 0.0546875C245.059 0.0546875 245.574 0.569027 245.574 1.2035C245.574 19.3076 248.305 31.5741 254.045 39.3077C259.719 46.9524 268.509 50.3858 281.26 50.3858C281.894 50.3858 282.408 50.9001 282.408 51.5346C282.408 52.1691 281.894 52.6834 281.26 52.6834C268.509 52.6834 259.719 56.1168 254.045 63.7615C248.305 71.495 245.574 83.7616 245.574 101.866C245.574 102.5 245.059 103.014 244.425 103.014C243.79 103.014 243.276 102.5 243.276 101.866C243.276 83.7616 240.545 71.495 234.805 63.7615C229.13 56.1168 220.34 52.6834 207.59 52.6834C206.956 52.6834 206.441 52.1691 206.441 51.5346C206.441 50.9001 206.956 50.3858 207.59 50.3858C220.759 50.3858 230.386 53.9535 236.65 62.3921C240.563 67.6639 243.092 74.749 244.425 83.843C245.758 74.749 248.287 67.6639 252.2 62.3921C256.451 56.6656 262.25 53.1822 269.654 51.5346C262.25 49.887 256.451 46.4036 252.2 40.677C248.286 35.4031 245.756 28.3143 244.423 19.2149C242.291 33.7459 237.103 43.1686 228.108 48.2063C227.554 48.5163 226.854 48.3189 226.544 47.7653C226.234 47.2118 226.431 46.5117 226.985 46.2017C238.073 39.9922 243.276 26.1757 243.276 1.2035C243.276 0.569027 243.79 0.0546875 244.425 0.0546875Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M283.185 75.166C283.819 75.166 284.334 75.6804 284.334 76.3148C284.334 86.2875 285.839 92.9245 288.905 97.0612C291.904 101.109 296.57 102.978 303.526 102.978C304.16 102.978 304.675 103.492 304.675 104.127C304.675 104.761 304.16 105.276 303.526 105.276C296.151 105.276 290.647 103.272 287.059 98.4292C285.267 96.012 283.999 92.944 283.185 89.1848C282.371 92.944 281.103 96.012 279.311 98.4292C277.247 101.215 274.549 103.061 271.226 104.127C274.549 105.193 277.247 107.039 279.311 109.824C281.103 112.242 282.371 115.311 283.185 119.071C284.399 113.466 286.623 109.397 290.081 106.73C290.584 106.342 291.305 106.435 291.692 106.938C292.08 107.44 291.987 108.162 291.484 108.549C286.701 112.238 284.334 119.43 284.334 131.939C284.334 132.573 283.819 133.088 283.185 133.088C282.55 133.088 282.036 132.573 282.036 131.939C282.036 121.966 280.531 115.329 277.465 111.192C274.466 107.145 269.8 105.276 262.844 105.276C262.21 105.276 261.695 104.761 261.695 104.127C261.695 103.492 262.21 102.978 262.844 102.978C269.8 102.978 274.466 101.109 277.465 97.0612C280.531 92.9245 282.036 86.2875 282.036 76.3148C282.036 75.6804 282.55 75.166 283.185 75.166Z",fill:"black"}),(0,a.jsx)("path",{d:"M384.986 203.393L379.359 210.706L384.986 203.393Z",fill:"white"}),(0,a.jsx)("path",{d:"M442.495 130.687L323.816 102.73L380.655 210.707L399.217 186.696L435.282 214.604L459.999 182.654L423.933 154.746L442.495 130.687Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M321.612 102.028C321.887 101.672 322.345 101.509 322.784 101.613L395.058 118.646C395.676 118.792 396.058 119.411 395.913 120.028C395.767 120.646 395.149 121.028 394.531 120.883L324.711 104.428L379.543 208.59L397.011 185.994C397.198 185.752 397.472 185.595 397.775 185.557C398.077 185.518 398.382 185.601 398.623 185.788L433.78 212.993L451.591 189.987C451.979 189.485 452.701 189.393 453.202 189.782C453.704 190.17 453.796 190.892 453.408 191.393L434.894 215.308C434.506 215.809 433.784 215.901 433.282 215.513L398.126 188.308L380.268 211.41C380.029 211.719 379.649 211.885 379.259 211.851C378.87 211.818 378.524 211.588 378.342 211.242L321.503 103.266C321.294 102.868 321.336 102.384 321.612 102.028Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M412.429 123.929C412.574 123.312 413.193 122.929 413.81 123.074L441.46 129.57C441.841 129.659 442.149 129.935 442.28 130.303C442.411 130.671 442.346 131.08 442.107 131.39L424.246 154.54L459.404 181.746C459.906 182.135 459.998 182.856 459.61 183.358C459.221 183.86 458.5 183.952 457.998 183.564L421.933 155.655C421.432 155.267 421.339 154.547 421.726 154.045L439.198 131.398L413.285 125.31C412.667 125.165 412.284 124.547 412.429 123.929Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M328.199 275.715C328.199 275.081 328.714 274.566 329.348 274.566H369.693C370.328 274.566 370.842 275.081 370.842 275.715C370.842 276.35 370.328 276.864 369.693 276.864H329.348C328.714 276.864 328.199 276.35 328.199 275.715Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M241.785 275.715C241.785 275.081 242.3 274.566 242.934 274.566H317.373C318.007 274.566 318.521 275.081 318.521 275.715C318.521 276.35 318.007 276.864 317.373 276.864H242.934C242.3 276.864 241.785 276.35 241.785 275.715Z",fill:"black"}),(0,a.jsx)("path",{d:"M286.118 289.38H274.241C271.884 289.38 269.961 287.456 269.961 285.098V266.38C269.961 264.022 271.884 262.098 274.241 262.098H286.118C288.474 262.098 290.398 264.022 290.398 266.38V285.098C290.398 287.456 288.474 289.38 286.118 289.38Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M274.241 263.245C272.52 263.245 271.11 264.655 271.11 266.379V285.096C271.11 286.82 272.52 288.23 274.241 288.23H286.119C287.84 288.23 289.249 286.82 289.249 285.096V266.379C289.249 264.655 287.84 263.245 286.119 263.245H274.241ZM268.812 266.379C268.812 263.387 271.25 260.947 274.241 260.947H286.119C289.11 260.947 291.547 263.387 291.547 266.379V285.096C291.547 288.088 289.11 290.528 286.119 290.528H274.241C271.25 290.528 268.812 288.088 268.812 285.096V266.379Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M351.809 337.979C351.809 337.344 352.323 336.83 352.957 336.83H369.692C370.326 336.83 370.841 337.344 370.841 337.979C370.841 338.613 370.326 339.128 369.692 339.128H352.957C352.323 339.128 351.809 338.613 351.809 337.979Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M300.934 337.979C300.934 337.344 301.448 336.83 302.082 336.83H340.456C341.09 336.83 341.605 337.344 341.605 337.979C341.605 338.613 341.09 339.128 340.456 339.128H302.082C301.448 339.128 300.934 338.613 300.934 337.979Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M241.785 337.979C241.785 337.344 242.3 336.83 242.934 336.83H302.081C302.715 336.83 303.23 337.344 303.23 337.979C303.23 338.613 302.715 339.128 302.081 339.128H242.934C242.3 339.128 241.785 338.613 241.785 337.979Z",fill:"black"}),(0,a.jsx)("path",{d:"M286.118 351.644H274.241C271.884 351.644 269.961 349.719 269.961 347.362V328.644C269.961 326.286 271.884 324.361 274.241 324.361H286.118C288.474 324.361 290.398 326.286 290.398 328.644V347.362C290.398 349.671 288.474 351.644 286.118 351.644Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M274.241 325.511C272.52 325.511 271.11 326.92 271.11 328.644V347.362C271.11 349.086 272.52 350.496 274.241 350.496H286.119C287.831 350.496 289.249 349.046 289.249 347.362V328.644C289.249 326.92 287.84 325.511 286.119 325.511H274.241ZM268.812 328.644C268.812 325.653 271.25 323.213 274.241 323.213H286.119C289.11 323.213 291.547 325.653 291.547 328.644V347.362C291.547 350.297 289.118 352.793 286.119 352.793H274.241C271.25 352.793 268.812 350.353 268.812 347.362V328.644Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M241.785 306.846C241.785 306.212 242.3 305.697 242.934 305.697H291.406C292.04 305.697 292.555 306.212 292.555 306.846C292.555 307.481 292.04 307.995 291.406 307.995H242.934C242.3 307.995 241.785 307.481 241.785 306.846Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M303.48 306.846C303.48 306.212 303.995 305.697 304.629 305.697H369.691C370.325 305.697 370.84 306.212 370.84 306.846C370.84 307.481 370.325 307.995 369.691 307.995H304.629C303.995 307.995 303.48 307.481 303.48 306.846Z",fill:"black"}),(0,a.jsx)("path",{d:"M326.511 293.182H338.389C340.745 293.182 342.668 295.106 342.668 297.464V316.182C342.668 318.54 340.745 320.464 338.389 320.464H326.511C324.155 320.464 322.231 318.54 322.231 316.182V297.464C322.183 295.106 324.155 293.182 326.511 293.182Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M326.512 294.329C324.769 294.329 323.346 295.755 323.38 297.439C323.381 297.447 323.381 297.455 323.381 297.463V316.18C323.381 317.904 324.79 319.314 326.512 319.314H338.389C340.11 319.314 341.52 317.904 341.52 316.18V297.463C341.52 295.739 340.11 294.329 338.389 294.329H326.512ZM321.083 297.474C321.028 294.448 323.546 292.031 326.512 292.031H338.389C341.38 292.031 343.818 294.471 343.818 297.463V316.18C343.818 319.172 341.38 321.612 338.389 321.612H326.512C323.52 321.612 321.083 319.172 321.083 316.18V297.474Z",fill:"black"}),(0,a.jsx)("path",{d:"M322.517 102.73L379.356 210.707L366.421 227.451L309.582 119.475L322.517 102.73Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M322.617 101.586C323.007 101.62 323.352 101.85 323.534 102.196L380.373 210.172C380.583 210.57 380.541 211.053 380.266 211.409L367.33 228.154C367.091 228.464 366.711 228.63 366.322 228.596C365.932 228.563 365.587 228.333 365.405 227.987L308.566 120.011C308.356 119.613 308.398 119.129 308.673 118.774L321.609 102.029C321.848 101.719 322.228 101.553 322.617 101.586ZM310.943 119.594L366.605 225.335L377.996 210.589L322.334 104.848L310.943 119.594Z",fill:"black"}),(0,a.jsx)("path",{d:"M433.985 214.606L421.05 231.302L384.984 203.394L397.92 186.697L433.985 214.606Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M397.012 185.992C397.4 185.491 398.122 185.399 398.623 185.787L434.689 213.695C434.93 213.882 435.087 214.157 435.125 214.459C435.164 214.761 435.08 215.067 434.894 215.308L421.958 232.004C421.57 232.506 420.849 232.598 420.347 232.209L384.282 204.301C384.041 204.115 383.884 203.84 383.845 203.538C383.807 203.235 383.89 202.93 384.077 202.689L397.012 185.992ZM398.125 188.307L386.597 203.187L420.845 229.69L432.373 214.809L398.125 188.307Z",fill:"black"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M367.749 22.8105C368.257 22.9568 368.6 23.4311 368.579 23.9596L367.095 61.8011L410.925 24.3404C411.353 23.9745 411.983 23.9729 412.413 24.3367C412.843 24.7005 412.946 25.3224 412.656 25.8053L381.73 77.2899L407.733 69.4408C408.238 69.2883 408.782 69.4996 409.052 69.9532C409.322 70.4067 409.248 70.9858 408.873 71.357L388.243 91.7775L400.971 93.6554C401.439 93.7244 401.817 94.0727 401.923 94.5333C402.029 94.9938 401.843 95.4725 401.453 95.7397L393.374 101.273C392.851 101.632 392.136 101.498 391.777 100.975C391.419 100.451 391.552 99.7362 392.076 99.3776L397.736 95.5006L385.633 93.715C385.202 93.6515 384.845 93.35 384.709 92.9365C384.573 92.5229 384.683 92.0682 384.992 91.762L403.971 72.9764L379.545 80.3497C379.09 80.4869 378.598 80.3303 378.306 79.9556C378.014 79.5809 377.983 79.0654 378.228 78.6583L407.052 30.6734L366.591 65.2548C366.244 65.5514 365.754 65.6144 365.343 65.4153C364.932 65.2161 364.679 64.7927 364.696 64.3365L366.1 28.5405L345.25 64.8573C345.066 65.1766 344.741 65.3886 344.375 65.4276C344.009 65.4666 343.646 65.3278 343.4 65.0543L334.135 54.7716L333.039 66.1756C332.978 66.8072 332.417 67.2699 331.785 67.2092C331.153 67.1484 330.691 66.5872 330.751 65.9557L332.098 51.9534C332.141 51.5 332.449 51.1152 332.881 50.9724C333.314 50.8297 333.79 50.956 334.095 51.2944L344.046 62.339L366.435 23.3426C366.698 22.8839 367.241 22.6643 367.749 22.8105Z",fill:"black"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_5491_128536",children:(0,a.jsx)("rect",{width:"460",height:"386",fill:"white"})})})]})};s(32042);var shared_CertificateLibraryCard=e=>{var t,s,r,l;let{certificate:n}=e,{t:o}=(0,x.Y)(["account"]),{downloading:c,downloadFile:d}=(0,g.O6)();return(0,a.jsxs)(i.J,{className:"group h-full transform duration-150 ease-linear hover:-translate-y-2 hover:shadow-[12px_32px_32px_0px_rgba(0,0,0,0.12)]",children:[(0,a.jsxs)(i.J.Body,{className:"relative flex h-full flex-col p-4",children:[(null===(t=n.course)||void 0===t?void 0:t.thumbnail)&&(0,a.jsx)(u.Thumbnail,{src:n.course.thumbnail,alt:n.course.title,className:"mb-4"}),(0,a.jsx)("div",{className:"flex flex-1 flex-col space-y-2",children:(0,a.jsx)("div",{className:"flex items-start justify-between gap-4",children:(0,a.jsx)(i.u.Body,{as:"h3",size:"base",className:"break-words font-semibold group-hover:text-primary",children:(null===(s=n.course)||void 0===s?void 0:s.slug)?(0,a.jsxs)(N(),{href:"/courses/".concat(n.course.slug),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0"}),n.course.title]}):null!==(l=null===(r=n.course)||void 0===r?void 0:r.title)&&void 0!==l?l:n.serial})})})]}),(0,a.jsx)(i.J.Footer,{className:"mt-auto flex-col space-y-4",children:(0,a.jsx)(i.B,{onClick:()=>d("/certificates/".concat(n.id),n.course?"".concat(n.course.title,"-certificate"):"".concat(n.serial,"-certificate")),disabled:c,isLoading:c,className:"w-full",icon:(0,a.jsx)(i.s,{children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66699 3.66211C6.87207 3.66211 5.41699 5.11718 5.41699 6.91211V14.9121C5.41699 16.1141 6.06915 17.1647 7.04254 17.7278C7.40108 17.9352 7.5236 18.394 7.3162 18.7525C7.10879 19.1111 6.64999 19.2336 6.29145 19.0262C4.87363 18.206 3.91699 16.6712 3.91699 14.9121V6.91211C3.91699 4.28876 6.04364 2.16211 8.66699 2.16211H16.667C19.2903 2.16211 21.417 4.28876 21.417 6.91211V14.9121C21.417 16.6712 20.4604 18.206 19.0425 19.0262C18.684 19.2336 18.2252 19.1111 18.0178 18.7525C17.8104 18.394 17.9329 17.9352 18.2914 17.7278C19.2648 17.1647 19.917 16.1141 19.917 14.9121V6.91211C19.917 5.11718 18.4619 3.66211 16.667 3.66211H8.66699ZM7.91699 6.91211C7.91699 6.4979 8.25278 6.16211 8.66699 6.16211H16.667C17.0812 6.16211 17.417 6.4979 17.417 6.91211C17.417 7.32632 17.0812 7.66211 16.667 7.66211H8.66699C8.25278 7.66211 7.91699 7.32632 7.91699 6.91211ZM7.91699 10.9121C7.91699 10.4979 8.25278 10.1621 8.66699 10.1621H12.667C13.0812 10.1621 13.417 10.4979 13.417 10.9121C13.417 11.3263 13.0812 11.6621 12.667 11.6621H8.66699C8.25278 11.6621 7.91699 11.3263 7.91699 10.9121ZM12.667 14.6621C11.4244 14.6621 10.417 15.6695 10.417 16.9121C10.417 18.1547 11.4244 19.1621 12.667 19.1621C13.9096 19.1621 14.917 18.1547 14.917 16.9121C14.917 15.6695 13.9096 14.6621 12.667 14.6621ZM8.91699 16.9121C8.91699 14.841 10.5959 13.1621 12.667 13.1621C14.7381 13.1621 16.417 14.841 16.417 16.9121C16.417 17.5939 16.235 18.2333 15.917 18.7842V22.9121C15.917 23.161 15.7935 23.3936 15.5875 23.5332C15.3814 23.6727 15.1195 23.7009 14.8884 23.6085L12.667 22.7199L10.4455 23.6085C10.2145 23.7009 9.9526 23.6727 9.74652 23.5332C9.54044 23.3936 9.41699 23.161 9.41699 22.9121V18.7842C9.09896 18.2333 8.91699 17.5939 8.91699 16.9121ZM10.917 20.2296V21.8043L12.3884 21.2158C12.5673 21.1442 12.7667 21.1442 12.9455 21.2158L14.417 21.8043V20.2296C13.8946 20.5057 13.299 20.6621 12.667 20.6621C12.0349 20.6621 11.4394 20.5057 10.917 20.2296Z",fill:"currentColor"})})}),children:o("account:download_certificate")})})]})}},65325:function(e,t,s){var a=s(85893),r=s(67294),l=s(41664),n=s.n(l),o=s(6316),i=s(87704),c=s(62683),d=s(78943),u=s(8662),m=s(43451),p=s(74820);let x={[d.kv.DIGITAL]:{path:"/products",color:"info"},[d.kv.BUNDLE]:{path:"/bundles",color:"purple"},[d.kv.COACHING_SESSION]:{path:"/coaching-sessions",color:"success"}};t.Z=e=>{var t;let{product:s,hasFooter:l=!0}=e,{t:h}=(0,c.Y)(["common"]),C=x[s.type];return(0,r.useMemo)(()=>{var e;return null==s?void 0:null===(e=s.items)||void 0===e?void 0:e.filter(e=>"course"==e.type).length},[s]),(0,r.useMemo)(()=>{var e;return null==s?void 0:null===(e=s.items)||void 0===e?void 0:e.filter(e=>"course"!=e.type).length},[s]),(0,a.jsxs)(p.J,{className:"group h-full transform duration-150 ease-linear hover:-translate-y-2 hover:shadow-[12px_32px_32px_0px_rgba(0,0,0,0.12)]",children:[(0,a.jsxs)(p.J.Body,{className:"relative flex h-full flex-col p-4",children:[(0,a.jsx)(o.Thumbnail,{src:s.thumbnail,alt:s.title}),(0,a.jsxs)("div",{className:"mt-4 flex flex-1 flex-col space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)(p.u.Body,{as:"h3",size:"base",className:"break-words font-semibold group-hover:text-primary",children:(0,a.jsxs)(n(),{href:"".concat(C.path,"/").concat(s.slug),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0"}),s.title]})}),(0,a.jsx)(p.x,{rounded:"full",variant:"soft",color:C.color,size:"md",className:"flex-shrink-0 px-5",children:h("common:product_types_"+s.type)})]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-end space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[!s.meta.custom_url&&s.type!==d.kv.COACHING_SESSION&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(p.s,{className:"text-gray-700",size:"sm",children:(0,a.jsx)(u.Z,{})}),(0,a.jsx)(p.u.Body,{size:"md",className:"font-medium text-gray-700",children:s.type===d.kv.DIGITAL?h("common:digital_products_WithCount",{count:s.attachments.length}):h("common:bundle_WithCount",{products:s.products_count,courses:s.courses_count})})]}),s.meta.reviews_enabled&&(0,a.jsx)(o.StarsRating,{value:null!==(t=null==s?void 0:s.avg_rating)&&void 0!==t?t:0,size:"sm",isReadOnly:!0})]}),(0,a.jsx)(o.ProductPrice,{className:"py-2",price:s.price,salesPrice:s.sales_price})]})]})]}),l&&(0,a.jsx)(p.J.Footer,{className:"mt-auto flex-col space-y-4",children:s.type===d.kv.COACHING_SESSION?(0,a.jsxs)(p.B,{as:n(),href:"".concat(C.path,"/").concat(s.slug,"/booking-details"),className:"w-full",children:[(0,a.jsx)("span",{className:"absolute inset-0 z-10"}),(0,a.jsx)("span",{className:"relative",children:h("common:book_it_for_free")})]}):s.can_download?(0,a.jsxs)(p.B,{as:n(),variant:"outline",href:"".concat(C.path,"/").concat(s.slug),className:"w-full",children:[(0,a.jsx)("span",{className:"absolute inset-0 z-10"}),(0,a.jsx)("span",{className:"relative",children:h("common:view_details")})]}):(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(i.ExpressCheckoutButton,{product_type:"product",product_id:s.id,color:"primary",size:"md",variant:"solid",className:"w-full",label:h(0==s.price?"common:get_it_for_free":"common:buy_now")}),(0,a.jsx)(i.AddToCartButton,{product:s,product_type:"product",product_id:s.id,color:"gray",size:"md",icon:(0,a.jsx)(p.s,{children:(0,a.jsx)(m.Z,{})})})]})})]})}},21789:function(e,t,s){s.d(t,{Z:function(){return useDrippable}});var a=s(67294),r=s(11163),l=s(45085),n=s(47810),o=s(62683),i=s(52423);function useDrippable(e){let{query:t}=(0,r.useRouter)(),{member:s}=(0,a.useContext)(l.Vo),{data:c}=(0,i.IE)({slug:t.slug}),{t:d}=(0,o.Y)(["drip_content"]);return(0,a.useMemo)(()=>{let{drip_after:t,dripped_at:a,drip_enabled:r,drip_type:l}=e;return!r||e.can_access||"dripped_at"===l&&(0,n.Z)(a).isBefore((0,n.Z)())?void 0:s&&c&&c.enrolled?d("drip_content:dripped_at",{date:(0,n.Z)(a).format("D MMMM، YYYY")}):s&&null!=c&&c.enrolled?void 0:"created_at"===l||"started_at"===l?d("drip_content:".concat(l),{date:t}):d("drip_content:dripped_at",{date:(0,n.Z)(a).format("D MMMM، YYYY")})},[d,c,s,e])}},45218:function(e,t,s){var a=s(67294);t.Z=(e,t)=>{let[s,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let a;return e&&!s?r(!0):!e&&s&&(a=setTimeout(()=>r(!1),t)),()=>{clearTimeout(a)}},[t,e,s]),s}},53771:function(e,t,s){s.d(t,{P0:function(){return n},ll:function(){return l},qN:function(){return o}});var a=s(74738);let r=a.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchAffiliate:e.query({query:()=>({url:"/account/affiliates",method:"GET"}),transformResponse:e=>e.data,providesTags:["account"]}),fetchPayouts:e.query({query:()=>({url:"/account/affiliates/payouts",method:"GET"}),providesTags:["account","affiliates.payouts.index"]}),withdrawEarnings:e.mutation({query:e=>({url:"/account/affiliates/withdraw",method:"POST",body:e}),invalidatesTags:["affiliates.payouts.index"]})})}),{useFetchAffiliateQuery:l,useFetchPayoutsQuery:n,useWithdrawEarningsMutation:o}=r},68300:function(e,t,s){s.d(t,{r:function(){return n}});var a=s(74738),r=s(85516);let l=a.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({submitAssignment:e.mutation({query:e=>{let{slug:t,chapterId:s,contentId:a,params:l,...n}=e;return{url:"/courses/".concat(t,"/chapters/").concat(s,"/contents/").concat(a,"/assignments"),method:"POST",params:l,body:(0,r.D)(n)}}})})}),{useSubmitAssignmentMutation:n}=l},68192:function(e,t,s){s.d(t,{A5:function(){return n},HB:function(){return C},Ln:function(){return f},Nt:function(){return j},Ql:function(){return o},TG:function(){return c},Tc:function(){return i},X1:function(){return x},XT:function(){return h},Yt:function(){return v},a3:function(){return d},dB:function(){return m},fQ:function(){return p},qf:function(){return u},vi:function(){return g}});var a=s(74738),r=s(85516);let l=a.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({updateProfile:e.mutation({query:e=>({url:"/account",method:"POST",params:{_method:"PATCH"},body:(0,r.D)(e)})}),updatePassword:e.mutation({query:e=>({url:"/account/login-credentials/password",method:"POST",params:{_method:"PATCH"},body:e})}),updateLoginCredentials:e.mutation({query:e=>({url:"/account/login-credentials",method:"POST",params:{_method:"PATCH"},body:e})}),verifyLoginCredentials:e.mutation({query:e=>({url:"/account/login-credentials/verify",method:"POST",params:{_method:"PATCH"},body:e})}),fetchMemberCertificates:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/certificates",method:"GET",params:e}},providesTags:["account"]}),fetchMemberCourses:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/courses",method:"GET",params:e}},providesTags:["account","account.courses"]}),fetchMemberProducts:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/products",method:"GET",params:e}},providesTags:["account"]}),fetchMemberAppointments:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/appointments",method:"GET",params:e}},providesTags:["account","appointments.index"]}),fetchMemberUpcomingAppointments:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/upcoming-appointments",method:"GET",params:e}},transformResponse:e=>e.data}),fetchMemberStats:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/stats",method:"GET",params:e}},transformResponse:e=>e.data}),fetchMemberQuizzes:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/quizzes",method:"GET",params:e}}}),fetchMemberAssignments:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/assignments",method:"GET",params:e}}}),fetchMemberRejectedAssignments:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/account/assignments/rejected",method:"GET",params:e}},transformResponse:e=>e.data})})}),{useFetchMemberCertificatesQuery:n,useFetchMemberCoursesQuery:o,useFetchMemberProductsQuery:i,useUpdateProfileMutation:c,useUpdatePasswordMutation:d,useUpdateLoginCredentialsMutation:u,useVerifyLoginCredentialsMutation:m,useFetchMemberAppointmentsQuery:p,useFetchMemberUpcomingAppointmentsQuery:x,useFetchMemberStatsQuery:h,useFetchMemberQuizzesQuery:C,useFetchMemberAssignmentsQuery:f,useFetchMemberRejectedAssignmentsQuery:g,util:{updateQueryData:j,invalidateTags:v}}=l},71831:function(e,t,s){s.d(t,{DU:function(){return i},Kj:function(){return u},Mn:function(){return o},r_:function(){return l},yr:function(){return c}});var a=s(74738);let r=a.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchProducts:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/products",method:"GET",params:e}}}),fetchBestSalesProducts:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/products/best-sales",method:"GET",params:e}}}),fetchProduct:e.query({query:e=>{let{slug:t,...s}=e;return{url:"/products/".concat(t),method:"GET",params:s}},transformResponse:e=>({...e.data,reviews_count:e.data.reviews_count||0,avg_rating:e.data.avg_rating||0})}),fetchInterestingProducts:e.query({query:e=>{let{slug:t,...s}=e;return{url:"/products/".concat(t,"/interesting"),method:"GET",params:s}},transformResponse:e=>e.data}),fetchCoachingSessionAppointments:e.query({query:e=>{let{slug:t,...s}=e;return{url:"/products/".concat(t,"/appointments"),method:"GET",params:s}},transformResponse:e=>e.data})})}),{useFetchProductQuery:l,useFetchBestSalesProductsQuery:n,useFetchInterestingProductsQuery:o,useFetchProductsQuery:i,useLazyFetchCoachingSessionAppointmentsQuery:c,util:{getRunningQueriesThunk:d,updateQueryData:u}}=r,{fetchProduct:m,fetchProducts:p,fetchBestSalesProducts:x}=r.endpoints},89032:function(e,t,s){s.d(t,{F3:function(){return n},Q7:function(){return c},QM:function(){return l},hI:function(){return i},we:function(){return o}});var a=s(74738);let r=a.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchReviews:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/reviews",method:"GET",params:e}}}),createReview:e.mutation({query:e=>({url:"/reviews",method:"POST",body:e})}),updateReview:e.mutation({query:e=>{let{id:t,...s}=e;return{url:"/reviews/".concat(t),method:"POST",params:{_method:"PATCH"},body:s}}}),deleteReview:e.mutation({query:e=>{let{id:t}=e;return{url:"/reviews/".concat(t),method:"POST",params:{_method:"DELETE"}}}})})}),{useFetchReviewsQuery:l,useCreateReviewMutation:n,useUpdateReviewMutation:o,useDeleteReviewMutation:i,util:{updateQueryData:c}}=r},33999:function(e,t,s){s.d(t,{Qq:function(){return n},x1:function(){return l}});var a=s(74738);let r=a.g.injectEndpoints({overrideExisting:!0,endpoints:e=>({fetchTaxonomies:e.query({query:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"/taxonomies",method:"GET",params:e}}}),fetchTaxonomy:e.query({query:e=>({url:"/taxonomies/".concat(e),method:"GET"}),transformResponse:e=>e.data})})}),{useFetchTaxonomiesQuery:l,useFetchTaxonomyQuery:n,util:{getRunningQueriesThunk:o}}=r,{fetchTaxonomies:i,fetchTaxonomy:c}=r.endpoints},49341:function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let a=s(7395);e.exports={content:["./pages/**/*.{js,ts,jsx,tsx,mdx}","./components/**/*.{js,ts,jsx,tsx,mdx}","./app/**/*.{js,ts,jsx,tsx,mdx}","./node_modules/@msaaqcom/abjad/dist/**/*.{js,ts,jsx,tsx}"],theme:{container:{screens:{sm:"540px",md:"720px",lg:"960px",xl:"1140px","2xl":"1320px"}},extend:{screens:{xs:"480px"},typography:{"custom-blockquote":{css:{blockquote:{background:"hsl(var(--abjad-info-50))",fontStyle:"normal !important",textAlign:"start",borderRadius:"8px",border:0,position:"relative"},"[dir='rtl'] blockquote":{padding:"24px 34px 24px 24px"},"[dir='ltr'] blockquote":{padding:"24px 24px 24px 34px"},"blockquote::before":{content:'""',position:"absolute",top:"24px",bottom:"24px",width:"2px",backgroundColor:"hsl(var(--abjad-info))"},"[dir='rtl'] blockquote::before":{right:"0",marginRight:"24px"},"[dir='ltr'] blockquote::before":{left:"0",marginLeft:"24px"},"blockquote::after":{content:'url("/images/double-quotes.svg")',position:"absolute",top:"-16px",bottom:"0"},"[dir='rtl'] blockquote::after":{left:"-24px"},"[dir='ltr'] blockquote::after":{right:"-24px",transform:"rotateY(180deg)"},"blockquote p::before":{content:"none !important"},"blockquote p::after":{content:"none !important"}}}}},typography:{currentColor:{css:{"--tw-prose-body":"currentColor","--tw-prose-headings":"currentColor","--tw-prose-lead":"currentColor","--tw-prose-links":"currentColor","--tw-prose-bold":"currentColor","--tw-prose-counters":"currentColor","--tw-prose-bullets":"currentColor","--tw-prose-hr":"currentColor","--tw-prose-quotes":"currentColor","--tw-prose-quote-borders":"currentColor","--tw-prose-captions":"currentColor","--tw-prose-code":"currentColor","--tw-prose-pre-code":"currentColor","--tw-prose-pre-bg":"currentColor","--tw-prose-th-borders":"currentColor","--tw-prose-td-borders":"currentColor","--tw-prose-invert-body":"currentColor","--tw-prose-invert-headings":"currentColor","--tw-prose-invert-lead":"currentColor","--tw-prose-invert-links":"currentColor","--tw-prose-invert-bold":"currentColor","--tw-prose-invert-counters":"currentColor","--tw-prose-invert-bullets":"currentColor","--tw-prose-invert-hr":"currentColor","--tw-prose-invert-quotes":"currentColor","--tw-prose-invert-quote-borders":"currentColor","--tw-prose-invert-captions":"currentColor","--tw-prose-invert-code":"currentColor","--tw-prose-invert-pre-code":"currentColor","--tw-prose-invert-pre-bg":"currentColor","--tw-prose-invert-th-borders":"currentColor","--tw-prose-invert-td-borders":"currentColor"}}}},plugins:[(0,a.abjad)({themes:e=>{let{light:t,dark:s}=e;return{light:t({}),dark:s({}),custom:{}}}}),s(54863),s(64221)]}},85516:function(e,t,s){s.d(t,{D:function(){return objectToFormData}});function objectToFormData(e){let t=new FormData;return!function appendFormData(e,t,s){null!=t&&("object"!=typeof t||t instanceof Date||t instanceof File?s&&e.append(s,t):Object.keys(t).forEach(a=>{let r=s?"".concat(s,"[").concat(a,"]"):a;appendFormData(e,t[a],r)}))}(t,e),t}}}]);