umaki 0.2.0 → 0.2.2

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.
Files changed (97) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs.js +1 -0
  2. package/dist/_virtual/_commonjsHelpers.es.js +8 -0
  3. package/dist/_virtual/isBetween.cjs.js +1 -0
  4. package/dist/_virtual/isBetween.es.js +4 -0
  5. package/dist/index.cjs.js +1 -0
  6. package/dist/index.es.js +88 -0
  7. package/dist/libs/control/bgScrollStop.cjs.js +1 -0
  8. package/dist/libs/control/bgScrollStop.es.js +7 -0
  9. package/dist/libs/control/pd.cjs.js +1 -0
  10. package/dist/libs/control/pd.es.js +4 -0
  11. package/dist/libs/control/scrollToHash.cjs.js +1 -0
  12. package/dist/libs/control/scrollToHash.es.js +21 -0
  13. package/dist/libs/control/videoPlayControl.cjs.js +1 -0
  14. package/dist/libs/control/videoPlayControl.es.js +19 -0
  15. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +1 -0
  16. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +5 -0
  17. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +1 -0
  18. package/dist/libs/convert/jsonStringToJsonObject.es.js +9 -0
  19. package/dist/libs/get/getAspectRatio.cjs.js +1 -0
  20. package/dist/libs/get/getAspectRatio.es.js +8 -0
  21. package/dist/libs/get/getClassNames.cjs.js +1 -0
  22. package/dist/libs/get/getClassNames.es.js +4 -0
  23. package/dist/libs/get/getDocumentHeight.cjs.js +1 -0
  24. package/dist/libs/get/getDocumentHeight.es.js +4 -0
  25. package/dist/libs/get/getEventPaths.cjs.js +1 -0
  26. package/dist/libs/get/getEventPaths.es.js +17 -0
  27. package/dist/libs/get/getGcd.cjs.js +1 -0
  28. package/dist/libs/get/getGcd.es.js +8 -0
  29. package/dist/libs/get/getOrientation.cjs.js +1 -0
  30. package/dist/libs/get/getOrientation.es.js +4 -0
  31. package/dist/libs/get/getParentList.cjs.js +1 -0
  32. package/dist/libs/get/getParentList.es.js +7 -0
  33. package/dist/libs/get/getQueryParams.cjs.js +1 -0
  34. package/dist/libs/get/getQueryParams.es.js +16 -0
  35. package/dist/libs/get/getRem.cjs.js +1 -0
  36. package/dist/libs/get/getRem.es.js +4 -0
  37. package/dist/libs/get/getScrollbarWidth.cjs.js +1 -0
  38. package/dist/libs/get/getScrollbarWidth.es.js +4 -0
  39. package/dist/libs/get/getSessionStorage.cjs.js +1 -0
  40. package/dist/libs/get/getSessionStorage.es.js +8 -0
  41. package/dist/libs/get/getStringLength.cjs.js +1 -0
  42. package/dist/libs/get/getStringLength.es.js +5 -0
  43. package/dist/libs/get/getStylePropertyValue.cjs.js +1 -0
  44. package/dist/libs/get/getStylePropertyValue.es.js +4 -0
  45. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -0
  46. package/dist/libs/get/getStylePropertyValueToNumber.es.js +5 -0
  47. package/dist/libs/get/getUaData.cjs.js +1 -0
  48. package/dist/libs/get/getUaData.es.js +16 -0
  49. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -0
  50. package/dist/libs/is/isBetweenDateTime.es.js +12 -0
  51. package/dist/libs/is/isExistAllElements.cjs.js +1 -0
  52. package/dist/libs/is/isExistAllElements.es.js +4 -0
  53. package/dist/libs/is/isIpad.cjs.js +1 -0
  54. package/dist/libs/is/isIpad.es.js +9 -0
  55. package/dist/libs/is/isKeyExists.cjs.js +1 -0
  56. package/dist/libs/is/isKeyExists.es.js +4 -0
  57. package/dist/libs/is/isSafari.cjs.js +1 -0
  58. package/dist/libs/is/isSafari.es.js +8 -0
  59. package/dist/libs/is/isScrollable.cjs.js +1 -0
  60. package/dist/libs/is/isScrollable.es.js +7 -0
  61. package/dist/libs/is/isTouchSupport.cjs.js +1 -0
  62. package/dist/libs/is/isTouchSupport.es.js +5 -0
  63. package/dist/libs/remove/removeAllHtmlTags.cjs.js +1 -0
  64. package/dist/libs/remove/removeAllHtmlTags.es.js +9 -0
  65. package/dist/libs/remove/removeAttribute.cjs.js +1 -0
  66. package/dist/libs/remove/removeAttribute.es.js +6 -0
  67. package/dist/libs/remove/removeSessionStorage.cjs.js +1 -0
  68. package/dist/libs/remove/removeSessionStorage.es.js +7 -0
  69. package/dist/libs/remove/removeStylePropertyValue.cjs.js +1 -0
  70. package/dist/libs/remove/removeStylePropertyValue.es.js +6 -0
  71. package/dist/libs/set/set100vh.cjs.js +1 -0
  72. package/dist/libs/set/set100vh.es.js +7 -0
  73. package/dist/libs/set/set100vw.cjs.js +1 -0
  74. package/dist/libs/set/set100vw.es.js +7 -0
  75. package/dist/libs/set/setAttribute.cjs.js +1 -0
  76. package/dist/libs/set/setAttribute.es.js +6 -0
  77. package/dist/libs/set/setScrollPositionToCenter.cjs.js +1 -0
  78. package/dist/libs/set/setScrollPositionToCenter.es.js +7 -0
  79. package/dist/libs/set/setSessionStorage.cjs.js +1 -0
  80. package/dist/libs/set/setSessionStorage.es.js +7 -0
  81. package/dist/libs/set/setStylePropertyValue.cjs.js +1 -0
  82. package/dist/libs/set/setStylePropertyValue.es.js +6 -0
  83. package/dist/libs/to/toBoolean.cjs.js +1 -0
  84. package/dist/libs/to/toBoolean.es.js +4 -0
  85. package/dist/libs/to/toPositiveNumber.cjs.js +1 -0
  86. package/dist/libs/to/toPositiveNumber.es.js +4 -0
  87. package/dist/libs/transform/wrapTextWithSpans.cjs.js +1 -0
  88. package/dist/libs/transform/wrapTextWithSpans.es.js +17 -0
  89. package/dist/libs/wait/sleep.cjs.js +1 -0
  90. package/dist/libs/wait/sleep.es.js +4 -0
  91. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +1 -0
  92. package/dist/libs/wait/waitForAllMediaLoaded.es.js +28 -0
  93. package/dist/node_modules/dayjs/plugin/isBetween.cjs.js +1 -0
  94. package/dist/node_modules/dayjs/plugin/isBetween.es.js +19 -0
  95. package/package.json +8 -5
  96. package/dist/index.js +0 -2873
  97. package/dist/index.umd.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
