(()=>{"use strict";var e,t={264:(e,t,l)=>{const n=window.React,a=window.wp.blocks,i=JSON.parse('{"UU":"linkt/disclosure"}'),r=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,c=l.p+"images/linkt-logo.7ee64f2e.png",{UU:u}=i;(0,a.registerBlockType)(u,{icon:(0,n.createElement)("img",{src:c,width:"20",height:"20"}),edit:e=>{const{isSelected:t,attributes:{alignment:l,align:a,maxWidth:i,disclosureDesign:c,author:u,authorLink:d,showName:m,showAvatar:p,showTitle:g,disclosureTitle:h,disclosureCopy:v,discVertPad:k,discHorizPad:w},setAttributes:b}=e,f=(0,o.useBlockProps)({className:`align-${l} ${a}align`});return(0,n.createElement)("div",{...f},t&&(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(s.PanelBody,{title:(0,r.__)("Disclosure Settings","linkt"),initialOpen:!0},(0,n.createElement)(s.__experimentalUnitControl,{label:(0,r.__)("Max Width","linkt"),value:i,onChange:e=>b({maxWidth:e}),units:[{value:"px",label:"px",default:600},{value:"%",label:"%",default:100}],isResetValueOnUnitChange:!0})),(0,n.createElement)(s.PanelBody,{title:(0,r.__)("Disclosure Design","linkt"),initialOpen:!1},(0,n.createElement)(s.SelectControl,{label:(0,r.__)("Design","linkt"),value:c,options:[{label:"Default",value:"one"},{label:"Minimal",value:"two"}],onChange:e=>b({disclosureDesign:void 0===e?"one":e})}),(0,n.createElement)(s.RangeControl,{label:(0,r.__)("Vertical Padding","linkt"),value:k,onChange:e=>b({discVertPad:void 0===e?20:e}),min:0,max:100}),(0,n.createElement)(s.RangeControl,{label:(0,r.__)("Horizontal Padding","linkt"),value:w,onChange:e=>b({discHorizPad:void 0===e?20:e}),min:0,max:100}))),(0,n.createElement)(o.BlockControls,null,(0,n.createElement)(o.AlignmentToolbar,{value:l,onChange:e=>b({alignment:e})}),(0,n.createElement)(o.BlockAlignmentToolbar,{value:a,controls:["left","center","right"],onChange:e=>b({align:e})})),(0,n.createElement)("div",{className:`linkt-disclosure ${c}`},(0,n.createElement)("div",{className:"linkt-disclosure-inner",style:{maxWidth:i,padding:`${k}px ${w}px`}},(0,n.createElement)("div",{className:"linkt-disclosure-auth"},m&&(0,n.createElement)(o.RichText,{tagName:"p",className:"linkt-disc-author",value:u,onChange:()=>console.log("changeName"),placeholder:(0,r.__)("Author Name","linkt")}),p&&(0,n.createElement)("div",{className:"linkt-disc-img"},(0,n.createElement)("img",{src:"",alt:"Author Name"}))),(0,n.createElement)("div",{className:"linkt-disclosure-disc"},g&&(0,n.createElement)(o.RichText,{tagName:"p",className:"linkt-disc-title",value:h,onChange:e=>b({disclosureTitle:e}),placeholder:(0,r.__)("Title","linkt")}),(0,n.createElement)(o.RichText,{tagName:"p",className:"linkt-disc-copy",value:v,onChange:e=>b({disclosureCopy:e}),placeholder:(0,r.__)("Copy","linkt")})))))},save:({attributes:e})=>{const{align:t}=e,l=o.useBlockProps.save({className:`align-${t}`});return(0,n.createElement)("div",{...l},"save")}})}},l={};function n(e){var a=l[e];if(void 0!==a)return a.exports;var i=l[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,l,a,i)=>{if(!l){var r=1/0;for(u=0;u<e.length;u++){l=e[u][0],a=e[u][1],i=e[u][2];for(var o=!0,s=0;s<l.length;s++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](l[s])))?l.splice(s--,1):(o=!1,i<r&&(r=i));if(o){e.splice(u--,1);var c=a();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]=[l,a,i]},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var l=t.getElementsByTagName("script");if(l.length)for(var a=l.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=l[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{var e={489:0,549:0};n.O.j=t=>0===e[t];var t=(t,l)=>{var a,i,r=l[0],o=l[1],s=l[2],c=0;if(r.some((t=>0!==e[t]))){for(a in o)n.o(o,a)&&(n.m[a]=o[a]);if(s)var u=s(n)}for(t&&t(l);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(u)},l=self.webpackChunklinkt=self.webpackChunklinkt||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var a=n.O(void 0,[549],(()=>n(264)));a=n.O(a)})();