1(self.webpackChunkamaMefCatalogoServizi=self.webpackChunkamaMefCatalogoServizi||[]).push([[944],{40944:(d,c,h)=>{h(96823)},96823:()=>{!function(){"use strict";var d=tinymce.util.Tools.resolve("tinymce.PluginManager");const c=(t,e,s)=>{t.execCommand("UL"===e?"InsertUnorderedList":"InsertOrderedList",!1,!1===s?null:{"list-style-type":s})},m=t=>e=>e.options.get(t),N=m("advlist_number_styles"),w=m("advlist_bullet_styles"),f=t=>null==t,y=t=>!f(t);class i{constructor(e,s){this.tag=e,this.value=s}static some(e){return new i(!0,e)}static none(){return i.singletonNone}fold(e,s){return this.tag?s(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?i.some(e(this.value)):i.none()}bind(e){return this.tag?e(this.value):i.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:i.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(e??"Called getOrDie on None")}static from(e){return y(e)?i.some(e):i.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}i.singletonNone=new i(!1);const T=Array.prototype.indexOf,x=(t,e)=>((t,e)=>T.call(t,e))(t,e)>-1,A=Object.keys;var E=tinymce.util.Tools.resolve("tinymce.util.Tools");const v=t=>e=>y(e)&&t.test(e.nodeName),$=v(/^(OL|UL|DL)$/),M=v(/^(TH|TD)$/),b=t=>f(t)||"default"===t?"":t,L=(t,e)=>s=>((t,e)=>{const s=t.selection.getNode();return e({parents:t.dom.getParents(s),element:s}),t.on("NodeChange",e),()=>t.off("NodeChange",e)})(t,l=>((l,u)=>{const p=l.selection.getStart(!0);s.setActive(((t,e,s)=>((t,e,s)=>{for(let n=0,r=t.length;n<r;n++){const l=t[n];if(e(l))return i.some(l);if(s(l,n))break}return i.none()})(e,n=>$(n)&&!(t=>/\btox\-/.test(t.className))(n),M).exists(n=>n.nodeName===s&&((t,e)=>t.dom.isChildOf(e,t.getBody()))(t,n)))(l,u,e)),s.setEnabled(!((t,e)=>{const s=t.dom.getParent(e,"ol,ul,dl");return((t,e)=>null!==e&&!t.dom.isEditable(e))(t,s)||!t.selection.isEditable()})(l,p))})(t,l.parents)),j=(t,e,s,n,r,l)=>{const u={"lower-latin":"lower-alpha","upper-latin":"upper-alpha","lower-alpha":"lower-latin","upper-alpha":"upper-latin"},p=((t,e)=>((t,e)=>{const s={};return((t,e)=>{const s=A(t);for(let n=0,r=s.length;n<r;n++){const l=s[n];e(t[l],l)}})(t,(n,r)=>{const l=e(n,r);s[l.k]=l.v}),s})(t,(s,n)=>{return{k:n,v:(o=s,x(l,o))};var o}))(u);t.ui.registry.addSplitButton(e,{tooltip:s,icon:"OL"===r?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:o=>{const g=E.map(l,a=>{const Q="OL"===r?"num":"bull",R="disc"===a||"decimal"===a?"default":a,X=b(a),Y=(t=>t.replace(/\-/g," ").replace(/\b\w/g,e=>e.toUpperCase()))(a);return{type:"choiceitem",value:X,icon:"list-"+Q+"-"+R,text:Y}});o(g)},onAction:()=>t.execCommand(n),onItemAction:(o,g)=>{c(t,r,g)},select:o=>(t=>{const e=t.dom.getParent(t.selection.getNode(),"ol,ul"),s=t.dom.getStyle(e,"listStyleType");return i.from(s)})(t).exists(a=>o===a||u[a]===o&&!p[o]),onSetup:L(t,r)})},S=(t,e,s,n,r,l)=>{l.length>1?j(t,e,s,n,r,l):((t,e,s,n,r,l)=>{t.ui.registry.addToggleButton(e,{active:!1,tooltip:s,icon:"OL"===r?"ordered-list":"unordered-list",onSetup:L(t,r),onAction:()=>t.queryCommandState(n)||""===l?t.execCommand(n):c(t,r,l)})})(t,e,s,n,r,b(l[0]))};d.add("advlist",t=>{t.hasPlugin("lists")?((t=>{const e=t.options.register;e("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),e("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})})(t),(t=>{S(t,"numlist","Numbered list","InsertOrderedList","OL",N(t)),S(t,"bullist","Bullet list","InsertUnorderedList","UL",w(t))})(t),(t=>{t.addCommand("ApplyUnorderedListStyle",(e,s)=>{c(t,"UL",s["list-style-type"])}),t.addCommand("ApplyOrderedListStyle",(e,s)=>{c(t,"OL",s["list-style-type"])})})(t)):console.error("Please use the Lists plugin together with the List Styles plugin.")})}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.