@shift72/core-template 1.9.11 → 1.9.12
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/kibble.json +1 -1
- package/package.json +1 -1
- package/site/ar_LB.all.json +13 -1
- package/site/ca_ES.all.json +13 -1
- package/site/confirmdelete.html.jet +2 -1
- package/site/da_DK.all.json +13 -1
- package/site/de_DE.all.json +13 -1
- package/site/el_EL.all.json +13 -1
- package/site/en_AU.all.json +13 -1
- package/site/es_ES.all.json +13 -1
- package/site/es_MX.all.json +13 -1
- package/site/et_ET.all.json +13 -1
- package/site/fi_FI.all.json +13 -1
- package/site/fr_FR.all.json +13 -1
- package/site/hr_HR.all.json +13 -1
- package/site/hu_HU.all.json +13 -1
- package/site/it_IT.all.json +13 -1
- package/site/ja_JP.all.json +13 -1
- package/site/letterboxd.html.jet +87 -0
- package/site/lt_LT.all.json +13 -1
- package/site/nl_BE.all.json +13 -1
- package/site/no_NO.all.json +13 -1
- package/site/pl_PL.all.json +13 -1
- package/site/pt_BR.all.json +13 -1
- package/site/pt_PT.all.json +13 -1
- package/site/ru_RU.all.json +13 -1
- package/site/sr_SR.all.json +13 -1
- package/site/static/js/main.js +5 -3
- package/site/static/scripts/main.js.map +1 -1
- package/site/styles/_pages.scss +5 -25
- package/site/templates/application/application.jet +8 -9
- package/site/test.html.jet +95 -0
- package/site/tr_TR.all.json +13 -1
- package/site/uk_UA.all.json +13 -1
- package/site/zh_TW.all.json +13 -1
- package/site/purchase.html.jet +0 -5
package/site/pl_PL.all.json
CHANGED
@@ -1743,7 +1743,7 @@
|
|
1743
1743
|
"other": "Potwierdź usunięcie"
|
1744
1744
|
},
|
1745
1745
|
"confirm_delete_message": {
|
1746
|
-
"other": "
|
1746
|
+
"other": "Natychmiast utracisz dostęp do wszelkich zakupionych treści."
|
1747
1747
|
},
|
1748
1748
|
"confirm_delete_success_page_header": {
|
1749
1749
|
"other": "Konto usunięte!"
|
@@ -1780,5 +1780,17 @@
|
|
1780
1780
|
},
|
1781
1781
|
"account_form_account_delete_successful": {
|
1782
1782
|
"other": "Żądanie usunięcia zakończone pomyślnie"
|
1783
|
+
},
|
1784
|
+
"confirm_delete_user_email": {
|
1785
|
+
"other": "Konto, które jest usuwane:"
|
1786
|
+
},
|
1787
|
+
"confirm_delete_is_permanent": {
|
1788
|
+
"other": "Ta czynność jest trwała i nie można jej cofnąć."
|
1789
|
+
},
|
1790
|
+
"confirm_delete_error_invalid_token": {
|
1791
|
+
"other": "Nie można usunąć konta z powodu nieprawidłowego tokena. Wypróbuj ponownie link z wiadomości e-mail lub rozpocznij proces od nowa."
|
1792
|
+
},
|
1793
|
+
"confirm_delete_check_box_message": {
|
1794
|
+
"other": "Rozumiem, że to działanie ma charakter trwały"
|
1783
1795
|
}
|
1784
1796
|
}
|
package/site/pt_BR.all.json
CHANGED
@@ -1670,7 +1670,7 @@
|
|
1670
1670
|
"other": "Confirmar exclusão"
|
1671
1671
|
},
|
1672
1672
|
"confirm_delete_message": {
|
1673
|
-
"other": "
|
1673
|
+
"other": "Você perderá imediatamente o acesso a qualquer conteúdo que tenha adquirido."
|
1674
1674
|
},
|
1675
1675
|
"confirm_delete_success_page_header": {
|
1676
1676
|
"other": "Conta excluída!"
|
@@ -1707,5 +1707,17 @@
|
|
1707
1707
|
},
|
1708
1708
|
"account_form_account_delete_successful": {
|
1709
1709
|
"other": "Solicitação de exclusão bem-sucedida"
|
1710
|
+
},
|
1711
|
+
"confirm_delete_user_email": {
|
1712
|
+
"other": "Conta que está sendo excluída:"
|
1713
|
+
},
|
1714
|
+
"confirm_delete_is_permanent": {
|
1715
|
+
"other": "Esta ação é permanente e não pode ser desfeita."
|
1716
|
+
},
|
1717
|
+
"confirm_delete_error_invalid_token": {
|
1718
|
+
"other": "Não é possível excluir a conta devido a um token inválido. Tente o link do seu e-mail novamente ou reinicie o processo."
|
1719
|
+
},
|
1720
|
+
"confirm_delete_check_box_message": {
|
1721
|
+
"other": "Entendo que esta ação é permanente"
|
1710
1722
|
}
|
1711
1723
|
}
|
package/site/pt_PT.all.json
CHANGED
@@ -1670,7 +1670,7 @@
|
|
1670
1670
|
"other": "Confirmar exclusão"
|
1671
1671
|
},
|
1672
1672
|
"confirm_delete_message": {
|
1673
|
-
"other": "
|
1673
|
+
"other": "Você perderá imediatamente o acesso a qualquer conteúdo que tenha adquirido."
|
1674
1674
|
},
|
1675
1675
|
"confirm_delete_success_page_header": {
|
1676
1676
|
"other": "Conta excluída!"
|
@@ -1707,5 +1707,17 @@
|
|
1707
1707
|
},
|
1708
1708
|
"account_form_account_delete_successful": {
|
1709
1709
|
"other": "Solicitação de exclusão bem-sucedida"
|
1710
|
+
},
|
1711
|
+
"confirm_delete_user_email": {
|
1712
|
+
"other": "Conta que está sendo excluída:"
|
1713
|
+
},
|
1714
|
+
"confirm_delete_is_permanent": {
|
1715
|
+
"other": "Esta ação é permanente e não pode ser desfeita."
|
1716
|
+
},
|
1717
|
+
"confirm_delete_error_invalid_token": {
|
1718
|
+
"other": "Não é possível excluir a conta devido a um token inválido. Tente o link do seu e-mail novamente ou reinicie o processo."
|
1719
|
+
},
|
1720
|
+
"confirm_delete_check_box_message": {
|
1721
|
+
"other": "Entendo que esta ação é permanente"
|
1710
1722
|
}
|
1711
1723
|
}
|
package/site/ru_RU.all.json
CHANGED
@@ -1720,7 +1720,7 @@
|
|
1720
1720
|
"other": "Подтвердить удаление"
|
1721
1721
|
},
|
1722
1722
|
"confirm_delete_message": {
|
1723
|
-
"other": "
|
1723
|
+
"other": "Вы немедленно потеряете доступ ко всему купленному вами контенту."
|
1724
1724
|
},
|
1725
1725
|
"confirm_delete_success_page_header": {
|
1726
1726
|
"other": "Аккаунт удален!"
|
@@ -1757,5 +1757,17 @@
|
|
1757
1757
|
},
|
1758
1758
|
"account_form_account_delete_successful": {
|
1759
1759
|
"other": "Запрос на удаление выполнен успешно"
|
1760
|
+
},
|
1761
|
+
"confirm_delete_user_email": {
|
1762
|
+
"other": "Аккаунт, который удаляется:"
|
1763
|
+
},
|
1764
|
+
"confirm_delete_is_permanent": {
|
1765
|
+
"other": "Это действие является постоянным и не может быть отменено."
|
1766
|
+
},
|
1767
|
+
"confirm_delete_error_invalid_token": {
|
1768
|
+
"other": "Невозможно удалить учетную запись из-за недействительного токена. Попробуйте использовать ссылку из письма еще раз или начните процесс заново."
|
1769
|
+
},
|
1770
|
+
"confirm_delete_check_box_message": {
|
1771
|
+
"other": "Я понимаю, что это действие является постоянным"
|
1760
1772
|
}
|
1761
1773
|
}
|
package/site/sr_SR.all.json
CHANGED
@@ -1682,7 +1682,7 @@
|
|
1682
1682
|
"other": "Потврдите брисање"
|
1683
1683
|
},
|
1684
1684
|
"confirm_delete_message": {
|
1685
|
-
"other": "
|
1685
|
+
"other": "Одмах ћете изгубити приступ било ком садржају који сте купили."
|
1686
1686
|
},
|
1687
1687
|
"confirm_delete_success_page_header": {
|
1688
1688
|
"other": "Налог је избрисан!"
|
@@ -1719,5 +1719,17 @@
|
|
1719
1719
|
},
|
1720
1720
|
"account_form_account_delete_successful": {
|
1721
1721
|
"other": "Захтев за брисање је успео"
|
1722
|
+
},
|
1723
|
+
"confirm_delete_user_email": {
|
1724
|
+
"other": "Налог који се брише:"
|
1725
|
+
},
|
1726
|
+
"confirm_delete_is_permanent": {
|
1727
|
+
"other": "Ова радња је трајна и не може се опозвати."
|
1728
|
+
},
|
1729
|
+
"confirm_delete_error_invalid_token": {
|
1730
|
+
"other": "Није могуће избрисати налог због неважећег токена. Покушајте поново са везом из е-поште или почните овај процес изнова."
|
1731
|
+
},
|
1732
|
+
"confirm_delete_check_box_message": {
|
1733
|
+
"other": "Разумем да је ова акција трајна"
|
1722
1734
|
}
|
1723
1735
|
}
|
package/site/static/js/main.js
CHANGED
@@ -446,9 +446,11 @@ function initSearch() {
|
|
446
446
|
|
447
447
|
function initScroll() {
|
448
448
|
let nav = document.querySelector('.navbar-toggler');
|
449
|
-
|
450
|
-
|
451
|
-
|
449
|
+
if (nav) {
|
450
|
+
nav.addEventListener('click', () => {
|
451
|
+
toggleScroll();
|
452
|
+
});
|
453
|
+
}
|
452
454
|
}
|
453
455
|
|
454
456
|
function toggleScroll() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../js/modernizr-custom.js","../js/can-be-watched-button.component.js","../js/external-purchase-button.component.js","../js/main.js"],"sourcesContent":["/*! modernizr 3.6.0 (Custom Build) | MIT *\n * https://modernizr.com/download/?-smil-setclasses !*/\n!function(e,n,s){function o(e,n){return typeof e===n}function a(){var e,n,s,a,t,r,f;for(var c in l)if(l.hasOwnProperty(c)){if(e=[],n=l[c],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(s=0;s<n.options.aliases.length;s++)e.push(n.options.aliases[s].toLowerCase());for(a=o(n.fn,\"function\")?n.fn():n.fn,t=0;t<e.length;t++)r=e[t],f=r.split(\".\"),1===f.length?Modernizr[f[0]]=a:(!Modernizr[f[0]]||Modernizr[f[0]]instanceof Boolean||(Modernizr[f[0]]=new Boolean(Modernizr[f[0]])),Modernizr[f[0]][f[1]]=a),i.push((a?\"\":\"no-\")+f.join(\"-\"))}}function t(e){var n=f.className,s=Modernizr._config.classPrefix||\"\";if(c&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp(\"(^|\\\\s)\"+s+\"no-js(\\\\s|$)\");n=n.replace(o,\"$1\"+s+\"js$2\")}Modernizr._config.enableClasses&&(n+=\" \"+s+e.join(\" \"+s),c?f.className.baseVal=n:f.className=n)}var i=[],l=[],r={_version:\"3.6.0\",_config:{classPrefix:\"\",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var s=this;setTimeout(function(){n(s[e])},0)},addTest:function(e,n,s){l.push({name:e,fn:n,options:s})},addAsyncTest:function(e){l.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=r,Modernizr=new Modernizr;var f=n.documentElement,c=\"svg\"===f.nodeName.toLowerCase(),u={}.toString;Modernizr.addTest(\"smil\",function(){return!!n.createElementNS&&/SVGAnimate/.test(u.call(n.createElementNS(\"http://www.w3.org/2000/svg\",\"animate\")))}),a(),t(i),delete r.addTest,delete r.addAsyncTest;for(var d=0;d<Modernizr._q.length;d++)Modernizr._q[d]();e.Modernizr=Modernizr}(window,document);","import { utils } from 's72';\nimport { AppComponent, bindAllComponents, render, h, attrs, getComponentElement } from 's72.ui';\n\nexport default class CanBeWatchedButton extends AppComponent {\n constructor(props, context) {\n super(props, context);\n this.state = { loaded: false };\n }\n\n componentDidMount() {\n this.updateState();\n this.app.messagebus.subscribe('user-signed-in', () => this.updateState());\n this.app.messagebus.subscribe('user-signed-out', () => this.updateState());\n this.app.messagebus.subscribe('shopping-session-completed', session =>\n this.shoppingSessionCompleted(session)\n );\n }\n\n componentWillUnmount() {\n this.app.messagebus.unsubscribe('shopping-session-completed', () => this.updateState());\n }\n\n updateState() {\n if (this.props.slug && this.app.shoppingService.isValidType(this.props.slug)) {\n return this.loadAvailability(this.props.slug)\n .then(() => {\n return this.setState({ loaded: true });\n }, utils.noop)\n .then(() => {\n let e = getComponentElement(this);\n e.classList.toggle('s72-show', this.state.loaded && this.state.isOwned);\n }, utils.noop);\n }\n }\n\n shoppingSessionCompleted(session) {\n if (session.data.slug != this.props.slug) {\n return;\n }\n this.updateState();\n }\n\n loadAvailability(slug) {\n if (utils.slugs.detect(slug) === utils.slugs.TYPE.FILM) {\n return this.app.availabilityService.getAvailability(slug).then(a => {\n this.setState({ isOwned: a && a.canBeWatched });\n });\n }\n return;\n }\n\n openLink(event, url) {\n event.preventDefault();\n if (url.length == 0) return;\n window.open(url);\n }\n\n render(props, state) {\n if (!state.loaded || !state.isOwned || props.url == '' || props.label == '') return;\n return (\n state.loaded &&\n state.isOwned && (\n <button\n class=\"s72-btn s72-btn-can-be-watched\"\n onClick={e => {\n this.openLink(e, props.url);\n }}\n >\n <span class=\"padder\" />\n <span class=\"verb watch s72-btn-can-be-watched-label\">{props.label}</span>\n </button>\n )\n );\n }\n}\n\nbindAllComponents('can-be-watched-button', elements => {\n return elements.map(e => render(h(CanBeWatchedButton, attrs(e)), e));\n});\n","import { utils } from 's72';\nimport { AppComponent, bindAllComponents, render, h, attrs, getComponentElement } from 's72.ui';\n\nexport default class ExternalPurchaseButton extends AppComponent {\n constructor(props, context) {\n super(props, context);\n this.state = { loaded: false };\n }\n\n componentDidMount() {\n this.updateState();\n this.app.messagebus.subscribe('user-signed-in', () => this.updateState());\n this.app.messagebus.subscribe('user-signed-out', () => this.updateState());\n this.app.messagebus.subscribe('shopping-session-completed', session =>\n this.shoppingSessionCompleted(session)\n );\n }\n\n componentWillUnmount() {\n this.app.messagebus.unsubscribe('shopping-session-completed', () => this.updateState());\n }\n\n updateState() {\n if (this.props.slug && this.app.shoppingService.isValidType(this.props.slug)) {\n return this.loadAvailability(this.props.slug)\n .then(() => {\n return this.setState({ loaded: true });\n }, utils.noop)\n .then(() => {\n let e = getComponentElement(this);\n e.classList.toggle('s72-show', this.shouldBeVisible);\n }, utils.noop);\n }\n }\n\n get shouldBeVisible() {\n return this.state.loaded && !this.state.isOwned;\n }\n\n shoppingSessionCompleted(session) {\n if (session.data.slug != this.props.slug) {\n return;\n }\n this.updateState();\n }\n\n loadAvailability(slug) {\n if (utils.slugs.detect(slug) === utils.slugs.TYPE.FILM) {\n return this.app.availabilityService.getAvailability(slug).then(a => {\n this.setState({ isOwned: a && a.canBeWatched });\n });\n }\n }\n \n render(props) {\n if (!this.shouldBeVisible || props.url == '' || props.label == '') return null;\n return (\n <button\n type=\"button\"\n class=\"s72-btn s72-btn-purchase s72-btn-external-purchase\"\n onClick={e => {\n e.preventDefault();\n if (props.url) {\n window.location.href = props.url;\n }\n }}\n >\n <span class=\"verb\">{props.label}</span>\n </button>\n );\n }\n}\n\nbindAllComponents('external-purchase-button', elements => {\n return elements.map(e => render(h(ExternalPurchaseButton, attrs(e)), e));\n});\n","import './modernizr-custom.js';\nimport './can-be-watched-button.component.js';\nimport './external-purchase-button.component.js';\n\n/*global Swiper, Modernizr, s72*/\n\nlet slideObservers = [];\n\nfunction initializeWishlist() {\n let wishlist = document.querySelector('s72-userwishlist');\n if (!wishlist) return;\n let originalFunction = wishlist.classList.remove;\n wishlist.classList.remove = function (className) {\n if (className == 's72-hide') {\n // Hide this from view\n wishlist.style.opacity = '0';\n\n // Remove class\n originalFunction.apply(this, [className]);\n\n /* Convert this to a swiper */\n let containers = wishlist.getElementsByClassName('swiper-container');\n if (containers.length > 0) {\n let container = containers[0];\n let swiper = initializeSwiper(container, true);\n\n init(swiper);\n toggleButtons(container);\n }\n\n // Now show it\n wishlist.style.opacity = '1';\n } else {\n originalFunction.apply(this, [className]);\n }\n };\n}\n\nfunction initializeSwiper(element, force) {\n if (element.swiper) {\n if (force) {\n element.swiper.destroy();\n } else {\n return;\n }\n }\n\n let isTouchscreen = isTouchscreenEnabled();\n\n let defaultSlidesPerView = 8;\n let slidesPerView = {\n 320: 2,\n 568: 2,\n 667: 2,\n 768: 4,\n 992: 4,\n 1200: 4,\n 1440: 6,\n 1600: 6,\n };\n\n // Override some slider values specific sizes. Could potentially expand this for portrait vs. landscapes\n if (element.getAttribute('data-items-per-row')) {\n let itemsPerRow = element.getAttribute('data-items-per-row');\n let layout = element.getAttribute('data-layout');\n\n if (layout == 'portrait') {\n switch (itemsPerRow) {\n case '6':\n defaultSlidesPerView = 8;\n slidesPerView[1600] = 6;\n slidesPerView[1440] = 6;\n slidesPerView[1200] = 5;\n slidesPerView[992] = 4;\n slidesPerView[768] = 4;\n slidesPerView[667] = 3;\n slidesPerView[568] = 3;\n break;\n\n case '4':\n defaultSlidesPerView = 6;\n slidesPerView[1600] = 5;\n slidesPerView[1440] = 5;\n slidesPerView[1200] = 4;\n slidesPerView[992] = 3;\n slidesPerView[768] = 3;\n slidesPerView[667] = 3;\n slidesPerView[568] = 2;\n break;\n }\n } else if (layout == 'landscape') {\n switch (itemsPerRow) {\n case '4':\n defaultSlidesPerView = 5;\n slidesPerView[1600] = 4;\n slidesPerView[1440] = 4;\n slidesPerView[1200] = 3;\n slidesPerView[992] = 3;\n slidesPerView[768] = 3;\n slidesPerView[568] = 2;\n break;\n\n case '3':\n defaultSlidesPerView = 4;\n slidesPerView[1600] = 3;\n slidesPerView[1440] = 3;\n slidesPerView[1200] = 3;\n slidesPerView[992] = 2;\n slidesPerView[768] = 2;\n slidesPerView[568] = 2;\n break;\n }\n }\n }\n\n let swiper = new Swiper(element, {\n init: false,\n slidesPerView: defaultSlidesPerView,\n spaceBetween: 1,\n slidesPerGroup: 1, // leave this for infinite scrollings\n speed: 600,\n watchSlidesVisibility: true,\n\n breakpoints: {\n // when window width is <= 320px\n 319: {\n slidesPerView: slidesPerView[320],\n spaceBetween: 2,\n slidesPerGroup: 1,\n slidesOffsetBefore: 20,\n slidesOffsetAfter: 20,\n },\n // when window width is <= 480px\n 567: {\n slidesPerView: slidesPerView[568],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[568] : 1,\n slidesOffsetBefore: 20,\n slidesOffsetAfter: 20,\n },\n // when window width is <= 640px\n 666: {\n slidesPerView: slidesPerView[667],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[667] : 1,\n },\n 767: {\n slidesPerView: slidesPerView[768],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[768] : 1,\n },\n 991: {\n slidesPerView: slidesPerView[992],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[992] : 1,\n },\n 1199: {\n slidesPerView: slidesPerView[1200],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[1200] : 1,\n },\n 1439: {\n slidesPerView: slidesPerView[1440],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[1440] : 1,\n },\n 1599: {\n slidesPerView: slidesPerView[1600],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[1600] : 1,\n },\n },\n pagination: {\n el: '.swiper-pagination',\n clickable: true,\n },\n on: {\n init() {\n element.dispatchEvent(new Event('init'));\n },\n slideChangeTransitionEnd() {\n addAndRemoveSlides(element.swiper, true, true);\n toggleButtons(element);\n },\n },\n });\n\n element.buttons = {};\n\n initButton(\n element,\n element.closest('.swiper-wrapper-container').querySelector('.swiper-button-next'),\n 1\n );\n initButton(\n element,\n element.closest('.swiper-wrapper-container').querySelector('.swiper-button-prev'),\n -1\n );\n\n return swiper;\n}\n\nfunction disableButton(button) {\n button.classList.add('swiper-button-disabled');\n}\n\nfunction enableButton(button) {\n button.classList.remove('swiper-button-disabled');\n}\n\nfunction toggleButtons(slider) {\n let currentIndex = slider.swiper.activeIndex;\n let slidesToTheLeft = currentIndex;\n let slidesPerView = slider.swiper.params.slidesPerView;\n let slidesLength = slider.swiper.slides.length;\n let lastVisibleIndex = currentIndex + slidesPerView;\n let slidesToTheRight = slidesLength - lastVisibleIndex;\n\n if (slidesToTheLeft == 0) {\n disableButton(slider.buttons.prev);\n } else {\n enableButton(slider.buttons.prev);\n }\n\n if (slidesToTheRight <= 0) {\n disableButton(slider.buttons.next);\n } else {\n enableButton(slider.buttons.next);\n }\n}\n\nfunction initButton(slider, button, velocity) {\n if (button) {\n button.classList.remove('s72-hide');\n // Clone the button so any pre-existing listeners are destroyed\n let buttonClone = button.cloneNode(true);\n button.parentNode.replaceChild(buttonClone, button);\n\n buttonClone.addEventListener('click', e => {\n e.preventDefault();\n if (velocity > 0) {\n addAndRemoveSlides(slider.swiper, true, false);\n } else {\n addAndRemoveSlides(slider.swiper, false, true);\n }\n slider.swiper.slideToLoop(\n slider.swiper.realIndex + slider.swiper.params.slidesPerView * velocity\n );\n });\n\n let direction = velocity > 0 ? 'next' : 'prev';\n slider.buttons[direction] = buttonClone;\n }\n}\n\nfunction getMatchingDuplicatedSlides(slider, link) {\n let result = [];\n\n if (!slider.destroyed) {\n Array.from(slider.el.querySelectorAll('.swiper-slide')).forEach(slide => {\n if (!slide.classList.contains('base')) {\n let thisLink = slide.querySelector('a.meta-item-link').getAttribute('href');\n if (link === thisLink) result.push(slide);\n }\n });\n }\n\n return result;\n}\n\nfunction init(slider) {\n slider.init();\n\n // Set up a mutation observer against each base slide, as it'll get redrawn as the components get rendered\n for (let x = 0; x < slider.slides.length; x++) {\n let slide = slider.slides[x];\n\n slide.classList.add('base');\n\n if (infiniteScrollEnabled(slider)) {\n let config = { subtree: true, childList: true };\n\n let observer = new MutationObserver(mutations => {\n for (let y = 0; y < mutations.length; y++) {\n let mutationRecord = mutations[y];\n\n // var href = mutationRecord.target.closest('a.meta-item-link').getAttribute('href');\n let thisSlide = mutationRecord.target.closest('.swiper-slide');\n if (thisSlide) {\n let thisLink = thisSlide.querySelector('a.meta-item-link').getAttribute('href');\n\n let duplicatedSlides = getMatchingDuplicatedSlides(slider, thisLink);\n\n Array.from(duplicatedSlides).forEach(dupe => {\n dupe.innerHTML = thisSlide.innerHTML;\n });\n }\n }\n });\n\n observer.observe(slide, config);\n\n slideObservers.push(observer);\n }\n }\n\n addAndRemoveSlides(slider);\n\n return true;\n}\n\nfunction infiniteScrollEnabled(slider) {\n if (!Modernizr.smil) return false; // i.e. is this IE11\n\n if (isTouchscreenEnabled()) return false; // i.e. is this a touchscreen device?\n\n let el = slider.el;\n\n if (el.getAttribute('disable-infinite-scroll') !== null) {\n return false;\n }\n\n let prev = el.buttons.prev;\n let next = el.buttons.next;\n\n // Only infinite scroll on desktop (i.e. when the next/prev buttons are visible)\n let buttonsVisible = (prev && prev.offsetHeight > 0) || (next && next.offsetHeight > 0);\n\n let screens = slider.slides.length / slider.params.slidesPerView;\n\n return buttonsVisible && screens > 1;\n}\n\nfunction addAndRemoveSlides(slider, append, prepend) {\n // This is a no-go\n if (!infiniteScrollEnabled(slider)) return;\n\n // Just in case something's gone horribly wrong\n if (slider.slides.length > 100) {\n return;\n }\n\n if (append) {\n let lastVisibleIndex = slider.activeIndex + slider.params.slidesPerView;\n let slidesToTheRight = slider.slides.length - lastVisibleIndex;\n\n if (slidesToTheRight <= slider.params.slidesPerView) {\n appendBaseSlides(slider);\n }\n }\n\n if (prepend) {\n if (slider.activeIndex <= slider.params.slidesPerView) {\n prependBaseSlides(slider);\n }\n }\n}\n\nfunction getBaseSlides(slider) {\n let result = Array.from(slider.el.querySelectorAll('.swiper-slide.base')).map(node => {\n return node.cloneNode(true);\n });\n\n Array.from(result).forEach(slide => {\n slide.classList.remove(\n 'base',\n 'swiper-slide-visible',\n 'swiper-slide-active',\n 'swiper-slide-next',\n 'swiper-slide-prev'\n );\n });\n\n return result;\n}\n\nfunction appendBaseSlides(slider) {\n let baseSlides = getBaseSlides(slider).slice(0);\n slider.appendSlide(baseSlides);\n\n cullSlides(slider, 1);\n}\n\nfunction prependBaseSlides(slider) {\n // var baseSlides = getBaseSlides(slider).reverse().slice(0);\n let baseSlides = getBaseSlides(slider).reverse().slice(0);\n\n let currentIndex = slider.activeIndex;\n\n for (let i = 0; i < baseSlides.length; i++) {\n slider.prependSlide(baseSlides[i]);\n }\n slider.slideTo(currentIndex + baseSlides.length, 0);\n\n cullSlides(slider, -1);\n}\n\n// Get rid of the oldest N slides to the left of current\nfunction cullSlides(slider, direction) {\n let baseSlides = getBaseSlides(slider);\n\n let indices = [];\n for (let index = 0; index < slider.slides.length; index++) {\n let slide = slider.slides[index];\n if (direction > 0) {\n if (index < slider.activeIndex && !slide.classList.contains('base')) {\n indices.push(index);\n }\n } else if (index > slider.activeIndex && !slide.classList.contains('base')) {\n indices.push(index);\n }\n }\n\n if (indices.length > baseSlides.length) {\n let toCullIndices = [];\n if (direction > 0) {\n toCullIndices = indices.slice(0, baseSlides.length);\n } else {\n toCullIndices = indices.reverse().slice(0, baseSlides.length).reverse();\n }\n\n slider.removeSlide(toCullIndices.reverse());\n }\n}\n\nfunction initSearch() {\n let searchButton = document.querySelector('.btn-search-open');\n let searchForm = document.querySelector('.form-control-search');\n\n let openSearch = function () {\n document.querySelector('.form-control-search').focus();\n document.querySelector('.navbar-nav-search').classList.add('search-show');\n document.querySelector('.navbar-nav-search').classList.remove('search-hidden');\n };\n\n let closeSearch = function () {\n document.querySelector('.navbar-nav-search').classList.remove('search-show');\n document.querySelector('.navbar-nav-search').classList.add('search-hidden');\n };\n\n searchButton.addEventListener('click', openSearch, false);\n searchForm.addEventListener('focusin', openSearch, false);\n searchForm.addEventListener('focusout', closeSearch, false);\n}\n\nfunction initScroll() {\n let nav = document.querySelector('.navbar-toggler');\n nav.addEventListener('click', () => {\n toggleScroll();\n });\n}\n\nfunction toggleScroll() {\n let body = document.querySelector('body');\n if (!body.classList.contains('no-scroll')) {\n body.classList.add('no-scroll');\n } else {\n body.classList.remove('no-scroll');\n }\n}\n\nfunction documentReady(app) {\n initializeWishlist();\n\n app.classificationsService.load('/classifications.all.json');\n app.urlMapService.load('/urlmap.json');\n\n detectTouchscreen();\n\n let swipers = document.getElementsByClassName('swiper-container');\n for (let i = 0; i < swipers.length; i++) {\n let el = swipers[i];\n if (el.getAttribute('is-wishlist') == undefined) {\n let swiper = initializeSwiper(el, false);\n init(swiper);\n\n toggleButtons(el);\n }\n }\n\n document.querySelectorAll('.s72-btn-trailer:not(.s72-btn-play)').forEach(btn => {\n btn.addEventListener('click', e => {\n e.preventDefault();\n e.stopPropagation();\n });\n });\n\n document.querySelectorAll('.navbar-nav').forEach(nav => {\n nav.classList.remove('s72-hide');\n });\n\n if (document.querySelector('.navbar-nav-search')) {\n initSearch();\n }\n initScroll();\n}\n\nfunction detectTouchscreen() {\n let touchEnabled = s72.utils.device.isTouchEnabled();\n document.querySelector('html').setAttribute('is-touchscreen', touchEnabled);\n}\n\nfunction isTouchscreenEnabled() {\n return document.querySelector('html').getAttribute('is-touchscreen') === 'true';\n}\ndocument.addEventListener('s72loaded', event => {\n let app = event.detail.app;\n documentReady(app);\n});\n"],"names":["super","this","utils","let","getComponentElement","AppComponent","bindAllComponents","render","h","attrs","y"],"mappings":";;;EAAA;EACA;EACA,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAA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;EACP,GAAG,CAAC,CAAC;AACL;EACA,EAAE,QAAQ,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,UAAA,GAAA,EAAO;EAC1D,IAAI,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;EACrC,GAAG,CAAC,CAAC;AACL;EACA,EAAE,IAAI,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC,EAAE;EACpD,IAAI,UAAU,EAAE,CAAC;EACjB,GAAG;EACH,EAAE,UAAU,EAAE,CAAC;EACf,CAAC;AACD;EACA,SAAS,iBAAiB,GAAG;EAC7B,EAAEA,IAAI,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;EACvD,EAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;EAC9E,CAAC;AACD;EACA,SAAS,oBAAoB,GAAG;EAChC,EAAE,OAAO,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,gBAAgB,CAAC,KAAK,MAAM,CAAC;EAClF,CAAC;EACD,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAA,UAAE,OAAS;EAChD,EAAEA,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;EAC7B,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;EACrB,CAAC,CAAC;;;;;;"}
|
1
|
+
{"version":3,"file":"main.js","sources":["../js/modernizr-custom.js","../js/can-be-watched-button.component.js","../js/external-purchase-button.component.js","../js/main.js"],"sourcesContent":["/*! modernizr 3.6.0 (Custom Build) | MIT *\n * https://modernizr.com/download/?-smil-setclasses !*/\n!function(e,n,s){function o(e,n){return typeof e===n}function a(){var e,n,s,a,t,r,f;for(var c in l)if(l.hasOwnProperty(c)){if(e=[],n=l[c],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(s=0;s<n.options.aliases.length;s++)e.push(n.options.aliases[s].toLowerCase());for(a=o(n.fn,\"function\")?n.fn():n.fn,t=0;t<e.length;t++)r=e[t],f=r.split(\".\"),1===f.length?Modernizr[f[0]]=a:(!Modernizr[f[0]]||Modernizr[f[0]]instanceof Boolean||(Modernizr[f[0]]=new Boolean(Modernizr[f[0]])),Modernizr[f[0]][f[1]]=a),i.push((a?\"\":\"no-\")+f.join(\"-\"))}}function t(e){var n=f.className,s=Modernizr._config.classPrefix||\"\";if(c&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp(\"(^|\\\\s)\"+s+\"no-js(\\\\s|$)\");n=n.replace(o,\"$1\"+s+\"js$2\")}Modernizr._config.enableClasses&&(n+=\" \"+s+e.join(\" \"+s),c?f.className.baseVal=n:f.className=n)}var i=[],l=[],r={_version:\"3.6.0\",_config:{classPrefix:\"\",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var s=this;setTimeout(function(){n(s[e])},0)},addTest:function(e,n,s){l.push({name:e,fn:n,options:s})},addAsyncTest:function(e){l.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=r,Modernizr=new Modernizr;var f=n.documentElement,c=\"svg\"===f.nodeName.toLowerCase(),u={}.toString;Modernizr.addTest(\"smil\",function(){return!!n.createElementNS&&/SVGAnimate/.test(u.call(n.createElementNS(\"http://www.w3.org/2000/svg\",\"animate\")))}),a(),t(i),delete r.addTest,delete r.addAsyncTest;for(var d=0;d<Modernizr._q.length;d++)Modernizr._q[d]();e.Modernizr=Modernizr}(window,document);","import { utils } from 's72';\nimport { AppComponent, bindAllComponents, render, h, attrs, getComponentElement } from 's72.ui';\n\nexport default class CanBeWatchedButton extends AppComponent {\n constructor(props, context) {\n super(props, context);\n this.state = { loaded: false };\n }\n\n componentDidMount() {\n this.updateState();\n this.app.messagebus.subscribe('user-signed-in', () => this.updateState());\n this.app.messagebus.subscribe('user-signed-out', () => this.updateState());\n this.app.messagebus.subscribe('shopping-session-completed', session =>\n this.shoppingSessionCompleted(session)\n );\n }\n\n componentWillUnmount() {\n this.app.messagebus.unsubscribe('shopping-session-completed', () => this.updateState());\n }\n\n updateState() {\n if (this.props.slug && this.app.shoppingService.isValidType(this.props.slug)) {\n return this.loadAvailability(this.props.slug)\n .then(() => {\n return this.setState({ loaded: true });\n }, utils.noop)\n .then(() => {\n let e = getComponentElement(this);\n e.classList.toggle('s72-show', this.state.loaded && this.state.isOwned);\n }, utils.noop);\n }\n }\n\n shoppingSessionCompleted(session) {\n if (session.data.slug != this.props.slug) {\n return;\n }\n this.updateState();\n }\n\n loadAvailability(slug) {\n if (utils.slugs.detect(slug) === utils.slugs.TYPE.FILM) {\n return this.app.availabilityService.getAvailability(slug).then(a => {\n this.setState({ isOwned: a && a.canBeWatched });\n });\n }\n return;\n }\n\n openLink(event, url) {\n event.preventDefault();\n if (url.length == 0) return;\n window.open(url);\n }\n\n render(props, state) {\n if (!state.loaded || !state.isOwned || props.url == '' || props.label == '') return;\n return (\n state.loaded &&\n state.isOwned && (\n <button\n class=\"s72-btn s72-btn-can-be-watched\"\n onClick={e => {\n this.openLink(e, props.url);\n }}\n >\n <span class=\"padder\" />\n <span class=\"verb watch s72-btn-can-be-watched-label\">{props.label}</span>\n </button>\n )\n );\n }\n}\n\nbindAllComponents('can-be-watched-button', elements => {\n return elements.map(e => render(h(CanBeWatchedButton, attrs(e)), e));\n});\n","import { utils } from 's72';\nimport { AppComponent, bindAllComponents, render, h, attrs, getComponentElement } from 's72.ui';\n\nexport default class ExternalPurchaseButton extends AppComponent {\n constructor(props, context) {\n super(props, context);\n this.state = { loaded: false };\n }\n\n componentDidMount() {\n this.updateState();\n this.app.messagebus.subscribe('user-signed-in', () => this.updateState());\n this.app.messagebus.subscribe('user-signed-out', () => this.updateState());\n this.app.messagebus.subscribe('shopping-session-completed', session =>\n this.shoppingSessionCompleted(session)\n );\n }\n\n componentWillUnmount() {\n this.app.messagebus.unsubscribe('shopping-session-completed', () => this.updateState());\n }\n\n updateState() {\n if (this.props.slug && this.app.shoppingService.isValidType(this.props.slug)) {\n return this.loadAvailability(this.props.slug)\n .then(() => {\n return this.setState({ loaded: true });\n }, utils.noop)\n .then(() => {\n let e = getComponentElement(this);\n e.classList.toggle('s72-show', this.shouldBeVisible);\n }, utils.noop);\n }\n }\n\n get shouldBeVisible() {\n return this.state.loaded && !this.state.isOwned;\n }\n\n shoppingSessionCompleted(session) {\n if (session.data.slug != this.props.slug) {\n return;\n }\n this.updateState();\n }\n\n loadAvailability(slug) {\n if (utils.slugs.detect(slug) === utils.slugs.TYPE.FILM) {\n return this.app.availabilityService.getAvailability(slug).then(a => {\n this.setState({ isOwned: a && a.canBeWatched });\n });\n }\n }\n \n render(props) {\n if (!this.shouldBeVisible || props.url == '' || props.label == '') return null;\n return (\n <button\n type=\"button\"\n class=\"s72-btn s72-btn-purchase s72-btn-external-purchase\"\n onClick={e => {\n e.preventDefault();\n if (props.url) {\n window.location.href = props.url;\n }\n }}\n >\n <span class=\"verb\">{props.label}</span>\n </button>\n );\n }\n}\n\nbindAllComponents('external-purchase-button', elements => {\n return elements.map(e => render(h(ExternalPurchaseButton, attrs(e)), e));\n});\n","import './modernizr-custom.js';\nimport './can-be-watched-button.component.js';\nimport './external-purchase-button.component.js';\n\n/*global Swiper, Modernizr, s72*/\n\nlet slideObservers = [];\n\nfunction initializeWishlist() {\n let wishlist = document.querySelector('s72-userwishlist');\n if (!wishlist) return;\n let originalFunction = wishlist.classList.remove;\n wishlist.classList.remove = function (className) {\n if (className == 's72-hide') {\n // Hide this from view\n wishlist.style.opacity = '0';\n\n // Remove class\n originalFunction.apply(this, [className]);\n\n /* Convert this to a swiper */\n let containers = wishlist.getElementsByClassName('swiper-container');\n if (containers.length > 0) {\n let container = containers[0];\n let swiper = initializeSwiper(container, true);\n\n init(swiper);\n toggleButtons(container);\n }\n\n // Now show it\n wishlist.style.opacity = '1';\n } else {\n originalFunction.apply(this, [className]);\n }\n };\n}\n\nfunction initializeSwiper(element, force) {\n if (element.swiper) {\n if (force) {\n element.swiper.destroy();\n } else {\n return;\n }\n }\n\n let isTouchscreen = isTouchscreenEnabled();\n\n let defaultSlidesPerView = 8;\n let slidesPerView = {\n 320: 2,\n 568: 2,\n 667: 2,\n 768: 4,\n 992: 4,\n 1200: 4,\n 1440: 6,\n 1600: 6,\n };\n\n // Override some slider values specific sizes. Could potentially expand this for portrait vs. landscapes\n if (element.getAttribute('data-items-per-row')) {\n let itemsPerRow = element.getAttribute('data-items-per-row');\n let layout = element.getAttribute('data-layout');\n\n if (layout == 'portrait') {\n switch (itemsPerRow) {\n case '6':\n defaultSlidesPerView = 8;\n slidesPerView[1600] = 6;\n slidesPerView[1440] = 6;\n slidesPerView[1200] = 5;\n slidesPerView[992] = 4;\n slidesPerView[768] = 4;\n slidesPerView[667] = 3;\n slidesPerView[568] = 3;\n break;\n\n case '4':\n defaultSlidesPerView = 6;\n slidesPerView[1600] = 5;\n slidesPerView[1440] = 5;\n slidesPerView[1200] = 4;\n slidesPerView[992] = 3;\n slidesPerView[768] = 3;\n slidesPerView[667] = 3;\n slidesPerView[568] = 2;\n break;\n }\n } else if (layout == 'landscape') {\n switch (itemsPerRow) {\n case '4':\n defaultSlidesPerView = 5;\n slidesPerView[1600] = 4;\n slidesPerView[1440] = 4;\n slidesPerView[1200] = 3;\n slidesPerView[992] = 3;\n slidesPerView[768] = 3;\n slidesPerView[568] = 2;\n break;\n\n case '3':\n defaultSlidesPerView = 4;\n slidesPerView[1600] = 3;\n slidesPerView[1440] = 3;\n slidesPerView[1200] = 3;\n slidesPerView[992] = 2;\n slidesPerView[768] = 2;\n slidesPerView[568] = 2;\n break;\n }\n }\n }\n\n let swiper = new Swiper(element, {\n init: false,\n slidesPerView: defaultSlidesPerView,\n spaceBetween: 1,\n slidesPerGroup: 1, // leave this for infinite scrollings\n speed: 600,\n watchSlidesVisibility: true,\n\n breakpoints: {\n // when window width is <= 320px\n 319: {\n slidesPerView: slidesPerView[320],\n spaceBetween: 2,\n slidesPerGroup: 1,\n slidesOffsetBefore: 20,\n slidesOffsetAfter: 20,\n },\n // when window width is <= 480px\n 567: {\n slidesPerView: slidesPerView[568],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[568] : 1,\n slidesOffsetBefore: 20,\n slidesOffsetAfter: 20,\n },\n // when window width is <= 640px\n 666: {\n slidesPerView: slidesPerView[667],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[667] : 1,\n },\n 767: {\n slidesPerView: slidesPerView[768],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[768] : 1,\n },\n 991: {\n slidesPerView: slidesPerView[992],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[992] : 1,\n },\n 1199: {\n slidesPerView: slidesPerView[1200],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[1200] : 1,\n },\n 1439: {\n slidesPerView: slidesPerView[1440],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[1440] : 1,\n },\n 1599: {\n slidesPerView: slidesPerView[1600],\n spaceBetween: 2,\n slidesPerGroup: isTouchscreen ? slidesPerView[1600] : 1,\n },\n },\n pagination: {\n el: '.swiper-pagination',\n clickable: true,\n },\n on: {\n init() {\n element.dispatchEvent(new Event('init'));\n },\n slideChangeTransitionEnd() {\n addAndRemoveSlides(element.swiper, true, true);\n toggleButtons(element);\n },\n },\n });\n\n element.buttons = {};\n\n initButton(\n element,\n element.closest('.swiper-wrapper-container').querySelector('.swiper-button-next'),\n 1\n );\n initButton(\n element,\n element.closest('.swiper-wrapper-container').querySelector('.swiper-button-prev'),\n -1\n );\n\n return swiper;\n}\n\nfunction disableButton(button) {\n button.classList.add('swiper-button-disabled');\n}\n\nfunction enableButton(button) {\n button.classList.remove('swiper-button-disabled');\n}\n\nfunction toggleButtons(slider) {\n let currentIndex = slider.swiper.activeIndex;\n let slidesToTheLeft = currentIndex;\n let slidesPerView = slider.swiper.params.slidesPerView;\n let slidesLength = slider.swiper.slides.length;\n let lastVisibleIndex = currentIndex + slidesPerView;\n let slidesToTheRight = slidesLength - lastVisibleIndex;\n\n if (slidesToTheLeft == 0) {\n disableButton(slider.buttons.prev);\n } else {\n enableButton(slider.buttons.prev);\n }\n\n if (slidesToTheRight <= 0) {\n disableButton(slider.buttons.next);\n } else {\n enableButton(slider.buttons.next);\n }\n}\n\nfunction initButton(slider, button, velocity) {\n if (button) {\n button.classList.remove('s72-hide');\n // Clone the button so any pre-existing listeners are destroyed\n let buttonClone = button.cloneNode(true);\n button.parentNode.replaceChild(buttonClone, button);\n\n buttonClone.addEventListener('click', e => {\n e.preventDefault();\n if (velocity > 0) {\n addAndRemoveSlides(slider.swiper, true, false);\n } else {\n addAndRemoveSlides(slider.swiper, false, true);\n }\n slider.swiper.slideToLoop(\n slider.swiper.realIndex + slider.swiper.params.slidesPerView * velocity\n );\n });\n\n let direction = velocity > 0 ? 'next' : 'prev';\n slider.buttons[direction] = buttonClone;\n }\n}\n\nfunction getMatchingDuplicatedSlides(slider, link) {\n let result = [];\n\n if (!slider.destroyed) {\n Array.from(slider.el.querySelectorAll('.swiper-slide')).forEach(slide => {\n if (!slide.classList.contains('base')) {\n let thisLink = slide.querySelector('a.meta-item-link').getAttribute('href');\n if (link === thisLink) result.push(slide);\n }\n });\n }\n\n return result;\n}\n\nfunction init(slider) {\n slider.init();\n\n // Set up a mutation observer against each base slide, as it'll get redrawn as the components get rendered\n for (let x = 0; x < slider.slides.length; x++) {\n let slide = slider.slides[x];\n\n slide.classList.add('base');\n\n if (infiniteScrollEnabled(slider)) {\n let config = { subtree: true, childList: true };\n\n let observer = new MutationObserver(mutations => {\n for (let y = 0; y < mutations.length; y++) {\n let mutationRecord = mutations[y];\n\n // var href = mutationRecord.target.closest('a.meta-item-link').getAttribute('href');\n let thisSlide = mutationRecord.target.closest('.swiper-slide');\n if (thisSlide) {\n let thisLink = thisSlide.querySelector('a.meta-item-link').getAttribute('href');\n\n let duplicatedSlides = getMatchingDuplicatedSlides(slider, thisLink);\n\n Array.from(duplicatedSlides).forEach(dupe => {\n dupe.innerHTML = thisSlide.innerHTML;\n });\n }\n }\n });\n\n observer.observe(slide, config);\n\n slideObservers.push(observer);\n }\n }\n\n addAndRemoveSlides(slider);\n\n return true;\n}\n\nfunction infiniteScrollEnabled(slider) {\n if (!Modernizr.smil) return false; // i.e. is this IE11\n\n if (isTouchscreenEnabled()) return false; // i.e. is this a touchscreen device?\n\n let el = slider.el;\n\n if (el.getAttribute('disable-infinite-scroll') !== null) {\n return false;\n }\n\n let prev = el.buttons.prev;\n let next = el.buttons.next;\n\n // Only infinite scroll on desktop (i.e. when the next/prev buttons are visible)\n let buttonsVisible = (prev && prev.offsetHeight > 0) || (next && next.offsetHeight > 0);\n\n let screens = slider.slides.length / slider.params.slidesPerView;\n\n return buttonsVisible && screens > 1;\n}\n\nfunction addAndRemoveSlides(slider, append, prepend) {\n // This is a no-go\n if (!infiniteScrollEnabled(slider)) return;\n\n // Just in case something's gone horribly wrong\n if (slider.slides.length > 100) {\n return;\n }\n\n if (append) {\n let lastVisibleIndex = slider.activeIndex + slider.params.slidesPerView;\n let slidesToTheRight = slider.slides.length - lastVisibleIndex;\n\n if (slidesToTheRight <= slider.params.slidesPerView) {\n appendBaseSlides(slider);\n }\n }\n\n if (prepend) {\n if (slider.activeIndex <= slider.params.slidesPerView) {\n prependBaseSlides(slider);\n }\n }\n}\n\nfunction getBaseSlides(slider) {\n let result = Array.from(slider.el.querySelectorAll('.swiper-slide.base')).map(node => {\n return node.cloneNode(true);\n });\n\n Array.from(result).forEach(slide => {\n slide.classList.remove(\n 'base',\n 'swiper-slide-visible',\n 'swiper-slide-active',\n 'swiper-slide-next',\n 'swiper-slide-prev'\n );\n });\n\n return result;\n}\n\nfunction appendBaseSlides(slider) {\n let baseSlides = getBaseSlides(slider).slice(0);\n slider.appendSlide(baseSlides);\n\n cullSlides(slider, 1);\n}\n\nfunction prependBaseSlides(slider) {\n // var baseSlides = getBaseSlides(slider).reverse().slice(0);\n let baseSlides = getBaseSlides(slider).reverse().slice(0);\n\n let currentIndex = slider.activeIndex;\n\n for (let i = 0; i < baseSlides.length; i++) {\n slider.prependSlide(baseSlides[i]);\n }\n slider.slideTo(currentIndex + baseSlides.length, 0);\n\n cullSlides(slider, -1);\n}\n\n// Get rid of the oldest N slides to the left of current\nfunction cullSlides(slider, direction) {\n let baseSlides = getBaseSlides(slider);\n\n let indices = [];\n for (let index = 0; index < slider.slides.length; index++) {\n let slide = slider.slides[index];\n if (direction > 0) {\n if (index < slider.activeIndex && !slide.classList.contains('base')) {\n indices.push(index);\n }\n } else if (index > slider.activeIndex && !slide.classList.contains('base')) {\n indices.push(index);\n }\n }\n\n if (indices.length > baseSlides.length) {\n let toCullIndices = [];\n if (direction > 0) {\n toCullIndices = indices.slice(0, baseSlides.length);\n } else {\n toCullIndices = indices.reverse().slice(0, baseSlides.length).reverse();\n }\n\n slider.removeSlide(toCullIndices.reverse());\n }\n}\n\nfunction initSearch() {\n let searchButton = document.querySelector('.btn-search-open');\n let searchForm = document.querySelector('.form-control-search');\n\n let openSearch = function () {\n document.querySelector('.form-control-search').focus();\n document.querySelector('.navbar-nav-search').classList.add('search-show');\n document.querySelector('.navbar-nav-search').classList.remove('search-hidden');\n };\n\n let closeSearch = function () {\n document.querySelector('.navbar-nav-search').classList.remove('search-show');\n document.querySelector('.navbar-nav-search').classList.add('search-hidden');\n };\n\n searchButton.addEventListener('click', openSearch, false);\n searchForm.addEventListener('focusin', openSearch, false);\n searchForm.addEventListener('focusout', closeSearch, false);\n}\n\nfunction initScroll() {\n let nav = document.querySelector('.navbar-toggler');\n if (nav) {\n nav.addEventListener('click', () => {\n toggleScroll();\n });\n }\n}\n\nfunction toggleScroll() {\n let body = document.querySelector('body');\n if (!body.classList.contains('no-scroll')) {\n body.classList.add('no-scroll');\n } else {\n body.classList.remove('no-scroll');\n }\n}\n\nfunction documentReady(app) {\n initializeWishlist();\n\n app.classificationsService.load('/classifications.all.json');\n app.urlMapService.load('/urlmap.json');\n\n detectTouchscreen();\n\n let swipers = document.getElementsByClassName('swiper-container');\n for (let i = 0; i < swipers.length; i++) {\n let el = swipers[i];\n if (el.getAttribute('is-wishlist') == undefined) {\n let swiper = initializeSwiper(el, false);\n init(swiper);\n\n toggleButtons(el);\n }\n }\n\n document.querySelectorAll('.s72-btn-trailer:not(.s72-btn-play)').forEach(btn => {\n btn.addEventListener('click', e => {\n e.preventDefault();\n e.stopPropagation();\n });\n });\n\n document.querySelectorAll('.navbar-nav').forEach(nav => {\n nav.classList.remove('s72-hide');\n });\n\n if (document.querySelector('.navbar-nav-search')) {\n initSearch();\n }\n initScroll();\n}\n\nfunction detectTouchscreen() {\n let touchEnabled = s72.utils.device.isTouchEnabled();\n document.querySelector('html').setAttribute('is-touchscreen', touchEnabled);\n}\n\nfunction isTouchscreenEnabled() {\n return document.querySelector('html').getAttribute('is-touchscreen') === 'true';\n}\ndocument.addEventListener('s72loaded', event => {\n let app = event.detail.app;\n documentReady(app);\n});\n"],"names":["super","this","utils","let","getComponentElement","AppComponent","bindAllComponents","render","h","attrs","y"],"mappings":";;;EAAA;EACA;EACA,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,EAAA,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC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ACf,CAAC;AACD;EACA,SAAS,iBAAiB,GAAG;EAC7B,EAAEA,IAAI,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;EACvD,EAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;EAC9E,CAAC;AACD;EACA,SAAS,oBAAoB,GAAG;EAChC,EAAE,OAAO,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,gBAAgB,CAAC,KAAK,MAAM,CAAC;EAClF,CAAC;EACD,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAA,UAAE,OAAS;EAChD,EAAEA,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;EAC7B,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;EACrB,CAAC,CAAC;;;;;;"}
|
package/site/styles/_pages.scss
CHANGED
@@ -46,6 +46,7 @@
|
|
46
46
|
.plans-page,
|
47
47
|
.carousel-len-0,
|
48
48
|
.verify-email-page,
|
49
|
+
.delete-confirm-page,
|
49
50
|
.delete-result-page {
|
50
51
|
padding-top: var(--page-padding-top);
|
51
52
|
@include media-breakpoint-up(md) {
|
@@ -288,6 +289,7 @@
|
|
288
289
|
}
|
289
290
|
|
290
291
|
.verify-email-page,
|
292
|
+
.delete-confirm-page,
|
291
293
|
.delete-result-page {
|
292
294
|
@include media-breakpoint-up(xl) {
|
293
295
|
padding: var(--page-padding-top-lg) 0 0 0;
|
@@ -306,33 +308,11 @@
|
|
306
308
|
}
|
307
309
|
|
308
310
|
p {
|
309
|
-
|
310
|
-
}
|
311
|
-
}
|
312
|
-
}
|
313
|
-
|
314
|
-
.delete-confirm-page {
|
315
|
-
@include media-breakpoint-up(xl) {
|
316
|
-
padding: var(--page-padding-top-lg) 0 0 0;
|
317
|
-
}
|
318
|
-
|
319
|
-
.page-header {
|
320
|
-
h1 {
|
321
|
-
text-align: center;
|
322
|
-
}
|
323
|
-
}
|
324
|
-
|
325
|
-
.page-content {
|
326
|
-
padding: 0 20px;
|
327
|
-
@include media-breakpoint-up(lg) {
|
328
|
-
padding: 0 50px;
|
329
|
-
}
|
330
|
-
|
331
|
-
p {
|
311
|
+
width: auto;
|
332
312
|
max-width: 400px;
|
333
|
-
width: 100%;
|
334
313
|
text-align: center;
|
335
|
-
margin:
|
314
|
+
margin-left: auto;
|
315
|
+
margin-right: auto;
|
336
316
|
}
|
337
317
|
}
|
338
318
|
}
|
@@ -80,16 +80,15 @@
|
|
80
80
|
window.Shift72CheckoutOptions = {
|
81
81
|
baseUrl: window.location.origin,
|
82
82
|
{{if useLocalDevCheckout}}checkoutDevServerUrl: '{{checkoutDevServer}}',{{end}}
|
83
|
-
options: {
|
84
83
|
links: {
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
}
|
84
|
+
library: `${window.location.origin}{{routeToPath("/library.html")}}`,
|
85
|
+
termsAndConditions: `${window.location.origin}{{routeToPath("/page/terms-and-conditions/")}}`,
|
86
|
+
deviceCompatibility: `${window.location.origin}{{routeToPath("/page/help/")}}`,
|
87
|
+
help: `${window.location.origin}{{routeToPath("/page/help/")}}`,
|
88
|
+
signIn: `${window.location.origin}{{routeToPath("/signin.html")}}`,
|
89
|
+
signUp: `${window.location.origin}{{routeToPath("/signup.html")}}`,
|
90
|
+
},
|
91
|
+
lang: '{{lang.Code}}'
|
93
92
|
};
|
94
93
|
</script>
|
95
94
|
{{end}}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<script src="http://localhost:4072/s72.checkout.js" defer></script>
|
4
|
+
<script>
|
5
|
+
window.Shift72CheckoutOptions = {
|
6
|
+
baseUrl: window.location.origin,
|
7
|
+
checkoutDevServerUrl: 'http://localhost:4072',
|
8
|
+
options: {
|
9
|
+
links: {
|
10
|
+
library: `${window.location.origin}/library.html`,
|
11
|
+
termsAndConditions: `${window.location.origin}/page/terms-and-conditions/`,
|
12
|
+
deviceCompatibility: `${window.location.origin}/page/help/`,
|
13
|
+
help: `${window.location.origin}/page/help/`,
|
14
|
+
signIn: `${window.location.origin}/signin.html`,
|
15
|
+
signUp: `${window.location.origin}/signup.html`,
|
16
|
+
}
|
17
|
+
}
|
18
|
+
};
|
19
|
+
|
20
|
+
document.addEventListener('DOMContentLoaded', () => {
|
21
|
+
const handleFilmClick = async (event) => {
|
22
|
+
const { slug } = event.target.dataset;
|
23
|
+
|
24
|
+
if (!slug) {
|
25
|
+
throw new Error('No slug found.')
|
26
|
+
}
|
27
|
+
|
28
|
+
if (!(window.s72 && window.s72.checkout)) {
|
29
|
+
throw new Error('Shift72 Checkout: not available on this site!');
|
30
|
+
}
|
31
|
+
|
32
|
+
await window.s72.checkout.openModal({slug});
|
33
|
+
}
|
34
|
+
|
35
|
+
document.querySelectorAll('button[data-slug]').forEach((button) => {
|
36
|
+
button.addEventListener('click', handleFilmClick);
|
37
|
+
});
|
38
|
+
});
|
39
|
+
</script>
|
40
|
+
<style>
|
41
|
+
body {
|
42
|
+
background-color: #202123;
|
43
|
+
}
|
44
|
+
|
45
|
+
.grid {
|
46
|
+
display: flex;
|
47
|
+
flex-wrap: wrap;
|
48
|
+
gap: 16px;
|
49
|
+
justify-content: center;
|
50
|
+
margin-top: 64px;
|
51
|
+
}
|
52
|
+
|
53
|
+
.grid button {
|
54
|
+
width: 141px;
|
55
|
+
height: 211px;
|
56
|
+
flex: 0 0 auto;
|
57
|
+
border: none;
|
58
|
+
font-weight: 500;
|
59
|
+
}
|
60
|
+
|
61
|
+
.grid button:hover {
|
62
|
+
cursor: pointer;
|
63
|
+
filter: brightness(75%);
|
64
|
+
}
|
65
|
+
|
66
|
+
.grid button:nth-child(6n+1) { background-color: #f78a8a; }
|
67
|
+
.grid button:nth-child(6n+2) { background-color: #fbc28b; }
|
68
|
+
.grid button:nth-child(6n+3) { background-color: #fdfd86; }
|
69
|
+
.grid button:nth-child(6n+4) { background-color: #b9fbc0; }
|
70
|
+
.grid button:nth-child(6n+5) { background-color: #76d7ea; }
|
71
|
+
.grid button:nth-child(6n) { background-color: #85a3e0; }
|
72
|
+
</style>
|
73
|
+
</head>
|
74
|
+
<body>
|
75
|
+
<div class="grid">
|
76
|
+
<button data-slug="/film/2585">Spring</button>
|
77
|
+
<button data-slug="/film/3158">Rent SD only</button>
|
78
|
+
<button data-slug="/film/3152">Buy HD only</button>
|
79
|
+
<button data-slug="/film/3154">Buy + Rent - SD & HD</button>
|
80
|
+
<button data-slug="/film/3155">Buy + Rent - SD only</button>
|
81
|
+
<button data-slug="/film/3161">Free</button>
|
82
|
+
<button data-slug="/film/3153">less than 0.50</button>
|
83
|
+
<button data-slug="/film/3153">less than 0.50</button>
|
84
|
+
<button data-slug="/bundles/113">Bundle rent + buy</button>
|
85
|
+
<button data-slug="/film/3241">Sold out</button>
|
86
|
+
<button data-slug="/tv/26/season/1">TV Season</button>
|
87
|
+
<button data-slug="/film/3416">In presale</button>
|
88
|
+
<button data-slug="/film/3417">Geoblocked in NZ</button>
|
89
|
+
<button data-slug="/film/3418">Geoblocked in Australia</button>
|
90
|
+
<button data-slug="/film/3419">Item limit reached</button>
|
91
|
+
<button data-slug="/film/3420">No longer available</button>
|
92
|
+
<button data-slug="/film/3421">License schedule expired</button>
|
93
|
+
</div>
|
94
|
+
</body>
|
95
|
+
</html>
|
package/site/tr_TR.all.json
CHANGED
@@ -1666,7 +1666,7 @@
|
|
1666
1666
|
"other": "Silmeyi onayla"
|
1667
1667
|
},
|
1668
1668
|
"confirm_delete_message": {
|
1669
|
-
"other": "
|
1669
|
+
"other": "Satın aldığınız herhangi bir içeriğe erişiminizi anında kaybedeceksiniz."
|
1670
1670
|
},
|
1671
1671
|
"confirm_delete_success_page_header": {
|
1672
1672
|
"other": "Hesap Silindi!"
|
@@ -1703,5 +1703,17 @@
|
|
1703
1703
|
},
|
1704
1704
|
"account_form_account_delete_successful": {
|
1705
1705
|
"other": "Silme isteği başarılı"
|
1706
|
+
},
|
1707
|
+
"confirm_delete_user_email": {
|
1708
|
+
"other": "Silinmekte olan hesap:"
|
1709
|
+
},
|
1710
|
+
"confirm_delete_is_permanent": {
|
1711
|
+
"other": "Bu işlem kalıcıdır ve geri alınamaz."
|
1712
|
+
},
|
1713
|
+
"confirm_delete_error_invalid_token": {
|
1714
|
+
"other": "Geçersiz jeton nedeniyle hesap silinemiyor. E-postanızdaki bağlantıyı tekrar deneyin veya bu işleme baştan başlayın."
|
1715
|
+
},
|
1716
|
+
"confirm_delete_check_box_message": {
|
1717
|
+
"other": "Bu eylemin kalıcı olduğunu anlıyorum"
|
1706
1718
|
}
|
1707
1719
|
}
|
package/site/uk_UA.all.json
CHANGED
@@ -1726,7 +1726,7 @@
|
|
1726
1726
|
"other": "Підтвердити видалення"
|
1727
1727
|
},
|
1728
1728
|
"confirm_delete_message": {
|
1729
|
-
"other": "
|
1729
|
+
"other": "Ви негайно втратите доступ до будь-якого вмісту, який ви придбали."
|
1730
1730
|
},
|
1731
1731
|
"confirm_delete_success_page_header": {
|
1732
1732
|
"other": "Обліковий запис видалено!"
|
@@ -1763,5 +1763,17 @@
|
|
1763
1763
|
},
|
1764
1764
|
"account_form_account_delete_successful": {
|
1765
1765
|
"other": "Запит на видалення успішно"
|
1766
|
+
},
|
1767
|
+
"confirm_delete_user_email": {
|
1768
|
+
"other": "Акаунт, який видаляється:"
|
1769
|
+
},
|
1770
|
+
"confirm_delete_is_permanent": {
|
1771
|
+
"other": "Ця дія є постійною та не може бути скасована."
|
1772
|
+
},
|
1773
|
+
"confirm_delete_error_invalid_token": {
|
1774
|
+
"other": "Неможливо видалити обліковий запис через недійсний маркер. Спробуйте ще раз перейти за посиланням із електронної пошти або почніть цей процес спочатку."
|
1775
|
+
},
|
1776
|
+
"confirm_delete_check_box_message": {
|
1777
|
+
"other": "Я розумію, що ця дія є постійною"
|
1766
1778
|
}
|
1767
1779
|
}
|