HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/chuair.org/wp-content/plugins/wd-framework/build/pricing-table.js
!function(){"use strict";var e,t={5616:function(){var e=window.wp.element,t=window.wp.blocks,a=window.wp.i18n,l=window.wp.primitives,r=(0,e.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(l.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"})),n=function(t){let{icon:a,size:l=24,...r}=t;return(0,e.cloneElement)(a,{width:l,height:l,...r})},i=(0,e.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(l.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),o=(0,e.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(l.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));const{useState:c,useEffect:s}=wp.element,{useBlockProps:m,InspectorControls:_,AlignmentControl:p,BlockControls:u,RichText:d}=wp.blockEditor,{PanelBody:h,TextControl:w,SelectControl:b,TextareaControl:v,RangeControl:y,Button:C}=wp.components;var E=window.wp.blockEditor,g=JSON.parse('{"apiVersion":2,"name":"webdevia/pricing-table","version":"0.1.0","title":"pricing-table","category":"webdevia","icon":"smily","description":"The pricing table block!","attributes":{"layout":{"type":"string","default":"ha"},"title":{"type":"string","default":"Basic"},"minLines":{"type":"integer","default":10},"priceValue":{"type":"integer","default":31},"priceSup":{"type":"integer","default":99},"currency":{"type":"string"},"maxWidth":{"type":"number","default":400},"options":{"type":"array","default":[]},"subOptions":{"type":"array","default":[]},"textAlign":{"type":"string","default":"left"}},"supports":{"anchor":true,"html":false,"className":true,"color":{"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true,"fontAppearance":true,"textTransform":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"__unstablePasteTextInline":true,"__experimentalSlashInserter":true},"keywords":["wd","webdevia","pricing","table"],"textdomain":"webdevia-blocks","editorScript":"file:./index.js","viewScript":"file:./view.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');const{name:f,...x}=g;(0,t.registerBlockType)(f,{...x,icon:()=>(0,e.createElement)("svg",{width:"18",height:"21",viewBox:"0 0 18 21",xmlns:"http://www.w3.org/2000/svg",class:"wd-blocks-icon"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4824 8.78101H8L8.021 8.99927H6V11.9993H8.97986C9.48767 12.6097 10.1846 13.0752 11 13.3798V15.9993H15V15H15.1183V13.6619C15.424 13.604 15.7185 13.5287 16 13.4354V18.9993C16 19.5297 15.7893 20.0385 15.4142 20.4135C15.0392 20.7886 14.5304 20.9993 14 20.9993H2C1.4696 20.9993 0.960815 20.7886 0.585815 20.4135C0.210693 20.0385 0 19.5297 0 18.9993V6.99927C0 6.46887 0.210693 5.96008 0.585815 5.58508C0.960815 5.20996 1.4696 4.99927 2 4.99927H8.49658C8.61633 5.7395 8.95679 6.39758 9.49194 6.93542C10.1287 7.5752 10.9968 8.00256 11.9901 8.25244V8.99927H11.5316L11.4824 8.78101ZM15.3704 5.5426C15.2915 5.46838 15.2072 5.401 15.1183 5.34106V5.47998L15.1317 5.48315C15.212 5.50232 15.2916 5.52209 15.3704 5.5426ZM15.5453 11.1414C15.5427 11.1427 15.5402 11.1442 15.5376 11.1455C15.5398 11.1443 15.542 11.1432 15.5442 11.142C15.5446 11.1417 15.5449 11.1416 15.5453 11.1414ZM15.1183 10.2329V9.07532C15.1697 9.10144 15.214 9.12708 15.2522 9.15173C15.2954 9.17969 15.3307 9.20654 15.3594 9.23181C15.4529 9.31421 15.5004 9.39319 15.5004 9.58606C15.5004 9.6875 15.4856 9.77661 15.4557 9.85645C15.4132 9.96985 15.3402 10.0647 15.2356 10.15C15.2014 10.1779 15.1624 10.2057 15.1183 10.2329ZM15 16.9993H11V19.9993H14C14.1304 19.9993 14.2582 19.9739 14.3766 19.9257C14.4991 19.8759 14.6118 19.8018 14.7072 19.7064C14.8947 19.5188 15 19.2645 15 18.9993V16.9993ZM10 19.9993V16.9993H6V19.9993H10ZM5 19.9993V16.9993H1V18.9993C1 19.2645 1.10535 19.5188 1.29285 19.7064C1.48047 19.8939 1.73474 19.9993 2 19.9993H5ZM1 15.9993H5V12.9993H1V15.9993ZM1 11.9993H5V8.99927H1V11.9993ZM10 15.9993V12.9993H6V15.9993H10Z"}),(0,e.createElement)("path",{d:"M9 9.781C9.16025 11.448 10.6382 12.631 12.8882 12.784V14H14.0176V12.784C16.4755 12.605 18 11.346 18 9.484C18 7.894 16.9746 6.974 14.7993 6.456L14.0176 6.269V2.467C15.2324 2.577 16.0521 3.181 16.2589 4.083L17.8506 4.083C17.6708 2.483 16.1831 1.335 14.0176 1.208V0L12.8882 0V1.233C10.7887 1.463 9.34757 2.705 9.34757 4.389C9.34757 5.843 10.3935 6.872 12.2288 7.306L12.8893 7.468V11.499C11.6452 11.329 10.7887 10.699 10.5819 9.781H9ZM12.6717 5.945C11.5423 5.682 10.9392 5.12 10.9392 4.329C10.9392 3.385 11.7015 2.688 12.8882 2.501V5.996L12.6717 5.945ZM14.3944 7.817C15.7879 8.14 16.3997 8.676 16.3997 9.586C16.3997 10.683 15.5053 11.414 14.0176 11.525V7.73L14.3944 7.817Z"}),(0,e.createElement)("path",{d:"M9 9.781C9.16025 11.448 10.6382 12.631 12.8882 12.784V14H14.0176V12.784C16.4755 12.605 18 11.346 18 9.484C18 7.894 16.9746 6.974 14.7993 6.456L14.0176 6.269V2.467C15.2324 2.577 16.0521 3.181 16.2589 4.083L17.8506 4.083C17.6708 2.483 16.1831 1.335 14.0176 1.208V0L12.8882 0V1.233C10.7887 1.463 9.34757 2.705 9.34757 4.389C9.34757 5.843 10.3935 6.872 12.2288 7.306L12.8893 7.468V11.499C11.6452 11.329 10.7887 10.699 10.5819 9.781H9ZM12.6717 5.945C11.5423 5.682 10.9392 5.12 10.9392 4.329C10.9392 3.385 11.7015 2.688 12.8882 2.501V5.996L12.6717 5.945ZM14.3944 7.817C15.7879 8.14 16.3997 8.676 16.3997 9.586C16.3997 10.683 15.5053 11.414 14.0176 11.525V7.73L14.3944 7.817Z"})),edit:function(t){let{attributes:l,setAttributes:p}=t;const{rel:v,title:E,minLines:g,priceValue:f,priceSup:x,currency:V,maxWidth:k,options:N,subOptions:$,textAlign:H}=l;s((()=>{}),[$]);let[L,M]=c("");const S="wp-block-webdevia-pricing-table",O=m({style:{maxWidth:k}}),F=e=>{if(e.target.closest('[class*="sub-body"]')){const e=[...$];e.push(L),p({subOptions:e})}if(e.target.closest('[class*="body"]')){const e=[...N];L?.type||(L.type="available"),e.push(L),p({options:e})}M("")},Z=(e,t)=>{e.target.closest('[class*="sub-body"]')&&p({subOptions:$.filter(((e,a)=>t!==a))}),e.target.closest('[class*="body"]')&&p({options:N.filter(((e,a)=>t!==a))})};return[(0,e.createElement)(_,null,(0,e.createElement)(h,{title:(0,a.__)("Settings","wd-framework"),initialOpen:!0,className:`${S}__ic`},(0,e.createElement)(y,{label:(0,a.__)("Min lines","wd-framework"),value:g,onChange:e=>{p({minLines:e})},min:1,max:50}),(0,e.createElement)(y,{label:(0,a.__)("Max Width","wd-framework"),value:k,onChange:e=>{p({maxWidth:e})},min:100,max:1e3}),(0,e.createElement)(w,{label:(0,a.__)("Currency","wd-framework"),value:V,placeholder:(0,a.__)("Currency","wd-framework"),onChange:e=>{p({currency:e})}}))),(0,e.createElement)(u,{group:"block"}),(0,e.createElement)("div",O,(0,e.createElement)("div",{className:`${S}__header`},(0,e.createElement)("div",{className:`${S}__header-left`},(0,e.createElement)(d,{className:"",tagName:"h3",rel:v,placeholder:(0,a.__)("Basic","wd-framework"),value:E,onChange:e=>{p({title:e})}}),(0,e.createElement)("span",null,`${g} lines min`)),(0,e.createElement)("div",{className:`${S}__header-right`},(0,e.createElement)("div",{className:`${S}__header-right__price`},(0,e.createElement)("span",{className:`${S}__header-right__currency`},V),(0,e.createElement)(d,{className:`${S}__header-right__price-value`,tagName:"span",rel:v,placeholder:(0,a.__)("price","wd-framework"),value:`${f}`,onChange:e=>{p({priceValue:e})}}),(0,e.createElement)(d,{className:`${S}__header-right__price-sup`,tagName:"sup",rel:v,placeholder:(0,a.__)("price sup","wd-framework"),value:`${x}`,onChange:e=>{p({priceSup:e})}})),(0,e.createElement)("span",null,"/mo per user"))),(0,e.createElement)("hr",{width:"100%",color:"#FFF"}),(0,e.createElement)("div",{className:`${S}__sub-body`},(0,e.createElement)("ul",null,$.length>0&&$.map(((t,a)=>(0,e.createElement)("li",{className:`${S}__sub-body__option`},(0,e.createElement)("span",null,t),(0,e.createElement)("span",{className:`${S}__sub-body__option__remove`,onClick:e=>Z(e,a)},r))))),(0,e.createElement)("div",{className:`${S}__sub-body__controls`},(0,e.createElement)(d,{tagName:"p",rel:v,placeholder:(0,a.__)("New sub option","wd-framework"),value:L,onChange:e=>{M(e)}}),(0,e.createElement)(C,{variant:"primary",onClick:F},(0,a.__)("Add","wd-framework")))),(0,e.createElement)("hr",{width:"100%",color:"#FFF"}),(0,e.createElement)("div",{className:`${S}__body`},(0,e.createElement)("ul",null,N.length>0&&N.map(((t,a)=>(0,e.createElement)("li",{className:`${S}__body__option`},(0,e.createElement)("span",null,t.name),(0,e.createElement)("span",{className:`${S}__body__option__icon`},"available"==t.type?(0,e.createElement)(n,{className:`${S}__body__option__icon__check`,icon:i}):"unavailable"==t.type?(0,e.createElement)(n,{className:`${S}__body__option__icon__close`,icon:o}):t.type),(0,e.createElement)("span",{className:`${S}__body__option__remove`,onClick:e=>Z(e,a)},r))))),(0,e.createElement)("div",{className:`${S}__body__controls`},(0,e.createElement)(d,{tagName:"p",rel:v,placeholder:(0,a.__)("New option","wd-framework"),value:L.name,onChange:e=>M({...L,name:e})}),(0,e.createElement)(b,{options:[{label:(0,a.__)("Available","wd-framework"),value:"available"},{label:(0,a.__)("Unavailable","wd-framework"),value:"unavailable"},{label:(0,a.__)("Custom","wd-framework"),value:"custom"}],value:L.type,onChange:e=>M({...L,type:e})}),"object"==typeof L&&void 0!==L?.type&&!["available","unavailable"].includes(L.type)&&(0,e.createElement)(d,{tagName:"span",rel:v,placeholder:(0,a.__)("Type","wd-framework"),value:L.type,onChange:e=>M({...L,type:e})}),(0,e.createElement)(C,{variant:"primary",onClick:F},(0,a.__)("Add","wd-framework")))))]},save:function(t){let{attributes:a}=t;const{rel:l,title:r,minLines:c,priceValue:s,priceSup:m,currency:_,maxWidth:p,options:u,subOptions:d,textAlign:h}=a,w=E.useBlockProps.save({style:{maxWidth:p}}),b="wp-block-webdevia-pricing-table";return(0,e.createElement)("div",w,(0,e.createElement)("div",{className:`${b}__header`},(0,e.createElement)("div",{className:`${b}__header-left`},(0,e.createElement)("h3",null,r),(0,e.createElement)("span",null,`${c} lines min`)),(0,e.createElement)("div",{className:`${b}__header-right`},(0,e.createElement)("div",{className:`${b}__header-right__price`},(0,e.createElement)("span",{className:`${b}__header-right__currency`},_),(0,e.createElement)("span",null,s),(0,e.createElement)("sup",null,m)),(0,e.createElement)("span",null,"/mo per user"))),(0,e.createElement)("hr",{width:"100%",color:"#FFF"}),(0,e.createElement)("div",{className:`${b}__sub-body`},(0,e.createElement)("ul",null,d.length>0&&d.map(((t,a)=>(0,e.createElement)("li",{className:`${b}__sub-body__option`},(0,e.createElement)("span",null,t)))))),(0,e.createElement)("hr",{width:"100%",color:"#FFF"}),(0,e.createElement)("div",{className:`${b}__body`},(0,e.createElement)("ul",null,u.length>0&&u.map(((t,a)=>(0,e.createElement)("li",{className:`${b}__body__option`},(0,e.createElement)("span",null,t.name),(0,e.createElement)("span",{className:`${b}__body__option__icon`},"available"==t.type?(0,e.createElement)(n,{className:`${b}__body__option__icon__check`,icon:i}):"unavailable"==t.type?(0,e.createElement)(n,{className:`${b}__body__option__icon__close`,icon:o}):t.type)))))))}})}},a={};function l(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,l),n.exports}l.m=t,e=[],l.O=function(t,a,r,n){if(!a){var i=1/0;for(m=0;m<e.length;m++){a=e[m][0],r=e[m][1],n=e[m][2];for(var o=!0,c=0;c<a.length;c++)(!1&n||i>=n)&&Object.keys(l.O).every((function(e){return l.O[e](a[c])}))?a.splice(c--,1):(o=!1,n<i&&(i=n));if(o){e.splice(m--,1);var s=r();void 0!==s&&(t=s)}}return t}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[a,r,n]},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={4336:0,2043:0,1530:0,6670:0};l.O.j=function(t){return 0===e[t]};var t=function(t,a){var r,n,i=a[0],o=a[1],c=a[2],s=0;if(i.some((function(t){return 0!==e[t]}))){for(r in o)l.o(o,r)&&(l.m[r]=o[r]);if(c)var m=c(l)}for(t&&t(a);s<i.length;s++)n=i[s],l.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return l.O(m)},a=self.webpackChunkwebdevia_blocks=self.webpackChunkwebdevia_blocks||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))}();var r=l.O(void 0,[6670],(function(){return l(5616)}));r=l.O(r)}();