Plugin Directory

Changeset 2888955

Timestamp:
03/29/2023 08:14:11 AM (17 months ago)
Author:
looswebstudio
Message:

Update to version 1.7.2 from GitHub

Location:
useful-blocks
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • useful-blocks/tags/1.7.2/.nvmrc

    r2888410 r2888955  
    1 v16.19.1
     116
  • useful-blocks/tags/1.7.2/dist/blocks/cv-box-note/index.asset.php

    r2888410 r2888955  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'd92c16fedbde405b25ac');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'c');
  • useful-blocks/tags/1.7.2/dist/blocks/cv-box-note/index.js

    r2888410 r2888955  
    1 (()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var r=typeof c;if("string"===r||"number"===r)e.push(c);else if(Array.isArray(c)){if(c.length){var l=n.apply(null,c);l&&e.push(l)}}else if("object"===r){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){e.push(c.toString());continue}for(var o in c)a.call(c,o)&&c[o]&&e.push(o)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(c=function(){return n}.apply(t,[]))||(e.exports=c)}()}},t={};function c(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var a in t)c.o(t,a)&&!c.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,a=window.wp.blocks,n=window.wp.blockEditor,r={color:"#f6a068",iconbox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M50.2,7.4H5.8C3.1,7.4,1,9.6,1,12.2v31.6c0,2.6,2.1,4.8,4.8,4.8h44.4c2.6,0,4.8-2.1,4.8-4.8V12.2C55,9.6,52.9,7.4,50.2,7.4z M50.2,46.1H5.8c-1.3,0-2.3-1-2.3-2.3V17.9h49.1v25.9C52.5,45.1,51.5,46.1,50.2,46.1z"}),(0,e.createElement)("path",{d:"M37.5,33.7c-1.7,0-2.5-0.5-2.5-1.5c0-1,1.1-2.5,2.5-2.5c1.4,0,2.5,1.5,2.5,2.5C40,33.2,39.2,33.7,37.5,33.7z M36.4,32.2 c0.1,0,0.3,0.1,1.1,0.1c0.7,0,1-0.1,1.1-0.1c-0.1-0.3-0.6-1.1-1.1-1.1C37,31.1,36.5,31.9,36.4,32.2C36.4,32.2,36.4,32.2,36.4,32.2 z"}),(0,e.createElement)("path",{d:"M42.7,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C42.3,29.4,42.7,29.9,42.7,30.5z"}),(0,e.createElement)("path",{d:"M34.2,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C33.8,29.4,34.2,29.9,34.2,30.5z"}),(0,e.createElement)("path",{d:"M50.6,35.5c0-3.1-2.2-7-4.7-7.2c-1.8-3.6-4.9-6.4-8.3-6.4c-3,0-6.4,2.6-8.4,6.5c-2.5,0.3-4.6,4.1-4.6,7.1 c0,2.8,1.5,4.2,4.4,4.2c1.4,1.8,4,3.1,8.5,3.1c4.6,0,7.1-1.3,8.5-3.1C49.1,39.7,50.6,38.3,50.6,35.5z M26.2,35.5 c0-1.7,0.9-3.8,2-4.9c-0.4,1.4-0.7,2.8-0.7,4.3c0,1,0.1,2,0.5,3C26.7,37.7,26.2,37,26.2,35.5z M30.9,39.3c-0.2-0.2-0.4-0.4-0.6-0.6 c0,0,0,0-0.1-0.1c-0.2-0.2-0.3-0.5-0.5-0.7c-0.4-0.8-0.6-1.8-0.6-3c0-1.5,0.4-3.2,1-4.8l0,0c0.2-0.5,0.4-1,0.7-1.5 c1.5-2.9,3.9-5.1,6.6-5.1c2.7,0,5.1,2.3,6.6,5.2h0c0.3,0.5,0.5,1,0.7,1.5c0.6,1.6,1,3.3,1,4.8c0,1.2-0.2,2.2-0.6,3 c-0.1,0.3-0.3,0.5-0.5,0.7c0,0,0,0,0,0c-0.2,0.2-0.4,0.4-0.6,0.6c-1.5,1.3-3.9,1.8-6.6,1.8C34.8,41.1,32.5,40.7,30.9,39.3z M47,38 c0.4-1,0.5-2,0.5-3c0-1.5-0.3-3-0.8-4.5c1.1,1,2.1,3.2,2.1,5C48.9,37,48.4,37.7,47,38z"})),cvBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.97,8.08L52,8.11l-0.03,39.81L4,47.89L4.03,8.08H51.97 M51.97,6.08H4.03C2.91,6.08,2,6.99,2,8.11v39.78 c0,1.12,0.91,2.03,2.03,2.03h47.94c1.12,0,2.03-0.91,2.03-2.03V8.11C54,6.99,53.09,6.08,51.97,6.08L51.97,6.08z"}),(0,e.createElement)("path",{d:"M44.31,18.15H11.69c-1.13,0-2.04,0.91-2.04,2.04v12.55c0,1.13,0.91,2.04,2.04,2.04h32.63c1.13,0,2.04-0.91,2.04-2.04 V20.19C46.35,19.07,45.44,18.15,44.31,18.15z M26.01,28.44c-0.2,0.85-0.59,1.51-1.16,1.98c-0.59,0.46-1.29,0.69-2.09,0.69h0 c-0.72-0.02-1.34-0.2-1.83-0.54c-0.49-0.32-0.85-0.7-1.08-1.14c-0.07-0.14-0.13-0.27-0.18-0.39c-0.05-0.14-0.1-0.31-0.13-0.51 c-0.06-0.36-0.09-1.04-0.09-2.05c0-1.03,0.03-1.71,0.09-2.07c0.07-0.37,0.18-0.67,0.32-0.9c0.22-0.42,0.58-0.8,1.07-1.14 c0.49-0.34,1.1-0.52,1.83-0.53c0.89,0.01,1.63,0.28,2.2,0.8c0.56,0.52,0.92,1.18,1.07,1.95l0.05,0.24h-1.8l-0.04-0.14 c-0.1-0.31-0.27-0.58-0.52-0.8c-0.25-0.2-0.57-0.31-0.94-0.31c-0.27,0.01-0.51,0.06-0.7,0.16c-0.2,0.1-0.36,0.24-0.48,0.39 c-0.16,0.17-0.25,0.38-0.3,0.64c-0.06,0.3-0.09,0.87-0.09,1.71s0.03,1.41,0.09,1.7c0.05,0.27,0.15,0.48,0.29,0.64 c0.13,0.17,0.29,0.29,0.49,0.39c0.2,0.12,0.44,0.18,0.71,0.18c0.66,0,1.14-0.35,1.48-1.07l0.05-0.12h1.79L26.01,28.44z M33.55,31.03h-1.32l-3.01-9.12h1.83l1.84,6.16l1.84-6.16h1.83L33.55,31.03z"}),(0,e.createElement)("circle",{cx:"11.18",cy:"14.24",r:"1.53"}),(0,e.createElement)("path",{d:"M45.54,15.25H15.56c-0.17,0-0.3-0.14-0.3-0.3v-1.43c0-0.17,0.14-0.3,0.3-0.3h29.98c0.17,0,0.3,0.14,0.3,0.3v1.43 C45.84,15.12,45.71,15.25,45.54,15.25z"}),(0,e.createElement)("path",{d:"M44.86,39.69v3.14H11.14v-3.14H44.86 M45.58,37.69H10.42c-0.71,0-1.28,0.57-1.28,1.28v4.57c0,0.71,0.57,1.28,1.28,1.28 h35.16c0.71,0,1.28-0.57,1.28-1.28v-4.57C46.86,38.26,46.29,37.69,45.58,37.69L45.58,37.69z"})),button:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M38.62,26.05c-0.11-0.15-0.23-0.25-0.39-0.33c-0.16-0.08-0.36-0.12-0.59-0.13c-0.23,0.01-0.42,0.05-0.57,0.13 c-0.17,0.09-0.29,0.19-0.39,0.32c-0.13,0.14-0.21,0.31-0.25,0.52c-0.05,0.25-0.08,0.74-0.08,1.45c0,0.71,0.03,1.19,0.08,1.43 c0.04,0.22,0.12,0.39,0.23,0.51c0.11,0.14,0.24,0.24,0.4,0.32c0.17,0.1,0.36,0.14,0.58,0.14c0.23,0,0.42-0.05,0.58-0.14 c0.16-0.08,0.28-0.18,0.37-0.31c0.13-0.15,0.21-0.32,0.26-0.54c0.05-0.24,0.07-0.72,0.07-1.43c0-0.71-0.02-1.2-0.07-1.44 C38.82,26.35,38.74,26.18,38.62,26.05z"}),(0,e.createElement)("path",{d:"M10.65,28.65H9.16v1.76h1.5c0.34-0.01,0.59-0.09,0.74-0.26c0.16-0.18,0.23-0.38,0.23-0.62c0-0.25-0.08-0.45-0.23-0.63 C11.25,28.74,11,28.65,10.65,28.65z"}),(0,e.createElement)("path",{d:"M11.28,26.94c0.16-0.16,0.23-0.35,0.23-0.59c0-0.24-0.08-0.43-0.23-0.6c-0.14-0.14-0.39-0.22-0.74-0.23H9.16v1.65h1.39 C10.89,27.18,11.14,27.1,11.28,26.94z"}),(0,e.createElement)("path",{d:"M51.24,17.27H4.76C3.23,17.27,2,18.5,2,20.02v15.95c0,1.52,1.23,2.76,2.76,2.76h46.49c1.52,0,2.76-1.23,2.76-2.76V20.02 C54,18.5,52.77,17.27,51.24,17.27z M12.54,31.29c-0.43,0.43-0.97,0.65-1.62,0.65H7.58v-7.87h3.1c0.79,0.01,1.39,0.21,1.8,0.62 c0.41,0.41,0.62,0.94,0.62,1.6c0.01,0.34-0.08,0.68-0.25,0.99c-0.09,0.16-0.22,0.31-0.39,0.44c-0.05,0.05-0.11,0.09-0.17,0.13 c0.24,0.13,0.44,0.32,0.6,0.56c0.22,0.37,0.33,0.77,0.33,1.2C13.2,30.3,12.98,30.87,12.54,31.29z M20.54,29.19 c-0.02,0.84-0.3,1.52-0.83,2.02c-0.53,0.51-1.22,0.77-2.03,0.78h0h0c-0.8-0.01-1.48-0.27-2.01-0.78c-0.55-0.5-0.84-1.18-0.84-2.02 v-5.13h1.58v5c0.01,0.44,0.12,0.76,0.36,0.98c0.24,0.24,0.54,0.36,0.91,0.36c0.38,0,0.68-0.12,0.92-0.35 c0.23-0.22,0.35-0.55,0.36-0.99v-5h1.59V29.19z M27.42,25.53h-2.03v6.4H23.8v-6.4h-2.03v-1.46h5.64V25.53z M33.66,25.53h-2.03v6.4 h-1.59v-6.4h-2.03v-1.46h5.64V25.53z M40.45,29.75c-0.05,0.33-0.15,0.61-0.3,0.81c-0.17,0.35-0.48,0.68-0.9,0.96 c-0.43,0.29-0.97,0.45-1.6,0.47h-0.01h-0.01c-0.63-0.01-1.16-0.17-1.58-0.47c-0.42-0.28-0.74-0.61-0.94-0.99 c-0.06-0.12-0.11-0.23-0.16-0.34c-0.05-0.13-0.09-0.28-0.12-0.45c-0.05-0.31-0.08-0.88-0.08-1.75c0-0.89,0.03-1.46,0.08-1.77 c0.06-0.32,0.15-0.58,0.28-0.79c0.19-0.36,0.5-0.7,0.93-0.98c0.42-0.3,0.96-0.45,1.58-0.46c0.64,0.01,1.18,0.16,1.61,0.46 c0.42,0.29,0.73,0.63,0.92,1c0.13,0.18,0.23,0.45,0.28,0.77c0.05,0.31,0.07,0.88,0.07,1.76C40.52,28.87,40.5,29.44,40.45,29.75z M48.42,31.93h-1.42L44,27.2v4.73h-1.59v-7.87h1.41l3.01,4.73v-4.73h1.59V31.93z"})),list:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("circle",{cx:"7.34",cy:"13.44",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,15.34H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,15.14,52.8,15.34,52.55,15.34z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"28",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,29.9H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,29.7,52.8,29.9,52.55,29.9z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"42.56",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,44.46H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,44.25,52.8,44.46,52.55,44.46z"})),compareBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.11,10.13H4.89C2.75,10.13,1,11.88,1,14.02v28.27c0,2.15,1.75,3.89,3.89,3.89h46.22c2.15,0,3.89-1.75,3.89-3.89V14.02 C55,11.88,53.25,10.13,51.11,10.13z M3,42.29V20.42h23.76v23.76H4.89C3.85,44.18,3,43.33,3,42.29z M51.11,44.18H29.24V20.42H53 v21.87C53,43.33,52.15,44.18,51.11,44.18z"}))},l=window.wp.components,o=window.wp.hooks,s="useful-blocks",i=(0,o.applyFilters)("pb-hook.isPro",!1);function p(c){let{description:a,children:n}=c;return(0,e.createElement)(e.Fragment,null,i?n:(0,e.createElement)("div",{className:"pb-free-noticeBox"},(0,e.createElement)("a",{href:"https://ponhiro.com/useful-blocks/#download-link",target:"_blank",rel:"noreferrer noopener"},(0,t.__)("In the Pro version,",s)),a||"",(0,e.createElement)("div",{className:"pb-free-ctrlPreview"},n)))}const m=["border","bg"],v=[{val:""},{val:"pb-icon-lightbulb"},{val:"pb-icon-mail"},{val:"pb-icon-cart"},{val:"pb-icon-exclamation"}],h=c=>{let{attributes:a,setAttributes:n}=c;const{icon:r,dataStyle:o}=a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Style settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(l.ButtonGroup,{className:"pb-panel--colorSet"},m.map((t=>{let c=!1;-1!==o.indexOf(t)&&(c=!0);const a="pb-cvnote-style-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:a,className:"__btn",onClick:()=>{n({dataStyle:t})}}),(0,e.createElement)("label",{htmlFor:a,className:"__label","data-selected":c||null},(0,e.createElement)("div",{className:"pb-cv-box__notewrap"},(0,e.createElement)("span",{className:"pb-cv-box__note -preview","data-style":t},"border"===t?"Border":"White"))))}))))),(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Icon settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(p,{description:(0,t.__)("you can choose from several types of icons.",s)},(0,e.createElement)(l.ButtonGroup,{className:"pb-btn-group"},v.map((c=>{const a=c.val,o=a===r;return(0,e.createElement)(l.Button,{variant:o?"primary":"secondary",key:`pb-cv-note-icon-${a}`,onClick:()=>{i&&n({icon:a})}},a?(0,e.createElement)("i",{className:a}):(0,e.createElement)("span",null,(0,t.__)("None",s)))})))))))};var u=c(184),d=c.n(u);const b=JSON.parse('{"name":"ponhiro-blocks/cv-box-note","title":"CV Text","category":"useful-blocks","supports":{"reusable":false,"className":false},"parent":["ponhiro-blocks/cv-box"],"attributes":{"icon":{"type":"string","default":""},"dataStyle":{"type":"string","source":"attribute","attribute":"data-style","selector":".pb-cv-box__note","default":"border"},"content":{"type":"string","source":"html","selector":".__text"}}}'),{name:E,category:y,parent:_,supports:C}=b,x="pb-cv-box__note";(0,a.registerBlockType)(E,{title:(0,t.__)("CV Text",s),icon:{foreground:r.color,src:r.cvBox},category:y,supports:C,parent:_,attributes:b.attributes,edit:c=>{const{className:a,attributes:r,setAttributes:l}=c,{content:o,icon:i,dataStyle:p}=r;let m=d()(x,a);return 0===o.length&&(m=d()(m,"has-no-content")),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(h,{attributes:r,setAttributes:l})),(0,e.createElement)("div",{className:m,"data-style":p},i&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:i})),(0,e.createElement)(n.RichText,{tagName:"div",className:"__text",placeholder:(0,t.__)("Text…",s),value:o,onChange:e=>l({content:e})})))},save:t=>{let{attributes:c}=t;const{content:a,icon:r,dataStyle:l}=c;return 0===a.length?null:(0,e.createElement)("div",{className:x,"data-style":l},r&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:r})),(0,e.createElement)(n.RichText.Content,{tagName:"div",className:"__text",value:a}))}})})()})();
     1(()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var r=typeof c;if("string"===r||"number"===r)e.push(c);else if(Array.isArray(c)){if(c.length){var l=n.apply(null,c);l&&e.push(l)}}else if("object"===r){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){e.push(c.toString());continue}for(var o in c)a.call(c,o)&&c[o]&&e.push(o)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(c=function(){return n}.apply(t,[]))||(e.exports=c)}()}},t={};function c(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var a in t)c.o(t,a)&&!c.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,a=window.wp.blocks,n=window.wp.blockEditor,r={color:"#f6a068",iconbox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M50.2,7.4H5.8C3.1,7.4,1,9.6,1,12.2v31.6c0,2.6,2.1,4.8,4.8,4.8h44.4c2.6,0,4.8-2.1,4.8-4.8V12.2C55,9.6,52.9,7.4,50.2,7.4z M50.2,46.1H5.8c-1.3,0-2.3-1-2.3-2.3V17.9h49.1v25.9C52.5,45.1,51.5,46.1,50.2,46.1z"}),(0,e.createElement)("path",{d:"M37.5,33.7c-1.7,0-2.5-0.5-2.5-1.5c0-1,1.1-2.5,2.5-2.5c1.4,0,2.5,1.5,2.5,2.5C40,33.2,39.2,33.7,37.5,33.7z M36.4,32.2 c0.1,0,0.3,0.1,1.1,0.1c0.7,0,1-0.1,1.1-0.1c-0.1-0.3-0.6-1.1-1.1-1.1C37,31.1,36.5,31.9,36.4,32.2C36.4,32.2,36.4,32.2,36.4,32.2 z"}),(0,e.createElement)("path",{d:"M42.7,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C42.3,29.4,42.7,29.9,42.7,30.5z"}),(0,e.createElement)("path",{d:"M34.2,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C33.8,29.4,34.2,29.9,34.2,30.5z"}),(0,e.createElement)("path",{d:"M50.6,35.5c0-3.1-2.2-7-4.7-7.2c-1.8-3.6-4.9-6.4-8.3-6.4c-3,0-6.4,2.6-8.4,6.5c-2.5,0.3-4.6,4.1-4.6,7.1 c0,2.8,1.5,4.2,4.4,4.2c1.4,1.8,4,3.1,8.5,3.1c4.6,0,7.1-1.3,8.5-3.1C49.1,39.7,50.6,38.3,50.6,35.5z M26.2,35.5 c0-1.7,0.9-3.8,2-4.9c-0.4,1.4-0.7,2.8-0.7,4.3c0,1,0.1,2,0.5,3C26.7,37.7,26.2,37,26.2,35.5z M30.9,39.3c-0.2-0.2-0.4-0.4-0.6-0.6 c0,0,0,0-0.1-0.1c-0.2-0.2-0.3-0.5-0.5-0.7c-0.4-0.8-0.6-1.8-0.6-3c0-1.5,0.4-3.2,1-4.8l0,0c0.2-0.5,0.4-1,0.7-1.5 c1.5-2.9,3.9-5.1,6.6-5.1c2.7,0,5.1,2.3,6.6,5.2h0c0.3,0.5,0.5,1,0.7,1.5c0.6,1.6,1,3.3,1,4.8c0,1.2-0.2,2.2-0.6,3 c-0.1,0.3-0.3,0.5-0.5,0.7c0,0,0,0,0,0c-0.2,0.2-0.4,0.4-0.6,0.6c-1.5,1.3-3.9,1.8-6.6,1.8C34.8,41.1,32.5,40.7,30.9,39.3z M47,38 c0.4-1,0.5-2,0.5-3c0-1.5-0.3-3-0.8-4.5c1.1,1,2.1,3.2,2.1,5C48.9,37,48.4,37.7,47,38z"})),cvBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.97,8.08L52,8.11l-0.03,39.81L4,47.89L4.03,8.08H51.97 M51.97,6.08H4.03C2.91,6.08,2,6.99,2,8.11v39.78 c0,1.12,0.91,2.03,2.03,2.03h47.94c1.12,0,2.03-0.91,2.03-2.03V8.11C54,6.99,53.09,6.08,51.97,6.08L51.97,6.08z"}),(0,e.createElement)("path",{d:"M44.31,18.15H11.69c-1.13,0-2.04,0.91-2.04,2.04v12.55c0,1.13,0.91,2.04,2.04,2.04h32.63c1.13,0,2.04-0.91,2.04-2.04 V20.19C46.35,19.07,45.44,18.15,44.31,18.15z M26.01,28.44c-0.2,0.85-0.59,1.51-1.16,1.98c-0.59,0.46-1.29,0.69-2.09,0.69h0 c-0.72-0.02-1.34-0.2-1.83-0.54c-0.49-0.32-0.85-0.7-1.08-1.14c-0.07-0.14-0.13-0.27-0.18-0.39c-0.05-0.14-0.1-0.31-0.13-0.51 c-0.06-0.36-0.09-1.04-0.09-2.05c0-1.03,0.03-1.71,0.09-2.07c0.07-0.37,0.18-0.67,0.32-0.9c0.22-0.42,0.58-0.8,1.07-1.14 c0.49-0.34,1.1-0.52,1.83-0.53c0.89,0.01,1.63,0.28,2.2,0.8c0.56,0.52,0.92,1.18,1.07,1.95l0.05,0.24h-1.8l-0.04-0.14 c-0.1-0.31-0.27-0.58-0.52-0.8c-0.25-0.2-0.57-0.31-0.94-0.31c-0.27,0.01-0.51,0.06-0.7,0.16c-0.2,0.1-0.36,0.24-0.48,0.39 c-0.16,0.17-0.25,0.38-0.3,0.64c-0.06,0.3-0.09,0.87-0.09,1.71s0.03,1.41,0.09,1.7c0.05,0.27,0.15,0.48,0.29,0.64 c0.13,0.17,0.29,0.29,0.49,0.39c0.2,0.12,0.44,0.18,0.71,0.18c0.66,0,1.14-0.35,1.48-1.07l0.05-0.12h1.79L26.01,28.44z M33.55,31.03h-1.32l-3.01-9.12h1.83l1.84,6.16l1.84-6.16h1.83L33.55,31.03z"}),(0,e.createElement)("circle",{cx:"11.18",cy:"14.24",r:"1.53"}),(0,e.createElement)("path",{d:"M45.54,15.25H15.56c-0.17,0-0.3-0.14-0.3-0.3v-1.43c0-0.17,0.14-0.3,0.3-0.3h29.98c0.17,0,0.3,0.14,0.3,0.3v1.43 C45.84,15.12,45.71,15.25,45.54,15.25z"}),(0,e.createElement)("path",{d:"M44.86,39.69v3.14H11.14v-3.14H44.86 M45.58,37.69H10.42c-0.71,0-1.28,0.57-1.28,1.28v4.57c0,0.71,0.57,1.28,1.28,1.28 h35.16c0.71,0,1.28-0.57,1.28-1.28v-4.57C46.86,38.26,46.29,37.69,45.58,37.69L45.58,37.69z"})),button:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M38.62,26.05c-0.11-0.15-0.23-0.25-0.39-0.33c-0.16-0.08-0.36-0.12-0.59-0.13c-0.23,0.01-0.42,0.05-0.57,0.13 c-0.17,0.09-0.29,0.19-0.39,0.32c-0.13,0.14-0.21,0.31-0.25,0.52c-0.05,0.25-0.08,0.74-0.08,1.45c0,0.71,0.03,1.19,0.08,1.43 c0.04,0.22,0.12,0.39,0.23,0.51c0.11,0.14,0.24,0.24,0.4,0.32c0.17,0.1,0.36,0.14,0.58,0.14c0.23,0,0.42-0.05,0.58-0.14 c0.16-0.08,0.28-0.18,0.37-0.31c0.13-0.15,0.21-0.32,0.26-0.54c0.05-0.24,0.07-0.72,0.07-1.43c0-0.71-0.02-1.2-0.07-1.44 C38.82,26.35,38.74,26.18,38.62,26.05z"}),(0,e.createElement)("path",{d:"M10.65,28.65H9.16v1.76h1.5c0.34-0.01,0.59-0.09,0.74-0.26c0.16-0.18,0.23-0.38,0.23-0.62c0-0.25-0.08-0.45-0.23-0.63 C11.25,28.74,11,28.65,10.65,28.65z"}),(0,e.createElement)("path",{d:"M11.28,26.94c0.16-0.16,0.23-0.35,0.23-0.59c0-0.24-0.08-0.43-0.23-0.6c-0.14-0.14-0.39-0.22-0.74-0.23H9.16v1.65h1.39 C10.89,27.18,11.14,27.1,11.28,26.94z"}),(0,e.createElement)("path",{d:"M51.24,17.27H4.76C3.23,17.27,2,18.5,2,20.02v15.95c0,1.52,1.23,2.76,2.76,2.76h46.49c1.52,0,2.76-1.23,2.76-2.76V20.02 C54,18.5,52.77,17.27,51.24,17.27z M12.54,31.29c-0.43,0.43-0.97,0.65-1.62,0.65H7.58v-7.87h3.1c0.79,0.01,1.39,0.21,1.8,0.62 c0.41,0.41,0.62,0.94,0.62,1.6c0.01,0.34-0.08,0.68-0.25,0.99c-0.09,0.16-0.22,0.31-0.39,0.44c-0.05,0.05-0.11,0.09-0.17,0.13 c0.24,0.13,0.44,0.32,0.6,0.56c0.22,0.37,0.33,0.77,0.33,1.2C13.2,30.3,12.98,30.87,12.54,31.29z M20.54,29.19 c-0.02,0.84-0.3,1.52-0.83,2.02c-0.53,0.51-1.22,0.77-2.03,0.78h0h0c-0.8-0.01-1.48-0.27-2.01-0.78c-0.55-0.5-0.84-1.18-0.84-2.02 v-5.13h1.58v5c0.01,0.44,0.12,0.76,0.36,0.98c0.24,0.24,0.54,0.36,0.91,0.36c0.38,0,0.68-0.12,0.92-0.35 c0.23-0.22,0.35-0.55,0.36-0.99v-5h1.59V29.19z M27.42,25.53h-2.03v6.4H23.8v-6.4h-2.03v-1.46h5.64V25.53z M33.66,25.53h-2.03v6.4 h-1.59v-6.4h-2.03v-1.46h5.64V25.53z M40.45,29.75c-0.05,0.33-0.15,0.61-0.3,0.81c-0.17,0.35-0.48,0.68-0.9,0.96 c-0.43,0.29-0.97,0.45-1.6,0.47h-0.01h-0.01c-0.63-0.01-1.16-0.17-1.58-0.47c-0.42-0.28-0.74-0.61-0.94-0.99 c-0.06-0.12-0.11-0.23-0.16-0.34c-0.05-0.13-0.09-0.28-0.12-0.45c-0.05-0.31-0.08-0.88-0.08-1.75c0-0.89,0.03-1.46,0.08-1.77 c0.06-0.32,0.15-0.58,0.28-0.79c0.19-0.36,0.5-0.7,0.93-0.98c0.42-0.3,0.96-0.45,1.58-0.46c0.64,0.01,1.18,0.16,1.61,0.46 c0.42,0.29,0.73,0.63,0.92,1c0.13,0.18,0.23,0.45,0.28,0.77c0.05,0.31,0.07,0.88,0.07,1.76C40.52,28.87,40.5,29.44,40.45,29.75z M48.42,31.93h-1.42L44,27.2v4.73h-1.59v-7.87h1.41l3.01,4.73v-4.73h1.59V31.93z"})),list:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("circle",{cx:"7.34",cy:"13.44",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,15.34H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,15.14,52.8,15.34,52.55,15.34z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"28",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,29.9H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,29.7,52.8,29.9,52.55,29.9z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"42.56",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,44.46H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,44.25,52.8,44.46,52.55,44.46z"})),compareBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.11,10.13H4.89C2.75,10.13,1,11.88,1,14.02v28.27c0,2.15,1.75,3.89,3.89,3.89h46.22c2.15,0,3.89-1.75,3.89-3.89V14.02 C55,11.88,53.25,10.13,51.11,10.13z M3,42.29V20.42h23.76v23.76H4.89C3.85,44.18,3,43.33,3,42.29z M51.11,44.18H29.24V20.42H53 v21.87C53,43.33,52.15,44.18,51.11,44.18z"}))},l=window.wp.components,o=window.wp.hooks,s="useful-blocks",i=(0,o.applyFilters)("pb-hook.isPro",!1);function p(c){let{description:a,children:n}=c;return(0,e.createElement)(e.Fragment,null,i?n:(0,e.createElement)("div",{className:"pb-free-noticeBox"},(0,e.createElement)("a",{href:"https://ponhiro.com/useful-blocks/#download-link",target:"_blank",rel:"noreferrer noopener"},(0,t.__)("In the Pro version,",s)),a||"",(0,e.createElement)("div",{className:"pb-free-ctrlPreview"},n)))}const m=["border","bg"],v=[{val:""},{val:"pb-icon-lightbulb"},{val:"pb-icon-mail"},{val:"pb-icon-cart"},{val:"pb-icon-exclamation"}],h=c=>{let{attributes:a,setAttributes:n}=c;const{icon:r,dataStyle:o}=a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Style settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(l.ButtonGroup,{className:"pb-panel--colorSet"},m.map((t=>{let c=!1;-1!==o.indexOf(t)&&(c=!0);const a="pb-cvnote-style-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:a,className:"__btn",onClick:()=>{n({dataStyle:t})}}),(0,e.createElement)("label",{htmlFor:a,className:"__label","data-selected":c||null},(0,e.createElement)("div",{className:"pb-cv-box__notewrap"},(0,e.createElement)("span",{className:"pb-cv-box__note -preview","data-style":t},"border"===t?"Border":"White"))))}))))),(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Icon settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(p,{description:(0,t.__)("you can choose from several types of icons.",s)},(0,e.createElement)(l.ButtonGroup,{className:"pb-btn-group"},v.map((c=>{const a=c.val,o=a===r;return(0,e.createElement)(l.Button,{variant:o?"primary":"secondary",key:`pb-cv-note-icon-${a}`,onClick:()=>{i&&n({icon:a})}},a?(0,e.createElement)("i",{className:a}):(0,e.createElement)("span",null,(0,t.__)("None",s)))})))))))};var u=c(184),d=c.n(u);const b=JSON.parse('{"name":"ponhiro-blocks/cv-box-note","title":"CV Text","category":"useful-blocks","supports":{"reusable":false,"className":false},"parent":["ponhiro-blocks/cv-box"],"attributes":{"icon":{"type":"string","default":""},"dataStyle":{"type":"string","source":"attribute","attribute":"data-style","selector":".pb-cv-box__note","default":"border"},"content":{"type":"string","source":"html","selector":".__text"}}}'),{name:E,category:y,parent:_,supports:C}=b,x="pb-cv-box__note";(0,a.registerBlockType)(E,{title:(0,t.__)("CV Text",s),icon:{foreground:r.color,src:r.cvBox},category:y,supports:C,parent:_,attributes:b.attributes,edit:c=>{const{className:a,attributes:r,setAttributes:l}=c,{content:o,icon:i,dataStyle:p}=r;let m=d()(x,a);return (m=d()(m,"has-no-content")),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(h,{attributes:r,setAttributes:l})),(0,e.createElement)("div",{className:m,"data-style":p},i&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:i})),(0,e.createElement)(n.RichText,{tagName:"div",className:"__text",placeholder:(0,t.__)("Text…",s),value:o,onChange:e=>l({content:e})})))},save:t=>{let{attributes:c}=t;const{content:a,icon:r,dataStyle:l}=c;return 0===a.length?null:(0,e.createElement)("div",{className:x,"data-style":l},r&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:r})),(0,e.createElement)(n.RichText.Content,{tagName:"div",className:"__text",value:a}))}})})()})();
  • useful-blocks/tags/1.7.2/dist/blocks/iconbox/index.asset.php

    r2888410 r2888955  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '78c4fd55a252ad65f25d');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '');
  • useful-blocks/tags/1.7.2/dist/blocks/iconbox/index.js

    r2888410 r2888955  
    1 (()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var a=typeof c;if("string"===a||"number"===a)e.push(c);else if(Array.isArray(c)){if(c.length){var o=l.apply(null,c);o&&e.push(o)}}else if("object"===a){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){e.push(c.toString());continue}for(var r in c)n.call(c,r)&&c[r]&&e.push(r)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(c=function(){return l}.apply(t,[]))||(e.exports=c)}()}},t={};function c(n){var l=t[n];if(void 0!==l)return l.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,c),a.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,n=window.wp.blocks,l=window.wp.blockEditor,a=window.wp.components,o=window.wp.primitives,r=(0,e.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));var s=c(184),i=c.n(s);const m={color:"#f6a068",iconbox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M50.2,7.4H5.8C3.1,7.4,1,9.6,1,12.2v31.6c0,2.6,2.1,4.8,4.8,4.8h44.4c2.6,0,4.8-2.1,4.8-4.8V12.2C55,9.6,52.9,7.4,50.2,7.4z M50.2,46.1H5.8c-1.3,0-2.3-1-2.3-2.3V17.9h49.1v25.9C52.5,45.1,51.5,46.1,50.2,46.1z"}),(0,e.createElement)("path",{d:"M37.5,33.7c-1.7,0-2.5-0.5-2.5-1.5c0-1,1.1-2.5,2.5-2.5c1.4,0,2.5,1.5,2.5,2.5C40,33.2,39.2,33.7,37.5,33.7z M36.4,32.2 c0.1,0,0.3,0.1,1.1,0.1c0.7,0,1-0.1,1.1-0.1c-0.1-0.3-0.6-1.1-1.1-1.1C37,31.1,36.5,31.9,36.4,32.2C36.4,32.2,36.4,32.2,36.4,32.2 z"}),(0,e.createElement)("path",{d:"M42.7,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C42.3,29.4,42.7,29.9,42.7,30.5z"}),(0,e.createElement)("path",{d:"M34.2,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C33.8,29.4,34.2,29.9,34.2,30.5z"}),(0,e.createElement)("path",{d:"M50.6,35.5c0-3.1-2.2-7-4.7-7.2c-1.8-3.6-4.9-6.4-8.3-6.4c-3,0-6.4,2.6-8.4,6.5c-2.5,0.3-4.6,4.1-4.6,7.1 c0,2.8,1.5,4.2,4.4,4.2c1.4,1.8,4,3.1,8.5,3.1c4.6,0,7.1-1.3,8.5-3.1C49.1,39.7,50.6,38.3,50.6,35.5z M26.2,35.5 c0-1.7,0.9-3.8,2-4.9c-0.4,1.4-0.7,2.8-0.7,4.3c0,1,0.1,2,0.5,3C26.7,37.7,26.2,37,26.2,35.5z M30.9,39.3c-0.2-0.2-0.4-0.4-0.6-0.6 c0,0,0,0-0.1-0.1c-0.2-0.2-0.3-0.5-0.5-0.7c-0.4-0.8-0.6-1.8-0.6-3c0-1.5,0.4-3.2,1-4.8l0,0c0.2-0.5,0.4-1,0.7-1.5 c1.5-2.9,3.9-5.1,6.6-5.1c2.7,0,5.1,2.3,6.6,5.2h0c0.3,0.5,0.5,1,0.7,1.5c0.6,1.6,1,3.3,1,4.8c0,1.2-0.2,2.2-0.6,3 c-0.1,0.3-0.3,0.5-0.5,0.7c0,0,0,0,0,0c-0.2,0.2-0.4,0.4-0.6,0.6c-1.5,1.3-3.9,1.8-6.6,1.8C34.8,41.1,32.5,40.7,30.9,39.3z M47,38 c0.4-1,0.5-2,0.5-3c0-1.5-0.3-3-0.8-4.5c1.1,1,2.1,3.2,2.1,5C48.9,37,48.4,37.7,47,38z"})),cvBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.97,8.08L52,8.11l-0.03,39.81L4,47.89L4.03,8.08H51.97 M51.97,6.08H4.03C2.91,6.08,2,6.99,2,8.11v39.78 c0,1.12,0.91,2.03,2.03,2.03h47.94c1.12,0,2.03-0.91,2.03-2.03V8.11C54,6.99,53.09,6.08,51.97,6.08L51.97,6.08z"}),(0,e.createElement)("path",{d:"M44.31,18.15H11.69c-1.13,0-2.04,0.91-2.04,2.04v12.55c0,1.13,0.91,2.04,2.04,2.04h32.63c1.13,0,2.04-0.91,2.04-2.04 V20.19C46.35,19.07,45.44,18.15,44.31,18.15z M26.01,28.44c-0.2,0.85-0.59,1.51-1.16,1.98c-0.59,0.46-1.29,0.69-2.09,0.69h0 c-0.72-0.02-1.34-0.2-1.83-0.54c-0.49-0.32-0.85-0.7-1.08-1.14c-0.07-0.14-0.13-0.27-0.18-0.39c-0.05-0.14-0.1-0.31-0.13-0.51 c-0.06-0.36-0.09-1.04-0.09-2.05c0-1.03,0.03-1.71,0.09-2.07c0.07-0.37,0.18-0.67,0.32-0.9c0.22-0.42,0.58-0.8,1.07-1.14 c0.49-0.34,1.1-0.52,1.83-0.53c0.89,0.01,1.63,0.28,2.2,0.8c0.56,0.52,0.92,1.18,1.07,1.95l0.05,0.24h-1.8l-0.04-0.14 c-0.1-0.31-0.27-0.58-0.52-0.8c-0.25-0.2-0.57-0.31-0.94-0.31c-0.27,0.01-0.51,0.06-0.7,0.16c-0.2,0.1-0.36,0.24-0.48,0.39 c-0.16,0.17-0.25,0.38-0.3,0.64c-0.06,0.3-0.09,0.87-0.09,1.71s0.03,1.41,0.09,1.7c0.05,0.27,0.15,0.48,0.29,0.64 c0.13,0.17,0.29,0.29,0.49,0.39c0.2,0.12,0.44,0.18,0.71,0.18c0.66,0,1.14-0.35,1.48-1.07l0.05-0.12h1.79L26.01,28.44z M33.55,31.03h-1.32l-3.01-9.12h1.83l1.84,6.16l1.84-6.16h1.83L33.55,31.03z"}),(0,e.createElement)("circle",{cx:"11.18",cy:"14.24",r:"1.53"}),(0,e.createElement)("path",{d:"M45.54,15.25H15.56c-0.17,0-0.3-0.14-0.3-0.3v-1.43c0-0.17,0.14-0.3,0.3-0.3h29.98c0.17,0,0.3,0.14,0.3,0.3v1.43 C45.84,15.12,45.71,15.25,45.54,15.25z"}),(0,e.createElement)("path",{d:"M44.86,39.69v3.14H11.14v-3.14H44.86 M45.58,37.69H10.42c-0.71,0-1.28,0.57-1.28,1.28v4.57c0,0.71,0.57,1.28,1.28,1.28 h35.16c0.71,0,1.28-0.57,1.28-1.28v-4.57C46.86,38.26,46.29,37.69,45.58,37.69L45.58,37.69z"})),button:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M38.62,26.05c-0.11-0.15-0.23-0.25-0.39-0.33c-0.16-0.08-0.36-0.12-0.59-0.13c-0.23,0.01-0.42,0.05-0.57,0.13 c-0.17,0.09-0.29,0.19-0.39,0.32c-0.13,0.14-0.21,0.31-0.25,0.52c-0.05,0.25-0.08,0.74-0.08,1.45c0,0.71,0.03,1.19,0.08,1.43 c0.04,0.22,0.12,0.39,0.23,0.51c0.11,0.14,0.24,0.24,0.4,0.32c0.17,0.1,0.36,0.14,0.58,0.14c0.23,0,0.42-0.05,0.58-0.14 c0.16-0.08,0.28-0.18,0.37-0.31c0.13-0.15,0.21-0.32,0.26-0.54c0.05-0.24,0.07-0.72,0.07-1.43c0-0.71-0.02-1.2-0.07-1.44 C38.82,26.35,38.74,26.18,38.62,26.05z"}),(0,e.createElement)("path",{d:"M10.65,28.65H9.16v1.76h1.5c0.34-0.01,0.59-0.09,0.74-0.26c0.16-0.18,0.23-0.38,0.23-0.62c0-0.25-0.08-0.45-0.23-0.63 C11.25,28.74,11,28.65,10.65,28.65z"}),(0,e.createElement)("path",{d:"M11.28,26.94c0.16-0.16,0.23-0.35,0.23-0.59c0-0.24-0.08-0.43-0.23-0.6c-0.14-0.14-0.39-0.22-0.74-0.23H9.16v1.65h1.39 C10.89,27.18,11.14,27.1,11.28,26.94z"}),(0,e.createElement)("path",{d:"M51.24,17.27H4.76C3.23,17.27,2,18.5,2,20.02v15.95c0,1.52,1.23,2.76,2.76,2.76h46.49c1.52,0,2.76-1.23,2.76-2.76V20.02 C54,18.5,52.77,17.27,51.24,17.27z M12.54,31.29c-0.43,0.43-0.97,0.65-1.62,0.65H7.58v-7.87h3.1c0.79,0.01,1.39,0.21,1.8,0.62 c0.41,0.41,0.62,0.94,0.62,1.6c0.01,0.34-0.08,0.68-0.25,0.99c-0.09,0.16-0.22,0.31-0.39,0.44c-0.05,0.05-0.11,0.09-0.17,0.13 c0.24,0.13,0.44,0.32,0.6,0.56c0.22,0.37,0.33,0.77,0.33,1.2C13.2,30.3,12.98,30.87,12.54,31.29z M20.54,29.19 c-0.02,0.84-0.3,1.52-0.83,2.02c-0.53,0.51-1.22,0.77-2.03,0.78h0h0c-0.8-0.01-1.48-0.27-2.01-0.78c-0.55-0.5-0.84-1.18-0.84-2.02 v-5.13h1.58v5c0.01,0.44,0.12,0.76,0.36,0.98c0.24,0.24,0.54,0.36,0.91,0.36c0.38,0,0.68-0.12,0.92-0.35 c0.23-0.22,0.35-0.55,0.36-0.99v-5h1.59V29.19z M27.42,25.53h-2.03v6.4H23.8v-6.4h-2.03v-1.46h5.64V25.53z M33.66,25.53h-2.03v6.4 h-1.59v-6.4h-2.03v-1.46h5.64V25.53z M40.45,29.75c-0.05,0.33-0.15,0.61-0.3,0.81c-0.17,0.35-0.48,0.68-0.9,0.96 c-0.43,0.29-0.97,0.45-1.6,0.47h-0.01h-0.01c-0.63-0.01-1.16-0.17-1.58-0.47c-0.42-0.28-0.74-0.61-0.94-0.99 c-0.06-0.12-0.11-0.23-0.16-0.34c-0.05-0.13-0.09-0.28-0.12-0.45c-0.05-0.31-0.08-0.88-0.08-1.75c0-0.89,0.03-1.46,0.08-1.77 c0.06-0.32,0.15-0.58,0.28-0.79c0.19-0.36,0.5-0.7,0.93-0.98c0.42-0.3,0.96-0.45,1.58-0.46c0.64,0.01,1.18,0.16,1.61,0.46 c0.42,0.29,0.73,0.63,0.92,1c0.13,0.18,0.23,0.45,0.28,0.77c0.05,0.31,0.07,0.88,0.07,1.76C40.52,28.87,40.5,29.44,40.45,29.75z M48.42,31.93h-1.42L44,27.2v4.73h-1.59v-7.87h1.41l3.01,4.73v-4.73h1.59V31.93z"})),list:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("circle",{cx:"7.34",cy:"13.44",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,15.34H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,15.14,52.8,15.34,52.55,15.34z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"28",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,29.9H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,29.7,52.8,29.9,52.55,29.9z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"42.56",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,44.46H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,44.25,52.8,44.46,52.55,44.46z"})),compareBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.11,10.13H4.89C2.75,10.13,1,11.88,1,14.02v28.27c0,2.15,1.75,3.89,3.89,3.89h46.22c2.15,0,3.89-1.75,3.89-3.89V14.02 C55,11.88,53.25,10.13,51.11,10.13z M3,42.29V20.42h23.76v23.76H4.89C3.85,44.18,3,43.33,3,42.29z M51.11,44.18H29.24V20.42H53 v21.87C53,43.33,52.15,44.18,51.11,44.18z"}))},p=window.wp.hooks,d="useful-blocks",u=(0,p.applyFilters)("pb-hook.isPro",!1);function _(c){let{description:n,children:l}=c;return(0,e.createElement)(e.Fragment,null,u?l:(0,e.createElement)("div",{className:"pb-free-noticeBox"},(0,e.createElement)("a",{href:"https://ponhiro.com/useful-blocks/#download-link",target:"_blank",rel:"noreferrer noopener"},(0,t.__)("In the Pro version,",d)),n||"",(0,e.createElement)("div",{className:"pb-free-ctrlPreview"},l)))}function h(c){let{attributes:n,setAttributes:o}=c;const{colSet:r,iconSet:s,iconPos:i,isCenter:m,commentStyle:p,iconY:h}=n,b=[{val:"left",label:(0,t.__)("Left",d)},{val:"right",label:(0,t.__)("Right",d)},{val:"top-left",label:(0,t.__)("Top left",d)},{val:"top-right",label:(0,t.__)("Top right",d)}],v=-1!==i.indexOf("top");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.InspectorControls,null,(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Color set",d),initialOpen:!0},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -iconbox"},["y","p","g","b","1"].map((t=>{const c=r===t,n="pb-iconbox-colset-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:n,className:"__btn",onClick:()=>{o({colSet:t})}}),(0,e.createElement)("label",{htmlFor:n,className:"__label","data-selected":c||null},(0,e.createElement)("span",{className:"pb-iconbox","data-colset":t},(0,e.createElement)("span",{className:"pb-iconbox__inner"},(0,e.createElement)("span",{className:"pb-iconbox__head"}),(0,e.createElement)("span",{className:"pb-iconbox__body"})))))}))))),(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Icon set",d),initialOpen:!0},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(_,{description:(0,t.__)("you can register 4 types of icons and call them easily.",d)},(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -iconset"},["01","02","03","04"].map((t=>{const c=s===t,n="pb-iconbox-iconset-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:n,className:"__btn",onClick:()=>{u&&o({iconSet:t,mediaUrl:void 0,mediaId:void 0})}}),(0,e.createElement)("label",{htmlFor:n,className:"__label","data-selected":c||null},(0,e.createElement)("span",{className:"__num"},t),(0,e.createElement)("span",{className:"pb-iconbox__figure","data-iconset":t})))}))),(0,e.createElement)(a.Button,{isSecondary:!0,className:"pb-btn--clear",onClick:()=>{o({iconSet:""})}},(0,t.__)("Clear",d))))),(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Icon position",d),initialOpen:!0},(0,e.createElement)(_,{description:(0,t.__)("you can change the placement of the icons.",d)},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -iconbox"},b.map((t=>{const c=t.val===i;return(0,e.createElement)(a.Button,{isPrimary:c,key:`pb-iconpos-${t.val}`,onClick:()=>{u&&o({iconPos:t.val})}},t.label)})))),v?(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(a.RangeControl,{label:(0,t.__)("Move icon down",d),value:h,onChange:e=>{o({iconY:e})},min:0,max:5})):(0,e.createElement)(a.ToggleControl,{className:"pb-mt-20",label:(0,t.__)("Align to top/bottom center",d),checked:m,onChange:e=>{o({isCenter:e})}}))),(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Baloon style",d),initialOpen:!0},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(_,{description:(0,t.__)("you can change the balloon style.",d)},(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -balloon"},["normal","simple"].map((t=>{const c=p===t,n="pb-iconbox-colset-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:n,className:"__btn",onClick:()=>{o({commentStyle:t})}}),(0,e.createElement)("label",{htmlFor:n,className:"__label","data-selected":c||null},(0,e.createElement)("span",{className:"pb-iconbox__innerIcon","data-colset":t},(0,e.createElement)("span",{className:`pb-iconbox__comment -${t}`},"Text"))))}))))))))}const b=JSON.parse('{"name":"ponhiro-blocks/iconbox","title":"Icon box","category":"useful-blocks","supports":{"className":false},"keywords":["useful"],"attributes":{"mediaId":{"type":"number"},"mediaUrl":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"headTitle":{"type":"string","source":"html","selector":".pb-iconbox__head"},"comment":{"type":"string","source":"html","selector":".pb-iconbox__comment"},"commentStyle":{"type":"string","default":"normal"},"colSet":{"type":"string","default":"y"},"iconSet":{"type":"string","default":"01"},"iconPos":{"type":"string","default":"right"},"isCenter":{"type":"boolean","default":false},"iconY":{"type":"number","default":0}}}'),{name:v,category:E,keywords:y,supports:g}=b,C="pb-iconbox";(0,n.registerBlockType)(v,{title:(0,t.__)("Icon box",d),icon:{foreground:m.color,src:m.iconbox},keywords:y,category:E,supports:g,attributes:b.attributes,edit:c=>{const{className:n,attributes:o,setAttributes:s,noticeUI:m}=c,{headTitle:p,comment:u,mediaUrl:_,mediaId:b,colSet:v,iconSet:E,iconPos:y,isCenter:g,commentStyle:x,iconY:f}=o,N=i()(C,n,"-ponhiro-blocks"),w=e=>{e&&e.url?s({mediaUrl:e.url,mediaId:e.id,iconSet:""}):s({mediaUrl:void 0,mediaId:void 0})},M=-1!==y.indexOf("top"),k=(0,e.createElement)("div",{className:M?`${C}__topIcon`:`${C}__innerIcon`},(0,e.createElement)(l.RichText,{tagName:"div",className:i()(`${C}__comment -${x}`,{"pb-is-empty":0===u.length}),placeholder:(0,t.__)("…",d),value:u,onChange:e=>s({comment:e})}),_||E?(0,e.createElement)("div",{className:`${C}__figure __mediaWrap`,"data-iconset":E||null,style:M&&0!==f?{top:`${f}px`}:null},(0,e.createElement)(l.MediaUploadCheck,null,(0,e.createElement)(l.MediaUpload,{onSelect:w,allowedTypes:"image",value:b,render:t=>{let{open:c}=t;return(0,e.createElement)(a.Button,{onClick:c,className:"__changeImage"},"画像���変更")}})),_&&(0,e.createElement)("img",{className:`${C}__img`,src:_,alt:""})):(0,e.createElement)(l.MediaPlaceholder,{icon:(0,e.createElement)(l.BlockIcon,{icon:r}),onSelect:w,notices:m,accept:"image/*",allowedTypes:["image"]}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{attributes:o,setAttributes:s}),(0,e.createElement)("div",{className:N,"data-colset":v,"data-icon":y},M&&k,(0,e.createElement)("div",{className:`${C}__inner`},(0,e.createElement)(l.RichText,{tagName:"div",className:i()(`${C}__head`,{"pb-is-empty":0===p.length}),placeholder:(0,t.__)("…",d),value:p,onChange:e=>s({headTitle:e})}),(0,e.createElement)("div",{className:`${C}__body`,"data-align":g?"center":null},(0,e.createElement)(l.InnerBlocks,{className:`${C}__content`,allowedBlocks:["core/paragraph","ponhiro-blocks/list"],templateLock:!1,template:[["core/paragraph",{}]],renderAppender:l.InnerBlocks.ButtonBlockAppender}),!M&&k))))},save:t=>{let{attributes:c}=t;const{headTitle:n,comment:a,colSet:o,iconSet:r,mediaUrl:s,iconPos:m,isCenter:p,commentStyle:d,iconY:u}=c,_=i()(C),h=-1!==m.indexOf("top"),b=(0,e.createElement)("div",{className:h?`${C}__topIcon`:`${C}__innerIcon`},a.length>0&&(0,e.createElement)("div",{className:`${C}__comment -${d}`},a),(0,e.createElement)("figure",{className:`${C}__figure`,"data-iconset":r||null,style:h&&0!==u?{top:`${u}px`}:null},!!s&&(0,e.createElement)("img",{className:`${C}__icon -no-lb`,src:s,alt:""})));return(0,e.createElement)("div",{className:_,"data-colset":o,"data-icon":m},h&&b,(0,e.createElement)("div",{className:`${C}__inner`},n.length>0&&(0,e.createElement)("div",{className:`${C}__head`},n),(0,e.createElement)("div",{className:`${C}__body`,"data-align":p?"center":null},(0,e.createElement)("div",{className:`${C}__content`},(0,e.createElement)(l.InnerBlocks.Content,null)),!h&&b)))}})})()})();
     1(()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var n={}.hasOwnProperty;function .InnerBlocks.Content,null)),!h&&b)))}})})()})();
  • useful-blocks/tags/1.7.2/readme.txt

    r2888430 r2888955  
    55Requires at least: 5.9
    66Tested up to: 6.2
    7 Stable tag: 1.7.1
     7Stable tag: 1.7.
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    3434
    3535== Changelog ==
     36
     37
     38
    3639
    3740= 1.7.1 =
  • useful-blocks/tags/1.7.2/src/blocks/cv-box-note/index.js

    r2457546 r2888955  
    4646        let blockClass = classnames(blockName, className);
    4747
    48         if (content.length === 0) {
     48        if () {
    4949            blockClass = classnames(blockClass, 'has-no-content');
    5050        }
  • useful-blocks/tags/1.7.2/src/blocks/iconbox/index.js

    r2668798 r2888955  
    110110                    tagName='div'
    111111                    className={classnames(`${blockName}__comment -${commentStyle}`, {
    112                         'pb-is-empty': comment.length === 0,
     112                        'pb-is-empty': ,
    113113                    })}
    114114                    placeholder={__('…', textDomain)}
     
    174174                            tagName='div'
    175175                            className={classnames(`${blockName}__head`, {
    176                                 'pb-is-empty': headTitle.length === 0,
     176                                'pb-is-empty': ,
    177177                            })}
    178178                            placeholder={__('…', textDomain)}
  • useful-blocks/tags/1.7.2/useful-blocks.php

    r2888430 r2888955  
    44 * Plugin URI: https://ponhiro.com/useful-blocks/
    55 * Description: It is a plugin that collects very convenient blocks.
    6  * Version: 1.7.1
     6 * Version: 1.7.
    77 * Requires at least: 5.9
    88 * Author: Ponhiro, Ryo
     
    2626define( 'USFL_BLKS_PATH', plugin_dir_path( __FILE__ ) );
    2727define( 'USFL_BLKS_BASENAME', plugin_basename( __FILE__ ) );
    28 define( 'USFL_BLKS_VER', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date('mdGis') : '1.7.1');
     28define( 'USFL_BLKS_VER', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date('mdGis') : '1.7.');
    2929
    3030
  • useful-blocks/trunk/.nvmrc

    r2888410 r2888955  
    1 v16.19.1
     116
  • useful-blocks/trunk/dist/blocks/cv-box-note/index.asset.php

    r2888410 r2888955  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'd92c16fedbde405b25ac');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'c');
  • useful-blocks/trunk/dist/blocks/cv-box-note/index.js

    r2888410 r2888955  
    1 (()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var r=typeof c;if("string"===r||"number"===r)e.push(c);else if(Array.isArray(c)){if(c.length){var l=n.apply(null,c);l&&e.push(l)}}else if("object"===r){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){e.push(c.toString());continue}for(var o in c)a.call(c,o)&&c[o]&&e.push(o)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(c=function(){return n}.apply(t,[]))||(e.exports=c)}()}},t={};function c(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var a in t)c.o(t,a)&&!c.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,a=window.wp.blocks,n=window.wp.blockEditor,r={color:"#f6a068",iconbox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M50.2,7.4H5.8C3.1,7.4,1,9.6,1,12.2v31.6c0,2.6,2.1,4.8,4.8,4.8h44.4c2.6,0,4.8-2.1,4.8-4.8V12.2C55,9.6,52.9,7.4,50.2,7.4z M50.2,46.1H5.8c-1.3,0-2.3-1-2.3-2.3V17.9h49.1v25.9C52.5,45.1,51.5,46.1,50.2,46.1z"}),(0,e.createElement)("path",{d:"M37.5,33.7c-1.7,0-2.5-0.5-2.5-1.5c0-1,1.1-2.5,2.5-2.5c1.4,0,2.5,1.5,2.5,2.5C40,33.2,39.2,33.7,37.5,33.7z M36.4,32.2 c0.1,0,0.3,0.1,1.1,0.1c0.7,0,1-0.1,1.1-0.1c-0.1-0.3-0.6-1.1-1.1-1.1C37,31.1,36.5,31.9,36.4,32.2C36.4,32.2,36.4,32.2,36.4,32.2 z"}),(0,e.createElement)("path",{d:"M42.7,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C42.3,29.4,42.7,29.9,42.7,30.5z"}),(0,e.createElement)("path",{d:"M34.2,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C33.8,29.4,34.2,29.9,34.2,30.5z"}),(0,e.createElement)("path",{d:"M50.6,35.5c0-3.1-2.2-7-4.7-7.2c-1.8-3.6-4.9-6.4-8.3-6.4c-3,0-6.4,2.6-8.4,6.5c-2.5,0.3-4.6,4.1-4.6,7.1 c0,2.8,1.5,4.2,4.4,4.2c1.4,1.8,4,3.1,8.5,3.1c4.6,0,7.1-1.3,8.5-3.1C49.1,39.7,50.6,38.3,50.6,35.5z M26.2,35.5 c0-1.7,0.9-3.8,2-4.9c-0.4,1.4-0.7,2.8-0.7,4.3c0,1,0.1,2,0.5,3C26.7,37.7,26.2,37,26.2,35.5z M30.9,39.3c-0.2-0.2-0.4-0.4-0.6-0.6 c0,0,0,0-0.1-0.1c-0.2-0.2-0.3-0.5-0.5-0.7c-0.4-0.8-0.6-1.8-0.6-3c0-1.5,0.4-3.2,1-4.8l0,0c0.2-0.5,0.4-1,0.7-1.5 c1.5-2.9,3.9-5.1,6.6-5.1c2.7,0,5.1,2.3,6.6,5.2h0c0.3,0.5,0.5,1,0.7,1.5c0.6,1.6,1,3.3,1,4.8c0,1.2-0.2,2.2-0.6,3 c-0.1,0.3-0.3,0.5-0.5,0.7c0,0,0,0,0,0c-0.2,0.2-0.4,0.4-0.6,0.6c-1.5,1.3-3.9,1.8-6.6,1.8C34.8,41.1,32.5,40.7,30.9,39.3z M47,38 c0.4-1,0.5-2,0.5-3c0-1.5-0.3-3-0.8-4.5c1.1,1,2.1,3.2,2.1,5C48.9,37,48.4,37.7,47,38z"})),cvBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.97,8.08L52,8.11l-0.03,39.81L4,47.89L4.03,8.08H51.97 M51.97,6.08H4.03C2.91,6.08,2,6.99,2,8.11v39.78 c0,1.12,0.91,2.03,2.03,2.03h47.94c1.12,0,2.03-0.91,2.03-2.03V8.11C54,6.99,53.09,6.08,51.97,6.08L51.97,6.08z"}),(0,e.createElement)("path",{d:"M44.31,18.15H11.69c-1.13,0-2.04,0.91-2.04,2.04v12.55c0,1.13,0.91,2.04,2.04,2.04h32.63c1.13,0,2.04-0.91,2.04-2.04 V20.19C46.35,19.07,45.44,18.15,44.31,18.15z M26.01,28.44c-0.2,0.85-0.59,1.51-1.16,1.98c-0.59,0.46-1.29,0.69-2.09,0.69h0 c-0.72-0.02-1.34-0.2-1.83-0.54c-0.49-0.32-0.85-0.7-1.08-1.14c-0.07-0.14-0.13-0.27-0.18-0.39c-0.05-0.14-0.1-0.31-0.13-0.51 c-0.06-0.36-0.09-1.04-0.09-2.05c0-1.03,0.03-1.71,0.09-2.07c0.07-0.37,0.18-0.67,0.32-0.9c0.22-0.42,0.58-0.8,1.07-1.14 c0.49-0.34,1.1-0.52,1.83-0.53c0.89,0.01,1.63,0.28,2.2,0.8c0.56,0.52,0.92,1.18,1.07,1.95l0.05,0.24h-1.8l-0.04-0.14 c-0.1-0.31-0.27-0.58-0.52-0.8c-0.25-0.2-0.57-0.31-0.94-0.31c-0.27,0.01-0.51,0.06-0.7,0.16c-0.2,0.1-0.36,0.24-0.48,0.39 c-0.16,0.17-0.25,0.38-0.3,0.64c-0.06,0.3-0.09,0.87-0.09,1.71s0.03,1.41,0.09,1.7c0.05,0.27,0.15,0.48,0.29,0.64 c0.13,0.17,0.29,0.29,0.49,0.39c0.2,0.12,0.44,0.18,0.71,0.18c0.66,0,1.14-0.35,1.48-1.07l0.05-0.12h1.79L26.01,28.44z M33.55,31.03h-1.32l-3.01-9.12h1.83l1.84,6.16l1.84-6.16h1.83L33.55,31.03z"}),(0,e.createElement)("circle",{cx:"11.18",cy:"14.24",r:"1.53"}),(0,e.createElement)("path",{d:"M45.54,15.25H15.56c-0.17,0-0.3-0.14-0.3-0.3v-1.43c0-0.17,0.14-0.3,0.3-0.3h29.98c0.17,0,0.3,0.14,0.3,0.3v1.43 C45.84,15.12,45.71,15.25,45.54,15.25z"}),(0,e.createElement)("path",{d:"M44.86,39.69v3.14H11.14v-3.14H44.86 M45.58,37.69H10.42c-0.71,0-1.28,0.57-1.28,1.28v4.57c0,0.71,0.57,1.28,1.28,1.28 h35.16c0.71,0,1.28-0.57,1.28-1.28v-4.57C46.86,38.26,46.29,37.69,45.58,37.69L45.58,37.69z"})),button:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M38.62,26.05c-0.11-0.15-0.23-0.25-0.39-0.33c-0.16-0.08-0.36-0.12-0.59-0.13c-0.23,0.01-0.42,0.05-0.57,0.13 c-0.17,0.09-0.29,0.19-0.39,0.32c-0.13,0.14-0.21,0.31-0.25,0.52c-0.05,0.25-0.08,0.74-0.08,1.45c0,0.71,0.03,1.19,0.08,1.43 c0.04,0.22,0.12,0.39,0.23,0.51c0.11,0.14,0.24,0.24,0.4,0.32c0.17,0.1,0.36,0.14,0.58,0.14c0.23,0,0.42-0.05,0.58-0.14 c0.16-0.08,0.28-0.18,0.37-0.31c0.13-0.15,0.21-0.32,0.26-0.54c0.05-0.24,0.07-0.72,0.07-1.43c0-0.71-0.02-1.2-0.07-1.44 C38.82,26.35,38.74,26.18,38.62,26.05z"}),(0,e.createElement)("path",{d:"M10.65,28.65H9.16v1.76h1.5c0.34-0.01,0.59-0.09,0.74-0.26c0.16-0.18,0.23-0.38,0.23-0.62c0-0.25-0.08-0.45-0.23-0.63 C11.25,28.74,11,28.65,10.65,28.65z"}),(0,e.createElement)("path",{d:"M11.28,26.94c0.16-0.16,0.23-0.35,0.23-0.59c0-0.24-0.08-0.43-0.23-0.6c-0.14-0.14-0.39-0.22-0.74-0.23H9.16v1.65h1.39 C10.89,27.18,11.14,27.1,11.28,26.94z"}),(0,e.createElement)("path",{d:"M51.24,17.27H4.76C3.23,17.27,2,18.5,2,20.02v15.95c0,1.52,1.23,2.76,2.76,2.76h46.49c1.52,0,2.76-1.23,2.76-2.76V20.02 C54,18.5,52.77,17.27,51.24,17.27z M12.54,31.29c-0.43,0.43-0.97,0.65-1.62,0.65H7.58v-7.87h3.1c0.79,0.01,1.39,0.21,1.8,0.62 c0.41,0.41,0.62,0.94,0.62,1.6c0.01,0.34-0.08,0.68-0.25,0.99c-0.09,0.16-0.22,0.31-0.39,0.44c-0.05,0.05-0.11,0.09-0.17,0.13 c0.24,0.13,0.44,0.32,0.6,0.56c0.22,0.37,0.33,0.77,0.33,1.2C13.2,30.3,12.98,30.87,12.54,31.29z M20.54,29.19 c-0.02,0.84-0.3,1.52-0.83,2.02c-0.53,0.51-1.22,0.77-2.03,0.78h0h0c-0.8-0.01-1.48-0.27-2.01-0.78c-0.55-0.5-0.84-1.18-0.84-2.02 v-5.13h1.58v5c0.01,0.44,0.12,0.76,0.36,0.98c0.24,0.24,0.54,0.36,0.91,0.36c0.38,0,0.68-0.12,0.92-0.35 c0.23-0.22,0.35-0.55,0.36-0.99v-5h1.59V29.19z M27.42,25.53h-2.03v6.4H23.8v-6.4h-2.03v-1.46h5.64V25.53z M33.66,25.53h-2.03v6.4 h-1.59v-6.4h-2.03v-1.46h5.64V25.53z M40.45,29.75c-0.05,0.33-0.15,0.61-0.3,0.81c-0.17,0.35-0.48,0.68-0.9,0.96 c-0.43,0.29-0.97,0.45-1.6,0.47h-0.01h-0.01c-0.63-0.01-1.16-0.17-1.58-0.47c-0.42-0.28-0.74-0.61-0.94-0.99 c-0.06-0.12-0.11-0.23-0.16-0.34c-0.05-0.13-0.09-0.28-0.12-0.45c-0.05-0.31-0.08-0.88-0.08-1.75c0-0.89,0.03-1.46,0.08-1.77 c0.06-0.32,0.15-0.58,0.28-0.79c0.19-0.36,0.5-0.7,0.93-0.98c0.42-0.3,0.96-0.45,1.58-0.46c0.64,0.01,1.18,0.16,1.61,0.46 c0.42,0.29,0.73,0.63,0.92,1c0.13,0.18,0.23,0.45,0.28,0.77c0.05,0.31,0.07,0.88,0.07,1.76C40.52,28.87,40.5,29.44,40.45,29.75z M48.42,31.93h-1.42L44,27.2v4.73h-1.59v-7.87h1.41l3.01,4.73v-4.73h1.59V31.93z"})),list:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("circle",{cx:"7.34",cy:"13.44",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,15.34H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,15.14,52.8,15.34,52.55,15.34z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"28",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,29.9H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,29.7,52.8,29.9,52.55,29.9z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"42.56",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,44.46H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,44.25,52.8,44.46,52.55,44.46z"})),compareBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.11,10.13H4.89C2.75,10.13,1,11.88,1,14.02v28.27c0,2.15,1.75,3.89,3.89,3.89h46.22c2.15,0,3.89-1.75,3.89-3.89V14.02 C55,11.88,53.25,10.13,51.11,10.13z M3,42.29V20.42h23.76v23.76H4.89C3.85,44.18,3,43.33,3,42.29z M51.11,44.18H29.24V20.42H53 v21.87C53,43.33,52.15,44.18,51.11,44.18z"}))},l=window.wp.components,o=window.wp.hooks,s="useful-blocks",i=(0,o.applyFilters)("pb-hook.isPro",!1);function p(c){let{description:a,children:n}=c;return(0,e.createElement)(e.Fragment,null,i?n:(0,e.createElement)("div",{className:"pb-free-noticeBox"},(0,e.createElement)("a",{href:"https://ponhiro.com/useful-blocks/#download-link",target:"_blank",rel:"noreferrer noopener"},(0,t.__)("In the Pro version,",s)),a||"",(0,e.createElement)("div",{className:"pb-free-ctrlPreview"},n)))}const m=["border","bg"],v=[{val:""},{val:"pb-icon-lightbulb"},{val:"pb-icon-mail"},{val:"pb-icon-cart"},{val:"pb-icon-exclamation"}],h=c=>{let{attributes:a,setAttributes:n}=c;const{icon:r,dataStyle:o}=a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Style settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(l.ButtonGroup,{className:"pb-panel--colorSet"},m.map((t=>{let c=!1;-1!==o.indexOf(t)&&(c=!0);const a="pb-cvnote-style-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:a,className:"__btn",onClick:()=>{n({dataStyle:t})}}),(0,e.createElement)("label",{htmlFor:a,className:"__label","data-selected":c||null},(0,e.createElement)("div",{className:"pb-cv-box__notewrap"},(0,e.createElement)("span",{className:"pb-cv-box__note -preview","data-style":t},"border"===t?"Border":"White"))))}))))),(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Icon settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(p,{description:(0,t.__)("you can choose from several types of icons.",s)},(0,e.createElement)(l.ButtonGroup,{className:"pb-btn-group"},v.map((c=>{const a=c.val,o=a===r;return(0,e.createElement)(l.Button,{variant:o?"primary":"secondary",key:`pb-cv-note-icon-${a}`,onClick:()=>{i&&n({icon:a})}},a?(0,e.createElement)("i",{className:a}):(0,e.createElement)("span",null,(0,t.__)("None",s)))})))))))};var u=c(184),d=c.n(u);const b=JSON.parse('{"name":"ponhiro-blocks/cv-box-note","title":"CV Text","category":"useful-blocks","supports":{"reusable":false,"className":false},"parent":["ponhiro-blocks/cv-box"],"attributes":{"icon":{"type":"string","default":""},"dataStyle":{"type":"string","source":"attribute","attribute":"data-style","selector":".pb-cv-box__note","default":"border"},"content":{"type":"string","source":"html","selector":".__text"}}}'),{name:E,category:y,parent:_,supports:C}=b,x="pb-cv-box__note";(0,a.registerBlockType)(E,{title:(0,t.__)("CV Text",s),icon:{foreground:r.color,src:r.cvBox},category:y,supports:C,parent:_,attributes:b.attributes,edit:c=>{const{className:a,attributes:r,setAttributes:l}=c,{content:o,icon:i,dataStyle:p}=r;let m=d()(x,a);return 0===o.length&&(m=d()(m,"has-no-content")),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(h,{attributes:r,setAttributes:l})),(0,e.createElement)("div",{className:m,"data-style":p},i&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:i})),(0,e.createElement)(n.RichText,{tagName:"div",className:"__text",placeholder:(0,t.__)("Text…",s),value:o,onChange:e=>l({content:e})})))},save:t=>{let{attributes:c}=t;const{content:a,icon:r,dataStyle:l}=c;return 0===a.length?null:(0,e.createElement)("div",{className:x,"data-style":l},r&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:r})),(0,e.createElement)(n.RichText.Content,{tagName:"div",className:"__text",value:a}))}})})()})();
     1(()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var r=typeof c;if("string"===r||"number"===r)e.push(c);else if(Array.isArray(c)){if(c.length){var l=n.apply(null,c);l&&e.push(l)}}else if("object"===r){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){e.push(c.toString());continue}for(var o in c)a.call(c,o)&&c[o]&&e.push(o)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(c=function(){return n}.apply(t,[]))||(e.exports=c)}()}},t={};function c(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var a in t)c.o(t,a)&&!c.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,a=window.wp.blocks,n=window.wp.blockEditor,r={color:"#f6a068",iconbox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M50.2,7.4H5.8C3.1,7.4,1,9.6,1,12.2v31.6c0,2.6,2.1,4.8,4.8,4.8h44.4c2.6,0,4.8-2.1,4.8-4.8V12.2C55,9.6,52.9,7.4,50.2,7.4z M50.2,46.1H5.8c-1.3,0-2.3-1-2.3-2.3V17.9h49.1v25.9C52.5,45.1,51.5,46.1,50.2,46.1z"}),(0,e.createElement)("path",{d:"M37.5,33.7c-1.7,0-2.5-0.5-2.5-1.5c0-1,1.1-2.5,2.5-2.5c1.4,0,2.5,1.5,2.5,2.5C40,33.2,39.2,33.7,37.5,33.7z M36.4,32.2 c0.1,0,0.3,0.1,1.1,0.1c0.7,0,1-0.1,1.1-0.1c-0.1-0.3-0.6-1.1-1.1-1.1C37,31.1,36.5,31.9,36.4,32.2C36.4,32.2,36.4,32.2,36.4,32.2 z"}),(0,e.createElement)("path",{d:"M42.7,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C42.3,29.4,42.7,29.9,42.7,30.5z"}),(0,e.createElement)("path",{d:"M34.2,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C33.8,29.4,34.2,29.9,34.2,30.5z"}),(0,e.createElement)("path",{d:"M50.6,35.5c0-3.1-2.2-7-4.7-7.2c-1.8-3.6-4.9-6.4-8.3-6.4c-3,0-6.4,2.6-8.4,6.5c-2.5,0.3-4.6,4.1-4.6,7.1 c0,2.8,1.5,4.2,4.4,4.2c1.4,1.8,4,3.1,8.5,3.1c4.6,0,7.1-1.3,8.5-3.1C49.1,39.7,50.6,38.3,50.6,35.5z M26.2,35.5 c0-1.7,0.9-3.8,2-4.9c-0.4,1.4-0.7,2.8-0.7,4.3c0,1,0.1,2,0.5,3C26.7,37.7,26.2,37,26.2,35.5z M30.9,39.3c-0.2-0.2-0.4-0.4-0.6-0.6 c0,0,0,0-0.1-0.1c-0.2-0.2-0.3-0.5-0.5-0.7c-0.4-0.8-0.6-1.8-0.6-3c0-1.5,0.4-3.2,1-4.8l0,0c0.2-0.5,0.4-1,0.7-1.5 c1.5-2.9,3.9-5.1,6.6-5.1c2.7,0,5.1,2.3,6.6,5.2h0c0.3,0.5,0.5,1,0.7,1.5c0.6,1.6,1,3.3,1,4.8c0,1.2-0.2,2.2-0.6,3 c-0.1,0.3-0.3,0.5-0.5,0.7c0,0,0,0,0,0c-0.2,0.2-0.4,0.4-0.6,0.6c-1.5,1.3-3.9,1.8-6.6,1.8C34.8,41.1,32.5,40.7,30.9,39.3z M47,38 c0.4-1,0.5-2,0.5-3c0-1.5-0.3-3-0.8-4.5c1.1,1,2.1,3.2,2.1,5C48.9,37,48.4,37.7,47,38z"})),cvBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.97,8.08L52,8.11l-0.03,39.81L4,47.89L4.03,8.08H51.97 M51.97,6.08H4.03C2.91,6.08,2,6.99,2,8.11v39.78 c0,1.12,0.91,2.03,2.03,2.03h47.94c1.12,0,2.03-0.91,2.03-2.03V8.11C54,6.99,53.09,6.08,51.97,6.08L51.97,6.08z"}),(0,e.createElement)("path",{d:"M44.31,18.15H11.69c-1.13,0-2.04,0.91-2.04,2.04v12.55c0,1.13,0.91,2.04,2.04,2.04h32.63c1.13,0,2.04-0.91,2.04-2.04 V20.19C46.35,19.07,45.44,18.15,44.31,18.15z M26.01,28.44c-0.2,0.85-0.59,1.51-1.16,1.98c-0.59,0.46-1.29,0.69-2.09,0.69h0 c-0.72-0.02-1.34-0.2-1.83-0.54c-0.49-0.32-0.85-0.7-1.08-1.14c-0.07-0.14-0.13-0.27-0.18-0.39c-0.05-0.14-0.1-0.31-0.13-0.51 c-0.06-0.36-0.09-1.04-0.09-2.05c0-1.03,0.03-1.71,0.09-2.07c0.07-0.37,0.18-0.67,0.32-0.9c0.22-0.42,0.58-0.8,1.07-1.14 c0.49-0.34,1.1-0.52,1.83-0.53c0.89,0.01,1.63,0.28,2.2,0.8c0.56,0.52,0.92,1.18,1.07,1.95l0.05,0.24h-1.8l-0.04-0.14 c-0.1-0.31-0.27-0.58-0.52-0.8c-0.25-0.2-0.57-0.31-0.94-0.31c-0.27,0.01-0.51,0.06-0.7,0.16c-0.2,0.1-0.36,0.24-0.48,0.39 c-0.16,0.17-0.25,0.38-0.3,0.64c-0.06,0.3-0.09,0.87-0.09,1.71s0.03,1.41,0.09,1.7c0.05,0.27,0.15,0.48,0.29,0.64 c0.13,0.17,0.29,0.29,0.49,0.39c0.2,0.12,0.44,0.18,0.71,0.18c0.66,0,1.14-0.35,1.48-1.07l0.05-0.12h1.79L26.01,28.44z M33.55,31.03h-1.32l-3.01-9.12h1.83l1.84,6.16l1.84-6.16h1.83L33.55,31.03z"}),(0,e.createElement)("circle",{cx:"11.18",cy:"14.24",r:"1.53"}),(0,e.createElement)("path",{d:"M45.54,15.25H15.56c-0.17,0-0.3-0.14-0.3-0.3v-1.43c0-0.17,0.14-0.3,0.3-0.3h29.98c0.17,0,0.3,0.14,0.3,0.3v1.43 C45.84,15.12,45.71,15.25,45.54,15.25z"}),(0,e.createElement)("path",{d:"M44.86,39.69v3.14H11.14v-3.14H44.86 M45.58,37.69H10.42c-0.71,0-1.28,0.57-1.28,1.28v4.57c0,0.71,0.57,1.28,1.28,1.28 h35.16c0.71,0,1.28-0.57,1.28-1.28v-4.57C46.86,38.26,46.29,37.69,45.58,37.69L45.58,37.69z"})),button:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M38.62,26.05c-0.11-0.15-0.23-0.25-0.39-0.33c-0.16-0.08-0.36-0.12-0.59-0.13c-0.23,0.01-0.42,0.05-0.57,0.13 c-0.17,0.09-0.29,0.19-0.39,0.32c-0.13,0.14-0.21,0.31-0.25,0.52c-0.05,0.25-0.08,0.74-0.08,1.45c0,0.71,0.03,1.19,0.08,1.43 c0.04,0.22,0.12,0.39,0.23,0.51c0.11,0.14,0.24,0.24,0.4,0.32c0.17,0.1,0.36,0.14,0.58,0.14c0.23,0,0.42-0.05,0.58-0.14 c0.16-0.08,0.28-0.18,0.37-0.31c0.13-0.15,0.21-0.32,0.26-0.54c0.05-0.24,0.07-0.72,0.07-1.43c0-0.71-0.02-1.2-0.07-1.44 C38.82,26.35,38.74,26.18,38.62,26.05z"}),(0,e.createElement)("path",{d:"M10.65,28.65H9.16v1.76h1.5c0.34-0.01,0.59-0.09,0.74-0.26c0.16-0.18,0.23-0.38,0.23-0.62c0-0.25-0.08-0.45-0.23-0.63 C11.25,28.74,11,28.65,10.65,28.65z"}),(0,e.createElement)("path",{d:"M11.28,26.94c0.16-0.16,0.23-0.35,0.23-0.59c0-0.24-0.08-0.43-0.23-0.6c-0.14-0.14-0.39-0.22-0.74-0.23H9.16v1.65h1.39 C10.89,27.18,11.14,27.1,11.28,26.94z"}),(0,e.createElement)("path",{d:"M51.24,17.27H4.76C3.23,17.27,2,18.5,2,20.02v15.95c0,1.52,1.23,2.76,2.76,2.76h46.49c1.52,0,2.76-1.23,2.76-2.76V20.02 C54,18.5,52.77,17.27,51.24,17.27z M12.54,31.29c-0.43,0.43-0.97,0.65-1.62,0.65H7.58v-7.87h3.1c0.79,0.01,1.39,0.21,1.8,0.62 c0.41,0.41,0.62,0.94,0.62,1.6c0.01,0.34-0.08,0.68-0.25,0.99c-0.09,0.16-0.22,0.31-0.39,0.44c-0.05,0.05-0.11,0.09-0.17,0.13 c0.24,0.13,0.44,0.32,0.6,0.56c0.22,0.37,0.33,0.77,0.33,1.2C13.2,30.3,12.98,30.87,12.54,31.29z M20.54,29.19 c-0.02,0.84-0.3,1.52-0.83,2.02c-0.53,0.51-1.22,0.77-2.03,0.78h0h0c-0.8-0.01-1.48-0.27-2.01-0.78c-0.55-0.5-0.84-1.18-0.84-2.02 v-5.13h1.58v5c0.01,0.44,0.12,0.76,0.36,0.98c0.24,0.24,0.54,0.36,0.91,0.36c0.38,0,0.68-0.12,0.92-0.35 c0.23-0.22,0.35-0.55,0.36-0.99v-5h1.59V29.19z M27.42,25.53h-2.03v6.4H23.8v-6.4h-2.03v-1.46h5.64V25.53z M33.66,25.53h-2.03v6.4 h-1.59v-6.4h-2.03v-1.46h5.64V25.53z M40.45,29.75c-0.05,0.33-0.15,0.61-0.3,0.81c-0.17,0.35-0.48,0.68-0.9,0.96 c-0.43,0.29-0.97,0.45-1.6,0.47h-0.01h-0.01c-0.63-0.01-1.16-0.17-1.58-0.47c-0.42-0.28-0.74-0.61-0.94-0.99 c-0.06-0.12-0.11-0.23-0.16-0.34c-0.05-0.13-0.09-0.28-0.12-0.45c-0.05-0.31-0.08-0.88-0.08-1.75c0-0.89,0.03-1.46,0.08-1.77 c0.06-0.32,0.15-0.58,0.28-0.79c0.19-0.36,0.5-0.7,0.93-0.98c0.42-0.3,0.96-0.45,1.58-0.46c0.64,0.01,1.18,0.16,1.61,0.46 c0.42,0.29,0.73,0.63,0.92,1c0.13,0.18,0.23,0.45,0.28,0.77c0.05,0.31,0.07,0.88,0.07,1.76C40.52,28.87,40.5,29.44,40.45,29.75z M48.42,31.93h-1.42L44,27.2v4.73h-1.59v-7.87h1.41l3.01,4.73v-4.73h1.59V31.93z"})),list:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("circle",{cx:"7.34",cy:"13.44",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,15.34H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,15.14,52.8,15.34,52.55,15.34z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"28",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,29.9H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,29.7,52.8,29.9,52.55,29.9z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"42.56",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,44.46H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,44.25,52.8,44.46,52.55,44.46z"})),compareBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.11,10.13H4.89C2.75,10.13,1,11.88,1,14.02v28.27c0,2.15,1.75,3.89,3.89,3.89h46.22c2.15,0,3.89-1.75,3.89-3.89V14.02 C55,11.88,53.25,10.13,51.11,10.13z M3,42.29V20.42h23.76v23.76H4.89C3.85,44.18,3,43.33,3,42.29z M51.11,44.18H29.24V20.42H53 v21.87C53,43.33,52.15,44.18,51.11,44.18z"}))},l=window.wp.components,o=window.wp.hooks,s="useful-blocks",i=(0,o.applyFilters)("pb-hook.isPro",!1);function p(c){let{description:a,children:n}=c;return(0,e.createElement)(e.Fragment,null,i?n:(0,e.createElement)("div",{className:"pb-free-noticeBox"},(0,e.createElement)("a",{href:"https://ponhiro.com/useful-blocks/#download-link",target:"_blank",rel:"noreferrer noopener"},(0,t.__)("In the Pro version,",s)),a||"",(0,e.createElement)("div",{className:"pb-free-ctrlPreview"},n)))}const m=["border","bg"],v=[{val:""},{val:"pb-icon-lightbulb"},{val:"pb-icon-mail"},{val:"pb-icon-cart"},{val:"pb-icon-exclamation"}],h=c=>{let{attributes:a,setAttributes:n}=c;const{icon:r,dataStyle:o}=a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Style settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(l.ButtonGroup,{className:"pb-panel--colorSet"},m.map((t=>{let c=!1;-1!==o.indexOf(t)&&(c=!0);const a="pb-cvnote-style-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:a,className:"__btn",onClick:()=>{n({dataStyle:t})}}),(0,e.createElement)("label",{htmlFor:a,className:"__label","data-selected":c||null},(0,e.createElement)("div",{className:"pb-cv-box__notewrap"},(0,e.createElement)("span",{className:"pb-cv-box__note -preview","data-style":t},"border"===t?"Border":"White"))))}))))),(0,e.createElement)(l.PanelBody,{title:(0,t.__)("Icon settings",s),initialOpen:!0},(0,e.createElement)(l.BaseControl,null,(0,e.createElement)(p,{description:(0,t.__)("you can choose from several types of icons.",s)},(0,e.createElement)(l.ButtonGroup,{className:"pb-btn-group"},v.map((c=>{const a=c.val,o=a===r;return(0,e.createElement)(l.Button,{variant:o?"primary":"secondary",key:`pb-cv-note-icon-${a}`,onClick:()=>{i&&n({icon:a})}},a?(0,e.createElement)("i",{className:a}):(0,e.createElement)("span",null,(0,t.__)("None",s)))})))))))};var u=c(184),d=c.n(u);const b=JSON.parse('{"name":"ponhiro-blocks/cv-box-note","title":"CV Text","category":"useful-blocks","supports":{"reusable":false,"className":false},"parent":["ponhiro-blocks/cv-box"],"attributes":{"icon":{"type":"string","default":""},"dataStyle":{"type":"string","source":"attribute","attribute":"data-style","selector":".pb-cv-box__note","default":"border"},"content":{"type":"string","source":"html","selector":".__text"}}}'),{name:E,category:y,parent:_,supports:C}=b,x="pb-cv-box__note";(0,a.registerBlockType)(E,{title:(0,t.__)("CV Text",s),icon:{foreground:r.color,src:r.cvBox},category:y,supports:C,parent:_,attributes:b.attributes,edit:c=>{const{className:a,attributes:r,setAttributes:l}=c,{content:o,icon:i,dataStyle:p}=r;let m=d()(x,a);return (m=d()(m,"has-no-content")),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(h,{attributes:r,setAttributes:l})),(0,e.createElement)("div",{className:m,"data-style":p},i&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:i})),(0,e.createElement)(n.RichText,{tagName:"div",className:"__text",placeholder:(0,t.__)("Text…",s),value:o,onChange:e=>l({content:e})})))},save:t=>{let{attributes:c}=t;const{content:a,icon:r,dataStyle:l}=c;return 0===a.length?null:(0,e.createElement)("div",{className:x,"data-style":l},r&&(0,e.createElement)("div",{className:"__icon"},(0,e.createElement)("i",{className:r})),(0,e.createElement)(n.RichText.Content,{tagName:"div",className:"__text",value:a}))}})})()})();
  • useful-blocks/trunk/dist/blocks/iconbox/index.asset.php

    r2888410 r2888955  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '78c4fd55a252ad65f25d');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '');
  • useful-blocks/trunk/dist/blocks/iconbox/index.js

    r2888410 r2888955  
    1 (()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var a=typeof c;if("string"===a||"number"===a)e.push(c);else if(Array.isArray(c)){if(c.length){var o=l.apply(null,c);o&&e.push(o)}}else if("object"===a){if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]")){e.push(c.toString());continue}for(var r in c)n.call(c,r)&&c[r]&&e.push(r)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(c=function(){return l}.apply(t,[]))||(e.exports=c)}()}},t={};function c(n){var l=t[n];if(void 0!==l)return l.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,c),a.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,n=window.wp.blocks,l=window.wp.blockEditor,a=window.wp.components,o=window.wp.primitives,r=(0,e.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(o.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));var s=c(184),i=c.n(s);const m={color:"#f6a068",iconbox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M50.2,7.4H5.8C3.1,7.4,1,9.6,1,12.2v31.6c0,2.6,2.1,4.8,4.8,4.8h44.4c2.6,0,4.8-2.1,4.8-4.8V12.2C55,9.6,52.9,7.4,50.2,7.4z M50.2,46.1H5.8c-1.3,0-2.3-1-2.3-2.3V17.9h49.1v25.9C52.5,45.1,51.5,46.1,50.2,46.1z"}),(0,e.createElement)("path",{d:"M37.5,33.7c-1.7,0-2.5-0.5-2.5-1.5c0-1,1.1-2.5,2.5-2.5c1.4,0,2.5,1.5,2.5,2.5C40,33.2,39.2,33.7,37.5,33.7z M36.4,32.2 c0.1,0,0.3,0.1,1.1,0.1c0.7,0,1-0.1,1.1-0.1c-0.1-0.3-0.6-1.1-1.1-1.1C37,31.1,36.5,31.9,36.4,32.2C36.4,32.2,36.4,32.2,36.4,32.2 z"}),(0,e.createElement)("path",{d:"M42.7,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C42.3,29.4,42.7,29.9,42.7,30.5z"}),(0,e.createElement)("path",{d:"M34.2,30.5c0,0.6-0.4,1.1-0.9,1.1c-0.5,0-0.9-0.5-0.9-1.1c0-0.6,0.4-1.1,0.9-1.1C33.8,29.4,34.2,29.9,34.2,30.5z"}),(0,e.createElement)("path",{d:"M50.6,35.5c0-3.1-2.2-7-4.7-7.2c-1.8-3.6-4.9-6.4-8.3-6.4c-3,0-6.4,2.6-8.4,6.5c-2.5,0.3-4.6,4.1-4.6,7.1 c0,2.8,1.5,4.2,4.4,4.2c1.4,1.8,4,3.1,8.5,3.1c4.6,0,7.1-1.3,8.5-3.1C49.1,39.7,50.6,38.3,50.6,35.5z M26.2,35.5 c0-1.7,0.9-3.8,2-4.9c-0.4,1.4-0.7,2.8-0.7,4.3c0,1,0.1,2,0.5,3C26.7,37.7,26.2,37,26.2,35.5z M30.9,39.3c-0.2-0.2-0.4-0.4-0.6-0.6 c0,0,0,0-0.1-0.1c-0.2-0.2-0.3-0.5-0.5-0.7c-0.4-0.8-0.6-1.8-0.6-3c0-1.5,0.4-3.2,1-4.8l0,0c0.2-0.5,0.4-1,0.7-1.5 c1.5-2.9,3.9-5.1,6.6-5.1c2.7,0,5.1,2.3,6.6,5.2h0c0.3,0.5,0.5,1,0.7,1.5c0.6,1.6,1,3.3,1,4.8c0,1.2-0.2,2.2-0.6,3 c-0.1,0.3-0.3,0.5-0.5,0.7c0,0,0,0,0,0c-0.2,0.2-0.4,0.4-0.6,0.6c-1.5,1.3-3.9,1.8-6.6,1.8C34.8,41.1,32.5,40.7,30.9,39.3z M47,38 c0.4-1,0.5-2,0.5-3c0-1.5-0.3-3-0.8-4.5c1.1,1,2.1,3.2,2.1,5C48.9,37,48.4,37.7,47,38z"})),cvBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.97,8.08L52,8.11l-0.03,39.81L4,47.89L4.03,8.08H51.97 M51.97,6.08H4.03C2.91,6.08,2,6.99,2,8.11v39.78 c0,1.12,0.91,2.03,2.03,2.03h47.94c1.12,0,2.03-0.91,2.03-2.03V8.11C54,6.99,53.09,6.08,51.97,6.08L51.97,6.08z"}),(0,e.createElement)("path",{d:"M44.31,18.15H11.69c-1.13,0-2.04,0.91-2.04,2.04v12.55c0,1.13,0.91,2.04,2.04,2.04h32.63c1.13,0,2.04-0.91,2.04-2.04 V20.19C46.35,19.07,45.44,18.15,44.31,18.15z M26.01,28.44c-0.2,0.85-0.59,1.51-1.16,1.98c-0.59,0.46-1.29,0.69-2.09,0.69h0 c-0.72-0.02-1.34-0.2-1.83-0.54c-0.49-0.32-0.85-0.7-1.08-1.14c-0.07-0.14-0.13-0.27-0.18-0.39c-0.05-0.14-0.1-0.31-0.13-0.51 c-0.06-0.36-0.09-1.04-0.09-2.05c0-1.03,0.03-1.71,0.09-2.07c0.07-0.37,0.18-0.67,0.32-0.9c0.22-0.42,0.58-0.8,1.07-1.14 c0.49-0.34,1.1-0.52,1.83-0.53c0.89,0.01,1.63,0.28,2.2,0.8c0.56,0.52,0.92,1.18,1.07,1.95l0.05,0.24h-1.8l-0.04-0.14 c-0.1-0.31-0.27-0.58-0.52-0.8c-0.25-0.2-0.57-0.31-0.94-0.31c-0.27,0.01-0.51,0.06-0.7,0.16c-0.2,0.1-0.36,0.24-0.48,0.39 c-0.16,0.17-0.25,0.38-0.3,0.64c-0.06,0.3-0.09,0.87-0.09,1.71s0.03,1.41,0.09,1.7c0.05,0.27,0.15,0.48,0.29,0.64 c0.13,0.17,0.29,0.29,0.49,0.39c0.2,0.12,0.44,0.18,0.71,0.18c0.66,0,1.14-0.35,1.48-1.07l0.05-0.12h1.79L26.01,28.44z M33.55,31.03h-1.32l-3.01-9.12h1.83l1.84,6.16l1.84-6.16h1.83L33.55,31.03z"}),(0,e.createElement)("circle",{cx:"11.18",cy:"14.24",r:"1.53"}),(0,e.createElement)("path",{d:"M45.54,15.25H15.56c-0.17,0-0.3-0.14-0.3-0.3v-1.43c0-0.17,0.14-0.3,0.3-0.3h29.98c0.17,0,0.3,0.14,0.3,0.3v1.43 C45.84,15.12,45.71,15.25,45.54,15.25z"}),(0,e.createElement)("path",{d:"M44.86,39.69v3.14H11.14v-3.14H44.86 M45.58,37.69H10.42c-0.71,0-1.28,0.57-1.28,1.28v4.57c0,0.71,0.57,1.28,1.28,1.28 h35.16c0.71,0,1.28-0.57,1.28-1.28v-4.57C46.86,38.26,46.29,37.69,45.58,37.69L45.58,37.69z"})),button:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M38.62,26.05c-0.11-0.15-0.23-0.25-0.39-0.33c-0.16-0.08-0.36-0.12-0.59-0.13c-0.23,0.01-0.42,0.05-0.57,0.13 c-0.17,0.09-0.29,0.19-0.39,0.32c-0.13,0.14-0.21,0.31-0.25,0.52c-0.05,0.25-0.08,0.74-0.08,1.45c0,0.71,0.03,1.19,0.08,1.43 c0.04,0.22,0.12,0.39,0.23,0.51c0.11,0.14,0.24,0.24,0.4,0.32c0.17,0.1,0.36,0.14,0.58,0.14c0.23,0,0.42-0.05,0.58-0.14 c0.16-0.08,0.28-0.18,0.37-0.31c0.13-0.15,0.21-0.32,0.26-0.54c0.05-0.24,0.07-0.72,0.07-1.43c0-0.71-0.02-1.2-0.07-1.44 C38.82,26.35,38.74,26.18,38.62,26.05z"}),(0,e.createElement)("path",{d:"M10.65,28.65H9.16v1.76h1.5c0.34-0.01,0.59-0.09,0.74-0.26c0.16-0.18,0.23-0.38,0.23-0.62c0-0.25-0.08-0.45-0.23-0.63 C11.25,28.74,11,28.65,10.65,28.65z"}),(0,e.createElement)("path",{d:"M11.28,26.94c0.16-0.16,0.23-0.35,0.23-0.59c0-0.24-0.08-0.43-0.23-0.6c-0.14-0.14-0.39-0.22-0.74-0.23H9.16v1.65h1.39 C10.89,27.18,11.14,27.1,11.28,26.94z"}),(0,e.createElement)("path",{d:"M51.24,17.27H4.76C3.23,17.27,2,18.5,2,20.02v15.95c0,1.52,1.23,2.76,2.76,2.76h46.49c1.52,0,2.76-1.23,2.76-2.76V20.02 C54,18.5,52.77,17.27,51.24,17.27z M12.54,31.29c-0.43,0.43-0.97,0.65-1.62,0.65H7.58v-7.87h3.1c0.79,0.01,1.39,0.21,1.8,0.62 c0.41,0.41,0.62,0.94,0.62,1.6c0.01,0.34-0.08,0.68-0.25,0.99c-0.09,0.16-0.22,0.31-0.39,0.44c-0.05,0.05-0.11,0.09-0.17,0.13 c0.24,0.13,0.44,0.32,0.6,0.56c0.22,0.37,0.33,0.77,0.33,1.2C13.2,30.3,12.98,30.87,12.54,31.29z M20.54,29.19 c-0.02,0.84-0.3,1.52-0.83,2.02c-0.53,0.51-1.22,0.77-2.03,0.78h0h0c-0.8-0.01-1.48-0.27-2.01-0.78c-0.55-0.5-0.84-1.18-0.84-2.02 v-5.13h1.58v5c0.01,0.44,0.12,0.76,0.36,0.98c0.24,0.24,0.54,0.36,0.91,0.36c0.38,0,0.68-0.12,0.92-0.35 c0.23-0.22,0.35-0.55,0.36-0.99v-5h1.59V29.19z M27.42,25.53h-2.03v6.4H23.8v-6.4h-2.03v-1.46h5.64V25.53z M33.66,25.53h-2.03v6.4 h-1.59v-6.4h-2.03v-1.46h5.64V25.53z M40.45,29.75c-0.05,0.33-0.15,0.61-0.3,0.81c-0.17,0.35-0.48,0.68-0.9,0.96 c-0.43,0.29-0.97,0.45-1.6,0.47h-0.01h-0.01c-0.63-0.01-1.16-0.17-1.58-0.47c-0.42-0.28-0.74-0.61-0.94-0.99 c-0.06-0.12-0.11-0.23-0.16-0.34c-0.05-0.13-0.09-0.28-0.12-0.45c-0.05-0.31-0.08-0.88-0.08-1.75c0-0.89,0.03-1.46,0.08-1.77 c0.06-0.32,0.15-0.58,0.28-0.79c0.19-0.36,0.5-0.7,0.93-0.98c0.42-0.3,0.96-0.45,1.58-0.46c0.64,0.01,1.18,0.16,1.61,0.46 c0.42,0.29,0.73,0.63,0.92,1c0.13,0.18,0.23,0.45,0.28,0.77c0.05,0.31,0.07,0.88,0.07,1.76C40.52,28.87,40.5,29.44,40.45,29.75z M48.42,31.93h-1.42L44,27.2v4.73h-1.59v-7.87h1.41l3.01,4.73v-4.73h1.59V31.93z"})),list:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("circle",{cx:"7.34",cy:"13.44",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,15.34H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,15.14,52.8,15.34,52.55,15.34z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"28",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,29.9H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,29.7,52.8,29.9,52.55,29.9z"}),(0,e.createElement)("circle",{cx:"7.34",cy:"42.56",r:"4.34"}),(0,e.createElement)("path",{d:"M52.55,44.46H16.72c-0.25,0-0.45-0.2-0.45-0.45v-2.9c0-0.25,0.2-0.45,0.45-0.45h35.83c0.25,0,0.45,0.2,0.45,0.45v2.9 C53,44.25,52.8,44.46,52.55,44.46z"})),compareBox:(0,e.createElement)("svg",{viewBox:"0 0 56 56"},(0,e.createElement)("path",{d:"M51.11,10.13H4.89C2.75,10.13,1,11.88,1,14.02v28.27c0,2.15,1.75,3.89,3.89,3.89h46.22c2.15,0,3.89-1.75,3.89-3.89V14.02 C55,11.88,53.25,10.13,51.11,10.13z M3,42.29V20.42h23.76v23.76H4.89C3.85,44.18,3,43.33,3,42.29z M51.11,44.18H29.24V20.42H53 v21.87C53,43.33,52.15,44.18,51.11,44.18z"}))},p=window.wp.hooks,d="useful-blocks",u=(0,p.applyFilters)("pb-hook.isPro",!1);function _(c){let{description:n,children:l}=c;return(0,e.createElement)(e.Fragment,null,u?l:(0,e.createElement)("div",{className:"pb-free-noticeBox"},(0,e.createElement)("a",{href:"https://ponhiro.com/useful-blocks/#download-link",target:"_blank",rel:"noreferrer noopener"},(0,t.__)("In the Pro version,",d)),n||"",(0,e.createElement)("div",{className:"pb-free-ctrlPreview"},l)))}function h(c){let{attributes:n,setAttributes:o}=c;const{colSet:r,iconSet:s,iconPos:i,isCenter:m,commentStyle:p,iconY:h}=n,b=[{val:"left",label:(0,t.__)("Left",d)},{val:"right",label:(0,t.__)("Right",d)},{val:"top-left",label:(0,t.__)("Top left",d)},{val:"top-right",label:(0,t.__)("Top right",d)}],v=-1!==i.indexOf("top");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l.InspectorControls,null,(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Color set",d),initialOpen:!0},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -iconbox"},["y","p","g","b","1"].map((t=>{const c=r===t,n="pb-iconbox-colset-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:n,className:"__btn",onClick:()=>{o({colSet:t})}}),(0,e.createElement)("label",{htmlFor:n,className:"__label","data-selected":c||null},(0,e.createElement)("span",{className:"pb-iconbox","data-colset":t},(0,e.createElement)("span",{className:"pb-iconbox__inner"},(0,e.createElement)("span",{className:"pb-iconbox__head"}),(0,e.createElement)("span",{className:"pb-iconbox__body"})))))}))))),(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Icon set",d),initialOpen:!0},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(_,{description:(0,t.__)("you can register 4 types of icons and call them easily.",d)},(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -iconset"},["01","02","03","04"].map((t=>{const c=s===t,n="pb-iconbox-iconset-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:n,className:"__btn",onClick:()=>{u&&o({iconSet:t,mediaUrl:void 0,mediaId:void 0})}}),(0,e.createElement)("label",{htmlFor:n,className:"__label","data-selected":c||null},(0,e.createElement)("span",{className:"__num"},t),(0,e.createElement)("span",{className:"pb-iconbox__figure","data-iconset":t})))}))),(0,e.createElement)(a.Button,{isSecondary:!0,className:"pb-btn--clear",onClick:()=>{o({iconSet:""})}},(0,t.__)("Clear",d))))),(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Icon position",d),initialOpen:!0},(0,e.createElement)(_,{description:(0,t.__)("you can change the placement of the icons.",d)},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -iconbox"},b.map((t=>{const c=t.val===i;return(0,e.createElement)(a.Button,{isPrimary:c,key:`pb-iconpos-${t.val}`,onClick:()=>{u&&o({iconPos:t.val})}},t.label)})))),v?(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(a.RangeControl,{label:(0,t.__)("Move icon down",d),value:h,onChange:e=>{o({iconY:e})},min:0,max:5})):(0,e.createElement)(a.ToggleControl,{className:"pb-mt-20",label:(0,t.__)("Align to top/bottom center",d),checked:m,onChange:e=>{o({isCenter:e})}}))),(0,e.createElement)(a.PanelBody,{title:(0,t.__)("Baloon style",d),initialOpen:!0},(0,e.createElement)(a.BaseControl,null,(0,e.createElement)(_,{description:(0,t.__)("you can change the balloon style.",d)},(0,e.createElement)(a.ButtonGroup,{className:"pb-panel--colorSet -balloon"},["normal","simple"].map((t=>{const c=p===t,n="pb-iconbox-colset-"+t;return(0,e.createElement)("div",{className:"__btnBox",key:`key_style_${t}`},(0,e.createElement)("button",{type:"button",id:n,className:"__btn",onClick:()=>{o({commentStyle:t})}}),(0,e.createElement)("label",{htmlFor:n,className:"__label","data-selected":c||null},(0,e.createElement)("span",{className:"pb-iconbox__innerIcon","data-colset":t},(0,e.createElement)("span",{className:`pb-iconbox__comment -${t}`},"Text"))))}))))))))}const b=JSON.parse('{"name":"ponhiro-blocks/iconbox","title":"Icon box","category":"useful-blocks","supports":{"className":false},"keywords":["useful"],"attributes":{"mediaId":{"type":"number"},"mediaUrl":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"headTitle":{"type":"string","source":"html","selector":".pb-iconbox__head"},"comment":{"type":"string","source":"html","selector":".pb-iconbox__comment"},"commentStyle":{"type":"string","default":"normal"},"colSet":{"type":"string","default":"y"},"iconSet":{"type":"string","default":"01"},"iconPos":{"type":"string","default":"right"},"isCenter":{"type":"boolean","default":false},"iconY":{"type":"number","default":0}}}'),{name:v,category:E,keywords:y,supports:g}=b,C="pb-iconbox";(0,n.registerBlockType)(v,{title:(0,t.__)("Icon box",d),icon:{foreground:m.color,src:m.iconbox},keywords:y,category:E,supports:g,attributes:b.attributes,edit:c=>{const{className:n,attributes:o,setAttributes:s,noticeUI:m}=c,{headTitle:p,comment:u,mediaUrl:_,mediaId:b,colSet:v,iconSet:E,iconPos:y,isCenter:g,commentStyle:x,iconY:f}=o,N=i()(C,n,"-ponhiro-blocks"),w=e=>{e&&e.url?s({mediaUrl:e.url,mediaId:e.id,iconSet:""}):s({mediaUrl:void 0,mediaId:void 0})},M=-1!==y.indexOf("top"),k=(0,e.createElement)("div",{className:M?`${C}__topIcon`:`${C}__innerIcon`},(0,e.createElement)(l.RichText,{tagName:"div",className:i()(`${C}__comment -${x}`,{"pb-is-empty":0===u.length}),placeholder:(0,t.__)("…",d),value:u,onChange:e=>s({comment:e})}),_||E?(0,e.createElement)("div",{className:`${C}__figure __mediaWrap`,"data-iconset":E||null,style:M&&0!==f?{top:`${f}px`}:null},(0,e.createElement)(l.MediaUploadCheck,null,(0,e.createElement)(l.MediaUpload,{onSelect:w,allowedTypes:"image",value:b,render:t=>{let{open:c}=t;return(0,e.createElement)(a.Button,{onClick:c,className:"__changeImage"},"画像を変更")}})),_&&(0,e.createElement)("img",{className:`${C}__img`,src:_,alt:""})):(0,e.createElement)(l.MediaPlaceholder,{icon:(0,e.createElement)(l.BlockIcon,{icon:r}),onSelect:w,notices:m,accept:"image/*",allowedTypes:["image"]}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,{attributes:o,setAttributes:s}),(0,e.createElement)("div",{className:N,"data-colset":v,"data-icon":y},M&&k,(0,e.createElement)("div",{className:`${C}__inner`},(0,e.createElement)(l.RichText,{tagName:"div",className:i()(`${C}__head`,{"pb-is-empty":0===p.length}),placeholder:(0,t.__)("…",d),value:p,onChange:e=>s({headTitle:e})}),(0,e.createElement)("div",{className:`${C}__body`,"data-align":g?"center":null},(0,e.createElement)(l.InnerBlocks,{className:`${C}__content`,allowedBlocks:["core/paragraph","ponhiro-blocks/list"],templateLock:!1,template:[["core/paragraph",{}]],renderAppender:l.InnerBlocks.ButtonBlockAppender}),!M&&k))))},save:t=>{let{attributes:c}=t;const{headTitle:n,comment:a,colSet:o,iconSet:r,mediaUrl:s,iconPos:m,isCenter:p,commentStyle:d,iconY:u}=c,_=i()(C),h=-1!==m.indexOf("top"),b=(0,e.createElement)("div",{className:h?`${C}__topIcon`:`${C}__innerIcon`},a.length>0&&(0,e.createElement)("div",{className:`${C}__comment -${d}`},a),(0,e.createElement)("figure",{className:`${C}__figure`,"data-iconset":r||null,style:h&&0!==u?{top:`${u}px`}:null},!!s&&(0,e.createElement)("img",{className:`${C}__icon -no-lb`,src:s,alt:""})));return(0,e.createElement)("div",{className:_,"data-colset":o,"data-icon":m},h&&b,(0,e.createElement)("div",{className:`${C}__inner`},n.length>0&&(0,e.createElement)("div",{className:`${C}__head`},n),(0,e.createElement)("div",{className:`${C}__body`,"data-align":p?"center":null},(0,e.createElement)("div",{className:`${C}__content`},(0,e.createElement)(l.InnerBlocks.Content,null)),!h&&b)))}})})()})();
     1(()=>{var e={184:(e,t)=>{var c;!function(){"use strict";var n={}.hasOwnProperty;function .InnerBlocks.Content,null)),!h&&b)))}})})()})();
  • useful-blocks/trunk/readme.txt

    r2888430 r2888955  
    55Requires at least: 5.9
    66Tested up to: 6.2
    7 Stable tag: 1.7.1
     7Stable tag: 1.7.
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    3434
    3535== Changelog ==
     36
     37
     38
    3639
    3740= 1.7.1 =
  • useful-blocks/trunk/src/blocks/cv-box-note/index.js

    r2457546 r2888955  
    4646        let blockClass = classnames(blockName, className);
    4747
    48         if (content.length === 0) {
     48        if () {
    4949            blockClass = classnames(blockClass, 'has-no-content');
    5050        }
  • useful-blocks/trunk/src/blocks/iconbox/index.js

    r2668798 r2888955  
    110110                    tagName='div'
    111111                    className={classnames(`${blockName}__comment -${commentStyle}`, {
    112                         'pb-is-empty': comment.length === 0,
     112                        'pb-is-empty': ,
    113113                    })}
    114114                    placeholder={__('…', textDomain)}
     
    174174                            tagName='div'
    175175                            className={classnames(`${blockName}__head`, {
    176                                 'pb-is-empty': headTitle.length === 0,
     176                                'pb-is-empty': ,
    177177                            })}
    178178                            placeholder={__('…', textDomain)}
  • useful-blocks/trunk/useful-blocks.php

    r2888430 r2888955  
    44 * Plugin URI: https://ponhiro.com/useful-blocks/
    55 * Description: It is a plugin that collects very convenient blocks.
    6  * Version: 1.7.1
     6 * Version: 1.7.
    77 * Requires at least: 5.9
    88 * Author: Ponhiro, Ryo
     
    2626define( 'USFL_BLKS_PATH', plugin_dir_path( __FILE__ ) );
    2727define( 'USFL_BLKS_BASENAME', plugin_basename( __FILE__ ) );
    28 define( 'USFL_BLKS_VER', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date('mdGis') : '1.7.1');
     28define( 'USFL_BLKS_VER', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date('mdGis') : '1.7.');
    2929
    3030
Note: See TracChangeset for help on using the changeset viewer.