motiondesk-studio 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/app/assets/bank-banker-chat-B_iF_sFM.js +257 -0
- package/app/assets/bank-business-loan-BFWWaq-c.js +247 -0
- package/app/assets/bank-car-choice-DLE2OVcc.js +229 -0
- package/app/assets/bank-card-freeze-J1JfFmLr.js +281 -0
- package/app/assets/bank-code-never-CQDlq8GN.js +234 -0
- package/app/assets/bank-dark-interlude-DhcdkPP1.js +190 -0
- package/app/assets/bank-digital-JTuIxFOJ.js +1 -0
- package/app/assets/bank-dinner-split-Be1e7DOQ.js +246 -0
- package/app/assets/bank-fast-pay-DoW0ClI6.js +230 -0
- package/app/assets/bank-first-salary-D9WxYgJf.js +212 -0
- package/app/assets/bank-fomo-stop-uEzdT0HP.js +230 -0
- package/app/assets/bank-forex-trip-BHW39y4z.js +205 -0
- package/app/assets/bank-growth-bars-DirAz4xB.js +203 -0
- package/app/assets/bank-holiday-budget-J41dLHwR.js +224 -0
- package/app/assets/bank-invest-B--KJb5m.js +1 -0
- package/app/assets/bank-life-C-4wZKyu.js +1 -0
- package/app/assets/bank-mortgage-papers-DMtx0XsI.js +214 -0
- package/app/assets/bank-new-app-look-CKmeKBU6.js +228 -0
- package/app/assets/bank-one-click-loan-BVhe1AGv.js +223 -0
- package/app/assets/bank-paper-explainer-CD8mPtnJ.js +191 -0
- package/app/assets/bank-pension-compare-BArvoVu7.js +243 -0
- package/app/assets/bank-remote-access-Df8UNpc7.js +257 -0
- package/app/assets/bank-safety-CBkr-iwJ.js +1 -0
- package/app/assets/bank-savings-pocket-B53nO1Z_.js +220 -0
- package/app/assets/bank-share-explained-DCp805RD.js +228 -0
- package/app/assets/bank-small-business-Bc7Ad4GW.js +217 -0
- package/app/assets/bank-student-routine-CnPPhtoV.js +224 -0
- package/app/assets/bank-suspicious-sms-CwOrdi3d.js +229 -0
- package/app/assets/bank-wedding-budget-CDM2kO0R.js +230 -0
- package/app/assets/bank-young-BwV6418l.js +1 -0
- package/app/assets/{catalog-Cdx5nbp0.js → catalog-CDdvrdnk.js} +1 -1
- package/app/assets/{index-D3rEDfqX.js → index-BRse9TUl.js} +4 -4
- package/app/assets/index-b6-Cm4vot4j.js +1 -0
- package/app/assets/index-b7-BLEay8YC.js +1 -0
- package/app/assets/index-b8-Jbh-zOZB.js +1 -0
- package/app/assets/index-b9-caOB8GyX.js +1 -0
- package/app/index.html +1 -1
- package/bin/motiondesk-studio.mjs +8 -1
- package/lib/catalog/hyperframes/bank-banker-chat.html +256 -0
- package/lib/catalog/hyperframes/bank-business-loan.html +246 -0
- package/lib/catalog/hyperframes/bank-car-choice.html +228 -0
- package/lib/catalog/hyperframes/bank-card-freeze.html +280 -0
- package/lib/catalog/hyperframes/bank-code-never.html +233 -0
- package/lib/catalog/hyperframes/bank-dark-interlude.html +189 -0
- package/lib/catalog/hyperframes/bank-dinner-split.html +245 -0
- package/lib/catalog/hyperframes/bank-fast-pay.html +229 -0
- package/lib/catalog/hyperframes/bank-first-salary.html +211 -0
- package/lib/catalog/hyperframes/bank-fomo-stop.html +229 -0
- package/lib/catalog/hyperframes/bank-forex-trip.html +204 -0
- package/lib/catalog/hyperframes/bank-growth-bars.html +202 -0
- package/lib/catalog/hyperframes/bank-holiday-budget.html +223 -0
- package/lib/catalog/hyperframes/bank-mortgage-papers.html +213 -0
- package/lib/catalog/hyperframes/bank-new-app-look.html +227 -0
- package/lib/catalog/hyperframes/bank-one-click-loan.html +222 -0
- package/lib/catalog/hyperframes/bank-paper-explainer.html +190 -0
- package/lib/catalog/hyperframes/bank-pension-compare.html +242 -0
- package/lib/catalog/hyperframes/bank-remote-access.html +256 -0
- package/lib/catalog/hyperframes/bank-savings-pocket.html +219 -0
- package/lib/catalog/hyperframes/bank-share-explained.html +227 -0
- package/lib/catalog/hyperframes/bank-small-business.html +216 -0
- package/lib/catalog/hyperframes/bank-student-routine.html +223 -0
- package/lib/catalog/hyperframes/bank-suspicious-sms.html +228 -0
- package/lib/catalog/hyperframes/bank-wedding-budget.html +229 -0
- package/lib/catalog/hyperframes/index-b6.json +146 -0
- package/lib/catalog/hyperframes/index-b7.json +121 -0
- package/lib/catalog/hyperframes/index-b8.json +92 -0
- package/lib/catalog/hyperframes/index-b9.json +87 -0
- package/lib/catalog/studio/bank-digital.json +3586 -0
- package/lib/catalog/studio/bank-invest.json +3653 -0
- package/lib/catalog/studio/bank-life.json +3605 -0
- package/lib/catalog/studio/bank-safety.json +3198 -0
- package/lib/catalog/studio/bank-young.json +3426 -0
- package/lib/vercel-render.mjs +16 -1
- package/package.json +30 -7
|
@@ -131,7 +131,7 @@ ${ni(t,i.id)}
|
|
|
131
131
|
"format": "motiondesk-config/v3",
|
|
132
132
|
"title": "...",
|
|
133
133
|
"scenes": [...]
|
|
134
|
-
}`}),d&&(0,U.jsx)(`p`,{className:`md-create-error`,role:`alert`,children:d}),(0,U.jsxs)(`div`,{className:`md-prompts-import-actions`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,disabled:!s.trim(),onClick:x,children:[(0,U.jsx)(Fe,{size:15}),`בניית סרטון מה־JSON`]}),g===`motiondesk-config/v2`&&(0,U.jsx)(`button`,{type:`button`,className:`md-btn secondary`,onClick:S,children:`שדרוג v2 ל־v3`})]}),(0,U.jsxs)(`div`,{className:`md-prompts-note`,children:[(0,U.jsx)(de,{size:16}),(0,U.jsx)(`span`,{children:`אין צורך בחיבור רשת בזמן עריכה. מודל השפה פועל מחוץ לאפליקציה; ייבוא v1 ו־v2 ממשיך לעבוד, ואפשר לשדרג v2 במפורש.`})]})]})]})]})}var ai=`modulepreload`,oi=function(e,t){return new URL(e,t).href},si={},ci=function(e){return e.pathname.endsWith(`.css`)},li=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},W=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=oi(t,n);let r=s(t),i=ci(r);return li(si,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ai,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ui=`premium.launch.apps.tech.finance.realestate.retail.fashion.beauty.events.music.celebrations.culture.education.kids.family.health.sports.gaming.hr.services.legal.business.data.social.food.travel.auto.pets.nonprofit.community`.split(`.`),di=Object.assign({"../catalog/studio/apps.json":()=>W(()=>import(`./apps-DwnIwigQ.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/auto.json":()=>W(()=>import(`./auto-CJsCPj1R.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/beauty.json":()=>W(()=>import(`./beauty-DgeCsQdf.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/business.json":()=>W(()=>import(`./business-DfyVziqj.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/celebrations.json":()=>W(()=>import(`./celebrations-CkfTGLEK.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/community.json":()=>W(()=>import(`./community-BV13F-Wp.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/culture.json":()=>W(()=>import(`./culture-DpL14_5r.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/data.json":()=>W(()=>import(`./data-DgES5FIF.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/education.json":()=>W(()=>import(`./education-CGTOg3_0.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/events.json":()=>W(()=>import(`./events-kZ6HshfK.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/family.json":()=>W(()=>import(`./family-De56hVSo.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/fashion.json":()=>W(()=>import(`./fashion-DbGAD96W.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/finance.json":()=>W(()=>import(`./finance-BUdlKAud.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/food.json":()=>W(()=>import(`./food-CiEyQAd1.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/gaming.json":()=>W(()=>import(`./gaming-DnzPj6Uv.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/health.json":()=>W(()=>import(`./health-CbyTqvSM.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/hr.json":()=>W(()=>import(`./hr-2i-f-S-M.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/kids.json":()=>W(()=>import(`./kids-BNwXKe4O.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/launch.json":()=>W(()=>import(`./launch-DqkMfeFI.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/legal.json":()=>W(()=>import(`./legal-Caoeh9dp.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/music.json":()=>W(()=>import(`./music-hbnVS8dK.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/nonprofit.json":()=>W(()=>import(`./nonprofit-DK7XI33A.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/pets.json":()=>W(()=>import(`./pets-Dp8EeTjS.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/premium.json":()=>W(()=>import(`./premium-Cy680sWT.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/realestate.json":()=>W(()=>import(`./realestate-BXW-rsfP.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/retail.json":()=>W(()=>import(`./retail-D-XWCWed.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/services.json":()=>W(()=>import(`./services-DRPQcCXX.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/social.json":()=>W(()=>import(`./social-CNpE0GKG.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/sports.json":()=>W(()=>import(`./sports-DyBfpPm5.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/tech.json":()=>W(()=>import(`./tech-BaRjeFZ0.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/travel.json":()=>W(()=>import(`./travel-DoqS5vPB.js`).then(e=>e.default),[],import.meta.url)}),fi=Object.assign({"../catalog/hyperframes/index-b2.json":()=>W(()=>import(`./index-b2-CMdBrCiU.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b3.json":()=>W(()=>import(`./index-b3-egAjkT9z.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b4.json":()=>W(()=>import(`./index-b4-Cnj_xde0.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b5.json":()=>W(()=>import(`./index-b5-CoZgwX8-.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index.json":()=>W(()=>import(`./hyperframes-BM7eWgx2.js`).then(e=>e.default),[],import.meta.url)}),pi=Object.assign({"../catalog/hyperframes/ai-assistant.html":()=>W(()=>import(`./ai-assistant-DOEK1wrr.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/annual-report.html":()=>W(()=>import(`./annual-report-C59pnbh2.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/app-tour.html":()=>W(()=>import(`./app-tour-B8525Qt1.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/balloon-party.html":()=>W(()=>import(`./balloon-party-BDWzrF-Z.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/boarding-pass.html":()=>W(()=>import(`./boarding-pass-i17EemsZ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/chalk-menu.html":()=>W(()=>import(`./chalk-menu-CQSqwxNP.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/claim-steps.html":()=>W(()=>import(`./claim-steps-BNFeoYYZ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/clinic-booking.html":()=>W(()=>import(`./clinic-booking-CvQEpBWn.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/concert-poster.html":()=>W(()=>import(`./concert-poster-iUOM-elw.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/course-syllabus.html":()=>W(()=>import(`./course-syllabus-CnM_03XP.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/cyber-shield.html":()=>W(()=>import(`./cyber-shield-B_6oatye.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/dev-hiring-code.html":()=>W(()=>import(`./dev-hiring-code-Bg00S1Iz.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/donation-meter.html":()=>W(()=>import(`./donation-meter-C3wuRmFA.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/editorial-mag.html":()=>W(()=>import(`./editorial-mag-DsTVzQMx.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/ev-charge.html":()=>W(()=>import(`./ev-charge-KaMIQd_s.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/event-announce.html":()=>W(()=>import(`./event-announce-cLmuvt45.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/finance-growth.html":()=>W(()=>import(`./finance-growth-CYgFE0RC.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/fitness-rings-streak.html":()=>W(()=>import(`./fitness-rings-streak-Cp7n4zq_.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/flash-sale.html":()=>W(()=>import(`./flash-sale-Tc0Jw34H.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/flipclock-countdown.html":()=>W(()=>import(`./flipclock-countdown-BkrU9ZhF.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/floorplan-linedraw.html":()=>W(()=>import(`./floorplan-linedraw-B4ZwEDv3.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/glass-product.html":()=>W(()=>import(`./glass-product-CsUqplIf.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/glossy-cosmetics.html":()=>W(()=>import(`./glossy-cosmetics-DBb-YonD.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/gold-couture.html":()=>W(()=>import(`./gold-couture-e6c5nsVY.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/gradient-blobs.html":()=>W(()=>import(`./gradient-blobs-Daiu9eFf.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/graduation-day.html":()=>W(()=>import(`./graduation-day-vdz-kGI1.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/headline-news-ticker.html":()=>W(()=>import(`./headline-news-ticker-GgZ_nRXK.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/hiring-team.html":()=>W(()=>import(`./hiring-team-Bia3GQaH.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/holiday-greeting.html":()=>W(()=>import(`./holiday-greeting-B7TFl0_5.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/iso-product-3d.html":()=>W(()=>import(`./iso-product-3d-DQT1lHDq.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/itinerary-map-pins.html":()=>W(()=>import(`./itinerary-map-pins-BTX0ZebL.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/key-handover.html":()=>W(()=>import(`./key-handover-DuIj4oKe.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/kinetic-launch.html":()=>W(()=>import(`./kinetic-launch-D2rSnewM.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/legal-trust.html":()=>W(()=>import(`./legal-trust-T01BmIDB.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/level-up.html":()=>W(()=>import(`./level-up-CBXf6nj2.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/logo-sting.html":()=>W(()=>import(`./logo-sting-Uf0nckUQ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/manifesto-quote.html":()=>W(()=>import(`./manifesto-quote-DCIONyzh.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/match-day.html":()=>W(()=>import(`./match-day-p25bzqbq.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/match-score.html":()=>W(()=>import(`./match-score-CSZ4Tx4B.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/neighborhood-map.html":()=>W(()=>import(`./neighborhood-map-BpbZiy-v.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/neon-grid.html":()=>W(()=>import(`./neon-grid-Bo0xfsL6.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/org-chart-hiring.html":()=>W(()=>import(`./org-chart-hiring-tGX1UpiJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/paper-collage.html":()=>W(()=>import(`./paper-collage-CK-XODvZ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/paw-adopt.html":()=>W(()=>import(`./paw-adopt-D5hKgsaL.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/playful-blocks.html":()=>W(()=>import(`./playful-blocks-BGXW4vra.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/podcast-waveform-promo.html":()=>W(()=>import(`./podcast-waveform-promo-D-h_ydpJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/price-grid.html":()=>W(()=>import(`./price-grid-DbYGPlJt.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/quote-carousel-bold.html":()=>W(()=>import(`./quote-carousel-bold-D5fpKgSS.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/recipe-ingredients.html":()=>W(()=>import(`./recipe-ingredients-B_bSw3x_.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/retro-80s.html":()=>W(()=>import(`./retro-80s-CCZc9S6x.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/roadmap-timeline.html":()=>W(()=>import(`./roadmap-timeline-BpbNdfCr.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/saas-dashboard.html":()=>W(()=>import(`./saas-dashboard-s-2gR3AN.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/sale-wheel-24h.html":()=>W(()=>import(`./sale-wheel-24h-CsiOja2Z.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/save-the-date.html":()=>W(()=>import(`./save-the-date-C6O8fH8f.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/split-wipe-before-after.html":()=>W(()=>import(`./split-wipe-before-after-Lg-NbF0V.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/stats-dashboard.html":()=>W(()=>import(`./stats-dashboard-CxxFtNfj.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/stock-portfolio.html":()=>W(()=>import(`./stock-portfolio-DFpeHEjJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/swiss-grid.html":()=>W(()=>import(`./swiss-grid-jfcgySaJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/travel-route.html":()=>W(()=>import(`./travel-route-DUPXi7Qa.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/tutorial-steps.html":()=>W(()=>import(`./tutorial-steps-Ep2JeqXu.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/wallet-card-transactions.html":()=>W(()=>import(`./wallet-card-transactions-DtI9Usn9.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/wedding-invite.html":()=>W(()=>import(`./wedding-invite-BhgqMwO7.js`).then(e=>e.default),[],import.meta.url)}),mi=null;function hi(){return mi??=(async()=>{let[e,t]=await Promise.all([Promise.all(Object.values(di).map(e=>e())),Promise.all(Object.values(fi).map(e=>e()))]),n=[],r=[];for(let t of e){n.push(t.category);for(let e of t.templates)r.push({...e,kind:`motion`,category:t.category.id})}let i=new Set;for(let e of t)for(let t of e)i.has(t.id)||(i.add(t.id),r.push({...t,kind:`hyperframes`}));return n.sort((e,t)=>(ui.indexOf(e.id)+1||99)-(ui.indexOf(t.id)+1||99)),{categories:n,templates:r}})().catch(e=>{throw mi=null,e}),mi}var gi=new Map;async function _i(e){let t=gi.get(e.id);if(t)return t;let n=pi[`../catalog/hyperframes/${e.file}`];if(!n)throw Error(`קובץ התבנית לא נמצא`);let r=await n();return gi.set(e.id,r),r}var vi=e=>e.kind===`motion`?e.config.aspectRatio??`16:9`:e.width===e.height?`1:1`:e.width>e.height?`16:9`:`9:16`,yi=e=>e.kind===`motion`?e.config.scenes.reduce((e,t)=>e+(t.duration??4),0):e.duration,bi={"shield-check":`M20 13c0 5 -3.5 7.5 -7.66 8.95a1 1 0 0 1 -.67 -.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1 -1c2 0 4.5 -1.2 6.24 -2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1 z M9 12l2 2 4 -4`,wallet:`M19 7V4a1 1 0 0 0 -1 -1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1 M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1 -1v-4`,"credit-card":`M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2Z M2 10L22 10`,"piggy-bank":`M19 5c-1.5 0 -2.8 1.4 -3 2 -3.5 -1.5 -11 -.3 -11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1 -.5 1.7 -1 2 -2h2v-4h-2c0 -1 -.5 -1.5 -1 -2V5 z M2 9v1c0 1.1 .9 2 2 2h1 M16 11h.01`,house:`M15 21v-8a1 1 0 0 0 -1 -1h-4a1 1 0 0 0 -1 1v8 M3 10a2 2 0 0 1 .709 -1.528l7 -5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1 -2 2H5a2 2 0 0 1 -2 -2 z`,car:`M19 17h2c.6 0 1 -.4 1 -1v-3c0 -.9 -.7 -1.7 -1.5 -1.9C18.7 10.6 16 10 16 10s-1.3 -1.4 -2.2 -2.3c-.5 -.4 -1.1 -.7 -1.8 -.7H5c-.6 0 -1.1 .4 -1.4 .9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6 .4 1 1 1h2 M5 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M9 17h6 M15 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,plane:`M17.8 19.2 16 11l3.5 -3.5C21 6 21.5 4 21 3c-1 -.5 -3 0 -4.5 1.5L13 8 4.8 6.2c-.5 -.1 -.9 .1 -1.1 .5l-.3 .5c-.2 .5 -.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1 -1v-3l3 -2 3.5 5.3c.3 .4 .8 .5 1.3 .3l.5 -.2c.4 -.3 .6 -.7 .5 -1.2 z`,smartphone:`M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-16a2 2 0 0 1 2 -2Z M12 18h.01`,banknote:`M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2Z M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M6 12h.01M18 12h.01`,coins:`M2 8a6 6 0 1 0 12 0a6 6 0 1 0 -12 0 M18.09 10.37A6 6 0 1 1 10.34 18 M7 6h1v4 M16.71 13.88l.7 .71 -2.82 2.82`,"chart-line":`M3 3v16a2 2 0 0 0 2 2h16 M19 9l-5 5 -4 -4 -3 3`,"chart-column":`M3 3v16a2 2 0 0 0 2 2h16 M18 17V9 M13 17V5 M8 17v-3`,"trending-up":`M22 7L13.5 15.5L8.5 10.5L2 17 M16 7L22 7L22 13`,percent:`M19 5L5 19 M4 6.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0 M15 17.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0`,gift:`M4 8h16a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1Z M12 8v13 M19 12v7a2 2 0 0 1 -2 2H7a2 2 0 0 1 -2 -2v-7 M7.5 8a2.5 2.5 0 0 1 0 -5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5 -5 2.5 2.5 0 0 1 0 5`,star:`M11.525 2.295a.53 .53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166 .756a.53 .53 0 0 1 .294 .904l-3.736 3.638a2.123 2.123 0 0 0 -.611 1.878l.882 5.14a.53 .53 0 0 1 -.771 .56l-4.618 -2.428a2.122 2.122 0 0 0 -1.973 0L6.396 21.01a.53 .53 0 0 1 -.77 -.56l.881 -5.139a2.122 2.122 0 0 0 -.611 -1.879L2.16 9.795a.53 .53 0 0 1 .294 -.906l5.165 -.755a2.122 2.122 0 0 0 1.597 -1.16 z`,heart:`M19 14c1.49 -1.46 3 -3.21 3 -5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0 -3 .5 -4.5 2 -1.5 -1.5 -2.74 -2 -4.5 -2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7 Z`,check:`M20 6 9 17l-5 -5`,"circle-check":`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M9 12l2 2 4 -4`,clock:`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M12 6L12 12L16 14`,calendar:`M8 2v4 M16 2v4 M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2Z M3 10h18`,bell:`M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3 -2 3 -9 M10.3 21a1.94 1.94 0 0 0 3.4 0`,lock:`M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-7a2 2 0 0 1 2 -2Z M7 11V7a5 5 0 0 1 10 0v4`,user:`M19 21v-2a4 4 0 0 0 -4 -4H9a4 4 0 0 0 -4 4v2 M8 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`,users:`M16 21v-2a4 4 0 0 0 -4 -4H6a4 4 0 0 0 -4 4v2 M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0 M22 21v-2a4 4 0 0 0 -3 -3.87 M16 3.13a4 4 0 0 1 0 7.75`,briefcase:`M16 20V4a2 2 0 0 0 -2 -2h-4a2 2 0 0 0 -2 2v16 M4 6h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2Z`,"graduation-cap":`M21.42 10.922a1 1 0 0 0 -.019 -1.838L12.83 5.18a2 2 0 0 0 -1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0 z M22 10v6 M6 12.5V16a6 3 0 0 0 12 0v-3.5`,"building-2":`M6 22V4a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v18 Z M6 12H4a2 2 0 0 0 -2 2v6a2 2 0 0 0 2 2h2 M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-2 M10 6h4 M10 10h4 M10 14h4 M10 18h4`,landmark:`M3 22L21 22 M6 18L6 11 M10 18L10 11 M14 18L14 11 M18 18L18 11 M12 2L20 7L4 7Z`,"map-pin":`M20 10c0 4.993 -5.539 10.193 -7.399 11.799a1 1 0 0 1 -1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0 M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,send:`M14.536 21.686a.5 .5 0 0 0 .937 -.024l6.5 -19a.496 .496 0 0 0 -.635 -.635l-19 6.5a.5 .5 0 0 0 -.024 .937l7.93 3.18a2 2 0 0 1 1.112 1.11 z M21.854 2.147l-10.94 10.939`,sparkles:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135 -1.582a.5 .5 0 0 1 0 -.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582 -6.135a.5 .5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5 .5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0 -1.437 1.437l-1.582 6.135a.5 .5 0 0 1 -.963 0 z M20 3v4 M22 5h-4 M4 17v2 M5 18H3`,zap:`M4 14a1 1 0 0 1 -.78 -1.63l9.9 -10.2a.5 .5 0 0 1 .86 .46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5 .5 0 0 1 -.86 -.46l1.92 -6.02A1 1 0 0 0 11 14 z`,rocket:`M4.5 16.5c-1.5 1.26 -2 5 -2 5s3.74 -.5 5 -2c.71 -.84 .7 -2.13 -.09 -2.91a2.18 2.18 0 0 0 -2.91 -.09 z M12 15l-3 -3a22 22 0 0 1 2 -3.95A12.88 12.88 0 0 1 22 2c0 2.72 -.78 7.5 -6 11a22.35 22.35 0 0 1 -4 2 z M9 12H4s.55 -3.03 2 -4c1.62 -1.08 5 0 5 0 M12 15v5s3.03 -.55 4 -2c1.08 -1.62 0 -5 0 -5`,target:`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M6 12a6 6 0 1 0 12 0a6 6 0 1 0 -12 0 M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,trophy:`M6 9H4.5a2.5 2.5 0 0 1 0 -5H6 M18 9h1.5a2.5 2.5 0 0 0 0 -5H18 M4 22h16 M10 14.66V17c0 .55 -.47 .98 -.97 1.21C7.85 18.75 7 20.24 7 22 M14 14.66V17c0 .55 .47 .98 .97 1.21C16.15 18.75 17 20.24 17 22 M18 2H6v7a6 6 0 0 0 12 0V2 Z`,umbrella:`M22 12a10.06 10.06 1 0 0 -20 0 Z M12 12v8a2 2 0 0 0 4 0 M12 2v1`,sun:`M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0 M12 2v2 M12 20v2 M4.93 4.93l1.41 1.41 M17.66 17.66l1.41 1.41 M2 12h2 M20 12h2 M6.34 17.66l-1.41 1.41 M19.07 4.93l-1.41 1.41`,leaf:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5 -4.78 10 -10 10 Z M2 21c0 -3 1.85 -5.36 5.08 -6C9.5 14.52 12 13 13 12`,receipt:`M4 2v20l2 -1 2 1 2 -1 2 1 2 -1 2 1 2 -1 2 1V2l-2 1 -2 -1 -2 1 -2 -1 -2 1 -2 -1 -2 1 Z M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8 M12 17.5v-11`,"shopping-cart":`M7 21a1 1 0 1 0 2 0a1 1 0 1 0 -2 0 M18 21a1 1 0 1 0 2 0a1 1 0 1 0 -2 0 M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95 -1.57l1.65 -7.43H5.12`,"shopping-bag":`M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2 -2V6l-3 -4 Z M3 6h18 M16 10a4 4 0 0 1 -8 0`,"hand-coins":`M11 15h2a2 2 0 1 0 0 -4h-3c-.6 0 -1.1 .2 -1.4 .6L3 17 M7 21l1.6 -1.4c.3 -.4 .8 -.6 1.4 -.6h4c1.1 0 2.1 -.4 2.8 -1.2l4.6 -4.4a2 2 0 0 0 -2.75 -2.91l-4.2 3.9 M2 16l6 6 M13.1 9a2.9 2.9 0 1 0 5.8 0a2.9 2.9 0 1 0 -5.8 0 M3 5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,handshake:`M11 17l2 2a1 1 0 1 0 3 -3 M14 14l2.5 2.5a1 1 0 1 0 3 -3l-3.88 -3.88a3 3 0 0 0 -4.24 0l-.88 .88a1 1 0 1 1 -3 -3l2.81 -2.81a5.79 5.79 0 0 1 7.06 -.87l.47 .28a2 2 0 0 0 1.42 .25L21 4 M21 3l1 11h-2 M3 3 2 14l6.5 6.5a1 1 0 1 0 3 -3 M3 4h8`,key:`M15.5 7.5l2.3 2.3a1 1 0 0 0 1.4 0l2.1 -2.1a1 1 0 0 0 0 -1.4L19 4 M21 2l-9.6 9.6 M2 15.5a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0`,"message-circle":`M7.9 20A9 9 0 1 0 4 16.1L2 22 Z`,phone:`M22 16.92v3a2 2 0 0 1 -2.18 2 19.79 19.79 0 0 1 -8.63 -3.07 19.5 19.5 0 0 1 -6 -6 19.79 19.79 0 0 1 -3.07 -8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1 -.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27 -1.27a2 2 0 0 1 2.11 -.45 12.84 12.84 0 0 0 2.81 .7A2 2 0 0 1 22 16.92 z`,mail:`M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2Z M22 7l-8.97 5.7a1.94 1.94 0 0 1 -2.06 0L2 7`,search:`M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0 M21 21l-4.3 -4.3`,settings:`M12.22 2h-.44a2 2 0 0 0 -2 2v.18a2 2 0 0 1 -1 1.73l-.43 .25a2 2 0 0 1 -2 0l-.15 -.08a2 2 0 0 0 -2.73 .73l-.22 .38a2 2 0 0 0 .73 2.73l.15 .1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1 -1 1.74l-.15 .09a2 2 0 0 0 -.73 2.73l.22 .38a2 2 0 0 0 2.73 .73l.15 -.08a2 2 0 0 1 2 0l.43 .25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2 -2v-.18a2 2 0 0 1 1 -1.73l.43 -.25a2 2 0 0 1 2 0l.15 .08a2 2 0 0 0 2.73 -.73l.22 -.39a2 2 0 0 0 -.73 -2.73l-.15 -.08a2 2 0 0 1 -1 -1.74v-.5a2 2 0 0 1 1 -1.74l.15 -.09a2 2 0 0 0 .73 -2.73l-.22 -.38a2 2 0 0 0 -2.73 -.73l-.15 .08a2 2 0 0 1 -2 0l-.43 -.25a2 2 0 0 1 -1 -1.73V4a2 2 0 0 0 -2 -2 z M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,baby:`M9 12h.01 M15 12h.01 M10 16c.5 .3 1.2 .5 2 .5s1.5 -.2 2 -.5 M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1 -17.6 0 2 2 0 0 1 0 -3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5 -2 2.5c-.8 0 -1.5 -.4 -1.5 -1`,stethoscope:`M11 2v2 M5 2v2 M5 3H4a2 2 0 0 0 -2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0 -2 -2h-1 M8 15a6 6 0 0 0 12 0v-3 M18 10a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,globe:`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0 -20 M2 12h20`,wifi:`M12 20h.01 M2 8.82a15 15 0 0 1 20 0 M5 12.859a10 10 0 0 1 14 0 M8.5 16.429a5 5 0 0 1 7 0`,"qr-code":`M4 3h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1Z M17 3h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1Z M4 16h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1Z M21 16h-3a2 2 0 0 0 -2 2v3 M21 21v.01 M12 7v3a2 2 0 0 1 -2 2H7 M3 12h.01 M12 3h.01 M12 16v.01 M16 12h1 M21 12v.01 M12 21v-1`,"scan-face":`M3 7V5a2 2 0 0 1 2 -2h2 M17 3h2a2 2 0 0 1 2 2v2 M21 17v2a2 2 0 0 1 -2 2h-2 M7 21H5a2 2 0 0 1 -2 -2v-2 M8 14s1.5 2 4 2 4 -2 4 -2 M9 9h.01 M15 9h.01`,fingerprint:`M12 10a2 2 0 0 0 -2 2c0 1.02 -.1 2.51 -.26 4 M14 13.12c0 2.38 0 6.38 -1 8.88 M17.29 21.02c.12 -.6 .43 -2.3 .5 -3.02 M2 12a10 10 0 0 1 18 -6 M2 16h.01 M21.8 16c.2 -2 .131 -5.354 0 -6 M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34 -2 M8.65 22c.21 -.66 .45 -1.32 .57 -2 M9 6.8a6 6 0 0 1 9 5.2v2`,"arrow-left-right":`M8 3 4 7l4 4 M4 7h16 M16 21l4 -4 -4 -4 M20 17H4`,repeat:`M17 2l4 4 -4 4 M3 11v-1a4 4 0 0 1 4 -4h14 M7 22l-4 -4 4 -4 M21 13v1a4 4 0 0 1 -4 4H3`,timer:`M10 2L14 2 M12 14L15 11 M4 14a8 8 0 1 0 16 0a8 8 0 1 0 -16 0`,hourglass:`M5 22h14 M5 2h14 M17 22v-4.172a2 2 0 0 0 -.586 -1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22 M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414 -4.414A2 2 0 0 0 17 6.172V2`,"badge-percent":`M3.85 8.62a4 4 0 0 1 4.78 -4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1 -4.77 4.78 4 4 0 0 1 -6.75 0 4 4 0 0 1 -4.78 -4.77 4 4 0 0 1 0 -6.76 Z M15 9l-6 6 M9 9h.01 M15 15h.01`,"party-popper":`M5.8 11.3 2 22l10.7 -3.79 M4 3h.01 M22 8h.01 M15 2h.01 M22 20h.01 M22 2l-2.24 .75a2.9 2.9 0 0 0 -1.96 3.12c.1 .86 -.57 1.63 -1.45 1.63h-.38c-.86 0 -1.6 .6 -1.76 1.44L14 10 M22 13l-.82 -.33c-.86 -.34 -1.82 .2 -1.98 1.11c-.11 .7 -.72 1.22 -1.43 1.22H17 M11 2l.33 .82c.34 .86 -.2 1.82 -1.11 1.98C9.52 4.9 9 5.52 9 6.23V7 M11 13c1.93 1.93 2.83 4.17 2 5 -.83 .83 -3.07 -.07 -5 -2 -1.93 -1.93 -2.83 -4.17 -2 -5 .83 -.83 3.07 .07 5 2 Z`,ticket:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2 -2v-2a3 3 0 0 1 0 -6V7a2 2 0 0 0 -2 -2H4a2 2 0 0 0 -2 2 Z M13 5v2 M13 17v2 M13 11v2`,tag:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0 -2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58 -6.58a2.426 2.426 0 0 0 0 -3.42 z M7 7.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0`,store:`M2 7l4.41 -4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42 .59L22 7 M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-8 M15 22v-4a2 2 0 0 0 -2 -2h-2a2 2 0 0 0 -2 2v4 M2 7h20 M22 7v3a2 2 0 0 1 -2 2a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1 -2 -2V7`,package:`M11 21.73a2 2 0 0 0 2 0l7 -4A2 2 0 0 0 21 16V8a2 2 0 0 0 -1 -1.73l-7 -4a2 2 0 0 0 -2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73 z M12 22V12 M3.3 7l7.703 4.734a2 2 0 0 0 1.994 0L20.7 7 M7.5 4.27l9 5.15`,truck:`M14 18V6a2 2 0 0 0 -2 -2H4a2 2 0 0 0 -2 2v11a1 1 0 0 0 1 1h2 M15 18H9 M19 18h2a1 1 0 0 0 1 -1v-3.65a1 1 0 0 0 -.22 -.624l-3.48 -4.35A1 1 0 0 0 17.52 8H14 M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,bike:`M15 17.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0 M2 17.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0 M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0 M12 17.5V14l-3 -3 4 -3 2 3h2`,bus:`M8 6v6 M15 6v6 M2 12h19.6 M18 18h3s.5 -1.7 .8 -2.8c.1 -.4 .2 -.8 .2 -1.2 0 -.4 -.1 -.8 -.2 -1.2l-1.4 -5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0 -2 2v10h3 M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M9 18h5 M14 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,"train-front":`M8 3.1V7a4 4 0 0 0 8 0V3.1 M9 15l-1 -1 M15 15l1 -1 M9 19c-2.8 0 -5 -2.2 -5 -5v-4a8 8 0 0 1 16 0v4c0 2.8 -2.2 5 -5 5 Z M8 19l-2 3 M16 19l2 3`,shield:`M20 13c0 5 -3.5 7.5 -7.66 8.95a1 1 0 0 1 -.67 -.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1 -1c2 0 4.5 -1.2 6.24 -2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1 z`,lightbulb:`M15 14c.2 -1 .7 -1.7 1.5 -2.5 1 -.9 1.5 -2.2 1.5 -3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5 .7 .7 1.3 1.5 1.5 2.5 M9 18h6 M10 22h4`,"thumbs-up":`M7 10v12 M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2h2.76a2 2 0 0 0 1.79 -1.11L12 2a3.13 3.13 0 0 1 3 3.88 Z`,"circle-dollar-sign":`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8 M12 18V6`},xi=Object.keys(bi),Si=[`rtl`,`ltr`],Ci=[`sequence`,`beats`,`together`],wi=[`off`,`subtle`,`lively`],Ti=[`direction`,`build`,`life`,`fixes`],Ei=[`icon`,`icons`,`build`,`life`],Di=(e,t)=>{throw Error(`${e}: ${t}`)},Oi=e=>!!e&&typeof e==`object`&&!Array.isArray(e),ki=(e,t,n)=>t.includes(e)?e:Di(n,`ערך לא נתמך (${t.join(` / `)})`),Ai=(e,t)=>typeof e==`string`&&e in bi?e:Di(t,`אייקון לא מוכר. אפשריים: ${xi.join(`, `)}`);function ji(e){if(!Oi(e))return Di(`config`,`נדרש אובייקט`);e.format!==`motiondesk-config/v4`&&Di(`format`,`נדרש "motiondesk-config/v4"`);let t={direction:e.direction===void 0?`rtl`:ki(e.direction,Si,`direction`),build:e.build===void 0?`sequence`:ki(e.build,Ci,`build`),life:e.life===void 0?`subtle`:ki(e.life,wi,`life`),fixes:e.fixes===void 0?!0:typeof e.fixes==`boolean`?e.fixes:Di(`fixes`,`נדרש true/false`)};Array.isArray(e.scenes)||Di(`scenes`,`נדרשת רשימת סצנות`);let n=e.scenes.map((e,t)=>{if(!Oi(e))return Di(`scenes.${t}`,`נדרש אובייקט`);let n=e,r=`scenes.${t}`;return n.icon!==void 0&&Ai(n.icon,`${r}.icon`),n.icons!==void 0&&((!Array.isArray(n.icons)||n.icons.length<1||n.icons.length>8)&&Di(`${r}.icons`,`נדרשים 1–8 אייקונים`),n.icons.forEach((e,t)=>Ai(e,`${r}.icons.${t}`))),n.build!==void 0&&ki(n.build,Ci,`${r}.build`),n.life!==void 0&&ki(n.life,wi,`${r}.life`),n.background!==void 0&&n.background!==`aurora`&&![`solid`,`gradient`,`grid`,`dots`,`motif`].includes(n.background)&&Di(`${r}.background`,`ערך לא נתמך`),n}),r={};for(let[t,n]of Object.entries(e))Ti.includes(t)||(r[t]=n);r.format=`motiondesk-config/v3`;let i=e.aspectRatio??`16:9`;return r.scenes=n.map(e=>{let n={};for(let[t,r]of Object.entries(e))Ei.includes(t)||(n[t]=r);return n.background===`aurora`&&(n.background=`solid`),t.fixes&&i===`16:9`&&(n.type===`phone`&&n.variant!==`split`&&(n.variant=`split`),n.type===`compare`&&n.variant===`split`&&(n.variant=`stacked`)),n}),{config:e,v3:It(r),options:t}}var Mi=new Set([`מעבר גוון`,`רשת אנכית`,`רשת אופקית`,`טבעת ראשונה`,`טבעת שנייה`,`קו מערכת`,`מספר סצנה`,`ציר סצנה`,`קצב סצנה`,`כותרת`,`כותרת משנה`]),Ni=e=>Mi.has(e.name)||/^רשת נקודות \d+$/.test(e.name)||/^אור סביבה \d+$/.test(e.name),Pi={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};function Fi(e){let t=e.match(/[a-zA-Z]|-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/g)??[],n=[],r=0,i=``;for(;r<t.length;){/[a-zA-Z]/.test(t[r])&&(i=t[r++]);let e=Pi[i.toUpperCase()];if(e===void 0)throw Error(`path command ${i}`);if(e===0){n.push({cmd:i,args:[]});continue}let a=t.slice(r,r+e).map(Number);if(a.length<e)break;r+=e,n.push({cmd:i,args:a}),i===`M`?i=`L`:i===`m`&&(i=`l`)}return n}var Ii=e=>String(Math.round(e*1e3)/1e3),Li=e=>e.map(e=>e.cmd+e.args.map(Ii).join(` `)).join(` `);function Ri(e,t,n=0,r=0){return Li(Fi(e).map(({cmd:e,args:i})=>{let a=e===e.toUpperCase(),o=e.toUpperCase();return{cmd:e,args:i.map((e,i)=>{if(o===`A`&&(i===2||i===3||i===4))return e;let s=e*t;if(!a)return s;let c=o===`H`?!0:o===`V`?!1:o===`A`?i===5||i===0:i%2==0;return o===`A`&&i<2?s:s+(c?n:r)})}}))}function zi(e,t){return Li(Fi(e).map(({cmd:e,args:n})=>{let r=e===e.toUpperCase(),i=e.toUpperCase();return{cmd:e,args:n.map((e,n)=>{if(i===`A`){if(n===4)return+!e;if(n!==5)return e}else if(i===`V`)return e;else if(i!==`H`&&n%2==1)return e;return r?t-e:-e})}}))}function Bi(e,t){e.x=t-e.x-e.width,e.rotation=-(e.rotation??0),e.rotateY&&=-e.rotateY,e.skewX&&=-e.skewX,e.transformOrigin===`left center`?e.transformOrigin=`right center`:e.transformOrigin===`right center`&&(e.transformOrigin=`left center`),e.textAlign===`left`?e.textAlign=`right`:e.textAlign===`right`&&(e.textAlign=`left`),(e.type===`path`||e.type===`svg`)&&e.pathData&&(e.pathData=zi(e.pathData,e.width));let n=e=>{let t={...e,x:-(e.x??0),rotation:-(e.rotation??0)};return e.rotateY!==void 0&&(t.rotateY=-e.rotateY),e.skewX!==void 0&&(t.skewX=-e.skewX),e.clip&&e.clip.type===`inset`&&(t.clip={...e.clip,left:e.clip.right,right:e.clip.left}),e.clip&&e.clip.type===`circle`&&(t.clip={...e.clip,x:100-e.clip.x}),t};if(e.keyframes&&=e.keyframes.map(n),e.textUnitKeyframes&&=e.textUnitKeyframes.map(n),e.clip&&e.clip.type===`inset`&&(e.clip={...e.clip,left:e.clip.right,right:e.clip.left}),e.children)for(let t of e.children)Bi(t,e.width)}var Vi=new Set([`timeline`,`map-route`,`cards`,`compare`,`bars`,`progress`,`checklist`,`notification-stack`,`chat`]);function Hi(e){if(Ni(e)||/^קו גרף /.test(e.name))return 0;if(/^כרטיס פעולה/.test(e.name))return 99;let t=/ (\d+)$/.exec(e.name);return t?Number(t[1]):0}function Ui(e,t){let n=t|0;for(let t of e)n=Math.imul(n^t.charCodeAt(0),16777619);return n|0}function Wi(e,t,n,r,i,a,o,s=0){let c=i/24;return Rt(`path`,{name:e,x:n,y:r,width:i,height:i,pathData:Ri(bi[t],c),color:a,stroke:a,strokeWidth:Math.max(1.5,2*c),motion:`none`,motionOut:`none`,start:0,duration:o,depth:0,keyframes:[{...Gi(0),reveal:0,opacity:0},{...Gi(Math.min(o*.9,s)),reveal:0,opacity:0},{...Gi(Math.min(o*.95,s+o*.06)),reveal:.05,opacity:1},{...Gi(Math.min(o*.97,s+o*.32)),reveal:1,easing:[.16,.85,.22,1]},{...Gi(o),reveal:1}]})}function Gi(e){return{at:e,x:0,y:0,scaleX:1,scaleY:1,rotation:0,opacity:1}}function Ki(e){let{config:t,v3:n,options:r}=ji(e),i=Ln(n),a={fixes:[],notes:[],coverage:{overall:0,scenes:[]}},o=t.aspectRatio??`16:9`;t.scenes.forEach((e,t)=>{r.fixes&&o===`16:9`&&(e.type===`phone`&&e.variant!==`split`&&a.fixes.push(`scene ${t+1}: phone in 16:9 laid out as "split" (was ${e.variant??`default`})`),e.type===`compare`&&e.variant===`split`&&a.fixes.push(`scene ${t+1}: compare in 16:9 laid out as "stacked"`))});let{width:s,height:c}=i.canvas,l=Math.min(s,c),u=0;return i.scenes.forEach((e,o)=>{let d=t.scenes[o];Ji(e,d,{...r,build:d.build??r.build,life:d.life??r.life},{w:s,h:c,base:l,seed:(n.seed??1)+o*101,beats:(i.beats??[]).map(e=>e-u).filter(t=>t>0&&t<e.duration),report:a,index:o,palette:qi(e)}),u+=e.duration}),i.title=t.title??i.title,a.coverage=ta(i),{project:i,report:a}}function qi(e){return{bg:e.background}}function Ji(e,t,n,r){let i=e.duration,{base:a}=r,o=e.layers,s=e=>o.find(t=>t.name===e),c=s(`קצב סצנה`)?.color??`#ffffff`,l=s(`קו מערכת`)?.color??`#ffffff`,u=o.filter(e=>!Ni(e));if(n.fixes){if(t.type===`confetti`){let e=s(`חותם חגיגה`),t=s(`חותם`);if(e&&t){t.textUnitColors=void 0,t.color=Dn(e.color,`#ffffff`,`#101216`),t.keyframes=e.keyframes?.map(e=>({...e})),t.splitText=`none`,t.textUnitKeyframes=void 0;let n=o.indexOf(e),i=o.indexOf(t);i<n&&(o.splice(i,1),o.splice(o.indexOf(e)+1,0,t)),r.report.fixes.push(`scene ${r.index+1}: confetti badge label locked to the badge`)}}let e=s(`דיסק תנועה`),n=s(`ליבת דיסק`);e&&n&&e.modifiers?.length&&(n.modifiers=e.modifiers.map(e=>({...e})))}if(n.direction===`rtl`){let e=s(`קצב סצנה`);if(e&&(e.transformOrigin=`right center`),Vi.has(t.type)){let e=u.filter(e=>e.type!==`repeater`);if(e.length){let t=Math.min(...e.map(e=>e.x)),n=Math.max(...e.map(e=>e.x+e.width));for(let r of e)Bi(r,t+n)}}for(let e of o){if(e.type!==`shape`||!e.revealBinding)continue;let t=o.find(t=>t.id===e.revealBinding.layerId),{from:n,to:r}=e.revealBinding,i=t?.keyframes?.filter(e=>typeof e.value==`number`);if(!t||!i?.length||t.start!==e.start)continue;let a=e=>({type:`inset`,top:0,right:0,bottom:0,left:Math.max(0,Math.min(100,(1-(e-n)/(r-n))*100))});e.keyframes=i.map(e=>({...Gi(e.at),opacity:e.opacity??1,clip:a(e.value),easing:e.easing})),e.keyframes[0].opacity=1,delete e.revealBinding}}let d=t.icons??(t.icon?[t.icon]:void 0);if(d){let e=e=>d[Math.min(e,d.length-1)],a=(e,t)=>o.splice(o.indexOf(e)+1,0,t);if(t.type===`cards`)for(let t=1;s(`כרטיס ${t}`);t++){let n=s(`כרטיס ${t}`),o=s(`מספר כרטיס ${t}`),c=Math.min(n.width,n.height)*.24,u=(o?o.x+o.width/2:n.x)>n.x+n.width/2?n.x+n.width*.07:n.x+n.width*.93-c;a(s(`טקסט כרטיס ${t}`)??n,Wi(`אייקון כרטיס ${t}`,e(t-1),u,n.y+n.height*.08,c,Dn(n.color,l,r.palette.bg),i,i*.12))}if(t.type===`checklist`||t.type===`notification-stack`)for(let t=1;s(`סימון ${t}`);t++){let n=s(`סימון ${t}`);s(`התראה ${t}`);let r=Math.min(n.width,n.height)*.9,a=Wi(`אייקון ${t}`,e(t-1),n.x+(n.width-r)/2,n.y+(n.height-r)/2,r,n.color,i,i*.1);o.splice(o.indexOf(n),1,a)}if(t.type===`timeline`)for(let t=1;s(`תחנה ${t}`);t++){let n=s(`תחנה ${t}`),o=n.width*1.9;n.x-=(o-n.width)/2,n.y-=(o-n.height)/2,n.width=o,n.height=o,n.borderRadius=o,a(n,Wi(`אייקון תחנה ${t}`,e(t-1),n.x+o*.22,n.y+o*.22,o*.56,Dn(n.color,r.palette.bg,l),i,i*.1))}if(t.type===`hook`||t.type===`endcard`||t.type===`confetti`){let t=s(`ליבת דיסק`)??s(`חותם חגיגה`);if(t){let n=t.name===`ליבת דיסק`,r=Math.min(t.width,t.height)*(n?.62:.42),o=t.x+(t.width-r)/2,l=n?t.y+(t.height-r)/2:t.y+t.height*.1,u=Wi(`אייקון מרכזי`,e(0),o,l,r,n?c:Dn(t.color,`#ffffff`,`#101216`),i,i*.2);if(t.modifiers&&(u.modifiers=t.modifiers.map(e=>({...e}))),a(t,u),!n){let e=s(`חותם`);e&&(e.y+=t.height*.22,e.height*=.7)}}}if(t.type===`phone`){let t=s(`טלפון`);if(t?.children)for(let r=1;t.children.find(e=>e.name===`כרטיס מסך ${r}`);r++){let a=t.children.find(e=>e.name===`כרטיס מסך ${r}`),o=t.children.find(e=>e.name===`שורת מסך ${r}`),s=a.height*.56,c=n.direction===`rtl`,u=c?a.x+a.width-s-a.height*.22:a.x+a.height*.22;o&&(o.width-=s*1.2,c||(o.x+=s*1.2));let d=Wi(`אייקון מסך ${r}`,e(r-1),u,a.y+(a.height-s)/2,s,o?.color??l,i,i*.3);t.children.splice(t.children.indexOf(o??a)+1,0,d)}}[`big-number`,`counter`,`donut`,`progress`,`coins`,`compare`,`bars`,`line-chart`,`map-route`,`chat`,`kinetic`,`marquee`,`ui-cursor`,`quote`,`freeze`,`logo`].includes(t.type)&&r.report.notes.push(`scene ${r.index+1}: icons are not placed in "${t.type}" scenes (supported: cards, checklist, notification-stack, timeline, phone, hook, endcard, confetti)`)}if(t.background===`aurora`){let e=o.find(e=>/^(כרטיס|אפשרות|התראה|בועה|עמודה) \d+$/.test(e.name)&&e.color!==c)?.color??l;[[.12,.1,.62,c,.2],[.58,.42,.56,e,.16],[.3,.65,.45,c,.12]].forEach(([e,t,n,s,c],l)=>{let u=a*n*1.6,d=Rt(`shape`,{name:`אור סביבה ${l+1}`,x:r.w*e-u*.25,y:r.h*t-u*.25,width:u,height:u,color:s,opacity:c,borderRadius:u,blur:a*.09,motion:`none`,motionOut:`none`,start:0,duration:i,depth:1,keyframes:[{...Gi(0),opacity:0,scaleX:.8,scaleY:.8},{...Gi(Math.min(i*.3,.9))},{...Gi(i),scaleX:1.12,scaleY:1.12,easing:`linear`}],modifiers:[{type:`orbit`,amplitude:a*(.05+l*.015),frequency:.09+l*.03,seed:Ui(`aurora`,r.seed+l)}]});o.splice(l,0,d)})}let f=new Map;for(let e of o){let t=Hi(e);t&&f.set(t,[...f.get(t)??[],e])}let p=n.build!==`together`&&![`bars`,`kinetic`,`marquee`,`line-chart`,`coins`,`confetti`,`counter`,`donut`,`big-number`,`progress`,`ui-cursor`,`hook`,`endcard`,`freeze`,`quote`,`logo`].includes(t.type)&&f.size>1,m=[...f.keys()].sort((e,t)=>e-t),h=new Map;if(p){let e=m.filter(e=>e!==99),a=e.length,o=Math.min(.75,i*.16),s=Math.max(0,Math.min(i*.5-o,(a-1)*.8)),c=a>1?s/(a-1):0;e.forEach((s,l)=>{let u=o+l*c;if(t.type===`map-route`&&(u=i*(.12+.58*(a>1?l/(a-1):1))-.2),n.build===`beats`&&r.beats.length){let t=l?h.get(e[l-1]):-1,n=r.beats.find(e=>e>=u-.05&&e>t+.05);n!==void 0&&(u=n)}h.set(s,Math.max(0,Math.min(u,i*.7)))}),f.has(99)&&h.set(99,Math.min(i*.72,(h.get(e.at(-1))??o)+Math.min(.6,c||.6)));for(let[e,t]of f){let n=h.get(e)??0;if(!(n<=0))for(let e of t){let t=Math.max(.3,i-n),r=t/i;e.start=n,e.duration=t,e.keyframes&&=e.keyframes.map(e=>({...e,at:Math.min(t,e.at*r)}))}}r.report.notes.push(`scene ${r.index+1}: ${h.size} items staged from ${Math.min(...h.values()).toFixed(2)}s to ${Math.max(...h.values()).toFixed(2)}s`)}if(t.type===`phone`&&n.build!==`together`){let e=s(`טלפון`);if(e?.children){let t=e.children.filter(e=>/ \d+$/.test(e.name));for(let e of t){let t=Number(/ (\d+)$/.exec(e.name)[1]),n=Math.min(i*.7,i*.22+t*Math.min(.45,i*.1));e.keyframes=[{...Gi(0),opacity:0,y:a*.03,scaleX:.92,scaleY:.92},{...Gi(n),opacity:0,y:a*.03,scaleX:.92,scaleY:.92},{...Gi(Math.min(i*.96,n+.45)),easing:{stiffness:170,damping:16,mass:1}},{...Gi(i*.96)}]}}}if(n.life!==`off`){let e=a*(n.life===`lively`?.012:.0075);for(let[t,i]of f){let a=Ui(`item${t}`,r.seed),o=.18+Math.abs(a)%100/100*.14,s={type:n.life===`lively`&&t%2==0?`orbit`:`float`,amplitude:e,frequency:o,seed:a};for(let e of i)!e.modifiers?.length&&e.type!==`repeater`&&(e.modifiers=[{...s}])}if(!f.size||t.type===`bars`){let t=Ui(`hero`,r.seed);for(let n of u)!n.modifiers?.length&&n.type!==`repeater`&&!f.has(Hi(n))&&(n.modifiers=[{type:`float`,amplitude:e,frequency:.21,seed:t}])}let i=s(`כותרת`),o=s(`כותרת משנה`),c=Ui(`header`,r.seed);for(let t of[i,o])t&&!t.modifiers?.length&&(t.modifiers=[{type:`float`,amplitude:e*.55,frequency:.16,seed:c}]);if(n.life===`lively`)for(let e of[`טבעת ראשונה`,`טבעת שנייה`]){let t=s(e);t&&(t.modifiers=[...t.modifiers??[],{type:`spin`,amplitude:6,frequency:1,seed:c}])}}if(n.life!==`off`){let t=i-Math.max(.35,e.transitionDuration??.4),r=[],u=e=>/^#[0-9a-f]{6}$/i.test(e)?Yi(e,l,.32):void 0;for(let[e,n]of f){if(e===99)continue;let i=n.find(e=>e.type===`shape`)??n[0],o=i.start+Math.min(i.duration*.5,(i.keyframes?.[1]?.at??.3)+.12);r.push(o);let s=o+.5;if(!(s+.42>t))for(let e of n){if(!e.keyframes?.length)continue;let t=s-e.start;if(t<=0||t+.42>=e.duration)continue;let n=e.type===`shape`?u(e.color):void 0;Zi(e,t,{y:-a*.024,color:n,baseColor:e.color})}}let d=[`מונה`,`מספר גדול`,`מונה התקדמות`,`סכום`].map(s).find(Boolean);if(d?.keyframes?.length&&!f.size){let e=Math.min(t-.45,i*.7);e>i*.5&&Zi(d,e-d.start,{scale:1.09}),r.push(i*.66)}let p=s(`דיסק תנועה`)??s(`חותם חגיגה`)??s(`מסילת טבעת`);if(p){let e=Math.max(p.width,p.height),t=Rt(`shape`,{name:`גל הדגשה`,x:p.x,y:p.y,width:p.width,height:p.height,color:`transparent`,borderColor:c,borderWidth:Math.max(2,a*.006),borderRadius:e,opacity:1,motion:`none`,motionOut:`none`,start:0,duration:i,depth:p.depth??0,modifiers:p.modifiers?.map(e=>({...e})),keyframes:Qi([i*.38,i*.68].filter(e=>e+.7<i),i)});t.keyframes.length>1&&(t.opacity=.9,o.splice(o.indexOf(p),0,t),r.push(i*.38))}n.life===`lively`&&e.camera?.keyframes?.length&&r.length&&(e.camera.keyframes=$i(e.camera.keyframes,r.filter(e=>e>.2&&e+.5<t).sort((e,t)=>e-t),.014))}}function Yi(e,t,n){let r=(e,t)=>parseInt(e.slice(1+t*2,3+t*2),16);return`#`+[0,1,2].map(i=>Math.round(r(e,i)*(1-n)+r(t,i)*n).toString(16).padStart(2,`0`)).join(``)}function Xi(e,t){let n=[...e].sort((e,t)=>e.at-t.at);if(t<=n[0].at)return{...n[0],at:t};for(let e=0;e<n.length-1;e++){let r=n[e],i=n[e+1];if(t>=r.at&&t<=i.at){let e=(t-r.at)/Math.max(1e-6,i.at-r.at),n=(t,n,r=0)=>(t??r)+((n??r)-(t??r))*e,a={...r,at:t,x:n(r.x,i.x),y:n(r.y,i.y),scaleX:n(r.scaleX,i.scaleX,1),scaleY:n(r.scaleY,i.scaleY,1),rotation:n(r.rotation,i.rotation),opacity:n(r.opacity,i.opacity,1)};return(r.value!==void 0||i.value!==void 0)&&(a.value=n(r.value??i.value,i.value??r.value)),(r.reveal!==void 0||i.reveal!==void 0)&&(a.reveal=n(r.reveal,i.reveal,1)),delete a.easing,delete a.snapToBeat,a}}return{...n[n.length-1],at:t}}function Zi(e,t,n){let r=e.keyframes,i=Xi(r,t),a=Xi(r,t+.16),o=Xi(r,t+.46),s={...a,y:(a.y??0)+(n.y??0),scaleX:(a.scaleX??1)*(n.scale??1),scaleY:(a.scaleY??1)*(n.scale??1),easing:[.2,.9,.3,1]},c={...o,easing:{stiffness:210,damping:15,mass:1}};n.color&&(i.color=n.baseColor,s.color=n.color,c.color=n.baseColor);let l=r.filter(e=>e.at<t-.001||e.at>t+.46+.001);if(n.color)for(let e of l)e.at>t&&e.color===void 0&&(e.color=n.baseColor);e.keyframes=[...l,i,s,c].sort((e,t)=>e.at-t.at)}function Qi(e,t){let n=[{...Gi(0),opacity:0}];for(let r of e)r+.75>t||r-.01<=n.at(-1).at||(n.push({...Gi(Math.max(n.at(-1).at+.01,r-.01)),opacity:0,scaleX:.96,scaleY:.96}),n.push({...Gi(r+.06),opacity:.75,scaleX:1,scaleY:1,easing:`linear`}),n.push({...Gi(r+.75),opacity:0,scaleX:1.55,scaleY:1.55,easing:`ease-out`}));return n.at(-1).at<t&&n.push({...n.at(-1),at:t}),n.length>2?n:[{...Gi(0),opacity:0}]}function $i(e,t,n){let r=t=>{let n=[...e].sort((e,t)=>e.at-t.at);if(t<=n[0].at)return{...n[0],at:t};for(let e=0;e<n.length-1;e++)if(t>=n[e].at&&t<=n[e+1].at){let r=(t-n[e].at)/Math.max(1e-6,n[e+1].at-n[e].at),i=(e,t)=>e+(t-e)*r;return{at:t,x:i(n[e].x,n[e+1].x),y:i(n[e].y,n[e+1].y),zoom:i(n[e].zoom,n[e+1].zoom),rotation:i(n[e].rotation,n[e+1].rotation)}}return{...n[n.length-1],at:t}},i=[...e],a=-1;for(let e of t){if(e<a+.5)continue;a=e;let t=r(e),o=r(e+.12),s=r(e+.5);i=i.filter(t=>t.at<e-.001||t.at>e+.5+.001),i.push({...t,easing:`linear`},{...o,zoom:o.zoom+n,easing:`ease-out`},{...s,easing:`smooth`})}return i.sort((e,t)=>e.at-t.at)}var G=(e,t,n)=>{let r=e[t];return typeof r==`number`?r:n};function ea(e,t,n,r){let i=Math.max(.001,t.at-e.at),a=(n,r)=>Math.abs(G(t,n,r)-G(e,n,r))/i;return a(`x`,0)+a(`y`,0)>=n*.008||a(`scaleX`,1)>=.03||a(`scaleY`,1)>=.03||a(`scale`,1)>=.03||a(`rotation`,0)>=3||a(`rotateY`,0)>=3||a(`rotateX`,0)>=3||a(`opacity`,1)>=.2||a(`reveal`,1)>=.1||a(`blur`,0)>=2||e.value!==void 0&&t.value!==void 0&&e.value!==t.value||JSON.stringify(e.clip??r.clip)!==JSON.stringify(t.clip??r.clip)}function ta(e){let t=Math.min(e.canvas.width,e.canvas.height),n=[],r=0,i=0;for(let a of e.scenes){let e=Math.max(1,Math.round(a.duration*12)),o=0,s=[],c=(e,t)=>{for(let n of e)Ni(n)||(s.push({...n,start:n.start+t}),n.children&&c(n.children,n.start+t))};c(a.layers,0);for(let n=0;n<e;n++){let e=(n+.5)/12;s.some(n=>{let r=e-n.start;if(r<0||r>n.duration)return!1;if(n.modifiers?.some(e=>e.type===`spin`?Math.abs(e.amplitude*e.frequency)>=3:2*Math.PI*e.frequency*e.amplitude>=t*.008))return!0;let i=n.keyframes;if(i&&i.length>1){for(let e=0;e<i.length-1;e++)if(r>=i[e].at&&r<i[e+1].at&&ea(i[e],i[e+1],t,n))return!0}if(n.splitText&&n.splitText!==`none`&&n.textUnitKeyframes?.length){let e=(n.text??``).split(n.splitText===`word`?/\s+/:``).filter(Boolean).length;if(r<(n.motionDelay??0)+e*(n.stagger??.08)+n.textUnitKeyframes.at(-1).at)return!0}return!!(n.type===`repeater`&&i&&i.length>1&&r<i.at(-1).at)})&&o++}n.push(o/e),r+=e,i+=o}return{overall:r?i/r:0,scenes:n}}function na(e,t={}){return{...structuredClone(e),format:`motiondesk-config/v4`,...t}}var ra=e=>Object.assign(Object.create(null),e),ia=e=>!!e&&typeof e==`object`&&!Array.isArray(e),aa=`motiondesk-config/v4`,oa=`motiondesk-config/v3`,sa=[`format`,`title`,`theme`,`aspectRatio`,`fps`,`palette`,`seed`,`beats`,`motionBlur`,`direction`,`build`,`life`,`fixes`,`scenes`],ca=`type.duration.title.subtitle.label.product.cta.words.items.rows.to.beat.ring.transition.variant.energy.background.camera.emphasis.accent.value.from.prefix.suffix.decimals.thousands.max.values.icon.icons.build.life`.split(`.`),la=[`16:9`,`9:16`,`1:1`],ua=[24,25,30,60],da=[...Dt,`aurora`],fa=[`background`,`foreground`,`accent`,`secondary`],K={rootTitle:120,text:220,emphasis:80,affix:24,list:20,rows:12,cells:3,valuesMin:2,valuesMax:20,scenes:30,beats:1e3,icons:8},pa=1e9,ma=-2147483648,ha=2147483647,ga=new Set([`hook`,`endcard`,`cards`,`checklist`,`notification-stack`,`timeline`,`phone`]),_a=new Set([`cards`,`checklist`,`notification-stack`,`timeline`,`phone`]),va=new Set(xi),ya=ra({config:`הקונפיגורציה`,format:`פורמט`,title:`כותרת הסרטון`,theme:`ערכת נושא`,aspectRatio:`יחס מסך`,fps:`קצב פריימים`,palette:`פלטה`,seed:`seed`,beats:`נקודות קצב`,motionBlur:`טשטוש תנועה`,direction:`כיוון`,build:`בנייה`,life:`תנועה מתמשכת`,fixes:`תיקוני פריסה`,scenes:`סצנות`}),ba=ra({type:`סוג`,duration:`משך`,title:`כותרת`,subtitle:`כותרת משנה`,label:`תווית`,product:`מוצר`,cta:`קריאה לפעולה`,words:`מילים`,items:`פריטים`,rows:`שורות`,to:`ערך יעד`,beat:`קצב מילים`,ring:`טבעת`,transition:`מעבר`,variant:`פריסה`,energy:`אנרגיה`,background:`רקע`,camera:`מצלמה`,emphasis:`הדגשה`,accent:`צבע הדגשה`,value:`ערך`,from:`ערך התחלה`,prefix:`קידומת`,suffix:`סיומת`,decimals:`ספרות אחרי הנקודה`,thousands:`מפריד אלפים`,max:`מקסימום`,values:`ערכים`,icon:`אייקון`,icons:`אייקונים`,build:`בנייה`,life:`תנועה מתמשכת`}),xa=ra({words:`מילה`,items:`פריט`,rows:`שורה`,values:`ערך`,icons:`אייקון`,beats:`נקודה`,scenes:`סצנה`,layers:`שכבה`,children:`שכבה`,keyframes:`נקודת מפתח`,textUnitKeyframes:`נקודת מפתח`,modifiers:`משנה`,assets:`נכס`,mediaTracks:`רצועה`,clips:`קטע`}),Sa=ra({background:`רקע`,foreground:`טקסט`,accent:`הדגשה`,secondary:`משני`,samples:`דגימות`,shutterAngle:`זווית תריס`,layers:`שכבות`,children:`שכבות פנימיות`,keyframes:`נקודות מפתח`,camera:`מצלמה`,at:`זמן`,name:`שם`,text:`טקסט`,canvas:`קנבס`,configV3:`מתכון`}),q=(e,t=40)=>{let n=typeof e==`string`?e:JSON.stringify(e)??String(e);return n.length>t?n.slice(0,t-1)+`…`:n},Ca=class{list=[];add(e){this.list.includes(e)||this.list.push(e)}get out(){return this.list.length>80?[...this.list.slice(0,79),`ועוד ${this.list.length-79} תיקונים קטנים`]:[...this.list]}},wa=new Set([`“`,`”`,`„`,`‟`]),Ta=/[\u00a0\u200b-\u200f\u202a-\u202e\u2060-\u2069\ufeff\u2028\u2029]/,Ea=ra({comment:`הוסרו הערות (// או /* */) שאינן חוקיות ב־JSON`,trailing:`הוסרו פסיקים מיותרים`,comma:`נוספו פסיקים חסרים`,smart:`מירכאות מעוצבות (“ ”) שימשו כגבולות מחרוזת והוחלפו במירכאות JSON`,inner:`מירכאות בתוך טקסט סומנו כחלק מהטקסט`,newline:`שורות חדשות בתוך מחרוזות תוקנו`,escape:`לוכסנים הפוכים (\\) לא חוקיים תוקנו`,key:`נוספו מירכאות לשמות שדות`,literal:`ערכים כמו True/None תוקנו ל־true/null`,bare:`מילים בלי מירכאות הפכו לטקסט`,number:`מספרים בכתיב לא תקני תוקנו`,bracket:`סוגריים שלא נסגרו נכון תוקנו`,invisible:`הוסרו תווים בלתי נראים מחוץ לטקסט`,stray:`הוסרו תווים מיותרים מחוץ לטקסט`,novalue:`שדות בלי ערך קיבלו null`,colon:`נוספו נקודתיים (:) חסרות`,truncated:`התשובה נקטעה באמצע — נסגרו הסוגריים החסרים (ייתכן שחסר סוף הקונפיגורציה)`});function Da(e,t){for(;;){for(;t<e.length&&(/\s/.test(e[t])||Ta.test(e[t]));)t++;if(e[t]===`/`&&e[t+1]===`/`){let n=e.indexOf(`
|
|
134
|
+
}`}),d&&(0,U.jsx)(`p`,{className:`md-create-error`,role:`alert`,children:d}),(0,U.jsxs)(`div`,{className:`md-prompts-import-actions`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,disabled:!s.trim(),onClick:x,children:[(0,U.jsx)(Fe,{size:15}),`בניית סרטון מה־JSON`]}),g===`motiondesk-config/v2`&&(0,U.jsx)(`button`,{type:`button`,className:`md-btn secondary`,onClick:S,children:`שדרוג v2 ל־v3`})]}),(0,U.jsxs)(`div`,{className:`md-prompts-note`,children:[(0,U.jsx)(de,{size:16}),(0,U.jsx)(`span`,{children:`אין צורך בחיבור רשת בזמן עריכה. מודל השפה פועל מחוץ לאפליקציה; ייבוא v1 ו־v2 ממשיך לעבוד, ואפשר לשדרג v2 במפורש.`})]})]})]})]})}var ai=`modulepreload`,oi=function(e,t){return new URL(e,t).href},si={},ci=function(e){return e.pathname.endsWith(`.css`)},li=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},W=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=oi(t,n);let r=s(t),i=ci(r);return li(si,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ai,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ui=`premium.launch.apps.tech.finance.bank-life.bank-invest.bank-digital.bank-safety.bank-young.realestate.retail.fashion.beauty.events.music.celebrations.culture.education.kids.family.health.sports.gaming.hr.services.legal.business.data.social.food.travel.auto.pets.nonprofit.community`.split(`.`),di=Object.assign({"../catalog/studio/apps.json":()=>W(()=>import(`./apps-DwnIwigQ.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/auto.json":()=>W(()=>import(`./auto-CJsCPj1R.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/bank-digital.json":()=>W(()=>import(`./bank-digital-JTuIxFOJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/bank-invest.json":()=>W(()=>import(`./bank-invest-B--KJb5m.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/bank-life.json":()=>W(()=>import(`./bank-life-C-4wZKyu.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/bank-safety.json":()=>W(()=>import(`./bank-safety-CBkr-iwJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/bank-young.json":()=>W(()=>import(`./bank-young-BwV6418l.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/beauty.json":()=>W(()=>import(`./beauty-DgeCsQdf.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/business.json":()=>W(()=>import(`./business-DfyVziqj.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/celebrations.json":()=>W(()=>import(`./celebrations-CkfTGLEK.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/community.json":()=>W(()=>import(`./community-BV13F-Wp.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/culture.json":()=>W(()=>import(`./culture-DpL14_5r.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/data.json":()=>W(()=>import(`./data-DgES5FIF.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/education.json":()=>W(()=>import(`./education-CGTOg3_0.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/events.json":()=>W(()=>import(`./events-kZ6HshfK.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/family.json":()=>W(()=>import(`./family-De56hVSo.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/fashion.json":()=>W(()=>import(`./fashion-DbGAD96W.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/finance.json":()=>W(()=>import(`./finance-BUdlKAud.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/food.json":()=>W(()=>import(`./food-CiEyQAd1.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/gaming.json":()=>W(()=>import(`./gaming-DnzPj6Uv.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/health.json":()=>W(()=>import(`./health-CbyTqvSM.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/hr.json":()=>W(()=>import(`./hr-2i-f-S-M.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/kids.json":()=>W(()=>import(`./kids-BNwXKe4O.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/launch.json":()=>W(()=>import(`./launch-DqkMfeFI.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/legal.json":()=>W(()=>import(`./legal-Caoeh9dp.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/music.json":()=>W(()=>import(`./music-hbnVS8dK.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/nonprofit.json":()=>W(()=>import(`./nonprofit-DK7XI33A.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/pets.json":()=>W(()=>import(`./pets-Dp8EeTjS.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/premium.json":()=>W(()=>import(`./premium-Cy680sWT.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/realestate.json":()=>W(()=>import(`./realestate-BXW-rsfP.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/retail.json":()=>W(()=>import(`./retail-D-XWCWed.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/services.json":()=>W(()=>import(`./services-DRPQcCXX.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/social.json":()=>W(()=>import(`./social-CNpE0GKG.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/sports.json":()=>W(()=>import(`./sports-DyBfpPm5.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/tech.json":()=>W(()=>import(`./tech-BaRjeFZ0.js`).then(e=>e.default),[],import.meta.url),"../catalog/studio/travel.json":()=>W(()=>import(`./travel-DoqS5vPB.js`).then(e=>e.default),[],import.meta.url)}),fi=Object.assign({"../catalog/hyperframes/index-b2.json":()=>W(()=>import(`./index-b2-CMdBrCiU.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b3.json":()=>W(()=>import(`./index-b3-egAjkT9z.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b4.json":()=>W(()=>import(`./index-b4-Cnj_xde0.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b5.json":()=>W(()=>import(`./index-b5-CoZgwX8-.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b6.json":()=>W(()=>import(`./index-b6-Cm4vot4j.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b7.json":()=>W(()=>import(`./index-b7-BLEay8YC.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b8.json":()=>W(()=>import(`./index-b8-Jbh-zOZB.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index-b9.json":()=>W(()=>import(`./index-b9-caOB8GyX.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/index.json":()=>W(()=>import(`./hyperframes-BM7eWgx2.js`).then(e=>e.default),[],import.meta.url)}),pi=Object.assign({"../catalog/hyperframes/ai-assistant.html":()=>W(()=>import(`./ai-assistant-DOEK1wrr.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/annual-report.html":()=>W(()=>import(`./annual-report-C59pnbh2.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/app-tour.html":()=>W(()=>import(`./app-tour-B8525Qt1.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/balloon-party.html":()=>W(()=>import(`./balloon-party-BDWzrF-Z.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-banker-chat.html":()=>W(()=>import(`./bank-banker-chat-B_iF_sFM.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-business-loan.html":()=>W(()=>import(`./bank-business-loan-BFWWaq-c.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-car-choice.html":()=>W(()=>import(`./bank-car-choice-DLE2OVcc.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-card-freeze.html":()=>W(()=>import(`./bank-card-freeze-J1JfFmLr.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-code-never.html":()=>W(()=>import(`./bank-code-never-CQDlq8GN.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-dark-interlude.html":()=>W(()=>import(`./bank-dark-interlude-DhcdkPP1.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-dinner-split.html":()=>W(()=>import(`./bank-dinner-split-Be1e7DOQ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-fast-pay.html":()=>W(()=>import(`./bank-fast-pay-DoW0ClI6.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-first-salary.html":()=>W(()=>import(`./bank-first-salary-D9WxYgJf.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-fomo-stop.html":()=>W(()=>import(`./bank-fomo-stop-uEzdT0HP.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-forex-trip.html":()=>W(()=>import(`./bank-forex-trip-BHW39y4z.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-growth-bars.html":()=>W(()=>import(`./bank-growth-bars-DirAz4xB.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-holiday-budget.html":()=>W(()=>import(`./bank-holiday-budget-J41dLHwR.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-mortgage-papers.html":()=>W(()=>import(`./bank-mortgage-papers-DMtx0XsI.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-new-app-look.html":()=>W(()=>import(`./bank-new-app-look-CKmeKBU6.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-one-click-loan.html":()=>W(()=>import(`./bank-one-click-loan-BVhe1AGv.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-paper-explainer.html":()=>W(()=>import(`./bank-paper-explainer-CD8mPtnJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-pension-compare.html":()=>W(()=>import(`./bank-pension-compare-BArvoVu7.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-remote-access.html":()=>W(()=>import(`./bank-remote-access-Df8UNpc7.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-savings-pocket.html":()=>W(()=>import(`./bank-savings-pocket-B53nO1Z_.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-share-explained.html":()=>W(()=>import(`./bank-share-explained-DCp805RD.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-small-business.html":()=>W(()=>import(`./bank-small-business-Bc7Ad4GW.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-student-routine.html":()=>W(()=>import(`./bank-student-routine-CnPPhtoV.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-suspicious-sms.html":()=>W(()=>import(`./bank-suspicious-sms-CwOrdi3d.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/bank-wedding-budget.html":()=>W(()=>import(`./bank-wedding-budget-CDM2kO0R.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/boarding-pass.html":()=>W(()=>import(`./boarding-pass-i17EemsZ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/chalk-menu.html":()=>W(()=>import(`./chalk-menu-CQSqwxNP.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/claim-steps.html":()=>W(()=>import(`./claim-steps-BNFeoYYZ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/clinic-booking.html":()=>W(()=>import(`./clinic-booking-CvQEpBWn.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/concert-poster.html":()=>W(()=>import(`./concert-poster-iUOM-elw.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/course-syllabus.html":()=>W(()=>import(`./course-syllabus-CnM_03XP.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/cyber-shield.html":()=>W(()=>import(`./cyber-shield-B_6oatye.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/dev-hiring-code.html":()=>W(()=>import(`./dev-hiring-code-Bg00S1Iz.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/donation-meter.html":()=>W(()=>import(`./donation-meter-C3wuRmFA.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/editorial-mag.html":()=>W(()=>import(`./editorial-mag-DsTVzQMx.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/ev-charge.html":()=>W(()=>import(`./ev-charge-KaMIQd_s.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/event-announce.html":()=>W(()=>import(`./event-announce-cLmuvt45.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/finance-growth.html":()=>W(()=>import(`./finance-growth-CYgFE0RC.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/fitness-rings-streak.html":()=>W(()=>import(`./fitness-rings-streak-Cp7n4zq_.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/flash-sale.html":()=>W(()=>import(`./flash-sale-Tc0Jw34H.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/flipclock-countdown.html":()=>W(()=>import(`./flipclock-countdown-BkrU9ZhF.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/floorplan-linedraw.html":()=>W(()=>import(`./floorplan-linedraw-B4ZwEDv3.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/glass-product.html":()=>W(()=>import(`./glass-product-CsUqplIf.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/glossy-cosmetics.html":()=>W(()=>import(`./glossy-cosmetics-DBb-YonD.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/gold-couture.html":()=>W(()=>import(`./gold-couture-e6c5nsVY.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/gradient-blobs.html":()=>W(()=>import(`./gradient-blobs-Daiu9eFf.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/graduation-day.html":()=>W(()=>import(`./graduation-day-vdz-kGI1.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/headline-news-ticker.html":()=>W(()=>import(`./headline-news-ticker-GgZ_nRXK.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/hiring-team.html":()=>W(()=>import(`./hiring-team-Bia3GQaH.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/holiday-greeting.html":()=>W(()=>import(`./holiday-greeting-B7TFl0_5.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/iso-product-3d.html":()=>W(()=>import(`./iso-product-3d-DQT1lHDq.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/itinerary-map-pins.html":()=>W(()=>import(`./itinerary-map-pins-BTX0ZebL.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/key-handover.html":()=>W(()=>import(`./key-handover-DuIj4oKe.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/kinetic-launch.html":()=>W(()=>import(`./kinetic-launch-D2rSnewM.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/legal-trust.html":()=>W(()=>import(`./legal-trust-T01BmIDB.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/level-up.html":()=>W(()=>import(`./level-up-CBXf6nj2.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/logo-sting.html":()=>W(()=>import(`./logo-sting-Uf0nckUQ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/manifesto-quote.html":()=>W(()=>import(`./manifesto-quote-DCIONyzh.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/match-day.html":()=>W(()=>import(`./match-day-p25bzqbq.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/match-score.html":()=>W(()=>import(`./match-score-CSZ4Tx4B.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/neighborhood-map.html":()=>W(()=>import(`./neighborhood-map-BpbZiy-v.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/neon-grid.html":()=>W(()=>import(`./neon-grid-Bo0xfsL6.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/org-chart-hiring.html":()=>W(()=>import(`./org-chart-hiring-tGX1UpiJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/paper-collage.html":()=>W(()=>import(`./paper-collage-CK-XODvZ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/paw-adopt.html":()=>W(()=>import(`./paw-adopt-D5hKgsaL.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/playful-blocks.html":()=>W(()=>import(`./playful-blocks-BGXW4vra.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/podcast-waveform-promo.html":()=>W(()=>import(`./podcast-waveform-promo-D-h_ydpJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/price-grid.html":()=>W(()=>import(`./price-grid-DbYGPlJt.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/quote-carousel-bold.html":()=>W(()=>import(`./quote-carousel-bold-D5fpKgSS.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/recipe-ingredients.html":()=>W(()=>import(`./recipe-ingredients-B_bSw3x_.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/retro-80s.html":()=>W(()=>import(`./retro-80s-CCZc9S6x.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/roadmap-timeline.html":()=>W(()=>import(`./roadmap-timeline-BpbNdfCr.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/saas-dashboard.html":()=>W(()=>import(`./saas-dashboard-s-2gR3AN.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/sale-wheel-24h.html":()=>W(()=>import(`./sale-wheel-24h-CsiOja2Z.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/save-the-date.html":()=>W(()=>import(`./save-the-date-C6O8fH8f.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/split-wipe-before-after.html":()=>W(()=>import(`./split-wipe-before-after-Lg-NbF0V.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/stats-dashboard.html":()=>W(()=>import(`./stats-dashboard-CxxFtNfj.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/stock-portfolio.html":()=>W(()=>import(`./stock-portfolio-DFpeHEjJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/swiss-grid.html":()=>W(()=>import(`./swiss-grid-jfcgySaJ.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/travel-route.html":()=>W(()=>import(`./travel-route-DUPXi7Qa.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/tutorial-steps.html":()=>W(()=>import(`./tutorial-steps-Ep2JeqXu.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/wallet-card-transactions.html":()=>W(()=>import(`./wallet-card-transactions-DtI9Usn9.js`).then(e=>e.default),[],import.meta.url),"../catalog/hyperframes/wedding-invite.html":()=>W(()=>import(`./wedding-invite-BhgqMwO7.js`).then(e=>e.default),[],import.meta.url)}),mi=null;function hi(){return mi??=(async()=>{let[e,t]=await Promise.all([Promise.all(Object.values(di).map(e=>e())),Promise.all(Object.values(fi).map(e=>e()))]),n=[],r=[];for(let t of e){n.push(t.category);for(let e of t.templates)r.push({...e,kind:`motion`,category:t.category.id})}let i=new Set;for(let e of t)for(let t of e)i.has(t.id)||(i.add(t.id),r.push({...t,kind:`hyperframes`}));return n.sort((e,t)=>(ui.indexOf(e.id)+1||99)-(ui.indexOf(t.id)+1||99)),{categories:n,templates:r}})().catch(e=>{throw mi=null,e}),mi}var gi=new Map;async function _i(e){let t=gi.get(e.id);if(t)return t;let n=pi[`../catalog/hyperframes/${e.file}`];if(!n)throw Error(`קובץ התבנית לא נמצא`);let r=await n();return gi.set(e.id,r),r}var vi=e=>e.kind===`motion`?e.config.aspectRatio??`16:9`:e.width===e.height?`1:1`:e.width>e.height?`16:9`:`9:16`,yi=e=>e.kind===`motion`?e.config.scenes.reduce((e,t)=>e+(t.duration??4),0):e.duration,bi={"shield-check":`M20 13c0 5 -3.5 7.5 -7.66 8.95a1 1 0 0 1 -.67 -.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1 -1c2 0 4.5 -1.2 6.24 -2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1 z M9 12l2 2 4 -4`,wallet:`M19 7V4a1 1 0 0 0 -1 -1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1 M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1 -1v-4`,"credit-card":`M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2Z M2 10L22 10`,"piggy-bank":`M19 5c-1.5 0 -2.8 1.4 -3 2 -3.5 -1.5 -11 -.3 -11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1 -.5 1.7 -1 2 -2h2v-4h-2c0 -1 -.5 -1.5 -1 -2V5 z M2 9v1c0 1.1 .9 2 2 2h1 M16 11h.01`,house:`M15 21v-8a1 1 0 0 0 -1 -1h-4a1 1 0 0 0 -1 1v8 M3 10a2 2 0 0 1 .709 -1.528l7 -5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1 -2 2H5a2 2 0 0 1 -2 -2 z`,car:`M19 17h2c.6 0 1 -.4 1 -1v-3c0 -.9 -.7 -1.7 -1.5 -1.9C18.7 10.6 16 10 16 10s-1.3 -1.4 -2.2 -2.3c-.5 -.4 -1.1 -.7 -1.8 -.7H5c-.6 0 -1.1 .4 -1.4 .9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6 .4 1 1 1h2 M5 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M9 17h6 M15 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,plane:`M17.8 19.2 16 11l3.5 -3.5C21 6 21.5 4 21 3c-1 -.5 -3 0 -4.5 1.5L13 8 4.8 6.2c-.5 -.1 -.9 .1 -1.1 .5l-.3 .5c-.2 .5 -.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1 -1v-3l3 -2 3.5 5.3c.3 .4 .8 .5 1.3 .3l.5 -.2c.4 -.3 .6 -.7 .5 -1.2 z`,smartphone:`M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-16a2 2 0 0 1 2 -2Z M12 18h.01`,banknote:`M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2Z M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M6 12h.01M18 12h.01`,coins:`M2 8a6 6 0 1 0 12 0a6 6 0 1 0 -12 0 M18.09 10.37A6 6 0 1 1 10.34 18 M7 6h1v4 M16.71 13.88l.7 .71 -2.82 2.82`,"chart-line":`M3 3v16a2 2 0 0 0 2 2h16 M19 9l-5 5 -4 -4 -3 3`,"chart-column":`M3 3v16a2 2 0 0 0 2 2h16 M18 17V9 M13 17V5 M8 17v-3`,"trending-up":`M22 7L13.5 15.5L8.5 10.5L2 17 M16 7L22 7L22 13`,percent:`M19 5L5 19 M4 6.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0 M15 17.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0`,gift:`M4 8h16a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1Z M12 8v13 M19 12v7a2 2 0 0 1 -2 2H7a2 2 0 0 1 -2 -2v-7 M7.5 8a2.5 2.5 0 0 1 0 -5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5 -5 2.5 2.5 0 0 1 0 5`,star:`M11.525 2.295a.53 .53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166 .756a.53 .53 0 0 1 .294 .904l-3.736 3.638a2.123 2.123 0 0 0 -.611 1.878l.882 5.14a.53 .53 0 0 1 -.771 .56l-4.618 -2.428a2.122 2.122 0 0 0 -1.973 0L6.396 21.01a.53 .53 0 0 1 -.77 -.56l.881 -5.139a2.122 2.122 0 0 0 -.611 -1.879L2.16 9.795a.53 .53 0 0 1 .294 -.906l5.165 -.755a2.122 2.122 0 0 0 1.597 -1.16 z`,heart:`M19 14c1.49 -1.46 3 -3.21 3 -5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0 -3 .5 -4.5 2 -1.5 -1.5 -2.74 -2 -4.5 -2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7 Z`,check:`M20 6 9 17l-5 -5`,"circle-check":`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M9 12l2 2 4 -4`,clock:`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M12 6L12 12L16 14`,calendar:`M8 2v4 M16 2v4 M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2Z M3 10h18`,bell:`M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3 -2 3 -9 M10.3 21a1.94 1.94 0 0 0 3.4 0`,lock:`M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-7a2 2 0 0 1 2 -2Z M7 11V7a5 5 0 0 1 10 0v4`,user:`M19 21v-2a4 4 0 0 0 -4 -4H9a4 4 0 0 0 -4 4v2 M8 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`,users:`M16 21v-2a4 4 0 0 0 -4 -4H6a4 4 0 0 0 -4 4v2 M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0 M22 21v-2a4 4 0 0 0 -3 -3.87 M16 3.13a4 4 0 0 1 0 7.75`,briefcase:`M16 20V4a2 2 0 0 0 -2 -2h-4a2 2 0 0 0 -2 2v16 M4 6h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2Z`,"graduation-cap":`M21.42 10.922a1 1 0 0 0 -.019 -1.838L12.83 5.18a2 2 0 0 0 -1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0 z M22 10v6 M6 12.5V16a6 3 0 0 0 12 0v-3.5`,"building-2":`M6 22V4a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v18 Z M6 12H4a2 2 0 0 0 -2 2v6a2 2 0 0 0 2 2h2 M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-2 M10 6h4 M10 10h4 M10 14h4 M10 18h4`,landmark:`M3 22L21 22 M6 18L6 11 M10 18L10 11 M14 18L14 11 M18 18L18 11 M12 2L20 7L4 7Z`,"map-pin":`M20 10c0 4.993 -5.539 10.193 -7.399 11.799a1 1 0 0 1 -1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0 M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,send:`M14.536 21.686a.5 .5 0 0 0 .937 -.024l6.5 -19a.496 .496 0 0 0 -.635 -.635l-19 6.5a.5 .5 0 0 0 -.024 .937l7.93 3.18a2 2 0 0 1 1.112 1.11 z M21.854 2.147l-10.94 10.939`,sparkles:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135 -1.582a.5 .5 0 0 1 0 -.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582 -6.135a.5 .5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5 .5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0 -1.437 1.437l-1.582 6.135a.5 .5 0 0 1 -.963 0 z M20 3v4 M22 5h-4 M4 17v2 M5 18H3`,zap:`M4 14a1 1 0 0 1 -.78 -1.63l9.9 -10.2a.5 .5 0 0 1 .86 .46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5 .5 0 0 1 -.86 -.46l1.92 -6.02A1 1 0 0 0 11 14 z`,rocket:`M4.5 16.5c-1.5 1.26 -2 5 -2 5s3.74 -.5 5 -2c.71 -.84 .7 -2.13 -.09 -2.91a2.18 2.18 0 0 0 -2.91 -.09 z M12 15l-3 -3a22 22 0 0 1 2 -3.95A12.88 12.88 0 0 1 22 2c0 2.72 -.78 7.5 -6 11a22.35 22.35 0 0 1 -4 2 z M9 12H4s.55 -3.03 2 -4c1.62 -1.08 5 0 5 0 M12 15v5s3.03 -.55 4 -2c1.08 -1.62 0 -5 0 -5`,target:`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M6 12a6 6 0 1 0 12 0a6 6 0 1 0 -12 0 M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,trophy:`M6 9H4.5a2.5 2.5 0 0 1 0 -5H6 M18 9h1.5a2.5 2.5 0 0 0 0 -5H18 M4 22h16 M10 14.66V17c0 .55 -.47 .98 -.97 1.21C7.85 18.75 7 20.24 7 22 M14 14.66V17c0 .55 .47 .98 .97 1.21C16.15 18.75 17 20.24 17 22 M18 2H6v7a6 6 0 0 0 12 0V2 Z`,umbrella:`M22 12a10.06 10.06 1 0 0 -20 0 Z M12 12v8a2 2 0 0 0 4 0 M12 2v1`,sun:`M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0 M12 2v2 M12 20v2 M4.93 4.93l1.41 1.41 M17.66 17.66l1.41 1.41 M2 12h2 M20 12h2 M6.34 17.66l-1.41 1.41 M19.07 4.93l-1.41 1.41`,leaf:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5 -4.78 10 -10 10 Z M2 21c0 -3 1.85 -5.36 5.08 -6C9.5 14.52 12 13 13 12`,receipt:`M4 2v20l2 -1 2 1 2 -1 2 1 2 -1 2 1 2 -1 2 1V2l-2 1 -2 -1 -2 1 -2 -1 -2 1 -2 -1 -2 1 Z M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8 M12 17.5v-11`,"shopping-cart":`M7 21a1 1 0 1 0 2 0a1 1 0 1 0 -2 0 M18 21a1 1 0 1 0 2 0a1 1 0 1 0 -2 0 M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95 -1.57l1.65 -7.43H5.12`,"shopping-bag":`M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2 -2V6l-3 -4 Z M3 6h18 M16 10a4 4 0 0 1 -8 0`,"hand-coins":`M11 15h2a2 2 0 1 0 0 -4h-3c-.6 0 -1.1 .2 -1.4 .6L3 17 M7 21l1.6 -1.4c.3 -.4 .8 -.6 1.4 -.6h4c1.1 0 2.1 -.4 2.8 -1.2l4.6 -4.4a2 2 0 0 0 -2.75 -2.91l-4.2 3.9 M2 16l6 6 M13.1 9a2.9 2.9 0 1 0 5.8 0a2.9 2.9 0 1 0 -5.8 0 M3 5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,handshake:`M11 17l2 2a1 1 0 1 0 3 -3 M14 14l2.5 2.5a1 1 0 1 0 3 -3l-3.88 -3.88a3 3 0 0 0 -4.24 0l-.88 .88a1 1 0 1 1 -3 -3l2.81 -2.81a5.79 5.79 0 0 1 7.06 -.87l.47 .28a2 2 0 0 0 1.42 .25L21 4 M21 3l1 11h-2 M3 3 2 14l6.5 6.5a1 1 0 1 0 3 -3 M3 4h8`,key:`M15.5 7.5l2.3 2.3a1 1 0 0 0 1.4 0l2.1 -2.1a1 1 0 0 0 0 -1.4L19 4 M21 2l-9.6 9.6 M2 15.5a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0`,"message-circle":`M7.9 20A9 9 0 1 0 4 16.1L2 22 Z`,phone:`M22 16.92v3a2 2 0 0 1 -2.18 2 19.79 19.79 0 0 1 -8.63 -3.07 19.5 19.5 0 0 1 -6 -6 19.79 19.79 0 0 1 -3.07 -8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1 -.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27 -1.27a2 2 0 0 1 2.11 -.45 12.84 12.84 0 0 0 2.81 .7A2 2 0 0 1 22 16.92 z`,mail:`M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2Z M22 7l-8.97 5.7a1.94 1.94 0 0 1 -2.06 0L2 7`,search:`M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0 M21 21l-4.3 -4.3`,settings:`M12.22 2h-.44a2 2 0 0 0 -2 2v.18a2 2 0 0 1 -1 1.73l-.43 .25a2 2 0 0 1 -2 0l-.15 -.08a2 2 0 0 0 -2.73 .73l-.22 .38a2 2 0 0 0 .73 2.73l.15 .1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1 -1 1.74l-.15 .09a2 2 0 0 0 -.73 2.73l.22 .38a2 2 0 0 0 2.73 .73l.15 -.08a2 2 0 0 1 2 0l.43 .25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2 -2v-.18a2 2 0 0 1 1 -1.73l.43 -.25a2 2 0 0 1 2 0l.15 .08a2 2 0 0 0 2.73 -.73l.22 -.39a2 2 0 0 0 -.73 -2.73l-.15 -.08a2 2 0 0 1 -1 -1.74v-.5a2 2 0 0 1 1 -1.74l.15 -.09a2 2 0 0 0 .73 -2.73l-.22 -.38a2 2 0 0 0 -2.73 -.73l-.15 .08a2 2 0 0 1 -2 0l-.43 -.25a2 2 0 0 1 -1 -1.73V4a2 2 0 0 0 -2 -2 z M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,baby:`M9 12h.01 M15 12h.01 M10 16c.5 .3 1.2 .5 2 .5s1.5 -.2 2 -.5 M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1 -17.6 0 2 2 0 0 1 0 -3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5 -2 2.5c-.8 0 -1.5 -.4 -1.5 -1`,stethoscope:`M11 2v2 M5 2v2 M5 3H4a2 2 0 0 0 -2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0 -2 -2h-1 M8 15a6 6 0 0 0 12 0v-3 M18 10a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,globe:`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0 -20 M2 12h20`,wifi:`M12 20h.01 M2 8.82a15 15 0 0 1 20 0 M5 12.859a10 10 0 0 1 14 0 M8.5 16.429a5 5 0 0 1 7 0`,"qr-code":`M4 3h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1Z M17 3h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1Z M4 16h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1Z M21 16h-3a2 2 0 0 0 -2 2v3 M21 21v.01 M12 7v3a2 2 0 0 1 -2 2H7 M3 12h.01 M12 3h.01 M12 16v.01 M16 12h1 M21 12v.01 M12 21v-1`,"scan-face":`M3 7V5a2 2 0 0 1 2 -2h2 M17 3h2a2 2 0 0 1 2 2v2 M21 17v2a2 2 0 0 1 -2 2h-2 M7 21H5a2 2 0 0 1 -2 -2v-2 M8 14s1.5 2 4 2 4 -2 4 -2 M9 9h.01 M15 9h.01`,fingerprint:`M12 10a2 2 0 0 0 -2 2c0 1.02 -.1 2.51 -.26 4 M14 13.12c0 2.38 0 6.38 -1 8.88 M17.29 21.02c.12 -.6 .43 -2.3 .5 -3.02 M2 12a10 10 0 0 1 18 -6 M2 16h.01 M21.8 16c.2 -2 .131 -5.354 0 -6 M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34 -2 M8.65 22c.21 -.66 .45 -1.32 .57 -2 M9 6.8a6 6 0 0 1 9 5.2v2`,"arrow-left-right":`M8 3 4 7l4 4 M4 7h16 M16 21l4 -4 -4 -4 M20 17H4`,repeat:`M17 2l4 4 -4 4 M3 11v-1a4 4 0 0 1 4 -4h14 M7 22l-4 -4 4 -4 M21 13v1a4 4 0 0 1 -4 4H3`,timer:`M10 2L14 2 M12 14L15 11 M4 14a8 8 0 1 0 16 0a8 8 0 1 0 -16 0`,hourglass:`M5 22h14 M5 2h14 M17 22v-4.172a2 2 0 0 0 -.586 -1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22 M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414 -4.414A2 2 0 0 0 17 6.172V2`,"badge-percent":`M3.85 8.62a4 4 0 0 1 4.78 -4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1 -4.77 4.78 4 4 0 0 1 -6.75 0 4 4 0 0 1 -4.78 -4.77 4 4 0 0 1 0 -6.76 Z M15 9l-6 6 M9 9h.01 M15 15h.01`,"party-popper":`M5.8 11.3 2 22l10.7 -3.79 M4 3h.01 M22 8h.01 M15 2h.01 M22 20h.01 M22 2l-2.24 .75a2.9 2.9 0 0 0 -1.96 3.12c.1 .86 -.57 1.63 -1.45 1.63h-.38c-.86 0 -1.6 .6 -1.76 1.44L14 10 M22 13l-.82 -.33c-.86 -.34 -1.82 .2 -1.98 1.11c-.11 .7 -.72 1.22 -1.43 1.22H17 M11 2l.33 .82c.34 .86 -.2 1.82 -1.11 1.98C9.52 4.9 9 5.52 9 6.23V7 M11 13c1.93 1.93 2.83 4.17 2 5 -.83 .83 -3.07 -.07 -5 -2 -1.93 -1.93 -2.83 -4.17 -2 -5 .83 -.83 3.07 .07 5 2 Z`,ticket:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2 -2v-2a3 3 0 0 1 0 -6V7a2 2 0 0 0 -2 -2H4a2 2 0 0 0 -2 2 Z M13 5v2 M13 17v2 M13 11v2`,tag:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0 -2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58 -6.58a2.426 2.426 0 0 0 0 -3.42 z M7 7.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0`,store:`M2 7l4.41 -4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42 .59L22 7 M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-8 M15 22v-4a2 2 0 0 0 -2 -2h-2a2 2 0 0 0 -2 2v4 M2 7h20 M22 7v3a2 2 0 0 1 -2 2a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1 -1.59 -.63 .7 .7 0 0 0 -.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1 -2 -2V7`,package:`M11 21.73a2 2 0 0 0 2 0l7 -4A2 2 0 0 0 21 16V8a2 2 0 0 0 -1 -1.73l-7 -4a2 2 0 0 0 -2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73 z M12 22V12 M3.3 7l7.703 4.734a2 2 0 0 0 1.994 0L20.7 7 M7.5 4.27l9 5.15`,truck:`M14 18V6a2 2 0 0 0 -2 -2H4a2 2 0 0 0 -2 2v11a1 1 0 0 0 1 1h2 M15 18H9 M19 18h2a1 1 0 0 0 1 -1v-3.65a1 1 0 0 0 -.22 -.624l-3.48 -4.35A1 1 0 0 0 17.52 8H14 M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,bike:`M15 17.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0 M2 17.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0 M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0 M12 17.5V14l-3 -3 4 -3 2 3h2`,bus:`M8 6v6 M15 6v6 M2 12h19.6 M18 18h3s.5 -1.7 .8 -2.8c.1 -.4 .2 -.8 .2 -1.2 0 -.4 -.1 -.8 -.2 -1.2l-1.4 -5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0 -2 2v10h3 M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0 M9 18h5 M14 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,"train-front":`M8 3.1V7a4 4 0 0 0 8 0V3.1 M9 15l-1 -1 M15 15l1 -1 M9 19c-2.8 0 -5 -2.2 -5 -5v-4a8 8 0 0 1 16 0v4c0 2.8 -2.2 5 -5 5 Z M8 19l-2 3 M16 19l2 3`,shield:`M20 13c0 5 -3.5 7.5 -7.66 8.95a1 1 0 0 1 -.67 -.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1 -1c2 0 4.5 -1.2 6.24 -2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1 z`,lightbulb:`M15 14c.2 -1 .7 -1.7 1.5 -2.5 1 -.9 1.5 -2.2 1.5 -3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5 .7 .7 1.3 1.5 1.5 2.5 M9 18h6 M10 22h4`,"thumbs-up":`M7 10v12 M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2h2.76a2 2 0 0 0 1.79 -1.11L12 2a3.13 3.13 0 0 1 3 3.88 Z`,"circle-dollar-sign":`M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0 M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8 M12 18V6`},xi=Object.keys(bi),Si=[`rtl`,`ltr`],Ci=[`sequence`,`beats`,`together`],wi=[`off`,`subtle`,`lively`],Ti=[`direction`,`build`,`life`,`fixes`],Ei=[`icon`,`icons`,`build`,`life`],Di=(e,t)=>{throw Error(`${e}: ${t}`)},Oi=e=>!!e&&typeof e==`object`&&!Array.isArray(e),ki=(e,t,n)=>t.includes(e)?e:Di(n,`ערך לא נתמך (${t.join(` / `)})`),Ai=(e,t)=>typeof e==`string`&&e in bi?e:Di(t,`אייקון לא מוכר. אפשריים: ${xi.join(`, `)}`);function ji(e){if(!Oi(e))return Di(`config`,`נדרש אובייקט`);e.format!==`motiondesk-config/v4`&&Di(`format`,`נדרש "motiondesk-config/v4"`);let t={direction:e.direction===void 0?`rtl`:ki(e.direction,Si,`direction`),build:e.build===void 0?`sequence`:ki(e.build,Ci,`build`),life:e.life===void 0?`subtle`:ki(e.life,wi,`life`),fixes:e.fixes===void 0?!0:typeof e.fixes==`boolean`?e.fixes:Di(`fixes`,`נדרש true/false`)};Array.isArray(e.scenes)||Di(`scenes`,`נדרשת רשימת סצנות`);let n=e.scenes.map((e,t)=>{if(!Oi(e))return Di(`scenes.${t}`,`נדרש אובייקט`);let n=e,r=`scenes.${t}`;return n.icon!==void 0&&Ai(n.icon,`${r}.icon`),n.icons!==void 0&&((!Array.isArray(n.icons)||n.icons.length<1||n.icons.length>8)&&Di(`${r}.icons`,`נדרשים 1–8 אייקונים`),n.icons.forEach((e,t)=>Ai(e,`${r}.icons.${t}`))),n.build!==void 0&&ki(n.build,Ci,`${r}.build`),n.life!==void 0&&ki(n.life,wi,`${r}.life`),n.background!==void 0&&n.background!==`aurora`&&![`solid`,`gradient`,`grid`,`dots`,`motif`].includes(n.background)&&Di(`${r}.background`,`ערך לא נתמך`),n}),r={};for(let[t,n]of Object.entries(e))Ti.includes(t)||(r[t]=n);r.format=`motiondesk-config/v3`;let i=e.aspectRatio??`16:9`;return r.scenes=n.map(e=>{let n={};for(let[t,r]of Object.entries(e))Ei.includes(t)||(n[t]=r);return n.background===`aurora`&&(n.background=`solid`),t.fixes&&i===`16:9`&&(n.type===`phone`&&n.variant!==`split`&&(n.variant=`split`),n.type===`compare`&&n.variant===`split`&&(n.variant=`stacked`)),n}),{config:e,v3:It(r),options:t}}var Mi=new Set([`מעבר גוון`,`רשת אנכית`,`רשת אופקית`,`טבעת ראשונה`,`טבעת שנייה`,`קו מערכת`,`מספר סצנה`,`ציר סצנה`,`קצב סצנה`,`כותרת`,`כותרת משנה`]),Ni=e=>Mi.has(e.name)||/^רשת נקודות \d+$/.test(e.name)||/^אור סביבה \d+$/.test(e.name),Pi={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};function Fi(e){let t=e.match(/[a-zA-Z]|-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/g)??[],n=[],r=0,i=``;for(;r<t.length;){/[a-zA-Z]/.test(t[r])&&(i=t[r++]);let e=Pi[i.toUpperCase()];if(e===void 0)throw Error(`path command ${i}`);if(e===0){n.push({cmd:i,args:[]});continue}let a=t.slice(r,r+e).map(Number);if(a.length<e)break;r+=e,n.push({cmd:i,args:a}),i===`M`?i=`L`:i===`m`&&(i=`l`)}return n}var Ii=e=>String(Math.round(e*1e3)/1e3),Li=e=>e.map(e=>e.cmd+e.args.map(Ii).join(` `)).join(` `);function Ri(e,t,n=0,r=0){return Li(Fi(e).map(({cmd:e,args:i})=>{let a=e===e.toUpperCase(),o=e.toUpperCase();return{cmd:e,args:i.map((e,i)=>{if(o===`A`&&(i===2||i===3||i===4))return e;let s=e*t;if(!a)return s;let c=o===`H`?!0:o===`V`?!1:o===`A`?i===5||i===0:i%2==0;return o===`A`&&i<2?s:s+(c?n:r)})}}))}function zi(e,t){return Li(Fi(e).map(({cmd:e,args:n})=>{let r=e===e.toUpperCase(),i=e.toUpperCase();return{cmd:e,args:n.map((e,n)=>{if(i===`A`){if(n===4)return+!e;if(n!==5)return e}else if(i===`V`)return e;else if(i!==`H`&&n%2==1)return e;return r?t-e:-e})}}))}function Bi(e,t){e.x=t-e.x-e.width,e.rotation=-(e.rotation??0),e.rotateY&&=-e.rotateY,e.skewX&&=-e.skewX,e.transformOrigin===`left center`?e.transformOrigin=`right center`:e.transformOrigin===`right center`&&(e.transformOrigin=`left center`),e.textAlign===`left`?e.textAlign=`right`:e.textAlign===`right`&&(e.textAlign=`left`),(e.type===`path`||e.type===`svg`)&&e.pathData&&(e.pathData=zi(e.pathData,e.width));let n=e=>{let t={...e,x:-(e.x??0),rotation:-(e.rotation??0)};return e.rotateY!==void 0&&(t.rotateY=-e.rotateY),e.skewX!==void 0&&(t.skewX=-e.skewX),e.clip&&e.clip.type===`inset`&&(t.clip={...e.clip,left:e.clip.right,right:e.clip.left}),e.clip&&e.clip.type===`circle`&&(t.clip={...e.clip,x:100-e.clip.x}),t};if(e.keyframes&&=e.keyframes.map(n),e.textUnitKeyframes&&=e.textUnitKeyframes.map(n),e.clip&&e.clip.type===`inset`&&(e.clip={...e.clip,left:e.clip.right,right:e.clip.left}),e.children)for(let t of e.children)Bi(t,e.width)}var Vi=new Set([`timeline`,`map-route`,`cards`,`compare`,`bars`,`progress`,`checklist`,`notification-stack`,`chat`]);function Hi(e){if(Ni(e)||/^קו גרף /.test(e.name))return 0;if(/^כרטיס פעולה/.test(e.name))return 99;let t=/ (\d+)$/.exec(e.name);return t?Number(t[1]):0}function Ui(e,t){let n=t|0;for(let t of e)n=Math.imul(n^t.charCodeAt(0),16777619);return n|0}function Wi(e,t,n,r,i,a,o,s=0){let c=i/24;return Rt(`path`,{name:e,x:n,y:r,width:i,height:i,pathData:Ri(bi[t],c),color:a,stroke:a,strokeWidth:Math.max(1.5,2*c),motion:`none`,motionOut:`none`,start:0,duration:o,depth:0,keyframes:[{...Gi(0),reveal:0,opacity:0},{...Gi(Math.min(o*.9,s)),reveal:0,opacity:0},{...Gi(Math.min(o*.95,s+o*.06)),reveal:.05,opacity:1},{...Gi(Math.min(o*.97,s+o*.32)),reveal:1,easing:[.16,.85,.22,1]},{...Gi(o),reveal:1}]})}function Gi(e){return{at:e,x:0,y:0,scaleX:1,scaleY:1,rotation:0,opacity:1}}function Ki(e){let{config:t,v3:n,options:r}=ji(e),i=Ln(n),a={fixes:[],notes:[],coverage:{overall:0,scenes:[]}},o=t.aspectRatio??`16:9`;t.scenes.forEach((e,t)=>{r.fixes&&o===`16:9`&&(e.type===`phone`&&e.variant!==`split`&&a.fixes.push(`scene ${t+1}: phone in 16:9 laid out as "split" (was ${e.variant??`default`})`),e.type===`compare`&&e.variant===`split`&&a.fixes.push(`scene ${t+1}: compare in 16:9 laid out as "stacked"`))});let{width:s,height:c}=i.canvas,l=Math.min(s,c),u=0;return i.scenes.forEach((e,o)=>{let d=t.scenes[o];Ji(e,d,{...r,build:d.build??r.build,life:d.life??r.life},{w:s,h:c,base:l,seed:(n.seed??1)+o*101,beats:(i.beats??[]).map(e=>e-u).filter(t=>t>0&&t<e.duration),report:a,index:o,palette:qi(e)}),u+=e.duration}),i.title=t.title??i.title,a.coverage=ta(i),{project:i,report:a}}function qi(e){return{bg:e.background}}function Ji(e,t,n,r){let i=e.duration,{base:a}=r,o=e.layers,s=e=>o.find(t=>t.name===e),c=s(`קצב סצנה`)?.color??`#ffffff`,l=s(`קו מערכת`)?.color??`#ffffff`,u=o.filter(e=>!Ni(e));if(n.fixes){if(t.type===`confetti`){let e=s(`חותם חגיגה`),t=s(`חותם`);if(e&&t){t.textUnitColors=void 0,t.color=Dn(e.color,`#ffffff`,`#101216`),t.keyframes=e.keyframes?.map(e=>({...e})),t.splitText=`none`,t.textUnitKeyframes=void 0;let n=o.indexOf(e),i=o.indexOf(t);i<n&&(o.splice(i,1),o.splice(o.indexOf(e)+1,0,t)),r.report.fixes.push(`scene ${r.index+1}: confetti badge label locked to the badge`)}}let e=s(`דיסק תנועה`),n=s(`ליבת דיסק`);e&&n&&e.modifiers?.length&&(n.modifiers=e.modifiers.map(e=>({...e})))}if(n.direction===`rtl`){let e=s(`קצב סצנה`);if(e&&(e.transformOrigin=`right center`),Vi.has(t.type)){let e=u.filter(e=>e.type!==`repeater`);if(e.length){let t=Math.min(...e.map(e=>e.x)),n=Math.max(...e.map(e=>e.x+e.width));for(let r of e)Bi(r,t+n)}}for(let e of o){if(e.type!==`shape`||!e.revealBinding)continue;let t=o.find(t=>t.id===e.revealBinding.layerId),{from:n,to:r}=e.revealBinding,i=t?.keyframes?.filter(e=>typeof e.value==`number`);if(!t||!i?.length||t.start!==e.start)continue;let a=e=>({type:`inset`,top:0,right:0,bottom:0,left:Math.max(0,Math.min(100,(1-(e-n)/(r-n))*100))});e.keyframes=i.map(e=>({...Gi(e.at),opacity:e.opacity??1,clip:a(e.value),easing:e.easing})),e.keyframes[0].opacity=1,delete e.revealBinding}}let d=t.icons??(t.icon?[t.icon]:void 0);if(d){let e=e=>d[Math.min(e,d.length-1)],a=(e,t)=>o.splice(o.indexOf(e)+1,0,t);if(t.type===`cards`)for(let t=1;s(`כרטיס ${t}`);t++){let n=s(`כרטיס ${t}`),o=s(`מספר כרטיס ${t}`),c=Math.min(n.width,n.height)*.24,u=(o?o.x+o.width/2:n.x)>n.x+n.width/2?n.x+n.width*.07:n.x+n.width*.93-c;a(s(`טקסט כרטיס ${t}`)??n,Wi(`אייקון כרטיס ${t}`,e(t-1),u,n.y+n.height*.08,c,Dn(n.color,l,r.palette.bg),i,i*.12))}if(t.type===`checklist`||t.type===`notification-stack`)for(let t=1;s(`סימון ${t}`);t++){let n=s(`סימון ${t}`);s(`התראה ${t}`);let r=Math.min(n.width,n.height)*.9,a=Wi(`אייקון ${t}`,e(t-1),n.x+(n.width-r)/2,n.y+(n.height-r)/2,r,n.color,i,i*.1);o.splice(o.indexOf(n),1,a)}if(t.type===`timeline`)for(let t=1;s(`תחנה ${t}`);t++){let n=s(`תחנה ${t}`),o=n.width*1.9;n.x-=(o-n.width)/2,n.y-=(o-n.height)/2,n.width=o,n.height=o,n.borderRadius=o,a(n,Wi(`אייקון תחנה ${t}`,e(t-1),n.x+o*.22,n.y+o*.22,o*.56,Dn(n.color,r.palette.bg,l),i,i*.1))}if(t.type===`hook`||t.type===`endcard`||t.type===`confetti`){let t=s(`ליבת דיסק`)??s(`חותם חגיגה`);if(t){let n=t.name===`ליבת דיסק`,r=Math.min(t.width,t.height)*(n?.62:.42),o=t.x+(t.width-r)/2,l=n?t.y+(t.height-r)/2:t.y+t.height*.1,u=Wi(`אייקון מרכזי`,e(0),o,l,r,n?c:Dn(t.color,`#ffffff`,`#101216`),i,i*.2);if(t.modifiers&&(u.modifiers=t.modifiers.map(e=>({...e}))),a(t,u),!n){let e=s(`חותם`);e&&(e.y+=t.height*.22,e.height*=.7)}}}if(t.type===`phone`){let t=s(`טלפון`);if(t?.children)for(let r=1;t.children.find(e=>e.name===`כרטיס מסך ${r}`);r++){let a=t.children.find(e=>e.name===`כרטיס מסך ${r}`),o=t.children.find(e=>e.name===`שורת מסך ${r}`),s=a.height*.56,c=n.direction===`rtl`,u=c?a.x+a.width-s-a.height*.22:a.x+a.height*.22;o&&(o.width-=s*1.2,c||(o.x+=s*1.2));let d=Wi(`אייקון מסך ${r}`,e(r-1),u,a.y+(a.height-s)/2,s,o?.color??l,i,i*.3);t.children.splice(t.children.indexOf(o??a)+1,0,d)}}[`big-number`,`counter`,`donut`,`progress`,`coins`,`compare`,`bars`,`line-chart`,`map-route`,`chat`,`kinetic`,`marquee`,`ui-cursor`,`quote`,`freeze`,`logo`].includes(t.type)&&r.report.notes.push(`scene ${r.index+1}: icons are not placed in "${t.type}" scenes (supported: cards, checklist, notification-stack, timeline, phone, hook, endcard, confetti)`)}if(t.background===`aurora`){let e=o.find(e=>/^(כרטיס|אפשרות|התראה|בועה|עמודה) \d+$/.test(e.name)&&e.color!==c)?.color??l;[[.12,.1,.62,c,.2],[.58,.42,.56,e,.16],[.3,.65,.45,c,.12]].forEach(([e,t,n,s,c],l)=>{let u=a*n*1.6,d=Rt(`shape`,{name:`אור סביבה ${l+1}`,x:r.w*e-u*.25,y:r.h*t-u*.25,width:u,height:u,color:s,opacity:c,borderRadius:u,blur:a*.09,motion:`none`,motionOut:`none`,start:0,duration:i,depth:1,keyframes:[{...Gi(0),opacity:0,scaleX:.8,scaleY:.8},{...Gi(Math.min(i*.3,.9))},{...Gi(i),scaleX:1.12,scaleY:1.12,easing:`linear`}],modifiers:[{type:`orbit`,amplitude:a*(.05+l*.015),frequency:.09+l*.03,seed:Ui(`aurora`,r.seed+l)}]});o.splice(l,0,d)})}let f=new Map;for(let e of o){let t=Hi(e);t&&f.set(t,[...f.get(t)??[],e])}let p=n.build!==`together`&&![`bars`,`kinetic`,`marquee`,`line-chart`,`coins`,`confetti`,`counter`,`donut`,`big-number`,`progress`,`ui-cursor`,`hook`,`endcard`,`freeze`,`quote`,`logo`].includes(t.type)&&f.size>1,m=[...f.keys()].sort((e,t)=>e-t),h=new Map;if(p){let e=m.filter(e=>e!==99),a=e.length,o=Math.min(.75,i*.16),s=Math.max(0,Math.min(i*.5-o,(a-1)*.8)),c=a>1?s/(a-1):0;e.forEach((s,l)=>{let u=o+l*c;if(t.type===`map-route`&&(u=i*(.12+.58*(a>1?l/(a-1):1))-.2),n.build===`beats`&&r.beats.length){let t=l?h.get(e[l-1]):-1,n=r.beats.find(e=>e>=u-.05&&e>t+.05);n!==void 0&&(u=n)}h.set(s,Math.max(0,Math.min(u,i*.7)))}),f.has(99)&&h.set(99,Math.min(i*.72,(h.get(e.at(-1))??o)+Math.min(.6,c||.6)));for(let[e,t]of f){let n=h.get(e)??0;if(!(n<=0))for(let e of t){let t=Math.max(.3,i-n),r=t/i;e.start=n,e.duration=t,e.keyframes&&=e.keyframes.map(e=>({...e,at:Math.min(t,e.at*r)}))}}r.report.notes.push(`scene ${r.index+1}: ${h.size} items staged from ${Math.min(...h.values()).toFixed(2)}s to ${Math.max(...h.values()).toFixed(2)}s`)}if(t.type===`phone`&&n.build!==`together`){let e=s(`טלפון`);if(e?.children){let t=e.children.filter(e=>/ \d+$/.test(e.name));for(let e of t){let t=Number(/ (\d+)$/.exec(e.name)[1]),n=Math.min(i*.7,i*.22+t*Math.min(.45,i*.1));e.keyframes=[{...Gi(0),opacity:0,y:a*.03,scaleX:.92,scaleY:.92},{...Gi(n),opacity:0,y:a*.03,scaleX:.92,scaleY:.92},{...Gi(Math.min(i*.96,n+.45)),easing:{stiffness:170,damping:16,mass:1}},{...Gi(i*.96)}]}}}if(n.life!==`off`){let e=a*(n.life===`lively`?.012:.0075);for(let[t,i]of f){let a=Ui(`item${t}`,r.seed),o=.18+Math.abs(a)%100/100*.14,s={type:n.life===`lively`&&t%2==0?`orbit`:`float`,amplitude:e,frequency:o,seed:a};for(let e of i)!e.modifiers?.length&&e.type!==`repeater`&&(e.modifiers=[{...s}])}if(!f.size||t.type===`bars`){let t=Ui(`hero`,r.seed);for(let n of u)!n.modifiers?.length&&n.type!==`repeater`&&!f.has(Hi(n))&&(n.modifiers=[{type:`float`,amplitude:e,frequency:.21,seed:t}])}let i=s(`כותרת`),o=s(`כותרת משנה`),c=Ui(`header`,r.seed);for(let t of[i,o])t&&!t.modifiers?.length&&(t.modifiers=[{type:`float`,amplitude:e*.55,frequency:.16,seed:c}]);if(n.life===`lively`)for(let e of[`טבעת ראשונה`,`טבעת שנייה`]){let t=s(e);t&&(t.modifiers=[...t.modifiers??[],{type:`spin`,amplitude:6,frequency:1,seed:c}])}}if(n.life!==`off`){let t=i-Math.max(.35,e.transitionDuration??.4),r=[],u=e=>/^#[0-9a-f]{6}$/i.test(e)?Yi(e,l,.32):void 0;for(let[e,n]of f){if(e===99)continue;let i=n.find(e=>e.type===`shape`)??n[0],o=i.start+Math.min(i.duration*.5,(i.keyframes?.[1]?.at??.3)+.12);r.push(o);let s=o+.5;if(!(s+.42>t))for(let e of n){if(!e.keyframes?.length)continue;let t=s-e.start;if(t<=0||t+.42>=e.duration)continue;let n=e.type===`shape`?u(e.color):void 0;Zi(e,t,{y:-a*.024,color:n,baseColor:e.color})}}let d=[`מונה`,`מספר גדול`,`מונה התקדמות`,`סכום`].map(s).find(Boolean);if(d?.keyframes?.length&&!f.size){let e=Math.min(t-.45,i*.7);e>i*.5&&Zi(d,e-d.start,{scale:1.09}),r.push(i*.66)}let p=s(`דיסק תנועה`)??s(`חותם חגיגה`)??s(`מסילת טבעת`);if(p){let e=Math.max(p.width,p.height),t=Rt(`shape`,{name:`גל הדגשה`,x:p.x,y:p.y,width:p.width,height:p.height,color:`transparent`,borderColor:c,borderWidth:Math.max(2,a*.006),borderRadius:e,opacity:1,motion:`none`,motionOut:`none`,start:0,duration:i,depth:p.depth??0,modifiers:p.modifiers?.map(e=>({...e})),keyframes:Qi([i*.38,i*.68].filter(e=>e+.7<i),i)});t.keyframes.length>1&&(t.opacity=.9,o.splice(o.indexOf(p),0,t),r.push(i*.38))}n.life===`lively`&&e.camera?.keyframes?.length&&r.length&&(e.camera.keyframes=$i(e.camera.keyframes,r.filter(e=>e>.2&&e+.5<t).sort((e,t)=>e-t),.014))}}function Yi(e,t,n){let r=(e,t)=>parseInt(e.slice(1+t*2,3+t*2),16);return`#`+[0,1,2].map(i=>Math.round(r(e,i)*(1-n)+r(t,i)*n).toString(16).padStart(2,`0`)).join(``)}function Xi(e,t){let n=[...e].sort((e,t)=>e.at-t.at);if(t<=n[0].at)return{...n[0],at:t};for(let e=0;e<n.length-1;e++){let r=n[e],i=n[e+1];if(t>=r.at&&t<=i.at){let e=(t-r.at)/Math.max(1e-6,i.at-r.at),n=(t,n,r=0)=>(t??r)+((n??r)-(t??r))*e,a={...r,at:t,x:n(r.x,i.x),y:n(r.y,i.y),scaleX:n(r.scaleX,i.scaleX,1),scaleY:n(r.scaleY,i.scaleY,1),rotation:n(r.rotation,i.rotation),opacity:n(r.opacity,i.opacity,1)};return(r.value!==void 0||i.value!==void 0)&&(a.value=n(r.value??i.value,i.value??r.value)),(r.reveal!==void 0||i.reveal!==void 0)&&(a.reveal=n(r.reveal,i.reveal,1)),delete a.easing,delete a.snapToBeat,a}}return{...n[n.length-1],at:t}}function Zi(e,t,n){let r=e.keyframes,i=Xi(r,t),a=Xi(r,t+.16),o=Xi(r,t+.46),s={...a,y:(a.y??0)+(n.y??0),scaleX:(a.scaleX??1)*(n.scale??1),scaleY:(a.scaleY??1)*(n.scale??1),easing:[.2,.9,.3,1]},c={...o,easing:{stiffness:210,damping:15,mass:1}};n.color&&(i.color=n.baseColor,s.color=n.color,c.color=n.baseColor);let l=r.filter(e=>e.at<t-.001||e.at>t+.46+.001);if(n.color)for(let e of l)e.at>t&&e.color===void 0&&(e.color=n.baseColor);e.keyframes=[...l,i,s,c].sort((e,t)=>e.at-t.at)}function Qi(e,t){let n=[{...Gi(0),opacity:0}];for(let r of e)r+.75>t||r-.01<=n.at(-1).at||(n.push({...Gi(Math.max(n.at(-1).at+.01,r-.01)),opacity:0,scaleX:.96,scaleY:.96}),n.push({...Gi(r+.06),opacity:.75,scaleX:1,scaleY:1,easing:`linear`}),n.push({...Gi(r+.75),opacity:0,scaleX:1.55,scaleY:1.55,easing:`ease-out`}));return n.at(-1).at<t&&n.push({...n.at(-1),at:t}),n.length>2?n:[{...Gi(0),opacity:0}]}function $i(e,t,n){let r=t=>{let n=[...e].sort((e,t)=>e.at-t.at);if(t<=n[0].at)return{...n[0],at:t};for(let e=0;e<n.length-1;e++)if(t>=n[e].at&&t<=n[e+1].at){let r=(t-n[e].at)/Math.max(1e-6,n[e+1].at-n[e].at),i=(e,t)=>e+(t-e)*r;return{at:t,x:i(n[e].x,n[e+1].x),y:i(n[e].y,n[e+1].y),zoom:i(n[e].zoom,n[e+1].zoom),rotation:i(n[e].rotation,n[e+1].rotation)}}return{...n[n.length-1],at:t}},i=[...e],a=-1;for(let e of t){if(e<a+.5)continue;a=e;let t=r(e),o=r(e+.12),s=r(e+.5);i=i.filter(t=>t.at<e-.001||t.at>e+.5+.001),i.push({...t,easing:`linear`},{...o,zoom:o.zoom+n,easing:`ease-out`},{...s,easing:`smooth`})}return i.sort((e,t)=>e.at-t.at)}var G=(e,t,n)=>{let r=e[t];return typeof r==`number`?r:n};function ea(e,t,n,r){let i=Math.max(.001,t.at-e.at),a=(n,r)=>Math.abs(G(t,n,r)-G(e,n,r))/i;return a(`x`,0)+a(`y`,0)>=n*.008||a(`scaleX`,1)>=.03||a(`scaleY`,1)>=.03||a(`scale`,1)>=.03||a(`rotation`,0)>=3||a(`rotateY`,0)>=3||a(`rotateX`,0)>=3||a(`opacity`,1)>=.2||a(`reveal`,1)>=.1||a(`blur`,0)>=2||e.value!==void 0&&t.value!==void 0&&e.value!==t.value||JSON.stringify(e.clip??r.clip)!==JSON.stringify(t.clip??r.clip)}function ta(e){let t=Math.min(e.canvas.width,e.canvas.height),n=[],r=0,i=0;for(let a of e.scenes){let e=Math.max(1,Math.round(a.duration*12)),o=0,s=[],c=(e,t)=>{for(let n of e)Ni(n)||(s.push({...n,start:n.start+t}),n.children&&c(n.children,n.start+t))};c(a.layers,0);for(let n=0;n<e;n++){let e=(n+.5)/12;s.some(n=>{let r=e-n.start;if(r<0||r>n.duration)return!1;if(n.modifiers?.some(e=>e.type===`spin`?Math.abs(e.amplitude*e.frequency)>=3:2*Math.PI*e.frequency*e.amplitude>=t*.008))return!0;let i=n.keyframes;if(i&&i.length>1){for(let e=0;e<i.length-1;e++)if(r>=i[e].at&&r<i[e+1].at&&ea(i[e],i[e+1],t,n))return!0}if(n.splitText&&n.splitText!==`none`&&n.textUnitKeyframes?.length){let e=(n.text??``).split(n.splitText===`word`?/\s+/:``).filter(Boolean).length;if(r<(n.motionDelay??0)+e*(n.stagger??.08)+n.textUnitKeyframes.at(-1).at)return!0}return!!(n.type===`repeater`&&i&&i.length>1&&r<i.at(-1).at)})&&o++}n.push(o/e),r+=e,i+=o}return{overall:r?i/r:0,scenes:n}}function na(e,t={}){return{...structuredClone(e),format:`motiondesk-config/v4`,...t}}var ra=e=>Object.assign(Object.create(null),e),ia=e=>!!e&&typeof e==`object`&&!Array.isArray(e),aa=`motiondesk-config/v4`,oa=`motiondesk-config/v3`,sa=[`format`,`title`,`theme`,`aspectRatio`,`fps`,`palette`,`seed`,`beats`,`motionBlur`,`direction`,`build`,`life`,`fixes`,`scenes`],ca=`type.duration.title.subtitle.label.product.cta.words.items.rows.to.beat.ring.transition.variant.energy.background.camera.emphasis.accent.value.from.prefix.suffix.decimals.thousands.max.values.icon.icons.build.life`.split(`.`),la=[`16:9`,`9:16`,`1:1`],ua=[24,25,30,60],da=[...Dt,`aurora`],fa=[`background`,`foreground`,`accent`,`secondary`],K={rootTitle:120,text:220,emphasis:80,affix:24,list:20,rows:12,cells:3,valuesMin:2,valuesMax:20,scenes:30,beats:1e3,icons:8},pa=1e9,ma=-2147483648,ha=2147483647,ga=new Set([`hook`,`endcard`,`cards`,`checklist`,`notification-stack`,`timeline`,`phone`]),_a=new Set([`cards`,`checklist`,`notification-stack`,`timeline`,`phone`]),va=new Set(xi),ya=ra({config:`הקונפיגורציה`,format:`פורמט`,title:`כותרת הסרטון`,theme:`ערכת נושא`,aspectRatio:`יחס מסך`,fps:`קצב פריימים`,palette:`פלטה`,seed:`seed`,beats:`נקודות קצב`,motionBlur:`טשטוש תנועה`,direction:`כיוון`,build:`בנייה`,life:`תנועה מתמשכת`,fixes:`תיקוני פריסה`,scenes:`סצנות`}),ba=ra({type:`סוג`,duration:`משך`,title:`כותרת`,subtitle:`כותרת משנה`,label:`תווית`,product:`מוצר`,cta:`קריאה לפעולה`,words:`מילים`,items:`פריטים`,rows:`שורות`,to:`ערך יעד`,beat:`קצב מילים`,ring:`טבעת`,transition:`מעבר`,variant:`פריסה`,energy:`אנרגיה`,background:`רקע`,camera:`מצלמה`,emphasis:`הדגשה`,accent:`צבע הדגשה`,value:`ערך`,from:`ערך התחלה`,prefix:`קידומת`,suffix:`סיומת`,decimals:`ספרות אחרי הנקודה`,thousands:`מפריד אלפים`,max:`מקסימום`,values:`ערכים`,icon:`אייקון`,icons:`אייקונים`,build:`בנייה`,life:`תנועה מתמשכת`}),xa=ra({words:`מילה`,items:`פריט`,rows:`שורה`,values:`ערך`,icons:`אייקון`,beats:`נקודה`,scenes:`סצנה`,layers:`שכבה`,children:`שכבה`,keyframes:`נקודת מפתח`,textUnitKeyframes:`נקודת מפתח`,modifiers:`משנה`,assets:`נכס`,mediaTracks:`רצועה`,clips:`קטע`}),Sa=ra({background:`רקע`,foreground:`טקסט`,accent:`הדגשה`,secondary:`משני`,samples:`דגימות`,shutterAngle:`זווית תריס`,layers:`שכבות`,children:`שכבות פנימיות`,keyframes:`נקודות מפתח`,camera:`מצלמה`,at:`זמן`,name:`שם`,text:`טקסט`,canvas:`קנבס`,configV3:`מתכון`}),q=(e,t=40)=>{let n=typeof e==`string`?e:JSON.stringify(e)??String(e);return n.length>t?n.slice(0,t-1)+`…`:n},Ca=class{list=[];add(e){this.list.includes(e)||this.list.push(e)}get out(){return this.list.length>80?[...this.list.slice(0,79),`ועוד ${this.list.length-79} תיקונים קטנים`]:[...this.list]}},wa=new Set([`“`,`”`,`„`,`‟`]),Ta=/[\u00a0\u200b-\u200f\u202a-\u202e\u2060-\u2069\ufeff\u2028\u2029]/,Ea=ra({comment:`הוסרו הערות (// או /* */) שאינן חוקיות ב־JSON`,trailing:`הוסרו פסיקים מיותרים`,comma:`נוספו פסיקים חסרים`,smart:`מירכאות מעוצבות (“ ”) שימשו כגבולות מחרוזת והוחלפו במירכאות JSON`,inner:`מירכאות בתוך טקסט סומנו כחלק מהטקסט`,newline:`שורות חדשות בתוך מחרוזות תוקנו`,escape:`לוכסנים הפוכים (\\) לא חוקיים תוקנו`,key:`נוספו מירכאות לשמות שדות`,literal:`ערכים כמו True/None תוקנו ל־true/null`,bare:`מילים בלי מירכאות הפכו לטקסט`,number:`מספרים בכתיב לא תקני תוקנו`,bracket:`סוגריים שלא נסגרו נכון תוקנו`,invisible:`הוסרו תווים בלתי נראים מחוץ לטקסט`,stray:`הוסרו תווים מיותרים מחוץ לטקסט`,novalue:`שדות בלי ערך קיבלו null`,colon:`נוספו נקודתיים (:) חסרות`,truncated:`התשובה נקטעה באמצע — נסגרו הסוגריים החסרים (ייתכן שחסר סוף הקונפיגורציה)`});function Da(e,t){for(;;){for(;t<e.length&&(/\s/.test(e[t])||Ta.test(e[t]));)t++;if(e[t]===`/`&&e[t+1]===`/`){let n=e.indexOf(`
|
|
135
135
|
`,t);t=n<0?e.length:n}else if(e[t]===`/`&&e[t+1]===`*`){let n=e.indexOf(`*/`,t+2);t=n<0?e.length:n+2}else return t}}var Oa=ra({true:`true`,false:`false`,null:`null`,True:`true`,False:`false`,None:`null`,TRUE:`true`,FALSE:`false`,NULL:`null`,undefined:`null`,NaN:`null`,Infinity:`null`});function ka(e,t){let n=[],r=new Set,i=[],a=t,o=!1,s=!1,c=!1,l=!1,u=!1,d=!1,f={len:0,depth:0},p=()=>i[i.length-1]===`}`,m=()=>{f={len:n.length,depth:i.length}},h=()=>{l=!0,u=!1,m()},g=()=>{l&&i.length&&(n.push(`,`),r.add(`comma`),l=!1,u=p())},_=t=>{l=!1,u=!1;let i=e[Da(e,t)];i===`:`?d=!0:i!==void 0&&(i===`,`||i===`}`||i===`]`?(n.push(`:null`),r.add(`novalue`),h()):(n.push(`:`),r.add(`colon`)))};for(;a<e.length;){let t=e[a];if(o){if(t===`\\`){let i=e[a+1];if(i===void 0){a++;continue}if(`"\\/bfnrt`.includes(i)){n.push(t,i),a+=2;continue}if(i===`u`&&/^[0-9a-fA-F]{4}$/.test(e.slice(a+2,a+6))){n.push(e.slice(a,a+6)),a+=6;continue}n.push(`\\\\`),r.add(`escape`),a++;continue}if(t===`"`||s&&wa.has(t)){let i=Da(e,a+1),s=e[i],l=s===void 0||s===`,`||s===`:`||s===`}`||s===`]`||s===`{`||s===`[`;if(!l&&(s===`"`||wa.has(s))){let t=e[Da(e,i+1)];l=i!==a+1||t!==void 0&&t!==`,`&&t!==`}`&&t!==`]`&&t!==`:`}if(l){n.push(`"`),o=!1,a++,c?(c=!1,_(a)):h();continue}n.push(t===`"`?`\\"`:t),r.add(`inner`),a++;continue}if(t<` `){n.push(t===`
|
|
136
136
|
`?`\\n`:t===` `?`\\t`:t===`\r`?`\\r`:`\\u`+t.charCodeAt(0).toString(16).padStart(4,`0`)),r.add(`newline`),a++;continue}n.push(t),a++}else if(t===` `||t===`
|
|
137
137
|
`||t===`\r`||t===` `)n.push(t),a++;else if(Ta.test(t))n.push(` `),r.add(`invisible`),a++;else if(t===`"`||wa.has(t))g(),c=p()&&u,n.push(`"`),o=!0,s=t!==`"`,s&&r.add(`smart`),l=!1,a++;else if(t===`/`&&(e[a+1]===`/`||e[a+1]===`*`))a=Da(e,a),r.add(`comment`);else if(t===`#`){let t=/^#[0-9a-fA-F]{3,8}(?![\w-])/.exec(e.slice(a,a+10)),i=n.length-1;for(;i>=0&&/^\s*$/.test(n[i]);)i--;if(t&&n[i]===`:`){n.push(JSON.stringify(t[0])),r.add(`bare`),a+=t[0].length,h();continue}let o=e.indexOf(`
|
|
@@ -146,7 +146,7 @@ ${ni(t,i.id)}
|
|
|
146
146
|
`):void 0}catch(e){return e instanceof Error?e.message:String(e)}}function Ao(e,t,n,r){let i=e.scenes,a=i[t];if(!a)return!1;let o=e=>!!e&&e.split(`
|
|
147
147
|
`).some(e=>RegExp(`^scenes\\.${t}\\.(?:layers|camera)\\b`).test(e)),s=a.duration??4,c=e.beats;for(let l of[.15,.3,-.15,.5,-.3,.8,1.2]){let u=Math.round(Math.min(30,Math.max(.5,s+l))*100)/100;if(u===s)continue;a.duration=u;let d=i.reduce((e,t)=>e+(t.duration??4),0),f=c?.filter(e=>e<=d);if(c&&(f.length?e.beats=f:delete e.beats),!o(ko(e)))return r.add(`סצנה ${n[t]+1} · משך: שונה מ־${s} ל־${u} שניות (המנוע לא בונה את הסצנה באורך המקורי)`),c&&f.length!==c.length&&r.add(`נקודות קצב: סוננו לטווח הסרטון`),!0;a.duration=s,c&&(e.beats=c)}return!1}function jo(e,t,n){for(let r=0;r<16;r++){let r=ko(e);if(r===void 0)return{config:e,fixes:n.out};let i=/^scenes\.(\d+)\.(?:layers|camera)\b/.exec(r);if(!(i&&Ao(e,Number(i[1]),t,n))&&!Oo(e,r,t,n))return{fixes:n.out,error:Mo(r,e=>(t[e]??e)+1)}}return{fixes:n.out,error:`הקונפיגורציה לא נבנתה גם אחרי תיקונים אוטומטיים. בקשו מהמודל לתקן אותה.`}}function Mo(e,t=e=>e+1){let n=String(e??``).split(`
|
|
148
148
|
`).map(e=>e.trim()).filter(Boolean).slice(0,5);if(!n.length)return`הקונפיגורציה לא נבנתה (שגיאה לא ידועה).`;let r=new Set([...sa,`config`,`canvas`,`title`,`assets`,`mediaTracks`,`renderSettings`]);return n.map(e=>{let n=/^([A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z0-9_]+)*):\s*(.*)$/.exec(e);if(!n||!r.has(n[1].split(`.`)[0]))return/[\u05D0-\u05EA]/.test(e)?e:`שגיאה בבניית הסרטון: ${e}`;let i=n[1].split(`.`),a=[],o=!1,s=``;for(let e=0;e<i.length;e++){let n=i[e];if(e===0&&n===`config`)a.push(ya.config);else if(n===`scenes`&&/^\d+$/.test(i[e+1]??``))a.push(`סצנה ${t(Number(i[e+1]))}`),e++,o=!0,s=``;else if(/^\d+$/.test(n)){let e=Number(n)+1;s===`rows-row`?a.push(`תא ${e}`):a.push(xa[s]?`${xa[s]} ${e}`:`#${e}`),s=s===`rows`?`rows-row`:``}else a.push((o&&e>0?ba[n]??Sa[n]:e===0?ya[n]:Sa[n]??ba[n])??n),s=n}return`${a.join(` · `)}: ${n[2]||`ערך לא תקין`}`}).join(`
|
|
149
|
-
`)}function No(e){let t=new Ca;try{if(typeof e!=`string`)return{fixes:[],error:`לא התקבל טקסט לבדיקה.`};if(!e.trim())return{fixes:[],error:`התשובה ריקה. הדביקו את ה־JSON שהמודל החזיר.`};if(e.length>2e6)return{fixes:[],error:`התשובה ארוכה מדי (יותר מ־2 מיליון תווים). הדביקו רק את ה־JSON.`};let n=Aa(e,t);if(`error`in n)return{fixes:t.out,error:n.error};let r=Eo(n.picked.raw,t);return`error`in r?{fixes:t.out,error:r.error}:jo(r.config,r.orig,t)}catch(e){return{fixes:t.out,error:`אירעה שגיאה לא צפויה בתיקון התשובה${e instanceof Error&&e.message?` (${e.message})`:``}. נסו להדביק רק את ה־JSON.`}}}var Po=new Map;function Fo(e){let t=JSON.stringify(e),n=Po.get(t);if(n)return n;let{project:r}=Ki(e);return Po.size>220&&Po.delete(Po.keys().next().value),Po.set(t,r),r}var J=e=>e.scenes.reduce((e,t)=>e+(t.duration??4),0),Io=e=>{let t=[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)/255).map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return .2126*t[0]+.7152*t[1]+.0722*t[2]},Lo=(e,t)=>{let n=Io(e),r=Io(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ro=e=>typeof e==`string`&&/^#[0-9a-fA-F]{6}$/.test(e),zo=[{id:`bank-paper`,name:`נייר ואדום`,theme:`bank_red`,palette:{background:`#F3F0EA`,foreground:`#1D2129`,accent:`#D6062E`,secondary:`#2A2F3A`}},{id:`bank-night`,name:`לילה אדום`,theme:`bank_red`,palette:{background:`#10192A`,foreground:`#FFFFFF`,accent:`#FF2D55`,secondary:`#31478A`}},{id:`nova`,name:`טורקיז וסגול`,theme:`orbit`,palette:{background:`#080B16`,foreground:`#F3F1EA`,accent:`#19D3C5`,secondary:`#8B5CF6`}},{id:`lime`,name:`ליים לילי`,theme:`pulse`,palette:{background:`#071327`,foreground:`#FAF8F0`,accent:`#B5F561`,secondary:`#28416B`}},{id:`ocean`,name:`אוקיינוס`,theme:`flow`,palette:{background:`#0B1F2A`,foreground:`#F4FFFD`,accent:`#2DD4BF`,secondary:`#17394A`}},{id:`candy`,name:`ורוד חשמלי`,theme:`midnight`,palette:{background:`#1B1035`,foreground:`#FFFFFF`,accent:`#FF4D8D`,secondary:`#3B2A6B`}},{id:`sky`,name:`שמיים בהירים`,theme:`summer_ice`,palette:{background:`#EAF6FF`,foreground:`#0A2540`,accent:`#0B63C5`,secondary:`#FFC857`}},{id:`sun`,name:`שקיעה חמה`,theme:`warm`,palette:{background:`#FFF4E6`,foreground:`#2B1A10`,accent:`#C2410C`,secondary:`#F59E0B`}},{id:`forest`,name:`יער`,theme:`flow`,palette:{background:`#0E1F17`,foreground:`#F1FAEE`,accent:`#4ADE80`,secondary:`#1F4D3A`}},{id:`mono`,name:`שחור לבן`,theme:`mono`,palette:{background:`#FFFFFF`,foreground:`#111111`,accent:`#111111`,secondary:`#9CA3AF`}},{id:`gold`,name:`זהב ולילה`,theme:`midnight`,palette:{background:`#111014`,foreground:`#FAF7F0`,accent:`#F5C451`,secondary:`#3A3340`}},{id:`mint`,name:`מנטה`,theme:`summer_ice`,palette:{background:`#F0FBF7`,foreground:`#0F2A22`,accent:`#0F7B5F`,secondary:`#9BE3C9`}},{id:`royal`,name:`כחול רויאל`,theme:`orbit`,palette:{background:`#0B1340`,foreground:`#F5F7FF`,accent:`#FFC24B`,secondary:`#3D5AFE`}},{id:`coral`,name:`אלמוג`,theme:`warm`,palette:{background:`#FFF1EC`,foreground:`#2A1410`,accent:`#C2332B`,secondary:`#FF9F7A`}},{id:`med`,name:`ים תיכון`,theme:`summer_ice`,palette:{background:`#F2FAFF`,foreground:`#082B3A`,accent:`#0A6E8A`,secondary:`#F4B942`}},{id:`choco`,name:`שוקולד וקרם`,theme:`warm`,palette:{background:`#2B1B14`,foreground:`#FBF3E6`,accent:`#F2B880`,secondary:`#7A4A33`}},{id:`neon`,name:`ניאון`,theme:`pulse`,palette:{background:`#0A0A12`,foreground:`#F2F2FF`,accent:`#3DF2C5`,secondary:`#FF3DCB`}},{id:`pastel`,name:`פסטל`,theme:`summer_ice`,palette:{background:`#FBF7FF`,foreground:`#2A2340`,accent:`#6B3FD6`,secondary:`#FFB4C8`}},{id:`terra`,name:`טרקוטה`,theme:`warm`,palette:{background:`#F7EFE5`,foreground:`#2D1E16`,accent:`#A0442A`,secondary:`#6B8F71`}},{id:`slate`,name:`צפחה ותכלת`,theme:`midnight`,palette:{background:`#111827`,foreground:`#F9FAFB`,accent:`#38BDF8`,secondary:`#334155`}}];function Bo(e){let t=[],n=[],r=e.palette;return r&&Ro(r.background)&&Ro(r.accent)&&Lo(r.background,r.accent)<4.5&&n.push(`צבע ההדגשה חלש על הרקע (${Lo(r.background,r.accent).toFixed(1)}:1) — מילים מודגשות יוצגו בצבע הטקסט`),r&&Ro(r.background)&&Ro(r.foreground)&&Lo(r.background,r.foreground)<4.5&&t.push(`צבע הטקסט כמעט לא נקרא על הרקע`),e.scenes.forEach((e,t)=>{let r=`סצנה ${t+1}`;e.emphasis&&e.title&&!e.title.includes(e.emphasis)&&![`hook`,`confetti`].includes(e.type)&&n.push(`${r}: מילת ההדגשה לא מופיעה בכותרת`),e.type===`kinetic`&&(e.words?.length??0)>5&&n.push(`${r}: יותר מ־5 מילים יוצגו קטנות`),typeof e.title==`string`&&e.title.length>32&&n.push(`${r}: כותרת ארוכה`)}),{errors:t,warnings:n}}var Vo=[{type:`hook`,name:`פתיח`,group:`פתיחה`,hint:`כותרת חזקה עם דיסק ואייקון`},{type:`kinetic`,name:`טיפוגרפיה קינטית`,group:`פתיחה`,hint:`מילים גדולות שנכנסות בקצב`},{type:`freeze`,name:`רגע עצירה`,group:`פתיחה`,hint:`משפט אחד גדול עם קו`},{type:`quote`,name:`ציטוט / הבטחה`,group:`פתיחה`,hint:`משפט מרכזי עם מירכאות`},{type:`cards`,name:`כרטיסים`,group:`תוכן`,hint:`3–4 יתרונות עם אייקונים`},{type:`checklist`,name:`רשימת וי`,group:`תוכן`,hint:`מה מקבלים / מה צריך`},{type:`timeline`,name:`ציר זמן`,group:`תוכן`,hint:`שלבים מימין לשמאל`},{type:`notification-stack`,name:`התראות`,group:`תוכן`,hint:`ערימת הודעות קופצות`},{type:`chat`,name:`שיחה`,group:`תוכן`,hint:`בועות צ׳אט מתחלפות`},{type:`compare`,name:`לפני / אחרי`,group:`תוכן`,hint:`שתי אפשרויות זו מול זו`},{type:`map-route`,name:`מסלול`,group:`תוכן`,hint:`שלוש תחנות על מסלול`},{type:`marquee`,name:`סרטים נעים`,group:`תוכן`,hint:`מילים רצות וכותרת`},{type:`bars`,name:`עמודות`,group:`נתונים`,hint:`השוואת ערכים`},{type:`line-chart`,name:`גרף קו`,group:`נתונים`,hint:`מגמה לאורך זמן`},{type:`counter`,name:`מונה עם טבעת`,group:`נתונים`,hint:`מספר שעולה`},{type:`donut`,name:`דונאט`,group:`נתונים`,hint:`אחוז מתוך שלם`},{type:`progress`,name:`פס התקדמות`,group:`נתונים`,hint:`אחוז השלמה`},{type:`big-number`,name:`מספר ענק`,group:`נתונים`,hint:`מספר אחד בולט`},{type:`coins`,name:`מטבעות`,group:`נתונים`,hint:`סכום כסף עם מטבעות`},{type:`phone`,name:`מסך טלפון`,group:`מוצר`,hint:`אפליקציה עם שורות`},{type:`ui-cursor`,name:`לחיצה בממשק`,group:`מוצר`,hint:`סמן שלוחץ על כפתור`},{type:`logo`,name:`סמל מותג`,group:`סיום`,hint:`סימן מותג וחתימה`},{type:`confetti`,name:`חגיגה`,group:`סיום`,hint:`קונפטי ותג חגיגי`},{type:`endcard`,name:`כרטיס סיום`,group:`סיום`,hint:`קריאה לפעולה`}],Ho=e=>Vo.find(t=>t.type===e);function Uo(e){return{type:e,duration:e===`phone`?4.4:3.4,variant:`centered`,energy:`normal`,camera:`push-in`,...{hook:{title:`הרעיון הגדול שלכם`,emphasis:`הגדול`,icon:`sparkles`,variant:`split`,energy:`punchy`,background:`aurora`,camera:`push-in`},kinetic:{title:`מה זה נותן לכם?`,emphasis:`נותן`,words:[`פשוט`,`מהיר`,`חכם`],variant:`split`,energy:`punchy`,background:`grid`,build:`beats`,beat:.4},freeze:{label:`רגע אחד → הכול משתנה`,cta:`וזה רק ההתחלה`,energy:`punchy`,background:`aurora`},quote:{title:`עושים את זה פשוט`,label:`ההבטחה שלנו`,energy:`calm`,background:`gradient`},cards:{title:`שלושה יתרונות`,emphasis:`יתרונות`,items:[`חוסך זמן`,`קל לשימוש`,`זמין תמיד`],icons:[`clock`,`zap`,`shield-check`],variant:`stacked`,background:`dots`},checklist:{title:`מה מקבלים`,emphasis:`מקבלים`,items:[`ליווי אישי`,`תוצאה מהירה`,`בלי הפתעות`],icon:`circle-check`,background:`solid`},timeline:{title:`איך זה עובד`,emphasis:`עובד`,items:[`נרשמים`,`בוחרים`,`מתחילים`],icons:[`send`,`target`,`rocket`],background:`grid`},"notification-stack":{title:`הכול מגיע אליכם`,emphasis:`אליכם`,items:[`הודעה חדשה`,`תזכורת לפגישה`,`משימה הושלמה`],icons:[`bell`,`calendar`,`circle-check`],variant:`stacked`,background:`gradient`},chat:{title:`שואלים ומקבלים תשובה`,emphasis:`תשובה`,items:[`אפשר עזרה?`,`בטח, נתחיל יחד`,`מעולה, תודה!`],variant:`stacked`,background:`gradient`},compare:{title:`לפני ואחרי`,emphasis:`אחרי`,items:[`לפני: בלגן`,`אחרי: סדר`],variant:`stacked`,background:`dots`,camera:`none`},"map-route":{title:`הדרך שלכם`,emphasis:`שלכם`,items:[`יוצאים`,`בדרך`,`מגיעים`],background:`dots`},marquee:{title:`בקצב שלכם`,emphasis:`בקצב`,words:[`מהיר`,`פשוט`,`חכם`],cta:`מתחילים היום`,variant:`stacked`,background:`motif`,build:`beats`,beat:.5},bars:{title:`הצמיחה שלנו`,emphasis:`הצמיחה`,values:[24,38,52,71],items:[`רבעון 1`,`רבעון 2`,`רבעון 3`,`רבעון 4`],subtitle:`נתוני הדגמה בלבד`,energy:`calm`,background:`grid`},"line-chart":{title:`המגמה עולה`,emphasis:`עולה`,values:[20,28,26,41,55,68],subtitle:`נתוני הדגמה בלבד`,energy:`calm`,background:`gradient`},counter:{title:`לקוחות מרוצים`,emphasis:`מרוצים`,value:12500,max:15e3,ring:!0,label:`נתוני הדגמה בלבד`,background:`gradient`},donut:{title:`שביעות רצון`,emphasis:`רצון`,value:92,max:100,suffix:`%`,label:`נתוני הדגמה בלבד`,background:`aurora`},progress:{title:`כמעט שם`,emphasis:`כמעט`,value:86,max:100,suffix:`%`,label:`נתוני הדגמה בלבד`,background:`grid`},"big-number":{title:`מספר אחד שווה הכול`,emphasis:`אחד`,value:3,label:`צעדים בלבד`,energy:`punchy`,background:`aurora`},coins:{title:`החיסכון שלכם`,emphasis:`החיסכון`,value:1200,suffix:` ש״ח`,label:`להמחשה בלבד`,background:`gradient`},phone:{title:`הכול באפליקציה`,emphasis:`באפליקציה`,product:`האפליקציה`,rows:[[`היום`,`3 משימות`],[`יעד`,`80%`]],icons:[`calendar`,`target`],cta:`פותחים`,subtitle:`נתוני הדגמה בלבד`,variant:`split`,background:`aurora`,camera:`orbit`},"ui-cursor":{product:`כפתור אחד`,label:`הכול מתחיל בלחיצה`,cta:`מתחילים`,energy:`calm`,background:`aurora`},logo:{title:`המותג שלכם`,label:`סלוגן קצר`,energy:`calm`,background:`aurora`},confetti:{emphasis:`כל הכבוד!`,energy:`punchy`,background:`aurora`,camera:`orbit`},endcard:{title:`מתחילים עכשיו`,emphasis:`עכשיו`,cta:`לפרטים נוספים`,icon:`rocket`,energy:`calm`,background:`aurora`}}[e]}}function Wo(e,t,n,r,i=Math.floor(Math.random()*9e3)+1e3){return{format:`motiondesk-config/v4`,title:e,theme:n.theme,aspectRatio:t,fps:24,palette:{...n.palette},seed:i,motionBlur:{samples:3,shutterAngle:180},direction:`rtl`,build:`sequence`,life:`lively`,fixes:!0,scenes:r.map(e=>structuredClone(e))}}function Go(e){let t=J(e),n={...e};if(n.beats){let e=n.beats.filter(e=>e<t);e.length?n.beats=e:delete n.beats}return n}function Ko(e,t){let n=J(e);if(!n)return e;let r=t/n;return Go({...e,scenes:e.scenes.map(e=>({...e,duration:Math.min(8,Math.max(1.8,Math.round((e.duration??4)*r*10)/10))}))})}var qo={name:``,tagline:``,cta:``,palette:null},Jo=(e,t)=>{try{let n=localStorage.getItem(e);return n?{...t,...JSON.parse(n)}:t}catch{return t}},Yo=e=>{try{let t=JSON.parse(localStorage.getItem(e)||`[]`);return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}},Xo=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},Zo=()=>{let e=Jo(`motiondesk.studio.brand`,qo);return{...qo,...e,palette:e.palette&&as(e.palette)?e.palette:null}},Qo=e=>Xo(`motiondesk.studio.brand`,e),$o=e=>!!(e.name.trim()||e.palette||e.cta.trim()),es=()=>Yo(`motiondesk.studio.favorites`),ts=e=>Xo(`motiondesk.studio.favorites`,e.slice(0,300)),ns=()=>Yo(`motiondesk.studio.recent`);function rs(e){let t=[e,...ns().filter(t=>t!==e)].slice(0,24);return Xo(`motiondesk.studio.recent`,t),t}var is=/^#[0-9a-fA-F]{6}$/,as=e=>[`background`,`foreground`,`accent`,`secondary`].every(t=>is.test(e[t]??``));function os(e){let t=[e.title??``];for(let n of e.scenes){for(let e of[`title`,`subtitle`,`label`,`product`,`cta`,`emphasis`])typeof n[e]==`string`&&t.push(n[e]);for(let e of[`items`,`words`])t.push(...n[e]??[]);for(let e of n.rows??[])t.push(...e)}let n=new Map;for(let e of t)for(let t of e.matchAll(/\b[A-Z][A-Za-z0-9]{2,}\b/g))n.set(t[0],(n.get(t[0])??0)+1);let r=new Set(e.scenes.flatMap(e=>typeof e.product==`string`&&/^[A-Za-z][A-Za-z0-9 ]{1,20}$/.test(e.product)?[e.product]:[]));return[...n].filter(([e,t])=>t>1||r.has(e)).map(([e])=>e).filter(e=>![`PDF`,`KPI`,`AI`,`SaaS`,`VIP`].includes(e))}function ss(e,t){if(!$o(t))return e;let n=structuredClone(e),r=[...n.scenes].reverse().find(e=>e.type===`endcard`);if(r){let e=t.cta.trim(),n=t.tagline.trim();e&&(!r.cta||r.cta===`לפרטים נוספים`)&&(r.cta=e.slice(0,80)),n&&!r.subtitle&&(r.subtitle=n.slice(0,80)),t.name.trim()&&r.title===`מתחילים עכשיו`&&(r.title=t.name.trim().slice(0,32),delete r.emphasis)}return n}function cs(e,t){if(!$o(t))return e;let n=structuredClone(e);if(t.palette){let e={...t.palette};Lo(e.background,e.accent)<4.5&&Lo(e.background,e.secondary)>=4.5&&([e.accent,e.secondary]=[e.secondary,e.accent]),n.palette=e}let r=t.name.trim();if(r){let t=os(e),i=e=>t.reduce((e,t)=>e.replace(RegExp(`\\b${t}\\b`,`g`),r),e);n.title=i(n.title??``);for(let e of n.scenes){for(let t of[`title`,`subtitle`,`label`,`product`,`cta`,`emphasis`])typeof e[t]==`string`&&(e[t]=i(e[t]));for(let t of[`items`,`words`])e[t]&&(e[t]=e[t].map(i));e.rows&&=e.rows.map(e=>e.map(i)),e.type===`logo`&&e.title&&(e.title=r),(e.type===`phone`||e.type===`ui-cursor`)&&e.product&&!t.length&&(e.product=r)}for(let e of n.scenes)e.emphasis&&e.title&&!e.title.includes(e.emphasis)&&![`hook`,`confetti`].includes(e.type)&&delete e.emphasis}let i=t.cta.trim();if(i){let e=[...n.scenes].reverse().find(e=>e.type===`endcard`);e&&(e.cta=i.slice(0,80))}let a=t.tagline.trim();if(a){let e=[...n.scenes].reverse().find(e=>e.type===`endcard`);e&&!e.subtitle?.includes(`הדגמה`)&&(e.subtitle=a.slice(0,120))}return n}function ls(e,t){if(!t.palette)return e;let n=t.palette,r={bg:n.background,background:n.background,paper:n.background,fg:n.foreground,text:n.foreground,ink:n.foreground,accent:n.accent,primary:n.accent,accent2:n.secondary,secondary:n.secondary};return e.replace(/:root\s*\{([^}]*)\}/,(e,t)=>e.replace(t,t.replace(/--([a-zA-Z0-9-]+)\s*:\s*(#[0-9a-fA-F]{6})/g,(e,t)=>r[t]?`--${t}:${r[t]}`:e)))}var us=/^(?:ו|ה|ב|ל|מ|ש|כ|וה|וב|ול|ומ|וש|שה|שב|של|מה|לה|בה|כש)(?=[-]{2,})/,ds={משכנתא:[`נדלן`,`דירה`,`בית`,`הלוואה`],דירה:[`נדלן`,`בית`,`משכנתא`],בית:[`נדלן`,`דירה`],אפליקציה:[`אפליקציות`,`דיגיטל`,`טלפון`],מבצע:[`הנחה`,`מכירה`,`קמעונאות`,`סייל`],הנחה:[`מבצע`],כנס:[`אירוע`,`אירועים`,`הרצאה`],אירוע:[`אירועים`,`כנס`,`הזמנה`],חתונה:[`שמחות`,`חגיגה`,`הזמנה`],יומולדת:[`יום הולדת`,`מסיבה`,`חגיגה`],הולדת:[`יום הולדת`,`יומולדת`],מסעדה:[`אוכל`,`תפריט`,`שף`],קפה:[`אוכל`,`בית קפה`],גיוס:[`משרות`,`עובדים`,`דרושים`],דוח:[`נתונים`,`דוחות`,`גרף`],נתונים:[`דוח`,`גרף`,`מספרים`],חיסכון:[`פיננסים`,`כסף`,`בנק`],בנק:[`פיננסים`,`חיסכון`,`הלוואה`],טיול:[`תיירות`,`חופשה`,`נסיעה`],חופשה:[`תיירות`,`טיול`,`מלון`],סטורי:[`סטוריז`,`רשתות`,`9:16`],אינסטגרם:[`סטוריז`,`רשתות`],טיקטוק:[`סטוריז`,`רשתות`],רכב:[`רכב`,`תחבורה`,`חשמלי`],כושר:[`ספורט`,`בריאות`,`אימון`],חג:[`חגים`,`ברכה`,`קהילה`],ראשהשנה:[`חגים`,`ברכה`],חנוכה:[`חגים`,`ברכה`],פסח:[`חגים`,`ברכה`],השקה:[`מוצר`,`חדש`,`launch`],יופי:[`טיפוח`,`קוסמטיקה`,`סלון`],קוסמטיקה:[`יופי`,`טיפוח`,`איפור`],מספרה:[`סלון`,`שיער`,`יופי`],ספא:[`טיפוח`,`יופי`,`עיסוי`],ציפורניים:[`מניקור`,`יופי`],איפור:[`יופי`,`קוסמטיקה`],ילדים:[`ילד`,`גן`,`משחקים`,`משפחה`],גן:[`ילדים`,`הרשמה`],צעצועים:[`ילדים`,`משחקים`],קייטנה:[`ילדים`,`קיץ`],מוזיקה:[`הופעה`,`קונצרט`,`אלבום`,`שיר`],הופעה:[`מוזיקה`,`קונצרט`,`כרטיסים`],קונצרט:[`הופעה`,`מוזיקה`],פסטיבל:[`הופעה`,`מוזיקה`,`אירוע`],דיגיי:[`מוזיקה`,`מסיבה`],פודקאסט:[`פרק`,`האזנה`],תרומה:[`עמותה`,`תרומות`,`התנדבות`],עמותה:[`תרומה`,`התנדבות`,`קהילה`],התנדבות:[`עמותה`,`מתנדבים`],עורך:[`משפט`,`משפטי`,`ייעוץ`],דין:[`משפט`,`משפטי`],משפטי:[`משפט`,`עורך`,`דין`],ביטוח:[`פוליסה`,`ביטוחים`,`ייעוץ`],פנסיה:[`חיסכון`,`ייעוץ`,`ביטוח`],חשבון:[`מס`,`רואה`],מס:[`מיסים`,`החזר`],גיימינג:[`משחק`,`משחקים`,`גיימרים`],משחק:[`גיימינג`,`משחקים`],טורניר:[`תחרות`,`איספורט`,`גיימינג`],סטרים:[`שידור`,`לייב`,`גיימינג`],איספורט:[`גיימינג`,`טורניר`]},fs=new Set([`סרטון`,`סרטונים`,`וידאו`,`סרט`,`תבנית`,`תבניות`,`של`,`עם`,`את`,`על`,`לי`,`בשביל`,`עבור`,`רוצה`,`צריך`,`משהו`,`קצר`,`חדש`]);function ps(e){return e.toLowerCase().replace(/[֑-ׇ]/g,``).replace(/[״"׳'`]/g,``).split(/[^\p{L}\p{N}:]+/u).filter(e=>e.length>1)}var ms=e=>{let t=e.replace(us,``),n=t.replace(/(?:יות|ים|ות|ה|ת)$/,``);return n.length>=3?n:t};function hs(e,t){let n=e.kind===`motion`?e.config.scenes.flatMap(e=>[e.title,e.subtitle,e.label,e.product,e.cta,...e.items??[],...e.words??[]]).filter(Boolean).join(` `):``;return{title:ps(e.title),tags:ps(e.tags.join(` `)),category:ps(t),description:ps(e.description),scenes:ps(n),ratio:e.kind===`motion`?e.config.aspectRatio??`16:9`:e.width===e.height?`1:1`:e.width>e.height?`16:9`:`9:16`}}function gs(e,t){let n=ps(t),r=new Map;if(!n.length)return r;let i=n.filter(e=>!fs.has(e));i.length||i.push(...n);let a=Object.fromEntries(e.categories.map(e=>[e.id,e.title])),o=e=>{let t=ms(e);return t.length>=4?t:e},s=i.map(e=>{let t=ms(e);return{main:t,syn:(ds[e]??ds[t]??[]).map(e=>ps(e).map(o))}}),c={title:6,tags:5,category:4,description:2,scenes:1};for(let t of e.templates){let e=hs(t,a[t.category]??``),n=0,i=0,o=0,l=Object.fromEntries(Object.entries(e).filter(([e])=>e!==`ratio`).map(([e,t])=>[e,t.map(ms)]));for(let{main:t,syn:r}of s){let a=0,s=!1;if(/^\d+:\d+$/.test(t))e.ratio===t&&(a=5);else for(let[n,i]of Object.entries(c)){let o=l[n];for(let e of o){let r=0;e===t?r=i*2:t.length>=2&&e.startsWith(t)?r=i*1.4:t.length>=3&&e.includes(t)&&(r=i),r>a&&(a=r,s=n===`title`)}let c=e[n];for(let e of r)e.length&&e.every(e=>c.includes(e)||o.some(t=>t===e||e.length>=4&&t.startsWith(e)))&&(a=Math.max(a,i*(e.length>1?1.2:.8)))}a>0&&(i++,n+=a,s&&o++)}i&&r.set(t,n*(i/s.length)**.8*(o===s.length&&s.length>1?1.5:1))}let l=Math.max(0,...r.values());if(l>=8)for(let[e,t]of r)t<l*.3&&r.delete(e);return r}var _s={briefcase:D,calendar:te,"chart-column":ne,"chart-line":re,"circle-check":se,clock:ue,coins:fe,gift:ye,globe:be,lightbulb:we,"map-pin":Te,rocket:ze,send:We,"shield-check":qe,smartphone:$e,sparkles:et,target:rt,"trending-up":at,trophy:ot,users:ut,wallet:mt,zap:_t,bell:T,utensils:dt,music:ke,heart:j,gamepad:ve,scale:He,baby:w,paw:Me,car:k,plane:Pe,shirt:Je};function vs({name:e,size:t=16}){let n=_s[e]??et;return(0,U.jsx)(n,{size:t,"aria-hidden":`true`})}var ys=[...{purpose:`User-supplied MP4 templates for flat-video editing, separate from the 66 HyperFrames source templates`,samples:[{id:`bank-growth`,title:`סרטון צמיחה בנקאי`,originalFilename:`bank-growth-motion-v3.mp4`,video:`bank-growth-motion-v3.mp4`,poster:`bank-growth.jpg`,sha256:`0d11d3908d0734068cb1f6332c11a6a41fbec7989a658d197cc3b1048befeced`,bytes:26706065,sourceKind:`editable-source-available`,sourceProject:`examples/Bank-Growth.motiondesk`,durationSeconds:53.013,width:1920,height:1080,fps:30,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2},{id:`final-trailer`,title:`טריילר סופי`,originalFilename:`טריילר סופי?.mp4`,video:`final-trailer.mp4`,poster:`final-trailer.jpg`,sha256:`18720c724cd84e687fc8ab6ff5c7155b059b73f3f65eaed68309f688d2bc8685`,bytes:29707042,sourceKind:`video-reference`,sourceProject:null,durationSeconds:60,width:1920,height:1080,fps:60,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2,sourceCandidate:{pathFromProjectRoot:`examples/ABC-Quest-Trailer/source-candidate.zip`,sha256:`0ada6528a29e19772d885d92d0826edd17faa4e2fe18b0315ceb5b6b47bab3d6`,status:`HTML and assets appear related; exact match to final MP4 is unverified`}},{id:`whatsapp-121656`,title:`דוגמת WhatsApp — 12:16:56`,originalFilename:`WhatsApp Video 2026-10-15 at 12.16.56.mp4`,video:`whatsapp-121656.mp4`,poster:`whatsapp-121656.jpg`,sha256:`a65cdd4da10c9049f4e84b3b6abc1137de75f58f710ec38a73f55f49c461e7f8`,bytes:9806168,sourceKind:`editable-reconstruction`,sourceProject:`examples/User-Samples/whatsapp-121656.motiondesk`,durationSeconds:64,width:480,height:848,fps:25,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2},{id:`whatsapp-122305`,title:`דוגמת WhatsApp — 12:23:05`,originalFilename:`WhatsApp Video 2026-10-15 at 12.23.05.mp4`,video:`whatsapp-122305.mp4`,poster:`whatsapp-122305.jpg`,sha256:`d58cf0c7c159aeb23f447fff6f8f064c5a20928678b3aaabe61dd16bde5d6baf`,bytes:4503654,sourceKind:`editable-source-available`,sourceProject:`examples/User-Samples/whatsapp-122305.motiondesk`,durationSeconds:34.2,width:848,height:480,fps:30,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2},{id:`whatsapp-122338`,title:`דוגמת WhatsApp — 12:23:38`,originalFilename:`WhatsApp Video 2026-10-15 at 12.23.38.mp4`,video:`whatsapp-122338.mp4`,poster:`whatsapp-122338.jpg`,sha256:`d7b42c3b26f2246a5ee71ccbdc7e838603ab98b22c27c38d94e54d0bb5925369`,bytes:4050744,sourceKind:`editable-source-available`,sourceProject:`examples/User-Samples/whatsapp-122338.motiondesk`,durationSeconds:31.3,width:848,height:480,fps:30,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2}]}.samples].sort((e,t)=>Number(t.id.startsWith(`whatsapp-`))-Number(e.id.startsWith(`whatsapp-`))),bs=e=>`motiondesk-media://sample-${e}`;function xs(e){let t=/^motiondesk-media:\/\/sample-([a-z0-9-]+)$/.exec(e)?.[1],n=ys.find(e=>e.id===t);return!n||typeof window<`u`&&window.motionDesk?.openFiles?e:`./reference/user-samples/${n.video}`}function Ss(e){if(!ys.some(t=>t.id===e.id&&t.video===e.video))throw Error(`דוגמת וידאו לא מוכרת`);let t=Bt(e.title,{mode:`flat-video`,scenes:[],templateId:`sample-${e.id}`,canvas:{width:e.width,height:e.height,fps:e.fps}}),n=Lt(`asset`);return t.assets=[{id:n,name:e.originalFilename,kind:`video`,src:bs(e.id),mime:`video/mp4`,duration:e.durationSeconds}],t.mediaTracks=[{id:Lt(`track`),name:`וידאו מקורי`,type:`video`,muted:!1,clips:[{id:Lt(`clip`),assetId:n,start:0,in:0,out:e.durationSeconds,volume:1,muted:!1}]}],t}function Cs({src:e,time:t,active:n,playing:r,muted:i,volume:a}){let o=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=o.current;e&&(e.volume=Math.min(1,a),e.muted=i,Math.abs(e.currentTime-t)>.2&&(e.currentTime=Math.max(0,t)),n&&r?e.play().catch(()=>{}):e.pause())},[t,n,r,i,a]),(0,U.jsx)(`audio`,{ref:o,src:e,preload:`metadata`})}function ws({src:e,time:t,playing:n}){let r=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=r.current;e&&(Math.abs(e.currentTime-t)>.25&&(e.currentTime=Math.max(0,t)),n?e.play().catch(()=>{}):e.pause())},[t,n]),(0,U.jsx)(`video`,{ref:r,src:e,muted:!0,playsInline:!0,preload:`auto`,style:{position:`absolute`,width:`100%`,height:`100%`,objectFit:`contain`}})}function Ts({layer:e,project:t,time:n,onSelect:r,playing:i,sceneStart:a=0,siblings:o=[]}){let s=bt(e,n,{canvas:t.canvas,schemaVersion:t.schemaVersion,beats:t.beats,sceneStart:a,layers:o}),c=t.assets.find(t=>t.id===e.assetId),l=(0,b.useMemo)(()=>un(e),[e]),u=s.textUnits?(0,U.jsx)(`span`,{style:St(e),children:s.textUnits.map((e,t)=>(0,U.jsx)(`span`,{style:xt(e),children:e.text},t))}):s.text;return(0,U.jsxs)(`div`,{"data-layer-id":e.id,onClick:t=>{t.stopPropagation(),r?.(e.id)},style:{...Ct(e,s),cursor:r?`pointer`:void 0,pointerEvents:r?`auto`:void 0},children:[e.type===`text`?u:null,e.type===`path`||e.type===`svg`?(0,U.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 ${e.width} ${e.height}`,children:(0,U.jsx)(`path`,{d:e.pathData||``,fill:e.type===`svg`?s.color||e.color:`none`,stroke:s.color||e.stroke||e.color,strokeWidth:e.strokeWidth||3,pathLength:1,strokeDasharray:1,strokeDashoffset:1-s.reveal})}):null,e.type===`image`&&c?(0,U.jsx)(`img`,{src:xs(c.src),style:{width:`100%`,height:`100%`,objectFit:`cover`}}):null,e.type===`video`&&c?(0,U.jsx)(ws,{src:xs(c.src),time:Math.max(0,n-e.start),playing:i}):null,e.type===`group`||e.type===`repeater`?(e.type===`repeater`?l:e.children)?.map(o=>(0,U.jsx)(Ts,{layer:o,project:t,time:n-e.start,sceneStart:a+e.start,siblings:e.type===`repeater`?l:e.children,onSelect:e.type===`repeater`?()=>r?.(e.id):r,playing:i},o.id)):null]})}function Es({project:e,time:t,onSelect:n,playing:r=!1,sceneStartOffset:i=0}){let a=Ht(e,t),o=a?.scene,s=o?Math.min(o.transitionDuration||.5,o.duration/2):0,c=s?a.localTime/s:1,l=a&&a.index>0&&o?.transition!==`cut`&&a.localTime<s?e.scenes[a.index-1]:null,u=(t,a,o)=>(0,U.jsx)(`div`,{style:{position:`absolute`,inset:0,background:t.background,overflow:`hidden`,...o},children:t.layers.map(o=>{let s=(0,U.jsx)(Ts,{layer:o,project:e,time:a,sceneStart:i+e.scenes.slice(0,e.scenes.indexOf(t)).reduce((e,t)=>e+t.duration,0),siblings:t.layers,onSelect:n,playing:r},o.id);return t.camera?(0,U.jsx)(`div`,{style:{...en(t,a,e.canvas,o.depth||0),pointerEvents:`none`},children:s},o.id):s})},t.id);return(0,U.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 ${e.canvas.width} ${e.canvas.height}`,xmlns:`http://www.w3.org/2000/svg`,children:(0,U.jsx)(`foreignObject`,{x:`0`,y:`0`,width:e.canvas.width,height:e.canvas.height,children:(0,U.jsxs)(`div`,{style:{width:`100%`,height:`100%`,position:`relative`,overflow:`hidden`,background:e.schemaVersion===3?l?.background??o?.background??`#000`:`#000`,direction:`rtl`},children:[e.mediaTracks.flatMap(n=>n.clips.map(i=>{let a=e.assets.find(e=>e.id===i.assetId);return a?(0,U.jsx)(Cs,{src:xs(a.src),time:i.in+t-i.start,active:t>=i.start&&t<i.start+i.out-i.in,playing:r,muted:n.muted||i.muted,volume:i.volume},i.id):null})),e.mediaTracks.filter(e=>e.type===`video`).flatMap(n=>n.clips.filter(e=>t>=e.start&&t<e.start+e.out-e.in).map(n=>{let i=e.assets.find(e=>e.id===n.assetId);return i?(0,U.jsx)(ws,{src:xs(i.src),time:n.in+t-n.start,playing:r},n.id):null})),l&&u(l,e.schemaVersion===3?l.duration-.001:l.duration-s+a.localTime,$t(o,c,!0,e.schemaVersion)),o&&u(o,a.localTime,$t(o,c,!1,e.schemaVersion))]})})})}var Ds=`/*!
|
|
149
|
+
`)}function No(e){let t=new Ca;try{if(typeof e!=`string`)return{fixes:[],error:`לא התקבל טקסט לבדיקה.`};if(!e.trim())return{fixes:[],error:`התשובה ריקה. הדביקו את ה־JSON שהמודל החזיר.`};if(e.length>2e6)return{fixes:[],error:`התשובה ארוכה מדי (יותר מ־2 מיליון תווים). הדביקו רק את ה־JSON.`};let n=Aa(e,t);if(`error`in n)return{fixes:t.out,error:n.error};let r=Eo(n.picked.raw,t);return`error`in r?{fixes:t.out,error:r.error}:jo(r.config,r.orig,t)}catch(e){return{fixes:t.out,error:`אירעה שגיאה לא צפויה בתיקון התשובה${e instanceof Error&&e.message?` (${e.message})`:``}. נסו להדביק רק את ה־JSON.`}}}var Po=new Map;function Fo(e){let t=JSON.stringify(e),n=Po.get(t);if(n)return n;let{project:r}=Ki(e);return Po.size>220&&Po.delete(Po.keys().next().value),Po.set(t,r),r}var J=e=>e.scenes.reduce((e,t)=>e+(t.duration??4),0),Io=e=>{let t=[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)/255).map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return .2126*t[0]+.7152*t[1]+.0722*t[2]},Lo=(e,t)=>{let n=Io(e),r=Io(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ro=e=>typeof e==`string`&&/^#[0-9a-fA-F]{6}$/.test(e),zo=[{id:`bank-paper`,name:`נייר ואדום`,theme:`bank_red`,palette:{background:`#F3F0EA`,foreground:`#1D2129`,accent:`#D6062E`,secondary:`#2A2F3A`}},{id:`bank-night`,name:`לילה אדום`,theme:`bank_red`,palette:{background:`#10192A`,foreground:`#FFFFFF`,accent:`#FF2D55`,secondary:`#31478A`}},{id:`nova`,name:`טורקיז וסגול`,theme:`orbit`,palette:{background:`#080B16`,foreground:`#F3F1EA`,accent:`#19D3C5`,secondary:`#8B5CF6`}},{id:`lime`,name:`ליים לילי`,theme:`pulse`,palette:{background:`#071327`,foreground:`#FAF8F0`,accent:`#B5F561`,secondary:`#28416B`}},{id:`ocean`,name:`אוקיינוס`,theme:`flow`,palette:{background:`#0B1F2A`,foreground:`#F4FFFD`,accent:`#2DD4BF`,secondary:`#17394A`}},{id:`candy`,name:`ורוד חשמלי`,theme:`midnight`,palette:{background:`#1B1035`,foreground:`#FFFFFF`,accent:`#FF4D8D`,secondary:`#3B2A6B`}},{id:`sky`,name:`שמיים בהירים`,theme:`summer_ice`,palette:{background:`#EAF6FF`,foreground:`#0A2540`,accent:`#0B63C5`,secondary:`#FFC857`}},{id:`sun`,name:`שקיעה חמה`,theme:`warm`,palette:{background:`#FFF4E6`,foreground:`#2B1A10`,accent:`#C2410C`,secondary:`#F59E0B`}},{id:`forest`,name:`יער`,theme:`flow`,palette:{background:`#0E1F17`,foreground:`#F1FAEE`,accent:`#4ADE80`,secondary:`#1F4D3A`}},{id:`mono`,name:`שחור לבן`,theme:`mono`,palette:{background:`#FFFFFF`,foreground:`#111111`,accent:`#111111`,secondary:`#9CA3AF`}},{id:`gold`,name:`זהב ולילה`,theme:`midnight`,palette:{background:`#111014`,foreground:`#FAF7F0`,accent:`#F5C451`,secondary:`#3A3340`}},{id:`mint`,name:`מנטה`,theme:`summer_ice`,palette:{background:`#F0FBF7`,foreground:`#0F2A22`,accent:`#0F7B5F`,secondary:`#9BE3C9`}},{id:`royal`,name:`כחול רויאל`,theme:`orbit`,palette:{background:`#0B1340`,foreground:`#F5F7FF`,accent:`#FFC24B`,secondary:`#3D5AFE`}},{id:`coral`,name:`אלמוג`,theme:`warm`,palette:{background:`#FFF1EC`,foreground:`#2A1410`,accent:`#C2332B`,secondary:`#FF9F7A`}},{id:`med`,name:`ים תיכון`,theme:`summer_ice`,palette:{background:`#F2FAFF`,foreground:`#082B3A`,accent:`#0A6E8A`,secondary:`#F4B942`}},{id:`choco`,name:`שוקולד וקרם`,theme:`warm`,palette:{background:`#2B1B14`,foreground:`#FBF3E6`,accent:`#F2B880`,secondary:`#7A4A33`}},{id:`neon`,name:`ניאון`,theme:`pulse`,palette:{background:`#0A0A12`,foreground:`#F2F2FF`,accent:`#3DF2C5`,secondary:`#FF3DCB`}},{id:`pastel`,name:`פסטל`,theme:`summer_ice`,palette:{background:`#FBF7FF`,foreground:`#2A2340`,accent:`#6B3FD6`,secondary:`#FFB4C8`}},{id:`terra`,name:`טרקוטה`,theme:`warm`,palette:{background:`#F7EFE5`,foreground:`#2D1E16`,accent:`#A0442A`,secondary:`#6B8F71`}},{id:`slate`,name:`צפחה ותכלת`,theme:`midnight`,palette:{background:`#111827`,foreground:`#F9FAFB`,accent:`#38BDF8`,secondary:`#334155`}}];function Bo(e){let t=[],n=[],r=e.palette;return r&&Ro(r.background)&&Ro(r.accent)&&Lo(r.background,r.accent)<4.5&&n.push(`צבע ההדגשה חלש על הרקע (${Lo(r.background,r.accent).toFixed(1)}:1) — מילים מודגשות יוצגו בצבע הטקסט`),r&&Ro(r.background)&&Ro(r.foreground)&&Lo(r.background,r.foreground)<4.5&&t.push(`צבע הטקסט כמעט לא נקרא על הרקע`),e.scenes.forEach((e,t)=>{let r=`סצנה ${t+1}`;e.emphasis&&e.title&&!e.title.includes(e.emphasis)&&![`hook`,`confetti`].includes(e.type)&&n.push(`${r}: מילת ההדגשה לא מופיעה בכותרת`),e.type===`kinetic`&&(e.words?.length??0)>5&&n.push(`${r}: יותר מ־5 מילים יוצגו קטנות`),typeof e.title==`string`&&e.title.length>32&&n.push(`${r}: כותרת ארוכה`)}),{errors:t,warnings:n}}var Vo=[{type:`hook`,name:`פתיח`,group:`פתיחה`,hint:`כותרת חזקה עם דיסק ואייקון`},{type:`kinetic`,name:`טיפוגרפיה קינטית`,group:`פתיחה`,hint:`מילים גדולות שנכנסות בקצב`},{type:`freeze`,name:`רגע עצירה`,group:`פתיחה`,hint:`משפט אחד גדול עם קו`},{type:`quote`,name:`ציטוט / הבטחה`,group:`פתיחה`,hint:`משפט מרכזי עם מירכאות`},{type:`cards`,name:`כרטיסים`,group:`תוכן`,hint:`3–4 יתרונות עם אייקונים`},{type:`checklist`,name:`רשימת וי`,group:`תוכן`,hint:`מה מקבלים / מה צריך`},{type:`timeline`,name:`ציר זמן`,group:`תוכן`,hint:`שלבים מימין לשמאל`},{type:`notification-stack`,name:`התראות`,group:`תוכן`,hint:`ערימת הודעות קופצות`},{type:`chat`,name:`שיחה`,group:`תוכן`,hint:`בועות צ׳אט מתחלפות`},{type:`compare`,name:`לפני / אחרי`,group:`תוכן`,hint:`שתי אפשרויות זו מול זו`},{type:`map-route`,name:`מסלול`,group:`תוכן`,hint:`שלוש תחנות על מסלול`},{type:`marquee`,name:`סרטים נעים`,group:`תוכן`,hint:`מילים רצות וכותרת`},{type:`bars`,name:`עמודות`,group:`נתונים`,hint:`השוואת ערכים`},{type:`line-chart`,name:`גרף קו`,group:`נתונים`,hint:`מגמה לאורך זמן`},{type:`counter`,name:`מונה עם טבעת`,group:`נתונים`,hint:`מספר שעולה`},{type:`donut`,name:`דונאט`,group:`נתונים`,hint:`אחוז מתוך שלם`},{type:`progress`,name:`פס התקדמות`,group:`נתונים`,hint:`אחוז השלמה`},{type:`big-number`,name:`מספר ענק`,group:`נתונים`,hint:`מספר אחד בולט`},{type:`coins`,name:`מטבעות`,group:`נתונים`,hint:`סכום כסף עם מטבעות`},{type:`phone`,name:`מסך טלפון`,group:`מוצר`,hint:`אפליקציה עם שורות`},{type:`ui-cursor`,name:`לחיצה בממשק`,group:`מוצר`,hint:`סמן שלוחץ על כפתור`},{type:`logo`,name:`סמל מותג`,group:`סיום`,hint:`סימן מותג וחתימה`},{type:`confetti`,name:`חגיגה`,group:`סיום`,hint:`קונפטי ותג חגיגי`},{type:`endcard`,name:`כרטיס סיום`,group:`סיום`,hint:`קריאה לפעולה`}],Ho=e=>Vo.find(t=>t.type===e);function Uo(e){return{type:e,duration:e===`phone`?4.4:3.4,variant:`centered`,energy:`normal`,camera:`push-in`,...{hook:{title:`הרעיון הגדול שלכם`,emphasis:`הגדול`,icon:`sparkles`,variant:`split`,energy:`punchy`,background:`aurora`,camera:`push-in`},kinetic:{title:`מה זה נותן לכם?`,emphasis:`נותן`,words:[`פשוט`,`מהיר`,`חכם`],variant:`split`,energy:`punchy`,background:`grid`,build:`beats`,beat:.4},freeze:{label:`רגע אחד → הכול משתנה`,cta:`וזה רק ההתחלה`,energy:`punchy`,background:`aurora`},quote:{title:`עושים את זה פשוט`,label:`ההבטחה שלנו`,energy:`calm`,background:`gradient`},cards:{title:`שלושה יתרונות`,emphasis:`יתרונות`,items:[`חוסך זמן`,`קל לשימוש`,`זמין תמיד`],icons:[`clock`,`zap`,`shield-check`],variant:`stacked`,background:`dots`},checklist:{title:`מה מקבלים`,emphasis:`מקבלים`,items:[`ליווי אישי`,`תוצאה מהירה`,`בלי הפתעות`],icon:`circle-check`,background:`solid`},timeline:{title:`איך זה עובד`,emphasis:`עובד`,items:[`נרשמים`,`בוחרים`,`מתחילים`],icons:[`send`,`target`,`rocket`],background:`grid`},"notification-stack":{title:`הכול מגיע אליכם`,emphasis:`אליכם`,items:[`הודעה חדשה`,`תזכורת לפגישה`,`משימה הושלמה`],icons:[`bell`,`calendar`,`circle-check`],variant:`stacked`,background:`gradient`},chat:{title:`שואלים ומקבלים תשובה`,emphasis:`תשובה`,items:[`אפשר עזרה?`,`בטח, נתחיל יחד`,`מעולה, תודה!`],variant:`stacked`,background:`gradient`},compare:{title:`לפני ואחרי`,emphasis:`אחרי`,items:[`לפני: בלגן`,`אחרי: סדר`],variant:`stacked`,background:`dots`,camera:`none`},"map-route":{title:`הדרך שלכם`,emphasis:`שלכם`,items:[`יוצאים`,`בדרך`,`מגיעים`],background:`dots`},marquee:{title:`בקצב שלכם`,emphasis:`בקצב`,words:[`מהיר`,`פשוט`,`חכם`],cta:`מתחילים היום`,variant:`stacked`,background:`motif`,build:`beats`,beat:.5},bars:{title:`הצמיחה שלנו`,emphasis:`הצמיחה`,values:[24,38,52,71],items:[`רבעון 1`,`רבעון 2`,`רבעון 3`,`רבעון 4`],subtitle:`נתוני הדגמה בלבד`,energy:`calm`,background:`grid`},"line-chart":{title:`המגמה עולה`,emphasis:`עולה`,values:[20,28,26,41,55,68],subtitle:`נתוני הדגמה בלבד`,energy:`calm`,background:`gradient`},counter:{title:`לקוחות מרוצים`,emphasis:`מרוצים`,value:12500,max:15e3,ring:!0,label:`נתוני הדגמה בלבד`,background:`gradient`},donut:{title:`שביעות רצון`,emphasis:`רצון`,value:92,max:100,suffix:`%`,label:`נתוני הדגמה בלבד`,background:`aurora`},progress:{title:`כמעט שם`,emphasis:`כמעט`,value:86,max:100,suffix:`%`,label:`נתוני הדגמה בלבד`,background:`grid`},"big-number":{title:`מספר אחד שווה הכול`,emphasis:`אחד`,value:3,label:`צעדים בלבד`,energy:`punchy`,background:`aurora`},coins:{title:`החיסכון שלכם`,emphasis:`החיסכון`,value:1200,suffix:` ש״ח`,label:`להמחשה בלבד`,background:`gradient`},phone:{title:`הכול באפליקציה`,emphasis:`באפליקציה`,product:`האפליקציה`,rows:[[`היום`,`3 משימות`],[`יעד`,`80%`]],icons:[`calendar`,`target`],cta:`פותחים`,subtitle:`נתוני הדגמה בלבד`,variant:`split`,background:`aurora`,camera:`orbit`},"ui-cursor":{product:`כפתור אחד`,label:`הכול מתחיל בלחיצה`,cta:`מתחילים`,energy:`calm`,background:`aurora`},logo:{title:`המותג שלכם`,label:`סלוגן קצר`,energy:`calm`,background:`aurora`},confetti:{emphasis:`כל הכבוד!`,energy:`punchy`,background:`aurora`,camera:`orbit`},endcard:{title:`מתחילים עכשיו`,emphasis:`עכשיו`,cta:`לפרטים נוספים`,icon:`rocket`,energy:`calm`,background:`aurora`}}[e]}}function Wo(e,t,n,r,i=Math.floor(Math.random()*9e3)+1e3){return{format:`motiondesk-config/v4`,title:e,theme:n.theme,aspectRatio:t,fps:24,palette:{...n.palette},seed:i,motionBlur:{samples:3,shutterAngle:180},direction:`rtl`,build:`sequence`,life:`lively`,fixes:!0,scenes:r.map(e=>structuredClone(e))}}function Go(e){let t=J(e),n={...e};if(n.beats){let e=n.beats.filter(e=>e<t);e.length?n.beats=e:delete n.beats}return n}function Ko(e,t){let n=J(e);if(!n)return e;let r=t/n;return Go({...e,scenes:e.scenes.map(e=>({...e,duration:Math.min(8,Math.max(1.8,Math.round((e.duration??4)*r*10)/10))}))})}var qo={name:``,tagline:``,cta:``,palette:null},Jo=(e,t)=>{try{let n=localStorage.getItem(e);return n?{...t,...JSON.parse(n)}:t}catch{return t}},Yo=e=>{try{let t=JSON.parse(localStorage.getItem(e)||`[]`);return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}},Xo=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},Zo=()=>{let e=Jo(`motiondesk.studio.brand`,qo);return{...qo,...e,palette:e.palette&&as(e.palette)?e.palette:null}},Qo=e=>Xo(`motiondesk.studio.brand`,e),$o=e=>!!(e.name.trim()||e.palette||e.cta.trim()),es=()=>Yo(`motiondesk.studio.favorites`),ts=e=>Xo(`motiondesk.studio.favorites`,e.slice(0,300)),ns=()=>Yo(`motiondesk.studio.recent`);function rs(e){let t=[e,...ns().filter(t=>t!==e)].slice(0,24);return Xo(`motiondesk.studio.recent`,t),t}var is=/^#[0-9a-fA-F]{6}$/,as=e=>[`background`,`foreground`,`accent`,`secondary`].every(t=>is.test(e[t]??``));function os(e){let t=[e.title??``];for(let n of e.scenes){for(let e of[`title`,`subtitle`,`label`,`product`,`cta`,`emphasis`])typeof n[e]==`string`&&t.push(n[e]);for(let e of[`items`,`words`])t.push(...n[e]??[]);for(let e of n.rows??[])t.push(...e)}let n=new Map;for(let e of t)for(let t of e.matchAll(/\b[A-Z][A-Za-z0-9]{2,}\b/g))n.set(t[0],(n.get(t[0])??0)+1);let r=new Set(e.scenes.flatMap(e=>typeof e.product==`string`&&/^[A-Za-z][A-Za-z0-9 ]{1,20}$/.test(e.product)?[e.product]:[]));return[...n].filter(([e,t])=>t>1||r.has(e)).map(([e])=>e).filter(e=>![`PDF`,`KPI`,`AI`,`SaaS`,`VIP`].includes(e))}function ss(e,t){if(!$o(t))return e;let n=structuredClone(e),r=[...n.scenes].reverse().find(e=>e.type===`endcard`);if(r){let e=t.cta.trim(),n=t.tagline.trim();e&&(!r.cta||r.cta===`לפרטים נוספים`)&&(r.cta=e.slice(0,80)),n&&!r.subtitle&&(r.subtitle=n.slice(0,80)),t.name.trim()&&r.title===`מתחילים עכשיו`&&(r.title=t.name.trim().slice(0,32),delete r.emphasis)}return n}function cs(e,t){if(!$o(t))return e;let n=structuredClone(e);if(t.palette){let e={...t.palette};Lo(e.background,e.accent)<4.5&&Lo(e.background,e.secondary)>=4.5&&([e.accent,e.secondary]=[e.secondary,e.accent]),n.palette=e}let r=t.name.trim();if(r){let t=os(e),i=e=>t.reduce((e,t)=>e.replace(RegExp(`\\b${t}\\b`,`g`),r),e);n.title=i(n.title??``);for(let e of n.scenes){for(let t of[`title`,`subtitle`,`label`,`product`,`cta`,`emphasis`])typeof e[t]==`string`&&(e[t]=i(e[t]));for(let t of[`items`,`words`])e[t]&&(e[t]=e[t].map(i));e.rows&&=e.rows.map(e=>e.map(i)),e.type===`logo`&&e.title&&(e.title=r),(e.type===`phone`||e.type===`ui-cursor`)&&e.product&&!t.length&&(e.product=r)}for(let e of n.scenes)e.emphasis&&e.title&&!e.title.includes(e.emphasis)&&![`hook`,`confetti`].includes(e.type)&&delete e.emphasis}let i=t.cta.trim();if(i){let e=[...n.scenes].reverse().find(e=>e.type===`endcard`);e&&(e.cta=i.slice(0,80))}let a=t.tagline.trim();if(a){let e=[...n.scenes].reverse().find(e=>e.type===`endcard`);e&&!e.subtitle?.includes(`הדגמה`)&&(e.subtitle=a.slice(0,120))}return n}function ls(e,t){if(!t.palette)return e;let n=t.palette,r={bg:n.background,background:n.background,paper:n.background,fg:n.foreground,text:n.foreground,ink:n.foreground,accent:n.accent,primary:n.accent,accent2:n.secondary,secondary:n.secondary};return e.replace(/:root\s*\{([^}]*)\}/,(e,t)=>e.replace(t,t.replace(/--([a-zA-Z0-9-]+)\s*:\s*(#[0-9a-fA-F]{6})/g,(e,t)=>r[t]?`--${t}:${r[t]}`:e)))}var us=/^(?:ו|ה|ב|ל|מ|ש|כ|וה|וב|ול|ומ|וש|שה|שב|של|מה|לה|בה|כש)(?=[-]{2,})/,ds={משכנתא:[`נדלן`,`דירה`,`בית`,`הלוואה`],דירה:[`נדלן`,`בית`,`משכנתא`],בית:[`נדלן`,`דירה`],אפליקציה:[`אפליקציות`,`דיגיטל`,`טלפון`],מבצע:[`הנחה`,`מכירה`,`קמעונאות`,`סייל`],הנחה:[`מבצע`],כנס:[`אירוע`,`אירועים`,`הרצאה`],אירוע:[`אירועים`,`כנס`,`הזמנה`],חתונה:[`שמחות`,`חגיגה`,`הזמנה`],יומולדת:[`יום הולדת`,`מסיבה`,`חגיגה`],הולדת:[`יום הולדת`,`יומולדת`],מסעדה:[`אוכל`,`תפריט`,`שף`],קפה:[`אוכל`,`בית קפה`],גיוס:[`משרות`,`עובדים`,`דרושים`],דוח:[`נתונים`,`דוחות`,`גרף`],נתונים:[`דוח`,`גרף`,`מספרים`],חיסכון:[`פיננסים`,`כסף`,`בנק`],בנק:[`פיננסים`,`חיסכון`,`הלוואה`],טיול:[`תיירות`,`חופשה`,`נסיעה`],חופשה:[`תיירות`,`טיול`,`מלון`],סטורי:[`סטוריז`,`רשתות`,`9:16`],אינסטגרם:[`סטוריז`,`רשתות`],טיקטוק:[`סטוריז`,`רשתות`],רכב:[`רכב`,`תחבורה`,`חשמלי`],כושר:[`ספורט`,`בריאות`,`אימון`],חג:[`חגים`,`ברכה`,`קהילה`],ראשהשנה:[`חגים`,`ברכה`],חנוכה:[`חגים`,`ברכה`],פסח:[`חגים`,`ברכה`],השקה:[`מוצר`,`חדש`,`launch`],יופי:[`טיפוח`,`קוסמטיקה`,`סלון`],קוסמטיקה:[`יופי`,`טיפוח`,`איפור`],מספרה:[`סלון`,`שיער`,`יופי`],ספא:[`טיפוח`,`יופי`,`עיסוי`],ציפורניים:[`מניקור`,`יופי`],איפור:[`יופי`,`קוסמטיקה`],ילדים:[`ילד`,`גן`,`משחקים`,`משפחה`],גן:[`ילדים`,`הרשמה`],צעצועים:[`ילדים`,`משחקים`],קייטנה:[`ילדים`,`קיץ`],מוזיקה:[`הופעה`,`קונצרט`,`אלבום`,`שיר`],הופעה:[`מוזיקה`,`קונצרט`,`כרטיסים`],קונצרט:[`הופעה`,`מוזיקה`],פסטיבל:[`הופעה`,`מוזיקה`,`אירוע`],דיגיי:[`מוזיקה`,`מסיבה`],פודקאסט:[`פרק`,`האזנה`],תרומה:[`עמותה`,`תרומות`,`התנדבות`],עמותה:[`תרומה`,`התנדבות`,`קהילה`],התנדבות:[`עמותה`,`מתנדבים`],עורך:[`משפט`,`משפטי`,`ייעוץ`],דין:[`משפט`,`משפטי`],משפטי:[`משפט`,`עורך`,`דין`],ביטוח:[`פוליסה`,`ביטוחים`,`ייעוץ`],פנסיה:[`חיסכון`,`ייעוץ`,`ביטוח`],חשבון:[`מס`,`רואה`],מס:[`מיסים`,`החזר`],הונאה:[`הונאות`,`חשוד`,`אבטחה`,`עוקץ`],עוקץ:[`הונאה`,`חשוד`],השקעה:[`השקעות`,`מניה`,`שוק ההון`],מניה:[`מניות`,`השקעות`,`שוק ההון`],משכורת:[`שכר`,`צעירים`,`חשבון`],הלוואה:[`אשראי`,`מימון`],מטח:[`דולר`,`מטבע`,`חופשה`],דולר:[`מטבע`,`מט״ח`],גיימינג:[`משחק`,`משחקים`,`גיימרים`],משחק:[`גיימינג`,`משחקים`],טורניר:[`תחרות`,`איספורט`,`גיימינג`],סטרים:[`שידור`,`לייב`,`גיימינג`],איספורט:[`גיימינג`,`טורניר`]},fs=new Set([`סרטון`,`סרטונים`,`וידאו`,`סרט`,`תבנית`,`תבניות`,`של`,`עם`,`את`,`על`,`לי`,`בשביל`,`עבור`,`רוצה`,`צריך`,`משהו`,`קצר`,`חדש`]);function ps(e){return e.toLowerCase().replace(/[֑-ׇ]/g,``).replace(/[״"׳'`]/g,``).split(/[^\p{L}\p{N}:]+/u).filter(e=>e.length>1)}var ms=e=>{let t=e.replace(us,``),n=t.replace(/(?:יות|ים|ות|ה|ת)$/,``);return n.length>=3?n:t};function hs(e,t){let n=e.kind===`motion`?e.config.scenes.flatMap(e=>[e.title,e.subtitle,e.label,e.product,e.cta,...e.items??[],...e.words??[]]).filter(Boolean).join(` `):``;return{title:ps(e.title),tags:ps(e.tags.join(` `)),category:ps(t),description:ps(e.description),scenes:ps(n),ratio:e.kind===`motion`?e.config.aspectRatio??`16:9`:e.width===e.height?`1:1`:e.width>e.height?`16:9`:`9:16`}}function gs(e,t){let n=ps(t),r=new Map;if(!n.length)return r;let i=n.filter(e=>!fs.has(e));i.length||i.push(...n);let a=Object.fromEntries(e.categories.map(e=>[e.id,e.title])),o=e=>{let t=ms(e);return t.length>=4?t:e},s=i.map(e=>{let t=ms(e);return{main:t,syn:(ds[e]??ds[t]??[]).map(e=>ps(e).map(o))}}),c={title:6,tags:5,category:4,description:2,scenes:1};for(let t of e.templates){let e=hs(t,a[t.category]??``),n=0,i=0,o=0,l=Object.fromEntries(Object.entries(e).filter(([e])=>e!==`ratio`).map(([e,t])=>[e,t.map(ms)]));for(let{main:t,syn:r}of s){let a=0,s=!1;if(/^\d+:\d+$/.test(t))e.ratio===t&&(a=5);else for(let[n,i]of Object.entries(c)){let o=l[n];for(let e of o){let r=0;e===t?r=i*2:t.length>=2&&e.startsWith(t)?r=i*1.4:t.length>=3&&e.includes(t)&&(r=i),r>a&&(a=r,s=n===`title`)}let c=e[n];for(let e of r)e.length&&e.every(e=>c.includes(e)||o.some(t=>t===e||e.length>=4&&t.startsWith(e)))&&(a=Math.max(a,i*(e.length>1?1.2:.8)))}a>0&&(i++,n+=a,s&&o++)}i&&r.set(t,n*(i/s.length)**.8*(o===s.length&&s.length>1?1.5:1))}let l=Math.max(0,...r.values());if(l>=8)for(let[e,t]of r)t<l*.3&&r.delete(e);return r}var _s={briefcase:D,calendar:te,"chart-column":ne,"chart-line":re,"circle-check":se,clock:ue,coins:fe,gift:ye,globe:be,lightbulb:we,"map-pin":Te,rocket:ze,send:We,"shield-check":qe,smartphone:$e,sparkles:et,target:rt,"trending-up":at,trophy:ot,users:ut,wallet:mt,zap:_t,bell:T,utensils:dt,music:ke,heart:j,gamepad:ve,scale:He,baby:w,paw:Me,car:k,plane:Pe,shirt:Je};function vs({name:e,size:t=16}){let n=_s[e]??et;return(0,U.jsx)(n,{size:t,"aria-hidden":`true`})}var ys=[...{purpose:`User-supplied MP4 templates for flat-video editing, separate from the 66 HyperFrames source templates`,samples:[{id:`bank-growth`,title:`סרטון צמיחה בנקאי`,originalFilename:`bank-growth-motion-v3.mp4`,video:`bank-growth-motion-v3.mp4`,poster:`bank-growth.jpg`,sha256:`0d11d3908d0734068cb1f6332c11a6a41fbec7989a658d197cc3b1048befeced`,bytes:26706065,sourceKind:`editable-source-available`,sourceProject:`examples/Bank-Growth.motiondesk`,durationSeconds:53.013,width:1920,height:1080,fps:30,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2},{id:`final-trailer`,title:`טריילר סופי`,originalFilename:`טריילר סופי?.mp4`,video:`final-trailer.mp4`,poster:`final-trailer.jpg`,sha256:`18720c724cd84e687fc8ab6ff5c7155b059b73f3f65eaed68309f688d2bc8685`,bytes:29707042,sourceKind:`video-reference`,sourceProject:null,durationSeconds:60,width:1920,height:1080,fps:60,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2,sourceCandidate:{pathFromProjectRoot:`examples/ABC-Quest-Trailer/source-candidate.zip`,sha256:`0ada6528a29e19772d885d92d0826edd17faa4e2fe18b0315ceb5b6b47bab3d6`,status:`HTML and assets appear related; exact match to final MP4 is unverified`}},{id:`whatsapp-121656`,title:`דוגמת WhatsApp — 12:16:56`,originalFilename:`WhatsApp Video 2026-10-15 at 12.16.56.mp4`,video:`whatsapp-121656.mp4`,poster:`whatsapp-121656.jpg`,sha256:`a65cdd4da10c9049f4e84b3b6abc1137de75f58f710ec38a73f55f49c461e7f8`,bytes:9806168,sourceKind:`editable-reconstruction`,sourceProject:`examples/User-Samples/whatsapp-121656.motiondesk`,durationSeconds:64,width:480,height:848,fps:25,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2},{id:`whatsapp-122305`,title:`דוגמת WhatsApp — 12:23:05`,originalFilename:`WhatsApp Video 2026-10-15 at 12.23.05.mp4`,video:`whatsapp-122305.mp4`,poster:`whatsapp-122305.jpg`,sha256:`d58cf0c7c159aeb23f447fff6f8f064c5a20928678b3aaabe61dd16bde5d6baf`,bytes:4503654,sourceKind:`editable-source-available`,sourceProject:`examples/User-Samples/whatsapp-122305.motiondesk`,durationSeconds:34.2,width:848,height:480,fps:30,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2},{id:`whatsapp-122338`,title:`דוגמת WhatsApp — 12:23:38`,originalFilename:`WhatsApp Video 2026-10-15 at 12.23.38.mp4`,video:`whatsapp-122338.mp4`,poster:`whatsapp-122338.jpg`,sha256:`d7b42c3b26f2246a5ee71ccbdc7e838603ab98b22c27c38d94e54d0bb5925369`,bytes:4050744,sourceKind:`editable-source-available`,sourceProject:`examples/User-Samples/whatsapp-122338.motiondesk`,durationSeconds:31.3,width:848,height:480,fps:30,videoCodec:`h264`,audioCodec:`aac`,audioChannels:2}]}.samples].sort((e,t)=>Number(t.id.startsWith(`whatsapp-`))-Number(e.id.startsWith(`whatsapp-`))),bs=e=>`motiondesk-media://sample-${e}`;function xs(e){let t=/^motiondesk-media:\/\/sample-([a-z0-9-]+)$/.exec(e)?.[1],n=ys.find(e=>e.id===t);return!n||typeof window<`u`&&window.motionDesk?.openFiles?e:`./reference/user-samples/${n.video}`}function Ss(e){if(!ys.some(t=>t.id===e.id&&t.video===e.video))throw Error(`דוגמת וידאו לא מוכרת`);let t=Bt(e.title,{mode:`flat-video`,scenes:[],templateId:`sample-${e.id}`,canvas:{width:e.width,height:e.height,fps:e.fps}}),n=Lt(`asset`);return t.assets=[{id:n,name:e.originalFilename,kind:`video`,src:bs(e.id),mime:`video/mp4`,duration:e.durationSeconds}],t.mediaTracks=[{id:Lt(`track`),name:`וידאו מקורי`,type:`video`,muted:!1,clips:[{id:Lt(`clip`),assetId:n,start:0,in:0,out:e.durationSeconds,volume:1,muted:!1}]}],t}function Cs({src:e,time:t,active:n,playing:r,muted:i,volume:a}){let o=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=o.current;e&&(e.volume=Math.min(1,a),e.muted=i,Math.abs(e.currentTime-t)>.2&&(e.currentTime=Math.max(0,t)),n&&r?e.play().catch(()=>{}):e.pause())},[t,n,r,i,a]),(0,U.jsx)(`audio`,{ref:o,src:e,preload:`metadata`})}function ws({src:e,time:t,playing:n}){let r=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=r.current;e&&(Math.abs(e.currentTime-t)>.25&&(e.currentTime=Math.max(0,t)),n?e.play().catch(()=>{}):e.pause())},[t,n]),(0,U.jsx)(`video`,{ref:r,src:e,muted:!0,playsInline:!0,preload:`auto`,style:{position:`absolute`,width:`100%`,height:`100%`,objectFit:`contain`}})}function Ts({layer:e,project:t,time:n,onSelect:r,playing:i,sceneStart:a=0,siblings:o=[]}){let s=bt(e,n,{canvas:t.canvas,schemaVersion:t.schemaVersion,beats:t.beats,sceneStart:a,layers:o}),c=t.assets.find(t=>t.id===e.assetId),l=(0,b.useMemo)(()=>un(e),[e]),u=s.textUnits?(0,U.jsx)(`span`,{style:St(e),children:s.textUnits.map((e,t)=>(0,U.jsx)(`span`,{style:xt(e),children:e.text},t))}):s.text;return(0,U.jsxs)(`div`,{"data-layer-id":e.id,onClick:t=>{t.stopPropagation(),r?.(e.id)},style:{...Ct(e,s),cursor:r?`pointer`:void 0,pointerEvents:r?`auto`:void 0},children:[e.type===`text`?u:null,e.type===`path`||e.type===`svg`?(0,U.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 ${e.width} ${e.height}`,children:(0,U.jsx)(`path`,{d:e.pathData||``,fill:e.type===`svg`?s.color||e.color:`none`,stroke:s.color||e.stroke||e.color,strokeWidth:e.strokeWidth||3,pathLength:1,strokeDasharray:1,strokeDashoffset:1-s.reveal})}):null,e.type===`image`&&c?(0,U.jsx)(`img`,{src:xs(c.src),style:{width:`100%`,height:`100%`,objectFit:`cover`}}):null,e.type===`video`&&c?(0,U.jsx)(ws,{src:xs(c.src),time:Math.max(0,n-e.start),playing:i}):null,e.type===`group`||e.type===`repeater`?(e.type===`repeater`?l:e.children)?.map(o=>(0,U.jsx)(Ts,{layer:o,project:t,time:n-e.start,sceneStart:a+e.start,siblings:e.type===`repeater`?l:e.children,onSelect:e.type===`repeater`?()=>r?.(e.id):r,playing:i},o.id)):null]})}function Es({project:e,time:t,onSelect:n,playing:r=!1,sceneStartOffset:i=0}){let a=Ht(e,t),o=a?.scene,s=o?Math.min(o.transitionDuration||.5,o.duration/2):0,c=s?a.localTime/s:1,l=a&&a.index>0&&o?.transition!==`cut`&&a.localTime<s?e.scenes[a.index-1]:null,u=(t,a,o)=>(0,U.jsx)(`div`,{style:{position:`absolute`,inset:0,background:t.background,overflow:`hidden`,...o},children:t.layers.map(o=>{let s=(0,U.jsx)(Ts,{layer:o,project:e,time:a,sceneStart:i+e.scenes.slice(0,e.scenes.indexOf(t)).reduce((e,t)=>e+t.duration,0),siblings:t.layers,onSelect:n,playing:r},o.id);return t.camera?(0,U.jsx)(`div`,{style:{...en(t,a,e.canvas,o.depth||0),pointerEvents:`none`},children:s},o.id):s})},t.id);return(0,U.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 ${e.canvas.width} ${e.canvas.height}`,xmlns:`http://www.w3.org/2000/svg`,children:(0,U.jsx)(`foreignObject`,{x:`0`,y:`0`,width:e.canvas.width,height:e.canvas.height,children:(0,U.jsxs)(`div`,{style:{width:`100%`,height:`100%`,position:`relative`,overflow:`hidden`,background:e.schemaVersion===3?l?.background??o?.background??`#000`:`#000`,direction:`rtl`},children:[e.mediaTracks.flatMap(n=>n.clips.map(i=>{let a=e.assets.find(e=>e.id===i.assetId);return a?(0,U.jsx)(Cs,{src:xs(a.src),time:i.in+t-i.start,active:t>=i.start&&t<i.start+i.out-i.in,playing:r,muted:n.muted||i.muted,volume:i.volume},i.id):null})),e.mediaTracks.filter(e=>e.type===`video`).flatMap(n=>n.clips.filter(e=>t>=e.start&&t<e.start+e.out-e.in).map(n=>{let i=e.assets.find(e=>e.id===n.assetId);return i?(0,U.jsx)(ws,{src:xs(i.src),time:n.in+t-n.start,playing:r},n.id):null})),l&&u(l,e.schemaVersion===3?l.duration-.001:l.duration-s+a.localTime,$t(o,c,!0,e.schemaVersion)),o&&u(o,a.localTime,$t(o,c,!1,e.schemaVersion))]})})})}var Ds=`/*!
|
|
150
150
|
* GSAP 3.13.0
|
|
151
151
|
* https://gsap.com
|
|
152
152
|
*
|
|
@@ -269,7 +269,7 @@ ${xi.join(`, `)}.
|
|
|
269
269
|
- יתרון שני
|
|
270
270
|
- יתרון שלישי
|
|
271
271
|
92% לקוחות מרוצים
|
|
272
|
-
לפרטים: example.co.il`}),(0,U.jsxs)(`div`,{className:`st-between`,children:[T?(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,onClick:()=>{s(T),E(null)},children:[(0,U.jsx)(ct,{size:14}),`חזרה לטקסט של התבנית`]}):(0,U.jsx)(`span`,{}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,disabled:!ee.trim(),onClick:()=>{let e=T??o,t=(t,n)=>{let r=e.scenes.filter(e=>e.type===t);return structuredClone(r.length?r[n%r.length]:Uo(t))},{config:n}=yc(ee,{ratio:e.aspectRatio??`16:9`,palette:{id:`template`,name:``,theme:e.theme??`orbit`,palette:{...e.palette}},pick:t}),r={...n,theme:e.theme,seed:e.seed,build:e.build,life:e.life,motionBlur:e.motionBlur,fps:e.fps};T||E(e),s(i?ss(r,i):r),v.current=-1},children:[(0,U.jsx)(ht,{size:14}),`בנו עם הטקסט שלי`]})]})]})]}),(0,U.jsx)(Jc,{config:o,onChange:s,brandPalette:i?.palette,onSceneFocus:y})]})]})}function Zc({template:e,onOpenProject:t,onClose:n,brand:r,onDirty:i}){let[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(``);(0,b.useEffect)(()=>{let t=!0;return _i(e).then(n=>{if(t){let t=r?ls(n,r):n,i=an(`${e.id}.html`,t);o({...i,canvas:{...i.canvas,width:e.width,height:e.height,fps:30},title:e.title,templateId:`studio-hf-${e.id}`})}}).catch(e=>c(String(e))),()=>{t=!1}},[e]);let l=a?.source?.current??``,u=(0,b.useMemo)(()=>{try{return l?bn(l):null}catch{return null}},[l]),[d,f]=(0,b.useState)(``);(0,b.useEffect)(()=>{let e=setTimeout(()=>f(l),300);return()=>clearTimeout(e)},[l]);let p=(e,t)=>{if(a){i(!0);try{let n=xn(a,[{fieldId:e,value:t}],u?.fingerprint);n&&o(n),c(``)}catch(e){c(e instanceof Error?e.message:String(e))}}},m=u?.fields.filter(e=>e.editable&&e.kind===`text`)??[],h=u?.fields.filter(e=>e.editable&&e.kind===`color`)??[],g=d?Fs(d):{width:e.width,height:e.height,duration:e.duration},_=(0,b.useMemo)(()=>{let e=new Map;for(let t of m){let n=t.sceneId||`general`;e.set(n,[...e.get(n)??[],t])}return[...e]},[m]),v=(0,b.useMemo)(()=>{let e={};for(let t of d.matchAll(/<section\b[^>]*\bid=["']([^"']+)["'][^>]*>/gi)){let n=t[0],r=/data-start=["']([\d.]+)/.exec(n),i=/data-duration=["']([\d.]+)/.exec(n);r&&i&&(e[t[1]]=[Number(r[1]),Number(i[1])])}return e},[d]),[y,x]=(0,b.useState)();return(0,U.jsxs)(`div`,{className:`st-custom`,children:[(0,U.jsxs)(`div`,{className:`st-custom-preview`,children:[d?(0,U.jsx)(Ws,{html:d,width:g.width,height:g.height,duration:g.duration,seek:y}):(0,U.jsx)(`div`,{className:`st-stage st-loading`,style:{aspectRatio:`${e.width}/${e.height}`},children:`טוען…`}),(0,U.jsxs)(`div`,{className:`st-meta`,children:[(0,U.jsxs)(`span`,{children:[e.duration,` שניות`]}),(0,U.jsxs)(`bdi`,{dir:`ltr`,children:[e.width,`×`,e.height]}),(0,U.jsx)(`span`,{className:`st-pill hf`,children:`HyperFrames · GSAP`})]}),s&&(0,U.jsx)(`p`,{className:`st-error`,role:`alert`,children:s}),(0,U.jsxs)(`div`,{className:`st-actions`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,disabled:!a,onClick:()=>{a&&(t(Uc(a)),n())},children:[(0,U.jsx)(ge,{size:15}),`פתיחה בעורך`]}),(0,U.jsx)(Yc,{project:a}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,disabled:!l,title:`קובץ אחד שמתנגן בכל דפדפן`,onClick:()=>Vc(Ps(l),`${e.id}.html`,`text/html`),children:[(0,U.jsx)(me,{size:15}),`HTML לצפייה`]}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,disabled:!l,title:`קוד המקור, לעריכה או לרינדור ב־HyperFrames`,onClick:()=>Vc(As(l),`${e.id}.source.html`,`text/html`),children:[(0,U.jsx)(me,{size:15}),`קוד מקור`]})]}),(0,U.jsx)(`p`,{className:`st-note`,children:`קובץ ה־HTML כולל את GSAP והגופנים, ונפתח בכל דפדפן או מרונדר ב־HyperFrames.`})]}),(0,U.jsxs)(`div`,{className:`st-form`,children:[h.length>0&&(0,U.jsxs)(`div`,{className:`st-field`,children:[(0,U.jsx)(`span`,{children:`צבעים`}),(0,U.jsx)(`div`,{className:`st-colors`,children:h.map(e=>(0,U.jsxs)(`label`,{children:[(0,U.jsx)(`input`,{type:`color`,value:String(e.value).slice(0,7),onChange:t=>p(e.id,t.target.value)}),(0,U.jsx)(`span`,{children:Gc(e.label)})]},e.id))})]}),(0,U.jsx)(`div`,{className:`st-field`,children:(0,U.jsxs)(`span`,{children:[`טקסטים · `,m.length,` `,(0,U.jsx)(`small`,{children:`לחיצה על שדה מציגה את הסצנה שלו`})]})}),_.map(([e,t])=>(0,U.jsxs)(`fieldset`,{className:`st-hfgroup`,children:[(0,U.jsx)(`legend`,{children
|
|
272
|
+
לפרטים: example.co.il`}),(0,U.jsxs)(`div`,{className:`st-between`,children:[T?(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,onClick:()=>{s(T),E(null)},children:[(0,U.jsx)(ct,{size:14}),`חזרה לטקסט של התבנית`]}):(0,U.jsx)(`span`,{}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,disabled:!ee.trim(),onClick:()=>{let e=T??o,t=(t,n)=>{let r=e.scenes.filter(e=>e.type===t);return structuredClone(r.length?r[n%r.length]:Uo(t))},{config:n}=yc(ee,{ratio:e.aspectRatio??`16:9`,palette:{id:`template`,name:``,theme:e.theme??`orbit`,palette:{...e.palette}},pick:t}),r={...n,theme:e.theme,seed:e.seed,build:e.build,life:e.life,motionBlur:e.motionBlur,fps:e.fps};T||E(e),s(i?ss(r,i):r),v.current=-1},children:[(0,U.jsx)(ht,{size:14}),`בנו עם הטקסט שלי`]})]})]})]}),(0,U.jsx)(Jc,{config:o,onChange:s,brandPalette:i?.palette,onSceneFocus:y})]})]})}function Zc({template:e,onOpenProject:t,onClose:n,brand:r,onDirty:i}){let[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(``);(0,b.useEffect)(()=>{let t=!0;return _i(e).then(n=>{if(t){let t=r?ls(n,r):n,i=an(`${e.id}.html`,t);o({...i,canvas:{...i.canvas,width:e.width,height:e.height,fps:30},title:e.title,templateId:`studio-hf-${e.id}`})}}).catch(e=>c(String(e))),()=>{t=!1}},[e]);let l=a?.source?.current??``,u=(0,b.useMemo)(()=>{try{return l?bn(l):null}catch{return null}},[l]),[d,f]=(0,b.useState)(``);(0,b.useEffect)(()=>{let e=setTimeout(()=>f(l),300);return()=>clearTimeout(e)},[l]);let p=(e,t)=>{if(a){i(!0);try{let n=xn(a,[{fieldId:e,value:t}],u?.fingerprint);n&&o(n),c(``)}catch(e){c(e instanceof Error?e.message:String(e))}}},m=u?.fields.filter(e=>e.editable&&e.kind===`text`)??[],h=u?.fields.filter(e=>e.editable&&e.kind===`color`)??[],g=d?Fs(d):{width:e.width,height:e.height,duration:e.duration},_=(0,b.useMemo)(()=>{let e=new Map;for(let t of m){let n=t.sceneId||`general`;e.set(n,[...e.get(n)??[],t])}return[...e]},[m]),v=(0,b.useMemo)(()=>{let e={};for(let t of d.matchAll(/<section\b[^>]*\bid=["']([^"']+)["'][^>]*>/gi)){let n=t[0],r=/data-start=["']([\d.]+)/.exec(n),i=/data-duration=["']([\d.]+)/.exec(n);r&&i&&(e[t[1]]=[Number(r[1]),Number(i[1])])}return e},[d]),[y,x]=(0,b.useState)();return(0,U.jsxs)(`div`,{className:`st-custom`,children:[(0,U.jsxs)(`div`,{className:`st-custom-preview`,children:[d?(0,U.jsx)(Ws,{html:d,width:g.width,height:g.height,duration:g.duration,seek:y}):(0,U.jsx)(`div`,{className:`st-stage st-loading`,style:{aspectRatio:`${e.width}/${e.height}`},children:`טוען…`}),(0,U.jsxs)(`div`,{className:`st-meta`,children:[(0,U.jsxs)(`span`,{children:[e.duration,` שניות`]}),(0,U.jsxs)(`bdi`,{dir:`ltr`,children:[e.width,`×`,e.height]}),(0,U.jsx)(`span`,{className:`st-pill hf`,children:`HyperFrames · GSAP`})]}),s&&(0,U.jsx)(`p`,{className:`st-error`,role:`alert`,children:s}),(0,U.jsxs)(`div`,{className:`st-actions`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,disabled:!a,onClick:()=>{a&&(t(Uc(a)),n())},children:[(0,U.jsx)(ge,{size:15}),`פתיחה בעורך`]}),(0,U.jsx)(Yc,{project:a}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,disabled:!l,title:`קובץ אחד שמתנגן בכל דפדפן`,onClick:()=>Vc(Ps(l),`${e.id}.html`,`text/html`),children:[(0,U.jsx)(me,{size:15}),`HTML לצפייה`]}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,disabled:!l,title:`קוד המקור, לעריכה או לרינדור ב־HyperFrames`,onClick:()=>Vc(As(l),`${e.id}.source.html`,`text/html`),children:[(0,U.jsx)(me,{size:15}),`קוד מקור`]})]}),(0,U.jsx)(`p`,{className:`st-note`,children:`קובץ ה־HTML כולל את GSAP והגופנים, ונפתח בכל דפדפן או מרונדר ב־HyperFrames.`})]}),(0,U.jsxs)(`div`,{className:`st-form`,children:[h.length>0&&(0,U.jsxs)(`div`,{className:`st-field`,children:[(0,U.jsx)(`span`,{children:`צבעים`}),(0,U.jsx)(`div`,{className:`st-colors`,children:h.map(e=>(0,U.jsxs)(`label`,{children:[(0,U.jsx)(`input`,{type:`color`,value:String(e.value).slice(0,7),onChange:t=>p(e.id,t.target.value)}),(0,U.jsx)(`span`,{children:Gc(e.label)})]},e.id))})]}),(0,U.jsx)(`div`,{className:`st-field`,children:(0,U.jsxs)(`span`,{children:[`טקסטים · `,m.length,` `,(0,U.jsx)(`small`,{children:`לחיצה על שדה מציגה את הסצנה שלו`})]})}),_.map(([e,t])=>(0,U.jsxs)(`fieldset`,{className:`st-hfgroup`,children:[(0,U.jsx)(`legend`,{children:/^s\d+$/.test(e)?`סצנה ${e.slice(1)}`:`כללי`}),t.map((t,n)=>(0,U.jsxs)(`label`,{className:`st-field compact`,children:[(0,U.jsx)(`span`,{children:n+1}),(0,U.jsx)(`input`,{dir:`auto`,value:String(t.value),onFocus:()=>{let t=v[e];t&&x(e=>({t:t[0]+Math.min(1.4,t[1]*.6),n:(e?.n??0)+1}))},onChange:e=>p(t.id,e.target.value)})]},t.id))]},e))]})]})}function Qc({template:e,onClose:t,onOpenProject:n,onSendToBuilder:r,brand:i=null}){let[a,o]=(0,b.useState)(!1),s=e=>o(e);return(0,U.jsx)(qc,{title:e.title,onClose:t,dirty:a,children:e.kind===`motion`?(0,U.jsx)(Xc,{template:e,onOpenProject:n,onClose:t,onSendToBuilder:r,brand:i,onDirty:s}):(0,U.jsx)(Zc,{template:e,onOpenProject:n,onClose:t,brand:i,onDirty:s})})}var $c=[{id:`launch`,name:`השקה מהירה`,hint:`6 סצנות · 22 שנ׳`,ratio:`16:9`,types:[`hook`,`kinetic`,`cards`,`phone`,`counter`,`endcard`]},{id:`explain`,name:`הסבר מוצר`,hint:`7 סצנות · 25 שנ׳`,ratio:`16:9`,types:[`hook`,`notification-stack`,`ui-cursor`,`timeline`,`checklist`,`confetti`,`endcard`]},{id:`report`,name:`דוח נתונים`,hint:`6 סצנות · 22 שנ׳`,ratio:`16:9`,types:[`hook`,`bars`,`line-chart`,`donut`,`big-number`,`endcard`]},{id:`story`,name:`סטורי קצר`,hint:`5 סצנות · 16 שנ׳`,ratio:`9:16`,types:[`hook`,`kinetic`,`compare`,`confetti`,`endcard`]},{id:`event`,name:`הזמנה לאירוע`,hint:`6 סצנות · 21 שנ׳`,ratio:`16:9`,types:[`hook`,`timeline`,`map-route`,`marquee`,`freeze`,`endcard`]},{id:`promo`,name:`מבצע`,hint:`6 סצנות · 20 שנ׳`,ratio:`1:1`,types:[`hook`,`big-number`,`cards`,`coins`,`confetti`,`endcard`]}],el=`motiondesk.studio.builder`,tl=30,nl=`קפה טרי כל בוקר בשכונה
|
|
273
273
|
פולים שנקלים אצלנו, כל יום מחדש
|
|
274
274
|
מה מחכה לכם:
|
|
275
275
|
- אספרסו מושלם
|
|
@@ -285,6 +285,6 @@ ${xi.join(`, `)}.
|
|
|
285
285
|
}`,"aria-label":`תשובת המודל`}),(0,U.jsxs)(`div`,{className:`st-actions`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,disabled:!v.trim(),onClick:()=>oe(),children:[(0,U.jsx)(Fe,{size:15}),`בדיקה ובניית הסרטון`]}),D&&i!==`hyperframes`&&(0,U.jsx)(`button`,{type:`button`,className:`md-btn`,onClick:()=>{let e=JSON.stringify(r?cs(D.config,r):D.config,null,2);y(e),oe(e)},children:`ניסיון עם דוגמה`})]}),C?.error&&(0,U.jsxs)(`div`,{className:`st-result bad`,role:`alert`,children:[(0,U.jsx)(`b`,{children:`הקונפיגורציה לא נבנתה`}),(0,U.jsx)(`p`,{children:C.error}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,onClick:async()=>ae(await Hc(Tc(v,C.error,C.fixes))?`repair`:`fail`),children:[x===`repair`?(0,U.jsx)(ie,{size:15}):(0,U.jsx)(ht,{size:15}),x===`repair`?`הועתק — הדביקו למודל`:`העתקת פרומפט תיקון למודל`]})]}),C?.config&&C.project&&(0,U.jsxs)(`div`,{className:`st-result good`,children:[(0,U.jsx)(Hs,{project:C.project}),(0,U.jsxs)(`div`,{className:`st-meta`,children:[(0,U.jsxs)(`span`,{children:[C.config.scenes.length,` סצנות`]}),(0,U.jsxs)(`span`,{children:[J(C.config).toFixed(1),` שניות`]}),(0,U.jsx)(`bdi`,{children:C.config.aspectRatio??`16:9`})]}),C.fixes.length>0&&(0,U.jsxs)(`details`,{children:[(0,U.jsxs)(`summary`,{children:[C.fixes.length,` תיקונים אוטומטיים`]}),(0,U.jsx)(`ul`,{children:C.fixes.map((e,t)=>(0,U.jsx)(`li`,{children:e},t))})]}),C.warnings.map(e=>(0,U.jsx)(`p`,{className:`st-warn`,children:e},e)),(0,U.jsxs)(`div`,{className:`st-actions`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,onClick:()=>t(Uc(C.project,C.config.title)),children:[(0,U.jsx)(ge,{size:15}),`פתיחה בעורך`]}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,onClick:()=>n(C.config),children:[(0,U.jsx)(Se,{size:15}),`המשך בבונה`]})]})]}),w&&w.errors.length>0&&(0,U.jsxs)(`div`,{className:`st-result bad`,role:`alert`,children:[(0,U.jsx)(`b`,{children:`הקובץ לא מוכן לנגינה`}),(0,U.jsx)(`ul`,{children:w.errors.map(e=>(0,U.jsx)(`li`,{children:e},e))}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,onClick:async()=>ae(await Hc(`הקובץ שהחזרת לא עומד בחוזה של MotionDesk HyperFrames. תקן את הבעיות הבאות והחזר רק את קובץ ה־HTML המלא:\n- ${w.errors.join(`
|
|
286
286
|
- `)}\n\n${re}\n\nהקובץ:\n${v.slice(0,3e4)}`)?`repair`:`fail`),children:[x===`repair`?(0,U.jsx)(ie,{size:15}):(0,U.jsx)(ht,{size:15}),x===`repair`?`הועתק — הדביקו למודל`:`העתקת פרומפט תיקון למודל`]})]}),w&&!w.errors.length&&w.html&&w.info&&(0,U.jsxs)(`div`,{className:`st-result good`,children:[(0,U.jsx)(Ws,{html:w.html,width:w.info.width,height:w.info.height,duration:w.info.duration}),(0,U.jsxs)(`div`,{className:`st-meta`,children:[(0,U.jsxs)(`bdi`,{dir:`ltr`,children:[w.info.width,`×`,w.info.height]}),(0,U.jsxs)(`span`,{children:[w.info.duration,` שניות`]}),(0,U.jsx)(`span`,{className:`st-pill hf`,children:`HyperFrames · GSAP`})]}),w.fixes.length>0&&(0,U.jsxs)(`details`,{children:[(0,U.jsxs)(`summary`,{children:[w.fixes.length,` תיקונים אוטומטיים`]}),(0,U.jsx)(`ul`,{children:w.fixes.map((e,t)=>(0,U.jsx)(`li`,{children:e},t))})]}),w.warnings.map(e=>(0,U.jsx)(`p`,{className:`st-warn`,children:e},e)),(0,U.jsx)(`div`,{className:`st-actions`,children:(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,onClick:se,children:[(0,U.jsx)(ge,{size:15}),`פתיחה בעורך`]})})]})]})]})}var ul=Object.assign({"../catalog/assets/arrows.json":()=>W(()=>import(`./arrows-_CCvumhN.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/badges.json":()=>W(()=>import(`./badges-BPgMBVy0.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/business.json":()=>W(()=>import(`./business-BQslCr0i.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/celebration.json":()=>W(()=>import(`./celebration-COCZTKjl.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/devices.json":()=>W(()=>import(`./devices-D1500q8F.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/food.json":()=>W(()=>import(`./food-PijmcKM-.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/health.json":()=>W(()=>import(`./health-DMeKWmDa.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/holidays.json":()=>W(()=>import(`./holidays-BmXfhKdf.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/nature.json":()=>W(()=>import(`./nature-Bj99iNsv.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/objects.json":()=>W(()=>import(`./objects-DD8bqyWR.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/people.json":()=>W(()=>import(`./people-l3GsDfAr.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/seasons.json":()=>W(()=>import(`./seasons-BFYc_klb.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/shapes.json":()=>W(()=>import(`./shapes-AVMwC-FR.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/stickers.json":()=>W(()=>import(`./stickers-J4NDCW2L.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/tech.json":()=>W(()=>import(`./tech-D-xc9pRv.js`).then(e=>e.default),[],import.meta.url),"../catalog/assets/transport.json":()=>W(()=>import(`./transport-Bolufhfq.js`).then(e=>e.default),[],import.meta.url)}),dl=[`objects`,`business`,`people`,`shapes`,`badges`,`stickers`,`tech`,`celebration`,`holidays`,`food`,`health`,`nature`,`transport`,`arrows`,`devices`,`seasons`],fl=null;function pl(){return fl??=Promise.all(Object.values(ul).map(e=>e())).then(e=>e.sort((e,t)=>(dl.indexOf(e.pack.id)+1||99)-(dl.indexOf(t.pack.id)+1||99))),fl}function ml(e,t){switch(e){case`accent`:return t.accent;case`secondary`:return t.secondary;case`fg`:return t.foreground;case`bg`:return t.background;case`white`:return`#FFFFFF`;case`black`:return`#111111`;default:return/^#[0-9a-fA-F]{6}$/.test(e)?e:t.accent}}function hl(e,t){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${e.w} ${e.h}">${e.parts.map(e=>`<path d="${e.d.replace(/[^MLHVCSQTAZmlhvcsqtaz0-9.,\s-]/g,``)}" fill="${ml(e.fill,t)}"${e.opacity===void 0?``:` fill-opacity="${Math.max(0,Math.min(1,e.opacity))}"`}/>`).join(``)}</svg>`}function gl(e,t,{x:n,y:r,size:i,duration:a}){let o=i/Math.max(e.w,e.h),s=Math.round(e.w*o),c=Math.round(e.h*o),l=e.parts.map((n,r)=>Rt(`svg`,{name:`${e.name} · חלק ${r+1}`,x:0,y:0,width:s,height:c,pathData:Ri(n.d,o),color:ml(n.fill,t),opacity:n.opacity??1,motion:`none`,motionOut:`none`,start:0,duration:a}));return Rt(`group`,{name:e.name,x:Math.round(n-s/2),y:Math.round(r-c/2),width:s,height:c,children:l,motion:`pop`,motionDuration:.6,motionOut:`none`,start:0,duration:a})}function _l({asset:e,colors:t}){let n=(0,b.useMemo)(()=>`data:image/svg+xml;charset=utf-8,${encodeURIComponent(hl(e,t))}`,[e,t]);return(0,U.jsx)(`img`,{src:n,alt:e.name,loading:`lazy`,draggable:!1})}async function vl(e,t=1024){let n=new Image;n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`,await n.decode();let r=n.naturalWidth/n.naturalHeight||1,i=document.createElement(`canvas`);return i.width=r>=1?t:Math.round(t*r),i.height=r>=1?Math.round(t/r):t,i.getContext(`2d`).drawImage(n,0,0,i.width,i.height),i.toDataURL(`image/png`)}function yl({brand:e,onInsert:t,insertLabel:n=`הוספה לסצנה הפתוחה`}){let[r,i]=(0,b.useState)(null),[a,o]=(0,b.useState)(`all`),[s,c]=(0,b.useState)(``),l=(0,b.useMemo)(()=>[...e.palette?[{id:`brand`,name:`המותג שלי`,palette:e.palette}]:[],...zo.map(e=>({id:e.id,name:e.name,palette:e.palette}))],[e]),[u,d]=(0,b.useState)(l[0].id),f=(l.find(e=>e.id===u)??l[0]).palette;(0,b.useEffect)(()=>{pl().then(i).catch(()=>i([]))},[]);let p=(0,b.useMemo)(()=>{if(!r)return[];let e=ps(s);return r.filter(e=>a===`all`||e.pack.id===a).flatMap(e=>e.assets.map(t=>({a:t,p:e.pack.title}))).filter(({a:t})=>!e.length||e.every(e=>ps([t.name,...t.tags].join(` `)).some(t=>t.startsWith(e)||t.includes(e))))},[r,a,s]);return r?r.length?(0,U.jsxs)(`div`,{className:`st-assets`,children:[(0,U.jsxs)(`div`,{className:`st-cats wrap`,role:`tablist`,"aria-label":`חבילות נכסים`,children:[(0,U.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":a===`all`,className:`st-cat`+(a===`all`?` active`:``),onClick:()=>o(`all`),children:[(0,U.jsx)(vs,{name:`sparkles`}),(0,U.jsx)(`span`,{children:`הכול`}),(0,U.jsx)(`small`,{children:r.reduce((e,t)=>e+t.assets.length,0)})]}),r.map(e=>(0,U.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":a===e.pack.id,className:`st-cat`+(a===e.pack.id?` active`:``),onClick:()=>o(e.pack.id),children:[(0,U.jsx)(vs,{name:e.pack.icon}),(0,U.jsx)(`span`,{children:e.pack.title}),(0,U.jsx)(`small`,{children:e.assets.length})]},e.pack.id))]}),(0,U.jsxs)(`div`,{className:`st-filters`,children:[(0,U.jsxs)(`div`,{className:`st-search`,children:[(0,U.jsx)(Ue,{size:15}),(0,U.jsx)(`input`,{placeholder:`חיפוש נכס: בית, חץ, מדבקה…`,value:s,onChange:e=>c(e.target.value),"aria-label":`חיפוש נכסים`})]}),(0,U.jsx)(`div`,{className:`st-swatches`,role:`radiogroup`,"aria-label":`צבעי הנכסים`,children:l.map(e=>(0,U.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":u===e.id,title:e.name,"aria-label":`צבעים: ${e.name}`,className:`st-swatch`+(u===e.id?` active`:``),onClick:()=>d(e.id),style:{background:e.palette.background},children:[(0,U.jsx)(`i`,{style:{background:e.palette.accent}}),(0,U.jsx)(`i`,{style:{background:e.palette.secondary}})]},e.id))}),(0,U.jsxs)(`span`,{className:`st-count`,children:[p.length,` נכסים`]})]}),(0,U.jsx)(`div`,{className:`st-assetgrid`,children:p.map(({a:e,p:r})=>(0,U.jsxs)(`figure`,{className:`st-asset`,children:[(0,U.jsx)(`div`,{className:`st-assetart`,style:{background:f.background},children:(0,U.jsx)(_l,{asset:e,colors:f})}),(0,U.jsxs)(`figcaption`,{children:[(0,U.jsx)(`b`,{children:e.name}),(0,U.jsx)(`small`,{children:r})]}),(0,U.jsxs)(`div`,{className:`st-assetops`,children:[t&&(0,U.jsx)(`button`,{type:`button`,className:`insert`,onClick:()=>t(e,f),title:n,"aria-label":`${n}: ${e.name}`,children:(0,U.jsx)(Ie,{size:13})}),(0,U.jsxs)(`button`,{type:`button`,onClick:()=>Vc(hl(e,f),`${e.id}.svg`,`image/svg+xml`),title:`הורדת SVG`,"aria-label":`הורדת SVG: ${e.name}`,children:[(0,U.jsx)(me,{size:13}),`SVG`]}),(0,U.jsxs)(`button`,{type:`button`,onClick:async()=>{let t=await vl(hl(e,f)),n=document.createElement(`a`);n.href=t,n.download=`${e.id}.png`,n.click()},title:`הורדת PNG`,"aria-label":`הורדת PNG: ${e.name}`,children:[(0,U.jsx)(me,{size:13}),`PNG`]})]})]},e.id))}),!p.length&&(0,U.jsx)(`div`,{className:`st-empty`,children:`לא נמצאו נכסים.`})]}):(0,U.jsx)(`div`,{className:`st-empty`,children:`ספריית הנכסים ריקה.`}):(0,U.jsx)(`div`,{className:`st-empty`,children:`טוען נכסים…`})}function bl({brand:e,onSave:t,onClose:n}){let[r,i]=(0,b.useState)(e),a=r.palette,o=a&&Lo(a.background,a.accent)<4.5&&Lo(a.background,a.secondary)<4.5;return(0,U.jsx)(qc,{title:`המותג שלי`,onClose:n,wide:!1,children:(0,U.jsxs)(`div`,{className:`st-form`,children:[(0,U.jsx)(`p`,{className:`st-note`,children:`שמרו פעם אחת את פרטי המותג, וכל התבניות בגלריה יוצגו עם השם, הצבעים והקריאה לפעולה שלכם. אפשר לכבות את זה בכל רגע בגלריה.`}),(0,U.jsxs)(`label`,{className:`st-field`,children:[(0,U.jsx)(`span`,{children:`שם המותג או המוצר`}),(0,U.jsx)(`input`,{value:r.name,maxLength:40,placeholder:`למשל: קפה רוזה`,onChange:e=>i({...r,name:e.target.value})})]}),(0,U.jsxs)(`label`,{className:`st-field`,children:[(0,U.jsxs)(`span`,{children:[`סלוגן `,(0,U.jsx)(`small`,{children:`יופיע בכרטיס הסיום`})]}),(0,U.jsx)(`input`,{value:r.tagline,maxLength:80,placeholder:`למשל: הקפה של השכונה`,onChange:e=>i({...r,tagline:e.target.value})})]}),(0,U.jsxs)(`label`,{className:`st-field`,children:[(0,U.jsxs)(`span`,{children:[`קריאה לפעולה `,(0,U.jsx)(`small`,{children:`הכפתור בסוף הסרטון`})]}),(0,U.jsx)(`input`,{value:r.cta,maxLength:40,placeholder:`למשל: מזמינים באתר`,onChange:e=>i({...r,cta:e.target.value})})]}),(0,U.jsxs)(`div`,{className:`st-field`,children:[(0,U.jsx)(`span`,{children:`צבעי המותג`}),(0,U.jsxs)(`div`,{className:`st-swatches`,children:[(0,U.jsx)(`button`,{type:`button`,className:`st-swatch none`+(a?``:` active`),onClick:()=>i({...r,palette:null}),"aria-label":`בלי צבעי מותג`,title:`הצבעים המקוריים של כל תבנית`,children:`∅`}),zo.map(e=>(0,U.jsxs)(`button`,{type:`button`,title:e.name,"aria-label":`פלטה ${e.name}`,className:`st-swatch`+(a&&a.background===e.palette.background&&a.accent===e.palette.accent?` active`:``),style:{background:e.palette.background},onClick:()=>i({...r,palette:{...e.palette}}),children:[(0,U.jsx)(`i`,{style:{background:e.palette.accent}}),(0,U.jsx)(`i`,{style:{background:e.palette.secondary}})]},e.id))]}),a&&(0,U.jsx)(`div`,{className:`st-colors`,children:[[`background`,`רקע`],[`foreground`,`טקסט`],[`accent`,`הדגשה`],[`secondary`,`משני`]].map(([e,t])=>(0,U.jsxs)(`label`,{children:[(0,U.jsx)(`input`,{type:`color`,value:a[e],onChange:t=>i({...r,palette:{...a,[e]:t.target.value.toUpperCase()}})}),(0,U.jsx)(`span`,{children:t})]},e))}),o&&(0,U.jsx)(`small`,{className:`st-warn`,children:`צבע ההדגשה חלש מול הרקע. מילים מודגשות יוצגו בצבע הטקסט.`})]}),(0,U.jsxs)(`div`,{className:`st-actions`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-btn primary`,onClick:()=>{t({...r,name:r.name.trim(),tagline:r.tagline.trim(),cta:r.cta.trim()}),n()},children:[(0,U.jsx)(ie,{size:15}),`שמירה והחלה על הגלריה`]}),(0,U.jsxs)(`button`,{type:`button`,className:`md-btn`,onClick:()=>{t(qo),n()},children:[(0,U.jsx)(it,{size:15}),`איפוס`]})]})]})})}var xl=class extends b.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){console.error(`[MotionDesk Studio]`,e)}reset=()=>{this.props.onReset?.(),this.setState({error:null})};render(){return this.state.error?(0,U.jsxs)(`div`,{className:`st-empty`,role:`alert`,children:[(0,U.jsxs)(`p`,{children:[(0,U.jsxs)(`b`,{children:[`משהו השתבש`,this.props.label?` ב${this.props.label}`:``,`.`]}),` שאר הסטודיו ממשיך לעבוד.`]}),(0,U.jsx)(`p`,{className:`st-note`,children:this.state.error.message}),(0,U.jsx)(`button`,{type:`button`,className:`md-btn primary`,onClick:this.reset,children:`לנסות שוב`})]}):this.props.children}},Sl=[{id:`gallery`,name:`בוחרים תבנית`,hint:`מאות סרטונים מוכנים לפי נושא`,Icon:Ce},{id:`builder`,name:`מרכיבים מאבנים`,hint:`בוחרים סצנות, התוכן מגיע מהגלריה`,Icon:E},{id:`prompts`,name:`יוצרים עם AI`,hint:`פרומפט למודל שפה → סרטון`,Icon:Ee},{id:`assets`,name:`נכסים`,hint:`צורות, מדבקות, אובייקטים ומסגרות`,Icon:Ke}],Cl=[`השקת אפליקציה`,`משכנתא`,`מבצע לחג`,`סלון יופי`,`הזמנה לאירוע`,`הופעה`,`דוח רבעוני`,`סטורי לאינסטגרם`,`גיוס עובדים`,`מסעדה`,`קמפיין תרומות`,`טורניר גיימינג`];function wl({onOpenProject:e,onInsertAsset:t,notify:n}){let[r,i]=(0,b.useState)(()=>{let e=new URLSearchParams(location.search).get(`studio`);return e===`builder`||e===`prompts`||e===`assets`?e:`gallery`}),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(``),[l,u]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[p,m]=(0,b.useState)(()=>new Set([r])),[h,g]=(0,b.useState)(0);(0,b.useEffect)(()=>{m(e=>e.has(r)?e:new Set([...e,r]));try{let e=new URL(location.href);r===`gallery`?e.searchParams.delete(`studio`):e.searchParams.set(`studio`,r),history.replaceState(history.state,``,e)}catch{}},[r]);let[_,v]=(0,b.useState)(``),[y,x]=(0,b.useState)(Zo),[S,C]=(0,b.useState)(()=>$o(Zo())),[ee,w]=(0,b.useState)(!1),[T,E]=(0,b.useState)(0);(0,b.useEffect)(()=>{c(``),hi().then(o).catch(e=>c(`הגלריה לא נטענה: `+(e instanceof Error?e.message:String(e))))},[T]);let D=e=>{f(structuredClone(e)),i(`builder`)},[O,te]=(0,b.useState)(ns),k=e=>{te(rs(`${e.kind}:${e.id}`)),u(e)},ne=a?.templates.filter(e=>e.kind===`motion`).length??0,re=a?.templates.filter(e=>e.kind===`hyperframes`).length??0,ie=S&&$o(y)?y:null;return(0,U.jsxs)(`div`,{className:`st-root`,children:[(0,U.jsxs)(`div`,{className:`st-hero`,children:[(0,U.jsxs)(`div`,{className:`st-herotext`,children:[(0,U.jsx)(`div`,{className:`md-eyebrow`,children:`MotionDesk Studio`}),(0,U.jsx)(`h2`,{children:`מה תרצו ליצור היום?`}),(0,U.jsxs)(`p`,{children:[`כותבים נושא, בוחרים תבנית, משנים טקסטים וצבעים, ומייצאים.`,a&&` ${ne} תבניות Motion ו־${re} תבניות HyperFrames ב־${a.categories.length} נושאים.`]})]}),(0,U.jsxs)(`form`,{className:`st-quick`,role:`search`,onSubmit:e=>{e.preventDefault(),i(`gallery`)},children:[(0,U.jsxs)(`div`,{className:`st-quickbox`,children:[(0,U.jsx)(Ue,{size:18}),(0,U.jsx)(`input`,{value:_,onChange:e=>{v(e.target.value),r!==`gallery`&&i(`gallery`)},placeholder:`למשל: סרטון השקה לאפליקציית כושר`,"aria-label":`על מה הסרטון?`}),(0,U.jsx)(`button`,{type:`submit`,className:`md-btn primary`,children:`מצאו לי תבניות`})]}),(0,U.jsxs)(`div`,{className:`st-herolinks`,children:[(0,U.jsxs)(`button`,{type:`button`,onClick:()=>{i(`builder`),g(e=>e+1)},children:[(0,U.jsx)(Ne,{size:14}),`יש לכם טקסט? `,(0,U.jsx)(`b`,{children:`מטקסט לסרטון`})]}),(0,U.jsxs)(`button`,{type:`button`,onClick:()=>i(`prompts`),children:[(0,U.jsx)(et,{size:14}),`רוצים משהו חדש לגמרי? `,(0,U.jsx)(`b`,{children:`יוצרים עם AI`})]})]}),(0,U.jsxs)(`div`,{className:`st-suggest`,children:[Cl.map(e=>(0,U.jsx)(`button`,{type:`button`,onClick:()=>{v(e),i(`gallery`)},children:e},e)),(0,U.jsxs)(`button`,{type:`button`,className:`st-brandlink`,onClick:()=>w(!0),children:[(0,U.jsx)(Ae,{size:13}),$o(y)?`המותג שלי: ${y.name||`צבעים`}`:`הגדרת המותג שלי`]})]})]})]}),(0,U.jsx)(`div`,{className:`st-tabs`,role:`tablist`,children:Sl.map(({id:e,name:t,hint:n,Icon:a})=>(0,U.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":r===e,className:r===e?`active`:``,onClick:()=>i(e),children:[(0,U.jsx)(a,{size:20}),(0,U.jsxs)(`span`,{children:[(0,U.jsx)(`b`,{children:t}),(0,U.jsx)(`small`,{children:n})]})]},e))}),s&&(0,U.jsxs)(`p`,{className:`st-error`,role:`alert`,children:[s,` `,(0,U.jsx)(`button`,{type:`button`,className:`md-btn`,onClick:()=>E(e=>e+1),children:`לנסות שוב`})]}),!a&&!s&&(0,U.jsx)(`div`,{className:`st-empty`,children:`טוען את הגלריה…`}),a&&p.has(`gallery`)&&(0,U.jsx)(`div`,{hidden:r!==`gallery`,children:(0,U.jsx)(xl,{label:`הגלריה`,children:(0,U.jsx)($s,{catalog:a,recent:O,onPick:k,query:_,setQuery:v,brand:y,useBrand:S,setUseBrand:C,onEditBrand:()=>w(!0)})})}),a&&p.has(`builder`)&&(0,U.jsx)(`div`,{hidden:r!==`builder`,children:(0,U.jsx)(xl,{label:`הבונה`,onReset:()=>{try{localStorage.removeItem(`motiondesk.studio.builder`)}catch{}},children:(0,U.jsx)(al,{catalog:a,seed:d,onSeedUsed:()=>f(null),onOpenProject:e,notify:n,brand:ie,textRequest:h})})}),a&&p.has(`prompts`)&&(0,U.jsx)(`div`,{hidden:r!==`prompts`,children:(0,U.jsx)(xl,{label:`יצירה עם AI`,children:(0,U.jsx)(ll,{catalog:a,onOpenProject:e,onSendToBuilder:D,brand:ie})})}),p.has(`assets`)&&(0,U.jsx)(`div`,{hidden:r!==`assets`,children:(0,U.jsx)(xl,{label:`הנכסים`,children:(0,U.jsx)(yl,{brand:y,onInsert:(e,r)=>{t(e,r)&&n(`"${e.name}" נוסף לסצנה הפתוחה בעורך`)},insertLabel:`הוספה לסצנה בעורך`})})}),l&&(0,U.jsx)(xl,{label:`חלון ההתאמה`,onReset:()=>u(null),children:(0,U.jsx)(Qc,{template:l,onClose:()=>u(null),onOpenProject:e,onSendToBuilder:D,brand:ie})}),ee&&(0,U.jsx)(bl,{brand:y,onClose:()=>w(!1),onSave:e=>{x(e),Qo(e),C($o(e)),n($o(e)?`המותג נשמר והוחל על הגלריה`:`המותג אופס`)}})]})}var Tl=Object.assign({"./bank-hapoalim-configs/01-car-choice.json":{format:`motiondesk-config/v1`,title:`רכב שמתאים לדרך שלכם`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`הדרך לרכב הבא מתחילה בשאלה אחת`,eyebrow:`רכב`,emphasis:`מה מתאים לכם?`,motion:`pop`},{duration:4,layout:`split`,headline:`חדש או יד שנייה?`,supporting:`שני מסלולים, החלטה אחת שמתאימה לתקציב ולצרכים.`,emphasis:`הבחירה שלכם`,motion:`slide-up`},{duration:4,layout:`statement`,headline:`בודקים את העלות הכוללת`,supporting:`מחיר, הוצאות שוטפות ותנאי מימון — הכול בתמונה אחת.`,motion:`fade`},{duration:4,layout:`end-card`,headline:`יוצאים לדרך עם החלטה ברורה`,supporting:`בחנו את האפשרויות לפני שמתקדמים.`,motion:`slide-up`}],visualTheme:`car-road`},"./bank-hapoalim-configs/02-holiday-budget.json":{format:`motiondesk-config/v1`,title:`החג מתחיל בתכנון`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`החג מתקרב. ההוצאות גם.`,eyebrow:`תכנון חג`,motion:`pop`},{duration:4,layout:`number`,headline:`מתחילים ממסגרת שמתאימה לכם`,emphasis:`תקציב`,supporting:`מגדירים מראש כמה אפשר להוציא.`,motion:`slide-up`},{duration:4,layout:`split`,headline:`מפרידים בין חובה לרצון`,supporting:`קניות, אירוח ונסיעות — לכל סעיף יש מקום.`,emphasis:`סדר עדיפויות`,motion:`fade`},{duration:4,layout:`end-card`,headline:`נהנים מהחג עם יותר שליטה`,supporting:`מתכננים, בודקים, ואז בוחרים.`,motion:`fade`}],visualTheme:`holiday-table`},"./bank-hapoalim-configs/03-one-click.json":{format:`motiondesk-config/v1`,title:`מרעיון לפעולה בדיגיטל`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`מה אם אפשר להתחיל בקלות?`,eyebrow:`חוויית דיגיטל`,motion:`pop`},{duration:3,layout:`number`,headline:`פותחים את האפליקציה`,emphasis:`01`,motion:`slide-up`},{duration:3,layout:`number`,headline:`בוחרים את הפעולה הרצויה`,emphasis:`02`,motion:`slide-up`},{duration:3,layout:`number`,headline:`בודקים פרטים לפני אישור`,emphasis:`03`,motion:`slide-up`},{duration:3,layout:`end-card`,headline:`פשוט להתקדם`,supporting:`השליטה תמיד בידיים שלכם.`,motion:`fade`}],visualTheme:`one-click`},"./bank-hapoalim-configs/04-career-course.json":{format:`motiondesk-config/v1`,title:`הצעד הבא בקריירה`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`קורס חדש יכול לפתוח כיוון חדש`,eyebrow:`לומדים ומתקדמים`,motion:`pop`},{duration:4,layout:`split`,headline:`מה תרצו ללמוד?`,supporting:`מגדירים יעד מקצועי ובוחרים את ההכשרה המתאימה.`,emphasis:`הכיוון שלכם`,motion:`slide-up`},{duration:4,layout:`statement`,headline:`מתכננים גם את הדרך לשם`,supporting:`זמן, עלות ומסגרת שמתאימה לשגרה.`,motion:`fade`},{duration:3,layout:`end-card`,headline:`נותנים מקום להתפתחות`,motion:`slide-up`}],visualTheme:`book-steps`},"./bank-hapoalim-configs/05-home-refresh.json":{format:`motiondesk-config/v1`,title:`בית חדש בתחושה`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`לפעמים שינוי קטן משנה את כל הבית`,eyebrow:`שדרוג הבית`,motion:`fade`},{duration:4,layout:`split`,headline:`מה משדרגים קודם?`,supporting:`מטבח, חדר עבודה או פינה שזקוקה לרענון.`,emphasis:`רעיון אחד`,motion:`pop`},{duration:4,layout:`number`,headline:`מגדירים סכום ומסגרת זמן`,emphasis:`תכנית`,motion:`slide-up`},{duration:4,layout:`end-card`,headline:`בונים שינוי שמתאים לבית שלכם`,supporting:`מתחילים בצעד מדויק.`,motion:`fade`}],visualTheme:`room-build`},"./bank-hapoalim-configs/06-summer-plans.json":{format:`motiondesk-config/v1`,title:`הקיץ שלכם בתנועה`,aspectRatio:`16:9`,fps:30,scenes:[{duration:2.5,layout:`statement`,headline:`קיץ אחד. הרבה אפשרויות.`,eyebrow:`תכניות לקיץ`,motion:`pop`},{duration:3,layout:`split`,headline:`נוסעים או נשארים קרוב?`,supporting:`בוחרים את החוויה שמתאימה לזמן ולתקציב.`,emphasis:`בוחרים`,motion:`slide-up`},{duration:3,layout:`number`,headline:`קובעים יעד להוצאות`,emphasis:`המסגרת`,motion:`pop`},{duration:3,layout:`statement`,headline:`משאירים מקום גם לספונטניות`,motion:`fade`},{duration:3.5,layout:`end-card`,headline:`הקיץ מתחיל בהחלטה שלכם`,motion:`slide-up`}],visualTheme:`summer-case`},"./bank-hapoalim-configs/07-car-upgrade.json":{format:`motiondesk-config/v1`,title:`משדרגים את הנסיעה`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`הרכב הבא צריך להתאים לחיים שלכם`,eyebrow:`חושבים על שדרוג`,motion:`pop`},{duration:3,layout:`split`,headline:`מה חשוב יותר?`,supporting:`מרווח, נוחות, חיסכון או שימוש יומיומי.`,emphasis:`הצרכים שלכם`,motion:`slide-up`},{duration:4,layout:`statement`,headline:`משווים את התמונה המלאה`,supporting:`עלות הרכישה, תחזוקה ואפשרויות מימון.`,motion:`fade`},{duration:4,layout:`end-card`,headline:`בוחרים את הצעד הבא בביטחון`,motion:`slide-up`}],visualTheme:`car-garage`},"./bank-hapoalim-configs/08-wedding-plan.json":{format:`motiondesk-config/v1`,title:`מתכננים את היום שלכם`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`היום הגדול מתחיל מרשימה קטנה`,eyebrow:`מתחתנים?`,motion:`fade`},{duration:4,layout:`split`,headline:`מקום, אנשים, חוויה`,supporting:`מחליטים מה באמת חשוב לכם.`,emphasis:`הסדר שלכם`,motion:`pop`},{duration:4,layout:`number`,headline:`מגדירים תקציב לפני שסוגרים`,emphasis:`מסגרת`,motion:`slide-up`},{duration:4,layout:`statement`,headline:`משאירים מקום להפתעות`,supporting:`תכנון טוב כולל גם מרווח נשימה.`,motion:`fade`},{duration:3,layout:`end-card`,headline:`הסיפור שלכם. בדרך שלכם.`,motion:`pop`}],visualTheme:`wedding-rings`},"./bank-hapoalim-configs/09-share-intro.json":{format:`motiondesk-config/v1`,title:`מכירים את עולם המניות`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`מניה היא חלק קטן מסיפור גדול`,eyebrow:`שוק ההון`,motion:`pop`},{duration:4,layout:`split`,headline:`מה בעצם קונים?`,supporting:`בעלות חלקית בחברה, לצד סיכוי וסיכון.`,emphasis:`חלק בחברה`,motion:`slide-up`},{duration:4,layout:`number`,headline:`לומדים לפני שמחליטים`,emphasis:`צעד ראשון`,motion:`fade`},{duration:4,layout:`end-card`,headline:`סקרנות היא מקום טוב להתחיל`,supporting:`בודקים מידע ומתאימים החלטות לעצמכם.`,motion:`slide-up`}],visualTheme:`share-mosaic`},"./bank-hapoalim-configs/10-suspicious-message.json":{format:`motiondesk-config/v1`,title:`עוצרים לפני שלוחצים`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`קיבלתם הודעה דחופה מהבנק?`,eyebrow:`זהירות מהתחזות`,motion:`pop`},{duration:4,layout:`number`,headline:`עוצרים לפני לחיצה על קישור`,emphasis:`עצור`,motion:`slide-up`},{duration:4,layout:`split`,headline:`בודקים דרך הערוץ הרשמי`,supporting:`נכנסים לאפליקציה או לאתר באופן עצמאי.`,emphasis:`בודקים`,motion:`fade`},{duration:4,layout:`statement`,headline:`לא משתפים סיסמה או קוד אישי`,motion:`pop`},{duration:3,layout:`end-card`,headline:`כשיש ספק — בודקים שוב`,motion:`fade`}],visualTheme:`fraud-alert`},"./bank-hapoalim-configs/11-student-routine.json":{format:`motiondesk-config/v1`,title:`סטודנטים מתקדמים חכם`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`לימודים, עבודה, חיים — הכול יחד`,eyebrow:`סטודנטים`,motion:`pop`},{duration:4,layout:`split`,headline:`מארגנים את החודש מראש`,supporting:`שכר לימוד, נסיעות והוצאות יומיומיות.`,emphasis:`תמונה אחת`,motion:`slide-up`},{duration:4,layout:`number`,headline:`בודקים מה עומד לרשותכם`,emphasis:`הטבות`,motion:`fade`},{duration:4,layout:`end-card`,headline:`קצת סדר מפנה מקום ללימודים`,motion:`slide-up`}],visualTheme:`student-desk`},"./bank-hapoalim-configs/12-investing-first-step.json":{format:`motiondesk-config/v1`,title:`השקעה מתחילה בלמידה`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`לא יודעים מאיפה מתחילים?`,eyebrow:`מכסחים את התירוצים`,motion:`pop`},{duration:4,layout:`number`,headline:`מגדירים מטרה וטווח זמן`,emphasis:`מטרה`,motion:`slide-up`},{duration:4,layout:`split`,headline:`מבינים את הסיכון`,supporting:`בוחנים אפשרויות לפני שמחליטים מה מתאים.`,emphasis:`ידע לפני פעולה`,motion:`fade`},{duration:4,layout:`end-card`,headline:`הצעד הראשון הוא להבין`,motion:`pop`}],visualTheme:`learning-domino`},"./bank-hapoalim-configs/13-fomo.json":{format:`motiondesk-config/v1`,title:`לא נותנים לפומו להחליט`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`כולם מדברים על השקעה אחת?`,eyebrow:`פומו פיננסי`,motion:`pop`},{duration:4,layout:`number`,headline:`עוצרים רגע`,emphasis:`רגע`,supporting:`לחץ חברתי אינו תכנית השקעה.`,motion:`fade`},{duration:4,layout:`split`,headline:`שואלים מה מתאים לכם`,supporting:`מטרה, זמן וסיכון — לפני כל פעולה.`,emphasis:`שלכם`,motion:`slide-up`},{duration:4,layout:`end-card`,headline:`החלטה רגועה מתחילה בשאלות`,motion:`fade`}],visualTheme:`fomo-storm`},"./bank-hapoalim-configs/14-market-timing.json":{format:`motiondesk-config/v1`,title:`מתי הזמן הנכון?`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`מחכים לרגע המושלם?`,eyebrow:`שאלת התזמון`,motion:`pop`},{duration:4,layout:`split`,headline:`אי אפשר לדעת הכול מראש`,supporting:`שוק ההון משתנה. גם תכניות החיים משתנות.`,emphasis:`אי ודאות`,motion:`fade`},{duration:4,layout:`number`,headline:`בונים תכנית שמתאימה לכם`,emphasis:`התכנית`,motion:`slide-up`},{duration:4,layout:`end-card`,headline:`בוחנים אופק, סיכון ומטרה`,motion:`fade`}],visualTheme:`market-clock`},"./bank-hapoalim-configs/15-investing-for-all.json":{format:`motiondesk-config/v1`,title:`לא צריך להתחיל בגדול`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`השקעות זה רק לעשירים?`,eyebrow:`מכסחים את התירוצים`,motion:`pop`},{duration:4,layout:`number`,headline:`מתחילים מהבנת האפשרויות`,emphasis:`ידע`,motion:`slide-up`},{duration:4,layout:`split`,headline:`בוחרים לפי היכולת שלכם`,supporting:`סכום, טווח זמן ורמת סיכון שמתאימים לכם.`,emphasis:`בקצב שלכם`,motion:`fade`},{duration:4,layout:`end-card`,headline:`צעד קטן יכול להתחיל שיחה גדולה`,motion:`slide-up`}],visualTheme:`small-bricks`},"./bank-hapoalim-configs/16-two-paths.json":{format:`motiondesk-config/v1`,title:`שתי דרכים לחשוב על השקעה`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`שוק ההון או נדל״ן?`,eyebrow:`השוואה`,motion:`pop`},{duration:4,layout:`split`,headline:`לכל אפשרות יש אופי אחר`,supporting:`נזילות, הון התחלתי, פיזור ועלויות.`,emphasis:`משווים`,motion:`slide-up`},{duration:4,layout:`number`,headline:`מגדירים מה חשוב לכם`,emphasis:`מטרה`,motion:`fade`},{duration:4,layout:`end-card`,headline:`משווים לפני שמחליטים`,supporting:`אין מסלול אחד שמתאים לכולם.`,motion:`slide-up`}],visualTheme:`two-paths`},"./bank-hapoalim-configs/17-small-business.json":{format:`motiondesk-config/v1`,title:`עסק קטן. מהלך גדול.`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`העסק שלכם מתכנן את הצעד הבא?`,eyebrow:`עסקים`,motion:`pop`},{duration:4,layout:`split`,headline:`מלאי, ציוד או צמיחה`,supporting:`מגדירים צורך מדויק לפני שבוחרים פתרון.`,emphasis:`הצורך`,motion:`slide-up`},{duration:4,layout:`number`,headline:`מרכזים נתונים במקום אחד`,emphasis:`תכנית`,motion:`fade`},{duration:4,layout:`statement`,headline:`בודקים את אפשרויות המימון`,supporting:`מתאימים החלטה לתזרים ולפעילות.`,motion:`slide-up`},{duration:3,layout:`end-card`,headline:`ממשיכים קדימה בקצב העסק`,motion:`fade`}],visualTheme:`small-store`},"./bank-hapoalim-configs/18-travel-forex.json":{format:`motiondesk-config/v1`,title:`החופשה מתחילה בהכנות`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`הכרטיסים מוכנים. מה עם המט״ח?`,eyebrow:`לפני הטיסה`,motion:`pop`},{duration:4,layout:`number`,headline:`בודקים מה צריך לדרך`,emphasis:`01`,motion:`slide-up`},{duration:4,layout:`split`,headline:`מתכננים את התקציב בחו״ל`,supporting:`תחבורה, אוכל והוצאות בלתי צפויות.`,emphasis:`02`,motion:`fade`},{duration:4,layout:`end-card`,headline:`מגיעים מוכנים יותר לחופשה`,motion:`pop`}],visualTheme:`travel-conveyor`},"./bank-hapoalim-configs/19-mortgage-questions.json":{format:`motiondesk-config/v1`,title:`מתחילים בשאלות הנכונות`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`חושבים על דירה?`,eyebrow:`משכנתא`,motion:`pop`},{duration:4,layout:`number`,headline:`בודקים יכולת החזר`,emphasis:`01`,motion:`slide-up`},{duration:4,layout:`split`,headline:`מכירים מסלולים ועלויות`,supporting:`שואלים שאלות ומסתכלים גם על הטווח הארוך.`,emphasis:`02`,motion:`fade`},{duration:4,layout:`statement`,headline:`מתייעצים לפני החלטה גדולה`,motion:`slide-up`},{duration:3,layout:`end-card`,headline:`מתקדמים עם תמונה ברורה יותר`,motion:`fade`}],visualTheme:`mortgage-blueprint`},"./bank-hapoalim-configs/20-market-app.json":{format:`motiondesk-config/v1`,title:`שוק ההון בכף היד`,aspectRatio:`16:9`,fps:30,scenes:[{duration:3,layout:`statement`,headline:`מתעניינים במה שקורה בשוק?`,eyebrow:`חוויית דיגיטל`,motion:`pop`},{duration:4,layout:`split`,headline:`מידע במקום אחד`,supporting:`עוקבים אחר נתונים ורואים את התמונה הרחבה.`,emphasis:`מעקב`,motion:`slide-up`},{duration:4,layout:`number`,headline:`בודקים לפני שפועלים`,emphasis:`החלטה`,motion:`fade`},{duration:4,layout:`end-card`,headline:`השליטה מתחילה במידע ברור`,motion:`slide-up`}],visualTheme:`market-phone`}}),El=[[`01-car-choice`,`dngcuzGP9nw`,68e5,`רכב`,`בחירה בין רכב חדש ליד שנייה ותכנון ההוצאות`],[`02-holiday-budget`,`MU6BUXTv0ss`,34e5,`תכנון`,`מסגרת הוצאות לקראת החג`],[`03-one-click`,`2ftUO4u-NGo`,3e6,`דיגיטל`,`הצגת תהליך קצר וברור באפליקציה`],[`04-career-course`,`iu1NTF0v97E`,28e5,`קריירה`,`קורס מקצועי כצעד להתפתחות`],[`05-home-refresh`,`ydxtSm70cKE`,24e5,`בית`,`שדרוג בית בתכנון הדרגתי`],[`06-summer-plans`,`gTPhde0aY0M`,23e5,`לייף סטייל`,`תכניות קיץ ובחירה בין אפשרויות`],[`07-car-upgrade`,`swa1OnvEHZ8`,23e5,`רכב`,`שאלות לפני שדרוג רכב`],[`08-wedding-plan`,`6WJaGfrRRwg`,22e5,`אירועים`,`ארגון יום חתונה סביב סדרי עדיפויות`],[`09-share-intro`,`XX0BsteGa9I`,2e6,`שוק ההון`,`היכרות בסיסית עם מושג המניה`],[`10-suspicious-message`,`Y-ERXK6SCSY`,16e5,`בטיחות`,`עצירה ובדיקה של הודעה חשודה`],[`11-student-routine`,`1HVTAt0ggS8`,15e5,`סטודנטים`,`סדר כלכלי בתקופת הלימודים`],[`12-investing-first-step`,`xYFHeA1HQqA`,14e5,`שוק ההון`,`התחלה בלמידה ובהגדרת מטרה`],[`13-fomo`,`yPaoCXs3mrc`,14e5,`שוק ההון`,`עצירה לפני החלטה מתוך לחץ חברתי`],[`14-market-timing`,`8gBAR3gh0D4`,13e5,`שוק ההון`,`שאלת התזמון והצורך בתכנית`],[`15-investing-for-all`,`WrMb-7-xHl0`,12e5,`שוק ההון`,`הסרת חסם הכניסה ללמידה על השקעות`],[`16-two-paths`,`5OT2ITnf_qM`,12e5,`שוק ההון`,`השוואת שיקולים בין שוק ההון לנדל״ן`],[`17-small-business`,`hAtpKg5M1RI`,12e5,`עסקים`,`הגדרת צורך ומסגרת לעסק קטן`],[`18-travel-forex`,`5i9WHsZuDZs`,11e5,`נסיעות`,`הכנות כספיות לחופשה`],[`19-mortgage-questions`,`1ZI3Glss26M`,1e6,`דיור`,`שאלות לקראת שיחת משכנתא`],[`20-market-app`,`bXifxrC9z0k`,81e4,`דיגיטל`,`מידע על שוק ההון בחוויית אפליקציה`]].map(([e,t,n,r,i])=>{let a=Tl[`./bank-hapoalim-configs/${e}.json`];if(!a)throw Error(`Missing bank inspiration config: ${e}`);return{id:e,title:a.title,category:r,description:i,viewsAtReview:n,sourceUrl:`https://www.youtube.com/watch?v=${t}`,config:a}}),Dl=Object.assign({"./starter-configs/01-launch.json":{format:`motiondesk-config/v1`,title:`רעיון חדש יוצא לדרך`,aspectRatio:`16:9`,fps:30,palette:{background:`#101827`,foreground:`#FFFFFF`,accent:`#34D399`},scenes:[{duration:3,layout:`statement`,eyebrow:`משהו חדש מתחיל`,headline:`כל יום מתחיל באתגר קטן`,supporting:`אולי הגיע הזמן לפתרון פשוט יותר.`,motion:`fade`},{duration:4,layout:`split`,headline:`מכירים את הדרך החדשה`,supporting:`פחות צעדים. יותר מקום לעשות את מה שחשוב.`,emphasis:`פשוט יותר`,motion:`slide-up`},{duration:3,layout:`number`,eyebrow:`ההבדל מורגש`,headline:`מתחילים כבר היום`,emphasis:`01`,motion:`pop`},{duration:4,layout:`end-card`,headline:`בואו נתחיל`,supporting:`הצעד הבא נמצא ממש כאן.`,motion:`fade`}]},"./starter-configs/02-milestone.json":{format:`motiondesk-config/v1`,title:`אבן דרך בדרך קדימה`,aspectRatio:`16:9`,fps:30,palette:{background:`#F7F5F0`,foreground:`#1F2937`,accent:`#E15B45`},scenes:[{duration:3,layout:`statement`,eyebrow:`עוצרים לרגע`,headline:`הדרך שעברנו שווה מבט`,motion:`slide-up`},{duration:4,layout:`number`,headline:`צעדים קטנים יוצרים שינוי גדול`,emphasis:`100%`,supporting:`כל שלב בדרך היה חלק מההצלחה.`,motion:`pop`},{duration:4,layout:`split`,headline:`מה הלאה?`,supporting:`לוקחים את מה שלמדנו וממשיכים לבנות.`,emphasis:`קדימה`,motion:`fade`},{duration:3,layout:`end-card`,headline:`זו רק ההתחלה`,supporting:`תודה לכל מי שהיה חלק מהדרך.`,motion:`slide-up`}]},"./starter-configs/03-explainer.json":{format:`motiondesk-config/v1`,title:`הסבר בשלושה צעדים`,aspectRatio:`16:9`,fps:30,palette:{background:`#FFFFFF`,foreground:`#172033`,accent:`#4F46E5`},scenes:[{duration:3,layout:`statement`,eyebrow:`מסבירים בפשטות`,headline:`כך הופכים רעיון לתכנית`,motion:`fade`},{duration:4,layout:`number`,headline:`מגדירים את המטרה`,emphasis:`01`,supporting:`מה רוצים להשיג ולמי זה חשוב?`,motion:`pop`},{duration:4,layout:`number`,headline:`בוחרים את הצעד הבא`,emphasis:`02`,supporting:`מתחילים במהלך אחד שאפשר לבצע עכשיו.`,motion:`pop`},{duration:4,layout:`number`,headline:`בודקים ומשפרים`,emphasis:`03`,supporting:`לומדים מהתוצאה ומדייקים את הדרך.`,motion:`pop`},{duration:3,layout:`end-card`,headline:`מוכנים להתחיל?`,motion:`slide-up`}]},"./starter-configs/04-event.json":{format:`motiondesk-config/v1`,title:`נפגשים בקרוב`,aspectRatio:`9:16`,fps:30,palette:{background:`#221632`,foreground:`#FFFFFF`,accent:`#FBBF24`},scenes:[{duration:3,layout:`statement`,eyebrow:`שמרו את התאריך`,headline:`יש לנו משהו לספר לכם`,motion:`fade`},{duration:4,layout:`split`,headline:`נפגשים פנים אל פנים`,supporting:`ערב של רעיונות, שיחות ואנשים טובים.`,emphasis:`ביחד`,motion:`slide-up`},{duration:4,layout:`number`,headline:`יום חמישי הקרוב`,emphasis:`20:00`,supporting:`כתובת ופרטי הרשמה יופיעו כאן.`,motion:`pop`},{duration:3,layout:`end-card`,headline:`מחכים לכם`,supporting:`שמרו מקום ובואו להגיד שלום.`,motion:`fade`}]},"./starter-configs/05-impact.json":{format:`motiondesk-config/v1`,title:`נתון שעוצר את הגלילה`,aspectRatio:`9:16`,fps:30,palette:{background:`#071A24`,foreground:`#FFFFFF`,accent:`#2DD4BF`},scenes:[{duration:3,layout:`statement`,eyebrow:`מבט אחד מספיק`,headline:`לפעמים נתון אחד משנה את התמונה`,motion:`fade`},{duration:5,layout:`number`,headline:`כאן מציגים את המספר החשוב`,emphasis:`72%`,supporting:`החליפו את המספר וההסבר בנתון מאומת משלכם.`,motion:`pop`},{duration:4,layout:`split`,headline:`מה זה אומר בפועל?`,supporting:`משפט אחד שמסביר את המשמעות לקהל שלכם.`,emphasis:`המשמעות`,motion:`slide-up`},{duration:3,layout:`end-card`,headline:`הופכים מידע לפעולה`,motion:`fade`}]},"./starter-configs/06-recap.json":{format:`motiondesk-config/v1`,title:`מה עשינו ומה הלאה`,aspectRatio:`1:1`,fps:30,palette:{background:`#FFF9F0`,foreground:`#243047`,accent:`#EF6A3D`},scenes:[{duration:3,layout:`statement`,eyebrow:`סיכום קצר`,headline:`הנה מה שקרה עד עכשיו`,motion:`fade`},{duration:4,layout:`split`,headline:`התחלנו בשאלה`,supporting:`מה באמת צריך להשתנות?`,emphasis:`הצורך`,motion:`slide-up`},{duration:4,layout:`split`,headline:`בחרנו כיוון`,supporting:`הפכנו רעיון אחד למהלך שאפשר לבצע.`,emphasis:`הפתרון`,motion:`slide-up`},{duration:4,layout:`end-card`,headline:`השלב הבא מתחיל עכשיו`,supporting:`ממשיכים ללמוד, ליצור ולהתקדם.`,motion:`fade`}]}}),Ol=[[`01-launch`,`השקת מוצר`,`הצגת בעיה, פתרון וקריאה לפעולה בארבע סצנות`],[`02-milestone`,`אבן דרך`,`חוגגים התקדמות ומציגים את הצעד הבא`],[`03-explainer`,`הסבר קצר`,`רעיון מורכב שמתחלק לשלושה צעדים ברורים`],[`04-event`,`הזמנה לאירוע`,`הכרזה על אירוע עם מקום, זמן וסיום ברור`],[`05-impact`,`נתון מרכזי`,`מצגת אנכית קצרה שמובילה לנתון משמעותי`],[`06-recap`,`סיכום`,`סיכום תהליך והמשך פעולה בפורמט ריבועי`]].map(([e,t,n])=>{let r=Dl[`./starter-configs/${e}.json`];if(!r)throw Error(`Missing starter config: ${e}`);return{id:e,title:r.title,category:t,description:n,config:r}}),kl={format:`motiondesk-music/v1`,sourceFiles:70,tracks:[{id:`music-299d1a524b15edbf`,title:`טיפוגרפיה קינטית זכוכיתית`,category:`templates`,kind:`music`,filename:`music-299d1a524b15edbf.m4a`,mime:`audio/mp4`,duration:15,bytes:377973,sourceSha256:`299d1a524b15edbfcb18b2f680bcc71026afc059fca219e468b8d5e8bf0f5b36`,sources:[{file:`examples/Halvaa/01-kinetic-glass.motiondesk/source/assets/music.m4a`,title:`טיפוגרפיה קינטית זכוכיתית`,templateId:`halvaa-01`},{file:`examples/Halvaa/37-scifi-hud.motiondesk/source/assets/music.m4a`,title:`ממשק מדע בדיוני`,templateId:`halvaa-37`}],waveform:[.35,.43,.51,.51,.44,.43,.47,.54,.58,.48,.52,.55,.52,.54,.65,.65,.48,.44,.5,.47,.51,.48,.48,.5,.57,.59,.56,.6,.44,.47,.45,.47,.47,.41,.42,.06,.03,.02,.28,.35,.25,.5,.97,.93,.73,1,.78,.96,.82,.92,.82,.54,.54,.33,.24,.08]},{id:`music-aaf17d684a543617`,title:`גליץ' שידור`,category:`templates`,kind:`music`,filename:`music-aaf17d684a543617.m4a`,mime:`audio/mp4`,duration:15,bytes:376538,sourceSha256:`aaf17d684a5436177e47f891f9e9cd5697ad9d2d072a6badb9dceec31525bce1`,sources:[{file:`examples/Halvaa/02-glitch-broadcast.motiondesk/source/assets/music.m4a`,title:`גליץ' שידור`,templateId:`halvaa-02`},{file:`examples/Halvaa/45-graffiti.motiondesk/source/assets/music.m4a`,title:`גרפיטי`,templateId:`halvaa-45`}],waveform:[.03,.03,.02,.28,.35,.27,.45,1,.87,.72,.91,.69,.86,.72,.84,.79,.66,.83,.69,.78,.72,.86,.87,.76,.85,.69,.85,.73,.8,.82,.6,.86,.66,.73,.66,.81,.82,.66,.83,.65,.8,.73,.76,.8,.62,.81,.63,.75,.75,.87,.78,.5,.49,.28,.21,.06]},{id:`music-916d2e70ec3c070b`,title:`דשבורד נתונים`,category:`templates`,kind:`music`,filename:`music-916d2e70ec3c070b.m4a`,mime:`audio/mp4`,duration:15,bytes:389901,sourceSha256:`916d2e70ec3c070b5fc7c8442448ed403b22c40ebba1e08bd7af745dfb1535e7`,sources:[{file:`examples/Halvaa/03-data-stat.motiondesk/source/assets/music.m4a`,title:`דשבורד נתונים`,templateId:`halvaa-03`},{file:`examples/Halvaa/39-sports-broadcast.motiondesk/source/assets/music.m4a`,title:`שידור ספורט`,templateId:`halvaa-39`}],waveform:[.12,.27,.41,.32,.26,.35,.31,1,.88,.84,.91,.62,.78,.79,.87,.83,.76,.87,.75,.77,.75,.81,.79,.72,.85,.57,.68,.75,.89,.84,.63,.81,.72,.74,.75,.76,.76,.69,.78,.51,.68,.75,.75,.76,.68,.78,.73,.74,.67,.27,.25,.26,.19,.11,.08,.03]},{id:`music-b5982314fae3c253`,title:`קולאז' נייר`,category:`templates`,kind:`music`,filename:`music-b5982314fae3c253.m4a`,mime:`audio/mp4`,duration:15,bytes:381431,sourceSha256:`b5982314fae3c253437a2d035cc38366099f08b88307408ab3048dbccecfb51a`,sources:[{file:`examples/Halvaa/04-paper-cutout.motiondesk/source/assets/music.m4a`,title:`קולאז' נייר`,templateId:`halvaa-04`},{file:`examples/Halvaa/30-ink-brush.motiondesk/source/assets/music.m4a`,title:`מכחול דיו`,templateId:`halvaa-30`},{file:`examples/Halvaa/44-engraving.motiondesk/source/assets/music.m4a`,title:`תחריט`,templateId:`halvaa-44`}],waveform:[.41,.66,.78,.66,.6,.69,.66,.78,.68,.71,.69,.61,.65,.59,.65,.55,.61,.67,.66,.61,.64,.75,.65,.62,.58,.89,.97,1,.93,.82,.78,.73,.68,.84,.78,.85,.72,.59,.6,.65,.65,.65,.53,.56,.61,.67,.55,.6,.6,.76,.73,.52,.5,.33,.28,.06]},{id:`music-5ace769e3131520a`,title:`רטרו VHS`,category:`templates`,kind:`music`,filename:`music-5ace769e3131520a.m4a`,mime:`audio/mp4`,duration:15,bytes:387974,sourceSha256:`5ace769e3131520adee0b80d5a256ab44dc01ad231a5d392b3093da6d53f8274`,sources:[{file:`examples/Halvaa/05-retro-vhs.motiondesk/source/assets/music.m4a`,title:`רטרו VHS`,templateId:`halvaa-05`},{file:`examples/Halvaa/49-space.motiondesk/source/assets/music.m4a`,title:`משימה בחלל`,templateId:`halvaa-49`}],waveform:[.36,.45,.54,.63,.63,.53,.5,.47,.5,.54,.49,.49,.54,.57,.57,.57,.54,.42,.39,.42,.43,.41,.43,.45,.53,.56,.61,.61,.7,.66,.67,.57,.57,.59,.59,.05,.04,.02,.29,.33,.24,.54,.99,1,.78,.94,.89,.94,.85,.89,.85,.5,.56,.31,.23,.08]},{id:`music-d8f2ff5bc07d436f`,title:`גריד מגזיני`,category:`templates`,kind:`music`,filename:`music-d8f2ff5bc07d436f.m4a`,mime:`audio/mp4`,duration:15,bytes:374583,sourceSha256:`d8f2ff5bc07d436f4a39dd37c8aa3bc18a7f0b665d1a1e65173c22603b6c476b`,sources:[{file:`examples/Halvaa/06-editorial-bento.motiondesk/source/assets/music.m4a`,title:`גריד מגזיני`,templateId:`halvaa-06`},{file:`examples/Halvaa/33-type-tunnel.motiondesk/source/assets/music.m4a`,title:`מנהרת מילים`,templateId:`halvaa-33`}],waveform:[.45,.73,.74,.66,.64,.66,.66,.06,.04,.02,.3,.34,.24,.48,1,1,.8,.93,.88,.92,.81,.88,.89,.65,.93,.71,.84,.85,.95,.89,.68,.9,.79,.88,.84,.85,.88,.76,.85,.77,.81,.73,.83,.85,.68,.86,.72,.85,.8,.76,.73,.49,.52,.3,.22,.07]},{id:`music-a2420434149ac209`,title:`זכוכית פרימיום`,category:`templates`,kind:`music`,filename:`music-a2420434149ac209.m4a`,mime:`audio/mp4`,duration:15,bytes:393360,sourceSha256:`a2420434149ac2097d21e6a97b2317a8daa8493793c210df22ef832970aaf16e`,sources:[{file:`examples/Halvaa/07-glass-premium.motiondesk/source/assets/music.m4a`,title:`זכוכית פרימיום`,templateId:`halvaa-07`},{file:`examples/Halvaa/35-mono-minimal.motiondesk/source/assets/music.m4a`,title:`מינימל שחור-לבן`,templateId:`halvaa-35`},{file:`examples/Halvaa/41-stained-glass.motiondesk/source/assets/music.m4a`,title:`ויטראז'`,templateId:`halvaa-41`}],waveform:[.21,.32,.29,.34,.3,.27,.31,.32,.27,.34,.33,.29,.72,.23,.2,.17,.18,.19,.2,.16,.19,.19,.19,.22,.22,.22,.19,.16,.17,.19,.21,.19,.17,.18,.18,.16,.14,.17,.19,.24,1,.39,.43,.53,.53,.46,.42,.4,.42,.45,.39,.31,.26,.2,.12,.05]},{id:`music-ced6a0ca9e3f854f`,title:`איור ביד`,category:`templates`,kind:`music`,filename:`music-ced6a0ca9e3f854f.m4a`,mime:`audio/mp4`,duration:15,bytes:376837,sourceSha256:`ced6a0ca9e3f854f718a36e1d1ff7faffe3a96f7187728c323256afe0dd4fa20`,sources:[{file:`examples/Halvaa/08-hand-drawn.motiondesk/source/assets/music.m4a`,title:`איור ביד`,templateId:`halvaa-08`},{file:`examples/Halvaa/46-crayon.motiondesk/source/assets/music.m4a`,title:`צבעי שעווה`,templateId:`halvaa-46`}],waveform:[.46,.87,.8,1,.74,.98,.78,.93,.8,.78,.91,.64,.92,.82,.92,.92,.79,.94,.69,.95,.81,.86,.75,.83,.94,.76,.97,.68,.91,.82,.73,.95,.7,.94,.78,.95,1,.78,.96,.75,.91,.86,.93,.87,.83,.9,.66,.95,.72,.9,.81,.59,.5,.27,.21,.01]},{id:`music-77c76e298da8b32c`,title:`מודעת סושיאל`,category:`templates`,kind:`music`,filename:`music-77c76e298da8b32c.m4a`,mime:`audio/mp4`,duration:15,bytes:377146,sourceSha256:`77c76e298da8b32c953dfe6f923cce60722601f0e8c8867ab5f598f909f113c9`,sources:[{file:`examples/Halvaa/09-vertical-social.motiondesk/source/assets/music.m4a`,title:`מודעת סושיאל`,templateId:`halvaa-09`},{file:`examples/Halvaa/55-cube-3d.motiondesk/source/assets/music.m4a`,title:`קובייה מסתובבת`,templateId:`halvaa-55`}],waveform:[.03,.04,.02,.29,.33,.25,.47,1,.95,.74,.85,.78,.82,.71,.78,.79,.58,.82,.63,.75,.74,.84,.79,.59,.79,.69,.78,.73,.75,.77,.67,.75,.68,.72,.65,.74,.75,.61,.76,.63,.76,.71,.68,.72,.59,.79,.66,.73,.7,.72,.69,.52,.43,.28,.19,.06]},{id:`music-6eb1c074fc0123b7`,title:`פתיח קולנועי`,category:`templates`,kind:`music`,filename:`music-6eb1c074fc0123b7.m4a`,mime:`audio/mp4`,duration:15,bytes:387553,sourceSha256:`6eb1c074fc0123b7b978d06040ef8c5cc900734d7651c5bee6dfd8a7736862ed`,sources:[{file:`examples/Halvaa/10-cinematic.motiondesk/source/assets/music.m4a`,title:`פתיח קולנועי`,templateId:`halvaa-10`},{file:`examples/Halvaa/26-art-deco.motiondesk/source/assets/music.m4a`,title:`ארט דקו`,templateId:`halvaa-26`},{file:`examples/Halvaa/42-celestial.motiondesk/source/assets/music.m4a`,title:`אסטרולב שמימי`,templateId:`halvaa-42`}],waveform:[.37,.76,.62,.83,.67,.8,.63,.3,.29,.29,.32,.3,.27,.38,.66,.32,.36,.33,.32,.31,.3,.38,.39,.42,.32,.33,.33,.34,.22,.26,.4,.29,.24,.27,.43,.29,.28,.45,.33,.28,.37,.43,1,.95,.86,.95,.68,.83,.91,.94,.87,.63,.57,.35,.23,.08]},{id:`music-770dc0c69f7793a5`,title:`עיר איזומטרית`,category:`templates`,kind:`music`,filename:`music-770dc0c69f7793a5.m4a`,mime:`audio/mp4`,duration:15,bytes:384608,sourceSha256:`770dc0c69f7793a5148b8173c29eaf4b6f1eea37d2bcd0bd7d1998163b2d4a91`,sources:[{file:`examples/Halvaa/11-isometric.motiondesk/source/assets/music.m4a`,title:`עיר איזומטרית`,templateId:`halvaa-11`},{file:`examples/Halvaa/43-low-poly.motiondesk/source/assets/music.m4a`,title:`לואו-פולי`,templateId:`halvaa-43`}],waveform:[.51,.85,.8,.75,.82,.6,.87,.65,.82,.83,.67,.8,.61,.71,.27,1,.87,.81,1,.72,.91,.82,.9,.83,.75,.89,.61,.9,.75,.94,.98,.74,.9,.7,.88,.84,.84,.87,.74,.9,.75,.92,.78,.82,.86,.62,.87,.7,.86,.78,.78,.6,.41,.35,.19,.09]},{id:`music-e3da48e932afe494`,title:`באוהאוס`,category:`templates`,kind:`music`,filename:`music-e3da48e932afe494.m4a`,mime:`audio/mp4`,duration:15,bytes:378021,sourceSha256:`e3da48e932afe494886d5336a7d4f27d5a8be1a9f584cc7f08f6083e5316a93e`,sources:[{file:`examples/Halvaa/12-bauhaus.motiondesk/source/assets/music.m4a`,title:`באוהאוס`,templateId:`halvaa-12`},{file:`examples/Halvaa/23-neon-sign.motiondesk/source/assets/music.m4a`,title:`שלט ניאון`,templateId:`halvaa-23`},{file:`examples/Halvaa/48-cardboard.motiondesk/source/assets/music.m4a`,title:`קופסת קרטון`,templateId:`halvaa-48`},{file:`examples/Halvaa/64-vault.motiondesk/source/assets/music.m4a`,title:`הכספת`,templateId:`halvaa-64`}],waveform:[.38,.62,.46,.43,.49,.46,.5,.48,.47,.49,.56,.58,.55,.59,.43,.46,.44,.46,.46,.4,.42,.06,.03,.02,.28,.34,.26,.47,.97,.92,.73,1,.76,.94,.79,.9,.87,.71,.9,.76,.86,.79,.91,.95,.81,.92,.75,.92,.8,.85,.82,.47,.54,.29,.21,.06]},{id:`music-67189897b271e9e9`,title:`ניאו-ברוטליזם`,category:`templates`,kind:`music`,filename:`music-67189897b271e9e9.m4a`,mime:`audio/mp4`,duration:15,bytes:376637,sourceSha256:`67189897b271e9e9ff70bbd5c30d92dbef1767644375403bc44b0b671690f51d`,sources:[{file:`examples/Halvaa/13-neo-brutalism.motiondesk/source/assets/music.m4a`,title:`ניאו-ברוטליזם`,templateId:`halvaa-13`},{file:`examples/Halvaa/51-board-game.motiondesk/source/assets/music.m4a`,title:`משחק לוח`,templateId:`halvaa-51`}],waveform:[.47,.92,.79,.93,.89,.98,.86,.92,.96,.84,.96,.77,.92,.79,.92,.92,.64,.93,.87,.89,.84,.87,.93,.79,.96,.75,.9,.8,.9,.9,.75,1,.94,.96,.83,.9,.97,.82,.59,.3,.34,.37,.31,.63,.2,.9,.79,.93,.87,.92,.88,.61,.58,.31,.25,.07]},{id:`music-5da72225936f0802`,title:`נוזלי`,category:`templates`,kind:`music`,filename:`music-5da72225936f0802.m4a`,mime:`audio/mp4`,duration:15,bytes:379389,sourceSha256:`5da72225936f080245dc27600528084be58161d08ed41216645067cc0a64074e`,sources:[{file:`examples/Halvaa/14-liquid-morph.motiondesk/source/assets/music.m4a`,title:`נוזלי`,templateId:`halvaa-14`},{file:`examples/Halvaa/50-silent-film.motiondesk/source/assets/music.m4a`,title:`סרט אילם`,templateId:`halvaa-50`}],waveform:[.3,.46,.44,.45,.45,.41,.44,.5,.47,.47,.4,.38,.36,.4,.41,.38,.37,.35,.35,.34,.37,.34,.37,.42,1,.33,.38,.41,.35,.33,.35,.38,.45,.4,.38,.43,.4,.43,.47,.51,.43,.35,.38,.38,.37,.37,.39,.39,.43,.46,.46,.36,.23,.16,.1,.03]},{id:`music-3e8cacbd4934f911`,title:`טרמינל`,category:`templates`,kind:`music`,filename:`music-3e8cacbd4934f911.m4a`,mime:`audio/mp4`,duration:15,bytes:388461,sourceSha256:`3e8cacbd4934f911223d4b28a9ab3795c389217e4a130ac3db13e26ce49f873f`,sources:[{file:`examples/Halvaa/15-terminal.motiondesk/source/assets/music.m4a`,title:`טרמינל`,templateId:`halvaa-15`},{file:`examples/Halvaa/62-domino-84.motiondesk/source/assets/music.m4a`,title:`84 דומינו`,templateId:`halvaa-62`}],waveform:[.29,.4,.44,.4,.39,.36,.35,.44,.44,.47,.37,.37,.36,.38,.25,.29,.45,.33,.26,.29,.47,.32,.31,.47,.35,.29,.36,.38,1,.91,.82,.9,.63,.77,.8,.84,.83,.74,.85,.73,.75,.74,.76,.77,.68,.8,.55,.64,.74,.86,.74,.44,.46,.29,.19,.06]},{id:`music-3da86e84593a7d57`,title:`פיקסל ארט`,category:`templates`,kind:`music`,filename:`music-3da86e84593a7d57.m4a`,mime:`audio/mp4`,duration:15,bytes:383951,sourceSha256:`3da86e84593a7d572d9a37818c0f638b481332bfbbaf7974107dde1d72828c2d`,sources:[{file:`examples/Halvaa/16-pixel-art.motiondesk/source/assets/music.m4a`,title:`פיקסל ארט`,templateId:`halvaa-16`},{file:`examples/Halvaa/34-memphis.motiondesk/source/assets/music.m4a`,title:`ממפיס`,templateId:`halvaa-34`},{file:`examples/Halvaa/54-risograph.motiondesk/source/assets/music.m4a`,title:`ריזוגרף`,templateId:`halvaa-54`}],waveform:[.6,.87,.95,.81,.88,.85,.88,.94,.75,.87,.77,.87,.8,.86,.88,.81,.92,.68,.81,.86,.86,.94,.77,.91,.8,.89,.86,.86,.96,.77,.54,.21,.25,.24,.23,.33,.11,.92,.83,.96,.91,.92,.96,.75,1,.81,.9,.85,.92,.96,.68,.71,.5,.4,.21,.1]},{id:`music-79d3753c8ca4ba5a`,title:`שרטוט טכני`,category:`templates`,kind:`music`,filename:`music-79d3753c8ca4ba5a.m4a`,mime:`audio/mp4`,duration:15,bytes:392313,sourceSha256:`79d3753c8ca4ba5ac817b9c1ee6d38873f11ae1cd9c24e37a691f2c4b6e2352d`,sources:[{file:`examples/Halvaa/17-blueprint.motiondesk/source/assets/music.m4a`,title:`שרטוט טכני`,templateId:`halvaa-17`},{file:`examples/Halvaa/38-metro-map.motiondesk/source/assets/music.m4a`,title:`מפת מטרו`,templateId:`halvaa-38`},{file:`examples/Halvaa/60-tear-calendar.motiondesk/source/assets/music.m4a`,title:`לוח תלישה`,templateId:`halvaa-60`}],waveform:[.65,.81,.95,.72,.89,.78,.86,.88,.69,.9,.81,.9,.8,.86,.91,.74,.92,.7,.91,.79,.86,.85,.67,.89,.67,.91,.88,.86,.93,.66,.94,.75,.88,.83,.91,.97,.76,.94,.77,.92,.86,.91,1,.79,.53,.39,.38,.35,.37,.35,.36,.61,.23,.15,.11,.03]},{id:`music-5e7af616a706c3bb`,title:`קומיקס פופ-ארט`,category:`templates`,kind:`music`,filename:`music-5e7af616a706c3bb.m4a`,mime:`audio/mp4`,duration:15,bytes:383369,sourceSha256:`5e7af616a706c3bbed2d54953533b4381031a09589f059eaf2c4485e894789c0`,sources:[{file:`examples/Halvaa/18-comic-pop.motiondesk/source/assets/music.m4a`,title:`קומיקס פופ-ארט`,templateId:`halvaa-18`},{file:`examples/Halvaa/29-mosaic.motiondesk/source/assets/music.m4a`,title:`פסיפס`,templateId:`halvaa-29`}],waveform:[.36,.59,.56,.43,.41,.44,.45,.43,.45,.46,.53,.58,.61,.61,.69,.66,.67,.57,.57,.58,.59,.05,.04,.02,.29,.33,.24,.51,.99,1,.79,.95,.89,.92,.82,.88,.89,.66,.92,.72,.84,.85,.94,.88,.66,.89,.79,.88,.85,.85,.79,.56,.49,.32,.21,.07]},{id:`music-a001ae94c2774859`,title:`חלקיקים גנרטיביים`,category:`templates`,kind:`music`,filename:`music-a001ae94c2774859.m4a`,mime:`audio/mp4`,duration:15,bytes:386706,sourceSha256:`a001ae94c277485982cf969d0e6a83680ec8b6f005b09549e43fcf2b9f5a4b94`,sources:[{file:`examples/Halvaa/19-particles.motiondesk/source/assets/music.m4a`,title:`חלקיקים גנרטיביים`,templateId:`halvaa-19`},{file:`examples/Halvaa/56-kaleidoscope.motiondesk/source/assets/music.m4a`,title:`קליידוסקופ`,templateId:`halvaa-56`}],waveform:[.62,.74,.97,.84,.93,.91,.86,.94,.72,.93,.86,.88,.8,.76,1,.9,.88,.79,.93,.95,.76,.96,.68,.91,.8,.85,.76,.77,.96,.7,.93,.82,.88,.96,.86,.62,.35,.36,.37,.43,.35,.37,.4,.35,.37,.41,.44,.39,.36,.93,.28,.18,.12,.08,.05,.02]},{id:`music-520754fe79ee6a5f`,title:`פרוטיגר אירו`,category:`templates`,kind:`music`,filename:`music-520754fe79ee6a5f.m4a`,mime:`audio/mp4`,duration:15,bytes:383110,sourceSha256:`520754fe79ee6a5ff87c72c4f64172ebd9c1e1abe90ce12b7d800cc31b71942f`,sources:[{file:`examples/Halvaa/20-frutiger-aero.motiondesk/source/assets/music.m4a`,title:`פרוטיגר אירו`,templateId:`halvaa-20`},{file:`examples/Halvaa/52-polaroid.motiondesk/source/assets/music.m4a`,title:`תמונות אינסטנט`,templateId:`halvaa-52`}],waveform:[.43,.97,.76,.97,.72,.87,.86,.78,.93,.67,.94,.94,.9,.85,.77,.96,.73,.96,.76,.85,.89,.85,1,.72,.91,.72,.86,.77,.81,.93,.7,.94,.65,.88,.84,.85,.99,.78,.93,.81,.89,.82,.75,.9,.75,.74,.69,.7,.74,.78,.68,.6,.66,.15,.1,.03]},{id:`music-77474276636c73a5`,title:`קליי תלת-ממד`,category:`templates`,kind:`music`,filename:`music-77474276636c73a5.m4a`,mime:`audio/mp4`,duration:15,bytes:380518,sourceSha256:`77474276636c73a532a2d1b647fbda4c705a82ce811bcc03c00e3e8d90885d4f`,sources:[{file:`examples/Halvaa/21-clay.motiondesk/source/assets/music.m4a`,title:`קליי תלת-ממד`,templateId:`halvaa-21`}],waveform:[.28,.58,.52,.57,.47,.57,.6,.58,.52,.61,.63,.58,.51,.6,.71,.83,.9,.73,.64,.67,.6,.57,.72,.69,.68,.57,.5,.5,.55,.55,.53,.45,.46,.55,.57,.41,.52,.51,.63,.61,.57,.63,.63,.84,.7,.93,1,.72,.99,.88,.91,.65,.54,.38,.16,.08]},{id:`music-f1378492304c90c3`,title:`אוריגמי`,category:`templates`,kind:`music`,filename:`music-f1378492304c90c3.m4a`,mime:`audio/mp4`,duration:15,bytes:392660,sourceSha256:`f1378492304c90c35ff3da683e092be153163d33d9ca54f682608958c01bdc45`,sources:[{file:`examples/Halvaa/22-origami.motiondesk/source/assets/music.m4a`,title:`אוריגמי`,templateId:`halvaa-22`},{file:`examples/Halvaa/53-typewriter.motiondesk/source/assets/music.m4a`,title:`מכונת כתיבה`,templateId:`halvaa-53`}],waveform:[.27,.84,.33,.27,.23,.25,.26,.26,.21,.25,.24,.27,.29,.29,.28,.25,.19,.23,.26,.28,.24,.22,.23,.24,.19,.19,.22,.25,.42,1,.45,.53,.62,.6,.51,.48,.43,.46,.5,.45,.45,.5,.52,.52,.51,.49,.38,.35,.39,.39,.34,.3,.24,.21,.13,.05]},{id:`music-5608ee19f54b9e54`,title:`עיתון`,category:`templates`,kind:`music`,filename:`music-5608ee19f54b9e54.m4a`,mime:`audio/mp4`,duration:15,bytes:385750,sourceSha256:`5608ee19f54b9e544d23873721d797f0b61bb783433338a1f0fb36e030e2fa59`,sources:[{file:`examples/Halvaa/24-newspaper.motiondesk/source/assets/music.m4a`,title:`עיתון`,templateId:`halvaa-24`}],waveform:[.44,.96,.79,.79,.86,.88,.91,.74,.9,.77,.9,.92,.76,.91,.71,.91,.75,.85,.92,.92,.94,.79,.93,.84,.92,.69,.31,.36,.33,.31,.49,.46,.73,.84,.92,.76,.93,.85,.95,1,.76,.95,.72,.93,.8,.88,.91,.85,.98,.79,.9,.62,.54,.38,.19,.08]},{id:`music-d2e677c18e64a2b4`,title:`לוח גיר`,category:`templates`,kind:`music`,filename:`music-d2e677c18e64a2b4.m4a`,mime:`audio/mp4`,duration:15,bytes:382158,sourceSha256:`d2e677c18e64a2b4d85dc4af1448a068595d0471266cc78b15f5e428d5de0202`,sources:[{file:`examples/Halvaa/25-chalkboard.motiondesk/source/assets/music.m4a`,title:`לוח גיר`,templateId:`halvaa-25`},{file:`examples/Halvaa/58-postage-stamps.motiondesk/source/assets/music.m4a`,title:`בולים וחותמות`,templateId:`halvaa-58`}],waveform:[.63,.75,.9,.53,.88,.74,.85,.96,.63,.85,.68,.78,.75,.77,.91,.69,.88,.84,.81,.77,.83,.87,.67,.93,.71,.85,.71,.78,.85,.64,.86,.71,.84,.69,.76,.81,.19,.99,.75,.93,.96,.91,1,.78,1,.75,.89,.89,.81,.97,.65,.74,.58,.41,.21,.09]},{id:`music-25725eb933c0a3fb`,title:`מסע במפה`,category:`templates`,kind:`music`,filename:`music-25725eb933c0a3fb.m4a`,mime:`audio/mp4`,duration:15,bytes:378908,sourceSha256:`25725eb933c0a3fbf0223d8ab99d6182ae1ec880bde5a5a9c89e4bd5dc5440a5`,sources:[{file:`examples/Halvaa/27-map-journey.motiondesk/source/assets/music.m4a`,title:`מסע במפה`,templateId:`halvaa-27`}],waveform:[.56,.62,.83,.64,.74,.73,.75,.85,.62,.79,.59,.75,.61,.72,.8,.59,.8,.57,.73,.7,.73,.85,.64,.8,.68,.77,.67,.67,.76,.63,.64,.6,.59,.66,.64,.64,.68,1,.32,.34,.36,.39,.38,.36,.37,.38,.35,.37,.42,.4,.38,.26,.2,.13,.09,.03]},{id:`music-92d8b575cad3f199`,title:`הדגמת אפליקציה`,category:`templates`,kind:`music`,filename:`music-92d8b575cad3f199.m4a`,mime:`audio/mp4`,duration:15,bytes:385410,sourceSha256:`92d8b575cad3f1995482dad8bac5ae8b2986a56dc155a33f0f9b5535319fbbfc`,sources:[{file:`examples/Halvaa/28-app-walkthrough.motiondesk/source/assets/music.m4a`,title:`הדגמת אפליקציה`,templateId:`halvaa-28`},{file:`examples/Halvaa/59-vinyl.motiondesk/source/assets/music.m4a`,title:`תקליט ויניל`,templateId:`halvaa-59`},{file:`examples/Halvaa/65-financial-district.motiondesk/source/assets/music.m4a`,title:`רובע הכספים`,templateId:`halvaa-65`}],waveform:[.14,.34,.52,.38,.31,.34,.55,.37,.35,.52,.38,.3,.38,.33,1,.87,.8,.87,.59,.74,.75,.81,.78,.7,.81,.69,.71,.7,.73,.72,.66,.77,.52,.61,.68,.8,.76,.57,.73,.65,.66,.67,.67,.68,.6,.69,.45,.6,.67,.67,.61,.44,.41,.26,.17,.06]},{id:`music-35fbc2623ec004c4`,title:`פתקים דביקים`,category:`templates`,kind:`music`,filename:`music-35fbc2623ec004c4.m4a`,mime:`audio/mp4`,duration:15,bytes:380581,sourceSha256:`35fbc2623ec004c46340a34bcbc0fc9a3f55c068bec14aee4914f8ae013780a5`,sources:[{file:`examples/Halvaa/31-sticky-notes.motiondesk/source/assets/music.m4a`,title:`פתקים דביקים`,templateId:`halvaa-31`}],waveform:[.41,.85,.75,.8,.89,.76,.86,.65,.81,.67,.84,.77,.71,.86,.59,.8,.66,.61,.8,.76,.94,.78,1,.79,.93,.95,.77,.87,.73,.88,.72,.87,.9,.89,.96,.74,.89,.8,.85,.97,.71,.9,.74,.89,.87,.88,.93,.65,.9,.63,.8,.61,.49,.36,.18,.07]},{id:`music-d08bc6b1a9787145`,title:`לוח המראות`,category:`templates`,kind:`music`,filename:`music-d08bc6b1a9787145.m4a`,mime:`audio/mp4`,duration:15,bytes:377138,sourceSha256:`d08bc6b1a9787145afe2e7c0ee17b653d1643398abac48358f04abf4ce6056c5`,sources:[{file:`examples/Halvaa/32-split-flap.motiondesk/source/assets/music.m4a`,title:`לוח המראות`,templateId:`halvaa-32`},{file:`examples/Halvaa/61-hyperspace-chrome.motiondesk/source/assets/music.m4a`,title:`מנהרת כרום`,templateId:`halvaa-61`}],waveform:[.32,.56,.52,.58,.57,.5,.51,.07,.03,.02,.29,.36,.27,.45,1,.92,.75,.99,.76,.93,.77,.9,.87,.71,.9,.75,.86,.77,.92,.94,.82,.91,.74,.91,.79,.86,.89,.64,.92,.71,.78,.71,.86,.88,.69,.88,.69,.86,.79,.8,.77,.49,.5,.28,.21,.07]},{id:`music-6c51b3a99278ab71`,title:`צבעי מים`,category:`templates`,kind:`music`,filename:`music-6c51b3a99278ab71.m4a`,mime:`audio/mp4`,duration:15,bytes:376643,sourceSha256:`6c51b3a99278ab71d558401f931150dd7ad9ff615132d065f90ed0cfab0320f6`,sources:[{file:`examples/Halvaa/36-watercolor.motiondesk/source/assets/music.m4a`,title:`צבעי מים`,templateId:`halvaa-36`}],waveform:[.33,.54,.59,.59,.55,.48,.51,.62,.6,.41,.55,.54,.66,.64,.58,.63,.66,.83,.85,.85,.97,.75,.98,.92,.94,.95,.78,.94,.67,.94,.77,.93,1,.86,.96,.73,.93,.82,.98,.97,.57,.94,.74,.91,.9,.92,.88,.72,.91,.67,.85,.62,.54,.36,.2,.1]},{id:`music-39dddc7c9603e97d`,title:`רקמה`,category:`templates`,kind:`music`,filename:`music-39dddc7c9603e97d.m4a`,mime:`audio/mp4`,duration:15,bytes:380193,sourceSha256:`39dddc7c9603e97d76086e2529a1320431456fa08e4bc8151dffbae1bd5cd461`,sources:[{file:`examples/Halvaa/40-embroidery.motiondesk/source/assets/music.m4a`,title:`רקמה`,templateId:`halvaa-40`}],waveform:[.36,.71,.72,.71,.76,.64,.75,.54,.74,.54,.71,.66,.47,.58,.62,.54,.67,.59,.91,.52,.32,.32,.36,.38,.36,.35,.38,.35,.35,.41,.42,.42,.38,.36,.32,.36,.38,.38,.34,.36,.33,.34,.36,.36,.36,.44,1,.56,.4,.41,.39,.29,.2,.18,.11,.05]},{id:`music-860bb416cd7217ab`,title:`תחזית מזג אוויר`,category:`templates`,kind:`music`,filename:`music-860bb416cd7217ab.m4a`,mime:`audio/mp4`,duration:15,bytes:381492,sourceSha256:`860bb416cd7217ab3debbbb98e34c8d3cbe2e6ff618d73a2714749fb8181ffef`,sources:[{file:`examples/Halvaa/47-weather-tv.motiondesk/source/assets/music.m4a`,title:`תחזית מזג אוויר`,templateId:`halvaa-47`}],waveform:[.5,.88,.9,.96,.66,.96,.77,.95,.86,.91,.9,.76,.93,.87,.94,.92,.9,.99,.68,.97,.68,.95,.85,.66,.73,.78,.71,.88,.74,1,.99,.4,.42,.45,.49,.45,.44,.49,.45,.42,.51,.52,.54,.48,.44,.42,.43,.49,.47,.42,.39,.3,.24,.17,.11,.04]},{id:`music-4cd9593d9fd435c2`,title:`תיאטרון צלליות`,category:`templates`,kind:`music`,filename:`music-4cd9593d9fd435c2.m4a`,mime:`audio/mp4`,duration:15,bytes:388104,sourceSha256:`4cd9593d9fd435c20dfdcb8a9c9fef49f6141c094c9f83a708f9461fdbec5aa9`,sources:[{file:`examples/Halvaa/57-shadow-puppets.motiondesk/source/assets/music.m4a`,title:`תיאטרון צלליות`,templateId:`halvaa-57`}],waveform:[.24,.44,.56,.47,.49,.41,.61,.79,.77,.74,.65,.6,.63,.55,.59,.65,.65,.64,.49,.47,.51,.53,.52,.44,.46,.48,.54,.49,.36,.53,.54,.61,.57,.57,.58,.8,.55,.92,.74,.9,.82,.87,1,.7,.92,.69,.84,.75,.8,.93,.65,.71,.48,.38,.19,.09]},{id:`music-8dd12c8d8b34b129`,title:`מערבולת טיפוגרפית`,category:`templates`,kind:`music`,filename:`music-8dd12c8d8b34b129.m4a`,mime:`audio/mp4`,duration:15,bytes:378486,sourceSha256:`8dd12c8d8b34b129e7f6f8de6f101bf005f4ebebc67df27ac53199365dbf0fad`,sources:[{file:`examples/Halvaa/63-typo-vortex.motiondesk/source/assets/music.m4a`,title:`מערבולת טיפוגרפית`,templateId:`halvaa-63`}],waveform:[.22,.37,.4,.47,.51,.56,.57,.66,.64,.64,.55,.55,.56,.57,.05,.04,.02,.29,.33,.24,.49,.99,1,.79,.94,.88,.93,.81,.88,.89,.66,.92,.71,.84,.85,.95,.88,.67,.89,.79,.87,.83,.84,.87,.75,.84,.76,.8,.74,.81,.76,.51,.49,.3,.21,.07]},{id:`music-1a84d11334037dfa`,title:`המטבעה`,category:`templates`,kind:`music`,filename:`music-1a84d11334037dfa.m4a`,mime:`audio/mp4`,duration:15,bytes:387326,sourceSha256:`1a84d11334037dfa3c74ab842db37e5a25096dedf40d364a3e75d97d70e93c8b`,sources:[{file:`examples/Halvaa/66-the-mint.motiondesk/source/assets/music.m4a`,title:`המטבעה`,templateId:`halvaa-66`}],waveform:[.3,.49,.52,.41,.4,.39,.41,.27,.3,.47,.34,.28,.31,.5,.34,.32,.49,.36,.29,.36,.36,1,.89,.81,.89,.61,.75,.78,.83,.81,.73,.82,.71,.73,.72,.75,.74,.67,.79,.53,.63,.7,.81,.77,.57,.74,.66,.66,.69,.68,.63,.45,.41,.19,.16,.06]},{id:`music-2fab8e64a842ee3f`,title:`סרטון צמיחת הבנק`,category:`bank`,kind:`music`,filename:`music-2fab8e64a842ee3f.m4a`,mime:`audio/mp4`,duration:53,bytes:1357284,sourceSha256:`2fab8e64a842ee3f7d2c7be02300fe043421fb31a5c2f67bbb47d8d96311b0e0`,sources:[{file:`examples/Bank-Growth.motiondesk/source/assets/soundtrack.wav`,title:`סרטון צמיחת הבנק`,templateId:`bank-growth`}],waveform:[.43,.89,.51,.39,.33,.34,.34,.69,.75,.49,.59,.7,.61,.56,.35,.54,.75,.61,.91,.54,.64,.29,.24,.7,.46,.31,.14,.83,.83,.75,.86,.96,.5,.23,.61,.78,.85,.7,.36,.48,.74,.66,.18,.67,.7,.92,.55,1,.72,.69,.16,.24,.23,.23,.25,.12]},{id:`music-12f8385b9d757ff3`,title:`סרטון WhatsApp 12:16:56`,category:`personal`,kind:`soundtrack`,filename:`music-12f8385b9d757ff3.m4a`,mime:`audio/mp4`,duration:64.016,bytes:513843,sourceSha256:`12f8385b9d757ff3489bf57ed6fc3e6dca7ce94796dc147aca30b1c9e9897c8b`,sources:[{file:`examples/User-Samples/whatsapp-121656.motiondesk/source/assets/soundtrack.m4a`,title:`סרטון WhatsApp 12:16:56`,templateId:`whatsapp-121656`}],waveform:[.61,.76,.61,.67,.71,.73,.65,.86,.73,.72,.78,.74,.8,.7,.71,.37,.92,.61,.46,.58,.65,.94,.53,.79,.62,.73,1,.64,.53,.6,.66,.66,.79,.66,.43,.62,.7,.89,.71,.82,.47,.73,.52,.29,.71,.71,.77,.78,.8,.77,.86,.75,.8,.43,.63,.06]},{id:`music-f15842e5b9053b86`,title:`סרטון WhatsApp 12:23:05`,category:`personal`,kind:`soundtrack`,filename:`music-f15842e5b9053b86.m4a`,mime:`audio/mp4`,duration:34.202,bytes:245886,sourceSha256:`f15842e5b9053b8624bf82d3cc1858fae1e52d88e1bdf7d7e747b7985e622c7f`,sources:[{file:`examples/User-Samples/whatsapp-122305.motiondesk/source/assets/soundtrack.m4a`,title:`סרטון WhatsApp 12:23:05`,templateId:`whatsapp-122305`}],waveform:[.38,.82,.45,1,.47,.87,.57,.8,.87,.42,.86,.42,.74,.54,.7,.79,.45,.9,.49,.87,.49,.79,.82,.48,.86,.51,.83,.56,.71,.85,.49,.91,.43,.89,.51,.78,.78,.5,.83,.41,.75,.55,.7,.77,.98,.39,.27,.29,.39,.16,0,0,0,0,0,0]},{id:`music-5c46e23ac9214801`,title:`סרטון WhatsApp 12:23:38`,category:`personal`,kind:`soundtrack`,filename:`music-5c46e23ac9214801.m4a`,mime:`audio/mp4`,duration:31.323,bytes:222478,sourceSha256:`5c46e23ac92148010e30cec1add92dfe8d3529d6fb3f701815c6c9d8769cd93a`,sources:[{file:`examples/User-Samples/whatsapp-122338.motiondesk/source/assets/soundtrack.m4a`,title:`סרטון WhatsApp 12:23:38`,templateId:`whatsapp-122338`}],waveform:[.41,.79,.63,.99,.56,.93,.48,.97,.43,.98,.37,.92,.38,.83,.48,.82,.57,.81,.54,.88,.58,.88,.57,.82,.79,.64,.85,.56,.92,.45,.87,.4,.99,.39,1,.41,.97,.48,.88,.47,.87,.57,.78,.95,.66,.37,.29,.34,.26,.01,0,0,0,0,0,0]}]}.tracks,Al=e=>`./music/${e.filename}`,jl=e=>`${Math.floor(e/60)}:${String(Math.floor(e%60)).padStart(2,`0`)}`;function Ml(e,t,n,r){if(!/^data:audio\/[a-z0-9.+-]+;base64,[A-Za-z0-9+/=]+$/.test(n))throw Error(`קובץ המוזיקה אינו תקין`);let i=r.duration||Vt(e);if(!Number.isFinite(i)||i<=0||i>3600||!Number.isFinite(t.duration)||t.duration<=.01)throw Error(`משך המוזיקה או הפרויקט אינו תקין`);if(!Number.isFinite(r.volume)||r.volume<0||r.volume>1)throw Error(`עוצמת המוזיקה אינה תקינה`);let a=e.assets.find(e=>e.kind===`audio`&&e.src===n),o=a??{id:Lt(`asset`),kind:`audio`,name:`${t.title}.m4a`,src:n,mime:t.mime,duration:t.duration},s=[];for(let e=0;e<i-1e-6&&(s.push({id:Lt(`clip`),assetId:o.id,start:e,in:0,out:Math.min(t.duration,i-e),volume:r.volume,muted:!1}),r.loop);e+=t.duration);let c=r.replace?e.mediaTracks.filter(e=>!e.id.startsWith(`library_music_`)):e.mediaTracks,l=new Set(r.replace?e.mediaTracks.filter(e=>e.id.startsWith(`library_music_`)).flatMap(e=>e.clips.map(e=>e.assetId)):[]),u=new Set([...c.flatMap(e=>e.clips.map(e=>e.assetId)),...e.scenes.flatMap(e=>e.layers.map(e=>e.assetId)),o.id]),d=(a?e.assets:[...e.assets,o]).filter(e=>!l.has(e.id)||u.has(e.id)),f={...e,assets:d,mediaTracks:[...c,{id:Lt(`library_music`),name:t.title,type:`audio`,muted:!1,clips:s}]};return Xt(f),f}async function Nl(e){let t=await fetch(Al(e));if(!t.ok)throw Error(`לא ניתן לטעון את קובץ המוזיקה`);let n=await t.arrayBuffer();if(n.byteLength!==e.bytes)throw Error(`קובץ המוזיקה נטען באופן חלקי`);return new Promise((t,r)=>{let i=new FileReader;i.onload=()=>t(String(i.result)),i.onerror=()=>r(Error(`לא ניתן לקרוא את קובץ המוזיקה`)),i.readAsDataURL(new Blob([n],{type:e.mime}))})}var Pl=[[`all`,`הכול`],[`music`,`מוזיקות רקע`],[`soundtrack`,`פסי קול מהסרטונים`]];function Fl({projectTitle:e,duration:t,onAdd:n,onManage:r}){let[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(`all`),[c,l]=(0,b.useState)(null),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(0),[m,h]=(0,b.useState)(``),[g,_]=(0,b.useState)(``),[v,y]=(0,b.useState)(``),[x,S]=(0,b.useState)(.3),[C,ee]=(0,b.useState)(!0),[w,T]=(0,b.useState)(!0),E=(0,b.useRef)(null),D=(0,b.useRef)(null);(0,b.useEffect)(()=>{let e=E.current;return()=>{e?.pause()}},[]);let O=kl.filter(e=>(o===`all`||e.kind===o)&&`${e.title} ${e.sources.map(e=>e.title).join(` `)} ${e.kind===`soundtrack`?`WhatsApp`:``}`.toLocaleLowerCase().includes(i.toLocaleLowerCase().trim()));async function te(e){h(``);let t=E.current;if(t){if(D.current===e.id&&!t.paused)t.pause();else{D.current!==e.id&&(D.current=e.id,l(e),p(0),t.src=Al(e),t.volume=.7);try{await t.play()}catch(t){D.current===e.id&&!(t instanceof DOMException&&t.name===`AbortError`)&&h(`לא ניתן לנגן את הקטע. נסה שוב.`)}}}}async function k(e){if(!g){_(e.id),h(``),y(``);try{await n(e,{volume:x,loop:C,replace:w,duration:t}),y(e.id)}catch(e){h(e instanceof Error?e.message:String(e))}finally{_(``)}}}return(0,U.jsxs)(`section`,{className:`md-music`,"aria-label":`ספריית מוזיקה`,children:[(0,U.jsxs)(`div`,{className:`md-music-project`,children:[(0,U.jsx)(ke,{size:21}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`span`,{children:`מוסיפים מוזיקה לפרויקט`}),(0,U.jsx)(`strong`,{children:e})]}),(0,U.jsx)(`bdi`,{children:jl(t)}),(0,U.jsx)(`button`,{className:`md-btn`,onClick:r,children:`ניהול ערוצי שמע`})]}),(0,U.jsxs)(`div`,{className:`md-music-options`,children:[(0,U.jsxs)(`label`,{className:`md-music-volume`,children:[(0,U.jsx)(pt,{size:16}),(0,U.jsx)(`span`,{children:`עוצמה בסרטון`}),(0,U.jsx)(`input`,{"aria-label":`עוצמת המוזיקה בסרטון`,type:`range`,min:`0`,max:`100`,step:`5`,value:x*100,onChange:e=>S(e.target.value/100)}),(0,U.jsxs)(`bdi`,{children:[Math.round(x*100),`%`]})]}),(0,U.jsxs)(`label`,{className:`md-checkbox`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:C,onChange:e=>ee(e.target.checked)}),`חזרה עד סוף הסרטון`]}),(0,U.jsxs)(`label`,{className:`md-checkbox`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:w,onChange:e=>T(e.target.checked)}),`החלפת מוזיקה קודמת מהספרייה`]})]}),(0,U.jsxs)(`div`,{className:`md-music-toolbar`,children:[(0,U.jsxs)(`div`,{className:`md-search`,children:[(0,U.jsx)(Ue,{size:16}),(0,U.jsx)(`input`,{"aria-label":`חיפוש מוזיקה`,placeholder:`חיפוש לפי שם או תבנית...`,value:i,onChange:e=>a(e.target.value)})]}),(0,U.jsxs)(`span`,{children:[O.length,` קטעים`]})]}),(0,U.jsx)(`div`,{className:`md-categories`,children:Pl.map(([e,t])=>(0,U.jsx)(`button`,{className:`md-chip `+(o===e?`active`:``),"aria-pressed":o===e,onClick:()=>s(e),children:t},e))}),m&&(0,U.jsx)(`div`,{className:`md-create-error`,role:`alert`,children:m}),v&&(0,U.jsxs)(`div`,{className:`md-music-success`,role:`status`,children:[(0,U.jsx)(ie,{size:16}),`המוזיקה נוספה לפרויקט. אפשר לשנות תזמון ועוצמה בניהול ערוצי השמע.`]}),(0,U.jsx)(`div`,{className:`md-music-list`,role:`list`,children:O.map((e,n)=>{let r=c?.id===e.id;return(0,U.jsxs)(`article`,{role:`listitem`,className:`md-music-row `+(r?`active`:``),"data-music-id":e.id,children:[(0,U.jsx)(`span`,{className:`md-music-index`,children:String(n+1).padStart(2,`0`)}),(0,U.jsx)(`button`,{className:`md-music-play`,"aria-label":`${r&&u?`השהיית`:`האזנה ל`} ${e.title}`,onClick:()=>te(e),children:r&&u?(0,U.jsx)(je,{size:17}):(0,U.jsx)(Fe,{size:17})}),(0,U.jsxs)(`div`,{className:`md-music-description`,children:[(0,U.jsx)(`h2`,{children:e.title}),(0,U.jsxs)(`p`,{children:[e.kind===`soundtrack`?`פס הקול המקורי של הסרטון`:`מוזיקת רקע`,e.sources.length>1?` · משמשת ב־${e.sources.length} תבניות`:``]}),(0,U.jsx)(`div`,{className:`md-music-sources`,title:e.sources.map(e=>e.title).join(` · `),children:e.sources.map(e=>(0,U.jsx)(`span`,{children:e.title},e.templateId))})]}),(0,U.jsx)(`div`,{className:`md-music-waveform`,"aria-hidden":`true`,dir:`ltr`,children:e.waveform.map((t,n)=>(0,U.jsx)(`i`,{style:{height:`${Math.max(8,t*100)}%`,background:r&&n/e.waveform.length<f/e.duration?`#e30613`:void 0}},n))}),(0,U.jsx)(`bdi`,{className:`md-music-duration`,children:jl(e.duration)}),(0,U.jsx)(`a`,{className:`md-btn icon`,href:Al(e),download:`${e.title}.m4a`,"aria-label":`הורדת ${e.title}`,children:(0,U.jsx)(me,{size:15})}),(0,U.jsx)(`button`,{className:`md-btn md-music-add`,disabled:!!g||t<=0,onClick:()=>k(e),children:g===e.id?`מוסיף...`:v===e.id?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ie,{size:14}),`נוסף`]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ie,{size:14}),`הוספה לסרטון`]})})]},e.id)})}),!O.length&&(0,U.jsx)(`div`,{className:`md-empty`,children:`לא נמצאו קטעים. נסה שם תבנית אחר.`}),(0,U.jsxs)(`div`,{className:`md-music-player `+(c?`visible`:``),children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`strong`,{children:c?.title??`בחר קטע להאזנה`}),(0,U.jsx)(`small`,{children:`תצוגה מקדימה · עוצמת ההאזנה נפרדת מעוצמת הסרטון`})]}),(0,U.jsx)(`audio`,{ref:E,controls:!0,preload:`none`,onPlay:()=>d(!0),onPause:()=>d(!1),onEnded:()=>d(!1),onTimeUpdate:e=>p(e.currentTarget.currentTime),onError:()=>{d(!1),h(`קובץ השמע אינו זמין.`)}})]})]})}var Il={"halvaa-01":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`זכוכית`,`נתונים וגרפים`,`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-02":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`גליץ׳`,`נסיעות`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-03":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נתונים וגרפים`,`מסכי אפליקציה`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-04":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`גזרי נייר`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-05":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`רטרו`,`ניאון`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-06":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נתונים וגרפים`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-07":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`זכוכית`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-08":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-09":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`סושיאל`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-10":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`קולנועי`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-11":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`תלת־ממד`,`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-12":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`באוהאוס`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-13":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-14":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-15":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טרמינל`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-16":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-17":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`שרטוט טכני`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-18":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נתונים וגרפים`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-19":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`נתונים וגרפים`,`מסכי אפליקציה`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-20":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`זכוכית`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-21":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`תלת־ממד`,`מסכי אפליקציה`,`כסף ומטבעות`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-22":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`תלת־ממד`,`גזרי נייר`,`נסיעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-23":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`ניאון`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-24":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`גזרי נייר`,`נתונים וגרפים`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-25":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-26":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`תלת־ממד`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-27":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נסיעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-28":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-29":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`פסיפס`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-30":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`גזרי נייר`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-31":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נתונים וגרפים`,`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-32":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`לוח המראות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-33":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`תלת־ממד`,`נסיעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-34":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`ממפיס`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-35":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מינימליסטי`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-36":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-37":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נתונים וגרפים`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-38":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`כסף ומטבעות`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-39":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נתונים וגרפים`,`נסיעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-40":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`רקמה`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-41":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`זכוכית`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-42":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`אסטרונומיה`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-43":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`כסף ומטבעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-44":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`גזרי נייר`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-45":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נתונים וגרפים`,`ניאון`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-46":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`מסכי אפליקציה`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-47":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מזג אוויר`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-48":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`תלת־ממד`,`גזרי נייר`,`מסכי אפליקציה`,`כסף ומטבעות`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-49":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`חלל`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-50":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`נסיעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-51":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`כסף ומטבעות`,`נסיעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-52":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-53":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מכונת כתיבה`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-54":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`ריזוגרף`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-55":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`תלת־ממד`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-56":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`כסף ומטבעות`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-57":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מסכי אפליקציה`,`נסיעות`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-58":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`בולים וחותמות`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-59":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`מוזיקה`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-60":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`לוח שנה`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-61":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`תלת־ממד`,`כסף ומטבעות`,`ניאון`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-62":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`תלת־ממד`,`כסף ומטבעות`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-63":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`טקסט קינטי`,`תלת־ממד`,`נתונים וגרפים`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"halvaa-64":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`כספת`,`HTML עריך`,`רוחבי`],dateSource:`catalog-added`},"halvaa-65":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`זכוכית`,`כסף ומטבעות`,`נסיעות`,`HTML עריך`,`אנכי`],dateSource:`catalog-added`},"halvaa-66":{createdAt:null,addedAt:`2026-10-15T17:12:46.705Z`,version:`1.0.0`,tags:[`כסף ומטבעות`,`HTML עריך`,`ריבועי`],dateSource:`catalog-added`},"showcase:11-flow-finance":{createdAt:`2026-10-16T09:54:41.919Z`,addedAt:null,version:`1.0.0`,tags:[`v3`,`מושן`,`עריך`,`רוחבי`],dateSource:`project-created`},"showcase:12-pulse-training":{createdAt:`2026-10-16T09:54:42.206Z`,addedAt:null,version:`1.0.0`,tags:[`v3`,`מושן`,`עריך`,`אנכי`],dateSource:`project-created`},"showcase:13-orbit-travel":{createdAt:`2026-10-16T09:54:42.490Z`,addedAt:null,version:`1.0.0`,tags:[`v3`,`מושן`,`עריך`,`ריבועי`],dateSource:`project-created`},"showcase:14-nova-product":{createdAt:`2026-10-16T11:57:56.164Z`,addedAt:null,version:`1.0.0`,tags:[`v3`,`קונפיג v3`,`מוצר דיגיטלי`,`מסכי אפליקציה`,`גרפים`,`רוחבי`],dateSource:`project-created`},"showcase:15-tempo-motion":{createdAt:`2026-10-16T11:57:56.552Z`,addedAt:null,version:`1.0.0`,tags:[`v3`,`קונפיג v3`,`כושר`,`טקסט קינטי`,`טיימר`,`אנכי`],dateSource:`project-created`},"showcase:16-atlas-journey":{createdAt:`2026-10-16T11:57:56.812Z`,addedAt:null,version:`1.0.0`,tags:[`v3`,`קונפיג v3`,`נסיעות`,`מסלול`,`מטבעות`,`ריבועי`],dateSource:`project-created`},"showcase:17-revenue-quarter":{createdAt:`2026-10-16T13:50:36.600Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`עסקים`,`סיכום רבעון`,`גרפים`,`מונים`],dateSource:`project-created`},"showcase:18-daily-workout":{createdAt:`2026-10-16T13:50:37.026Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`כושר`,`טקסט קינטי`,`מסכי אפליקציה`,`התקדמות`],dateSource:`project-created`},"showcase:19-italy-trip":{createdAt:`2026-10-16T13:50:37.352Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`נסיעות`,`איטליה`,`מסלול`,`כרטיסים`],dateSource:`project-created`},"showcase:20-smart-savings":{createdAt:`2026-10-16T13:50:37.616Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`חיסכון`,`מטבעות`,`מונים`,`מסכי אפליקציה`],dateSource:`project-created`},"showcase:21-weekly-challenge":{createdAt:`2026-10-16T13:50:37.974Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`כושר`,`קהילה`,`צ׳אט`,`ציר זמן`],dateSource:`project-created`},"showcase:22-flash-sale":{createdAt:`2026-10-16T13:50:38.246Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`מכירות`,`מבצע`,`השוואה`,`קונפטי`],dateSource:`project-created`},"showcase:23-flight-savings":{createdAt:`2026-10-16T13:50:38.520Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`חיסכון`,`נסיעות`,`מסלול`,`מטבעות`],dateSource:`project-created`},"showcase:24-team-dashboard":{createdAt:`2026-10-16T13:50:38.771Z`,addedAt:null,version:`3.0.0`,tags:[`v3`,`שדרוג v3`,`עסקים`,`צוות`,`גרפים`,`ממשק`],dateSource:`project-created`},"enhanced:01-revenue-quarter":{createdAt:`2026-10-16T06:17:03.949Z`,addedAt:null,version:`2.0.0`,tags:[`עסקים`,`סיכום רבעון`,`מונים`,`גרפים`,`רוחבי`],dateSource:`project-created`},"enhanced:02-daily-workout":{createdAt:`2026-10-16T06:29:49.862Z`,addedAt:null,version:`2.0.0`,tags:[`כושר`,`טקסט קינטי`,`מסכי אפליקציה`,`התקדמות`,`אנכי`],dateSource:`project-created`},"enhanced:03-italy-trip":{createdAt:`2026-10-16T06:20:25.343Z`,addedAt:null,version:`2.0.0`,tags:[`נסיעות`,`איטליה`,`מסלול`,`כרטיסים`,`ריבועי`],dateSource:`project-created`},"enhanced:04-smart-savings":{createdAt:`2026-10-16T06:30:26.485Z`,addedAt:null,version:`2.0.0`,tags:[`חיסכון`,`מטבעות`,`מונים`,`טקסט קינטי`,`רוחבי`],dateSource:`project-created`},"enhanced:05-weekly-challenge":{createdAt:`2026-10-16T06:31:01.747Z`,addedAt:null,version:`2.0.0`,tags:[`כושר`,`קהילה`,`צ׳אט`,`ציר זמן`,`אנכי`],dateSource:`project-created`},"enhanced:06-flash-sale":{createdAt:`2026-10-16T06:22:02.376Z`,addedAt:null,version:`2.0.0`,tags:[`מכירות`,`מבצע`,`השוואה`,`קונפטי`,`ריבועי`],dateSource:`project-created`},"enhanced:07-flight-savings":{createdAt:`2026-10-16T06:31:38.896Z`,addedAt:null,version:`2.0.0`,tags:[`חיסכון`,`נסיעות`,`התקדמות`,`מטבעות`,`אנכי`],dateSource:`project-created`},"enhanced:08-team-dashboard":{createdAt:`2026-10-16T06:22:57.576Z`,addedAt:null,version:`2.0.0`,tags:[`עסקים`,`צוות`,`גרפים`,`רשימת משימות`,`רוחבי`],dateSource:`project-created`},"bank:01-car-choice":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`רכב`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:02-holiday-budget":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`תכנון`,`מונים`,`נתונים וגרפים`,`נסיעות`,`רוחבי`],dateSource:`git-added`},"bank:03-one-click":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`דיגיטל`,`מונים`,`נתונים וגרפים`,`מסכי אפליקציה`,`רוחבי`],dateSource:`git-added`},"bank:04-career-course":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`קריירה`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:05-home-refresh":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`בית`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:06-summer-plans":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`לייף סטייל`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:07-car-upgrade":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`רכב`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:08-wedding-plan":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`אירועים`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:09-share-intro":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`שוק ההון`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:10-suspicious-message":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`בטיחות`,`מונים`,`נתונים וגרפים`,`מסכי אפליקציה`,`רוחבי`],dateSource:`git-added`},"bank:11-student-routine":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`סטודנטים`,`מונים`,`נתונים וגרפים`,`נסיעות`,`רוחבי`],dateSource:`git-added`},"bank:12-investing-first-step":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`שוק ההון`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:13-fomo":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`שוק ההון`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:14-market-timing":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`שוק ההון`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:15-investing-for-all":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`שוק ההון`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:16-two-paths":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`שוק ההון`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:17-small-business":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`עסקים`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:18-travel-forex":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`נסיעות`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:19-mortgage-questions":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`דיור`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"bank:20-market-app":{createdAt:null,addedAt:`2026-10-16T00:14:06+03:00`,version:`1.0.0`,tags:[`דיגיטל`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"starter:01-launch":{createdAt:null,addedAt:`2026-10-16T00:25:04+03:00`,version:`1.0.0`,tags:[`מצגת תנועה`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"starter:02-milestone":{createdAt:null,addedAt:`2026-10-16T00:25:04+03:00`,version:`1.0.0`,tags:[`מצגת תנועה`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"starter:03-explainer":{createdAt:null,addedAt:`2026-10-16T00:25:04+03:00`,version:`1.0.0`,tags:[`מצגת תנועה`,`מונים`,`נתונים וגרפים`,`רוחבי`],dateSource:`git-added`},"starter:04-event":{createdAt:null,addedAt:`2026-10-16T00:25:04+03:00`,version:`1.0.0`,tags:[`מצגת תנועה`,`מונים`,`נתונים וגרפים`,`אנכי`],dateSource:`git-added`},"starter:05-impact":{createdAt:null,addedAt:`2026-10-16T00:25:04+03:00`,version:`1.0.0`,tags:[`מצגת תנועה`,`מונים`,`נתונים וגרפים`,`אנכי`],dateSource:`git-added`},"starter:06-recap":{createdAt:null,addedAt:`2026-10-16T00:25:04+03:00`,version:`1.0.0`,tags:[`מצגת תנועה`,`נתונים וגרפים`,`ריבועי`],dateSource:`git-added`},"sample:bank-growth":{createdAt:`2026-10-15T17:26:37.518Z`,addedAt:`2026-10-15T21:25:01+03:00`,version:`1.0.0`,tags:[`סרטון אישי`,`HTML עריך`,`רוחבי`],dateSource:`project-created`},"sample:final-trailer":{createdAt:null,addedAt:`2026-10-15T21:25:01+03:00`,version:`1.0.0`,tags:[`סרטון אישי`,`עריכת MP4`,`רוחבי`],dateSource:`git-added`},"sample:whatsapp-121656":{createdAt:null,addedAt:`2026-10-15T21:25:01+03:00`,version:`1.0.0`,tags:[`WhatsApp`,`שחזור HTML`,`אנכי`],dateSource:`git-added`},"sample:whatsapp-122305":{createdAt:null,addedAt:`2026-10-15T21:25:01+03:00`,version:`1.0.0`,tags:[`WhatsApp`,`HTML עריך`,`רוחבי`],dateSource:`git-added`},"sample:whatsapp-122338":{createdAt:null,addedAt:`2026-10-15T21:25:01+03:00`,version:`1.0.0`,tags:[`WhatsApp`,`HTML עריך`,`רוחבי`],dateSource:`git-added`},"v2-demo":{createdAt:null,addedAt:`2026-10-16T07:58:29+03:00`,version:`1.0.0`,tags:[`חופשה`,`טקסט קינטי`,`מונים`,`מסכי אפליקציה`,`רוחבי`],dateSource:`git-added`}};function Ll(e){return Il[e]??{createdAt:null,addedAt:null,version:`1.0.0`,tags:[]}}function Rl(e){return{createdAt:e.createdAt,addedAt:e.importedAt,version:e.templateVersion||`1.0.0`,tags:e.tags?.length?e.tags:[`תבנית מיובאת`,`HTML עריך`,e.width===e.height?`ריבועי`:e.width>e.height?`רוחבי`:`אנכי`]}}function zl(e){return!e||!Number.isFinite(Date.parse(e))?null:new Intl.DateTimeFormat(`he-IL`,{year:`numeric`,month:`2-digit`,day:`2-digit`,timeZone:`Asia/Jerusalem`}).format(new Date(e))}function Bl({metadata:e}){let t=zl(e.createdAt),n=zl(e.addedAt),r=t||n;return(0,U.jsxs)(`div`,{className:`md-template-metadata`,"data-template-version":e.version,children:[(0,U.jsxs)(`div`,{className:`md-template-facts`,children:[(0,U.jsxs)(`span`,{title:t?`מועד יצירת הפרויקט המקורי`:`תאריך היצירה במקור לא תועד; מוצג מועד ההוספה לקטלוג`,children:[(0,U.jsx)(O,{size:12}),r?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`span`,{children:[t?`נוצרה`:`נוספה`,` `]}),(0,U.jsx)(`time`,{dateTime:(t?e.createdAt:e.addedAt)||void 0,children:r})]}):(0,U.jsx)(`span`,{children:`תאריך יצירה לא תועד`})]}),(0,U.jsxs)(`span`,{className:`md-template-version`,children:[`גרסת תבנית `,(0,U.jsx)(`bdi`,{children:e.version})]})]}),(0,U.jsxs)(`div`,{className:`md-template-tags`,"aria-label":`תגיות תבנית`,children:[(0,U.jsx)(nt,{size:12}),e.tags.length?e.tags.map(e=>(0,U.jsx)(`span`,{children:e},e)):(0,U.jsx)(`span`,{children:`ללא תגיות`})]})]})}var Vl=[{id:`01-revenue-quarter`,title:`רבעון שיא`,description:`סיכום רבעון עם נתון מרכזי, גרף צמיחה וקריאה לדוח המלא.`,width:1920,height:1080,fps:30,duration:15,scenes:4},{id:`02-daily-workout`,title:`האימון היומי`,description:`אימון יומי עם פתיחה קצבית, מסך פעילות ויעד שבועי.`,width:1080,height:1920,fps:30,duration:15.5,scenes:4},{id:`03-italy-trip`,title:`מסע לאיטליה`,description:`מסע בין ערי איטליה, עם מסלול נע וכרטיסי יעדים מאוירים.`,width:1080,height:1080,fps:25,duration:16.5,scenes:4},{id:`04-smart-savings`,title:`קופת החיסכון החכמה`,description:`חיסכון שמצטבר במטבעות, סכום חודשי ויתרה מתעדכנת.`,width:1920,height:1080,fps:30,duration:15,scenes:4},{id:`05-weekly-challenge`,title:`מי יעמוד באתגר`,description:`הזמנה לאתגר קהילתי עם שיחה קבוצתית ושלבים לאורך השבוע.`,width:1080,height:1920,fps:30,duration:16.5,scenes:4},{id:`06-flash-sale`,title:`המכירה הגדולה`,description:`מבצע קצבי עם השוואת מחירים, קונפטי וקריאה לקנייה.`,width:1080,height:1080,fps:30,duration:12.8,scenes:4},{id:`07-flight-savings`,title:`חיסכון לטיסה`,description:`מתקדמים לחופשה הבאה עם יעד חיסכון, מטבעות ונתיב טיסה.`,width:1080,height:1920,fps:24,duration:18.7,scenes:5},{id:`08-team-dashboard`,title:`לוח הבקרה של הצוות`,description:`לוח צוות עם גרפים שנבנים, עדכונים ואישורי משימות.`,width:1920,height:1080,fps:30,duration:13.7,scenes:4}],Hl=[{id:`17-revenue-quarter`,title:`רבעון שיא — v3`,description:`דוח רבעוני בתנועה: אותיות קינטיות, הכנסות נספרות, עמודות מדורגות, קו מגמה נחשף ולחיצה על דוח בממשק.`,width:1920,height:1080,fps:24,duration:24,scenes:8,configFormat:`motiondesk-config/v3`},{id:`18-daily-workout`,title:`האימון היומי — v3`,description:`שגרת אימון עם אותיות קופצות, טלפון בתלת־ממד, טבעת מרחק, עמודות יומיות וקונפטי בסיום.`,width:1080,height:1920,fps:24,duration:21,scenes:7,configFormat:`motiondesk-config/v3`},{id:`19-italy-trip`,title:`מסע לאיטליה — v3`,description:`יומן מסע גרפי עם מסלול רומא–פירנצה–ונציה, כרטיסי אתרים, תחנות זמן ושיחה לקראת היציאה.`,width:1080,height:1080,fps:24,duration:24,scenes:8,configFormat:`motiondesk-config/v3`},{id:`20-smart-savings`,title:`קופת החיסכון החכמה — v3`,description:`חיסכון עם מטבעות נעים, יתרה נספרת, טלפון מסתובב, גרף צבירה ויעד המקושר לטבעת.`,width:1920,height:1080,fps:24,duration:24,scenes:8,configFormat:`motiondesk-config/v3`},{id:`21-weekly-challenge`,title:`מי יעמוד באתגר — v3`,description:`אתגר קהילתי עם אותיות מדורגות, בועות שיחה, ציר שבועי, טבעת השלמה וחגיגה פרוצדורלית.`,width:1080,height:1920,fps:24,duration:21,scenes:7,configFormat:`motiondesk-config/v3`},{id:`22-flash-sale`,title:`המכירה הגדולה — v3`,description:`מבצע גרפי עם אותיות בתנועה, כרטיסי מחיר, מספר הנחה ענק, טבעת זמן ולחיצת רכישה מונפשת.`,width:1080,height:1080,fps:24,duration:21,scenes:7,configFormat:`motiondesk-config/v3`},{id:`23-flight-savings`,title:`חיסכון לטיסה — v3`,description:`המסע לבנגקוק עם טבעת חיסכון, מטבעות, נתיב טיסה נחשף, תחנות בדרך וטלפון לתכנון החופשה.`,width:1080,height:1920,fps:24,duration:24,scenes:8,configFormat:`motiondesk-config/v3`},{id:`24-team-dashboard`,title:`לוח הבקרה של הצוות — v3`,description:`לוח צוות חי עם טלפון תלת־ממדי, עמודות ומונים מסונכרנים, גרף נחשף, התראות ומשימות בתנועה.`,width:1920,height:1080,fps:24,duration:24,scenes:8,configFormat:`motiondesk-config/v3`},{id:`14-nova-product`,title:`NOVA — מרעיון למוצר בתנועה`,description:`השקת מוצר דמה עם טלפון תלת־ממדי, גרפים נחשפים, עמודות ומונה, כרטיסים והתראות, וסמן שמפעיל את הממשק.`,width:1920,height:1080,fps:24,duration:24,scenes:8,configFormat:`motiondesk-config/v3`},{id:`15-tempo-motion`,title:`TEMPO — נכנסים לקצב שלכם`,description:`סרטון אנכי עם אותיות קינטיות, טבעת ומספר מסונכרנים, השוואה, התקדמות, קונפטי וסרטי טקסט בתנועה.`,width:1080,height:1920,fps:24,duration:21,scenes:7,configFormat:`motiondesk-config/v3`},{id:`16-atlas-journey`,title:`ATLAS — רעיון שהופך למסע`,description:`מסע עיצובי ריבועי עם מסלול נחשף, תחנות זמן, טיפוגרפיה, צ׳אט, משימות, מטבעות וסיום מונפש.`,width:1080,height:1080,fps:24,duration:24,scenes:8,configFormat:`motiondesk-config/v3`},{id:`11-flow-finance`,title:`FLOW — הכסף מקבל תנועה`,description:`גרפים ומונים מסונכרנים, כרטיסים בתנועה, ממשק טלפון ותנועת מצלמה.`,width:1920,height:1080,fps:24,duration:18,scenes:4},{id:`12-pulse-training`,title:`PULSE — הקצב שלכם`,description:`טיפוגרפיה קינטית, טבעת טיימר מסונכרנת, גרף פעילות וסרטי צבע.`,width:1080,height:1920,fps:24,duration:18,scenes:4},{id:`13-orbit-travel`,title:`ORBIT — היעד הבא`,description:`מסלול טיסה מונפש, מזוודה הנבנית מחלקים ומד התקדמות לחופשה.`,width:1080,height:1080,fps:24,duration:18,scenes:4}],Ul=Vl,Wl=Hl;function Gl({items:e,onOpenProject:t,variant:n=`v2`}){let r=n===`v3`?`showcase-v3`:`enhanced-v2`,i=n===`v3`?`מושן v3 מתקדם`:`מושן v2 משופר`,[a,o]=(0,b.useState)(``),[s,c]=(0,b.useState)(``),[l,u]=(0,b.useState)(null);async function d(e){o(e.id),c(``);try{let n=await fetch(`/catalog/${r}/${e.id}/project.motiondesk.json`);if(!n.ok)throw Error(`קובץ התבנית לא זמין כרגע`);let i=Qt(await n.text()),a=new Date().toISOString();t({...i,id:Lt(`project`),revision:0,createdAt:a,updatedAt:a,templateId:`${r}-${e.id}`})}catch(e){c(e instanceof Error?e.message:String(e))}finally{o(``)}}return(0,U.jsxs)(`section`,{"aria-label":i,children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:i}),(0,U.jsxs)(`small`,{className:`md-count`,children:[e.length,` סרטונים · טיפוגרפיה קינטית, מונים ותנועה עריכים`]})]}),s&&(0,U.jsx)(`div`,{className:`md-create-error`,role:`alert`,children:s}),(0,U.jsx)(`div`,{className:`md-grid`,children:e.map(e=>(0,U.jsxs)(`article`,{className:`md-template md-enhanced-card`,"data-enhanced-id":n===`v2`?e.id:void 0,"data-showcase-id":n===`v3`?e.id:void 0,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-enhanced-preview`,onClick:()=>u(e),"aria-label":`צפייה בסרטון ${e.title}`,children:[(0,U.jsx)(`img`,{src:`/catalog/${r}/${e.id}/poster.jpg`,alt:`פריים מתוך ${e.title}`,loading:`lazy`}),(0,U.jsx)(`span`,{className:`md-enhanced-play`,children:(0,U.jsx)(Fe,{size:22})}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[e.duration.toFixed(1),`s · `,e.width===e.height?`1:1`:e.width>e.height?`16:9`:`9:16`]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsxs)(`span`,{className:`md-badge green`,children:[n,` עריך`]})]}),(0,U.jsx)(`p`,{children:e.description}),(0,U.jsx)(Bl,{metadata:Ll(`${n===`v3`?`showcase`:`enhanced`}:${e.id}`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-btn primary`,disabled:!!a,onClick:()=>void d(e),children:a===e.id?`פותח...`:`פתיחה לעריכה ←`}),(0,U.jsxs)(`button`,{className:`md-open`,onClick:()=>u(e),children:[(0,U.jsx)(Fe,{size:12}),`צפייה`]})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`a`,{className:`md-open`,href:`/catalog/${r}/${e.id}/project.motiondesk.json`,download:`${e.id}.motiondesk.json`,children:`הורדת פרויקט מלא`}),(n===`v2`||e.configFormat===`motiondesk-config/v3`)&&(0,U.jsx)(`a`,{className:`md-open`,href:`/catalog/${r}/${e.id}/config.motiondesk-config.json`,download:`${e.id}.motiondesk-config.json`,children:`קונפיגורציית מקור`})]})]})]},e.id))}),l&&(0,U.jsx)(`div`,{className:`md-enhanced-modal`,onClick:()=>u(null),children:(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":l.title,onClick:e=>e.stopPropagation(),children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:l.title}),(0,U.jsx)(`button`,{type:`button`,className:`md-btn icon`,onClick:()=>u(null),"aria-label":`סגירת תצוגה`,children:(0,U.jsx)(gt,{size:18})})]}),(0,U.jsx)(`video`,{controls:!0,autoPlay:!0,playsInline:!0,src:`/catalog/${r}/${l.id}/preview.mp4`,poster:`/catalog/${r}/${l.id}/poster.jpg`}),(0,U.jsx)(`button`,{className:`md-btn primary`,disabled:!!a,onClick:()=>{d(l),u(null)},children:`פתיחה לעריכה ←`})]})})]})}var Kl=JSON.parse(`[{"id":"v4-wallet-launch-16x9","title":"NOVA — הארנק שעובד בשבילך","description":"השקת ארנק דיגיטלי עם אייקונים, ציר זמן מימין לשמאל, עמודות, טלפון והתראות. רקע aurora.","width":1920,"height":1080,"fps":24,"duration":26.4,"scenes":8,"configFormat":"motiondesk-config/v4","group":"showcase"},{"id":"v4-savings-goal-9x16","title":"יעד חיסכון — שלב אחרי שלב","description":"יעד חיסכון אנכי: דונאט, רשימת הרגלים, השוואה, ציר זמן, מטבעות וקונפטי. מצב lively.","width":1080,"height":1920,"fps":24,"duration":24.8,"scenes":8,"configFormat":"motiondesk-config/v4","group":"showcase"},{"id":"v4-trip-planner-1x1","title":"מתכננים טיול בלי לחץ","description":"תכנון טיול ריבועי: מסלול נמשך, כרטיסים עם אייקונים, ספירה לאחור, צ׳אט והתראות.","width":1080,"height":1080,"fps":24,"duration":23,"scenes":7,"configFormat":"motiondesk-config/v4","group":"showcase"},{"id":"v4-onboarding-beats-16x9","title":"פותחים חשבון בדקה — על הקצב","description":"פתיחת חשבון על הקצב: פריטים נוחתים על beats של 120BPM, סמן ממשק, ציר זמן וסרט טקסט.","width":1920,"height":1080,"fps":24,"duration":19,"scenes":6,"configFormat":"motiondesk-config/v4","group":"showcase"},{"id":"bank-01-car-choice","title":"איזה רכב מתאים לכם?","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · השוואה · רשימת סימון · סמן ממשק · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-02-holiday-budget","title":"חג בלי עומס","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · עמודות · רשימת סימון · הקפאה · סיום","width":1080,"height":1920,"fps":24,"duration":18.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-03-one-click","title":"הלוואה בלחיצה אחת","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · מסך טלפון · ציר זמן · סמן ממשק · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-04-career-course","title":"הצעד הבא בקריירה","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · כרטיסים · מונה · סמן ממשק · סיום","width":1080,"height":1080,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-05-five-years-new-word","title":"חמש שנים של העברות","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · מספר גדול · סרט טקסט · צ׳אט · קונפטי · סיום","width":1080,"height":1920,"fps":24,"duration":18.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-06-home-upgrade","title":"הבית מבקש שדרוג","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · כרטיסים · התקדמות · רשימת סימון · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-07-car-upgrade","title":"שדרוג בלי לעצור","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מסלול · מונה · סמן ממשק · סיום","width":1080,"height":1920,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-08-summer-dollar","title":"קיץ בלי הפתעות","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · מסלול · הקפאה · רשימת סימון · סיום","width":1920,"height":1080,"fps":24,"duration":19,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-09-wedding","title":"מזל טוב לזוג","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · השוואה · מטבעות · כרטיסים · סיום","width":1080,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-10-family-dinner-pay","title":"ארוחה משפחתית בלחיצה","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מסך טלפון · סמן ממשק · התראות · סיום","width":1920,"height":1080,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-11-youth-pitch-creator","title":"איך הייתי מפרסם חשבון לצעירים","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · סרט טקסט · מסך טלפון · ציר זמן · סיום","width":1080,"height":1920,"fps":24,"duration":19.2,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-12-gift-shares","title":"המניה הראשונה שלכם","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · מספר גדול · השוואה · גרף קו · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-13-suspicious-call","title":"שיחה חשודה?","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · מסך טלפון · רשימת סימון · הקפאה · סיום","width":1920,"height":1080,"fps":24,"duration":19,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-14-urgent-message","title":"בודקים לפני שלוחצים","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · התראות · ציטוט · רשימת סימון · סיום","width":1080,"height":1920,"fps":24,"duration":19.2,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-15-olympic-excellence","title":"מצוינות היא החלטה","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · ציר זמן · כרטיסים · קונפטי · סיום","width":1920,"height":1080,"fps":24,"duration":18.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-16-savings-pocket","title":"הכסף בצד מתחיל לעבוד","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · מספר גדול · ציר זמן · מסך טלפון · סיום","width":1080,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-17-students","title":"שווה להיות סטודנט","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מטבעות · רשימת סימון · כרטיסים · סיום","width":1080,"height":1920,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-18-phone-phobia","title":"חשבון בלי שיחות טלפון","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · צ׳אט · ציר זמן · מספר גדול · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-19-financial-fomo","title":"משקיעים בקצב שלכם","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · התראות · טיפוגרפיה קינטית · השוואה · רשימת סימון · סיום","width":1080,"height":1920,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-20-start-investing","title":"איך מתחילים להשקיע","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · ציר זמן · גרף קו · כרטיסים · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-21-market-timing","title":"אין עיתוי מושלם","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · גרף קו · הקפאה · רשימת סימון · סיום","width":1080,"height":1080,"fps":24,"duration":18.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-22-market-vs-realestate","title":"שוק ההון או נדל״ן","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · השוואה · כרטיסים · רשימת סימון · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-23-investing-for-all","title":"השקעות לא רק לעשירים","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · ציטוט · טיפוגרפיה קינטית · גרף קו · כרטיסים · סיום","width":1080,"height":1920,"fps":24,"duration":19.2,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-24-business-loan","title":"העסק ממשיך לרוץ","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · סמן ממשק · ציר זמן · כרטיסים · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-25-open-door","title":"הדלת פתוחה לכולם","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · ציטוט · רשימת סימון · קונפטי · סיום","width":1080,"height":1080,"fps":24,"duration":18.2,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-26-first-card-challenge","title":"אתגר הכרטיס הראשון","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · סמן ממשק · מספר גדול · סרט טקסט · סיום","width":1080,"height":1920,"fps":24,"duration":19.2,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-27-holiday-trip","title":"טיול בחג","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · מסלול · כרטיסים · הקפאה · סיום","width":1920,"height":1080,"fps":24,"duration":19,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-28-renew-home","title":"בית שמרגיש חדש","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · רשימת סימון · דונאט · סמן ממשק · סיום","width":1080,"height":1080,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-29-fastest-way-to-pay","title":"סורקים ומשלמים","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · השוואה · מסך טלפון · ציר זמן · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-30-forex-terminal","title":"החופשה מתחילה עכשיו","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מסך טלפון · מסלול · רשימת סימון · סיום","width":1080,"height":1920,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-31-youth-campaign-brief","title":"ככה הייתי מפרסמת","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · כרטיסים · צ׳אט · מסך טלפון · סיום","width":1920,"height":1080,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-32-dream-vacation","title":"החופשה כבר מחכה","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · מסלול · מונה · רשימת סימון · סיום","width":1080,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-33-mortgage-advice","title":"חושבים משכנתא","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · ציר זמן · מספר גדול · רשימת סימון · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-34-who-are-you-saver","title":"אתם מהחוסכים","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · השוואה · התקדמות · מסך טלפון · סיום","width":1080,"height":1920,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-35-strange-calls","title":"משהו נשמע מוזר?","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · כרטיסים · סמן ממשק · רשימת סימון · סיום","width":1080,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-36-one-shekel-flight","title":"שקל אחד, טיסה זוגית","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מטבעות · התראות · מסלול · סיום","width":1080,"height":1920,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-37-street-quiz-pay","title":"חידון רחוב","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · כרטיסים · קונפטי · סמן ממשק · סיום","width":1080,"height":1080,"fps":24,"duration":18.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-38-pension-compare","title":"פנסיה בעיניים פקוחות","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · השוואה · גרף קו · רשימת סימון · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-39-new-look-app","title":"מראה חדש","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מסך טלפון · כרטיסים · סרט טקסט · סיום","width":1080,"height":1920,"fps":24,"duration":19,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-40-interest-pocket","title":"מה לא עושים בשביל ריבית","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · התקדמות · מספר גדול · סמן ממשק · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-41-young-telenovela","title":"הגילוי של מריאנה","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · ציטוט · טיפוגרפיה קינטית · צ׳אט · מסך טלפון · סיום","width":1080,"height":1920,"fps":24,"duration":19.2,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-42-market-app","title":"מסחר מתקדם יותר","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · לוגו · מסך טלפון · גרף קו · התראות · סיום","width":1920,"height":1080,"fps":24,"duration":19.4,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-43-passover-sites","title":"פסח בארץ","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מסלול · רשימת סימון · כרטיסים · סיום","width":1080,"height":1080,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-44-end-of-excuses","title":"מעבירים בלי תירוצים","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · סרט טקסט · מסך טלפון · הקפאה · סיום","width":1920,"height":1080,"fps":24,"duration":18.4,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-45-good-reasons","title":"המון סיבות טובות","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · התראות · כרטיסים · סמן ממשק · סיום","width":1080,"height":1920,"fps":24,"duration":19.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-46-mortgage-hotline","title":"לא מתמודדים לבד","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · גרף קו · רשימת סימון · מסך טלפון · סיום","width":1920,"height":1080,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-47-financial-growth-center","title":"צומחים עם ידע","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · כרטיסים · ציר זמן · ציטוט · סיום","width":1080,"height":1080,"fps":24,"duration":19.4,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-48-judo-grand-prix","title":"הגרנד פרי מגיע","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · טיפוגרפיה קינטית · מסלול · כרטיסים · קונפטי · סיום","width":1920,"height":1080,"fps":24,"duration":18.6,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-49-currency-convert","title":"המרה בנוחות","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · השוואה · מסך טלפון · ציר זמן · סיום","width":1080,"height":1920,"fps":24,"duration":19.8,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"},{"id":"bank-50-salary-young","title":"חשבון אמיתי, כסף אמיתי","description":"גרסת v4 (מימין לשמאל, בנייה בשלבים) · פתיחה · התראות · מסך טלפון · טיפוגרפיה קינטית · סיום","width":1920,"height":1080,"fps":24,"duration":19,"scenes":5,"configFormat":"motiondesk-config/v3","group":"bank"}]`),ql=`v4`,Jl=e=>e.width===e.height?`1:1`:e.width>e.height?`16:9`:`9:16`,Yl=!0,Xl=e=>`/catalog/${ql}/${e}/poster.webp`;function Zl({items:e,onOpenProject:t}){let[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(null),[c,l]=(0,b.useState)(null);(0,b.useEffect)(()=>{l(null),o&&Yl&&u(o)},[o]),(0,b.useEffect)(()=>()=>{c&&URL.revokeObjectURL(c.url)},[c]);async function u(e){try{let t=await fetch(`/catalog/${ql}/${e.id}/project.motiondesk.json`);if(!t.ok)throw Error(`התצוגה לא זמינה כרגע`);let n=URL.createObjectURL(new Blob([dn(Qt(await t.text()))],{type:`text/html`}));l({id:e.id,url:n})}catch(e){a(e instanceof Error?e.message:String(e))}}async function d(e){r(e.id),a(``);try{let n=await fetch(`/catalog/${ql}/${e.id}/project.motiondesk.json`);if(!n.ok)throw Error(`קובץ התבנית לא זמין כרגע`);let r=Qt(await n.text()),i=new Date().toISOString();t({...r,id:Lt(`project`),revision:0,createdAt:i,updatedAt:i,templateId:`${ql}-${e.id}`})}catch(e){a(e instanceof Error?e.message:String(e))}finally{r(``)}}let f=[[`דוגמאות v4`,`אייקונים, aurora, בנייה בשלבים ותנועה אחרי הנחיתה`,e.filter(e=>e.group===`showcase`)],[`50 סרטוני ההשראה — גרסת v4`,`אותן קונפיגורציות, מימין לשמאל ובבנייה בשלבים`,e.filter(e=>e.group===`bank`)]];return(0,U.jsxs)(`section`,{"aria-label":`מושן v4`,children:[i&&(0,U.jsx)(`div`,{className:`md-create-error`,role:`alert`,children:i}),f.filter(([,,e])=>e.length).map(([e,t,r])=>(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:e}),(0,U.jsxs)(`small`,{className:`md-count`,children:[r.length,` סרטונים · `,t]})]}),(0,U.jsx)(`div`,{className:`md-grid`,children:r.map(e=>(0,U.jsxs)(`article`,{className:`md-template md-enhanced-card`,"data-v4-id":e.id,children:[(0,U.jsxs)(`button`,{type:`button`,className:`md-enhanced-preview`,onClick:()=>s(e),"aria-label":`צפייה בסרטון ${e.title}`,children:[(0,U.jsx)(`img`,{src:Xl(e.id),alt:`פריים מתוך ${e.title}`,loading:`lazy`}),(0,U.jsx)(`span`,{className:`md-enhanced-play`,children:(0,U.jsx)(Fe,{size:22})}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[e.duration.toFixed(1),`s · `,Jl(e)]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge green`,children:`v4 עריך`})]}),(0,U.jsx)(`p`,{children:e.description}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-btn primary`,disabled:!!n,onClick:()=>void d(e),children:n===e.id?`פותח...`:`פתיחה לעריכה ←`}),(0,U.jsxs)(`button`,{className:`md-open`,onClick:()=>s(e),children:[(0,U.jsx)(Fe,{size:12}),`צפייה`]})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`a`,{className:`md-open`,href:`/catalog/${ql}/${e.id}/project.motiondesk.json`,download:`${e.id}.motiondesk.json`,children:`הורדת פרויקט מלא`}),(0,U.jsx)(`a`,{className:`md-open`,href:`/catalog/${ql}/${e.id}/config.motiondesk-config.json`,download:`${e.id}.motiondesk-config.json`,children:`קונפיגורציית מקור`})]})]})]},e.id))})]},e)),o&&(0,U.jsx)(`div`,{className:`md-enhanced-modal`,onClick:()=>s(null),children:(0,U.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":o.title,onClick:e=>e.stopPropagation(),children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:o.title}),(0,U.jsx)(`button`,{type:`button`,className:`md-btn icon`,onClick:()=>s(null),"aria-label":`סגירת תצוגה`,children:(0,U.jsx)(gt,{size:18})})]}),c?.id===o.id?(0,U.jsx)(`iframe`,{sandbox:`allow-scripts`,title:`תצוגה חיה של ${o.title}`,src:c.url,style:{width:`100%`,aspectRatio:`${o.width}/${o.height}`,maxHeight:`70vh`,border:0,background:`#000`},onLoad:e=>e.currentTarget.contentWindow?.postMessage({type:`motiondesk:seek`,time:0,playing:!0},`*`)}):(0,U.jsx)(`img`,{src:Xl(o.id),alt:`טוען תצוגה חיה של ${o.title}`,style:{width:`100%`,maxHeight:`70vh`,objectFit:`contain`,background:`#000`}}),(0,U.jsx)(`button`,{className:`md-btn primary`,disabled:!!n,onClick:()=>{d(o),s(null)},children:`פתיחה לעריכה ←`})]})})]})}var Ql={format:`motiondesk-config/v2`,title:`חופשה בתנועה`,theme:`summer_ice`,aspectRatio:`16:9`,fps:30,scenes:[{type:`kinetic`,words:[`טיסה?`,`שופינג?`,`חופשה?`],beat:.5,duration:3},{type:`counter`,to:1e5,label:`משפחות`,ring:!0,duration:3,transition:`wipe`},{type:`phone`,title:`פועלים ג׳וניור`,rows:[[`אופניים`,`72%`]],cta:`להוסיף`,duration:3,transition:`push`},{type:`endcard`,product:`שער דולר קפוא`,cta:`להרשמה`,duration:3,transition:`zoom`}]},$l={studio:et,home:Ce,projects:_e,templates:Se,editor:ge,assets:xe,music:ke,prompts:he,settings:Ge},eu={studio:`סטודיו ליצירה`,home:`סביבת היצירה`,projects:`הפרויקטים שלי`,templates:`ספריית תבניות`,editor:`עורך Motion`,assets:`מדיה וקבצים`,music:`מוזיקה`,prompts:`פרומפטים ליצירה`,settings:`הגדרות הפרויקט`},Y=()=>crypto.randomUUID();function tu(){try{let e=localStorage.getItem(`motiondesk.project`);return e?Qt(e):null}catch{return null}}function nu(){return window.motionDesk?.loadLocalProject?Bt(`הפרויקט הראשון שלי`):tu()||Bt(`הפרויקט הראשון שלי`)}function ru(e){let t=Vt(e);if(e.mode===`imported-source`)try{t=bn(e.source?.current||``).duration}catch{}let n=e.scenes[0]?.duration||t;return Math.min(1.25,n*.55,Math.max(0,t-.1))}function iu(e){return e.flatMap(e=>[e,...iu(e.children||[])])}function au(e,t,n){return e.map(e=>e.id===t?{...e,...n}:e.children?{...e,children:au(e.children,t,n)}:e)}function ou(e){return e?.layers.find(e=>e.type===`text`&&e.name===`כותרת`)?.id||e?.layers.find(e=>e.type===`text`)?.id||e?.layers[0]?.id||``}function su(e){let t=()=>{let t=No(e);if(!t.config)throw Error(t.error||`הקונפיגורציה לא נבנתה`);return Ki(t.config).project},n;try{n=JSON.parse(e)}catch{return t()}let r=!!n&&typeof n==`object`&&!Array.isArray(n),i=r?n.format:void 0,a=e=>Array.isArray(e)&&e.some(e=>!!e&&typeof e==`object`&&!Array.isArray(e)&&typeof e.type==`string`&&!(`layers`in e));if(i===`motiondesk-config/v3`)try{return ur(lr(e))}catch{return t()}return i===`motiondesk-config/v4`||Array.isArray(n)&&a(n)||r&&i!==`motiondesk-config/v1`&&i!==`motiondesk-config/v2`&&!(`schemaVersion`in n)&&(a(n.scenes)||a(n.config?.scenes))?t():r&&`format`in n?ur(lr(e)):Qt(e)}function cu(e,t,n){let r=document.createElement(`a`);r.href=URL.createObjectURL(new Blob([e],{type:n})),r.download=t,r.click(),setTimeout(()=>URL.revokeObjectURL(r.href),1e3)}var lu=ur(lr(JSON.stringify(Ql)));function uu({title:e=`הדברים הגדולים
|
|
287
287
|
מתחילים כאן`,index:t=0,duration:n=15}){return(0,U.jsxs)(`div`,{className:`md-thumb `+[``,`blue`,`purple`,`green`][t%4],children:[(0,U.jsx)(`div`,{className:`md-artbrand`,children:`MOTION / STUDIO`}),(0,U.jsxs)(`div`,{className:`md-arttext`,children:[e.split(`
|
|
288
|
-
`).map((e,t)=>(0,U.jsxs)(`span`,{children:[e,(0,U.jsx)(`br`,{})]},t)),(0,U.jsx)(`small`,{className:`md-artsub`,children:`יוצרים. עורכים. מניעים רעיונות.`})]}),(0,U.jsx)(`span`,{className:`md-artfoot`,children:`MotionDesk`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[`00:`,String(n).padStart(2,`0`)]})]})}function X({children:e,onClick:t,primary:n=!1,small:r=!1,disabled:i=!1,title:a}){return(0,U.jsx)(`button`,{title:a,disabled:i,onClick:t,className:`md-btn`+(n?` primary`:``)+(r?` small`:``),children:e})}function du({html:e,title:t,onLoad:n,frameRef:r}){let i=(0,b.useMemo)(()=>URL.createObjectURL(new Blob([e],{type:`text/html`})),[e]);return(0,b.useEffect)(()=>()=>URL.revokeObjectURL(i),[i]),(0,U.jsx)(`iframe`,{ref:r,sandbox:`allow-scripts`,title:t,src:i,onLoad:n})}function fu({label:e,children:t,hint:n}){return(0,U.jsxs)(`label`,{className:`md-field`,children:[(0,U.jsx)(`span`,{children:e}),t,n&&(0,U.jsx)(`small`,{children:n})]})}function pu(){let[e,t]=(0,b.useState)(nu),[n,r]=(0,b.useState)(()=>new URLSearchParams(location.search).get(`page`)===`templates`?`templates`:`studio`),[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(``),[c,l]=(0,b.useState)(`content`),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(null),[m,h]=(0,b.useState)(``),[g,_]=(0,b.useState)(`הכול`),[v,y]=(0,b.useState)(``),[x,S]=(0,b.useState)(!1),[w,T]=(0,b.useState)(0),[E,D]=(0,b.useState)([]),[O,te]=(0,b.useState)([]),[k,ne]=(0,b.useState)(``),[re,ie]=(0,b.useState)(``),[ae,se]=(0,b.useState)(``),[ce,le]=(0,b.useState)(``),[ue,fe]=(0,b.useState)(`נשמר במחשב`),[ve,ye]=(0,b.useState)(!1),[be,A]=(0,b.useState)(!1),[j,Ce]=(0,b.useState)([]),we=(0,b.useRef)(null),Te=(0,b.useRef)(null),Ee=(0,b.useRef)(null),[Ae,Me]=(0,b.useState)(null),[Ne,Pe]=(0,b.useState)([]),[Re,ze]=(0,b.useState)([]),[Be,He]=(0,b.useState)(!1),[We,qe]=(0,b.useState)(null),[Je,Ye]=(0,b.useState)(``),[$e,et]=(0,b.useState)(``),[nt,rt]=(0,b.useState)(null),[at,ot]=(0,b.useState)(`הסרטון החדש שלי`),[ut,dt]=(0,b.useState)(`blank`),[ft,pt]=(0,b.useState)(`16:9`),[mt,ht]=(0,b.useState)(``),[_t,yt]=(0,b.useState)(`source`),[bt,xt]=(0,b.useState)(!1),[St,Ct]=(0,b.useState)(``),[wt,Tt]=(0,b.useState)(``),[Et,Dt]=(0,b.useState)(``),[Ot,kt]=(0,b.useState)({});(0,b.useEffect)(()=>{W(()=>import(`./catalog-Cdx5nbp0.js`).then(e=>Pe((e.halvaaStyles||[]).map(e=>({...e,name:e.title.he,previewTitle:e.title.he,category:e.series.title,duration:e.durationSeconds})))),[],import.meta.url).catch(()=>{})},[]),(0,b.useEffect)(()=>{let e=!0;return window.motionDesk?.listUserTemplates?.().then(t=>{e&&ze(t)}).catch(()=>{}),()=>{e=!1}},[]);let At=(0,b.useMemo)(()=>Yt(e),[e]),jt=(0,b.useMemo)(()=>{if(!e.source)return null;try{return bn(e.source.current)||null}catch{return null}},[e.source]),M=e.scenes.find(e=>e.id===i)||e.scenes[0],N=iu(M?.layers||[]).find(e=>e.id===o)||iu(M?.layers||[]).find(e=>e.id===ou(M)),Mt=e.mode===`imported-source`?jt?.duration||0:Vt(e),Nt=iu(M?.layers||[]).filter(e=>u||e.type===`text`);(0,b.useLayoutEffect)(()=>{let t=Ee.current,r=()=>{if(!t||!N||e.mode!==`authored`||n!==`editor`){Me(null);return}let r=t.querySelector(`[data-layer-id="${CSS.escape(N.id)}"]`);if(!r){Me(null);return}let i=t.getBoundingClientRect(),a=r.getBoundingClientRect();Me({left:a.left-i.left,top:a.top-i.top,width:a.width,height:a.height})};r();let i=new ResizeObserver(r);return t&&i.observe(t),window.addEventListener(`resize`,r),()=>{i.disconnect(),window.removeEventListener(`resize`,r)}},[N?.id,e,w,n]);let P=e=>{y(e),setTimeout(()=>y(``),4e3)},Pt=()=>window.motionDesk?.listProjects?.().then(Ce).catch(()=>{}),Ft=async e=>{let t={...e,id:Lt(`project`),revision:0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};return await window.motionDesk?.saveProject?.(Zt(t)),t},F=n=>{D(t=>[...t.slice(-39),e]),te([]),t({...n,revision:e.revision+1,updatedAt:new Date().toISOString()}),fe(`נשמר במחשב`)},It=t=>M&&F({...e,scenes:e.scenes.map(e=>e.id===M.id?{...e,...t}:e)}),Ut=e=>M&&N&&It({layers:au(M.layers,N.id,e)}),qt=t=>{if(!M||!N)return!1;try{return F(wr(e,M.id,N.id,t)),!0}catch(e){return P(`המספר לא השתנה: `+(e instanceof Error?e.message:String(e))),!1}},Jt=t=>{if(!M)return!1;try{let n=Sr(e,M.id,t);return n!==e&&F(n),!0}catch(e){return P(`משך הסצנה לא השתנה: `+(e instanceof Error?e.message:String(e))),!1}},Xt=()=>{E.length&&(te(t=>[e,...t]),t(E[E.length-1]),D(E.slice(0,-1)))},$t=()=>{O.length&&(D(t=>[...t,e]),t(O[0]),te(O.slice(1)))};(0,b.useEffect)(()=>{let e=!0,n=window.motionDesk;if(!n?.loadLocalProject)ye(!0);else return n.loadLocalProject().then(n=>{if(e){if(n){let e=Qt(n);t(e),T(ru(e))}ye(!0),Pt()}}).catch(()=>{e&&(fe(`לא ניתן לטעון פרויקט שמור`),ye(!0))}),()=>{e=!1}},[]),(0,b.useEffect)(()=>{if(!ve)return;let t;try{t=Zt(e),window.motionDesk?.saveLocalProject||localStorage.setItem(`motiondesk.project`,t)}catch{fe(`לא ניתן לשמור פרויקט לא תקין`);return}let n=window.motionDesk;if(!n?.saveLocalProject){fe(`נשמר במחשב`);return}fe(`שומר במחשב...`);let r=setTimeout(()=>{n.saveLocalProject(t).then(()=>{fe(`נשמר במחשב`),Pt()}).catch(()=>fe(`השמירה בדיסק נכשלה — יש להוריד קובץ פרויקט`))},500);return()=>clearTimeout(r)},[e,ve]),(0,b.useEffect)(()=>{let e=e=>{if(!(e.metaKey||e.ctrlKey)||n!==`editor`)return;let t=e.target,r=!!t&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName));e.code===`KeyS`&&(e.preventDefault(),un(`project`)),e.code===`KeyZ`&&!r&&(e.preventDefault(),e.shiftKey?$t():Xt())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[e,E,O,n]),(0,b.useEffect)(()=>{if(!x||e.mode===`imported-source`&&window.motionDesk?.createSourceSession)return;let t=performance.now(),n=setInterval(()=>{let e=performance.now();T(n=>{let r=n+(e-t)/1e3;return t=e,r>=Mt?(S(!1),0):r})},33);return()=>clearInterval(n)},[x,Mt,e.mode]),(0,b.useLayoutEffect)(()=>{if(e.mode!==`authored`)return;let t=Ht(e,w)?.scene;t&&t.id!==i&&(a(t.id),s(ou(t)))},[e,w,i]),(0,b.useEffect)(()=>{try{Te.current?.contentWindow?.postMessage({type:`motiondesk:seek`,time:w,playing:x},`*`)}catch{}},[w,x]);let en=(t,n)=>{S(!1);try{let r=xn(e,[{fieldId:t,value:n}],jt?.fingerprint);r&&F(r)}catch(e){P(`לא ניתן לעדכן את המקור: `+String(e))}},tn=e.mode===`imported-source`&&!!e.source?.sourceUrl&&!!window.motionDesk?.sourceFrame,rn=e.mode===`imported-source`&&!!e.source?.sourceUrl&&!!window.motionDesk?.createSourceSession,cn=(0,b.useMemo)(()=>{try{return e.mode===`imported-source`?sn(e.source?.current||``):dn(e)}catch{return`<body style="font-family:Arial;direction:rtl">התצוגה אינה זמינה</body>`}},[e]);function ln(t){t&&(F(t),a(t.scenes[0]?.id||``),s(ou(t.scenes[0]))),d(!1),r(`editor`),T(ru(t||e)),S(!1),le(``)}async function un(t){try{let n=t===`project`?Zt(e):e.mode===`imported-source`?e.source?.current||``:dn(e),r=window.motionDesk,i=e.title+(t===`project`?r?.saveText?`.motiondesk`:`.motiondesk.json`:`.html`);r?.saveText?await r.saveText({kind:t,suggestedName:i,content:n})&&P(t===`project`?`תיקיית הפרויקט הניידת נשמרה בהצלחה`:`הקובץ נשמר בהצלחה`):(cu(n,i,t===`project`?`application/json`:`text/html`),P(`הקובץ הורד למחשב`))}catch(e){P(`השמירה נכשלה: `+String(e))}}async function pn(){try{let e=await window.motionDesk?.openExample();e?.content&&(ln(Qt(e.content)),p(null),P(`דוגמת הבנק נפתחה לעריכה`))}catch(e){P(`לא ניתן לפתוח את הדוגמה: `+String(e))}}async function mn(){try{let e=await window.motionDesk?.openProjectFolder();e?.content&&(ln(Qt(e.content)),p(null),P(`תיקיית הפרויקט נפתחה`))}catch(e){P(`לא ניתן לפתוח את הפרויקט: `+String(e))}}async function hn(t){if(!t)return;let n=e,i=`assets`,o=0;for(let e of Array.from(t))try{if(/\.zip$/i.test(e.name)){if(!window.motionDesk?.importTemplateZip)throw Error(`ייבוא ZIP זמין בהתקנה המקומית של MotionDesk`);let t=await window.motionDesk.importTemplateZip(e);ze(e=>[t,...e]),n=Qt((await window.motionDesk.openCatalogTemplate(t.id)).content),i=`editor`}else if(/\.(json|motiondesk)$/i.test(e.name))n=await Ft(su(await e.text())),i=`editor`;else if(/\.html?$/i.test(e.name)){let t=await e.text();if(n=fn(t)||an(e.name,t),n.source){let e=bn(n.source.current);n={...n,canvas:{...n.canvas,width:e.width,height:e.height}}}n=await Ft(n),i=`editor`}else{let t=await new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=n,r.readAsDataURL(e)}),r=e.type.startsWith(`video`)?`video`:e.type.startsWith(`audio`)?`audio`:`image`,i;(r===`audio`||r===`video`)&&(i=await new Promise(e=>{let n=document.createElement(r);n.preload=`metadata`,n.onloadedmetadata=()=>e(n.duration),n.onerror=()=>e(void 0),n.src=t}));let a={id:Y(),name:e.name,kind:r,src:t,mime:e.type,duration:i};n={...n,assets:[...n.assets,a]}}o++}catch(e){P(`לא ניתן לפתוח: `+String(e))}o&&(Pt(),F(n),a(n.scenes[0]?.id||``),s(ou(n.scenes[0])),T(ru(n)),S(!1),r(i),P(o===1?`הקובץ נטען לפרויקט ולתבניות`:`${o} קבצים נטענו לפרויקט`),p(null)),we.current&&(we.current.value=``)}async function gn(){let t=window.motionDesk;if(!t?.openFiles)we.current?.click();else try{let n=await t.openFiles(),i=e,o=`assets`;for(let e of n)if((e.kind===`project`||e.kind===`config`)&&e.content)i=await Ft(su(e.content)),o=`editor`;else if(e.kind===`html`&&e.content){if(i=fn(e.content)||an(e.name,e.content),i.source){let t=bn(i.source.current);i={...i,canvas:{...i.canvas,width:t.width,height:t.height},source:{...i.source,...e.sourceUrl?{sourceUrl:e.sourceUrl}:{}}}}i=await Ft(i),o=`editor`}else if(e.url){let n=(e.kind===`video`||e.kind===`audio`)&&t.probeMedia?await t.probeMedia(e.url):{},r={id:Y(),name:e.name,kind:e.kind,src:e.url,mime:e.mime||``,duration:n.duration};i={...i,assets:[...i.assets,r]}}n.length&&(Pt(),F(i),a(i.scenes[0]?.id||``),s(ou(i.scenes[0])),T(ru(i)),S(!1),r(o),P(`${n.length} קבצים נטענו לפרויקט`)),p(null)}catch(e){P(String(e))}}function _n(){try{let e=su(wt);Dt(``),ln(e),p(null),P(`הקונפיגורציה הפכה לפרויקט עריך`)}catch(e){Dt(e instanceof Error?e.message:String(e))}}function vn(e,t){if(!M)return;let n=Rt(e,{text:e===`text`?`הטקסט שלך כאן`:void 0,name:e===`text`?`כותרת חדשה`:e===`shape`?`צורה חדשה`:`תמונה`,x:200,y:220,width:e===`text`?1100:500,height:e===`text`?180:400,assetId:t,color:e===`shape`?`#e30613`:`#ffffff`,...e===`path`?{pathData:`M 0 100 C 150 0 350 200 500 100`,stroke:`#e30613`,strokeWidth:12}:{},...e===`group`?{name:`קבוצה חדשה`,children:[Rt(`shape`,{name:`רקע`,x:0,y:0,width:500,height:400,color:`#e30613`,start:0,duration:5}),Rt(`text`,{name:`טקסט בקבוצה`,text:`הטקסט שלך`,x:30,y:140,width:440,height:120,fontSize:48,start:0,duration:5})]}:{}});It({layers:[...M.layers,n]}),s(n.id),l(`content`),r(`editor`)}function yn(t,n){if(e.mode!==`authored`||!M)return P(`כדי להוסיף נכס, פתחו קודם פרויקט Motion בעורך`),!1;let i=Math.round(Math.min(e.canvas.width,e.canvas.height)*.34),a=gl(t,n,{x:e.canvas.width/2,y:e.canvas.height/2,size:i,duration:M.duration});return It({layers:[...M.layers,a]}),s(a.id),d(!0),A(!1),r(`editor`),!0}function L(){let t=zt(`סצנה חדשה`,5),n=Vt(e);F({...e,scenes:[...e.scenes,t]}),a(t.id),s(ou(t)),T(n+Math.min(1.1,t.duration*.45)),S(!1)}async function Sn(e,t,n){try{if(_t===`source`){if(e.sourceProject?.editableSourceAvailable!==!0)throw Error(`מקור עריך אינו זמין בסגנון הזה. אפשר לבחור תבנית פתיחה בנפרד.`);if(!window.motionDesk?.openCatalogTemplate)throw Error(`לפתיחת המקור המלא יש להשתמש בשרת Web המקומי או באפליקציית המחשב.`);let n=Qt((await window.motionDesk.openCatalogTemplate(e.id)).content);if(n.mode!==`imported-source`||!n.source)throw Error(`לא נמצא מקור HyperFrames עריך בסגנון הזה.`);let r=new Date().toISOString();return ln({...structuredClone(n),id:Y(),title:t||e.name,templateId:e.id,revision:0,createdAt:r,updatedAt:r}),P(`נפתח עותק עבודה של מקור HyperFrames`),!0}let r=(await W(()=>import(`./catalog-Cdx5nbp0.js`),[],import.meta.url)).styleSeedToProject(e);if(r.title=t||e.name,n){let[e,t]=n===`9:16`?[1080,1920]:n===`1:1`?[1080,1080]:[1920,1080],i=e/r.canvas.width,a=t/r.canvas.height;r.scenes.forEach(e=>e.layers.forEach(e=>{e.x*=i,e.y*=a,e.width*=i,e.height*=a,e.fontSize=Math.round(e.fontSize*Math.min(i,a))})),r.canvas={...r.canvas,width:e,height:t}}return ln(r),!0}catch(e){return Ct(e instanceof Error?e.message:String(e)),!1}}function Cn(e,t=`source`){dt(e?`gallery`:`blank`),ot(e?.name||`הסרטון החדש שלי`),ht(e?.id||Ne[0]?.id||``),pt(e?.aspectRatio||`16:9`),yt(t),Ct(``),p(`new`)}function wn(e){Cn(e,`source`)}async function Tn(e){try{if(!window.motionDesk?.openCatalogTemplate)throw Error(`התבנית זמינה בהתקנה המקומית בלבד`);let t=Qt((await window.motionDesk.openCatalogTemplate(e.id)).content);if(t.mode!==`imported-source`||!t.source)throw Error(`מקור התבנית אינו תקין`);let n=new Date().toISOString();ln({...structuredClone(t),id:Y(),title:e.title,revision:0,createdAt:n,updatedAt:n}),p(null),P(`נפתח עותק עריך של תבנית ה־ZIP`)}catch(e){P(`פתיחת התבנית נכשלה: `+String(e))}}let En=e=>!!(e.sourceProject&&/^whatsapp-(?:121656|122305|122338)$/.test(e.id));async function Dn(e,t){try{if(!En(e)||!window.motionDesk?.openCatalogTemplate)throw Error(`מקור HTML עריך אינו זמין לסרטון הזה`);let n=Qt((await window.motionDesk.openCatalogTemplate(e.id)).content);if(n.mode!==`imported-source`||!n.source)throw Error(`קובץ המקור אינו תקין`);let r=new Date().toISOString();return ln({...structuredClone(n),id:Y(),title:t||e.title,templateId:e.id,revision:0,createdAt:r,updatedAt:r}),p(null),P(e.sourceKind===`editable-reconstruction`?`נפתח שחזור HTML עריך של הסרטון`:`נפתח עותק עריך של מקור ה־HTML`),!0}catch(e){return Ct(e instanceof Error?e.message:String(e)),P(`פתיחת מקור ה־HTML נכשלה: `+String(e)),!1}}async function On(){xt(!0),Ct(``);try{let[e,t]=ft===`9:16`?[1080,1920]:ft===`1:1`?[1080,1080]:[1920,1080];if(ut===`gallery`){let e=ys.find(e=>`sample-${e.id}`===mt);if(e){if(_t===`source`&&En(e)){if(!await Dn(e,at.trim()||e.title))return}else{let t=Ss(e);t.title=at.trim()||e.title,ln(t)}}else{let e=El.find(e=>`bank-${e.id}`===mt)||Ol.find(e=>`starter-${e.id}`===mt);if(e){let t=ur(e.config);t.title=at.trim()||e.title,ln(t)}else{let e=Ne.find(e=>e.id===mt);if(!e){Ct(`בחר תבנית מהגלריה`);return}if(!await Sn(e,at.trim()||`הסרטון החדש שלי`,ft))return}}}else{let n=zt(`פתיחה`,5);n.layers=[Rt(`text`,{name:`כותרת פתיחה`,text:`הסיפור שלך מתחיל כאן`,x:e*.1,y:t*.35,width:e*.8,height:t*.25,fontSize:Math.round(e*(e<t?.075:.055)),textAlign:`center`,duration:5})],ln(Bt(at.trim()||`הסרטון החדש שלי`,{canvas:{width:e,height:t,fps:30},scenes:[n]}))}p(null)}finally{xt(!1)}}let kn=Ne.filter(e=>(g===`הכול`||(e.categoryLabel||e.category)===g)&&(!m||JSON.stringify([e.name,e.title,e.category,e.tags,Ll(e.id).tags]).toLowerCase().includes(m.toLowerCase()))),An=ys.filter(e=>(g===`הכול`||g===`הסרטונים שלי`)&&(!m||JSON.stringify([e.title,e.originalFilename,Ll(`sample:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),jn=El.filter(e=>(g===`הכול`||g===`השראה מערוץ הבנק`)&&(!m||JSON.stringify([e.title,e.category,e.description,Ll(`bank:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),Mn=Ol.filter(e=>(g===`הכול`||g===`מצגות תנועה חדשות`)&&(!m||JSON.stringify([e.title,e.category,e.description,Ll(`starter:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),Nn=Wl.filter(e=>(g===`הכול`||g===`מושן v3 מתקדם`)&&(!m||JSON.stringify([e.title,e.description,Ll(`showcase:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),Pn=Kl.filter(e=>(g===`הכול`||g===`מושן v4`)&&(!m||JSON.stringify([e.title,e.description]).toLowerCase().includes(m.toLowerCase()))),Fn=Ul.filter(e=>(g===`הכול`||g===`מושן v2 משופר`)&&(!m||JSON.stringify([e.title,e.description,Ll(`enhanced:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),In=Re.filter(e=>(g===`הכול`||g===`תבניות שייבאתי`)&&(!m||JSON.stringify([e.title,Rl(e).tags]).toLocaleLowerCase().includes(m.toLocaleLowerCase()))),Ln=Ne.find(e=>e.id===mt),Rn=ys.find(e=>`sample-${e.id}`===mt),zn=El.find(e=>`bank-${e.id}`===mt),R=Ol.find(e=>`starter-${e.id}`===mt),Bn=zn||R,z=Rn?En(Rn):Ln?.sourceProject?.editableSourceAvailable===!0,B=[`הכול`,`מושן v4`,`מושן v3 מתקדם`,`מושן v2 משופר`,`תבניות שייבאתי`,`מצגות תנועה חדשות`,`הסרטונים שלי`,`השראה מערוץ הבנק`,...Array.from(new Set(Ne.map(e=>e.categoryLabel||e.category).filter(Boolean)))],Vn=(0,U.jsx)(`div`,{className:`md-grid`,children:In.map((e,t)=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsxs)(`div`,{className:`md-user-thumb`,children:[(0,U.jsx)(uu,{title:e.title,index:t+1,duration:Math.round(e.duration)}),(0,U.jsx)(`img`,{src:`/api/template/${e.id}/poster`,alt:`תצוגה מתוך ${e.title}`,loading:`lazy`,onError:e=>{e.currentTarget.style.display=`none`}})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge green`,children:`ZIP עריך`})]}),(0,U.jsxs)(`p`,{children:[e.fileCount,` קובצי מקור ונכסים · `,e.width,`×`,e.height,` · `,e.duration.toFixed(1),` שניות`]}),(0,U.jsx)(Bl,{metadata:Rl(e)}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>void Tn(e),children:`פתיחת עותק לעריכה ←`})]})]},e.id))}),Hn=e=>(0,U.jsx)(`div`,{className:`md-grid`,children:e.map(e=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsxs)(`div`,{className:`md-poster`,children:[(0,U.jsx)(`img`,{src:e.source.posterUrl,alt:e.name,loading:`lazy`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[e.aspectRatio,` · `,e.durationSeconds,`s`]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.name||e.title?.he}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.categoryLabel||e.category||`Motion`})]}),(0,U.jsx)(`p`,{children:e.description||`תבנית עריכה מובנית עם סצנות, תוכן ותנועה`}),(0,U.jsx)(Bl,{metadata:Ll(e.id)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsxs)(`button`,{className:`md-open`,onClick:()=>{rt(e),p(`reference`)},children:[(0,U.jsx)(Fe,{size:10}),`צפייה ברפרנס`]}),(0,U.jsx)(`button`,{className:`md-open`,disabled:e.sourceProject?.editableSourceAvailable!==!0,onClick:()=>wn(e),children:e.sourceProject?.editableSourceAvailable===!0?`עריכת המקור ←`:`מקור עדיין לא זמין`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge `+(e.sourceProject?.editableSourceAvailable===!0?`green`:``),children:e.sourceProject?.editableSourceAvailable===!0?`מקור HyperFrames`:`תבנית פתיחה זמינה`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>Cn(e,`seed`),children:`תבנית פתיחה`})]})]})]},e.id))}),V=(0,U.jsx)(`div`,{className:`md-grid md-sample-grid`,children:An.map(e=>{let t=En(e),n=e.sourceKind===`editable-reconstruction`;return(0,U.jsxs)(`article`,{className:`md-template md-sample-card`,children:[(0,U.jsxs)(`div`,{className:`md-poster`,children:[(0,U.jsx)(`img`,{src:`./reference/user-samples/${e.poster}`,alt:e.title,loading:`lazy`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[e.width<e.height?`9:16`:`16:9`,` · `,e.durationSeconds,`s`]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge `+(t?`green`:`red`),children:t?n?`HTML משוחזר`:`מקור HTML`:`MP4`})]}),(0,U.jsx)(`p`,{children:t?n?`שחזור HTML עריך של הכותרות והגרפיקה, לצד קטעי צילום מן הסרטון.`:`מקור HTML שנמצא במחשב והותאם לעריכת טקסט, צורות ותנועה.`:`תבנית MP4 לחיתוך, פיצול ושינוי שמע המקור.`}),(0,U.jsx)(Bl,{metadata:Ll(`sample:${e.id}`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsxs)(`button`,{className:`md-open`,onClick:()=>{rt({name:e.title,description:e.originalFilename,source:{videoUrl:`motiondesk-media://sample-${e.id}`,posterUrl:`./reference/user-samples/${e.poster}`},sample:e}),p(`reference`)},children:[(0,U.jsx)(Fe,{size:10}),`צפייה בסרטון`]}),t&&(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>void Dn(e),children:`עריכת HTML ←`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge`,children:`MP4 מקורי`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>{ln(Ss(e)),P(`נפתחה תבנית MP4 לעריכה בסיסית`)},children:`עריכת MP4 בסיסית`})]})]})]},e.id)})}),H=(0,U.jsx)(`div`,{className:`md-grid`,children:jn.map(e=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsxs)(`div`,{className:`md-thumb md-bank-preview`,children:[(0,U.jsx)(`img`,{src:`/catalog/bank-previews/${e.id}.webp`,alt:`פריים מתוך ${e.title}`,loading:`lazy`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[`00:`,String(Math.round(e.config.scenes.reduce((e,t)=>e+t.duration,0))).padStart(2,`0`)]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.category})]}),(0,U.jsx)(`p`,{children:e.description}),(0,U.jsx)(Bl,{metadata:Ll(`bank:${e.id}`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(ur(e.config)),children:`פתיחה לעריכה ←`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>cu(JSON.stringify(e.config,null,2),`${e.id}.json`,`application/json`),children:`הורדת JSON`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge`,children:`טיוטת השראה · v1`}),(0,U.jsx)(`a`,{className:`md-open`,href:e.sourceUrl,target:`_blank`,rel:`noopener noreferrer`,children:`סרטון ההשראה ↗`})]})]})]},e.id))}),Un=(0,U.jsx)(`div`,{className:`md-grid`,children:Mn.map((e,t)=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(uu,{title:e.title,index:t+1,duration:Math.round(e.config.scenes.reduce((e,t)=>e+t.duration,0))}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.category})]}),(0,U.jsx)(`p`,{children:e.description}),(0,U.jsx)(Bl,{metadata:Ll(`starter:${e.id}`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(ur(e.config)),children:`פתיחה לעריכה ←`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>cu(JSON.stringify(e.config,null,2),`${e.id}.json`,`application/json`),children:`הורדת JSON`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge green`,children:`טקסט ותנועה עריכים`}),(0,U.jsx)(`span`,{className:`md-badge`,children:`קובץ מידע עצמאי`})]})]})]},e.id))}),Wn=(0,U.jsxs)(`div`,{className:`md-pagehead`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`div`,{className:`md-eyebrow`,children:`סביבת היצירה שלך`}),(0,U.jsx)(`h1`,{children:eu[n]}),(0,U.jsx)(`p`,{children:n===`templates`?`מתחילים מרעיון טוב. ממשיכים עם תבנית שאפשר לשנות.`:n===`assets`?`קבצי המדיה ששמורים בתוך הפרויקט שלך.`:n===`music`?`מוזיקות הרקע מהתבניות שלך. האזנה, בחירה והוספה לסרטון.`:n===`prompts`?`מנסחים רעיון, מעתיקים פרומפט ומייבאים קונפיגורציה עריכה.`:`יוצרים ועורכים פרויקטים, סצנות ותנועה במקום אחד.`})]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>Cn(),children:[(0,U.jsx)(Ie,{size:15}),`פרויקט חדש`]})]});return(0,U.jsxs)(`div`,{className:`md-app`,children:[(0,U.jsx)(`input`,{ref:we,type:`file`,accept:`.zip,.html,.htm,.json,.motiondesk,image/*,video/*,audio/*`,hidden:!0,multiple:!0,onChange:e=>hn(e.target.files)}),(0,U.jsxs)(`nav`,{className:`md-nav`,children:[(0,U.jsxs)(`div`,{className:`md-logo`,children:[`Motion`,(0,U.jsx)(`span`,{children:`Desk`})]}),(0,U.jsx)(`div`,{className:`md-nav-sub`,children:`רעיונות מקבלים תנועה.`}),(0,U.jsx)(`div`,{className:`md-nav-label`,children:`סביבת העבודה`}),[`studio`,`home`,`projects`,`templates`,`editor`,`assets`,`music`,`prompts`].filter(e=>e!==`templates`&&e!==`music`).map(e=>{let t=$l[e];return(0,U.jsxs)(`button`,{className:`md-nav-item `+(n===e?`active`:``),onClick:()=>{S(!1),r(e),h(``)},children:[(0,U.jsx)(t,{size:17}),(0,U.jsx)(`span`,{children:eu[e]})]},e)}),(0,U.jsx)(`div`,{className:`md-nav-label`,children:`הפרויקט`}),(0,U.jsxs)(`button`,{className:`md-nav-item `+(n===`settings`?`active`:``),onClick:()=>r(`settings`),children:[(0,U.jsx)(Ge,{size:17}),(0,U.jsx)(`span`,{children:`הגדרות`})]}),(0,U.jsxs)(`div`,{className:`md-nav-bottom`,children:[(0,U.jsx)(`div`,{className:`md-avatar`,children:`א`}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`b`,{children:`המרחב של אורן`}),(0,U.jsx)(`small`,{children:`קבצים מקומיים · עבודה אישית`})]})]})]}),(0,U.jsxs)(`div`,{className:`md-shell`,children:[(0,U.jsxs)(`header`,{className:`md-topbar`,children:[(0,U.jsxs)(`div`,{className:`md-crumb`,children:[(0,U.jsx)(`span`,{children:`המרחב שלי`}),(0,U.jsx)(oe,{size:12}),(0,U.jsx)(`strong`,{children:eu[n]})]}),(0,U.jsxs)(`div`,{className:`md-local`,children:[(0,U.jsx)(`i`,{className:`md-dot`}),`כל השינויים נשמרים מקומית`,(0,U.jsx)(De,{size:14})]})]}),n===`editor`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-editor-head`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`input`,{"aria-label":`שם הפרויקט`,className:`md-projecttitle`,value:e.title,onChange:t=>F({...e,title:t.target.value})}),(0,U.jsxs)(`div`,{className:`md-project-meta`,children:[(0,U.jsx)(`span`,{className:`md-dot`}),ue,(0,U.jsx)(`span`,{children:`·`}),(0,U.jsx)(`span`,{children:e.mode===`authored`?`פרויקט Motion`:e.mode===`imported-source`?`קובץ מקור HTML`:`וידאו שטוח`}),(0,U.jsx)(`span`,{children:`·`}),(0,U.jsxs)(`bdi`,{children:[e.canvas.width,` × `,e.canvas.height]})]})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(`button`,{className:`md-btn icon`,"aria-label":`ביטול פעולה`,disabled:!E.length,onClick:Xt,children:(0,U.jsx)(ct,{size:15})}),(0,U.jsx)(`button`,{className:`md-btn icon`,"aria-label":`ביצוע חוזר`,disabled:!O.length,onClick:$t,children:(0,U.jsx)(Le,{size:15})}),(0,U.jsxs)(X,{onClick:()=>p(`import`),children:[(0,U.jsx)(lt,{size:14}),`ייבוא`]}),(0,U.jsxs)(X,{onClick:()=>un(`project`),children:[(0,U.jsx)(Ve,{size:14}),`שמירה`]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>p(`export`),children:[(0,U.jsx)(me,{size:14}),`ייצוא`]})]})]}),(0,U.jsxs)(`div`,{className:`md-editor-layout`,children:[(0,U.jsxs)(`aside`,{className:`md-scenes`,children:[(0,U.jsxs)(`div`,{className:`md-sceneshead`,children:[(0,U.jsx)(`h3`,{className:`md-paneltitle`,children:`סצנות`}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.scenes.length})]}),e.scenes.map((t,n)=>(0,U.jsxs)(`button`,{className:`md-scene `+(t.id===M?.id?`active`:``),onClick:()=>{a(t.id),s(ou(t)),T(e.scenes.slice(0,n).reduce((e,t)=>e+t.duration,0)+Math.min(1.1,t.duration*.45))},children:[(0,U.jsx)(`div`,{className:`md-scene-preview`,children:(0,U.jsx)(Es,{project:{...e,scenes:[t],mediaTracks:[]},sceneStartOffset:e.scenes.slice(0,n).reduce((e,t)=>e+t.duration,0),time:Math.min(.7,t.duration/2)})}),(0,U.jsxs)(`div`,{className:`md-scene-meta`,children:[(0,U.jsxs)(`b`,{children:[n+1,`. `,t.name]}),(0,U.jsxs)(`bdi`,{children:[Math.round(t.duration*100)/100,`s`]})]})]},t.id)),e.mode===`flat-video`&&(0,U.jsx)(X,{small:!0,onClick:()=>r(`assets`),children:`חיתוך, פיצול ושמע ←`}),e.mode===`authored`&&(0,U.jsxs)(X,{small:!0,onClick:L,children:[(0,U.jsx)(Ie,{size:13}),`הוספת סצנה`]}),e.mode===`imported-source`&&(0,U.jsxs)(X,{small:!0,onClick:()=>{ne(e.source?.current||``),p(`source`)},children:[(0,U.jsx)(de,{size:13}),`עריכת מקור`]})]}),(0,U.jsxs)(`section`,{className:`md-workspace`,children:[e.mode===`imported-source`&&e.mediaTracks.filter(e=>e.type===`audio`).flatMap(t=>t.clips.map(n=>{let r=e.assets.find(e=>e.id===n.assetId);return r?(0,U.jsx)(Cs,{src:xs(r.src),time:n.in+w-n.start,active:w>=n.start&&w<n.start+n.out-n.in,playing:x,muted:t.muted||n.muted,volume:n.volume},n.id):null})),(0,U.jsxs)(`div`,{className:`md-canvas-tools`,children:[(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(Oe,{size:13}),(0,U.jsx)(`span`,{children:M?.name||`תצוגת מקור`})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(`span`,{children:[e.canvas.fps,` FPS`]}),(0,U.jsx)(`span`,{children:`·`}),(0,U.jsx)(`span`,{children:`התאמה למסך`}),(0,U.jsx)(vt,{size:13})]})]}),(0,U.jsx)(`div`,{className:`md-canvaswell`,children:(0,U.jsxs)(`div`,{ref:Ee,className:`md-canvasstage`,style:{aspectRatio:`${e.canvas.width}/${e.canvas.height}`,width:e.canvas.width<e.canvas.height?`min(100%, 280px)`:e.canvas.width===e.canvas.height?`min(100%, 450px)`:`100%`},children:[e.mode===`imported-source`?rn?(0,U.jsx)(Qr,{sourceUrl:e.source.sourceUrl,html:e.source.current,time:w,playing:x,selectedFieldId:ce,report:jt,onTime:T,onEnded:()=>S(!1),onFieldSelect:e=>{S(!1),le(e)},onPause:()=>S(!1)}):tn?(0,U.jsx)(Zr,{sourceUrl:e.source.sourceUrl,html:e.source.current,time:w}):ks(e.source?.current||``)?(0,U.jsx)(Us,{frameRef:Te,title:`תצוגת HyperFrames`,html:e.source.current,start:{t:w}}):(0,U.jsx)(du,{frameRef:Te,title:`תצוגת פרויקט`,html:cn}):(0,U.jsx)(Es,{project:e,time:w,playing:x,onSelect:t=>{a(Ht(e,w)?.scene.id||``),s(t),Ht(e,w)?.scene.layers.find(e=>e.id===t)?.type!==`text`&&d(!0),l(`content`),requestAnimationFrame(()=>document.getElementById(`md-selected-layer-text`)?.focus())}}),N&&e.mode===`authored`&&Ae&&(0,U.jsx)(`div`,{className:`md-selectoverlay`,style:Ae})]})}),(0,U.jsxs)(`div`,{className:`md-playbar`,children:[(0,U.jsxs)(`bdi`,{children:[w.toFixed(2),` / `,Mt.toFixed(2)]}),(0,U.jsxs)(`div`,{className:`md-playcontrols`,children:[(0,U.jsx)(`button`,{"aria-label":`להתחלה`,onClick:()=>{S(!1),T(0)},children:(0,U.jsx)(Xe,{size:14})}),(0,U.jsx)(`button`,{className:`md-play`,disabled:e.mode===`imported-source`&&!rn&&!ks(e.source?.current||``),title:e.mode===`imported-source`&&!rn&&!ks(e.source?.current||``)?`תנועה זמינה בתצוגת המקור המבודדת`:void 0,"aria-label":x?`השהיה`:`ניגון`,onClick:()=>S(!x),children:x?(0,U.jsx)(je,{size:13}):(0,U.jsx)(Fe,{size:13})}),(0,U.jsx)(`button`,{"aria-label":`לסוף`,onClick:()=>{S(!1),T(Mt)},children:(0,U.jsx)(Ze,{size:14})})]}),(0,U.jsxs)(`span`,{children:[e.canvas.width,`:`,e.canvas.height]})]}),(0,U.jsxs)(`div`,{className:`md-timeline`,children:[(0,U.jsxs)(`div`,{className:`md-timeheader`,children:[(0,U.jsx)(`b`,{className:`md-paneltitle`,children:`ציר הזמן`}),(0,U.jsxs)(`span`,{className:`md-badge`,children:[Mt.toFixed(1),` שניות`]})]}),(0,U.jsx)(`div`,{className:`md-timeruler`,children:Array.from({length:7},(e,t)=>(0,U.jsxs)(`span`,{children:[(Mt*t/6).toFixed(0),`s`]},t))}),(0,U.jsxs)(`div`,{className:`md-track`,children:[(0,U.jsxs)(`span`,{className:`md-trackname`,children:[(0,U.jsx)(Se,{size:12}),`סצנות`]}),(0,U.jsxs)(`div`,{className:`md-trackcontent`,children:[e.mode===`imported-source`&&jt?.scenes.map(e=>(0,U.jsx)(`button`,{className:`md-trackclip gray`,disabled:!tn&&!rn,onClick:()=>{S(!1),T(e.start+Math.min(.2,e.duration/2))},style:{flex:e.duration},title:`מתחיל ב־${e.start.toFixed(1)} שניות`,children:e.name},e.id)),e.scenes.map(t=>(0,U.jsx)(`button`,{className:`md-trackclip `+(t.id===M?.id?`active`:``),style:{flex:t.duration},onClick:()=>{S(!1),a(t.id),s(ou(t)),T(e.scenes.slice(0,e.scenes.indexOf(t)).reduce((e,t)=>e+t.duration,0)+Math.min(1.1,t.duration*.45))},children:t.name},t.id))]})]}),(0,U.jsxs)(`div`,{className:`md-track`,children:[(0,U.jsxs)(`span`,{className:`md-trackname`,children:[(0,U.jsx)(st,{size:12}),`רכיבים`]}),(0,U.jsxs)(`div`,{className:`md-trackcontent`,children:[Nt.map(e=>(0,U.jsx)(`button`,{className:`md-trackclip gray`,onClick:()=>s(e.id),children:e.name},e.id)),M&&N&&yr(e,M,N).map(e=>(0,U.jsx)(`button`,{type:`button`,className:`md-keyframe-marker ${e.kind}`,style:{left:`${e.time/Math.max(Mt,.01)*100}%`},title:`${e.kind===`unit`?`יחידת טקסט`:`שכבה`} ${e.index+1}: ${e.time.toFixed(2)}s`,onClick:()=>{T(e.time),l(`motion`),S(!1)},"aria-label":`נקודת ${e.kind===`unit`?`יחידת טקסט`:`שכבה`} ${e.index+1} בזמן ${e.time.toFixed(2)} שניות`},`${e.kind}-${e.index}`))]})]}),e.mediaTracks.map(e=>(0,U.jsxs)(`div`,{className:`md-track`,children:[(0,U.jsxs)(`span`,{className:`md-trackname`,children:[(0,U.jsx)(ke,{size:12}),e.name]}),(0,U.jsx)(`div`,{className:`md-trackcontent`,children:(0,U.jsxs)(`div`,{className:`md-trackclip green`,children:[e.clips.length,` קטעים`]})})]},e.id)),(0,U.jsx)(`input`,{disabled:e.mode===`imported-source`&&!tn&&!rn,"aria-label":`מיקום בציר הזמן`,className:`md-scrubber`,type:`range`,dir:`ltr`,min:`0`,max:Mt||1,step:`0.01`,value:w,onChange:e=>{S(!1),T(+e.target.value)}})]})]}),(0,U.jsxs)(`aside`,{className:`md-inspector`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{className:`md-paneltitle`,children:e.mode===`imported-source`?`מאפייני המקור`:e.mode===`flat-video`?`עריכת וידאו`:`מאפייני רכיב`}),(0,U.jsx)(Qe,{size:15})]}),At.length>0&&(0,U.jsxs)(`details`,{className:`md-notice`,"data-testid":`project-warnings`,open:!0,children:[(0,U.jsxs)(`summary`,{children:[`קריאות הטקסט · `,At.length,` הערות`]}),At.slice(0,3).map(e=>(0,U.jsx)(`p`,{children:e.message},e.path)),At.length>3&&(0,U.jsxs)(`p`,{children:[`ועוד `,At.length-3,` תיבות טקסט. פצל תוכן צפוף לכמה סצנות.`]})]}),e.mode===`flat-video`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-notice`,children:`זהו MP4 ללא שכבות מקור. אפשר לחתוך, לפצל ולשנות את שמע המקור במסך המדיה.`}),(0,U.jsx)(X,{primary:!0,onClick:()=>r(`assets`),children:`פתיחת ערוצי המדיה ←`})]}):e.mode===`imported-source`?(0,U.jsxs)(U.Fragment,{children:[window.motionDesk?.previewSource&&e.source?.sourceUrl&&(0,U.jsxs)(X,{primary:!0,onClick:async()=>{try{await window.motionDesk.previewSource(e.source.sourceUrl,e.source?.current||``)}catch(e){P(`לא ניתן לפתוח תצוגה: `+String(e))}},children:[(0,U.jsx)(Fe,{size:13}),`פתיחת תצוגת המקור המבודדת`]}),jt?.fields.length?(0,U.jsx)(Xr,{report:jt,onEdit:en,onSceneSelect:e=>{S(!1),T(e)},selectedFieldId:ce,onFieldSelect:e=>{S(!1),le(e)}}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(fu,{label:`שדה טקסט במקור`,children:(0,U.jsxs)(`select`,{value:re,onChange:t=>{ie(t.target.value);let n=nn(e.source.filename,e.source.current).textFields.find(e=>e.id===t.target.value);se(n?.text||``)},children:[(0,U.jsx)(`option`,{value:``,children:`בחר שדה לפי מזהה`}),nn(e.source.filename,e.source.current).textFields.map(e=>(0,U.jsxs)(`option`,{value:e.id,children:[e.id,` · `,e.text.slice(0,25)]},e.id))]})}),(0,U.jsx)(fu,{label:`טקסט חלופי`,children:(0,U.jsx)(`input`,{value:ae,onChange:e=>se(e.target.value)})}),(0,U.jsx)(X,{primary:!0,disabled:!re,onClick:()=>{try{F(on(e,re,ae)),P(`הטקסט עודכן במקור`)}catch(e){P(String(e))}},children:`החלפת טקסט`}),(0,U.jsx)(`div`,{className:`md-notice`,children:e.source?.warnings?.join(` · `)||`קובץ מקור מיובא`})]})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-tabs`,children:[[`content`,`תוכן`],[`design`,`עיצוב`],[`motion`,`תנועה`]].map(([e,t])=>(0,U.jsx)(`button`,{className:`md-tab `+(c===e?`active`:``),onClick:()=>l(e),children:t},e))}),c===`motion`&&(0,U.jsx)(Vr,{project:e,scene:M,layer:N,time:w,onProjectChange:F,onTimeChange:e=>{S(!1),T(e)}},`${M?.id}-${N?.id}`),N?(0,U.jsxs)(U.Fragment,{children:[c===`content`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(fu,{label:`שם הרכיב`,children:(0,U.jsx)(`input`,{value:N.name,onChange:e=>Ut({name:e.target.value})})}),N.type===`text`&&(0,U.jsx)(fu,{label:`תוכן הטקסט`,hint:`השינוי מופיע מיד בתצוגה ונשמר בפרויקט.`,children:(0,U.jsx)(`textarea`,{id:`md-selected-layer-text`,value:N.text||``,onChange:e=>Ut({text:e.target.value,...N.countTo===void 0?{}:{countTo:void 0}})})}),(N.type===`path`||N.type===`svg`)&&(0,U.jsx)(Wr,{project:e,scene:M,layer:N,onProjectChange:F},N.id),N.type===`text`&&N.countTo!==void 0&&(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(kr,{label:`מספר התחלה`,value:N.countFrom??0,min:-1e9,max:1e9,onChange:e=>qt({from:e})},`${N.id}-from`),(0,U.jsx)(kr,{label:`מספר יעד`,value:N.countTo,min:-1e9,max:1e9,onChange:e=>qt({to:e})},`${N.id}-to`)]}),(0,U.jsx)(fu,{label:`צבע`,children:(0,U.jsx)(`input`,{"aria-label":`צבע הרכיב`,type:`color`,value:/^#[a-f0-9]{6}$/i.test(N.color)?N.color:`#ffffff`,onChange:e=>Ut({color:e.target.value})})}),N.type===`text`&&(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(fu,{label:`גודל גופן`,children:(0,U.jsx)(`input`,{type:`number`,min:`8`,max:`400`,value:N.fontSize,onChange:e=>Ut({fontSize:+e.target.value})})}),(0,U.jsx)(fu,{label:`משקל`,children:(0,U.jsxs)(`select`,{value:N.fontWeight,onChange:e=>Ut({fontWeight:+e.target.value}),children:[(0,U.jsx)(`option`,{value:`400`,children:`רגיל`}),(0,U.jsx)(`option`,{value:`600`,children:`בינוני`}),(0,U.jsx)(`option`,{value:`800`,children:`מודגש`}),(0,U.jsx)(`option`,{value:`900`,children:`כבד`})]})})]})]}),c===`design`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-two`,children:[`x`,`y`,`width`,`height`,`rotation`].map((e,t)=>(0,U.jsx)(fu,{label:[`מיקום X`,`מיקום Y`,`רוחב`,`גובה`,`סיבוב`][t],children:(0,U.jsx)(`input`,{type:`number`,value:N[e],onChange:t=>Ut({[e]:+t.target.value})})},e))}),(0,U.jsx)(fu,{label:`אטימות`,children:(0,U.jsx)(`input`,{type:`range`,min:`0`,max:`1`,step:`.01`,value:N.opacity,onChange:e=>Ut({opacity:+e.target.value})})}),(0,U.jsx)(fu,{label:`יישור`,children:(0,U.jsxs)(`select`,{value:N.textAlign,onChange:e=>Ut({textAlign:e.target.value}),children:[(0,U.jsx)(`option`,{value:`right`,children:`ימין`}),(0,U.jsx)(`option`,{value:`center`,children:`מרכז`}),(0,U.jsx)(`option`,{value:`left`,children:`שמאל`})]})}),(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(fu,{label:`ריווח אותיות`,children:(0,U.jsx)(`input`,{type:`number`,step:`.5`,value:N.letterSpacing??0,onChange:e=>Ut({letterSpacing:+e.target.value})})}),(0,U.jsx)(fu,{label:`גובה שורה`,children:(0,U.jsx)(`input`,{type:`number`,step:`.1`,min:`.5`,value:N.lineHeight??1.2,onChange:e=>Ut({lineHeight:+e.target.value})})}),(0,U.jsx)(fu,{label:`טשטוש`,children:(0,U.jsx)(`input`,{type:`number`,min:`0`,max:`100`,value:N.blur??0,onChange:e=>Ut({blur:+e.target.value})})}),(0,U.jsx)(fu,{label:`עובי מסגרת`,children:(0,U.jsx)(`input`,{type:`number`,min:`0`,value:N.borderWidth??0,onChange:e=>Ut({borderWidth:+e.target.value})})}),(0,U.jsx)(fu,{label:`צבע מסגרת`,children:(0,U.jsx)(`input`,{type:`color`,value:N.borderColor||`#000000`,onChange:e=>Ut({borderColor:e.target.value})})}),(0,U.jsx)(fu,{label:`מצב שילוב`,children:(0,U.jsx)(`select`,{value:N.blendMode||`normal`,onChange:e=>Ut({blendMode:e.target.value}),children:[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`].map(e=>(0,U.jsx)(`option`,{value:e,children:e},e))})})]}),(0,U.jsx)(fu,{label:`צל CSS`,children:(0,U.jsx)(`input`,{value:N.shadow||`none`,onChange:e=>Ut({shadow:e.target.value})})})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(X,{small:!0,onClick:()=>{let e={...N,id:Y(),name:N.name+` עותק`,x:N.x+25,y:N.y+25};It({layers:[...M.layers,e]}),s(e.id)},children:[(0,U.jsx)(pe,{size:12}),`שכפול`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>It({layers:M.layers.filter(e=>e.id!==N.id)}),children:[(0,U.jsx)(it,{size:12}),`מחיקה`]})]})]}):(0,U.jsx)(`div`,{className:`md-notice`,children:`בחר רכיב, או הוסף טקסט וצורות לסצנה.`}),(0,U.jsxs)(`div`,{className:`md-layerlist`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`b`,{className:`md-paneltitle`,children:`רכיבי הסצנה`}),(0,U.jsxs)(`span`,{className:`md-badge`,children:[Nt.length,` / `,M?.layers.length]})]}),(0,U.jsx)(`button`,{type:`button`,className:`md-layer-filter`,onClick:()=>d(e=>!e),children:u?`הצגת טקסטים בלבד`:`הצגת כל הצורות והרכיבים`}),Nt.map(e=>(0,U.jsxs)(`button`,{className:`md-layer `+(e.id===N?.id?`active`:``),onClick:()=>s(e.id),children:[e.type===`text`?(0,U.jsx)(st,{size:12}):(0,U.jsx)(tt,{size:12}),(0,U.jsx)(`span`,{children:e.name})]},e.id)),(0,U.jsxs)(`div`,{className:`md-row`,style:{marginTop:10},children:[(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`text`),children:[(0,U.jsx)(Ie,{size:12}),`טקסט`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`shape`),children:[(0,U.jsx)(Ie,{size:12}),`צורה`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`path`),children:[(0,U.jsx)(Ie,{size:12}),`נתיב`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`group`),children:[(0,U.jsx)(Ie,{size:12}),`קבוצה`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>A(!0),children:[(0,U.jsx)(Ke,{size:12}),`נכס`]})]})]}),M&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(`div`,{className:`md-layerlist`,children:[(0,U.jsx)(`b`,{className:`md-paneltitle`,children:`הסצנה`}),(0,U.jsx)(`div`,{style:{height:12}}),(0,U.jsx)(fu,{label:`שם הסצנה`,children:(0,U.jsx)(`input`,{value:M.name,onChange:e=>It({name:e.target.value})})}),(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(kr,{label:`משך הסצנה בשניות`,value:M.duration,min:.01,max:3600,step:.01,onChange:e=>Jt(e)},M.id),(0,U.jsx)(fu,{label:`רקע`,children:(0,U.jsx)(`input`,{type:`color`,value:/^#[a-f0-9]{6}$/i.test(M.background)?M.background:`#191c28`,onChange:e=>It({background:e.target.value})})})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(X,{small:!0,onClick:()=>F(Wt(e,M.id)),children:(0,U.jsx)(pe,{size:11})}),(0,U.jsx)(X,{small:!0,disabled:e.scenes.indexOf(M)===0,onClick:()=>F(Gt(e,M.id,e.scenes.indexOf(M)-1)),children:(0,U.jsx)(ee,{size:11})}),(0,U.jsx)(X,{small:!0,disabled:e.scenes.indexOf(M)===e.scenes.length-1,onClick:()=>F(Gt(e,M.id,e.scenes.indexOf(M)+1)),children:(0,U.jsx)(C,{size:11})}),(0,U.jsx)(X,{small:!0,disabled:e.scenes.length<2,onClick:()=>F(Kt(e,M.id)),children:(0,U.jsx)(it,{size:11})})]})]})})]})]})]}),(0,U.jsxs)(`div`,{className:`md-statusbar`,children:[(0,U.jsxs)(`span`,{children:[`גרסה `,e.revision,` · קובץ מקומי`]}),(0,U.jsx)(`span`,{children:`MotionDesk · סביבת עריכה אישית`})]})]}):(0,U.jsxs)(`main`,{className:`md-page`,children:[n!==`studio`&&Wn,n===`music`&&(0,U.jsx)(Fl,{projectTitle:e.title,duration:Mt,onManage:()=>r(`assets`),onAdd:async(t,n)=>{S(!1);let r=await Nl(t);F(Ml(e,t,r,n)),P(`המוזיקה נוספה לסרטון`)}}),n===`prompts`&&(0,U.jsx)(ii,{onOpenProject:ln}),n===`studio`&&(0,U.jsx)(wl,{onOpenProject:e=>ln(e),onInsertAsset:yn,notify:P}),` `,n===`templates`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-toolbar`,children:[(0,U.jsxs)(`div`,{className:`md-search`,children:[(0,U.jsx)(Ue,{size:15}),(0,U.jsx)(`input`,{"aria-label":`חיפוש תבניות`,placeholder:`חיפוש לפי שם, סגנון או נושא...`,value:m,onChange:e=>h(e.target.value)})]}),(0,U.jsxs)(X,{onClick:()=>p(`import`),children:[(0,U.jsx)(lt,{size:14}),`ייבוא קובץ / קונפיגורציה`]})]}),(0,U.jsx)(`div`,{className:`md-categories`,children:B.map(e=>(0,U.jsx)(`button`,{className:`md-chip `+(g===e?`active`:``),onClick:()=>_(e),children:e},e))}),(0,U.jsxs)(`div`,{className:`md-count`,children:[kn.length+In.length+An.length+jn.length+Mn.length+Fn.length+Nn.length+Pn.length,` תבניות זמינות · `,An.length,` סרטונים אישיים · `,jn.length,` קונפיגורציות השראה · `,Mn.length,` מצגות חדשות · `,Pn.length,` סרטוני v4 · `,Nn.length,` סרטוני v3 · `,Fn.length,` סרטוני v2 משופרים · `,kn.length,` סגנונות HyperFrames`]}),Pn.length>0&&(0,U.jsx)(Zl,{items:Pn,onOpenProject:ln}),Nn.length>0&&(0,U.jsx)(Gl,{items:Nn,onOpenProject:ln,variant:`v3`}),Fn.length>0&&(0,U.jsx)(Gl,{items:Fn,onOpenProject:ln}),` `,In.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`תבניות ZIP שייבאתי`}),(0,U.jsx)(`small`,{className:`md-count`,children:`מקור HTML ונכסים מקומיים לעריכה`})]}),Vn]}),(g===`הכול`||g===`מצגות תנועה חדשות`)&&(!m||JSON.stringify([`חופשה בתנועה`,Ll(`v2-demo`).tags]).toLowerCase().includes(m.toLowerCase()))&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`דוגמת מנוע v2`}),(0,U.jsx)(`small`,{className:`md-count`,children:`רכיבים, קיפריימים ועריכה שכבה אחר שכבה`})]}),(0,U.jsx)(`div`,{className:`md-grid`,children:(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(`div`,{className:`md-thumb`,style:{padding:0,overflow:`hidden`,pointerEvents:`none`},children:(0,U.jsx)(Es,{project:{...lu,scenes:[lu.scenes[0]]},time:1.3})}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsx)(`h3`,{children:`חופשה בתנועה · v2`}),(0,U.jsx)(`p`,{children:`ארבע סצנות: טקסט קינטי, מונה, טלפון וכרטיס סיום.`}),(0,U.jsx)(Bl,{metadata:Ll(`v2-demo`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(Qt(Zt({...lu,id:Lt(`project`)}))),children:`פתיחה לעריכה ←`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>cu(JSON.stringify(Ql,null,2),`summer-ice.motiondesk-config.json`,`application/json`),children:`הורדת JSON`})]})]})]})})]}),Mn.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`מצגות תנועה חדשות`}),(0,U.jsx)(`small`,{className:`md-count`,children:`פתיחה לעריכה או הורדת קובץ מידע בלבד`})]}),Un]}),jn.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`טיוטות השראה · בנק הפועלים`}),(0,U.jsx)(`small`,{className:`md-count`,children:`20 קונפיגורציות v1 לעריכה ולבנייה מחדש במנוע v2`})]}),H]}),An.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`הסרטונים שלי · תבניות MP4`}),(0,U.jsx)(`small`,{className:`md-count`,children:`עריכת וידאו בסיסית`})]}),V]}),kn.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`תבניות HyperFrames`}),(0,U.jsx)(`small`,{className:`md-count`,children:`עריכת רכיבים ומקור`})]}),Hn(kn)]}),!kn.length&&!In.length&&!An.length&&!jn.length&&!Mn.length&&!Fn.length&&!Nn.length&&(0,U.jsx)(`div`,{className:`md-empty`,children:Ne.length?`לא נמצאו תבניות. נסה חיפוש אחר.`:`טוען את ספריית התבניות...`})]}),(n===`home`||n===`projects`)&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-hero`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`div`,{className:`md-eyebrow`,children:`מכאן מתחיל הסרט הבא`}),(0,U.jsxs)(`h2`,{children:[`הרעיון שלך.`,(0,U.jsx)(`br`,{}),`התנועה שלך.`]}),(0,U.jsx)(`p`,{children:`פותחים תבנית, מעדכנים תוכן ומעצבים כל סצנה. אפשר גם להמשיך מקובץ HTML קיים.`}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(X,{primary:!0,onClick:()=>r(`studio`),children:[(0,U.jsx)(Se,{size:14}),`בחירת תבנית`]}),(0,U.jsxs)(X,{onClick:()=>p(`import`),children:[(0,U.jsx)(lt,{size:14}),`ייבוא פרויקט`]}),window.motionDesk?.openExample&&(0,U.jsxs)(X,{onClick:pn,children:[(0,U.jsx)(ge,{size:14}),`פתיחת דוגמת הבנק`]})]})]}),(0,U.jsx)(uu,{title:`הדברים הגדולים\\nמתחילים כאן`})]}),(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:n===`projects`?`ספריית הפרויקטים`:`הפרויקט האחרון`}),(0,U.jsx)(`small`,{className:`md-count`,children:`נשמר בתיקיית MotionDesk במחשב`})]}),n===`projects`&&j.length>0&&(0,U.jsx)(`div`,{className:`md-grid`,children:j.map(e=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(uu,{title:e.title}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsxs)(`p`,{children:[e.sceneCount,` סצנות · `,new Date(e.updatedAt).toLocaleString(`he-IL`)]}),(0,U.jsx)(`button`,{className:`md-open`,onClick:async()=>{try{ln(Qt(await window.motionDesk.loadProject(e.id)))}catch(e){P(String(e))}},children:`פתיחה לעריכה ←`})]})]},e.id))}),n===`home`&&(0,U.jsx)(`div`,{className:`md-grid`,children:(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(uu,{title:e.title}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsxs)(`p`,{children:[e.scenes.length,` סצנות · `,Mt.toFixed(1),` שניות · גרסה `,e.revision]}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`span`,{className:`md-badge`,children:e.mode===`authored`?`פרויקט Motion`:`מקור מיובא`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(),children:`המשך עריכה ←`})]})]})]})})]}),n===`assets`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-toolbar`,children:[(0,U.jsxs)(`span`,{className:`md-count`,children:[e.assets.length,` קבצים בפרויקט`]}),(0,U.jsxs)(X,{primary:!0,onClick:gn,children:[(0,U.jsx)(lt,{size:14}),`הוספת מדיה`]})]}),e.assets.length?(0,U.jsx)(`div`,{className:`md-assetlist`,children:e.assets.map(t=>(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[t.kind===`image`?(0,U.jsx)(`img`,{src:xs(t.src),alt:``}):t.kind===`audio`?(0,U.jsx)(ke,{size:28}):(0,U.jsx)(ge,{size:28}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{className:`md-filename`,children:t.name}),(0,U.jsxs)(`small`,{children:[t.kind,` · `,t.mime]})]}),t.kind===`image`&&(0,U.jsx)(X,{small:!0,disabled:!M,onClick:()=>vn(`image`,t.id),children:`הוספה לסצנה`}),(t.kind===`video`||t.kind===`audio`)&&(0,U.jsx)(X,{small:!0,onClick:()=>{let n={id:Y(),assetId:t.id,start:0,in:0,out:t.duration||10,volume:1,muted:!1};F({...e,mediaTracks:[...e.mediaTracks,{id:Y(),name:t.name,type:t.kind,clips:[n],muted:!1}]}),P(`נוסף לערוץ מדיה. אפשר לערוך את הקטע מתחת לרשימת הקבצים.`)},children:`הוספה לערוץ`}),(0,U.jsx)(X,{small:!0,onClick:()=>F({...e,assets:e.assets.filter(e=>e.id!==t.id),mediaTracks:e.mediaTracks.map(e=>({...e,clips:e.clips.filter(e=>e.assetId!==t.id)})),scenes:e.scenes.map(e=>({...e,layers:e.layers.filter(e=>e.assetId!==t.id)}))}),children:(0,U.jsx)(it,{size:12})})]},t.id))}):(0,U.jsxs)(`div`,{className:`md-empty`,children:[(0,U.jsx)(xe,{size:28}),(0,U.jsx)(`p`,{children:`הוסף תמונות, סרטונים או אודיו לפרויקט.`}),(0,U.jsx)(`div`,{style:{height:16}}),(0,U.jsx)(X,{onClick:gn,children:`בחירת קבצים`})]}),e.mediaTracks.length>0&&(0,U.jsxs)(`div`,{className:`md-mediaeditor`,children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`ערוצי מדיה`}),(0,U.jsx)(X,{onClick:()=>ln(),children:e.mode===`flat-video`?`חזרה לתצוגת הווידאו`:`פתיחת העורך להוספת כותרות ותמונות`})]}),(0,U.jsxs)(`div`,{className:`md-notice`,children:[`תחילת הקטע קובעת את מיקומו בפרויקט. כניסה ויציאה הן נקודות הזמן בקובץ המקור. `,e.mode===`flat-video`?`עריכת רכיבים צרובים דורשת מקור HTML/HyperFrames.`:`טקסט ותמונות בסצנות מופיעים מעל הווידאו.`]}),e.mediaTracks.map((t,n)=>(0,U.jsxs)(`div`,{className:`md-settings`,style:{marginBottom:15,maxWidth:`none`},children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`b`,{children:t.name}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(`label`,{className:`md-checkbox`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:t.muted,onChange:n=>F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,muted:n.target.checked}:e)})}),`השתקת ערוץ`]}),(0,U.jsx)(X,{small:!0,disabled:!n,onClick:()=>{let t=[...e.mediaTracks];[t[n],t[n-1]]=[t[n-1],t[n]],F({...e,mediaTracks:t})},children:(0,U.jsx)(ee,{size:12})}),(0,U.jsx)(X,{small:!0,disabled:n===e.mediaTracks.length-1,onClick:()=>{let t=[...e.mediaTracks];[t[n],t[n+1]]=[t[n+1],t[n]],F({...e,mediaTracks:t})},children:(0,U.jsx)(C,{size:12})}),(0,U.jsx)(X,{small:!0,onClick:()=>F({...e,mediaTracks:e.mediaTracks.filter(e=>e.id!==t.id)}),children:(0,U.jsx)(it,{size:12})})]})]}),t.clips.map(n=>(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(`div`,{className:`md-clipfields`,children:[[`start`,`in`,`out`,`volume`].map((r,i)=>(0,U.jsx)(fu,{label:[`תחילה בפרויקט (שניות)`,`כניסה במקור (שניות)`,`יציאה במקור (שניות)`,`עוצמה (0–4)`][i],children:(0,U.jsx)(`input`,{type:`number`,min:`0`,max:r===`volume`?4:void 0,step:`0.1`,value:n[r],onChange:i=>F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,clips:e.clips.map(e=>e.id===n.id?{...e,[r]:+i.target.value}:e)}:e)})})},r)),(0,U.jsxs)(`label`,{className:`md-checkbox`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:n.muted,onChange:r=>F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,clips:e.clips.map(e=>e.id===n.id?{...e,muted:r.target.checked}:e)}:e)})}),`השתקת קטע`]})]}),(0,U.jsxs)(`div`,{className:`md-splitrow`,children:[(0,U.jsx)(fu,{label:`נקודת פיצול בזמן הפרויקט`,children:(0,U.jsx)(`input`,{type:`number`,min:n.start,max:n.start+n.out-n.in,step:`.1`,value:Ot[n.id]??n.start+(n.out-n.in)/2,onChange:e=>kt(t=>({...t,[n.id]:+e.target.value}))})}),(0,U.jsx)(X,{small:!0,disabled:w<=n.start||w>=n.start+n.out-n.in,onClick:()=>kt(e=>({...e,[n.id]:w})),children:`מהסמן`}),(0,U.jsx)(X,{small:!0,disabled:(Ot[n.id]??n.start+(n.out-n.in)/2)<=n.start||(Ot[n.id]??n.start+(n.out-n.in)/2)>=n.start+n.out-n.in,onClick:()=>{let r=Ot[n.id]??n.start+(n.out-n.in)/2,i=n.in+r-n.start;F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,clips:e.clips.flatMap(e=>e.id===n.id?[{...e,out:i},{...e,id:Y(),in:i,start:r}]:[e])}:e)}),P(`הקטע פוצל לשני קטעים רצופים`)},children:`פיצול בנקודה`})]})]},n.id))]},t.id))]})]}),n===`settings`&&(0,U.jsxs)(`div`,{className:`md-settings`,children:[(0,U.jsx)(`h2`,{children:`הגדרות הפרויקט`}),e.mode===`imported-source`&&(0,U.jsx)(`div`,{className:`md-notice`,children:`פורמט הקומפוזיציה נקבע במקור HyperFrames. שינוי פריסה מתבצע בקוד המקור, כדי לשמור על התאמה בין התצוגה לרינדור.`}),(0,U.jsx)(`div`,{style:{height:22}}),(0,U.jsx)(fu,{label:`שם הפרויקט`,children:(0,U.jsx)(`input`,{value:e.title,onChange:t=>F({...e,title:t.target.value})})}),(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(fu,{label:`רוחב`,children:(0,U.jsx)(`input`,{disabled:e.mode===`imported-source`,type:`number`,min:`100`,value:e.canvas.width,onChange:t=>F({...e,canvas:{...e.canvas,width:+t.target.value}})})}),(0,U.jsx)(fu,{label:`גובה`,children:(0,U.jsx)(`input`,{disabled:e.mode===`imported-source`,type:`number`,min:`100`,value:e.canvas.height,onChange:t=>F({...e,canvas:{...e.canvas,height:+t.target.value}})})})]}),(0,U.jsx)(fu,{label:`מסגרות לשנייה`,children:(0,U.jsx)(`select`,{disabled:e.mode===`imported-source`,value:e.canvas.fps,onChange:t=>F({...e,canvas:{...e.canvas,fps:+t.target.value}}),children:[24,25,30,60].map(e=>(0,U.jsx)(`option`,{children:e},e))})}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(X,{disabled:e.mode===`imported-source`,onClick:()=>F({...e,canvas:{...e.canvas,width:1920,height:1080}}),children:`16:9 רוחבי`}),(0,U.jsx)(X,{disabled:e.mode===`imported-source`,onClick:()=>F({...e,canvas:{...e.canvas,width:1080,height:1920}}),children:`9:16 אנכי`}),(0,U.jsx)(X,{disabled:e.mode===`imported-source`,onClick:()=>F({...e,canvas:{...e.canvas,width:1080,height:1080}}),children:`1:1 ריבוע`})]}),(0,U.jsxs)(`div`,{className:`md-notice`,children:[`הפרויקט נשמר אוטומטית בדפדפן. `,window.motionDesk?`שמירת הפרויקט יוצרת תיקייה ניידת הכוללת את המדיה להעברה בין מחשבים.`:`להעברה בין מחשבים אפשר להוריד קובץ פרויקט JSON.`]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>un(`project`),children:[(0,U.jsx)(Ve,{size:14}),window.motionDesk?`שמירת תיקיית פרויקט ניידת`:`הורדת קובץ פרויקט JSON`]})]})]})]}),be&&(0,U.jsx)(qc,{title:`ספריית נכסים`,onClose:()=>A(!1),children:(0,U.jsx)(yl,{brand:Zo(),onInsert:(e,t)=>{yn(e,t)&&P(`"${e.name}" נוסף לסצנה`)}})}),v&&(0,U.jsx)(`div`,{className:`md-toast`,role:`status`,children:v}),f&&(0,U.jsx)(`div`,{className:`md-modalback`,onClick:()=>p(null),children:(0,U.jsxs)(`section`,{className:`md-modal`,role:`dialog`,"aria-modal":`true`,"aria-label":f===`new`?`פרויקט חדש`:f===`import`?`ייבוא פרויקט`:f===`source`?`עריכת מקור`:`ייצוא הפרויקט`,onClick:e=>e.stopPropagation(),children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h2`,{children:f===`new`?`פרויקט חדש`:f===`reference`?nt?.name:f===`import`?`ממשיכים מהקובץ שלך`:f===`source`?`עריכת קוד המקור`:`ייצוא הפרויקט`}),(0,U.jsx)(`button`,{className:`md-btn icon`,"aria-label":`סגירה`,onClick:()=>p(null),children:(0,U.jsx)(gt,{size:16})})]}),f===`new`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:`בחר נקודת התחלה ושם לסרטון. תבניות HyperFrames ו־MP4 נפתחות כעותק עבודה חדש.`}),(0,U.jsx)(fu,{label:`שם הסרטון`,children:(0,U.jsx)(`input`,{autoFocus:!0,value:at,onChange:e=>ot(e.target.value)})}),(0,U.jsxs)(`div`,{className:`md-newchoices`,children:[(0,U.jsxs)(`button`,{className:`md-newchoice `+(ut===`blank`?`active`:``),onClick:()=>dt(`blank`),children:[(0,U.jsx)(Ie,{size:23}),(0,U.jsx)(`b`,{children:`פרויקט ריק`}),(0,U.jsx)(`small`,{children:`סצנה נקייה עם כותרת ראשונה לעריכה`})]}),(0,U.jsxs)(`button`,{className:`md-newchoice `+(ut===`gallery`?`active`:``),onClick:()=>dt(`gallery`),children:[(0,U.jsx)(Se,{size:23}),(0,U.jsx)(`b`,{children:`סגנון מהגלריה`}),(0,U.jsx)(`small`,{children:`מקור HyperFrames, תבנית פתיחה או MP4`})]})]}),ut===`gallery`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(fu,{label:`בחירת סגנון`,children:(0,U.jsxs)(`select`,{value:mt,onChange:e=>{ht(e.target.value),pt(El.find(t=>`bank-${t.id}`===e.target.value)?.config.aspectRatio||Ol.find(t=>`starter-${t.id}`===e.target.value)?.config.aspectRatio||Ne.find(t=>t.id===e.target.value)?.aspectRatio||((ys.find(t=>`sample-${t.id}`===e.target.value)?.height||0)>(ys.find(t=>`sample-${t.id}`===e.target.value)?.width||0)?`9:16`:`16:9`)),Ct(``),e.target.value.startsWith(`bank-`)||e.target.value.startsWith(`starter-`)?yt(`seed`):e.target.value.startsWith(`sample-whatsapp-`)&&yt(`source`)},children:[(0,U.jsx)(`option`,{value:``,children:`בחר סגנון`}),Ne.map(e=>(0,U.jsx)(`option`,{value:e.id,children:e.name},e.id)),(0,U.jsx)(`optgroup`,{label:`מצגות תנועה חדשות — קובצי מידע עריכים`,children:Ol.map(e=>(0,U.jsx)(`option`,{value:`starter-${e.id}`,children:e.title},e.id))}),(0,U.jsx)(`optgroup`,{label:`השראה מערוץ הבנק — קונפיגורציות עריכות`,children:El.map(e=>(0,U.jsx)(`option`,{value:`bank-${e.id}`,children:e.title},e.id))}),(0,U.jsx)(`optgroup`,{label:`הסרטונים שלי — מקור HTML או MP4`,children:ys.map(e=>(0,U.jsx)(`option`,{value:`sample-${e.id}`,children:e.title},e.id))})]})}),!Rn&&!Bn&&(0,U.jsxs)(`div`,{className:`md-template-modes`,children:[(0,U.jsx)(`button`,{className:`md-chip `+(_t===`source`?`active`:``),onClick:()=>{yt(`source`),Ct(``)},children:`מקור HyperFrames`}),(0,U.jsx)(`button`,{className:`md-chip `+(_t===`seed`?`active`:``),onClick:()=>{yt(`seed`),Ct(``)},children:`תבנית פתיחה`})]}),(0,U.jsx)(`div`,{className:`md-notice`,children:Bn?`תיפתח מצגת טקסט ותנועה חדשה ועריכה מתוך קובץ מידע. זו יצירה חדשה, לא מקור וידאו.`:Rn?En(Rn)?Rn.sourceKind===`editable-reconstruction`?`ייפתח שחזור HTML עריך של הגרפיקה והכותרות. קטעי הצילום עצמם נשמרים כווידאו.`:`ייפתח עותק עריך של מקור ה־HTML, עם טקסט וגרפיקה חיים.`:`ייפתח עותק MP4 לחיתוך, פיצול ושינוי שמע.`:_t===`source`?`ייפתח עותק עבודה של הקומפוזיציה המקורית עם התמונות, הגופנים, השמע והתנועה. השדות העריכים נקבעים לפי יכולות המקור.`:`תבנית פתיחה היא קומפוזיציה חדשה המבוססת על הסגנון. היא אינה משחזרת את סרטון הרפרנס.`}),!Rn&&!Bn&&_t===`source`&&!z&&(0,U.jsx)(`div`,{className:`md-notice`,children:`לסגנון הזה אין עדיין מקור עריך מותקן. תבנית פתיחה זמינה בבחירה נפרדת.`}),!Rn&&!Bn&&_t===`source`&&!window.motionDesk?.openCatalogTemplate&&(0,U.jsx)(`div`,{className:`md-notice`,children:`פתיחת המקור המלא זמינה בשרת Web המקומי או באפליקציית המחשב.`})]}),(0,U.jsx)(fu,{label:`פורמט הסרטון`,hint:ut===`gallery`&&(_t===`source`||Rn||Bn)?`פורמט המקור נשמר כדי לשמר את הפריסה והתנועה.`:void 0,children:(0,U.jsx)(`div`,{className:`md-ratiochoices`,children:[[`16:9`,`רוחבי`],[`9:16`,`אנכי`],[`1:1`,`ריבוע`]].map(([e,t])=>(0,U.jsxs)(`button`,{type:`button`,disabled:ut===`gallery`&&(_t===`source`||!!Rn||!!Bn),className:`md-ratiochoice `+(ft===e?`active`:``),"aria-pressed":ft===e,onClick:()=>pt(e),children:[(0,U.jsx)(`i`,{style:{aspectRatio:e.replace(`:`,`/`)}}),(0,U.jsx)(`bdi`,{children:e}),(0,U.jsx)(`small`,{children:t})]},e))})}),(0,U.jsxs)(`div`,{className:`md-modalfooter`,children:[St&&(0,U.jsx)(`p`,{className:`md-create-error`,role:`alert`,children:St}),(0,U.jsx)(X,{disabled:bt,onClick:()=>p(null),children:`ביטול`}),(0,U.jsxs)(X,{primary:!0,disabled:bt||!at.trim()||ut===`gallery`&&(!mt||!Rn&&!Bn&&_t===`source`&&(!window.motionDesk?.openCatalogTemplate||!z)),onClick:On,children:[bt?`פותח עותק עבודה...`:`יצירת פרויקט ופתיחת העורך`,(0,U.jsx)(oe,{size:13})]})]})]}):f===`reference`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:nt?.description}),(0,U.jsx)(`video`,{className:`md-video`,controls:!0,autoPlay:!0,src:xs(nt?.source.videoUrl||``),poster:nt?.source.posterUrl}),(0,U.jsx)(`div`,{className:`md-notice`,children:nt?.sample?En(nt.sample)?`אפשר לפתוח את מקור ה־HTML לעריכת טקסט ותנועה, או לפתוח את ה־MP4 לעריכת וידאו בסיסית.`:`זהו MP4. ניתן לפתוח עותק לחיתוך, פיצול ושינוי שמע; רכיבים צרובים אינם עריכים ללא מקור.`:`מקור HyperFrames זמין לעריכה בנפרד.`}),(0,U.jsx)(`div`,{className:`md-modalfooter`,children:(0,U.jsx)(X,{primary:!0,onClick:()=>{nt?.sample?En(nt.sample)?Dn(nt.sample):(ln(Ss(nt.sample)),p(null)):wn(nt)},children:nt?.sample?En(nt.sample)?`עריכת מקור HTML`:`פתיחה כתבנית MP4`:`עריכת המקור בסגנון הזה`})})]}):f===`import`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:`אפשר לטעון ZIP עם סרטון motion עריך, קובץ פרויקט, HTML, מדיה או קונפיגורציה.`}),(0,U.jsxs)(`div`,{className:`md-import`,children:[(0,U.jsx)(he,{size:34,color:`#e30613`}),(0,U.jsx)(`p`,{children:`ZIP של מקור motion · MotionDesk JSON · HTML · תמונות · וידאו · אודיו`}),(0,U.jsxs)(`div`,{className:`md-row`,style:{justifyContent:`center`,flexWrap:`wrap`},children:[(0,U.jsxs)(X,{primary:!0,onClick:gn,children:[(0,U.jsx)(lt,{size:14}),`בחירת קובץ מהמחשב`]}),window.motionDesk?.openProjectFolder&&(0,U.jsxs)(X,{onClick:mn,children:[(0,U.jsx)(_e,{size:14}),`פתיחת תיקיית פרויקט`]}),window.motionDesk?.openExample&&(0,U.jsxs)(X,{onClick:pn,children:[(0,U.jsx)(ge,{size:14}),`פתיחת דוגמת הבנק`]})]})]}),(0,U.jsx)(fu,{label:`או הדבק קונפיגורציית סרטון JSON`,hint:`הקובץ נבנה לסצנות ושכבות עריכות; האפליקציה אינה מפעילה מודל שפה.`,children:(0,U.jsx)(`textarea`,{dir:`ltr`,style:{minHeight:130},placeholder:`{"format":"motiondesk-config/v2",...}`,value:wt,onChange:e=>{Tt(e.target.value),Dt(``)}})}),Et&&(0,U.jsx)(`p`,{className:`md-create-error`,role:`alert`,children:Et}),(0,U.jsx)(`div`,{className:`md-modalfooter`,children:(0,U.jsx)(X,{primary:!0,disabled:!wt.trim(),onClick:_n,children:`יצירת סרטון מהקונפיגורציה`})}),(0,U.jsx)(`div`,{className:`md-notice`,children:`ZIP עם index.html של קומפוזיציית motion ונכסים מקומיים נשמר בתבניות וניתן לפתיחה חוזרת לעריכה. ייבוא קונפיגורציה יוצר פרויקט MotionDesk מובנה; MP4 צרוב אינו הופך לשכבות עריכות.`})]}):f===`source`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:`הקוד נשמר בפרויקט ויופיע בקובץ HTML שתייצא. תצוגת הקוד בעורך סטטית; חלון התצוגה המבודד מפעיל את הקומפוזיציה.`}),(0,U.jsx)(`textarea`,{"aria-label":`קוד HTML`,value:k,onChange:e=>ne(e.target.value)}),(0,U.jsxs)(`div`,{className:`md-modalfooter`,children:[(0,U.jsx)(X,{onClick:()=>p(null),children:`ביטול`}),(0,U.jsx)(X,{primary:!0,onClick:()=>{F({...e,source:e.source?{...e.source,current:k}:void 0}),p(null)},children:`שמירת שינויים`})]})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:e.mode===`flat-video`?`שמור את הפרויקט להמשך עריכה או ייצא סרטון MP4 חדש.`:`שמור את הפרויקט להמשך עריכה, או ייצא HTML עצמאי עם התוכן והתנועה שלך.`}),(0,U.jsxs)(`div`,{className:`md-assetlist`,children:[(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[(0,U.jsx)(_e,{size:24}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{children:window.motionDesk?.saveText?`תיקיית פרויקט ניידת`:`קובץ פרויקט JSON`}),(0,U.jsx)(`small`,{children:window.motionDesk?.saveText?`כל הסצנות, הרכיבים, ההגדרות ותיקיית המדיה`:`כל נתוני הפרויקט בקובץ JSON להמשך עריכה`})]}),(0,U.jsxs)(X,{onClick:()=>un(`project`),children:[(0,U.jsx)(me,{size:13}),`שמירה`]})]}),e.mode!==`flat-video`&&(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[(0,U.jsx)(de,{size:24}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{children:e.mode===`imported-source`?`קוד HTML ערוך`:`HTML עצמאי`}),(0,U.jsx)(`small`,{children:e.mode===`imported-source`?`יש לשמור גם את תיקיית הפרויקט כדי להעביר תמונות, גופנים ושמע`:`קובץ נייד לפתיחה בדפדפן ולעריכה נוספת`})]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>un(`html`),children:[(0,U.jsx)(me,{size:13}),`ייצוא HTML`]})]}),(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[(0,U.jsx)(ge,{size:24}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{children:`וידאו MP4`}),(0,U.jsx)(`small`,{children:window.motionDesk?.deployment===`vercel`?`רינדור בענן והורדת MP4 למחשב`:window.motionDesk?.renderProject?`רינדור מקומי באמצעות FFmpeg`:`זמין בשרת Web המקומי או באפליקציית המחשב`})]}),(0,U.jsx)(X,{disabled:Be||!window.motionDesk?.renderProject,onClick:async()=>{He(!0),qe(null),Ye(``),et(``);try{let t=await window.motionDesk.renderProject(e,e=>qe(e));t?.path&&(Ye(t.path),P(`הרינדור הסתיים`))}catch(e){let t=`הרינדור נכשל: `+String(e);et(t),P(t)}finally{He(!1)}},children:`רינדור MP4`})]})]}),Be&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-progress-label`,role:`status`,children:We?.phase===`frames`?`מרנדר פריים ${We.frame||0} מתוך ${We.frames||0} · ${We.percent}%`:We?.phase===`audio`?`מוסיף שמע לקובץ MP4`:We?.phase===`video`?`מעבד וידאו`:`מכין את הרינדור...`}),(0,U.jsx)(`div`,{className:`md-progress determinate`,children:(0,U.jsx)(`i`,{style:{width:`${We?.percent||0}%`}})})]}),Je&&(0,U.jsxs)(`div`,{className:`md-notice`,children:[`נשמר: `,(0,U.jsx)(`bdi`,{children:Je})]}),$e&&(0,U.jsx)(`div`,{className:`md-create-error`,role:`alert`,children:$e}),(0,U.jsxs)(`div`,{className:`md-notice`,children:[`בדיקת פרויקט: `,I(e).length===0?`תקין לייצוא`:I(e).map(e=>e.message).join(` · `)]})]})]})})]})}function mu(e){let t=/^motiondesk-media:\/\/catalog-((?:halvaa-(?:0[1-9]|[1-5]\d|6[0-6])|whatsapp-(?:121656|122305|122338)))$/.exec(e);if(!t)throw Error(`מקור הגלריה אינו תקין`);return t[1]}async function hu(e){let t=await e.json();if(!e.ok)throw Error(t.error||`HTTP ${e.status}`);return t}function gu(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}async function _u(e,t){let n=await fetch(`/api/render`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!n.body)throw Error(`שרת הרינדור לא החזיר נתונים (HTTP ${n.status})`);let r=n.body.getReader(),i=new TextDecoder,a=[],o=``,s=null,c=0;function l(e){if(!e.trim())return;let n=JSON.parse(e);if(n.type===`error`)throw Error(n.error||`הרינדור נכשל`);if(n.type===`progress`&&t?.(n),n.type===`chunk`){let e=gu(n.data);if(c+=e.byteLength,c>25e7)throw Error(`קובץ MP4 גדול מדי להורדה בדמו`);a.push(e)}n.type===`done`&&(s=n)}try{for(;;){let{value:e,done:t}=await r.read();if(t)break;o+=i.decode(e,{stream:!0});let n=o.indexOf(`
|
|
288
|
+
`).map((e,t)=>(0,U.jsxs)(`span`,{children:[e,(0,U.jsx)(`br`,{})]},t)),(0,U.jsx)(`small`,{className:`md-artsub`,children:`יוצרים. עורכים. מניעים רעיונות.`})]}),(0,U.jsx)(`span`,{className:`md-artfoot`,children:`MotionDesk`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[`00:`,String(n).padStart(2,`0`)]})]})}function X({children:e,onClick:t,primary:n=!1,small:r=!1,disabled:i=!1,title:a}){return(0,U.jsx)(`button`,{title:a,disabled:i,onClick:t,className:`md-btn`+(n?` primary`:``)+(r?` small`:``),children:e})}function du({html:e,title:t,onLoad:n,frameRef:r}){let i=(0,b.useMemo)(()=>URL.createObjectURL(new Blob([e],{type:`text/html`})),[e]);return(0,b.useEffect)(()=>()=>URL.revokeObjectURL(i),[i]),(0,U.jsx)(`iframe`,{ref:r,sandbox:`allow-scripts`,title:t,src:i,onLoad:n})}function fu({label:e,children:t,hint:n}){return(0,U.jsxs)(`label`,{className:`md-field`,children:[(0,U.jsx)(`span`,{children:e}),t,n&&(0,U.jsx)(`small`,{children:n})]})}function pu(){let[e,t]=(0,b.useState)(nu),[n,r]=(0,b.useState)(()=>new URLSearchParams(location.search).get(`page`)===`templates`?`templates`:`studio`),[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(``),[c,l]=(0,b.useState)(`content`),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(null),[m,h]=(0,b.useState)(``),[g,_]=(0,b.useState)(`הכול`),[v,y]=(0,b.useState)(``),[x,S]=(0,b.useState)(!1),[w,T]=(0,b.useState)(0),[E,D]=(0,b.useState)([]),[O,te]=(0,b.useState)([]),[k,ne]=(0,b.useState)(``),[re,ie]=(0,b.useState)(``),[ae,se]=(0,b.useState)(``),[ce,le]=(0,b.useState)(``),[ue,fe]=(0,b.useState)(`נשמר במחשב`),[ve,ye]=(0,b.useState)(!1),[be,A]=(0,b.useState)(!1),[j,Ce]=(0,b.useState)([]),we=(0,b.useRef)(null),Te=(0,b.useRef)(null),Ee=(0,b.useRef)(null),[Ae,Me]=(0,b.useState)(null),[Ne,Pe]=(0,b.useState)([]),[Re,ze]=(0,b.useState)([]),[Be,He]=(0,b.useState)(!1),[We,qe]=(0,b.useState)(null),[Je,Ye]=(0,b.useState)(``),[$e,et]=(0,b.useState)(``),[nt,rt]=(0,b.useState)(null),[at,ot]=(0,b.useState)(`הסרטון החדש שלי`),[ut,dt]=(0,b.useState)(`blank`),[ft,pt]=(0,b.useState)(`16:9`),[mt,ht]=(0,b.useState)(``),[_t,yt]=(0,b.useState)(`source`),[bt,xt]=(0,b.useState)(!1),[St,Ct]=(0,b.useState)(``),[wt,Tt]=(0,b.useState)(``),[Et,Dt]=(0,b.useState)(``),[Ot,kt]=(0,b.useState)({});(0,b.useEffect)(()=>{W(()=>import(`./catalog-CDdvrdnk.js`).then(e=>Pe((e.halvaaStyles||[]).map(e=>({...e,name:e.title.he,previewTitle:e.title.he,category:e.series.title,duration:e.durationSeconds})))),[],import.meta.url).catch(()=>{})},[]),(0,b.useEffect)(()=>{let e=!0;return window.motionDesk?.listUserTemplates?.().then(t=>{e&&ze(t)}).catch(()=>{}),()=>{e=!1}},[]);let At=(0,b.useMemo)(()=>Yt(e),[e]),jt=(0,b.useMemo)(()=>{if(!e.source)return null;try{return bn(e.source.current)||null}catch{return null}},[e.source]),M=e.scenes.find(e=>e.id===i)||e.scenes[0],N=iu(M?.layers||[]).find(e=>e.id===o)||iu(M?.layers||[]).find(e=>e.id===ou(M)),Mt=e.mode===`imported-source`?jt?.duration||0:Vt(e),Nt=iu(M?.layers||[]).filter(e=>u||e.type===`text`);(0,b.useLayoutEffect)(()=>{let t=Ee.current,r=()=>{if(!t||!N||e.mode!==`authored`||n!==`editor`){Me(null);return}let r=t.querySelector(`[data-layer-id="${CSS.escape(N.id)}"]`);if(!r){Me(null);return}let i=t.getBoundingClientRect(),a=r.getBoundingClientRect();Me({left:a.left-i.left,top:a.top-i.top,width:a.width,height:a.height})};r();let i=new ResizeObserver(r);return t&&i.observe(t),window.addEventListener(`resize`,r),()=>{i.disconnect(),window.removeEventListener(`resize`,r)}},[N?.id,e,w,n]);let P=e=>{y(e),setTimeout(()=>y(``),4e3)},Pt=()=>window.motionDesk?.listProjects?.().then(Ce).catch(()=>{}),Ft=async e=>{let t={...e,id:Lt(`project`),revision:0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};return await window.motionDesk?.saveProject?.(Zt(t)),t},F=n=>{D(t=>[...t.slice(-39),e]),te([]),t({...n,revision:e.revision+1,updatedAt:new Date().toISOString()}),fe(`נשמר במחשב`)},It=t=>M&&F({...e,scenes:e.scenes.map(e=>e.id===M.id?{...e,...t}:e)}),Ut=e=>M&&N&&It({layers:au(M.layers,N.id,e)}),qt=t=>{if(!M||!N)return!1;try{return F(wr(e,M.id,N.id,t)),!0}catch(e){return P(`המספר לא השתנה: `+(e instanceof Error?e.message:String(e))),!1}},Jt=t=>{if(!M)return!1;try{let n=Sr(e,M.id,t);return n!==e&&F(n),!0}catch(e){return P(`משך הסצנה לא השתנה: `+(e instanceof Error?e.message:String(e))),!1}},Xt=()=>{E.length&&(te(t=>[e,...t]),t(E[E.length-1]),D(E.slice(0,-1)))},$t=()=>{O.length&&(D(t=>[...t,e]),t(O[0]),te(O.slice(1)))};(0,b.useEffect)(()=>{let e=!0,n=window.motionDesk;if(!n?.loadLocalProject)ye(!0);else return n.loadLocalProject().then(n=>{if(e){if(n){let e=Qt(n);t(e),T(ru(e))}ye(!0),Pt()}}).catch(()=>{e&&(fe(`לא ניתן לטעון פרויקט שמור`),ye(!0))}),()=>{e=!1}},[]),(0,b.useEffect)(()=>{if(!ve)return;let t;try{t=Zt(e),window.motionDesk?.saveLocalProject||localStorage.setItem(`motiondesk.project`,t)}catch{fe(`לא ניתן לשמור פרויקט לא תקין`);return}let n=window.motionDesk;if(!n?.saveLocalProject){fe(`נשמר במחשב`);return}fe(`שומר במחשב...`);let r=setTimeout(()=>{n.saveLocalProject(t).then(()=>{fe(`נשמר במחשב`),Pt()}).catch(()=>fe(`השמירה בדיסק נכשלה — יש להוריד קובץ פרויקט`))},500);return()=>clearTimeout(r)},[e,ve]),(0,b.useEffect)(()=>{let e=e=>{if(!(e.metaKey||e.ctrlKey)||n!==`editor`)return;let t=e.target,r=!!t&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName));e.code===`KeyS`&&(e.preventDefault(),un(`project`)),e.code===`KeyZ`&&!r&&(e.preventDefault(),e.shiftKey?$t():Xt())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[e,E,O,n]),(0,b.useEffect)(()=>{if(!x||e.mode===`imported-source`&&window.motionDesk?.createSourceSession)return;let t=performance.now(),n=setInterval(()=>{let e=performance.now();T(n=>{let r=n+(e-t)/1e3;return t=e,r>=Mt?(S(!1),0):r})},33);return()=>clearInterval(n)},[x,Mt,e.mode]),(0,b.useLayoutEffect)(()=>{if(e.mode!==`authored`)return;let t=Ht(e,w)?.scene;t&&t.id!==i&&(a(t.id),s(ou(t)))},[e,w,i]),(0,b.useEffect)(()=>{try{Te.current?.contentWindow?.postMessage({type:`motiondesk:seek`,time:w,playing:x},`*`)}catch{}},[w,x]);let en=(t,n)=>{S(!1);try{let r=xn(e,[{fieldId:t,value:n}],jt?.fingerprint);r&&F(r)}catch(e){P(`לא ניתן לעדכן את המקור: `+String(e))}},tn=e.mode===`imported-source`&&!!e.source?.sourceUrl&&!!window.motionDesk?.sourceFrame,rn=e.mode===`imported-source`&&!!e.source?.sourceUrl&&!!window.motionDesk?.createSourceSession,cn=(0,b.useMemo)(()=>{try{return e.mode===`imported-source`?sn(e.source?.current||``):dn(e)}catch{return`<body style="font-family:Arial;direction:rtl">התצוגה אינה זמינה</body>`}},[e]);function ln(t){t&&(F(t),a(t.scenes[0]?.id||``),s(ou(t.scenes[0]))),d(!1),r(`editor`),T(ru(t||e)),S(!1),le(``)}async function un(t){try{let n=t===`project`?Zt(e):e.mode===`imported-source`?e.source?.current||``:dn(e),r=window.motionDesk,i=e.title+(t===`project`?r?.saveText?`.motiondesk`:`.motiondesk.json`:`.html`);r?.saveText?await r.saveText({kind:t,suggestedName:i,content:n})&&P(t===`project`?`תיקיית הפרויקט הניידת נשמרה בהצלחה`:`הקובץ נשמר בהצלחה`):(cu(n,i,t===`project`?`application/json`:`text/html`),P(`הקובץ הורד למחשב`))}catch(e){P(`השמירה נכשלה: `+String(e))}}async function pn(){try{let e=await window.motionDesk?.openExample();e?.content&&(ln(Qt(e.content)),p(null),P(`דוגמת הבנק נפתחה לעריכה`))}catch(e){P(`לא ניתן לפתוח את הדוגמה: `+String(e))}}async function mn(){try{let e=await window.motionDesk?.openProjectFolder();e?.content&&(ln(Qt(e.content)),p(null),P(`תיקיית הפרויקט נפתחה`))}catch(e){P(`לא ניתן לפתוח את הפרויקט: `+String(e))}}async function hn(t){if(!t)return;let n=e,i=`assets`,o=0;for(let e of Array.from(t))try{if(/\.zip$/i.test(e.name)){if(!window.motionDesk?.importTemplateZip)throw Error(`ייבוא ZIP זמין בהתקנה המקומית של MotionDesk`);let t=await window.motionDesk.importTemplateZip(e);ze(e=>[t,...e]),n=Qt((await window.motionDesk.openCatalogTemplate(t.id)).content),i=`editor`}else if(/\.(json|motiondesk)$/i.test(e.name))n=await Ft(su(await e.text())),i=`editor`;else if(/\.html?$/i.test(e.name)){let t=await e.text();if(n=fn(t)||an(e.name,t),n.source){let e=bn(n.source.current);n={...n,canvas:{...n.canvas,width:e.width,height:e.height}}}n=await Ft(n),i=`editor`}else{let t=await new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=n,r.readAsDataURL(e)}),r=e.type.startsWith(`video`)?`video`:e.type.startsWith(`audio`)?`audio`:`image`,i;(r===`audio`||r===`video`)&&(i=await new Promise(e=>{let n=document.createElement(r);n.preload=`metadata`,n.onloadedmetadata=()=>e(n.duration),n.onerror=()=>e(void 0),n.src=t}));let a={id:Y(),name:e.name,kind:r,src:t,mime:e.type,duration:i};n={...n,assets:[...n.assets,a]}}o++}catch(e){P(`לא ניתן לפתוח: `+String(e))}o&&(Pt(),F(n),a(n.scenes[0]?.id||``),s(ou(n.scenes[0])),T(ru(n)),S(!1),r(i),P(o===1?`הקובץ נטען לפרויקט ולתבניות`:`${o} קבצים נטענו לפרויקט`),p(null)),we.current&&(we.current.value=``)}async function gn(){let t=window.motionDesk;if(!t?.openFiles)we.current?.click();else try{let n=await t.openFiles(),i=e,o=`assets`;for(let e of n)if((e.kind===`project`||e.kind===`config`)&&e.content)i=await Ft(su(e.content)),o=`editor`;else if(e.kind===`html`&&e.content){if(i=fn(e.content)||an(e.name,e.content),i.source){let t=bn(i.source.current);i={...i,canvas:{...i.canvas,width:t.width,height:t.height},source:{...i.source,...e.sourceUrl?{sourceUrl:e.sourceUrl}:{}}}}i=await Ft(i),o=`editor`}else if(e.url){let n=(e.kind===`video`||e.kind===`audio`)&&t.probeMedia?await t.probeMedia(e.url):{},r={id:Y(),name:e.name,kind:e.kind,src:e.url,mime:e.mime||``,duration:n.duration};i={...i,assets:[...i.assets,r]}}n.length&&(Pt(),F(i),a(i.scenes[0]?.id||``),s(ou(i.scenes[0])),T(ru(i)),S(!1),r(o),P(`${n.length} קבצים נטענו לפרויקט`)),p(null)}catch(e){P(String(e))}}function _n(){try{let e=su(wt);Dt(``),ln(e),p(null),P(`הקונפיגורציה הפכה לפרויקט עריך`)}catch(e){Dt(e instanceof Error?e.message:String(e))}}function vn(e,t){if(!M)return;let n=Rt(e,{text:e===`text`?`הטקסט שלך כאן`:void 0,name:e===`text`?`כותרת חדשה`:e===`shape`?`צורה חדשה`:`תמונה`,x:200,y:220,width:e===`text`?1100:500,height:e===`text`?180:400,assetId:t,color:e===`shape`?`#e30613`:`#ffffff`,...e===`path`?{pathData:`M 0 100 C 150 0 350 200 500 100`,stroke:`#e30613`,strokeWidth:12}:{},...e===`group`?{name:`קבוצה חדשה`,children:[Rt(`shape`,{name:`רקע`,x:0,y:0,width:500,height:400,color:`#e30613`,start:0,duration:5}),Rt(`text`,{name:`טקסט בקבוצה`,text:`הטקסט שלך`,x:30,y:140,width:440,height:120,fontSize:48,start:0,duration:5})]}:{}});It({layers:[...M.layers,n]}),s(n.id),l(`content`),r(`editor`)}function yn(t,n){if(e.mode!==`authored`||!M)return P(`כדי להוסיף נכס, פתחו קודם פרויקט Motion בעורך`),!1;let i=Math.round(Math.min(e.canvas.width,e.canvas.height)*.34),a=gl(t,n,{x:e.canvas.width/2,y:e.canvas.height/2,size:i,duration:M.duration});return It({layers:[...M.layers,a]}),s(a.id),d(!0),A(!1),r(`editor`),!0}function L(){let t=zt(`סצנה חדשה`,5),n=Vt(e);F({...e,scenes:[...e.scenes,t]}),a(t.id),s(ou(t)),T(n+Math.min(1.1,t.duration*.45)),S(!1)}async function Sn(e,t,n){try{if(_t===`source`){if(e.sourceProject?.editableSourceAvailable!==!0)throw Error(`מקור עריך אינו זמין בסגנון הזה. אפשר לבחור תבנית פתיחה בנפרד.`);if(!window.motionDesk?.openCatalogTemplate)throw Error(`לפתיחת המקור המלא יש להשתמש בשרת Web המקומי או באפליקציית המחשב.`);let n=Qt((await window.motionDesk.openCatalogTemplate(e.id)).content);if(n.mode!==`imported-source`||!n.source)throw Error(`לא נמצא מקור HyperFrames עריך בסגנון הזה.`);let r=new Date().toISOString();return ln({...structuredClone(n),id:Y(),title:t||e.name,templateId:e.id,revision:0,createdAt:r,updatedAt:r}),P(`נפתח עותק עבודה של מקור HyperFrames`),!0}let r=(await W(()=>import(`./catalog-CDdvrdnk.js`),[],import.meta.url)).styleSeedToProject(e);if(r.title=t||e.name,n){let[e,t]=n===`9:16`?[1080,1920]:n===`1:1`?[1080,1080]:[1920,1080],i=e/r.canvas.width,a=t/r.canvas.height;r.scenes.forEach(e=>e.layers.forEach(e=>{e.x*=i,e.y*=a,e.width*=i,e.height*=a,e.fontSize=Math.round(e.fontSize*Math.min(i,a))})),r.canvas={...r.canvas,width:e,height:t}}return ln(r),!0}catch(e){return Ct(e instanceof Error?e.message:String(e)),!1}}function Cn(e,t=`source`){dt(e?`gallery`:`blank`),ot(e?.name||`הסרטון החדש שלי`),ht(e?.id||Ne[0]?.id||``),pt(e?.aspectRatio||`16:9`),yt(t),Ct(``),p(`new`)}function wn(e){Cn(e,`source`)}async function Tn(e){try{if(!window.motionDesk?.openCatalogTemplate)throw Error(`התבנית זמינה בהתקנה המקומית בלבד`);let t=Qt((await window.motionDesk.openCatalogTemplate(e.id)).content);if(t.mode!==`imported-source`||!t.source)throw Error(`מקור התבנית אינו תקין`);let n=new Date().toISOString();ln({...structuredClone(t),id:Y(),title:e.title,revision:0,createdAt:n,updatedAt:n}),p(null),P(`נפתח עותק עריך של תבנית ה־ZIP`)}catch(e){P(`פתיחת התבנית נכשלה: `+String(e))}}let En=e=>!!(e.sourceProject&&/^whatsapp-(?:121656|122305|122338)$/.test(e.id));async function Dn(e,t){try{if(!En(e)||!window.motionDesk?.openCatalogTemplate)throw Error(`מקור HTML עריך אינו זמין לסרטון הזה`);let n=Qt((await window.motionDesk.openCatalogTemplate(e.id)).content);if(n.mode!==`imported-source`||!n.source)throw Error(`קובץ המקור אינו תקין`);let r=new Date().toISOString();return ln({...structuredClone(n),id:Y(),title:t||e.title,templateId:e.id,revision:0,createdAt:r,updatedAt:r}),p(null),P(e.sourceKind===`editable-reconstruction`?`נפתח שחזור HTML עריך של הסרטון`:`נפתח עותק עריך של מקור ה־HTML`),!0}catch(e){return Ct(e instanceof Error?e.message:String(e)),P(`פתיחת מקור ה־HTML נכשלה: `+String(e)),!1}}async function On(){xt(!0),Ct(``);try{let[e,t]=ft===`9:16`?[1080,1920]:ft===`1:1`?[1080,1080]:[1920,1080];if(ut===`gallery`){let e=ys.find(e=>`sample-${e.id}`===mt);if(e){if(_t===`source`&&En(e)){if(!await Dn(e,at.trim()||e.title))return}else{let t=Ss(e);t.title=at.trim()||e.title,ln(t)}}else{let e=El.find(e=>`bank-${e.id}`===mt)||Ol.find(e=>`starter-${e.id}`===mt);if(e){let t=ur(e.config);t.title=at.trim()||e.title,ln(t)}else{let e=Ne.find(e=>e.id===mt);if(!e){Ct(`בחר תבנית מהגלריה`);return}if(!await Sn(e,at.trim()||`הסרטון החדש שלי`,ft))return}}}else{let n=zt(`פתיחה`,5);n.layers=[Rt(`text`,{name:`כותרת פתיחה`,text:`הסיפור שלך מתחיל כאן`,x:e*.1,y:t*.35,width:e*.8,height:t*.25,fontSize:Math.round(e*(e<t?.075:.055)),textAlign:`center`,duration:5})],ln(Bt(at.trim()||`הסרטון החדש שלי`,{canvas:{width:e,height:t,fps:30},scenes:[n]}))}p(null)}finally{xt(!1)}}let kn=Ne.filter(e=>(g===`הכול`||(e.categoryLabel||e.category)===g)&&(!m||JSON.stringify([e.name,e.title,e.category,e.tags,Ll(e.id).tags]).toLowerCase().includes(m.toLowerCase()))),An=ys.filter(e=>(g===`הכול`||g===`הסרטונים שלי`)&&(!m||JSON.stringify([e.title,e.originalFilename,Ll(`sample:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),jn=El.filter(e=>(g===`הכול`||g===`השראה מערוץ הבנק`)&&(!m||JSON.stringify([e.title,e.category,e.description,Ll(`bank:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),Mn=Ol.filter(e=>(g===`הכול`||g===`מצגות תנועה חדשות`)&&(!m||JSON.stringify([e.title,e.category,e.description,Ll(`starter:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),Nn=Wl.filter(e=>(g===`הכול`||g===`מושן v3 מתקדם`)&&(!m||JSON.stringify([e.title,e.description,Ll(`showcase:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),Pn=Kl.filter(e=>(g===`הכול`||g===`מושן v4`)&&(!m||JSON.stringify([e.title,e.description]).toLowerCase().includes(m.toLowerCase()))),Fn=Ul.filter(e=>(g===`הכול`||g===`מושן v2 משופר`)&&(!m||JSON.stringify([e.title,e.description,Ll(`enhanced:${e.id}`).tags]).toLowerCase().includes(m.toLowerCase()))),In=Re.filter(e=>(g===`הכול`||g===`תבניות שייבאתי`)&&(!m||JSON.stringify([e.title,Rl(e).tags]).toLocaleLowerCase().includes(m.toLocaleLowerCase()))),Ln=Ne.find(e=>e.id===mt),Rn=ys.find(e=>`sample-${e.id}`===mt),zn=El.find(e=>`bank-${e.id}`===mt),R=Ol.find(e=>`starter-${e.id}`===mt),Bn=zn||R,z=Rn?En(Rn):Ln?.sourceProject?.editableSourceAvailable===!0,B=[`הכול`,`מושן v4`,`מושן v3 מתקדם`,`מושן v2 משופר`,`תבניות שייבאתי`,`מצגות תנועה חדשות`,`הסרטונים שלי`,`השראה מערוץ הבנק`,...Array.from(new Set(Ne.map(e=>e.categoryLabel||e.category).filter(Boolean)))],Vn=(0,U.jsx)(`div`,{className:`md-grid`,children:In.map((e,t)=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsxs)(`div`,{className:`md-user-thumb`,children:[(0,U.jsx)(uu,{title:e.title,index:t+1,duration:Math.round(e.duration)}),(0,U.jsx)(`img`,{src:`/api/template/${e.id}/poster`,alt:`תצוגה מתוך ${e.title}`,loading:`lazy`,onError:e=>{e.currentTarget.style.display=`none`}})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge green`,children:`ZIP עריך`})]}),(0,U.jsxs)(`p`,{children:[e.fileCount,` קובצי מקור ונכסים · `,e.width,`×`,e.height,` · `,e.duration.toFixed(1),` שניות`]}),(0,U.jsx)(Bl,{metadata:Rl(e)}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>void Tn(e),children:`פתיחת עותק לעריכה ←`})]})]},e.id))}),Hn=e=>(0,U.jsx)(`div`,{className:`md-grid`,children:e.map(e=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsxs)(`div`,{className:`md-poster`,children:[(0,U.jsx)(`img`,{src:e.source.posterUrl,alt:e.name,loading:`lazy`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[e.aspectRatio,` · `,e.durationSeconds,`s`]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.name||e.title?.he}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.categoryLabel||e.category||`Motion`})]}),(0,U.jsx)(`p`,{children:e.description||`תבנית עריכה מובנית עם סצנות, תוכן ותנועה`}),(0,U.jsx)(Bl,{metadata:Ll(e.id)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsxs)(`button`,{className:`md-open`,onClick:()=>{rt(e),p(`reference`)},children:[(0,U.jsx)(Fe,{size:10}),`צפייה ברפרנס`]}),(0,U.jsx)(`button`,{className:`md-open`,disabled:e.sourceProject?.editableSourceAvailable!==!0,onClick:()=>wn(e),children:e.sourceProject?.editableSourceAvailable===!0?`עריכת המקור ←`:`מקור עדיין לא זמין`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge `+(e.sourceProject?.editableSourceAvailable===!0?`green`:``),children:e.sourceProject?.editableSourceAvailable===!0?`מקור HyperFrames`:`תבנית פתיחה זמינה`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>Cn(e,`seed`),children:`תבנית פתיחה`})]})]})]},e.id))}),V=(0,U.jsx)(`div`,{className:`md-grid md-sample-grid`,children:An.map(e=>{let t=En(e),n=e.sourceKind===`editable-reconstruction`;return(0,U.jsxs)(`article`,{className:`md-template md-sample-card`,children:[(0,U.jsxs)(`div`,{className:`md-poster`,children:[(0,U.jsx)(`img`,{src:`./reference/user-samples/${e.poster}`,alt:e.title,loading:`lazy`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[e.width<e.height?`9:16`:`16:9`,` · `,e.durationSeconds,`s`]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge `+(t?`green`:`red`),children:t?n?`HTML משוחזר`:`מקור HTML`:`MP4`})]}),(0,U.jsx)(`p`,{children:t?n?`שחזור HTML עריך של הכותרות והגרפיקה, לצד קטעי צילום מן הסרטון.`:`מקור HTML שנמצא במחשב והותאם לעריכת טקסט, צורות ותנועה.`:`תבנית MP4 לחיתוך, פיצול ושינוי שמע המקור.`}),(0,U.jsx)(Bl,{metadata:Ll(`sample:${e.id}`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsxs)(`button`,{className:`md-open`,onClick:()=>{rt({name:e.title,description:e.originalFilename,source:{videoUrl:`motiondesk-media://sample-${e.id}`,posterUrl:`./reference/user-samples/${e.poster}`},sample:e}),p(`reference`)},children:[(0,U.jsx)(Fe,{size:10}),`צפייה בסרטון`]}),t&&(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>void Dn(e),children:`עריכת HTML ←`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge`,children:`MP4 מקורי`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>{ln(Ss(e)),P(`נפתחה תבנית MP4 לעריכה בסיסית`)},children:`עריכת MP4 בסיסית`})]})]})]},e.id)})}),H=(0,U.jsx)(`div`,{className:`md-grid`,children:jn.map(e=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsxs)(`div`,{className:`md-thumb md-bank-preview`,children:[(0,U.jsx)(`img`,{src:`/catalog/bank-previews/${e.id}.webp`,alt:`פריים מתוך ${e.title}`,loading:`lazy`}),(0,U.jsxs)(`span`,{className:`md-duration`,children:[`00:`,String(Math.round(e.config.scenes.reduce((e,t)=>e+t.duration,0))).padStart(2,`0`)]})]}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.category})]}),(0,U.jsx)(`p`,{children:e.description}),(0,U.jsx)(Bl,{metadata:Ll(`bank:${e.id}`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(ur(e.config)),children:`פתיחה לעריכה ←`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>cu(JSON.stringify(e.config,null,2),`${e.id}.json`,`application/json`),children:`הורדת JSON`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge`,children:`טיוטת השראה · v1`}),(0,U.jsx)(`a`,{className:`md-open`,href:e.sourceUrl,target:`_blank`,rel:`noopener noreferrer`,children:`סרטון ההשראה ↗`})]})]})]},e.id))}),Un=(0,U.jsx)(`div`,{className:`md-grid`,children:Mn.map((e,t)=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(uu,{title:e.title,index:t+1,duration:Math.round(e.config.scenes.reduce((e,t)=>e+t.duration,0))}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.category})]}),(0,U.jsx)(`p`,{children:e.description}),(0,U.jsx)(Bl,{metadata:Ll(`starter:${e.id}`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(ur(e.config)),children:`פתיחה לעריכה ←`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>cu(JSON.stringify(e.config,null,2),`${e.id}.json`,`application/json`),children:`הורדת JSON`})]}),(0,U.jsxs)(`div`,{className:`md-card-secondary`,children:[(0,U.jsx)(`span`,{className:`md-badge green`,children:`טקסט ותנועה עריכים`}),(0,U.jsx)(`span`,{className:`md-badge`,children:`קובץ מידע עצמאי`})]})]})]},e.id))}),Wn=(0,U.jsxs)(`div`,{className:`md-pagehead`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`div`,{className:`md-eyebrow`,children:`סביבת היצירה שלך`}),(0,U.jsx)(`h1`,{children:eu[n]}),(0,U.jsx)(`p`,{children:n===`templates`?`מתחילים מרעיון טוב. ממשיכים עם תבנית שאפשר לשנות.`:n===`assets`?`קבצי המדיה ששמורים בתוך הפרויקט שלך.`:n===`music`?`מוזיקות הרקע מהתבניות שלך. האזנה, בחירה והוספה לסרטון.`:n===`prompts`?`מנסחים רעיון, מעתיקים פרומפט ומייבאים קונפיגורציה עריכה.`:`יוצרים ועורכים פרויקטים, סצנות ותנועה במקום אחד.`})]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>Cn(),children:[(0,U.jsx)(Ie,{size:15}),`פרויקט חדש`]})]});return(0,U.jsxs)(`div`,{className:`md-app`,children:[(0,U.jsx)(`input`,{ref:we,type:`file`,accept:`.zip,.html,.htm,.json,.motiondesk,image/*,video/*,audio/*`,hidden:!0,multiple:!0,onChange:e=>hn(e.target.files)}),(0,U.jsxs)(`nav`,{className:`md-nav`,children:[(0,U.jsxs)(`div`,{className:`md-logo`,children:[`Motion`,(0,U.jsx)(`span`,{children:`Desk`})]}),(0,U.jsx)(`div`,{className:`md-nav-sub`,children:`רעיונות מקבלים תנועה.`}),(0,U.jsx)(`div`,{className:`md-nav-label`,children:`סביבת העבודה`}),[`studio`,`home`,`projects`,`templates`,`editor`,`assets`,`music`,`prompts`].filter(e=>e!==`templates`&&e!==`music`).map(e=>{let t=$l[e];return(0,U.jsxs)(`button`,{className:`md-nav-item `+(n===e?`active`:``),onClick:()=>{S(!1),r(e),h(``)},children:[(0,U.jsx)(t,{size:17}),(0,U.jsx)(`span`,{children:eu[e]})]},e)}),(0,U.jsx)(`div`,{className:`md-nav-label`,children:`הפרויקט`}),(0,U.jsxs)(`button`,{className:`md-nav-item `+(n===`settings`?`active`:``),onClick:()=>r(`settings`),children:[(0,U.jsx)(Ge,{size:17}),(0,U.jsx)(`span`,{children:`הגדרות`})]}),(0,U.jsxs)(`div`,{className:`md-nav-bottom`,children:[(0,U.jsx)(`div`,{className:`md-avatar`,children:`א`}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`b`,{children:`המרחב של אורן`}),(0,U.jsx)(`small`,{children:`קבצים מקומיים · עבודה אישית`})]})]})]}),(0,U.jsxs)(`div`,{className:`md-shell`,children:[(0,U.jsxs)(`header`,{className:`md-topbar`,children:[(0,U.jsxs)(`div`,{className:`md-crumb`,children:[(0,U.jsx)(`span`,{children:`המרחב שלי`}),(0,U.jsx)(oe,{size:12}),(0,U.jsx)(`strong`,{children:eu[n]})]}),(0,U.jsxs)(`div`,{className:`md-local`,children:[(0,U.jsx)(`i`,{className:`md-dot`}),`כל השינויים נשמרים מקומית`,(0,U.jsx)(De,{size:14})]})]}),n===`editor`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-editor-head`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`input`,{"aria-label":`שם הפרויקט`,className:`md-projecttitle`,value:e.title,onChange:t=>F({...e,title:t.target.value})}),(0,U.jsxs)(`div`,{className:`md-project-meta`,children:[(0,U.jsx)(`span`,{className:`md-dot`}),ue,(0,U.jsx)(`span`,{children:`·`}),(0,U.jsx)(`span`,{children:e.mode===`authored`?`פרויקט Motion`:e.mode===`imported-source`?`קובץ מקור HTML`:`וידאו שטוח`}),(0,U.jsx)(`span`,{children:`·`}),(0,U.jsxs)(`bdi`,{children:[e.canvas.width,` × `,e.canvas.height]})]})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(`button`,{className:`md-btn icon`,"aria-label":`ביטול פעולה`,disabled:!E.length,onClick:Xt,children:(0,U.jsx)(ct,{size:15})}),(0,U.jsx)(`button`,{className:`md-btn icon`,"aria-label":`ביצוע חוזר`,disabled:!O.length,onClick:$t,children:(0,U.jsx)(Le,{size:15})}),(0,U.jsxs)(X,{onClick:()=>p(`import`),children:[(0,U.jsx)(lt,{size:14}),`ייבוא`]}),(0,U.jsxs)(X,{onClick:()=>un(`project`),children:[(0,U.jsx)(Ve,{size:14}),`שמירה`]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>p(`export`),children:[(0,U.jsx)(me,{size:14}),`ייצוא`]})]})]}),(0,U.jsxs)(`div`,{className:`md-editor-layout`,children:[(0,U.jsxs)(`aside`,{className:`md-scenes`,children:[(0,U.jsxs)(`div`,{className:`md-sceneshead`,children:[(0,U.jsx)(`h3`,{className:`md-paneltitle`,children:`סצנות`}),(0,U.jsx)(`span`,{className:`md-badge`,children:e.scenes.length})]}),e.scenes.map((t,n)=>(0,U.jsxs)(`button`,{className:`md-scene `+(t.id===M?.id?`active`:``),onClick:()=>{a(t.id),s(ou(t)),T(e.scenes.slice(0,n).reduce((e,t)=>e+t.duration,0)+Math.min(1.1,t.duration*.45))},children:[(0,U.jsx)(`div`,{className:`md-scene-preview`,children:(0,U.jsx)(Es,{project:{...e,scenes:[t],mediaTracks:[]},sceneStartOffset:e.scenes.slice(0,n).reduce((e,t)=>e+t.duration,0),time:Math.min(.7,t.duration/2)})}),(0,U.jsxs)(`div`,{className:`md-scene-meta`,children:[(0,U.jsxs)(`b`,{children:[n+1,`. `,t.name]}),(0,U.jsxs)(`bdi`,{children:[Math.round(t.duration*100)/100,`s`]})]})]},t.id)),e.mode===`flat-video`&&(0,U.jsx)(X,{small:!0,onClick:()=>r(`assets`),children:`חיתוך, פיצול ושמע ←`}),e.mode===`authored`&&(0,U.jsxs)(X,{small:!0,onClick:L,children:[(0,U.jsx)(Ie,{size:13}),`הוספת סצנה`]}),e.mode===`imported-source`&&(0,U.jsxs)(X,{small:!0,onClick:()=>{ne(e.source?.current||``),p(`source`)},children:[(0,U.jsx)(de,{size:13}),`עריכת מקור`]})]}),(0,U.jsxs)(`section`,{className:`md-workspace`,children:[e.mode===`imported-source`&&e.mediaTracks.filter(e=>e.type===`audio`).flatMap(t=>t.clips.map(n=>{let r=e.assets.find(e=>e.id===n.assetId);return r?(0,U.jsx)(Cs,{src:xs(r.src),time:n.in+w-n.start,active:w>=n.start&&w<n.start+n.out-n.in,playing:x,muted:t.muted||n.muted,volume:n.volume},n.id):null})),(0,U.jsxs)(`div`,{className:`md-canvas-tools`,children:[(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(Oe,{size:13}),(0,U.jsx)(`span`,{children:M?.name||`תצוגת מקור`})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(`span`,{children:[e.canvas.fps,` FPS`]}),(0,U.jsx)(`span`,{children:`·`}),(0,U.jsx)(`span`,{children:`התאמה למסך`}),(0,U.jsx)(vt,{size:13})]})]}),(0,U.jsx)(`div`,{className:`md-canvaswell`,children:(0,U.jsxs)(`div`,{ref:Ee,className:`md-canvasstage`,style:{aspectRatio:`${e.canvas.width}/${e.canvas.height}`,width:e.canvas.width<e.canvas.height?`min(100%, 280px)`:e.canvas.width===e.canvas.height?`min(100%, 450px)`:`100%`},children:[e.mode===`imported-source`?rn?(0,U.jsx)(Qr,{sourceUrl:e.source.sourceUrl,html:e.source.current,time:w,playing:x,selectedFieldId:ce,report:jt,onTime:T,onEnded:()=>S(!1),onFieldSelect:e=>{S(!1),le(e)},onPause:()=>S(!1)}):tn?(0,U.jsx)(Zr,{sourceUrl:e.source.sourceUrl,html:e.source.current,time:w}):ks(e.source?.current||``)?(0,U.jsx)(Us,{frameRef:Te,title:`תצוגת HyperFrames`,html:e.source.current,start:{t:w}}):(0,U.jsx)(du,{frameRef:Te,title:`תצוגת פרויקט`,html:cn}):(0,U.jsx)(Es,{project:e,time:w,playing:x,onSelect:t=>{a(Ht(e,w)?.scene.id||``),s(t),Ht(e,w)?.scene.layers.find(e=>e.id===t)?.type!==`text`&&d(!0),l(`content`),requestAnimationFrame(()=>document.getElementById(`md-selected-layer-text`)?.focus())}}),N&&e.mode===`authored`&&Ae&&(0,U.jsx)(`div`,{className:`md-selectoverlay`,style:Ae})]})}),(0,U.jsxs)(`div`,{className:`md-playbar`,children:[(0,U.jsxs)(`bdi`,{children:[w.toFixed(2),` / `,Mt.toFixed(2)]}),(0,U.jsxs)(`div`,{className:`md-playcontrols`,children:[(0,U.jsx)(`button`,{"aria-label":`להתחלה`,onClick:()=>{S(!1),T(0)},children:(0,U.jsx)(Xe,{size:14})}),(0,U.jsx)(`button`,{className:`md-play`,disabled:e.mode===`imported-source`&&!rn&&!ks(e.source?.current||``),title:e.mode===`imported-source`&&!rn&&!ks(e.source?.current||``)?`תנועה זמינה בתצוגת המקור המבודדת`:void 0,"aria-label":x?`השהיה`:`ניגון`,onClick:()=>S(!x),children:x?(0,U.jsx)(je,{size:13}):(0,U.jsx)(Fe,{size:13})}),(0,U.jsx)(`button`,{"aria-label":`לסוף`,onClick:()=>{S(!1),T(Mt)},children:(0,U.jsx)(Ze,{size:14})})]}),(0,U.jsxs)(`span`,{children:[e.canvas.width,`:`,e.canvas.height]})]}),(0,U.jsxs)(`div`,{className:`md-timeline`,children:[(0,U.jsxs)(`div`,{className:`md-timeheader`,children:[(0,U.jsx)(`b`,{className:`md-paneltitle`,children:`ציר הזמן`}),(0,U.jsxs)(`span`,{className:`md-badge`,children:[Mt.toFixed(1),` שניות`]})]}),(0,U.jsx)(`div`,{className:`md-timeruler`,children:Array.from({length:7},(e,t)=>(0,U.jsxs)(`span`,{children:[(Mt*t/6).toFixed(0),`s`]},t))}),(0,U.jsxs)(`div`,{className:`md-track`,children:[(0,U.jsxs)(`span`,{className:`md-trackname`,children:[(0,U.jsx)(Se,{size:12}),`סצנות`]}),(0,U.jsxs)(`div`,{className:`md-trackcontent`,children:[e.mode===`imported-source`&&jt?.scenes.map(e=>(0,U.jsx)(`button`,{className:`md-trackclip gray`,disabled:!tn&&!rn,onClick:()=>{S(!1),T(e.start+Math.min(.2,e.duration/2))},style:{flex:e.duration},title:`מתחיל ב־${e.start.toFixed(1)} שניות`,children:e.name},e.id)),e.scenes.map(t=>(0,U.jsx)(`button`,{className:`md-trackclip `+(t.id===M?.id?`active`:``),style:{flex:t.duration},onClick:()=>{S(!1),a(t.id),s(ou(t)),T(e.scenes.slice(0,e.scenes.indexOf(t)).reduce((e,t)=>e+t.duration,0)+Math.min(1.1,t.duration*.45))},children:t.name},t.id))]})]}),(0,U.jsxs)(`div`,{className:`md-track`,children:[(0,U.jsxs)(`span`,{className:`md-trackname`,children:[(0,U.jsx)(st,{size:12}),`רכיבים`]}),(0,U.jsxs)(`div`,{className:`md-trackcontent`,children:[Nt.map(e=>(0,U.jsx)(`button`,{className:`md-trackclip gray`,onClick:()=>s(e.id),children:e.name},e.id)),M&&N&&yr(e,M,N).map(e=>(0,U.jsx)(`button`,{type:`button`,className:`md-keyframe-marker ${e.kind}`,style:{left:`${e.time/Math.max(Mt,.01)*100}%`},title:`${e.kind===`unit`?`יחידת טקסט`:`שכבה`} ${e.index+1}: ${e.time.toFixed(2)}s`,onClick:()=>{T(e.time),l(`motion`),S(!1)},"aria-label":`נקודת ${e.kind===`unit`?`יחידת טקסט`:`שכבה`} ${e.index+1} בזמן ${e.time.toFixed(2)} שניות`},`${e.kind}-${e.index}`))]})]}),e.mediaTracks.map(e=>(0,U.jsxs)(`div`,{className:`md-track`,children:[(0,U.jsxs)(`span`,{className:`md-trackname`,children:[(0,U.jsx)(ke,{size:12}),e.name]}),(0,U.jsx)(`div`,{className:`md-trackcontent`,children:(0,U.jsxs)(`div`,{className:`md-trackclip green`,children:[e.clips.length,` קטעים`]})})]},e.id)),(0,U.jsx)(`input`,{disabled:e.mode===`imported-source`&&!tn&&!rn,"aria-label":`מיקום בציר הזמן`,className:`md-scrubber`,type:`range`,dir:`ltr`,min:`0`,max:Mt||1,step:`0.01`,value:w,onChange:e=>{S(!1),T(+e.target.value)}})]})]}),(0,U.jsxs)(`aside`,{className:`md-inspector`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h3`,{className:`md-paneltitle`,children:e.mode===`imported-source`?`מאפייני המקור`:e.mode===`flat-video`?`עריכת וידאו`:`מאפייני רכיב`}),(0,U.jsx)(Qe,{size:15})]}),At.length>0&&(0,U.jsxs)(`details`,{className:`md-notice`,"data-testid":`project-warnings`,open:!0,children:[(0,U.jsxs)(`summary`,{children:[`קריאות הטקסט · `,At.length,` הערות`]}),At.slice(0,3).map(e=>(0,U.jsx)(`p`,{children:e.message},e.path)),At.length>3&&(0,U.jsxs)(`p`,{children:[`ועוד `,At.length-3,` תיבות טקסט. פצל תוכן צפוף לכמה סצנות.`]})]}),e.mode===`flat-video`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-notice`,children:`זהו MP4 ללא שכבות מקור. אפשר לחתוך, לפצל ולשנות את שמע המקור במסך המדיה.`}),(0,U.jsx)(X,{primary:!0,onClick:()=>r(`assets`),children:`פתיחת ערוצי המדיה ←`})]}):e.mode===`imported-source`?(0,U.jsxs)(U.Fragment,{children:[window.motionDesk?.previewSource&&e.source?.sourceUrl&&(0,U.jsxs)(X,{primary:!0,onClick:async()=>{try{await window.motionDesk.previewSource(e.source.sourceUrl,e.source?.current||``)}catch(e){P(`לא ניתן לפתוח תצוגה: `+String(e))}},children:[(0,U.jsx)(Fe,{size:13}),`פתיחת תצוגת המקור המבודדת`]}),jt?.fields.length?(0,U.jsx)(Xr,{report:jt,onEdit:en,onSceneSelect:e=>{S(!1),T(e)},selectedFieldId:ce,onFieldSelect:e=>{S(!1),le(e)}}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(fu,{label:`שדה טקסט במקור`,children:(0,U.jsxs)(`select`,{value:re,onChange:t=>{ie(t.target.value);let n=nn(e.source.filename,e.source.current).textFields.find(e=>e.id===t.target.value);se(n?.text||``)},children:[(0,U.jsx)(`option`,{value:``,children:`בחר שדה לפי מזהה`}),nn(e.source.filename,e.source.current).textFields.map(e=>(0,U.jsxs)(`option`,{value:e.id,children:[e.id,` · `,e.text.slice(0,25)]},e.id))]})}),(0,U.jsx)(fu,{label:`טקסט חלופי`,children:(0,U.jsx)(`input`,{value:ae,onChange:e=>se(e.target.value)})}),(0,U.jsx)(X,{primary:!0,disabled:!re,onClick:()=>{try{F(on(e,re,ae)),P(`הטקסט עודכן במקור`)}catch(e){P(String(e))}},children:`החלפת טקסט`}),(0,U.jsx)(`div`,{className:`md-notice`,children:e.source?.warnings?.join(` · `)||`קובץ מקור מיובא`})]})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-tabs`,children:[[`content`,`תוכן`],[`design`,`עיצוב`],[`motion`,`תנועה`]].map(([e,t])=>(0,U.jsx)(`button`,{className:`md-tab `+(c===e?`active`:``),onClick:()=>l(e),children:t},e))}),c===`motion`&&(0,U.jsx)(Vr,{project:e,scene:M,layer:N,time:w,onProjectChange:F,onTimeChange:e=>{S(!1),T(e)}},`${M?.id}-${N?.id}`),N?(0,U.jsxs)(U.Fragment,{children:[c===`content`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(fu,{label:`שם הרכיב`,children:(0,U.jsx)(`input`,{value:N.name,onChange:e=>Ut({name:e.target.value})})}),N.type===`text`&&(0,U.jsx)(fu,{label:`תוכן הטקסט`,hint:`השינוי מופיע מיד בתצוגה ונשמר בפרויקט.`,children:(0,U.jsx)(`textarea`,{id:`md-selected-layer-text`,value:N.text||``,onChange:e=>Ut({text:e.target.value,...N.countTo===void 0?{}:{countTo:void 0}})})}),(N.type===`path`||N.type===`svg`)&&(0,U.jsx)(Wr,{project:e,scene:M,layer:N,onProjectChange:F},N.id),N.type===`text`&&N.countTo!==void 0&&(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(kr,{label:`מספר התחלה`,value:N.countFrom??0,min:-1e9,max:1e9,onChange:e=>qt({from:e})},`${N.id}-from`),(0,U.jsx)(kr,{label:`מספר יעד`,value:N.countTo,min:-1e9,max:1e9,onChange:e=>qt({to:e})},`${N.id}-to`)]}),(0,U.jsx)(fu,{label:`צבע`,children:(0,U.jsx)(`input`,{"aria-label":`צבע הרכיב`,type:`color`,value:/^#[a-f0-9]{6}$/i.test(N.color)?N.color:`#ffffff`,onChange:e=>Ut({color:e.target.value})})}),N.type===`text`&&(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(fu,{label:`גודל גופן`,children:(0,U.jsx)(`input`,{type:`number`,min:`8`,max:`400`,value:N.fontSize,onChange:e=>Ut({fontSize:+e.target.value})})}),(0,U.jsx)(fu,{label:`משקל`,children:(0,U.jsxs)(`select`,{value:N.fontWeight,onChange:e=>Ut({fontWeight:+e.target.value}),children:[(0,U.jsx)(`option`,{value:`400`,children:`רגיל`}),(0,U.jsx)(`option`,{value:`600`,children:`בינוני`}),(0,U.jsx)(`option`,{value:`800`,children:`מודגש`}),(0,U.jsx)(`option`,{value:`900`,children:`כבד`})]})})]})]}),c===`design`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-two`,children:[`x`,`y`,`width`,`height`,`rotation`].map((e,t)=>(0,U.jsx)(fu,{label:[`מיקום X`,`מיקום Y`,`רוחב`,`גובה`,`סיבוב`][t],children:(0,U.jsx)(`input`,{type:`number`,value:N[e],onChange:t=>Ut({[e]:+t.target.value})})},e))}),(0,U.jsx)(fu,{label:`אטימות`,children:(0,U.jsx)(`input`,{type:`range`,min:`0`,max:`1`,step:`.01`,value:N.opacity,onChange:e=>Ut({opacity:+e.target.value})})}),(0,U.jsx)(fu,{label:`יישור`,children:(0,U.jsxs)(`select`,{value:N.textAlign,onChange:e=>Ut({textAlign:e.target.value}),children:[(0,U.jsx)(`option`,{value:`right`,children:`ימין`}),(0,U.jsx)(`option`,{value:`center`,children:`מרכז`}),(0,U.jsx)(`option`,{value:`left`,children:`שמאל`})]})}),(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(fu,{label:`ריווח אותיות`,children:(0,U.jsx)(`input`,{type:`number`,step:`.5`,value:N.letterSpacing??0,onChange:e=>Ut({letterSpacing:+e.target.value})})}),(0,U.jsx)(fu,{label:`גובה שורה`,children:(0,U.jsx)(`input`,{type:`number`,step:`.1`,min:`.5`,value:N.lineHeight??1.2,onChange:e=>Ut({lineHeight:+e.target.value})})}),(0,U.jsx)(fu,{label:`טשטוש`,children:(0,U.jsx)(`input`,{type:`number`,min:`0`,max:`100`,value:N.blur??0,onChange:e=>Ut({blur:+e.target.value})})}),(0,U.jsx)(fu,{label:`עובי מסגרת`,children:(0,U.jsx)(`input`,{type:`number`,min:`0`,value:N.borderWidth??0,onChange:e=>Ut({borderWidth:+e.target.value})})}),(0,U.jsx)(fu,{label:`צבע מסגרת`,children:(0,U.jsx)(`input`,{type:`color`,value:N.borderColor||`#000000`,onChange:e=>Ut({borderColor:e.target.value})})}),(0,U.jsx)(fu,{label:`מצב שילוב`,children:(0,U.jsx)(`select`,{value:N.blendMode||`normal`,onChange:e=>Ut({blendMode:e.target.value}),children:[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`].map(e=>(0,U.jsx)(`option`,{value:e,children:e},e))})})]}),(0,U.jsx)(fu,{label:`צל CSS`,children:(0,U.jsx)(`input`,{value:N.shadow||`none`,onChange:e=>Ut({shadow:e.target.value})})})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(X,{small:!0,onClick:()=>{let e={...N,id:Y(),name:N.name+` עותק`,x:N.x+25,y:N.y+25};It({layers:[...M.layers,e]}),s(e.id)},children:[(0,U.jsx)(pe,{size:12}),`שכפול`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>It({layers:M.layers.filter(e=>e.id!==N.id)}),children:[(0,U.jsx)(it,{size:12}),`מחיקה`]})]})]}):(0,U.jsx)(`div`,{className:`md-notice`,children:`בחר רכיב, או הוסף טקסט וצורות לסצנה.`}),(0,U.jsxs)(`div`,{className:`md-layerlist`,children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`b`,{className:`md-paneltitle`,children:`רכיבי הסצנה`}),(0,U.jsxs)(`span`,{className:`md-badge`,children:[Nt.length,` / `,M?.layers.length]})]}),(0,U.jsx)(`button`,{type:`button`,className:`md-layer-filter`,onClick:()=>d(e=>!e),children:u?`הצגת טקסטים בלבד`:`הצגת כל הצורות והרכיבים`}),Nt.map(e=>(0,U.jsxs)(`button`,{className:`md-layer `+(e.id===N?.id?`active`:``),onClick:()=>s(e.id),children:[e.type===`text`?(0,U.jsx)(st,{size:12}):(0,U.jsx)(tt,{size:12}),(0,U.jsx)(`span`,{children:e.name})]},e.id)),(0,U.jsxs)(`div`,{className:`md-row`,style:{marginTop:10},children:[(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`text`),children:[(0,U.jsx)(Ie,{size:12}),`טקסט`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`shape`),children:[(0,U.jsx)(Ie,{size:12}),`צורה`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`path`),children:[(0,U.jsx)(Ie,{size:12}),`נתיב`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>vn(`group`),children:[(0,U.jsx)(Ie,{size:12}),`קבוצה`]}),(0,U.jsxs)(X,{small:!0,onClick:()=>A(!0),children:[(0,U.jsx)(Ke,{size:12}),`נכס`]})]})]}),M&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(`div`,{className:`md-layerlist`,children:[(0,U.jsx)(`b`,{className:`md-paneltitle`,children:`הסצנה`}),(0,U.jsx)(`div`,{style:{height:12}}),(0,U.jsx)(fu,{label:`שם הסצנה`,children:(0,U.jsx)(`input`,{value:M.name,onChange:e=>It({name:e.target.value})})}),(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(kr,{label:`משך הסצנה בשניות`,value:M.duration,min:.01,max:3600,step:.01,onChange:e=>Jt(e)},M.id),(0,U.jsx)(fu,{label:`רקע`,children:(0,U.jsx)(`input`,{type:`color`,value:/^#[a-f0-9]{6}$/i.test(M.background)?M.background:`#191c28`,onChange:e=>It({background:e.target.value})})})]}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(X,{small:!0,onClick:()=>F(Wt(e,M.id)),children:(0,U.jsx)(pe,{size:11})}),(0,U.jsx)(X,{small:!0,disabled:e.scenes.indexOf(M)===0,onClick:()=>F(Gt(e,M.id,e.scenes.indexOf(M)-1)),children:(0,U.jsx)(ee,{size:11})}),(0,U.jsx)(X,{small:!0,disabled:e.scenes.indexOf(M)===e.scenes.length-1,onClick:()=>F(Gt(e,M.id,e.scenes.indexOf(M)+1)),children:(0,U.jsx)(C,{size:11})}),(0,U.jsx)(X,{small:!0,disabled:e.scenes.length<2,onClick:()=>F(Kt(e,M.id)),children:(0,U.jsx)(it,{size:11})})]})]})})]})]})]}),(0,U.jsxs)(`div`,{className:`md-statusbar`,children:[(0,U.jsxs)(`span`,{children:[`גרסה `,e.revision,` · קובץ מקומי`]}),(0,U.jsx)(`span`,{children:`MotionDesk · סביבת עריכה אישית`})]})]}):(0,U.jsxs)(`main`,{className:`md-page`,children:[n!==`studio`&&Wn,n===`music`&&(0,U.jsx)(Fl,{projectTitle:e.title,duration:Mt,onManage:()=>r(`assets`),onAdd:async(t,n)=>{S(!1);let r=await Nl(t);F(Ml(e,t,r,n)),P(`המוזיקה נוספה לסרטון`)}}),n===`prompts`&&(0,U.jsx)(ii,{onOpenProject:ln}),n===`studio`&&(0,U.jsx)(wl,{onOpenProject:e=>ln(e),onInsertAsset:yn,notify:P}),` `,n===`templates`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-toolbar`,children:[(0,U.jsxs)(`div`,{className:`md-search`,children:[(0,U.jsx)(Ue,{size:15}),(0,U.jsx)(`input`,{"aria-label":`חיפוש תבניות`,placeholder:`חיפוש לפי שם, סגנון או נושא...`,value:m,onChange:e=>h(e.target.value)})]}),(0,U.jsxs)(X,{onClick:()=>p(`import`),children:[(0,U.jsx)(lt,{size:14}),`ייבוא קובץ / קונפיגורציה`]})]}),(0,U.jsx)(`div`,{className:`md-categories`,children:B.map(e=>(0,U.jsx)(`button`,{className:`md-chip `+(g===e?`active`:``),onClick:()=>_(e),children:e},e))}),(0,U.jsxs)(`div`,{className:`md-count`,children:[kn.length+In.length+An.length+jn.length+Mn.length+Fn.length+Nn.length+Pn.length,` תבניות זמינות · `,An.length,` סרטונים אישיים · `,jn.length,` קונפיגורציות השראה · `,Mn.length,` מצגות חדשות · `,Pn.length,` סרטוני v4 · `,Nn.length,` סרטוני v3 · `,Fn.length,` סרטוני v2 משופרים · `,kn.length,` סגנונות HyperFrames`]}),Pn.length>0&&(0,U.jsx)(Zl,{items:Pn,onOpenProject:ln}),Nn.length>0&&(0,U.jsx)(Gl,{items:Nn,onOpenProject:ln,variant:`v3`}),Fn.length>0&&(0,U.jsx)(Gl,{items:Fn,onOpenProject:ln}),` `,In.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`תבניות ZIP שייבאתי`}),(0,U.jsx)(`small`,{className:`md-count`,children:`מקור HTML ונכסים מקומיים לעריכה`})]}),Vn]}),(g===`הכול`||g===`מצגות תנועה חדשות`)&&(!m||JSON.stringify([`חופשה בתנועה`,Ll(`v2-demo`).tags]).toLowerCase().includes(m.toLowerCase()))&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`דוגמת מנוע v2`}),(0,U.jsx)(`small`,{className:`md-count`,children:`רכיבים, קיפריימים ועריכה שכבה אחר שכבה`})]}),(0,U.jsx)(`div`,{className:`md-grid`,children:(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(`div`,{className:`md-thumb`,style:{padding:0,overflow:`hidden`,pointerEvents:`none`},children:(0,U.jsx)(Es,{project:{...lu,scenes:[lu.scenes[0]]},time:1.3})}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsx)(`h3`,{children:`חופשה בתנועה · v2`}),(0,U.jsx)(`p`,{children:`ארבע סצנות: טקסט קינטי, מונה, טלפון וכרטיס סיום.`}),(0,U.jsx)(Bl,{metadata:Ll(`v2-demo`)}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(Qt(Zt({...lu,id:Lt(`project`)}))),children:`פתיחה לעריכה ←`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>cu(JSON.stringify(Ql,null,2),`summer-ice.motiondesk-config.json`,`application/json`),children:`הורדת JSON`})]})]})]})})]}),Mn.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`מצגות תנועה חדשות`}),(0,U.jsx)(`small`,{className:`md-count`,children:`פתיחה לעריכה או הורדת קובץ מידע בלבד`})]}),Un]}),jn.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`טיוטות השראה · בנק הפועלים`}),(0,U.jsx)(`small`,{className:`md-count`,children:`20 קונפיגורציות v1 לעריכה ולבנייה מחדש במנוע v2`})]}),H]}),An.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`הסרטונים שלי · תבניות MP4`}),(0,U.jsx)(`small`,{className:`md-count`,children:`עריכת וידאו בסיסית`})]}),V]}),kn.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`תבניות HyperFrames`}),(0,U.jsx)(`small`,{className:`md-count`,children:`עריכת רכיבים ומקור`})]}),Hn(kn)]}),!kn.length&&!In.length&&!An.length&&!jn.length&&!Mn.length&&!Fn.length&&!Nn.length&&(0,U.jsx)(`div`,{className:`md-empty`,children:Ne.length?`לא נמצאו תבניות. נסה חיפוש אחר.`:`טוען את ספריית התבניות...`})]}),(n===`home`||n===`projects`)&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-hero`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`div`,{className:`md-eyebrow`,children:`מכאן מתחיל הסרט הבא`}),(0,U.jsxs)(`h2`,{children:[`הרעיון שלך.`,(0,U.jsx)(`br`,{}),`התנועה שלך.`]}),(0,U.jsx)(`p`,{children:`פותחים תבנית, מעדכנים תוכן ומעצבים כל סצנה. אפשר גם להמשיך מקובץ HTML קיים.`}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(X,{primary:!0,onClick:()=>r(`studio`),children:[(0,U.jsx)(Se,{size:14}),`בחירת תבנית`]}),(0,U.jsxs)(X,{onClick:()=>p(`import`),children:[(0,U.jsx)(lt,{size:14}),`ייבוא פרויקט`]}),window.motionDesk?.openExample&&(0,U.jsxs)(X,{onClick:pn,children:[(0,U.jsx)(ge,{size:14}),`פתיחת דוגמת הבנק`]})]})]}),(0,U.jsx)(uu,{title:`הדברים הגדולים\\nמתחילים כאן`})]}),(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:n===`projects`?`ספריית הפרויקטים`:`הפרויקט האחרון`}),(0,U.jsx)(`small`,{className:`md-count`,children:`נשמר בתיקיית MotionDesk במחשב`})]}),n===`projects`&&j.length>0&&(0,U.jsx)(`div`,{className:`md-grid`,children:j.map(e=>(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(uu,{title:e.title}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsxs)(`p`,{children:[e.sceneCount,` סצנות · `,new Date(e.updatedAt).toLocaleString(`he-IL`)]}),(0,U.jsx)(`button`,{className:`md-open`,onClick:async()=>{try{ln(Qt(await window.motionDesk.loadProject(e.id)))}catch(e){P(String(e))}},children:`פתיחה לעריכה ←`})]})]},e.id))}),n===`home`&&(0,U.jsx)(`div`,{className:`md-grid`,children:(0,U.jsxs)(`article`,{className:`md-template`,children:[(0,U.jsx)(uu,{title:e.title}),(0,U.jsxs)(`div`,{className:`md-cardbody`,children:[(0,U.jsx)(`h3`,{children:e.title}),(0,U.jsxs)(`p`,{children:[e.scenes.length,` סצנות · `,Mt.toFixed(1),` שניות · גרסה `,e.revision]}),(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`span`,{className:`md-badge`,children:e.mode===`authored`?`פרויקט Motion`:`מקור מיובא`}),(0,U.jsx)(`button`,{className:`md-open`,onClick:()=>ln(),children:`המשך עריכה ←`})]})]})]})})]}),n===`assets`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`md-toolbar`,children:[(0,U.jsxs)(`span`,{className:`md-count`,children:[e.assets.length,` קבצים בפרויקט`]}),(0,U.jsxs)(X,{primary:!0,onClick:gn,children:[(0,U.jsx)(lt,{size:14}),`הוספת מדיה`]})]}),e.assets.length?(0,U.jsx)(`div`,{className:`md-assetlist`,children:e.assets.map(t=>(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[t.kind===`image`?(0,U.jsx)(`img`,{src:xs(t.src),alt:``}):t.kind===`audio`?(0,U.jsx)(ke,{size:28}):(0,U.jsx)(ge,{size:28}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{className:`md-filename`,children:t.name}),(0,U.jsxs)(`small`,{children:[t.kind,` · `,t.mime]})]}),t.kind===`image`&&(0,U.jsx)(X,{small:!0,disabled:!M,onClick:()=>vn(`image`,t.id),children:`הוספה לסצנה`}),(t.kind===`video`||t.kind===`audio`)&&(0,U.jsx)(X,{small:!0,onClick:()=>{let n={id:Y(),assetId:t.id,start:0,in:0,out:t.duration||10,volume:1,muted:!1};F({...e,mediaTracks:[...e.mediaTracks,{id:Y(),name:t.name,type:t.kind,clips:[n],muted:!1}]}),P(`נוסף לערוץ מדיה. אפשר לערוך את הקטע מתחת לרשימת הקבצים.`)},children:`הוספה לערוץ`}),(0,U.jsx)(X,{small:!0,onClick:()=>F({...e,assets:e.assets.filter(e=>e.id!==t.id),mediaTracks:e.mediaTracks.map(e=>({...e,clips:e.clips.filter(e=>e.assetId!==t.id)})),scenes:e.scenes.map(e=>({...e,layers:e.layers.filter(e=>e.assetId!==t.id)}))}),children:(0,U.jsx)(it,{size:12})})]},t.id))}):(0,U.jsxs)(`div`,{className:`md-empty`,children:[(0,U.jsx)(xe,{size:28}),(0,U.jsx)(`p`,{children:`הוסף תמונות, סרטונים או אודיו לפרויקט.`}),(0,U.jsx)(`div`,{style:{height:16}}),(0,U.jsx)(X,{onClick:gn,children:`בחירת קבצים`})]}),e.mediaTracks.length>0&&(0,U.jsxs)(`div`,{className:`md-mediaeditor`,children:[(0,U.jsxs)(`div`,{className:`md-sectiontitle`,children:[(0,U.jsx)(`h2`,{children:`ערוצי מדיה`}),(0,U.jsx)(X,{onClick:()=>ln(),children:e.mode===`flat-video`?`חזרה לתצוגת הווידאו`:`פתיחת העורך להוספת כותרות ותמונות`})]}),(0,U.jsxs)(`div`,{className:`md-notice`,children:[`תחילת הקטע קובעת את מיקומו בפרויקט. כניסה ויציאה הן נקודות הזמן בקובץ המקור. `,e.mode===`flat-video`?`עריכת רכיבים צרובים דורשת מקור HTML/HyperFrames.`:`טקסט ותמונות בסצנות מופיעים מעל הווידאו.`]}),e.mediaTracks.map((t,n)=>(0,U.jsxs)(`div`,{className:`md-settings`,style:{marginBottom:15,maxWidth:`none`},children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`b`,{children:t.name}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsxs)(`label`,{className:`md-checkbox`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:t.muted,onChange:n=>F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,muted:n.target.checked}:e)})}),`השתקת ערוץ`]}),(0,U.jsx)(X,{small:!0,disabled:!n,onClick:()=>{let t=[...e.mediaTracks];[t[n],t[n-1]]=[t[n-1],t[n]],F({...e,mediaTracks:t})},children:(0,U.jsx)(ee,{size:12})}),(0,U.jsx)(X,{small:!0,disabled:n===e.mediaTracks.length-1,onClick:()=>{let t=[...e.mediaTracks];[t[n],t[n+1]]=[t[n+1],t[n]],F({...e,mediaTracks:t})},children:(0,U.jsx)(C,{size:12})}),(0,U.jsx)(X,{small:!0,onClick:()=>F({...e,mediaTracks:e.mediaTracks.filter(e=>e.id!==t.id)}),children:(0,U.jsx)(it,{size:12})})]})]}),t.clips.map(n=>(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(`div`,{className:`md-clipfields`,children:[[`start`,`in`,`out`,`volume`].map((r,i)=>(0,U.jsx)(fu,{label:[`תחילה בפרויקט (שניות)`,`כניסה במקור (שניות)`,`יציאה במקור (שניות)`,`עוצמה (0–4)`][i],children:(0,U.jsx)(`input`,{type:`number`,min:`0`,max:r===`volume`?4:void 0,step:`0.1`,value:n[r],onChange:i=>F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,clips:e.clips.map(e=>e.id===n.id?{...e,[r]:+i.target.value}:e)}:e)})})},r)),(0,U.jsxs)(`label`,{className:`md-checkbox`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:n.muted,onChange:r=>F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,clips:e.clips.map(e=>e.id===n.id?{...e,muted:r.target.checked}:e)}:e)})}),`השתקת קטע`]})]}),(0,U.jsxs)(`div`,{className:`md-splitrow`,children:[(0,U.jsx)(fu,{label:`נקודת פיצול בזמן הפרויקט`,children:(0,U.jsx)(`input`,{type:`number`,min:n.start,max:n.start+n.out-n.in,step:`.1`,value:Ot[n.id]??n.start+(n.out-n.in)/2,onChange:e=>kt(t=>({...t,[n.id]:+e.target.value}))})}),(0,U.jsx)(X,{small:!0,disabled:w<=n.start||w>=n.start+n.out-n.in,onClick:()=>kt(e=>({...e,[n.id]:w})),children:`מהסמן`}),(0,U.jsx)(X,{small:!0,disabled:(Ot[n.id]??n.start+(n.out-n.in)/2)<=n.start||(Ot[n.id]??n.start+(n.out-n.in)/2)>=n.start+n.out-n.in,onClick:()=>{let r=Ot[n.id]??n.start+(n.out-n.in)/2,i=n.in+r-n.start;F({...e,mediaTracks:e.mediaTracks.map(e=>e.id===t.id?{...e,clips:e.clips.flatMap(e=>e.id===n.id?[{...e,out:i},{...e,id:Y(),in:i,start:r}]:[e])}:e)}),P(`הקטע פוצל לשני קטעים רצופים`)},children:`פיצול בנקודה`})]})]},n.id))]},t.id))]})]}),n===`settings`&&(0,U.jsxs)(`div`,{className:`md-settings`,children:[(0,U.jsx)(`h2`,{children:`הגדרות הפרויקט`}),e.mode===`imported-source`&&(0,U.jsx)(`div`,{className:`md-notice`,children:`פורמט הקומפוזיציה נקבע במקור HyperFrames. שינוי פריסה מתבצע בקוד המקור, כדי לשמור על התאמה בין התצוגה לרינדור.`}),(0,U.jsx)(`div`,{style:{height:22}}),(0,U.jsx)(fu,{label:`שם הפרויקט`,children:(0,U.jsx)(`input`,{value:e.title,onChange:t=>F({...e,title:t.target.value})})}),(0,U.jsxs)(`div`,{className:`md-two`,children:[(0,U.jsx)(fu,{label:`רוחב`,children:(0,U.jsx)(`input`,{disabled:e.mode===`imported-source`,type:`number`,min:`100`,value:e.canvas.width,onChange:t=>F({...e,canvas:{...e.canvas,width:+t.target.value}})})}),(0,U.jsx)(fu,{label:`גובה`,children:(0,U.jsx)(`input`,{disabled:e.mode===`imported-source`,type:`number`,min:`100`,value:e.canvas.height,onChange:t=>F({...e,canvas:{...e.canvas,height:+t.target.value}})})})]}),(0,U.jsx)(fu,{label:`מסגרות לשנייה`,children:(0,U.jsx)(`select`,{disabled:e.mode===`imported-source`,value:e.canvas.fps,onChange:t=>F({...e,canvas:{...e.canvas,fps:+t.target.value}}),children:[24,25,30,60].map(e=>(0,U.jsx)(`option`,{children:e},e))})}),(0,U.jsxs)(`div`,{className:`md-row`,children:[(0,U.jsx)(X,{disabled:e.mode===`imported-source`,onClick:()=>F({...e,canvas:{...e.canvas,width:1920,height:1080}}),children:`16:9 רוחבי`}),(0,U.jsx)(X,{disabled:e.mode===`imported-source`,onClick:()=>F({...e,canvas:{...e.canvas,width:1080,height:1920}}),children:`9:16 אנכי`}),(0,U.jsx)(X,{disabled:e.mode===`imported-source`,onClick:()=>F({...e,canvas:{...e.canvas,width:1080,height:1080}}),children:`1:1 ריבוע`})]}),(0,U.jsxs)(`div`,{className:`md-notice`,children:[`הפרויקט נשמר אוטומטית בדפדפן. `,window.motionDesk?`שמירת הפרויקט יוצרת תיקייה ניידת הכוללת את המדיה להעברה בין מחשבים.`:`להעברה בין מחשבים אפשר להוריד קובץ פרויקט JSON.`]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>un(`project`),children:[(0,U.jsx)(Ve,{size:14}),window.motionDesk?`שמירת תיקיית פרויקט ניידת`:`הורדת קובץ פרויקט JSON`]})]})]})]}),be&&(0,U.jsx)(qc,{title:`ספריית נכסים`,onClose:()=>A(!1),children:(0,U.jsx)(yl,{brand:Zo(),onInsert:(e,t)=>{yn(e,t)&&P(`"${e.name}" נוסף לסצנה`)}})}),v&&(0,U.jsx)(`div`,{className:`md-toast`,role:`status`,children:v}),f&&(0,U.jsx)(`div`,{className:`md-modalback`,onClick:()=>p(null),children:(0,U.jsxs)(`section`,{className:`md-modal`,role:`dialog`,"aria-modal":`true`,"aria-label":f===`new`?`פרויקט חדש`:f===`import`?`ייבוא פרויקט`:f===`source`?`עריכת מקור`:`ייצוא הפרויקט`,onClick:e=>e.stopPropagation(),children:[(0,U.jsxs)(`div`,{className:`md-between`,children:[(0,U.jsx)(`h2`,{children:f===`new`?`פרויקט חדש`:f===`reference`?nt?.name:f===`import`?`ממשיכים מהקובץ שלך`:f===`source`?`עריכת קוד המקור`:`ייצוא הפרויקט`}),(0,U.jsx)(`button`,{className:`md-btn icon`,"aria-label":`סגירה`,onClick:()=>p(null),children:(0,U.jsx)(gt,{size:16})})]}),f===`new`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:`בחר נקודת התחלה ושם לסרטון. תבניות HyperFrames ו־MP4 נפתחות כעותק עבודה חדש.`}),(0,U.jsx)(fu,{label:`שם הסרטון`,children:(0,U.jsx)(`input`,{autoFocus:!0,value:at,onChange:e=>ot(e.target.value)})}),(0,U.jsxs)(`div`,{className:`md-newchoices`,children:[(0,U.jsxs)(`button`,{className:`md-newchoice `+(ut===`blank`?`active`:``),onClick:()=>dt(`blank`),children:[(0,U.jsx)(Ie,{size:23}),(0,U.jsx)(`b`,{children:`פרויקט ריק`}),(0,U.jsx)(`small`,{children:`סצנה נקייה עם כותרת ראשונה לעריכה`})]}),(0,U.jsxs)(`button`,{className:`md-newchoice `+(ut===`gallery`?`active`:``),onClick:()=>dt(`gallery`),children:[(0,U.jsx)(Se,{size:23}),(0,U.jsx)(`b`,{children:`סגנון מהגלריה`}),(0,U.jsx)(`small`,{children:`מקור HyperFrames, תבנית פתיחה או MP4`})]})]}),ut===`gallery`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(fu,{label:`בחירת סגנון`,children:(0,U.jsxs)(`select`,{value:mt,onChange:e=>{ht(e.target.value),pt(El.find(t=>`bank-${t.id}`===e.target.value)?.config.aspectRatio||Ol.find(t=>`starter-${t.id}`===e.target.value)?.config.aspectRatio||Ne.find(t=>t.id===e.target.value)?.aspectRatio||((ys.find(t=>`sample-${t.id}`===e.target.value)?.height||0)>(ys.find(t=>`sample-${t.id}`===e.target.value)?.width||0)?`9:16`:`16:9`)),Ct(``),e.target.value.startsWith(`bank-`)||e.target.value.startsWith(`starter-`)?yt(`seed`):e.target.value.startsWith(`sample-whatsapp-`)&&yt(`source`)},children:[(0,U.jsx)(`option`,{value:``,children:`בחר סגנון`}),Ne.map(e=>(0,U.jsx)(`option`,{value:e.id,children:e.name},e.id)),(0,U.jsx)(`optgroup`,{label:`מצגות תנועה חדשות — קובצי מידע עריכים`,children:Ol.map(e=>(0,U.jsx)(`option`,{value:`starter-${e.id}`,children:e.title},e.id))}),(0,U.jsx)(`optgroup`,{label:`השראה מערוץ הבנק — קונפיגורציות עריכות`,children:El.map(e=>(0,U.jsx)(`option`,{value:`bank-${e.id}`,children:e.title},e.id))}),(0,U.jsx)(`optgroup`,{label:`הסרטונים שלי — מקור HTML או MP4`,children:ys.map(e=>(0,U.jsx)(`option`,{value:`sample-${e.id}`,children:e.title},e.id))})]})}),!Rn&&!Bn&&(0,U.jsxs)(`div`,{className:`md-template-modes`,children:[(0,U.jsx)(`button`,{className:`md-chip `+(_t===`source`?`active`:``),onClick:()=>{yt(`source`),Ct(``)},children:`מקור HyperFrames`}),(0,U.jsx)(`button`,{className:`md-chip `+(_t===`seed`?`active`:``),onClick:()=>{yt(`seed`),Ct(``)},children:`תבנית פתיחה`})]}),(0,U.jsx)(`div`,{className:`md-notice`,children:Bn?`תיפתח מצגת טקסט ותנועה חדשה ועריכה מתוך קובץ מידע. זו יצירה חדשה, לא מקור וידאו.`:Rn?En(Rn)?Rn.sourceKind===`editable-reconstruction`?`ייפתח שחזור HTML עריך של הגרפיקה והכותרות. קטעי הצילום עצמם נשמרים כווידאו.`:`ייפתח עותק עריך של מקור ה־HTML, עם טקסט וגרפיקה חיים.`:`ייפתח עותק MP4 לחיתוך, פיצול ושינוי שמע.`:_t===`source`?`ייפתח עותק עבודה של הקומפוזיציה המקורית עם התמונות, הגופנים, השמע והתנועה. השדות העריכים נקבעים לפי יכולות המקור.`:`תבנית פתיחה היא קומפוזיציה חדשה המבוססת על הסגנון. היא אינה משחזרת את סרטון הרפרנס.`}),!Rn&&!Bn&&_t===`source`&&!z&&(0,U.jsx)(`div`,{className:`md-notice`,children:`לסגנון הזה אין עדיין מקור עריך מותקן. תבנית פתיחה זמינה בבחירה נפרדת.`}),!Rn&&!Bn&&_t===`source`&&!window.motionDesk?.openCatalogTemplate&&(0,U.jsx)(`div`,{className:`md-notice`,children:`פתיחת המקור המלא זמינה בשרת Web המקומי או באפליקציית המחשב.`})]}),(0,U.jsx)(fu,{label:`פורמט הסרטון`,hint:ut===`gallery`&&(_t===`source`||Rn||Bn)?`פורמט המקור נשמר כדי לשמר את הפריסה והתנועה.`:void 0,children:(0,U.jsx)(`div`,{className:`md-ratiochoices`,children:[[`16:9`,`רוחבי`],[`9:16`,`אנכי`],[`1:1`,`ריבוע`]].map(([e,t])=>(0,U.jsxs)(`button`,{type:`button`,disabled:ut===`gallery`&&(_t===`source`||!!Rn||!!Bn),className:`md-ratiochoice `+(ft===e?`active`:``),"aria-pressed":ft===e,onClick:()=>pt(e),children:[(0,U.jsx)(`i`,{style:{aspectRatio:e.replace(`:`,`/`)}}),(0,U.jsx)(`bdi`,{children:e}),(0,U.jsx)(`small`,{children:t})]},e))})}),(0,U.jsxs)(`div`,{className:`md-modalfooter`,children:[St&&(0,U.jsx)(`p`,{className:`md-create-error`,role:`alert`,children:St}),(0,U.jsx)(X,{disabled:bt,onClick:()=>p(null),children:`ביטול`}),(0,U.jsxs)(X,{primary:!0,disabled:bt||!at.trim()||ut===`gallery`&&(!mt||!Rn&&!Bn&&_t===`source`&&(!window.motionDesk?.openCatalogTemplate||!z)),onClick:On,children:[bt?`פותח עותק עבודה...`:`יצירת פרויקט ופתיחת העורך`,(0,U.jsx)(oe,{size:13})]})]})]}):f===`reference`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:nt?.description}),(0,U.jsx)(`video`,{className:`md-video`,controls:!0,autoPlay:!0,src:xs(nt?.source.videoUrl||``),poster:nt?.source.posterUrl}),(0,U.jsx)(`div`,{className:`md-notice`,children:nt?.sample?En(nt.sample)?`אפשר לפתוח את מקור ה־HTML לעריכת טקסט ותנועה, או לפתוח את ה־MP4 לעריכת וידאו בסיסית.`:`זהו MP4. ניתן לפתוח עותק לחיתוך, פיצול ושינוי שמע; רכיבים צרובים אינם עריכים ללא מקור.`:`מקור HyperFrames זמין לעריכה בנפרד.`}),(0,U.jsx)(`div`,{className:`md-modalfooter`,children:(0,U.jsx)(X,{primary:!0,onClick:()=>{nt?.sample?En(nt.sample)?Dn(nt.sample):(ln(Ss(nt.sample)),p(null)):wn(nt)},children:nt?.sample?En(nt.sample)?`עריכת מקור HTML`:`פתיחה כתבנית MP4`:`עריכת המקור בסגנון הזה`})})]}):f===`import`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:`אפשר לטעון ZIP עם סרטון motion עריך, קובץ פרויקט, HTML, מדיה או קונפיגורציה.`}),(0,U.jsxs)(`div`,{className:`md-import`,children:[(0,U.jsx)(he,{size:34,color:`#e30613`}),(0,U.jsx)(`p`,{children:`ZIP של מקור motion · MotionDesk JSON · HTML · תמונות · וידאו · אודיו`}),(0,U.jsxs)(`div`,{className:`md-row`,style:{justifyContent:`center`,flexWrap:`wrap`},children:[(0,U.jsxs)(X,{primary:!0,onClick:gn,children:[(0,U.jsx)(lt,{size:14}),`בחירת קובץ מהמחשב`]}),window.motionDesk?.openProjectFolder&&(0,U.jsxs)(X,{onClick:mn,children:[(0,U.jsx)(_e,{size:14}),`פתיחת תיקיית פרויקט`]}),window.motionDesk?.openExample&&(0,U.jsxs)(X,{onClick:pn,children:[(0,U.jsx)(ge,{size:14}),`פתיחת דוגמת הבנק`]})]})]}),(0,U.jsx)(fu,{label:`או הדבק קונפיגורציית סרטון JSON`,hint:`הקובץ נבנה לסצנות ושכבות עריכות; האפליקציה אינה מפעילה מודל שפה.`,children:(0,U.jsx)(`textarea`,{dir:`ltr`,style:{minHeight:130},placeholder:`{"format":"motiondesk-config/v2",...}`,value:wt,onChange:e=>{Tt(e.target.value),Dt(``)}})}),Et&&(0,U.jsx)(`p`,{className:`md-create-error`,role:`alert`,children:Et}),(0,U.jsx)(`div`,{className:`md-modalfooter`,children:(0,U.jsx)(X,{primary:!0,disabled:!wt.trim(),onClick:_n,children:`יצירת סרטון מהקונפיגורציה`})}),(0,U.jsx)(`div`,{className:`md-notice`,children:`ZIP עם index.html של קומפוזיציית motion ונכסים מקומיים נשמר בתבניות וניתן לפתיחה חוזרת לעריכה. ייבוא קונפיגורציה יוצר פרויקט MotionDesk מובנה; MP4 צרוב אינו הופך לשכבות עריכות.`})]}):f===`source`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:`הקוד נשמר בפרויקט ויופיע בקובץ HTML שתייצא. תצוגת הקוד בעורך סטטית; חלון התצוגה המבודד מפעיל את הקומפוזיציה.`}),(0,U.jsx)(`textarea`,{"aria-label":`קוד HTML`,value:k,onChange:e=>ne(e.target.value)}),(0,U.jsxs)(`div`,{className:`md-modalfooter`,children:[(0,U.jsx)(X,{onClick:()=>p(null),children:`ביטול`}),(0,U.jsx)(X,{primary:!0,onClick:()=>{F({...e,source:e.source?{...e.source,current:k}:void 0}),p(null)},children:`שמירת שינויים`})]})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`p`,{children:e.mode===`flat-video`?`שמור את הפרויקט להמשך עריכה או ייצא סרטון MP4 חדש.`:`שמור את הפרויקט להמשך עריכה, או ייצא HTML עצמאי עם התוכן והתנועה שלך.`}),(0,U.jsxs)(`div`,{className:`md-assetlist`,children:[(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[(0,U.jsx)(_e,{size:24}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{children:window.motionDesk?.saveText?`תיקיית פרויקט ניידת`:`קובץ פרויקט JSON`}),(0,U.jsx)(`small`,{children:window.motionDesk?.saveText?`כל הסצנות, הרכיבים, ההגדרות ותיקיית המדיה`:`כל נתוני הפרויקט בקובץ JSON להמשך עריכה`})]}),(0,U.jsxs)(X,{onClick:()=>un(`project`),children:[(0,U.jsx)(me,{size:13}),`שמירה`]})]}),e.mode!==`flat-video`&&(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[(0,U.jsx)(de,{size:24}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{children:e.mode===`imported-source`?`קוד HTML ערוך`:`HTML עצמאי`}),(0,U.jsx)(`small`,{children:e.mode===`imported-source`?`יש לשמור גם את תיקיית הפרויקט כדי להעביר תמונות, גופנים ושמע`:`קובץ נייד לפתיחה בדפדפן ולעריכה נוספת`})]}),(0,U.jsxs)(X,{primary:!0,onClick:()=>un(`html`),children:[(0,U.jsx)(me,{size:13}),`ייצוא HTML`]})]}),(0,U.jsxs)(`div`,{className:`md-assetrow`,children:[(0,U.jsx)(ge,{size:24}),(0,U.jsxs)(`div`,{style:{flex:1},children:[(0,U.jsx)(`strong`,{children:`וידאו MP4`}),(0,U.jsx)(`small`,{children:window.motionDesk?.deployment===`vercel`?`רינדור בענן והורדת MP4 למחשב`:window.motionDesk?.renderProject?`רינדור מקומי באמצעות FFmpeg`:`זמין בשרת Web המקומי או באפליקציית המחשב`})]}),(0,U.jsx)(X,{disabled:Be||!window.motionDesk?.renderProject,onClick:async()=>{He(!0),qe(null),Ye(``),et(``);try{let t=await window.motionDesk.renderProject(e,e=>qe(e));t?.path&&(Ye(t.path),P(`הרינדור הסתיים`))}catch(e){let t=`הרינדור נכשל: `+String(e);et(t),P(t)}finally{He(!1)}},children:`רינדור MP4`})]})]}),Be&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`md-progress-label`,role:`status`,children:We?.phase===`frames`?`מרנדר פריים ${We.frame||0} מתוך ${We.frames||0} · ${We.percent}%`:We?.phase===`audio`?`מוסיף שמע לקובץ MP4`:We?.phase===`video`?`מעבד וידאו`:`מכין את הרינדור...`}),(0,U.jsx)(`div`,{className:`md-progress determinate`,children:(0,U.jsx)(`i`,{style:{width:`${We?.percent||0}%`}})})]}),Je&&(0,U.jsxs)(`div`,{className:`md-notice`,children:[`נשמר: `,(0,U.jsx)(`bdi`,{children:Je})]}),$e&&(0,U.jsx)(`div`,{className:`md-create-error`,role:`alert`,children:$e}),(0,U.jsxs)(`div`,{className:`md-notice`,children:[`בדיקת פרויקט: `,I(e).length===0?`תקין לייצוא`:I(e).map(e=>e.message).join(` · `)]})]})]})})]})}function mu(e){let t=/^motiondesk-media:\/\/catalog-((?:halvaa-(?:0[1-9]|[1-5]\d|6[0-6])|whatsapp-(?:121656|122305|122338)))$/.exec(e);if(!t)throw Error(`מקור הגלריה אינו תקין`);return t[1]}async function hu(e){let t=await e.json();if(!e.ok)throw Error(t.error||`HTTP ${e.status}`);return t}function gu(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}async function _u(e,t){let n=await fetch(`/api/render`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!n.body)throw Error(`שרת הרינדור לא החזיר נתונים (HTTP ${n.status})`);let r=n.body.getReader(),i=new TextDecoder,a=[],o=``,s=null,c=0;function l(e){if(!e.trim())return;let n=JSON.parse(e);if(n.type===`error`)throw Error(n.error||`הרינדור נכשל`);if(n.type===`progress`&&t?.(n),n.type===`chunk`){let e=gu(n.data);if(c+=e.byteLength,c>25e7)throw Error(`קובץ MP4 גדול מדי להורדה בדמו`);a.push(e)}n.type===`done`&&(s=n)}try{for(;;){let{value:e,done:t}=await r.read();if(t)break;o+=i.decode(e,{stream:!0});let n=o.indexOf(`
|
|
289
289
|
`);for(;n>=0;)l(o.slice(0,n)),o=o.slice(n+1),n=o.indexOf(`
|
|
290
290
|
`)}o+=i.decode(),o.trim()&&l(o)}finally{r.releaseLock()}if(!s||!a.length)throw Error(`הרינדור הסתיים ללא קובץ MP4`);let u=s,d=URL.createObjectURL(new Blob(a,{type:`video/mp4`})),f=document.createElement(`a`);return f.href=d,f.download=u.filename||`${e.title||`motiondesk`}.mp4`,document.body.append(f),f.click(),f.remove(),setTimeout(()=>URL.revokeObjectURL(d),6e4),{path:`הקובץ הורד לתיקיית ההורדות`,duration:u.duration}}var vu=[];function yu(){window.motionDesk=Object.freeze({deployment:`vercel`,openCatalogTemplate:async e=>{if(!/^(?:halvaa-(?:0[1-9]|[1-5]\d|6[0-6])|whatsapp-(?:121656|122305|122338))$/.test(e))throw Error(`מזהה תבנית לא תקין`);let t=await hu(await fetch(`/catalog-sources/${e}/project.json`));if(!t.source?.current)throw Error(`קובץ המקור חסר בתבנית`);return t.source.sourceUrl=`motiondesk-media://catalog-${e}`,{name:`${e}.motiondesk`,kind:`project`,content:JSON.stringify(t)}},createSourceSession:async(e,t)=>{let n=mu(e),{html:r}=await hu(await fetch(`/api/source-preview`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({sourceUrl:e,html:t})})),i=`<base href="${location.origin}/catalog-sources/${n}/source/">`,a=/<head\b[^>]*>/i.test(r)?r.replace(/<head\b[^>]*>/i,e=>e+i):i+r,o=URL.createObjectURL(new Blob([a],{type:`text/html`}));for(vu.push(o);vu.length>4;)URL.revokeObjectURL(vu.shift());return{url:o}},renderProject:_u})}yu();var bu=document.getElementById(`root`);if(!bu)throw Error(`Root element missing`);(0,yt.createRoot)(bu).render((0,U.jsx)(b.StrictMode,{children:(0,U.jsx)(pu,{})}));export{Bt as n,zt as r,Rt as t};
|