(()=>{"use strict";var e,t={866:()=>{const e=window.React,t=window.wp.blocks,r=window.wp.i18n,o=window.wp.blockEditor,n=window.wp.components,{useSelect:i}=wp.data,l=({attributes:t,setAttributes:i})=>(0,e.createElement)(o.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,r.__)("Words number")},(0,e.createElement)(n.TextControl,{type:"number",label:(0,r.__)("Number of word to display"),help:(0,r.__)("Leave empty to not limit the number of words to display."),value:t.word_count,onChange:e=>i({word_count:e})}))),a="<p>Imperial troops have driven the Rebel forces from their hidden base and pursued them across the galaxy.</p>\n<p>Evading the dreaded Imperial Starfleet, a group of freedom fighters led by Luke Skywalker has established a new secret base on the remote ice world of Hoth.</p>\n<p>The evil lord Darth Vader, obsessed with finding young Skywalker, has dispatched thousands of remote probes into the far reaches of space…</p>";function s(e,t=""){var r,o;if(""==e&&(e=a),r=e,(o=document.createElement("div")).innerHTML=r,e=o.textContent||o.innerText||"",""==t)return e;let n=e.split(/\s+/);return t=+t,n.length<=t?e:n.slice(0,t).join(" ")}const c=JSON.parse('{"UU":"wpboutik/description-courte"}');(0,t.registerBlockType)(c.UU,{icon:(0,e.createElement)((function(){return(0,e.createElement)("svg",{width:"2em",height:"2em",viewBox:"0 0 24 24",version:"1.1"},(0,e.createElement)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,e.createElement)("g",{fill:"#3c54cc","fill-rule":"nonzero"},(0,e.createElement)("path",{d:"M3,17 L15,17 C15.5522847,17 16,17.4477153 16,18 C16,18.5128358 15.6139598,18.9355072 15.1166211,18.9932723 L15,19 L3,19 C2.44771525,19 2,18.5522847 2,18 C2,17.4871642 2.38604019,17.0644928 2.88337887,17.0067277 L3,17 L15,17 L3,17 Z M3,13 L21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5128358 21.6139598,14.9355072 21.1166211,14.9932723 L21,15 L3,15 C2.44771525,15 2,14.5522847 2,14 C2,13.4871642 2.38604019,13.0644928 2.88337887,13.0067277 L3,13 L21,13 L3,13 Z M3,9 L21,9 C21.5522847,9 22,9.44771525 22,10 C22,10.5128358 21.6139598,10.9355072 21.1166211,10.9932723 L21,11 L3,11 C2.44771525,11 2,10.5522847 2,10 C2,9.48716416 2.38604019,9.06449284 2.88337887,9.00672773 L3,9 L21,9 L3,9 Z M3,5 L21,5 C21.5522847,5 22,5.44771525 22,6 C22,6.51283584 21.6139598,6.93550716 21.1166211,6.99327227 L21,7 L3,7 C2.44771525,7 2,6.55228475 2,6 C2,5.48716416 2.38604019,5.06449284 2.88337887,5.00672773 L3,5 L21,5 L3,5 Z"}))))}),null),edit:function({attributes:t,setAttributes:r,context:{postId:n,postType:c}}){if("wpboutik_product"!=c)return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,{attributes:t,setAttributes:r}),(0,e.createElement)("p",{...(0,o.useBlockProps)()},s(a,t.word_count)));const u=i((e=>e("core").getEntityRecord("postType","wpboutik_product",n)));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,{attributes:t,setAttributes:r}),(0,e.createElement)("div",{...(0,o.useBlockProps)(),dangerouslySetInnerHTML:{__html:s(u.excerpt.raw,t.word_count)}}))}})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,r,n,i)=>{if(!r){var l=1/0;for(u=0;u<e.length;u++){for(var[r,n,i]=e[u],a=!0,s=0;s<r.length;s++)(!1&i||l>=i)&&Object.keys(o.O).every((e=>o.O[e](r[s])))?r.splice(s--,1):(a=!1,i<l&&(l=i));if(a){e.splice(u--,1);var c=n();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,n,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={115:0,491:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,i,[l,a,s]=r,c=0;if(l.some((t=>0!==e[t]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(s)var u=s(o)}for(t&&t(r);c<l.length;c++)i=l[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(u)},r=globalThis.webpackChunkwpboutik=globalThis.webpackChunkwpboutik||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[491],(()=>o(866)));n=o.O(n)})();