@d-zero/scaffold 5.0.0-beta.9 → 5.1.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.
Files changed (48) hide show
  1. package/.claude/commands/debug-diff.md +95 -0
  2. package/.claude/commands/fix-component.md +134 -0
  3. package/.claude/commands/git.md +37 -0
  4. package/.claude/commands/release.md +16 -0
  5. package/.claude/settings.json +36 -0
  6. package/.cursor/mcp.json +8 -0
  7. package/.gitignore +4 -0
  8. package/.mcp.json +14 -0
  9. package/.vscode/settings.json +9 -1
  10. package/.yarnrc.yml +3 -0
  11. package/CHANGELOG.md +78 -0
  12. package/CLAUDE.md +14 -0
  13. package/README.md +16 -8
  14. package/__assets/_libs/.markuplintrc +6 -0
  15. package/__assets/_libs/component/c-card-list.css +1 -1
  16. package/__assets/_libs/component/c-card.css +3 -3
  17. package/__assets/_libs/component/c-content-main.css +12 -12
  18. package/__assets/_libs/component/c-footer.css +5 -5
  19. package/__assets/_libs/component/c-header.css +8 -8
  20. package/__assets/_libs/component/c-media-list.css +1 -1
  21. package/__assets/_libs/component/c-media.css +4 -4
  22. package/__assets/_libs/component/c-nav-breadcrumb.css +4 -4
  23. package/__assets/_libs/component/c-nav-breadcrumb.pug +1 -1
  24. package/__assets/_libs/component/c-nav-global.css +8 -8
  25. package/__assets/_libs/component/c-nav-sitemap.css +4 -4
  26. package/__assets/_libs/component/c-page-home.css +1 -1
  27. package/__assets/_libs/component/c-page-sub.css +1 -1
  28. package/__assets/_libs/component/c-pagination.css +5 -5
  29. package/__assets/_libs/mixin/meta-basercms.pug +14 -0
  30. package/__assets/_libs/mixin/meta.pug +6 -3
  31. package/__assets/htdocs/__tmpl/index.pug +1 -1
  32. package/__assets/htdocs/index.json +4 -0
  33. package/__assets/htdocs/index.pug +2 -9
  34. package/cspell.json +2 -1
  35. package/htdocs/__tmpl/__burger_editor/img/bg-sample.png +0 -0
  36. package/htdocs/__tmpl/__burger_editor/js/bge_modules/bge_functions.min.js +11 -0
  37. package/htdocs/files/images/sample.png +0 -0
  38. package/kamado.config.ts +48 -0
  39. package/package.json +41 -25
  40. package/.clineignore +0 -6
  41. package/.clinerules +0 -17
  42. package/__assets/_libs/data/blocks.html +0 -71
  43. package/__assets/_libs/data/breadcrumbs.js +0 -77
  44. package/__assets/_libs/data/titlelist.js +0 -16
  45. package/ai-tasks/create-component.md +0 -127
  46. package/ai-tasks/create-page.md +0 -110
  47. package/ai-tasks/page-to-burger.md +0 -68
  48. package/eleventy.config.mjs +0 -71
@@ -9,26 +9,26 @@
9
9
 
10
10
  .c-footer__links {
11
11
  ul {
12
- display: flex;
12
+ display: block flex;
13
13
  justify-content: center;
14
14
  padding: 0;
15
15
  margin-block: 0 1rem;
16
16
  margin-inline: 0;
17
17
 
18
18
  @media (--sm-lte) {
19
- display: block;
19
+ display: block flow;
20
20
  }
21
21
  }
22
22
 
23
23
  li {
24
- display: block;
24
+ display: block flow;
25
25
  padding: 0;
26
26
  margin-block: 0;
27
27
  margin-inline: 1rem;
28
28
  }
29
29
 
30
30
  a {
31
- display: block;
31
+ display: block flow;
32
32
  padding: 1rem;
33
33
  color: inherit;
34
34
  text-decoration: none;
@@ -36,6 +36,6 @@
36
36
  }
37
37
 
38
38
  .c-footer__copyright {
39
- display: block;
39
+ display: block flow;
40
40
  text-align: center;
41
41
  }
@@ -5,14 +5,14 @@
5
5
  }
6
6
 
7
7
  .c-header__body {
8
- display: flex;
8
+ display: block flex;
9
9
  align-items: center;
10
10
  justify-content: space-between;
11
11
  margin-block: 0;
12
12
  margin-inline: auto;
13
13
 
14
14
  @media (--md-lte) {
15
- display: block;
15
+ display: block flow;
16
16
  }
17
17
  }
18
18
 
@@ -29,7 +29,7 @@
29
29
  margin: 0;
30
30
 
31
31
  > a {
32
- display: block;
32
+ display: block flow;
33
33
  color: inherit;
34
34
  text-decoration: none;
35
35
  }
@@ -40,13 +40,13 @@
40
40
  }
41
41
 
42
42
  .c-header__info {
43
- display: flex;
43
+ display: block flex;
44
44
  flex: 0 1 auto;
45
45
  flex-direction: column;
46
46
  }
47
47
 
48
48
  .c-header__links {
49
- display: flex;
49
+ display: block flex;
50
50
  flex: 0 1 auto;
51
51
  padding: 0;
52
52
  margin: 0;
@@ -57,11 +57,11 @@
57
57
  }
58
58
 
