@kakadu/components 1.7.14 → 2.0.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/build/components/kakadu-guide-logo.js +1 -1
- package/build/components/kakadu-guide-logo.mjs +5 -5
- package/build/components/modal.js +4 -4
- package/build/components/modal.mjs +30 -30
- package/build/components.css +1 -1
- package/build/icons/anchor-down.d.ts +2 -0
- package/build/icons/anchor-down.js +1 -0
- package/build/icons/anchor-down.mjs +34 -0
- package/build/icons/anchor-up.d.ts +2 -0
- package/build/icons/anchor-up.js +1 -0
- package/build/icons/anchor-up.mjs +24 -0
- package/build/icons/icon.d.ts +2 -0
- package/build/icons/icon.js +1 -1
- package/build/icons/icon.mjs +51 -47
- package/build/icons/kakadu-guide-icon.d.ts +2 -0
- package/build/icons/{kakadu-guide.mjs → kakadu-guide-icon.mjs} +6 -6
- package/build/index.d.ts +6 -2
- package/build/index.js +1 -1
- package/build/index.mjs +50 -46
- package/package.json +1 -1
- package/build/icons/kakadu-guide.d.ts +0 -2
- /package/build/icons/{kakadu-guide.js → kakadu-guide-icon.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-BB_1_6y_.js"),o=require("../icons/kakadu-guide.js"),r=require("../utilities/scale.js"),e=require("./flex.js"),m=require("./kakadu-guide-icon.js"),a=require("./aria-text.js");function x({fill:c,...t}){const{width:n,height:u}=r.default({originalWidth:110,originalHeight:52,width:t.width,height:t.height});return s.jsxRuntimeExports.jsx("svg",{fill:"none",viewBox:"0 0 110 52",xmlns:"http://www.w3.org/2000/svg",...t,width:n,height:u,children:s.jsxRuntimeExports.jsxs("g",{fill:c??"currentColor",children:[s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsxs("g",{opacity:.8,children:[s.jsxRuntimeExports.jsx("path",{d:"m50.0654 51.3369c-1.0869 0-2.0234-.2427-2.8095-.728-.7793-.4922-1.3775-1.1724-1.7945-2.0405-.417-.875-.6255-1.8833-.6255-3.0249s.2085-2.1534.6255-3.0352c.4239-.8818 1.0152-1.5723 1.774-2.0713.7656-.499 1.6508-.7485 2.6557-.7485.6631 0 1.292.1162 1.8867.3486.6016.2256 1.1314.5742 1.5894 1.0459.4648.4717.8271 1.0664 1.0869 1.7842.2666.7178.3999 1.562.3999 2.5327v.6563h-8.9004v-1.5279h7.916l-.8203.5537c0-.7451-.123-1.4013-.3691-1.9687-.2461-.5742-.605-1.0186-1.0767-1.333-.4648-.3213-1.0356-.482-1.7124-.482-.6699 0-1.2475.1607-1.7329.482-.4853.3213-.8613.7553-1.1279 1.3022-.2598.5401-.3897 1.145-.3897 1.815v.9228c0 .8067.1402 1.5039.4204 2.0918.2803.5811.6768 1.0288 1.1895 1.3433.5195.3076 1.1279.4614 1.8252.4614.4717 0 .8955-.0684 1.2715-.2051.3828-.1435.7041-.352.9638-.6255.2666-.2734.4649-.6015.5948-.9843l1.7636.2973c-.164.6221-.458 1.169-.8818 1.6406-.4238.4717-.9536.8409-1.5894 1.1075-.6357.2597-1.3466.3896-2.1328.3896z"}),s.jsxRuntimeExports.jsx("path",{d:"m37.1343 51.3164c-.9434 0-1.7774-.2393-2.502-.7178s-1.2885-1.1518-1.6919-2.02c-.3965-.875-.5947-1.9004-.5947-3.0762 0-1.1757.2017-2.1977.605-3.0659.4033-.8681.9639-1.5381 1.6816-2.0097.7246-.4786 1.5586-.7178 2.502-.7178.6426 0 1.1792.1025 1.6098.3076.4375.1982.793.4443 1.0664.7383.2803.2939.5059.581.6768.8613h.0923v-5.8037h1.8047v15.2783h-1.7534v-1.7226h-.1333c-.1778.2939-.4102.5913-.6973.8921-.2803.3007-.6392.5537-1.0767.7587-.4306.1983-.9604.2974-1.5893.2974zm.2666-1.6099c.6904 0 1.2749-.1777 1.7534-.5332.4853-.3554.8545-.8476 1.1074-1.4765.2598-.6358.3897-1.3706.3897-2.2046 0-.8408-.1265-1.5723-.3794-2.1943-.253-.6221-.6221-1.1075-1.1074-1.4561-.4854-.3486-1.0733-.523-1.7637-.523-.6836 0-1.2681.1744-1.7534.523-.4786.3486-.8443.8374-1.0972 1.4663-.2529.6221-.3794 1.3501-.3794 2.1841 0 .8271.1265 1.5586.3794 2.1943.2598.6289.6289 1.1245 1.1074 1.4868.4854.3555 1.0664.5332 1.7432.5332z"}),s.jsxRuntimeExports.jsx("path",{d:"m28.1001 51.0908v-11.2178h1.8047v11.2178zm.9023-13.1865c-.3349 0-.6254-.1162-.8715-.3486-.2461-.2393-.3692-.5264-.3692-.8614 0-.3349.1231-.6186.3692-.851.2461-.2393.5366-.3589.8715-.3589.3487 0 .646.1196.8921.3589.2461.2324.3692.5195.3692.8613 0 .3281-.1231.6118-.3692.8511-.2461.2324-.5434.3486-.8921.3486z"}),s.jsxRuntimeExports.jsx("path",{d:"m19.96 51.2549c-.752 0-1.4253-.1572-2.0201-.4717-.5947-.3213-1.0595-.7998-1.3945-1.4355-.335-.6426-.5024-1.4458-.5024-2.4097v-7.065h1.8047v6.9214c0 .9024.229 1.5996.687 2.0918s1.0903.7383 1.8969.7383c.5332 0 1.0152-.1128 1.4458-.3384.4375-.2324.7828-.5776 1.0357-1.0356.2529-.4649.3794-1.0357.3794-1.7124v-6.6651h1.8149v11.2178h-1.7534v-2.7173h.3486c-.3554 1.0323-.8579 1.7705-1.5073 2.2149-.6426.4443-1.3877.6665-2.2353.6665z"}),s.jsxRuntimeExports.jsx("path",{d:"m7.01953 51.3164c-1.36035 0-2.55664-.3247-3.58887-.9741-1.03222-.6563-1.84228-1.5723-2.43017-2.7481-.581056-1.1757-.871584-2.5532-.871584-4.1323 0-1.5928.290528-2.977.871584-4.1528.58105-1.1758 1.38428-2.0884 2.40967-2.7378 1.03222-.6563 2.21142-.9844 3.53759-.9844.80664 0 1.56202.1231 2.26612.3692.7041.246 1.33303.5947 1.88673 1.0459.5605.4511 1.0254.9877 1.3945 1.6098.3692.6153.6221 1.2988.7588 2.0508h-1.9585c-.1367-.499-.3384-.9502-.605-1.3535s-.5879-.7486-.96384-1.0357c-.36914-.2939-.78955-.5195-1.26123-.6767-.46484-.1572-.9707-.2359-1.51758-.2359-.94336 0-1.78759.2427-2.53271.7281-.74512.4853-1.33301 1.1826-1.76367 2.0918-.43067.9091-.646 2.0029-.646 3.2812 0 1.2647.21533 2.3516.646 3.2608.43066.9023 1.02197 1.5996 1.77392 2.0918.75879.4853 1.62354.728 2.59424.728.86133 0 1.62695-.1846 2.29688-.5537.66992-.376 1.19629-.9024 1.57909-1.5791.3897-.6768.5845-1.4732.5845-2.3892l.5845.082h-4.55278v-1.6713h5.84468v1.6611c0 1.2373-.2768 2.3242-.8305 3.2607-.5469.9297-1.2988 1.6577-2.2559 2.1841-.95018.5195-2.03367.7793-3.25047.7793z"})]})]})})}var i=(c=>(c.default="default",c.flat="flat",c))(i||{});function d({variant:c="default",height:t=56}){return s.jsxRuntimeExports.jsxs(e.default,{direction:"row",alignment:e.FlexAlignment.start,style:{gap:t/3},children:[c==="flat"?s.jsxRuntimeExports.jsx(o.default,{width:t,height:t,fill:"var(--foreground-color)"}):s.jsxRuntimeExports.jsx(m.default,{size:t}),s.jsxRuntimeExports.jsx(x,{height:t-2,className:"kakadu-components-3861346893"}),s.jsxRuntimeExports.jsx(a.default,{children:"Kakadu Guide"})]})}exports.KakaduGuideLogoSvg=x;exports.KakaduGuideLogoVariant=i;exports.default=d;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-BB_1_6y_.js"),u=require("../icons/kakadu-guide-icon.js"),r=require("../utilities/scale.js"),e=require("./flex.js"),m=require("./kakadu-guide-icon.js"),a=require("./aria-text.js");function x({fill:c,...t}){const{width:n,height:o}=r.default({originalWidth:110,originalHeight:52,width:t.width,height:t.height});return s.jsxRuntimeExports.jsx("svg",{fill:"none",viewBox:"0 0 110 52",xmlns:"http://www.w3.org/2000/svg",...t,width:n,height:o,children:s.jsxRuntimeExports.jsxs("g",{fill:c??"currentColor",children:[s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsxs("g",{opacity:.8,children:[s.jsxRuntimeExports.jsx("path",{d:"m50.0654 51.3369c-1.0869 0-2.0234-.2427-2.8095-.728-.7793-.4922-1.3775-1.1724-1.7945-2.0405-.417-.875-.6255-1.8833-.6255-3.0249s.2085-2.1534.6255-3.0352c.4239-.8818 1.0152-1.5723 1.774-2.0713.7656-.499 1.6508-.7485 2.6557-.7485.6631 0 1.292.1162 1.8867.3486.6016.2256 1.1314.5742 1.5894 1.0459.4648.4717.8271 1.0664 1.0869 1.7842.2666.7178.3999 1.562.3999 2.5327v.6563h-8.9004v-1.5279h7.916l-.8203.5537c0-.7451-.123-1.4013-.3691-1.9687-.2461-.5742-.605-1.0186-1.0767-1.333-.4648-.3213-1.0356-.482-1.7124-.482-.6699 0-1.2475.1607-1.7329.482-.4853.3213-.8613.7553-1.1279 1.3022-.2598.5401-.3897 1.145-.3897 1.815v.9228c0 .8067.1402 1.5039.4204 2.0918.2803.5811.6768 1.0288 1.1895 1.3433.5195.3076 1.1279.4614 1.8252.4614.4717 0 .8955-.0684 1.2715-.2051.3828-.1435.7041-.352.9638-.6255.2666-.2734.4649-.6015.5948-.9843l1.7636.2973c-.164.6221-.458 1.169-.8818 1.6406-.4238.4717-.9536.8409-1.5894 1.1075-.6357.2597-1.3466.3896-2.1328.3896z"}),s.jsxRuntimeExports.jsx("path",{d:"m37.1343 51.3164c-.9434 0-1.7774-.2393-2.502-.7178s-1.2885-1.1518-1.6919-2.02c-.3965-.875-.5947-1.9004-.5947-3.0762 0-1.1757.2017-2.1977.605-3.0659.4033-.8681.9639-1.5381 1.6816-2.0097.7246-.4786 1.5586-.7178 2.502-.7178.6426 0 1.1792.1025 1.6098.3076.4375.1982.793.4443 1.0664.7383.2803.2939.5059.581.6768.8613h.0923v-5.8037h1.8047v15.2783h-1.7534v-1.7226h-.1333c-.1778.2939-.4102.5913-.6973.8921-.2803.3007-.6392.5537-1.0767.7587-.4306.1983-.9604.2974-1.5893.2974zm.2666-1.6099c.6904 0 1.2749-.1777 1.7534-.5332.4853-.3554.8545-.8476 1.1074-1.4765.2598-.6358.3897-1.3706.3897-2.2046 0-.8408-.1265-1.5723-.3794-2.1943-.253-.6221-.6221-1.1075-1.1074-1.4561-.4854-.3486-1.0733-.523-1.7637-.523-.6836 0-1.2681.1744-1.7534.523-.4786.3486-.8443.8374-1.0972 1.4663-.2529.6221-.3794 1.3501-.3794 2.1841 0 .8271.1265 1.5586.3794 2.1943.2598.6289.6289 1.1245 1.1074 1.4868.4854.3555 1.0664.5332 1.7432.5332z"}),s.jsxRuntimeExports.jsx("path",{d:"m28.1001 51.0908v-11.2178h1.8047v11.2178zm.9023-13.1865c-.3349 0-.6254-.1162-.8715-.3486-.2461-.2393-.3692-.5264-.3692-.8614 0-.3349.1231-.6186.3692-.851.2461-.2393.5366-.3589.8715-.3589.3487 0 .646.1196.8921.3589.2461.2324.3692.5195.3692.8613 0 .3281-.1231.6118-.3692.8511-.2461.2324-.5434.3486-.8921.3486z"}),s.jsxRuntimeExports.jsx("path",{d:"m19.96 51.2549c-.752 0-1.4253-.1572-2.0201-.4717-.5947-.3213-1.0595-.7998-1.3945-1.4355-.335-.6426-.5024-1.4458-.5024-2.4097v-7.065h1.8047v6.9214c0 .9024.229 1.5996.687 2.0918s1.0903.7383 1.8969.7383c.5332 0 1.0152-.1128 1.4458-.3384.4375-.2324.7828-.5776 1.0357-1.0356.2529-.4649.3794-1.0357.3794-1.7124v-6.6651h1.8149v11.2178h-1.7534v-2.7173h.3486c-.3554 1.0323-.8579 1.7705-1.5073 2.2149-.6426.4443-1.3877.6665-2.2353.6665z"}),s.jsxRuntimeExports.jsx("path",{d:"m7.01953 51.3164c-1.36035 0-2.55664-.3247-3.58887-.9741-1.03222-.6563-1.84228-1.5723-2.43017-2.7481-.581056-1.1757-.871584-2.5532-.871584-4.1323 0-1.5928.290528-2.977.871584-4.1528.58105-1.1758 1.38428-2.0884 2.40967-2.7378 1.03222-.6563 2.21142-.9844 3.53759-.9844.80664 0 1.56202.1231 2.26612.3692.7041.246 1.33303.5947 1.88673 1.0459.5605.4511 1.0254.9877 1.3945 1.6098.3692.6153.6221 1.2988.7588 2.0508h-1.9585c-.1367-.499-.3384-.9502-.605-1.3535s-.5879-.7486-.96384-1.0357c-.36914-.2939-.78955-.5195-1.26123-.6767-.46484-.1572-.9707-.2359-1.51758-.2359-.94336 0-1.78759.2427-2.53271.7281-.74512.4853-1.33301 1.1826-1.76367 2.0918-.43067.9091-.646 2.0029-.646 3.2812 0 1.2647.21533 2.3516.646 3.2608.43066.9023 1.02197 1.5996 1.77392 2.0918.75879.4853 1.62354.728 2.59424.728.86133 0 1.62695-.1846 2.29688-.5537.66992-.376 1.19629-.9024 1.57909-1.5791.3897-.6768.5845-1.4732.5845-2.3892l.5845.082h-4.55278v-1.6713h5.84468v1.6611c0 1.2373-.2768 2.3242-.8305 3.2607-.5469.9297-1.2988 1.6577-2.2559 2.1841-.95018.5195-2.03367.7793-3.25047.7793z"})]})]})})}var i=(c=>(c.default="default",c.flat="flat",c))(i||{});function d({variant:c="default",height:t=56}){return s.jsxRuntimeExports.jsxs(e.default,{direction:"row",alignment:e.FlexAlignment.start,style:{gap:t/3},children:[c==="flat"?s.jsxRuntimeExports.jsx(u.default,{width:t,height:t,fill:"var(--foreground-color)"}):s.jsxRuntimeExports.jsx(m.default,{size:t}),s.jsxRuntimeExports.jsx(x,{height:t-2,className:"kakadu-components-3861346893"}),s.jsxRuntimeExports.jsx(a.default,{children:"Kakadu Guide"})]})}exports.KakaduGuideLogoSvg=x;exports.KakaduGuideLogoVariant=i;exports.default=d;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as c } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
|
-
import m from "../icons/kakadu-guide.mjs";
|
|
2
|
+
import m from "../icons/kakadu-guide-icon.mjs";
|
|
3
3
|
import d from "../utilities/scale.mjs";
|
|
4
4
|
import i, { FlexAlignment as l } from "./flex.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import o from "./kakadu-guide-icon.mjs";
|
|
6
|
+
import r from "./aria-text.mjs";
|
|
7
7
|
function v({
|
|
8
8
|
fill: t,
|
|
9
9
|
...s
|
|
@@ -47,9 +47,9 @@ function f({
|
|
|
47
47
|
return /* @__PURE__ */ c.jsxs(i, { direction: "row", alignment: l.start, style: {
|
|
48
48
|
gap: s / 3
|
|
49
49
|
}, children: [
|
|
50
|
-
t === "flat" ? /* @__PURE__ */ c.jsx(m, { width: s, height: s, fill: "var(--foreground-color)" }) : /* @__PURE__ */ c.jsx(
|
|
50
|
+
t === "flat" ? /* @__PURE__ */ c.jsx(m, { width: s, height: s, fill: "var(--foreground-color)" }) : /* @__PURE__ */ c.jsx(o, { size: s }),
|
|
51
51
|
/* @__PURE__ */ c.jsx(v, { height: s - 2, className: "kakadu-components-3861346893" }),
|
|
52
|
-
/* @__PURE__ */ c.jsx(
|
|
52
|
+
/* @__PURE__ */ c.jsx(r, { children: "Kakadu Guide" })
|
|
53
53
|
] });
|
|
54
54
|
}
|
|
55
55
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("../jsx-runtime-BB_1_6y_.js"),O=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("../jsx-runtime-BB_1_6y_.js"),O=require("react"),se=require("@kuma-ui/core"),xe=require("react-dom"),je=require("../icons/icon.js"),Pe=require("./text-button.js");function me(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return r[a]}})}),t}var J={exports:{}};/*!
|
|
2
2
|
* tabbable 6.4.0
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var ge=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],te=ge.join(","),Te=typeof Element>"u",Y=Te?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,re=!Te&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},ae=function(e,t){var a;t===void 0&&(t=!0);var s=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),c=s===""||s==="true",n=c||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ae(e.parentNode));return n},Ce=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},we=function(e,t,a){if(ae(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(te));return t&&Y.call(e,te)&&s.unshift(e),s=s.filter(a),s},ne=function(e,t,a){for(var s=[],c=Array.from(e);c.length;){var n=c.shift();if(!ae(n,!1))if(n.tagName==="SLOT"){var p=n.assignedElements(),y=p.length?p:n.children,E=ne(y,!0,a);a.flatten?s.push.apply(s,E):s.push({scopeParent:n,candidates:E})}else{var F=Y.call(n,te);F&&a.filter(n)&&(t||!e.includes(n))&&s.push(n);var D=n.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(n),x=!ae(D,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(n));if(D&&x){var A=ne(D===!0?n.children:D.children,!0,a);a.flatten?s.push.apply(s,A):s.push({scopeParent:n,candidates:A})}else c.unshift.apply(c,n.children)}}return s},Ee=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},q=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ce(e))&&!Ee(e)?0:e.tabIndex},Ie=function(e,t){var a=q(e);return a<0&&t&&!Ee(e)?0:a},Ae=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ke=function(e){return e.tagName==="INPUT"},_e=function(e){return ke(e)&&e.type==="hidden"},Le=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},Me=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]},Be=function(e){if(!e.name)return!0;var t=e.form||re(e),a=function(p){return t.querySelectorAll('input[type="radio"][name="'+p+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(e.name));else try{s=a(e.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var c=Me(s,e.form);return!c||c===e},Ke=function(e){return ke(e)&&e.type==="radio"},qe=function(e){return Ke(e)&&!Be(e)},Ve=function(e){var t,a=e&&re(e),s=(t=a)===null||t===void 0?void 0:t.host,c=!1;if(a&&a!==e){var n,p,y;for(c=!!((n=s)!==null&&n!==void 0&&(p=n.ownerDocument)!==null&&p!==void 0&&p.contains(s)||e!=null&&(y=e.ownerDocument)!==null&&y!==void 0&&y.contains(e));!c&&s;){var E,F,D;a=re(s),s=(E=a)===null||E===void 0?void 0:E.host,c=!!((F=s)!==null&&F!==void 0&&(D=F.ownerDocument)!==null&&D!==void 0&&D.contains(s))}}return c},fe=function(e){var t=e.getBoundingClientRect(),a=t.width,s=t.height;return a===0&&s===0},$e=function(e,t){var a=t.displayCheck,s=t.getShadowRoot;if(a==="full-native"&&"checkVisibility"in e){var c=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(e).visibility==="hidden")return!0;var n=Y.call(e,"details>summary:first-of-type"),p=n?e.parentElement:e;if(Y.call(p,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof s=="function"){for(var y=e;e;){var E=e.parentElement,F=re(e);if(E&&!E.shadowRoot&&s(E)===!0)return fe(e);e.assignedSlot?e=e.assignedSlot:!E&&F!==e.ownerDocument?e=F.host:e=E}e=y}if(Ve(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return fe(e);return!1},Ge=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var s=t.children.item(a);if(s.tagName==="LEGEND")return Y.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},ie=function(e,t){return!(t.disabled||_e(t)||$e(t,e)||Le(t)||Ge(t))},
|
|
4
|
+
*/var ge=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],te=ge.join(","),Te=typeof Element>"u",Y=Te?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,re=!Te&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},ae=function(e,t){var a;t===void 0&&(t=!0);var s=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),c=s===""||s==="true",n=c||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ae(e.parentNode));return n},Ce=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},we=function(e,t,a){if(ae(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(te));return t&&Y.call(e,te)&&s.unshift(e),s=s.filter(a),s},ne=function(e,t,a){for(var s=[],c=Array.from(e);c.length;){var n=c.shift();if(!ae(n,!1))if(n.tagName==="SLOT"){var p=n.assignedElements(),y=p.length?p:n.children,E=ne(y,!0,a);a.flatten?s.push.apply(s,E):s.push({scopeParent:n,candidates:E})}else{var F=Y.call(n,te);F&&a.filter(n)&&(t||!e.includes(n))&&s.push(n);var D=n.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(n),x=!ae(D,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(n));if(D&&x){var A=ne(D===!0?n.children:D.children,!0,a);a.flatten?s.push.apply(s,A):s.push({scopeParent:n,candidates:A})}else c.unshift.apply(c,n.children)}}return s},Ee=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},q=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ce(e))&&!Ee(e)?0:e.tabIndex},Ie=function(e,t){var a=q(e);return a<0&&t&&!Ee(e)?0:a},Ae=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ke=function(e){return e.tagName==="INPUT"},_e=function(e){return ke(e)&&e.type==="hidden"},Le=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},Me=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]},Be=function(e){if(!e.name)return!0;var t=e.form||re(e),a=function(p){return t.querySelectorAll('input[type="radio"][name="'+p+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(e.name));else try{s=a(e.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var c=Me(s,e.form);return!c||c===e},Ke=function(e){return ke(e)&&e.type==="radio"},qe=function(e){return Ke(e)&&!Be(e)},Ve=function(e){var t,a=e&&re(e),s=(t=a)===null||t===void 0?void 0:t.host,c=!1;if(a&&a!==e){var n,p,y;for(c=!!((n=s)!==null&&n!==void 0&&(p=n.ownerDocument)!==null&&p!==void 0&&p.contains(s)||e!=null&&(y=e.ownerDocument)!==null&&y!==void 0&&y.contains(e));!c&&s;){var E,F,D;a=re(s),s=(E=a)===null||E===void 0?void 0:E.host,c=!!((F=s)!==null&&F!==void 0&&(D=F.ownerDocument)!==null&&D!==void 0&&D.contains(s))}}return c},fe=function(e){var t=e.getBoundingClientRect(),a=t.width,s=t.height;return a===0&&s===0},$e=function(e,t){var a=t.displayCheck,s=t.getShadowRoot;if(a==="full-native"&&"checkVisibility"in e){var c=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(e).visibility==="hidden")return!0;var n=Y.call(e,"details>summary:first-of-type"),p=n?e.parentElement:e;if(Y.call(p,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof s=="function"){for(var y=e;e;){var E=e.parentElement,F=re(e);if(E&&!E.shadowRoot&&s(E)===!0)return fe(e);e.assignedSlot?e=e.assignedSlot:!E&&F!==e.ownerDocument?e=F.host:e=E}e=y}if(Ve(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return fe(e);return!1},Ge=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var s=t.children.item(a);if(s.tagName==="LEGEND")return Y.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},ie=function(e,t){return!(t.disabled||_e(t)||$e(t,e)||Le(t)||Ge(t))},ce=function(e,t){return!(qe(t)||q(t)<0||!ie(e,t))},Ue=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Se=function(e){var t=[],a=[];return e.forEach(function(s,c){var n=!!s.scopeParent,p=n?s.scopeParent:s,y=Ie(p,n),E=n?Se(s.candidates):p;y===0?n?t.push.apply(t,E):t.push(p):a.push({documentOrder:c,tabIndex:y,item:s,isScope:n,content:E})}),a.sort(Ae).reduce(function(s,c){return c.isScope?s.push.apply(s,c.content):s.push(c.content),s},[]).concat(t)},Fe=function(e,t){t=t||{};var a;return t.getShadowRoot?a=ne([e],t.includeContainer,{filter:ce.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ue}):a=we(e,t.includeContainer,ce.bind(null,t)),Se(a)},Oe=function(e,t){t=t||{};var a;return t.getShadowRoot?a=ne([e],t.includeContainer,{filter:ie.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=we(e,t.includeContainer,ie.bind(null,t)),a},W=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Y.call(e,te)===!1?!1:ce(t,e)},ze=ge.concat("iframe:not([inert]):not([inert] *)").join(","),ee=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Y.call(e,ze)===!1?!1:ie(t,e)};const We=Object.freeze(Object.defineProperty({__proto__:null,focusable:Oe,getTabIndex:q,isFocusable:ee,isTabbable:W,tabbable:Fe},Symbol.toStringTag,{value:"Module"}));/*!
|
|
5
5
|
* focus-trap 7.8.0
|
|
6
6
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
7
|
-
*/function
|
|
7
|
+
*/function le(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,a=Array(e);t<e;t++)a[t]=r[t];return a}function Ye(r){if(Array.isArray(r))return le(r)}function de(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Re(r))||e){t&&(r=t);var a=0,s=function(){};return{s,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(y){throw y},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
8
8
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,n=!0,p=!1;return{s:function(){t=t.call(r)},n:function(){var y=t.next();return n=y.done,y},e:function(y){p=!0,c=y},f:function(){try{n||t.return==null||t.return()}finally{if(p)throw c}}}}function He(r,e,t){return(e=et(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ze(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Xe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,a)}return t}function pe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ve(Object(t),!0).forEach(function(a){He(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function Je(r){return Ye(r)||Ze(r)||Re(r)||Xe()}function Qe(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function et(r){var e=Qe(r,"string");return typeof e=="symbol"?e:e+""}function Re(r,e){if(r){if(typeof r=="string")return ce(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ce(r,e):void 0}}var B={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){var a=B.getActiveTrap(e);t!==a&&B.pauseTrap(e);var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),B.unpauseTrap(e)},pauseTrap:function(e){var t=B.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=B.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},tt=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},rt=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},X=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},at=function(e){return X(e)&&!e.shiftKey},nt=function(e){return X(e)&&e.shiftKey},be=function(e){return setTimeout(e,0)},Z=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,a):e},Q=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},it=[],ot=function(e,t){var a=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||it,c=pe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:at,isKeyBackward:nt},t),n={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},p,y=function(o,i,l){return o&&o[i]!==void 0?o[i]:c[l||i]},E=function(o,i){var l=typeof(i==null?void 0:i.composedPath)=="function"?i.composedPath():void 0;return n.containerGroups.findIndex(function(g){var h=g.container,w=g.tabbableNodes;return h.contains(o)||(l==null?void 0:l.includes(h))||w.find(function(v){return v===o})})},F=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.hasFallback,g=l===void 0?!1:l,h=i.params,w=h===void 0?[]:h,v=c[o];if(typeof v=="function"&&(v=v.apply(void 0,Je(w))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(o,"` was specified but was not a node, or did not return a node"))}var k=v;if(typeof v=="string"){try{k=a.querySelector(v)}catch(S){throw new Error("`".concat(o,'` appears to be an invalid selector; error="').concat(S.message,'"'))}if(!k&&!g)throw new Error("`".concat(o,"` as selector refers to no known node"))}return k},D=function(){var o=F("initialFocus",{hasFallback:!0});if(o===!1)return!1;if(o===void 0||o&&!ee(o,c.tabbableOptions))if(E(a.activeElement)>=0)o=a.activeElement;else{var i=n.tabbableGroups[0],l=i&&i.firstTabbableNode;o=l||F("fallbackFocus")}else o===null&&(o=F("fallbackFocus"));if(!o)throw new Error("Your focus-trap needs to have at least one focusable element");return o},x=function(){if(n.containerGroups=n.containers.map(function(o){var i=Fe(o,c.tabbableOptions),l=Oe(o,c.tabbableOptions),g=i.length>0?i[0]:void 0,h=i.length>0?i[i.length-1]:void 0,w=l.find(function(S){return z(S)}),v=l.slice().reverse().find(function(S){return z(S)}),k=!!i.find(function(S){return q(S)>0});return{container:o,tabbableNodes:i,focusableNodes:l,posTabIndexesFound:k,firstTabbableNode:g,lastTabbableNode:h,firstDomTabbableNode:w,lastDomTabbableNode:v,nextTabbableNode:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_=i.indexOf(C);return _<0?L?l.slice(l.indexOf(C)+1).find(function(W){return z(W)}):l.slice(0,l.indexOf(C)).reverse().find(function(W){return z(W)}):i[_+(L?1:-1)]}}}),n.tabbableGroups=n.containerGroups.filter(function(o){return o.tabbableNodes.length>0}),n.tabbableGroups.length<=0&&!F("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(n.containerGroups.find(function(o){return o.posTabIndexesFound})&&n.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},A=function(o){var i=o.activeElement;if(i)return i.shadowRoot&&i.shadowRoot.activeElement!==null?A(i.shadowRoot):i},j=function(o){if(o!==!1&&o!==A(document)){if(!o||!o.focus){j(D());return}o.focus({preventScroll:!!c.preventScroll}),n.mostRecentlyFocusedNode=o,tt(o)&&o.select()}},H=function(o){var i=F("setReturnFocus",{params:[o]});return i||(i===!1?!1:o)},P=function(o){var i=o.target,l=o.event,g=o.isBackward,h=g===void 0?!1:g;i=i||Q(l),x();var w=null;if(n.tabbableGroups.length>0){var v=E(i,l),k=v>=0?n.containerGroups[v]:void 0;if(v<0)h?w=n.tabbableGroups[n.tabbableGroups.length-1].lastTabbableNode:w=n.tabbableGroups[0].firstTabbableNode;else if(h){var S=n.tabbableGroups.findIndex(function(oe){var ue=oe.firstTabbableNode;return i===ue});if(S<0&&(k.container===i||ee(i,c.tabbableOptions)&&!z(i,c.tabbableOptions)&&!k.nextTabbableNode(i,!1))&&(S=v),S>=0){var C=S===0?n.tabbableGroups.length-1:S-1,L=n.tabbableGroups[C];w=q(i)>=0?L.lastTabbableNode:L.lastDomTabbableNode}else X(l)||(w=k.nextTabbableNode(i,!1))}else{var _=n.tabbableGroups.findIndex(function(oe){var ue=oe.lastTabbableNode;return i===ue});if(_<0&&(k.container===i||ee(i,c.tabbableOptions)&&!z(i,c.tabbableOptions)&&!k.nextTabbableNode(i))&&(_=v),_>=0){var W=_===n.tabbableGroups.length-1?0:_+1,K=n.tabbableGroups[W];w=q(i)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else X(l)||(w=k.nextTabbableNode(i))}}else w=F("fallbackFocus");return w},I=function(o){var i=Q(o);if(!(E(i,o)>=0)){if(Z(c.clickOutsideDeactivates,o)){p.deactivate({returnFocus:c.returnFocusOnDeactivate});return}Z(c.allowOutsideClick,o)||o.preventDefault()}},V=function(o){var i=Q(o),l=E(i,o)>=0;if(l||i instanceof Document)l&&(n.mostRecentlyFocusedNode=i);else{o.stopImmediatePropagation();var g,h=!0;if(n.mostRecentlyFocusedNode)if(q(n.mostRecentlyFocusedNode)>0){var w=E(n.mostRecentlyFocusedNode),v=n.containerGroups[w].tabbableNodes;if(v.length>0){var k=v.findIndex(function(S){return S===n.mostRecentlyFocusedNode});k>=0&&(c.isKeyForward(n.recentNavEvent)?k+1<v.length&&(g=v[k+1],h=!1):k-1>=0&&(g=v[k-1],h=!1))}}else n.containerGroups.some(function(S){return S.tabbableNodes.some(function(C){return q(C)>0})})||(h=!1);else h=!1;h&&(g=P({target:n.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(n.recentNavEvent)})),j(g||n.mostRecentlyFocusedNode||D())}n.recentNavEvent=void 0},$=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n.recentNavEvent=o;var l=P({event:o,isBackward:i});l&&(X(o)&&o.preventDefault(),j(l))},G=function(o){(c.isKeyForward(o)||c.isKeyBackward(o))&&$(o,c.isKeyBackward(o))},U=function(o){rt(o)&&Z(c.escapeDeactivates,o)!==!1&&(o.preventDefault(),p.deactivate())},M=function(o){var i=Q(o);E(i,o)>=0||Z(c.clickOutsideDeactivates,o)||Z(c.allowOutsideClick,o)||(o.preventDefault(),o.stopImmediatePropagation())},d=function(){if(n.active)return B.activateTrap(s,p),n.delayInitialFocusTimer=c.delayInitialFocus?be(function(){j(D())}):j(D()),a.addEventListener("focusin",V,!0),a.addEventListener("mousedown",I,{capture:!0,passive:!1}),a.addEventListener("touchstart",I,{capture:!0,passive:!1}),a.addEventListener("click",M,{capture:!0,passive:!1}),a.addEventListener("keydown",G,{capture:!0,passive:!1}),a.addEventListener("keydown",U),p},f=function(o){n.active&&!n.paused&&p._setSubtreeIsolation(!1),n.adjacentElements.clear(),n.alreadySilent.clear();var i=new Set,l=new Set,g=de(o),h;try{for(g.s();!(h=g.n()).done;){var w=h.value;i.add(w);for(var v=typeof ShadowRoot<"u"&&w.getRootNode()instanceof ShadowRoot,k=w;k;){i.add(k);var S=k.parentElement,C=[];S?C=S.children:!S&&v&&(C=k.getRootNode().children,S=k.getRootNode().host,v=typeof ShadowRoot<"u"&&S.getRootNode()instanceof ShadowRoot);var L=de(C),_;try{for(L.s();!(_=L.n()).done;){var W=_.value;l.add(W)}}catch(K){L.e(K)}finally{L.f()}k=S}}}catch(K){g.e(K)}finally{g.f()}i.forEach(function(K){l.delete(K)}),n.adjacentElements=l},m=function(){if(n.active)return a.removeEventListener("focusin",V,!0),a.removeEventListener("mousedown",I,!0),a.removeEventListener("touchstart",I,!0),a.removeEventListener("click",M,!0),a.removeEventListener("keydown",G,!0),a.removeEventListener("keydown",U),p},u=function(o){var i=o.some(function(l){var g=Array.from(l.removedNodes);return g.some(function(h){return h===n.mostRecentlyFocusedNode})});i&&j(D())},T=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(u):void 0,R=function(){T&&(T.disconnect(),n.active&&!n.paused&&n.containers.map(function(o){T.observe(o,{subtree:!0,childList:!0})}))};return p={get active(){return n.active},get paused(){return n.paused},activate:function(o){if(n.active)return this;var i=y(o,"onActivate"),l=y(o,"onPostActivate"),g=y(o,"checkCanFocusTrap"),h=B.getActiveTrap(s),w=!1;if(h&&!h.paused){var v;(v=h._setSubtreeIsolation)===null||v===void 0||v.call(h,!1),w=!0}try{g||x(),n.active=!0,n.paused=!1,n.nodeFocusedBeforeActivation=A(a),i==null||i();var k=function(){g&&x(),d(),R(),c.isolateSubtrees&&p._setSubtreeIsolation(!0),l==null||l()};if(g)return g(n.containers.concat()).then(k,k),this;k()}catch(C){if(h===B.getActiveTrap(s)&&w){var S;(S=h._setSubtreeIsolation)===null||S===void 0||S.call(h,!0)}throw C}return this},deactivate:function(o){if(!n.active)return this;var i=pe({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},o);clearTimeout(n.delayInitialFocusTimer),n.delayInitialFocusTimer=void 0,n.paused||p._setSubtreeIsolation(!1),n.alreadySilent.clear(),m(),n.active=!1,n.paused=!1,R(),B.deactivateTrap(s,p);var l=y(i,"onDeactivate"),g=y(i,"onPostDeactivate"),h=y(i,"checkCanReturnFocus"),w=y(i,"returnFocus","returnFocusOnDeactivate");l==null||l();var v=function(){be(function(){w&&j(H(n.nodeFocusedBeforeActivation)),g==null||g()})};return w&&h?(h(H(n.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(o){return n.active?(n.manuallyPaused=!0,this._setPausedState(!0,o)):this},unpause:function(o){return n.active?(n.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,o)):this},updateContainerElements:function(o){var i=[].concat(o).filter(Boolean);return n.containers=i.map(function(l){return typeof l=="string"?a.querySelector(l):l}),c.isolateSubtrees&&f(n.containers),n.active&&(x(),c.isolateSubtrees&&!n.paused&&p._setSubtreeIsolation(!0)),R(),this}},Object.defineProperties(p,{_isManuallyPaused:{value:function(){return n.manuallyPaused}},_setPausedState:{value:function(o,i){if(n.paused===o)return this;if(n.paused=o,o){var l=y(i,"onPause"),g=y(i,"onPostPause");l==null||l(),m(),R(),p._setSubtreeIsolation(!1),g==null||g()}else{var h=y(i,"onUnpause"),w=y(i,"onPostUnpause");h==null||h(),p._setSubtreeIsolation(!0),x(),d(),R(),w==null||w()}return this}},_setSubtreeIsolation:{value:function(o){c.isolateSubtrees&&n.adjacentElements.forEach(function(i){var l;if(o)switch(c.isolateSubtrees){case"aria-hidden":(i.ariaHidden==="true"||((l=i.getAttribute("aria-hidden"))===null||l===void 0?void 0:l.toLowerCase())==="true")&&n.alreadySilent.add(i),i.setAttribute("aria-hidden","true");break;default:(i.inert||i.hasAttribute("inert"))&&n.alreadySilent.add(i),i.setAttribute("inert",!0);break}else if(!n.alreadySilent.has(i))switch(c.isolateSubtrees){case"aria-hidden":i.removeAttribute("aria-hidden");break;default:i.removeAttribute("inert");break}})}}}),p.updateContainerElements(e),p};const ut=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:ot},Symbol.toStringTag,{value:"Module"})),st=me(ut),ct=me(ze);var he;function lt(){if(he)return J.exports;he=1;function r(d){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(d)}var e,t;function a(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function s(d,f){for(var m=0;m<f.length;m++){var u=f[m];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,j(u.key),u)}}function c(d,f,m){return f&&s(d.prototype,f),Object.defineProperty(d,"prototype",{writable:!1}),d}function n(d,f,m){return f=F(f),p(d,E()?Reflect.construct(f,m||[],F(d).constructor):f.apply(d,m))}function p(d,f){if(f&&(r(f)=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(d)}function y(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function E(){try{var d=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E=function(){return!!d})()}function F(d){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},F(d)}function D(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),f&&x(d,f)}function x(d,f){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,u){return m.__proto__=u,m},x(d,f)}function A(d,f,m){return(f=j(f))in d?Object.defineProperty(d,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[f]=m,d}function j(d){var f=H(d,"string");return r(f)=="symbol"?f:f+""}function H(d,f){if(r(d)!="object"||!d)return d;var m=d[Symbol.toPrimitive];if(m!==void 0){var u=m.call(d,f);if(r(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(d)}var P=O,I=st,V=I.createFocusTrap,$=ct,G=$.isFocusable,U=parseInt((e=(t=/^(\d+)\./.exec(P.version))===null||t===void 0?void 0:t[1])!==null&&e!==void 0?e:0,10),M=(function(d){function f(m){var u;a(this,f),u=n(this,f,[m]),A(u,"getNodeForOption",function(b){var o,i=(o=this.internalOptions[b])!==null&&o!==void 0?o:this.originalOptions[b];if(typeof i=="function"){for(var l=arguments.length,g=new Array(l>1?l-1:0),h=1;h<l;h++)g[h-1]=arguments[h];i=i.apply(void 0,g)}if(i===!0&&(i=void 0),!i){if(i===void 0||i===!1)return i;throw new Error("`".concat(b,"` was specified but was not a node, or did not return a node"))}var w=i;if(typeof i=="string"){var v;if(w=(v=this.getDocument())===null||v===void 0?void 0:v.querySelector(i),!w)throw new Error("`".concat(b,"` as selector refers to no known node"))}return w}),u.handleDeactivate=u.handleDeactivate.bind(u),u.handlePostDeactivate=u.handlePostDeactivate.bind(u),u.handleClickOutsideDeactivates=u.handleClickOutsideDeactivates.bind(u),u.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:u.handleDeactivate,onPostDeactivate:u.handlePostDeactivate,clickOutsideDeactivates:u.handleClickOutsideDeactivates},u.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var T=m.focusTrapOptions;for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R)){if(R==="returnFocusOnDeactivate"||R==="onDeactivate"||R==="onPostDeactivate"||R==="checkCanReturnFocus"||R==="clickOutsideDeactivates"){u.originalOptions[R]=T[R];continue}u.internalOptions[R]=T[R]}return u.outsideClick=null,u.focusTrapElements=m.containerElements||[],u.updatePreviousElement(),u}return D(f,d),c(f,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var u=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return u||(u===!1?!1:this.previouslyFocusedElement)}},{key:"updatePreviousElement",value:function(){var u=this.getDocument();u&&(this.previouslyFocusedElement=u.activeElement)}},{key:"deactivateTrap",value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(u){var T=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,u):this.originalOptions.clickOutsideDeactivates;return T&&(this.outsideClick={target:u.target,allowDeactivation:T}),T}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var u=this,T=function(){var b=u.getReturnFocusNode(),o=!!(u.originalOptions.returnFocusOnDeactivate&&b!==null&&b!==void 0&&b.focus&&(!u.outsideClick||u.outsideClick.allowDeactivation&&!G(u.outsideClick.target,u.internalOptions.tabbableOptions))),i=u.internalOptions.preventScroll,l=i===void 0?!1:i;o&&b.focus({preventScroll:l}),u.originalOptions.onPostDeactivate&&u.originalOptions.onPostDeactivate.call(null),u.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(T,T):T()}},{key:"setupFocusTrap",value:function(){if(this.focusTrap)this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause());else{var u=this.focusTrapElements.some(Boolean);u&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(u){if(this.focusTrap){u.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var T=!u.active&&this.props.active,R=u.active&&!this.props.active,b=!u.paused&&this.props.paused,o=u.paused&&!this.props.paused;if(T&&(this.updatePreviousElement(),this.focusTrap.activate()),R){this.deactivateTrap();return}b&&this.focusTrap.pause(),o&&this.focusTrap.unpause()}else u.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var u=this,T=this.props.children?P.Children.only(this.props.children):void 0;if(T){if(T.type&&T.type===P.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");var R=function(i){var l=u.props.containerElements;T&&(U>=19?typeof T.props.ref=="function"?T.props.ref(i):T.props.ref&&(T.props.ref.current=i):typeof T.ref=="function"?T.ref(i):T.ref&&(T.ref.current=i)),u.focusTrapElements=l||[i]},b=P.cloneElement(T,{ref:R});return b}return null}}])})(P.Component);return M.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:V},J.exports=M,J.exports.FocusTrap=M,J.exports}var ft=lt();const De=O.createContext({isVisible:!1}),{Provider:dt}=De;function Ne(){return O.useContext(De)}function vt(){const{close:r}=Ne(),e=O.useCallback(()=>{r==null||r()},[r]);return N.jsxRuntimeExports.jsxs(N.jsxRuntimeExports.Fragment,{children:[N.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2543813221"}),N.jsxRuntimeExports.jsx("div",{className:"kakadu-components-840864829",children:N.jsxRuntimeExports.jsx(Pe.default,{iconLeft:je.IconType.times,label:"Close",className:"kakadu-components-3855719072",onClick:e})})]})}function ye({decorators:r,children:e}){return r.length===0?e:r.reduceRight((t,a)=>N.jsxRuntimeExports.jsx(a,{children:t}),e)}function pt({root:r,outerDecorators:e=[],innerDecorators:t=[],maxWidth:a,className:s,isVisible:c,isFullWidth:n=!1,shouldCloseOnOutsideClick:p=!0,shouldCloseOnEscapePress:y=!0,showCloseButton:E=!0,onClose:F,children:D}){const x=O.useRef(null),A=O.useRef(null),[j,H]=O.useState(!1),[P,I]=O.useState(!1),V=O.useCallback(u=>{x.current=u,I(!1)},[]),$=O.useRef(null),G=O.useCallback(u=>{u&&($.current=u)},[]),[U,M]=O.useState(c??!1),d=O.useMemo(()=>({isVisible:U,setInitialFocus:G,close:V}),[U,G,V]);O.useEffect(()=>{c&&(H(!0),M(!0))},[c]),O.useEffect(()=>{if(c){const u=setTimeout(()=>{I(!0)},100);return()=>{clearTimeout(u)}}I(!1)},[c]),O.useEffect(()=>{if(j&&!P){const u=setTimeout(()=>{F==null||F(x.current??void 0),M(!1)},370);return()=>{clearTimeout(u)}}},[j,P,F]),O.useEffect(()=>{const u=A.current;if(c&&p&&u){const T=R=>{u===R.target&&I(!1)};return u.addEventListener("click",T),()=>{u.removeEventListener("click",T)}}},[c,p]),O.useEffect(()=>{if(!c||!y)return;const u=T=>{T.key==="Escape"&&I(!1)};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[c,y]);const f=O.useMemo(()=>({initialFocus:()=>$.current??void 0,onActivate:()=>{var u;return(u=$.current)==null?void 0:u.focus()}}),[]),m=N.jsxRuntimeExports.jsx(ye,{decorators:e,children:N.jsxRuntimeExports.jsx("div",{style:{"--max-width":a?`${a}px`:void 0},className:le.cx("kakadu-components-4119461136",P&&"kakadu-components-2522346797",s),children:N.jsxRuntimeExports.jsx(ye,{decorators:t,children:N.jsxRuntimeExports.jsx(ft.FocusTrap,{active:P,focusTrapOptions:f,children:N.jsxRuntimeExports.jsx("div",{ref:A,className:"kakadu-components-4011815997",children:N.jsxRuntimeExports.jsx("div",{className:le.cx("kakadu-components-3324483532",n&&"kakadu-components-3799971070",P&&"kakadu-components-968755580"),children:N.jsxRuntimeExports.jsxs(dt,{value:d,children:[E?N.jsxRuntimeExports.jsx(vt,{}):null,N.jsxRuntimeExports.jsx("div",{className:"kakadu-components-177997624",children:D})]})})})})})})});return r?xe.createPortal(m,r):m}function bt(r,e){const[t,a]=O.useState(!1),s=O.useRef(void 0),c=O.useCallback(async()=>(a(!0),new Promise(y=>{s.current=y})),[]),n=O.useCallback(y=>{var E;a(!1),(E=s.current)==null||E.call(s,y),s.current=void 0},[]),p=O.useMemo(()=>N.jsxRuntimeExports.jsx(r,{...e,isVisible:t,onClose:n}),[r,e,t,n]);return O.useMemo(()=>({isVisible:t,show:c,modal:p}),[t,c,p])}exports.default=pt;exports.useModal=bt;exports.useModalContext=Ne;
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,a)}return t}function pe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ve(Object(t),!0).forEach(function(a){He(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function Je(r){return Ye(r)||Ze(r)||Re(r)||Xe()}function Qe(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function et(r){var e=Qe(r,"string");return typeof e=="symbol"?e:e+""}function Re(r,e){if(r){if(typeof r=="string")return le(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?le(r,e):void 0}}var B={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){var a=B.getActiveTrap(e);t!==a&&B.pauseTrap(e);var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),B.unpauseTrap(e)},pauseTrap:function(e){var t=B.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=B.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},tt=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},rt=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},X=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},at=function(e){return X(e)&&!e.shiftKey},nt=function(e){return X(e)&&e.shiftKey},be=function(e){return setTimeout(e,0)},Z=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,a):e},Q=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},it=[],ot=function(e,t){var a=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||it,c=pe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:at,isKeyBackward:nt},t),n={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},p,y=function(o,i,l){return o&&o[i]!==void 0?o[i]:c[l||i]},E=function(o,i){var l=typeof(i==null?void 0:i.composedPath)=="function"?i.composedPath():void 0;return n.containerGroups.findIndex(function(g){var h=g.container,w=g.tabbableNodes;return h.contains(o)||(l==null?void 0:l.includes(h))||w.find(function(v){return v===o})})},F=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.hasFallback,g=l===void 0?!1:l,h=i.params,w=h===void 0?[]:h,v=c[o];if(typeof v=="function"&&(v=v.apply(void 0,Je(w))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(o,"` was specified but was not a node, or did not return a node"))}var k=v;if(typeof v=="string"){try{k=a.querySelector(v)}catch(S){throw new Error("`".concat(o,'` appears to be an invalid selector; error="').concat(S.message,'"'))}if(!k&&!g)throw new Error("`".concat(o,"` as selector refers to no known node"))}return k},D=function(){var o=F("initialFocus",{hasFallback:!0});if(o===!1)return!1;if(o===void 0||o&&!ee(o,c.tabbableOptions))if(E(a.activeElement)>=0)o=a.activeElement;else{var i=n.tabbableGroups[0],l=i&&i.firstTabbableNode;o=l||F("fallbackFocus")}else o===null&&(o=F("fallbackFocus"));if(!o)throw new Error("Your focus-trap needs to have at least one focusable element");return o},x=function(){if(n.containerGroups=n.containers.map(function(o){var i=Fe(o,c.tabbableOptions),l=Oe(o,c.tabbableOptions),g=i.length>0?i[0]:void 0,h=i.length>0?i[i.length-1]:void 0,w=l.find(function(S){return W(S)}),v=l.slice().reverse().find(function(S){return W(S)}),k=!!i.find(function(S){return q(S)>0});return{container:o,tabbableNodes:i,focusableNodes:l,posTabIndexesFound:k,firstTabbableNode:g,lastTabbableNode:h,firstDomTabbableNode:w,lastDomTabbableNode:v,nextTabbableNode:function(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_=i.indexOf(C);return _<0?L?l.slice(l.indexOf(C)+1).find(function(z){return W(z)}):l.slice(0,l.indexOf(C)).reverse().find(function(z){return W(z)}):i[_+(L?1:-1)]}}}),n.tabbableGroups=n.containerGroups.filter(function(o){return o.tabbableNodes.length>0}),n.tabbableGroups.length<=0&&!F("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(n.containerGroups.find(function(o){return o.posTabIndexesFound})&&n.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},A=function(o){var i=o.activeElement;if(i)return i.shadowRoot&&i.shadowRoot.activeElement!==null?A(i.shadowRoot):i},j=function(o){if(o!==!1&&o!==A(document)){if(!o||!o.focus){j(D());return}o.focus({preventScroll:!!c.preventScroll}),n.mostRecentlyFocusedNode=o,tt(o)&&o.select()}},H=function(o){var i=F("setReturnFocus",{params:[o]});return i||(i===!1?!1:o)},P=function(o){var i=o.target,l=o.event,g=o.isBackward,h=g===void 0?!1:g;i=i||Q(l),x();var w=null;if(n.tabbableGroups.length>0){var v=E(i,l),k=v>=0?n.containerGroups[v]:void 0;if(v<0)h?w=n.tabbableGroups[n.tabbableGroups.length-1].lastTabbableNode:w=n.tabbableGroups[0].firstTabbableNode;else if(h){var S=n.tabbableGroups.findIndex(function(oe){var ue=oe.firstTabbableNode;return i===ue});if(S<0&&(k.container===i||ee(i,c.tabbableOptions)&&!W(i,c.tabbableOptions)&&!k.nextTabbableNode(i,!1))&&(S=v),S>=0){var C=S===0?n.tabbableGroups.length-1:S-1,L=n.tabbableGroups[C];w=q(i)>=0?L.lastTabbableNode:L.lastDomTabbableNode}else X(l)||(w=k.nextTabbableNode(i,!1))}else{var _=n.tabbableGroups.findIndex(function(oe){var ue=oe.lastTabbableNode;return i===ue});if(_<0&&(k.container===i||ee(i,c.tabbableOptions)&&!W(i,c.tabbableOptions)&&!k.nextTabbableNode(i))&&(_=v),_>=0){var z=_===n.tabbableGroups.length-1?0:_+1,K=n.tabbableGroups[z];w=q(i)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else X(l)||(w=k.nextTabbableNode(i))}}else w=F("fallbackFocus");return w},I=function(o){var i=Q(o);if(!(E(i,o)>=0)){if(Z(c.clickOutsideDeactivates,o)){p.deactivate({returnFocus:c.returnFocusOnDeactivate});return}Z(c.allowOutsideClick,o)||o.preventDefault()}},V=function(o){var i=Q(o),l=E(i,o)>=0;if(l||i instanceof Document)l&&(n.mostRecentlyFocusedNode=i);else{o.stopImmediatePropagation();var g,h=!0;if(n.mostRecentlyFocusedNode)if(q(n.mostRecentlyFocusedNode)>0){var w=E(n.mostRecentlyFocusedNode),v=n.containerGroups[w].tabbableNodes;if(v.length>0){var k=v.findIndex(function(S){return S===n.mostRecentlyFocusedNode});k>=0&&(c.isKeyForward(n.recentNavEvent)?k+1<v.length&&(g=v[k+1],h=!1):k-1>=0&&(g=v[k-1],h=!1))}}else n.containerGroups.some(function(S){return S.tabbableNodes.some(function(C){return q(C)>0})})||(h=!1);else h=!1;h&&(g=P({target:n.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(n.recentNavEvent)})),j(g||n.mostRecentlyFocusedNode||D())}n.recentNavEvent=void 0},$=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n.recentNavEvent=o;var l=P({event:o,isBackward:i});l&&(X(o)&&o.preventDefault(),j(l))},G=function(o){(c.isKeyForward(o)||c.isKeyBackward(o))&&$(o,c.isKeyBackward(o))},U=function(o){rt(o)&&Z(c.escapeDeactivates,o)!==!1&&(o.preventDefault(),p.deactivate())},M=function(o){var i=Q(o);E(i,o)>=0||Z(c.clickOutsideDeactivates,o)||Z(c.allowOutsideClick,o)||(o.preventDefault(),o.stopImmediatePropagation())},d=function(){if(n.active)return B.activateTrap(s,p),n.delayInitialFocusTimer=c.delayInitialFocus?be(function(){j(D())}):j(D()),a.addEventListener("focusin",V,!0),a.addEventListener("mousedown",I,{capture:!0,passive:!1}),a.addEventListener("touchstart",I,{capture:!0,passive:!1}),a.addEventListener("click",M,{capture:!0,passive:!1}),a.addEventListener("keydown",G,{capture:!0,passive:!1}),a.addEventListener("keydown",U),p},f=function(o){n.active&&!n.paused&&p._setSubtreeIsolation(!1),n.adjacentElements.clear(),n.alreadySilent.clear();var i=new Set,l=new Set,g=de(o),h;try{for(g.s();!(h=g.n()).done;){var w=h.value;i.add(w);for(var v=typeof ShadowRoot<"u"&&w.getRootNode()instanceof ShadowRoot,k=w;k;){i.add(k);var S=k.parentElement,C=[];S?C=S.children:!S&&v&&(C=k.getRootNode().children,S=k.getRootNode().host,v=typeof ShadowRoot<"u"&&S.getRootNode()instanceof ShadowRoot);var L=de(C),_;try{for(L.s();!(_=L.n()).done;){var z=_.value;l.add(z)}}catch(K){L.e(K)}finally{L.f()}k=S}}}catch(K){g.e(K)}finally{g.f()}i.forEach(function(K){l.delete(K)}),n.adjacentElements=l},m=function(){if(n.active)return a.removeEventListener("focusin",V,!0),a.removeEventListener("mousedown",I,!0),a.removeEventListener("touchstart",I,!0),a.removeEventListener("click",M,!0),a.removeEventListener("keydown",G,!0),a.removeEventListener("keydown",U),p},u=function(o){var i=o.some(function(l){var g=Array.from(l.removedNodes);return g.some(function(h){return h===n.mostRecentlyFocusedNode})});i&&j(D())},T=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(u):void 0,R=function(){T&&(T.disconnect(),n.active&&!n.paused&&n.containers.map(function(o){T.observe(o,{subtree:!0,childList:!0})}))};return p={get active(){return n.active},get paused(){return n.paused},activate:function(o){if(n.active)return this;var i=y(o,"onActivate"),l=y(o,"onPostActivate"),g=y(o,"checkCanFocusTrap"),h=B.getActiveTrap(s),w=!1;if(h&&!h.paused){var v;(v=h._setSubtreeIsolation)===null||v===void 0||v.call(h,!1),w=!0}try{g||x(),n.active=!0,n.paused=!1,n.nodeFocusedBeforeActivation=A(a),i==null||i();var k=function(){g&&x(),d(),R(),c.isolateSubtrees&&p._setSubtreeIsolation(!0),l==null||l()};if(g)return g(n.containers.concat()).then(k,k),this;k()}catch(C){if(h===B.getActiveTrap(s)&&w){var S;(S=h._setSubtreeIsolation)===null||S===void 0||S.call(h,!0)}throw C}return this},deactivate:function(o){if(!n.active)return this;var i=pe({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},o);clearTimeout(n.delayInitialFocusTimer),n.delayInitialFocusTimer=void 0,n.paused||p._setSubtreeIsolation(!1),n.alreadySilent.clear(),m(),n.active=!1,n.paused=!1,R(),B.deactivateTrap(s,p);var l=y(i,"onDeactivate"),g=y(i,"onPostDeactivate"),h=y(i,"checkCanReturnFocus"),w=y(i,"returnFocus","returnFocusOnDeactivate");l==null||l();var v=function(){be(function(){w&&j(H(n.nodeFocusedBeforeActivation)),g==null||g()})};return w&&h?(h(H(n.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(o){return n.active?(n.manuallyPaused=!0,this._setPausedState(!0,o)):this},unpause:function(o){return n.active?(n.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,o)):this},updateContainerElements:function(o){var i=[].concat(o).filter(Boolean);return n.containers=i.map(function(l){return typeof l=="string"?a.querySelector(l):l}),c.isolateSubtrees&&f(n.containers),n.active&&(x(),c.isolateSubtrees&&!n.paused&&p._setSubtreeIsolation(!0)),R(),this}},Object.defineProperties(p,{_isManuallyPaused:{value:function(){return n.manuallyPaused}},_setPausedState:{value:function(o,i){if(n.paused===o)return this;if(n.paused=o,o){var l=y(i,"onPause"),g=y(i,"onPostPause");l==null||l(),m(),R(),p._setSubtreeIsolation(!1),g==null||g()}else{var h=y(i,"onUnpause"),w=y(i,"onPostUnpause");h==null||h(),p._setSubtreeIsolation(!0),x(),d(),R(),w==null||w()}return this}},_setSubtreeIsolation:{value:function(o){c.isolateSubtrees&&n.adjacentElements.forEach(function(i){var l;if(o)switch(c.isolateSubtrees){case"aria-hidden":(i.ariaHidden==="true"||((l=i.getAttribute("aria-hidden"))===null||l===void 0?void 0:l.toLowerCase())==="true")&&n.alreadySilent.add(i),i.setAttribute("aria-hidden","true");break;default:(i.inert||i.hasAttribute("inert"))&&n.alreadySilent.add(i),i.setAttribute("inert",!0);break}else if(!n.alreadySilent.has(i))switch(c.isolateSubtrees){case"aria-hidden":i.removeAttribute("aria-hidden");break;default:i.removeAttribute("inert");break}})}}}),p.updateContainerElements(e),p};const ut=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:ot},Symbol.toStringTag,{value:"Module"})),st=me(ut),ct=me(We);var he;function lt(){if(he)return J.exports;he=1;function r(d){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(d)}var e,t;function a(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function s(d,f){for(var m=0;m<f.length;m++){var u=f[m];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,j(u.key),u)}}function c(d,f,m){return f&&s(d.prototype,f),Object.defineProperty(d,"prototype",{writable:!1}),d}function n(d,f,m){return f=F(f),p(d,E()?Reflect.construct(f,m||[],F(d).constructor):f.apply(d,m))}function p(d,f){if(f&&(r(f)=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(d)}function y(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function E(){try{var d=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E=function(){return!!d})()}function F(d){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},F(d)}function D(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),f&&x(d,f)}function x(d,f){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,u){return m.__proto__=u,m},x(d,f)}function A(d,f,m){return(f=j(f))in d?Object.defineProperty(d,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[f]=m,d}function j(d){var f=H(d,"string");return r(f)=="symbol"?f:f+""}function H(d,f){if(r(d)!="object"||!d)return d;var m=d[Symbol.toPrimitive];if(m!==void 0){var u=m.call(d,f);if(r(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(d)}var P=O,I=st,V=I.createFocusTrap,$=ct,G=$.isFocusable,U=parseInt((e=(t=/^(\d+)\./.exec(P.version))===null||t===void 0?void 0:t[1])!==null&&e!==void 0?e:0,10),M=(function(d){function f(m){var u;a(this,f),u=n(this,f,[m]),A(u,"getNodeForOption",function(b){var o,i=(o=this.internalOptions[b])!==null&&o!==void 0?o:this.originalOptions[b];if(typeof i=="function"){for(var l=arguments.length,g=new Array(l>1?l-1:0),h=1;h<l;h++)g[h-1]=arguments[h];i=i.apply(void 0,g)}if(i===!0&&(i=void 0),!i){if(i===void 0||i===!1)return i;throw new Error("`".concat(b,"` was specified but was not a node, or did not return a node"))}var w=i;if(typeof i=="string"){var v;if(w=(v=this.getDocument())===null||v===void 0?void 0:v.querySelector(i),!w)throw new Error("`".concat(b,"` as selector refers to no known node"))}return w}),u.handleDeactivate=u.handleDeactivate.bind(u),u.handlePostDeactivate=u.handlePostDeactivate.bind(u),u.handleClickOutsideDeactivates=u.handleClickOutsideDeactivates.bind(u),u.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:u.handleDeactivate,onPostDeactivate:u.handlePostDeactivate,clickOutsideDeactivates:u.handleClickOutsideDeactivates},u.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var T=m.focusTrapOptions;for(var R in T)if(Object.prototype.hasOwnProperty.call(T,R)){if(R==="returnFocusOnDeactivate"||R==="onDeactivate"||R==="onPostDeactivate"||R==="checkCanReturnFocus"||R==="clickOutsideDeactivates"){u.originalOptions[R]=T[R];continue}u.internalOptions[R]=T[R]}return u.outsideClick=null,u.focusTrapElements=m.containerElements||[],u.updatePreviousElement(),u}return D(f,d),c(f,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var u=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return u||(u===!1?!1:this.previouslyFocusedElement)}},{key:"updatePreviousElement",value:function(){var u=this.getDocument();u&&(this.previouslyFocusedElement=u.activeElement)}},{key:"deactivateTrap",value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(u){var T=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,u):this.originalOptions.clickOutsideDeactivates;return T&&(this.outsideClick={target:u.target,allowDeactivation:T}),T}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var u=this,T=function(){var b=u.getReturnFocusNode(),o=!!(u.originalOptions.returnFocusOnDeactivate&&b!==null&&b!==void 0&&b.focus&&(!u.outsideClick||u.outsideClick.allowDeactivation&&!G(u.outsideClick.target,u.internalOptions.tabbableOptions))),i=u.internalOptions.preventScroll,l=i===void 0?!1:i;o&&b.focus({preventScroll:l}),u.originalOptions.onPostDeactivate&&u.originalOptions.onPostDeactivate.call(null),u.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(T,T):T()}},{key:"setupFocusTrap",value:function(){if(this.focusTrap)this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause());else{var u=this.focusTrapElements.some(Boolean);u&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(u){if(this.focusTrap){u.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var T=!u.active&&this.props.active,R=u.active&&!this.props.active,b=!u.paused&&this.props.paused,o=u.paused&&!this.props.paused;if(T&&(this.updatePreviousElement(),this.focusTrap.activate()),R){this.deactivateTrap();return}b&&this.focusTrap.pause(),o&&this.focusTrap.unpause()}else u.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var u=this,T=this.props.children?P.Children.only(this.props.children):void 0;if(T){if(T.type&&T.type===P.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");var R=function(i){var l=u.props.containerElements;T&&(U>=19?typeof T.props.ref=="function"?T.props.ref(i):T.props.ref&&(T.props.ref.current=i):typeof T.ref=="function"?T.ref(i):T.ref&&(T.ref.current=i)),u.focusTrapElements=l||[i]},b=P.cloneElement(T,{ref:R});return b}return null}}])})(P.Component);return M.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:V},J.exports=M,J.exports.FocusTrap=M,J.exports}var ft=lt();const De=O.createContext({isVisible:!1}),{Provider:dt}=De;function Ne(){return O.useContext(De)}function vt(){const{close:r}=Ne(),e=O.useCallback(()=>{r==null||r()},[r]);return N.jsxRuntimeExports.jsxs(N.jsxRuntimeExports.Fragment,{children:[N.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2543813221"}),N.jsxRuntimeExports.jsx("div",{className:"kakadu-components-840864829",children:N.jsxRuntimeExports.jsx(Pe.default,{iconLeft:je.IconType.times,label:"Close",className:"kakadu-components-3855719072",onClick:e})})]})}function ye({decorators:r,children:e}){return r.length===0?e:r.reduceRight((t,a)=>N.jsxRuntimeExports.jsx(a,{children:t}),e)}function pt({root:r,outerDecorators:e=[],innerDecorators:t=[],maxWidth:a,className:s,isVisible:c,isFullWidth:n=!1,shouldCloseOnOutsideClick:p=!0,shouldCloseOnEscapePress:y=!0,showCloseButton:E=!0,onClose:F,children:D}){const x=O.useRef(null),A=O.useRef(null),[j,H]=O.useState(!1),[P,I]=O.useState(!1),V=O.useCallback(u=>{x.current=u,I(!1)},[]),$=O.useRef(null),G=O.useCallback(u=>{u&&($.current=u)},[]),[U,M]=O.useState(c??!1),d=O.useMemo(()=>({isVisible:U,setInitialFocus:G,close:V}),[U,G,V]);O.useEffect(()=>{c&&(H(!0),M(!0))},[c]),O.useEffect(()=>{if(c){const u=setTimeout(()=>{I(!0)},100);return()=>{clearTimeout(u)}}I(!1)},[c]),O.useEffect(()=>{if(j&&!P){const u=setTimeout(()=>{F==null||F(x.current??void 0),M(!1)},370);return()=>{clearTimeout(u)}}},[j,P,F]),O.useEffect(()=>{const u=A.current;if(c&&p&&u){const T=R=>{u===R.target&&I(!1)};return u.addEventListener("click",T),()=>{u.removeEventListener("click",T)}}},[c,p]),O.useEffect(()=>{if(!c||!y)return;const u=T=>{T.key==="Escape"&&I(!1)};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[c,y]);const f=O.useMemo(()=>({initialFocus:()=>$.current??void 0,onActivate:()=>{var u;return(u=$.current)==null?void 0:u.focus()}}),[]),m=N.jsxRuntimeExports.jsx(ye,{decorators:e,children:N.jsxRuntimeExports.jsx("div",{style:{"--max-width":a?`${a}px`:void 0},className:se.cx("kakadu-components-4119461136",P&&"kakadu-components-2522346797",s),children:N.jsxRuntimeExports.jsx(ye,{decorators:t,children:N.jsxRuntimeExports.jsx(ft.FocusTrap,{active:P,focusTrapOptions:f,children:N.jsxRuntimeExports.jsx("div",{ref:A,className:"kakadu-components-4011815997",children:N.jsxRuntimeExports.jsx("div",{className:se.cx("kakadu-components-3324483532",n&&"kakadu-components-3799971070",P&&"kakadu-components-968755580"),children:N.jsxRuntimeExports.jsxs(dt,{value:d,children:[E?N.jsxRuntimeExports.jsx(vt,{}):null,N.jsxRuntimeExports.jsx("div",{className:se.cx("kakadu-components-633990035",n&&"kakadu-components-171969824"),children:D})]})})})})})})});return r?xe.createPortal(m,r):m}function bt(r,e){const[t,a]=O.useState(!1),s=O.useRef(void 0),c=O.useCallback(async()=>(a(!0),new Promise(y=>{s.current=y})),[]),n=O.useCallback(y=>{var E;a(!1),(E=s.current)==null||E.call(s,y),s.current=void 0},[]),p=O.useMemo(()=>N.jsxRuntimeExports.jsx(r,{...e,isVisible:t,onClose:n}),[r,e,t,n]);return O.useMemo(()=>({isVisible:t,show:c,modal:p}),[t,c,p])}exports.default=pt;exports.useModal=bt;exports.useModalContext=Ne;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as N } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
2
|
import Ie, { createContext as Ae, useRef as te, useState as re, useCallback as J, useMemo as ne, useEffect as H, useContext as xe } from "react";
|
|
3
|
-
import { cx as
|
|
3
|
+
import { cx as de } from "@kuma-ui/core";
|
|
4
4
|
import { createPortal as _e } from "react-dom";
|
|
5
5
|
import { IconType as Le } from "../icons/icon.mjs";
|
|
6
6
|
import Be from "./text-button.mjs";
|
|
@@ -28,7 +28,7 @@ var Q = { exports: {} };
|
|
|
28
28
|
* tabbable 6.4.0
|
|
29
29
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
30
30
|
*/
|
|
31
|
-
var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], ie = /* @__PURE__ */ Ee.join(","), Fe = typeof Element > "u",
|
|
31
|
+
var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], ie = /* @__PURE__ */ Ee.join(","), Fe = typeof Element > "u", W = Fe ? function() {
|
|
32
32
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, oe = !Fe && Element.prototype.getRootNode ? function(r) {
|
|
33
33
|
var e;
|
|
34
34
|
return r == null || (e = r.getRootNode) === null || e === void 0 ? void 0 : e.call(r);
|
|
@@ -48,7 +48,7 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
48
48
|
if (ue(e))
|
|
49
49
|
return [];
|
|
50
50
|
var s = Array.prototype.slice.apply(e.querySelectorAll(ie));
|
|
51
|
-
return t &&
|
|
51
|
+
return t && W.call(e, ie) && s.unshift(e), s = s.filter(a), s;
|
|
52
52
|
}, se = function(e, t, a) {
|
|
53
53
|
for (var s = [], c = Array.from(e); c.length; ) {
|
|
54
54
|
var n = c.shift();
|
|
@@ -60,7 +60,7 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
60
60
|
candidates: k
|
|
61
61
|
});
|
|
62
62
|
} else {
|
|
63
|
-
var S =
|
|
63
|
+
var S = W.call(n, ie);
|
|
64
64
|
S && a.filter(n) && (t || !e.includes(n)) && s.push(n);
|
|
65
65
|
var D = n.shadowRoot || // check for an undisclosed shadow
|
|
66
66
|
typeof a.getShadowRoot == "function" && a.getShadowRoot(n), R = !ue(D, !1) && (!a.shadowRootFilter || a.shadowRootFilter(n));
|
|
@@ -115,10 +115,10 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
115
115
|
}
|
|
116
116
|
var c = Ge(s, e.form);
|
|
117
117
|
return !c || c === e;
|
|
118
|
-
}, We = function(e) {
|
|
119
|
-
return De(e) && e.type === "radio";
|
|
120
118
|
}, ze = function(e) {
|
|
121
|
-
return
|
|
119
|
+
return De(e) && e.type === "radio";
|
|
120
|
+
}, We = function(e) {
|
|
121
|
+
return ze(e) && !Ue(e);
|
|
122
122
|
}, Ye = function(e) {
|
|
123
123
|
var t, a = e && oe(e), s = (t = a) === null || t === void 0 ? void 0 : t.host, c = !1;
|
|
124
124
|
if (a && a !== e) {
|
|
@@ -152,8 +152,8 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
152
152
|
}
|
|
153
153
|
if (getComputedStyle(e).visibility === "hidden")
|
|
154
154
|
return !0;
|
|
155
|
-
var n =
|
|
156
|
-
if (
|
|
155
|
+
var n = W.call(e, "details>summary:first-of-type"), p = n ? e.parentElement : e;
|
|
156
|
+
if (W.call(p, "details:not([open]) *"))
|
|
157
157
|
return !0;
|
|
158
158
|
if (!a || a === "full" || // full-native can run this branch when it falls through in case
|
|
159
159
|
// Element#checkVisibility is unsupported
|
|
@@ -181,7 +181,7 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
181
181
|
for (var a = 0; a < t.children.length; a++) {
|
|
182
182
|
var s = t.children.item(a);
|
|
183
183
|
if (s.tagName === "LEGEND")
|
|
184
|
-
return
|
|
184
|
+
return W.call(t, "fieldset[disabled] *") ? !0 : !s.contains(e);
|
|
185
185
|
}
|
|
186
186
|
return !0;
|
|
187
187
|
}
|
|
@@ -191,8 +191,8 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
191
191
|
}, ce = function(e, t) {
|
|
192
192
|
return !(t.disabled || Ve(t) || He(t, e) || // For a details element with a summary, the summary element gets the focus
|
|
193
193
|
$e(t) || Ze(t));
|
|
194
|
-
},
|
|
195
|
-
return !(
|
|
194
|
+
}, ve = function(e, t) {
|
|
195
|
+
return !(We(t) || K(t) < 0 || !ce(e, t));
|
|
196
196
|
}, Xe = function(e) {
|
|
197
197
|
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
198
198
|
return !!(isNaN(t) || t >= 0);
|
|
@@ -214,11 +214,11 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
214
214
|
t = t || {};
|
|
215
215
|
var a;
|
|
216
216
|
return t.getShadowRoot ? a = se([e], t.includeContainer, {
|
|
217
|
-
filter:
|
|
217
|
+
filter: ve.bind(null, t),
|
|
218
218
|
flatten: !1,
|
|
219
219
|
getShadowRoot: t.getShadowRoot,
|
|
220
220
|
shadowRootFilter: Xe
|
|
221
|
-
}) : a = Se(e, t.includeContainer,
|
|
221
|
+
}) : a = Se(e, t.includeContainer, ve.bind(null, t)), Ne(a);
|
|
222
222
|
}, Pe = function(e, t) {
|
|
223
223
|
t = t || {};
|
|
224
224
|
var a;
|
|
@@ -227,34 +227,34 @@ var Ee = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
227
227
|
flatten: !0,
|
|
228
228
|
getShadowRoot: t.getShadowRoot
|
|
229
229
|
}) : a = Se(e, t.includeContainer, ce.bind(null, t)), a;
|
|
230
|
-
},
|
|
230
|
+
}, z = function(e, t) {
|
|
231
231
|
if (t = t || {}, !e)
|
|
232
232
|
throw new Error("No node provided");
|
|
233
|
-
return
|
|
233
|
+
return W.call(e, ie) === !1 ? !1 : ve(t, e);
|
|
234
234
|
}, Je = /* @__PURE__ */ Ee.concat("iframe:not([inert]):not([inert] *)").join(","), ae = function(e, t) {
|
|
235
235
|
if (t = t || {}, !e)
|
|
236
236
|
throw new Error("No node provided");
|
|
237
|
-
return
|
|
237
|
+
return W.call(e, Je) === !1 ? !1 : ce(t, e);
|
|
238
238
|
};
|
|
239
239
|
const Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
240
240
|
__proto__: null,
|
|
241
241
|
focusable: Pe,
|
|
242
242
|
getTabIndex: K,
|
|
243
243
|
isFocusable: ae,
|
|
244
|
-
isTabbable:
|
|
244
|
+
isTabbable: z,
|
|
245
245
|
tabbable: Re
|
|
246
246
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
247
247
|
/*!
|
|
248
248
|
* focus-trap 7.8.0
|
|
249
249
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
250
250
|
*/
|
|
251
|
-
function
|
|
251
|
+
function pe(r, e) {
|
|
252
252
|
(e == null || e > r.length) && (e = r.length);
|
|
253
253
|
for (var t = 0, a = Array(e); t < e; t++) a[t] = r[t];
|
|
254
254
|
return a;
|
|
255
255
|
}
|
|
256
256
|
function et(r) {
|
|
257
|
-
if (Array.isArray(r)) return
|
|
257
|
+
if (Array.isArray(r)) return pe(r);
|
|
258
258
|
}
|
|
259
259
|
function he(r, e) {
|
|
260
260
|
var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -358,9 +358,9 @@ function ot(r) {
|
|
|
358
358
|
}
|
|
359
359
|
function Ce(r, e) {
|
|
360
360
|
if (r) {
|
|
361
|
-
if (typeof r == "string") return
|
|
361
|
+
if (typeof r == "string") return pe(r, e);
|
|
362
362
|
var t = {}.toString.call(r).slice(8, -1);
|
|
363
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
363
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? pe(r, e) : void 0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
var B = {
|
|
@@ -512,9 +512,9 @@ var B = {
|
|
|
512
512
|
}, R = function() {
|
|
513
513
|
if (n.containerGroups = n.containers.map(function(o) {
|
|
514
514
|
var i = Re(o, c.tabbableOptions), l = Pe(o, c.tabbableOptions), g = i.length > 0 ? i[0] : void 0, h = i.length > 0 ? i[i.length - 1] : void 0, w = l.find(function(F) {
|
|
515
|
-
return
|
|
515
|
+
return z(F);
|
|
516
516
|
}), v = l.slice().reverse().find(function(F) {
|
|
517
|
-
return
|
|
517
|
+
return z(F);
|
|
518
518
|
}), E = !!i.find(function(F) {
|
|
519
519
|
return K(F) > 0;
|
|
520
520
|
});
|
|
@@ -550,9 +550,9 @@ var B = {
|
|
|
550
550
|
nextTabbableNode: function(j) {
|
|
551
551
|
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, x = i.indexOf(j);
|
|
552
552
|
return x < 0 ? _ ? l.slice(l.indexOf(j) + 1).find(function(U) {
|
|
553
|
-
return
|
|
553
|
+
return z(U);
|
|
554
554
|
}) : l.slice(0, l.indexOf(j)).reverse().find(function(U) {
|
|
555
|
-
return
|
|
555
|
+
return z(U);
|
|
556
556
|
}) : i[x + (_ ? 1 : -1)];
|
|
557
557
|
}
|
|
558
558
|
};
|
|
@@ -596,7 +596,7 @@ var B = {
|
|
|
596
596
|
var fe = le.firstTabbableNode;
|
|
597
597
|
return i === fe;
|
|
598
598
|
});
|
|
599
|
-
if (F < 0 && (E.container === i || ae(i, c.tabbableOptions) && !
|
|
599
|
+
if (F < 0 && (E.container === i || ae(i, c.tabbableOptions) && !z(i, c.tabbableOptions) && !E.nextTabbableNode(i, !1)) && (F = v), F >= 0) {
|
|
600
600
|
var j = F === 0 ? n.tabbableGroups.length - 1 : F - 1, _ = n.tabbableGroups[j];
|
|
601
601
|
w = K(i) >= 0 ? _.lastTabbableNode : _.lastDomTabbableNode;
|
|
602
602
|
} else X(l) || (w = E.nextTabbableNode(i, !1));
|
|
@@ -605,7 +605,7 @@ var B = {
|
|
|
605
605
|
var fe = le.lastTabbableNode;
|
|
606
606
|
return i === fe;
|
|
607
607
|
});
|
|
608
|
-
if (x < 0 && (E.container === i || ae(i, c.tabbableOptions) && !
|
|
608
|
+
if (x < 0 && (E.container === i || ae(i, c.tabbableOptions) && !z(i, c.tabbableOptions) && !E.nextTabbableNode(i)) && (x = v), x >= 0) {
|
|
609
609
|
var U = x === n.tabbableGroups.length - 1 ? 0 : x + 1, M = n.tabbableGroups[U];
|
|
610
610
|
w = K(i) >= 0 ? M.firstTabbableNode : M.firstDomTabbableNode;
|
|
611
611
|
} else X(l) || (w = E.nextTabbableNode(i));
|
|
@@ -1227,9 +1227,9 @@ function Dt({
|
|
|
1227
1227
|
}
|
|
1228
1228
|
}), []), m = /* @__PURE__ */ N.jsx(we, { decorators: e, children: /* @__PURE__ */ N.jsx("div", { style: {
|
|
1229
1229
|
"--max-width": a ? `${a}px` : void 0
|
|
1230
|
-
}, className:
|
|
1230
|
+
}, className: de("kakadu-components-4119461136", C && "kakadu-components-2522346797", s), children: /* @__PURE__ */ N.jsx(we, { decorators: t, children: /* @__PURE__ */ N.jsx(yt.FocusTrap, { active: C, focusTrapOptions: f, children: /* @__PURE__ */ N.jsx("div", { ref: A, className: "kakadu-components-4011815997", children: /* @__PURE__ */ N.jsx("div", { className: de("kakadu-components-3324483532", n && "kakadu-components-3799971070", C && "kakadu-components-968755580"), children: /* @__PURE__ */ N.jsxs(mt, { value: d, children: [
|
|
1231
1231
|
k ? /* @__PURE__ */ N.jsx(Tt, {}) : null,
|
|
1232
|
-
/* @__PURE__ */ N.jsx("div", { className: "kakadu-components-
|
|
1232
|
+
/* @__PURE__ */ N.jsx("div", { className: de("kakadu-components-633990035", n && "kakadu-components-171969824"), children: D })
|
|
1233
1233
|
] }) }) }) }) }) }) });
|
|
1234
1234
|
return r ? _e(m, r) : m;
|
|
1235
1235
|
}
|