File: /var/www/html/wp-content/plugins/wp-recipe-maker/dist/blocks.js
var WPRecipeMakerAdmin;(()=>{var e={99e3:()=>{const{__:e}=wp.i18n,{registerBlockType:t}=wp.blocks,{Button:r,PanelBody:a,PanelRow:i,ToolbarGroup:p,ToolbarButton:l,TextControl:o,SelectControl:n}=wp.components,{Fragment:c}=wp.element,{select:s}=wp.data;let m,d,u,w;wp.hasOwnProperty("blockEditor")?(m=wp.blockEditor.InspectorControls,d=wp.blockEditor.BlockControls,u=wp.blockEditor.useBlockProps):(m=wp.editor.InspectorControls,d=wp.editor.BlockControls,u=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),w=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,t("wp-recipe-maker/list",{apiVersion:3,title:e("WPRM Roundup List","wp-recipe-maker"),description:e("Display a recipe roundup list with optional itemlist metadata.","wp-recipe-maker"),icon:"list-view",keywords:["wprm","wp recipe maker"],category:"wp-recipe-maker",supports:{html:!1,align:!0},transforms:{from:[{type:"shortcode",tag:"wprm-list",attributes:{id:{type:"number",shortcode:({named:{id:e=""}})=>parseInt(e.replace("id",""))}}}]},edit:t=>{const{attributes:n,setAttributes:s,isSelected:k}=t,b=u(),R=e=>{s({id:e.id,updated:Date.now()})};return React.createElement("div",b,n.id?React.createElement(c,null,React.createElement(d,null,React.createElement(p,null,React.createElement(l,{icon:"edit",label:e("Edit List","wp-recipe-maker"),onClick:()=>{WPRM_Modal.open("list",{listId:n.id,saveCallback:R})}}))),React.createElement(m,null,React.createElement(a,{title:e("List Details","wp-recipe-maker")},React.createElement(o,{label:e("List ID","wp-recipe-maker"),value:n.id,disabled:!0}),React.createElement(i,null,React.createElement(r,{variant:"secondary",onClick:()=>{WPRM_Modal.open("list",{listId:n.id,saveCallback:R})}},e("Edit List","wp-recipe-maker"))))),React.createElement(w,{block:"wp-recipe-maker/list",attributes:n})):React.createElement(c,null,React.createElement("h2",null,"WPRM ",e("List","wp-recipe-maker")),React.createElement(r,{variant:"primary",onClick:()=>{WPRM_Modal.open("list",{saveCallback:R})}},e("Create new List","wp-recipe-maker"))," ",React.createElement(r,{variant:"secondary",onClick:()=>{WPRM_Modal.open("select",{title:e("Insert existing List","wp-recipe-maker"),button:e("Insert","wp-recipe-maker"),type:"list",insertCallback:e=>{R(e.list)}})}},e("Insert existing List","wp-recipe-maker"))," ",wprm_admin.addons.premium&&React.createElement(r,{variant:"secondary",onClick:()=>{WPRM_Modal.open("select",{title:e("Create new from existing List","wp-recipe-maker"),button:e("Clone List","wp-recipe-maker"),type:"list",nextStepCallback:e=>{WPRM_Modal.open("list",{listId:e.list.id,cloneList:!0,saveCallback:R},!0)}})}},e("Create new from existing List","wp-recipe-maker"))))},save:e=>{const{attributes:t}=e;return t.id?`[wprm-list id="${e.attributes.id}"]`:null}})},86152:()=>{const{__:e}=wp.i18n,{registerBlockType:t}=wp.blocks,{Button:r,PanelBody:a,Toolbar:i,TextControl:p,SelectControl:l}=wp.components,{Fragment:o}=wp.element;let n,c,s,m;wp.hasOwnProperty("blockEditor")?(n=wp.blockEditor.InspectorControls,c=wp.blockEditor.BlockControls,s=wp.blockEditor.useBlockProps):(n=wp.editor.InspectorControls,c=wp.editor.BlockControls,s=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),m=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,t("wp-recipe-maker/recipe-part",{apiVersion:3,title:e("Recipe Part","wp-recipe-maker"),description:e("Display a specific recipe part","wp-recipe-maker"),icon:"shortcode",keywords:[],example:{attributes:{id:-1,part:"recipe-name"}},category:"wp-recipe-maker",supports:{html:!1},edit:t=>{const{attributes:r,setAttributes:i,isSelected:o}=t,c=s();return React.createElement("div",c,React.createElement(n,null,React.createElement(a,{title:e("Recipe Part Details","wp-recipe-maker")},React.createElement(p,{label:e("Recipe ID","wp-recipe-maker"),help:e("Leave blank to use the first recipe on the page","wp-recipe-maker"),value:r.id,onChange:e=>{let t=parseInt(e);(isNaN(t)||t<=0)&&(t=""),i({id:t})}}),React.createElement(l,{label:e("Recipe Part","wp-recipe-maker"),value:r.part,options:[{label:"Add to Collection Button",value:"recipe-add-to-collection"},{label:"Adjustable Servings",value:"recipe-adjustable-servings"},{label:"Author",value:"recipe-author"},{label:"Cost",value:"recipe-cost"},{label:"Counter",value:"recipe-counter"},{label:"Email Share",value:"recipe-email-share"},{label:"Equipment",value:"recipe-equipment"},{label:"Facebook Share",value:"recipe-facebook-share"},{label:"Grow.me Button",value:"recipe-grow.me"},{label:"My Shopping Help Button",value:"recipe-my-shopping-help"},{label:"Image",value:"recipe-image"},{label:"Ingredients",value:"recipe-ingredients"},{label:"Instructions",value:"recipe-instructions"},{label:"Media Toggle",value:"recipe-media-toggle"},{label:"Name",value:"recipe-name"},{label:"Notes",value:"recipe-notes"},{label:"Pin Button",value:"recipe-pin"},{label:"Rating",value:"recipe-rating"},{label:"Servings",value:"recipe-servings"},{label:"Summary",value:"recipe-summary"},{label:"Text Share",value:"recipe-text-share"},{label:"Unit Conversion",value:"recipe-unit-conversion"},{label:"Video",value:"recipe-video"}],onChange:e=>i({part:e})}))),React.createElement(m,{block:"wp-recipe-maker/recipe-part",attributes:r}))},save:e=>null})},48790:()=>{const{__:e}=wp.i18n,{registerBlockType:t}=wp.blocks,{Button:r,PanelBody:a,Toolbar:i,TextControl:p,SelectControl:l}=wp.components,{Fragment:o}=wp.element;let n,c,s,m;wp.hasOwnProperty("blockEditor")?(n=wp.blockEditor.InspectorControls,c=wp.blockEditor.BlockControls,s=wp.blockEditor.useBlockProps):(n=wp.editor.InspectorControls,c=wp.editor.BlockControls,s=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),m=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,t("wp-recipe-maker/recipe-snippet",{apiVersion:3,title:e("Recipe Snippet","wp-recipe-maker"),description:e("Displays the recipe snippet template. Usually used for a Jump to Recipe button at the top of the post content.","wp-recipe-maker"),icon:"button",keywords:[],example:{attributes:{id:-1}},category:"wp-recipe-maker",supports:{html:!1},transforms:{from:[{type:"shortcode",tag:"wprm-recipe-snippet",attributes:{template:{type:"string",shortcode:({named:{template:e=""}})=>e.replace("template","")}}}]},edit:t=>{const{attributes:r,setAttributes:i,isSelected:p}=t,o=s();let c=[{label:"Use default from settings",value:""}];const d=wprm_admin.recipe_templates.modern;for(let e in d)d[e].premium&&!wprm_admin.addons.premium||c.push({value:e,label:d[e].name});return React.createElement("div",o,React.createElement(n,null,React.createElement(a,{title:e("Recipe Snippet Details","wp-recipe-maker")},React.createElement(l,{label:e("Recipe Snippet Template","wp-recipe-maker"),value:r.template,options:c,onChange:e=>i({template:e})}))),React.createElement(m,{block:"wp-recipe-maker/recipe-snippet",attributes:r}))},save:e=>null})}},t={};function r(a){var i=t[a];if(void 0!==i)return i.exports;var p=t[a]={exports:{}};return e[a](p,p.exports,r),p.exports}(()=>{"use strict";const{__:e}=wp.i18n,{registerBlockType:t}=wp.blocks;let a,i;wp.hasOwnProperty("blockEditor")?(a=wp.blockEditor.RichText,i=wp.blockEditor.useBlockProps):(a=wp.editor.RichText,i=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),t("wp-recipe-maker/jump-to-recipe",{apiVersion:3,title:e("Jump to Recipe","wp-recipe-maker"),description:e("A button to jump to a WPRM Recipe on the same page.","wp-recipe-maker"),icon:"button",keywords:["wprm"],category:"wp-recipe-maker",supports:{html:!1},example:{attributes:{id:-1}},transforms:{from:[{type:"shortcode",tag:"wprm-recipe-jump",attributes:{id:{type:"number",shortcode:({named:{id:e=""}})=>parseInt(e.replace("id",""))},text:{type:"string",shortcode:({named:{text:e=""}})=>e.replace("text","")}}}]},edit:e=>{const{attributes:t,setAttributes:r,isSelected:p}=e,{text:l}=t,o=i();return React.createElement("div",o,React.createElement(a,{tagName:"a",placeholder:"Link Text",value:[l],onChange:e=>(e=>{r({text:e[0]})})(e),multiline:!1,allowedFormats:[]}))},save:e=>null});const{__:p}=wp.i18n,{registerBlockType:l}=wp.blocks;let o,n;wp.hasOwnProperty("blockEditor")?(o=wp.blockEditor.RichText,n=wp.blockEditor.useBlockProps):(o=wp.editor.RichText,n=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),l("wp-recipe-maker/jump-to-video",{apiVersion:3,title:p("Jump to Video","wp-recipe-maker"),description:p("A button to jump to a WPRM Recipe Video on the same page.","wp-recipe-maker"),icon:"button",keywords:["wprm"],example:{attributes:{id:-1}},category:"wp-recipe-maker",supports:{html:!1},transforms:{from:[{type:"shortcode",tag:"wprm-recipe-jump-video",attributes:{id:{type:"number",shortcode:({named:{id:e=""}})=>parseInt(e.replace("id",""))},text:{type:"string",shortcode:({named:{text:e=""}})=>e.replace("text","")}}}]},edit:e=>{const{attributes:t,setAttributes:r,isSelected:a}=e,{text:i}=t,p=n();return React.createElement("div",p,React.createElement(o,{tagName:"a",placeholder:"Link Text",value:[i],onChange:e=>(e=>{r({text:e[0]})})(e),multiline:!1,allowedFormats:[]}))},save:e=>null});r(99e3);const{__:c}=wp.i18n,{registerBlockType:s}=wp.blocks,{Fragment:m}=wp.element;let d,u,w;wp.hasOwnProperty("blockEditor")?(d=wp.blockEditor.BlockControls,u=wp.blockEditor.AlignmentToolbar,w=wp.blockEditor.useBlockProps):(d=wp.editor.BlockControls,u=wp.editor.AlignmentToolbar,w=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),s("wp-recipe-maker/nutrition-label",{apiVersion:3,title:c("Nutrition Label","wp-recipe-maker"),description:c("The nutrition label for a WPRM Recipe.","wp-recipe-maker"),icon:"analytics",keywords:["wprm"],example:{attributes:{id:-1}},category:"wp-recipe-maker",supports:{html:!1},transforms:{from:[{type:"shortcode",tag:"wprm-nutrition-label",attributes:{id:{type:"number",shortcode:({named:{id:e=""}})=>parseInt(e.replace("id",""))},align:{type:"string",shortcode:({named:{align:e=""}})=>e.replace("align","")}}}]},edit:e=>{const{attributes:t,setAttributes:r,isSelected:a}=e,{align:i}=t,p=w({style:{textAlign:i}});return React.createElement(m,null,React.createElement(d,null,React.createElement(u,{value:i,onChange:e=>{r({align:e})}})),React.createElement("div",p,React.createElement("div",{className:"wprm-nutrition-label-placeholder"},"WPRM Nutrition Label Placeholder")))},save:e=>null});const{__:k}=wp.i18n,{registerBlockType:b}=wp.blocks;let R,g;wp.hasOwnProperty("blockEditor")?(R=wp.blockEditor.RichText,g=wp.blockEditor.useBlockProps):(R=wp.editor.RichText,g=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),b("wp-recipe-maker/print-recipe",{apiVersion:3,title:k("Print Recipe","wp-recipe-maker"),description:k("A button to print a WPRM Recipe.","wp-recipe-maker"),icon:"button",keywords:["wprm"],example:{attributes:{id:-1}},category:"wp-recipe-maker",supports:{html:!1},transforms:{from:[{type:"shortcode",tag:"wprm-recipe-print",attributes:{id:{type:"number",shortcode:({named:{id:e=""}})=>parseInt(e.replace("id",""))},text:{type:"string",shortcode:({named:{text:e=""}})=>e.replace("text","")}}}]},edit:e=>{const{attributes:t,setAttributes:r,isSelected:a}=e,{text:i}=t,p=g();return React.createElement("div",p,React.createElement(R,{tagName:"a",placeholder:"Link Text",value:[i],onChange:e=>(e=>{r({text:e[0]})})(e),multiline:!1,allowedFormats:[]}))},save:e=>null});const{__:E}=wp.i18n,{registerBlockType:y}=wp.blocks,{Button:h,PanelBody:v,PanelRow:C,ToolbarGroup:P,ToolbarButton:f,TextControl:_,SelectControl:B}=wp.components,{Fragment:x}=wp.element,{select:S}=wp.data;let M,I,T,A;wp.hasOwnProperty("blockEditor")?(M=wp.blockEditor.InspectorControls,I=wp.blockEditor.BlockControls,T=wp.blockEditor.useBlockProps):(M=wp.editor.InspectorControls,I=wp.editor.BlockControls,T=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),A=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,y("wp-recipe-maker/recipe",{apiVersion:3,title:E("WPRM Recipe","wp-recipe-maker"),description:E("Display a recipe box with recipe metadata.","wp-recipe-maker"),icon:"media-document",keywords:["wprm","wp recipe maker"],example:{attributes:{id:-1}},category:"wp-recipe-maker",supports:{html:!1,align:!0},transforms:{from:[{type:"shortcode",tag:"wprm-recipe",attributes:{id:{type:"number",shortcode:({named:{id:e=""}})=>parseInt(e.replace("id",""))},template:{type:"string",shortcode:({named:{template:e=""}})=>e.replace("template","")}}}]},edit:e=>{const{attributes:t,setAttributes:r,isSelected:a}=e,i=T(),p=e=>{r({id:e.id,updated:Date.now()})};let l=[{label:E("Use default from settings","wp-recipe-maker"),value:""}];const o=wprm_admin.recipe_templates.modern;for(let n in o)o[n].premium&&!wprm_admin.addons.premium||l.push({value:n,label:o[n].name});return React.createElement("div",i,t.id?React.createElement(x,null,React.createElement(I,null,React.createElement(P,null,React.createElement(f,{icon:"edit",label:E("Edit Recipe","wp-recipe-maker"),onClick:()=>{WPRM_Modal.open("recipe",{recipeId:t.id,saveCallback:p})}}))),React.createElement(M,null,React.createElement(v,{title:E("Recipe Details","wp-recipe-maker")},React.createElement(_,{label:E("Recipe ID","wp-recipe-maker"),value:t.id,disabled:!0}),React.createElement(B,{label:E("Recipe Template","wp-recipe-maker"),value:t.template,options:l,onChange:e=>r({template:e,updated:Date.now()})}),React.createElement(C,null,React.createElement(h,{variant:"secondary",onClick:()=>{WPRM_Modal.open("recipe",{recipeId:t.id,saveCallback:p})}},E("Edit Recipe","wp-recipe-maker"))))),React.createElement(A,{block:"wp-recipe-maker/recipe",attributes:t})):React.createElement(x,null,React.createElement("h2",null,"WPRM ",E("Recipe","wp-recipe-maker")),React.createElement(h,{variant:"primary",onClick:()=>{let e={saveCallback:p};if(wprm_admin.settings.hasOwnProperty("recipe_name_from_post_title")&&wprm_admin.settings.recipe_name_from_post_title){let t=JSON.parse(JSON.stringify(wprm_admin_modal.recipe));t.name=S("core/editor").getEditedPostAttribute("title"),e.recipe=t}WPRM_Modal.open("recipe",e)}},E("Create new Recipe","wp-recipe-maker"))," ",React.createElement(h,{variant:"secondary",onClick:()=>{WPRM_Modal.open("select",{title:E("Insert existing Recipe","wp-recipe-maker"),button:E("Insert","wp-recipe-maker"),fields:{recipe:{}},insertCallback:e=>{p(e.recipe)}})}},E("Insert existing Recipe","wp-recipe-maker"))," ",wprm_admin.addons.premium&&React.createElement(h,{variant:"secondary",onClick:()=>{WPRM_Modal.open("select",{title:E("Create new from existing Recipe","wp-recipe-maker"),button:E("Clone Recipe","wp-recipe-maker"),fields:{recipe:{}},nextStepCallback:e=>{WPRM_Modal.open("recipe",{recipeId:e.recipe.id,cloneRecipe:!0,saveCallback:p},!0)}})}},E("Create new from existing Recipe","wp-recipe-maker"))))},save:e=>{const{attributes:t}=e;return t.id?`[wprm-recipe id="${e.attributes.id}"]`:null},deprecated:[{attributes:{id:{type:"number",default:0},template:{type:"string",default:""},updated:{type:"number",default:0}},save:e=>null}]});r(86152);const{__:N}=wp.i18n,{PanelBody:W,TextControl:D,TextareaControl:L,SelectControl:$}=wp.components,{compose:O}=wp.compose,{withSelect:V,withDispatch:F}=wp.data;let j;j=wp.hasOwnProperty("blockEditor")?wp.blockEditor.InspectorControls:wp.editor.InspectorControls;const G=O(V(((e,t)=>{const r=e("core/editor").getEditedPostAttribute("meta"),{getGlobalBlockCount:a}=e("core/block-editor"),i=r["wprm-recipe-roundup-name"],p=i instanceof Array?i[0]:i,l=r["wprm-recipe-roundup-description"];return{meta:r,name:p,description:l instanceof Array?l[0]:l,recipeRoundupCount:a("wp-recipe-maker/recipe-roundup-item")}})),F(((e,t)=>{const{editPost:r}=e("core/editor");return{onChangeName:e=>{let a={...t.meta};return a["wprm-recipe-roundup-name"]=e,r({meta:a})},onChangeDescription:e=>{let a={...t.meta};return a["wprm-recipe-roundup-description"]=e,r({meta:a})}}})))((function(e){const{attributes:t,setAttributes:r,name:a,onChangeName:i,description:p,onChangeDescription:l,recipeRoundupCount:o}=e;let n=[{label:"Use default from settings",value:""}];const c=wprm_admin.recipe_templates.modern;for(let s in c)c[s].premium&&!wprm_admin.addons.premium||n.push({value:s,label:c[s].name});return React.createElement(j,null,React.createElement("p",null,React.createElement("a",{href:"https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts",target:"_blank"},N("Learn more","wp-recipe-maker"))),React.createElement(W,{title:N("Recipe Roundup","wp-recipe-maker")},React.createElement(D,{label:N("Name","wp-recipe-maker"),value:a,onChange:i}),React.createElement(L,{label:N("Description","wp-recipe-maker"),value:p,onChange:l}),React.createElement(D,{label:N("Number of Roundup Recipes","wp-recipe-maker"),value:o,disabled:!0})),React.createElement(W,{title:N("Recipe Details","wp-recipe-maker")},t.id?React.createElement(D,{label:N("Recipe ID","wp-recipe-maker"),value:t.id,disabled:!0}):null,t.link?React.createElement(D,{label:N("Recipe Link","wp-recipe-maker"),value:t.link,disabled:!0}):null,React.createElement($,{label:N("Recipe Template","wp-recipe-maker"),value:t.template,options:n,onChange:e=>r({template:e})})))})),{__:J}=wp.i18n,{registerBlockType:U}=wp.blocks,{Button:q,ToolbarGroup:H,ToolbarButton:z}=wp.components,{Fragment:K}=wp.element;let Q,X,Y;wp.hasOwnProperty("blockEditor")?(Q=wp.blockEditor.BlockControls,X=wp.blockEditor.useBlockProps):(Q=wp.editor.BlockControls,X=wp.blockEditor?wp.blockEditor.useBlockProps:()=>({className:""})),Y=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender;const Z=e=>e=(e=(e=(e=e.replace(/"/gm,"%22")).replace(/\[/gm,"%5B")).replace(/\]/gm,"%5D")).replace(/\r?\n|\r/gm,"%0A");U("wp-recipe-maker/recipe-roundup-item",{apiVersion:3,title:J("WPRM Recipe Roundup Item","wp-recipe-maker"),description:J("Output your Recipe Roundup as ItemList metadata.","wp-recipe-maker"),icon:"media-document",keywords:["wprm","wp recipe maker"],example:{attributes:{id:0,link:"https://bootstrapped.ventures",name:"Demo Recipe",summary:"This is a demo recipe."}},category:"wp-recipe-maker",supports:{html:!1,align:!0},transforms:{from:[{type:"shortcode",tag:"wprm-recipe-roundup-item",attributes:{id:{type:"number",shortcode:({named:{id:e=""}})=>{const t=parseInt(e.replace("id",""));return isNaN(t)?0:t}},link:{type:"string",shortcode:({named:{link:e=""}})=>e.replace("link","")},nofollow:{type:"string",shortcode:({named:{nofollow:e=""}})=>e.replace("nofollow","")},newtab:{type:"string",shortcode:({named:{newtab:e=""}})=>e.replace("newtab","")},image:{type:"number",shortcode:({named:{image:e=""}})=>{const t=parseInt(e.replace("image",""));return isNaN(t)?0:t}},image_url:{type:"string",shortcode:({named:{image_url:e=""}})=>e.replace("image_url","")},credit:{type:"string",shortcode:({named:{credit:e=""}})=>e.replace("credit","")},name:{type:"string",shortcode:({named:{name:e=""}})=>e.replace("name","")},summary:{type:"string",shortcode:({named:{summary:e=""}})=>e.replace("summary","")},button:{type:"string",shortcode:({named:{button:e=""}})=>e.replace("button","")},template:{type:"string",shortcode:({named:{template:e=""}})=>e.replace("template","")}}}]},edit:e=>{const{attributes:t,setAttributes:r,isSelected:a}=e,i=X(),p=e=>{r({id:"external"!==e.type?e.post.id:0,link:e.link,nofollow:e.nofollow?"1":"",newtab:e.newtab?"1":"",image:parseInt(e.image.id),image_url:e.image.url,credit:e.credit,name:e.name,button:e.button,summary:e.summary.replace(/\r?\n|\r/gm,"%0A")})};return React.createElement("div",i,t.id||t.link?React.createElement(K,null,React.createElement(G,e),React.createElement(Q,null,React.createElement(H,null,React.createElement(z,{icon:"edit",label:J("Edit Recipe","wp-recipe-maker"),onClick:()=>{WPRM_Modal.open("roundup",{fields:{roundup:t},insertCallback:e=>{p(e)}})}}))),React.createElement(Y,{block:"wp-recipe-maker/recipe-roundup-item",attributes:t})):React.createElement(K,null,React.createElement("h2",null,"WPRM ",J("Recipe Roundup Item","wp-recipe-maker")),React.createElement(q,{variant:"primary",onClick:()=>{WPRM_Modal.open("roundup",{insertCallback:e=>{p(e)}})}},J("Select Recipe","wp-recipe-maker"))))},save:e=>{const{attributes:t}=e;if(t.id){let e=`[wprm-recipe-roundup-item id="${t.id}"`;return t.template&&(e+=` template="${t.template}"`),t.image&&0<parseInt(t.image)&&(e+=` image="${t.image}"`),t.name&&(e+=` name="${Z(t.name)}"`),t.summary&&(e+=` summary="${Z(t.summary)}"`),t.button&&(e+=` button="${Z(t.button)}"`),e+="]",e}if(t.link){let e=`[wprm-recipe-roundup-item link="${Z(t.link)}"`;return e+=t.nofollow?' nofollow="1"':"",e+=t.newtab?"":' newtab="0"',e+=` name="${Z(t.name)}"`,e+=` summary="${Z(t.summary)}"`,t.button&&(e+=` button="${Z(t.button)}"`),e+=t.image?` image="${t.image}"`:"",-1===t.image&&t.image_url&&(e+=t.image_url?` image_url="${t.image_url}"`:""),t.credit&&(e+=` credit="${Z(t.credit)}"`),e+="]",e}return null},deprecated:[{attributes:{id:{type:"number",default:0},link:{type:"string",default:""},nofollow:{type:"string",default:""},newtab:{type:"string",default:"1"},image:{type:"number",default:0},name:{type:"string",default:""},summary:{type:"string",default:""},template:{type:"string",default:""}},supports:{html:!1},save:e=>{const{attributes:t}=e;if(t.id){let e=`[wprm-recipe-roundup-item id="${t.id}"`;return t.template&&(e+=` template="${t.template}"`),e+="]",e}if(t.link){let e=`[wprm-recipe-roundup-item link="${Z(t.link)}"`;return e+=t.nofollow?' nofollow="1"':"",e+=t.newtab?"":' newtab="0"',e+=t.image?` image="${t.image}"`:"",e+=` name="${Z(t.name)}"`,e+=` summary="${Z(t.summary)}"`,e+="]",e}return null}}]});r(48790)})(),(WPRecipeMakerAdmin=void 0===WPRecipeMakerAdmin?{}:WPRecipeMakerAdmin)["wp-recipe-maker/dist/blocks"]={}})();