@ampproject/amp-date-countdown
Advanced tools
Comparing version 1.2108052321.0 to 1.2108052321.1
; | ||
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};__export(exports,{DateCountdown:function(){return DateCountdown}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}var compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,u=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,s=e.contentRef,p=e.contentStyle,f=e.layout,y=void 0!==f&&f,_=e.paint,d=void 0!==_&&_,b=e.size,O=void 0!==b&&b,m=e.style,S=e.wrapperClassName,g=e.wrapperStyle,h=(O?4:0)+(y?2:0)+(d?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:t,className:"".concat(a||""," ").concat(S||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},m),g),{},{contain:CONTAIN[h]})}),createElement2(u,_objectSpread(_objectSpread({},l),{},{ref:s,className:c,style:_objectSpread(_objectSpread({},O&&SIZE_CONTENT_STYLE),{},{"overflow":d?"hidden":"visible"},p)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys2(Object(r),!0).forEach((function(t){_defineProperty2(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys2(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties2(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose2(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,u=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:t,className:"".concat(a||""," ").concat(u||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function useRenderer(e,t){var r=_slicedToArray(useState2(null),2),n=r[0],o=r[1];return useLayoutEffect2((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function dict(e){return e||{}}function isString(e){return"string"==typeof e}function parseDate(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function getDate(e){return e?"number"==typeof e?e:isString(e)?parseDate(e):(e=e).getTime():null}function getLocaleStrings(e){return LOCALE_WORD[e]}var _MAP,LOCALE_WORD={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function _defineProperty3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var context,Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty3(_MAP={},Loading.AUTO,0),_defineProperty3(_MAP,Loading.LAZY,1),_defineProperty3(_MAP,Loading.EAGER,2),_defineProperty3(_MAP,Loading.UNLOAD,3),_MAP);function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useResourcesNotify(){var e=useAmpContext().notify;useLayoutEffect2((function(){e&&e()}))}var _excluded3=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function ownKeys3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys3(Object(r),!0).forEach((function(t){_defineProperty4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _slicedToArray2(e,t){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,t)||_unsupportedIterableToArray2(e,t)||_nonIterableRest2()}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray2(e,t):void 0}}function _arrayLikeToArray2(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit2(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties3(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose3(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var NAME="DateCountdown",MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,MILLISECONDS_IN_SECOND=1e3,DELAY=1e3,TimeUnit={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},DEFAULT_LOCALE="en",DEFAULT_WHEN_ENDED="stop",DEFAULT_BIGGEST_UNIT="DAYS",DEFAULT_COUNT_UP=!1,DEFAULT_RENDER=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function DateCountdown(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?DEFAULT_WHEN_ENDED:r,o=e.locale,a=void 0===o?DEFAULT_LOCALE:o,i=e.biggestUnit,u=void 0===i?DEFAULT_BIGGEST_UNIT:i,c=e.countUp,l=void 0===c?DEFAULT_COUNT_UP:c,s=e.render,p=void 0===s?DEFAULT_RENDER:s,f=_objectWithoutProperties3(e,_excluded3);useResourcesNotify();var y=useAmpContext().playable,_=useMemo2((function(){return getDate(t)}),[t]),d=useMemo2((function(){return getLocaleWord(a)}),[a]),b=_slicedToArray2(useState2(_-Date.now()+DELAY),2),O=b[0],m=b[1],S=useMemo2((function(){return getDataForTemplate(O,u,d,l)}),[O,u,d,l]),g=useRef2(null);useEffect2((function(){if(y&&g.current){var e=g.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=_-Date.now()+DELAY;m(r),n===DEFAULT_WHEN_ENDED&&r<1e3&&e.clearInterval(t)}),DELAY);return function(){return e.clearInterval(t)}}}),[y,_,n]);var h=useRenderer(p,S),E=h&&"object"==_typeof(h)&&"__html"in h;return createElement2(Wrapper,_objectSpread3(_objectSpread3({},f),{},{ref:g,dangerouslySetInnerHTML:E?h:null}),E?null:h)}function getDataForTemplate(e,t,r,n){return _objectSpread3(_objectSpread3({},getYDHMSFromMs(e,t,n)),r)}function getLocaleWord(e){void 0===getLocaleStrings(e)&&(displayWarning("Invalid locale ".concat(e,", defaulting to ").concat(DEFAULT_LOCALE,". ").concat(NAME)),e=DEFAULT_LOCALE);var t=getLocaleStrings(e);return dict({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}function getYDHMSFromMs(e,t,r){r&&(e*=-1);var n=TimeUnit[t]==TimeUnit.DAYS?supportBackDate(Math.floor(e/MILLISECONDS_IN_DAY)):0,o=TimeUnit[t]==TimeUnit.HOURS?supportBackDate(Math.floor(e/MILLISECONDS_IN_HOUR)):TimeUnit[t]<TimeUnit.HOURS?supportBackDate(Math.floor(e%MILLISECONDS_IN_DAY/MILLISECONDS_IN_HOUR)):0,a=TimeUnit[t]==TimeUnit.MINUTES?supportBackDate(Math.floor(e/MILLISECONDS_IN_MINUTE)):TimeUnit[t]<TimeUnit.MINUTES?supportBackDate(Math.floor(e%MILLISECONDS_IN_HOUR/MILLISECONDS_IN_MINUTE)):0,i=TimeUnit[t]==TimeUnit.SECONDS?supportBackDate(Math.floor(e/MILLISECONDS_IN_SECOND)):supportBackDate(Math.floor(e%MILLISECONDS_IN_MINUTE/MILLISECONDS_IN_SECOND));return dict({"d":n,"dd":padStart(n),"h":o,"hh":padStart(o),"m":a,"mm":padStart(a),"s":i,"ss":padStart(i)})}function padStart(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function supportBackDate(e){return e<0?e+1:e}function displayWarning(e){console.warn(e)} | ||
bent;var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function isString(e){return"string"==typeof e}function parseDate(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function getDate(e){return e?"number"==typeof e?e:isString(e)?parseDate(e):(e=e).getTime():null}__export(exports,{DateCountdown:function(){return DateCountdown}});var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function dict(e){return e||{}}var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}var compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,u=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,s=e.contentRef,p=e.contentStyle,f=e.layout,y=void 0!==f&&f,_=e.paint,d=void 0!==_&&_,b=e.size,O=void 0!==b&&b,m=e.style,S=e.wrapperClassName,g=e.wrapperStyle,h=(O?4:0)+(y?2:0)+(d?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:t,className:"".concat(a||""," ").concat(S||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},m),g),{},{contain:CONTAIN[h]})}),createElement2(u,_objectSpread(_objectSpread({},l),{},{ref:s,className:c,style:_objectSpread(_objectSpread({},O&&SIZE_CONTENT_STYLE),{},{"overflow":d?"hidden":"visible"},p)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys2(Object(r),!0).forEach((function(t){_defineProperty2(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys2(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties2(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose2(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,u=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:t,className:"".concat(a||""," ").concat(u||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var _MAP,Wrapper=forwardRef2(WrapperWithRef);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function useRenderer(e,t){var r=_slicedToArray(useState2(null),2),n=r[0],o=r[1];return useLayoutEffect2((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}function _defineProperty3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var context,Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty3(_MAP={},Loading.AUTO,0),_defineProperty3(_MAP,Loading.LAZY,1),_defineProperty3(_MAP,Loading.EAGER,2),_defineProperty3(_MAP,Loading.UNLOAD,3),_MAP);function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useResourcesNotify(){var e=useAmpContext().notify;useLayoutEffect2((function(){e&&e()}))}function getLocaleStrings(e){return LOCALE_WORD[e]}var LOCALE_WORD={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},_excluded3=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function ownKeys3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys3(Object(r),!0).forEach((function(t){_defineProperty4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _slicedToArray2(e,t){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,t)||_unsupportedIterableToArray2(e,t)||_nonIterableRest2()}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray2(e,t):void 0}}function _arrayLikeToArray2(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit2(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties3(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose3(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var NAME="DateCountdown",MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,MILLISECONDS_IN_SECOND=1e3,DELAY=1e3,TimeUnit={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},DEFAULT_LOCALE="en",DEFAULT_WHEN_ENDED="stop",DEFAULT_BIGGEST_UNIT="DAYS",DEFAULT_COUNT_UP=!1,DEFAULT_RENDER=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function DateCountdown(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?DEFAULT_WHEN_ENDED:r,o=e.locale,a=void 0===o?DEFAULT_LOCALE:o,i=e.biggestUnit,u=void 0===i?DEFAULT_BIGGEST_UNIT:i,c=e.countUp,l=void 0===c?DEFAULT_COUNT_UP:c,s=e.render,p=void 0===s?DEFAULT_RENDER:s,f=_objectWithoutProperties3(e,_excluded3);useResourcesNotify();var y=useAmpContext().playable,_=useMemo2((function(){return getDate(t)}),[t]),d=useMemo2((function(){return getLocaleWord(a)}),[a]),b=_slicedToArray2(useState2(_-Date.now()+DELAY),2),O=b[0],m=b[1],S=useMemo2((function(){return getDataForTemplate(O,u,d,l)}),[O,u,d,l]),g=useRef2(null);useEffect2((function(){if(y&&g.current){var e=g.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=_-Date.now()+DELAY;m(r),n===DEFAULT_WHEN_ENDED&&r<1e3&&e.clearInterval(t)}),DELAY);return function(){return e.clearInterval(t)}}}),[y,_,n]);var h=useRenderer(p,S),E=h&&"object"==_typeof(h)&&"__html"in h;return createElement2(Wrapper,_objectSpread3(_objectSpread3({},f),{},{ref:g,dangerouslySetInnerHTML:E?h:null}),E?null:h)}function getDataForTemplate(e,t,r,n){return _objectSpread3(_objectSpread3({},getYDHMSFromMs(e,t,n)),r)}function getLocaleWord(e){void 0===getLocaleStrings(e)&&(displayWarning("Invalid locale ".concat(e,", defaulting to ").concat(DEFAULT_LOCALE,". ").concat(NAME)),e=DEFAULT_LOCALE);var t=getLocaleStrings(e);return dict({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}function getYDHMSFromMs(e,t,r){r&&(e*=-1);var n=TimeUnit[t]==TimeUnit.DAYS?supportBackDate(Math.floor(e/MILLISECONDS_IN_DAY)):0,o=TimeUnit[t]==TimeUnit.HOURS?supportBackDate(Math.floor(e/MILLISECONDS_IN_HOUR)):TimeUnit[t]<TimeUnit.HOURS?supportBackDate(Math.floor(e%MILLISECONDS_IN_DAY/MILLISECONDS_IN_HOUR)):0,a=TimeUnit[t]==TimeUnit.MINUTES?supportBackDate(Math.floor(e/MILLISECONDS_IN_MINUTE)):TimeUnit[t]<TimeUnit.MINUTES?supportBackDate(Math.floor(e%MILLISECONDS_IN_HOUR/MILLISECONDS_IN_MINUTE)):0,i=TimeUnit[t]==TimeUnit.SECONDS?supportBackDate(Math.floor(e/MILLISECONDS_IN_SECOND)):supportBackDate(Math.floor(e%MILLISECONDS_IN_MINUTE/MILLISECONDS_IN_SECOND));return dict({"d":n,"dd":padStart(n),"h":o,"hh":padStart(o),"m":a,"mm":padStart(a),"s":i,"ss":padStart(i)})}function padStart(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function supportBackDate(e){return e<0?e+1:e}function displayWarning(e){console.warn(e)} |
@@ -0,1 +1,2 @@ | ||
bent | ||
var __create = Object.create; | ||
@@ -39,2 +40,40 @@ var __defProp = Object.defineProperty; | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
var parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// src/core/types/object/index.js | ||
var _Object$prototype = Object.prototype; | ||
var hasOwn_ = _Object$prototype.hasOwnProperty; | ||
var toString_ = _Object$prototype.toString; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/preact/index.js | ||
@@ -201,63 +240,2 @@ var preact = __toModule(require("preact")); | ||
// src/core/types/object/index.js | ||
var _Object$prototype = Object.prototype; | ||
var hasOwn_ = _Object$prototype.hasOwnProperty; | ||
var toString_ = _Object$prototype.toString; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
var parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// src/core/constants/loading-instructions.js | ||
@@ -298,2 +276,25 @@ var _MAP; | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// extensions/amp-date-countdown/1.0/component.js | ||
@@ -300,0 +301,0 @@ var _excluded3 = ["datetime", "whenEnded", "locale", "biggestUnit", "countUp", "render"]; |
@@ -0,1 +1,41 @@ | ||
bent | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
const parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// src/core/types/object/index.js | ||
var { | ||
hasOwnProperty: hasOwn_, | ||
toString: toString_ | ||
} = Object.prototype; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/preact/index.js | ||
@@ -205,64 +245,2 @@ import { | ||
// src/core/types/object/index.js | ||
var { | ||
hasOwnProperty: hasOwn_, | ||
toString: toString_ | ||
} = Object.prototype; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
const parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// src/core/constants/loading-instructions.js | ||
@@ -309,2 +287,25 @@ var Loading = { | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// extensions/amp-date-countdown/1.0/component.js | ||
@@ -311,0 +312,0 @@ var _excluded3 = ["datetime", "whenEnded", "locale", "biggestUnit", "countUp", "render"]; |
; | ||
import{cloneElement as e,createContext as t,createElement as n,createRef as r}from"preact";import{hydrate as o,render as a}from"preact";import{useCallback as i,useContext as c,useEffect as s,useImperativeHandle as u,useLayoutEffect as l,useMemo as f,useRef as p,useState as y}from"preact/hooks";function b(e,t,r){return n.apply(void 0,arguments)}function O(e){return y(e)}function m(e,t){l(e,t)}function d(e,t){return f(e,t)}import{Children as h,createPortal as g,forwardRef as j}from"preact/compat";function w(e){return j(e)}var v=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=[null,"paint","layout","content","size","size paint","size layout","strict"],E={"position":"relative","width":"100%","height":"100%"};w((function(e,t){let{as:n="div",children:r,"className":o,contentAs:a="div",contentClassName:i,contentProps:c,contentRef:s,contentStyle:u,layout:l=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:O,wrapperStyle:m}=e;const d=(p?4:0)+(l?2:0)+(f?1:0);return b(n,P(P({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,v)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:P(P(P({},y),m),{},{contain:N[d]})}),b(a,P(P({},c),{},{ref:s,className:i,style:P(P({},p&&E),{},{"overflow":f?"hidden":"visible"},u)}),r))}));var M=["as","children","className","style","wrapperClassName","wrapperStyle"];function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=w((function(e,t){let{as:n="div",children:r,"className":o,"style":a,wrapperClassName:i,wrapperStyle:c}=e;return b(n,k(k({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,M)),{},{ref:t,className:`${o||""} ${i||""}`.trim()||null,style:k(k({},a),c)}),r)})),{hasOwnProperty:U,toString:x}=Object.prototype;function z(e){return e||{}}function T(e){return H[e]}var A,H={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function R(){const e=A||(A=t({renderable:!0,playable:!0,loading:"auto"},void 0));return c(e)}var Y=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},q="en",B="stop",F="DAYS",G=!1,K=e=>`${e.days} ${e.dd}, ${e.hours} ${e.hh}, ${e.minutes} ${e.mm}, ${e.seconds} ${e.ss}`;function Q(e){let{datetime:t,whenEnded:n=B,locale:r=q,biggestUnit:o=F,countUp:a=G,render:i=K}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Y);!function(){const{notify:e}=R();m((()=>{e&&e()}))}();const{playable:u}=R(),l=d((()=>{return(e=t)?"number"==typeof e?e:"string"==typeof e?function(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();const t=Date.parse(e);return isNaN(t)?null:t}(e):(e=e).getTime():null;var e}),[t]),f=d((()=>function(e){var t;void 0===T(e)&&(t=`Invalid locale ${e}, defaulting to ${q}. DateCountdown`,console.warn(t),e=q);const n=T(e);return z({"years":n[0],"months":n[1],"days":n[2],"hours":n[3],"minutes":n[4],"seconds":n[5]})}(r)),[r]),{0:y,1:h}=O(l-Date.now()+1e3),g=d((()=>function(e,t,n,r){return _(_({},function(e,t,n){n&&(e*=-1);const r=V[t]==V.DAYS?X(Math.floor(e/864e5)):0,o=V[t]==V.HOURS?X(Math.floor(e/36e5)):V[t]<V.HOURS?X(Math.floor(e%864e5/36e5)):0,a=V[t]==V.MINUTES?X(Math.floor(e/6e4)):V[t]<V.MINUTES?X(Math.floor(e%36e5/6e4)):0,i=X(V[t]==V.SECONDS?Math.floor(e/1e3):Math.floor(e%6e4/1e3));return z({"d":r,"dd":W(r),"h":o,"hh":W(o),"m":a,"mm":W(a),"s":i,"ss":W(i)})}(e,t,r)),n)}(y,o,f,a)),[y,o,f,a]),j=p(null);s((()=>{if(!u||!j.current)return;const e=j.current.ownerDocument.defaultView,t=e.setInterval((()=>{const r=l-Date.now()+1e3;h(r),n===B&&r<1e3&&e.clearInterval(t)}),1e3);return()=>e.clearInterval(t)}),[u,l,n]);const w=function(e,t){const{0:n,1:r}=O(null);return m((()=>{const n=e&&e(t)||null;if(n&&"function"==typeof n.then){let e=!1;return n.then((t=>{e||r(t)})),()=>{e=!0}}r(n)}),[e,t]),n}(i,g),v=w&&"object"==typeof w&&"__html"in w;return b(C,_(_({},c),{},{ref:j,dangerouslySetInnerHTML:v?w:null}),v?null:w)}function W(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function X(e){return e<0?e+1:e}export{Q as DateCountdown}; | ||
bent;var{hasOwnProperty:e,toString:t}=Object.prototype;function n(e){return e||{}}import{cloneElement as r,createContext as o,createElement as a,createRef as i}from"preact";import{hydrate as c,render as s}from"preact";import{useCallback as u,useContext as l,useEffect as f,useImperativeHandle as p,useLayoutEffect as y,useMemo as b,useRef as O,useState as m}from"preact/hooks";function d(e,t,n){return a.apply(void 0,arguments)}function h(e){return m(e)}function g(e,t){y(e,t)}function j(e,t){return b(e,t)}import{Children as w,createPortal as v,forwardRef as S}from"preact/compat";function P(e){return S(e)}var D=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=[null,"paint","layout","content","size","size paint","size layout","strict"],k={"position":"relative","width":"100%","height":"100%"};P((function(e,t){let{as:n="div",children:r,"className":o,contentAs:a="div",contentClassName:i,contentProps:c,contentRef:s,contentStyle:u,layout:l=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:b,wrapperStyle:O}=e;const m=(p?4:0)+(l?2:0)+(f?1:0);return d(n,E(E({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,D)),{},{ref:t,className:`${o||""} ${b||""}`.trim()||null,style:E(E(E({},y),O),{},{contain:$[m]})}),d(a,E(E({},c),{},{ref:s,className:i,style:E(E({},p&&k),{},{"overflow":f?"hidden":"visible"},u)}),r))}));var I=["as","children","className","style","wrapperClassName","wrapperStyle"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z,T=P((function(e,t){let{as:n="div",children:r,"className":o,"style":a,wrapperClassName:i,wrapperStyle:c}=e;return d(n,U(U({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,I)),{},{ref:t,className:`${o||""} ${i||""}`.trim()||null,style:U(U({},a),c)}),r)}));function A(){const e=z||(z=o({renderable:!0,playable:!0,loading:"auto"},void 0));return l(e)}function H(e){return R[e]}var R={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},Y=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},q="en",B="stop",F="DAYS",G=!1,K=e=>`${e.days} ${e.dd}, ${e.hours} ${e.hh}, ${e.minutes} ${e.mm}, ${e.seconds} ${e.ss}`;function Q(e){let{datetime:t,whenEnded:r=B,locale:o=q,biggestUnit:a=F,countUp:i=G,render:c=K}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Y);!function(){const{notify:e}=A();g((()=>{e&&e()}))}();const{playable:u}=A(),l=j((()=>{return(e=t)?"number"==typeof e?e:"string"==typeof e?function(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();const t=Date.parse(e);return isNaN(t)?null:t}(e):(e=e).getTime():null;var e}),[t]),p=j((()=>function(e){var t;void 0===H(e)&&(t=`Invalid locale ${e}, defaulting to ${q}. DateCountdown`,console.warn(t),e=q);const r=H(e);return n({"years":r[0],"months":r[1],"days":r[2],"hours":r[3],"minutes":r[4],"seconds":r[5]})}(o)),[o]),[y,b]=h(l-Date.now()+1e3),m=j((()=>function(e,t,r,o){return _(_({},function(e,t,r){r&&(e*=-1);const o=V[t]==V.DAYS?X(Math.floor(e/864e5)):0,a=V[t]==V.HOURS?X(Math.floor(e/36e5)):V[t]<V.HOURS?X(Math.floor(e%864e5/36e5)):0,i=V[t]==V.MINUTES?X(Math.floor(e/6e4)):V[t]<V.MINUTES?X(Math.floor(e%36e5/6e4)):0,c=X(V[t]==V.SECONDS?Math.floor(e/1e3):Math.floor(e%6e4/1e3));return n({"d":o,"dd":W(o),"h":a,"hh":W(a),"m":i,"mm":W(i),"s":c,"ss":W(c)})}(e,t,o)),r)}(y,a,p,i)),[y,a,p,i]),w=O(null);f((()=>{if(!u||!w.current)return;const e=w.current.ownerDocument.defaultView,t=e.setInterval((()=>{const n=l-Date.now()+1e3;b(n),r===B&&n<1e3&&e.clearInterval(t)}),1e3);return()=>e.clearInterval(t)}),[u,l,r]);const v=function(e,t){const[n,r]=h(null);return g((()=>{const n=e&&e(t)||null;if(n&&"function"==typeof n.then){let e=!1;return n.then((t=>{e||r(t)})),()=>{e=!0}}r(n)}),[e,t]),n}(c,m),S=v&&"object"==typeof v&&"__html"in v;return d(T,_(_({},s),{},{ref:w,dangerouslySetInnerHTML:S?v:null}),S?null:v)}function W(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function X(e){return e<0?e+1:e}export{Q as DateCountdown}; |
; | ||
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};__export(exports,{DateCountdown:function(){return DateCountdown}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}var compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,u=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,s=e.contentRef,p=e.contentStyle,f=e.layout,y=void 0!==f&&f,d=e.paint,_=void 0!==d&&d,b=e.size,O=void 0!==b&&b,m=e.style,S=e.wrapperClassName,g=e.wrapperStyle,h=(O?4:0)+(y?2:0)+(_?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:t,className:"".concat(a||""," ").concat(S||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},m),g),{},{contain:CONTAIN[h]})}),createElement2(u,_objectSpread(_objectSpread({},l),{},{ref:s,className:c,style:_objectSpread(_objectSpread({},O&&SIZE_CONTENT_STYLE),{},{"overflow":_?"hidden":"visible"},p)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys2(Object(r),!0).forEach((function(t){_defineProperty2(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys2(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties2(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose2(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,u=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:t,className:"".concat(a||""," ").concat(u||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function useRenderer(e,t){var r=_slicedToArray(useState2(null),2),n=r[0],o=r[1];return useLayoutEffect2((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function dict(e){return e||{}}function isString(e){return"string"==typeof e}function parseDate(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function getDate(e){return e?"number"==typeof e?e:isString(e)?parseDate(e):(e=e).getTime():null}function getLocaleStrings(e){return LOCALE_WORD[e]}var _MAP,LOCALE_WORD={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function _defineProperty3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var context,Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty3(_MAP={},Loading.AUTO,0),_defineProperty3(_MAP,Loading.LAZY,1),_defineProperty3(_MAP,Loading.EAGER,2),_defineProperty3(_MAP,Loading.UNLOAD,3),_MAP);function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useResourcesNotify(){var e=useAmpContext().notify;useLayoutEffect2((function(){e&&e()}))}var _excluded3=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function ownKeys3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys3(Object(r),!0).forEach((function(t){_defineProperty4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _slicedToArray2(e,t){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,t)||_unsupportedIterableToArray2(e,t)||_nonIterableRest2()}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray2(e,t):void 0}}function _arrayLikeToArray2(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit2(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties3(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose3(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var NAME="DateCountdown",MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,MILLISECONDS_IN_SECOND=1e3,DELAY=1e3,TimeUnit={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},DEFAULT_LOCALE="en",DEFAULT_WHEN_ENDED="stop",DEFAULT_BIGGEST_UNIT="DAYS",DEFAULT_COUNT_UP=!1,DEFAULT_RENDER=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function DateCountdown(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?DEFAULT_WHEN_ENDED:r,o=e.locale,a=void 0===o?DEFAULT_LOCALE:o,i=e.biggestUnit,u=void 0===i?DEFAULT_BIGGEST_UNIT:i,c=e.countUp,l=void 0===c?DEFAULT_COUNT_UP:c,s=e.render,p=void 0===s?DEFAULT_RENDER:s,f=_objectWithoutProperties3(e,_excluded3);useResourcesNotify();var y=useAmpContext().playable,d=useMemo2((function(){return getDate(t)}),[t]),_=useMemo2((function(){return getLocaleWord(a)}),[a]),b=_slicedToArray2(useState2(d-Date.now()+DELAY),2),O=b[0],m=b[1],S=useMemo2((function(){return getDataForTemplate(O,u,_,l)}),[O,u,_,l]),g=useRef2(null);useEffect2((function(){if(y&&g.current){var e=g.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=d-Date.now()+DELAY;m(r),n===DEFAULT_WHEN_ENDED&&r<1e3&&e.clearInterval(t)}),DELAY);return function(){return e.clearInterval(t)}}}),[y,d,n]);var h=useRenderer(p,S),E=h&&"object"==_typeof(h)&&"__html"in h;return createElement2(Wrapper,_objectSpread3(_objectSpread3({},f),{},{ref:g,dangerouslySetInnerHTML:E?h:null}),E?null:h)}function getDataForTemplate(e,t,r,n){return _objectSpread3(_objectSpread3({},getYDHMSFromMs(e,t,n)),r)}function getLocaleWord(e){void 0===getLocaleStrings(e)&&(displayWarning("Invalid locale ".concat(e,", defaulting to ").concat(DEFAULT_LOCALE,". ").concat(NAME)),e=DEFAULT_LOCALE);var t=getLocaleStrings(e);return dict({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}function getYDHMSFromMs(e,t,r){r&&(e*=-1);var n=TimeUnit[t]==TimeUnit.DAYS?supportBackDate(Math.floor(e/MILLISECONDS_IN_DAY)):0,o=TimeUnit[t]==TimeUnit.HOURS?supportBackDate(Math.floor(e/MILLISECONDS_IN_HOUR)):TimeUnit[t]<TimeUnit.HOURS?supportBackDate(Math.floor(e%MILLISECONDS_IN_DAY/MILLISECONDS_IN_HOUR)):0,a=TimeUnit[t]==TimeUnit.MINUTES?supportBackDate(Math.floor(e/MILLISECONDS_IN_MINUTE)):TimeUnit[t]<TimeUnit.MINUTES?supportBackDate(Math.floor(e%MILLISECONDS_IN_HOUR/MILLISECONDS_IN_MINUTE)):0,i=TimeUnit[t]==TimeUnit.SECONDS?supportBackDate(Math.floor(e/MILLISECONDS_IN_SECOND)):supportBackDate(Math.floor(e%MILLISECONDS_IN_MINUTE/MILLISECONDS_IN_SECOND));return dict({"d":n,"dd":padStart(n),"h":o,"hh":padStart(o),"m":a,"mm":padStart(a),"s":i,"ss":padStart(i)})}function padStart(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function supportBackDate(e){return e<0?e+1:e}function displayWarning(e){console.warn(e)} | ||
bent;var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function isString(e){return"string"==typeof e}function parseDate(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();var t=Date.parse(e);return isNaN(t)?null:t}function getDate(e){return e?"number"==typeof e?e:isString(e)?parseDate(e):(e=e).getTime():null}__export(exports,{DateCountdown:function(){return DateCountdown}});var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function dict(e){return e||{}}var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,t,r){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}var compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,u=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,s=e.contentRef,p=e.contentStyle,f=e.layout,y=void 0!==f&&f,d=e.paint,_=void 0!==d&&d,b=e.size,O=void 0!==b&&b,m=e.style,S=e.wrapperClassName,g=e.wrapperStyle,h=(O?4:0)+(y?2:0)+(_?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:t,className:"".concat(a||""," ").concat(S||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},m),g),{},{contain:CONTAIN[h]})}),createElement2(u,_objectSpread(_objectSpread({},l),{},{ref:s,className:c,style:_objectSpread(_objectSpread({},O&&SIZE_CONTENT_STYLE),{},{"overflow":_?"hidden":"visible"},p)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys2(Object(r),!0).forEach((function(t){_defineProperty2(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys2(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties2(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose2(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,u=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:t,className:"".concat(a||""," ").concat(u||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var _MAP,Wrapper=forwardRef2(WrapperWithRef);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function useRenderer(e,t){var r=_slicedToArray(useState2(null),2),n=r[0],o=r[1];return useLayoutEffect2((function(){var r=e&&e(t)||null;if(r&&"function"==typeof r.then){var n=!1;return r.then((function(e){n||o(e)})),function(){n=!0}}o(r)}),[e,t]),n}function _defineProperty3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var context,Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty3(_MAP={},Loading.AUTO,0),_defineProperty3(_MAP,Loading.LAZY,1),_defineProperty3(_MAP,Loading.EAGER,2),_defineProperty3(_MAP,Loading.UNLOAD,3),_MAP);function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useResourcesNotify(){var e=useAmpContext().notify;useLayoutEffect2((function(){e&&e()}))}function getLocaleStrings(e){return LOCALE_WORD[e]}var LOCALE_WORD={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},_excluded3=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function ownKeys3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys3(Object(r),!0).forEach((function(t){_defineProperty4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _slicedToArray2(e,t){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,t)||_unsupportedIterableToArray2(e,t)||_nonIterableRest2()}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray2(e,t):void 0}}function _arrayLikeToArray2(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit2(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties3(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose3(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var NAME="DateCountdown",MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,MILLISECONDS_IN_SECOND=1e3,DELAY=1e3,TimeUnit={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},DEFAULT_LOCALE="en",DEFAULT_WHEN_ENDED="stop",DEFAULT_BIGGEST_UNIT="DAYS",DEFAULT_COUNT_UP=!1,DEFAULT_RENDER=function(e){return"".concat(e.days," ").concat(e.dd,", ")+"".concat(e.hours," ").concat(e.hh,", ")+"".concat(e.minutes," ").concat(e.mm,", ")+"".concat(e.seconds," ").concat(e.ss)};function DateCountdown(e){var t=e.datetime,r=e.whenEnded,n=void 0===r?DEFAULT_WHEN_ENDED:r,o=e.locale,a=void 0===o?DEFAULT_LOCALE:o,i=e.biggestUnit,u=void 0===i?DEFAULT_BIGGEST_UNIT:i,c=e.countUp,l=void 0===c?DEFAULT_COUNT_UP:c,s=e.render,p=void 0===s?DEFAULT_RENDER:s,f=_objectWithoutProperties3(e,_excluded3);useResourcesNotify();var y=useAmpContext().playable,d=useMemo2((function(){return getDate(t)}),[t]),_=useMemo2((function(){return getLocaleWord(a)}),[a]),b=_slicedToArray2(useState2(d-Date.now()+DELAY),2),O=b[0],m=b[1],S=useMemo2((function(){return getDataForTemplate(O,u,_,l)}),[O,u,_,l]),g=useRef2(null);useEffect2((function(){if(y&&g.current){var e=g.current.ownerDocument.defaultView,t=e.setInterval((function(){var r=d-Date.now()+DELAY;m(r),n===DEFAULT_WHEN_ENDED&&r<1e3&&e.clearInterval(t)}),DELAY);return function(){return e.clearInterval(t)}}}),[y,d,n]);var h=useRenderer(p,S),E=h&&"object"==_typeof(h)&&"__html"in h;return createElement2(Wrapper,_objectSpread3(_objectSpread3({},f),{},{ref:g,dangerouslySetInnerHTML:E?h:null}),E?null:h)}function getDataForTemplate(e,t,r,n){return _objectSpread3(_objectSpread3({},getYDHMSFromMs(e,t,n)),r)}function getLocaleWord(e){void 0===getLocaleStrings(e)&&(displayWarning("Invalid locale ".concat(e,", defaulting to ").concat(DEFAULT_LOCALE,". ").concat(NAME)),e=DEFAULT_LOCALE);var t=getLocaleStrings(e);return dict({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}function getYDHMSFromMs(e,t,r){r&&(e*=-1);var n=TimeUnit[t]==TimeUnit.DAYS?supportBackDate(Math.floor(e/MILLISECONDS_IN_DAY)):0,o=TimeUnit[t]==TimeUnit.HOURS?supportBackDate(Math.floor(e/MILLISECONDS_IN_HOUR)):TimeUnit[t]<TimeUnit.HOURS?supportBackDate(Math.floor(e%MILLISECONDS_IN_DAY/MILLISECONDS_IN_HOUR)):0,a=TimeUnit[t]==TimeUnit.MINUTES?supportBackDate(Math.floor(e/MILLISECONDS_IN_MINUTE)):TimeUnit[t]<TimeUnit.MINUTES?supportBackDate(Math.floor(e%MILLISECONDS_IN_HOUR/MILLISECONDS_IN_MINUTE)):0,i=TimeUnit[t]==TimeUnit.SECONDS?supportBackDate(Math.floor(e/MILLISECONDS_IN_SECOND)):supportBackDate(Math.floor(e%MILLISECONDS_IN_MINUTE/MILLISECONDS_IN_SECOND));return dict({"d":n,"dd":padStart(n),"h":o,"hh":padStart(o),"m":a,"mm":padStart(a),"s":i,"ss":padStart(i)})}function padStart(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function supportBackDate(e){return e<0?e+1:e}function displayWarning(e){console.warn(e)} |
@@ -0,1 +1,2 @@ | ||
bent | ||
var __create = Object.create; | ||
@@ -39,2 +40,40 @@ var __defProp = Object.defineProperty; | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
var parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// src/core/types/object/index.js | ||
var _Object$prototype = Object.prototype; | ||
var hasOwn_ = _Object$prototype.hasOwnProperty; | ||
var toString_ = _Object$prototype.toString; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/preact/index.js | ||
@@ -201,63 +240,2 @@ var preact = __toModule(require("react")); | ||
// src/core/types/object/index.js | ||
var _Object$prototype = Object.prototype; | ||
var hasOwn_ = _Object$prototype.hasOwnProperty; | ||
var toString_ = _Object$prototype.toString; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
var parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// src/core/constants/loading-instructions.js | ||
@@ -298,2 +276,25 @@ var _MAP; | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// extensions/amp-date-countdown/1.0/component.js | ||
@@ -300,0 +301,0 @@ var _excluded3 = ["datetime", "whenEnded", "locale", "biggestUnit", "countUp", "render"]; |
@@ -0,1 +1,41 @@ | ||
bent | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
const parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// src/core/types/object/index.js | ||
var { | ||
hasOwnProperty: hasOwn_, | ||
toString: toString_ | ||
} = Object.prototype; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/preact/index.js | ||
@@ -205,64 +245,2 @@ import { | ||
// src/core/types/object/index.js | ||
var { | ||
hasOwnProperty: hasOwn_, | ||
toString: toString_ | ||
} = Object.prototype; | ||
function dict(opt_initial) { | ||
return opt_initial || {}; | ||
} | ||
// src/core/types/string/index.js | ||
function isString(s) { | ||
return typeof s == "string"; | ||
} | ||
// src/core/types/date.js | ||
function parseDate(s) { | ||
if (!s) { | ||
return null; | ||
} | ||
if (s.toLowerCase() === "now") { | ||
return Date.now(); | ||
} | ||
const parsed = Date.parse(s); | ||
return isNaN(parsed) ? null : parsed; | ||
} | ||
function getDate(value) { | ||
if (!value) { | ||
return null; | ||
} | ||
if (typeof value == "number") { | ||
return value; | ||
} | ||
if (isString(value)) { | ||
return parseDate(value); | ||
} | ||
value = value; | ||
return value.getTime(); | ||
} | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// src/core/constants/loading-instructions.js | ||
@@ -309,2 +287,25 @@ var Loading = { | ||
// extensions/amp-date-countdown/1.0/messages.js | ||
function getLocaleStrings(locale) { | ||
return LOCALE_WORD[locale]; | ||
} | ||
var LOCALE_WORD = { | ||
"de": ["Jahren", "Monaten", "Tagen", "Stunden", "Minuten", "Sekunden"], | ||
"en": ["Years", "Months", "Days", "Hours", "Minutes", "Seconds"], | ||
"es": ["a\xF1os", "meses", "d\xEDas", "horas", "minutos", "segundos"], | ||
"fr": ["ans", "mois", "jours", "heures", "minutes", "secondes"], | ||
"id": ["tahun", "bulan", "hari", "jam", "menit", "detik"], | ||
"it": ["anni", "mesi", "giorni", "ore", "minuti", "secondi"], | ||
"ja": ["\u5E74", "\u30F6\u6708", "\u65E5", "\u6642\u9593", "\u5206", "\u79D2"], | ||
"ko": ["\uB144", "\uB2EC", "\uC77C", "\uC2DC\uAC04", "\uBD84", "\uCD08"], | ||
"nl": ["jaar", "maanden", "dagen", "uur", "minuten", "seconden"], | ||
"pt": ["anos", "meses", "dias", "horas", "minutos", "segundos"], | ||
"ru": ["\u0433\u043E\u0434", "\u043C\u0435\u0441\u044F\u0446", "\u0434\u0435\u043D\u044C", "\u0447\u0430\u0441", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430"], | ||
"th": ["\u0E1B\u0E35", "\u0E40\u0E14\u0E37\u0E2D\u0E19", "\u0E27\u0E31\u0E19", "\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", "\u0E19\u0E32\u0E17\u0E35", "\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"], | ||
"tr": ["y\u0131l", "ay", "g\xFCn", "saat", "dakika", "saniye"], | ||
"vi": ["n\u0103m", "th\xE1ng", "ng\xE0y", "gi\u1EDD", "ph\xFAt", "gi\xE2y"], | ||
"zh-cn": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u65F6", "\u5206\u949F", "\u79D2"], | ||
"zh-tw": ["\u5E74", "\u6708", "\u5929", "\u5C0F\u6642", "\u5206\u9418", "\u79D2"] | ||
}; | ||
// extensions/amp-date-countdown/1.0/component.js | ||
@@ -311,0 +312,0 @@ var _excluded3 = ["datetime", "whenEnded", "locale", "biggestUnit", "countUp", "render"]; |
; | ||
import{cloneElement as e,createContext as t,createElement as n,createRef as r}from"react";import{hydrate as o,render as a}from"react-dom";import{useCallback as i,useContext as c,useEffect as s,useImperativeHandle as u,useLayoutEffect as l,useMemo as f,useRef as p,useState as y}from"react";function b(e,t,r){return n.apply(void 0,arguments)}function O(e){return y(e)}function m(e,t){l(e,t)}function d(e,t){return f(e,t)}import{Children as h,createPortal as g,forwardRef as j}from"react";function w(e){return j(e)}var v=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=[null,"paint","layout","content","size","size paint","size layout","strict"],E={"position":"relative","width":"100%","height":"100%"};w((function(e,t){let{as:n="div",children:r,"className":o,contentAs:a="div",contentClassName:i,contentProps:c,contentRef:s,contentStyle:u,layout:l=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:O,wrapperStyle:m}=e;const d=(p?4:0)+(l?2:0)+(f?1:0);return b(n,P(P({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,v)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:P(P(P({},y),m),{},{contain:N[d]})}),b(a,P(P({},c),{},{ref:s,className:i,style:P(P({},p&&E),{},{"overflow":f?"hidden":"visible"},u)}),r))}));var M=["as","children","className","style","wrapperClassName","wrapperStyle"];function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=w((function(e,t){let{as:n="div",children:r,"className":o,"style":a,wrapperClassName:i,wrapperStyle:c}=e;return b(n,k(k({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,M)),{},{ref:t,className:`${o||""} ${i||""}`.trim()||null,style:k(k({},a),c)}),r)})),{hasOwnProperty:U,toString:x}=Object.prototype;function z(e){return e||{}}function T(e){return H[e]}var A,H={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]};function R(){const e=A||(A=t({renderable:!0,playable:!0,loading:"auto"},void 0));return c(e)}var Y=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},q="en",B="stop",F="DAYS",G=!1,K=e=>`${e.days} ${e.dd}, ${e.hours} ${e.hh}, ${e.minutes} ${e.mm}, ${e.seconds} ${e.ss}`;function Q(e){let{datetime:t,whenEnded:n=B,locale:r=q,biggestUnit:o=F,countUp:a=G,render:i=K}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Y);!function(){const{notify:e}=R();m((()=>{e&&e()}))}();const{playable:u}=R(),l=d((()=>{return(e=t)?"number"==typeof e?e:"string"==typeof e?function(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();const t=Date.parse(e);return isNaN(t)?null:t}(e):(e=e).getTime():null;var e}),[t]),f=d((()=>function(e){var t;void 0===T(e)&&(t=`Invalid locale ${e}, defaulting to ${q}. DateCountdown`,console.warn(t),e=q);const n=T(e);return z({"years":n[0],"months":n[1],"days":n[2],"hours":n[3],"minutes":n[4],"seconds":n[5]})}(r)),[r]),{0:y,1:h}=O(l-Date.now()+1e3),g=d((()=>function(e,t,n,r){return _(_({},function(e,t,n){n&&(e*=-1);const r=V[t]==V.DAYS?X(Math.floor(e/864e5)):0,o=V[t]==V.HOURS?X(Math.floor(e/36e5)):V[t]<V.HOURS?X(Math.floor(e%864e5/36e5)):0,a=V[t]==V.MINUTES?X(Math.floor(e/6e4)):V[t]<V.MINUTES?X(Math.floor(e%36e5/6e4)):0,i=X(V[t]==V.SECONDS?Math.floor(e/1e3):Math.floor(e%6e4/1e3));return z({"d":r,"dd":W(r),"h":o,"hh":W(o),"m":a,"mm":W(a),"s":i,"ss":W(i)})}(e,t,r)),n)}(y,o,f,a)),[y,o,f,a]),j=p(null);s((()=>{if(!u||!j.current)return;const e=j.current.ownerDocument.defaultView,t=e.setInterval((()=>{const r=l-Date.now()+1e3;h(r),n===B&&r<1e3&&e.clearInterval(t)}),1e3);return()=>e.clearInterval(t)}),[u,l,n]);const w=function(e,t){const{0:n,1:r}=O(null);return m((()=>{const n=e&&e(t)||null;if(n&&"function"==typeof n.then){let e=!1;return n.then((t=>{e||r(t)})),()=>{e=!0}}r(n)}),[e,t]),n}(i,g),v=w&&"object"==typeof w&&"__html"in w;return b(C,_(_({},c),{},{ref:j,dangerouslySetInnerHTML:v?w:null}),v?null:w)}function W(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function X(e){return e<0?e+1:e}export{Q as DateCountdown}; | ||
bent;var{hasOwnProperty:e,toString:t}=Object.prototype;function n(e){return e||{}}import{cloneElement as r,createContext as o,createElement as a,createRef as i}from"react";import{hydrate as c,render as s}from"react-dom";import{useCallback as u,useContext as l,useEffect as f,useImperativeHandle as p,useLayoutEffect as y,useMemo as b,useRef as O,useState as m}from"react";function d(e,t,n){return a.apply(void 0,arguments)}function h(e){return m(e)}function g(e,t){y(e,t)}function j(e,t){return b(e,t)}import{Children as w,createPortal as v,forwardRef as S}from"react";function P(e){return S(e)}var D=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=[null,"paint","layout","content","size","size paint","size layout","strict"],k={"position":"relative","width":"100%","height":"100%"};P((function(e,t){let{as:n="div",children:r,"className":o,contentAs:a="div",contentClassName:i,contentProps:c,contentRef:s,contentStyle:u,layout:l=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:b,wrapperStyle:O}=e;const m=(p?4:0)+(l?2:0)+(f?1:0);return d(n,E(E({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,D)),{},{ref:t,className:`${o||""} ${b||""}`.trim()||null,style:E(E(E({},y),O),{},{contain:$[m]})}),d(a,E(E({},c),{},{ref:s,className:i,style:E(E({},p&&k),{},{"overflow":f?"hidden":"visible"},u)}),r))}));var I=["as","children","className","style","wrapperClassName","wrapperStyle"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z,T=P((function(e,t){let{as:n="div",children:r,"className":o,"style":a,wrapperClassName:i,wrapperStyle:c}=e;return d(n,U(U({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,I)),{},{ref:t,className:`${o||""} ${i||""}`.trim()||null,style:U(U({},a),c)}),r)}));function A(){const e=z||(z=o({renderable:!0,playable:!0,loading:"auto"},void 0));return l(e)}function H(e){return R[e]}var R={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},Y=["datetime","whenEnded","locale","biggestUnit","countUp","render"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},q="en",B="stop",F="DAYS",G=!1,K=e=>`${e.days} ${e.dd}, ${e.hours} ${e.hh}, ${e.minutes} ${e.mm}, ${e.seconds} ${e.ss}`;function Q(e){let{datetime:t,whenEnded:r=B,locale:o=q,biggestUnit:a=F,countUp:i=G,render:c=K}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Y);!function(){const{notify:e}=A();g((()=>{e&&e()}))}();const{playable:u}=A(),l=j((()=>{return(e=t)?"number"==typeof e?e:"string"==typeof e?function(e){if(!e)return null;if("now"===e.toLowerCase())return Date.now();const t=Date.parse(e);return isNaN(t)?null:t}(e):(e=e).getTime():null;var e}),[t]),p=j((()=>function(e){var t;void 0===H(e)&&(t=`Invalid locale ${e}, defaulting to ${q}. DateCountdown`,console.warn(t),e=q);const r=H(e);return n({"years":r[0],"months":r[1],"days":r[2],"hours":r[3],"minutes":r[4],"seconds":r[5]})}(o)),[o]),[y,b]=h(l-Date.now()+1e3),m=j((()=>function(e,t,r,o){return _(_({},function(e,t,r){r&&(e*=-1);const o=V[t]==V.DAYS?X(Math.floor(e/864e5)):0,a=V[t]==V.HOURS?X(Math.floor(e/36e5)):V[t]<V.HOURS?X(Math.floor(e%864e5/36e5)):0,i=V[t]==V.MINUTES?X(Math.floor(e/6e4)):V[t]<V.MINUTES?X(Math.floor(e%36e5/6e4)):0,c=X(V[t]==V.SECONDS?Math.floor(e/1e3):Math.floor(e%6e4/1e3));return n({"d":o,"dd":W(o),"h":a,"hh":W(a),"m":i,"mm":W(i),"s":c,"ss":W(c)})}(e,t,o)),r)}(y,a,p,i)),[y,a,p,i]),w=O(null);f((()=>{if(!u||!w.current)return;const e=w.current.ownerDocument.defaultView,t=e.setInterval((()=>{const n=l-Date.now()+1e3;b(n),r===B&&n<1e3&&e.clearInterval(t)}),1e3);return()=>e.clearInterval(t)}),[u,l,r]);const v=function(e,t){const[n,r]=h(null);return g((()=>{const n=e&&e(t)||null;if(n&&"function"==typeof n.then){let e=!1;return n.then((t=>{e||r(t)})),()=>{e=!0}}r(n)}),[e,t]),n}(c,m),S=v&&"object"==typeof v&&"__html"in v;return d(T,_(_({},s),{},{ref:w,dangerouslySetInnerHTML:S?v:null}),S?null:v)}function W(e){return e<-9||e>9?String(e):e>=-9&&e<0?"-0"+-e:"0"+e}function X(e){return e<0?e+1:e}export{Q as DateCountdown}; |
{ | ||
"name": "@ampproject/amp-date-countdown", | ||
"version": "1.2108052321.0", | ||
"version": "1.2108052321.1", | ||
"description": "AMP HTML amp-date-countdown Component", | ||
@@ -5,0 +5,0 @@ "author": "The AMP HTML Authors", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
576158
1740