misraj-mushaf-renderer 1.3.1 → 1.3.4

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/dist/index.es.js CHANGED
@@ -2436,7 +2436,7 @@ const S5 = /* @__PURE__ */ n4(R5), H5 = (e) => {
2436
2436
  () => e && e.length ? H5(e) : {},
2437
2437
  [e]
2438
2438
  ), h = s > 3, g = e && e.length ? e[0] : void 0, q = r === 1 || r === 2;
2439
- return /* @__PURE__ */ O(
2439
+ return /* @__PURE__ */ c(
2440
2440
  "div",
2441
2441
  {
2442
2442
  id: `page-${r}`,
@@ -2447,85 +2447,83 @@ const S5 = /* @__PURE__ */ n4(R5), H5 = (e) => {
2447
2447
  ...C?.Page?.container,
2448
2448
  ...i?.container
2449
2449
  },
2450
- children: [
2451
- /* @__PURE__ */ O(
2452
- "div",
2453
- {
2454
- className: S({
2455
- [R.border]: u,
2456
- [R.blueBorder]: u && l === "blue",
2457
- [R.sepiaBorder]: u && l === "sepia"
2458
- }),
2459
- style: {
2460
- position: "relative",
2461
- ...i?.border
2462
- },
2463
- children: [
2464
- u && /* @__PURE__ */ O(r4, { children: [
2465
- /* @__PURE__ */ c(
2466
- e4,
2467
- {
2468
- borderColor: l,
2469
- className: S(R.surah),
2470
- style: C?.Page?.surah,
2471
- children: g?.surah?.name
2472
- }
2473
- ),
2474
- /* @__PURE__ */ c(
2475
- e4,
2476
- {
2477
- borderColor: l,
2478
- className: S(R.juz),
2479
- style: C?.Page?.juz,
2480
- children: z5(g?.juz || 1)
2481
- }
2482
- )
2483
- ] }),
2484
- /* @__PURE__ */ O(
2485
- "div",
2450
+ children: /* @__PURE__ */ O(
2451
+ "div",
2452
+ {
2453
+ className: S({
2454
+ [R.border]: u,
2455
+ [R.blueBorder]: u && l === "blue",
2456
+ [R.sepiaBorder]: u && l === "sepia"
2457
+ }),
2458
+ style: {
2459
+ position: "relative",
2460
+ ...i?.border
2461
+ },
2462
+ children: [
2463
+ u && /* @__PURE__ */ O(r4, { children: [
2464
+ /* @__PURE__ */ c(
2465
+ e4,
2486
2466
  {
2487
- className: S(C?.Page?.bottomBorder, {
2488
- [R.bottomBorder]: u && q,
2489
- [R.blueBottomBorder]: u && q && l === "blue",
2490
- [R.sepiaBottomBorder]: u && q && l === "sepia"
2491
- }),
2492
- style: { width: "100%" },
2493
- children: [
2494
- q && /* @__PURE__ */ c(c4, { chapterId: `${r}`, pageNumber: r }),
2495
- /* @__PURE__ */ O(
2496
- "div",
2497
- {
2498
- className: S(C?.Page?.firstTwoPagesBorder, {
2499
- [R.firstTwoPagesBorder]: u && q,
2500
- [R.blueFirstTwoPagesBorder]: u && q && l === "blue",
2501
- [R.sepiaFirstTwoPagesBorder]: u && q && l === "sepia"
2502
- }),
2503
- children: [
2504
- r === 2 && /* @__PURE__ */ c("div", { className: T0.bismillahContainer, children: /* @__PURE__ */ c(o4, {}) }),
2505
- Object.keys(f).map((p, v) => /* @__PURE__ */ c(
2506
- S6,
2507
- {
2508
- pageIndex: t,
2509
- lineIndex: v,
2510
- lineKey: p,
2511
- words: f[p],
2512
- isBigTextLayout: h,
2513
- onWordClick: n,
2514
- onWordHover: a
2515
- },
2516
- p
2517
- ))
2518
- ]
2519
- }
2520
- )
2521
- ]
2467
+ borderColor: l,
2468
+ className: S(R.surah),
2469
+ style: C?.Page?.surah,
2470
+ children: g?.surah?.name
2471
+ }
2472
+ ),
2473
+ /* @__PURE__ */ c(
2474
+ e4,
2475
+ {
2476
+ borderColor: l,
2477
+ className: S(R.juz),
2478
+ style: C?.Page?.juz,
2479
+ children: z5(g?.juz || 1)
2522
2480
  }
2523
2481
  )
2524
- ]
2525
- }
2526
- ),
2527
- u && /* @__PURE__ */ c(B5, { borderColor: l, value: r })
2528
- ]
2482
+ ] }),
2483
+ /* @__PURE__ */ O(
2484
+ "div",
2485
+ {
2486
+ className: S(C?.Page?.bottomBorder, {
2487
+ [R.bottomBorder]: u && q,
2488
+ [R.blueBottomBorder]: u && q && l === "blue",
2489
+ [R.sepiaBottomBorder]: u && q && l === "sepia"
2490
+ }),
2491
+ style: { width: "100%" },
2492
+ children: [
2493
+ q && /* @__PURE__ */ c(c4, { chapterId: `${r}`, pageNumber: r }),
2494
+ /* @__PURE__ */ O(
2495
+ "div",
2496
+ {
2497
+ className: S(C?.Page?.firstTwoPagesBorder, {
2498
+ [R.firstTwoPagesBorder]: u && q,
2499
+ [R.blueFirstTwoPagesBorder]: u && q && l === "blue",
2500
+ [R.sepiaFirstTwoPagesBorder]: u && q && l === "sepia"
2501
+ }),
2502
+ children: [
2503
+ r === 2 && /* @__PURE__ */ c("div", { className: T0.bismillahContainer, children: /* @__PURE__ */ c(o4, {}) }),
2504
+ Object.keys(f).map((p, v) => /* @__PURE__ */ c(
2505
+ S6,
2506
+ {
2507
+ pageIndex: t,
2508
+ lineIndex: v,
2509
+ lineKey: p,
2510
+ words: f[p],
2511
+ isBigTextLayout: h,
2512
+ onWordClick: n,
2513
+ onWordHover: a
2514
+ },
2515
+ p
2516
+ ))
2517
+ ]
2518
+ }
2519
+ )
2520
+ ]
2521
+ }
2522
+ ),
2523
+ u && /* @__PURE__ */ c(B5, { borderColor: l, value: r })
2524
+ ]
2525
+ }
2526
+ )
2529
2527
  }
2530
2528
  );
2531
2529
  }, K5 = ({ onWordClick: e, onWordHover: r }) => {