@@ -0,0 +1,8 @@
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ export {
6
+ o as commonjsGlobal,
7
+ l as getDefaultExportFromCjs
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./libs/control/bgScrollStop.cjs.js"),t=require("./libs/control/pd.cjs.js"),r=require("./libs/control/scrollToHash.cjs.js"),o=require("./libs/control/videoPlayControl.cjs.js"),s=require("./libs/convert/changeDateStringToSpecificFormat.cjs.js"),i=require("./libs/convert/jsonStringToJsonObject.cjs.js"),n=require("./libs/get/getAspectRatio.cjs.js"),a=require("./libs/get/getClassNames.cjs.js"),l=require("./libs/get/getDocumentHeight.cjs.js"),c=require("./libs/get/getEventPaths.cjs.js"),u=require("./libs/get/getGcd.cjs.js"),g=require("./libs/get/getOrientation.cjs.js"),S=require("./libs/get/getParentList.cjs.js"),m=require("./libs/get/getQueryParams.cjs.js"),p=require("./libs/get/getRem.cjs.js"),q=require("./libs/get/getScrollbarWidth.cjs.js"),y=require("./libs/get/getSessionStorage.cjs.js"),P=require("./libs/get/getStringLength.cjs.js"),v=require("./libs/get/getStylePropertyValue.cjs.js"),T=require("./libs/get/getStylePropertyValueToNumber.cjs.js"),h=require("./libs/get/getUaData.cjs.js"),b=require("./libs/is/isBetweenDateTime.cjs.js"),d=require("./libs/is/isExistAllElements.cjs.js"),A=require("./libs/is/isIpad.cjs.js"),w=require("./libs/is/isKeyExists.cjs.js"),D=require("./libs/is/isSafari.cjs.js"),E=require("./libs/is/isScrollable.cjs.js"),V=require("./libs/is/isTouchSupport.cjs.js"),x=require("./libs/remove/removeAllHtmlTags.cjs.js"),C=require("./libs/remove/removeAttribute.cjs.js"),H=require("./libs/remove/removeSessionStorage.cjs.js"),L=require("./libs/remove/removeStylePropertyValue.cjs.js"),N=require("./libs/set/set100vh.cjs.js"),f=require("./libs/set/set100vw.cjs.js"),j=require("./libs/set/setAttribute.cjs.js"),O=require("./libs/set/setScrollPositionToCenter.cjs.js"),B=require("./libs/set/setSessionStorage.cjs.js"),F=require("./libs/set/setStylePropertyValue.cjs.js"),R=require("./libs/to/toBoolean.cjs.js"),W=require("./libs/to/toPositiveNumber.cjs.js"),M=require("./libs/transform/wrapTextWithSpans.cjs.js"),G=require("./libs/wait/sleep.cjs.js"),I=require("./libs/wait/waitForAllMediaLoaded.cjs.js");exports.bgScrollStop=e.bgScrollStop;exports.pd=t.pd;exports.scrollToHash=r.scrollToHash;exports.videoPlayControl=o.videoPlayControl;exports.changeDateStringToSpecificFormat=s.changeDateStringToSpecificFormat;exports.jsonStringToJsonObject=i.jsonStringToJsonObject;exports.getAspectRatio=n.getAspectRatio;exports.getClassNames=a.getClassNames;exports.getDocumentHeight=l.getDocumentHeight;exports.getEventPaths=c.getEventPaths;exports.getGcd=u.getGcd;exports.getOrientation=g.getOrientation;exports.getParentList=S.getParentList;exports.getQueryParams=m.getQueryParams;exports.getRem=p.getRem;exports.getScrollbarWidth=q.getScrollbarWidth;exports.getSessionStorage=y.getSessionStorage;exports.getStringLength=P.getStringLength;exports.getStylePropertyValue=v.getStylePropertyValue;exports.getStylePropertyValueToNumber=T.getStylePropertyValueToNumber;exports.getUaData=h.getUaData;exports.isBetweenDateTime=b.isBetweenDateTime;exports.isExistAllElements=d.isExistAllElements;exports.isIpad=A.isIpad;exports.isKeyExists=w.isKeyExists;exports.isSafari=D.isSafari;exports.isScrollable=E.isScrollable;exports.isTouchSupport=V.isTouchSupport;exports.removeAllHtmlTags=x.removeAllHtmlTags;exports.removeAttribute=C.removeAttribute;exports.removeSessionStorage=H.removeSessionStorage;exports.removeStylePropertyValue=L.removeStylePropertyValue;exports.set100vh=N.set100vh;exports.set100vw=f.set100vw;exports.setAttribute=j.setAttribute;exports.setScrollPositionToCenter=O.setScrollPositionToCenter;exports.setSessionStorage=B.setSessionStorage;exports.setStylePropertyValue=F.setStylePropertyValue;exports.toBoolean=R.toBoolean;exports.toPositiveNumber=W.toPositiveNumber;exports.wrapTextWithSpans=M.wrapTextWithSpans;exports.sleep=G.sleep;exports.waitForAllMediaLoaded=I.waitForAllMediaLoaded;
@@ -0,0 +1,88 @@
1
+ import { bgScrollStop as r } from "./libs/control/bgScrollStop.es.js";
2
+ import { pd as m } from "./libs/control/pd.es.js";
3
+ import { scrollToHash as x } from "./libs/control/scrollToHash.es.js";
4
+ import { videoPlayControl as s } from "./libs/control/videoPlayControl.es.js";
5
+ import { changeDateStringToSpecificFormat as i } from "./libs/convert/changeDateStringToSpecificFormat.es.js";
6
+ import { jsonStringToJsonObject as g } from "./libs/convert/jsonStringToJsonObject.es.js";
7
+ import { getAspectRatio as S } from "./libs/get/getAspectRatio.es.js";
8
+ import { getClassNames as u } from "./libs/get/getClassNames.es.js";
9
+ import { getDocumentHeight as P } from "./libs/get/getDocumentHeight.es.js";
10
+ import { getEventPaths as v } from "./libs/get/getEventPaths.es.js";
11
+ import { getGcd as b } from "./libs/get/getGcd.es.js";
12
+ import { getOrientation as A } from "./libs/get/getOrientation.es.js";
13
+ import { getParentList as D } from "./libs/get/getParentList.es.js";
14
+ import { getQueryParams as V } from "./libs/get/getQueryParams.es.js";
15
+ import { getRem as H } from "./libs/get/getRem.es.js";
16
+ import { getScrollbarWidth as N } from "./libs/get/getScrollbarWidth.es.js";
17
+ import { getSessionStorage as B } from "./libs/get/getSessionStorage.es.js";
18
+ import { getStringLength as O } from "./libs/get/getStringLength.es.js";
19
+ import { getStylePropertyValue as W } from "./libs/get/getStylePropertyValue.es.js";
20
+ import { getStylePropertyValueToNumber as I } from "./libs/get/getStylePropertyValueToNumber.es.js";
21
+ import { getUaData as K } from "./libs/get/getUaData.es.js";
22
+ import { isBetweenDateTime as Q } from "./libs/is/isBetweenDateTime.es.js";
23
+ import { isExistAllElements as k } from "./libs/is/isExistAllElements.es.js";
24
+ import { isIpad as z } from "./libs/is/isIpad.es.js";
25
+ import { isKeyExists as Y } from "./libs/is/isKeyExists.es.js";
26
+ import { isSafari as _ } from "./libs/is/isSafari.es.js";
27
+ import { isScrollable as oo } from "./libs/is/isScrollable.es.js";
28
+ import { isTouchSupport as ro } from "./libs/is/isTouchSupport.es.js";
29
+ import { removeAllHtmlTags as mo } from "./libs/remove/removeAllHtmlTags.es.js";
30
+ import { removeAttribute as xo } from "./libs/remove/removeAttribute.es.js";
31
+ import { removeSessionStorage as so } from "./libs/remove/removeSessionStorage.es.js";
32
+ import { removeStylePropertyValue as io } from "./libs/remove/removeStylePropertyValue.es.js";
33
+ import { set100vh as go } from "./libs/set/set100vh.es.js";
34
+ import { set100vw as So } from "./libs/set/set100vw.es.js";
35
+ import { setAttribute as uo } from "./libs/set/setAttribute.es.js";
36
+ import { setScrollPositionToCenter as Po } from "./libs/set/setScrollPositionToCenter.es.js";
37
+ import { setSessionStorage as vo } from "./libs/set/setSessionStorage.es.js";
38
+ import { setStylePropertyValue as bo } from "./libs/set/setStylePropertyValue.es.js";
39
+ import { toBoolean as wo } from "./libs/to/toBoolean.es.js";
40
+ import { toPositiveNumber as Eo } from "./libs/to/toPositiveNumber.es.js";
41
+ import { wrapTextWithSpans as Co } from "./libs/transform/wrapTextWithSpans.es.js";
42
+ import { sleep as Lo } from "./libs/wait/sleep.es.js";
43
+ import { waitForAllMediaLoaded as jo } from "./libs/wait/waitForAllMediaLoaded.es.js";
44
+ export {
45
+ r as bgScrollStop,
46
+ i as changeDateStringToSpecificFormat,
47
+ S as getAspectRatio,
48
+ u as getClassNames,
49
+ P as getDocumentHeight,
50
+ v as getEventPaths,
51
+ b as getGcd,
52
+ A as getOrientation,
53
+ D as getParentList,
54
+ V as getQueryParams,
55
+ H as getRem,
56
+ N as getScrollbarWidth,
57
+ B as getSessionStorage,
58
+ O as getStringLength,
59
+ W as getStylePropertyValue,
60
+ I as getStylePropertyValueToNumber,
61
+ K as getUaData,
62
+ Q as isBetweenDateTime,
63
+ k as isExistAllElements,
64
+ z as isIpad,
65
+ Y as isKeyExists,
66
+ _ as isSafari,
67
+ oo as isScrollable,
68
+ ro as isTouchSupport,
69
+ g as jsonStringToJsonObject,
70
+ m as pd,
71
+ mo as removeAllHtmlTags,
72
+ xo as removeAttribute,
73
+ so as removeSessionStorage,
74
+ io as removeStylePropertyValue,
75
+ x as scrollToHash,
76
+ go as set100vh,
77
+ So as set100vw,
78
+ uo as setAttribute,
79
+ Po as setScrollPositionToCenter,
80
+ vo as setSessionStorage,
81
+ bo as setStylePropertyValue,
82
+ Lo as sleep,
83
+ wo as toBoolean,
84
+ Eo as toPositiveNumber,
85
+ s as videoPlayControl,
86
+ jo as waitForAllMediaLoaded,
87
+ Co as wrapTextWithSpans
88
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../get/getScrollbarWidth.cjs.js"),t=(e=!0)=>{document.body.style.paddingRight=e?`${o.getScrollbarWidth()}px`:"",e&&(document.body.style.overflow="hidden"),e||(document.body.style.overflow="")};exports.bgScrollStop=t;
@@ -0,0 +1,7 @@
1
+ import { getScrollbarWidth as e } from "../get/getScrollbarWidth.es.js";
2
+ const d = (o = !0) => {
3
+ document.body.style.paddingRight = o ? `${e()}px` : "", o && (document.body.style.overflow = "hidden"), o || (document.body.style.overflow = "");
4
+ };
5
+ export {
6
+ d as bgScrollStop
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>e.preventDefault();exports.pd=t;
@@ -0,0 +1,4 @@
1
+ const t = (e) => e.preventDefault();
2
+ export {
3
+ t as pd
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=async(l,c=!0,n)=>{const i=l.replace("#",""),r=document.getElementById(i);if(!r)return!1;const e=Math.floor(r.getBoundingClientRect().top+window.scrollY)-(n||0);return window.scrollTo({top:e,behavior:c?"smooth":"instant"}),new Promise(o=>{const s=setTimeout(()=>{window.removeEventListener("scroll",t),o(!1)},1e3),t=()=>{window.scrollY===e&&(window.removeEventListener("scroll",t),clearTimeout(s),o(!0))};window.scrollY===e&&(clearTimeout(s),o(!0)),window.scrollY!==e&&window.addEventListener("scroll",t,!1)})};exports.scrollToHash=a;
@@ -0,0 +1,21 @@
1
+ const d = async (l, c = !0, n) => {
2
+ const i = l.replace("#", ""), r = document.getElementById(i);
3
+ if (!r) return !1;
4
+ const e = Math.floor(
5
+ r.getBoundingClientRect().top + window.scrollY
6
+ ) - (n || 0);
7
+ return window.scrollTo({
8
+ top: e,
9
+ behavior: c ? "smooth" : "instant"
10
+ }), new Promise((o) => {
11
+ const s = setTimeout(() => {
12
+ window.removeEventListener("scroll", t), o(!1);
13
+ }, 1e3), t = () => {
14
+ window.scrollY === e && (window.removeEventListener("scroll", t), clearTimeout(s), o(!0));
15
+ };
16
+ window.scrollY === e && (clearTimeout(s), o(!0)), window.scrollY !== e && window.addEventListener("scroll", t, !1);
17
+ });
18
+ };
19
+ export {
20
+ d as scrollToHash
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../to/toBoolean.cjs.js"),o=async(a,r)=>{if(r&&a.paused){if(s.toBoolean(a.dataset.playing))return;const t=a.play();if(t===void 0)return;try{await t,a.currentTime=0,a.dataset.playing="true"}catch{}}if(!r&&!a.paused){if(!s.toBoolean(a.dataset.playing))return;a.pause(),a.dataset.playing="false"}};exports.videoPlayControl=o;
@@ -0,0 +1,19 @@
1
+ import { toBoolean as i } from "../to/toBoolean.es.js";
2
+ const p = async (a, r) => {
3
+ if (r && a.paused) {
4
+ if (i(a.dataset.playing)) return;
5
+ const s = a.play();
6
+ if (s === void 0) return;
7
+ try {
8
+ await s, a.currentTime = 0, a.dataset.playing = "true";
9
+ } catch {
10
+ }
11
+ }
12
+ if (!r && !a.paused) {
13
+ if (!i(a.dataset.playing)) return;
14
+ a.pause(), a.dataset.playing = "false";
15
+ }
16
+ };
17
+ export {
18
+ p as videoPlayControl
19
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("dayjs"),r=(e,t="YYYY年MM月DD日")=>o(e).format(t);exports.changeDateStringToSpecificFormat=r;
@@ -0,0 +1,5 @@
1
+ import r from "dayjs";
2
+ const c = (o, t = "YYYY年MM月DD日") => r(o).format(t);
3
+ export {
4
+ c as changeDateStringToSpecificFormat
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=t=>{try{return JSON.parse(t)}catch{}};exports.jsonStringToJsonObject=r;
@@ -0,0 +1,9 @@
1
+ const o = (r) => {
2
+ try {
3
+ return JSON.parse(r);
4
+ } catch {
5
+ }
6
+ };
7
+ export {
8
+ o as jsonStringToJsonObject
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./getGcd.cjs.js"),r=(t,e)=>{const c=o.getGcd(t,e);return{w:t/c,h:e/c}};exports.getAspectRatio=r;
@@ -0,0 +1,8 @@
1
+ import { getGcd as e } from "./getGcd.es.js";
2
+ const g = (t, o) => {
3
+ const c = e(t, o);
4
+ return { w: t / c, h: o / c };
5
+ };
6
+ export {
7
+ g as getAspectRatio
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=t=>String(t.classList).split(" ").filter(s=>s);exports.getClassNames=e;
@@ -0,0 +1,4 @@
1
+ const l = (s) => String(s.classList).split(" ").filter((t) => t);
2
+ export {
3
+ l as getClassNames
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>document.body.clientHeight-window.innerHeight;exports.getDocumentHeight=e;
@@ -0,0 +1,4 @@
1
+ const e = () => document.body.clientHeight - window.innerHeight;
2
+ export {
3
+ e as getDocumentHeight
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=n=>{var a;let t=((a=n.composedPath)==null?void 0:a.call(n))||null;const e=n.target;if(t!=null)return t=t.indexOf(window)<0?t.concat([window]):t,t;if(e instanceof Window)return[window];const r=(d,c)=>{const i=c||[],o=d.parentNode;return o?r(o,i.concat([o])):c};return[e].concat(r(e,[])).concat([window])};exports.getEventPaths=s;
@@ -0,0 +1,17 @@
1
+ const s = (t) => {
2
+ var c;
3
+ let n = ((c = t.composedPath) == null ? void 0 : c.call(t)) || null;
4
+ const o = t.target;
5
+ if (n != null)
6
+ return n = n.indexOf(window) < 0 ? n.concat([window]) : n, n;
7
+ if (o instanceof Window)
8
+ return [window];
9
+ const r = (d, a) => {
10
+ const i = a || [], e = d.parentNode;
11
+ return e ? r(e, i.concat([e])) : a;
12
+ };
13
+ return [o].concat(r(o, [])).concat([window]);
14
+ };
15
+ export {
16
+ s as getEventPaths
17
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../to/toPositiveNumber.cjs.js"),i=(r,s)=>{const e=o.toPositiveNumber(Math.abs(r)),t=o.toPositiveNumber(Math.abs(s));return t===0?e:i(t,e%t)};exports.getGcd=i;
@@ -0,0 +1,8 @@
1
+ import { toPositiveNumber as e } from "../to/toPositiveNumber.es.js";
2
+ const s = (i, r) => {
3
+ const o = e(Math.abs(i)), t = e(Math.abs(r));
4
+ return t === 0 ? o : s(t, o % t);
5
+ };
6
+ export {
7
+ s as getGcd
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=()=>window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait";exports.getOrientation=t;
@@ -0,0 +1,4 @@
1
+ const t = () => window.matchMedia("(orientation: landscape)").matches ? "landscape" : "portrait";
2
+ export {
3
+ t as getOrientation
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=t=>{const e=t.parentElement;return e?[t].concat(r(e)):[t]};exports.getParentList=r;
@@ -0,0 +1,7 @@
1
+ const r = (t) => {
2
+ const n = t.parentElement;
3
+ return n ? [t].concat(r(n)) : [t];
4
+ };
5
+ export {
6
+ r as getParentList
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("query-string"),a={arrayFormat:"comma",parseNumbers:!0},u=(t,n)=>{const o={...a,...n},e=s.parse(window.location.search,o);if(!e)return null;const r=e[t];return r??null};exports.getQueryParams=u;
@@ -0,0 +1,16 @@
1
+ import s from "query-string";
2
+ const a = {
3
+ arrayFormat: "comma",
4
+ parseNumbers: !0
5
+ }, i = (n, o) => {
6
+ const e = {
7
+ ...a,
8
+ ...o
9
+ }, t = s.parse(window.location.search, e);
10
+ if (!t) return null;
11
+ const r = t[n];
12
+ return r ?? null;
13
+ };
14
+ export {
15
+ i as getQueryParams
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>`${e/16}rem`;exports.getRem=t;
@@ -0,0 +1,4 @@
1
+ const n = (e) => `${e / 16}rem`;
2
+ export {
3
+ n as getRem
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=()=>window.innerWidth-document.body.clientWidth;exports.getScrollbarWidth=t;
@@ -0,0 +1,4 @@
1
+ const t = () => window.innerWidth - document.body.clientWidth;
2
+ export {
3
+ t as getScrollbarWidth
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("store2"),r=t=>{const e=o.session.get(t);return e===void 0?null:e};exports.getSessionStorage=r;
@@ -0,0 +1,8 @@
1
+ import t from "store2";
2
+ const s = (o) => {
3
+ const e = t.session.get(o);
4
+ return e === void 0 ? null : e;
5
+ };
6
+ export {
7
+ s as getSessionStorage
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("runes2"),n=e=>t.runes(e).length;exports.getStringLength=n;
@@ -0,0 +1,5 @@
1
+ import { runes as e } from "runes2";
2
+ const r = (t) => e(t).length;
3
+ export {
4
+ r as getStringLength
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>getComputedStyle(document.documentElement).getPropertyValue(e);exports.getStylePropertyValue=t;
@@ -0,0 +1,4 @@
1
+ const t = (e) => getComputedStyle(document.documentElement).getPropertyValue(e);
2
+ export {
3
+ t as getStylePropertyValue
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./getStylePropertyValue.cjs.js"),r=e=>Number.parseInt(t.getStylePropertyValue(e))||0;exports.getStylePropertyValueToNumber=r;
@@ -0,0 +1,5 @@
1
+ import { getStylePropertyValue as r } from "./getStylePropertyValue.es.js";
2
+ const o = (e) => Number.parseInt(r(e)) || 0;
3
+ export {
4
+ o as getStylePropertyValueToNumber
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("ua-parser-js"),c=require("../is/isTouchSupport.cjs.js"),p=()=>{const e=new a().getResult(),r=e.browser.name,o=e.browser.version,t=e.engine.name,s=e.os.name,n=e.device.type;return{browserName:r?r.toLowerCase().replace(" ","-"):"",browserVersion:o||"",browserEngine:t?t.toLowerCase().replace(" ","-"):"",osName:s?s.toLowerCase().replace(" ","-"):"",type:typeof n<"u"?n.toLowerCase().replace(" ","-"):"laptop",touchSupport:c.isTouchSupport()}};exports.getUaData=p;
@@ -0,0 +1,16 @@
1
+ import a from "ua-parser-js";
2
+ import { isTouchSupport as p } from "../is/isTouchSupport.es.js";
3
+ const u = () => {
4
+ const e = new a().getResult(), r = e.browser.name, o = e.browser.version, s = e.engine.name, t = e.os.name, n = e.device.type;
5
+ return {
6
+ browserName: r ? r.toLowerCase().replace(" ", "-") : "",
7
+ browserVersion: o || "",
8
+ browserEngine: s ? s.toLowerCase().replace(" ", "-") : "",
9
+ osName: t ? t.toLowerCase().replace(" ", "-") : "",
10
+ type: typeof n < "u" ? n.toLowerCase().replace(" ", "-") : "laptop",
11
+ touchSupport: p()
12
+ };
13
+ };
14
+ export {
15
+ u as getUaData
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("dayjs"),o=require("../../node_modules/dayjs/plugin/isBetween.cjs.js");e.extend(o.default);const a=(t,i,n=e())=>{if(!e(t).isValid()||!e(i).isValid())throw new Error("dateA or dateB is not valid date");const s=e(t),r=e(i);return n.isBetween(s,r,"millisecond")};exports.isBetweenDateTime=a;
@@ -0,0 +1,12 @@
1
+ import e from "dayjs";
2
+ import s from "../../node_modules/dayjs/plugin/isBetween.es.js";
3
+ e.extend(s);
4
+ const m = (i, t, o = e()) => {
5
+ if (!e(i).isValid() || !e(t).isValid())
6
+ throw new Error("dateA or dateB is not valid date");
7
+ const r = e(i), n = e(t);
8
+ return o.isBetween(r, n, "millisecond");
9
+ };
10
+ export {
11
+ m as isBetweenDateTime
12
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=e=>e.length>0&&e.every(t=>t!==null);exports.isExistAllElements=l;
@@ -0,0 +1,4 @@
1
+ const e = (l) => l.length > 0 && l.every((t) => t !== null);
2
+ export {
3
+ e as isExistAllElements
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../get/getOrientation.cjs.js"),r=require("../get/getUaData.cjs.js"),o=(e="portrait")=>{const t=r.getUaData();return t.touchSupport?t.type==="laptop"&&t.osName==="mac-os"&&t.browserName==="safari"&&t.touchSupport&&a.getOrientation()===e:!1};exports.isIpad=o;
@@ -0,0 +1,9 @@
1
+ import { getOrientation as r } from "../get/getOrientation.es.js";
2
+ import { getUaData as a } from "../get/getUaData.es.js";
3
+ const i = (o = "portrait") => {
4
+ const t = a();
5
+ return t.touchSupport ? t.type === "laptop" && t.osName === "mac-os" && t.browserName === "safari" && t.touchSupport && r() === o : !1;
6
+ };
7
+ export {
8
+ i as isIpad
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(t,e)=>!!t&&Object.prototype.hasOwnProperty.call(t,e);exports.isKeyExists=s;
@@ -0,0 +1,4 @@
1
+ const r = (t, e) => !!t && Object.prototype.hasOwnProperty.call(t, e);
2
+ export {
3
+ r as isKeyExists
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../get/getUaData.cjs.js"),t=(e=!0)=>{const a=r.getUaData();return e?a.browserName==="safari"||a.browserName==="mobile-safari":a.browserName==="safari"};exports.isSafari=t;
@@ -0,0 +1,8 @@
1
+ import { getUaData as e } from "../get/getUaData.es.js";
2
+ const i = (a = !0) => {
3
+ const r = e();
4
+ return a ? r.browserName === "safari" || r.browserName === "mobile-safari" : r.browserName === "safari";
5
+ };
6
+ export {
7
+ i as isSafari
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=l=>{const c=l.scrollWidth>l.clientWidth,i=l.scrollHeight>l.clientHeight;return c||i};exports.isScrollable=o;
@@ -0,0 +1,7 @@
1
+ const o = (l) => {
2
+ const c = l.scrollWidth > l.clientWidth, i = l.scrollHeight > l.clientHeight;
3
+ return c || i;
4
+ };
5
+ export {
6
+ o as isScrollable
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("is-touch-device"),o=()=>e();exports.isTouchSupport=o;
@@ -0,0 +1,5 @@
1
+ import o from "is-touch-device";
2
+ const i = () => o();
3
+ export {
4
+ i as isTouchSupport
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("isomorphic-dompurify"),r=e=>t.sanitize(e,{ALLOWED_TAGS:[],KEEP_CONTENT:!0,USE_PROFILES:{html:!1}}).replace(/<\/?[^>]+(>|$)/g,"");exports.removeAllHtmlTags=r;
@@ -0,0 +1,9 @@
1
+ import e from "isomorphic-dompurify";
2
+ const n = (t) => e.sanitize(t, {
3
+ ALLOWED_TAGS: [],
4
+ KEEP_CONTENT: !0,
5
+ USE_PROFILES: { html: !1 }
6
+ }).replace(/<\/?[^>]+(>|$)/g, "");
7
+ export {
8
+ n as removeAllHtmlTags
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(e,t)=>{e.removeAttribute(t)};exports.removeAttribute=r;
@@ -0,0 +1,6 @@
1
+ const r = (t, e) => {
2
+ t.removeAttribute(e);
3
+ };
4
+ export {
5
+ r as removeAttribute
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("store2"),r=e=>{o.session.remove(e)};exports.removeSessionStorage=r;
@@ -0,0 +1,7 @@
1
+ import e from "store2";
2
+ const s = (o) => {
3
+ e.session.remove(o);
4
+ };
5
+ export {
6
+ s as removeSessionStorage
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>{document.documentElement.style.removeProperty(e)};exports.removeStylePropertyValue=t;
@@ -0,0 +1,6 @@
1
+ const t = (e) => {
2
+ document.documentElement.style.removeProperty(e);
3
+ };
4
+ export {
5
+ t as removeStylePropertyValue
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e="--vh")=>{const t=window.innerHeight*.01;document.documentElement.style.setProperty(e,`${t}px`)};exports.set100vh=n;
@@ -0,0 +1,7 @@
1
+ const n = (e = "--vh") => {
2
+ const t = window.innerHeight * 0.01;
3
+ document.documentElement.style.setProperty(e, `${t}px`);
4
+ };
5
+ export {
6
+ n as set100vh
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e="--vw")=>{const t=document.documentElement.clientWidth;document.documentElement.style.setProperty(e,`${t}px`)};exports.set100vw=n;
@@ -0,0 +1,7 @@
1
+ const n = (t = "--vw") => {
2
+ const e = document.documentElement.clientWidth;
3
+ document.documentElement.style.setProperty(t, `${e}px`);
4
+ };
5
+ export {
6
+ n as set100vw
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=(t,e,r)=>{t.setAttribute(e,r)};exports.setAttribute=i;
@@ -0,0 +1,6 @@
1
+ const s = (t, e, r) => {
2
+ t.setAttribute(e, r);
3
+ };
4
+ export {
5
+ s as setAttribute
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=(t,o,e="smooth")=>{const n=t.getBoundingClientRect().width/2,s=o.getBoundingClientRect().width/2,c=o.offsetLeft+s-n;t.scrollTo({left:c,behavior:e})};exports.setScrollPositionToCenter=i;
@@ -0,0 +1,7 @@
1
+ const i = (t, o, n = "smooth") => {
2
+ const e = t.getBoundingClientRect().width / 2, s = o.getBoundingClientRect().width / 2, c = o.offsetLeft + s - e;
3
+ t.scrollTo({ left: c, behavior: n });
4
+ };
5
+ export {
6
+ i as setScrollPositionToCenter
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("store2"),o=(e,s)=>{t.session.set(e,s)};exports.setSessionStorage=o;