|
1
|
+import{j as e}from"./chunks/jsx-runtime.js?ver=1.7.0";import{b as t}from"./chunks/BlockEditorTranslator.js?ver=1.7.0";import{N as H,O as z,Q as D,V as X,X as O,Y as J}from"./chunks/Icons.js?ver=1.7.0";const g=()=>({id:0,reviewer_name:t("Dana Whitfield"),photo:"",rating:4,is_verified:!0,item_label:t("Large / Charcoal"),created_at:t("2 days ago"),title:t("Comfortable from the first wear"),content:t("Ordered these for daily walking and they needed no breaking in. The sizing runs true and the material has held up well after a month of use."),media_count:5,reply_count:1}),Q=()=>[{id:1,reviewer_name:t("Marcus Lane"),photo:"",rating:5,is_verified:!0,item_label:t("Medium / Sand"),created_at:t("1 week ago"),title:t("Worth every penny"),content:t("Second pair I have bought. They last."),media_count:2,reply_count:0},{id:2,reviewer_name:t("Priya Raman"),photo:"",rating:3,is_verified:!1,item_label:t("Small / Navy"),created_at:t("3 weeks ago"),title:t("Good, with one caveat"),content:t("The fit and finish are exactly as described and they have worn in nicely over the past month. My only note is the colour, which reads a shade darker in daylight than it does in the product photographs."),media_count:1,reply_count:2},{id:3,reviewer_name:t("Tomas Beck"),photo:"",rating:4,is_verified:!1,item_label:"",created_at:t("a month ago"),title:"",content:t("Exactly what I expected."),media_count:1,reply_count:0},{id:4,reviewer_name:t("Ines Okafor"),photo:"",rating:5,is_verified:!0,item_label:t("Large / Olive"),created_at:t("2 months ago"),title:t("Held up to a wet winter"),content:t("I have worn these most days since October, through rain and a fair amount of mud, and they have come through it better than the pair they replaced. The lining still looks new after a wash, the soles have not worn unevenly, and the laces have not frayed at the eyelets the way they usually do by now. The only thing I would change is the insole, which I swapped for my own after the first fortnight."),media_count:3,reply_count:1},{id:5,reviewer_name:t("Sam Oduya"),photo:"",rating:2,is_verified:!1,item_label:t("Medium / Black"),created_at:t("5 days ago"),title:t("Runs a size small"),content:t("Comfortable once on, but I had to send the first pair back for the next size up."),media_count:2,reply_count:0}],Y=(s=1)=>{const n=[g(),...Q()];return Array.from({length:Math.max(1,s)},(r,a)=>({...n[a%n.length],id:a}))},U=s=>{const n=String(s||"").trim().toLowerCase();return["grid","slider","masonry"].indexOf(n)===-1?"list":(window.fluent_cart_product_review_list_data||{}).is_pro?n:"list"},{useBlockProps:q,useInnerBlocksProps:Z,InnerBlocks:G,InspectorControls:ee,BlockContextProvider:te,__experimentalUseBlockPreview:se}=wp.blockEditor,{PanelBody:ne,SelectControl:re}=wp.components,{useEffect:oe,useState:ae,memo:ie}=wp.element,{useSelect:I}=wp.data,le=()=>[{value:0,label:t("All ratings")},{value:2,label:t("2 stars and up")},{value:3,label:t("3 stars and up")},{value:4,label:t("4 stars and up")},{value:5,label:t("5 stars only")}],A="fluent-cart/review-item",ce=3,de=4,ue=["fluent-cart/review-item-avatar","fluent-cart/review-item-author-name","fluent-cart/review-item-verified-badge","fluent-cart/review-item-variation-title","fluent-cart/review-item-rating","fluent-cart/review-item-date","fluent-cart/review-item-title","fluent-cart/review-item-content","fluent-cart/review-item-photos","fluent-cart/review-item-reply","fluent-cart/review-item-votes","core/group","core/columns"],pe=()=>{const s=Z({className:"fct-review-item-body"},{allowedBlocks:ue,templateInsertUpdatesSelection:!1,renderAppender:G.ButtonBlockAppender,__unstableDisableLayoutClassNames:!0});return e.jsx("div",{...s})},he=({blocks:s,reviewId:n,isHidden:r,setActiveReviewId:a})=>{const o=se({blocks:s,props:{className:"fct-review-item-body"}}),l=()=>a(n);return e.jsx("div",{...o,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:r?"none":void 0}})},ve=ie(he),R=({direction:s})=>e.jsx("button",{type:"button",className:`fct-reviews-slider-nav fct-reviews-slider-${s}`,"aria-label":s==="prev"?t("Previous"):t("Next"),tabIndex:-1,children:s==="prev"?e.jsx(H,{}):e.jsx(z,{})}),me={edit:({attributes:s,setAttributes:n,clientId:r,context:a})=>{const o=U(a["fluent-cart/review_view_mode"]),l=parseInt(a["fluent-cart/review_grid_columns"],10)||2,u=o==="grid"||o==="slider"||o==="masonry",i=a["fluent-cart/review_slider_settings"]||{},h=i.arrowsPosition||"overlap",w=o==="slider"&&i.arrows!=="no",b=["sm","md","lg"].includes(i.arrowsSize)?i.arrowsSize:"md",_=Math.min(de,Math.max(1,l)),x=o==="masonry"?_*2:u?_:ce,y=Y(x),k=q({className:["fct-reviews-list",u?`fct-reviews-list--${o}`:"",u?`fct-reviews-list--cols-${_}`:"",w?`fct-arrows-${b}`:"",w?`fct-arrows-at-${h}`:""].filter(Boolean).join(" "),style:u?{"--fct-review-columns":_}:void 0}),P=I(d=>{if(!s.wp_client_id)return!1;const{getClientIdsWithDescendants:p,getBlockName:c,getBlockAttributes:m}=d("core/block-editor");return p().some(v=>{var C;return v!==r&&c(v)===A&&((C=m(v))==null?void 0:C.wp_client_id)===s.wp_client_id})},[r,s.wp_client_id]),f=I(d=>{const{getBlockParentsByBlockName:p,getClientIdsOfDescendants:c,getBlockName:m}=d("core/block-editor"),[v]=p(r,"fluent-cart/product-review-list",!0);if(!v)return!1;const C=c(v).filter(K=>m(K)===A);return C.length>1&&C[0]!==r},[r]);oe(()=>{s.wp_client_id&&!P||n({wp_client_id:r})},[r,s.wp_client_id,P,n]);const B=I(d=>{var p;return((p=d("core/block-editor").getBlock(r))==null?void 0:p.innerBlocks)??[]},[r]),[E,j]=ae();return f?e.jsx("div",{...k,children:e.jsx("p",{className:"fct-review-item-spare",children:t("Only the first Review Item in a list is drawn. Remove this one, or move its fields into the first.")})}):e.jsxs(e.Fragment,{children:[e.jsx(ee,{children:e.jsx(ne,{title:t("Reviews shown"),initialOpen:!0,children:e.jsx(re,{label:t("Minimum rating"),value:s.minRating||0,options:le(),onChange:d=>n({minRating:parseInt(d,10)||0}),help:t("Lower-rated reviews are left out of the list entirely — the count and the pages follow.")})})}),e.jsxs("div",{...k,children:[y.map(d=>{const p=d.id===(E??y[0].id);return e.jsxs(te,{value:{"fluent-cart/review":d},children:[p?e.jsx(pe,{}):null,e.jsx(ve,{blocks:B,reviewId:d.id,isHidden:p,setActiveReviewId:j})]},d.id)}),w&&h==="bottom"&&e.jsxs("div",{className:"fct-reviews-slider-nav-row",children:[e.jsx(R,{direction:"prev"}),e.jsx(R,{direction:"next"})]}),w&&h!=="bottom"&&e.jsxs(e.Fragment,{children:[e.jsx(R,{direction:"prev"}),e.jsx(R,{direction:"next"})]})]})]})},save:()=>e.jsx(G.Content,{}),attributes:{wp_client_id:{type:"string",default:""},minRating:{type:"number",default:0}},supports:{html:!1,spacing:{margin:!0,padding:!0}},usesContext:["fluent-cart/review_list_reviews","fluent-cart/review_list_rows_only","fluent-cart/review_view_mode","fluent-cart/review_grid_columns","fluent-cart/review_slider_settings"]},{useBlockProps:we}=wp.blockEditor,fe=12,ge={edit:()=>{const s=we({className:"fct-reviews-section-title"});return e.jsxs("h3",{...s,children:[fe," ",t("Reviews")]})},save:()=>null,supports:{html:!1,align:["left","center","right"],typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0,padding:!0},color:{text:!0}},usesContext:["fluent-cart/review_list_header","fluent-cart/review_list_rows_only"]},{useBlockProps:_e}=wp.blockEditor,ke=[5,4,3,2,1],be={edit:()=>{const s=_e({className:"fct-reviews-filter-chips"});return e.jsxs("div",{...s,children:[e.jsx("span",{className:"fct-filter-chip active",children:t("All")}),ke.map(n=>e.jsxs("span",{className:"fct-filter-chip",children:[n,e.jsx(D,{})]},n))]})},save:()=>null,supports:{html:!1,spacing:{margin:!0,padding:!0}},usesContext:["fluent-cart/review_list_header","fluent-cart/review_list_rows_only"]},{useBlockProps:xe,InspectorControls:ye}=wp.blockEditor,{PanelBody:je,SelectControl:Ce}=wp.components;var F;const N=((F=window.fluent_cart_review_inner_blocks)==null?void 0:F.sortOptions)||{"created_at-DESC":"Newest"},M="created_at-DESC",Pe={attributes:{defaultSort:{type:"string",default:M}},edit:({attributes:s,setAttributes:n})=>{const{defaultSort:r}=s,a=xe({className:"fct-reviews-sort"}),o=N[r]||N[M];return e.jsxs(e.Fragment,{children:[e.jsx(ye,{children:e.jsx(je,{title:t("Sorting"),initialOpen:!0,children:e.jsx(Ce,{label:t("Default Sort"),value:r,options:Object.keys(N).map(l=>({label:N[l],value:l})),onChange:l=>n({defaultSort:l})})})}),e.jsx("div",{...a,children:e.jsx("span",{className:"fct-reviews-sort-preview",children:o})})]})},save:()=>null,supports:{html:!1,spacing:{margin:!0,padding:!0}},usesContext:["fluent-cart/review_list_header","fluent-cart/review_list_rows_only"]},{useBlockProps:Be,InspectorControls:Re,BlockControls:Ne,JustifyContentControl:Se}=wp.blockEditor,{PanelBody:Ee,RangeControl:Ie,SelectControl:$e,Button:Te}=wp.components,W=["left","center","right"];var L;const Oe=parseInt((L=window.fluent_cart_review_inner_blocks)==null?void 0:L.storePerPage,10)||10,Ae={fraction:" is-fraction",bullets:" is-bullets"},Me={attributes:{justify:{type:"string",default:""},paginationType:{type:"string",default:"numbers"},perPage:{type:"number",default:0}},edit:({attributes:s,setAttributes:n,context:r})=>{const{justify:a,paginationType:o,perPage:l}=s,u=U(r==null?void 0:r["fluent-cart/review_view_mode"])==="slider",i=Be({className:`fct-reviews-pagination${W.includes(a)?` is-justified-${a}`:""}`});return e.jsxs(e.Fragment,{children:[!u&&e.jsx(Ne,{group:"block",children:e.jsx(Se,{allowedControls:W,value:a||void 0,onChange:h=>n({justify:h||""})})}),e.jsx(Re,{children:e.jsxs(Ee,{title:t("Pagination"),initialOpen:!0,children:[e.jsx($e,{label:t("Pagination Type"),value:o,options:[{label:t("Numbers"),value:"numbers"},{label:t("Fraction"),value:"fraction"},{label:t("Bullets"),value:"bullets"}],onChange:h=>n({paginationType:h})}),e.jsx(Ie,{label:t("Reviews Per Page"),help:l===0?t("Using the store setting"):"",value:l||Oe,onChange:h=>n({perPage:h}),min:1,max:50,step:1}),l>0&&e.jsx(Te,{variant:"tertiary",onClick:()=>n({perPage:0}),children:t("Use the store setting")})]})}),!u&&e.jsx("div",{...i,children:e.jsxs("div",{className:`fct-reviews-pagination-inner${Ae[o]||""}`,children:[e.jsx("span",{className:"fct-reviews-page-btn fct-reviews-page-nav is-disabled",children:e.jsx(H,{})}),o==="fraction"&&e.jsx("span",{className:"fct-reviews-page-fraction",children:t("Page 1 of 2")}),o==="bullets"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"fct-reviews-page-bullet active"}),e.jsx("span",{className:"fct-reviews-page-bullet"})]}),o!=="fraction"&&o!=="bullets"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"fct-reviews-page-btn active",children:"1"}),e.jsx("span",{className:"fct-reviews-page-btn",children:"2"})]}),e.jsx("span",{className:"fct-reviews-page-btn fct-reviews-page-nav",children:e.jsx(z,{})})]})})]})},save:()=>null,supports:{html:!1,spacing:{margin:!0,padding:!0}},usesContext:["fluent-cart/review_view_mode","fluent-cart/review_list_pagination","fluent-cart/review_list_rows_only"]},{useBlockProps:We}=wp.blockEditor,Fe={edit:()=>{const s=We({className:"fct-review-block-avatar"});return e.jsx("div",{...s,children:e.jsx("div",{className:"fct-review-avatar-circle","data-review-avatar":!0,children:e.jsx(X,{})})})},save:()=>null,supports:{html:!1,spacing:{margin:!0,padding:!0}},usesContext:["fluent-cart/review"]},{useBlockProps:Le}=wp.blockEditor,Ve={edit:({context:s})=>{const n=(s==null?void 0:s["fluent-cart/review"])||g(),r=Le({className:"fct-review-item-author"});return e.jsx("div",{...r,children:n.reviewer_name})},save:()=>null,usesContext:["fluent-cart/review"]},{useBlockProps:He}=wp.blockEditor,ze={edit:()=>{const s=He({className:"fct-review-verified"});return e.jsx("div",{...s,children:t("Verified Purchase")})},save:()=>null,usesContext:["fluent-cart/review"]},{useBlockProps:De}=wp.blockEditor,Ue={edit:({context:s})=>{const n=(s==null?void 0:s["fluent-cart/review"])||g(),r=De({className:"fct-review-item-variant"});return e.jsx("div",{...r,children:n.item_label})},save:()=>null,usesContext:["fluent-cart/review"]},{useBlockProps:Ge,InspectorControls:Ke}=wp.blockEditor,{PanelBody:Xe,ColorPicker:Je,Button:Qe}=wp.components,Ye={attributes:{starColor:{type:"string",default:""}},edit:({attributes:s,setAttributes:n,context:r})=>{const{starColor:a}=s,o=(r==null?void 0:r["fluent-cart/review"])||g(),l=Ge({className:"fct-review-item-stars",style:a?{"--fct-star-color":a}:void 0}),u=o.rating;return e.jsxs(e.Fragment,{children:[e.jsx(Ke,{children:e.jsxs(Xe,{title:t("Star Color"),initialOpen:!1,children:[e.jsx(Je,{color:a||"#f59e0b",onChange:i=>n({starColor:i}),enableAlpha:!1}),a&&e.jsx(Qe,{variant:"tertiary",onClick:()=>n({starColor:""}),children:t("Reset to default")})]})}),e.jsx("div",{...l,children:[1,2,3,4,5].map(i=>e.jsx("span",{className:i<=u?"fct-star fct-star-filled":"fct-star fct-star-empty","aria-hidden":"true",children:e.jsx(D,{})},i))})]})},save:()=>null,supports:{html:!1,align:["left","center","right"],spacing:{margin:!0,padding:!0},color:{text:!0}},usesContext:["fluent-cart/review"]},{useBlockProps:qe}=wp.blockEditor,Ze={edit:({context:s})=>{const n=(s==null?void 0:s["fluent-cart/review"])||g(),r=qe({className:"fct-review-item-date"});return e.jsx("div",{...r,children:n.created_at})},save:()=>null,usesContext:["fluent-cart/review"]},{useBlockProps:et}=wp.blockEditor,tt={edit:({context:s})=>{const n=(s==null?void 0:s["fluent-cart/review"])||g(),r=et({className:"fct-review-item-title"});return e.jsx("div",{...r,children:n.title})},save:()=>null,usesContext:["fluent-cart/review"]},{useBlockProps:st,InspectorControls:nt}=wp.blockEditor,{PanelBody:rt,RangeControl:ot}=wp.components,at=200,it=(s,n)=>{if(!n)return s;const r=String(s).trim().split(/\s+/);return r.length<=n?s:r.slice(0,n).join(" ")+"…"},lt={attributes:{maxWords:{type:"number",default:0}},edit:({attributes:s,setAttributes:n,context:r})=>{const{maxWords:a}=s,o=(r==null?void 0:r["fluent-cart/review"])||g(),l=st({className:"fct-review-item-content"});return e.jsxs(e.Fragment,{children:[e.jsx(nt,{children:e.jsx(rt,{title:t("Content"),initialOpen:!0,children:e.jsx(ot,{label:t("Words shown"),value:a,onChange:u=>n({maxWords:u||0}),min:0,max:at,help:a?t("Show this many words initially. Readers can select Read more to see the full review."):t("Reviews show in full. Move the slider to cut longer ones down."),allowReset:!0,resetFallbackValue:0})})}),e.jsx("div",{...l,children:it(o.content,a)})]})},save:()=>null,usesContext:["fluent-cart/review"]},{useBlockProps:ct,InspectorControls:dt}=wp.blockEditor,{Notice:ut,PanelBody:pt,RangeControl:$,SelectControl:ht,ToggleControl:T}=wp.components,{useState:vt}=wp.element,mt={edit:({attributes:s,setAttributes:n,context:r})=>{const a=(r==null?void 0:r["fluent-cart/review"])||g(),o=s.visibleCount||0,l=s.mediaWidth||72,u=s.mediaHeight??72,i=s.mediaFullWidth===!0,h=!!(window.fluent_cart_product_review_list_data||{}).is_pro,w=h&&s.mediaFlush===!0,b=h&&s.mediaBackdrop===!0,[_,x]=vt(""),y=(c,m)=>v=>{if(!h){x(m);return}x(""),n({[c]:v})},k=s.mediaMore||"overlay",P=ct({className:"fct-review-media-gallery"+(w?" fct-review-media-gallery--flush":"")+(b?" fct-review-media-gallery--backdrop":""),style:{"--fct-review-thumb-w":i?"100%":`${l}px`,"--fct-review-thumb-h":b?"100%":i&&!u?w?"auto":"220px":`${u}px`}}),f=window.fluent_cart_product_review_list_data,B=f==null?void 0:f.placeholder_image,E=Math.max(1,parseInt(f==null?void 0:f.max_photos_per_review,10)||5),j=a.media_count,d=o>0&&o<j?o:j,p=k==="none"?0:j-d;return e.jsxs(e.Fragment,{children:[e.jsx(dt,{children:e.jsxs(pt,{title:t("Attachments"),initialOpen:!1,children:[e.jsx($,{label:t("Attachments Shown"),help:t("How many attachments a review shows. The rest go behind a + that opens them in the lightbox. 0 shows all of them."),value:o,onChange:c=>n({visibleCount:c||0}),min:0,max:E,step:1}),o>0&&e.jsx(ht,{label:t("The + Counter"),help:t("Counts the attachments the limit leaves out and opens them in the lightbox. Hidden, they are simply not shown."),value:k,options:[{label:t("On the last attachment"),value:"overlay"},{label:t("Beside the attachments"),value:"tile"},{label:t("Hidden"),value:"none"}],onChange:c=>n({mediaMore:c})}),e.jsx(T,{label:t("Full Width Attachments"),help:t("Each attachment spans the whole review, one to a line. The height still applies."),checked:i,onChange:c=>n({mediaFullWidth:c,mediaHeight:c?0:72})}),i&&e.jsx(T,{label:t("Attachment As Card Background"),help:t("The first attachment fills the card and the rest of the review sits over it. A review with no attachment is unaffected, so a grid can mix photo cards and plain ones."),checked:b,onChange:y("mediaBackdrop",t("Attachment As Card Background"))}),i&&!b&&e.jsx(T,{label:t("Flush To Card Edges"),help:t("The attachment becomes the top of the card: no padding around it, and one height for every card in the row. Applies when the attachments are the first thing in the review."),checked:w,onChange:y("mediaFlush",t("Flush To Card Edges"))}),_&&e.jsx("div",{className:"fct-photo-style-notice",children:e.jsx(ut,{status:"warning",isDismissible:!0,onRemove:()=>x(""),children:t("%s is a Pro feature. Without FluentCart Pro the attachment stays inside the card at its own size.",_)})}),!i&&e.jsx($,{label:t("Attachment Width (px)"),value:l,onChange:c=>n({mediaWidth:c||72}),min:40,max:200,step:2}),e.jsx($,{label:t("Attachment Height (px)"),help:i?t("0 gives each attachment its own proportions, uncropped. Any other height crops it to a band of that depth."):void 0,value:u,onChange:c=>n({mediaHeight:i?c||0:c||72}),min:i?0:40,max:i?600:200,step:2})]})}),e.jsxs("div",{...P,children:[Array.from({length:d},(c,m)=>{const v=e.jsx("span",{className:"fct-review-media-thumb is-editor-placeholder",children:B&&e.jsx("img",{src:B,alt:t("Review photo")})});return p&&k==="overlay"&&m===d-1?e.jsxs("span",{className:"fct-review-media-tile",children:[v,e.jsxs("span",{className:"fct-review-media-more is-overlay",children:[e.jsx(O,{}),e.jsxs("span",{children:["+",p]})]})]},m):e.jsx("span",{children:v},m)}),p>0&&k==="tile"&&e.jsxs("span",{className:"fct-review-media-thumb fct-review-media-more is-editor-placeholder",children:[e.jsx(O,{}),e.jsxs("span",{children:["+",p]})]})]})]})},save:()=>null,supports:{html:!1,spacing:{margin:!0,padding:!0}},usesContext:["fluent-cart/review"],attributes:{visibleCount:{type:"number",default:0},mediaWidth:{type:"number",default:72},mediaHeight:{type:"number",default:72},mediaFullWidth:{type:"boolean",default:!1},mediaFlush:{type:"boolean",default:!1},mediaBackdrop:{type:"boolean",default:!1},mediaMore:{type:"string",default:"overlay"}}},{useBlockProps:wt}=wp.blockEditor,ft={edit:()=>{const s=wt({className:"fct-review-votes"});return e.jsxs("div",{...s,children:[e.jsx("span",{className:"fct-vote-label",children:t("Helpful?")}),e.jsxs("span",{className:"fct-vote-btn",children:[e.jsx("span",{"aria-hidden":"true",children:"👍"}),e.jsx("span",{className:"fct-vote-count",children:"0"})]}),e.jsxs("span",{className:"fct-vote-btn",children:[e.jsx("span",{"aria-hidden":"true",children:"👎"}),e.jsx("span",{className:"fct-vote-count",children:"0"})]})]})},save:()=>null,supports:{html:!1,spacing:{margin:!0,padding:!0}},usesContext:["fluent-cart/review"]},{useBlockProps:gt}=wp.blockEditor,_t={edit:()=>{const s=gt({className:"fct-review-footer"});return e.jsx("div",{...s,children:e.jsxs("button",{type:"button",className:"fct-review-view-replies",tabIndex:-1,children:[e.jsx(J,{}),e.jsx("span",{children:t("View Reply")})]})})},save:()=>null,usesContext:["fluent-cart/review"]},{registerBlockType:kt}=wp.blocks,S=window.fluent_cart_review_inner_blocks,bt={ReviewItemBlock:me,ReviewListCountBlock:ge,ReviewListFilterBlock:be,ReviewListSortingBlock:Pe,ReviewPaginationBlock:Me,ReviewAvatarBlock:Fe,ReviewAuthorNameBlock:Ve,ReviewVerifiedBadgeBlock:ze,ReviewVariationTitleBlock:Ue,ReviewRatingBlock:Ye,ReviewDateBlock:Ze,ReviewTitleBlock:tt,ReviewContentBlock:lt,ReviewPhotosBlock:mt,ReviewVotesBlock:ft,ReviewReplyBlock:_t};var V;(V=S==null?void 0:S.blocks)!=null&&V.length&&S.blocks.forEach(s=>{var r;const n=bt[s.component];n&&kt(s.slug,{apiVersion:3,category:"fluent-cart",title:s.title,name:s.slug,icon:s.icon||null,ancestor:(r=s.ancestor)!=null&&r.length?s.ancestor:null,edit:n.edit||(()=>t("No edit found")),save:n.save||(()=>null),supports:n.supports||{},usesContext:n.usesContext||[],attributes:n.attributes||{}})}); |