59
59
  > li {
60
- display: block;
60
+ display: block flow;
61
61
  flex: 0 1 auto;
62
62
 
63
63
  > a {
64
- display: block;
64
+ display: block flow;
65
65
  padding-block: 0.5rem;
66
66
  padding-inline: 1rem;
67
67
  color: inherit;
@@ -84,7 +84,7 @@
84
84
  border-radius: 5px;
85
85
 
86
86
  @media (--md-lte) {
87
- display: block;
87
+ display: block flow;
88
88
  inline-size: calc(80 / 100 * 100%);
89
89
  margin-block: 0;
90
90
  margin-inline: auto;
@@ -1,5 +1,5 @@
1
1
  .c-media-list {
2
- display: grid;
2
+ display: block grid;
3
3
  grid-template-columns: 1fr;
4
4
  gap: 0.5rem;
5
5
  }
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  > a {
15
- display: grid;
15
+ display: block grid;
16
16
  grid-template:
17
17
  'img header' auto
18
18
  'img body' auto
@@ -29,7 +29,7 @@
29
29
  img {
30
30
  inset-block-start: 0;
31
31
  inset-inline-start: 0;
32
- display: block;
32
+ display: block flow;
33
33
  inline-size: 100%;
34
34
  block-size: 100%;
35
35
  aspect-ratio: 4 / 3;
@@ -85,13 +85,13 @@
85
85
 
86
86
  /* ブログのみ */
87
87
  .c-media__tag-item {
88
- display: inline-block;
88
+ display: inline flow-root;
89
89
  padding: 0;
90
90
  margin: 0;
91
91
  list-style: none;
92
92
 
93
93
  span {
94
- display: block;
94
+ display: block flow;
95
95
  padding-block: 0.2em;
96
96
  padding-inline: 1em;
97
97
  }
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  ol {
7
- display: flex;
7
+ display: block flex;
8
8
  justify-content: flex-start;
9
9
  padding: 0;
10
10
  margin: 0;
@@ -21,19 +21,19 @@
21
21
  }
22
22
 
23
23
  a {
24
- display: inline-block;
24
+ display: inline flow-root;
25
25
  color: inherit;
26
26
  text-decoration: underline;
27
27
 
28
28
  ::after {
29
- display: inline-block;
29
+ display: inline flow-root;
30
30
  content: ' > ';
31
31
  }
32
32
  }
33
33
  }
34
34
 
35
35
  .c-nav-breadcrumb__item {
36
- display: inline-block;
36
+ display: inline flow-root;
37
37
  padding: 0;
38
38
  margin: 0;
39
39
  }
@@ -1,7 +1,7 @@
1
1
  .c-nav-breadcrumb
2
2
  ol(itemscope itemtype="https://schema.org/BreadcrumbList")
3
3
  - const HOME_TITLE = "Home";
4
- - const linkList = breadcrumbs(page, collections);
4
+ - const linkList = breadcrumbs;
5
5
  each link, index in linkList
6
6
  li.c-nav-breadcrumb__item(
7
7
  itemscope
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .c-nav-global__list {
13
- display: flex;
13
+ display: block flex;
14
14
  flex-wrap: nowrap;
15
15
  align-items: stretch;
16
16
  justify-content: space-between;
@@ -22,16 +22,16 @@
22
22
  }
23
23
 
24
24
  @media (--md-lte) {
25
- display: block;
25
+ display: block flow;
26
26
  }
27
27
  }
28
28
 
29
29
  .c-nav-global__item {
30
- display: block;
30
+ display: block flow;
31
31
  flex: 1 1 auto;
32
32
 
33
33
  > a {
34
- display: block;
34
+ display: block flow;
35
35
  color: inherit;
36
36
  text-align: center;
37
37
  text-decoration: none;
@@ -41,7 +41,7 @@
41
41
  }
42
42
 
43
43
  > span {
44
- display: block;
44
+ display: block flow;
45
45
  padding-block: 1em;
46
46
  padding-inline: 2em;
47
47
  border-inline-start: 1px solid var(--border-color);
@@ -79,12 +79,12 @@
79
79
  }
80
80
 
81
81
  > ul {
82
- display: flex;
82
+ display: block flex;
83
83
  flex-wrap: nowrap;
84
84
  justify-content: space-around;
85
85
 
86
86
  @media (--md-lte) {
87
- display: block;
87
+ display: block flow;
88
88
  padding: 0;
89
89
  }
90
90
 
@@ -96,7 +96,7 @@
96
96
  }
97
97
 
98
98
  > a {
99
- display: block;
99
+ display: block flow;
100
100
  inline-size: 100%;
101
101
  padding: 1em;
102
102
  color: inherit;
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  a {
10
- display: block;
10
+ display: block flow;
11
11
  padding-inline-start: 2rem;
12
12
  color: inherit;
13
13
  text-decoration: none;
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  li[data-sitemap-level='1'] {
40
- display: inline-block; /* 💉 for columns item technic */
40
+ display: inline flow-root; /* 💉 for columns item technic */
41
41
  inline-size: 100%; /* 💉 for columns item technic */
42
42
  padding: 0;
43
43
  margin: 0;
@@ -68,7 +68,7 @@
68
68
  }
69
69
 
70
70
  li[data-sitemap-level='2'] {
71
- display: block;
71
+ display: block flow;
72
72
  padding: 0;
73
73
  margin: 0;
74
74
  margin-block: 0 0.5em;
@@ -104,7 +104,7 @@
104
104
  }
105
105
 
106
106
  li[data-sitemap-level='3'] {
107
- display: block;
107
+ display: block flow;
108
108
  padding: 0;
109
109
  margin: 0;
110
110
 
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .c-page-home__base {
7
- display: grid;
7
+ display: block grid;
8
8
  grid-template:
9
9
  'header' auto
10
10
  'nav-global' auto
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .c-page-sub__base {
7
- display: grid;
7
+ display: block grid;
8
8
  grid-template:
9
9
  'header' auto
10
10
  'nav-global' auto
@@ -1,6 +1,6 @@
1
1
  .c-pagination {
2
2
  clear: both;
3
- display: flex;
3
+ display: block flex;
4
4
  justify-content: center;
5
5
  margin-block-start: 1rem;
6
6
  overflow: hidden;
@@ -21,7 +21,7 @@
21
21
  .c-pagination__next {
22
22
  a {
23
23
  position: relative;
24
- display: flex;
24
+ display: block flex;
25
25
  align-items: center;
26
26
  padding-inline: 1rem;
27
27
  border: 1px solid var(--border-color);
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  .c-pagination__numbers {
53
- display: flex;
53
+ display: block flex;
54
54
  order: 2;
55
55
  padding: 0;
56
56
  margin-block: 0;
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  .c-pagination__number {
67
- display: block;
67
+ display: block flow;
68
68
  margin-block: 0;
69
69
  margin-inline: 0.5rem;
70
70
  list-style: none;
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  a {
78
- display: block;
78
+ display: block flow;
79
79
  padding-block: 0;
80
80
  padding-inline: 0.3rem;
81
81
  text-align: center;
@@ -0,0 +1,14 @@
1
+ link(
2
+ ⚠️="baserCMS組み込み時は削除してください"
3
+ rel="stylesheet"
4
+ href="/__tmpl/__burger_editor/css/colorbox.css")
5
+ script(src="/js/jquery.min.js")
6
+ script(
7
+ ⚠️="baserCMS組み込み時は削除してください"
8
+ src="https://maps.google.com/maps/api/js?key=AIzaSyDc3Vko3MvdrlJuQyEmo0WiT50RIMMtk5g")
9
+ script(
10
+ ⚠️="baserCMS組み込み時は削除してください"
11
+ src="/__tmpl/__burger_editor/js/bge_modules/jquery.colorbox-min.js")
12
+ script(
13
+ ⚠️="baserCMS組み込み時は削除してください"
14
+ src="/__tmpl/__burger_editor/js/bge_modules/bge_functions.min.js")
@@ -1,6 +1,8 @@
1
+ - const url = pkg.production.host + page.url;
2
+ - const metaTitle = titleList({ baseURL: pkg.production.baseURL });
1
3
  meta(charset="UTF-8")
2
4
  meta(name="viewport" content="width=device-width")
3
- title= titlelist(page, collections, pkg, " | ")
5
+ title= metaTitle
4
6
  meta(name="format-detection" content="telephone=no")
5
7
  meta(name="description" content=description || "")
6
8
  meta(property="og:type" content=ogType || "website")
@@ -9,10 +11,10 @@ if pkg.production.siteName
9
11
  if ogDescription || description
10
12
  meta(property="og:description" content=ogDescription || description || "")
11
13
  if pkg.production.host
12
- meta(property="og:url" content=pkg.production.host + page.url)
14
+ meta(property="og:url" content=url)
13
15
  meta(property="og:image" content=pkg.production.host + (ogImage || "/img/ogp.png"))
14
16
  meta(name="twitter:card" content=ogCard || "summary_large_image")
15
- meta(name="twitter:url" content=pkg.production.host + page.url)
17
+ meta(name="twitter:url" content=url)
16
18
  if pkg.production.siteName
17
19
  meta(name="twitter:title" content=pkg.production.siteName || "__サイト名__")
18
20
  if ogDescription || description
@@ -22,4 +24,5 @@ if pkg.production.host
22
24
  link(rel="icon" href="/favicon.png")
23
25
  link(rel="apple-touch-icon" href="/img/apple-touch-icon.png")
24
26
  link(href="/css/style.css" rel="stylesheet")
27
+ include meta-basercms.pug
25
28
  script(src="/js/script.js" type="module")
@@ -9,7 +9,7 @@ html(lang="ja")
9
9
  href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css")
10
10
  style.
11
11
  .list-group-item a {
12
- display: block;
12
+ display: block flow;
13
13
  }
14
14
  body
15
15
  .c-content-main
@@ -0,0 +1,4 @@
1
+ {
2
+ "layout": "home.pug",
3
+ "title": "トップページ"
4
+ }
@@ -1,9 +1,2 @@
1
- html(lang="en")
2
- head
3
- meta(charset="UTF-8")
4
- meta(name="viewport" content="width=device-width, initial-scale=1.0")
5
- meta(http-equiv="X-UA-Compatible" content="ie=edge")
6
- meta(http-equiv="refresh" content="0;URL=./__tmpl/")
7
- title Document root
8
- body
9
- h1 Document root
1
+ h2 トップページ
2
+ div トップページ内容
package/cspell.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "import": ["@d-zero/cspell-config"],
3
- "ignorePaths": ["./htdocs"],
3
+ "ignorePaths": ["./.claude", "./htdocs", "./CHANGELOG.md"],
4
4
  "words": [
5
5
  // Libraries
6
6
  "splide",
7
+ "kamado",
7
8
  "kiso"
8
9
  ]
9
10
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * BurgerEditor v2.25.2
3
+ *
4
+ * Copyright: D-ZERO Co.,Ltd.
5
+ * License: BurgerEditor License
6
+ */
7
+ ;(function () {var BgE=function(E){"use strict";var yt=E=>{throw TypeError(E)};var Ht=(E,S,T)=>S.has(E)||yt("Cannot "+T);var mt=(E,S,T)=>S.has(E)?yt("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(E):S.set(E,T);var z=(E,S,T)=>(Ht(E,S,"access private method"),T);var b,Pt,Et,wt,St;function S(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var T={},F={},J;function tt(){if(J)return F;J=1,Object.defineProperty(F,"__esModule",{value:!0});var h=function(){function o(){}return o.posAbs=function(s,i,r){return i===void 0&&(i=0),r===void 0&&(r=0),s.css({position:"absolute",top:i,left:r})},o.posBase=function(s){var i=s.css("position");return(i==null||i==="static"||i==="")&&s.css({position:"relative"}),s},o.z=function(s,i){return i===void 0&&(i=0),s.css({zIndex:i}),s},o.floating=function(s,i){return i===void 0&&(i=!0),s.css({float:i?"left":"none"}),s},o.isOverflowHidden=function(s){return s.css("overflow").toLowerCase()==="hidden"},o.saveCSS=function(s){s.each(function(i,r){var e=$(r);e.data("originStyle",e.attr("style"))})},o.restoreCSS=function(s){s.each(function(i,r){var e=$(r),t=""+e.data("originStyle");e.attr("style",t)})},o.cleanCSS=function(s){s.each(function(i,r){var e=$(r);e.attr("style","")})},o}();return F.default=h,F}var k={},et;function X(){if(et)return k;et=1,Object.defineProperty(k,"__esModule",{value:!0});var h=function(){function o(){}return o.INIT="init",o.TRANSITION_END="transitionEnd",o.RESIZE="resize",o.RESIZE_START="resizeStart",o.RESIZE_END="resizeEnd",o.REFLOW_METHOD="reflowMethod",o.LOAD="load",o}();return k.default=h,k}var j={},it;function G(){if(it)return j;it=1,Object.defineProperty(j,"__esModule",{value:!0});var h=function(){function o(s,i){this.name=s,$.extend(this,i)}return o.create=function(s){for(var i in s)if(s.hasOwnProperty(i)){var r=new o(i,s[i]);o.transitions[i]=r}},o.transitions={},o}();return j.default=h,j}var nt;function bt(){if(nt)return T;nt=1,Object.defineProperty(T,"__esModule",{value:!0});var h=tt(),o=X(),s=G();return s.default.create({fade:{init:function(){h.default.posBase(this.container.$el),h.default.posAbs(this.panels.$el)},reflow:function(i){switch(i.timing){case o.default.TRANSITION_END:case o.default.RESIZE_START:case o.default.RESIZE_END:case o.default.LOAD:{this.config.resizable&&this.stage.$el.height(this.panels.$el.height()||0),h.default.z(this.panels.$el,0),h.default.z(this.panels.item(this.to).$el,10),this.panels.$el.css({opacity:0}),this.panels.item(this.to).$el.css({opacity:1});break}}},silent:function(){},before:function(){},fire:function(){this.panels.item(this.to).$el.css({opacity:0}),h.default.z(this.panels.item(this.to).$el,20),this.animation&&this.animation.stop(),this.animation=this.panels.item(this.to).$el.animate({opacity:1},{duration:this.config.duration}),this.config.crossFade&&this.panels.item(this.from).$el.animate({opacity:0},{duration:this.config.duration})},cancel:function(){},after:function(){this.panels.$el.css({opacity:0}),this.panels.item(this.to).$el.css({opacity:1})}}}),T}bt();var Y={},W={},st;function rt(){if(st)return W;st=1,Object.defineProperty(W,"__esModule",{value:!0});var h=function(){function o(){}return o.getSpeed=function(s,i){return s/i},o.getDuration=function(s,i){return s/i},o.getDistance=function(s,i){return s*i},o.getloopSeriesNumber=function(s,i){var r;return r=s%i,r===0||s<0&&(r=i+Math.abs(s)%i*-1),r},o.getloopSeriesVector=function(s,i,r,e){var t;if(r!==0&&r!==1&&r!==-1)throw new RangeError("`direction` is must 1 or -1 or zero.");if(r===0){s=o.getloopSeriesNumber(s,e),i=o.getloopSeriesNumber(i,e);var n=s<i?i-e:i+e,f=Math.abs(i-s),p=Math.abs(n-s),_=Math.min(f,p);f===_?t=i<s?f*-1:f:t=n<s?p*-1:p}else if(s===i)t=e*r;else if(s<i&&r===-1){i=o.getloopSeriesNumber(i,e);var n=i-e;t=n-s}else if(i<s&&r===1){i=o.getloopSeriesNumber(i,e);var n=i+e;t=n-s}else t=i-s;return t},o.roundDown=function(s){return parseInt(""+s,10)},o.roundUp=function(s){return 0<s?Math.ceil(s):Math.ceil(s*-1)*-1},o}();return W.default=h,W}var H={},at;function ot(){if(at)return H;at=1,Object.defineProperty(H,"__esModule",{value:!0});var h=function(){function o(){}return o.NONE="none",o.RETURN="return",o.LOOP="loop",o}();return H.default=h,H}var lt;function Tt(){if(lt)return Y;lt=1,Object.defineProperty(Y,"__esModule",{value:!0});var h=tt(),o=rt(),s=X(),i=ot(),r=G(),e=function(){function t(n,f,p){var _=this;this.isDragging=!1,this.isSwiping=!1,this.$el=n,this.psycle=f,this.config=p;var y={passive:!0};this.$el[0].addEventListener("touchstart",function(u){_._dragStartX=u.touches[0].pageX,_._dragstart(u)},y),this.$el[0].addEventListener("touchmove",function(u){_._drag(u)},y),this.$el[0].addEventListener("touchend",function(u){_._dragend(u)}),this.$el[0].addEventListener("touchcancel",function(u){_._dragend(u)})}return t.prototype._tap=function(){this.isDragging=!1},t.prototype._dragstart=function(n){this.dragStartTimestamp=Date.now(),this.psycle.freeze(),this.dragStartPsycleLeftPosition=this.psycle.container.$el.position().left,this.currentIndex=this.psycle.index},t.prototype._drag=function(n){var f=this,p=n.touches[0].pageX-this._dragStartX,_=this.dragStartPsycleLeftPosition+p;this.isDragging=!0,this._moveValueFromPrevTouchMove=p,cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(function(){f.psycle.container.$el[0].style.left=_+"px"})},t.prototype._dragend=function(n){var f=.25,p=n.touches[0]||n.changedTouches[0],_=p.pageX-this._dragStartX,y=this.psycle.panelWidth,u=this.dragStartPsycleLeftPosition+_,l=this.psycle.cloneCount*this.psycle.length,c=l*y,a=u/y*-1;this.psycle.repeat===i.default.LOOP&&(a-=l);var d=a-this.psycle.index,v=0;if(0<d)f<d?v=a-f:v=this.psycle.index;else if(d<0)d<f*-1?v=a-f:v=this.psycle.index;else return;var m=o.default.roundUp(v-this.psycle.index),P=m*y,g=Math.abs(P-c-u),w=(g===0?0:m>0?1:-1)*-1,L=o.default.getSpeed(g,this.config.duration),V=o.default.getDuration(g,L),D=this.psycle.index+m,M=200,kt=5,jt=Date.now()-this.dragStartTimestamp<M,Wt=kt<Math.abs(this._moveValueFromPrevTouchMove);jt&&Wt&&(this._moveValueFromPrevTouchMove<0?this._swipeleft():this._swiperight()),!this.isSwiping&&g!==0&&this.psycle.transitionTo(D,V,w,m,!0),this.isSwiping=!1,this.isDragging=!1,this.psycle.isTransition=!1},t.prototype._swipeleft=function(){if(this.config.swipeable){this.isSwiping=!0,this.psycle.stop();var n=Date.now()-this.dragStartTimestamp;this.psycle.next(n)}},t.prototype._swiperight=function(){if(this.config.swipeable){this.isSwiping=!0,this.psycle.stop();var n=Date.now()-this.dragStartTimestamp;this.psycle.prev(n)}},t}();return r.default.create({slide:{init:function(){h.default.posBase(this.stage.$el),h.default.posAbs(this.container.$el),h.default.posBase(this.panels.$el),h.default.floating(this.panels.$el),h.default.saveCSS(this.panels.$el),this.config.draggable&&new e(this.stage.$el,this,this.config)},reflow:function(t){switch(t.timing){case s.default.TRANSITION_END:{var n=this.panelWidth*this.index*-1+this.cloneCount*this.panelWidth*this.length*-1;this.container.$el.css({left:n});break}case s.default.RESIZE_END:case s.default.RESIZE_START:case s.default.INIT:case s.default.LOAD:{t.timing===s.default.RESIZE_END&&(this.cloneCount=0,this.panels.removeClone());var f=this.panels.$el,p=this.container.$el;h.default.cleanCSS(f),h.default.posBase(f),h.default.floating(f),h.default.cleanCSS(p),h.default.posAbs(p);var _=f.width()||0,y=f.outerWidth(!0)||0;this.panelWidth=y,this.stageWidth=this.stage.$el.width()||0,f.width(_),this.panels.getClones().width(_);var u=y*this.length;if(this.repeat===i.default.LOOP){var l=this.stageWidth/u,c=Math.ceil(l/2)+1;c===1/0&&(c=this.cloneCount+1),this.cloneCount<c&&(this.panels.removeClone(),this.panels.cloneBefore(c),this.panels.cloneAfter(c),this.cloneCount=c),u=this.panelWidth*this.length*(this.cloneCount*2+1)}var n=this.panelWidth*this.index*-1+this.cloneCount*this.panelWidth*this.length*-1;if(p.css({width:u,left:n}),this.config.resizable){var a=void 0;switch(this.config.dimension){case"max":{a=this.panels.getMaxHeight();break}case"min":{a=this.panels.getMinHeight();break}default:a=this.panels.getHeight()}this.stage.setHeight(a)}break}}},silent:function(){},before:function(){},fire:function(){this.animation&&this.animation.stop();var t=this.duration||this.config.duration,n=this.panelWidth*(this.index+this.vector)*-1+this.cloneCount*this.panelWidth*this.length*-1;this.animation=this.container.$el.animate({left:n},{duration:t,easing:this.config.easing})},cancel:function(){},after:function(){}}}),Y}Tt();var C={},R={},U={},B={},ct;function ut(){if(ct)return B;ct=1,Object.defineProperty(B,"__esModule",{value:!0});var h=function(){function o(s){this.defaultPrevented=!1,this.type=s,this.timeStamp=new Date().valueOf()}return o.prototype.preventDefault=function(){this.defaultPrevented=!0},o.INIT="init",o.PANEL_CHANGE_START_BEFORE="panelChangeStartBefore",o.PANEL_CHANGE_START="panelChangeStart",o.PANEL_CHANGE_END="panelChangeEnd",o.PANEL_CHANGE_CANCEL="panelChangeCancel",o.WAIT_START="waitStart",o.WAIT_END="waitEnd",o.RESIZE_START="resizeStart",o.RESIZE_END="resizeEnd",o}();return B.default=h,B}var ht;function $t(){if(ht)return U;ht=1,Object.defineProperty(U,"__esModule",{value:!0});var h=ut(),o=function(){function s(){this._listeners={}}return s.prototype.on=function(i,r){var e;typeof i=="string"?e=i.split(/\s+/):e=i;for(var t=0,n=e.length;t<n;t++)this._listeners[e[t]]||(this._listeners[e[t]]=[]),this._listeners[e[t]].push(r)},s.prototype.off=function(i,r){for(var e=i.split(/\s+/),t=0,n=e.length;t<n;t++){var f=e[t];(r==null||this._listeners[f]===r)&&delete this._listeners[f]}},s.prototype.trigger=function(i,r,e){if(r===void 0&&(r={}),e===void 0&&(e=this),this._listeners[i])for(var t=this._listeners[i].length,n=0;n<t;n++){var f=this._listeners[i][n],p=new h.default(i);if(p.data=r,f.call(e,p),p.defaultPrevented)return!1}return!0},s}();return U.default=o,U}var ft;function q(){if(ft)return R;ft=1;var h=R&&R.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(r,e){i(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(R,"__esModule",{value:!0});var o=$t(),s=function(i){h(r,i);function r(e){var t=i.call(this)||this;if(!e.length)throw new ReferenceError("This jQuery object is empty.");return t.$el=e,t.el=e[0],t}return r.prototype.trigger=function(e,t,n){t===void 0&&(t={}),n===void 0&&(n=this);var f=i.prototype.trigger.call(this,e,t,n);return f&&this.$el.trigger(e,t),f},r.prototype.getWidth=function(){return this.$el.width()||0},r.prototype.getHeight=function(){return this.$el.height()||0},r.prototype.getMaxHeight=function(){var e=0;return this.$el.each(function(t,n){e=Math.max($(n).height()||0,e)}),e},r.prototype.getMinHeight=function(){var e=1/0;return this.$el.each(function(t,n){e=Math.min($(n).height()||0,e)}),e===1/0&&(e=NaN),e},r.prototype.setWidth=function(e){return this.$el.width(e),this},r.prototype.setHeight=function(e){return this.$el.height(e),this},r}(o.default);return R.default=s,R}var O={},pt;function xt(){if(pt)return O;pt=1;var h=O&&O.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(r,e){i(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var o=q(),s=function(i){h(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r}(o.default);return O.default=s,O}var N={},x={},dt;function It(){if(dt)return x;dt=1;var h=x&&x.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x,"__esModule",{value:!0});var o=q(),s=function(r){h(e,r);function e(t,n,f){var p=r.call(this,t)||this;return p.hasImages=!1,p.loaded=!1,p.index=n,p._list=f,p._loadImageObserve(),p}return e.prototype.show=function(){return this.$el.show(),this},e.prototype.hide=function(){return this.$el.hide(),this},e.prototype.clone=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);var f=new i(this.$el.clone(),this.index,this._list);return t&&this.$el.after(f.$el),n&&this._list.addClone(f),f},e.prototype._loadImageObserve=function(){var t=this,n=this.$el.find("img"),f=[];n.length&&(this.hasImages=!0,n.each(function(p,_){var y=$.Deferred(),u=function(){y.resolve()},l=function(){y.resolve()},c=function(){y.resolve()};_.onload=u,_.onerror=c,_.onabort=l,f.push(y.promise())}),$.when.apply($,f).done(function(){t.loaded=!0,t.trigger("load")}))},e}(o.default);x.default=s;var i=function(r){h(e,r);function e(t,n,f){var p=r.call(this,t,n,f)||this;return t.addClass("-psycle-clone-element"),t.attr("data-psycle-clone-element","true"),t.attr("data-psycle-clone-original-index",""+n),p}return e.prototype._loadImageObserve=function(){},e}(s);return x.PsyclePanelClone=i,x}var gt;function Ct(){if(gt)return N;gt=1;var h=N&&N.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(N,"__esModule",{value:!0});var o=q(),s=It(),i=function(r){h(e,r);function e(t){var n=r.call(this,t)||this;n.length=0,n._panels=[],n._clones=[];for(var f,p=0,_=t.length;p<_;p++)f=$(t[p]),n.add(f);var y=[];return n.each(function(u,l){var c=$.Deferred();l.hasImages&&(l.loaded?c.resolve():l.on("load",function(){c.resolve()}),y.push(c.promise()))}),$.when.apply($,y).done(function(){n.trigger("load")}),n}return e.prototype.setCurrent=function(t,n){return this.resetCurrent(n),this.item(t).$el.addClass(n),this},e.prototype.resetCurrent=function(t){return this.$el.removeClass(t),this.getClones().removeClass(t),this},e.prototype.add=function(t){var n=this._panels.length,f=new s.default(t,n,this);return this._panels.push(f),this.$el=this.$el.add(t),this.length+=1,this},e.prototype.addClone=function(t){return this._clones.push(t),this},e.prototype.cloneAfter=function(t){return this.clone(t)},e.prototype.cloneBefore=function(t){return this.clone(t,!0)},e.prototype.clone=function(t,n){n===void 0&&(n=!1);for(var f=[],p=$(),_=0,y=t;_<y;_++)this.each(function(u,l){var c=l.clone(!1,!1);f.push(c);var a=c.$el;p=p.add(a)});return n?this.$el.eq(0).before(p):this.$el.eq(-1).after(p),this._clones=this._clones.concat(f),this},e.prototype.remove=function(t,n){return n===void 0&&(n=!0),n&&this.$el.eq(t).remove(),this._panels.splice(t,1),this._renumbering(),this.length-=1,this},e.prototype.item=function(t){var n=this._getRealIndex(t);return this._panels[n]},e.prototype.each=function(t){for(var n=0,f=this._panels.length;n<f;n++){var p=this._panels[n];t.call(p,p.index,p)}return this},e.prototype.show=function(){return this.$el.show(),this},e.prototype.hide=function(){return this.$el.hide(),this},e.prototype.removeClone=function(){for(var t=0,n=this._clones.length;t<n;t++)this._clones[t].$el.remove();return this._clones=[],this},e.prototype.getClones=function(){for(var t=$(),n=0,f=this._clones.length;n<f;n++)t=t.add(this._clones[n].$el);return t},e.prototype._getRealIndex=function(t){var n=this._panels.length;t=t%n;var f=t<0?n+t:t;return f},e.prototype._renumbering=function(){for(var t=this._panels.length,n=0;n<t;n++)this._panels[n].index=n;return t},e}(o.default);return N.default=i,N}var A={},vt;function Rt(){if(vt)return A;vt=1;var h=A&&A.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(r,e){i(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(A,"__esModule",{value:!0});var o=q(),s=function(i){h(r,i);function r(e,t){var n=i.call(this,e)||this;return n._panels=t,n._panels.on("load",function(){n.trigger("load")}),n}return r}(o.default);return A.default=s,A}var _t;function Ot(){if(_t)return C;_t=1;var h=C&&C.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var c in l)l.hasOwnProperty(c)&&(u[c]=l[c])};return function(u,l){y(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(C,"__esModule",{value:!0});var o=q(),s=ut(),i=rt(),r=xt(),e=Ct(),t=X(),n=ot(),f=Rt(),p=G(),_=function(y){h(u,y);function u(l,c){var a=y.call(this,l)||this;a.index=0,a.vector=0,a.isTransition=!1,a.isPaused=!1,a.cloneCount=0,a._times=[],a._ignoreIndexes=[],a.config=$.extend({instanceKey:"psycle",startIndex:0,transition:"slide",duration:600,easing:"swing",delay:3e3,auto:!0,cancel:!0,repeat:n.default.RETURN,container:">ul:eq(0)",panels:">li",currentClass:"current",delayWhenFire:0,clone:2,cols:1,rows:1,offsetX:0,offsetY:0,nearby:!1,innerFocus:!1,noFocus:!0,resizable:!1,draggable:!1,swipeable:!1,dragBlockVertical:!1,bindKeyboard:!1,showOnlyOnce:".once",controller:null,marker:null,thumbnail:null,css3:!0,loopCloneLength:null,scenes:[],dimension:"auto",crossFade:!0},c);var d=l,v=d.find(a.config.container),m=v.find(a.config.panels);if(a.panels=new e.default(m),a.container=new r.default(v),a.stage=new f.default(d,a.panels),a.transition=p.default.transitions[a.config.transition],a.transition==null)throw new ReferenceError("'"+a.config.transition+"' is not transition type.");if(a.transition.fallback&&a.transition.fallbackFilter&&a.transition.fallbackFilter()&&(a.transition=p.default.transitions[a.transition.fallback],a.transition==null))throw new ReferenceError("'"+a.config.transition+"' is not transition type.");return a.index=+a.config.startIndex||0,a.to=a.index,a.from=a.index,a.repeat=a.config.repeat,a.length=a.panels.length,a.progressIndex=a.index,a._resizeable(),a._init(),a._silent(),a.panels.on("load",function(){a._load()}),l.data(a.config.instanceKey,a),setTimeout(function(){a._initFinished(),a.config.auto&&a.play()},0),a}return u.prototype.play=function(){var l=this,c=this.trigger("play");return c&&(this.config.auto=!0,clearTimeout(this.timer),this.timer=setTimeout(function(){l.next()},this.config.delay)),this},u.prototype.stop=function(){return clearTimeout(this.timer),this.isPaused=!0,this},u.prototype.freeze=function(){return this.animation&&this.animation.stop(),this.stop(),this},u.prototype.gotoPanel=function(l,c,a){return a===void 0&&(a=0),this.isTransition?this:(this.transitionTo(l,c,a),this)},u.prototype.prev=function(l){if(this.isTransition)return this;var c=-1;return this.gotoPanel(this.index-1,l,c),this},u.prototype.next=function(l){if(this.isTransition)return this;var c=1;return this.gotoPanel(this.index+1,l,c),this},u.prototype.reflow=function(l){return this.transition.reflow.call(this,{timing:t.default.REFLOW_METHOD,data:l}),this},u.prototype.isFirst=function(){return this._isFirst(this.index)},u.prototype.isLast=function(){return this._isLast(this.index)},u.prototype.marker=function(l,c){var a=this,d=$("<ul />");c=c||s.default.PANEL_CHANGE_END;for(var v=0,m=this.length;v<m;v++){var P=$("<li />");P.appendTo(d),this.panels.item(v).$el.filter(this.config.showOnlyOnce).length&&P.addClass(this.config.showOnlyOnce).hide()}var g=d.find("li");return this.on(c,function(w){g.removeClass(a.config.currentClass),g.eq(w.data.to).addClass(a.config.currentClass)}),g.eq(this.config.startIndex).addClass(this.config.currentClass),g.on("click",function(w){a.gotoPanel($(w.target).index(),l),w.preventDefault()}),d},u.prototype.marked=function(l,c){var a=this,d=$.extend({type:"li",duration:null},c),v=l[0].nodeName,m=""+d.type;(v==="UL"||v==="OL")&&(m="li");var P;switch(m.toLowerCase()){case"li":case"list":case"ls":case"ul":case"ol":{P="li";break}case"i":case"in":case"inline":case"span":{P="span";break}default:P="div"}for(var g=$("<"+P+" />"),w=0,L=this.length;w<L;w++){var V=g.clone();V.appendTo(l),this.panels.item(w).$el.filter(this.config.showOnlyOnce).length&&V.addClass(this.config.showOnlyOnce).hide()}var D=l.find(">"+P);D.eq(this.config.startIndex).addClass(this.config.currentClass),this.on(s.default.PANEL_CHANGE_END,function(M){D.removeClass(a.config.currentClass),D.eq(M.data.index).addClass(a.config.currentClass)}),D.on("click",function(M){a.gotoPanel($(M.target).index(),d.duration),M.preventDefault()})},u.prototype.controller=function(l,c){var a=this,d=$.extend({prev:".prev",next:".next",duration:null,ifFirstClass:"is-first",ifLastClass:"is-last",ifIgnoreClass:"is-ignore"},c),v=d.prev,m=d.next;$(v),$(m),l.on("click",v,function(g){a.prev(d.duration),g.preventDefault()}),l.on("click",m,function(g){a.next(d.duration),g.preventDefault()});var P=function(){a.isFirst()?l.addClass(d.ifFirstClass):l.removeClass(d.ifFirstClass),a.isLast()?l.addClass(d.ifLastClass):l.removeClass(d.ifLastClass),a._ignoreIndexes[a.index]?l.addClass(d.ifIgnoreClass):l.removeClass(d.ifIgnoreClass)};this.on(s.default.PANEL_CHANGE_END,P),P()},u.prototype.ctrl=function(l,c){this.controller(l,c)},u.prototype.transitionTo=function(l,c,a,d,v){var m=this;a===void 0&&(a=0),v===void 0&&(v=!1),this.before();var P=d&&$.isNumeric(d)?d:this._optimizeVector(l,a),g=this._optimizeCounter(this.index+P,l);if(v){if(this._ignoreIndexes[g]&&this._times[g]>=1)return this.progressIndex!==g?(this.progressIndex=g,this.transitionTo(l+a,c,0,P+a,v)):this._finaly(),this;this.index===g&&(P=0)}else{for(var w=0;this._ignoreIndexes[g]&&this._times[g]>=1&&w++<50;){if(P=d&&$.isNumeric(d)?d:this._optimizeVector(g+a,a),g=this._optimizeCounter(this.index+P,g+a),this.progressIndex===g)return this._finaly(),this;this.progressIndex=g}if(this.index===g)return this._finaly(),this}this.duration=c||this.config.duration,this.vector=P,this.from=this.index,this.to=g,this.progressIndex=g,this.config.delayWhenFire?(clearTimeout(this._delayTimer),this._delayTimer=setTimeout(function(){m._fire()},this.config.delayWhenFire)):this._fire();var L=this.animation.promise();return L.done(function(){m._done()}),L.fail(function(){m._fail()}),this},u.prototype.before=function(){this.transition.before.call(this),this.panels.resetCurrent(this.config.currentClass),this.trigger(s.default.PANEL_CHANGE_START_BEFORE,this._getState())},u.prototype._optimizeVector=function(l,c){var a=(l+this.length)%this.length,d=Math.abs(this.index-a),v,m=this.index<a?1:-1;return this.length-1<=this.index&&this.index<l?m=-1:l<this.index&&this.index<=0&&(m=1),this.repeat===n.default.LOOP?v=i.default.getloopSeriesVector(this.index,l,c,this.length):v=d*m,v},u.prototype._optimizeCounter=function(l,c){var a;switch(this.repeat){case n.default.LOOP:{a=i.default.getloopSeriesNumber(l,this.length);break}case n.default.RETURN:{a=(l+this.length)%this.length;break}default:{var d=this.length-1;a=c<0?0:c,a=a<d?a:d}}return a},u.prototype._isFirst=function(l){for(var c=0;this._ignoreIndexes[c]&&this._times[c]>=1;)c+=1;return l===c},u.prototype._isLast=function(l){for(var c=this.length-1;this._ignoreIndexes[c]&&this._times[c]>=1;)c-=1;return l===c},u.prototype._resizeable=function(){var l=this,c=300,a,d=!1;$(window).on("resize",function(v){d||(d=!0,l._resizeStart()),clearTimeout(a),l._resize(),a=setTimeout(function(){l._resizeEnd(),d=!1},c)})},u.prototype._getState=function(){return{index:this.index,stage:this.stage,container:this.container,panel:this.panels.item(this.index),panels:this.panels,stageWidth:this.stageWidth,panelWidth:this.panelWidth,length:this.length,from:this.from,to:this.to,vector:this.vector,isTransition:this.isTransition,isPaused:this.isPaused}},u.prototype._load=function(){this.transition.reflow.call(this,{timing:t.default.LOAD})},u.prototype._init=function(){var l=this;this._times[this.config.startIndex]=1,this.panels.each(function(c,a){a.$el.filter(l.config.showOnlyOnce).length?l._ignoreIndexes[c]=!0:l._ignoreIndexes[c]=!1}),this.transition.init.call(this),this.transition.reflow.call(this,{timing:t.default.INIT})},u.prototype._initFinished=function(){this.trigger(s.default.INIT,this._getState())},u.prototype._silent=function(){this.transition.silent.call(this),this.transition.reflow.call(this,{timing:t.default.TRANSITION_END}),this.panels.setCurrent(this.index,this.config.currentClass)},u.prototype._before=function(){this.before()},u.prototype._fire=function(){this.isTransition=!0,this.trigger(s.default.PANEL_CHANGE_START,this._getState()),this.transition.fire.call(this)},u.prototype._cancel=function(){this.transition.cancel.call(this)},u.prototype._done=function(){this.index=this.to,this.progressIndex=this.to,this.isTransition=!1,this._after(),this._silent(),this.trigger(s.default.PANEL_CHANGE_END,this._getState()),this._times[this.to]=this._times[this.to]+1||1,this._finaly()},u.prototype._after=function(){this.transition.after.call(this)},u.prototype._fail=function(){this.stop(),this._cancel(),this.isTransition=!1,this.trigger(s.default.PANEL_CHANGE_CANCEL,this._getState()),this._finaly()},u.prototype._finaly=function(){this.config.auto?this.repeat===n.default.NONE&&this.isLast()?this.stop():this.play():this.stop()},u.prototype._resize=function(){this.transition.reflow.call(this,{timing:t.default.RESIZE})},u.prototype._resizeStart=function(){this.transition.reflow.call(this,{timing:t.default.RESIZE_START}),this.trigger(s.default.RESIZE_START,this._getState()),this.animation&&this.isTransition&&this.freeze()},u.prototype._resizeEnd=function(){this.transition.reflow.call(this,{timing:t.default.RESIZE_END}),this.trigger(s.default.RESIZE_END,this._getState()),this.isPaused&&this.config.auto&&this.gotoPanel(this.to)},u}(o.default);return C.default=_,C}var Nt=Ot();const At=S(Nt);function Lt(h,o){const s=$(o),i=s.find(".bgt-gallery"),r=new At(i,{transition:i.attr("data-gallery-effect"),container:".bgt-gallery__group",panels:".bgt-gallery__item",dragBlockVertical:!0,draggable:!0,swipeable:!0,duration:Number.parseInt(i.attr("data-gallery-duration")||"",10),delay:Number.parseInt(i.attr("data-gallery-delay")||"",10),auto:i.attr("data-gallery-autoplay")==="true",repeat:"loop"}),e=r.marker();if(e.addClass("bgt-gallery-marker"),e.appendTo(s),e.find("li").each((t,n)=>{const f=s.find(".bgt-gallery__item").eq(t).find("img").prop("src");f&&(n.style.backgroundImage=`url("${f}")`)}),i.attr("data-gallery-ctrl")==="true"){const t=$(`<div class="bgt-gallery-ctrl">
8
+ <button class="bgt-gallery-ctrl__prev"><span>Prev</span></button>
9
+ <button class="bgt-gallery-ctrl__next"><span>Next</span></button>
10
+ </div>`);t.appendTo(i),r.controller(t,{prev:".bgt-gallery-ctrl__prev",next:".bgt-gallery-ctrl__next",ifFirstClass:"bgt-gallery-ctrl__state-is-first",ifLastClass:"bgt-gallery-ctrl__state-is-last",ifIgnoreClass:"bgt-gallery-ctrl__state-is-ignore"})}}const Dt="bge-map-";let Mt=0;async function qt(h){if(!window?.google?.maps)return;google.maps.marker=await google.maps.importLibrary("marker");const o=$(h),s=35.681382,i=139.766084,r=14,e=+o.data("lat")||s,t=+o.data("lng")||i,n=+o.data("zoom")||r,f=new google.maps.LatLng(e,t),p={mapId:`${Dt}${Mt++}`,zoom:n,scrollwheel:!1,center:f,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.HYBRID,google.maps.MapTypeId.ROADMAP]}},_=new google.maps.Map(h,p);new google.maps.marker.AdvancedMarkerElement({position:f,map:_})}function zt(h){h.dataset.id&&new K(h)}const I=class I{constructor(o){mt(this,b);this.isEmbedded=!1,this.player=null;const s=$(o);this.movieId=s.data("id"),this.title=s.data("title")||"YouTube動画";const i={version:3,rel:0,autoplay:0,controls:1,disablekb:1,iv_load_policy:3,loop:0,modestbranding:1,showinfo:1,wmode:"transparent",enablejsapi:1};this.src=I.getURI(this.movieId,i),this.playerDomId=this.movieId+"-Player",z(this,b,Et).call(this,o),z(this,b,wt).call(this)}static getURI(o,s){const i=$.param(s);return`${/https?:/i.test(location.protocol)?"":"http:"}${I.PLAYER_URL}${o}?${i}`}};b=new WeakSet,Pt=function(o){this.player=new YT.Player(o,{videoId:this.movieId})},Et=function(o){const s=$('<iframe class="-bc-youtube-player-frame-element" loading="lazy" allowfullscreen />');s.attr("title",this.title),s.prop({src:this.src,id:this.playerDomId}),$(o).empty(),s.prependTo(o)},wt=function(){if(!("YT"in window&&YT.Player)){const s=/https?:/i.test(location.protocol)?"":"http:";$.getScript(`${s}${I.API_URL}`)}const o=setInterval(()=>{!this.player&&"YT"in window&&YT.Player&&z(this,b,Pt).call(this,this.playerDomId),this.player&&this.player.pauseVideo!=null&&this.player.playVideo!=null&&(clearInterval(o),z(this,b,St).call(this))},300)},St=function(){this.isEmbedded=!0},I.PLAYER_URL="//www.youtube.com/embed/",I.API_URL="//www.youtube.com/player_api";let K=I;const Q={colorbox:{maxWidth:"95%",maxHeight:"95%"}};function Ft(h){h.find('[data-bge-popup="true"] a').each((s,i)=>{const r=$(i),t=r.find(".bgt-box__image").css("background-image");if(t){const n=t.replace(/\s*url\s*\((["']?)(.+?)\1\)\s*;?\s*/i,"$2");r.attr("href",n)}}),h.find('[data-bgb] [target="false"]').each((s,i)=>{$(i).removeAttr("target")}),h.find('[data-bge-popup="true"] a, [data-bge-popup="1"] a, .bgt-colorbox').each((s,i)=>{const r=$(i),e=i.href;e&&(i.dataset.href=e,i.removeAttribute("href"),i.tabIndex=0,i.role="button"),r.colorbox({href:e,maxWidth:Q.colorbox.maxWidth??"auto",maxHeight:Q.colorbox.maxHeight??"auto",rel:"bgt-colorbox",current:"{current} / {total}"}),r.on("keydown",t=>{switch(t.key){case"Enter":case" ":t.preventDefault(),i.click()}})})}var Z;return(h=>{h.execute=(o,s)=>{const i=$(o);Ft(i),i.find(".bgt-google-maps").each((r,e)=>void qt(e)),i.find(".bgt-youtube").each((r,e)=>zt(e)),i.find('[data-bgt="gallery"]').each(s?.gallery||Lt)}})(Z||(Z={})),window.BgE={...window.BgE,...Z},window.addEventListener("DOMContentLoaded",()=>Z.execute(document,window.BgE.options)),E.options=Q,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
11
+ })();
Binary file
@@ -0,0 +1,48 @@
1
+ import type { UserConfig } from 'kamado/config';
2
+
3
+ import path from 'node:path';
4
+
5
+ import { pageCompiler } from '@kamado-io/page-compiler';
6
+ import { createCompileHooks } from '@kamado-io/pug-compiler';
7
+ import { scriptCompiler } from '@kamado-io/script-compiler';
8
+ import { styleCompiler } from '@kamado-io/style-compiler';
9
+
10
+ /**
11
+ * @type {import('kamado/config').UserConfig}
12
+ */
13
+ export default {
14
+ dir: {
15
+ root: import.meta.dirname,
16
+ input: path.resolve(import.meta.dirname, '__assets', 'htdocs'),
17
+ output: path.resolve(import.meta.dirname, 'htdocs'),
18
+ },
19
+ devServer: {
20
+ open: true,
21
+ port: 8000,
22
+ },
23
+ compilers: [
24
+ pageCompiler({
25
+ files: '**/*.{html,pug}',
26
+ globalData: {
27
+ dir: path.resolve(import.meta.dirname, '__assets', '_libs', 'data'),
28
+ },
29
+ layouts: {
30
+ dir: path.resolve(import.meta.dirname, '__assets', '_libs', 'layouts'),
31
+ },
32
+ compileHooks: createCompileHooks({
33
+ pathAlias: path.resolve(import.meta.dirname, '__assets', '_libs'),
34
+ }),
35
+ }),
36
+ styleCompiler({
37
+ alias: {
38
+ '@': path.resolve(import.meta.dirname, '__assets', '_libs'),
39
+ },
40
+ }),
41
+ scriptCompiler({
42
+ minifier: true,
43
+ alias: {
44
+ '@': path.resolve(import.meta.dirname, '__assets', '_libs'),
45
+ },
46
+ }),
47
+ ],
48
+ } as const satisfies UserConfig;