PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/internetmoney.kerihosting.com/wp-content/plugins/amp/assets/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/internetmoney.kerihosting.com/wp-content/plugins/amp/assets/js/amp-block-editor.js |
(()=>{var e={55:(e,t,a)=>{var r={"./amp-brid-player/index.js":499,"./amp-ima-video/index.js":692,"./amp-jwplayer/index.js":122,"./amp-mathml/index.js":167,"./amp-o2-player/index.js":192,"./amp-ooyala-player/index.js":326,"./amp-reach-player/index.js":120,"./amp-springboard-player/index.js":884,"./amp-timeago/index.js":415};function i(e){var t=l(e);return a(t)}function l(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=l,e.exports=i,i.id=55},72:(e,t,a)=>{var r={"./post-status-info.js":806,"./pre-publish-panel.js":492,"./wrapped-amp-preview-button.js":106};function i(e){var t=l(e);return a(t)}function l(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=l,e.exports=i,i.id=72},499:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>d});var r=a(736),i=a(196),l=a(175),o=a(609),n=a(503);const s="amp/amp-brid-player",d={title:(0,r.__)("AMP Brid Player","amp"),description:(0,r.__)("Displays the Brid Player used in Brid.tv Video Platform.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,r.__)("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:s,dataPartner:d,dataPlayer:m,dataVideo:u,dataPlaylist:c,dataOutstream:p}=t,h=[{value:"responsive",label:(0,r.__)("Responsive","amp")},{value:"fixed-height",label:(0,r.__)("Fixed Height","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")},{value:"fill",label:(0,r.__)("Fill","amp")},{value:"flex-item",label:(0,r.__)("Flex-item","amp")},{value:"nodisplay",label:(0,r.__)("No Display","amp")}];let b=!1;return d&&m&&(u||c||p)&&(b=`http://cdn.brid.tv/live/partners/${d}`),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,r.__)("Brid Player Settings","amp")},(0,i.createElement)(o.TextControl,{label:(0,r.__)("Partner ID (required)","amp"),value:d,onChange:e=>a({dataPartner:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Player ID (required)","amp"),value:m,onChange:e=>a({dataPlayer:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Video ID (one of video / playlist / outstream ID is required)","amp"),value:u,onChange:e=>a({dataVideo:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Outstream unit ID (one of video / playlist / outstream ID is required)","amp"),value:p,onChange:e=>a({dataOutstream:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Playlist ID (one of video / playlist / outstream ID is required)","amp"),value:c,onChange:e=>a({dataPlaylist:e})}),(0,i.createElement)(o.ToggleControl,{label:(0,r.__)("Autoplay","amp"),checked:s,onChange:()=>a({autoPlay:!s})}),(0,i.createElement)(n.CR,{...e,ampLayoutOptions:h}))),b&&(0,i.createElement)(n.om,{name:(0,r.__)("Brid Player","amp"),url:b}),!b&&(0,i.createElement)(o.Placeholder,{label:(0,r.__)("Brid Player","amp")},(0,i.createElement)("p",null,(0,r.__)("Add required data to use the block.","amp"))))},save:({attributes:e})=>{const{dataPlayer:t,dataOutstream:a,dataPartner:r,ampLayout:l,width:o,height:n,dataVideo:s,autoPlay:d,dataPlaylist:m}=e,u={layout:l,height:n,"data-player":t,"data-partner":r};return"fixed-height"!==l&&o&&(u.width=o),m&&(u["data-playlist"]=m),s&&(u["data-video"]=s),a&&(u["data-outstream"]=a),d&&(u.autoplay=d),(0,i.createElement)("amp-brid-player",{...u})}}},692:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>d});var r=a(736),i=a(196),l=a(175),o=a(609),n=a(503);const s="amp/amp-ima-video",d={title:(0,r.__)("AMP IMA Video","amp"),description:(0,r.__)("Embeds a video player for instream video ads that are integrated with the IMA SDK","amp"),category:"embed",icon:"embed-generic",keywords:[(0,r.__)("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:s,dataTag:d,dataSrc:m,dataPoster:u}=t,c=[{value:"responsive",label:(0,r.__)("Responsive","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")}];let p=!1;return d&&m&&(p=!0),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,r.__)("IMA Video Settings","amp")},(0,i.createElement)(o.TextControl,{label:(0,r.__)("HTTPS URL for your VAST ad document (required)","amp"),value:d,onChange:e=>a({dataTag:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("HTTPS URL of your video content (required)","amp"),value:m,onChange:e=>a({dataSrc:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("HTTPS URL to preview image","amp"),value:u,onChange:e=>a({dataPoster:e})}),(0,i.createElement)(o.ToggleControl,{label:(0,r.__)("Delay Ad Request","amp"),checked:s,onChange:()=>a({dataDelayAdRequest:!s})}),(0,i.createElement)(n.CR,{...e,ampLayoutOptions:c}))),p&&(0,i.createElement)(n.om,{name:(0,r.__)("IMA Video","amp"),url:m}),!p&&(0,i.createElement)(o.Placeholder,{label:(0,r.__)("IMA Video","amp")},(0,i.createElement)("p",null,(0,r.__)("Add required data to use the block.","amp"))))},save:({attributes:e})=>{const{width:t,dataSrc:a,ampLayout:r,dataTag:l,dataDelayAdRequest:o,height:n,dataPoster:s}=e,d={layout:r,height:n,width:t,"data-tag":l,"data-src":a};return s&&(d["data-poster"]=s),o&&(d["data-delay-ad-request"]=o),(0,i.createElement)("amp-ima-video",{...d})}}},122:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>d});var r=a(736),i=a(196),l=a(175),o=a(609),n=a(503);const s="amp/amp-jwplayer",d={title:(0,r.__)("AMP JW Player","amp"),description:(0,r.__)("Displays a cloud-hosted JW Player.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,r.__)("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:s,dataMediaId:d,dataPlaylistId:m}=t,u=[{value:"responsive",label:(0,r.__)("Responsive","amp")},{value:"fixed-height",label:(0,r.__)("Fixed Height","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")},{value:"fill",label:(0,r.__)("Fill","amp")},{value:"flex-item",label:(0,r.__)("Flex-item","amp")},{value:"nodisplay",label:(0,r.__)("No Display","amp")}];let c=!1;return s&&(d||m)&&(c=m?`https://content.jwplatform.com/players/${m}-${s}`:`https://content.jwplatform.com/players/${d}-${s}`),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,r.__)("JW Player Settings","amp")},(0,i.createElement)(o.TextControl,{label:(0,r.__)("Player ID (required)","amp"),value:s,onChange:e=>a({dataPlayerId:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Media ID (required if playlist ID not set)","amp"),value:d,onChange:e=>a({dataMediaId:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Playlist ID (required if media ID not set)","amp"),value:m,onChange:e=>a({dataPlaylistId:e})}),(0,i.createElement)(n.CR,{...e,ampLayoutOptions:u}))),c&&(0,i.createElement)(n.om,{name:(0,r.__)("JW Player","amp"),url:c}),!c&&(0,i.createElement)(o.Placeholder,{label:(0,r.__)("JW Player","amp")},(0,i.createElement)("p",null,(0,r.__)("Add required data to use the block.","amp"))))},save:({attributes:e})=>{const{width:t,height:a,ampLayout:r,dataPlaylistId:l,dataPlayerId:o,dataMediaId:n}=e,s={layout:r,height:a,"data-player-id":o};return"fixed-height"!==r&&t&&(s.width=t),l&&(s["data-playlist-id"]=l),n&&(s["data-media-id"]=n),(0,i.createElement)("amp-jwplayer",{...s})}}},167:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>o,settings:()=>n});var r=a(736),i=a(196),l=a(175);const o="amp/amp-mathml",n={title:(0,r.__)("AMP MathML","amp"),category:"common",icon:"welcome-learn-more",keywords:[(0,r.__)("Mathematical formula","amp"),(0,r.__)("Scientific content ","amp")],attributes:{dataFormula:{source:"attribute",selector:"amp-mathml",attribute:"data-formula"}},edit:({attributes:e,setAttributes:t})=>{const{dataFormula:a}=e;return(0,i.createElement)(l.PlainText,{value:a,placeholder:(0,r.__)("Insert formula","amp"),onChange:e=>t({dataFormula:e})})},save:({attributes:e})=>{const{dataFormula:t}=e,a={"data-formula":t,layout:"container"};return(0,i.createElement)("amp-mathml",{...a})}}},192:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>d});var r=a(736),i=a(196),l=a(175),o=a(609),n=a(503);const s="amp/amp-o2-player",d={title:(0,r.__)("AMP O2 Player","amp"),category:"embed",icon:"embed-generic",keywords:[(0,r.__)("Embed","amp"),(0,r.__)("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:s,dataPid:d,dataVid:m,dataBcid:u,dataBid:c}=t,p=[{value:"responsive",label:(0,r.__)("Responsive","amp")},{value:"fixed-height",label:(0,r.__)("Fixed Height","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")},{value:"fill",label:(0,r.__)("Fill","amp")},{value:"flex-item",label:(0,r.__)("Flex-item","amp")},{value:"nodisplay",label:(0,r.__)("No Display","amp")}];let h=!1;return d&&(u||m)&&(h=`https://delivery.vidible.tv/htmlembed/pid=${d}/`),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,r.__)("O2 Player Settings","amp")},(0,i.createElement)(o.TextControl,{label:(0,r.__)("Player ID (required)","amp"),value:d,onChange:e=>a({dataPid:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Buyer Company ID (either buyer or video ID is required)","amp"),value:u,onChange:e=>a({dataBcid:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Video ID (either buyer or video ID is required)","amp"),value:m,onChange:e=>a({dataVid:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Playlist ID","amp"),value:c,onChange:e=>a({dataBid:e})}),(0,i.createElement)(o.ToggleControl,{label:(0,r.__)("Autoplay","amp"),checked:s,onChange:()=>a({autoPlay:!s})}),(0,i.createElement)(n.CR,{...e,ampLayoutOptions:p}))),h&&(0,i.createElement)(n.om,{name:(0,r.__)("O2 Player","amp"),url:h}),!h&&(0,i.createElement)(o.Placeholder,{label:(0,r.__)("O2 Player","amp")},(0,i.createElement)("p",null,(0,r.__)("Add required data to use the block.","amp"))))},save:({attributes:e})=>{const{dataPid:t,width:a,height:r,ampLayout:l,dataBid:o,autoPlay:n,dataBcid:s,dataVid:d}=e,m={layout:l,height:r,"data-pid":t};return"fixed-height"!==l&&a&&(m.width=a),n||(m["data-macros"]="m.playback=click"),d?m["data-vid"]=d:s&&(m["data-bcid"]=s),o&&(m["data-bid"]=o),(0,i.createElement)("amp-o2-player",{...m})}}},326:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>d});var r=a(736),i=a(196),l=a(175),o=a(609),n=a(503);const s="amp/amp-ooyala-player",d={title:(0,r.__)("AMP Ooyala Player","amp"),description:(0,r.__)("Displays an Ooyala video.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,r.__)("Embed","amp"),(0,r.__)("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:s,dataPlayerId:d,dataPcode:m,dataPlayerVersion:u}=t,c=[{value:"responsive",label:(0,r.__)("Responsive","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")},{value:"fill",label:(0,r.__)("Fill","amp")},{value:"flex-item",label:(0,r.__)("Flex-item","amp")}];let p=!1;return s&&d&&m&&(p=`http://cf.c.ooyala.com/${s}`),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,r.__)("Ooyala Settings","amp")},(0,i.createElement)(o.TextControl,{label:(0,r.__)("Video embed code (required)","amp"),value:s,onChange:e=>a({dataEmbedCode:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Player ID (required)","amp"),value:d,onChange:e=>a({dataPlayerId:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Provider code for the account (required)","amp"),value:m,onChange:e=>a({dataPcode:e})}),(0,i.createElement)(o.SelectControl,{label:(0,r.__)("Player version","amp"),value:u,options:[{value:"v3",label:(0,r.__)("V3","amp")},{value:"v4",label:(0,r.__)("V4","amp")}],onChange:e=>a({dataPlayerVersion:e})}),(0,i.createElement)(n.CR,{...e,ampLayoutOptions:c}))),p&&(0,i.createElement)(n.om,{name:(0,r.__)("Ooyala Player","amp"),url:p}),!p&&(0,i.createElement)(o.Placeholder,{label:(0,r.__)("Ooyala Player","amp")},(0,i.createElement)("p",null,(0,r.__)("Add required data to use the block.","amp"))))},save:({attributes:e})=>{const{dataEmbedCode:t,dataPlayerId:a,dataPcode:r,dataPlayerVersion:l,ampLayout:o,height:n,width:s}=e,d={layout:o,height:n,"data-embedcode":t,"data-playerid":a,"data-pcode":r,"data-playerversion":l};return"fixed-height"!==o&&s&&(d.width=s),(0,i.createElement)("amp-ooyala-player",{...d})}}},120:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>d});var r=a(736),i=a(196),l=a(175),o=a(609),n=a(503);const s="amp/amp-reach-player",d={title:(0,r.__)("AMP Reach Player","amp"),description:(0,r.__)("Displays the Reach Player configured in the Beachfront Reach platform.","amp"),category:"embed",icon:"embed-generic",keywords:[(0,r.__)("Embed","amp"),(0,r.__)("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:s}=t,d=[{value:"responsive",label:(0,r.__)("Responsive","amp")},{value:"fixed-height",label:(0,r.__)("Fixed Height","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")},{value:"fill",label:(0,r.__)("Fill","amp")},{value:"flex-item",label:(0,r.__)("Flex-item","amp")}];let m=!1;return s&&(m="https://media-cdn.beachfrontreach.com/acct_1/video/"),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,r.__)("Reach Settings","amp")},(0,i.createElement)(o.TextControl,{label:(0,r.__)("Embed ID (required)","amp"),value:s,onChange:e=>a({dataEmbedId:e})}),(0,i.createElement)(n.CR,{...e,ampLayoutOptions:d}))),m&&(0,i.createElement)(n.om,{name:(0,r.__)("Reach Player","amp"),url:m}),!m&&(0,i.createElement)(o.Placeholder,{label:(0,r.__)("Reach Player","amp")},(0,i.createElement)("p",null,(0,r.__)("Add Reach player embed ID to use the block.","amp"))))},save:({attributes:e})=>{const{dataEmbedId:t,ampLayout:a,height:r,width:l}=e,o={layout:a,height:r,"data-embed-id":t};return"fixed-height"!==a&&l&&(o.width=l),(0,i.createElement)("amp-reach-player",{...o})}}},884:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>s,settings:()=>d});var r=a(736),i=a(196),l=a(175),o=a(609),n=a(503);const s="amp/amp-springboard-player",d={title:(0,r.__)("AMP Springboard Player","amp"),description:(0,r.__)("Displays the Springboard Player used in the Springboard Video Platform","amp"),category:"embed",icon:"embed-generic",keywords:[(0,r.__)("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:s,dataPlayerId:d,dataContentId:m,dataDomain:u,dataMode:c,dataItems:p}=t,h=[{value:"responsive",label:(0,r.__)("Responsive","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")},{value:"fill",label:(0,r.__)("Fill","amp")},{value:"flex-item",label:(0,r.__)("Flex-item","amp")}];let b=!1;return s&&m&&u&&c&&p&&(b="https://cms.springboardplatform.com/embed_iframe/"),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l.InspectorControls,null,(0,i.createElement)(o.PanelBody,{title:(0,r.__)("Springboard Player Settings","amp")},(0,i.createElement)(o.TextControl,{label:(0,r.__)("Site ID (required)","amp"),value:s,onChange:e=>a({dataSiteId:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Content ID (required)","amp"),value:m,onChange:e=>a({dataContentId:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Player ID","amp"),value:d,onChange:e=>a({dataPlayerId:e})}),(0,i.createElement)(o.TextControl,{label:(0,r.__)("Springboard partner domain","amp"),value:u,onChange:e=>a({dataDomain:e})}),(0,i.createElement)(o.SelectControl,{label:(0,r.__)("Mode (required)","amp"),value:c,options:[{value:"video",label:(0,r.__)("Video","amp")},{value:"playlist",label:(0,r.__)("Playlist","amp")}],onChange:e=>a({dataMode:e})}),(0,i.createElement)(o.TextControl,{type:"number",label:(0,r.__)("Number of video is playlist (required)","amp"),value:p,onChange:e=>a({dataItems:e})}),(0,i.createElement)(n.CR,{...e,ampLayoutOptions:h}))),b&&(0,i.createElement)(n.om,{name:(0,r.__)("Springboard Player","amp"),url:b}),!b&&(0,i.createElement)(o.Placeholder,{label:(0,r.__)("Springboard Player","amp")},(0,i.createElement)("p",null,(0,r.__)("Add required data to use the block.","amp"))))},save:({attributes:e})=>{const{dataSiteId:t,dataPlayerId:a,dataContentId:r,dataDomain:l,dataMode:o,dataItems:n,ampLayout:s,height:d,width:m}=e,u={layout:s,height:d,"data-site-id":t,"data-mode":o,"data-content-id":r,"data-player-id":a,"data-domain":l,"data-items":n};return"fixed-height"!==s&&m&&(u.width=e.width),(0,i.createElement)("amp-springboard-player",{...u})}}},415:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>m,settings:()=>u});var r=a(736),i=a(196);const l=window.moment;var o=a.n(l),n=a(175),s=a(609),d=a(503);const m="amp/amp-timeago",u={title:(0,r.__)("AMP Timeago","amp"),category:"common",icon:"backup",keywords:[(0,r.__)("Time difference","amp"),(0,r.__)("Time ago","amp"),(0,r.__)("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:l,cutoff:m,dateTime:u}=t;let c;u?c=m&&parseInt(m)<Math.abs(o()(u).diff(o()(),"seconds"))?o()(u).format("dddd D MMMM HH:mm"):o()(u).fromNow():(c=o()(Date.now()).fromNow(),a({dateTime:o()(o()(),o().ISO_8601,!0).format()}));const p=[{value:"",label:(0,r.__)("Responsive","amp")},{value:"fixed",label:(0,r.__)("Fixed","amp")},{value:"fixed-height",label:(0,r.__)("Fixed Height","amp")}];return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(n.InspectorControls,null,(0,i.createElement)(s.PanelBody,{title:(0,r.__)("AMP Timeago Settings","amp")},(0,i.createElement)(s.DateTimePicker,{locale:"en",currentDate:u||o()(),onChange:e=>a({dateTime:o()(e,o().ISO_8601,!0).format()})}),(0,i.createElement)(d.CR,{...e,ampLayoutOptions:p}),(0,i.createElement)(s.TextControl,{type:"number",className:"blocks-amp-timeout__cutoff",label:(0,r.__)("Cutoff (seconds)","amp"),value:void 0!==m?m:"",onChange:e=>a({cutoff:e})}))),(0,i.createElement)(n.BlockControls,null,(0,i.createElement)(n.BlockAlignmentToolbar,{value:l,onChange:e=>{a({align:e})},controls:["left","center","right"]})),(0,i.createElement)("time",{dateTime:u},c))},save:({attributes:e})=>{const{ampLayout:t,width:a,height:r,align:l,cutoff:n,dateTime:s}=e,d={layout:"responsive",className:"align"+(l||"none"),datetime:s,locale:"en"};if(n&&(d.cutoff=n),t)switch(t){case"fixed-height":r&&(d.height=r,d.layout=t);break;case"fixed":r&&a&&(d.height=r,d.width=a,d.layout=t)}return(0,i.createElement)("amp-timeago",{...d},o()(e.dateTime).format("dddd D MMMM HH:mm"))}}},503:(e,t,a)=>{"use strict";a.d(t,{CR:()=>n,om:()=>o,kY:()=>m});var r=a(196),i=a(609),l=a(736);const o=({name:e,url:t})=>(0,r.createElement)(i.Placeholder,{label:e},(0,r.createElement)("p",{className:"components-placeholder__error"},t),(0,r.createElement)("p",{className:"components-placeholder__error"},(0,l.__)("Previews for this are unavailable in the editor, sorry!","amp"))),n=({attributes:e,setAttributes:t,ampLayoutOptions:a})=>{const{ampLayout:o,height:n,width:s}=e,d=!n&&("fixed"===o||"fixed-height"===o),m=!s&&"fixed"===o;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.SelectControl,{label:(0,l.__)("Layout","amp"),value:o,options:a,onChange:e=>t({ampLayout:e})}),m&&(0,r.createElement)(i.Notice,{status:"error",isDismissible:!1},(0,l.sprintf)(/* translators: %s is the layout name */ (0,l.__)("Width is required for %s layout","amp"),o)),(0,r.createElement)(i.TextControl,{type:"number",label:(0,l.__)("Width (px)","amp"),value:void 0!==s?s:"",onChange:e=>t({width:e})}),d&&(0,r.createElement)(i.Notice,{status:"error",isDismissible:!1},(0,l.sprintf)(/* translators: %s is the layout name */ (0,l.__)("Height is required for %s layout","amp"),o)),(0,r.createElement)(i.TextControl,{type:"number",label:(0,l.__)("Height (px)","amp"),value:n,onChange:e=>t({height:e})}))};var s=a(819),d=a(800);const m=(e,t)=>{if(!(0,s.isFunction)(e))return e;const{width:a,height:r}=t,i=()=>{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,s.get)(this,["options","allowedTypes"],null)},e.view=new d.tb(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:r}});this.states.add([new t,new e.media.controller.EditImage({model:this.options.editImage})])}})};return class extends e{buildAndSetFeatureImageFrame(){const{wp:e}=window,t=i(),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),r=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:r,editing:Boolean(this.props.value)}),e.media.frame=this.frame}}}},80:(e,t,a)=>{"use strict";a.d(t,{lm:()=>c,XI:()=>b,pb:()=>v,qM:()=>p,VB:()=>h});var r=a(196),i=a(819),l=a(736),o=a(609),n=a(175),s=a(818),d=a(307);const m=["core/paragraph","core/heading","core/code","core/quote","core/subhead"];var u=a(669);const c=(e,t)=>(0,i.isObject)(e)&&(0,i.isString)(t)?("core/gallery"===t&&(e.attributes||(e.attributes={}),e.attributes.ampCarousel={type:"boolean",default:!(0,s.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,p=(e,t)=>{if(!(0,i.isObject)(e)||!(0,i.isString)(t))return e;if(m.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:u.CP,source:"attribute",selector:"amp-fit-text",attribute:"min-font-size"},maxFont:{default:u.uK,source:"attribute",selector:"amp-fit-text",attribute:"max-font-size"},height:{default:"core/image"===t?200:10*Math.ceil(u.uK/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,r.createElement)("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,d.isValidElement)(e)&&"amp-fit-text"===e.type&&void 0!==e.props.className){const{className:t,...a}=e.props;a.className=null,e=(0,d.cloneElement)(e,a)}return e},b=e=>(0,i.isFunction)(e)?t=>{const{isSelected:a,name:i}=t;return a&&"core/image"===i?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(e,{...t}),(0,r.createElement)(_,{...t})):a&&"core/gallery"===i?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(e,{...t}),(0,r.createElement)(f,{...t})):(0,r.createElement)(e,{...t})}:e,g=e=>{const{attributes:{ampLightbox:t,linkTo:a},setAttributes:i}=e;return(0,r.createElement)(o.ToggleControl,{label:(0,l.__)("Add lightbox effect","amp"),checked:t,onChange:e=>{i({ampLightbox:!t}),e&&a&&"none"!==a&&i({linkTo:"none"})}})},y=e=>{const{attributes:{ampCarousel:t},setAttributes:a}=e;return(0,r.createElement)(o.ToggleControl,{label:(0,l.__)("Display as carousel","amp"),checked:t,onChange:()=>a({ampCarousel:!t})})},_=e=>{const{clientId:t}=e;return(0,s.useSelect)((e=>e("core/block-editor").getBlockParentsByBlockName(t,"core/gallery").length>0),[t])?null:(0,r.createElement)(n.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:(0,l.__)("AMP Settings","amp")},(0,r.createElement)(g,{...e})))},f=e=>(0,r.createElement)(n.InspectorAdvancedControls,null,(0,r.createElement)(o.BaseControl,{__nextHasNoMarginBottom:!0},(0,r.createElement)(o.BaseControl.VisualLabel,null,(0,l.__)("AMP Settings","amp")),(0,r.createElement)(g,{...e}),(0,r.createElement)(y,{...e}))),v=()=>{const{getEditedPostAttribute:e}=(0,s.select)("core/editor");return e("amp_enabled")||!1}},806:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>m,render:()=>u});var r=a(196),i=a(67),l=a(818),o=a(736),n=a(609),s=a(307);function d(){const{isAMPEnabled:e,toggleAMP:t}=function(){const e=(0,l.useSelect)((e=>e("core/editor").getEditedPostAttribute("amp_enabled")||!1),[]),{editPost:t}=(0,l.useDispatch)("core/editor");return{isAMPEnabled:e,toggleAMP:()=>t({amp_enabled:!e})}}(),a=(0,s.useRef)(`amp-toggle-${Math.random().toString(32).substr(-4)}`);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{htmlFor:a.current},(0,o.__)("Enable AMP","amp")),(0,r.createElement)(n.FormToggle,{checked:e,onChange:t,id:a.current}))}const m="amp-post-status-info",u=function(){return(0,l.useSelect)((e=>e("amp/block-editor").isDevToolsEnabled()),[])?null:(0,r.createElement)(i.PluginPostStatusInfo,null,(0,r.createElement)(d,null))}},492:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>l,render:()=>o});var r=a(196),i=a(847);const l="amp-post-featured-image-pre-publish-panel",o=()=>(0,r.createElement)(i.qI,null)},106:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>h,onlyPaired:()=>b,render:()=>g});var r=a(196),i=a(307),l=a(818),o=a(609),n=a(333),s=a(736),d=a(80),m=function(e){return(0,r.createElement)("svg",{...e},(0,r.createElement)("path",{d:"M41.629 28.161 28.624 49.804h-2.356l2.33-14.102-7.214.009-.1.002c-.65 0-1.176-.526-1.176-1.176 0-.279.259-.751.259-.751L33.329 12.17l2.395.01-2.388 14.123 7.251-.009h.115c.65 0 1.176.525 1.176 1.175 0 .264-.103.495-.25.691v.001ZM31 0C13.879 0 0 13.88 0 31c0 17.121 13.879 31 31 31 17.12 0 31-13.879 31-31C62 13.88 48.12 0 31 0Z",fill:"#82878c"}))};m.defaultProps={width:"62",height:"62",xmlns:"http://www.w3.org/2000/svg"};var u=function(e){return(0,r.createElement)("svg",{...e},(0,r.createElement)("path",{className:"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.createElement)("path",{className:"inner",d:"M48 33c8.285 0 15 6.716 15 15 0 8.284-6.715 15-15 15-8.284 0-15-6.716-15-15 0-8.284 6.716-15 15-15Zm-1.15 24.098 6.293-10.472a.555.555 0 0 0 .12-.335.569.569 0 0 0-.624-.568l-3.508.004 1.155-6.834-1.159-.005-6.272 10.46s-.125.228-.125.363a.57.57 0 0 0 .617.569l3.49-.005-1.126 6.823h1.14Z",fill:"none"}))};u.defaultProps={xmlns:"http://www.w3.org/2000/svg"};class c extends i.Component{constructor(...e){super(...e),this.buttonRef=(0,i.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.buttonRef.current&&this.buttonRef.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,i.renderToString)((0,r.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},(0,r.createElement)(o.Icon,{icon:u({viewBox:"0 0 98 98"})}),(0,r.createElement)("p",null,(0,s.__)("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,s.__)("Generating AMP preview…","amp"),e.close()}(this.previewWindow.document)):this.setPreviewWindowLink(t.href)}render(){const{previewLink:e,currentPostLink:t,errorMessages:a,isEnabled:i,isSaveable:l,isStandardMode:n}=this.props,d=e||t;return i&&!a.length&&!n&&(0,r.createElement)(o.Button,{className:"amp-editor-post-preview",href:d,title:(0,s.__)("Preview AMP","amp"),isSecondary:!0,disabled:!l,onClick:this.openPreviewWindow,ref:this.buttonRef},m({viewBox:"0 0 62 62",width:18,height:18}),(0,r.createElement)(o.VisuallyHidden,{as:"span"},/* translators: accessibility text */ (0,s.__)("(opens in a new tab)","amp")))}}const p=(0,n.compose)([(0,l.withSelect)(((e,{forcePreviewLink:t,forceIsAutosaveable:a})=>{const{getCurrentPostId:r,getEditedPostAttribute:i,isEditedPostSaveable:l,isEditedPostAutosaveable:o,getEditedPostPreviewLink:n}=e("core/editor"),{getAmpUrl:s,getAmpPreviewLink:m,getErrorMessages:u,isStandardMode:c}=e("amp/block-editor"),p=n(),h=p?((e,t)=>{const a=new URL(e),r=new URL(t);for(const[e,t]of a.searchParams.entries())r.searchParams.set(e,t);return r.href})(p,m()):void 0;return{postId:r(),currentPostLink:s(),previewLink:void 0!==t?t:h,isSaveable:l(),isAutosaveable:a||o(),isDraft:-1!==["draft","auto-draft"].indexOf(i("status")),isEnabled:(0,d.pb)(),errorMessages:u(),isStandardMode:c()}})),(0,l.withDispatch)((e=>({autosave:e("core/editor").autosave,savePost:e("core/editor").savePost})))])(c),h="amp-preview-button-wrapper",b=!0,g=function(){const e=(0,i.useRef)(null),t=(0,i.useRef)(null),{isEditedPostSaveable:a,isViewable:o}=(0,l.useSelect)((e=>({isEditedPostSaveable:e("core/editor").isEditedPostSaveable(),isViewable:e("core").getPostType(e("core/editor").getEditedPostAttribute("type"))?.viewable})),[]);return(0,i.useLayoutEffect)((()=>(t.current=document.querySelector(".editor-post-publish-button__button"),t.current?.parentNode&&(e.current||(e.current=document.createElement("div"),e.current.className="amp-wrapper-post-preview"),t.current.parentNode.insertBefore(e.current,t.current)),()=>{t.current&&e.current&&(t.current.parentNode.removeChild(e.current),t.current=null)})),[a,o]),e.current?(0,i.createPortal)((0,r.createElement)(p,null),e.current):null}},847:(e,t,a)=>{"use strict";a.d(t,{qI:()=>n,eA:()=>p});var r=a(196);const i=window.wp.editor;var l=a(67),o=a(736);const n=()=>(0,r.createElement)(l.PluginPrePublishPanel,{title:(0,o.__)("Featured Image","amp"),initialOpen:"true"},(0,r.createElement)(i.PostFeaturedImage,null));var s=a(819),d=a(333),m=a(609),u=a(761);const c=(e,t)=>(0,r.createElement)(m.Notice,{status:t,isDismissible:!1},e.map(((e,t)=>(0,r.createElement)("p",{key:`message-${t}`},e)))),p=(0,d.createHigherOrderComponent)((e=>(0,s.isFunction)(e)?t=>{const{media:a}=t;let i;if(a){const e=(0,u.oV)(a,(0,u.$2)());i=e?c(e,"warning"):null}else{const e=(0,o.__)("Selecting a featured image is recommended for an optimal user experience.","amp");i=c([e],"notice")}return(0,r.createElement)(e,{...t,noticeUI:i})}:e),"withFeaturedImageNotice");a(800);const{wp:h}=window},800:(e,t,a)=>{"use strict";a.d(t,{tb:()=>d}),a(819);var r=a(736),i=a(761);const{wp:l}=window,o="notice notice-warning notice-alt inline",n=l.media.View.extend({className:o,template:(()=>{let e=(0,r.sprintf)(/* translators: 1: image width in pixels. 2: image height in pixels. */ (0,r.__)("The selected image is too small (%1$s by %2$s pixels).","amp"),"{{width}}","{{height}}");return e+=" <# if ( minWidth && minHeight ) { #>",e+=(0,r.sprintf)(/* translators: 1: required minimum width in pixels. 2: required minimum height in pixels. */ (0,r.__)("It should have a size of at least %1$s by %2$s pixels.","amp"),"{{minWidth}}","{{minHeight}}"),e+="<# } else if ( minWidth ) { #>",e+=(0,r.sprintf)(/* translators: placeholder is required minimum width in pixels. */ (0,r.__)("It should have a width of at least %s pixels.","amp"),"{{minWidth}}"),e+="<# } else if ( minHeight ) { #>",e+=(0,r.sprintf)(/* translators: placeholder is required minimum height in pixels. */ (0,r.__)("It should have a height of at least %s pixels.","amp"),"{{minHeight}}"),e+="<# } #>",(0,i.kM)(e)})()}),s=l.media.View.extend({className:"notice notice-warning notice-alt inline",template:(()=>{const e=(0,r.sprintf)(/* translators: 1: the selected file type. */ (0,r.__)("The selected file mime type, %1$s, is not allowed.","amp"),"{{mimeType}}");return(0,i.kM)(e)})()}),d=(l.media.View.extend({className:o,template:(()=>{const e=(0,r.sprintf)(/* translators: 1: the recommended max MB per second for videos. 2: the actual MB per second of the video. */ (0,r.__)("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,i.kM)(e)})()}),l.media.view.Toolbar.Select.extend({refresh(){l.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"),r=e.collection.get("featured-image").get("suggestedHeight");t&&"image"===t.get("type")&&t.get("width")&&!(0,i.HG)({width:t.get("width"),height:t.get("height")},{width:a,height:r})?this.secondary.set("select-error",new n({minWidth:a,minHeight:r,width:t.get("width"),height:t.get("height")})):this.secondary.unset("select-error"),i.kC.call(this,t,s)}}));l.media.view.Toolbar.Select.extend({refresh(){l.media.view.Toolbar.Select.prototype.refresh.call(this);const e=this.controller.state().get("selection").models[0];i.kC.call(this,e,s)}})},669:(e,t,a)=>{"use strict";a.d(t,{CP:()=>r,TQ:()=>l,uK:()=>i});const r=6,i=72,l="select-file-type-error"},761:(e,t,a)=>{"use strict";a.d(t,{kC:()=>u,$2:()=>s,kM:()=>m,HG:()=>n,oV:()=>d});var r=a(819);const i=ampBlockEditor;var l=a(736),o=a(669);const n=(e,t)=>{if(!e||!e.width||!e.height)return!1;const{width:a,height:r}=t;return(!a||e.width>=a)&&(!r||e.height>=r)},s=()=>({width:i.featuredImageMinimumWidth,height:i.featuredImageMinimumHeight}),d=(e,t)=>{if(!e)return[(0,l.__)("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,l.sprintf)(/* translators: List of image formats */ (0,l.__)("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")),!n(e.media_details,t)){const{width:e,height:r}=t;e&&r?a.push((0,l.sprintf)(/* translators: 1: minimum width, 2: minimum height. */ (0,l.__)("The featured image should have a size of at least %1$s by %2$s pixels.","amp"),Math.ceil(e),Math.ceil(r))):t.width?a.push((0,l.sprintf)(/* translators: placeholder is minimum width. */ (0,l.__)("The featured image should have a width of at least %s pixels.","amp"),Math.ceil(e))):t.height&&a.push((0,l.sprintf)(/* translators: placeholder is minimum height. */ (0,l.__)("The featured image should have a height of at least %s pixels.","amp"),Math.ceil(r)))}return 0===a.length?null:a},m=e=>{const t=(0,r.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,r.get)(this,["options","allowedTypes"],null),i=this.get("select");a&&e.get("type")&&!((e,t)=>{const a=e.get("type"),r=e.get("mime");return!(!t.includes(a)&&!t.includes(r))&&"video"!==a})(e,a)?(this.secondary.set(o.TQ,new t({mimeType:e.get("mime")})),i&&i.model&&i.model.set("disabled",!0)):(this.secondary.unset(o.TQ),i&&i.model&&i.model.set("disabled",!1))}},196:e=>{"use strict";e.exports=window.React},819:e=>{"use strict";e.exports=window.lodash},175:e=>{"use strict";e.exports=window.wp.blockEditor},609:e=>{"use strict";e.exports=window.wp.components},333:e=>{"use strict";e.exports=window.wp.compose},818:e=>{"use strict";e.exports=window.wp.data},67:e=>{"use strict";e.exports=window.wp.editPost},307:e=>{"use strict";e.exports=window.wp.element},736:e=>{"use strict";e.exports=window.wp.i18n}},t={};function a(r){var i=t[r];if(void 0!==i)return i.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,a),l.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 r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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:()=>p,hasThemeSupport:()=>m,isDevToolsEnabled:()=>u,isStandardMode:()=>c});const t=window.wp.hooks,r=window.wp.plugins,i=window.wp.blocks;var l=a(818),o=a(847),n=a(761),s=a(503),d=a(80);function m(e){return Boolean(e.hasThemeSupport)}function u(e){return e.isDevToolsEnabled}function c(e){return Boolean(e.isStandardMode)}function p(e){return e.errorMessages}function h(e){return e.ampPreviewLink}function b(e){return e.ampUrl}function g(e){return e.ampBlocksInUse}(0,l.register)((0,l.createReduxStore)("amp/block-editor",{reducer:e=>e,selectors:e,initialState:{...window.ampBlockEditor}}));const{isStandardMode:y,getAmpBlocksInUse:_}=(0,l.select)("amp/block-editor"),f=a(72);f.keys().forEach((e=>{const{name:t,render:a,icon:i,onlyPaired:l=!1}=f(e);l&&y()||(0,r.registerPlugin)(t,{icon:i,render:a})})),(0,t.addFilter)("blocks.registerBlockType","ampEditorBlocks/addAttributes",d.lm),(0,t.addFilter)("blocks.registerBlockType","ampEditorBlocks/deprecateAmpFitText",d.qM),(0,t.addFilter)("blocks.getSaveElement","ampEditorBlocks/deprecateAmpFitText/removeMiscAttrs",d.VB),(0,t.addFilter)("editor.BlockEdit","ampEditorBlocks/filterEdit",d.XI,20),(0,t.addFilter)("editor.PostFeaturedImage","ampEditorBlocks/withFeaturedImageNotice",o.eA),(0,t.addFilter)("editor.MediaUpload","ampEditorBlocks/withMediaLibraryNotice",(e=>(0,s.kY)(e,(0,n.$2)())));const v=_(),w=a(55);w.keys().forEach((e=>{const{name:t,settings:a}=w(e);y()&&v.includes(t)&&(0,i.registerBlockType)(t,a)}))})()})();