"use strict";exports.id=2490,exports.ids=[2490],exports.modules={2490:(e,o,t)=>{async function i(e){if(!e||!e.scenes||0===e.scenes.length)throw Error("Storyboard tidak memiliki scene untuk di-export.");let o=function(e){let o=e.scenes.map((e,o)=>`
    <div class="scene">
      <div class="scene-header">
        <span class="scene-number">Scene ${o+1}</span>
        <span class="scene-title">${n(e.title)}</span>
      </div>
      <div class="scene-description">${n(e.visualDescription)}</div>
      ${e.narration?`<div class="scene-note"><strong>Narasi:</strong> ${n(e.narration)}</div>`:""}
      ${e.cameraAngle?`<div class="scene-note"><strong>Kamera:</strong> ${n(e.cameraAngle)}</div>`:""}
      ${e.emotion?`<div class="scene-note"><strong>Emosi:</strong> ${n(e.emotion)}</div>`:""}
      ${e.transition?`<div class="scene-note"><strong>Transisi:</strong> ${n(e.transition)}</div>`:""}
      <div class="scene-duration">⏱ ${n(e.duration)}</div>
    </div>
  `).join("\n");return`<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8" />
  <title>Storyboard — ${n(e.sourceTitle??"Storyboard")}</title>
  <style>
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: sans-serif; font-size: 12px; color: #111; padding: 24px; }
    h1 { font-size: 20px; margin-bottom: 4px; }
    .subtitle { color: #555; font-size: 12px; margin-bottom: 4px; }
    .meta { color: #888; font-size: 11px; margin-bottom: 20px; }
    .scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .scene { border: 1px solid #ddd; border-radius: 6px; padding: 12px; page-break-inside: avoid; }
    .scene-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .scene-number { background: #111; color: #fff; font-size: 10px; font-weight: bold;
      padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
    .scene-title { font-weight: bold; font-size: 13px; }
    .scene-description { font-size: 11px; line-height: 1.5; margin-bottom: 6px; }
    .scene-note { font-size: 10px; color: #444; margin-top: 4px; }
    .scene-duration { font-size: 10px; color: #888; margin-top: 6px; }
    @media print {
      body { padding: 0; }
      .scenes { grid-template-columns: 1fr 1fr; }
    }
  </style>
</head>
<body>
  <h1>${n(e.sourceTitle??"Storyboard")}</h1>
  ${e.theme?`<div class="subtitle">${n(e.theme)}</div>`:""}
  <div class="meta">
    ${e.sourcePlatform?`Platform: ${n(e.sourcePlatform)} \xb7 `:""}
    ${e.metadata.totalScenes} scene \xb7 ${n(e.metadata.estimatedDuration)}
  </div>
  ${e.hook?`<div class="subtitle"><strong>Hook:</strong> ${n(e.hook)}</div>`:""}
  <br />
  <div class="scenes">${o}</div>
  ${e.callToAction?`<div style="margin-top:16px;padding:12px;border:1px solid #ddd;border-radius:6px;"><strong>Call to Action:</strong> ${n(e.callToAction)}</div>`:""}
</body>
</html>`}(e),t=window.open("","_blank");if(!t)throw Error("Popup diblokir browser. Izinkan popup untuk site ini agar dapat mendownload PDF.");t.document.write(o),t.document.close(),await new Promise(e=>{t.onload=()=>e(),setTimeout(e,1500)}),t.focus(),t.print()}function n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}t.d(o,{exportStoryboardToPdf:()=>i})}};