first commit

This commit is contained in:
Ryan Ariana committed 2024-05-06 11:04:37 +07:00
commit aee061ddba
7322 files changed
+2918816

No files matched your search

@@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'ab7ab8c167d159b48fdb');
@@ -0,0 +1 @@
!function(){var t={184:function(t,e){var o;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var l=typeof o;if("string"===l||"number"===l)t.push(o);else if(Array.isArray(o)){if(o.length){var i=n.apply(null,o);i&&t.push(i)}}else if("object"===l){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){t.push(o.toString());continue}for(var r in o)a.call(o,r)&&o[r]&&t.push(r)}}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):void 0===(o=function(){return n}.apply(e,[]))||(t.exports=o)}()}},e={};function o(a){var n=e[a];if(void 0!==n)return n.exports;var l=e[a]={exports:{}};return t[a](l,l.exports,o),l.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var a in e)o.o(e,a)&&!o.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t=window.wp.element,e=window.wp.i18n,a=window.wp.components,n=o=>{const{setAttributes:n,lavel:l,dimensions:i,device:r,attributesKey:c}=o,s=(t,e)=>{const a={...i};o.responsive&&o.device?("yes"===(i.link?i.link:"yes")?(a[r]={top:t,right:t,bottom:t,left:t},a.link="yes",a.unit=i.unit?i.unit:"px"):(a[r]={top:""!==a[r].top?a[r].top:"0",right:""!==a[r].right?a[r].right:"0",bottom:""!==a[r].bottom?a[r].bottom:"0",left:""!==a[r].left?a[r].left:"0",link:"no",unit:""!==a[r].unit?a[r].unit:"px",[e]:t},a.link="no",a.unit=""!==i.unit?i.unit:"px"),console.log(a)):"yes"===a.link?(a.top=t,a.right=t,a.bottom=t,a.left=t,a.link="yes"):(a.top=""!==a.top?a.top:"0",a.right=""!==a.right?a.right:"0",a.bottom=""!==a.bottom?a.bottom:"0",a.left=""!==a.left?a.left:"0",a.link="no",a[e]=t),n({[c]:a})},m=t=>{const e={...i};e.unit=t.target.value,n({[c]:e})};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wp-block-selector-ht-contactform-dimensions-control"},(0,t.createElement)(a.PanelRow,{className:"ht-contactform-panel-row-height-auto",style:{minHeight:"auto"}},(0,t.createElement)("h3",null,l),(0,t.createElement)(a.ButtonGroup,{className:"ht-contactform-dimensions-btn-group"},(0,t.createElement)(a.Button,{value:"px",text:(0,e.__)("PX","ht-contactform"),isPrimary:"px"===i.unit,isSecondary:"px"!==i.unit,onClick:m,title:(0,e.__)("PX","ht-contactform"),focus:!1}),(0,t.createElement)(a.Button,{value:"%",text:(0,e.__)("%","ht-contactform"),isPrimary:"%"===i.unit,isSecondary:"%"!==i.unit,onClick:m,title:(0,e.__)("%","ht-contactform"),focus:!1}),(0,t.createElement)(a.Button,{value:"em",text:(0,e.__)("EM","ht-contactform"),isPrimary:"em"===i.unit,isSecondary:"em"!==i.unit,onClick:m,title:(0,e.__)("EM","ht-contactform"),focus:!1}))),(0,t.createElement)(a.PanelRow,null,(0,t.createElement)(a.__experimentalNumberControl,{label:(0,e.__)("Top","ht-contactform"),isShiftStepEnabled:!0,onChange:t=>s(t,"top"),shiftStep:10,value:o.responsive&&o.device?i[r].top:i.top,labelPosition:"bottom"}),(0,t.createElement)(a.__experimentalNumberControl,{label:(0,e.__)("Right","ht-contactform"),isShiftStepEnabled:!0,onChange:t=>s(t,"right"),shiftStep:10,value:o.responsive&&o.device?i[r].right:i.right,labelPosition:"bottom"}),(0,t.createElement)(a.__experimentalNumberControl,{label:(0,e.__)("Bottom","ht-contactform"),isShiftStepEnabled:!0,onChange:t=>s(t,"bottom"),shiftStep:10,value:o.responsive&&o.device?i[r].bottom:i.bottom,labelPosition:"bottom"}),(0,t.createElement)(a.__experimentalNumberControl,{label:(0,e.__)("Left","ht-contactform"),isShiftStepEnabled:!0,onChange:t=>s(t,"left"),shiftStep:10,value:o.responsive&&o.device?i[r].left:i.left,labelPosition:"bottom"}),(0,t.createElement)(a.Button,{icon:"admin-links",value:"yes",isPrimary:"yes"===i.link,isSecondary:"yes"!==i.link,onClick:()=>{const t={...i};"yes"===t.link?t.link="no":t.link="yes",n({[c]:t})},title:(0,e.__)("Link values together","ht-contactform"),showTooltip:!0}))))},l=window.wp.blockEditor,i=window.wp.apiFetch,r=o.n(i);const{addQueryArgs:c}=wp.url;class s extends t.Component{constructor(t){super(t),this.state={contactFormPosts:[],device:"desktop"}}componentDidMount(){this.fetchContactFormPosts()}fetchContactFormPosts(){var t={wpnonce:htcontactdata.security},e=c("/htcontactform/v1/posts",t);r()({path:e}).then((t=>{var e=[{label:"Select",value:"",disabled:!0}];for(var o in t)e.push({label:t[o],value:o});this.setState({contactFormPosts:e})}))}render(){const{contactFormPosts:o}=this.state,{className:i,attributes:r,setAttributes:c}=this.props,{formId:s,inputBorderRadius:m,inputPadding:d,borderType:p,areaMargin:u,inputMargin:h,blockUniqId:b,buttonPadding:f,buttonMargin:v,btnBorderType:g,buttonBorderRadius:k,labelFontSize:_,btnFontSize:y,inputTextSize:E,inputHight:C,textAreaHight:F}=r,S={width:30,height:12,display:"inline-block",marginLeft:10,verticalAlign:"middle"},B=(t,e,o)=>{this.setState({[e]:o})},$=(t,e,o)=>{const a={...r[o]};a[e]=t,c({[o]:a})},x=`Line truncated