@okam/stack-ui 1.25.4 → 1.26.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/components/DirectusImg/interface.d.ts +3 -0
- package/index.js +1 -110
- package/index.mjs +165 -12753
- package/index10.js +2 -0
- package/index10.mjs +92 -0
- package/index100.js +1 -0
- package/index100.mjs +67 -0
- package/index101.js +1 -0
- package/index101.mjs +144 -0
- package/index102.js +1 -0
- package/index102.mjs +122 -0
- package/index103.js +1 -0
- package/index103.mjs +220 -0
- package/index104.js +1 -0
- package/index104.mjs +177 -0
- package/index105.js +1 -0
- package/index105.mjs +129 -0
- package/index106.js +1 -0
- package/index106.mjs +243 -0
- package/index107.js +1 -0
- package/index107.mjs +6 -0
- package/index108.js +1 -0
- package/index108.mjs +13 -0
- package/index109.js +1 -0
- package/index109.mjs +16 -0
- package/index11.js +2 -0
- package/index11.mjs +75 -0
- package/index110.js +1 -0
- package/index110.mjs +25 -0
- package/index111.js +1 -0
- package/index111.mjs +25 -0
- package/index112.js +1 -0
- package/index112.mjs +41 -0
- package/index113.js +2 -0
- package/index113.mjs +15 -0
- package/index114.js +1 -0
- package/index114.mjs +10 -0
- package/index115.js +1 -0
- package/index115.mjs +24 -0
- package/index116.js +1 -0
- package/index116.mjs +41 -0
- package/index117.js +1 -0
- package/index117.mjs +52 -0
- package/index118.js +1 -0
- package/index118.mjs +43 -0
- package/index119.js +1 -0
- package/index119.mjs +16 -0
- package/index12.js +1 -0
- package/index12.mjs +19 -0
- package/index120.js +1 -0
- package/index120.mjs +28 -0
- package/index121.js +1 -0
- package/index121.mjs +22 -0
- package/index122.js +1 -0
- package/index122.mjs +11 -0
- package/index123.js +1 -0
- package/index123.mjs +32 -0
- package/index124.js +1 -0
- package/index124.mjs +17 -0
- package/index125.js +1 -0
- package/index125.mjs +19 -0
- package/index126.js +1 -0
- package/index126.mjs +7 -0
- package/index127.js +1 -0
- package/index127.mjs +23 -0
- package/index128.js +1 -0
- package/index128.mjs +13 -0
- package/index129.js +1 -0
- package/index129.mjs +106 -0
- package/index13.js +2 -0
- package/index13.mjs +22 -0
- package/index130.js +1 -0
- package/index130.mjs +44 -0
- package/index131.js +2 -0
- package/index131.mjs +24 -0
- package/index132.js +1 -0
- package/index132.mjs +14 -0
- package/index133.js +1 -0
- package/index133.mjs +23 -0
- package/index134.js +1 -0
- package/index134.mjs +53 -0
- package/index135.js +1 -0
- package/index135.mjs +29 -0
- package/index136.js +1 -0
- package/index136.mjs +27 -0
- package/index137.js +1 -0
- package/index137.mjs +48 -0
- package/index138.js +2 -0
- package/index138.mjs +14 -0
- package/index14.js +2 -0
- package/index14.mjs +21 -0
- package/index141.js +1 -0
- package/index141.mjs +44 -0
- package/index142.js +1 -0
- package/index142.mjs +31 -0
- package/index143.js +1 -0
- package/index143.mjs +202 -0
- package/index144.js +1 -0
- package/index144.mjs +193 -0
- package/index145.js +1 -0
- package/index145.mjs +72 -0
- package/index146.js +1 -0
- package/index146.mjs +261 -0
- package/index147.js +1 -0
- package/index147.mjs +100 -0
- package/index148.js +1 -0
- package/index148.mjs +87 -0
- package/index149.js +1 -0
- package/index149.mjs +61 -0
- package/index15.js +2 -0
- package/index15.mjs +88 -0
- package/index150.js +1 -0
- package/index150.mjs +119 -0
- package/index151.js +1 -0
- package/index151.mjs +125 -0
- package/index152.js +1 -0
- package/index152.mjs +75 -0
- package/index153.js +1 -0
- package/index153.mjs +113 -0
- package/index154.js +1 -0
- package/index154.mjs +55 -0
- package/index155.js +1 -0
- package/index155.mjs +96 -0
- package/index156.js +1 -0
- package/index156.mjs +73 -0
- package/index157.js +1 -0
- package/index157.mjs +59 -0
- package/index158.js +1 -0
- package/index158.mjs +102 -0
- package/index159.js +5 -0
- package/index159.mjs +83 -0
- package/index16.js +2 -0
- package/index16.mjs +35 -0
- package/index160.js +1 -0
- package/index160.mjs +2014 -0
- package/index161.js +1 -0
- package/index161.mjs +62 -0
- package/index162.js +1 -0
- package/index162.mjs +191 -0
- package/index163.js +1 -0
- package/index163.mjs +8 -0
- package/index164.js +4 -0
- package/index164.mjs +249 -0
- package/index165.js +1 -0
- package/index165.mjs +33 -0
- package/index166.js +1 -0
- package/index166.mjs +64 -0
- package/index167.js +1 -0
- package/index167.mjs +97 -0
- package/index168.js +1 -0
- package/index168.mjs +34 -0
- package/index169.js +1 -0
- package/index169.mjs +133 -0
- package/index17.js +2 -0
- package/index17.mjs +37 -0
- package/index170.js +1 -0
- package/index170.mjs +182 -0
- package/index171.js +1 -0
- package/index171.mjs +12 -0
- package/index172.js +1 -0
- package/index172.mjs +6 -0
- package/index173.js +1 -0
- package/index173.mjs +39 -0
- package/index174.js +1 -0
- package/index174.mjs +8 -0
- package/index175.js +1 -0
- package/index175.mjs +32 -0
- package/index176.js +1 -0
- package/index176.mjs +9 -0
- package/index177.js +1 -0
- package/index177.mjs +124 -0
- package/index178.js +1 -0
- package/index178.mjs +30 -0
- package/index179.js +1 -0
- package/index179.mjs +127 -0
- package/index18.js +2 -0
- package/index18.mjs +35 -0
- package/index180.js +1 -0
- package/index180.mjs +137 -0
- package/index181.js +1 -0
- package/index181.mjs +17 -0
- package/index182.js +1 -0
- package/index182.mjs +98 -0
- package/index183.js +1 -0
- package/index183.mjs +109 -0
- package/index184.js +1 -0
- package/index184.mjs +8 -0
- package/index185.js +1 -0
- package/index185.mjs +6 -0
- package/index186.js +1 -0
- package/index186.mjs +128 -0
- package/index187.js +1 -0
- package/index187.mjs +32 -0
- package/index188.js +1 -0
- package/index188.mjs +54 -0
- package/index189.js +1 -0
- package/index189.mjs +47 -0
- package/index19.js +2 -0
- package/index19.mjs +38 -0
- package/index190.js +1 -0
- package/index190.mjs +40 -0
- package/index191.js +1 -0
- package/index191.mjs +116 -0
- package/index192.js +1 -0
- package/index192.mjs +80 -0
- package/index193.js +1 -0
- package/index193.mjs +104 -0
- package/index194.js +1 -0
- package/index194.mjs +100 -0
- package/index195.js +1 -0
- package/index195.mjs +4 -0
- package/index196.js +1 -0
- package/index196.mjs +8 -0
- package/index197.js +1 -0
- package/index197.mjs +67 -0
- package/index198.js +1 -0
- package/index198.mjs +29 -0
- package/index199.js +1 -0
- package/index199.mjs +57 -0
- package/index2.js +2 -0
- package/index2.mjs +149 -0
- package/index20.js +2 -0
- package/index20.mjs +73 -0
- package/index200.js +1 -0
- package/index200.mjs +158 -0
- package/index201.js +1 -0
- package/index201.mjs +25 -0
- package/index202.js +1 -0
- package/index202.mjs +22 -0
- package/index203.js +1 -0
- package/index203.mjs +42 -0
- package/index204.js +1 -0
- package/index204.mjs +85 -0
- package/index205.js +1 -0
- package/index205.mjs +33 -0
- package/index206.js +1 -0
- package/index206.mjs +24 -0
- package/index207.js +1 -0
- package/index207.mjs +63 -0
- package/index208.js +1 -0
- package/index208.mjs +4 -0
- package/index209.js +11 -0
- package/index209.mjs +118 -0
- package/index21.js +2 -0
- package/index21.mjs +70 -0
- package/index210.js +1 -0
- package/index210.mjs +4 -0
- package/index211.js +1 -0
- package/index211.mjs +8 -0
- package/index212.js +1 -0
- package/index212.mjs +4 -0
- package/index213.js +1 -0
- package/index213.mjs +55 -0
- package/index214.js +1 -0
- package/index214.mjs +23 -0
- package/index215.js +1 -0
- package/index215.mjs +26 -0
- package/index216.js +1 -0
- package/index216.mjs +29 -0
- package/index217.js +1 -0
- package/index217.mjs +49 -0
- package/index218.js +1 -0
- package/index218.mjs +4 -0
- package/index219.js +1 -0
- package/index219.mjs +23 -0
- package/index22.js +2 -0
- package/index22.mjs +56 -0
- package/index220.js +1 -0
- package/index220.mjs +4 -0
- package/index221.js +1 -0
- package/index221.mjs +31 -0
- package/index222.js +1 -0
- package/index222.mjs +4 -0
- package/index223.js +1 -0
- package/index223.mjs +4 -0
- package/index224.js +1 -0
- package/index224.mjs +25 -0
- package/index225.js +1 -0
- package/index225.mjs +4 -0
- package/index226.js +1 -0
- package/index226.mjs +4 -0
- package/index227.js +1 -0
- package/index227.mjs +4 -0
- package/index228.js +1 -0
- package/index228.mjs +40 -0
- package/index229.js +1 -0
- package/index229.mjs +4 -0
- package/index23.js +2 -0
- package/index23.mjs +60 -0
- package/index230.js +1 -0
- package/index230.mjs +23 -0
- package/index231.js +1 -0
- package/index231.mjs +25 -0
- package/index232.js +1 -0
- package/index232.mjs +4 -0
- package/index233.js +1 -0
- package/index233.mjs +25 -0
- package/index234.js +1 -0
- package/index234.mjs +4 -0
- package/index235.js +1 -0
- package/index235.mjs +316 -0
- package/index236.js +1 -0
- package/index236.mjs +195 -0
- package/index237.js +1 -0
- package/index237.mjs +11 -0
- package/index238.js +1 -0
- package/index238.mjs +29 -0
- package/index239.js +1 -0
- package/index239.mjs +58 -0
- package/index24.js +2 -0
- package/index24.mjs +23 -0
- package/index240.js +1 -0
- package/index240.mjs +49 -0
- package/index241.js +1 -0
- package/index241.mjs +127 -0
- package/index242.js +1 -0
- package/index242.mjs +8 -0
- package/index243.js +1 -0
- package/index243.mjs +4 -0
- package/index244.js +1 -0
- package/index244.mjs +4 -0
- package/index245.js +1 -0
- package/index245.mjs +4 -0
- package/index246.js +1 -0
- package/index246.mjs +20 -0
- package/index247.js +1 -0
- package/index247.mjs +29 -0
- package/index248.js +1 -0
- package/index248.mjs +4 -0
- package/index249.js +1 -0
- package/index249.mjs +91 -0
- package/index25.js +2 -0
- package/index25.mjs +53 -0
- package/index250.js +1 -0
- package/index250.mjs +22 -0
- package/index251.js +1 -0
- package/index251.mjs +4 -0
- package/index252.js +1 -0
- package/index252.mjs +40 -0
- package/index253.js +1 -0
- package/index253.mjs +139 -0
- package/index254.js +1 -0
- package/index254.mjs +4 -0
- package/index255.js +1 -0
- package/index255.mjs +25 -0
- package/index256.js +1 -0
- package/index256.mjs +4 -0
- package/index257.js +1 -0
- package/index257.mjs +4 -0
- package/index258.js +1 -0
- package/index258.mjs +4 -0
- package/index259.js +1 -0
- package/index259.mjs +4 -0
- package/index26.js +2 -0
- package/index26.mjs +20 -0
- package/index260.js +1 -0
- package/index260.mjs +25 -0
- package/index261.js +1 -0
- package/index261.mjs +4 -0
- package/index262.js +1 -0
- package/index262.mjs +28 -0
- package/index263.js +1 -0
- package/index263.mjs +4 -0
- package/index264.js +1 -0
- package/index264.mjs +4 -0
- package/index265.js +1 -0
- package/index265.mjs +4 -0
- package/index266.js +1 -0
- package/index266.mjs +4 -0
- package/index267.js +1 -0
- package/index267.mjs +4 -0
- package/index268.js +1 -0
- package/index268.mjs +74 -0
- package/index269.js +1 -0
- package/index269.mjs +4 -0
- package/index27.js +2 -0
- package/index27.mjs +36 -0
- package/index270.js +1 -0
- package/index270.mjs +4 -0
- package/index271.js +1 -0
- package/index271.mjs +21 -0
- package/index272.js +1 -0
- package/index272.mjs +4 -0
- package/index273.js +1 -0
- package/index273.mjs +4 -0
- package/index274.js +1 -0
- package/index274.mjs +4 -0
- package/index275.js +1 -0
- package/index275.mjs +31 -0
- package/index276.js +1 -0
- package/index276.mjs +9 -0
- package/index277.js +1 -0
- package/index277.mjs +10 -0
- package/index278.js +1 -0
- package/index278.mjs +10 -0
- package/index279.js +1 -0
- package/index279.mjs +4 -0
- package/index28.js +2 -0
- package/index28.mjs +27 -0
- package/index280.js +1 -0
- package/index280.mjs +39 -0
- package/index281.js +1 -0
- package/index281.mjs +4 -0
- package/index282.js +1 -0
- package/index282.mjs +7 -0
- package/index283.js +1 -0
- package/index283.mjs +8 -0
- package/index284.js +1 -0
- package/index284.mjs +12 -0
- package/index285.js +1 -0
- package/index285.mjs +4 -0
- package/index286.js +1 -0
- package/index286.mjs +20 -0
- package/index287.js +1 -0
- package/index287.mjs +33 -0
- package/index288.js +1 -0
- package/index288.mjs +4 -0
- package/index289.js +1 -0
- package/index289.mjs +4 -0
- package/index29.js +2 -0
- package/index29.mjs +11 -0
- package/index3.js +2 -0
- package/index3.mjs +22 -0
- package/index30.js +2 -0
- package/index30.mjs +35 -0
- package/index31.js +2 -0
- package/index31.mjs +36 -0
- package/index32.js +2 -0
- package/index32.mjs +106 -0
- package/index33.js +2 -0
- package/index33.mjs +12 -0
- package/index34.js +2 -0
- package/index34.mjs +49 -0
- package/index35.js +2 -0
- package/index35.mjs +21 -0
- package/index36.js +1 -0
- package/index36.mjs +9 -0
- package/index37.js +1 -0
- package/index37.mjs +49 -0
- package/index38.js +1 -0
- package/index38.mjs +27 -0
- package/index39.js +1 -0
- package/index39.mjs +7 -0
- package/index4.js +2 -0
- package/index4.mjs +25 -0
- package/index40.js +1 -0
- package/index40.mjs +10 -0
- package/index41.js +1 -0
- package/index41.mjs +10 -0
- package/index42.js +1 -0
- package/index42.mjs +7 -0
- package/index43.js +1 -0
- package/index43.mjs +7 -0
- package/index44.js +1 -0
- package/index44.mjs +7 -0
- package/index45.js +1 -0
- package/index45.mjs +7 -0
- package/index46.js +1 -0
- package/index46.mjs +13 -0
- package/index47.js +1 -0
- package/index47.mjs +15 -0
- package/index48.js +1 -0
- package/index48.mjs +15 -0
- package/index49.js +1 -0
- package/index49.mjs +48 -0
- package/index5.js +1 -0
- package/index5.mjs +34 -0
- package/index50.js +1 -0
- package/index50.mjs +10 -0
- package/index51.js +1 -0
- package/index51.mjs +73 -0
- package/index52.js +1 -0
- package/index52.mjs +10 -0
- package/index53.js +1 -0
- package/index53.mjs +15 -0
- package/index54.js +1 -0
- package/index54.mjs +12 -0
- package/index55.js +1 -0
- package/index55.mjs +19 -0
- package/index56.js +1 -0
- package/index56.mjs +15 -0
- package/index57.js +1 -0
- package/index57.mjs +15 -0
- package/index58.js +1 -0
- package/index58.mjs +15 -0
- package/index59.js +1 -0
- package/index59.mjs +13 -0
- package/index6.js +2 -0
- package/index6.mjs +60 -0
- package/index60.js +1 -0
- package/index60.mjs +13 -0
- package/index61.js +1 -0
- package/index61.mjs +15 -0
- package/index62.js +1 -0
- package/index62.mjs +16 -0
- package/index63.js +2 -0
- package/index63.mjs +25 -0
- package/index64.js +2 -0
- package/index64.mjs +19 -0
- package/index65.js +2 -0
- package/index65.mjs +17 -0
- package/index66.js +2 -0
- package/index66.mjs +44 -0
- package/index67.js +2 -0
- package/index67.mjs +41 -0
- package/index68.js +2 -0
- package/index68.mjs +15 -0
- package/index69.js +2 -0
- package/index69.mjs +14 -0
- package/index7.js +2 -0
- package/index7.mjs +86 -0
- package/index70.js +2 -0
- package/index70.mjs +17 -0
- package/index71.js +1 -0
- package/index71.mjs +4 -0
- package/index72.js +2 -0
- package/index72.mjs +11 -0
- package/index73.js +2 -0
- package/index73.mjs +10 -0
- package/index74.js +2 -0
- package/index74.mjs +10 -0
- package/index75.js +2 -0
- package/index75.mjs +10 -0
- package/index76.js +1 -0
- package/index76.mjs +27 -0
- package/index77.js +1 -0
- package/index77.mjs +4 -0
- package/index78.js +6 -0
- package/index78.mjs +96 -0
- package/index79.js +1 -0
- package/index79.mjs +71 -0
- package/index8.js +2 -0
- package/index8.mjs +27 -0
- package/index80.js +1 -0
- package/index80.mjs +43 -0
- package/index81.js +42 -0
- package/index81.mjs +72 -0
- package/index82.js +1 -0
- package/index82.mjs +161 -0
- package/index83.js +1 -0
- package/index83.mjs +24 -0
- package/index84.js +1 -0
- package/index84.mjs +47 -0
- package/index85.js +1 -0
- package/index85.mjs +15 -0
- package/index86.js +1 -0
- package/index86.mjs +37 -0
- package/index87.js +1 -0
- package/index87.mjs +8 -0
- package/index88.js +12 -0
- package/index88.mjs +42 -0
- package/index89.js +1 -0
- package/index89.mjs +31 -0
- package/index9.js +2 -0
- package/index9.mjs +64 -0
- package/index90.js +1 -0
- package/index90.mjs +15 -0
- package/index91.js +7 -0
- package/index91.mjs +21 -0
- package/index92.js +15 -0
- package/index92.mjs +73 -0
- package/index93.js +1 -0
- package/index93.mjs +9 -0
- package/index94.js +16 -0
- package/index94.mjs +27 -0
- package/index95.js +1 -0
- package/index95.mjs +44 -0
- package/index96.js +1 -0
- package/index96.mjs +47 -0
- package/index97.js +1 -0
- package/index97.mjs +50 -0
- package/index98.js +1 -0
- package/index98.mjs +19 -0
- package/index99.js +2 -0
- package/index99.mjs +24 -0
- package/package.json +1 -1
package/index161.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index162.js"),p=require("./index160.js");function d(n,i){n===void 0&&(n={}),i===void 0&&(i=!0);const t={on:{}},f={},s={};o.e(t,p.d),t._emitClasses=!0,t.init=!1;const e={},l=o.p.map(a=>a.replace(/_/,"")),r=Object.assign({},n);return Object.keys(r).forEach(a=>{typeof n[a]>"u"||(l.indexOf(a)>=0?o.i(n[a])?(t[a]={},s[a]={},o.e(t[a],n[a]),o.e(s[a],n[a])):(t[a]=n[a],s[a]=n[a]):a.search(/on[A-Z]/)===0&&typeof n[a]=="function"?i?f[`${a[2].toLowerCase()}${a.substr(3)}`]=n[a]:t.on[`${a[2].toLowerCase()}${a.substr(3)}`]=n[a]:e[a]=n[a])}),["navigation","pagination","scrollbar"].forEach(a=>{t[a]===!0&&(t[a]={}),t[a]===!1&&delete t[a]}),{params:t,passedParams:s,rest:e,events:f}}function m(n,i){let{el:t,nextEl:f,prevEl:s,paginationEl:e,scrollbarEl:l,swiper:r}=n;o.n(i)&&f&&s&&(r.params.navigation.nextEl=f,r.originalParams.navigation.nextEl=f,r.params.navigation.prevEl=s,r.originalParams.navigation.prevEl=s),o.a(i)&&e&&(r.params.pagination.el=e,r.originalParams.pagination.el=e),o.b(i)&&l&&(r.params.scrollbar.el=l,r.originalParams.scrollbar.el=l),r.init(t)}function h(n,i,t,f,s){const e=[];if(!i)return e;const l=a=>{e.indexOf(a)<0&&e.push(a)};if(t&&f){const a=f.map(s),u=t.map(s);a.join("")!==u.join("")&&l("children"),f.length!==t.length&&l("children")}return o.p.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in n&&a in i)if(o.i(n[a])&&o.i(i[a])){const u=Object.keys(n[a]),g=Object.keys(i[a]);u.length!==g.length?l(a):(u.forEach(c=>{n[a][c]!==i[a][c]&&l(a)}),g.forEach(c=>{n[a][c]!==i[a][c]&&l(a)}))}else n[a]!==i[a]&&l(a)}),e}const v=n=>{!n||n.destroyed||!n.params.virtual||n.params.virtual&&!n.params.virtual.enabled||(n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.parallax&&n.params.parallax&&n.params.parallax.enabled&&n.parallax.setTranslate())};exports.a=h;exports.g=d;exports.m=m;exports.u=v;
|
package/index161.mjs
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { e as u, p as d, i as g, n as m, a as h, b as v } from "./index162.mjs";
|
|
2
|
+
import { d as x } from "./index160.mjs";
|
|
3
|
+
function b(n, i) {
|
|
4
|
+
n === void 0 && (n = {}), i === void 0 && (i = !0);
|
|
5
|
+
const t = {
|
|
6
|
+
on: {}
|
|
7
|
+
}, e = {}, r = {};
|
|
8
|
+
u(t, x), t._emitClasses = !0, t.init = !1;
|
|
9
|
+
const o = {}, s = d.map((a) => a.replace(/_/, "")), l = Object.assign({}, n);
|
|
10
|
+
return Object.keys(l).forEach((a) => {
|
|
11
|
+
typeof n[a] > "u" || (s.indexOf(a) >= 0 ? g(n[a]) ? (t[a] = {}, r[a] = {}, u(t[a], n[a]), u(r[a], n[a])) : (t[a] = n[a], r[a] = n[a]) : a.search(/on[A-Z]/) === 0 && typeof n[a] == "function" ? i ? e[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : t.on[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : o[a] = n[a]);
|
|
12
|
+
}), ["navigation", "pagination", "scrollbar"].forEach((a) => {
|
|
13
|
+
t[a] === !0 && (t[a] = {}), t[a] === !1 && delete t[a];
|
|
14
|
+
}), {
|
|
15
|
+
params: t,
|
|
16
|
+
passedParams: r,
|
|
17
|
+
rest: o,
|
|
18
|
+
events: e
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function C(n, i) {
|
|
22
|
+
let {
|
|
23
|
+
el: t,
|
|
24
|
+
nextEl: e,
|
|
25
|
+
prevEl: r,
|
|
26
|
+
paginationEl: o,
|
|
27
|
+
scrollbarEl: s,
|
|
28
|
+
swiper: l
|
|
29
|
+
} = n;
|
|
30
|
+
m(i) && e && r && (l.params.navigation.nextEl = e, l.originalParams.navigation.nextEl = e, l.params.navigation.prevEl = r, l.originalParams.navigation.prevEl = r), h(i) && o && (l.params.pagination.el = o, l.originalParams.pagination.el = o), v(i) && s && (l.params.scrollbar.el = s, l.originalParams.scrollbar.el = s), l.init(t);
|
|
31
|
+
}
|
|
32
|
+
function S(n, i, t, e, r) {
|
|
33
|
+
const o = [];
|
|
34
|
+
if (!i) return o;
|
|
35
|
+
const s = (a) => {
|
|
36
|
+
o.indexOf(a) < 0 && o.push(a);
|
|
37
|
+
};
|
|
38
|
+
if (t && e) {
|
|
39
|
+
const a = e.map(r), c = t.map(r);
|
|
40
|
+
a.join("") !== c.join("") && s("children"), e.length !== t.length && s("children");
|
|
41
|
+
}
|
|
42
|
+
return d.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
43
|
+
if (a in n && a in i)
|
|
44
|
+
if (g(n[a]) && g(i[a])) {
|
|
45
|
+
const c = Object.keys(n[a]), p = Object.keys(i[a]);
|
|
46
|
+
c.length !== p.length ? s(a) : (c.forEach((f) => {
|
|
47
|
+
n[a][f] !== i[a][f] && s(a);
|
|
48
|
+
}), p.forEach((f) => {
|
|
49
|
+
n[a][f] !== i[a][f] && s(a);
|
|
50
|
+
}));
|
|
51
|
+
} else n[a] !== i[a] && s(a);
|
|
52
|
+
}), o;
|
|
53
|
+
}
|
|
54
|
+
const _ = (n) => {
|
|
55
|
+
!n || n.destroyed || !n.params.virtual || n.params.virtual && !n.params.virtual.enabled || (n.updateSlides(), n.updateProgress(), n.updateSlidesClasses(), n.parallax && n.params.parallax && n.params.parallax.enabled && n.parallax.setTranslate());
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
S as a,
|
|
59
|
+
b as g,
|
|
60
|
+
C as m,
|
|
61
|
+
_ as u
|
|
62
|
+
};
|
package/index162.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function g(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function j(t,i){const r=["__proto__","constructor","prototype"];Object.keys(i).filter(e=>r.indexOf(e)<0).forEach(e=>{typeof t[e]>"u"?t[e]=i[e]:g(i[e])&&g(t[e])&&Object.keys(i[e]).length>0?i[e].__swiper__?t[e]=i[e]:j(t[e],i[e]):t[e]=i[e]})}function z(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function B(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function I(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function L(t){t===void 0&&(t="");const i=t.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return i.forEach(e=>{r.indexOf(e)<0&&r.push(e)}),r.join(" ")}function N(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function A(t){let{swiper:i,slides:r,passedParams:e,changedParams:o,nextEl:s,prevEl:a,scrollbarEl:d,paginationEl:c}=t;const h=o.filter(n=>n!=="children"&&n!=="direction"&&n!=="wrapperClass"),{params:l,pagination:p,navigation:f,scrollbar:v,virtual:u,thumbs:E}=i;let S,_,P,C,x,m,O,b;o.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&l.thumbs&&!l.thumbs.swiper&&(S=!0),o.includes("controller")&&e.controller&&e.controller.control&&l.controller&&!l.controller.control&&(_=!0),o.includes("pagination")&&e.pagination&&(e.pagination.el||c)&&(l.pagination||l.pagination===!1)&&p&&!p.el&&(P=!0),o.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||d)&&(l.scrollbar||l.scrollbar===!1)&&v&&!v.el&&(C=!0),o.includes("navigation")&&e.navigation&&(e.navigation.prevEl||a)&&(e.navigation.nextEl||s)&&(l.navigation||l.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(x=!0);const T=n=>{i[n]&&(i[n].destroy(),n==="navigation"?(i.isElement&&(i[n].prevEl.remove(),i[n].nextEl.remove()),l[n].prevEl=void 0,l[n].nextEl=void 0,i[n].prevEl=void 0,i[n].nextEl=void 0):(i.isElement&&i[n].el.remove(),l[n].el=void 0,i[n].el=void 0))};o.includes("loop")&&i.isElement&&(l.loop&&!e.loop?m=!0:!l.loop&&e.loop?O=!0:b=!0),h.forEach(n=>{if(g(l[n])&&g(e[n]))Object.assign(l[n],e[n]),(n==="navigation"||n==="pagination"||n==="scrollbar")&&"enabled"in e[n]&&!e[n].enabled&&T(n);else{const w=e[n];(w===!0||w===!1)&&(n==="navigation"||n==="pagination"||n==="scrollbar")?w===!1&&T(n):l[n]=e[n]}}),h.includes("controller")&&!_&&i.controller&&i.controller.control&&l.controller&&l.controller.control&&(i.controller.control=l.controller.control),o.includes("children")&&r&&u&&l.virtual.enabled?(u.slides=r,u.update(!0)):o.includes("virtual")&&u&&l.virtual.enabled&&(r&&(u.slides=r),u.update(!0)),o.includes("children")&&r&&l.loop&&(b=!0),S&&E.init()&&E.update(!0),_&&(i.controller.control=l.controller.control),P&&(i.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),i.el.appendChild(c)),c&&(l.pagination.el=c),p.init(),p.render(),p.update()),C&&(i.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),i.el.appendChild(d)),d&&(l.scrollbar.el=d),v.init(),v.updateSize(),v.setTranslate()),x&&(i.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=i.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),i.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=i.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),i.el.appendChild(a))),s&&(l.navigation.nextEl=s),a&&(l.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(i.allowSlideNext=e.allowSlideNext),o.includes("allowSlidePrev")&&(i.allowSlidePrev=e.allowSlidePrev),o.includes("direction")&&i.changeDirection(e.direction,!1),(m||b)&&i.loopDestroy(),(O||b)&&i.loopCreate(),i.update()}exports.a=B;exports.b=I;exports.d=L;exports.e=j;exports.i=g;exports.n=z;exports.p=M;exports.u=A;exports.w=N;
|
package/index162.mjs
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
const z = [
|
|
2
|
+
"eventsPrefix",
|
|
3
|
+
"injectStyles",
|
|
4
|
+
"injectStylesUrls",
|
|
5
|
+
"modules",
|
|
6
|
+
"init",
|
|
7
|
+
"_direction",
|
|
8
|
+
"oneWayMovement",
|
|
9
|
+
"swiperElementNodeName",
|
|
10
|
+
"touchEventsTarget",
|
|
11
|
+
"initialSlide",
|
|
12
|
+
"_speed",
|
|
13
|
+
"cssMode",
|
|
14
|
+
"updateOnWindowResize",
|
|
15
|
+
"resizeObserver",
|
|
16
|
+
"nested",
|
|
17
|
+
"focusableElements",
|
|
18
|
+
"_enabled",
|
|
19
|
+
"_width",
|
|
20
|
+
"_height",
|
|
21
|
+
"preventInteractionOnTransition",
|
|
22
|
+
"userAgent",
|
|
23
|
+
"url",
|
|
24
|
+
"_edgeSwipeDetection",
|
|
25
|
+
"_edgeSwipeThreshold",
|
|
26
|
+
"_freeMode",
|
|
27
|
+
"_autoHeight",
|
|
28
|
+
"setWrapperSize",
|
|
29
|
+
"virtualTranslate",
|
|
30
|
+
"_effect",
|
|
31
|
+
"breakpoints",
|
|
32
|
+
"breakpointsBase",
|
|
33
|
+
"_spaceBetween",
|
|
34
|
+
"_slidesPerView",
|
|
35
|
+
"maxBackfaceHiddenSlides",
|
|
36
|
+
"_grid",
|
|
37
|
+
"_slidesPerGroup",
|
|
38
|
+
"_slidesPerGroupSkip",
|
|
39
|
+
"_slidesPerGroupAuto",
|
|
40
|
+
"_centeredSlides",
|
|
41
|
+
"_centeredSlidesBounds",
|
|
42
|
+
"_slidesOffsetBefore",
|
|
43
|
+
"_slidesOffsetAfter",
|
|
44
|
+
"normalizeSlideIndex",
|
|
45
|
+
"_centerInsufficientSlides",
|
|
46
|
+
"_watchOverflow",
|
|
47
|
+
"roundLengths",
|
|
48
|
+
"touchRatio",
|
|
49
|
+
"touchAngle",
|
|
50
|
+
"simulateTouch",
|
|
51
|
+
"_shortSwipes",
|
|
52
|
+
"_longSwipes",
|
|
53
|
+
"longSwipesRatio",
|
|
54
|
+
"longSwipesMs",
|
|
55
|
+
"_followFinger",
|
|
56
|
+
"allowTouchMove",
|
|
57
|
+
"_threshold",
|
|
58
|
+
"touchMoveStopPropagation",
|
|
59
|
+
"touchStartPreventDefault",
|
|
60
|
+
"touchStartForcePreventDefault",
|
|
61
|
+
"touchReleaseOnEdges",
|
|
62
|
+
"uniqueNavElements",
|
|
63
|
+
"_resistance",
|
|
64
|
+
"_resistanceRatio",
|
|
65
|
+
"_watchSlidesProgress",
|
|
66
|
+
"_grabCursor",
|
|
67
|
+
"preventClicks",
|
|
68
|
+
"preventClicksPropagation",
|
|
69
|
+
"_slideToClickedSlide",
|
|
70
|
+
"_loop",
|
|
71
|
+
"loopAdditionalSlides",
|
|
72
|
+
"loopAddBlankSlides",
|
|
73
|
+
"loopPreventsSliding",
|
|
74
|
+
"_rewind",
|
|
75
|
+
"_allowSlidePrev",
|
|
76
|
+
"_allowSlideNext",
|
|
77
|
+
"_swipeHandler",
|
|
78
|
+
"_noSwiping",
|
|
79
|
+
"noSwipingClass",
|
|
80
|
+
"noSwipingSelector",
|
|
81
|
+
"passiveListeners",
|
|
82
|
+
"containerModifierClass",
|
|
83
|
+
"slideClass",
|
|
84
|
+
"slideActiveClass",
|
|
85
|
+
"slideVisibleClass",
|
|
86
|
+
"slideFullyVisibleClass",
|
|
87
|
+
"slideNextClass",
|
|
88
|
+
"slidePrevClass",
|
|
89
|
+
"slideBlankClass",
|
|
90
|
+
"wrapperClass",
|
|
91
|
+
"lazyPreloaderClass",
|
|
92
|
+
"lazyPreloadPrevNext",
|
|
93
|
+
"runCallbacksOnInit",
|
|
94
|
+
"observer",
|
|
95
|
+
"observeParents",
|
|
96
|
+
"observeSlideChildren",
|
|
97
|
+
// modules
|
|
98
|
+
"a11y",
|
|
99
|
+
"_autoplay",
|
|
100
|
+
"_controller",
|
|
101
|
+
"coverflowEffect",
|
|
102
|
+
"cubeEffect",
|
|
103
|
+
"fadeEffect",
|
|
104
|
+
"flipEffect",
|
|
105
|
+
"creativeEffect",
|
|
106
|
+
"cardsEffect",
|
|
107
|
+
"hashNavigation",
|
|
108
|
+
"history",
|
|
109
|
+
"keyboard",
|
|
110
|
+
"mousewheel",
|
|
111
|
+
"_navigation",
|
|
112
|
+
"_pagination",
|
|
113
|
+
"parallax",
|
|
114
|
+
"_scrollbar",
|
|
115
|
+
"_thumbs",
|
|
116
|
+
"virtual",
|
|
117
|
+
"zoom",
|
|
118
|
+
"control"
|
|
119
|
+
];
|
|
120
|
+
function b(n) {
|
|
121
|
+
return typeof n == "object" && n !== null && n.constructor && Object.prototype.toString.call(n).slice(8, -1) === "Object" && !n.__swiper__;
|
|
122
|
+
}
|
|
123
|
+
function j(n, i) {
|
|
124
|
+
const r = ["__proto__", "constructor", "prototype"];
|
|
125
|
+
Object.keys(i).filter((e) => r.indexOf(e) < 0).forEach((e) => {
|
|
126
|
+
typeof n[e] > "u" ? n[e] = i[e] : b(i[e]) && b(n[e]) && Object.keys(i[e]).length > 0 ? i[e].__swiper__ ? n[e] = i[e] : j(n[e], i[e]) : n[e] = i[e];
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function M(n) {
|
|
130
|
+
return n === void 0 && (n = {}), n.navigation && typeof n.navigation.nextEl > "u" && typeof n.navigation.prevEl > "u";
|
|
131
|
+
}
|
|
132
|
+
function B(n) {
|
|
133
|
+
return n === void 0 && (n = {}), n.pagination && typeof n.pagination.el > "u";
|
|
134
|
+
}
|
|
135
|
+
function I(n) {
|
|
136
|
+
return n === void 0 && (n = {}), n.scrollbar && typeof n.scrollbar.el > "u";
|
|
137
|
+
}
|
|
138
|
+
function L(n) {
|
|
139
|
+
n === void 0 && (n = "");
|
|
140
|
+
const i = n.split(" ").map((e) => e.trim()).filter((e) => !!e), r = [];
|
|
141
|
+
return i.forEach((e) => {
|
|
142
|
+
r.indexOf(e) < 0 && r.push(e);
|
|
143
|
+
}), r.join(" ");
|
|
144
|
+
}
|
|
145
|
+
function N(n) {
|
|
146
|
+
return n === void 0 && (n = ""), n ? n.includes("swiper-wrapper") ? n : `swiper-wrapper ${n}` : "swiper-wrapper";
|
|
147
|
+
}
|
|
148
|
+
function A(n) {
|
|
149
|
+
let {
|
|
150
|
+
swiper: i,
|
|
151
|
+
slides: r,
|
|
152
|
+
passedParams: e,
|
|
153
|
+
changedParams: o,
|
|
154
|
+
nextEl: s,
|
|
155
|
+
prevEl: a,
|
|
156
|
+
scrollbarEl: d,
|
|
157
|
+
paginationEl: c
|
|
158
|
+
} = n;
|
|
159
|
+
const h = o.filter((t) => t !== "children" && t !== "direction" && t !== "wrapperClass"), {
|
|
160
|
+
params: l,
|
|
161
|
+
pagination: p,
|
|
162
|
+
navigation: f,
|
|
163
|
+
scrollbar: v,
|
|
164
|
+
virtual: u,
|
|
165
|
+
thumbs: E
|
|
166
|
+
} = i;
|
|
167
|
+
let S, _, x, C, P, m, O, g;
|
|
168
|
+
o.includes("thumbs") && e.thumbs && e.thumbs.swiper && l.thumbs && !l.thumbs.swiper && (S = !0), o.includes("controller") && e.controller && e.controller.control && l.controller && !l.controller.control && (_ = !0), o.includes("pagination") && e.pagination && (e.pagination.el || c) && (l.pagination || l.pagination === !1) && p && !p.el && (x = !0), o.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || d) && (l.scrollbar || l.scrollbar === !1) && v && !v.el && (C = !0), o.includes("navigation") && e.navigation && (e.navigation.prevEl || a) && (e.navigation.nextEl || s) && (l.navigation || l.navigation === !1) && f && !f.prevEl && !f.nextEl && (P = !0);
|
|
169
|
+
const T = (t) => {
|
|
170
|
+
i[t] && (i[t].destroy(), t === "navigation" ? (i.isElement && (i[t].prevEl.remove(), i[t].nextEl.remove()), l[t].prevEl = void 0, l[t].nextEl = void 0, i[t].prevEl = void 0, i[t].nextEl = void 0) : (i.isElement && i[t].el.remove(), l[t].el = void 0, i[t].el = void 0));
|
|
171
|
+
};
|
|
172
|
+
o.includes("loop") && i.isElement && (l.loop && !e.loop ? m = !0 : !l.loop && e.loop ? O = !0 : g = !0), h.forEach((t) => {
|
|
173
|
+
if (b(l[t]) && b(e[t]))
|
|
174
|
+
Object.assign(l[t], e[t]), (t === "navigation" || t === "pagination" || t === "scrollbar") && "enabled" in e[t] && !e[t].enabled && T(t);
|
|
175
|
+
else {
|
|
176
|
+
const w = e[t];
|
|
177
|
+
(w === !0 || w === !1) && (t === "navigation" || t === "pagination" || t === "scrollbar") ? w === !1 && T(t) : l[t] = e[t];
|
|
178
|
+
}
|
|
179
|
+
}), h.includes("controller") && !_ && i.controller && i.controller.control && l.controller && l.controller.control && (i.controller.control = l.controller.control), o.includes("children") && r && u && l.virtual.enabled ? (u.slides = r, u.update(!0)) : o.includes("virtual") && u && l.virtual.enabled && (r && (u.slides = r), u.update(!0)), o.includes("children") && r && l.loop && (g = !0), S && E.init() && E.update(!0), _ && (i.controller.control = l.controller.control), x && (i.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), i.el.appendChild(c)), c && (l.pagination.el = c), p.init(), p.render(), p.update()), C && (i.isElement && (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-scrollbar"), d.part.add("scrollbar"), i.el.appendChild(d)), d && (l.scrollbar.el = d), v.init(), v.updateSize(), v.setTranslate()), P && (i.isElement && ((!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-next"), s.innerHTML = i.hostEl.constructor.nextButtonSvg, s.part.add("button-next"), i.el.appendChild(s)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), a.innerHTML = i.hostEl.constructor.prevButtonSvg, a.part.add("button-prev"), i.el.appendChild(a))), s && (l.navigation.nextEl = s), a && (l.navigation.prevEl = a), f.init(), f.update()), o.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), o.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), o.includes("direction") && i.changeDirection(e.direction, !1), (m || g) && i.loopDestroy(), (O || g) && i.loopCreate(), i.update();
|
|
180
|
+
}
|
|
181
|
+
export {
|
|
182
|
+
B as a,
|
|
183
|
+
I as b,
|
|
184
|
+
L as d,
|
|
185
|
+
j as e,
|
|
186
|
+
b as i,
|
|
187
|
+
M as n,
|
|
188
|
+
z as p,
|
|
189
|
+
A as u,
|
|
190
|
+
N as w
|
|
191
|
+
};
|
package/index163.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
|
package/index163.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
8
|
+
};
|
package/index164.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./index195.js");require("./index196.js");const ae=require("react/jsx-runtime"),fe=require("react"),de=require("./index197.js"),pe=require("./index198.js"),he=require("./index199.js"),_e=require("./index200.js"),me=require("./index201.js"),ve=require("./index202.js"),we=require("./index203.js"),ge=require("./index204.js"),ye=require("./index205.js"),Ee=require("./index206.js"),be=require("./index207.js"),qe=require("./index208.js");(function(X,p){"use client";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return se}});const z=qe.__exports,O=ae,l=z._(fe),D=de.__require(),S=pe.__require(),J=he.__require(),Q=_e.__require(),Y=me.__require(),Z=ve.__require(),ee=we.__require(),te=ge.__require(),re=ye.__require(),oe=Ee.__require(),U=be.__require(),H=new Set;function T(o,r,a,n,s,f){if(typeof window>"u"||!f&&!(0,S.isLocalURL)(r))return;if(!n.bypassPrefetchedCheck){const g=typeof n.locale<"u"?n.locale:"locale"in o?o.locale:void 0,E=r+"%"+a+"%"+g;if(H.has(E))return;H.add(E)}const b=f?o.prefetch(r,s):o.prefetch(r,a,n);Promise.resolve(b).catch(g=>{if(process.env.NODE_ENV!=="production")throw g})}function ne(o){const a=o.currentTarget.getAttribute("target");return a&&a!=="_self"||o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.nativeEvent&&o.nativeEvent.which===2}function ie(o,r,a,n,s,f,b,g,E){const{nodeName:j}=o.currentTarget;if(j.toUpperCase()==="A"&&(ne(o)||!E&&!(0,S.isLocalURL)(a)))return;o.preventDefault();const C=()=>{const h=b??!0;"beforePopState"in r?r[s?"replace":"push"](a,n,{shallow:f,locale:g,scroll:h}):r[s?"replace":"push"](n||a,{scroll:h})};E?l.default.startTransition(C):C()}function V(o){return typeof o=="string"?o:(0,J.formatUrl)(o)}const se=l.default.forwardRef(function(r,a){let n;const{href:s,as:f,children:b,prefetch:g=null,passHref:E,replace:j,shallow:A,scroll:C,locale:h,onClick:k,onMouseEnter:R,onTouchStart:K,legacyBehavior:d=!1,...ce}=r;n=b,d&&(typeof n=="string"||typeof n=="number")&&(n=(0,O.jsx)("a",{children:n}));const i=l.default.useContext(Z.RouterContext),le=l.default.useContext(ee.AppRouterContext),_=i??le,m=!i,L=g!==!1,x=g===null?U.PrefetchKind.AUTO:U.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let e=function(t){return new Error("Failed prop type: The prop `"+t.key+"` expects a "+t.expected+" in `<Link>`, but got `"+t.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
+
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(t=>{if(t==="href"&&(r[t]==null||typeof r[t]!="string"&&typeof r[t]!="object"))throw e({key:t,expected:"`string` or `object`",actual:r[t]===null?"null":typeof r[t]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(t=>{const w=typeof r[t];if(t==="as"){if(r[t]&&w!=="string"&&w!=="object")throw e({key:t,expected:"`string` or `object`",actual:w})}else if(t==="locale"){if(r[t]&&w!=="string")throw e({key:t,expected:"`string`",actual:w})}else if(t==="onClick"||t==="onMouseEnter"||t==="onTouchStart"){if(r[t]&&w!=="function")throw e({key:t,expected:"`function`",actual:w})}else if((t==="replace"||t==="scroll"||t==="shallow"||t==="passHref"||t==="prefetch"||t==="legacyBehavior")&&r[t]!=null&&w!=="boolean")throw e({key:t,expected:"`boolean`",actual:w})});const F=l.default.useRef(!1);r.prefetch&&!F.current&&!m&&(F.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&m&&!f){let e;if(typeof s=="string"?e=s:typeof s=="object"&&typeof s.pathname=="string"&&(e=s.pathname),e&&e.split("/").some(P=>P.startsWith("[")&&P.endsWith("]")))throw new Error("Dynamic href `"+e+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:v,as:u}=l.default.useMemo(()=>{if(!i){const P=V(s);return{href:P,as:f?V(f):P}}const[e,y]=(0,D.resolveHref)(i,s,!0);return{href:e,as:f?(0,D.resolveHref)(i,f):y||e}},[i,s,f]),B=l.default.useRef(v),I=l.default.useRef(u);let c;if(d)if(process.env.NODE_ENV==="development"){k&&console.warn('"onClick" was passed to <Link> with `href` of `'+s+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),R&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+s+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{c=l.default.Children.only(n)}catch{throw n?new Error("Multiple children were passed to <Link> with `href` of `"+s+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
|
|
3
|
+
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+s+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else c=l.default.Children.only(n);else if(process.env.NODE_ENV==="development"&&(n==null?void 0:n.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
4
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const q=d?c&&typeof c=="object"&&c.ref:a,[G,W,$]=(0,te.useIntersection)({rootMargin:"200px"}),ue=l.default.useCallback(e=>{(I.current!==u||B.current!==v)&&($(),I.current=u,B.current=v),G(e),q&&(typeof q=="function"?q(e):typeof q=="object"&&(q.current=e))},[u,q,v,$,G]);l.default.useEffect(()=>{process.env.NODE_ENV==="production"&&_&&(!W||!L||T(_,v,u,{locale:h},{kind:x},m))},[u,v,W,h,L,i==null?void 0:i.locale,_,m,x]);const N={ref:ue,onClick(e){if(process.env.NODE_ENV!=="production"&&!e)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!d&&typeof k=="function"&&k(e),d&&c.props&&typeof c.props.onClick=="function"&&c.props.onClick(e),_&&(e.defaultPrevented||ie(e,_,v,u,j,A,C,h,m))},onMouseEnter(e){!d&&typeof R=="function"&&R(e),d&&c.props&&typeof c.props.onMouseEnter=="function"&&c.props.onMouseEnter(e),_&&((!L||process.env.NODE_ENV==="development")&&m||T(_,v,u,{locale:h,priority:!0,bypassPrefetchedCheck:!0},{kind:x},m))},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(y){!d&&typeof K=="function"&&K(y),d&&c.props&&typeof c.props.onTouchStart=="function"&&c.props.onTouchStart(y),_&&(!L&&m||T(_,v,u,{locale:h,priority:!0,bypassPrefetchedCheck:!0},{kind:x},m))}};if((0,Q.isAbsoluteUrl)(u))N.href=u;else if(!d||E||c.type==="a"&&!("href"in c.props)){const e=typeof h<"u"?h:i==null?void 0:i.locale,y=(i==null?void 0:i.isLocaleDomain)&&(0,re.getDomainLocale)(u,e,i==null?void 0:i.locales,i==null?void 0:i.domainLocales);N.href=y||(0,oe.addBasePath)((0,Y.addLocale)(u,e,i==null?void 0:i.defaultLocale))}return d?l.default.cloneElement(c,N):(0,O.jsx)("a",{...ce,...N,children:n})});(typeof p.default=="function"||typeof p.default=="object"&&p.default!==null)&&typeof p.default.__esModule>"u"&&(Object.defineProperty(p.default,"__esModule",{value:!0}),Object.assign(p.default,p),X.exports=p.default)})(M.__module,M.__module.exports);var Pe=M.__module.exports;exports.linkExports=Pe;
|
package/index164.mjs
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { __module as M } from "./index195.mjs";
|
|
2
|
+
import "./index196.mjs";
|
|
3
|
+
import ue from "react/jsx-runtime";
|
|
4
|
+
import fe from "react";
|
|
5
|
+
import { __require as de } from "./index197.mjs";
|
|
6
|
+
import { __require as pe } from "./index198.mjs";
|
|
7
|
+
import { __require as he } from "./index199.mjs";
|
|
8
|
+
import { __require as me } from "./index200.mjs";
|
|
9
|
+
import { __require as _e } from "./index201.mjs";
|
|
10
|
+
import { __require as ve } from "./index202.mjs";
|
|
11
|
+
import { __require as we } from "./index203.mjs";
|
|
12
|
+
import { __require as ge } from "./index204.mjs";
|
|
13
|
+
import { __require as ye } from "./index205.mjs";
|
|
14
|
+
import { __require as Ee } from "./index206.mjs";
|
|
15
|
+
import { __require as be } from "./index207.mjs";
|
|
16
|
+
import { __exports as Pe } from "./index208.mjs";
|
|
17
|
+
(function(X, p) {
|
|
18
|
+
"use client";
|
|
19
|
+
Object.defineProperty(p, "__esModule", {
|
|
20
|
+
value: !0
|
|
21
|
+
}), Object.defineProperty(p, "default", {
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
get: function() {
|
|
24
|
+
return se;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const z = Pe, D = ue, a = /* @__PURE__ */ z._(fe), O = de(), S = pe(), J = he(), Q = me(), Y = _e(), Z = ve(), ee = we(), te = ge(), re = ye(), oe = Ee(), U = be(), A = /* @__PURE__ */ new Set();
|
|
28
|
+
function T(o, r, u, n, s, f) {
|
|
29
|
+
if (typeof window > "u" || !f && !(0, S.isLocalURL)(r))
|
|
30
|
+
return;
|
|
31
|
+
if (!n.bypassPrefetchedCheck) {
|
|
32
|
+
const g = (
|
|
33
|
+
// Let the link's locale prop override the default router locale.
|
|
34
|
+
typeof n.locale < "u" ? n.locale : "locale" in o ? o.locale : void 0
|
|
35
|
+
), E = r + "%" + u + "%" + g;
|
|
36
|
+
if (A.has(E))
|
|
37
|
+
return;
|
|
38
|
+
A.add(E);
|
|
39
|
+
}
|
|
40
|
+
const b = f ? o.prefetch(r, s) : o.prefetch(r, u, n);
|
|
41
|
+
Promise.resolve(b).catch((g) => {
|
|
42
|
+
if (process.env.NODE_ENV !== "production")
|
|
43
|
+
throw g;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function ne(o) {
|
|
47
|
+
const u = o.currentTarget.getAttribute("target");
|
|
48
|
+
return u && u !== "_self" || o.metaKey || o.ctrlKey || o.shiftKey || o.altKey || // triggers resource download
|
|
49
|
+
o.nativeEvent && o.nativeEvent.which === 2;
|
|
50
|
+
}
|
|
51
|
+
function ie(o, r, u, n, s, f, b, g, E) {
|
|
52
|
+
const { nodeName: R } = o.currentTarget;
|
|
53
|
+
if (R.toUpperCase() === "A" && (ne(o) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
|
|
54
|
+
!E && !(0, S.isLocalURL)(u)))
|
|
55
|
+
return;
|
|
56
|
+
o.preventDefault();
|
|
57
|
+
const C = () => {
|
|
58
|
+
const h = b ?? !0;
|
|
59
|
+
"beforePopState" in r ? r[s ? "replace" : "push"](u, n, {
|
|
60
|
+
shallow: f,
|
|
61
|
+
locale: g,
|
|
62
|
+
scroll: h
|
|
63
|
+
}) : r[s ? "replace" : "push"](n || u, {
|
|
64
|
+
scroll: h
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
E ? a.default.startTransition(C) : C();
|
|
68
|
+
}
|
|
69
|
+
function H(o) {
|
|
70
|
+
return typeof o == "string" ? o : (0, J.formatUrl)(o);
|
|
71
|
+
}
|
|
72
|
+
const se = /* @__PURE__ */ a.default.forwardRef(function(r, u) {
|
|
73
|
+
let n;
|
|
74
|
+
const { href: s, as: f, children: b, prefetch: g = null, passHref: E, replace: R, shallow: V, scroll: C, locale: h, onClick: j, onMouseEnter: k, onTouchStart: K, legacyBehavior: d = !1, ...ce } = r;
|
|
75
|
+
n = b, d && (typeof n == "string" || typeof n == "number") && (n = /* @__PURE__ */ (0, D.jsx)("a", {
|
|
76
|
+
children: n
|
|
77
|
+
}));
|
|
78
|
+
const i = a.default.useContext(Z.RouterContext), ae = a.default.useContext(ee.AppRouterContext), m = i ?? ae, _ = !i, L = g !== !1, x = g === null ? U.PrefetchKind.AUTO : U.PrefetchKind.FULL;
|
|
79
|
+
if (process.env.NODE_ENV !== "production") {
|
|
80
|
+
let e = function(t) {
|
|
81
|
+
return new Error("Failed prop type: The prop `" + t.key + "` expects a " + t.expected + " in `<Link>`, but got `" + t.actual + "` instead." + (typeof window < "u" ? `
|
|
82
|
+
Open your browser's console to view the Component stack trace.` : ""));
|
|
83
|
+
};
|
|
84
|
+
Object.keys({
|
|
85
|
+
href: !0
|
|
86
|
+
}).forEach((t) => {
|
|
87
|
+
if (t === "href" && (r[t] == null || typeof r[t] != "string" && typeof r[t] != "object"))
|
|
88
|
+
throw e({
|
|
89
|
+
key: t,
|
|
90
|
+
expected: "`string` or `object`",
|
|
91
|
+
actual: r[t] === null ? "null" : typeof r[t]
|
|
92
|
+
});
|
|
93
|
+
}), Object.keys({
|
|
94
|
+
as: !0,
|
|
95
|
+
replace: !0,
|
|
96
|
+
scroll: !0,
|
|
97
|
+
shallow: !0,
|
|
98
|
+
passHref: !0,
|
|
99
|
+
prefetch: !0,
|
|
100
|
+
locale: !0,
|
|
101
|
+
onClick: !0,
|
|
102
|
+
onMouseEnter: !0,
|
|
103
|
+
onTouchStart: !0,
|
|
104
|
+
legacyBehavior: !0
|
|
105
|
+
}).forEach((t) => {
|
|
106
|
+
const w = typeof r[t];
|
|
107
|
+
if (t === "as") {
|
|
108
|
+
if (r[t] && w !== "string" && w !== "object")
|
|
109
|
+
throw e({
|
|
110
|
+
key: t,
|
|
111
|
+
expected: "`string` or `object`",
|
|
112
|
+
actual: w
|
|
113
|
+
});
|
|
114
|
+
} else if (t === "locale") {
|
|
115
|
+
if (r[t] && w !== "string")
|
|
116
|
+
throw e({
|
|
117
|
+
key: t,
|
|
118
|
+
expected: "`string`",
|
|
119
|
+
actual: w
|
|
120
|
+
});
|
|
121
|
+
} else if (t === "onClick" || t === "onMouseEnter" || t === "onTouchStart") {
|
|
122
|
+
if (r[t] && w !== "function")
|
|
123
|
+
throw e({
|
|
124
|
+
key: t,
|
|
125
|
+
expected: "`function`",
|
|
126
|
+
actual: w
|
|
127
|
+
});
|
|
128
|
+
} else if ((t === "replace" || t === "scroll" || t === "shallow" || t === "passHref" || t === "prefetch" || t === "legacyBehavior") && r[t] != null && w !== "boolean")
|
|
129
|
+
throw e({
|
|
130
|
+
key: t,
|
|
131
|
+
expected: "`boolean`",
|
|
132
|
+
actual: w
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
const $ = a.default.useRef(!1);
|
|
136
|
+
r.prefetch && !$.current && !_ && ($.current = !0, console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"));
|
|
137
|
+
}
|
|
138
|
+
if (process.env.NODE_ENV !== "production" && _ && !f) {
|
|
139
|
+
let e;
|
|
140
|
+
if (typeof s == "string" ? e = s : typeof s == "object" && typeof s.pathname == "string" && (e = s.pathname), e && e.split("/").some((q) => q.startsWith("[") && q.endsWith("]")))
|
|
141
|
+
throw new Error("Dynamic href `" + e + "` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href");
|
|
142
|
+
}
|
|
143
|
+
const { href: v, as: l } = a.default.useMemo(() => {
|
|
144
|
+
if (!i) {
|
|
145
|
+
const q = H(s);
|
|
146
|
+
return {
|
|
147
|
+
href: q,
|
|
148
|
+
as: f ? H(f) : q
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
const [e, y] = (0, O.resolveHref)(i, s, !0);
|
|
152
|
+
return {
|
|
153
|
+
href: e,
|
|
154
|
+
as: f ? (0, O.resolveHref)(i, f) : y || e
|
|
155
|
+
};
|
|
156
|
+
}, [
|
|
157
|
+
i,
|
|
158
|
+
s,
|
|
159
|
+
f
|
|
160
|
+
]), B = a.default.useRef(v), I = a.default.useRef(l);
|
|
161
|
+
let c;
|
|
162
|
+
if (d)
|
|
163
|
+
if (process.env.NODE_ENV === "development") {
|
|
164
|
+
j && console.warn('"onClick" was passed to <Link> with `href` of `' + s + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), k && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + s + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
|
|
165
|
+
try {
|
|
166
|
+
c = a.default.Children.only(n);
|
|
167
|
+
} catch {
|
|
168
|
+
throw n ? new Error("Multiple children were passed to <Link> with `href` of `" + s + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window < "u" ? `
|
|
169
|
+
Open your browser's console to view the Component stack trace.` : "")) : new Error("No children were passed to <Link> with `href` of `" + s + "` but one child is required https://nextjs.org/docs/messages/link-no-children");
|
|
170
|
+
}
|
|
171
|
+
} else
|
|
172
|
+
c = a.default.Children.only(n);
|
|
173
|
+
else if (process.env.NODE_ENV === "development" && (n == null ? void 0 : n.type) === "a")
|
|
174
|
+
throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
175
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);
|
|
176
|
+
const P = d ? c && typeof c == "object" && c.ref : u, [G, F, W] = (0, te.useIntersection)({
|
|
177
|
+
rootMargin: "200px"
|
|
178
|
+
}), le = a.default.useCallback((e) => {
|
|
179
|
+
(I.current !== l || B.current !== v) && (W(), I.current = l, B.current = v), G(e), P && (typeof P == "function" ? P(e) : typeof P == "object" && (P.current = e));
|
|
180
|
+
}, [
|
|
181
|
+
l,
|
|
182
|
+
P,
|
|
183
|
+
v,
|
|
184
|
+
W,
|
|
185
|
+
G
|
|
186
|
+
]);
|
|
187
|
+
a.default.useEffect(() => {
|
|
188
|
+
process.env.NODE_ENV === "production" && m && (!F || !L || T(m, v, l, {
|
|
189
|
+
locale: h
|
|
190
|
+
}, {
|
|
191
|
+
kind: x
|
|
192
|
+
}, _));
|
|
193
|
+
}, [
|
|
194
|
+
l,
|
|
195
|
+
v,
|
|
196
|
+
F,
|
|
197
|
+
h,
|
|
198
|
+
L,
|
|
199
|
+
i == null ? void 0 : i.locale,
|
|
200
|
+
m,
|
|
201
|
+
_,
|
|
202
|
+
x
|
|
203
|
+
]);
|
|
204
|
+
const N = {
|
|
205
|
+
ref: le,
|
|
206
|
+
onClick(e) {
|
|
207
|
+
if (process.env.NODE_ENV !== "production" && !e)
|
|
208
|
+
throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
|
|
209
|
+
!d && typeof j == "function" && j(e), d && c.props && typeof c.props.onClick == "function" && c.props.onClick(e), m && (e.defaultPrevented || ie(e, m, v, l, R, V, C, h, _));
|
|
210
|
+
},
|
|
211
|
+
onMouseEnter(e) {
|
|
212
|
+
!d && typeof k == "function" && k(e), d && c.props && typeof c.props.onMouseEnter == "function" && c.props.onMouseEnter(e), m && ((!L || process.env.NODE_ENV === "development") && _ || T(m, v, l, {
|
|
213
|
+
locale: h,
|
|
214
|
+
priority: !0,
|
|
215
|
+
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
216
|
+
bypassPrefetchedCheck: !0
|
|
217
|
+
}, {
|
|
218
|
+
kind: x
|
|
219
|
+
}, _));
|
|
220
|
+
},
|
|
221
|
+
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function(y) {
|
|
222
|
+
!d && typeof K == "function" && K(y), d && c.props && typeof c.props.onTouchStart == "function" && c.props.onTouchStart(y), m && (!L && _ || T(m, v, l, {
|
|
223
|
+
locale: h,
|
|
224
|
+
priority: !0,
|
|
225
|
+
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
226
|
+
bypassPrefetchedCheck: !0
|
|
227
|
+
}, {
|
|
228
|
+
kind: x
|
|
229
|
+
}, _));
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
if ((0, Q.isAbsoluteUrl)(l))
|
|
233
|
+
N.href = l;
|
|
234
|
+
else if (!d || E || c.type === "a" && !("href" in c.props)) {
|
|
235
|
+
const e = typeof h < "u" ? h : i == null ? void 0 : i.locale, y = (i == null ? void 0 : i.isLocaleDomain) && (0, re.getDomainLocale)(l, e, i == null ? void 0 : i.locales, i == null ? void 0 : i.domainLocales);
|
|
236
|
+
N.href = y || (0, oe.addBasePath)((0, Y.addLocale)(l, e, i == null ? void 0 : i.defaultLocale));
|
|
237
|
+
}
|
|
238
|
+
return d ? /* @__PURE__ */ a.default.cloneElement(c, N) : /* @__PURE__ */ (0, D.jsx)("a", {
|
|
239
|
+
...ce,
|
|
240
|
+
...N,
|
|
241
|
+
children: n
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
(typeof p.default == "function" || typeof p.default == "object" && p.default !== null) && typeof p.default.__esModule > "u" && (Object.defineProperty(p.default, "__esModule", { value: !0 }), Object.assign(p.default, p), X.exports = p.default);
|
|
245
|
+
})(M, M.exports);
|
|
246
|
+
var Ie = M.exports;
|
|
247
|
+
export {
|
|
248
|
+
Ie as l
|
|
249
|
+
};
|
package/index165.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const y=require("react/jsx-runtime"),q=require("./index138.js"),a=require("react-aria"),A=require("./index136.js"),P=require("./index6.js"),g=l=>{const{themeName:d,tokens:c,alerts:r,activeIndex:x,index:t}=l,{controller:e}=q.useAlertsController(),s=a.useFocusManager(),b=t===0?r.length-1:t-1,p=t===r.length-1?0:t+1,{keyboardProps:v}=a.useKeyboard({onKeyUp:i=>{i.key==="ArrowLeft"&&(i.preventDefault(),s==null||s.focusPrevious({wrap:!0}),e==null||e.slideTo(b)),i.key==="ArrowRight"&&(i.preventDefault(),s==null||s.focusNext({wrap:!0}),e==null||e.slideTo(p))}}),{pressProps:$}=a.usePress({onPress:()=>e==null?void 0:e.slideTo(t)}),h=r[t],n=t===x,{title:o,id:f}=h,u=o&&o.length>0;return y.jsx(P.default,{as:"button",tabIndex:0,role:"button","aria-current":n?"true":"false","aria-disabled":n,"aria-label":u?void 0:`${t+1} / ${r.length}`,"aria-labelledby":u?A(`${f}-${o}`):void 0,...v,...$,themeName:`${d}.bullet`,tokens:{...c,active:n}})};module.exports=g;
|
package/index165.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { useAlertsController as y } from "./index138.mjs";
|
|
3
|
+
import { useFocusManager as P, useKeyboard as g, usePress as k } from "react-aria";
|
|
4
|
+
import A from "./index136.mjs";
|
|
5
|
+
import $ from "./index6.mjs";
|
|
6
|
+
const D = (l) => {
|
|
7
|
+
const { themeName: u, tokens: d, alerts: o, activeIndex: p, index: t } = l, { controller: e } = y(), s = P(), m = t === 0 ? o.length - 1 : t - 1, f = t === o.length - 1 ? 0 : t + 1, { keyboardProps: c } = g({
|
|
8
|
+
onKeyUp: (r) => {
|
|
9
|
+
r.key === "ArrowLeft" && (r.preventDefault(), s == null || s.focusPrevious({ wrap: !0 }), e == null || e.slideTo(m)), r.key === "ArrowRight" && (r.preventDefault(), s == null || s.focusNext({ wrap: !0 }), e == null || e.slideTo(f));
|
|
10
|
+
}
|
|
11
|
+
}), { pressProps: b } = k({
|
|
12
|
+
onPress: () => e == null ? void 0 : e.slideTo(t)
|
|
13
|
+
}), v = o[t], i = t === p, { title: n, id: x } = v, a = n && n.length > 0;
|
|
14
|
+
return /* @__PURE__ */ h(
|
|
15
|
+
$,
|
|
16
|
+
{
|
|
17
|
+
as: "button",
|
|
18
|
+
tabIndex: 0,
|
|
19
|
+
role: "button",
|
|
20
|
+
"aria-current": i ? "true" : "false",
|
|
21
|
+
"aria-disabled": i,
|
|
22
|
+
"aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
|
|
23
|
+
"aria-labelledby": a ? A(`${x}-${n}`) : void 0,
|
|
24
|
+
...c,
|
|
25
|
+
...b,
|
|
26
|
+
themeName: `${u}.bullet`,
|
|
27
|
+
tokens: { ...d, active: i }
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
D as default
|
|
33
|
+
};
|
package/index166.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@react-aria/utils"),O=require("@react-aria/focus"),m=require("./index235.js");function S(s,o){let{elementType:r="button",isDisabled:e,onPress:l,onPressStart:u,onPressEnd:P,onPressUp:p,onPressChange:c,preventFocusOnPress:b,allowFocusWhenDisabled:f,onClick:i,href:g,target:h,rel:y,type:d="button"}=s,n;r==="button"?n={type:d,disabled:e}:n={role:"button",tabIndex:e?void 0:0,href:r==="a"&&e?void 0:g,target:r==="a"?h:void 0,type:r==="input"?d:void 0,disabled:r==="input"?e:void 0,"aria-disabled":!e||r==="input"?void 0:e,rel:r==="a"?y:void 0};let{pressProps:C,isPressed:x}=m.usePress({onPressStart:u,onPressEnd:P,onPressChange:c,onPress:l,onPressUp:p,isDisabled:e,preventFocusOnPress:b,ref:o}),{focusableProps:t}=O.useFocusable(s,o);f&&(t.tabIndex=e?-1:t.tabIndex);let D=a.mergeProps(t,C,a.filterDOMProps(s,{labelable:!0}));return{isPressed:x,buttonProps:a.mergeProps(n,D,{"aria-haspopup":s["aria-haspopup"],"aria-expanded":s["aria-expanded"],"aria-controls":s["aria-controls"],"aria-pressed":s["aria-pressed"],onClick:F=>{i&&(i(F),console.warn("onClick is deprecated, please use onPress"))}})}}exports.useButton=S;
|